@spectrum-web-components/meter 0.6.15-devmode.0 → 0.7.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/meter",
3
- "version": "0.6.15-devmode.0+1a8b29491",
3
+ "version": "0.7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,9 +57,9 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.6.1-devmode.0+1a8b29491",
61
- "@spectrum-web-components/field-label": "^0.7.15-devmode.0+1a8b29491",
62
- "@spectrum-web-components/shared": "^0.14.6-devmode.0+1a8b29491",
60
+ "@spectrum-web-components/base": "^0.7.0",
61
+ "@spectrum-web-components/field-label": "^0.8.0",
62
+ "@spectrum-web-components/shared": "^0.15.0",
63
63
  "tslib": "^2.0.0"
64
64
  },
65
65
  "devDependencies": {
@@ -71,5 +71,5 @@
71
71
  "./sp-*.js",
72
72
  "./**/*.dev.js"
73
73
  ],
74
- "gitHead": "1a8b294911ab377fa4f07e16eb016f1e3bf7b517"
74
+ "gitHead": "05c81318844160db3f8156144106e643507fef97"
75
75
  }
package/sp-meter.js CHANGED
@@ -1,3 +1,2 @@
1
- import { Meter } from "./src/Meter.js";
2
- customElements.define("sp-meter", Meter);
1
+ import{Meter as e}from"./src/Meter.js";customElements.define("sp-meter",e);
3
2
  //# sourceMappingURL=sp-meter.js.map
package/sp-meter.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["sp-meter.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { Meter } from './src/Meter.js';\n\ncustomElements.define('sp-meter', Meter);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-meter': Meter;\n }\n}\n"],
5
- "mappings": "AAYA;AAEA,eAAe,OAAO,YAAY,KAAK;",
5
+ "mappings": "AAYA,uCAEA,eAAe,OAAO,WAAY,CAAK",
6
6
  "names": []
7
7
  }
