@vonage/vivid 5.23.0 → 5.23.1
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/action-group/index.cjs +1 -1
- package/action-group/index.js +1 -1
- package/alert/definition.cjs +1 -1
- package/alert/definition.js +1 -1
- package/alert/index.cjs +7 -7
- package/alert/index.js +13 -14
- package/audio-player/definition.cjs +1 -1
- package/audio-player/definition.js +1 -1
- package/audio-player/index.cjs +18 -16
- package/audio-player/index.js +21 -19
- package/avatar/definition.cjs +1 -1
- package/avatar/definition.js +1 -1
- package/avatar/index.cjs +4 -4
- package/avatar/index.js +6 -6
- package/badge/definition.cjs +1 -1
- package/badge/definition.js +1 -1
- package/banner/definition.cjs +1 -1
- package/banner/definition.js +1 -1
- package/banner/index.cjs +3 -3
- package/banner/index.js +8 -8
- package/breadcrumb/definition.cjs +1 -1
- package/breadcrumb/definition.js +1 -1
- package/breadcrumb-item/definition.cjs +1 -1
- package/breadcrumb-item/definition.js +1 -1
- package/breadcrumb-item/index.cjs +2 -2
- package/breadcrumb-item/index.js +5 -5
- package/bundled/affix.cjs +1 -1
- package/bundled/affix.js +1 -1
- package/bundled/base-color-picker.cjs +2 -2
- package/bundled/base-color-picker.js +5 -5
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +1 -1
- package/bundled/definition11.cjs +4 -4
- package/bundled/definition11.js +5 -5
- package/bundled/definition12.cjs +9 -7
- package/bundled/definition12.js +28 -26
- package/bundled/definition13.cjs +9 -7
- package/bundled/definition13.js +16 -15
- package/bundled/definition15.cjs +6 -6
- package/bundled/definition15.js +17 -17
- package/bundled/definition16.cjs +4 -2
- package/bundled/definition16.js +8 -6
- package/bundled/definition17.cjs +8 -6
- package/bundled/definition17.js +15 -14
- package/bundled/definition18.cjs +23 -23
- package/bundled/definition18.js +51 -52
- package/bundled/definition19.cjs +3 -1
- package/bundled/definition19.js +3 -1
- package/bundled/definition2.cjs +1 -13
- package/bundled/definition2.js +181 -48
- package/bundled/definition20.cjs +11 -9
- package/bundled/definition20.js +25 -23
- package/bundled/definition21.cjs +6 -6
- package/bundled/definition21.js +7 -8
- package/bundled/definition22.cjs +5 -3
- package/bundled/definition22.js +13 -11
- package/bundled/definition23.cjs +1 -1
- package/bundled/definition23.js +2 -2
- package/bundled/definition24.cjs +10 -10
- package/bundled/definition24.js +12 -12
- package/bundled/definition3.cjs +13 -1
- package/bundled/definition3.js +48 -181
- package/bundled/definition4.cjs +9 -7
- package/bundled/definition4.js +18 -16
- package/bundled/definition5.cjs +5 -5
- package/bundled/definition5.js +9 -9
- package/bundled/definition6.cjs +3 -3
- package/bundled/definition6.js +16 -16
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +1 -1
- package/bundled/definition8.cjs +7 -7
- package/bundled/definition8.js +9 -7
- package/bundled/definition9.cjs +4 -4
- package/bundled/definition9.js +12 -12
- package/bundled/mixins.cjs +3 -3
- package/bundled/mixins.js +5 -5
- package/bundled/numberConverter.cjs +1 -1
- package/bundled/numberConverter.js +36 -1
- package/bundled/picker-field.template.cjs +13 -13
- package/bundled/picker-field.template.js +16 -16
- package/bundled/slider.template.cjs +8 -8
- package/bundled/slider.template.js +9 -9
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +3 -3
- package/bundled/time-selection-picker.template.js +9 -9
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +1 -1
- package/button/definition.cjs +1 -1
- package/button/definition.js +1 -1
- package/calendar/definition.cjs +1 -1
- package/calendar/definition.js +1 -1
- package/calendar/index.cjs +9 -9
- package/calendar/index.js +7 -7
- package/calendar-event/definition.cjs +1 -1
- package/calendar-event/definition.js +1 -1
- package/calendar-event/index.cjs +2 -2
- package/calendar-event/index.js +2 -2
- package/card/definition.cjs +1 -1
- package/card/definition.js +1 -1
- package/card/index.cjs +3 -3
- package/card/index.js +6 -6
- package/color-picker/index.cjs +10 -10
- package/color-picker/index.js +52 -52
- package/combobox/index.cjs +14 -11
- package/combobox/index.js +38 -36
- package/custom-elements.json +4235 -4883
- package/data-grid/index.cjs +8 -6
- package/data-grid/index.js +20 -18
- package/dial-pad/index.cjs +22 -20
- package/dial-pad/index.js +36 -34
- package/dialog/index.cjs +14 -14
- package/dialog/index.js +17 -18
- package/elevation/definition.cjs +1 -1
- package/elevation/definition.js +1 -1
- package/empty-state/index.cjs +4 -4
- package/empty-state/index.js +7 -11
- package/fab/index.cjs +4 -4
- package/fab/index.js +9 -13
- package/file-picker/index.cjs +8 -8
- package/file-picker/index.js +19 -19
- package/flag/index.cjs +5 -5
- package/flag/index.js +8 -12
- package/header/index.cjs +5 -5
- package/header/index.js +4 -8
- package/icon/index.cjs +1 -1
- package/icon/index.js +1 -1
- package/index.cjs +15 -14
- package/index.js +16 -16
- package/kbd-key/index.cjs +3 -3
- package/kbd-key/index.js +2 -6
- package/layout/index.cjs +3 -1
- package/layout/index.js +3 -1
- package/lib/accordion/variations.browser-spec.d.ts +1 -0
- package/lib/accordion-item/variations.browser-spec.d.ts +1 -0
- package/lib/action-group/variations.browser-spec.d.ts +1 -0
- package/lib/alert/variations.browser-spec.d.ts +1 -0
- package/lib/audio-player/variations.browser-spec.d.ts +1 -0
- package/lib/avatar/variations.browser-spec.d.ts +1 -0
- package/lib/badge/badge.d.ts +4 -4
- package/lib/badge/badge.template.d.ts +1 -2
- package/lib/badge/variations.browser-spec.d.ts +1 -0
- package/lib/banner/variations.browser-spec.d.ts +1 -0
- package/lib/breadcrumb-item/variations.browser-spec.d.ts +1 -0
- package/lib/button/variations.browser-spec.d.ts +1 -0
- package/lib/calendar/variations.browser-spec.d.ts +1 -0
- package/lib/calendar-event/variations.browser-spec.d.ts +1 -0
- package/lib/card/card.d.ts +4 -4
- package/lib/card/variations.browser-spec.d.ts +1 -0
- package/lib/checkbox/variations.browser-spec.d.ts +1 -0
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/variations.browser-spec.d.ts +1 -0
- package/lib/combobox/variations.browser-spec.d.ts +1 -0
- package/lib/contextual-help/variations.browser-spec.d.ts +1 -0
- package/lib/country/variations.browser-spec.d.ts +1 -0
- package/lib/data-grid/variations.browser-spec.d.ts +1 -0
- package/lib/date-picker/variations.browser-spec.d.ts +1 -0
- package/lib/date-range-picker/variations.browser-spec.d.ts +1 -0
- package/lib/date-time-picker/variations.browser-spec.d.ts +1 -0
- package/lib/dial-pad/variations.browser-spec.d.ts +1 -0
- package/lib/dialog/variations.browser-spec.d.ts +1 -0
- package/lib/divider/variations.browser-spec.d.ts +1 -0
- package/lib/empty-state/variations.browser-spec.d.ts +1 -0
- package/lib/fab/fab.d.ts +5 -5
- package/lib/fab/variations.browser-spec.d.ts +1 -0
- package/lib/file-picker/variations.browser-spec.d.ts +1 -0
- package/lib/flag/variations.browser-spec.d.ts +1 -0
- package/lib/header/variations.browser-spec.d.ts +1 -0
- package/lib/icon/variations.browser-spec.d.ts +1 -0
- package/lib/kbd-key/variations.browser-spec.d.ts +1 -0
- package/lib/kbd-shortcut/variations.browser-spec.d.ts +1 -0
- package/lib/layout/variations.browser-spec.d.ts +1 -0
- package/lib/menu/variations.browser-spec.d.ts +1 -0
- package/lib/menu-item/variations.browser-spec.d.ts +1 -0
- package/lib/nav/variations.browser-spec.d.ts +1 -0
- package/lib/nav-disclosure/variations.browser-spec.d.ts +1 -0
- package/lib/nav-item/variations.browser-spec.d.ts +1 -0
- package/lib/note/variations.browser-spec.d.ts +1 -0
- package/lib/number-field/variations.browser-spec.d.ts +1 -0
- package/lib/option/variations.browser-spec.d.ts +1 -0
- package/lib/pagination/variations.browser-spec.d.ts +1 -0
- package/lib/popover/variations.browser-spec.d.ts +1 -0
- package/lib/progress/variations.browser-spec.d.ts +1 -0
- package/lib/progress-ring/variations.browser-spec.d.ts +1 -0
- package/lib/radio/variations.browser-spec.d.ts +1 -0
- package/lib/radio-group/variations.browser-spec.d.ts +1 -0
- package/lib/range-slider/variations.browser-spec.d.ts +1 -0
- package/lib/rich-text-editor/rte/features/internal/cursor-fix.d.ts +6 -1
- package/lib/rich-text-editor/variations.browser-spec.d.ts +1 -0
- package/lib/rich-text-view/variations.browser-spec.d.ts +1 -0
- package/lib/searchable-select/variations.browser-spec.d.ts +1 -0
- package/lib/select/variations.browser-spec.d.ts +1 -0
- package/lib/selectable-box/variations.browser-spec.d.ts +1 -0
- package/lib/side-drawer/variations.browser-spec.d.ts +1 -0
- package/lib/simple-color-picker/simple-color-picker.d.ts +2 -2
- package/lib/simple-color-picker/variations.browser-spec.d.ts +1 -0
- package/lib/slider/variations.browser-spec.d.ts +1 -0
- package/lib/split-button/variations.browser-spec.d.ts +1 -0
- package/lib/status/variations.browser-spec.d.ts +1 -0
- package/lib/switch/variations.browser-spec.d.ts +1 -0
- package/lib/tab/tab.d.ts +12 -12
- package/lib/table/variations.browser-spec.d.ts +1 -0
- package/lib/tabs/variations.browser-spec.d.ts +1 -0
- package/lib/tag/tag.d.ts +12 -12
- package/lib/tag/variations.browser-spec.d.ts +1 -0
- package/lib/text-area/text-area.template.d.ts +1 -2
- package/lib/text-area/variations.browser-spec.d.ts +1 -0
- package/lib/text-field/variations.browser-spec.d.ts +1 -0
- package/lib/time-picker/variations.browser-spec.d.ts +1 -0
- package/lib/toggletip/variations.browser-spec.d.ts +1 -0
- package/lib/tooltip/variations.browser-spec.d.ts +1 -0
- package/lib/tree-item/variations.browser-spec.d.ts +1 -0
- package/lib/video-player/variations.browser-spec.d.ts +1 -0
- package/menu/definition.cjs +1 -1
- package/menu/definition.js +1 -1
- package/menu-item/definition.cjs +1 -1
- package/menu-item/definition.js +1 -1
- package/nav-disclosure/index.cjs +6 -6
- package/nav-disclosure/index.js +11 -15
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +11 -15
- package/note/index.cjs +5 -5
- package/note/index.js +10 -11
- package/number-field/index.cjs +12 -12
- package/number-field/index.js +34 -35
- package/package.json +19 -10
- package/popover/index.cjs +8 -8
- package/popover/index.js +11 -15
- package/popup/definition.cjs +1 -1
- package/popup/definition.js +1 -1
- package/progress/index.cjs +8 -8
- package/progress/index.js +9 -10
- package/range-slider/index.cjs +10 -8
- package/range-slider/index.js +26 -24
- package/rich-text-editor/index.cjs +3 -3
- package/rich-text-editor/index.js +758 -747
- package/searchable-select/definition.cjs +1 -0
- package/searchable-select/definition.js +2 -2
- package/searchable-select/index.cjs +30 -27
- package/searchable-select/index.js +80 -76
- package/selectable-box/index.cjs +8 -8
- package/selectable-box/index.js +8 -9
- package/side-drawer/index.cjs +3 -3
- package/side-drawer/index.js +3 -3
- package/simple-color-picker/index.cjs +4 -4
- package/simple-color-picker/index.js +6 -6
- package/slider/definition.cjs +1 -1
- package/slider/definition.js +1 -1
- package/slider/index.cjs +1 -1
- package/slider/index.js +1 -1
- package/split-button/index.cjs +4 -4
- package/split-button/index.js +9 -9
- package/status/index.cjs +7 -5
- package/status/index.js +14 -12
- package/styles/core/all.css +5 -7
- package/styles/core/theme.css +5 -7
- package/styles/core/typography.css +0 -3
- package/styles/tokens/vivid-2-compat.css +1 -6
- package/switch/index.cjs +3 -3
- package/switch/index.js +5 -5
- package/table/index.cjs +10 -10
- package/table/index.js +12 -12
- package/tabs/index.cjs +6 -4
- package/tabs/index.js +10 -9
- package/tag/index.cjs +6 -6
- package/tag/index.js +8 -8
- package/text-area/index.cjs +8 -6
- package/text-area/index.js +20 -19
- package/unbundled/affix.cjs +2 -7
- package/unbundled/affix.js +2 -7
- package/unbundled/anchored.cjs +2 -6
- package/unbundled/anchored.js +2 -6
- package/unbundled/aria-binding-directive.cjs +1 -3
- package/unbundled/aria-binding-directive.js +1 -3
- package/unbundled/base-color-picker.cjs +18 -52
- package/unbundled/base-color-picker.js +18 -52
- package/unbundled/base-progress.cjs +4 -14
- package/unbundled/base-progress.js +4 -14
- package/unbundled/button.cjs +2 -8
- package/unbundled/button.js +2 -8
- package/unbundled/calendar-picker.template.cjs +31 -85
- package/unbundled/calendar-picker.template.js +30 -84
- package/unbundled/char-count.cjs +2 -4
- package/unbundled/char-count.js +2 -4
- package/unbundled/data-grid.options.cjs +3 -19
- package/unbundled/data-grid.options.js +3 -19
- package/unbundled/definition.cjs +3 -8
- package/unbundled/definition.js +3 -8
- package/unbundled/definition10.cjs +316 -211
- package/unbundled/definition10.js +313 -202
- package/unbundled/definition11.cjs +262 -356
- package/unbundled/definition11.js +248 -354
- package/unbundled/definition12.cjs +243 -274
- package/unbundled/definition12.js +241 -260
- package/unbundled/definition13.cjs +341 -255
- package/unbundled/definition13.js +338 -252
- package/unbundled/definition14.cjs +61 -371
- package/unbundled/definition14.js +57 -367
- package/unbundled/definition15.cjs +32 -77
- package/unbundled/definition15.js +28 -73
- package/unbundled/definition16.cjs +120 -32
- package/unbundled/definition16.js +117 -29
- package/unbundled/definition17.cjs +24 -132
- package/unbundled/definition17.js +24 -126
- package/unbundled/definition18.cjs +74 -26
- package/unbundled/definition18.js +67 -25
- package/unbundled/definition19.cjs +33 -79
- package/unbundled/definition19.js +32 -73
- package/unbundled/definition2.cjs +3 -6
- package/unbundled/definition2.js +3 -6
- package/unbundled/definition20.cjs +272 -29
- package/unbundled/definition20.js +264 -27
- package/unbundled/definition21.cjs +135 -263
- package/unbundled/definition21.js +133 -260
- package/unbundled/definition22.cjs +17 -155
- package/unbundled/definition22.js +13 -151
- package/unbundled/definition23.cjs +8 -17
- package/unbundled/definition23.js +8 -17
- package/unbundled/definition24.cjs +4 -10
- package/unbundled/definition24.js +4 -10
- package/unbundled/definition25.cjs +2 -10
- package/unbundled/definition25.js +2 -10
- package/unbundled/definition26.cjs +28 -70
- package/unbundled/definition26.js +28 -70
- package/unbundled/definition27.cjs +6 -13
- package/unbundled/definition27.js +6 -13
- package/unbundled/definition28.cjs +30 -77
- package/unbundled/definition28.js +30 -77
- package/unbundled/definition29.cjs +7 -14
- package/unbundled/definition29.js +7 -14
- package/unbundled/definition3.cjs +5 -16
- package/unbundled/definition3.js +5 -16
- package/unbundled/definition30.cjs +20 -51
- package/unbundled/definition30.js +20 -51
- package/unbundled/definition31.cjs +2 -4
- package/unbundled/definition31.js +2 -4
- package/unbundled/definition32.cjs +7 -17
- package/unbundled/definition32.js +7 -17
- package/unbundled/definition33.cjs +4 -9
- package/unbundled/definition33.js +4 -9
- package/unbundled/definition34.cjs +51 -141
- package/unbundled/definition34.js +51 -141
- package/unbundled/definition35.cjs +4 -5
- package/unbundled/definition35.js +4 -5
- package/unbundled/definition36.cjs +16 -38
- package/unbundled/definition36.js +14 -36
- package/unbundled/definition37.cjs +33 -89
- package/unbundled/definition37.js +31 -87
- package/unbundled/definition38.cjs +18 -44
- package/unbundled/definition38.js +16 -42
- package/unbundled/definition39.cjs +16 -32
- package/unbundled/definition39.js +13 -29
- package/unbundled/definition4.cjs +2 -11
- package/unbundled/definition4.js +2 -7
- package/unbundled/definition40.cjs +9 -20
- package/unbundled/definition40.js +9 -20
- package/unbundled/definition41.cjs +3 -6
- package/unbundled/definition41.js +3 -6
- package/unbundled/definition42.cjs +3 -6
- package/unbundled/definition42.js +3 -6
- package/unbundled/definition43.cjs +24 -67
- package/unbundled/definition43.js +24 -67
- package/unbundled/definition44.cjs +3 -6
- package/unbundled/definition44.js +3 -6
- package/unbundled/definition45.cjs +1 -3
- package/unbundled/definition45.js +1 -3
- package/unbundled/definition46.cjs +5 -14
- package/unbundled/definition46.js +5 -14
- package/unbundled/definition47.cjs +4 -5
- package/unbundled/definition47.js +5 -11
- package/unbundled/definition48.cjs +5 -12
- package/unbundled/definition48.js +5 -12
- package/unbundled/definition49.cjs +3 -7
- package/unbundled/definition49.js +3 -7
- package/unbundled/definition5.cjs +2 -5
- package/unbundled/definition5.js +2 -5
- package/unbundled/definition50.cjs +1 -3
- package/unbundled/definition50.js +1 -3
- package/unbundled/definition51.cjs +2 -5
- package/unbundled/definition51.js +2 -5
- package/unbundled/definition52.cjs +19 -44
- package/unbundled/definition52.js +16 -41
- package/unbundled/definition53.cjs +5 -13
- package/unbundled/definition53.js +5 -13
- package/unbundled/definition54.cjs +2 -6
- package/unbundled/definition54.js +2 -6
- package/unbundled/definition55.cjs +23 -65
- package/unbundled/definition55.js +23 -65
- package/unbundled/definition56.cjs +2 -5
- package/unbundled/definition56.js +2 -5
- package/unbundled/definition57.cjs +11 -24
- package/unbundled/definition57.js +11 -26
- package/unbundled/definition58.cjs +10 -30
- package/unbundled/definition58.js +10 -30
- package/unbundled/definition59.cjs +19 -48
- package/unbundled/definition59.js +19 -48
- package/unbundled/definition6.cjs +179 -17
- package/unbundled/definition6.js +170 -14
- package/unbundled/definition60.cjs +70 -54
- package/unbundled/definition60.js +70 -54
- package/unbundled/definition61.cjs +22 -54
- package/unbundled/definition61.js +22 -54
- package/unbundled/definition62.cjs +3 -9
- package/unbundled/definition62.js +3 -9
- package/unbundled/definition63.cjs +62 -130
- package/unbundled/definition63.js +60 -131
- package/unbundled/definition64.cjs +5 -12
- package/unbundled/definition64.js +5 -12
- package/unbundled/definition65.cjs +6 -14
- package/unbundled/definition65.js +6 -19
- package/unbundled/definition66.cjs +13 -35
- package/unbundled/definition66.js +13 -35
- package/unbundled/definition67.cjs +3 -5
- package/unbundled/definition67.js +3 -5
- package/unbundled/definition68.cjs +4 -5
- package/unbundled/definition68.js +4 -5
- package/unbundled/definition69.cjs +6 -15
- package/unbundled/definition69.js +6 -17
- package/unbundled/definition7.cjs +31 -177
- package/unbundled/definition7.js +24 -170
- package/unbundled/definition70.cjs +1 -3
- package/unbundled/definition70.js +1 -3
- package/unbundled/definition71.cjs +7 -12
- package/unbundled/definition71.js +7 -12
- package/unbundled/definition72.cjs +11 -25
- package/unbundled/definition72.js +11 -25
- package/unbundled/definition73.cjs +15 -39
- package/unbundled/definition73.js +15 -39
- package/unbundled/definition74.cjs +1 -3
- package/unbundled/definition74.js +1 -3
- package/unbundled/definition75.cjs +5 -11
- package/unbundled/definition75.js +5 -11
- package/unbundled/definition76.cjs +24 -59
- package/unbundled/definition76.js +24 -59
- package/unbundled/definition77.cjs +6 -8
- package/unbundled/definition77.js +4 -6
- package/unbundled/definition78.cjs +7 -13
- package/unbundled/definition78.js +7 -13
- package/unbundled/definition79.cjs +5 -15
- package/unbundled/definition79.js +5 -15
- package/unbundled/definition8.cjs +152 -36
- package/unbundled/definition8.js +148 -31
- package/unbundled/definition80.cjs +9 -25
- package/unbundled/definition80.js +9 -25
- package/unbundled/definition9.cjs +200 -135
- package/unbundled/definition9.js +189 -130
- package/unbundled/delegates-aria.cjs +1 -3
- package/unbundled/delegates-aria.js +1 -3
- package/unbundled/divider.cjs +2 -7
- package/unbundled/divider.js +2 -7
- package/unbundled/form-associated.cjs +20 -60
- package/unbundled/form-associated.js +20 -60
- package/unbundled/form-element.cjs +5 -15
- package/unbundled/form-element.js +5 -15
- package/unbundled/host-semantics.cjs +1 -3
- package/unbundled/host-semantics.js +1 -3
- package/unbundled/kbd-shortcut.cjs +1 -3
- package/unbundled/kbd-shortcut.js +1 -3
- package/unbundled/linkable.cjs +1 -3
- package/unbundled/linkable.js +1 -3
- package/unbundled/listbox.cjs +6 -20
- package/unbundled/listbox.js +6 -20
- package/unbundled/localized.cjs +3 -9
- package/unbundled/localized.js +3 -9
- package/unbundled/mixins.cjs +9 -25
- package/unbundled/mixins.js +9 -25
- package/unbundled/numberConverter.cjs +39 -9
- package/unbundled/numberConverter.js +39 -9
- package/unbundled/picker-field.template.cjs +16 -36
- package/unbundled/picker-field.template.js +16 -36
- package/unbundled/platform.cjs +1 -3
- package/unbundled/platform.js +1 -3
- package/unbundled/playbackRates.cjs +1 -3
- package/unbundled/playbackRates.js +1 -3
- package/unbundled/randomId.cjs +1 -3
- package/unbundled/randomId.js +1 -3
- package/unbundled/single-date-picker.cjs +6 -18
- package/unbundled/single-date-picker.js +6 -18
- package/unbundled/single-value-picker.cjs +7 -21
- package/unbundled/single-value-picker.js +7 -21
- package/unbundled/slider.template.cjs +6 -14
- package/unbundled/slider.template.js +6 -14
- package/unbundled/slottable-request.cjs +2 -6
- package/unbundled/slottable-request.js +2 -6
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +27 -79
- package/unbundled/time-selection-picker.template.js +27 -79
- package/unbundled/trapped-focus.cjs +1 -3
- package/unbundled/trapped-focus.js +1 -3
- package/unbundled/vivid-element.cjs +7 -19
- package/unbundled/vivid-element.js +7 -19
- package/unbundled/with-contextual-help.cjs +4 -13
- package/unbundled/with-contextual-help.js +4 -13
- package/unbundled/with-error-text.cjs +2 -6
- package/unbundled/with-error-text.js +2 -6
- package/unbundled/with-success-text.cjs +1 -3
- package/unbundled/with-success-text.js +1 -3
- package/video-player/index.cjs +3 -3
- package/video-player/index.js +5 -5
- package/visually-hidden/definition.cjs +1 -1
- package/visually-hidden/definition.js +1 -1
- package/shared/color-picker/index.d.ts +0 -3
- package/shared/foundation/button/index.d.ts +0 -2
- package/shared/patterns/char-count/index.d.ts +0 -1
- package/shared/patterns/form-elements/index.d.ts +0 -4
- package/shared/patterns/index.d.ts +0 -7
package/unbundled/mixins.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as VividElement, u as defineVividComponent } from "./vivid-element.js
|
|
|
2
2
|
import { r as Icon, t as iconDefinition } from "./definition.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
4
|
import { t as Localized } from "./localized.js";
|
|
5
|
-
import { n as visuallyHiddenDefinition } from "./
|
|
5
|
+
import { n as visuallyHiddenDefinition } from "./definition22.js";
|
|
6
6
|
import { n as renderInLightDOM, t as generateRandomId } from "./randomId.js";
|
|
7
7
|
import { attr, html, observable, slotted, when } from "@microsoft/fast-element";
|
|
8
8
|
import { classNames } from "@microsoft/fast-web-utilities";
|
|
@@ -10,9 +10,7 @@ import { classNames } from "@microsoft/fast-web-utilities";
|
|
|
10
10
|
var feedback_message_default = ":host{display:contents}.message{contain:inline-size;font:var(--vvd-typography-base-condensed);grid-column:1/-1;gap:4px;display:flex}.message.none-message{display:none}.message.helper-message{color:var(--_low-ink-color)}.message.error-message,.message.success-message{color:var(--vvd-color-canvas-text)}slot{display:inline}.icon{font-size:16px}.error-message .icon{color:var(--vvd-color-alert-500)}.success-message .icon{color:var(--vvd-color-success-500)}.announcement{display:contents}";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/shared/feedback/feedback-message.ts
|
|
13
|
-
/**
|
|
14
|
-
* Renders a feedback message of the given type. When type='none', nothing is rendered.
|
|
15
|
-
*/
|
|
13
|
+
/** Renders a feedback message of the given type. When type='none', nothing is rendered. */
|
|
16
14
|
var FeedbackMessage = class extends Localized(VividElement) {
|
|
17
15
|
constructor(..._args) {
|
|
18
16
|
super(..._args);
|
|
@@ -48,9 +46,7 @@ var FeedbackMessageTemplate = (ctx) => {
|
|
|
48
46
|
var feedbackMessageDefinition = defineVividComponent("feedback-message", FeedbackMessage, FeedbackMessageTemplate, [iconDefinition, visuallyHiddenDefinition], { styles: feedback_message_default });
|
|
49
47
|
//#endregion
|
|
50
48
|
//#region src/shared/feedback/mixins.ts
|
|
51
|
-
/**
|
|
52
|
-
* Mixin for elements that display a feedback message.
|
|
53
|
-
*/
|
|
49
|
+
/** Mixin for elements that display a feedback message. */
|
|
54
50
|
var WithFeedback = (Base) => {
|
|
55
51
|
class ElementWithFeedback extends Base {
|
|
56
52
|
/**
|
|
@@ -61,9 +57,7 @@ var WithFeedback = (Base) => {
|
|
|
61
57
|
get _feedbackDescribedBy() {
|
|
62
58
|
return "feedback slotted-helper-text-feedback";
|
|
63
59
|
}
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
60
|
+
/** @internal */
|
|
67
61
|
_internalFeedback() {
|
|
68
62
|
const helperText = this._helperTextSlottedContent?.length ? "" : this.helperText;
|
|
69
63
|
const errorText = this.errorValidationMessage;
|
|
@@ -85,15 +79,11 @@ var WithFeedback = (Base) => {
|
|
|
85
79
|
message: ""
|
|
86
80
|
};
|
|
87
81
|
}
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
82
|
+
/** @internal */
|
|
91
83
|
_slottedHelperTextFeedbackType() {
|
|
92
84
|
return this._internalFeedback().type === "none" && this._helperTextSlottedContent?.length ? "helper" : "none";
|
|
93
85
|
}
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
86
|
+
/** @internal */
|
|
97
87
|
_getFeedbackTemplate(ctx) {
|
|
98
88
|
const feedbackTag = ctx.tagFor(FeedbackMessage);
|
|
99
89
|
return html`
|
|
@@ -126,24 +116,18 @@ var WithLightDOMFeedback = (Base) => {
|
|
|
126
116
|
this._slottedHelperTextIds = [];
|
|
127
117
|
this._feedbackId = randomFeedbackId();
|
|
128
118
|
}
|
|
129
|
-
/**
|
|
130
|
-
* @internal
|
|
131
|
-
*/
|
|
119
|
+
/** @internal */
|
|
132
120
|
_helperTextSlottedContentChanged(_, newContent) {
|
|
133
121
|
for (const el of newContent)
|
|
134
122
|
/* v8 ignore else -- @preserve */
|
|
135
123
|
if (!el.id) el.id = randomSlottedContentId();
|
|
136
124
|
this._slottedHelperTextIds = newContent.map((el) => el.id);
|
|
137
125
|
}
|
|
138
|
-
/**
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
126
|
+
/** @internal */
|
|
141
127
|
get _feedbackDescribedBy() {
|
|
142
128
|
return [this._feedbackId, ...this._slottedHelperTextIds].join(" ");
|
|
143
129
|
}
|
|
144
|
-
/**
|
|
145
|
-
* @internal
|
|
146
|
-
*/
|
|
130
|
+
/** @internal */
|
|
147
131
|
_getFeedbackTemplate(ctx) {
|
|
148
132
|
const feedbackTag = ctx.tagFor(FeedbackMessage);
|
|
149
133
|
return html`
|
|
@@ -10,17 +10,47 @@ var PLACEHOLDER_ICON = `<svg width="80%" height="80%" viewBox="0 0 64 64">
|
|
|
10
10
|
</animateTransform>
|
|
11
11
|
</g>
|
|
12
12
|
</g>
|
|
13
|
-
</svg
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
</svg>`, e = {
|
|
14
|
+
name: "@vonage/vivid-icons",
|
|
15
|
+
version: "4.11.0",
|
|
16
|
+
type: "module",
|
|
17
|
+
exports: {
|
|
18
|
+
".": {
|
|
19
|
+
types: "./dist/index.d.ts",
|
|
20
|
+
default: "./dist/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
files: ["dist"],
|
|
25
|
+
scripts: {
|
|
26
|
+
build: "vite build",
|
|
27
|
+
fetch: "tsx scripts/fetch-icons.ts",
|
|
28
|
+
lint: "eslint . --max-warnings=0",
|
|
29
|
+
"lint:fix": "eslint . --max-warnings=0 --fix",
|
|
30
|
+
typecheck: "tsc --noEmit"
|
|
31
|
+
},
|
|
32
|
+
dependencies: { "@microsoft/fast-element": "catalog:" },
|
|
33
|
+
devDependencies: {
|
|
34
|
+
"@figma/rest-api-spec": "catalog:",
|
|
35
|
+
"@repo/eslint-config": "workspace:*",
|
|
36
|
+
"@repo/fetch-icons": "workspace:*",
|
|
37
|
+
"@repo/typescript-config": "workspace:*",
|
|
38
|
+
"@repo/utils": "workspace:*",
|
|
39
|
+
"@repo/vite-config": "workspace:*",
|
|
40
|
+
"@types/node": "catalog:",
|
|
41
|
+
dotenv: "catalog:",
|
|
42
|
+
eslint: "catalog:",
|
|
43
|
+
tsx: "catalog:",
|
|
44
|
+
typescript: "catalog:",
|
|
45
|
+
vite: "catalog:",
|
|
46
|
+
"vite-plugin-dts": "catalog:"
|
|
47
|
+
}
|
|
48
|
+
}, t = "https://icon.resources.vonage.com", n = e.version;
|
|
49
|
+
`${t}${n}`;
|
|
20
50
|
//#endregion
|
|
21
51
|
//#region src/shared/icon/utils.ts
|
|
22
52
|
var baseUrlTemplate = (resource, version) => [
|
|
23
|
-
|
|
53
|
+
t,
|
|
24
54
|
`v${version}`,
|
|
25
55
|
resource
|
|
26
56
|
].join("/");
|
|
@@ -31,7 +61,7 @@ var extractSvg = (response) => {
|
|
|
31
61
|
assertIsValidResponse(response);
|
|
32
62
|
return response.text();
|
|
33
63
|
};
|
|
34
|
-
var loadSvg = (iconId, signal) => fetch(baseUrlTemplate(`${iconId}.svg`,
|
|
64
|
+
var loadSvg = (iconId, signal) => fetch(baseUrlTemplate(`${iconId}.svg`, n), { signal }).then(extractSvg);
|
|
35
65
|
var normalizeKey = (iconId) => (iconId ?? "").trim();
|
|
36
66
|
var iconCache = /* @__PURE__ */ new Map();
|
|
37
67
|
var resolveIcon = (iconId, signal) => {
|
|
@@ -10,17 +10,47 @@ var PLACEHOLDER_ICON = `<svg width="80%" height="80%" viewBox="0 0 64 64">
|
|
|
10
10
|
</animateTransform>
|
|
11
11
|
</g>
|
|
12
12
|
</g>
|
|
13
|
-
</svg
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
</svg>`, e = {
|
|
14
|
+
name: "@vonage/vivid-icons",
|
|
15
|
+
version: "4.11.0",
|
|
16
|
+
type: "module",
|
|
17
|
+
exports: {
|
|
18
|
+
".": {
|
|
19
|
+
types: "./dist/index.d.ts",
|
|
20
|
+
default: "./dist/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
files: ["dist"],
|
|
25
|
+
scripts: {
|
|
26
|
+
build: "vite build",
|
|
27
|
+
fetch: "tsx scripts/fetch-icons.ts",
|
|
28
|
+
lint: "eslint . --max-warnings=0",
|
|
29
|
+
"lint:fix": "eslint . --max-warnings=0 --fix",
|
|
30
|
+
typecheck: "tsc --noEmit"
|
|
31
|
+
},
|
|
32
|
+
dependencies: { "@microsoft/fast-element": "catalog:" },
|
|
33
|
+
devDependencies: {
|
|
34
|
+
"@figma/rest-api-spec": "catalog:",
|
|
35
|
+
"@repo/eslint-config": "workspace:*",
|
|
36
|
+
"@repo/fetch-icons": "workspace:*",
|
|
37
|
+
"@repo/typescript-config": "workspace:*",
|
|
38
|
+
"@repo/utils": "workspace:*",
|
|
39
|
+
"@repo/vite-config": "workspace:*",
|
|
40
|
+
"@types/node": "catalog:",
|
|
41
|
+
dotenv: "catalog:",
|
|
42
|
+
eslint: "catalog:",
|
|
43
|
+
tsx: "catalog:",
|
|
44
|
+
typescript: "catalog:",
|
|
45
|
+
vite: "catalog:",
|
|
46
|
+
"vite-plugin-dts": "catalog:"
|
|
47
|
+
}
|
|
48
|
+
}, t = "https://icon.resources.vonage.com", n = e.version;
|
|
49
|
+
`${t}${n}`;
|
|
20
50
|
//#endregion
|
|
21
51
|
//#region src/shared/icon/utils.ts
|
|
22
52
|
var baseUrlTemplate = (resource, version) => [
|
|
23
|
-
|
|
53
|
+
t,
|
|
24
54
|
`v${version}`,
|
|
25
55
|
resource
|
|
26
56
|
].join("/");
|
|
@@ -31,7 +61,7 @@ var extractSvg = (response) => {
|
|
|
31
61
|
assertIsValidResponse(response);
|
|
32
62
|
return response.text();
|
|
33
63
|
};
|
|
34
|
-
var loadSvg = (iconId, signal) => fetch(baseUrlTemplate(`${iconId}.svg`,
|
|
64
|
+
var loadSvg = (iconId, signal) => fetch(baseUrlTemplate(`${iconId}.svg`, n), { signal }).then(extractSvg);
|
|
35
65
|
var normalizeKey = (iconId) => (iconId ?? "").trim();
|
|
36
66
|
var iconCache = /* @__PURE__ */ new Map();
|
|
37
67
|
var resolveIcon = (iconId, signal) => {
|
|
@@ -2,16 +2,16 @@ require("./chunk.cjs");
|
|
|
2
2
|
const require_vivid_element = require("./vivid-element.cjs");
|
|
3
3
|
const require_decorate = require("./decorate.cjs");
|
|
4
4
|
const require_form_associated = require("./form-associated.cjs");
|
|
5
|
-
const require_form_element = require("./form-element.cjs");
|
|
6
|
-
const require_with_error_text = require("./with-error-text.cjs");
|
|
7
|
-
const require_with_contextual_help = require("./with-contextual-help.cjs");
|
|
8
5
|
const require_localized = require("./localized.cjs");
|
|
9
|
-
const
|
|
10
|
-
const require_definition = require("./definition7.cjs");
|
|
6
|
+
const require_definition = require("./definition6.cjs");
|
|
11
7
|
const require_dialog = require("./dialog.cjs");
|
|
12
|
-
const require_definition$1 = require("./
|
|
8
|
+
const require_definition$1 = require("./definition9.cjs");
|
|
13
9
|
const require_mixins = require("./mixins.cjs");
|
|
10
|
+
const require_form_element = require("./form-element.cjs");
|
|
11
|
+
const require_with_error_text = require("./with-error-text.cjs");
|
|
12
|
+
const require_with_contextual_help = require("./with-contextual-help.cjs");
|
|
14
13
|
const require_definition$2 = require("./definition26.cjs");
|
|
14
|
+
const require_trapped_focus = require("./trapped-focus.cjs");
|
|
15
15
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
16
16
|
let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
|
|
17
17
|
//#region src/shared/picker-field/picker-field.scss?inline
|
|
@@ -27,9 +27,7 @@ var picker_field_default = ":host{display:inline-block}.base{inline-size:100%;di
|
|
|
27
27
|
* @testRef clearButton shadowButton #clear-button
|
|
28
28
|
*/
|
|
29
29
|
var PickerField = class extends require_with_contextual_help.WithContextualHelp(require_mixins.WithFeedback(require_with_error_text.WithErrorText(require_form_element.FormElement(require_trapped_focus.TrappedFocus(require_localized.Localized(require_form_associated.FormAssociated(require_vivid_element.VividElement))))))) {
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
30
|
+
/** @internal */
|
|
33
31
|
readOnlyChanged() {
|
|
34
32
|
if (this.proxy instanceof HTMLInputElement) {
|
|
35
33
|
this.proxy.readOnly = this.readOnly;
|
|
@@ -58,9 +56,7 @@ var PickerField = class extends require_with_contextual_help.WithContextualHelp(
|
|
|
58
56
|
this._presentationValue = "";
|
|
59
57
|
this.value = "";
|
|
60
58
|
}
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
59
|
+
/** @internal */
|
|
64
60
|
connectedCallback() {
|
|
65
61
|
super.connectedCallback();
|
|
66
62
|
document.addEventListener("click", this.#dismissOnClickOutside);
|
|
@@ -68,9 +64,7 @@ var PickerField = class extends require_with_contextual_help.WithContextualHelp(
|
|
|
68
64
|
this.addEventListener("focusout", this.#onFocusOut);
|
|
69
65
|
this.#startObservingLocaleChanges();
|
|
70
66
|
}
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
67
|
+
/** @internal */
|
|
74
68
|
disconnectedCallback() {
|
|
75
69
|
super.disconnectedCallback();
|
|
76
70
|
document.removeEventListener("click", this.#dismissOnClickOutside);
|
|
@@ -80,9 +74,7 @@ var PickerField = class extends require_with_contextual_help.WithContextualHelp(
|
|
|
80
74
|
}
|
|
81
75
|
#onFocusIn;
|
|
82
76
|
#onFocusOut;
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
77
|
+
/** @internal */
|
|
86
78
|
validate() {
|
|
87
79
|
if (this.proxy) this.proxy.setCustomValidity(this._getCustomValidationError() ?? "");
|
|
88
80
|
super.validate(this._textFieldEl?.querySelector("input") ?? void 0);
|
|
@@ -101,9 +93,7 @@ var PickerField = class extends require_with_contextual_help.WithContextualHelp(
|
|
|
101
93
|
/* v8 ignore else -- @preserve */
|
|
102
94
|
if (!this.readOnly) this._popupOpen = true;
|
|
103
95
|
}
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
96
|
+
/** @internal */
|
|
107
97
|
_closePopup(restoreFocusToTextField = true) {
|
|
108
98
|
this._popupOpen = false;
|
|
109
99
|
if (restoreFocusToTextField) this._textFieldEl.focus();
|
|
@@ -120,36 +110,26 @@ var PickerField = class extends require_with_contextual_help.WithContextualHelp(
|
|
|
120
110
|
if (this._trappedFocus(event, () => this._focusableElsWithinDialog())) return false;
|
|
121
111
|
return true;
|
|
122
112
|
}
|
|
123
|
-
/**
|
|
124
|
-
* @internal
|
|
125
|
-
*/
|
|
113
|
+
/** @internal */
|
|
126
114
|
_presentationValueChanged() {
|
|
127
115
|
this.dirtyValue = true;
|
|
128
116
|
this.validate();
|
|
129
117
|
}
|
|
130
|
-
/**
|
|
131
|
-
* @internal
|
|
132
|
-
*/
|
|
118
|
+
/** @internal */
|
|
133
119
|
_onTextFieldInput(event) {
|
|
134
120
|
const textField = event.currentTarget;
|
|
135
121
|
this._presentationValue = textField.value;
|
|
136
122
|
}
|
|
137
|
-
/**
|
|
138
|
-
* @internal
|
|
139
|
-
*/
|
|
123
|
+
/** @internal */
|
|
140
124
|
_onPickerButtonClick() {
|
|
141
125
|
if (this._popupOpen) this._closePopup();
|
|
142
126
|
else this.#openPopupIfPossible();
|
|
143
127
|
}
|
|
144
|
-
/**
|
|
145
|
-
* @internal
|
|
146
|
-
*/
|
|
128
|
+
/** @internal */
|
|
147
129
|
_onOkClick() {
|
|
148
130
|
this._closePopup();
|
|
149
131
|
}
|
|
150
|
-
/**
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
132
|
+
/** @internal */
|
|
153
133
|
_onClearClick() {
|
|
154
134
|
this.$emit("clear-click");
|
|
155
135
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { 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
|
-
import { t as FormElement } from "./form-element.js";
|
|
5
|
-
import { t as WithErrorText } from "./with-error-text.js";
|
|
6
|
-
import { t as WithContextualHelp } from "./with-contextual-help.js";
|
|
7
4
|
import { t as Localized } from "./localized.js";
|
|
8
|
-
import {
|
|
9
|
-
import { i as Button } from "./definition7.js";
|
|
5
|
+
import { i as Button } from "./definition6.js";
|
|
10
6
|
import { t as handleEscapeKeyAndStopPropogation } from "./dialog.js";
|
|
11
|
-
import { i as Popup } from "./
|
|
7
|
+
import { i as Popup } from "./definition9.js";
|
|
12
8
|
import { t as WithFeedback } from "./mixins.js";
|
|
9
|
+
import { t as FormElement } from "./form-element.js";
|
|
10
|
+
import { t as WithErrorText } from "./with-error-text.js";
|
|
11
|
+
import { t as WithContextualHelp } from "./with-contextual-help.js";
|
|
13
12
|
import { r as TextField } from "./definition26.js";
|
|
13
|
+
import { t as TrappedFocus } from "./trapped-focus.js";
|
|
14
14
|
import { ExecutionContext, Observable, attr, html, observable, ref, slotted } from "@microsoft/fast-element";
|
|
15
15
|
import { classNames } from "@microsoft/fast-web-utilities";
|
|
16
16
|
//#region src/shared/picker-field/picker-field.scss?inline
|
|
@@ -26,9 +26,7 @@ var picker_field_default = ":host{display:inline-block}.base{inline-size:100%;di
|
|
|
26
26
|
* @testRef clearButton shadowButton #clear-button
|
|
27
27
|
*/
|
|
28
28
|
var PickerField = class extends WithContextualHelp(WithFeedback(WithErrorText(FormElement(TrappedFocus(Localized(FormAssociated(VividElement))))))) {
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
29
|
+
/** @internal */
|
|
32
30
|
readOnlyChanged() {
|
|
33
31
|
if (this.proxy instanceof HTMLInputElement) {
|
|
34
32
|
this.proxy.readOnly = this.readOnly;
|
|
@@ -57,9 +55,7 @@ var PickerField = class extends WithContextualHelp(WithFeedback(WithErrorText(Fo
|
|
|
57
55
|
this._presentationValue = "";
|
|
58
56
|
this.value = "";
|
|
59
57
|
}
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
58
|
+
/** @internal */
|
|
63
59
|
connectedCallback() {
|
|
64
60
|
super.connectedCallback();
|
|
65
61
|
document.addEventListener("click", this.#dismissOnClickOutside);
|
|
@@ -67,9 +63,7 @@ var PickerField = class extends WithContextualHelp(WithFeedback(WithErrorText(Fo
|
|
|
67
63
|
this.addEventListener("focusout", this.#onFocusOut);
|
|
68
64
|
this.#startObservingLocaleChanges();
|
|
69
65
|
}
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
66
|
+
/** @internal */
|
|
73
67
|
disconnectedCallback() {
|
|
74
68
|
super.disconnectedCallback();
|
|
75
69
|
document.removeEventListener("click", this.#dismissOnClickOutside);
|
|
@@ -79,9 +73,7 @@ var PickerField = class extends WithContextualHelp(WithFeedback(WithErrorText(Fo
|
|
|
79
73
|
}
|
|
80
74
|
#onFocusIn;
|
|
81
75
|
#onFocusOut;
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
76
|
+
/** @internal */
|
|
85
77
|
validate() {
|
|
86
78
|
if (this.proxy) this.proxy.setCustomValidity(this._getCustomValidationError() ?? "");
|
|
87
79
|
super.validate(this._textFieldEl?.querySelector("input") ?? void 0);
|
|
@@ -100,9 +92,7 @@ var PickerField = class extends WithContextualHelp(WithFeedback(WithErrorText(Fo
|
|
|
100
92
|
/* v8 ignore else -- @preserve */
|
|
101
93
|
if (!this.readOnly) this._popupOpen = true;
|
|
102
94
|
}
|
|
103
|
-
/**
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
95
|
+
/** @internal */
|
|
106
96
|
_closePopup(restoreFocusToTextField = true) {
|
|
107
97
|
this._popupOpen = false;
|
|
108
98
|
if (restoreFocusToTextField) this._textFieldEl.focus();
|
|
@@ -119,36 +109,26 @@ var PickerField = class extends WithContextualHelp(WithFeedback(WithErrorText(Fo
|
|
|
119
109
|
if (this._trappedFocus(event, () => this._focusableElsWithinDialog())) return false;
|
|
120
110
|
return true;
|
|
121
111
|
}
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
112
|
+
/** @internal */
|
|
125
113
|
_presentationValueChanged() {
|
|
126
114
|
this.dirtyValue = true;
|
|
127
115
|
this.validate();
|
|
128
116
|
}
|
|
129
|
-
/**
|
|
130
|
-
* @internal
|
|
131
|
-
*/
|
|
117
|
+
/** @internal */
|
|
132
118
|
_onTextFieldInput(event) {
|
|
133
119
|
const textField = event.currentTarget;
|
|
134
120
|
this._presentationValue = textField.value;
|
|
135
121
|
}
|
|
136
|
-
/**
|
|
137
|
-
* @internal
|
|
138
|
-
*/
|
|
122
|
+
/** @internal */
|
|
139
123
|
_onPickerButtonClick() {
|
|
140
124
|
if (this._popupOpen) this._closePopup();
|
|
141
125
|
else this.#openPopupIfPossible();
|
|
142
126
|
}
|
|
143
|
-
/**
|
|
144
|
-
* @internal
|
|
145
|
-
*/
|
|
127
|
+
/** @internal */
|
|
146
128
|
_onOkClick() {
|
|
147
129
|
this._closePopup();
|
|
148
130
|
}
|
|
149
|
-
/**
|
|
150
|
-
* @internal
|
|
151
|
-
*/
|
|
131
|
+
/** @internal */
|
|
152
132
|
_onClearClick() {
|
|
153
133
|
this.$emit("clear-click");
|
|
154
134
|
}
|
package/unbundled/platform.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
//#region src/shared/utils/platform.ts
|
|
2
|
-
/**
|
|
3
|
-
* Returns true if the current platform is Apple (macOS, iOS, iPadOS).
|
|
4
|
-
*/
|
|
2
|
+
/** Returns true if the current platform is Apple (macOS, iOS, iPadOS). */
|
|
5
3
|
function isApplePlatform() {
|
|
6
4
|
/* v8 ignore next 3 -- @preserve */
|
|
7
5
|
if (typeof navigator === "undefined") return false;
|
package/unbundled/platform.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
//#region src/shared/utils/platform.ts
|
|
2
|
-
/**
|
|
3
|
-
* Returns true if the current platform is Apple (macOS, iOS, iPadOS).
|
|
4
|
-
*/
|
|
2
|
+
/** Returns true if the current platform is Apple (macOS, iOS, iPadOS). */
|
|
5
3
|
function isApplePlatform() {
|
|
6
4
|
/* v8 ignore next 3 -- @preserve */
|
|
7
5
|
if (typeof navigator === "undefined") return false;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
//#region src/shared/utils/playbackRates.ts
|
|
2
|
-
/**
|
|
3
|
-
* Parses a playback rates string like '0.5, 1, 1.5, 2'
|
|
4
|
-
*/
|
|
2
|
+
/** Parses a playback rates string like '0.5, 1, 1.5, 2' */
|
|
5
3
|
function getPlaybackRatesArray(playbackRates) {
|
|
6
4
|
if (playbackRates === "") return [];
|
|
7
5
|
const ratesArray = [];
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
//#region src/shared/utils/playbackRates.ts
|
|
2
|
-
/**
|
|
3
|
-
* Parses a playback rates string like '0.5, 1, 1.5, 2'
|
|
4
|
-
*/
|
|
2
|
+
/** Parses a playback rates string like '0.5, 1, 1.5, 2' */
|
|
5
3
|
function getPlaybackRatesArray(playbackRates) {
|
|
6
4
|
if (playbackRates === "") return [];
|
|
7
5
|
const ratesArray = [];
|
package/unbundled/randomId.cjs
CHANGED
|
@@ -23,9 +23,7 @@ var RenderInLightDomDirective = class {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
_microsoft_fast_element.HTMLDirective.define(RenderInLightDomDirective);
|
|
26
|
-
/**
|
|
27
|
-
* Directive to render a template into the light DOM of the host element.
|
|
28
|
-
*/
|
|
26
|
+
/** Directive to render a template into the light DOM of the host element. */
|
|
29
27
|
function renderInLightDOM(template) {
|
|
30
28
|
return new RenderInLightDomDirective(template);
|
|
31
29
|
}
|
package/unbundled/randomId.js
CHANGED
|
@@ -22,9 +22,7 @@ var RenderInLightDomDirective = class {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
HTMLDirective.define(RenderInLightDomDirective);
|
|
25
|
-
/**
|
|
26
|
-
* Directive to render a template into the light DOM of the host element.
|
|
27
|
-
*/
|
|
25
|
+
/** Directive to render a template into the light DOM of the host element. */
|
|
28
26
|
function renderInLightDOM(template) {
|
|
29
27
|
return new RenderInLightDomDirective(template);
|
|
30
28
|
}
|
|
@@ -1,37 +1,25 @@
|
|
|
1
1
|
//#region src/shared/picker-field/mixins/single-date-picker.ts
|
|
2
|
-
/**
|
|
3
|
-
* Mixin for pickers that use a calendar to pick a single date.
|
|
4
|
-
*/
|
|
2
|
+
/** Mixin for pickers that use a calendar to pick a single date. */
|
|
5
3
|
var SingleDatePickerMixin = (Base) => {
|
|
6
4
|
class SingleDatePicker extends Base {
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
5
|
+
/** @internal */
|
|
10
6
|
valueChanged(previous, next) {
|
|
11
7
|
super.valueChanged(previous, next);
|
|
12
8
|
if (this.value) this._adjustSelectedMonthToEnsureVisibilityOf(this._dateValue());
|
|
13
9
|
}
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
10
|
+
/** @internal */
|
|
17
11
|
_onDateClick(date) {
|
|
18
12
|
this._updateValueDueToUserInteraction(this._withUpdatedDate(date), false);
|
|
19
13
|
}
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
14
|
+
/** @internal */
|
|
23
15
|
_isDateSelected(date) {
|
|
24
16
|
return date === this._dateValue();
|
|
25
17
|
}
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
18
|
+
/** @internal */
|
|
29
19
|
_isDateAriaSelected(date) {
|
|
30
20
|
return this._isDateSelected(date);
|
|
31
21
|
}
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
22
|
+
/** @internal */
|
|
35
23
|
_getSelectedDates() {
|
|
36
24
|
const dates = [];
|
|
37
25
|
if (this.value) dates.push(this._dateValue());
|
|
@@ -1,37 +1,25 @@
|
|
|
1
1
|
//#region src/shared/picker-field/mixins/single-date-picker.ts
|
|
2
|
-
/**
|
|
3
|
-
* Mixin for pickers that use a calendar to pick a single date.
|
|
4
|
-
*/
|
|
2
|
+
/** Mixin for pickers that use a calendar to pick a single date. */
|
|
5
3
|
var SingleDatePickerMixin = (Base) => {
|
|
6
4
|
class SingleDatePicker extends Base {
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
5
|
+
/** @internal */
|
|
10
6
|
valueChanged(previous, next) {
|
|
11
7
|
super.valueChanged(previous, next);
|
|
12
8
|
if (this.value) this._adjustSelectedMonthToEnsureVisibilityOf(this._dateValue());
|
|
13
9
|
}
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
10
|
+
/** @internal */
|
|
17
11
|
_onDateClick(date) {
|
|
18
12
|
this._updateValueDueToUserInteraction(this._withUpdatedDate(date), false);
|
|
19
13
|
}
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
14
|
+
/** @internal */
|
|
23
15
|
_isDateSelected(date) {
|
|
24
16
|
return date === this._dateValue();
|
|
25
17
|
}
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
18
|
+
/** @internal */
|
|
29
19
|
_isDateAriaSelected(date) {
|
|
30
20
|
return this._isDateSelected(date);
|
|
31
21
|
}
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
22
|
+
/** @internal */
|
|
35
23
|
_getSelectedDates() {
|
|
36
24
|
const dates = [];
|
|
37
25
|
if (this.value) dates.push(this._dateValue());
|
|
@@ -9,9 +9,7 @@ var SingleValuePicker = (Base) => {
|
|
|
9
9
|
super(..._args);
|
|
10
10
|
this._isInternalValueUpdate = false;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
12
|
+
/** @internal */
|
|
15
13
|
valueChanged(previous, next) {
|
|
16
14
|
super.valueChanged(previous, next);
|
|
17
15
|
if (this.value) {
|
|
@@ -22,16 +20,12 @@ var SingleValuePicker = (Base) => {
|
|
|
22
20
|
}
|
|
23
21
|
if (!this._isInternalValueUpdate) this._updatePresentationValue();
|
|
24
22
|
}
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
23
|
+
/** @internal */
|
|
28
24
|
_updatePresentationValue() {
|
|
29
25
|
if (this.value) this._presentationValue = this._toPresentationValue(this.value);
|
|
30
26
|
else this._presentationValue = "";
|
|
31
27
|
}
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
28
|
+
/** @internal */
|
|
35
29
|
_updateValueDueToUserInteraction(newValue, isIntermediateUpdate) {
|
|
36
30
|
if (this.value !== newValue) {
|
|
37
31
|
this._isInternalValueUpdate = true;
|
|
@@ -44,9 +38,7 @@ var SingleValuePicker = (Base) => {
|
|
|
44
38
|
this.$emit("change");
|
|
45
39
|
}
|
|
46
40
|
}
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
41
|
+
/** @internal */
|
|
50
42
|
_onTextFieldChange() {
|
|
51
43
|
if (this._presentationValue === "") {
|
|
52
44
|
this._updateValueDueToUserInteraction("", false);
|
|
@@ -61,9 +53,7 @@ var SingleValuePicker = (Base) => {
|
|
|
61
53
|
return;
|
|
62
54
|
}
|
|
63
55
|
}
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
56
|
+
/** @internal */
|
|
67
57
|
_onTextFieldInput(event) {
|
|
68
58
|
super._onTextFieldInput(event);
|
|
69
59
|
if (this._presentationValue === "") {
|
|
@@ -76,9 +66,7 @@ var SingleValuePicker = (Base) => {
|
|
|
76
66
|
return;
|
|
77
67
|
}
|
|
78
68
|
}
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
69
|
+
/** @internal */
|
|
82
70
|
_isPresentationValueInvalid() {
|
|
83
71
|
if (this._presentationValue === "") return false;
|
|
84
72
|
try {
|
|
@@ -88,9 +76,7 @@ var SingleValuePicker = (Base) => {
|
|
|
88
76
|
return true;
|
|
89
77
|
}
|
|
90
78
|
}
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
79
|
+
/** @internal */
|
|
94
80
|
_onClearClick() {
|
|
95
81
|
this._updateValueDueToUserInteraction("", false);
|
|
96
82
|
super._onClearClick();
|