@spectrum-web-components/meter 1.2.0-beta.0 → 1.2.0-beta.2

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.
@@ -0,0 +1,224 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-meter.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-meter",
13
+ "declaration": {
14
+ "name": "Meter",
15
+ "module": "/src/Meter.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/Meter.js",
23
+ "declarations": [
24
+ {
25
+ "kind": "variable",
26
+ "name": "meterVariants",
27
+ "type": {
28
+ "text": "array"
29
+ },
30
+ "default": "['positive', 'notice', 'negative']"
31
+ },
32
+ {
33
+ "kind": "class",
34
+ "description": "",
35
+ "name": "Meter",
36
+ "slots": [
37
+ {
38
+ "description": "text labeling the Meter",
39
+ "name": ""
40
+ }
41
+ ],
42
+ "members": [
43
+ {
44
+ "kind": "field",
45
+ "name": "progress",
46
+ "type": {
47
+ "text": "number"
48
+ },
49
+ "privacy": "public",
50
+ "default": "0",
51
+ "attribute": "progress"
52
+ },
53
+ {
54
+ "kind": "field",
55
+ "name": "variant",
56
+ "privacy": "public",
57
+ "description": "The variant applies specific styling when set to `negative`, `positive`, `notice`\n`variant` attribute is removed when not matching one of the above.",
58
+ "parameters": [
59
+ {
60
+ "name": "variant",
61
+ "type": {
62
+ "text": "String"
63
+ }
64
+ }
65
+ ],
66
+ "type": {
67
+ "text": "MeterVariants"
68
+ },
69
+ "attribute": "variant"
70
+ },
71
+ {
72
+ "kind": "field",
73
+ "name": "_variant",
74
+ "type": {
75
+ "text": "MeterVariants"
76
+ },
77
+ "privacy": "private",
78
+ "default": "''"
79
+ },
80
+ {
81
+ "kind": "field",
82
+ "name": "label",
83
+ "type": {
84
+ "text": "string"
85
+ },
86
+ "privacy": "public",
87
+ "default": "''",
88
+ "attribute": "label",
89
+ "reflects": true
90
+ },
91
+ {
92
+ "kind": "field",
93
+ "name": "slotEl",
94
+ "type": {
95
+ "text": "HTMLSlotElement"
96
+ },
97
+ "privacy": "private"
98
+ },
99
+ {
100
+ "kind": "field",
101
+ "name": "languageResolver",
102
+ "privacy": "private",
103
+ "default": "new LanguageResolutionController(this)"
104
+ },
105
+ {
106
+ "kind": "field",
107
+ "name": "sideLabel",
108
+ "type": {
109
+ "text": "boolean"
110
+ },
111
+ "privacy": "public",
112
+ "default": "false",
113
+ "attribute": "side-label",
114
+ "reflects": true
115
+ },
116
+ {
117
+ "kind": "field",
118
+ "name": "staticColor",
119
+ "type": {
120
+ "text": "'white' | undefined"
121
+ },
122
+ "privacy": "public",
123
+ "attribute": "static-color",
124
+ "reflects": true
125
+ },
126
+ {
127
+ "kind": "method",
128
+ "name": "handleSlotchange",
129
+ "privacy": "protected",
130
+ "return": {
131
+ "type": {
132
+ "text": "void"
133
+ }
134
+ }
135
+ }
136
+ ],
137
+ "attributes": [
138
+ {
139
+ "name": "progress",
140
+ "type": {
141
+ "text": "number"
142
+ },
143
+ "default": "0",
144
+ "fieldName": "progress"
145
+ },
146
+ {
147
+ "name": "variant",
148
+ "description": "The variant applies specific styling when set to `negative`, `positive`, `notice`\n`variant` attribute is removed when not matching one of the above.",
149
+ "parameters": [
150
+ {
151
+ "name": "variant",
152
+ "type": {
153
+ "text": "String"
154
+ }
155
+ }
156
+ ],
157
+ "type": {
158
+ "text": "MeterVariants"
159
+ },
160
+ "fieldName": "variant"
161
+ },
162
+ {
163
+ "name": "label",
164
+ "type": {
165
+ "text": "string"
166
+ },
167
+ "default": "''",
168
+ "fieldName": "label"
169
+ },
170
+ {
171
+ "name": "side-label",
172
+ "type": {
173
+ "text": "boolean"
174
+ },
175
+ "default": "false",
176
+ "fieldName": "sideLabel"
177
+ },
178
+ {
179
+ "name": "static-color",
180
+ "type": {
181
+ "text": "'white' | undefined"
182
+ },
183
+ "fieldName": "staticColor"
184
+ }
185
+ ],
186
+ "mixins": [
187
+ {
188
+ "name": "SizedMixin",
189
+ "package": "@spectrum-web-components/base"
190
+ },
191
+ {
192
+ "name": "ObserveSlotText",
193
+ "package": "@spectrum-web-components/shared/src/observe-slot-text.js"
194
+ }
195
+ ],
196
+ "superclass": {
197
+ "name": "SpectrumElement",
198
+ "package": "@spectrum-web-components/base"
199
+ },
200
+ "tagName": "sp-meter",
201
+ "customElement": true
202
+ }
203
+ ],
204
+ "exports": [
205
+ {
206
+ "kind": "js",
207
+ "name": "meterVariants",
208
+ "declaration": {
209
+ "name": "meterVariants",
210
+ "module": "src/Meter.js"
211
+ }
212
+ },
213
+ {
214
+ "kind": "js",
215
+ "name": "Meter",
216
+ "declaration": {
217
+ "name": "Meter",
218
+ "module": "src/Meter.js"
219
+ }
220
+ }
221
+ ]
222
+ }
223
+ ]
224
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/meter",
3
- "version": "1.2.0-beta.0",
3
+ "version": "1.2.0-beta.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -59,10 +59,10 @@
59
59
  "lit-html"
60
60
  ],
61
61
  "dependencies": {
62
- "@spectrum-web-components/base": "^1.2.0-beta.0",
63
- "@spectrum-web-components/field-label": "^1.2.0-beta.0",
64
- "@spectrum-web-components/reactive-controllers": "^1.2.0-beta.0",
65
- "@spectrum-web-components/shared": "^1.2.0-beta.0"
62
+ "@spectrum-web-components/base": "^1.2.0-beta.2",
63
+ "@spectrum-web-components/field-label": "^1.2.0-beta.2",
64
+ "@spectrum-web-components/reactive-controllers": "^1.2.0-beta.2",
65
+ "@spectrum-web-components/shared": "^1.2.0-beta.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@spectrum-css/meter": "0.0.0-s2-foundations.2",
@@ -74,5 +74,5 @@
74
74
  "./sp-*.js",
75
75
  "./**/*.dev.js"
76
76
  ],
77
- "gitHead": "809bd734313fe289067108bf1dea2a48cc103a9f"
77
+ "gitHead": "c0c67a3bdce0642f6a60d11a62fdcb6c1909ca62"
78
78
  }