package/src/Meter.js CHANGED
@@ -1,41 +1,6 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __decorateClass = (decorators, target, key, kind) => {
4
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
- if (decorator = decorators[i])
7
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
- if (kind && result)
9
- __defProp(target, key, result);
10
- return result;
11
- };
12
- import {
13
- html,
14
- SizedMixin,
15
- SpectrumElement
16
- } from "@spectrum-web-components/base";
17
- import { property } from "@spectrum-web-components/base/src/decorators.js";
18
- import { ObserveSlotText } from "@spectrum-web-components/shared/src/observe-slot-text.js";
19
- import "@spectrum-web-components/field-label/sp-field-label.js";
20
- import styles from "./meter.css.js";
21
- export class Meter extends SizedMixin(ObserveSlotText(SpectrumElement, "")) {
22
- constructor() {
23
- super(...arguments);
24
- this.progress = 0;
25
- this.overBackground = false;
26
- this.notice = false;
27
- this.negative = false;
28
- this.positive = false;
29
- this.label = "";
30
- this.sideLabel = false;
31
- }
32
- static get styles() {
33
- return [styles];
34
- }
35
- render() {
36
- return html`
1
+ var d=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var t=(i,e,a,s)=>{for(var l=s>1?void 0:s?b(e,a):e,o=i.length-1,p;o>=0;o--)(p=i[o])&&(l=(s?p(e,a,l):p(l))||l);return s&&l&&d(e,a,l),l};import{html as u,SizedMixin as c,SpectrumElement as f}from"@spectrum-web-components/base";import{property as r}from"@spectrum-web-components/base/src/decorators.js";import{ObserveSlotText as n}from"@spectrum-web-components/shared/src/observe-slot-text.js";import"@spectrum-web-components/field-label/sp-field-label.js";import m from"./meter.css.js";export class Meter extends c(n(f,"")){constructor(){super(...arguments);this.progress=0;this.overBackground=!1;this.notice=!1;this.negative=!1;this.positive=!1;this.label="";this.sideLabel=!1}static get styles(){return[m]}render(){return u`
37
2
  <sp-field-label size=${this.size} class="label">
38
- ${this.slotHasContent ? html`` : this.label}
3
+ ${this.slotHasContent?u``:this.label}
39
4
  <slot>${this.label}</slot>
40
5
  </sp-field-label>
41
6
  <sp-field-label size=${this.size} class="percentage">
@@ -47,41 +12,5 @@ export class Meter extends SizedMixin(ObserveSlotText(SpectrumElement, "")) {
47
12
  style="transform: scaleX(calc(${this.progress} / 100));"
48
13
  ></div>
49
14
  </div>
50
- `;
51
- }
52
- firstUpdated(changes) {
53
- super.firstUpdated(changes);
54
- this.setAttribute("role", "progressbar");
55
- }
56
- updated(changes) {
57
- super.updated(changes);
58
- if (changes.has("progress")) {
59
- this.setAttribute("aria-valuenow", "" + this.progress);
60
- }
61
- if (this.label && changes.has("label")) {
62
- this.setAttribute("aria-label", this.label);
63
- }
64
- }
65
- }
66
- __decorateClass([
67
- property({ type: Number })
68
- ], Meter.prototype, "progress", 2);
69
- __decorateClass([
70
- property({ type: Boolean, reflect: true, attribute: "over-background" })
71
- ], Meter.prototype, "overBackground", 2);
72
- __decorateClass([
73
- property({ type: Boolean, reflect: true })
74
- ], Meter.prototype, "notice", 2);
75
- __decorateClass([
76
- property({ type: Boolean, reflect: true })
77
- ], Meter.prototype, "negative", 2);
78
- __decorateClass([
79
- property({ type: Boolean, reflect: true })
80
- ], Meter.prototype, "positive", 2);
81
- __decorateClass([
82
- property({ type: String, reflect: true })
83
- ], Meter.prototype, "label", 2);
84
- __decorateClass([
85
- property({ type: Boolean, reflect: true, attribute: "side-label" })
86
- ], Meter.prototype, "sideLabel", 2);
15
+ `}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","progressbar")}updated(e){super.updated(e),e.has("progress")&&this.setAttribute("aria-valuenow",""+this.progress),this.label&&e.has("label")&&this.setAttribute("aria-label",this.label)}}t([r({type:Number})],Meter.prototype,"progress",2),t([r({type:Boolean,reflect:!0,attribute:"over-background"})],Meter.prototype,"overBackground",2),t([r({type:Boolean,reflect:!0})],Meter.prototype,"notice",2),t([r({type:Boolean,reflect:!0})],Meter.prototype,"negative",2),t([r({type:Boolean,reflect:!0})],Meter.prototype,"positive",2),t([r({type:String,reflect:!0})],Meter.prototype,"label",2),t([r({type:Boolean,reflect:!0,attribute:"side-label"})],Meter.prototype,"sideLabel",2);
87
16
  //# sourceMappingURL=Meter.js.map
package/src/Meter.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["Meter.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport { ObserveSlotText } from '@spectrum-web-components/shared/src/observe-slot-text.js';\nimport '@spectrum-web-components/field-label/sp-field-label.js';\nimport styles from './meter.css.js';\n\n/**\n * @element sp-meter\n *\n * @slot - text labeling the Meter\n */\nexport class Meter extends SizedMixin(ObserveSlotText(SpectrumElement, '')) {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number })\n public progress = 0;\n\n @property({ type: Boolean, reflect: true, attribute: 'over-background' })\n public overBackground = false;\n\n @property({ type: Boolean, reflect: true })\n public notice = false;\n\n @property({ type: Boolean, reflect: true })\n public negative = false;\n\n @property({ type: Boolean, reflect: true })\n public positive = false;\n\n @property({ type: String, reflect: true })\n public label = '';\n\n @property({ type: Boolean, reflect: true, attribute: 'side-label' })\n // called sideLabel\n public sideLabel = false;\n\n protected override render(): TemplateResult {\n return html`\n <sp-field-label size=${this.size} class=\"label\">\n ${this.slotHasContent ? html`` : this.label}\n <slot>${this.label}</slot>\n </sp-field-label>\n <sp-field-label size=${this.size} class=\"percentage\">\n ${this.progress}%\n </sp-field-label>\n <div class=\"track\">\n <div\n class=\"fill\"\n style=\"transform: scaleX(calc(${this.progress} / 100));\"\n ></div>\n </div>\n `;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n this.setAttribute('role', 'progressbar');\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (changes.has('progress')) {\n this.setAttribute('aria-valuenow', '' + this.progress);\n }\n if (this.label && changes.has('label')) {\n this.setAttribute('aria-label', this.label);\n }\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAAA;AAQA;AAEA;AACA;AACA;AAOO,aAAM,cAAc,WAAW,gBAAgB,iBAAiB,EAAE,CAAC,EAAE;AAAA,EAArE;AAAA;AAMI,oBAAW;AAGX,0BAAiB;AAGjB,kBAAS;AAGT,oBAAW;AAGX,oBAAW;AAGX,iBAAQ;AAIR,qBAAY;AAAA;AAAA,aAxBQ,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAwBmB,SAAyB;AACxC,WAAO;AAAA,mCACoB,KAAK;AAAA,kBACtB,KAAK,iBAAiB,SAAS,KAAK;AAAA,wBAC9B,KAAK;AAAA;AAAA,mCAEM,KAAK;AAAA,kBACtB,KAAK;AA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 +1,2 @@
1
- export * from "./Meter.js";
1
+ export*from"./Meter.js";
2
2
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nexport * from './Meter.js';\n"],
5
- "mappings": "AAYA;",
5
+ "mappings": "AAYA",
6
6
  "names": []
7
7
  }
package/src/meter.css.js CHANGED
@@ -1,5 +1,4 @@
1
- import { css } from "@spectrum-web-components/base";
2
- const styles = css`
1
+ import{css as r}from"@spectrum-web-components/base";const e=r`
3
2
  :host([size=s]){--spectrum-progressbar-border-radius:var(
4
3
  --spectrum-progressbar-s-border-radius
5
4
  );--spectrum-progressbar-indeterminate-fill-width:var(
@@ -89,6 +88,5 @@ const styles = css`
89
88
  )}.label,.percentage{color:var(
90
89
  --spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)
91
90
  )}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}.fill{transform-origin:left}:host([dir=rtl]) .fill{transform-origin:right}
92
- `;
93
- export default styles;
91
+ `;export default e;
94
92
  //# sourceMappingURL=meter.css.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["meter.css.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-s-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-s-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-s-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-s-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-s-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-s-width,var(--spectrum-global-dimension-static-size-2400)\n)}:host([size=m]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-m-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-m-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-m-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-m-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-m-height,var(--spectrum-global-dimension-size-75)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-m-width,var(--spectrum-global-dimension-static-size-2400)\n);--spectrum-fieldlabel-side-padding-right:var(\n--spectrum-fieldlabel-m-side-padding-right,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-l-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-l-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-l-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-l-height,var(--spectrum-global-dimension-size-100)\n);--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-l-border-radius,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-l-width,var(--spectrum-global-dimension-static-size-2500)\n)}:host([size=xl]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-xl-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-xl-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-xl-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-xl-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-xl-height,var(--spectrum-global-dimension-size-125)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-xl-width,var(--spectrum-global-dimension-static-size-2800)\n)}:host{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:space-between;position:relative;vertical-align:top;width:var(--spectrum-progressbar-width)}.track{border-radius:var(--spectrum-progressbar-border-radius);overflow:hidden;width:100%;z-index:1}.fill,.track{height:var(--spectrum-progressbar-height)}.fill{border:none;transition:width 1s}:host([dir=ltr]) .label,:host([dir=ltr]) .percentage{text-align:left}:host([dir=rtl]) .label,:host([dir=rtl]) .percentage{text-align:right}.label,.percentage{margin-bottom:var(\n--spectrum-progressbar-value-gap-y\n)}.label{flex:1 1 0%}:host([dir=ltr]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}.percentage{align-self:flex-start}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between;width:auto}:host([side-label]) .track{flex:1 1 var(--spectrum-progressbar-width);min-width:var(\n--spectrum-progressbar-width\n)}:host([dir=ltr][side-label]) .label{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .label{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .label{flex-grow:0;margin-bottom:0}:host([dir=ltr][side-label]) .percentage{text-align:right}:host([dir=rtl][side-label]) .percentage{text-align:left}:host([dir=ltr][side-label]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .percentage{margin-bottom:0;order:3}:host([indeterminate]) .fill{animation-timing-function:var(\n--spectrum-progressbar-indeterminate-animation-ease\n);position:relative;width:var(\n--spectrum-progressbar-indeterminate-fill-width\n);will-change:transform}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(--spectrum-progressbar-indeterminate-duration) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(--spectrum-progressbar-indeterminate-duration) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(--spectrum-progressbar-indeterminate-fill-width)*-1))}to{transform:translate(var(--spectrum-progressbar-width))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(--spectrum-progressbar-width))}to{transform:translate(calc(var(--spectrum-progressbar-width)*-1))}}.fill{background:var(\n--spectrum-progressbar-m-track-fill-color,var(--spectrum-semantic-informative-color-default)\n)}.track{background-color:var(\n--spectrum-progressbar-m-track-color,var(--spectrum-alias-track-color-default)\n)}:host([over-background]) .fill{background:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .label,:host([over-background]) .percentage{color:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .track{background-color:var(\n--spectrum-progressbar-m-overbackground-track-color,var(--spectrum-alias-track-color-overbackground)\n)}:host([positive]) .fill{background:var(\n--spectrum-meter-m-positive-track-fill-color,var(--spectrum-semantic-positive-status-color)\n)}:host([notice]) .fill{background:var(\n--spectrum-meter-m-notice-track-fill-color,var(--spectrum-semantic-notice-status-color)\n)}:host([negative]) .fill{background:var(\n--spectrum-meter-m-negative-track-fill-color,var(--spectrum-semantic-negative-status-color)\n)}.label,.percentage{color:var(\n--spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)\n)}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}.fill{transform-origin:left}:host([dir=rtl]) .fill{transform-origin:right}\n`;\nexport default styles;"],
5
- "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2Ff,eAAe;",
5
+ "mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2Ff,cAAe",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,4 @@
1
- import { css } from "@spectrum-web-components/base";
2
- const styles = css`
1
+ import{css as r}from"@spectrum-web-components/base";const e=r`
3
2
  :host([size=s]){--spectrum-progressbar-border-radius:var(
4
3
  --spectrum-progressbar-s-border-radius
5
4
  );--spectrum-progressbar-indeterminate-fill-width:var(
@@ -89,6 +88,5 @@ const styles = css`
89
88
  )}.label,.percentage{color:var(
90
89
  --spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)
91
90
  )}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}
92
- `;
93
- export default styles;
91
+ `;export default e;
94
92
  //# sourceMappingURL=spectrum-meter.css.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["spectrum-meter.css.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-s-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-s-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-s-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-s-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-s-height,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-s-width,var(--spectrum-global-dimension-static-size-2400)\n)}:host([size=m]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-m-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-m-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-m-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-m-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-m-height,var(--spectrum-global-dimension-size-75)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-m-width,var(--spectrum-global-dimension-static-size-2400)\n);--spectrum-fieldlabel-side-padding-right:var(\n--spectrum-fieldlabel-m-side-padding-right,var(--spectrum-global-dimension-size-150)\n)}:host([size=l]){--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-l-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-l-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-l-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-l-height,var(--spectrum-global-dimension-size-100)\n);--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-l-border-radius,var(--spectrum-global-dimension-size-50)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-l-width,var(--spectrum-global-dimension-static-size-2500)\n)}:host([size=xl]){--spectrum-progressbar-border-radius:var(\n--spectrum-progressbar-xl-border-radius\n);--spectrum-progressbar-indeterminate-fill-width:var(\n--spectrum-progressbar-xl-indeterminate-fill-width,var(--spectrum-global-dimension-static-percent-70)\n);--spectrum-progressbar-indeterminate-duration:var(\n--spectrum-progressbar-xl-indeterminate-duration,var(--spectrum-global-animation-duration-2000)\n);--spectrum-progressbar-value-gap-y:var(\n--spectrum-progressbar-xl-value-gap-y,0px\n);--spectrum-progressbar-height:var(\n--spectrum-progressbar-xl-height,var(--spectrum-global-dimension-size-125)\n);--spectrum-progressbar-width:var(\n--spectrum-progressbar-xl-width,var(--spectrum-global-dimension-static-size-2800)\n)}:host{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:space-between;position:relative;vertical-align:top;width:var(--spectrum-progressbar-width)}.track{border-radius:var(--spectrum-progressbar-border-radius);overflow:hidden;width:100%;z-index:1}.fill,.track{height:var(--spectrum-progressbar-height)}.fill{border:none;transition:width 1s}:host([dir=ltr]) .label,:host([dir=ltr]) .percentage{text-align:left}:host([dir=rtl]) .label,:host([dir=rtl]) .percentage{text-align:right}.label,.percentage{margin-bottom:var(\n--spectrum-progressbar-value-gap-y\n)}.label{flex:1 1 0%}:host([dir=ltr]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}.percentage{align-self:flex-start}:host([side-label]){display:inline-flex;flex-flow:row;justify-content:space-between;width:auto}:host([side-label]) .track{flex:1 1 var(--spectrum-progressbar-width);min-width:var(\n--spectrum-progressbar-width\n)}:host([dir=ltr][side-label]) .label{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .label{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .label{flex-grow:0;margin-bottom:0}:host([dir=ltr][side-label]) .percentage{text-align:right}:host([dir=rtl][side-label]) .percentage{text-align:left}:host([dir=ltr][side-label]) .percentage{margin-left:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([dir=rtl][side-label]) .percentage{margin-right:var(\n--spectrum-fieldlabel-side-padding-right\n)}:host([side-label]) .percentage{margin-bottom:0;order:3}:host([indeterminate]) .fill{animation-timing-function:var(\n--spectrum-progressbar-indeterminate-animation-ease\n);position:relative;width:var(\n--spectrum-progressbar-indeterminate-fill-width\n);will-change:transform}:host([dir=ltr][indeterminate]) .fill{animation:indeterminate-loop-ltr var(--spectrum-progressbar-indeterminate-duration) infinite}:host([dir=rtl][indeterminate]) .fill{animation:indeterminate-loop-rtl var(--spectrum-progressbar-indeterminate-duration) infinite}@keyframes indeterminate-loop-ltr{0%{transform:translate(calc(var(--spectrum-progressbar-indeterminate-fill-width)*-1))}to{transform:translate(var(--spectrum-progressbar-width))}}@keyframes indeterminate-loop-rtl{0%{transform:translate(var(--spectrum-progressbar-width))}to{transform:translate(calc(var(--spectrum-progressbar-width)*-1))}}.fill{background:var(\n--spectrum-progressbar-m-track-fill-color,var(--spectrum-semantic-informative-color-default)\n)}.track{background-color:var(\n--spectrum-progressbar-m-track-color,var(--spectrum-alias-track-color-default)\n)}:host([over-background]) .fill{background:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .label,:host([over-background]) .percentage{color:var(\n--spectrum-progressbar-m-overbackground-track-fill-color,var(--spectrum-alias-track-fill-color-overbackground)\n)}:host([over-background]) .track{background-color:var(\n--spectrum-progressbar-m-overbackground-track-color,var(--spectrum-alias-track-color-overbackground)\n)}:host([positive]) .fill{background:var(\n--spectrum-meter-m-positive-track-fill-color,var(--spectrum-semantic-positive-status-color)\n)}:host([notice]) .fill{background:var(\n--spectrum-meter-m-notice-track-fill-color,var(--spectrum-semantic-notice-status-color)\n)}:host([negative]) .fill{background:var(\n--spectrum-meter-m-negative-track-fill-color,var(--spectrum-semantic-negative-status-color)\n)}.label,.percentage{color:var(\n--spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color)\n)}@media (forced-colors:active){.track{--spectrum-progressbar-m-track-fill-color:ButtonText;--spectrum-progressbar-m-track-color:ButtonFace;border:1px solid ButtonText;forced-color-adjust:none}}\n`;\nexport default styles;"],
5
- "mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2Ff,eAAe;",
5
+ "mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2Ff,cAAe",
6
6
  "names": []
7
7
  }
@@ -1,27 +1,10 @@
1
- import { html } from "@spectrum-web-components/base";
2
- import "@spectrum-web-components/meter/sp-meter.js";
3
- export default {
4
- title: "Meter/Sizes",
5
- component: "sp-meter"
6
- };
7
- export const s = () => {
8
- return html`
1
+ import{html as e}from"@spectrum-web-components/base";import"@spectrum-web-components/meter/sp-meter.js";export default{title:"Meter/Sizes",component:"sp-meter"};export const s=()=>e`
9
2
  <sp-meter size="s" progress="50">Storage Space</sp-meter>
10
- `;
11
- };
12
- export const m = () => {
13
- return html`
3
+ `,m=()=>e`
14
4
  <sp-meter size="m" progress="50">Storage Space</sp-meter>
15
- `;
16
- };
17
- export const l = () => {
18
- return html`
5
+ `,l=()=>e`
19
6
  <sp-meter size="l" progress="50">Storage Space</sp-meter>
20
- `;
21
- };
22
- export const XL = () => {
23
- return html`
7
+ `,XL=()=>e`
24
8
  <sp-meter size="xl" progress="50">Storage Space</sp-meter>
25
9
  `;
26
- };
27
10
  //# sourceMappingURL=meter-sizes.stories.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["meter-sizes.stories.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/meter/sp-meter.js';\n\nexport default {\n title: 'Meter/Sizes',\n component: 'sp-meter',\n};\n\nexport const s = (): TemplateResult => {\n return html`\n <sp-meter size=\"s\" progress=\"50\">Storage Space</sp-meter>\n `;\n};\n\nexport const m = (): TemplateResult => {\n return html`\n <sp-meter size=\"m\" progress=\"50\">Storage Space</sp-meter>\n `;\n};\n\nexport const l = (): TemplateResult => {\n return html`\n <sp-meter size=\"l\" progress=\"50\">Storage Space</sp-meter>\n `;\n};\n\nexport const XL = (): TemplateResult => {\n return html`\n <sp-meter size=\"xl\" progress=\"50\">Storage Space</sp-meter>\n `;\n};\n"],
5
- "mappings": "AAYA;AAEA;AAEA,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,IAAI,MAAsB;AACnC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,IAAI,MAAsB;AACnC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,IAAI,MAAsB;AACnC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,KAAK,MAAsB;AACpC,SAAO;AAAA;AAAA;AAGX;",
5
+ "mappings": "AAYA,qDAEA,mDAEA,cAAe,CACX,MAAO,cACP,UAAW,UACf,EAEO,YAAM,GAAI,IACN;AAAA;AAAA,MAKE,EAAI,IACN;AAAA;AAAA,MAKE,EAAI,IACN;AAAA;AAAA,MAKE,GAAK,IACP;AAAA;",
6
6
  "names": []
7
7
  }
@@ -1,39 +1,18 @@
1
- import { html } from "@spectrum-web-components/base";
2
- import "@spectrum-web-components/meter/sp-meter.js";
3
- export default {
4
- title: "Meter",
5
- component: "sp-meter"
6
- };
7
- const makeOverBackground = (story) => html`
1
+ import{html as e}from"@spectrum-web-components/base";import"@spectrum-web-components/meter/sp-meter.js";export default{title:"Meter",component:"sp-meter"};const r=t=>e`
8
2
  <div
9
3
  style="background-color: var(--spectrum-global-color-seafoam-600); color: var(--spectrum-global-color-seafoam-600); padding: var(--spectrum-global-dimension-size-175) var(--spectrum-global-dimension-size-250); display: inline-block"
10
4
  >
11
- ${story}
5
+ ${t}
12
6
  </div>
13
- `;
14
- export const sideLabel = () => {
15
- return html`
7
+ `;export const sideLabel=()=>e`
16
8
  <sp-meter side-label progress="50">Storage Space</sp-meter>
17
- `;
18
- };
19
- export const negative = () => {
20
- return html`
9
+ `,negative=()=>e`
21
10
  <sp-meter negative progress="95">Storage Space</sp-meter>
22
- `;
23
- };
24
- export const notice = () => {
25
- return html`
11
+ `,notice=()=>e`
26
12
  <sp-meter notice progress="73">Storage Space</sp-meter>
27
- `;
28
- };
29
- export const positive = () => {
30
- return html`
13
+ `,positive=()=>e`
31
14
  <sp-meter positive progress="50">Storage Space</sp-meter>
32
- `;
33
- };
34
- export const overBackground = () => {
35
- return makeOverBackground(html`
15
+ `,overBackground=()=>r(e`
36
16
  <sp-meter over-background progress="50">Storage Space</sp-meter>
37
17
  `);
38
- };
39
18
  //# sourceMappingURL=meter.stories.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["meter.stories.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/meter/sp-meter.js';\n\nexport default {\n title: 'Meter',\n component: 'sp-meter',\n};\n\nconst makeOverBackground = (story: TemplateResult): TemplateResult => html`\n <div\n style=\"background-color: var(--spectrum-global-color-seafoam-600); color: var(--spectrum-global-color-seafoam-600); padding: var(--spectrum-global-dimension-size-175) var(--spectrum-global-dimension-size-250); display: inline-block\"\n >\n ${story}\n </div>\n`;\n\nexport const sideLabel = (): TemplateResult => {\n return html`\n <sp-meter side-label progress=\"50\">Storage Space</sp-meter>\n `;\n};\n\nexport const negative = (): TemplateResult => {\n return html`\n <sp-meter negative progress=\"95\">Storage Space</sp-meter>\n `;\n};\n\nexport const notice = (): TemplateResult => {\n return html`\n <sp-meter notice progress=\"73\">Storage Space</sp-meter>\n `;\n};\n\nexport const positive = (): TemplateResult => {\n return html`\n <sp-meter positive progress=\"50\">Storage Space</sp-meter>\n `;\n};\n\nexport const overBackground = (): TemplateResult => {\n return makeOverBackground(\n html`\n <sp-meter over-background progress=\"50\">Storage Space</sp-meter>\n `\n );\n};\n"],
5
- "mappings": "AAYA;AAEA;AAEA,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEA,MAAM,qBAAqB,CAAC,UAA0C;AAAA;AAAA;AAAA;AAAA,UAI5D;AAAA;AAAA;AAIH,aAAM,YAAY,MAAsB;AAC3C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,WAAW,MAAsB;AAC1C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,SAAS,MAAsB;AACxC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,WAAW,MAAsB;AAC1C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,iBAAiB,MAAsB;AAChD,SAAO,mBACH;AAAA;AAAA,SAGJ;AACJ;",
5
+ "mappings": "AAYA,qDAEA,mDAEA,cAAe,CACX,MAAO,QACP,UAAW,UACf,EAEA,KAAM,GAAqB,AAAC,GAA0C;AAAA;AAAA;AAAA;AAAA,UAI5D;AAAA;AAAA,EAIH,YAAM,WAAY,IACd;AAAA;AAAA,MAKE,SAAW,IACb;AAAA;AAAA,MAKE,OAAS,IACX;AAAA;AAAA,MAKE,SAAW,IACb;AAAA;AAAA,MAKE,eAAiB,IACnB,EACH;AAAA;AAAA,SAGJ",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,4 @@
1
- import "@spectrum-web-components/meter/sp-meter.js";
2
- import { html } from "lit";
3
- import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
4
- measureFixtureCreation(html`
1
+ import"@spectrum-web-components/meter/sp-meter.js";import{html as r}from"lit";import{measureFixtureCreation as e}from"../../../../test/benchmark/helpers.js";e(r`
5
2
  <sp-meter open></sp-meter>
6
3
  `);
7
4
  //# sourceMappingURL=basic-test.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["basic-test.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/meter/sp-meter.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-meter open></sp-meter>\n`);\n"],
5
- "mappings": "AAYA;AACA;AACA;AAEA,uBAAuB;AAAA;AAAA,CAEtB;",
5
+ "mappings": "AAYA,mDACA,2BACA,+EAEA,EAAuB;AAAA;AAAA,CAEtB",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,2 @@
1
- import * as stories from "../stories/meter-sizes.stories.js";
2
- import { regressVisuals } from "../../../test/visual/test.js";
3
- regressVisuals("MeterSizesStories", stories);
1
+ import*as r from"../stories/meter-sizes.stories.js";import{regressVisuals as s}from"../../../test/visual/test.js";s("MeterSizesStories",r);
4
2
  //# sourceMappingURL=meter-sizes.test-vrt.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["meter-sizes.test-vrt.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/meter-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('MeterSizesStories', stories);\n"],
5
- "mappings": "AAYA;AACA;AAEA,eAAe,qBAAqB,OAAO;",
5
+ "mappings": "AAYA,oDACA,8DAEA,EAAe,oBAAqB,CAAO",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,2 @@
1
- import * as stories from "../stories/meter.stories.js";
2
- import { regressVisuals } from "../../../test/visual/test.js";
3
- regressVisuals("MeterStories", stories);
1
+ import*as r from"../stories/meter.stories.js";import{regressVisuals as s}from"../../../test/visual/test.js";s("MeterStories",r);
4
2
  //# sourceMappingURL=meter.test-vrt.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["meter.test-vrt.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/meter.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('MeterStories', stories);\n"],
5
- "mappings": "AAYA;AACA;AAEA,eAAe,gBAAgB,OAAO;",
5
+ "mappings": "AAYA,8CACA,8DAEA,EAAe,eAAgB,CAAO",
6
6
  "names": []
7
7
  }
@@ -1,49 +1,10 @@
1
- import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
2
- import "@spectrum-web-components/meter/sp-meter.js";
3
- import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
4
- describe("Meter", () => {
5
- testForLitDevWarnings(async () => await fixture(html`
1
+ import{elementUpdated as a,expect as t,fixture as r,html as i}from"@open-wc/testing";import"@spectrum-web-components/meter/sp-meter.js";import{testForLitDevWarnings as o}from"../../../test/testing-helpers.js";describe("Meter",()=>{o(async()=>await r(i`
6
2
  <sp-meter label="Loading"></sp-meter>
7
- `));
8
- it("loads default meter accessibly", async () => {
9
- const el = await fixture(html`
3
+ `)),it("loads default meter accessibly",async()=>{const e=await r(i`
10
4
  <sp-meter label="Loading"></sp-meter>
11
- `);
12
- await elementUpdated(el);
13
- expect(el).to.not.be.undefined;
14
- await expect(el).to.be.accessible();
15
- });
16
- it("accepts a changing process w/ [label]", async () => {
17
- const el = await fixture(html`
5
+ `);await a(e),t(e).to.not.be.undefined,await t(e).to.be.accessible()}),it("accepts a changing process w/ [label]",async()=>{const e=await r(i`
18
6
  <sp-meter label="Changing Value"></sp-meter>
19
- `);
20
- await elementUpdated(el);
21
- expect(el.hasAttribute("aria-valuenow")).to.be.true;
22
- expect(el.getAttribute("aria-valuenow")).to.equal("0");
23
- el.progress = 50;
24
- await elementUpdated(el);
25
- expect(el.hasAttribute("aria-valuenow")).to.be.true;
26
- expect(el.getAttribute("aria-valuenow")).to.equal("50");
27
- el.progress = 100;
28
- await elementUpdated(el);
29
- expect(el.hasAttribute("aria-valuenow")).to.be.true;
30
- expect(el.getAttribute("aria-valuenow")).to.equal("100");
31
- });
32
- it("accepts a changing process", async () => {
33
- const el = await fixture(html`
7
+ `);await a(e),t(e.hasAttribute("aria-valuenow")).to.be.true,t(e.getAttribute("aria-valuenow")).to.equal("0"),e.progress=50,await a(e),t(e.hasAttribute("aria-valuenow")).to.be.true,t(e.getAttribute("aria-valuenow")).to.equal("50"),e.progress=100,await a(e),t(e.hasAttribute("aria-valuenow")).to.be.true,t(e.getAttribute("aria-valuenow")).to.equal("100")}),it("accepts a changing process",async()=>{const e=await r(i`
34
8
  <sp-meter>Changing Value</sp-meter>
35
- `);
36
- await elementUpdated(el);
37
- expect(el.hasAttribute("aria-valuenow")).to.be.true;
38
- expect(el.getAttribute("aria-valuenow")).to.equal("0");
39
- el.progress = 50;
40
- await elementUpdated(el);
41
- expect(el.hasAttribute("aria-valuenow")).to.be.true;
42
- expect(el.getAttribute("aria-valuenow")).to.equal("50");
43
- el.progress = 100;
44
- await elementUpdated(el);
45
- expect(el.hasAttribute("aria-valuenow")).to.be.true;
46
- expect(el.getAttribute("aria-valuenow")).to.equal("100");
47
- });
48
- });
9
+ `);await a(e),t(e.hasAttribute("aria-valuenow")).to.be.true,t(e.getAttribute("aria-valuenow")).to.equal("0"),e.progress=50,await a(e),t(e.hasAttribute("aria-valuenow")).to.be.true,t(e.getAttribute("aria-valuenow")).to.equal("50"),e.progress=100,await a(e),t(e.hasAttribute("aria-valuenow")).to.be.true,t(e.getAttribute("aria-valuenow")).to.equal("100")})});
49
10
  //# sourceMappingURL=meter.test.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["meter.test.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '@spectrum-web-components/meter/sp-meter.js';\nimport { Meter } from '@spectrum-web-components/meter';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Meter', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<Meter>(\n html`\n <sp-meter label=\"Loading\"></sp-meter>\n `\n )\n );\n it('loads default meter accessibly', async () => {\n const el = await fixture<Meter>(\n html`\n <sp-meter label=\"Loading\"></sp-meter>\n `\n );\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n\n await expect(el).to.be.accessible();\n });\n\n it('accepts a changing process w/ [label]', async () => {\n const el = await fixture<Meter>(html`\n <sp-meter label=\"Changing Value\"></sp-meter>\n `);\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-valuenow')).to.be.true;\n expect(el.getAttribute('aria-valuenow')).to.equal('0');\n\n el.progress = 50;\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-valuenow')).to.be.true;\n expect(el.getAttribute('aria-valuenow')).to.equal('50');\n\n el.progress = 100;\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-valuenow')).to.be.true;\n expect(el.getAttribute('aria-valuenow')).to.equal('100');\n });\n\n it('accepts a changing process', async () => {\n const el = await fixture<Meter>(html`\n <sp-meter>Changing Value</sp-meter>\n `);\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-valuenow')).to.be.true;\n expect(el.getAttribute('aria-valuenow')).to.equal('0');\n\n el.progress = 50;\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-valuenow')).to.be.true;\n expect(el.getAttribute('aria-valuenow')).to.equal('50');\n\n el.progress = 100;\n\n await elementUpdated(el);\n\n expect(el.hasAttribute('aria-valuenow')).to.be.true;\n expect(el.getAttribute('aria-valuenow')).to.equal('100');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