@microsoft/fast-element 1.8.0 → 1.10.1

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.
Files changed (59) hide show
  1. package/.eslintrc.json +30 -0
  2. package/CHANGELOG.json +133 -1
  3. package/CHANGELOG.md +26 -2
  4. package/dist/dts/components/attributes.d.ts +1 -1
  5. package/dist/dts/components/controller.d.ts +6 -6
  6. package/dist/dts/components/fast-definitions.d.ts +3 -3
  7. package/dist/dts/components/fast-element.d.ts +2 -2
  8. package/dist/dts/dom.d.ts +2 -2
  9. package/dist/dts/index.d.ts +26 -26
  10. package/dist/dts/observation/behavior.d.ts +1 -1
  11. package/dist/dts/observation/observable.d.ts +1 -1
  12. package/dist/dts/styles/css-directive.d.ts +2 -2
  13. package/dist/dts/styles/css.d.ts +2 -2
  14. package/dist/dts/styles/element-styles.d.ts +1 -1
  15. package/dist/dts/templating/binding.d.ts +3 -3
  16. package/dist/dts/templating/children.d.ts +2 -2
  17. package/dist/dts/templating/compiler.d.ts +1 -1
  18. package/dist/dts/templating/html-directive.d.ts +1 -1
  19. package/dist/dts/templating/node-observation.d.ts +1 -1
  20. package/dist/dts/templating/ref.d.ts +2 -2
  21. package/dist/dts/templating/repeat.d.ts +6 -6
  22. package/dist/dts/templating/slotted.d.ts +2 -2
  23. package/dist/dts/templating/template.d.ts +3 -3
  24. package/dist/dts/templating/view.d.ts +2 -2
  25. package/dist/dts/templating/when.d.ts +2 -2
  26. package/dist/esm/components/attributes.js +2 -2
  27. package/dist/esm/components/controller.js +4 -4
  28. package/dist/esm/components/fast-definitions.js +4 -4
  29. package/dist/esm/components/fast-element.js +2 -2
  30. package/dist/esm/dom.js +1 -1
  31. package/dist/esm/index.js +24 -23
  32. package/dist/esm/interfaces.js +1 -0
  33. package/dist/esm/observation/array-change-records.js +1 -1
  34. package/dist/esm/observation/array-observer.js +4 -4
  35. package/dist/esm/observation/behavior.js +1 -0
  36. package/dist/esm/observation/notifier.js +2 -1
  37. package/dist/esm/observation/observable.js +4 -3
  38. package/dist/esm/styles/css.js +2 -2
  39. package/dist/esm/styles/element-styles.js +1 -3
  40. package/dist/esm/templating/binding.js +3 -3
  41. package/dist/esm/templating/children.js +2 -2
  42. package/dist/esm/templating/compiler.js +3 -2
  43. package/dist/esm/templating/html-directive.js +1 -1
  44. package/dist/esm/templating/node-observation.js +2 -2
  45. package/dist/esm/templating/ref.js +1 -1
  46. package/dist/esm/templating/repeat.js +6 -6
  47. package/dist/esm/templating/slotted.js +2 -2
  48. package/dist/esm/templating/template.js +6 -6
  49. package/dist/fast-element.api.json +633 -173
  50. package/dist/fast-element.d.ts +0 -1
  51. package/dist/fast-element.js +3 -3
  52. package/dist/fast-element.min.js +1 -1
  53. package/dist/tsdoc-metadata.json +1 -1
  54. package/docs/guide/declaring-templates.md +1 -1
  55. package/docs/guide/next-steps.md +2 -4
  56. package/docs/guide/observables-and-state.md +10 -8
  57. package/docs/guide/using-directives.md +2 -2
  58. package/karma.conf.cjs +152 -0
  59. package/package.json +14 -12
