Rename after_load to on_loaded, add load_children option to load_detached_action, update npm
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
24
node_modules/.package-lock.json
generated
vendored
24
node_modules/.package-lock.json
generated
vendored
@@ -2224,9 +2224,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@jqhtml/core": {
|
||||
"version": "2.3.38",
|
||||
"resolved": "http://npm.internal.hanson.xyz/@jqhtml/core/-/core-2.3.38.tgz",
|
||||
"integrity": "sha512-7yjkqgYAPuyl9bjw67nm7+NwDTR4nCuem9IHmW99SO5o/iJIuJUB9txuBQBo8l2g+pNbDFFI4wvUxJbFn3fznA==",
|
||||
"version": "2.3.39",
|
||||
"resolved": "http://npm.internal.hanson.xyz/@jqhtml/core/-/core-2.3.39.tgz",
|
||||
"integrity": "sha512-qyxOBcoFCaf35etqvNOSJppqT4WQLfD9O2b8bAv5la4oSpRUmXSjVJFdv3cSMIK8qClXbupN8bm4FLbAalJqog==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@rollup/plugin-node-resolve": "^16.0.1",
|
||||
@@ -2250,9 +2250,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@jqhtml/parser": {
|
||||
"version": "2.3.38",
|
||||
"resolved": "http://npm.internal.hanson.xyz/@jqhtml/parser/-/parser-2.3.38.tgz",
|
||||
"integrity": "sha512-kIb9u3p01FDTvQbq7LKmSBaGd5JZzJGZNL7oHQXzjSkvpL6/iTE2NXkOHI/0yiSfMR5s8tsMABnHQX8M8bzZJw==",
|
||||
"version": "2.3.39",
|
||||
"resolved": "http://npm.internal.hanson.xyz/@jqhtml/parser/-/parser-2.3.39.tgz",
|
||||
"integrity": "sha512-DLPwZf1X7enf2lVOaFaIWlu8vQYMgk/+Lioup2w4F07oXFx2+MnFgcJ/Ie9Pf6VUnMT1IOIZQxOd/5QugwFFDA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/jest": "^29.5.11",
|
||||
@@ -2290,9 +2290,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@jqhtml/ssr": {
|
||||
"version": "2.3.38",
|
||||
"resolved": "http://npm.internal.hanson.xyz/@jqhtml/ssr/-/ssr-2.3.38.tgz",
|
||||
"integrity": "sha512-C0hFuzMVwAoKGGj2UvBkUqvNa2Q2Q95DYHuGMx+4cD0kCwxA2bpo5MnjcmtSQh2YX4UODKTaqmpHL+03MYOp7g==",
|
||||
"version": "2.3.39",
|
||||
"resolved": "http://npm.internal.hanson.xyz/@jqhtml/ssr/-/ssr-2.3.39.tgz",
|
||||
"integrity": "sha512-//MaIub8tel8w6l3AiqvoW021Aj9JR8BlVrZsezAO7svAIgsMFTeFdLKUud1+rg8I5Nxe4DE8CiGHz+f3Ts0kA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"jquery": "^3.7.1",
|
||||
@@ -2386,9 +2386,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@jqhtml/vscode-extension": {
|
||||
"version": "2.3.38",
|
||||
"resolved": "http://npm.internal.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.38.tgz",
|
||||
"integrity": "sha512-/npaSwR6ibKl3z8xFlnMO1salWyzQIgs+1D7JH2QFi62o9TtIJWDhKKO/n2njc6PdUrJcDy6ElT1jYZh4eoNGg==",
|
||||
"version": "2.3.39",
|
||||
"resolved": "http://npm.internal.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.39.tgz",
|
||||
"integrity": "sha512-Zi0iS5/t+5IhQoZP54J1/OOFB2OdoM6TM3g37SMJmPKjIDBUt883M3POszKFJwfj8+lrBV5OeJPOmPu3m9RYOQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"vscode": "^1.74.0"
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/component-cache.d.ts
generated
vendored
2
node_modules/@jqhtml/core/dist/component-cache.d.ts
generated
vendored
@@ -51,6 +51,6 @@ export declare function write_html_cache_snapshot(component: any): void;
|
||||
* @param component - The component instance
|
||||
* @param data_changed - Whether this.data changed during on_load
|
||||
*/
|
||||
export declare function write_cache_after_load(component: any, data_changed: boolean): void;
|
||||
export declare function write_cache_on_loaded(component: any, data_changed: boolean): void;
|
||||
export {};
|
||||
//# sourceMappingURL=component-cache.d.ts.map
|
||||
2
node_modules/@jqhtml/core/dist/component-cache.d.ts.map
generated
vendored
2
node_modules/@jqhtml/core/dist/component-cache.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"component-cache.d.ts","sourceRoot":"","sources":["../src/component-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH;;GAEG;AACH,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,GAAG,GAAG,gBAAgB,CAanE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CA+FzD;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,GAAG,GAAG,OAAO,CAqD7D;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CA2B9D;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CA4BlF"}
|
||||
{"version":3,"file":"component-cache.d.ts","sourceRoot":"","sources":["../src/component-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH;;GAEG;AACH,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,GAAG,GAAG,gBAAgB,CAanE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CA+FzD;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,GAAG,GAAG,OAAO,CAqD7D;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CA2B9D;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CA4BjF"}
|
||||
3
node_modules/@jqhtml/core/dist/component.d.ts
generated
vendored
3
node_modules/@jqhtml/core/dist/component.d.ts
generated
vendored
@@ -52,6 +52,7 @@ export declare class Jqhtml_Component {
|
||||
private _use_cached_data_hit;
|
||||
private _load_only;
|
||||
private _load_render_only;
|
||||
_is_detached: boolean;
|
||||
private _has_rendered;
|
||||
private _load_queue;
|
||||
private __has_custom_on_load;
|
||||
@@ -310,7 +311,7 @@ export declare class Jqhtml_Component {
|
||||
on_render(): void;
|
||||
on_create(): void;
|
||||
on_load(): void | Promise<void>;
|
||||
after_load(): void | Promise<void>;
|
||||
on_loaded(): void | Promise<void>;
|
||||
on_ready(): Promise<void>;
|
||||
on_stop(): void;
|
||||
/**
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/component.d.ts.map
generated
vendored
2
node_modules/@jqhtml/core/dist/component.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoBH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,CAAC,EAAE;YACb,GAAG,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI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;;;;OAeG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG;IAgB3B;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAgB9C;;;OAGG;IACH,YAAY,IAAI,gBAAgB,GAAG,IAAI;IAIvC;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAa1C;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAoBlD;;OAEG;IACH,MAAM,CAAC,mBAAmB,IAAI,MAAM,EAAE;IA0CtC,OAAO,CAAC,aAAa;IAIrB;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,yBAAyB;IAuHjC,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,gBAAgB;IAcxB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,UAAU;CAUnB"}
|
||||
59
node_modules/@jqhtml/core/dist/index.cjs
generated
vendored
59
node_modules/@jqhtml/core/dist/index.cjs
generated
vendored
@@ -39,8 +39,8 @@ class LifecycleManager {
|
||||
* Called when component is created
|
||||
*
|
||||
* Supports lifecycle truncation flags:
|
||||
* - _load_only: on_create + on_load only. No render, no children, no on_render, no after_load, no on_ready.
|
||||
* - _load_render_only: on_create + render + on_load + re-render. No on_render, no after_load, no on_ready.
|
||||
* - _load_only: on_create + on_load only. No render, no children, no on_render, no on_loaded, no on_ready.
|
||||
* - _load_render_only: on_create + render + on_load + re-render. No on_render, no on_loaded, no on_ready.
|
||||
*/
|
||||
async boot_component(component) {
|
||||
this.active_components.add(component);
|
||||
@@ -55,9 +55,10 @@ class LifecycleManager {
|
||||
// Check for lifecycle truncation flags
|
||||
const load_only = component._load_only;
|
||||
const load_render_only = component._load_render_only;
|
||||
const is_detached = component._is_detached;
|
||||
let render_id;
|
||||
if (load_only) {
|
||||
// _load_only: skip render entirely, no children created
|
||||
if (load_only || is_detached) {
|
||||
// _load_only or detached: skip initial render entirely
|
||||
render_id = 0;
|
||||
component._render_count = 0;
|
||||
}
|
||||
@@ -84,9 +85,6 @@ class LifecycleManager {
|
||||
// even if on_load() itself completes instantly (deterministic behavior)
|
||||
await Promise.resolve();
|
||||
}
|
||||
// Trigger 'loaded' event - fires after on_load completes (or would have completed)
|
||||
// This happens before the render/on_render second step
|
||||
component.trigger('loaded');
|
||||
// Check if stopped during load
|
||||
if (component._stopped)
|
||||
return;
|
||||
@@ -98,8 +96,9 @@ class LifecycleManager {
|
||||
component.trigger('ready');
|
||||
return;
|
||||
}
|
||||
// If data changed during load, re-render
|
||||
if (component._should_rerender()) {
|
||||
// Detached elements always render here (initial render was skipped)
|
||||
// Normal elements re-render only if data changed during on_load
|
||||
if (is_detached || component._should_rerender()) {
|
||||
// Disable animations during re-render to prevent visual artifacts
|
||||
// from CSS transitions/animations firing on newly rendered elements
|
||||
const $el = component.$;
|
||||
@@ -2659,7 +2658,7 @@ function write_html_cache_snapshot(component) {
|
||||
* @param component - The component instance
|
||||
* @param data_changed - Whether this.data changed during on_load
|
||||
*/
|
||||
function write_cache_after_load(component, data_changed) {
|
||||
function write_cache_on_loaded(component, data_changed) {
|
||||
if (!data_changed || !component._cache_key) {
|
||||
return;
|
||||
}
|
||||
@@ -2842,10 +2841,13 @@ class Jqhtml_Component {
|
||||
this._on_render_complete = false; // True after on_render() has been called post-on_load
|
||||
// use_cached_data feature - skip on_load() when cache hit occurs
|
||||
this._use_cached_data_hit = false; // True if use_cached_data=true AND cache was used
|
||||
// _load_only: create + load only. No render, no children, no on_render, no after_load, no on_ready.
|
||||
// _load_only: create + load only. No render, no children, no on_render, no on_loaded, no on_ready.
|
||||
this._load_only = false;
|
||||
// _load_render_only: create + render + load + re-render. No on_render, no after_load, no on_ready.
|
||||
// _load_render_only: create + render + load + re-render. No on_render, no on_loaded, no on_ready.
|
||||
this._load_render_only = false;
|
||||
// Detached optimization: true when element is not in the DOM at boot time.
|
||||
// Skips initial render and cache read — just on_load then render.
|
||||
this._is_detached = false;
|
||||
// rendered event - fires once after the synchronous render chain completes
|
||||
// (after on_load's re-render if applicable, or after first render if no on_load)
|
||||
this._has_rendered = false;
|
||||
@@ -3390,11 +3392,11 @@ class Jqhtml_Component {
|
||||
Jqhtml_Local_Storage.set(cache_key, this.data);
|
||||
}
|
||||
}
|
||||
// Call after_load() on the real component (this.data frozen, full access to this.$, this.state)
|
||||
// Call on_loaded() on the real component (this.data frozen, full access to this.$, this.state)
|
||||
// Suppressed by _load_only and _load_render_only flags (preloading mode)
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
});
|
||||
return data_changed;
|
||||
@@ -3414,12 +3416,17 @@ class Jqhtml_Component {
|
||||
`on_create() must be synchronous code. Remove 'async' from the function declaration.`);
|
||||
// Don't await - on_create MUST be sync. The warning is enough.
|
||||
}
|
||||
// Detect detached elements — skip cache and initial render for elements not in DOM
|
||||
this._is_detached = !this.$[0].isConnected;
|
||||
// OPTIMIZATION: Skip cache operations and snapshot if no custom on_load()
|
||||
// Components without on_load() don't fetch data, so nothing to cache or restore
|
||||
if (this.__has_custom_on_load) {
|
||||
// CACHE CHECK - Read from cache based on cache mode ('data' or 'html')
|
||||
// Skip cache for detached elements — no point hydrating from cache when not in DOM
|
||||
// @see component-cache.ts for full implementation
|
||||
read_cache_in_create(this);
|
||||
if (!this._is_detached) {
|
||||
read_cache_in_create(this);
|
||||
}
|
||||
// Snapshot this.data after on_create() completes
|
||||
// This will be restored before each on_load() execution to reset state
|
||||
this.__initial_data_snapshot = JSON.parse(JSON.stringify(this.data));
|
||||
@@ -3455,8 +3462,8 @@ class Jqhtml_Component {
|
||||
this._log_lifecycle('load', 'complete (use_cached_data - skipped on_load)');
|
||||
this.trigger('load');
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -3535,8 +3542,8 @@ class Jqhtml_Component {
|
||||
this._log_lifecycle('load', 'complete (follower)');
|
||||
this.trigger('load');
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -3605,18 +3612,18 @@ class Jqhtml_Component {
|
||||
// Used by HTML cache mode for synchronization - static parents don't block children
|
||||
this._is_dynamic = data_changed && data_after_load !== '{}';
|
||||
// CACHE WRITE - @see component-cache.ts
|
||||
write_cache_after_load(this, this._is_dynamic);
|
||||
write_cache_on_loaded(this, this._is_dynamic);
|
||||
this._ready_state = 2;
|
||||
this._update_debug_attrs();
|
||||
this._log_lifecycle('load', 'complete');
|
||||
// Emit lifecycle event
|
||||
this.trigger('load');
|
||||
// Call after_load() - runs on the REAL component (not detached proxy)
|
||||
// Call on_loaded() - runs on the REAL component (not detached proxy)
|
||||
// this.data is frozen (read-only), but this.$, this.state, this.args are accessible
|
||||
// Suppressed by _load_only and _load_render_only flags (preloading mode)
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
}
|
||||
finally {
|
||||
@@ -4021,7 +4028,7 @@ class Jqhtml_Component {
|
||||
on_render() { }
|
||||
on_create() { }
|
||||
on_load() { } // Override to fetch data asynchronously
|
||||
after_load() { } // Override to process loaded data (e.g., clone this.data to this.state)
|
||||
on_loaded() { } // Override to process loaded data (e.g., clone this.data to this.state)
|
||||
async on_ready() { }
|
||||
on_stop() { }
|
||||
/**
|
||||
@@ -5273,7 +5280,7 @@ function init(jQuery) {
|
||||
}
|
||||
}
|
||||
// Version - will be replaced during build with actual version from package.json
|
||||
const version = '2.3.38';
|
||||
const version = '2.3.39';
|
||||
// Default export with all functionality
|
||||
const jqhtml = {
|
||||
// Core
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/index.cjs.map
generated
vendored
2
node_modules/@jqhtml/core/dist/index.cjs.map
generated
vendored
File diff suppressed because one or more lines are too long
59
node_modules/@jqhtml/core/dist/index.js
generated
vendored
59
node_modules/@jqhtml/core/dist/index.js
generated
vendored
@@ -35,8 +35,8 @@ class LifecycleManager {
|
||||
* Called when component is created
|
||||
*
|
||||
* Supports lifecycle truncation flags:
|
||||
* - _load_only: on_create + on_load only. No render, no children, no on_render, no after_load, no on_ready.
|
||||
* - _load_render_only: on_create + render + on_load + re-render. No on_render, no after_load, no on_ready.
|
||||
* - _load_only: on_create + on_load only. No render, no children, no on_render, no on_loaded, no on_ready.
|
||||
* - _load_render_only: on_create + render + on_load + re-render. No on_render, no on_loaded, no on_ready.
|
||||
*/
|
||||
async boot_component(component) {
|
||||
this.active_components.add(component);
|
||||
@@ -51,9 +51,10 @@ class LifecycleManager {
|
||||
// Check for lifecycle truncation flags
|
||||
const load_only = component._load_only;
|
||||
const load_render_only = component._load_render_only;
|
||||
const is_detached = component._is_detached;
|
||||
let render_id;
|
||||
if (load_only) {
|
||||
// _load_only: skip render entirely, no children created
|
||||
if (load_only || is_detached) {
|
||||
// _load_only or detached: skip initial render entirely
|
||||
render_id = 0;
|
||||
component._render_count = 0;
|
||||
}
|
||||
@@ -80,9 +81,6 @@ class LifecycleManager {
|
||||
// even if on_load() itself completes instantly (deterministic behavior)
|
||||
await Promise.resolve();
|
||||
}
|
||||
// Trigger 'loaded' event - fires after on_load completes (or would have completed)
|
||||
// This happens before the render/on_render second step
|
||||
component.trigger('loaded');
|
||||
// Check if stopped during load
|
||||
if (component._stopped)
|
||||
return;
|
||||
@@ -94,8 +92,9 @@ class LifecycleManager {
|
||||
component.trigger('ready');
|
||||
return;
|
||||
}
|
||||
// If data changed during load, re-render
|
||||
if (component._should_rerender()) {
|
||||
// Detached elements always render here (initial render was skipped)
|
||||
// Normal elements re-render only if data changed during on_load
|
||||
if (is_detached || component._should_rerender()) {
|
||||
// Disable animations during re-render to prevent visual artifacts
|
||||
// from CSS transitions/animations firing on newly rendered elements
|
||||
const $el = component.$;
|
||||
@@ -2655,7 +2654,7 @@ function write_html_cache_snapshot(component) {
|
||||
* @param component - The component instance
|
||||
* @param data_changed - Whether this.data changed during on_load
|
||||
*/
|
||||
function write_cache_after_load(component, data_changed) {
|
||||
function write_cache_on_loaded(component, data_changed) {
|
||||
if (!data_changed || !component._cache_key) {
|
||||
return;
|
||||
}
|
||||
@@ -2838,10 +2837,13 @@ class Jqhtml_Component {
|
||||
this._on_render_complete = false; // True after on_render() has been called post-on_load
|
||||
// use_cached_data feature - skip on_load() when cache hit occurs
|
||||
this._use_cached_data_hit = false; // True if use_cached_data=true AND cache was used
|
||||
// _load_only: create + load only. No render, no children, no on_render, no after_load, no on_ready.
|
||||
// _load_only: create + load only. No render, no children, no on_render, no on_loaded, no on_ready.
|
||||
this._load_only = false;
|
||||
// _load_render_only: create + render + load + re-render. No on_render, no after_load, no on_ready.
|
||||
// _load_render_only: create + render + load + re-render. No on_render, no on_loaded, no on_ready.
|
||||
this._load_render_only = false;
|
||||
// Detached optimization: true when element is not in the DOM at boot time.
|
||||
// Skips initial render and cache read — just on_load then render.
|
||||
this._is_detached = false;
|
||||
// rendered event - fires once after the synchronous render chain completes
|
||||
// (after on_load's re-render if applicable, or after first render if no on_load)
|
||||
this._has_rendered = false;
|
||||
@@ -3386,11 +3388,11 @@ class Jqhtml_Component {
|
||||
Jqhtml_Local_Storage.set(cache_key, this.data);
|
||||
}
|
||||
}
|
||||
// Call after_load() on the real component (this.data frozen, full access to this.$, this.state)
|
||||
// Call on_loaded() on the real component (this.data frozen, full access to this.$, this.state)
|
||||
// Suppressed by _load_only and _load_render_only flags (preloading mode)
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
});
|
||||
return data_changed;
|
||||
@@ -3410,12 +3412,17 @@ class Jqhtml_Component {
|
||||
`on_create() must be synchronous code. Remove 'async' from the function declaration.`);
|
||||
// Don't await - on_create MUST be sync. The warning is enough.
|
||||
}
|
||||
// Detect detached elements — skip cache and initial render for elements not in DOM
|
||||
this._is_detached = !this.$[0].isConnected;
|
||||
// OPTIMIZATION: Skip cache operations and snapshot if no custom on_load()
|
||||
// Components without on_load() don't fetch data, so nothing to cache or restore
|
||||
if (this.__has_custom_on_load) {
|
||||
// CACHE CHECK - Read from cache based on cache mode ('data' or 'html')
|
||||
// Skip cache for detached elements — no point hydrating from cache when not in DOM
|
||||
// @see component-cache.ts for full implementation
|
||||
read_cache_in_create(this);
|
||||
if (!this._is_detached) {
|
||||
read_cache_in_create(this);
|
||||
}
|
||||
// Snapshot this.data after on_create() completes
|
||||
// This will be restored before each on_load() execution to reset state
|
||||
this.__initial_data_snapshot = JSON.parse(JSON.stringify(this.data));
|
||||
@@ -3451,8 +3458,8 @@ class Jqhtml_Component {
|
||||
this._log_lifecycle('load', 'complete (use_cached_data - skipped on_load)');
|
||||
this.trigger('load');
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -3531,8 +3538,8 @@ class Jqhtml_Component {
|
||||
this._log_lifecycle('load', 'complete (follower)');
|
||||
this.trigger('load');
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -3601,18 +3608,18 @@ class Jqhtml_Component {
|
||||
// Used by HTML cache mode for synchronization - static parents don't block children
|
||||
this._is_dynamic = data_changed && data_after_load !== '{}';
|
||||
// CACHE WRITE - @see component-cache.ts
|
||||
write_cache_after_load(this, this._is_dynamic);
|
||||
write_cache_on_loaded(this, this._is_dynamic);
|
||||
this._ready_state = 2;
|
||||
this._update_debug_attrs();
|
||||
this._log_lifecycle('load', 'complete');
|
||||
// Emit lifecycle event
|
||||
this.trigger('load');
|
||||
// Call after_load() - runs on the REAL component (not detached proxy)
|
||||
// Call on_loaded() - runs on the REAL component (not detached proxy)
|
||||
// this.data is frozen (read-only), but this.$, this.state, this.args are accessible
|
||||
// Suppressed by _load_only and _load_render_only flags (preloading mode)
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
}
|
||||
finally {
|
||||
@@ -4017,7 +4024,7 @@ class Jqhtml_Component {
|
||||
on_render() { }
|
||||
on_create() { }
|
||||
on_load() { } // Override to fetch data asynchronously
|
||||
after_load() { } // Override to process loaded data (e.g., clone this.data to this.state)
|
||||
on_loaded() { } // Override to process loaded data (e.g., clone this.data to this.state)
|
||||
async on_ready() { }
|
||||
on_stop() { }
|
||||
/**
|
||||
@@ -5269,7 +5276,7 @@ function init(jQuery) {
|
||||
}
|
||||
}
|
||||
// Version - will be replaced during build with actual version from package.json
|
||||
const version = '2.3.38';
|
||||
const version = '2.3.39';
|
||||
// Default export with all functionality
|
||||
const jqhtml = {
|
||||
// Core
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/index.js.map
generated
vendored
2
node_modules/@jqhtml/core/dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
61
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js
generated
vendored
61
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* JQHTML Core v2.3.38
|
||||
* JQHTML Core v2.3.39
|
||||
* (c) 2025 JQHTML Team
|
||||
* Released under the MIT License
|
||||
*/
|
||||
@@ -40,8 +40,8 @@ class LifecycleManager {
|
||||
* Called when component is created
|
||||
*
|
||||
* Supports lifecycle truncation flags:
|
||||
* - _load_only: on_create + on_load only. No render, no children, no on_render, no after_load, no on_ready.
|
||||
* - _load_render_only: on_create + render + on_load + re-render. No on_render, no after_load, no on_ready.
|
||||
* - _load_only: on_create + on_load only. No render, no children, no on_render, no on_loaded, no on_ready.
|
||||
* - _load_render_only: on_create + render + on_load + re-render. No on_render, no on_loaded, no on_ready.
|
||||
*/
|
||||
async boot_component(component) {
|
||||
this.active_components.add(component);
|
||||
@@ -56,9 +56,10 @@ class LifecycleManager {
|
||||
// Check for lifecycle truncation flags
|
||||
const load_only = component._load_only;
|
||||
const load_render_only = component._load_render_only;
|
||||
const is_detached = component._is_detached;
|
||||
let render_id;
|
||||
if (load_only) {
|
||||
// _load_only: skip render entirely, no children created
|
||||
if (load_only || is_detached) {
|
||||
// _load_only or detached: skip initial render entirely
|
||||
render_id = 0;
|
||||
component._render_count = 0;
|
||||
}
|
||||
@@ -85,9 +86,6 @@ class LifecycleManager {
|
||||
// even if on_load() itself completes instantly (deterministic behavior)
|
||||
await Promise.resolve();
|
||||
}
|
||||
// Trigger 'loaded' event - fires after on_load completes (or would have completed)
|
||||
// This happens before the render/on_render second step
|
||||
component.trigger('loaded');
|
||||
// Check if stopped during load
|
||||
if (component._stopped)
|
||||
return;
|
||||
@@ -99,8 +97,9 @@ class LifecycleManager {
|
||||
component.trigger('ready');
|
||||
return;
|
||||
}
|
||||
// If data changed during load, re-render
|
||||
if (component._should_rerender()) {
|
||||
// Detached elements always render here (initial render was skipped)
|
||||
// Normal elements re-render only if data changed during on_load
|
||||
if (is_detached || component._should_rerender()) {
|
||||
// Disable animations during re-render to prevent visual artifacts
|
||||
// from CSS transitions/animations firing on newly rendered elements
|
||||
const $el = component.$;
|
||||
@@ -2660,7 +2659,7 @@ function write_html_cache_snapshot(component) {
|
||||
* @param component - The component instance
|
||||
* @param data_changed - Whether this.data changed during on_load
|
||||
*/
|
||||
function write_cache_after_load(component, data_changed) {
|
||||
function write_cache_on_loaded(component, data_changed) {
|
||||
if (!data_changed || !component._cache_key) {
|
||||
return;
|
||||
}
|
||||
@@ -2843,10 +2842,13 @@ class Jqhtml_Component {
|
||||
this._on_render_complete = false; // True after on_render() has been called post-on_load
|
||||
// use_cached_data feature - skip on_load() when cache hit occurs
|
||||
this._use_cached_data_hit = false; // True if use_cached_data=true AND cache was used
|
||||
// _load_only: create + load only. No render, no children, no on_render, no after_load, no on_ready.
|
||||
// _load_only: create + load only. No render, no children, no on_render, no on_loaded, no on_ready.
|
||||
this._load_only = false;
|
||||
// _load_render_only: create + render + load + re-render. No on_render, no after_load, no on_ready.
|
||||
// _load_render_only: create + render + load + re-render. No on_render, no on_loaded, no on_ready.
|
||||
this._load_render_only = false;
|
||||
// Detached optimization: true when element is not in the DOM at boot time.
|
||||
// Skips initial render and cache read — just on_load then render.
|
||||
this._is_detached = false;
|
||||
// rendered event - fires once after the synchronous render chain completes
|
||||
// (after on_load's re-render if applicable, or after first render if no on_load)
|
||||
this._has_rendered = false;
|
||||
@@ -3391,11 +3393,11 @@ class Jqhtml_Component {
|
||||
Jqhtml_Local_Storage.set(cache_key, this.data);
|
||||
}
|
||||
}
|
||||
// Call after_load() on the real component (this.data frozen, full access to this.$, this.state)
|
||||
// Call on_loaded() on the real component (this.data frozen, full access to this.$, this.state)
|
||||
// Suppressed by _load_only and _load_render_only flags (preloading mode)
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
});
|
||||
return data_changed;
|
||||
@@ -3415,12 +3417,17 @@ class Jqhtml_Component {
|
||||
`on_create() must be synchronous code. Remove 'async' from the function declaration.`);
|
||||
// Don't await - on_create MUST be sync. The warning is enough.
|
||||
}
|
||||
// Detect detached elements — skip cache and initial render for elements not in DOM
|
||||
this._is_detached = !this.$[0].isConnected;
|
||||
// OPTIMIZATION: Skip cache operations and snapshot if no custom on_load()
|
||||
// Components without on_load() don't fetch data, so nothing to cache or restore
|
||||
if (this.__has_custom_on_load) {
|
||||
// CACHE CHECK - Read from cache based on cache mode ('data' or 'html')
|
||||
// Skip cache for detached elements — no point hydrating from cache when not in DOM
|
||||
// @see component-cache.ts for full implementation
|
||||
read_cache_in_create(this);
|
||||
if (!this._is_detached) {
|
||||
read_cache_in_create(this);
|
||||
}
|
||||
// Snapshot this.data after on_create() completes
|
||||
// This will be restored before each on_load() execution to reset state
|
||||
this.__initial_data_snapshot = JSON.parse(JSON.stringify(this.data));
|
||||
@@ -3456,8 +3463,8 @@ class Jqhtml_Component {
|
||||
this._log_lifecycle('load', 'complete (use_cached_data - skipped on_load)');
|
||||
this.trigger('load');
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -3536,8 +3543,8 @@ class Jqhtml_Component {
|
||||
this._log_lifecycle('load', 'complete (follower)');
|
||||
this.trigger('load');
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -3606,18 +3613,18 @@ class Jqhtml_Component {
|
||||
// Used by HTML cache mode for synchronization - static parents don't block children
|
||||
this._is_dynamic = data_changed && data_after_load !== '{}';
|
||||
// CACHE WRITE - @see component-cache.ts
|
||||
write_cache_after_load(this, this._is_dynamic);
|
||||
write_cache_on_loaded(this, this._is_dynamic);
|
||||
this._ready_state = 2;
|
||||
this._update_debug_attrs();
|
||||
this._log_lifecycle('load', 'complete');
|
||||
// Emit lifecycle event
|
||||
this.trigger('load');
|
||||
// Call after_load() - runs on the REAL component (not detached proxy)
|
||||
// Call on_loaded() - runs on the REAL component (not detached proxy)
|
||||
// this.data is frozen (read-only), but this.$, this.state, this.args are accessible
|
||||
// Suppressed by _load_only and _load_render_only flags (preloading mode)
|
||||
if (!this._load_only && !this._load_render_only) {
|
||||
await this._call_lifecycle('after_load');
|
||||
this.trigger('after_load');
|
||||
await this._call_lifecycle('on_loaded');
|
||||
this.trigger('on_loaded');
|
||||
}
|
||||
}
|
||||
finally {
|
||||
@@ -4022,7 +4029,7 @@ class Jqhtml_Component {
|
||||
on_render() { }
|
||||
on_create() { }
|
||||
on_load() { } // Override to fetch data asynchronously
|
||||
after_load() { } // Override to process loaded data (e.g., clone this.data to this.state)
|
||||
on_loaded() { } // Override to process loaded data (e.g., clone this.data to this.state)
|
||||
async on_ready() { }
|
||||
on_stop() { }
|
||||
/**
|
||||
@@ -5274,7 +5281,7 @@ function init(jQuery) {
|
||||
}
|
||||
}
|
||||
// Version - will be replaced during build with actual version from package.json
|
||||
const version = '2.3.38';
|
||||
const version = '2.3.39';
|
||||
// Default export with all functionality
|
||||
const jqhtml = {
|
||||
// Core
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js.map
generated
vendored
2
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js.map
generated
vendored
File diff suppressed because one or more lines are too long
4
node_modules/@jqhtml/core/dist/lifecycle-manager.d.ts
generated
vendored
4
node_modules/@jqhtml/core/dist/lifecycle-manager.d.ts
generated
vendored
@@ -27,8 +27,8 @@ export declare class LifecycleManager {
|
||||
* Called when component is created
|
||||
*
|
||||
* Supports lifecycle truncation flags:
|
||||
* - _load_only: on_create + on_load only. No render, no children, no on_render, no after_load, no on_ready.
|
||||
* - _load_render_only: on_create + render + on_load + re-render. No on_render, no after_load, no on_ready.
|
||||
* - _load_only: on_create + on_load only. No render, no children, no on_render, no on_loaded, no on_ready.
|
||||
* - _load_render_only: on_create + render + on_load + re-render. No on_render, no on_loaded, no on_ready.
|
||||
*/
|
||||
boot_component(component: Jqhtml_Component): Promise<void>;
|
||||
/**
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/lifecycle-manager.d.ts.map
generated
vendored
2
node_modules/@jqhtml/core/dist/lifecycle-manager.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"lifecycle-manager.d.ts","sourceRoot":"","sources":["../src/lifecycle-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpE,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAmB;IAC1C,OAAO,CAAC,iBAAiB,CAAoC;IAE7D,MAAM,CAAC,YAAY,IAAI,gBAAgB;;IAevC;;;;;;;OAOG;IACG,cAAc,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IA+IhE;;OAEG;IACH,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAIvD;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;CAetC"}
|
||||
{"version":3,"file":"lifecycle-manager.d.ts","sourceRoot":"","sources":["../src/lifecycle-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpE,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAmB;IAC1C,OAAO,CAAC,iBAAiB,CAAoC;IAE7D,MAAM,CAAC,YAAY,IAAI,gBAAgB;;IAevC;;;;;;;OAOG;IACG,cAAc,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IA6IhE;;OAEG;IACH,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAIvD;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;CAetC"}
|
||||
2
node_modules/@jqhtml/core/package.json
generated
vendored
2
node_modules/@jqhtml/core/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jqhtml/core",
|
||||
"version": "2.3.38",
|
||||
"version": "2.3.39",
|
||||
"description": "Core runtime library for JQHTML",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
2
node_modules/@jqhtml/parser/dist/codegen.js
generated
vendored
2
node_modules/@jqhtml/parser/dist/codegen.js
generated
vendored
@@ -1385,7 +1385,7 @@ export class CodeGenerator {
|
||||
for (const [name, component] of this.components) {
|
||||
code += `// Component: ${name}\n`;
|
||||
code += `jqhtml_components.set('${name}', {\n`;
|
||||
code += ` _jqhtml_version: '2.3.38',\n`; // Version will be replaced during build
|
||||
code += ` _jqhtml_version: '2.3.39',\n`; // Version will be replaced during build
|
||||
code += ` name: '${name}',\n`;
|
||||
code += ` tag: '${component.tagName}',\n`;
|
||||
code += ` defaultAttributes: ${this.serializeAttributeObject(component.defaultAttributes)},\n`;
|
||||
|
||||
2
node_modules/@jqhtml/parser/package.json
generated
vendored
2
node_modules/@jqhtml/parser/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jqhtml/parser",
|
||||
"version": "2.3.38",
|
||||
"version": "2.3.39",
|
||||
"description": "JQHTML template parser - converts templates to JavaScript",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
||||
2
node_modules/@jqhtml/ssr/package.json
generated
vendored
2
node_modules/@jqhtml/ssr/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jqhtml/ssr",
|
||||
"version": "2.3.38",
|
||||
"version": "2.3.39",
|
||||
"description": "Server-Side Rendering for JQHTML components - renders components to HTML for SEO",
|
||||
"main": "src/index.js",
|
||||
"bin": {
|
||||
|
||||
2
node_modules/@jqhtml/vscode-extension/.version
generated
vendored
2
node_modules/@jqhtml/vscode-extension/.version
generated
vendored
@@ -1 +1 @@
|
||||
2.3.38
|
||||
2.3.39
|
||||
|
||||
BIN
node_modules/@jqhtml/vscode-extension/jqhtml-vscode-extension-2.3.38.vsix → node_modules/@jqhtml/vscode-extension/jqhtml-vscode-extension-2.3.39.vsix
generated
vendored
Normal file → Executable file
BIN
node_modules/@jqhtml/vscode-extension/jqhtml-vscode-extension-2.3.38.vsix → node_modules/@jqhtml/vscode-extension/jqhtml-vscode-extension-2.3.39.vsix
generated
vendored
Normal file → Executable file
Binary file not shown.
2
node_modules/@jqhtml/vscode-extension/package.json
generated
vendored
2
node_modules/@jqhtml/vscode-extension/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
||||
"name": "@jqhtml/vscode-extension",
|
||||
"displayName": "JQHTML",
|
||||
"description": "Syntax highlighting and language support for JQHTML template files",
|
||||
"version": "2.3.38",
|
||||
"version": "2.3.39",
|
||||
"publisher": "jqhtml",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
|
||||
Reference in New Issue
Block a user