@redvars/peacock 3.10.0 → 3.11.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/dist/BaseInput-CV0pZgSb.js +58 -0
- package/dist/BaseInput-CV0pZgSb.js.map +1 -0
- package/dist/app-bar.js +16 -16
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles.css.map +1 -1
- package/dist/assets/theme.d.ts +66 -0
- package/dist/assets/theme.js +134 -0
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/tokens.css.map +1 -1
- package/dist/base-progress-CLZTRveO.js +33 -0
- package/dist/base-progress-CLZTRveO.js.map +1 -0
- package/dist/bottom-sheet.js +1 -1
- package/dist/button-group.js +9 -7
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +225 -187
- package/dist/button.js.map +1 -1
- package/dist/{chart-bar-CapLbc2e.js → chart-bar-D5dGFJfK.js} +2 -2
- package/dist/{chart-bar-CapLbc2e.js.map → chart-bar-D5dGFJfK.js.map} +1 -1
- package/dist/chart-bar.js +1 -1
- package/dist/chart-stacked-bar.js +1 -1
- package/dist/checkbox.js +78 -53
- package/dist/checkbox.js.map +1 -1
- package/dist/chip-set.js +52 -0
- package/dist/chip-set.js.map +1 -0
- package/dist/chip.js +8 -6
- package/dist/chip.js.map +1 -1
- package/dist/circular-progress.js +177 -0
- package/dist/circular-progress.js.map +1 -0
- package/dist/code-editor.js +129 -72
- package/dist/code-editor.js.map +1 -1
- package/dist/code-highlighter.js +2 -38
- package/dist/code-highlighter.js.map +1 -1
- package/dist/color-field.js +309 -0
- package/dist/color-field.js.map +1 -0
- package/dist/color-picker.js +26 -15
- package/dist/color-picker.js.map +1 -1
- package/dist/copy-to-clipboard-upGx-Ueo.js +39 -0
- package/dist/copy-to-clipboard-upGx-Ueo.js.map +1 -0
- package/dist/custom-elements-jsdocs.json +1044 -382
- package/dist/custom-elements.json +8620 -4714
- package/dist/date-picker.js +241 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/{element-internals-2CMts_0M.js → delegate-py-Ets8N.js} +2 -43
- package/dist/delegate-py-Ets8N.js.map +1 -0
- package/dist/element-internals-QME0yEz4.js +43 -0
- package/dist/element-internals-QME0yEz4.js.map +1 -0
- package/dist/fab.js +51 -49
- package/dist/fab.js.map +1 -1
- package/dist/field.js +34 -4
- package/dist/field.js.map +1 -1
- package/dist/flow.js +5 -5
- package/dist/form-associated-Bhwwr6dT.js +162 -0
- package/dist/form-associated-Bhwwr6dT.js.map +1 -0
- package/dist/{form-associated-BXADnjOB.js → form-submitter-DPI4L6gj.js} +3 -159
- package/dist/form-submitter-DPI4L6gj.js.map +1 -0
- package/dist/html-editor.js +3 -1
- package/dist/html-editor.js.map +1 -1
- package/dist/icon-button.js +195 -156
- package/dist/icon-button.js.map +1 -1
- package/dist/image.js +2 -2
- package/dist/index.js +32 -8
- package/dist/index.js.map +1 -1
- package/dist/input.js +259 -0
- package/dist/input.js.map +1 -0
- package/dist/item.js +2 -1
- package/dist/item.js.map +1 -1
- package/dist/linear-progress.js +192 -0
- package/dist/linear-progress.js.map +1 -0
- package/dist/{list-AdO-PUq_.js → list-item.js} +12 -222
- package/dist/list-item.js.map +1 -0
- package/dist/list.js +225 -6
- package/dist/list.js.map +1 -1
- package/dist/loader-full.js +31 -8
- package/dist/loader-full.js.map +1 -1
- package/dist/loader.js +52 -12
- package/dist/loader.js.map +1 -1
- package/dist/markdown-editor.js +5 -3
- package/dist/markdown-editor.js.map +1 -1
- package/dist/menu-item.js +30 -30
- package/dist/menu.js +1 -1
- package/dist/navigation-bar-item.js +41 -0
- package/dist/navigation-bar-item.js.map +1 -0
- package/dist/navigation-bar.js +128 -0
- package/dist/navigation-bar.js.map +1 -0
- package/dist/navigation-drawer-item.js +236 -0
- package/dist/navigation-drawer-item.js.map +1 -0
- package/dist/navigation-drawer.js +293 -0
- package/dist/navigation-drawer.js.map +1 -0
- package/dist/navigation-rail.js +1 -1
- package/dist/number-field.js +280 -0
- package/dist/number-field.js.map +1 -0
- package/dist/option.js +17 -0
- package/dist/option.js.map +1 -1
- package/dist/pagination.js +1 -1
- package/dist/radio-group.js +209 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/radio.js +47 -37
- package/dist/radio.js.map +1 -1
- package/dist/segmented-button-group.js +12 -0
- package/dist/segmented-button-group.js.map +1 -1
- package/dist/segmented-button.js +10 -6
- package/dist/segmented-button.js.map +1 -1
- package/dist/select.js +653 -0
- package/dist/select.js.map +1 -0
- package/dist/side-sheet.js +1 -1
- package/dist/sidebar-menu-item.js +273 -0
- package/dist/sidebar-menu-item.js.map +1 -0
- package/dist/sidebar-menu.js +193 -0
- package/dist/sidebar-menu.js.map +1 -0
- package/dist/sidebar-sub-menu.js +301 -0
- package/dist/sidebar-sub-menu.js.map +1 -0
- package/dist/slider.js +76 -24
- package/dist/slider.js.map +1 -1
- package/dist/snackbar.js +3 -3
- package/dist/snackbar.js.map +1 -1
- package/dist/split-button.js +2 -2
- package/dist/src/__internal/utils/size.d.ts +9 -0
- package/dist/src/button/ButtonTypes.d.ts +1 -1
- package/dist/src/checkbox/checkbox.d.ts +28 -22
- package/dist/src/chip/chip/chip.d.ts +3 -0
- package/dist/src/chip/tag/tag.d.ts +5 -1
- package/dist/src/code-editor/code-editor.d.ts +37 -10
- package/dist/src/color-field/color-field.d.ts +55 -0
- package/dist/src/color-field/index.d.ts +1 -0
- package/dist/src/color-picker/color-picker.d.ts +1 -1
- package/dist/src/date-picker/date-picker.d.ts +0 -1
- package/dist/src/field/field.d.ts +2 -0
- package/dist/src/index.d.ts +4 -3
- package/dist/src/input/BaseInput.d.ts +21 -3
- package/dist/src/input/input.d.ts +15 -7
- package/dist/src/navigation-bar/index.d.ts +2 -0
- package/dist/src/navigation-bar/navigation-bar-item.d.ts +23 -0
- package/dist/src/navigation-bar/navigation-bar.d.ts +44 -0
- package/dist/src/navigation-drawer/index.d.ts +2 -0
- package/dist/src/navigation-drawer/navigation-drawer-item.d.ts +48 -0
- package/dist/src/navigation-drawer/navigation-drawer.d.ts +70 -0
- package/dist/src/number-field/number-field.d.ts +0 -1
- package/dist/src/radio/index.d.ts +1 -0
- package/dist/src/radio/radio-group.d.ts +50 -0
- package/dist/src/radio/radio.d.ts +18 -18
- package/dist/src/segmented-button/segmented-button-group.d.ts +5 -0
- package/dist/src/segmented-button/segmented-button.d.ts +2 -1
- package/dist/src/select/select.d.ts +7 -0
- package/dist/src/slider/slider.d.ts +14 -5
- package/dist/src/switch/switch.d.ts +22 -26
- package/dist/src/tabs/tabs.d.ts +3 -0
- package/dist/src/textarea/textarea.d.ts +0 -1
- package/dist/src/time-picker/time-picker.d.ts +0 -1
- package/dist/src/toolbar/toolbar.d.ts +7 -4
- package/dist/src/url-field/url-field.d.ts +0 -1
- package/dist/svg.js +5 -5
- package/dist/switch.js +413 -0
- package/dist/switch.js.map +1 -0
- package/dist/tab.js +2 -1
- package/dist/tab.js.map +1 -1
- package/dist/tabs.js +10 -8
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +349 -0
- package/dist/tag.js.map +1 -0
- package/dist/test/code-editor.test.d.ts +1 -0
- package/dist/test/color-field.test.d.ts +1 -0
- package/dist/test/color-picker.test.d.ts +1 -0
- package/dist/test/field.test.d.ts +1 -0
- package/dist/test/form-controls.test.d.ts +1 -0
- package/dist/test/icon.test.d.ts +1 -1
- package/dist/test/input.test.d.ts +1 -0
- package/dist/test/navigation.test.d.ts +1 -0
- package/dist/test/segmented-button.test.d.ts +1 -0
- package/dist/test/select.test.d.ts +1 -0
- package/dist/test/slider.test.d.ts +1 -0
- package/dist/textarea.js +237 -0
- package/dist/textarea.js.map +1 -0
- package/dist/time-picker.js +241 -0
- package/dist/time-picker.js.map +1 -0
- package/dist/toolbar.js +26 -9
- package/dist/toolbar.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/url-field.js +298 -0
- package/dist/url-field.js.map +1 -0
- package/package.json +29 -8
- package/readme.md +2 -2
- package/scss/tokens.css +175 -18
- package/src/__internal/utils/size.ts +23 -0
- package/src/app-bar/app-bar.scss +4 -16
- package/src/bottom-sheet/bottom-sheet.scss +1 -1
- package/src/button/ButtonTypes.ts +2 -0
- package/src/button/button/button-base.scss +84 -84
- package/src/button/button/button-colors.scss +14 -2
- package/src/button/button/button-layers.scss +71 -71
- package/src/button/button/button-shapes.scss +2 -2
- package/src/button/button/button-sizes.scss +35 -35
- package/src/button/button/button.scss +1 -1
- package/src/button/button/button.ts +1 -2
- package/src/button/button-group/button-group.scss +5 -5
- package/src/button/fab/fab-sizes.scss +15 -15
- package/src/button/fab/fab.scss +32 -32
- package/src/button/icon-button/icon-button-sizes.scss +7 -7
- package/src/chart-bar/chart-bar.scss +1 -1
- package/src/checkbox/checkbox.scss +7 -6
- package/src/checkbox/checkbox.ts +92 -40
- package/src/chip/chip/chip.ts +8 -5
- package/src/chip/chip-set/chip-set.ts +2 -0
- package/src/chip/tag/tag-colors.scss +1 -1
- package/src/chip/tag/tag-sizes.scss +9 -0
- package/src/chip/tag/tag.scss +1 -1
- package/src/chip/tag/tag.ts +20 -9
- package/src/code-editor/code-editor.scss +8 -3
- package/src/code-editor/code-editor.ts +148 -79
- package/src/code-highlighter/code-highlighter.scss +1 -1
- package/src/color-field/color-field.scss +48 -0
- package/src/color-field/color-field.ts +239 -0
- package/src/color-field/index.ts +1 -0
- package/src/color-picker/color-picker.scss +33 -15
- package/src/color-picker/color-picker.ts +2 -1
- package/src/date-picker/date-picker.ts +2 -3
- package/src/field/field.scss +31 -0
- package/src/field/field.ts +5 -1
- package/src/flow/flow.scss +5 -5
- package/src/image/image.scss +2 -2
- package/src/index.ts +7 -3
- package/src/input/BaseInput.ts +54 -4
- package/src/input/input.ts +104 -79
- package/src/list/list-item.ts +2 -0
- package/src/loader.ts +28 -6
- package/src/markdown-editor/markdown-editor.scss +2 -2
- package/src/menu/menu/menu.scss +1 -1
- package/src/menu/menu-item/menu-item.scss +30 -30
- package/src/navigation-bar/index.ts +2 -0
- package/src/navigation-bar/navigation-bar-item.ts +25 -0
- package/src/navigation-bar/navigation-bar.scss +27 -0
- package/src/navigation-bar/navigation-bar.ts +96 -0
- package/src/navigation-drawer/index.ts +2 -0
- package/src/navigation-drawer/navigation-drawer-item.scss +82 -0
- package/src/navigation-drawer/navigation-drawer-item.ts +133 -0
- package/src/navigation-drawer/navigation-drawer.scss +99 -0
- package/src/navigation-drawer/navigation-drawer.ts +196 -0
- package/src/navigation-rail/navigation-rail.scss +1 -1
- package/src/number-field/number-field.ts +2 -3
- package/src/pagination/pagination.scss +1 -1
- package/src/progress/circular-progress/circular-progress.ts +2 -0
- package/src/progress/linear-progress/linear-progress.ts +2 -0
- package/src/radio/index.ts +1 -0
- package/src/radio/radio-group.scss +39 -0
- package/src/radio/radio-group.ts +167 -0
- package/src/radio/radio.ts +74 -31
- package/src/segmented-button/segmented-button-group.ts +12 -0
- package/src/segmented-button/segmented-button.ts +12 -6
- package/src/select/option.ts +17 -0
- package/src/select/select.ts +33 -8
- package/src/side-sheet/side-sheet.scss +1 -1
- package/src/sidebar-menu/sidebar-menu-item.scss +1 -1
- package/src/sidebar-menu/sidebar-menu-item.ts +2 -0
- package/src/sidebar-menu/sidebar-menu.ts +2 -0
- package/src/sidebar-menu/sidebar-sub-menu.scss +1 -1
- package/src/sidebar-menu/sidebar-sub-menu.ts +2 -0
- package/src/slider/slider.scss +3 -3
- package/src/slider/slider.ts +119 -31
- package/src/snackbar/snackbar.ts +3 -3
- package/src/split-button/split-button-colors.scss +2 -2
- package/src/svg/svg.scss +5 -5
- package/src/switch/switch.scss +0 -1
- package/src/switch/switch.ts +82 -47
- package/src/tabs/tab.scss +2 -1
- package/src/tabs/tabs.ts +14 -8
- package/src/textarea/textarea.ts +2 -3
- package/src/time-picker/time-picker.ts +2 -3
- package/src/toolbar/toolbar.scss +4 -4
- package/src/toolbar/toolbar.ts +12 -5
- package/src/url-field/url-field.ts +2 -3
- package/dist/BaseInput-CU1zZYKc.js +0 -27
- package/dist/BaseInput-CU1zZYKc.js.map +0 -1
- package/dist/brand-loader.js +0 -358
- package/dist/brand-loader.js.map +0 -1
- package/dist/element-internals-2CMts_0M.js.map +0 -1
- package/dist/form-associated-BXADnjOB.js.map +0 -1
- package/dist/list-AdO-PUq_.js.map +0 -1
- package/dist/select-CnnPbvpQ.js +0 -3955
- package/dist/select-CnnPbvpQ.js.map +0 -1
- package/dist/src/brand-loader/brand-loader.d.ts +0 -33
- package/dist/src/brand-loader/index.d.ts +0 -2
- package/src/brand-loader/brand-loader.scss +0 -270
- package/src/brand-loader/brand-loader.ts +0 -115
- package/src/brand-loader/index.ts +0 -2
- /package/dist/test/{brand-loader.test.d.ts → button.test.d.ts} +0 -0
|
@@ -397,87 +397,6 @@
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
},
|
|
400
|
-
{
|
|
401
|
-
"label": "Brand Loader",
|
|
402
|
-
"tag": "wc-brand-loader",
|
|
403
|
-
"rawTag": "brand-loader",
|
|
404
|
-
"summary": "A loading indicator built from the Redvars r mark.",
|
|
405
|
-
"cssprop": "--brand-loader-duration - The length of one loop.",
|
|
406
|
-
"tags": "display",
|
|
407
|
-
"example": "```html\n<wc-brand-loader></wc-brand-loader>\n```",
|
|
408
|
-
"customElement": {
|
|
409
|
-
"kind": "class",
|
|
410
|
-
"description": "",
|
|
411
|
-
"cssProperties": [
|
|
412
|
-
{
|
|
413
|
-
"description": "The edge of the loader.",
|
|
414
|
-
"name": "--brand-loader-size"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"description": "The color of the tile.",
|
|
418
|
-
"name": "--brand-loader-tile-color"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"description": "The color of the r.",
|
|
422
|
-
"name": "--brand-loader-mark-color"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"description": "The length of one loop.",
|
|
426
|
-
"name": "--brand-loader-duration"
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
"attributes": [
|
|
430
|
-
{
|
|
431
|
-
"name": "variant",
|
|
432
|
-
"type": {
|
|
433
|
-
"text": "BrandLoaderVariant"
|
|
434
|
-
},
|
|
435
|
-
"default": "'build'",
|
|
436
|
-
"description": "How the mark moves while loading. Ignored once `value` is set.",
|
|
437
|
-
"fieldName": "variant",
|
|
438
|
-
"expandedType": {
|
|
439
|
-
"text": "'build' | 'trace' | 'fill' | 'pulse' | 'orbit'"
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"name": "value",
|
|
444
|
-
"type": {
|
|
445
|
-
"text": "number | undefined"
|
|
446
|
-
},
|
|
447
|
-
"description": "Progress from 0 to 100. When set, the r fills to this level instead of looping.",
|
|
448
|
-
"fieldName": "value"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"name": "label",
|
|
452
|
-
"type": {
|
|
453
|
-
"text": "string"
|
|
454
|
-
},
|
|
455
|
-
"default": "'Loading'",
|
|
456
|
-
"description": "The accessible name of the loader.",
|
|
457
|
-
"fieldName": "label"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"name": "full-motion",
|
|
461
|
-
"type": {
|
|
462
|
-
"text": "boolean"
|
|
463
|
-
},
|
|
464
|
-
"default": "false",
|
|
465
|
-
"description": "Plays the full animation even when the system asks for reduced motion.",
|
|
466
|
-
"fieldName": "fullMotion"
|
|
467
|
-
}
|
|
468
|
-
],
|
|
469
|
-
"superclass": {
|
|
470
|
-
"name": "LitElement",
|
|
471
|
-
"package": "lit"
|
|
472
|
-
},
|
|
473
|
-
"tagName": "wc-brand-loader",
|
|
474
|
-
"customElement": true,
|
|
475
|
-
"rawTag": {
|
|
476
|
-
"name": "brand-loader",
|
|
477
|
-
"description": ""
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
400
|
{
|
|
482
401
|
"label": "Breadcrumb",
|
|
483
402
|
"tag": "wc-breadcrumb",
|
|
@@ -727,7 +646,7 @@
|
|
|
727
646
|
"fieldName": "color",
|
|
728
647
|
"description": "Defines the primary color of the button. This can be set to predefined color names to apply specific color themes.",
|
|
729
648
|
"expandedType": {
|
|
730
|
-
"text": "'primary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface'"
|
|
649
|
+
"text": "'primary' | 'secondary' | 'tertiary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface'"
|
|
731
650
|
},
|
|
732
651
|
"inheritedFrom": {
|
|
733
652
|
"name": "mixinBaseButton",
|
|
@@ -975,7 +894,7 @@
|
|
|
975
894
|
"description": "Color applied to all buttons in the group.\nPossible values are `\"primary\"`, `\"success\"`, `\"danger\"`, `\"warning\"`, `\"surface\"`, `\"on-surface\"`.",
|
|
976
895
|
"fieldName": "color",
|
|
977
896
|
"expandedType": {
|
|
978
|
-
"text": "'primary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface' | undefined"
|
|
897
|
+
"text": "'primary' | 'secondary' | 'tertiary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface' | undefined"
|
|
979
898
|
}
|
|
980
899
|
},
|
|
981
900
|
{
|
|
@@ -1833,11 +1752,11 @@
|
|
|
1833
1752
|
"tag": "wc-checkbox",
|
|
1834
1753
|
"rawTag": "checkbox",
|
|
1835
1754
|
"summary": "Captures boolean input with an optional indeterminate mode.",
|
|
1836
|
-
"overview": "<p>Checkboxes allow users to select one or more items from a set. Checkboxes can turn an option on or off.</p>\n<p>checkboxes feature a smooth animation and clear visual states for checked, unchecked, and indeterminate.</p>",
|
|
1755
|
+
"overview": "<p>Checkboxes allow users to select one or more items from a set. Checkboxes can turn an option on or off.</p>\n<p>checkboxes feature a smooth animation and clear visual states for checked, unchecked, and indeterminate.</p>\n<p>The checkbox is form-associated: when <code>checked</code>, it submits <code>on</code> under its <code>name</code>.</p>",
|
|
1837
1756
|
"cssprop": "--checkbox-state-layer-size: Size of the state layer for touch target.",
|
|
1838
1757
|
"fires": "focus - Dispatched when the checkbox receives focus.",
|
|
1839
1758
|
"tags": "input, form",
|
|
1840
|
-
"example": "```html\n<wc-checkbox label=\"Accept terms\"></wc-checkbox>\n```",
|
|
1759
|
+
"example": "```html\n<wc-checkbox label=\"Accept terms\" checked></wc-checkbox>\n```",
|
|
1841
1760
|
"customElement": {
|
|
1842
1761
|
"kind": "class",
|
|
1843
1762
|
"description": "",
|
|
@@ -1868,7 +1787,7 @@
|
|
|
1868
1787
|
"type": {
|
|
1869
1788
|
"text": "CustomEvent"
|
|
1870
1789
|
},
|
|
1871
|
-
"description": "Dispatched when the checkbox value
|
|
1790
|
+
"description": "Dispatched when the checkbox is toggled. Detail: `{ checked, value, originalEvent }`.",
|
|
1872
1791
|
"name": "change"
|
|
1873
1792
|
},
|
|
1874
1793
|
{
|
|
@@ -1888,30 +1807,29 @@
|
|
|
1888
1807
|
],
|
|
1889
1808
|
"attributes": [
|
|
1890
1809
|
{
|
|
1891
|
-
"name": "
|
|
1810
|
+
"name": "label",
|
|
1892
1811
|
"type": {
|
|
1893
1812
|
"text": "string"
|
|
1894
1813
|
},
|
|
1895
1814
|
"default": "''",
|
|
1896
|
-
"description": "The
|
|
1897
|
-
"fieldName": "
|
|
1815
|
+
"description": "The checkbox label.",
|
|
1816
|
+
"fieldName": "label"
|
|
1898
1817
|
},
|
|
1899
1818
|
{
|
|
1900
|
-
"name": "
|
|
1819
|
+
"name": "checked",
|
|
1901
1820
|
"type": {
|
|
1902
|
-
"text": "
|
|
1821
|
+
"text": "boolean"
|
|
1903
1822
|
},
|
|
1904
|
-
"default": "
|
|
1905
|
-
"description": "
|
|
1906
|
-
"fieldName": "
|
|
1823
|
+
"default": "false",
|
|
1824
|
+
"description": "Whether the checkbox is checked.",
|
|
1825
|
+
"fieldName": "checked"
|
|
1907
1826
|
},
|
|
1908
1827
|
{
|
|
1909
1828
|
"name": "value",
|
|
1910
1829
|
"type": {
|
|
1911
1830
|
"text": "boolean"
|
|
1912
1831
|
},
|
|
1913
|
-
"
|
|
1914
|
-
"description": "The input field value (checked state).",
|
|
1832
|
+
"deprecated": "Use `checked`. Kept as an alias of `checked`.",
|
|
1915
1833
|
"fieldName": "value"
|
|
1916
1834
|
},
|
|
1917
1835
|
{
|
|
@@ -1959,15 +1877,6 @@
|
|
|
1959
1877
|
"description": "If true, the checkbox is readonly. Defaults to `false`.",
|
|
1960
1878
|
"fieldName": "readonly"
|
|
1961
1879
|
},
|
|
1962
|
-
{
|
|
1963
|
-
"name": "disabled",
|
|
1964
|
-
"type": {
|
|
1965
|
-
"text": "boolean"
|
|
1966
|
-
},
|
|
1967
|
-
"default": "false",
|
|
1968
|
-
"description": "If true, the user cannot interact with the checkbox. Defaults to `false`.",
|
|
1969
|
-
"fieldName": "disabled"
|
|
1970
|
-
},
|
|
1971
1880
|
{
|
|
1972
1881
|
"name": "configAria",
|
|
1973
1882
|
"type": {
|
|
@@ -1976,6 +1885,32 @@
|
|
|
1976
1885
|
"default": "{}",
|
|
1977
1886
|
"description": "Configuration object for aria attributes.",
|
|
1978
1887
|
"fieldName": "configAria"
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
"name": "name",
|
|
1891
|
+
"fieldName": "name",
|
|
1892
|
+
"inheritedFrom": {
|
|
1893
|
+
"name": "mixinFormAssociated",
|
|
1894
|
+
"module": "src/__internal/mixins/form-associated.ts"
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"name": "disabled",
|
|
1899
|
+
"fieldName": "disabled",
|
|
1900
|
+
"inheritedFrom": {
|
|
1901
|
+
"name": "mixinFormAssociated",
|
|
1902
|
+
"module": "src/__internal/mixins/form-associated.ts"
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
],
|
|
1906
|
+
"mixins": [
|
|
1907
|
+
{
|
|
1908
|
+
"name": "mixinFormAssociated",
|
|
1909
|
+
"package": "@/__internal/mixins/form-associated.js"
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"name": "mixinElementInternals",
|
|
1913
|
+
"package": "@/__internal/mixins/element-internals.js"
|
|
1979
1914
|
}
|
|
1980
1915
|
],
|
|
1981
1916
|
"superclass": {
|
|
@@ -1996,16 +1931,25 @@
|
|
|
1996
1931
|
"rawTag": "chip",
|
|
1997
1932
|
"summary": "Chip component for displaying compact information with optional actions.",
|
|
1998
1933
|
"tags": "display",
|
|
1934
|
+
"fires": "tag--dismiss - Deprecated alias of `dismiss`, fired alongside it.",
|
|
1999
1935
|
"example": "```html\n<wc-chip>Chip content</wc-chip>\n```",
|
|
2000
1936
|
"customElement": {
|
|
2001
1937
|
"kind": "class",
|
|
2002
1938
|
"description": "",
|
|
2003
1939
|
"events": [
|
|
1940
|
+
{
|
|
1941
|
+
"name": "dismiss",
|
|
1942
|
+
"type": {
|
|
1943
|
+
"text": "CustomEvent"
|
|
1944
|
+
},
|
|
1945
|
+
"description": "Dispatched when the dismiss button of a `dismissible` chip is clicked."
|
|
1946
|
+
},
|
|
2004
1947
|
{
|
|
2005
1948
|
"name": "tag--dismiss",
|
|
2006
1949
|
"type": {
|
|
2007
1950
|
"text": "CustomEvent"
|
|
2008
|
-
}
|
|
1951
|
+
},
|
|
1952
|
+
"description": "Deprecated alias of `dismiss`, fired alongside it."
|
|
2009
1953
|
}
|
|
2010
1954
|
],
|
|
2011
1955
|
"attributes": [
|
|
@@ -2347,42 +2291,64 @@
|
|
|
2347
2291
|
"tag": "wc-code-editor",
|
|
2348
2292
|
"rawTag": "code-editor",
|
|
2349
2293
|
"summary": "A Monaco-based code editing component with syntax highlighting and theming.",
|
|
2350
|
-
"overview": "- CodeEditor wraps Monaco Editor as a web component.\n - Supports
|
|
2351
|
-
"
|
|
2294
|
+
"overview": "- CodeEditor wraps Monaco Editor as a web component.\n - Supports JavaScript, JSON, HTML, CSS and SCSS, read-only mode, line numbers, minimap, and dark/light theme.\n - Has a copy button; hide it with `hide-copy`.\n - Emits `change` when content is edited and updates value from property changes.",
|
|
2295
|
+
"cssprop": "--code-editor-height - Height of the editor. Defaults to 300px.",
|
|
2296
|
+
"fires": "copied - Dispatched after the copy button copies the content.",
|
|
2297
|
+
"example": "```html\n<wc-code-editor\n language=\"css\"\n readonly\n style=\"width: 100%; --code-editor-height: 10rem;\"\n value=\":root { --color-primary: #6341d5; }\">\n</wc-code-editor>\n```",
|
|
2352
2298
|
"tags": "input, editor",
|
|
2353
2299
|
"customElement": {
|
|
2354
2300
|
"kind": "class",
|
|
2355
2301
|
"description": "",
|
|
2356
|
-
"
|
|
2302
|
+
"cssProperties": [
|
|
2357
2303
|
{
|
|
2358
|
-
"
|
|
2304
|
+
"description": "Height of the editor. Defaults to 300px.",
|
|
2305
|
+
"name": "--code-editor-height"
|
|
2306
|
+
}
|
|
2307
|
+
],
|
|
2308
|
+
"events": [
|
|
2309
|
+
{
|
|
2310
|
+
"name": "copied",
|
|
2359
2311
|
"type": {
|
|
2360
|
-
"text": "string"
|
|
2312
|
+
"text": "CustomEvent<{value: string}>"
|
|
2361
2313
|
},
|
|
2362
|
-
"
|
|
2363
|
-
"fieldName": "name"
|
|
2314
|
+
"description": "Dispatched after the copy button copies the content."
|
|
2364
2315
|
},
|
|
2316
|
+
{
|
|
2317
|
+
"type": {
|
|
2318
|
+
"text": "Event"
|
|
2319
|
+
},
|
|
2320
|
+
"description": "Dispatched when the user edits the content.",
|
|
2321
|
+
"name": "change"
|
|
2322
|
+
}
|
|
2323
|
+
],
|
|
2324
|
+
"attributes": [
|
|
2365
2325
|
{
|
|
2366
2326
|
"name": "value",
|
|
2367
2327
|
"type": {
|
|
2368
2328
|
"text": "string"
|
|
2369
2329
|
},
|
|
2370
2330
|
"default": "''",
|
|
2331
|
+
"description": "The code shown in the editor. Updated as the user types.",
|
|
2371
2332
|
"fieldName": "value"
|
|
2372
2333
|
},
|
|
2373
2334
|
{
|
|
2374
2335
|
"name": "language",
|
|
2375
2336
|
"type": {
|
|
2376
|
-
"text": "
|
|
2337
|
+
"text": "CodeEditorLanguage"
|
|
2377
2338
|
},
|
|
2378
2339
|
"default": "'javascript'",
|
|
2379
|
-
"
|
|
2340
|
+
"description": "Language used for syntax highlighting. Can be changed after the editor loads.",
|
|
2341
|
+
"fieldName": "language",
|
|
2342
|
+
"expandedType": {
|
|
2343
|
+
"text": "'javascript' | 'json' | 'html' | 'css' | 'scss'"
|
|
2344
|
+
}
|
|
2380
2345
|
},
|
|
2381
2346
|
{
|
|
2382
2347
|
"name": "libSource",
|
|
2383
2348
|
"type": {
|
|
2384
2349
|
"text": "any"
|
|
2385
2350
|
},
|
|
2351
|
+
"description": "Extra source loaded as a separate model, e.g. type definitions for completions.",
|
|
2386
2352
|
"fieldName": "libSource"
|
|
2387
2353
|
},
|
|
2388
2354
|
{
|
|
@@ -2391,6 +2357,7 @@
|
|
|
2391
2357
|
"text": "'off' | 'on'"
|
|
2392
2358
|
},
|
|
2393
2359
|
"default": "'on'",
|
|
2360
|
+
"description": "Whether line numbers show in the gutter.",
|
|
2394
2361
|
"fieldName": "lineNumbers"
|
|
2395
2362
|
},
|
|
2396
2363
|
{
|
|
@@ -2399,14 +2366,37 @@
|
|
|
2399
2366
|
"text": "boolean"
|
|
2400
2367
|
},
|
|
2401
2368
|
"default": "false",
|
|
2369
|
+
"description": "Shows the minimap. Leave the attribute out to hide it.",
|
|
2402
2370
|
"fieldName": "minimap"
|
|
2403
2371
|
},
|
|
2404
2372
|
{
|
|
2405
|
-
"name": "
|
|
2373
|
+
"name": "hide-copy",
|
|
2374
|
+
"type": {
|
|
2375
|
+
"text": "boolean"
|
|
2376
|
+
},
|
|
2377
|
+
"default": "false",
|
|
2378
|
+
"description": "Hides the copy button.",
|
|
2379
|
+
"fieldName": "hideCopy"
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
"name": "show-readonly-badge",
|
|
2406
2383
|
"type": {
|
|
2407
2384
|
"text": "boolean"
|
|
2408
2385
|
},
|
|
2409
2386
|
"default": "false",
|
|
2387
|
+
"description": "Shows a \"Read Only\" badge while the editor is read-only or disabled.",
|
|
2388
|
+
"fieldName": "showReadonlyBadge"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "name",
|
|
2392
|
+
"fieldName": "name",
|
|
2393
|
+
"inheritedFrom": {
|
|
2394
|
+
"name": "BaseInput",
|
|
2395
|
+
"module": "src/input/BaseInput.ts"
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
"name": "disabled",
|
|
2410
2400
|
"fieldName": "disabled",
|
|
2411
2401
|
"inheritedFrom": {
|
|
2412
2402
|
"name": "BaseInput",
|
|
@@ -2527,88 +2517,227 @@
|
|
|
2527
2517
|
}
|
|
2528
2518
|
},
|
|
2529
2519
|
{
|
|
2530
|
-
"label": "Color
|
|
2531
|
-
"tag": "wc-color-
|
|
2532
|
-
"rawTag": "color-
|
|
2533
|
-
"summary": "A
|
|
2534
|
-
"overview": "<p>
|
|
2535
|
-
"
|
|
2536
|
-
"
|
|
2537
|
-
"
|
|
2520
|
+
"label": "Color Field",
|
|
2521
|
+
"tag": "wc-color-field",
|
|
2522
|
+
"rawTag": "color-field",
|
|
2523
|
+
"summary": "A text field for a hex color, with a swatch that opens a color picker.",
|
|
2524
|
+
"overview": "<p>Color field shows the current color as a swatch next to its hex value. Type a hex value, or\nclick the swatch to pick one with <code>wc-color-picker</code> in a popover.</p>\n<p>It is form-associated: the hex value is submitted under its <code>name</code>.</p>",
|
|
2525
|
+
"fires": "change - Dispatched when a color is committed, from the picker or the text field.",
|
|
2526
|
+
"example": "```html\n<wc-color-field label=\"Brand color\" value=\"#7c5df0\"></wc-color-field>\n```",
|
|
2527
|
+
"tags": "input, form",
|
|
2538
2528
|
"customElement": {
|
|
2539
2529
|
"kind": "class",
|
|
2540
2530
|
"description": "",
|
|
2541
|
-
"
|
|
2531
|
+
"events": [
|
|
2542
2532
|
{
|
|
2543
|
-
"
|
|
2544
|
-
"
|
|
2533
|
+
"name": "change",
|
|
2534
|
+
"type": {
|
|
2535
|
+
"text": "CustomEvent<{value: string}>"
|
|
2536
|
+
},
|
|
2537
|
+
"description": "Dispatched when a color is committed, from the picker or the text field."
|
|
2545
2538
|
},
|
|
2546
2539
|
{
|
|
2547
|
-
"
|
|
2548
|
-
"
|
|
2540
|
+
"name": "input",
|
|
2541
|
+
"type": {
|
|
2542
|
+
"text": "CustomEvent<{value: string}>"
|
|
2543
|
+
},
|
|
2544
|
+
"description": "Dispatched while the color changes in the picker."
|
|
2549
2545
|
}
|
|
2550
2546
|
],
|
|
2551
|
-
"
|
|
2547
|
+
"attributes": [
|
|
2552
2548
|
{
|
|
2553
|
-
"name": "
|
|
2549
|
+
"name": "value",
|
|
2554
2550
|
"type": {
|
|
2555
|
-
"text": "
|
|
2556
|
-
}
|
|
2551
|
+
"text": "string"
|
|
2552
|
+
},
|
|
2553
|
+
"default": "'#7c5df0'",
|
|
2554
|
+
"description": "The color as a 6-digit hex string, such as `\"#7c5df0\"`.",
|
|
2555
|
+
"fieldName": "value"
|
|
2557
2556
|
},
|
|
2558
2557
|
{
|
|
2558
|
+
"name": "label",
|
|
2559
2559
|
"type": {
|
|
2560
|
-
"text": "
|
|
2560
|
+
"text": "string"
|
|
2561
2561
|
},
|
|
2562
|
-
"
|
|
2563
|
-
"
|
|
2562
|
+
"default": "''",
|
|
2563
|
+
"description": "Label shown above the field.",
|
|
2564
|
+
"fieldName": "label"
|
|
2564
2565
|
},
|
|
2565
2566
|
{
|
|
2567
|
+
"name": "helper-text",
|
|
2566
2568
|
"type": {
|
|
2567
|
-
"text": "
|
|
2569
|
+
"text": "string"
|
|
2568
2570
|
},
|
|
2569
|
-
"
|
|
2570
|
-
"
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
"attributes": [
|
|
2571
|
+
"default": "''",
|
|
2572
|
+
"description": "Helper text shown below the field.",
|
|
2573
|
+
"fieldName": "helperText"
|
|
2574
|
+
},
|
|
2574
2575
|
{
|
|
2575
|
-
"name": "
|
|
2576
|
+
"name": "variant",
|
|
2576
2577
|
"type": {
|
|
2577
|
-
"text": "
|
|
2578
|
+
"text": "'filled' | 'outlined' | 'default'"
|
|
2578
2579
|
},
|
|
2579
|
-
"default": "'
|
|
2580
|
-
"description": "
|
|
2581
|
-
"fieldName": "
|
|
2580
|
+
"default": "'default'",
|
|
2581
|
+
"description": "Visual variant of the field.",
|
|
2582
|
+
"fieldName": "variant"
|
|
2582
2583
|
},
|
|
2583
2584
|
{
|
|
2584
|
-
"name": "
|
|
2585
|
+
"name": "placement",
|
|
2586
|
+
"type": {
|
|
2587
|
+
"text": "Popover['placement']"
|
|
2588
|
+
},
|
|
2589
|
+
"default": "'bottom-start'",
|
|
2590
|
+
"description": "Where the picker opens, relative to the field.",
|
|
2591
|
+
"fieldName": "placement"
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
"name": "name",
|
|
2595
|
+
"fieldName": "name",
|
|
2596
|
+
"inheritedFrom": {
|
|
2597
|
+
"name": "BaseInput",
|
|
2598
|
+
"module": "src/input/BaseInput.ts"
|
|
2599
|
+
}
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
"name": "disabled",
|
|
2603
|
+
"fieldName": "disabled",
|
|
2604
|
+
"inheritedFrom": {
|
|
2605
|
+
"name": "BaseInput",
|
|
2606
|
+
"module": "src/input/BaseInput.ts"
|
|
2607
|
+
}
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
"name": "readonly",
|
|
2585
2611
|
"type": {
|
|
2586
2612
|
"text": "boolean"
|
|
2587
2613
|
},
|
|
2588
2614
|
"default": "false",
|
|
2589
|
-
"
|
|
2590
|
-
"
|
|
2615
|
+
"fieldName": "readonly",
|
|
2616
|
+
"inheritedFrom": {
|
|
2617
|
+
"name": "BaseInput",
|
|
2618
|
+
"module": "src/input/BaseInput.ts"
|
|
2619
|
+
}
|
|
2591
2620
|
},
|
|
2592
2621
|
{
|
|
2593
|
-
"name": "
|
|
2622
|
+
"name": "required",
|
|
2594
2623
|
"type": {
|
|
2595
2624
|
"text": "boolean"
|
|
2596
2625
|
},
|
|
2597
2626
|
"default": "false",
|
|
2598
|
-
"
|
|
2599
|
-
"
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2627
|
+
"fieldName": "required",
|
|
2628
|
+
"inheritedFrom": {
|
|
2629
|
+
"name": "BaseInput",
|
|
2630
|
+
"module": "src/input/BaseInput.ts"
|
|
2631
|
+
}
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
"name": "skeleton",
|
|
2635
|
+
"type": {
|
|
2636
|
+
"text": "boolean"
|
|
2637
|
+
},
|
|
2638
|
+
"default": "false",
|
|
2639
|
+
"fieldName": "skeleton",
|
|
2640
|
+
"inheritedFrom": {
|
|
2641
|
+
"name": "BaseInput",
|
|
2642
|
+
"module": "src/input/BaseInput.ts"
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
],
|
|
2646
|
+
"superclass": {
|
|
2647
|
+
"name": "BaseInput",
|
|
2648
|
+
"module": "/src/input/BaseInput.js"
|
|
2649
|
+
},
|
|
2650
|
+
"tagName": "wc-color-field",
|
|
2651
|
+
"customElement": true,
|
|
2652
|
+
"rawTag": {
|
|
2653
|
+
"name": "color-field",
|
|
2654
|
+
"description": ""
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
"label": "Color Picker",
|
|
2660
|
+
"tag": "wc-color-picker",
|
|
2661
|
+
"rawTag": "color-picker",
|
|
2662
|
+
"summary": "A color picker component for selecting colors via a hue/saturation/value interface.",
|
|
2663
|
+
"overview": "<p>The color picker presents a 2D saturation–brightness panel with a hue slider below it.\nAn optional alpha slider allows controlling opacity. The current hex value is displayed in\nan editable text field.</p>",
|
|
2664
|
+
"cssprop": "--color-picker-sv-height - Height of the saturation/brightness panel. Defaults to 160px.",
|
|
2665
|
+
"fires": "change - Dispatched when a color change is committed (pointer up, key, or input blur).",
|
|
2666
|
+
"example": "```html\n<wc-color-picker value=\"#ff573380\" alpha></wc-color-picker>\n```",
|
|
2667
|
+
"customElement": {
|
|
2668
|
+
"kind": "class",
|
|
2669
|
+
"description": "",
|
|
2670
|
+
"cssProperties": [
|
|
2671
|
+
{
|
|
2672
|
+
"description": "Overall width of the component. Defaults to 240px.",
|
|
2673
|
+
"name": "--color-picker-width"
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"description": "Height of the saturation/brightness panel. Defaults to 160px.",
|
|
2677
|
+
"name": "--color-picker-sv-height"
|
|
2678
|
+
}
|
|
2679
|
+
],
|
|
2680
|
+
"events": [
|
|
2681
|
+
{
|
|
2682
|
+
"name": "type",
|
|
2683
|
+
"type": {
|
|
2684
|
+
"text": "CustomEvent"
|
|
2685
|
+
}
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
"type": {
|
|
2689
|
+
"text": "CustomEvent<{value: string, alpha: number}>"
|
|
2690
|
+
},
|
|
2691
|
+
"description": "Dispatched continuously while the color is being changed.",
|
|
2692
|
+
"name": "input"
|
|
2693
|
+
},
|
|
2694
|
+
{
|
|
2695
|
+
"type": {
|
|
2696
|
+
"text": "CustomEvent<{value: string, alpha: number}>"
|
|
2697
|
+
},
|
|
2698
|
+
"description": "Dispatched when a color change is committed (pointer up, key, or input blur).",
|
|
2699
|
+
"name": "change"
|
|
2700
|
+
}
|
|
2701
|
+
],
|
|
2702
|
+
"attributes": [
|
|
2703
|
+
{
|
|
2704
|
+
"name": "value",
|
|
2705
|
+
"type": {
|
|
2706
|
+
"text": "string"
|
|
2707
|
+
},
|
|
2708
|
+
"default": "'#2352d5'",
|
|
2709
|
+
"description": "The current color as a 6-digit hex string (e.g. `\"#ff5733\"`).",
|
|
2710
|
+
"fieldName": "value"
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"name": "alpha",
|
|
2714
|
+
"type": {
|
|
2715
|
+
"text": "boolean"
|
|
2716
|
+
},
|
|
2717
|
+
"default": "false",
|
|
2718
|
+
"description": "Whether to show the alpha (opacity) slider and input.",
|
|
2719
|
+
"fieldName": "alpha"
|
|
2720
|
+
},
|
|
2721
|
+
{
|
|
2722
|
+
"name": "disabled",
|
|
2723
|
+
"type": {
|
|
2724
|
+
"text": "boolean"
|
|
2725
|
+
},
|
|
2726
|
+
"default": "false",
|
|
2727
|
+
"description": "Whether the color picker is disabled.",
|
|
2728
|
+
"fieldName": "disabled"
|
|
2729
|
+
}
|
|
2730
|
+
],
|
|
2731
|
+
"superclass": {
|
|
2732
|
+
"name": "LitElement",
|
|
2733
|
+
"package": "lit"
|
|
2734
|
+
},
|
|
2735
|
+
"tagName": "wc-color-picker",
|
|
2736
|
+
"customElement": true,
|
|
2737
|
+
"rawTag": {
|
|
2738
|
+
"name": "color-picker",
|
|
2739
|
+
"description": ""
|
|
2740
|
+
}
|
|
2612
2741
|
}
|
|
2613
2742
|
},
|
|
2614
2743
|
{
|
|
@@ -2699,14 +2828,6 @@
|
|
|
2699
2828
|
"default": "''",
|
|
2700
2829
|
"fieldName": "value"
|
|
2701
2830
|
},
|
|
2702
|
-
{
|
|
2703
|
-
"name": "name",
|
|
2704
|
-
"type": {
|
|
2705
|
-
"text": "string"
|
|
2706
|
-
},
|
|
2707
|
-
"default": "''",
|
|
2708
|
-
"fieldName": "name"
|
|
2709
|
-
},
|
|
2710
2831
|
{
|
|
2711
2832
|
"name": "placeholder",
|
|
2712
2833
|
"type": {
|
|
@@ -2804,12 +2925,16 @@
|
|
|
2804
2925
|
"default": "''",
|
|
2805
2926
|
"fieldName": "warningText"
|
|
2806
2927
|
},
|
|
2928
|
+
{
|
|
2929
|
+
"name": "name",
|
|
2930
|
+
"fieldName": "name",
|
|
2931
|
+
"inheritedFrom": {
|
|
2932
|
+
"name": "BaseInput",
|
|
2933
|
+
"module": "src/input/BaseInput.ts"
|
|
2934
|
+
}
|
|
2935
|
+
},
|
|
2807
2936
|
{
|
|
2808
2937
|
"name": "disabled",
|
|
2809
|
-
"type": {
|
|
2810
|
-
"text": "boolean"
|
|
2811
|
-
},
|
|
2812
|
-
"default": "false",
|
|
2813
2938
|
"fieldName": "disabled",
|
|
2814
2939
|
"inheritedFrom": {
|
|
2815
2940
|
"name": "BaseInput",
|
|
@@ -3843,12 +3968,16 @@
|
|
|
3843
3968
|
"description": "Debounce in milliseconds for dispatching `change`.",
|
|
3844
3969
|
"fieldName": "debounce"
|
|
3845
3970
|
},
|
|
3971
|
+
{
|
|
3972
|
+
"name": "name",
|
|
3973
|
+
"fieldName": "name",
|
|
3974
|
+
"inheritedFrom": {
|
|
3975
|
+
"name": "BaseInput",
|
|
3976
|
+
"module": "src/input/BaseInput.ts"
|
|
3977
|
+
}
|
|
3978
|
+
},
|
|
3846
3979
|
{
|
|
3847
3980
|
"name": "disabled",
|
|
3848
|
-
"type": {
|
|
3849
|
-
"text": "boolean"
|
|
3850
|
-
},
|
|
3851
|
-
"default": "false",
|
|
3852
3981
|
"fieldName": "disabled",
|
|
3853
3982
|
"inheritedFrom": {
|
|
3854
3983
|
"name": "BaseInput",
|
|
@@ -4125,7 +4254,7 @@
|
|
|
4125
4254
|
"fieldName": "color",
|
|
4126
4255
|
"description": "Defines the primary color of the button. This can be set to predefined color names to apply specific color themes.",
|
|
4127
4256
|
"expandedType": {
|
|
4128
|
-
"text": "'primary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface'"
|
|
4257
|
+
"text": "'primary' | 'secondary' | 'tertiary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface'"
|
|
4129
4258
|
},
|
|
4130
4259
|
"inheritedFrom": {
|
|
4131
4260
|
"name": "mixinBaseButton",
|
|
@@ -4401,33 +4530,44 @@
|
|
|
4401
4530
|
"tag": "wc-input",
|
|
4402
4531
|
"rawTag": "input",
|
|
4403
4532
|
"summary": "The Input component is used to capture user input.",
|
|
4533
|
+
"overview": "<p>Input is form-associated: inside a <code><form></code> its <code>value</code> is submitted\nunder its <code>name</code>, and <code>form.reset()</code> restores the starting value.</p>",
|
|
4534
|
+
"fires": "change - Re-fired from the native input when the value is committed.",
|
|
4404
4535
|
"example": "```html\n<wc-input label=\"Name\" required placeholder=\"Enter your name\"></wc-input>\n```",
|
|
4536
|
+
"tags": "input, form",
|
|
4405
4537
|
"customElement": {
|
|
4406
4538
|
"kind": "class",
|
|
4407
4539
|
"description": "",
|
|
4408
|
-
"
|
|
4540
|
+
"events": [
|
|
4409
4541
|
{
|
|
4410
|
-
"name": "value",
|
|
4411
4542
|
"type": {
|
|
4412
|
-
"text": "
|
|
4543
|
+
"text": "Event"
|
|
4413
4544
|
},
|
|
4414
|
-
"
|
|
4415
|
-
"
|
|
4545
|
+
"description": "Re-fired from the native input as the user types.",
|
|
4546
|
+
"name": "input"
|
|
4416
4547
|
},
|
|
4417
4548
|
{
|
|
4418
|
-
"
|
|
4549
|
+
"type": {
|
|
4550
|
+
"text": "Event"
|
|
4551
|
+
},
|
|
4552
|
+
"description": "Re-fired from the native input when the value is committed.",
|
|
4553
|
+
"name": "change"
|
|
4554
|
+
}
|
|
4555
|
+
],
|
|
4556
|
+
"attributes": [
|
|
4557
|
+
{
|
|
4558
|
+
"name": "value",
|
|
4419
4559
|
"type": {
|
|
4420
4560
|
"text": "string"
|
|
4421
4561
|
},
|
|
4422
|
-
"default": "
|
|
4423
|
-
"fieldName": "
|
|
4562
|
+
"default": "''",
|
|
4563
|
+
"fieldName": "value"
|
|
4424
4564
|
},
|
|
4425
4565
|
{
|
|
4426
4566
|
"name": "placeholder",
|
|
4427
4567
|
"type": {
|
|
4428
4568
|
"text": "string"
|
|
4429
4569
|
},
|
|
4430
|
-
"default": "
|
|
4570
|
+
"default": "''",
|
|
4431
4571
|
"fieldName": "placeholder"
|
|
4432
4572
|
},
|
|
4433
4573
|
{
|
|
@@ -4435,7 +4575,7 @@
|
|
|
4435
4575
|
"type": {
|
|
4436
4576
|
"text": "string"
|
|
4437
4577
|
},
|
|
4438
|
-
"default": "
|
|
4578
|
+
"default": "''",
|
|
4439
4579
|
"fieldName": "label"
|
|
4440
4580
|
},
|
|
4441
4581
|
{
|
|
@@ -4449,25 +4589,26 @@
|
|
|
4449
4589
|
{
|
|
4450
4590
|
"name": "size",
|
|
4451
4591
|
"type": {
|
|
4452
|
-
"text": "
|
|
4592
|
+
"text": "'sm' | 'md' | 'lg'"
|
|
4453
4593
|
},
|
|
4454
|
-
"default": "
|
|
4594
|
+
"default": "'md'",
|
|
4595
|
+
"description": "Field size. Possible values are `\"sm\"`, `\"md\"`, `\"lg\"`. Defaults to `\"md\"`.",
|
|
4455
4596
|
"fieldName": "size"
|
|
4456
4597
|
},
|
|
4457
4598
|
{
|
|
4458
4599
|
"name": "type",
|
|
4459
4600
|
"type": {
|
|
4460
|
-
"text": "
|
|
4601
|
+
"text": "'text' | 'password' | 'email' | 'tel'"
|
|
4461
4602
|
},
|
|
4462
|
-
"default": "
|
|
4603
|
+
"default": "'text'",
|
|
4463
4604
|
"fieldName": "type"
|
|
4464
4605
|
},
|
|
4465
4606
|
{
|
|
4466
4607
|
"name": "autocomplete",
|
|
4467
4608
|
"type": {
|
|
4468
|
-
"text": "
|
|
4609
|
+
"text": "'on' | 'off'"
|
|
4469
4610
|
},
|
|
4470
|
-
"default": "
|
|
4611
|
+
"default": "'off'",
|
|
4471
4612
|
"fieldName": "autocomplete"
|
|
4472
4613
|
},
|
|
4473
4614
|
{
|
|
@@ -4481,9 +4622,9 @@
|
|
|
4481
4622
|
{
|
|
4482
4623
|
"name": "variant",
|
|
4483
4624
|
"type": {
|
|
4484
|
-
"text": "
|
|
4625
|
+
"text": "'filled' | 'outlined' | 'default'"
|
|
4485
4626
|
},
|
|
4486
|
-
"default": "
|
|
4627
|
+
"default": "'default'",
|
|
4487
4628
|
"fieldName": "variant"
|
|
4488
4629
|
},
|
|
4489
4630
|
{
|
|
@@ -4491,7 +4632,7 @@
|
|
|
4491
4632
|
"type": {
|
|
4492
4633
|
"text": "string"
|
|
4493
4634
|
},
|
|
4494
|
-
"default": "
|
|
4635
|
+
"default": "''",
|
|
4495
4636
|
"description": "Helper text to display below the input.",
|
|
4496
4637
|
"fieldName": "helperText"
|
|
4497
4638
|
},
|
|
@@ -4508,7 +4649,7 @@
|
|
|
4508
4649
|
"type": {
|
|
4509
4650
|
"text": "string"
|
|
4510
4651
|
},
|
|
4511
|
-
"default": "
|
|
4652
|
+
"default": "''",
|
|
4512
4653
|
"fieldName": "errorText"
|
|
4513
4654
|
},
|
|
4514
4655
|
{
|
|
@@ -4524,15 +4665,19 @@
|
|
|
4524
4665
|
"type": {
|
|
4525
4666
|
"text": "string"
|
|
4526
4667
|
},
|
|
4527
|
-
"default": "
|
|
4668
|
+
"default": "''",
|
|
4528
4669
|
"fieldName": "warningText"
|
|
4529
4670
|
},
|
|
4671
|
+
{
|
|
4672
|
+
"name": "name",
|
|
4673
|
+
"fieldName": "name",
|
|
4674
|
+
"inheritedFrom": {
|
|
4675
|
+
"name": "BaseInput",
|
|
4676
|
+
"module": "src/input/BaseInput.ts"
|
|
4677
|
+
}
|
|
4678
|
+
},
|
|
4530
4679
|
{
|
|
4531
4680
|
"name": "disabled",
|
|
4532
|
-
"type": {
|
|
4533
|
-
"text": "boolean"
|
|
4534
|
-
},
|
|
4535
|
-
"default": "false",
|
|
4536
4681
|
"fieldName": "disabled",
|
|
4537
4682
|
"inheritedFrom": {
|
|
4538
4683
|
"name": "BaseInput",
|
|
@@ -5130,12 +5275,16 @@
|
|
|
5130
5275
|
"description": "Debounce in milliseconds for dispatching `change`.",
|
|
5131
5276
|
"fieldName": "debounce"
|
|
5132
5277
|
},
|
|
5278
|
+
{
|
|
5279
|
+
"name": "name",
|
|
5280
|
+
"fieldName": "name",
|
|
5281
|
+
"inheritedFrom": {
|
|
5282
|
+
"name": "BaseInput",
|
|
5283
|
+
"module": "src/input/BaseInput.ts"
|
|
5284
|
+
}
|
|
5285
|
+
},
|
|
5133
5286
|
{
|
|
5134
5287
|
"name": "disabled",
|
|
5135
|
-
"type": {
|
|
5136
|
-
"text": "boolean"
|
|
5137
|
-
},
|
|
5138
|
-
"default": "false",
|
|
5139
5288
|
"fieldName": "disabled",
|
|
5140
5289
|
"inheritedFrom": {
|
|
5141
5290
|
"name": "BaseInput",
|
|
@@ -5658,65 +5807,434 @@
|
|
|
5658
5807
|
}
|
|
5659
5808
|
},
|
|
5660
5809
|
{
|
|
5661
|
-
"label": "Navigation
|
|
5662
|
-
"tag": "wc-navigation-
|
|
5663
|
-
"rawTag": "navigation-
|
|
5664
|
-
"summary": "A
|
|
5665
|
-
"overview": "<p>Navigation
|
|
5666
|
-
"
|
|
5667
|
-
"cssprop": "--
|
|
5668
|
-
"example": "```html\n<wc-navigation-
|
|
5810
|
+
"label": "Navigation Bar",
|
|
5811
|
+
"tag": "wc-navigation-bar",
|
|
5812
|
+
"rawTag": "navigation-bar",
|
|
5813
|
+
"summary": "A bottom bar with three to five primary destinations, for small screens.",
|
|
5814
|
+
"overview": "<p>Navigation bar lays its <code>wc-navigation-bar-item</code> children out in a row of equal\nwidths. Clicking an item makes it the active one and fires <code>change</code>.</p>\n<p>The bar does not position itself: place it at the bottom of your layout, or give it\n<code>position: fixed; inset-inline: 0; bottom: 0</code>.</p>",
|
|
5815
|
+
"fires": "change - Dispatched when the user activates an item.",
|
|
5816
|
+
"cssprop": "--navigation-bar-elevation - Shadow of the bar. Defaults to `--elevation-level2`.",
|
|
5817
|
+
"example": "```html\n<wc-navigation-bar>\n <wc-navigation-bar-item active value=\"home\">\n <wc-icon slot=\"icon\" name=\"home\"></wc-icon>\n Home\n </wc-navigation-bar-item>\n <wc-navigation-bar-item value=\"search\">\n <wc-icon slot=\"icon\" name=\"search\"></wc-icon>\n Search\n </wc-navigation-bar-item>\n</wc-navigation-bar>\n```",
|
|
5669
5818
|
"tags": "navigation",
|
|
5670
5819
|
"customElement": {
|
|
5671
5820
|
"kind": "class",
|
|
5672
5821
|
"description": "",
|
|
5673
5822
|
"cssProperties": [
|
|
5674
5823
|
{
|
|
5675
|
-
"description": "
|
|
5676
|
-
"name": "--
|
|
5677
|
-
},
|
|
5678
|
-
{
|
|
5679
|
-
"description": "Background color of the rail. Defaults to surface color.",
|
|
5680
|
-
"name": "--nav-rail-container-color"
|
|
5681
|
-
},
|
|
5682
|
-
{
|
|
5683
|
-
"description": "Color of the active indicator. Defaults to secondary-container.",
|
|
5684
|
-
"name": "--nav-rail-indicator-color"
|
|
5685
|
-
},
|
|
5686
|
-
{
|
|
5687
|
-
"description": "Shape (border-radius) of the active indicator. Defaults to full (pill).",
|
|
5688
|
-
"name": "--nav-rail-indicator-shape"
|
|
5689
|
-
},
|
|
5690
|
-
{
|
|
5691
|
-
"description": "Width of the active indicator. Defaults to 3.5rem (56dp).",
|
|
5692
|
-
"name": "--nav-rail-indicator-width"
|
|
5693
|
-
},
|
|
5694
|
-
{
|
|
5695
|
-
"description": "Height of the active indicator. Defaults to 2rem (32dp).",
|
|
5696
|
-
"name": "--nav-rail-indicator-height"
|
|
5697
|
-
},
|
|
5698
|
-
{
|
|
5699
|
-
"description": "Color of inactive icons. Defaults to on-surface-variant.",
|
|
5700
|
-
"name": "--nav-rail-inactive-icon-color"
|
|
5701
|
-
},
|
|
5702
|
-
{
|
|
5703
|
-
"description": "Color of active icons. Defaults to on-secondary-container.",
|
|
5704
|
-
"name": "--nav-rail-active-icon-color"
|
|
5824
|
+
"description": "Background of the bar. Defaults to `--color-surface-container`.",
|
|
5825
|
+
"name": "--navigation-bar-container-color"
|
|
5705
5826
|
},
|
|
5706
5827
|
{
|
|
5707
|
-
"description": "
|
|
5708
|
-
"name": "--
|
|
5828
|
+
"description": "Height of the bar. Defaults to 5rem (80dp).",
|
|
5829
|
+
"name": "--navigation-bar-height"
|
|
5709
5830
|
},
|
|
5710
5831
|
{
|
|
5711
|
-
"description": "
|
|
5712
|
-
"name": "--
|
|
5832
|
+
"description": "Shadow of the bar. Defaults to `--elevation-level2`.",
|
|
5833
|
+
"name": "--navigation-bar-elevation"
|
|
5713
5834
|
}
|
|
5714
5835
|
],
|
|
5715
|
-
"
|
|
5716
|
-
{
|
|
5717
|
-
"
|
|
5718
|
-
|
|
5719
|
-
|
|
5836
|
+
"events": [
|
|
5837
|
+
{
|
|
5838
|
+
"type": {
|
|
5839
|
+
"text": "CustomEvent<{value: string | undefined, index: number, item: NavigationBarItem}>"
|
|
5840
|
+
},
|
|
5841
|
+
"description": "Dispatched when the user activates an item.",
|
|
5842
|
+
"name": "change"
|
|
5843
|
+
}
|
|
5844
|
+
],
|
|
5845
|
+
"superclass": {
|
|
5846
|
+
"name": "LitElement",
|
|
5847
|
+
"package": "lit"
|
|
5848
|
+
},
|
|
5849
|
+
"tagName": "wc-navigation-bar",
|
|
5850
|
+
"customElement": true,
|
|
5851
|
+
"rawTag": {
|
|
5852
|
+
"name": "navigation-bar",
|
|
5853
|
+
"description": ""
|
|
5854
|
+
}
|
|
5855
|
+
}
|
|
5856
|
+
},
|
|
5857
|
+
{
|
|
5858
|
+
"label": "Navigation Bar Item",
|
|
5859
|
+
"tag": "wc-navigation-bar-item",
|
|
5860
|
+
"rawTag": "navigation-bar-item",
|
|
5861
|
+
"summary": "A destination in a navigation bar.",
|
|
5862
|
+
"overview": "<p>Shows an icon inside the active-indicator pill with a label below. It has the same API as\n<code>wc-navigation-rail-item</code>: <code>active</code>, <code>disabled</code>, <code>href</code>,\n<code>value</code>, and the <code>icon</code> and <code>active-icon</code> slots.</p>",
|
|
5863
|
+
"example": "```html\n<wc-navigation-bar-item active>\n <wc-icon slot=\"icon\" name=\"home\"></wc-icon>\n Home\n</wc-navigation-bar-item>\n```",
|
|
5864
|
+
"tags": "navigation",
|
|
5865
|
+
"customElement": {
|
|
5866
|
+
"kind": "class",
|
|
5867
|
+
"description": "",
|
|
5868
|
+
"superclass": {
|
|
5869
|
+
"name": "NavigationRailItem",
|
|
5870
|
+
"module": "/src/navigation-rail/navigation-rail-item.js"
|
|
5871
|
+
},
|
|
5872
|
+
"tagName": "wc-navigation-bar-item",
|
|
5873
|
+
"customElement": true,
|
|
5874
|
+
"rawTag": {
|
|
5875
|
+
"name": "navigation-bar-item",
|
|
5876
|
+
"description": ""
|
|
5877
|
+
},
|
|
5878
|
+
"attributes": [
|
|
5879
|
+
{
|
|
5880
|
+
"name": "active",
|
|
5881
|
+
"type": {
|
|
5882
|
+
"text": "boolean"
|
|
5883
|
+
},
|
|
5884
|
+
"default": "false",
|
|
5885
|
+
"description": "Whether this item is currently active/selected.",
|
|
5886
|
+
"fieldName": "active",
|
|
5887
|
+
"inheritedFrom": {
|
|
5888
|
+
"name": "NavigationRailItem",
|
|
5889
|
+
"module": "src/navigation-rail/navigation-rail-item.ts"
|
|
5890
|
+
}
|
|
5891
|
+
},
|
|
5892
|
+
{
|
|
5893
|
+
"name": "disabled",
|
|
5894
|
+
"type": {
|
|
5895
|
+
"text": "boolean"
|
|
5896
|
+
},
|
|
5897
|
+
"default": "false",
|
|
5898
|
+
"description": "Whether this item is disabled.",
|
|
5899
|
+
"fieldName": "disabled",
|
|
5900
|
+
"inheritedFrom": {
|
|
5901
|
+
"name": "NavigationRailItem",
|
|
5902
|
+
"module": "src/navigation-rail/navigation-rail-item.ts"
|
|
5903
|
+
}
|
|
5904
|
+
},
|
|
5905
|
+
{
|
|
5906
|
+
"name": "collapsed",
|
|
5907
|
+
"type": {
|
|
5908
|
+
"text": "boolean"
|
|
5909
|
+
},
|
|
5910
|
+
"default": "false",
|
|
5911
|
+
"description": "Whether the parent rail is in collapsed mode (labels hidden).",
|
|
5912
|
+
"fieldName": "collapsed",
|
|
5913
|
+
"inheritedFrom": {
|
|
5914
|
+
"name": "NavigationRailItem",
|
|
5915
|
+
"module": "src/navigation-rail/navigation-rail-item.ts"
|
|
5916
|
+
}
|
|
5917
|
+
},
|
|
5918
|
+
{
|
|
5919
|
+
"name": "href",
|
|
5920
|
+
"type": {
|
|
5921
|
+
"text": "string | undefined"
|
|
5922
|
+
},
|
|
5923
|
+
"description": "If provided, the item renders as a link.",
|
|
5924
|
+
"fieldName": "href",
|
|
5925
|
+
"inheritedFrom": {
|
|
5926
|
+
"name": "NavigationRailItem",
|
|
5927
|
+
"module": "src/navigation-rail/navigation-rail-item.ts"
|
|
5928
|
+
}
|
|
5929
|
+
},
|
|
5930
|
+
{
|
|
5931
|
+
"name": "target",
|
|
5932
|
+
"type": {
|
|
5933
|
+
"text": "string"
|
|
5934
|
+
},
|
|
5935
|
+
"default": "'_self'",
|
|
5936
|
+
"description": "Link target.",
|
|
5937
|
+
"fieldName": "target",
|
|
5938
|
+
"inheritedFrom": {
|
|
5939
|
+
"name": "NavigationRailItem",
|
|
5940
|
+
"module": "src/navigation-rail/navigation-rail-item.ts"
|
|
5941
|
+
}
|
|
5942
|
+
},
|
|
5943
|
+
{
|
|
5944
|
+
"name": "value",
|
|
5945
|
+
"type": {
|
|
5946
|
+
"text": "string | undefined"
|
|
5947
|
+
},
|
|
5948
|
+
"description": "Value used for identification when managing active state externally.",
|
|
5949
|
+
"fieldName": "value",
|
|
5950
|
+
"inheritedFrom": {
|
|
5951
|
+
"name": "NavigationRailItem",
|
|
5952
|
+
"module": "src/navigation-rail/navigation-rail-item.ts"
|
|
5953
|
+
}
|
|
5954
|
+
},
|
|
5955
|
+
{
|
|
5956
|
+
"name": "disabled-reason",
|
|
5957
|
+
"type": {
|
|
5958
|
+
"text": "string"
|
|
5959
|
+
},
|
|
5960
|
+
"default": "''",
|
|
5961
|
+
"description": "Reason the item is disabled (shown to screen readers).",
|
|
5962
|
+
"fieldName": "disabledReason",
|
|
5963
|
+
"inheritedFrom": {
|
|
5964
|
+
"name": "NavigationRailItem",
|
|
5965
|
+
"module": "src/navigation-rail/navigation-rail-item.ts"
|
|
5966
|
+
}
|
|
5967
|
+
},
|
|
5968
|
+
{
|
|
5969
|
+
"name": "throttleDelay",
|
|
5970
|
+
"type": {
|
|
5971
|
+
"text": "number | null"
|
|
5972
|
+
},
|
|
5973
|
+
"default": "null",
|
|
5974
|
+
"description": "Sets the delay for throttle in milliseconds. When null (default), no throttle is applied.",
|
|
5975
|
+
"fieldName": "throttleDelay",
|
|
5976
|
+
"inheritedFrom": {
|
|
5977
|
+
"name": "NavigationRailItem",
|
|
5978
|
+
"module": "src/navigation-rail/navigation-rail-item.ts"
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
]
|
|
5982
|
+
}
|
|
5983
|
+
},
|
|
5984
|
+
{
|
|
5985
|
+
"label": "Navigation Drawer",
|
|
5986
|
+
"tag": "wc-navigation-drawer",
|
|
5987
|
+
"rawTag": "navigation-drawer",
|
|
5988
|
+
"summary": "A side panel listing an app's destinations.",
|
|
5989
|
+
"overview": "<p>Navigation drawer holds <code>wc-navigation-drawer-item</code> destinations. Clicking an item makes\nit the active one and fires <code>change</code>.</p>\n<ul>\n <li><code>variant=\"standard\"</code> (default) sits in the page layout, next to the content.</li>\n <li><code>variant=\"modal\"</code> opens over the page with a scrim. It traps focus, closes on Escape,\n on a scrim click and after an item is chosen.</li>\n</ul>\n<p>Both variants show only while <code>open</code> is set.</p>",
|
|
5990
|
+
"slot": "header - Content above the items, after the headline.",
|
|
5991
|
+
"fires": "close - Dispatched when the drawer closes.",
|
|
5992
|
+
"cssprop": "--navigation-drawer-container-color - Background of the drawer. Defaults to `--color-surface-container-low`.",
|
|
5993
|
+
"example": "```html\n<wc-navigation-drawer open headline=\"Mail\">\n <wc-navigation-drawer-item active badge=\"24\">\n <wc-icon slot=\"icon\" name=\"inbox\"></wc-icon>\n Inbox\n </wc-navigation-drawer-item>\n <wc-navigation-drawer-item>\n <wc-icon slot=\"icon\" name=\"send\"></wc-icon>\n Sent\n </wc-navigation-drawer-item>\n</wc-navigation-drawer>\n```",
|
|
5994
|
+
"tags": "navigation",
|
|
5995
|
+
"customElement": {
|
|
5996
|
+
"kind": "class",
|
|
5997
|
+
"description": "",
|
|
5998
|
+
"cssProperties": [
|
|
5999
|
+
{
|
|
6000
|
+
"description": "Width of the drawer. Defaults to 22.5rem (360dp).",
|
|
6001
|
+
"name": "--navigation-drawer-width"
|
|
6002
|
+
},
|
|
6003
|
+
{
|
|
6004
|
+
"description": "Background of the drawer. Defaults to `--color-surface-container-low`.",
|
|
6005
|
+
"name": "--navigation-drawer-container-color"
|
|
6006
|
+
}
|
|
6007
|
+
],
|
|
6008
|
+
"slots": [
|
|
6009
|
+
{
|
|
6010
|
+
"description": "The drawer items. Other content, such as `wc-divider` or section titles, works too.",
|
|
6011
|
+
"name": ""
|
|
6012
|
+
},
|
|
6013
|
+
{
|
|
6014
|
+
"description": "Content above the items, after the headline.",
|
|
6015
|
+
"name": "header"
|
|
6016
|
+
}
|
|
6017
|
+
],
|
|
6018
|
+
"events": [
|
|
6019
|
+
{
|
|
6020
|
+
"type": {
|
|
6021
|
+
"text": "CustomEvent"
|
|
6022
|
+
}
|
|
6023
|
+
},
|
|
6024
|
+
{
|
|
6025
|
+
"type": {
|
|
6026
|
+
"text": "CustomEvent<{value: string | undefined, index: number, item: NavigationDrawerItem}>"
|
|
6027
|
+
},
|
|
6028
|
+
"description": "Dispatched when the user activates an item.",
|
|
6029
|
+
"name": "change"
|
|
6030
|
+
},
|
|
6031
|
+
{
|
|
6032
|
+
"type": {
|
|
6033
|
+
"text": "CustomEvent"
|
|
6034
|
+
},
|
|
6035
|
+
"description": "Dispatched when the drawer opens.",
|
|
6036
|
+
"name": "open"
|
|
6037
|
+
},
|
|
6038
|
+
{
|
|
6039
|
+
"type": {
|
|
6040
|
+
"text": "CustomEvent"
|
|
6041
|
+
},
|
|
6042
|
+
"description": "Dispatched when the drawer closes.",
|
|
6043
|
+
"name": "close"
|
|
6044
|
+
}
|
|
6045
|
+
],
|
|
6046
|
+
"attributes": [
|
|
6047
|
+
{
|
|
6048
|
+
"name": "open",
|
|
6049
|
+
"type": {
|
|
6050
|
+
"text": "boolean"
|
|
6051
|
+
},
|
|
6052
|
+
"default": "false",
|
|
6053
|
+
"description": "Whether the drawer is shown.",
|
|
6054
|
+
"fieldName": "open"
|
|
6055
|
+
},
|
|
6056
|
+
{
|
|
6057
|
+
"name": "variant",
|
|
6058
|
+
"type": {
|
|
6059
|
+
"text": "'standard' | 'modal'"
|
|
6060
|
+
},
|
|
6061
|
+
"default": "'standard'",
|
|
6062
|
+
"description": "`\"standard\"` sits in the layout; `\"modal\"` opens over the page with a scrim.",
|
|
6063
|
+
"fieldName": "variant"
|
|
6064
|
+
},
|
|
6065
|
+
{
|
|
6066
|
+
"name": "headline",
|
|
6067
|
+
"type": {
|
|
6068
|
+
"text": "string"
|
|
6069
|
+
},
|
|
6070
|
+
"default": "''",
|
|
6071
|
+
"description": "Title shown at the top of the drawer.",
|
|
6072
|
+
"fieldName": "headline"
|
|
6073
|
+
}
|
|
6074
|
+
],
|
|
6075
|
+
"superclass": {
|
|
6076
|
+
"name": "LitElement",
|
|
6077
|
+
"package": "lit"
|
|
6078
|
+
},
|
|
6079
|
+
"tagName": "wc-navigation-drawer",
|
|
6080
|
+
"customElement": true,
|
|
6081
|
+
"rawTag": {
|
|
6082
|
+
"name": "navigation-drawer",
|
|
6083
|
+
"description": ""
|
|
6084
|
+
}
|
|
6085
|
+
}
|
|
6086
|
+
},
|
|
6087
|
+
{
|
|
6088
|
+
"label": "Navigation Drawer Item",
|
|
6089
|
+
"tag": "wc-navigation-drawer-item",
|
|
6090
|
+
"rawTag": "navigation-drawer-item",
|
|
6091
|
+
"summary": "A destination in a navigation drawer.",
|
|
6092
|
+
"overview": "<p>A full-width row with an optional icon, a label and an optional badge. The active item gets\nthe pill-shaped active indicator. With <code>href</code> it renders a link, otherwise a button.</p>",
|
|
6093
|
+
"slot": "badge - Trailing content, such as a count. Overrides the `badge` attribute.",
|
|
6094
|
+
"example": "```html\n<wc-navigation-drawer-item active badge=\"24\">\n <wc-icon slot=\"icon\" name=\"inbox\"></wc-icon>\n Inbox\n</wc-navigation-drawer-item>\n```",
|
|
6095
|
+
"tags": "navigation",
|
|
6096
|
+
"customElement": {
|
|
6097
|
+
"kind": "class",
|
|
6098
|
+
"description": "",
|
|
6099
|
+
"slots": [
|
|
6100
|
+
{
|
|
6101
|
+
"description": "The label.",
|
|
6102
|
+
"name": ""
|
|
6103
|
+
},
|
|
6104
|
+
{
|
|
6105
|
+
"description": "Leading icon.",
|
|
6106
|
+
"name": "icon"
|
|
6107
|
+
},
|
|
6108
|
+
{
|
|
6109
|
+
"description": "Trailing content, such as a count. Overrides the `badge` attribute.",
|
|
6110
|
+
"name": "badge"
|
|
6111
|
+
}
|
|
6112
|
+
],
|
|
6113
|
+
"attributes": [
|
|
6114
|
+
{
|
|
6115
|
+
"name": "active",
|
|
6116
|
+
"type": {
|
|
6117
|
+
"text": "boolean"
|
|
6118
|
+
},
|
|
6119
|
+
"default": "false",
|
|
6120
|
+
"description": "Whether this item is the current destination.",
|
|
6121
|
+
"fieldName": "active"
|
|
6122
|
+
},
|
|
6123
|
+
{
|
|
6124
|
+
"name": "disabled",
|
|
6125
|
+
"type": {
|
|
6126
|
+
"text": "boolean"
|
|
6127
|
+
},
|
|
6128
|
+
"default": "false",
|
|
6129
|
+
"description": "Whether this item is disabled.",
|
|
6130
|
+
"fieldName": "disabled"
|
|
6131
|
+
},
|
|
6132
|
+
{
|
|
6133
|
+
"name": "href",
|
|
6134
|
+
"type": {
|
|
6135
|
+
"text": "string | undefined"
|
|
6136
|
+
},
|
|
6137
|
+
"description": "If provided, the item renders as a link.",
|
|
6138
|
+
"fieldName": "href"
|
|
6139
|
+
},
|
|
6140
|
+
{
|
|
6141
|
+
"name": "target",
|
|
6142
|
+
"type": {
|
|
6143
|
+
"text": "string"
|
|
6144
|
+
},
|
|
6145
|
+
"default": "'_self'",
|
|
6146
|
+
"description": "Link target.",
|
|
6147
|
+
"fieldName": "target"
|
|
6148
|
+
},
|
|
6149
|
+
{
|
|
6150
|
+
"name": "value",
|
|
6151
|
+
"type": {
|
|
6152
|
+
"text": "string | undefined"
|
|
6153
|
+
},
|
|
6154
|
+
"description": "Identifies the item in the drawer's `change` event.",
|
|
6155
|
+
"fieldName": "value"
|
|
6156
|
+
},
|
|
6157
|
+
{
|
|
6158
|
+
"name": "badge",
|
|
6159
|
+
"type": {
|
|
6160
|
+
"text": "string | undefined"
|
|
6161
|
+
},
|
|
6162
|
+
"description": "Short trailing text, such as an unread count.",
|
|
6163
|
+
"fieldName": "badge"
|
|
6164
|
+
}
|
|
6165
|
+
],
|
|
6166
|
+
"superclass": {
|
|
6167
|
+
"name": "LitElement",
|
|
6168
|
+
"package": "lit"
|
|
6169
|
+
},
|
|
6170
|
+
"tagName": "wc-navigation-drawer-item",
|
|
6171
|
+
"customElement": true,
|
|
6172
|
+
"rawTag": {
|
|
6173
|
+
"name": "navigation-drawer-item",
|
|
6174
|
+
"description": ""
|
|
6175
|
+
}
|
|
6176
|
+
}
|
|
6177
|
+
},
|
|
6178
|
+
{
|
|
6179
|
+
"label": "Navigation Rail",
|
|
6180
|
+
"tag": "wc-navigation-rail",
|
|
6181
|
+
"rawTag": "navigation-rail",
|
|
6182
|
+
"summary": "A vertical side navigation for medium-sized screens,.",
|
|
6183
|
+
"overview": "<p>Navigation rail provides access to primary destinations in an app using icons—with or without labels—on a vertical rail.</p>\n<p>Use navigation rail on medium-sized screens (tablets) with 3–7 destinations.</p>",
|
|
6184
|
+
"slot": "footer - Content pinned to the bottom of the rail.",
|
|
6185
|
+
"cssprop": "--nav-rail-active-label-color - Color of active labels. Defaults to on-surface.",
|
|
6186
|
+
"example": "```html\n<wc-navigation-rail>\n <wc-navigation-rail-item active>\n <wc-icon slot=\"icon\" name=\"home\"></wc-icon>\n Home\n </wc-navigation-rail-item>\n <wc-navigation-rail-item>\n <wc-icon slot=\"icon\" name=\"search\"></wc-icon>\n Search\n </wc-navigation-rail-item>\n</wc-navigation-rail>\n```",
|
|
6187
|
+
"tags": "navigation",
|
|
6188
|
+
"customElement": {
|
|
6189
|
+
"kind": "class",
|
|
6190
|
+
"description": "",
|
|
6191
|
+
"cssProperties": [
|
|
6192
|
+
{
|
|
6193
|
+
"description": "Width of the rail container. Defaults to 5rem (80dp).",
|
|
6194
|
+
"name": "--nav-rail-width"
|
|
6195
|
+
},
|
|
6196
|
+
{
|
|
6197
|
+
"description": "Background color of the rail. Defaults to surface color.",
|
|
6198
|
+
"name": "--nav-rail-container-color"
|
|
6199
|
+
},
|
|
6200
|
+
{
|
|
6201
|
+
"description": "Color of the active indicator. Defaults to secondary-container.",
|
|
6202
|
+
"name": "--nav-rail-indicator-color"
|
|
6203
|
+
},
|
|
6204
|
+
{
|
|
6205
|
+
"description": "Shape (border-radius) of the active indicator. Defaults to full (pill).",
|
|
6206
|
+
"name": "--nav-rail-indicator-shape"
|
|
6207
|
+
},
|
|
6208
|
+
{
|
|
6209
|
+
"description": "Width of the active indicator. Defaults to 3.5rem (56dp).",
|
|
6210
|
+
"name": "--nav-rail-indicator-width"
|
|
6211
|
+
},
|
|
6212
|
+
{
|
|
6213
|
+
"description": "Height of the active indicator. Defaults to 2rem (32dp).",
|
|
6214
|
+
"name": "--nav-rail-indicator-height"
|
|
6215
|
+
},
|
|
6216
|
+
{
|
|
6217
|
+
"description": "Color of inactive icons. Defaults to on-surface-variant.",
|
|
6218
|
+
"name": "--nav-rail-inactive-icon-color"
|
|
6219
|
+
},
|
|
6220
|
+
{
|
|
6221
|
+
"description": "Color of active icons. Defaults to on-secondary-container.",
|
|
6222
|
+
"name": "--nav-rail-active-icon-color"
|
|
6223
|
+
},
|
|
6224
|
+
{
|
|
6225
|
+
"description": "Color of inactive labels. Defaults to on-surface-variant.",
|
|
6226
|
+
"name": "--nav-rail-inactive-label-color"
|
|
6227
|
+
},
|
|
6228
|
+
{
|
|
6229
|
+
"description": "Color of active labels. Defaults to on-surface.",
|
|
6230
|
+
"name": "--nav-rail-active-label-color"
|
|
6231
|
+
}
|
|
6232
|
+
],
|
|
6233
|
+
"slots": [
|
|
6234
|
+
{
|
|
6235
|
+
"description": "Content displayed above the rail items.",
|
|
6236
|
+
"name": "header"
|
|
6237
|
+
},
|
|
5720
6238
|
{
|
|
5721
6239
|
"description": "Content pinned to the bottom of the rail.",
|
|
5722
6240
|
"name": "footer"
|
|
@@ -6087,14 +6605,6 @@
|
|
|
6087
6605
|
},
|
|
6088
6606
|
"fieldName": "value"
|
|
6089
6607
|
},
|
|
6090
|
-
{
|
|
6091
|
-
"name": "name",
|
|
6092
|
-
"type": {
|
|
6093
|
-
"text": "string"
|
|
6094
|
-
},
|
|
6095
|
-
"default": "''",
|
|
6096
|
-
"fieldName": "name"
|
|
6097
|
-
},
|
|
6098
6608
|
{
|
|
6099
6609
|
"name": "placeholder",
|
|
6100
6610
|
"type": {
|
|
@@ -6213,12 +6723,16 @@
|
|
|
6213
6723
|
"default": "false",
|
|
6214
6724
|
"fieldName": "stepper"
|
|
6215
6725
|
},
|
|
6726
|
+
{
|
|
6727
|
+
"name": "name",
|
|
6728
|
+
"fieldName": "name",
|
|
6729
|
+
"inheritedFrom": {
|
|
6730
|
+
"name": "BaseInput",
|
|
6731
|
+
"module": "src/input/BaseInput.ts"
|
|
6732
|
+
}
|
|
6733
|
+
},
|
|
6216
6734
|
{
|
|
6217
6735
|
"name": "disabled",
|
|
6218
|
-
"type": {
|
|
6219
|
-
"text": "boolean"
|
|
6220
|
-
},
|
|
6221
|
-
"default": "false",
|
|
6222
6736
|
"fieldName": "disabled",
|
|
6223
6737
|
"inheritedFrom": {
|
|
6224
6738
|
"name": "BaseInput",
|
|
@@ -6441,41 +6955,137 @@
|
|
|
6441
6955
|
"description": "",
|
|
6442
6956
|
"cssProperties": [
|
|
6443
6957
|
{
|
|
6444
|
-
"description": "Background color of the popover content. Defaults to `var(--color-surface-container)`.",
|
|
6445
|
-
"name": "--popover-content-background"
|
|
6958
|
+
"description": "Background color of the popover content. Defaults to `var(--color-surface-container)`.",
|
|
6959
|
+
"name": "--popover-content-background"
|
|
6960
|
+
},
|
|
6961
|
+
{
|
|
6962
|
+
"description": "Padding of the popover content. Defaults to `var(--spacing-200)`.",
|
|
6963
|
+
"name": "--popover-content-padding"
|
|
6964
|
+
},
|
|
6965
|
+
{
|
|
6966
|
+
"description": "Border radius of the popover content. Defaults to `var(--shape-corner-small)`.",
|
|
6967
|
+
"name": "--popover-content-border-radius"
|
|
6968
|
+
},
|
|
6969
|
+
{
|
|
6970
|
+
"description": "Minimum width of the popover content. Defaults to `10rem`.",
|
|
6971
|
+
"name": "--popover-content-min-width"
|
|
6972
|
+
}
|
|
6973
|
+
],
|
|
6974
|
+
"attributes": [
|
|
6975
|
+
{
|
|
6976
|
+
"name": "open",
|
|
6977
|
+
"type": {
|
|
6978
|
+
"text": "boolean"
|
|
6979
|
+
},
|
|
6980
|
+
"default": "false",
|
|
6981
|
+
"description": "Whether the popover content is visible.",
|
|
6982
|
+
"fieldName": "open"
|
|
6983
|
+
}
|
|
6984
|
+
],
|
|
6985
|
+
"superclass": {
|
|
6986
|
+
"name": "LitElement",
|
|
6987
|
+
"package": "lit"
|
|
6988
|
+
},
|
|
6989
|
+
"tagName": "wc-popover-content",
|
|
6990
|
+
"customElement": true,
|
|
6991
|
+
"rawTag": {
|
|
6992
|
+
"name": "popover-content",
|
|
6993
|
+
"description": ""
|
|
6994
|
+
}
|
|
6995
|
+
}
|
|
6996
|
+
},
|
|
6997
|
+
{
|
|
6998
|
+
"label": "Radio Group",
|
|
6999
|
+
"tag": "wc-radio-group",
|
|
7000
|
+
"rawTag": "radio-group",
|
|
7001
|
+
"summary": "Groups radios under one label, one name and one value.",
|
|
7002
|
+
"overview": "<p>Radio group gives its <code>wc-radio</code> children a shared <code>name</code> (its own, or a\ngenerated one), so only one can be checked. Its <code>value</code> is the value of the checked radio,\nand setting it checks the matching radio.</p>\n<p>The radios stay form-associated, so the group submits once, through the checked radio.</p>",
|
|
7003
|
+
"fires": "change - Dispatched when the user checks a different radio. The group swallows the radios' own `change` events.",
|
|
7004
|
+
"cssprop": "--radio-group-gap - Space between radios. Defaults to `--spacing-100`.",
|
|
7005
|
+
"example": "```html\n<wc-radio-group label=\"Size\" name=\"size\" value=\"md\">\n <wc-radio value=\"sm\" label=\"Small\"></wc-radio>\n <wc-radio value=\"md\" label=\"Medium\"></wc-radio>\n <wc-radio value=\"lg\" label=\"Large\"></wc-radio>\n</wc-radio-group>\n```",
|
|
7006
|
+
"tags": "input, form",
|
|
7007
|
+
"customElement": {
|
|
7008
|
+
"kind": "class",
|
|
7009
|
+
"description": "",
|
|
7010
|
+
"cssProperties": [
|
|
7011
|
+
{
|
|
7012
|
+
"description": "Space between radios. Defaults to `--spacing-100`.",
|
|
7013
|
+
"name": "--radio-group-gap"
|
|
7014
|
+
}
|
|
7015
|
+
],
|
|
7016
|
+
"events": [
|
|
7017
|
+
{
|
|
7018
|
+
"type": {
|
|
7019
|
+
"text": "CustomEvent<{value: string}>"
|
|
7020
|
+
},
|
|
7021
|
+
"description": "Dispatched when the user checks a different radio. The group swallows the radios' own `change` events.",
|
|
7022
|
+
"name": "change"
|
|
7023
|
+
}
|
|
7024
|
+
],
|
|
7025
|
+
"attributes": [
|
|
7026
|
+
{
|
|
7027
|
+
"name": "name",
|
|
7028
|
+
"type": {
|
|
7029
|
+
"text": "string"
|
|
7030
|
+
},
|
|
7031
|
+
"default": "''",
|
|
7032
|
+
"description": "Name given to every radio in the group, and submitted with forms. Generated when empty.",
|
|
7033
|
+
"fieldName": "name"
|
|
6446
7034
|
},
|
|
6447
7035
|
{
|
|
6448
|
-
"
|
|
6449
|
-
"
|
|
7036
|
+
"name": "value",
|
|
7037
|
+
"type": {
|
|
7038
|
+
"text": "string"
|
|
7039
|
+
},
|
|
7040
|
+
"default": "''",
|
|
7041
|
+
"description": "Value of the checked radio. Setting it checks the radio with that value.",
|
|
7042
|
+
"fieldName": "value"
|
|
6450
7043
|
},
|
|
6451
7044
|
{
|
|
6452
|
-
"
|
|
6453
|
-
"
|
|
7045
|
+
"name": "label",
|
|
7046
|
+
"type": {
|
|
7047
|
+
"text": "string"
|
|
7048
|
+
},
|
|
7049
|
+
"default": "''",
|
|
7050
|
+
"description": "Group label, shown above the radios and used as the accessible name.",
|
|
7051
|
+
"fieldName": "label"
|
|
6454
7052
|
},
|
|
6455
7053
|
{
|
|
6456
|
-
"
|
|
6457
|
-
"
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
7054
|
+
"name": "orientation",
|
|
7055
|
+
"type": {
|
|
7056
|
+
"text": "'vertical' | 'horizontal'"
|
|
7057
|
+
},
|
|
7058
|
+
"default": "'vertical'",
|
|
7059
|
+
"description": "Lays the radios out in a column (default) or a row.",
|
|
7060
|
+
"fieldName": "orientation"
|
|
7061
|
+
},
|
|
6461
7062
|
{
|
|
6462
|
-
"name": "
|
|
7063
|
+
"name": "disabled",
|
|
6463
7064
|
"type": {
|
|
6464
7065
|
"text": "boolean"
|
|
6465
7066
|
},
|
|
6466
7067
|
"default": "false",
|
|
6467
|
-
"description": "
|
|
6468
|
-
"fieldName": "
|
|
7068
|
+
"description": "Disables every radio in the group.",
|
|
7069
|
+
"fieldName": "disabled"
|
|
7070
|
+
},
|
|
7071
|
+
{
|
|
7072
|
+
"name": "required",
|
|
7073
|
+
"type": {
|
|
7074
|
+
"text": "boolean"
|
|
7075
|
+
},
|
|
7076
|
+
"default": "false",
|
|
7077
|
+
"description": "Marks the group as required.",
|
|
7078
|
+
"fieldName": "required"
|
|
6469
7079
|
}
|
|
6470
7080
|
],
|
|
6471
7081
|
"superclass": {
|
|
6472
7082
|
"name": "LitElement",
|
|
6473
7083
|
"package": "lit"
|
|
6474
7084
|
},
|
|
6475
|
-
"tagName": "wc-
|
|
7085
|
+
"tagName": "wc-radio-group",
|
|
6476
7086
|
"customElement": true,
|
|
6477
7087
|
"rawTag": {
|
|
6478
|
-
"name": "
|
|
7088
|
+
"name": "radio-group",
|
|
6479
7089
|
"description": ""
|
|
6480
7090
|
}
|
|
6481
7091
|
}
|
|
@@ -6662,7 +7272,7 @@
|
|
|
6662
7272
|
"summary": "An individual segment within a segmented button group.",
|
|
6663
7273
|
"overview": "<p>Segmented buttons help people select options, switch views, or sort elements. They are used within a <code>wc-segmented-button-group</code>.</p>",
|
|
6664
7274
|
"cssprop": "--segmented-button-disabled-opacity: Opacity when the segment is disabled.",
|
|
6665
|
-
"fires": "segmented-button--change -
|
|
7275
|
+
"fires": "segmented-button--change - Deprecated alias of `change`, fired alongside it.",
|
|
6666
7276
|
"example": "```html\n<wc-segmented-button-group>\n <wc-segmented-button value=\"day\">Day</wc-segmented-button>\n <wc-segmented-button value=\"week\" selected>Week</wc-segmented-button>\n <wc-segmented-button value=\"month\">Month</wc-segmented-button>\n</wc-segmented-button-group>\n```",
|
|
6667
7277
|
"tags": "controls",
|
|
6668
7278
|
"customElement": {
|
|
@@ -6695,12 +7305,19 @@
|
|
|
6695
7305
|
}
|
|
6696
7306
|
],
|
|
6697
7307
|
"events": [
|
|
7308
|
+
{
|
|
7309
|
+
"name": "change",
|
|
7310
|
+
"type": {
|
|
7311
|
+
"text": "CustomEvent"
|
|
7312
|
+
},
|
|
7313
|
+
"description": "Dispatched when the segment is activated. Detail: `{ value, selected, originalEvent }`, where `selected` is the requested state. Inside a `wc-segmented-button-group` the group swallows it and fires its own `change` instead."
|
|
7314
|
+
},
|
|
6698
7315
|
{
|
|
6699
7316
|
"name": "segmented-button--change",
|
|
6700
7317
|
"type": {
|
|
6701
7318
|
"text": "CustomEvent"
|
|
6702
7319
|
},
|
|
6703
|
-
"description": "
|
|
7320
|
+
"description": "Deprecated alias of `change`, fired alongside it."
|
|
6704
7321
|
}
|
|
6705
7322
|
],
|
|
6706
7323
|
"attributes": [
|
|
@@ -6817,7 +7434,8 @@
|
|
|
6817
7434
|
"tag": "wc-select",
|
|
6818
7435
|
"rawTag": "select",
|
|
6819
7436
|
"summary": "A dropdown select component supporting single and multi-select with optional typeahead search.",
|
|
6820
|
-
"overview": "Select builds on wc-field and wc-menu to provide a fully-featured dropdown picker.\n\n- Single and multi-select modes\n- Client-side typeahead with `search=\"contains\"`\n- Server-side typeahead with `search=\"managed\"`\n- Multi-select chips display",
|
|
7437
|
+
"overview": "Select builds on wc-field and wc-menu to provide a fully-featured dropdown picker.\n\n- Single and multi-select modes\n- Client-side typeahead with `search=\"contains\"`\n- Server-side typeahead with `search=\"managed\"`\n- Multi-select chips display\n- Form-associated: submits the value under `name` (one entry per value with `multiple`)",
|
|
7438
|
+
"fires": "select-search - Dispatched as the user types when `search=\"managed\"`.",
|
|
6821
7439
|
"example": "```html\n<wc-select label=\"Fruit\" placeholder=\"Pick a fruit...\">\n <wc-option value=\"apple\">Apple</wc-option>\n <wc-option value=\"banana\">Banana</wc-option>\n</wc-select>\n```",
|
|
6822
7440
|
"tags": "form",
|
|
6823
7441
|
"customElement": {
|
|
@@ -6827,14 +7445,16 @@
|
|
|
6827
7445
|
{
|
|
6828
7446
|
"name": "change",
|
|
6829
7447
|
"type": {
|
|
6830
|
-
"text": "CustomEvent"
|
|
6831
|
-
}
|
|
7448
|
+
"text": "CustomEvent<{value: string}>"
|
|
7449
|
+
},
|
|
7450
|
+
"description": "Dispatched when the selection changes."
|
|
6832
7451
|
},
|
|
6833
7452
|
{
|
|
6834
7453
|
"name": "select-search",
|
|
6835
7454
|
"type": {
|
|
6836
|
-
"text": "CustomEvent"
|
|
6837
|
-
}
|
|
7455
|
+
"text": "CustomEvent<{value: string}>"
|
|
7456
|
+
},
|
|
7457
|
+
"description": "Dispatched as the user types when `search=\"managed\"`."
|
|
6838
7458
|
}
|
|
6839
7459
|
],
|
|
6840
7460
|
"attributes": [
|
|
@@ -6942,12 +7562,16 @@
|
|
|
6942
7562
|
"default": "''",
|
|
6943
7563
|
"fieldName": "warningText"
|
|
6944
7564
|
},
|
|
7565
|
+
{
|
|
7566
|
+
"name": "name",
|
|
7567
|
+
"fieldName": "name",
|
|
7568
|
+
"inheritedFrom": {
|
|
7569
|
+
"name": "BaseInput",
|
|
7570
|
+
"module": "src/input/BaseInput.ts"
|
|
7571
|
+
}
|
|
7572
|
+
},
|
|
6945
7573
|
{
|
|
6946
7574
|
"name": "disabled",
|
|
6947
|
-
"type": {
|
|
6948
|
-
"text": "boolean"
|
|
6949
|
-
},
|
|
6950
|
-
"default": "false",
|
|
6951
7575
|
"fieldName": "disabled",
|
|
6952
7576
|
"inheritedFrom": {
|
|
6953
7577
|
"name": "BaseInput",
|
|
@@ -7405,8 +8029,10 @@
|
|
|
7405
8029
|
"tag": "wc-slider",
|
|
7406
8030
|
"rawTag": "slider",
|
|
7407
8031
|
"summary": "Sliders allow users to make selections from a range of values.",
|
|
8032
|
+
"overview": "<p>The slider is form-associated: its <code>value</code> is submitted under its <code>name</code>,\nand <code>form.reset()</code> restores the starting value.</p>",
|
|
7408
8033
|
"fires": "change - Dispatched when the slider interaction ends.",
|
|
7409
8034
|
"example": "```html\n<wc-slider min=\"0\" max=\"100\" value=\"50\"></wc-slider>\n```",
|
|
8035
|
+
"tags": "input, form",
|
|
7410
8036
|
"customElement": {
|
|
7411
8037
|
"kind": "class",
|
|
7412
8038
|
"description": "",
|
|
@@ -7463,15 +8089,6 @@
|
|
|
7463
8089
|
"description": "The step increment for the slider.",
|
|
7464
8090
|
"fieldName": "step"
|
|
7465
8091
|
},
|
|
7466
|
-
{
|
|
7467
|
-
"name": "disabled",
|
|
7468
|
-
"type": {
|
|
7469
|
-
"text": "boolean"
|
|
7470
|
-
},
|
|
7471
|
-
"default": "false",
|
|
7472
|
-
"description": "Whether the slider is disabled.",
|
|
7473
|
-
"fieldName": "disabled"
|
|
7474
|
-
},
|
|
7475
8092
|
{
|
|
7476
8093
|
"name": "labeled",
|
|
7477
8094
|
"type": {
|
|
@@ -7489,6 +8106,32 @@
|
|
|
7489
8106
|
"default": "false",
|
|
7490
8107
|
"description": "Whether to show the current value beside the slider.",
|
|
7491
8108
|
"fieldName": "showValue"
|
|
8109
|
+
},
|
|
8110
|
+
{
|
|
8111
|
+
"name": "name",
|
|
8112
|
+
"fieldName": "name",
|
|
8113
|
+
"inheritedFrom": {
|
|
8114
|
+
"name": "mixinFormAssociated",
|
|
8115
|
+
"module": "src/__internal/mixins/form-associated.ts"
|
|
8116
|
+
}
|
|
8117
|
+
},
|
|
8118
|
+
{
|
|
8119
|
+
"name": "disabled",
|
|
8120
|
+
"fieldName": "disabled",
|
|
8121
|
+
"inheritedFrom": {
|
|
8122
|
+
"name": "mixinFormAssociated",
|
|
8123
|
+
"module": "src/__internal/mixins/form-associated.ts"
|
|
8124
|
+
}
|
|
8125
|
+
}
|
|
8126
|
+
],
|
|
8127
|
+
"mixins": [
|
|
8128
|
+
{
|
|
8129
|
+
"name": "mixinFormAssociated",
|
|
8130
|
+
"package": "@/__internal/mixins/form-associated.js"
|
|
8131
|
+
},
|
|
8132
|
+
{
|
|
8133
|
+
"name": "mixinElementInternals",
|
|
8134
|
+
"package": "@/__internal/mixins/element-internals.js"
|
|
7492
8135
|
}
|
|
7493
8136
|
],
|
|
7494
8137
|
"superclass": {
|
|
@@ -7906,10 +8549,10 @@
|
|
|
7906
8549
|
"tag": "wc-switch",
|
|
7907
8550
|
"rawTag": "switch",
|
|
7908
8551
|
"summary": "Captures boolean input with an on/off switch interaction.",
|
|
7909
|
-
"overview": "<p>Toggles are used to enable or disable a single option. They provide immediate feedback about whether an option is active or inactive.</p>",
|
|
8552
|
+
"overview": "<p>Toggles are used to enable or disable a single option. They provide immediate feedback about whether an option is active or inactive.</p>\n<p>The switch is form-associated: when <code>checked</code>, it submits <code>on</code> under its <code>name</code>.</p>",
|
|
7910
8553
|
"cssprop": "--switch-handle-color: Color of the switch handle.",
|
|
7911
8554
|
"fires": "focus - Dispatched when the switch receives focus.",
|
|
7912
|
-
"example": "```html\n<wc-switch
|
|
8555
|
+
"example": "```html\n<wc-switch checked label=\"Wi-Fi\"></wc-switch>\n```",
|
|
7913
8556
|
"tags": "input, form",
|
|
7914
8557
|
"customElement": {
|
|
7915
8558
|
"kind": "class",
|
|
@@ -7945,7 +8588,7 @@
|
|
|
7945
8588
|
"type": {
|
|
7946
8589
|
"text": "CustomEvent"
|
|
7947
8590
|
},
|
|
7948
|
-
"description": "Dispatched when the switch value
|
|
8591
|
+
"description": "Dispatched when the switch is toggled. Detail: `{ checked, value, originalEvent }`.",
|
|
7949
8592
|
"name": "change"
|
|
7950
8593
|
},
|
|
7951
8594
|
{
|
|
@@ -7965,21 +8608,21 @@
|
|
|
7965
8608
|
],
|
|
7966
8609
|
"attributes": [
|
|
7967
8610
|
{
|
|
7968
|
-
"name": "
|
|
8611
|
+
"name": "checked",
|
|
7969
8612
|
"type": {
|
|
7970
8613
|
"text": "boolean"
|
|
7971
8614
|
},
|
|
7972
8615
|
"default": "false",
|
|
7973
|
-
"
|
|
8616
|
+
"description": "Whether the switch is on.",
|
|
8617
|
+
"fieldName": "checked"
|
|
7974
8618
|
},
|
|
7975
8619
|
{
|
|
7976
|
-
"name": "
|
|
8620
|
+
"name": "value",
|
|
7977
8621
|
"type": {
|
|
7978
|
-
"text": "
|
|
8622
|
+
"text": "boolean"
|
|
7979
8623
|
},
|
|
7980
|
-
"
|
|
7981
|
-
"
|
|
7982
|
-
"fieldName": "name"
|
|
8624
|
+
"deprecated": "Use `checked`. Kept as an alias of `checked`.",
|
|
8625
|
+
"fieldName": "value"
|
|
7983
8626
|
},
|
|
7984
8627
|
{
|
|
7985
8628
|
"name": "label",
|
|
@@ -8000,26 +8643,25 @@
|
|
|
8000
8643
|
"fieldName": "rounded"
|
|
8001
8644
|
},
|
|
8002
8645
|
{
|
|
8003
|
-
"name": "
|
|
8646
|
+
"name": "with-icon",
|
|
8004
8647
|
"type": {
|
|
8005
8648
|
"text": "boolean"
|
|
8006
8649
|
},
|
|
8007
8650
|
"default": "false",
|
|
8008
|
-
"fieldName": "
|
|
8009
|
-
"description": "If true, required icon is shown. Defaults to `false`.",
|
|
8010
|
-
"inheritedFrom": {
|
|
8011
|
-
"name": "BaseInput",
|
|
8012
|
-
"module": "src/input/BaseInput.ts"
|
|
8013
|
-
}
|
|
8651
|
+
"fieldName": "withIcon"
|
|
8014
8652
|
},
|
|
8015
8653
|
{
|
|
8016
|
-
"name": "
|
|
8654
|
+
"name": "configAria",
|
|
8017
8655
|
"type": {
|
|
8018
|
-
"text": "
|
|
8656
|
+
"text": "Record<string, string>"
|
|
8019
8657
|
},
|
|
8020
|
-
"default": "
|
|
8021
|
-
"
|
|
8022
|
-
"
|
|
8658
|
+
"default": "{}",
|
|
8659
|
+
"description": "Configuration object for aria attributes.",
|
|
8660
|
+
"fieldName": "configAria"
|
|
8661
|
+
},
|
|
8662
|
+
{
|
|
8663
|
+
"name": "name",
|
|
8664
|
+
"fieldName": "name",
|
|
8023
8665
|
"inheritedFrom": {
|
|
8024
8666
|
"name": "BaseInput",
|
|
8025
8667
|
"module": "src/input/BaseInput.ts"
|
|
@@ -8027,33 +8669,35 @@
|
|
|
8027
8669
|
},
|
|
8028
8670
|
{
|
|
8029
8671
|
"name": "disabled",
|
|
8030
|
-
"type": {
|
|
8031
|
-
"text": "boolean"
|
|
8032
|
-
},
|
|
8033
|
-
"default": "false",
|
|
8034
8672
|
"fieldName": "disabled",
|
|
8035
|
-
"description": "If true, the user cannot interact with the toggle. Defaults to `false`.",
|
|
8036
8673
|
"inheritedFrom": {
|
|
8037
8674
|
"name": "BaseInput",
|
|
8038
8675
|
"module": "src/input/BaseInput.ts"
|
|
8039
8676
|
}
|
|
8040
8677
|
},
|
|
8041
8678
|
{
|
|
8042
|
-
"name": "
|
|
8679
|
+
"name": "readonly",
|
|
8043
8680
|
"type": {
|
|
8044
8681
|
"text": "boolean"
|
|
8045
8682
|
},
|
|
8046
8683
|
"default": "false",
|
|
8047
|
-
"fieldName": "
|
|
8684
|
+
"fieldName": "readonly",
|
|
8685
|
+
"inheritedFrom": {
|
|
8686
|
+
"name": "BaseInput",
|
|
8687
|
+
"module": "src/input/BaseInput.ts"
|
|
8688
|
+
}
|
|
8048
8689
|
},
|
|
8049
8690
|
{
|
|
8050
|
-
"name": "
|
|
8691
|
+
"name": "required",
|
|
8051
8692
|
"type": {
|
|
8052
|
-
"text": "
|
|
8693
|
+
"text": "boolean"
|
|
8053
8694
|
},
|
|
8054
|
-
"default": "
|
|
8055
|
-
"
|
|
8056
|
-
"
|
|
8695
|
+
"default": "false",
|
|
8696
|
+
"fieldName": "required",
|
|
8697
|
+
"inheritedFrom": {
|
|
8698
|
+
"name": "BaseInput",
|
|
8699
|
+
"module": "src/input/BaseInput.ts"
|
|
8700
|
+
}
|
|
8057
8701
|
},
|
|
8058
8702
|
{
|
|
8059
8703
|
"name": "skeleton",
|
|
@@ -8425,11 +9069,28 @@
|
|
|
8425
9069
|
"rawTag": "tabs",
|
|
8426
9070
|
"summary": "Container for tab components.",
|
|
8427
9071
|
"overview": "<p>Tabs holds the tab buttons and manages their layout.</p>",
|
|
9072
|
+
"fires": "tab-click - Deprecated alias of `change`, fired alongside it.",
|
|
8428
9073
|
"example": "```html\n<wc-tabs>\n <wc-tab active>Tab 1</wc-tab>\n <wc-tab>Tab 2</wc-tab>\n</wc-tabs>\n```",
|
|
8429
9074
|
"tags": "navigation",
|
|
8430
9075
|
"customElement": {
|
|
8431
9076
|
"kind": "class",
|
|
8432
9077
|
"description": "",
|
|
9078
|
+
"events": [
|
|
9079
|
+
{
|
|
9080
|
+
"type": {
|
|
9081
|
+
"text": "CustomEvent<{index: number, value: string}>"
|
|
9082
|
+
},
|
|
9083
|
+
"description": "Dispatched when the user activates a tab.",
|
|
9084
|
+
"name": "change"
|
|
9085
|
+
},
|
|
9086
|
+
{
|
|
9087
|
+
"type": {
|
|
9088
|
+
"text": "CustomEvent<{index: number, value: string}>"
|
|
9089
|
+
},
|
|
9090
|
+
"description": "Deprecated alias of `change`, fired alongside it.",
|
|
9091
|
+
"name": "tab-click"
|
|
9092
|
+
}
|
|
9093
|
+
],
|
|
8433
9094
|
"attributes": [
|
|
8434
9095
|
{
|
|
8435
9096
|
"name": "variant",
|
|
@@ -8466,16 +9127,25 @@
|
|
|
8466
9127
|
"rawTag": "tag",
|
|
8467
9128
|
"summary": "Tag component for displaying labels or values with optional dismiss functionality.",
|
|
8468
9129
|
"tags": "display",
|
|
9130
|
+
"fires": "tag--dismiss - Deprecated alias of `dismiss`, fired alongside it.",
|
|
8469
9131
|
"example": "```html\n<wc-tag color=\"red\">Tag</wc-tag>\n```",
|
|
8470
9132
|
"customElement": {
|
|
8471
9133
|
"kind": "class",
|
|
8472
9134
|
"description": "",
|
|
8473
9135
|
"events": [
|
|
9136
|
+
{
|
|
9137
|
+
"name": "dismiss",
|
|
9138
|
+
"type": {
|
|
9139
|
+
"text": "CustomEvent"
|
|
9140
|
+
},
|
|
9141
|
+
"description": "Dispatched when the dismiss button is clicked."
|
|
9142
|
+
},
|
|
8474
9143
|
{
|
|
8475
9144
|
"name": "tag--dismiss",
|
|
8476
9145
|
"type": {
|
|
8477
9146
|
"text": "CustomEvent"
|
|
8478
|
-
}
|
|
9147
|
+
},
|
|
9148
|
+
"description": "Deprecated alias of `dismiss`, fired alongside it."
|
|
8479
9149
|
}
|
|
8480
9150
|
],
|
|
8481
9151
|
"attributes": [
|
|
@@ -8511,9 +9181,10 @@
|
|
|
8511
9181
|
{
|
|
8512
9182
|
"name": "size",
|
|
8513
9183
|
"type": {
|
|
8514
|
-
"text": "'sm' | 'md' | undefined"
|
|
9184
|
+
"text": "'sm' | 'md' | 'lg' | undefined"
|
|
8515
9185
|
},
|
|
8516
9186
|
"default": "'md'",
|
|
9187
|
+
"description": "Tag size. Possible values are `\"sm\"`, `\"md\"`, `\"lg\"`. Defaults to `\"md\"`.",
|
|
8517
9188
|
"fieldName": "size"
|
|
8518
9189
|
}
|
|
8519
9190
|
],
|
|
@@ -8548,14 +9219,6 @@
|
|
|
8548
9219
|
"default": "''",
|
|
8549
9220
|
"fieldName": "value"
|
|
8550
9221
|
},
|
|
8551
|
-
{
|
|
8552
|
-
"name": "name",
|
|
8553
|
-
"type": {
|
|
8554
|
-
"text": "string"
|
|
8555
|
-
},
|
|
8556
|
-
"default": "''",
|
|
8557
|
-
"fieldName": "name"
|
|
8558
|
-
},
|
|
8559
9222
|
{
|
|
8560
9223
|
"name": "placeholder",
|
|
8561
9224
|
"type": {
|
|
@@ -8661,12 +9324,16 @@
|
|
|
8661
9324
|
"default": "'3'",
|
|
8662
9325
|
"fieldName": "rows"
|
|
8663
9326
|
},
|
|
9327
|
+
{
|
|
9328
|
+
"name": "name",
|
|
9329
|
+
"fieldName": "name",
|
|
9330
|
+
"inheritedFrom": {
|
|
9331
|
+
"name": "BaseInput",
|
|
9332
|
+
"module": "src/input/BaseInput.ts"
|
|
9333
|
+
}
|
|
9334
|
+
},
|
|
8664
9335
|
{
|
|
8665
9336
|
"name": "disabled",
|
|
8666
|
-
"type": {
|
|
8667
|
-
"text": "boolean"
|
|
8668
|
-
},
|
|
8669
|
-
"default": "false",
|
|
8670
9337
|
"fieldName": "disabled",
|
|
8671
9338
|
"inheritedFrom": {
|
|
8672
9339
|
"name": "BaseInput",
|
|
@@ -8795,14 +9462,6 @@
|
|
|
8795
9462
|
"default": "''",
|
|
8796
9463
|
"fieldName": "value"
|
|
8797
9464
|
},
|
|
8798
|
-
{
|
|
8799
|
-
"name": "name",
|
|
8800
|
-
"type": {
|
|
8801
|
-
"text": "string"
|
|
8802
|
-
},
|
|
8803
|
-
"default": "''",
|
|
8804
|
-
"fieldName": "name"
|
|
8805
|
-
},
|
|
8806
9465
|
{
|
|
8807
9466
|
"name": "placeholder",
|
|
8808
9467
|
"type": {
|
|
@@ -8900,12 +9559,16 @@
|
|
|
8900
9559
|
"default": "''",
|
|
8901
9560
|
"fieldName": "warningText"
|
|
8902
9561
|
},
|
|
9562
|
+
{
|
|
9563
|
+
"name": "name",
|
|
9564
|
+
"fieldName": "name",
|
|
9565
|
+
"inheritedFrom": {
|
|
9566
|
+
"name": "BaseInput",
|
|
9567
|
+
"module": "src/input/BaseInput.ts"
|
|
9568
|
+
}
|
|
9569
|
+
},
|
|
8903
9570
|
{
|
|
8904
9571
|
"name": "disabled",
|
|
8905
|
-
"type": {
|
|
8906
|
-
"text": "boolean"
|
|
8907
|
-
},
|
|
8908
|
-
"default": "false",
|
|
8909
9572
|
"fieldName": "disabled",
|
|
8910
9573
|
"inheritedFrom": {
|
|
8911
9574
|
"name": "BaseInput",
|
|
@@ -9029,11 +9692,14 @@
|
|
|
9029
9692
|
{
|
|
9030
9693
|
"name": "size",
|
|
9031
9694
|
"type": {
|
|
9032
|
-
"text": "
|
|
9695
|
+
"text": "Size | LegacySize"
|
|
9033
9696
|
},
|
|
9034
|
-
"default": "'
|
|
9035
|
-
"description": "Size of the docked toolbar.\n
|
|
9036
|
-
"fieldName": "size"
|
|
9697
|
+
"default": "'sm'",
|
|
9698
|
+
"description": "Size of the docked toolbar.\n- `\"sm\"`: 80dp height (default).\n- `\"md\"`: 96dp height.\n- `\"lg\"`: 112dp height.\n\nThe long names `\"small\"`, `\"medium\"` and `\"large\"` still work but are deprecated.",
|
|
9699
|
+
"fieldName": "size",
|
|
9700
|
+
"expandedType": {
|
|
9701
|
+
"text": "'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large'"
|
|
9702
|
+
}
|
|
9037
9703
|
},
|
|
9038
9704
|
{
|
|
9039
9705
|
"name": "elevated",
|
|
@@ -9164,14 +9830,6 @@
|
|
|
9164
9830
|
"default": "''",
|
|
9165
9831
|
"fieldName": "value"
|
|
9166
9832
|
},
|
|
9167
|
-
{
|
|
9168
|
-
"name": "name",
|
|
9169
|
-
"type": {
|
|
9170
|
-
"text": "string"
|
|
9171
|
-
},
|
|
9172
|
-
"default": "''",
|
|
9173
|
-
"fieldName": "name"
|
|
9174
|
-
},
|
|
9175
9833
|
{
|
|
9176
9834
|
"name": "placeholder",
|
|
9177
9835
|
"type": {
|
|
@@ -9260,12 +9918,16 @@
|
|
|
9260
9918
|
"default": "''",
|
|
9261
9919
|
"fieldName": "warningText"
|
|
9262
9920
|
},
|
|
9921
|
+
{
|
|
9922
|
+
"name": "name",
|
|
9923
|
+
"fieldName": "name",
|
|
9924
|
+
"inheritedFrom": {
|
|
9925
|
+
"name": "BaseInput",
|
|
9926
|
+
"module": "src/input/BaseInput.ts"
|
|
9927
|
+
}
|
|
9928
|
+
},
|
|
9263
9929
|
{
|
|
9264
9930
|
"name": "disabled",
|
|
9265
|
-
"type": {
|
|
9266
|
-
"text": "boolean"
|
|
9267
|
-
},
|
|
9268
|
-
"default": "false",
|
|
9269
9931
|
"fieldName": "disabled",
|
|
9270
9932
|
"inheritedFrom": {
|
|
9271
9933
|
"name": "BaseInput",
|