@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 { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { t as CheckableFormAssociated } from "./form-associated.js";
|
|
4
4
|
import { t as FormElement } from "./form-element.js";
|
|
@@ -6,7 +6,7 @@ import { t as WithErrorText } from "./with-error-text.js";
|
|
|
6
6
|
import { Updates, attr, html, observable, when } from "@microsoft/fast-element";
|
|
7
7
|
import { classNames, keySpace } from "@microsoft/fast-web-utilities";
|
|
8
8
|
//#region src/lib/radio/radio.scss?inline
|
|
9
|
-
var radio_default = ":host(:focus-visible){outline:none}:host([disabled]){cursor:not-allowed}.base.connotation-cta{--_connotation-color-primary:var(--vvd-radio-cta-primary,var(--vvd-color-cta-500));--_connotation-color-primary-text:var(--vvd-radio-cta-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-radio-cta-primary-increment,var(--vvd-color-cta-600));--_connotation-color-intermediate:var(--vvd-radio-cta-intermediate,var(--vvd-color-cta-500));--_connotation-color-firm:var(--vvd-radio-cta-firm,var(--vvd-color-cta-600));--_connotation-color-fierce:var(--vvd-radio-cta-fierce,var(--vvd-color-cta-700))}.base:not(.connotation-cta){--_connotation-color-primary:var(--vvd-radio-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-text:var(--vvd-radio-accent-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-radio-accent-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-intermediate:var(--vvd-radio-accent-intermediate,var(--vvd-color-neutral-500));--_connotation-color-firm:var(--vvd-radio-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-fierce:var(--vvd-radio-accent-fierce,var(--vvd-color-neutral-700))}.base{--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}@media (hover:hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.base:checked:where(:not(.disabled,:disabled)),.base.checked:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_connotation-color-primary-text);--_appearance-color-fill:var(--_connotation-color-primary);--_appearance-color-outline:var(--_connotation-color-primary)}@media (hover:hover){.base:checked:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-primary-text);--_appearance-color-fill:var(--_connotation-color-primary-increment);--_appearance-color-outline:var(--_connotation-color-primary-increment)}}.base.checked.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-primary-text);--_appearance-color-fill:var(--_connotation-color-primary-increment);--_appearance-color-outline:var(--_connotation-color-primary-increment)}.base:disabled,.base.disabled{--_appearance-color-text:var(--vvd-color-neutral-
|
|
9
|
+
var radio_default = ":host(:focus-visible){outline:none}:host([disabled]){cursor:not-allowed}.base.connotation-cta{--_connotation-color-primary:var(--vvd-radio-cta-primary,var(--vvd-color-cta-500));--_connotation-color-primary-text:var(--vvd-radio-cta-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-radio-cta-primary-increment,var(--vvd-color-cta-600));--_connotation-color-intermediate:var(--vvd-radio-cta-intermediate,var(--vvd-color-cta-500));--_connotation-color-firm:var(--vvd-radio-cta-firm,var(--vvd-color-cta-600));--_connotation-color-fierce:var(--vvd-radio-cta-fierce,var(--vvd-color-cta-700))}.base:not(.connotation-cta){--_connotation-color-primary:var(--vvd-radio-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-text:var(--vvd-radio-accent-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-radio-accent-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-intermediate:var(--vvd-radio-accent-intermediate,var(--vvd-color-neutral-500));--_connotation-color-firm:var(--vvd-radio-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-fierce:var(--vvd-radio-accent-fierce,var(--vvd-color-neutral-700))}.base{--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}@media (hover:hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.base:checked:where(:not(.disabled,:disabled)),.base.checked:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_connotation-color-primary-text);--_appearance-color-fill:var(--_connotation-color-primary);--_appearance-color-outline:var(--_connotation-color-primary)}@media (hover:hover){.base:checked:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-primary-text);--_appearance-color-fill:var(--_connotation-color-primary-increment);--_appearance-color-outline:var(--_connotation-color-primary-increment)}}.base.checked.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-primary-text);--_appearance-color-fill:var(--_connotation-color-primary-increment);--_appearance-color-outline:var(--_connotation-color-primary-increment)}.base:disabled,.base.disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.base.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:var(--vvd-color-neutral-400)}.base{cursor:pointer;align-items:center;gap:8px;display:inline-flex}@supports (user-select:none){.base{user-select:none}}.base.disabled{pointer-events:none}.control{block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20));box-shadow:inset 0 0 0 2px var(--_appearance-color-outline);inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20));border-radius:50%;flex-shrink:0;position:relative}.base:not(.checked) .control{background-color:var(--_appearance-color-fill)}.control:after{border-radius:inherit;background-color:var(--_appearance-color-outline);content:\"\";opacity:1;transition:opacity .2s;position:absolute;inset:5px}.base:not(.checked) .control:after{opacity:0}:host(:focus-visible) .control{--focus-stroke-gap-color:transparent;position:relative}:host(:focus-visible) .control:before{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));border-radius:var(--focus-border-radius,inherit);block-size:calc(100% + var(--focus-block-size-addition,4px));content:\"\";inline-size:calc(100% + var(--focus-block-size-addition,4px));display:block;position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)}label{color:var(--vvd-color-canvas-text);cursor:pointer;font:var(--vvd-typography-base)}";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/lib/radio/radio.ts
|
|
12
12
|
/**
|
|
@@ -51,6 +51,28 @@ var Radio = class extends WithErrorText(FormElement(CheckableFormAssociated(Vivi
|
|
|
51
51
|
return true;
|
|
52
52
|
};
|
|
53
53
|
this.proxy = document.createElement("input");
|
|
54
|
+
this.#validateValueMissingWithSiblings = () => {
|
|
55
|
+
const siblings = this.#radioSiblings;
|
|
56
|
+
const group = this.#radioGroup;
|
|
57
|
+
if (siblings && siblings.length > 1) {
|
|
58
|
+
if (siblings.some((x) => x.checked)) {
|
|
59
|
+
this.setValidity({ valueMissing: false });
|
|
60
|
+
this.errorValidationMessage = "";
|
|
61
|
+
if (group) group.errorValidationMessage = "";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
this.#syncSiblingsRequiredValidationStatus = () => {
|
|
66
|
+
if (this.elementInternals && !this.validity.valueMissing) {
|
|
67
|
+
const siblings = this.#radioSiblings;
|
|
68
|
+
const group = this.#radioGroup;
|
|
69
|
+
if (siblings && siblings.length > 1) siblings.forEach((x) => {
|
|
70
|
+
x.elementInternals.setValidity({ valueMissing: false });
|
|
71
|
+
x.errorValidationMessage = "";
|
|
72
|
+
if (group) group.errorValidationMessage = "";
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
54
76
|
this.proxy.setAttribute("type", "radio");
|
|
55
77
|
this.proxy.setAttribute("name", this.name);
|
|
56
78
|
this.checked = this.defaultChecked;
|
|
@@ -103,28 +125,8 @@ var Radio = class extends WithErrorText(FormElement(CheckableFormAssociated(Vivi
|
|
|
103
125
|
if (parentGroup) return parentGroup;
|
|
104
126
|
return null;
|
|
105
127
|
}
|
|
106
|
-
#validateValueMissingWithSiblings
|
|
107
|
-
|
|
108
|
-
const group = this.#radioGroup;
|
|
109
|
-
if (siblings && siblings.length > 1) {
|
|
110
|
-
if (siblings.some((x) => x.checked)) {
|
|
111
|
-
this.setValidity({ valueMissing: false });
|
|
112
|
-
this.errorValidationMessage = "";
|
|
113
|
-
if (group) group.errorValidationMessage = "";
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
#syncSiblingsRequiredValidationStatus = () => {
|
|
118
|
-
if (this.elementInternals && !this.validity.valueMissing) {
|
|
119
|
-
const siblings = this.#radioSiblings;
|
|
120
|
-
const group = this.#radioGroup;
|
|
121
|
-
if (siblings && siblings.length > 1) siblings.forEach((x) => {
|
|
122
|
-
x.elementInternals.setValidity({ valueMissing: false });
|
|
123
|
-
x.errorValidationMessage = "";
|
|
124
|
-
if (group) group.errorValidationMessage = "";
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
+
#validateValueMissingWithSiblings;
|
|
129
|
+
#syncSiblingsRequiredValidationStatus;
|
|
128
130
|
/**
|
|
129
131
|
* @internal
|
|
130
132
|
*/
|
|
@@ -26,7 +26,8 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
26
26
|
this.orientation = _microsoft_fast_web_utilities.Orientation.horizontal;
|
|
27
27
|
this.slottedRadioButtons = [];
|
|
28
28
|
this.radioErrorHandler = (e) => {
|
|
29
|
-
|
|
29
|
+
const radio = e.target;
|
|
30
|
+
this.errorValidationMessage = radio.errorValidationMessage || "";
|
|
30
31
|
};
|
|
31
32
|
this.radioChangeHandler = (e) => {
|
|
32
33
|
const changedRadio = e.target;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { n as delegateAria } from "./delegates-aria.js";
|
|
4
4
|
import { n as keyArrowRight$1, t as keyArrowLeft$1 } from "./key-codes.js";
|
|
@@ -25,7 +25,8 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
25
25
|
this.orientation = Orientation.horizontal;
|
|
26
26
|
this.slottedRadioButtons = [];
|
|
27
27
|
this.radioErrorHandler = (e) => {
|
|
28
|
-
|
|
28
|
+
const radio = e.target;
|
|
29
|
+
this.errorValidationMessage = radio.errorValidationMessage || "";
|
|
29
30
|
};
|
|
30
31
|
this.radioChangeHandler = (e) => {
|
|
31
32
|
const changedRadio = e.target;
|
|
@@ -41,6 +41,7 @@ var Direction = {
|
|
|
41
41
|
var RangeSlider = class extends require_localized.Localized(require_form_element.FormElement(require_form_associated.FormAssociated(require_vivid_element.VividElement))) {
|
|
42
42
|
constructor(..._args) {
|
|
43
43
|
super(..._args);
|
|
44
|
+
this.#isInternalValueUpdate = false;
|
|
44
45
|
this.start = "";
|
|
45
46
|
this.end = "";
|
|
46
47
|
this.min = 0;
|
|
@@ -62,8 +63,68 @@ var RangeSlider = class extends require_localized.Localized(require_form_element
|
|
|
62
63
|
this._startThumbCss = "";
|
|
63
64
|
this._endThumbCss = "";
|
|
64
65
|
this._selectedRangeCss = "";
|
|
66
|
+
this.#isNonVisibleFocus = false;
|
|
67
|
+
this.#onThumbFocus = (e) => {
|
|
68
|
+
if (!this.#isNonVisibleFocus) this._visiblyFocusedThumb = this.#getThumbIdFromEvent(e);
|
|
69
|
+
this.#isNonVisibleFocus = false;
|
|
70
|
+
};
|
|
71
|
+
this.#onThumbBlur = () => {
|
|
72
|
+
this._visiblyFocusedThumb = null;
|
|
73
|
+
};
|
|
74
|
+
this.#onVisibilityChange = () => {
|
|
75
|
+
if (document.hidden && (this.shadowRoot.activeElement === this._startThumbEl || this.shadowRoot.activeElement === this._endThumbEl)) this.#isNonVisibleFocus = true;
|
|
76
|
+
};
|
|
77
|
+
this.#onMouseOver = (e) => {
|
|
78
|
+
this._hoveredThumb = this.#getThumbIdFromEvent(e);
|
|
79
|
+
};
|
|
80
|
+
this.#onMouseOut = () => {
|
|
81
|
+
this._hoveredThumb = null;
|
|
82
|
+
};
|
|
83
|
+
this.#onThumbMousedown = (event) => {
|
|
84
|
+
if (this.disabled || event.defaultPrevented) return;
|
|
85
|
+
let target = event.target;
|
|
86
|
+
if (target === this._endThumbEl && this.startAsNumber === this.max && this.endAsNumber === this.max) target = this._startThumbEl;
|
|
87
|
+
this.#focusThumbNonVisibly(target);
|
|
88
|
+
this._draggingThumb = this.#getThumbId(target);
|
|
89
|
+
this.#registerDragHandlers();
|
|
90
|
+
};
|
|
91
|
+
this.#onThumbKeydown = (e) => {
|
|
92
|
+
const thumb = this.#getThumbIdFromEvent(e);
|
|
93
|
+
this._visiblyFocusedThumb = thumb;
|
|
94
|
+
if (e.key === _microsoft_fast_web_utilities.keyHome) {
|
|
95
|
+
e.preventDefault();
|
|
96
|
+
this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].min}` });
|
|
97
|
+
} else if (e.key === _microsoft_fast_web_utilities.keyEnd) {
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].max}` });
|
|
100
|
+
} else {
|
|
101
|
+
if (e.shiftKey) return;
|
|
102
|
+
switch (e.key) {
|
|
103
|
+
case require_key_codes.keyArrowRight:
|
|
104
|
+
case _microsoft_fast_web_utilities.keyArrowDown:
|
|
105
|
+
e.preventDefault();
|
|
106
|
+
this.#applyStep(thumb, Direction.Increment);
|
|
107
|
+
break;
|
|
108
|
+
case require_key_codes.keyArrowLeft:
|
|
109
|
+
case _microsoft_fast_web_utilities.keyArrowUp:
|
|
110
|
+
e.preventDefault();
|
|
111
|
+
this.#applyStep(thumb, Direction.Decrement);
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
this.#onDragMove = (e) => {
|
|
117
|
+
if (this.disabled || e.defaultPrevented || !this._draggingThumb) return;
|
|
118
|
+
const sourceEvent = "TouchEvent" in window && e instanceof TouchEvent ? e.touches[0] : e;
|
|
119
|
+
const value = this.#calculateValueFromMouseEvent(sourceEvent);
|
|
120
|
+
this.#updateValues({ [this._draggingThumb]: `${this.#roundToNearestStep(this._draggingThumb, value)}` });
|
|
121
|
+
};
|
|
122
|
+
this.#onDragEnd = () => {
|
|
123
|
+
this._draggingThumb = false;
|
|
124
|
+
this.#unregisterDragListeners();
|
|
125
|
+
};
|
|
65
126
|
}
|
|
66
|
-
#isInternalValueUpdate
|
|
127
|
+
#isInternalValueUpdate;
|
|
67
128
|
/**
|
|
68
129
|
* @internal
|
|
69
130
|
*/
|
|
@@ -239,7 +300,7 @@ var RangeSlider = class extends require_localized.Localized(require_form_element
|
|
|
239
300
|
#roundToNearestStep(thumb, value) {
|
|
240
301
|
return (0, _microsoft_fast_web_utilities.limit)(this.#thumbConstraints[thumb].min, this.#thumbConstraints[thumb].max, require_slider_template.roundToStepValue(value - this.min, this.step) + this.min);
|
|
241
302
|
}
|
|
242
|
-
#isNonVisibleFocus
|
|
303
|
+
#isNonVisibleFocus;
|
|
243
304
|
#focusThumbNonVisibly(thumb) {
|
|
244
305
|
this.#isNonVisibleFocus = true;
|
|
245
306
|
thumb.focus();
|
|
@@ -303,55 +364,13 @@ var RangeSlider = class extends require_localized.Localized(require_form_element
|
|
|
303
364
|
this.#focusThumbNonVisibly(this.#thumbs[thumb]);
|
|
304
365
|
this.#registerDragHandlers();
|
|
305
366
|
}
|
|
306
|
-
#onThumbFocus
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
#
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
#onVisibilityChange = () => {
|
|
314
|
-
if (document.hidden && (this.shadowRoot.activeElement === this._startThumbEl || this.shadowRoot.activeElement === this._endThumbEl)) this.#isNonVisibleFocus = true;
|
|
315
|
-
};
|
|
316
|
-
#onMouseOver = (e) => {
|
|
317
|
-
this._hoveredThumb = this.#getThumbIdFromEvent(e);
|
|
318
|
-
};
|
|
319
|
-
#onMouseOut = () => {
|
|
320
|
-
this._hoveredThumb = null;
|
|
321
|
-
};
|
|
322
|
-
#onThumbMousedown = (event) => {
|
|
323
|
-
if (this.disabled || event.defaultPrevented) return;
|
|
324
|
-
let target = event.target;
|
|
325
|
-
if (target === this._endThumbEl && this.startAsNumber === this.max && this.endAsNumber === this.max) target = this._startThumbEl;
|
|
326
|
-
this.#focusThumbNonVisibly(target);
|
|
327
|
-
this._draggingThumb = this.#getThumbId(target);
|
|
328
|
-
this.#registerDragHandlers();
|
|
329
|
-
};
|
|
330
|
-
#onThumbKeydown = (e) => {
|
|
331
|
-
const thumb = this.#getThumbIdFromEvent(e);
|
|
332
|
-
this._visiblyFocusedThumb = thumb;
|
|
333
|
-
if (e.key === _microsoft_fast_web_utilities.keyHome) {
|
|
334
|
-
e.preventDefault();
|
|
335
|
-
this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].min}` });
|
|
336
|
-
} else if (e.key === _microsoft_fast_web_utilities.keyEnd) {
|
|
337
|
-
e.preventDefault();
|
|
338
|
-
this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].max}` });
|
|
339
|
-
} else {
|
|
340
|
-
if (e.shiftKey) return;
|
|
341
|
-
switch (e.key) {
|
|
342
|
-
case require_key_codes.keyArrowRight:
|
|
343
|
-
case _microsoft_fast_web_utilities.keyArrowDown:
|
|
344
|
-
e.preventDefault();
|
|
345
|
-
this.#applyStep(thumb, Direction.Increment);
|
|
346
|
-
break;
|
|
347
|
-
case require_key_codes.keyArrowLeft:
|
|
348
|
-
case _microsoft_fast_web_utilities.keyArrowUp:
|
|
349
|
-
e.preventDefault();
|
|
350
|
-
this.#applyStep(thumb, Direction.Decrement);
|
|
351
|
-
break;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
};
|
|
367
|
+
#onThumbFocus;
|
|
368
|
+
#onThumbBlur;
|
|
369
|
+
#onVisibilityChange;
|
|
370
|
+
#onMouseOver;
|
|
371
|
+
#onMouseOut;
|
|
372
|
+
#onThumbMousedown;
|
|
373
|
+
#onThumbKeydown;
|
|
355
374
|
#registerDragHandlers() {
|
|
356
375
|
window.addEventListener("mousemove", this.#onDragMove, { passive: true });
|
|
357
376
|
window.addEventListener("touchmove", this.#onDragMove, { passive: true });
|
|
@@ -366,16 +385,8 @@ var RangeSlider = class extends require_localized.Localized(require_form_element
|
|
|
366
385
|
window.removeEventListener("touchmove", this.#onDragMove);
|
|
367
386
|
window.removeEventListener("touchend", this.#onDragEnd);
|
|
368
387
|
}
|
|
369
|
-
#onDragMove
|
|
370
|
-
|
|
371
|
-
const sourceEvent = "TouchEvent" in window && e instanceof TouchEvent ? e.touches[0] : e;
|
|
372
|
-
const value = this.#calculateValueFromMouseEvent(sourceEvent);
|
|
373
|
-
this.#updateValues({ [this._draggingThumb]: `${this.#roundToNearestStep(this._draggingThumb, value)}` });
|
|
374
|
-
};
|
|
375
|
-
#onDragEnd = () => {
|
|
376
|
-
this._draggingThumb = false;
|
|
377
|
-
this.#unregisterDragListeners();
|
|
378
|
-
};
|
|
388
|
+
#onDragMove;
|
|
389
|
+
#onDragEnd;
|
|
379
390
|
};
|
|
380
391
|
require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "start", void 0);
|
|
381
392
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { n as FormAssociated } from "./form-associated.js";
|
|
4
4
|
import { t as FormElement } from "./form-element.js";
|
|
@@ -40,6 +40,7 @@ var Direction$1 = {
|
|
|
40
40
|
var RangeSlider = class extends Localized(FormElement(FormAssociated(VividElement))) {
|
|
41
41
|
constructor(..._args) {
|
|
42
42
|
super(..._args);
|
|
43
|
+
this.#isInternalValueUpdate = false;
|
|
43
44
|
this.start = "";
|
|
44
45
|
this.end = "";
|
|
45
46
|
this.min = 0;
|
|
@@ -61,8 +62,68 @@ var RangeSlider = class extends Localized(FormElement(FormAssociated(VividElemen
|
|
|
61
62
|
this._startThumbCss = "";
|
|
62
63
|
this._endThumbCss = "";
|
|
63
64
|
this._selectedRangeCss = "";
|
|
65
|
+
this.#isNonVisibleFocus = false;
|
|
66
|
+
this.#onThumbFocus = (e) => {
|
|
67
|
+
if (!this.#isNonVisibleFocus) this._visiblyFocusedThumb = this.#getThumbIdFromEvent(e);
|
|
68
|
+
this.#isNonVisibleFocus = false;
|
|
69
|
+
};
|
|
70
|
+
this.#onThumbBlur = () => {
|
|
71
|
+
this._visiblyFocusedThumb = null;
|
|
72
|
+
};
|
|
73
|
+
this.#onVisibilityChange = () => {
|
|
74
|
+
if (document.hidden && (this.shadowRoot.activeElement === this._startThumbEl || this.shadowRoot.activeElement === this._endThumbEl)) this.#isNonVisibleFocus = true;
|
|
75
|
+
};
|
|
76
|
+
this.#onMouseOver = (e) => {
|
|
77
|
+
this._hoveredThumb = this.#getThumbIdFromEvent(e);
|
|
78
|
+
};
|
|
79
|
+
this.#onMouseOut = () => {
|
|
80
|
+
this._hoveredThumb = null;
|
|
81
|
+
};
|
|
82
|
+
this.#onThumbMousedown = (event) => {
|
|
83
|
+
if (this.disabled || event.defaultPrevented) return;
|
|
84
|
+
let target = event.target;
|
|
85
|
+
if (target === this._endThumbEl && this.startAsNumber === this.max && this.endAsNumber === this.max) target = this._startThumbEl;
|
|
86
|
+
this.#focusThumbNonVisibly(target);
|
|
87
|
+
this._draggingThumb = this.#getThumbId(target);
|
|
88
|
+
this.#registerDragHandlers();
|
|
89
|
+
};
|
|
90
|
+
this.#onThumbKeydown = (e) => {
|
|
91
|
+
const thumb = this.#getThumbIdFromEvent(e);
|
|
92
|
+
this._visiblyFocusedThumb = thumb;
|
|
93
|
+
if (e.key === keyHome) {
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].min}` });
|
|
96
|
+
} else if (e.key === keyEnd) {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].max}` });
|
|
99
|
+
} else {
|
|
100
|
+
if (e.shiftKey) return;
|
|
101
|
+
switch (e.key) {
|
|
102
|
+
case keyArrowRight$1:
|
|
103
|
+
case keyArrowDown:
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
this.#applyStep(thumb, Direction$1.Increment);
|
|
106
|
+
break;
|
|
107
|
+
case keyArrowLeft$1:
|
|
108
|
+
case keyArrowUp:
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
this.#applyStep(thumb, Direction$1.Decrement);
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
this.#onDragMove = (e) => {
|
|
116
|
+
if (this.disabled || e.defaultPrevented || !this._draggingThumb) return;
|
|
117
|
+
const sourceEvent = "TouchEvent" in window && e instanceof TouchEvent ? e.touches[0] : e;
|
|
118
|
+
const value = this.#calculateValueFromMouseEvent(sourceEvent);
|
|
119
|
+
this.#updateValues({ [this._draggingThumb]: `${this.#roundToNearestStep(this._draggingThumb, value)}` });
|
|
120
|
+
};
|
|
121
|
+
this.#onDragEnd = () => {
|
|
122
|
+
this._draggingThumb = false;
|
|
123
|
+
this.#unregisterDragListeners();
|
|
124
|
+
};
|
|
64
125
|
}
|
|
65
|
-
#isInternalValueUpdate
|
|
126
|
+
#isInternalValueUpdate;
|
|
66
127
|
/**
|
|
67
128
|
* @internal
|
|
68
129
|
*/
|
|
@@ -238,7 +299,7 @@ var RangeSlider = class extends Localized(FormElement(FormAssociated(VividElemen
|
|
|
238
299
|
#roundToNearestStep(thumb, value) {
|
|
239
300
|
return limit(this.#thumbConstraints[thumb].min, this.#thumbConstraints[thumb].max, roundToStepValue(value - this.min, this.step) + this.min);
|
|
240
301
|
}
|
|
241
|
-
#isNonVisibleFocus
|
|
302
|
+
#isNonVisibleFocus;
|
|
242
303
|
#focusThumbNonVisibly(thumb) {
|
|
243
304
|
this.#isNonVisibleFocus = true;
|
|
244
305
|
thumb.focus();
|
|
@@ -302,55 +363,13 @@ var RangeSlider = class extends Localized(FormElement(FormAssociated(VividElemen
|
|
|
302
363
|
this.#focusThumbNonVisibly(this.#thumbs[thumb]);
|
|
303
364
|
this.#registerDragHandlers();
|
|
304
365
|
}
|
|
305
|
-
#onThumbFocus
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
#
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
#onVisibilityChange = () => {
|
|
313
|
-
if (document.hidden && (this.shadowRoot.activeElement === this._startThumbEl || this.shadowRoot.activeElement === this._endThumbEl)) this.#isNonVisibleFocus = true;
|
|
314
|
-
};
|
|
315
|
-
#onMouseOver = (e) => {
|
|
316
|
-
this._hoveredThumb = this.#getThumbIdFromEvent(e);
|
|
317
|
-
};
|
|
318
|
-
#onMouseOut = () => {
|
|
319
|
-
this._hoveredThumb = null;
|
|
320
|
-
};
|
|
321
|
-
#onThumbMousedown = (event) => {
|
|
322
|
-
if (this.disabled || event.defaultPrevented) return;
|
|
323
|
-
let target = event.target;
|
|
324
|
-
if (target === this._endThumbEl && this.startAsNumber === this.max && this.endAsNumber === this.max) target = this._startThumbEl;
|
|
325
|
-
this.#focusThumbNonVisibly(target);
|
|
326
|
-
this._draggingThumb = this.#getThumbId(target);
|
|
327
|
-
this.#registerDragHandlers();
|
|
328
|
-
};
|
|
329
|
-
#onThumbKeydown = (e) => {
|
|
330
|
-
const thumb = this.#getThumbIdFromEvent(e);
|
|
331
|
-
this._visiblyFocusedThumb = thumb;
|
|
332
|
-
if (e.key === keyHome) {
|
|
333
|
-
e.preventDefault();
|
|
334
|
-
this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].min}` });
|
|
335
|
-
} else if (e.key === keyEnd) {
|
|
336
|
-
e.preventDefault();
|
|
337
|
-
this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].max}` });
|
|
338
|
-
} else {
|
|
339
|
-
if (e.shiftKey) return;
|
|
340
|
-
switch (e.key) {
|
|
341
|
-
case keyArrowRight$1:
|
|
342
|
-
case keyArrowDown:
|
|
343
|
-
e.preventDefault();
|
|
344
|
-
this.#applyStep(thumb, Direction$1.Increment);
|
|
345
|
-
break;
|
|
346
|
-
case keyArrowLeft$1:
|
|
347
|
-
case keyArrowUp:
|
|
348
|
-
e.preventDefault();
|
|
349
|
-
this.#applyStep(thumb, Direction$1.Decrement);
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
};
|
|
366
|
+
#onThumbFocus;
|
|
367
|
+
#onThumbBlur;
|
|
368
|
+
#onVisibilityChange;
|
|
369
|
+
#onMouseOver;
|
|
370
|
+
#onMouseOut;
|
|
371
|
+
#onThumbMousedown;
|
|
372
|
+
#onThumbKeydown;
|
|
354
373
|
#registerDragHandlers() {
|
|
355
374
|
window.addEventListener("mousemove", this.#onDragMove, { passive: true });
|
|
356
375
|
window.addEventListener("touchmove", this.#onDragMove, { passive: true });
|
|
@@ -365,16 +384,8 @@ var RangeSlider = class extends Localized(FormElement(FormAssociated(VividElemen
|
|
|
365
384
|
window.removeEventListener("touchmove", this.#onDragMove);
|
|
366
385
|
window.removeEventListener("touchend", this.#onDragEnd);
|
|
367
386
|
}
|
|
368
|
-
#onDragMove
|
|
369
|
-
|
|
370
|
-
const sourceEvent = "TouchEvent" in window && e instanceof TouchEvent ? e.touches[0] : e;
|
|
371
|
-
const value = this.#calculateValueFromMouseEvent(sourceEvent);
|
|
372
|
-
this.#updateValues({ [this._draggingThumb]: `${this.#roundToNearestStep(this._draggingThumb, value)}` });
|
|
373
|
-
};
|
|
374
|
-
#onDragEnd = () => {
|
|
375
|
-
this._draggingThumb = false;
|
|
376
|
-
this.#unregisterDragListeners();
|
|
377
|
-
};
|
|
387
|
+
#onDragMove;
|
|
388
|
+
#onDragEnd;
|
|
378
389
|
};
|
|
379
390
|
__decorate([observable], RangeSlider.prototype, "start", void 0);
|
|
380
391
|
__decorate([attr({
|
|
@@ -25,7 +25,7 @@ let prosemirror_dropcursor = require("prosemirror-dropcursor");
|
|
|
25
25
|
let prosemirror_gapcursor = require("prosemirror-gapcursor");
|
|
26
26
|
let prosemirror_history = require("prosemirror-history");
|
|
27
27
|
let dompurify = require("dompurify");
|
|
28
|
-
dompurify = require_chunk.__toESM(dompurify);
|
|
28
|
+
dompurify = require_chunk.__toESM(dompurify, 1);
|
|
29
29
|
let prosemirror_inputrules = require("prosemirror-inputrules");
|
|
30
30
|
let prosemirror_transform = require("prosemirror-transform");
|
|
31
31
|
let prosemirror_schema_basic = require("prosemirror-schema-basic");
|
|
@@ -193,7 +193,7 @@ require_decorate.__decorate([_microsoft_fast_element.observable], Popover.protot
|
|
|
193
193
|
require_decorate.__decorate([_microsoft_fast_element.volatile], Popover.prototype, "open", null);
|
|
194
194
|
var popoverDefinition = require_vivid_element.defineVividComponent("rich-text-editor-popover", Popover, popoverTemplate, [require_definition$2.popupDefinition], {});
|
|
195
195
|
//#endregion
|
|
196
|
-
//#region ../../node_modules/.pnpm/prosemirror-view@1.41.
|
|
196
|
+
//#region ../../node_modules/.pnpm/prosemirror-view@1.41.8/node_modules/prosemirror-view/style/prosemirror.css?inline
|
|
197
197
|
var prosemirror_default = ".ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:\"liga\" 0;position:relative}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror-hideselection ::selection{background:0 0}.ProseMirror-hideselection ::selection{background:0 0}.ProseMirror-hideselection{caret-color:#0000}.ProseMirror [draggable][contenteditable=false]{user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:\"\";pointer-events:none;border:2px solid #8cf;position:absolute;inset:-2px -2px -2px -32px}img.ProseMirror-separator{border:none!important;margin:0!important;display:inline!important}";
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region src/lib/rich-text-editor/rte/utils/default-textblock.ts
|
|
@@ -230,7 +230,7 @@ var FeatureState = class {
|
|
|
230
230
|
};
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region src/lib/rich-text-editor/rte/features/internal/core.style.scss?inline
|
|
233
|
-
var core_style_default = ".ProseMirror{padding:var(--editor-padding-block) var(--editor-padding-inline);outline:none;flex:1}.ProseMirror-selectednode{--focus-stroke-gap-color:transparent;--focus-border-radius:2px;outline:none;position:relative}.ProseMirror-selectednode:after{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));border-radius:var(--focus-border-radius,inherit);block-size:calc(100% + var(--focus-block-size-addition,4px));content:\"\";inline-size:calc(100% + var(--focus-block-size-addition,4px));display:block;position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)}";
|
|
233
|
+
var core_style_default = ".ProseMirror{padding:var(--editor-padding-block) var(--editor-padding-inline);outline:none;flex:1}.ProseMirror-selectednode{--focus-stroke-gap-color:transparent;--focus-border-radius:2px;outline:none;position:relative}.ProseMirror-selectednode:after{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));border-radius:var(--focus-border-radius,inherit);block-size:calc(100% + var(--focus-block-size-addition,4px));content:\"\";inline-size:calc(100% + var(--focus-block-size-addition,4px));display:block;position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)}.editor--disabled .ProseMirror{color:var(--vvd-color-neutral-300);cursor:not-allowed}";
|
|
234
234
|
//#endregion
|
|
235
235
|
//#region src/lib/rich-text-editor/rte/utils/ui.ts
|
|
236
236
|
var isPropBinding = (prop) => typeof prop === "function";
|
|
@@ -312,6 +312,7 @@ var createButton = (ctx, props) => {
|
|
|
312
312
|
const size = () => variant() === "toolbar" ? "super-condensed" : "condensed";
|
|
313
313
|
const appearanceInactive = () => variant() === "popover-primary" ? "outlined" : "ghost-light";
|
|
314
314
|
const appearance = () => ctx.evalProp(props.active) ? "filled" : appearanceInactive();
|
|
315
|
+
const connotation = () => ctx.evalProp(props.connotation) ?? (variant() === "toolbar-menu" && ctx.evalProp(props.active) ? "cta" : void 0);
|
|
315
316
|
const disabled = () => Boolean(ctx.evalProp(ctx.props.disabled) || ctx.evalProp(props.disabled));
|
|
316
317
|
const button = ctx.rte.createComponent(require_definition$1.Button);
|
|
317
318
|
ctx.bindToEl(button, {
|
|
@@ -320,8 +321,9 @@ var createButton = (ctx, props) => {
|
|
|
320
321
|
disabled,
|
|
321
322
|
icon: props.icon,
|
|
322
323
|
autofocus: props.autofocus,
|
|
323
|
-
connotation
|
|
324
|
-
[props.icon ? "ariaLabel" : "label"]: props.label
|
|
324
|
+
connotation,
|
|
325
|
+
[props.icon ? "ariaLabel" : "label"]: props.label,
|
|
326
|
+
ariaPressed: () => ctx.evalProp(props.active) ? "true" : null
|
|
325
327
|
}, [on("click", props.onClick, (onClick) => () => {
|
|
326
328
|
if (!onClick()) ctx.view.focus();
|
|
327
329
|
})]);
|
|
@@ -367,6 +369,7 @@ var createMenuItem = (ctx, props) => {
|
|
|
367
369
|
return item;
|
|
368
370
|
};
|
|
369
371
|
var createButtonGroup = (ctx, props) => createDiv(ctx, {
|
|
372
|
+
slot: props.slot,
|
|
370
373
|
className: "ui-button-group",
|
|
371
374
|
children: props.children
|
|
372
375
|
});
|
|
@@ -647,12 +650,14 @@ var RteCoreImpl = class extends require_slottable_request.RteFeatureImpl {
|
|
|
647
650
|
},
|
|
648
651
|
view: (view) => {
|
|
649
652
|
const popovers = view.dom.getRootNode().querySelector(".popovers");
|
|
650
|
-
const
|
|
651
|
-
|
|
653
|
+
const updateDisabled = () => {
|
|
654
|
+
const disabled = this.disabled.getValue(rte);
|
|
655
|
+
popovers.classList.toggle("popovers--disabled", disabled);
|
|
656
|
+
view.dom.parentElement.classList.toggle("editor--disabled", disabled);
|
|
652
657
|
};
|
|
653
|
-
|
|
658
|
+
updateDisabled();
|
|
654
659
|
return { update: () => {
|
|
655
|
-
|
|
660
|
+
updateDisabled();
|
|
656
661
|
} };
|
|
657
662
|
}
|
|
658
663
|
})),
|
|
@@ -1446,7 +1451,7 @@ var RteToolbarFeatureImpl = class extends require_slottable_request.RteFeatureIm
|
|
|
1446
1451
|
var RteToolbarFeature = require_slottable_request.featureFacade(RteToolbarFeatureImpl);
|
|
1447
1452
|
//#endregion
|
|
1448
1453
|
//#region src/lib/rich-text-editor/rte/features/placeholder.style.scss?inline
|
|
1449
|
-
var placeholder_style_default = ".placeholder{display:contents}.placeholder:before{color:var(--vvd-color-neutral-600);content:attr(data-placeholder);font-size:var(--placeholder-font-size,inherit);inset-inline:var(--editor-padding-inline);line-height:inherit;pointer-events:none;position:absolute}";
|
|
1454
|
+
var placeholder_style_default = ".placeholder{display:contents}.placeholder:before{color:var(--vvd-color-neutral-600);content:attr(data-placeholder);font-size:var(--placeholder-font-size,inherit);inset-inline:var(--editor-padding-inline);line-height:inherit;pointer-events:none;position:absolute}.editor--disabled .placeholder:before{color:var(--vvd-color-neutral-300)}";
|
|
1450
1455
|
//#endregion
|
|
1451
1456
|
//#region src/lib/rich-text-editor/rte/features/placeholder.ts
|
|
1452
1457
|
var RtePlaceholderFeatureImpl = class extends require_slottable_request.RteFeatureImpl {
|
|
@@ -2246,23 +2251,26 @@ var RteAlignmentFeatureImpl = class extends require_slottable_request.RteFeature
|
|
|
2246
2251
|
return alignments.find((a) => a.value === currentAlign)?.icon ?? "align-left-line";
|
|
2247
2252
|
}
|
|
2248
2253
|
}),
|
|
2249
|
-
children: [createButtonGroup(ctx, {
|
|
2250
|
-
icon: align.icon,
|
|
2251
|
-
label: () => ctx.rte.getLocale().richTextEditor.alignments[align.label],
|
|
2254
|
+
children: [createButtonGroup(ctx, {
|
|
2252
2255
|
slot: "header",
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
this.
|
|
2264
|
-
|
|
2265
|
-
|
|
2256
|
+
children: alignments.map((align, index) => createButton(ctx, {
|
|
2257
|
+
icon: align.icon,
|
|
2258
|
+
label: () => ctx.rte.getLocale().richTextEditor.alignments[align.label],
|
|
2259
|
+
noTooltip: true,
|
|
2260
|
+
variant: "toolbar-menu",
|
|
2261
|
+
autofocus: () => {
|
|
2262
|
+
const currentAlign = this.getAlignmentFromSelection(ctx.view.state);
|
|
2263
|
+
if ((currentAlign === "mixed" || currentAlign === null) && index === 0) return true;
|
|
2264
|
+
return align.value === currentAlign;
|
|
2265
|
+
},
|
|
2266
|
+
active: () => this.getAlignmentFromSelection(ctx.view.state) === align.value,
|
|
2267
|
+
disabled: () => this.getAlignmentFromSelection(ctx.view.state) === null,
|
|
2268
|
+
onClick: () => {
|
|
2269
|
+
const { state, dispatch } = ctx.view;
|
|
2270
|
+
this.setAlignment(align.value)(state, dispatch);
|
|
2271
|
+
}
|
|
2272
|
+
}))
|
|
2273
|
+
})]
|
|
2266
2274
|
})
|
|
2267
2275
|
}, 3)];
|
|
2268
2276
|
}
|