assign-gingerly 0.0.53 → 0.0.55
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/README.md +847 -5
- package/assignFrom.js +229 -9
- package/assignFrom.ts +338 -9
- package/assignGingerly.js +34 -1
- package/assignGingerly.ts +54 -1
- package/beVigilant.js +73 -0
- package/beVigilant.ts +85 -0
- package/enhanceAll.js +106 -0
- package/enhanceAll.ts +138 -0
- package/handlers/join.js +74 -0
- package/handlers/join.ts +80 -0
- package/handlers/lazyLoad.js +212 -0
- package/handlers/lazyLoad.ts +307 -0
- package/handlers/lazyLoadSwitch.js +58 -0
- package/handlers/lazyLoadSwitch.ts +63 -0
- package/handlers/microDataJoin.js +184 -0
- package/handlers/microDataJoin.ts +270 -0
- package/inferencer/.gitmodules +3 -0
- package/inferencer/.vscode/settings.json +2 -0
- package/inferencer/InferencedPropagator.js +230 -0
- package/inferencer/InferencedPropagator.ts +269 -0
- package/inferencer/LICENSE +21 -0
- package/inferencer/README.md +524 -0
- package/inferencer/Requirements/SupportForPropagator.md +368 -0
- package/inferencer/imports.html +7 -0
- package/inferencer/inferencer.js +254 -0
- package/inferencer/inferencer.ts +292 -0
- package/inferencer/package-lock.json +129 -0
- package/inferencer/package.json +60 -0
- package/inferencer/playwright-report/data/507ad515125e13390ea07de92f22331c913fa068.md +55 -0
- package/inferencer/playwright-report/index.html +90 -0
- package/inferencer/playwright.config.ts +54 -0
- package/inferencer/test-results/.last-run.json +6 -0
- package/inferencer/test-results/inferencer-Inferencer-Enha-535bc-inferencer-tests-in-browser-chromium/error-context.md +55 -0
- package/inferencer/tests/inferencedPropagator.html +428 -0
- package/inferencer/tests/inferencedPropagator.spec.ts +18 -0
- package/inferencer/tests/inferencer.html +355 -0
- package/inferencer/tests/inferencer.spec.ts +19 -0
- package/inferencer/tsconfig.json +19 -0
- package/inferencer/types/.kiro/specs/conversion-template/README.md +128 -0
- package/inferencer/types/.kiro/specs/conversion-template/design.md +360 -0
- package/inferencer/types/.kiro/specs/conversion-template/requirements.md +191 -0
- package/inferencer/types/.kiro/specs/conversion-template/tasks.md +174 -0
- package/inferencer/types/.kiro/steering/coding-standards.md +53 -0
- package/inferencer/types/.kiro/steering/conversion-guide.md +108 -0
- package/inferencer/types/.kiro/steering/declarative-configuration.md +108 -0
- package/inferencer/types/.kiro/steering/emc-json-serializability.md +306 -0
- package/inferencer/types/EnhancementConversionInstructions.md +1854 -0
- package/inferencer/types/LICENSE +21 -0
- package/inferencer/types/NewCustomElement.md +388 -0
- package/inferencer/types/NewCustomElementFeature.md +683 -0
- package/inferencer/types/NewEnhancementInstructions.md +705 -0
- package/inferencer/types/README.md +2 -0
- package/inferencer/types/agrace/types.d.ts +11 -0
- package/inferencer/types/assign-gingerly/types.d.ts +572 -0
- package/inferencer/types/be-a-beacon/types.d.ts +17 -0
- package/inferencer/types/be-bound/types.d.ts +66 -0
- package/inferencer/types/be-buttoned-up/types.d.ts +19 -0
- package/inferencer/types/be-calculating/types.d.ts +54 -0
- package/inferencer/types/be-clonable/types.d.ts +38 -0
- package/inferencer/types/be-committed/types.d.ts +22 -0
- package/inferencer/types/be-consoling/types.d.ts +24 -0
- package/inferencer/types/be-decked-with/types.d.ts +26 -0
- package/inferencer/types/be-delible/types.d.ts +27 -0
- package/inferencer/types/be-dispatching/types.d.ts +34 -0
- package/inferencer/types/be-evanescent/types.d.ts +20 -0
- package/inferencer/types/be-flashy/types.d.ts +21 -0
- package/inferencer/types/be-gone/types.d.ts +25 -0
- package/inferencer/types/be-observing/types.d.ts +55 -0
- package/inferencer/types/be-reflective/types.d.ts +78 -0
- package/inferencer/types/be-reformable/types.d.ts +49 -0
- package/inferencer/types/be-render-neutral/types.d.ts +32 -0
- package/inferencer/types/be-switched/types.d.ts +146 -0
- package/inferencer/types/be-typed/types.d.ts +32 -0
- package/inferencer/types/be-valued/types.d.ts +22 -0
- package/inferencer/types/data-props/types.d.ts +34 -0
- package/inferencer/types/do-inc/types.d.ts +56 -0
- package/inferencer/types/do-invoke/types.d.ts +38 -0
- package/inferencer/types/do-merge/types.d.ts +28 -0
- package/inferencer/types/do-toggle/types.d.ts +31 -0
- package/inferencer/types/face-up/types.d.ts +100 -0
- package/inferencer/types/fetch-for/types.d.ts +36 -0
- package/inferencer/types/folder-picker/types.d.ts +21 -0
- package/inferencer/types/global.d.ts +29 -0
- package/inferencer/types/id-generation/types.d.ts +26 -0
- package/inferencer/types/inferencer/types.d.ts +46 -0
- package/inferencer/types/mount-observer/types.d.ts +363 -0
- package/inferencer/types/nested-regex-groups/types.d.ts +107 -0
- package/inferencer/types/pipe-in/types.d.ts +52 -0
- package/inferencer/types/roundabout/types.d.ts +268 -0
- package/inferencer/types/soak-up/types.d.ts +40 -0
- package/inferencer/types/templ-maker/types.d.ts +43 -0
- package/inferencer/types/time-ticker/types.d.ts +62 -0
- package/inferencer/types/truth-sourcer/types.d.ts +44 -0
- package/inferencer/upSearch.js +27 -0
- package/inferencer/upSearch.ts +26 -0
- package/inferencer/withScopePerimeter.js +27 -0
- package/inferencer/withScopePerimeter.ts +33 -0
- package/inferredAssignments.js +38 -0
- package/inferredAssignments.ts +65 -0
- package/isAllowedImportPath.js +42 -0
- package/isAllowedImportPath.ts +53 -0
- package/package.json +57 -3
- package/paths.js +231 -0
- package/paths.ts +413 -0
- package/processHandlerCommands.js +188 -0
- package/processHandlerCommands.ts +217 -0
- package/resolveIdRef.js +144 -0
- package/resolveIdRef.ts +170 -0
- package/resolveValues.js +41 -2
- package/resolveValues.ts +41 -1
- package/transitionHelper.js +109 -0
- package/transitionHelper.ts +132 -0
- package/types/assign-gingerly/types.d.ts +89 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* transitionHelper.js — Shared view transition coordination utility.
|
|
3
|
+
*
|
|
4
|
+
* Provides transition state management, the startViewTransition wrapper with
|
|
5
|
+
* cancel/re-entry protection, and one-time CSS style injection.
|
|
6
|
+
*
|
|
7
|
+
* Used by lazyLoad, lazyLoadSwitch, and available for external consumers
|
|
8
|
+
* like be-switched.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* import { withTransition, ensureHideStyle } from 'assign-gingerly/transitionHelper.js';
|
|
12
|
+
*
|
|
13
|
+
* ensureHideStyle(rootNode); // inject default .ag-hide style once
|
|
14
|
+
*
|
|
15
|
+
* withTransition(markerNode, 'show', true, () => {
|
|
16
|
+
* element.classList.remove('ag-hide');
|
|
17
|
+
* });
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Module-level state map: marker node → transition state.
|
|
22
|
+
* WeakMap ensures cleanup when markers are GC'd.
|
|
23
|
+
*/
|
|
24
|
+
const stateMap = new WeakMap();
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Get or create transition state for a marker node.
|
|
28
|
+
*/
|
|
29
|
+
export function getTransitionState(markerNode) {
|
|
30
|
+
let state = stateMap.get(markerNode);
|
|
31
|
+
if (!state) {
|
|
32
|
+
state = { showPending: false, hidePending: false };
|
|
33
|
+
stateMap.set(markerNode, state);
|
|
34
|
+
}
|
|
35
|
+
return state;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Execute a DOM mutation with optional view transition coordination.
|
|
40
|
+
*
|
|
41
|
+
* When `transitional` is true and `document.startViewTransition` is available:
|
|
42
|
+
* - Cancels any in-flight transition for this marker
|
|
43
|
+
* - Prevents re-entry (duplicate show/hide while one is pending)
|
|
44
|
+
* - Wraps the mutation in `document.startViewTransition`
|
|
45
|
+
*
|
|
46
|
+
* When `transitional` is false or the API is unavailable:
|
|
47
|
+
* - Executes the mutation directly (no animation)
|
|
48
|
+
*
|
|
49
|
+
* @param {Node} markerNode - The DOM node used as state key
|
|
50
|
+
* @param {'show' | 'hide'} direction - Determines which pending flag to check
|
|
51
|
+
* @param {boolean} transitional - Whether to use view transitions
|
|
52
|
+
* @param {() => void} domMutation - The function that performs the actual DOM changes
|
|
53
|
+
*/
|
|
54
|
+
export function withTransition(markerNode, direction, transitional, domMutation) {
|
|
55
|
+
if (!transitional || typeof document === 'undefined' || !document.startViewTransition) {
|
|
56
|
+
domMutation();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const state = getTransitionState(markerNode);
|
|
61
|
+
|
|
62
|
+
if (direction === 'show') {
|
|
63
|
+
state.hidePending = false;
|
|
64
|
+
if (state.showPending) return;
|
|
65
|
+
state.showPending = true;
|
|
66
|
+
state.active?.skipTransition();
|
|
67
|
+
state.active = document.startViewTransition(domMutation);
|
|
68
|
+
state.active.finished.finally(() => { state.showPending = false; });
|
|
69
|
+
} else {
|
|
70
|
+
state.showPending = false;
|
|
71
|
+
if (state.hidePending) return;
|
|
72
|
+
state.hidePending = true;
|
|
73
|
+
state.active?.skipTransition();
|
|
74
|
+
state.active = document.startViewTransition(domMutation);
|
|
75
|
+
state.active.finished.finally(() => { state.hidePending = false; });
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Track which rootNodes already have the hide style injected.
|
|
81
|
+
*/
|
|
82
|
+
const styleInjected = new WeakSet();
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Default CSS class name for hidden elements during transitions.
|
|
86
|
+
*/
|
|
87
|
+
export const DEFAULT_HIDE_CLASS = 'ag-hide';
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Ensure the hide class style is injected into the rootNode (once per rootNode).
|
|
91
|
+
*
|
|
92
|
+
* @param {any} rootNode - The Document, ShadowRoot, or element root to inject into
|
|
93
|
+
* @param {string} [hideClass='ag-hide'] - CSS class name
|
|
94
|
+
* @param {string} [hideCss='display: none'] - CSS properties for the hide class
|
|
95
|
+
*/
|
|
96
|
+
export function ensureHideStyle(rootNode, hideClass = DEFAULT_HIDE_CLASS, hideCss = 'display: none') {
|
|
97
|
+
// Determine the injection target (shadowRoot or document.head)
|
|
98
|
+
let target = rootNode;
|
|
99
|
+
if (target.host === undefined && typeof document !== 'undefined') {
|
|
100
|
+
target = document.head;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (styleInjected.has(target)) return;
|
|
104
|
+
styleInjected.add(target);
|
|
105
|
+
|
|
106
|
+
const style = document.createElement('style');
|
|
107
|
+
style.textContent = `.${hideClass} { ${hideCss} }`;
|
|
108
|
+
target.appendChild(style);
|
|
109
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* transitionHelper.ts — Shared view transition coordination utility.
|
|
3
|
+
*
|
|
4
|
+
* Provides transition state management, the startViewTransition wrapper with
|
|
5
|
+
* cancel/re-entry protection, and one-time CSS style injection.
|
|
6
|
+
*
|
|
7
|
+
* Used by lazyLoad, lazyLoadSwitch, and available for external consumers
|
|
8
|
+
* like be-switched.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* import { withTransition, ensureHideStyle } from 'assign-gingerly/transitionHelper.js';
|
|
12
|
+
*
|
|
13
|
+
* ensureHideStyle(rootNode); // inject default .ag-hide style once
|
|
14
|
+
*
|
|
15
|
+
* withTransition(markerNode, 'show', true, () => {
|
|
16
|
+
* element.classList.remove('ag-hide');
|
|
17
|
+
* });
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Transition state for a given DOM marker node.
|
|
22
|
+
*/
|
|
23
|
+
export interface TransitionState {
|
|
24
|
+
active?: ViewTransition;
|
|
25
|
+
showPending: boolean;
|
|
26
|
+
hidePending: boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Module-level state map: marker node → transition state.
|
|
31
|
+
* WeakMap ensures cleanup when markers are GC'd.
|
|
32
|
+
*/
|
|
33
|
+
const stateMap = new WeakMap<Node, TransitionState>();
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Get or create transition state for a marker node.
|
|
37
|
+
*/
|
|
38
|
+
export function getTransitionState(markerNode: Node): TransitionState {
|
|
39
|
+
let state = stateMap.get(markerNode);
|
|
40
|
+
if (!state) {
|
|
41
|
+
state = { showPending: false, hidePending: false };
|
|
42
|
+
stateMap.set(markerNode, state);
|
|
43
|
+
}
|
|
44
|
+
return state;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Execute a DOM mutation with optional view transition coordination.
|
|
49
|
+
*
|
|
50
|
+
* When `transitional` is true and `document.startViewTransition` is available:
|
|
51
|
+
* - Cancels any in-flight transition for this marker
|
|
52
|
+
* - Prevents re-entry (duplicate show/hide while one is pending)
|
|
53
|
+
* - Wraps the mutation in `document.startViewTransition`
|
|
54
|
+
*
|
|
55
|
+
* When `transitional` is false or the API is unavailable:
|
|
56
|
+
* - Executes the mutation directly (no animation)
|
|
57
|
+
*
|
|
58
|
+
* @param markerNode - The DOM node used as state key (typically the start comment marker)
|
|
59
|
+
* @param direction - 'show' or 'hide' — determines which pending flag to check
|
|
60
|
+
* @param transitional - Whether to use view transitions
|
|
61
|
+
* @param domMutation - The function that performs the actual DOM changes
|
|
62
|
+
*/
|
|
63
|
+
export function withTransition(
|
|
64
|
+
markerNode: Node,
|
|
65
|
+
direction: 'show' | 'hide',
|
|
66
|
+
transitional: boolean,
|
|
67
|
+
domMutation: () => void
|
|
68
|
+
): void {
|
|
69
|
+
if (!transitional || typeof document === 'undefined' || !document.startViewTransition) {
|
|
70
|
+
domMutation();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const state = getTransitionState(markerNode);
|
|
75
|
+
|
|
76
|
+
if (direction === 'show') {
|
|
77
|
+
state.hidePending = false;
|
|
78
|
+
if (state.showPending) return;
|
|
79
|
+
state.showPending = true;
|
|
80
|
+
state.active?.skipTransition();
|
|
81
|
+
state.active = document.startViewTransition(domMutation);
|
|
82
|
+
state.active.finished.finally(() => { state.showPending = false; });
|
|
83
|
+
} else {
|
|
84
|
+
state.showPending = false;
|
|
85
|
+
if (state.hidePending) return;
|
|
86
|
+
state.hidePending = true;
|
|
87
|
+
state.active?.skipTransition();
|
|
88
|
+
state.active = document.startViewTransition(domMutation);
|
|
89
|
+
state.active.finished.finally(() => { state.hidePending = false; });
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Track which rootNodes already have the hide style injected.
|
|
95
|
+
*/
|
|
96
|
+
const styleInjected = new WeakSet<object>();
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Default CSS class name for hidden elements during transitions.
|
|
100
|
+
*/
|
|
101
|
+
export const DEFAULT_HIDE_CLASS = 'ag-hide';
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Default CSS rule for the hide class.
|
|
105
|
+
*/
|
|
106
|
+
const DEFAULT_HIDE_CSS = `display: none`;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Ensure the hide class style is injected into the rootNode (once per rootNode).
|
|
110
|
+
*
|
|
111
|
+
* @param rootNode - The Document, ShadowRoot, or element root to inject into
|
|
112
|
+
* @param hideClass - CSS class name (default: 'ag-hide')
|
|
113
|
+
* @param hideCss - CSS properties for the hide class (default: 'display: none')
|
|
114
|
+
*/
|
|
115
|
+
export function ensureHideStyle(
|
|
116
|
+
rootNode: any,
|
|
117
|
+
hideClass: string = DEFAULT_HIDE_CLASS,
|
|
118
|
+
hideCss: string = DEFAULT_HIDE_CSS
|
|
119
|
+
): void {
|
|
120
|
+
// Determine the injection target (shadowRoot or document.head)
|
|
121
|
+
let target = rootNode;
|
|
122
|
+
if (target.host === undefined && typeof document !== 'undefined') {
|
|
123
|
+
target = document.head;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (styleInjected.has(target)) return;
|
|
127
|
+
styleInjected.add(target);
|
|
128
|
+
|
|
129
|
+
const style = document.createElement('style');
|
|
130
|
+
style.textContent = `.${hideClass} { ${hideCss} }`;
|
|
131
|
+
target.appendChild(style);
|
|
132
|
+
}
|
|
@@ -64,6 +64,12 @@ export interface EnhancementConfig<T = any, Obj = Element> extends EnhancementCo
|
|
|
64
64
|
|
|
65
65
|
//only applicable when spawning from a DOM Element reference
|
|
66
66
|
enhKey?: EnhKey;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Optional features to associate with the spawn class.
|
|
70
|
+
* Calls assignFeatures(spawn, features) automatically on registration.
|
|
71
|
+
*/
|
|
72
|
+
features?: FeatureConfigsMap;
|
|
67
73
|
|
|
68
74
|
}
|
|
69
75
|
|
|
@@ -300,6 +306,12 @@ export interface ItemscopeManagerConfig<T = any> {
|
|
|
300
306
|
dispose?: string | symbol;
|
|
301
307
|
resolved?: string | symbol;
|
|
302
308
|
};
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Optional features to associate with the manager class.
|
|
312
|
+
* Calls assignFeatures(manager, features) automatically on registration.
|
|
313
|
+
*/
|
|
314
|
+
features?: FeatureConfigsMap;
|
|
303
315
|
}
|
|
304
316
|
|
|
305
317
|
/**
|
|
@@ -481,3 +493,80 @@ export declare class PropertyBag {
|
|
|
481
493
|
customElementRegistry: any;
|
|
482
494
|
constructor(hostElement: any, ctx?: FeatureSpawnContext, initVals?: any);
|
|
483
495
|
}
|
|
496
|
+
|
|
497
|
+
// =============================================================================
|
|
498
|
+
// assignFrom handler types
|
|
499
|
+
// =============================================================================
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Base configuration for an assignFrom handler invocation.
|
|
503
|
+
* The `do` field identifies the handler; `resolve` maps named parameters to path strings.
|
|
504
|
+
*/
|
|
505
|
+
export interface HandlerConfig {
|
|
506
|
+
/** The registered handler name */
|
|
507
|
+
do: string;
|
|
508
|
+
/** Named parameters to resolve against the `from` source before passing to the handler */
|
|
509
|
+
resolve?: Record<string, string>;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Interface for assignFrom handler classes.
|
|
514
|
+
* Handlers are invoked when a LHS key ends with ' =>'.
|
|
515
|
+
*/
|
|
516
|
+
export interface AssignFromHandler {
|
|
517
|
+
assign(lhsTarget: any, resolvedParams: Record<string, any>, options: any): Promise<void> | void;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Constructor signature for assignFrom handler classes.
|
|
522
|
+
*/
|
|
523
|
+
export interface AssignFromHandlerConstructor {
|
|
524
|
+
new (config: HandlerConfig): AssignFromHandler;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
// =============================================================================
|
|
528
|
+
// Built-in handler config types
|
|
529
|
+
// =============================================================================
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Configuration for the builtIns.lazyLoad handler.
|
|
533
|
+
*/
|
|
534
|
+
export interface LazyLoadConfig extends HandlerConfig {
|
|
535
|
+
do: 'builtIns.lazyLoad';
|
|
536
|
+
resolve: {
|
|
537
|
+
/** Condition to show/hide (resolved from VM) */
|
|
538
|
+
if: string;
|
|
539
|
+
/** Template element to clone (resolved via protocol or path) */
|
|
540
|
+
instantiate: string;
|
|
541
|
+
/** Insert method: 'appendChild' (default) or 'prepend' */
|
|
542
|
+
method?: string;
|
|
543
|
+
/** If true, removes nodes when hiding instead of adding hidden attribute */
|
|
544
|
+
forget?: boolean | string;
|
|
545
|
+
/** Optional async callback invoked after cloning, resolved from the VM */
|
|
546
|
+
onInstantiated?: string;
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Context passed to onInstantiated callbacks after template cloning.
|
|
552
|
+
*/
|
|
553
|
+
export interface LazyLoadInstantiatedContext {
|
|
554
|
+
/** The inserted child nodes */
|
|
555
|
+
nodes: Node[];
|
|
556
|
+
/** The target element containing the markers */
|
|
557
|
+
target: Element;
|
|
558
|
+
/** The full handler config */
|
|
559
|
+
config: any;
|
|
560
|
+
/** The resolved parameters */
|
|
561
|
+
resolvedParams: Record<string, any>;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* The LazyLoadHandler class (exported for subclassing).
|
|
566
|
+
*/
|
|
567
|
+
export declare class LazyLoadHandler implements AssignFromHandler {
|
|
568
|
+
config: any;
|
|
569
|
+
constructor(config: any);
|
|
570
|
+
assign(lhsTarget: any, resolvedParams: Record<string, any>, options?: any): Promise<void>;
|
|
571
|
+
protected onCloneInserted(nodes: Node[], lhsTarget: Element, resolvedParams: Record<string, any>): Promise<void>;
|
|
572
|
+
}
|