package/.eslintrc.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "extends": ["@microsoft/eslint-config-fast-dna", "prettier"],
3
+ "rules": {
4
+ "max-classes-per-file": "off",
5
+ "no-case-declarations": "off",
6
+ "@typescript-eslint/ban-types": [
7
+ "error",
8
+ {
9
+ "types": {
10
+ "{}": false,
11
+ "Function": false,
12
+ "Object": false
13
+ },
14
+ "extendDefaults": true
15
+ }
16
+ ],
17
+ "@typescript-eslint/no-use-before-define": ["error", { "typedefs": false }],
18
+ "@typescript-eslint/no-non-null-assertion": "off",
19
+ "@typescript-eslint/explicit-function-return-type": [
20
+ "error",
21
+ {
22
+ "allowExpressions": true
23
+ }
24
+ ],
25
+ "import/extensions": [
26
+ "error",
27
+ "always"
28
+ ]
29
+ }
30
+ }
package/CHANGELOG.json CHANGED
@@ -2,7 +2,139 @@
2
2
  "name": "@microsoft/fast-element",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 08 Mar 2022 07:10:44 GMT",
5
+ "date": "Tue, 03 May 2022 07:12:26 GMT",
6
+ "tag": "@microsoft/fast-element_v1.10.1",
7
+ "version": "1.10.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Upgraded api-extractor",
12
+ "author": "44823142+williamw2@users.noreply.github.com",
13
+ "commit": "2341496a6fafe3051dc50333c21ca652026f725b",
14
+ "package": "@microsoft/fast-element"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 27 Apr 2022 07:21:09 GMT",
21
+ "tag": "@microsoft/fast-element_v1.10.0",
22
+ "version": "1.10.0",
23
+ "comments": {
24
+ "minor": [
25
+ {
26
+ "comment": "update to typescript 4.6.2 and update ARIAMixin typings",
27
+ "author": "chhol@microsoft.com",
28
+ "commit": "35bdab45550b5d8b8762041110eccb06de78add5",
29
+ "package": "@microsoft/fast-element"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Sun, 24 Apr 2022 07:13:26 GMT",
36
+ "tag": "@microsoft/fast-element_v1.9.0",
37
+ "version": "1.9.0",
38
+ "comments": {
39
+ "none": [
40
+ {
41
+ "comment": "Update to fix broken links and grammar.",
42
+ "author": "16669785+awentzel@users.noreply.github.com",
43
+ "commit": "ed08697132b639f3104562b16a0dcf5c5653a878",
44
+ "package": "@microsoft/fast-element"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Wed, 20 Apr 2022 07:13:17 GMT",
51
+ "tag": "@microsoft/fast-element_v1.9.0",
52
+ "version": "1.9.0",
53
+ "comments": {
54
+ "none": [
55
+ {
56
+ "comment": "Pull up api-extractor.json to root and then extend it for each project",
57
+ "author": "stephanosp@microsoft.com",
58
+ "commit": "e3076337cbc2d260a497116061ee3bba3866a97d",
59
+ "package": "@microsoft/fast-element"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Sun, 17 Apr 2022 07:11:18 GMT",
66
+ "tag": "@microsoft/fast-element_v1.9.0",
67
+ "version": "1.9.0",
68
+ "comments": {
69
+ "none": [
70
+ {
71
+ "comment": "Merge branch 'master' into wanFixString",
72
+ "author": "74849806+wannieman98@users.noreply.github.com",
73
+ "commit": "14bc5d5f2ae608328eb16ad7e619bab00415f60a",
74
+ "package": "@microsoft/fast-element"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "date": "Tue, 12 Apr 2022 07:13:35 GMT",
81
+ "tag": "@microsoft/fast-element_v1.9.0",
82
+ "version": "1.9.0",
83
+ "comments": {
84
+ "none": [
85
+ {
86
+ "comment": "repeat directive documentation fix code snippet not rendering properly",
87
+ "author": "yinon@hotmail.com",
88
+ "commit": "3e4d72447520f40d234b1df2cc70446dcef8bb47",
89
+ "package": "@microsoft/fast-element"
90
+ }
91
+ ]
92
+ }
93
+ },
94
+ {
95
+ "date": "Wed, 06 Apr 2022 07:12:42 GMT",
96
+ "tag": "@microsoft/fast-element_v1.9.0",
97
+ "version": "1.9.0",
98
+ "comments": {
99
+ "minor": [
100
+ {
101
+ "comment": "convert fast-element to type:module",
102
+ "author": "nicholasrice@users.noreply.github.com",
103
+ "commit": "ead7f7340654236f2503359e2fc6f0b41639b507",
104
+ "package": "@microsoft/fast-element"
105
+ }
106
+ ]
107
+ }
108
+ },
109
+ {
110
+ "date": "Sun, 03 Apr 2022 07:12:01 GMT",
111
+ "tag": "@microsoft/fast-element_v1.8.0",
112
+ "version": "1.8.0",
113
+ "comments": {
114
+ "none": [
115
+ {
116
+ "comment": "Fixed a typo in a doc example",
117
+ "author": "47367562+bheston@users.noreply.github.com",
118
+ "commit": "35913ce3a2dcba83bebb63cce2b8edf4e9da7df9",
119
+ "package": "@microsoft/fast-element"
120
+ },
121
+ {
122
+ "comment": "add comment-style tags for syntax highlighting (#5561)",
123
+ "author": "chhol@microsoft.com",
124
+ "commit": "7495a63e6e89b6e92e2d7f289eea063a8a354108",
125
+ "package": "@microsoft/fast-element"
126
+ },
127
+ {
128
+ "comment": "Update binding documentation to have an accurate example. Changes \"Bindings\" to \"Volatile Properties\".",
129
+ "author": "tgoze@ntst.com",
130
+ "commit": "1ffb431816f418864d2385b29ba494efcb3fa844",
131
+ "package": "@microsoft/fast-element"
132
+ }
133
+ ]
134
+ }
135
+ },
136
+ {
137
+ "date": "Tue, 08 Mar 2022 07:12:45 GMT",
6
138
  "tag": "@microsoft/fast-element_v1.8.0",
7
139
  "version": "1.8.0",
8
140
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,36 @@
1
1
  # Change Log - @microsoft/fast-element
2
2
 
3
- This log was last generated on Tue, 08 Mar 2022 07:10:44 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 03 May 2022 07:12:26 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.10.1
8
+
9
+ Tue, 03 May 2022 07:12:26 GMT
10
+
11
+ ### Patches
12
+
13
+ - Upgraded api-extractor (44823142+williamw2@users.noreply.github.com)
14
+
15
+ ## 1.10.0
16
+
17
+ Wed, 27 Apr 2022 07:21:09 GMT
18
+
19
+ ### Minor changes
20
+
21
+ - update to typescript 4.6.2 and update ARIAMixin typings (chhol@microsoft.com)
22
+
23
+ ## 1.9.0
24
+
25
+ Wed, 06 Apr 2022 07:12:42 GMT
26
+
27
+ ### Minor changes
28
+
29
+ - convert fast-element to type:module (nicholasrice@users.noreply.github.com)
30
+
7
31
  ## 1.8.0
8
32
 
9
- Tue, 08 Mar 2022 07:10:44 GMT
33
+ Tue, 08 Mar 2022 07:12:45 GMT
10
34
 
11
35
  ### Minor changes
12
36
 
@@ -1,4 +1,4 @@
1
- import { Accessor } from "../observation/observable";
1
+ import { Accessor } from "../observation/observable.js";
2
2
  /**
3
3
  * Represents objects that can convert values to and from
4
4
  * view or model representations.
@@ -1,9 +1,9 @@
1
- import type { Behavior } from "../observation/behavior";
2
- import { PropertyChangeNotifier } from "../observation/notifier";
3
- import type { ElementStyles } from "../styles/element-styles";
4
- import type { ElementViewTemplate } from "../templating/template";
5
- import type { ElementView } from "../templating/view";
6
- import { FASTElementDefinition } from "./fast-definitions";
1
+ import type { Behavior } from "../observation/behavior.js";
2
+ import { PropertyChangeNotifier } from "../observation/notifier.js";
3
+ import type { ElementStyles } from "../styles/element-styles.js";
4
+ import type { ElementViewTemplate } from "../templating/template.js";
5
+ import type { ElementView } from "../templating/view.js";
6
+ import { FASTElementDefinition } from "./fast-definitions.js";
7
7
  /**
8
8
  * Controls the lifecycle and rendering of a `FASTElement`.
9
9
  * @public
@@ -1,6 +1,6 @@
1
- import { ComposableStyles, ElementStyles } from "../styles/element-styles";
2
- import type { ElementViewTemplate } from "../templating/template";
3
- import { AttributeConfiguration, AttributeDefinition } from "./attributes";
1
+ import { ComposableStyles, ElementStyles } from "../styles/element-styles.js";
2
+ import type { ElementViewTemplate } from "../templating/template.js";
3
+ import { AttributeConfiguration, AttributeDefinition } from "./attributes.js";
4
4
  /**
5
5
  * Represents metadata configuration for a custom element.
6
6
  * @public
@@ -1,5 +1,5 @@
1
- import { Controller } from "./controller";
2
- import { PartialFASTElementDefinition } from "./fast-definitions";
1
+ import { Controller } from "./controller.js";
2
+ import { PartialFASTElementDefinition } from "./fast-definitions.js";
3
3
  /**
4
4
  * Represents a custom element based on the FASTElement infrastructure.
5
5
  * @public
package/dist/dts/dom.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Callable } from "./interfaces";
2
- import { TrustedTypesPolicy } from "./platform";
1
+ import type { Callable } from "./interfaces.js";
2
+ import { TrustedTypesPolicy } from "./platform.js";
3
3
  /** @internal */
4
4
  export declare const _interpolationStart: string;
5
5
  /** @internal */
@@ -1,26 +1,26 @@
1
- export * from "./platform";
2
- export * from "./templating/template";
3
- export * from "./components/fast-element";
4
- export { FASTElementDefinition, PartialFASTElementDefinition, } from "./components/fast-definitions";
5
- export * from "./components/attributes";
6
- export * from "./components/controller";
7
- export type { Callable, Constructable, Mutable } from "./interfaces";
8
- export * from "./templating/compiler";
9
- export { ElementStyles, ElementStyleFactory, ComposableStyles, StyleTarget, } from "./styles/element-styles";
10
- export { css, cssPartial } from "./styles/css";
11
- export { CSSDirective } from "./styles/css-directive";
12
- export * from "./templating/view";
13
- export * from "./observation/observable";
14
- export * from "./observation/notifier";
15
- export { Splice } from "./observation/array-change-records";
16
- export { enableArrayObservation } from "./observation/array-observer";
17
- export { DOM } from "./dom";
18
- export type { Behavior } from "./observation/behavior";
19
- export * from "./templating/binding";
20
- export * from "./templating/html-directive";
21
- export * from "./templating/ref";
22
- export * from "./templating/when";
23
- export * from "./templating/repeat";
24
- export * from "./templating/slotted";
25
- export * from "./templating/children";
26
- export { elements, ElementsFilter, NodeBehaviorOptions, } from "./templating/node-observation";
1
+ export * from "./platform.js";
2
+ export * from "./templating/template.js";
3
+ export * from "./components/fast-element.js";
4
+ export { FASTElementDefinition, PartialFASTElementDefinition, } from "./components/fast-definitions.js";
5
+ export * from "./components/attributes.js";
6
+ export * from "./components/controller.js";
7
+ export type { Callable, Constructable, Mutable } from "./interfaces.js";
8
+ export * from "./templating/compiler.js";
9
+ export { ElementStyles, ElementStyleFactory, ComposableStyles, StyleTarget, } from "./styles/element-styles.js";
10
+ export { css, cssPartial } from "./styles/css.js";
11
+ export { CSSDirective } from "./styles/css-directive.js";
12
+ export * from "./templating/view.js";
13
+ export * from "./observation/observable.js";
14
+ export * from "./observation/notifier.js";
15
+ export { Splice } from "./observation/array-change-records.js";
16
+ export { enableArrayObservation } from "./observation/array-observer.js";
17
+ export { DOM } from "./dom.js";
18
+ export type { Behavior } from "./observation/behavior.js";
19
+ export * from "./templating/binding.js";
20
+ export * from "./templating/html-directive.js";
21
+ export * from "./templating/ref.js";
22
+ export * from "./templating/when.js";
23
+ export * from "./templating/repeat.js";
24
+ export * from "./templating/slotted.js";
25
+ export * from "./templating/children.js";
26
+ export { elements, ElementsFilter, NodeBehaviorOptions, } from "./templating/node-observation.js";
@@ -1,4 +1,4 @@
1
- import type { ExecutionContext } from "./observable";
1
+ import type { ExecutionContext } from "./observable.js";
2
2
  /**
3
3
  * Represents and object that can contribute behavior to a view or
4
4
  * element's bind/unbind operations.
@@ -1,4 +1,4 @@
1
- import type { Notifier, Subscriber } from "./notifier";
1
+ import type { Notifier, Subscriber } from "./notifier.js";
2
2
  /**
3
3
  * Represents a getter/setter property accessor on an object.
4
4
  * @public
@@ -1,5 +1,5 @@
1
- import type { Behavior } from "../observation/behavior";
2
- import type { ComposableStyles } from "./element-styles";
1
+ import type { Behavior } from "../observation/behavior.js";
2
+ import type { ComposableStyles } from "./element-styles.js";
3
3
  /**
4
4
  * Directive for use in {@link css}.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { CSSDirective } from "./css-directive";
2
- import { ComposableStyles, ElementStyles } from "./element-styles";
1
+ import { CSSDirective } from "./css-directive.js";
2
+ import { ComposableStyles, ElementStyles } from "./element-styles.js";
3
3
  /**
4
4
  * Transforms a template literal string into styles.
5
5
  * @param strings - The string fragments that are interpolated with the values.
@@ -1,4 +1,4 @@
1
- import type { Behavior } from "../observation/behavior";
1
+ import type { Behavior } from "../observation/behavior.js";
2
2
  /**
3
3
  * A node that can be targeted by styles.
4
4
  * @public
@@ -1,6 +1,6 @@
1
- import type { Behavior } from "../observation/behavior";
2
- import { Binding, BindingObserver, ExecutionContext } from "../observation/observable";
3
- import { TargetedHTMLDirective } from "./html-directive";
1
+ import type { Behavior } from "../observation/behavior.js";
2
+ import { Binding, BindingObserver, ExecutionContext } from "../observation/observable.js";
3
+ import { TargetedHTMLDirective } from "./html-directive.js";
4
4
  declare function normalBind(this: BindingBehavior, source: unknown, context: ExecutionContext): void;
5
5
  declare function normalUnbind(this: BindingBehavior): void;
6
6
  declare function updatePropertyTarget(this: BindingBehavior, value: unknown): void;
@@ -1,5 +1,5 @@
1
- import { NodeBehaviorOptions, NodeObservationBehavior } from "./node-observation";
2
- import type { CaptureType } from "./template";
1
+ import { NodeBehaviorOptions, NodeObservationBehavior } from "./node-observation.js";
2
+ import type { CaptureType } from "./template.js";
3
3
  /**
4
4
  * The options used to configure child list observation.
5
5
  * @public
@@ -1,4 +1,4 @@
1
- import type { HTMLDirective, NodeBehaviorFactory } from "./html-directive";
1
+ import type { HTMLDirective, NodeBehaviorFactory } from "./html-directive.js";
2
2
  /**
3
3
  * The result of compiling a template and its directives.
4
4
  * @beta
@@ -1,4 +1,4 @@
1
- import type { Behavior } from "../observation/behavior";
1
+ import type { Behavior } from "../observation/behavior.js";
2
2
  /**
3
3
  * A factory that can create a {@link Behavior} associated with a particular
4
4
  * location within a DOM fragment.
@@ -1,4 +1,4 @@
1
- import type { Behavior } from "../observation/behavior";
1
+ import type { Behavior } from "../observation/behavior.js";
2
2
  /**
3
3
  * Options for configuring node observation behavior.
4
4
  * @public
@@ -1,5 +1,5 @@
1
- import type { Behavior } from "../observation/behavior";
2
- import type { CaptureType } from "./template";
1
+ import type { Behavior } from "../observation/behavior.js";
2
+ import type { CaptureType } from "./template.js";
3
3
  /**
4
4
  * The runtime behavior for template references.
5
5
  * @public
@@ -1,9 +1,9 @@
1
- import { Binding, ExecutionContext } from "../observation/observable";
2
- import type { Subscriber } from "../observation/notifier";
3
- import type { Splice } from "../observation/array-change-records";
4
- import type { Behavior } from "../observation/behavior";
5
- import { HTMLDirective } from "./html-directive";
6
- import type { CaptureType, SyntheticViewTemplate } from "./template";
1
+ import { Binding, ExecutionContext } from "../observation/observable.js";
2
+ import type { Subscriber } from "../observation/notifier.js";
3
+ import type { Splice } from "../observation/array-change-records.js";
4
+ import type { Behavior } from "../observation/behavior.js";
5
+ import { HTMLDirective } from "./html-directive.js";
6
+ import type { CaptureType, SyntheticViewTemplate } from "./template.js";
7
7
  /**
8
8
  * Options for configuring repeat behavior.
9
9
  * @public
@@ -1,5 +1,5 @@
1
- import { NodeBehaviorOptions, NodeObservationBehavior } from "./node-observation";
2
- import type { CaptureType } from "./template";
1
+ import { NodeBehaviorOptions, NodeObservationBehavior } from "./node-observation.js";
2
+ import type { CaptureType } from "./template.js";
3
3
  /**
4
4
  * The options used to configure slotted node observation.
5
5
  * @public
@@ -1,6 +1,6 @@
1
- import { Binding } from "../observation/observable";
2
- import { ElementView, HTMLView, SyntheticView } from "./view";
3
- import { HTMLDirective } from "./html-directive";
1
+ import { Binding } from "../observation/observable.js";
2
+ import { ElementView, HTMLView, SyntheticView } from "./view.js";
3
+ import { HTMLDirective } from "./html-directive.js";
4
4
  /**
5
5
  * A template capable of creating views specifically for rendering custom elements.
6
6
  * @public
@@ -1,5 +1,5 @@
1
- import type { Behavior } from "../observation/behavior";
2
- import type { ExecutionContext } from "../observation/observable";
1
+ import type { Behavior } from "../observation/behavior.js";
2
+ import type { ExecutionContext } from "../observation/observable.js";
3
3
  /**
4
4
  * Represents a collection of DOM nodes which can be bound to a data source.
5
5
  * @public
@@ -1,5 +1,5 @@
1
- import type { Binding } from "../observation/observable";
2
- import type { CaptureType, SyntheticViewTemplate } from "./template";
1
+ import type { Binding } from "../observation/observable.js";
2
+ import type { CaptureType, SyntheticViewTemplate } from "./template.js";
3
3
  /**
4
4
  * A directive that enables basic conditional rendering in a template.
5
5
  * @param binding - The condition to test for rendering.
@@ -1,5 +1,5 @@
1
- import { Observable } from "../observation/observable";
2
- import { DOM } from "../dom";
1
+ import { Observable } from "../observation/observable.js";
2
+ import { DOM } from "../dom.js";
3
3
  /**
4
4
  * A {@link ValueConverter} that converts to and from `boolean` values.
5
5
  * @remarks
@@ -1,7 +1,7 @@
1
- import { DOM } from "../dom";
2
- import { PropertyChangeNotifier } from "../observation/notifier";
3
- import { defaultExecutionContext, Observable } from "../observation/observable";
4
- import { FASTElementDefinition } from "./fast-definitions";
1
+ import { DOM } from "../dom.js";
2
+ import { PropertyChangeNotifier } from "../observation/notifier.js";
3
+ import { defaultExecutionContext, Observable } from "../observation/observable.js";
4
+ import { FASTElementDefinition } from "./fast-definitions.js";
5
5
  const shadowRoots = new WeakMap();
6
6
  const defaultEventOptions = {
7
7
  bubbles: true,
@@ -1,7 +1,7 @@
1
- import { FAST } from "../platform";
2
- import { Observable } from "../observation/observable";
3
- import { ElementStyles } from "../styles/element-styles";
4
- import { AttributeDefinition } from "./attributes";
1
+ import { FAST } from "../platform.js";
2
+ import { Observable } from "../observation/observable.js";
3
+ import { ElementStyles } from "../styles/element-styles.js";
4
+ import { AttributeDefinition } from "./attributes.js";
5
5
  const defaultShadowOptions = { mode: "open" };
6
6
  const defaultElementOptions = {};
7
7
  const fastRegistry = FAST.getById(4 /* elementRegistry */, () => {
@@ -1,5 +1,5 @@
1
- import { Controller } from "./controller";
2
- import { FASTElementDefinition } from "./fast-definitions";
1
+ import { Controller } from "./controller.js";
2
+ import { FASTElementDefinition, } from "./fast-definitions.js";
3
3
  /* eslint-disable-next-line @typescript-eslint/explicit-function-return-type */
4
4
  function createFASTElement(BaseType) {
5
5
  return class extends BaseType {
package/dist/esm/dom.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $global } from "./platform";
1
+ import { $global } from "./platform.js";
2
2
  const updateQueue = $global.FAST.getById(1 /* updateQueue */, () => {
3
3
  const tasks = [];
4
4
  const pendingErrors = [];
package/dist/esm/index.js CHANGED
@@ -1,23 +1,24 @@
1
- export * from "./platform";
2
- export * from "./templating/template";
3
- export * from "./components/fast-element";
4
- export { FASTElementDefinition, } from "./components/fast-definitions";
5
- export * from "./components/attributes";
6
- export * from "./components/controller";
7
- export * from "./templating/compiler";
8
- export { ElementStyles, } from "./styles/element-styles";
9
- export { css, cssPartial } from "./styles/css";
10
- export { CSSDirective } from "./styles/css-directive";
11
- export * from "./templating/view";
12
- export * from "./observation/observable";
13
- export * from "./observation/notifier";
14
- export { enableArrayObservation } from "./observation/array-observer";
15
- export { DOM } from "./dom";
16
- export * from "./templating/binding";
17
- export * from "./templating/html-directive";
18
- export * from "./templating/ref";
19
- export * from "./templating/when";
20
- export * from "./templating/repeat";
21
- export * from "./templating/slotted";
22
- export * from "./templating/children";
23
- export { elements, } from "./templating/node-observation";
1
+ export * from "./platform.js";
2
+ export * from "./templating/template.js";
3
+ export * from "./components/fast-element.js";
4
+ export { FASTElementDefinition, } from "./components/fast-definitions.js";
5
+ export * from "./components/attributes.js";
6
+ export * from "./components/controller.js";
7
+ export * from "./templating/compiler.js";
8
+ export { ElementStyles, } from "./styles/element-styles.js";
9
+ export { css, cssPartial } from "./styles/css.js";
10
+ export { CSSDirective } from "./styles/css-directive.js";
11
+ export * from "./templating/view.js";
12
+ export * from "./observation/observable.js";
13
+ export * from "./observation/notifier.js";
14
+ export {} from "./observation/array-change-records.js";
15
+ export { enableArrayObservation } from "./observation/array-observer.js";
16
+ export { DOM } from "./dom.js";
17
+ export * from "./templating/binding.js";
18
+ export * from "./templating/html-directive.js";
19
+ export * from "./templating/ref.js";
20
+ export * from "./templating/when.js";
21
+ export * from "./templating/repeat.js";
22
+ export * from "./templating/slotted.js";
23
+ export * from "./templating/children.js";
24
+ export { elements, } from "./templating/node-observation.js";
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import { emptyArray } from "../platform";
1
+ import { emptyArray } from "../platform.js";
2
2
  /** @internal */
3
3
  export function newSplice(index, removed, addedCount) {
4
4
  return {
@@ -1,7 +1,7 @@
1
- import { DOM } from "../dom";
2
- import { calcSplices, newSplice, projectArraySplices } from "./array-change-records";
3
- import { SubscriberSet } from "./notifier";
4
- import { Observable } from "./observable";
1
+ import { DOM } from "../dom.js";
2
+ import { calcSplices, newSplice, projectArraySplices } from "./array-change-records.js";
3
+ import { SubscriberSet } from "./notifier.js";
4
+ import { Observable } from "./observable.js";
5
5
  let arrayObservationEnabled = false;
6
6
  function adjustIndex(changeRecord, array) {
7
7
  let index = changeRecord.index;
@@ -0,0 +1 @@
1
+ export {};
@@ -147,7 +147,8 @@ export class PropertyChangeNotifier {
147
147
  subscribers.subscribe(subscriber);
148
148
  }
149
149
  else {
150
- this.sourceSubscribers = (_a = this.sourceSubscribers) !== null && _a !== void 0 ? _a : new SubscriberSet(this.source);
150
+ this.sourceSubscribers =
151
+ (_a = this.sourceSubscribers) !== null && _a !== void 0 ? _a : new SubscriberSet(this.source);
151
152
  this.sourceSubscribers.subscribe(subscriber);
152
153
  }
153
154
  }
@@ -1,6 +1,6 @@
1
- import { DOM } from "../dom";
2
- import { PropertyChangeNotifier, SubscriberSet } from "./notifier";
3
- import { FAST } from "../platform";
1
+ import { DOM } from "../dom.js";
2
+ import { FAST } from "../platform.js";
3
+ import { PropertyChangeNotifier, SubscriberSet } from "./notifier.js";
4
4
  /**
5
5
  * Common Observable APIs.
6
6
  * @public
@@ -122,6 +122,7 @@ export const Observable = FAST.getById(2 /* observable */, () => {
122
122
  watcher = void 0;
123
123
  /* eslint-disable-next-line */
124
124
  prevValue = prev.propertySource[prev.propertyName];
125
+ /* eslint-disable-next-line @typescript-eslint/no-this-alias */
125
126
  watcher = this;
126
127
  if (propertySource === prevValue) {
127
128
  this.needsRefresh = true;
@@ -1,5 +1,5 @@
1
- import { CSSDirective } from "./css-directive";
2
- import { ElementStyles } from "./element-styles";
1
+ import { CSSDirective } from "./css-directive.js";
2
+ import { ElementStyles } from "./element-styles.js";
3
3
  function collectStyles(strings, values) {
4
4
  const styles = [];
5
5
  let cssString = "";