@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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`./vivid-element.cjs`),t=require(`./attribute-binding-behaviour.cjs`);var n=class{constructor(e,t){this.target=null,this.bindingBehaviours=[],this.onSourceAriaPropertyChanged=(e,t)=>{!this.forwardedProperties.has(t)||t in this.boundProperties||this.forwardPropertyToTarget(this.target,t,e[t])},this.target=e,this.boundProperties=t.boundProperties,this.forwardedProperties=t.forwardedProperties}bind(e){let t=e.source;this.bindPropertiesToTarget(t,this.boundProperties,this.target),this.startForwardingPropertiesToTarget(t,this.forwardedProperties,this.target)}bindPropertiesToTarget(n,r,i){for(let[n,a]of Object.entries(r)){let r=a instanceof Function?a:()=>a;this.bindingBehaviours.push(new t.t(i,e.x(r),e.w.isVolatileBinding(r),e.r(n)))}for(let e of this.bindingBehaviours)e.bind({source:n,context:n.$fastController.context})}startForwardingPropertiesToTarget(t,n,r){for(let e of n)e in this.boundProperties||this.forwardPropertyToTarget(r,e,t[e]);e.a(t,this.onSourceAriaPropertyChanged)}forwardPropertyToTarget(t,n,r){r==null||r===!1?t.removeAttribute(e.r(n)):t.setAttribute(e.r(n),String(r))}},r=class extends e.h{constructor(e,t){super(`vvd-delegate-aria`),this.boundProperties=e,this.forwardedProperties=t,this.targetNodeId=``}bind(e){let t=e.targets[this.targetNodeId];new n(t,{boundProperties:this.boundProperties,forwardedProperties:this.forwardedProperties}).bind(e)}};e.m.define(r);function i(t={},n={}){return new r(t,new Set((n.onlySpecified?[]:e.i).filter(e=>!(e in t))))}var a=e=>{class t extends e{constructor(...e){super(...e),this._vividAriaBehaviour=`delegate`}}return t};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -1,90 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
i in this.boundProperties || this.forwardPropertyToTarget(t, i, e[i]);
|
|
45
|
-
c(
|
|
46
|
-
e,
|
|
47
|
-
this.onSourceAriaPropertyChanged
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
forwardPropertyToTarget(e, r, t) {
|
|
51
|
-
t == null || t === !1 ? e.removeAttribute(a(r)) : e.setAttribute(a(r), String(t));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
class d extends f {
|
|
55
|
-
constructor(e, r) {
|
|
56
|
-
super("vvd-delegate-aria"), this.boundProperties = e, this.forwardedProperties = r, this.targetNodeId = "";
|
|
57
|
-
}
|
|
58
|
-
bind(e) {
|
|
59
|
-
const r = e.targets[this.targetNodeId];
|
|
60
|
-
new P(
|
|
61
|
-
r,
|
|
62
|
-
// Pass the target element as target
|
|
63
|
-
{
|
|
64
|
-
boundProperties: this.boundProperties,
|
|
65
|
-
forwardedProperties: this.forwardedProperties
|
|
66
|
-
}
|
|
67
|
-
).bind(e);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
p.define(d);
|
|
71
|
-
function v(s = {}, e = {}) {
|
|
72
|
-
const r = new Set(
|
|
73
|
-
(e.onlySpecified ? [] : u).filter(
|
|
74
|
-
(t) => !(t in s)
|
|
75
|
-
)
|
|
76
|
-
);
|
|
77
|
-
return new d(s, r);
|
|
78
|
-
}
|
|
79
|
-
const A = (s) => {
|
|
80
|
-
class e extends s {
|
|
81
|
-
constructor() {
|
|
82
|
-
super(...arguments), this._vividAriaBehaviour = "delegate";
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return e;
|
|
1
|
+
import { a as e, h as t, i as n, m as r, r as i, w as a, x as o } from "./vivid-element.js";
|
|
2
|
+
import { t as s } from "./attribute-binding-behaviour.js";
|
|
3
|
+
//#region src/shared/aria/delegate-aria-behavior.ts
|
|
4
|
+
var c = class {
|
|
5
|
+
constructor(e, t) {
|
|
6
|
+
this.target = null, this.bindingBehaviours = [], this.onSourceAriaPropertyChanged = (e, t) => {
|
|
7
|
+
!this.forwardedProperties.has(t) || t in this.boundProperties || this.forwardPropertyToTarget(this.target, t, e[t]);
|
|
8
|
+
}, this.target = e, this.boundProperties = t.boundProperties, this.forwardedProperties = t.forwardedProperties;
|
|
9
|
+
}
|
|
10
|
+
bind(e) {
|
|
11
|
+
let t = e.source;
|
|
12
|
+
this.bindPropertiesToTarget(t, this.boundProperties, this.target), this.startForwardingPropertiesToTarget(t, this.forwardedProperties, this.target);
|
|
13
|
+
}
|
|
14
|
+
bindPropertiesToTarget(e, t, n) {
|
|
15
|
+
for (let [e, r] of Object.entries(t)) {
|
|
16
|
+
let t = r instanceof Function ? r : () => r;
|
|
17
|
+
this.bindingBehaviours.push(new s(n, o(t), a.isVolatileBinding(t), i(e)));
|
|
18
|
+
}
|
|
19
|
+
for (let t of this.bindingBehaviours) t.bind({
|
|
20
|
+
source: e,
|
|
21
|
+
context: e.$fastController.context
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
startForwardingPropertiesToTarget(t, n, r) {
|
|
25
|
+
for (let e of n)
|
|
26
|
+
/* v8 ignore else -- @preserve */
|
|
27
|
+
e in this.boundProperties || this.forwardPropertyToTarget(r, e, t[e]);
|
|
28
|
+
e(t, this.onSourceAriaPropertyChanged);
|
|
29
|
+
}
|
|
30
|
+
forwardPropertyToTarget(e, t, n) {
|
|
31
|
+
n == null || n === !1 ? e.removeAttribute(i(t)) : e.setAttribute(i(t), String(n));
|
|
32
|
+
}
|
|
33
|
+
}, l = class extends t {
|
|
34
|
+
constructor(e, t) {
|
|
35
|
+
super("vvd-delegate-aria"), this.boundProperties = e, this.forwardedProperties = t, this.targetNodeId = "";
|
|
36
|
+
}
|
|
37
|
+
bind(e) {
|
|
38
|
+
let t = e.targets[this.targetNodeId];
|
|
39
|
+
new c(t, {
|
|
40
|
+
boundProperties: this.boundProperties,
|
|
41
|
+
forwardedProperties: this.forwardedProperties
|
|
42
|
+
}).bind(e);
|
|
43
|
+
}
|
|
86
44
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
45
|
+
r.define(l);
|
|
46
|
+
function u(e = {}, t = {}) {
|
|
47
|
+
return new l(e, new Set((t.onlySpecified ? [] : n).filter((t) => !(t in e))));
|
|
48
|
+
}
|
|
49
|
+
var d = (e) => {
|
|
50
|
+
class t extends e {
|
|
51
|
+
constructor(...e) {
|
|
52
|
+
super(...e), this._vividAriaBehaviour = "delegate";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return t;
|
|
90
56
|
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { u as n, d as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e.key===`Escape`?(e.stopPropagation(),!0):!1}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
package/bundled/divider.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`./vivid-element.cjs`),t=require(`./enums.cjs`),n=require(`./decorate.cjs`),r=require(`./aria.cjs`),i=require(`./host-semantics.cjs`);var a={separator:`separator`,presentation:`presentation`},o=class extends i.t(e.t){constructor(...e){super(...e),this.role=a.separator,this.orientation=r.t.horizontal,this.appearance=t.t.Ghost}};n.t([e.l],o.prototype,`orientation`,void 0),n.t([e.l],o.prototype,`appearance`,void 0),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
package/bundled/divider.js
CHANGED
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
separator: "separator",
|
|
15
|
-
/**
|
|
16
|
-
* The divider has no semantic value and is for visual presentation only.
|
|
17
|
-
*/
|
|
18
|
-
presentation: "presentation"
|
|
19
|
-
};
|
|
20
|
-
class p extends c(f) {
|
|
21
|
-
constructor() {
|
|
22
|
-
super(...arguments), this.role = d.separator, this.orientation = l.horizontal, this.appearance = m.Ghost;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
n([
|
|
26
|
-
i
|
|
27
|
-
], p.prototype, "orientation");
|
|
28
|
-
n([
|
|
29
|
-
i
|
|
30
|
-
], p.prototype, "appearance");
|
|
31
|
-
export {
|
|
32
|
-
p as D,
|
|
33
|
-
d as a
|
|
1
|
+
import { l as e, t } from "./vivid-element.js";
|
|
2
|
+
import { t as n } from "./enums.js";
|
|
3
|
+
import { t as r } from "./decorate.js";
|
|
4
|
+
import { t as i } from "./aria.js";
|
|
5
|
+
import { t as a } from "./host-semantics.js";
|
|
6
|
+
//#region src/lib/divider/divider.ts
|
|
7
|
+
var o = {
|
|
8
|
+
separator: "separator",
|
|
9
|
+
presentation: "presentation"
|
|
10
|
+
}, s = class extends a(t) {
|
|
11
|
+
constructor(...e) {
|
|
12
|
+
super(...e), this.role = o.separator, this.orientation = i.horizontal, this.appearance = n.Ghost;
|
|
13
|
+
}
|
|
34
14
|
};
|
|
15
|
+
r([e], s.prototype, "orientation", void 0), r([e], s.prototype, "appearance", void 0);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { o as n, s as t };
|
package/bundled/dom.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function e(...e){return e.every(e=>e instanceof HTMLElement)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
package/bundled/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-web-utilities@6.0.0/node_modules/@microsoft/fast-web-utilities/dist/dom.js
|
|
2
|
+
function e(...e) {
|
|
3
|
+
return e.every((e) => e instanceof HTMLElement);
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as t };
|
package/bundled/enums.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=function(e){return e.Accent=`accent`,e.CTA=`cta`,e.Success=`success`,e.Alert=`alert`,e.Warning=`warning`,e.Information=`information`,e.Announcement=`announcement`,e}({}),t=function(e){return e.Rounded=`rounded`,e.Pill=`pill`,e.Circled=`circled`,e.Sharp=`sharp`,e}({}),n=function(e){return e.Filled=`filled`,e.Outlined=`outlined`,e.Duotone=`duotone`,e.Fieldset=`fieldset`,e.Subtle=`subtle`,e.SubtleLight=`subtle-light`,e.Ghost=`ghost`,e.GhostLight=`ghost-light`,e.OutlinedLight=`outlined-light`,e.Listitem=`listitem`,e.Elevated=`elevated`,e}({}),r=function(e){return e.UltraCondensed=`ultra-condensed`,e.SuperCondensed=`super-condensed`,e.ExtraCondensed=`extra-condensed`,e.SemiCondensed=`semi-condensed`,e.Condensed=`condensed`,e.Normal=`normal`,e.SemiExpanded=`semi-expanded`,e.Expanded=`expanded`,e.ExtraExpanded=`extra-expanded`,e.SuperExpanded=`super-expanded`,e.UltraExpanded=`ultra-expanded`,e}({}),i=function(e){return e.Zero=`0`,e.Five=`5`,e.Ten=`10`,e.Thirty=`30`,e}({}),a=function(e){return e.None=`none`,e.Header=`header`,e.Column=`column`,e.All=`all`,e}({});Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
package/bundled/enums.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
//#region src/lib/enums.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Accent = "accent", e.CTA = "cta", e.Success = "success", e.Alert = "alert", e.Warning = "warning", e.Information = "information", e.Announcement = "announcement", e;
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.Rounded = "rounded", e.Pill = "pill", e.Circled = "circled", e.Sharp = "sharp", e;
|
|
6
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.Filled = "filled", e.Outlined = "outlined", e.Duotone = "duotone", e.Fieldset = "fieldset", e.Subtle = "subtle", e.SubtleLight = "subtle-light", e.Ghost = "ghost", e.GhostLight = "ghost-light", e.OutlinedLight = "outlined-light", e.Listitem = "listitem", e.Elevated = "elevated", e;
|
|
8
|
+
}({}), r = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.UltraCondensed = "ultra-condensed", e.SuperCondensed = "super-condensed", e.ExtraCondensed = "extra-condensed", e.SemiCondensed = "semi-condensed", e.Condensed = "condensed", e.Normal = "normal", e.SemiExpanded = "semi-expanded", e.Expanded = "expanded", e.ExtraExpanded = "extra-expanded", e.SuperExpanded = "super-expanded", e.UltraExpanded = "ultra-expanded", e;
|
|
10
|
+
}({}), i = /* @__PURE__ */ function(e) {
|
|
11
|
+
return e.Zero = "0", e.Five = "5", e.Ten = "10", e.Thirty = "30", e;
|
|
12
|
+
}({}), a = /* @__PURE__ */ function(e) {
|
|
13
|
+
return e.None = "none", e.Header = "header", e.Column = "column", e.All = "all", e;
|
|
14
|
+
}({});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as a, t as i, e as n, a as o, i as r, n as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const Ft=["top","right","bottom","left"],bt=["start","end"],Rt=Ft.reduce((t,e)=>t.concat(e,e+"-"+bt[0],e+"-"+bt[1]),[]),H=Math.min,L=Math.max,it=Math.round,ot=Math.floor,I=t=>({x:t,y:t}),Yt={left:"right",right:"left",bottom:"top",top:"bottom"};function mt(t,e,n){return L(t,H(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function $(t){return t.split("-")[0]}function N(t){return t.split("-")[1]}function Mt(t){return t==="x"?"y":"x"}function gt(t){return t==="y"?"height":"width"}function z(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function pt(t){return Mt(z(t))}function Bt(t,e,n){n===void 0&&(n=!1);const o=N(t),i=pt(t),r=gt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=st(s)),[s,st(s)]}function jt(t){const e=st(t);return[rt(t),e,rt(e)]}function rt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Ot=["left","right"],At=["right","left"],Ut=["top","bottom"],qt=["bottom","top"];function Kt(t,e,n){switch(t){case"top":case"bottom":return n?e?At:Ot:e?Ot:At;case"left":case"right":return e?Ut:qt;default:return[]}}function Gt(t,e,n,o){const i=N(t);let r=Kt($(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(rt)))),r}function st(t){const e=$(t);return Yt[e]+t.slice(e.length)}function Jt(t){return{top:0,right:0,bottom:0,left:0,...t}}function wt(t){return typeof t!="number"?Jt(t):{top:t,right:t,bottom:t,left:t}}function Q(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Ct(t,e,n){let{reference:o,floating:i}=t;const r=z(e),s=pt(e),c=gt(s),f=$(e),d=r==="y",u=o.x+o.width/2-i.width/2,l=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let a;switch(f){case"top":a={x:u,y:o.y-i.height};break;case"bottom":a={x:u,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:l};break;case"left":a={x:o.x-i.width,y:l};break;default:a={x:o.x,y:o.y}}switch(N(e)){case"start":a[s]-=m*(n&&d?-1:1);break;case"end":a[s]+=m*(n&&d?-1:1);break}return a}async function Qt(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:f}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:l="floating",altBoundary:m=!1,padding:a=0}=Y(e,t),h=wt(a),w=c[m?l==="floating"?"reference":"floating":l],p=Q(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:f})),x=l==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},O=Q(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:y,strategy:f}):x);return{top:(p.top-O.top+h.top)/b.y,bottom:(O.bottom-p.bottom+h.bottom)/b.y,left:(p.left-O.left+h.left)/b.x,right:(O.right-p.right+h.right)/b.x}}const Zt=50,te=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:Qt},f=await(s.isRTL==null?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:l}=Ct(d,o,f),m=o,a=0;const h={};for(let g=0;g<r.length;g++){const w=r[g];if(!w)continue;const{name:p,fn:x}=w,{x:y,y:b,data:O,reset:R}=await x({x:u,y:l,initialPlacement:o,placement:m,strategy:i,middlewareData:h,rects:d,platform:c,elements:{reference:t,floating:e}});u=y??u,l=b??l,h[p]={...h[p],...O},R&&a<Zt&&(a++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(d=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):R.rects),{x:u,y:l}=Ct(d,m,f)),g=-1)}return{x:u,y:l,placement:m,strategy:i,middlewareData:h}},ee=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:f}=e,{element:d,padding:u=0}=Y(t,e)||{};if(d==null)return{};const l=wt(u),m={x:n,y:o},a=pt(i),h=gt(a),g=await s.getDimensions(d),w=a==="y",p=w?"top":"left",x=w?"bottom":"right",y=w?"clientHeight":"clientWidth",b=r.reference[h]+r.reference[a]-m[a]-r.floating[h],O=m[a]-r.reference[a],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let A=R?R[y]:0;(!A||!await(s.isElement==null?void 0:s.isElement(R)))&&(A=c.floating[y]||r.floating[h]);const B=b/2-O/2,P=A/2-g[h]/2-1,v=H(l[p],P),C=H(l[x],P),T=v,E=A-g[h]-C,S=A/2-g[h]/2+B,k=mt(T,S,E),W=!f.arrow&&N(i)!=null&&S!==k&&r.reference[h]/2-(S<T?v:C)-g[h]/2<0,D=W?S<T?S-T:S-E:0;return{[a]:m[a]+D,data:{[a]:k,centerOffset:S-k-D,...W&&{alignmentOffset:D}},reset:W}}});function ne(t,e,n){return(t?[...n.filter(i=>N(i)===t),...n.filter(i=>N(i)!==t)]:n.filter(i=>$(i)===i)).filter(i=>t?N(i)===t||(e?rt(i)!==i:!1):!0)}const oe=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;const{rects:r,middlewareData:s,placement:c,platform:f,elements:d}=e,{crossAxis:u=!1,alignment:l,allowedPlacements:m=Rt,autoAlignment:a=!0,...h}=Y(t,e),g=l!==void 0||m===Rt?ne(l||null,a,m):m,w=await f.detectOverflow(e,h),p=((n=s.autoPlacement)==null?void 0:n.index)||0,x=g[p];if(x==null)return{};const y=Bt(x,r,await(f.isRTL==null?void 0:f.isRTL(d.floating)));if(c!==x)return{reset:{placement:g[0]}};const b=[w[$(x)],w[y[0]],w[y[1]]],O=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:x,overflows:b}],R=g[p+1];if(R)return{data:{index:p+1,overflows:O},reset:{placement:R}};const A=O.map(v=>{const C=N(v.placement);return[v.placement,C&&u?v.overflows.slice(0,2).reduce((T,E)=>T+E,0):v.overflows[0],v.overflows]}).sort((v,C)=>v[1]-C[1]),P=((i=A.filter(v=>v[2].slice(0,N(v[0])?2:3).every(C=>C<=0))[0])==null?void 0:i[0])||A[0][0];return P!==c?{data:{index:p+1,overflows:O},reset:{placement:P}}:{}}}},ie=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:f,elements:d}=e,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...w}=Y(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=$(i),x=z(c),y=$(c)===c,b=await(f.isRTL==null?void 0:f.isRTL(d.floating)),O=m||(y||!g?[st(c)]:jt(c)),R=h!=="none";!m&&R&&O.push(...Gt(c,g,h,b));const A=[c,...O],B=await f.detectOverflow(e,w),P=[];let v=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&P.push(B[p]),l){const S=Bt(i,s,b);P.push(B[S[0]],B[S[1]])}if(v=[...v,{placement:i,overflows:P}],!P.every(S=>S<=0)){var C,T;const S=(((C=r.flip)==null?void 0:C.index)||0)+1,k=A[S];if(k&&(!(l==="alignment"?x!==z(k):!1)||v.every(F=>z(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:S,overflows:v},reset:{placement:k}};let W=(T=v.filter(D=>D.overflows[0]<=0).sort((D,F)=>D.overflows[1]-F.overflows[1])[0])==null?void 0:T.placement;if(!W)switch(a){case"bestFit":{var E;const D=(E=v.filter(F=>{if(R){const U=z(F.placement);return U===x||U==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,Xt)=>U+Xt,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:E[0];D&&(W=D);break}case"initialPlacement":W=c;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function St(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Lt(t){return Ft.some(e=>t[e]>=0)}const re=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:i="referenceHidden",...r}=Y(t,e);switch(i){case"referenceHidden":{const s=await o.detectOverflow(e,{...r,elementContext:"reference"}),c=St(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Lt(c)}}}case"escaped":{const s=await o.detectOverflow(e,{...r,altBoundary:!0}),c=St(s,n.floating);return{data:{escapedOffsets:c,escaped:Lt(c)}}}default:return{}}}}};function Wt(t){const e=H(...t.map(r=>r.left)),n=H(...t.map(r=>r.top)),o=L(...t.map(r=>r.right)),i=L(...t.map(r=>r.bottom));return{x:e,y:n,width:o-e,height:i-n}}function se(t){const e=t.slice().sort((i,r)=>i.y-r.y),n=[];let o=null;for(let i=0;i<e.length;i++){const r=e[i];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map(i=>Q(Wt(i)))}const ce=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:i,platform:r,strategy:s}=e,{padding:c=2,x:f,y:d}=Y(t,e),u=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(o.reference))||[]),l=se(u),m=Q(Wt(u)),a=wt(c);function h(){if(l.length===2&&l[0].left>l[1].right&&f!=null&&d!=null)return l.find(w=>f>w.left-a.left&&f<w.right+a.right&&d>w.top-a.top&&d<w.bottom+a.bottom)||m;if(l.length>=2){if(z(n)==="y"){const v=l[0],C=l[l.length-1],T=$(n)==="top",E=v.top,S=C.bottom,k=T?v.left:C.left,W=T?v.right:C.right,D=W-k,F=S-E;return{top:E,bottom:S,left:k,right:W,width:D,height:F,x:k,y:E}}const w=$(n)==="left",p=L(...l.map(v=>v.right)),x=H(...l.map(v=>v.left)),y=l.filter(v=>w?v.left===x:v.right===p),b=y[0].top,O=y[y.length-1].bottom,R=x,A=p,B=A-R,P=O-b;return{top:b,bottom:O,left:R,right:A,width:B,height:P,x:R,y:b}}return m}const g=await r.getElementRects({reference:{getBoundingClientRect:h},floating:o.floating,strategy:s});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},le=new Set(["left","top"]);async function fe(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=$(n),c=N(n),f=z(n)==="y",d=le.has(s)?-1:1,u=r&&f?-1:1,l=Y(e,t);let{mainAxis:m,crossAxis:a,alignmentAxis:h}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof h=="number"&&(a=c==="end"?h*-1:h),f?{x:a*u,y:m*d}:{x:m*d,y:a*u}}const ae=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,f=await fe(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+f.x,y:r+f.y,data:{...f,placement:s}}}}},ue=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:r}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:p=>{let{x,y}=p;return{x,y}}},...d}=Y(t,e),u={x:n,y:o},l=await r.detectOverflow(e,d),m=z($(i)),a=Mt(m);let h=u[a],g=u[m];if(s){const p=a==="y"?"top":"left",x=a==="y"?"bottom":"right",y=h+l[p],b=h-l[x];h=mt(y,h,b)}if(c){const p=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=g+l[p],b=g-l[x];g=mt(y,g,b)}const w=f.fn({...e,[a]:h,[m]:g});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[a]:s,[m]:c}}}}}},de=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:f=()=>{},...d}=Y(t,e),u=await s.detectOverflow(e,d),l=$(i),m=N(i),a=z(i)==="y",{width:h,height:g}=r.floating;let w,p;l==="top"||l==="bottom"?(w=l,p=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(p=l,w=m==="end"?"top":"bottom");const x=g-u.top-u.bottom,y=h-u.left-u.right,b=H(g-u[w],x),O=H(h-u[p],y),R=!e.middlewareData.shift;let A=b,B=O;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(B=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(A=x),R&&!m){const v=L(u.left,0),C=L(u.right,0),T=L(u.top,0),E=L(u.bottom,0);a?B=h-2*(v!==0||C!==0?v+C:L(u.left,u.right)):A=g-2*(T!==0||E!==0?T+E:L(u.top,u.bottom))}await f({...e,availableWidth:B,availableHeight:A});const P=await s.getDimensions(c.floating);return h!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function ct(){return typeof window<"u"}function tt(t){return $t(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=($t(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function $t(t){return ct()?t instanceof Node||t instanceof M(t).Node:!1}function _(t){return ct()?t instanceof Element||t instanceof M(t).Element:!1}function j(t){return ct()?t instanceof HTMLElement||t instanceof M(t).HTMLElement:!1}function Pt(t){return!ct()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof M(t).ShadowRoot}function nt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&i!=="inline"&&i!=="contents"}function me(t){return/^(table|td|th)$/.test(tt(t))}function lt(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const he=/transform|translate|scale|rotate|perspective|filter/,ge=/paint|layout|strict|content/,K=t=>!!t&&t!=="none";let ut;function xt(t){const e=_(t)?V(t):t;return K(e.transform)||K(e.translate)||K(e.scale)||K(e.rotate)||K(e.perspective)||!yt()&&(K(e.backdropFilter)||K(e.filter))||he.test(e.willChange||"")||ge.test(e.contain||"")}function pe(t){let e=q(t);for(;j(e)&&!Z(e);){if(xt(e))return e;if(lt(e))return null;e=q(e)}return null}function yt(){return ut==null&&(ut=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ut}function Z(t){return/^(html|body|#document)$/.test(tt(t))}function V(t){return M(t).getComputedStyle(t)}function ft(t){return _(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function q(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Pt(t)&&t.host||X(t);return Pt(e)?e.host:e}function kt(t){const e=q(t);return Z(e)?t.ownerDocument?t.ownerDocument.body:t.body:j(e)&&nt(e)?e:kt(e)}function et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=kt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=M(i);if(r){const c=ht(s);return e.concat(s,s.visualViewport||[],nt(i)?i:[],c&&n?et(c):[])}else return e.concat(i,et(i,[],n))}function ht(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Nt(t){const e=V(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=j(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=it(n)!==r||it(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function vt(t){return _(t)?t:t.contextElement}function J(t){const e=vt(t);if(!j(e))return I(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Nt(e);let s=(r?it(n.width):n.width)/o,c=(r?it(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const we=I(0);function Ht(t){const e=M(t);return!yt()||!e.visualViewport?we:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==M(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=vt(t);let s=I(1);e&&(o?_(o)&&(s=J(o)):s=J(t));const c=xe(r,n,o)?Ht(r):I(0);let f=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,u=i.width/s.x,l=i.height/s.y;if(r){const m=M(r),a=o&&_(o)?M(o):o;let h=m,g=ht(h);for(;g&&o&&a!==h;){const w=J(g),p=g.getBoundingClientRect(),x=V(g),y=p.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,b=p.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;f*=w.x,d*=w.y,u*=w.x,l*=w.y,f+=y,d+=b,h=M(g),g=ht(h)}}return Q({width:u,height:l,x:f,y:d})}function at(t,e){const n=ft(t).scrollLeft;return e?e.left+n:G(X(t)).left+n}function _t(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-at(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function ye(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=X(o),c=e?lt(e.floating):!1;if(o===s||c&&r)return n;let f={scrollLeft:0,scrollTop:0},d=I(1);const u=I(0),l=j(o);if((l||!l&&!r)&&((tt(o)!=="body"||nt(s))&&(f=ft(o)),l)){const a=G(o);d=J(o),u.x=a.x+o.clientLeft,u.y=a.y+o.clientTop}const m=s&&!l&&!r?_t(s,f):I(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+u.x+m.x,y:n.y*d.y-f.scrollTop*d.y+u.y+m.y}}function ve(t){return Array.from(t.getClientRects())}function be(t){const e=X(t),n=ft(t),o=t.ownerDocument.body,i=L(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=L(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+at(t);const c=-n.scrollTop;return V(o).direction==="rtl"&&(s+=L(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}const Tt=25;function Re(t,e){const n=M(t),o=X(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,f=0;if(i){r=i.width,s=i.height;const u=yt();(!u||u&&e==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=at(o);if(d<=0){const u=o.ownerDocument,l=u.body,m=getComputedStyle(l),a=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(o.clientWidth-l.clientWidth-a);h<=Tt&&(r-=h)}else d<=Tt&&(r+=d);return{width:r,height:s,x:c,y:f}}function Oe(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=j(t)?J(t):I(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,f=i*r.x,d=o*r.y;return{width:s,height:c,x:f,y:d}}function Et(t,e,n){let o;if(e==="viewport")o=Re(t,n);else if(e==="document")o=be(X(t));else if(_(e))o=Oe(e,n);else{const i=Ht(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Q(o)}function Vt(t,e){const n=q(t);return n===e||!_(n)||Z(n)?!1:V(n).position==="fixed"||Vt(n,e)}function Ae(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter(c=>_(c)&&tt(c)!=="body"),i=null;const r=V(t).position==="fixed";let s=r?q(t):t;for(;_(s)&&!Z(s);){const c=V(s),f=xt(s);!f&&c.position==="fixed"&&(i=null),(r?!f&&!i:!f&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||nt(s)&&!f&&Vt(t,s))?o=o.filter(u=>u!==s):i=c,s=q(s)}return e.set(t,o),o}function Ce(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?lt(e)?[]:Ae(e,this._c):[].concat(n),o],c=Et(e,s[0],i);let f=c.top,d=c.right,u=c.bottom,l=c.left;for(let m=1;m<s.length;m++){const a=Et(e,s[m],i);f=L(a.top,f),d=H(a.right,d),u=H(a.bottom,u),l=L(a.left,l)}return{width:d-l,height:u-f,x:l,y:f}}function Se(t){const{width:e,height:n}=Nt(t);return{width:e,height:n}}function Le(t,e,n){const o=j(e),i=X(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=I(0);function d(){f.x=at(i)}if(o||!o&&!r)if((tt(e)!=="body"||nt(i))&&(c=ft(e)),o){const a=G(e,!0,r,e);f.x=a.x+e.clientLeft,f.y=a.y+e.clientTop}else i&&d();r&&!o&&i&&d();const u=i&&!o&&!r?_t(i,c):I(0),l=s.left+c.scrollLeft-f.x-u.x,m=s.top+c.scrollTop-f.y-u.y;return{x:l,y:m,width:s.width,height:s.height}}function dt(t){return V(t).position==="static"}function Dt(t,e){if(!j(t)||V(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function zt(t,e){const n=M(t);if(lt(t))return n;if(!j(t)){let i=q(t);for(;i&&!Z(i);){if(_(i)&&!dt(i))return i;i=q(i)}return n}let o=Dt(t,e);for(;o&&me(o)&&dt(o);)o=Dt(o,e);return o&&Z(o)&&dt(o)&&!xt(o)?n:o||pe(t)||n}const Pe=async function(t){const e=this.getOffsetParent||zt,n=this.getDimensions,o=await n(t.floating);return{reference:Le(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Te(t){return V(t).direction==="rtl"}const Ee={convertOffsetParentRelativeRectToViewportRelativeRect:ye,getDocumentElement:X,getClippingRect:Ce,getOffsetParent:zt,getElementRects:Pe,getClientRects:ve,getDimensions:Se,getScale:J,isElement:_,isRTL:Te};function It(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function De(t,e){let n=null,o;const i=X(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),r();const d=t.getBoundingClientRect(),{left:u,top:l,width:m,height:a}=d;if(c||e(),!m||!a)return;const h=ot(l),g=ot(i.clientWidth-(u+m)),w=ot(i.clientHeight-(l+a)),p=ot(u),y={rootMargin:-h+"px "+-g+"px "+-w+"px "+-p+"px",threshold:L(0,H(1,f))||1};let b=!0;function O(R){const A=R[0].intersectionRatio;if(A!==f){if(!b)return s();A?s(!1,A):o=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!It(d,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(O,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,y)}n.observe(t)}return s(!0),r}function Fe(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,d=vt(t),u=i||r?[...d?et(d):[],...e?et(e):[]]:[];u.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const l=d&&c?De(d,n):null;let m=-1,a=null;s&&(a=new ResizeObserver(p=>{let[x]=p;x&&x.target===d&&a&&e&&(a.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=a)==null||y.observe(e)})),n()}),d&&!f&&a.observe(d),e&&a.observe(e));let h,g=f?G(t):null;f&&w();function w(){const p=G(t);g&&!It(g,p)&&n(),g=p,h=requestAnimationFrame(w)}return n(),()=>{var p;u.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),l?.(),(p=a)==null||p.disconnect(),a=null,f&&cancelAnimationFrame(h)}}const Me=ae,Be=oe,We=ue,$e=ie,ke=de,Ne=re,He=ee,_e=ce,Ve=(t,e,n)=>{const o=new Map,i={platform:Ee,...n},r={...i.platform,_c:o};return te(t,e,{...i,platform:r})};exports.arrow=He;exports.autoPlacement=Be;exports.autoUpdate=Fe;exports.computePosition=Ve;exports.flip=$e;exports.hide=Ne;exports.inline=_e;exports.offset=Me;exports.shift=We;exports.size=ke;
|
|
1
|
+
var e=[`top`,`right`,`bottom`,`left`],t=[`start`,`end`],n=e.reduce((e,n)=>e.concat(n,n+`-`+t[0],n+`-`+t[1]),[]),r=Math.min,i=Math.max,a=Math.round,o=Math.floor,s=e=>({x:e,y:e}),c={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function l(e,t,n){return i(e,r(t,n))}function u(e,t){return typeof e==`function`?e(t):e}function d(e){return e.split(`-`)[0]}function f(e){return e.split(`-`)[1]}function p(e){return e===`x`?`y`:`x`}function m(e){return e===`y`?`height`:`width`}function h(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function g(e){return p(h(e))}function _(e,t,n){n===void 0&&(n=!1);let r=f(e),i=g(e),a=m(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=E(o)),[o,E(o)]}function v(e){let t=E(e);return[y(e),t,y(t)]}function y(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var b=[`left`,`right`],x=[`right`,`left`],S=[`top`,`bottom`],C=[`bottom`,`top`];function w(e,t,n){switch(e){case`top`:case`bottom`:return n?t?x:b:t?b:x;case`left`:case`right`:return t?S:C;default:return[]}}function T(e,t,n,r){let i=f(e),a=w(d(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(y)))),a}function E(e){let t=d(e);return c[t]+e.slice(t.length)}function D(e){return{top:0,right:0,bottom:0,left:0,...e}}function O(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:D(e)}function k(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function A(e,t,n){let{reference:r,floating:i}=e,a=h(t),o=g(t),s=m(o),c=d(t),l=a===`y`,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,_=r[s]/2-i[s]/2,v;switch(c){case`top`:v={x:u,y:r.y-i.height};break;case`bottom`:v={x:u,y:r.y+r.height};break;case`right`:v={x:r.x+r.width,y:p};break;case`left`:v={x:r.x-i.width,y:p};break;default:v={x:r.x,y:r.y}}switch(f(t)){case`start`:v[o]-=_*(n&&l?-1:1);break;case`end`:v[o]+=_*(n&&l?-1:1);break}return v}async function j(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=u(t,e),m=O(p),h=o[f?d===`floating`?`reference`:`floating`:d],g=k(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(h))??!0?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),_=d===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},b=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:_,offsetParent:v,strategy:s}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var M=50,ee=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:j},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=A(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<M&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=A(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},te=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:i,placement:a,rects:o,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=u(e,t)||{};if(p==null)return{};let _=O(h),v={x:n,y:i},y=g(a),b=m(y),x=await s.getDimensions(p),S=y===`y`,C=S?`top`:`left`,w=S?`bottom`:`right`,T=S?`clientHeight`:`clientWidth`,E=o.reference[b]+o.reference[y]-v[y]-o.floating[b],D=v[y]-o.reference[y],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),A=k?k[T]:0;(!A||!await(s.isElement==null?void 0:s.isElement(k)))&&(A=c.floating[T]||o.floating[b]);let j=E/2-D/2,M=A/2-x[b]/2-1,ee=r(_[C],M),te=r(_[w],M),N=ee,ne=A-x[b]-te,P=A/2-x[b]/2+j,F=l(N,P,ne),I=!d.arrow&&f(a)!=null&&P!==F&&o.reference[b]/2-(P<N?ee:te)-x[b]/2<0,L=I?P<N?P-N:P-ne:0;return{[y]:v[y]+L,data:{[y]:F,centerOffset:P-F-L,...I&&{alignmentOffset:L}},reset:I}}});function N(e,t,n){return(e?[...n.filter(t=>f(t)===e),...n.filter(t=>f(t)!==e)]:n.filter(e=>d(e)===e)).filter(n=>e?f(n)===e||(t?y(n)!==n:!1):!0)}var ne=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:r,middlewareData:i,placement:a,platform:o,elements:s}=t,{crossAxis:c=!1,alignment:l,allowedPlacements:p=n,autoAlignment:m=!0,...h}=u(e,t),g=l!==void 0||p===n?N(l||null,m,p):p,v=await o.detectOverflow(t,h),y=i.autoPlacement?.index||0,b=g[y];if(b==null)return{};let x=_(b,r,await(o.isRTL==null?void 0:o.isRTL(s.floating)));if(a!==b)return{reset:{placement:g[0]}};let S=[v[d(b)],v[x[0]],v[x[1]]],C=[...i.autoPlacement?.overflows||[],{placement:b,overflows:S}],w=g[y+1];if(w)return{data:{index:y+1,overflows:C},reset:{placement:w}};let T=C.map(e=>{let t=f(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),E=T.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0))[0]?.[0]||T[0][0];return E===a?{}:{data:{index:y+1,overflows:C},reset:{placement:E}}}}},P=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m=`bestFit`,fallbackAxisSideDirection:g=`none`,flipAlignment:y=!0,...b}=u(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let x=d(r),S=h(o),C=d(o)===o,w=await(s.isRTL==null?void 0:s.isRTL(c.floating)),D=p||(C||!y?[E(o)]:v(o)),O=g!==`none`;!p&&O&&D.push(...T(o,y,g,w));let k=[o,...D],A=await s.detectOverflow(t,b),j=[],M=i.flip?.overflows||[];if(l&&j.push(A[x]),f){let e=_(r,a,w);j.push(A[e[0]],A[e[1]])}if(M=[...M,{placement:r,overflows:j}],!j.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=k[e];if(t&&(!(f===`alignment`&&S!==h(t))||M.every(e=>h(e.placement)===S?e.overflows[0]>0:!0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(m){case`bestFit`:{let e=M.filter(e=>{if(O){let t=h(e.placement);return t===S||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function F(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(t){return e.some(e=>t[e]>=0)}var L=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=u(e,t);switch(i){case`referenceHidden`:{let e=F(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:I(e)}}}case`escaped`:{let e=F(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:I(e)}}}default:return{}}}}};function re(e){let t=r(...e.map(e=>e.left)),n=r(...e.map(e=>e.top)),a=i(...e.map(e=>e.right)),o=i(...e.map(e=>e.bottom));return{x:t,y:n,width:a-t,height:o-n}}function ie(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>k(re(e)))}var ae=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:a,rects:o,platform:s,strategy:c}=t,{padding:l=2,x:f,y:p}=u(e,t),m=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(a.reference))||[]),g=ie(m),_=k(re(m)),v=O(l);function y(){if(g.length===2&&g[0].left>g[1].right&&f!=null&&p!=null)return g.find(e=>f>e.left-v.left&&f<e.right+v.right&&p>e.top-v.top&&p<e.bottom+v.bottom)||_;if(g.length>=2){if(h(n)===`y`){let e=g[0],t=g[g.length-1],r=d(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=d(n)===`left`,t=i(...g.map(e=>e.right)),a=r(...g.map(e=>e.left)),o=g.filter(n=>e?n.left===a:n.right===t),s=o[0].top,c=o[o.length-1].bottom,l=a,u=t;return{top:s,bottom:c,left:l,right:u,width:u-l,height:c-s,x:l,y:s}}return _}let b=await s.getElementRects({reference:{getBoundingClientRect:y},floating:a.floating,strategy:c});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},oe=new Set([`left`,`top`]);async function se(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=d(n),s=f(n),c=h(n)===`y`,l=oe.has(o)?-1:1,p=a&&c?-1:1,m=u(t,e),{mainAxis:g,crossAxis:_,alignmentAxis:v}=typeof m==`number`?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof v==`number`&&(_=s===`end`?v*-1:v),c?{x:_*p,y:g*l}:{x:g*l,y:_*p}}var ce=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await se(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},le=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=u(e,t),m={x:n,y:r},g=await a.detectOverflow(t,f),_=h(d(i)),v=p(_),y=m[v],b=m[_];if(o){let e=v===`y`?`top`:`left`,t=v===`y`?`bottom`:`right`,n=y+g[e],r=y-g[t];y=l(n,y,r)}if(s){let e=_===`y`?`top`:`left`,t=_===`y`?`bottom`:`right`,n=b+g[e],r=b-g[t];b=l(n,b,r)}let x=c.fn({...t,[v]:y,[_]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:o,[_]:s}}}}}},ue=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,a;let{placement:o,rects:s,platform:c,elements:l}=t,{apply:p=()=>{},...m}=u(e,t),g=await c.detectOverflow(t,m),_=d(o),v=f(o),y=h(o)===`y`,{width:b,height:x}=s.floating,S,C;_===`top`||_===`bottom`?(S=_,C=v===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?`start`:`end`)?`left`:`right`):(C=_,S=v===`end`?`top`:`bottom`);let w=x-g.top-g.bottom,T=b-g.left-g.right,E=r(x-g[S],w),D=r(b-g[C],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(k=w),O&&!v){let e=i(g.left,0),t=i(g.right,0),n=i(g.top,0),r=i(g.bottom,0);y?A=b-2*(e!==0||t!==0?e+t:i(g.left,g.right)):k=x-2*(n!==0||r!==0?n+r:i(g.top,g.bottom))}await p({...t,availableWidth:A,availableHeight:k});let j=await c.getDimensions(l.floating);return b!==j.width||x!==j.height?{reset:{rects:!0}}:{}}}};function R(){return typeof window<`u`}function z(e){return de(e)?(e.nodeName||``).toLowerCase():`#document`}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function V(e){return((de(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function de(e){return R()?e instanceof Node||e instanceof B(e).Node:!1}function H(e){return R()?e instanceof Element||e instanceof B(e).Element:!1}function U(e){return R()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function fe(e){return!R()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}function W(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function pe(e){return/^(table|td|th)$/.test(z(e))}function G(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var me=/transform|translate|scale|rotate|perspective|filter/,he=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,ge;function _e(e){let t=H(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!ye()&&(K(t.backdropFilter)||K(t.filter))||me.test(t.willChange||``)||he.test(t.contain||``)}function ve(e){let t=X(e);for(;U(t)&&!q(t);){if(_e(t))return t;if(G(t))return null;t=X(t)}return null}function ye(){return ge??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ge}function q(e){return/^(html|body|#document)$/.test(z(e))}function J(e){return B(e).getComputedStyle(e)}function Y(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(z(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||fe(e)&&e.host||V(e);return fe(t)?t.host:t}function be(e){let t=X(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&W(t)?t:be(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=be(e),i=r===e.ownerDocument?.body,a=B(r);if(i){let e=xe(a);return t.concat(a,a.visualViewport||[],W(r)?r:[],e&&n?Z(e):[])}else return t.concat(r,Z(r,[],n))}function xe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Se(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=U(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=a(n)!==o||a(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function Ce(e){return H(e)?e:e.contextElement}function Q(e){let t=Ce(e);if(!U(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Se(t),c=(o?a(n.width):n.width)/r,l=(o?a(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var we=s(0);function Te(e){let t=B(e);return!ye()||!t.visualViewport?we:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ee(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==B(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ce(e),o=s(1);t&&(r?H(r)&&(o=Q(r)):o=Q(e));let c=Ee(a,n,r)?Te(a):s(0),l=(i.left+c.x)/o.x,u=(i.top+c.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=B(a),t=r&&H(r)?B(r):r,n=e,i=xe(n);for(;i&&r&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=a,u+=o,n=B(i),i=xe(n)}}return k({width:d,height:f,x:l,y:u})}function De(e,t){let n=Y(e).scrollLeft;return t?t.left+n:$(V(e)).left+n}function Oe(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-De(e,n),y:n.top+t.scrollTop}}function ke(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=V(r),c=t?G(t.floating):!1;if(r===o||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=s(1),d=s(0),f=U(r);if((f||!f&&!a)&&((z(r)!==`body`||W(o))&&(l=Y(r)),f)){let e=$(r);u=Q(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=o&&!f&&!a?Oe(o,l):s(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function Ae(e){return Array.from(e.getClientRects())}function je(e){let t=V(e),n=Y(e),r=e.ownerDocument.body,a=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+De(e),c=-n.scrollTop;return J(r).direction===`rtl`&&(s+=i(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:s,y:c}}var Me=25;function Ne(e,t){let n=B(e),r=V(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ye();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=De(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Me&&(a-=o)}else l<=Me&&(a+=l);return{width:a,height:o,x:s,y:c}}function Pe(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=U(e)?Q(e):s(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Fe(e,t,n){let r;if(t===`viewport`)r=Ne(e,n);else if(t===`document`)r=je(V(e));else if(H(t))r=Pe(t,n);else{let n=Te(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(r)}function Ie(e,t){let n=X(e);return n===t||!H(n)||q(n)?!1:J(n).position===`fixed`||Ie(n,t)}function Le(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>H(e)&&z(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?X(e):e;for(;H(o)&&!q(o);){let t=J(o),n=_e(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||W(o)&&!n&&Ie(e,o))?r=r.filter(e=>e!==o):i=t,o=X(o)}return t.set(e,r),r}function Re(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e,s=[...n===`clippingAncestors`?G(t)?[]:Le(t,this._c):[].concat(n),a],c=Fe(t,s[0],o),l=c.top,u=c.right,d=c.bottom,f=c.left;for(let e=1;e<s.length;e++){let n=Fe(t,s[e],o);l=i(n.top,l),u=r(n.right,u),d=r(n.bottom,d),f=i(n.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function ze(e){let{width:t,height:n}=Se(e);return{width:t,height:n}}function Be(e,t,n){let r=U(t),i=V(t),a=n===`fixed`,o=$(e,!0,a,t),c={scrollLeft:0,scrollTop:0},l=s(0);function u(){l.x=De(i)}if(r||!r&&!a)if((z(t)!==`body`||W(i))&&(c=Y(t)),r){let e=$(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&u();a&&!r&&i&&u();let d=i&&!r&&!a?Oe(i,c):s(0);return{x:o.left+c.scrollLeft-l.x-d.x,y:o.top+c.scrollTop-l.y-d.y,width:o.width,height:o.height}}function Ve(e){return J(e).position===`static`}function He(e,t){if(!U(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function Ue(e,t){let n=B(e);if(G(e))return n;if(!U(e)){let t=X(e);for(;t&&!q(t);){if(H(t)&&!Ve(t))return t;t=X(t)}return n}let r=He(e,t);for(;r&&pe(r)&&Ve(r);)r=He(r,t);return r&&q(r)&&Ve(r)&&!_e(r)?n:r||ve(e)||n}var We=async function(e){let t=this.getOffsetParent||Ue,n=this.getDimensions,r=await n(e.floating);return{reference:Be(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ge(e){return J(e).direction===`rtl`}var Ke={convertOffsetParentRelativeRectToViewportRelativeRect:ke,getDocumentElement:V,getClippingRect:Re,getOffsetParent:Ue,getElementRects:We,getClientRects:Ae,getDimensions:ze,getScale:Q,isElement:H,isRTL:Ge};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Je(e,t){let n=null,a,s=V(e);function c(){var e;clearTimeout(a),(e=n)==null||e.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),c();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(u||t(),!h||!g)return;let _=o(m),v=o(s.clientWidth-(p+h)),y=o(s.clientHeight-(m+g)),b=o(p),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:i(0,r(1,d))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(n!==d){if(!S)return l();n?l(!1,n):a=setTimeout(()=>{l(!1,1e-7)},1e3)}n===1&&!qe(f,e.getBoundingClientRect())&&l(),S=!1}try{n=new IntersectionObserver(C,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return l(!0),c}function Ye(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ce(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Je(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!qe(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Xe=ce,Ze=ne,Qe=le,$e=P,et=ue,tt=L,nt=te,rt=ae,it=(e,t,n)=>{let r=new Map,i={platform:Ke,...n},a={...i.platform,_c:r};return ee(e,t,{...i,platform:a})};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return et}});
|