@vonage/vivid 5.18.0 → 5.19.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 +0 -1
- package/accordion/definition.js +0 -1
- package/accordion/index.cjs +2 -2
- package/accordion/index.js +3 -4
- package/accordion-item/definition.cjs +0 -1
- package/accordion-item/definition.js +0 -1
- package/accordion-item/index.cjs +1 -1
- package/accordion-item/index.js +0 -2
- 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 +76 -77
- package/avatar/definition.cjs +0 -1
- package/avatar/definition.js +0 -1
- package/avatar/index.cjs +8 -8
- package/avatar/index.js +20 -21
- 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 +4 -4
- package/banner/index.js +17 -18
- package/breadcrumb/index.cjs +2 -2
- package/breadcrumb/index.js +3 -3
- 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 +1 -1
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +1 -1
- package/bundled/aria-binding-directive.cjs +1 -0
- package/bundled/aria-binding-directive.js +29 -0
- package/bundled/base-color-picker.cjs +3 -3
- package/bundled/base-color-picker.js +1 -1
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +2 -2
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/breadcrumb-item.js +3 -3
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +3 -3
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +4 -4
- package/bundled/calendar-picker.template.cjs +20 -20
- package/bundled/calendar-picker.template.js +10 -10
- package/bundled/char-count.cjs +2 -2
- package/bundled/char-count.js +3 -3
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +6 -6
- 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 +7 -7
- package/bundled/definition12.cjs +7 -7
- package/bundled/definition12.js +16 -16
- 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 +6 -6
- package/bundled/definition15.js +14 -14
- package/bundled/definition16.cjs +3 -3
- package/bundled/definition16.js +19 -19
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +14 -14
- package/bundled/definition18.cjs +7 -7
- package/bundled/definition18.js +20 -20
- package/bundled/definition19.cjs +2 -2
- package/bundled/definition19.js +3 -3
- package/bundled/definition2.cjs +3 -3
- package/bundled/definition2.js +11 -11
- package/bundled/definition20.cjs +8 -8
- package/bundled/definition20.js +16 -17
- package/bundled/definition21.cjs +5 -5
- package/bundled/definition21.js +26 -26
- 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 +5 -5
- package/bundled/definition24.js +15 -15
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +33 -33
- package/bundled/definition4.cjs +4 -4
- package/bundled/definition4.js +11 -11
- package/bundled/definition5.cjs +5 -5
- package/bundled/definition5.js +10 -10
- package/bundled/definition6.cjs +7 -7
- package/bundled/definition6.js +30 -30
- package/bundled/definition7.cjs +2 -2
- package/bundled/definition7.js +6 -6
- package/bundled/definition8.cjs +4 -4
- package/bundled/definition8.js +15 -15
- package/bundled/definition9.cjs +2 -2
- package/bundled/definition9.js +18 -18
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +10 -49
- package/bundled/divider.cjs +1 -1
- package/bundled/divider.js +3 -3
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +6 -6
- 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 +10 -39
- package/bundled/linkable.cjs +2 -2
- package/bundled/linkable.js +1 -1
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +12 -12
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +6 -6
- package/bundled/mixins.cjs +6 -6
- package/bundled/mixins.js +9 -9
- package/bundled/normalize.cjs +1 -1
- package/bundled/normalize.js +2 -2
- package/bundled/picker-field.template.cjs +1 -1
- package/bundled/picker-field.template.js +24 -23
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +1 -1
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +54 -54
- 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 +1 -1
- 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 +1 -1
- package/bundled/vivid-element.js +21 -19
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +1 -1
- 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 +10 -10
- 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 +14 -14
- package/card/index.js +33 -34
- 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 +15 -15
- package/color-picker/index.js +42 -42
- package/combobox/definition.cjs +0 -1
- package/combobox/definition.js +0 -1
- package/combobox/index.cjs +4 -4
- package/combobox/index.js +20 -21
- 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 +29 -29
- package/custom-elements.json +2544 -2688
- package/data-grid/definition.cjs +0 -1
- package/data-grid/definition.js +0 -1
- package/data-grid/index.cjs +14 -14
- package/data-grid/index.js +103 -104
- package/date-picker/definition.cjs +0 -1
- package/date-picker/definition.js +0 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -3
- package/date-range-picker/definition.cjs +0 -1
- package/date-range-picker/definition.js +0 -1
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +6 -7
- package/date-time-picker/definition.cjs +0 -1
- package/date-time-picker/definition.js +0 -1
- package/date-time-picker/index.cjs +2 -2
- package/date-time-picker/index.js +8 -9
- package/dial-pad/definition.cjs +0 -1
- package/dial-pad/definition.js +0 -1
- package/dial-pad/index.cjs +8 -8
- package/dial-pad/index.js +16 -17
- package/dialog/definition.cjs +0 -1
- package/dialog/definition.js +0 -1
- package/dialog/index.cjs +13 -10
- package/dialog/index.js +35 -33
- 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 +0 -1
- package/empty-state/definition.js +0 -1
- package/empty-state/index.cjs +4 -4
- package/empty-state/index.js +9 -10
- package/fab/definition.cjs +0 -1
- package/fab/definition.js +0 -1
- package/fab/index.cjs +3 -3
- package/fab/index.js +9 -10
- package/file-picker/definition.cjs +0 -1
- package/file-picker/definition.js +0 -1
- package/file-picker/index.cjs +7 -7
- package/file-picker/index.js +22 -23
- 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/index.cjs +5 -5
- package/header/index.js +11 -11
- package/icon/definition.cjs +0 -1
- package/icon/definition.js +0 -1
- package/icon/index.cjs +1 -1
- package/icon/index.js +0 -2
- package/index.cjs +0 -1
- package/index.js +0 -1
- package/layout/index.cjs +2 -2
- package/layout/index.js +3 -3
- package/lib/avatar/avatar.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/nav-item/nav-item.d.ts +1 -1
- package/lib/rich-text-editor/rte/utils/ui.d.ts +2 -1
- package/locales/de-DE.cjs +1 -1
- package/locales/en-GB.cjs +1 -1
- package/locales/en-US.cjs +1 -1
- package/locales/ja-JP.cjs +1 -1
- package/locales/zh-CN.cjs +1 -1
- 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/index.cjs +2 -2
- package/nav/index.js +2 -2
- package/nav-disclosure/definition.cjs +0 -1
- package/nav-disclosure/definition.js +0 -1
- package/nav-disclosure/index.cjs +4 -4
- package/nav-disclosure/index.js +15 -16
- package/nav-item/definition.cjs +0 -1
- package/nav-item/definition.js +0 -1
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +10 -11
- package/note/definition.cjs +0 -1
- package/note/definition.js +0 -1
- package/note/index.cjs +2 -2
- package/note/index.js +7 -8
- package/number-field/definition.cjs +0 -1
- package/number-field/definition.js +0 -1
- package/number-field/index.cjs +5 -5
- package/number-field/index.js +16 -17
- 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 +22 -22
- package/pagination/definition.cjs +0 -1
- package/pagination/definition.js +0 -1
- package/pagination/index.cjs +4 -4
- package/pagination/index.js +11 -12
- package/popover/definition.cjs +0 -1
- package/popover/definition.js +0 -1
- package/popover/index.cjs +6 -6
- package/popover/index.js +28 -29
- 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/index.cjs +5 -5
- package/progress/index.js +10 -10
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +0 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +0 -1
- package/radio-group/definition.cjs +0 -1
- package/radio-group/definition.js +0 -1
- package/radio-group/index.cjs +6 -6
- package/radio-group/index.js +21 -21
- package/range-slider/definition.cjs +0 -1
- package/range-slider/definition.js +0 -1
- package/range-slider/index.cjs +5 -5
- package/range-slider/index.js +58 -59
- package/rich-text-editor/definition.cjs +0 -1
- package/rich-text-editor/definition.js +0 -1
- package/rich-text-editor/index.cjs +9 -9
- package/rich-text-editor/index.js +2016 -1947
- package/rich-text-view/index.cjs +1 -1
- package/rich-text-view/index.js +2 -2
- package/searchable-select/definition.cjs +0 -1
- package/searchable-select/definition.js +0 -1
- package/searchable-select/index.cjs +23 -23
- package/searchable-select/index.js +109 -108
- package/select/definition.cjs +0 -1
- package/select/definition.js +0 -1
- package/select/index.cjs +1 -1
- package/select/index.js +0 -2
- package/selectable-box/definition.cjs +0 -1
- package/selectable-box/definition.js +0 -1
- package/selectable-box/index.cjs +9 -9
- package/selectable-box/index.js +19 -20
- package/shared/aria/aria-binding-directive.d.ts +21 -0
- package/shared/aria/aria-change-subscription.d.ts +1 -0
- package/shared/aria/delegates-aria.d.ts +1 -1
- package/shared/aria/host-semantics.d.ts +1 -1
- package/shared/patterns/linkable.d.ts +1 -1
- package/side-drawer/index.cjs +3 -3
- package/side-drawer/index.js +4 -4
- package/simple-color-picker/definition.cjs +0 -1
- package/simple-color-picker/definition.js +0 -1
- 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 +0 -1
- package/split-button/definition.js +0 -1
- package/split-button/index.cjs +6 -6
- package/split-button/index.js +17 -18
- package/status/definition.cjs +0 -1
- package/status/definition.js +0 -1
- package/status/index.cjs +2 -2
- package/status/index.js +8 -9
- package/switch/definition.cjs +0 -1
- package/switch/definition.js +0 -1
- package/switch/index.cjs +5 -5
- package/switch/index.js +9 -10
- package/tab/definition.cjs +0 -1
- package/tab/definition.js +0 -1
- package/tab/index.cjs +1 -1
- package/tab/index.js +0 -2
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +0 -1
- package/table/definition.cjs +0 -1
- package/table/definition.js +0 -1
- package/table/index.cjs +9 -9
- package/table/index.js +21 -22
- package/tabs/definition.cjs +0 -1
- package/tabs/definition.js +0 -1
- package/tabs/index.cjs +2 -2
- package/tabs/index.js +25 -26
- package/tag/definition.cjs +0 -1
- package/tag/definition.js +0 -1
- package/tag/index.cjs +11 -11
- package/tag/index.js +21 -22
- package/tag-group/index.cjs +4 -4
- package/tag-group/index.js +6 -6
- package/text-area/definition.cjs +0 -1
- package/text-area/definition.js +0 -1
- package/text-area/index.cjs +4 -4
- package/text-area/index.js +24 -25
- 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 +0 -1
- package/time-picker/definition.js +0 -1
- 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 +0 -1
- package/tree-item/definition.js +0 -1
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +0 -2
- package/tree-view/definition.cjs +0 -1
- package/tree-view/definition.js +0 -1
- package/tree-view/index.cjs +2 -2
- package/tree-view/index.js +5 -5
- package/unbundled/aria-binding-directive.cjs +42 -0
- package/unbundled/aria-binding-directive.js +36 -0
- package/unbundled/calendar-picker.template.cjs +1 -1
- package/unbundled/calendar-picker.template.js +1 -1
- package/unbundled/char-count.cjs +2 -1
- package/unbundled/char-count.js +2 -1
- package/unbundled/decorate.cjs +1 -1
- package/unbundled/decorate.js +1 -1
- package/unbundled/definition.js +1 -1
- 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 +2 -2
- package/unbundled/definition12.js +3 -3
- 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.js +1 -1
- package/unbundled/definition16.js +1 -1
- package/unbundled/definition17.cjs +10 -8
- package/unbundled/definition17.js +11 -9
- package/unbundled/definition18.js +1 -1
- package/unbundled/definition19.js +1 -1
- package/unbundled/definition2.cjs +4 -2
- package/unbundled/definition2.js +5 -3
- package/unbundled/definition20.js +1 -1
- package/unbundled/definition21.js +1 -1
- package/unbundled/definition22.js +1 -1
- package/unbundled/definition23.cjs +1 -1
- package/unbundled/definition23.js +2 -2
- package/unbundled/definition24.cjs +17 -13
- package/unbundled/definition24.js +18 -14
- package/unbundled/definition25.js +1 -1
- package/unbundled/definition26.cjs +17 -1
- package/unbundled/definition26.js +18 -2
- package/unbundled/definition27.cjs +15 -12
- package/unbundled/definition27.js +16 -13
- package/unbundled/definition28.cjs +9 -6
- package/unbundled/definition28.js +10 -7
- package/unbundled/definition29.js +1 -1
- package/unbundled/definition3.js +1 -1
- package/unbundled/definition30.cjs +4 -2
- package/unbundled/definition30.js +5 -3
- package/unbundled/definition31.js +1 -1
- package/unbundled/definition32.cjs +30 -23
- package/unbundled/definition32.js +31 -24
- package/unbundled/definition33.cjs +4 -2
- package/unbundled/definition33.js +5 -3
- package/unbundled/definition34.cjs +200 -48
- package/unbundled/definition34.js +201 -49
- package/unbundled/definition35.js +1 -1
- package/unbundled/definition36.js +1 -1
- package/unbundled/definition37.js +1 -1
- package/unbundled/definition38.cjs +2 -1
- package/unbundled/definition38.js +3 -2
- package/unbundled/definition39.js +1 -1
- package/unbundled/definition4.cjs +6 -0
- package/unbundled/definition4.js +7 -1
- package/unbundled/definition40.js +1 -1
- package/unbundled/definition41.cjs +17 -12
- package/unbundled/definition41.js +18 -13
- package/unbundled/definition42.js +1 -1
- package/unbundled/definition43.js +1 -1
- package/unbundled/definition44.cjs +4 -3
- package/unbundled/definition44.js +5 -4
- package/unbundled/definition45.js +1 -1
- package/unbundled/definition46.js +1 -1
- package/unbundled/definition47.cjs +5 -4
- package/unbundled/definition47.js +6 -5
- package/unbundled/definition48.cjs +1 -1
- package/unbundled/definition48.js +2 -2
- package/unbundled/definition49.js +1 -1
- package/unbundled/definition5.js +1 -1
- package/unbundled/definition50.js +1 -1
- package/unbundled/definition51.cjs +1 -1
- package/unbundled/definition51.js +2 -2
- package/unbundled/definition52.js +1 -1
- package/unbundled/definition53.cjs +16 -12
- package/unbundled/definition53.js +17 -13
- package/unbundled/definition54.js +1 -1
- package/unbundled/definition55.cjs +25 -23
- package/unbundled/definition55.js +26 -24
- package/unbundled/definition56.cjs +2 -1
- package/unbundled/definition56.js +3 -2
- package/unbundled/definition57.cjs +72 -61
- package/unbundled/definition57.js +73 -62
- package/unbundled/definition58.cjs +34 -26
- package/unbundled/definition58.js +34 -26
- package/unbundled/definition59.cjs +1 -1
- package/unbundled/definition59.js +2 -2
- package/unbundled/definition6.js +1 -1
- package/unbundled/definition60.js +1 -1
- package/unbundled/definition61.cjs +15 -10
- package/unbundled/definition61.js +16 -11
- package/unbundled/definition62.js +1 -1
- package/unbundled/definition63.js +1 -1
- package/unbundled/definition64.cjs +20 -17
- package/unbundled/definition64.js +21 -18
- package/unbundled/definition65.js +1 -1
- package/unbundled/definition66.js +1 -1
- package/unbundled/definition67.cjs +1 -1
- package/unbundled/definition67.js +2 -2
- package/unbundled/definition68.js +1 -1
- package/unbundled/definition69.js +1 -1
- package/unbundled/definition7.js +1 -1
- package/unbundled/definition70.cjs +28 -23
- package/unbundled/definition70.js +29 -24
- package/unbundled/definition71.js +1 -1
- package/unbundled/definition72.cjs +6 -5
- package/unbundled/definition72.js +7 -6
- package/unbundled/definition73.cjs +13 -1
- package/unbundled/definition73.js +14 -2
- package/unbundled/definition74.js +1 -1
- package/unbundled/definition75.js +1 -1
- package/unbundled/definition76.cjs +2 -1
- package/unbundled/definition76.js +3 -2
- package/unbundled/definition77.cjs +1 -1
- package/unbundled/definition77.js +1 -1
- package/unbundled/definition8.js +1 -1
- package/unbundled/definition9.cjs +9 -7
- package/unbundled/definition9.js +10 -8
- package/unbundled/delegates-aria.cjs +5 -60
- package/unbundled/delegates-aria.js +6 -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 +10 -45
- package/unbundled/host-semantics.js +10 -44
- package/unbundled/mixins.js +1 -1
- package/unbundled/picker-field.template.cjs +20 -15
- package/unbundled/picker-field.template.js +20 -15
- 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 +10 -1
- package/unbundled/vivid-element.js +5 -2
- package/video-player/index.cjs +24 -24
- package/video-player/index.js +3087 -3010
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +0 -1
- package/vivid.api.json +1 -1
- package/bundled/attribute-binding-behaviour.cjs +0 -1
- package/bundled/attribute-binding-behaviour.js +0 -18
- 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/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, D as t, c as n, f as r, s as i, t as a, u as o } from "../bundled/vivid-element.js";
|
|
2
2
|
import { t as s } from "../bundled/ref.js";
|
|
3
3
|
import { t as c } from "../bundled/slotted.js";
|
|
4
|
-
import "../bundled/numberConverter.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
|
});
|
|
@@ -132,7 +132,7 @@ var T = class extends S(o) {
|
|
|
132
132
|
};
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/lib/tree-view/index.ts
|
|
135
|
-
l([
|
|
135
|
+
l([o({ attribute: "render-collapsed-nodes" })], T.prototype, "renderCollapsedNodes", void 0), l([t], T.prototype, "currentSelected", void 0), l([t], T.prototype, "slottedTreeItems", void 0), n(i("tree-view", T, r` <template
|
|
136
136
|
${s("treeView")}
|
|
137
137
|
${x({ role: "tree" })}
|
|
138
138
|
@keydown="${(e, t) => e.handleKeyDown(t.event)}"
|
|
@@ -0,0 +1,42 @@
|
|
|
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/aria-binding-directive.ts
|
|
6
|
+
var setAriaAttribute = (target, property, value) => _microsoft_fast_element.DOM.setAttribute(target, require_vivid_element.ariaAttributeName(property), value === false ? null : value);
|
|
7
|
+
/**
|
|
8
|
+
* Directive for both delegate and host semantics.
|
|
9
|
+
*/
|
|
10
|
+
var AriaBindingDirective = class extends _microsoft_fast_element.StatelessAttachedAttributeDirective {
|
|
11
|
+
get propertyBindingBehaviours() {
|
|
12
|
+
if (!this._propertyBindingBehaviours) this._propertyBindingBehaviours = Object.entries(this.options.boundProperties).map(([property, binding]) => {
|
|
13
|
+
const attributeBindingDirective = new _microsoft_fast_element.HTMLBindingDirective((0, _microsoft_fast_element.oneWay)(binding instanceof Function ? binding : () => binding));
|
|
14
|
+
attributeBindingDirective.id = (0, _microsoft_fast_web_utilities.uniqueId)();
|
|
15
|
+
attributeBindingDirective.targetNodeId = this.targetNodeId;
|
|
16
|
+
attributeBindingDirective.policy = this.policy;
|
|
17
|
+
_microsoft_fast_element.HTMLDirective.assignAspect(attributeBindingDirective, require_vivid_element.ariaAttributeName(property));
|
|
18
|
+
return attributeBindingDirective.createBehavior();
|
|
19
|
+
});
|
|
20
|
+
return this._propertyBindingBehaviours;
|
|
21
|
+
}
|
|
22
|
+
bind(controller) {
|
|
23
|
+
const source = controller.source;
|
|
24
|
+
const target = controller.targets[this.targetNodeId];
|
|
25
|
+
if (this.options.requireHost && target !== source) throw new Error("Target element must be the same as the source element");
|
|
26
|
+
for (const behaviour of this.propertyBindingBehaviours) behaviour.bind(controller);
|
|
27
|
+
for (const key of this.options.forwardedProperties) setAriaAttribute(target, key, source[key]);
|
|
28
|
+
const onAriaPropertyChange = (source, property) => {
|
|
29
|
+
if (this.options.forwardedProperties.has(property)) setAriaAttribute(target, property, source[property]);
|
|
30
|
+
};
|
|
31
|
+
require_vivid_element.subscribeToAriaPropertyChanges(source, onAriaPropertyChange);
|
|
32
|
+
controller.onUnbind({ unbind: () => require_vivid_element.unsubscribeFromAriaPropertyChanges(source, onAriaPropertyChange) });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
_microsoft_fast_element.HTMLDirective.define(AriaBindingDirective);
|
|
36
|
+
//#endregion
|
|
37
|
+
Object.defineProperty(exports, "AriaBindingDirective", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function() {
|
|
40
|
+
return AriaBindingDirective;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { a as subscribeToAriaPropertyChanges, o as unsubscribeFromAriaPropertyChanges, r as ariaAttributeName } 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/aria-binding-directive.ts
|
|
5
|
+
var setAriaAttribute = (target, property, value) => DOM.setAttribute(target, ariaAttributeName(property), value === false ? null : value);
|
|
6
|
+
/**
|
|
7
|
+
* Directive for both delegate and host semantics.
|
|
8
|
+
*/
|
|
9
|
+
var AriaBindingDirective = class extends StatelessAttachedAttributeDirective {
|
|
10
|
+
get propertyBindingBehaviours() {
|
|
11
|
+
if (!this._propertyBindingBehaviours) this._propertyBindingBehaviours = Object.entries(this.options.boundProperties).map(([property, binding]) => {
|
|
12
|
+
const attributeBindingDirective = new HTMLBindingDirective(oneWay(binding instanceof Function ? binding : () => binding));
|
|
13
|
+
attributeBindingDirective.id = uniqueId();
|
|
14
|
+
attributeBindingDirective.targetNodeId = this.targetNodeId;
|
|
15
|
+
attributeBindingDirective.policy = this.policy;
|
|
16
|
+
HTMLDirective.assignAspect(attributeBindingDirective, ariaAttributeName(property));
|
|
17
|
+
return attributeBindingDirective.createBehavior();
|
|
18
|
+
});
|
|
19
|
+
return this._propertyBindingBehaviours;
|
|
20
|
+
}
|
|
21
|
+
bind(controller) {
|
|
22
|
+
const source = controller.source;
|
|
23
|
+
const target = controller.targets[this.targetNodeId];
|
|
24
|
+
if (this.options.requireHost && target !== source) throw new Error("Target element must be the same as the source element");
|
|
25
|
+
for (const behaviour of this.propertyBindingBehaviours) behaviour.bind(controller);
|
|
26
|
+
for (const key of this.options.forwardedProperties) setAriaAttribute(target, key, source[key]);
|
|
27
|
+
const onAriaPropertyChange = (source, property) => {
|
|
28
|
+
if (this.options.forwardedProperties.has(property)) setAriaAttribute(target, property, source[property]);
|
|
29
|
+
};
|
|
30
|
+
subscribeToAriaPropertyChanges(source, onAriaPropertyChange);
|
|
31
|
+
controller.onUnbind({ unbind: () => unsubscribeFromAriaPropertyChanges(source, onAriaPropertyChange) });
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
HTMLDirective.define(AriaBindingDirective);
|
|
35
|
+
//#endregion
|
|
36
|
+
export { AriaBindingDirective as t };
|
|
@@ -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
|
|
@@ -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
|
package/unbundled/char-count.cjs
CHANGED
|
@@ -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
|
@@ -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);
|
package/unbundled/definition.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { html } from "@microsoft/fast-element";
|
|
3
3
|
//#region src/lib/visually-hidden/visually-hidden.scss?inline
|
|
4
4
|
var visually_hidden_default = ":host{display:contents}slot:not(:focus-within){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;display:inline;position:absolute;overflow:hidden}";
|
|
@@ -46,6 +46,10 @@ var Popup = class extends require_vivid_element.VividElement {
|
|
|
46
46
|
this.animationFrame = false;
|
|
47
47
|
this.strategy = "fixed";
|
|
48
48
|
this.offset = null;
|
|
49
|
+
this.#autoUpdateCallback = () => {
|
|
50
|
+
this.#lastPositionUpdate = this.updatePosition();
|
|
51
|
+
return this.#lastPositionUpdate;
|
|
52
|
+
};
|
|
49
53
|
}
|
|
50
54
|
get #middleware() {
|
|
51
55
|
let middleware = [
|
|
@@ -115,10 +119,7 @@ var Popup = class extends require_vivid_element.VividElement {
|
|
|
115
119
|
else this.popupEl.hidePopover();
|
|
116
120
|
}
|
|
117
121
|
#lastPositionUpdate;
|
|
118
|
-
#autoUpdateCallback
|
|
119
|
-
this.#lastPositionUpdate = this.updatePosition();
|
|
120
|
-
return this.#lastPositionUpdate;
|
|
121
|
-
};
|
|
122
|
+
#autoUpdateCallback;
|
|
122
123
|
/**
|
|
123
124
|
* Updates popup's position
|
|
124
125
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { i as Button, t as buttonDefinition } from "./definition7.js";
|
|
4
4
|
import { r as Elevation, t as elevationDefinition } from "./definition8.js";
|
|
@@ -45,6 +45,10 @@ var Popup = class extends VividElement {
|
|
|
45
45
|
this.animationFrame = false;
|
|
46
46
|
this.strategy = "fixed";
|
|
47
47
|
this.offset = null;
|
|
48
|
+
this.#autoUpdateCallback = () => {
|
|
49
|
+
this.#lastPositionUpdate = this.updatePosition();
|
|
50
|
+
return this.#lastPositionUpdate;
|
|
51
|
+
};
|
|
48
52
|
}
|
|
49
53
|
get #middleware() {
|
|
50
54
|
let middleware = [
|
|
@@ -114,10 +118,7 @@ var Popup = class extends VividElement {
|
|
|
114
118
|
else this.popupEl.hidePopover();
|
|
115
119
|
}
|
|
116
120
|
#lastPositionUpdate;
|
|
117
|
-
#autoUpdateCallback
|
|
118
|
-
this.#lastPositionUpdate = this.updatePosition();
|
|
119
|
-
return this.#lastPositionUpdate;
|
|
120
|
-
};
|
|
121
|
+
#autoUpdateCallback;
|
|
121
122
|
/**
|
|
122
123
|
* Updates popup's position
|
|
123
124
|
*
|
|
@@ -154,6 +154,7 @@ var Slider = class extends require_localized.Localized(require_delegates_aria.De
|
|
|
154
154
|
this.pin = false;
|
|
155
155
|
this._focusVisible = false;
|
|
156
156
|
this._hoveringOnThumb = false;
|
|
157
|
+
this.#isNonVisibleFocus = false;
|
|
157
158
|
this._onFocusIn = () => {
|
|
158
159
|
if (!this.#isNonVisibleFocus) this._focusVisible = true;
|
|
159
160
|
this.#isNonVisibleFocus = false;
|
|
@@ -161,6 +162,15 @@ var Slider = class extends require_localized.Localized(require_delegates_aria.De
|
|
|
161
162
|
this._onFocusOut = () => {
|
|
162
163
|
this._focusVisible = false;
|
|
163
164
|
};
|
|
165
|
+
this.#onVisibilityChange = () => {
|
|
166
|
+
if (document.hidden && this.shadowRoot.activeElement !== null) this.#isNonVisibleFocus = true;
|
|
167
|
+
};
|
|
168
|
+
this.#onMouseOver = () => {
|
|
169
|
+
this._hoveringOnThumb = true;
|
|
170
|
+
};
|
|
171
|
+
this.#onMouseOut = () => {
|
|
172
|
+
this._hoveringOnThumb = false;
|
|
173
|
+
};
|
|
164
174
|
}
|
|
165
175
|
/**
|
|
166
176
|
* @internal
|
|
@@ -324,7 +334,7 @@ var Slider = class extends require_localized.Localized(require_delegates_aria.De
|
|
|
324
334
|
get _isThumbPopupOpen() {
|
|
325
335
|
return this._focusVisible || this._hoveringOnThumb || this.isDragging;
|
|
326
336
|
}
|
|
327
|
-
#isNonVisibleFocus
|
|
337
|
+
#isNonVisibleFocus;
|
|
328
338
|
#registerThumbListeners() {
|
|
329
339
|
this.thumb.addEventListener("mouseover", this.#onMouseOver, { passive: true });
|
|
330
340
|
this.thumb.addEventListener("mouseout", this.#onMouseOut, { passive: true });
|
|
@@ -333,15 +343,9 @@ var Slider = class extends require_localized.Localized(require_delegates_aria.De
|
|
|
333
343
|
this.thumb.removeEventListener("mouseover", this.#onMouseOver);
|
|
334
344
|
this.thumb.removeEventListener("mouseout", this.#onMouseOut);
|
|
335
345
|
}
|
|
336
|
-
#onVisibilityChange
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
#onMouseOver = () => {
|
|
340
|
-
this._hoveringOnThumb = true;
|
|
341
|
-
};
|
|
342
|
-
#onMouseOut = () => {
|
|
343
|
-
this._hoveringOnThumb = false;
|
|
344
|
-
};
|
|
346
|
+
#onVisibilityChange;
|
|
347
|
+
#onMouseOver;
|
|
348
|
+
#onMouseOut;
|
|
345
349
|
};
|
|
346
350
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
347
351
|
attribute: "readonly",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { t as DelegatesAria } from "./delegates-aria.js";
|
|
4
4
|
import { n as FormAssociated } from "./form-associated.js";
|
|
@@ -153,6 +153,7 @@ var Slider = class extends Localized(DelegatesAria(FormAssociated(VividElement))
|
|
|
153
153
|
this.pin = false;
|
|
154
154
|
this._focusVisible = false;
|
|
155
155
|
this._hoveringOnThumb = false;
|
|
156
|
+
this.#isNonVisibleFocus = false;
|
|
156
157
|
this._onFocusIn = () => {
|
|
157
158
|
if (!this.#isNonVisibleFocus) this._focusVisible = true;
|
|
158
159
|
this.#isNonVisibleFocus = false;
|
|
@@ -160,6 +161,15 @@ var Slider = class extends Localized(DelegatesAria(FormAssociated(VividElement))
|
|
|
160
161
|
this._onFocusOut = () => {
|
|
161
162
|
this._focusVisible = false;
|
|
162
163
|
};
|
|
164
|
+
this.#onVisibilityChange = () => {
|
|
165
|
+
if (document.hidden && this.shadowRoot.activeElement !== null) this.#isNonVisibleFocus = true;
|
|
166
|
+
};
|
|
167
|
+
this.#onMouseOver = () => {
|
|
168
|
+
this._hoveringOnThumb = true;
|
|
169
|
+
};
|
|
170
|
+
this.#onMouseOut = () => {
|
|
171
|
+
this._hoveringOnThumb = false;
|
|
172
|
+
};
|
|
163
173
|
}
|
|
164
174
|
/**
|
|
165
175
|
* @internal
|
|
@@ -323,7 +333,7 @@ var Slider = class extends Localized(DelegatesAria(FormAssociated(VividElement))
|
|
|
323
333
|
get _isThumbPopupOpen() {
|
|
324
334
|
return this._focusVisible || this._hoveringOnThumb || this.isDragging;
|
|
325
335
|
}
|
|
326
|
-
#isNonVisibleFocus
|
|
336
|
+
#isNonVisibleFocus;
|
|
327
337
|
#registerThumbListeners() {
|
|
328
338
|
this.thumb.addEventListener("mouseover", this.#onMouseOver, { passive: true });
|
|
329
339
|
this.thumb.addEventListener("mouseout", this.#onMouseOut, { passive: true });
|
|
@@ -332,15 +342,9 @@ var Slider = class extends Localized(DelegatesAria(FormAssociated(VividElement))
|
|
|
332
342
|
this.thumb.removeEventListener("mouseover", this.#onMouseOver);
|
|
333
343
|
this.thumb.removeEventListener("mouseout", this.#onMouseOut);
|
|
334
344
|
}
|
|
335
|
-
#onVisibilityChange
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
#onMouseOver = () => {
|
|
339
|
-
this._hoveringOnThumb = true;
|
|
340
|
-
};
|
|
341
|
-
#onMouseOut = () => {
|
|
342
|
-
this._hoveringOnThumb = false;
|
|
343
|
-
};
|
|
345
|
+
#onVisibilityChange;
|
|
346
|
+
#onMouseOver;
|
|
347
|
+
#onMouseOut;
|
|
344
348
|
};
|
|
345
349
|
__decorate([attr({
|
|
346
350
|
attribute: "readonly",
|
|
@@ -156,6 +156,7 @@ var MenuItem = class extends require_host_semantics.HostSemantics(require_affix.
|
|
|
156
156
|
}
|
|
157
157
|
return true;
|
|
158
158
|
};
|
|
159
|
+
this.#syntheticClickEvents = /* @__PURE__ */ new WeakSet();
|
|
159
160
|
this.addEventListener("expanded-change", this.#expandedChange);
|
|
160
161
|
}
|
|
161
162
|
#collapseExpandedItem() {
|
|
@@ -164,7 +165,7 @@ var MenuItem = class extends require_host_semantics.HostSemantics(require_affix.
|
|
|
164
165
|
#expandedChange() {
|
|
165
166
|
if (this.submenu) this.submenu.open = this.expanded;
|
|
166
167
|
}
|
|
167
|
-
#syntheticClickEvents
|
|
168
|
+
#syntheticClickEvents;
|
|
168
169
|
/**
|
|
169
170
|
* @internal
|
|
170
171
|
*/
|
|
@@ -238,7 +239,6 @@ var MenuItemTemplate = (context) => {
|
|
|
238
239
|
return _microsoft_fast_element.html`
|
|
239
240
|
<template
|
|
240
241
|
${require_host_semantics.applyHostSemantics({
|
|
241
|
-
role: MenuItemRole.menuitem,
|
|
242
242
|
ariaHasPopup: (x) => x.hasSubmenu ? "menu" : void 0,
|
|
243
243
|
ariaChecked: (x) => x.controlType ? x.checked : void 0,
|
|
244
244
|
ariaDisabled: (x) => x.disabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, n as replaces, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { r as Icon, t as iconDefinition } from "./definition2.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
4
|
import { a as affixIconTemplateFactory, t as AffixIcon } from "./affix.js";
|
|
@@ -155,6 +155,7 @@ var MenuItem = class extends HostSemantics(AffixIcon(VividElement)) {
|
|
|
155
155
|
}
|
|
156
156
|
return true;
|
|
157
157
|
};
|
|
158
|
+
this.#syntheticClickEvents = /* @__PURE__ */ new WeakSet();
|
|
158
159
|
this.addEventListener("expanded-change", this.#expandedChange);
|
|
159
160
|
}
|
|
160
161
|
#collapseExpandedItem() {
|
|
@@ -163,7 +164,7 @@ var MenuItem = class extends HostSemantics(AffixIcon(VividElement)) {
|
|
|
163
164
|
#expandedChange() {
|
|
164
165
|
if (this.submenu) this.submenu.open = this.expanded;
|
|
165
166
|
}
|
|
166
|
-
#syntheticClickEvents
|
|
167
|
+
#syntheticClickEvents;
|
|
167
168
|
/**
|
|
168
169
|
* @internal
|
|
169
170
|
*/
|
|
@@ -237,7 +238,6 @@ var MenuItemTemplate = (context) => {
|
|
|
237
238
|
return html`
|
|
238
239
|
<template
|
|
239
240
|
${applyHostSemantics({
|
|
240
|
-
role: MenuItemRole.menuitem,
|
|
241
241
|
ariaHasPopup: (x) => x.hasSubmenu ? "menu" : void 0,
|
|
242
242
|
ariaChecked: (x) => x.controlType ? x.checked : void 0,
|
|
243
243
|
ariaDisabled: (x) => x.disabled,
|
|
@@ -79,6 +79,12 @@ var Menu = class extends require_anchored.Anchored(require_delegates_aria.Delega
|
|
|
79
79
|
this.autoDismiss = false;
|
|
80
80
|
this.positionStrategy = "fixed";
|
|
81
81
|
this.open = false;
|
|
82
|
+
this.#onAnchorClick = () => {
|
|
83
|
+
if (this.#triggerBehaviour === "off") return;
|
|
84
|
+
if (this.#triggerBehaviour === "legacy" && this.open) return;
|
|
85
|
+
const newValue = !this.open;
|
|
86
|
+
_microsoft_fast_element.Updates.enqueue(() => this.open = newValue);
|
|
87
|
+
};
|
|
82
88
|
this._onFocusout = (e) => {
|
|
83
89
|
const focusTarget = e.relatedTarget;
|
|
84
90
|
const focusMovedAway = !this.contains(focusTarget) && !this._anchorEl?.contains(focusTarget);
|
|
@@ -200,12 +206,7 @@ var Menu = class extends require_anchored.Anchored(require_delegates_aria.Delega
|
|
|
200
206
|
a.ariaExpanded = null;
|
|
201
207
|
delete a.dataset.expanded;
|
|
202
208
|
}
|
|
203
|
-
#onAnchorClick
|
|
204
|
-
if (this.#triggerBehaviour === "off") return;
|
|
205
|
-
if (this.#triggerBehaviour === "legacy" && this.open) return;
|
|
206
|
-
const newValue = !this.open;
|
|
207
|
-
_microsoft_fast_element.Updates.enqueue(() => this.open = newValue);
|
|
208
|
-
};
|
|
209
|
+
#onAnchorClick;
|
|
209
210
|
/**
|
|
210
211
|
* @internal
|
|
211
212
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { n as delegateAria, t as DelegatesAria } from "./delegates-aria.js";
|
|
4
4
|
import { t as handleEscapeKeyAndStopPropogation } from "./dialog.js";
|
|
@@ -78,6 +78,12 @@ var Menu = class extends Anchored(DelegatesAria(VividElement)) {
|
|
|
78
78
|
this.autoDismiss = false;
|
|
79
79
|
this.positionStrategy = "fixed";
|
|
80
80
|
this.open = false;
|
|
81
|
+
this.#onAnchorClick = () => {
|
|
82
|
+
if (this.#triggerBehaviour === "off") return;
|
|
83
|
+
if (this.#triggerBehaviour === "legacy" && this.open) return;
|
|
84
|
+
const newValue = !this.open;
|
|
85
|
+
Updates.enqueue(() => this.open = newValue);
|
|
86
|
+
};
|
|
81
87
|
this._onFocusout = (e) => {
|
|
82
88
|
const focusTarget = e.relatedTarget;
|
|
83
89
|
const focusMovedAway = !this.contains(focusTarget) && !this._anchorEl?.contains(focusTarget);
|
|
@@ -199,12 +205,7 @@ var Menu = class extends Anchored(DelegatesAria(VividElement)) {
|
|
|
199
205
|
a.ariaExpanded = null;
|
|
200
206
|
delete a.dataset.expanded;
|
|
201
207
|
}
|
|
202
|
-
#onAnchorClick
|
|
203
|
-
if (this.#triggerBehaviour === "off") return;
|
|
204
|
-
if (this.#triggerBehaviour === "legacy" && this.open) return;
|
|
205
|
-
const newValue = !this.open;
|
|
206
|
-
Updates.enqueue(() => this.open = newValue);
|
|
207
|
-
};
|
|
208
|
+
#onAnchorClick;
|
|
208
209
|
/**
|
|
209
210
|
* @internal
|
|
210
211
|
*/
|
|
@@ -131,8 +131,8 @@ var AudioPlayer = class extends require_localized.Localized(require_vivid_elemen
|
|
|
131
131
|
get #sliderEl() {
|
|
132
132
|
return this.shadowRoot.querySelector(".slider");
|
|
133
133
|
}
|
|
134
|
-
#playerEl
|
|
135
|
-
#isProgrammaticSliderUpdate
|
|
134
|
+
#playerEl;
|
|
135
|
+
#isProgrammaticSliderUpdate;
|
|
136
136
|
constructor() {
|
|
137
137
|
super();
|
|
138
138
|
this.playButtonAriaLabel = null;
|
|
@@ -143,7 +143,65 @@ var AudioPlayer = class extends require_localized.Localized(require_vivid_elemen
|
|
|
143
143
|
this.disabled = false;
|
|
144
144
|
this.notime = false;
|
|
145
145
|
this.playbackRates = null;
|
|
146
|
+
this.#playerEl = new Audio();
|
|
147
|
+
this.#isProgrammaticSliderUpdate = false;
|
|
146
148
|
this.durationFallback = false;
|
|
149
|
+
this.#onPlay = () => {
|
|
150
|
+
if (!this.#sliderEl?.isDragging) this.$emit("play", void 0, { bubbles: false });
|
|
151
|
+
};
|
|
152
|
+
this.#onPause = () => {
|
|
153
|
+
if (!this.#sliderEl?.isDragging) this.$emit("pause", void 0, { bubbles: false });
|
|
154
|
+
};
|
|
155
|
+
this.#pausedChanged = (pausing) => {
|
|
156
|
+
if (pausing === this.paused) {
|
|
157
|
+
this.#setPausedState();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (!this.paused) this.#playerEl.pause();
|
|
161
|
+
else {
|
|
162
|
+
this.#updateProgress();
|
|
163
|
+
this.#playerEl.play();
|
|
164
|
+
}
|
|
165
|
+
this.#setPausedState();
|
|
166
|
+
};
|
|
167
|
+
this.#updateProgress = () => {
|
|
168
|
+
_microsoft_fast_element.Observable.notify(this, "currentTime");
|
|
169
|
+
const duration = this.duration;
|
|
170
|
+
const currentTime = this.currentTime;
|
|
171
|
+
const isValid = Number.isFinite(duration) && duration > 0 && Number.isFinite(currentTime) && currentTime >= 0;
|
|
172
|
+
const percent = isValid ? currentTime / duration * 100 : 0;
|
|
173
|
+
/* v8 ignore else -- @preserve */
|
|
174
|
+
if (this.#sliderEl) {
|
|
175
|
+
this.#isProgrammaticSliderUpdate = true;
|
|
176
|
+
this.#sliderEl.value = percent.toString();
|
|
177
|
+
this.#isProgrammaticSliderUpdate = false;
|
|
178
|
+
}
|
|
179
|
+
if (isValid && percent === 100) this.pause();
|
|
180
|
+
};
|
|
181
|
+
this.#updateTotalTime = () => {
|
|
182
|
+
_microsoft_fast_element.Observable.notify(this, "duration");
|
|
183
|
+
if (!Number.isFinite(this.#playerEl.duration) || this.#playerEl.duration <= 0) {
|
|
184
|
+
if (this.durationFallback) this.#fetchAndCacheAudioBuffer();
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
this.#updateCurrentTimeOnSliderChange = () => {
|
|
188
|
+
if (!this.paused && this.#sliderEl.isDragging) {
|
|
189
|
+
this.pause();
|
|
190
|
+
this.#dragInterval = window.setInterval(() => {
|
|
191
|
+
/* v8 ignore else -- @preserve */
|
|
192
|
+
if (!this.#sliderEl.isDragging || !this.isConnected) {
|
|
193
|
+
clearInterval(this.#dragInterval);
|
|
194
|
+
if (this.isConnected) this.play();
|
|
195
|
+
}
|
|
196
|
+
}, 0);
|
|
197
|
+
}
|
|
198
|
+
if (this.#isProgrammaticSliderUpdate) return;
|
|
199
|
+
/* v8 ignore else -- @preserve */
|
|
200
|
+
if (this.#playerEl) this.currentTime = this.duration * Number(this.#sliderEl.value) / 100;
|
|
201
|
+
};
|
|
202
|
+
this.#setPausedState = () => {
|
|
203
|
+
_microsoft_fast_element.Observable.notify(this, "paused");
|
|
204
|
+
};
|
|
147
205
|
}
|
|
148
206
|
connectedCallback() {
|
|
149
207
|
super.connectedCallback();
|
|
@@ -172,68 +230,19 @@ var AudioPlayer = class extends require_localized.Localized(require_vivid_elemen
|
|
|
172
230
|
pause() {
|
|
173
231
|
this.#pausedChanged(PAUSE);
|
|
174
232
|
}
|
|
175
|
-
#onPlay
|
|
176
|
-
|
|
177
|
-
};
|
|
178
|
-
#onPause = () => {
|
|
179
|
-
if (!this.#sliderEl?.isDragging) this.$emit("pause", void 0, { bubbles: false });
|
|
180
|
-
};
|
|
233
|
+
#onPlay;
|
|
234
|
+
#onPause;
|
|
181
235
|
#setSliderInteractionListeners(add = true) {
|
|
182
236
|
const action = add ? "addEventListener" : "removeEventListener";
|
|
183
237
|
/* v8 ignore else -- @preserve */
|
|
184
238
|
if (this.#sliderEl) this.#sliderEl[action]("change", this.#updateCurrentTimeOnSliderChange);
|
|
185
239
|
}
|
|
186
|
-
#pausedChanged
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
if (!this.paused) this.#playerEl.pause();
|
|
192
|
-
else {
|
|
193
|
-
this.#updateProgress();
|
|
194
|
-
this.#playerEl.play();
|
|
195
|
-
}
|
|
196
|
-
this.#setPausedState();
|
|
197
|
-
};
|
|
198
|
-
#updateProgress = () => {
|
|
199
|
-
_microsoft_fast_element.Observable.notify(this, "currentTime");
|
|
200
|
-
const duration = this.duration;
|
|
201
|
-
const currentTime = this.currentTime;
|
|
202
|
-
const isValid = Number.isFinite(duration) && duration > 0 && Number.isFinite(currentTime) && currentTime >= 0;
|
|
203
|
-
const percent = isValid ? currentTime / duration * 100 : 0;
|
|
204
|
-
/* v8 ignore else -- @preserve */
|
|
205
|
-
if (this.#sliderEl) {
|
|
206
|
-
this.#isProgrammaticSliderUpdate = true;
|
|
207
|
-
this.#sliderEl.value = percent.toString();
|
|
208
|
-
this.#isProgrammaticSliderUpdate = false;
|
|
209
|
-
}
|
|
210
|
-
if (isValid && percent === 100) this.pause();
|
|
211
|
-
};
|
|
212
|
-
#updateTotalTime = () => {
|
|
213
|
-
_microsoft_fast_element.Observable.notify(this, "duration");
|
|
214
|
-
if (!Number.isFinite(this.#playerEl.duration) || this.#playerEl.duration <= 0) {
|
|
215
|
-
if (this.durationFallback) this.#fetchAndCacheAudioBuffer();
|
|
216
|
-
}
|
|
217
|
-
};
|
|
240
|
+
#pausedChanged;
|
|
241
|
+
#updateProgress;
|
|
242
|
+
#updateTotalTime;
|
|
218
243
|
#dragInterval;
|
|
219
|
-
#updateCurrentTimeOnSliderChange
|
|
220
|
-
|
|
221
|
-
this.pause();
|
|
222
|
-
this.#dragInterval = window.setInterval(() => {
|
|
223
|
-
/* v8 ignore else -- @preserve */
|
|
224
|
-
if (!this.#sliderEl.isDragging || !this.isConnected) {
|
|
225
|
-
clearInterval(this.#dragInterval);
|
|
226
|
-
if (this.isConnected) this.play();
|
|
227
|
-
}
|
|
228
|
-
}, 0);
|
|
229
|
-
}
|
|
230
|
-
if (this.#isProgrammaticSliderUpdate) return;
|
|
231
|
-
/* v8 ignore else -- @preserve */
|
|
232
|
-
if (this.#playerEl) this.currentTime = this.duration * Number(this.#sliderEl.value) / 100;
|
|
233
|
-
};
|
|
234
|
-
#setPausedState = () => {
|
|
235
|
-
_microsoft_fast_element.Observable.notify(this, "paused");
|
|
236
|
-
};
|
|
244
|
+
#updateCurrentTimeOnSliderChange;
|
|
245
|
+
#setPausedState;
|
|
237
246
|
/**
|
|
238
247
|
* Skips the current time by the skipBy value
|
|
239
248
|
*
|