@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/breadcrumb/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/slotted.cjs`),n=require(`../bundled/decorate.cjs`),r=require(`../bundled/delegates-aria.cjs`),i=require(`../bundled/breadcrumb-item.cjs`);var a=e.
|
|
1
|
+
const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/slotted.cjs`),n=require(`../bundled/decorate.cjs`),r=require(`../bundled/delegates-aria.cjs`),i=require(`../bundled/breadcrumb-item.cjs`);var a=e.p`
|
|
2
2
|
<nav
|
|
3
3
|
class="base"
|
|
4
4
|
${r.n({ariaLabel:e=>e.ariaLabel||`breadcrumbs`})}
|
|
@@ -9,4 +9,4 @@ const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/slotted.cj
|
|
|
9
9
|
></slot>
|
|
10
10
|
</div>
|
|
11
11
|
</nav>
|
|
12
|
-
`,o=`.list{display:flex}`,s=class extends r.t(e.t){slottedBreadcrumbItemsChanged(e,t){t&&t.forEach((e,n)=>{let r=n===t.length-1;this.setItemSeparator(e,r),this.setAriaCurrent(e,r)})}setItemSeparator(e,t){e instanceof i.t&&(e.separator=!t)}findChildWithHref(e){return e.childElementCount>0?e.querySelector(`a[href]`):e.shadowRoot?e.shadowRoot.querySelector(`a[href]`):null}setAriaCurrent(e,t){let n=this.findChildWithHref(e);n!==null&&(t?n.setAttribute(`aria-current`,`page`):n.removeAttribute(`aria-current`))}};n.t([e.
|
|
12
|
+
`,o=`.list{display:flex}`,s=class extends r.t(e.t){slottedBreadcrumbItemsChanged(e,t){t&&t.forEach((e,n)=>{let r=n===t.length-1;this.setItemSeparator(e,r),this.setAriaCurrent(e,r)})}setItemSeparator(e,t){e instanceof i.t&&(e.separator=!t)}findChildWithHref(e){return e.childElementCount>0?e.querySelector(`a[href]`):e.shadowRoot?e.shadowRoot.querySelector(`a[href]`):null}setAriaCurrent(e,t){let n=this.findChildWithHref(e);n!==null&&(t?n.setAttribute(`aria-current`,`page`):n.removeAttribute(`aria-current`))}};n.t([e.A],s.prototype,`slottedBreadcrumbItems`,void 0);var c=e.u(`breadcrumb`,s,a,[],{styles:o});e.d(c)();
|
package/breadcrumb/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, d as t, p as n, t as r, u as i } from "../bundled/vivid-element.js";
|
|
2
2
|
import { r as a, t as o } from "../bundled/slotted.js";
|
|
3
3
|
import { t as s } from "../bundled/decorate.js";
|
|
4
4
|
import { n as c, t as l } from "../bundled/delegates-aria.js";
|
|
5
5
|
import { t as u } from "../bundled/breadcrumb-item.js";
|
|
6
6
|
//#region src/lib/breadcrumb/breadcrumb.template.ts
|
|
7
|
-
var d =
|
|
7
|
+
var d = n`
|
|
8
8
|
<nav
|
|
9
9
|
class="base"
|
|
10
10
|
${c({ ariaLabel: (e) => e.ariaLabel || "breadcrumbs" })}
|
|
@@ -18,7 +18,7 @@ var d = t`
|
|
|
18
18
|
></slot>
|
|
19
19
|
</div>
|
|
20
20
|
</nav>
|
|
21
|
-
`, f = ".list{display:flex}", p = class extends l(
|
|
21
|
+
`, f = ".list{display:flex}", p = class extends l(r) {
|
|
22
22
|
slottedBreadcrumbItemsChanged(e, t) {
|
|
23
23
|
/* v8 ignore else -- @preserve */
|
|
24
24
|
t && t.forEach((e, n) => {
|
|
@@ -39,5 +39,5 @@ var d = t`
|
|
|
39
39
|
};
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/lib/breadcrumb/index.ts
|
|
42
|
-
s([e], p.prototype, "slottedBreadcrumbItems", void 0),
|
|
42
|
+
s([e], p.prototype, "slottedBreadcrumbItems", void 0), t(i("breadcrumb", p, d, [], { styles: f }))();
|
|
43
43
|
//#endregion
|
|
@@ -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/definition18.cjs");
|
|
4
3
|
const require_breadcrumb_item = require("../unbundled/breadcrumb-item.cjs");
|
|
5
4
|
exports.VwcBreadcrumbItemElement = require_breadcrumb_item.BreadcrumbItem;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../unbundled/numberConverter.js";
|
|
2
1
|
import { n as registerBreadcrumbItem, t as breadcrumbItemDefinition } from "../unbundled/definition18.js";
|
|
3
2
|
import { t as BreadcrumbItem } from "../unbundled/breadcrumb-item.js";
|
|
4
3
|
export { BreadcrumbItem as VwcBreadcrumbItemElement, breadcrumbItemDefinition, registerBreadcrumbItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/when.cjs`)
|
|
2
|
-
${t.t(e=>e.text&&!e.href,e.
|
|
3
|
-
${t.t(e=>e.text&&e.href&&e.href.length>0,e.
|
|
4
|
-
${t.t(e=>e.separator,e.
|
|
5
|
-
</div>`},[n.t],{styles:a,shadowOptions:{delegatesFocus:!0}});e.
|
|
1
|
+
const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/when.cjs`),n=require(`../bundled/definition2.cjs`),r=require(`../bundled/class-names.cjs`),i=require(`../bundled/breadcrumb-item.cjs`);var a=`.base{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);align-items:center;display:flex}.base .separator{color:var(--vvd-color-neutral-600);margin:0 16px;font-size:12px}.control{font:inherit}.control:focus-visible{outline:none;position:relative}.control:focus-visible:after{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));border-radius:var(--focus-border-radius,inherit);block-size:calc(100% + var(--focus-block-size-addition,4px));content:"";inline-size:calc(100% + var(--focus-block-size-addition,4px));--focus-stroke-gap-color:transparent;--focus-block-size-addition:8px;--focus-border-radius:4px;display:block;position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)}.control:any-link{color:var(--vvd-color-cta-600);text-decoration:none}@media (hover:hover){.control:any-link:hover{text-decoration:underline}}`,o=e=>r.t(`base`),s=e.u(`breadcrumb-item`,i.t,r=>{let i=r.tagFor(n.r);return e.p` <div role="listitem" class="${o}">
|
|
2
|
+
${t.t(e=>e.text&&!e.href,e.p`${e=>e.text}`)}
|
|
3
|
+
${t.t(e=>e.text&&e.href&&e.href.length>0,e.p`${t=>t._renderLinkElement(e.p`${e=>e.text}`,`control`)}`)}
|
|
4
|
+
${t.t(e=>e.separator,e.p`<${i} class="separator" name="chevron-right-solid"></${i}>`)}
|
|
5
|
+
</div>`},[n.t],{styles:a,shadowOptions:{delegatesFocus:!0}});e.d(s)();
|
package/breadcrumb-item/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { d as e,
|
|
1
|
+
import { d as e, p as t, u as n } from "../bundled/vivid-element.js";
|
|
2
2
|
import { t as r } from "../bundled/when.js";
|
|
3
|
-
import "../bundled/numberConverter.js";
|
|
4
3
|
import { r as i, t as a } from "../bundled/definition2.js";
|
|
5
4
|
import { t as o } from "../bundled/class-names.js";
|
|
6
5
|
import { t as s } from "../bundled/breadcrumb-item.js";
|
|
@@ -8,12 +7,12 @@ import { t as s } from "../bundled/breadcrumb-item.js";
|
|
|
8
7
|
var c = ".base{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);align-items:center;display:flex}.base .separator{color:var(--vvd-color-neutral-600);margin:0 16px;font-size:12px}.control{font:inherit}.control:focus-visible{outline:none;position:relative}.control:focus-visible:after{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));border-radius:var(--focus-border-radius,inherit);block-size:calc(100% + var(--focus-block-size-addition,4px));content:\"\";inline-size:calc(100% + var(--focus-block-size-addition,4px));--focus-stroke-gap-color:transparent;--focus-block-size-addition:8px;--focus-border-radius:4px;display:block;position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)}.control:any-link{color:var(--vvd-color-cta-600);text-decoration:none}@media (hover:hover){.control:any-link:hover{text-decoration:underline}}", l = (e) => o("base");
|
|
9
8
|
//#endregion
|
|
10
9
|
//#region src/lib/breadcrumb-item/index.ts
|
|
11
|
-
n(
|
|
12
|
-
let n =
|
|
13
|
-
return
|
|
14
|
-
${r((e) => e.text && !e.href,
|
|
15
|
-
${r((e) => e.text && e.href && e.href.length > 0,
|
|
16
|
-
${r((e) => e.separator,
|
|
10
|
+
e(n("breadcrumb-item", s, (e) => {
|
|
11
|
+
let n = e.tagFor(i);
|
|
12
|
+
return t` <div role="listitem" class="${l}">
|
|
13
|
+
${r((e) => e.text && !e.href, t`${(e) => e.text}`)}
|
|
14
|
+
${r((e) => e.text && e.href && e.href.length > 0, t`${(e) => e._renderLinkElement(t`${(e) => e.text}`, "control")}`)}
|
|
15
|
+
${r((e) => e.separator, t`<${n} class="separator" name="chevron-right-solid"></${n}>`)}
|
|
17
16
|
</div>`;
|
|
18
17
|
}, [a], {
|
|
19
18
|
styles: c,
|
package/bundled/affix.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const e=require(`./vivid-element.cjs`),t=require(`./slotted.cjs`),n=require(`./decorate.cjs`),r=require(`./definition2.cjs`);var i=t=>{class r extends t{}return n.t([e.
|
|
1
|
+
const e=require(`./vivid-element.cjs`),t=require(`./slotted.cjs`),n=require(`./decorate.cjs`),r=require(`./definition2.cjs`);var i=t=>{class r extends t{}return n.t([e.m],r.prototype,`icon`,void 0),n.t([e.A],r.prototype,`iconSlottedContent`,void 0),r},a=t=>{class r extends i(t){constructor(...e){super(...e),this.iconTrailing=!1}}return n.t([e.m({mode:`boolean`,attribute:`icon-trailing`})],r.prototype,`iconTrailing`,void 0),r},o={Slot:!1,Span:!0},s={Hidden:`true`,Visible:`false`},c=n=>{let i=n.tagFor(r.r);return(n,r=o.Span,a=s.Hidden,c={label:``,announceOnUpdate:!1})=>{if(!n&&!r)return e.p`<slot
|
|
2
2
|
name="icon"
|
|
3
3
|
aria-hidden="${()=>a}"
|
|
4
4
|
${t.t(`iconSlottedContent`)}
|
|
5
|
-
></slot>`;if(!n&&r)return null;let l=e.
|
|
5
|
+
></slot>`;if(!n&&r)return null;let l=e.p`<${i} :name="${()=>n}" :label="${()=>c?.label||void 0}"></${i}>`,u=e.p.partial(r?`span`:`slot`);return e.p`<${u}
|
|
6
6
|
class="${()=>r?`icon`:void 0}"
|
|
7
7
|
:name="${()=>r?void 0:`icon`}"
|
|
8
8
|
aria-hidden="${()=>c?.label?!1:a}"
|
package/bundled/affix.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, m as t, p as n } from "./vivid-element.js";
|
|
2
2
|
import { t as r } from "./slotted.js";
|
|
3
3
|
import { t as i } from "./decorate.js";
|
|
4
4
|
import { r as a } from "./definition2.js";
|
|
5
5
|
//#region src/shared/patterns/affix.ts
|
|
6
|
-
var o = (
|
|
7
|
-
class r extends
|
|
8
|
-
return i([
|
|
6
|
+
var o = (n) => {
|
|
7
|
+
class r extends n {}
|
|
8
|
+
return i([t], r.prototype, "icon", void 0), i([e], r.prototype, "iconSlottedContent", void 0), r;
|
|
9
9
|
}, s = (e) => {
|
|
10
|
-
class
|
|
10
|
+
class n extends o(e) {
|
|
11
11
|
constructor(...e) {
|
|
12
12
|
super(...e), this.iconTrailing = !1;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
return i([
|
|
15
|
+
return i([t({
|
|
16
16
|
mode: "boolean",
|
|
17
17
|
attribute: "icon-trailing"
|
|
18
|
-
})],
|
|
18
|
+
})], n.prototype, "iconTrailing", void 0), n;
|
|
19
19
|
}, c = {
|
|
20
20
|
Slot: !1,
|
|
21
21
|
Span: !0
|
|
@@ -23,19 +23,19 @@ var o = (t) => {
|
|
|
23
23
|
Hidden: "true",
|
|
24
24
|
Visible: "false"
|
|
25
25
|
}, u = (e) => {
|
|
26
|
-
let
|
|
26
|
+
let t = e.tagFor(a);
|
|
27
27
|
return (e, i = c.Span, a = l.Hidden, o = {
|
|
28
28
|
label: "",
|
|
29
29
|
announceOnUpdate: !1
|
|
30
30
|
}) => {
|
|
31
|
-
if (!e && !i) return
|
|
31
|
+
if (!e && !i) return n`<slot
|
|
32
32
|
name="icon"
|
|
33
33
|
aria-hidden="${() => a}"
|
|
34
34
|
${r("iconSlottedContent")}
|
|
35
35
|
></slot>`;
|
|
36
36
|
if (!e && i) return null;
|
|
37
|
-
let s =
|
|
38
|
-
return
|
|
37
|
+
let s = n`<${t} :name="${() => e}" :label="${() => o?.label || void 0}"></${t}>`, u = n.partial(i ? "span" : "slot");
|
|
38
|
+
return n`<${u}
|
|
39
39
|
class="${() => i ? "icon" : void 0}"
|
|
40
40
|
:name="${() => i ? void 0 : "icon"}"
|
|
41
41
|
aria-hidden="${() => o?.label ? !1 : a}"
|
package/bundled/anchored.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require(`./vivid-element.cjs`),t=require(`./slotted.cjs`),n=require(`./decorate.cjs`);var r=t=>{class r extends t{anchorChanged(){this.#e()}_slottedAnchorChanged(){let t=!!(this._slottedAnchor&&this._slottedAnchor.length>0);e.
|
|
1
|
+
const e=require(`./vivid-element.cjs`),t=require(`./slotted.cjs`),n=require(`./decorate.cjs`);var r=t=>{class r extends t{anchorChanged(){this.#e()}_slottedAnchorChanged(){let t=!!(this._slottedAnchor&&this._slottedAnchor.length>0);e.P.setBooleanAttribute(this,`slotted-anchor`,t),this.#e()}#e=()=>{if(!this.isConnected){this._anchorEl=void 0;return}this.#r();let e;this._slottedAnchor&&this._slottedAnchor.length>0?e=this._slottedAnchor[0]:this.anchor instanceof HTMLElement?e=this.anchor:typeof this.anchor==`string`&&(e=document.getElementById(this.anchor)??void 0,e||this.#n(this.anchor)),this._anchorEl=e};#t;#n=e=>{this.#t=new MutationObserver(()=>{let t=document.getElementById(e);t&&(this._anchorEl=t,this.#r())}),this.#t.observe(document.body,{childList:!0,subtree:!0})};#r=()=>{this.#t?.disconnect(),this.#t=void 0};connectedCallback(){super.connectedCallback(),this.#e()}disconnectedCallback(){super.disconnectedCallback(),this.#r(),this._anchorEl=void 0}}return n.t([e.m],r.prototype,`anchor`,void 0),n.t([e.A],r.prototype,`_slottedAnchor`,void 0),n.t([e.A],r.prototype,`_anchorEl`,void 0),r},i=()=>e.p`<slot
|
|
2
2
|
name="anchor"
|
|
3
3
|
${t.t(`_slottedAnchor`)}
|
|
4
4
|
></slot>`;Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
package/bundled/anchored.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, P as t, m as n, p as r } from "./vivid-element.js";
|
|
2
2
|
import { t as i } from "./slotted.js";
|
|
3
3
|
import { t as a } from "./decorate.js";
|
|
4
4
|
//#region src/shared/patterns/anchored.ts
|
|
5
|
-
var o = (
|
|
6
|
-
class i extends
|
|
5
|
+
var o = (r) => {
|
|
6
|
+
class i extends r {
|
|
7
7
|
anchorChanged() {
|
|
8
8
|
this.#e();
|
|
9
9
|
}
|
|
10
10
|
_slottedAnchorChanged() {
|
|
11
11
|
let e = !!(this._slottedAnchor && this._slottedAnchor.length > 0);
|
|
12
|
-
|
|
12
|
+
t.setBooleanAttribute(this, "slotted-anchor", e), this.#e();
|
|
13
13
|
}
|
|
14
14
|
#e = () => {
|
|
15
15
|
if (!this.isConnected) {
|
|
@@ -40,8 +40,8 @@ var o = (t) => {
|
|
|
40
40
|
super.disconnectedCallback(), this.#r(), this._anchorEl = void 0;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
return a([
|
|
44
|
-
}, s = () =>
|
|
43
|
+
return a([n], i.prototype, "anchor", void 0), a([e], i.prototype, "_slottedAnchor", void 0), a([e], i.prototype, "_anchorEl", void 0), i;
|
|
44
|
+
}, s = () => r`<slot
|
|
45
45
|
name="anchor"
|
|
46
46
|
${i("_slottedAnchor")}
|
|
47
47
|
></slot>`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./vivid-element.cjs`);var t=0;function n(e=``){return`${e}${t++}`}var r=e=>e.trim()?e.trim().split(/\s+/):[],i=new WeakMap,a=class t{static resolvedElements(e,t){return i.get(e)?.get(t)?.getResolvedElements()??null}static for(e,n){let r=i.get(e);r||(r=new Map,i.set(e,r));let a=r.get(n);return a||(a=new t(e,n),r.set(n,a)),a}constructor(e,t){this.host=e,this.propertyName=t,e._addController(this)}#e=!1;hostConnected(){this.#e=!0,this.#r()}hostDisconnected(){this.#e=!1,this.#r()}getAttribute(){return this.host[`_${this.propertyName}`]}setAttribute(t){this.host[`_${this.propertyName}`]=t,e.o(this.host,this.propertyName),this.#r()}#t=null;#n(t){this.#t=t,e.s(this.host,this.propertyName)}getResolvedElements(){return!this.host.isConnected&&this.#t?[]:this.#t}setElements(e){this.setAttribute(e===null?null:``),this.#n(e)}#r(){if(this.#c(),!(this.#e&&this.host.isConnected))return;let e=this.getAttribute();if(e){let t=r(e);if(t.length===0){this.#n([]);return}let n=this.#a(t);this.#n(n),n.length<t.length&&this.#s(t)}}#i(e){return this.host.getRootNode().getElementById(e)}#a(e){return e.map(e=>this.#i(e)).filter(e=>e!==null)}#o;#s(e){this.#o=new MutationObserver(()=>{let t=this.#a(e);this.#n(t),t.length===e.length&&this.#c()}),this.#o.observe(this.host.getRootNode(),{childList:!0,subtree:!0})}#c(){this.#o?.disconnect(),this.#o=void 0}},o=(t,n,r)=>e.P.setAttribute(t,e.r(n),r===!1?null:r),s=class extends e.S{get propertyBindingBehaviours(){return this._propertyBindingBehaviours||=Object.entries(this.options.boundProperties).map(([t,r])=>{let i=new e.g(e.E(r instanceof Function?r:()=>r));return i.id=n(),i.targetNodeId=this.targetNodeId,i.policy=this.policy,e.x.assignAspect(i,e.r(t)),i.createBehavior()}),this._propertyBindingBehaviours}bind(t){let n=t.source,r=t.targets[this.targetNodeId];if(this.options.requireHost&&r!==n)throw Error(`Target element must be the same as the source element`);for(let e of this.propertyBindingBehaviours)e.bind(t);for(let e of this.options.forwardedValueProperties)o(r,e,n[e]);let i=e=>{r[`${e}Elements`]=a.resolvedElements(n,e)};for(let e of this.options.forwardedIdrefsProperties)i(e);let s=(e,t)=>{this.options.forwardedValueProperties.has(t)&&o(r,t,e[t]),this.options.forwardedIdrefsProperties.has(t)&&i(t)};e.c(n,s),t.onUnbind({unbind:()=>e.l(n,s)})}};e.x.define(s),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { E as e, P as t, S as n, c as r, g as i, l as a, o, r as s, s as c, x as l } from "./vivid-element.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-web-utilities@6.0.0/node_modules/@microsoft/fast-web-utilities/dist/strings.js
|
|
3
|
+
var u = 0;
|
|
4
|
+
function d(e = "") {
|
|
5
|
+
return `${e}${u++}`;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/shared/aria/idrefs-controller.ts
|
|
9
|
+
var f = (e) => e.trim() ? e.trim().split(/\s+/) : [], p = /* @__PURE__ */ new WeakMap(), m = class e {
|
|
10
|
+
static resolvedElements(e, t) {
|
|
11
|
+
return p.get(e)?.get(t)?.getResolvedElements() ?? null;
|
|
12
|
+
}
|
|
13
|
+
static for(t, n) {
|
|
14
|
+
let r = p.get(t);
|
|
15
|
+
r || (r = /* @__PURE__ */ new Map(), p.set(t, r));
|
|
16
|
+
let i = r.get(n);
|
|
17
|
+
return i || (i = new e(t, n), r.set(n, i)), i;
|
|
18
|
+
}
|
|
19
|
+
constructor(e, t) {
|
|
20
|
+
this.host = e, this.propertyName = t, e._addController(this);
|
|
21
|
+
}
|
|
22
|
+
#e = !1;
|
|
23
|
+
hostConnected() {
|
|
24
|
+
this.#e = !0, this.#r();
|
|
25
|
+
}
|
|
26
|
+
hostDisconnected() {
|
|
27
|
+
this.#e = !1, this.#r();
|
|
28
|
+
}
|
|
29
|
+
getAttribute() {
|
|
30
|
+
return this.host[`_${this.propertyName}`];
|
|
31
|
+
}
|
|
32
|
+
setAttribute(e) {
|
|
33
|
+
this.host[`_${this.propertyName}`] = e, o(this.host, this.propertyName), this.#r();
|
|
34
|
+
}
|
|
35
|
+
#t = null;
|
|
36
|
+
#n(e) {
|
|
37
|
+
this.#t = e, c(this.host, this.propertyName);
|
|
38
|
+
}
|
|
39
|
+
getResolvedElements() {
|
|
40
|
+
return !this.host.isConnected && this.#t ? [] : this.#t;
|
|
41
|
+
}
|
|
42
|
+
setElements(e) {
|
|
43
|
+
this.setAttribute(e === null ? null : ""), this.#n(e);
|
|
44
|
+
}
|
|
45
|
+
#r() {
|
|
46
|
+
if (this.#c(), !(this.#e && this.host.isConnected)) return;
|
|
47
|
+
let e = this.getAttribute();
|
|
48
|
+
if (e) {
|
|
49
|
+
let t = f(e);
|
|
50
|
+
if (t.length === 0) {
|
|
51
|
+
this.#n([]);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
let n = this.#a(t);
|
|
55
|
+
this.#n(n), n.length < t.length && this.#s(t);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
#i(e) {
|
|
59
|
+
return this.host.getRootNode().getElementById(e);
|
|
60
|
+
}
|
|
61
|
+
#a(e) {
|
|
62
|
+
return e.map((e) => this.#i(e)).filter((e) => e !== null);
|
|
63
|
+
}
|
|
64
|
+
#o;
|
|
65
|
+
#s(e) {
|
|
66
|
+
this.#o = new MutationObserver(() => {
|
|
67
|
+
let t = this.#a(e);
|
|
68
|
+
this.#n(t), t.length === e.length && this.#c();
|
|
69
|
+
}), this.#o.observe(this.host.getRootNode(), {
|
|
70
|
+
childList: !0,
|
|
71
|
+
subtree: !0
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
#c() {
|
|
75
|
+
this.#o?.disconnect(), this.#o = void 0;
|
|
76
|
+
}
|
|
77
|
+
}, h = (e, n, r) => t.setAttribute(e, s(n), r === !1 ? null : r), g = class extends n {
|
|
78
|
+
get propertyBindingBehaviours() {
|
|
79
|
+
return this._propertyBindingBehaviours ||= Object.entries(this.options.boundProperties).map(([t, n]) => {
|
|
80
|
+
let r = new i(e(n instanceof Function ? n : () => n));
|
|
81
|
+
return r.id = d(), r.targetNodeId = this.targetNodeId, r.policy = this.policy, l.assignAspect(r, s(t)), r.createBehavior();
|
|
82
|
+
}), this._propertyBindingBehaviours;
|
|
83
|
+
}
|
|
84
|
+
bind(e) {
|
|
85
|
+
let t = e.source, n = e.targets[this.targetNodeId];
|
|
86
|
+
if (this.options.requireHost && n !== t) throw Error("Target element must be the same as the source element");
|
|
87
|
+
for (let t of this.propertyBindingBehaviours) t.bind(e);
|
|
88
|
+
for (let e of this.options.forwardedValueProperties) h(n, e, t[e]);
|
|
89
|
+
let i = (e) => {
|
|
90
|
+
n[`${e}Elements`] = m.resolvedElements(t, e);
|
|
91
|
+
};
|
|
92
|
+
for (let e of this.options.forwardedIdrefsProperties) i(e);
|
|
93
|
+
let o = (e, t) => {
|
|
94
|
+
this.options.forwardedValueProperties.has(t) && h(n, t, e[t]), this.options.forwardedIdrefsProperties.has(t) && i(t);
|
|
95
|
+
};
|
|
96
|
+
r(t, o), e.onUnbind({ unbind: () => a(t, o) });
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
l.define(g);
|
|
100
|
+
//#endregion
|
|
101
|
+
export { m as n, d as r, g as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require(`./localized.cjs`),t=require(`./vivid-element.cjs`),n=require(`./when.cjs`),r=require(`./decorate.cjs`),i=require(`./form-element.cjs`),a=require(`./class-names.cjs`),o=require(`./form-associated.cjs`);function s(e){if(!e)return null;let t=e.trim().replace(/^#/,``);return/^[0-9a-fA-F]{3}$/.test(t)?t.split(``).map(e=>e+e).join(``).toLowerCase():/^[0-9a-fA-F]{6}$/.test(t)?t.toLowerCase():null}function c(e){return s(e)!==null}function l(e){let t=s(e);if(!t)return 0;let n=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,i=parseInt(t.slice(4,6),16)/255,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4,c=i<=.03928?i/12.92:((i+.055)/1.055)**2.4;return .2126*a+.7152*o+.0722*c}function u(e,t){let n=l(e),r=l(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function d(e,t){return t||=document.querySelector(`.vvd-root`)||document.documentElement,getComputedStyle(t).getPropertyValue(e).trim()}var f=s=>{class c extends e.t(i.t(o.n(s))){constructor(...e){super(...e),this.proxy=document.createElement(`input`),this.open=!1,this.swatches=[],this._canvasColor=``}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this._refreshCanvasColor()})}get _computedCanvasColor(){return this._canvasColor||=d(`--vvd-color-canvas`,this),this._canvasColor}_refreshCanvasColor(){this._canvasColor=d(`--vvd-color-canvas`,this)}_applyContrastClass(e,t=3){if(!e)return!1;let n=this._computedCanvasColor;return n?u(e,n)<t:!1}_getRowLength(){return 7}_handleSwatchSelection(e){this.value===e?this.value=``:this.value=e,this.$emit(`change`),this.open=!1}_handleColorSaving(){}_getFocusReturnEl(){return null}_returnFocusToAnchor(){let e=this._getFocusReturnEl();e&&t.
|
|
1
|
+
const e=require(`./localized.cjs`),t=require(`./vivid-element.cjs`),n=require(`./when.cjs`),r=require(`./decorate.cjs`),i=require(`./form-element.cjs`),a=require(`./class-names.cjs`),o=require(`./form-associated.cjs`);function s(e){if(!e)return null;let t=e.trim().replace(/^#/,``);return/^[0-9a-fA-F]{3}$/.test(t)?t.split(``).map(e=>e+e).join(``).toLowerCase():/^[0-9a-fA-F]{6}$/.test(t)?t.toLowerCase():null}function c(e){return s(e)!==null}function l(e){let t=s(e);if(!t)return 0;let n=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,i=parseInt(t.slice(4,6),16)/255,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4,c=i<=.03928?i/12.92:((i+.055)/1.055)**2.4;return .2126*a+.7152*o+.0722*c}function u(e,t){let n=l(e),r=l(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function d(e,t){return t||=document.querySelector(`.vvd-root`)||document.documentElement,getComputedStyle(t).getPropertyValue(e).trim()}var f=s=>{class c extends e.t(i.t(o.n(s))){constructor(...e){super(...e),this.proxy=document.createElement(`input`),this.open=!1,this.swatches=[],this._canvasColor=``}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this._refreshCanvasColor()})}get _computedCanvasColor(){return this._canvasColor||=d(`--vvd-color-canvas`,this),this._canvasColor}_refreshCanvasColor(){this._canvasColor=d(`--vvd-color-canvas`,this)}_applyContrastClass(e,t=3){if(!e)return!1;let n=this._computedCanvasColor;return n?u(e,n)<t:!1}_getRowLength(){return 7}_handleSwatchSelection(e){this.value===e?this.value=``:this.value=e,this.$emit(`change`),this.open=!1}_handleColorSaving(){}_getFocusReturnEl(){return null}_returnFocusToAnchor(){let e=this._getFocusReturnEl();e&&t.M.enqueue(()=>e.focus())}_getGridCells(){let e=this.shadowRoot?.querySelector(`[role="grid"]`);return e?Array.from(e.querySelectorAll(`[role="gridcell"], [data-vvd-role="gridcell"]`)):[]}_handleCellKeydown(e,t,n,r){let i=this._getRowLength(),a=this._getGridCells().length,o=Math.floor(n/i),s=n%i,c=Math.ceil(a/i);switch(e.key){case`ArrowRight`:return s<i-1&&n+1<a&&this._focusSwatchByIndex(n+1),!1;case`ArrowLeft`:return s>0&&this._focusSwatchByIndex(n-1),!1;case`ArrowDown`:return o<c-1&&n+i<a&&this._focusSwatchByIndex(n+i),!1;case`ArrowUp`:return o>0&&this._focusSwatchByIndex(n-i),!1;case`PageDown`:{let e=(c-1)*i,t=Math.min(e+s,a-1);return n!==t&&this._focusSwatchByIndex(t),!1}case`PageUp`:{let e=Math.min(s,a-1);return n!==e&&this._focusSwatchByIndex(e),!1}case`Home`:return e.ctrlKey?this._focusSwatchByIndex(0):this._focusSwatchByIndex(o*i),!1;case`End`:if(e.ctrlKey)this._focusSwatchByIndex(a-1);else{let e=Math.min((o+1)*i-1,a-1);this._focusSwatchByIndex(e)}return!1;case`Enter`:case` `:return r&&this._handleColorSaving(),t&&!r&&(this._handleSwatchSelection(t),this._returnFocusToAnchor()),!1;case`Escape`:return this.open=!1,this._returnFocusToAnchor(),!1;case`Tab`:return this.open=!1,!0;default:return!0}}_focusSwatchByIndex(e){let t=this._getGridCells();e<0||e>=t.length||t[e]?.focus()}_renderColorSwatch(e,r){return t.p`
|
|
2
2
|
<${r} placement="top"
|
|
3
3
|
text="${e=>e.label??e.value}"
|
|
4
4
|
exportparts="vvd-theme-alternate">
|
|
@@ -12,7 +12,7 @@ const e=require(`./localized.cjs`),t=require(`./vivid-element.cjs`),n=require(`.
|
|
|
12
12
|
@click="${(e,t)=>t.parent._handleSwatchSelection(e.value)}"
|
|
13
13
|
@keydown="${(e,t)=>t.parent._handleCellKeydown(t.event,e.value,t.index)}"
|
|
14
14
|
>
|
|
15
|
-
${n.t((e,t)=>t.parent.value===e.value,t.
|
|
15
|
+
${n.t((e,t)=>t.parent.value===e.value,t.p`<${e} size="-6" name="check-solid" aria-hidden="true"></${e}>`)}
|
|
16
16
|
</button>
|
|
17
17
|
</${r}>
|
|
18
|
-
`}}return r.t([t.
|
|
18
|
+
`}}return r.t([t.m({mode:`boolean`})],c.prototype,`open`,void 0),r.t([t.A],c.prototype,`swatches`,void 0),r.t([t.A],c.prototype,`_canvasColor`,void 0),c};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./localized.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as t, M as n, m as r, p as i } from "./vivid-element.js";
|
|
3
3
|
import { t as a } from "./when.js";
|
|
4
4
|
import { t as o } from "./decorate.js";
|
|
5
5
|
import { t as s } from "./form-element.js";
|
|
@@ -63,7 +63,7 @@ var h = (u) => {
|
|
|
63
63
|
}
|
|
64
64
|
_returnFocusToAnchor() {
|
|
65
65
|
let e = this._getFocusReturnEl();
|
|
66
|
-
e &&
|
|
66
|
+
e && n.enqueue(() => e.focus());
|
|
67
67
|
}
|
|
68
68
|
_getGridCells() {
|
|
69
69
|
let e = this.shadowRoot?.querySelector("[role=\"grid\"]");
|
|
@@ -104,7 +104,7 @@ var h = (u) => {
|
|
|
104
104
|
e < 0 || e >= t.length || t[e]?.focus();
|
|
105
105
|
}
|
|
106
106
|
_renderColorSwatch(e, t) {
|
|
107
|
-
return
|
|
107
|
+
return i`
|
|
108
108
|
<${t} placement="top"
|
|
109
109
|
text="${(e) => e.label ?? e.value}"
|
|
110
110
|
exportparts="vvd-theme-alternate">
|
|
@@ -118,13 +118,13 @@ var h = (u) => {
|
|
|
118
118
|
@click="${(e, t) => t.parent._handleSwatchSelection(e.value)}"
|
|
119
119
|
@keydown="${(e, t) => t.parent._handleCellKeydown(t.event, e.value, t.index)}"
|
|
120
120
|
>
|
|
121
|
-
${a((e, t) => t.parent.value === e.value,
|
|
121
|
+
${a((e, t) => t.parent.value === e.value, i`<${e} size="-6" name="check-solid" aria-hidden="true"></${e}>`)}
|
|
122
122
|
</button>
|
|
123
123
|
</${t}>
|
|
124
124
|
`;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
return o([
|
|
127
|
+
return o([r({ mode: "boolean" })], d.prototype, "open", void 0), o([t], d.prototype, "swatches", void 0), o([t], d.prototype, "_canvasColor", void 0), d;
|
|
128
128
|
};
|
|
129
129
|
//#endregion
|
|
130
130
|
export { d as n, h as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./vivid-element.cjs`),t=require(`./decorate.cjs`);var n=class extends e.t{constructor(...e){super(...e),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){let e=typeof this.min==`number`?this.min:0,t=typeof this.max==`number`?this.max:100,n=typeof this.value==`number`?this.value:0,r=t-e;this.percentComplete=r===0?0:Math.fround((n-e)/r*100)}};t.t([e.
|
|
1
|
+
const e=require(`./vivid-element.cjs`),t=require(`./decorate.cjs`);var n=class extends e.t{constructor(...e){super(...e),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){let e=typeof this.min==`number`?this.min:0,t=typeof this.max==`number`?this.max:100,n=typeof this.value==`number`?this.value:0,r=t-e;this.percentComplete=r===0?0:Math.fround((n-e)/r*100)}};t.t([e.m({converter:e.h})],n.prototype,`value`,void 0),t.t([e.m({converter:e.h})],n.prototype,`min`,void 0),t.t([e.m({converter:e.h})],n.prototype,`max`,void 0),t.t([e.m({mode:`boolean`})],n.prototype,`paused`,void 0),t.t([e.A],n.prototype,`percentComplete`,void 0),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
package/bundled/base-progress.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, h as t, m as n, t as r } from "./vivid-element.js";
|
|
2
2
|
import { t as i } from "./decorate.js";
|
|
3
3
|
//#region src/shared/foundation/progress/base-progress.ts
|
|
4
|
-
var a = class extends
|
|
4
|
+
var a = class extends r {
|
|
5
5
|
constructor(...e) {
|
|
6
6
|
super(...e), this.percentComplete = 0;
|
|
7
7
|
}
|
|
@@ -25,6 +25,6 @@ var a = class extends n {
|
|
|
25
25
|
this.percentComplete = r === 0 ? 0 : Math.fround((n - e) / r * 100);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
i([
|
|
28
|
+
i([n({ converter: t })], a.prototype, "value", void 0), i([n({ converter: t })], a.prototype, "min", void 0), i([n({ converter: t })], a.prototype, "max", void 0), i([n({ mode: "boolean" })], a.prototype, "paused", void 0), i([e], a.prototype, "percentComplete", void 0);
|
|
29
29
|
//#endregion
|
|
30
30
|
export { a as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./vivid-element.cjs`),t=require(`./decorate.cjs`),n=require(`./linkable.cjs`);var r=class extends n.t(e.t){constructor(...e){super(...e),this.separator=!0}};t.t([e.
|
|
1
|
+
const e=require(`./vivid-element.cjs`),t=require(`./decorate.cjs`),n=require(`./linkable.cjs`);var r=class extends n.t(e.t){constructor(...e){super(...e),this.separator=!0}};t.t([e.m],r.prototype,`text`,void 0),t.t([e.A],r.prototype,`separator`,void 0),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
package/bundled/button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./vivid-element.cjs`),t=require(`./decorate.cjs`),n=require(`./delegates-aria.cjs`),r=require(`./form-associated.cjs`);var i=class extends n.t(r.n(e.t)){constructor(...e){super(...e),this.proxy=document.createElement(`input`),this.handleClick=e=>{this.disabled&&e.stopPropagation()},this.handleSubmission=()=>{this.form&&(this.attachProxy(),this.form.requestSubmit(this.proxy),this.detachProxy())},this.handleFormReset=()=>{this.form?.reset()},this.handleUnsupportedDelegatesFocus=()=>{this.$fastController.definition.shadowOptions&&window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty(`delegatesFocus`)&&this.$fastController.definition.shadowOptions.delegatesFocus&&Object.defineProperty(this,`focus`,{value:()=>{this.control.focus()},configurable:!0})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),t===`submit`&&this.addEventListener(`click`,this.handleSubmission),e===`submit`&&this.removeEventListener(`click`,this.handleSubmission),t===`reset`&&this.addEventListener(`click`,this.handleFormReset),e===`reset`&&this.removeEventListener(`click`,this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute(`type`,this.type),this.handleUnsupportedDelegatesFocus(),this.autofocus&&e.
|
|
1
|
+
const e=require(`./vivid-element.cjs`),t=require(`./decorate.cjs`),n=require(`./delegates-aria.cjs`),r=require(`./form-associated.cjs`);var i=class extends n.t(r.n(e.t)){constructor(...e){super(...e),this.proxy=document.createElement(`input`),this.handleClick=e=>{this.disabled&&e.stopPropagation()},this.handleSubmission=()=>{this.form&&(this.attachProxy(),this.form.requestSubmit(this.proxy),this.detachProxy())},this.handleFormReset=()=>{this.form?.reset()},this.handleUnsupportedDelegatesFocus=()=>{this.$fastController.definition.shadowOptions&&window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty(`delegatesFocus`)&&this.$fastController.definition.shadowOptions.delegatesFocus&&Object.defineProperty(this,`focus`,{value:()=>{this.control.focus()},configurable:!0})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),t===`submit`&&this.addEventListener(`click`,this.handleSubmission),e===`submit`&&this.removeEventListener(`click`,this.handleSubmission),t===`reset`&&this.addEventListener(`click`,this.handleFormReset),e===`reset`&&this.removeEventListener(`click`,this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute(`type`,this.type),this.handleUnsupportedDelegatesFocus(),this.autofocus&&e.M.enqueue(()=>{this.focus()}),(this.control?Array.from(this.control.children):[]).forEach(e=>{e.addEventListener(`click`,this.handleClick)})}disconnectedCallback(){super.disconnectedCallback(),(this.control?Array.from(this.control.children):[]).forEach(e=>{e.removeEventListener(`click`,this.handleClick)})}};t.t([e.m({mode:`boolean`})],i.prototype,`autofocus`,void 0),t.t([e.m({attribute:`form`})],i.prototype,`formId`,void 0),t.t([e.m],i.prototype,`formaction`,void 0),t.t([e.m],i.prototype,`formenctype`,void 0),t.t([e.m],i.prototype,`formmethod`,void 0),t.t([e.m({mode:`boolean`})],i.prototype,`formnovalidate`,void 0),t.t([e.m],i.prototype,`formtarget`,void 0),t.t([e.m],i.prototype,`type`,void 0),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
package/bundled/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./vivid-element.cjs`),t=require(`./decorate.cjs`),n=require(`./delegates-aria.cjs`);var r=class extends n.t(e.t){};t.t([e.
|
|
1
|
+
const e=require(`./vivid-element.cjs`),t=require(`./decorate.cjs`),n=require(`./delegates-aria.cjs`);var r=class extends n.t(e.t){};t.t([e.m],r.prototype,`heading`,void 0),t.t([e.m],r.prototype,`description`,void 0),t.t([e.m],r.prototype,`connotation`,void 0),t.t([e.m],r.prototype,`appearance`,void 0),t.t([e.m({converter:e.h,attribute:`overlap-count`})],r.prototype,`overlapCount`,void 0),t.t([e.m({converter:e.h})],r.prototype,`start`,void 0),t.t([e.m({converter:e.h})],r.prototype,`duration`,void 0),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as e, m as t, t as n } from "./vivid-element.js";
|
|
2
2
|
import { t as r } from "./decorate.js";
|
|
3
3
|
import { t as i } from "./delegates-aria.js";
|
|
4
4
|
//#region src/lib/calendar-event/calendar-event.ts
|
|
5
|
-
var a = class extends i(
|
|
6
|
-
r([
|
|
7
|
-
converter:
|
|
5
|
+
var a = class extends i(n) {};
|
|
6
|
+
r([t], a.prototype, "heading", void 0), r([t], a.prototype, "description", void 0), r([t], a.prototype, "connotation", void 0), r([t], a.prototype, "appearance", void 0), r([t({
|
|
7
|
+
converter: e,
|
|
8
8
|
attribute: "overlap-count"
|
|
9
|
-
})], a.prototype, "overlapCount", void 0), r([
|
|
9
|
+
})], a.prototype, "overlapCount", void 0), r([t({ converter: e })], a.prototype, "start", void 0), r([t({ converter: e })], a.prototype, "duration", void 0);
|
|
10
10
|
//#endregion
|
|
11
11
|
export { a as t };
|