@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/definition24.cjs
CHANGED
|
@@ -1,169 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index.cjs');
|
|
4
3
|
const definition = require('./definition27.cjs');
|
|
5
|
-
const
|
|
6
|
-
const formAssociated = require('./form-associated.cjs');
|
|
4
|
+
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
7
5
|
const applyMixins = require('./apply-mixins.cjs');
|
|
8
|
-
const
|
|
6
|
+
const affix = require('./affix.cjs');
|
|
7
|
+
const button = require('./button.cjs');
|
|
9
8
|
const ref = require('./ref.cjs');
|
|
10
9
|
const classNames = require('./class-names.cjs');
|
|
11
10
|
|
|
12
11
|
const styles = ".control.connotation-accent{--_connotation-color-primary: var(--vvd-fab-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-fab-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-fab-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-contrast: var(--vvd-fab-accent-contrast, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-fab-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-firm: var(--vvd-fab-accent-firm, var(--vvd-color-canvas-text))}.control.connotation-cta{--_connotation-color-primary: var(--vvd-fab-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-fab-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-fab-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-contrast: var(--vvd-fab-cta-contrast, var(--vvd-color-cta-800));--_connotation-color-fierce: var(--vvd-fab-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-firm: var(--vvd-fab-cta-firm, var(--vvd-color-cta-600))}.control.connotation-announcement{--_connotation-color-primary: var(--vvd-fab-announcement-primary, var(--vvd-color-announcement-500));--_connotation-color-primary-text: var(--vvd-fab-announcement-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-fab-announcement-primary-increment, var(--vvd-color-announcement-600));--_connotation-color-contrast: var(--vvd-fab-announcement-contrast, var(--vvd-color-announcement-800));--_connotation-color-fierce: var(--vvd-fab-announcement-fierce, var(--vvd-color-announcement-700));--_connotation-color-firm: var(--vvd-fab-announcement-firm, var(--vvd-color-announcement-600))}.control{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.control:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.control:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: transparent}.control:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-fierce);--_appearance-color-outline: transparent}.control{--_fab-inline-padding: 12px;display:inline-flex;box-sizing:border-box;align-items:center;border:0 none;border-radius:var(--_fab-border-radius);background:var(--_appearance-color-fill, var(--_elevation-fill));block-size:var(--_fab-block-size);color:var(--_appearance-color-text, var(--vvd-color-canvas-text));column-gap:var(--fab-icon-gap);filter:var(--_elevation-shadow);font:var(--vvd-typography-base-bold);padding-inline:var(--_fab-inline-padding);transition:background-color .15s linear,filter .15s linear;vertical-align:middle}.control:not(.connotation-accent,.connotation-cta){--focus-stroke-gap-color: transparent}.control:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}@supports (user-select: none){.control{user-select:none}}.control.size-expanded{--_fab-border-radius: 40px;--_fab-block-size: calc(1px*(56 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_fab-inline-padding: 20px}.control.size-condensed{--_fab-border-radius: 20px;--_fab-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;font:var(--vvd-typography-base-condensed-bold)}.control.size-condensed vwc-icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.control:not(.size-expanded,.size-condensed){--_fab-border-radius: 24px;--_fab-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control:not(.size-condensed){font:var(--vvd-typography-base-bold)}.control.icon-only{--_fab-inline-padding: 0;border-radius:50%;place-content:center}@supports (aspect-ratio: 1){.control.icon-only{aspect-ratio:1}}@supports not (aspect-ratio: 1){.control.icon-only{inline-size:var(--_fab-block-size)}}.control:not(.icon-only){--fab-icon-gap: 10px}.control:disabled{--_elevation-fill: var(--vvd-color-surface-nonedp);--_elevation-shadow: var(--vvd-shadow-surface-nonedp);cursor:not-allowed}.control:not(:disabled){--_elevation-fill: var(--vvd-color-surface-4dp);--_elevation-shadow: var(--vvd-shadow-surface-4dp);cursor:pointer}.control:not(:disabled):hover{--_elevation-fill: var(--vvd-color-surface-12dp);--_elevation-shadow: var(--vvd-shadow-surface-12dp)}.control:not(:disabled):active{--_elevation-fill: var(--vvd-color-surface-24dp);--_elevation-shadow: var(--vvd-shadow-surface-24dp)}slot[name=icon]{line-height:1}.icon-trailing slot[name=icon]{display:inline-block;order:1}.control.size-extended slot[name=icon]{font-size:calc(calc(1px*(56 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 2.3333)}.control:not(.size-extended) slot[name=icon]{font-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}";
|
|
13
12
|
|
|
14
|
-
class _FoundationButton extends index.FoundationElement {
|
|
15
|
-
}
|
|
16
|
-
class FormAssociatedButton extends formAssociated.FormAssociated(_FoundationButton) {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.proxy = document.createElement("input");
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
var __defProp$1 = Object.defineProperty;
|
|
24
|
-
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
25
|
-
var result = void 0 ;
|
|
26
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
27
|
-
if (decorator = decorators[i])
|
|
28
|
-
result = (decorator(target, key, result) ) || result;
|
|
29
|
-
if (result) __defProp$1(target, key, result);
|
|
30
|
-
return result;
|
|
31
|
-
};
|
|
32
|
-
class VividFoundationButton extends FormAssociatedButton {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments);
|
|
35
|
-
/**
|
|
36
|
-
* Prevent events to propagate if disabled
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
|
-
this.handleClick = (e) => {
|
|
40
|
-
if (this.disabled) {
|
|
41
|
-
e.stopPropagation();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Submits the parent form
|
|
46
|
-
*/
|
|
47
|
-
this.handleSubmission = () => {
|
|
48
|
-
if (!this.form) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this.attachProxy();
|
|
52
|
-
this.form.requestSubmit(this.proxy);
|
|
53
|
-
this.detachProxy();
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Resets the parent form
|
|
57
|
-
*/
|
|
58
|
-
this.handleFormReset = () => {
|
|
59
|
-
this.form?.reset();
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
// @ts-expect-error Function is delcared but not used
|
|
63
|
-
formactionChanged() {
|
|
64
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
65
|
-
this.proxy.formAction = this.formaction;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
// @ts-expect-error Function is delcared but not used
|
|
69
|
-
formenctypeChanged() {
|
|
70
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
71
|
-
this.proxy.formEnctype = this.formenctype;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
// @ts-expect-error Function is delcared but not used
|
|
75
|
-
formmethodChanged() {
|
|
76
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
77
|
-
this.proxy.formMethod = this.formmethod;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
// @ts-expect-error Function is delcared but not used
|
|
81
|
-
formnovalidateChanged() {
|
|
82
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
83
|
-
this.proxy.formNoValidate = this.formnovalidate;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
// @ts-expect-error Function is delcared but not used
|
|
87
|
-
formtargetChanged() {
|
|
88
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
89
|
-
this.proxy.formTarget = this.formtarget;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
// @ts-expect-error Function is delcared but not used
|
|
93
|
-
typeChanged(previous, next) {
|
|
94
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
95
|
-
this.proxy.type = this.type;
|
|
96
|
-
}
|
|
97
|
-
next === "submit" && this.addEventListener("click", this.handleSubmission);
|
|
98
|
-
previous === "submit" && this.removeEventListener("click", this.handleSubmission);
|
|
99
|
-
next === "reset" && this.addEventListener("click", this.handleFormReset);
|
|
100
|
-
previous === "reset" && this.removeEventListener("click", this.handleFormReset);
|
|
101
|
-
}
|
|
102
|
-
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
103
|
-
validate() {
|
|
104
|
-
super.validate(this.control);
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
109
|
-
connectedCallback() {
|
|
110
|
-
super.connectedCallback();
|
|
111
|
-
this.proxy.setAttribute("type", this.type);
|
|
112
|
-
const elements = Array.from(this.control.children);
|
|
113
|
-
if (elements) {
|
|
114
|
-
elements.forEach((span) => {
|
|
115
|
-
span.addEventListener("click", this.handleClick);
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
122
|
-
disconnectedCallback() {
|
|
123
|
-
super.disconnectedCallback();
|
|
124
|
-
const elements = Array.from(this.control.children);
|
|
125
|
-
if (elements) {
|
|
126
|
-
elements.forEach((span) => {
|
|
127
|
-
span.removeEventListener("click", this.handleClick);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
__decorateClass$1([
|
|
133
|
-
index.attr({ mode: "boolean" })
|
|
134
|
-
], VividFoundationButton.prototype, "autofocus");
|
|
135
|
-
__decorateClass$1([
|
|
136
|
-
index.attr({ attribute: "form" })
|
|
137
|
-
], VividFoundationButton.prototype, "formId");
|
|
138
|
-
__decorateClass$1([
|
|
139
|
-
index.attr
|
|
140
|
-
], VividFoundationButton.prototype, "formaction");
|
|
141
|
-
__decorateClass$1([
|
|
142
|
-
index.attr
|
|
143
|
-
], VividFoundationButton.prototype, "formenctype");
|
|
144
|
-
__decorateClass$1([
|
|
145
|
-
index.attr
|
|
146
|
-
], VividFoundationButton.prototype, "formmethod");
|
|
147
|
-
__decorateClass$1([
|
|
148
|
-
index.attr({ mode: "boolean" })
|
|
149
|
-
], VividFoundationButton.prototype, "formnovalidate");
|
|
150
|
-
__decorateClass$1([
|
|
151
|
-
index.attr
|
|
152
|
-
], VividFoundationButton.prototype, "formtarget");
|
|
153
|
-
__decorateClass$1([
|
|
154
|
-
index.attr
|
|
155
|
-
], VividFoundationButton.prototype, "type");
|
|
156
|
-
class DelegatesARIAButton {
|
|
157
|
-
}
|
|
158
|
-
__decorateClass$1([
|
|
159
|
-
index.attr({ attribute: "aria-expanded" })
|
|
160
|
-
], DelegatesARIAButton.prototype, "ariaExpanded");
|
|
161
|
-
__decorateClass$1([
|
|
162
|
-
index.attr({ attribute: "aria-pressed" })
|
|
163
|
-
], DelegatesARIAButton.prototype, "ariaPressed");
|
|
164
|
-
applyMixins.applyMixins(DelegatesARIAButton, ariaGlobal.ARIAGlobalStatesAndProperties);
|
|
165
|
-
applyMixins.applyMixins(VividFoundationButton, DelegatesARIAButton);
|
|
166
|
-
|
|
167
13
|
var __defProp = Object.defineProperty;
|
|
168
14
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
169
15
|
var result = void 0 ;
|
|
@@ -173,16 +19,16 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
173
19
|
if (result) __defProp(target, key, result);
|
|
174
20
|
return result;
|
|
175
21
|
};
|
|
176
|
-
class Fab extends VividFoundationButton {
|
|
22
|
+
class Fab extends button.VividFoundationButton {
|
|
177
23
|
}
|
|
178
24
|
__decorateClass([
|
|
179
|
-
|
|
25
|
+
defineVividComponent.attr
|
|
180
26
|
], Fab.prototype, "connotation");
|
|
181
27
|
__decorateClass([
|
|
182
|
-
|
|
28
|
+
defineVividComponent.attr
|
|
183
29
|
], Fab.prototype, "size");
|
|
184
30
|
__decorateClass([
|
|
185
|
-
|
|
31
|
+
defineVividComponent.attr
|
|
186
32
|
], Fab.prototype, "label");
|
|
187
33
|
applyMixins.applyMixins(Fab, affix.AffixIconWithTrailing);
|
|
188
34
|
|
|
@@ -204,7 +50,7 @@ const getClasses = ({
|
|
|
204
50
|
);
|
|
205
51
|
const FabTemplate = (context) => {
|
|
206
52
|
const affixIconTemplate = affix.affixIconTemplateFactory(context);
|
|
207
|
-
return
|
|
53
|
+
return defineVividComponent.html`
|
|
208
54
|
<button
|
|
209
55
|
class="${getClasses} "
|
|
210
56
|
?autofocus="${(x) => x.autofocus}"
|
|
@@ -240,17 +86,19 @@ const FabTemplate = (context) => {
|
|
|
240
86
|
`;
|
|
241
87
|
};
|
|
242
88
|
|
|
243
|
-
const fabDefinition =
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
89
|
+
const fabDefinition = defineVividComponent.defineVividComponent(
|
|
90
|
+
"fab",
|
|
91
|
+
Fab,
|
|
92
|
+
FabTemplate,
|
|
93
|
+
[definition.iconDefinition],
|
|
94
|
+
{
|
|
95
|
+
styles,
|
|
96
|
+
shadowOptions: {
|
|
97
|
+
delegatesFocus: true
|
|
98
|
+
}
|
|
249
99
|
}
|
|
250
|
-
|
|
251
|
-
const
|
|
252
|
-
const registerFab = index.registerFactory(fabRegistries);
|
|
100
|
+
);
|
|
101
|
+
const registerFab = defineVividComponent.createRegisterFunction(fabDefinition);
|
|
253
102
|
|
|
254
103
|
exports.fabDefinition = fabDefinition;
|
|
255
|
-
exports.fabRegistries = fabRegistries;
|
|
256
104
|
exports.registerFab = registerFab;
|
package/shared/definition24.js
CHANGED
|
@@ -1,167 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
|
|
4
|
-
import { F as FormAssociated } from './form-associated.js';
|
|
1
|
+
import { i as iconDefinition } from './definition27.js';
|
|
2
|
+
import { a as attr, h as html, d as defineVividComponent, f as createRegisterFunction } from './defineVividComponent.js';
|
|
5
3
|
import { a as applyMixins } from './apply-mixins.js';
|
|
6
|
-
import {
|
|
4
|
+
import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
|
|
5
|
+
import { V as VividFoundationButton } from './button.js';
|
|
7
6
|
import { r as ref } from './ref.js';
|
|
8
7
|
import { c as classNames } from './class-names.js';
|
|
9
8
|
|
|
10
9
|
const styles = ".control.connotation-accent{--_connotation-color-primary: var(--vvd-fab-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-fab-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-fab-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-contrast: var(--vvd-fab-accent-contrast, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-fab-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-firm: var(--vvd-fab-accent-firm, var(--vvd-color-canvas-text))}.control.connotation-cta{--_connotation-color-primary: var(--vvd-fab-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-fab-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-fab-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-contrast: var(--vvd-fab-cta-contrast, var(--vvd-color-cta-800));--_connotation-color-fierce: var(--vvd-fab-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-firm: var(--vvd-fab-cta-firm, var(--vvd-color-cta-600))}.control.connotation-announcement{--_connotation-color-primary: var(--vvd-fab-announcement-primary, var(--vvd-color-announcement-500));--_connotation-color-primary-text: var(--vvd-fab-announcement-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-fab-announcement-primary-increment, var(--vvd-color-announcement-600));--_connotation-color-contrast: var(--vvd-fab-announcement-contrast, var(--vvd-color-announcement-800));--_connotation-color-fierce: var(--vvd-fab-announcement-fierce, var(--vvd-color-announcement-700));--_connotation-color-firm: var(--vvd-fab-announcement-firm, var(--vvd-color-announcement-600))}.control{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.control:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.control:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: transparent}.control:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-fierce);--_appearance-color-outline: transparent}.control{--_fab-inline-padding: 12px;display:inline-flex;box-sizing:border-box;align-items:center;border:0 none;border-radius:var(--_fab-border-radius);background:var(--_appearance-color-fill, var(--_elevation-fill));block-size:var(--_fab-block-size);color:var(--_appearance-color-text, var(--vvd-color-canvas-text));column-gap:var(--fab-icon-gap);filter:var(--_elevation-shadow);font:var(--vvd-typography-base-bold);padding-inline:var(--_fab-inline-padding);transition:background-color .15s linear,filter .15s linear;vertical-align:middle}.control:not(.connotation-accent,.connotation-cta){--focus-stroke-gap-color: transparent}.control:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}@supports (user-select: none){.control{user-select:none}}.control.size-expanded{--_fab-border-radius: 40px;--_fab-block-size: calc(1px*(56 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_fab-inline-padding: 20px}.control.size-condensed{--_fab-border-radius: 20px;--_fab-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;font:var(--vvd-typography-base-condensed-bold)}.control.size-condensed vwc-icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.control:not(.size-expanded,.size-condensed){--_fab-border-radius: 24px;--_fab-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control:not(.size-condensed){font:var(--vvd-typography-base-bold)}.control.icon-only{--_fab-inline-padding: 0;border-radius:50%;place-content:center}@supports (aspect-ratio: 1){.control.icon-only{aspect-ratio:1}}@supports not (aspect-ratio: 1){.control.icon-only{inline-size:var(--_fab-block-size)}}.control:not(.icon-only){--fab-icon-gap: 10px}.control:disabled{--_elevation-fill: var(--vvd-color-surface-nonedp);--_elevation-shadow: var(--vvd-shadow-surface-nonedp);cursor:not-allowed}.control:not(:disabled){--_elevation-fill: var(--vvd-color-surface-4dp);--_elevation-shadow: var(--vvd-shadow-surface-4dp);cursor:pointer}.control:not(:disabled):hover{--_elevation-fill: var(--vvd-color-surface-12dp);--_elevation-shadow: var(--vvd-shadow-surface-12dp)}.control:not(:disabled):active{--_elevation-fill: var(--vvd-color-surface-24dp);--_elevation-shadow: var(--vvd-shadow-surface-24dp)}slot[name=icon]{line-height:1}.icon-trailing slot[name=icon]{display:inline-block;order:1}.control.size-extended slot[name=icon]{font-size:calc(calc(1px*(56 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 2.3333)}.control:not(.size-extended) slot[name=icon]{font-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}";
|
|
11
10
|
|
|
12
|
-
class _FoundationButton extends FoundationElement {
|
|
13
|
-
}
|
|
14
|
-
class FormAssociatedButton extends FormAssociated(_FoundationButton) {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.proxy = document.createElement("input");
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
var __defProp$1 = Object.defineProperty;
|
|
22
|
-
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
23
|
-
var result = void 0 ;
|
|
24
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
25
|
-
if (decorator = decorators[i])
|
|
26
|
-
result = (decorator(target, key, result) ) || result;
|
|
27
|
-
if (result) __defProp$1(target, key, result);
|
|
28
|
-
return result;
|
|
29
|
-
};
|
|
30
|
-
class VividFoundationButton extends FormAssociatedButton {
|
|
31
|
-
constructor() {
|
|
32
|
-
super(...arguments);
|
|
33
|
-
/**
|
|
34
|
-
* Prevent events to propagate if disabled
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
this.handleClick = (e) => {
|
|
38
|
-
if (this.disabled) {
|
|
39
|
-
e.stopPropagation();
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Submits the parent form
|
|
44
|
-
*/
|
|
45
|
-
this.handleSubmission = () => {
|
|
46
|
-
if (!this.form) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
this.attachProxy();
|
|
50
|
-
this.form.requestSubmit(this.proxy);
|
|
51
|
-
this.detachProxy();
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Resets the parent form
|
|
55
|
-
*/
|
|
56
|
-
this.handleFormReset = () => {
|
|
57
|
-
this.form?.reset();
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
// @ts-expect-error Function is delcared but not used
|
|
61
|
-
formactionChanged() {
|
|
62
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
63
|
-
this.proxy.formAction = this.formaction;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
// @ts-expect-error Function is delcared but not used
|
|
67
|
-
formenctypeChanged() {
|
|
68
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
69
|
-
this.proxy.formEnctype = this.formenctype;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
// @ts-expect-error Function is delcared but not used
|
|
73
|
-
formmethodChanged() {
|
|
74
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
75
|
-
this.proxy.formMethod = this.formmethod;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
// @ts-expect-error Function is delcared but not used
|
|
79
|
-
formnovalidateChanged() {
|
|
80
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
81
|
-
this.proxy.formNoValidate = this.formnovalidate;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
// @ts-expect-error Function is delcared but not used
|
|
85
|
-
formtargetChanged() {
|
|
86
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
87
|
-
this.proxy.formTarget = this.formtarget;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
// @ts-expect-error Function is delcared but not used
|
|
91
|
-
typeChanged(previous, next) {
|
|
92
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
93
|
-
this.proxy.type = this.type;
|
|
94
|
-
}
|
|
95
|
-
next === "submit" && this.addEventListener("click", this.handleSubmission);
|
|
96
|
-
previous === "submit" && this.removeEventListener("click", this.handleSubmission);
|
|
97
|
-
next === "reset" && this.addEventListener("click", this.handleFormReset);
|
|
98
|
-
previous === "reset" && this.removeEventListener("click", this.handleFormReset);
|
|
99
|
-
}
|
|
100
|
-
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
101
|
-
validate() {
|
|
102
|
-
super.validate(this.control);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
connectedCallback() {
|
|
108
|
-
super.connectedCallback();
|
|
109
|
-
this.proxy.setAttribute("type", this.type);
|
|
110
|
-
const elements = Array.from(this.control.children);
|
|
111
|
-
if (elements) {
|
|
112
|
-
elements.forEach((span) => {
|
|
113
|
-
span.addEventListener("click", this.handleClick);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
120
|
-
disconnectedCallback() {
|
|
121
|
-
super.disconnectedCallback();
|
|
122
|
-
const elements = Array.from(this.control.children);
|
|
123
|
-
if (elements) {
|
|
124
|
-
elements.forEach((span) => {
|
|
125
|
-
span.removeEventListener("click", this.handleClick);
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
__decorateClass$1([
|
|
131
|
-
attr({ mode: "boolean" })
|
|
132
|
-
], VividFoundationButton.prototype, "autofocus");
|
|
133
|
-
__decorateClass$1([
|
|
134
|
-
attr({ attribute: "form" })
|
|
135
|
-
], VividFoundationButton.prototype, "formId");
|
|
136
|
-
__decorateClass$1([
|
|
137
|
-
attr
|
|
138
|
-
], VividFoundationButton.prototype, "formaction");
|
|
139
|
-
__decorateClass$1([
|
|
140
|
-
attr
|
|
141
|
-
], VividFoundationButton.prototype, "formenctype");
|
|
142
|
-
__decorateClass$1([
|
|
143
|
-
attr
|
|
144
|
-
], VividFoundationButton.prototype, "formmethod");
|
|
145
|
-
__decorateClass$1([
|
|
146
|
-
attr({ mode: "boolean" })
|
|
147
|
-
], VividFoundationButton.prototype, "formnovalidate");
|
|
148
|
-
__decorateClass$1([
|
|
149
|
-
attr
|
|
150
|
-
], VividFoundationButton.prototype, "formtarget");
|
|
151
|
-
__decorateClass$1([
|
|
152
|
-
attr
|
|
153
|
-
], VividFoundationButton.prototype, "type");
|
|
154
|
-
class DelegatesARIAButton {
|
|
155
|
-
}
|
|
156
|
-
__decorateClass$1([
|
|
157
|
-
attr({ attribute: "aria-expanded" })
|
|
158
|
-
], DelegatesARIAButton.prototype, "ariaExpanded");
|
|
159
|
-
__decorateClass$1([
|
|
160
|
-
attr({ attribute: "aria-pressed" })
|
|
161
|
-
], DelegatesARIAButton.prototype, "ariaPressed");
|
|
162
|
-
applyMixins(DelegatesARIAButton, ARIAGlobalStatesAndProperties);
|
|
163
|
-
applyMixins(VividFoundationButton, DelegatesARIAButton);
|
|
164
|
-
|
|
165
11
|
var __defProp = Object.defineProperty;
|
|
166
12
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
167
13
|
var result = void 0 ;
|
|
@@ -238,15 +84,18 @@ const FabTemplate = (context) => {
|
|
|
238
84
|
`;
|
|
239
85
|
};
|
|
240
86
|
|
|
241
|
-
const fabDefinition =
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
87
|
+
const fabDefinition = defineVividComponent(
|
|
88
|
+
"fab",
|
|
89
|
+
Fab,
|
|
90
|
+
FabTemplate,
|
|
91
|
+
[iconDefinition],
|
|
92
|
+
{
|
|
93
|
+
styles,
|
|
94
|
+
shadowOptions: {
|
|
95
|
+
delegatesFocus: true
|
|
96
|
+
}
|
|
247
97
|
}
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
const registerFab = registerFactory(fabRegistries);
|
|
98
|
+
);
|
|
99
|
+
const registerFab = createRegisterFunction(fabDefinition);
|
|
251
100
|
|
|
252
|
-
export {
|
|
101
|
+
export { fabDefinition as f, registerFab as r };
|
package/shared/definition25.cjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index.cjs');
|
|
4
3
|
const definition$1 = require('./definition27.cjs');
|
|
5
4
|
const definition = require('./definition11.cjs');
|
|
5
|
+
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
6
6
|
const enums = require('./enums.cjs');
|
|
7
7
|
const applyMixinsWithObservables = require('./applyMixinsWithObservables.cjs');
|
|
8
8
|
const formAssociated = require('./form-associated.cjs');
|
|
9
|
+
const vividElement = require('./vivid-element.cjs');
|
|
9
10
|
const formElements = require('./form-elements.cjs');
|
|
10
11
|
const localized = require('./localized.cjs');
|
|
11
12
|
const when = require('./when.cjs');
|
|
12
13
|
const ref = require('./ref.cjs');
|
|
13
14
|
const classNames = require('./class-names.cjs');
|
|
14
15
|
|
|
15
|
-
const styles = ":host{display:block;max-inline-size:400px}.base{display:flex;flex-direction:column}.control{display:flex;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;padding:16px;border:1px dashed var(--vvd-color-neutral-400);border-radius:8px;background-color:var(--vvd-color-cta-50);color:var(--vvd-color-neutral-600);cursor:pointer;font:var(--vvd-typography-base);gap:8px;inline-size:100%;min-block-size:52px;outline:none;transition:all .3s ease}.control:not(.size-expanded){min-block-size:52px}.control.size-expanded{min-block-size:120px}.control:focus-visible{--focus-stroke-gap-color: transparent;--focus-inset: 1px;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.control:hover{
|
|
16
|
+
const styles = ":host{display:block;max-inline-size:400px}.base{display:flex;flex-direction:column;block-size:inherit;max-block-size:inherit}.control{display:flex;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;padding:16px;border:1px dashed var(--vvd-color-neutral-400);border-radius:8px;background-color:var(--vvd-color-cta-50);color:var(--vvd-color-neutral-600);cursor:pointer;font:var(--vvd-typography-base);gap:8px;inline-size:100%;min-block-size:52px;outline:none;transition:all .3s ease}.control:not(.size-expanded){min-block-size:52px}.control.size-expanded{min-block-size:120px}.control:focus-visible{--focus-stroke-gap-color: transparent;--focus-inset: 1px;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.control:hover,.control:active,.control:focus-visible{background-color:var(--vvd-color-cta-100)}.main{pointer-events:none}.dz-preview{display:grid;box-sizing:border-box;padding:8px;border:1px solid var(--vvd-color-neutral-300);border-radius:8px;background-color:var(--file-picker-list-item-background-color, var(--vvd-color-canvas));grid-template-columns:1fr auto;grid-template-rows:auto auto;inline-size:100%}.dz-preview .dz-details{display:flex;min-width:0;flex-direction:column;max-inline-size:100%}.dz-preview .dz-details .dz-filename{overflow:hidden;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);text-overflow:ellipsis;white-space:nowrap}.dz-preview .dz-details .dz-size{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base-condensed)}.dz-preview .dz-error-message{color:var(--vvd-color-alert-500);font:var(--vvd-typography-base-condensed);margin-block-start:4px}.dz-preview:not(.dz-error) .dz-error-message{display:none}.dz-preview.dz-error{border:1px solid var(--vvd-color-alert-500)}.dz-preview.dz-error .dz-details .dz-size,.dz-preview.dz-error .dz-progress{display:none}.dz-preview .remove-btn{display:inline;align-self:center;grid-column:2/-1;grid-row:1/-1}.message{margin-block-start:4px;--_low-ink-color: var(--vvd-color-neutral-600)}.preview-list{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.preview-list{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.preview-list ::-webkit-scrollbar{width:4px}.preview-list ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.preview-list ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-thumb-color)}.preview-list{display:flex;flex-direction:column;gap:12px;margin-block-start:12px;overflow-y:auto}.preview-list:empty{display:none}";
|
|
16
17
|
|
|
17
18
|
var objectExtend = extend;
|
|
18
19
|
|
|
@@ -2140,7 +2141,7 @@ function $3ed269f2f0fb224b$var$__guardMethod__(obj, methodName, transform) {
|
|
|
2140
2141
|
else return undefined;
|
|
2141
2142
|
}
|
|
2142
2143
|
|
|
2143
|
-
class _FilePicker extends
|
|
2144
|
+
class _FilePicker extends vividElement.VividElement {
|
|
2144
2145
|
}
|
|
2145
2146
|
class FormAssociatedFilePicker extends formAssociated.FormAssociated(_FilePicker) {
|
|
2146
2147
|
constructor() {
|
|
@@ -2421,28 +2422,28 @@ formatNumbersInMessage_fn = function(message) {
|
|
|
2421
2422
|
return message;
|
|
2422
2423
|
};
|
|
2423
2424
|
__decorateClass([
|
|
2424
|
-
|
|
2425
|
+
defineVividComponent.attr({ attribute: "single-file", mode: "boolean" })
|
|
2425
2426
|
], FilePicker.prototype, "singleFile", 2);
|
|
2426
2427
|
__decorateClass([
|
|
2427
|
-
|
|
2428
|
+
defineVividComponent.attr({ attribute: "max-files" })
|
|
2428
2429
|
], FilePicker.prototype, "maxFiles", 2);
|
|
2429
2430
|
__decorateClass([
|
|
2430
|
-
|
|
2431
|
+
defineVividComponent.attr({ mode: "fromView", attribute: "max-file-size" })
|
|
2431
2432
|
], FilePicker.prototype, "maxFileSize", 2);
|
|
2432
2433
|
__decorateClass([
|
|
2433
|
-
|
|
2434
|
+
defineVividComponent.attr
|
|
2434
2435
|
], FilePicker.prototype, "accept", 2);
|
|
2435
2436
|
__decorateClass([
|
|
2436
|
-
|
|
2437
|
+
defineVividComponent.attr
|
|
2437
2438
|
], FilePicker.prototype, "size", 2);
|
|
2438
2439
|
__decorateClass([
|
|
2439
|
-
|
|
2440
|
+
defineVividComponent.attr({ attribute: "invalid-file-type-error" })
|
|
2440
2441
|
], FilePicker.prototype, "invalidFileTypeError", 2);
|
|
2441
2442
|
__decorateClass([
|
|
2442
|
-
|
|
2443
|
+
defineVividComponent.attr({ attribute: "max-files-exceeded-error" })
|
|
2443
2444
|
], FilePicker.prototype, "maxFilesExceededError", 2);
|
|
2444
2445
|
__decorateClass([
|
|
2445
|
-
|
|
2446
|
+
defineVividComponent.attr({ attribute: "file-too-big-error" })
|
|
2446
2447
|
], FilePicker.prototype, "fileTooBigError", 2);
|
|
2447
2448
|
FilePicker = __decorateClass([
|
|
2448
2449
|
formElements.errorText,
|
|
@@ -2455,14 +2456,14 @@ const getClasses = ({ size }) => classNames.classNames("control", "dz-default",
|
|
|
2455
2456
|
Boolean(size)
|
|
2456
2457
|
]);
|
|
2457
2458
|
const FilePickerTemplate = (context) => {
|
|
2458
|
-
return
|
|
2459
|
+
return defineVividComponent.html`
|
|
2459
2460
|
${(x) => {
|
|
2460
|
-
x.setButtonTag(context.tagFor(definition.Button
|
|
2461
|
+
x.setButtonTag(context.tagFor(definition.Button));
|
|
2461
2462
|
}}
|
|
2462
2463
|
<div class="base" aria-label="${(x) => x.label}">
|
|
2463
2464
|
${when.when(
|
|
2464
2465
|
(x) => x.label,
|
|
2465
|
-
|
|
2466
|
+
defineVividComponent.html`<label>${(x) => x.label}</label>`
|
|
2466
2467
|
)}
|
|
2467
2468
|
<div
|
|
2468
2469
|
${ref.ref("control")}
|
|
@@ -2479,21 +2480,19 @@ const FilePickerTemplate = (context) => {
|
|
|
2479
2480
|
`;
|
|
2480
2481
|
};
|
|
2481
2482
|
|
|
2482
|
-
const filePickerDefinition =
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2483
|
+
const filePickerDefinition = defineVividComponent.defineVividComponent(
|
|
2484
|
+
"file-picker",
|
|
2485
|
+
FilePicker,
|
|
2486
|
+
FilePickerTemplate,
|
|
2487
|
+
[definition$1.iconDefinition, definition.buttonDefinition],
|
|
2488
|
+
{
|
|
2489
|
+
styles,
|
|
2490
|
+
shadowOptions: {
|
|
2491
|
+
delegatesFocus: true
|
|
2492
|
+
}
|
|
2488
2493
|
}
|
|
2489
|
-
|
|
2490
|
-
const
|
|
2491
|
-
filePickerDefinition(),
|
|
2492
|
-
...definition$1.iconRegistries,
|
|
2493
|
-
...definition.buttonRegistries
|
|
2494
|
-
];
|
|
2495
|
-
const registerFilePicker = index.registerFactory(filePickerRegistries);
|
|
2494
|
+
);
|
|
2495
|
+
const registerFilePicker = defineVividComponent.createRegisterFunction(filePickerDefinition);
|
|
2496
2496
|
|
|
2497
2497
|
exports.filePickerDefinition = filePickerDefinition;
|
|
2498
|
-
exports.filePickerRegistries = filePickerRegistries;
|
|
2499
2498
|
exports.registerFilePicker = registerFilePicker;
|
package/shared/definition25.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { i as iconDefinition } from './definition27.js';
|
|
2
|
+
import { B as Button, b as buttonDefinition } from './definition11.js';
|
|
3
|
+
import { a as attr, h as html, d as defineVividComponent, f as createRegisterFunction } from './defineVividComponent.js';
|
|
4
4
|
import { C as Connotation } from './enums.js';
|
|
5
5
|
import { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';
|
|
6
6
|
import { F as FormAssociated } from './form-associated.js';
|
|
7
|
+
import { V as VividElement } from './vivid-element.js';
|
|
7
8
|
import { e as errorText, f as formElements, a as FormElementHelperText, g as getFeedbackTemplate } from './form-elements.js';
|
|
8
9
|
import { L as Localized } from './localized.js';
|
|
9
10
|
import { w as when } from './when.js';
|
|
10
11
|
import { r as ref } from './ref.js';
|
|
11
12
|
import { c as classNames } from './class-names.js';
|
|
12
13
|
|
|
13
|
-
const styles = ":host{display:block;max-inline-size:400px}.base{display:flex;flex-direction:column}.control{display:flex;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;padding:16px;border:1px dashed var(--vvd-color-neutral-400);border-radius:8px;background-color:var(--vvd-color-cta-50);color:var(--vvd-color-neutral-600);cursor:pointer;font:var(--vvd-typography-base);gap:8px;inline-size:100%;min-block-size:52px;outline:none;transition:all .3s ease}.control:not(.size-expanded){min-block-size:52px}.control.size-expanded{min-block-size:120px}.control:focus-visible{--focus-stroke-gap-color: transparent;--focus-inset: 1px;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.control:hover{
|
|
14
|
+
const styles = ":host{display:block;max-inline-size:400px}.base{display:flex;flex-direction:column;block-size:inherit;max-block-size:inherit}.control{display:flex;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;padding:16px;border:1px dashed var(--vvd-color-neutral-400);border-radius:8px;background-color:var(--vvd-color-cta-50);color:var(--vvd-color-neutral-600);cursor:pointer;font:var(--vvd-typography-base);gap:8px;inline-size:100%;min-block-size:52px;outline:none;transition:all .3s ease}.control:not(.size-expanded){min-block-size:52px}.control.size-expanded{min-block-size:120px}.control:focus-visible{--focus-stroke-gap-color: transparent;--focus-inset: 1px;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.control:hover,.control:active,.control:focus-visible{background-color:var(--vvd-color-cta-100)}.main{pointer-events:none}.dz-preview{display:grid;box-sizing:border-box;padding:8px;border:1px solid var(--vvd-color-neutral-300);border-radius:8px;background-color:var(--file-picker-list-item-background-color, var(--vvd-color-canvas));grid-template-columns:1fr auto;grid-template-rows:auto auto;inline-size:100%}.dz-preview .dz-details{display:flex;min-width:0;flex-direction:column;max-inline-size:100%}.dz-preview .dz-details .dz-filename{overflow:hidden;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);text-overflow:ellipsis;white-space:nowrap}.dz-preview .dz-details .dz-size{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base-condensed)}.dz-preview .dz-error-message{color:var(--vvd-color-alert-500);font:var(--vvd-typography-base-condensed);margin-block-start:4px}.dz-preview:not(.dz-error) .dz-error-message{display:none}.dz-preview.dz-error{border:1px solid var(--vvd-color-alert-500)}.dz-preview.dz-error .dz-details .dz-size,.dz-preview.dz-error .dz-progress{display:none}.dz-preview .remove-btn{display:inline;align-self:center;grid-column:2/-1;grid-row:1/-1}.message{margin-block-start:4px;--_low-ink-color: var(--vvd-color-neutral-600)}.preview-list{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.preview-list{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.preview-list ::-webkit-scrollbar{width:4px}.preview-list ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.preview-list ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-thumb-color)}.preview-list{display:flex;flex-direction:column;gap:12px;margin-block-start:12px;overflow-y:auto}.preview-list:empty{display:none}";
|
|
14
15
|
|
|
15
16
|
var objectExtend = extend;
|
|
16
17
|
|
|
@@ -2138,7 +2139,7 @@ function $3ed269f2f0fb224b$var$__guardMethod__(obj, methodName, transform) {
|
|
|
2138
2139
|
else return undefined;
|
|
2139
2140
|
}
|
|
2140
2141
|
|
|
2141
|
-
class _FilePicker extends
|
|
2142
|
+
class _FilePicker extends VividElement {
|
|
2142
2143
|
}
|
|
2143
2144
|
class FormAssociatedFilePicker extends FormAssociated(_FilePicker) {
|
|
2144
2145
|
constructor() {
|
|
@@ -2477,19 +2478,18 @@ const FilePickerTemplate = (context) => {
|
|
|
2477
2478
|
`;
|
|
2478
2479
|
};
|
|
2479
2480
|
|
|
2480
|
-
const filePickerDefinition =
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2481
|
+
const filePickerDefinition = defineVividComponent(
|
|
2482
|
+
"file-picker",
|
|
2483
|
+
FilePicker,
|
|
2484
|
+
FilePickerTemplate,
|
|
2485
|
+
[iconDefinition, buttonDefinition],
|
|
2486
|
+
{
|
|
2487
|
+
styles,
|
|
2488
|
+
shadowOptions: {
|
|
2489
|
+
delegatesFocus: true
|
|
2490
|
+
}
|
|
2486
2491
|
}
|
|
2487
|
-
|
|
2488
|
-
const
|
|
2489
|
-
filePickerDefinition(),
|
|
2490
|
-
...iconRegistries,
|
|
2491
|
-
...buttonRegistries
|
|
2492
|
-
];
|
|
2493
|
-
const registerFilePicker = registerFactory(filePickerRegistries);
|
|
2492
|
+
);
|
|
2493
|
+
const registerFilePicker = createRegisterFunction(filePickerDefinition);
|
|
2494
2494
|
|
|
2495
|
-
export {
|
|
2495
|
+
export { filePickerDefinition as f, registerFilePicker as r };
|