@m3e/progress-indicator 1.1.2 → 1.1.3

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.
@@ -1,12 +1,4 @@
1
- /**
2
- * Adapted from Angular Material Progress Bar
3
- * Source: https://github.com/angular/components/blob/main/src/material/progress-bar/progress-bar.ts
4
- *
5
- * @license MIT
6
- * Copyright (c) 2025 Google LLC
7
- * See LICENSE file in the project root for full license text.
8
- */
9
- import { CSSResultGroup } from "lit";
1
+ import { CSSResultGroup, PropertyValues } from "lit";
10
2
  import { LinearProgressMode } from "./LinearProgressMode";
11
3
  import { ProgressElementIndicatorBase } from "./ProgressElementIndicatorBase";
12
4
  /**
@@ -36,17 +28,21 @@ import { ProgressElementIndicatorBase } from "./ProgressElementIndicatorBase";
36
28
  * @attr max - The maximum progress value.
37
29
  * @attr mode - The mode of the progress bar.
38
30
  * @attr value - A fractional value, between 0 and `max`, indicating progress.
31
+ * @attr variant - The appearance of the indicator.
39
32
  *
40
33
  * @cssprop --m3e-linear-progress-indicator-thickness - Thickness (height) of the progress bar.
41
34
  * @cssprop --m3e-linear-progress-indicator-shape - Border radius of the progress bar.
42
35
  * @cssprop --m3e-progress-indicator-track-color - Track color of the progress bar (background/buffer).
43
36
  * @cssprop --m3e-progress-indicator-color - Color of the progress indicator (foreground).
37
+ * @cssprop --m3e-linear-wavy-progress-indicator-amplitude - Amplitude of the `wavy` variant.
38
+ * @cssprop --m3e-linear-wavy-progress-indicator-wavelength - Wavelength of the `wavy` variant.
39
+ * @cssprop --m3e-linear-wavy-indeterminate-progress-indicator-wavelength - Wavelength of the indeterminate/query `wavy` variant.
44
40
  */
