@vonage/vivid 5.18.0 → 5.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/definition.cjs +1 -2
- package/accordion/definition.js +1 -2
- package/accordion/index.cjs +2 -2
- package/accordion/index.js +3 -4
- package/accordion-item/definition.cjs +1 -2
- package/accordion-item/definition.js +1 -2
- package/accordion-item/index.cjs +1 -1
- package/accordion-item/index.js +0 -2
- package/action-group/definition.cjs +1 -1
- package/action-group/definition.js +1 -1
- package/action-group/index.cjs +4 -4
- package/action-group/index.js +7 -7
- package/alert/definition.cjs +0 -1
- package/alert/definition.js +0 -1
- package/alert/index.cjs +5 -5
- package/alert/index.js +20 -21
- package/audio-player/definition.cjs +0 -1
- package/audio-player/definition.js +0 -1
- package/audio-player/index.cjs +13 -13
- package/audio-player/index.js +75 -76
- package/avatar/definition.cjs +0 -1
- package/avatar/definition.js +0 -1
- package/avatar/index.cjs +8 -8
- package/avatar/index.js +21 -22
- package/badge/definition.cjs +0 -1
- package/badge/definition.js +0 -1
- package/badge/index.cjs +1 -1
- package/badge/index.js +0 -2
- package/banner/definition.cjs +0 -1
- package/banner/definition.js +0 -1
- package/banner/index.cjs +6 -6
- package/banner/index.js +20 -21
- package/breadcrumb/index.cjs +2 -2
- package/breadcrumb/index.js +4 -4
- package/breadcrumb-item/definition.cjs +0 -1
- package/breadcrumb-item/definition.js +0 -1
- package/breadcrumb-item/index.cjs +5 -5
- package/breadcrumb-item/index.js +7 -8
- package/bundled/affix.cjs +2 -2
- package/bundled/affix.js +11 -11
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +6 -6
- package/bundled/aria-binding-directive.cjs +1 -0
- package/bundled/aria-binding-directive.js +101 -0
- package/bundled/base-color-picker.cjs +3 -3
- package/bundled/base-color-picker.js +5 -5
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +3 -3
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/breadcrumb-item.js +1 -1
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +1 -1
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +5 -5
- package/bundled/calendar-picker.template.cjs +23 -24
- package/bundled/calendar-picker.template.js +29 -30
- package/bundled/char-count.cjs +2 -2
- package/bundled/char-count.js +10 -10
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +7 -9
- package/bundled/decorate.js +1 -1
- package/bundled/definition.cjs +1 -1
- package/bundled/definition.js +2 -2
- package/bundled/definition10.cjs +3 -3
- package/bundled/definition10.js +19 -19
- package/bundled/definition11.cjs +2 -2
- package/bundled/definition11.js +8 -8
- package/bundled/definition12.cjs +15 -16
- package/bundled/definition12.js +28 -28
- package/bundled/definition13.cjs +3 -3
- package/bundled/definition13.js +6 -6
- package/bundled/definition14.cjs +2 -2
- package/bundled/definition14.js +3 -3
- package/bundled/definition15.cjs +7 -8
- package/bundled/definition15.js +18 -18
- package/bundled/definition16.cjs +3 -3
- package/bundled/definition16.js +22 -22
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +12 -12
- package/bundled/definition18.cjs +18 -18
- package/bundled/definition18.js +33 -33
- package/bundled/definition19.cjs +2 -2
- package/bundled/definition19.js +3 -3
- package/bundled/definition2.cjs +10 -9
- package/bundled/definition2.js +27 -27
- package/bundled/definition20.cjs +19 -14
- package/bundled/definition20.js +53 -42
- package/bundled/definition21.cjs +9 -9
- package/bundled/definition21.js +31 -31
- package/bundled/definition22.cjs +3 -3
- package/bundled/definition22.js +8 -8
- package/bundled/definition23.cjs +4 -4
- package/bundled/definition23.js +9 -9
- package/bundled/definition24.cjs +8 -8
- package/bundled/definition24.js +23 -23
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +33 -33
- package/bundled/definition4.cjs +9 -9
- package/bundled/definition4.js +20 -20
- package/bundled/definition5.cjs +5 -5
- package/bundled/definition5.js +9 -9
- package/bundled/definition6.cjs +7 -7
- package/bundled/definition6.js +27 -27
- package/bundled/definition7.cjs +2 -2
- package/bundled/definition7.js +4 -4
- package/bundled/definition8.cjs +4 -4
- package/bundled/definition8.js +15 -15
- package/bundled/definition9.cjs +10 -6
- package/bundled/definition9.js +54 -40
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +23 -51
- package/bundled/divider.cjs +1 -1
- package/bundled/divider.js +1 -1
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +1 -1
- package/bundled/form-element.cjs +1 -1
- package/bundled/form-element.js +8 -6
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/host-semantics.js +11 -39
- package/bundled/kbd-shortcut.cjs +1 -0
- package/bundled/kbd-shortcut.js +14 -0
- package/bundled/linkable.cjs +2 -2
- package/bundled/linkable.js +5 -5
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +13 -13
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +7 -6
- package/bundled/mixins.cjs +16 -16
- package/bundled/mixins.js +39 -105
- package/bundled/picker-field.template.cjs +6 -6
- package/bundled/picker-field.template.js +33 -32
- package/bundled/platform.cjs +1 -0
- package/bundled/platform.js +9 -0
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +2 -2
- package/bundled/render-in-light-dom.cjs +1 -0
- package/bundled/render-in-light-dom.js +57 -0
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +129 -119
- package/bundled/slider.template.cjs +7 -7
- package/bundled/slider.template.js +13 -13
- package/bundled/slottable-request.cjs +1 -1
- package/bundled/slottable-request.js +1 -1
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +2 -2
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +4 -4
- package/bundled/time-selection-picker.template.js +23 -23
- package/bundled/vivid-element.cjs +3 -3
- package/bundled/vivid-element.js +634 -556
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +2 -2
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +1 -1
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-error-text.js +1 -1
- package/bundled/with-success-text.cjs +1 -1
- package/bundled/with-success-text.js +1 -1
- package/button/definition.cjs +0 -1
- package/button/definition.js +0 -1
- package/button/index.cjs +1 -1
- package/button/index.js +0 -2
- package/calendar/index.cjs +8 -8
- package/calendar/index.js +9 -9
- package/calendar-event/index.cjs +6 -6
- package/calendar-event/index.js +8 -8
- package/card/definition.cjs +0 -1
- package/card/definition.js +0 -1
- package/card/index.cjs +24 -25
- package/card/index.js +42 -44
- package/checkbox/definition.cjs +0 -1
- package/checkbox/definition.js +0 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +0 -2
- package/color-picker/definition.cjs +0 -1
- package/color-picker/definition.js +0 -1
- package/color-picker/index.cjs +29 -29
- package/color-picker/index.js +114 -114
- package/combobox/definition.cjs +0 -1
- package/combobox/definition.js +0 -1
- package/combobox/index.cjs +13 -13
- package/combobox/index.js +31 -32
- package/contextual-help/definition.cjs +0 -1
- package/contextual-help/definition.js +0 -1
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +0 -2
- package/country/definition.cjs +0 -1
- package/country/definition.js +0 -1
- package/country/index.cjs +1 -1
- package/country/index.js +0 -2
- package/country-group/definition.cjs +0 -1
- package/country-group/definition.js +0 -1
- package/country-group/index.cjs +4 -4
- package/country-group/index.js +30 -30
- package/custom-elements.json +3831 -3147
- package/data-grid/definition.cjs +0 -1
- package/data-grid/definition.js +0 -1
- package/data-grid/index.cjs +34 -34
- package/data-grid/index.js +96 -98
- package/date-picker/definition.cjs +1 -2
- package/date-picker/definition.js +1 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -3
- package/date-range-picker/definition.cjs +1 -2
- package/date-range-picker/definition.js +1 -2
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +6 -7
- package/date-time-picker/definition.cjs +1 -2
- package/date-time-picker/definition.js +1 -2
- package/date-time-picker/index.cjs +2 -2
- package/date-time-picker/index.js +4 -5
- package/dial-pad/definition.cjs +1 -2
- package/dial-pad/definition.js +1 -2
- package/dial-pad/index.cjs +8 -8
- package/dial-pad/index.js +13 -14
- package/dialog/definition.cjs +1 -2
- package/dialog/definition.js +1 -2
- package/dialog/index.cjs +18 -16
- package/dialog/index.js +39 -35
- package/divider/definition.cjs +1 -1
- package/divider/definition.js +1 -1
- package/divider/index.cjs +1 -1
- package/divider/index.js +0 -1
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +0 -1
- package/empty-state/definition.cjs +1 -2
- package/empty-state/definition.js +1 -2
- package/empty-state/index.cjs +5 -5
- package/empty-state/index.js +11 -12
- package/fab/definition.cjs +1 -2
- package/fab/definition.js +1 -2
- package/fab/index.cjs +3 -3
- package/fab/index.js +9 -10
- package/file-picker/definition.cjs +1 -2
- package/file-picker/definition.js +1 -2
- package/file-picker/index.cjs +10 -11
- package/file-picker/index.js +29 -31
- package/flag/definition.cjs +0 -1
- package/flag/definition.js +0 -1
- package/flag/index.cjs +3 -3
- package/flag/index.js +11 -11
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/header/index.cjs +5 -5
- package/header/index.js +11 -11
- package/icon/definition.cjs +1 -2
- package/icon/definition.js +1 -2
- package/icon/index.cjs +1 -1
- package/icon/index.js +0 -2
- package/index.cjs +184 -173
- package/index.js +52 -50
- package/kbd-key/definition.cjs +5 -0
- package/kbd-key/definition.js +2 -0
- package/kbd-key/index.cjs +5 -0
- package/kbd-key/index.js +65 -0
- package/kbd-shortcut/definition.cjs +5 -0
- package/kbd-shortcut/definition.js +2 -0
- package/kbd-shortcut/index.cjs +3 -0
- package/kbd-shortcut/index.js +27 -0
- package/layout/definition.cjs +1 -1
- package/layout/definition.js +1 -1
- package/layout/index.cjs +2 -2
- package/layout/index.js +3 -3
- package/lib/accordion-item/accordion-item.d.ts +18 -1
- package/lib/action-group/action-group.d.ts +18 -1
- package/lib/alert/alert.d.ts +36 -2
- package/lib/audio-player/audio-player.d.ts +18 -1
- package/lib/avatar/avatar.d.ts +19 -2
- package/lib/badge/badge.d.ts +18 -1
- package/lib/banner/banner.d.ts +54 -3
- package/lib/breadcrumb/breadcrumb.d.ts +18 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +19 -2
- package/lib/button/button.d.ts +55 -4
- package/lib/calendar-event/calendar-event.d.ts +18 -1
- package/lib/card/card.d.ts +19 -2
- package/lib/checkbox/checkbox.d.ts +107 -5
- package/lib/color-picker/color-picker.d.ts +126 -7
- package/lib/combobox/combobox.d.ts +124 -5
- package/lib/components.d.ts +4 -1
- package/lib/country-group/country-group.d.ts +36 -2
- package/lib/data-grid/data-grid-cell.d.ts +36 -2
- package/lib/data-grid/data-grid-row.d.ts +18 -1
- package/lib/date-picker/date-picker.d.ts +140 -4
- package/lib/date-range-picker/date-range-picker.d.ts +70 -2
- package/lib/date-time-picker/date-time-picker.d.ts +140 -4
- package/lib/dial-pad/dial-pad.d.ts +18 -1
- package/lib/dialog/dialog.d.ts +36 -2
- package/lib/divider/divider.d.ts +18 -1
- package/lib/fab/fab.d.ts +18 -1
- package/lib/file-picker/file-picker.d.ts +124 -5
- package/lib/header/header.d.ts +18 -1
- package/lib/icon/icon.template.d.ts +1 -2
- package/lib/kbd-key/definition.d.ts +4 -0
- package/lib/kbd-key/index.d.ts +1 -0
- package/lib/kbd-key/kbd-key.d.ts +18 -0
- package/lib/kbd-key/kbd-key.template.d.ts +4 -0
- package/lib/kbd-shortcut/definition.d.ts +3 -0
- package/lib/kbd-shortcut/index.d.ts +1 -0
- package/lib/kbd-shortcut/kbd-shortcut.d.ts +4 -0
- package/lib/kbd-shortcut/kbd-shortcut.template.d.ts +4 -0
- package/lib/menu/menu.d.ts +35 -1
- package/lib/menu-item/menu-item.d.ts +463 -2
- package/lib/nav/nav.d.ts +18 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +36 -2
- package/lib/nav-item/nav-item.d.ts +37 -3
- package/lib/note/note.d.ts +18 -1
- package/lib/number-field/number-field.d.ts +160 -7
- package/lib/option/option.d.ts +36 -2
- package/lib/pagination/pagination.d.ts +18 -1
- package/lib/platform-switch/definition.d.ts +3 -0
- package/lib/platform-switch/index.d.ts +1 -0
- package/lib/platform-switch/platform-switch.d.ts +4 -0
- package/lib/platform-switch/platform-switch.template.d.ts +4 -0
- package/lib/popover/popover.d.ts +36 -2
- package/lib/progress/progress.d.ts +18 -1
- package/lib/progress-ring/progress-ring.d.ts +18 -1
- package/lib/radio/radio.d.ts +53 -2
- package/lib/radio-group/radio-group.d.ts +18 -1
- package/lib/range-slider/range-slider.d.ts +52 -1
- package/lib/rich-text-editor/locale.d.ts +1 -0
- package/lib/rich-text-editor/popover.d.ts +1 -0
- package/lib/rich-text-editor/rich-text-editor.d.ts +17 -0
- package/lib/rich-text-editor/rte/utils/ui.d.ts +3 -1
- package/lib/searchable-select/option-tag.d.ts +18 -1
- package/lib/searchable-select/searchable-select.d.ts +160 -7
- package/lib/select/select.d.ts +160 -7
- package/lib/selectable-box/selectable-box.d.ts +18 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +35 -1
- package/lib/slider/slider.d.ts +53 -2
- package/lib/split-button/split-button.d.ts +54 -3
- package/lib/status/status.d.ts +18 -1
- package/lib/switch/switch.d.ts +36 -2
- package/lib/tab/tab.d.ts +54 -3
- package/lib/tab-panel/tab-panel.d.ts +18 -1
- package/lib/table/table-cell.d.ts +18 -1
- package/lib/table/table-header-cell.d.ts +18 -1
- package/lib/table/table-row.d.ts +18 -1
- package/lib/table/table-sorting-button.d.ts +18 -1
- package/lib/tag/tag.d.ts +54 -3
- package/lib/tag-group/tag-group.d.ts +18 -1
- package/lib/tag-name-map.d.ts +4 -1
- package/lib/text-area/text-area.d.ts +142 -6
- package/lib/text-field/text-field.d.ts +160 -7
- package/lib/time-picker/time-picker.d.ts +70 -2
- package/lib/toggletip/toggletip.d.ts +35 -1
- package/lib/tooltip/tooltip.d.ts +444 -0
- package/lib/tree-item/tree-item.d.ts +36 -2
- package/lib/tree-view/tree-view.d.ts +18 -1
- package/lib/video-player/video-player.d.ts +18 -1
- package/locales/de-DE.cjs +2 -1
- package/locales/de-DE.js +1 -0
- package/locales/en-GB.cjs +2 -1
- package/locales/en-GB.js +1 -0
- package/locales/en-US.cjs +2 -1
- package/locales/en-US.js +1 -0
- package/locales/ja-JP.cjs +2 -1
- package/locales/ja-JP.js +1 -0
- package/locales/zh-CN.cjs +2 -1
- package/locales/zh-CN.js +1 -0
- package/menu/definition.cjs +0 -1
- package/menu/definition.js +0 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +0 -2
- package/menu-item/definition.cjs +0 -1
- package/menu-item/definition.js +0 -1
- package/menu-item/index.cjs +1 -1
- package/menu-item/index.js +0 -2
- package/nav/definition.cjs +1 -1
- package/nav/definition.js +1 -1
- package/nav/index.cjs +2 -2
- package/nav/index.js +2 -2
- package/nav-disclosure/definition.cjs +1 -2
- package/nav-disclosure/definition.js +1 -2
- package/nav-disclosure/index.cjs +4 -5
- package/nav-disclosure/index.js +18 -19
- package/nav-item/definition.cjs +1 -2
- package/nav-item/definition.js +1 -2
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +8 -9
- package/note/definition.cjs +1 -2
- package/note/definition.js +1 -2
- package/note/index.cjs +2 -2
- package/note/index.js +7 -8
- package/number-field/definition.cjs +1 -2
- package/number-field/definition.js +1 -2
- package/number-field/index.cjs +8 -9
- package/number-field/index.js +24 -26
- package/option/definition.cjs +0 -1
- package/option/definition.js +0 -1
- package/option/index.cjs +1 -1
- package/option/index.js +0 -2
- package/package.json +23 -23
- package/pagination/definition.cjs +1 -2
- package/pagination/definition.js +1 -2
- package/pagination/index.cjs +9 -9
- package/pagination/index.js +18 -19
- package/platform-switch/definition.cjs +5 -0
- package/platform-switch/definition.js +2 -0
- package/platform-switch/index.cjs +1 -0
- package/platform-switch/index.js +28 -0
- package/popover/definition.cjs +1 -2
- package/popover/definition.js +1 -2
- package/popover/index.cjs +8 -8
- package/popover/index.js +33 -34
- package/popup/definition.cjs +0 -1
- package/popup/definition.js +0 -1
- package/popup/index.cjs +1 -1
- package/popup/index.js +0 -2
- package/progress/definition.cjs +1 -1
- package/progress/definition.js +1 -1
- package/progress/index.cjs +5 -5
- package/progress/index.js +9 -9
- package/progress-ring/definition.cjs +1 -1
- package/progress-ring/definition.js +1 -1
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +0 -1
- package/radio/definition.cjs +1 -1
- package/radio/definition.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +0 -1
- package/radio-group/definition.cjs +1 -2
- package/radio-group/definition.js +1 -2
- package/radio-group/index.cjs +6 -9
- package/radio-group/index.js +26 -26
- package/range-slider/definition.cjs +1 -2
- package/range-slider/definition.js +1 -2
- package/range-slider/index.cjs +5 -5
- package/range-slider/index.js +58 -59
- package/rich-text-editor/definition.cjs +1 -2
- package/rich-text-editor/definition.js +1 -2
- package/rich-text-editor/index.cjs +12 -10
- package/rich-text-editor/index.js +2080 -1988
- package/rich-text-view/definition.cjs +1 -1
- package/rich-text-view/definition.js +1 -1
- package/rich-text-view/index.cjs +1 -1
- package/rich-text-view/index.js +3 -3
- package/searchable-select/definition.cjs +1 -2
- package/searchable-select/definition.js +1 -2
- package/searchable-select/index.cjs +39 -41
- package/searchable-select/index.js +127 -126
- package/select/definition.cjs +1 -2
- package/select/definition.js +1 -2
- package/select/index.cjs +1 -1
- package/select/index.js +0 -2
- package/selectable-box/definition.cjs +1 -2
- package/selectable-box/definition.js +1 -2
- package/selectable-box/index.cjs +9 -9
- package/selectable-box/index.js +20 -21
- package/shared/aria/aria-binding-directive.d.ts +21 -0
- package/shared/aria/aria-change-subscription.d.ts +1 -0
- package/shared/aria/aria-mixin.d.ts +21 -3
- package/shared/aria/delegates-aria.d.ts +19 -2
- package/shared/aria/host-semantics.d.ts +19 -2
- package/shared/aria/idrefs-controller.d.ts +17 -0
- package/shared/color-picker/base-color-picker.d.ts +18 -1
- package/shared/feedback/feedback-message.d.ts +18 -1
- package/shared/feedback/mixins.d.ts +36 -2
- package/shared/foundation/button/button.d.ts +35 -1
- package/shared/foundation/form-associated/form-associated.d.ts +35 -1
- package/shared/foundation/vivid-element/vivid-element.d.ts +375 -0
- package/shared/framework/reactive-controller.d.ts +373 -0
- package/shared/patterns/affix.d.ts +36 -2
- package/shared/patterns/anchored.d.ts +34 -0
- package/shared/patterns/char-count/char-count.d.ts +18 -1
- package/shared/patterns/form-elements/form-element.d.ts +17 -0
- package/shared/patterns/form-elements/with-contextual-help.d.ts +18 -1
- package/shared/patterns/form-elements/with-error-text.d.ts +18 -1
- package/shared/patterns/form-elements/with-success-text.d.ts +18 -1
- package/shared/patterns/index.d.ts +1 -0
- package/shared/patterns/kbd-shortcut.d.ts +431 -0
- package/shared/patterns/linkable.d.ts +19 -2
- package/shared/patterns/localized.d.ts +35 -1
- package/shared/patterns/trapped-focus.d.ts +18 -1
- package/shared/picker-field/mixins/calendar-picker.d.ts +35 -1
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +35 -1
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +18 -1
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +35 -1
- package/shared/picker-field/mixins/single-date-picker.d.ts +35 -1
- package/shared/picker-field/mixins/single-value-picker.d.ts +35 -1
- package/shared/picker-field/mixins/time-selection-picker.d.ts +35 -1
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +70 -2
- package/shared/picker-field/picker-field.d.ts +124 -5
- package/shared/templating/render-in-light-dom.d.ts +7 -20
- package/shared/utils/platform.d.ts +1 -0
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +1 -1
- package/side-drawer/index.cjs +3 -3
- package/side-drawer/index.js +4 -4
- package/simple-color-picker/definition.cjs +1 -2
- package/simple-color-picker/definition.js +1 -2
- package/simple-color-picker/index.cjs +2 -2
- package/simple-color-picker/index.js +19 -20
- package/slider/definition.cjs +0 -1
- package/slider/definition.js +0 -1
- package/slider/index.cjs +1 -1
- package/slider/index.js +0 -2
- package/split-button/definition.cjs +1 -2
- package/split-button/definition.js +1 -2
- package/split-button/index.cjs +6 -7
- package/split-button/index.js +15 -16
- package/status/definition.cjs +1 -2
- package/status/definition.js +1 -2
- package/status/index.cjs +4 -4
- package/status/index.js +11 -12
- package/styles/core/all.css +24 -2
- package/styles/core/typography.css +24 -2
- package/styles/fonts/spezia-variable.css +6 -0
- package/styles/tokens/theme-dark.css +2 -0
- package/styles/tokens/theme-light.css +2 -0
- package/switch/definition.cjs +1 -2
- package/switch/definition.js +1 -2
- package/switch/index.cjs +5 -5
- package/switch/index.js +8 -9
- package/tab/definition.cjs +1 -2
- package/tab/definition.js +1 -2
- package/tab/index.cjs +1 -1
- package/tab/index.js +0 -2
- package/tab-panel/definition.cjs +1 -1
- package/tab-panel/definition.js +1 -1
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +0 -1
- package/table/definition.cjs +1 -2
- package/table/definition.js +1 -2
- package/table/index.cjs +9 -9
- package/table/index.js +24 -25
- package/tabs/definition.cjs +1 -2
- package/tabs/definition.js +1 -2
- package/tabs/index.cjs +8 -8
- package/tabs/index.js +34 -35
- package/tag/definition.cjs +1 -2
- package/tag/definition.js +1 -2
- package/tag/index.cjs +11 -11
- package/tag/index.js +21 -22
- package/tag-group/definition.cjs +1 -1
- package/tag-group/definition.js +1 -1
- package/tag-group/index.cjs +4 -4
- package/tag-group/index.js +6 -6
- package/text-area/definition.cjs +1 -2
- package/text-area/definition.js +1 -2
- package/text-area/index.cjs +8 -9
- package/text-area/index.js +29 -31
- package/text-field/definition.cjs +0 -1
- package/text-field/definition.js +0 -1
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +0 -2
- package/time-picker/definition.cjs +1 -2
- package/time-picker/definition.js +1 -2
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +2 -3
- package/toggletip/definition.cjs +0 -1
- package/toggletip/definition.js +0 -1
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +0 -2
- package/tooltip/definition.cjs +0 -1
- package/tooltip/definition.js +0 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +0 -2
- package/tree-item/definition.cjs +1 -2
- package/tree-item/definition.js +1 -2
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +0 -2
- package/tree-view/definition.cjs +1 -2
- package/tree-view/definition.js +1 -2
- package/tree-view/index.cjs +4 -4
- package/tree-view/index.js +10 -10
- package/unbundled/affix.cjs +1 -1
- package/unbundled/affix.js +1 -1
- package/unbundled/aria-binding-directive.cjs +152 -0
- package/unbundled/aria-binding-directive.js +140 -0
- package/unbundled/calendar-picker.template.cjs +9 -11
- package/unbundled/calendar-picker.template.js +9 -11
- package/unbundled/char-count.cjs +3 -2
- package/unbundled/char-count.js +3 -2
- package/unbundled/decorate.cjs +1 -1
- package/unbundled/decorate.js +1 -1
- package/unbundled/definition.cjs +91 -17
- package/unbundled/definition.js +88 -14
- package/unbundled/definition10.cjs +5 -4
- package/unbundled/definition10.js +6 -5
- package/unbundled/definition11.cjs +14 -10
- package/unbundled/definition11.js +15 -11
- package/unbundled/definition12.cjs +17 -4
- package/unbundled/definition12.js +19 -6
- package/unbundled/definition13.cjs +7 -6
- package/unbundled/definition13.js +8 -7
- package/unbundled/definition14.cjs +67 -58
- package/unbundled/definition14.js +68 -59
- package/unbundled/definition15.cjs +1 -1
- package/unbundled/definition15.js +2 -2
- package/unbundled/definition16.cjs +1 -1
- package/unbundled/definition16.js +2 -2
- package/unbundled/definition17.cjs +11 -9
- package/unbundled/definition17.js +12 -10
- package/unbundled/definition18.cjs +1 -1
- package/unbundled/definition18.js +2 -2
- package/unbundled/definition19.js +1 -1
- package/unbundled/definition2.cjs +96 -75
- package/unbundled/definition2.js +94 -73
- package/unbundled/definition20.js +1 -1
- package/unbundled/definition21.js +1 -1
- package/unbundled/definition22.cjs +2 -3
- package/unbundled/definition22.js +3 -4
- package/unbundled/definition23.cjs +4 -4
- package/unbundled/definition23.js +6 -6
- package/unbundled/definition24.cjs +17 -13
- package/unbundled/definition24.js +18 -14
- package/unbundled/definition25.cjs +1 -1
- package/unbundled/definition25.js +2 -2
- package/unbundled/definition26.cjs +24 -8
- package/unbundled/definition26.js +23 -7
- package/unbundled/definition27.cjs +39 -22
- package/unbundled/definition27.js +41 -24
- package/unbundled/definition28.cjs +10 -7
- package/unbundled/definition28.js +12 -9
- package/unbundled/definition29.cjs +1 -1
- package/unbundled/definition29.js +2 -2
- package/unbundled/definition3.cjs +154 -95
- package/unbundled/definition3.js +146 -93
- package/unbundled/definition30.cjs +5 -3
- package/unbundled/definition30.js +7 -5
- package/unbundled/definition31.cjs +1 -1
- package/unbundled/definition31.js +2 -2
- package/unbundled/definition32.cjs +30 -23
- package/unbundled/definition32.js +31 -24
- package/unbundled/definition33.cjs +5 -3
- package/unbundled/definition33.js +6 -4
- package/unbundled/definition34.cjs +303 -113
- package/unbundled/definition34.js +302 -112
- package/unbundled/definition35.cjs +26 -326
- package/unbundled/definition35.js +24 -247
- package/unbundled/definition36.cjs +131 -25
- package/unbundled/definition36.js +124 -23
- package/unbundled/definition37.cjs +326 -51
- package/unbundled/definition37.js +324 -49
- package/unbundled/definition38.cjs +137 -316
- package/unbundled/definition38.js +135 -314
- package/unbundled/definition39.cjs +337 -173
- package/unbundled/definition39.js +334 -170
- package/unbundled/definition4.cjs +34 -153
- package/unbundled/definition4.js +25 -145
- package/unbundled/definition40.cjs +234 -339
- package/unbundled/definition40.js +230 -335
- package/unbundled/definition41.cjs +48 -266
- package/unbundled/definition41.js +44 -262
- package/unbundled/definition42.cjs +68 -49
- package/unbundled/definition42.js +65 -46
- package/unbundled/definition43.cjs +424 -56
- package/unbundled/definition43.js +422 -54
- package/unbundled/definition44.cjs +45 -427
- package/unbundled/definition44.js +42 -424
- package/unbundled/definition45.cjs +45 -54
- package/unbundled/definition45.js +42 -51
- package/unbundled/definition46.cjs +178 -30
- package/unbundled/definition46.js +175 -26
- package/unbundled/definition47.cjs +29 -93
- package/unbundled/definition47.js +25 -90
- package/unbundled/definition48.cjs +76 -36
- package/unbundled/definition48.js +73 -33
- package/unbundled/definition49.cjs +56 -23
- package/unbundled/definition49.js +54 -18
- package/unbundled/definition5.cjs +56 -38
- package/unbundled/definition5.js +52 -28
- package/unbundled/definition50.cjs +23 -40
- package/unbundled/definition50.js +18 -38
- package/unbundled/definition51.cjs +30 -338
- package/unbundled/definition51.js +30 -338
- package/unbundled/definition52.cjs +317 -187
- package/unbundled/definition52.js +314 -184
- package/unbundled/definition53.cjs +194 -285
- package/unbundled/definition53.js +189 -280
- package/unbundled/definition54.cjs +47 -54
- package/unbundled/definition54.js +44 -50
- package/unbundled/definition55.cjs +279 -131
- package/unbundled/definition55.js +277 -128
- package/unbundled/definition56.cjs +50 -261
- package/unbundled/definition56.js +48 -260
- package/unbundled/definition57.cjs +128 -449
- package/unbundled/definition57.js +126 -448
- package/unbundled/definition58.cjs +235 -3596
- package/unbundled/definition58.js +231 -3429
- package/unbundled/definition59.cjs +419 -729
- package/unbundled/definition59.js +417 -727
- package/unbundled/definition6.cjs +18 -64
- package/unbundled/definition6.js +15 -60
- package/unbundled/definition60.cjs +3666 -106
- package/unbundled/definition60.js +3498 -101
- package/unbundled/definition61.cjs +625 -873
- package/unbundled/definition61.js +619 -867
- package/unbundled/definition62.cjs +106 -108
- package/unbundled/definition62.js +103 -105
- package/unbundled/definition63.cjs +1045 -71
- package/unbundled/definition63.js +1041 -66
- package/unbundled/definition64.cjs +105 -170
- package/unbundled/definition64.js +102 -167
- package/unbundled/definition65.cjs +70 -113
- package/unbundled/definition65.js +66 -110
- package/unbundled/definition66.cjs +185 -54
- package/unbundled/definition66.js +182 -51
- package/unbundled/definition67.cjs +110 -77
- package/unbundled/definition67.js +111 -77
- package/unbundled/definition68.cjs +58 -21
- package/unbundled/definition68.js +56 -16
- package/unbundled/definition69.cjs +82 -75
- package/unbundled/definition69.js +81 -75
- package/unbundled/definition7.cjs +2 -2
- package/unbundled/definition7.js +3 -3
- package/unbundled/definition70.cjs +19 -344
- package/unbundled/definition70.js +15 -336
- package/unbundled/definition71.cjs +88 -26
- package/unbundled/definition71.js +86 -23
- package/unbundled/definition72.cjs +309 -118
- package/unbundled/definition72.js +234 -115
- package/unbundled/definition73.cjs +293 -217
- package/unbundled/definition73.js +287 -218
- package/unbundled/definition74.cjs +39 -30
- package/unbundled/definition74.js +29 -28
- package/unbundled/definition75.cjs +106 -121
- package/unbundled/definition75.js +104 -113
- package/unbundled/definition76.cjs +260 -178
- package/unbundled/definition76.js +258 -175
- package/unbundled/definition77.cjs +29 -514
- package/unbundled/definition77.js +27 -503
- package/unbundled/definition78.cjs +171 -0
- package/unbundled/definition78.js +147 -0
- package/unbundled/definition79.cjs +233 -0
- package/unbundled/definition79.js +214 -0
- package/unbundled/definition8.js +1 -1
- package/unbundled/definition80.cjs +533 -0
- package/unbundled/definition80.js +513 -0
- package/unbundled/definition9.cjs +10 -8
- package/unbundled/definition9.js +11 -9
- package/unbundled/delegates-aria.cjs +19 -60
- package/unbundled/delegates-aria.js +20 -60
- package/unbundled/divider.cjs +6 -0
- package/unbundled/divider.js +6 -0
- package/unbundled/form-element.cjs +7 -5
- package/unbundled/form-element.js +7 -5
- package/unbundled/host-semantics.cjs +11 -45
- package/unbundled/host-semantics.js +11 -44
- package/unbundled/kbd-shortcut.cjs +26 -0
- package/unbundled/kbd-shortcut.js +20 -0
- package/unbundled/mixins.cjs +7 -77
- package/unbundled/mixins.js +6 -64
- package/unbundled/picker-field.template.cjs +20 -15
- package/unbundled/picker-field.template.js +20 -15
- package/unbundled/platform.cjs +17 -0
- package/unbundled/platform.js +12 -0
- package/unbundled/randomId.cjs +47 -0
- package/unbundled/randomId.js +35 -0
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +4 -3
- package/unbundled/time-selection-picker.template.js +5 -4
- package/unbundled/vivid-element.cjs +91 -9
- package/unbundled/vivid-element.js +66 -8
- package/video-player/definition.cjs +1 -1
- package/video-player/definition.js +1 -1
- package/video-player/index.cjs +24 -24
- package/video-player/index.js +3087 -3010
- package/visually-hidden/definition.cjs +1 -1
- package/visually-hidden/definition.js +1 -1
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +0 -1
- package/vivid.api.json +605 -7
- package/bundled/attribute-binding-behaviour.cjs +0 -1
- package/bundled/attribute-binding-behaviour.js +0 -18
- package/bundled/normalize.cjs +0 -1
- package/bundled/normalize.js +0 -7
- package/bundled/strings.cjs +0 -1
- package/bundled/strings.js +0 -7
- package/shared/aria/delegate-aria-behavior.d.ts +0 -23
- package/shared/aria/host-semantics-behavior.d.ts +0 -19
- package/shared/templating/attribute-binding-behaviour.d.ts +0 -14
- package/unbundled/attribute-binding-behaviour.cjs +0 -37
- package/unbundled/attribute-binding-behaviour.js +0 -31
package/color-picker/index.js
CHANGED
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, d as t, h as n, m as r, p as i, t as a, u as o } from "../bundled/vivid-element.js";
|
|
2
2
|
import { n as s } from "../bundled/repeat.js";
|
|
3
|
-
import { t as c } from "../bundled/
|
|
4
|
-
import { t as l } from "../bundled/
|
|
5
|
-
import { t as u } from "../bundled/
|
|
6
|
-
import "../bundled/numberConverter.js";
|
|
3
|
+
import { t as c } from "../bundled/slotted.js";
|
|
4
|
+
import { t as l } from "../bundled/ref.js";
|
|
5
|
+
import { t as u } from "../bundled/when.js";
|
|
7
6
|
import { t as d } from "../bundled/decorate.js";
|
|
8
7
|
import { r as ee, t as te } from "../bundled/definition2.js";
|
|
9
8
|
import { t as ne } from "../bundled/with-success-text.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { i as
|
|
16
|
-
import { i as
|
|
17
|
-
import { n as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import { n as
|
|
21
|
-
import { n as
|
|
9
|
+
import { t as f } from "../bundled/with-error-text.js";
|
|
10
|
+
import { t as re } from "../bundled/with-contextual-help.js";
|
|
11
|
+
import { t as ie } from "../bundled/trapped-focus.js";
|
|
12
|
+
import { t as p } from "../bundled/class-names.js";
|
|
13
|
+
import { n as ae, t as oe } from "../bundled/delegates-aria.js";
|
|
14
|
+
import { i as se, t as m } from "../bundled/definition6.js";
|
|
15
|
+
import { i as ce, t as le } from "../bundled/definition8.js";
|
|
16
|
+
import { n as ue, r as de } from "../bundled/definition9.js";
|
|
17
|
+
import { t as fe } from "../bundled/dialog.js";
|
|
18
|
+
import { r as pe, t as me } from "../bundled/mixins.js";
|
|
19
|
+
import { n as he, r as ge } from "../bundled/definition12.js";
|
|
20
|
+
import { n as h, t as _e } from "../bundled/base-color-picker.js";
|
|
22
21
|
//#region src/lib/color-picker/color-picker.scss?inline
|
|
23
|
-
var
|
|
22
|
+
var ve = ".palette{grid-template-columns:repeat(var(--swatches-per-row,7), var(--_color-swatch-size,24px));display:grid}.swatch{background-color:var(--swatch-color);block-size:var(--_color-swatch-size,24px);color:var(--vvd-color-canvas);cursor:pointer;inline-size:var(--_color-swatch-size,24px);border-radius:4px;padding:0;position:relative}.swatch:not(.contrast){border:none}.swatch.contrast{border:1px solid var(--vvd-color-neutral-400);color:var(--vvd-color-canvas-text)}.swatch:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:none;outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;--focus-inset:-3px}:host{--_low-ink-color:var(--vvd-color-neutral-600);display:inline-block}.base{min-inline-size:var(--_color-picker-min-inline-size,280px);display:inline-block}.control{inline-size:100%}.button{box-sizing:border-box;background-color:var(--button-color,var(--vvd-color-canvas-text));block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));color:var(--vvd-color-canvas);inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));padding-inline:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 4);vertical-align:middle;border:0;border-radius:4px;align-items:center;margin:0;text-decoration:none;display:inline-flex}.button.contrast{color:var(--vvd-color-canvas-text)}.button:not(.disabled){cursor:pointer}.button.disabled{background-color:var(--vvd-color-neutral-300);color:var(--vvd-color-neutral-500);cursor:not-allowed}.button:focus-visible{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}.button [data-vvd-component=icon]{font-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);line-height:1}.dialog{min-inline-size:var(--_color-picker-popup-min-inline-size,264px);flex-direction:column;display:flex}.dialog .header{justify-content:space-between;align-items:center;padding-block:8px;padding-inline:16px;display:inline-flex}.dialog .header-title{font:var(--vvd-typography-base-extended-bold);margin-block:0}.dialog .body{flex-direction:column;gap:16px;margin-block-end:16px;padding-inline:16px;display:flex}.dialog .hex-input-wrapper{align-items:stretch;gap:8px;display:flex}.dialog .hex-input-wrapper [data-vvd-component=button]{flex:none}.dialog .footer{border-top:1px solid var(--vvd-color-neutral-200);padding:16px}.dialog .footer-header{margin-block-end:8px}.dialog .swatches-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.dialog .palette{gap:var(--_color-swatches-gap,8px)}vvd-hex-input{flex:auto;min-width:0}vvd-hex-input::part(input),vvd-hex-input>input{box-sizing:border-box;background-color:var(--vvd-color-canvas);width:100%;height:100%;box-shadow:inset 0 0 0 1px var(--vvd-color-neutral-500);font:var(--vvd-typography-base);padding-inline:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);border:0;border-radius:8px;outline:#0000}vvd-hex-input::part(input):focus-visible,vvd-hex-input>input:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent}vvd-hex-picker{width:auto;height:auto;gap:16px;inline-size:100%}vvd-hex-picker::part(saturation){border-radius:8px;block-size:120px}vvd-hex-picker::part(hue){border-radius:8px;flex:0 0 8px}vvd-hex-picker::part(hue-pointer){width:10px;height:10px}vvd-hex-picker::part(saturation-pointer){width:18px;height:18px}::part(popup-base){inline-size:max-content;min-block-size:var(--_color-picker-popup-min-inline-size,264px);min-inline-size:var(--_color-picker-popup-min-inline-size,264px)}.visually-hidden{clip:rect(0 0 0 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}", g = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, _ = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
|
|
24
23
|
360 / (Math.PI * 2);
|
|
25
|
-
var
|
|
24
|
+
var ye = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
26
25
|
r: parseInt(e[0] + e[0], 16),
|
|
27
26
|
g: parseInt(e[1] + e[1], 16),
|
|
28
27
|
b: parseInt(e[2] + e[2], 16),
|
|
29
|
-
a: e.length === 4 ?
|
|
28
|
+
a: e.length === 4 ? _(parseInt(e[3] + e[3], 16) / 255, 2) : 1
|
|
30
29
|
} : {
|
|
31
30
|
r: parseInt(e.substring(0, 2), 16),
|
|
32
31
|
g: parseInt(e.substring(2, 4), 16),
|
|
33
32
|
b: parseInt(e.substring(4, 6), 16),
|
|
34
|
-
a: e.length === 8 ?
|
|
33
|
+
a: e.length === 8 ? _(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
|
|
35
34
|
}), be = (e) => Ce(Se(e)), xe = ({ h: e, s: t, v: n, a: r }) => {
|
|
36
35
|
let i = (200 - t) * n / 100;
|
|
37
36
|
return {
|
|
38
|
-
h:
|
|
39
|
-
s:
|
|
40
|
-
l:
|
|
41
|
-
a:
|
|
37
|
+
h: _(e),
|
|
38
|
+
s: _(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
|
|
39
|
+
l: _(i / 2),
|
|
40
|
+
a: _(r, 2)
|
|
42
41
|
};
|
|
43
42
|
}, y = (e) => {
|
|
44
43
|
let { h: t, s: n, l: r } = xe(e);
|
|
@@ -47,7 +46,7 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
47
46
|
e = e / 360 * 6, t /= 100, n /= 100;
|
|
48
47
|
let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
|
|
49
48
|
return {
|
|
50
|
-
r:
|
|
49
|
+
r: _([
|
|
51
50
|
n,
|
|
52
51
|
o,
|
|
53
52
|
a,
|
|
@@ -55,7 +54,7 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
55
54
|
s,
|
|
56
55
|
n
|
|
57
56
|
][c] * 255),
|
|
58
|
-
g:
|
|
57
|
+
g: _([
|
|
59
58
|
s,
|
|
60
59
|
n,
|
|
61
60
|
n,
|
|
@@ -63,7 +62,7 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
63
62
|
a,
|
|
64
63
|
a
|
|
65
64
|
][c] * 255),
|
|
66
|
-
b:
|
|
65
|
+
b: _([
|
|
67
66
|
a,
|
|
68
67
|
a,
|
|
69
68
|
s,
|
|
@@ -71,20 +70,20 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
71
70
|
n,
|
|
72
71
|
o
|
|
73
72
|
][c] * 255),
|
|
74
|
-
a:
|
|
73
|
+
a: _(r, 2)
|
|
75
74
|
};
|
|
76
75
|
}, b = (e) => {
|
|
77
76
|
let t = e.toString(16);
|
|
78
77
|
return t.length < 2 ? "0" + t : t;
|
|
79
78
|
}, Ce = ({ r: e, g: t, b: n, a: r }) => {
|
|
80
|
-
let i = r < 1 ? b(
|
|
79
|
+
let i = r < 1 ? b(_(r * 255)) : "";
|
|
81
80
|
return "#" + b(e) + b(t) + b(n) + i;
|
|
82
81
|
}, we = ({ r: e, g: t, b: n, a: r }) => {
|
|
83
82
|
let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
|
|
84
83
|
return {
|
|
85
|
-
h:
|
|
86
|
-
s:
|
|
87
|
-
v:
|
|
84
|
+
h: _(60 * (o < 0 ? o + 6 : o)),
|
|
85
|
+
s: _(i ? a / i * 100 : 0),
|
|
86
|
+
v: _(i / 255 * 100),
|
|
88
87
|
a: r
|
|
89
88
|
};
|
|
90
89
|
}, x = (e, t) => {
|
|
@@ -102,8 +101,8 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
102
101
|
}, T = !1, E = (e) => "touches" in e, D = (e) => T && !E(e) ? !1 : (T ||= E(e), !0), O = (e, t) => {
|
|
103
102
|
let n = E(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
|
|
104
103
|
w(e.el, "move", e.getMove({
|
|
105
|
-
x:
|
|
106
|
-
y:
|
|
104
|
+
x: g((n.pageX - (r.left + window.pageXOffset)) / r.width),
|
|
105
|
+
y: g((n.pageY - (r.top + window.pageYOffset)) / r.height)
|
|
107
106
|
}));
|
|
108
107
|
}, Ee = (e, t) => {
|
|
109
108
|
let n = t.keyCode;
|
|
@@ -160,10 +159,10 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
160
159
|
v: 100,
|
|
161
160
|
a: 1
|
|
162
161
|
})
|
|
163
|
-
}]), this.el.setAttribute("aria-valuenow", `${
|
|
162
|
+
}]), this.el.setAttribute("aria-valuenow", `${_(e)}`);
|
|
164
163
|
}
|
|
165
164
|
getMove(e, t) {
|
|
166
|
-
return { h: t ?
|
|
165
|
+
return { h: t ? g(this.h + e.x * 360, 0, 360) : 360 * e.x };
|
|
167
166
|
}
|
|
168
167
|
}, Oe = class extends k {
|
|
169
168
|
constructor(e) {
|
|
@@ -179,15 +178,15 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
179
178
|
s: 100,
|
|
180
179
|
v: 100,
|
|
181
180
|
a: 1
|
|
182
|
-
}) }]), this.el.setAttribute("aria-valuetext", `Saturation ${
|
|
181
|
+
}) }]), this.el.setAttribute("aria-valuetext", `Saturation ${_(e.s)}%, Brightness ${_(e.v)}%`);
|
|
183
182
|
}
|
|
184
183
|
getMove(e, t) {
|
|
185
184
|
return {
|
|
186
|
-
s: t ?
|
|
187
|
-
v: t ?
|
|
185
|
+
s: t ? g(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
|
|
186
|
+
v: t ? g(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
|
|
188
187
|
};
|
|
189
188
|
}
|
|
190
|
-
}, ke = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Ae = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", je = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", A = Symbol("same"), j = Symbol("color"), M = Symbol("hsva"), N = Symbol("update"), P = Symbol("parts"), F = Symbol("css"), I = Symbol("sliders"),
|
|
189
|
+
}, ke = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Ae = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", je = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", A = Symbol("same"), j = Symbol("color"), M = Symbol("hsva"), N = Symbol("update"), P = Symbol("parts"), F = Symbol("css"), I = Symbol("sliders"), Me = class extends HTMLElement {
|
|
191
190
|
static get observedAttributes() {
|
|
192
191
|
return ["color"];
|
|
193
192
|
}
|
|
@@ -240,9 +239,9 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
240
239
|
[N](e) {
|
|
241
240
|
this[M] = e, this[P].forEach((t) => t.update(e));
|
|
242
241
|
}
|
|
243
|
-
},
|
|
242
|
+
}, Ne = {
|
|
244
243
|
defaultColor: "#000",
|
|
245
|
-
toHsva:
|
|
244
|
+
toHsva: ye,
|
|
246
245
|
fromHsva: ({ h: e, s: t, v: n }) => be({
|
|
247
246
|
h: e,
|
|
248
247
|
s: t,
|
|
@@ -251,16 +250,16 @@ var _ = (e) => we(v(e)), v = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
251
250
|
}),
|
|
252
251
|
equal: Te,
|
|
253
252
|
fromAttr: (e) => e
|
|
254
|
-
},
|
|
253
|
+
}, Pe = class extends Me {
|
|
255
254
|
get colorModel() {
|
|
256
|
-
return
|
|
255
|
+
return Ne;
|
|
257
256
|
}
|
|
258
|
-
},
|
|
259
|
-
customElements.define("hex-color-picker",
|
|
257
|
+
}, L = class extends Pe {};
|
|
258
|
+
customElements.define("hex-color-picker", L);
|
|
260
259
|
//#endregion
|
|
261
260
|
//#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/validate.js
|
|
262
|
-
var
|
|
263
|
-
let n =
|
|
261
|
+
var R = /^#?([0-9A-F]{3,8})$/i, z = (e, t) => {
|
|
262
|
+
let n = R.exec(e), r = n ? n[1].length : 0;
|
|
264
263
|
return r === 3 || r === 6 || !!t && r === 4 || !!t && r === 8;
|
|
265
264
|
}, Fe = C("<slot><input part=\"input\" spellcheck=\"false\"></slot>"), B = (e, t) => e.replace(/([^0-9A-F]+)/gi, "").substring(0, t ? 8 : 6), V = Symbol("alpha"), H = Symbol("color"), U = Symbol("saved"), W = Symbol("input"), G = Symbol("init"), K = Symbol("prefix"), q = Symbol("update"), Ie = class extends HTMLElement {
|
|
266
265
|
static get observedAttributes() {
|
|
@@ -343,7 +342,7 @@ var Pe = /^#?([0-9A-F]{3,8})$/i, z = (e, t) => {
|
|
|
343
342
|
customElements.define("hex-input", J);
|
|
344
343
|
//#endregion
|
|
345
344
|
//#region src/lib/color-picker/color-picker.ts
|
|
346
|
-
var Y = "vvd-hex-picker", X = "vvd-hex-input", Le = class extends
|
|
345
|
+
var Y = "vvd-hex-picker", X = "vvd-hex-input", Le = class extends L {
|
|
347
346
|
static {
|
|
348
347
|
this.displayName = "VvdHexPicker";
|
|
349
348
|
}
|
|
@@ -354,9 +353,11 @@ var Y = "vvd-hex-picker", X = "vvd-hex-input", Le = class extends R {
|
|
|
354
353
|
};
|
|
355
354
|
/* v8 ignore if -- @preserve */
|
|
356
355
|
customElements.get(Y) || customElements.define(Y, Le), customElements.get(X) || customElements.define(X, Re);
|
|
357
|
-
var Z = Y, Q = X, $ = class extends
|
|
356
|
+
var Z = Y, Q = X, $ = class extends re(me(f(ne(oe(ie(_e(a))))))) {
|
|
358
357
|
constructor(...e) {
|
|
359
|
-
super(...e), this.disableSavedColors = !1, this.savedColors = [], this.maxSwatches = 6, this
|
|
358
|
+
super(...e), this.disableSavedColors = !1, this.savedColors = [], this.maxSwatches = 6, this.#e = (e) => {
|
|
359
|
+
this._isInPath(e, this._buttonEl) || this._isInPath(e, this._popupEl) || (this.open = !1);
|
|
360
|
+
}, this.copyIconName = "copy-2-line", this.#t = null, this._copyValueToClipboard = async (e) => {
|
|
360
361
|
try {
|
|
361
362
|
await navigator.clipboard.writeText(e), this._setTemporaryCopyIcon("check-circle-line"), this._ariaLiveDescription = this.locale.colorPicker.copySuccessMessage(e);
|
|
362
363
|
} catch {
|
|
@@ -390,7 +391,7 @@ var Z = Y, Q = X, $ = class extends ie(he(re(ne(se(ae(ve(a))))))) {
|
|
|
390
391
|
}
|
|
391
392
|
_saveCurrentColor() {
|
|
392
393
|
let e = this.value;
|
|
393
|
-
if (typeof e != "string" || !
|
|
394
|
+
if (typeof e != "string" || !h(e)) return;
|
|
394
395
|
let t = Array.isArray(this.savedColors) ? [...this.savedColors] : [], n = t.findIndex((t) => t?.value === e);
|
|
395
396
|
n !== -1 && t.splice(n, 1), t.unshift({ value: e }), this.savedColors = t.slice(0, this._maxSwatchesNormalized), this._setSavedColors(this.savedColors);
|
|
396
397
|
}
|
|
@@ -399,7 +400,7 @@ var Z = Y, Q = X, $ = class extends ie(he(re(ne(se(ae(ve(a))))))) {
|
|
|
399
400
|
let e = localStorage.getItem(this._savedColorsStorageKey);
|
|
400
401
|
if (!e) return [];
|
|
401
402
|
let t = JSON.parse(e);
|
|
402
|
-
return Array.isArray(t) ? t.filter((e) => e && typeof e.value == "string" &&
|
|
403
|
+
return Array.isArray(t) ? t.filter((e) => e && typeof e.value == "string" && h(e.value)).map((e) => ({
|
|
403
404
|
value: e.value,
|
|
404
405
|
label: typeof e.label == "string" ? e.label : void 0
|
|
405
406
|
})) : [];
|
|
@@ -414,7 +415,7 @@ var Z = Y, Q = X, $ = class extends ie(he(re(ne(se(ae(ve(a))))))) {
|
|
|
414
415
|
}
|
|
415
416
|
get allSwatches() {
|
|
416
417
|
let e = Array.isArray(this.swatches) ? this.swatches : [], t = Array.isArray(this.savedColors) ? this.savedColors : [], n = /* @__PURE__ */ new Set(), r = [], i = (e) => {
|
|
417
|
-
!e || typeof e.value != "string" || !
|
|
418
|
+
!e || typeof e.value != "string" || !h(e.value) || n.has(e.value) || (n.add(e.value), r.push(e));
|
|
418
419
|
};
|
|
419
420
|
return this.disableSavedColors || t.forEach(i), e.forEach(i), r.slice(0, this._maxSwatchesNormalized);
|
|
420
421
|
}
|
|
@@ -432,10 +433,11 @@ var Z = Y, Q = X, $ = class extends ie(he(re(ne(se(ae(ve(a))))))) {
|
|
|
432
433
|
this._vcHexPickerEl && typeof t == "string" && (this._vcHexPickerEl.color = t), this._vcHexInputEl && typeof t == "string" && (this._vcHexInputEl.color = t);
|
|
433
434
|
}
|
|
434
435
|
_onTextFieldInput(e) {
|
|
435
|
-
|
|
436
|
+
let t = e.currentTarget;
|
|
437
|
+
this.value = t.value;
|
|
436
438
|
}
|
|
437
439
|
get _buttonColor() {
|
|
438
|
-
return this._canvasColor || this._refreshCanvasColor(), this.value &&
|
|
440
|
+
return this._canvasColor || this._refreshCanvasColor(), this.value && h(this.value) ? this.value : "var(--vvd-color-canvas-text)";
|
|
439
441
|
}
|
|
440
442
|
_onButtonClick() {
|
|
441
443
|
this.open = !this.open;
|
|
@@ -448,23 +450,21 @@ var Z = Y, Q = X, $ = class extends ie(he(re(ne(se(ae(ve(a))))))) {
|
|
|
448
450
|
let n = e.composedPath?.();
|
|
449
451
|
return !!(n && n.includes(t));
|
|
450
452
|
}
|
|
451
|
-
#e
|
|
452
|
-
this._isInPath(e, this._buttonEl) || this._isInPath(e, this._popupEl) || (this.open = !1);
|
|
453
|
-
};
|
|
453
|
+
#e;
|
|
454
454
|
connectedCallback() {
|
|
455
455
|
super.connectedCallback(), this.savedColors = this._loadSavedColors(), document.addEventListener("mousedown", this.#e, !0);
|
|
456
456
|
}
|
|
457
457
|
disconnectedCallback() {
|
|
458
458
|
super.disconnectedCallback(), document.removeEventListener("mousedown", this.#e, !0);
|
|
459
459
|
}
|
|
460
|
-
#t
|
|
460
|
+
#t;
|
|
461
461
|
_setTemporaryCopyIcon(e, t = 2e3) {
|
|
462
462
|
this.copyIconName = e, this.#t && clearTimeout(this.#t), this.#t = setTimeout(() => {
|
|
463
463
|
this.copyIconName = "copy-2-line", this.#t = null;
|
|
464
464
|
}, t);
|
|
465
465
|
}
|
|
466
466
|
_onBaseKeydown(e) {
|
|
467
|
-
return this.open &&
|
|
467
|
+
return this.open && fe(e) ? (this.open = !1, !1) : !this._trappedFocus(e, () => this._focusableElsWithinDialog());
|
|
468
468
|
}
|
|
469
469
|
_focusableElsWithinDialog() {
|
|
470
470
|
return this._popupEl.querySelectorAll("button:not([role=\"gridcell\"]), [data-vvd-component=\"button\"], vwc-button:not([role=\"gridcell\"])");
|
|
@@ -481,21 +481,21 @@ var Z = Y, Q = X, $ = class extends ie(he(re(ne(se(ae(ve(a))))))) {
|
|
|
481
481
|
this.value !== e && (this._ariaLiveDescription = this.locale.colorPicker.selectionSuccessMessage(e)), super._handleSwatchSelection(e);
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
|
-
d([
|
|
484
|
+
d([r], $.prototype, "placeholder", void 0), d([r({ attribute: "saved-colors-key" })], $.prototype, "savedColorsKey", void 0), d([r({
|
|
485
485
|
mode: "boolean",
|
|
486
486
|
attribute: "disable-saved-colors"
|
|
487
|
-
})], $.prototype, "disableSavedColors", void 0), d([e], $.prototype, "savedColors", void 0), d([
|
|
487
|
+
})], $.prototype, "disableSavedColors", void 0), d([e], $.prototype, "savedColors", void 0), d([r({
|
|
488
488
|
attribute: "max-swatches",
|
|
489
489
|
mode: "fromView",
|
|
490
|
-
converter:
|
|
490
|
+
converter: n
|
|
491
491
|
})], $.prototype, "maxSwatches", void 0), d([e], $.prototype, "copyIconName", void 0), d([e], $.prototype, "_ariaLiveDescription", void 0);
|
|
492
492
|
//#endregion
|
|
493
493
|
//#region src/lib/color-picker/color-picker.template.ts
|
|
494
|
-
function ze(e,
|
|
495
|
-
return
|
|
494
|
+
function ze(e, t) {
|
|
495
|
+
return i`
|
|
496
496
|
<${e}
|
|
497
497
|
id="text-field"
|
|
498
|
-
class="${(e) =>
|
|
498
|
+
class="${(e) => p("control")}"
|
|
499
499
|
pattern="${$.HEX_COLOR_PATTERN.source}"
|
|
500
500
|
maxlength="7"
|
|
501
501
|
label="${(e) => e.label}"
|
|
@@ -514,36 +514,36 @@ function ze(e, n) {
|
|
|
514
514
|
@focus="${(e) => {
|
|
515
515
|
e.$emit("focus", void 0, { bubbles: !1 });
|
|
516
516
|
}}"
|
|
517
|
-
${
|
|
518
|
-
${
|
|
517
|
+
${ae()}
|
|
518
|
+
${l("_textFieldEl")}
|
|
519
519
|
>
|
|
520
520
|
<button
|
|
521
521
|
aria-label="${(e) => e.locale.colorPicker.pickerButtonLabel}"
|
|
522
522
|
aria-expanded="${(e) => e.open}"
|
|
523
523
|
aria-haspopup="dialog"
|
|
524
|
-
class="button ${(e) =>
|
|
524
|
+
class="button ${(e) => p(e._applyContrastClass(e._buttonColor) ? "contrast" : "", e.disabled ? "disabled" : "")}"
|
|
525
525
|
style="--button-color: ${(e) => e._buttonColor};"
|
|
526
526
|
?disabled="${(e) => e.disabled}"
|
|
527
527
|
@click="${(e) => e._onButtonClick()}"
|
|
528
528
|
slot="action-items"
|
|
529
|
-
${
|
|
530
|
-
<${
|
|
529
|
+
${l("_buttonEl")}>
|
|
530
|
+
<${t} name="edit-line"></${t}>
|
|
531
531
|
</button>
|
|
532
532
|
<slot
|
|
533
533
|
slot="${(e) => e._helperTextSlottedContent?.length ? "helper-text" : void 0}"
|
|
534
534
|
name="helper-text"
|
|
535
|
-
${
|
|
535
|
+
${c("_helperTextSlottedContent")}
|
|
536
536
|
></slot>
|
|
537
537
|
<slot
|
|
538
538
|
slot='${(e) => e._contextualHelpSlottedContent?.length ? "contextual-help" : void 0}'
|
|
539
539
|
name='contextual-help'
|
|
540
|
-
${
|
|
540
|
+
${c("_contextualHelpSlottedContent")}
|
|
541
541
|
></slot>
|
|
542
542
|
</${e}>
|
|
543
543
|
`;
|
|
544
544
|
}
|
|
545
|
-
function Be(e,
|
|
546
|
-
return
|
|
545
|
+
function Be(e, t) {
|
|
546
|
+
return i`
|
|
547
547
|
<div class="header">
|
|
548
548
|
<h2 class="header-title" id="color-picker-title">
|
|
549
549
|
<slot name="popup-text">${(e) => e.locale.colorPicker.popupLabel}</slot>
|
|
@@ -551,49 +551,49 @@ function Be(e, n) {
|
|
|
551
551
|
<${e} size="condensed"
|
|
552
552
|
aria-label="${(e) => e.locale.colorPicker.closeButtonLabel}"
|
|
553
553
|
@click="${(e) => e._handleCloseRequest()}">
|
|
554
|
-
<${
|
|
554
|
+
<${t} slot="icon" name="close-line"></${t}>
|
|
555
555
|
</${e}>
|
|
556
556
|
</div>
|
|
557
557
|
`;
|
|
558
558
|
}
|
|
559
|
-
function Ve(e,
|
|
560
|
-
return
|
|
559
|
+
function Ve(e, t, n) {
|
|
560
|
+
return i`
|
|
561
561
|
<div class="body">
|
|
562
|
-
<${
|
|
562
|
+
<${i.partial(Z)}
|
|
563
563
|
part="hex-picker"
|
|
564
564
|
color="${(e) => e.value}"
|
|
565
565
|
@color-changed="${(e, t) => e._onPickerColorChanged(t.event)}"
|
|
566
|
-
${
|
|
567
|
-
></${
|
|
566
|
+
${l("_vcHexPickerEl")}
|
|
567
|
+
></${i.partial(Z)}>
|
|
568
568
|
<div class="hex-input-wrapper">
|
|
569
|
-
<${
|
|
569
|
+
<${i.partial(Q)}
|
|
570
570
|
part="hex-input"
|
|
571
571
|
prefixed
|
|
572
572
|
color="${(e) => e.value}"
|
|
573
573
|
@color-changed="${(e, t) => e._onPickerColorChanged(t.event)}"
|
|
574
|
-
${
|
|
574
|
+
${l("_vcHexInputEl")}
|
|
575
575
|
>
|
|
576
576
|
<input name="hex-code-input" aria-label="${(e) => e.locale.colorPicker.hexInputLabel}"
|
|
577
577
|
placeholder="${(e) => e.placeholder}"
|
|
578
578
|
@blur="${(e, t) => t.event.stopImmediatePropagation()}"
|
|
579
579
|
part="input">
|
|
580
|
-
</${
|
|
581
|
-
<${
|
|
580
|
+
</${i.partial(Q)}>
|
|
581
|
+
<${n} placement="top"
|
|
582
582
|
text="${(e) => e.locale.colorPicker.copyButtonLabel}"
|
|
583
583
|
exportparts="vvd-theme-alternate">
|
|
584
584
|
<${e}
|
|
585
585
|
slot="anchor" size="normal"
|
|
586
586
|
aria-label="${(e) => e.locale.colorPicker.copyButtonLabel}"
|
|
587
587
|
@click="${(e) => e._copyValueToClipboard(e.value)}">
|
|
588
|
-
<${
|
|
588
|
+
<${t} slot="icon" name="${(e) => e.copyIconName}"></${t}>
|
|
589
589
|
</${e}>
|
|
590
|
-
</${
|
|
590
|
+
</${n}>
|
|
591
591
|
</div>
|
|
592
592
|
</div>
|
|
593
593
|
`;
|
|
594
594
|
}
|
|
595
|
-
function He(e,
|
|
596
|
-
return
|
|
595
|
+
function He(e, t, n) {
|
|
596
|
+
return i`
|
|
597
597
|
<div class="footer">
|
|
598
598
|
<div class="footer-header">
|
|
599
599
|
<span class="footer-title" id="color-picker-footer-title"
|
|
@@ -601,7 +601,7 @@ function He(e, n, r) {
|
|
|
601
601
|
>${(e) => e.locale.colorPicker.swatchesLabel}</slot
|
|
602
602
|
></span
|
|
603
603
|
>
|
|
604
|
-
${
|
|
604
|
+
${u((e) => !e.disableSavedColors, Ue())}
|
|
605
605
|
</div>
|
|
606
606
|
<div
|
|
607
607
|
class="palette"
|
|
@@ -611,9 +611,9 @@ function He(e, n, r) {
|
|
|
611
611
|
style="--swatches-per-row: ${(e) => e._getRowLength()};"
|
|
612
612
|
aria-labelledby="color-picker-footer-title"
|
|
613
613
|
>
|
|
614
|
-
${s((e) => e.allSwatches, (e) => e._renderColorSwatch(
|
|
615
|
-
${
|
|
616
|
-
<${
|
|
614
|
+
${s((e) => e.allSwatches, (e) => e._renderColorSwatch(t, n), { positioning: !0 })}
|
|
615
|
+
${u((e) => !e.disableSavedColors, i`
|
|
616
|
+
<${n} placement="top"
|
|
617
617
|
text="${(e) => e.locale.colorPicker.saveButtonLabel}"
|
|
618
618
|
exportparts="vvd-theme-alternate">
|
|
619
619
|
<${e}
|
|
@@ -625,16 +625,16 @@ function He(e, n, r) {
|
|
|
625
625
|
aria-label="${(e) => e.locale.colorPicker.saveButtonLabel}"
|
|
626
626
|
@click="${(e) => e._saveCurrentColor()}"
|
|
627
627
|
@keydown="${(e, t) => e._handleCellKeydown(t.event, e.value, e.allSwatches.length, !0)}">
|
|
628
|
-
<${
|
|
628
|
+
<${t} slot="icon" name="plus-line"></${t}>
|
|
629
629
|
</${e}>
|
|
630
|
-
</${
|
|
630
|
+
</${n}>
|
|
631
631
|
`)}
|
|
632
632
|
</div>
|
|
633
633
|
</div>
|
|
634
634
|
`;
|
|
635
635
|
}
|
|
636
636
|
function Ue() {
|
|
637
|
-
return
|
|
637
|
+
return i`
|
|
638
638
|
<span
|
|
639
639
|
id="swatches-count"
|
|
640
640
|
class="swatches-count"
|
|
@@ -645,37 +645,37 @@ function Ue() {
|
|
|
645
645
|
}
|
|
646
646
|
//#endregion
|
|
647
647
|
//#region src/lib/color-picker/index.ts
|
|
648
|
-
|
|
649
|
-
let
|
|
650
|
-
return
|
|
648
|
+
t(o("color-picker", $, (e) => {
|
|
649
|
+
let t = e.tagFor(ge), n = e.tagFor(ee), r = e.tagFor(ce), a = e.tagFor(se), o = e.tagFor(de);
|
|
650
|
+
return i`
|
|
651
651
|
<div class="base" @keydown="${(e, { event: t }) => e._onBaseKeydown(t)}">
|
|
652
652
|
<span aria-live="assertive" aria-relevant="text" class="visually-hidden">
|
|
653
653
|
${(e) => e._ariaLiveDescription}
|
|
654
654
|
</span>
|
|
655
|
-
${ze(
|
|
656
|
-
<${
|
|
655
|
+
${ze(t, n)}
|
|
656
|
+
<${r}
|
|
657
657
|
:open="${(e) => e.open}"
|
|
658
658
|
:anchor="${(e) => e._buttonEl}"
|
|
659
659
|
placement="top"
|
|
660
660
|
offset="10"
|
|
661
|
-
${
|
|
661
|
+
${l("_popupEl")}>
|
|
662
662
|
<div class="dialog"
|
|
663
663
|
role="dialog"
|
|
664
664
|
aria-modal="true"
|
|
665
665
|
aria-labelledby="color-picker-title">
|
|
666
|
-
${Be(a,
|
|
667
|
-
${Ve(a,
|
|
668
|
-
${
|
|
666
|
+
${Be(a, n)}
|
|
667
|
+
${Ve(a, n, o)}
|
|
668
|
+
${u((e) => !e.disableSavedColors || e.allSwatches.length > 0, He(a, n, o))}
|
|
669
669
|
</div>
|
|
670
|
-
</${
|
|
670
|
+
</${r}>
|
|
671
671
|
</div>
|
|
672
672
|
`;
|
|
673
673
|
}, [
|
|
674
|
-
|
|
674
|
+
le,
|
|
675
675
|
te,
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
], { styles:
|
|
676
|
+
he,
|
|
677
|
+
m,
|
|
678
|
+
ue,
|
|
679
|
+
pe
|
|
680
|
+
], { styles: ve }))();
|
|
681
681
|
//#endregion
|
package/combobox/definition.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../unbundled/numberConverter.cjs");
|
|
3
2
|
const require_definition = require("../unbundled/definition30.cjs");
|
|
4
3
|
exports.VwcComboboxElement = require_definition.Combobox;
|
|
5
4
|
exports.comboboxDefinition = require_definition.comboboxDefinition;
|
package/combobox/definition.js
CHANGED