@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
|
@@ -2,294 +2,462 @@ require("./chunk.cjs");
|
|
|
2
2
|
const require_vivid_element = require("./vivid-element.cjs");
|
|
3
3
|
const require_definition = require("./definition.cjs");
|
|
4
4
|
const require_decorate = require("./decorate.cjs");
|
|
5
|
-
const
|
|
5
|
+
const require_icon = require("./icon.cjs");
|
|
6
6
|
const require_localized = require("./localized.cjs");
|
|
7
7
|
const require_definition$1 = require("./definition6.cjs");
|
|
8
|
-
const require_definition$2 = require("./
|
|
9
|
-
const
|
|
8
|
+
const require_definition$2 = require("./definition22.cjs");
|
|
9
|
+
const require_definition$3 = require("./definition26.cjs");
|
|
10
10
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
11
11
|
let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
|
|
12
|
-
//#region src/lib/
|
|
13
|
-
var
|
|
12
|
+
//#region src/lib/dial-pad/dial-pad.scss?inline
|
|
13
|
+
var dial_pad_default = ":host{inline-size:230px;margin:16px;display:inline-block}.base{box-sizing:border-box;grid-template-rows:80px 1fr auto;display:grid}.base.no-input{grid-template-rows:1fr auto}.digits{grid-template-rows:repeat(4,1fr);grid-template-columns:repeat(3,1fr);gap:16px;inline-size:100%;display:grid}.phone-field{grid-column:1/-1;align-self:flex-start}.digit-btn{--_appearance-color-text:var(--_connotation-color-firm-all);--_appearance-color-fill:transparent;--_appearance-color-outline:var(--_connotation-color-pale)}@media (hover:hover){.digit-btn:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm-all);--_appearance-color-fill:transparent;--_appearance-color-outline:var(--_connotation-color-firm-all)}}.digit-btn.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_connotation-color-firm-all);--_appearance-color-fill:transparent;--_appearance-color-outline:var(--_connotation-color-firm-all)}.digit-btn:disabled,.digit-btn.disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:var(--vvd-color-neutral-100)}.digit-btn{--_connotation-color-contrast:var(--vvd-dial-pad-accent-contrast,var(--vvd-color-neutral-800));--_connotation-color-soft:var(--vvd-dial-pad-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-pale:var(--vvd-dial-pad-accent-pale,var(--vvd-color-neutral-300));--_connotation-color-fierce:var(--vvd-dial-pad-accent-fierce,var(--vvd-color-neutral-700));--_connotation-color-firm-all:var(--vvd-dial-pad-accent-firm-all,var(--vvd-color-neutral-600));--_connotation-color-faint:var(--vvd-dial-pad-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-dim:var(--vvd-dial-pad-accent-dim,var(--vvd-color-neutral-200));--vvd-button-accent-firm:var(--_appearance-color-text);box-shadow:0 0 0 1px var(--_appearance-color-outline);border-radius:16px;flex-direction:column;inline-size:100%;display:flex;overflow:hidden}.digit-btn:not(.disabled) .digit-btn-num{color:var(--vvd-color-canvas-text)}.digit-btn:focus-within{--focus-stroke-gap-color:transparent;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))}.call-btn{grid-column:1/-1;margin-block-start:32px}.base.size-condensed{grid-template-rows:60px 1fr auto}.base.size-condensed .digits{grid-template-rows:repeat(4,.85fr);gap:8px}.base.size-condensed .call-btn{margin-block-start:12px}.base.size-condensed .digit-btn-num{padding-top:6px}.base.size-condensed.no-letters .digit-btn-num{padding-top:0}";
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region src/lib/
|
|
15
|
+
//#region src/lib/dial-pad/dial-pad.ts
|
|
16
16
|
/**
|
|
17
|
+
* Base class for dial-pad
|
|
18
|
+
*
|
|
17
19
|
* @public
|
|
18
|
-
* @component
|
|
19
|
-
* @
|
|
20
|
-
* @
|
|
21
|
-
* @
|
|
22
|
-
* @
|
|
23
|
-
* @
|
|
24
|
-
* @event {CustomEvent<undefined>}
|
|
25
|
-
* @event {CustomEvent<
|
|
26
|
-
* @
|
|
27
|
-
* @vueModel open open open,close `event.currentTarget.open`
|
|
28
|
-
* @testSelector byHeadline byHeadline
|
|
29
|
-
* @testAction dismiss click #dismissButton
|
|
30
|
-
* @testQuery open open true
|
|
31
|
-
* @testQuery closed open false
|
|
32
|
-
* @testQuery headline headline
|
|
33
|
-
* @testRef dismissButton shadow .dismiss-button
|
|
20
|
+
* @component dial-pad
|
|
21
|
+
* @event {CustomEvent<undefined>} change - Emitted when the text field value changes
|
|
22
|
+
* @event {CustomEvent<undefined>} input - Emitted when the text field value changes
|
|
23
|
+
* @event {CustomEvent<undefined>} blur - Emitted when the text field loses focus
|
|
24
|
+
* @event {CustomEvent<undefined>} focus - Emitted when the text field receives focus
|
|
25
|
+
* @event {CustomEvent<HTMLElement>}keypad-click - Emitted when a digit button is clicked
|
|
26
|
+
* @event {CustomEvent<undefined>} dial - Emitted when the call button is clicked
|
|
27
|
+
* @event {CustomEvent<undefined>} end-call - Emitted when the end call button is clicked
|
|
28
|
+
* @vueModel modelValue value input,@lazy:change `event.currentTarget.value`
|
|
34
29
|
*/
|
|
35
|
-
var
|
|
30
|
+
var DialPad = class extends require_localized.Localized(require_vivid_element.VividElement) {
|
|
36
31
|
constructor(..._args) {
|
|
37
32
|
super(..._args);
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
this
|
|
54
|
-
|
|
55
|
-
this.
|
|
33
|
+
this.helperText = null;
|
|
34
|
+
this.placeholder = null;
|
|
35
|
+
this.value = "";
|
|
36
|
+
this.pattern = "^[0-9#*]*$";
|
|
37
|
+
this.disabled = false;
|
|
38
|
+
this.pending = false;
|
|
39
|
+
this.callActive = false;
|
|
40
|
+
this.noCall = false;
|
|
41
|
+
this.noInput = false;
|
|
42
|
+
this.noLetters = false;
|
|
43
|
+
this.endCallButtonLabel = null;
|
|
44
|
+
this.callButtonLabel = null;
|
|
45
|
+
this.deleteAriaLabel = null;
|
|
46
|
+
this._longPressTimeoutId = null;
|
|
47
|
+
this._suppressNextClick = false;
|
|
48
|
+
this._keyboardLongPressCompleted = false;
|
|
49
|
+
this._onDial = () => {
|
|
50
|
+
if (!this._textFieldEl.checkValidity()) this._announceValidationError(this._textFieldEl.errorValidationMessage ?? "");
|
|
51
|
+
else this._clearErrorAnnouncement();
|
|
52
|
+
this.$emit(this.callActive ? "end-call" : "dial");
|
|
56
53
|
};
|
|
54
|
+
this.autofocus = false;
|
|
55
|
+
this._errorAnnouncement = "";
|
|
56
|
+
this._forceAnnouncementToggle = false;
|
|
57
57
|
}
|
|
58
58
|
/** @internal */
|
|
59
|
-
|
|
60
|
-
if (this.
|
|
61
|
-
this.
|
|
62
|
-
|
|
63
|
-
this.#closeDialog();
|
|
64
|
-
this.#showDialog();
|
|
65
|
-
}
|
|
59
|
+
valueChanged(_oldValue, newValue) {
|
|
60
|
+
if (newValue !== void 0 && newValue !== null && this._textFieldEl && newValue !== this._textFieldEl.value) {
|
|
61
|
+
this._textFieldEl.value = newValue;
|
|
62
|
+
this._textFieldEl.reportValidity();
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
|
-
set returnValue(value) {
|
|
69
|
-
/* v8 ignore else -- @preserve */
|
|
70
|
-
if (this.#dialog) this.#dialog.returnValue = value;
|
|
71
|
-
}
|
|
72
|
-
get returnValue() {
|
|
73
|
-
return this.#dialog?.returnValue;
|
|
74
|
-
}
|
|
75
|
-
#dialogElement;
|
|
76
|
-
get #dialog() {
|
|
77
|
-
if (!this.#dialogElement) this.#dialogElement = this.shadowRoot.querySelector("dialog");
|
|
78
|
-
return this.#dialogElement;
|
|
79
|
-
}
|
|
80
65
|
/** @internal */
|
|
81
|
-
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this
|
|
87
|
-
|
|
88
|
-
this
|
|
89
|
-
|
|
90
|
-
this.$emit("
|
|
91
|
-
}
|
|
66
|
+
_startLongPress(digit, event) {
|
|
67
|
+
if (this.disabled || this.callActive || digit !== "0") return;
|
|
68
|
+
this._clearLongPressTimer();
|
|
69
|
+
const target = event.currentTarget;
|
|
70
|
+
this._longPressTimeoutId = window.setTimeout(() => {
|
|
71
|
+
this._suppressNextClick = true;
|
|
72
|
+
this.value += "+";
|
|
73
|
+
this.$emit("keypad-click", target);
|
|
74
|
+
this.$emit("input");
|
|
75
|
+
this.$emit("change");
|
|
76
|
+
}, 600);
|
|
92
77
|
}
|
|
93
78
|
/** @internal */
|
|
94
|
-
|
|
95
|
-
|
|
79
|
+
_startKeyboardLongPress() {
|
|
80
|
+
if (this.disabled || this.callActive) return;
|
|
81
|
+
if (this._longPressTimeoutId !== null) return;
|
|
82
|
+
this._keyboardLongPressCompleted = false;
|
|
83
|
+
this._longPressTimeoutId = window.setTimeout(() => {
|
|
84
|
+
this._keyboardLongPressCompleted = true;
|
|
85
|
+
this.value += "+";
|
|
86
|
+
this.$emit("input");
|
|
87
|
+
this.$emit("change");
|
|
88
|
+
}, 650);
|
|
96
89
|
}
|
|
97
|
-
#isDismissibleVia(method) {
|
|
98
|
-
if (this.nonDismissible) return false;
|
|
99
|
-
switch (method) {
|
|
100
|
-
case "escape": return !this.noDismissOnEsc;
|
|
101
|
-
case "dismiss-button": return !this.noDismissButton;
|
|
102
|
-
case "light-dismiss": return !this.noLightDismiss;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
#handleScrimClick;
|
|
106
|
-
#handleInternalFormSubmit;
|
|
107
90
|
/** @internal */
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
return true;
|
|
91
|
+
_endLongPress() {
|
|
92
|
+
this._clearLongPressTimer();
|
|
93
|
+
window.setTimeout(() => {
|
|
94
|
+
if (this._suppressNextClick) this._suppressNextClick = false;
|
|
95
|
+
}, 0);
|
|
114
96
|
}
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
* @returns true if long press completed (timer fired), false otherwise
|
|
100
|
+
*/
|
|
101
|
+
_endKeyboardLongPress() {
|
|
102
|
+
const wasLongPress = this._keyboardLongPressCompleted;
|
|
103
|
+
this._clearLongPressTimer();
|
|
104
|
+
window.setTimeout(() => {
|
|
105
|
+
this._keyboardLongPressCompleted = false;
|
|
106
|
+
}, 0);
|
|
107
|
+
return wasLongPress;
|
|
121
108
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
show() {
|
|
126
|
-
if (this._openedAsModal && !this.modal) throw new DOMException("Failed to execute 'show' on 'Dialog': The dialog is already open as a modal dialog, and therefore cannot be opened as a non-modal dialog.", "InvalidStateError");
|
|
127
|
-
this.open = true;
|
|
128
|
-
}
|
|
129
|
-
showModal() {
|
|
130
|
-
if (this.open && !this._openedAsModal) throw new DOMException("Failed to execute 'showModal' on 'Dialog': The dialog is already open as a non-modal dialog, and therefore cannot be opened as a modal dialog.", "InvalidStateError");
|
|
131
|
-
this._openedAsModal = true;
|
|
132
|
-
this.open = true;
|
|
109
|
+
/** @internal */
|
|
110
|
+
_cancelLongPress() {
|
|
111
|
+
this._clearLongPressTimer();
|
|
133
112
|
}
|
|
134
|
-
|
|
135
|
-
this
|
|
113
|
+
_clearLongPressTimer() {
|
|
114
|
+
if (this._longPressTimeoutId !== null) {
|
|
115
|
+
clearTimeout(this._longPressTimeoutId);
|
|
116
|
+
this._longPressTimeoutId = null;
|
|
117
|
+
}
|
|
136
118
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
119
|
+
/**
|
|
120
|
+
* Moves focus into the Dial Pad. If `no-input` attribute is specified, it will be the first digit
|
|
121
|
+
* button. Otherwise, the text field will be focused.
|
|
122
|
+
*/
|
|
123
|
+
focus() {
|
|
124
|
+
const digitBtns = this.shadowRoot?.querySelectorAll(".digits .digit-btn");
|
|
125
|
+
(this._textFieldEl || digitBtns?.[0])?.focus();
|
|
140
126
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
127
|
+
/** @internal */
|
|
128
|
+
_announceValidationError(message) {
|
|
129
|
+
this._errorAnnouncement = "";
|
|
130
|
+
window.queueMicrotask(() => {
|
|
131
|
+
if (message) {
|
|
132
|
+
this._forceAnnouncementToggle = !this._forceAnnouncementToggle;
|
|
133
|
+
this._errorAnnouncement = `${message}${this._forceAnnouncementToggle ? "" : ""}`;
|
|
134
|
+
} else this._clearErrorAnnouncement();
|
|
135
|
+
});
|
|
146
136
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this
|
|
151
|
-
this.#dialog.removeEventListener("submit", this.#handleInternalFormSubmit);
|
|
137
|
+
/** @internal */
|
|
138
|
+
_clearErrorAnnouncement() {
|
|
139
|
+
this._errorAnnouncement = "";
|
|
140
|
+
this._forceAnnouncementToggle = false;
|
|
152
141
|
}
|
|
153
142
|
};
|
|
154
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
155
|
-
require_decorate.__decorate([_microsoft_fast_element.attr],
|
|
156
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
157
|
-
require_decorate.__decorate([_microsoft_fast_element.attr],
|
|
158
|
-
require_decorate.__decorate([_microsoft_fast_element.attr],
|
|
159
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
160
|
-
attribute: "full-width-body",
|
|
161
|
-
mode: "boolean"
|
|
162
|
-
})], Dialog.prototype, "fullWidthBody", void 0);
|
|
163
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "dismiss-button-aria-label" })], Dialog.prototype, "dismissButtonAriaLabel", void 0);
|
|
164
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
165
|
-
attribute: "no-light-dismiss",
|
|
166
|
-
mode: "boolean"
|
|
167
|
-
})], Dialog.prototype, "noLightDismiss", void 0);
|
|
143
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "helper-text" })], DialPad.prototype, "helperText", void 0);
|
|
144
|
+
require_decorate.__decorate([_microsoft_fast_element.attr], DialPad.prototype, "placeholder", void 0);
|
|
145
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "fromView" })], DialPad.prototype, "value", void 0);
|
|
146
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "fromView" })], DialPad.prototype, "pattern", void 0);
|
|
147
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], DialPad.prototype, "disabled", void 0);
|
|
148
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], DialPad.prototype, "pending", void 0);
|
|
168
149
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
169
|
-
attribute: "
|
|
150
|
+
attribute: "call-active",
|
|
170
151
|
mode: "boolean"
|
|
171
|
-
})],
|
|
152
|
+
})], DialPad.prototype, "callActive", void 0);
|
|
172
153
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
})],
|
|
154
|
+
mode: "boolean",
|
|
155
|
+
attribute: "no-call"
|
|
156
|
+
})], DialPad.prototype, "noCall", void 0);
|
|
176
157
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
})],
|
|
180
|
-
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Dialog.prototype, "modal", void 0);
|
|
158
|
+
mode: "boolean",
|
|
159
|
+
attribute: "no-input"
|
|
160
|
+
})], DialPad.prototype, "noInput", void 0);
|
|
181
161
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
182
162
|
mode: "boolean",
|
|
183
|
-
attribute: "
|
|
184
|
-
})],
|
|
185
|
-
require_decorate.__decorate([_microsoft_fast_element.
|
|
186
|
-
require_decorate.__decorate([_microsoft_fast_element.
|
|
187
|
-
require_decorate.__decorate([_microsoft_fast_element.
|
|
188
|
-
require_decorate.__decorate([_microsoft_fast_element.
|
|
163
|
+
attribute: "no-letters"
|
|
164
|
+
})], DialPad.prototype, "noLetters", void 0);
|
|
165
|
+
require_decorate.__decorate([_microsoft_fast_element.attr], DialPad.prototype, "size", void 0);
|
|
166
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "end-call-button-label" })], DialPad.prototype, "endCallButtonLabel", void 0);
|
|
167
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "call-button-label" })], DialPad.prototype, "callButtonLabel", void 0);
|
|
168
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "delete-aria-label" })], DialPad.prototype, "deleteAriaLabel", void 0);
|
|
169
|
+
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], DialPad.prototype, "autofocus", void 0);
|
|
170
|
+
require_decorate.__decorate([_microsoft_fast_element.observable], DialPad.prototype, "_errorAnnouncement", void 0);
|
|
189
171
|
//#endregion
|
|
190
|
-
//#region src/lib/
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
172
|
+
//#region src/lib/dial-pad/dial-pad.template.ts
|
|
173
|
+
var DIAL_PAD_BUTTONS = [
|
|
174
|
+
{
|
|
175
|
+
value: "1",
|
|
176
|
+
letters: "\xA0",
|
|
177
|
+
ariaLabel: "digitOneLabel",
|
|
178
|
+
icon: "one-solid",
|
|
179
|
+
id: "btn1"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
value: "2",
|
|
183
|
+
letters: "ABC",
|
|
184
|
+
ariaLabel: "digitTwoLabel",
|
|
185
|
+
icon: "two-solid",
|
|
186
|
+
id: "btn2"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
value: "3",
|
|
190
|
+
letters: "DEF",
|
|
191
|
+
ariaLabel: "digitThreeLabel",
|
|
192
|
+
icon: "three-solid",
|
|
193
|
+
id: "btn3"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
value: "4",
|
|
197
|
+
letters: "GHI",
|
|
198
|
+
ariaLabel: "digitFourLabel",
|
|
199
|
+
icon: "four-solid",
|
|
200
|
+
id: "btn4"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
value: "5",
|
|
204
|
+
letters: "JKL",
|
|
205
|
+
ariaLabel: "digitFiveLabel",
|
|
206
|
+
icon: "five-solid",
|
|
207
|
+
id: "btn5"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
value: "6",
|
|
211
|
+
letters: "MNO",
|
|
212
|
+
ariaLabel: "digitSixLabel",
|
|
213
|
+
icon: "six-solid",
|
|
214
|
+
id: "btn6"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
value: "7",
|
|
218
|
+
letters: "PQRS",
|
|
219
|
+
ariaLabel: "digitSevenLabel",
|
|
220
|
+
icon: "seven-solid",
|
|
221
|
+
id: "btn7"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
value: "8",
|
|
225
|
+
letters: "TUV",
|
|
226
|
+
ariaLabel: "digitEightLabel",
|
|
227
|
+
icon: "eight-solid",
|
|
228
|
+
id: "btn8"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
value: "9",
|
|
232
|
+
letters: "WXYZ",
|
|
233
|
+
ariaLabel: "digitNineLabel",
|
|
234
|
+
icon: "nine-solid",
|
|
235
|
+
id: "btn9"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
value: "*",
|
|
239
|
+
ariaLabel: "digitAsteriskLabel",
|
|
240
|
+
icon: "asterisk-2-solid",
|
|
241
|
+
id: "btnAsterisk"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
value: "0",
|
|
245
|
+
alwaysVisibleLetters: "+",
|
|
246
|
+
ariaLabel: "digitZeroLabel",
|
|
247
|
+
icon: "zero-solid",
|
|
248
|
+
id: "btn0"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
value: "#",
|
|
252
|
+
ariaLabel: "digitHashtagLabel",
|
|
253
|
+
icon: "hashtag-solid",
|
|
254
|
+
id: "btnHashtag"
|
|
255
|
+
}
|
|
256
|
+
];
|
|
257
|
+
function handleKeyDown(x, e) {
|
|
258
|
+
if (e.key === _microsoft_fast_web_utilities.keyEnter && !x.pending && !x.disabled && !x.callActive && !x.noCall && x.value.length > 0 && e.target instanceof HTMLInputElement) x._onDial();
|
|
259
|
+
else if (e.key === " " || e.key === "Space") {
|
|
260
|
+
/* v8 ignore else -- @preserve */
|
|
261
|
+
if (e.target instanceof HTMLInputElement) {
|
|
262
|
+
e.preventDefault();
|
|
263
|
+
/* v8 ignore else -- @preserve */
|
|
264
|
+
if (!e.repeat) x._startKeyboardLongPress();
|
|
265
|
+
}
|
|
266
|
+
} else {
|
|
267
|
+
const elementIndex = DIAL_PAD_BUTTONS.findIndex((x) => x.value === e.key);
|
|
268
|
+
if (elementIndex > -1) {
|
|
269
|
+
const digit = x.shadowRoot.querySelector(".digits").children[elementIndex];
|
|
270
|
+
/* v8 ignore else -- @preserve */
|
|
271
|
+
if (digit) {
|
|
272
|
+
digit.active = true;
|
|
273
|
+
setTimeout(() => {
|
|
274
|
+
digit.active = false;
|
|
275
|
+
}, 200);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
return true;
|
|
195
280
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
281
|
+
function handleKeyUp(x, e) {
|
|
282
|
+
/* v8 ignore else -- @preserve */
|
|
283
|
+
if (e.key === " " || e.key === "Space") {
|
|
284
|
+
/* v8 ignore else -- @preserve */
|
|
285
|
+
if (e.target instanceof HTMLInputElement) {
|
|
286
|
+
e.preventDefault();
|
|
287
|
+
if (!x._endKeyboardLongPress() && !x.disabled && !x.callActive) {
|
|
288
|
+
x.value += " ";
|
|
289
|
+
x.$emit("input");
|
|
290
|
+
x.$emit("change");
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return true;
|
|
200
295
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
296
|
+
function handleButtonKeyDown(digit, { parent: dialPad, event }) {
|
|
297
|
+
/* v8 ignore else -- @preserve */
|
|
298
|
+
if ((event.key === " " || event.key === "Space") && digit.value === "0") {
|
|
299
|
+
event.preventDefault();
|
|
300
|
+
/* v8 ignore else -- @preserve */
|
|
301
|
+
if (!event.repeat) dialPad._startKeyboardLongPress();
|
|
302
|
+
}
|
|
303
|
+
return true;
|
|
205
304
|
}
|
|
206
|
-
function
|
|
305
|
+
function handleButtonKeyUp(digit, { parent: dialPad, event }) {
|
|
306
|
+
/* v8 ignore else -- @preserve */
|
|
307
|
+
if ((event.key === " " || event.key === "Space") && digit.value === "0") {
|
|
308
|
+
event.preventDefault();
|
|
309
|
+
/* v8 ignore else -- @preserve */
|
|
310
|
+
if (!dialPad._endKeyboardLongPress() && !dialPad.disabled && !dialPad.callActive) onDigitClick(digit, {
|
|
311
|
+
parent: dialPad,
|
|
312
|
+
event: new MouseEvent("click", { bubbles: true })
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
return true;
|
|
316
|
+
}
|
|
317
|
+
function syncFieldAndPadValues(x) {
|
|
318
|
+
x.value = x._textFieldEl.value;
|
|
319
|
+
}
|
|
320
|
+
function stopPropagation(_, { event: e }) {
|
|
321
|
+
e.stopImmediatePropagation();
|
|
322
|
+
}
|
|
323
|
+
function deleteLastCharacter(dialPad) {
|
|
324
|
+
dialPad.value = dialPad.value.slice(0, -1);
|
|
325
|
+
dialPad.$emit("input");
|
|
326
|
+
dialPad.$emit("change");
|
|
327
|
+
if (dialPad.value === "") dialPad._textFieldEl?.focus();
|
|
328
|
+
}
|
|
329
|
+
function renderTextField(textFieldTag, buttonTag) {
|
|
330
|
+
return _microsoft_fast_element.html`<${textFieldTag} ${(0, _microsoft_fast_element.ref)("_textFieldEl")} class="phone-field" internal-part type="tel"
|
|
331
|
+
value="${(x) => x.value}" placeholder="${(x) => x.placeholder}"
|
|
332
|
+
?disabled="${(x) => x.disabled}" helper-text="${(x) => x.helperText}" pattern="${(x) => x.pattern}"
|
|
333
|
+
aria-label="${(x) => x.locale.dialPad.inputLabel}"
|
|
334
|
+
@keydown="${(x, c) => handleKeyDown(x, c.event)}"
|
|
335
|
+
@keyup="${(x, c) => handleKeyUp(x, c.event)}"
|
|
336
|
+
@input="${syncFieldAndPadValues}"
|
|
337
|
+
@change="${syncFieldAndPadValues}"
|
|
338
|
+
@focus="${stopPropagation}"
|
|
339
|
+
@blur="${stopPropagation}"
|
|
340
|
+
?autofocus="${(x) => x.autofocus}"
|
|
341
|
+
scale="${(x) => x.size === "condensed" ? "condensed" : "normal"}">
|
|
342
|
+
>
|
|
343
|
+
${(0, _microsoft_fast_element.when)((x) => x.value && x.value.length && x.value.length > 0, _microsoft_fast_element.html`<${buttonTag}
|
|
344
|
+
slot="action-items"
|
|
345
|
+
size='super-condensed'
|
|
346
|
+
icon="backspace-line"
|
|
347
|
+
aria-label="${(x) => x.deleteAriaLabel || x.locale.dialPad.deleteButtonLabel}"
|
|
348
|
+
appearance='ghost'
|
|
349
|
+
?disabled="${(x) => x.disabled || x.callActive}"
|
|
350
|
+
@click="${(x) => deleteLastCharacter(x)}">
|
|
351
|
+
</${buttonTag}>`)}
|
|
352
|
+
</${textFieldTag}>`;
|
|
353
|
+
}
|
|
354
|
+
function onDigitClick(digit, { parent: dialPad, event }) {
|
|
355
|
+
if (dialPad._suppressNextClick) {
|
|
356
|
+
dialPad._suppressNextClick = false;
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
dialPad.value += digit.value;
|
|
360
|
+
dialPad.$emit("keypad-click", event.currentTarget);
|
|
361
|
+
dialPad.$emit("input");
|
|
362
|
+
dialPad.$emit("change");
|
|
363
|
+
}
|
|
364
|
+
function renderDigits(buttonTag, iconTag) {
|
|
207
365
|
return _microsoft_fast_element.html`
|
|
208
|
-
|
|
366
|
+
${(0, _microsoft_fast_element.repeat)((_) => DIAL_PAD_BUTTONS, _microsoft_fast_element.html`
|
|
367
|
+
<${buttonTag}
|
|
368
|
+
id="${(x) => x.id}"
|
|
369
|
+
value="${(x) => x.value}"
|
|
370
|
+
stacked
|
|
371
|
+
appearance="ghost-light"
|
|
372
|
+
shape="pill"
|
|
373
|
+
label="${(x, c) => (c.parent.noLetters ? null : x.letters) ?? x.alwaysVisibleLetters}"
|
|
374
|
+
size='condensed'
|
|
375
|
+
class="digit-btn"
|
|
376
|
+
?autofocus="${(_, c) => c.parent.autofocus && c.parent.noInput && c.index === 0}"
|
|
377
|
+
aria-label="${(x, c) => c.parent.noLetters ? x.value : c.parent.locale.dialPad[x.ariaLabel]}"
|
|
378
|
+
?disabled="${(_, c) => c.parent.disabled}"
|
|
379
|
+
@pointerdown="${(x, c) => c.parent._startLongPress(x.value, c.event)}"
|
|
380
|
+
@pointerup="${(_, c) => c.parent._endLongPress()}"
|
|
381
|
+
@pointercancel="${(_, c) => c.parent._cancelLongPress()}"
|
|
382
|
+
@pointerleave="${(_, c) => c.parent._cancelLongPress()}"
|
|
383
|
+
@keydown="${(x, c) => handleButtonKeyDown(x, {
|
|
384
|
+
parent: c.parent,
|
|
385
|
+
event: c.event
|
|
386
|
+
})}"
|
|
387
|
+
@keyup="${(x, c) => handleButtonKeyUp(x, {
|
|
388
|
+
parent: c.parent,
|
|
389
|
+
event: c.event
|
|
390
|
+
})}"
|
|
391
|
+
@click="${onDigitClick}">
|
|
392
|
+
<${iconTag} slot="icon"
|
|
393
|
+
name="${(x) => x.icon}"
|
|
394
|
+
class="digit-btn-num"></${iconTag}>
|
|
395
|
+
</${buttonTag}>
|
|
396
|
+
`, { positioning: true })}
|
|
209
397
|
`;
|
|
210
398
|
}
|
|
211
|
-
function
|
|
212
|
-
return _microsoft_fast_element.html
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
399
|
+
function renderDialButton(buttonTag) {
|
|
400
|
+
return _microsoft_fast_element.html`<${buttonTag} class="call-btn"
|
|
401
|
+
size="${(x) => x.size === "condensed" ? "normal" : "expanded"}"
|
|
402
|
+
appearance="filled"
|
|
403
|
+
icon="${(x) => x.callActive ? "disable-call-line" : "call-line"}"
|
|
404
|
+
connotation="${(x) => x.callActive ? "alert" : "cta"}"
|
|
405
|
+
?disabled="${(x) => x.disabled}"
|
|
406
|
+
?pending="${(x) => x.pending}"
|
|
407
|
+
@click="${(x) => x._onDial()}"
|
|
408
|
+
label="${(x) => x.callActive ? x.endCallButtonLabel || x.locale.dialPad.endCallButtonLabel : x.callButtonLabel || x.locale.dialPad.callButtonLabel}">
|
|
409
|
+
</${buttonTag}>`;
|
|
410
|
+
}
|
|
411
|
+
function renderErrorAnnouncement(visuallyHiddenTag) {
|
|
412
|
+
return _microsoft_fast_element.html`<${visuallyHiddenTag} role="alert" aria-atomic="true">
|
|
413
|
+
${(x) => `${x.locale.dialPad.errorLabel} ${x._errorAnnouncement}`}
|
|
414
|
+
</${visuallyHiddenTag}>`;
|
|
220
415
|
}
|
|
221
|
-
var
|
|
222
|
-
const elevationTag = context.tagFor(require_definition$2.Elevation);
|
|
223
|
-
const iconTag = context.tagFor(require_definition.Icon);
|
|
416
|
+
var DialPadTemplate = (context) => {
|
|
224
417
|
const buttonTag = context.tagFor(require_definition$1.Button);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
<slot name="main">
|
|
237
|
-
<div class="main-wrapper">
|
|
238
|
-
<div class="header ${(x) => x.subtitle ? "border" : ""}">
|
|
239
|
-
${(0, _microsoft_fast_element.when)((x) => x._showDismissButton, renderDismissButton(buttonTag))}
|
|
240
|
-
<slot name="graphic">
|
|
241
|
-
${(0, _microsoft_fast_element.when)((x) => x.icon, icon(iconTag))}
|
|
242
|
-
</slot>
|
|
243
|
-
${(0, _microsoft_fast_element.when)((x) => x.headline && x.subtitle, renderHeaderText())}
|
|
244
|
-
${(0, _microsoft_fast_element.when)((x) => x.headline && !x.subtitle, headline())}
|
|
245
|
-
${(0, _microsoft_fast_element.when)((x) => x.subtitle && !x.headline, subtitle())}
|
|
246
|
-
</div>
|
|
247
|
-
<div class="body ${(x) => x.fullWidthBody ? "full-width" : ""}" >
|
|
248
|
-
<slot name="body" ${(0, _microsoft_fast_element.slotted)("bodySlottedContent")}></slot>
|
|
249
|
-
</div>
|
|
250
|
-
<div class="footer">
|
|
251
|
-
<div>
|
|
252
|
-
<slot name="footer" ${(0, _microsoft_fast_element.slotted)("footerSlottedContent")}></slot>
|
|
253
|
-
</div>
|
|
254
|
-
<div class="actions">
|
|
255
|
-
<slot name="action-items" ${(0, _microsoft_fast_element.slotted)("actionItemsSlottedContent")}></slot>
|
|
256
|
-
</div>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
259
|
-
</slot>
|
|
260
|
-
</dialog>
|
|
261
|
-
</${elevationTag}>`;
|
|
418
|
+
const iconTag = context.tagFor(require_icon.Icon);
|
|
419
|
+
const textFieldTag = context.tagFor(require_definition$3.TextField);
|
|
420
|
+
const visuallyHiddenTag = context.tagFor(require_definition$2.VisuallyHidden);
|
|
421
|
+
return _microsoft_fast_element.html` <div
|
|
422
|
+
class="${(x) => (0, _microsoft_fast_web_utilities.classNames)("base", [`size-${x.size}`, Boolean(x.size)], ["no-input", x.noInput], ["no-letters", x.noLetters])}"
|
|
423
|
+
>
|
|
424
|
+
${(0, _microsoft_fast_element.when)((x) => !x.noInput, renderTextField(textFieldTag, buttonTag))}
|
|
425
|
+
<div class="digits">${renderDigits(buttonTag, iconTag)}</div>
|
|
426
|
+
${(0, _microsoft_fast_element.when)((x) => !x.noCall, renderDialButton(buttonTag))}
|
|
427
|
+
${renderErrorAnnouncement(visuallyHiddenTag)}
|
|
428
|
+
</div>`;
|
|
262
429
|
};
|
|
263
430
|
//#endregion
|
|
264
|
-
//#region src/lib/
|
|
431
|
+
//#region src/lib/dial-pad/definition.ts
|
|
265
432
|
/** @internal */
|
|
266
|
-
var
|
|
267
|
-
require_definition.iconDefinition,
|
|
433
|
+
var dialPadDefinition = require_vivid_element.defineVividComponent("dial-pad", DialPad, DialPadTemplate, [
|
|
268
434
|
require_definition$1.buttonDefinition,
|
|
269
|
-
require_definition$
|
|
270
|
-
|
|
435
|
+
require_definition$3.textFieldDefinition,
|
|
436
|
+
require_definition.iconDefinition,
|
|
437
|
+
require_definition$2.visuallyHiddenDefinition
|
|
438
|
+
], { styles: dial_pad_default });
|
|
271
439
|
/**
|
|
272
|
-
* Registers the
|
|
440
|
+
* Registers the dial-pad element with the design system.
|
|
273
441
|
*
|
|
274
442
|
* @param prefix - the prefix to use for the component name
|
|
275
443
|
*/
|
|
276
|
-
var
|
|
444
|
+
var registerDialPad = require_vivid_element.createRegisterFunction(dialPadDefinition);
|
|
277
445
|
//#endregion
|
|
278
|
-
Object.defineProperty(exports, "
|
|
446
|
+
Object.defineProperty(exports, "DialPad", {
|
|
279
447
|
enumerable: true,
|
|
280
448
|
get: function() {
|
|
281
|
-
return
|
|
449
|
+
return DialPad;
|
|
282
450
|
}
|
|
283
451
|
});
|
|
284
|
-
Object.defineProperty(exports, "
|
|
452
|
+
Object.defineProperty(exports, "dialPadDefinition", {
|
|
285
453
|
enumerable: true,
|
|
286
454
|
get: function() {
|
|
287
|
-
return
|
|
455
|
+
return dialPadDefinition;
|
|
288
456
|
}
|
|
289
457
|
});
|
|
290
|
-
Object.defineProperty(exports, "
|
|
458
|
+
Object.defineProperty(exports, "registerDialPad", {
|
|
291
459
|
enumerable: true,
|
|
292
460
|
get: function() {
|
|
293
|
-
return
|
|
461
|
+
return registerDialPad;
|
|
294
462
|
}
|
|
295
463
|
});
|