@vonage/vivid 5.15.1 → 5.17.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/accordion/definition.cjs +7 -207
- package/accordion/definition.js +2 -199
- package/accordion/index.cjs +4 -4
- package/accordion/index.js +93 -127
- package/accordion-item/definition.cjs +6 -146
- package/accordion-item/definition.js +2 -139
- package/accordion-item/index.cjs +1 -1
- package/accordion-item/index.js +6 -2
- package/action-group/definition.cjs +5 -69
- package/action-group/definition.js +1 -62
- package/action-group/index.cjs +4 -4
- package/action-group/index.js +16 -46
- package/alert/definition.cjs +6 -201
- package/alert/definition.js +2 -194
- package/alert/index.cjs +15 -15
- package/alert/index.js +90 -136
- package/audio-player/definition.cjs +6 -459
- package/audio-player/definition.js +2 -452
- package/audio-player/index.cjs +49 -49
- package/audio-player/index.js +234 -302
- package/avatar/definition.cjs +6 -117
- package/avatar/definition.js +2 -110
- package/avatar/index.cjs +14 -14
- package/avatar/index.js +44 -84
- package/badge/definition.cjs +6 -85
- package/badge/definition.js +2 -78
- package/badge/index.cjs +4 -4
- package/badge/index.js +21 -65
- package/banner/definition.cjs +6 -160
- package/banner/definition.js +2 -153
- package/banner/index.cjs +13 -13
- package/banner/index.js +76 -109
- package/breadcrumb/definition.cjs +5 -97
- package/breadcrumb/definition.js +1 -90
- package/breadcrumb/index.cjs +4 -4
- package/breadcrumb/index.js +33 -59
- package/breadcrumb-item/definition.cjs +7 -47
- package/breadcrumb-item/definition.js +3 -40
- package/breadcrumb-item/index.cjs +5 -5
- package/breadcrumb-item/index.js +20 -32
- package/bundled/affix.cjs +10 -10
- package/bundled/affix.js +44 -57
- package/bundled/anchored.cjs +3 -3
- package/bundled/anchored.js +47 -65
- package/bundled/aria.cjs +1 -1
- package/bundled/aria.js +6 -6
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +17 -28
- package/bundled/base-color-picker.cjs +10 -10
- package/bundled/base-color-picker.js +115 -197
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +29 -56
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/breadcrumb-item.js +11 -20
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +65 -100
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +11 -34
- package/bundled/calendar-picker.template.cjs +77 -77
- package/bundled/calendar-picker.template.js +2883 -3347
- package/bundled/char-count.cjs +7 -7
- package/bundled/char-count.js +31 -46
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +27 -45
- package/bundled/class-names.cjs +1 -1
- package/bundled/class-names.js +8 -8
- package/bundled/data-grid.options.cjs +1 -1
- package/bundled/data-grid.options.js +22 -26
- package/bundled/decorate.cjs +1 -0
- package/bundled/decorate.js +9 -0
- package/bundled/definition.cjs +1 -39
- package/bundled/definition.js +5 -122
- package/bundled/definition10.cjs +18 -72
- package/bundled/definition10.js +74 -355
- package/bundled/definition11.cjs +10 -12
- package/bundled/definition11.js +28 -92
- package/bundled/definition12.cjs +72 -18
- package/bundled/definition12.js +192 -222
- package/bundled/definition13.cjs +20 -10
- package/bundled/definition13.js +55 -41
- package/bundled/definition14.cjs +5 -1
- package/bundled/definition14.js +11 -20
- package/bundled/definition15.cjs +19 -5
- package/bundled/definition15.js +77 -28
- package/bundled/definition16.cjs +12 -29
- package/bundled/definition16.js +80 -78
- package/bundled/definition17.cjs +17 -17
- package/bundled/definition17.js +126 -98
- package/bundled/definition18.cjs +87 -13
- package/bundled/definition18.js +423 -134
- package/bundled/definition19.cjs +5 -87
- package/bundled/definition19.js +16 -742
- package/bundled/definition2.cjs +8 -8
- package/bundled/definition2.js +79 -122
- package/bundled/definition20.cjs +26 -16
- package/bundled/definition20.js +153 -98
- package/bundled/definition21.cjs +29 -5
- package/bundled/definition21.js +174 -18
- package/bundled/definition22.cjs +38 -23
- package/bundled/definition22.js +70 -149
- package/bundled/definition3.cjs +1 -29
- package/bundled/definition3.js +183 -194
- package/bundled/definition4.cjs +24 -6
- package/bundled/definition4.js +88 -40
- package/bundled/definition5.cjs +30 -1
- package/bundled/definition5.js +48 -346
- package/bundled/definition6.cjs +28 -30
- package/bundled/definition6.js +110 -264
- package/bundled/definition7.cjs +6 -30
- package/bundled/definition7.js +22 -288
- package/bundled/definition8.cjs +13 -18
- package/bundled/definition8.js +150 -132
- package/bundled/definition9.cjs +12 -14
- package/bundled/definition9.js +67 -235
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +56 -88
- package/bundled/dialog.cjs +1 -0
- package/bundled/dialog.js +6 -0
- package/bundled/divider.cjs +1 -1
- package/bundled/divider.js +16 -33
- package/bundled/dom.cjs +1 -1
- package/bundled/dom.js +5 -5
- package/bundled/enums.cjs +1 -1
- package/bundled/enums.js +16 -9
- package/bundled/floating-ui.dom.cjs +1 -1
- package/bundled/floating-ui.dom.js +953 -1238
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +165 -318
- package/bundled/form-element.cjs +1 -1
- package/bundled/form-element.js +33 -55
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/host-semantics.js +46 -69
- package/bundled/key-codes.cjs +1 -1
- package/bundled/key-codes.js +4 -16
- package/bundled/linkable.cjs +6 -6
- package/bundled/linkable.js +25 -45
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +176 -351
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +451 -564
- package/bundled/mixins.cjs +20 -20
- package/bundled/mixins.js +162 -210
- package/bundled/normalize.cjs +1 -1
- package/bundled/normalize.js +6 -6
- package/bundled/numbers.cjs +1 -1
- package/bundled/numbers.js +9 -11
- package/bundled/picker-field.template.cjs +23 -23
- package/bundled/picker-field.template.js +108 -171
- package/bundled/playbackRates.cjs +1 -1
- package/bundled/playbackRates.js +10 -10
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +10 -14
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +421 -552
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +26 -29
- package/bundled/single-date-picker.cjs +1 -1
- package/bundled/single-date-picker.js +23 -38
- package/bundled/single-value-picker.cjs +1 -1
- package/bundled/single-value-picker.js +58 -86
- package/bundled/slider.template.cjs +14 -14
- package/bundled/slider.template.js +67 -78
- package/bundled/slottable-request.cjs +4 -4
- package/bundled/slottable-request.js +1907 -2904
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +47 -97
- package/bundled/strings.cjs +1 -1
- package/bundled/strings.js +6 -6
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +4 -4
- package/bundled/time-selection-picker.template.cjs +26 -26
- package/bundled/time-selection-picker.template.js +355 -552
- package/bundled/trapped-focus.cjs +1 -1
- package/bundled/trapped-focus.js +18 -25
- package/bundled/vivid-element.cjs +4 -5
- package/bundled/vivid-element.js +1781 -2806
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +10 -10
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +15 -31
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-error-text.js +25 -38
- package/bundled/with-success-text.cjs +1 -1
- package/bundled/with-success-text.js +8 -15
- package/button/definition.cjs +6 -14
- package/button/definition.js +3 -4
- package/button/index.cjs +1 -1
- package/button/index.js +6 -2
- package/calendar/definition.cjs +5 -358
- package/calendar/definition.js +1 -351
- package/calendar/index.cjs +20 -20
- package/calendar/index.js +165 -427
- package/calendar-event/definition.cjs +6 -58
- package/calendar-event/definition.js +2 -51
- package/calendar-event/index.cjs +7 -7
- package/calendar-event/index.js +25 -41
- package/card/definition.cjs +6 -194
- package/card/definition.js +2 -187
- package/card/index.cjs +37 -34
- package/card/index.js +83 -133
- package/checkbox/definition.cjs +6 -209
- package/checkbox/definition.js +2 -202
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +6 -2
- package/color-picker/definition.cjs +6 -1175
- package/color-picker/definition.js +2 -1168
- package/color-picker/index.cjs +94 -94
- package/color-picker/index.js +605 -737
- package/combobox/definition.cjs +6 -647
- package/combobox/definition.js +2 -640
- package/combobox/index.cjs +38 -37
- package/combobox/index.js +258 -458
- package/contextual-help/definition.cjs +6 -63
- package/contextual-help/definition.js +2 -56
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +6 -2
- package/country/definition.cjs +6 -340
- package/country/definition.js +2 -333
- package/country/index.cjs +6 -6
- package/country/index.js +1209 -308
- package/custom-elements.json +1247 -1173
- package/data-grid/definition.cjs +10 -2350
- package/data-grid/definition.js +2 -2339
- package/data-grid/index.cjs +65 -65
- package/data-grid/index.js +644 -997
- package/date-picker/definition.cjs +6 -152
- package/date-picker/definition.js +2 -145
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +66 -114
- package/date-range-picker/definition.cjs +6 -467
- package/date-range-picker/definition.js +2 -460
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +218 -334
- package/date-time-picker/definition.cjs +6 -285
- package/date-time-picker/definition.js +2 -278
- package/date-time-picker/index.cjs +4 -4
- package/date-time-picker/index.js +116 -211
- package/dial-pad/definition.cjs +6 -460
- package/dial-pad/definition.js +2 -453
- package/dial-pad/index.cjs +44 -43
- package/dial-pad/index.js +197 -288
- package/dialog/definition.cjs +6 -349
- package/dialog/definition.js +2 -342
- package/dialog/index.cjs +28 -28
- package/dialog/index.js +148 -229
- package/divider/definition.cjs +6 -42
- package/divider/definition.js +2 -35
- package/divider/index.cjs +1 -1
- package/divider/index.js +5 -2
- package/elevation/definition.cjs +4 -11
- package/elevation/definition.js +2 -2
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +5 -2
- package/empty-state/definition.cjs +6 -86
- package/empty-state/definition.js +2 -79
- package/empty-state/index.cjs +9 -9
- package/empty-state/index.js +28 -60
- package/fab/definition.cjs +6 -105
- package/fab/definition.js +2 -98
- package/fab/index.cjs +17 -17
- package/fab/index.js +46 -81
- package/file-picker/definition.cjs +6 -523
- package/file-picker/definition.js +2 -516
- package/file-picker/index.cjs +32 -29
- package/file-picker/index.js +254 -356
- package/header/definition.cjs +5 -78
- package/header/definition.js +1 -71
- package/header/index.cjs +6 -6
- package/header/index.js +28 -42
- package/icon/definition.cjs +5 -202
- package/icon/definition.js +1 -195
- package/icon/index.cjs +1 -1
- package/icon/index.js +5 -2
- package/index.cjs +353 -356
- package/index.js +79 -78
- package/layout/definition.cjs +5 -72
- package/layout/definition.js +1 -65
- package/layout/index.cjs +2 -2
- package/layout/index.js +10 -51
- package/lib/alert/alert.d.ts +0 -1
- package/lib/audio-player/audio-player.d.ts +0 -1
- package/lib/banner/banner.d.ts +0 -2
- package/lib/button/button.d.ts +0 -1
- package/lib/calendar/calendar.d.ts +0 -1
- package/lib/combobox/combobox.d.ts +0 -3
- package/lib/data-grid/data-grid-cell.d.ts +0 -3
- package/lib/data-grid/data-grid-row.d.ts +0 -3
- package/lib/data-grid/data-grid.d.ts +0 -1
- package/lib/date-time-picker/date-time-picker.d.ts +0 -4
- package/lib/dial-pad/dial-pad.d.ts +6 -2
- package/lib/dialog/dialog.d.ts +0 -1
- package/lib/fab/fab.d.ts +0 -1
- package/lib/file-picker/file-picker.d.ts +1 -1
- package/lib/icon/icon.d.ts +0 -1
- package/lib/menu/menu.d.ts +0 -1
- package/lib/option/option.d.ts +4 -1
- package/lib/pagination/pagination.d.ts +0 -4
- package/lib/popover/popover.d.ts +0 -5
- package/lib/rich-text-editor/rte/exports.d.ts +1 -0
- package/lib/rich-text-editor/rte/features/alignment.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/character-count.d.ts +21 -0
- package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/keyboard-shortcuts.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +1 -1
- package/lib/rich-text-editor/rte/public-interface.d.ts +6 -0
- package/lib/searchable-select/option-tag.d.ts +0 -1
- package/lib/split-button/split-button.d.ts +0 -2
- package/lib/tab/tab.d.ts +0 -2
- package/lib/table/definition.d.ts +2 -1
- package/lib/table/table-header-cell.d.ts +3 -0
- package/lib/table/table-sorting-button.d.ts +415 -0
- package/lib/table/table-sorting-button.template.d.ts +3 -0
- package/lib/tag/tag.d.ts +0 -2
- package/lib/toggletip/toggletip.d.ts +0 -1
- package/lib/tree-item/tree-item.d.ts +0 -2
- package/lib/tree-view/tree-view.d.ts +0 -1
- package/locales/de-DE.cjs +266 -550
- package/locales/de-DE.js +264 -548
- package/locales/en-GB.cjs +266 -382
- package/locales/en-GB.js +264 -380
- package/locales/en-US.cjs +266 -550
- package/locales/en-US.js +264 -548
- package/locales/ja-JP.cjs +266 -549
- package/locales/ja-JP.js +264 -547
- package/locales/zh-CN.cjs +266 -551
- package/locales/zh-CN.js +264 -549
- package/menu/definition.cjs +6 -393
- package/menu/definition.js +2 -386
- package/menu/index.cjs +1 -1
- package/menu/index.js +6 -2
- package/menu-item/definition.cjs +7 -14
- package/menu-item/definition.js +3 -3
- package/menu-item/index.cjs +1 -1
- package/menu-item/index.js +6 -2
- package/nav/definition.cjs +5 -27
- package/nav/definition.js +1 -20
- package/nav/index.cjs +3 -3
- package/nav/index.js +7 -10
- package/nav-disclosure/definition.cjs +6 -122
- package/nav-disclosure/definition.js +2 -115
- package/nav-disclosure/index.cjs +8 -8
- package/nav-disclosure/index.js +49 -86
- package/nav-item/definition.cjs +6 -79
- package/nav-item/definition.js +2 -72
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +33 -58
- package/note/definition.cjs +6 -61
- package/note/definition.js +2 -54
- package/note/index.cjs +5 -5
- package/note/index.js +24 -38
- package/number-field/definition.cjs +6 -440
- package/number-field/definition.js +2 -433
- package/number-field/index.cjs +31 -31
- package/number-field/index.js +160 -328
- package/option/definition.cjs +6 -13
- package/option/definition.js +3 -3
- package/option/index.cjs +1 -1
- package/option/index.js +6 -2
- package/package.json +15 -17
- package/pagination/definition.cjs +6 -254
- package/pagination/definition.js +2 -247
- package/pagination/index.cjs +37 -37
- package/pagination/index.js +148 -186
- package/popover/definition.cjs +6 -356
- package/popover/definition.js +2 -349
- package/popover/index.cjs +16 -16
- package/popover/index.js +161 -239
- package/popup/definition.cjs +5 -13
- package/popup/definition.js +3 -4
- package/popup/index.cjs +1 -1
- package/popup/index.js +6 -2
- package/progress/definition.cjs +5 -87
- package/progress/definition.js +1 -80
- package/progress/index.cjs +9 -9
- package/progress/index.js +33 -55
- package/progress-ring/definition.cjs +5 -95
- package/progress-ring/definition.js +1 -88
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +5 -2
- package/radio/definition.cjs +5 -227
- package/radio/definition.js +1 -220
- package/radio/index.cjs +1 -1
- package/radio/index.js +5 -2
- package/radio-group/definition.cjs +6 -361
- package/radio-group/definition.js +2 -354
- package/radio-group/index.cjs +10 -10
- package/radio-group/index.js +160 -242
- package/range-slider/definition.cjs +6 -632
- package/range-slider/definition.js +2 -625
- package/range-slider/index.cjs +41 -41
- package/range-slider/index.js +259 -429
- package/rich-text-editor/definition.cjs +33 -15694
- package/rich-text-editor/definition.js +3 -15662
- package/rich-text-editor/index.cjs +18 -18
- package/rich-text-editor/index.js +9129 -11475
- package/rich-text-view/definition.cjs +5 -171
- package/rich-text-view/definition.js +1 -164
- package/rich-text-view/index.cjs +1 -1
- package/rich-text-view/index.js +68 -102
- package/searchable-select/definition.cjs +5 -1401
- package/searchable-select/definition.js +2 -1395
- package/searchable-select/index.cjs +94 -94
- package/searchable-select/index.js +600 -1015
- package/select/definition.cjs +6 -1002
- package/select/definition.js +2 -995
- package/select/index.cjs +1 -1
- package/select/index.js +6 -2
- package/selectable-box/definition.cjs +6 -174
- package/selectable-box/definition.js +2 -167
- package/selectable-box/index.cjs +18 -18
- package/selectable-box/index.js +66 -127
- package/shared/foundation/test-utilities/fixture.d.ts +1 -1
- package/shared/patterns/linkable.d.ts +1 -1
- package/side-drawer/definition.cjs +5 -130
- package/side-drawer/definition.js +1 -123
- package/side-drawer/index.cjs +7 -7
- package/side-drawer/index.js +47 -89
- package/simple-color-picker/definition.cjs +6 -225
- package/simple-color-picker/definition.js +2 -218
- package/simple-color-picker/index.cjs +15 -15
- package/simple-color-picker/index.js +98 -135
- package/slider/definition.cjs +6 -499
- package/slider/definition.js +2 -492
- package/slider/index.cjs +1 -1
- package/slider/index.js +6 -2
- package/split-button/definition.cjs +6 -176
- package/split-button/definition.js +2 -169
- package/split-button/index.cjs +15 -15
- package/split-button/index.js +74 -135
- package/status/definition.cjs +6 -82
- package/status/definition.js +2 -75
- package/status/index.cjs +7 -7
- package/status/index.js +35 -52
- package/switch/definition.cjs +6 -148
- package/switch/definition.js +2 -141
- package/switch/index.cjs +8 -8
- package/switch/index.js +48 -92
- package/tab/definition.cjs +6 -127
- package/tab/definition.js +2 -120
- package/tab/index.cjs +1 -1
- package/tab/index.js +6 -2
- package/tab-panel/definition.cjs +5 -29
- package/tab-panel/definition.js +1 -22
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +5 -2
- package/table/definition.cjs +18 -174
- package/table/definition.js +3 -158
- package/table/index.cjs +19 -10
- package/table/index.js +74 -82
- package/tabs/definition.cjs +7 -467
- package/tabs/definition.js +2 -459
- package/tabs/index.cjs +11 -11
- package/tabs/index.js +169 -296
- package/tag/definition.cjs +6 -176
- package/tag/definition.js +2 -169
- package/tag/index.cjs +26 -26
- package/tag/index.js +64 -125
- package/tag-group/definition.cjs +5 -40
- package/tag-group/definition.js +1 -33
- package/tag-group/index.cjs +4 -4
- package/tag-group/index.js +10 -21
- package/text-area/definition.cjs +6 -355
- package/text-area/definition.js +2 -348
- package/text-area/index.cjs +11 -11
- package/text-area/index.js +153 -260
- package/text-field/definition.cjs +6 -423
- package/text-field/definition.js +2 -416
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +6 -2
- package/time-picker/definition.cjs +7 -43
- package/time-picker/definition.js +3 -36
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +24 -29
- package/toggletip/definition.cjs +6 -159
- package/toggletip/definition.js +2 -152
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +6 -2
- package/tooltip/definition.cjs +6 -139
- package/tooltip/definition.js +2 -132
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +6 -2
- package/tree-item/definition.cjs +6 -13
- package/tree-item/definition.js +3 -3
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +6 -2
- package/tree-view/definition.cjs +6 -302
- package/tree-view/definition.js +2 -295
- package/tree-view/index.cjs +11 -11
- package/tree-view/index.js +145 -174
- package/unbundled/affix.cjs +89 -62
- package/unbundled/affix.js +58 -55
- package/unbundled/anchored.cjs +87 -94
- package/unbundled/anchored.js +74 -90
- package/unbundled/attribute-binding-behaviour.cjs +37 -42
- package/unbundled/attribute-binding-behaviour.js +31 -40
- package/unbundled/base-color-picker.cjs +226 -275
- package/unbundled/base-color-picker.js +214 -272
- package/unbundled/base-progress.cjs +63 -78
- package/unbundled/base-progress.js +57 -76
- package/unbundled/breadcrumb-item.cjs +24 -28
- package/unbundled/breadcrumb-item.js +18 -26
- package/unbundled/button.cjs +115 -166
- package/unbundled/button.js +109 -164
- package/unbundled/calendar-event.cjs +28 -41
- package/unbundled/calendar-event.js +22 -39
- package/unbundled/calendar-picker.template.cjs +4967 -792
- package/unbundled/calendar-picker.template.js +4907 -781
- package/unbundled/char-count.cjs +50 -80
- package/unbundled/char-count.js +44 -78
- package/unbundled/chunk.cjs +28 -0
- package/unbundled/data-grid.options.cjs +80 -29
- package/unbundled/data-grid.options.js +51 -23
- package/unbundled/decorate.cjs +14 -0
- package/unbundled/decorate.js +9 -0
- package/unbundled/definition.cjs +42 -405
- package/unbundled/definition.js +24 -399
- package/unbundled/definition10.cjs +253 -0
- package/unbundled/definition10.js +229 -0
- package/unbundled/definition11.cjs +397 -0
- package/unbundled/definition11.js +379 -0
- package/unbundled/definition12.cjs +317 -0
- package/unbundled/definition12.js +287 -0
- package/unbundled/definition13.cjs +321 -0
- package/unbundled/definition13.js +303 -0
- package/unbundled/definition14.cjs +406 -0
- package/unbundled/definition14.js +388 -0
- package/unbundled/definition15.cjs +107 -0
- package/unbundled/definition15.js +89 -0
- package/unbundled/definition16.cjs +63 -0
- package/unbundled/definition16.js +45 -0
- package/unbundled/definition17.cjs +151 -0
- package/unbundled/definition17.js +133 -0
- package/unbundled/definition18.cjs +47 -0
- package/unbundled/definition18.js +35 -0
- package/unbundled/definition19.cjs +98 -0
- package/unbundled/definition19.js +80 -0
- package/unbundled/definition2.cjs +180 -220
- package/unbundled/definition2.js +162 -215
- package/unbundled/definition20.cjs +56 -0
- package/unbundled/definition20.js +43 -0
- package/unbundled/definition21.cjs +304 -0
- package/unbundled/definition21.js +285 -0
- package/unbundled/definition22.cjs +179 -0
- package/unbundled/definition22.js +161 -0
- package/unbundled/definition23.cjs +161 -0
- package/unbundled/definition23.js +143 -0
- package/unbundled/definition24.cjs +157 -0
- package/unbundled/definition24.js +139 -0
- package/unbundled/definition25.cjs +75 -0
- package/unbundled/definition25.js +57 -0
- package/unbundled/definition26.cjs +363 -0
- package/unbundled/definition26.js +345 -0
- package/unbundled/definition27.cjs +137 -0
- package/unbundled/definition27.js +119 -0
- package/unbundled/definition28.cjs +538 -0
- package/unbundled/definition28.js +520 -0
- package/unbundled/definition29.cjs +236 -0
- package/unbundled/definition29.js +212 -0
- package/unbundled/definition3.cjs +131 -284
- package/unbundled/definition3.js +113 -279
- package/unbundled/definition30.cjs +559 -0
- package/unbundled/definition30.js +541 -0
- package/unbundled/definition31.cjs +1265 -0
- package/unbundled/definition31.js +1247 -0
- package/unbundled/definition32.cjs +1908 -0
- package/unbundled/definition32.js +1866 -0
- package/unbundled/definition33.cjs +346 -0
- package/unbundled/definition33.js +256 -0
- package/unbundled/definition34.cjs +46 -0
- package/unbundled/definition34.js +33 -0
- package/unbundled/definition35.cjs +152 -0
- package/unbundled/definition35.js +134 -0
- package/unbundled/definition36.cjs +426 -0
- package/unbundled/definition36.js +408 -0
- package/unbundled/definition37.cjs +247 -0
- package/unbundled/definition37.js +229 -0
- package/unbundled/definition38.cjs +411 -0
- package/unbundled/definition38.js +393 -0
- package/unbundled/definition39.cjs +299 -0
- package/unbundled/definition39.js +281 -0
- package/unbundled/definition4.cjs +186 -205
- package/unbundled/definition4.js +162 -200
- package/unbundled/definition40.cjs +81 -0
- package/unbundled/definition40.js +63 -0
- package/unbundled/definition41.cjs +100 -0
- package/unbundled/definition41.js +82 -0
- package/unbundled/definition42.cjs +468 -0
- package/unbundled/definition42.js +450 -0
- package/unbundled/definition43.cjs +86 -0
- package/unbundled/definition43.js +68 -0
- package/unbundled/definition44.cjs +60 -0
- package/unbundled/definition44.js +41 -0
- package/unbundled/definition45.cjs +124 -0
- package/unbundled/definition45.js +106 -0
- package/unbundled/definition46.cjs +85 -0
- package/unbundled/definition46.js +67 -0
- package/unbundled/definition47.cjs +52 -0
- package/unbundled/definition47.js +31 -0
- package/unbundled/definition48.cjs +69 -0
- package/unbundled/definition48.js +51 -0
- package/unbundled/definition49.cjs +377 -0
- package/unbundled/definition49.js +359 -0
- package/unbundled/definition5.cjs +69 -298
- package/unbundled/definition5.js +44 -293
- package/unbundled/definition50.cjs +246 -0
- package/unbundled/definition50.js +228 -0
- package/unbundled/definition51.cjs +337 -0
- package/unbundled/definition51.js +319 -0
- package/unbundled/definition52.cjs +86 -0
- package/unbundled/definition52.js +67 -0
- package/unbundled/definition53.cjs +193 -0
- package/unbundled/definition53.js +174 -0
- package/unbundled/definition54.cjs +297 -0
- package/unbundled/definition54.js +279 -0
- package/unbundled/definition55.cjs +510 -0
- package/unbundled/definition55.js +492 -0
- package/unbundled/definition56.cjs +3659 -0
- package/unbundled/definition56.js +3478 -0
- package/unbundled/definition57.cjs +837 -0
- package/unbundled/definition57.js +819 -0
- package/unbundled/definition58.cjs +147 -0
- package/unbundled/definition58.js +129 -0
- package/unbundled/definition59.cjs +1081 -0
- package/unbundled/definition59.js +1063 -0
- package/unbundled/definition6.cjs +88 -56
- package/unbundled/definition6.js +69 -52
- package/unbundled/definition60.cjs +149 -0
- package/unbundled/definition60.js +131 -0
- package/unbundled/definition61.cjs +116 -0
- package/unbundled/definition61.js +97 -0
- package/unbundled/definition62.cjs +213 -0
- package/unbundled/definition62.js +195 -0
- package/unbundled/definition63.cjs +159 -0
- package/unbundled/definition63.js +141 -0
- package/unbundled/definition64.cjs +86 -0
- package/unbundled/definition64.js +68 -0
- package/unbundled/definition65.cjs +126 -0
- package/unbundled/definition65.js +107 -0
- package/unbundled/definition66.cjs +49 -0
- package/unbundled/definition66.js +28 -0
- package/unbundled/definition67.cjs +119 -0
- package/unbundled/definition67.js +101 -0
- package/unbundled/definition68.cjs +374 -0
- package/unbundled/definition68.js +349 -0
- package/unbundled/definition69.cjs +57 -0
- package/unbundled/definition69.js +38 -0
- package/unbundled/definition7.cjs +190 -0
- package/unbundled/definition7.js +166 -0
- package/unbundled/definition70.cjs +155 -0
- package/unbundled/definition70.js +137 -0
- package/unbundled/definition71.cjs +302 -0
- package/unbundled/definition71.js +284 -0
- package/unbundled/definition72.cjs +48 -0
- package/unbundled/definition72.js +37 -0
- package/unbundled/definition73.cjs +171 -0
- package/unbundled/definition73.js +147 -0
- package/unbundled/definition74.cjs +232 -0
- package/unbundled/definition74.js +213 -0
- package/unbundled/definition75.cjs +533 -0
- package/unbundled/definition75.js +513 -0
- package/unbundled/definition8.cjs +63 -0
- package/unbundled/definition8.js +44 -0
- package/unbundled/definition9.cjs +183 -0
- package/unbundled/definition9.js +165 -0
- package/unbundled/delegates-aria.cjs +90 -131
- package/unbundled/delegates-aria.js +77 -127
- package/unbundled/dialog.cjs +15 -0
- package/unbundled/dialog.js +10 -0
- package/unbundled/divider.cjs +42 -50
- package/unbundled/divider.js +30 -47
- package/unbundled/enums.cjs +166 -107
- package/unbundled/enums.js +95 -94
- package/unbundled/form-associated.cjs +408 -463
- package/unbundled/form-associated.js +396 -460
- package/unbundled/form-element.cjs +74 -83
- package/unbundled/form-element.js +68 -81
- package/unbundled/host-semantics.cjs +70 -89
- package/unbundled/host-semantics.js +57 -85
- package/unbundled/key-codes.cjs +16 -10
- package/unbundled/key-codes.js +5 -7
- package/unbundled/linkable.cjs +35 -56
- package/unbundled/linkable.js +27 -52
- package/unbundled/listbox.cjs +363 -465
- package/unbundled/listbox.js +357 -463
- package/unbundled/localized.cjs +79 -74
- package/unbundled/localized.js +61 -70
- package/unbundled/mixins.cjs +222 -223
- package/unbundled/mixins.js +186 -211
- package/unbundled/picker-field.template.cjs +188 -217
- package/unbundled/picker-field.template.js +165 -208
- package/unbundled/playbackRates.cjs +18 -11
- package/unbundled/playbackRates.js +13 -9
- package/unbundled/scrollIntoView.cjs +38 -43
- package/unbundled/scrollIntoView.js +33 -41
- package/unbundled/single-date-picker.cjs +48 -45
- package/unbundled/single-date-picker.js +43 -43
- package/unbundled/single-value-picker.cjs +106 -114
- package/unbundled/single-value-picker.js +101 -112
- package/unbundled/slider.template.cjs +107 -73
- package/unbundled/slider.template.js +67 -62
- package/unbundled/slottable-request.cjs +145 -3700
- package/unbundled/slottable-request.js +98 -3681
- package/unbundled/text-field.cjs +9 -5
- package/unbundled/text-field.js +4 -3
- package/unbundled/time-selection-picker.template.cjs +611 -755
- package/unbundled/time-selection-picker.template.js +554 -742
- package/unbundled/trapped-focus.cjs +45 -35
- package/unbundled/trapped-focus.js +34 -32
- package/unbundled/vivid-element.cjs +281 -274
- package/unbundled/vivid-element.js +239 -266
- package/unbundled/with-contextual-help.cjs +35 -39
- package/unbundled/with-contextual-help.js +29 -37
- package/unbundled/with-error-text.cjs +45 -55
- package/unbundled/with-error-text.js +39 -53
- package/unbundled/with-success-text.cjs +18 -22
- package/unbundled/with-success-text.js +12 -20
- package/video-player/definition.cjs +5 -69835
- package/video-player/definition.js +1 -69828
- package/video-player/index.cjs +44 -39
- package/video-player/index.js +23517 -35507
- package/visually-hidden/definition.cjs +5 -30
- package/visually-hidden/definition.js +1 -23
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +5 -2
- package/vivid.api.json +331 -1874
- package/bundled/index.cjs +0 -1
- package/bundled/index.js +0 -6
- package/unbundled/_commonjsHelpers.cjs +0 -40
- package/unbundled/_commonjsHelpers.js +0 -36
- package/unbundled/index.cjs +0 -11
- package/unbundled/index.js +0 -9
|
@@ -1,1120 +1,705 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { r as
|
|
23
|
-
import {
|
|
24
|
-
const re = ".label-wrapper{display:flex;flex-direction:row;align-items:center;gap:var(--label-wrapper-gap, 4px)}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 1 auto}.chevron{display:flex;flex-shrink:0;font:var(--vvd-typography-base-extended);transform:rotate(0);transition:transform .2s}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:not(.disabled) .chevron{cursor:pointer}.disabled .chevron{color:var(--_low-ink-color);cursor:not-allowed}:host(:focus-visible){outline:none}:host{display:inline-block;inline-size:300px;--_low-ink-color: var(--vvd-color-neutral-600)}:host([disabled]){--_low-ink-color: var(--vvd-color-neutral-400);cursor:not-allowed}.control-wrapper{display:flex;flex-direction:column;gap:4px}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.selection-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.fieldset{--_connotation-color-primary: var(--vvd-searchable-select-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-searchable-select-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-searchable-select-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-searchable-select-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-searchable-select-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-searchable-select-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-firm: var(--vvd-searchable-select-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-searchable-select-accent-fierce, var(--vvd-color-neutral-700))}.fieldset{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.fieldset.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media(hover:hover){.fieldset:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.fieldset:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.fieldset:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.fieldset:disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.fieldset.disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.fieldset.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.error:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.fieldset.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.fieldset.success:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.fieldset.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.fieldset{display:flex;align-items:center;justify-content:space-between;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base);gap:8px;padding-block:8px;padding-inline:16px;transition:box-shadow .2s,background-color .2s}@supports selector(:has(*)){.fieldset:not(.has-highlighted-option):has(input:focus){box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-stroke-color, var(--vvd-color-cta-500)),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}}@supports not selector(:has(*)){.fieldset:not(.has-highlighted-option):focus-within{box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-stroke-color, var(--vvd-color-cta-500)),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}}:host(:not([shape=pill])) .fieldset{border-radius:8px}:host([shape=pill]) .fieldset{border-radius:24px}.popup-wrapper{position:relative}.content-area{display:flex;overflow:hidden;flex:1;flex-direction:column;gap:8px;min-block-size:24px}.tag-row{display:flex;gap:8px;inline-size:100%}.tag-row.contains-only-input:not(:focus-within){display:contents}.tag-wrapper{overflow:hidden}.tag{max-inline-size:100%}input{box-sizing:border-box;flex:1;border:none;background:none;block-size:24px;font:var(--vvd-typography-base);max-inline-size:100%;min-inline-size:min(100px,40%);outline:none}.contains-only-input input:not(:focus){position:absolute;block-size:0;inline-size:0;min-inline-size:0;opacity:0;pointer-events:none}.listbox{display:flex;flex-direction:column;padding:4px;gap:2px;max-block-size:var(--searchable-select-height, 408px);overflow-y:auto}.empty-message{display:flex;align-items:center;justify-content:center;color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);min-block-size:40px;text-align:center}::part(popup-base){inline-size:max-content;min-inline-size:var(--_searchable-select-fixed-width, 100%)}slot[name=icon]{font-size:20px}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}::slotted([data-vvd-component=option][data-highlighted]),[data-select-all][data-highlighted]{border-radius:8px;box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-stroke-color, var(--vvd-color-cta-500)),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}.divider{margin-block:10px;margin-inline:12px}", ce = '.base.connotation-cta{--_connotation-color-contrast: var(--vvd-option-tag-cta-contrast, var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-contrast: var(--vvd-option-tag-accent-contrast, var(--vvd-color-neutral-800))}.base{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;background-color:var(--fill-color);block-size:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)));box-shadow:inset 0 0 0 1px var(--outline-color);color:var(--text-color);column-gap:8px;font:var(--vvd-typography-base-bold);max-inline-size:100%;padding-inline:8px;user-select:none;vertical-align:middle}.base:not(.disabled){--text-color: var(--_connotation-color-contrast);--fill-color: var(--_connotation-color-soft);--outline-color: transparent}@supports (background-color: color-mix(in srgb,black 50%,white)){.base:not(.disabled){--fill-color: color-mix( in srgb, var(--_connotation-color-contrast), transparent 87.5% )}}.base.disabled{--text-color: var(--vvd-color-neutral-300);--fill-color: var(--vvd-color-neutral-200);--outline-color: transparent}@supports (background-color: color-mix(in srgb,black 50%,white)){.base.disabled{--fill-color: color-mix( in srgb, var(--vvd-color-neutral-800), transparent 87.5% )}}.base:not(.shape-pill){border-radius:4px}.base.shape-pill{border-radius:16px}.label{overflow:hidden;max-inline-size:100%;text-overflow:ellipsis;white-space:nowrap}slot[name=icon]{font-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5);line-height:1}.icon-placeholder{inline-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5)}.remove-button{display:flex;align-items:center;border-radius:inherit;cursor:pointer;outline:none}.disabled .remove-button{pointer-events:none}.remove-button:focus-visible:before{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-stroke-color, var(--vvd-color-cta-500)),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));position:absolute;z-index:1;display:block;border-radius:inherit;content:"";inset:0;pointer-events:none}';
|
|
25
|
-
|
|
26
|
-
for (var a = void 0, i = s.length - 1, g; i >= 0; i--)
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { t as e } from "../bundled/localized.js";
|
|
2
|
+
import { O as t, T as n, d as r, l as i, o as a, s as o, t as s, u as c, w as l } from "../bundled/vivid-element.js";
|
|
3
|
+
import { n as u } from "../bundled/repeat.js";
|
|
4
|
+
import { t as d } from "../bundled/ref.js";
|
|
5
|
+
import { t as f } from "../bundled/when.js";
|
|
6
|
+
import { t as p } from "../bundled/slotted.js";
|
|
7
|
+
import { r as m, t as h } from "../bundled/definition2.js";
|
|
8
|
+
import { t as g } from "../bundled/decorate.js";
|
|
9
|
+
import { a as _, i as ee, n as v } from "../bundled/affix.js";
|
|
10
|
+
import { t as y } from "../bundled/form-element.js";
|
|
11
|
+
import { t as b } from "../bundled/with-success-text.js";
|
|
12
|
+
import { t as x } from "../bundled/with-error-text.js";
|
|
13
|
+
import { t as S } from "../bundled/with-contextual-help.js";
|
|
14
|
+
import { n as C, t as w } from "../bundled/delegates-aria.js";
|
|
15
|
+
import { t as T } from "../bundled/class-names.js";
|
|
16
|
+
import { r as E, t as D } from "../bundled/definition5.js";
|
|
17
|
+
import { n as O } from "../bundled/form-associated.js";
|
|
18
|
+
import { i as k, r as A, t as j } from "../bundled/definition6.js";
|
|
19
|
+
import { i as M, t as N } from "../bundled/definition8.js";
|
|
20
|
+
import { a as P, t as F } from "../bundled/mixins.js";
|
|
21
|
+
import { t as I } from "../bundled/scrollIntoView.js";
|
|
22
|
+
import { i as L, r as R, t as te } from "../bundled/definition17.js";
|
|
23
|
+
import { t as z } from "../bundled/definition19.js";
|
|
24
|
+
import { t as B } from "../bundled/divider.js";
|
|
25
|
+
//#region src/lib/searchable-select/searchable-select.scss?inline
|
|
26
|
+
var V = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}.chevron{font:var(--vvd-typography-base-extended);flex-shrink:0;transition:transform .2s;display:flex;transform:rotate(0)}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:not(.disabled) .chevron{cursor:pointer}.disabled .chevron{color:var(--_low-ink-color);cursor:not-allowed}:host(:focus-visible){outline:none}:host{--_low-ink-color:var(--vvd-color-neutral-600);inline-size:300px;display:inline-block}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-400);cursor:not-allowed}.control-wrapper{flex-direction:column;gap:4px;display:flex}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.selection-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.fieldset{--_connotation-color-primary:var(--vvd-searchable-select-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-text:var(--vvd-searchable-select-accent-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-searchable-select-accent-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-intermediate:var(--vvd-searchable-select-accent-intermediate,var(--vvd-color-neutral-500));--_connotation-color-faint:var(--vvd-searchable-select-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-soft:var(--vvd-searchable-select-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-firm:var(--vvd-searchable-select-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-fierce:var(--vvd-searchable-select-accent-fierce,var(--vvd-color-neutral-700));--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}.fieldset.appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.fieldset:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.fieldset:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.fieldset:disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.fieldset:disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.fieldset.disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.fieldset.disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.fieldset.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:var(--vvd-color-neutral-400)}.fieldset.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.fieldset.error:where(:not(.disabled,:disabled)){--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:var(--vvd-color-alert-500)}.fieldset.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:transparent}.fieldset.success:where(:not(.disabled,:disabled)){--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:var(--vvd-color-success-500)}.fieldset.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:transparent}.fieldset{background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base);justify-content:space-between;align-items:center;gap:8px;padding-block:8px;padding-inline:16px;transition:box-shadow .2s,background-color .2s;display:flex}@supports selector(:has(*)){.fieldset:not(.has-highlighted-option):has(input:focus){box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent}}@supports not selector(:has(*)){.fieldset:not(.has-highlighted-option):focus-within{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent}}:host(:not([shape=pill])) .fieldset{border-radius:8px}:host([shape=pill]) .fieldset{border-radius:24px}.popup-wrapper{position:relative}.content-area{flex-direction:column;flex:1;gap:8px;min-block-size:24px;display:flex;overflow:hidden}.tag-row{gap:8px;inline-size:100%;display:flex}.tag-row.contains-only-input:not(:focus-within){display:contents}.tag-wrapper{overflow:hidden}.tag{max-inline-size:100%}input{box-sizing:border-box;block-size:24px;font:var(--vvd-typography-base);background:0 0;border:none;outline:none;flex:1;min-inline-size:min(100px,40%);max-inline-size:100%}.contains-only-input input:not(:focus){opacity:0;pointer-events:none;block-size:0;inline-size:0;min-inline-size:0;position:absolute}.listbox{max-block-size:var(--searchable-select-height,408px);flex-direction:column;gap:2px;padding:4px;display:flex;overflow-y:auto}.empty-message{color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);text-align:center;justify-content:center;align-items:center;min-block-size:40px;display:flex}::part(popup-base){inline-size:max-content;min-inline-size:var(--_searchable-select-fixed-width,100%)}slot[name=icon]{font-size:20px}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}::slotted([data-vvd-component=option][data-highlighted]),[data-select-all][data-highlighted]{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;border-radius:8px}.divider{margin-block:10px;margin-inline:12px}", H = ".base.connotation-cta{--_connotation-color-contrast:var(--vvd-option-tag-cta-contrast,var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-contrast:var(--vvd-option-tag-accent-contrast,var(--vvd-color-neutral-800))}.base{box-sizing:border-box;background-color:var(--fill-color);block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16));box-shadow:inset 0 0 0 1px var(--outline-color);color:var(--text-color);font:var(--vvd-typography-base-bold);user-select:none;vertical-align:middle;align-items:center;column-gap:8px;max-inline-size:100%;padding-inline:8px;display:inline-flex;position:relative}.base:not(.disabled){--text-color:var(--_connotation-color-contrast);--fill-color:var(--_connotation-color-soft);--outline-color:transparent}@supports (background-color:color-mix(in srgb, black 50%, white)){.base:not(.disabled){--fill-color:color-mix(in srgb, var(--_connotation-color-contrast), transparent 87.5%)}}.base.disabled{--text-color:var(--vvd-color-neutral-300);--fill-color:var(--vvd-color-neutral-200);--outline-color:transparent}@supports (background-color:color-mix(in srgb, black 50%, white)){.base.disabled{--fill-color:color-mix(in srgb, var(--vvd-color-neutral-800), transparent 87.5%)}}.base:not(.shape-pill){border-radius:4px}.base.shape-pill{border-radius:16px}.label{text-overflow:ellipsis;white-space:nowrap;max-inline-size:100%;overflow:hidden}slot[name=icon]{font-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 1.5);line-height:1}.icon-placeholder{inline-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 1.5)}.remove-button{border-radius:inherit;cursor:pointer;outline:none;align-items:center;display:flex}.disabled .remove-button{pointer-events:none}.remove-button:focus-visible:before{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}", U = 8, W = 100, G = 10, K = (e) => typeof e == "string", q = class extends S(F(x(b(y(w(v(e(O(s))))))))) {
|
|
27
|
+
constructor(...e) {
|
|
28
|
+
super(...e), this.fixedDropdown = !1, this.open = !1, this.multiple = !1, this.externalTags = !1, this.maxLines = null, this.values = [], this.initialValues = [], this._currentSearchText = null, this._areOptionsInitialized = !1, this._filteredOptions = [], this._filteredEnabledOptions = [], this.loading = !1, this._highlightedOptionIndex = null, this._numElidedTags = 0, this._tagRows = [], this._lastTagRow = [], this.clearable = !1, this.maxSelected = null, this._slottedDisabledOptions = [], this.enableSelectAll = !1, this.proxy = document.createElement("input"), this.setFormValue = (e, t) => {
|
|
29
|
+
K(e) || super.setFormValue(e, t);
|
|
30
|
+
}, this._changeDescription = "";
|
|
31
|
+
}
|
|
32
|
+
openChanged() {
|
|
33
|
+
this.open || this.#u(null);
|
|
34
|
+
}
|
|
35
|
+
valuesChanged() {
|
|
36
|
+
if (this._areOptionsInitialized) {
|
|
37
|
+
if (!this.multiple && this.values.length > 1) {
|
|
38
|
+
this.values = [this.values[0]];
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (this.values.some((e) => !this.#n(e))) {
|
|
42
|
+
this.values = this.values.filter((e) => this.#n(e));
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this.value = this.values.length ? this.values[0] : "", this.#T(), this.#i(), this.$fastController.isConnected && this.#b(), this.#D();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
#e(e) {
|
|
49
|
+
this.values = e, this.$emit("change", void 0, { bubbles: !1 }), this.$emit("input", void 0, { bubbles: !1 });
|
|
50
|
+
}
|
|
51
|
+
#t(e) {
|
|
52
|
+
let t = new Set(this.values), n = new Set(e);
|
|
53
|
+
this.values = [...this.values].filter((e) => n.has(e)).concat([...e].filter((e) => !t.has(e)));
|
|
54
|
+
}
|
|
55
|
+
initialValuesChanged() {
|
|
56
|
+
this.dirtyValue ||= (this.values = this.initialValues, !1);
|
|
57
|
+
}
|
|
58
|
+
#n(e) {
|
|
59
|
+
return this._slottedOptions.some((t) => t.value === e);
|
|
60
|
+
}
|
|
61
|
+
valueChanged(e, t) {
|
|
62
|
+
if (super.valueChanged(e, t), !this._areOptionsInitialized) return;
|
|
63
|
+
let n = this._slottedOptions.some((e) => e.value === t);
|
|
64
|
+
this.values[0] !== t && (this.values = n ? [t] : []);
|
|
65
|
+
}
|
|
66
|
+
get selectedIndex() {
|
|
67
|
+
return this.values.length ? this._slottedOptions.findIndex((e) => e.value === this.values[0]) : -1;
|
|
68
|
+
}
|
|
69
|
+
set selectedIndex(e) {
|
|
70
|
+
this.value = this._slottedOptions[e]?.value ?? "";
|
|
71
|
+
}
|
|
72
|
+
get options() {
|
|
73
|
+
return [...this._slottedOptions];
|
|
74
|
+
}
|
|
75
|
+
get selectedOptions() {
|
|
76
|
+
return this._slottedOptions.filter((e) => this.values.includes(e.value));
|
|
77
|
+
}
|
|
78
|
+
_currentSearchTextChanged() {
|
|
79
|
+
this.#l(), this.$emit("search-text-change", void 0, {
|
|
80
|
+
bubbles: !1,
|
|
81
|
+
composed: !1
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
get searchText() {
|
|
85
|
+
return this._currentSearchText ?? "";
|
|
86
|
+
}
|
|
87
|
+
get _inputValue() {
|
|
88
|
+
return this._currentSearchText ?? (!this.multiple && this.value !== "" ? this.#v(this.value) ?? "" : "");
|
|
89
|
+
}
|
|
90
|
+
_onInputInput(e) {
|
|
91
|
+
this._currentSearchText = e.target.value;
|
|
92
|
+
}
|
|
93
|
+
_onInputFocus(e) {
|
|
94
|
+
this.#l();
|
|
95
|
+
}
|
|
96
|
+
_onInputBlur(e) {
|
|
97
|
+
this.open = !1, this._currentSearchText = null, this._changeDescription = "";
|
|
98
|
+
}
|
|
99
|
+
_onInputKeydown(e) {
|
|
100
|
+
if (e.ctrlKey || e.shiftKey) return !0;
|
|
101
|
+
switch (e.key) {
|
|
102
|
+
case "Enter": return this.#d(), this._inputValue === "" && (this.open = !this.open), !1;
|
|
103
|
+
case "Escape":
|
|
104
|
+
this.open = !1;
|
|
105
|
+
break;
|
|
106
|
+
case "Home":
|
|
107
|
+
if (!this.open) {
|
|
108
|
+
this.open = !0;
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
return this.#f(), !1;
|
|
112
|
+
case "End":
|
|
113
|
+
if (!this.open) {
|
|
114
|
+
this.open = !0;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
return this.#p(), !1;
|
|
118
|
+
case "PageUp":
|
|
119
|
+
if (!this.open) {
|
|
120
|
+
this.open = !0;
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
return this.#m(), !1;
|
|
124
|
+
case "PageDown":
|
|
125
|
+
if (!this.open) {
|
|
126
|
+
this.open = !0;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
return this.#h(), !1;
|
|
130
|
+
case "ArrowUp":
|
|
131
|
+
if (!this.open) {
|
|
132
|
+
this.open = !0;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
return this.#g(), !1;
|
|
136
|
+
case "ArrowDown":
|
|
137
|
+
if (!this.open) {
|
|
138
|
+
this.open = !0;
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
return this.#_(), !1;
|
|
142
|
+
case "ArrowLeft": return this.multiple && this._inputValue === "" && this.values.length && !this.externalTags ? (this.#x(this.#S(this.values.length)), !1) : !0;
|
|
143
|
+
case "Backspace": return this.multiple && this._inputValue === "" && this.values.length ? (this._onTagRemoved(this.values[this.values.length - 1]), !1) : !0;
|
|
144
|
+
default: return this.open ||= !0, !0;
|
|
145
|
+
}
|
|
146
|
+
return !0;
|
|
147
|
+
}
|
|
148
|
+
_slottedOptionsChanged(e, t) {
|
|
149
|
+
let n = !!this.querySelectorAll(":not([slot])").length;
|
|
150
|
+
if (!t.length && n) return;
|
|
151
|
+
if (this._areOptionsInitialized = !0, e) {
|
|
152
|
+
this._slottedDisabledOptions = [];
|
|
153
|
+
for (let t of e) l.getNotifier(t).unsubscribe(this.#r, "selected");
|
|
154
|
+
}
|
|
155
|
+
/* v8 ignore else -- @preserve */
|
|
156
|
+
if (t) for (let e of t) e._displayCheckmark = !0, l.getNotifier(e).subscribe(this.#r, "selected");
|
|
157
|
+
let r = [];
|
|
158
|
+
for (let e of this._slottedOptions) (e.selected || e.value === this.value || this.values.includes(e.value)) && r.push(e.value), e.disabled && this._slottedDisabledOptions.push(e);
|
|
159
|
+
this.#t(r), this.#l(), this.#T();
|
|
160
|
+
}
|
|
161
|
+
#r = { handleChange: (e, t) => {
|
|
162
|
+
e.selected && !this.values.includes(e.value) ? this.values = [...this.values, e.value] : !e.selected && this.values.includes(e.value) && (this.values = this.values.filter((t) => t !== e.value));
|
|
163
|
+
} };
|
|
164
|
+
#i() {
|
|
165
|
+
for (let e of this._slottedOptions) e.selected = this.values.includes(e.value), this.#c(e);
|
|
166
|
+
}
|
|
167
|
+
#a(e) {
|
|
168
|
+
let t = e.value, n, r = !1, i = !this.values.includes(t);
|
|
169
|
+
this.multiple ? (n = i ? [...this.values, t] : this.values.filter((e) => e !== t), r = !0) : (i ? (n = [t], r = !0) : n = [], this.open = !1), this.#e(n), this._changeDescription = `${i ? this.locale.searchableSelect.optionSelectedMessage(e._getAccessibleName()) : this.locale.searchableSelect.optionDeselectedMessage(e._getAccessibleName())} ${this.multiple && this.maxSelected && this.maxSelected >= 1 ? this.locale.searchableSelect.maxSelectedMessage(this.values.length, this.maxSelected) : ""}`, r && (this._currentSearchText = null);
|
|
170
|
+
}
|
|
171
|
+
#o = /* @__PURE__ */ new Map();
|
|
172
|
+
#s(e) {
|
|
173
|
+
return e.querySelector("[slot=\"tag-icon\"]");
|
|
174
|
+
}
|
|
175
|
+
_tagIconSlotName(e) {
|
|
176
|
+
return `_tag-icon-${this.values.indexOf(e)}`;
|
|
177
|
+
}
|
|
178
|
+
#c(e) {
|
|
179
|
+
if (e.selected && this.#s(e)) {
|
|
180
|
+
let t = this.#o.get(e);
|
|
181
|
+
t || (t = this.#s(e).cloneNode(!0), this.#o.set(e, t)), t.slot = this._tagIconSlotName(e.value), this.appendChild(t);
|
|
182
|
+
} else {
|
|
183
|
+
let t = this.#o.get(e);
|
|
184
|
+
t && (t.remove(), this.#o.delete(e));
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
optionFilterChanged() {
|
|
188
|
+
this.#l();
|
|
189
|
+
}
|
|
190
|
+
loadingChanged(e, t) {
|
|
191
|
+
this._changeDescription = this.locale.searchableSelect.loadingOptionsMessage, e && !t && (this._changeDescription = "");
|
|
192
|
+
}
|
|
193
|
+
#l() {
|
|
194
|
+
let e = [], t = this.optionFilter ?? ((e, t) => e.text.toLowerCase().includes(t.toLowerCase()));
|
|
195
|
+
for (let n of this._slottedOptions ?? []) {
|
|
196
|
+
n._vvdSearchText = this.searchText;
|
|
197
|
+
let r = !this.searchText || t(n, this.searchText);
|
|
198
|
+
n._isNotMatching = !r, !n.hidden && r && e.push(n);
|
|
199
|
+
}
|
|
200
|
+
this.#u(null), this._filteredOptions = e;
|
|
201
|
+
let n = e.filter((e) => !e.disabled);
|
|
202
|
+
this._selectAllOption ? this._filteredEnabledOptions = [this._selectAllOption, ...n] : this._filteredEnabledOptions = n;
|
|
203
|
+
}
|
|
204
|
+
#u(e) {
|
|
205
|
+
if (typeof this._highlightedOptionIndex == "number") {
|
|
206
|
+
let e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
207
|
+
e._highlighted = !1, e.removeAttribute("data-highlighted");
|
|
208
|
+
}
|
|
209
|
+
if (typeof e == "number" && (e = this._filteredEnabledOptions.length ? Math.max(0, Math.min(this._filteredEnabledOptions.length - 1, e)) : null), this._highlightedOptionIndex = e, typeof this._highlightedOptionIndex == "number") {
|
|
210
|
+
let e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
211
|
+
e._highlighted = !0, e.setAttribute("data-highlighted", ""), I(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(e._getAccessibleName(), this._highlightedOptionIndex + 1, this._filteredEnabledOptions.length, e.selected);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
#d() {
|
|
215
|
+
if (this._highlightedOptionIndex === null) return;
|
|
216
|
+
let e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
217
|
+
if (e.getAttribute("data-select-all") !== null) {
|
|
218
|
+
this._toggleSelectAll();
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
this.#a(e);
|
|
222
|
+
}
|
|
223
|
+
#f() {
|
|
224
|
+
this.#u(0);
|
|
225
|
+
}
|
|
226
|
+
#p() {
|
|
227
|
+
this.#u(this._filteredEnabledOptions.length - 1);
|
|
228
|
+
}
|
|
229
|
+
#m() {
|
|
230
|
+
this.#u((this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - G);
|
|
231
|
+
}
|
|
232
|
+
#h() {
|
|
233
|
+
this.#u((this._highlightedOptionIndex ?? -1) + G);
|
|
234
|
+
}
|
|
235
|
+
#g() {
|
|
236
|
+
this.#u((this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - 1);
|
|
237
|
+
}
|
|
238
|
+
#_() {
|
|
239
|
+
this.#u((this._highlightedOptionIndex ?? -1) + 1);
|
|
240
|
+
}
|
|
241
|
+
_tagLabelForValue(e) {
|
|
242
|
+
return this._slottedOptions.find((t) => t.value === e).label;
|
|
243
|
+
}
|
|
244
|
+
_tagConnotationForValue(e) {
|
|
245
|
+
return this._slottedOptions.find((t) => t.value === e).tagConnotation;
|
|
246
|
+
}
|
|
247
|
+
_isTagDisabled(e) {
|
|
248
|
+
let t = this._slottedOptions.find((t) => t.value === e);
|
|
249
|
+
return this.disabled || t.disabled;
|
|
250
|
+
}
|
|
251
|
+
#v(e) {
|
|
252
|
+
return this._slottedOptions?.find((t) => t.value === e)?.label;
|
|
253
|
+
}
|
|
254
|
+
#y(e, t, n) {
|
|
255
|
+
let r = document.createElement(this._optionTagTagName);
|
|
256
|
+
r.label = e, r.removable = t, r.style.cssText = "position: absolute; visibility: hidden;", r.hasIconPlaceholder = n, this.shadowRoot.appendChild(r);
|
|
257
|
+
let i = r.getBoundingClientRect().width;
|
|
258
|
+
return r.remove(), i;
|
|
259
|
+
}
|
|
260
|
+
#b() {
|
|
261
|
+
if (!this.multiple) {
|
|
262
|
+
this._numElidedTags = 0, this._tagRows = [], this._lastTagRow = [];
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
if (this.externalTags) {
|
|
266
|
+
this._numElidedTags = this.values.length, this._tagRows = [], this._lastTagRow = [];
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
let e = this._contentArea.getBoundingClientRect().width, t = [[]], n = 0, r = W, i;
|
|
270
|
+
for (i = this.values.length - 1; i >= 0; i--) {
|
|
271
|
+
let a = this.maxLines && n === this.maxLines - 1, o = this.#y(this._tagLabelForValue(this.values[i]), !0, this.#s(this.selectedOptions[i]) !== null), s = {
|
|
272
|
+
value: this.values[i],
|
|
273
|
+
width: o
|
|
274
|
+
}, c = 0;
|
|
275
|
+
if (a) {
|
|
276
|
+
let e = i;
|
|
277
|
+
e && (c = U + this.#y(e.toString(), !1, !1));
|
|
278
|
+
}
|
|
279
|
+
if (r + U + o + c > e) {
|
|
280
|
+
if (a) if (i === this.values.length - 1) t[n].unshift(s), r += U + o;
|
|
281
|
+
else break;
|
|
282
|
+
else t.push([]), n++, t[n].unshift(s), r = o;
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
t[n].unshift(s), r += U + o;
|
|
286
|
+
}
|
|
287
|
+
this._numElidedTags = i + 1, t.reverse();
|
|
288
|
+
for (let n = 0; n < t.length - 1; n++) {
|
|
289
|
+
let r = t[n].map((e) => e.width).reduce((e, t) => e + t, 0) + (t[n].length - 1) * U;
|
|
290
|
+
for (n === 0 && this._numElidedTags && (r += U + this.#y(this._numElidedTags.toString(), !1, !1)); t[n + 1].length && r + U + t[n + 1][0].width <= e;) {
|
|
291
|
+
let e = t[n + 1].shift();
|
|
292
|
+
t[n].push(e), r += U + e.width;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
let a = t.map((e) => e.map((e) => e.value));
|
|
296
|
+
this._tagRows = a.slice(0, -1), this._lastTagRow = a.slice(-1)[0];
|
|
297
|
+
}
|
|
298
|
+
_onTagRemoved(e) {
|
|
299
|
+
this.#e(this.values.filter((t) => t !== e)), this.#l();
|
|
300
|
+
}
|
|
301
|
+
_onTagKeydown(e) {
|
|
302
|
+
let n = parseInt(e.target.dataset.index);
|
|
303
|
+
switch (e.key) {
|
|
304
|
+
case "Backspace":
|
|
305
|
+
case "Delete":
|
|
306
|
+
case "Enter":
|
|
307
|
+
case " ":
|
|
308
|
+
this._onTagRemoved(this.values[n]), t.process(), this.#x(this.#w(n));
|
|
309
|
+
break;
|
|
310
|
+
case "ArrowLeft":
|
|
311
|
+
this.#x(this.#S(n) ?? n);
|
|
312
|
+
break;
|
|
313
|
+
case "ArrowRight":
|
|
314
|
+
this.#x(this.#C(n));
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
return !0;
|
|
318
|
+
}
|
|
319
|
+
#x(e) {
|
|
320
|
+
e === null ? this._input.focus() : this.shadowRoot.querySelector(`[data-index="${e}"]`)?.focus();
|
|
321
|
+
}
|
|
322
|
+
#S(e) {
|
|
323
|
+
if (!this.values.length) return null;
|
|
324
|
+
for (let t = e - 1; t >= 0; t--) if (!this._isTagDisabled(this.values[t])) return t;
|
|
325
|
+
return null;
|
|
326
|
+
}
|
|
327
|
+
#C(e) {
|
|
328
|
+
if (!this.values.length) return null;
|
|
329
|
+
for (let t = e + 1; t < this.values.length; t++) if (!this._isTagDisabled(this.values[t])) return t;
|
|
330
|
+
return null;
|
|
331
|
+
}
|
|
332
|
+
#w(e) {
|
|
333
|
+
return this.#C(e - 1) ?? this.#S(e);
|
|
334
|
+
}
|
|
335
|
+
_onListboxClick(e) {
|
|
336
|
+
if (this.disabled) return;
|
|
337
|
+
let t = e.target.closest("option,[role=option],[data-vvd-component=option]");
|
|
338
|
+
if (t?.getAttribute("data-select-all") !== null) {
|
|
339
|
+
this._toggleSelectAll();
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
t && !t.disabled && this.#a(t);
|
|
343
|
+
}
|
|
344
|
+
get _shouldShowClearButton() {
|
|
345
|
+
return this.clearable && this.values.length > 0;
|
|
346
|
+
}
|
|
347
|
+
_onClearButtonClick() {
|
|
348
|
+
this.#e(this.selectedOptions.filter((e) => e.disabled).map((e) => e.value));
|
|
349
|
+
}
|
|
350
|
+
maxSelectedChanged() {
|
|
351
|
+
this.#T();
|
|
352
|
+
}
|
|
353
|
+
#T() {
|
|
354
|
+
if (!this.multiple || !this._slottedOptions || typeof this.maxSelected != "number" || this.maxSelected <= 0) return;
|
|
355
|
+
let e = this._slottedOptions.filter((e) => !this._slottedDisabledOptions.includes(e));
|
|
356
|
+
if (this.values.length >= this.maxSelected) {
|
|
357
|
+
let t = e.filter((e) => !this.selectedOptions.includes(e));
|
|
358
|
+
for (let e of t) e.disabled = !0;
|
|
359
|
+
} else for (let t of e) t.disabled = !1;
|
|
360
|
+
}
|
|
361
|
+
get _hasSelectionCount() {
|
|
362
|
+
return this.multiple && this.maxSelected && this.maxSelected >= 1;
|
|
363
|
+
}
|
|
364
|
+
get _selectableOptions() {
|
|
365
|
+
return this._slottedOptions?.filter((e) => !this._slottedDisabledOptions.includes(e) && !e.disabled) ?? [];
|
|
366
|
+
}
|
|
367
|
+
get _selectAllLabel() {
|
|
368
|
+
return this._isAllSelected ? this.deselectAllText ?? this.locale.searchableSelect.deselectAllLabel : this.selectAllText ?? this.locale.searchableSelect.selectAllLabel;
|
|
369
|
+
}
|
|
370
|
+
get _isAllSelected() {
|
|
371
|
+
let e = this.values;
|
|
372
|
+
if (!this.multiple || !this._slottedOptions) return !1;
|
|
373
|
+
let t = this._selectableOptions;
|
|
374
|
+
if (t.length === 0) return !1;
|
|
375
|
+
let n = new Set(e);
|
|
376
|
+
return t.every((e) => n.has(e.value));
|
|
377
|
+
}
|
|
378
|
+
_toggleSelectAll() {
|
|
379
|
+
let e = this._selectableOptions.map((e) => e.value);
|
|
380
|
+
if (this._isAllSelected) {
|
|
381
|
+
let t = this.values.filter((t) => !e.includes(t));
|
|
382
|
+
this.#e(t), this._changeDescription = this.locale.searchableSelect.deselectedAllMessage;
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
let t = e.filter((e) => !this.values.includes(e)), n = [...this.values, ...t];
|
|
386
|
+
this.#e(n), this._changeDescription = this.locale.searchableSelect.selectedAllMessage;
|
|
387
|
+
}
|
|
388
|
+
#E() {
|
|
389
|
+
return this.initialValues.length ? this.initialValues : this.initialValue ? [this.initialValue] : [];
|
|
390
|
+
}
|
|
391
|
+
nameChanged(e, t) {
|
|
392
|
+
super.nameChanged(e, t), this.#D();
|
|
393
|
+
}
|
|
394
|
+
#D() {
|
|
395
|
+
if (!this.name) this.setFormValue(null);
|
|
396
|
+
else {
|
|
397
|
+
let e = new FormData();
|
|
398
|
+
for (let t of this.values) e.append(this.name, t);
|
|
399
|
+
this.setFormValue(e);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
formResetCallback() {
|
|
403
|
+
super.formResetCallback(), this.#e(this.#E());
|
|
404
|
+
}
|
|
405
|
+
#O = new ResizeObserver(() => {
|
|
406
|
+
this.#b();
|
|
407
|
+
});
|
|
408
|
+
_onFieldsetClick(e) {
|
|
409
|
+
this.disabled || e.defaultPrevented || (this._input.focus(), this.open = !0);
|
|
410
|
+
}
|
|
411
|
+
_onChevronClick() {
|
|
412
|
+
return this.open ? (this.open = !1, !1) : !0;
|
|
413
|
+
}
|
|
414
|
+
connectedCallback() {
|
|
415
|
+
super.connectedCallback(), this.values.length || (this.values = this.#E()), this.#O.observe(this._contentArea);
|
|
416
|
+
}
|
|
417
|
+
disconnectedCallback() {
|
|
418
|
+
super.disconnectedCallback(), this.#O.disconnect();
|
|
419
|
+
}
|
|
420
|
+
validate() {
|
|
421
|
+
super.validate(this._input ?? void 0);
|
|
422
|
+
}
|
|
423
|
+
focus(e) {
|
|
424
|
+
this._input?.focus(e);
|
|
425
|
+
}
|
|
426
|
+
_onMouseDown(e) {
|
|
427
|
+
let t = e.composedPath()[0];
|
|
428
|
+
return !e.defaultPrevented && t !== this._input && !this._isFromContextualHelp(e) ? (this._input.focus(), !1) : !0;
|
|
429
|
+
}
|
|
29
430
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
openChanged() {
|
|
59
|
-
this.open || this.#e(null);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
valuesChanged() {
|
|
65
|
-
if (this._areOptionsInitialized) {
|
|
66
|
-
if (!this.multiple && this.values.length > 1) {
|
|
67
|
-
this.values = [this.values[0]];
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
if (this.values.some((t) => !this.#p(t))) {
|
|
71
|
-
this.values = this.values.filter((t) => this.#p(t));
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
this.value = this.values.length ? this.values[0] : "", this.#c(), this.#_(), this.$fastController.isConnected && this.#u(), this.#g();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
#t(t) {
|
|
78
|
-
this.values = t, this.$emit("change", void 0, {
|
|
79
|
-
bubbles: !1
|
|
80
|
-
}), this.$emit("input", void 0, {
|
|
81
|
-
bubbles: !1
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
#b(t) {
|
|
85
|
-
const e = new Set(this.values), o = new Set(t);
|
|
86
|
-
this.values = [...this.values].filter((a) => o.has(a)).concat([...t].filter((a) => !e.has(a)));
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
|
-
initialValuesChanged() {
|
|
92
|
-
this.dirtyValue || (this.values = this.initialValues, this.dirtyValue = !1);
|
|
93
|
-
}
|
|
94
|
-
#p(t) {
|
|
95
|
-
return this._slottedOptions.some((e) => e.value === t);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
100
|
-
valueChanged(t, e) {
|
|
101
|
-
if (super.valueChanged(t, e), !this._areOptionsInitialized)
|
|
102
|
-
return;
|
|
103
|
-
const o = this._slottedOptions.some(
|
|
104
|
-
(a) => a.value === e
|
|
105
|
-
);
|
|
106
|
-
this.values[0] !== e && (this.values = o ? [e] : []);
|
|
107
|
-
}
|
|
108
|
-
get selectedIndex() {
|
|
109
|
-
return this.values.length ? this._slottedOptions.findIndex(
|
|
110
|
-
(t) => t.value === this.values[0]
|
|
111
|
-
) : -1;
|
|
112
|
-
}
|
|
113
|
-
set selectedIndex(t) {
|
|
114
|
-
this.value = this._slottedOptions[t]?.value ?? "";
|
|
115
|
-
}
|
|
116
|
-
get options() {
|
|
117
|
-
return [...this._slottedOptions];
|
|
118
|
-
}
|
|
119
|
-
get selectedOptions() {
|
|
120
|
-
return this._slottedOptions.filter(
|
|
121
|
-
(t) => this.values.includes(t.value)
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
*/
|
|
127
|
-
_currentSearchTextChanged() {
|
|
128
|
-
this.#o(), this.$emit("search-text-change", void 0, {
|
|
129
|
-
bubbles: !1,
|
|
130
|
-
composed: !1
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* The current search text of the component.
|
|
135
|
-
*/
|
|
136
|
-
get searchText() {
|
|
137
|
-
return this._currentSearchText ?? "";
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* @internal
|
|
141
|
-
*/
|
|
142
|
-
get _inputValue() {
|
|
143
|
-
return this._currentSearchText ?? (!this.multiple && this.value !== "" ? this.#k(this.value) ?? "" : "");
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* @internal
|
|
147
|
-
*/
|
|
148
|
-
_onInputInput(t) {
|
|
149
|
-
this._currentSearchText = t.target.value;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* @internal
|
|
153
|
-
*/
|
|
154
|
-
_onInputFocus(t) {
|
|
155
|
-
this.#o();
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
160
|
-
_onInputBlur(t) {
|
|
161
|
-
this.open = !1, this._currentSearchText = null, this._changeDescription = "";
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* @internal
|
|
165
|
-
*/
|
|
166
|
-
_onInputKeydown(t) {
|
|
167
|
-
if (t.ctrlKey || t.shiftKey)
|
|
168
|
-
return !0;
|
|
169
|
-
switch (t.key) {
|
|
170
|
-
case "Enter":
|
|
171
|
-
return this.#x(), this._inputValue === "" && (this.open = !this.open), !1;
|
|
172
|
-
case "Escape":
|
|
173
|
-
this.open = !1;
|
|
174
|
-
break;
|
|
175
|
-
case "Home":
|
|
176
|
-
if (!this.open) {
|
|
177
|
-
this.open = !0;
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
return this.#y(), !1;
|
|
181
|
-
case "End":
|
|
182
|
-
if (!this.open) {
|
|
183
|
-
this.open = !0;
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
return this.#w(), !1;
|
|
187
|
-
case "PageUp":
|
|
188
|
-
if (!this.open) {
|
|
189
|
-
this.open = !0;
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
return this.#$(), !1;
|
|
193
|
-
case "PageDown":
|
|
194
|
-
if (!this.open) {
|
|
195
|
-
this.open = !0;
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
return this.#O(), !1;
|
|
199
|
-
case "ArrowUp":
|
|
200
|
-
if (!this.open) {
|
|
201
|
-
this.open = !0;
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
return this.#T(), !1;
|
|
205
|
-
case "ArrowDown":
|
|
206
|
-
if (!this.open) {
|
|
207
|
-
this.open = !0;
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
return this.#S(), !1;
|
|
211
|
-
case "ArrowLeft":
|
|
212
|
-
return this.multiple && this._inputValue === "" && this.values.length && !this.externalTags ? (this.#l(this.#r(this.values.length)), !1) : !0;
|
|
213
|
-
case "Backspace":
|
|
214
|
-
return this.multiple && this._inputValue === "" && this.values.length ? (this._onTagRemoved(this.values[this.values.length - 1]), !1) : !0;
|
|
215
|
-
default:
|
|
216
|
-
return this.open || (this.open = !0), !0;
|
|
217
|
-
}
|
|
218
|
-
return !0;
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* @internal
|
|
222
|
-
*/
|
|
223
|
-
_slottedOptionsChanged(t, e) {
|
|
224
|
-
const o = !!this.querySelectorAll(":not([slot])").length;
|
|
225
|
-
if (!e.length && o)
|
|
226
|
-
return;
|
|
227
|
-
if (this._areOptionsInitialized = !0, t) {
|
|
228
|
-
this._slottedDisabledOptions = [];
|
|
229
|
-
for (const i of t)
|
|
230
|
-
O.getNotifier(i).unsubscribe(this.#s, "selected");
|
|
231
|
-
}
|
|
232
|
-
if (e)
|
|
233
|
-
for (const i of e)
|
|
234
|
-
i._displayCheckmark = !0, O.getNotifier(i).subscribe(this.#s, "selected");
|
|
235
|
-
const a = [];
|
|
236
|
-
for (const i of this._slottedOptions)
|
|
237
|
-
(i.selected || i.value === this.value || this.values.includes(i.value)) && a.push(i.value), i.disabled && this._slottedDisabledOptions.push(i);
|
|
238
|
-
this.#b(a), this.#o(), this.#c();
|
|
239
|
-
}
|
|
240
|
-
#s;
|
|
241
|
-
#_() {
|
|
242
|
-
for (const t of this._slottedOptions)
|
|
243
|
-
t.selected = this.values.includes(t.value), this.#m(t);
|
|
244
|
-
}
|
|
245
|
-
#h(t) {
|
|
246
|
-
const e = t.value;
|
|
247
|
-
let o, a = !1;
|
|
248
|
-
const i = !this.values.includes(e);
|
|
249
|
-
this.multiple ? (i ? o = [...this.values, e] : o = this.values.filter((f) => f !== e), a = !0) : (i ? (o = [e], a = !0) : o = [], this.open = !1), this.#t(o);
|
|
250
|
-
const g = i ? this.locale.searchableSelect.optionSelectedMessage(
|
|
251
|
-
t._getAccessibleName()
|
|
252
|
-
) : this.locale.searchableSelect.optionDeselectedMessage(
|
|
253
|
-
t._getAccessibleName()
|
|
254
|
-
), h = this.multiple && this.maxSelected && this.maxSelected >= 1 ? this.locale.searchableSelect.maxSelectedMessage(
|
|
255
|
-
this.values.length,
|
|
256
|
-
this.maxSelected
|
|
257
|
-
) : "";
|
|
258
|
-
this._changeDescription = `${g} ${h}`, a && (this._currentSearchText = null);
|
|
259
|
-
}
|
|
260
|
-
#a;
|
|
261
|
-
#i(t) {
|
|
262
|
-
return t.querySelector('[slot="tag-icon"]');
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
|
-
_tagIconSlotName(t) {
|
|
268
|
-
return `_tag-icon-${this.values.indexOf(t)}`;
|
|
269
|
-
}
|
|
270
|
-
#m(t) {
|
|
271
|
-
if (t.selected && this.#i(t)) {
|
|
272
|
-
let e = this.#a.get(t);
|
|
273
|
-
e || (e = this.#i(t).cloneNode(!0), this.#a.set(t, e)), e.slot = this._tagIconSlotName(t.value), this.appendChild(e);
|
|
274
|
-
} else {
|
|
275
|
-
const e = this.#a.get(t);
|
|
276
|
-
e && (e.remove(), this.#a.delete(t));
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* @internal
|
|
281
|
-
*/
|
|
282
|
-
optionFilterChanged() {
|
|
283
|
-
this.#o();
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* @internal
|
|
287
|
-
*/
|
|
288
|
-
loadingChanged(t, e) {
|
|
289
|
-
this._changeDescription = this.locale.searchableSelect.loadingOptionsMessage, t && !e && (this._changeDescription = "");
|
|
290
|
-
}
|
|
291
|
-
#o() {
|
|
292
|
-
const t = [], e = this.optionFilter ?? ((a, i) => a.text.toLowerCase().includes(i.toLowerCase()));
|
|
293
|
-
for (const a of this._slottedOptions ?? []) {
|
|
294
|
-
a._vvdSearchText = this.searchText;
|
|
295
|
-
const i = !this.searchText || e(a, this.searchText);
|
|
296
|
-
a._isNotMatching = !i, !a.hidden && i && t.push(a);
|
|
297
|
-
}
|
|
298
|
-
this.#e(null), this._filteredOptions = t;
|
|
299
|
-
const o = t.filter((a) => !a.disabled);
|
|
300
|
-
this._selectAllOption ? this._filteredEnabledOptions = [this._selectAllOption, ...o] : this._filteredEnabledOptions = o;
|
|
301
|
-
}
|
|
302
|
-
#e(t) {
|
|
303
|
-
if (typeof this._highlightedOptionIndex == "number") {
|
|
304
|
-
const e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
305
|
-
e._highlighted = !1, e.removeAttribute("data-highlighted");
|
|
306
|
-
}
|
|
307
|
-
if (typeof t == "number" && (this._filteredEnabledOptions.length ? t = Math.max(
|
|
308
|
-
0,
|
|
309
|
-
Math.min(this._filteredEnabledOptions.length - 1, t)
|
|
310
|
-
) : t = null), this._highlightedOptionIndex = t, typeof this._highlightedOptionIndex == "number") {
|
|
311
|
-
const e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
312
|
-
e._highlighted = !0, e.setAttribute("data-highlighted", ""), Q(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(
|
|
313
|
-
e._getAccessibleName(),
|
|
314
|
-
this._highlightedOptionIndex + 1,
|
|
315
|
-
this._filteredEnabledOptions.length,
|
|
316
|
-
e.selected
|
|
317
|
-
);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
#x() {
|
|
321
|
-
if (this._highlightedOptionIndex === null)
|
|
322
|
-
return;
|
|
323
|
-
const t = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
324
|
-
if (t.getAttribute("data-select-all") !== null) {
|
|
325
|
-
this._toggleSelectAll();
|
|
326
|
-
return;
|
|
327
|
-
}
|
|
328
|
-
this.#h(t);
|
|
329
|
-
}
|
|
330
|
-
#y() {
|
|
331
|
-
this.#e(0);
|
|
332
|
-
}
|
|
333
|
-
#w() {
|
|
334
|
-
this.#e(
|
|
335
|
-
this._filteredEnabledOptions.length - 1
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
#$() {
|
|
339
|
-
this.#e(
|
|
340
|
-
(this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - S
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
#O() {
|
|
344
|
-
this.#e(
|
|
345
|
-
(this._highlightedOptionIndex ?? -1) + S
|
|
346
|
-
);
|
|
347
|
-
}
|
|
348
|
-
#T() {
|
|
349
|
-
this.#e(
|
|
350
|
-
(this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - 1
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
#S() {
|
|
354
|
-
this.#e(
|
|
355
|
-
(this._highlightedOptionIndex ?? -1) + 1
|
|
356
|
-
);
|
|
357
|
-
}
|
|
358
|
-
// --- Tags ---
|
|
359
|
-
/**
|
|
360
|
-
* @internal
|
|
361
|
-
*/
|
|
362
|
-
_tagLabelForValue(t) {
|
|
363
|
-
return this._slottedOptions.find(
|
|
364
|
-
(o) => o.value === t
|
|
365
|
-
).label;
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* @internal
|
|
369
|
-
*/
|
|
370
|
-
_tagConnotationForValue(t) {
|
|
371
|
-
return this._slottedOptions.find(
|
|
372
|
-
(o) => o.value === t
|
|
373
|
-
).tagConnotation;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* @internal
|
|
377
|
-
*/
|
|
378
|
-
_isTagDisabled(t) {
|
|
379
|
-
const e = this._slottedOptions.find(
|
|
380
|
-
(o) => o.value === t
|
|
381
|
-
);
|
|
382
|
-
return this.disabled || e.disabled;
|
|
383
|
-
}
|
|
384
|
-
#k(t) {
|
|
385
|
-
return this._slottedOptions?.find(
|
|
386
|
-
(o) => o.value === t
|
|
387
|
-
)?.label;
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
* @internal
|
|
391
|
-
*/
|
|
392
|
-
#n(t, e, o) {
|
|
393
|
-
const a = document.createElement(this._optionTagTagName);
|
|
394
|
-
a.label = t, a.removable = e, a.style.cssText = "position: absolute; visibility: hidden;", a.hasIconPlaceholder = o, this.shadowRoot.appendChild(a);
|
|
395
|
-
const i = a.getBoundingClientRect().width;
|
|
396
|
-
return a.remove(), i;
|
|
397
|
-
}
|
|
398
|
-
#u() {
|
|
399
|
-
if (!this.multiple) {
|
|
400
|
-
this._numElidedTags = 0, this._tagRows = [], this._lastTagRow = [];
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
if (this.externalTags) {
|
|
404
|
-
this._numElidedTags = this.values.length, this._tagRows = [], this._lastTagRow = [];
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
const t = this._contentArea.getBoundingClientRect().width, e = [[]];
|
|
408
|
-
let o = 0, a = pe, i;
|
|
409
|
-
for (i = this.values.length - 1; i >= 0; i--) {
|
|
410
|
-
const h = this.maxLines && o === this.maxLines - 1, f = this.#n(
|
|
411
|
-
this._tagLabelForValue(this.values[i]),
|
|
412
|
-
!0,
|
|
413
|
-
this.#i(this.selectedOptions[i]) !== null
|
|
414
|
-
), l = {
|
|
415
|
-
value: this.values[i],
|
|
416
|
-
width: f
|
|
417
|
-
};
|
|
418
|
-
let c = 0;
|
|
419
|
-
if (h) {
|
|
420
|
-
const $ = i;
|
|
421
|
-
$ && (c = _ + this.#n($.toString(), !1, !1));
|
|
422
|
-
}
|
|
423
|
-
if (a + _ + f + c > t) {
|
|
424
|
-
if (h)
|
|
425
|
-
if (i === this.values.length - 1)
|
|
426
|
-
e[o].unshift(l), a += _ + f;
|
|
427
|
-
else
|
|
428
|
-
break;
|
|
429
|
-
else
|
|
430
|
-
e.push([]), o++, e[o].unshift(l), a = f;
|
|
431
|
-
continue;
|
|
432
|
-
}
|
|
433
|
-
e[o].unshift(l), a += _ + f;
|
|
434
|
-
}
|
|
435
|
-
this._numElidedTags = i + 1, e.reverse();
|
|
436
|
-
for (let h = 0; h < e.length - 1; h++) {
|
|
437
|
-
let f = e[h].map((l) => l.width).reduce((l, c) => l + c, 0) + (e[h].length - 1) * _;
|
|
438
|
-
for (h === 0 && this._numElidedTags && (f += _ + this.#n(this._numElidedTags.toString(), !1, !1)); e[h + 1].length && f + _ + e[h + 1][0].width <= t; ) {
|
|
439
|
-
const l = e[h + 1].shift();
|
|
440
|
-
e[h].push(l), f += _ + l.width;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
const g = e.map((h) => h.map((f) => f.value));
|
|
444
|
-
this._tagRows = g.slice(0, -1), this._lastTagRow = g.slice(-1)[0];
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* @internal
|
|
448
|
-
*/
|
|
449
|
-
_onTagRemoved(t) {
|
|
450
|
-
this.#t(
|
|
451
|
-
this.values.filter((e) => e !== t)
|
|
452
|
-
), this.#o();
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* @internal
|
|
456
|
-
*/
|
|
457
|
-
_onTagKeydown(t) {
|
|
458
|
-
const e = parseInt(t.target.dataset.index);
|
|
459
|
-
switch (t.key) {
|
|
460
|
-
case "Backspace":
|
|
461
|
-
case "Delete":
|
|
462
|
-
case "Enter":
|
|
463
|
-
case " ": {
|
|
464
|
-
this._onTagRemoved(this.values[e]), q.process(), this.#l(this.#C(e));
|
|
465
|
-
break;
|
|
466
|
-
}
|
|
467
|
-
case "ArrowLeft":
|
|
468
|
-
this.#l(this.#r(e) ?? e);
|
|
469
|
-
break;
|
|
470
|
-
case "ArrowRight":
|
|
471
|
-
this.#l(this.#v(e));
|
|
472
|
-
break;
|
|
473
|
-
}
|
|
474
|
-
return !0;
|
|
475
|
-
}
|
|
476
|
-
#l(t) {
|
|
477
|
-
t === null ? this._input.focus() : this.shadowRoot.querySelector(`[data-index="${t}"]`)?.focus();
|
|
478
|
-
}
|
|
479
|
-
#r(t) {
|
|
480
|
-
if (!this.values.length)
|
|
481
|
-
return null;
|
|
482
|
-
for (let e = t - 1; e >= 0; e--)
|
|
483
|
-
if (!this._isTagDisabled(this.values[e]))
|
|
484
|
-
return e;
|
|
485
|
-
return null;
|
|
486
|
-
}
|
|
487
|
-
#v(t) {
|
|
488
|
-
if (!this.values.length)
|
|
489
|
-
return null;
|
|
490
|
-
for (let e = t + 1; e < this.values.length; e++)
|
|
491
|
-
if (!this._isTagDisabled(this.values[e]))
|
|
492
|
-
return e;
|
|
493
|
-
return null;
|
|
494
|
-
}
|
|
495
|
-
#C(t) {
|
|
496
|
-
return this.#v(t - 1) ?? this.#r(t);
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
* @internal
|
|
500
|
-
*/
|
|
501
|
-
_onListboxClick(t) {
|
|
502
|
-
if (this.disabled)
|
|
503
|
-
return;
|
|
504
|
-
const e = t.target.closest(
|
|
505
|
-
"option,[role=option],[data-vvd-component=option]"
|
|
506
|
-
);
|
|
507
|
-
if (e?.getAttribute("data-select-all") !== null) {
|
|
508
|
-
this._toggleSelectAll();
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
e && !e.disabled && this.#h(e);
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* @internal
|
|
515
|
-
*/
|
|
516
|
-
get _shouldShowClearButton() {
|
|
517
|
-
return this.clearable && this.values.length > 0;
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* @internal
|
|
521
|
-
*/
|
|
522
|
-
_onClearButtonClick() {
|
|
523
|
-
this.#t(
|
|
524
|
-
this.selectedOptions.filter((t) => t.disabled).map((t) => t.value)
|
|
525
|
-
);
|
|
526
|
-
}
|
|
527
|
-
/**
|
|
528
|
-
* @internal
|
|
529
|
-
*/
|
|
530
|
-
maxSelectedChanged() {
|
|
531
|
-
this.#c();
|
|
532
|
-
}
|
|
533
|
-
#c() {
|
|
534
|
-
if (!this.multiple || !this._slottedOptions || typeof this.maxSelected != "number" || this.maxSelected <= 0)
|
|
535
|
-
return;
|
|
536
|
-
const t = this._slottedOptions.filter(
|
|
537
|
-
(e) => !this._slottedDisabledOptions.includes(e)
|
|
538
|
-
);
|
|
539
|
-
if (this.values.length >= this.maxSelected) {
|
|
540
|
-
const e = t.filter(
|
|
541
|
-
(o) => !this.selectedOptions.includes(o)
|
|
542
|
-
);
|
|
543
|
-
for (const o of e)
|
|
544
|
-
o.disabled = !0;
|
|
545
|
-
} else
|
|
546
|
-
for (const e of t)
|
|
547
|
-
e.disabled = !1;
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* @internal
|
|
551
|
-
*/
|
|
552
|
-
get _hasSelectionCount() {
|
|
553
|
-
return this.multiple && this.maxSelected && this.maxSelected >= 1;
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* @internal
|
|
557
|
-
*/
|
|
558
|
-
get _selectableOptions() {
|
|
559
|
-
return this._slottedOptions?.filter(
|
|
560
|
-
(t) => !this._slottedDisabledOptions.includes(t) && !t.disabled
|
|
561
|
-
) ?? [];
|
|
562
|
-
}
|
|
563
|
-
/**
|
|
564
|
-
* @internal
|
|
565
|
-
*/
|
|
566
|
-
get _selectAllLabel() {
|
|
567
|
-
return this._isAllSelected ? this.deselectAllText ?? this.locale.searchableSelect.deselectAllLabel : this.selectAllText ?? this.locale.searchableSelect.selectAllLabel;
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* @internal
|
|
571
|
-
*/
|
|
572
|
-
get _isAllSelected() {
|
|
573
|
-
const t = this.values;
|
|
574
|
-
if (!this.multiple || !this._slottedOptions) return !1;
|
|
575
|
-
const e = this._selectableOptions;
|
|
576
|
-
if (e.length === 0) return !1;
|
|
577
|
-
const o = new Set(t);
|
|
578
|
-
return e.every((a) => o.has(a.value));
|
|
579
|
-
}
|
|
580
|
-
/**
|
|
581
|
-
* @internal
|
|
582
|
-
*/
|
|
583
|
-
_toggleSelectAll() {
|
|
584
|
-
const t = this._selectableOptions.map((a) => a.value);
|
|
585
|
-
if (this._isAllSelected) {
|
|
586
|
-
const a = this.values.filter(
|
|
587
|
-
(i) => !t.includes(i)
|
|
588
|
-
);
|
|
589
|
-
this.#t(a), this._changeDescription = this.locale.searchableSelect.deselectedAllMessage;
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
const e = t.filter(
|
|
593
|
-
(a) => !this.values.includes(a)
|
|
594
|
-
), o = [...this.values, ...e];
|
|
595
|
-
this.#t(o), this._changeDescription = this.locale.searchableSelect.selectedAllMessage;
|
|
596
|
-
}
|
|
597
|
-
#f() {
|
|
598
|
-
return this.initialValues.length ? this.initialValues : this.initialValue ? [this.initialValue] : [];
|
|
599
|
-
}
|
|
600
|
-
/**
|
|
601
|
-
* @internal
|
|
602
|
-
*/
|
|
603
|
-
nameChanged(t, e) {
|
|
604
|
-
super.nameChanged(t, e), this.#g();
|
|
605
|
-
}
|
|
606
|
-
#g() {
|
|
607
|
-
if (!this.name)
|
|
608
|
-
this.setFormValue(null);
|
|
609
|
-
else {
|
|
610
|
-
const t = new FormData();
|
|
611
|
-
for (const e of this.values)
|
|
612
|
-
t.append(this.name, e);
|
|
613
|
-
this.setFormValue(t);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* @internal
|
|
618
|
-
*/
|
|
619
|
-
formResetCallback() {
|
|
620
|
-
super.formResetCallback(), this.#t(this.#f());
|
|
621
|
-
}
|
|
622
|
-
#d;
|
|
623
|
-
/**
|
|
624
|
-
* @internal
|
|
625
|
-
*/
|
|
626
|
-
_onFieldsetClick(t) {
|
|
627
|
-
this.disabled || t.defaultPrevented || (this._input.focus(), this.open = !0);
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* @internal
|
|
631
|
-
*/
|
|
632
|
-
_onChevronClick() {
|
|
633
|
-
return this.open ? (this.open = !1, !1) : !0;
|
|
634
|
-
}
|
|
635
|
-
connectedCallback() {
|
|
636
|
-
super.connectedCallback(), this.values.length || (this.values = this.#f()), this.#d.observe(this._contentArea);
|
|
637
|
-
}
|
|
638
|
-
disconnectedCallback() {
|
|
639
|
-
super.disconnectedCallback(), this.#d.disconnect();
|
|
640
|
-
}
|
|
641
|
-
/**
|
|
642
|
-
* @internal
|
|
643
|
-
*/
|
|
644
|
-
validate() {
|
|
645
|
-
super.validate(this._input ?? void 0);
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* @internal
|
|
649
|
-
*/
|
|
650
|
-
focus(t) {
|
|
651
|
-
this._input?.focus(t);
|
|
652
|
-
}
|
|
653
|
-
/**
|
|
654
|
-
* @internal
|
|
655
|
-
*/
|
|
656
|
-
_onMouseDown(t) {
|
|
657
|
-
const e = t.composedPath()[0];
|
|
658
|
-
return !t.defaultPrevented && e !== this._input && !this._isFromContextualHelp(t) ? (this._input.focus(), !1) : !0;
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
r([
|
|
662
|
-
u
|
|
663
|
-
], n.prototype, "appearance");
|
|
664
|
-
r([
|
|
665
|
-
u
|
|
666
|
-
], n.prototype, "shape");
|
|
667
|
-
r([
|
|
668
|
-
u({ mode: "boolean", attribute: "fixed-dropdown" })
|
|
669
|
-
], n.prototype, "fixedDropdown");
|
|
670
|
-
r([
|
|
671
|
-
u
|
|
672
|
-
], n.prototype, "placeholder");
|
|
673
|
-
r([
|
|
674
|
-
u({ mode: "boolean" })
|
|
675
|
-
], n.prototype, "open");
|
|
676
|
-
r([
|
|
677
|
-
u({ mode: "boolean" })
|
|
678
|
-
], n.prototype, "multiple");
|
|
679
|
-
r([
|
|
680
|
-
u({ attribute: "external-tags", mode: "boolean" })
|
|
681
|
-
], n.prototype, "externalTags");
|
|
682
|
-
r([
|
|
683
|
-
u({ attribute: "max-lines", converter: A })
|
|
684
|
-
], n.prototype, "maxLines");
|
|
685
|
-
r([
|
|
686
|
-
p
|
|
687
|
-
], n.prototype, "values");
|
|
688
|
-
r([
|
|
689
|
-
p
|
|
690
|
-
], n.prototype, "initialValues");
|
|
691
|
-
r([
|
|
692
|
-
p
|
|
693
|
-
], n.prototype, "_input");
|
|
694
|
-
r([
|
|
695
|
-
p
|
|
696
|
-
], n.prototype, "_currentSearchText");
|
|
697
|
-
r([
|
|
698
|
-
p
|
|
699
|
-
], n.prototype, "_slottedOptions");
|
|
700
|
-
r([
|
|
701
|
-
p
|
|
702
|
-
], n.prototype, "optionFilter");
|
|
703
|
-
r([
|
|
704
|
-
p
|
|
705
|
-
], n.prototype, "_filteredOptions");
|
|
706
|
-
r([
|
|
707
|
-
p
|
|
708
|
-
], n.prototype, "_filteredEnabledOptions");
|
|
709
|
-
r([
|
|
710
|
-
u({
|
|
711
|
-
mode: "boolean"
|
|
712
|
-
})
|
|
713
|
-
], n.prototype, "loading");
|
|
714
|
-
r([
|
|
715
|
-
p
|
|
716
|
-
], n.prototype, "_highlightedOptionIndex");
|
|
717
|
-
r([
|
|
718
|
-
p
|
|
719
|
-
], n.prototype, "_contentArea");
|
|
720
|
-
r([
|
|
721
|
-
p
|
|
722
|
-
], n.prototype, "_numElidedTags");
|
|
723
|
-
r([
|
|
724
|
-
p
|
|
725
|
-
], n.prototype, "_tagRows");
|
|
726
|
-
r([
|
|
727
|
-
p
|
|
728
|
-
], n.prototype, "_lastTagRow");
|
|
729
|
-
r([
|
|
730
|
-
p
|
|
731
|
-
], n.prototype, "_listbox");
|
|
732
|
-
r([
|
|
733
|
-
u({ mode: "boolean" })
|
|
734
|
-
], n.prototype, "clearable");
|
|
735
|
-
r([
|
|
736
|
-
u({ attribute: "max-selected", converter: A })
|
|
737
|
-
], n.prototype, "maxSelected");
|
|
738
|
-
r([
|
|
739
|
-
p
|
|
740
|
-
], n.prototype, "_slottedDisabledOptions");
|
|
741
|
-
r([
|
|
742
|
-
u({ attribute: "enable-select-all", mode: "boolean" })
|
|
743
|
-
], n.prototype, "enableSelectAll");
|
|
744
|
-
r([
|
|
745
|
-
u({ attribute: "select-all-text" })
|
|
746
|
-
], n.prototype, "selectAllText");
|
|
747
|
-
r([
|
|
748
|
-
u({ attribute: "deselect-all-text" })
|
|
749
|
-
], n.prototype, "deselectAllText");
|
|
750
|
-
r([
|
|
751
|
-
p
|
|
752
|
-
], n.prototype, "_selectAllOption");
|
|
753
|
-
r([
|
|
754
|
-
p
|
|
755
|
-
], n.prototype, "_changeDescription");
|
|
756
|
-
r([
|
|
757
|
-
p
|
|
758
|
-
], n.prototype, "_anchor");
|
|
759
|
-
var ue = Object.defineProperty, m = (s, t, e, o) => {
|
|
760
|
-
for (var a = void 0, i = s.length - 1, g; i >= 0; i--)
|
|
761
|
-
(g = s[i]) && (a = g(t, e, a) || a);
|
|
762
|
-
return a && ue(t, e, a), a;
|
|
431
|
+
g([i], q.prototype, "appearance", void 0), g([i], q.prototype, "shape", void 0), g([i({
|
|
432
|
+
mode: "boolean",
|
|
433
|
+
attribute: "fixed-dropdown"
|
|
434
|
+
})], q.prototype, "fixedDropdown", void 0), g([i], q.prototype, "placeholder", void 0), g([i({ mode: "boolean" })], q.prototype, "open", void 0), g([i({ mode: "boolean" })], q.prototype, "multiple", void 0), g([i({
|
|
435
|
+
attribute: "external-tags",
|
|
436
|
+
mode: "boolean"
|
|
437
|
+
})], q.prototype, "externalTags", void 0), g([i({
|
|
438
|
+
attribute: "max-lines",
|
|
439
|
+
converter: c
|
|
440
|
+
})], q.prototype, "maxLines", void 0), g([n], q.prototype, "values", void 0), g([n], q.prototype, "initialValues", void 0), g([n], q.prototype, "_input", void 0), g([n], q.prototype, "_currentSearchText", void 0), g([n], q.prototype, "_slottedOptions", void 0), g([n], q.prototype, "optionFilter", void 0), g([n], q.prototype, "_filteredOptions", void 0), g([n], q.prototype, "_filteredEnabledOptions", void 0), g([i({ mode: "boolean" })], q.prototype, "loading", void 0), g([n], q.prototype, "_highlightedOptionIndex", void 0), g([n], q.prototype, "_contentArea", void 0), g([n], q.prototype, "_numElidedTags", void 0), g([n], q.prototype, "_tagRows", void 0), g([n], q.prototype, "_lastTagRow", void 0), g([n], q.prototype, "_listbox", void 0), g([i({ mode: "boolean" })], q.prototype, "clearable", void 0), g([i({
|
|
441
|
+
attribute: "max-selected",
|
|
442
|
+
converter: c
|
|
443
|
+
})], q.prototype, "maxSelected", void 0), g([n], q.prototype, "_slottedDisabledOptions", void 0), g([i({
|
|
444
|
+
attribute: "enable-select-all",
|
|
445
|
+
mode: "boolean"
|
|
446
|
+
})], q.prototype, "enableSelectAll", void 0), g([i({ attribute: "select-all-text" })], q.prototype, "selectAllText", void 0), g([i({ attribute: "deselect-all-text" })], q.prototype, "deselectAllText", void 0), g([n], q.prototype, "_selectAllOption", void 0), g([n], q.prototype, "_changeDescription", void 0), g([n], q.prototype, "_anchor", void 0);
|
|
447
|
+
//#endregion
|
|
448
|
+
//#region src/lib/searchable-select/option-tag.ts
|
|
449
|
+
var J = class extends e(s) {
|
|
450
|
+
constructor(...e) {
|
|
451
|
+
super(...e), this.removable = !1, this.disabled = !1, this.hasIconPlaceholder = !1;
|
|
452
|
+
}
|
|
453
|
+
_onClickRemove() {
|
|
454
|
+
this.$emit("remove", void 0, { bubbles: !1 });
|
|
455
|
+
}
|
|
763
456
|
};
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
m([
|
|
775
|
-
u
|
|
776
|
-
], b.prototype, "shape");
|
|
777
|
-
m([
|
|
778
|
-
p
|
|
779
|
-
], b.prototype, "connotation");
|
|
780
|
-
m([
|
|
781
|
-
u
|
|
782
|
-
], b.prototype, "label");
|
|
783
|
-
m([
|
|
784
|
-
u({ mode: "boolean" })
|
|
785
|
-
], b.prototype, "removable");
|
|
786
|
-
m([
|
|
787
|
-
u({ mode: "boolean" })
|
|
788
|
-
], b.prototype, "disabled");
|
|
789
|
-
m([
|
|
790
|
-
p
|
|
791
|
-
], b.prototype, "hasIconPlaceholder");
|
|
792
|
-
const ve = (s) => w(
|
|
793
|
-
["disabled", s.disabled],
|
|
794
|
-
[`appearance-${s.appearance}`, !!s.appearance],
|
|
795
|
-
[`shape-${s.shape}`, !!s.shape],
|
|
796
|
-
["error", !!s.errorValidationMessage],
|
|
797
|
-
["success", !!s.successText],
|
|
798
|
-
["has-highlighted-option", s._highlightedOptionIndex !== null]
|
|
799
|
-
);
|
|
800
|
-
function fe() {
|
|
801
|
-
return d`
|
|
802
|
-
<label for="control" class="label" id="label"> ${(s) => s.label} </label>
|
|
457
|
+
g([i], J.prototype, "shape", void 0), g([n], J.prototype, "connotation", void 0), g([i], J.prototype, "label", void 0), g([i({ mode: "boolean" })], J.prototype, "removable", void 0), g([i({ mode: "boolean" })], J.prototype, "disabled", void 0), g([n], J.prototype, "hasIconPlaceholder", void 0);
|
|
458
|
+
//#endregion
|
|
459
|
+
//#region src/lib/searchable-select/searchable-select.template.ts
|
|
460
|
+
var Y = (e) => T(["disabled", e.disabled], [`appearance-${e.appearance}`, !!e.appearance], [`shape-${e.shape}`, !!e.shape], ["error", !!e.errorValidationMessage], ["success", !!e.successText], ["has-highlighted-option", e._highlightedOptionIndex !== null]);
|
|
461
|
+
function X() {
|
|
462
|
+
return r`
|
|
463
|
+
<label for="control" class="label" id="label"> ${(e) => e.label} </label>
|
|
803
464
|
`;
|
|
804
465
|
}
|
|
805
|
-
function
|
|
806
|
-
|
|
466
|
+
function Z() {
|
|
467
|
+
return r`
|
|
807
468
|
<span
|
|
808
469
|
id="selection-count"
|
|
809
470
|
class="selection-count"
|
|
810
|
-
aria-label="${(
|
|
811
|
-
|
|
812
|
-
s.maxSelected
|
|
813
|
-
)}"
|
|
814
|
-
>(${(s) => `${s.values.length}/${s.maxSelected}`})</span
|
|
471
|
+
aria-label="${(e) => e.locale.searchableSelect.maxSelectedMessage(e.values.length, e.maxSelected)}"
|
|
472
|
+
>(${(e) => `${e.values.length}/${e.maxSelected}`})</span
|
|
815
473
|
>
|
|
816
474
|
`;
|
|
817
475
|
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
476
|
+
var Q = (e, t) => {
|
|
477
|
+
let n = e.tagFor(J);
|
|
478
|
+
return r`
|
|
821
479
|
<div class="tag-wrapper">
|
|
822
|
-
<${
|
|
480
|
+
<${n}
|
|
823
481
|
class="tag"
|
|
824
482
|
tabindex="-1"
|
|
825
|
-
data-index="${(
|
|
483
|
+
data-index="${(e, n) => t(n).values.indexOf(e)}"
|
|
826
484
|
removable
|
|
827
|
-
:label="${(
|
|
828
|
-
:shape="${(
|
|
829
|
-
:connotation="${(
|
|
830
|
-
?disabled="${(
|
|
831
|
-
@remove="${(
|
|
832
|
-
@keydown="${(
|
|
485
|
+
:label="${(e, n) => t(n)._tagLabelForValue(e)}"
|
|
486
|
+
:shape="${(e, n) => t(n).shape}"
|
|
487
|
+
:connotation="${(e, n) => t(n)._tagConnotationForValue(e)}"
|
|
488
|
+
?disabled="${(e, n) => t(n)._isTagDisabled(e)}"
|
|
489
|
+
@remove="${(e, n) => t(n)._onTagRemoved(e)}"
|
|
490
|
+
@keydown="${(e, n) => t(n)._onTagKeydown(n.event)}"
|
|
833
491
|
@mousedown="${() => !1}">
|
|
834
|
-
<slot slot="icon" name="${(
|
|
835
|
-
</${
|
|
492
|
+
<slot slot="icon" name="${(e, n) => t(n)._tagIconSlotName(e)}"></slot>
|
|
493
|
+
</${n}>
|
|
836
494
|
</div>
|
|
837
495
|
`;
|
|
838
|
-
},
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
<${
|
|
496
|
+
}, $ = (e, t) => {
|
|
497
|
+
let n = e.tagFor(J);
|
|
498
|
+
return r`
|
|
499
|
+
<${n}
|
|
842
500
|
class="tag"
|
|
843
501
|
tabindex="-1"
|
|
844
|
-
:label="${(
|
|
845
|
-
:shape="${(
|
|
846
|
-
?disabled="${(
|
|
502
|
+
:label="${(e, n) => t(e, n)._numElidedTags.toString()}"
|
|
503
|
+
:shape="${(e, n) => t(e, n).shape}"
|
|
504
|
+
?disabled="${(e, n) => t(e, n).disabled}"
|
|
847
505
|
@mousedown="${() => !1}">
|
|
848
|
-
</${
|
|
506
|
+
</${n}>
|
|
849
507
|
`;
|
|
850
508
|
};
|
|
851
|
-
function
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
(l) => l.parentContext.parent
|
|
855
|
-
), h = C(s, (l, c) => l), f = C(
|
|
856
|
-
s,
|
|
857
|
-
(l, c) => c.parent
|
|
858
|
-
);
|
|
859
|
-
return d`
|
|
509
|
+
function ne(e) {
|
|
510
|
+
let t = e.tagFor(k), n = e.tagFor(E), i = _(e), a = A(e), o = Q(e, (e) => e.parent), s = Q(e, (e) => e.parentContext.parent), c = $(e, (e, t) => e), l = $(e, (e, t) => t.parent);
|
|
511
|
+
return r`
|
|
860
512
|
<div
|
|
861
|
-
class="fieldset ${
|
|
862
|
-
@click="${(
|
|
863
|
-
${
|
|
513
|
+
class="fieldset ${Y}"
|
|
514
|
+
@click="${(e, t) => e._onFieldsetClick(t.event)}"
|
|
515
|
+
${d("_anchor")}
|
|
864
516
|
>
|
|
865
|
-
${(
|
|
866
|
-
<div class="content-area" ${
|
|
867
|
-
${
|
|
868
|
-
(l) => l._tagRows,
|
|
869
|
-
d`
|
|
517
|
+
${(e) => i(e.icon, ee.Slot)}
|
|
518
|
+
<div class="content-area" ${d("_contentArea")}>
|
|
519
|
+
${u((e) => e._tagRows, r`
|
|
870
520
|
<div class="tag-row">
|
|
871
|
-
${
|
|
872
|
-
|
|
873
|
-
f
|
|
874
|
-
)}
|
|
875
|
-
${y((l) => l, g)}
|
|
521
|
+
${f((e, t) => t.isFirst && t.parent._numElidedTags, l)}
|
|
522
|
+
${u((e) => e, s)}
|
|
876
523
|
</div>
|
|
877
|
-
`,
|
|
878
|
-
{ positioning: !0 }
|
|
879
|
-
)}
|
|
524
|
+
`, { positioning: !0 })}
|
|
880
525
|
<div
|
|
881
|
-
class="tag-row ${(
|
|
882
|
-
"contains-only-input",
|
|
883
|
-
l._tagRows.length > 0 && l._lastTagRow.length === 0
|
|
884
|
-
])}"
|
|
526
|
+
class="tag-row ${(e) => T(["contains-only-input", e._tagRows.length > 0 && e._lastTagRow.length === 0])}"
|
|
885
527
|
>
|
|
886
|
-
${
|
|
887
|
-
|
|
888
|
-
h
|
|
889
|
-
)}
|
|
890
|
-
${y((l) => l._lastTagRow, i)}
|
|
528
|
+
${f((e) => e._tagRows.length === 0 && e._numElidedTags, c)}
|
|
529
|
+
${u((e) => e._lastTagRow, o)}
|
|
891
530
|
<input
|
|
892
531
|
id="control"
|
|
893
532
|
class="control"
|
|
894
533
|
autocomplete="off"
|
|
895
534
|
aria-controls="listbox"
|
|
896
|
-
aria-describedby="${(
|
|
897
|
-
${
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
placeholder="${(
|
|
535
|
+
aria-describedby="${(e) => e._feedbackDescribedBy} ${(e) => e.multiple && e.maxSelected && e.maxSelected >= 1 ? "selection-count" : null}"
|
|
536
|
+
${C({
|
|
537
|
+
role: "combobox",
|
|
538
|
+
ariaAutoComplete: "list",
|
|
539
|
+
ariaHasPopup: "listbox",
|
|
540
|
+
ariaExpanded: (e) => e.open
|
|
541
|
+
})}
|
|
542
|
+
placeholder="${(e) => e.multiple && e.values.length ? "" : e.placeholder}"
|
|
904
543
|
type="text"
|
|
905
|
-
?disabled="${(
|
|
906
|
-
:value="${(
|
|
907
|
-
@input="${(
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
@change="${(
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
@focus="${(
|
|
914
|
-
@blur="${(
|
|
915
|
-
@keydown="${(
|
|
916
|
-
${
|
|
544
|
+
?disabled="${(e) => e.disabled}"
|
|
545
|
+
:value="${(e) => e._inputValue}"
|
|
546
|
+
@input="${(e, t) => {
|
|
547
|
+
e._onInputInput(t.event), t.event.stopPropagation();
|
|
548
|
+
}}"
|
|
549
|
+
@change="${(e, t) => {
|
|
550
|
+
t.event.stopPropagation();
|
|
551
|
+
}}"
|
|
552
|
+
@focus="${(e, t) => e._onInputFocus(t.event)}"
|
|
553
|
+
@blur="${(e, t) => e._onInputBlur(t.event)}"
|
|
554
|
+
@keydown="${(e, t) => e._onInputKeydown(t.event)}"
|
|
555
|
+
${d("_input")}
|
|
917
556
|
/>
|
|
918
557
|
</div>
|
|
919
558
|
</div>
|
|
920
559
|
<slot name="meta"></slot>
|
|
921
|
-
${
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
aria-label="${(l) => l.locale.searchableSelect.clearButtonLabel}"
|
|
925
|
-
@click="${(l) => l._onClearButtonClick()}"
|
|
560
|
+
${f((e) => e._shouldShowClearButton, r`<${t}
|
|
561
|
+
aria-label="${(e) => e.locale.searchableSelect.clearButtonLabel}"
|
|
562
|
+
@click="${(e) => e._onClearButtonClick()}"
|
|
926
563
|
@mousedown="${() => !1}"
|
|
927
|
-
?disabled="${(
|
|
928
|
-
:shape="${(
|
|
564
|
+
?disabled="${(e) => e.disabled}"
|
|
565
|
+
:shape="${(e) => e.shape}"
|
|
929
566
|
size="super-condensed"
|
|
930
567
|
icon="close-line"
|
|
931
568
|
appearance="ghost-light"
|
|
932
569
|
tabindex="0"
|
|
933
|
-
></${t}>`
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
${
|
|
937
|
-
(l) => l.loading,
|
|
938
|
-
d`<${e} indeterminate size="-6" aria-hidden="true"></${e}>`
|
|
939
|
-
)}
|
|
940
|
-
${v((l) => !l.loading, a)}
|
|
570
|
+
></${t}>`)}
|
|
571
|
+
<div @mousedown="${() => !1}" @click="${(e) => e._onChevronClick()}">
|
|
572
|
+
${f((e) => e.loading, r`<${n} indeterminate size="-6" aria-hidden="true"></${n}>`)}
|
|
573
|
+
${f((e) => !e.loading, a)}
|
|
941
574
|
</div>
|
|
942
575
|
</div>
|
|
943
576
|
`;
|
|
944
577
|
}
|
|
945
|
-
function
|
|
946
|
-
|
|
947
|
-
s.getBoundingClientRect().width
|
|
948
|
-
)}px` : null;
|
|
578
|
+
function re(e) {
|
|
579
|
+
return e.open && e.fixedDropdown ? `--_searchable-select-fixed-width: ${Math.round(e.getBoundingClientRect().width)}px` : null;
|
|
949
580
|
}
|
|
950
|
-
function
|
|
951
|
-
|
|
952
|
-
|
|
581
|
+
function ie(e) {
|
|
582
|
+
let t = e.tagFor(R), n = e.tagFor(B);
|
|
583
|
+
return r`
|
|
953
584
|
<${t}
|
|
954
585
|
data-select-all
|
|
955
586
|
tabindex="-1"
|
|
956
|
-
:text="${(
|
|
957
|
-
:selected="${(
|
|
587
|
+
:text="${(e) => e._selectAllLabel}"
|
|
588
|
+
:selected="${(e) => e._isAllSelected}"
|
|
958
589
|
:_displayCheckmark="${() => !0}"
|
|
959
|
-
?disabled="${(
|
|
960
|
-
${
|
|
590
|
+
?disabled="${(e) => e._selectableOptions.length === 0}"
|
|
591
|
+
${d("_selectAllOption")}>
|
|
961
592
|
</${t}>
|
|
962
|
-
<${
|
|
593
|
+
<${n} class="divider"></${n}>
|
|
963
594
|
`;
|
|
964
595
|
}
|
|
965
|
-
function
|
|
966
|
-
|
|
967
|
-
|
|
596
|
+
function ae(e) {
|
|
597
|
+
let t = e.tagFor(M);
|
|
598
|
+
return r`
|
|
968
599
|
<div class="label-wrapper" ?hidden=${(e) => !e.label && !e._hasContextualHelp && !e._hasSelectionCount}>
|
|
969
|
-
${
|
|
970
|
-
(e) => e.label || e._hasSelectionCount,
|
|
971
|
-
d`
|
|
600
|
+
${f((e) => e.label || e._hasSelectionCount, r`
|
|
972
601
|
<div>
|
|
973
|
-
${
|
|
974
|
-
${
|
|
602
|
+
${f((e) => e.label, X())}
|
|
603
|
+
${f((e) => e._hasSelectionCount, Z())}
|
|
975
604
|
</div>
|
|
976
|
-
`
|
|
977
|
-
|
|
978
|
-
<slot name="contextual-help" ${T("_contextualHelpSlottedContent")}></slot>
|
|
605
|
+
`)}
|
|
606
|
+
<slot name="contextual-help" ${p("_contextualHelpSlottedContent")}></slot>
|
|
979
607
|
</div>
|
|
980
608
|
<span aria-live="assertive" aria-relevant="text" class="visually-hidden">
|
|
981
609
|
${(e) => e._changeDescription}
|
|
982
610
|
</span>
|
|
983
611
|
<div>
|
|
984
|
-
${
|
|
612
|
+
${ne(e)}
|
|
985
613
|
<div class="popup-wrapper">
|
|
986
614
|
<${t}
|
|
987
615
|
:anchor="${(e) => e._anchor}"
|
|
988
616
|
:open="${(e) => e.open}"
|
|
989
617
|
class="popup"
|
|
990
618
|
placement="bottom-start"
|
|
991
|
-
style="${
|
|
619
|
+
style="${re}"
|
|
992
620
|
strategy="${(e) => e.fixedDropdown ? "fixed" : "absolute"}">
|
|
993
621
|
<div
|
|
994
622
|
class="listbox"
|
|
995
623
|
role="listbox"
|
|
996
624
|
aria-multiselectable="${(e) => e.multiple}"
|
|
997
625
|
aria-required="${(e) => e.required}"
|
|
998
|
-
${
|
|
999
|
-
@click="${(e,
|
|
626
|
+
${d("_listbox")}
|
|
627
|
+
@click="${(e, t) => e._onListboxClick(t.event)}"
|
|
1000
628
|
@mousedown="${() => !1}"
|
|
1001
629
|
>
|
|
1002
|
-
${
|
|
1003
|
-
(e) => e.enableSelectAll && e.multiple && !e.maxSelected,
|
|
1004
|
-
me(s)
|
|
1005
|
-
)}
|
|
630
|
+
${f((e) => e.enableSelectAll && e.multiple && !e.maxSelected, ie(e))}
|
|
1006
631
|
<slot
|
|
1007
|
-
${
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
632
|
+
${p({
|
|
633
|
+
filter: L,
|
|
634
|
+
flatten: !0,
|
|
635
|
+
property: "_slottedOptions"
|
|
636
|
+
})}>
|
|
1012
637
|
</slot>
|
|
1013
|
-
${
|
|
1014
|
-
|
|
1015
|
-
d`<div class="empty-message">
|
|
1016
|
-
${v(
|
|
1017
|
-
(e) => e.loading,
|
|
1018
|
-
d`<slot name="loading-options">
|
|
638
|
+
${f((e) => e._filteredOptions.length === 0, r`<div class="empty-message">
|
|
639
|
+
${f((e) => e.loading, r`<slot name="loading-options">
|
|
1019
640
|
${(e) => e.locale.searchableSelect.loadingOptionsMessage}
|
|
1020
|
-
</slot>`
|
|
1021
|
-
|
|
1022
|
-
${v(
|
|
1023
|
-
(e) => !e.loading && e.searchText === "",
|
|
1024
|
-
d`<slot name="no-options">
|
|
641
|
+
</slot>`)}
|
|
642
|
+
${f((e) => !e.loading && e.searchText === "", r`<slot name="no-options">
|
|
1025
643
|
${(e) => e.locale.searchableSelect.noOptionsMessage}
|
|
1026
|
-
</slot>`
|
|
1027
|
-
|
|
1028
|
-
${v(
|
|
1029
|
-
(e) => !e.loading && e.searchText !== "",
|
|
1030
|
-
d`<slot name="no-matches">
|
|
644
|
+
</slot>`)}
|
|
645
|
+
${f((e) => !e.loading && e.searchText !== "", r`<slot name="no-matches">
|
|
1031
646
|
${(e) => e.locale.searchableSelect.noMatchesMessage}
|
|
1032
|
-
</slot>`
|
|
1033
|
-
|
|
1034
|
-
</div>`
|
|
1035
|
-
)}
|
|
647
|
+
</slot>`)}
|
|
648
|
+
</div>`)}
|
|
1036
649
|
</div>
|
|
1037
650
|
</${t}>
|
|
1038
651
|
</div>
|
|
1039
652
|
</div>
|
|
1040
653
|
`;
|
|
1041
654
|
}
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
655
|
+
var oe = (e) => {
|
|
656
|
+
let t = e.tagFor(J, !0);
|
|
657
|
+
return r`
|
|
1045
658
|
<template
|
|
1046
659
|
:_optionTagTagName="${() => t}"
|
|
1047
|
-
@mousedown="${(e,
|
|
660
|
+
@mousedown="${(e, t) => e._onMouseDown(t.event)}"
|
|
1048
661
|
>
|
|
1049
662
|
<div class="control-wrapper">
|
|
1050
|
-
${
|
|
663
|
+
${ae(e)} ${(t) => t._getFeedbackTemplate(e)}
|
|
1051
664
|
</div>
|
|
1052
665
|
</template>
|
|
1053
666
|
`;
|
|
1054
|
-
},
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
["removable", o],
|
|
1058
|
-
[`shape-${s}`, !!s],
|
|
1059
|
-
[`connotation-${t}`, !!t]
|
|
1060
|
-
);
|
|
1061
|
-
function $e(s) {
|
|
1062
|
-
return d`
|
|
667
|
+
}, se = ({ shape: e, connotation: t, disabled: n, removable: r }) => T("base", ["disabled", n], ["removable", r], [`shape-${e}`, !!e], [`connotation-${t}`, !!t]);
|
|
668
|
+
function ce(e) {
|
|
669
|
+
return r`
|
|
1063
670
|
<span
|
|
1064
671
|
class="remove-button"
|
|
1065
|
-
aria-label="${(
|
|
672
|
+
aria-label="${(e) => e.locale.searchableSelect.removeTagButtonLabel(e.label)}"
|
|
1066
673
|
role="button"
|
|
1067
|
-
tabindex="${(
|
|
1068
|
-
@click="${(
|
|
674
|
+
tabindex="${(e) => e.disabled ? null : 0}"
|
|
675
|
+
@click="${(e) => e._onClickRemove()}"
|
|
1069
676
|
>
|
|
1070
|
-
<${
|
|
677
|
+
<${e} name="close-line"></${e}>
|
|
1071
678
|
</span>
|
|
1072
679
|
`;
|
|
1073
680
|
}
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region src/lib/searchable-select/index.ts
|
|
683
|
+
o(a("searchable-select", q, oe, [
|
|
684
|
+
j,
|
|
685
|
+
N,
|
|
686
|
+
h,
|
|
687
|
+
a("option-tag", J, (e) => {
|
|
688
|
+
let t = e.tagFor(m);
|
|
689
|
+
return r`<span class="${se}" aria-disabled="${(e) => e.disabled}">
|
|
1077
690
|
<slot name="icon" aria-hidden="true">
|
|
1078
|
-
${
|
|
1079
|
-
(e) => e.hasIconPlaceholder,
|
|
1080
|
-
d`<div class="icon-placeholder"></div>`
|
|
1081
|
-
)}
|
|
691
|
+
${f((e) => e.hasIconPlaceholder, r`<div class="icon-placeholder"></div>`)}
|
|
1082
692
|
</slot>
|
|
1083
|
-
${
|
|
1084
|
-
|
|
1085
|
-
(e) => d`<span class="label">${e.label}</span>`
|
|
1086
|
-
)}
|
|
1087
|
-
${v((e) => e.removable, $e(t))}
|
|
693
|
+
${f((e) => e.label, (e) => r`<span class="label">${e.label}</span>`)}
|
|
694
|
+
${f((e) => e.removable, ce(t))}
|
|
1088
695
|
</span>`;
|
|
1089
|
-
},
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
}
|
|
1100
|
-
), Se = D(
|
|
1101
|
-
"searchable-select",
|
|
1102
|
-
n,
|
|
1103
|
-
ye,
|
|
1104
|
-
[
|
|
1105
|
-
E,
|
|
1106
|
-
P,
|
|
1107
|
-
I,
|
|
1108
|
-
Te,
|
|
1109
|
-
K,
|
|
1110
|
-
G,
|
|
1111
|
-
N,
|
|
1112
|
-
J
|
|
1113
|
-
],
|
|
1114
|
-
{
|
|
1115
|
-
styles: re
|
|
1116
|
-
}
|
|
1117
|
-
), ke = U(
|
|
1118
|
-
Se
|
|
1119
|
-
);
|
|
1120
|
-
ke();
|
|
696
|
+
}, [h], {
|
|
697
|
+
styles: [H],
|
|
698
|
+
shadowOptions: { delegatesFocus: !0 }
|
|
699
|
+
}),
|
|
700
|
+
D,
|
|
701
|
+
P,
|
|
702
|
+
te,
|
|
703
|
+
z
|
|
704
|
+
], { styles: V }))();
|
|
705
|
+
//#endregion
|