@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
|
@@ -173,12 +173,33 @@ function makeSerializationNoop(type) {
|
|
|
173
173
|
type.prototype.toJSON = noop;
|
|
174
174
|
}
|
|
175
175
|
Object.freeze({
|
|
176
|
+
/**
|
|
177
|
+
* Not aspected.
|
|
178
|
+
*/
|
|
176
179
|
none: 0,
|
|
180
|
+
/**
|
|
181
|
+
* An attribute.
|
|
182
|
+
*/
|
|
177
183
|
attribute: 1,
|
|
184
|
+
/**
|
|
185
|
+
* A boolean attribute.
|
|
186
|
+
*/
|
|
178
187
|
booleanAttribute: 2,
|
|
188
|
+
/**
|
|
189
|
+
* A property.
|
|
190
|
+
*/
|
|
179
191
|
property: 3,
|
|
192
|
+
/**
|
|
193
|
+
* Content
|
|
194
|
+
*/
|
|
180
195
|
content: 4,
|
|
196
|
+
/**
|
|
197
|
+
* A token list.
|
|
198
|
+
*/
|
|
181
199
|
tokenList: 5,
|
|
200
|
+
/**
|
|
201
|
+
* An event.
|
|
202
|
+
*/
|
|
182
203
|
event: 6
|
|
183
204
|
});
|
|
184
205
|
var createHTML = (html) => html;
|
|
@@ -197,16 +218,43 @@ var fastPolicy = defaultPolicy;
|
|
|
197
218
|
* @public
|
|
198
219
|
*/
|
|
199
220
|
var DOM = Object.freeze({
|
|
221
|
+
/**
|
|
222
|
+
* Gets the dom policy used by the templating system.
|
|
223
|
+
*/
|
|
200
224
|
get policy() {
|
|
201
225
|
return defaultPolicy;
|
|
202
226
|
},
|
|
227
|
+
/**
|
|
228
|
+
* Sets the dom policy used by the templating system.
|
|
229
|
+
* @param policy - The policy to set.
|
|
230
|
+
* @remarks
|
|
231
|
+
* This API can only be called once, for security reasons. It should be
|
|
232
|
+
* called by the application developer at the start of their program.
|
|
233
|
+
*/
|
|
203
234
|
setPolicy(value) {
|
|
204
235
|
if (defaultPolicy !== fastPolicy) throw FAST.error(1201);
|
|
205
236
|
defaultPolicy = value;
|
|
206
237
|
},
|
|
238
|
+
/**
|
|
239
|
+
* Sets an attribute value on an element.
|
|
240
|
+
* @param element - The element to set the attribute value on.
|
|
241
|
+
* @param attributeName - The attribute name to set.
|
|
242
|
+
* @param value - The value of the attribute to set.
|
|
243
|
+
* @remarks
|
|
244
|
+
* If the value is `null` or `undefined`, the attribute is removed, otherwise
|
|
245
|
+
* it is set to the provided value using the standard `setAttribute` API.
|
|
246
|
+
*/
|
|
207
247
|
setAttribute(element, attributeName, value) {
|
|
208
248
|
value === null || value === void 0 ? element.removeAttribute(attributeName) : element.setAttribute(attributeName, value);
|
|
209
249
|
},
|
|
250
|
+
/**
|
|
251
|
+
* Sets a boolean attribute value.
|
|
252
|
+
* @param element - The element to set the boolean attribute value on.
|
|
253
|
+
* @param attributeName - The attribute name to set.
|
|
254
|
+
* @param value - The value of the attribute to set.
|
|
255
|
+
* @remarks
|
|
256
|
+
* If the value is true, the attribute is added; otherwise it is removed.
|
|
257
|
+
*/
|
|
210
258
|
setBooleanAttribute(element, attributeName, value) {
|
|
211
259
|
value ? element.setAttribute(attributeName, "") : element.removeAttribute(attributeName);
|
|
212
260
|
}
|
|
@@ -404,7 +452,14 @@ var PropertyChangeNotifier = class {
|
|
|
404
452
|
* @public
|
|
405
453
|
*/
|
|
406
454
|
var SourceLifetime = Object.freeze({
|
|
455
|
+
/**
|
|
456
|
+
* The source to controller lifetime relationship is unknown.
|
|
457
|
+
*/
|
|
407
458
|
unknown: void 0,
|
|
459
|
+
/**
|
|
460
|
+
* The source and controller lifetimes are coupled to one another.
|
|
461
|
+
* They can/will be GC'd together.
|
|
462
|
+
*/
|
|
408
463
|
coupled: 1
|
|
409
464
|
});
|
|
410
465
|
FAST.getById(KernelServiceId.observable, () => {
|
|
@@ -542,19 +597,47 @@ FAST.getById(KernelServiceId.observable, () => {
|
|
|
542
597
|
}
|
|
543
598
|
makeSerializationNoop(ExpressionNotifierImplementation);
|
|
544
599
|
return Object.freeze({
|
|
600
|
+
/**
|
|
601
|
+
* @internal
|
|
602
|
+
* @param factory - The factory used to create array observers.
|
|
603
|
+
*/
|
|
545
604
|
setArrayObserverFactory(factory) {
|
|
546
605
|
createArrayObserver = factory;
|
|
547
606
|
},
|
|
607
|
+
/**
|
|
608
|
+
* Gets a notifier for an object or Array.
|
|
609
|
+
* @param source - The object or Array to get the notifier for.
|
|
610
|
+
*/
|
|
548
611
|
getNotifier,
|
|
612
|
+
/**
|
|
613
|
+
* Records a property change for a source object.
|
|
614
|
+
* @param source - The object to record the change against.
|
|
615
|
+
* @param propertyName - The property to track as changed.
|
|
616
|
+
*/
|
|
549
617
|
track(source, propertyName) {
|
|
550
618
|
watcher && watcher.watch(source, propertyName);
|
|
551
619
|
},
|
|
620
|
+
/**
|
|
621
|
+
* Notifies watchers that the currently executing property getter or function is volatile
|
|
622
|
+
* with respect to its observable dependencies.
|
|
623
|
+
*/
|
|
552
624
|
trackVolatile() {
|
|
553
625
|
watcher && (watcher.needsRefresh = true);
|
|
554
626
|
},
|
|
627
|
+
/**
|
|
628
|
+
* Notifies subscribers of a source object of changes.
|
|
629
|
+
* @param source - the object to notify of changes.
|
|
630
|
+
* @param args - The change args to pass to subscribers.
|
|
631
|
+
*/
|
|
555
632
|
notify(source, args) {
|
|
556
633
|
getNotifier(source).notify(args);
|
|
557
634
|
},
|
|
635
|
+
/**
|
|
636
|
+
* Defines an observable property on an object or prototype.
|
|
637
|
+
* @param target - The target object to define the observable on.
|
|
638
|
+
* @param nameOrAccessor - The name of the property to define as observable;
|
|
639
|
+
* or a custom accessor that specifies the property name and accessor implementation.
|
|
640
|
+
*/
|
|
558
641
|
defineProperty(target, nameOrAccessor) {
|
|
559
642
|
if (isString(nameOrAccessor)) nameOrAccessor = new DefaultObservableAccessor(nameOrAccessor);
|
|
560
643
|
getAccessors(target).push(nameOrAccessor);
|
|
@@ -568,10 +651,27 @@ FAST.getById(KernelServiceId.observable, () => {
|
|
|
568
651
|
}
|
|
569
652
|
});
|
|
570
653
|
},
|
|
654
|
+
/**
|
|
655
|
+
* Finds all the observable accessors defined on the target,
|
|
656
|
+
* including its prototype chain.
|
|
657
|
+
* @param target - The target object to search for accessor on.
|
|
658
|
+
*/
|
|
571
659
|
getAccessors,
|
|
660
|
+
/**
|
|
661
|
+
* Creates a {@link ExpressionNotifier} that can watch the
|
|
662
|
+
* provided {@link Expression} for changes.
|
|
663
|
+
* @param expression - The binding to observe.
|
|
664
|
+
* @param initialSubscriber - An initial subscriber to changes in the binding value.
|
|
665
|
+
* @param isVolatileBinding - Indicates whether the binding's dependency list must be re-evaluated on every value evaluation.
|
|
666
|
+
*/
|
|
572
667
|
binding(expression, initialSubscriber, isVolatileBinding = this.isVolatileBinding(expression)) {
|
|
573
668
|
return new ExpressionNotifierImplementation(expression, initialSubscriber, isVolatileBinding);
|
|
574
669
|
},
|
|
670
|
+
/**
|
|
671
|
+
* Determines whether a binding expression is volatile and needs to have its dependency list re-evaluated
|
|
672
|
+
* on every evaluation of the value.
|
|
673
|
+
* @param expression - The binding to inspect.
|
|
674
|
+
*/
|
|
575
675
|
isVolatileBinding(expression) {
|
|
576
676
|
return volatileRegex.test(expression.toString());
|
|
577
677
|
}
|
|
@@ -593,6 +693,9 @@ var contextEvent = FAST.getById(KernelServiceId.contextEvent, () => {
|
|
|
593
693
|
* @public
|
|
594
694
|
*/
|
|
595
695
|
var ExecutionContext = Object.freeze({
|
|
696
|
+
/**
|
|
697
|
+
* A default execution context.
|
|
698
|
+
*/
|
|
596
699
|
default: {
|
|
597
700
|
index: 0,
|
|
598
701
|
length: 0,
|
|
@@ -606,9 +709,17 @@ var ExecutionContext = Object.freeze({
|
|
|
606
709
|
return this.event.target;
|
|
607
710
|
}
|
|
608
711
|
},
|
|
712
|
+
/**
|
|
713
|
+
* Gets the current event.
|
|
714
|
+
* @returns An event object.
|
|
715
|
+
*/
|
|
609
716
|
getEvent() {
|
|
610
717
|
return contextEvent.get();
|
|
611
718
|
},
|
|
719
|
+
/**
|
|
720
|
+
* Sets the current event.
|
|
721
|
+
* @param event - An event object.
|
|
722
|
+
*/
|
|
612
723
|
setEvent(event) {
|
|
613
724
|
contextEvent.set(event);
|
|
614
725
|
}
|
|
@@ -623,11 +734,41 @@ var id = 0;
|
|
|
623
734
|
/** @internal */
|
|
624
735
|
var nextId = () => `${marker}-${++id}`;
|
|
625
736
|
Object.freeze({
|
|
737
|
+
/**
|
|
738
|
+
* Creates a placeholder string suitable for marking out a location *within*
|
|
739
|
+
* an attribute value or HTML content.
|
|
740
|
+
* @param index - The directive index to create the placeholder for.
|
|
741
|
+
* @remarks
|
|
742
|
+
* Used internally by binding directives.
|
|
743
|
+
*/
|
|
626
744
|
interpolation: (id) => `${interpolationStart}${id}${interpolationEnd}`,
|
|
745
|
+
/**
|
|
746
|
+
* Creates a placeholder that manifests itself as an attribute on an
|
|
747
|
+
* element.
|
|
748
|
+
* @param attributeName - The name of the custom attribute.
|
|
749
|
+
* @param index - The directive index to create the placeholder for.
|
|
750
|
+
* @remarks
|
|
751
|
+
* Used internally by attribute directives such as `ref`, `slotted`, and `children`.
|
|
752
|
+
*/
|
|
627
753
|
attribute: (id) => `${nextId()}="${interpolationStart}${id}${interpolationEnd}"`,
|
|
754
|
+
/**
|
|
755
|
+
* Creates a placeholder that manifests itself as a marker within the DOM structure.
|
|
756
|
+
* @param index - The directive index to create the placeholder for.
|
|
757
|
+
* @remarks
|
|
758
|
+
* Used internally by structural directives such as `repeat`.
|
|
759
|
+
*/
|
|
628
760
|
comment: (id) => `<!--${interpolationStart}${id}${interpolationEnd}-->`
|
|
629
761
|
});
|
|
630
|
-
Object.freeze({
|
|
762
|
+
Object.freeze({
|
|
763
|
+
/**
|
|
764
|
+
* Parses text content or HTML attribute content, separating out the static strings
|
|
765
|
+
* from the directives.
|
|
766
|
+
* @param value - The content or attribute string to parse.
|
|
767
|
+
* @param factories - A list of directives to search for in the string.
|
|
768
|
+
* @returns A heterogeneous array of static strings interspersed with
|
|
769
|
+
* directives or null if no directives are found in the string.
|
|
770
|
+
*/
|
|
771
|
+
parse(value, factories) {
|
|
631
772
|
const parts = value.split(interpolationStart);
|
|
632
773
|
if (parts.length === 1) return null;
|
|
633
774
|
const result = [];
|
|
@@ -652,7 +793,13 @@ Object.freeze({ parse(value, factories) {
|
|
|
652
793
|
* control ViewBehaviors.
|
|
653
794
|
* @public
|
|
654
795
|
*/
|
|
655
|
-
var ViewBehaviorOrchestrator = Object.freeze({
|
|
796
|
+
var ViewBehaviorOrchestrator = Object.freeze({
|
|
797
|
+
/**
|
|
798
|
+
* Creates a ViewBehaviorOrchestrator.
|
|
799
|
+
* @param source - The source to to associate behaviors with.
|
|
800
|
+
* @returns A ViewBehaviorOrchestrator.
|
|
801
|
+
*/
|
|
802
|
+
create(source) {
|
|
656
803
|
const behaviors = [];
|
|
657
804
|
const targets = {};
|
|
658
805
|
let unbindables = null;
|
|
@@ -1013,45 +1160,10 @@ var DataGrid = class DataGrid extends require_vivid_element.VividElement {
|
|
|
1013
1160
|
}
|
|
1014
1161
|
this._resetSelection(true);
|
|
1015
1162
|
}
|
|
1016
|
-
#handleKeypress
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
#
|
|
1020
|
-
if (target.getAttribute("role") !== "gridcell" || target.getAttribute("cell-type") !== "default") return;
|
|
1021
|
-
if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
|
|
1022
|
-
this.#handleCellSelection({
|
|
1023
|
-
target,
|
|
1024
|
-
ctrlKey,
|
|
1025
|
-
shiftKey,
|
|
1026
|
-
metaKey
|
|
1027
|
-
});
|
|
1028
|
-
return;
|
|
1029
|
-
}
|
|
1030
|
-
if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) this.#handleRowSelection({
|
|
1031
|
-
target,
|
|
1032
|
-
ctrlKey,
|
|
1033
|
-
shiftKey,
|
|
1034
|
-
metaKey
|
|
1035
|
-
});
|
|
1036
|
-
};
|
|
1037
|
-
#handleCellSelection = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1038
|
-
const cell = target;
|
|
1039
|
-
if (this.selectionMode === DataGridSelectionMode.multiCell && (ctrlKey || shiftKey || metaKey)) cell.selected = !this.#selectedCells.includes(cell);
|
|
1040
|
-
else {
|
|
1041
|
-
const cacheTargetSelection = cell.selected;
|
|
1042
|
-
this._resetSelection(true);
|
|
1043
|
-
cell.selected = !cacheTargetSelection;
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
|
-
#handleRowSelection = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1047
|
-
const row = target.parentNode;
|
|
1048
|
-
if (this.selectionMode === DataGridSelectionMode.multiRow && (ctrlKey || shiftKey || metaKey)) row.selected = !this.#selectedRows.includes(row);
|
|
1049
|
-
else {
|
|
1050
|
-
const cacheTargetSelection = row.selected;
|
|
1051
|
-
this._resetSelection(true);
|
|
1052
|
-
row.selected = !cacheTargetSelection;
|
|
1053
|
-
}
|
|
1054
|
-
};
|
|
1163
|
+
#handleKeypress;
|
|
1164
|
+
#handleClick;
|
|
1165
|
+
#handleCellSelection;
|
|
1166
|
+
#handleRowSelection;
|
|
1055
1167
|
constructor() {
|
|
1056
1168
|
super();
|
|
1057
1169
|
this.noTabbing = false;
|
|
@@ -1118,6 +1230,52 @@ var DataGrid = class DataGrid extends require_vivid_element.VividElement {
|
|
|
1118
1230
|
this.rowindexUpdateQueued = false;
|
|
1119
1231
|
this.columnDefinitionsStale = false;
|
|
1120
1232
|
};
|
|
1233
|
+
this.#handleKeypress = (e) => {
|
|
1234
|
+
if (e.key === "Enter" || e.key === " ") this.#handleClick(e);
|
|
1235
|
+
};
|
|
1236
|
+
this.#handleClick = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1237
|
+
if (target.getAttribute("role") !== "gridcell" || target.getAttribute("cell-type") !== "default") return;
|
|
1238
|
+
if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
|
|
1239
|
+
this.#handleCellSelection({
|
|
1240
|
+
target,
|
|
1241
|
+
ctrlKey,
|
|
1242
|
+
shiftKey,
|
|
1243
|
+
metaKey
|
|
1244
|
+
});
|
|
1245
|
+
return;
|
|
1246
|
+
}
|
|
1247
|
+
if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) this.#handleRowSelection({
|
|
1248
|
+
target,
|
|
1249
|
+
ctrlKey,
|
|
1250
|
+
shiftKey,
|
|
1251
|
+
metaKey
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
this.#handleCellSelection = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1255
|
+
const cell = target;
|
|
1256
|
+
if (this.selectionMode === DataGridSelectionMode.multiCell && (ctrlKey || shiftKey || metaKey)) cell.selected = !this.#selectedCells.includes(cell);
|
|
1257
|
+
else {
|
|
1258
|
+
const cacheTargetSelection = cell.selected;
|
|
1259
|
+
this._resetSelection(true);
|
|
1260
|
+
cell.selected = !cacheTargetSelection;
|
|
1261
|
+
}
|
|
1262
|
+
};
|
|
1263
|
+
this.#handleRowSelection = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1264
|
+
const row = target.parentNode;
|
|
1265
|
+
if (this.selectionMode === DataGridSelectionMode.multiRow && (ctrlKey || shiftKey || metaKey)) row.selected = !this.#selectedRows.includes(row);
|
|
1266
|
+
else {
|
|
1267
|
+
const cacheTargetSelection = row.selected;
|
|
1268
|
+
this._resetSelection(true);
|
|
1269
|
+
row.selected = !cacheTargetSelection;
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1272
|
+
this.#changeHandler = { handleChange(dataGrid, propertyName) {
|
|
1273
|
+
/* v8 ignore else -- @preserve */
|
|
1274
|
+
if (propertyName === "columnDefinitions") {
|
|
1275
|
+
/* v8 ignore else -- @preserve */
|
|
1276
|
+
if (dataGrid.$fastController.isConnected) dataGrid.toggleGeneratedHeader();
|
|
1277
|
+
}
|
|
1278
|
+
} };
|
|
1121
1279
|
this._resetSelection = (clear = false) => {
|
|
1122
1280
|
const cells = Array.from(this.querySelectorAll("[role=\"gridcell\"], [cell-type=\"default\"]"));
|
|
1123
1281
|
const rows = Array.from(this.querySelectorAll("[role=\"row\"], [row-type=\"default\"]"));
|
|
@@ -1149,13 +1307,7 @@ var DataGrid = class DataGrid extends require_vivid_element.VividElement {
|
|
|
1149
1307
|
this.addEventListener("click", this.#handleClick);
|
|
1150
1308
|
this.addEventListener("keydown", this.#handleKeypress);
|
|
1151
1309
|
}
|
|
1152
|
-
#changeHandler
|
|
1153
|
-
/* v8 ignore else -- @preserve */
|
|
1154
|
-
if (propertyName === "columnDefinitions") {
|
|
1155
|
-
/* v8 ignore else -- @preserve */
|
|
1156
|
-
if (dataGrid.$fastController.isConnected) dataGrid.toggleGeneratedHeader();
|
|
1157
|
-
}
|
|
1158
|
-
} };
|
|
1310
|
+
#changeHandler;
|
|
1159
1311
|
static generateColumns(rowData) {
|
|
1160
1312
|
return Object.keys(rowData).map((property, index) => {
|
|
1161
1313
|
return {
|