@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __decorate } from "./decorate.js";
|
|
2
2
|
import { n as FormAssociated } from "./form-associated.js";
|
|
3
|
-
import { t as FormElement } from "./form-element.js";
|
|
4
3
|
import { t as Localized } from "./localized.js";
|
|
4
|
+
import { t as FormElement } from "./form-element.js";
|
|
5
5
|
import { Updates, attr, html, observable, when } from "@microsoft/fast-element";
|
|
6
6
|
import { classNames } from "@microsoft/fast-web-utilities";
|
|
7
7
|
//#region src/shared/color-picker/utils.ts
|
|
@@ -12,15 +12,11 @@ function parseHexColor(input) {
|
|
|
12
12
|
if (/^[0-9a-fA-F]{6}$/.test(hex)) return hex.toLowerCase();
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Check if input value is valid hex color
|
|
17
|
-
*/
|
|
15
|
+
/** Check if input value is valid hex color */
|
|
18
16
|
function isValidHexColor(input) {
|
|
19
17
|
return parseHexColor(input) !== null;
|
|
20
18
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Calculate the relative luminance of a hex color using WCAG formula
|
|
23
|
-
*/
|
|
19
|
+
/** Calculate the relative luminance of a hex color using WCAG formula */
|
|
24
20
|
function getLuminance(hexColor) {
|
|
25
21
|
const hex = parseHexColor(hexColor);
|
|
26
22
|
if (!hex) return 0;
|
|
@@ -32,9 +28,7 @@ function getLuminance(hexColor) {
|
|
|
32
28
|
const sB = b <= .03928 ? b / 12.92 : Math.pow((b + .055) / 1.055, 2.4);
|
|
33
29
|
return .2126 * sR + .7152 * sG + .0722 * sB;
|
|
34
30
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Calculate contrast ratio between two colors
|
|
37
|
-
*/
|
|
31
|
+
/** Calculate contrast ratio between two colors */
|
|
38
32
|
function getContrastRatio(color1, color2) {
|
|
39
33
|
const lum1 = getLuminance(color1);
|
|
40
34
|
const lum2 = getLuminance(color2);
|
|
@@ -42,18 +36,14 @@ function getContrastRatio(color1, color2) {
|
|
|
42
36
|
const darkest = Math.min(lum1, lum2);
|
|
43
37
|
return (brightest + .05) / (darkest + .05);
|
|
44
38
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Get CSS custom property value from the document
|
|
47
|
-
*/
|
|
39
|
+
/** Get CSS custom property value from the document */
|
|
48
40
|
function getCSSCustomProperty(propertyName, element) {
|
|
49
41
|
if (!element) element = document.querySelector(".vvd-root") || document.documentElement;
|
|
50
42
|
return getComputedStyle(element).getPropertyValue(propertyName).trim();
|
|
51
43
|
}
|
|
52
44
|
//#endregion
|
|
53
45
|
//#region src/shared/color-picker/base-color-picker.ts
|
|
54
|
-
/**
|
|
55
|
-
* Base mixin for Color Picker components
|
|
56
|
-
*/
|
|
46
|
+
/** Base mixin for Color Picker components */
|
|
57
47
|
var BaseColorPicker = (Base) => {
|
|
58
48
|
class BaseColorPickerElement extends Localized(FormElement(FormAssociated(Base))) {
|
|
59
49
|
constructor(..._args) {
|
|
@@ -69,72 +59,52 @@ var BaseColorPicker = (Base) => {
|
|
|
69
59
|
this._refreshCanvasColor();
|
|
70
60
|
});
|
|
71
61
|
}
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
62
|
+
/** @internal */
|
|
75
63
|
get _computedCanvasColor() {
|
|
76
64
|
if (!this._canvasColor) this._canvasColor = getCSSCustomProperty("--vvd-color-canvas", this);
|
|
77
65
|
return this._canvasColor;
|
|
78
66
|
}
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
67
|
+
/** @internal */
|
|
82
68
|
_refreshCanvasColor() {
|
|
83
69
|
this._canvasColor = getCSSCustomProperty("--vvd-color-canvas", this);
|
|
84
70
|
}
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
71
|
+
/** @internal */
|
|
88
72
|
_applyContrastClass(color, threshold = 3) {
|
|
89
73
|
if (!color) return false;
|
|
90
74
|
const canvasColor = this._computedCanvasColor;
|
|
91
75
|
if (!canvasColor) return false;
|
|
92
76
|
return getContrastRatio(color, canvasColor) < threshold;
|
|
93
77
|
}
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
78
|
+
/** @internal */
|
|
97
79
|
_getRowLength() {
|
|
98
80
|
return 7;
|
|
99
81
|
}
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
82
|
+
/** @internal */
|
|
103
83
|
_handleSwatchSelection(value) {
|
|
104
84
|
if (this.value === value) this.value = "";
|
|
105
85
|
else this.value = value;
|
|
106
86
|
this.$emit("change");
|
|
107
87
|
this.open = false;
|
|
108
88
|
}
|
|
109
|
-
/**
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
89
|
+
/** @internal */
|
|
112
90
|
/* v8 ignore next */
|
|
113
91
|
_handleColorSaving() {}
|
|
114
|
-
/**
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
92
|
+
/** @internal */
|
|
117
93
|
_getFocusReturnEl() {
|
|
118
94
|
return null;
|
|
119
95
|
}
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
*/
|
|
96
|
+
/** @internal */
|
|
123
97
|
_returnFocusToAnchor() {
|
|
124
98
|
const el = this._getFocusReturnEl();
|
|
125
99
|
if (!el) return;
|
|
126
100
|
Updates.enqueue(() => el.focus());
|
|
127
101
|
}
|
|
128
|
-
/**
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
102
|
+
/** @internal */
|
|
131
103
|
_getGridCells() {
|
|
132
104
|
const grid = this.shadowRoot?.querySelector("[role=\"grid\"]");
|
|
133
105
|
return grid ? Array.from(grid.querySelectorAll("[role=\"gridcell\"], [data-vvd-role=\"gridcell\"]")) : [];
|
|
134
106
|
}
|
|
135
|
-
/**
|
|
136
|
-
* @internal
|
|
137
|
-
*/
|
|
107
|
+
/** @internal */
|
|
138
108
|
_handleCellKeydown(event, value, index, isSaveCell) {
|
|
139
109
|
const rowLength = this._getRowLength();
|
|
140
110
|
const totalCells = this._getGridCells().length;
|
|
@@ -197,17 +167,13 @@ var BaseColorPicker = (Base) => {
|
|
|
197
167
|
default: return true;
|
|
198
168
|
}
|
|
199
169
|
}
|
|
200
|
-
/**
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
170
|
+
/** @internal */
|
|
203
171
|
_focusSwatchByIndex(index) {
|
|
204
172
|
const cells = this._getGridCells();
|
|
205
173
|
if (index < 0 || index >= cells.length) return;
|
|
206
174
|
cells[index]?.focus();
|
|
207
175
|
}
|
|
208
|
-
/**
|
|
209
|
-
* @internal
|
|
210
|
-
*/
|
|
176
|
+
/** @internal */
|
|
211
177
|
_renderColorSwatch(iconTag, tooltipTag) {
|
|
212
178
|
return html`
|
|
213
179
|
<${tooltipTag} placement="top"
|
|
@@ -6,38 +6,28 @@ let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
|
6
6
|
/**
|
|
7
7
|
* An Progress HTML Element.
|
|
8
8
|
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
9
|
*/
|
|
12
10
|
var BaseProgress = class extends require_vivid_element.VividElement {
|
|
13
11
|
constructor(..._args) {
|
|
14
12
|
super(..._args);
|
|
15
13
|
this.percentComplete = 0;
|
|
16
14
|
}
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
15
|
+
/** @internal */
|
|
20
16
|
valueChanged() {
|
|
21
17
|
/* v8 ignore if -- @preserve */
|
|
22
18
|
if (this.$fastController.isConnected) this.updatePercentComplete();
|
|
23
19
|
}
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
20
|
+
/** @internal */
|
|
27
21
|
minChanged() {
|
|
28
22
|
/* v8 ignore if -- @preserve */
|
|
29
23
|
if (this.$fastController.isConnected) this.updatePercentComplete();
|
|
30
24
|
}
|
|
31
|
-
/**
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
25
|
+
/** @private */
|
|
34
26
|
maxChanged() {
|
|
35
27
|
/* v8 ignore if -- @preserve */
|
|
36
28
|
if (this.$fastController.isConnected) this.updatePercentComplete();
|
|
37
29
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
30
|
+
/** @internal */
|
|
41
31
|
connectedCallback() {
|
|
42
32
|
super.connectedCallback();
|
|
43
33
|
this.updatePercentComplete();
|
|
@@ -5,38 +5,28 @@ import { attr, nullableNumberConverter, observable } from "@microsoft/fast-eleme
|
|
|
5
5
|
/**
|
|
6
6
|
* An Progress HTML Element.
|
|
7
7
|
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
8
|
-
*
|
|
9
|
-
* @public
|
|
10
8
|
*/
|
|
11
9
|
var BaseProgress = class extends VividElement {
|
|
12
10
|
constructor(..._args) {
|
|
13
11
|
super(..._args);
|
|
14
12
|
this.percentComplete = 0;
|
|
15
13
|
}
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
14
|
+
/** @internal */
|
|
19
15
|
valueChanged() {
|
|
20
16
|
/* v8 ignore if -- @preserve */
|
|
21
17
|
if (this.$fastController.isConnected) this.updatePercentComplete();
|
|
22
18
|
}
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
19
|
+
/** @internal */
|
|
26
20
|
minChanged() {
|
|
27
21
|
/* v8 ignore if -- @preserve */
|
|
28
22
|
if (this.$fastController.isConnected) this.updatePercentComplete();
|
|
29
23
|
}
|
|
30
|
-
/**
|
|
31
|
-
* @private
|
|
32
|
-
*/
|
|
24
|
+
/** @private */
|
|
33
25
|
maxChanged() {
|
|
34
26
|
/* v8 ignore if -- @preserve */
|
|
35
27
|
if (this.$fastController.isConnected) this.updatePercentComplete();
|
|
36
28
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
29
|
+
/** @internal */
|
|
40
30
|
connectedCallback() {
|
|
41
31
|
super.connectedCallback();
|
|
42
32
|
this.updatePercentComplete();
|
package/unbundled/button.cjs
CHANGED
|
@@ -11,8 +11,6 @@ let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
|
11
11
|
*
|
|
12
12
|
* @csspart control - The button element
|
|
13
13
|
* @csspart content - The element wrapping button content
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
14
|
*/
|
|
17
15
|
var VividFoundationButton = class extends require_delegates_aria.DelegatesAria(require_form_associated.FormAssociated(require_vivid_element.VividElement)) {
|
|
18
16
|
constructor(..._args) {
|
|
@@ -75,9 +73,7 @@ var VividFoundationButton = class extends require_delegates_aria.DelegatesAria(r
|
|
|
75
73
|
validate() {
|
|
76
74
|
super.validate(this.control);
|
|
77
75
|
}
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
76
|
+
/** @internal */
|
|
81
77
|
connectedCallback() {
|
|
82
78
|
super.connectedCallback();
|
|
83
79
|
this.proxy.setAttribute("type", this.type);
|
|
@@ -89,9 +85,7 @@ var VividFoundationButton = class extends require_delegates_aria.DelegatesAria(r
|
|
|
89
85
|
span.addEventListener("click", this.handleClick);
|
|
90
86
|
});
|
|
91
87
|
}
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
88
|
+
/** @internal */
|
|
95
89
|
disconnectedCallback() {
|
|
96
90
|
super.disconnectedCallback();
|
|
97
91
|
(this.control ? Array.from(this.control.children) : []).forEach((span) => {
|
package/unbundled/button.js
CHANGED
|
@@ -10,8 +10,6 @@ import { Updates, attr } from "@microsoft/fast-element";
|
|
|
10
10
|
*
|
|
11
11
|
* @csspart control - The button element
|
|
12
12
|
* @csspart content - The element wrapping button content
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
13
|
*/
|
|
16
14
|
var VividFoundationButton = class extends DelegatesAria(FormAssociated(VividElement)) {
|
|
17
15
|
constructor(..._args) {
|
|
@@ -74,9 +72,7 @@ var VividFoundationButton = class extends DelegatesAria(FormAssociated(VividElem
|
|
|
74
72
|
validate() {
|
|
75
73
|
super.validate(this.control);
|
|
76
74
|
}
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
75
|
+
/** @internal */
|
|
80
76
|
connectedCallback() {
|
|
81
77
|
super.connectedCallback();
|
|
82
78
|
this.proxy.setAttribute("type", this.type);
|
|
@@ -88,9 +84,7 @@ var VividFoundationButton = class extends DelegatesAria(FormAssociated(VividElem
|
|
|
88
84
|
span.addEventListener("click", this.handleClick);
|
|
89
85
|
});
|
|
90
86
|
}
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
87
|
+
/** @internal */
|
|
94
88
|
disconnectedCallback() {
|
|
95
89
|
super.disconnectedCallback();
|
|
96
90
|
(this.control ? Array.from(this.control.children) : []).forEach((span) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
require("./chunk.cjs");
|
|
2
2
|
const require_decorate = require("./decorate.cjs");
|
|
3
3
|
const require_definition = require("./definition6.cjs");
|
|
4
|
-
const require_definition$1 = require("./definition7.cjs");
|
|
5
4
|
const require_divider = require("./divider.cjs");
|
|
5
|
+
const require_definition$1 = require("./definition22.cjs");
|
|
6
6
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
7
7
|
let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
|
|
8
8
|
let date_fns = require("date-fns");
|
|
9
9
|
//#region src/shared/picker-field/mixins/calendar-picker.scss?inline
|
|
10
|
-
var calendar_picker_default = ".segments{gap:24px}@media (width>=648px){.segments{display:inline-flex}}.segment{flex-direction:column;gap:12px;display:flex}.segment .header{align-items:center;padding-block:8px;display:flex}.segment .title{flex-grow:1;justify-content:center;display:flex}.segment .title-action{block-size:24px;font:var(--vvd-typography-base-extended);border-radius:8px;padding-inline:8px}.calendar{flex-direction:column;gap:4px;margin-top:8px;display:flex}.calendar .calendar-separator{margin-inline:10px}.calendar .calendar-weekdays{justify-content:center;display:flex}.calendar .calendar-weekday{block-size:16px;font:var(--vvd-typography-base-condensed);justify-content:center;align-items:center;inline-size:40px;display:inline-flex}.calendar .calendar-week{justify-content:center;display:flex}.calendar .calendar-day{aspect-ratio:1;block-size:28px;font:var(--vvd-typography-base);border-radius:50%;justify-content:center;align-items:center;margin-inline:6px;display:inline-flex}.calendar .calendar-day.start,.calendar .calendar-day.end{border:2px solid var(--vvd-color-cta-50);background-color:var(--vvd-color-cta-200)}.calendar:focus-visible .calendar .calendar-day.start,.calendar:focus-visible .calendar .calendar-day.end{border-width:3px}.calendar .calendar-day:before,.calendar .calendar-day:after{z-index:-1;width:20px;height:28px;display:block;position:absolute}.calendar .calendar-day:before{right:50%}.calendar .calendar-day:after{left:50%}.calendar .calendar-day.range:before,.calendar .calendar-day.range:after{background-color:var(--vvd-color-cta-50)}.calendar .calendar-day.range:not(.start):before,.calendar .calendar-day.range:not(.end):after{content:\"\"}.calendar .calendar-day.outside-month,.calendar .calendar-day:disabled{color:var(--vvd-color-neutral-400)}.months-separator{margin-inline:-12px}.month-grid{flex-direction:column;gap:34px;display:flex}.month-grid .months-row{justify-content:center;gap:29px;display:flex}.month-grid .month{aspect-ratio:1;block-size:48px;font:var(--vvd-typography-base-extended);text-transform:uppercase;border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.month-grid .month:disabled{color:var(--vvd-color-neutral-400)}.button{--_connotation-color-primary:var(--vvd-date-picker-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-firm:var(--vvd-date-picker-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-faint:var(--vvd-date-picker-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-soft:var(--vvd-date-picker-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-dim:var(--vvd-date-picker-accent-dim,var(--vvd-color-neutral-200));--_connotation-color-pale:var(--vvd-date-picker-accent-pale,var(--vvd-color-neutral-300));--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.button:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.button.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.button:active:where(:not(.disabled,:disabled)),.button.active:where(:not(.disabled,:disabled)),.button.selected:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-soft);--_appearance-color-outline:transparent}@media (hover:hover){.button.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-dim);--_appearance-color-outline:transparent}}.button.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-dim);--_appearance-color-outline:transparent}.button.selected:disabled,.button.selected.disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:transparent}.button{background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer;border:none;padding:0;position:relative}.button:disabled{cursor:not-allowed}.button:focus-visible{--focus-stroke-gap-color:transparent;color:var(--vvd-color-canvas-text);box-shadow:0 0 0 4px color-mix(in
|
|
10
|
+
var calendar_picker_default = ".segments{gap:24px}@media (width>=648px){.segments{display:inline-flex}}.segment{flex-direction:column;gap:12px;display:flex}.segment .header{align-items:center;padding-block:8px;display:flex}.segment .title{flex-grow:1;justify-content:center;display:flex}.segment .title-action{block-size:24px;font:var(--vvd-typography-base-extended);border-radius:8px;padding-inline:8px}.calendar{flex-direction:column;gap:4px;margin-top:8px;display:flex}.calendar .calendar-separator{margin-inline:10px}.calendar .calendar-weekdays{justify-content:center;display:flex}.calendar .calendar-weekday{block-size:16px;font:var(--vvd-typography-base-condensed);justify-content:center;align-items:center;inline-size:40px;display:inline-flex}.calendar .calendar-week{justify-content:center;display:flex}.calendar .calendar-day{aspect-ratio:1;block-size:28px;font:var(--vvd-typography-base);border-radius:50%;justify-content:center;align-items:center;margin-inline:6px;display:inline-flex}.calendar .calendar-day.start,.calendar .calendar-day.end{border:2px solid var(--vvd-color-cta-50);background-color:var(--vvd-color-cta-200)}.calendar:focus-visible .calendar .calendar-day.start,.calendar:focus-visible .calendar .calendar-day.end{border-width:3px}.calendar .calendar-day:before,.calendar .calendar-day:after{z-index:-1;width:20px;height:28px;display:block;position:absolute}.calendar .calendar-day:before{right:50%}.calendar .calendar-day:after{left:50%}.calendar .calendar-day.range:before,.calendar .calendar-day.range:after{background-color:var(--vvd-color-cta-50)}.calendar .calendar-day.range:not(.start):before,.calendar .calendar-day.range:not(.end):after{content:\"\"}.calendar .calendar-day.outside-month,.calendar .calendar-day:disabled{color:var(--vvd-color-neutral-400)}.months-separator{margin-inline:-12px}.month-grid{flex-direction:column;gap:34px;display:flex}.month-grid .months-row{justify-content:center;gap:29px;display:flex}.month-grid .month{aspect-ratio:1;block-size:48px;font:var(--vvd-typography-base-extended);text-transform:uppercase;border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.month-grid .month:disabled{color:var(--vvd-color-neutral-400)}.button{--_connotation-color-primary:var(--vvd-date-picker-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-firm:var(--vvd-date-picker-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-faint:var(--vvd-date-picker-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-soft:var(--vvd-date-picker-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-dim:var(--vvd-date-picker-accent-dim,var(--vvd-color-neutral-200));--_connotation-color-pale:var(--vvd-date-picker-accent-pale,var(--vvd-color-neutral-300));--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.button:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.button.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.button:active:where(:not(.disabled,:disabled)),.button.active:where(:not(.disabled,:disabled)),.button.selected:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-soft);--_appearance-color-outline:transparent}@media (hover:hover){.button.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-dim);--_appearance-color-outline:transparent}}.button.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-dim);--_appearance-color-outline:transparent}.button.selected:disabled,.button.selected.disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:transparent}.button{background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer;border:none;padding:0;position:relative}.button:disabled{cursor:not-allowed}.button:focus-visible{--focus-stroke-gap-color:transparent;color:var(--vvd-color-canvas-text);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))}.button:focus-visible.start,.button:focus-visible.end{border-width:3px}.button.current{border:1px solid var(--vvd-color-neutral-200)}.button.selected{border:1px solid var(--vvd-color-neutral-900)}";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js
|
|
13
13
|
function addLeadingZeros(number, targetLength) {
|
|
@@ -4491,9 +4491,7 @@ var buildCalendarGrid = (month, locale) => {
|
|
|
4491
4491
|
*/
|
|
4492
4492
|
var CalendarPicker = (Base) => {
|
|
4493
4493
|
class CalendarPickerElement extends Base {
|
|
4494
|
-
/**
|
|
4495
|
-
* @internal
|
|
4496
|
-
*/
|
|
4494
|
+
/** @internal */
|
|
4497
4495
|
_adjustSelectedMonthToEnsureVisibilityOf(date) {
|
|
4498
4496
|
const month = monthOfDate(date);
|
|
4499
4497
|
const firstDisplayedMonth = this._selectedMonth;
|
|
@@ -4507,9 +4505,7 @@ var CalendarPicker = (Base) => {
|
|
|
4507
4505
|
}
|
|
4508
4506
|
return false;
|
|
4509
4507
|
}
|
|
4510
|
-
/**
|
|
4511
|
-
* @internal
|
|
4512
|
-
*/
|
|
4508
|
+
/** @internal */
|
|
4513
4509
|
_isDateInValidRange(date) {
|
|
4514
4510
|
return (!this._resolvedMinDate || compareDateStr(date, this._resolvedMinDate) >= 0) && (!this._resolvedMaxDate || compareDateStr(date, this._resolvedMaxDate) <= 0);
|
|
4515
4511
|
}
|
|
@@ -4519,9 +4515,7 @@ var CalendarPicker = (Base) => {
|
|
|
4519
4515
|
#isMonthBeforeValidRange(month) {
|
|
4520
4516
|
return this._resolvedMinDate && compareMonths(month, monthOfDate(this._resolvedMinDate)) < 0;
|
|
4521
4517
|
}
|
|
4522
|
-
/**
|
|
4523
|
-
* @internal
|
|
4524
|
-
*/
|
|
4518
|
+
/** @internal */
|
|
4525
4519
|
_isMonthInValidRange(month) {
|
|
4526
4520
|
return !(this.#isMonthBeforeValidRange(month) || this.#isMonthAfterValidRange(month));
|
|
4527
4521
|
}
|
|
@@ -4537,16 +4531,12 @@ var CalendarPicker = (Base) => {
|
|
|
4537
4531
|
this._lastFocussedMonth = null;
|
|
4538
4532
|
this.value = "";
|
|
4539
4533
|
}
|
|
4540
|
-
/**
|
|
4541
|
-
* @internal
|
|
4542
|
-
*/
|
|
4534
|
+
/** @internal */
|
|
4543
4535
|
_closePopup(restoreFocusToTextField = true) {
|
|
4544
4536
|
super._closePopup(restoreFocusToTextField);
|
|
4545
4537
|
this._monthPickerYear = null;
|
|
4546
4538
|
}
|
|
4547
|
-
/**
|
|
4548
|
-
* @internal
|
|
4549
|
-
*/
|
|
4539
|
+
/** @internal */
|
|
4550
4540
|
_onPickerButtonClick() {
|
|
4551
4541
|
super._onPickerButtonClick();
|
|
4552
4542
|
if (this._popupOpen) {
|
|
@@ -4555,23 +4545,17 @@ var CalendarPicker = (Base) => {
|
|
|
4555
4545
|
if (tabbableDate) this.shadowRoot.querySelector(`[data-date="${tabbableDate}"]`).focus();
|
|
4556
4546
|
}
|
|
4557
4547
|
}
|
|
4558
|
-
/**
|
|
4559
|
-
* @internal
|
|
4560
|
-
*/
|
|
4548
|
+
/** @internal */
|
|
4561
4549
|
_onTitleActionClick() {
|
|
4562
4550
|
if (this._inMonthPicker) this._monthPickerYear = null;
|
|
4563
4551
|
else this._monthPickerYear = this._selectedMonth.year;
|
|
4564
4552
|
}
|
|
4565
|
-
/**
|
|
4566
|
-
* @internal
|
|
4567
|
-
*/
|
|
4553
|
+
/** @internal */
|
|
4568
4554
|
get _isPrevYearDisabled() {
|
|
4569
4555
|
const prevYear = (this._inMonthPicker ? this._monthPickerYear : this._selectedMonth.year) - 1;
|
|
4570
4556
|
return this._resolvedMinDate && prevYear < yearOfDate(this._resolvedMinDate);
|
|
4571
4557
|
}
|
|
4572
|
-
/**
|
|
4573
|
-
* @internal
|
|
4574
|
-
*/
|
|
4558
|
+
/** @internal */
|
|
4575
4559
|
_onPrevYearClick() {
|
|
4576
4560
|
if (this._inMonthPicker) this._monthPickerYear = this._monthPickerYear - 1;
|
|
4577
4561
|
else this._selectedMonth = {
|
|
@@ -4579,16 +4563,12 @@ var CalendarPicker = (Base) => {
|
|
|
4579
4563
|
month: this._selectedMonth.month
|
|
4580
4564
|
};
|
|
4581
4565
|
}
|
|
4582
|
-
/**
|
|
4583
|
-
* @internal
|
|
4584
|
-
*/
|
|
4566
|
+
/** @internal */
|
|
4585
4567
|
get _isNextYearDisabled() {
|
|
4586
4568
|
const nextYear = (this._inMonthPicker ? this._monthPickerYear : this._selectedMonth.year) + 1;
|
|
4587
4569
|
return this._resolvedMaxDate && nextYear > yearOfDate(this._resolvedMaxDate);
|
|
4588
4570
|
}
|
|
4589
|
-
/**
|
|
4590
|
-
* @internal
|
|
4591
|
-
*/
|
|
4571
|
+
/** @internal */
|
|
4592
4572
|
_onNextYearClick() {
|
|
4593
4573
|
if (this._inMonthPicker) this._monthPickerYear = this._monthPickerYear + 1;
|
|
4594
4574
|
else this._selectedMonth = {
|
|
@@ -4596,33 +4576,23 @@ var CalendarPicker = (Base) => {
|
|
|
4596
4576
|
month: this._selectedMonth.month
|
|
4597
4577
|
};
|
|
4598
4578
|
}
|
|
4599
|
-
/**
|
|
4600
|
-
* @internal
|
|
4601
|
-
*/
|
|
4579
|
+
/** @internal */
|
|
4602
4580
|
get _isPrevMonthDisabled() {
|
|
4603
4581
|
return this.#isMonthBeforeValidRange(addMonths(this._selectedMonth, -1));
|
|
4604
4582
|
}
|
|
4605
|
-
/**
|
|
4606
|
-
* @internal
|
|
4607
|
-
*/
|
|
4583
|
+
/** @internal */
|
|
4608
4584
|
_onPrevMonthClick() {
|
|
4609
4585
|
this._selectedMonth = addMonths(this._selectedMonth, -1);
|
|
4610
4586
|
}
|
|
4611
|
-
/**
|
|
4612
|
-
* @internal
|
|
4613
|
-
*/
|
|
4587
|
+
/** @internal */
|
|
4614
4588
|
get _isNextMonthDisabled() {
|
|
4615
4589
|
return this.#isMonthAfterValidRange(addMonths(this._selectedMonth, 1));
|
|
4616
4590
|
}
|
|
4617
|
-
/**
|
|
4618
|
-
* @internal
|
|
4619
|
-
*/
|
|
4591
|
+
/** @internal */
|
|
4620
4592
|
_onNextMonthClick() {
|
|
4621
4593
|
this._selectedMonth = addMonths(this._selectedMonth, 1);
|
|
4622
4594
|
}
|
|
4623
|
-
/**
|
|
4624
|
-
* @internal
|
|
4625
|
-
*/
|
|
4595
|
+
/** @internal */
|
|
4626
4596
|
get _segments() {
|
|
4627
4597
|
const segments = [];
|
|
4628
4598
|
if (this._inMonthPicker) segments.push({
|
|
@@ -4655,9 +4625,7 @@ var CalendarPicker = (Base) => {
|
|
|
4655
4625
|
}
|
|
4656
4626
|
return segments;
|
|
4657
4627
|
}
|
|
4658
|
-
/**
|
|
4659
|
-
* @internal
|
|
4660
|
-
*/
|
|
4628
|
+
/** @internal */
|
|
4661
4629
|
_isDateSelected(_) {
|
|
4662
4630
|
return false;
|
|
4663
4631
|
}
|
|
@@ -4668,25 +4636,17 @@ var CalendarPicker = (Base) => {
|
|
|
4668
4636
|
_isDateInSelectedRange(_) {
|
|
4669
4637
|
return false;
|
|
4670
4638
|
}
|
|
4671
|
-
/**
|
|
4672
|
-
* @internal
|
|
4673
|
-
*/
|
|
4639
|
+
/** @internal */
|
|
4674
4640
|
_isDateRangeStart(_) {
|
|
4675
4641
|
return false;
|
|
4676
4642
|
}
|
|
4677
|
-
/**
|
|
4678
|
-
* @internal
|
|
4679
|
-
*/
|
|
4643
|
+
/** @internal */
|
|
4680
4644
|
_isDateRangeEnd(_) {
|
|
4681
4645
|
return false;
|
|
4682
4646
|
}
|
|
4683
|
-
/**
|
|
4684
|
-
* @internal
|
|
4685
|
-
*/
|
|
4647
|
+
/** @internal */
|
|
4686
4648
|
_onDateMouseEnter(_) {}
|
|
4687
|
-
/**
|
|
4688
|
-
* @internal
|
|
4689
|
-
*/
|
|
4649
|
+
/** @internal */
|
|
4690
4650
|
_onDateMouseLeave(_) {}
|
|
4691
4651
|
/**
|
|
4692
4652
|
* Handle keydown on a date in the calendar.
|
|
@@ -4705,9 +4665,7 @@ var CalendarPicker = (Base) => {
|
|
|
4705
4665
|
}
|
|
4706
4666
|
return true;
|
|
4707
4667
|
}
|
|
4708
|
-
/**
|
|
4709
|
-
* @internal
|
|
4710
|
-
*/
|
|
4668
|
+
/** @internal */
|
|
4711
4669
|
_onDateFocus(date) {
|
|
4712
4670
|
this._lastFocussedDate = date;
|
|
4713
4671
|
}
|
|
@@ -4727,9 +4685,7 @@ var CalendarPicker = (Base) => {
|
|
|
4727
4685
|
const lastVisibleMonth = addMonths(this._selectedMonth, this._numCalendars - 1);
|
|
4728
4686
|
return candidates.find((date) => date && compareMonths(monthOfDate(date), firstVisibleMonth) >= 0 && compareMonths(monthOfDate(date), lastVisibleMonth) <= 0 && this._isDateInValidRange(date)) ?? null;
|
|
4729
4687
|
}
|
|
4730
|
-
/**
|
|
4731
|
-
* @internal
|
|
4732
|
-
*/
|
|
4688
|
+
/** @internal */
|
|
4733
4689
|
get _inMonthPicker() {
|
|
4734
4690
|
return this._monthPickerYear !== null;
|
|
4735
4691
|
}
|
|
@@ -4761,9 +4717,7 @@ var CalendarPicker = (Base) => {
|
|
|
4761
4717
|
}
|
|
4762
4718
|
return true;
|
|
4763
4719
|
}
|
|
4764
|
-
/**
|
|
4765
|
-
* @internal
|
|
4766
|
-
*/
|
|
4720
|
+
/** @internal */
|
|
4767
4721
|
_onMonthFocus(month) {
|
|
4768
4722
|
this._lastFocussedMonth = month;
|
|
4769
4723
|
}
|
|
@@ -4803,14 +4757,10 @@ var ValidDateFilter = {
|
|
|
4803
4757
|
return value;
|
|
4804
4758
|
}
|
|
4805
4759
|
};
|
|
4806
|
-
/**
|
|
4807
|
-
* Mixin for calendar pickers where min/max is a date.
|
|
4808
|
-
*/
|
|
4760
|
+
/** Mixin for calendar pickers where min/max is a date. */
|
|
4809
4761
|
var MinMaxCalendarPicker = (SuperClass) => {
|
|
4810
4762
|
class MinMaxDatePickerElement extends SuperClass {
|
|
4811
|
-
/**
|
|
4812
|
-
* @internal
|
|
4813
|
-
*/
|
|
4763
|
+
/** @internal */
|
|
4814
4764
|
minChanged(_, newMin) {
|
|
4815
4765
|
/* v8 ignore if -- @preserve */
|
|
4816
4766
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -4818,15 +4768,11 @@ var MinMaxCalendarPicker = (SuperClass) => {
|
|
|
4818
4768
|
this.validate();
|
|
4819
4769
|
}
|
|
4820
4770
|
}
|
|
4821
|
-
/**
|
|
4822
|
-
* @internal
|
|
4823
|
-
*/
|
|
4771
|
+
/** @internal */
|
|
4824
4772
|
get _resolvedMinDate() {
|
|
4825
4773
|
return this.min;
|
|
4826
4774
|
}
|
|
4827
|
-
/**
|
|
4828
|
-
* @internal
|
|
4829
|
-
*/
|
|
4775
|
+
/** @internal */
|
|
4830
4776
|
maxChanged(_, newMax) {
|
|
4831
4777
|
/* v8 ignore if -- @preserve */
|
|
4832
4778
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -4854,7 +4800,7 @@ var MinMaxCalendarPicker = (SuperClass) => {
|
|
|
4854
4800
|
//#endregion
|
|
4855
4801
|
//#region src/shared/picker-field/mixins/calendar-picker.template.ts
|
|
4856
4802
|
function renderDialogHeader(context) {
|
|
4857
|
-
const buttonTag = context.tagFor(require_definition
|
|
4803
|
+
const buttonTag = context.tagFor(require_definition.Button);
|
|
4858
4804
|
return _microsoft_fast_element.html`<div class="header" tabindex="-1">
|
|
4859
4805
|
${(0, _microsoft_fast_element.when)((x) => x.prevYearButton, _microsoft_fast_element.html`
|
|
4860
4806
|
<${buttonTag}
|
|
@@ -4928,7 +4874,7 @@ function renderDialogHeader(context) {
|
|
|
4928
4874
|
}
|
|
4929
4875
|
function renderCalendarGrid(context) {
|
|
4930
4876
|
const dividerTag = context.tagFor(require_divider.Divider);
|
|
4931
|
-
const visuallyHiddenTag = context.tagFor(require_definition.VisuallyHidden);
|
|
4877
|
+
const visuallyHiddenTag = context.tagFor(require_definition$1.VisuallyHidden);
|
|
4932
4878
|
return _microsoft_fast_element.html`
|
|
4933
4879
|
<div
|
|
4934
4880
|
class='calendar'
|