@vonage/vivid 5.25.0 → 5.28.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/index.cjs +1 -1
- package/accordion/index.js +8 -8
- package/accordion-item/index.cjs +1 -1
- package/action-group/index.cjs +3 -3
- package/action-group/index.js +10 -5
- package/alert/index.cjs +7 -7
- package/alert/index.js +47 -35
- package/audio-player/index.cjs +18 -18
- package/audio-player/index.js +15 -11
- package/avatar/index.cjs +9 -9
- package/avatar/index.js +27 -18
- package/badge/index.cjs +1 -1
- package/banner/index.cjs +5 -5
- package/banner/index.js +33 -27
- package/breadcrumb/index.cjs +1 -1
- package/breadcrumb/index.js +5 -1
- package/breadcrumb-item/index.cjs +1 -1
- package/breadcrumb-item/index.js +6 -6
- package/bundled/affix.cjs +3 -3
- package/bundled/affix.js +1 -1
- package/bundled/anchored.cjs +2 -2
- package/bundled/anchored.js +13 -1
- package/bundled/aria-binding-directive.cjs +1 -1
- package/bundled/aria-binding-directive.js +2 -2
- package/bundled/aria.cjs +1 -1
- package/bundled/base-color-picker.cjs +2 -2
- package/bundled/base-color-picker.js +1 -1
- package/bundled/base-progress.cjs +1 -1
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/button.cjs +1 -1
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +17 -4
- package/bundled/calendar-picker.template.cjs +5 -5
- package/bundled/calendar-picker.template.js +56 -58
- package/bundled/char-count.cjs +2 -2
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +1 -1
- package/bundled/class-names.cjs +1 -1
- package/bundled/component-enum.cjs +1 -0
- package/bundled/component-enum.js +9 -0
- package/bundled/data-grid.options.cjs +1 -1
- package/bundled/data-grid.options.js +7 -6
- package/bundled/decorate.cjs +1 -1
- package/bundled/decorate.js +1 -1
- package/bundled/definition.cjs +1 -1
- package/bundled/definition10.cjs +12 -18
- package/bundled/definition10.js +24 -69
- package/bundled/definition11.cjs +74 -10
- package/bundled/definition11.js +194 -24
- package/bundled/definition12.cjs +18 -70
- package/bundled/definition12.js +48 -186
- package/bundled/definition13.cjs +5 -22
- package/bundled/definition13.js +9 -58
- package/bundled/definition14.cjs +1 -5
- package/bundled/definition14.js +9 -9
- package/bundled/definition15.cjs +3 -3
- package/bundled/definition15.js +18 -18
- package/bundled/definition16.cjs +3 -3
- package/bundled/definition16.js +23 -17
- package/bundled/definition17.cjs +6 -6
- package/bundled/definition17.js +8 -8
- package/bundled/definition18.cjs +2 -2
- package/bundled/definition19.cjs +21 -21
- package/bundled/definition19.js +66 -61
- package/bundled/definition2.cjs +13 -1
- package/bundled/definition2.js +22 -185
- package/bundled/definition20.cjs +3 -3
- package/bundled/definition20.js +6 -7
- package/bundled/definition21.cjs +7 -7
- package/bundled/definition21.js +22 -23
- package/bundled/definition22.cjs +3 -3
- package/bundled/definition22.js +25 -25
- package/bundled/definition23.cjs +8 -4
- package/bundled/definition23.js +31 -9
- package/bundled/definition24.cjs +2 -2
- package/bundled/definition24.js +1 -1
- package/bundled/definition25.cjs +5 -5
- package/bundled/definition25.js +16 -11
- package/bundled/definition3.cjs +25 -12
- package/bundled/definition3.js +90 -21
- package/bundled/definition4.cjs +29 -25
- package/bundled/definition4.js +50 -89
- package/bundled/definition5.cjs +28 -29
- package/bundled/definition5.js +144 -45
- package/bundled/definition6.cjs +6 -29
- package/bundled/definition6.js +20 -130
- package/bundled/definition7.cjs +14 -6
- package/bundled/definition7.js +159 -20
- package/bundled/definition8.cjs +24 -14
- package/bundled/definition8.js +90 -144
- package/bundled/definition9.cjs +20 -22
- package/bundled/definition9.js +54 -80
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +3 -2
- package/bundled/dialog.cjs +1 -1
- package/bundled/dialog.js +1 -1
- package/bundled/divider.cjs +1 -1
- package/bundled/divider.js +9 -9
- package/bundled/dom.cjs +1 -1
- package/bundled/enums.cjs +1 -1
- package/bundled/extractOptions.cjs +1 -1
- package/bundled/feedback-message.cjs +8 -0
- package/bundled/feedback-message.js +41 -0
- package/bundled/floating-ui.dom.cjs +1 -1
- package/bundled/floating-ui.dom.js +163 -197
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +3 -4
- package/bundled/form-element.cjs +1 -1
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/icon.cjs +1 -1
- package/bundled/kbd-shortcut.cjs +1 -1
- package/bundled/key-codes.cjs +1 -1
- package/bundled/linkable.cjs +2 -2
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +3 -5
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +45 -32
- package/bundled/mixins.cjs +9 -16
- package/bundled/mixins.js +23 -57
- package/bundled/numberConverter.cjs +2 -2
- package/bundled/numberConverter.js +1 -1
- package/bundled/numbers.cjs +1 -1
- package/bundled/optgroup.cjs +1 -1
- package/bundled/option.cjs +1 -1
- package/bundled/option.js +9 -7
- package/bundled/picker-field.template.cjs +2 -2
- package/bundled/picker-field.template.js +8 -8
- package/bundled/platform.cjs +1 -1
- package/bundled/playbackRates.cjs +1 -1
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +1 -1
- package/bundled/render-in-light-dom.cjs +1 -1
- package/bundled/render-in-light-dom.js +4 -4
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +16 -15
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +1 -3
- package/bundled/single-date-picker.cjs +1 -1
- package/bundled/single-value-picker.cjs +1 -1
- package/bundled/single-value-picker.js +1 -1
- package/bundled/slider.template.cjs +12 -12
- package/bundled/slider.template.js +209 -32
- package/bundled/slottable-request.cjs +3 -3
- package/bundled/slottable-request.js +26 -17
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +1 -1
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +4 -4
- package/bundled/time-selection-picker.template.js +10 -7
- package/bundled/trapped-focus.cjs +1 -1
- package/bundled/utils.cjs +1 -1
- package/bundled/vivid-element.cjs +3 -3
- package/bundled/vivid-element.js +397 -358
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +1 -1
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +1 -1
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-success-text.cjs +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +7 -7
- package/calendar-event/index.cjs +2 -2
- package/calendar-event/index.js +10 -8
- package/card/index.cjs +4 -2
- package/card/index.js +12 -7
- package/checkbox/index.cjs +1 -1
- package/color-picker/index.cjs +17 -17
- package/color-picker/index.js +19 -17
- package/combobox/index.cjs +9 -9
- package/combobox/index.js +46 -44
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/country/index.cjs +1 -1
- package/country-group/index.cjs +1 -1
- package/country-group/index.js +8 -4
- package/custom-elements.json +9302 -9180
- package/data-grid/index.cjs +6 -6
- package/data-grid/index.js +92 -99
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +10 -6
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +13 -9
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +11 -7
- package/dial-pad/index.cjs +4 -3
- package/dial-pad/index.js +14 -9
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +9 -6
- package/divider/index.cjs +1 -1
- package/elevation/definition.cjs +1 -0
- package/elevation/definition.js +2 -2
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +1 -1
- package/empty-state/index.cjs +3 -3
- package/empty-state/index.js +18 -6
- package/fab/index.cjs +3 -3
- package/fab/index.js +14 -6
- package/file-picker/index.cjs +8 -10
- package/file-picker/index.js +25 -22
- package/flag/index.cjs +1 -1
- package/flag/index.js +7 -3
- package/form-field/definition.cjs +5 -0
- package/form-field/definition.js +2 -0
- package/form-field/index.cjs +29 -0
- package/form-field/index.js +57 -0
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/header/index.cjs +1 -1
- package/header/index.js +9 -5
- package/icon/index.cjs +1 -1
- package/icon/index.js +1 -1
- package/index.cjs +159 -154
- package/index.js +42 -40
- package/kbd-key/definition.cjs +1 -1
- package/kbd-key/definition.js +1 -1
- package/kbd-key/index.cjs +3 -3
- package/kbd-key/index.js +22 -13
- package/kbd-shortcut/definition.cjs +1 -1
- package/kbd-shortcut/definition.js +1 -1
- package/kbd-shortcut/index.cjs +1 -1
- package/kbd-shortcut/index.js +6 -6
- package/layout/definition.cjs +1 -1
- package/layout/definition.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +7 -3
- package/lib/accordion-item/accordion-item.d.ts +11 -6
- package/lib/action-group/action-group.d.ts +10 -5
- package/lib/alert/alert.d.ts +15 -18
- package/lib/avatar/avatar.d.ts +16 -7
- package/lib/badge/badge.d.ts +18 -7
- package/lib/badge/badge.template.d.ts +2 -1
- package/lib/banner/banner.d.ts +18 -20
- package/lib/button/button.d.ts +25 -16
- package/lib/calendar-event/calendar-event.d.ts +14 -7
- package/lib/checkbox/checkbox.d.ts +31 -28
- package/lib/combobox/combobox.d.ts +37 -32
- package/lib/components.d.ts +1 -0
- package/lib/data-grid/data-grid.options.d.ts +6 -1
- package/lib/dial-pad/locale.d.ts +1 -0
- package/lib/divider/divider.d.ts +9 -6
- package/lib/elevation/definition.d.ts +2 -0
- package/lib/empty-state/empty-state.d.ts +7 -2
- package/lib/fab/fab.d.ts +3 -2
- package/lib/form-field/definition.d.ts +4 -0
- package/lib/form-field/form-field.d.ts +6 -0
- package/lib/form-field/form-field.template.d.ts +3 -0
- package/lib/icon/icon.d.ts +1 -1
- package/lib/kbd-key/kbd-key.d.ts +7 -2
- package/lib/listbox/listbox.d.ts +1 -0
- package/lib/menu-item/menu-item.d.ts +17 -14
- package/lib/nav-disclosure/nav-disclosure.d.ts +18 -11
- package/lib/nav-item/nav-item.d.ts +19 -12
- package/lib/note/note.d.ts +10 -6
- package/lib/number-field/number-field.d.ts +45 -40
- package/lib/option/option.d.ts +13 -10
- package/lib/popover/popover.d.ts +2 -1
- package/lib/popup/definition.d.ts +2 -0
- package/lib/progress/progress.d.ts +10 -5
- package/lib/progress-ring/progress-ring.d.ts +10 -6
- package/lib/radio/radio.d.ts +18 -15
- package/lib/range-slider/range-slider.d.ts +19 -15
- package/lib/rich-text-editor/rich-text-editor.d.ts +436 -5
- package/lib/rich-text-editor/rte/__tests__/async-generator.d.ts +1 -0
- package/lib/rich-text-editor/rte/features/atom.d.ts +6 -2
- package/lib/rich-text-editor/rte/instance.d.ts +2 -1
- package/lib/rich-text-editor/rte/utils/ui.d.ts +2 -1
- package/lib/searchable-select/option-tag.d.ts +12 -7
- package/lib/searchable-select/searchable-select.d.ts +7 -2
- package/lib/select/select.d.ts +45 -40
- package/lib/selectable-box/selectable-box.d.ts +9 -5
- package/lib/slider/slider.d.ts +18 -14
- package/lib/split-button/split-button.d.ts +24 -15
- package/lib/status/status.d.ts +10 -7
- package/lib/switch/switch.d.ts +13 -9
- package/lib/tab/tab.d.ts +19 -14
- package/lib/table/locale.d.ts +10 -0
- package/lib/table/table-sorting-button.d.ts +425 -0
- package/lib/tabs/tabs.d.ts +6 -3
- package/lib/tag/tag.d.ts +24 -15
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-field/text-field.d.ts +46 -41
- package/lib/video-player/__tests__/video-fixtures.d.ts +3 -0
- package/listbox/definition.cjs +1 -1
- package/listbox/definition.js +1 -1
- package/listbox/index.cjs +7 -5
- package/listbox/index.js +24 -10
- package/locales/de-DE.cjs +46 -33
- package/locales/de-DE.js +46 -33
- package/locales/en-GB.cjs +46 -33
- package/locales/en-GB.js +46 -33
- package/locales/ja-JP.cjs +47 -33
- package/locales/ja-JP.js +47 -33
- package/locales/zh-CN.cjs +46 -33
- package/locales/zh-CN.js +46 -33
- package/menu/index.cjs +1 -1
- package/menu-item/index.cjs +1 -1
- package/nav/definition.cjs +1 -1
- package/nav/definition.js +1 -1
- package/nav/index.cjs +1 -1
- package/nav/index.js +6 -4
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-disclosure/index.cjs +3 -3
- package/nav-disclosure/index.js +13 -8
- package/nav-item/definition.cjs +1 -1
- package/nav-item/definition.js +1 -1
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +15 -10
- package/note/definition.cjs +1 -1
- package/note/definition.js +1 -1
- package/note/index.cjs +6 -4
- package/note/index.js +22 -9
- package/number-field/definition.cjs +1 -1
- package/number-field/definition.js +1 -1
- package/number-field/index.cjs +11 -11
- package/number-field/index.js +41 -36
- package/optgroup/index.cjs +1 -1
- package/option/index.cjs +1 -1
- package/package.json +29 -36
- package/pagination/definition.cjs +1 -1
- package/pagination/definition.js +1 -1
- package/pagination/index.cjs +1 -1
- package/pagination/index.js +9 -9
- package/platform-switch/definition.cjs +1 -1
- package/platform-switch/definition.js +1 -1
- package/platform-switch/index.cjs +1 -1
- package/platform-switch/index.js +6 -2
- package/popover/definition.cjs +1 -1
- package/popover/definition.js +1 -1
- package/popover/index.cjs +2 -2
- package/popover/index.js +82 -41
- package/popup/definition.cjs +1 -0
- package/popup/definition.js +2 -2
- package/popup/index.cjs +1 -1
- package/popup/index.js +1 -1
- package/progress/definition.cjs +1 -1
- package/progress/definition.js +1 -1
- package/progress/index.cjs +7 -7
- package/progress/index.js +21 -11
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/definition.cjs +1 -1
- package/radio/definition.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio-group/definition.cjs +1 -1
- package/radio-group/definition.js +1 -1
- package/radio-group/index.cjs +2 -2
- package/radio-group/index.js +14 -9
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/range-slider/index.cjs +8 -8
- package/range-slider/index.js +31 -32
- package/rich-text-editor/definition.cjs +1 -1
- package/rich-text-editor/definition.js +1 -1
- package/rich-text-editor/index.cjs +25 -16
- package/rich-text-editor/index.js +2450 -2154
- package/rich-text-view/definition.cjs +1 -1
- package/rich-text-view/definition.js +1 -1
- package/rich-text-view/index.cjs +1 -1
- package/rich-text-view/index.js +6 -4
- package/searchable-select/definition.cjs +1 -1
- package/searchable-select/definition.js +1 -1
- package/searchable-select/index.cjs +22 -22
- package/searchable-select/index.js +97 -93
- package/select/definition.cjs +1 -1
- package/select/definition.js +1 -1
- package/select/index.cjs +1 -1
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +8 -8
- package/selectable-box/index.js +24 -20
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/patterns/anchored.d.ts +2 -0
- package/shared/styles/appearance.d.ts +2 -0
- package/shared/styles/connotation.d.ts +2 -0
- package/shared/styles/connotationOverrides.d.ts +1 -0
- package/shared/utils/component-enum.d.ts +7 -0
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +1 -1
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +10 -7
- package/simple-color-picker/definition.cjs +1 -1
- package/simple-color-picker/definition.js +1 -1
- package/simple-color-picker/index.cjs +2 -2
- package/simple-color-picker/index.js +20 -20
- package/slider/definition.cjs +2 -1
- package/slider/definition.js +2 -1
- package/slider/index.cjs +1 -1
- package/slider/index.js +1 -1
- package/split-button/definition.cjs +1 -1
- package/split-button/definition.js +1 -1
- package/split-button/index.cjs +9 -7
- package/split-button/index.js +58 -37
- package/status/definition.cjs +1 -1
- package/status/definition.js +1 -1
- package/status/index.cjs +5 -5
- package/status/index.js +22 -13
- package/switch/definition.cjs +1 -1
- package/switch/definition.js +1 -1
- package/switch/index.cjs +3 -3
- package/switch/index.js +22 -11
- package/tab/definition.cjs +1 -1
- package/tab/definition.js +1 -1
- package/tab/index.cjs +1 -1
- package/tab/index.js +1 -1
- package/tab-panel/definition.cjs +1 -1
- package/tab-panel/definition.js +1 -1
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +1 -1
- package/table/definition.cjs +1 -1
- package/table/definition.js +1 -1
- package/table/index.cjs +20 -18
- package/table/index.js +54 -42
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +1 -1
- package/tabs/index.cjs +4 -4
- package/tabs/index.js +32 -30
- package/tag/definition.cjs +1 -1
- package/tag/definition.js +1 -1
- package/tag/index.cjs +6 -6
- package/tag/index.js +28 -12
- package/tag-group/definition.cjs +1 -1
- package/tag-group/definition.js +1 -1
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +6 -4
- package/text-area/definition.cjs +1 -1
- package/text-area/definition.js +1 -1
- package/text-area/index.cjs +5 -5
- package/text-area/index.js +18 -15
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +9 -6
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +7 -5
- package/unbundled/affix.cjs +0 -1
- package/unbundled/anchored.cjs +39 -1
- package/unbundled/anchored.js +28 -1
- package/unbundled/aria-binding-directive.cjs +2 -2
- package/unbundled/aria-binding-directive.js +2 -1
- package/unbundled/base-color-picker.cjs +0 -1
- package/unbundled/base-progress.cjs +0 -1
- package/unbundled/breadcrumb-item.cjs +0 -1
- package/unbundled/button.cjs +0 -1
- package/unbundled/calendar-event.cjs +29 -1
- package/unbundled/calendar-event.js +18 -1
- package/unbundled/calendar-picker.template.cjs +109 -91
- package/unbundled/calendar-picker.template.js +109 -90
- package/unbundled/char-count.cjs +0 -1
- package/unbundled/component-enum.cjs +18 -0
- package/unbundled/component-enum.js +13 -0
- package/unbundled/data-grid.options.cjs +8 -0
- package/unbundled/data-grid.options.js +3 -1
- package/unbundled/decorate.cjs +1 -1
- package/unbundled/decorate.js +1 -1
- package/unbundled/definition.cjs +1 -2
- package/unbundled/definition.js +1 -1
- package/unbundled/definition10.cjs +2 -343
- package/unbundled/definition10.js +4 -338
- package/unbundled/definition11.cjs +6 -7
- package/unbundled/definition11.js +6 -6
- package/unbundled/definition12.cjs +4 -4
- package/unbundled/definition12.js +5 -4
- package/unbundled/definition13.cjs +2 -2
- package/unbundled/definition13.js +2 -1
- package/unbundled/definition14.cjs +12 -4
- package/unbundled/definition14.js +12 -3
- package/unbundled/definition15.cjs +32 -6
- package/unbundled/definition15.js +32 -5
- package/unbundled/definition16.cjs +20 -14
- package/unbundled/definition16.js +20 -13
- package/unbundled/definition17.cjs +0 -1
- package/unbundled/definition18.cjs +4 -3
- package/unbundled/definition18.js +4 -2
- package/unbundled/definition19.cjs +2 -3
- package/unbundled/definition19.js +9 -8
- package/unbundled/definition2.cjs +9 -4
- package/unbundled/definition2.js +9 -3
- package/unbundled/definition20.cjs +1 -2
- package/unbundled/definition20.js +7 -6
- package/unbundled/definition21.cjs +4 -3
- package/unbundled/definition21.js +4 -2
- package/unbundled/definition22.cjs +0 -1
- package/unbundled/definition23.cjs +12 -6
- package/unbundled/definition23.js +11 -4
- package/unbundled/definition24.cjs +8 -8
- package/unbundled/definition24.js +9 -8
- package/unbundled/definition25.cjs +7 -4
- package/unbundled/definition25.js +7 -3
- package/unbundled/definition26.cjs +6 -4
- package/unbundled/definition26.js +5 -2
- package/unbundled/definition27.cjs +10 -7
- package/unbundled/definition27.js +10 -6
- package/unbundled/definition28.cjs +3 -3
- package/unbundled/definition28.js +2 -1
- package/unbundled/definition29.cjs +2 -3
- package/unbundled/definition29.js +3 -3
- package/unbundled/definition3.cjs +5 -6
- package/unbundled/definition3.js +5 -5
- package/unbundled/definition30.cjs +0 -1
- package/unbundled/definition31.cjs +15 -13
- package/unbundled/definition31.js +14 -11
- package/unbundled/definition32.cjs +0 -1
- package/unbundled/definition33.cjs +0 -1
- package/unbundled/definition34.cjs +0 -1
- package/unbundled/definition35.cjs +39 -51
- package/unbundled/definition35.js +40 -51
- package/unbundled/definition36.cjs +2 -3
- package/unbundled/definition36.js +9 -8
- package/unbundled/definition37.cjs +0 -1
- package/unbundled/definition38.cjs +0 -1
- package/unbundled/definition39.cjs +0 -1
- package/unbundled/definition4.cjs +4 -3
- package/unbundled/definition4.js +11 -6
- package/unbundled/definition40.cjs +5 -4
- package/unbundled/definition40.js +5 -3
- package/unbundled/definition41.cjs +0 -1
- package/unbundled/definition42.cjs +11 -3
- package/unbundled/definition42.js +11 -2
- package/unbundled/definition43.cjs +7 -3
- package/unbundled/definition43.js +7 -2
- package/unbundled/definition44.cjs +12 -11
- package/unbundled/definition44.js +11 -9
- package/unbundled/definition45.cjs +73 -52
- package/unbundled/definition45.js +69 -47
- package/unbundled/definition46.cjs +53 -46
- package/unbundled/definition46.js +49 -41
- package/unbundled/definition47.cjs +40 -165
- package/unbundled/definition47.js +36 -160
- package/unbundled/definition48.cjs +177 -32
- package/unbundled/definition48.js +174 -22
- package/unbundled/definition49.cjs +32 -596
- package/unbundled/definition49.js +29 -591
- package/unbundled/definition5.cjs +9 -3
- package/unbundled/definition5.js +15 -7
- package/unbundled/definition50.cjs +609 -78
- package/unbundled/definition50.js +605 -75
- package/unbundled/definition51.cjs +74 -34
- package/unbundled/definition51.js +70 -29
- package/unbundled/definition52.cjs +59 -24
- package/unbundled/definition52.js +57 -18
- package/unbundled/definition53.cjs +23 -40
- package/unbundled/definition53.js +19 -35
- package/unbundled/definition54.cjs +40 -316
- package/unbundled/definition54.js +38 -313
- package/unbundled/definition55.cjs +305 -196
- package/unbundled/definition55.js +301 -191
- package/unbundled/definition56.cjs +210 -41
- package/unbundled/definition56.js +206 -36
- package/unbundled/definition57.cjs +42 -271
- package/unbundled/definition57.js +38 -266
- package/unbundled/definition58.cjs +351 -51
- package/unbundled/definition58.js +348 -46
- package/unbundled/definition59.cjs +58 -147
- package/unbundled/definition59.js +59 -144
- package/unbundled/definition6.cjs +22 -7
- package/unbundled/definition6.js +22 -6
- package/unbundled/definition60.cjs +129 -226
- package/unbundled/definition60.js +126 -222
- package/unbundled/definition61.cjs +200 -420
- package/unbundled/definition61.js +197 -416
- package/unbundled/definition62.cjs +442 -3743
- package/unbundled/definition62.js +433 -3570
- package/unbundled/definition63.cjs +3788 -729
- package/unbundled/definition63.js +3617 -721
- package/unbundled/definition64.cjs +784 -98
- package/unbundled/definition64.js +781 -94
- package/unbundled/definition65.cjs +100 -1003
- package/unbundled/definition65.js +98 -997
- package/unbundled/definition66.cjs +996 -94
- package/unbundled/definition66.js +992 -89
- package/unbundled/definition67.cjs +111 -74
- package/unbundled/definition67.js +107 -63
- package/unbundled/definition68.cjs +69 -157
- package/unbundled/definition68.js +65 -152
- package/unbundled/definition69.cjs +156 -120
- package/unbundled/definition69.js +152 -115
- package/unbundled/definition7.cjs +0 -1
- package/unbundled/definition7.js +10 -4
- package/unbundled/definition70.cjs +154 -50
- package/unbundled/definition70.js +150 -45
- package/unbundled/definition71.cjs +58 -86
- package/unbundled/definition71.js +57 -81
- package/unbundled/definition72.cjs +99 -20
- package/unbundled/definition72.js +98 -15
- package/unbundled/definition73.cjs +20 -89
- package/unbundled/definition73.js +16 -84
- package/unbundled/definition74.cjs +79 -296
- package/unbundled/definition74.js +73 -217
- package/unbundled/definition75.cjs +304 -312
- package/unbundled/definition75.js +232 -304
- package/unbundled/definition76.cjs +328 -27
- package/unbundled/definition76.js +320 -23
- package/unbundled/definition77.cjs +27 -125
- package/unbundled/definition77.js +23 -120
- package/unbundled/definition78.cjs +120 -233
- package/unbundled/definition78.js +116 -228
- package/unbundled/definition79.cjs +258 -26
- package/unbundled/definition79.js +249 -23
- package/unbundled/definition8.cjs +19 -12
- package/unbundled/definition8.js +19 -11
- package/unbundled/definition80.cjs +29 -149
- package/unbundled/definition80.js +27 -134
- package/unbundled/definition81.cjs +118 -174
- package/unbundled/definition81.js +109 -169
- package/unbundled/definition82.cjs +180 -477
- package/unbundled/definition82.js +178 -472
- package/unbundled/definition83.cjs +517 -0
- package/unbundled/definition83.js +498 -0
- package/unbundled/definition9.cjs +4 -3
- package/unbundled/definition9.js +4 -2
- package/unbundled/delegates-aria.cjs +4 -2
- package/unbundled/delegates-aria.js +4 -2
- package/unbundled/divider.cjs +8 -3
- package/unbundled/divider.js +3 -3
- package/unbundled/en-US.cjs +46 -33
- package/unbundled/en-US.js +46 -33
- package/unbundled/feedback-message.cjs +59 -0
- package/unbundled/feedback-message.js +48 -0
- package/unbundled/form-associated.cjs +1 -4
- package/unbundled/form-associated.js +1 -3
- package/unbundled/form-element.cjs +0 -1
- package/unbundled/icon.cjs +0 -1
- package/unbundled/kbd-shortcut.cjs +0 -1
- package/unbundled/linkable.cjs +1 -2
- package/unbundled/linkable.js +1 -1
- package/unbundled/listbox.cjs +0 -2
- package/unbundled/listbox.js +0 -1
- package/unbundled/localized.cjs +0 -1
- package/unbundled/mixins.cjs +3 -54
- package/unbundled/mixins.js +3 -47
- package/unbundled/numberConverter.cjs +8 -3
- package/unbundled/numberConverter.js +8 -3
- package/unbundled/optgroup.cjs +0 -1
- package/unbundled/option.cjs +8 -1
- package/unbundled/option.js +3 -1
- package/unbundled/picker-field.template.cjs +1 -2
- package/unbundled/picker-field.template.js +1 -1
- package/unbundled/randomId.cjs +0 -1
- package/unbundled/{chunk.cjs → rolldown-runtime.cjs} +1 -1
- package/unbundled/scrollIntoView.cjs +0 -1
- package/unbundled/scrollIntoView.js +0 -1
- package/unbundled/slider.template.cjs +340 -2
- package/unbundled/slider.template.js +338 -5
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +2 -3
- package/unbundled/time-selection-picker.template.js +2 -2
- package/unbundled/vivid-element.cjs +63 -4
- package/unbundled/vivid-element.js +63 -3
- package/unbundled/with-contextual-help.cjs +0 -1
- package/unbundled/with-error-text.cjs +0 -1
- package/unbundled/with-success-text.cjs +0 -1
- package/video-player/definition.cjs +1 -1
- package/video-player/definition.js +1 -1
- package/video-player/index.cjs +31 -31
- package/video-player/index.js +2094 -2085
- package/visually-hidden/index.cjs +1 -1
- package/vivid.api.json +509 -1125
- package/lib/accordion/variations.browser-spec.d.ts +0 -1
- package/lib/action-group/variations.browser-spec.d.ts +0 -1
- package/lib/alert/variations.browser-spec.d.ts +0 -1
- package/lib/audio-player/variations.browser-spec.d.ts +0 -1
- package/lib/avatar/variations.browser-spec.d.ts +0 -1
- package/lib/badge/variations.browser-spec.d.ts +0 -1
- package/lib/banner/variations.browser-spec.d.ts +0 -1
- package/lib/breadcrumb-item/variations.browser-spec.d.ts +0 -1
- package/lib/button/variations.browser-spec.d.ts +0 -1
- package/lib/calendar/variations.browser-spec.d.ts +0 -1
- package/lib/calendar-event/variations.browser-spec.d.ts +0 -1
- package/lib/card/variations.browser-spec.d.ts +0 -1
- package/lib/checkbox/variations.browser-spec.d.ts +0 -1
- package/lib/color-picker/variations.browser-spec.d.ts +0 -1
- package/lib/combobox/variations.browser-spec.d.ts +0 -1
- package/lib/contextual-help/variations.browser-spec.d.ts +0 -1
- package/lib/country/variations.browser-spec.d.ts +0 -1
- package/lib/data-grid/variations.browser-spec.d.ts +0 -1
- package/lib/date-picker/variations.browser-spec.d.ts +0 -1
- package/lib/date-range-picker/variations.browser-spec.d.ts +0 -1
- package/lib/date-time-picker/variations.browser-spec.d.ts +0 -1
- package/lib/dial-pad/variations.browser-spec.d.ts +0 -1
- package/lib/dialog/variations.browser-spec.d.ts +0 -1
- package/lib/divider/variations.browser-spec.d.ts +0 -1
- package/lib/empty-state/variations.browser-spec.d.ts +0 -1
- package/lib/fab/variations.browser-spec.d.ts +0 -1
- package/lib/file-picker/variations.browser-spec.d.ts +0 -1
- package/lib/flag/variations.browser-spec.d.ts +0 -1
- package/lib/header/variations.browser-spec.d.ts +0 -1
- package/lib/icon/variations.browser-spec.d.ts +0 -1
- package/lib/kbd-key/variations.browser-spec.d.ts +0 -1
- package/lib/kbd-shortcut/variations.browser-spec.d.ts +0 -1
- package/lib/layout/variations.browser-spec.d.ts +0 -1
- package/lib/listbox/variations.browser-spec.d.ts +0 -1
- package/lib/menu/variations.browser-spec.d.ts +0 -1
- package/lib/menu-item/variations.browser-spec.d.ts +0 -1
- package/lib/nav/variations.browser-spec.d.ts +0 -1
- package/lib/nav-disclosure/variations.browser-spec.d.ts +0 -1
- package/lib/nav-item/variations.browser-spec.d.ts +0 -1
- package/lib/note/variations.browser-spec.d.ts +0 -1
- package/lib/number-field/variations.browser-spec.d.ts +0 -1
- package/lib/optgroup/variations.browser-spec.d.ts +0 -1
- package/lib/option/variations.browser-spec.d.ts +0 -1
- package/lib/pagination/variations.browser-spec.d.ts +0 -1
- package/lib/popover/variations.browser-spec.d.ts +0 -1
- package/lib/progress/variations.browser-spec.d.ts +0 -1
- package/lib/progress-ring/variations.browser-spec.d.ts +0 -1
- package/lib/radio/variations.browser-spec.d.ts +0 -1
- package/lib/radio-group/variations.browser-spec.d.ts +0 -1
- package/lib/range-slider/variations.browser-spec.d.ts +0 -1
- package/lib/rich-text-editor/variations.browser-spec.d.ts +0 -1
- package/lib/rich-text-view/variations.browser-spec.d.ts +0 -1
- package/lib/searchable-select/variations.browser-spec.d.ts +0 -1
- package/lib/select/variations.browser-spec.d.ts +0 -1
- package/lib/selectable-box/variations.browser-spec.d.ts +0 -1
- package/lib/side-drawer/variations.browser-spec.d.ts +0 -1
- package/lib/simple-color-picker/variations.browser-spec.d.ts +0 -1
- package/lib/slider/variations.browser-spec.d.ts +0 -1
- package/lib/split-button/variations.browser-spec.d.ts +0 -1
- package/lib/status/variations.browser-spec.d.ts +0 -1
- package/lib/switch/variations.browser-spec.d.ts +0 -1
- package/lib/table/variations.browser-spec.d.ts +0 -1
- package/lib/tabs/variations.browser-spec.d.ts +0 -1
- package/lib/tag/variations.browser-spec.d.ts +0 -1
- package/lib/text-area/variations.browser-spec.d.ts +0 -1
- package/lib/text-field/variations.browser-spec.d.ts +0 -1
- package/lib/time-picker/variations.browser-spec.d.ts +0 -1
- package/lib/toggletip/variations.browser-spec.d.ts +0 -1
- package/lib/tooltip/variations.browser-spec.d.ts +0 -1
- package/lib/tree-item/variations.browser-spec.d.ts +0 -1
- package/lib/video-player/variations.browser-spec.d.ts +0 -1
- /package/lib/{accordion-item/variations.browser-spec.d.ts → form-field/index.d.ts} +0 -0
- /package/unbundled/{chunk.js → rolldown-runtime.js} +0 -0
package/bundled/vivid-element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/interfaces.js
|
|
2
2
|
var e, t = "fast-kernel";
|
|
3
3
|
try {
|
|
4
4
|
if (document.currentScript) e = document.currentScript.getAttribute(t);
|
|
@@ -35,7 +35,6 @@ switch (e) {
|
|
|
35
35
|
contextEvent: `3.2${e}`,
|
|
36
36
|
elementRegistry: `4.2${e}`
|
|
37
37
|
});
|
|
38
|
-
break;
|
|
39
38
|
}
|
|
40
39
|
var r;
|
|
41
40
|
(function(e) {
|
|
@@ -43,12 +42,14 @@ var r;
|
|
|
43
42
|
})(r ||= {});
|
|
44
43
|
var i = (e) => typeof e == "function", a = (e) => typeof e == "string", o = () => void 0;
|
|
45
44
|
(function() {
|
|
46
|
-
if (!(typeof globalThis < "u"))
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
if (!(typeof globalThis < "u")) {
|
|
46
|
+
if (typeof global < "u") global.globalThis = global;
|
|
47
|
+
else if (typeof self < "u") self.globalThis = self;
|
|
48
|
+
else if (typeof window < "u") window.globalThis = window;
|
|
49
|
+
else {
|
|
50
|
+
let e = Function("return this")();
|
|
51
|
+
e.globalThis = e;
|
|
52
|
+
}
|
|
52
53
|
}
|
|
53
54
|
})(), (function() {
|
|
54
55
|
"requestIdleCallback" in globalThis || (globalThis.requestIdleCallback = function(e, t) {
|
|
@@ -64,7 +65,7 @@ var i = (e) => typeof e == "function", a = (e) => typeof e == "string", o = () =
|
|
|
64
65
|
});
|
|
65
66
|
})();
|
|
66
67
|
//#endregion
|
|
67
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
68
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/platform.js
|
|
68
69
|
var s = {
|
|
69
70
|
configurable: !1,
|
|
70
71
|
enumerable: !1,
|
|
@@ -91,7 +92,7 @@ function u() {
|
|
|
91
92
|
let e = /* @__PURE__ */ new Map();
|
|
92
93
|
return Object.freeze({
|
|
93
94
|
register(t) {
|
|
94
|
-
return e.has(t.type)
|
|
95
|
+
return !e.has(t.type) && (e.set(t.type, t), !0);
|
|
95
96
|
},
|
|
96
97
|
getByType(t) {
|
|
97
98
|
return e.get(t);
|
|
@@ -117,7 +118,7 @@ function f(e) {
|
|
|
117
118
|
e.prototype.toJSON = o;
|
|
118
119
|
}
|
|
119
120
|
//#endregion
|
|
120
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
121
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/dom.js
|
|
121
122
|
var p = Object.freeze({
|
|
122
123
|
none: 0,
|
|
123
124
|
attribute: 1,
|
|
@@ -204,7 +205,7 @@ var p = Object.freeze({
|
|
|
204
205
|
var n, r;
|
|
205
206
|
t ? (n = this.subscribers[t]) == null || n.unsubscribe(e) : (r = this.subjectSubscribers) == null || r.unsubscribe(e);
|
|
206
207
|
}
|
|
207
|
-
},
|
|
208
|
+
}, v = c.getById(n.updateQueue, () => {
|
|
208
209
|
let e = [], t = [], n = globalThis.requestAnimationFrame, r = !0;
|
|
209
210
|
function i() {
|
|
210
211
|
if (t.length) throw t.shift();
|
|
@@ -234,11 +235,11 @@ var p = Object.freeze({
|
|
|
234
235
|
process: o,
|
|
235
236
|
setMode: (e) => r = e
|
|
236
237
|
});
|
|
237
|
-
}),
|
|
238
|
+
}), y = Object.freeze({
|
|
238
239
|
unknown: void 0,
|
|
239
240
|
coupled: 1
|
|
240
|
-
}),
|
|
241
|
-
let e =
|
|
241
|
+
}), b = c.getById(n.observable, () => {
|
|
242
|
+
let e = v.enqueue, t = /(:|&&|\|\||if|\?\.)/, n = /* @__PURE__ */ new WeakMap(), o, s = (e) => {
|
|
242
243
|
throw c.error(r.needsArrayObservation);
|
|
243
244
|
};
|
|
244
245
|
function l(e) {
|
|
@@ -275,7 +276,7 @@ var p = Object.freeze({
|
|
|
275
276
|
return !e.isBound && this.requiresUnbind(e) && e.onUnbind(this), t;
|
|
276
277
|
}
|
|
277
278
|
requiresUnbind(e) {
|
|
278
|
-
return e.sourceLifetime !==
|
|
279
|
+
return e.sourceLifetime !== y.coupled || this.first !== this.last || this.first.propertySource !== e.source;
|
|
279
280
|
}
|
|
280
281
|
unbind(e) {
|
|
281
282
|
this.dispose();
|
|
@@ -358,15 +359,15 @@ var p = Object.freeze({
|
|
|
358
359
|
}
|
|
359
360
|
});
|
|
360
361
|
});
|
|
361
|
-
function
|
|
362
|
-
|
|
362
|
+
function re(e, t) {
|
|
363
|
+
b.defineProperty(e, t);
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
+
function ie(e, t, n) {
|
|
365
366
|
return Object.assign({}, n, { get() {
|
|
366
|
-
return
|
|
367
|
+
return b.trackVolatile(), n.get.apply(this);
|
|
367
368
|
} });
|
|
368
369
|
}
|
|
369
|
-
var
|
|
370
|
+
var ae = c.getById(n.contextEvent, () => {
|
|
370
371
|
let e = null;
|
|
371
372
|
return {
|
|
372
373
|
get() {
|
|
@@ -376,12 +377,12 @@ var oe = c.getById(n.contextEvent, () => {
|
|
|
376
377
|
e = t;
|
|
377
378
|
}
|
|
378
379
|
};
|
|
379
|
-
}),
|
|
380
|
+
}), x = Object.freeze({
|
|
380
381
|
default: {
|
|
381
382
|
index: 0,
|
|
382
383
|
length: 0,
|
|
383
384
|
get event() {
|
|
384
|
-
return
|
|
385
|
+
return x.getEvent();
|
|
385
386
|
},
|
|
386
387
|
eventDetail() {
|
|
387
388
|
return this.event.detail;
|
|
@@ -391,26 +392,26 @@ var oe = c.getById(n.contextEvent, () => {
|
|
|
391
392
|
}
|
|
392
393
|
},
|
|
393
394
|
getEvent() {
|
|
394
|
-
return
|
|
395
|
+
return ae.get();
|
|
395
396
|
},
|
|
396
397
|
setEvent(e) {
|
|
397
|
-
|
|
398
|
+
ae.set(e);
|
|
398
399
|
}
|
|
399
|
-
}),
|
|
400
|
+
}), S = class {
|
|
400
401
|
constructor(e, t, n = !1) {
|
|
401
402
|
this.evaluate = e, this.policy = t, this.isVolatile = n;
|
|
402
403
|
}
|
|
403
|
-
},
|
|
404
|
+
}, oe = class extends S {
|
|
404
405
|
createObserver(e) {
|
|
405
|
-
return
|
|
406
|
+
return b.binding(this.evaluate, e, this.isVolatile);
|
|
406
407
|
}
|
|
407
408
|
};
|
|
408
|
-
function
|
|
409
|
-
return new
|
|
409
|
+
function se(e, t, n = b.isVolatileBinding(e)) {
|
|
410
|
+
return new oe(e, t, n);
|
|
410
411
|
}
|
|
411
412
|
//#endregion
|
|
412
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
413
|
-
var ce = class extends
|
|
413
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/binding/one-time.js
|
|
414
|
+
var ce = class extends S {
|
|
414
415
|
createObserver() {
|
|
415
416
|
return this;
|
|
416
417
|
}
|
|
@@ -419,18 +420,18 @@ var ce = class extends x {
|
|
|
419
420
|
}
|
|
420
421
|
};
|
|
421
422
|
f(ce);
|
|
422
|
-
function
|
|
423
|
+
function le(e, t) {
|
|
423
424
|
return new ce(e, t);
|
|
424
425
|
}
|
|
425
426
|
//#endregion
|
|
426
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
427
|
-
var
|
|
428
|
-
function
|
|
429
|
-
return e.map((e) => e instanceof
|
|
427
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/styles/element-styles.js
|
|
428
|
+
var ue;
|
|
429
|
+
function de(e) {
|
|
430
|
+
return e.map((e) => e instanceof C ? de(e.styles) : [e]).reduce((e, t) => e.concat(t), []);
|
|
430
431
|
}
|
|
431
|
-
var
|
|
432
|
+
var C = class e {
|
|
432
433
|
get strategy() {
|
|
433
|
-
return this._strategy === null && this.withStrategy(
|
|
434
|
+
return this._strategy === null && this.withStrategy(ue), this._strategy;
|
|
434
435
|
}
|
|
435
436
|
constructor(t) {
|
|
436
437
|
this.styles = t, this.targets = /* @__PURE__ */ new WeakSet(), this._strategy = null, this.behaviors = t.map((t) => t instanceof e ? t.behaviors : null).reduce((e, t) => t === null ? e : e === null ? t : e.concat(t), null);
|
|
@@ -448,41 +449,41 @@ var w = class e {
|
|
|
448
449
|
return this.behaviors = this.behaviors === null ? e : this.behaviors.concat(e), this;
|
|
449
450
|
}
|
|
450
451
|
withStrategy(e) {
|
|
451
|
-
return this._strategy = new e(
|
|
452
|
+
return this._strategy = new e(de(this.styles)), this;
|
|
452
453
|
}
|
|
453
454
|
static setDefaultStrategy(e) {
|
|
454
|
-
|
|
455
|
+
ue = e;
|
|
455
456
|
}
|
|
456
457
|
static normalize(t) {
|
|
457
458
|
return t === void 0 ? void 0 : Array.isArray(t) ? new e(t) : t instanceof e ? t : new e([t]);
|
|
458
459
|
}
|
|
459
460
|
};
|
|
460
|
-
|
|
461
|
+
C.supportsAdoptedStyleSheets = Array.isArray(document.adoptedStyleSheets) && "replace" in CSSStyleSheet.prototype;
|
|
461
462
|
//#endregion
|
|
462
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
463
|
-
var
|
|
464
|
-
interpolation: (e) => `${
|
|
465
|
-
attribute: (e) => `${
|
|
466
|
-
comment: (e) => `<!--${
|
|
463
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/templating/markup.js
|
|
464
|
+
var w = `fast-${Math.random().toString(36).substring(2, 8)}`, T = `${w}{`, E = `}${w}`, fe = E.length, pe = 0, D = () => `${w}-${++pe}`, O = Object.freeze({
|
|
465
|
+
interpolation: (e) => `${T}${e}${E}`,
|
|
466
|
+
attribute: (e) => `${D()}="${T}${e}${E}"`,
|
|
467
|
+
comment: (e) => `<!--${T}${e}${E}-->`
|
|
467
468
|
}), k = Object.freeze({ parse(e, t) {
|
|
468
|
-
let n = e.split(
|
|
469
|
+
let n = e.split(T);
|
|
469
470
|
if (n.length === 1) return null;
|
|
470
471
|
let r = [];
|
|
471
472
|
for (let e = 0, i = n.length; e < i; ++e) {
|
|
472
|
-
let i = n[e], a = i.indexOf(
|
|
473
|
+
let i = n[e], a = i.indexOf(E), o;
|
|
473
474
|
if (a === -1) o = i;
|
|
474
475
|
else {
|
|
475
476
|
let e = i.substring(0, a);
|
|
476
|
-
r.push(t[e]), o = i.substring(a +
|
|
477
|
+
r.push(t[e]), o = i.substring(a + fe);
|
|
477
478
|
}
|
|
478
479
|
o !== "" && r.push(o);
|
|
479
480
|
}
|
|
480
481
|
return r;
|
|
481
|
-
} }),
|
|
482
|
-
getForInstance:
|
|
483
|
-
getByType:
|
|
482
|
+
} }), A = u(), j = Object.freeze({
|
|
483
|
+
getForInstance: A.getForInstance,
|
|
484
|
+
getByType: A.getByType,
|
|
484
485
|
define(e, t) {
|
|
485
|
-
return t ||= {}, t.type = e,
|
|
486
|
+
return t ||= {}, t.type = e, A.register(t), e;
|
|
486
487
|
},
|
|
487
488
|
assignAspect(e, t) {
|
|
488
489
|
if (!t) {
|
|
@@ -499,30 +500,28 @@ var T = `fast-${Math.random().toString(36).substring(2, 8)}`, E = `${T}{`, D = `
|
|
|
499
500
|
case "@":
|
|
500
501
|
e.targetAspect = t.substring(1), e.aspectType = p.event;
|
|
501
502
|
break;
|
|
502
|
-
default:
|
|
503
|
-
e.targetAspect = t, e.aspectType = p.attribute;
|
|
504
|
-
break;
|
|
503
|
+
default: e.targetAspect = t, e.aspectType = p.attribute;
|
|
505
504
|
}
|
|
506
505
|
}
|
|
507
|
-
}),
|
|
506
|
+
}), me = class {
|
|
508
507
|
constructor(e) {
|
|
509
508
|
this.options = e;
|
|
510
509
|
}
|
|
511
510
|
createHTML(e) {
|
|
512
|
-
return
|
|
511
|
+
return O.attribute(e(this));
|
|
513
512
|
}
|
|
514
513
|
createBehavior() {
|
|
515
514
|
return this;
|
|
516
515
|
}
|
|
517
516
|
};
|
|
518
|
-
f(
|
|
517
|
+
f(me);
|
|
519
518
|
//#endregion
|
|
520
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
521
|
-
var
|
|
522
|
-
function
|
|
519
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/components/hydration.js
|
|
520
|
+
var he = /fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/, ge = /fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/, _e = /fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/, ve = /fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/, ye = /^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/, be = /fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;
|
|
521
|
+
function xe(e) {
|
|
523
522
|
return e && e.nodeType === Node.COMMENT_NODE;
|
|
524
523
|
}
|
|
525
|
-
var
|
|
524
|
+
var M = Object.freeze({
|
|
526
525
|
attributeMarkerName: "data-fe-b",
|
|
527
526
|
compactAttributeMarkerName: "data-fe-c",
|
|
528
527
|
attributeBindingSeparator: " ",
|
|
@@ -539,22 +538,22 @@ var j = Object.freeze({
|
|
|
539
538
|
return `fe-repeat$$end$$${e}$$fe-repeat`;
|
|
540
539
|
},
|
|
541
540
|
isContentBindingStartMarker(e) {
|
|
542
|
-
return
|
|
541
|
+
return he.test(e);
|
|
543
542
|
},
|
|
544
543
|
isContentBindingEndMarker(e) {
|
|
545
|
-
return
|
|
544
|
+
return ge.test(e);
|
|
546
545
|
},
|
|
547
546
|
isRepeatViewStartMarker(e) {
|
|
548
|
-
return
|
|
547
|
+
return _e.test(e);
|
|
549
548
|
},
|
|
550
549
|
isRepeatViewEndMarker(e) {
|
|
551
|
-
return
|
|
550
|
+
return ve.test(e);
|
|
552
551
|
},
|
|
553
552
|
isElementBoundaryStartMarker(e) {
|
|
554
|
-
return
|
|
553
|
+
return xe(e) && ye.test(e.data.trim());
|
|
555
554
|
},
|
|
556
555
|
isElementBoundaryEndMarker(e) {
|
|
557
|
-
return
|
|
556
|
+
return xe(e) && be.test(e.data);
|
|
558
557
|
},
|
|
559
558
|
parseAttributeBinding(e) {
|
|
560
559
|
let t = e.getAttribute(this.attributeMarkerName);
|
|
@@ -585,70 +584,68 @@ var j = Object.freeze({
|
|
|
585
584
|
return o;
|
|
586
585
|
},
|
|
587
586
|
parseContentBindingStartMarker(e) {
|
|
588
|
-
return
|
|
587
|
+
return we(he, e);
|
|
589
588
|
},
|
|
590
589
|
parseContentBindingEndMarker(e) {
|
|
591
|
-
return
|
|
590
|
+
return we(ge, e);
|
|
592
591
|
},
|
|
593
592
|
parseRepeatStartMarker(e) {
|
|
594
|
-
return
|
|
593
|
+
return Se(_e, e);
|
|
595
594
|
},
|
|
596
595
|
parseRepeatEndMarker(e) {
|
|
597
|
-
return
|
|
596
|
+
return Se(ve, e);
|
|
598
597
|
},
|
|
599
598
|
parseElementBoundaryStartMarker(e) {
|
|
600
|
-
return
|
|
599
|
+
return Ce(ye, e.trim());
|
|
601
600
|
},
|
|
602
601
|
parseElementBoundaryEndMarker(e) {
|
|
603
|
-
return
|
|
602
|
+
return Ce(be, e);
|
|
604
603
|
}
|
|
605
604
|
});
|
|
606
|
-
function
|
|
605
|
+
function Se(e, t) {
|
|
607
606
|
let n = e.exec(t);
|
|
608
607
|
return n === null ? n : parseInt(n[1]);
|
|
609
608
|
}
|
|
610
|
-
function
|
|
609
|
+
function Ce(e, t) {
|
|
611
610
|
let n = e.exec(t);
|
|
612
611
|
return n === null ? n : n[1];
|
|
613
612
|
}
|
|
614
|
-
function
|
|
613
|
+
function we(e, t) {
|
|
615
614
|
let n = e.exec(t);
|
|
616
615
|
return n === null ? n : [parseInt(n[1]), n[2]];
|
|
617
616
|
}
|
|
618
|
-
var
|
|
619
|
-
function
|
|
620
|
-
return e[
|
|
617
|
+
var N = Symbol.for("fe-hydration");
|
|
618
|
+
function P(e) {
|
|
619
|
+
return e[N] === N;
|
|
621
620
|
}
|
|
622
|
-
var
|
|
621
|
+
var Te = "defer-hydration", Ee = class extends Error {
|
|
623
622
|
constructor(e, t, n) {
|
|
624
623
|
super(e), this.factories = t, this.node = n;
|
|
625
624
|
}
|
|
626
625
|
};
|
|
627
|
-
function
|
|
626
|
+
function F(e) {
|
|
628
627
|
return e.nodeType === Node.COMMENT_NODE;
|
|
629
628
|
}
|
|
630
|
-
function
|
|
629
|
+
function De(e) {
|
|
631
630
|
return e.nodeType === Node.TEXT_NODE;
|
|
632
631
|
}
|
|
633
|
-
function
|
|
632
|
+
function Oe(e, t) {
|
|
634
633
|
let n = document.createRange();
|
|
635
|
-
return n.setStart(e, 0), n.setEnd(t,
|
|
634
|
+
return n.setStart(e, 0), n.setEnd(t, F(t) || De(t) ? t.data.length : t.childNodes.length), n;
|
|
636
635
|
}
|
|
637
|
-
function
|
|
636
|
+
function ke(e) {
|
|
638
637
|
return e instanceof DocumentFragment && "mode" in e;
|
|
639
638
|
}
|
|
640
|
-
function
|
|
641
|
-
let r =
|
|
639
|
+
function Ae(e, t, n) {
|
|
640
|
+
let r = Oe(e, t), i = r.commonAncestorContainer, a = Pe(n), o = document.createTreeWalker(i, NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_COMMENT + NodeFilter.SHOW_TEXT, { acceptNode(e) {
|
|
642
641
|
return r.comparePoint(e, 0) === 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
643
642
|
} }), s = {}, c = {}, l = o.currentNode = e;
|
|
644
643
|
for (; l !== null;) {
|
|
645
644
|
switch (l.nodeType) {
|
|
646
645
|
case Node.ELEMENT_NODE:
|
|
647
|
-
|
|
648
|
-
break;
|
|
649
|
-
case Node.COMMENT_NODE:
|
|
650
|
-
Pe(l, o, n, s, c, a);
|
|
646
|
+
je(l, n, s, a);
|
|
651
647
|
break;
|
|
648
|
+
case Node.COMMENT_NODE: Me(l, o, n, s, c, a);
|
|
652
649
|
}
|
|
653
650
|
l = o.nextNode();
|
|
654
651
|
}
|
|
@@ -657,68 +654,68 @@ function Me(e, t, n) {
|
|
|
657
654
|
boundaries: c
|
|
658
655
|
};
|
|
659
656
|
}
|
|
660
|
-
function
|
|
661
|
-
let i =
|
|
657
|
+
function je(e, t, n, r) {
|
|
658
|
+
let i = M.parseAttributeBinding(e) ?? M.parseEnumeratedAttributeBinding(e) ?? M.parseCompactAttributeBinding(e);
|
|
662
659
|
if (i !== null) {
|
|
663
660
|
for (let a of i) {
|
|
664
661
|
let i = t[a + r];
|
|
665
|
-
if (!i) throw new
|
|
666
|
-
|
|
662
|
+
if (!i) throw new Ee(`HydrationView was unable to successfully target factory on ${e.nodeName} inside ${e.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`, t, e);
|
|
663
|
+
I(i, e, n);
|
|
667
664
|
}
|
|
668
|
-
e.removeAttribute(
|
|
665
|
+
e.removeAttribute(M.attributeMarkerName);
|
|
669
666
|
}
|
|
670
667
|
}
|
|
671
|
-
function
|
|
672
|
-
if (
|
|
673
|
-
|
|
668
|
+
function Me(e, t, n, r, i, a) {
|
|
669
|
+
if (M.isElementBoundaryStartMarker(e)) {
|
|
670
|
+
Ne(e, t);
|
|
674
671
|
return;
|
|
675
672
|
}
|
|
676
|
-
if (
|
|
677
|
-
let o =
|
|
673
|
+
if (M.isContentBindingStartMarker(e.data)) {
|
|
674
|
+
let o = M.parseContentBindingStartMarker(e.data);
|
|
678
675
|
if (o === null) return;
|
|
679
676
|
let [s, c] = o, l = n[s + a], u = [], d = t.nextSibling();
|
|
680
677
|
e.data = "";
|
|
681
678
|
let f = d;
|
|
682
679
|
for (; d !== null;) {
|
|
683
|
-
if (
|
|
684
|
-
let e =
|
|
680
|
+
if (F(d)) {
|
|
681
|
+
let e = M.parseContentBindingEndMarker(d.data);
|
|
685
682
|
if (e && e[1] === c) break;
|
|
686
683
|
}
|
|
687
684
|
u.push(d), d = t.nextSibling();
|
|
688
685
|
}
|
|
689
686
|
if (d === null) {
|
|
690
687
|
let t = e.getRootNode();
|
|
691
|
-
throw Error(`Error hydrating Comment node inside "${
|
|
688
|
+
throw Error(`Error hydrating Comment node inside "${ke(t) ? t.host.nodeName : t.nodeName}".`);
|
|
692
689
|
}
|
|
693
|
-
d.data = "", u.length === 1 &&
|
|
690
|
+
d.data = "", u.length === 1 && De(u[0]) ? I(l, u[0], r) : (d !== f && d.previousSibling !== null && (i[l.targetNodeId] = {
|
|
694
691
|
first: f,
|
|
695
692
|
last: d.previousSibling
|
|
696
|
-
}),
|
|
693
|
+
}), I(l, d.parentNode.insertBefore(document.createTextNode(""), d), r));
|
|
697
694
|
}
|
|
698
695
|
}
|
|
699
|
-
function
|
|
700
|
-
let n =
|
|
696
|
+
function Ne(e, t) {
|
|
697
|
+
let n = M.parseElementBoundaryStartMarker(e.data), r = t.nextSibling();
|
|
701
698
|
for (; r !== null;) {
|
|
702
|
-
if (
|
|
703
|
-
let e =
|
|
699
|
+
if (F(r)) {
|
|
700
|
+
let e = M.parseElementBoundaryEndMarker(r.data);
|
|
704
701
|
if (e && e === n) break;
|
|
705
702
|
}
|
|
706
703
|
r = t.nextSibling();
|
|
707
704
|
}
|
|
708
705
|
}
|
|
709
|
-
function
|
|
706
|
+
function Pe(e) {
|
|
710
707
|
let t = 0;
|
|
711
708
|
for (let n = 0, r = e.length; n < r && e[n].targetNodeId === "h"; ++n) t++;
|
|
712
709
|
return t;
|
|
713
710
|
}
|
|
714
|
-
function
|
|
711
|
+
function I(e, t, n) {
|
|
715
712
|
if (e.targetNodeId === void 0) throw Error("Factory could not be target to the node");
|
|
716
713
|
n[e.targetNodeId] = t;
|
|
717
714
|
}
|
|
718
715
|
//#endregion
|
|
719
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
720
|
-
var
|
|
721
|
-
function
|
|
716
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/templating/view.js
|
|
717
|
+
var Fe;
|
|
718
|
+
function L(e, t) {
|
|
722
719
|
let n = e.parentNode, r = e, i;
|
|
723
720
|
for (; r !== t;) {
|
|
724
721
|
if (i = r.nextSibling, !i) throw Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);
|
|
@@ -726,12 +723,12 @@ function Re(e, t) {
|
|
|
726
723
|
}
|
|
727
724
|
n.removeChild(t);
|
|
728
725
|
}
|
|
729
|
-
var
|
|
726
|
+
var Ie = class {
|
|
730
727
|
constructor() {
|
|
731
728
|
this.index = 0, this.length = 0;
|
|
732
729
|
}
|
|
733
730
|
get event() {
|
|
734
|
-
return
|
|
731
|
+
return x.getEvent();
|
|
735
732
|
}
|
|
736
733
|
get isEven() {
|
|
737
734
|
return this.index % 2 == 0;
|
|
@@ -754,9 +751,9 @@ var ze = class {
|
|
|
754
751
|
eventTarget() {
|
|
755
752
|
return this.event.target;
|
|
756
753
|
}
|
|
757
|
-
},
|
|
754
|
+
}, R = class extends Ie {
|
|
758
755
|
constructor(e, t, n) {
|
|
759
|
-
super(), this.fragment = e, this.factories = t, this.targets = n, this.behaviors = null, this.unbindables = [], this.source = null, this.isBound = !1, this.sourceLifetime =
|
|
756
|
+
super(), this.fragment = e, this.factories = t, this.targets = n, this.behaviors = null, this.unbindables = [], this.source = null, this.isBound = !1, this.sourceLifetime = y.unknown, this.context = this, this.firstChild = e.firstChild, this.lastChild = e.lastChild;
|
|
760
757
|
}
|
|
761
758
|
appendTo(e) {
|
|
762
759
|
e.appendChild(this.fragment);
|
|
@@ -777,7 +774,7 @@ var ze = class {
|
|
|
777
774
|
e.appendChild(t);
|
|
778
775
|
}
|
|
779
776
|
dispose() {
|
|
780
|
-
|
|
777
|
+
L(this.firstChild, this.lastChild), this.unbind();
|
|
781
778
|
}
|
|
782
779
|
onUnbind(e) {
|
|
783
780
|
this.unbindables.push(e);
|
|
@@ -808,21 +805,21 @@ var ze = class {
|
|
|
808
805
|
}
|
|
809
806
|
static disposeContiguousBatch(e) {
|
|
810
807
|
if (e.length !== 0) {
|
|
811
|
-
|
|
808
|
+
L(e[0].firstChild, e[e.length - 1].lastChild);
|
|
812
809
|
for (let t = 0, n = e.length; t < n; ++t) e[t].unbind();
|
|
813
810
|
}
|
|
814
811
|
}
|
|
815
812
|
};
|
|
816
|
-
f(
|
|
817
|
-
var
|
|
813
|
+
f(R), b.defineProperty(R.prototype, "index"), b.defineProperty(R.prototype, "length");
|
|
814
|
+
var z = {
|
|
818
815
|
unhydrated: "unhydrated",
|
|
819
816
|
hydrating: "hydrating",
|
|
820
817
|
hydrated: "hydrated"
|
|
821
|
-
},
|
|
818
|
+
}, Le = class extends Error {
|
|
822
819
|
constructor(e, t, n, r) {
|
|
823
820
|
super(e), this.factory = t, this.fragment = n, this.templateString = r;
|
|
824
821
|
}
|
|
825
|
-
},
|
|
822
|
+
}, Re = class extends Ie {
|
|
826
823
|
get hydrationStage() {
|
|
827
824
|
return this._hydrationStage;
|
|
828
825
|
}
|
|
@@ -833,16 +830,18 @@ var I = {
|
|
|
833
830
|
return this._bindingViewBoundaries;
|
|
834
831
|
}
|
|
835
832
|
constructor(e, t, n, r) {
|
|
836
|
-
super(), this.firstChild = e, this.lastChild = t, this.sourceTemplate = n, this.hostBindingTarget = r, this[
|
|
833
|
+
super(), this.firstChild = e, this.lastChild = t, this.sourceTemplate = n, this.hostBindingTarget = r, this[Fe] = N, this.context = this, this.source = null, this.isBound = !1, this.sourceLifetime = y.unknown, this.unbindables = [], this.fragment = null, this.behaviors = null, this._hydrationStage = z.unhydrated, this._bindingViewBoundaries = {}, this._targets = {}, this.factories = n.compile().factories;
|
|
837
834
|
}
|
|
838
835
|
insertBefore(e) {
|
|
839
|
-
if (this.fragment !== null)
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
836
|
+
if (this.fragment !== null) {
|
|
837
|
+
if (this.fragment.hasChildNodes()) e.parentNode.insertBefore(this.fragment, e);
|
|
838
|
+
else {
|
|
839
|
+
let t = this.lastChild;
|
|
840
|
+
if (e.previousSibling === t) return;
|
|
841
|
+
let n = e.parentNode, r = this.firstChild, i;
|
|
842
|
+
for (; r !== t;) i = r.nextSibling, n.insertBefore(r, e), r = i;
|
|
843
|
+
n.insertBefore(t, e);
|
|
844
|
+
}
|
|
846
845
|
}
|
|
847
846
|
}
|
|
848
847
|
appendTo(e) {
|
|
@@ -857,15 +856,15 @@ var I = {
|
|
|
857
856
|
e.appendChild(t);
|
|
858
857
|
}
|
|
859
858
|
bind(e, t = this) {
|
|
860
|
-
if (this.hydrationStage !==
|
|
859
|
+
if (this.hydrationStage !== z.hydrated && (this._hydrationStage = z.hydrating), this.source === e) return;
|
|
861
860
|
let n = this.behaviors;
|
|
862
861
|
if (n === null) {
|
|
863
862
|
this.source = e, this.context = t;
|
|
864
863
|
try {
|
|
865
|
-
let { targets: e, boundaries: t } =
|
|
864
|
+
let { targets: e, boundaries: t } = Ae(this.firstChild, this.lastChild, this.factories);
|
|
866
865
|
this._targets = e, this._bindingViewBoundaries = t;
|
|
867
866
|
} catch (e) {
|
|
868
|
-
if (e instanceof
|
|
867
|
+
if (e instanceof Ee) {
|
|
869
868
|
let t = this.sourceTemplate.html;
|
|
870
869
|
typeof t != "string" && (t = t.innerHTML), e.templateString = t;
|
|
871
870
|
}
|
|
@@ -875,7 +874,7 @@ var I = {
|
|
|
875
874
|
let r = this.factories;
|
|
876
875
|
for (let e = 0, t = r.length; e < t; ++e) {
|
|
877
876
|
let t = r[e];
|
|
878
|
-
if (t.targetNodeId === "h" && this.hostBindingTarget &&
|
|
877
|
+
if (t.targetNodeId === "h" && this.hostBindingTarget && I(t, this.hostBindingTarget, this._targets), t.targetNodeId in this.targets) {
|
|
879
878
|
let r = t.createBehavior();
|
|
880
879
|
r.bind(this), n[e] = r;
|
|
881
880
|
} else {
|
|
@@ -887,20 +886,20 @@ var I = {
|
|
|
887
886
|
` - Expected target node ID: "${t.targetNodeId}"`,
|
|
888
887
|
` - Available target IDs: [${Object.keys(this.targets).join(", ") || "none"}]`
|
|
889
888
|
];
|
|
890
|
-
throw t.targetTagName && i.push(` - Expected tag name: "${t.targetTagName}"`), r.sourceAspect && i.push(` - Source aspect: "${r.sourceAspect}"`), r.aspectType !== void 0 && i.push(` - Aspect type: ${r.aspectType}`), i.push("\nThis usually means:", " 1. The server-rendered HTML doesn't match the client template", " 2. The hydration markers are missing or corrupted", " 3. The DOM structure was modified before hydration", `\nTemplate: ${e.slice(0, 200)}${e.length > 200 ? "..." : ""}`), new
|
|
889
|
+
throw t.targetTagName && i.push(` - Expected tag name: "${t.targetTagName}"`), r.sourceAspect && i.push(` - Source aspect: "${r.sourceAspect}"`), r.aspectType !== void 0 && i.push(` - Aspect type: ${r.aspectType}`), i.push("\nThis usually means:", " 1. The server-rendered HTML doesn't match the client template", " 2. The hydration markers are missing or corrupted", " 3. The DOM structure was modified before hydration", `\nTemplate: ${e.slice(0, 200)}${e.length > 200 ? "..." : ""}`), new Le(i.join("\n"), t, Oe(this.firstChild, this.lastChild).cloneContents(), e);
|
|
891
890
|
}
|
|
892
891
|
}
|
|
893
892
|
} else {
|
|
894
893
|
this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = e, this.context = t;
|
|
895
894
|
for (let e = 0, t = n.length; e < t; ++e) n[e].bind(this);
|
|
896
895
|
}
|
|
897
|
-
this.isBound = !0, this._hydrationStage =
|
|
896
|
+
this.isBound = !0, this._hydrationStage = z.hydrated;
|
|
898
897
|
}
|
|
899
898
|
unbind() {
|
|
900
899
|
!this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
|
|
901
900
|
}
|
|
902
901
|
dispose() {
|
|
903
|
-
|
|
902
|
+
L(this.firstChild, this.lastChild), this.unbind();
|
|
904
903
|
}
|
|
905
904
|
onUnbind(e) {
|
|
906
905
|
this.unbindables.push(e);
|
|
@@ -911,28 +910,29 @@ var I = {
|
|
|
911
910
|
e.length = 0;
|
|
912
911
|
}
|
|
913
912
|
};
|
|
914
|
-
|
|
913
|
+
Fe = N, f(Re);
|
|
915
914
|
//#endregion
|
|
916
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
917
|
-
function
|
|
915
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/templating/html-binding-directive.js
|
|
916
|
+
function ze(e) {
|
|
918
917
|
return e.create !== void 0;
|
|
919
918
|
}
|
|
920
|
-
function
|
|
921
|
-
if (n ??= "",
|
|
919
|
+
function Be(e, t, n, r) {
|
|
920
|
+
if (n ??= "", ze(n)) {
|
|
922
921
|
e.textContent = "";
|
|
923
922
|
let t = e.$fastView;
|
|
924
|
-
if (t === void 0)
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
923
|
+
if (t === void 0) {
|
|
924
|
+
if (P(r) && P(n) && r.bindingViewBoundaries[this.targetNodeId] !== void 0 && r.hydrationStage !== z.hydrated) {
|
|
925
|
+
let e = r.bindingViewBoundaries[this.targetNodeId];
|
|
926
|
+
t = n.hydrate(e.first, e.last);
|
|
927
|
+
} else t = n.create();
|
|
928
|
+
} else e.$fastTemplate !== n && (t.isComposed && (t.remove(), t.unbind()), t = n.create());
|
|
929
929
|
t.isComposed ? t.needsBindOnly && (t.needsBindOnly = !1, t.bind(r.source, r.context)) : (t.isComposed = !0, t.bind(r.source, r.context), t.insertBefore(e), e.$fastView = t, e.$fastTemplate = n);
|
|
930
930
|
} else {
|
|
931
931
|
let t = e.$fastView;
|
|
932
932
|
t !== void 0 && t.isComposed && (t.isComposed = !1, t.remove(), t.needsBindOnly ? t.needsBindOnly = !1 : t.unbind()), e.textContent = n;
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Ve(e, t, n) {
|
|
936
936
|
let r = `${this.id}-t`, i = e[r] ?? (e[r] = {
|
|
937
937
|
v: 0,
|
|
938
938
|
cv: Object.create(null)
|
|
@@ -949,30 +949,30 @@ function We(e, t, n) {
|
|
|
949
949
|
for (let e in a) a[e] === o && s.remove(e);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
var
|
|
952
|
+
var He = {
|
|
953
953
|
[p.attribute]: g.setAttribute,
|
|
954
954
|
[p.booleanAttribute]: g.setBooleanAttribute,
|
|
955
955
|
[p.property]: (e, t, n) => e[t] = n,
|
|
956
|
-
[p.content]:
|
|
957
|
-
[p.tokenList]:
|
|
956
|
+
[p.content]: Be,
|
|
957
|
+
[p.tokenList]: Ve,
|
|
958
958
|
[p.event]: () => void 0
|
|
959
|
-
},
|
|
959
|
+
}, B = class {
|
|
960
960
|
constructor(e) {
|
|
961
961
|
this.dataBinding = e, this.updateTarget = null, this.aspectType = p.content;
|
|
962
962
|
}
|
|
963
963
|
createHTML(e) {
|
|
964
|
-
return
|
|
964
|
+
return O.interpolation(e(this));
|
|
965
965
|
}
|
|
966
966
|
createBehavior() {
|
|
967
967
|
if (this.updateTarget === null) {
|
|
968
|
-
let e =
|
|
968
|
+
let e = He[this.aspectType], t = this.dataBinding.policy ?? this.policy;
|
|
969
969
|
if (!e) throw c.error(r.unsupportedBindingBehavior);
|
|
970
970
|
this.data = `${this.id}-d`, this.updateTarget = t.protect(this.targetTagName, this.aspectType, this.targetAspect, e);
|
|
971
971
|
}
|
|
972
972
|
return this;
|
|
973
973
|
}
|
|
974
974
|
bind(e) {
|
|
975
|
-
let t = e.targets[this.targetNodeId], n =
|
|
975
|
+
let t = e.targets[this.targetNodeId], n = P(e) && e.hydrationStage && e.hydrationStage !== z.hydrated;
|
|
976
976
|
switch (this.aspectType) {
|
|
977
977
|
case p.event:
|
|
978
978
|
t[this.data] = e, t.addEventListener(this.targetAspect, this, this.dataBinding.options);
|
|
@@ -996,9 +996,9 @@ var Ge = {
|
|
|
996
996
|
handleEvent(e) {
|
|
997
997
|
let t = e.currentTarget[this.data];
|
|
998
998
|
if (t.isBound) {
|
|
999
|
-
|
|
999
|
+
x.setEvent(e);
|
|
1000
1000
|
let n = this.dataBinding.evaluate(t.source, t.context);
|
|
1001
|
-
|
|
1001
|
+
x.setEvent(null), n !== !0 && e.preventDefault();
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
handleChange(e, t) {
|
|
@@ -1008,31 +1008,31 @@ var Ge = {
|
|
|
1008
1008
|
this.updateTarget(r, this.targetAspect, t.bind(n), n);
|
|
1009
1009
|
}
|
|
1010
1010
|
};
|
|
1011
|
-
|
|
1011
|
+
j.define(B, { aspected: !0 });
|
|
1012
1012
|
//#endregion
|
|
1013
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
1014
|
-
var
|
|
1013
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/templating/compiler.js
|
|
1014
|
+
var Ue = (e, t) => `${e}.${t}`, We = {}, V = {
|
|
1015
1015
|
index: 0,
|
|
1016
1016
|
node: null
|
|
1017
1017
|
};
|
|
1018
|
-
function
|
|
1018
|
+
function Ge(e) {
|
|
1019
1019
|
e.startsWith("fast-") || c.warn(r.hostBindingWithoutHost, { name: e });
|
|
1020
1020
|
}
|
|
1021
|
-
var
|
|
1021
|
+
var Ke = new Proxy(document.createElement("div"), {
|
|
1022
1022
|
get(e, t) {
|
|
1023
|
-
|
|
1023
|
+
Ge(t);
|
|
1024
1024
|
let n = Reflect.get(e, t);
|
|
1025
1025
|
return i(n) ? n.bind(e) : n;
|
|
1026
1026
|
},
|
|
1027
1027
|
set(e, t, n) {
|
|
1028
|
-
return
|
|
1028
|
+
return Ge(t), Reflect.set(e, t, n);
|
|
1029
1029
|
}
|
|
1030
|
-
}),
|
|
1030
|
+
}), qe = class {
|
|
1031
1031
|
constructor(e, t, n) {
|
|
1032
1032
|
this.fragment = e, this.directives = t, this.policy = n, this.proto = null, this.nodeIds = /* @__PURE__ */ new Set(), this.descriptors = {}, this.factories = [];
|
|
1033
1033
|
}
|
|
1034
1034
|
addFactory(e, t, n, r, i) {
|
|
1035
|
-
this.nodeIds.has(n) || (this.nodeIds.add(n), this.addTargetDescriptor(t, n, r)), e.id = e.id ??
|
|
1035
|
+
this.nodeIds.has(n) || (this.nodeIds.add(n), this.addTargetDescriptor(t, n, r)), e.id = e.id ?? D(), e.targetNodeId = n, e.targetTagName = i, e.policy = e.policy ?? this.policy, this.factories.push(e);
|
|
1036
1036
|
}
|
|
1037
1037
|
freeze() {
|
|
1038
1038
|
return this.proto = Object.create(null, this.descriptors), this;
|
|
@@ -1044,10 +1044,10 @@ var Ye = new Proxy(document.createElement("div"), {
|
|
|
1044
1044
|
let t = e.lastIndexOf("."), n = e.substring(0, t), r = parseInt(e.substring(t + 1), 10);
|
|
1045
1045
|
this.addTargetDescriptor(n, e, r);
|
|
1046
1046
|
}
|
|
1047
|
-
let i =
|
|
1047
|
+
let i = We[t];
|
|
1048
1048
|
if (!i) {
|
|
1049
1049
|
let r = `_${t}`;
|
|
1050
|
-
|
|
1050
|
+
We[t] = i = { get() {
|
|
1051
1051
|
return this[r] ?? (this[r] = this[e].childNodes[n]);
|
|
1052
1052
|
} };
|
|
1053
1053
|
}
|
|
@@ -1055,130 +1055,128 @@ var Ye = new Proxy(document.createElement("div"), {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
createView(e) {
|
|
1057
1057
|
let t = this.fragment.cloneNode(!0), n = Object.create(this.proto);
|
|
1058
|
-
n.r = t, n.h = e ??
|
|
1058
|
+
n.r = t, n.h = e ?? Ke;
|
|
1059
1059
|
for (let e of this.nodeIds) Reflect.get(n, e);
|
|
1060
|
-
return new
|
|
1060
|
+
return new R(t, this.factories, n);
|
|
1061
1061
|
}
|
|
1062
1062
|
};
|
|
1063
|
-
function
|
|
1063
|
+
function Je(e, t, n, r, i, a = !1) {
|
|
1064
1064
|
let o = n.attributes, s = e.directives;
|
|
1065
1065
|
for (let c = 0, l = o.length; c < l; ++c) {
|
|
1066
1066
|
let u = o[c], d = u.value, f = k.parse(d, s), p = null;
|
|
1067
|
-
f === null ? a && (p = new
|
|
1067
|
+
f === null ? a && (p = new B(le(() => d, e.policy)), j.assignAspect(p, u.name)) : p = et.aggregate(f, e.policy), p !== null && (n.removeAttributeNode(u), c--, l--, e.addFactory(p, t, r, i, n.tagName));
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function Ye(e, t, n, r, i) {
|
|
1071
1071
|
let o = k.parse(t.textContent, e.directives);
|
|
1072
|
-
if (o === null) return
|
|
1072
|
+
if (o === null) return V.node = t.nextSibling, V.index = i + 1, V;
|
|
1073
1073
|
let s, c = s = t;
|
|
1074
1074
|
for (let t = 0, l = o.length; t < l; ++t) {
|
|
1075
1075
|
let l = o[t];
|
|
1076
|
-
t !== 0 && (i++, r =
|
|
1076
|
+
t !== 0 && (i++, r = Ue(n, i), s = c.parentNode.insertBefore(document.createTextNode(""), c.nextSibling)), a(l) ? s.textContent = l : (s.textContent = " ", j.assignAspect(l), e.addFactory(l, n, r, i, null)), c = s;
|
|
1077
1077
|
}
|
|
1078
|
-
return
|
|
1078
|
+
return V.index = i + 1, V.node = c.nextSibling, V;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function Xe(e, t, n) {
|
|
1081
1081
|
let r = 0, i = t.firstChild;
|
|
1082
1082
|
for (; i;) {
|
|
1083
|
-
let t =
|
|
1083
|
+
let t = Ze(e, n, i, r);
|
|
1084
1084
|
i = t.node, r = t.index;
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
let i =
|
|
1087
|
+
function Ze(e, t, n, r) {
|
|
1088
|
+
let i = Ue(t, r);
|
|
1089
1089
|
switch (n.nodeType) {
|
|
1090
1090
|
case 1:
|
|
1091
|
-
|
|
1091
|
+
Je(e, t, n, i, r), Xe(e, n, i);
|
|
1092
1092
|
break;
|
|
1093
|
-
case 3: return
|
|
1093
|
+
case 3: return Ye(e, n, t, i, r);
|
|
1094
1094
|
case 8: {
|
|
1095
1095
|
let a = k.parse(n.data, e.directives);
|
|
1096
|
-
a !== null && e.addFactory(
|
|
1096
|
+
a !== null && e.addFactory(et.aggregate(a), t, i, r, null);
|
|
1097
1097
|
break;
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
|
-
return
|
|
1100
|
+
return V.index = r + 1, V.node = n.nextSibling, V;
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function Qe(e, t) {
|
|
1103
1103
|
return e && e.nodeType === 8 && k.parse(e.data, t) !== null;
|
|
1104
1104
|
}
|
|
1105
|
-
var
|
|
1105
|
+
var $e = "TEMPLATE", et = {
|
|
1106
1106
|
compile(e, t, n = g.policy) {
|
|
1107
1107
|
let r;
|
|
1108
1108
|
if (a(e)) {
|
|
1109
|
-
r = document.createElement(
|
|
1109
|
+
r = document.createElement($e), r.innerHTML = n.createHTML(e);
|
|
1110
1110
|
let t = r.content.firstElementChild;
|
|
1111
|
-
t !== null && t.tagName ===
|
|
1111
|
+
t !== null && t.tagName === $e && (r = t);
|
|
1112
1112
|
} else r = e;
|
|
1113
1113
|
!r.content.firstChild && !r.content.lastChild && r.content.appendChild(document.createComment(""));
|
|
1114
|
-
let i = document.adoptNode(r.content), o = new
|
|
1115
|
-
return
|
|
1114
|
+
let i = document.adoptNode(r.content), o = new qe(i, t, n);
|
|
1115
|
+
return Je(o, "", r, "h", 0, !0), (Qe(i.firstChild, t) || i.childNodes.length === 1 && Object.keys(t).length > 0) && i.insertBefore(document.createComment(""), i.firstChild), Xe(o, i, "r"), V.node = null, o.freeze();
|
|
1116
1116
|
},
|
|
1117
1117
|
setDefaultStrategy(e) {
|
|
1118
1118
|
this.compile = e;
|
|
1119
1119
|
},
|
|
1120
1120
|
aggregate(e, t = g.policy) {
|
|
1121
1121
|
if (e.length === 1) return e[0];
|
|
1122
|
-
let n, r = !1, i, o = e.length, s = e.map((e) => a(e) ? () => e : (n = e.sourceAspect || n, r ||= e.dataBinding.isVolatile, i ||= e.dataBinding.policy, e.dataBinding.evaluate)), c = new
|
|
1122
|
+
let n, r = !1, i, o = e.length, s = e.map((e) => a(e) ? () => e : (n = e.sourceAspect || n, r ||= e.dataBinding.isVolatile, i ||= e.dataBinding.policy, e.dataBinding.evaluate)), c = new B(se((e, t) => {
|
|
1123
1123
|
let n = "";
|
|
1124
1124
|
for (let r = 0; r < o; ++r) n += s[r](e, t);
|
|
1125
1125
|
return n;
|
|
1126
1126
|
}, i ?? t, r));
|
|
1127
|
-
return
|
|
1127
|
+
return j.assignAspect(c, n), c;
|
|
1128
1128
|
}
|
|
1129
|
-
},
|
|
1129
|
+
}, tt = "boolean", nt = "reflect", rt = Object.freeze({ locate: d() }), it = {
|
|
1130
1130
|
toView(e) {
|
|
1131
1131
|
return e ? "true" : "false";
|
|
1132
1132
|
},
|
|
1133
1133
|
fromView(e) {
|
|
1134
|
-
return
|
|
1134
|
+
return e != null && e !== "false" && e !== !1 && e !== 0;
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
|
-
function
|
|
1137
|
+
function at(e) {
|
|
1138
1138
|
if (e == null) return null;
|
|
1139
1139
|
let t = e * 1;
|
|
1140
1140
|
return isNaN(t) ? null : t;
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1142
|
+
var ot = {
|
|
1143
1143
|
toView(e) {
|
|
1144
|
-
let t =
|
|
1144
|
+
let t = at(e);
|
|
1145
1145
|
return t && t.toString();
|
|
1146
1146
|
},
|
|
1147
|
-
fromView:
|
|
1148
|
-
},
|
|
1149
|
-
constructor(e, t, n = t.toLowerCase(), r =
|
|
1150
|
-
this.guards = /* @__PURE__ */ new Set(), this.Owner = e, this.name = t, this.attribute = n, this.mode = r, this.converter = i, this.fieldName = `_${t}`, this.callbackName = `${t}Changed`, this.hasCallback = this.callbackName in e.prototype, r ===
|
|
1147
|
+
fromView: at
|
|
1148
|
+
}, st = class e {
|
|
1149
|
+
constructor(e, t, n = t.toLowerCase(), r = nt, i) {
|
|
1150
|
+
this.guards = /* @__PURE__ */ new Set(), this.Owner = e, this.name = t, this.attribute = n, this.mode = r, this.converter = i, this.fieldName = `_${t}`, this.callbackName = `${t}Changed`, this.hasCallback = this.callbackName in e.prototype, r === tt && i === void 0 && (this.converter = it);
|
|
1151
1151
|
}
|
|
1152
1152
|
setValue(e, t) {
|
|
1153
1153
|
let n = e[this.fieldName], r = this.converter;
|
|
1154
1154
|
r !== void 0 && (t = r.fromView(t)), n !== t && (e[this.fieldName] = t, this.tryReflectToAttribute(e), this.hasCallback && e[this.callbackName](n, t), e.$fastController.notify(this.name));
|
|
1155
1155
|
}
|
|
1156
1156
|
getValue(e) {
|
|
1157
|
-
return
|
|
1157
|
+
return b.track(e, this.name), e[this.fieldName];
|
|
1158
1158
|
}
|
|
1159
1159
|
onAttributeChangedCallback(e, t) {
|
|
1160
1160
|
this.guards.has(e) || (this.guards.add(e), this.setValue(e, t), this.guards.delete(e));
|
|
1161
1161
|
}
|
|
1162
1162
|
tryReflectToAttribute(e) {
|
|
1163
1163
|
let t = this.mode, n = this.guards;
|
|
1164
|
-
n.has(e) || t === "fromView" ||
|
|
1164
|
+
n.has(e) || t === "fromView" || v.enqueue(() => {
|
|
1165
1165
|
n.add(e);
|
|
1166
1166
|
let r = e[this.fieldName];
|
|
1167
1167
|
switch (t) {
|
|
1168
|
-
case
|
|
1168
|
+
case nt:
|
|
1169
1169
|
let t = this.converter;
|
|
1170
1170
|
g.setAttribute(e, this.attribute, t === void 0 ? r : t.toView(r));
|
|
1171
1171
|
break;
|
|
1172
|
-
case
|
|
1173
|
-
g.setBooleanAttribute(e, this.attribute, r);
|
|
1174
|
-
break;
|
|
1172
|
+
case tt: g.setBooleanAttribute(e, this.attribute, r);
|
|
1175
1173
|
}
|
|
1176
1174
|
n.delete(e);
|
|
1177
1175
|
});
|
|
1178
1176
|
}
|
|
1179
1177
|
static collect(t, ...n) {
|
|
1180
1178
|
let r = [];
|
|
1181
|
-
n.push(
|
|
1179
|
+
n.push(rt.locate(t));
|
|
1182
1180
|
for (let i = 0, o = n.length; i < o; ++i) {
|
|
1183
1181
|
let o = n[i];
|
|
1184
1182
|
if (o !== void 0) for (let n = 0, i = o.length; n < i; ++n) {
|
|
@@ -1189,10 +1187,10 @@ var ct = {
|
|
|
1189
1187
|
return r;
|
|
1190
1188
|
}
|
|
1191
1189
|
};
|
|
1192
|
-
function
|
|
1190
|
+
function ct(e, t) {
|
|
1193
1191
|
let n;
|
|
1194
1192
|
function r(e, t) {
|
|
1195
|
-
arguments.length > 1 && (n.property = t),
|
|
1193
|
+
arguments.length > 1 && (n.property = t), rt.locate(e.constructor).push(n);
|
|
1196
1194
|
}
|
|
1197
1195
|
if (arguments.length > 1) {
|
|
1198
1196
|
n = {}, r(e, t);
|
|
@@ -1201,8 +1199,8 @@ function ut(e, t) {
|
|
|
1201
1199
|
return n = e === void 0 ? {} : e, r;
|
|
1202
1200
|
}
|
|
1203
1201
|
//#endregion
|
|
1204
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
1205
|
-
var
|
|
1202
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/components/fast-definitions.js
|
|
1203
|
+
var lt = function(e, t, n, r) {
|
|
1206
1204
|
function i(e) {
|
|
1207
1205
|
return e instanceof n ? e : new n(function(t) {
|
|
1208
1206
|
t(e);
|
|
@@ -1228,53 +1226,53 @@ var dt = function(e, t, n, r) {
|
|
|
1228
1226
|
}
|
|
1229
1227
|
c((r = r.apply(e, t || [])).next());
|
|
1230
1228
|
});
|
|
1231
|
-
},
|
|
1229
|
+
}, ut = { mode: "open" }, dt = {}, ft = /* @__PURE__ */ new Set(), H = c.getById(n.elementRegistry, () => u()), pt = { deferAndHydrate: "defer-and-hydrate" }, U = class e {
|
|
1232
1230
|
get isDefined() {
|
|
1233
1231
|
return this.platformDefined;
|
|
1234
1232
|
}
|
|
1235
|
-
constructor(
|
|
1236
|
-
this.platformDefined = !1, a(
|
|
1237
|
-
let
|
|
1238
|
-
for (let e = 0, t =
|
|
1239
|
-
let t =
|
|
1240
|
-
|
|
1233
|
+
constructor(t, n = t.definition) {
|
|
1234
|
+
this.platformDefined = !1, a(n) && (n = { name: n }), this.type = t, this.name = n.name, this.template = n.template, this.templateOptions = n.templateOptions, this.registry = n.registry ?? customElements;
|
|
1235
|
+
let r = t.prototype, i = st.collect(t, n.attributes), o = Array(i.length), s = {}, c = {};
|
|
1236
|
+
for (let e = 0, t = i.length; e < t; ++e) {
|
|
1237
|
+
let t = i[e];
|
|
1238
|
+
o[e] = t.attribute, s[t.name] = t, c[t.attribute] = t, b.defineProperty(r, t);
|
|
1241
1239
|
}
|
|
1242
|
-
Reflect.defineProperty(
|
|
1243
|
-
value:
|
|
1240
|
+
Reflect.defineProperty(t, "observedAttributes", {
|
|
1241
|
+
value: o,
|
|
1244
1242
|
enumerable: !0
|
|
1245
|
-
}), this.attributes =
|
|
1243
|
+
}), this.attributes = i, this.propertyLookup = s, this.attributeLookup = c, this.shadowOptions = n.shadowOptions === void 0 ? ut : n.shadowOptions === null ? void 0 : Object.assign(Object.assign({}, ut), n.shadowOptions), this.elementOptions = n.elementOptions === void 0 ? dt : Object.assign(Object.assign({}, dt), n.elementOptions), this.styles = C.normalize(n.styles), H.register(this), b.defineProperty(e.isRegistered, this.name), e.isRegistered[this.name] = this.type;
|
|
1246
1244
|
}
|
|
1247
1245
|
define(e = this.registry) {
|
|
1248
1246
|
var t, n;
|
|
1249
1247
|
let r = this.type;
|
|
1250
1248
|
return e.get(this.name) || (this.platformDefined = !0, e.define(this.name, r, this.elementOptions), (n = (t = this.lifecycleCallbacks)?.elementDidDefine) == null || n.call(t, this.name)), this;
|
|
1251
1249
|
}
|
|
1252
|
-
static compose(
|
|
1253
|
-
return
|
|
1250
|
+
static compose(t, n) {
|
|
1251
|
+
return ft.has(t) || H.getByType(t) ? new e(class extends t {}, n) : new e(t, n);
|
|
1254
1252
|
}
|
|
1255
1253
|
static registerBaseType(e) {
|
|
1256
|
-
|
|
1254
|
+
ft.add(e);
|
|
1257
1255
|
}
|
|
1258
|
-
static composeAsync(
|
|
1259
|
-
return new Promise((
|
|
1260
|
-
(
|
|
1261
|
-
let
|
|
1262
|
-
|
|
1256
|
+
static composeAsync(t, n) {
|
|
1257
|
+
return new Promise((r) => {
|
|
1258
|
+
(ft.has(t) || H.getByType(t)) && r(new e(class extends t {}, n));
|
|
1259
|
+
let i = new e(t, n);
|
|
1260
|
+
b.getNotifier(i).subscribe({ handleChange: () => {
|
|
1263
1261
|
var e, t;
|
|
1264
|
-
(t = (e =
|
|
1262
|
+
(t = (e = i.lifecycleCallbacks)?.templateDidUpdate) == null || t.call(e, i.name), r(i);
|
|
1265
1263
|
} }, "template");
|
|
1266
1264
|
});
|
|
1267
1265
|
}
|
|
1268
1266
|
};
|
|
1269
|
-
|
|
1267
|
+
U.isRegistered = {}, U.getByType = H.getByType, U.getForInstance = H.getForInstance, U.registerAsync = (e) => lt(void 0, void 0, void 0, function* () {
|
|
1270
1268
|
return new Promise((t) => {
|
|
1271
|
-
|
|
1269
|
+
U.isRegistered[e] && t(U.isRegistered[e]), b.getNotifier(U.isRegistered).subscribe({ handleChange: () => t(U.isRegistered[e]) }, e);
|
|
1272
1270
|
});
|
|
1273
|
-
}),
|
|
1271
|
+
}), b.defineProperty(U.prototype, "template");
|
|
1274
1272
|
//#endregion
|
|
1275
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
1276
|
-
var
|
|
1277
|
-
constructor(e, t =
|
|
1273
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/templating/template.js
|
|
1274
|
+
var mt = /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/, ht = Object.create(null), W = class {
|
|
1275
|
+
constructor(e, t = ht) {
|
|
1278
1276
|
this.html = e, this.factories = t;
|
|
1279
1277
|
}
|
|
1280
1278
|
createHTML(e) {
|
|
@@ -1283,20 +1281,20 @@ var ht = /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*
|
|
|
1283
1281
|
return this.html;
|
|
1284
1282
|
}
|
|
1285
1283
|
};
|
|
1286
|
-
W.empty = new W(""),
|
|
1287
|
-
function
|
|
1284
|
+
W.empty = new W(""), j.define(W);
|
|
1285
|
+
function gt(e, t, n, r = j.getForInstance(e)) {
|
|
1288
1286
|
if (r.aspected) {
|
|
1289
|
-
let n =
|
|
1290
|
-
n !== null &&
|
|
1287
|
+
let n = mt.exec(t);
|
|
1288
|
+
n !== null && j.assignAspect(e, n[2]);
|
|
1291
1289
|
}
|
|
1292
1290
|
return e.createHTML(n);
|
|
1293
1291
|
}
|
|
1294
|
-
var
|
|
1292
|
+
var _t = class e {
|
|
1295
1293
|
constructor(e, t = {}, n) {
|
|
1296
1294
|
this.policy = n, this.result = null, this.html = e, this.factories = t;
|
|
1297
1295
|
}
|
|
1298
1296
|
compile() {
|
|
1299
|
-
return this.result === null && (this.result =
|
|
1297
|
+
return this.result === null && (this.result = et.compile(this.html, this.factories, this.policy)), this.result;
|
|
1300
1298
|
}
|
|
1301
1299
|
create(e) {
|
|
1302
1300
|
return this.compile().createView(e);
|
|
@@ -1315,31 +1313,31 @@ var vt = class e {
|
|
|
1315
1313
|
}
|
|
1316
1314
|
static create(t, n, r) {
|
|
1317
1315
|
let a = "", o = Object.create(null), s = (e) => {
|
|
1318
|
-
let t = e.id ??=
|
|
1316
|
+
let t = e.id ??= D();
|
|
1319
1317
|
return o[t] = e, t;
|
|
1320
1318
|
};
|
|
1321
1319
|
for (let e = 0, r = t.length - 1; e < r; ++e) {
|
|
1322
1320
|
let r = t[e], o = n[e], c;
|
|
1323
|
-
if (a += r, i(o)) o = new
|
|
1324
|
-
else if (o instanceof
|
|
1325
|
-
else if (!(c =
|
|
1321
|
+
if (a += r, i(o)) o = new B(se(o));
|
|
1322
|
+
else if (o instanceof S) o = new B(o);
|
|
1323
|
+
else if (!(c = j.getForInstance(o))) {
|
|
1326
1324
|
let e = o;
|
|
1327
|
-
o = new
|
|
1325
|
+
o = new B(le(() => e));
|
|
1328
1326
|
}
|
|
1329
|
-
a +=
|
|
1327
|
+
a += gt(o, r, s, c);
|
|
1330
1328
|
}
|
|
1331
1329
|
return new e(a + t[t.length - 1], o, r);
|
|
1332
1330
|
}
|
|
1333
1331
|
};
|
|
1334
|
-
f(
|
|
1335
|
-
var
|
|
1336
|
-
if (Array.isArray(e) && Array.isArray(e.raw)) return
|
|
1332
|
+
f(_t);
|
|
1333
|
+
var vt = ((e, ...t) => {
|
|
1334
|
+
if (Array.isArray(e) && Array.isArray(e.raw)) return _t.create(e, t);
|
|
1337
1335
|
throw c.error(r.directCallToHTMLTagNotAllowed);
|
|
1338
1336
|
});
|
|
1339
|
-
|
|
1337
|
+
vt.partial = (e) => new W(e);
|
|
1340
1338
|
//#endregion
|
|
1341
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
1342
|
-
var
|
|
1339
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/utilities.js
|
|
1340
|
+
var yt = class extends MutationObserver {
|
|
1343
1341
|
constructor(e) {
|
|
1344
1342
|
function t(e) {
|
|
1345
1343
|
this.callback.call(null, e.filter((e) => this.observedNodes.has(e.target)));
|
|
@@ -1352,18 +1350,18 @@ var bt = class extends MutationObserver {
|
|
|
1352
1350
|
unobserve(e) {
|
|
1353
1351
|
this.observedNodes.delete(e), this.observedNodes.size < 1 && this.disconnect();
|
|
1354
1352
|
}
|
|
1355
|
-
},
|
|
1353
|
+
}, bt = Object.freeze({ create(e) {
|
|
1356
1354
|
let t = [], n = {}, r = null, i = !1;
|
|
1357
1355
|
return {
|
|
1358
1356
|
source: e,
|
|
1359
|
-
context:
|
|
1357
|
+
context: x.default,
|
|
1360
1358
|
targets: n,
|
|
1361
1359
|
get isBound() {
|
|
1362
1360
|
return i;
|
|
1363
1361
|
},
|
|
1364
1362
|
addBehaviorFactory(e, t) {
|
|
1365
1363
|
let n = e;
|
|
1366
|
-
n.id = n.id ??
|
|
1364
|
+
n.id = n.id ?? D(), n.targetNodeId = n.targetNodeId ?? D(), n.targetTagName = t.tagName ?? null, n.policy = n.policy ?? g.policy, this.addTarget(n.targetNodeId, t), this.addBehavior(n.createBehavior());
|
|
1367
1365
|
},
|
|
1368
1366
|
addTarget(e, t) {
|
|
1369
1367
|
n[e] = t;
|
|
@@ -1381,24 +1379,24 @@ var bt = class extends MutationObserver {
|
|
|
1381
1379
|
i && (i = !1, r !== null && r.forEach((e) => e.unbind(this)));
|
|
1382
1380
|
}
|
|
1383
1381
|
};
|
|
1384
|
-
} }),
|
|
1382
|
+
} }), xt = {
|
|
1385
1383
|
bubbles: !0,
|
|
1386
1384
|
composed: !0,
|
|
1387
1385
|
cancelable: !0
|
|
1388
|
-
}, G = "isConnected",
|
|
1386
|
+
}, G = "isConnected", St = /* @__PURE__ */ new WeakMap();
|
|
1389
1387
|
function K(e) {
|
|
1390
|
-
return e.shadowRoot ??
|
|
1388
|
+
return e.shadowRoot ?? St.get(e) ?? null;
|
|
1391
1389
|
}
|
|
1392
|
-
var
|
|
1390
|
+
var Ct, q;
|
|
1393
1391
|
(function(e) {
|
|
1394
1392
|
e[e.connecting = 0] = "connecting", e[e.connected = 1] = "connected", e[e.disconnecting = 2] = "disconnecting", e[e.disconnected = 3] = "disconnected";
|
|
1395
1393
|
})(q ||= {});
|
|
1396
1394
|
var J = class e extends ne {
|
|
1397
1395
|
get isConnected() {
|
|
1398
|
-
return
|
|
1396
|
+
return b.track(this, G), this.stage === q.connected;
|
|
1399
1397
|
}
|
|
1400
1398
|
get context() {
|
|
1401
|
-
return this.view?.context ??
|
|
1399
|
+
return this.view?.context ?? x.default;
|
|
1402
1400
|
}
|
|
1403
1401
|
get isBound() {
|
|
1404
1402
|
return this.view?.isBound ?? !1;
|
|
@@ -1423,7 +1421,7 @@ var J = class e extends ne {
|
|
|
1423
1421
|
if (this._shadowRootOptions === void 0 && e !== void 0) {
|
|
1424
1422
|
this._shadowRootOptions = e;
|
|
1425
1423
|
let t = this.source.shadowRoot;
|
|
1426
|
-
t ? this.hasExistingShadowRoot = !0 : (t = this.source.attachShadow(e), e.mode === "closed" &&
|
|
1424
|
+
t ? this.hasExistingShadowRoot = !0 : (t = this.source.attachShadow(e), e.mode === "closed" && St.set(this.source, t));
|
|
1427
1425
|
}
|
|
1428
1426
|
}
|
|
1429
1427
|
get mainStyles() {
|
|
@@ -1438,7 +1436,7 @@ var J = class e extends ne {
|
|
|
1438
1436
|
}
|
|
1439
1437
|
constructor(e, t) {
|
|
1440
1438
|
super(e), this.boundObservables = null, this.needsInitialization = !0, this.hasExistingShadowRoot = !1, this._template = null, this.stage = q.disconnected, this.guardBehaviorConnection = !1, this.behaviors = null, this.behaviorsConnected = !1, this._mainStyles = null, this.$fastController = this, this.view = null, this.source = e, this.definition = t, this.shadowOptions = t.shadowOptions;
|
|
1441
|
-
let n =
|
|
1439
|
+
let n = b.getAccessors(e);
|
|
1442
1440
|
if (n.length > 0) {
|
|
1443
1441
|
let t = this.boundObservables = Object.create(null);
|
|
1444
1442
|
for (let r = 0, i = n.length; r < i; ++r) {
|
|
@@ -1480,7 +1478,7 @@ var J = class e extends ne {
|
|
|
1480
1478
|
}
|
|
1481
1479
|
}
|
|
1482
1480
|
connect() {
|
|
1483
|
-
this.stage === q.disconnected && (this.stage = q.connecting, this.bindObservables(), this.connectBehaviors(), this.needsInitialization ? (this.renderTemplate(this.template), this.addStyles(this.mainStyles), this.needsInitialization = !1) : this.view !== null && this.view.bind(this.source), this.stage = q.connected,
|
|
1481
|
+
this.stage === q.disconnected && (this.stage = q.connecting, this.bindObservables(), this.connectBehaviors(), this.needsInitialization ? (this.renderTemplate(this.template), this.addStyles(this.mainStyles), this.needsInitialization = !1) : this.view !== null && this.view.bind(this.source), this.stage = q.connected, b.notify(this, G));
|
|
1484
1482
|
}
|
|
1485
1483
|
bindObservables() {
|
|
1486
1484
|
if (this.boundObservables !== null) {
|
|
@@ -1511,14 +1509,14 @@ var J = class e extends ne {
|
|
|
1511
1509
|
}
|
|
1512
1510
|
}
|
|
1513
1511
|
disconnect() {
|
|
1514
|
-
this.stage === q.connected && (this.stage = q.disconnecting,
|
|
1512
|
+
this.stage === q.connected && (this.stage = q.disconnecting, b.notify(this, G), this.view !== null && this.view.unbind(), this.disconnectBehaviors(), this.stage = q.disconnected);
|
|
1515
1513
|
}
|
|
1516
1514
|
onAttributeChangedCallback(e, t, n) {
|
|
1517
1515
|
let r = this.definition.attributeLookup[e];
|
|
1518
1516
|
r !== void 0 && r.onAttributeChangedCallback(this.source, n);
|
|
1519
1517
|
}
|
|
1520
1518
|
emit(e, t, n) {
|
|
1521
|
-
return this.stage === q.connected
|
|
1519
|
+
return this.stage === q.connected && this.source.dispatchEvent(new CustomEvent(e, Object.assign(Object.assign({ detail: t }, xt), n)));
|
|
1522
1520
|
}
|
|
1523
1521
|
renderTemplate(e) {
|
|
1524
1522
|
let t = this.source, n = K(t) ?? t;
|
|
@@ -1527,28 +1525,28 @@ var J = class e extends ne {
|
|
|
1527
1525
|
this.hasExistingShadowRoot = !1;
|
|
1528
1526
|
for (let e = n.firstChild; e !== null; e = n.firstChild) n.removeChild(e);
|
|
1529
1527
|
}
|
|
1530
|
-
e && (this.view = e.render(t, n, t), this.view.sourceLifetime =
|
|
1528
|
+
e && (this.view = e.render(t, n, t), this.view.sourceLifetime = y.coupled);
|
|
1531
1529
|
}
|
|
1532
1530
|
static forCustomElement(t, n = !1) {
|
|
1533
1531
|
let i = t.$fastController;
|
|
1534
1532
|
if (i !== void 0 && !n) return i;
|
|
1535
1533
|
let a = U.getForInstance(t);
|
|
1536
1534
|
if (a === void 0) throw c.error(r.missingElementDefinition);
|
|
1537
|
-
return
|
|
1535
|
+
return b.getNotifier(a).subscribe({ handleChange: () => {
|
|
1538
1536
|
e.forCustomElement(t, !0), t.$fastController.connect();
|
|
1539
|
-
} }, "template"),
|
|
1537
|
+
} }, "template"), b.getNotifier(a).subscribe({ handleChange: () => {
|
|
1540
1538
|
e.forCustomElement(t, !0), t.$fastController.connect();
|
|
1541
|
-
} }, "shadowOptions"), t.$fastController = new
|
|
1539
|
+
} }, "shadowOptions"), t.$fastController = new Ct(t, a);
|
|
1542
1540
|
}
|
|
1543
1541
|
static setStrategy(e) {
|
|
1544
|
-
|
|
1542
|
+
Ct = e;
|
|
1545
1543
|
}
|
|
1546
1544
|
};
|
|
1547
1545
|
f(J), J.setStrategy(J);
|
|
1548
1546
|
function Y(e) {
|
|
1549
1547
|
return "adoptedStyleSheets" in e ? e : K(e) ?? e.getRootNode();
|
|
1550
1548
|
}
|
|
1551
|
-
var
|
|
1549
|
+
var wt = class e {
|
|
1552
1550
|
constructor(t) {
|
|
1553
1551
|
let n = e.styleSheetCache;
|
|
1554
1552
|
this.sheets = t.map((e) => {
|
|
@@ -1558,23 +1556,23 @@ var Tt = class e {
|
|
|
1558
1556
|
});
|
|
1559
1557
|
}
|
|
1560
1558
|
addStylesTo(e) {
|
|
1561
|
-
|
|
1559
|
+
kt(Y(e), this.sheets);
|
|
1562
1560
|
}
|
|
1563
1561
|
removeStylesFrom(e) {
|
|
1564
|
-
|
|
1562
|
+
At(Y(e), this.sheets);
|
|
1565
1563
|
}
|
|
1566
1564
|
};
|
|
1567
|
-
|
|
1568
|
-
var
|
|
1569
|
-
function
|
|
1565
|
+
wt.styleSheetCache = /* @__PURE__ */ new Map();
|
|
1566
|
+
var Tt = 0, Et = () => `fast-${++Tt}`;
|
|
1567
|
+
function Dt(e) {
|
|
1570
1568
|
return e === document ? document.body : e;
|
|
1571
1569
|
}
|
|
1572
|
-
var
|
|
1570
|
+
var Ot = class {
|
|
1573
1571
|
constructor(e) {
|
|
1574
|
-
this.styles = e, this.styleClass =
|
|
1572
|
+
this.styles = e, this.styleClass = Et();
|
|
1575
1573
|
}
|
|
1576
1574
|
addStylesTo(e) {
|
|
1577
|
-
e =
|
|
1575
|
+
e = Dt(Y(e));
|
|
1578
1576
|
let t = this.styles, n = this.styleClass;
|
|
1579
1577
|
for (let r = 0; r < t.length; r++) {
|
|
1580
1578
|
let i = document.createElement("style");
|
|
@@ -1582,34 +1580,34 @@ var kt = class {
|
|
|
1582
1580
|
}
|
|
1583
1581
|
}
|
|
1584
1582
|
removeStylesFrom(e) {
|
|
1585
|
-
e =
|
|
1583
|
+
e = Dt(Y(e));
|
|
1586
1584
|
let t = e.querySelectorAll(`.${this.styleClass}`);
|
|
1587
1585
|
for (let n = 0, r = t.length; n < r; ++n) e.removeChild(t[n]);
|
|
1588
1586
|
}
|
|
1589
|
-
},
|
|
1587
|
+
}, kt = (e, t) => {
|
|
1590
1588
|
e.adoptedStyleSheets = [...e.adoptedStyleSheets, ...t];
|
|
1591
|
-
},
|
|
1589
|
+
}, At = (e, t) => {
|
|
1592
1590
|
e.adoptedStyleSheets = e.adoptedStyleSheets.filter((e) => t.indexOf(e) === -1);
|
|
1593
1591
|
};
|
|
1594
|
-
if (
|
|
1592
|
+
if (C.supportsAdoptedStyleSheets) {
|
|
1595
1593
|
try {
|
|
1596
|
-
document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(),
|
|
1594
|
+
document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(), kt = (e, t) => {
|
|
1597
1595
|
e.adoptedStyleSheets.push(...t);
|
|
1598
|
-
},
|
|
1596
|
+
}, At = (e, t) => {
|
|
1599
1597
|
for (let n of t) {
|
|
1600
1598
|
let t = e.adoptedStyleSheets.indexOf(n);
|
|
1601
1599
|
t !== -1 && e.adoptedStyleSheets.splice(t, 1);
|
|
1602
1600
|
}
|
|
1603
1601
|
};
|
|
1604
1602
|
} catch {}
|
|
1605
|
-
|
|
1606
|
-
} else
|
|
1607
|
-
var
|
|
1603
|
+
C.setDefaultStrategy(wt);
|
|
1604
|
+
} else C.setDefaultStrategy(Ot);
|
|
1605
|
+
var jt = "needs-hydration", X = class e extends J {
|
|
1608
1606
|
get shadowOptions() {
|
|
1609
1607
|
return super.shadowOptions;
|
|
1610
1608
|
}
|
|
1611
1609
|
set shadowOptions(e) {
|
|
1612
|
-
super.shadowOptions = e, (this.hasExistingShadowRoot || e !== void 0 && !this.template) && this.definition.templateOptions ===
|
|
1610
|
+
super.shadowOptions = e, (this.hasExistingShadowRoot || e !== void 0 && !this.template) && this.definition.templateOptions === pt.deferAndHydrate && (this.source.toggleAttribute(Te, !0), this.source.toggleAttribute(jt, !0));
|
|
1613
1611
|
}
|
|
1614
1612
|
addHydratingInstance() {
|
|
1615
1613
|
if (!e.hydratingInstances) return;
|
|
@@ -1637,8 +1635,8 @@ var Mt = "needs-hydration", X = class e extends J {
|
|
|
1637
1635
|
}
|
|
1638
1636
|
connect() {
|
|
1639
1637
|
var t, n, r, i, a;
|
|
1640
|
-
if (this.needsHydration = this.needsHydration ?? this.source.hasAttribute(
|
|
1641
|
-
this.addHydratingInstance(), e.hydrationObserver.observe(this.source, { attributeFilter: [
|
|
1638
|
+
if (this.needsHydration = this.needsHydration ?? this.source.hasAttribute(jt), this.needsHydration && this.addHydratingInstance(), this.source.hasAttribute("defer-hydration")) {
|
|
1639
|
+
this.addHydratingInstance(), e.hydrationObserver.observe(this.source, { attributeFilter: [Te] });
|
|
1642
1640
|
return;
|
|
1643
1641
|
}
|
|
1644
1642
|
if (!this.needsHydration) {
|
|
@@ -1655,11 +1653,13 @@ var Mt = "needs-hydration", X = class e extends J {
|
|
|
1655
1653
|
try {
|
|
1656
1654
|
(i = (r = e.lifecycleCallbacks).elementWillHydrate) == null || i.call(r, this.source);
|
|
1657
1655
|
} catch {}
|
|
1658
|
-
if (this.stage = q.connecting, this.bindObservables(), this.connectBehaviors(), this.template)
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1656
|
+
if (this.stage = q.connecting, this.bindObservables(), this.connectBehaviors(), this.template) {
|
|
1657
|
+
if (P(this.template)) {
|
|
1658
|
+
let e = this.source, t = K(e) ?? e, n = t.firstChild, r = t.lastChild;
|
|
1659
|
+
e.shadowRoot === null && (M.isElementBoundaryStartMarker(n) && (n.data = "", n = n.nextSibling), M.isElementBoundaryEndMarker(r) && (r.data = "", r = r.previousSibling)), this.view = this.template.hydrate(n, r, e), (a = this.view) == null || a.bind(this.source);
|
|
1660
|
+
} else this.renderTemplate(this.template);
|
|
1661
|
+
}
|
|
1662
|
+
this.addStyles(this.mainStyles), this.stage = q.connected, this.source.removeAttribute(jt), this.needsInitialization = this.needsHydration = !1, this.removeHydratingInstance(), b.notify(this, G);
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
removeHydratingInstance() {
|
|
@@ -1678,10 +1678,10 @@ var Mt = "needs-hydration", X = class e extends J {
|
|
|
1678
1678
|
J.setStrategy(e);
|
|
1679
1679
|
}
|
|
1680
1680
|
};
|
|
1681
|
-
X.hydrationObserver = new
|
|
1681
|
+
X.hydrationObserver = new yt(X.hydrationObserverHandler), X.lifecycleCallbacks = {}, X.hydrationStarted = !1, X.idleCallbackId = null, X.hydratingInstances = /* @__PURE__ */ new Map();
|
|
1682
1682
|
//#endregion
|
|
1683
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.
|
|
1684
|
-
function
|
|
1683
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.5/node_modules/@microsoft/fast-element/dist/esm/components/fast-element.js
|
|
1684
|
+
function Mt(e) {
|
|
1685
1685
|
let t = class extends e {
|
|
1686
1686
|
constructor() {
|
|
1687
1687
|
super(), J.forCustomElement(this);
|
|
@@ -1701,10 +1701,10 @@ function Nt(e) {
|
|
|
1701
1701
|
};
|
|
1702
1702
|
return U.registerBaseType(t), t;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Nt(e, t) {
|
|
1705
1705
|
return i(e) ? U.compose(e, t) : U.compose(this, e);
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function Pt(e, t) {
|
|
1708
1708
|
return i(e) ? new Promise((n) => {
|
|
1709
1709
|
U.composeAsync(e, t).then((e) => {
|
|
1710
1710
|
n(e);
|
|
@@ -1715,34 +1715,34 @@ function Ft(e, t) {
|
|
|
1715
1715
|
});
|
|
1716
1716
|
}).then((e) => e.define().type);
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function Ft(e, t) {
|
|
1719
1719
|
return i(e) ? U.compose(e, t).define().type : U.compose(this, e).define().type;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1722
|
-
return
|
|
1721
|
+
function It(e) {
|
|
1722
|
+
return Mt(e);
|
|
1723
1723
|
}
|
|
1724
|
-
var
|
|
1725
|
-
from:
|
|
1726
|
-
define:
|
|
1727
|
-
compose:
|
|
1728
|
-
defineAsync:
|
|
1724
|
+
var Lt = Object.assign(Mt(HTMLElement), {
|
|
1725
|
+
from: It,
|
|
1726
|
+
define: Ft,
|
|
1727
|
+
compose: Nt,
|
|
1728
|
+
defineAsync: Pt
|
|
1729
1729
|
});
|
|
1730
1730
|
//#endregion
|
|
1731
1731
|
//#region src/shared/design-system/createRegisterFunction.ts
|
|
1732
|
-
function
|
|
1732
|
+
function Rt(e, t) {
|
|
1733
1733
|
return e instanceof Function ? e(t) : e;
|
|
1734
1734
|
}
|
|
1735
|
-
var
|
|
1735
|
+
var zt = /* @__PURE__ */ new Set(), Bt = /* @__PURE__ */ new Map(), Vt = (e) => (t = "vwc") => {
|
|
1736
1736
|
let n = (e) => `${t}-${e}`, r = (e) => {
|
|
1737
1737
|
let i = n(e.name), a = e.type;
|
|
1738
|
-
if (a.componentName = e.name,
|
|
1739
|
-
|
|
1738
|
+
if (a.componentName = e.name, zt.has(i)) return;
|
|
1739
|
+
Bt.has(a) && Bt.get(a) !== i && (a = class extends a {}), zt.add(i), Bt.set(a, i);
|
|
1740
1740
|
for (let t of e.dependencies) r(t);
|
|
1741
1741
|
let o = new Map([[e.type, i], ...e.dependencies.map((e) => [e.type, n(e.name)])]), s = {
|
|
1742
1742
|
tagFor: (t, n) => {
|
|
1743
1743
|
if (!o.has(t)) throw Error(`Could not get tag for ${t.name} as it is not a dependency of ${e.name}.`);
|
|
1744
1744
|
let r = o.get(t);
|
|
1745
|
-
return n ? r :
|
|
1745
|
+
return n ? r : vt.partial(r);
|
|
1746
1746
|
},
|
|
1747
1747
|
tagForNonDependency(e) {
|
|
1748
1748
|
return n(e);
|
|
@@ -1750,43 +1750,82 @@ var Bt = /* @__PURE__ */ new Set(), Vt = /* @__PURE__ */ new Map(), Ht = (e) =>
|
|
|
1750
1750
|
};
|
|
1751
1751
|
U.compose(a, {
|
|
1752
1752
|
...e.options,
|
|
1753
|
-
template:
|
|
1753
|
+
template: Rt(e.template, s),
|
|
1754
1754
|
name: `${t}-${e.name}`
|
|
1755
1755
|
}).define();
|
|
1756
1756
|
};
|
|
1757
1757
|
r(e);
|
|
1758
|
-
},
|
|
1758
|
+
}, Ht = [
|
|
1759
|
+
"accent",
|
|
1760
|
+
"warning",
|
|
1761
|
+
"cta",
|
|
1762
|
+
"success",
|
|
1763
|
+
"alert",
|
|
1764
|
+
"information",
|
|
1765
|
+
"announcement"
|
|
1766
|
+
], Ut = [
|
|
1767
|
+
"faint",
|
|
1768
|
+
"soft",
|
|
1769
|
+
"dim",
|
|
1770
|
+
"pale",
|
|
1771
|
+
"light",
|
|
1772
|
+
"intermediate",
|
|
1773
|
+
"firm",
|
|
1774
|
+
"firm-all",
|
|
1775
|
+
"fierce",
|
|
1776
|
+
"fierce-primary",
|
|
1777
|
+
"contrast",
|
|
1778
|
+
"primary",
|
|
1779
|
+
"primary-increment",
|
|
1780
|
+
"primary-text"
|
|
1781
|
+
], Wt = /* @__PURE__ */ new Map();
|
|
1782
|
+
function Gt(e) {
|
|
1783
|
+
let t = Wt.get(e);
|
|
1784
|
+
if (t !== void 0) return t;
|
|
1785
|
+
let n = Ht.map((t) => `.connotation-${t}{${Ut.map((n) => `--_connotation-override-${n}:var(--vvd-${e}-${t}-${n});`).join("")}}`).join("");
|
|
1786
|
+
return Wt.set(e, n), n;
|
|
1787
|
+
}
|
|
1788
|
+
//#endregion
|
|
1789
|
+
//#region src/shared/styles/styles.scss?inline
|
|
1790
|
+
var Kt = ".connotation-accent{--_connotation-color-faint:var(--_connotation-override-faint,var(--vvd-color-neutral-50));--_connotation-color-soft:var(--_connotation-override-soft,var(--vvd-color-neutral-100));--_connotation-color-dim:var(--_connotation-override-dim,var(--vvd-color-neutral-200));--_connotation-color-pale:var(--_connotation-override-pale,var(--vvd-color-neutral-300));--_connotation-color-light:var(--_connotation-override-light,var(--vvd-color-neutral-400));--_connotation-color-intermediate:var(--_connotation-override-intermediate,var(--vvd-color-neutral-500));--_connotation-color-firm:var(--_connotation-override-firm,var(--vvd-color-canvas-text));--_connotation-color-firm-all:var(--_connotation-override-firm-all,var(--vvd-color-neutral-600));--_connotation-color-fierce:var(--_connotation-override-fierce,var(--vvd-color-neutral-700));--_connotation-color-fierce-primary:var(--_connotation-override-fierce-primary,var(--vvd-color-canvas-text));--_connotation-color-contrast:var(--_connotation-override-contrast,var(--vvd-color-neutral-800));--_connotation-color-primary:var(--_connotation-override-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-increment:var(--_connotation-override-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-primary-text:var(--_connotation-override-primary-text,var(--vvd-color-canvas))}.connotation-warning{--_connotation-color-faint:var(--_connotation-override-faint,var(--vvd-color-warning-50));--_connotation-color-soft:var(--_connotation-override-soft,var(--vvd-color-warning-100));--_connotation-color-dim:var(--_connotation-override-dim,var(--vvd-color-warning-200));--_connotation-color-pale:var(--_connotation-override-pale,var(--vvd-color-warning-300));--_connotation-color-light:var(--_connotation-override-light,var(--vvd-color-warning-400));--_connotation-color-intermediate:var(--_connotation-override-intermediate,var(--vvd-color-warning-300));--_connotation-color-firm:var(--_connotation-override-firm,var(--vvd-color-warning-600));--_connotation-color-firm-all:var(--_connotation-override-firm-all,var(--vvd-color-warning-600));--_connotation-color-fierce:var(--_connotation-override-fierce,var(--vvd-color-warning-700));--_connotation-color-fierce-primary:var(--_connotation-override-fierce-primary,var(--vvd-color-warning-300));--_connotation-color-contrast:var(--_connotation-override-contrast,var(--vvd-color-warning-800));--_connotation-color-primary:var(--_connotation-override-primary,var(--vvd-color-warning-300));--_connotation-color-primary-increment:var(--_connotation-override-primary-increment,var(--vvd-color-warning-600));--_connotation-color-primary-text:var(--_connotation-override-primary-text,var(--vvd-color-canvas-text))}.connotation-cta{--_connotation-color-faint:var(--_connotation-override-faint,var(--vvd-color-cta-50));--_connotation-color-soft:var(--_connotation-override-soft,var(--vvd-color-cta-100));--_connotation-color-dim:var(--_connotation-override-dim,var(--vvd-color-cta-200));--_connotation-color-pale:var(--_connotation-override-pale,var(--vvd-color-cta-300));--_connotation-color-light:var(--_connotation-override-light,var(--vvd-color-cta-400));--_connotation-color-intermediate:var(--_connotation-override-intermediate,var(--vvd-color-cta-500));--_connotation-color-firm:var(--_connotation-override-firm,var(--vvd-color-cta-600));--_connotation-color-firm-all:var(--_connotation-override-firm-all,var(--vvd-color-cta-600));--_connotation-color-fierce:var(--_connotation-override-fierce,var(--vvd-color-cta-700));--_connotation-color-fierce-primary:var(--_connotation-override-fierce-primary,var(--vvd-color-cta-700));--_connotation-color-contrast:var(--_connotation-override-contrast,var(--vvd-color-cta-800));--_connotation-color-primary:var(--_connotation-override-primary,var(--vvd-color-cta-500));--_connotation-color-primary-increment:var(--_connotation-override-primary-increment,var(--vvd-color-cta-600));--_connotation-color-primary-text:var(--_connotation-override-primary-text,var(--vvd-color-canvas))}.connotation-success{--_connotation-color-faint:var(--_connotation-override-faint,var(--vvd-color-success-50));--_connotation-color-soft:var(--_connotation-override-soft,var(--vvd-color-success-100));--_connotation-color-dim:var(--_connotation-override-dim,var(--vvd-color-success-200));--_connotation-color-pale:var(--_connotation-override-pale,var(--vvd-color-success-300));--_connotation-color-light:var(--_connotation-override-light,var(--vvd-color-success-400));--_connotation-color-intermediate:var(--_connotation-override-intermediate,var(--vvd-color-success-500));--_connotation-color-firm:var(--_connotation-override-firm,var(--vvd-color-success-600));--_connotation-color-firm-all:var(--_connotation-override-firm-all,var(--vvd-color-success-600));--_connotation-color-fierce:var(--_connotation-override-fierce,var(--vvd-color-success-700));--_connotation-color-fierce-primary:var(--_connotation-override-fierce-primary,var(--vvd-color-success-700));--_connotation-color-contrast:var(--_connotation-override-contrast,var(--vvd-color-success-800));--_connotation-color-primary:var(--_connotation-override-primary,var(--vvd-color-success-500));--_connotation-color-primary-increment:var(--_connotation-override-primary-increment,var(--vvd-color-success-600));--_connotation-color-primary-text:var(--_connotation-override-primary-text,var(--vvd-color-canvas))}.connotation-alert{--_connotation-color-faint:var(--_connotation-override-faint,var(--vvd-color-alert-50));--_connotation-color-soft:var(--_connotation-override-soft,var(--vvd-color-alert-100));--_connotation-color-dim:var(--_connotation-override-dim,var(--vvd-color-alert-200));--_connotation-color-pale:var(--_connotation-override-pale,var(--vvd-color-alert-300));--_connotation-color-light:var(--_connotation-override-light,var(--vvd-color-alert-400));--_connotation-color-intermediate:var(--_connotation-override-intermediate,var(--vvd-color-alert-500));--_connotation-color-firm:var(--_connotation-override-firm,var(--vvd-color-alert-600));--_connotation-color-firm-all:var(--_connotation-override-firm-all,var(--vvd-color-alert-600));--_connotation-color-fierce:var(--_connotation-override-fierce,var(--vvd-color-alert-700));--_connotation-color-fierce-primary:var(--_connotation-override-fierce-primary,var(--vvd-color-alert-700));--_connotation-color-contrast:var(--_connotation-override-contrast,var(--vvd-color-alert-800));--_connotation-color-primary:var(--_connotation-override-primary,var(--vvd-color-alert-500));--_connotation-color-primary-increment:var(--_connotation-override-primary-increment,var(--vvd-color-alert-600));--_connotation-color-primary-text:var(--_connotation-override-primary-text,var(--vvd-color-canvas))}.connotation-information{--_connotation-color-faint:var(--_connotation-override-faint,var(--vvd-color-information-50));--_connotation-color-soft:var(--_connotation-override-soft,var(--vvd-color-information-100));--_connotation-color-dim:var(--_connotation-override-dim,var(--vvd-color-information-200));--_connotation-color-pale:var(--_connotation-override-pale,var(--vvd-color-information-300));--_connotation-color-light:var(--_connotation-override-light,var(--vvd-color-information-400));--_connotation-color-intermediate:var(--_connotation-override-intermediate,var(--vvd-color-information-500));--_connotation-color-firm:var(--_connotation-override-firm,var(--vvd-color-information-600));--_connotation-color-firm-all:var(--_connotation-override-firm-all,var(--vvd-color-information-600));--_connotation-color-fierce:var(--_connotation-override-fierce,var(--vvd-color-information-700));--_connotation-color-fierce-primary:var(--_connotation-override-fierce-primary,var(--vvd-color-information-700));--_connotation-color-contrast:var(--_connotation-override-contrast,var(--vvd-color-information-800));--_connotation-color-primary:var(--_connotation-override-primary,var(--vvd-color-information-500));--_connotation-color-primary-increment:var(--_connotation-override-primary-increment,var(--vvd-color-information-600));--_connotation-color-primary-text:var(--_connotation-override-primary-text,var(--vvd-color-canvas))}.connotation-announcement{--_connotation-color-faint:var(--_connotation-override-faint,var(--vvd-color-announcement-50));--_connotation-color-soft:var(--_connotation-override-soft,var(--vvd-color-announcement-100));--_connotation-color-dim:var(--_connotation-override-dim,var(--vvd-color-announcement-200));--_connotation-color-pale:var(--_connotation-override-pale,var(--vvd-color-announcement-300));--_connotation-color-light:var(--_connotation-override-light,var(--vvd-color-announcement-400));--_connotation-color-intermediate:var(--_connotation-override-intermediate,var(--vvd-color-announcement-500));--_connotation-color-firm:var(--_connotation-override-firm,var(--vvd-color-announcement-600));--_connotation-color-firm-all:var(--_connotation-override-firm-all,var(--vvd-color-announcement-600));--_connotation-color-fierce:var(--_connotation-override-fierce,var(--vvd-color-announcement-700));--_connotation-color-fierce-primary:var(--_connotation-override-fierce-primary,var(--vvd-color-announcement-700));--_connotation-color-contrast:var(--_connotation-override-contrast,var(--vvd-color-announcement-800));--_connotation-color-primary:var(--_connotation-override-primary,var(--vvd-color-announcement-500));--_connotation-color-primary-increment:var(--_connotation-override-primary-increment,var(--vvd-color-announcement-600));--_connotation-color-primary-text:var(--_connotation-override-primary-text,var(--vvd-color-canvas))}.appearance-filled{--_appearance-idle-text:var(--_connotation-color-primary-text);--_appearance-idle-fill:var(--_connotation-color-primary);--_appearance-idle-outline:transparent;--_appearance-hover-text:var(--_connotation-color-primary-text);--_appearance-hover-fill:var(--_connotation-color-primary-increment);--_appearance-hover-outline:transparent;--_appearance-active-text:var(--_connotation-color-primary-text);--_appearance-active-fill:var(--_connotation-color-fierce);--_appearance-active-outline:transparent;--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:var(--vvd-color-neutral-100);--_appearance-disabled-outline:transparent;--_appearance-readonly-text:var(--vvd-color-neutral-800);--_appearance-readonly-fill:var(--vvd-color-neutral-500);--_appearance-readonly-outline:transparent;--_appearance-selected-outline:transparent;--_appearance-selectedAndDisabled-text:var(--vvd-color-neutral-300);--_appearance-selectedAndDisabled-fill:var(--vvd-color-neutral-100);--_appearance-selectedAndDisabled-outline:transparent;--_appearance-checked-outline:transparent}.appearance-ghost{--_appearance-idle-text:var(--_connotation-color-firm);--_appearance-idle-fill:transparent;--_appearance-idle-outline:transparent;--_appearance-hover-text:var(--_connotation-color-firm);--_appearance-hover-fill:var(--_connotation-color-faint);--_appearance-hover-outline:transparent;--_appearance-active-text:var(--_connotation-color-firm);--_appearance-active-fill:var(--_connotation-color-soft);--_appearance-active-outline:transparent;--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:transparent;--_appearance-disabled-outline:transparent;--_appearance-readonly-text:var(--vvd-color-neutral-600);--_appearance-readonly-fill:transparent;--_appearance-readonly-outline:transparent;--_appearance-selected-text:var(--_connotation-color-primary-text);--_appearance-selected-fill:var(--_connotation-color-primary);--_appearance-selected-outline:transparent;--_appearance-selectedAndHover-text:var(--_connotation-color-primary-text);--_appearance-selectedAndHover-fill:var(--_connotation-color-primary-increment);--_appearance-selectedAndHover-outline:transparent;--_appearance-selectedAndDisabled-text:var(--vvd-color-neutral-300);--_appearance-selectedAndDisabled-fill:var(--vvd-color-neutral-200);--_appearance-selectedAndDisabled-outline:transparent;--_appearance-checked-text:var(--_connotation-color-primary-text);--_appearance-checked-fill:var(--_connotation-color-primary);--_appearance-checked-outline:transparent;--_appearance-checkedAndHover-text:var(--_connotation-color-primary-text);--_appearance-checkedAndHover-fill:var(--_connotation-color-primary-increment);--_appearance-checkedAndHover-outline:transparent;--_appearance-error-fill:var(--vvd-color-alert-50);--_appearance-error-outline:transparent;--_appearance-success-fill:var(--vvd-color-success-50);--_appearance-success-outline:transparent}.appearance-ghost-light{--_appearance-idle-text:var(--_connotation-color-firm);--_appearance-idle-fill:transparent;--_appearance-idle-outline:transparent;--_appearance-hover-text:var(--_connotation-color-fierce-primary);--_appearance-hover-fill:color-mix(in sRGB, var(--_connotation-color-primary), transparent 90%);--_appearance-hover-outline:transparent;--_appearance-active-text:var(--_connotation-color-fierce-primary);--_appearance-active-fill:color-mix(in sRGB, var(--_connotation-color-primary), transparent 80%);--_appearance-active-outline:transparent;--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:transparent;--_appearance-disabled-outline:transparent;--_appearance-readonly-text:var(--vvd-color-neutral-600);--_appearance-readonly-fill:transparent;--_appearance-readonly-outline:transparent;--_appearance-selected-text:var(--_connotation-color-primary-text);--_appearance-selected-fill:color-mix(in sRGB, var(--_connotation-color-firm), transparent 10%);--_appearance-selected-outline:transparent;--_appearance-selectedAndHover-text:var(--_connotation-color-primary-text);--_appearance-selectedAndHover-fill:color-mix(in sRGB, var(--_connotation-color-fierce-primary), transparent 20%);--_appearance-selectedAndHover-outline:transparent;--_appearance-selectedAndDisabled-text:var(--vvd-color-neutral-300);--_appearance-selectedAndDisabled-fill:var(--vvd-color-neutral-200);--_appearance-selectedAndDisabled-outline:transparent;--_appearance-checked-text:var(--_connotation-color-primary-text);--_appearance-checked-fill:color-mix(in sRGB, var(--_connotation-color-firm), transparent 10%);--_appearance-checked-outline:transparent;--_appearance-checkedAndHover-text:var(--_connotation-color-primary-text);--_appearance-checkedAndHover-fill:color-mix(in sRGB, var(--_connotation-color-fierce-primary), transparent 20%);--_appearance-checkedAndHover-outline:transparent}.appearance-outlined{--_appearance-idle-text:var(--_connotation-color-firm);--_appearance-idle-fill:transparent;--_appearance-idle-outline:var(--vvd-color-neutral-300);--_appearance-hover-text:var(--_connotation-color-firm);--_appearance-hover-fill:var(--_connotation-color-faint);--_appearance-hover-outline:var(--vvd-color-neutral-300);--_appearance-active-text:var(--_connotation-color-firm);--_appearance-active-fill:var(--_connotation-color-soft);--_appearance-active-outline:var(--vvd-color-neutral-300);--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:transparent;--_appearance-disabled-outline:var(--vvd-color-neutral-300);--_appearance-readonly-text:var(--vvd-color-neutral-600);--_appearance-readonly-fill:transparent;--_appearance-readonly-outline:var(--vvd-color-neutral-300)}.appearance-outlined-light{--_appearance-idle-text:var(--_connotation-color-firm);--_appearance-idle-fill:transparent;--_appearance-idle-outline:var(--vvd-color-neutral-300);--_appearance-hover-text:var(--_connotation-color-fierce-primary);--_appearance-hover-fill:color-mix(in sRGB, var(--_connotation-color-primary), transparent 90%);--_appearance-hover-outline:var(--vvd-color-neutral-300);--_appearance-active-text:var(--_connotation-color-fierce-primary);--_appearance-active-fill:color-mix(in sRGB, var(--_connotation-color-primary), transparent 80%);--_appearance-active-outline:var(--vvd-color-neutral-300);--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:transparent;--_appearance-disabled-outline:var(--vvd-color-neutral-300);--_appearance-readonly-text:var(--vvd-color-neutral-600);--_appearance-readonly-fill:transparent;--_appearance-readonly-outline:var(--vvd-color-neutral-300);--_appearance-selected-text:var(--_connotation-color-primary-text);--_appearance-selected-fill:color-mix(in sRGB, var(--_connotation-color-firm), transparent 10%);--_appearance-selected-outline:var(--vvd-color-neutral-300);--_appearance-selectedAndHover-text:var(--_connotation-color-primary-text);--_appearance-selectedAndHover-fill:color-mix(in sRGB, var(--_connotation-color-fierce-primary), transparent 20%);--_appearance-selectedAndHover-outline:var(--vvd-color-neutral-300)}.appearance-duotone{--_appearance-idle-text:var(--_connotation-color-firm-all);--_appearance-idle-fill:transparent;--_appearance-idle-outline:var(--_connotation-color-pale);--_appearance-hover-text:var(--_connotation-color-firm-all);--_appearance-hover-fill:transparent;--_appearance-hover-outline:var(--_connotation-color-firm-all);--_appearance-active-text:var(--_connotation-color-firm-all);--_appearance-active-fill:var(--_connotation-color-faint);--_appearance-active-outline:var(--_connotation-color-pale);--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:transparent;--_appearance-disabled-outline:var(--vvd-color-neutral-100);--_appearance-selected-text:var(--_connotation-color-firm-all);--_appearance-selected-fill:var(--_connotation-color-soft);--_appearance-selected-outline:var(--_connotation-color-pale);--_appearance-selectedAndHover-text:var(--_connotation-color-firm-all);--_appearance-selectedAndHover-fill:var(--_connotation-color-faint);--_appearance-selectedAndHover-outline:var(--_connotation-color-firm-all);--_appearance-checked-text:var(--_connotation-color-firm-all);--_appearance-checked-fill:var(--_connotation-color-soft);--_appearance-checked-outline:var(--_connotation-color-pale);--_appearance-checkedAndHover-text:var(--_connotation-color-firm-all);--_appearance-checkedAndHover-fill:var(--_connotation-color-faint);--_appearance-checkedAndHover-outline:var(--_connotation-color-firm-all)}.appearance-fieldset{--_appearance-idle-text:var(--vvd-color-canvas-text);--_appearance-idle-fill:var(--vvd-color-canvas);--_appearance-idle-outline:var(--vvd-color-neutral-500);--_appearance-hover-text:var(--vvd-color-canvas-text);--_appearance-hover-fill:var(--vvd-color-canvas);--_appearance-hover-outline:var(--vvd-color-neutral-700);--_appearance-active-text:var(--vvd-color-canvas-text);--_appearance-active-fill:var(--vvd-color-canvas);--_appearance-active-outline:var(--_connotation-color-firm);--_appearance-disabled-text:var(--vvd-color-neutral-600);--_appearance-disabled-fill:var(--vvd-color-neutral-100);--_appearance-disabled-outline:var(--vvd-color-neutral-300);--_appearance-readonly-text:var(--vvd-color-canvas-text);--_appearance-readonly-fill:var(--vvd-color-neutral-200);--_appearance-readonly-outline:var(--vvd-color-neutral-400);--_appearance-selected-text:var(--_connotation-color-primary-text);--_appearance-selected-fill:var(--_connotation-color-primary);--_appearance-selected-outline:var(--_connotation-color-primary);--_appearance-selectedAndHover-text:var(--_connotation-color-primary-text);--_appearance-selectedAndHover-fill:var(--_connotation-color-primary-increment);--_appearance-selectedAndHover-outline:var(--_connotation-color-primary-increment);--_appearance-selectedAndDisabled-text:var(--vvd-color-neutral-300);--_appearance-selectedAndDisabled-fill:var(--vvd-color-neutral-100);--_appearance-selectedAndDisabled-outline:var(--vvd-color-neutral-300);--_appearance-checked-text:var(--_connotation-color-primary-text);--_appearance-checked-fill:var(--_connotation-color-primary);--_appearance-checked-outline:var(--_connotation-color-primary);--_appearance-checkedAndHover-text:var(--_connotation-color-primary-text);--_appearance-checkedAndHover-fill:var(--_connotation-color-primary-increment);--_appearance-checkedAndHover-outline:var(--_connotation-color-primary-increment);--_appearance-error-fill:var(--vvd-color-alert-50);--_appearance-error-outline:var(--vvd-color-alert-500);--_appearance-success-fill:var(--vvd-color-success-50);--_appearance-success-outline:var(--vvd-color-success-500)}.appearance-subtle{--_appearance-idle-text:var(--_connotation-color-contrast);--_appearance-idle-fill:var(--_connotation-color-soft);--_appearance-idle-outline:transparent;--_appearance-hover-text:var(--_connotation-color-contrast);--_appearance-hover-fill:var(--_connotation-color-dim);--_appearance-hover-outline:transparent;--_appearance-active-text:var(--_connotation-color-contrast);--_appearance-active-fill:var(--_connotation-color-pale);--_appearance-active-outline:transparent;--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:var(--vvd-color-neutral-100);--_appearance-disabled-outline:transparent;--_appearance-selected-text:var(--_connotation-color-primary-text);--_appearance-selected-fill:var(--_connotation-color-primary);--_appearance-selected-outline:transparent;--_appearance-selectedAndHover-text:var(--_connotation-color-primary-text);--_appearance-selectedAndHover-fill:var(--_connotation-color-primary-increment);--_appearance-selectedAndHover-outline:transparent;--_appearance-checked-text:var(--_connotation-color-primary-text);--_appearance-checked-fill:var(--_connotation-color-primary);--_appearance-checked-outline:transparent;--_appearance-checkedAndHover-text:var(--_connotation-color-primary-text);--_appearance-checkedAndHover-fill:var(--_connotation-color-primary-increment);--_appearance-checkedAndHover-outline:transparent}.appearance-subtle-light{--_appearance-idle-text:var(--_connotation-color-contrast);--_appearance-idle-fill:color-mix(in sRGB, var(--_connotation-color-primary), transparent 85%);--_appearance-idle-outline:transparent;--_appearance-hover-text:var(--_connotation-color-contrast);--_appearance-hover-fill:color-mix(in sRGB, var(--_connotation-color-primary), transparent 75%);--_appearance-hover-outline:transparent;--_appearance-active-text:var(--_connotation-color-contrast);--_appearance-active-fill:color-mix(in sRGB, var(--_connotation-color-primary), transparent 65%);--_appearance-active-outline:transparent;--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:var(--vvd-color-neutral-100);--_appearance-disabled-outline:transparent;--_appearance-selected-text:var(--vvd-color-canvas);--_appearance-selected-fill:var(--_connotation-color-firm);--_appearance-selected-outline:transparent;--_appearance-selectedAndHover-text:var(--_connotation-color-primary-text);--_appearance-selectedAndHover-fill:color-mix(in sRGB, var(--_connotation-color-fierce-primary), transparent 10%);--_appearance-selectedAndHover-outline:transparent;--_appearance-checked-text:var(--vvd-color-canvas);--_appearance-checked-fill:var(--_connotation-color-firm);--_appearance-checked-outline:transparent;--_appearance-checkedAndHover-text:var(--_connotation-color-primary-text);--_appearance-checkedAndHover-fill:color-mix(in sRGB, var(--_connotation-color-fierce-primary), transparent 10%);--_appearance-checkedAndHover-outline:transparent}.appearance-listitem{--_appearance-idle-text:var(--_connotation-color-firm);--_appearance-idle-fill:transparent;--_appearance-idle-outline:transparent;--_appearance-hover-text:var(--_connotation-color-firm);--_appearance-hover-fill:var(--_connotation-color-faint);--_appearance-hover-outline:transparent;--_appearance-active-text:var(--_connotation-color-firm);--_appearance-active-fill:var(--_connotation-color-soft);--_appearance-active-outline:transparent;--_appearance-disabled-text:var(--vvd-color-neutral-300);--_appearance-disabled-fill:transparent;--_appearance-disabled-outline:transparent;--_appearance-readonly-text:var(--vvd-color-neutral-600);--_appearance-readonly-fill:transparent;--_appearance-readonly-outline:transparent;--_appearance-selected-text:var(--_connotation-color-firm);--_appearance-selected-fill:var(--_connotation-color-soft);--_appearance-selected-outline:transparent;--_appearance-selectedAndHover-text:var(--_connotation-color-firm);--_appearance-selectedAndHover-fill:var(--_connotation-color-dim);--_appearance-selectedAndHover-outline:transparent;--_appearance-selectedAndDisabled-text:var(--vvd-color-neutral-300);--_appearance-selectedAndDisabled-fill:var(--vvd-color-neutral-200);--_appearance-selectedAndDisabled-outline:transparent;--_appearance-checked-text:var(--_connotation-color-firm);--_appearance-checked-fill:var(--_connotation-color-soft);--_appearance-checked-outline:transparent;--_appearance-checkedAndHover-text:var(--_connotation-color-firm);--_appearance-checkedAndHover-fill:var(--_connotation-color-dim);--_appearance-checkedAndHover-outline:transparent}.appearance-harmony{--_appearance-idle-text:var(--_connotation-color-fierce);--_appearance-idle-fill:var(--_connotation-color-faint);--_appearance-idle-outline:var(--_connotation-color-intermediate)}.state-idle{--_appearance-color-text:var(--_appearance-idle-text);--_appearance-color-fill:var(--_appearance-idle-fill);--_appearance-color-outline:var(--_appearance-idle-outline)}.state-hover{--_appearance-color-text:var(--_appearance-hover-text);--_appearance-color-fill:var(--_appearance-hover-fill);--_appearance-color-outline:var(--_appearance-hover-outline)}.state-active{--_appearance-color-text:var(--_appearance-active-text);--_appearance-color-fill:var(--_appearance-active-fill);--_appearance-color-outline:var(--_appearance-active-outline)}.state-disabled{--_appearance-color-text:var(--_appearance-disabled-text);--_appearance-color-fill:var(--_appearance-disabled-fill);--_appearance-color-outline:var(--_appearance-disabled-outline)}.state-readonly{--_appearance-color-text:var(--_appearance-readonly-text);--_appearance-color-fill:var(--_appearance-readonly-fill);--_appearance-color-outline:var(--_appearance-readonly-outline)}.state-selected{--_appearance-color-text:var(--_appearance-selected-text);--_appearance-color-fill:var(--_appearance-selected-fill);--_appearance-color-outline:var(--_appearance-selected-outline)}.state-selectedAndHover{--_appearance-color-text:var(--_appearance-selectedAndHover-text);--_appearance-color-fill:var(--_appearance-selectedAndHover-fill);--_appearance-color-outline:var(--_appearance-selectedAndHover-outline)}.state-selectedAndDisabled{--_appearance-color-text:var(--_appearance-selectedAndDisabled-text);--_appearance-color-fill:var(--_appearance-selectedAndDisabled-fill);--_appearance-color-outline:var(--_appearance-selectedAndDisabled-outline)}.state-checked{--_appearance-color-text:var(--_appearance-checked-text);--_appearance-color-fill:var(--_appearance-checked-fill);--_appearance-color-outline:var(--_appearance-checked-outline)}.state-checkedAndHover{--_appearance-color-text:var(--_appearance-checkedAndHover-text);--_appearance-color-fill:var(--_appearance-checkedAndHover-fill);--_appearance-color-outline:var(--_appearance-checkedAndHover-outline)}.state-error{--_appearance-color-text:var(--_appearance-error-text);--_appearance-color-fill:var(--_appearance-error-fill);--_appearance-color-outline:var(--_appearance-error-outline)}.state-success{--_appearance-color-text:var(--_appearance-success-text);--_appearance-color-fill:var(--_appearance-success-fill);--_appearance-color-outline:var(--_appearance-success-outline)}.with-idle{--_appearance-color-text:var(--_appearance-idle-text);--_appearance-color-fill:var(--_appearance-idle-fill);--_appearance-color-outline:var(--_appearance-idle-outline)}@media (hover:hover){.with-hover:where(:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_appearance-hover-text);--_appearance-color-fill:var(--_appearance-hover-fill);--_appearance-color-outline:var(--_appearance-hover-outline)}}.with-hover:where(.hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_appearance-hover-text);--_appearance-color-fill:var(--_appearance-hover-fill);--_appearance-color-outline:var(--_appearance-hover-outline)}.with-active:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_appearance-active-text);--_appearance-color-fill:var(--_appearance-active-fill);--_appearance-color-outline:var(--_appearance-active-outline)}.with-disabled:where(.disabled,:disabled){--_appearance-color-text:var(--_appearance-disabled-text);--_appearance-color-fill:var(--_appearance-disabled-fill);--_appearance-color-outline:var(--_appearance-disabled-outline)}.with-readonly:where(.readonly):where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_appearance-readonly-text);--_appearance-color-fill:var(--_appearance-readonly-fill);--_appearance-color-outline:var(--_appearance-readonly-outline)}.with-selected:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_appearance-selected-text);--_appearance-color-fill:var(--_appearance-selected-fill);--_appearance-color-outline:var(--_appearance-selected-outline)}@media (hover:hover){.with-selectedAndHover:where(.selected):where(:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_appearance-selectedAndHover-text);--_appearance-color-fill:var(--_appearance-selectedAndHover-fill);--_appearance-color-outline:var(--_appearance-selectedAndHover-outline)}}.with-selectedAndHover:where(.selected):where(.hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_appearance-selectedAndHover-text);--_appearance-color-fill:var(--_appearance-selectedAndHover-fill);--_appearance-color-outline:var(--_appearance-selectedAndHover-outline)}.with-selectedAndDisabled:where(.selected):where(.disabled,:disabled){--_appearance-color-text:var(--_appearance-selectedAndDisabled-text);--_appearance-color-fill:var(--_appearance-selectedAndDisabled-fill);--_appearance-color-outline:var(--_appearance-selectedAndDisabled-outline)}.with-checked:where(.checked,:checked):where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_appearance-checked-text);--_appearance-color-fill:var(--_appearance-checked-fill);--_appearance-color-outline:var(--_appearance-checked-outline)}@media (hover:hover){.with-checkedAndHover:where(.checked,:checked):where(:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_appearance-checkedAndHover-text);--_appearance-color-fill:var(--_appearance-checkedAndHover-fill);--_appearance-color-outline:var(--_appearance-checkedAndHover-outline)}}.with-checkedAndHover:where(.checked,:checked):where(.hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--_appearance-checkedAndHover-text);--_appearance-color-fill:var(--_appearance-checkedAndHover-fill);--_appearance-color-outline:var(--_appearance-checkedAndHover-outline)}.with-error:where(.error):where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_appearance-error-text);--_appearance-color-fill:var(--_appearance-error-fill);--_appearance-color-outline:var(--_appearance-error-outline)}.with-success:where(.success):where(:not(.disabled,:disabled)){--_appearance-color-text:var(--_appearance-success-text);--_appearance-color-fill:var(--_appearance-success-fill);--_appearance-color-outline:var(--_appearance-success-outline)}", qt = (e, t, n, r, i) => ({
|
|
1759
1791
|
name: e,
|
|
1760
1792
|
type: t,
|
|
1761
1793
|
template: n,
|
|
1762
1794
|
dependencies: r,
|
|
1763
|
-
options:
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1795
|
+
options: {
|
|
1796
|
+
...i,
|
|
1797
|
+
styles: [
|
|
1798
|
+
Kt,
|
|
1799
|
+
Gt(e),
|
|
1800
|
+
...i.styles ? [i.styles].flat() : []
|
|
1801
|
+
]
|
|
1802
|
+
}
|
|
1803
|
+
}), Jt = /* @__PURE__ */ new WeakMap(), Z = (e) => {
|
|
1804
|
+
let t = Jt.get(e);
|
|
1805
|
+
return t || (t = [], Jt.set(e, t)), t;
|
|
1806
|
+
}, Yt = (e, t) => {
|
|
1768
1807
|
Z(e).push(t);
|
|
1769
|
-
},
|
|
1808
|
+
}, Xt = (e, t) => {
|
|
1770
1809
|
Z(e).splice(Z(e).indexOf(t), 1);
|
|
1771
|
-
},
|
|
1810
|
+
}, Zt = (e, t) => {
|
|
1772
1811
|
Z(e).forEach((n) => n(e, t));
|
|
1773
|
-
},
|
|
1774
|
-
if (
|
|
1812
|
+
}, Qt = (e) => e === "delegate", $t = (e) => `vvd${e.charAt(0).toUpperCase()}${e.slice(1)}`, en = (e, t) => {
|
|
1813
|
+
if (Qt(e._vividAriaBehaviour)) {
|
|
1775
1814
|
let n = e[t];
|
|
1776
|
-
e[`_${t}`] = null, e.removeAttribute($(t)), e[`_${t}`] = n, e[t] === null ? delete e.dataset[
|
|
1815
|
+
e[`_${t}`] = null, e.removeAttribute($(t)), e[`_${t}`] = n, e[t] === null ? delete e.dataset[$t(t)] : e.dataset[$t(t)] = e[t];
|
|
1777
1816
|
} else g.setAttribute(e, $(t), e[t]);
|
|
1778
|
-
}, Q = /* @__PURE__ */ new WeakMap(),
|
|
1817
|
+
}, Q = /* @__PURE__ */ new WeakMap(), tn = (e, t) => {
|
|
1779
1818
|
let n = Q.get(e);
|
|
1780
|
-
n ? n.add(t) : Q.set(e, new Set([t]));
|
|
1781
|
-
},
|
|
1782
|
-
e.isConnected ?
|
|
1783
|
-
},
|
|
1819
|
+
n ? n.add(t) : Q.set(e, /* @__PURE__ */ new Set([t]));
|
|
1820
|
+
}, nn = (e, t) => {
|
|
1821
|
+
e.isConnected ? en(e, t) : tn(e, t);
|
|
1822
|
+
}, rn = (e) => {
|
|
1784
1823
|
let t = Q.get(e);
|
|
1785
1824
|
if (t) {
|
|
1786
|
-
for (let n of t)
|
|
1825
|
+
for (let n of t) en(e, n);
|
|
1787
1826
|
Q.delete(e);
|
|
1788
1827
|
}
|
|
1789
|
-
},
|
|
1828
|
+
}, an = /* @__PURE__ */ "role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColIndexText.ariaColSpan.ariaCurrent.ariaDescription.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowIndexText.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText.ariaRelevant".split("."), on = [
|
|
1790
1829
|
"ariaControls",
|
|
1791
1830
|
"ariaDescribedBy",
|
|
1792
1831
|
"ariaDetails",
|
|
@@ -1794,24 +1833,24 @@ var Bt = /* @__PURE__ */ new Set(), Vt = /* @__PURE__ */ new Map(), Ht = (e) =>
|
|
|
1794
1833
|
"ariaFlowTo",
|
|
1795
1834
|
"ariaLabelledBy",
|
|
1796
1835
|
"ariaOwns"
|
|
1797
|
-
],
|
|
1836
|
+
], sn = [...an, ...on], $ = (e) => e.replace("aria", "aria-").toLowerCase(), cn = (e) => {
|
|
1798
1837
|
class t extends e {
|
|
1799
1838
|
constructor(...e) {
|
|
1800
1839
|
super(...e), this._vividAriaBehaviour = "default";
|
|
1801
|
-
for (let e of
|
|
1840
|
+
for (let e of sn) this[`_${e}`] = null;
|
|
1802
1841
|
}
|
|
1803
1842
|
connectedCallback() {
|
|
1804
|
-
super.connectedCallback(),
|
|
1843
|
+
super.connectedCallback(), rn(this);
|
|
1805
1844
|
}
|
|
1806
1845
|
}
|
|
1807
|
-
for (let e of
|
|
1846
|
+
for (let e of sn) ct({
|
|
1808
1847
|
attribute: $(e),
|
|
1809
1848
|
mode: "fromView"
|
|
1810
1849
|
})(t.prototype, e), t.prototype[`${e}Changed`] = function() {
|
|
1811
|
-
|
|
1850
|
+
nn(this, e), this._vividAriaBehaviour !== "default" && Zt(this, e);
|
|
1812
1851
|
};
|
|
1813
1852
|
return t;
|
|
1814
|
-
},
|
|
1853
|
+
}, ln = (e) => {
|
|
1815
1854
|
class t extends e {
|
|
1816
1855
|
#e = /* @__PURE__ */ new Set();
|
|
1817
1856
|
_addController(e) {
|
|
@@ -1833,16 +1872,16 @@ var Bt = /* @__PURE__ */ new Set(), Vt = /* @__PURE__ */ new Map(), Ht = (e) =>
|
|
|
1833
1872
|
};
|
|
1834
1873
|
//#endregion
|
|
1835
1874
|
//#region src/shared/deprecation/replaced-props.ts
|
|
1836
|
-
function
|
|
1875
|
+
function un() {
|
|
1837
1876
|
let e = /* @__PURE__ */ new WeakMap();
|
|
1838
1877
|
return (t) => (e.has(t) || e.set(t, []), e.get(t));
|
|
1839
1878
|
}
|
|
1840
|
-
var
|
|
1841
|
-
|
|
1879
|
+
var dn = un(), fn = (e) => (t, n) => {
|
|
1880
|
+
dn(t.constructor).push({
|
|
1842
1881
|
newPropertyName: n,
|
|
1843
1882
|
...e
|
|
1844
1883
|
});
|
|
1845
|
-
},
|
|
1884
|
+
}, pn = (e) => {
|
|
1846
1885
|
class t extends e {
|
|
1847
1886
|
#e(e) {
|
|
1848
1887
|
let t = !1, n = !1, r = (t) => n && e.fromDeprecated(t[e.deprecatedPropertyName]) === t[e.newPropertyName], i = (n) => t && e.toDeprecated && e.toDeprecated(n[e.newPropertyName]) === n[e.deprecatedPropertyName], a = { handleChange(a, o) {
|
|
@@ -1854,18 +1893,18 @@ var sn = on(), cn = (e) => (t, n) => {
|
|
|
1854
1893
|
if (n = !0, i(a)) return;
|
|
1855
1894
|
a[e.newPropertyName] = e.fromDeprecated(a[e.deprecatedPropertyName]);
|
|
1856
1895
|
}
|
|
1857
|
-
} }, o =
|
|
1896
|
+
} }, o = b.getNotifier(this);
|
|
1858
1897
|
o.subscribe(a, e.newPropertyName), o.subscribe(a, e.deprecatedPropertyName);
|
|
1859
1898
|
}
|
|
1860
1899
|
constructor(...e) {
|
|
1861
1900
|
super(...e);
|
|
1862
|
-
for (let e of
|
|
1901
|
+
for (let e of dn(this.constructor)) this.#e(e);
|
|
1863
1902
|
}
|
|
1864
1903
|
}
|
|
1865
1904
|
return t;
|
|
1866
|
-
},
|
|
1905
|
+
}, mn = class extends cn(pn(ln(Lt))) {
|
|
1867
1906
|
static {
|
|
1868
|
-
this.VIVID_VERSION = "5.
|
|
1907
|
+
this.VIVID_VERSION = "5.28.0";
|
|
1869
1908
|
}
|
|
1870
1909
|
connectedCallback() {
|
|
1871
1910
|
super.connectedCallback();
|
|
@@ -1882,4 +1921,4 @@ var sn = on(), cn = (e) => (t, n) => {
|
|
|
1882
1921
|
}
|
|
1883
1922
|
};
|
|
1884
1923
|
//#endregion
|
|
1885
|
-
export {
|
|
1924
|
+
export { re as A, O as C, S as D, se as E, l as F, i as I, a as L, v as M, _ as N, x as O, g as P, o as R, me as S, le as T, R as _, an as a, P as b, Yt as c, Vt as d, bt as f, B as g, ot as h, on as i, ie as j, b as k, Xt as l, ct as m, fn as n, nn as o, vt as p, $ as r, Zt as s, mn as t, qt as u, z as v, C as w, j as x, M as y };
|