@spectrum-web-components/progress-circle 0.6.0-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/README.md +5 -5
- package/custom-elements.json +17 -0
- package/package.json +4 -4
- package/sp-progress-circle.dev.js +1 -0
- package/sp-progress-circle.dev.js.map +1 -1
- package/sp-progress-circle.js +1 -2
- package/sp-progress-circle.js.map +2 -2
- package/src/ProgressCircle.d.ts +2 -0
- package/src/ProgressCircle.dev.js +39 -11
- package/src/ProgressCircle.dev.js.map +2 -2
- package/src/ProgressCircle.js +6 -90
- package/src/ProgressCircle.js.map +3 -3
- package/src/index.dev.js +1 -0
- package/src/index.dev.js.map +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/progress-circle.css.dev.js +59 -64
- package/src/progress-circle.css.dev.js.map +2 -2
- package/src/progress-circle.css.js +60 -68
- package/src/progress-circle.css.js.map +3 -3
- package/src/spectrum-config.js +8 -3
- package/src/spectrum-progress-circle.css.dev.js +59 -64
- package/src/spectrum-progress-circle.css.dev.js.map +2 -2
- package/src/spectrum-progress-circle.css.js +60 -68
- package/src/spectrum-progress-circle.css.js.map +3 -3
- package/stories/progress-circle.stories.js +28 -6
- package/stories/progress-circle.stories.js.map +2 -2
- package/test/benchmark/basic-test.js +1 -0
- package/test/benchmark/basic-test.js.map +1 -1
- package/test/progress-circle.test-vrt.js +1 -0
- package/test/progress-circle.test-vrt.js.map +2 -2
- package/test/progress-circle.test.js +9 -3
- package/test/progress-circle.test.js.map +1 -1
package/README.md
CHANGED
|
@@ -51,9 +51,9 @@ An `<sp-progress-circle>` is used to visually show the progression of a system o
|
|
|
51
51
|
</div>
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
###
|
|
54
|
+
### Static
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
If you display your `<sp-progress-cicle>` element over the top of other content, e.g. an image or an alternate background color, it may become appropariate to update the colors with which the circle and loading progress indicator are delivered. To do this, leverage the `static` attribute with the value of `white` to ensure the content of your page is being delivered accessibly.
|
|
57
57
|
|
|
58
58
|
```html
|
|
59
59
|
<div
|
|
@@ -62,18 +62,18 @@ When a loader needs to be placed on top of a colored background, use the over ba
|
|
|
62
62
|
<sp-progress-circle
|
|
63
63
|
label="A small representation of a partially completed action"
|
|
64
64
|
progress="42"
|
|
65
|
-
|
|
65
|
+
static="white"
|
|
66
66
|
size="s"
|
|
67
67
|
></sp-progress-circle>
|
|
68
68
|
<sp-progress-circle
|
|
69
69
|
label="A medium representation of a barely started action"
|
|
70
70
|
progress="7"
|
|
71
|
-
|
|
71
|
+
static="white"
|
|
72
72
|
></sp-progress-circle>
|
|
73
73
|
<sp-progress-circle
|
|
74
74
|
label="A large representation of a somewhat completed action"
|
|
75
75
|
progress="68"
|
|
76
|
-
|
|
76
|
+
static="white"
|
|
77
77
|
size="l"
|
|
78
78
|
></sp-progress-circle>
|
|
79
79
|
</div>
|
package/custom-elements.json
CHANGED
|
@@ -58,6 +58,16 @@
|
|
|
58
58
|
"attribute": "over-background",
|
|
59
59
|
"reflects": true
|
|
60
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"kind": "field",
|
|
63
|
+
"name": "static",
|
|
64
|
+
"type": {
|
|
65
|
+
"text": "'white' | undefined"
|
|
66
|
+
},
|
|
67
|
+
"privacy": "public",
|
|
68
|
+
"attribute": "static",
|
|
69
|
+
"reflects": true
|
|
70
|
+
},
|
|
61
71
|
{
|
|
62
72
|
"kind": "field",
|
|
63
73
|
"name": "progress",
|
|
@@ -112,6 +122,13 @@
|
|
|
112
122
|
"default": "false",
|
|
113
123
|
"fieldName": "overBackground"
|
|
114
124
|
},
|
|
125
|
+
{
|
|
126
|
+
"name": "static",
|
|
127
|
+
"type": {
|
|
128
|
+
"text": "'white' | undefined"
|
|
129
|
+
},
|
|
130
|
+
"fieldName": "static"
|
|
131
|
+
},
|
|
115
132
|
{
|
|
116
133
|
"name": "progress",
|
|
117
134
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/progress-circle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"lit-html"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@spectrum-web-components/base": "^0.
|
|
60
|
+
"@spectrum-web-components/base": "^0.7.0",
|
|
61
61
|
"tslib": "^2.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@spectrum-css/progresscircle": "^
|
|
64
|
+
"@spectrum-css/progresscircle": "^2.0.1"
|
|
65
65
|
},
|
|
66
66
|
"types": "./src/index.d.ts",
|
|
67
67
|
"customElements": "custom-elements.json",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"./sp-*.js",
|
|
70
70
|
"./**/*.dev.js"
|
|
71
71
|
],
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "31d083d1eb61a1382335030c190c85d85f41e15d"
|
|
73
73
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-progress-circle.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 { ProgressCircle } from './src/ProgressCircle.dev.js'\n\ncustomElements.define('sp-progress-circle', ProgressCircle);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-progress-circle': ProgressCircle;\n }\n}\n"],
|
|
5
|
-
"mappings": "AAYA;
|
|
5
|
+
"mappings": ";AAYA,SAAS,sBAAsB;AAE/B,eAAe,OAAO,sBAAsB,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/sp-progress-circle.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
customElements.define("sp-progress-circle", ProgressCircle);
|
|
1
|
+
"use strict";import{ProgressCircle as e}from"./src/ProgressCircle.js";customElements.define("sp-progress-circle",e);
|
|
3
2
|
//# sourceMappingURL=sp-progress-circle.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["sp-progress-circle.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 { ProgressCircle } from './src/ProgressCircle.js';\n\ncustomElements.define('sp-progress-circle', ProgressCircle);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-progress-circle': ProgressCircle;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "aAYA,OAAS,kBAAAA,MAAsB,0BAE/B,eAAe,OAAO,qBAAsBA,CAAc",
|
|
6
|
+
"names": ["ProgressCircle"]
|
|
7
7
|
}
|
package/src/ProgressCircle.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ export declare class ProgressCircle extends ProgressCircle_base {
|
|
|
11
11
|
indeterminate: boolean;
|
|
12
12
|
label: string;
|
|
13
13
|
overBackground: boolean;
|
|
14
|
+
static?: 'white';
|
|
14
15
|
progress: number;
|
|
15
16
|
private makeRotation;
|
|
17
|
+
protected willUpdate(changes: PropertyValues<this>): void;
|
|
16
18
|
protected render(): TemplateResult;
|
|
17
19
|
protected firstUpdated(changes: PropertyValues): void;
|
|
18
20
|
protected updated(changes: PropertyValues): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -33,16 +34,34 @@ export class ProgressCircle extends SizedMixin(SpectrumElement, {
|
|
|
33
34
|
makeRotation(rotation) {
|
|
34
35
|
return this.indeterminate ? void 0 : `transform: rotate(${rotation}deg);`;
|
|
35
36
|
}
|
|
37
|
+
willUpdate(changes) {
|
|
38
|
+
if (changes.has("overBackground")) {
|
|
39
|
+
this.static = this.overBackground ? "white" : this.static || void 0;
|
|
40
|
+
if (true) {
|
|
41
|
+
if (this.overBackground) {
|
|
42
|
+
window.__swc.warn(
|
|
43
|
+
this,
|
|
44
|
+
`<${this.localName}> element will stop accepting the "over-background" attribute, and its related "overBackground" property in a future release. Use the "static" attribute/property with a value of "white" instead.`,
|
|
45
|
+
"https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#static",
|
|
46
|
+
{ level: "deprecation" }
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
36
52
|
render() {
|
|
37
53
|
const styles = [
|
|
38
54
|
this.makeRotation(-180 + 180 / 50 * Math.min(this.progress, 50)),
|
|
39
|
-
this.makeRotation(
|
|
55
|
+
this.makeRotation(
|
|
56
|
+
-180 + 180 / 50 * Math.max(this.progress - 50, 0)
|
|
57
|
+
)
|
|
40
58
|
];
|
|
41
59
|
const masks = ["Mask1", "Mask2"];
|
|
42
60
|
return html`
|
|
43
61
|
<div class="track"></div>
|
|
44
62
|
<div class="fills">
|
|
45
|
-
${masks.map(
|
|
63
|
+
${masks.map(
|
|
64
|
+
(mask, index) => html`
|
|
46
65
|
<div class="fill${mask}">
|
|
47
66
|
<div
|
|
48
67
|
class="fillSub${mask}"
|
|
@@ -51,7 +70,8 @@ export class ProgressCircle extends SizedMixin(SpectrumElement, {
|
|
|
51
70
|
<div class="fill"></div>
|
|
52
71
|
</div>
|
|
53
72
|
</div>
|
|
54
|
-
`
|
|
73
|
+
`
|
|
74
|
+
)}
|
|
55
75
|
</div>
|
|
56
76
|
`;
|
|
57
77
|
}
|
|
@@ -73,14 +93,19 @@ export class ProgressCircle extends SizedMixin(SpectrumElement, {
|
|
|
73
93
|
}
|
|
74
94
|
if (true) {
|
|
75
95
|
if (!this.label && !this.getAttribute("aria-label") && !this.getAttribute("aria-labelledby")) {
|
|
76
|
-
window.__swc.warn(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
window.__swc.warn(
|
|
97
|
+
this,
|
|
98
|
+
"<sp-progress-circle> elements will not be accessible to screen readers without one of the following:",
|
|
99
|
+
"https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#accessibility",
|
|
100
|
+
{
|
|
101
|
+
type: "accessibility",
|
|
102
|
+
issues: [
|
|
103
|
+
'value supplied to the "label" attribute, which will be displayed visually as part of the element, or',
|
|
104
|
+
'value supplied to the "aria-label" attribute, which will only be provided to screen readers, or',
|
|
105
|
+
'an element ID reference supplied to the "aria-labelledby" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.'
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
);
|
|
84
109
|
}
|
|
85
110
|
}
|
|
86
111
|
}
|
|
@@ -94,6 +119,9 @@ __decorateClass([
|
|
|
94
119
|
__decorateClass([
|
|
95
120
|
property({ type: Boolean, reflect: true, attribute: "over-background" })
|
|
96
121
|
], ProgressCircle.prototype, "overBackground", 2);
|
|
122
|
+
__decorateClass([
|
|
123
|
+
property({ reflect: true })
|
|
124
|
+
], ProgressCircle.prototype, "static", 2);
|
|
97
125
|
__decorateClass([
|
|
98
126
|
property({ type: Number })
|
|
99
127
|
], ProgressCircle.prototype, "progress", 2);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["ProgressCircle.ts"],
|
|
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';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport progressCircleStyles from './progress-circle.css.js';\n\n/**\n * @element sp-progress-circle\n */\nexport class ProgressCircle extends SizedMixin(SpectrumElement, {\n validSizes: ['s', 'm', 'l'],\n}) {\n public static override get styles(): CSSResultArray {\n return [progressCircleStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n public indeterminate = false;\n\n @property({ type: String })\n public label = '';\n\n @property({ type: Boolean, reflect: true, attribute: 'over-background' })\n public overBackground = false;\n\n @property({ type: Number })\n public progress = 0;\n\n private makeRotation(rotation: number): string | undefined {\n return this.indeterminate\n ? undefined\n : `transform: rotate(${rotation}deg);`;\n }\n\n protected override render(): TemplateResult {\n const styles = [\n this.makeRotation(-180 + (180 / 50) * Math.min(this.progress, 50)),\n this.makeRotation(\n -180 + (180 / 50) * Math.max(this.progress - 50, 0)\n ),\n ];\n const masks = ['Mask1', 'Mask2'];\n return html`\n <div class=\"track\"></div>\n <div class=\"fills\">\n ${masks.map(\n (mask, index) => html`\n <div class=\"fill${mask}\">\n <div\n class=\"fillSub${mask}\"\n style=${ifDefined(styles[index])}\n >\n <div class=\"fill\"></div>\n </div>\n </div>\n `\n )}\n </div>\n `;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'progressbar');\n }\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (!this.indeterminate && changes.has('progress')) {\n this.setAttribute('aria-valuenow', '' + this.progress);\n } else if (this.hasAttribute('aria-valuenow')) {\n this.removeAttribute('aria-valuenow');\n }\n if (this.label && changes.has('label')) {\n this.setAttribute('aria-label', this.label);\n }\n\n if (window.__swc.DEBUG) {\n if (\n !this.label &&\n !this.getAttribute('aria-label') &&\n !this.getAttribute('aria-labelledby')\n ) {\n window.__swc.warn(\n this,\n '<sp-progress-circle> elements will not be accessible to screen readers without one of the following:',\n 'https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#accessibility',\n {\n type: 'accessibility',\n issues: [\n 'value supplied to the \"label\" attribute, which will be displayed visually as part of the element, or',\n 'value supplied to the \"aria-label\" attribute, which will only be provided to screen readers, or',\n 'an element ID reference supplied to the \"aria-labelledby\" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.',\n ]
|
|
5
|
-
"mappings": "
|
|
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';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport progressCircleStyles from './progress-circle.css.js';\n\n/**\n * @element sp-progress-circle\n */\nexport class ProgressCircle extends SizedMixin(SpectrumElement, {\n validSizes: ['s', 'm', 'l'],\n}) {\n public static override get styles(): CSSResultArray {\n return [progressCircleStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n public indeterminate = false;\n\n @property({ type: String })\n public label = '';\n\n @property({ type: Boolean, reflect: true, attribute: 'over-background' })\n public overBackground = false;\n\n @property({ reflect: true })\n public static?: 'white';\n\n @property({ type: Number })\n public progress = 0;\n\n private makeRotation(rotation: number): string | undefined {\n return this.indeterminate\n ? undefined\n : `transform: rotate(${rotation}deg);`;\n }\n\n protected override willUpdate(changes: PropertyValues<this>): void {\n if (changes.has('overBackground')) {\n // Apply \"static\" from \"overBackground\", preferring \"static\",\n // until the deprecation period is over.\n this.static = this.overBackground\n ? 'white'\n : this.static || undefined;\n if (window.__swc.DEBUG) {\n if (this.overBackground) {\n window.__swc.warn(\n this,\n `<${this.localName}> element will stop accepting the \"over-background\" attribute, and its related \"overBackground\" property in a future release. Use the \"static\" attribute/property with a value of \"white\" instead.`,\n 'https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#static',\n { level: 'deprecation' }\n );\n }\n }\n }\n }\n\n protected override render(): TemplateResult {\n const styles = [\n this.makeRotation(-180 + (180 / 50) * Math.min(this.progress, 50)),\n this.makeRotation(\n -180 + (180 / 50) * Math.max(this.progress - 50, 0)\n ),\n ];\n const masks = ['Mask1', 'Mask2'];\n return html`\n <div class=\"track\"></div>\n <div class=\"fills\">\n ${masks.map(\n (mask, index) => html`\n <div class=\"fill${mask}\">\n <div\n class=\"fillSub${mask}\"\n style=${ifDefined(styles[index])}\n >\n <div class=\"fill\"></div>\n </div>\n </div>\n `\n )}\n </div>\n `;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'progressbar');\n }\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (!this.indeterminate && changes.has('progress')) {\n this.setAttribute('aria-valuenow', '' + this.progress);\n } else if (this.hasAttribute('aria-valuenow')) {\n this.removeAttribute('aria-valuenow');\n }\n if (this.label && changes.has('label')) {\n this.setAttribute('aria-label', this.label);\n }\n\n if (window.__swc.DEBUG) {\n if (\n !this.label &&\n !this.getAttribute('aria-label') &&\n !this.getAttribute('aria-labelledby')\n ) {\n window.__swc.warn(\n this,\n '<sp-progress-circle> elements will not be accessible to screen readers without one of the following:',\n 'https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#accessibility',\n {\n type: 'accessibility',\n issues: [\n 'value supplied to the \"label\" attribute, which will be displayed visually as part of the element, or',\n 'value supplied to the \"aria-label\" attribute, which will only be provided to screen readers, or',\n 'an element ID reference supplied to the \"aria-labelledby\" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.',\n ],\n }\n );\n }\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/ProgressCircle.js
CHANGED
|
@@ -1,100 +1,16 @@
|
|
|
1
|
-
var
|
|
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 { ifDefined } from "@spectrum-web-components/base/src/directives.js";
|
|
19
|
-
import progressCircleStyles from "./progress-circle.css.js";
|
|
20
|
-
export class ProgressCircle extends SizedMixin(SpectrumElement, {
|
|
21
|
-
validSizes: ["s", "m", "l"]
|
|
22
|
-
}) {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.indeterminate = false;
|
|
26
|
-
this.label = "";
|
|
27
|
-
this.overBackground = false;
|
|
28
|
-
this.progress = 0;
|
|
29
|
-
}
|
|
30
|
-
static get styles() {
|
|
31
|
-
return [progressCircleStyles];
|
|
32
|
-
}
|
|
33
|
-
makeRotation(rotation) {
|
|
34
|
-
return this.indeterminate ? void 0 : `transform: rotate(${rotation}deg);`;
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
const styles = [
|
|
38
|
-
this.makeRotation(-180 + 180 / 50 * Math.min(this.progress, 50)),
|
|
39
|
-
this.makeRotation(-180 + 180 / 50 * Math.max(this.progress - 50, 0))
|
|
40
|
-
];
|
|
41
|
-
const masks = ["Mask1", "Mask2"];
|
|
42
|
-
return html`
|
|
1
|
+
"use strict";var p=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var i=(o,r,e,s)=>{for(var t=s>1?void 0:s?u(r,e):r,a=o.length-1,d;a>=0;a--)(d=o[a])&&(t=(s?d(r,e,t):d(t))||t);return s&&t&&p(r,e,t),t};import{html as n,SizedMixin as c,SpectrumElement as b}from"@spectrum-web-components/base";import{property as l}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as h}from"@spectrum-web-components/base/src/directives.js";import m from"./progress-circle.css.js";export class ProgressCircle extends c(b,{validSizes:["s","m","l"]}){constructor(){super(...arguments);this.indeterminate=!1;this.label="";this.overBackground=!1;this.progress=0}static get styles(){return[m]}makeRotation(e){return this.indeterminate?void 0:`transform: rotate(${e}deg);`}willUpdate(e){e.has("overBackground")&&(this.static=this.overBackground?"white":this.static||void 0)}render(){const e=[this.makeRotation(-180+3.6*Math.min(this.progress,50)),this.makeRotation(-180+3.6*Math.max(this.progress-50,0))];return n`
|
|
43
2
|
<div class="track"></div>
|
|
44
3
|
<div class="fills">
|
|
45
|
-
${
|
|
46
|
-
<div class="fill${
|
|
4
|
+
${["Mask1","Mask2"].map((t,a)=>n`
|
|
5
|
+
<div class="fill${t}">
|
|
47
6
|
<div
|
|
48
|
-
class="fillSub${
|
|
49
|
-
style=${
|
|
7
|
+
class="fillSub${t}"
|
|
8
|
+
style=${h(e[a])}
|
|
50
9
|
>
|
|
51
10
|
<div class="fill"></div>
|
|
52
11
|
</div>
|
|
53
12
|
</div>
|
|
54
13
|
`)}
|
|
55
14
|
</div>
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
firstUpdated(changes) {
|
|
59
|
-
super.firstUpdated(changes);
|
|
60
|
-
if (!this.hasAttribute("role")) {
|
|
61
|
-
this.setAttribute("role", "progressbar");
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
updated(changes) {
|
|
65
|
-
super.updated(changes);
|
|
66
|
-
if (!this.indeterminate && changes.has("progress")) {
|
|
67
|
-
this.setAttribute("aria-valuenow", "" + this.progress);
|
|
68
|
-
} else if (this.hasAttribute("aria-valuenow")) {
|
|
69
|
-
this.removeAttribute("aria-valuenow");
|
|
70
|
-
}
|
|
71
|
-
if (this.label && changes.has("label")) {
|
|
72
|
-
this.setAttribute("aria-label", this.label);
|
|
73
|
-
}
|
|
74
|
-
if (false) {
|
|
75
|
-
if (!this.label && !this.getAttribute("aria-label") && !this.getAttribute("aria-labelledby")) {
|
|
76
|
-
window.__swc.warn(this, "<sp-progress-circle> elements will not be accessible to screen readers without one of the following:", "https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#accessibility", {
|
|
77
|
-
type: "accessibility",
|
|
78
|
-
issues: [
|
|
79
|
-
'value supplied to the "label" attribute, which will be displayed visually as part of the element, or',
|
|
80
|
-
'value supplied to the "aria-label" attribute, which will only be provided to screen readers, or',
|
|
81
|
-
'an element ID reference supplied to the "aria-labelledby" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.'
|
|
82
|
-
]
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
__decorateClass([
|
|
89
|
-
property({ type: Boolean, reflect: true })
|
|
90
|
-
], ProgressCircle.prototype, "indeterminate", 2);
|
|
91
|
-
__decorateClass([
|
|
92
|
-
property({ type: String })
|
|
93
|
-
], ProgressCircle.prototype, "label", 2);
|
|
94
|
-
__decorateClass([
|
|
95
|
-
property({ type: Boolean, reflect: true, attribute: "over-background" })
|
|
96
|
-
], ProgressCircle.prototype, "overBackground", 2);
|
|
97
|
-
__decorateClass([
|
|
98
|
-
property({ type: Number })
|
|
99
|
-
], ProgressCircle.prototype, "progress", 2);
|
|
15
|
+
`}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("role")||this.setAttribute("role","progressbar")}updated(e){super.updated(e),!this.indeterminate&&e.has("progress")?this.setAttribute("aria-valuenow",""+this.progress):this.hasAttribute("aria-valuenow")&&this.removeAttribute("aria-valuenow"),this.label&&e.has("label")&&this.setAttribute("aria-label",this.label)}}i([l({type:Boolean,reflect:!0})],ProgressCircle.prototype,"indeterminate",2),i([l({type:String})],ProgressCircle.prototype,"label",2),i([l({type:Boolean,reflect:!0,attribute:"over-background"})],ProgressCircle.prototype,"overBackground",2),i([l({reflect:!0})],ProgressCircle.prototype,"static",2),i([l({type:Number})],ProgressCircle.prototype,"progress",2);
|
|
100
16
|
//# sourceMappingURL=ProgressCircle.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["ProgressCircle.ts"],
|
|
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';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport progressCircleStyles from './progress-circle.css.js';\n\n/**\n * @element sp-progress-circle\n */\nexport class ProgressCircle extends SizedMixin(SpectrumElement, {\n validSizes: ['s', 'm', 'l'],\n}) {\n public static override get styles(): CSSResultArray {\n return [progressCircleStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n public indeterminate = false;\n\n @property({ type: String })\n public label = '';\n\n @property({ type: Boolean, reflect: true, attribute: 'over-background' })\n public overBackground = false;\n\n @property({ type: Number })\n public progress = 0;\n\n private makeRotation(rotation: number): string | undefined {\n return this.indeterminate\n ? undefined\n : `transform: rotate(${rotation}deg);`;\n }\n\n protected override render(): TemplateResult {\n const styles = [\n this.makeRotation(-180 + (180 / 50) * Math.min(this.progress, 50)),\n this.makeRotation(\n -180 + (180 / 50) * Math.max(this.progress - 50, 0)\n ),\n ];\n const masks = ['Mask1', 'Mask2'];\n return html`\n <div class=\"track\"></div>\n <div class=\"fills\">\n ${masks.map(\n (mask, index) => html`\n <div class=\"fill${mask}\">\n <div\n class=\"fillSub${mask}\"\n style=${ifDefined(styles[index])}\n >\n <div class=\"fill\"></div>\n </div>\n </div>\n `\n )}\n </div>\n `;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'progressbar');\n }\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (!this.indeterminate && changes.has('progress')) {\n this.setAttribute('aria-valuenow', '' + this.progress);\n } else if (this.hasAttribute('aria-valuenow')) {\n this.removeAttribute('aria-valuenow');\n }\n if (this.label && changes.has('label')) {\n this.setAttribute('aria-label', this.label);\n }\n\n if (window.__swc.DEBUG) {\n if (\n !this.label &&\n !this.getAttribute('aria-label') &&\n !this.getAttribute('aria-labelledby')\n ) {\n window.__swc.warn(\n this,\n '<sp-progress-circle> elements will not be accessible to screen readers without one of the following:',\n 'https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#accessibility',\n {\n type: 'accessibility',\n issues: [\n 'value supplied to the \"label\" attribute, which will be displayed visually as part of the element, or',\n 'value supplied to the \"aria-label\" attribute, which will only be provided to screen readers, or',\n 'an element ID reference supplied to the \"aria-labelledby\" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.',\n ]
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
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';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport progressCircleStyles from './progress-circle.css.js';\n\n/**\n * @element sp-progress-circle\n */\nexport class ProgressCircle extends SizedMixin(SpectrumElement, {\n validSizes: ['s', 'm', 'l'],\n}) {\n public static override get styles(): CSSResultArray {\n return [progressCircleStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n public indeterminate = false;\n\n @property({ type: String })\n public label = '';\n\n @property({ type: Boolean, reflect: true, attribute: 'over-background' })\n public overBackground = false;\n\n @property({ reflect: true })\n public static?: 'white';\n\n @property({ type: Number })\n public progress = 0;\n\n private makeRotation(rotation: number): string | undefined {\n return this.indeterminate\n ? undefined\n : `transform: rotate(${rotation}deg);`;\n }\n\n protected override willUpdate(changes: PropertyValues<this>): void {\n if (changes.has('overBackground')) {\n // Apply \"static\" from \"overBackground\", preferring \"static\",\n // until the deprecation period is over.\n this.static = this.overBackground\n ? 'white'\n : this.static || undefined;\n if (window.__swc.DEBUG) {\n if (this.overBackground) {\n window.__swc.warn(\n this,\n `<${this.localName}> element will stop accepting the \"over-background\" attribute, and its related \"overBackground\" property in a future release. Use the \"static\" attribute/property with a value of \"white\" instead.`,\n 'https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#static',\n { level: 'deprecation' }\n );\n }\n }\n }\n }\n\n protected override render(): TemplateResult {\n const styles = [\n this.makeRotation(-180 + (180 / 50) * Math.min(this.progress, 50)),\n this.makeRotation(\n -180 + (180 / 50) * Math.max(this.progress - 50, 0)\n ),\n ];\n const masks = ['Mask1', 'Mask2'];\n return html`\n <div class=\"track\"></div>\n <div class=\"fills\">\n ${masks.map(\n (mask, index) => html`\n <div class=\"fill${mask}\">\n <div\n class=\"fillSub${mask}\"\n style=${ifDefined(styles[index])}\n >\n <div class=\"fill\"></div>\n </div>\n </div>\n `\n )}\n </div>\n `;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'progressbar');\n }\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (!this.indeterminate && changes.has('progress')) {\n this.setAttribute('aria-valuenow', '' + this.progress);\n } else if (this.hasAttribute('aria-valuenow')) {\n this.removeAttribute('aria-valuenow');\n }\n if (this.label && changes.has('label')) {\n this.setAttribute('aria-label', this.label);\n }\n\n if (window.__swc.DEBUG) {\n if (\n !this.label &&\n !this.getAttribute('aria-label') &&\n !this.getAttribute('aria-labelledby')\n ) {\n window.__swc.warn(\n this,\n '<sp-progress-circle> elements will not be accessible to screen readers without one of the following:',\n 'https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#accessibility',\n {\n type: 'accessibility',\n issues: [\n 'value supplied to the \"label\" attribute, which will be displayed visually as part of the element, or',\n 'value supplied to the \"aria-label\" attribute, which will only be provided to screen readers, or',\n 'an element ID reference supplied to the \"aria-labelledby\" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.',\n ],\n }\n );\n }\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "qNAYA,OAEI,QAAAA,EAEA,cAAAC,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDACzB,OAAS,aAAAC,MAAiB,kDAE1B,OAAOC,MAA0B,2BAK1B,aAAM,uBAAuBJ,EAAWC,EAAiB,CAC5D,WAAY,CAAC,IAAK,IAAK,GAAG,CAC9B,CAAC,CAAE,CAFI,kCAQH,KAAO,cAAgB,GAGvB,KAAO,MAAQ,GAGf,KAAO,eAAiB,GAMxB,KAAO,SAAW,EAjBlB,WAA2B,QAAyB,CAChD,MAAO,CAACG,CAAoB,CAChC,CAiBQ,aAAaC,EAAsC,CACvD,OAAO,KAAK,cACN,OACA,qBAAqBA,QAC/B,CAEmB,WAAWC,EAAqC,CAC3DA,EAAQ,IAAI,gBAAgB,IAG5B,KAAK,OAAS,KAAK,eACb,QACA,KAAK,QAAU,OAY7B,CAEmB,QAAyB,CACxC,MAAMC,EAAS,CACX,KAAK,aAAa,KAAQ,IAAY,KAAK,IAAI,KAAK,SAAU,EAAE,CAAC,EACjE,KAAK,aACD,KAAQ,IAAY,KAAK,IAAI,KAAK,SAAW,GAAI,CAAC,CACtD,CACJ,EAEA,OAAOR;AAAA;AAAA;AAAA,kBADO,CAAC,QAAS,OAAO,EAIf,IACJ,CAACS,EAAMC,IAAUV;AAAA,0CACKS;AAAA;AAAA,gDAEMA;AAAA,wCACRL,EAAUI,EAAOE,EAAM;AAAA;AAAA;AAAA;AAAA;AAAA,qBAM/C;AAAA;AAAA,SAGZ,CAEmB,aAAaH,EAA+B,CAC3D,MAAM,aAAaA,CAAO,EACrB,KAAK,aAAa,MAAM,GACzB,KAAK,aAAa,OAAQ,aAAa,CAE/C,CAEmB,QAAQA,EAA+B,CACtD,MAAM,QAAQA,CAAO,EACjB,CAAC,KAAK,eAAiBA,EAAQ,IAAI,UAAU,EAC7C,KAAK,aAAa,gBAAiB,GAAK,KAAK,QAAQ,EAC9C,KAAK,aAAa,eAAe,GACxC,KAAK,gBAAgB,eAAe,EAEpC,KAAK,OAASA,EAAQ,IAAI,OAAO,GACjC,KAAK,aAAa,aAAc,KAAK,KAAK,CAwBlD,CACJ,CA3GWI,EAAA,CADNR,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GAPjC,eAQF,6BAGAQ,EAAA,CADNR,EAAS,CAAE,KAAM,MAAO,CAAC,GAVjB,eAWF,qBAGAQ,EAAA,CADNR,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,iBAAkB,CAAC,GAb/D,eAcF,8BAGAQ,EAAA,CADNR,EAAS,CAAE,QAAS,EAAK,CAAC,GAhBlB,eAiBF,sBAGAQ,EAAA,CADNR,EAAS,CAAE,KAAM,MAAO,CAAC,GAnBjB,eAoBF",
|
|
6
|
+
"names": ["html", "SizedMixin", "SpectrumElement", "property", "ifDefined", "progressCircleStyles", "rotation", "changes", "styles", "mask", "index", "__decorateClass"]
|
|
7
7
|
}
|
package/src/index.dev.js
CHANGED
package/src/index.dev.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 './ProgressCircle.dev.js'\n"],
|
|
5
|
-
"mappings": "AAYA;",
|
|
5
|
+
"mappings": ";AAYA,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
"use strict";export*from"./ProgressCircle.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 './ProgressCircle.js';\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": "aAYA,WAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|