@jqhtml/core 2.3.74 → 2.3.75
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.
- package/dist/cache-key-serializer.d.ts.map +1 -1
- package/dist/component-cache.d.ts +33 -8
- package/dist/component-cache.d.ts.map +1 -1
- package/dist/component-events.d.ts +6 -2
- package/dist/component-events.d.ts.map +1 -1
- package/dist/component-queue.d.ts +91 -36
- package/dist/component-queue.d.ts.map +1 -1
- package/dist/component-registry.d.ts +20 -1
- package/dist/component-registry.d.ts.map +1 -1
- package/dist/component.d.ts +245 -29
- package/dist/component.d.ts.map +1 -1
- package/dist/data-proxy.d.ts +32 -10
- package/dist/data-proxy.d.ts.map +1 -1
- package/dist/debug.d.ts +1 -1
- package/dist/debug.d.ts.map +1 -1
- package/dist/index.cjs +2359 -954
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2359 -954
- package/dist/index.js.map +1 -1
- package/dist/instruction-processor.d.ts +4 -4
- package/dist/instruction-processor.d.ts.map +1 -1
- package/dist/jqhtml-core.esm.js +2360 -955
- package/dist/jqhtml-core.esm.js.map +1 -1
- package/dist/jqhtml-debug.esm.js +9 -2
- package/dist/jqhtml-debug.esm.js.map +1 -1
- package/dist/jquery-plugin.d.ts.map +1 -1
- package/dist/lifecycle-manager.d.ts +9 -5
- package/dist/lifecycle-manager.d.ts.map +1 -1
- package/dist/load-coordinator.d.ts +5 -3
- package/dist/load-coordinator.d.ts.map +1 -1
- package/dist/local-storage.d.ts +70 -6
- package/dist/local-storage.d.ts.map +1 -1
- package/dist/markup.d.ts +37 -0
- package/dist/markup.d.ts.map +1 -0
- package/dist/style-merge.d.ts +44 -0
- package/dist/style-merge.d.ts.map +1 -0
- package/dist/viewport.d.ts +2 -1
- package/dist/viewport.d.ts.map +1 -1
- package/package.json +3 -4
package/dist/component.d.ts
CHANGED
|
@@ -10,12 +10,15 @@
|
|
|
10
10
|
import { dynamic_component_name } from './component-name.js';
|
|
11
11
|
import { print_object } from './value-printers.js';
|
|
12
12
|
import { escape_html, escape_html_nl2br } from './escape.js';
|
|
13
|
+
import { Jqhtml_Markup } from './markup.js';
|
|
13
14
|
/**
|
|
14
|
-
* The `jqhtml` argument every compiled render function receives: the
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* The `jqhtml` argument every compiled render function receives: the markup
|
|
16
|
+
* buffer class each render/content/slot function returns, the same escaping
|
|
17
|
+
* the runtime exports, the object-printer entry point, and the dynamic tag
|
|
18
|
+
* name check. One shared object, not one per render.
|
|
17
19
|
*/
|
|
18
20
|
export declare const render_utilities: {
|
|
21
|
+
Markup: typeof Jqhtml_Markup;
|
|
19
22
|
escape_html: typeof escape_html;
|
|
20
23
|
escape_html_nl2br: typeof escape_html_nl2br;
|
|
21
24
|
print_object: typeof print_object;
|
|
@@ -55,12 +58,17 @@ export declare class Jqhtml_Component {
|
|
|
55
58
|
private _render_count;
|
|
56
59
|
private _args_on_last_render;
|
|
57
60
|
private _data_on_last_render;
|
|
58
|
-
private
|
|
61
|
+
private __initial_data_text;
|
|
59
62
|
private __data_frozen;
|
|
63
|
+
private __data_text;
|
|
64
|
+
private __data_text_of;
|
|
60
65
|
private _queue;
|
|
61
|
-
private
|
|
62
|
-
private
|
|
66
|
+
private _load_seq;
|
|
67
|
+
private _ready_owed;
|
|
68
|
+
private _locked_sync_hook;
|
|
69
|
+
private _async_hook;
|
|
63
70
|
private _cache_key;
|
|
71
|
+
private _data_cache_key;
|
|
64
72
|
private _cached_html;
|
|
65
73
|
private _used_cached_html;
|
|
66
74
|
private _should_cache_html_after_ready;
|
|
@@ -74,6 +82,9 @@ export declare class Jqhtml_Component {
|
|
|
74
82
|
private _has_rendered;
|
|
75
83
|
private _load_queue;
|
|
76
84
|
private __has_custom_on_load;
|
|
85
|
+
private __has_custom_on_load_error;
|
|
86
|
+
private _load_failed;
|
|
87
|
+
private _load_error_printed;
|
|
77
88
|
private __load_gates;
|
|
78
89
|
private __first_load_started;
|
|
79
90
|
private __gate_resume;
|
|
@@ -88,23 +99,32 @@ export declare class Jqhtml_Component {
|
|
|
88
99
|
*/
|
|
89
100
|
private _protect_lifecycle_methods;
|
|
90
101
|
/**
|
|
91
|
-
* Call a lifecycle method
|
|
102
|
+
* Call a lifecycle method (async)
|
|
92
103
|
* Framework calls this to invoke lifecycle methods, bypassing the protection wrapper.
|
|
93
|
-
* The flag is set momentarily for the wrapper check, then reset BEFORE user code runs.
|
|
94
|
-
* This ensures any nested lifecycle calls from user code will fail the flag check.
|
|
95
104
|
* @private
|
|
96
105
|
*/
|
|
97
106
|
private _call_lifecycle;
|
|
98
107
|
/**
|
|
99
|
-
* Call a lifecycle method
|
|
108
|
+
* Call a lifecycle method (sync version for sync methods like on_stop)
|
|
100
109
|
* @private
|
|
101
110
|
*/
|
|
102
111
|
private _call_lifecycle_sync;
|
|
112
|
+
/**
|
|
113
|
+
* Call on_create() or on_render() and record that it is running, so a render(),
|
|
114
|
+
* load(), reload() or refresh() made from inside it can be warned about (see
|
|
115
|
+
* _queue_call()). Both run inside the lifecycle lock.
|
|
116
|
+
* @private
|
|
117
|
+
*/
|
|
118
|
+
private _call_locked_sync_hook;
|
|
103
119
|
/**
|
|
104
120
|
* Fire on_viewport_resize() with the current viewport width.
|
|
105
121
|
* Called after every on_render() and on_ready(); the debounced window
|
|
106
122
|
* listener in viewport.ts drives it from then on. Errors are isolated so a
|
|
107
123
|
* bad handler cannot break the lifecycle.
|
|
124
|
+
*
|
|
125
|
+
* Skipped while the hook resolves to the base no-op (nothing could observe the
|
|
126
|
+
* call). Read live on each fire, so a hook assigned to the instance (class field,
|
|
127
|
+
* on_create(), later) or patched onto a prototype is called like a class override.
|
|
108
128
|
* @private
|
|
109
129
|
*/
|
|
110
130
|
private _fire_viewport_resize;
|
|
@@ -115,6 +135,22 @@ export declare class Jqhtml_Component {
|
|
|
115
135
|
* @private
|
|
116
136
|
*/
|
|
117
137
|
private _has_on_load;
|
|
138
|
+
/**
|
|
139
|
+
* The loaded step for a component with NO custom on_load(): on_loaded(), then the
|
|
140
|
+
* 'loaded' event, at the point where on_load() would have completed (boot,
|
|
141
|
+
* load(), reload(), refresh()). Every component gets them, whether or not it fetches
|
|
142
|
+
* data; a component with on_load() gets them from _apply_load_result() / load().
|
|
143
|
+
*
|
|
144
|
+
* Suppressed by _load_only and _load_render_only (preloading mode), exactly as for a
|
|
145
|
+
* component with on_load(). Never runs on a stopped component, and 'loaded' does not
|
|
146
|
+
* fire if on_loaded() awaited across a stop().
|
|
147
|
+
*
|
|
148
|
+
* Returns null when nothing was awaited: on_loaded() is the base no-op, so 'loaded'
|
|
149
|
+
* fired synchronously and the caller's chain does not yield - a template-only
|
|
150
|
+
* component's boot stays synchronous. Otherwise a promise for on_loaded() + 'loaded'.
|
|
151
|
+
* @private
|
|
152
|
+
*/
|
|
153
|
+
private _loaded_without_on_load;
|
|
118
154
|
/**
|
|
119
155
|
* Boot - Start the full component lifecycle
|
|
120
156
|
* Called immediately after construction by instruction processor
|
|
@@ -124,6 +160,13 @@ export declare class Jqhtml_Component {
|
|
|
124
160
|
* @private
|
|
125
161
|
*/
|
|
126
162
|
_boot(): Promise<void>;
|
|
163
|
+
/**
|
|
164
|
+
* The component render(sid) and _render(sid) delegate to: the one on this
|
|
165
|
+
* component's $sid element. Throws when there is no such element, or when it is
|
|
166
|
+
* not a component (no $redrawable).
|
|
167
|
+
* @private
|
|
168
|
+
*/
|
|
169
|
+
private _redraw_target;
|
|
127
170
|
/**
|
|
128
171
|
* Internal render phase - Create DOM structure
|
|
129
172
|
* Called top-down (parent before children) when part of lifecycle
|
|
@@ -136,6 +179,51 @@ export declare class Jqhtml_Component {
|
|
|
136
179
|
_render(id?: string | null, options?: {
|
|
137
180
|
skip_on_render?: boolean;
|
|
138
181
|
}): number;
|
|
182
|
+
/**
|
|
183
|
+
* Record what this render was made from, for _reload(): the args (did they change
|
|
184
|
+
* since, so try the cache?) and the data (did refresh() bring anything new?).
|
|
185
|
+
*
|
|
186
|
+
* Skipped for a component with no custom on_load(). _reload() is the only reader of
|
|
187
|
+
* both fields and returns before reading them for such a component - it just
|
|
188
|
+
* re-renders - so serializing args and data on every one of its renders bought
|
|
189
|
+
* nothing. For a list of row components that was most of the cost of a re-render.
|
|
190
|
+
* @private
|
|
191
|
+
*/
|
|
192
|
+
private _record_render_snapshots;
|
|
193
|
+
/**
|
|
194
|
+
* The serialized text of this.data - Jqhtml_Local_Storage.serialize() output - used
|
|
195
|
+
* for every "did this.data change?" decision (_should_rerender(), load(), _reload(),
|
|
196
|
+
* refresh()) and as the text written to the cache and handed to load followers.
|
|
197
|
+
*
|
|
198
|
+
* One text per data generation. The text a load result was normalized through is
|
|
199
|
+
* installed directly (_assign_load_result()), and any other text is computed once
|
|
200
|
+
* and kept while this.data is frozen - frozen data cannot change, and every way of
|
|
201
|
+
* replacing it (the data setter, an unfrozen set/delete) clears the text. It is
|
|
202
|
+
* computed from the raw data object, not through the deep-freeze proxies, which
|
|
203
|
+
* would allocate a read-only wrapper for every nested object they hand out.
|
|
204
|
+
*
|
|
205
|
+
* The cache serializer, not JSON.stringify: JSON renders every Map and Set as {},
|
|
206
|
+
* so data loaded into one never registered as changed.
|
|
207
|
+
* @private
|
|
208
|
+
*/
|
|
209
|
+
_data_text(): string;
|
|
210
|
+
/**
|
|
211
|
+
* Make a load result this.data: normalize it through the cache serializer, assign it
|
|
212
|
+
* (unfreeze, assign, refreeze), and keep the text it was normalized through as the new
|
|
213
|
+
* generation's _data_text(). Returns that text.
|
|
214
|
+
*
|
|
215
|
+
* Every on_load() result goes through here - in EVERY cache mode, not just 'data'.
|
|
216
|
+
* Two consequences the rest of the framework depends on:
|
|
217
|
+
* - this.data is jqhtml's own copy. The author's object graph is never aliased,
|
|
218
|
+
* so mutating what on_load() returned cannot reach a frozen this.data.
|
|
219
|
+
* - this.data is BY CONSTRUCTION what the cache stores and what a cache hit
|
|
220
|
+
* returns. Hot and cold are the same object shape in every mode, so turning
|
|
221
|
+
* caching on can never change what a component sees.
|
|
222
|
+
* Dates, Maps, Sets and register_cache_class() classes are reconstructed; anything
|
|
223
|
+
* the serializer cannot express is dropped and warned about once (local-storage.ts).
|
|
224
|
+
* @private
|
|
225
|
+
*/
|
|
226
|
+
private _assign_load_result;
|
|
139
227
|
/**
|
|
140
228
|
* Public render method - re-renders component and completes lifecycle
|
|
141
229
|
* This is what users should call when they want to update a component.
|
|
@@ -245,6 +333,39 @@ export declare class Jqhtml_Component {
|
|
|
245
333
|
* @private
|
|
246
334
|
*/
|
|
247
335
|
private _execute_on_load_detached;
|
|
336
|
+
/**
|
|
337
|
+
* Run on_load() for a load, routing a failure through on_load_error().
|
|
338
|
+
*
|
|
339
|
+
* @returns What _execute_on_load_detached() returns on success. After a failure an
|
|
340
|
+
* on_load_error() override recovered from: the fallback data, with no
|
|
341
|
+
* coordination (fallback data is never handed to deduplication followers).
|
|
342
|
+
* null when the component was stopped and the load is abandoned.
|
|
343
|
+
* Throws when the failure is not recovered (see _run_load_error_hook()).
|
|
344
|
+
* @private
|
|
345
|
+
*/
|
|
346
|
+
private _execute_on_load_or_recover;
|
|
347
|
+
/**
|
|
348
|
+
* A load failed: this component's on_load() threw, or the deduplicated load it shared
|
|
349
|
+
* did. Every caller (boot, reload(), refresh(), load()) comes through here.
|
|
350
|
+
*
|
|
351
|
+
* - Latches _load_failed: from now on this instance neither reads nor writes the
|
|
352
|
+
* cache, in any cache mode, even after a later successful load.
|
|
353
|
+
* - on_load_error() not overridden: the base prints the error and it is rethrown. The
|
|
354
|
+
* boot path stops the component; reload()/refresh()/load() reject. Unchanged.
|
|
355
|
+
* - Overridden: the override runs in on_load()'s detached context (read this.args,
|
|
356
|
+
* write this.data from the on_create() snapshot) and the data it leaves is
|
|
357
|
+
* returned as the fallback; the lifecycle continues with it. If the override
|
|
358
|
+
* throws, that is rethrown - the no-override path, without the base's print.
|
|
359
|
+
*
|
|
360
|
+
* @returns The fallback data, or null if the component is (or became) stopped
|
|
361
|
+
* @private
|
|
362
|
+
*/
|
|
363
|
+
private _run_load_error_hook;
|
|
364
|
+
/**
|
|
365
|
+
* Throw unless on_load() left this.data as an object (arrays included).
|
|
366
|
+
* @private
|
|
367
|
+
*/
|
|
368
|
+
private _check_load_result;
|
|
248
369
|
/**
|
|
249
370
|
* Apply the result of on_load() to this.data via the sequential queue.
|
|
250
371
|
*
|
|
@@ -252,7 +373,8 @@ export declare class Jqhtml_Component {
|
|
|
252
373
|
* ensures that setting this.data happens in FIFO order.
|
|
253
374
|
*
|
|
254
375
|
* @param result_data - The data returned from _execute_on_load_detached
|
|
255
|
-
* @param data_before_load -
|
|
376
|
+
* @param data_before_load - _data_text() of this.data before on_load (for change detection), or null
|
|
377
|
+
* @returns The serialized text of the data applied (see _assign_load_result())
|
|
256
378
|
* @private
|
|
257
379
|
*/
|
|
258
380
|
private _apply_load_result;
|
|
@@ -262,6 +384,55 @@ export declare class Jqhtml_Component {
|
|
|
262
384
|
* @private
|
|
263
385
|
*/
|
|
264
386
|
_ready(): Promise<void>;
|
|
387
|
+
/**
|
|
388
|
+
* Set the ready state and fire 'ready'. The state is set BEFORE the trigger so a
|
|
389
|
+
* handler that calls ready() during dispatch takes the already-ready fast path.
|
|
390
|
+
* @private
|
|
391
|
+
*/
|
|
392
|
+
private _fire_ready;
|
|
393
|
+
/**
|
|
394
|
+
* A render/reload/refresh entry reached its 'ready' point. Deferred to the queue going
|
|
395
|
+
* idle (_on_queue_idle()) while 'ready' is already owed (boot ended with calls queued)
|
|
396
|
+
* or a promoted call is still running (see _queue_call()) - a promoted entry counts
|
|
397
|
+
* itself, so it never fires 'ready' in the middle of the cycle it is nested in.
|
|
398
|
+
* @private
|
|
399
|
+
*/
|
|
400
|
+
private _entry_ready_point;
|
|
401
|
+
/**
|
|
402
|
+
* The lifecycle queue went idle. Fires the 'ready' boot deferred because calls were
|
|
403
|
+
* queued when it ended (see _ready()).
|
|
404
|
+
* @private
|
|
405
|
+
*/
|
|
406
|
+
private _on_queue_idle;
|
|
407
|
+
/**
|
|
408
|
+
* True (and logged in verbose mode) when a newer load has started since the load
|
|
409
|
+
* numbered `load_seq` began. The older result is dropped: applying it would put
|
|
410
|
+
* data fetched for older args over newer data. The lifecycle lock already prevents
|
|
411
|
+
* overlapping loads; this guards any path that ever does overlap.
|
|
412
|
+
* @private
|
|
413
|
+
*/
|
|
414
|
+
private _load_superseded;
|
|
415
|
+
/**
|
|
416
|
+
* Put a render/load/reload/refresh call on this component's lifecycle queue.
|
|
417
|
+
*
|
|
418
|
+
* Where the call was made decides what its promise does when awaited:
|
|
419
|
+
* - from this component's own on_create()/on_render(): warned at once (development).
|
|
420
|
+
* It is queued behind the running lifecycle step, so it does not run there.
|
|
421
|
+
* - while this component's on_ready() runs: awaiting (or chaining) the promise before
|
|
422
|
+
* on_ready() has settled pulls the queued call forward and runs it at once, nested
|
|
423
|
+
* (Component_Queue.promote()). Unawaited, it runs after on_ready() returns.
|
|
424
|
+
* - while on_loaded() runs: awaiting it before on_loaded() has settled warns
|
|
425
|
+
* (development). It cannot start until on_loaded() returns - a deadlock.
|
|
426
|
+
* - while on_load() runs, or anywhere else: a plain promise; the call waits its turn.
|
|
427
|
+
* @param method - Public method name, for the warnings
|
|
428
|
+
* @param key - Queue key: method plus arguments. Only identical keys merge.
|
|
429
|
+
* @param async_hops - Settle the caller a few microtasks after the queue does, as an
|
|
430
|
+
* async method would. load()/reload()/refresh() were async methods; the extra hops
|
|
431
|
+
* put a caller's `await` after the queue has released the lock, so
|
|
432
|
+
* `await c.reload(); c.render();` starts the render at once instead of queueing it.
|
|
433
|
+
* @private
|
|
434
|
+
*/
|
|
435
|
+
private _queue_call;
|
|
265
436
|
/**
|
|
266
437
|
* Public API: Wait for component to be fully ready
|
|
267
438
|
* Returns a promise that resolves when the component reaches ready state.
|
|
@@ -284,6 +455,26 @@ export declare class Jqhtml_Component {
|
|
|
284
455
|
* @param callback Optional callback to execute when ready
|
|
285
456
|
*/
|
|
286
457
|
ready(callback?: () => void): Promise<void>;
|
|
458
|
+
/**
|
|
459
|
+
* Promise that resolves when `event_name` fires OR the component stops, whichever
|
|
460
|
+
* comes first - resolves immediately if the component is already stopped. Used by
|
|
461
|
+
* ready(), rendered() and _wait_for_children_ready(): a stopped component never
|
|
462
|
+
* fires either event again, so waiting on the event alone hangs every waiter
|
|
463
|
+
* forever.
|
|
464
|
+
*
|
|
465
|
+
* Resolves rather than rejects: the documented contract is that waiters on a
|
|
466
|
+
* failed or stopped component are RELEASED, and existing `await comp.ready()` code
|
|
467
|
+
* does not catch. Callers that need to know can check `_stopped` afterwards.
|
|
468
|
+
*
|
|
469
|
+
* The optional callback runs ONLY when the event itself fires, never on stop: it
|
|
470
|
+
* is developer code written for a ready/rendered DOM, and calling it on a stopped
|
|
471
|
+
* component would be a new call into user code the contract never made.
|
|
472
|
+
*
|
|
473
|
+
* Both listeners are one-shot and the first to fire removes the other, so repeated
|
|
474
|
+
* waits on a long-lived component do not accumulate handlers in either queue.
|
|
475
|
+
* @private
|
|
476
|
+
*/
|
|
477
|
+
private _settle_on;
|
|
287
478
|
/**
|
|
288
479
|
* Returns a promise that resolves when the component has completed its
|
|
289
480
|
* synchronous render chain (after on_load's re-render if applicable,
|
|
@@ -321,25 +512,25 @@ export declare class Jqhtml_Component {
|
|
|
321
512
|
*/
|
|
322
513
|
private _wait_for_children_on_render;
|
|
323
514
|
/**
|
|
324
|
-
* Reload component - re-fetch data and re-render
|
|
515
|
+
* Reload component - re-fetch data and re-render.
|
|
325
516
|
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
517
|
+
* Goes through the component's lifecycle queue: while the component is busy (boot,
|
|
518
|
+
* or another entry running) the call waits as an entry and runs in order. It merges
|
|
519
|
+
* only into an identical call waiting right before it (see Component_Queue).
|
|
328
520
|
*
|
|
329
521
|
* @param always_render - If true (default), always re-render after on_load().
|
|
330
|
-
* If false, only re-render if data actually changed.
|
|
522
|
+
* If false, only re-render if data actually changed (refresh()).
|
|
331
523
|
*/
|
|
332
524
|
reload(always_render?: boolean): Promise<void>;
|
|
333
525
|
/**
|
|
334
|
-
* Refresh component - re-fetch data and re-render only if data changed
|
|
335
|
-
*
|
|
336
|
-
* Similar to reload() but only re-renders if the data actually changed after on_load().
|
|
337
|
-
* Useful for checking server for updates without forcing unnecessary re-renders.
|
|
526
|
+
* Refresh component - re-fetch data and re-render only if data changed.
|
|
338
527
|
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
528
|
+
* Same as reload(false). Queued like reload(); a refresh() and a reload() are
|
|
529
|
+
* separate entries and each runs with its own render rule.
|
|
341
530
|
*/
|
|
342
531
|
refresh(): Promise<void>;
|
|
532
|
+
/** @private - shared by reload() and refresh() */
|
|
533
|
+
private _queue_reload;
|
|
343
534
|
/**
|
|
344
535
|
* Re-render this component from its on_create() state with its cache dropped and
|
|
345
536
|
* WITHOUT running on_load()/on_loaded()/on_ready().
|
|
@@ -356,8 +547,10 @@ export declare class Jqhtml_Component {
|
|
|
356
547
|
*
|
|
357
548
|
* COMPLETE RELOAD PROCESS (Source of Truth):
|
|
358
549
|
*
|
|
359
|
-
* STEP 1: Cache check (if args changed since last render)
|
|
360
|
-
* - Generate cache key from component name + current args
|
|
550
|
+
* STEP 1: Cache key refresh, cache check (if args changed since last render)
|
|
551
|
+
* - Generate cache key from component name + current args, and ALWAYS store it
|
|
552
|
+
* (null included) so this reload's writes go to the current args' entry
|
|
553
|
+
* - Set or clear data-nocache (and the dev warning) as boot and load() do
|
|
361
554
|
* - If cached data exists and is non-empty:
|
|
362
555
|
* - Unfreeze this.data (temporarily)
|
|
363
556
|
* - Hydrate this.data with cached data
|
|
@@ -370,7 +563,8 @@ export declare class Jqhtml_Component {
|
|
|
370
563
|
* - Restore this.data to on_create() snapshot
|
|
371
564
|
* - Call on_load() directly (no _load() wrapper)
|
|
372
565
|
* - Freeze this.data after completion
|
|
373
|
-
* - If data changed and non-empty
|
|
566
|
+
* - If data changed and non-empty, or is unchanged but the cache key moved
|
|
567
|
+
* (new args): write to cache
|
|
374
568
|
*
|
|
375
569
|
* STEP 3: Conditionally re-render
|
|
376
570
|
* - If didn't render from cache yet, OR data changed after on_load():
|
|
@@ -379,13 +573,24 @@ export declare class Jqhtml_Component {
|
|
|
379
573
|
* STEP 3.5: Wait for all children to be ready
|
|
380
574
|
* - Bottom-up ordering (children ready before parent)
|
|
381
575
|
* - Same as main lifecycle
|
|
576
|
+
* - html cache mode: snapshot the post-reload markup if this load changed data
|
|
382
577
|
*
|
|
383
578
|
* STEP 4: Call on_ready()
|
|
384
579
|
* - Always call on_ready() after reload completes
|
|
385
580
|
*
|
|
386
|
-
*
|
|
581
|
+
* A failed cycle (on_load() failure not recovered by on_load_error(), or any other
|
|
582
|
+
* throw) restores the ready state it found before rejecting - see below.
|
|
583
|
+
*
|
|
584
|
+
* @param force_render - true for reload() (always render), false for refresh()
|
|
585
|
+
* (render only if the data changed)
|
|
586
|
+
* @private - Use reload() / refresh() instead (queued wrappers)
|
|
587
|
+
*/
|
|
588
|
+
_reload(force_render?: boolean): Promise<void>;
|
|
589
|
+
/**
|
|
590
|
+
* The body of _reload(), after the ready marker has been invalidated.
|
|
591
|
+
* @private
|
|
387
592
|
*/
|
|
388
|
-
|
|
593
|
+
private _reload_cycle;
|
|
389
594
|
/**
|
|
390
595
|
* Destroy the component and cleanup
|
|
391
596
|
* Called automatically by MutationObserver when component is removed from DOM
|
|
@@ -406,6 +611,17 @@ export declare class Jqhtml_Component {
|
|
|
406
611
|
on_create(): void;
|
|
407
612
|
on_load(): void | Promise<void>;
|
|
408
613
|
on_loaded(): void | Promise<void>;
|
|
614
|
+
/**
|
|
615
|
+
* Called when on_load() throws (or the deduplicated load this component shared
|
|
616
|
+
* fails), with the error. Same access as on_load(): read this.args, write this.data.
|
|
617
|
+
*
|
|
618
|
+
* This base implementation prints the error. Not overriding it, the failure then
|
|
619
|
+
* takes its usual course: a failed boot stops the component, a failed
|
|
620
|
+
* reload()/refresh()/load() rejects. Overriding it, the component continues - it
|
|
621
|
+
* renders the this.data the override leaves, then fires 'ready'. An override may call
|
|
622
|
+
* super.on_load_error(error) to keep the print; one that throws stops the component.
|
|
623
|
+
*/
|
|
624
|
+
on_load_error(error: any): void | Promise<void>;
|
|
409
625
|
on_ready(): Promise<void>;
|
|
410
626
|
on_stop(): void;
|
|
411
627
|
on_attach(): void;
|
|
@@ -499,13 +715,13 @@ export declare class Jqhtml_Component {
|
|
|
499
715
|
* Register event callback - delegates to component-events.ts
|
|
500
716
|
* @see component-events.ts for full documentation
|
|
501
717
|
*/
|
|
502
|
-
on(event_name: string, callback: (component: Jqhtml_Component, data?: any) => void): this;
|
|
718
|
+
on(event_name: string, callback: (this: Jqhtml_Component, component: Jqhtml_Component, data?: any) => void): this;
|
|
503
719
|
/**
|
|
504
720
|
* Register a callback that fires exactly once - delegates to component-events.ts
|
|
505
721
|
* If the event already occurred, fires immediately and does not register.
|
|
506
722
|
* @see component-events.ts for full documentation
|
|
507
723
|
*/
|
|
508
|
-
once(event_name: string, callback: (component: Jqhtml_Component, data?: any) => void): this;
|
|
724
|
+
once(event_name: string, callback: (this: Jqhtml_Component, component: Jqhtml_Component, data?: any) => void): this;
|
|
509
725
|
/**
|
|
510
726
|
* Trigger a lifecycle event - delegates to component-events.ts
|
|
511
727
|
* @see component-events.ts for full documentation
|
|
@@ -624,6 +840,6 @@ export declare class Jqhtml_Component {
|
|
|
624
840
|
*/
|
|
625
841
|
private _get_dom_children;
|
|
626
842
|
private _log_lifecycle;
|
|
627
|
-
private _log_debug;
|
|
628
843
|
}
|
|
844
|
+
export declare const base_on_viewport_resize: (viewport_width: number) => void;
|
|
629
845
|
//# sourceMappingURL=component.d.ts.map
|
package/dist/component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAeH,OAAO,EAA6C,sBAAsB,EAAE,MAAM,qBAA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;;;;;;;;;OAwBG;IACH,OAAO,CAAC,oBAAoB;IAsB5B,OAAO,CAAC,kBAAkB;IA8B1B,OAAO,CAAC,yBAAyB;IAsIjC,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,gBAAgB;IAcxB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,cAAc;CAsBvB;AAID,eAAO,MAAM,uBAAuB,mBA1lBC,MAAM,KAAG,IA0lBsC,CAAC"}
|
package/dist/data-proxy.d.ts
CHANGED
|
@@ -3,28 +3,42 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extracted from component.ts - handles:
|
|
5
5
|
* - Data freeze/unfreeze enforcement via Proxy
|
|
6
|
-
* - Detached on_load() execution with restricted access
|
|
6
|
+
* - Detached on_load() / on_load_error() execution with restricted access
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* `this.data[RAW_DATA]` is the RAW object behind the freeze proxy. Framework code
|
|
10
|
+
* that only READS the whole of this.data (serializing it for change detection) goes
|
|
11
|
+
* through it, so it does not build a read-only wrapper for every nested object it
|
|
12
|
+
* walks while this.data is frozen. A symbol: no key in author data can collide with
|
|
13
|
+
* it, and Object.keys / for..in / JSON never see it.
|
|
14
|
+
*/
|
|
15
|
+
export declare const RAW_DATA: unique symbol;
|
|
8
16
|
/**
|
|
9
17
|
* Set up the `this.data` property on a component using Object.defineProperty
|
|
10
18
|
* with a Proxy that enforces freeze/unfreeze semantics.
|
|
11
19
|
*
|
|
12
20
|
* After setup:
|
|
13
21
|
* - `this.data` reads/writes go through a Proxy
|
|
14
|
-
* - When `component.__data_frozen === true`,
|
|
22
|
+
* - When `component.__data_frozen === true`, every mutation route throws: assignment,
|
|
23
|
+
* delete, Object.defineProperty, Object.setPrototypeOf, Object.preventExtensions /
|
|
24
|
+
* seal / freeze - on this.data and, through the read-only wrappers, on anything
|
|
25
|
+
* nested in it. A property descriptor's value is the read-only wrapper too.
|
|
15
26
|
* - When frozen is false, writes pass through normally
|
|
16
27
|
*
|
|
17
28
|
* @param component - The component instance to set up data on
|
|
18
29
|
*/
|
|
19
30
|
export declare function setup_data_property(component: any): void;
|
|
20
31
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
* `this[LOAD_HOOK_OWNER]` on the restricted `this` of on_load()/on_load_error() is the
|
|
33
|
+
* real component. Framework code reached from inside the hook - the base
|
|
34
|
+
* on_load_error(), called by an override through super - uses it to name the
|
|
35
|
+
* component. A module symbol: author code cannot reach it, and the restriction on
|
|
36
|
+
* every other property stays in force.
|
|
37
|
+
*/
|
|
38
|
+
export declare const LOAD_HOOK_OWNER: unique symbol;
|
|
39
|
+
/**
|
|
40
|
+
* Execute on_load() in a detached context with restricted access (see
|
|
41
|
+
* create_detached_context()).
|
|
28
42
|
*
|
|
29
43
|
* @param component - The component instance
|
|
30
44
|
* @param dedup_key - The dedup key captured by the caller, or null to run uncoordinated.
|
|
@@ -35,6 +49,14 @@ export declare function setup_data_property(component: any): void;
|
|
|
35
49
|
*/
|
|
36
50
|
export declare function execute_on_load_detached(component: any, dedup_key?: string | null): Promise<{
|
|
37
51
|
data: Record<string, any>;
|
|
38
|
-
complete_coordination: ((
|
|
52
|
+
complete_coordination: ((final_text: string | null) => void) | null;
|
|
39
53
|
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Execute an on_load_error() override in the same detached context as on_load(): read
|
|
56
|
+
* this.args, write this.data (starting again from the on_create() snapshot), nothing
|
|
57
|
+
* else. Never coordinated - fallback data is never handed to deduplication followers.
|
|
58
|
+
*
|
|
59
|
+
* @returns The data the hook left in this.data (the fallback); throws what the hook throws
|
|
60
|
+
*/
|
|
61
|
+
export declare function execute_on_load_error_detached(component: any, error: any): Promise<Record<string, any>>;
|
|
40
62
|
//# sourceMappingURL=data-proxy.d.ts.map
|
package/dist/data-proxy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-proxy.d.ts","sourceRoot":"","sources":["../src/data-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"data-proxy.d.ts","sourceRoot":"","sources":["../src/data-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,EAAE,OAAO,MAAkC,CAAC;AAkHjE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,CAmKxD;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,MAAyC,CAAC;AAmK/E;;;;;;;;;;GAUG;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,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;CACrE,CAAC,CA6BD;AAED;;;;;;GAMG;AACH,wBAAsB,8BAA8B,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAI7G"}
|
package/dist/debug.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare function logInstruction(type: string, data: any): void;
|
|
|
15
15
|
export declare function logDataChange(component: Jqhtml_Component, property: string, oldValue: any, newValue: any): void;
|
|
16
16
|
export declare function logDispatch(url: string, route: any, params: any, verbose?: boolean): void;
|
|
17
17
|
export declare function isSequentialProcessing(): boolean;
|
|
18
|
-
export declare function handleComponentError(component: Jqhtml_Component, phase: string, error: Error): void;
|
|
18
|
+
export declare function handleComponentError(component: Jqhtml_Component, phase: string, error: Error, already_printed?: boolean): void;
|
|
19
19
|
//# sourceMappingURL=debug.d.ts.map
|
package/dist/debug.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../src/debug.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAQvD;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAY7C;AAuDD,wBAAgB,YAAY,CAAC,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAmD3G;AAGD,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,IAAI,CAqBhF;AAGD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,CAK5D;AAGD,wBAAgB,aAAa,CAAC,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,GAAG,IAAI,CAM/G;AAUD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAE,OAAe,GAAG,IAAI,CAoBhG;AAGD,wBAAgB,sBAAsB,IAAI,OAAO,CAGhD;AAGD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../src/debug.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAg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