@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { n as visuallyHiddenDefinition, r as VisuallyHidden } from "./definition.js";
|
|
3
3
|
import { r as Icon, t as iconDefinition } from "./definition2.js";
|
|
4
4
|
import { t as __decorate } from "./decorate.js";
|
|
@@ -172,12 +172,33 @@ function makeSerializationNoop(type) {
|
|
|
172
172
|
type.prototype.toJSON = noop;
|
|
173
173
|
}
|
|
174
174
|
Object.freeze({
|
|
175
|
+
/**
|
|
176
|
+
* Not aspected.
|
|
177
|
+
*/
|
|
175
178
|
none: 0,
|
|
179
|
+
/**
|
|
180
|
+
* An attribute.
|
|
181
|
+
*/
|
|
176
182
|
attribute: 1,
|
|
183
|
+
/**
|
|
184
|
+
* A boolean attribute.
|
|
185
|
+
*/
|
|
177
186
|
booleanAttribute: 2,
|
|
187
|
+
/**
|
|
188
|
+
* A property.
|
|
189
|
+
*/
|
|
178
190
|
property: 3,
|
|
191
|
+
/**
|
|
192
|
+
* Content
|
|
193
|
+
*/
|
|
179
194
|
content: 4,
|
|
195
|
+
/**
|
|
196
|
+
* A token list.
|
|
197
|
+
*/
|
|
180
198
|
tokenList: 5,
|
|
199
|
+
/**
|
|
200
|
+
* An event.
|
|
201
|
+
*/
|
|
181
202
|
event: 6
|
|
182
203
|
});
|
|
183
204
|
var createHTML = (html) => html;
|
|
@@ -196,16 +217,43 @@ var fastPolicy = defaultPolicy;
|
|
|
196
217
|
* @public
|
|
197
218
|
*/
|
|
198
219
|
var DOM$1 = Object.freeze({
|
|
220
|
+
/**
|
|
221
|
+
* Gets the dom policy used by the templating system.
|
|
222
|
+
*/
|
|
199
223
|
get policy() {
|
|
200
224
|
return defaultPolicy;
|
|
201
225
|
},
|
|
226
|
+
/**
|
|
227
|
+
* Sets the dom policy used by the templating system.
|
|
228
|
+
* @param policy - The policy to set.
|
|
229
|
+
* @remarks
|
|
230
|
+
* This API can only be called once, for security reasons. It should be
|
|
231
|
+
* called by the application developer at the start of their program.
|
|
232
|
+
*/
|
|
202
233
|
setPolicy(value) {
|
|
203
234
|
if (defaultPolicy !== fastPolicy) throw FAST.error(1201);
|
|
204
235
|
defaultPolicy = value;
|
|
205
236
|
},
|
|
237
|
+
/**
|
|
238
|
+
* Sets an attribute value on an element.
|
|
239
|
+
* @param element - The element to set the attribute value on.
|
|
240
|
+
* @param attributeName - The attribute name to set.
|
|
241
|
+
* @param value - The value of the attribute to set.
|
|
242
|
+
* @remarks
|
|
243
|
+
* If the value is `null` or `undefined`, the attribute is removed, otherwise
|
|
244
|
+
* it is set to the provided value using the standard `setAttribute` API.
|
|
245
|
+
*/
|
|
206
246
|
setAttribute(element, attributeName, value) {
|
|
207
247
|
value === null || value === void 0 ? element.removeAttribute(attributeName) : element.setAttribute(attributeName, value);
|
|
208
248
|
},
|
|
249
|
+
/**
|
|
250
|
+
* Sets a boolean attribute value.
|
|
251
|
+
* @param element - The element to set the boolean attribute value on.
|
|
252
|
+
* @param attributeName - The attribute name to set.
|
|
253
|
+
* @param value - The value of the attribute to set.
|
|
254
|
+
* @remarks
|
|
255
|
+
* If the value is true, the attribute is added; otherwise it is removed.
|
|
256
|
+
*/
|
|
209
257
|
setBooleanAttribute(element, attributeName, value) {
|
|
210
258
|
value ? element.setAttribute(attributeName, "") : element.removeAttribute(attributeName);
|
|
211
259
|
}
|
|
@@ -403,7 +451,14 @@ var PropertyChangeNotifier = class {
|
|
|
403
451
|
* @public
|
|
404
452
|
*/
|
|
405
453
|
var SourceLifetime = Object.freeze({
|
|
454
|
+
/**
|
|
455
|
+
* The source to controller lifetime relationship is unknown.
|
|
456
|
+
*/
|
|
406
457
|
unknown: void 0,
|
|
458
|
+
/**
|
|
459
|
+
* The source and controller lifetimes are coupled to one another.
|
|
460
|
+
* They can/will be GC'd together.
|
|
461
|
+
*/
|
|
407
462
|
coupled: 1
|
|
408
463
|
});
|
|
409
464
|
FAST.getById(KernelServiceId.observable, () => {
|
|
@@ -541,19 +596,47 @@ FAST.getById(KernelServiceId.observable, () => {
|
|
|
541
596
|
}
|
|
542
597
|
makeSerializationNoop(ExpressionNotifierImplementation);
|
|
543
598
|
return Object.freeze({
|
|
599
|
+
/**
|
|
600
|
+
* @internal
|
|
601
|
+
* @param factory - The factory used to create array observers.
|
|
602
|
+
*/
|
|
544
603
|
setArrayObserverFactory(factory) {
|
|
545
604
|
createArrayObserver = factory;
|
|
546
605
|
},
|
|
606
|
+
/**
|
|
607
|
+
* Gets a notifier for an object or Array.
|
|
608
|
+
* @param source - The object or Array to get the notifier for.
|
|
609
|
+
*/
|
|
547
610
|
getNotifier,
|
|
611
|
+
/**
|
|
612
|
+
* Records a property change for a source object.
|
|
613
|
+
* @param source - The object to record the change against.
|
|
614
|
+
* @param propertyName - The property to track as changed.
|
|
615
|
+
*/
|
|
548
616
|
track(source, propertyName) {
|
|
549
617
|
watcher && watcher.watch(source, propertyName);
|
|
550
618
|
},
|
|
619
|
+
/**
|
|
620
|
+
* Notifies watchers that the currently executing property getter or function is volatile
|
|
621
|
+
* with respect to its observable dependencies.
|
|
622
|
+
*/
|
|
551
623
|
trackVolatile() {
|
|
552
624
|
watcher && (watcher.needsRefresh = true);
|
|
553
625
|
},
|
|
626
|
+
/**
|
|
627
|
+
* Notifies subscribers of a source object of changes.
|
|
628
|
+
* @param source - the object to notify of changes.
|
|
629
|
+
* @param args - The change args to pass to subscribers.
|
|
630
|
+
*/
|
|
554
631
|
notify(source, args) {
|
|
555
632
|
getNotifier(source).notify(args);
|
|
556
633
|
},
|
|
634
|
+
/**
|
|
635
|
+
* Defines an observable property on an object or prototype.
|
|
636
|
+
* @param target - The target object to define the observable on.
|
|
637
|
+
* @param nameOrAccessor - The name of the property to define as observable;
|
|
638
|
+
* or a custom accessor that specifies the property name and accessor implementation.
|
|
639
|
+
*/
|
|
557
640
|
defineProperty(target, nameOrAccessor) {
|
|
558
641
|
if (isString(nameOrAccessor)) nameOrAccessor = new DefaultObservableAccessor(nameOrAccessor);
|
|
559
642
|
getAccessors(target).push(nameOrAccessor);
|
|
@@ -567,10 +650,27 @@ FAST.getById(KernelServiceId.observable, () => {
|
|
|
567
650
|
}
|
|
568
651
|
});
|
|
569
652
|
},
|
|
653
|
+
/**
|
|
654
|
+
* Finds all the observable accessors defined on the target,
|
|
655
|
+
* including its prototype chain.
|
|
656
|
+
* @param target - The target object to search for accessor on.
|
|
657
|
+
*/
|
|
570
658
|
getAccessors,
|
|
659
|
+
/**
|
|
660
|
+
* Creates a {@link ExpressionNotifier} that can watch the
|
|
661
|
+
* provided {@link Expression} for changes.
|
|
662
|
+
* @param expression - The binding to observe.
|
|
663
|
+
* @param initialSubscriber - An initial subscriber to changes in the binding value.
|
|
664
|
+
* @param isVolatileBinding - Indicates whether the binding's dependency list must be re-evaluated on every value evaluation.
|
|
665
|
+
*/
|
|
571
666
|
binding(expression, initialSubscriber, isVolatileBinding = this.isVolatileBinding(expression)) {
|
|
572
667
|
return new ExpressionNotifierImplementation(expression, initialSubscriber, isVolatileBinding);
|
|
573
668
|
},
|
|
669
|
+
/**
|
|
670
|
+
* Determines whether a binding expression is volatile and needs to have its dependency list re-evaluated
|
|
671
|
+
* on every evaluation of the value.
|
|
672
|
+
* @param expression - The binding to inspect.
|
|
673
|
+
*/
|
|
574
674
|
isVolatileBinding(expression) {
|
|
575
675
|
return volatileRegex.test(expression.toString());
|
|
576
676
|
}
|
|
@@ -592,6 +692,9 @@ var contextEvent = FAST.getById(KernelServiceId.contextEvent, () => {
|
|
|
592
692
|
* @public
|
|
593
693
|
*/
|
|
594
694
|
var ExecutionContext$1 = Object.freeze({
|
|
695
|
+
/**
|
|
696
|
+
* A default execution context.
|
|
697
|
+
*/
|
|
595
698
|
default: {
|
|
596
699
|
index: 0,
|
|
597
700
|
length: 0,
|
|
@@ -605,9 +708,17 @@ var ExecutionContext$1 = Object.freeze({
|
|
|
605
708
|
return this.event.target;
|
|
606
709
|
}
|
|
607
710
|
},
|
|
711
|
+
/**
|
|
712
|
+
* Gets the current event.
|
|
713
|
+
* @returns An event object.
|
|
714
|
+
*/
|
|
608
715
|
getEvent() {
|
|
609
716
|
return contextEvent.get();
|
|
610
717
|
},
|
|
718
|
+
/**
|
|
719
|
+
* Sets the current event.
|
|
720
|
+
* @param event - An event object.
|
|
721
|
+
*/
|
|
611
722
|
setEvent(event) {
|
|
612
723
|
contextEvent.set(event);
|
|
613
724
|
}
|
|
@@ -622,11 +733,41 @@ var id = 0;
|
|
|
622
733
|
/** @internal */
|
|
623
734
|
var nextId = () => `${marker}-${++id}`;
|
|
624
735
|
Object.freeze({
|
|
736
|
+
/**
|
|
737
|
+
* Creates a placeholder string suitable for marking out a location *within*
|
|
738
|
+
* an attribute value or HTML content.
|
|
739
|
+
* @param index - The directive index to create the placeholder for.
|
|
740
|
+
* @remarks
|
|
741
|
+
* Used internally by binding directives.
|
|
742
|
+
*/
|
|
625
743
|
interpolation: (id) => `${interpolationStart}${id}${interpolationEnd}`,
|
|
744
|
+
/**
|
|
745
|
+
* Creates a placeholder that manifests itself as an attribute on an
|
|
746
|
+
* element.
|
|
747
|
+
* @param attributeName - The name of the custom attribute.
|
|
748
|
+
* @param index - The directive index to create the placeholder for.
|
|
749
|
+
* @remarks
|
|
750
|
+
* Used internally by attribute directives such as `ref`, `slotted`, and `children`.
|
|
751
|
+
*/
|
|
626
752
|
attribute: (id) => `${nextId()}="${interpolationStart}${id}${interpolationEnd}"`,
|
|
753
|
+
/**
|
|
754
|
+
* Creates a placeholder that manifests itself as a marker within the DOM structure.
|
|
755
|
+
* @param index - The directive index to create the placeholder for.
|
|
756
|
+
* @remarks
|
|
757
|
+
* Used internally by structural directives such as `repeat`.
|
|
758
|
+
*/
|
|
627
759
|
comment: (id) => `<!--${interpolationStart}${id}${interpolationEnd}-->`
|
|
628
760
|
});
|
|
629
|
-
Object.freeze({
|
|
761
|
+
Object.freeze({
|
|
762
|
+
/**
|
|
763
|
+
* Parses text content or HTML attribute content, separating out the static strings
|
|
764
|
+
* from the directives.
|
|
765
|
+
* @param value - The content or attribute string to parse.
|
|
766
|
+
* @param factories - A list of directives to search for in the string.
|
|
767
|
+
* @returns A heterogeneous array of static strings interspersed with
|
|
768
|
+
* directives or null if no directives are found in the string.
|
|
769
|
+
*/
|
|
770
|
+
parse(value, factories) {
|
|
630
771
|
const parts = value.split(interpolationStart);
|
|
631
772
|
if (parts.length === 1) return null;
|
|
632
773
|
const result = [];
|
|
@@ -651,7 +792,13 @@ Object.freeze({ parse(value, factories) {
|
|
|
651
792
|
* control ViewBehaviors.
|
|
652
793
|
* @public
|
|
653
794
|
*/
|
|
654
|
-
var ViewBehaviorOrchestrator = Object.freeze({
|
|
795
|
+
var ViewBehaviorOrchestrator = Object.freeze({
|
|
796
|
+
/**
|
|
797
|
+
* Creates a ViewBehaviorOrchestrator.
|
|
798
|
+
* @param source - The source to to associate behaviors with.
|
|
799
|
+
* @returns A ViewBehaviorOrchestrator.
|
|
800
|
+
*/
|
|
801
|
+
create(source) {
|
|
655
802
|
const behaviors = [];
|
|
656
803
|
const targets = {};
|
|
657
804
|
let unbindables = null;
|
|
@@ -1012,45 +1159,10 @@ var DataGrid = class DataGrid extends VividElement {
|
|
|
1012
1159
|
}
|
|
1013
1160
|
this._resetSelection(true);
|
|
1014
1161
|
}
|
|
1015
|
-
#handleKeypress
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
#
|
|
1019
|
-
if (target.getAttribute("role") !== "gridcell" || target.getAttribute("cell-type") !== "default") return;
|
|
1020
|
-
if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
|
|
1021
|
-
this.#handleCellSelection({
|
|
1022
|
-
target,
|
|
1023
|
-
ctrlKey,
|
|
1024
|
-
shiftKey,
|
|
1025
|
-
metaKey
|
|
1026
|
-
});
|
|
1027
|
-
return;
|
|
1028
|
-
}
|
|
1029
|
-
if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) this.#handleRowSelection({
|
|
1030
|
-
target,
|
|
1031
|
-
ctrlKey,
|
|
1032
|
-
shiftKey,
|
|
1033
|
-
metaKey
|
|
1034
|
-
});
|
|
1035
|
-
};
|
|
1036
|
-
#handleCellSelection = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1037
|
-
const cell = target;
|
|
1038
|
-
if (this.selectionMode === DataGridSelectionMode.multiCell && (ctrlKey || shiftKey || metaKey)) cell.selected = !this.#selectedCells.includes(cell);
|
|
1039
|
-
else {
|
|
1040
|
-
const cacheTargetSelection = cell.selected;
|
|
1041
|
-
this._resetSelection(true);
|
|
1042
|
-
cell.selected = !cacheTargetSelection;
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
|
-
#handleRowSelection = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1046
|
-
const row = target.parentNode;
|
|
1047
|
-
if (this.selectionMode === DataGridSelectionMode.multiRow && (ctrlKey || shiftKey || metaKey)) row.selected = !this.#selectedRows.includes(row);
|
|
1048
|
-
else {
|
|
1049
|
-
const cacheTargetSelection = row.selected;
|
|
1050
|
-
this._resetSelection(true);
|
|
1051
|
-
row.selected = !cacheTargetSelection;
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1162
|
+
#handleKeypress;
|
|
1163
|
+
#handleClick;
|
|
1164
|
+
#handleCellSelection;
|
|
1165
|
+
#handleRowSelection;
|
|
1054
1166
|
constructor() {
|
|
1055
1167
|
super();
|
|
1056
1168
|
this.noTabbing = false;
|
|
@@ -1117,6 +1229,52 @@ var DataGrid = class DataGrid extends VividElement {
|
|
|
1117
1229
|
this.rowindexUpdateQueued = false;
|
|
1118
1230
|
this.columnDefinitionsStale = false;
|
|
1119
1231
|
};
|
|
1232
|
+
this.#handleKeypress = (e) => {
|
|
1233
|
+
if (e.key === "Enter" || e.key === " ") this.#handleClick(e);
|
|
1234
|
+
};
|
|
1235
|
+
this.#handleClick = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1236
|
+
if (target.getAttribute("role") !== "gridcell" || target.getAttribute("cell-type") !== "default") return;
|
|
1237
|
+
if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
|
|
1238
|
+
this.#handleCellSelection({
|
|
1239
|
+
target,
|
|
1240
|
+
ctrlKey,
|
|
1241
|
+
shiftKey,
|
|
1242
|
+
metaKey
|
|
1243
|
+
});
|
|
1244
|
+
return;
|
|
1245
|
+
}
|
|
1246
|
+
if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) this.#handleRowSelection({
|
|
1247
|
+
target,
|
|
1248
|
+
ctrlKey,
|
|
1249
|
+
shiftKey,
|
|
1250
|
+
metaKey
|
|
1251
|
+
});
|
|
1252
|
+
};
|
|
1253
|
+
this.#handleCellSelection = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1254
|
+
const cell = target;
|
|
1255
|
+
if (this.selectionMode === DataGridSelectionMode.multiCell && (ctrlKey || shiftKey || metaKey)) cell.selected = !this.#selectedCells.includes(cell);
|
|
1256
|
+
else {
|
|
1257
|
+
const cacheTargetSelection = cell.selected;
|
|
1258
|
+
this._resetSelection(true);
|
|
1259
|
+
cell.selected = !cacheTargetSelection;
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1262
|
+
this.#handleRowSelection = ({ target, ctrlKey, shiftKey, metaKey }) => {
|
|
1263
|
+
const row = target.parentNode;
|
|
1264
|
+
if (this.selectionMode === DataGridSelectionMode.multiRow && (ctrlKey || shiftKey || metaKey)) row.selected = !this.#selectedRows.includes(row);
|
|
1265
|
+
else {
|
|
1266
|
+
const cacheTargetSelection = row.selected;
|
|
1267
|
+
this._resetSelection(true);
|
|
1268
|
+
row.selected = !cacheTargetSelection;
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
1271
|
+
this.#changeHandler = { handleChange(dataGrid, propertyName) {
|
|
1272
|
+
/* v8 ignore else -- @preserve */
|
|
1273
|
+
if (propertyName === "columnDefinitions") {
|
|
1274
|
+
/* v8 ignore else -- @preserve */
|
|
1275
|
+
if (dataGrid.$fastController.isConnected) dataGrid.toggleGeneratedHeader();
|
|
1276
|
+
}
|
|
1277
|
+
} };
|
|
1120
1278
|
this._resetSelection = (clear = false) => {
|
|
1121
1279
|
const cells = Array.from(this.querySelectorAll("[role=\"gridcell\"], [cell-type=\"default\"]"));
|
|
1122
1280
|
const rows = Array.from(this.querySelectorAll("[role=\"row\"], [row-type=\"default\"]"));
|
|
@@ -1148,13 +1306,7 @@ var DataGrid = class DataGrid extends VividElement {
|
|
|
1148
1306
|
this.addEventListener("click", this.#handleClick);
|
|
1149
1307
|
this.addEventListener("keydown", this.#handleKeypress);
|
|
1150
1308
|
}
|
|
1151
|
-
#changeHandler
|
|
1152
|
-
/* v8 ignore else -- @preserve */
|
|
1153
|
-
if (propertyName === "columnDefinitions") {
|
|
1154
|
-
/* v8 ignore else -- @preserve */
|
|
1155
|
-
if (dataGrid.$fastController.isConnected) dataGrid.toggleGeneratedHeader();
|
|
1156
|
-
}
|
|
1157
|
-
} };
|
|
1309
|
+
#changeHandler;
|
|
1158
1310
|
static generateColumns(rowData) {
|
|
1159
1311
|
return Object.keys(rowData).map((property, index) => {
|
|
1160
1312
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, 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 { t as DelegatesAria } from "./delegates-aria.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent } from "./vivid-element.js";
|
|
2
2
|
import { n as applyHostSemantics } from "./host-semantics.js";
|
|
3
3
|
import { n as DividerRole, t as Divider } from "./divider.js";
|
|
4
4
|
import { html } from "@microsoft/fast-element";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent } from "./vivid-element.js";
|
|
2
2
|
import { n as visuallyHiddenDefinition } from "./definition.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
4
|
import { t as buttonDefinition } from "./definition7.js";
|
|
@@ -53,6 +53,7 @@ var DateRangePicker = class extends require_calendar_picker_template.MinMaxCalen
|
|
|
53
53
|
super(..._args);
|
|
54
54
|
this.initialStart = "";
|
|
55
55
|
this.initialEnd = "";
|
|
56
|
+
this.#isInternalValueUpdate = false;
|
|
56
57
|
this.start = "";
|
|
57
58
|
this.end = "";
|
|
58
59
|
this.setFormValue = (value, state) => {
|
|
@@ -81,7 +82,7 @@ var DateRangePicker = class extends require_calendar_picker_template.MinMaxCalen
|
|
|
81
82
|
this.dirtyValue = false;
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
#isInternalValueUpdate
|
|
85
|
+
#isInternalValueUpdate;
|
|
85
86
|
/**
|
|
86
87
|
* @internal
|
|
87
88
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent } from "./vivid-element.js";
|
|
2
2
|
import { n as visuallyHiddenDefinition } from "./definition.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
4
|
import { t as buttonDefinition } from "./definition7.js";
|
|
@@ -52,6 +52,7 @@ var DateRangePicker = class extends MinMaxCalendarPicker(CalendarPicker(PickerFi
|
|
|
52
52
|
super(..._args);
|
|
53
53
|
this.initialStart = "";
|
|
54
54
|
this.initialEnd = "";
|
|
55
|
+
this.#isInternalValueUpdate = false;
|
|
55
56
|
this.start = "";
|
|
56
57
|
this.end = "";
|
|
57
58
|
this.setFormValue = (value, state) => {
|
|
@@ -80,7 +81,7 @@ var DateRangePicker = class extends MinMaxCalendarPicker(CalendarPicker(PickerFi
|
|
|
80
81
|
this.dirtyValue = false;
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
|
-
#isInternalValueUpdate
|
|
84
|
+
#isInternalValueUpdate;
|
|
84
85
|
/**
|
|
85
86
|
* @internal
|
|
86
87
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent } from "./vivid-element.js";
|
|
2
2
|
import { n as visuallyHiddenDefinition } from "./definition.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
4
|
import { t as buttonDefinition } from "./definition7.js";
|
|
@@ -13,7 +13,13 @@ var accordion_default = ".base{box-sizing:border-box;flex-direction:column;displ
|
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
var AccordionExpandMode$1 = {
|
|
16
|
+
/**
|
|
17
|
+
* Designates only a single AccordionItem can be open a time.
|
|
18
|
+
*/
|
|
16
19
|
single: "single",
|
|
20
|
+
/**
|
|
21
|
+
* Designates multiple AccordionItems can be open simultaneously.
|
|
22
|
+
*/
|
|
17
23
|
multi: "multi"
|
|
18
24
|
};
|
|
19
25
|
/**
|
package/unbundled/definition4.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 { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { r as AccordionItem, t as accordionItemDefinition } from "./definition3.js";
|
|
4
4
|
import { attr, elements, html, observable, slotted } from "@microsoft/fast-element";
|
|
@@ -12,7 +12,13 @@ var accordion_default = ".base{box-sizing:border-box;flex-direction:column;displ
|
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
14
|
var AccordionExpandMode$1 = {
|
|
15
|
+
/**
|
|
16
|
+
* Designates only a single AccordionItem can be open a time.
|
|
17
|
+
*/
|
|
15
18
|
single: "single",
|
|
19
|
+
/**
|
|
20
|
+
* Designates multiple AccordionItems can be open simultaneously.
|
|
21
|
+
*/
|
|
16
22
|
multi: "multi"
|
|
17
23
|
};
|
|
18
24
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { n as visuallyHiddenDefinition, r as VisuallyHidden } from "./definition.js";
|
|
3
3
|
import { r as Icon, t as iconDefinition } from "./definition2.js";
|
|
4
4
|
import { t as __decorate } from "./decorate.js";
|
|
@@ -45,6 +45,15 @@ var Dialog = class extends require_localized.Localized(require_delegates_aria.De
|
|
|
45
45
|
this.modal = false;
|
|
46
46
|
this.scrollableBody = false;
|
|
47
47
|
this._openedAsModal = false;
|
|
48
|
+
this.#handleScrimClick = (event) => {
|
|
49
|
+
if (event.target !== this.#dialog || !this.#isDismissibleVia("light-dismiss")) return;
|
|
50
|
+
const rect = this.#dialog.getBoundingClientRect();
|
|
51
|
+
if (!(rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width)) this._handleCloseRequest();
|
|
52
|
+
};
|
|
53
|
+
this.#handleInternalFormSubmit = (event) => {
|
|
54
|
+
if (event.target.method !== "dialog") return;
|
|
55
|
+
this.open = false;
|
|
56
|
+
};
|
|
48
57
|
}
|
|
49
58
|
/**
|
|
50
59
|
* @internal
|
|
@@ -97,15 +106,8 @@ var Dialog = class extends require_localized.Localized(require_delegates_aria.De
|
|
|
97
106
|
case "light-dismiss": return !this.noLightDismiss;
|
|
98
107
|
}
|
|
99
108
|
}
|
|
100
|
-
#handleScrimClick
|
|
101
|
-
|
|
102
|
-
const rect = this.#dialog.getBoundingClientRect();
|
|
103
|
-
if (!(rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width)) this._handleCloseRequest();
|
|
104
|
-
};
|
|
105
|
-
#handleInternalFormSubmit = (event) => {
|
|
106
|
-
if (event.target.method !== "dialog") return;
|
|
107
|
-
this.open = false;
|
|
108
|
-
};
|
|
109
|
+
#handleScrimClick;
|
|
110
|
+
#handleInternalFormSubmit;
|
|
109
111
|
/**
|
|
110
112
|
* @internal
|
|
111
113
|
*/
|
|
@@ -206,7 +208,9 @@ function headline() {
|
|
|
206
208
|
`;
|
|
207
209
|
}
|
|
208
210
|
function subtitle() {
|
|
209
|
-
return _microsoft_fast_element.html`
|
|
211
|
+
return _microsoft_fast_element.html`
|
|
212
|
+
<h3 class="subtitle" id="dialog-subtitle">${(x) => x.subtitle}</h3>
|
|
213
|
+
`;
|
|
210
214
|
}
|
|
211
215
|
function renderHeaderText() {
|
|
212
216
|
return _microsoft_fast_element.html`
|
|
@@ -230,21 +234,22 @@ var DialogTemplate = (context) => {
|
|
|
230
234
|
return _microsoft_fast_element.html`
|
|
231
235
|
<${elevationTag} dp="8" not-relative>
|
|
232
236
|
<dialog class="${getClasses}"
|
|
237
|
+
|
|
233
238
|
@keydown="${(x, c) => x._onKeyDown(c.event)}"
|
|
234
239
|
@cancel="${(_, c) => c.event.preventDefault()}"
|
|
235
240
|
${require_delegates_aria.delegateAria({ ariaModal: (x) => String(x._openedAsModal) })}
|
|
236
|
-
aria-labelledby="${(x) => x.headline ? "dialog-headline" : null}"
|
|
241
|
+
aria-labelledby="${(x) => x.headline || x.subtitle ? "dialog-headline dialog-subtitle" : null}"
|
|
237
242
|
>
|
|
238
243
|
<slot name="main">
|
|
239
244
|
<div class="main-wrapper">
|
|
240
245
|
<div class="header ${(x) => x.subtitle ? "border" : ""}">
|
|
246
|
+
${(0, _microsoft_fast_element.when)((x) => x._showDismissButton, renderDismissButton(buttonTag))}
|
|
241
247
|
<slot name="graphic">
|
|
242
248
|
${(0, _microsoft_fast_element.when)((x) => x.icon, icon(iconTag))}
|
|
243
249
|
</slot>
|
|
244
250
|
${(0, _microsoft_fast_element.when)((x) => x.headline && x.subtitle, renderHeaderText())}
|
|
245
251
|
${(0, _microsoft_fast_element.when)((x) => x.headline && !x.subtitle, headline())}
|
|
246
252
|
${(0, _microsoft_fast_element.when)((x) => x.subtitle && !x.headline, subtitle())}
|
|
247
|
-
${(0, _microsoft_fast_element.when)((x) => x._showDismissButton, renderDismissButton(buttonTag))}
|
|
248
253
|
</div>
|
|
249
254
|
<div class="body ${(x) => x.fullWidthBody ? "full-width" : ""}" >
|
|
250
255
|
<slot name="body" ${(0, _microsoft_fast_element.slotted)("bodySlottedContent")}></slot>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, 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 { n as delegateAria, t as DelegatesAria } from "./delegates-aria.js";
|
|
@@ -44,6 +44,15 @@ var Dialog = class extends Localized(DelegatesAria(VividElement)) {
|
|
|
44
44
|
this.modal = false;
|
|
45
45
|
this.scrollableBody = false;
|
|
46
46
|
this._openedAsModal = false;
|
|
47
|
+
this.#handleScrimClick = (event) => {
|
|
48
|
+
if (event.target !== this.#dialog || !this.#isDismissibleVia("light-dismiss")) return;
|
|
49
|
+
const rect = this.#dialog.getBoundingClientRect();
|
|
50
|
+
if (!(rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width)) this._handleCloseRequest();
|
|
51
|
+
};
|
|
52
|
+
this.#handleInternalFormSubmit = (event) => {
|
|
53
|
+
if (event.target.method !== "dialog") return;
|
|
54
|
+
this.open = false;
|
|
55
|
+
};
|
|
47
56
|
}
|
|
48
57
|
/**
|
|
49
58
|
* @internal
|
|
@@ -96,15 +105,8 @@ var Dialog = class extends Localized(DelegatesAria(VividElement)) {
|
|
|
96
105
|
case "light-dismiss": return !this.noLightDismiss;
|
|
97
106
|
}
|
|
98
107
|
}
|
|
99
|
-
#handleScrimClick
|
|
100
|
-
|
|
101
|
-
const rect = this.#dialog.getBoundingClientRect();
|
|
102
|
-
if (!(rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width)) this._handleCloseRequest();
|
|
103
|
-
};
|
|
104
|
-
#handleInternalFormSubmit = (event) => {
|
|
105
|
-
if (event.target.method !== "dialog") return;
|
|
106
|
-
this.open = false;
|
|
107
|
-
};
|
|
108
|
+
#handleScrimClick;
|
|
109
|
+
#handleInternalFormSubmit;
|
|
108
110
|
/**
|
|
109
111
|
* @internal
|
|
110
112
|
*/
|
|
@@ -205,7 +207,9 @@ function headline() {
|
|
|
205
207
|
`;
|
|
206
208
|
}
|
|
207
209
|
function subtitle() {
|
|
208
|
-
return html`
|
|
210
|
+
return html`
|
|
211
|
+
<h3 class="subtitle" id="dialog-subtitle">${(x) => x.subtitle}</h3>
|
|
212
|
+
`;
|
|
209
213
|
}
|
|
210
214
|
function renderHeaderText() {
|
|
211
215
|
return html`
|
|
@@ -229,21 +233,22 @@ var DialogTemplate = (context) => {
|
|
|
229
233
|
return html`
|
|
230
234
|
<${elevationTag} dp="8" not-relative>
|
|
231
235
|
<dialog class="${getClasses}"
|
|
236
|
+
|
|
232
237
|
@keydown="${(x, c) => x._onKeyDown(c.event)}"
|
|
233
238
|
@cancel="${(_, c) => c.event.preventDefault()}"
|
|
234
239
|
${delegateAria({ ariaModal: (x) => String(x._openedAsModal) })}
|
|
235
|
-
aria-labelledby="${(x) => x.headline ? "dialog-headline" : null}"
|
|
240
|
+
aria-labelledby="${(x) => x.headline || x.subtitle ? "dialog-headline dialog-subtitle" : null}"
|
|
236
241
|
>
|
|
237
242
|
<slot name="main">
|
|
238
243
|
<div class="main-wrapper">
|
|
239
244
|
<div class="header ${(x) => x.subtitle ? "border" : ""}">
|
|
245
|
+
${when((x) => x._showDismissButton, renderDismissButton(buttonTag))}
|
|
240
246
|
<slot name="graphic">
|
|
241
247
|
${when((x) => x.icon, icon(iconTag))}
|
|
242
248
|
</slot>
|
|
243
249
|
${when((x) => x.headline && x.subtitle, renderHeaderText())}
|
|
244
250
|
${when((x) => x.headline && !x.subtitle, headline())}
|
|
245
251
|
${when((x) => x.subtitle && !x.headline, subtitle())}
|
|
246
|
-
${when((x) => x._showDismissButton, renderDismissButton(buttonTag))}
|
|
247
252
|
</div>
|
|
248
253
|
<div class="body ${(x) => x.fullWidthBody ? "full-width" : ""}" >
|
|
249
254
|
<slot name="body" ${slotted("bodySlottedContent")}></slot>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, 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 { attr, html, observable, slotted, when } from "@microsoft/fast-element";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent } from "./vivid-element.js";
|
|
2
2
|
import { t as iconDefinition } from "./definition2.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
4
|
import { a as affixIconTemplateFactory, i as IconWrapper, n as AffixIconWithTrailing } from "./affix.js";
|
|
@@ -101,6 +101,9 @@ var FilePicker = class extends require_with_contextual_help.WithContextualHelp(r
|
|
|
101
101
|
super.setFormValue(value, state);
|
|
102
102
|
};
|
|
103
103
|
this._customValidationError = null;
|
|
104
|
+
this.#customValidationChangeHandler = { handleChange: () => {
|
|
105
|
+
this._customValidationError = this.#customValidationChangeObserver.observe(this, _microsoft_fast_element.ExecutionContext.default);
|
|
106
|
+
} };
|
|
104
107
|
this._dragHover = false;
|
|
105
108
|
this._allFiles = [];
|
|
106
109
|
}
|
|
@@ -147,9 +150,7 @@ var FilePicker = class extends require_with_contextual_help.WithContextualHelp(r
|
|
|
147
150
|
if (this.proxy) this.proxy.setCustomValidity(this._customValidationError ?? "");
|
|
148
151
|
this.validate();
|
|
149
152
|
}
|
|
150
|
-
#customValidationChangeHandler
|
|
151
|
-
this._customValidationError = this.#customValidationChangeObserver.observe(this, _microsoft_fast_element.ExecutionContext.default);
|
|
152
|
-
} };
|
|
153
|
+
#customValidationChangeHandler;
|
|
153
154
|
#customValidationChangeObserver;
|
|
154
155
|
#startObservingCustomValidation() {
|
|
155
156
|
this.#customValidationChangeObserver = _microsoft_fast_element.Observable.binding(() => this.#getCustomValidationError(), this.#customValidationChangeHandler, true);
|