@m3e/segmented-button 1.0.0-rc.1
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/LICENSE +22 -0
- package/README.md +174 -0
- package/cem.config.mjs +16 -0
- package/demo/index.html +105 -0
- package/dist/css-custom-data.json +162 -0
- package/dist/custom-elements.json +548 -0
- package/dist/html-custom-data.json +55 -0
- package/dist/index.js +642 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +269 -0
- package/dist/index.min.js.map +1 -0
- package/dist/src/ButtonSegmentElement.d.ts +105 -0
- package/dist/src/ButtonSegmentElement.d.ts.map +1 -0
- package/dist/src/SegmentedButtonElement.d.ts +89 -0
- package/dist/src/SegmentedButtonElement.d.ts.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/eslint.config.mjs +13 -0
- package/package.json +48 -0
- package/rollup.config.js +32 -0
- package/src/ButtonSegmentElement.ts +407 -0
- package/src/SegmentedButtonElement.ts +208 -0
- package/src/index.ts +2 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/ButtonSegmentElement.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "",
|
|
12
|
+
"name": "M3eButtonSegmentElement",
|
|
13
|
+
"cssProperties": [
|
|
14
|
+
{
|
|
15
|
+
"description": "Total height of the segmented button.",
|
|
16
|
+
"name": "--m3e-segmented-button-height"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"description": "Thickness of the button’s border.",
|
|
20
|
+
"name": "--m3e-segmented-button-outline-thickness"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"description": "Color of the button’s border.",
|
|
24
|
+
"name": "--m3e-segmented-button-outline-color"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"description": "Padding on the leading edge of the button content.",
|
|
28
|
+
"name": "--m3e-segmented-button-padding-start"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"description": "Padding on the trailing edge of the button content.",
|
|
32
|
+
"name": "--m3e-segmented-button-padding-end"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"description": "Horizontal gap between icon and label.",
|
|
36
|
+
"name": "--m3e-segmented-button-spacing"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"description": "Font size of the label text.",
|
|
40
|
+
"name": "--m3e-segmented-button-font-size"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"description": "Font weight of the label text.",
|
|
44
|
+
"name": "--m3e-segmented-button-font-weight"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"description": "Line height of the label text.",
|
|
48
|
+
"name": "--m3e-segmented-button-line-height"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"description": "Letter spacing of the label text.",
|
|
52
|
+
"name": "--m3e-segmented-button-tracking"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"description": "Leading padding when an icon is present.",
|
|
56
|
+
"name": "--m3e-segmented-button-with-icon-padding-start"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"description": "Background color of a selected segment.",
|
|
60
|
+
"name": "--m3e-segmented-button-selected-container-color"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"description": "Hover state-layer color for selected segments.",
|
|
64
|
+
"name": "--m3e-segmented-button-selected-container-hover-color"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"description": "Focus state-layer color for selected segments.",
|
|
68
|
+
"name": "--m3e-segmented-button-selected-container-focus-color"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"description": "Ripple color for selected segments.",
|
|
72
|
+
"name": "--m3e-segmented-button-selected-ripple-color"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"description": "Label text color for selected segments.",
|
|
76
|
+
"name": "--m3e-segmented-button-selected-label-text-color"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"description": "Icon color for selected segments.",
|
|
80
|
+
"name": "--m3e-segmented-button-selected-icon-color"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"description": "Hover state-layer color for unselected segments.",
|
|
84
|
+
"name": "--m3e-segmented-button-unselected-container-hover-color"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"description": "Focus state-layer color for unselected segments.",
|
|
88
|
+
"name": "--m3e-segmented-button-unselected-container-focus-color"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"description": "Ripple color for unselected segments.",
|
|
92
|
+
"name": "--m3e-segmented-button-unselected-ripple-color"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"description": "Label text color for unselected segments.",
|
|
96
|
+
"name": "--m3e-segmented-button-unselected-label-text-color"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"description": "Icon color for unselected segments.",
|
|
100
|
+
"name": "--m3e-segmented-button-unselected-icon-color"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"description": "Font size of the icon.",
|
|
104
|
+
"name": "--m3e-segmented-button-icon-size"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"description": "Base color for disabled segment borders.",
|
|
108
|
+
"name": "--m3e-segmented-button-disabled-outline-color"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"description": "Opacity applied to disabled segment borders.",
|
|
112
|
+
"name": "--m3e-segmented-button-disabled-outline-opacity"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"description": "Base color for disabled label text.",
|
|
116
|
+
"name": "--m3e-segmented-button-disabled-label-text-color"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"description": "Opacity applied to disabled label text.",
|
|
120
|
+
"name": "--m3e-segmented-button-disabled-label-text-opacity"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"description": "Base color for disabled icons.",
|
|
124
|
+
"name": "--m3e-segmented-button-disabled-icon-color"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"description": "Opacity applied to disabled icons.",
|
|
128
|
+
"name": "--m3e-segmented-button-disabled-icon-opacity"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"slots": [
|
|
132
|
+
{
|
|
133
|
+
"description": "Renders the label of the option.",
|
|
134
|
+
"name": ""
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"description": "Renders an icon before the option's label.",
|
|
138
|
+
"name": "icon"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"members": [
|
|
142
|
+
{
|
|
143
|
+
"kind": "field",
|
|
144
|
+
"name": "_focusRing",
|
|
145
|
+
"type": {
|
|
146
|
+
"text": "M3eFocusRingElement | undefined"
|
|
147
|
+
},
|
|
148
|
+
"privacy": "private",
|
|
149
|
+
"readonly": true
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"kind": "field",
|
|
153
|
+
"name": "_stateLayer",
|
|
154
|
+
"type": {
|
|
155
|
+
"text": "M3eStateLayerElement | undefined"
|
|
156
|
+
},
|
|
157
|
+
"privacy": "private",
|
|
158
|
+
"readonly": true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"kind": "field",
|
|
162
|
+
"name": "_ripple",
|
|
163
|
+
"type": {
|
|
164
|
+
"text": "M3eRippleElement | undefined"
|
|
165
|
+
},
|
|
166
|
+
"privacy": "private",
|
|
167
|
+
"readonly": true
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"kind": "field",
|
|
171
|
+
"name": "#clickHandler",
|
|
172
|
+
"privacy": "private",
|
|
173
|
+
"readonly": true
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"kind": "field",
|
|
177
|
+
"name": "value",
|
|
178
|
+
"type": {
|
|
179
|
+
"text": "string"
|
|
180
|
+
},
|
|
181
|
+
"default": "\"on\"",
|
|
182
|
+
"description": "A string representing the value of the segment.",
|
|
183
|
+
"attribute": "value"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"kind": "method",
|
|
187
|
+
"name": "#handleIconSlotChange",
|
|
188
|
+
"privacy": "private",
|
|
189
|
+
"return": {
|
|
190
|
+
"type": {
|
|
191
|
+
"text": "void"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"parameters": [
|
|
195
|
+
{
|
|
196
|
+
"name": "e",
|
|
197
|
+
"type": {
|
|
198
|
+
"text": "Event"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"kind": "method",
|
|
205
|
+
"name": "#handleClick",
|
|
206
|
+
"privacy": "private",
|
|
207
|
+
"return": {
|
|
208
|
+
"type": {
|
|
209
|
+
"text": "void"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"parameters": [
|
|
213
|
+
{
|
|
214
|
+
"name": "e",
|
|
215
|
+
"type": {
|
|
216
|
+
"text": "Event"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"events": [
|
|
223
|
+
{
|
|
224
|
+
"name": "input",
|
|
225
|
+
"type": {
|
|
226
|
+
"text": "Event"
|
|
227
|
+
},
|
|
228
|
+
"description": "Emitted when the checked state changes."
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "change",
|
|
232
|
+
"type": {
|
|
233
|
+
"text": "Event"
|
|
234
|
+
},
|
|
235
|
+
"description": "Emitted when the checked state changes."
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"attributes": [
|
|
239
|
+
{
|
|
240
|
+
"description": "Whether the element is checked.",
|
|
241
|
+
"name": "checked"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"description": "Whether the element is disabled.",
|
|
245
|
+
"name": "disabled"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"description": "A string representing the value of the segment.",
|
|
249
|
+
"name": "value",
|
|
250
|
+
"type": {
|
|
251
|
+
"text": "string"
|
|
252
|
+
},
|
|
253
|
+
"default": "\"on\"",
|
|
254
|
+
"fieldName": "value"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"mixins": [
|
|
258
|
+
{
|
|
259
|
+
"name": "Dirty",
|
|
260
|
+
"package": "@m3e/core"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "Touched",
|
|
264
|
+
"package": "@m3e/core"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "Checked",
|
|
268
|
+
"package": "@m3e/core"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "Disabled",
|
|
272
|
+
"package": "@m3e/core"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "AttachInternals",
|
|
276
|
+
"package": "@m3e/core"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "Role",
|
|
280
|
+
"package": "@m3e/core"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"superclass": {
|
|
284
|
+
"name": "LitElement",
|
|
285
|
+
"package": "lit"
|
|
286
|
+
},
|
|
287
|
+
"tagName": "m3e-button-segment",
|
|
288
|
+
"customElement": true,
|
|
289
|
+
"summary": "A option that can be selected within a segmented button."
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"exports": [
|
|
293
|
+
{
|
|
294
|
+
"kind": "js",
|
|
295
|
+
"name": "M3eButtonSegmentElement",
|
|
296
|
+
"declaration": {
|
|
297
|
+
"name": "M3eButtonSegmentElement",
|
|
298
|
+
"module": "src/ButtonSegmentElement.ts"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"kind": "custom-element-definition",
|
|
303
|
+
"name": "m3e-button-segment",
|
|
304
|
+
"declaration": {
|
|
305
|
+
"name": "M3eButtonSegmentElement",
|
|
306
|
+
"module": "src/ButtonSegmentElement.ts"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "javascript-module",
|
|
313
|
+
"path": "src/index.ts",
|
|
314
|
+
"declarations": [],
|
|
315
|
+
"exports": [
|
|
316
|
+
{
|
|
317
|
+
"kind": "js",
|
|
318
|
+
"name": "*",
|
|
319
|
+
"declaration": {
|
|
320
|
+
"name": "*",
|
|
321
|
+
"package": "\"./ButtonSegmentElement\""
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "js",
|
|
326
|
+
"name": "*",
|
|
327
|
+
"declaration": {
|
|
328
|
+
"name": "*",
|
|
329
|
+
"package": "\"./SegmentedButtonElement\""
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"kind": "javascript-module",
|
|
336
|
+
"path": "src/SegmentedButtonElement.ts",
|
|
337
|
+
"declarations": [
|
|
338
|
+
{
|
|
339
|
+
"kind": "class",
|
|
340
|
+
"description": "",
|
|
341
|
+
"name": "M3eSegmentedButtonElement",
|
|
342
|
+
"cssProperties": [
|
|
343
|
+
{
|
|
344
|
+
"description": "Border radius for the first segment in a segmented button.",
|
|
345
|
+
"name": "--m3e-segmented-button-start-shape"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"description": "Border radius for the last segment in a segmented button.",
|
|
349
|
+
"name": "--m3e-segmented-button-end-shape"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"slots": [
|
|
353
|
+
{
|
|
354
|
+
"description": "Renders the segments of the button.",
|
|
355
|
+
"name": ""
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"members": [
|
|
359
|
+
{
|
|
360
|
+
"kind": "field",
|
|
361
|
+
"name": "multi",
|
|
362
|
+
"type": {
|
|
363
|
+
"text": "boolean"
|
|
364
|
+
},
|
|
365
|
+
"default": "false",
|
|
366
|
+
"description": "Whether multiple options can be selected.",
|
|
367
|
+
"attribute": "multi"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"kind": "field",
|
|
371
|
+
"name": "hideSelectionIndicator",
|
|
372
|
+
"type": {
|
|
373
|
+
"text": "boolean"
|
|
374
|
+
},
|
|
375
|
+
"default": "false",
|
|
376
|
+
"description": "Whether to hide the selection indicator.",
|
|
377
|
+
"attribute": "hide-selection-indicator"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"kind": "field",
|
|
381
|
+
"name": "segments",
|
|
382
|
+
"type": {
|
|
383
|
+
"text": "readonly M3eButtonSegmentElement[]"
|
|
384
|
+
},
|
|
385
|
+
"description": "The segments of the button.",
|
|
386
|
+
"readonly": true
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"kind": "field",
|
|
390
|
+
"name": "selected",
|
|
391
|
+
"type": {
|
|
392
|
+
"text": "readonly M3eButtonSegmentElement[]"
|
|
393
|
+
},
|
|
394
|
+
"description": "The selected segment(s) of the button.",
|
|
395
|
+
"readonly": true
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"kind": "field",
|
|
399
|
+
"name": "value",
|
|
400
|
+
"type": {
|
|
401
|
+
"text": "string | readonly string[] | null"
|
|
402
|
+
},
|
|
403
|
+
"description": "The selected value(s) of the button.",
|
|
404
|
+
"readonly": true
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"kind": "method",
|
|
408
|
+
"name": "#handleSlotChange",
|
|
409
|
+
"privacy": "private"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"kind": "method",
|
|
413
|
+
"name": "#handleKeyDown",
|
|
414
|
+
"privacy": "private",
|
|
415
|
+
"return": {
|
|
416
|
+
"type": {
|
|
417
|
+
"text": "void"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"parameters": [
|
|
421
|
+
{
|
|
422
|
+
"name": "e",
|
|
423
|
+
"type": {
|
|
424
|
+
"text": "KeyboardEvent"
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"kind": "method",
|
|
431
|
+
"name": "#handleChange",
|
|
432
|
+
"privacy": "private",
|
|
433
|
+
"return": {
|
|
434
|
+
"type": {
|
|
435
|
+
"text": "void"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"parameters": [
|
|
439
|
+
{
|
|
440
|
+
"name": "e",
|
|
441
|
+
"type": {
|
|
442
|
+
"text": "Event"
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"events": [
|
|
449
|
+
{
|
|
450
|
+
"name": "change",
|
|
451
|
+
"type": {
|
|
452
|
+
"text": "Event"
|
|
453
|
+
},
|
|
454
|
+
"description": "Emitted when the checked state of a segment changes."
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"description": "Emitted when the checked state of a segment changes.",
|
|
458
|
+
"name": "input"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"attributes": [
|
|
462
|
+
{
|
|
463
|
+
"description": "Whether the element is disabled.",
|
|
464
|
+
"name": "disabled"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"description": "Whether to hide the selection indicator.",
|
|
468
|
+
"name": "hide-selection-indicator",
|
|
469
|
+
"type": {
|
|
470
|
+
"text": "boolean"
|
|
471
|
+
},
|
|
472
|
+
"default": "false",
|
|
473
|
+
"fieldName": "hideSelectionIndicator"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"description": "Whether multiple options can be selected.",
|
|
477
|
+
"name": "multi",
|
|
478
|
+
"type": {
|
|
479
|
+
"text": "boolean"
|
|
480
|
+
},
|
|
481
|
+
"default": "false",
|
|
482
|
+
"fieldName": "multi"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"description": "The name that identifies the element when submitting the associated form.",
|
|
486
|
+
"name": "name"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"mixins": [
|
|
490
|
+
{
|
|
491
|
+
"name": "Labelled",
|
|
492
|
+
"package": "@m3e/core"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "Dirty",
|
|
496
|
+
"package": "@m3e/core"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"name": "Touched",
|
|
500
|
+
"package": "@m3e/core"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "FormAssociated",
|
|
504
|
+
"package": "@m3e/core"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "Disabled",
|
|
508
|
+
"package": "@m3e/core"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "AttachInternals",
|
|
512
|
+
"package": "@m3e/core"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "Role",
|
|
516
|
+
"package": "@m3e/core"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"superclass": {
|
|
520
|
+
"name": "LitElement",
|
|
521
|
+
"package": "lit"
|
|
522
|
+
},
|
|
523
|
+
"tagName": "m3e-segmented-button",
|
|
524
|
+
"customElement": true,
|
|
525
|
+
"summary": "A button that allows a user to select from a limited set of options."
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"exports": [
|
|
529
|
+
{
|
|
530
|
+
"kind": "js",
|
|
531
|
+
"name": "M3eSegmentedButtonElement",
|
|
532
|
+
"declaration": {
|
|
533
|
+
"name": "M3eSegmentedButtonElement",
|
|
534
|
+
"module": "src/SegmentedButtonElement.ts"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"kind": "custom-element-definition",
|
|
539
|
+
"name": "m3e-segmented-button",
|
|
540
|
+
"declaration": {
|
|
541
|
+
"name": "M3eSegmentedButtonElement",
|
|
542
|
+
"module": "src/SegmentedButtonElement.ts"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
}
|
|
547
|
+
]
|
|
548
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
|
+
"version": 1.1,
|
|
4
|
+
"tags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "m3e-button-segment",
|
|
7
|
+
"description": "A option that can be selected within a segmented button.\n---\n\n\n### **Events:**\n - **input** - Emitted when the checked state changes.\n- **change** - Emitted when the checked state changes.\n\n### **Slots:**\n - _default_ - Renders the label of the option.\n- **icon** - Renders an icon before the option's label.\n\n### **CSS Properties:**\n - **--m3e-segmented-button-height** - Total height of the segmented button. _(default: undefined)_\n- **--m3e-segmented-button-outline-thickness** - Thickness of the button’s border. _(default: undefined)_\n- **--m3e-segmented-button-outline-color** - Color of the button’s border. _(default: undefined)_\n- **--m3e-segmented-button-padding-start** - Padding on the leading edge of the button content. _(default: undefined)_\n- **--m3e-segmented-button-padding-end** - Padding on the trailing edge of the button content. _(default: undefined)_\n- **--m3e-segmented-button-spacing** - Horizontal gap between icon and label. _(default: undefined)_\n- **--m3e-segmented-button-font-size** - Font size of the label text. _(default: undefined)_\n- **--m3e-segmented-button-font-weight** - Font weight of the label text. _(default: undefined)_\n- **--m3e-segmented-button-line-height** - Line height of the label text. _(default: undefined)_\n- **--m3e-segmented-button-tracking** - Letter spacing of the label text. _(default: undefined)_\n- **--m3e-segmented-button-with-icon-padding-start** - Leading padding when an icon is present. _(default: undefined)_\n- **--m3e-segmented-button-selected-container-color** - Background color of a selected segment. _(default: undefined)_\n- **--m3e-segmented-button-selected-container-hover-color** - Hover state-layer color for selected segments. _(default: undefined)_\n- **--m3e-segmented-button-selected-container-focus-color** - Focus state-layer color for selected segments. _(default: undefined)_\n- **--m3e-segmented-button-selected-ripple-color** - Ripple color for selected segments. _(default: undefined)_\n- **--m3e-segmented-button-selected-label-text-color** - Label text color for selected segments. _(default: undefined)_\n- **--m3e-segmented-button-selected-icon-color** - Icon color for selected segments. _(default: undefined)_\n- **--m3e-segmented-button-unselected-container-hover-color** - Hover state-layer color for unselected segments. _(default: undefined)_\n- **--m3e-segmented-button-unselected-container-focus-color** - Focus state-layer color for unselected segments. _(default: undefined)_\n- **--m3e-segmented-button-unselected-ripple-color** - Ripple color for unselected segments. _(default: undefined)_\n- **--m3e-segmented-button-unselected-label-text-color** - Label text color for unselected segments. _(default: undefined)_\n- **--m3e-segmented-button-unselected-icon-color** - Icon color for unselected segments. _(default: undefined)_\n- **--m3e-segmented-button-icon-size** - Font size of the icon. _(default: undefined)_\n- **--m3e-segmented-button-disabled-outline-color** - Base color for disabled segment borders. _(default: undefined)_\n- **--m3e-segmented-button-disabled-outline-opacity** - Opacity applied to disabled segment borders. _(default: undefined)_\n- **--m3e-segmented-button-disabled-label-text-color** - Base color for disabled label text. _(default: undefined)_\n- **--m3e-segmented-button-disabled-label-text-opacity** - Opacity applied to disabled label text. _(default: undefined)_\n- **--m3e-segmented-button-disabled-icon-color** - Base color for disabled icons. _(default: undefined)_\n- **--m3e-segmented-button-disabled-icon-opacity** - Opacity applied to disabled icons. _(default: undefined)_",
|
|
8
|
+
"attributes": [
|
|
9
|
+
{
|
|
10
|
+
"name": "checked",
|
|
11
|
+
"description": "Whether the element is checked.",
|
|
12
|
+
"values": []
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "disabled",
|
|
16
|
+
"description": "Whether the element is disabled.",
|
|
17
|
+
"values": []
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "value",
|
|
21
|
+
"description": "A string representing the value of the segment.",
|
|
22
|
+
"values": []
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"references": []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "m3e-segmented-button",
|
|
29
|
+
"description": "A button that allows a user to select from a limited set of options.\n---\n\n\n### **Events:**\n - **change** - Emitted when the checked state of a segment changes.\n- **input** - Emitted when the checked state of a segment changes.\n\n### **Slots:**\n - _default_ - Renders the segments of the button.\n\n### **CSS Properties:**\n - **--m3e-segmented-button-start-shape** - Border radius for the first segment in a segmented button. _(default: undefined)_\n- **--m3e-segmented-button-end-shape** - Border radius for the last segment in a segmented button. _(default: undefined)_",
|
|
30
|
+
"attributes": [
|
|
31
|
+
{
|
|
32
|
+
"name": "disabled",
|
|
33
|
+
"description": "Whether the element is disabled.",
|
|
34
|
+
"values": []
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "hide-selection-indicator",
|
|
38
|
+
"description": "Whether to hide the selection indicator.",
|
|
39
|
+
"values": []
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "multi",
|
|
43
|
+
"description": "Whether multiple options can be selected.",
|
|
44
|
+
"values": []
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "name",
|
|
48
|
+
"description": "The name that identifies the element when submitting the associated form.",
|
|
49
|
+
"values": []
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"references": []
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|