@vonage/vivid 5.23.1 → 5.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/accordion-item/index.cjs +1 -1
- package/accordion-item/index.js +1 -1
- package/audio-player/index.cjs +2 -2
- package/audio-player/index.js +3 -3
- package/avatar/index.cjs +10 -10
- package/avatar/index.js +4 -3
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb-item/index.cjs +9 -5
- package/breadcrumb-item/index.js +11 -6
- package/bundled/affix.cjs +1 -1
- package/bundled/affix.js +1 -1
- package/bundled/definition10.cjs +2 -1
- package/bundled/definition10.js +3 -2
- package/bundled/definition11.cjs +4 -4
- package/bundled/definition11.js +4 -3
- package/bundled/definition12.cjs +1 -1
- package/bundled/definition12.js +1 -0
- package/bundled/definition15.cjs +8 -7
- package/bundled/definition15.js +27 -24
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +22 -109
- package/bundled/definition18.cjs +12 -83
- package/bundled/definition18.js +20 -426
- package/bundled/definition19.cjs +87 -7
- package/bundled/definition19.js +433 -16
- package/bundled/definition20.cjs +7 -37
- package/bundled/definition20.js +17 -172
- package/bundled/definition21.cjs +35 -27
- package/bundled/definition21.js +155 -154
- package/bundled/definition22.cjs +29 -6
- package/bundled/definition22.js +172 -20
- package/bundled/definition23.cjs +6 -12
- package/bundled/definition23.js +17 -32
- package/bundled/definition24.cjs +12 -39
- package/bundled/definition24.js +33 -67
- package/bundled/definition25.cjs +44 -0
- package/bundled/definition25.js +81 -0
- package/bundled/definition3.cjs +5 -5
- package/bundled/definition3.js +10 -40
- package/bundled/definition4.cjs +6 -6
- package/bundled/definition4.js +4 -3
- package/bundled/definition6.cjs +11 -11
- package/bundled/definition6.js +4 -3
- package/bundled/definition9.cjs +12 -6
- package/bundled/definition9.js +66 -43
- package/bundled/extractOptions.cjs +1 -0
- package/bundled/extractOptions.js +11 -0
- package/bundled/icon.cjs +1 -0
- package/bundled/icon.js +34 -0
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +28 -12
- package/bundled/mixins.cjs +8 -8
- package/bundled/mixins.js +4 -3
- package/bundled/optgroup.cjs +1 -0
- package/bundled/optgroup.js +27 -0
- package/bundled/option.cjs +1 -0
- package/bundled/option.js +93 -0
- package/bundled/render-in-light-dom.cjs +1 -1
- package/bundled/render-in-light-dom.js +16 -19
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +9 -1
- package/card/index.cjs +22 -22
- package/card/index.js +4 -3
- package/color-picker/index.cjs +18 -18
- package/color-picker/index.js +4 -3
- package/combobox/definition.cjs +1 -1
- package/combobox/definition.js +1 -1
- package/combobox/index.cjs +7 -7
- package/combobox/index.js +31 -21
- package/country/definition.cjs +1 -1
- package/country/definition.js +1 -1
- package/country/index.cjs +1 -1
- package/country/index.js +1 -1
- package/country-group/definition.cjs +1 -1
- package/country-group/definition.js +1 -1
- package/country-group/index.cjs +1 -1
- package/country-group/index.js +2 -2
- package/custom-elements.json +8438 -7866
- package/data-grid/definition.cjs +1 -1
- package/data-grid/definition.js +1 -1
- package/data-grid/index.cjs +26 -26
- package/data-grid/index.js +9 -8
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/date-range-picker/definition.cjs +1 -1
- package/date-range-picker/definition.js +1 -1
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +1 -1
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +1 -1
- package/dial-pad/definition.cjs +1 -1
- package/dial-pad/definition.js +1 -1
- package/dial-pad/index.cjs +7 -7
- package/dial-pad/index.js +124 -54
- package/dialog/definition.cjs +1 -1
- package/dialog/definition.js +1 -1
- package/dialog/index.cjs +14 -14
- package/dialog/index.js +4 -3
- package/divider/definition.cjs +1 -1
- package/divider/definition.js +1 -1
- package/divider/index.cjs +1 -1
- package/divider/index.js +1 -1
- package/empty-state/definition.cjs +1 -1
- package/empty-state/definition.js +1 -1
- package/empty-state/index.cjs +3 -3
- package/empty-state/index.js +4 -3
- package/fab/definition.cjs +1 -1
- package/fab/definition.js +1 -1
- package/file-picker/definition.cjs +1 -1
- package/file-picker/definition.js +1 -1
- package/file-picker/index.cjs +7 -7
- package/file-picker/index.js +4 -3
- package/flag/definition.cjs +1 -1
- package/flag/definition.js +1 -1
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/header/index.cjs +3 -3
- package/header/index.js +3 -3
- package/icon/definition.cjs +2 -1
- package/icon/definition.js +2 -1
- package/index.cjs +209 -198
- package/index.js +59 -54
- package/kbd-key/definition.cjs +1 -1
- package/kbd-key/definition.js +1 -1
- package/kbd-shortcut/definition.cjs +1 -1
- package/kbd-shortcut/definition.js +1 -1
- package/layout/definition.cjs +1 -1
- package/layout/definition.js +1 -1
- package/lib/accordion-item/accordion-item.d.ts +3 -1
- package/lib/action-group/action-group.d.ts +1 -1
- package/lib/alert/alert.d.ts +2 -2
- package/lib/audio-player/audio-player.d.ts +1 -1
- package/lib/avatar/avatar.d.ts +1 -1
- package/lib/badge/badge.d.ts +1 -1
- package/lib/banner/banner.d.ts +3 -3
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/button/button.d.ts +3 -3
- package/lib/calendar-event/calendar-event.d.ts +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +6 -6
- package/lib/color-picker/color-picker.d.ts +7 -7
- package/lib/combobox/combobox.d.ts +8 -8
- package/lib/components.d.ts +2 -0
- package/lib/country-group/country-group.d.ts +2 -2
- package/lib/data-grid/data-grid-cell.d.ts +4 -3
- package/lib/data-grid/data-grid-row.d.ts +3 -2
- package/lib/data-grid/data-grid.options.d.ts +5 -0
- package/lib/date-picker/date-picker.d.ts +8 -8
- package/lib/date-range-picker/date-range-picker.d.ts +4 -4
- package/lib/date-time-picker/date-time-picker.d.ts +8 -8
- package/lib/dial-pad/dial-pad.d.ts +2 -2
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/divider/divider.d.ts +1 -1
- package/lib/fab/fab.d.ts +1 -1
- package/lib/file-picker/file-picker.d.ts +7 -7
- package/lib/header/header.d.ts +1 -1
- package/lib/listbox/definition.d.ts +3 -0
- package/lib/listbox/index.d.ts +1 -0
- package/lib/listbox/listbox.d.ts +1302 -0
- package/lib/listbox/listbox.template.d.ts +3 -0
- package/lib/listbox/variations.browser-spec.d.ts +1 -0
- package/lib/menu/menu.d.ts +2 -3
- package/lib/menu-item/menu-item.d.ts +3 -3
- package/lib/nav/nav.d.ts +1 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +2 -2
- package/lib/nav-item/nav-item.d.ts +2 -2
- package/lib/note/note.d.ts +1 -1
- package/lib/number-field/number-field.d.ts +9 -10
- package/lib/optgroup/definition.d.ts +3 -0
- package/lib/optgroup/index.d.ts +1 -0
- package/lib/optgroup/optgroup.d.ts +430 -0
- package/lib/optgroup/optgroup.template.d.ts +2 -0
- package/lib/optgroup/variations.browser-spec.d.ts +1 -0
- package/lib/option/option.d.ts +2 -2
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/popover/popover.d.ts +2 -2
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +1 -1
- package/lib/radio/radio.d.ts +3 -3
- package/lib/radio-group/radio-group.d.ts +1 -1
- package/lib/range-slider/range-slider.d.ts +3 -3
- package/lib/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/base.d.ts +1 -0
- package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -2
- package/lib/searchable-select/option-tag.d.ts +1 -1
- package/lib/searchable-select/searchable-select.d.ts +47 -47
- package/lib/select/select.d.ts +9 -9
- package/lib/selectable-box/selectable-box.d.ts +1 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +2 -2
- package/lib/slider/slider.d.ts +3 -3
- package/lib/split-button/split-button.d.ts +3 -3
- package/lib/status/status.d.ts +1 -1
- package/lib/switch/switch.d.ts +2 -2
- package/lib/tab/tab.d.ts +3 -3
- package/lib/tab-panel/tab-panel.d.ts +1 -1
- package/lib/table/table-cell.d.ts +1 -1
- package/lib/table/table-header-cell.d.ts +1 -1
- package/lib/table/table-row.d.ts +1 -1
- package/lib/table/table-sorting-button.d.ts +1 -1
- package/lib/tag/tag.d.ts +3 -3
- package/lib/tag-group/tag-group.d.ts +1 -1
- package/lib/tag-name-map.d.ts +3 -1
- package/lib/text-area/text-area.d.ts +8 -8
- package/lib/text-field/text-field.d.ts +10 -9
- package/lib/time-picker/time-picker.d.ts +4 -4
- package/lib/toggletip/toggletip.d.ts +3 -2
- package/lib/tooltip/tooltip.d.ts +3 -2
- package/lib/tree-item/tree-item.d.ts +2 -2
- package/lib/tree-view/tree-view.d.ts +1 -1
- package/lib/video-player/video-player.d.ts +1 -1
- package/listbox/definition.cjs +5 -0
- package/listbox/definition.js +2 -0
- package/listbox/index.cjs +11 -0
- package/listbox/index.js +540 -0
- package/menu/index.cjs +1 -1
- package/menu/index.js +1 -1
- package/menu-item/index.cjs +1 -1
- package/menu-item/index.js +1 -1
- package/nav/definition.cjs +1 -1
- package/nav/definition.js +1 -1
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-disclosure/index.cjs +4 -4
- package/nav-disclosure/index.js +4 -3
- package/nav-item/definition.cjs +1 -1
- package/nav-item/definition.js +1 -1
- package/note/definition.cjs +1 -1
- package/note/definition.js +1 -1
- package/number-field/definition.cjs +1 -1
- package/number-field/definition.js +1 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/optgroup/definition.cjs +6 -0
- package/optgroup/definition.js +3 -0
- package/optgroup/index.cjs +1 -0
- package/optgroup/index.js +4 -0
- package/option/definition.cjs +2 -1
- package/option/definition.js +2 -1
- package/package.json +9 -8
- package/pagination/definition.cjs +1 -1
- package/pagination/definition.js +1 -1
- package/platform-switch/definition.cjs +1 -1
- package/platform-switch/definition.js +1 -1
- package/popover/definition.cjs +1 -1
- package/popover/definition.js +1 -1
- package/popover/index.cjs +5 -5
- package/popover/index.js +4 -3
- package/progress/definition.cjs +1 -1
- package/progress/definition.js +1 -1
- package/radio/definition.cjs +1 -1
- package/radio/definition.js +1 -1
- package/radio-group/definition.cjs +1 -1
- package/radio-group/definition.js +1 -1
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/rich-text-editor/definition.cjs +1 -1
- package/rich-text-editor/definition.js +1 -1
- package/rich-text-editor/index.cjs +13 -13
- package/rich-text-editor/index.js +26 -23
- package/rich-text-view/definition.cjs +1 -1
- package/rich-text-view/definition.js +1 -1
- package/searchable-select/definition.cjs +1 -1
- package/searchable-select/definition.js +1 -1
- package/searchable-select/index.cjs +23 -23
- package/searchable-select/index.js +67 -49
- package/select/definition.cjs +1 -1
- package/select/definition.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/shared/aria/delegates-aria.d.ts +1 -1
- package/shared/aria/host-semantics.d.ts +1 -1
- package/shared/color-picker/base-color-picker.d.ts +1 -1
- package/shared/feedback/feedback-message.d.ts +1 -1
- package/shared/feedback/mixins.d.ts +2 -2
- package/shared/foundation/button/button.d.ts +2 -2
- package/shared/foundation/form-associated/form-associated.d.ts +2 -2
- package/shared/foundation/listbox/extractOptions.d.ts +2 -0
- package/shared/foundation/listbox/listbox.d.ts +2 -0
- package/shared/listbox/commands.d.ts +17 -0
- package/shared/listbox/move.d.ts +6 -0
- package/shared/listbox/options.d.ts +12 -0
- package/shared/listbox/selection.d.ts +28 -0
- package/shared/listbox/state.d.ts +26 -0
- package/shared/listbox/typeahead.d.ts +8 -0
- package/shared/listbox/with-options-filter.d.ts +440 -0
- package/shared/listbox/with-options.d.ts +862 -0
- package/shared/patterns/affix.d.ts +2 -2
- package/shared/patterns/anchored.d.ts +2 -2
- package/shared/patterns/char-count/char-count.d.ts +1 -1
- package/shared/patterns/form-elements/form-element.d.ts +1 -1
- package/shared/patterns/form-elements/with-contextual-help.d.ts +1 -1
- package/shared/patterns/form-elements/with-error-text.d.ts +1 -1
- package/shared/patterns/form-elements/with-success-text.d.ts +1 -1
- package/shared/patterns/kbd-shortcut.d.ts +1 -1
- package/shared/patterns/linkable.d.ts +1 -1
- package/shared/patterns/localized.d.ts +2 -2
- package/shared/patterns/trapped-focus.d.ts +1 -1
- package/shared/picker-field/mixins/calendar-picker.d.ts +2 -2
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +2 -2
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +1 -1
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +2 -2
- package/shared/picker-field/mixins/single-date-picker.d.ts +2 -2
- package/shared/picker-field/mixins/single-value-picker.d.ts +2 -2
- package/shared/picker-field/mixins/time-selection-picker.d.ts +2 -2
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +4 -4
- package/shared/picker-field/picker-field.d.ts +7 -7
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +1 -1
- package/simple-color-picker/definition.cjs +1 -1
- package/simple-color-picker/definition.js +1 -1
- package/simple-color-picker/index.cjs +6 -6
- package/simple-color-picker/index.js +4 -3
- package/split-button/definition.cjs +1 -1
- package/split-button/definition.js +1 -1
- package/split-button/index.cjs +1 -0
- package/split-button/index.js +1 -0
- package/status/definition.cjs +1 -1
- package/status/definition.js +1 -1
- package/switch/definition.cjs +1 -1
- package/switch/definition.js +1 -1
- package/switch/index.cjs +6 -5
- package/switch/index.js +16 -14
- package/tab/definition.cjs +1 -1
- package/tab/definition.js +1 -1
- package/tab-panel/definition.cjs +1 -1
- package/tab-panel/definition.js +1 -1
- package/table/definition.cjs +1 -1
- package/table/definition.js +1 -1
- package/table/index.cjs +13 -13
- package/table/index.js +4 -3
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +1 -1
- package/tag/definition.cjs +1 -1
- package/tag/definition.js +1 -1
- package/tag/index.cjs +11 -11
- package/tag/index.js +4 -3
- package/tag-group/definition.cjs +1 -1
- package/tag-group/definition.js +1 -1
- package/text-area/definition.cjs +1 -1
- package/text-area/definition.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/unbundled/affix.cjs +2 -2
- package/unbundled/affix.js +1 -1
- package/unbundled/base-progress.cjs +1 -1
- package/unbundled/base-progress.js +1 -1
- package/unbundled/button.cjs +2 -2
- package/unbundled/button.js +2 -2
- package/unbundled/definition.cjs +2 -65
- package/unbundled/definition.js +4 -61
- package/unbundled/definition11.cjs +4 -3
- package/unbundled/definition11.js +3 -2
- package/unbundled/definition12.cjs +3 -2
- package/unbundled/definition12.js +3 -2
- package/unbundled/definition13.cjs +1 -1
- package/unbundled/definition13.js +1 -1
- package/unbundled/definition14.cjs +2 -1
- package/unbundled/definition14.js +2 -1
- package/unbundled/definition17.cjs +9 -4
- package/unbundled/definition17.js +9 -4
- package/unbundled/definition2.cjs +14 -3
- package/unbundled/definition2.js +15 -4
- package/unbundled/definition21.cjs +2 -1
- package/unbundled/definition21.js +2 -1
- package/unbundled/definition23.cjs +3 -1
- package/unbundled/definition23.js +4 -2
- package/unbundled/definition24.cjs +6 -4
- package/unbundled/definition24.js +6 -4
- package/unbundled/definition25.cjs +2 -1
- package/unbundled/definition25.js +2 -1
- package/unbundled/definition26.cjs +7 -4
- package/unbundled/definition26.js +7 -4
- package/unbundled/definition27.cjs +39 -5
- package/unbundled/definition27.js +40 -6
- package/unbundled/definition28.cjs +4 -3
- package/unbundled/definition28.js +4 -3
- package/unbundled/definition29.cjs +5 -168
- package/unbundled/definition29.js +11 -162
- package/unbundled/definition30.cjs +26 -506
- package/unbundled/definition30.js +24 -498
- package/unbundled/definition31.cjs +503 -39
- package/unbundled/definition31.js +501 -37
- package/unbundled/definition32.cjs +39 -239
- package/unbundled/definition32.js +36 -236
- package/unbundled/definition33.cjs +236 -74
- package/unbundled/definition33.js +233 -71
- package/unbundled/definition34.cjs +74 -1968
- package/unbundled/definition34.js +70 -1940
- package/unbundled/definition35.cjs +1993 -26
- package/unbundled/definition35.js +1965 -27
- package/unbundled/definition36.cjs +26 -111
- package/unbundled/definition36.js +23 -103
- package/unbundled/definition37.cjs +53 -294
- package/unbundled/definition37.js +50 -291
- package/unbundled/definition38.cjs +282 -132
- package/unbundled/definition38.js +279 -129
- package/unbundled/definition39.cjs +165 -339
- package/unbundled/definition39.js +163 -337
- package/unbundled/definition40.cjs +395 -227
- package/unbundled/definition40.js +393 -225
- package/unbundled/definition41.cjs +269 -47
- package/unbundled/definition41.js +264 -42
- package/unbundled/definition42.cjs +48 -67
- package/unbundled/definition42.js +45 -64
- package/unbundled/definition43.cjs +56 -383
- package/unbundled/definition43.js +55 -382
- package/unbundled/definition44.cjs +387 -44
- package/unbundled/definition44.js +383 -40
- package/unbundled/definition45.cjs +53 -45
- package/unbundled/definition45.js +49 -41
- package/unbundled/definition46.cjs +40 -164
- package/unbundled/definition46.js +36 -160
- package/unbundled/definition47.cjs +171 -31
- package/unbundled/definition47.js +168 -22
- package/unbundled/definition48.cjs +30 -89
- package/unbundled/definition48.js +22 -87
- package/unbundled/definition49.cjs +589 -48
- package/unbundled/definition49.js +587 -47
- package/unbundled/definition50.cjs +90 -21
- package/unbundled/definition50.js +88 -16
- package/unbundled/definition51.cjs +47 -32
- package/unbundled/definition51.js +44 -29
- package/unbundled/definition52.cjs +22 -323
- package/unbundled/definition52.js +16 -320
- package/unbundled/definition53.cjs +33 -212
- package/unbundled/definition53.js +29 -208
- package/unbundled/definition54.cjs +318 -41
- package/unbundled/definition54.js +314 -37
- package/unbundled/definition55.cjs +199 -253
- package/unbundled/definition55.js +193 -247
- package/unbundled/definition56.cjs +45 -53
- package/unbundled/definition56.js +42 -49
- package/unbundled/definition57.cjs +255 -133
- package/unbundled/definition57.js +253 -128
- package/unbundled/definition58.cjs +49 -245
- package/unbundled/definition58.js +47 -244
- package/unbundled/definition59.cjs +127 -444
- package/unbundled/definition59.js +124 -444
- package/unbundled/definition6.cjs +2 -1
- package/unbundled/definition6.js +2 -1
- package/unbundled/definition60.cjs +230 -3746
- package/unbundled/definition60.js +223 -3576
- package/unbundled/definition61.cjs +427 -739
- package/unbundled/definition61.js +425 -737
- package/unbundled/definition62.cjs +3762 -103
- package/unbundled/definition62.js +3593 -97
- package/unbundled/definition63.cjs +678 -886
- package/unbundled/definition63.js +672 -877
- package/unbundled/definition64.cjs +104 -108
- package/unbundled/definition64.js +100 -104
- package/unbundled/definition65.cjs +999 -65
- package/unbundled/definition65.js +995 -58
- package/unbundled/definition66.cjs +105 -155
- package/unbundled/definition66.js +101 -151
- package/unbundled/definition67.cjs +71 -121
- package/unbundled/definition67.js +63 -119
- package/unbundled/definition68.cjs +162 -51
- package/unbundled/definition68.js +158 -47
- package/unbundled/definition69.cjs +117 -75
- package/unbundled/definition69.js +116 -71
- package/unbundled/definition70.cjs +59 -21
- package/unbundled/definition70.js +56 -15
- package/unbundled/definition71.cjs +80 -75
- package/unbundled/definition71.js +76 -74
- package/unbundled/definition72.cjs +20 -305
- package/unbundled/definition72.js +14 -230
- package/unbundled/definition73.cjs +75 -315
- package/unbundled/definition73.js +74 -307
- package/unbundled/definition74.cjs +308 -30
- package/unbundled/definition74.js +231 -24
- package/unbundled/definition75.cjs +314 -109
- package/unbundled/definition75.js +304 -106
- package/unbundled/definition76.cjs +26 -250
- package/unbundled/definition76.js +21 -246
- package/unbundled/definition77.cjs +133 -27
- package/unbundled/definition77.js +124 -25
- package/unbundled/definition78.cjs +230 -116
- package/unbundled/definition78.js +227 -107
- package/unbundled/definition79.cjs +28 -203
- package/unbundled/definition79.js +26 -193
- package/unbundled/definition80.cjs +126 -477
- package/unbundled/definition80.js +118 -473
- package/unbundled/definition81.cjs +221 -0
- package/unbundled/definition81.js +202 -0
- package/unbundled/definition82.cjs +517 -0
- package/unbundled/definition82.js +497 -0
- package/unbundled/extractOptions.cjs +21 -0
- package/unbundled/extractOptions.js +16 -0
- package/unbundled/icon.cjs +67 -0
- package/unbundled/icon.js +61 -0
- package/unbundled/linkable.cjs +1 -1
- package/unbundled/linkable.js +1 -1
- package/unbundled/listbox.cjs +29 -7
- package/unbundled/listbox.js +29 -7
- package/unbundled/mixins.cjs +2 -1
- package/unbundled/mixins.js +2 -1
- package/unbundled/optgroup.cjs +66 -0
- package/unbundled/optgroup.js +54 -0
- package/unbundled/option.cjs +176 -0
- package/unbundled/option.js +164 -0
- package/unbundled/time-selection-picker.template.cjs +1 -1
- package/unbundled/time-selection-picker.template.js +1 -1
- package/unbundled/vivid-element.cjs +10 -1
- package/unbundled/vivid-element.js +10 -1
- package/video-player/definition.cjs +1 -1
- package/video-player/definition.js +1 -1
- package/vivid.api.json +568 -231
|
@@ -5,217 +5,367 @@ const require_definition = require("./definition6.cjs");
|
|
|
5
5
|
const require_definition$1 = require("./definition9.cjs");
|
|
6
6
|
const require_definition$2 = require("./definition22.cjs");
|
|
7
7
|
const require_definition$3 = require("./definition26.cjs");
|
|
8
|
-
const require_definition$4 = require("./
|
|
8
|
+
const require_definition$4 = require("./definition36.cjs");
|
|
9
9
|
const require_picker_field_template = require("./picker-field.template.cjs");
|
|
10
10
|
const require_calendar_picker_template = require("./calendar-picker.template.cjs");
|
|
11
|
-
const require_single_value_picker = require("./single-value-picker.cjs");
|
|
12
|
-
const require_single_date_picker = require("./single-date-picker.cjs");
|
|
13
|
-
const require_time_selection_picker_template = require("./time-selection-picker.template.cjs");
|
|
14
11
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
15
|
-
//#region src/
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
//#region src/shared/datetime/dateTimeStr.ts
|
|
19
|
-
var extractDatePart = (dateTimeStr) => dateTimeStr.split("T")[0] || "";
|
|
20
|
-
var extractTimePart = (dateTimeStr) => dateTimeStr.split("T")[1] || "";
|
|
21
|
-
var isValidDateTimeStr = (string) => {
|
|
22
|
-
const [dateStr = "", timeStr = ""] = string.split("T");
|
|
23
|
-
return require_calendar_picker_template.isValidDateStr(dateStr) && require_time_selection_picker_template.isValidTimeStr(timeStr);
|
|
12
|
+
//#region src/shared/datetime/presentationDateRange.ts
|
|
13
|
+
var formatRange = (from, to) => {
|
|
14
|
+
return `${from} – ${to}`;
|
|
24
15
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var formatPresentationDateTime = (dateTimeStr, locale, includeSeconds, use12HourClock) => {
|
|
28
|
-
const [dateStr, timeStr] = dateTimeStr.split("T");
|
|
29
|
-
return `${require_calendar_picker_template.formatPresentationDate(dateStr, locale)} ${require_time_selection_picker_template.formatPresentationTime(timeStr, includeSeconds, use12HourClock)}`;
|
|
16
|
+
var formatPresentationDateRange = (dateRange, locale) => {
|
|
17
|
+
return formatRange(require_calendar_picker_template.formatPresentationDate(dateRange.start, locale), require_calendar_picker_template.formatPresentationDate(dateRange.end, locale));
|
|
30
18
|
};
|
|
31
19
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
20
|
+
* Parse a presentation date range, which combines two presentation dates with a dash.
|
|
21
|
+
* Will throw if the range can't be parsed
|
|
34
22
|
*/
|
|
35
|
-
var
|
|
36
|
-
const
|
|
37
|
-
|
|
23
|
+
var parsePresentationDateRange = (presentationDateRange, locale) => {
|
|
24
|
+
const fragments = presentationDateRange.trim().split(/[\s—–-]+/);
|
|
25
|
+
if (fragments.length !== 2) throw new Error(`Invalid date range: ${presentationDateRange}`);
|
|
26
|
+
const [start, end] = fragments.map((fragment) => require_calendar_picker_template.parsePresentationDate(fragment, locale));
|
|
27
|
+
return {
|
|
28
|
+
start,
|
|
29
|
+
end
|
|
30
|
+
};
|
|
38
31
|
};
|
|
39
32
|
//#endregion
|
|
40
|
-
//#region src/lib/date-
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
toView(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
33
|
+
//#region src/lib/date-range-picker/date-range-picker.ts
|
|
34
|
+
var isFormAssociatedTryingToSetFormValue = (value) => typeof value === "string";
|
|
35
|
+
function isDefined(value) {
|
|
36
|
+
return !!value;
|
|
37
|
+
}
|
|
50
38
|
/**
|
|
51
|
-
* Single date picker component.
|
|
52
|
-
*
|
|
53
39
|
* @public
|
|
54
|
-
* @component date-
|
|
55
|
-
* @slot helper-text - Describes how to use the date-picker. Alternative to the `helper-text` attribute.
|
|
56
|
-
* @event {CustomEvent<undefined>} input -
|
|
57
|
-
* @event {CustomEvent<undefined>}
|
|
58
|
-
* @
|
|
59
|
-
* @
|
|
40
|
+
* @component date-range-picker
|
|
41
|
+
* @slot helper-text - Describes how to use the date-range-picker. Alternative to the `helper-text` attribute.
|
|
42
|
+
* @event {CustomEvent<undefined>} input:start - Event emitted when the start value changes
|
|
43
|
+
* @event {CustomEvent<undefined>} input:end - Event emitted when the end value changes
|
|
44
|
+
* @event {CustomEvent<undefined>} input - Emitted when either the start or end value changes
|
|
45
|
+
* @event {CustomEvent<undefined>} change - Emitted when either the start or end value changes
|
|
46
|
+
* @vueModel start start input:start `event.currentTarget.start`
|
|
47
|
+
* @vueModel end end input:end `event.currentTarget.end`
|
|
48
|
+
* @testAction selectDateRange selectDateRange
|
|
49
|
+
* @testQuery range range
|
|
60
50
|
*/
|
|
61
|
-
var
|
|
51
|
+
var DateRangePicker = class extends require_calendar_picker_template.MinMaxCalendarPicker(require_calendar_picker_template.CalendarPicker(require_picker_field_template.PickerField)) {
|
|
52
|
+
constructor(..._args) {
|
|
53
|
+
super(..._args);
|
|
54
|
+
this.initialStart = "";
|
|
55
|
+
this.initialEnd = "";
|
|
56
|
+
this.#isInternalValueUpdate = false;
|
|
57
|
+
this.start = "";
|
|
58
|
+
this.end = "";
|
|
59
|
+
this.setFormValue = (value, state) => {
|
|
60
|
+
if (isFormAssociatedTryingToSetFormValue(value)) return;
|
|
61
|
+
super.setFormValue(value, state);
|
|
62
|
+
};
|
|
63
|
+
this._numCalendars = 2;
|
|
64
|
+
this._hideDatesOutsideMonth = true;
|
|
65
|
+
this._textFieldSize = "30";
|
|
66
|
+
}
|
|
67
|
+
/** @internal */
|
|
68
|
+
initialStartChanged() {
|
|
69
|
+
if (!this.dirtyValue) {
|
|
70
|
+
this.start = this.initialStart;
|
|
71
|
+
this.dirtyValue = false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
initialEndChanged() {
|
|
76
|
+
if (!this.dirtyValue) {
|
|
77
|
+
this.end = this.initialEnd;
|
|
78
|
+
this.dirtyValue = false;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
#isInternalValueUpdate;
|
|
62
82
|
/** @internal */
|
|
63
|
-
|
|
64
|
-
|
|
83
|
+
startChanged() {
|
|
84
|
+
if (this.start && !require_calendar_picker_template.isValidDateStr(this.start)) {
|
|
85
|
+
this.start = "";
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
this.currentStart = this.start;
|
|
89
|
+
this.dirtyValue = true;
|
|
90
|
+
if (!this.#isInternalValueUpdate) this.#handleChangedValues();
|
|
65
91
|
}
|
|
66
92
|
/** @internal */
|
|
67
|
-
|
|
68
|
-
|
|
93
|
+
endChanged() {
|
|
94
|
+
if (this.end && !require_calendar_picker_template.isValidDateStr(this.end)) {
|
|
95
|
+
this.end = "";
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
this.currentEnd = this.end;
|
|
99
|
+
this.dirtyValue = true;
|
|
100
|
+
if (!this.#isInternalValueUpdate) this.#handleChangedValues();
|
|
69
101
|
}
|
|
70
102
|
/** @internal */
|
|
71
|
-
|
|
72
|
-
|
|
103
|
+
currentStartChanged() {
|
|
104
|
+
this.start = this.currentStart;
|
|
73
105
|
}
|
|
74
106
|
/** @internal */
|
|
75
|
-
|
|
76
|
-
|
|
107
|
+
currentEndChanged() {
|
|
108
|
+
this.end = this.currentEnd;
|
|
109
|
+
}
|
|
110
|
+
#updateValues(range) {
|
|
111
|
+
this.#isInternalValueUpdate = true;
|
|
112
|
+
if (range.start !== void 0) {
|
|
113
|
+
this.start = range.start;
|
|
114
|
+
this.$emit("input:start");
|
|
115
|
+
}
|
|
116
|
+
if (range.end !== void 0) {
|
|
117
|
+
this.end = range.end;
|
|
118
|
+
this.$emit("input:end");
|
|
119
|
+
}
|
|
120
|
+
this.#isInternalValueUpdate = false;
|
|
121
|
+
this.$emit("input");
|
|
122
|
+
this.$emit("change");
|
|
123
|
+
this.#handleChangedValues();
|
|
124
|
+
}
|
|
125
|
+
#handleChangedValues() {
|
|
126
|
+
if (this.start && this.end) {
|
|
127
|
+
if (require_calendar_picker_template.compareDateStr(this.start, this.end) > 0) {
|
|
128
|
+
this.#updateValues({
|
|
129
|
+
start: this.end,
|
|
130
|
+
end: this.start
|
|
131
|
+
});
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this.value = formatRange(this.start, this.end);
|
|
135
|
+
} else this.value = "";
|
|
136
|
+
this._updatePresentationValue();
|
|
137
|
+
const dateToEnsureVisibilityOf = this.start || this.end;
|
|
138
|
+
if (dateToEnsureVisibilityOf) this._adjustSelectedMonthToEnsureVisibilityOf(dateToEnsureVisibilityOf);
|
|
139
|
+
this.#updateFormValue();
|
|
77
140
|
}
|
|
78
141
|
/** @internal */
|
|
79
|
-
|
|
80
|
-
|
|
142
|
+
_updatePresentationValue() {
|
|
143
|
+
if (this.start && this.end) this._presentationValue = formatPresentationDateRange({
|
|
144
|
+
start: this.start,
|
|
145
|
+
end: this.end
|
|
146
|
+
}, this.locale.calendarPicker);
|
|
147
|
+
else this._presentationValue = "";
|
|
81
148
|
}
|
|
82
149
|
/** @internal */
|
|
83
|
-
|
|
84
|
-
|
|
150
|
+
nameChanged(previous, next) {
|
|
151
|
+
super.nameChanged(previous, next);
|
|
152
|
+
this.#updateFormValue();
|
|
153
|
+
}
|
|
154
|
+
#updateFormValue() {
|
|
155
|
+
if (!this.name || !this.start || !this.end) this.setFormValue(null);
|
|
156
|
+
else {
|
|
157
|
+
const formData = new FormData();
|
|
158
|
+
formData.append(this.name, this.start);
|
|
159
|
+
formData.append(this.name, this.end);
|
|
160
|
+
this.setFormValue(formData);
|
|
161
|
+
}
|
|
85
162
|
}
|
|
86
163
|
/** @internal */
|
|
87
|
-
|
|
88
|
-
|
|
164
|
+
connectedCallback() {
|
|
165
|
+
super.connectedCallback();
|
|
166
|
+
/* v8 ignore else -- @preserve */
|
|
167
|
+
if (!this.start) this.start = this.initialStart;
|
|
168
|
+
/* v8 ignore else -- @preserve */
|
|
169
|
+
if (!this.end) this.end = this.initialEnd;
|
|
170
|
+
}
|
|
171
|
+
#getVisibleRange() {
|
|
172
|
+
const candidates = [this.start, this.end].filter(isDefined);
|
|
173
|
+
const isPartialRange = candidates.length === 1;
|
|
174
|
+
if (this._hoverDate && isPartialRange) candidates.push(this._hoverDate);
|
|
175
|
+
const [start, end] = candidates.sort(require_calendar_picker_template.compareDateStr);
|
|
176
|
+
return {
|
|
177
|
+
start,
|
|
178
|
+
end
|
|
179
|
+
};
|
|
89
180
|
}
|
|
90
181
|
/** @internal */
|
|
91
|
-
|
|
92
|
-
return
|
|
182
|
+
_isDateAriaSelected(date) {
|
|
183
|
+
return this._isDateInSelectedRange(date);
|
|
93
184
|
}
|
|
94
185
|
/** @internal */
|
|
95
|
-
|
|
96
|
-
|
|
186
|
+
_isDateInSelectedRange(date) {
|
|
187
|
+
const { start, end } = this.#getVisibleRange();
|
|
188
|
+
if (start && end) return require_calendar_picker_template.compareDateStr(date, start) >= 0 && require_calendar_picker_template.compareDateStr(date, end) <= 0;
|
|
189
|
+
return false;
|
|
97
190
|
}
|
|
98
191
|
/** @internal */
|
|
99
|
-
|
|
100
|
-
return
|
|
192
|
+
_isDateRangeStart(date) {
|
|
193
|
+
return date === this.#getVisibleRange().start;
|
|
101
194
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
195
|
+
/** @internal */
|
|
196
|
+
_isDateRangeEnd(date) {
|
|
197
|
+
return date === this.#getVisibleRange().end;
|
|
198
|
+
}
|
|
199
|
+
/** @internal */
|
|
200
|
+
_getSelectedDates() {
|
|
201
|
+
const dates = [];
|
|
202
|
+
if (this.start) dates.push(this.start);
|
|
203
|
+
if (this.end) dates.push(this.end);
|
|
204
|
+
return dates;
|
|
205
|
+
}
|
|
206
|
+
/** @internal */
|
|
207
|
+
_onDateClick(date) {
|
|
208
|
+
if (this.start && this.end) this.#updateValues({
|
|
209
|
+
start: date,
|
|
210
|
+
end: ""
|
|
211
|
+
});
|
|
212
|
+
else if (this.start) {
|
|
213
|
+
this.#updateValues({ end: date });
|
|
214
|
+
this._closePopup();
|
|
215
|
+
} else if (this.end) {
|
|
216
|
+
this.#updateValues({ start: date });
|
|
217
|
+
this._closePopup();
|
|
218
|
+
} else this.#updateValues({ start: date });
|
|
219
|
+
}
|
|
220
|
+
/** @internal */
|
|
221
|
+
get _textFieldPlaceholder() {
|
|
222
|
+
return formatRange(this.locale.calendarPicker.dateFormatPlaceholder, this.locale.calendarPicker.dateFormatPlaceholder);
|
|
223
|
+
}
|
|
224
|
+
/** @internal */
|
|
225
|
+
_onTextFieldChange() {
|
|
226
|
+
if (this._presentationValue === "") {
|
|
227
|
+
this.#updateValues({
|
|
228
|
+
start: "",
|
|
229
|
+
end: ""
|
|
230
|
+
});
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
try {
|
|
234
|
+
const { start, end } = parsePresentationDateRange(this._presentationValue, this.locale.calendarPicker);
|
|
235
|
+
this.#updateValues({
|
|
236
|
+
start,
|
|
237
|
+
end
|
|
238
|
+
});
|
|
239
|
+
} catch (_) {
|
|
240
|
+
const invalidPresentationValue = this._presentationValue;
|
|
241
|
+
this.#updateValues({
|
|
242
|
+
start: "",
|
|
243
|
+
end: ""
|
|
244
|
+
});
|
|
245
|
+
this._presentationValue = invalidPresentationValue;
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/** @internal */
|
|
250
|
+
_onDateMouseEnter(date) {
|
|
251
|
+
this._hoverDate = date;
|
|
252
|
+
}
|
|
253
|
+
/** @internal */
|
|
254
|
+
_onDateMouseLeave() {
|
|
255
|
+
this._hoverDate = void 0;
|
|
114
256
|
}
|
|
115
257
|
/** @internal */
|
|
116
258
|
_getCustomValidationError() {
|
|
117
|
-
if (this._isPresentationValueInvalid()) return this.locale.
|
|
118
|
-
if (this.
|
|
119
|
-
if (this.
|
|
120
|
-
if (this._timeValue && this._resolvedMinTime && require_time_selection_picker_template.compareTimeStr(this._timeValue, this._resolvedMinTime) < 0) return this.locale.dateTimePicker.timeBeforeMinTimeError(require_time_selection_picker_template.formatPresentationTime(this._resolvedMinTime, this._displaySeconds, this._use12hClock));
|
|
121
|
-
if (this._timeValue && this._resolvedMaxTime && require_time_selection_picker_template.compareTimeStr(this._timeValue, this._resolvedMaxTime) > 0) return this.locale.dateTimePicker.timeAfterMaxTimeError(require_time_selection_picker_template.formatPresentationTime(this._resolvedMaxTime, this._displaySeconds, this._use12hClock));
|
|
259
|
+
if (this._isPresentationValueInvalid()) return this.locale.calendarPicker.invalidDateRangeError;
|
|
260
|
+
if (this.min && this.start && require_calendar_picker_template.compareDateStr(this.start, this.min) < 0) return this.locale.calendarPicker.startDateAfterMinDateError(require_calendar_picker_template.formatPresentationDate(this.min, this.locale.calendarPicker));
|
|
261
|
+
if (this.max && this.end && require_calendar_picker_template.compareDateStr(this.end, this.max) > 0) return this.locale.calendarPicker.endDateBeforeMaxDateError(require_calendar_picker_template.formatPresentationDate(this.max, this.locale.calendarPicker));
|
|
122
262
|
return null;
|
|
123
263
|
}
|
|
124
264
|
/** @internal */
|
|
125
|
-
|
|
126
|
-
|
|
265
|
+
_isPresentationValueInvalid() {
|
|
266
|
+
if (this._presentationValue === "") return false;
|
|
267
|
+
try {
|
|
268
|
+
parsePresentationDateRange(this._presentationValue, this.locale.calendarPicker);
|
|
269
|
+
return false;
|
|
270
|
+
} catch (_) {
|
|
271
|
+
return true;
|
|
272
|
+
}
|
|
127
273
|
}
|
|
128
274
|
/** @internal */
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
275
|
+
_onClearClick() {
|
|
276
|
+
this.#updateValues({
|
|
277
|
+
start: "",
|
|
278
|
+
end: ""
|
|
279
|
+
});
|
|
280
|
+
super._onClearClick();
|
|
132
281
|
}
|
|
133
282
|
/** @internal */
|
|
134
|
-
|
|
135
|
-
|
|
283
|
+
formResetCallback() {
|
|
284
|
+
this.#updateValues({
|
|
285
|
+
start: this.initialStart,
|
|
286
|
+
end: this.initialEnd
|
|
287
|
+
});
|
|
288
|
+
super.formResetCallback();
|
|
136
289
|
}
|
|
137
290
|
/** @internal */
|
|
138
|
-
get
|
|
139
|
-
return
|
|
291
|
+
get _pickerButtonLabel() {
|
|
292
|
+
if (this.start && this.end) return this.locale.calendarPicker.changeDatesLabel(formatPresentationDateRange({
|
|
293
|
+
start: this.start,
|
|
294
|
+
end: this.end
|
|
295
|
+
}, this.locale.calendarPicker));
|
|
296
|
+
else return this.locale.calendarPicker.chooseDatesLabel;
|
|
140
297
|
}
|
|
141
298
|
/** @internal */
|
|
142
299
|
get _dialogLabel() {
|
|
143
|
-
return this.locale.
|
|
300
|
+
return this.locale.calendarPicker.chooseDatesLabel;
|
|
301
|
+
}
|
|
302
|
+
/** @internal */
|
|
303
|
+
_focusableElsWithinDialog() {
|
|
304
|
+
return this._dialogEl.querySelectorAll("button, .vwc-button");
|
|
305
|
+
}
|
|
306
|
+
/** @internal */
|
|
307
|
+
get _pickerButtonIcon() {
|
|
308
|
+
return "calendar-line";
|
|
144
309
|
}
|
|
145
310
|
};
|
|
146
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: ValidDateTimeFilter })], DateTimePicker.prototype, "min", void 0);
|
|
147
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
148
|
-
converter: require_time_selection_picker_template.ValidTimeFilter,
|
|
149
|
-
attribute: "min-time"
|
|
150
|
-
})], DateTimePicker.prototype, "minTime", void 0);
|
|
151
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
152
|
-
converter: require_calendar_picker_template.ValidDateFilter,
|
|
153
|
-
attribute: "min-date"
|
|
154
|
-
})], DateTimePicker.prototype, "minDate", void 0);
|
|
155
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: ValidDateTimeFilter })], DateTimePicker.prototype, "max", void 0);
|
|
156
311
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
157
|
-
|
|
158
|
-
attribute: "
|
|
159
|
-
})],
|
|
312
|
+
mode: "fromView",
|
|
313
|
+
attribute: "start"
|
|
314
|
+
})], DateRangePicker.prototype, "initialStart", void 0);
|
|
160
315
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
161
|
-
|
|
162
|
-
attribute: "
|
|
163
|
-
})],
|
|
316
|
+
mode: "fromView",
|
|
317
|
+
attribute: "end"
|
|
318
|
+
})], DateRangePicker.prototype, "initialEnd", void 0);
|
|
319
|
+
require_decorate.__decorate([_microsoft_fast_element.observable], DateRangePicker.prototype, "start", void 0);
|
|
320
|
+
require_decorate.__decorate([_microsoft_fast_element.observable], DateRangePicker.prototype, "end", void 0);
|
|
321
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "current-start" })], DateRangePicker.prototype, "currentStart", void 0);
|
|
322
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "current-end" })], DateRangePicker.prototype, "currentEnd", void 0);
|
|
323
|
+
require_decorate.__decorate([_microsoft_fast_element.observable], DateRangePicker.prototype, "_numCalendars", void 0);
|
|
324
|
+
require_decorate.__decorate([_microsoft_fast_element.observable], DateRangePicker.prototype, "_hoverDate", void 0);
|
|
325
|
+
require_decorate.__decorate([_microsoft_fast_element.volatile], DateRangePicker.prototype, "_pickerButtonLabel", null);
|
|
164
326
|
//#endregion
|
|
165
|
-
//#region src/lib/date-
|
|
166
|
-
var
|
|
167
|
-
return require_picker_field_template.PickerFieldTemplate(context,
|
|
168
|
-
<div class="date-time-picker">
|
|
169
|
-
${() => require_calendar_picker_template.CalendarPickerTemplate(context)}
|
|
170
|
-
<div class="time-picker">
|
|
171
|
-
${() => require_time_selection_picker_template.TimeSelectionPickerTemplate(context, 9)}
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
`, {
|
|
327
|
+
//#region src/lib/date-range-picker/date-range-picker.template.ts
|
|
328
|
+
var DateRangePickerTemplate = (context) => {
|
|
329
|
+
return require_picker_field_template.PickerFieldTemplate(context, require_calendar_picker_template.CalendarPickerTemplate(context), {
|
|
175
330
|
withSeparator: false,
|
|
176
|
-
padded:
|
|
331
|
+
padded: true
|
|
177
332
|
});
|
|
178
333
|
};
|
|
179
334
|
//#endregion
|
|
180
|
-
//#region src/lib/date-
|
|
335
|
+
//#region src/lib/date-range-picker/definition.ts
|
|
181
336
|
/** @internal */
|
|
182
|
-
var
|
|
337
|
+
var dateRangePickerDefinition = require_vivid_element.defineVividComponent("date-range-picker", DateRangePicker, DateRangePickerTemplate, [
|
|
183
338
|
require_definition.buttonDefinition,
|
|
184
339
|
require_definition$1.popupDefinition,
|
|
185
340
|
require_definition$3.textFieldDefinition,
|
|
186
341
|
require_definition$4.dividerDefinition,
|
|
187
|
-
require_time_selection_picker_template.inlineTimePickerDefinition,
|
|
188
342
|
require_definition$2.visuallyHiddenDefinition
|
|
189
343
|
], {
|
|
190
|
-
styles: [
|
|
191
|
-
require_picker_field_template.picker_field_default,
|
|
192
|
-
require_calendar_picker_template.calendar_picker_default,
|
|
193
|
-
date_time_picker_default
|
|
194
|
-
],
|
|
344
|
+
styles: [require_picker_field_template.picker_field_default, require_calendar_picker_template.calendar_picker_default],
|
|
195
345
|
shadowOptions: { delegatesFocus: true }
|
|
196
346
|
});
|
|
197
347
|
/**
|
|
198
|
-
* Registers the date-
|
|
348
|
+
* Registers the date-range-picker element with the design system.
|
|
199
349
|
*
|
|
200
350
|
* @param prefix - the prefix to use for the component name
|
|
201
351
|
*/
|
|
202
|
-
var
|
|
352
|
+
var registerDateRangePicker = require_vivid_element.createRegisterFunction(dateRangePickerDefinition);
|
|
203
353
|
//#endregion
|
|
204
|
-
Object.defineProperty(exports, "
|
|
354
|
+
Object.defineProperty(exports, "DateRangePicker", {
|
|
205
355
|
enumerable: true,
|
|
206
356
|
get: function() {
|
|
207
|
-
return
|
|
357
|
+
return DateRangePicker;
|
|
208
358
|
}
|
|
209
359
|
});
|
|
210
|
-
Object.defineProperty(exports, "
|
|
360
|
+
Object.defineProperty(exports, "dateRangePickerDefinition", {
|
|
211
361
|
enumerable: true,
|
|
212
362
|
get: function() {
|
|
213
|
-
return
|
|
363
|
+
return dateRangePickerDefinition;
|
|
214
364
|
}
|
|
215
365
|
});
|
|
216
|
-
Object.defineProperty(exports, "
|
|
366
|
+
Object.defineProperty(exports, "registerDateRangePicker", {
|
|
217
367
|
enumerable: true,
|
|
218
368
|
get: function() {
|
|
219
|
-
return
|
|
369
|
+
return registerDateRangePicker;
|
|
220
370
|
}
|
|
221
371
|
});
|