45
41
  export declare class M3eLinearProgressIndicatorElement extends ProgressElementIndicatorBase {
46
42
  #private;
47
43
  /** The styles of the element. */
48
44
  static styles: CSSResultGroup;
49
- /** @private */ private static __nextPatternId;
45
+ /** @private */ private static __nextMaskId;
50
46
  /**
51
47
  * The mode of the progress bar.
52
48
  * @default "determinate"
@@ -58,7 +54,11 @@ export declare class M3eLinearProgressIndicatorElement extends ProgressElementIn
58
54
  */
59
55
  bufferValue: number;
60
56
  /** @inheritdoc */
61
- connectedCallback(): void;
57
+ protected firstUpdated(_changedProperties: PropertyValues): void;
58
+ /** @inheritdoc */
59
+ protected update(changedProperties: PropertyValues<this>): void;
60
+ /** @inheritdoc */
61
+ protected updated(_changedProperties: PropertyValues<this>): void;
62
62
  /** @inheritdoc */
63
63
  protected render(): unknown;
64
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LinearProgressIndicatorElement.d.ts","sourceRoot":"","sources":["../../src/LinearProgressIndicatorElement.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAO,cAAc,EAAQ,MAAM,KAAK,CAAC;AAKhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBACa,iCAAkC,SAAQ,4BAA4B;;IACjF,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAmPpC;IAEF,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAK;IAInD;;;OAGG;IAC0B,IAAI,EAAE,kBAAkB,CAAiB;IAEtE;;;OAGG;IACmE,WAAW,SAAK;IAEtF,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAWlC,kBAAkB;cACC,MAAM,IAAI,OAAO;CAwBrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,+BAA+B,EAAE,iCAAiC,CAAC;KACpE;CACF"}
1
+ {"version":3,"file":"LinearProgressIndicatorElement.d.ts","sourceRoot":"","sources":["../../src/LinearProgressIndicatorElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAO,MAAM,KAAK,CAAC;AAK9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBACa,iCAAkC,SAAQ,4BAA4B;;IACjF,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAqRpC;IAEF,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAK;IAgBhD;;;OAGG;IAC0B,IAAI,EAAE,kBAAkB,CAAiB;IAEtE;;;OAGG;IACmE,WAAW,SAAK;IAEtF,kBAAkB;cACC,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;IAiBzE,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQxE,kBAAkB;cACC,OAAO,CAAC,kBAAkB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAU1E,kBAAkB;cACC,MAAM,IAAI,OAAO;CA4HrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,+BAA+B,EAAE,iCAAiC,CAAC;KACpE;CACF"}
@@ -1,4 +1,5 @@
1
1
  import { CSSResultGroup, LitElement, PropertyValues } from "lit";
2
+ import { ProgressIndicatorVariant } from "./ProgressIndicatorVariant";
2
3
  declare const ProgressElementIndicatorBase_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").AttachInternalsMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof LitElement;
3
4
  /** A base implementation for an element used to convey progress. This class must be inherited. */
4
5
  export declare abstract class ProgressElementIndicatorBase extends ProgressElementIndicatorBase_base {
@@ -14,6 +15,11 @@ export declare abstract class ProgressElementIndicatorBase extends ProgressEleme
14
15
  * @default 100
15
16
  */
16
17
  max: number;
18
+ /**
19
+ * The appearance of the indicator.
20
+ * @default "flat"
21
+ */
22
+ variant: ProgressIndicatorVariant;
17
23
  /** @inheritdoc */
18
24
  connectedCallback(): void;
19
25
  /** @inheritdoc */
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressElementIndicatorBase.d.ts","sourceRoot":"","sources":["../../src/ProgressElementIndicatorBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;;AAKtE,kGAAkG;AAClG,8BAAsB,4BAA6B,SAAQ,iCAAsD;IAC/G,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAOpC;IAEF;;;OAGG;IACwC,KAAK,SAAK;IAErD;;;OAGG;IACyB,GAAG,SAAO;IAEtC,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;CAUzE"}
1
+ {"version":3,"file":"ProgressElementIndicatorBase.d.ts","sourceRoot":"","sources":["../../src/ProgressElementIndicatorBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAKtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;;AAEtE,kGAAkG;AAClG,8BAAsB,4BAA6B,SAAQ,iCAAsD;IAC/G,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAOpC;IAEF;;;OAGG;IACwC,KAAK,SAAK;IAErD;;;OAGG;IACyB,GAAG,SAAO;IAEtC;;;OAGG;IAC0B,OAAO,EAAE,wBAAwB,CAAU;IAExE,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;CAUzE"}
@@ -0,0 +1,3 @@
1
+ /** Specifies the various appearance variants of a progress indicator. */
2
+ export type ProgressIndicatorVariant = "flat" | "wavy";
3
+ //# sourceMappingURL=ProgressIndicatorVariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressIndicatorVariant.d.ts","sourceRoot":"","sources":["../../src/ProgressIndicatorVariant.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m3e/progress-indicator",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Progress Indicator for M3E",
5
5
  "author": "matraic <matraic@yahoo.com>",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "clean": "rimraf dist"
31
31
  },
32
32
  "peerDependencies": {
33
- "@m3e/core": "1.1.2",
33
+ "@m3e/core": "^1.1.3",
34
34
  "lit": "^3.3.0"
35
35
  },
36
36
  "customElements": "dist/custom-elements.json"
package/NOTICE.md DELETED
@@ -1,8 +0,0 @@
1
- # NOTICE
2
-
3
- This package includes code adapted from third-party sources under the MIT license:
4
-
5
- - Angular Material Progress Bar & Spinner
6
- Source: https://github.com/angular/components
7
- License: MIT
8
- Copyright (c) Google LLC