@microsoft/fast-element 3.0.0-rc.1 → 3.0.0-rc.2
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/CHANGELOG.md +51 -1
- package/README.md +50 -14
- package/dist/context/context.api.json +13 -13
- package/dist/declarative/declarative.api.json +654 -15
- package/dist/di/di.api.json +15 -15
- package/dist/dts/__test__/helpers.d.ts +6 -0
- package/dist/dts/__test__/setup-node.d.ts +0 -0
- package/dist/dts/binding/binding.d.ts +15 -5
- package/dist/dts/binding/one-time.d.ts +1 -1
- package/dist/dts/binding/one-way.d.ts +1 -1
- package/dist/dts/binding/signal.d.ts +1 -1
- package/dist/dts/binding/two-way.d.ts +1 -1
- package/dist/dts/components/attributes.d.ts +1 -1
- package/dist/dts/components/enable-hydration.d.ts +22 -2
- package/dist/dts/components/fast-definitions.d.ts +7 -4
- package/dist/dts/components/fast-element.d.ts +42 -12
- package/dist/dts/components/hydration-tracker.d.ts +47 -4
- package/dist/dts/components/hydration.d.ts +5 -0
- package/dist/dts/context.d.ts +7 -7
- package/dist/dts/declarative/debug.d.ts +2 -3
- package/dist/dts/declarative/index.d.ts +3 -2
- package/dist/dts/declarative/interfaces.d.ts +1 -2
- package/dist/dts/declarative/template.d.ts +2 -1
- package/dist/dts/declarative/utilities.d.ts +50 -4
- package/dist/dts/di/di.d.ts +6 -6
- package/dist/dts/dom-policy.d.ts +22 -4
- package/dist/dts/dom.d.ts +4 -16
- package/dist/dts/hydration/diagnostics.d.ts +93 -0
- package/dist/dts/hydration/hydration-debugger.d.ts +35 -0
- package/dist/dts/hydration/messages.d.ts +62 -0
- package/dist/dts/hydration/target-builder.d.ts +26 -1
- package/dist/dts/hydration.d.ts +7 -3
- package/dist/dts/index.d.ts +7 -3
- package/dist/dts/interfaces.d.ts +1 -0
- package/dist/dts/observation/observable.d.ts +3 -3
- package/dist/dts/platform.d.ts +20 -4
- package/dist/dts/registry.d.ts +1 -0
- package/dist/dts/templating/children.d.ts +1 -1
- package/dist/dts/templating/compiler.d.ts +1 -1
- package/dist/dts/templating/html-binding-directive.d.ts +6 -2
- package/dist/dts/templating/html-directive.d.ts +2 -1
- package/dist/dts/templating/hydration-view.d.ts +24 -3
- package/dist/dts/templating/ref.d.ts +1 -1
- package/dist/dts/templating/render.d.ts +2 -2
- package/dist/dts/templating/repeat.d.ts +1 -1
- package/dist/dts/templating/slotted.d.ts +1 -1
- package/dist/dts/templating/template.d.ts +5 -5
- package/dist/dts/templating/when.d.ts +1 -1
- package/dist/dts/testing/fakes.d.ts +4 -4
- package/dist/esm/__test__/helpers.js +22 -0
- package/dist/esm/__test__/setup-node.js +18 -0
- package/dist/esm/binding/two-way.js +1 -2
- package/dist/esm/components/attributes.js +12 -8
- package/dist/esm/components/element-controller.js +11 -6
- package/dist/esm/components/enable-hydration.js +27 -3
- package/dist/esm/components/fast-definitions.js +19 -18
- package/dist/esm/components/hydration-tracker.js +34 -5
- package/dist/esm/components/hydration.js +85 -6
- package/dist/esm/debug.js +1 -0
- package/dist/esm/declarative/attribute-map.js +2 -1
- package/dist/esm/declarative/debug.js +0 -1
- package/dist/esm/declarative/index.js +1 -0
- package/dist/esm/declarative/interfaces.js +0 -1
- package/dist/esm/declarative/observer-map-utilities.js +58 -55
- package/dist/esm/declarative/template-bridge.js +4 -14
- package/dist/esm/declarative/template.js +4 -3
- package/dist/esm/declarative/utilities.js +236 -1
- package/dist/esm/di/di.js +2 -1
- package/dist/esm/dom-policy.js +33 -4
- package/dist/esm/hydration/diagnostics.js +50 -0
- package/dist/esm/hydration/hydration-debugger.js +112 -0
- package/dist/esm/hydration/messages.js +84 -0
- package/dist/esm/hydration/target-builder.js +65 -19
- package/dist/esm/hydration.js +3 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/interfaces.js +1 -0
- package/dist/esm/metadata.js +2 -8
- package/dist/esm/observation/notifier.js +2 -4
- package/dist/esm/registry.js +1 -0
- package/dist/esm/templating/html-binding-directive.js +1 -1
- package/dist/esm/templating/hydration-view.js +20 -27
- package/dist/esm/templating/render.js +39 -18
- package/dist/esm/templating/repeat.js +51 -17
- package/dist/esm/templating/view.js +1 -1
- package/dist/esm/testing/fixture.js +2 -2
- package/dist/esm/testing/timeout.js +2 -2
- package/dist/fast-element.api.json +1329 -99
- package/dist/fast-element.d.ts +147 -66
- package/dist/fast-element.debug.js +392 -99
- package/dist/fast-element.debug.min.js +2 -2
- package/dist/fast-element.js +392 -99
- package/dist/fast-element.min.js +2 -2
- package/dist/fast-element.untrimmed.d.ts +133 -70
- package/dist/hydration/hydration.api.json +1280 -57
- package/dist/styles/styles.api.json +1 -1
- package/package.json +21 -9
- package/ARCHITECTURE_FASTELEMENT.md +0 -63
- package/ARCHITECTURE_HTML_TAGGED_TEMPLATE_LITERAL.md +0 -36
- package/ARCHITECTURE_INTRO.md +0 -10
- package/ARCHITECTURE_OVERVIEW.md +0 -52
- package/ARCHITECTURE_UPDATES.md +0 -11
- package/CHANGELOG.json +0 -2275
- package/DECLARATIVE_DESIGN.md +0 -806
- package/DECLARATIVE_HTML.md +0 -470
- package/DECLARATIVE_MIGRATION.md +0 -215
- package/DECLARATIVE_RENDERING.md +0 -530
- package/DECLARATIVE_RENDERING_LIFECYCLE.md +0 -288
- package/DECLARATIVE_SCHEMA_OBSERVER_MAP.md +0 -489
- package/DESIGN.md +0 -615
- package/MIGRATION.md +0 -387
- package/SIZES.md +0 -25
- package/api-extractor.arrays.json +0 -15
- package/api-extractor.context.json +0 -15
- package/api-extractor.declarative.json +0 -15
- package/api-extractor.di.json +0 -15
- package/api-extractor.hydration.json +0 -15
- package/api-extractor.styles.json +0 -15
- package/biome.json +0 -4
- package/docs/ACKNOWLEDGEMENTS.md +0 -12
- package/docs/api-report.api.md +0 -1299
- package/docs/arrays/api-report.api.md +0 -114
- package/docs/context/api-report.api.md +0 -69
- package/docs/declarative/api-report.api.md +0 -397
- package/docs/di/api-report.api.md +0 -315
- package/docs/fast-element-2-changes.md +0 -15
- package/docs/hydration/api-report.api.md +0 -285
- package/docs/styles/api-report.api.md +0 -135
- package/playwright.config.ts +0 -26
- package/playwright.declarative.config.ts +0 -26
- package/playwright.declarative.webui.config.ts +0 -20
- package/scripts/declarative/build-fixtures-with-webui.js +0 -135
- package/scripts/declarative/build-fixtures.js +0 -49
- package/scripts/declarative/build-fixtures.utilities.js +0 -101
- package/scripts/measure-sizes.js +0 -219
- package/scripts/run-api-extractor.js +0 -70
- package/test/declarative/fixtures/README.md +0 -72
- package/test/declarative/fixtures/WRITING_FIXTURES.md +0 -330
- package/test/declarative/fixtures/bindings/README.md +0 -12
- package/test/declarative/fixtures/bindings/attribute/entry.html +0 -13
- package/test/declarative/fixtures/bindings/attribute/fast-build.config.json +0 -6
- package/test/declarative/fixtures/bindings/attribute/index.html +0 -25
- package/test/declarative/fixtures/bindings/attribute/main.ts +0 -41
- package/test/declarative/fixtures/bindings/attribute/state.json +0 -8
- package/test/declarative/fixtures/bindings/attribute/templates.html +0 -11
- package/test/declarative/fixtures/bindings/content/entry.html +0 -12
- package/test/declarative/fixtures/bindings/content/fast-build.config.json +0 -6
- package/test/declarative/fixtures/bindings/content/index.html +0 -19
- package/test/declarative/fixtures/bindings/content/main.ts +0 -27
- package/test/declarative/fixtures/bindings/content/state.json +0 -4
- package/test/declarative/fixtures/bindings/content/templates.html +0 -6
- package/test/declarative/fixtures/bindings/dot-syntax/entry.html +0 -11
- package/test/declarative/fixtures/bindings/dot-syntax/fast-build.config.json +0 -6
- package/test/declarative/fixtures/bindings/dot-syntax/index.html +0 -47
- package/test/declarative/fixtures/bindings/dot-syntax/main.ts +0 -59
- package/test/declarative/fixtures/bindings/dot-syntax/state.json +0 -16
- package/test/declarative/fixtures/bindings/dot-syntax/templates.html +0 -17
- package/test/declarative/fixtures/bindings/event/entry.html +0 -11
- package/test/declarative/fixtures/bindings/event/fast-build.config.json +0 -6
- package/test/declarative/fixtures/bindings/event/index.html +0 -43
- package/test/declarative/fixtures/bindings/event/main.ts +0 -43
- package/test/declarative/fixtures/bindings/event/state.json +0 -3
- package/test/declarative/fixtures/bindings/event/templates.html +0 -18
- package/test/declarative/fixtures/bindings/host/entry.html +0 -40
- package/test/declarative/fixtures/bindings/host/fast-build.config.json +0 -6
- package/test/declarative/fixtures/bindings/host/index.html +0 -96
- package/test/declarative/fixtures/bindings/host/main.ts +0 -222
- package/test/declarative/fixtures/bindings/host/state.json +0 -9
- package/test/declarative/fixtures/bindings/host/templates.html +0 -55
- package/test/declarative/fixtures/directives/README.md +0 -12
- package/test/declarative/fixtures/directives/children/entry.html +0 -11
- package/test/declarative/fixtures/directives/children/fast-build.config.json +0 -6
- package/test/declarative/fixtures/directives/children/index.html +0 -15
- package/test/declarative/fixtures/directives/children/main.ts +0 -22
- package/test/declarative/fixtures/directives/children/state.json +0 -3
- package/test/declarative/fixtures/directives/children/templates.html +0 -3
- package/test/declarative/fixtures/directives/ref/entry.html +0 -11
- package/test/declarative/fixtures/directives/ref/fast-build.config.json +0 -6
- package/test/declarative/fixtures/directives/ref/index.html +0 -15
- package/test/declarative/fixtures/directives/ref/main.ts +0 -17
- package/test/declarative/fixtures/directives/ref/state.json +0 -1
- package/test/declarative/fixtures/directives/ref/templates.html +0 -3
- package/test/declarative/fixtures/directives/repeat/entry.html +0 -21
- package/test/declarative/fixtures/directives/repeat/fast-build.config.json +0 -6
- package/test/declarative/fixtures/directives/repeat/index.html +0 -133
- package/test/declarative/fixtures/directives/repeat/main.ts +0 -110
- package/test/declarative/fixtures/directives/repeat/sprites.svg +0 -8
- package/test/declarative/fixtures/directives/repeat/state.json +0 -10
- package/test/declarative/fixtures/directives/repeat/templates.html +0 -75
- package/test/declarative/fixtures/directives/slotted/entry.html +0 -17
- package/test/declarative/fixtures/directives/slotted/fast-build.config.json +0 -6
- package/test/declarative/fixtures/directives/slotted/index.html +0 -27
- package/test/declarative/fixtures/directives/slotted/main.ts +0 -29
- package/test/declarative/fixtures/directives/slotted/state.json +0 -1
- package/test/declarative/fixtures/directives/slotted/templates.html +0 -7
- package/test/declarative/fixtures/directives/when/entry.html +0 -51
- package/test/declarative/fixtures/directives/when/fast-build.config.json +0 -6
- package/test/declarative/fixtures/directives/when/index.html +0 -136
- package/test/declarative/fixtures/directives/when/main.ts +0 -172
- package/test/declarative/fixtures/directives/when/state.json +0 -12
- package/test/declarative/fixtures/directives/when/templates.html +0 -75
- package/test/declarative/fixtures/ecosystem/README.md +0 -11
- package/test/declarative/fixtures/ecosystem/declarative-no-hydration/entry.html +0 -12
- package/test/declarative/fixtures/ecosystem/declarative-no-hydration/fast-build.config.json +0 -6
- package/test/declarative/fixtures/ecosystem/declarative-no-hydration/index.html +0 -20
- package/test/declarative/fixtures/ecosystem/declarative-no-hydration/main.ts +0 -68
- package/test/declarative/fixtures/ecosystem/declarative-no-hydration/state.json +0 -4
- package/test/declarative/fixtures/ecosystem/declarative-no-hydration/templates.html +0 -7
- package/test/declarative/fixtures/ecosystem/errors/entry.html +0 -12
- package/test/declarative/fixtures/ecosystem/errors/fast-build.config.json +0 -6
- package/test/declarative/fixtures/ecosystem/errors/index.html +0 -20
- package/test/declarative/fixtures/ecosystem/errors/main.ts +0 -17
- package/test/declarative/fixtures/ecosystem/errors/state.json +0 -1
- package/test/declarative/fixtures/ecosystem/errors/templates.html +0 -7
- package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/entry.html +0 -17
- package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/fast-build.config.json +0 -6
- package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/index.html +0 -56
- package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/main.ts +0 -134
- package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/state.json +0 -12
- package/test/declarative/fixtures/ecosystem/lifecycle-callbacks/templates.html +0 -34
- package/test/declarative/fixtures/ecosystem/performance-metrics/entry.html +0 -25
- package/test/declarative/fixtures/ecosystem/performance-metrics/fast-build.config.json +0 -6
- package/test/declarative/fixtures/ecosystem/performance-metrics/fast-card.css +0 -10
- package/test/declarative/fixtures/ecosystem/performance-metrics/index.html +0 -181
- package/test/declarative/fixtures/ecosystem/performance-metrics/main.ts +0 -58
- package/test/declarative/fixtures/ecosystem/performance-metrics/state.json +0 -6
- package/test/declarative/fixtures/ecosystem/performance-metrics/templates.html +0 -15
- package/test/declarative/fixtures/extensions/README.md +0 -15
- package/test/declarative/fixtures/extensions/attribute-map/entry.html +0 -14
- package/test/declarative/fixtures/extensions/attribute-map/fast-build.config.json +0 -6
- package/test/declarative/fixtures/extensions/attribute-map/index.html +0 -31
- package/test/declarative/fixtures/extensions/attribute-map/main.ts +0 -40
- package/test/declarative/fixtures/extensions/attribute-map/state.json +0 -4
- package/test/declarative/fixtures/extensions/attribute-map/templates.html +0 -14
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/entry.html +0 -12
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/fast-build.config.json +0 -7
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/index.html +0 -25
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/main.ts +0 -31
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/state.json +0 -5
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy/templates.html +0 -11
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/entry.html +0 -13
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/fast-build.config.json +0 -7
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/index.html +0 -23
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/main.ts +0 -37
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/state.json +0 -1
- package/test/declarative/fixtures/extensions/attribute-map-naming-strategy-camel-case/templates.html +0 -9
- package/test/declarative/fixtures/extensions/observer-map/entry.html +0 -15
- package/test/declarative/fixtures/extensions/observer-map/fast-build.config.json +0 -6
- package/test/declarative/fixtures/extensions/observer-map/index.html +0 -442
- package/test/declarative/fixtures/extensions/observer-map/main.ts +0 -482
- package/test/declarative/fixtures/extensions/observer-map/state.json +0 -158
- package/test/declarative/fixtures/extensions/observer-map/templates.html +0 -172
- package/test/declarative/fixtures/extensions/observer-map-config-object/entry.html +0 -16
- package/test/declarative/fixtures/extensions/observer-map-config-object/fast-build.config.json +0 -6
- package/test/declarative/fixtures/extensions/observer-map-config-object/index.html +0 -27
- package/test/declarative/fixtures/extensions/observer-map-config-object/main.ts +0 -53
- package/test/declarative/fixtures/extensions/observer-map-config-object/state.json +0 -9
- package/test/declarative/fixtures/extensions/observer-map-config-object/templates.html +0 -12
- package/test/declarative/fixtures/extensions/observer-map-deep-merge/README.md +0 -98
- package/test/declarative/fixtures/extensions/observer-map-deep-merge/entry.html +0 -156
- package/test/declarative/fixtures/extensions/observer-map-deep-merge/fast-build.config.json +0 -6
- package/test/declarative/fixtures/extensions/observer-map-deep-merge/index.html +0 -376
- package/test/declarative/fixtures/extensions/observer-map-deep-merge/main.ts +0 -366
- package/test/declarative/fixtures/extensions/observer-map-deep-merge/state.json +0 -69
- package/test/declarative/fixtures/extensions/observer-map-deep-merge/templates.html +0 -91
- package/test/declarative/fixtures/extensions/observer-map-properties/entry.html +0 -14
- package/test/declarative/fixtures/extensions/observer-map-properties/fast-build.config.json +0 -6
- package/test/declarative/fixtures/extensions/observer-map-properties/index.html +0 -110
- package/test/declarative/fixtures/extensions/observer-map-properties/main.ts +0 -175
- package/test/declarative/fixtures/extensions/observer-map-properties/state.json +0 -29
- package/test/declarative/fixtures/extensions/observer-map-properties/templates.html +0 -55
- package/test/declarative/fixtures/scenarios/README.md +0 -7
- package/test/declarative/fixtures/scenarios/nested-elements/entry.html +0 -16
- package/test/declarative/fixtures/scenarios/nested-elements/fast-build.config.json +0 -6
- package/test/declarative/fixtures/scenarios/nested-elements/index.html +0 -126
- package/test/declarative/fixtures/scenarios/nested-elements/main.ts +0 -214
- package/test/declarative/fixtures/scenarios/nested-elements/state.json +0 -10
- package/test/declarative/fixtures/scenarios/nested-elements/templates.html +0 -54
- package/test/declarative/index.html +0 -12
- package/test/declarative/vite.config.ts +0 -55
- package/test/declarative-main.ts +0 -6
- package/test/extension-subpaths-main.ts +0 -9
- package/test/index.html +0 -11
- package/test/main.ts +0 -109
- package/test/pure-declarative-main.ts +0 -1
- package/test/vite.config.ts +0 -19
- package/tsconfig.api-extractor.json +0 -6
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
## API Report File for "@microsoft/fast-element"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
// @public
|
|
8
|
-
export interface ArrayObserver extends SubscriberSet {
|
|
9
|
-
addSort(sort: Sort): void;
|
|
10
|
-
addSplice(splice: Splice): void;
|
|
11
|
-
flush(): void;
|
|
12
|
-
readonly lengthObserver: LengthObserver;
|
|
13
|
-
reset(oldCollection: any[] | undefined): void;
|
|
14
|
-
readonly sortObserver: SortObserver;
|
|
15
|
-
strategy: SpliceStrategy | null;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// @public
|
|
19
|
-
export const ArrayObserver: Readonly<{
|
|
20
|
-
readonly sorted: 0;
|
|
21
|
-
readonly enable: () => void;
|
|
22
|
-
}>;
|
|
23
|
-
|
|
24
|
-
// @public
|
|
25
|
-
export interface LengthObserver extends Subscriber {
|
|
26
|
-
length: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// @public
|
|
30
|
-
export function lengthOf<T>(array: readonly T[]): number;
|
|
31
|
-
|
|
32
|
-
// @public
|
|
33
|
-
export interface Notifier {
|
|
34
|
-
notify(args: any): void;
|
|
35
|
-
readonly subject: any;
|
|
36
|
-
subscribe(subscriber: Subscriber, propertyToWatch?: any): void;
|
|
37
|
-
unsubscribe(subscriber: Subscriber, propertyToUnwatch?: any): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// @public
|
|
41
|
-
export class Sort {
|
|
42
|
-
constructor(sorted?: number[] | undefined);
|
|
43
|
-
// (undocumented)
|
|
44
|
-
sorted?: number[] | undefined;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// @public
|
|
48
|
-
export function sortedCount<T>(array: readonly T[]): number;
|
|
49
|
-
|
|
50
|
-
// @public
|
|
51
|
-
export interface SortObserver extends Subscriber {
|
|
52
|
-
sorted: number;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// @public
|
|
56
|
-
export class Splice {
|
|
57
|
-
constructor(index: number, removed: any[], addedCount: number);
|
|
58
|
-
// (undocumented)
|
|
59
|
-
addedCount: number;
|
|
60
|
-
adjustTo(array: any[]): this;
|
|
61
|
-
// (undocumented)
|
|
62
|
-
index: number;
|
|
63
|
-
// (undocumented)
|
|
64
|
-
removed: any[];
|
|
65
|
-
reset?: boolean;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// @public
|
|
69
|
-
export interface SpliceStrategy {
|
|
70
|
-
normalize(previous: unknown[] | undefined, current: unknown[], changes: Splice[] | undefined): readonly Splice[];
|
|
71
|
-
pop(array: any[], observer: ArrayObserver, pop: typeof Array.prototype.pop, args: any[]): any;
|
|
72
|
-
push(array: any[], observer: ArrayObserver, push: typeof Array.prototype.push, args: any[]): any;
|
|
73
|
-
reverse(array: any[], observer: ArrayObserver, reverse: typeof Array.prototype.reverse, args: any[]): any;
|
|
74
|
-
shift(array: any[], observer: ArrayObserver, shift: typeof Array.prototype.shift, args: any[]): any;
|
|
75
|
-
sort(array: any[], observer: ArrayObserver, sort: typeof Array.prototype.sort, args: any[]): any[];
|
|
76
|
-
splice(array: any[], observer: ArrayObserver, splice: typeof Array.prototype.splice, args: any[]): any;
|
|
77
|
-
readonly support: SpliceStrategySupport;
|
|
78
|
-
unshift(array: any[], observer: ArrayObserver, unshift: typeof Array.prototype.unshift, args: any[]): any[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// @public
|
|
82
|
-
export const SpliceStrategy: Readonly<{
|
|
83
|
-
readonly reset: Splice[];
|
|
84
|
-
readonly setDefaultStrategy: (strategy: SpliceStrategy) => void;
|
|
85
|
-
}>;
|
|
86
|
-
|
|
87
|
-
// @public
|
|
88
|
-
export const SpliceStrategySupport: Readonly<{
|
|
89
|
-
readonly reset: 1;
|
|
90
|
-
readonly splice: 2;
|
|
91
|
-
readonly optimized: 3;
|
|
92
|
-
}>;
|
|
93
|
-
|
|
94
|
-
// @public
|
|
95
|
-
export type SpliceStrategySupport = (typeof SpliceStrategySupport)[keyof typeof SpliceStrategySupport];
|
|
96
|
-
|
|
97
|
-
// @public
|
|
98
|
-
export interface Subscriber {
|
|
99
|
-
handleChange(subject: any, args: any): void;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// @public
|
|
103
|
-
export class SubscriberSet implements Notifier {
|
|
104
|
-
constructor(subject: any, initialSubscriber?: Subscriber);
|
|
105
|
-
has(subscriber: Subscriber): boolean;
|
|
106
|
-
notify(args: any): void;
|
|
107
|
-
readonly subject: any;
|
|
108
|
-
subscribe(subscriber: Subscriber): void;
|
|
109
|
-
unsubscribe(subscriber: Subscriber): void;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// (No @packageDocumentation comment for this package)
|
|
113
|
-
|
|
114
|
-
```
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
## API Report File for "@microsoft/fast-element"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
// @public
|
|
8
|
-
export type Context<T> = {
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly initialValue?: T;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// @public
|
|
14
|
-
export const Context: Readonly<{
|
|
15
|
-
eventType: "context-request";
|
|
16
|
-
for<T = unknown>(name: string): FASTContext<T>;
|
|
17
|
-
create<T_1 = unknown>(name: string, initialValue?: T_1 | undefined): FASTContext<T_1>;
|
|
18
|
-
setDefaultRequestStrategy(strategy: FASTContextRequestStrategy): void;
|
|
19
|
-
get<T_2 extends UnknownContext>(target: EventTarget, context: T_2): ContextType<T_2>;
|
|
20
|
-
request<T_3 extends UnknownContext>(target: EventTarget, context: T_3, callback: ContextCallback<ContextType<T_3>>, multiple?: boolean): void;
|
|
21
|
-
dispatch<T_4 extends UnknownContext>(target: EventTarget, context: T_4, callback: ContextCallback<ContextType<T_4>>, multiple?: boolean): void;
|
|
22
|
-
provide<T_5 extends UnknownContext>(target: EventTarget, context: T_5, value: ContextType<T_5>): void;
|
|
23
|
-
handle<T_6 extends UnknownContext>(target: EventTarget, callback: (event: ContextEvent<T_6>) => void, context?: T_6 | undefined): void;
|
|
24
|
-
defineProperty<T_7 extends UnknownContext>(target: Constructable<EventTarget> | EventTarget, propertyName: string, context: T_7): void;
|
|
25
|
-
}>;
|
|
26
|
-
|
|
27
|
-
// @public
|
|
28
|
-
export type ContextCallback<ValueType> = (value: ValueType, dispose?: () => void) => void;
|
|
29
|
-
|
|
30
|
-
// Warning: (ae-forgotten-export) The symbol "ParameterDecorator_2" needs to be exported by the entry point context.d.ts
|
|
31
|
-
//
|
|
32
|
-
// @public
|
|
33
|
-
export type ContextDecorator<T = any> = Readonly<Context<T>> & PropertyDecorator & ParameterDecorator_2;
|
|
34
|
-
|
|
35
|
-
// @public
|
|
36
|
-
export class ContextEvent<T extends UnknownContext> extends Event {
|
|
37
|
-
constructor(context: T, callback: ContextCallback<ContextType<T>>, multiple?: boolean | undefined);
|
|
38
|
-
// (undocumented)
|
|
39
|
-
readonly callback: ContextCallback<ContextType<T>>;
|
|
40
|
-
// (undocumented)
|
|
41
|
-
readonly context: T;
|
|
42
|
-
// (undocumented)
|
|
43
|
-
readonly multiple?: boolean | undefined;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// @public
|
|
47
|
-
export type ContextType<T extends UnknownContext> = T extends Context<infer Y> ? Y : never;
|
|
48
|
-
|
|
49
|
-
// @public
|
|
50
|
-
export type FASTContext<T> = ContextDecorator<T> & {
|
|
51
|
-
get(target: EventTarget): T;
|
|
52
|
-
provide(target: EventTarget, value: T): void;
|
|
53
|
-
request(target: EventTarget, callback: ContextCallback<T>, multiple?: boolean): void;
|
|
54
|
-
handle(target: EventTarget, callback: (event: ContextEvent<FASTContext<T>>) => void): void;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// @public
|
|
58
|
-
export type FASTContextRequestStrategy = <T extends UnknownContext>(target: EventTarget, context: T, callback: ContextCallback<ContextType<T>>, multiple: any) => void;
|
|
59
|
-
|
|
60
|
-
// @public
|
|
61
|
-
export type UnknownContext = Context<unknown>;
|
|
62
|
-
|
|
63
|
-
// Warnings were encountered during analysis:
|
|
64
|
-
//
|
|
65
|
-
// dist/dts/context.d.ts:127:5 - (ae-forgotten-export) The symbol "Constructable" needs to be exported by the entry point context.d.ts
|
|
66
|
-
|
|
67
|
-
// (No @packageDocumentation comment for this package)
|
|
68
|
-
|
|
69
|
-
```
|
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
## API Report File for "@microsoft/fast-element"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
// @public
|
|
8
|
-
export interface AccessCachedPath extends CachedPathCommon {
|
|
9
|
-
// (undocumented)
|
|
10
|
-
type: "access";
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// @public
|
|
14
|
-
export interface Accessor {
|
|
15
|
-
getValue(source: any): any;
|
|
16
|
-
name: string;
|
|
17
|
-
setValue(source: any, value: any): void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// @public
|
|
21
|
-
export type AttributeConfiguration = {
|
|
22
|
-
property: string;
|
|
23
|
-
attribute?: string;
|
|
24
|
-
mode?: AttributeMode;
|
|
25
|
-
converter?: ValueConverter;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// @public
|
|
29
|
-
export const AttributeConfiguration: Readonly<{
|
|
30
|
-
locate: (target: {}) => AttributeConfiguration[];
|
|
31
|
-
}>;
|
|
32
|
-
|
|
33
|
-
// @public
|
|
34
|
-
export class AttributeDefinition implements Accessor {
|
|
35
|
-
constructor(Owner: Function, name: string, attribute?: string, mode?: AttributeMode, converter?: ValueConverter);
|
|
36
|
-
readonly attribute: string;
|
|
37
|
-
// @internal
|
|
38
|
-
static collect(Owner: Function, ...attributeLists: (ReadonlyArray<string | AttributeConfiguration> | undefined)[]): ReadonlyArray<AttributeDefinition>;
|
|
39
|
-
readonly converter?: ValueConverter;
|
|
40
|
-
getValue(source: HTMLElement): any;
|
|
41
|
-
readonly mode: AttributeMode;
|
|
42
|
-
readonly name: string;
|
|
43
|
-
// @internal (undocumented)
|
|
44
|
-
onAttributeChangedCallback(element: HTMLElement, value: any): void;
|
|
45
|
-
readonly Owner: Function;
|
|
46
|
-
setValue(source: HTMLElement, newValue: any): void;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// @public
|
|
50
|
-
export type AttributeMode = "reflect" | "boolean" | "fromView";
|
|
51
|
-
|
|
52
|
-
// @public
|
|
53
|
-
export type CachedPath = DefaultCachedPath | RepeatCachedPath | AccessCachedPath | EventCachedPath;
|
|
54
|
-
|
|
55
|
-
// @public
|
|
56
|
-
export interface CachedPathCommon {
|
|
57
|
-
// (undocumented)
|
|
58
|
-
currentContext: string | null;
|
|
59
|
-
// (undocumented)
|
|
60
|
-
parentContext: string | null;
|
|
61
|
-
// (undocumented)
|
|
62
|
-
path: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// @public
|
|
66
|
-
export type CachedPathMap = Map<string, Map<string, JSONSchema>>;
|
|
67
|
-
|
|
68
|
-
// @public
|
|
69
|
-
export interface CaptureType {
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// @public
|
|
73
|
-
export interface ChildrenMap {
|
|
74
|
-
// (undocumented)
|
|
75
|
-
attributeName: string;
|
|
76
|
-
// (undocumented)
|
|
77
|
-
customElementName: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// @public
|
|
81
|
-
export type ComposableStyles = string | ElementStyles | CSSStyleSheet;
|
|
82
|
-
|
|
83
|
-
// @public
|
|
84
|
-
export type Constructable<T = {}> = {
|
|
85
|
-
new (...args: any[]): T;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
// @public
|
|
89
|
-
export type ConstructibleStyleStrategy = {
|
|
90
|
-
new (styles: (string | CSSStyleSheet)[]): StyleStrategy;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
// @public
|
|
94
|
-
export function declarativeTemplate(callbacks?: TemplateLifecycleCallbacks): FASTElementTemplateResolver;
|
|
95
|
-
|
|
96
|
-
// @public
|
|
97
|
-
export interface DefaultCachedPath extends CachedPathCommon {
|
|
98
|
-
// (undocumented)
|
|
99
|
-
type: "default";
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// @public
|
|
103
|
-
export interface DOMPolicy {
|
|
104
|
-
createHTML(value: string): string;
|
|
105
|
-
// Warning: (ae-forgotten-export) The symbol "DOMAspect" needs to be exported by the entry point index.d.ts
|
|
106
|
-
// Warning: (ae-forgotten-export) The symbol "DOMSink" needs to be exported by the entry point index.d.ts
|
|
107
|
-
protect(tagName: string | null, aspect: DOMAspect, aspectName: string, sink: DOMSink): DOMSink;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// @public
|
|
111
|
-
export class ElementStyles {
|
|
112
|
-
constructor(styles: ReadonlyArray<ComposableStyles>);
|
|
113
|
-
// @internal (undocumented)
|
|
114
|
-
addStylesTo(target: StyleTarget): void;
|
|
115
|
-
// @internal (undocumented)
|
|
116
|
-
isAttachedTo(target: StyleTarget): boolean;
|
|
117
|
-
static normalize(styles: ComposableStyles | ComposableStyles[] | undefined): ElementStyles | undefined;
|
|
118
|
-
// @internal (undocumented)
|
|
119
|
-
removeStylesFrom(target: StyleTarget): void;
|
|
120
|
-
static setDefaultStrategy(Strategy: ConstructibleStyleStrategy): void;
|
|
121
|
-
get strategy(): StyleStrategy;
|
|
122
|
-
// (undocumented)
|
|
123
|
-
readonly styles: ReadonlyArray<ComposableStyles>;
|
|
124
|
-
static readonly supportsAdoptedStyleSheets: boolean;
|
|
125
|
-
withStrategy(Strategy: ConstructibleStyleStrategy): this;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// Warning: (ae-forgotten-export) The symbol "View" needs to be exported by the entry point index.d.ts
|
|
129
|
-
//
|
|
130
|
-
// @public
|
|
131
|
-
export interface ElementView<TSource = any, TParent = any> extends View<TSource, TParent> {
|
|
132
|
-
appendTo(node: Node): void;
|
|
133
|
-
onUnbind(behavior: {
|
|
134
|
-
unbind(controller: ViewController<TSource, TParent>): any;
|
|
135
|
-
}): void;
|
|
136
|
-
// Warning: (ae-forgotten-export) The symbol "SourceLifetime" needs to be exported by the entry point index.d.ts
|
|
137
|
-
readonly sourceLifetime?: SourceLifetime;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// @public
|
|
141
|
-
export interface ElementViewTemplate<TSource = any, TParent = any> {
|
|
142
|
-
create(hostBindingTarget: Element): ElementView<TSource, TParent>;
|
|
143
|
-
render(source: TSource, host: Node, hostBindingTarget?: Element): ElementView<TSource, TParent>;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// @public
|
|
147
|
-
export interface EventCachedPath extends CachedPathCommon {
|
|
148
|
-
// (undocumented)
|
|
149
|
-
type: "event";
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// @public
|
|
153
|
-
export class FASTElementDefinition<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>> {
|
|
154
|
-
readonly attributeLookup: Record<string, AttributeDefinition>;
|
|
155
|
-
readonly attributes: ReadonlyArray<AttributeDefinition>;
|
|
156
|
-
static compose<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>>(type: TType, nameOrDef?: string | PartialFASTElementDefinition<TType>): Promise<FASTElementDefinition<TType>>;
|
|
157
|
-
define(registry?: CustomElementRegistry, extensions?: FASTElementExtension[]): this;
|
|
158
|
-
readonly elementOptions: ElementDefinitionOptions;
|
|
159
|
-
static readonly getByType: (key: Function) => FASTElementDefinition<Constructable<HTMLElement>> | undefined;
|
|
160
|
-
static readonly getForInstance: (object: any) => FASTElementDefinition<Constructable<HTMLElement>> | undefined;
|
|
161
|
-
get isDefined(): boolean;
|
|
162
|
-
static isRegistered: Record<string, Function>;
|
|
163
|
-
readonly lifecycleCallbacks?: TemplateLifecycleCallbacks;
|
|
164
|
-
readonly name: string;
|
|
165
|
-
readonly propertyLookup: Record<string, AttributeDefinition>;
|
|
166
|
-
// @alpha
|
|
167
|
-
static register: (name: string, registry?: CustomElementRegistry) => Promise<Function>;
|
|
168
|
-
// @internal
|
|
169
|
-
static registerBaseType(type: Function): void;
|
|
170
|
-
readonly registry: CustomElementRegistry;
|
|
171
|
-
schema?: Schema;
|
|
172
|
-
shadowOptions?: ShadowRootOptions;
|
|
173
|
-
readonly styles?: ElementStyles;
|
|
174
|
-
template?: ElementViewTemplate<InstanceType<TType>>;
|
|
175
|
-
readonly type: TType;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// @public
|
|
179
|
-
export type FASTElementExtension = (definition: FASTElementDefinition) => void;
|
|
180
|
-
|
|
181
|
-
// @public
|
|
182
|
-
export type FASTElementTemplateResolver<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>> = (definition: FASTElementDefinition<TType>) => ElementViewTemplate<InstanceType<TType>> | Promise<ElementViewTemplate<InstanceType<TType>>>;
|
|
183
|
-
|
|
184
|
-
// @public
|
|
185
|
-
export interface HTMLTemplateCompilationResult<TSource = any, TParent = any> {
|
|
186
|
-
createView(hostBindingTarget?: Element): HTMLView<TSource, TParent>;
|
|
187
|
-
// Warning: (ae-forgotten-export) The symbol "CompiledViewBehaviorFactory" needs to be exported by the entry point index.d.ts
|
|
188
|
-
//
|
|
189
|
-
// (undocumented)
|
|
190
|
-
readonly factories: CompiledViewBehaviorFactory[];
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// Warning: (ae-forgotten-export) The symbol "DefaultExecutionContext" needs to be exported by the entry point index.d.ts
|
|
194
|
-
// Warning: (ae-forgotten-export) The symbol "SyntheticView" needs to be exported by the entry point index.d.ts
|
|
195
|
-
// Warning: (ae-forgotten-export) The symbol "ExecutionContext" needs to be exported by the entry point index.d.ts
|
|
196
|
-
//
|
|
197
|
-
// @public
|
|
198
|
-
export class HTMLView<TSource = any, TParent = any> extends DefaultExecutionContext<TParent> implements ElementView<TSource, TParent>, SyntheticView<TSource, TParent>, ExecutionContext<TParent> {
|
|
199
|
-
constructor(fragment: DocumentFragment, factories: ReadonlyArray<CompiledViewBehaviorFactory>, targets: ViewBehaviorTargets);
|
|
200
|
-
appendTo(node: Node): void;
|
|
201
|
-
bind(source: TSource, context?: ExecutionContext<TParent>): void;
|
|
202
|
-
context: ExecutionContext<TParent>;
|
|
203
|
-
dispose(): void;
|
|
204
|
-
static disposeContiguousBatch(views: SyntheticView[]): void;
|
|
205
|
-
firstChild: Node;
|
|
206
|
-
insertBefore(node: Node): void;
|
|
207
|
-
isBound: boolean;
|
|
208
|
-
isHydrated: Promise<boolean>;
|
|
209
|
-
isPrerendered: Promise<boolean>;
|
|
210
|
-
lastChild: Node;
|
|
211
|
-
// (undocumented)
|
|
212
|
-
onUnbind(behavior: {
|
|
213
|
-
unbind(controller: ViewController<TSource, TParent>): void;
|
|
214
|
-
}): void;
|
|
215
|
-
remove(): void;
|
|
216
|
-
// @internal
|
|
217
|
-
_skipAttrUpdates: boolean;
|
|
218
|
-
source: TSource | null;
|
|
219
|
-
readonly sourceLifetime: SourceLifetime;
|
|
220
|
-
// Warning: (ae-forgotten-export) The symbol "ViewBehaviorTargets" needs to be exported by the entry point index.d.ts
|
|
221
|
-
//
|
|
222
|
-
// (undocumented)
|
|
223
|
-
readonly targets: ViewBehaviorTargets;
|
|
224
|
-
unbind(): void;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
// @public
|
|
228
|
-
export interface JSONSchema extends JSONSchemaCommon {
|
|
229
|
-
// (undocumented)
|
|
230
|
-
$defs?: Record<string, JSONSchemaDefinition>;
|
|
231
|
-
// (undocumented)
|
|
232
|
-
$id: string;
|
|
233
|
-
// (undocumented)
|
|
234
|
-
$schema: string;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// @public
|
|
238
|
-
export interface JSONSchemaCommon {
|
|
239
|
-
$observe?: boolean;
|
|
240
|
-
// (undocumented)
|
|
241
|
-
$ref?: string;
|
|
242
|
-
// (undocumented)
|
|
243
|
-
anyOf?: Array<any>;
|
|
244
|
-
// (undocumented)
|
|
245
|
-
items?: any;
|
|
246
|
-
// (undocumented)
|
|
247
|
-
properties?: any;
|
|
248
|
-
// (undocumented)
|
|
249
|
-
type?: string;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
// @public
|
|
253
|
-
export interface JSONSchemaDefinition extends JSONSchemaCommon {
|
|
254
|
-
// (undocumented)
|
|
255
|
-
$fast_context: string;
|
|
256
|
-
// (undocumented)
|
|
257
|
-
$fast_parent_contexts: Array<string>;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// @public
|
|
261
|
-
export interface PartialFASTElementDefinition<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>> {
|
|
262
|
-
readonly attributes?: (AttributeConfiguration | string)[];
|
|
263
|
-
readonly elementOptions?: ElementDefinitionOptions;
|
|
264
|
-
readonly lifecycleCallbacks?: TemplateLifecycleCallbacks;
|
|
265
|
-
readonly name: string;
|
|
266
|
-
readonly registry?: CustomElementRegistry;
|
|
267
|
-
readonly schema?: Schema;
|
|
268
|
-
readonly shadowOptions?: Partial<ShadowRootOptions> | null;
|
|
269
|
-
readonly styles?: ComposableStyles | ComposableStyles[];
|
|
270
|
-
readonly template?: ElementViewTemplate<InstanceType<TType>> | FASTElementTemplateResolver<TType>;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
// @public
|
|
274
|
-
export interface RegisterPathConfig {
|
|
275
|
-
// (undocumented)
|
|
276
|
-
childrenMap: ChildrenMap | null;
|
|
277
|
-
// (undocumented)
|
|
278
|
-
pathConfig: CachedPath;
|
|
279
|
-
// (undocumented)
|
|
280
|
-
rootPropertyName: string;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// @public
|
|
284
|
-
export interface RepeatCachedPath extends CachedPathCommon {
|
|
285
|
-
// (undocumented)
|
|
286
|
-
type: "repeat";
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
// @public
|
|
290
|
-
export interface ResolvedStringsAndValues {
|
|
291
|
-
// (undocumented)
|
|
292
|
-
strings: Array<string>;
|
|
293
|
-
// (undocumented)
|
|
294
|
-
values: Array<any>;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
// @public
|
|
298
|
-
export class Schema {
|
|
299
|
-
constructor(name: string);
|
|
300
|
-
addPath(config: RegisterPathConfig): void;
|
|
301
|
-
getRootProperties(): IterableIterator<string>;
|
|
302
|
-
getSchema(rootPropertyName: string): JSONSchema | null;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
// @public
|
|
306
|
-
export const schemaRegistry: CachedPathMap;
|
|
307
|
-
|
|
308
|
-
// @public
|
|
309
|
-
export interface ShadowRootOptions extends ShadowRootInit {
|
|
310
|
-
// @beta
|
|
311
|
-
registry?: CustomElementRegistry;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
// @public
|
|
315
|
-
export interface StyleStrategy {
|
|
316
|
-
addStylesTo(target: StyleTarget): void;
|
|
317
|
-
removeStylesFrom(target: StyleTarget): void;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
// @public
|
|
321
|
-
export interface StyleTarget extends Pick<Node, "getRootNode"> {
|
|
322
|
-
adoptedStyleSheets?: CSSStyleSheet[];
|
|
323
|
-
append(styles: HTMLStyleElement): void;
|
|
324
|
-
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
325
|
-
removeChild(styles: HTMLStyleElement): void;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// @public
|
|
329
|
-
export interface SyntheticViewTemplate<TSource = any, TParent = any> {
|
|
330
|
-
create(): SyntheticView<TSource, TParent>;
|
|
331
|
-
inline(): CaptureType;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
// @public
|
|
335
|
-
export interface TemplateLifecycleCallbacks {
|
|
336
|
-
elementDidDefine?(name: string): void;
|
|
337
|
-
elementDidHydrate?(source: HTMLElement): void;
|
|
338
|
-
elementDidRegister?(name: string): void;
|
|
339
|
-
elementWillHydrate?(source: HTMLElement): void;
|
|
340
|
-
templateDidUpdate?(name: string): void;
|
|
341
|
-
templateWillUpdate?(name: string): void;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
// @public
|
|
345
|
-
export class TemplateParser {
|
|
346
|
-
createTemplate(strings: Array<string>, values: Array<any>): ViewTemplate<any, any>;
|
|
347
|
-
parse(innerHTML: string, schema: Schema): ResolvedStringsAndValues;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
// Warning: (ae-forgotten-export) The symbol "Expression" needs to be exported by the entry point index.d.ts
|
|
351
|
-
// Warning: (ae-forgotten-export) The symbol "Binding" needs to be exported by the entry point index.d.ts
|
|
352
|
-
// Warning: (ae-forgotten-export) The symbol "HTMLDirective" needs to be exported by the entry point index.d.ts
|
|
353
|
-
//
|
|
354
|
-
// @public
|
|
355
|
-
export type TemplateValue<TSource, TParent = any> = Expression<TSource, any, TParent> | Binding<TSource, any, TParent> | HTMLDirective | CaptureType;
|
|
356
|
-
|
|
357
|
-
// @public
|
|
358
|
-
export interface ValueConverter {
|
|
359
|
-
fromView(value: any): any;
|
|
360
|
-
toView(value: any): any;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
// @public
|
|
364
|
-
export interface ViewBehavior<TSource = any, TParent = any> {
|
|
365
|
-
bind(controller: ViewController<TSource, TParent>): void;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
// @public
|
|
369
|
-
export interface ViewBehaviorFactory {
|
|
370
|
-
createBehavior(): ViewBehavior;
|
|
371
|
-
id?: string;
|
|
372
|
-
policy?: DOMPolicy;
|
|
373
|
-
targetNodeId?: string;
|
|
374
|
-
targetTagName?: string | null;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
// @public
|
|
378
|
-
export class ViewTemplate<TSource = any, TParent = any> implements ElementViewTemplate<TSource, TParent>, SyntheticViewTemplate<TSource, TParent> {
|
|
379
|
-
constructor(html: string | HTMLTemplateElement, factories?: Record<string, ViewBehaviorFactory>, policy?: DOMPolicy | undefined);
|
|
380
|
-
// @internal (undocumented)
|
|
381
|
-
compile(): HTMLTemplateCompilationResult<TSource, TParent>;
|
|
382
|
-
create(hostBindingTarget?: Element): HTMLView<TSource, TParent>;
|
|
383
|
-
static create<TSource = any, TParent = any>(strings: string[], values: TemplateValue<TSource, TParent>[], policy?: DOMPolicy): ViewTemplate<TSource, TParent>;
|
|
384
|
-
readonly factories: Record<string, ViewBehaviorFactory>;
|
|
385
|
-
readonly html: string | HTMLTemplateElement;
|
|
386
|
-
inline(): CaptureType;
|
|
387
|
-
render(source: TSource, host: Node, hostBindingTarget?: Element): HTMLView<TSource, TParent>;
|
|
388
|
-
withPolicy(policy: DOMPolicy): this;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
// Warnings were encountered during analysis:
|
|
392
|
-
//
|
|
393
|
-
// dist/dts/templating/view.d.ts:45:9 - (ae-forgotten-export) The symbol "ViewController" needs to be exported by the entry point index.d.ts
|
|
394
|
-
|
|
395
|
-
// (No @packageDocumentation comment for this package)
|
|
396
|
-
|
|
397
|
-
```
|