atomicuilibrary 0.1.0 → 0.1.3
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/cjs/category-section.cjs.entry.js +2 -2
- package/dist/cjs/dom-BvBb0kmW.js +267 -0
- package/dist/cjs/exploration-project-tailwind.cjs.js +2 -2
- package/dist/cjs/{index-ClkOYpT8.js → index-C32cWsm5.js} +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +3 -3
- package/dist/cjs/library-card.cjs.entry.js +2 -2
- package/dist/cjs/lm-container_2.cjs.entry.js +2 -2
- package/dist/cjs/lm-panel_3.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/my-step.cjs.entry.js +2 -2
- package/dist/cjs/nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/smart-step.cjs.entry.js +3 -3
- package/dist/cjs/timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-accordion_11.cjs.entry.js +132 -50
- package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2 -2
- package/dist/cjs/ui-anchor.cjs.entry.js +2 -2
- package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +3 -3
- package/dist/cjs/ui-aside-panel.cjs.entry.js +10 -11
- package/dist/cjs/ui-avatar-group_5.cjs.entry.js +1694 -0
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ui-callout-banner.cjs.entry.js +2 -2
- package/dist/cjs/ui-card.cjs.entry.js +4 -3
- package/dist/cjs/ui-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/ui-code-editor.cjs.entry.js +2 -2
- package/dist/cjs/ui-code-preview.cjs.entry.js +2 -2
- package/dist/cjs/ui-color-picker.cjs.entry.js +256 -22
- package/dist/cjs/ui-command-palette.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog-box.cjs.entry.js +85 -11
- package/dist/cjs/ui-dialog-content.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +1 -1
- package/dist/cjs/ui-divider.cjs.entry.js +1 -1
- package/dist/cjs/ui-dock-host.cjs.entry.js +4 -4
- package/dist/cjs/ui-dock.cjs.entry.js +2 -2
- package/dist/cjs/ui-drag-drop.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown_2.cjs.entry.js +104 -34
- package/dist/cjs/ui-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ui-fab-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-fab.cjs.entry.js +4 -4
- package/dist/cjs/ui-file-upload.cjs.entry.js +143 -44
- package/dist/cjs/ui-horizontal-nav.cjs.entry.js +2 -2
- package/dist/cjs/ui-knob.cjs.entry.js +1 -1
- package/dist/cjs/ui-label.cjs.entry.js +473 -0
- package/dist/cjs/ui-library.cjs.entry.js +2 -2
- package/dist/cjs/ui-list-group_2.cjs.entry.js +349 -60
- package/dist/cjs/ui-list.cjs.entry.js +76 -42
- package/dist/cjs/ui-masonry.cjs.entry.js +1 -1
- package/dist/cjs/ui-meter-group.cjs.entry.js +5 -4
- package/dist/cjs/ui-navigation-item.cjs.entry.js +5 -5
- package/dist/cjs/ui-number-input.cjs.entry.js +7 -3
- package/dist/cjs/ui-otp-input.cjs.entry.js +5 -5
- package/dist/cjs/{ui-pagination_4.cjs.entry.js → ui-pagination_3.cjs.entry.js} +35 -506
- package/dist/cjs/ui-panel.cjs.entry.js +1 -1
- package/dist/cjs/ui-pattern-input.cjs.entry.js +46 -11
- package/dist/cjs/ui-progress.cjs.entry.js +66 -9
- package/dist/cjs/ui-range-slider.cjs.entry.js +2 -2
- package/dist/cjs/ui-resizable-panel.cjs.entry.js +2 -2
- package/dist/cjs/ui-scroll-top.cjs.entry.js +1 -1
- package/dist/cjs/ui-smart-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/ui-smart-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ui-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/ui-speed-dial.cjs.entry.js +1 -1
- package/dist/cjs/ui-speedometer.cjs.entry.js +28 -17
- package/dist/cjs/ui-splitter.cjs.entry.js +1 -1
- package/dist/cjs/ui-step.cjs.entry.js +2 -2
- package/dist/cjs/ui-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +14 -13
- package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ui-tag.cjs.entry.js +58 -13
- package/dist/cjs/ui-timeline.cjs.entry.js +10 -2
- package/dist/cjs/ui-timer.cjs.entry.js +2 -2
- package/dist/cjs/ui-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/ui-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
- package/dist/cjs/ui-transfer-list.cjs.entry.js +6 -6
- package/dist/cjs/ui-tree.cjs.entry.js +30 -15
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +2 -2
- package/dist/collection/assets/js/component-config.js +1 -0
- package/dist/collection/assets/js/demo-loader.js +2 -0
- package/dist/collection/assets/js/demos/about-demo.js +13 -13
- package/dist/collection/assets/js/demos/accordion-demo.js +66 -66
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +102 -102
- package/dist/collection/assets/js/demos/anchor-demo.js +27 -28
- package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +12 -12
- package/dist/collection/assets/js/demos/aside-panel-demo.js +51 -51
- package/dist/collection/assets/js/demos/avatar-demo.js +433 -95
- package/dist/collection/assets/js/demos/badge-demo.js +51 -52
- package/dist/collection/assets/js/demos/breadcrumb-demo.js +7 -7
- package/dist/collection/assets/js/demos/button-demo.js +117 -107
- package/dist/collection/assets/js/demos/button-toggle-demo.js +199 -96
- package/dist/collection/assets/js/demos/callout-banner-demo.js +23 -23
- package/dist/collection/assets/js/demos/card-demo.js +23 -22
- package/dist/collection/assets/js/demos/carousel-demo.js +632 -360
- package/dist/collection/assets/js/demos/checkbox-demo.js +124 -7
- package/dist/collection/assets/js/demos/color-picker-demo.js +394 -100
- package/dist/collection/assets/js/demos/command-palette-demo.js +182 -65
- package/dist/collection/assets/js/demos/complex-form-demo.js +5 -5
- package/dist/collection/assets/js/demos/context-menu-demo.js +43 -43
- package/dist/collection/assets/js/demos/dialog-demo-temp.js +3 -3
- package/dist/collection/assets/js/demos/dialog-demo.js +336 -230
- package/dist/collection/assets/js/demos/divider-demo.js +59 -62
- package/dist/collection/assets/js/demos/dock-demo.js +12 -12
- package/dist/collection/assets/js/demos/dock-host-init.js +31 -31
- package/dist/collection/assets/js/demos/documentation-demo.js +34 -34
- package/dist/collection/assets/js/demos/drag-drop-demo.js +2 -2
- package/dist/collection/assets/js/demos/dropdown-demo.js +140 -136
- package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +2 -2
- package/dist/collection/assets/js/demos/empty-state-demo.js +294 -78
- package/dist/collection/assets/js/demos/fab-demo.js +95 -11
- package/dist/collection/assets/js/demos/file-upload-demo.js +641 -171
- package/dist/collection/assets/js/demos/home-components.js +2 -2
- package/dist/collection/assets/js/demos/horizontal-nav-demo.js +6 -6
- package/dist/collection/assets/js/demos/icon-demo.js +17 -17
- package/dist/collection/assets/js/demos/input-demo.js +147 -143
- package/dist/collection/assets/js/demos/knob-demo.js +29 -30
- package/dist/collection/assets/js/demos/label-demo.js +697 -0
- package/dist/collection/assets/js/demos/layout-manager-demo.js +55 -55
- package/dist/collection/assets/js/demos/list-demo.js +185 -122
- package/dist/collection/assets/js/demos/loader-demo.js +48 -48
- package/dist/collection/assets/js/demos/masonry-demo.js +568 -140
- package/dist/collection/assets/js/demos/meter-group-demo.js +14 -16
- package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +25 -25
- package/dist/collection/assets/js/demos/my-profile-demo.js +27 -27
- package/dist/collection/assets/js/demos/nav-bar-demo.js +1 -1
- package/dist/collection/assets/js/demos/number-input-demo.js +262 -211
- package/dist/collection/assets/js/demos/pagination-demo.js +29 -29
- package/dist/collection/assets/js/demos/panel-demo.js +18 -25
- package/dist/collection/assets/js/demos/pattern-input-demo.js +278 -40
- package/dist/collection/assets/js/demos/popover-demo.js +240 -149
- package/dist/collection/assets/js/demos/progress-demo.js +170 -156
- package/dist/collection/assets/js/demos/radio-demo.js +73 -12
- package/dist/collection/assets/js/demos/range-slider-demo.js +33 -33
- package/dist/collection/assets/js/demos/rating-demo.js +19 -19
- package/dist/collection/assets/js/demos/scroll-top-demo.js +8 -9
- package/dist/collection/assets/js/demos/skeleton-demo.js +110 -52
- package/dist/collection/assets/js/demos/skeleton-performance-demo.js +2 -2
- package/dist/collection/assets/js/demos/smart-dialog-demo.js +12 -12
- package/dist/collection/assets/js/demos/smart-menu-demo.js +17 -17
- package/dist/collection/assets/js/demos/snackbar-demo.js +53 -53
- package/dist/collection/assets/js/demos/speed-dial-demo.js +14 -14
- package/dist/collection/assets/js/demos/speedometer-demo.js +40 -32
- package/dist/collection/assets/js/demos/split-button-demo.js +2 -2
- package/dist/collection/assets/js/demos/splitter-demo.js +14 -14
- package/dist/collection/assets/js/demos/stack-demo.js +27 -27
- package/dist/collection/assets/js/demos/stepper-demo.js +49 -49
- package/dist/collection/assets/js/demos/switch-demo.js +561 -125
- package/dist/collection/assets/js/demos/tabs-demo.js +22 -22
- package/dist/collection/assets/js/demos/tag-demo.js +62 -62
- package/dist/collection/assets/js/demos/theme-selector-demo.js +27 -27
- package/dist/collection/assets/js/demos/timeline-demo.js +10 -10
- package/dist/collection/assets/js/demos/timeline-playground.js +2 -2
- package/dist/collection/assets/js/demos/timer-demo.js +10 -10
- package/dist/collection/assets/js/demos/toolbar-demo.js +17 -17
- package/dist/collection/assets/js/demos/tooltip-demo.js +92 -90
- package/dist/collection/assets/js/demos/top-bar-demo.js +6 -6
- package/dist/collection/assets/js/demos/transfer-list-demo.js +20 -20
- package/dist/collection/assets/js/demos/tree-demo.js +50 -66
- package/dist/collection/assets/js/demos/workspace-manager-demo.js +20 -20
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/accordion/accordion.css +275 -9
- package/dist/collection/components/accordion/accordion.js +7 -6
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +5 -5
- package/dist/collection/components/advanced-data-table/advanced-data-table.js +2 -2
- package/dist/collection/components/anchor/anchor.css +1 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +2 -2
- package/dist/collection/components/aside-panel/aside-panel.css +2 -2
- package/dist/collection/components/aside-panel/aside-panel.js +10 -11
- package/dist/collection/components/avatar/avatar.css +6 -6
- package/dist/collection/components/avatar/avatar.js +63 -11
- package/dist/collection/components/badge/badge.css +27 -17
- package/dist/collection/components/badge/badge.js +6 -3
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +2 -2
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/button/button.js +3 -3
- package/dist/collection/components/button-toggle/button-toggle.js +2 -2
- package/dist/collection/components/button-toggle-group/button-toggle-group.css +161 -14
- package/dist/collection/components/button-toggle-group/button-toggle-group.js +2 -2
- package/dist/collection/components/callout-banner/callout-banner.css +75 -0
- package/dist/collection/components/callout-banner/callout-banner.js +1 -1
- package/dist/collection/components/card/card.css +221 -9
- package/dist/collection/components/card/card.js +3 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/code-editor/code-editor.js +1 -1
- package/dist/collection/components/code-preview/ui-code-preview.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +110 -6
- package/dist/collection/components/color-picker/color-picker.js +302 -26
- package/dist/collection/components/context-menu/context-menu.css +9 -9
- package/dist/collection/components/dialog-box/dialog-box.js +116 -14
- package/dist/collection/components/dialog-header/dialog-header.js +1 -1
- package/dist/collection/components/dock/dock.css +116 -3
- package/dist/collection/components/dock-host/ui-dock-host.js +3 -3
- package/dist/collection/components/drag-drop/drag-drop.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +101 -8
- package/dist/collection/components/dropdown/dropdown.js +94 -28
- package/dist/collection/components/empty-state/empty-state.js +1 -1
- package/dist/collection/components/fab/fab.css +87 -15
- package/dist/collection/components/fab/fab.js +3 -3
- package/dist/collection/components/fab-item/fab-item.js +1 -1
- package/dist/collection/components/file-upload/file-upload.css +1362 -31
- package/dist/collection/components/file-upload/file-upload.js +171 -50
- package/dist/collection/components/horizontal-nav/horizontal-nav.css +9 -9
- package/dist/collection/components/horizontal-nav/horizontal-nav.js +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.css +9 -0
- package/dist/collection/components/input/input.js +20 -9
- package/dist/collection/components/label/label.css +583 -0
- package/dist/collection/components/label/label.js +1669 -0
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +1 -1
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +1 -1
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +1 -1
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +1 -1
- package/dist/collection/components/library/category-section.js +1 -1
- package/dist/collection/components/library/library-card.js +1 -1
- package/dist/collection/components/library/library.js +1 -1
- package/dist/collection/components/list/list.css +46 -5
- package/dist/collection/components/list/list.js +76 -42
- package/dist/collection/components/list-group/list-group.css +0 -2
- package/dist/collection/components/list-group/list-group.js +11 -5
- package/dist/collection/components/list-item/list-item.css +403 -131
- package/dist/collection/components/list-item/list-item.js +345 -61
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/loader/loader.js +2 -2
- package/dist/collection/components/meter-group/meter-group.css +5 -0
- package/dist/collection/components/meter-group/meter-group.js +3 -2
- package/dist/collection/components/my-step/my-step.js +1 -1
- package/dist/collection/components/nav-bar/nav-bar.css +4 -4
- package/dist/collection/components/nav-bar/nav-bar.js +6 -6
- package/dist/collection/components/number-input/number-input.js +6 -2
- package/dist/collection/components/otp-input/otp-input.css +10 -0
- package/dist/collection/components/otp-input/otp-input.js +3 -3
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pattern-input/pattern-input.css +0 -1
- package/dist/collection/components/pattern-input/pattern-input.js +44 -9
- package/dist/collection/components/popover/popover.css +35 -7
- package/dist/collection/components/popover/popover.js +64 -9
- package/dist/collection/components/progress/progress.css +176 -32
- package/dist/collection/components/progress/progress.js +66 -8
- package/dist/collection/components/radio/radio.css +2 -0
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/range-slider/range-slider.css +284 -31
- package/dist/collection/components/range-slider/range-slider.js +5 -5
- package/dist/collection/components/rating/rating.css +151 -65
- package/dist/collection/components/rating/rating.js +31 -13
- package/dist/collection/components/resizable-panel/resizable-panel.js +1 -1
- package/dist/collection/components/skeleton/skeleton-loader.css +144 -44
- package/dist/collection/components/skeleton/skeleton-loader.js +11 -7
- package/dist/collection/components/smart-stepper/smart-step.js +2 -2
- package/dist/collection/components/smart-stepper/smart-stepper.js +1 -1
- package/dist/collection/components/speedometer/speedometer.css +26 -6
- package/dist/collection/components/speedometer/speedometer.js +26 -15
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/step/step.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/switch/switch.css +367 -8
- package/dist/collection/components/switch/switch.js +13 -12
- package/dist/collection/components/tag/tag.css +38 -12
- package/dist/collection/components/tag/tag.js +58 -13
- package/dist/collection/components/tag-group/tag-group.css +0 -1
- package/dist/collection/components/tag-group/tag-group.js +3 -3
- package/dist/collection/components/timeline/timeline.css +380 -317
- package/dist/collection/components/timeline/timeline.js +8 -0
- package/dist/collection/components/timeline-item/timeline-item.js +1 -1
- package/dist/collection/components/timer/timer.js +1 -1
- package/dist/collection/components/toggle-group/toggle-group.css +7 -3
- package/dist/collection/components/toggle-group/toggle-group.js +7 -3
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/components/top-bar/top-bar.js +2 -2
- package/dist/collection/components/transfer-list/transfer-list.css +13 -13
- package/dist/collection/components/transfer-list/transfer-list.js +4 -4
- package/dist/collection/components/tree/tree.css +35 -21
- package/dist/collection/components/tree/tree.js +28 -13
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +34 -16
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +46 -11
- package/dist/collection/components/ui-navigation-bar/navigation-item.css +7 -7
- package/dist/collection/components/ui-navigation-bar/navigation-item.js +3 -3
- package/dist/collection/utils/dom.js +151 -151
- package/dist/components/avatar-group.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/button-toggle.js +1 -1
- package/dist/components/button.js +1 -0
- package/dist/components/category-section2.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/library-card2.js +1 -1
- package/dist/components/list-group.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/lm-container2.js +1 -1
- package/dist/components/lm-floating-window2.js +1 -1
- package/dist/components/lm-panel2.js +1 -1
- package/dist/components/lm-splitter2.js +1 -1
- package/dist/components/lm-tabs2.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/my-step.js +1 -1
- package/dist/components/nav-bar.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -0
- package/dist/components/radio.js +1 -1
- package/dist/components/range-slider.js +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/resizable-panel.js +1 -1
- package/dist/components/skeleton-loader.js +1 -1
- package/dist/components/smart-step.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag-group.js +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/timeline-item.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-advanced-data-table.js +1 -1
- package/dist/components/ui-anchor.js +1 -1
- package/dist/components/ui-animate-on-scroll.js +1 -1
- package/dist/components/ui-aside-panel.js +1 -1
- package/dist/components/ui-badge.js +1 -1
- package/dist/components/ui-breadcrumb-item.js +1 -1
- package/dist/components/ui-breadcrumb.js +1 -1
- package/dist/components/ui-button-toggle-group.js +1 -1
- package/dist/components/ui-button.js +1 -1
- package/dist/components/ui-callout-banner.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-carousel.js +1 -1
- package/dist/components/ui-code-editor.js +1 -1
- package/dist/components/ui-code-preview.js +1 -1
- package/dist/components/ui-color-picker.js +1 -1
- package/dist/components/ui-command-palette.js +1 -1
- package/dist/components/ui-dialog-box.js +1 -1
- package/dist/components/ui-dock-host.js +1 -1
- package/dist/components/ui-dock.js +1 -1
- package/dist/components/ui-drag-drop.js +1 -1
- package/dist/components/ui-empty-state.js +1 -1
- package/dist/components/ui-fab-item.js +1 -1
- package/dist/components/ui-fab.js +1 -1
- package/dist/components/ui-file-upload.js +1 -1
- package/dist/components/ui-horizontal-nav.js +1 -1
- package/dist/components/ui-knob.js +1 -1
- package/dist/components/{ui-color-controller.d.ts → ui-label.d.ts} +4 -4
- package/dist/components/ui-label.js +1 -0
- package/dist/components/ui-library.js +1 -1
- package/dist/components/ui-list.js +1 -1
- package/dist/components/ui-masonry.js +1 -1
- package/dist/components/ui-meter-group.js +1 -1
- package/dist/components/ui-navigation-bar.js +1 -1
- package/dist/components/ui-navigation-item.js +1 -1
- package/dist/components/ui-number-input.js +1 -1
- package/dist/components/ui-otp-input.js +1 -1
- package/dist/components/ui-panel.js +1 -1
- package/dist/components/ui-pattern-input.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-scroll-top.js +1 -1
- package/dist/components/ui-smart-stepper.js +1 -1
- package/dist/components/ui-snackbar.js +1 -1
- package/dist/components/ui-speed-dial.js +1 -1
- package/dist/components/ui-speedometer.js +1 -1
- package/dist/components/ui-splitter.js +1 -1
- package/dist/components/ui-step.js +1 -1
- package/dist/components/ui-stepper.js +1 -1
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-timeline.js +1 -1
- package/dist/components/ui-timer.js +1 -1
- package/dist/components/ui-toolbar.js +1 -1
- package/dist/components/ui-top-bar.js +1 -1
- package/dist/components/ui-transfer-list.js +1 -1
- package/dist/components/ui-tree.js +1 -1
- package/dist/components/ui-workspace-manager.js +1 -1
- package/dist/esm/category-section.entry.js +2 -2
- package/dist/esm/dom-DFBTWhGw.js +262 -0
- package/dist/esm/exploration-project-tailwind.js +3 -3
- package/dist/esm/{index-DUsoYu9r.js → index-Dqu2zaH1.js} +1 -1
- package/dist/esm/layout-manager.entry.js +3 -3
- package/dist/esm/library-card.entry.js +2 -2
- package/dist/esm/lm-container_2.entry.js +2 -2
- package/dist/esm/lm-panel_3.entry.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/my-step.entry.js +2 -2
- package/dist/esm/nav-bar.entry.js +4 -4
- package/dist/esm/smart-step.entry.js +3 -3
- package/dist/esm/timeline-item.entry.js +2 -2
- package/dist/esm/ui-accordion_11.entry.js +132 -50
- package/dist/esm/ui-advanced-data-table.entry.js +2 -2
- package/dist/esm/ui-anchor.entry.js +2 -2
- package/dist/esm/ui-animate-on-scroll.entry.js +3 -3
- package/dist/esm/ui-aside-panel.entry.js +10 -11
- package/dist/esm/ui-avatar-group_5.entry.js +1688 -0
- package/dist/esm/ui-breadcrumb-item.entry.js +3 -3
- package/dist/esm/ui-breadcrumb.entry.js +1 -1
- package/dist/esm/ui-callout-banner.entry.js +2 -2
- package/dist/esm/ui-card.entry.js +4 -3
- package/dist/esm/ui-carousel.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +3 -3
- package/dist/esm/ui-code-editor.entry.js +2 -2
- package/dist/esm/ui-code-preview.entry.js +2 -2
- package/dist/esm/ui-color-picker.entry.js +256 -22
- package/dist/esm/ui-command-palette.entry.js +1 -1
- package/dist/esm/ui-dialog-box.entry.js +85 -11
- package/dist/esm/ui-dialog-content.entry.js +1 -1
- package/dist/esm/ui-dialog-footer_2.entry.js +1 -1
- package/dist/esm/ui-divider.entry.js +1 -1
- package/dist/esm/ui-dock-host.entry.js +4 -4
- package/dist/esm/ui-dock.entry.js +2 -2
- package/dist/esm/ui-drag-drop.entry.js +2 -2
- package/dist/esm/ui-dropdown_2.entry.js +104 -34
- package/dist/esm/ui-empty-state.entry.js +2 -2
- package/dist/esm/ui-fab-item.entry.js +2 -2
- package/dist/esm/ui-fab.entry.js +4 -4
- package/dist/esm/ui-file-upload.entry.js +143 -44
- package/dist/esm/ui-horizontal-nav.entry.js +2 -2
- package/dist/esm/ui-knob.entry.js +1 -1
- package/dist/esm/ui-label.entry.js +471 -0
- package/dist/esm/ui-library.entry.js +2 -2
- package/dist/esm/ui-list-group_2.entry.js +349 -60
- package/dist/esm/ui-list.entry.js +76 -42
- package/dist/esm/ui-masonry.entry.js +1 -1
- package/dist/esm/ui-meter-group.entry.js +5 -4
- package/dist/esm/ui-navigation-item.entry.js +5 -5
- package/dist/esm/ui-number-input.entry.js +7 -3
- package/dist/esm/ui-otp-input.entry.js +5 -5
- package/dist/esm/{ui-pagination_4.entry.js → ui-pagination_3.entry.js} +36 -506
- package/dist/esm/ui-panel.entry.js +1 -1
- package/dist/esm/ui-pattern-input.entry.js +46 -11
- package/dist/esm/ui-progress.entry.js +66 -9
- package/dist/esm/ui-range-slider.entry.js +2 -2
- package/dist/esm/ui-resizable-panel.entry.js +2 -2
- package/dist/esm/ui-scroll-top.entry.js +1 -1
- package/dist/esm/ui-smart-context-menu.entry.js +1 -1
- package/dist/esm/ui-smart-stepper.entry.js +2 -2
- package/dist/esm/ui-snackbar.entry.js +1 -1
- package/dist/esm/ui-speed-dial.entry.js +1 -1
- package/dist/esm/ui-speedometer.entry.js +28 -17
- package/dist/esm/ui-splitter.entry.js +1 -1
- package/dist/esm/ui-step.entry.js +2 -2
- package/dist/esm/ui-stepper.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +14 -13
- package/dist/esm/ui-tabs.entry.js +2 -2
- package/dist/esm/ui-tag.entry.js +58 -13
- package/dist/esm/ui-timeline.entry.js +10 -2
- package/dist/esm/ui-timer.entry.js +2 -2
- package/dist/esm/ui-toolbar.entry.js +2 -2
- package/dist/esm/ui-tooltip.entry.js +4 -4
- package/dist/esm/ui-top-bar.entry.js +1 -1
- package/dist/esm/ui-transfer-list.entry.js +6 -6
- package/dist/esm/ui-tree.entry.js +30 -15
- package/dist/esm/ui-workspace-manager.entry.js +2 -2
- package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -1
- package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -1
- package/dist/exploration-project-tailwind/{p-7ba2258a.entry.js → p-024a299a.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-0a71896a.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-35296877.entry.js → p-0cdeb8d8.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-a42fdc33.entry.js → p-139cefbc.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-036d2a44.entry.js → p-198c83e5.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-236f47b1.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-81ebba11.entry.js → p-25530d0d.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-41cd6bf0.entry.js → p-298f2057.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-85e36111.entry.js → p-2b5a8e3e.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-e8c6d395.entry.js → p-2b6aa7bc.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-70bacda8.entry.js → p-2cfba753.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-cbee2607.entry.js → p-2fe22958.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-20ecc116.entry.js → p-3012e780.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-321c3f46.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-8b57fe4e.entry.js → p-3ab43638.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-3ad7e47e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3b1ca826.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3ee8ddae.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-e22317c1.entry.js → p-3efb44c8.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-36861546.entry.js → p-42e3bc28.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-4360331a.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-2f961934.entry.js → p-443de32b.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-898dd0fa.entry.js → p-44d15451.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-4288c158.entry.js → p-46071679.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-a3f465d9.entry.js → p-497d6182.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-4ad8c55c.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-4aaa8e40.entry.js → p-4c46ac0b.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-98e91da5.entry.js → p-5042ddaa.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-60190e0e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-60530874.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-200241f8.entry.js → p-6108565d.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-fb4aca69.entry.js → p-62889cfe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c02284ea.entry.js → p-66f71613.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-7889bfc4.entry.js → p-67c440b2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c1c8ac28.entry.js → p-6f09503f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-721bdbc3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-747b02ea.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c6fd72e1.entry.js → p-754cb046.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-97af03cc.entry.js → p-7ed3bba2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d59da767.entry.js → p-864cebb7.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-4d73c143.entry.js → p-96ee3196.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-54965530.entry.js → p-97086868.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d114a347.entry.js → p-9c5ced88.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-9d3044d4.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9e079be6.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-790556f0.entry.js → p-9e4c45f5.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-9eee7394.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-DFBTWhGw.js +1 -0
- package/dist/exploration-project-tailwind/p-Dqu2zaH1.js +2 -0
- package/dist/exploration-project-tailwind/p-a7bdedc2.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c87aeab6.entry.js → p-a8ec29de.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-6ddbee42.entry.js → p-ae617f62.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-05a436d3.entry.js → p-aef76052.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-b5f043fa.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-b637b91b.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-d2e45c5e.entry.js → p-bc49a088.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-6b838549.entry.js → p-bd9a631f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-e8ba0c95.entry.js → p-bf4b6767.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-c0fa400e.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-8578b616.entry.js → p-c4f3d990.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-c68ddb2f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c79574c4.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c840098d.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-a1ad32a2.entry.js → p-c8663cbe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-cb6e38a6.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-cb9f2df1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-cfe8b696.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d00e13ae.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c4ba7e52.entry.js → p-d01ed934.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-aa85ff78.entry.js → p-d4e57d94.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-ccb5c737.entry.js → p-d5bd3a3f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-45482d86.entry.js → p-d987cebe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-d9ae77c0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e9bae5c7.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f516fabc.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f68e2794.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-d30e24bd.entry.js → p-fa034f69.entry.js} +1 -1
- package/dist/types/components/aside-panel/aside-panel.d.ts +0 -3
- package/dist/types/components/avatar/avatar.d.ts +3 -0
- package/dist/types/components/avatar/types.d.ts +2 -0
- package/dist/types/components/badge/badge.d.ts +1 -0
- package/dist/types/components/color-picker/color-picker.d.ts +35 -2
- package/dist/types/components/dialog-box/dialog-box.d.ts +10 -0
- package/dist/types/components/dropdown/dropdown.d.ts +5 -0
- package/dist/types/components/file-upload/file-upload.d.ts +23 -6
- package/dist/types/components/label/label.d.ts +290 -0
- package/dist/types/components/label/types.d.ts +39 -0
- package/dist/types/components/list/list.d.ts +2 -1
- package/dist/types/components/list-group/list-group.d.ts +1 -0
- package/dist/types/components/list-item/list-item.d.ts +45 -17
- package/dist/types/components/pattern-input/pattern-input.d.ts +6 -0
- package/dist/types/components/popover/popover.d.ts +3 -0
- package/dist/types/components/progress/progress.d.ts +7 -0
- package/dist/types/components/range-slider/range-slider.d.ts +2 -2
- package/dist/types/components/rating/rating.d.ts +1 -0
- package/dist/types/components/skeleton/skeleton-loader.d.ts +1 -1
- package/dist/types/components/speedometer/speedometer.d.ts +1 -0
- package/dist/types/components/tag/tag.d.ts +4 -0
- package/dist/types/components/tree/tree.d.ts +1 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +1 -1
- package/dist/types/components.d.ts +742 -425
- package/dist/types/types/common.d.ts +2 -2
- package/dist/types/types/common.type.d.ts +2 -0
- package/dist/types/utils/dom.d.ts +4 -4
- package/package.json +4 -5
- package/dist/cjs/dom-oP1E4Rd3.js +0 -267
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +0 -634
- package/dist/cjs/ui-color-controller.cjs.entry.js +0 -150
- package/dist/cjs/ui-popover.cjs.entry.js +0 -517
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +0 -565
- package/dist/collection/components/color-controller/color-controller.css +0 -108
- package/dist/collection/components/color-controller/color-controller.js +0 -224
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +0 -357
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +0 -1190
- package/dist/components/ui-color-controller.js +0 -1
- package/dist/components/ui-smart-location-dropdown.d.ts +0 -11
- package/dist/components/ui-smart-location-dropdown.js +0 -1
- package/dist/esm/dom-BMFah5q3.js +0 -262
- package/dist/esm/ui-avatar-group_3.entry.js +0 -630
- package/dist/esm/ui-color-controller.entry.js +0 -148
- package/dist/esm/ui-popover.entry.js +0 -515
- package/dist/esm/ui-smart-location-dropdown.entry.js +0 -563
- package/dist/exploration-project-tailwind/p-06f0c679.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-148e81df.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-16bdd162.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-2347d21b.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-3d381f75.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4417a9d8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-44742ddd.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4bef8bed.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4efd63ce.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-5c835d90.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-61717490.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-717dad1f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-71d95bb1.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-9bd14f69.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-BMFah5q3.js +0 -1
- package/dist/exploration-project-tailwind/p-DUsoYu9r.js +0 -2
- package/dist/exploration-project-tailwind/p-a27f59d2.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-a7b07cf4.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-bd89d060.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c63c522e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-d6ce9721.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-dc92a343.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-debede45.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-e76318c7.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-eab5ad36.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f0bc5d7e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f1beee72.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f543392f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f61cfb7c.entry.js +0 -1
- package/dist/types/components/color-controller/color-controller.d.ts +0 -24
- package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +0 -119
- package/dist/types/components/smart-location-dropdown/types.d.ts +0 -37
- /package/dist/collection/components/{smart-location-dropdown → label}/types.js +0 -0
|
@@ -0,0 +1,1669 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* `ui-label` — Enterprise-grade, fully accessible form label component.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Primary label text / rich content.
|
|
6
|
+
* @slot start - Content placed before the label text (e.g. leading icon).
|
|
7
|
+
* @slot end - Content placed after the label text (e.g. trailing icon or action).
|
|
8
|
+
* @slot hint - Helper / hint text below the label.
|
|
9
|
+
* @slot tooltip - Rich tooltip content triggered by the info icon.
|
|
10
|
+
* @slot required-indicator - Custom required-indicator markup (overrides built-in asterisk).
|
|
11
|
+
*
|
|
12
|
+
* @cssvar --ui-label-color Label text colour.
|
|
13
|
+
* @cssvar --ui-label-font-size Label font size.
|
|
14
|
+
* @cssvar --ui-label-font-weight Label font weight.
|
|
15
|
+
* @cssvar --ui-label-gap Gap between label and associated control direction.
|
|
16
|
+
* @cssvar --ui-label-required-color Colour of the required asterisk.
|
|
17
|
+
* @cssvar --ui-label-disabled-opacity Opacity when disabled.
|
|
18
|
+
* @cssvar --ui-label-error-color Colour used for error / invalid state.
|
|
19
|
+
* @cssvar --ui-label-success-color Colour used for success state.
|
|
20
|
+
* @cssvar --ui-label-hint-color Colour of hint / helper text.
|
|
21
|
+
*/
|
|
22
|
+
export class UILabel {
|
|
23
|
+
// ─── Internal refs ──────────────────────────────────────────────────────
|
|
24
|
+
el;
|
|
25
|
+
/** Tracks whether the associated control is currently focused (managed externally or via the focused prop). */
|
|
26
|
+
_isFocused = false;
|
|
27
|
+
/** Toggle state for tooltip open/close. */
|
|
28
|
+
_tooltipOpen = false;
|
|
29
|
+
// ─── Form Association ────────────────────────────────────────────────────
|
|
30
|
+
/**
|
|
31
|
+
* ID of the form control this label is associated with.
|
|
32
|
+
* Renders as a native `for` attribute on the underlying `<label>` element.
|
|
33
|
+
* Supports all standard form controls as well as custom web components.
|
|
34
|
+
*/
|
|
35
|
+
htmlFor;
|
|
36
|
+
/**
|
|
37
|
+
* Alias for `htmlFor`. `controlId` takes precedence if both are supplied.
|
|
38
|
+
*/
|
|
39
|
+
controlId;
|
|
40
|
+
/**
|
|
41
|
+
* Deprecated alias kept for back-compat. Prefer `htmlFor`.
|
|
42
|
+
*/
|
|
43
|
+
target;
|
|
44
|
+
// ─── Content ────────────────────────────────────────────────────────────
|
|
45
|
+
/**
|
|
46
|
+
* Plain-text label. Use the default slot for rich/HTML content instead.
|
|
47
|
+
*/
|
|
48
|
+
label = '';
|
|
49
|
+
// ─── Typography ─────────────────────────────────────────────────────────
|
|
50
|
+
/**
|
|
51
|
+
* Semantic size token.
|
|
52
|
+
* @default 'md'
|
|
53
|
+
*/
|
|
54
|
+
size = 'md';
|
|
55
|
+
/**
|
|
56
|
+
* Font-weight scale.
|
|
57
|
+
* @default 'medium'
|
|
58
|
+
*/
|
|
59
|
+
weight = 'medium';
|
|
60
|
+
/**
|
|
61
|
+
* CSS text-transform value.
|
|
62
|
+
* @default 'none'
|
|
63
|
+
*/
|
|
64
|
+
transform = 'none';
|
|
65
|
+
/**
|
|
66
|
+
* Single-line truncation with ellipsis.
|
|
67
|
+
*/
|
|
68
|
+
truncate = false;
|
|
69
|
+
/**
|
|
70
|
+
* Allow text to wrap across multiple lines (disables truncation).
|
|
71
|
+
*/
|
|
72
|
+
multiline = false;
|
|
73
|
+
/**
|
|
74
|
+
* Clamp to N visible lines (CSS `line-clamp`). Requires `multiline` to be true.
|
|
75
|
+
*/
|
|
76
|
+
lineClamp = 0;
|
|
77
|
+
// ─── Variant ────────────────────────────────────────────────────────────
|
|
78
|
+
/**
|
|
79
|
+
* Colour variant.
|
|
80
|
+
* @default 'default'
|
|
81
|
+
*/
|
|
82
|
+
variant = 'default';
|
|
83
|
+
// ─── Form States ─────────────────────────────────────────────────────────
|
|
84
|
+
/**
|
|
85
|
+
* Marks the associated field as required.
|
|
86
|
+
* Shows a required indicator (asterisk by default) and sets `aria-required` on the
|
|
87
|
+
* linked control if possible.
|
|
88
|
+
*/
|
|
89
|
+
required = false;
|
|
90
|
+
/**
|
|
91
|
+
* Shows "(optional)" hint text next to the label.
|
|
92
|
+
* Mutually exclusive with `required` — `required` wins if both are set.
|
|
93
|
+
*/
|
|
94
|
+
optional = false;
|
|
95
|
+
/**
|
|
96
|
+
* Applies disabled styling and prevents interaction.
|
|
97
|
+
*/
|
|
98
|
+
disabled = false;
|
|
99
|
+
/**
|
|
100
|
+
* Applies read-only styling (dimmed, no pointer events).
|
|
101
|
+
*/
|
|
102
|
+
readonly = false;
|
|
103
|
+
/**
|
|
104
|
+
* Applies invalid / error styling to the label.
|
|
105
|
+
*/
|
|
106
|
+
invalid = false;
|
|
107
|
+
/**
|
|
108
|
+
* Mirrors the focused state of the associated control so the label can react visually.
|
|
109
|
+
*/
|
|
110
|
+
focused = false;
|
|
111
|
+
/**
|
|
112
|
+
* Shows a loading skeleton overlaid on the label text.
|
|
113
|
+
*/
|
|
114
|
+
loading = false;
|
|
115
|
+
// ─── Validation messaging ────────────────────────────────────────────────
|
|
116
|
+
/**
|
|
117
|
+
* Error message shown below the label when `invalid` is true.
|
|
118
|
+
*/
|
|
119
|
+
errorText = '';
|
|
120
|
+
/**
|
|
121
|
+
* Success message shown below the label when the field is valid and this text is set.
|
|
122
|
+
*/
|
|
123
|
+
successText = '';
|
|
124
|
+
/**
|
|
125
|
+
* Helper / hint text shown below the label.
|
|
126
|
+
*/
|
|
127
|
+
helperText = '';
|
|
128
|
+
// ─── Accessibility ───────────────────────────────────────────────────────
|
|
129
|
+
/**
|
|
130
|
+
* Sets `aria-label` on the root element.
|
|
131
|
+
*/
|
|
132
|
+
ariaLabel = '';
|
|
133
|
+
/**
|
|
134
|
+
* IDs of elements that describe this label (space-separated).
|
|
135
|
+
*/
|
|
136
|
+
ariaDescribedby = '';
|
|
137
|
+
/**
|
|
138
|
+
* Live-region politeness for dynamic content announcements.
|
|
139
|
+
* @default 'off'
|
|
140
|
+
*/
|
|
141
|
+
ariaLive = 'off';
|
|
142
|
+
// ─── Layout ─────────────────────────────────────────────────────────────
|
|
143
|
+
/**
|
|
144
|
+
* Stack direction when used alongside a form control.
|
|
145
|
+
* @default 'vertical'
|
|
146
|
+
*/
|
|
147
|
+
orientation = 'vertical';
|
|
148
|
+
/**
|
|
149
|
+
* Horizontal alignment of label content.
|
|
150
|
+
* @default 'start'
|
|
151
|
+
*/
|
|
152
|
+
align = 'start';
|
|
153
|
+
/**
|
|
154
|
+
* Renders as an inline-level element.
|
|
155
|
+
*/
|
|
156
|
+
inline = false;
|
|
157
|
+
/**
|
|
158
|
+
* Forces 100 % width block layout (useful inside flex/grid parents).
|
|
159
|
+
*/
|
|
160
|
+
block = false;
|
|
161
|
+
// ─── Spacing ─────────────────────────────────────────────────────────────
|
|
162
|
+
/**
|
|
163
|
+
* Gap between the label row and the hint / error message.
|
|
164
|
+
* Accepts any valid CSS length (e.g. `'4px'`, `'0.5rem'`).
|
|
165
|
+
* Maps to `--ui-label-gap`.
|
|
166
|
+
*/
|
|
167
|
+
gap = '';
|
|
168
|
+
/**
|
|
169
|
+
* External margin override (CSS shorthand string).
|
|
170
|
+
*/
|
|
171
|
+
margin = '';
|
|
172
|
+
/**
|
|
173
|
+
* External padding override (CSS shorthand string).
|
|
174
|
+
*/
|
|
175
|
+
padding = '';
|
|
176
|
+
// ─── Icons ───────────────────────────────────────────────────────────────
|
|
177
|
+
/**
|
|
178
|
+
* Icon name rendered before the label text.
|
|
179
|
+
* Uses the same icon library as the rest of the design system.
|
|
180
|
+
*/
|
|
181
|
+
startIcon = '';
|
|
182
|
+
/**
|
|
183
|
+
* Icon name rendered after the label text.
|
|
184
|
+
*/
|
|
185
|
+
endIcon = '';
|
|
186
|
+
/**
|
|
187
|
+
* When true, only icons are shown — label text is visually hidden.
|
|
188
|
+
*/
|
|
189
|
+
iconOnly = false;
|
|
190
|
+
/**
|
|
191
|
+
* Icon name or URL for the tooltip trigger button.
|
|
192
|
+
* Defaults to an 'ⓘ' info glyph.
|
|
193
|
+
*/
|
|
194
|
+
tooltipIcon = 'ⓘ';
|
|
195
|
+
// ─── Tooltip ─────────────────────────────────────────────────────────────
|
|
196
|
+
/**
|
|
197
|
+
* Plain-text tooltip content. Use the `tooltip` slot for rich markup.
|
|
198
|
+
*/
|
|
199
|
+
tooltip = '';
|
|
200
|
+
/**
|
|
201
|
+
* Preferred position for the tooltip callout.
|
|
202
|
+
* @default 'top'
|
|
203
|
+
*/
|
|
204
|
+
tooltipPosition = 'top';
|
|
205
|
+
// ─── Interaction ─────────────────────────────────────────────────────────
|
|
206
|
+
/**
|
|
207
|
+
* Makes the label itself clickable (fires `labelClick`).
|
|
208
|
+
*/
|
|
209
|
+
clickable = false;
|
|
210
|
+
/**
|
|
211
|
+
* Enables text-selection on the label (disabled by default for form labels).
|
|
212
|
+
*/
|
|
213
|
+
selectable = false;
|
|
214
|
+
/**
|
|
215
|
+
* Shows a copy-to-clipboard button on hover and fires `labelCopy`.
|
|
216
|
+
*/
|
|
217
|
+
copyable = false;
|
|
218
|
+
// ─── Responsive ──────────────────────────────────────────────────────────
|
|
219
|
+
/**
|
|
220
|
+
* Enable responsive font-size scaling via fluid typography.
|
|
221
|
+
*/
|
|
222
|
+
responsive = false;
|
|
223
|
+
/**
|
|
224
|
+
* On narrow viewports, switches from `horizontal` to `vertical` orientation.
|
|
225
|
+
*/
|
|
226
|
+
mobileStack = false;
|
|
227
|
+
// ─── Internationalisation ─────────────────────────────────────────────────
|
|
228
|
+
/**
|
|
229
|
+
* Text direction.
|
|
230
|
+
* @default 'ltr'
|
|
231
|
+
*/
|
|
232
|
+
labelDir = 'ltr';
|
|
233
|
+
/**
|
|
234
|
+
* BCP-47 language tag (e.g. `'en'`, `'ar'`, `'fr'`).
|
|
235
|
+
*/
|
|
236
|
+
labelLang = '';
|
|
237
|
+
// ─── Enterprise attributes ────────────────────────────────────────────────
|
|
238
|
+
/**
|
|
239
|
+
* DOM `id` for the root element. Auto-generated if not provided.
|
|
240
|
+
*/
|
|
241
|
+
labelId = '';
|
|
242
|
+
/**
|
|
243
|
+
* Logical name (maps to `name` attribute on the inner label).
|
|
244
|
+
*/
|
|
245
|
+
name = '';
|
|
246
|
+
/**
|
|
247
|
+
* `data-testid` attribute for automated testing.
|
|
248
|
+
*/
|
|
249
|
+
testId = '';
|
|
250
|
+
/**
|
|
251
|
+
* `data-automation-id` attribute for RPA / automation tooling.
|
|
252
|
+
*/
|
|
253
|
+
automationId = '';
|
|
254
|
+
// ─── Events ───────────────────────────────────────────────────────────────
|
|
255
|
+
/**
|
|
256
|
+
* Fired when the label element is clicked (requires `clickable` or naturally via `for`).
|
|
257
|
+
*/
|
|
258
|
+
labelClick;
|
|
259
|
+
/**
|
|
260
|
+
* Fired when the label receives focus (passes through from the native label).
|
|
261
|
+
*/
|
|
262
|
+
labelFocus;
|
|
263
|
+
/**
|
|
264
|
+
* Fired when the label loses focus.
|
|
265
|
+
*/
|
|
266
|
+
labelBlur;
|
|
267
|
+
/**
|
|
268
|
+
* Fired after text is successfully copied to the clipboard (`copyable` must be true).
|
|
269
|
+
*/
|
|
270
|
+
labelCopy;
|
|
271
|
+
// ─── Watchers ─────────────────────────────────────────────────────────────
|
|
272
|
+
onFocusedChanged(val) {
|
|
273
|
+
this._isFocused = val;
|
|
274
|
+
}
|
|
275
|
+
// ─── Lifecycle ────────────────────────────────────────────────────────────
|
|
276
|
+
componentWillLoad() {
|
|
277
|
+
// Sync prop → state so imperative updates also trigger re-render.
|
|
278
|
+
this._isFocused = this.focused;
|
|
279
|
+
// Auto-generate a stable ID when none is supplied (needed for aria-describedby linkage).
|
|
280
|
+
if (!this.labelId) {
|
|
281
|
+
this.labelId = `ui-label-${Math.random().toString(36).slice(2, 9)}`;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
// ─── Public API (Methods) ─────────────────────────────────────────────────
|
|
285
|
+
/**
|
|
286
|
+
* Programmatically focus the label element.
|
|
287
|
+
* Useful when the owning form-field component proxies focus behaviour.
|
|
288
|
+
*/
|
|
289
|
+
async setFocus() {
|
|
290
|
+
this.el.shadowRoot?.querySelector('.label-root')?.focus();
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Programmatically trigger the copy-to-clipboard action.
|
|
294
|
+
*/
|
|
295
|
+
async copyText() {
|
|
296
|
+
await this._handleCopy();
|
|
297
|
+
}
|
|
298
|
+
// ─── Private helpers ─────────────────────────────────────────────────────
|
|
299
|
+
/** Resolve the `for`/`htmlFor` target ID with fallback chain. */
|
|
300
|
+
get _forId() {
|
|
301
|
+
return this.controlId || this.htmlFor || this.target || undefined;
|
|
302
|
+
}
|
|
303
|
+
/** Build the `aria-describedby` string used by the inner label. */
|
|
304
|
+
get _describedBy() {
|
|
305
|
+
const parts = [];
|
|
306
|
+
if (this.ariaDescribedby)
|
|
307
|
+
parts.push(this.ariaDescribedby);
|
|
308
|
+
if (this.helperText)
|
|
309
|
+
parts.push(`${this.labelId}-hint`);
|
|
310
|
+
if (this.invalid && this.errorText)
|
|
311
|
+
parts.push(`${this.labelId}-error`);
|
|
312
|
+
if (this.successText && !this.invalid)
|
|
313
|
+
parts.push(`${this.labelId}-success`);
|
|
314
|
+
return parts.join(' ');
|
|
315
|
+
}
|
|
316
|
+
/** Resolved label text — prefer the `label` prop, child text is handled via slot. */
|
|
317
|
+
get _text() {
|
|
318
|
+
return this.label || '';
|
|
319
|
+
}
|
|
320
|
+
_handleClick = (e) => {
|
|
321
|
+
if (this.disabled)
|
|
322
|
+
return;
|
|
323
|
+
this.labelClick.emit({
|
|
324
|
+
originalEvent: e,
|
|
325
|
+
text: this._text || this.el.textContent?.trim() || '',
|
|
326
|
+
targetId: this._forId,
|
|
327
|
+
});
|
|
328
|
+
};
|
|
329
|
+
_handleFocus = () => {
|
|
330
|
+
this._isFocused = true;
|
|
331
|
+
this.labelFocus.emit();
|
|
332
|
+
};
|
|
333
|
+
_handleBlur = () => {
|
|
334
|
+
this._isFocused = false;
|
|
335
|
+
this.labelBlur.emit();
|
|
336
|
+
};
|
|
337
|
+
_handleCopy = async () => {
|
|
338
|
+
const text = this._text || this.el.textContent?.trim() || '';
|
|
339
|
+
if (!text)
|
|
340
|
+
return;
|
|
341
|
+
try {
|
|
342
|
+
await navigator.clipboard.writeText(text);
|
|
343
|
+
this.labelCopy.emit({ text });
|
|
344
|
+
}
|
|
345
|
+
catch {
|
|
346
|
+
// Clipboard API unavailable — silent failure.
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
_toggleTooltip = () => {
|
|
350
|
+
this._tooltipOpen = !this._tooltipOpen;
|
|
351
|
+
};
|
|
352
|
+
_closeTooltip = () => {
|
|
353
|
+
this._tooltipOpen = false;
|
|
354
|
+
};
|
|
355
|
+
// ─── CSS class helpers ────────────────────────────────────────────────────
|
|
356
|
+
_rootClasses() {
|
|
357
|
+
return {
|
|
358
|
+
'label-root': true,
|
|
359
|
+
[`label-size-${this.size}`]: true,
|
|
360
|
+
[`label-weight-${this.weight}`]: true,
|
|
361
|
+
[`label-variant-${this.variant}`]: true,
|
|
362
|
+
[`label-align-${this.align}`]: true,
|
|
363
|
+
[`label-orientation-${this.orientation}`]: true,
|
|
364
|
+
'label-truncate': this.truncate && !this.multiline,
|
|
365
|
+
'label-multiline': this.multiline,
|
|
366
|
+
'label-inline': this.inline,
|
|
367
|
+
'label-block': this.block,
|
|
368
|
+
'label-disabled': this.disabled,
|
|
369
|
+
'label-readonly': this.readonly,
|
|
370
|
+
'label-invalid': this.invalid,
|
|
371
|
+
'label-focused': this._isFocused,
|
|
372
|
+
'label-loading': this.loading,
|
|
373
|
+
'label-clickable': this.clickable,
|
|
374
|
+
'label-selectable': this.selectable,
|
|
375
|
+
'label-copyable': this.copyable,
|
|
376
|
+
'label-icon-only': this.iconOnly,
|
|
377
|
+
'label-responsive': this.responsive,
|
|
378
|
+
'label-mobile-stack': this.mobileStack,
|
|
379
|
+
'label-rtl': this.labelDir === 'rtl',
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
// ─── Sub-renders ──────────────────────────────────────────────────────────
|
|
383
|
+
_renderRequiredIndicator() {
|
|
384
|
+
// Custom slot wins
|
|
385
|
+
const slotContent = this.el.querySelector('[slot="required-indicator"]');
|
|
386
|
+
if (slotContent) {
|
|
387
|
+
return h("slot", { name: "required-indicator" });
|
|
388
|
+
}
|
|
389
|
+
return (h("span", { class: "label-required", "aria-hidden": "true", title: "Required field" }, "*"));
|
|
390
|
+
}
|
|
391
|
+
_renderOptionalBadge() {
|
|
392
|
+
return (h("span", { class: "label-optional", "aria-hidden": "true" }, "(optional)"));
|
|
393
|
+
}
|
|
394
|
+
_renderIcon(name, position) {
|
|
395
|
+
return (h("span", { class: `label-icon label-icon-${position}`, "aria-hidden": "true", innerHTML: name }));
|
|
396
|
+
}
|
|
397
|
+
_renderTooltipTrigger() {
|
|
398
|
+
const hasTooltip = this.tooltip || this.el.querySelector('[slot="tooltip"]');
|
|
399
|
+
if (!hasTooltip)
|
|
400
|
+
return null;
|
|
401
|
+
return (h("button", { type: "button", class: `label-tooltip-trigger${this._tooltipOpen ? ' is-open' : ''}`, "aria-label": "More information", "aria-expanded": this._tooltipOpen ? 'true' : 'false', "aria-haspopup": "true", onClick: this._toggleTooltip, onBlur: this._closeTooltip }, h("span", { "aria-hidden": "true" }, this.tooltipIcon)));
|
|
402
|
+
}
|
|
403
|
+
_renderTooltipCallout() {
|
|
404
|
+
if (!this._tooltipOpen)
|
|
405
|
+
return null;
|
|
406
|
+
return (h("div", { role: "tooltip", class: `label-tooltip label-tooltip-${this.tooltipPosition}`, id: `${this.labelId}-tooltip` }, this.tooltip ? (h("span", { class: "label-tooltip-text" }, this.tooltip)) : (h("slot", { name: "tooltip" }))));
|
|
407
|
+
}
|
|
408
|
+
_renderCopyButton() {
|
|
409
|
+
return (h("button", { type: "button", class: "label-copy-btn", "aria-label": "Copy to clipboard", onClick: this._handleCopy, tabIndex: -1 }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", width: "14", height: "14", "aria-hidden": "true" }, h("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), h("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }))));
|
|
410
|
+
}
|
|
411
|
+
_renderSubText() {
|
|
412
|
+
const showError = this.invalid && this.errorText;
|
|
413
|
+
const showSuccess = !this.invalid && this.successText;
|
|
414
|
+
const showHelper = !showError && !showSuccess && this.helperText;
|
|
415
|
+
const hasHintSlot = !!this.el.querySelector('[slot="hint"]');
|
|
416
|
+
if (!showError && !showSuccess && !showHelper && !hasHintSlot)
|
|
417
|
+
return null;
|
|
418
|
+
return (h("div", { class: "label-sub" }, showError && (h("span", { id: `${this.labelId}-error`, class: "label-error-text", role: "alert", "aria-live": "assertive" }, h("span", { class: "label-sub-icon", "aria-hidden": "true" }, "\u2715"), this.errorText)), showSuccess && (h("span", { id: `${this.labelId}-success`, class: "label-success-text" }, h("span", { class: "label-sub-icon", "aria-hidden": "true" }, "\u2713"), this.successText)), showHelper && (h("span", { id: `${this.labelId}-hint`, class: "label-hint-text" }, this.helperText)), hasHintSlot && (h("span", { id: `${this.labelId}-hint`, class: "label-hint-text" }, h("slot", { name: "hint" })))));
|
|
419
|
+
}
|
|
420
|
+
_renderLoadingSkeleton() {
|
|
421
|
+
return (h("span", { class: "label-skeleton", "aria-hidden": "true" }, h("span", { class: "label-skeleton-bar" })));
|
|
422
|
+
}
|
|
423
|
+
// ─── Inline styles ────────────────────────────────────────────────────────
|
|
424
|
+
_hostStyle() {
|
|
425
|
+
const s = {};
|
|
426
|
+
if (this.gap)
|
|
427
|
+
s['--ui-label-gap'] = this.gap;
|
|
428
|
+
if (this.margin)
|
|
429
|
+
s['margin'] = this.margin;
|
|
430
|
+
if (this.padding)
|
|
431
|
+
s['padding'] = this.padding;
|
|
432
|
+
return s;
|
|
433
|
+
}
|
|
434
|
+
_lineClampStyle() {
|
|
435
|
+
if (this.multiline && this.lineClamp > 0) {
|
|
436
|
+
return {
|
|
437
|
+
'-webkit-line-clamp': String(this.lineClamp),
|
|
438
|
+
'line-clamp': String(this.lineClamp),
|
|
439
|
+
'display': '-webkit-box',
|
|
440
|
+
'-webkit-box-orient': 'vertical',
|
|
441
|
+
'overflow': 'hidden',
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
return undefined;
|
|
445
|
+
}
|
|
446
|
+
// ─── Render ───────────────────────────────────────────────────────────────
|
|
447
|
+
render() {
|
|
448
|
+
const labelFor = this._forId;
|
|
449
|
+
const describedBy = this._describedBy;
|
|
450
|
+
const labelProps = {
|
|
451
|
+
class: this._rootClasses(),
|
|
452
|
+
id: this.labelId || undefined,
|
|
453
|
+
for: labelFor,
|
|
454
|
+
'aria-label': this.ariaLabel || undefined,
|
|
455
|
+
'aria-describedby': describedBy || undefined,
|
|
456
|
+
'aria-live': this.ariaLive !== 'off' ? this.ariaLive : undefined,
|
|
457
|
+
'aria-disabled': this.disabled ? 'true' : undefined,
|
|
458
|
+
'data-testid': this.testId || undefined,
|
|
459
|
+
'data-automation-id': this.automationId || undefined,
|
|
460
|
+
onClick: this._handleClick,
|
|
461
|
+
onFocus: this._handleFocus,
|
|
462
|
+
onBlur: this._handleBlur,
|
|
463
|
+
};
|
|
464
|
+
if (this.name)
|
|
465
|
+
labelProps['name'] = this.name;
|
|
466
|
+
if (this.labelLang)
|
|
467
|
+
labelProps['lang'] = this.labelLang;
|
|
468
|
+
return (h(Host, { key: 'b67618ecbef75ae6ead3a609ff206a36b11de621', dir: this.labelDir, style: this._hostStyle(), class: {
|
|
469
|
+
'ui-label-host': true,
|
|
470
|
+
'is-inline': this.inline,
|
|
471
|
+
'is-block': this.block,
|
|
472
|
+
} }, h("label", { key: 'dc257dd21c76648e75c1e14204668a19e1baf662', ...labelProps }, h("slot", { key: 'c6932b813c6b1f83ea7e56101214cc7c55405fae', name: "start" }), this.startIcon && !this.iconOnly && this._renderIcon(this.startIcon, 'start'), h("span", { key: '30a20e30976ba791ebcf4f0644c3ebf0987970a6', class: "label-text", style: this._lineClampStyle() }, this.loading ? (this._renderLoadingSkeleton()) : (h("span", { class: this.iconOnly ? 'visually-hidden' : undefined }, this._text, h("slot", null)))), this.required && !this.disabled && this._renderRequiredIndicator(), this.optional && !this.required && this._renderOptionalBadge(), this.endIcon && this._renderIcon(this.endIcon, 'end'), h("slot", { key: '2ac12fa6019e520ad11ceead3d3f1b08dd29482d', name: "end" }), this._renderTooltipTrigger(), this.copyable && this._renderCopyButton()), this._renderTooltipCallout(), this._renderSubText()));
|
|
473
|
+
}
|
|
474
|
+
static get is() { return "ui-label"; }
|
|
475
|
+
static get encapsulation() { return "shadow"; }
|
|
476
|
+
static get originalStyleUrls() {
|
|
477
|
+
return {
|
|
478
|
+
"$": ["label.scss"]
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
static get styleUrls() {
|
|
482
|
+
return {
|
|
483
|
+
"$": ["label.css"]
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
static get properties() {
|
|
487
|
+
return {
|
|
488
|
+
"htmlFor": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"mutable": false,
|
|
491
|
+
"complexType": {
|
|
492
|
+
"original": "string",
|
|
493
|
+
"resolved": "string",
|
|
494
|
+
"references": {}
|
|
495
|
+
},
|
|
496
|
+
"required": false,
|
|
497
|
+
"optional": false,
|
|
498
|
+
"docs": {
|
|
499
|
+
"tags": [],
|
|
500
|
+
"text": "ID of the form control this label is associated with.\r\nRenders as a native `for` attribute on the underlying `<label>` element.\r\nSupports all standard form controls as well as custom web components."
|
|
501
|
+
},
|
|
502
|
+
"getter": false,
|
|
503
|
+
"setter": false,
|
|
504
|
+
"reflect": false,
|
|
505
|
+
"attribute": "html-for"
|
|
506
|
+
},
|
|
507
|
+
"controlId": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"mutable": false,
|
|
510
|
+
"complexType": {
|
|
511
|
+
"original": "string",
|
|
512
|
+
"resolved": "string",
|
|
513
|
+
"references": {}
|
|
514
|
+
},
|
|
515
|
+
"required": false,
|
|
516
|
+
"optional": false,
|
|
517
|
+
"docs": {
|
|
518
|
+
"tags": [],
|
|
519
|
+
"text": "Alias for `htmlFor`. `controlId` takes precedence if both are supplied."
|
|
520
|
+
},
|
|
521
|
+
"getter": false,
|
|
522
|
+
"setter": false,
|
|
523
|
+
"reflect": false,
|
|
524
|
+
"attribute": "control-id"
|
|
525
|
+
},
|
|
526
|
+
"target": {
|
|
527
|
+
"type": "string",
|
|
528
|
+
"mutable": false,
|
|
529
|
+
"complexType": {
|
|
530
|
+
"original": "string",
|
|
531
|
+
"resolved": "string",
|
|
532
|
+
"references": {}
|
|
533
|
+
},
|
|
534
|
+
"required": false,
|
|
535
|
+
"optional": false,
|
|
536
|
+
"docs": {
|
|
537
|
+
"tags": [],
|
|
538
|
+
"text": "Deprecated alias kept for back-compat. Prefer `htmlFor`."
|
|
539
|
+
},
|
|
540
|
+
"getter": false,
|
|
541
|
+
"setter": false,
|
|
542
|
+
"reflect": false,
|
|
543
|
+
"attribute": "target"
|
|
544
|
+
},
|
|
545
|
+
"label": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"mutable": false,
|
|
548
|
+
"complexType": {
|
|
549
|
+
"original": "string",
|
|
550
|
+
"resolved": "string",
|
|
551
|
+
"references": {}
|
|
552
|
+
},
|
|
553
|
+
"required": false,
|
|
554
|
+
"optional": false,
|
|
555
|
+
"docs": {
|
|
556
|
+
"tags": [],
|
|
557
|
+
"text": "Plain-text label. Use the default slot for rich/HTML content instead."
|
|
558
|
+
},
|
|
559
|
+
"getter": false,
|
|
560
|
+
"setter": false,
|
|
561
|
+
"reflect": false,
|
|
562
|
+
"attribute": "label",
|
|
563
|
+
"defaultValue": "''"
|
|
564
|
+
},
|
|
565
|
+
"size": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"mutable": false,
|
|
568
|
+
"complexType": {
|
|
569
|
+
"original": "LabelSize",
|
|
570
|
+
"resolved": "\"jumbo\" | \"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\" | \"xxl\" | \"xxs\" | \"xxxl\"",
|
|
571
|
+
"references": {
|
|
572
|
+
"LabelSize": {
|
|
573
|
+
"location": "import",
|
|
574
|
+
"path": "./types",
|
|
575
|
+
"id": "src/components/label/types.ts::LabelSize",
|
|
576
|
+
"referenceLocation": "LabelSize"
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"required": false,
|
|
581
|
+
"optional": false,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [{
|
|
584
|
+
"name": "default",
|
|
585
|
+
"text": "'md'"
|
|
586
|
+
}],
|
|
587
|
+
"text": "Semantic size token."
|
|
588
|
+
},
|
|
589
|
+
"getter": false,
|
|
590
|
+
"setter": false,
|
|
591
|
+
"reflect": false,
|
|
592
|
+
"attribute": "size",
|
|
593
|
+
"defaultValue": "'md'"
|
|
594
|
+
},
|
|
595
|
+
"weight": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"mutable": false,
|
|
598
|
+
"complexType": {
|
|
599
|
+
"original": "LabelWeight",
|
|
600
|
+
"resolved": "\"bold\" | \"light\" | \"medium\" | \"normal\" | \"semibold\"",
|
|
601
|
+
"references": {
|
|
602
|
+
"LabelWeight": {
|
|
603
|
+
"location": "import",
|
|
604
|
+
"path": "./types",
|
|
605
|
+
"id": "src/components/label/types.ts::LabelWeight",
|
|
606
|
+
"referenceLocation": "LabelWeight"
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
"required": false,
|
|
611
|
+
"optional": false,
|
|
612
|
+
"docs": {
|
|
613
|
+
"tags": [{
|
|
614
|
+
"name": "default",
|
|
615
|
+
"text": "'medium'"
|
|
616
|
+
}],
|
|
617
|
+
"text": "Font-weight scale."
|
|
618
|
+
},
|
|
619
|
+
"getter": false,
|
|
620
|
+
"setter": false,
|
|
621
|
+
"reflect": false,
|
|
622
|
+
"attribute": "weight",
|
|
623
|
+
"defaultValue": "'medium'"
|
|
624
|
+
},
|
|
625
|
+
"transform": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"mutable": false,
|
|
628
|
+
"complexType": {
|
|
629
|
+
"original": "LabelTransform",
|
|
630
|
+
"resolved": "\"capitalize\" | \"lowercase\" | \"none\" | \"uppercase\"",
|
|
631
|
+
"references": {
|
|
632
|
+
"LabelTransform": {
|
|
633
|
+
"location": "import",
|
|
634
|
+
"path": "./types",
|
|
635
|
+
"id": "src/components/label/types.ts::LabelTransform",
|
|
636
|
+
"referenceLocation": "LabelTransform"
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"required": false,
|
|
641
|
+
"optional": false,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [{
|
|
644
|
+
"name": "default",
|
|
645
|
+
"text": "'none'"
|
|
646
|
+
}],
|
|
647
|
+
"text": "CSS text-transform value."
|
|
648
|
+
},
|
|
649
|
+
"getter": false,
|
|
650
|
+
"setter": false,
|
|
651
|
+
"reflect": false,
|
|
652
|
+
"attribute": "transform",
|
|
653
|
+
"defaultValue": "'none'"
|
|
654
|
+
},
|
|
655
|
+
"truncate": {
|
|
656
|
+
"type": "boolean",
|
|
657
|
+
"mutable": false,
|
|
658
|
+
"complexType": {
|
|
659
|
+
"original": "boolean",
|
|
660
|
+
"resolved": "boolean",
|
|
661
|
+
"references": {}
|
|
662
|
+
},
|
|
663
|
+
"required": false,
|
|
664
|
+
"optional": false,
|
|
665
|
+
"docs": {
|
|
666
|
+
"tags": [],
|
|
667
|
+
"text": "Single-line truncation with ellipsis."
|
|
668
|
+
},
|
|
669
|
+
"getter": false,
|
|
670
|
+
"setter": false,
|
|
671
|
+
"reflect": false,
|
|
672
|
+
"attribute": "truncate",
|
|
673
|
+
"defaultValue": "false"
|
|
674
|
+
},
|
|
675
|
+
"multiline": {
|
|
676
|
+
"type": "boolean",
|
|
677
|
+
"mutable": false,
|
|
678
|
+
"complexType": {
|
|
679
|
+
"original": "boolean",
|
|
680
|
+
"resolved": "boolean",
|
|
681
|
+
"references": {}
|
|
682
|
+
},
|
|
683
|
+
"required": false,
|
|
684
|
+
"optional": false,
|
|
685
|
+
"docs": {
|
|
686
|
+
"tags": [],
|
|
687
|
+
"text": "Allow text to wrap across multiple lines (disables truncation)."
|
|
688
|
+
},
|
|
689
|
+
"getter": false,
|
|
690
|
+
"setter": false,
|
|
691
|
+
"reflect": false,
|
|
692
|
+
"attribute": "multiline",
|
|
693
|
+
"defaultValue": "false"
|
|
694
|
+
},
|
|
695
|
+
"lineClamp": {
|
|
696
|
+
"type": "number",
|
|
697
|
+
"mutable": false,
|
|
698
|
+
"complexType": {
|
|
699
|
+
"original": "number",
|
|
700
|
+
"resolved": "number",
|
|
701
|
+
"references": {}
|
|
702
|
+
},
|
|
703
|
+
"required": false,
|
|
704
|
+
"optional": false,
|
|
705
|
+
"docs": {
|
|
706
|
+
"tags": [],
|
|
707
|
+
"text": "Clamp to N visible lines (CSS `line-clamp`). Requires `multiline` to be true."
|
|
708
|
+
},
|
|
709
|
+
"getter": false,
|
|
710
|
+
"setter": false,
|
|
711
|
+
"reflect": false,
|
|
712
|
+
"attribute": "line-clamp",
|
|
713
|
+
"defaultValue": "0"
|
|
714
|
+
},
|
|
715
|
+
"variant": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"mutable": false,
|
|
718
|
+
"complexType": {
|
|
719
|
+
"original": "LabelVariant",
|
|
720
|
+
"resolved": "\"danger\" | \"default\" | \"info\" | \"muted\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
|
|
721
|
+
"references": {
|
|
722
|
+
"LabelVariant": {
|
|
723
|
+
"location": "import",
|
|
724
|
+
"path": "./types",
|
|
725
|
+
"id": "src/components/label/types.ts::LabelVariant",
|
|
726
|
+
"referenceLocation": "LabelVariant"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"required": false,
|
|
731
|
+
"optional": false,
|
|
732
|
+
"docs": {
|
|
733
|
+
"tags": [{
|
|
734
|
+
"name": "default",
|
|
735
|
+
"text": "'default'"
|
|
736
|
+
}],
|
|
737
|
+
"text": "Colour variant."
|
|
738
|
+
},
|
|
739
|
+
"getter": false,
|
|
740
|
+
"setter": false,
|
|
741
|
+
"reflect": false,
|
|
742
|
+
"attribute": "variant",
|
|
743
|
+
"defaultValue": "'default'"
|
|
744
|
+
},
|
|
745
|
+
"required": {
|
|
746
|
+
"type": "boolean",
|
|
747
|
+
"mutable": false,
|
|
748
|
+
"complexType": {
|
|
749
|
+
"original": "boolean",
|
|
750
|
+
"resolved": "boolean",
|
|
751
|
+
"references": {}
|
|
752
|
+
},
|
|
753
|
+
"required": false,
|
|
754
|
+
"optional": false,
|
|
755
|
+
"docs": {
|
|
756
|
+
"tags": [],
|
|
757
|
+
"text": "Marks the associated field as required.\r\nShows a required indicator (asterisk by default) and sets `aria-required` on the\r\nlinked control if possible."
|
|
758
|
+
},
|
|
759
|
+
"getter": false,
|
|
760
|
+
"setter": false,
|
|
761
|
+
"reflect": false,
|
|
762
|
+
"attribute": "required",
|
|
763
|
+
"defaultValue": "false"
|
|
764
|
+
},
|
|
765
|
+
"optional": {
|
|
766
|
+
"type": "boolean",
|
|
767
|
+
"mutable": false,
|
|
768
|
+
"complexType": {
|
|
769
|
+
"original": "boolean",
|
|
770
|
+
"resolved": "boolean",
|
|
771
|
+
"references": {}
|
|
772
|
+
},
|
|
773
|
+
"required": false,
|
|
774
|
+
"optional": false,
|
|
775
|
+
"docs": {
|
|
776
|
+
"tags": [],
|
|
777
|
+
"text": "Shows \"(optional)\" hint text next to the label.\r\nMutually exclusive with `required` \u2014 `required` wins if both are set."
|
|
778
|
+
},
|
|
779
|
+
"getter": false,
|
|
780
|
+
"setter": false,
|
|
781
|
+
"reflect": false,
|
|
782
|
+
"attribute": "optional",
|
|
783
|
+
"defaultValue": "false"
|
|
784
|
+
},
|
|
785
|
+
"disabled": {
|
|
786
|
+
"type": "boolean",
|
|
787
|
+
"mutable": false,
|
|
788
|
+
"complexType": {
|
|
789
|
+
"original": "boolean",
|
|
790
|
+
"resolved": "boolean",
|
|
791
|
+
"references": {}
|
|
792
|
+
},
|
|
793
|
+
"required": false,
|
|
794
|
+
"optional": false,
|
|
795
|
+
"docs": {
|
|
796
|
+
"tags": [],
|
|
797
|
+
"text": "Applies disabled styling and prevents interaction."
|
|
798
|
+
},
|
|
799
|
+
"getter": false,
|
|
800
|
+
"setter": false,
|
|
801
|
+
"reflect": false,
|
|
802
|
+
"attribute": "disabled",
|
|
803
|
+
"defaultValue": "false"
|
|
804
|
+
},
|
|
805
|
+
"readonly": {
|
|
806
|
+
"type": "boolean",
|
|
807
|
+
"mutable": false,
|
|
808
|
+
"complexType": {
|
|
809
|
+
"original": "boolean",
|
|
810
|
+
"resolved": "boolean",
|
|
811
|
+
"references": {}
|
|
812
|
+
},
|
|
813
|
+
"required": false,
|
|
814
|
+
"optional": false,
|
|
815
|
+
"docs": {
|
|
816
|
+
"tags": [],
|
|
817
|
+
"text": "Applies read-only styling (dimmed, no pointer events)."
|
|
818
|
+
},
|
|
819
|
+
"getter": false,
|
|
820
|
+
"setter": false,
|
|
821
|
+
"reflect": false,
|
|
822
|
+
"attribute": "readonly",
|
|
823
|
+
"defaultValue": "false"
|
|
824
|
+
},
|
|
825
|
+
"invalid": {
|
|
826
|
+
"type": "boolean",
|
|
827
|
+
"mutable": false,
|
|
828
|
+
"complexType": {
|
|
829
|
+
"original": "boolean",
|
|
830
|
+
"resolved": "boolean",
|
|
831
|
+
"references": {}
|
|
832
|
+
},
|
|
833
|
+
"required": false,
|
|
834
|
+
"optional": false,
|
|
835
|
+
"docs": {
|
|
836
|
+
"tags": [],
|
|
837
|
+
"text": "Applies invalid / error styling to the label."
|
|
838
|
+
},
|
|
839
|
+
"getter": false,
|
|
840
|
+
"setter": false,
|
|
841
|
+
"reflect": false,
|
|
842
|
+
"attribute": "invalid",
|
|
843
|
+
"defaultValue": "false"
|
|
844
|
+
},
|
|
845
|
+
"focused": {
|
|
846
|
+
"type": "boolean",
|
|
847
|
+
"mutable": false,
|
|
848
|
+
"complexType": {
|
|
849
|
+
"original": "boolean",
|
|
850
|
+
"resolved": "boolean",
|
|
851
|
+
"references": {}
|
|
852
|
+
},
|
|
853
|
+
"required": false,
|
|
854
|
+
"optional": false,
|
|
855
|
+
"docs": {
|
|
856
|
+
"tags": [],
|
|
857
|
+
"text": "Mirrors the focused state of the associated control so the label can react visually."
|
|
858
|
+
},
|
|
859
|
+
"getter": false,
|
|
860
|
+
"setter": false,
|
|
861
|
+
"reflect": false,
|
|
862
|
+
"attribute": "focused",
|
|
863
|
+
"defaultValue": "false"
|
|
864
|
+
},
|
|
865
|
+
"loading": {
|
|
866
|
+
"type": "boolean",
|
|
867
|
+
"mutable": false,
|
|
868
|
+
"complexType": {
|
|
869
|
+
"original": "boolean",
|
|
870
|
+
"resolved": "boolean",
|
|
871
|
+
"references": {}
|
|
872
|
+
},
|
|
873
|
+
"required": false,
|
|
874
|
+
"optional": false,
|
|
875
|
+
"docs": {
|
|
876
|
+
"tags": [],
|
|
877
|
+
"text": "Shows a loading skeleton overlaid on the label text."
|
|
878
|
+
},
|
|
879
|
+
"getter": false,
|
|
880
|
+
"setter": false,
|
|
881
|
+
"reflect": false,
|
|
882
|
+
"attribute": "loading",
|
|
883
|
+
"defaultValue": "false"
|
|
884
|
+
},
|
|
885
|
+
"errorText": {
|
|
886
|
+
"type": "string",
|
|
887
|
+
"mutable": false,
|
|
888
|
+
"complexType": {
|
|
889
|
+
"original": "string",
|
|
890
|
+
"resolved": "string",
|
|
891
|
+
"references": {}
|
|
892
|
+
},
|
|
893
|
+
"required": false,
|
|
894
|
+
"optional": false,
|
|
895
|
+
"docs": {
|
|
896
|
+
"tags": [],
|
|
897
|
+
"text": "Error message shown below the label when `invalid` is true."
|
|
898
|
+
},
|
|
899
|
+
"getter": false,
|
|
900
|
+
"setter": false,
|
|
901
|
+
"reflect": false,
|
|
902
|
+
"attribute": "error-text",
|
|
903
|
+
"defaultValue": "''"
|
|
904
|
+
},
|
|
905
|
+
"successText": {
|
|
906
|
+
"type": "string",
|
|
907
|
+
"mutable": false,
|
|
908
|
+
"complexType": {
|
|
909
|
+
"original": "string",
|
|
910
|
+
"resolved": "string",
|
|
911
|
+
"references": {}
|
|
912
|
+
},
|
|
913
|
+
"required": false,
|
|
914
|
+
"optional": false,
|
|
915
|
+
"docs": {
|
|
916
|
+
"tags": [],
|
|
917
|
+
"text": "Success message shown below the label when the field is valid and this text is set."
|
|
918
|
+
},
|
|
919
|
+
"getter": false,
|
|
920
|
+
"setter": false,
|
|
921
|
+
"reflect": false,
|
|
922
|
+
"attribute": "success-text",
|
|
923
|
+
"defaultValue": "''"
|
|
924
|
+
},
|
|
925
|
+
"helperText": {
|
|
926
|
+
"type": "string",
|
|
927
|
+
"mutable": false,
|
|
928
|
+
"complexType": {
|
|
929
|
+
"original": "string",
|
|
930
|
+
"resolved": "string",
|
|
931
|
+
"references": {}
|
|
932
|
+
},
|
|
933
|
+
"required": false,
|
|
934
|
+
"optional": false,
|
|
935
|
+
"docs": {
|
|
936
|
+
"tags": [],
|
|
937
|
+
"text": "Helper / hint text shown below the label."
|
|
938
|
+
},
|
|
939
|
+
"getter": false,
|
|
940
|
+
"setter": false,
|
|
941
|
+
"reflect": false,
|
|
942
|
+
"attribute": "helper-text",
|
|
943
|
+
"defaultValue": "''"
|
|
944
|
+
},
|
|
945
|
+
"ariaLabel": {
|
|
946
|
+
"type": "string",
|
|
947
|
+
"mutable": false,
|
|
948
|
+
"complexType": {
|
|
949
|
+
"original": "string",
|
|
950
|
+
"resolved": "string",
|
|
951
|
+
"references": {}
|
|
952
|
+
},
|
|
953
|
+
"required": false,
|
|
954
|
+
"optional": false,
|
|
955
|
+
"docs": {
|
|
956
|
+
"tags": [],
|
|
957
|
+
"text": "Sets `aria-label` on the root element."
|
|
958
|
+
},
|
|
959
|
+
"getter": false,
|
|
960
|
+
"setter": false,
|
|
961
|
+
"reflect": false,
|
|
962
|
+
"attribute": "aria-label",
|
|
963
|
+
"defaultValue": "''"
|
|
964
|
+
},
|
|
965
|
+
"ariaDescribedby": {
|
|
966
|
+
"type": "string",
|
|
967
|
+
"mutable": false,
|
|
968
|
+
"complexType": {
|
|
969
|
+
"original": "string",
|
|
970
|
+
"resolved": "string",
|
|
971
|
+
"references": {}
|
|
972
|
+
},
|
|
973
|
+
"required": false,
|
|
974
|
+
"optional": false,
|
|
975
|
+
"docs": {
|
|
976
|
+
"tags": [],
|
|
977
|
+
"text": "IDs of elements that describe this label (space-separated)."
|
|
978
|
+
},
|
|
979
|
+
"getter": false,
|
|
980
|
+
"setter": false,
|
|
981
|
+
"reflect": false,
|
|
982
|
+
"attribute": "aria-describedby",
|
|
983
|
+
"defaultValue": "''"
|
|
984
|
+
},
|
|
985
|
+
"ariaLive": {
|
|
986
|
+
"type": "string",
|
|
987
|
+
"mutable": false,
|
|
988
|
+
"complexType": {
|
|
989
|
+
"original": "LabelAriaLive",
|
|
990
|
+
"resolved": "\"assertive\" | \"off\" | \"polite\"",
|
|
991
|
+
"references": {
|
|
992
|
+
"LabelAriaLive": {
|
|
993
|
+
"location": "import",
|
|
994
|
+
"path": "./types",
|
|
995
|
+
"id": "src/components/label/types.ts::LabelAriaLive",
|
|
996
|
+
"referenceLocation": "LabelAriaLive"
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
"required": false,
|
|
1001
|
+
"optional": false,
|
|
1002
|
+
"docs": {
|
|
1003
|
+
"tags": [{
|
|
1004
|
+
"name": "default",
|
|
1005
|
+
"text": "'off'"
|
|
1006
|
+
}],
|
|
1007
|
+
"text": "Live-region politeness for dynamic content announcements."
|
|
1008
|
+
},
|
|
1009
|
+
"getter": false,
|
|
1010
|
+
"setter": false,
|
|
1011
|
+
"reflect": false,
|
|
1012
|
+
"attribute": "aria-live",
|
|
1013
|
+
"defaultValue": "'off'"
|
|
1014
|
+
},
|
|
1015
|
+
"orientation": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"mutable": false,
|
|
1018
|
+
"complexType": {
|
|
1019
|
+
"original": "LabelOrientation",
|
|
1020
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
1021
|
+
"references": {
|
|
1022
|
+
"LabelOrientation": {
|
|
1023
|
+
"location": "import",
|
|
1024
|
+
"path": "./types",
|
|
1025
|
+
"id": "src/components/label/types.ts::LabelOrientation",
|
|
1026
|
+
"referenceLocation": "LabelOrientation"
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"required": false,
|
|
1031
|
+
"optional": false,
|
|
1032
|
+
"docs": {
|
|
1033
|
+
"tags": [{
|
|
1034
|
+
"name": "default",
|
|
1035
|
+
"text": "'vertical'"
|
|
1036
|
+
}],
|
|
1037
|
+
"text": "Stack direction when used alongside a form control."
|
|
1038
|
+
},
|
|
1039
|
+
"getter": false,
|
|
1040
|
+
"setter": false,
|
|
1041
|
+
"reflect": false,
|
|
1042
|
+
"attribute": "orientation",
|
|
1043
|
+
"defaultValue": "'vertical'"
|
|
1044
|
+
},
|
|
1045
|
+
"align": {
|
|
1046
|
+
"type": "string",
|
|
1047
|
+
"mutable": false,
|
|
1048
|
+
"complexType": {
|
|
1049
|
+
"original": "LabelAlign",
|
|
1050
|
+
"resolved": "\"between\" | \"center\" | \"end\" | \"start\"",
|
|
1051
|
+
"references": {
|
|
1052
|
+
"LabelAlign": {
|
|
1053
|
+
"location": "import",
|
|
1054
|
+
"path": "./types",
|
|
1055
|
+
"id": "src/components/label/types.ts::LabelAlign",
|
|
1056
|
+
"referenceLocation": "LabelAlign"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"required": false,
|
|
1061
|
+
"optional": false,
|
|
1062
|
+
"docs": {
|
|
1063
|
+
"tags": [{
|
|
1064
|
+
"name": "default",
|
|
1065
|
+
"text": "'start'"
|
|
1066
|
+
}],
|
|
1067
|
+
"text": "Horizontal alignment of label content."
|
|
1068
|
+
},
|
|
1069
|
+
"getter": false,
|
|
1070
|
+
"setter": false,
|
|
1071
|
+
"reflect": false,
|
|
1072
|
+
"attribute": "align",
|
|
1073
|
+
"defaultValue": "'start'"
|
|
1074
|
+
},
|
|
1075
|
+
"inline": {
|
|
1076
|
+
"type": "boolean",
|
|
1077
|
+
"mutable": false,
|
|
1078
|
+
"complexType": {
|
|
1079
|
+
"original": "boolean",
|
|
1080
|
+
"resolved": "boolean",
|
|
1081
|
+
"references": {}
|
|
1082
|
+
},
|
|
1083
|
+
"required": false,
|
|
1084
|
+
"optional": false,
|
|
1085
|
+
"docs": {
|
|
1086
|
+
"tags": [],
|
|
1087
|
+
"text": "Renders as an inline-level element."
|
|
1088
|
+
},
|
|
1089
|
+
"getter": false,
|
|
1090
|
+
"setter": false,
|
|
1091
|
+
"reflect": false,
|
|
1092
|
+
"attribute": "inline",
|
|
1093
|
+
"defaultValue": "false"
|
|
1094
|
+
},
|
|
1095
|
+
"block": {
|
|
1096
|
+
"type": "boolean",
|
|
1097
|
+
"mutable": false,
|
|
1098
|
+
"complexType": {
|
|
1099
|
+
"original": "boolean",
|
|
1100
|
+
"resolved": "boolean",
|
|
1101
|
+
"references": {}
|
|
1102
|
+
},
|
|
1103
|
+
"required": false,
|
|
1104
|
+
"optional": false,
|
|
1105
|
+
"docs": {
|
|
1106
|
+
"tags": [],
|
|
1107
|
+
"text": "Forces 100 % width block layout (useful inside flex/grid parents)."
|
|
1108
|
+
},
|
|
1109
|
+
"getter": false,
|
|
1110
|
+
"setter": false,
|
|
1111
|
+
"reflect": false,
|
|
1112
|
+
"attribute": "block",
|
|
1113
|
+
"defaultValue": "false"
|
|
1114
|
+
},
|
|
1115
|
+
"gap": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"mutable": false,
|
|
1118
|
+
"complexType": {
|
|
1119
|
+
"original": "string",
|
|
1120
|
+
"resolved": "string",
|
|
1121
|
+
"references": {}
|
|
1122
|
+
},
|
|
1123
|
+
"required": false,
|
|
1124
|
+
"optional": false,
|
|
1125
|
+
"docs": {
|
|
1126
|
+
"tags": [],
|
|
1127
|
+
"text": "Gap between the label row and the hint / error message.\r\nAccepts any valid CSS length (e.g. `'4px'`, `'0.5rem'`).\r\nMaps to `--ui-label-gap`."
|
|
1128
|
+
},
|
|
1129
|
+
"getter": false,
|
|
1130
|
+
"setter": false,
|
|
1131
|
+
"reflect": false,
|
|
1132
|
+
"attribute": "gap",
|
|
1133
|
+
"defaultValue": "''"
|
|
1134
|
+
},
|
|
1135
|
+
"margin": {
|
|
1136
|
+
"type": "string",
|
|
1137
|
+
"mutable": false,
|
|
1138
|
+
"complexType": {
|
|
1139
|
+
"original": "string",
|
|
1140
|
+
"resolved": "string",
|
|
1141
|
+
"references": {}
|
|
1142
|
+
},
|
|
1143
|
+
"required": false,
|
|
1144
|
+
"optional": false,
|
|
1145
|
+
"docs": {
|
|
1146
|
+
"tags": [],
|
|
1147
|
+
"text": "External margin override (CSS shorthand string)."
|
|
1148
|
+
},
|
|
1149
|
+
"getter": false,
|
|
1150
|
+
"setter": false,
|
|
1151
|
+
"reflect": false,
|
|
1152
|
+
"attribute": "margin",
|
|
1153
|
+
"defaultValue": "''"
|
|
1154
|
+
},
|
|
1155
|
+
"padding": {
|
|
1156
|
+
"type": "string",
|
|
1157
|
+
"mutable": false,
|
|
1158
|
+
"complexType": {
|
|
1159
|
+
"original": "string",
|
|
1160
|
+
"resolved": "string",
|
|
1161
|
+
"references": {}
|
|
1162
|
+
},
|
|
1163
|
+
"required": false,
|
|
1164
|
+
"optional": false,
|
|
1165
|
+
"docs": {
|
|
1166
|
+
"tags": [],
|
|
1167
|
+
"text": "External padding override (CSS shorthand string)."
|
|
1168
|
+
},
|
|
1169
|
+
"getter": false,
|
|
1170
|
+
"setter": false,
|
|
1171
|
+
"reflect": false,
|
|
1172
|
+
"attribute": "padding",
|
|
1173
|
+
"defaultValue": "''"
|
|
1174
|
+
},
|
|
1175
|
+
"startIcon": {
|
|
1176
|
+
"type": "string",
|
|
1177
|
+
"mutable": false,
|
|
1178
|
+
"complexType": {
|
|
1179
|
+
"original": "string",
|
|
1180
|
+
"resolved": "string",
|
|
1181
|
+
"references": {}
|
|
1182
|
+
},
|
|
1183
|
+
"required": false,
|
|
1184
|
+
"optional": false,
|
|
1185
|
+
"docs": {
|
|
1186
|
+
"tags": [],
|
|
1187
|
+
"text": "Icon name rendered before the label text.\r\nUses the same icon library as the rest of the design system."
|
|
1188
|
+
},
|
|
1189
|
+
"getter": false,
|
|
1190
|
+
"setter": false,
|
|
1191
|
+
"reflect": false,
|
|
1192
|
+
"attribute": "start-icon",
|
|
1193
|
+
"defaultValue": "''"
|
|
1194
|
+
},
|
|
1195
|
+
"endIcon": {
|
|
1196
|
+
"type": "string",
|
|
1197
|
+
"mutable": false,
|
|
1198
|
+
"complexType": {
|
|
1199
|
+
"original": "string",
|
|
1200
|
+
"resolved": "string",
|
|
1201
|
+
"references": {}
|
|
1202
|
+
},
|
|
1203
|
+
"required": false,
|
|
1204
|
+
"optional": false,
|
|
1205
|
+
"docs": {
|
|
1206
|
+
"tags": [],
|
|
1207
|
+
"text": "Icon name rendered after the label text."
|
|
1208
|
+
},
|
|
1209
|
+
"getter": false,
|
|
1210
|
+
"setter": false,
|
|
1211
|
+
"reflect": false,
|
|
1212
|
+
"attribute": "end-icon",
|
|
1213
|
+
"defaultValue": "''"
|
|
1214
|
+
},
|
|
1215
|
+
"iconOnly": {
|
|
1216
|
+
"type": "boolean",
|
|
1217
|
+
"mutable": false,
|
|
1218
|
+
"complexType": {
|
|
1219
|
+
"original": "boolean",
|
|
1220
|
+
"resolved": "boolean",
|
|
1221
|
+
"references": {}
|
|
1222
|
+
},
|
|
1223
|
+
"required": false,
|
|
1224
|
+
"optional": false,
|
|
1225
|
+
"docs": {
|
|
1226
|
+
"tags": [],
|
|
1227
|
+
"text": "When true, only icons are shown \u2014 label text is visually hidden."
|
|
1228
|
+
},
|
|
1229
|
+
"getter": false,
|
|
1230
|
+
"setter": false,
|
|
1231
|
+
"reflect": false,
|
|
1232
|
+
"attribute": "icon-only",
|
|
1233
|
+
"defaultValue": "false"
|
|
1234
|
+
},
|
|
1235
|
+
"tooltipIcon": {
|
|
1236
|
+
"type": "string",
|
|
1237
|
+
"mutable": false,
|
|
1238
|
+
"complexType": {
|
|
1239
|
+
"original": "string",
|
|
1240
|
+
"resolved": "string",
|
|
1241
|
+
"references": {}
|
|
1242
|
+
},
|
|
1243
|
+
"required": false,
|
|
1244
|
+
"optional": false,
|
|
1245
|
+
"docs": {
|
|
1246
|
+
"tags": [],
|
|
1247
|
+
"text": "Icon name or URL for the tooltip trigger button.\r\nDefaults to an '\u24D8' info glyph."
|
|
1248
|
+
},
|
|
1249
|
+
"getter": false,
|
|
1250
|
+
"setter": false,
|
|
1251
|
+
"reflect": false,
|
|
1252
|
+
"attribute": "tooltip-icon",
|
|
1253
|
+
"defaultValue": "'\u24D8'"
|
|
1254
|
+
},
|
|
1255
|
+
"tooltip": {
|
|
1256
|
+
"type": "string",
|
|
1257
|
+
"mutable": false,
|
|
1258
|
+
"complexType": {
|
|
1259
|
+
"original": "string",
|
|
1260
|
+
"resolved": "string",
|
|
1261
|
+
"references": {}
|
|
1262
|
+
},
|
|
1263
|
+
"required": false,
|
|
1264
|
+
"optional": false,
|
|
1265
|
+
"docs": {
|
|
1266
|
+
"tags": [],
|
|
1267
|
+
"text": "Plain-text tooltip content. Use the `tooltip` slot for rich markup."
|
|
1268
|
+
},
|
|
1269
|
+
"getter": false,
|
|
1270
|
+
"setter": false,
|
|
1271
|
+
"reflect": false,
|
|
1272
|
+
"attribute": "tooltip",
|
|
1273
|
+
"defaultValue": "''"
|
|
1274
|
+
},
|
|
1275
|
+
"tooltipPosition": {
|
|
1276
|
+
"type": "string",
|
|
1277
|
+
"mutable": false,
|
|
1278
|
+
"complexType": {
|
|
1279
|
+
"original": "LabelTooltipPosition",
|
|
1280
|
+
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
1281
|
+
"references": {
|
|
1282
|
+
"LabelTooltipPosition": {
|
|
1283
|
+
"location": "import",
|
|
1284
|
+
"path": "./types",
|
|
1285
|
+
"id": "src/components/label/types.ts::LabelTooltipPosition",
|
|
1286
|
+
"referenceLocation": "LabelTooltipPosition"
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
"required": false,
|
|
1291
|
+
"optional": false,
|
|
1292
|
+
"docs": {
|
|
1293
|
+
"tags": [{
|
|
1294
|
+
"name": "default",
|
|
1295
|
+
"text": "'top'"
|
|
1296
|
+
}],
|
|
1297
|
+
"text": "Preferred position for the tooltip callout."
|
|
1298
|
+
},
|
|
1299
|
+
"getter": false,
|
|
1300
|
+
"setter": false,
|
|
1301
|
+
"reflect": false,
|
|
1302
|
+
"attribute": "tooltip-position",
|
|
1303
|
+
"defaultValue": "'top'"
|
|
1304
|
+
},
|
|
1305
|
+
"clickable": {
|
|
1306
|
+
"type": "boolean",
|
|
1307
|
+
"mutable": false,
|
|
1308
|
+
"complexType": {
|
|
1309
|
+
"original": "boolean",
|
|
1310
|
+
"resolved": "boolean",
|
|
1311
|
+
"references": {}
|
|
1312
|
+
},
|
|
1313
|
+
"required": false,
|
|
1314
|
+
"optional": false,
|
|
1315
|
+
"docs": {
|
|
1316
|
+
"tags": [],
|
|
1317
|
+
"text": "Makes the label itself clickable (fires `labelClick`)."
|
|
1318
|
+
},
|
|
1319
|
+
"getter": false,
|
|
1320
|
+
"setter": false,
|
|
1321
|
+
"reflect": false,
|
|
1322
|
+
"attribute": "clickable",
|
|
1323
|
+
"defaultValue": "false"
|
|
1324
|
+
},
|
|
1325
|
+
"selectable": {
|
|
1326
|
+
"type": "boolean",
|
|
1327
|
+
"mutable": false,
|
|
1328
|
+
"complexType": {
|
|
1329
|
+
"original": "boolean",
|
|
1330
|
+
"resolved": "boolean",
|
|
1331
|
+
"references": {}
|
|
1332
|
+
},
|
|
1333
|
+
"required": false,
|
|
1334
|
+
"optional": false,
|
|
1335
|
+
"docs": {
|
|
1336
|
+
"tags": [],
|
|
1337
|
+
"text": "Enables text-selection on the label (disabled by default for form labels)."
|
|
1338
|
+
},
|
|
1339
|
+
"getter": false,
|
|
1340
|
+
"setter": false,
|
|
1341
|
+
"reflect": false,
|
|
1342
|
+
"attribute": "selectable",
|
|
1343
|
+
"defaultValue": "false"
|
|
1344
|
+
},
|
|
1345
|
+
"copyable": {
|
|
1346
|
+
"type": "boolean",
|
|
1347
|
+
"mutable": false,
|
|
1348
|
+
"complexType": {
|
|
1349
|
+
"original": "boolean",
|
|
1350
|
+
"resolved": "boolean",
|
|
1351
|
+
"references": {}
|
|
1352
|
+
},
|
|
1353
|
+
"required": false,
|
|
1354
|
+
"optional": false,
|
|
1355
|
+
"docs": {
|
|
1356
|
+
"tags": [],
|
|
1357
|
+
"text": "Shows a copy-to-clipboard button on hover and fires `labelCopy`."
|
|
1358
|
+
},
|
|
1359
|
+
"getter": false,
|
|
1360
|
+
"setter": false,
|
|
1361
|
+
"reflect": false,
|
|
1362
|
+
"attribute": "copyable",
|
|
1363
|
+
"defaultValue": "false"
|
|
1364
|
+
},
|
|
1365
|
+
"responsive": {
|
|
1366
|
+
"type": "boolean",
|
|
1367
|
+
"mutable": false,
|
|
1368
|
+
"complexType": {
|
|
1369
|
+
"original": "boolean",
|
|
1370
|
+
"resolved": "boolean",
|
|
1371
|
+
"references": {}
|
|
1372
|
+
},
|
|
1373
|
+
"required": false,
|
|
1374
|
+
"optional": false,
|
|
1375
|
+
"docs": {
|
|
1376
|
+
"tags": [],
|
|
1377
|
+
"text": "Enable responsive font-size scaling via fluid typography."
|
|
1378
|
+
},
|
|
1379
|
+
"getter": false,
|
|
1380
|
+
"setter": false,
|
|
1381
|
+
"reflect": false,
|
|
1382
|
+
"attribute": "responsive",
|
|
1383
|
+
"defaultValue": "false"
|
|
1384
|
+
},
|
|
1385
|
+
"mobileStack": {
|
|
1386
|
+
"type": "boolean",
|
|
1387
|
+
"mutable": false,
|
|
1388
|
+
"complexType": {
|
|
1389
|
+
"original": "boolean",
|
|
1390
|
+
"resolved": "boolean",
|
|
1391
|
+
"references": {}
|
|
1392
|
+
},
|
|
1393
|
+
"required": false,
|
|
1394
|
+
"optional": false,
|
|
1395
|
+
"docs": {
|
|
1396
|
+
"tags": [],
|
|
1397
|
+
"text": "On narrow viewports, switches from `horizontal` to `vertical` orientation."
|
|
1398
|
+
},
|
|
1399
|
+
"getter": false,
|
|
1400
|
+
"setter": false,
|
|
1401
|
+
"reflect": false,
|
|
1402
|
+
"attribute": "mobile-stack",
|
|
1403
|
+
"defaultValue": "false"
|
|
1404
|
+
},
|
|
1405
|
+
"labelDir": {
|
|
1406
|
+
"type": "string",
|
|
1407
|
+
"mutable": false,
|
|
1408
|
+
"complexType": {
|
|
1409
|
+
"original": "LabelDir",
|
|
1410
|
+
"resolved": "\"auto\" | \"ltr\" | \"rtl\"",
|
|
1411
|
+
"references": {
|
|
1412
|
+
"LabelDir": {
|
|
1413
|
+
"location": "import",
|
|
1414
|
+
"path": "./types",
|
|
1415
|
+
"id": "src/components/label/types.ts::LabelDir",
|
|
1416
|
+
"referenceLocation": "LabelDir"
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"required": false,
|
|
1421
|
+
"optional": false,
|
|
1422
|
+
"docs": {
|
|
1423
|
+
"tags": [{
|
|
1424
|
+
"name": "default",
|
|
1425
|
+
"text": "'ltr'"
|
|
1426
|
+
}],
|
|
1427
|
+
"text": "Text direction."
|
|
1428
|
+
},
|
|
1429
|
+
"getter": false,
|
|
1430
|
+
"setter": false,
|
|
1431
|
+
"reflect": false,
|
|
1432
|
+
"attribute": "dir",
|
|
1433
|
+
"defaultValue": "'ltr'"
|
|
1434
|
+
},
|
|
1435
|
+
"labelLang": {
|
|
1436
|
+
"type": "string",
|
|
1437
|
+
"mutable": false,
|
|
1438
|
+
"complexType": {
|
|
1439
|
+
"original": "string",
|
|
1440
|
+
"resolved": "string",
|
|
1441
|
+
"references": {}
|
|
1442
|
+
},
|
|
1443
|
+
"required": false,
|
|
1444
|
+
"optional": false,
|
|
1445
|
+
"docs": {
|
|
1446
|
+
"tags": [],
|
|
1447
|
+
"text": "BCP-47 language tag (e.g. `'en'`, `'ar'`, `'fr'`)."
|
|
1448
|
+
},
|
|
1449
|
+
"getter": false,
|
|
1450
|
+
"setter": false,
|
|
1451
|
+
"reflect": false,
|
|
1452
|
+
"attribute": "lang",
|
|
1453
|
+
"defaultValue": "''"
|
|
1454
|
+
},
|
|
1455
|
+
"labelId": {
|
|
1456
|
+
"type": "string",
|
|
1457
|
+
"mutable": false,
|
|
1458
|
+
"complexType": {
|
|
1459
|
+
"original": "string",
|
|
1460
|
+
"resolved": "string",
|
|
1461
|
+
"references": {}
|
|
1462
|
+
},
|
|
1463
|
+
"required": false,
|
|
1464
|
+
"optional": false,
|
|
1465
|
+
"docs": {
|
|
1466
|
+
"tags": [],
|
|
1467
|
+
"text": "DOM `id` for the root element. Auto-generated if not provided."
|
|
1468
|
+
},
|
|
1469
|
+
"getter": false,
|
|
1470
|
+
"setter": false,
|
|
1471
|
+
"reflect": true,
|
|
1472
|
+
"attribute": "label-id",
|
|
1473
|
+
"defaultValue": "''"
|
|
1474
|
+
},
|
|
1475
|
+
"name": {
|
|
1476
|
+
"type": "string",
|
|
1477
|
+
"mutable": false,
|
|
1478
|
+
"complexType": {
|
|
1479
|
+
"original": "string",
|
|
1480
|
+
"resolved": "string",
|
|
1481
|
+
"references": {}
|
|
1482
|
+
},
|
|
1483
|
+
"required": false,
|
|
1484
|
+
"optional": false,
|
|
1485
|
+
"docs": {
|
|
1486
|
+
"tags": [],
|
|
1487
|
+
"text": "Logical name (maps to `name` attribute on the inner label)."
|
|
1488
|
+
},
|
|
1489
|
+
"getter": false,
|
|
1490
|
+
"setter": false,
|
|
1491
|
+
"reflect": false,
|
|
1492
|
+
"attribute": "name",
|
|
1493
|
+
"defaultValue": "''"
|
|
1494
|
+
},
|
|
1495
|
+
"testId": {
|
|
1496
|
+
"type": "string",
|
|
1497
|
+
"mutable": false,
|
|
1498
|
+
"complexType": {
|
|
1499
|
+
"original": "string",
|
|
1500
|
+
"resolved": "string",
|
|
1501
|
+
"references": {}
|
|
1502
|
+
},
|
|
1503
|
+
"required": false,
|
|
1504
|
+
"optional": false,
|
|
1505
|
+
"docs": {
|
|
1506
|
+
"tags": [],
|
|
1507
|
+
"text": "`data-testid` attribute for automated testing."
|
|
1508
|
+
},
|
|
1509
|
+
"getter": false,
|
|
1510
|
+
"setter": false,
|
|
1511
|
+
"reflect": false,
|
|
1512
|
+
"attribute": "test-id",
|
|
1513
|
+
"defaultValue": "''"
|
|
1514
|
+
},
|
|
1515
|
+
"automationId": {
|
|
1516
|
+
"type": "string",
|
|
1517
|
+
"mutable": false,
|
|
1518
|
+
"complexType": {
|
|
1519
|
+
"original": "string",
|
|
1520
|
+
"resolved": "string",
|
|
1521
|
+
"references": {}
|
|
1522
|
+
},
|
|
1523
|
+
"required": false,
|
|
1524
|
+
"optional": false,
|
|
1525
|
+
"docs": {
|
|
1526
|
+
"tags": [],
|
|
1527
|
+
"text": "`data-automation-id` attribute for RPA / automation tooling."
|
|
1528
|
+
},
|
|
1529
|
+
"getter": false,
|
|
1530
|
+
"setter": false,
|
|
1531
|
+
"reflect": false,
|
|
1532
|
+
"attribute": "automation-id",
|
|
1533
|
+
"defaultValue": "''"
|
|
1534
|
+
}
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
static get states() {
|
|
1538
|
+
return {
|
|
1539
|
+
"_isFocused": {},
|
|
1540
|
+
"_tooltipOpen": {}
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
static get events() {
|
|
1544
|
+
return [{
|
|
1545
|
+
"method": "labelClick",
|
|
1546
|
+
"name": "labelClick",
|
|
1547
|
+
"bubbles": true,
|
|
1548
|
+
"cancelable": true,
|
|
1549
|
+
"composed": true,
|
|
1550
|
+
"docs": {
|
|
1551
|
+
"tags": [],
|
|
1552
|
+
"text": "Fired when the label element is clicked (requires `clickable` or naturally via `for`)."
|
|
1553
|
+
},
|
|
1554
|
+
"complexType": {
|
|
1555
|
+
"original": "LabelClickEvent",
|
|
1556
|
+
"resolved": "LabelClickEvent",
|
|
1557
|
+
"references": {
|
|
1558
|
+
"LabelClickEvent": {
|
|
1559
|
+
"location": "import",
|
|
1560
|
+
"path": "./types",
|
|
1561
|
+
"id": "src/components/label/types.ts::LabelClickEvent",
|
|
1562
|
+
"referenceLocation": "LabelClickEvent"
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
}, {
|
|
1567
|
+
"method": "labelFocus",
|
|
1568
|
+
"name": "labelFocus",
|
|
1569
|
+
"bubbles": true,
|
|
1570
|
+
"cancelable": true,
|
|
1571
|
+
"composed": true,
|
|
1572
|
+
"docs": {
|
|
1573
|
+
"tags": [],
|
|
1574
|
+
"text": "Fired when the label receives focus (passes through from the native label)."
|
|
1575
|
+
},
|
|
1576
|
+
"complexType": {
|
|
1577
|
+
"original": "void",
|
|
1578
|
+
"resolved": "void",
|
|
1579
|
+
"references": {}
|
|
1580
|
+
}
|
|
1581
|
+
}, {
|
|
1582
|
+
"method": "labelBlur",
|
|
1583
|
+
"name": "labelBlur",
|
|
1584
|
+
"bubbles": true,
|
|
1585
|
+
"cancelable": true,
|
|
1586
|
+
"composed": true,
|
|
1587
|
+
"docs": {
|
|
1588
|
+
"tags": [],
|
|
1589
|
+
"text": "Fired when the label loses focus."
|
|
1590
|
+
},
|
|
1591
|
+
"complexType": {
|
|
1592
|
+
"original": "void",
|
|
1593
|
+
"resolved": "void",
|
|
1594
|
+
"references": {}
|
|
1595
|
+
}
|
|
1596
|
+
}, {
|
|
1597
|
+
"method": "labelCopy",
|
|
1598
|
+
"name": "labelCopy",
|
|
1599
|
+
"bubbles": true,
|
|
1600
|
+
"cancelable": true,
|
|
1601
|
+
"composed": true,
|
|
1602
|
+
"docs": {
|
|
1603
|
+
"tags": [],
|
|
1604
|
+
"text": "Fired after text is successfully copied to the clipboard (`copyable` must be true)."
|
|
1605
|
+
},
|
|
1606
|
+
"complexType": {
|
|
1607
|
+
"original": "LabelCopyEvent",
|
|
1608
|
+
"resolved": "LabelCopyEvent",
|
|
1609
|
+
"references": {
|
|
1610
|
+
"LabelCopyEvent": {
|
|
1611
|
+
"location": "import",
|
|
1612
|
+
"path": "./types",
|
|
1613
|
+
"id": "src/components/label/types.ts::LabelCopyEvent",
|
|
1614
|
+
"referenceLocation": "LabelCopyEvent"
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
}];
|
|
1619
|
+
}
|
|
1620
|
+
static get methods() {
|
|
1621
|
+
return {
|
|
1622
|
+
"setFocus": {
|
|
1623
|
+
"complexType": {
|
|
1624
|
+
"signature": "() => Promise<void>",
|
|
1625
|
+
"parameters": [],
|
|
1626
|
+
"references": {
|
|
1627
|
+
"Promise": {
|
|
1628
|
+
"location": "global",
|
|
1629
|
+
"id": "global::Promise"
|
|
1630
|
+
},
|
|
1631
|
+
"HTMLElement": {
|
|
1632
|
+
"location": "global",
|
|
1633
|
+
"id": "global::HTMLElement"
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
"return": "Promise<void>"
|
|
1637
|
+
},
|
|
1638
|
+
"docs": {
|
|
1639
|
+
"text": "Programmatically focus the label element.\r\nUseful when the owning form-field component proxies focus behaviour.",
|
|
1640
|
+
"tags": []
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1643
|
+
"copyText": {
|
|
1644
|
+
"complexType": {
|
|
1645
|
+
"signature": "() => Promise<void>",
|
|
1646
|
+
"parameters": [],
|
|
1647
|
+
"references": {
|
|
1648
|
+
"Promise": {
|
|
1649
|
+
"location": "global",
|
|
1650
|
+
"id": "global::Promise"
|
|
1651
|
+
}
|
|
1652
|
+
},
|
|
1653
|
+
"return": "Promise<void>"
|
|
1654
|
+
},
|
|
1655
|
+
"docs": {
|
|
1656
|
+
"text": "Programmatically trigger the copy-to-clipboard action.",
|
|
1657
|
+
"tags": []
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
static get elementRef() { return "el"; }
|
|
1663
|
+
static get watchers() {
|
|
1664
|
+
return [{
|
|
1665
|
+
"propName": "focused",
|
|
1666
|
+
"methodName": "onFocusedChanged"
|
|
1667
|
+
}];
|
|
1668
|
+
}
|
|
1669
|
+
}
|