@jqhtml/core 2.3.67 → 2.3.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,24 @@ interface Cache_Key_Result {
23
23
  * @returns Cache key string or null if caching is disabled
24
24
  */
25
25
  export declare function generate_cache_key(component: any): Cache_Key_Result;
26
+ /**
27
+ * Development warning: this component fetches data but cannot be cached, because
28
+ * its args do not reduce to a stable key and it defines no cache_id() to say what
29
+ * its identity is. Nothing is broken - the component works - but it silently opts
30
+ * out of cache reuse and of load deduplication.
31
+ *
32
+ * Controlled by the `warn_uncacheable_args` integration flag (see config.ts).
33
+ */
34
+ export declare function warn_uncacheable_component(component: any, uncacheable_property?: string, uncacheable_reason?: string): void;
35
+ /**
36
+ * An HTML-cache entry: the inner HTML of a component plus the cid it was rendered
37
+ * under. Scoped ids inside the markup are "<name>:<cid>", so the owner's cid is what
38
+ * lets a replaying instance tell its own elements from its children's.
39
+ */
40
+ export interface Html_Cache_Snapshot {
41
+ cid: string;
42
+ html: string;
43
+ }
26
44
  /**
27
45
  * Read cache during create() phase.
28
46
  * Sets component._cache_key, _cached_html, _use_cached_data_hit as side effects.
@@ -1 +1 @@
1
- {"version":3,"file":"component-cache.d.ts","sourceRoot":"","sources":["../src/component-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;GAEG;AACH,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,GAAG,GAAG,gBAAgB,CAsBnE;AAsED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CAqGzD;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"}
1
+ {"version":3,"file":"component-cache.d.ts","sourceRoot":"","sources":["../src/component-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;GAEG;AACH,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,GAAG,GAAG,gBAAgB,CAsBnE;AAKD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,GAAG,EACd,oBAAoB,CAAC,EAAE,MAAM,EAC7B,kBAAkB,CAAC,EAAE,MAAM,GAC1B,IAAI,CAmDN;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAoBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CAqGzD;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,GAAG,GAAG,OAAO,CAqD7D;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CA+B9D;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CA4BjF"}
@@ -4,17 +4,22 @@
4
4
  * Extracted from component.ts - handles lifecycle event registration,
5
5
  * triggering, and state tracking.
6
6
  *
7
- * Events have "sticky" semantics for lifecycle events: if an event has already
8
- * occurred, new .on() handlers fire immediately with the stored data.
7
+ * EVERY event is "sticky", not just the lifecycle ones: trigger() records the event
8
+ * name and its payload, and a handler registered afterwards fires immediately with that
9
+ * last payload. This is deliberate and applies to custom events too - a subscriber that
10
+ * arrives after `trigger('row_selected', row)` still learns which row is selected,
11
+ * which is what makes late-attaching UI work without a separate "current state" read.
9
12
  */
10
13
  /**
11
14
  * Register a callback for an event.
12
15
  *
13
- * Lifecycle events (create, render, load, loaded, ready) are "sticky":
14
- * If a lifecycle event has already occurred, the callback fires immediately
15
- * AND registers for future occurrences.
16
+ * All events are "sticky", lifecycle (create, render, load, loaded, ready, stop) and
17
+ * custom alike: if the event has already been triggered, the callback fires immediately
18
+ * with the payload of that last trigger AND registers for future occurrences.
16
19
  *
17
- * Custom events only fire when explicitly triggered via trigger().
20
+ * invalidate(event_name) drops the stored marker when a component wants later
21
+ * subscribers to wait for the next real occurrence instead (reload() does this for
22
+ * 'ready').
18
23
  *
19
24
  * @param component - The component instance
20
25
  * @param event_name - Name of the event
@@ -1 +1 @@
1
- {"version":3,"file":"component-events.d.ts","sourceRoot":"","sources":["../src/component-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,GAAG,CAqB3G;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,GAAG,CA+B7G;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAoBlF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAG/E;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAEzE"}
1
+ {"version":3,"file":"component-events.d.ts","sourceRoot":"","sources":["../src/component-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,GAAG,CAqB3G;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,GAAG,CA+B7G;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAoBlF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAG/E;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAEzE"}
@@ -1,40 +1,51 @@
1
1
  /**
2
2
  * JQHTML Component Lifecycle Queue
3
3
  *
4
- * Serializes lifecycle operations (render, reload, refresh) per component.
4
+ * Serializes lifecycle operations (render, reload, refresh, load) per component.
5
5
  * Replaces _create_debounced_function with a proper queue that:
6
6
  *
7
7
  * - At most one operation runs at a time per component
8
- * - At most one operation is pending (waiting for the current to finish)
9
- * - Same-type pending operations collapse (fan-in: all callers share one execution)
10
- * - Different-type pending operations: new replaces old (old callers get the new result)
8
+ * - At most one PENDING entry per type; different types queue behind each other FIFO
9
+ * - Same-type pending operations collapse: the newest executor wins, and every
10
+ * collapsed caller is settled with the value of the executor that actually ran
11
+ * - A caller is settled BEFORE the next pending entry starts
11
12
  *
12
13
  * Boot bypasses this queue entirely - it runs the lifecycle directly.
13
14
  */
14
15
  export declare class Component_Queue {
15
16
  /** Currently executing operation */
16
17
  private _current;
17
- /** Next operation waiting to execute after current completes */
18
+ /**
19
+ * Operations waiting to run after the current one, in FIFO order.
20
+ * At most one entry per type: a second reload() while a reload is pending
21
+ * collapses into it, but a render() queued over a pending reload() is its
22
+ * own entry and both run. Replacing the older entry (the previous behaviour)
23
+ * dropped that operation entirely while still resolving its callers as if it
24
+ * had run.
25
+ */
18
26
  private _pending;
19
27
  /**
20
28
  * Enqueue a lifecycle operation.
21
29
  *
22
30
  * Behavior:
23
31
  * - Nothing running → execute immediately
24
- * - Something running, no pending → create pending entry
25
- * - Something running, same type pending → collapse (share pending promise)
26
- * - Something running, different type pending → replace pending (all callers get new result)
32
+ * - Something running, no pending entry of this type → queue one (FIFO)
33
+ * - Something running, same type pending → collapse: keep every caller, but
34
+ * swap in the newest executor ("only the most recent call executes")
35
+ *
36
+ * Every caller collapsed onto one entry receives the value that entry's
37
+ * executor returned - or its error, if it threw.
27
38
  *
28
39
  * @param type - Operation type ('render', 'reload', 'refresh', 'load')
29
40
  * @param executor - The async function to execute
30
- * @returns Promise that resolves when the operation completes
41
+ * @returns Promise that settles with the result of the execution that ran
31
42
  */
32
- enqueue(type: string, executor: () => Promise<void>): Promise<void>;
43
+ enqueue<T>(type: string, executor: () => Promise<T>): Promise<T>;
33
44
  /**
34
- * Execute an operation and handle pending queue after completion.
45
+ * Run one entry, settle its callers, then start the next pending entry.
35
46
  * @private
36
47
  */
37
- private _execute;
48
+ private _run;
38
49
  /**
39
50
  * Check if any operation is currently running.
40
51
  */
@@ -1 +1 @@
1
- {"version":3,"file":"component-queue.d.ts","sourceRoot":"","sources":["../src/component-queue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AASH,qBAAa,eAAe;IAC1B,oCAAoC;IACpC,OAAO,CAAC,QAAQ,CAAyD;IAEzE,gEAAgE;IAChE,OAAO,CAAC,QAAQ,CAA4B;IAE5C;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA4CnE;;;OAGG;IACH,OAAO,CAAC,QAAQ;IA0BhB;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;CACF"}
1
+ {"version":3,"file":"component-queue.d.ts","sourceRoot":"","sources":["../src/component-queue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAUH,qBAAa,eAAe;IAC1B,oCAAoC;IACpC,OAAO,CAAC,QAAQ,CAAiC;IAEjD;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,CAA0B;IAE1C;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IA+BhE;;;OAGG;IACH,OAAO,CAAC,IAAI;IA2CZ;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;CACF"}
@@ -7,6 +7,20 @@
7
7
  * - Scoped IDs using _cid pattern
8
8
  * - Event emission and CSS class hierarchy
9
9
  */
10
+ import { dynamic_component_name } from './component-name.js';
11
+ import { print_object } from './value-printers.js';
12
+ import { escape_html, escape_html_nl2br } from './escape.js';
13
+ /**
14
+ * The `jqhtml` argument every compiled render function receives: the same
15
+ * escaping the runtime exports, the object-printer entry point, and the
16
+ * dynamic tag name check. One shared object, not one per render.
17
+ */
18
+ export declare const render_utilities: {
19
+ escape_html: typeof escape_html;
20
+ escape_html_nl2br: typeof escape_html_nl2br;
21
+ print_object: typeof print_object;
22
+ dynamic_component_name: typeof dynamic_component_name;
23
+ };
10
24
  declare global {
11
25
  interface Window {
12
26
  JQHTML_DEBUG?: {
@@ -506,6 +520,32 @@ export declare class Jqhtml_Component {
506
520
  */
507
521
  static get_class_hierarchy(): string[];
508
522
  private _generate_cid;
523
+ /**
524
+ * Re-scope every scoped id in an HTML-cache snapshot so it belongs to THIS instance.
525
+ *
526
+ * A snapshot is the inner HTML of some component instance, so it contains ids of the
527
+ * form `<name>:<cid>`: the snapshotting component's own elements carry its cid, and
528
+ * elements rendered by nested children carry each child's cid. Replayed verbatim into
529
+ * a second instance those ids are duplicates of the originals, and $sid() resolves via
530
+ * getElementById(), which returns whichever matching element is first in the document -
531
+ * so one instance could read and write another instance's DOM.
532
+ *
533
+ * Mapping: the snapshot owner's cid becomes this._cid (so $sid() finds the elements
534
+ * this component is about to treat as its own), and every other cid becomes a fresh
535
+ * uid(), consistently within one injection. Two instances hydrated from one snapshot
536
+ * therefore share no id at all.
537
+ *
538
+ * The ':' separator is written only by the compiler ($sid) and the instruction
539
+ * processor (a scoped plain id), and cids are uid() output - [a-z][a-z0-9]* - so the
540
+ * pattern is exact. A plain unscoped id has no ':' and is left alone.
541
+ *
542
+ * data-cid is the debug mirror of a component's own _cid (config.ts debug_attributes).
543
+ * The snapshot's values are stale cids belonging to components that no longer exist,
544
+ * so they go through the same mapping rather than being left to lie in DevTools.
545
+ *
546
+ * @private
547
+ */
548
+ private _rescope_cached_html;
509
549
  private _apply_css_classes;
510
550
  private _apply_default_attributes;
511
551
  private _set_attributes;
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAyBH,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,CAAC;YACjF,UAAU,EAAE,MAAM,IAAI,CAAC;SACxB,CAAC;KACH;CACF;AAED,qBAAa,gBAAgB;IAE3B,MAAM,CAAC,kBAAkB,UAAQ;IACjC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAGtB,MAAM,CAAC,QAAQ,CAAC,sBAAsB,SAA0B;IAGhE,CAAC,EAAE,GAAG,CAAC;IACP,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAK;IAGzB,OAAO,CAAC,kBAAkB,CAAmB;IAC7C,OAAO,CAAC,aAAa,CAAiC;IACtD,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,mBAAmB,CAAuB;IAClD,OAAO,CAAC,oBAAoB,CAAwE;IACpG,OAAO,CAAC,iBAAiB,CAA+B;IACxD,OAAO,CA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;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,oBAAoB;IAsB5B,OAAO,CAAC,kBAAkB;IA8B1B,OAAO,CAAC,yBAAyB;IA8HjC,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,gBAAgB;IAcxB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,UAAU;CAUnB"}
@@ -27,10 +27,13 @@ export declare function setup_data_property(component: any): void;
27
27
  * All other property access (this.$, this.$sid, etc.) throws errors.
28
28
  *
29
29
  * @param component - The component instance
30
- * @param use_load_coordinator - Whether to use Load_Coordinator for deduplication
30
+ * @param dedup_key - The dedup key captured by the caller, or null to run uncoordinated.
31
+ * The key is passed in rather than recomputed because args may legally
32
+ * change while on_load() runs, and a recomputed key would address a
33
+ * different entry than the one this leader registered.
31
34
  * @returns The resulting data and optional coordination completion function
32
35
  */
33
- export declare function execute_on_load_detached(component: any, use_load_coordinator?: boolean): Promise<{
36
+ export declare function execute_on_load_detached(component: any, dedup_key?: string | null): Promise<{
34
37
  data: Record<string, any>;
35
38
  complete_coordination: ((data: Record<string, any>) => void) | null;
36
39
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"data-proxy.d.ts","sourceRoot":"","sources":["../src/data-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CAiFxD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,wBAAwB,CAAC,SAAS,EAAE,GAAG,EAAE,oBAAoB,GAAE,OAAe,GAAG,OAAO,CAAC;IAC7G,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,qBAAqB,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;CACrE,CAAC,CA8JD"}
1
+ {"version":3,"file":"data-proxy.d.ts","sourceRoot":"","sources":["../src/data-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkBH;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CAgKxD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,wBAAwB,CAAC,SAAS,EAAE,GAAG,EAAE,SAAS,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC;IACvG,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,qBAAqB,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;CACrE,CAAC,CAsKD"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * HTML escaping for interpolated text.
3
+ *
4
+ * Output matches what `div.textContent = s; div.innerHTML` produced before -
5
+ * a text node serialises only &, < and > as entities, and null/undefined as
6
+ * "" - but without touching the DOM. Interpolation runs for every value of
7
+ * every render, and a createElement per value was the most expensive thing a
8
+ * text-heavy template did.
9
+ */
10
+ export declare function escape_html(value: any): string;
11
+ /** Escaped, then newlines become <br /> - the <%br= %> construct. */
12
+ export declare function escape_html_nl2br(value: any): string;
13
+ //# sourceMappingURL=escape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../src/escape.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAI9C;AAED,qEAAqE;AACrE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAEpD"}