@microsoft/fast-element 2.0.0-beta.20 → 2.0.0-beta.22
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.json +54 -0
- package/CHANGELOG.md +21 -1
- package/dist/dts/binding/binding.d.ts +49 -0
- package/dist/dts/binding/normalize.d.ts +9 -0
- package/dist/dts/binding/one-time.d.ts +11 -0
- package/dist/dts/binding/one-way.d.ts +20 -0
- package/dist/dts/{templating/binding-signal.d.ts → binding/signal.d.ts} +1 -1
- package/dist/dts/{templating/binding-two-way.d.ts → binding/two-way.d.ts} +3 -4
- package/dist/dts/components/element-controller.d.ts +20 -5
- package/dist/dts/context.d.ts +26 -13
- package/dist/dts/dom-policy.d.ts +15 -0
- package/dist/dts/index.d.ts +6 -2
- package/dist/dts/interfaces.d.ts +6 -5
- package/dist/dts/metadata.d.ts +6 -5
- package/dist/dts/pending-task.d.ts +19 -7
- package/dist/dts/platform.d.ts +10 -2
- package/dist/dts/styles/css-binding-directive.d.ts +60 -0
- package/dist/dts/styles/css.d.ts +9 -2
- package/dist/dts/styles/host.d.ts +2 -5
- package/dist/dts/templating/{binding.d.ts → html-binding-directive.d.ts} +3 -34
- package/dist/dts/templating/html-directive.d.ts +3 -35
- package/dist/dts/templating/render.d.ts +19 -5
- package/dist/dts/templating/repeat.d.ts +3 -2
- package/dist/dts/templating/template.d.ts +2 -6
- package/dist/dts/templating/view.d.ts +16 -6
- package/dist/dts/testing/fakes.d.ts +2 -1
- package/dist/dts/utilities.d.ts +3 -2
- package/dist/esm/binding/binding.js +18 -0
- package/dist/esm/binding/normalize.js +17 -0
- package/dist/esm/binding/one-time.js +21 -0
- package/dist/esm/binding/one-way.js +30 -0
- package/dist/esm/{templating/binding-signal.js → binding/signal.js} +5 -8
- package/dist/esm/{templating/binding-two-way.js → binding/two-way.js} +11 -15
- package/dist/esm/components/element-controller.js +33 -9
- package/dist/esm/context.js +24 -3
- package/dist/esm/debug.js +1 -0
- package/dist/esm/di/di.js +5 -5
- package/dist/esm/dom-policy.js +9 -1
- package/dist/esm/index.js +8 -2
- package/dist/esm/interfaces.js +3 -3
- package/dist/esm/metadata.js +11 -8
- package/dist/esm/observation/observable.js +3 -6
- package/dist/esm/pending-task.js +13 -1
- package/dist/esm/platform.js +10 -1
- package/dist/esm/styles/css-binding-directive.js +76 -0
- package/dist/esm/styles/css.js +14 -2
- package/dist/esm/templating/compiler.js +2 -1
- package/dist/esm/templating/{binding.js → html-binding-directive.js} +3 -70
- package/dist/esm/templating/html-directive.js +2 -25
- package/dist/esm/templating/render.js +25 -12
- package/dist/esm/templating/repeat.js +3 -3
- package/dist/esm/templating/template.js +9 -10
- package/dist/esm/templating/view.js +2 -6
- package/dist/esm/testing/fakes.js +1 -1
- package/dist/esm/utilities.js +3 -2
- package/dist/fast-element.api.json +1827 -663
- package/dist/fast-element.d.ts +167 -43
- package/dist/fast-element.debug.js +227 -120
- package/dist/fast-element.debug.min.js +1 -1
- package/dist/fast-element.js +226 -120
- package/dist/fast-element.min.js +1 -1
- package/dist/fast-element.untrimmed.d.ts +134 -82
- package/docs/api-report.md +54 -57
- package/package.json +5 -5
package/dist/fast-element.d.ts
CHANGED
|
@@ -207,16 +207,6 @@ export declare class AttributeDefinition implements Accessor {
|
|
|
207
207
|
*/
|
|
208
208
|
export declare type AttributeMode = typeof reflectMode | typeof booleanMode | "fromView";
|
|
209
209
|
|
|
210
|
-
/**
|
|
211
|
-
* Creates an standard binding.
|
|
212
|
-
* @param expression - The binding to refresh when changed.
|
|
213
|
-
* @param policy - The security policy to associate with th binding.
|
|
214
|
-
* @param isVolatile - Indicates whether the binding is volatile or not.
|
|
215
|
-
* @returns A binding configuration.
|
|
216
|
-
* @public
|
|
217
|
-
*/
|
|
218
|
-
export declare function bind<T = any>(expression: Expression<T>, policy?: DOMPolicy, isVolatile?: boolean): Binding<T>;
|
|
219
|
-
|
|
220
210
|
/**
|
|
221
211
|
* Captures a binding expression along with related information and capabilities.
|
|
222
212
|
*
|
|
@@ -239,10 +229,30 @@ export declare abstract class Binding<TSource = any, TReturn = any, TParent = an
|
|
|
239
229
|
constructor(evaluate: Expression<TSource, TReturn, TParent>, policy?: DOMPolicy | undefined, isVolatile?: boolean);
|
|
240
230
|
/**
|
|
241
231
|
* Creates an observer capable of notifying a subscriber when the output of a binding changes.
|
|
242
|
-
* @param directive - The HTML Directive to create the observer for.
|
|
243
232
|
* @param subscriber - The subscriber to changes in the binding.
|
|
233
|
+
* @param directive - The Binding directive to create the observer for.
|
|
244
234
|
*/
|
|
245
|
-
abstract createObserver(
|
|
235
|
+
abstract createObserver(subscriber: Subscriber, directive: BindingDirective): ExpressionObserver<TSource, TReturn, TParent>;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* The directive from which a binding originates.
|
|
240
|
+
*
|
|
241
|
+
* @public
|
|
242
|
+
*/
|
|
243
|
+
export declare interface BindingDirective {
|
|
244
|
+
/**
|
|
245
|
+
* The binding.
|
|
246
|
+
*/
|
|
247
|
+
readonly dataBinding: Binding;
|
|
248
|
+
/**
|
|
249
|
+
* The evaluated target aspect.
|
|
250
|
+
*/
|
|
251
|
+
readonly targetAspect?: string;
|
|
252
|
+
/**
|
|
253
|
+
* The type of aspect to target.
|
|
254
|
+
*/
|
|
255
|
+
readonly aspectType?: DOMAspect;
|
|
246
256
|
}
|
|
247
257
|
|
|
248
258
|
/**
|
|
@@ -461,10 +471,6 @@ export declare interface ContentView {
|
|
|
461
471
|
remove(): void;
|
|
462
472
|
}
|
|
463
473
|
|
|
464
|
-
/* Excluded from this release type: createMetadataLocator */
|
|
465
|
-
|
|
466
|
-
/* Excluded from this release type: createTypeRegistry */
|
|
467
|
-
|
|
468
474
|
/**
|
|
469
475
|
* Transforms a template literal string into styles.
|
|
470
476
|
* @param strings - The string fragments that are interpolated with the values.
|
|
@@ -475,6 +481,54 @@ export declare interface ContentView {
|
|
|
475
481
|
*/
|
|
476
482
|
export declare const css: CSSTemplateTag;
|
|
477
483
|
|
|
484
|
+
/**
|
|
485
|
+
* Enables bindings in CSS.
|
|
486
|
+
*
|
|
487
|
+
* @public
|
|
488
|
+
*/
|
|
489
|
+
export declare class CSSBindingDirective implements HostBehavior, Subscriber, CSSDirective, BindingDirective {
|
|
490
|
+
readonly dataBinding: Binding;
|
|
491
|
+
readonly targetAspect: string;
|
|
492
|
+
/**
|
|
493
|
+
* Creates an instance of CSSBindingDirective.
|
|
494
|
+
* @param dataBinding - The binding to use in CSS.
|
|
495
|
+
* @param targetAspect - The CSS property to target.
|
|
496
|
+
*/
|
|
497
|
+
constructor(dataBinding: Binding, targetAspect: string);
|
|
498
|
+
/**
|
|
499
|
+
* Creates a CSS fragment to interpolate into the CSS document.
|
|
500
|
+
* @returns - the string to interpolate into CSS
|
|
501
|
+
*/
|
|
502
|
+
createCSS(add: AddBehavior): ComposableStyles;
|
|
503
|
+
/**
|
|
504
|
+
* Executed when this behavior is attached to a controller.
|
|
505
|
+
* @param controller - Controls the behavior lifecycle.
|
|
506
|
+
*/
|
|
507
|
+
addedCallback(controller: HostController<HTMLElement & {
|
|
508
|
+
$cssBindings: Map<CSSBindingDirective, CSSBindingEntry>;
|
|
509
|
+
}>): void;
|
|
510
|
+
/**
|
|
511
|
+
* Executed when this behavior's host is connected.
|
|
512
|
+
* @param controller - Controls the behavior lifecycle.
|
|
513
|
+
*/
|
|
514
|
+
connectedCallback(controller: HostController<HTMLElement & {
|
|
515
|
+
$cssBindings: Map<CSSBindingDirective, CSSBindingEntry>;
|
|
516
|
+
}>): void;
|
|
517
|
+
/**
|
|
518
|
+
* Executed when this behavior is detached from a controller.
|
|
519
|
+
* @param controller - Controls the behavior lifecycle.
|
|
520
|
+
*/
|
|
521
|
+
removedCallback(controller: HostController<HTMLElement & {
|
|
522
|
+
$cssBindings: Map<CSSBindingDirective, CSSBindingEntry>;
|
|
523
|
+
}>): void;
|
|
524
|
+
/* Excluded from this release type: handleChange */
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
declare type CSSBindingEntry = {
|
|
528
|
+
observer: ExpressionObserver;
|
|
529
|
+
controller: HostController;
|
|
530
|
+
};
|
|
531
|
+
|
|
478
532
|
/**
|
|
479
533
|
* Directive for use in {@link css}.
|
|
480
534
|
*
|
|
@@ -537,16 +591,22 @@ export declare interface CSSDirectiveDefinition<TType extends Constructable<CSSD
|
|
|
537
591
|
* Use the .partial method to create partial CSS fragments.
|
|
538
592
|
* @public
|
|
539
593
|
*/
|
|
540
|
-
export declare type CSSTemplateTag = ((strings: TemplateStringsArray, ...values:
|
|
594
|
+
export declare type CSSTemplateTag = (<TSource = any, TParent = any>(strings: TemplateStringsArray, ...values: CSSValue<TSource, TParent>[]) => ElementStyles) & {
|
|
541
595
|
/**
|
|
542
596
|
* Transforms a template literal string into partial CSS.
|
|
543
597
|
* @param strings - The string fragments that are interpolated with the values.
|
|
544
598
|
* @param values - The values that are interpolated with the string fragments.
|
|
545
599
|
* @public
|
|
546
600
|
*/
|
|
547
|
-
partial(strings: TemplateStringsArray, ...values:
|
|
601
|
+
partial<TSource = any, TParent = any>(strings: TemplateStringsArray, ...values: CSSValue<TSource, TParent>[]): CSSDirective;
|
|
548
602
|
};
|
|
549
603
|
|
|
604
|
+
/**
|
|
605
|
+
* Represents the types of values that can be interpolated into a template.
|
|
606
|
+
* @public
|
|
607
|
+
*/
|
|
608
|
+
export declare type CSSValue<TSource, TParent = any> = Expression<TSource, any, TParent> | Binding<TSource, any, TParent> | ComposableStyles | CSSDirective;
|
|
609
|
+
|
|
550
610
|
/**
|
|
551
611
|
* Decorator: Defines a platform custom element based on `FASTElement`.
|
|
552
612
|
* @param nameOrDef - The name of the element to define or a definition object
|
|
@@ -728,6 +788,18 @@ export declare class ElementController<TElement extends HTMLElement = HTMLElemen
|
|
|
728
788
|
* connected to the document.
|
|
729
789
|
*/
|
|
730
790
|
get isConnected(): boolean;
|
|
791
|
+
/**
|
|
792
|
+
* The context the expression is evaluated against.
|
|
793
|
+
*/
|
|
794
|
+
get context(): ExecutionContext;
|
|
795
|
+
/**
|
|
796
|
+
* Indicates whether the controller is bound.
|
|
797
|
+
*/
|
|
798
|
+
get isBound(): boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Indicates how the source's lifetime relates to the controller's lifetime.
|
|
801
|
+
*/
|
|
802
|
+
get sourceLifetime(): SourceLifetime | undefined;
|
|
731
803
|
/**
|
|
732
804
|
* Gets/sets the template used to render the component.
|
|
733
805
|
* @remarks
|
|
@@ -742,6 +814,13 @@ export declare class ElementController<TElement extends HTMLElement = HTMLElemen
|
|
|
742
814
|
get mainStyles(): ElementStyles | null;
|
|
743
815
|
set mainStyles(value: ElementStyles | null);
|
|
744
816
|
/* Excluded from this release type: __constructor */
|
|
817
|
+
/**
|
|
818
|
+
* Registers an unbind handler with the controller.
|
|
819
|
+
* @param behavior - An object to call when the controller unbinds.
|
|
820
|
+
*/
|
|
821
|
+
onUnbind(behavior: {
|
|
822
|
+
unbind(controller: ExpressionController<TElement>): any;
|
|
823
|
+
}): void;
|
|
745
824
|
/**
|
|
746
825
|
* Adds the behavior to the component.
|
|
747
826
|
* @param behavior - The behavior to add.
|
|
@@ -787,7 +866,6 @@ export declare class ElementController<TElement extends HTMLElement = HTMLElemen
|
|
|
787
866
|
* Only emits events if connected.
|
|
788
867
|
*/
|
|
789
868
|
emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): void | boolean;
|
|
790
|
-
/* Excluded from this release type: toJSON */
|
|
791
869
|
private renderTemplate;
|
|
792
870
|
/**
|
|
793
871
|
* Locates or creates a controller for the specified element.
|
|
@@ -884,6 +962,17 @@ export declare class ElementStyles {
|
|
|
884
962
|
* @public
|
|
885
963
|
*/
|
|
886
964
|
export declare interface ElementView<TSource = any, TParent = any> extends View<TSource, TParent> {
|
|
965
|
+
/**
|
|
966
|
+
* Indicates how the source's lifetime relates to the controller's lifetime.
|
|
967
|
+
*/
|
|
968
|
+
readonly sourceLifetime?: SourceLifetime;
|
|
969
|
+
/**
|
|
970
|
+
* Registers an unbind handler with the controller.
|
|
971
|
+
* @param behavior - An object to call when the controller unbinds.
|
|
972
|
+
*/
|
|
973
|
+
onUnbind(behavior: {
|
|
974
|
+
unbind(controller: ViewController<TSource, TParent>): any;
|
|
975
|
+
}): void;
|
|
887
976
|
/**
|
|
888
977
|
* Appends the view's DOM nodes to the referenced node.
|
|
889
978
|
* @param node - The parent node to append the view's DOM nodes to.
|
|
@@ -1078,7 +1167,11 @@ export declare interface ExpressionObserver<TSource = any, TReturn = any, TParen
|
|
|
1078
1167
|
bind(controller: ExpressionController<TSource, TParent>): TReturn;
|
|
1079
1168
|
}
|
|
1080
1169
|
|
|
1081
|
-
|
|
1170
|
+
/**
|
|
1171
|
+
* The FAST global.
|
|
1172
|
+
* @public
|
|
1173
|
+
*/
|
|
1174
|
+
export declare const FAST: FASTGlobal;
|
|
1082
1175
|
|
|
1083
1176
|
/**
|
|
1084
1177
|
* Represents a custom element based on the FASTElement infrastructure.
|
|
@@ -1215,7 +1308,43 @@ export declare class FASTElementDefinition<TType extends Constructable<HTMLEleme
|
|
|
1215
1308
|
static readonly getForInstance: (object: any) => FASTElementDefinition<Constructable<HTMLElement>> | undefined;
|
|
1216
1309
|
}
|
|
1217
1310
|
|
|
1218
|
-
|
|
1311
|
+
/**
|
|
1312
|
+
* The FAST global.
|
|
1313
|
+
* @public
|
|
1314
|
+
*/
|
|
1315
|
+
export declare interface FASTGlobal {
|
|
1316
|
+
/**
|
|
1317
|
+
* The list of loaded versions.
|
|
1318
|
+
*/
|
|
1319
|
+
readonly versions: string[];
|
|
1320
|
+
/**
|
|
1321
|
+
* Gets a kernel value.
|
|
1322
|
+
* @param id - The id to get the value for.
|
|
1323
|
+
* @param initialize - Creates the initial value for the id if not already existing.
|
|
1324
|
+
*/
|
|
1325
|
+
getById<T>(id: string | number): T | null;
|
|
1326
|
+
getById<T>(id: string | number, initialize: () => T): T;
|
|
1327
|
+
/**
|
|
1328
|
+
* Sends a warning to the developer.
|
|
1329
|
+
* @param code - The warning code to send.
|
|
1330
|
+
* @param values - Values relevant for the warning message.
|
|
1331
|
+
*/
|
|
1332
|
+
warn(code: number, values?: Record<string, any>): void;
|
|
1333
|
+
/**
|
|
1334
|
+
* Creates an error.
|
|
1335
|
+
* @param code - The error code to send.
|
|
1336
|
+
* @param values - Values relevant for the error message.
|
|
1337
|
+
*/
|
|
1338
|
+
error(code: number, values?: Record<string, any>): Error;
|
|
1339
|
+
/**
|
|
1340
|
+
* Adds debug messages for errors and warnings.
|
|
1341
|
+
* @param messages - The message dictionary to add.
|
|
1342
|
+
* @remarks
|
|
1343
|
+
* Message can include placeholders like $\{name\} which can be
|
|
1344
|
+
* replaced by values passed at runtime.
|
|
1345
|
+
*/
|
|
1346
|
+
addMessages(messages: Record<number, string>): void;
|
|
1347
|
+
}
|
|
1219
1348
|
|
|
1220
1349
|
declare function from<TBase extends typeof HTMLElement>(BaseType: TBase): new () => InstanceType<TBase> & FASTElement;
|
|
1221
1350
|
|
|
@@ -1251,11 +1380,7 @@ export declare interface HostBehavior<TSource = any> {
|
|
|
1251
1380
|
* associated with a component host.
|
|
1252
1381
|
* @public
|
|
1253
1382
|
*/
|
|
1254
|
-
export declare interface HostController<TSource = any> {
|
|
1255
|
-
/**
|
|
1256
|
-
* The component source.
|
|
1257
|
-
*/
|
|
1258
|
-
readonly source: TSource;
|
|
1383
|
+
export declare interface HostController<TSource = any> extends ExpressionController<TSource> {
|
|
1259
1384
|
/**
|
|
1260
1385
|
* Indicates whether the host is connected or not.
|
|
1261
1386
|
*/
|
|
@@ -1303,7 +1428,7 @@ export declare const html: HTMLTemplateTag;
|
|
|
1303
1428
|
* A directive that applies bindings.
|
|
1304
1429
|
* @public
|
|
1305
1430
|
*/
|
|
1306
|
-
export declare class HTMLBindingDirective implements HTMLDirective, ViewBehaviorFactory, ViewBehavior, Aspected {
|
|
1431
|
+
export declare class HTMLBindingDirective implements HTMLDirective, ViewBehaviorFactory, ViewBehavior, Aspected, BindingDirective {
|
|
1307
1432
|
dataBinding: Binding;
|
|
1308
1433
|
private data;
|
|
1309
1434
|
private updateTarget;
|
|
@@ -1572,7 +1697,6 @@ export declare class HTMLView<TSource = any, TParent = any> implements ElementVi
|
|
|
1572
1697
|
* Unbinds a view's behaviors from its binding source.
|
|
1573
1698
|
*/
|
|
1574
1699
|
unbind(): void;
|
|
1575
|
-
/* Excluded from this release type: toJSON */
|
|
1576
1700
|
private evaluateUnbindables;
|
|
1577
1701
|
/**
|
|
1578
1702
|
* Efficiently disposes of a contiguous range of synthetic view instances.
|
|
@@ -1751,14 +1875,6 @@ export declare abstract class NodeObservationDirective<T extends NodeBehaviorOpt
|
|
|
1751
1875
|
protected abstract getNodes(target: any): Node[];
|
|
1752
1876
|
}
|
|
1753
1877
|
|
|
1754
|
-
/**
|
|
1755
|
-
* Normalizes the input value into a binding.
|
|
1756
|
-
* @param value - The value to create the default binding for.
|
|
1757
|
-
* @returns A binding configuration for the provided value.
|
|
1758
|
-
* @public
|
|
1759
|
-
*/
|
|
1760
|
-
export declare function normalizeBinding<TSource = any, TReturn = any, TParent = any>(value: Expression<TSource, TReturn, TParent> | Binding<TSource, TReturn, TParent> | {}): Binding<TSource, TReturn, TParent>;
|
|
1761
|
-
|
|
1762
1878
|
/**
|
|
1763
1879
|
* Provides change notifications for an observed subject.
|
|
1764
1880
|
* @public
|
|
@@ -1898,6 +2014,16 @@ export declare interface ObservationRecord {
|
|
|
1898
2014
|
*/
|
|
1899
2015
|
export declare function oneTime<T = any>(expression: Expression<T>, policy?: DOMPolicy): Binding<T>;
|
|
1900
2016
|
|
|
2017
|
+
/**
|
|
2018
|
+
* Creates an standard binding.
|
|
2019
|
+
* @param expression - The binding to refresh when changed.
|
|
2020
|
+
* @param policy - The security policy to associate with th binding.
|
|
2021
|
+
* @param isVolatile - Indicates whether the binding is volatile or not.
|
|
2022
|
+
* @returns A binding configuration.
|
|
2023
|
+
* @public
|
|
2024
|
+
*/
|
|
2025
|
+
export declare function oneWay<T = any>(expression: Expression<T>, policy?: DOMPolicy, isVolatile?: boolean): Binding<T>;
|
|
2026
|
+
|
|
1901
2027
|
/**
|
|
1902
2028
|
* Common APIs related to content parsing.
|
|
1903
2029
|
* @public
|
|
@@ -2087,7 +2213,7 @@ export declare class RepeatBehavior<TSource = any> implements ViewBehavior, Subs
|
|
|
2087
2213
|
* A directive that configures list rendering.
|
|
2088
2214
|
* @public
|
|
2089
2215
|
*/
|
|
2090
|
-
export declare class RepeatDirective<TSource = any> implements HTMLDirective, ViewBehaviorFactory {
|
|
2216
|
+
export declare class RepeatDirective<TSource = any> implements HTMLDirective, ViewBehaviorFactory, BindingDirective {
|
|
2091
2217
|
readonly dataBinding: Binding<TSource>;
|
|
2092
2218
|
readonly templateBinding: Binding<TSource, SyntheticViewTemplate>;
|
|
2093
2219
|
readonly options: RepeatOptions;
|
|
@@ -2360,7 +2486,6 @@ export declare type SpliceStrategySupport = typeof SpliceStrategySupport[keyof t
|
|
|
2360
2486
|
*/
|
|
2361
2487
|
export declare abstract class StatelessAttachedAttributeDirective<TOptions> implements HTMLDirective, ViewBehaviorFactory, ViewBehavior {
|
|
2362
2488
|
protected options: TOptions;
|
|
2363
|
-
/* Excluded from this release type: toJSON */
|
|
2364
2489
|
/**
|
|
2365
2490
|
* Creates an instance of RefDirective.
|
|
2366
2491
|
* @param options - The options to use in configuring the directive.
|
|
@@ -2563,10 +2688,6 @@ export declare type TrustedTypesPolicy = {
|
|
|
2563
2688
|
createHTML(html: string): string;
|
|
2564
2689
|
};
|
|
2565
2690
|
|
|
2566
|
-
/* Excluded from this release type: TypeDefinition */
|
|
2567
|
-
|
|
2568
|
-
/* Excluded from this release type: TypeRegistry */
|
|
2569
|
-
|
|
2570
2691
|
/**
|
|
2571
2692
|
* A work queue used to synchronize writes to the DOM.
|
|
2572
2693
|
* @public
|
|
@@ -2639,6 +2760,10 @@ export declare interface View<TSource = any, TParent = any> extends Disposable {
|
|
|
2639
2760
|
* The data that the view is bound to.
|
|
2640
2761
|
*/
|
|
2641
2762
|
readonly source: TSource | null;
|
|
2763
|
+
/**
|
|
2764
|
+
* Indicates whether the controller is bound.
|
|
2765
|
+
*/
|
|
2766
|
+
readonly isBound: boolean;
|
|
2642
2767
|
/**
|
|
2643
2768
|
* Binds a view's behaviors to its binding source.
|
|
2644
2769
|
* @param source - The binding source for the view's binding behaviors.
|
|
@@ -2758,7 +2883,6 @@ export declare class ViewTemplate<TSource = any, TParent = any> implements Eleme
|
|
|
2758
2883
|
* host that the template is being attached to.
|
|
2759
2884
|
*/
|
|
2760
2885
|
render(source: TSource, host: Node, hostBindingTarget?: Element): HTMLView<TSource, TParent>;
|
|
2761
|
-
/* Excluded from this release type: toJSON */
|
|
2762
2886
|
/**
|
|
2763
2887
|
* Creates a template based on a set of static strings and dynamic values.
|
|
2764
2888
|
* @param strings - The static strings to create the template with.
|