@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/tree-view/definition.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../unbundled/
|
|
3
|
-
const require_definition = require("../unbundled/definition76.cjs");
|
|
2
|
+
const require_definition = require("../unbundled/definition79.cjs");
|
|
4
3
|
exports.VwcTreeViewElement = require_definition.TreeView;
|
|
5
4
|
exports.registerTreeView = require_definition.registerTreeView;
|
|
6
5
|
exports.treeViewDefinition = require_definition.treeViewDefinition;
|
package/tree-view/definition.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import "../unbundled/
|
|
2
|
-
import { n as treeViewDefinition, r as TreeView, t as registerTreeView } from "../unbundled/definition76.js";
|
|
1
|
+
import { n as treeViewDefinition, r as TreeView, t as registerTreeView } from "../unbundled/definition79.js";
|
|
3
2
|
export { TreeView as VwcTreeViewElement, registerTreeView, treeViewDefinition };
|
package/tree-view/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/
|
|
2
|
-
${
|
|
1
|
+
const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/slotted.cjs`),n=require(`../bundled/ref.cjs`),r=require(`../bundled/decorate.cjs`),i=require(`../bundled/class-names.cjs`),a=require(`../bundled/dom.cjs`),o=require(`../bundled/key-codes.cjs`),s=require(`../bundled/definition4.cjs`),c=require(`../bundled/host-semantics.cjs`);var l=`.control{flex-direction:column;gap:4px;display:flex;position:relative}`;function u(e,t){return a.t(e)?Array.from(e.querySelectorAll(t)).filter(e=>{if(e.parentElement instanceof s.r){if(e.parentElement.expanded)return!0}else return!0;return!1}):[]}var d=class extends c.t(e.t){constructor(...e){super(...e),this.currentFocused=null,this.handleFocus=e=>{if(this.slottedTreeItems.length>0){if(e.target===this){this.currentFocused!==null&&s.r.focusItem(this.currentFocused);return}this.contains(e.target)&&(this.setAttribute(`tabindex`,`-1`),this.currentFocused=e.target)}},this.handleBlur=e=>{e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute(`tabindex`,`0`)},this.handleKeyDown=e=>{if(this.slottedTreeItems.length<1)return!0;if(!e.defaultPrevented){let t=this.getVisibleNodes();switch(e.key){case o.s:t.length&&s.r.focusItem(t[0]);return;case`End`:t.length&&s.r.focusItem(t[t.length-1]);return;case o.n:if(e.target&&this.isFocusableElement(e.target)){let t=e.target;t instanceof s.r&&t.childItemLength()>0&&t.expanded?t.expanded=!1:t instanceof s.r&&t.parentElement instanceof s.r&&s.r.focusItem(t.parentElement)}return!1;case o.r:if(e.target&&this.isFocusableElement(e.target)){let t=e.target;t instanceof s.r&&t.childItemLength()>0&&!t.expanded?t.expanded=!0:t instanceof s.r&&t.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case o.t:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target);return;case o.i:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target);return;case o.a:this.handleClick(e);return}}return!0},this.handleSelectedChange=e=>{if(!e.defaultPrevented){if(!(e.target instanceof Element)||!s.i(e.target))return!0;let t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null);return}},this.setItems=()=>{let e=this.treeView.querySelector(`[selected]`);this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems(),this.getVisibleNodes().forEach(e=>{s.i(e)&&(e.nested=this.nested)})},this.isFocusableElement=e=>s.i(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute(`tabindex`,`0`),e.M.enqueue(()=>{this.setItems()})}handleClick(e){if(!e.defaultPrevented){if(!(e.target instanceof Element)||!s.i(e.target))return!0;let t=e.target;t.disabled||(t.selected=!t.selected);return}}focusNextNode(e,t){let n=this.getVisibleNodes();if(n){let r=n[n.indexOf(t)+e];a.t(r)&&s.r.focusItem(r)}}getValidFocusableItem(){let e=this.getVisibleNodes(),t=e.findIndex(this.isSelectedElement);return t===-1&&(t=e.findIndex(this.isFocusableElement)),t===-1?null:e[t]}checkForNestedItems(){return this.slottedTreeItems.some(e=>s.i(e)&&e.querySelector(`[data-vvd-component='tree-item']`))}getVisibleNodes(){return u(this,`[data-vvd-component='tree-item']`)}};r.t([e.m({attribute:`render-collapsed-nodes`})],d.prototype,`renderCollapsedNodes`,void 0),r.t([e.A],d.prototype,`currentSelected`,void 0),r.t([e.A],d.prototype,`slottedTreeItems`,void 0);var f=e.p` <template
|
|
2
|
+
${n.t(`treeView`)}
|
|
3
3
|
${c.n({role:`tree`})}
|
|
4
4
|
@keydown="${(e,t)=>e.handleKeyDown(t.event)}"
|
|
5
5
|
@focusin="${(e,t)=>e.handleFocus(t.event)}"
|
|
@@ -8,6 +8,6 @@ const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/ref.cjs`),
|
|
|
8
8
|
@selected-change="${(e,t)=>e.handleSelectedChange(t.event)}"
|
|
9
9
|
>
|
|
10
10
|
<div class="${e=>i.t(`control`)}">
|
|
11
|
-
<slot ${
|
|
11
|
+
<slot ${t.t(`slottedTreeItems`)}></slot>
|
|
12
12
|
</div>
|
|
13
|
-
</template>`,p=e.
|
|
13
|
+
</template>`,p=e.u(`tree-view`,d,f,[s.n],{styles:l});e.d(p)();
|
package/tree-view/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as s } from "../bundled/
|
|
3
|
-
import { t as c } from "../bundled/
|
|
4
|
-
import "../bundled/numberConverter.js";
|
|
1
|
+
import { A as e, M as t, d as n, m as r, p as i, t as a, u as o } from "../bundled/vivid-element.js";
|
|
2
|
+
import { t as s } from "../bundled/slotted.js";
|
|
3
|
+
import { t as c } from "../bundled/ref.js";
|
|
5
4
|
import { t as l } from "../bundled/decorate.js";
|
|
6
5
|
import { t as u } from "../bundled/class-names.js";
|
|
7
6
|
import { t as d } from "../bundled/dom.js";
|
|
@@ -20,7 +19,7 @@ function w(e, t) {
|
|
|
20
19
|
return !1;
|
|
21
20
|
}) : [];
|
|
22
21
|
}
|
|
23
|
-
var T = class extends S(
|
|
22
|
+
var T = class extends S(a) {
|
|
24
23
|
constructor(...e) {
|
|
25
24
|
super(...e), this.currentFocused = null, this.handleFocus = (e) => {
|
|
26
25
|
if (this.slottedTreeItems.length > 0) {
|
|
@@ -88,7 +87,8 @@ var T = class extends S(o) {
|
|
|
88
87
|
return;
|
|
89
88
|
}
|
|
90
89
|
}, this.setItems = () => {
|
|
91
|
-
|
|
90
|
+
let e = this.treeView.querySelector("[selected]");
|
|
91
|
+
this.currentSelected = e, (this.currentFocused === null || !this.contains(this.currentFocused)) && (this.currentFocused = this.getValidFocusableItem()), this.nested = this.checkForNestedItems(), this.getVisibleNodes().forEach((e) => {
|
|
92
92
|
/* v8 ignore else -- @preserve */
|
|
93
93
|
v(e) && (e.nested = this.nested);
|
|
94
94
|
});
|
|
@@ -98,7 +98,7 @@ var T = class extends S(o) {
|
|
|
98
98
|
this.$fastController.isConnected && this.setItems();
|
|
99
99
|
}
|
|
100
100
|
connectedCallback() {
|
|
101
|
-
super.connectedCallback(), this.setAttribute("tabindex", "0"),
|
|
101
|
+
super.connectedCallback(), this.setAttribute("tabindex", "0"), t.enqueue(() => {
|
|
102
102
|
this.setItems();
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -132,8 +132,8 @@ var T = class extends S(o) {
|
|
|
132
132
|
};
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/lib/tree-view/index.ts
|
|
135
|
-
l([r({ attribute: "render-collapsed-nodes" })], T.prototype, "renderCollapsedNodes", void 0), l([
|
|
136
|
-
${
|
|
135
|
+
l([r({ attribute: "render-collapsed-nodes" })], T.prototype, "renderCollapsedNodes", void 0), l([e], T.prototype, "currentSelected", void 0), l([e], T.prototype, "slottedTreeItems", void 0), n(o("tree-view", T, i` <template
|
|
136
|
+
${c("treeView")}
|
|
137
137
|
${x({ role: "tree" })}
|
|
138
138
|
@keydown="${(e, t) => e.handleKeyDown(t.event)}"
|
|
139
139
|
@focusin="${(e, t) => e.handleFocus(t.event)}"
|
|
@@ -142,7 +142,7 @@ l([r({ attribute: "render-collapsed-nodes" })], T.prototype, "renderCollapsedNod
|
|
|
142
142
|
@selected-change="${(e, t) => e.handleSelectedChange(t.event)}"
|
|
143
143
|
>
|
|
144
144
|
<div class="${(e) => u("control")}">
|
|
145
|
-
<slot ${
|
|
145
|
+
<slot ${s("slottedTreeItems")}></slot>
|
|
146
146
|
</div>
|
|
147
147
|
</template>`, [y], { styles: C }))();
|
|
148
148
|
//#endregion
|
package/unbundled/affix.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk.cjs");
|
|
2
|
-
const require_definition = require("./
|
|
2
|
+
const require_definition = require("./definition.cjs");
|
|
3
3
|
const require_decorate = require("./decorate.cjs");
|
|
4
4
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
5
5
|
//#region src/shared/patterns/affix.ts
|
package/unbundled/affix.js
CHANGED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
require("./chunk.cjs");
|
|
2
|
+
const require_vivid_element = require("./vivid-element.cjs");
|
|
3
|
+
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
4
|
+
let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
|
|
5
|
+
//#region src/shared/aria/idrefs-controller.ts
|
|
6
|
+
var parseIdrefs = (idrefs) => {
|
|
7
|
+
if (!idrefs.trim()) return [];
|
|
8
|
+
return idrefs.trim().split(/\s+/);
|
|
9
|
+
};
|
|
10
|
+
var idrefsControllers = /* @__PURE__ */ new WeakMap();
|
|
11
|
+
/** Manages a single IDREF property for an element. Lazily created only when the property is used. */
|
|
12
|
+
var IdrefsController = class IdrefsController {
|
|
13
|
+
static resolvedElements(host, property) {
|
|
14
|
+
return idrefsControllers.get(host)?.get(property)?.getResolvedElements() ?? null;
|
|
15
|
+
}
|
|
16
|
+
static for(host, property) {
|
|
17
|
+
let controllersByProp = idrefsControllers.get(host);
|
|
18
|
+
if (!controllersByProp) {
|
|
19
|
+
controllersByProp = /* @__PURE__ */ new Map();
|
|
20
|
+
idrefsControllers.set(host, controllersByProp);
|
|
21
|
+
}
|
|
22
|
+
let controller = controllersByProp.get(property);
|
|
23
|
+
if (!controller) {
|
|
24
|
+
controller = new IdrefsController(host, property);
|
|
25
|
+
controllersByProp.set(property, controller);
|
|
26
|
+
}
|
|
27
|
+
return controller;
|
|
28
|
+
}
|
|
29
|
+
constructor(host, propertyName) {
|
|
30
|
+
this.host = host;
|
|
31
|
+
this.propertyName = propertyName;
|
|
32
|
+
host._addController(this);
|
|
33
|
+
}
|
|
34
|
+
#isConnected = false;
|
|
35
|
+
hostConnected() {
|
|
36
|
+
this.#isConnected = true;
|
|
37
|
+
this.#updateResolution();
|
|
38
|
+
}
|
|
39
|
+
hostDisconnected() {
|
|
40
|
+
this.#isConnected = false;
|
|
41
|
+
this.#updateResolution();
|
|
42
|
+
}
|
|
43
|
+
getAttribute() {
|
|
44
|
+
return this.host[`_${this.propertyName}`];
|
|
45
|
+
}
|
|
46
|
+
setAttribute(value) {
|
|
47
|
+
this.host[`_${this.propertyName}`] = value;
|
|
48
|
+
require_vivid_element.handleAriaPropertyChange(this.host, this.propertyName);
|
|
49
|
+
this.#updateResolution();
|
|
50
|
+
}
|
|
51
|
+
#resolvedElements = null;
|
|
52
|
+
#setResolvedElements(elements) {
|
|
53
|
+
this.#resolvedElements = elements;
|
|
54
|
+
require_vivid_element.publishAriaPropertyChange(this.host, this.propertyName);
|
|
55
|
+
}
|
|
56
|
+
getResolvedElements() {
|
|
57
|
+
if (!this.host.isConnected && this.#resolvedElements) return [];
|
|
58
|
+
return this.#resolvedElements;
|
|
59
|
+
}
|
|
60
|
+
/** When elements property is set on the host */
|
|
61
|
+
setElements(elements) {
|
|
62
|
+
this.setAttribute(elements !== null ? "" : null);
|
|
63
|
+
this.#setResolvedElements(elements);
|
|
64
|
+
}
|
|
65
|
+
#updateResolution() {
|
|
66
|
+
this.#cleanupObserver();
|
|
67
|
+
if (!(this.#isConnected && this.host.isConnected)) return;
|
|
68
|
+
const attrValue = this.getAttribute();
|
|
69
|
+
if (attrValue) {
|
|
70
|
+
const idList = parseIdrefs(attrValue);
|
|
71
|
+
if (idList.length === 0) {
|
|
72
|
+
this.#setResolvedElements([]);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const resolved = this.#resolveIds(idList);
|
|
76
|
+
this.#setResolvedElements(resolved);
|
|
77
|
+
if (resolved.length < idList.length) this.#observeForElements(idList);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
#resolveId(id) {
|
|
81
|
+
return this.host.getRootNode().getElementById(id);
|
|
82
|
+
}
|
|
83
|
+
#resolveIds(idList) {
|
|
84
|
+
return idList.map((id) => this.#resolveId(id)).filter((el) => el !== null);
|
|
85
|
+
}
|
|
86
|
+
#observer;
|
|
87
|
+
#observeForElements(idList) {
|
|
88
|
+
this.#observer = new MutationObserver(() => {
|
|
89
|
+
const resolved = this.#resolveIds(idList);
|
|
90
|
+
this.#setResolvedElements(resolved);
|
|
91
|
+
if (resolved.length === idList.length) this.#cleanupObserver();
|
|
92
|
+
});
|
|
93
|
+
this.#observer.observe(this.host.getRootNode(), {
|
|
94
|
+
childList: true,
|
|
95
|
+
subtree: true
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
#cleanupObserver() {
|
|
99
|
+
this.#observer?.disconnect();
|
|
100
|
+
this.#observer = void 0;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/shared/aria/aria-binding-directive.ts
|
|
105
|
+
var setAriaAttribute = (target, property, value) => _microsoft_fast_element.DOM.setAttribute(target, require_vivid_element.ariaAttributeName(property), value === false ? null : value);
|
|
106
|
+
/**
|
|
107
|
+
* Directive for both delegate and host semantics.
|
|
108
|
+
*/
|
|
109
|
+
var AriaBindingDirective = class extends _microsoft_fast_element.StatelessAttachedAttributeDirective {
|
|
110
|
+
get propertyBindingBehaviours() {
|
|
111
|
+
if (!this._propertyBindingBehaviours) this._propertyBindingBehaviours = Object.entries(this.options.boundProperties).map(([property, binding]) => {
|
|
112
|
+
const attributeBindingDirective = new _microsoft_fast_element.HTMLBindingDirective((0, _microsoft_fast_element.oneWay)(binding instanceof Function ? binding : () => binding));
|
|
113
|
+
attributeBindingDirective.id = (0, _microsoft_fast_web_utilities.uniqueId)();
|
|
114
|
+
attributeBindingDirective.targetNodeId = this.targetNodeId;
|
|
115
|
+
attributeBindingDirective.policy = this.policy;
|
|
116
|
+
_microsoft_fast_element.HTMLDirective.assignAspect(attributeBindingDirective, require_vivid_element.ariaAttributeName(property));
|
|
117
|
+
return attributeBindingDirective.createBehavior();
|
|
118
|
+
});
|
|
119
|
+
return this._propertyBindingBehaviours;
|
|
120
|
+
}
|
|
121
|
+
bind(controller) {
|
|
122
|
+
const source = controller.source;
|
|
123
|
+
const target = controller.targets[this.targetNodeId];
|
|
124
|
+
if (this.options.requireHost && target !== source) throw new Error("Target element must be the same as the source element");
|
|
125
|
+
for (const behaviour of this.propertyBindingBehaviours) behaviour.bind(controller);
|
|
126
|
+
for (const key of this.options.forwardedValueProperties) setAriaAttribute(target, key, source[key]);
|
|
127
|
+
const setIdrefElementsOnTarget = (property) => {
|
|
128
|
+
target[`${property}Elements`] = IdrefsController.resolvedElements(source, property);
|
|
129
|
+
};
|
|
130
|
+
for (const key of this.options.forwardedIdrefsProperties) setIdrefElementsOnTarget(key);
|
|
131
|
+
const onAriaPropertyChange = (source, property) => {
|
|
132
|
+
if (this.options.forwardedValueProperties.has(property)) setAriaAttribute(target, property, source[property]);
|
|
133
|
+
if (this.options.forwardedIdrefsProperties.has(property)) setIdrefElementsOnTarget(property);
|
|
134
|
+
};
|
|
135
|
+
require_vivid_element.subscribeToAriaPropertyChanges(source, onAriaPropertyChange);
|
|
136
|
+
controller.onUnbind({ unbind: () => require_vivid_element.unsubscribeFromAriaPropertyChanges(source, onAriaPropertyChange) });
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
_microsoft_fast_element.HTMLDirective.define(AriaBindingDirective);
|
|
140
|
+
//#endregion
|
|
141
|
+
Object.defineProperty(exports, "AriaBindingDirective", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function() {
|
|
144
|
+
return AriaBindingDirective;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "IdrefsController", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function() {
|
|
150
|
+
return IdrefsController;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { c as subscribeToAriaPropertyChanges, l as unsubscribeFromAriaPropertyChanges, o as handleAriaPropertyChange, r as ariaAttributeName, s as publishAriaPropertyChange } from "./vivid-element.js";
|
|
2
|
+
import { DOM, HTMLBindingDirective, HTMLDirective, StatelessAttachedAttributeDirective, oneWay } from "@microsoft/fast-element";
|
|
3
|
+
import { uniqueId } from "@microsoft/fast-web-utilities";
|
|
4
|
+
//#region src/shared/aria/idrefs-controller.ts
|
|
5
|
+
var parseIdrefs = (idrefs) => {
|
|
6
|
+
if (!idrefs.trim()) return [];
|
|
7
|
+
return idrefs.trim().split(/\s+/);
|
|
8
|
+
};
|
|
9
|
+
var idrefsControllers = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
/** Manages a single IDREF property for an element. Lazily created only when the property is used. */
|
|
11
|
+
var IdrefsController = class IdrefsController {
|
|
12
|
+
static resolvedElements(host, property) {
|
|
13
|
+
return idrefsControllers.get(host)?.get(property)?.getResolvedElements() ?? null;
|
|
14
|
+
}
|
|
15
|
+
static for(host, property) {
|
|
16
|
+
let controllersByProp = idrefsControllers.get(host);
|
|
17
|
+
if (!controllersByProp) {
|
|
18
|
+
controllersByProp = /* @__PURE__ */ new Map();
|
|
19
|
+
idrefsControllers.set(host, controllersByProp);
|
|
20
|
+
}
|
|
21
|
+
let controller = controllersByProp.get(property);
|
|
22
|
+
if (!controller) {
|
|
23
|
+
controller = new IdrefsController(host, property);
|
|
24
|
+
controllersByProp.set(property, controller);
|
|
25
|
+
}
|
|
26
|
+
return controller;
|
|
27
|
+
}
|
|
28
|
+
constructor(host, propertyName) {
|
|
29
|
+
this.host = host;
|
|
30
|
+
this.propertyName = propertyName;
|
|
31
|
+
host._addController(this);
|
|
32
|
+
}
|
|
33
|
+
#isConnected = false;
|
|
34
|
+
hostConnected() {
|
|
35
|
+
this.#isConnected = true;
|
|
36
|
+
this.#updateResolution();
|
|
37
|
+
}
|
|
38
|
+
hostDisconnected() {
|
|
39
|
+
this.#isConnected = false;
|
|
40
|
+
this.#updateResolution();
|
|
41
|
+
}
|
|
42
|
+
getAttribute() {
|
|
43
|
+
return this.host[`_${this.propertyName}`];
|
|
44
|
+
}
|
|
45
|
+
setAttribute(value) {
|
|
46
|
+
this.host[`_${this.propertyName}`] = value;
|
|
47
|
+
handleAriaPropertyChange(this.host, this.propertyName);
|
|
48
|
+
this.#updateResolution();
|
|
49
|
+
}
|
|
50
|
+
#resolvedElements = null;
|
|
51
|
+
#setResolvedElements(elements) {
|
|
52
|
+
this.#resolvedElements = elements;
|
|
53
|
+
publishAriaPropertyChange(this.host, this.propertyName);
|
|
54
|
+
}
|
|
55
|
+
getResolvedElements() {
|
|
56
|
+
if (!this.host.isConnected && this.#resolvedElements) return [];
|
|
57
|
+
return this.#resolvedElements;
|
|
58
|
+
}
|
|
59
|
+
/** When elements property is set on the host */
|
|
60
|
+
setElements(elements) {
|
|
61
|
+
this.setAttribute(elements !== null ? "" : null);
|
|
62
|
+
this.#setResolvedElements(elements);
|
|
63
|
+
}
|
|
64
|
+
#updateResolution() {
|
|
65
|
+
this.#cleanupObserver();
|
|
66
|
+
if (!(this.#isConnected && this.host.isConnected)) return;
|
|
67
|
+
const attrValue = this.getAttribute();
|
|
68
|
+
if (attrValue) {
|
|
69
|
+
const idList = parseIdrefs(attrValue);
|
|
70
|
+
if (idList.length === 0) {
|
|
71
|
+
this.#setResolvedElements([]);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const resolved = this.#resolveIds(idList);
|
|
75
|
+
this.#setResolvedElements(resolved);
|
|
76
|
+
if (resolved.length < idList.length) this.#observeForElements(idList);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
#resolveId(id) {
|
|
80
|
+
return this.host.getRootNode().getElementById(id);
|
|
81
|
+
}
|
|
82
|
+
#resolveIds(idList) {
|
|
83
|
+
return idList.map((id) => this.#resolveId(id)).filter((el) => el !== null);
|
|
84
|
+
}
|
|
85
|
+
#observer;
|
|
86
|
+
#observeForElements(idList) {
|
|
87
|
+
this.#observer = new MutationObserver(() => {
|
|
88
|
+
const resolved = this.#resolveIds(idList);
|
|
89
|
+
this.#setResolvedElements(resolved);
|
|
90
|
+
if (resolved.length === idList.length) this.#cleanupObserver();
|
|
91
|
+
});
|
|
92
|
+
this.#observer.observe(this.host.getRootNode(), {
|
|
93
|
+
childList: true,
|
|
94
|
+
subtree: true
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
#cleanupObserver() {
|
|
98
|
+
this.#observer?.disconnect();
|
|
99
|
+
this.#observer = void 0;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/shared/aria/aria-binding-directive.ts
|
|
104
|
+
var setAriaAttribute = (target, property, value) => DOM.setAttribute(target, ariaAttributeName(property), value === false ? null : value);
|
|
105
|
+
/**
|
|
106
|
+
* Directive for both delegate and host semantics.
|
|
107
|
+
*/
|
|
108
|
+
var AriaBindingDirective = class extends StatelessAttachedAttributeDirective {
|
|
109
|
+
get propertyBindingBehaviours() {
|
|
110
|
+
if (!this._propertyBindingBehaviours) this._propertyBindingBehaviours = Object.entries(this.options.boundProperties).map(([property, binding]) => {
|
|
111
|
+
const attributeBindingDirective = new HTMLBindingDirective(oneWay(binding instanceof Function ? binding : () => binding));
|
|
112
|
+
attributeBindingDirective.id = uniqueId();
|
|
113
|
+
attributeBindingDirective.targetNodeId = this.targetNodeId;
|
|
114
|
+
attributeBindingDirective.policy = this.policy;
|
|
115
|
+
HTMLDirective.assignAspect(attributeBindingDirective, ariaAttributeName(property));
|
|
116
|
+
return attributeBindingDirective.createBehavior();
|
|
117
|
+
});
|
|
118
|
+
return this._propertyBindingBehaviours;
|
|
119
|
+
}
|
|
120
|
+
bind(controller) {
|
|
121
|
+
const source = controller.source;
|
|
122
|
+
const target = controller.targets[this.targetNodeId];
|
|
123
|
+
if (this.options.requireHost && target !== source) throw new Error("Target element must be the same as the source element");
|
|
124
|
+
for (const behaviour of this.propertyBindingBehaviours) behaviour.bind(controller);
|
|
125
|
+
for (const key of this.options.forwardedValueProperties) setAriaAttribute(target, key, source[key]);
|
|
126
|
+
const setIdrefElementsOnTarget = (property) => {
|
|
127
|
+
target[`${property}Elements`] = IdrefsController.resolvedElements(source, property);
|
|
128
|
+
};
|
|
129
|
+
for (const key of this.options.forwardedIdrefsProperties) setIdrefElementsOnTarget(key);
|
|
130
|
+
const onAriaPropertyChange = (source, property) => {
|
|
131
|
+
if (this.options.forwardedValueProperties.has(property)) setAriaAttribute(target, property, source[property]);
|
|
132
|
+
if (this.options.forwardedIdrefsProperties.has(property)) setIdrefElementsOnTarget(property);
|
|
133
|
+
};
|
|
134
|
+
subscribeToAriaPropertyChanges(source, onAriaPropertyChange);
|
|
135
|
+
controller.onUnbind({ unbind: () => unsubscribeFromAriaPropertyChanges(source, onAriaPropertyChange) });
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
HTMLDirective.define(AriaBindingDirective);
|
|
139
|
+
//#endregion
|
|
140
|
+
export { IdrefsController as n, AriaBindingDirective as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require("./chunk.cjs");
|
|
2
|
-
const require_definition = require("./definition.cjs");
|
|
3
2
|
const require_decorate = require("./decorate.cjs");
|
|
3
|
+
const require_definition = require("./definition6.cjs");
|
|
4
4
|
const require_definition$1 = require("./definition7.cjs");
|
|
5
5
|
const require_divider = require("./divider.cjs");
|
|
6
6
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
@@ -29,7 +29,7 @@ function addLeadingZeros(number, targetLength) {
|
|
|
29
29
|
* > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
|
|
30
30
|
*/
|
|
31
31
|
var daysInYear = 365.2425;
|
|
32
|
-
Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
|
|
32
|
+
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
33
33
|
/**
|
|
34
34
|
* @constant
|
|
35
35
|
* @name millisecondsInWeek
|
|
@@ -4978,7 +4978,6 @@ function renderCalendarGrid(context) {
|
|
|
4978
4978
|
}
|
|
4979
4979
|
function renderMonthPickerGrid(context) {
|
|
4980
4980
|
const dividerTag = context.tagFor(require_divider.Divider);
|
|
4981
|
-
const visuallyHiddenTag = context.tagFor(require_definition.VisuallyHidden);
|
|
4982
4981
|
return _microsoft_fast_element.html`
|
|
4983
4982
|
<${dividerTag}
|
|
4984
4983
|
class='months-separator'
|
|
@@ -4996,7 +4995,13 @@ function renderMonthPickerGrid(context) {
|
|
|
4996
4995
|
<button
|
|
4997
4996
|
class="${(x, c) => (0, _microsoft_fast_web_utilities.classNames)("month", "button", ["current", areMonthsEqual(x.month, c.parentContext.parentContext.parent._currentMonth)], ["selected", areMonthsEqual(x.month, c.parentContext.parentContext.parent._selectedMonth)])}"
|
|
4998
4997
|
tabindex="${(x, c) => c.parentContext.parentContext.parent._tabbableMonth && areMonthsEqual(x.month, c.parentContext.parentContext.parent._tabbableMonth) ? 1 : -1}"
|
|
4999
|
-
aria-label="${(x) =>
|
|
4998
|
+
aria-label="${(x, c) => {
|
|
4999
|
+
const picker = c.parentContext.parentContext.parent;
|
|
5000
|
+
const announcements = [x.monthName];
|
|
5001
|
+
if (areMonthsEqual(x.month, picker._currentMonth)) announcements.push(picker.locale.calendarPicker.currentLabel);
|
|
5002
|
+
if (areMonthsEqual(x.month, picker._selectedMonth)) announcements.push(picker.locale.calendarPicker.selectedLabel);
|
|
5003
|
+
return announcements.join(" ");
|
|
5004
|
+
}}"
|
|
5000
5005
|
data-month="${(x) => monthToStr(x.month)}"
|
|
5001
5006
|
?disabled="${(x, c) => !c.parentContext.parentContext.parent._isMonthInValidRange(x.month)}"
|
|
5002
5007
|
@click="${(x, c) => c.parentContext.parentContext.parent._onMonthClick(x.month)}"
|
|
@@ -5004,13 +5009,6 @@ function renderMonthPickerGrid(context) {
|
|
|
5004
5009
|
@keydown="${(x, c) => c.parentContext.parentContext.parent._onMonthKeydown(x.month, c.event)}"
|
|
5005
5010
|
>
|
|
5006
5011
|
${(x) => x.label}
|
|
5007
|
-
<${visuallyHiddenTag}>${(x, c) => {
|
|
5008
|
-
const picker = c.parentContext.parentContext.parent;
|
|
5009
|
-
const announcements = [];
|
|
5010
|
-
if (areMonthsEqual(x.month, picker._currentMonth)) announcements.push(picker.locale.calendarPicker.currentLabel);
|
|
5011
|
-
if (areMonthsEqual(x.month, picker._selectedMonth)) announcements.push(picker.locale.calendarPicker.selectedLabel);
|
|
5012
|
-
return announcements.join(" ");
|
|
5013
|
-
}}</${visuallyHiddenTag}>
|
|
5014
5012
|
</button>
|
|
5015
5013
|
</span>
|
|
5016
5014
|
`)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as VisuallyHidden } from "./definition.js";
|
|
2
1
|
import { t as __decorate } from "./decorate.js";
|
|
2
|
+
import { r as VisuallyHidden } from "./definition6.js";
|
|
3
3
|
import { i as Button } from "./definition7.js";
|
|
4
4
|
import { t as Divider } from "./divider.js";
|
|
5
5
|
import { Updates, attr, html, observable, repeat, volatile, when } from "@microsoft/fast-element";
|
|
@@ -28,7 +28,7 @@ function addLeadingZeros(number, targetLength) {
|
|
|
28
28
|
* > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
|
|
29
29
|
*/
|
|
30
30
|
var daysInYear = 365.2425;
|
|
31
|
-
Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
|
|
31
|
+
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
32
32
|
/**
|
|
33
33
|
* @constant
|
|
34
34
|
* @name millisecondsInWeek
|
|
@@ -4977,7 +4977,6 @@ function renderCalendarGrid(context) {
|
|
|
4977
4977
|
}
|
|
4978
4978
|
function renderMonthPickerGrid(context) {
|
|
4979
4979
|
const dividerTag = context.tagFor(Divider);
|
|
4980
|
-
const visuallyHiddenTag = context.tagFor(VisuallyHidden);
|
|
4981
4980
|
return html`
|
|
4982
4981
|
<${dividerTag}
|
|
4983
4982
|
class='months-separator'
|
|
@@ -4995,7 +4994,13 @@ function renderMonthPickerGrid(context) {
|
|
|
4995
4994
|
<button
|
|
4996
4995
|
class="${(x, c) => classNames("month", "button", ["current", areMonthsEqual(x.month, c.parentContext.parentContext.parent._currentMonth)], ["selected", areMonthsEqual(x.month, c.parentContext.parentContext.parent._selectedMonth)])}"
|
|
4997
4996
|
tabindex="${(x, c) => c.parentContext.parentContext.parent._tabbableMonth && areMonthsEqual(x.month, c.parentContext.parentContext.parent._tabbableMonth) ? 1 : -1}"
|
|
4998
|
-
aria-label="${(x) =>
|
|
4997
|
+
aria-label="${(x, c) => {
|
|
4998
|
+
const picker = c.parentContext.parentContext.parent;
|
|
4999
|
+
const announcements = [x.monthName];
|
|
5000
|
+
if (areMonthsEqual(x.month, picker._currentMonth)) announcements.push(picker.locale.calendarPicker.currentLabel);
|
|
5001
|
+
if (areMonthsEqual(x.month, picker._selectedMonth)) announcements.push(picker.locale.calendarPicker.selectedLabel);
|
|
5002
|
+
return announcements.join(" ");
|
|
5003
|
+
}}"
|
|
4999
5004
|
data-month="${(x) => monthToStr(x.month)}"
|
|
5000
5005
|
?disabled="${(x, c) => !c.parentContext.parentContext.parent._isMonthInValidRange(x.month)}"
|
|
5001
5006
|
@click="${(x, c) => c.parentContext.parentContext.parent._onMonthClick(x.month)}"
|
|
@@ -5003,13 +5008,6 @@ function renderMonthPickerGrid(context) {
|
|
|
5003
5008
|
@keydown="${(x, c) => c.parentContext.parentContext.parent._onMonthKeydown(x.month, c.event)}"
|
|
5004
5009
|
>
|
|
5005
5010
|
${(x) => x.label}
|
|
5006
|
-
<${visuallyHiddenTag}>${(x, c) => {
|
|
5007
|
-
const picker = c.parentContext.parentContext.parent;
|
|
5008
|
-
const announcements = [];
|
|
5009
|
-
if (areMonthsEqual(x.month, picker._currentMonth)) announcements.push(picker.locale.calendarPicker.currentLabel);
|
|
5010
|
-
if (areMonthsEqual(x.month, picker._selectedMonth)) announcements.push(picker.locale.calendarPicker.selectedLabel);
|
|
5011
|
-
return announcements.join(" ");
|
|
5012
|
-
}}</${visuallyHiddenTag}>
|
|
5013
5011
|
</button>
|
|
5014
5012
|
</span>
|
|
5015
5013
|
`)}
|
package/unbundled/char-count.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require("./chunk.cjs");
|
|
2
|
-
const require_definition = require("./definition.cjs");
|
|
3
2
|
const require_decorate = require("./decorate.cjs");
|
|
4
3
|
const require_localized = require("./localized.cjs");
|
|
4
|
+
const require_definition = require("./definition6.cjs");
|
|
5
5
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
6
6
|
//#region src/shared/patterns/char-count/char-count.ts
|
|
7
7
|
/**
|
|
@@ -12,6 +12,7 @@ var WithCharCount = (Base) => {
|
|
|
12
12
|
constructor(..._args) {
|
|
13
13
|
super(..._args);
|
|
14
14
|
this.charCount = false;
|
|
15
|
+
this.#charCountTimeout = null;
|
|
15
16
|
this._charCountDescribedBy = "char-count-description";
|
|
16
17
|
this._renderCharCountRemaining = () => {
|
|
17
18
|
if (!this.charCount || !this.maxlength) return;
|
|
@@ -44,7 +45,7 @@ var WithCharCount = (Base) => {
|
|
|
44
45
|
* used to debounce screen reader announcements
|
|
45
46
|
* @internal
|
|
46
47
|
*/
|
|
47
|
-
#charCountTimeout
|
|
48
|
+
#charCountTimeout;
|
|
48
49
|
}
|
|
49
50
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
50
51
|
attribute: "char-count",
|
package/unbundled/char-count.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as VisuallyHidden } from "./definition.js";
|
|
2
1
|
import { t as __decorate } from "./decorate.js";
|
|
3
2
|
import { t as Localized } from "./localized.js";
|
|
3
|
+
import { r as VisuallyHidden } from "./definition6.js";
|
|
4
4
|
import { attr, html, ref } from "@microsoft/fast-element";
|
|
5
5
|
//#region src/shared/patterns/char-count/char-count.ts
|
|
6
6
|
/**
|
|
@@ -11,6 +11,7 @@ var WithCharCount = (Base) => {
|
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
13
13
|
this.charCount = false;
|
|
14
|
+
this.#charCountTimeout = null;
|
|
14
15
|
this._charCountDescribedBy = "char-count-description";
|
|
15
16
|
this._renderCharCountRemaining = () => {
|
|
16
17
|
if (!this.charCount || !this.maxlength) return;
|
|
@@ -43,7 +44,7 @@ var WithCharCount = (Base) => {
|
|
|
43
44
|
* used to debounce screen reader announcements
|
|
44
45
|
* @internal
|
|
45
46
|
*/
|
|
46
|
-
#charCountTimeout
|
|
47
|
+
#charCountTimeout;
|
|
47
48
|
}
|
|
48
49
|
__decorate([attr({
|
|
49
50
|
attribute: "char-count",
|
package/unbundled/decorate.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
|
|
2
2
|
function __decorate(decorators, target, key, desc) {
|
|
3
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
package/unbundled/decorate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
|
|
2
2
|
function __decorate(decorators, target, key, desc) {
|
|
3
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|