@vonage/vivid 4.13.0 → 4.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +3088 -1610
- 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 +3 -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 +5 -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 -7
- 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 +69 -63
- package/shared/base-progress.js +69 -63
- package/shared/breadcrumb-item.cjs +6 -58
- package/shared/breadcrumb-item.js +3 -55
- package/shared/button.cjs +177 -0
- package/shared/button.js +175 -0
- package/shared/calendar-event.cjs +9 -9
- package/shared/calendar-event.js +2 -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/definition.cjs +25 -24
- package/shared/definition.js +16 -14
- package/shared/definition10.cjs +14 -12
- package/shared/definition10.js +14 -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 +19 -19
- package/shared/definition13.js +10 -9
- package/shared/definition14.cjs +35 -38
- package/shared/definition14.js +15 -17
- package/shared/definition15.cjs +27 -26
- package/shared/definition15.js +16 -14
- package/shared/definition16.cjs +480 -612
- package/shared/definition16.js +473 -604
- package/shared/definition17.cjs +933 -1113
- package/shared/definition17.js +911 -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 +19 -22
- package/shared/definition2.js +20 -22
- package/shared/definition20.cjs +50 -52
- package/shared/definition20.js +34 -35
- package/shared/definition21.cjs +43 -47
- package/shared/definition21.js +19 -22
- package/shared/definition22.cjs +15 -13
- package/shared/definition22.js +14 -11
- package/shared/definition23.cjs +21 -20
- package/shared/definition23.js +14 -12
- package/shared/definition24.cjs +21 -173
- package/shared/definition24.js +18 -169
- package/shared/definition25.cjs +26 -28
- package/shared/definition25.js +18 -19
- package/shared/definition26.cjs +16 -14
- package/shared/definition26.js +14 -11
- package/shared/definition27.cjs +264 -12
- package/shared/definition27.js +261 -10
- package/shared/definition28.cjs +19 -17
- package/shared/definition28.js +15 -12
- package/shared/definition29.cjs +142 -68
- package/shared/definition29.js +101 -29
- package/shared/definition3.cjs +20 -16
- package/shared/definition3.js +16 -11
- package/shared/definition30.cjs +98 -76
- package/shared/definition30.js +97 -74
- package/shared/definition31.cjs +24 -97
- package/shared/definition31.js +25 -97
- package/shared/definition32.cjs +9 -25
- package/shared/definition32.js +8 -23
- package/shared/definition33.cjs +52 -14
- package/shared/definition33.js +51 -12
- package/shared/definition34.cjs +639 -34
- package/shared/definition34.js +636 -30
- package/shared/definition35.cjs +203 -596
- package/shared/definition35.js +197 -591
- package/shared/definition36.cjs +197 -233
- package/shared/definition36.js +192 -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 +259 -56
- package/shared/definition39.js +258 -54
- package/shared/definition4.cjs +32 -35
- package/shared/definition4.js +19 -21
- package/shared/definition40.cjs +156 -225
- package/shared/definition40.js +152 -221
- package/shared/definition41.cjs +626 -36
- package/shared/definition41.js +625 -34
- package/shared/definition42.cjs +974 -487
- package/shared/definition42.js +971 -482
- package/shared/definition43.cjs +725 -932
- package/shared/definition43.js +713 -918
- package/shared/definition44.cjs +115 -734
- package/shared/definition44.js +113 -731
- package/shared/definition45.cjs +92 -116
- package/shared/definition45.js +92 -115
- package/shared/definition46.cjs +468 -89
- package/shared/definition46.js +465 -86
- package/shared/definition47.cjs +118 -470
- package/shared/definition47.js +115 -465
- package/shared/definition48.cjs +113 -120
- package/shared/definition48.js +111 -117
- package/shared/definition49.cjs +16 -134
- package/shared/definition49.js +15 -132
- package/shared/definition5.cjs +47 -49
- package/shared/definition5.js +18 -19
- package/shared/definition50.cjs +111 -15
- package/shared/definition50.js +109 -12
- package/shared/definition51.cjs +862 -84
- package/shared/definition51.js +858 -79
- package/shared/definition52.cjs +30 -873
- package/shared/definition52.js +28 -870
- package/shared/definition53.cjs +125 -28
- package/shared/definition53.js +123 -25
- package/shared/definition54.cjs +267 -107
- package/shared/definition54.js +261 -100
- package/shared/definition55.cjs +63 -278
- package/shared/definition55.js +61 -275
- package/shared/definition56.cjs +867 -76
- package/shared/definition56.js +866 -74
- package/shared/definition57.cjs +107 -826
- package/shared/definition57.js +105 -823
- package/shared/definition58.cjs +73 -100
- package/shared/definition58.js +69 -95
- package/shared/definition59.cjs +180 -106
- package/shared/definition59.js +174 -101
- package/shared/definition6.cjs +22 -21
- package/shared/definition6.js +14 -12
- package/shared/definition60.cjs +272 -70
- package/shared/definition60.js +272 -69
- package/shared/definition61.cjs +66154 -271
- package/shared/definition61.js +66153 -269
- package/shared/definition62.cjs +38 -66173
- package/shared/definition62.js +35 -66170
- package/shared/definition63.cjs +2153 -27
- package/shared/definition63.js +2150 -25
- package/shared/definition7.cjs +18 -15
- package/shared/definition7.js +13 -10
- package/shared/definition8.cjs +25 -27
- package/shared/definition8.js +16 -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/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 +1463 -6
- package/shared/key-codes2.js +1461 -4
- package/shared/listbox.cjs +427 -1195
- package/shared/listbox.js +411 -1176
- package/shared/listbox2.cjs +1267 -0
- package/shared/listbox2.js +1264 -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 +49 -49
- package/shared/presentationDate.js +6 -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 +7 -89
- package/shared/text-anchor.js +4 -86
- package/shared/text-anchor.template.cjs +2 -2
- package/shared/text-anchor.template.js +1 -1
- package/shared/text-field2.cjs +28 -28
- package/shared/text-field2.js +5 -5
- package/shared/vivid-element.cjs +2616 -0
- package/shared/vivid-element.js +2595 -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 +40 -1
- package/styles/core/theme.css +40 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +25 -4
- package/styles/tokens/theme-light.css +25 -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/definition58.cjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const definition = require('./definition63.cjs');
|
|
4
|
+
const vividElement = require('./vivid-element.cjs');
|
|
5
5
|
const anchored = require('./anchored.cjs');
|
|
6
|
-
const index
|
|
7
|
-
const when = require('./when.cjs');
|
|
6
|
+
const index = require('./index.cjs');
|
|
8
7
|
const classNames = require('./class-names.cjs');
|
|
9
8
|
|
|
10
|
-
const styles = ":host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.
|
|
9
|
+
const styles = ":host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto);max-inline-size:var(--tooltip-max-inline-size, 30ch)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}";
|
|
11
10
|
|
|
12
11
|
var __defProp = Object.defineProperty;
|
|
13
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -26,140 +25,114 @@ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot
|
|
|
26
25
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
27
26
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
28
27
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
29
|
-
var
|
|
30
|
-
let
|
|
28
|
+
var _Tooltip_instances, setupAnchor_fn, cleanupAnchor_fn, _show, _hide, updateListeners_fn, _closeOnEscape;
|
|
29
|
+
let Tooltip = class extends vividElement.VividElement {
|
|
31
30
|
constructor() {
|
|
32
31
|
super(...arguments);
|
|
33
|
-
__privateAdd(this,
|
|
34
|
-
__privateAdd(this, _ANCHOR_ARIA_LABEL_SUFFIX, " ; Show more information");
|
|
35
|
-
this.alternate = false;
|
|
36
|
-
this.placement = "right";
|
|
32
|
+
__privateAdd(this, _Tooltip_instances);
|
|
37
33
|
this.open = false;
|
|
38
|
-
__privateAdd(this,
|
|
39
|
-
|
|
34
|
+
__privateAdd(this, _show, () => {
|
|
35
|
+
this.open = true;
|
|
40
36
|
});
|
|
41
|
-
__privateAdd(this,
|
|
42
|
-
|
|
43
|
-
const clickedOnAnchor = this._anchorEl?.contains(e.target);
|
|
44
|
-
if (clickedOutside || clickedOnAnchor) this.open = false;
|
|
37
|
+
__privateAdd(this, _hide, () => {
|
|
38
|
+
this.open = false;
|
|
45
39
|
});
|
|
46
40
|
__privateAdd(this, _closeOnEscape, (e) => {
|
|
47
|
-
if (e.key === "Escape")
|
|
48
|
-
this.open = false;
|
|
49
|
-
}
|
|
41
|
+
if (e.key === "Escape") __privateGet(this, _hide).call(this);
|
|
50
42
|
});
|
|
51
43
|
}
|
|
52
|
-
openChanged(oldValue, newValue) {
|
|
53
|
-
if (oldValue === void 0) return;
|
|
54
|
-
if (newValue) {
|
|
55
|
-
this.setAttribute("role", "status");
|
|
56
|
-
} else {
|
|
57
|
-
this.removeAttribute("role");
|
|
58
|
-
}
|
|
59
|
-
__privateMethod(this, _Toggletip_instances, updateListeners_fn).call(this);
|
|
60
|
-
if (this._anchorEl) {
|
|
61
|
-
__privateMethod(this, _Toggletip_instances, updateAnchor_fn).call(this, this._anchorEl);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
44
|
connectedCallback() {
|
|
65
45
|
super.connectedCallback();
|
|
66
|
-
__privateMethod(this,
|
|
46
|
+
__privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
|
|
67
47
|
}
|
|
68
48
|
disconnectedCallback() {
|
|
69
49
|
super.disconnectedCallback();
|
|
70
|
-
__privateMethod(this,
|
|
50
|
+
__privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
|
|
71
51
|
}
|
|
72
52
|
/**
|
|
73
53
|
* @internal
|
|
74
54
|
*/
|
|
75
55
|
_anchorElChanged(oldValue, newValue) {
|
|
76
|
-
if (oldValue) __privateMethod(this,
|
|
77
|
-
if (newValue) __privateMethod(this,
|
|
56
|
+
if (oldValue) __privateMethod(this, _Tooltip_instances, cleanupAnchor_fn).call(this, oldValue);
|
|
57
|
+
if (newValue) __privateMethod(this, _Tooltip_instances, setupAnchor_fn).call(this, newValue);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
openChanged(oldValue) {
|
|
63
|
+
if (oldValue === void 0) return;
|
|
64
|
+
__privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
|
|
78
65
|
}
|
|
79
66
|
};
|
|
80
|
-
|
|
81
|
-
_Toggletip_instances = new WeakSet();
|
|
67
|
+
_Tooltip_instances = new WeakSet();
|
|
82
68
|
setupAnchor_fn = function(a) {
|
|
83
|
-
a.addEventListener("
|
|
84
|
-
a.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
updateAnchor_fn = function(a) {
|
|
88
|
-
a.setAttribute("aria-expanded", this.open.toString());
|
|
69
|
+
a.addEventListener("mouseover", __privateGet(this, _show));
|
|
70
|
+
a.addEventListener("mouseout", __privateGet(this, _hide));
|
|
71
|
+
a.addEventListener("focusin", __privateGet(this, _show));
|
|
72
|
+
a.addEventListener("focusout", __privateGet(this, _hide));
|
|
89
73
|
};
|
|
90
74
|
cleanupAnchor_fn = function(a) {
|
|
91
|
-
a.removeEventListener("
|
|
92
|
-
|
|
93
|
-
|
|
75
|
+
a.removeEventListener("mouseover", __privateGet(this, _show));
|
|
76
|
+
a.removeEventListener("mouseout", __privateGet(this, _hide));
|
|
77
|
+
a.removeEventListener("focusin", __privateGet(this, _show));
|
|
78
|
+
a.removeEventListener("focusout", __privateGet(this, _hide));
|
|
94
79
|
};
|
|
95
|
-
|
|
80
|
+
_show = new WeakMap();
|
|
81
|
+
_hide = new WeakMap();
|
|
96
82
|
updateListeners_fn = function() {
|
|
97
|
-
document.removeEventListener("click", __privateGet(this, _closeOnClickOutside));
|
|
98
83
|
document.removeEventListener("keydown", __privateGet(this, _closeOnEscape));
|
|
99
84
|
if (this.open && this.isConnected) {
|
|
100
|
-
document.addEventListener("click", __privateGet(this, _closeOnClickOutside));
|
|
101
85
|
document.addEventListener("keydown", __privateGet(this, _closeOnEscape));
|
|
102
86
|
}
|
|
103
87
|
};
|
|
104
|
-
_closeOnClickOutside = new WeakMap();
|
|
105
88
|
_closeOnEscape = new WeakMap();
|
|
106
89
|
__decorateClass([
|
|
107
|
-
|
|
108
|
-
],
|
|
109
|
-
__decorateClass([
|
|
110
|
-
index.attr({ mode: "boolean" })
|
|
111
|
-
], Toggletip.prototype, "alternate", 2);
|
|
90
|
+
vividElement.attr
|
|
91
|
+
], Tooltip.prototype, "text", 2);
|
|
112
92
|
__decorateClass([
|
|
113
|
-
|
|
114
|
-
],
|
|
93
|
+
vividElement.attr({ mode: "fromView" })
|
|
94
|
+
], Tooltip.prototype, "placement", 2);
|
|
115
95
|
__decorateClass([
|
|
116
|
-
|
|
117
|
-
],
|
|
118
|
-
|
|
96
|
+
vividElement.attr({ mode: "boolean" })
|
|
97
|
+
], Tooltip.prototype, "open", 2);
|
|
98
|
+
Tooltip = __decorateClass([
|
|
119
99
|
anchored.anchored
|
|
120
|
-
],
|
|
100
|
+
], Tooltip);
|
|
121
101
|
|
|
122
|
-
const getClasses = (
|
|
123
|
-
const
|
|
124
|
-
const
|
|
102
|
+
const getClasses = ({ open }) => classNames.classNames("control", ["open", Boolean(open)]);
|
|
103
|
+
const TooltipTemplate = (context) => {
|
|
104
|
+
const popupTag = context.tagFor(definition.Popup);
|
|
125
105
|
const anchorSlotTemplate = anchored.anchorSlotTemplateFactory();
|
|
126
|
-
return
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
106
|
+
return vividElement.html`
|
|
107
|
+
${anchorSlotTemplate}
|
|
108
|
+
<${popupTag} class="${getClasses}" arrow alternate
|
|
109
|
+
:placement=${(x) => x.placement}
|
|
110
|
+
:anchor="${(x) => x._anchorEl}"
|
|
111
|
+
:open="${(x) => x.open}"
|
|
112
|
+
@keydown="${(x, c) => {
|
|
113
|
+
if (x.open && index.handleEscapeKeyAndStopPropogation(c.event)) {
|
|
114
|
+
x.open = false;
|
|
132
115
|
}
|
|
133
|
-
return true;
|
|
134
116
|
}}"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
>
|
|
143
|
-
<div class="content-wrapper">
|
|
144
|
-
${when.when(
|
|
145
|
-
(x) => x.headline,
|
|
146
|
-
index.html`<header class="headline">${(x) => x.headline}</header>`
|
|
147
|
-
)}
|
|
148
|
-
<slot></slot>
|
|
149
|
-
<footer class="action-items"><slot name="action-items"></slot></footer>
|
|
150
|
-
</div>
|
|
151
|
-
</${popup}>
|
|
152
|
-
`;
|
|
117
|
+
exportparts="vvd-theme-alternate">
|
|
118
|
+
<div class="tooltip" role="tooltip">
|
|
119
|
+
<header part="vvd-theme-alternate" class="tooltip-header">
|
|
120
|
+
<div class="tooltip-text">${(x) => x.text}</div>
|
|
121
|
+
</header>
|
|
122
|
+
</div>
|
|
123
|
+
</${popupTag}>`;
|
|
153
124
|
};
|
|
154
125
|
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
126
|
+
const tooltipDefinition = vividElement.defineVividComponent(
|
|
127
|
+
"tooltip",
|
|
128
|
+
Tooltip,
|
|
129
|
+
TooltipTemplate,
|
|
130
|
+
[definition.popupDefinition],
|
|
131
|
+
{
|
|
132
|
+
styles
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
const registerTooltip = vividElement.createRegisterFunction(tooltipDefinition);
|
|
162
136
|
|
|
163
|
-
exports.
|
|
164
|
-
exports.
|
|
165
|
-
exports.toggletipRegistries = toggletipRegistries;
|
|
137
|
+
exports.registerTooltip = registerTooltip;
|
|
138
|
+
exports.tooltipDefinition = tooltipDefinition;
|
package/shared/definition58.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { h as handleEscapeKeyAndStopPropogation } from './
|
|
5
|
-
import { w as when } from './when.js';
|
|
1
|
+
import { P as Popup, p as popupDefinition } from './definition63.js';
|
|
2
|
+
import { V as VividElement, a as attr, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
|
|
3
|
+
import { a as anchored, b as anchorSlotTemplateFactory } from './anchored.js';
|
|
4
|
+
import { h as handleEscapeKeyAndStopPropogation } from './index.js';
|
|
6
5
|
import { c as classNames } from './class-names.js';
|
|
7
6
|
|
|
8
|
-
const styles = ":host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.
|
|
7
|
+
const styles = ":host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto);max-inline-size:var(--tooltip-max-inline-size, 30ch)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}";
|
|
9
8
|
|
|
10
9
|
var __defProp = Object.defineProperty;
|
|
11
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -24,138 +23,113 @@ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot
|
|
|
24
23
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
25
24
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
26
25
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
27
|
-
var
|
|
28
|
-
let
|
|
26
|
+
var _Tooltip_instances, setupAnchor_fn, cleanupAnchor_fn, _show, _hide, updateListeners_fn, _closeOnEscape;
|
|
27
|
+
let Tooltip = class extends VividElement {
|
|
29
28
|
constructor() {
|
|
30
29
|
super(...arguments);
|
|
31
|
-
__privateAdd(this,
|
|
32
|
-
__privateAdd(this, _ANCHOR_ARIA_LABEL_SUFFIX, " ; Show more information");
|
|
33
|
-
this.alternate = false;
|
|
34
|
-
this.placement = "right";
|
|
30
|
+
__privateAdd(this, _Tooltip_instances);
|
|
35
31
|
this.open = false;
|
|
36
|
-
__privateAdd(this,
|
|
37
|
-
|
|
32
|
+
__privateAdd(this, _show, () => {
|
|
33
|
+
this.open = true;
|
|
38
34
|
});
|
|
39
|
-
__privateAdd(this,
|
|
40
|
-
|
|
41
|
-
const clickedOnAnchor = this._anchorEl?.contains(e.target);
|
|
42
|
-
if (clickedOutside || clickedOnAnchor) this.open = false;
|
|
35
|
+
__privateAdd(this, _hide, () => {
|
|
36
|
+
this.open = false;
|
|
43
37
|
});
|
|
44
38
|
__privateAdd(this, _closeOnEscape, (e) => {
|
|
45
|
-
if (e.key === "Escape")
|
|
46
|
-
this.open = false;
|
|
47
|
-
}
|
|
39
|
+
if (e.key === "Escape") __privateGet(this, _hide).call(this);
|
|
48
40
|
});
|
|
49
41
|
}
|
|
50
|
-
openChanged(oldValue, newValue) {
|
|
51
|
-
if (oldValue === void 0) return;
|
|
52
|
-
if (newValue) {
|
|
53
|
-
this.setAttribute("role", "status");
|
|
54
|
-
} else {
|
|
55
|
-
this.removeAttribute("role");
|
|
56
|
-
}
|
|
57
|
-
__privateMethod(this, _Toggletip_instances, updateListeners_fn).call(this);
|
|
58
|
-
if (this._anchorEl) {
|
|
59
|
-
__privateMethod(this, _Toggletip_instances, updateAnchor_fn).call(this, this._anchorEl);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
42
|
connectedCallback() {
|
|
63
43
|
super.connectedCallback();
|
|
64
|
-
__privateMethod(this,
|
|
44
|
+
__privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
|
|
65
45
|
}
|
|
66
46
|
disconnectedCallback() {
|
|
67
47
|
super.disconnectedCallback();
|
|
68
|
-
__privateMethod(this,
|
|
48
|
+
__privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
|
|
69
49
|
}
|
|
70
50
|
/**
|
|
71
51
|
* @internal
|
|
72
52
|
*/
|
|
73
53
|
_anchorElChanged(oldValue, newValue) {
|
|
74
|
-
if (oldValue) __privateMethod(this,
|
|
75
|
-
if (newValue) __privateMethod(this,
|
|
54
|
+
if (oldValue) __privateMethod(this, _Tooltip_instances, cleanupAnchor_fn).call(this, oldValue);
|
|
55
|
+
if (newValue) __privateMethod(this, _Tooltip_instances, setupAnchor_fn).call(this, newValue);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
openChanged(oldValue) {
|
|
61
|
+
if (oldValue === void 0) return;
|
|
62
|
+
__privateMethod(this, _Tooltip_instances, updateListeners_fn).call(this);
|
|
76
63
|
}
|
|
77
64
|
};
|
|
78
|
-
|
|
79
|
-
_Toggletip_instances = new WeakSet();
|
|
65
|
+
_Tooltip_instances = new WeakSet();
|
|
80
66
|
setupAnchor_fn = function(a) {
|
|
81
|
-
a.addEventListener("
|
|
82
|
-
a.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
updateAnchor_fn = function(a) {
|
|
86
|
-
a.setAttribute("aria-expanded", this.open.toString());
|
|
67
|
+
a.addEventListener("mouseover", __privateGet(this, _show));
|
|
68
|
+
a.addEventListener("mouseout", __privateGet(this, _hide));
|
|
69
|
+
a.addEventListener("focusin", __privateGet(this, _show));
|
|
70
|
+
a.addEventListener("focusout", __privateGet(this, _hide));
|
|
87
71
|
};
|
|
88
72
|
cleanupAnchor_fn = function(a) {
|
|
89
|
-
a.removeEventListener("
|
|
90
|
-
|
|
91
|
-
|
|
73
|
+
a.removeEventListener("mouseover", __privateGet(this, _show));
|
|
74
|
+
a.removeEventListener("mouseout", __privateGet(this, _hide));
|
|
75
|
+
a.removeEventListener("focusin", __privateGet(this, _show));
|
|
76
|
+
a.removeEventListener("focusout", __privateGet(this, _hide));
|
|
92
77
|
};
|
|
93
|
-
|
|
78
|
+
_show = new WeakMap();
|
|
79
|
+
_hide = new WeakMap();
|
|
94
80
|
updateListeners_fn = function() {
|
|
95
|
-
document.removeEventListener("click", __privateGet(this, _closeOnClickOutside));
|
|
96
81
|
document.removeEventListener("keydown", __privateGet(this, _closeOnEscape));
|
|
97
82
|
if (this.open && this.isConnected) {
|
|
98
|
-
document.addEventListener("click", __privateGet(this, _closeOnClickOutside));
|
|
99
83
|
document.addEventListener("keydown", __privateGet(this, _closeOnEscape));
|
|
100
84
|
}
|
|
101
85
|
};
|
|
102
|
-
_closeOnClickOutside = new WeakMap();
|
|
103
86
|
_closeOnEscape = new WeakMap();
|
|
104
87
|
__decorateClass([
|
|
105
88
|
attr
|
|
106
|
-
],
|
|
107
|
-
__decorateClass([
|
|
108
|
-
attr({ mode: "boolean" })
|
|
109
|
-
], Toggletip.prototype, "alternate", 2);
|
|
89
|
+
], Tooltip.prototype, "text", 2);
|
|
110
90
|
__decorateClass([
|
|
111
91
|
attr({ mode: "fromView" })
|
|
112
|
-
],
|
|
92
|
+
], Tooltip.prototype, "placement", 2);
|
|
113
93
|
__decorateClass([
|
|
114
94
|
attr({ mode: "boolean" })
|
|
115
|
-
],
|
|
116
|
-
|
|
95
|
+
], Tooltip.prototype, "open", 2);
|
|
96
|
+
Tooltip = __decorateClass([
|
|
117
97
|
anchored
|
|
118
|
-
],
|
|
98
|
+
], Tooltip);
|
|
119
99
|
|
|
120
|
-
const getClasses = (
|
|
121
|
-
const
|
|
122
|
-
const
|
|
100
|
+
const getClasses = ({ open }) => classNames("control", ["open", Boolean(open)]);
|
|
101
|
+
const TooltipTemplate = (context) => {
|
|
102
|
+
const popupTag = context.tagFor(Popup);
|
|
123
103
|
const anchorSlotTemplate = anchorSlotTemplateFactory();
|
|
124
104
|
return html`
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
105
|
+
${anchorSlotTemplate}
|
|
106
|
+
<${popupTag} class="${getClasses}" arrow alternate
|
|
107
|
+
:placement=${(x) => x.placement}
|
|
108
|
+
:anchor="${(x) => x._anchorEl}"
|
|
109
|
+
:open="${(x) => x.open}"
|
|
110
|
+
@keydown="${(x, c) => {
|
|
111
|
+
if (x.open && handleEscapeKeyAndStopPropogation(c.event)) {
|
|
112
|
+
x.open = false;
|
|
130
113
|
}
|
|
131
|
-
return true;
|
|
132
114
|
}}"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
>
|
|
141
|
-
<div class="content-wrapper">
|
|
142
|
-
${when(
|
|
143
|
-
(x) => x.headline,
|
|
144
|
-
html`<header class="headline">${(x) => x.headline}</header>`
|
|
145
|
-
)}
|
|
146
|
-
<slot></slot>
|
|
147
|
-
<footer class="action-items"><slot name="action-items"></slot></footer>
|
|
148
|
-
</div>
|
|
149
|
-
</${popup}>
|
|
150
|
-
`;
|
|
115
|
+
exportparts="vvd-theme-alternate">
|
|
116
|
+
<div class="tooltip" role="tooltip">
|
|
117
|
+
<header part="vvd-theme-alternate" class="tooltip-header">
|
|
118
|
+
<div class="tooltip-text">${(x) => x.text}</div>
|
|
119
|
+
</header>
|
|
120
|
+
</div>
|
|
121
|
+
</${popupTag}>`;
|
|
151
122
|
};
|
|
152
123
|
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
124
|
+
const tooltipDefinition = defineVividComponent(
|
|
125
|
+
"tooltip",
|
|
126
|
+
Tooltip,
|
|
127
|
+
TooltipTemplate,
|
|
128
|
+
[popupDefinition],
|
|
129
|
+
{
|
|
130
|
+
styles
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
const registerTooltip = createRegisterFunction(tooltipDefinition);
|
|
160
134
|
|
|
161
|
-
export {
|
|
135
|
+
export { registerTooltip as r, tooltipDefinition as t };
|