@vonage/vivid 4.13.0 → 4.14.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/custom-elements.json +4033 -2662
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +1 -1
- package/index.cjs +70 -136
- package/index.d.ts +0 -1
- package/index.js +60 -62
- package/lib/accordion/accordion.d.ts +2 -2
- package/lib/accordion/accordion.template.d.ts +1 -2
- package/lib/accordion/definition.d.ts +1 -1
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/accordion-item/accordion-item.template.d.ts +2 -3
- package/lib/accordion-item/definition.d.ts +1 -1
- package/lib/action-group/action-group.d.ts +2 -2
- package/lib/action-group/action-group.template.d.ts +1 -3
- package/lib/action-group/definition.d.ts +1 -1
- package/lib/alert/alert.d.ts +2 -2
- package/lib/alert/alert.template.d.ts +2 -3
- package/lib/alert/definition.d.ts +1 -1
- package/lib/audio-player/audio-player.d.ts +2 -2
- package/lib/audio-player/audio-player.template.d.ts +2 -3
- package/lib/audio-player/definition.d.ts +1 -3
- package/lib/avatar/avatar.d.ts +2 -2
- package/lib/avatar/avatar.template.d.ts +2 -3
- package/lib/avatar/definition.d.ts +1 -1
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/badge.template.d.ts +2 -3
- package/lib/badge/definition.d.ts +1 -3
- package/lib/banner/banner.d.ts +2 -2
- package/lib/banner/banner.template.d.ts +2 -3
- package/lib/banner/definition.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/breadcrumb.template.d.ts +3 -4
- package/lib/breadcrumb/definition.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +2 -3
- package/lib/breadcrumb-item/definition.d.ts +1 -1
- package/lib/button/button.d.ts +2 -2
- package/lib/button/button.template.d.ts +2 -4
- package/lib/button/definition.d.ts +1 -1
- package/lib/calendar/calendar.d.ts +2 -2
- package/lib/calendar/calendar.template.d.ts +1 -3
- package/lib/calendar/definition.d.ts +1 -1
- package/lib/calendar-event/calendar-event.d.ts +2 -2
- package/lib/calendar-event/calendar-event.template.d.ts +1 -3
- package/lib/calendar-event/definition.d.ts +1 -1
- package/lib/card/card.d.ts +2 -2
- package/lib/card/card.template.d.ts +2 -3
- package/lib/card/definition.d.ts +1 -1
- package/lib/checkbox/checkbox.form-associated.d.ts +3 -2
- package/lib/checkbox/checkbox.template.d.ts +2 -3
- package/lib/checkbox/definition.d.ts +1 -1
- package/lib/combobox/combobox.d.ts +17 -2
- package/lib/combobox/combobox.options.d.ts +7 -0
- package/lib/combobox/combobox.template.d.ts +2 -3
- package/lib/combobox/definition.d.ts +1 -2
- package/lib/data-grid/data-grid-cell.d.ts +16 -13
- package/lib/data-grid/data-grid-cell.template.d.ts +2 -3
- package/lib/data-grid/data-grid-row.d.ts +19 -2
- package/lib/data-grid/data-grid-row.template.d.ts +2 -2
- package/lib/data-grid/data-grid.d.ts +45 -4
- package/lib/data-grid/data-grid.template.d.ts +2 -2
- package/lib/data-grid/definition.d.ts +1 -6
- package/lib/date-picker/definition.d.ts +1 -3
- package/lib/date-range-picker/definition.d.ts +1 -3
- package/lib/dial-pad/definition.d.ts +1 -3
- package/lib/dial-pad/dial-pad.d.ts +2 -2
- package/lib/dial-pad/dial-pad.template.d.ts +2 -3
- package/lib/dialog/definition.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/dialog.template.d.ts +2 -3
- package/lib/divider/definition.d.ts +1 -1
- package/lib/divider/divider.d.ts +2 -2
- package/lib/divider/divider.template.d.ts +1 -3
- package/lib/elevation/definition.d.ts +1 -1
- package/lib/elevation/elevation.d.ts +2 -2
- package/lib/elevation/elevation.template.d.ts +1 -3
- package/lib/empty-state/definition.d.ts +1 -3
- package/lib/empty-state/empty-state.d.ts +2 -2
- package/lib/empty-state/empty-state.template.d.ts +2 -3
- package/lib/fab/definition.d.ts +1 -3
- package/lib/fab/fab.template.d.ts +2 -3
- package/lib/file-picker/definition.d.ts +1 -3
- package/lib/file-picker/file-picker.form-associated.d.ts +3 -2
- package/lib/file-picker/file-picker.template.d.ts +2 -3
- package/lib/header/definition.d.ts +1 -3
- package/lib/header/header.d.ts +2 -2
- package/lib/header/header.template.d.ts +2 -3
- package/lib/icon/definition.d.ts +1 -3
- package/lib/icon/icon.d.ts +2 -2
- package/lib/icon/icon.template.d.ts +1 -3
- package/lib/layout/definition.d.ts +1 -3
- package/lib/layout/layout.d.ts +2 -2
- package/lib/layout/layout.template.d.ts +1 -3
- package/lib/listbox/definition.d.ts +1 -3
- package/lib/listbox/listbox.template.d.ts +1 -3
- package/lib/menu/definition.d.ts +1 -11
- package/lib/menu/menu.d.ts +2 -2
- package/lib/menu/menu.template.d.ts +3 -3
- package/lib/menu-item/definition.d.ts +1 -3
- package/lib/menu-item/menu-item.d.ts +2 -2
- package/lib/menu-item/menu-item.template.d.ts +2 -3
- package/lib/nav/definition.d.ts +1 -3
- package/lib/nav/nav.d.ts +2 -2
- package/lib/nav/nav.template.d.ts +1 -3
- package/lib/nav-disclosure/definition.d.ts +1 -3
- package/lib/nav-disclosure/nav-disclosure.d.ts +2 -2
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +2 -3
- package/lib/nav-item/definition.d.ts +1 -3
- package/lib/nav-item/nav-item.template.d.ts +2 -3
- package/lib/note/definition.d.ts +1 -3
- package/lib/note/note.d.ts +2 -2
- package/lib/note/note.template.d.ts +2 -3
- package/lib/number-field/definition.d.ts +1 -4
- package/lib/number-field/number-field.form-associated.d.ts +3 -2
- package/lib/number-field/number-field.template.d.ts +2 -3
- package/lib/option/definition.d.ts +1 -3
- package/lib/option/option.d.ts +3 -2
- package/lib/option/option.template.d.ts +2 -3
- package/lib/pagination/definition.d.ts +1 -3
- package/lib/pagination/pagination.d.ts +2 -2
- package/lib/pagination/pagination.template.d.ts +2 -3
- package/lib/popup/definition.d.ts +1 -3
- package/lib/popup/popup.template.d.ts +2 -3
- package/lib/progress/definition.d.ts +1 -3
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress/progress.template.d.ts +1 -4
- package/lib/progress-ring/definition.d.ts +1 -3
- package/lib/progress-ring/progress-ring.d.ts +1 -1
- package/lib/progress-ring/progress-ring.template.d.ts +1 -3
- package/lib/radio/definition.d.ts +1 -3
- package/lib/radio/radio.form-associated.d.ts +3 -2
- package/lib/radio/radio.template.d.ts +1 -3
- package/lib/radio-group/definition.d.ts +1 -11
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/radio-group/radio-group.template.d.ts +2 -3
- package/lib/range-slider/definition.d.ts +1 -3
- package/lib/range-slider/range-slider.form-associated.d.ts +3 -2
- package/lib/range-slider/range-slider.template.d.ts +2 -3
- package/lib/searchable-select/definition.d.ts +1 -4
- package/lib/searchable-select/option-tag.template.d.ts +2 -3
- package/lib/searchable-select/searchable-select.form-associated.d.ts +3 -2
- package/lib/searchable-select/searchable-select.template.d.ts +2 -3
- package/lib/select/definition.d.ts +1 -3
- package/lib/select/select.d.ts +14 -4
- package/lib/select/select.form-associated.d.ts +11 -0
- package/lib/select/select.template.d.ts +2 -3
- package/lib/selectable-box/definition.d.ts +1 -3
- package/lib/selectable-box/selectable-box.d.ts +2 -2
- package/lib/selectable-box/selectable-box.template.d.ts +2 -3
- package/lib/side-drawer/definition.d.ts +1 -3
- package/lib/side-drawer/side-drawer.d.ts +2 -2
- package/lib/side-drawer/side-drawer.template.d.ts +1 -3
- package/lib/slider/definition.d.ts +1 -3
- package/lib/slider/slider.form-associated.d.ts +3 -2
- package/lib/slider/slider.template.d.ts +3 -4
- package/lib/split-button/definition.d.ts +1 -1
- package/lib/split-button/split-button.d.ts +2 -2
- package/lib/split-button/split-button.template.d.ts +2 -3
- package/lib/switch/definition.d.ts +1 -3
- package/lib/switch/switch.form-associated.d.ts +3 -2
- package/lib/switch/switch.template.d.ts +1 -3
- package/lib/tab/definition.d.ts +1 -3
- package/lib/tab/tab.d.ts +2 -2
- package/lib/tab/tab.template.d.ts +2 -2
- package/lib/tab-panel/definition.d.ts +1 -3
- package/lib/tab-panel/tab-panel.d.ts +2 -2
- package/lib/tab-panel/tab-panel.template.d.ts +1 -1
- package/lib/tabs/definition.d.ts +1 -3
- package/lib/tabs/tabs.d.ts +3 -2
- package/lib/tabs/tabs.template.d.ts +1 -1
- package/lib/tag/definition.d.ts +1 -4
- package/lib/tag/tag.d.ts +2 -2
- package/lib/tag/tag.template.d.ts +2 -3
- package/lib/tag-group/definition.d.ts +1 -3
- package/lib/tag-group/tag-group.d.ts +2 -2
- package/lib/tag-group/tag-group.template.d.ts +1 -3
- package/lib/text-anchor/definition.d.ts +1 -3
- package/lib/text-anchor/text-anchor.d.ts +4 -3
- package/lib/text-anchor/text-anchor.template.d.ts +2 -3
- package/lib/text-area/definition.d.ts +1 -3
- package/lib/text-area/text-area.d.ts +1 -1
- package/lib/text-area/{text-field.form-associated.d.ts → text-area.form-associated.d.ts} +3 -2
- package/lib/text-area/text-area.template.d.ts +2 -3
- package/lib/text-field/definition.d.ts +1 -3
- package/lib/text-field/text-field.form-associated.d.ts +3 -2
- package/lib/text-field/text-field.template.d.ts +2 -3
- package/lib/time-picker/definition.d.ts +1 -3
- package/lib/time-picker/time-picker.form-associated.d.ts +3 -2
- package/lib/time-picker/time-picker.template.d.ts +2 -2
- package/lib/toggletip/definition.d.ts +1 -3
- package/lib/toggletip/toggletip.d.ts +2 -2
- package/lib/toggletip/toggletip.template.d.ts +2 -3
- package/lib/tooltip/definition.d.ts +1 -3
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/lib/tooltip/tooltip.template.d.ts +2 -3
- package/lib/tree-item/definition.d.ts +1 -3
- package/lib/tree-item/tree-item.d.ts +11 -2
- package/lib/tree-item/tree-item.template.d.ts +3 -3
- package/lib/tree-view/definition.d.ts +1 -3
- package/lib/tree-view/tree-view.d.ts +16 -2
- package/lib/tree-view/tree-view.template.d.ts +1 -1
- package/lib/video-player/definition.d.ts +1 -3
- package/lib/video-player/video-player.d.ts +2 -2
- package/lib/video-player/video-player.template.d.ts +1 -3
- package/listbox/index.cjs +37 -39
- package/listbox/index.js +37 -39
- package/menu/index.cjs +1 -1
- package/menu/index.js +1 -1
- package/nav/index.cjs +1 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.cjs +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.cjs +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.cjs +1 -1
- package/note/index.js +1 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +1 -1
- package/pagination/index.cjs +1 -1
- package/pagination/index.js +1 -1
- package/popup/index.cjs +1 -1
- package/popup/index.js +1 -1
- package/progress/index.cjs +1 -1
- package/progress/index.js +1 -1
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.cjs +1 -1
- package/radio-group/index.js +1 -1
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/searchable-select/index.cjs +1 -1
- package/searchable-select/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +1 -1
- package/shared/affix.cjs +10 -10
- package/shared/affix.js +2 -2
- package/shared/anchor.cjs +59 -0
- package/shared/anchor.js +57 -0
- package/shared/anchored.cjs +6 -6
- package/shared/anchored.js +2 -2
- package/shared/apply-mixins.cjs +15 -17
- package/shared/apply-mixins.js +15 -17
- package/shared/apply-mixins2.cjs +25 -0
- package/shared/apply-mixins2.js +23 -0
- package/shared/applyMixinsWithObservables.cjs +4 -4
- package/shared/applyMixinsWithObservables.js +2 -2
- package/shared/aria-global.cjs +86 -67
- package/shared/aria-global.js +86 -67
- package/shared/aria-global2.cjs +68 -86
- package/shared/aria-global2.js +68 -86
- package/shared/base-progress.cjs +70 -63
- package/shared/base-progress.js +69 -62
- package/shared/breadcrumb-item.cjs +7 -58
- package/shared/breadcrumb-item.js +4 -55
- package/shared/button.cjs +178 -0
- package/shared/button.js +176 -0
- package/shared/calendar-event.cjs +10 -9
- package/shared/calendar-event.js +3 -2
- package/shared/children.cjs +2 -2
- package/shared/children.js +1 -1
- package/shared/date-picker/date-picker-base.form-associated.d.ts +3 -2
- package/shared/date-picker/date-picker-base.template.d.ts +2 -3
- package/shared/defineVividComponent.cjs +2612 -0
- package/shared/defineVividComponent.js +2592 -0
- package/shared/definition.cjs +26 -24
- package/shared/definition.js +17 -14
- package/shared/definition10.cjs +15 -12
- package/shared/definition10.js +15 -11
- package/shared/definition11.cjs +52 -248
- package/shared/definition11.js +24 -218
- package/shared/definition12.cjs +18 -14
- package/shared/definition12.js +17 -12
- package/shared/definition13.cjs +20 -19
- package/shared/definition13.js +11 -9
- package/shared/definition14.cjs +36 -38
- package/shared/definition14.js +16 -17
- package/shared/definition15.cjs +28 -26
- package/shared/definition15.js +17 -14
- package/shared/definition16.cjs +478 -611
- package/shared/definition16.js +471 -603
- package/shared/definition17.cjs +934 -1113
- package/shared/definition17.js +912 -1090
- package/shared/definition18.cjs +16 -20
- package/shared/definition18.js +19 -22
- package/shared/definition19.cjs +26 -30
- package/shared/definition19.js +21 -24
- package/shared/definition2.cjs +20 -22
- package/shared/definition2.js +21 -22
- package/shared/definition20.cjs +51 -52
- package/shared/definition20.js +35 -35
- package/shared/definition21.cjs +42 -45
- package/shared/definition21.js +18 -20
- package/shared/definition22.cjs +16 -13
- package/shared/definition22.js +15 -11
- package/shared/definition23.cjs +22 -20
- package/shared/definition23.js +15 -12
- package/shared/definition24.cjs +20 -172
- package/shared/definition24.js +17 -168
- package/shared/definition25.cjs +27 -28
- package/shared/definition25.js +19 -19
- package/shared/definition26.cjs +17 -14
- package/shared/definition26.js +15 -11
- package/shared/definition27.cjs +265 -12
- package/shared/definition27.js +262 -10
- package/shared/definition28.cjs +19 -16
- package/shared/definition28.js +15 -11
- package/shared/definition29.cjs +143 -68
- package/shared/definition29.js +102 -29
- package/shared/definition3.cjs +21 -16
- package/shared/definition3.js +17 -11
- package/shared/definition30.cjs +99 -76
- package/shared/definition30.js +98 -74
- package/shared/definition31.cjs +24 -97
- package/shared/definition31.js +25 -97
- package/shared/definition32.cjs +10 -25
- package/shared/definition32.js +9 -23
- package/shared/definition33.cjs +53 -14
- package/shared/definition33.js +52 -12
- package/shared/definition34.cjs +641 -34
- package/shared/definition34.js +638 -30
- package/shared/definition35.cjs +204 -596
- package/shared/definition35.js +198 -591
- package/shared/definition36.cjs +198 -233
- package/shared/definition36.js +193 -226
- package/shared/definition37.cjs +79 -206
- package/shared/definition37.js +75 -202
- package/shared/definition38.cjs +50 -56
- package/shared/definition38.js +48 -52
- package/shared/definition39.cjs +260 -56
- package/shared/definition39.js +259 -54
- package/shared/definition4.cjs +33 -35
- package/shared/definition4.js +20 -21
- package/shared/definition40.cjs +112 -229
- package/shared/definition40.js +109 -226
- package/shared/definition41.cjs +627 -36
- package/shared/definition41.js +626 -34
- package/shared/definition42.cjs +975 -487
- package/shared/definition42.js +972 -482
- package/shared/definition43.cjs +725 -932
- package/shared/definition43.js +713 -918
- package/shared/definition44.cjs +116 -734
- package/shared/definition44.js +114 -731
- package/shared/definition45.cjs +93 -116
- package/shared/definition45.js +93 -115
- package/shared/definition46.cjs +469 -89
- package/shared/definition46.js +466 -86
- package/shared/definition47.cjs +119 -470
- package/shared/definition47.js +116 -465
- package/shared/definition48.cjs +114 -120
- package/shared/definition48.js +112 -117
- package/shared/definition49.cjs +17 -134
- package/shared/definition49.js +16 -132
- package/shared/definition5.cjs +48 -49
- package/shared/definition5.js +19 -19
- package/shared/definition50.cjs +112 -15
- package/shared/definition50.js +110 -12
- package/shared/definition51.cjs +847 -84
- package/shared/definition51.js +843 -79
- package/shared/definition52.cjs +31 -873
- package/shared/definition52.js +29 -870
- package/shared/definition53.cjs +126 -28
- package/shared/definition53.js +124 -25
- package/shared/definition54.cjs +268 -107
- package/shared/definition54.js +262 -100
- package/shared/definition55.cjs +63 -278
- package/shared/definition55.js +61 -275
- package/shared/definition56.cjs +868 -76
- package/shared/definition56.js +867 -74
- package/shared/definition57.cjs +108 -826
- package/shared/definition57.js +106 -823
- package/shared/definition58.cjs +74 -100
- package/shared/definition58.js +70 -95
- package/shared/definition59.cjs +181 -106
- package/shared/definition59.js +175 -101
- package/shared/definition6.cjs +23 -21
- package/shared/definition6.js +15 -12
- package/shared/definition60.cjs +273 -70
- package/shared/definition60.js +273 -69
- package/shared/definition61.cjs +66157 -271
- package/shared/definition61.js +66156 -269
- package/shared/definition62.cjs +36 -66174
- package/shared/definition62.js +33 -66171
- package/shared/definition63.cjs +2154 -27
- package/shared/definition63.js +2151 -25
- package/shared/definition7.cjs +19 -15
- package/shared/definition7.js +14 -10
- package/shared/definition8.cjs +26 -27
- package/shared/definition8.js +17 -17
- package/shared/definition9.cjs +21 -21
- package/shared/definition9.js +18 -17
- package/shared/design-system/createRegisterFunction.d.ts +2 -0
- package/shared/design-system/defineVividComponent.d.ts +15 -0
- package/shared/{localization.js → direction.js} +11 -11
- package/shared/dom.cjs +0 -13
- package/shared/dom.js +1 -13
- package/shared/form-associated.cjs +422 -457
- package/shared/form-associated.js +422 -457
- package/shared/form-associated2.cjs +383 -0
- package/shared/form-associated2.js +381 -0
- package/shared/form-elements.cjs +15 -42
- package/shared/form-elements.js +2 -29
- package/shared/foundation/anchor/anchor.d.ts +1 -0
- package/shared/foundation/button/button.d.ts +3 -2
- package/shared/foundation/button/button.template.d.ts +2 -4
- package/shared/foundation/form-associated/form-associated.d.ts +51 -0
- package/shared/foundation/listbox/listbox.d.ts +22 -0
- package/shared/foundation/progress/base-progress.d.ts +9 -0
- package/shared/foundation/utilities/apply-mixins.d.ts +1 -0
- package/shared/foundation/vivid-element/vivid-element.d.ts +3 -0
- package/shared/foundation-element.cjs +1417 -0
- package/shared/foundation-element.js +1414 -0
- package/shared/index.cjs +7 -5097
- package/shared/index.js +7 -5079
- package/shared/key-codes.cjs +10 -0
- package/shared/key-codes.js +6 -1
- package/shared/key-codes2.cjs +50 -6
- package/shared/key-codes2.js +50 -4
- package/shared/listbox.cjs +428 -1195
- package/shared/listbox.js +412 -1176
- package/shared/listbox2.cjs +1268 -0
- package/shared/listbox2.js +1265 -0
- package/shared/localized.cjs +2 -2
- package/shared/localized.js +1 -1
- package/shared/numbers.cjs +12 -0
- package/shared/numbers.js +12 -1
- package/shared/patterns/affix.d.ts +2 -2
- package/shared/patterns/chevron.d.ts +2 -2
- package/shared/patterns/form-elements/form-elements.d.ts +2 -2
- package/shared/presentationDate.cjs +50 -49
- package/shared/presentationDate.js +7 -6
- package/shared/ref.cjs +2 -2
- package/shared/ref.js +1 -1
- package/shared/repeat.cjs +22 -22
- package/shared/repeat.js +1 -1
- package/shared/slider.template.cjs +5 -5
- package/shared/slider.template.js +2 -2
- package/shared/slotted.cjs +4 -4
- package/shared/slotted.js +1 -1
- package/shared/strings.cjs +0 -26
- package/shared/strings.js +1 -25
- package/shared/strings2.cjs +37 -0
- package/shared/strings2.js +33 -0
- package/shared/text-anchor.cjs +8 -89
- package/shared/text-anchor.js +5 -86
- package/shared/text-anchor.template.cjs +2 -2
- package/shared/text-anchor.template.js +1 -1
- package/shared/text-field2.cjs +29 -28
- package/shared/text-field2.js +6 -5
- package/shared/vivid-element.cjs +8 -0
- package/shared/vivid-element.js +6 -0
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.cjs +1 -1
- package/slider/index.js +1 -1
- package/split-button/index.cjs +1 -1
- package/split-button/index.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -1
- package/tab/index.cjs +1 -1
- package/tab/index.js +1 -1
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +1 -1
- package/text-anchor/index.cjs +10 -7
- package/text-anchor/index.js +10 -7
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +1 -1
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +1 -1
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +1 -1
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +1 -1
- package/video-player/index.cjs +1 -1
- package/video-player/index.js +1 -1
- package/vivid.api.json +2846 -7860
- package/shared/definition64.cjs +0 -2175
- package/shared/definition64.js +0 -2170
- package/shared/design-system/index.d.ts +0 -3
- package/shared/icon.cjs +0 -261
- package/shared/icon.js +0 -258
- package/shared/index2.cjs +0 -11
- package/shared/index2.js +0 -9
- package/shared/radio.cjs +0 -126
- package/shared/radio.js +0 -124
- package/shared/select.options.cjs +0 -12
- package/shared/select.options.js +0 -10
- package/shared/start-end.cjs +0 -52
- package/shared/start-end.js +0 -50
- package/shared/tree-item.cjs +0 -154
- package/shared/tree-item.js +0 -151
- package/shared/{localization.cjs → direction.cjs} +9 -9
package/shared/definition18.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const definition$1 = require('./definition64.cjs');
|
|
3
|
+
const definition$1 = require('./definition63.cjs');
|
|
5
4
|
const definition = require('./definition11.cjs');
|
|
6
|
-
const definition$2 = require('./
|
|
5
|
+
const definition$2 = require('./definition55.cjs');
|
|
7
6
|
const definition$3 = require('./definition22.cjs');
|
|
8
7
|
const presentationDate = require('./presentationDate.cjs');
|
|
8
|
+
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
9
9
|
const formElements = require('./form-elements.cjs');
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
@@ -156,30 +156,26 @@ updateValueDueToUserInteraction_fn = function(newValue) {
|
|
|
156
156
|
this.$emit("input");
|
|
157
157
|
};
|
|
158
158
|
__decorateClass([
|
|
159
|
-
|
|
159
|
+
defineVividComponent.volatile
|
|
160
160
|
], DatePicker.prototype, "_calendarButtonLabel", 1);
|
|
161
161
|
DatePicker = __decorateClass([
|
|
162
162
|
formElements.errorText,
|
|
163
163
|
formElements.formElements
|
|
164
164
|
], DatePicker);
|
|
165
165
|
|
|
166
|
-
const datePickerDefinition =
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
166
|
+
const datePickerDefinition = defineVividComponent.defineVividComponent(
|
|
167
|
+
"date-picker",
|
|
168
|
+
DatePicker,
|
|
169
|
+
presentationDate.DatePickerBaseTemplate,
|
|
170
|
+
[definition.buttonDefinition, definition$1.popupDefinition, definition$2.textFieldDefinition, definition$3.dividerDefinition],
|
|
171
|
+
{
|
|
172
|
+
styles: presentationDate.styles,
|
|
173
|
+
shadowOptions: {
|
|
174
|
+
delegatesFocus: true
|
|
175
|
+
}
|
|
172
176
|
}
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
datePickerDefinition(),
|
|
176
|
-
...definition.buttonRegistries,
|
|
177
|
-
...definition$1.popupRegistries,
|
|
178
|
-
...definition$2.textFieldRegistries,
|
|
179
|
-
...definition$3.dividerRegistries
|
|
180
|
-
];
|
|
181
|
-
const registerDatePicker = index.registerFactory(datePickerRegistries);
|
|
177
|
+
);
|
|
178
|
+
const registerDatePicker = defineVividComponent.createRegisterFunction(datePickerDefinition);
|
|
182
179
|
|
|
183
180
|
exports.datePickerDefinition = datePickerDefinition;
|
|
184
|
-
exports.datePickerRegistries = datePickerRegistries;
|
|
185
181
|
exports.registerDatePicker = registerDatePicker;
|
package/shared/definition18.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import {
|
|
1
|
+
import { p as popupDefinition } from './definition63.js';
|
|
2
|
+
import { b as buttonDefinition } from './definition11.js';
|
|
3
|
+
import { t as textFieldDefinition } from './definition55.js';
|
|
4
|
+
import { d as dividerDefinition } from './definition22.js';
|
|
5
|
+
import { D as DatePickerBase, i as isValidDateStr, f as formatPresentationDate, p as parsePresentationDate, s as styles, a as DatePickerBaseTemplate } from './presentationDate.js';
|
|
6
|
+
import { v as volatile, d as defineVividComponent, f as createRegisterFunction } from './defineVividComponent.js';
|
|
7
7
|
import { e as errorText, f as formElements } from './form-elements.js';
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
@@ -161,21 +161,18 @@ DatePicker = __decorateClass([
|
|
|
161
161
|
formElements
|
|
162
162
|
], DatePicker);
|
|
163
163
|
|
|
164
|
-
const datePickerDefinition =
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
const datePickerDefinition = defineVividComponent(
|
|
165
|
+
"date-picker",
|
|
166
|
+
DatePicker,
|
|
167
|
+
DatePickerBaseTemplate,
|
|
168
|
+
[buttonDefinition, popupDefinition, textFieldDefinition, dividerDefinition],
|
|
169
|
+
{
|
|
170
|
+
styles,
|
|
171
|
+
shadowOptions: {
|
|
172
|
+
delegatesFocus: true
|
|
173
|
+
}
|
|
170
174
|
}
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
datePickerDefinition(),
|
|
174
|
-
...buttonRegistries,
|
|
175
|
-
...popupRegistries,
|
|
176
|
-
...textFieldRegistries,
|
|
177
|
-
...dividerRegistries
|
|
178
|
-
];
|
|
179
|
-
const registerDatePicker = registerFactory(datePickerRegistries);
|
|
175
|
+
);
|
|
176
|
+
const registerDatePicker = createRegisterFunction(datePickerDefinition);
|
|
180
177
|
|
|
181
|
-
export {
|
|
178
|
+
export { datePickerDefinition as d, registerDatePicker as r };
|
package/shared/definition19.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index.cjs');
|
|
4
3
|
const definition = require('./definition11.cjs');
|
|
5
|
-
const definition$1 = require('./
|
|
6
|
-
const definition$2 = require('./
|
|
4
|
+
const definition$1 = require('./definition63.cjs');
|
|
5
|
+
const definition$2 = require('./definition55.cjs');
|
|
7
6
|
const definition$3 = require('./definition22.cjs');
|
|
8
7
|
const presentationDate = require('./presentationDate.cjs');
|
|
8
|
+
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
9
9
|
const formElements = require('./form-elements.cjs');
|
|
10
10
|
|
|
11
11
|
const formatRange = (from, to) => {
|
|
@@ -382,56 +382,52 @@ getVisibleRange_fn = function() {
|
|
|
382
382
|
return { start, end };
|
|
383
383
|
};
|
|
384
384
|
__decorateClass([
|
|
385
|
-
|
|
385
|
+
defineVividComponent.attr({ mode: "fromView", attribute: "start" })
|
|
386
386
|
], DateRangePicker.prototype, "initialStart", 2);
|
|
387
387
|
__decorateClass([
|
|
388
|
-
|
|
388
|
+
defineVividComponent.attr({ mode: "fromView", attribute: "end" })
|
|
389
389
|
], DateRangePicker.prototype, "initialEnd", 2);
|
|
390
390
|
__decorateClass([
|
|
391
|
-
|
|
391
|
+
defineVividComponent.observable
|
|
392
392
|
], DateRangePicker.prototype, "start", 2);
|
|
393
393
|
__decorateClass([
|
|
394
|
-
|
|
394
|
+
defineVividComponent.observable
|
|
395
395
|
], DateRangePicker.prototype, "end", 2);
|
|
396
396
|
__decorateClass([
|
|
397
|
-
|
|
397
|
+
defineVividComponent.attr({ attribute: "current-start" })
|
|
398
398
|
], DateRangePicker.prototype, "currentStart", 2);
|
|
399
399
|
__decorateClass([
|
|
400
|
-
|
|
400
|
+
defineVividComponent.attr({ attribute: "current-end" })
|
|
401
401
|
], DateRangePicker.prototype, "currentEnd", 2);
|
|
402
402
|
__decorateClass([
|
|
403
|
-
|
|
403
|
+
defineVividComponent.observable
|
|
404
404
|
], DateRangePicker.prototype, "_numCalendars", 2);
|
|
405
405
|
__decorateClass([
|
|
406
|
-
|
|
406
|
+
defineVividComponent.observable
|
|
407
407
|
], DateRangePicker.prototype, "_hoverDate", 2);
|
|
408
408
|
__decorateClass([
|
|
409
|
-
|
|
409
|
+
defineVividComponent.volatile
|
|
410
410
|
], DateRangePicker.prototype, "_calendarButtonLabel", 1);
|
|
411
411
|
DateRangePicker = __decorateClass([
|
|
412
412
|
formElements.errorText,
|
|
413
413
|
formElements.formElements
|
|
414
414
|
], DateRangePicker);
|
|
415
415
|
|
|
416
|
-
const dateRangePickerDefinition =
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
];
|
|
431
|
-
const registerDateRangePicker = index.registerFactory(
|
|
432
|
-
dateRangePickerRegistries
|
|
416
|
+
const dateRangePickerDefinition = defineVividComponent.defineVividComponent(
|
|
417
|
+
"date-range-picker",
|
|
418
|
+
DateRangePicker,
|
|
419
|
+
presentationDate.DatePickerBaseTemplate,
|
|
420
|
+
[definition.buttonDefinition, definition$1.popupDefinition, definition$2.textFieldDefinition, definition$3.dividerDefinition],
|
|
421
|
+
{
|
|
422
|
+
styles: presentationDate.styles,
|
|
423
|
+
shadowOptions: {
|
|
424
|
+
delegatesFocus: true
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
);
|
|
428
|
+
const registerDateRangePicker = defineVividComponent.createRegisterFunction(
|
|
429
|
+
dateRangePickerDefinition
|
|
433
430
|
);
|
|
434
431
|
|
|
435
432
|
exports.dateRangePickerDefinition = dateRangePickerDefinition;
|
|
436
|
-
exports.dateRangePickerRegistries = dateRangePickerRegistries;
|
|
437
433
|
exports.registerDateRangePicker = registerDateRangePicker;
|
package/shared/definition19.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import {
|
|
1
|
+
import { b as buttonDefinition } from './definition11.js';
|
|
2
|
+
import { p as popupDefinition } from './definition63.js';
|
|
3
|
+
import { t as textFieldDefinition } from './definition55.js';
|
|
4
|
+
import { d as dividerDefinition } from './definition22.js';
|
|
5
|
+
import { f as formatPresentationDate, p as parsePresentationDate, D as DatePickerBase, i as isValidDateStr, c as compareDateStr, s as styles, a as DatePickerBaseTemplate } from './presentationDate.js';
|
|
6
|
+
import { a as attr, o as observable, v as volatile, d as defineVividComponent, f as createRegisterFunction } from './defineVividComponent.js';
|
|
7
7
|
import { e as errorText, f as formElements } from './form-elements.js';
|
|
8
8
|
|
|
9
9
|
const formatRange = (from, to) => {
|
|
@@ -411,23 +411,20 @@ DateRangePicker = __decorateClass([
|
|
|
411
411
|
formElements
|
|
412
412
|
], DateRangePicker);
|
|
413
413
|
|
|
414
|
-
const dateRangePickerDefinition =
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
];
|
|
429
|
-
const registerDateRangePicker = registerFactory(
|
|
430
|
-
dateRangePickerRegistries
|
|
414
|
+
const dateRangePickerDefinition = defineVividComponent(
|
|
415
|
+
"date-range-picker",
|
|
416
|
+
DateRangePicker,
|
|
417
|
+
DatePickerBaseTemplate,
|
|
418
|
+
[buttonDefinition, popupDefinition, textFieldDefinition, dividerDefinition],
|
|
419
|
+
{
|
|
420
|
+
styles,
|
|
421
|
+
shadowOptions: {
|
|
422
|
+
delegatesFocus: true
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
const registerDateRangePicker = createRegisterFunction(
|
|
427
|
+
dateRangePickerDefinition
|
|
431
428
|
);
|
|
432
429
|
|
|
433
|
-
export {
|
|
430
|
+
export { dateRangePickerDefinition as d, registerDateRangePicker as r };
|
package/shared/definition2.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
4
4
|
const definition = require('./definition.cjs');
|
|
5
|
+
const vividElement = require('./vivid-element.cjs');
|
|
5
6
|
const keyCodes = require('./key-codes.cjs');
|
|
6
7
|
const numbers = require('./numbers.cjs');
|
|
7
8
|
const slotted = require('./slotted.cjs');
|
|
@@ -28,7 +29,7 @@ const AccordionExpandMode = {
|
|
|
28
29
|
*/
|
|
29
30
|
multi: "multi"
|
|
30
31
|
};
|
|
31
|
-
class Accordion extends
|
|
32
|
+
class Accordion extends vividElement.VividElement {
|
|
32
33
|
constructor() {
|
|
33
34
|
super(...arguments);
|
|
34
35
|
/* eslint-disable-next-line @nrwl/nx/workspace/no-attribute-default-value */
|
|
@@ -172,33 +173,30 @@ class Accordion extends index.FoundationElement {
|
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
__decorateClass([
|
|
175
|
-
|
|
176
|
+
defineVividComponent.attr({ attribute: "expand-mode" })
|
|
176
177
|
], Accordion.prototype, "expandmode");
|
|
177
178
|
// @ts-expect-error Type is incorrectly non-optional
|
|
178
179
|
__decorateClass([
|
|
179
|
-
|
|
180
|
+
defineVividComponent.observable
|
|
180
181
|
], Accordion.prototype, "accordionItems");
|
|
181
182
|
|
|
182
183
|
const getClasses = (_) => classNames.classNames("base");
|
|
183
|
-
const AccordionTemplate =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
</div>
|
|
189
|
-
`;
|
|
184
|
+
const AccordionTemplate = defineVividComponent.html`
|
|
185
|
+
<div class="${getClasses}">
|
|
186
|
+
<slot ${slotted.slotted({ property: "accordionItems", filter: slotted.elements() })}></slot>
|
|
187
|
+
</div>
|
|
188
|
+
`;
|
|
190
189
|
|
|
191
|
-
const accordionDefinition =
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
const registerAccordion =
|
|
190
|
+
const accordionDefinition = defineVividComponent.defineVividComponent(
|
|
191
|
+
"accordion",
|
|
192
|
+
Accordion,
|
|
193
|
+
AccordionTemplate,
|
|
194
|
+
[definition.accordionItemDefinition],
|
|
195
|
+
{
|
|
196
|
+
styles
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
const registerAccordion = defineVividComponent.createRegisterFunction(accordionDefinition);
|
|
201
200
|
|
|
202
201
|
exports.accordionDefinition = accordionDefinition;
|
|
203
|
-
exports.accordionRegistries = accordionRegistries;
|
|
204
202
|
exports.registerAccordion = registerAccordion;
|
package/shared/definition2.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AccordionItem,
|
|
3
|
-
import {
|
|
1
|
+
import { a as attr, o as observable, h as html, d as defineVividComponent, f as createRegisterFunction } from './defineVividComponent.js';
|
|
2
|
+
import { A as AccordionItem, a as accordionItemDefinition } from './definition.js';
|
|
3
|
+
import { V as VividElement } from './vivid-element.js';
|
|
4
|
+
import { d as keyEnd, g as keyHome, f as keyArrowDown, e as keyArrowUp } from './key-codes.js';
|
|
4
5
|
import { w as wrapInBounds } from './numbers.js';
|
|
5
6
|
import { s as slotted, e as elements } from './slotted.js';
|
|
6
7
|
import { c as classNames } from './class-names.js';
|
|
@@ -26,7 +27,7 @@ const AccordionExpandMode = {
|
|
|
26
27
|
*/
|
|
27
28
|
multi: "multi"
|
|
28
29
|
};
|
|
29
|
-
class Accordion extends
|
|
30
|
+
class Accordion extends VividElement {
|
|
30
31
|
constructor() {
|
|
31
32
|
super(...arguments);
|
|
32
33
|
/* eslint-disable-next-line @nrwl/nx/workspace/no-attribute-default-value */
|
|
@@ -178,23 +179,21 @@ __decorateClass([
|
|
|
178
179
|
], Accordion.prototype, "accordionItems");
|
|
179
180
|
|
|
180
181
|
const getClasses = (_) => classNames("base");
|
|
181
|
-
const AccordionTemplate =
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
</div>
|
|
187
|
-
`;
|
|
182
|
+
const AccordionTemplate = html`
|
|
183
|
+
<div class="${getClasses}">
|
|
184
|
+
<slot ${slotted({ property: "accordionItems", filter: elements() })}></slot>
|
|
185
|
+
</div>
|
|
186
|
+
`;
|
|
188
187
|
|
|
189
|
-
const accordionDefinition =
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const registerAccordion =
|
|
188
|
+
const accordionDefinition = defineVividComponent(
|
|
189
|
+
"accordion",
|
|
190
|
+
Accordion,
|
|
191
|
+
AccordionTemplate,
|
|
192
|
+
[accordionItemDefinition],
|
|
193
|
+
{
|
|
194
|
+
styles
|
|
195
|
+
}
|
|
196
|
+
);
|
|
197
|
+
const registerAccordion = createRegisterFunction(accordionDefinition);
|
|
199
198
|
|
|
200
|
-
export { accordionDefinition as a,
|
|
199
|
+
export { accordionDefinition as a, registerAccordion as r };
|
package/shared/definition20.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index.cjs');
|
|
4
3
|
const definition = require('./definition11.cjs');
|
|
5
|
-
const definition$
|
|
4
|
+
const definition$2 = require('./definition55.cjs');
|
|
5
|
+
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
6
|
+
const definition$1 = require('./definition27.cjs');
|
|
6
7
|
const applyMixins = require('./apply-mixins.cjs');
|
|
8
|
+
const vividElement = require('./vivid-element.cjs');
|
|
7
9
|
const localized = require('./localized.cjs');
|
|
8
10
|
const textField = require('./text-field2.cjs');
|
|
9
|
-
const icon = require('./icon.cjs');
|
|
10
11
|
const when = require('./when.cjs');
|
|
11
12
|
const classNames = require('./class-names.cjs');
|
|
12
13
|
const ref = require('./ref.cjs');
|
|
@@ -24,7 +25,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
24
25
|
if (result) __defProp(target, key, result);
|
|
25
26
|
return result;
|
|
26
27
|
};
|
|
27
|
-
class DialPad extends
|
|
28
|
+
class DialPad extends vividElement.VividElement {
|
|
28
29
|
constructor() {
|
|
29
30
|
super(...arguments);
|
|
30
31
|
this.helperText = null;
|
|
@@ -54,37 +55,37 @@ class DialPad extends index.FoundationElement {
|
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
__decorateClass([
|
|
57
|
-
|
|
58
|
+
defineVividComponent.attr({ attribute: "helper-text" })
|
|
58
59
|
], DialPad.prototype, "helperText");
|
|
59
60
|
__decorateClass([
|
|
60
|
-
|
|
61
|
+
defineVividComponent.attr
|
|
61
62
|
], DialPad.prototype, "placeholder");
|
|
62
63
|
__decorateClass([
|
|
63
|
-
|
|
64
|
+
defineVividComponent.attr({ mode: "fromView" })
|
|
64
65
|
], DialPad.prototype, "value");
|
|
65
66
|
__decorateClass([
|
|
66
|
-
|
|
67
|
+
defineVividComponent.attr({ mode: "fromView" })
|
|
67
68
|
], DialPad.prototype, "pattern");
|
|
68
69
|
__decorateClass([
|
|
69
|
-
|
|
70
|
+
defineVividComponent.attr({ mode: "boolean" })
|
|
70
71
|
], DialPad.prototype, "disabled");
|
|
71
72
|
__decorateClass([
|
|
72
|
-
|
|
73
|
+
defineVividComponent.attr({ mode: "boolean" })
|
|
73
74
|
], DialPad.prototype, "pending");
|
|
74
75
|
__decorateClass([
|
|
75
|
-
|
|
76
|
+
defineVividComponent.attr({ attribute: "call-active", mode: "boolean" })
|
|
76
77
|
], DialPad.prototype, "callActive");
|
|
77
78
|
__decorateClass([
|
|
78
|
-
|
|
79
|
+
defineVividComponent.attr({ mode: "boolean", attribute: "no-call" })
|
|
79
80
|
], DialPad.prototype, "noCall");
|
|
80
81
|
__decorateClass([
|
|
81
|
-
|
|
82
|
+
defineVividComponent.attr({ mode: "boolean", attribute: "no-input" })
|
|
82
83
|
], DialPad.prototype, "noInput");
|
|
83
84
|
__decorateClass([
|
|
84
|
-
|
|
85
|
+
defineVividComponent.attr({ attribute: "end-call-button-label" })
|
|
85
86
|
], DialPad.prototype, "endCallButtonLabel");
|
|
86
87
|
__decorateClass([
|
|
87
|
-
|
|
88
|
+
defineVividComponent.attr({ attribute: "call-button-label" })
|
|
88
89
|
], DialPad.prototype, "callButtonLabel");
|
|
89
90
|
applyMixins.applyMixins(DialPad, localized.Localized);
|
|
90
91
|
|
|
@@ -156,27 +157,27 @@ function deleteLastCharacter(dialPad) {
|
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
function renderTextField(textFieldTag, buttonTag) {
|
|
159
|
-
return
|
|
160
|
+
return defineVividComponent.html`<${textFieldTag} ${ref.ref(
|
|
160
161
|
"_textFieldEl"
|
|
161
162
|
)} class="phone-field" internal-part type="tel"
|
|
162
163
|
value="${(x) => x.value}" placeholder="${(x) => x.placeholder}"
|
|
163
164
|
?disabled="${(x) => x.disabled}" helper-text="${(x) => x.helperText}" pattern="${(x) => x.pattern}"
|
|
164
165
|
aria-label="${(x) => x.locale.dialPad.inputLabel}"
|
|
165
166
|
@keydown="${(x, c) => handleKeyDown(x, c.event)}"
|
|
166
|
-
@input="${syncFieldAndPadValues}"
|
|
167
|
+
@input="${syncFieldAndPadValues}"
|
|
167
168
|
@change="${syncFieldAndPadValues}"
|
|
168
169
|
@focus="${stopPropagation}"
|
|
169
170
|
@blur="${stopPropagation}"
|
|
170
171
|
>
|
|
171
172
|
${when.when(
|
|
172
173
|
(x) => x.value && x.value.length && x.value.length > 0,
|
|
173
|
-
|
|
174
|
-
slot="action-items"
|
|
175
|
-
size='super-condensed'
|
|
176
|
-
icon="backspace-line"
|
|
174
|
+
defineVividComponent.html`<${buttonTag}
|
|
175
|
+
slot="action-items"
|
|
176
|
+
size='super-condensed'
|
|
177
|
+
icon="backspace-line"
|
|
177
178
|
aria-label="${(x) => x.deleteAriaLabel || x.locale.dialPad.deleteLabel}"
|
|
178
|
-
appearance='ghost'
|
|
179
|
-
?disabled="${(x) => x.disabled || x.callActive}"
|
|
179
|
+
appearance='ghost'
|
|
180
|
+
?disabled="${(x) => x.disabled || x.callActive}"
|
|
180
181
|
@click="${(x) => deleteLastCharacter(x)}">
|
|
181
182
|
</${buttonTag}>`
|
|
182
183
|
)}
|
|
@@ -189,24 +190,24 @@ function onDigitClick(digit, { parent: dialPad, event }) {
|
|
|
189
190
|
dialPad.$emit("change");
|
|
190
191
|
}
|
|
191
192
|
function renderDigits(buttonTag, iconTag) {
|
|
192
|
-
return
|
|
193
|
+
return defineVividComponent.html`
|
|
193
194
|
${repeat.repeat(
|
|
194
195
|
(_) => DIAL_PAD_BUTTONS,
|
|
195
|
-
|
|
196
|
-
<${buttonTag}
|
|
196
|
+
defineVividComponent.html`
|
|
197
|
+
<${buttonTag}
|
|
197
198
|
id="${(x) => x.id}"
|
|
198
|
-
value="${(x) => x.value}"
|
|
199
|
-
stacked
|
|
200
|
-
appearance="ghost-light"
|
|
201
|
-
shape="pill"
|
|
199
|
+
value="${(x) => x.value}"
|
|
200
|
+
stacked
|
|
201
|
+
appearance="ghost-light"
|
|
202
|
+
shape="pill"
|
|
202
203
|
label="${(x) => x.label === " " ? " " : x.label}"
|
|
203
|
-
size='condensed'
|
|
204
|
-
class="digit-btn"
|
|
205
|
-
aria-label="${(x, c) => c.parent.locale.dialPad[x.ariaLabel]}"
|
|
206
|
-
?disabled="${(_, c) => c.parent.disabled}"
|
|
204
|
+
size='condensed'
|
|
205
|
+
class="digit-btn"
|
|
206
|
+
aria-label="${(x, c) => c.parent.locale.dialPad[x.ariaLabel]}"
|
|
207
|
+
?disabled="${(_, c) => c.parent.disabled}"
|
|
207
208
|
@click="${onDigitClick}">
|
|
208
|
-
<${iconTag} slot="icon"
|
|
209
|
-
name="${(x) => x.icon}"
|
|
209
|
+
<${iconTag} slot="icon"
|
|
210
|
+
name="${(x) => x.icon}"
|
|
210
211
|
class="digit-btn-num"></${iconTag}>
|
|
211
212
|
</${buttonTag}>
|
|
212
213
|
`
|
|
@@ -214,7 +215,7 @@ function renderDigits(buttonTag, iconTag) {
|
|
|
214
215
|
`;
|
|
215
216
|
}
|
|
216
217
|
function renderDialButton(buttonTag) {
|
|
217
|
-
return
|
|
218
|
+
return defineVividComponent.html`<${buttonTag} class="call-btn"
|
|
218
219
|
size="expanded"
|
|
219
220
|
appearance="filled"
|
|
220
221
|
icon="${(x) => x.callActive ? "disable-call-line" : "call-line"}"
|
|
@@ -226,28 +227,26 @@ function renderDialButton(buttonTag) {
|
|
|
226
227
|
</${buttonTag}>`;
|
|
227
228
|
}
|
|
228
229
|
const DialPadTemplate = (context) => {
|
|
229
|
-
const buttonTag = context.tagFor(definition.Button
|
|
230
|
-
const iconTag = context.tagFor(
|
|
230
|
+
const buttonTag = context.tagFor(definition.Button);
|
|
231
|
+
const iconTag = context.tagFor(definition$1.Icon);
|
|
231
232
|
const textFieldTag = context.tagFor(textField.TextField);
|
|
232
|
-
return
|
|
233
|
+
return defineVividComponent.html` <div class="${getClasses}">
|
|
233
234
|
${when.when((x) => !x.noInput, renderTextField(textFieldTag, buttonTag))}
|
|
234
235
|
<div class="digits">${renderDigits(buttonTag, iconTag)}</div>
|
|
235
236
|
${when.when((x) => !x.noCall, renderDialButton(buttonTag))}
|
|
236
237
|
</div>`;
|
|
237
238
|
};
|
|
238
239
|
|
|
239
|
-
const dialPadDefinition =
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
const registerDialPad = index.registerFactory(dialPadRegistries);
|
|
240
|
+
const dialPadDefinition = defineVividComponent.defineVividComponent(
|
|
241
|
+
"dial-pad",
|
|
242
|
+
DialPad,
|
|
243
|
+
DialPadTemplate,
|
|
244
|
+
[definition.buttonDefinition, definition$2.textFieldDefinition, definition$1.iconDefinition],
|
|
245
|
+
{
|
|
246
|
+
styles
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
const registerDialPad = defineVividComponent.createRegisterFunction(dialPadDefinition);
|
|
250
250
|
|
|
251
251
|
exports.dialPadDefinition = dialPadDefinition;
|
|
252
|
-
exports.dialPadRegistries = dialPadRegistries;
|
|
253
252
|
exports.registerDialPad = registerDialPad;
|