@m3e/loading-indicator 1.0.0-rc.2 → 1.0.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,7 +27,7 @@ Alternately, you can explicitly reference the `html-custom-data.json` and `css-c
27
27
  }
28
28
  ```
29
29
 
30
- ## 🚀 Browser Usage
30
+ ## 🚀 Native Module Support
31
31
 
32
32
  This package uses [JavaScript Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#module_specifiers). To use it directly in a browser without a bundler, use a module script similar to the following.
33
33
 
@@ -1039,25 +1039,6 @@
1039
1039
  "kind": "mixin",
1040
1040
  "description": "Mixin that adds support for custom event attributes.",
1041
1041
  "name": "EventAttribute",
1042
- "members": [
1043
- {
1044
- "kind": "method",
1045
- "name": "dispatchEvent",
1046
- "return": {
1047
- "type": {
1048
- "text": "boolean"
1049
- }
1050
- },
1051
- "parameters": [
1052
- {
1053
- "name": "event",
1054
- "type": {
1055
- "text": "Event"
1056
- }
1057
- }
1058
- ]
1059
- }
1060
- ],
1061
1042
  "parameters": [
1062
1043
  {
1063
1044
  "name": "base",
@@ -1355,6 +1336,17 @@
1355
1336
  "description": "Mixin to augment an element with behavior used to submit a form.",
1356
1337
  "name": "FormSubmitter",
1357
1338
  "members": [
1339
+ {
1340
+ "kind": "field",
1341
+ "name": "formAssociated",
1342
+ "type": {
1343
+ "text": "boolean"
1344
+ },
1345
+ "static": true,
1346
+ "readonly": true,
1347
+ "default": "true",
1348
+ "description": "Indicates that this custom element participates in form submission, validation, and form state restoration."
1349
+ },
1358
1350
  {
1359
1351
  "kind": "field",
1360
1352
  "name": "name",
@@ -1891,6 +1883,11 @@
1891
1883
  "kind": "javascript-module",
1892
1884
  "path": "../core/src/shared/mixins/Labelled.ts",
1893
1885
  "declarations": [
1886
+ {
1887
+ "kind": "variable",
1888
+ "name": "updateLabels",
1889
+ "description": "A symbol through which to update labels to reflect a control's current state."
1890
+ },
1894
1891
  {
1895
1892
  "kind": "function",
1896
1893
  "name": "isLabelledMixin",
@@ -1940,16 +1937,6 @@
1940
1937
  },
1941
1938
  "description": "The label elements that the element is associated with.",
1942
1939
  "readonly": true
1943
- },
1944
- {
1945
- "kind": "method",
1946
- "name": "[_updateLabels]",
1947
- "privacy": "private",
1948
- "return": {
1949
- "type": {
1950
- "text": "void"
1951
- }
1952
- }
1953
1940
  }
1954
1941
  ],
1955
1942
  "parameters": [
@@ -1964,6 +1951,14 @@
1964
1951
  }
1965
1952
  ],
1966
1953
  "exports": [
1954
+ {
1955
+ "kind": "js",
1956
+ "name": "updateLabels",
1957
+ "declaration": {
1958
+ "name": "updateLabels",
1959
+ "module": "../core/src/shared/mixins/Labelled.ts"
1960
+ }
1961
+ },
1967
1962
  {
1968
1963
  "kind": "js",
1969
1964
  "name": "isLabelledMixin",
@@ -0,0 +1,57 @@
1
+ import { LitElement, PropertyValues } from "lit";
2
+ import { LoadingIndicatorVariant } from "./LoadingIndicatorVariant";
3
+ declare const M3eLoadingIndicatorElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof LitElement;
4
+ /**
5
+ * Shows indeterminate progress for a short wait time.
6
+ *
7
+ * @description
8
+ * The `m3e-loading-indicator` component uses animation to grab attention, mitigate perceived latency, and indicate
9
+ * that an activity is in progress.
10
+ *
11
+ * When placed over other content, use the `variant` attribute to change the appearance from `uncontained` (the default),
12
+ * to `contained` so that it has strong contrast to help it stand out better.
13
+ *
14
+ * @example
15
+ * The following example illustrates an uncontained loading indicator.
16
+ * ```html
17
+ * <m3e-loading-indicator></m3e-loading-indicator>
18
+ * ```
19
+ *
20
+ * @tag m3e-loading-indicator
21
+ *
22
+ * @attr variant - The appearance variant of the indicator.
23
+ *
24
+ * @cssprop --m3e-loading-indicator-active-indicator-color - Uncontained active indicator color.
25
+ * @cssprop --m3e-loading-indicator-contained-active-indicator-color - Contained active indicator color.
26
+ * @cssprop --m3e-loading-indicator-contained-container-color - Contained container (background) color.
27
+ * @cssprop --m3e-loading-indicator-active-indicator-size - Size of the active indicator.
28
+ * @cssprop --m3e-loading-indicator-container-shape - Container shape.
29
+ * @cssprop --m3e-loading-indicator-container-size - Container size.
30
+ */
31
+ export declare class M3eLoadingIndicatorElement extends M3eLoadingIndicatorElement_base {
32
+ #private;
33
+ /** The styles of the element. */
34
+ static styles: import("lit").CSSResult;
35
+ /** @private */
36
+ private readonly _activeIndicator?;
37
+ /**
38
+ * The appearance variant of the indicator.
39
+ * @default "uncontained"
40
+ */
41
+ variant: LoadingIndicatorVariant;
42
+ /** @inheritdoc */
43
+ connectedCallback(): void;
44
+ /** @inheritdoc */
45
+ disconnectedCallback(): void;
46
+ /** @inheritdoc */
47
+ protected firstUpdated(_changedProperties: PropertyValues): void;
48
+ /** @inheritdoc */
49
+ render(): import("lit-html").TemplateResult<1>;
50
+ }
51
+ declare global {
52
+ interface HTMLElementTagNameMap {
53
+ "m3e-loading-indicator": M3eLoadingIndicatorElement;
54
+ }
55
+ }
56
+ export {};
57
+ //# sourceMappingURL=LoadingIndicatorElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingIndicatorElement.d.ts","sourceRoot":"","sources":["../../src/LoadingIndicatorElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAK5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;;AAIpE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBACa,0BAA2B,SAAQ,+BAA+B;;IAC7E,iCAAiC;IACjC,OAAgB,MAAM,0BA2FpB;IAEF,eAAe;IACa,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAc;IA2B5E;;;OAGG;IAC0B,OAAO,EAAE,uBAAuB,CAAiB;IAE9E,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAOlC,kBAAkB;IACT,oBAAoB,IAAI,IAAI;IAOrC,kBAAkB;cACC,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;IASzE,kBAAkB;IACT,MAAM;CAKhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
@@ -0,0 +1,9 @@
1
+ export declare const LoadingIndicatorToken: {
2
+ readonly activeIndicatorSize: import("lit").CSSResult;
3
+ readonly activeIndicatorColor: import("lit").CSSResult;
4
+ readonly containedActiveIndicatorColor: import("lit").CSSResult;
5
+ readonly containedContainerColor: import("lit").CSSResult;
6
+ readonly containerShape: import("lit").CSSResult;
7
+ readonly containerSize: import("lit").CSSResult;
8
+ };
9
+ //# sourceMappingURL=LoadingIndicatorToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingIndicatorToken.d.ts","sourceRoot":"","sources":["../../src/LoadingIndicatorToken.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;;;;CAWxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Specifies the possible appearance variants of a loading indicator. */
2
+ export type LoadingIndicatorVariant = "uncontained" | "contained";
3
+ //# sourceMappingURL=LoadingIndicatorVariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingIndicatorVariant.d.ts","sourceRoot":"","sources":["../../src/LoadingIndicatorVariant.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CSSResult } from "lit";
2
+ /**
3
+ * Normalized polygons for each shape.
4
+ * @internal
5
+ */
6
+ export declare const ShapePolygon: Record<string, CSSResult>;
7
+ //# sourceMappingURL=ShapePolygon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShapePolygon.d.ts","sourceRoot":"","sources":["../../src/ShapePolygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,KAAK,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAsBlD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./LoadingIndicatorElement";
2
+ export * from "./LoadingIndicatorVariant";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m3e/loading-indicator",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.4",
4
4
  "description": "Loading Indicator for M3E",
5
5
  "author": "matraic <matraic@yahoo.com>",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "clean": "rimraf dist"
28
28
  },
29
29
  "peerDependencies": {
30
- "@m3e/core": "1.0.0-rc.2",
30
+ "@m3e/core": "1.0.0-rc.4",
31
31
  "lit": "^3.3.0"
32
32
  },
33
33
  "devDependencies": {