@toife/vue 3.1.5 → 3.2.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/README.md +1 -52
- package/dist/components/action/action.composable.d.ts +44 -0
- package/dist/components/action/action.vue.d.ts +16 -0
- package/dist/components/action/index.d.ts +2 -0
- package/dist/components/app/app.vue.d.ts +11 -0
- package/dist/components/app/index.d.ts +1 -0
- package/dist/components/avatar/avatar.vue.d.ts +8 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/button/button.vue.d.ts +9 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/cable/cable.vue.d.ts +6 -0
- package/dist/components/cable/index.d.ts +1 -0
- package/dist/components/card/card/card.vue.d.ts +7 -0
- package/dist/components/card/card/index.d.ts +1 -0
- package/dist/components/card/card-body/card-body.vue.d.ts +2 -0
- package/dist/components/card/card-body/index.d.ts +1 -0
- package/dist/components/card/card-footer/card-footer.vue.d.ts +2 -0
- package/dist/components/card/card-footer/index.d.ts +1 -0
- package/dist/components/card/card-header/card-header.vue.d.ts +2 -0
- package/dist/components/card/card-header/index.d.ts +1 -0
- package/dist/components/card/index.d.ts +4 -0
- package/dist/components/checkbox/checkbox.vue.d.ts +18 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/collapse/collapse.vue.d.ts +12 -0
- package/dist/components/collapse/index.d.ts +1 -0
- package/dist/components/container/container.vue.d.ts +2 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/decision-modal/decision-modal.composable.d.ts +46 -0
- package/dist/components/decision-modal/decision-modal.vue.d.ts +16 -0
- package/dist/components/decision-modal/index.d.ts +2 -0
- package/dist/components/divider/divider.vue.d.ts +5 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/dropdown/dropdown.vue.d.ts +20 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/field/field.vue.d.ts +30 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/form-group/form-group.vue.d.ts +5 -0
- package/dist/components/form-group/index.d.ts +1 -0
- package/dist/components/gesture-indicator/gesture-indicator.vue.d.ts +6 -0
- package/dist/components/gesture-indicator/index.d.ts +1 -0
- package/dist/components/image/image.vue.d.ts +3 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/layout/flex/flex.vue.d.ts +5 -0
- package/dist/components/layout/flex/index.d.ts +1 -0
- package/dist/components/layout/flex-item/flex-item.vue.d.ts +5 -0
- package/dist/components/layout/flex-item/index.d.ts +1 -0
- package/dist/components/layout/grid/grid.vue.d.ts +5 -0
- package/dist/components/layout/grid/index.d.ts +1 -0
- package/dist/components/layout/grid-item/grid-item.vue.d.ts +5 -0
- package/dist/components/layout/grid-item/index.d.ts +1 -0
- package/dist/components/layout/index.d.ts +4 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/modal.vue.d.ts +17 -0
- package/dist/components/page/index.d.ts +1 -0
- package/dist/components/page/page.vue.d.ts +2 -0
- package/dist/components/present/index.d.ts +2 -0
- package/dist/components/present/present.composable.d.ts +5 -0
- package/dist/components/present/present.vue.d.ts +18 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/radio/index.d.ts +1 -0
- package/dist/components/radio/radio/radio.vue.d.ts +7 -0
- package/dist/components/radio/radio-group/index.d.ts +1 -0
- package/dist/components/radio/radio-group/radio-group.vue.d.ts +13 -0
- package/dist/components/refresher/index.d.ts +1 -0
- package/dist/components/refresher/refresher.vue.d.ts +12 -0
- package/dist/components/route/index.d.ts +5 -0
- package/dist/components/route/route-navigator/index.d.ts +1 -0
- package/dist/components/route/route-navigator/route-navigator.vue.d.ts +11 -0
- package/dist/components/route/route-outlet/index.d.ts +1 -0
- package/dist/components/route/route-outlet/route-outlet.vue.d.ts +5 -0
- package/dist/components/route/route-provider/index.d.ts +1 -0
- package/dist/components/route/route-provider/route-provider.vue.d.ts +3 -0
- package/dist/components/route/route-wrapper/index.d.ts +2 -0
- package/dist/components/route/route-wrapper/route-wrapper.composable.d.ts +6 -0
- package/dist/components/route/route-wrapper/route-wrapper.vue.d.ts +5 -0
- package/dist/components/route/route.util.d.ts +3 -0
- package/dist/components/segmented-field/index.d.ts +1 -0
- package/dist/components/segmented-field/segmented-field.vue.d.ts +28 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/select.vue.d.ts +19 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/skeleton.vue.d.ts +6 -0
- package/dist/components/slide-range/index.d.ts +1 -0
- package/dist/components/slide-range/slide-range.vue.d.ts +17 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/switch.vue.d.ts +13 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tab/index.d.ts +1 -0
- package/dist/components/tabs/tab/tab.vue.d.ts +5 -0
- package/dist/components/tabs/tabs/index.d.ts +1 -0
- package/dist/components/tabs/tabs/tabs.vue.d.ts +14 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/tag.vue.d.ts +6 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/toast/index.d.ts +1 -0
- package/dist/components/toast/toast/toast.vue.d.ts +5 -0
- package/dist/components/toast/toast-content/index.d.ts +1 -0
- package/dist/components/toast/toast-content/toast-content.vue.d.ts +11 -0
- package/dist/components/toast/toast.composable.d.ts +22 -0
- package/dist/components/toolbar/index.d.ts +1 -0
- package/dist/components/toolbar/toolbar.vue.d.ts +7 -0
- package/dist/factory.d.ts +38 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +3491 -0
- package/dist/index.umd.js +1 -0
- package/dist/shared/provider-state.d.ts +5 -0
- package/dist/styles/action.css +1 -0
- package/dist/styles/app.css +1 -0
- package/dist/styles/avatar.css +1 -0
- package/dist/styles/button.css +1 -0
- package/dist/styles/cable.css +1 -0
- package/dist/styles/card-body.css +1 -0
- package/dist/styles/card-footer.css +1 -0
- package/dist/styles/card-header.css +1 -0
- package/dist/styles/card.css +1 -0
- package/dist/styles/checkbox.css +1 -0
- package/dist/styles/collapse.css +1 -0
- package/dist/styles/container.css +1 -0
- package/dist/styles/decision-modal.css +1 -0
- package/dist/styles/divider.css +1 -0
- package/dist/styles/dropdown.css +1 -0
- package/dist/styles/field.css +1 -0
- package/dist/styles/flex-item.css +1 -0
- package/dist/styles/flex.css +1 -0
- package/dist/styles/form-group.css +1 -0
- package/dist/styles/gesture-indicator.css +1 -0
- package/dist/styles/grid-item.css +1 -0
- package/dist/styles/grid.css +1 -0
- package/dist/styles/index.css +40 -0
- package/dist/styles/modal.css +1 -0
- package/dist/styles/page.css +1 -0
- package/dist/styles/present.css +1 -0
- package/dist/styles/radio-group.css +1 -0
- package/dist/styles/radio.css +1 -0
- package/dist/styles/refresher.css +1 -0
- package/dist/styles/route-navigator.css +1 -0
- package/dist/styles/segmented-field.css +1 -0
- package/dist/styles/select.css +1 -0
- package/dist/styles/skeleton.css +1 -0
- package/dist/styles/slide-range.css +1 -0
- package/dist/styles/switch.css +1 -0
- package/dist/styles/tab.css +1 -0
- package/dist/styles/tabs.css +1 -0
- package/dist/styles/tag.css +1 -0
- package/dist/styles/toast-content.css +1 -0
- package/dist/styles/toast.css +1 -0
- package/dist/styles/toolbar.css +1 -0
- package/dist/types.d.ts +4 -0
- package/package.json +24 -14
- package/src/components/action/action.composable.ts +0 -32
- package/src/components/action/action.html +0 -25
- package/src/components/action/action.scss +0 -106
- package/src/components/action/action.type.ts +0 -44
- package/src/components/action/action.vue +0 -72
- package/src/components/action/index.ts +0 -9
- package/src/components/app/app.constants.ts +0 -1
- package/src/components/app/app.html +0 -24
- package/src/components/app/app.scss +0 -27
- package/src/components/app/app.type.ts +0 -36
- package/src/components/app/app.vue +0 -52
- package/src/components/app/index.ts +0 -3
- package/src/components/avatar/avatar.html +0 -3
- package/src/components/avatar/avatar.scss +0 -45
- package/src/components/avatar/avatar.type.ts +0 -8
- package/src/components/avatar/avatar.vue +0 -44
- package/src/components/avatar/index.ts +0 -2
- package/src/components/button/button.html +0 -6
- package/src/components/button/button.scss +0 -116
- package/src/components/button/button.type.ts +0 -16
- package/src/components/button/button.vue +0 -61
- package/src/components/button/index.ts +0 -2
- package/src/components/cable/cable.constants.ts +0 -1
- package/src/components/cable/cable.html +0 -3
- package/src/components/cable/cable.scss +0 -37
- package/src/components/cable/cable.type.ts +0 -11
- package/src/components/cable/cable.vue +0 -33
- package/src/components/cable/index.ts +0 -3
- package/src/components/card/card/card.constants.ts +0 -1
- package/src/components/card/card/card.html +0 -3
- package/src/components/card/card/card.scss +0 -37
- package/src/components/card/card/card.type.ts +0 -14
- package/src/components/card/card/card.vue +0 -62
- package/src/components/card/card/index.ts +0 -3
- package/src/components/card/card-body/card-body.html +0 -3
- package/src/components/card/card-body/card-body.scss +0 -23
- package/src/components/card/card-body/card-body.vue +0 -9
- package/src/components/card/card-body/index.ts +0 -1
- package/src/components/card/card-footer/card-footer.html +0 -3
- package/src/components/card/card-footer/card-footer.scss +0 -32
- package/src/components/card/card-footer/card-footer.vue +0 -25
- package/src/components/card/card-footer/index.ts +0 -1
- package/src/components/card/card-header/card-header.html +0 -3
- package/src/components/card/card-header/card-header.scss +0 -32
- package/src/components/card/card-header/card-header.vue +0 -25
- package/src/components/card/card-header/index.ts +0 -1
- package/src/components/card/index.ts +0 -4
- package/src/components/checkbox/checkbox.html +0 -12
- package/src/components/checkbox/checkbox.scss +0 -150
- package/src/components/checkbox/checkbox.type.ts +0 -21
- package/src/components/checkbox/checkbox.vue +0 -80
- package/src/components/checkbox/index.ts +0 -2
- package/src/components/collapse/collapse.html +0 -16
- package/src/components/collapse/collapse.scss +0 -59
- package/src/components/collapse/collapse.type.ts +0 -11
- package/src/components/collapse/collapse.vue +0 -127
- package/src/components/collapse/index.ts +0 -2
- package/src/components/container/container.html +0 -1
- package/src/components/container/container.scss +0 -10
- package/src/components/container/container.vue +0 -10
- package/src/components/container/index.ts +0 -1
- package/src/components/decision-modal/decision-modal.composable.ts +0 -33
- package/src/components/decision-modal/decision-modal.html +0 -29
- package/src/components/decision-modal/decision-modal.scss +0 -144
- package/src/components/decision-modal/decision-modal.type.ts +0 -35
- package/src/components/decision-modal/decision-modal.vue +0 -96
- package/src/components/decision-modal/index.ts +0 -9
- package/src/components/divider/divider.html +0 -1
- package/src/components/divider/divider.scss +0 -29
- package/src/components/divider/divider.type.ts +0 -6
- package/src/components/divider/divider.vue +0 -31
- package/src/components/divider/index.ts +0 -2
- package/src/components/dropdown/dropdown.html +0 -6
- package/src/components/dropdown/dropdown.scss +0 -71
- package/src/components/dropdown/dropdown.type.ts +0 -22
- package/src/components/dropdown/dropdown.vue +0 -111
- package/src/components/dropdown/index.ts +0 -2
- package/src/components/field/field.html +0 -12
- package/src/components/field/field.type.ts +0 -43
- package/src/components/field/field.vue +0 -86
- package/src/components/field/index.ts +0 -2
- package/src/components/field/outline/index.ts +0 -1
- package/src/components/field/outline/outline.html +0 -36
- package/src/components/field/outline/outline.scss +0 -282
- package/src/components/field/outline/outline.vue +0 -294
- package/src/components/form-group/form-group.html +0 -3
- package/src/components/form-group/form-group.scss +0 -91
- package/src/components/form-group/form-group.type.ts +0 -5
- package/src/components/form-group/form-group.vue +0 -21
- package/src/components/form-group/index.ts +0 -2
- package/src/components/gesture-indicator/gesture-indicator.html +0 -1
- package/src/components/gesture-indicator/gesture-indicator.scss +0 -47
- package/src/components/gesture-indicator/gesture-indicator.type.ts +0 -5
- package/src/components/gesture-indicator/gesture-indicator.vue +0 -31
- package/src/components/gesture-indicator/index.ts +0 -1
- package/src/components/image/image.html +0 -1
- package/src/components/image/image.type.ts +0 -5
- package/src/components/image/image.vue +0 -29
- package/src/components/image/index.ts +0 -2
- package/src/components/index.ts +0 -31
- package/src/components/layout/flex/flex.html +0 -1
- package/src/components/layout/flex/flex.scss +0 -57
- package/src/components/layout/flex/flex.type.ts +0 -15
- package/src/components/layout/flex/flex.vue +0 -34
- package/src/components/layout/flex/index.ts +0 -2
- package/src/components/layout/flex-item/flex-item.html +0 -1
- package/src/components/layout/flex-item/flex-item.scss +0 -48
- package/src/components/layout/flex-item/flex-item.type.ts +0 -11
- package/src/components/layout/flex-item/flex-item.vue +0 -27
- package/src/components/layout/flex-item/index.ts +0 -2
- package/src/components/layout/grid/grid.html +0 -1
- package/src/components/layout/grid/grid.scss +0 -51
- package/src/components/layout/grid/grid.type.ts +0 -12
- package/src/components/layout/grid/grid.vue +0 -32
- package/src/components/layout/grid/index.ts +0 -2
- package/src/components/layout/grid-item/grid-item.html +0 -1
- package/src/components/layout/grid-item/grid-item.scss +0 -49
- package/src/components/layout/grid-item/grid-item.type.ts +0 -14
- package/src/components/layout/grid-item/grid-item.vue +0 -27
- package/src/components/layout/grid-item/index.ts +0 -2
- package/src/components/layout/index.ts +0 -4
- package/src/components/modal/index.ts +0 -2
- package/src/components/modal/modal.html +0 -20
- package/src/components/modal/modal.scss +0 -80
- package/src/components/modal/modal.type.ts +0 -21
- package/src/components/modal/modal.vue +0 -251
- package/src/components/page/index.ts +0 -1
- package/src/components/page/page.html +0 -3
- package/src/components/page/page.scss +0 -17
- package/src/components/page/page.vue +0 -10
- package/src/components/present/index.ts +0 -3
- package/src/components/present/present.composable.ts +0 -22
- package/src/components/present/present.html +0 -9
- package/src/components/present/present.scss +0 -81
- package/src/components/present/present.type.ts +0 -26
- package/src/components/present/present.vue +0 -198
- package/src/components/radio/index.ts +0 -2
- package/src/components/radio/radio/index.ts +0 -2
- package/src/components/radio/radio/radio.html +0 -11
- package/src/components/radio/radio/radio.scss +0 -142
- package/src/components/radio/radio/radio.type.ts +0 -15
- package/src/components/radio/radio/radio.vue +0 -87
- package/src/components/radio/radio-group/index.ts +0 -7
- package/src/components/radio/radio-group/radio-group.constants.ts +0 -1
- package/src/components/radio/radio-group/radio-group.html +0 -3
- package/src/components/radio/radio-group/radio-group.scss +0 -16
- package/src/components/radio/radio-group/radio-group.type.ts +0 -28
- package/src/components/radio/radio-group/radio-group.vue +0 -57
- package/src/components/refresher/index.ts +0 -2
- package/src/components/refresher/refresher.html +0 -3
- package/src/components/refresher/refresher.scss +0 -18
- package/src/components/refresher/refresher.type.ts +0 -16
- package/src/components/refresher/refresher.vue +0 -123
- package/src/components/route/index.ts +0 -5
- package/src/components/route/route-navigator/index.ts +0 -2
- package/src/components/route/route-navigator/route-navigator.html +0 -19
- package/src/components/route/route-navigator/route-navigator.scss +0 -127
- package/src/components/route/route-navigator/route-navigator.type.ts +0 -36
- package/src/components/route/route-navigator/route-navigator.vue +0 -275
- package/src/components/route/route-outlet/index.ts +0 -1
- package/src/components/route/route-outlet/route-outlet.html +0 -1
- package/src/components/route/route-outlet/route-outlet.vue +0 -39
- package/src/components/route/route-provider/index.ts +0 -3
- package/src/components/route/route-provider/route-provider.constant.ts +0 -1
- package/src/components/route/route-provider/route-provider.html +0 -1
- package/src/components/route/route-provider/route-provider.type.ts +0 -10
- package/src/components/route/route-provider/route-provider.vue +0 -20
- package/src/components/route/route-wrapper/index.ts +0 -3
- package/src/components/route/route-wrapper/route-wrapper.composable.ts +0 -49
- package/src/components/route/route-wrapper/route-wrapper.html +0 -3
- package/src/components/route/route-wrapper/route-wrapper.type.ts +0 -3
- package/src/components/route/route-wrapper/route-wrapper.vue +0 -45
- package/src/components/route/route.type.ts +0 -7
- package/src/components/route/route.util.ts +0 -9
- package/src/components/segmented-field/index.ts +0 -7
- package/src/components/segmented-field/segmented-field.html +0 -17
- package/src/components/segmented-field/segmented-field.scss +0 -53
- package/src/components/segmented-field/segmented-field.type.ts +0 -29
- package/src/components/segmented-field/segmented-field.vue +0 -145
- package/src/components/select/index.ts +0 -2
- package/src/components/select/select.html +0 -29
- package/src/components/select/select.scss +0 -129
- package/src/components/select/select.type.ts +0 -45
- package/src/components/select/select.vue +0 -119
- package/src/components/skeleton/index.ts +0 -2
- package/src/components/skeleton/skeleton.html +0 -1
- package/src/components/skeleton/skeleton.scss +0 -52
- package/src/components/skeleton/skeleton.type.ts +0 -7
- package/src/components/skeleton/skeleton.vue +0 -38
- package/src/components/slide-range/index.ts +0 -2
- package/src/components/slide-range/slide-range.html +0 -19
- package/src/components/slide-range/slide-range.scss +0 -161
- package/src/components/slide-range/slide-range.type.ts +0 -16
- package/src/components/slide-range/slide-range.vue +0 -229
- package/src/components/switch/index.ts +0 -2
- package/src/components/switch/switch.html +0 -14
- package/src/components/switch/switch.scss +0 -128
- package/src/components/switch/switch.type.ts +0 -19
- package/src/components/switch/switch.vue +0 -97
- package/src/components/tabs/index.ts +0 -2
- package/src/components/tabs/tab/index.ts +0 -2
- package/src/components/tabs/tab/tab.html +0 -5
- package/src/components/tabs/tab/tab.scss +0 -13
- package/src/components/tabs/tab/tab.type.ts +0 -5
- package/src/components/tabs/tab/tab.vue +0 -40
- package/src/components/tabs/tabs/index.ts +0 -10
- package/src/components/tabs/tabs/tabs.constants.ts +0 -1
- package/src/components/tabs/tabs/tabs.html +0 -3
- package/src/components/tabs/tabs/tabs.scss +0 -341
- package/src/components/tabs/tabs/tabs.type.ts +0 -39
- package/src/components/tabs/tabs/tabs.vue +0 -177
- package/src/components/toast/index.ts +0 -4
- package/src/components/toast/toast/index.ts +0 -1
- package/src/components/toast/toast/toast.html +0 -9
- package/src/components/toast/toast/toast.scss +0 -61
- package/src/components/toast/toast/toast.vue +0 -34
- package/src/components/toast/toast-content/index.ts +0 -1
- package/src/components/toast/toast-content/toast-content.html +0 -1
- package/src/components/toast/toast-content/toast-content.scss +0 -42
- package/src/components/toast/toast-content/toast-content.vue +0 -53
- package/src/components/toast/toast.composable.ts +0 -22
- package/src/components/toast/toast.type.ts +0 -25
- package/src/components/toolbar/index.ts +0 -2
- package/src/components/toolbar/toolbar.html +0 -3
- package/src/components/toolbar/toolbar.scss +0 -64
- package/src/components/toolbar/toolbar.type.ts +0 -7
- package/src/components/toolbar/toolbar.vue +0 -41
- package/src/env.d.ts +0 -7
- package/src/factory.ts +0 -152
- package/src/index.ts +0 -4
- package/src/type.ts +0 -4
- package/src/utils/element.md +0 -33
- package/src/utils/element.ts +0 -22
- package/src/utils/events.md +0 -29
- package/src/utils/events.ts +0 -18
- package/src/utils/index.ts +0 -3
- package/src/utils/style/index.ts +0 -57
- package/src/utils/style.md +0 -49
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,3491 @@
|
|
|
1
|
+
import { ref as _, defineComponent as B, inject as y, computed as c, unref as u, onMounted as q, mergeDefaults as j, openBlock as m, createElementBlock as T, normalizeProps as D, guardReactiveProps as U, toDisplayString as le, mergeProps as K, renderSlot as L, Fragment as ce, renderList as de, createBlock as Z, createCommentVNode as ee, reactive as Se, nextTick as re, watch as X, Teleport as gn, withDirectives as fe, vShow as Ee, createElementVNode as H, withCtx as ae, createTextVNode as en, toRefs as Re, provide as ne, createVNode as se, onUnmounted as oe, normalizeStyle as hn, normalizeClass as tn, vModelText as bn, vModelDynamic as An, markRaw as Ge, resolveDynamicComponent as yn, shallowRef as Pn, withKeys as Tn, withModifiers as rn } from "vue";
|
|
2
|
+
import { gesture as ue } from "@toife/gesture";
|
|
3
|
+
import { useRouter as Oe, useRoute as Ye } from "vue-router";
|
|
4
|
+
const he = _([]), Sn = _(1), We = () => ({
|
|
5
|
+
messages: he,
|
|
6
|
+
open: (n) => {
|
|
7
|
+
he.value.push({ ...n, id: Sn.value++ });
|
|
8
|
+
},
|
|
9
|
+
close: (n) => {
|
|
10
|
+
he.value = he.value.filter((e) => e.id !== n);
|
|
11
|
+
}
|
|
12
|
+
}), En = (t) => !t || !(t instanceof HTMLElement) ? !1 : t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable, Rn = () => {
|
|
13
|
+
const t = document.activeElement;
|
|
14
|
+
t instanceof HTMLElement && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
|
|
15
|
+
}, On = () => {
|
|
16
|
+
document.addEventListener("contextmenu", (t) => t.preventDefault()), document.addEventListener("pointerup", (t) => {
|
|
17
|
+
En(t.target) || Rn();
|
|
18
|
+
}), "virtualKeyboard" in navigator && navigator.virtualKeyboard && (navigator.virtualKeyboard.overlaysContent = !0);
|
|
19
|
+
};
|
|
20
|
+
let Ce = null, Fe = null;
|
|
21
|
+
const kn = () => (Fe || (Fe = getComputedStyle(document.documentElement).getPropertyValue("--separator").trim()), Fe), wn = () => (Ce || (Ce = getComputedStyle(document.documentElement).getPropertyValue("--prefix").trim()), Ce), i = (t) => {
|
|
22
|
+
const r = wn(), n = kn();
|
|
23
|
+
let e = [];
|
|
24
|
+
return typeof t == "string" ? e = [t] : e = [...t], r && (e = [r, ...e]), e.filter((o) => o != null && o !== "").join(n);
|
|
25
|
+
}, C = (t) => `--${i(t)}`, ns = (t) => `var(${C(t)})`, He = {
|
|
26
|
+
visible: !1,
|
|
27
|
+
shape: void 0,
|
|
28
|
+
role: void 0,
|
|
29
|
+
placement: "bottom",
|
|
30
|
+
divider: void 0,
|
|
31
|
+
shadow: void 0
|
|
32
|
+
}, Xe = (t) => ({
|
|
33
|
+
class: [
|
|
34
|
+
i("action"),
|
|
35
|
+
i(["layer", "action"]),
|
|
36
|
+
i(["role", t.role]),
|
|
37
|
+
i(["shape", t.shape]),
|
|
38
|
+
t.placement,
|
|
39
|
+
{
|
|
40
|
+
pop: t.pop,
|
|
41
|
+
divider: t.divider,
|
|
42
|
+
shadow: t.shadow
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}), E = "app-state", qe = {
|
|
46
|
+
shape: "pill",
|
|
47
|
+
divider: !1,
|
|
48
|
+
role: "mode",
|
|
49
|
+
shadow: !1,
|
|
50
|
+
triple: !1,
|
|
51
|
+
direction: "left",
|
|
52
|
+
data: () => ({})
|
|
53
|
+
}, Je = (t) => ({
|
|
54
|
+
class: [
|
|
55
|
+
i("app"),
|
|
56
|
+
i(["layer", "app"]),
|
|
57
|
+
i(["shape", t.shape])
|
|
58
|
+
]
|
|
59
|
+
}), Qe = {
|
|
60
|
+
size: "22px",
|
|
61
|
+
src: "",
|
|
62
|
+
role: void 0,
|
|
63
|
+
divider: void 0
|
|
64
|
+
}, Ze = (t) => ({
|
|
65
|
+
class: [
|
|
66
|
+
i("avatar"),
|
|
67
|
+
i(["layer", "avatar"]),
|
|
68
|
+
i(["role", t.role]),
|
|
69
|
+
i(["shape", t.shape]),
|
|
70
|
+
{ divider: t.divider }
|
|
71
|
+
],
|
|
72
|
+
style: {
|
|
73
|
+
[C("width")]: t.size + (typeof t.size == "number" ? "px" : ""),
|
|
74
|
+
backgroundImage: t.src ? `url(${t.src})` : void 0
|
|
75
|
+
}
|
|
76
|
+
}), et = {
|
|
77
|
+
size: "standard",
|
|
78
|
+
block: !1,
|
|
79
|
+
loading: !1,
|
|
80
|
+
variant: "fill",
|
|
81
|
+
shadow: void 0
|
|
82
|
+
}, tt = (t) => ({
|
|
83
|
+
class: [
|
|
84
|
+
i(["layer", "button"]),
|
|
85
|
+
t.role ? i(["role", t.role]) : "",
|
|
86
|
+
i(["shape", t.shape]),
|
|
87
|
+
i("button"),
|
|
88
|
+
i(["size", t.size]),
|
|
89
|
+
{ block: t.block, shadow: t.shadow, focus: t.focus }
|
|
90
|
+
]
|
|
91
|
+
}), rt = () => ({
|
|
92
|
+
class: [i("loader")]
|
|
93
|
+
}), ke = "cable-state", nt = {
|
|
94
|
+
keyboard: !1,
|
|
95
|
+
placement: "bottom"
|
|
96
|
+
}, ot = (t) => ({
|
|
97
|
+
class: [i(["layer", "cable"]), i("cable"), t.placement]
|
|
98
|
+
}), ve = "card-state", at = {
|
|
99
|
+
divider: void 0,
|
|
100
|
+
shape: void 0,
|
|
101
|
+
role: void 0
|
|
102
|
+
}, st = (t) => ({
|
|
103
|
+
class: [
|
|
104
|
+
i(["layer", "card"]),
|
|
105
|
+
i(["role", t.role]),
|
|
106
|
+
i(["shape", t.shape]),
|
|
107
|
+
i("card"),
|
|
108
|
+
{ divider: t.divider }
|
|
109
|
+
]
|
|
110
|
+
}), lt = (t) => ({
|
|
111
|
+
class: [i("card-header"), { divider: t.divider }]
|
|
112
|
+
}), it = (t) => ({
|
|
113
|
+
class: [i("card-footer"), { divider: t.divider }]
|
|
114
|
+
}), ct = () => ({
|
|
115
|
+
class: [i("card-body")]
|
|
116
|
+
}), dt = {
|
|
117
|
+
modelValue: !1,
|
|
118
|
+
disabled: !1,
|
|
119
|
+
size: "standard",
|
|
120
|
+
variant: "fill",
|
|
121
|
+
readonly: !1,
|
|
122
|
+
shadow: void 0
|
|
123
|
+
}, ut = (t) => ({
|
|
124
|
+
class: [
|
|
125
|
+
i(["layer", "checkbox"]),
|
|
126
|
+
i(["role", t.role]),
|
|
127
|
+
i(["shape", t.shape]),
|
|
128
|
+
i(["size", t.size]),
|
|
129
|
+
i("checkbox"),
|
|
130
|
+
t.variant,
|
|
131
|
+
{
|
|
132
|
+
on: t.modelValue,
|
|
133
|
+
disabled: t.disabled,
|
|
134
|
+
readonly: t.readonly,
|
|
135
|
+
shadow: t.shadow,
|
|
136
|
+
focus: t.focus
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}), pt = () => ({
|
|
140
|
+
class: [i("checkbox-icon")]
|
|
141
|
+
}), _t = {
|
|
142
|
+
modelValue: !1,
|
|
143
|
+
duration: void 0,
|
|
144
|
+
role: void 0,
|
|
145
|
+
disabled: !1
|
|
146
|
+
}, ft = (t) => ({
|
|
147
|
+
class: [
|
|
148
|
+
i(["layer", "collapse"]),
|
|
149
|
+
i(["role", t.role]),
|
|
150
|
+
i("collapse"),
|
|
151
|
+
{ open: t.open, disabled: t.disabled }
|
|
152
|
+
]
|
|
153
|
+
}), vt = (t) => ({
|
|
154
|
+
class: [i("collapse-trigger")],
|
|
155
|
+
"aria-expanded": t.open,
|
|
156
|
+
"aria-disabled": t.disabled
|
|
157
|
+
}), mt = (t) => ({
|
|
158
|
+
class: [i("collapse-content"), { transition: t.transition }],
|
|
159
|
+
style: {
|
|
160
|
+
[C("duration")]: t.duration,
|
|
161
|
+
[C("height")]: t.height
|
|
162
|
+
}
|
|
163
|
+
}), gt = () => i("collapse-content-inner"), ht = () => ({
|
|
164
|
+
class: [i("container")]
|
|
165
|
+
}), bt = {
|
|
166
|
+
placement: "center",
|
|
167
|
+
keepalive: !1,
|
|
168
|
+
visible: !1,
|
|
169
|
+
shape: void 0,
|
|
170
|
+
role: void 0,
|
|
171
|
+
divider: void 0,
|
|
172
|
+
flow: "row"
|
|
173
|
+
}, At = (t) => ({
|
|
174
|
+
class: [
|
|
175
|
+
i(["layer", "modal"]),
|
|
176
|
+
i(["role", t.role]),
|
|
177
|
+
i(["shape", t.shape]),
|
|
178
|
+
i("decision-modal"),
|
|
179
|
+
{ pop: t.pop, divider: t.divider }
|
|
180
|
+
]
|
|
181
|
+
}), yt = () => ({
|
|
182
|
+
class: [i("decision-modal-header")]
|
|
183
|
+
}), Pt = () => ({
|
|
184
|
+
class: [i("decision-modal-body")]
|
|
185
|
+
}), Tt = (t) => ({
|
|
186
|
+
class: [i("decision-modal-footer"), `actions-flow-${t.flow}`]
|
|
187
|
+
}), St = {
|
|
188
|
+
direction: "horizontal"
|
|
189
|
+
}, Et = (t) => ({
|
|
190
|
+
class: [
|
|
191
|
+
i(["layer", "divider"]),
|
|
192
|
+
i(["role", t.role]),
|
|
193
|
+
i("divider"),
|
|
194
|
+
{ [t.direction]: !0 }
|
|
195
|
+
]
|
|
196
|
+
}), Rt = {
|
|
197
|
+
modelValue: !1,
|
|
198
|
+
disabled: !1,
|
|
199
|
+
placement: "bottom-start",
|
|
200
|
+
role: void 0,
|
|
201
|
+
shadow: void 0,
|
|
202
|
+
shape: void 0,
|
|
203
|
+
direction: void 0,
|
|
204
|
+
size: "standard"
|
|
205
|
+
}, Ot = (t) => ({
|
|
206
|
+
class: [
|
|
207
|
+
i(["layer", "dropdown"]),
|
|
208
|
+
i(["role", t.role]),
|
|
209
|
+
i(["shape", t.shape]),
|
|
210
|
+
i(["size", t.size]),
|
|
211
|
+
i("dropdown"),
|
|
212
|
+
{ open: t.open, disabled: t.disabled, shadow: t.shadow }
|
|
213
|
+
]
|
|
214
|
+
}), kt = (t) => ({
|
|
215
|
+
class: [i("dropdown-panel"), t.placement]
|
|
216
|
+
}), wt = {
|
|
217
|
+
modelValue: "",
|
|
218
|
+
type: "text",
|
|
219
|
+
size: "standard",
|
|
220
|
+
role: void 0,
|
|
221
|
+
shape: void 0,
|
|
222
|
+
disabled: !1,
|
|
223
|
+
readonly: !1,
|
|
224
|
+
message: "",
|
|
225
|
+
variant: "outline",
|
|
226
|
+
placeholder: "",
|
|
227
|
+
shadow: void 0,
|
|
228
|
+
direction: void 0,
|
|
229
|
+
line: 1,
|
|
230
|
+
maxLine: 1
|
|
231
|
+
}, Dt = (t) => ({
|
|
232
|
+
class: [
|
|
233
|
+
i(["layer", "field"]),
|
|
234
|
+
i(["role", t.role]),
|
|
235
|
+
i(["shape", t.shape]),
|
|
236
|
+
i("field"),
|
|
237
|
+
i(["size", t.size]),
|
|
238
|
+
i(["direction", t.direction]),
|
|
239
|
+
t.variant,
|
|
240
|
+
t.type,
|
|
241
|
+
{
|
|
242
|
+
disabled: t.disabled,
|
|
243
|
+
focus: t.focus,
|
|
244
|
+
shadow: t.shadow,
|
|
245
|
+
readonly: t.readonly
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
style: {
|
|
249
|
+
[C("line")]: t.line,
|
|
250
|
+
[C("max-line")]: t.maxLine || t.line
|
|
251
|
+
}
|
|
252
|
+
}), It = () => ({ class: [i("field-content")] }), xt = () => ({ class: [i("field-input")] }), Ct = () => ({ class: [i("field-message")] }), Ft = {
|
|
253
|
+
direction: "horizontal"
|
|
254
|
+
}, Bt = (t) => ({
|
|
255
|
+
class: [i("form-group"), t.direction]
|
|
256
|
+
}), Vt = {
|
|
257
|
+
placement: "bottom",
|
|
258
|
+
role: void 0
|
|
259
|
+
}, Lt = (t) => ({
|
|
260
|
+
class: [
|
|
261
|
+
i(["layer", "gesture-indicator"]),
|
|
262
|
+
i(["role", t.role]),
|
|
263
|
+
i("gesture-indicator"),
|
|
264
|
+
t.placement
|
|
265
|
+
]
|
|
266
|
+
}), $t = {
|
|
267
|
+
options: () => []
|
|
268
|
+
}, zt = {
|
|
269
|
+
options: () => []
|
|
270
|
+
}, Ut = {
|
|
271
|
+
options: () => []
|
|
272
|
+
}, Mt = {
|
|
273
|
+
options: () => []
|
|
274
|
+
}, Kt = (t) => ({
|
|
275
|
+
class: [i("grid")],
|
|
276
|
+
style: t.map((r) => ({
|
|
277
|
+
[C(["gap", r?.breakpoint || ""])]: typeof r.gap == "number" ? `${r.gap}px` : r.gap,
|
|
278
|
+
[C(["columns", r?.breakpoint || ""])]: r.columns,
|
|
279
|
+
[C(["rows", r?.breakpoint || ""])]: r.rows,
|
|
280
|
+
[C(["auto-flow", r?.breakpoint || ""])]: r.autoFlow
|
|
281
|
+
}))
|
|
282
|
+
}), Nt = (t) => ({
|
|
283
|
+
class: [i("grid-item")],
|
|
284
|
+
style: t.map((r) => ({
|
|
285
|
+
[C(["row", r?.breakpoint || ""])]: r.row,
|
|
286
|
+
[C(["column", r?.breakpoint || ""])]: r.column,
|
|
287
|
+
[C(["justify", r?.breakpoint || ""])]: r.justify,
|
|
288
|
+
[C(["align", r?.breakpoint || ""])]: r.align
|
|
289
|
+
}))
|
|
290
|
+
}), jt = (t) => ({
|
|
291
|
+
class: [i("flex")],
|
|
292
|
+
style: t.map((r) => ({
|
|
293
|
+
[C(["gap", r?.breakpoint || ""])]: typeof r.gap == "number" ? `${r.gap}px` : r.gap,
|
|
294
|
+
[C(["direction", r?.breakpoint || ""])]: r.direction,
|
|
295
|
+
[C(["wrap", r?.breakpoint || ""])]: r.wrap,
|
|
296
|
+
[C(["justify", r?.breakpoint || ""])]: r.justify,
|
|
297
|
+
[C(["align", r?.breakpoint || ""])]: r.align
|
|
298
|
+
}))
|
|
299
|
+
}), Gt = (t) => ({
|
|
300
|
+
class: [i("flex-item")],
|
|
301
|
+
style: t.map((r) => ({
|
|
302
|
+
[C(["grow", r?.breakpoint || ""])]: r.grow,
|
|
303
|
+
[C(["shrink", r?.breakpoint || ""])]: r.shrink,
|
|
304
|
+
[C(["basis", r?.breakpoint || ""])]: r.basis,
|
|
305
|
+
[C(["order", r?.breakpoint || ""])]: r.order
|
|
306
|
+
}))
|
|
307
|
+
}), Yt = ["auto", "scroll", "overlay"], Wt = {
|
|
308
|
+
backdrop: "display",
|
|
309
|
+
keepalive: !0,
|
|
310
|
+
visible: !1,
|
|
311
|
+
gesture: !0,
|
|
312
|
+
fullscreen: !1,
|
|
313
|
+
placement: "bottom",
|
|
314
|
+
indicator: !0,
|
|
315
|
+
duration: 200,
|
|
316
|
+
bounce: 0
|
|
317
|
+
}, Ht = (t) => ({
|
|
318
|
+
class: [
|
|
319
|
+
i(["layer", "modal"]),
|
|
320
|
+
i(["role", t.role]),
|
|
321
|
+
i(["shape", t.shape]),
|
|
322
|
+
i("modal"),
|
|
323
|
+
{ fullscreen: t.fullscreen, [t.placement]: !0 },
|
|
324
|
+
t.className
|
|
325
|
+
],
|
|
326
|
+
style: t.style
|
|
327
|
+
}), Xt = () => ({
|
|
328
|
+
class: [i("page")]
|
|
329
|
+
}), qt = {
|
|
330
|
+
keepalive: !1,
|
|
331
|
+
visible: !1,
|
|
332
|
+
backdrop: "display",
|
|
333
|
+
duration: 200,
|
|
334
|
+
placement: "bottom",
|
|
335
|
+
bounce: !1
|
|
336
|
+
}, Jt = {
|
|
337
|
+
backdropTransitionDuration: "0.2s",
|
|
338
|
+
backdropOpacity: void 0,
|
|
339
|
+
presentTransitionDuration: "0.2s",
|
|
340
|
+
presentTranslate: "0px",
|
|
341
|
+
presentOpacity: 1
|
|
342
|
+
}, Be = () => "." + i("app"), Qt = (t) => ({
|
|
343
|
+
class: [i(["layer", "backdrop"]), i("present-backdrop")],
|
|
344
|
+
style: {
|
|
345
|
+
zIndex: t.zIndex,
|
|
346
|
+
[C("transition-duration")]: t.backdropTransitionDuration,
|
|
347
|
+
[C("opacity")]: t.backdropOpacity
|
|
348
|
+
}
|
|
349
|
+
}), Zt = (t) => ({
|
|
350
|
+
class: [i("present"), t.className, t.placement],
|
|
351
|
+
style: [
|
|
352
|
+
{
|
|
353
|
+
zIndex: t.zIndex,
|
|
354
|
+
[C("transition-duration")]: t.presentTransitionDuration,
|
|
355
|
+
[C("translate")]: t.presentTranslate,
|
|
356
|
+
[C("opacity")]: t.presentOpacity
|
|
357
|
+
},
|
|
358
|
+
t.style
|
|
359
|
+
]
|
|
360
|
+
}), we = "radio-group-state", er = {
|
|
361
|
+
disabled: !1,
|
|
362
|
+
readonly: !1,
|
|
363
|
+
variant: "fill",
|
|
364
|
+
direction: "vertical",
|
|
365
|
+
shadow: void 0
|
|
366
|
+
}, tr = {
|
|
367
|
+
disabled: !1,
|
|
368
|
+
size: "standard",
|
|
369
|
+
shadow: void 0
|
|
370
|
+
}, rr = (t) => ({
|
|
371
|
+
class: [
|
|
372
|
+
i(["layer", "radio"]),
|
|
373
|
+
i(["role", t.role]),
|
|
374
|
+
i(["size", t.size]),
|
|
375
|
+
i("radio"),
|
|
376
|
+
t.variant,
|
|
377
|
+
{
|
|
378
|
+
on: t.checked,
|
|
379
|
+
disabled: t.disabled,
|
|
380
|
+
readonly: t.readonly,
|
|
381
|
+
shadow: t.shadow,
|
|
382
|
+
focus: t.focus
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
}), nr = () => ({
|
|
386
|
+
class: [i("radio-icon")]
|
|
387
|
+
}), or = (t) => ({
|
|
388
|
+
class: [i("radio-group"), t.direction]
|
|
389
|
+
}), ar = () => ({
|
|
390
|
+
class: [i("refresher")]
|
|
391
|
+
}), sr = {
|
|
392
|
+
direction: "right",
|
|
393
|
+
variant: "none",
|
|
394
|
+
keepalive: !1
|
|
395
|
+
}, De = "route-provider-state", lr = {
|
|
396
|
+
homeRouteName: "home"
|
|
397
|
+
}, ir = (t) => ({
|
|
398
|
+
class: [
|
|
399
|
+
i("route-navigator"),
|
|
400
|
+
t.direction,
|
|
401
|
+
t.variant,
|
|
402
|
+
{ moving: t.moving }
|
|
403
|
+
],
|
|
404
|
+
style: {
|
|
405
|
+
[C("transform-back")]: t.transform.back + "%",
|
|
406
|
+
[C("transform-prepare")]: t.transform.prepare + "%",
|
|
407
|
+
[C("transform-active")]: t.transform.active + "%",
|
|
408
|
+
[C("transition-duration")]: t.duration,
|
|
409
|
+
[C("percent")]: t.transform.backdrop
|
|
410
|
+
}
|
|
411
|
+
}), cr = (t) => ({
|
|
412
|
+
class: [i("route-navigator-component"), t.direction]
|
|
413
|
+
}), dr = (t) => ({
|
|
414
|
+
class: [i("route-navigator-backdrop"), i(["layer", "backdrop"])],
|
|
415
|
+
style: { zIndex: t.zIndex }
|
|
416
|
+
}), ur = {
|
|
417
|
+
modelValue: void 0,
|
|
418
|
+
value: void 0,
|
|
419
|
+
direction: void 0,
|
|
420
|
+
length: 6,
|
|
421
|
+
variant: "outline",
|
|
422
|
+
size: "standard",
|
|
423
|
+
disabled: !1,
|
|
424
|
+
readonly: !1,
|
|
425
|
+
type: "text",
|
|
426
|
+
shadow: void 0,
|
|
427
|
+
message: "",
|
|
428
|
+
pattern: () => []
|
|
429
|
+
}, pr = (t) => ({
|
|
430
|
+
class: [
|
|
431
|
+
i("segmented-field-wrapper"),
|
|
432
|
+
i(["layer", "segmented-field"]),
|
|
433
|
+
i(["role", t.role]),
|
|
434
|
+
i(["shape", t.shape]),
|
|
435
|
+
i(["direction", t.direction]),
|
|
436
|
+
t.variant,
|
|
437
|
+
t.size,
|
|
438
|
+
{ disabled: t.disabled }
|
|
439
|
+
]
|
|
440
|
+
}), _r = () => ({
|
|
441
|
+
class: [i("segmented-field-content")]
|
|
442
|
+
}), fr = () => ({
|
|
443
|
+
class: [i("segmented-field-message")]
|
|
444
|
+
}), vr = {
|
|
445
|
+
modelValue: "",
|
|
446
|
+
type: "text",
|
|
447
|
+
size: "standard",
|
|
448
|
+
disabled: !1,
|
|
449
|
+
message: "",
|
|
450
|
+
variant: "outline",
|
|
451
|
+
placeholder: "",
|
|
452
|
+
shadow: void 0,
|
|
453
|
+
direction: void 0,
|
|
454
|
+
options: () => []
|
|
455
|
+
}, mr = (t) => ({
|
|
456
|
+
class: [
|
|
457
|
+
i(["layer", "select"]),
|
|
458
|
+
i(["role", t.role]),
|
|
459
|
+
i("select"),
|
|
460
|
+
i(["direction", t.direction]),
|
|
461
|
+
i(["size", t.size]),
|
|
462
|
+
{ disabled: t.disabled }
|
|
463
|
+
]
|
|
464
|
+
}), gr = () => ({ class: [i("select-icon")] }), hr = () => ({ class: [i("select-option")] }), br = () => ({ class: [i("select-message")] }), Ar = {
|
|
465
|
+
width: "100%",
|
|
466
|
+
height: "1rem"
|
|
467
|
+
}, yr = (t) => ({
|
|
468
|
+
class: [
|
|
469
|
+
i(["layer", "skeleton"]),
|
|
470
|
+
i(["role", t.role]),
|
|
471
|
+
i(["shape", t.shape]),
|
|
472
|
+
i("skeleton")
|
|
473
|
+
],
|
|
474
|
+
style: {
|
|
475
|
+
[C("width")]: t.width + (typeof t.width == "number" ? "px" : ""),
|
|
476
|
+
[C("height")]: t.height + (typeof t.height == "number" ? "px" : "")
|
|
477
|
+
}
|
|
478
|
+
}), Pr = {
|
|
479
|
+
modelValue: "",
|
|
480
|
+
min: 0,
|
|
481
|
+
max: 100,
|
|
482
|
+
step: 25,
|
|
483
|
+
unit: "",
|
|
484
|
+
disabled: !1,
|
|
485
|
+
readonly: !1
|
|
486
|
+
}, Tr = (t) => ({
|
|
487
|
+
class: [
|
|
488
|
+
i("slide-range"),
|
|
489
|
+
i(["layer", "slide-range"]),
|
|
490
|
+
i(["role", t.role]),
|
|
491
|
+
i(["shape", t.shape]),
|
|
492
|
+
{ disabled: t.disabled, readonly: t.readonly }
|
|
493
|
+
]
|
|
494
|
+
}), Sr = () => ({
|
|
495
|
+
class: [i("slide-range-track-container")]
|
|
496
|
+
}), Er = () => ({
|
|
497
|
+
class: [i("slide-range-track-body")]
|
|
498
|
+
}), Rr = () => ({
|
|
499
|
+
class: [i("slide-range-track"), "back"]
|
|
500
|
+
}), Or = (t) => ({
|
|
501
|
+
class: [i("slide-range-track"), "front"],
|
|
502
|
+
style: { [C("percent")]: `${t.percent}%` }
|
|
503
|
+
}), kr = (t) => ({
|
|
504
|
+
class: [i("slide-range-thumb")],
|
|
505
|
+
style: { [C("percent")]: `${t.percent}%` }
|
|
506
|
+
}), wr = () => ({
|
|
507
|
+
class: [i("slide-range-thumb-inner")]
|
|
508
|
+
}), Dr = () => ({
|
|
509
|
+
class: [i("slide-range-tooltip")]
|
|
510
|
+
}), Ir = (t) => ({
|
|
511
|
+
class: [i("slide-range-node"), { active: t.active }],
|
|
512
|
+
style: { [C("left")]: `${t.percent}%` }
|
|
513
|
+
}), xr = {
|
|
514
|
+
modelValue: !1,
|
|
515
|
+
size: "standard",
|
|
516
|
+
readonly: !1,
|
|
517
|
+
shadow: void 0,
|
|
518
|
+
bounce: 1.5
|
|
519
|
+
}, Cr = (t) => ({
|
|
520
|
+
class: [
|
|
521
|
+
i("switch-wrapper"),
|
|
522
|
+
{
|
|
523
|
+
disabled: t.disabled,
|
|
524
|
+
readonly: t.readonly,
|
|
525
|
+
shadow: t.shadow,
|
|
526
|
+
focus: t.focus,
|
|
527
|
+
on: t.modelValue
|
|
528
|
+
},
|
|
529
|
+
{ transition: t.transition }
|
|
530
|
+
],
|
|
531
|
+
style: { [C(["bounce", "ratio"])]: t.bounce }
|
|
532
|
+
}), Fr = (t) => ({
|
|
533
|
+
class: [
|
|
534
|
+
i(["layer", "switch"]),
|
|
535
|
+
i(["role", t.role]),
|
|
536
|
+
i(["shape", t.shape]),
|
|
537
|
+
i(["size", t.size]),
|
|
538
|
+
i("switch")
|
|
539
|
+
]
|
|
540
|
+
}), Br = () => ({ class: [i("switch-icon")] }), Vr = {
|
|
541
|
+
disabled: !1
|
|
542
|
+
}, Ie = "tabs-state", Lr = {
|
|
543
|
+
placement: "top-start",
|
|
544
|
+
variant: "fill",
|
|
545
|
+
margin: () => [0, 0],
|
|
546
|
+
border: () => [2, 0],
|
|
547
|
+
transition: !0,
|
|
548
|
+
size: "standard"
|
|
549
|
+
}, $r = (t) => ({
|
|
550
|
+
class: [i("tab"), { active: t.active }]
|
|
551
|
+
}), zr = (t) => ({
|
|
552
|
+
class: [i(["shape", t.shape]), i(["size", t.size])]
|
|
553
|
+
}), Ur = (t) => ({
|
|
554
|
+
class: [
|
|
555
|
+
i(["layer", "tabs"]),
|
|
556
|
+
t.roleVariant ? i(["role", t.roleVariant]) : "",
|
|
557
|
+
i(["shape", t.shape]),
|
|
558
|
+
i("tabs"),
|
|
559
|
+
t.placement,
|
|
560
|
+
t.variant,
|
|
561
|
+
{ transition: t.transition }
|
|
562
|
+
]
|
|
563
|
+
}), Mr = (t) => ({
|
|
564
|
+
[C("highlight-top")]: typeof t.top == "string" ? t.top : t.top + "px",
|
|
565
|
+
[C("highlight-left")]: typeof t.left == "string" ? t.left : t.left + "px",
|
|
566
|
+
[C("highlight-width")]: typeof t.width == "string" ? t.width : t.width + "px",
|
|
567
|
+
[C("highlight-height")]: typeof t.height == "string" ? t.height : t.height + "px",
|
|
568
|
+
[C("highlight-space-x")]: (t.marginX > 0 ? t.marginX : 0) + "px",
|
|
569
|
+
[C("highlight-space-y")]: (t.marginY > 0 ? t.marginY : 0) + "px"
|
|
570
|
+
}), Kr = {
|
|
571
|
+
size: "standard",
|
|
572
|
+
variant: "fill"
|
|
573
|
+
}, Nr = (t) => ({
|
|
574
|
+
class: [
|
|
575
|
+
i(["layer", "tag"]),
|
|
576
|
+
t.role ? i(["role", t.role]) : "",
|
|
577
|
+
i(["shape", t.shape]),
|
|
578
|
+
i("tag"),
|
|
579
|
+
i(["size", t.size])
|
|
580
|
+
]
|
|
581
|
+
}), jr = {
|
|
582
|
+
message: "",
|
|
583
|
+
duration: 2e3,
|
|
584
|
+
variant: "fill"
|
|
585
|
+
}, Gr = {
|
|
586
|
+
placement: "bottom-end"
|
|
587
|
+
}, Yr = (t) => ({
|
|
588
|
+
class: [i("toast"), t.placement]
|
|
589
|
+
}), Wr = (t) => ({
|
|
590
|
+
class: [
|
|
591
|
+
i(["layer", "toast"]),
|
|
592
|
+
i(["role", t.role]),
|
|
593
|
+
i(["shape", t.shape]),
|
|
594
|
+
i("toast-content"),
|
|
595
|
+
t.variant,
|
|
596
|
+
{ closing: t.closing }
|
|
597
|
+
]
|
|
598
|
+
}), Hr = {
|
|
599
|
+
placement: null,
|
|
600
|
+
safe: !0,
|
|
601
|
+
divider: void 0
|
|
602
|
+
}, Xr = (t) => ({
|
|
603
|
+
class: [
|
|
604
|
+
i(["layer", "toolbar"]),
|
|
605
|
+
i(["role", t.role]),
|
|
606
|
+
i("toolbar"),
|
|
607
|
+
t.placement,
|
|
608
|
+
{ safe: t.safe, divider: t.divider }
|
|
609
|
+
]
|
|
610
|
+
}), Dn = /* @__PURE__ */ B({
|
|
611
|
+
__name: "toast-content",
|
|
612
|
+
props: /* @__PURE__ */ j({
|
|
613
|
+
id: {},
|
|
614
|
+
message: {},
|
|
615
|
+
duration: {},
|
|
616
|
+
role: {},
|
|
617
|
+
variant: {},
|
|
618
|
+
placement: {},
|
|
619
|
+
shape: {}
|
|
620
|
+
}, {
|
|
621
|
+
...jr
|
|
622
|
+
}),
|
|
623
|
+
emits: ["close"],
|
|
624
|
+
setup(t, { expose: r, emit: n }) {
|
|
625
|
+
r();
|
|
626
|
+
const e = t, o = n, a = y(E), s = _(!1), l = c(() => {
|
|
627
|
+
const p = e.role || u(a?.role) || "", f = e.shape || u(a?.shape) || "";
|
|
628
|
+
return Wr({
|
|
629
|
+
role: p,
|
|
630
|
+
shape: f,
|
|
631
|
+
variant: e.variant,
|
|
632
|
+
closing: s.value
|
|
633
|
+
});
|
|
634
|
+
});
|
|
635
|
+
q(() => {
|
|
636
|
+
setTimeout(() => {
|
|
637
|
+
s.value = !0, setTimeout(() => {
|
|
638
|
+
o("close");
|
|
639
|
+
}, 500);
|
|
640
|
+
}, e.duration);
|
|
641
|
+
});
|
|
642
|
+
const d = { props: e, emit: o, appState: a, isClosing: s, contentAttrs: l, unref: u, computed: c, inject: y, onMounted: q, ref: _, get TOAST_CONTENT_DEFAULT_PROPS() {
|
|
643
|
+
return jr;
|
|
644
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
645
|
+
return E;
|
|
646
|
+
}, get getToastContentAttrs() {
|
|
647
|
+
return Wr;
|
|
648
|
+
} };
|
|
649
|
+
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
function In(t, r, n, e, o, a) {
|
|
653
|
+
return m(), T("div", D(U(e.contentAttrs)), le(e.props.message), 17);
|
|
654
|
+
}
|
|
655
|
+
const V = (t, r) => {
|
|
656
|
+
const n = t.__vccOpts || t;
|
|
657
|
+
for (const [e, o] of r)
|
|
658
|
+
n[e] = o;
|
|
659
|
+
return n;
|
|
660
|
+
}, nn = /* @__PURE__ */ V(Dn, [["render", In], ["__scopeId", "data-v-ead3b322"]]), xn = /* @__PURE__ */ B({
|
|
661
|
+
__name: "toast",
|
|
662
|
+
props: /* @__PURE__ */ j({
|
|
663
|
+
placement: {}
|
|
664
|
+
}, {
|
|
665
|
+
...Gr
|
|
666
|
+
}),
|
|
667
|
+
setup(t, { expose: r }) {
|
|
668
|
+
r();
|
|
669
|
+
const n = t, e = We(), o = c(() => Yr({ placement: n.placement })), a = c(() => e.messages.value.filter((d) => d.placement == n.placement)), l = { props: n, toast: e, toastAttrs: o, toastMessages: a, dismiss: (d) => {
|
|
670
|
+
e.close(d);
|
|
671
|
+
}, computed: c, get useToast() {
|
|
672
|
+
return We;
|
|
673
|
+
}, get ToastContent() {
|
|
674
|
+
return nn;
|
|
675
|
+
}, get TOAST_DEFAULT_PROPS() {
|
|
676
|
+
return Gr;
|
|
677
|
+
}, get getToastAttrs() {
|
|
678
|
+
return Yr;
|
|
679
|
+
} };
|
|
680
|
+
return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
|
|
681
|
+
}
|
|
682
|
+
});
|
|
683
|
+
function Cn(t, r, n, e, o, a) {
|
|
684
|
+
return e.toastMessages.length > 0 ? (m(), T("div", D(K({ key: 0 }, e.toastAttrs)), [
|
|
685
|
+
L(t.$slots, "content", {}, () => [
|
|
686
|
+
(m(!0), T(ce, null, de(e.toastMessages, (s, l) => (m(), Z(e.ToastContent, K({ ref_for: !0 }, s, {
|
|
687
|
+
onClose: (d) => e.dismiss(s.id)
|
|
688
|
+
}), null, 16, ["onClose"]))), 256))
|
|
689
|
+
], !0)
|
|
690
|
+
], 16)) : ee("", !0);
|
|
691
|
+
}
|
|
692
|
+
const on = /* @__PURE__ */ V(xn, [["render", Cn], ["__scopeId", "data-v-bc21eb36"]]), me = _(1e3), qr = () => ({
|
|
693
|
+
newIndex: () => (me.value += 2, me.value),
|
|
694
|
+
resetIndex: () => (me.value = 1e3, me.value),
|
|
695
|
+
index: me
|
|
696
|
+
}), Fn = /* @__PURE__ */ B({
|
|
697
|
+
inheritAttrs: !1,
|
|
698
|
+
__name: "present",
|
|
699
|
+
props: /* @__PURE__ */ j({
|
|
700
|
+
keepalive: { type: Boolean },
|
|
701
|
+
visible: { type: Boolean },
|
|
702
|
+
backdrop: {},
|
|
703
|
+
placement: {},
|
|
704
|
+
style: {},
|
|
705
|
+
class: {},
|
|
706
|
+
bounce: { type: [Number, String, Boolean] },
|
|
707
|
+
duration: {},
|
|
708
|
+
teleport: {}
|
|
709
|
+
}, {
|
|
710
|
+
...qt
|
|
711
|
+
}),
|
|
712
|
+
emits: ["close"],
|
|
713
|
+
setup(t, { expose: r, emit: n }) {
|
|
714
|
+
const e = t, o = n, a = qr(), s = y(E, null), l = _(!1), d = _(0), p = _(!1), f = _(!1), v = _(!1), b = Se({ ...Jt }), R = c(() => e.teleport ? e.teleport : u(s?.rootEl) ? u(s?.rootEl) : Be()), P = () => {
|
|
715
|
+
if (e.teleport) {
|
|
716
|
+
v.value = !!document.querySelector(e.teleport);
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
if (u(s?.rootEl)) {
|
|
720
|
+
v.value = !0;
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
v.value = !!document.querySelector(Be());
|
|
724
|
+
}, S = c(
|
|
725
|
+
() => Qt({
|
|
726
|
+
zIndex: d.value - 1,
|
|
727
|
+
backdropTransitionDuration: b.backdropTransitionDuration,
|
|
728
|
+
backdropOpacity: e.backdrop === "transparent" ? 0 : b.backdropOpacity
|
|
729
|
+
})
|
|
730
|
+
), A = c(
|
|
731
|
+
() => Zt({
|
|
732
|
+
zIndex: d.value,
|
|
733
|
+
presentTransitionDuration: b.presentTransitionDuration,
|
|
734
|
+
presentTranslate: b.presentTranslate,
|
|
735
|
+
presentOpacity: b.presentOpacity,
|
|
736
|
+
className: e.class,
|
|
737
|
+
placement: e.placement,
|
|
738
|
+
style: e.style
|
|
739
|
+
})
|
|
740
|
+
), G = c(() => p.value || e.keepalive), z = c(() => e.duration / 1e3 + "s"), I = () => {
|
|
741
|
+
(d.value === 0 || !e.keepalive) && (d.value = a.newIndex());
|
|
742
|
+
}, g = (k) => {
|
|
743
|
+
k.backdropTransitionDuration !== void 0 && (b.backdropTransitionDuration = k.backdropTransitionDuration), k.presentTransitionDuration !== void 0 && (b.presentTransitionDuration = k.presentTransitionDuration), b.backdropOpacity = k.backdropOpacity, k.presentTranslate !== void 0 && (b.presentTranslate = k.presentTranslate), k.presentOpacity !== void 0 && (b.presentOpacity = k.presentOpacity);
|
|
744
|
+
}, F = (k) => {
|
|
745
|
+
k.preventDefault(), f.value && o("close", "backdrop");
|
|
746
|
+
}, M = () => {
|
|
747
|
+
if (setTimeout(() => {
|
|
748
|
+
f.value = !0;
|
|
749
|
+
}, 300), e.bounce && !l.value) {
|
|
750
|
+
l.value = !0;
|
|
751
|
+
let k = e.bounce;
|
|
752
|
+
(e.placement == "bottom" || e.placement == "right") && (k = `calc(${e.bounce} * -1)`), g({
|
|
753
|
+
backdropTransitionDuration: z.value,
|
|
754
|
+
backdropOpacity: void 0,
|
|
755
|
+
presentTranslate: String(k),
|
|
756
|
+
presentTransitionDuration: z.value,
|
|
757
|
+
presentOpacity: 1
|
|
758
|
+
}), setTimeout(() => {
|
|
759
|
+
g({
|
|
760
|
+
presentTranslate: "0px"
|
|
761
|
+
});
|
|
762
|
+
}, e.duration);
|
|
763
|
+
} else
|
|
764
|
+
g({
|
|
765
|
+
backdropOpacity: void 0,
|
|
766
|
+
backdropTransitionDuration: z.value,
|
|
767
|
+
presentTranslate: "0px",
|
|
768
|
+
presentTransitionDuration: z.value,
|
|
769
|
+
presentOpacity: 1
|
|
770
|
+
});
|
|
771
|
+
}, O = () => {
|
|
772
|
+
f.value = !1, l.value = !1;
|
|
773
|
+
let k = "0px", Q = 1;
|
|
774
|
+
e.placement == "bottom" || e.placement == "right" ? k = "100%" : e.placement == "top" || e.placement == "left" ? k = "-100%" : e.placement == "center" && (k = "0px", Q = 0), g({
|
|
775
|
+
backdropOpacity: 0,
|
|
776
|
+
backdropTransitionDuration: z.value,
|
|
777
|
+
presentTranslate: k,
|
|
778
|
+
presentTransitionDuration: z.value,
|
|
779
|
+
presentOpacity: Q
|
|
780
|
+
});
|
|
781
|
+
};
|
|
782
|
+
q(() => {
|
|
783
|
+
P(), v.value || re(() => {
|
|
784
|
+
P(), v.value || requestAnimationFrame(P);
|
|
785
|
+
}), e.visible ? M() : O();
|
|
786
|
+
}), X(
|
|
787
|
+
() => [e.teleport, u(s?.rootEl)],
|
|
788
|
+
() => P(),
|
|
789
|
+
{ immediate: !0 }
|
|
790
|
+
), X(
|
|
791
|
+
() => e.visible,
|
|
792
|
+
() => {
|
|
793
|
+
e.visible ? (I(), p.value = !0, setTimeout(() => {
|
|
794
|
+
M();
|
|
795
|
+
}, 100)) : (O(), setTimeout(() => {
|
|
796
|
+
p.value = !1;
|
|
797
|
+
}, e.duration));
|
|
798
|
+
}
|
|
799
|
+
), r({
|
|
800
|
+
render: g,
|
|
801
|
+
open: M,
|
|
802
|
+
close: O
|
|
803
|
+
});
|
|
804
|
+
const $ = { props: e, emit: o, presentIndex: a, appState: s, isBounced: l, zIndex: d, isShow: p, isReadyBackdrop: f, isTeleportReady: v, styles: b, teleportTo: R, syncTeleportReady: P, backdropAttrs: S, presentAttrs: A, isRender: G, time: z, createIndex: I, render: g, onClickBackdrop: F, open: M, close: O, unref: u, computed: c, inject: y, nextTick: re, onMounted: q, reactive: Se, ref: _, watch: X, get usePresent() {
|
|
805
|
+
return qr;
|
|
806
|
+
}, get PRESENT_DEFAULT_PROPS() {
|
|
807
|
+
return qt;
|
|
808
|
+
}, get PRESENT_DEFAULT_STYLES() {
|
|
809
|
+
return Jt;
|
|
810
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
811
|
+
return E;
|
|
812
|
+
}, get getAppClassSelector() {
|
|
813
|
+
return Be;
|
|
814
|
+
}, get getPresentAttrs() {
|
|
815
|
+
return Zt;
|
|
816
|
+
}, get getPresentBackdropAttrs() {
|
|
817
|
+
return Qt;
|
|
818
|
+
} };
|
|
819
|
+
return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
function Bn(t, r, n, e, o, a) {
|
|
823
|
+
return m(), Z(gn, {
|
|
824
|
+
to: e.teleportTo,
|
|
825
|
+
disabled: !e.isTeleportReady
|
|
826
|
+
}, [
|
|
827
|
+
e.isRender && n.backdrop !== "none" ? fe((m(), T("div", K({ key: 0 }, e.backdropAttrs, { onClick: e.onClickBackdrop }), null, 16)), [
|
|
828
|
+
[Ee, e.isShow]
|
|
829
|
+
]) : ee("", !0),
|
|
830
|
+
e.isRender ? fe((m(), T("div", D(K({ key: 1 }, e.presentAttrs)), [
|
|
831
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
832
|
+
], 16)), [
|
|
833
|
+
[Ee, e.isShow]
|
|
834
|
+
]) : ee("", !0)
|
|
835
|
+
], 8, ["to", "disabled"]);
|
|
836
|
+
}
|
|
837
|
+
const xe = /* @__PURE__ */ V(Fn, [["render", Bn], ["__scopeId", "data-v-98837759"]]), Vn = /* @__PURE__ */ B({
|
|
838
|
+
__name: "button",
|
|
839
|
+
props: /* @__PURE__ */ j({
|
|
840
|
+
role: {},
|
|
841
|
+
size: {},
|
|
842
|
+
shape: {},
|
|
843
|
+
block: { type: Boolean },
|
|
844
|
+
loading: { type: Boolean },
|
|
845
|
+
variant: {},
|
|
846
|
+
shadow: { type: Boolean }
|
|
847
|
+
}, {
|
|
848
|
+
...et
|
|
849
|
+
}),
|
|
850
|
+
setup(t, { expose: r }) {
|
|
851
|
+
r();
|
|
852
|
+
const n = t, e = y(E), o = _(!1), a = c(() => {
|
|
853
|
+
const f = n.shape || u(e?.shape) || "", v = n.role || u(e?.role) || "", b = v ? `${v}-${n.variant}` : "", R = (n?.shadow !== void 0 ? n.shadow : u(e?.shadow)) ?? !1;
|
|
854
|
+
return tt({
|
|
855
|
+
role: b,
|
|
856
|
+
shape: f,
|
|
857
|
+
size: n.size,
|
|
858
|
+
block: n.block,
|
|
859
|
+
shadow: R,
|
|
860
|
+
focus: o.value
|
|
861
|
+
});
|
|
862
|
+
}), s = rt(), p = { props: n, appState: e, isFocused: o, buttonAttrs: a, loaderAttrs: s, onFocus: () => {
|
|
863
|
+
o.value = !0;
|
|
864
|
+
}, onBlur: () => {
|
|
865
|
+
o.value = !1;
|
|
866
|
+
}, unref: u, computed: c, inject: y, ref: _, get BUTTON_DEFAULT_PROPS() {
|
|
867
|
+
return et;
|
|
868
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
869
|
+
return E;
|
|
870
|
+
}, get getButtonAttrs() {
|
|
871
|
+
return tt;
|
|
872
|
+
}, get getButtonLoaderAttrs() {
|
|
873
|
+
return rt;
|
|
874
|
+
} };
|
|
875
|
+
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
function Ln(t, r, n, e, o, a) {
|
|
879
|
+
return m(), T("button", K(e.buttonAttrs, {
|
|
880
|
+
onFocus: e.onFocus,
|
|
881
|
+
onBlur: e.onBlur
|
|
882
|
+
}), [
|
|
883
|
+
fe(H("span", null, [
|
|
884
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
885
|
+
], 512), [
|
|
886
|
+
[Ee, !e.props.loading]
|
|
887
|
+
]),
|
|
888
|
+
e.props.loading ? (m(), T("span", D(K({ key: 0 }, e.loaderAttrs)), [
|
|
889
|
+
L(t.$slots, "loading", {}, void 0, !0)
|
|
890
|
+
], 16)) : ee("", !0)
|
|
891
|
+
], 16);
|
|
892
|
+
}
|
|
893
|
+
const ze = /* @__PURE__ */ V(Vn, [["render", Ln], ["__scopeId", "data-v-1a209af1"]]), $n = /* @__PURE__ */ B({
|
|
894
|
+
__name: "form-group",
|
|
895
|
+
props: /* @__PURE__ */ j({
|
|
896
|
+
direction: {}
|
|
897
|
+
}, {
|
|
898
|
+
...Ft
|
|
899
|
+
}),
|
|
900
|
+
setup(t, { expose: r }) {
|
|
901
|
+
r();
|
|
902
|
+
const n = t, e = c(() => Bt({ direction: n.direction })), o = { props: n, formGroupAttrs: e, computed: c, get FORM_GROUP_DEFAULT_PROPS() {
|
|
903
|
+
return Ft;
|
|
904
|
+
}, get getFormGroupAttrs() {
|
|
905
|
+
return Bt;
|
|
906
|
+
} };
|
|
907
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
function zn(t, r, n, e, o, a) {
|
|
911
|
+
return m(), T("div", D(U(e.formGroupAttrs)), [
|
|
912
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
913
|
+
], 16);
|
|
914
|
+
}
|
|
915
|
+
const an = /* @__PURE__ */ V($n, [["render", zn], ["__scopeId", "data-v-addb28b2"]]), Un = /* @__PURE__ */ B({
|
|
916
|
+
__name: "action",
|
|
917
|
+
props: /* @__PURE__ */ j({
|
|
918
|
+
visible: { type: Boolean },
|
|
919
|
+
dismiss: {},
|
|
920
|
+
actions: {},
|
|
921
|
+
role: {},
|
|
922
|
+
shape: {},
|
|
923
|
+
divider: { type: Boolean },
|
|
924
|
+
shadow: { type: Boolean },
|
|
925
|
+
placement: {}
|
|
926
|
+
}, {
|
|
927
|
+
...He
|
|
928
|
+
}),
|
|
929
|
+
emits: ["close", "choose"],
|
|
930
|
+
setup(t, { expose: r, emit: n }) {
|
|
931
|
+
r();
|
|
932
|
+
const e = t, o = n, a = y(E), s = _(!1), l = c(() => {
|
|
933
|
+
const v = (e?.divider !== void 0 ? e.divider : u(a?.divider)) ?? !1, b = (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1, R = e.shape ?? u(a?.shape) ?? "", P = e.role ?? u(a?.role) ?? "";
|
|
934
|
+
return Xe({
|
|
935
|
+
role: P,
|
|
936
|
+
shape: R,
|
|
937
|
+
placement: e.placement,
|
|
938
|
+
divider: v,
|
|
939
|
+
shadow: b,
|
|
940
|
+
pop: s.value
|
|
941
|
+
});
|
|
942
|
+
}), f = { props: e, emit: o, appState: a, pop: s, actionAttrs: l, onClose: (v) => {
|
|
943
|
+
e.dismiss && e.dismiss.includes(v) ? o("close", v) : v === "backdrop" && (s.value = !0, setTimeout(() => {
|
|
944
|
+
s.value = !1;
|
|
945
|
+
}, 300));
|
|
946
|
+
}, onChoose: (v) => {
|
|
947
|
+
o("close"), v.handler?.(), o("choose", v);
|
|
948
|
+
}, unref: u, computed: c, inject: y, ref: _, get Present() {
|
|
949
|
+
return xe;
|
|
950
|
+
}, get CustomButton() {
|
|
951
|
+
return ze;
|
|
952
|
+
}, get FormGroup() {
|
|
953
|
+
return an;
|
|
954
|
+
}, get ACTION_DEFAULT_PROPS() {
|
|
955
|
+
return He;
|
|
956
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
957
|
+
return E;
|
|
958
|
+
}, get getActionAttrs() {
|
|
959
|
+
return Xe;
|
|
960
|
+
} };
|
|
961
|
+
return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
function Mn(t, r, n, e, o, a) {
|
|
965
|
+
return m(), Z(e.Present, {
|
|
966
|
+
placement: n.placement,
|
|
967
|
+
backdrop: "display",
|
|
968
|
+
keepalive: !1,
|
|
969
|
+
visible: n.visible,
|
|
970
|
+
onClose: e.onClose
|
|
971
|
+
}, {
|
|
972
|
+
default: ae(() => [
|
|
973
|
+
H("div", D(U(e.actionAttrs)), [
|
|
974
|
+
L(t.$slots, "body", {}, () => [
|
|
975
|
+
(m(!0), T(ce, null, de(n.actions, (s, l) => (m(), Z(e.FormGroup, {
|
|
976
|
+
direction: "vertical",
|
|
977
|
+
key: l
|
|
978
|
+
}, {
|
|
979
|
+
default: ae(() => [
|
|
980
|
+
(m(!0), T(ce, null, de(s, (d, p) => (m(), Z(e.CustomButton, {
|
|
981
|
+
key: `${l}-${p}`,
|
|
982
|
+
role: d.role,
|
|
983
|
+
variant: d.variant,
|
|
984
|
+
onClick: (f) => e.onChoose(d),
|
|
985
|
+
shape: n.shape,
|
|
986
|
+
shadow: d.shadow !== void 0 ? d.shadow : n.shadow,
|
|
987
|
+
block: ""
|
|
988
|
+
}, {
|
|
989
|
+
default: ae(() => [
|
|
990
|
+
en(le(d.text), 1)
|
|
991
|
+
]),
|
|
992
|
+
_: 2
|
|
993
|
+
}, 1032, ["role", "variant", "onClick", "shape", "shadow"]))), 128))
|
|
994
|
+
]),
|
|
995
|
+
_: 2
|
|
996
|
+
}, 1024))), 128))
|
|
997
|
+
], !0)
|
|
998
|
+
], 16)
|
|
999
|
+
]),
|
|
1000
|
+
_: 3
|
|
1001
|
+
}, 8, ["placement", "visible"]);
|
|
1002
|
+
}
|
|
1003
|
+
const sn = /* @__PURE__ */ V(Un, [["render", Mn], ["__scopeId", "data-v-c7eb029c"]]), be = _(null), Ae = _(!1), Jr = () => ({
|
|
1004
|
+
open: (e) => {
|
|
1005
|
+
be.value = e, setTimeout(() => {
|
|
1006
|
+
Ae.value = !0;
|
|
1007
|
+
}, 50);
|
|
1008
|
+
},
|
|
1009
|
+
close: (e) => {
|
|
1010
|
+
be.value?.onClose?.(e), Ae.value = !1;
|
|
1011
|
+
},
|
|
1012
|
+
choose: (e) => {
|
|
1013
|
+
be.value?.onChoose?.(e), Ae.value = !1;
|
|
1014
|
+
},
|
|
1015
|
+
visible: Ae,
|
|
1016
|
+
data: be
|
|
1017
|
+
}), Kn = /* @__PURE__ */ B({
|
|
1018
|
+
__name: "decision-modal",
|
|
1019
|
+
props: /* @__PURE__ */ j({
|
|
1020
|
+
visible: { type: Boolean },
|
|
1021
|
+
title: {},
|
|
1022
|
+
message: {},
|
|
1023
|
+
actions: {},
|
|
1024
|
+
dismiss: {},
|
|
1025
|
+
placement: {},
|
|
1026
|
+
role: {},
|
|
1027
|
+
shape: {},
|
|
1028
|
+
divider: { type: Boolean },
|
|
1029
|
+
flow: {}
|
|
1030
|
+
}, {
|
|
1031
|
+
...bt
|
|
1032
|
+
}),
|
|
1033
|
+
emits: ["close", "choose"],
|
|
1034
|
+
setup(t, { expose: r, emit: n }) {
|
|
1035
|
+
r();
|
|
1036
|
+
const e = t, o = n, a = y(E), s = _(!1), l = c(() => e.shape || u(a?.shape) || ""), d = c(() => (e.divider !== void 0 ? e.divider : u(a?.divider)) ?? !1), p = c(() => {
|
|
1037
|
+
const A = e.role || u(a?.role) || "";
|
|
1038
|
+
return At({
|
|
1039
|
+
role: A,
|
|
1040
|
+
shape: l.value,
|
|
1041
|
+
pop: s.value,
|
|
1042
|
+
divider: d.value
|
|
1043
|
+
});
|
|
1044
|
+
}), f = c(() => yt()), v = c(() => Pt()), b = c(() => Tt({ flow: e.flow })), S = { props: e, emit: o, appState: a, pop: s, shape: l, divider: d, decisionModalAttrs: p, decisionModalHeaderAttrs: f, decisionModalBodyAttrs: v, decisionModalFooterAttrs: b, onClose: (A) => {
|
|
1045
|
+
e.dismiss && e.dismiss.includes(A) ? o("close", A) : A === "backdrop" && (s.value = !0, setTimeout(() => {
|
|
1046
|
+
s.value = !1;
|
|
1047
|
+
}, 300));
|
|
1048
|
+
}, onChoose: (A) => {
|
|
1049
|
+
o("close"), A.handler?.(), o("choose", A);
|
|
1050
|
+
}, unref: u, computed: c, inject: y, ref: _, get Present() {
|
|
1051
|
+
return xe;
|
|
1052
|
+
}, get CustomButton() {
|
|
1053
|
+
return ze;
|
|
1054
|
+
}, get DECISION_MODAL_DEFAULT_PROPS() {
|
|
1055
|
+
return bt;
|
|
1056
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1057
|
+
return E;
|
|
1058
|
+
}, get getDecisionModalAttrs() {
|
|
1059
|
+
return At;
|
|
1060
|
+
}, get getDecisionModalBodyAttrs() {
|
|
1061
|
+
return Pt;
|
|
1062
|
+
}, get getDecisionModalFooterAttrs() {
|
|
1063
|
+
return Tt;
|
|
1064
|
+
}, get getDecisionModalHeaderAttrs() {
|
|
1065
|
+
return yt;
|
|
1066
|
+
} };
|
|
1067
|
+
return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
function Nn(t, r, n, e, o, a) {
|
|
1071
|
+
return m(), Z(e.Present, {
|
|
1072
|
+
placement: n.placement,
|
|
1073
|
+
backdrop: "display",
|
|
1074
|
+
keepalive: !1,
|
|
1075
|
+
visible: n.visible,
|
|
1076
|
+
onClose: e.onClose
|
|
1077
|
+
}, {
|
|
1078
|
+
default: ae(() => [
|
|
1079
|
+
H("div", D(U(e.decisionModalAttrs)), [
|
|
1080
|
+
L(t.$slots, "header", {}, () => [
|
|
1081
|
+
n.title ? (m(), T("div", D(K({ key: 0 }, e.decisionModalHeaderAttrs)), le(n.title), 17)) : ee("", !0)
|
|
1082
|
+
], !0),
|
|
1083
|
+
L(t.$slots, "body", {}, () => [
|
|
1084
|
+
H("div", D(U(e.decisionModalBodyAttrs)), le(n.message), 17)
|
|
1085
|
+
], !0),
|
|
1086
|
+
L(t.$slots, "footer", {}, () => [
|
|
1087
|
+
H("div", D(U(e.decisionModalFooterAttrs)), [
|
|
1088
|
+
(m(!0), T(ce, null, de(n.actions, (s, l) => (m(), Z(e.CustomButton, {
|
|
1089
|
+
key: `${l}`,
|
|
1090
|
+
role: s.role,
|
|
1091
|
+
variant: s.variant,
|
|
1092
|
+
onClick: (d) => e.onChoose(s),
|
|
1093
|
+
shape: e.shape
|
|
1094
|
+
}, {
|
|
1095
|
+
default: ae(() => [
|
|
1096
|
+
en(le(s.text), 1)
|
|
1097
|
+
]),
|
|
1098
|
+
_: 2
|
|
1099
|
+
}, 1032, ["role", "variant", "onClick", "shape"]))), 128))
|
|
1100
|
+
], 16)
|
|
1101
|
+
], !0)
|
|
1102
|
+
], 16)
|
|
1103
|
+
]),
|
|
1104
|
+
_: 3
|
|
1105
|
+
}, 8, ["placement", "visible"]);
|
|
1106
|
+
}
|
|
1107
|
+
const ln = /* @__PURE__ */ V(Kn, [["render", Nn], ["__scopeId", "data-v-2937fe1a"]]), ye = _(null), Pe = _(!1), Qr = () => ({
|
|
1108
|
+
open: (e) => {
|
|
1109
|
+
ye.value = e, setTimeout(() => {
|
|
1110
|
+
Pe.value = !0;
|
|
1111
|
+
}, 50);
|
|
1112
|
+
},
|
|
1113
|
+
close: (e) => {
|
|
1114
|
+
ye.value?.onClose?.(), Pe.value = !1;
|
|
1115
|
+
},
|
|
1116
|
+
choose: (e) => {
|
|
1117
|
+
ye.value?.onChoose?.(e), Pe.value = !1;
|
|
1118
|
+
},
|
|
1119
|
+
visible: Pe,
|
|
1120
|
+
data: ye
|
|
1121
|
+
}), jn = /* @__PURE__ */ B({
|
|
1122
|
+
__name: "app",
|
|
1123
|
+
props: /* @__PURE__ */ j({
|
|
1124
|
+
shape: {},
|
|
1125
|
+
divider: { type: Boolean },
|
|
1126
|
+
role: {},
|
|
1127
|
+
shadow: { type: Boolean },
|
|
1128
|
+
triple: { type: Boolean },
|
|
1129
|
+
direction: {},
|
|
1130
|
+
data: {}
|
|
1131
|
+
}, {
|
|
1132
|
+
...qe
|
|
1133
|
+
}),
|
|
1134
|
+
setup(t, { expose: r }) {
|
|
1135
|
+
r();
|
|
1136
|
+
const n = t, { shape: e, divider: o, role: a, shadow: s, triple: l, direction: d, data: p } = Re(n), f = Qr(), v = Jr(), b = _(), R = c(() => Je({ shape: e.value }));
|
|
1137
|
+
ne(E, {
|
|
1138
|
+
shape: e,
|
|
1139
|
+
divider: o,
|
|
1140
|
+
role: a,
|
|
1141
|
+
shadow: s,
|
|
1142
|
+
triple: l,
|
|
1143
|
+
direction: d,
|
|
1144
|
+
rootEl: b,
|
|
1145
|
+
data: p
|
|
1146
|
+
});
|
|
1147
|
+
const P = { props: n, shape: e, divider: o, role: a, shadow: s, triple: l, direction: d, data: p, decisionModal: f, action: v, rootEl: b, appAttrs: R, computed: c, provide: ne, ref: _, toRefs: Re, get Toast() {
|
|
1148
|
+
return on;
|
|
1149
|
+
}, get Action() {
|
|
1150
|
+
return sn;
|
|
1151
|
+
}, get useAction() {
|
|
1152
|
+
return Jr;
|
|
1153
|
+
}, get DecisionModal() {
|
|
1154
|
+
return ln;
|
|
1155
|
+
}, get useDecisionModal() {
|
|
1156
|
+
return Qr;
|
|
1157
|
+
}, get APP_DEFAULT_PROPS() {
|
|
1158
|
+
return qe;
|
|
1159
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1160
|
+
return E;
|
|
1161
|
+
}, get getAppAttrs() {
|
|
1162
|
+
return Je;
|
|
1163
|
+
} };
|
|
1164
|
+
return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
function Gn(t, r, n, e, o, a) {
|
|
1168
|
+
return m(), T("div", K({ ref: "rootEl" }, e.appAttrs), [
|
|
1169
|
+
L(t.$slots, "default", {}, void 0, !0),
|
|
1170
|
+
L(t.$slots, "global", {}, void 0, !0),
|
|
1171
|
+
se(e.Toast, { placement: "top-start" }),
|
|
1172
|
+
se(e.Toast, { placement: "bottom-start" }),
|
|
1173
|
+
se(e.Toast, { placement: "bottom-center" }),
|
|
1174
|
+
se(e.Toast, { placement: "bottom-end" }),
|
|
1175
|
+
se(e.Toast, { placement: "top-center" }),
|
|
1176
|
+
se(e.Toast, { placement: "top-end" }),
|
|
1177
|
+
e.action.data.value ? (m(), Z(e.Action, K({
|
|
1178
|
+
key: 0,
|
|
1179
|
+
visible: e.action.visible.value
|
|
1180
|
+
}, e.action.data.value, {
|
|
1181
|
+
onClose: e.action.close,
|
|
1182
|
+
onChoose: e.action.choose
|
|
1183
|
+
}), null, 16, ["visible", "onClose", "onChoose"])) : ee("", !0),
|
|
1184
|
+
e.decisionModal.data.value ? (m(), Z(e.DecisionModal, K({
|
|
1185
|
+
key: 1,
|
|
1186
|
+
visible: e.decisionModal.visible.value
|
|
1187
|
+
}, e.decisionModal.data.value, {
|
|
1188
|
+
onClose: e.decisionModal.close,
|
|
1189
|
+
onChoose: e.decisionModal.choose
|
|
1190
|
+
}), null, 16, ["visible", "onClose", "onChoose"])) : ee("", !0)
|
|
1191
|
+
], 16);
|
|
1192
|
+
}
|
|
1193
|
+
const Yn = /* @__PURE__ */ V(jn, [["render", Gn], ["__scopeId", "data-v-291d6752"]]), Wn = /* @__PURE__ */ B({
|
|
1194
|
+
__name: "gesture-indicator",
|
|
1195
|
+
props: /* @__PURE__ */ j({
|
|
1196
|
+
placement: {},
|
|
1197
|
+
role: {}
|
|
1198
|
+
}, {
|
|
1199
|
+
...Vt
|
|
1200
|
+
}),
|
|
1201
|
+
setup(t, { expose: r }) {
|
|
1202
|
+
r();
|
|
1203
|
+
const n = t, e = y(E), o = c(() => {
|
|
1204
|
+
const s = n.role || u(e?.role) || "";
|
|
1205
|
+
return Lt({ role: s, placement: n.placement });
|
|
1206
|
+
}), a = { props: n, appState: e, gestureIndicatorAttrs: o, unref: u, computed: c, inject: y, get GESTURE_INDICATOR_DEFAULT_PROPS() {
|
|
1207
|
+
return Vt;
|
|
1208
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1209
|
+
return E;
|
|
1210
|
+
}, get getGestureIndicatorAttrs() {
|
|
1211
|
+
return Lt;
|
|
1212
|
+
} };
|
|
1213
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
function Hn(t, r, n, e, o, a) {
|
|
1217
|
+
return m(), T("div", D(U(e.gestureIndicatorAttrs)), null, 16);
|
|
1218
|
+
}
|
|
1219
|
+
const cn = /* @__PURE__ */ V(Wn, [["render", Hn], ["__scopeId", "data-v-467f711f"]]), Xn = /* @__PURE__ */ B({
|
|
1220
|
+
__name: "modal",
|
|
1221
|
+
props: /* @__PURE__ */ j({
|
|
1222
|
+
role: {},
|
|
1223
|
+
class: {},
|
|
1224
|
+
visible: { type: Boolean },
|
|
1225
|
+
gesture: { type: Boolean },
|
|
1226
|
+
fullscreen: { type: Boolean },
|
|
1227
|
+
placement: {},
|
|
1228
|
+
keepalive: { type: Boolean },
|
|
1229
|
+
backdrop: {},
|
|
1230
|
+
shape: {},
|
|
1231
|
+
indicator: { type: Boolean },
|
|
1232
|
+
duration: {},
|
|
1233
|
+
bounce: {},
|
|
1234
|
+
style: {}
|
|
1235
|
+
}, {
|
|
1236
|
+
...Wt
|
|
1237
|
+
}),
|
|
1238
|
+
emits: ["close"],
|
|
1239
|
+
setup(t, { expose: r, emit: n }) {
|
|
1240
|
+
r();
|
|
1241
|
+
const e = t, o = n, a = y(E), s = _(), l = _(), d = _(!1), p = _(!1), f = _(null), v = c(() => {
|
|
1242
|
+
if (e.placement == "bottom") return "down";
|
|
1243
|
+
if (e.placement == "top") return "up";
|
|
1244
|
+
if (e.placement == "left") return "left";
|
|
1245
|
+
if (e.placement == "right") return "right";
|
|
1246
|
+
}), b = c(() => {
|
|
1247
|
+
const g = e?.shape || u(a?.shape) || "", F = e.role || u(a?.role) || "";
|
|
1248
|
+
return Ht({
|
|
1249
|
+
role: F,
|
|
1250
|
+
shape: g,
|
|
1251
|
+
placement: e.placement,
|
|
1252
|
+
fullscreen: e.fullscreen,
|
|
1253
|
+
className: e.class,
|
|
1254
|
+
style: e.style
|
|
1255
|
+
});
|
|
1256
|
+
}), R = (g) => {
|
|
1257
|
+
o("close", g);
|
|
1258
|
+
};
|
|
1259
|
+
function P(g) {
|
|
1260
|
+
return Yt.includes(g);
|
|
1261
|
+
}
|
|
1262
|
+
const S = (g, F) => {
|
|
1263
|
+
const M = getComputedStyle(g);
|
|
1264
|
+
return F == "y" ? g.scrollHeight > g.clientHeight && P(M.overflowY) : g.scrollWidth > g.clientWidth && P(M.overflowX);
|
|
1265
|
+
}, A = (g, F) => F == "down" ? g.scrollTop > 0 : F == "up" ? g.scrollTop < g.scrollHeight - g.clientHeight : F == "right" ? g.scrollLeft > 0 : g.scrollLeft < g.scrollWidth - g.clientWidth, G = (g) => {
|
|
1266
|
+
if (!s.value || !v.value) return !0;
|
|
1267
|
+
const F = g.target;
|
|
1268
|
+
if (!(F instanceof Element)) return !0;
|
|
1269
|
+
const M = v.value == "left" || v.value == "right" ? "x" : "y";
|
|
1270
|
+
let O = F;
|
|
1271
|
+
for (; O && O !== s.value; ) {
|
|
1272
|
+
if (O instanceof HTMLElement && S(O, M) && A(O, v.value))
|
|
1273
|
+
return !1;
|
|
1274
|
+
O = O.parentElement;
|
|
1275
|
+
}
|
|
1276
|
+
return !0;
|
|
1277
|
+
}, z = () => {
|
|
1278
|
+
d.value = !0, setTimeout(() => {
|
|
1279
|
+
d.value = !1;
|
|
1280
|
+
}, 300);
|
|
1281
|
+
};
|
|
1282
|
+
X(
|
|
1283
|
+
() => s.value,
|
|
1284
|
+
(g) => {
|
|
1285
|
+
g && (f.value = ue(s.value, {
|
|
1286
|
+
options: {
|
|
1287
|
+
minDist: 30
|
|
1288
|
+
},
|
|
1289
|
+
beforeEvent(F) {
|
|
1290
|
+
return !(d.value || !e.gesture || e.placement == "center" || !G(F));
|
|
1291
|
+
},
|
|
1292
|
+
down() {
|
|
1293
|
+
p.value = !1;
|
|
1294
|
+
},
|
|
1295
|
+
fast({ initialDirection: F }) {
|
|
1296
|
+
z(), F == v.value ? o("close", "gesture") : l.value.open();
|
|
1297
|
+
},
|
|
1298
|
+
move({ deltaY: F, deltaX: M, initialDirection: O }) {
|
|
1299
|
+
if (O != v.value) return;
|
|
1300
|
+
let $ = 0;
|
|
1301
|
+
e.placement == "bottom" || e.placement == "top" ? $ = F : $ = M, e.placement == "bottom" && ($ = F > 0 ? F : 0), e.placement == "top" && ($ = F < 0 ? F : 0), e.placement == "left" && ($ = M < 0 ? M : 0), e.placement == "right" && ($ = M > 0 ? M : 0), (e.placement == "bottom" && ($ >= 10 || p.value) || e.placement == "top" && ($ <= -10 || p.value) || e.placement == "left" && ($ <= -10 || p.value) || e.placement == "right" && ($ >= 10 || p.value)) && (p.value = !0, l.value.render({
|
|
1302
|
+
presentTranslate: $ + "px",
|
|
1303
|
+
presentTransitionDuration: "0s"
|
|
1304
|
+
}));
|
|
1305
|
+
},
|
|
1306
|
+
up({ deltaY: F, deltaX: M, initialDirection: O }) {
|
|
1307
|
+
if (p.value = !1, z(), O != v.value) {
|
|
1308
|
+
l.value.open();
|
|
1309
|
+
return;
|
|
1310
|
+
}
|
|
1311
|
+
let $, k, Q;
|
|
1312
|
+
e.placement == "bottom" || e.placement == "top" ? ($ = s.value.offsetHeight, Q = F) : ($ = s.value.offsetWidth, Q = M), k = Q / $ * 100, k > 50 ? o("close", "gesture") : l.value.open();
|
|
1313
|
+
},
|
|
1314
|
+
cancel() {
|
|
1315
|
+
p.value = !1, z(), l.value.open();
|
|
1316
|
+
}
|
|
1317
|
+
}));
|
|
1318
|
+
}
|
|
1319
|
+
), oe(() => {
|
|
1320
|
+
f.value && f.value.destroy();
|
|
1321
|
+
});
|
|
1322
|
+
const I = { props: e, emit: o, appState: a, modal: s, present: l, isBusy: d, isMoving: p, ges: f, gestureDir: v, modalAttrs: b, close: R, hasScrollableOverflow: P, isScrollable: S, hasRemainingScroll: A, canStartGesture: G, busy: z, computed: c, inject: y, onUnmounted: oe, ref: _, unref: u, watch: X, get toifeGesture() {
|
|
1323
|
+
return ue;
|
|
1324
|
+
}, get Present() {
|
|
1325
|
+
return xe;
|
|
1326
|
+
}, get GestureIndicator() {
|
|
1327
|
+
return cn;
|
|
1328
|
+
}, get MODAL_DEFAULT_PROPS() {
|
|
1329
|
+
return Wt;
|
|
1330
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1331
|
+
return E;
|
|
1332
|
+
}, get SCROLLABLE_OVERFLOW_VALUES() {
|
|
1333
|
+
return Yt;
|
|
1334
|
+
}, get getModalAttrs() {
|
|
1335
|
+
return Ht;
|
|
1336
|
+
} };
|
|
1337
|
+
return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
|
|
1338
|
+
}
|
|
1339
|
+
});
|
|
1340
|
+
function qn(t, r, n, e, o, a) {
|
|
1341
|
+
return m(), Z(e.Present, {
|
|
1342
|
+
ref: "present",
|
|
1343
|
+
duration: n.duration,
|
|
1344
|
+
bounce: n.bounce,
|
|
1345
|
+
class: tn(n.class),
|
|
1346
|
+
placement: n.placement,
|
|
1347
|
+
backdrop: n.backdrop,
|
|
1348
|
+
visible: n.visible,
|
|
1349
|
+
keepalive: n.keepalive,
|
|
1350
|
+
onClose: e.close,
|
|
1351
|
+
style: hn(n.style)
|
|
1352
|
+
}, {
|
|
1353
|
+
default: ae(() => [
|
|
1354
|
+
n.gesture && n.indicator && n.placement != "center" ? (m(), Z(e.GestureIndicator, {
|
|
1355
|
+
key: 0,
|
|
1356
|
+
placement: n.placement
|
|
1357
|
+
}, null, 8, ["placement"])) : ee("", !0),
|
|
1358
|
+
H("div", K({ ref: "modal" }, e.modalAttrs), [
|
|
1359
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1360
|
+
], 16)
|
|
1361
|
+
]),
|
|
1362
|
+
_: 3
|
|
1363
|
+
}, 8, ["duration", "bounce", "class", "placement", "backdrop", "visible", "keepalive", "style"]);
|
|
1364
|
+
}
|
|
1365
|
+
const Jn = /* @__PURE__ */ V(Xn, [["render", qn], ["__scopeId", "data-v-2b10da3f"]]), Qn = /* @__PURE__ */ B({
|
|
1366
|
+
__name: "grid",
|
|
1367
|
+
props: /* @__PURE__ */ j({
|
|
1368
|
+
options: {}
|
|
1369
|
+
}, {
|
|
1370
|
+
...Mt
|
|
1371
|
+
}),
|
|
1372
|
+
setup(t, { expose: r }) {
|
|
1373
|
+
r();
|
|
1374
|
+
const n = t, e = c(() => Kt(n.options)), o = { props: n, gridAttrs: e, computed: c, get GRID_DEFAULT_PROPS() {
|
|
1375
|
+
return Mt;
|
|
1376
|
+
}, get getGridAttrs() {
|
|
1377
|
+
return Kt;
|
|
1378
|
+
} };
|
|
1379
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
1380
|
+
}
|
|
1381
|
+
});
|
|
1382
|
+
function Zn(t, r, n, e, o, a) {
|
|
1383
|
+
return m(), T("div", D(U(e.gridAttrs)), [
|
|
1384
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1385
|
+
], 16);
|
|
1386
|
+
}
|
|
1387
|
+
const eo = /* @__PURE__ */ V(Qn, [["render", Zn], ["__scopeId", "data-v-7b1bae0b"]]), to = /* @__PURE__ */ B({
|
|
1388
|
+
__name: "flex",
|
|
1389
|
+
props: /* @__PURE__ */ j({
|
|
1390
|
+
options: {}
|
|
1391
|
+
}, {
|
|
1392
|
+
...zt
|
|
1393
|
+
}),
|
|
1394
|
+
setup(t, { expose: r }) {
|
|
1395
|
+
r();
|
|
1396
|
+
const n = t, e = c(() => jt(n.options)), o = { props: n, flexAttrs: e, computed: c, get FLEX_DEFAULT_PROPS() {
|
|
1397
|
+
return zt;
|
|
1398
|
+
}, get getFlexAttrs() {
|
|
1399
|
+
return jt;
|
|
1400
|
+
} };
|
|
1401
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
function ro(t, r, n, e, o, a) {
|
|
1405
|
+
return m(), T("div", D(U(e.flexAttrs)), [
|
|
1406
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1407
|
+
], 16);
|
|
1408
|
+
}
|
|
1409
|
+
const no = /* @__PURE__ */ V(to, [["render", ro], ["__scopeId", "data-v-551ea3b0"]]), oo = /* @__PURE__ */ B({
|
|
1410
|
+
__name: "grid-item",
|
|
1411
|
+
props: /* @__PURE__ */ j({
|
|
1412
|
+
options: {}
|
|
1413
|
+
}, {
|
|
1414
|
+
...Ut
|
|
1415
|
+
}),
|
|
1416
|
+
setup(t, { expose: r }) {
|
|
1417
|
+
r();
|
|
1418
|
+
const n = t, e = c(() => Nt(n.options)), o = { props: n, gridItemAttrs: e, computed: c, get GRID_ITEM_DEFAULT_PROPS() {
|
|
1419
|
+
return Ut;
|
|
1420
|
+
}, get getGridItemAttrs() {
|
|
1421
|
+
return Nt;
|
|
1422
|
+
} };
|
|
1423
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
1424
|
+
}
|
|
1425
|
+
});
|
|
1426
|
+
function ao(t, r, n, e, o, a) {
|
|
1427
|
+
return m(), T("div", D(U(e.gridItemAttrs)), [
|
|
1428
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1429
|
+
], 16);
|
|
1430
|
+
}
|
|
1431
|
+
const so = /* @__PURE__ */ V(oo, [["render", ao], ["__scopeId", "data-v-3dc106be"]]), lo = /* @__PURE__ */ B({
|
|
1432
|
+
__name: "flex-item",
|
|
1433
|
+
props: /* @__PURE__ */ j({
|
|
1434
|
+
options: {}
|
|
1435
|
+
}, {
|
|
1436
|
+
...$t
|
|
1437
|
+
}),
|
|
1438
|
+
setup(t, { expose: r }) {
|
|
1439
|
+
r();
|
|
1440
|
+
const n = t, e = c(() => Gt(n.options)), o = { props: n, flexItemAttrs: e, computed: c, get FLEX_ITEM_DEFAULT_PROPS() {
|
|
1441
|
+
return $t;
|
|
1442
|
+
}, get getFlexItemAttrs() {
|
|
1443
|
+
return Gt;
|
|
1444
|
+
} };
|
|
1445
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
function io(t, r, n, e, o, a) {
|
|
1449
|
+
return m(), T("div", D(U(e.flexItemAttrs)), [
|
|
1450
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1451
|
+
], 16);
|
|
1452
|
+
}
|
|
1453
|
+
const co = /* @__PURE__ */ V(lo, [["render", io], ["__scopeId", "data-v-9aa28166"]]), uo = /* @__PURE__ */ B({
|
|
1454
|
+
__name: "cable",
|
|
1455
|
+
props: /* @__PURE__ */ j({
|
|
1456
|
+
keyboard: { type: Boolean },
|
|
1457
|
+
placement: {}
|
|
1458
|
+
}, {
|
|
1459
|
+
...nt
|
|
1460
|
+
}),
|
|
1461
|
+
setup(t, { expose: r }) {
|
|
1462
|
+
r();
|
|
1463
|
+
const n = t, { placement: e } = Re(n), o = c(() => ot({ placement: e.value }));
|
|
1464
|
+
ne(ke, {
|
|
1465
|
+
placement: e
|
|
1466
|
+
});
|
|
1467
|
+
const a = { props: n, placement: e, cableAttrs: o, computed: c, provide: ne, toRefs: Re, get CABLE_DEFAULT_PROPS() {
|
|
1468
|
+
return nt;
|
|
1469
|
+
}, get CABLE_PROVIDER_STATE_KEY() {
|
|
1470
|
+
return ke;
|
|
1471
|
+
}, get getCableAttrs() {
|
|
1472
|
+
return ot;
|
|
1473
|
+
} };
|
|
1474
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
function po(t, r, n, e, o, a) {
|
|
1478
|
+
return m(), T("div", D(U(e.cableAttrs)), [
|
|
1479
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1480
|
+
], 16);
|
|
1481
|
+
}
|
|
1482
|
+
const _o = /* @__PURE__ */ V(uo, [["render", po], ["__scopeId", "data-v-4fd2ca97"]]), fo = /* @__PURE__ */ B({
|
|
1483
|
+
__name: "toolbar",
|
|
1484
|
+
props: /* @__PURE__ */ j({
|
|
1485
|
+
placement: {},
|
|
1486
|
+
safe: { type: Boolean },
|
|
1487
|
+
role: {},
|
|
1488
|
+
divider: { type: Boolean }
|
|
1489
|
+
}, {
|
|
1490
|
+
...Hr
|
|
1491
|
+
}),
|
|
1492
|
+
setup(t, { expose: r }) {
|
|
1493
|
+
r();
|
|
1494
|
+
const n = t, e = y(ke), o = y(E), a = c(() => {
|
|
1495
|
+
const l = n.role || u(o?.role) || "", d = n.placement || u(e?.placement) || "", p = (n?.divider !== void 0 ? n.divider : u(o?.divider)) ?? !1;
|
|
1496
|
+
return Xr({
|
|
1497
|
+
role: l,
|
|
1498
|
+
placement: d,
|
|
1499
|
+
safe: n.safe,
|
|
1500
|
+
divider: p
|
|
1501
|
+
});
|
|
1502
|
+
}), s = { props: n, cable: e, appState: o, toolbarAttrs: a, unref: u, computed: c, inject: y, get TOOLBAR_DEFAULT_PROPS() {
|
|
1503
|
+
return Hr;
|
|
1504
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1505
|
+
return E;
|
|
1506
|
+
}, get CABLE_PROVIDER_STATE_KEY() {
|
|
1507
|
+
return ke;
|
|
1508
|
+
}, get getToolbarAttrs() {
|
|
1509
|
+
return Xr;
|
|
1510
|
+
} };
|
|
1511
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1514
|
+
function vo(t, r, n, e, o, a) {
|
|
1515
|
+
return m(), T("div", D(U(e.toolbarAttrs)), [
|
|
1516
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1517
|
+
], 16);
|
|
1518
|
+
}
|
|
1519
|
+
const mo = /* @__PURE__ */ V(fo, [["render", vo], ["__scopeId", "data-v-4ae7e08d"]]), go = /* @__PURE__ */ B({
|
|
1520
|
+
__name: "skeleton",
|
|
1521
|
+
props: /* @__PURE__ */ j({
|
|
1522
|
+
width: {},
|
|
1523
|
+
height: {},
|
|
1524
|
+
role: {},
|
|
1525
|
+
shape: {}
|
|
1526
|
+
}, {
|
|
1527
|
+
...Ar
|
|
1528
|
+
}),
|
|
1529
|
+
setup(t, { expose: r }) {
|
|
1530
|
+
r();
|
|
1531
|
+
const n = t, e = y(E), o = c(() => {
|
|
1532
|
+
const s = n.shape || u(e?.shape) || "", l = n.role || u(e?.role) || "";
|
|
1533
|
+
return yr({
|
|
1534
|
+
role: l,
|
|
1535
|
+
shape: s,
|
|
1536
|
+
width: n.width,
|
|
1537
|
+
height: n.height
|
|
1538
|
+
});
|
|
1539
|
+
}), a = { props: n, appState: e, skeletonAttrs: o, unref: u, computed: c, inject: y, get SKELETON_DEFAULT_PROPS() {
|
|
1540
|
+
return Ar;
|
|
1541
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1542
|
+
return E;
|
|
1543
|
+
}, get getSkeletonAttrs() {
|
|
1544
|
+
return yr;
|
|
1545
|
+
} };
|
|
1546
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
1547
|
+
}
|
|
1548
|
+
});
|
|
1549
|
+
function ho(t, r, n, e, o, a) {
|
|
1550
|
+
return m(), T("div", D(U(e.skeletonAttrs)), null, 16);
|
|
1551
|
+
}
|
|
1552
|
+
const bo = /* @__PURE__ */ V(go, [["render", ho], ["__scopeId", "data-v-d2115b2f"]]), Ao = /* @__PURE__ */ B({
|
|
1553
|
+
__name: "tabs",
|
|
1554
|
+
props: /* @__PURE__ */ j({
|
|
1555
|
+
placement: {},
|
|
1556
|
+
variant: {},
|
|
1557
|
+
role: {},
|
|
1558
|
+
modelValue: {},
|
|
1559
|
+
border: {},
|
|
1560
|
+
margin: {},
|
|
1561
|
+
shape: {},
|
|
1562
|
+
transition: { type: Boolean },
|
|
1563
|
+
size: {}
|
|
1564
|
+
}, {
|
|
1565
|
+
...Lr
|
|
1566
|
+
}),
|
|
1567
|
+
emits: ["update:modelValue"],
|
|
1568
|
+
setup(t, { expose: r, emit: n }) {
|
|
1569
|
+
r();
|
|
1570
|
+
const e = t, o = n, a = y(E), s = _(0), l = _(0), d = _(0), p = _(0), f = _(), v = _(!0), b = c(() => e.role || u(a?.role) || ""), R = c(() => e.shape || u(a?.shape) || ""), P = c(() => e.size), S = c(() => e.modelValue || ""), A = c(() => {
|
|
1571
|
+
let g = p.value, F = d.value, M = s.value, O = l.value;
|
|
1572
|
+
F = F - e.margin[0], g = g - e.margin[1], O = O + e.margin[0] * 2, M = M + e.margin[1] * 2, e.variant === "underline" && (e.placement.startsWith("top-") && (F = O - e.border[0]), e.placement.startsWith("bottom-") && (F = 0), (e.placement.startsWith("top-") || e.placement.startsWith("bottom-")) && (O = e.border[0] + 0.5, e.border[1] && (g += (M - e.border[1]) / 2, M = e.border[1])), e.placement.startsWith("left-") && (g = M - e.border[0]), e.placement.startsWith("right-") && (g = 0), (e.placement.startsWith("left-") || e.placement.startsWith("right-")) && (M = e.border[0], e.border[1] && (F += (O - e.border[1]) / 2, O = e.border[1])));
|
|
1573
|
+
const $ = b.value, k = $ ? `${$}-${e.variant}` : "";
|
|
1574
|
+
return {
|
|
1575
|
+
...Ur({
|
|
1576
|
+
roleVariant: k,
|
|
1577
|
+
shape: R.value,
|
|
1578
|
+
placement: e.placement,
|
|
1579
|
+
variant: e.variant,
|
|
1580
|
+
transition: v.value ? !1 : e.transition
|
|
1581
|
+
}),
|
|
1582
|
+
style: Mr({
|
|
1583
|
+
top: F,
|
|
1584
|
+
left: g,
|
|
1585
|
+
width: M,
|
|
1586
|
+
height: O,
|
|
1587
|
+
marginX: e.margin[1],
|
|
1588
|
+
marginY: e.margin[0]
|
|
1589
|
+
})
|
|
1590
|
+
};
|
|
1591
|
+
}), G = () => {
|
|
1592
|
+
let g = f.value.querySelector(".active");
|
|
1593
|
+
g && (s.value = g.offsetWidth, l.value = g.offsetHeight, p.value = g.getBoundingClientRect().left - f.value.getBoundingClientRect().left + f.value.scrollLeft, d.value = g.getBoundingClientRect().top - f.value.getBoundingClientRect().top + f.value.scrollTop);
|
|
1594
|
+
}, z = async () => {
|
|
1595
|
+
await re(), G();
|
|
1596
|
+
};
|
|
1597
|
+
X(
|
|
1598
|
+
() => e.modelValue,
|
|
1599
|
+
() => {
|
|
1600
|
+
z();
|
|
1601
|
+
}
|
|
1602
|
+
), q(() => {
|
|
1603
|
+
z(), window.addEventListener("resize", G), setTimeout(() => {
|
|
1604
|
+
v.value = !1;
|
|
1605
|
+
}, 500);
|
|
1606
|
+
}), oe(() => {
|
|
1607
|
+
window.removeEventListener("resize", G);
|
|
1608
|
+
}), ne(Ie, {
|
|
1609
|
+
activeValue: S,
|
|
1610
|
+
role: b,
|
|
1611
|
+
shape: R,
|
|
1612
|
+
size: P,
|
|
1613
|
+
setValue: (g) => {
|
|
1614
|
+
o("update:modelValue", g);
|
|
1615
|
+
}
|
|
1616
|
+
});
|
|
1617
|
+
const I = { props: e, emit: o, appState: a, width: s, height: l, top: d, left: p, container: f, isFirstRender: v, role: b, shape: R, size: P, activeValue: S, tabsAttrs: A, calcPosition: G, checkRender: z, unref: u, computed: c, inject: y, nextTick: re, onMounted: q, onUnmounted: oe, provide: ne, ref: _, watch: X, get TABS_DEFAULT_PROPS() {
|
|
1618
|
+
return Lr;
|
|
1619
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1620
|
+
return E;
|
|
1621
|
+
}, get TABS_PROVIDER_STATE_KEY() {
|
|
1622
|
+
return Ie;
|
|
1623
|
+
}, get getTabsAttrs() {
|
|
1624
|
+
return Ur;
|
|
1625
|
+
}, get getTabsHighlightStyle() {
|
|
1626
|
+
return Mr;
|
|
1627
|
+
} };
|
|
1628
|
+
return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
|
|
1629
|
+
}
|
|
1630
|
+
});
|
|
1631
|
+
function yo(t, r, n, e, o, a) {
|
|
1632
|
+
return m(), T("ul", K({ ref: "container" }, e.tabsAttrs), [
|
|
1633
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1634
|
+
], 16);
|
|
1635
|
+
}
|
|
1636
|
+
const Po = /* @__PURE__ */ V(Ao, [["render", yo], ["__scopeId", "data-v-08d9709d"]]), To = /* @__PURE__ */ B({
|
|
1637
|
+
__name: "tab",
|
|
1638
|
+
props: /* @__PURE__ */ j({
|
|
1639
|
+
value: {},
|
|
1640
|
+
disabled: { type: Boolean }
|
|
1641
|
+
}, {
|
|
1642
|
+
...Vr
|
|
1643
|
+
}),
|
|
1644
|
+
setup(t, { expose: r }) {
|
|
1645
|
+
r();
|
|
1646
|
+
const n = t, e = y(Ie), o = c(() => u(e?.shape) || ""), a = c(() => u(e?.size) || "standard"), s = c(() => u(e?.activeValue) === n.value), l = c(() => $r({ active: s.value })), d = c(() => zr({ shape: o.value, size: a.value })), f = { props: n, tabsState: e, shape: o, size: a, isActive: s, tabAttrs: l, buttonAttrs: d, handleClick: () => {
|
|
1647
|
+
n.disabled || e?.setValue(n.value || "");
|
|
1648
|
+
}, computed: c, inject: y, unref: u, get TAB_DEFAULT_PROPS() {
|
|
1649
|
+
return Vr;
|
|
1650
|
+
}, get TABS_PROVIDER_STATE_KEY() {
|
|
1651
|
+
return Ie;
|
|
1652
|
+
}, get getTabAttrs() {
|
|
1653
|
+
return $r;
|
|
1654
|
+
}, get getTabButtonAttrs() {
|
|
1655
|
+
return zr;
|
|
1656
|
+
} };
|
|
1657
|
+
return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
function So(t, r, n, e, o, a) {
|
|
1661
|
+
return m(), T("li", D(U(e.tabAttrs)), [
|
|
1662
|
+
H("button", K(e.buttonAttrs, { onClick: e.handleClick }), [
|
|
1663
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1664
|
+
], 16)
|
|
1665
|
+
], 16);
|
|
1666
|
+
}
|
|
1667
|
+
const Eo = /* @__PURE__ */ V(To, [["render", So], ["__scopeId", "data-v-2eddd820"]]), Ro = /* @__PURE__ */ B({
|
|
1668
|
+
__name: "switch",
|
|
1669
|
+
props: /* @__PURE__ */ j({
|
|
1670
|
+
modelValue: { type: Boolean },
|
|
1671
|
+
role: {},
|
|
1672
|
+
size: {},
|
|
1673
|
+
shape: {},
|
|
1674
|
+
disabled: { type: Boolean },
|
|
1675
|
+
readonly: { type: Boolean },
|
|
1676
|
+
shadow: { type: Boolean },
|
|
1677
|
+
bounce: {}
|
|
1678
|
+
}, {
|
|
1679
|
+
...xr
|
|
1680
|
+
}),
|
|
1681
|
+
emits: ["update:modelValue"],
|
|
1682
|
+
setup(t, { expose: r, emit: n }) {
|
|
1683
|
+
r();
|
|
1684
|
+
const e = t, o = n, a = y(E), s = _(!1), l = _(!0), d = c(() => {
|
|
1685
|
+
const A = (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1;
|
|
1686
|
+
return Cr({
|
|
1687
|
+
disabled: e.disabled,
|
|
1688
|
+
readonly: e.readonly,
|
|
1689
|
+
shadow: A && !e.disabled && s.value,
|
|
1690
|
+
focus: s.value,
|
|
1691
|
+
modelValue: e.modelValue,
|
|
1692
|
+
transition: !l.value,
|
|
1693
|
+
bounce: e.bounce
|
|
1694
|
+
});
|
|
1695
|
+
}), p = c(() => {
|
|
1696
|
+
const A = e.shape || u(a?.shape) || "", G = u(a?.role) || "", z = e.role || G;
|
|
1697
|
+
return Fr({
|
|
1698
|
+
role: z,
|
|
1699
|
+
shape: A,
|
|
1700
|
+
size: e.size
|
|
1701
|
+
});
|
|
1702
|
+
}), f = Br(), v = () => {
|
|
1703
|
+
e.disabled || e.readonly || o("update:modelValue", !e.modelValue);
|
|
1704
|
+
}, b = () => {
|
|
1705
|
+
e.disabled || e.readonly || (s.value = !0);
|
|
1706
|
+
}, R = () => {
|
|
1707
|
+
e.disabled || e.readonly || (s.value = !1);
|
|
1708
|
+
}, P = (A) => {
|
|
1709
|
+
A.key !== " " && A.key !== "Enter" || (A.preventDefault(), v());
|
|
1710
|
+
};
|
|
1711
|
+
q(() => {
|
|
1712
|
+
setTimeout(() => {
|
|
1713
|
+
l.value = !1;
|
|
1714
|
+
}, 500);
|
|
1715
|
+
});
|
|
1716
|
+
const S = { props: e, emit: o, appState: a, isFocused: s, isFirstRender: l, switchWrapperAttrs: d, switchAttrs: p, switchIconAttrs: f, onSwitch: v, onFocus: b, onBlur: R, onKeydown: P, unref: u, computed: c, inject: y, ref: _, onMounted: q, get SWITCH_DEFAULT_PROPS() {
|
|
1717
|
+
return xr;
|
|
1718
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1719
|
+
return E;
|
|
1720
|
+
}, get getSwitchAttrs() {
|
|
1721
|
+
return Fr;
|
|
1722
|
+
}, get getSwitchIconAttrs() {
|
|
1723
|
+
return Br;
|
|
1724
|
+
}, get getSwitchWrapperAttrs() {
|
|
1725
|
+
return Cr;
|
|
1726
|
+
} };
|
|
1727
|
+
return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
|
|
1728
|
+
}
|
|
1729
|
+
}), Oo = ["tabindex", "aria-checked"];
|
|
1730
|
+
function ko(t, r, n, e, o, a) {
|
|
1731
|
+
return m(), T("div", K(e.switchWrapperAttrs, {
|
|
1732
|
+
tabindex: n.disabled ? -1 : 0,
|
|
1733
|
+
"aria-checked": e.props.modelValue,
|
|
1734
|
+
onPointerup: e.onSwitch,
|
|
1735
|
+
onFocus: e.onFocus,
|
|
1736
|
+
onBlur: e.onBlur,
|
|
1737
|
+
onKeydown: e.onKeydown
|
|
1738
|
+
}), [
|
|
1739
|
+
H("div", D(U(e.switchAttrs)), [
|
|
1740
|
+
H("div", D(U(e.switchIconAttrs)), null, 16)
|
|
1741
|
+
], 16),
|
|
1742
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1743
|
+
], 16, Oo);
|
|
1744
|
+
}
|
|
1745
|
+
const wo = /* @__PURE__ */ V(Ro, [["render", ko], ["__scopeId", "data-v-65bf583f"]]), Do = /* @__PURE__ */ B({
|
|
1746
|
+
__name: "checkbox",
|
|
1747
|
+
props: /* @__PURE__ */ j({
|
|
1748
|
+
modelValue: { type: Boolean },
|
|
1749
|
+
role: {},
|
|
1750
|
+
size: {},
|
|
1751
|
+
shape: {},
|
|
1752
|
+
variant: {},
|
|
1753
|
+
readonly: { type: Boolean },
|
|
1754
|
+
disabled: { type: Boolean },
|
|
1755
|
+
shadow: { type: Boolean }
|
|
1756
|
+
}, {
|
|
1757
|
+
...dt
|
|
1758
|
+
}),
|
|
1759
|
+
emits: ["update:modelValue", "focus", "blur"],
|
|
1760
|
+
setup(t, { expose: r, emit: n }) {
|
|
1761
|
+
r();
|
|
1762
|
+
const e = t, o = n, a = y(E), s = _(!1), l = c(() => {
|
|
1763
|
+
const P = u(a?.role) || "", S = e.role || P, A = e.shape || u(a?.shape) || "", G = (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1;
|
|
1764
|
+
return ut({
|
|
1765
|
+
role: S,
|
|
1766
|
+
shape: A,
|
|
1767
|
+
size: e.size,
|
|
1768
|
+
variant: e.variant,
|
|
1769
|
+
modelValue: e.modelValue,
|
|
1770
|
+
disabled: e.disabled,
|
|
1771
|
+
readonly: e.readonly,
|
|
1772
|
+
shadow: G && !e.disabled && s.value,
|
|
1773
|
+
focus: s.value
|
|
1774
|
+
});
|
|
1775
|
+
}), d = pt(), p = () => {
|
|
1776
|
+
e.disabled || e.readonly || o("update:modelValue", !e.modelValue);
|
|
1777
|
+
}, R = { props: e, emit: o, appState: a, isFocused: s, checkboxAttrs: l, checkboxIconAttrs: d, onCheckbox: p, onFocus: () => {
|
|
1778
|
+
e.disabled || e.readonly || (s.value = !0, o("focus"));
|
|
1779
|
+
}, onBlur: () => {
|
|
1780
|
+
e.disabled || e.readonly || (s.value = !1, o("blur"));
|
|
1781
|
+
}, onKeydown: (P) => {
|
|
1782
|
+
P.key !== " " && P.key !== "Enter" || (P.preventDefault(), p());
|
|
1783
|
+
}, unref: u, computed: c, inject: y, ref: _, get CHECKBOX_DEFAULT_PROPS() {
|
|
1784
|
+
return dt;
|
|
1785
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1786
|
+
return E;
|
|
1787
|
+
}, get getCheckboxAttrs() {
|
|
1788
|
+
return ut;
|
|
1789
|
+
}, get getCheckboxIconAttrs() {
|
|
1790
|
+
return pt;
|
|
1791
|
+
} };
|
|
1792
|
+
return Object.defineProperty(R, "__isScriptSetup", { enumerable: !1, value: !0 }), R;
|
|
1793
|
+
}
|
|
1794
|
+
}), Io = ["tabindex", "aria-checked"];
|
|
1795
|
+
function xo(t, r, n, e, o, a) {
|
|
1796
|
+
return m(), T("div", K(e.checkboxAttrs, {
|
|
1797
|
+
tabindex: n.disabled ? -1 : 0,
|
|
1798
|
+
"aria-checked": e.props.modelValue,
|
|
1799
|
+
onPointerup: e.onCheckbox,
|
|
1800
|
+
onFocus: e.onFocus,
|
|
1801
|
+
onBlur: e.onBlur,
|
|
1802
|
+
onKeydown: e.onKeydown
|
|
1803
|
+
}), [
|
|
1804
|
+
H("div", D(U(e.checkboxIconAttrs)), null, 16),
|
|
1805
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1806
|
+
], 16, Io);
|
|
1807
|
+
}
|
|
1808
|
+
const Co = /* @__PURE__ */ V(Do, [["render", xo], ["__scopeId", "data-v-764d39e7"]]), Fo = /* @__PURE__ */ B({
|
|
1809
|
+
__name: "radio",
|
|
1810
|
+
props: /* @__PURE__ */ j({
|
|
1811
|
+
value: {},
|
|
1812
|
+
role: {},
|
|
1813
|
+
size: {},
|
|
1814
|
+
variant: {},
|
|
1815
|
+
disabled: { type: Boolean },
|
|
1816
|
+
readonly: { type: Boolean },
|
|
1817
|
+
shadow: { type: Boolean }
|
|
1818
|
+
}, {
|
|
1819
|
+
...tr
|
|
1820
|
+
}),
|
|
1821
|
+
setup(t, { expose: r }) {
|
|
1822
|
+
r();
|
|
1823
|
+
const n = t, e = y(E), o = y(
|
|
1824
|
+
we,
|
|
1825
|
+
null
|
|
1826
|
+
), a = _(!1), s = c(() => n.disabled || (u(o?.disabled) ?? !1)), l = c(() => n.readonly || (u(o?.readonly) ?? !1)), d = c(() => {
|
|
1827
|
+
const S = (n?.shadow !== void 0 ? n.shadow : u(e?.shadow)) ?? !1, A = n.role || u(o?.role) || u(e?.role) || "", G = n.variant || u(o?.variant) || "", z = u(o?.modelValue) === n.value;
|
|
1828
|
+
return rr({
|
|
1829
|
+
role: A,
|
|
1830
|
+
size: n.size,
|
|
1831
|
+
variant: G,
|
|
1832
|
+
checked: z,
|
|
1833
|
+
disabled: s.value,
|
|
1834
|
+
readonly: l.value,
|
|
1835
|
+
shadow: S && !n.disabled && a.value,
|
|
1836
|
+
focus: a.value
|
|
1837
|
+
});
|
|
1838
|
+
}), p = nr(), f = () => {
|
|
1839
|
+
s.value || l.value || !o || o.setValue(n.value);
|
|
1840
|
+
}, P = { props: n, appState: e, radioGroupState: o, isFocused: a, disabled: s, readonly: l, radioAttrs: d, radioIconAttrs: p, onRadio: f, onFocus: () => {
|
|
1841
|
+
s.value || l.value || (a.value = !0);
|
|
1842
|
+
}, onBlur: () => {
|
|
1843
|
+
s.value || l.value || (a.value = !1);
|
|
1844
|
+
}, onKeydown: (S) => {
|
|
1845
|
+
S.key !== " " && S.key !== "Enter" || (S.preventDefault(), f());
|
|
1846
|
+
}, unref: u, computed: c, inject: y, ref: _, get RADIO_DEFAULT_PROPS() {
|
|
1847
|
+
return tr;
|
|
1848
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1849
|
+
return E;
|
|
1850
|
+
}, get RADIO_GROUP_PROVIDER_STATE_KEY() {
|
|
1851
|
+
return we;
|
|
1852
|
+
}, get getRadioAttrs() {
|
|
1853
|
+
return rr;
|
|
1854
|
+
}, get getRadioIconAttrs() {
|
|
1855
|
+
return nr;
|
|
1856
|
+
} };
|
|
1857
|
+
return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
|
|
1858
|
+
}
|
|
1859
|
+
}), Bo = ["tabindex"];
|
|
1860
|
+
function Vo(t, r, n, e, o, a) {
|
|
1861
|
+
return m(), T("div", K(e.radioAttrs, {
|
|
1862
|
+
onPointerup: e.onRadio,
|
|
1863
|
+
tabindex: e.disabled ? -1 : 0,
|
|
1864
|
+
onFocus: e.onFocus,
|
|
1865
|
+
onBlur: e.onBlur,
|
|
1866
|
+
onKeydown: e.onKeydown
|
|
1867
|
+
}), [
|
|
1868
|
+
H("div", D(U(e.radioIconAttrs)), null, 16),
|
|
1869
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1870
|
+
], 16, Bo);
|
|
1871
|
+
}
|
|
1872
|
+
const Lo = /* @__PURE__ */ V(Fo, [["render", Vo], ["__scopeId", "data-v-e6db3cdd"]]), $o = /* @__PURE__ */ B({
|
|
1873
|
+
__name: "radio-group",
|
|
1874
|
+
props: /* @__PURE__ */ j({
|
|
1875
|
+
modelValue: {},
|
|
1876
|
+
role: {},
|
|
1877
|
+
variant: {},
|
|
1878
|
+
disabled: { type: Boolean },
|
|
1879
|
+
readonly: { type: Boolean },
|
|
1880
|
+
shadow: { type: Boolean },
|
|
1881
|
+
direction: {}
|
|
1882
|
+
}, {
|
|
1883
|
+
...er
|
|
1884
|
+
}),
|
|
1885
|
+
emits: ["update:modelValue"],
|
|
1886
|
+
setup(t, { expose: r, emit: n }) {
|
|
1887
|
+
r();
|
|
1888
|
+
const e = t, o = n, a = y(E), s = c(() => e.modelValue), l = c(() => e.role || u(a?.role) || ""), d = c(() => e.variant), p = c(() => (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1), f = c(() => e.disabled), v = c(() => e.readonly), b = c(() => or({ direction: e.direction }));
|
|
1889
|
+
ne(we, {
|
|
1890
|
+
modelValue: s,
|
|
1891
|
+
role: l,
|
|
1892
|
+
variant: d,
|
|
1893
|
+
disabled: f,
|
|
1894
|
+
readonly: v,
|
|
1895
|
+
shadow: p,
|
|
1896
|
+
setValue: (P) => {
|
|
1897
|
+
o("update:modelValue", P);
|
|
1898
|
+
}
|
|
1899
|
+
});
|
|
1900
|
+
const R = { props: e, emit: o, appState: a, modelValue: s, role: l, variant: d, shadow: p, disabled: f, readonly: v, radioGroupAttrs: b, unref: u, computed: c, inject: y, provide: ne, get RADIO_GROUP_DEFAULT_PROPS() {
|
|
1901
|
+
return er;
|
|
1902
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1903
|
+
return E;
|
|
1904
|
+
}, get RADIO_GROUP_PROVIDER_STATE_KEY() {
|
|
1905
|
+
return we;
|
|
1906
|
+
}, get getRadioGroupAttrs() {
|
|
1907
|
+
return or;
|
|
1908
|
+
} };
|
|
1909
|
+
return Object.defineProperty(R, "__isScriptSetup", { enumerable: !1, value: !0 }), R;
|
|
1910
|
+
}
|
|
1911
|
+
});
|
|
1912
|
+
function zo(t, r, n, e, o, a) {
|
|
1913
|
+
return m(), T("div", D(U(e.radioGroupAttrs)), [
|
|
1914
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
1915
|
+
], 16);
|
|
1916
|
+
}
|
|
1917
|
+
const Uo = /* @__PURE__ */ V($o, [["render", zo], ["__scopeId", "data-v-5008937a"]]), Mo = /* @__PURE__ */ B({
|
|
1918
|
+
__name: "card",
|
|
1919
|
+
props: /* @__PURE__ */ j({
|
|
1920
|
+
role: {},
|
|
1921
|
+
shape: {},
|
|
1922
|
+
divider: { type: Boolean }
|
|
1923
|
+
}, {
|
|
1924
|
+
...at
|
|
1925
|
+
}),
|
|
1926
|
+
setup(t, { expose: r }) {
|
|
1927
|
+
r();
|
|
1928
|
+
const n = t, e = y(E), o = c(() => (n?.divider !== void 0 ? n.divider : u(e?.divider)) ?? !1), a = c(() => n?.shape || u(e?.shape) || ""), s = c(() => n.role || u(e?.role) || ""), l = c(
|
|
1929
|
+
() => st({
|
|
1930
|
+
role: s.value,
|
|
1931
|
+
shape: a.value,
|
|
1932
|
+
divider: o.value
|
|
1933
|
+
})
|
|
1934
|
+
);
|
|
1935
|
+
ne(ve, {
|
|
1936
|
+
role: s,
|
|
1937
|
+
shape: a,
|
|
1938
|
+
divider: o
|
|
1939
|
+
});
|
|
1940
|
+
const d = { props: n, appState: e, divider: o, shape: a, role: s, cardAttrs: l, unref: u, computed: c, inject: y, provide: ne, get CARD_DEFAULT_PROPS() {
|
|
1941
|
+
return at;
|
|
1942
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
1943
|
+
return E;
|
|
1944
|
+
}, get CARD_PROVIDER_STATE_KEY() {
|
|
1945
|
+
return ve;
|
|
1946
|
+
}, get getCardAttrs() {
|
|
1947
|
+
return st;
|
|
1948
|
+
} };
|
|
1949
|
+
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
1950
|
+
}
|
|
1951
|
+
});
|
|
1952
|
+
function Ko(t, r, n, e, o, a) {
|
|
1953
|
+
return m(), T("div", D(U(e.cardAttrs)), [
|
|
1954
|
+
L(t.$slots, "default")
|
|
1955
|
+
], 16);
|
|
1956
|
+
}
|
|
1957
|
+
const No = /* @__PURE__ */ V(Mo, [["render", Ko]]), jo = /* @__PURE__ */ B({
|
|
1958
|
+
__name: "card-body",
|
|
1959
|
+
setup(t, { expose: r }) {
|
|
1960
|
+
r();
|
|
1961
|
+
const e = { cardBodyAttrs: ct(), get getCardBodyAttrs() {
|
|
1962
|
+
return ct;
|
|
1963
|
+
} };
|
|
1964
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
1965
|
+
}
|
|
1966
|
+
});
|
|
1967
|
+
function Go(t, r, n, e, o, a) {
|
|
1968
|
+
return m(), T("div", D(U(e.cardBodyAttrs)), [
|
|
1969
|
+
L(t.$slots, "default")
|
|
1970
|
+
], 16);
|
|
1971
|
+
}
|
|
1972
|
+
const Yo = /* @__PURE__ */ V(jo, [["render", Go]]), Wo = /* @__PURE__ */ B({
|
|
1973
|
+
__name: "card-header",
|
|
1974
|
+
setup(t, { expose: r }) {
|
|
1975
|
+
r();
|
|
1976
|
+
const n = y(ve), e = c(() => {
|
|
1977
|
+
const a = u(n?.divider) ?? !1;
|
|
1978
|
+
return lt({ divider: a });
|
|
1979
|
+
}), o = { cardProviderState: n, cardHeaderAttrs: e, computed: c, inject: y, unref: u, get CARD_PROVIDER_STATE_KEY() {
|
|
1980
|
+
return ve;
|
|
1981
|
+
}, get getCardHeaderAttrs() {
|
|
1982
|
+
return lt;
|
|
1983
|
+
} };
|
|
1984
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
1985
|
+
}
|
|
1986
|
+
});
|
|
1987
|
+
function Ho(t, r, n, e, o, a) {
|
|
1988
|
+
return m(), T("div", D(U(e.cardHeaderAttrs)), [
|
|
1989
|
+
L(t.$slots, "default")
|
|
1990
|
+
], 16);
|
|
1991
|
+
}
|
|
1992
|
+
const Xo = /* @__PURE__ */ V(Wo, [["render", Ho]]), qo = /* @__PURE__ */ B({
|
|
1993
|
+
__name: "card-footer",
|
|
1994
|
+
setup(t, { expose: r }) {
|
|
1995
|
+
r();
|
|
1996
|
+
const n = y(ve), e = c(() => {
|
|
1997
|
+
const a = u(n?.divider) ?? !1;
|
|
1998
|
+
return it({ divider: a });
|
|
1999
|
+
}), o = { cardProviderState: n, cardFooterAttrs: e, computed: c, inject: y, unref: u, get CARD_PROVIDER_STATE_KEY() {
|
|
2000
|
+
return ve;
|
|
2001
|
+
}, get getCardFooterAttrs() {
|
|
2002
|
+
return it;
|
|
2003
|
+
} };
|
|
2004
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
2005
|
+
}
|
|
2006
|
+
});
|
|
2007
|
+
function Jo(t, r, n, e, o, a) {
|
|
2008
|
+
return m(), T("div", D(U(e.cardFooterAttrs)), [
|
|
2009
|
+
L(t.$slots, "default")
|
|
2010
|
+
], 16);
|
|
2011
|
+
}
|
|
2012
|
+
const Qo = /* @__PURE__ */ V(qo, [["render", Jo]]), Zo = /* @__PURE__ */ B({
|
|
2013
|
+
__name: "avatar",
|
|
2014
|
+
props: /* @__PURE__ */ j({
|
|
2015
|
+
shape: {},
|
|
2016
|
+
size: {},
|
|
2017
|
+
src: {},
|
|
2018
|
+
role: {},
|
|
2019
|
+
divider: { type: Boolean }
|
|
2020
|
+
}, {
|
|
2021
|
+
...Qe
|
|
2022
|
+
}),
|
|
2023
|
+
setup(t, { expose: r }) {
|
|
2024
|
+
r();
|
|
2025
|
+
const n = t, e = y(E), o = c(() => {
|
|
2026
|
+
const s = n?.shape || u(e?.shape) || "", l = n?.role || u(e?.role) || "", d = (n?.divider !== void 0 ? n.divider : u(e?.divider)) ?? !1;
|
|
2027
|
+
return Ze({
|
|
2028
|
+
role: l,
|
|
2029
|
+
shape: s,
|
|
2030
|
+
divider: d,
|
|
2031
|
+
size: n.size,
|
|
2032
|
+
src: n.src
|
|
2033
|
+
});
|
|
2034
|
+
}), a = { props: n, appState: e, avatarAttrs: o, unref: u, computed: c, inject: y, get AVATAR_DEFAULT_PROPS() {
|
|
2035
|
+
return Qe;
|
|
2036
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
2037
|
+
return E;
|
|
2038
|
+
}, get getAvatarAttrs() {
|
|
2039
|
+
return Ze;
|
|
2040
|
+
} };
|
|
2041
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
2042
|
+
}
|
|
2043
|
+
});
|
|
2044
|
+
function ea(t, r, n, e, o, a) {
|
|
2045
|
+
return m(), T("div", D(U(e.avatarAttrs)), [
|
|
2046
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
2047
|
+
], 16);
|
|
2048
|
+
}
|
|
2049
|
+
const ta = /* @__PURE__ */ V(Zo, [["render", ea], ["__scopeId", "data-v-f05249c9"]]), ra = /* @__PURE__ */ B({
|
|
2050
|
+
__name: "divider",
|
|
2051
|
+
props: /* @__PURE__ */ j({
|
|
2052
|
+
direction: {},
|
|
2053
|
+
role: {}
|
|
2054
|
+
}, {
|
|
2055
|
+
...St
|
|
2056
|
+
}),
|
|
2057
|
+
setup(t, { expose: r }) {
|
|
2058
|
+
r();
|
|
2059
|
+
const n = t, e = y(E), o = c(() => {
|
|
2060
|
+
const s = n.role || u(e?.role) || "";
|
|
2061
|
+
return Et({ role: s, direction: n.direction });
|
|
2062
|
+
}), a = { props: n, appState: e, dividerAttrs: o, unref: u, computed: c, inject: y, get DIVIDER_DEFAULT_PROPS() {
|
|
2063
|
+
return St;
|
|
2064
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
2065
|
+
return E;
|
|
2066
|
+
}, get getDividerAttrs() {
|
|
2067
|
+
return Et;
|
|
2068
|
+
} };
|
|
2069
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
function na(t, r, n, e, o, a) {
|
|
2073
|
+
return m(), T("div", D(U(e.dividerAttrs)), null, 16);
|
|
2074
|
+
}
|
|
2075
|
+
const oa = /* @__PURE__ */ V(ra, [["render", na], ["__scopeId", "data-v-83a5abd7"]]), aa = /* @__PURE__ */ B({
|
|
2076
|
+
__name: "image",
|
|
2077
|
+
props: {
|
|
2078
|
+
defaultSrc: {},
|
|
2079
|
+
src: {}
|
|
2080
|
+
},
|
|
2081
|
+
setup(t, { expose: r }) {
|
|
2082
|
+
r();
|
|
2083
|
+
const n = t, e = y(E), o = _(n.src ?? ""), a = c(() => n.defaultSrc ?? u(e?.data)?.errorImageUrl ?? ""), s = () => {
|
|
2084
|
+
a.value && (o.value = a.value);
|
|
2085
|
+
};
|
|
2086
|
+
X(
|
|
2087
|
+
() => n.src,
|
|
2088
|
+
(d) => {
|
|
2089
|
+
o.value = d ?? "";
|
|
2090
|
+
}
|
|
2091
|
+
);
|
|
2092
|
+
const l = { props: n, appState: e, dataSrc: o, defaultSrc: a, handleError: s, unref: u, ref: _, watch: X, computed: c, inject: y, get APP_PROVIDER_STATE_KEY() {
|
|
2093
|
+
return E;
|
|
2094
|
+
} };
|
|
2095
|
+
return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
|
|
2096
|
+
}
|
|
2097
|
+
}), sa = ["src"];
|
|
2098
|
+
function la(t, r, n, e, o, a) {
|
|
2099
|
+
return m(), T("img", {
|
|
2100
|
+
onError: e.handleError,
|
|
2101
|
+
src: e.dataSrc
|
|
2102
|
+
}, null, 40, sa);
|
|
2103
|
+
}
|
|
2104
|
+
const ia = /* @__PURE__ */ V(aa, [["render", la]]), ca = /* @__PURE__ */ B({
|
|
2105
|
+
__name: "field",
|
|
2106
|
+
props: /* @__PURE__ */ j({
|
|
2107
|
+
modelValue: {},
|
|
2108
|
+
name: {},
|
|
2109
|
+
variant: {},
|
|
2110
|
+
role: {},
|
|
2111
|
+
shape: {},
|
|
2112
|
+
size: {},
|
|
2113
|
+
shadow: { type: Boolean },
|
|
2114
|
+
direction: {},
|
|
2115
|
+
id: {},
|
|
2116
|
+
value: {},
|
|
2117
|
+
placeholder: {},
|
|
2118
|
+
disabled: { type: Boolean },
|
|
2119
|
+
readonly: { type: Boolean },
|
|
2120
|
+
autocomplete: {},
|
|
2121
|
+
maxLength: {},
|
|
2122
|
+
tabindex: {},
|
|
2123
|
+
type: {},
|
|
2124
|
+
line: {},
|
|
2125
|
+
maxLine: {},
|
|
2126
|
+
message: {}
|
|
2127
|
+
}, {
|
|
2128
|
+
...wt
|
|
2129
|
+
}),
|
|
2130
|
+
emits: ["update:modelValue", "focus", "blur", "input", "beforeinput"],
|
|
2131
|
+
setup(t, { expose: r, emit: n }) {
|
|
2132
|
+
r();
|
|
2133
|
+
const e = t, o = n, a = y(E), s = _(!1), l = _(0), d = _(""), p = c(() => {
|
|
2134
|
+
const I = e.role || u(a?.role) || "", g = e.shape || u(a?.shape) || "", F = (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1, M = e.direction || u(a?.direction) || "left";
|
|
2135
|
+
return Dt({
|
|
2136
|
+
role: I,
|
|
2137
|
+
shape: g,
|
|
2138
|
+
size: e.size,
|
|
2139
|
+
direction: M,
|
|
2140
|
+
variant: e.variant,
|
|
2141
|
+
type: e.type,
|
|
2142
|
+
disabled: e.disabled,
|
|
2143
|
+
focus: s.value,
|
|
2144
|
+
shadow: F,
|
|
2145
|
+
readonly: e.readonly,
|
|
2146
|
+
line: Number(e.line),
|
|
2147
|
+
maxLine: e.maxLine !== void 0 ? Number(e.maxLine) : void 0
|
|
2148
|
+
});
|
|
2149
|
+
}), f = c(() => e.modelValue ?? e.value ?? ""), v = c(() => It()), b = c(() => ({
|
|
2150
|
+
...xt(),
|
|
2151
|
+
name: e.name,
|
|
2152
|
+
id: e.id,
|
|
2153
|
+
placeholder: e.placeholder,
|
|
2154
|
+
autocomplete: e.autocomplete,
|
|
2155
|
+
type: e.type,
|
|
2156
|
+
readonly: e.readonly,
|
|
2157
|
+
disabled: e.disabled,
|
|
2158
|
+
maxlength: e.maxLength,
|
|
2159
|
+
tabindex: e.tabindex
|
|
2160
|
+
})), R = c(() => Ct()), P = (I) => {
|
|
2161
|
+
e.disabled || (s.value = !0, o("focus", I));
|
|
2162
|
+
}, S = (I) => {
|
|
2163
|
+
e.disabled || (s.value = !1, o("blur", I));
|
|
2164
|
+
}, A = (I) => {
|
|
2165
|
+
o("input", I);
|
|
2166
|
+
}, G = (I) => {
|
|
2167
|
+
o("beforeinput", I);
|
|
2168
|
+
};
|
|
2169
|
+
X(
|
|
2170
|
+
() => f.value,
|
|
2171
|
+
(I) => {
|
|
2172
|
+
d.value = I.toString();
|
|
2173
|
+
},
|
|
2174
|
+
{ immediate: !0 }
|
|
2175
|
+
), X(
|
|
2176
|
+
() => d.value,
|
|
2177
|
+
(I) => {
|
|
2178
|
+
o("update:modelValue", I.toString());
|
|
2179
|
+
}
|
|
2180
|
+
);
|
|
2181
|
+
const z = { props: e, emit: o, appState: a, isFocus: s, caret: l, content: d, fieldAttrs: p, rawContent: f, fieldContentAttrs: v, fieldInputAttrs: b, fieldMessageAttrs: R, onFocus: P, onBlur: S, onInput: A, onBeforeinput: G, unref: u, computed: c, inject: y, nextTick: re, onMounted: q, ref: _, watch: X, get FIELD_DEFAULT_PROPS() {
|
|
2182
|
+
return wt;
|
|
2183
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
2184
|
+
return E;
|
|
2185
|
+
}, get getFieldAttrs() {
|
|
2186
|
+
return Dt;
|
|
2187
|
+
}, get getFieldContentAttrs() {
|
|
2188
|
+
return It;
|
|
2189
|
+
}, get getFieldInputAttrs() {
|
|
2190
|
+
return xt;
|
|
2191
|
+
}, get getFieldMessageAttrs() {
|
|
2192
|
+
return Ct;
|
|
2193
|
+
} };
|
|
2194
|
+
return Object.defineProperty(z, "__isScriptSetup", { enumerable: !1, value: !0 }), z;
|
|
2195
|
+
}
|
|
2196
|
+
}), da = ["rows"], ua = ["type"];
|
|
2197
|
+
function pa(t, r, n, e, o, a) {
|
|
2198
|
+
return m(), T("div", D(U(e.fieldAttrs)), [
|
|
2199
|
+
H("div", D(U(e.fieldContentAttrs)), [
|
|
2200
|
+
L(t.$slots, "start-input", {}, void 0, !0),
|
|
2201
|
+
L(t.$slots, "input", {}, () => [
|
|
2202
|
+
n.type === "paragraph" ? fe((m(), T("textarea", K({ key: 0 }, e.fieldInputAttrs, {
|
|
2203
|
+
onInput: e.onInput,
|
|
2204
|
+
onFocus: e.onFocus,
|
|
2205
|
+
onBlur: e.onBlur,
|
|
2206
|
+
onBeforeinput: e.onBeforeinput,
|
|
2207
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => e.content = s),
|
|
2208
|
+
rows: n.line
|
|
2209
|
+
}), null, 16, da)), [
|
|
2210
|
+
[bn, e.content]
|
|
2211
|
+
]) : fe((m(), T("input", K({ key: 1 }, e.fieldInputAttrs, {
|
|
2212
|
+
onInput: e.onInput,
|
|
2213
|
+
onFocus: e.onFocus,
|
|
2214
|
+
onBlur: e.onBlur,
|
|
2215
|
+
onBeforeinput: e.onBeforeinput,
|
|
2216
|
+
"onUpdate:modelValue": r[1] || (r[1] = (s) => e.content = s),
|
|
2217
|
+
type: n.type
|
|
2218
|
+
}), null, 16, ua)), [
|
|
2219
|
+
[An, e.content]
|
|
2220
|
+
])
|
|
2221
|
+
], !0),
|
|
2222
|
+
L(t.$slots, "end-input", {}, void 0, !0)
|
|
2223
|
+
], 16),
|
|
2224
|
+
n.message ? (m(), T("div", D(K({ key: 0 }, e.fieldMessageAttrs)), le(n.message), 17)) : ee("", !0),
|
|
2225
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
2226
|
+
], 16);
|
|
2227
|
+
}
|
|
2228
|
+
const Ue = /* @__PURE__ */ V(ca, [["render", pa], ["__scopeId", "data-v-373a73c3"]]), _a = /* @__PURE__ */ B({
|
|
2229
|
+
__name: "segmented-field",
|
|
2230
|
+
props: /* @__PURE__ */ j({
|
|
2231
|
+
modelValue: {},
|
|
2232
|
+
value: {},
|
|
2233
|
+
length: {},
|
|
2234
|
+
variant: {},
|
|
2235
|
+
size: {},
|
|
2236
|
+
disabled: { type: Boolean },
|
|
2237
|
+
readonly: { type: Boolean },
|
|
2238
|
+
type: {},
|
|
2239
|
+
role: {},
|
|
2240
|
+
shape: {},
|
|
2241
|
+
shadow: { type: Boolean },
|
|
2242
|
+
message: {},
|
|
2243
|
+
pattern: {},
|
|
2244
|
+
direction: {}
|
|
2245
|
+
}, {
|
|
2246
|
+
...ur
|
|
2247
|
+
}),
|
|
2248
|
+
emits: ["update:modelValue", "complete", "focus", "blur", "input"],
|
|
2249
|
+
setup(t, { expose: r, emit: n }) {
|
|
2250
|
+
r();
|
|
2251
|
+
const e = t, o = n, a = y(E), s = _([]), l = _([]), d = c(() => {
|
|
2252
|
+
const w = e.modelValue !== void 0 ? e.modelValue : e.value !== void 0 ? e.value : s.value;
|
|
2253
|
+
return Array.from({ length: e.length }, (x, N) => w?.[N] ?? "");
|
|
2254
|
+
}), p = c(() => {
|
|
2255
|
+
const w = d.value.findIndex((x) => !x);
|
|
2256
|
+
return w === -1 ? e.length - 1 : w;
|
|
2257
|
+
}), f = c(() => {
|
|
2258
|
+
const w = e.role || u(a?.role) || "", x = e.shape || u(a?.shape) || "", N = e.direction || u(a?.direction) || "left";
|
|
2259
|
+
return pr({
|
|
2260
|
+
role: w,
|
|
2261
|
+
shape: x,
|
|
2262
|
+
direction: N,
|
|
2263
|
+
variant: e.variant,
|
|
2264
|
+
size: e.size,
|
|
2265
|
+
disabled: e.disabled
|
|
2266
|
+
});
|
|
2267
|
+
}), v = _r(), b = c(() => {
|
|
2268
|
+
const w = e.role || u(a?.role) || "", x = e.shape || u(a?.shape) || "", N = (e.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1;
|
|
2269
|
+
return {
|
|
2270
|
+
variant: e.variant,
|
|
2271
|
+
size: e.size,
|
|
2272
|
+
disabled: e.disabled,
|
|
2273
|
+
readonly: e.readonly,
|
|
2274
|
+
shadow: N,
|
|
2275
|
+
shape: x,
|
|
2276
|
+
role: w,
|
|
2277
|
+
type: e.type,
|
|
2278
|
+
maxLength: 1,
|
|
2279
|
+
autocomplete: "off"
|
|
2280
|
+
};
|
|
2281
|
+
}), R = fr(), P = (w, x) => {
|
|
2282
|
+
if (!w) return "";
|
|
2283
|
+
let N = w.slice(-1);
|
|
2284
|
+
const W = e.pattern?.[x] ?? e.pattern?.[0];
|
|
2285
|
+
return W && !new RegExp(W).test(N) ? "" : N;
|
|
2286
|
+
}, S = (w) => l.value[w]?.$el?.querySelector("input, textarea"), A = async () => {
|
|
2287
|
+
await re();
|
|
2288
|
+
for (let w = 0; w < e.length; w++) {
|
|
2289
|
+
const x = S(w);
|
|
2290
|
+
x && (x.value = d.value[w] ?? "");
|
|
2291
|
+
}
|
|
2292
|
+
}, G = async (w) => {
|
|
2293
|
+
const x = Array.from({ length: e.length }, (N, W) => w[W] ?? "");
|
|
2294
|
+
s.value = x, o("update:modelValue", x), o("input", x), x.every((N) => N) && o("complete", x), await A();
|
|
2295
|
+
}, z = async (w) => {
|
|
2296
|
+
if (e.disabled || e.readonly) return;
|
|
2297
|
+
const x = Math.max(0, Math.min(w, e.length - 1));
|
|
2298
|
+
await re();
|
|
2299
|
+
const N = S(x);
|
|
2300
|
+
N?.focus(), N && "select" in N && N.select();
|
|
2301
|
+
}, I = (w, x) => {
|
|
2302
|
+
const N = [...d.value];
|
|
2303
|
+
N[w] = x, G(N);
|
|
2304
|
+
}, g = (w, x) => {
|
|
2305
|
+
const N = P(x, w);
|
|
2306
|
+
N && (I(w, N), w < e.length - 1 && z(w + 1));
|
|
2307
|
+
}, F = (w, x) => {
|
|
2308
|
+
const N = w.replace(/\s/g, "").split("");
|
|
2309
|
+
if (!N.length) return;
|
|
2310
|
+
const W = [...d.value];
|
|
2311
|
+
let te = x;
|
|
2312
|
+
for (const _e of N) {
|
|
2313
|
+
if (te >= e.length) break;
|
|
2314
|
+
const ge = P(_e, te);
|
|
2315
|
+
ge && (W[te] = ge, te += 1);
|
|
2316
|
+
}
|
|
2317
|
+
G(W), z(Math.min(te, e.length - 1));
|
|
2318
|
+
}, Q = { props: e, emit: o, appState: a, keepValue: s, fields: l, segments: d, firstEmptyIndex: p, wrapperAttrs: f, contentAttrs: v, fieldAttrs: b, messageAttrs: R, normalizeChar: P, getFieldInput: S, syncFieldInputs: A, updateValue: G, focusInput: z, setCell: I, applyChar: g, handlePaste: F, onFieldClick: () => {
|
|
2319
|
+
z(p.value);
|
|
2320
|
+
}, onSegmentFocus: (w, x) => {
|
|
2321
|
+
o("focus", w), S(x)?.select?.();
|
|
2322
|
+
}, onSegmentBeforeinput: (w, x) => {
|
|
2323
|
+
if (e.disabled || e.readonly) return;
|
|
2324
|
+
const { inputType: N } = w;
|
|
2325
|
+
if (N === "insertText" && w.data != null) {
|
|
2326
|
+
w.preventDefault(), w.data.length > 1 ? F(w.data, x) : g(x, w.data);
|
|
2327
|
+
return;
|
|
2328
|
+
}
|
|
2329
|
+
if (N === "insertFromPaste" && w.dataTransfer) {
|
|
2330
|
+
w.preventDefault();
|
|
2331
|
+
const W = w.dataTransfer.getData("text");
|
|
2332
|
+
F(W, x);
|
|
2333
|
+
return;
|
|
2334
|
+
}
|
|
2335
|
+
if (N === "deleteContentBackward") {
|
|
2336
|
+
w.preventDefault();
|
|
2337
|
+
const W = [...d.value];
|
|
2338
|
+
if (W[x]) {
|
|
2339
|
+
W[x] = "", G(W);
|
|
2340
|
+
return;
|
|
2341
|
+
}
|
|
2342
|
+
x > 0 && (W[x - 1] = "", G(W), z(x - 1));
|
|
2343
|
+
}
|
|
2344
|
+
}, onSegmentInput: (w, x) => {
|
|
2345
|
+
if (e.disabled || e.readonly) return;
|
|
2346
|
+
const N = w.target;
|
|
2347
|
+
if (!N) return;
|
|
2348
|
+
const W = N.value, te = d.value[x] ?? "";
|
|
2349
|
+
if (!W) {
|
|
2350
|
+
te || I(x, "");
|
|
2351
|
+
return;
|
|
2352
|
+
}
|
|
2353
|
+
if (W.length > 1) {
|
|
2354
|
+
F(W, x);
|
|
2355
|
+
return;
|
|
2356
|
+
}
|
|
2357
|
+
W !== te && g(x, W);
|
|
2358
|
+
}, unref: u, computed: c, inject: y, nextTick: re, ref: _, get Field() {
|
|
2359
|
+
return Ue;
|
|
2360
|
+
}, get SEGMENTED_FIELD_DEFAULT_PROPS() {
|
|
2361
|
+
return ur;
|
|
2362
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
2363
|
+
return E;
|
|
2364
|
+
}, get getSegmentedFieldContentAttrs() {
|
|
2365
|
+
return _r;
|
|
2366
|
+
}, get getSegmentedFieldMessageAttrs() {
|
|
2367
|
+
return fr;
|
|
2368
|
+
}, get getSegmentedFieldWrapperAttrs() {
|
|
2369
|
+
return pr;
|
|
2370
|
+
} };
|
|
2371
|
+
return Object.defineProperty(Q, "__isScriptSetup", { enumerable: !1, value: !0 }), Q;
|
|
2372
|
+
}
|
|
2373
|
+
});
|
|
2374
|
+
function fa(t, r, n, e, o, a) {
|
|
2375
|
+
return m(), T("div", D(U(e.wrapperAttrs)), [
|
|
2376
|
+
H("div", K(e.contentAttrs, { onPointerup: e.onFieldClick }), [
|
|
2377
|
+
(m(!0), T(ce, null, de(e.props.length, (s, l) => (m(), Z(e.Field, K({ key: l }, { ref_for: !0 }, e.fieldAttrs, {
|
|
2378
|
+
"model-value": e.segments[l],
|
|
2379
|
+
tabindex: l === e.firstEmptyIndex ? 0 : -1,
|
|
2380
|
+
onBeforeinput: (d) => e.onSegmentBeforeinput(d, l),
|
|
2381
|
+
onInput: (d) => e.onSegmentInput(d, l),
|
|
2382
|
+
onFocus: (d) => e.onSegmentFocus(d, l),
|
|
2383
|
+
ref_for: !0,
|
|
2384
|
+
ref: "fields"
|
|
2385
|
+
}), null, 16, ["model-value", "tabindex", "onBeforeinput", "onInput", "onFocus"]))), 128))
|
|
2386
|
+
], 16),
|
|
2387
|
+
n.message ? (m(), T("div", D(K({ key: 0 }, e.messageAttrs)), le(n.message), 17)) : ee("", !0)
|
|
2388
|
+
], 16);
|
|
2389
|
+
}
|
|
2390
|
+
const va = /* @__PURE__ */ V(_a, [["render", fa], ["__scopeId", "data-v-e1be0bb8"]]), ma = /* @__PURE__ */ B({
|
|
2391
|
+
__name: "container",
|
|
2392
|
+
setup(t, { expose: r }) {
|
|
2393
|
+
r();
|
|
2394
|
+
const e = { containerAttrs: ht(), get getContainerAttrs() {
|
|
2395
|
+
return ht;
|
|
2396
|
+
} };
|
|
2397
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
2398
|
+
}
|
|
2399
|
+
});
|
|
2400
|
+
function ga(t, r, n, e, o, a) {
|
|
2401
|
+
return m(), T("div", D(U(e.containerAttrs)), [
|
|
2402
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
2403
|
+
], 16);
|
|
2404
|
+
}
|
|
2405
|
+
const ha = /* @__PURE__ */ V(ma, [["render", ga], ["__scopeId", "data-v-047631ab"]]), ba = /* @__PURE__ */ B({
|
|
2406
|
+
__name: "refresher",
|
|
2407
|
+
emits: ["move", "cancel", "end", "start"],
|
|
2408
|
+
setup(t, { expose: r, emit: n }) {
|
|
2409
|
+
r();
|
|
2410
|
+
const e = n, o = _(!1), a = _();
|
|
2411
|
+
let s, l = !1;
|
|
2412
|
+
const d = c(() => ar()), p = () => {
|
|
2413
|
+
o.value = !1;
|
|
2414
|
+
}, f = () => (o.value = !0, p), v = () => {
|
|
2415
|
+
e("end", { refresh: f });
|
|
2416
|
+
}, b = () => {
|
|
2417
|
+
l = !1, o.value = !1, e("cancel");
|
|
2418
|
+
};
|
|
2419
|
+
X(
|
|
2420
|
+
() => a.value,
|
|
2421
|
+
() => {
|
|
2422
|
+
s && s.destroy(), a.value && (s = ue(
|
|
2423
|
+
a.value,
|
|
2424
|
+
{
|
|
2425
|
+
options: {
|
|
2426
|
+
minMove: 20
|
|
2427
|
+
},
|
|
2428
|
+
beforeEvent() {
|
|
2429
|
+
return l ? !0 : !((a.value?.scrollTop || 0) > 0);
|
|
2430
|
+
},
|
|
2431
|
+
down() {
|
|
2432
|
+
o.value || (l = (a.value?.scrollTop || 0) <= 0, l && e("start"));
|
|
2433
|
+
},
|
|
2434
|
+
move({ deltaY: P, initialDirection: S }) {
|
|
2435
|
+
if (o.value || !l || S != "down") return;
|
|
2436
|
+
const A = P < 0 ? 0 : P;
|
|
2437
|
+
e("move", { refresh: f, offset: A });
|
|
2438
|
+
},
|
|
2439
|
+
up({ initialDirection: P }) {
|
|
2440
|
+
const S = l;
|
|
2441
|
+
if (l = !1, !(o.value || !S)) {
|
|
2442
|
+
if (P != "down") {
|
|
2443
|
+
b();
|
|
2444
|
+
return;
|
|
2445
|
+
}
|
|
2446
|
+
v();
|
|
2447
|
+
}
|
|
2448
|
+
},
|
|
2449
|
+
cancel() {
|
|
2450
|
+
l = !1, !o.value && b();
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
passive: !1
|
|
2455
|
+
}
|
|
2456
|
+
));
|
|
2457
|
+
}
|
|
2458
|
+
), oe(() => {
|
|
2459
|
+
s && s.destroy();
|
|
2460
|
+
});
|
|
2461
|
+
const R = { emit: e, refreshing: o, container: a, get cleanup() {
|
|
2462
|
+
return s;
|
|
2463
|
+
}, set cleanup(P) {
|
|
2464
|
+
s = P;
|
|
2465
|
+
}, get isPulling() {
|
|
2466
|
+
return l;
|
|
2467
|
+
}, set isPulling(P) {
|
|
2468
|
+
l = P;
|
|
2469
|
+
}, containerAttrs: d, close: p, refresh: f, up: v, cancel: b, ref: _, onUnmounted: oe, watch: X, computed: c, get gesture() {
|
|
2470
|
+
return ue;
|
|
2471
|
+
}, get getRefresherAttrs() {
|
|
2472
|
+
return ar;
|
|
2473
|
+
} };
|
|
2474
|
+
return Object.defineProperty(R, "__isScriptSetup", { enumerable: !1, value: !0 }), R;
|
|
2475
|
+
}
|
|
2476
|
+
});
|
|
2477
|
+
function Aa(t, r, n, e, o, a) {
|
|
2478
|
+
return m(), T("div", K(e.containerAttrs, { ref: "container" }), [
|
|
2479
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
2480
|
+
], 16);
|
|
2481
|
+
}
|
|
2482
|
+
const ya = /* @__PURE__ */ V(ba, [["render", Aa], ["__scopeId", "data-v-bfabe45d"]]), Pa = /* @__PURE__ */ B({
|
|
2483
|
+
__name: "route-provider",
|
|
2484
|
+
props: {
|
|
2485
|
+
stack: {}
|
|
2486
|
+
},
|
|
2487
|
+
setup(t, { expose: r }) {
|
|
2488
|
+
r();
|
|
2489
|
+
const n = t, e = c(() => n.stack);
|
|
2490
|
+
ne(De, {
|
|
2491
|
+
stack: e
|
|
2492
|
+
});
|
|
2493
|
+
const o = { props: n, stack: e, provide: ne, computed: c, get ROUTE_PROVIDER_STATE_KEY() {
|
|
2494
|
+
return De;
|
|
2495
|
+
} };
|
|
2496
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
2497
|
+
}
|
|
2498
|
+
});
|
|
2499
|
+
function Ta(t, r, n, e, o, a) {
|
|
2500
|
+
return L(t.$slots, "default");
|
|
2501
|
+
}
|
|
2502
|
+
const Me = /* @__PURE__ */ V(Pa, [["render", Ta]]), Sa = /* @__PURE__ */ B({
|
|
2503
|
+
__name: "route-outlet",
|
|
2504
|
+
props: {
|
|
2505
|
+
component: {}
|
|
2506
|
+
},
|
|
2507
|
+
setup(t, { expose: r }) {
|
|
2508
|
+
r();
|
|
2509
|
+
const n = t, e = _(null), o = async (l) => {
|
|
2510
|
+
if (typeof l != "function") return l;
|
|
2511
|
+
const d = await l();
|
|
2512
|
+
return d?.default ?? d;
|
|
2513
|
+
}, a = async (l) => {
|
|
2514
|
+
if (l == null) return null;
|
|
2515
|
+
const d = typeof l == "object" && l !== null && "default" in l ? l.default : l;
|
|
2516
|
+
return o(d);
|
|
2517
|
+
};
|
|
2518
|
+
q(async () => {
|
|
2519
|
+
const l = await a(n.component);
|
|
2520
|
+
e.value = l ? Ge(l) : null;
|
|
2521
|
+
});
|
|
2522
|
+
const s = { props: n, renderComponent: e, resolveComponent: o, resolveFromProp: a, markRaw: Ge, onMounted: q, ref: _ };
|
|
2523
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
function Ea(t, r, n, e, o, a) {
|
|
2527
|
+
return e.renderComponent ? (m(), Z(yn(e.renderComponent), { key: 0 })) : ee("", !0);
|
|
2528
|
+
}
|
|
2529
|
+
const dn = /* @__PURE__ */ V(Sa, [["render", Ea]]), Le = (t) => t.map((r) => ({
|
|
2530
|
+
...r,
|
|
2531
|
+
stack: Le(r.stack)
|
|
2532
|
+
})), Te = -40, Ra = /* @__PURE__ */ B({
|
|
2533
|
+
__name: "route-navigator",
|
|
2534
|
+
props: /* @__PURE__ */ j({
|
|
2535
|
+
direction: {},
|
|
2536
|
+
variant: {},
|
|
2537
|
+
keepalive: { type: Boolean }
|
|
2538
|
+
}, {
|
|
2539
|
+
...sr
|
|
2540
|
+
}),
|
|
2541
|
+
emits: ["transform"],
|
|
2542
|
+
setup(t, { expose: r, emit: n }) {
|
|
2543
|
+
r();
|
|
2544
|
+
const e = t, o = n, a = y(De), s = Oe(), l = _(), d = _(null), p = Se({
|
|
2545
|
+
back: Te,
|
|
2546
|
+
prepare: 100,
|
|
2547
|
+
active: 0,
|
|
2548
|
+
backdrop: 0,
|
|
2549
|
+
duration: void 0
|
|
2550
|
+
}), f = _([]), v = _(0), b = _(0), R = c(() => {
|
|
2551
|
+
let O = p.duration !== void 0 ? p.duration : p.active > 0 ? "0s" : void 0;
|
|
2552
|
+
return e.variant === "none" && (O = "0s"), ir({
|
|
2553
|
+
direction: e.direction,
|
|
2554
|
+
variant: e.variant,
|
|
2555
|
+
moving: p.active !== 0,
|
|
2556
|
+
transform: p,
|
|
2557
|
+
duration: O
|
|
2558
|
+
});
|
|
2559
|
+
}), P = c(
|
|
2560
|
+
() => cr({ direction: e.direction })
|
|
2561
|
+
), S = c(
|
|
2562
|
+
() => dr({ zIndex: b.value * 2 + 99 })
|
|
2563
|
+
), A = c(() => v.value > 0 ? f.value.at(v.value - 1) ?? null : null), G = (O) => {
|
|
2564
|
+
const $ = Le(O);
|
|
2565
|
+
if (f.value.length === 0) {
|
|
2566
|
+
f.value = $;
|
|
2567
|
+
return;
|
|
2568
|
+
}
|
|
2569
|
+
if (f.value.length === $.length) {
|
|
2570
|
+
const k = f.value.length - 1;
|
|
2571
|
+
f.value[k].stack = $[k].stack;
|
|
2572
|
+
} else if (f.value.length > $.length) {
|
|
2573
|
+
const k = v.value - 1;
|
|
2574
|
+
I(), v.value = k, p.backdrop = 0, o("transform", p), setTimeout(() => {
|
|
2575
|
+
f.value = f.value.slice(0, -1), b.value = k, p.backdrop = 100, o("transform", p);
|
|
2576
|
+
}, 250);
|
|
2577
|
+
} else
|
|
2578
|
+
f.value.push($[$.length - 1]), p.duration = "0s", p.backdrop = 0, o("transform", p), setTimeout(
|
|
2579
|
+
() => {
|
|
2580
|
+
b.value = b.value + 1, p.duration = void 0, o("transform", p);
|
|
2581
|
+
},
|
|
2582
|
+
e.variant === "swipe" ? 10 : 0
|
|
2583
|
+
), setTimeout(
|
|
2584
|
+
() => {
|
|
2585
|
+
p.backdrop = 100, v.value = f.value.length - 1, o("transform", p);
|
|
2586
|
+
},
|
|
2587
|
+
e.variant === "swipe" ? 100 : 0
|
|
2588
|
+
);
|
|
2589
|
+
}, z = () => {
|
|
2590
|
+
v.value <= 0 || !f.value[v.value - 1] || s.back();
|
|
2591
|
+
}, I = () => {
|
|
2592
|
+
p.back = Te, p.prepare = 100, p.active = 0, p.duration = void 0, o("transform", p);
|
|
2593
|
+
}, g = (O) => {
|
|
2594
|
+
const $ = l.value?.offsetWidth ?? 0;
|
|
2595
|
+
let k = 0;
|
|
2596
|
+
e.direction == "left" || e.direction == "right" ? k = Math.abs(O.deltaX) / $ * 100 : k = Math.abs(O.deltaY) / $ * 100, p.back = (100 - k) * Te / 100, p.active = k, p.backdrop = 100 - p.active, p.duration = "0s", o("transform", p);
|
|
2597
|
+
}, F = (O) => {
|
|
2598
|
+
const $ = l.value?.offsetWidth ?? 0;
|
|
2599
|
+
let k = 0;
|
|
2600
|
+
e.direction == "left" || e.direction == "right" ? k = Math.abs(O.deltaX) / $ * 100 : k = Math.abs(O.deltaY) / $ * 100, k >= 60 ? z() : I();
|
|
2601
|
+
};
|
|
2602
|
+
X(
|
|
2603
|
+
() => u(a?.stack),
|
|
2604
|
+
(O) => {
|
|
2605
|
+
G(O);
|
|
2606
|
+
}
|
|
2607
|
+
), q(() => {
|
|
2608
|
+
G(u(a?.stack)), d.value = l.value && ue(
|
|
2609
|
+
l.value,
|
|
2610
|
+
{
|
|
2611
|
+
options: {
|
|
2612
|
+
trackOutsideElement: !0
|
|
2613
|
+
},
|
|
2614
|
+
beforeEvent(O) {
|
|
2615
|
+
return O.target?.closest("input, textarea, select, button, [contenteditable]") || e.variant === "none" || !A.value ? !1 : (O.stopPropagation(), !0);
|
|
2616
|
+
},
|
|
2617
|
+
fast({ initialDirection: O }) {
|
|
2618
|
+
!O || O !== e.direction || z();
|
|
2619
|
+
},
|
|
2620
|
+
move({ deltaX: O, deltaY: $, initialDirection: k, event: Q }) {
|
|
2621
|
+
!k || k !== e.direction || (Q.cancelable && Q.preventDefault(), g({ deltaX: O, deltaY: $ }));
|
|
2622
|
+
},
|
|
2623
|
+
up({ deltaX: O, deltaY: $, initialDirection: k }) {
|
|
2624
|
+
!k || k !== e.direction || F({ deltaX: O, deltaY: $ });
|
|
2625
|
+
},
|
|
2626
|
+
cancel() {
|
|
2627
|
+
I();
|
|
2628
|
+
}
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
element: { passive: !1 },
|
|
2632
|
+
move: { passive: !1 }
|
|
2633
|
+
}
|
|
2634
|
+
);
|
|
2635
|
+
}), oe(() => {
|
|
2636
|
+
d.value && d.value.destroy();
|
|
2637
|
+
});
|
|
2638
|
+
const M = { BACK_LAYER_PEEK_PCT: Te, props: e, emit: o, provider: a, router: s, navigatorRef: l, ges: d, transform: p, stack: f, activeIndex: v, backdropIndex: b, navigatorAttrs: R, componentAttrs: P, backdropAttrs: S, prevPage: A, changeRoute: G, goBack: z, resetTransform: I, move: g, up: F, computed: c, inject: y, onMounted: q, onUnmounted: oe, reactive: Se, ref: _, watch: X, unref: u, get gesture() {
|
|
2639
|
+
return ue;
|
|
2640
|
+
}, get RouteProvider() {
|
|
2641
|
+
return Me;
|
|
2642
|
+
}, get RouteOutlet() {
|
|
2643
|
+
return dn;
|
|
2644
|
+
}, get useRouter() {
|
|
2645
|
+
return Oe;
|
|
2646
|
+
}, get clone() {
|
|
2647
|
+
return Le;
|
|
2648
|
+
}, get ROUTE_NAVIGATOR_DEFAULT_PROPS() {
|
|
2649
|
+
return sr;
|
|
2650
|
+
}, get ROUTE_PROVIDER_STATE_KEY() {
|
|
2651
|
+
return De;
|
|
2652
|
+
}, get getRouteNavigatorAttrs() {
|
|
2653
|
+
return ir;
|
|
2654
|
+
}, get getRouteNavigatorBackdropAttrs() {
|
|
2655
|
+
return dr;
|
|
2656
|
+
}, get getRouteNavigatorComponentAttrs() {
|
|
2657
|
+
return cr;
|
|
2658
|
+
} };
|
|
2659
|
+
return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
|
|
2660
|
+
}
|
|
2661
|
+
}), Oa = ["name"];
|
|
2662
|
+
function ka(t, r, n, e, o, a) {
|
|
2663
|
+
return m(), T("div", K(e.navigatorAttrs, { ref: "navigatorRef" }), [
|
|
2664
|
+
(m(!0), T(ce, null, de(e.stack, (s, l) => (m(), T("div", K({
|
|
2665
|
+
key: s.name
|
|
2666
|
+
}, { ref_for: !0 }, e.componentAttrs, {
|
|
2667
|
+
style: { zIndex: l * 2 + 100 },
|
|
2668
|
+
name: s.name,
|
|
2669
|
+
class: {
|
|
2670
|
+
active: l === e.activeIndex,
|
|
2671
|
+
prepare: l === e.activeIndex + 1,
|
|
2672
|
+
back: l === e.activeIndex - 1
|
|
2673
|
+
}
|
|
2674
|
+
}), [
|
|
2675
|
+
se(e.RouteProvider, {
|
|
2676
|
+
stack: s.stack
|
|
2677
|
+
}, {
|
|
2678
|
+
default: ae(() => [
|
|
2679
|
+
se(e.RouteOutlet, {
|
|
2680
|
+
component: s.component
|
|
2681
|
+
}, null, 8, ["component"])
|
|
2682
|
+
]),
|
|
2683
|
+
_: 2
|
|
2684
|
+
}, 1032, ["stack"])
|
|
2685
|
+
], 16, Oa))), 128)),
|
|
2686
|
+
H("div", D(U(e.backdropAttrs)), null, 16)
|
|
2687
|
+
], 16);
|
|
2688
|
+
}
|
|
2689
|
+
const wa = /* @__PURE__ */ V(Ra, [["render", ka], ["__scopeId", "data-v-c799da5a"]]), Ve = Pn([]), $e = (t, r) => {
|
|
2690
|
+
if (t.length === 0) return r;
|
|
2691
|
+
if (r.length > 1 && r[r.length - 2]?.name === t[0].name && r.pop(), r.length > 0 && r[r.length - 1] && r[r.length - 1].name === t[0].name)
|
|
2692
|
+
t.shift(), r[r.length - 1].stack = $e(t, r[r.length - 1].stack);
|
|
2693
|
+
else {
|
|
2694
|
+
const n = String(t[0].name), e = t[0].components;
|
|
2695
|
+
t.shift(), r.push({
|
|
2696
|
+
name: n,
|
|
2697
|
+
component: e,
|
|
2698
|
+
stack: $e(t, [])
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
return r;
|
|
2702
|
+
}, Zr = () => ({
|
|
2703
|
+
stack: Ve,
|
|
2704
|
+
updateRoutes: (r) => {
|
|
2705
|
+
Ve.value = $e([...r], [...Ve.value]);
|
|
2706
|
+
}
|
|
2707
|
+
}), Da = /* @__PURE__ */ B({
|
|
2708
|
+
__name: "route-wrapper",
|
|
2709
|
+
props: /* @__PURE__ */ j({
|
|
2710
|
+
homeRouteName: {}
|
|
2711
|
+
}, {
|
|
2712
|
+
...lr
|
|
2713
|
+
}),
|
|
2714
|
+
setup(t, { expose: r }) {
|
|
2715
|
+
r();
|
|
2716
|
+
const n = t, { updateRoutes: e, stack: o } = Zr(), a = Ye(), s = Oe();
|
|
2717
|
+
X(
|
|
2718
|
+
() => a.matched,
|
|
2719
|
+
() => {
|
|
2720
|
+
e(a.matched);
|
|
2721
|
+
}
|
|
2722
|
+
), q(() => {
|
|
2723
|
+
const d = n.homeRouteName;
|
|
2724
|
+
if (a.name === d)
|
|
2725
|
+
e(a.matched);
|
|
2726
|
+
else {
|
|
2727
|
+
const p = s.resolve({ name: d });
|
|
2728
|
+
p.matched.length > 0 && e(p.matched), setTimeout(() => {
|
|
2729
|
+
e(a.matched);
|
|
2730
|
+
}, 50);
|
|
2731
|
+
}
|
|
2732
|
+
});
|
|
2733
|
+
const l = { props: n, updateRoutes: e, stack: o, route: a, router: s, onMounted: q, watch: X, get useRouteWrapper() {
|
|
2734
|
+
return Zr;
|
|
2735
|
+
}, get useRouter() {
|
|
2736
|
+
return Oe;
|
|
2737
|
+
}, get useRoute() {
|
|
2738
|
+
return Ye;
|
|
2739
|
+
}, get RouteProvider() {
|
|
2740
|
+
return Me;
|
|
2741
|
+
}, get ROUTE_WRAPPER_DEFAULT_PROPS() {
|
|
2742
|
+
return lr;
|
|
2743
|
+
} };
|
|
2744
|
+
return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
|
|
2745
|
+
}
|
|
2746
|
+
});
|
|
2747
|
+
function Ia(t, r, n, e, o, a) {
|
|
2748
|
+
return m(), Z(e.RouteProvider, { stack: e.stack }, {
|
|
2749
|
+
default: ae(() => [
|
|
2750
|
+
L(t.$slots, "default")
|
|
2751
|
+
]),
|
|
2752
|
+
_: 3
|
|
2753
|
+
}, 8, ["stack"]);
|
|
2754
|
+
}
|
|
2755
|
+
const xa = /* @__PURE__ */ V(Da, [["render", Ia]]), Ca = /* @__PURE__ */ B({
|
|
2756
|
+
__name: "page",
|
|
2757
|
+
setup(t, { expose: r }) {
|
|
2758
|
+
r();
|
|
2759
|
+
const e = { pageAttrs: Xt(), get getPageAttrs() {
|
|
2760
|
+
return Xt;
|
|
2761
|
+
} };
|
|
2762
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
2763
|
+
}
|
|
2764
|
+
});
|
|
2765
|
+
function Fa(t, r, n, e, o, a) {
|
|
2766
|
+
return m(), T("div", D(U(e.pageAttrs)), [
|
|
2767
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
2768
|
+
], 16);
|
|
2769
|
+
}
|
|
2770
|
+
const Ba = /* @__PURE__ */ V(Ca, [["render", Fa], ["__scopeId", "data-v-454bda2b"]]), Va = /* @__PURE__ */ B({
|
|
2771
|
+
__name: "collapse",
|
|
2772
|
+
props: /* @__PURE__ */ j({
|
|
2773
|
+
modelValue: { type: Boolean },
|
|
2774
|
+
duration: {},
|
|
2775
|
+
role: {},
|
|
2776
|
+
disabled: { type: Boolean }
|
|
2777
|
+
}, {
|
|
2778
|
+
..._t
|
|
2779
|
+
}),
|
|
2780
|
+
emits: ["update:modelValue"],
|
|
2781
|
+
setup(t, { expose: r, emit: n }) {
|
|
2782
|
+
r();
|
|
2783
|
+
const e = t, o = n, a = y(E), s = _(null), l = _(0), d = _(!1), p = _(!0), f = c(() => e.role ?? u(a?.role) ?? ""), v = c(
|
|
2784
|
+
() => e.duration !== void 0 ? `${e.duration / 1e3}s` : void 0
|
|
2785
|
+
), b = c(
|
|
2786
|
+
() => ft({
|
|
2787
|
+
role: f.value,
|
|
2788
|
+
open: d.value,
|
|
2789
|
+
disabled: e.disabled
|
|
2790
|
+
})
|
|
2791
|
+
), R = c(
|
|
2792
|
+
() => vt({
|
|
2793
|
+
open: d.value,
|
|
2794
|
+
disabled: e.disabled
|
|
2795
|
+
})
|
|
2796
|
+
), P = c(
|
|
2797
|
+
() => mt({
|
|
2798
|
+
transition: !p.value,
|
|
2799
|
+
duration: v.value,
|
|
2800
|
+
height: d.value ? `${l.value}px` : "0px"
|
|
2801
|
+
})
|
|
2802
|
+
), S = c(() => gt()), A = () => {
|
|
2803
|
+
s.value && (l.value = s.value.scrollHeight);
|
|
2804
|
+
}, G = () => {
|
|
2805
|
+
e.disabled || (d.value = !d.value, o("update:modelValue", d.value));
|
|
2806
|
+
}, z = () => {
|
|
2807
|
+
};
|
|
2808
|
+
X(
|
|
2809
|
+
() => e.modelValue,
|
|
2810
|
+
async (g) => {
|
|
2811
|
+
d.value = g, g && (await re(), A(), p.value = !1);
|
|
2812
|
+
},
|
|
2813
|
+
{ immediate: !0 }
|
|
2814
|
+
), X(
|
|
2815
|
+
() => s.value,
|
|
2816
|
+
(g) => {
|
|
2817
|
+
g && d.value && A();
|
|
2818
|
+
}
|
|
2819
|
+
), X(
|
|
2820
|
+
() => [s.value?.innerHTML, d.value],
|
|
2821
|
+
async () => {
|
|
2822
|
+
d.value && (await re(), A());
|
|
2823
|
+
}
|
|
2824
|
+
), q(async () => {
|
|
2825
|
+
await re(), d.value && A();
|
|
2826
|
+
});
|
|
2827
|
+
const I = { props: e, emit: o, appState: a, contentRef: s, contentHeight: l, isOpen: d, isFirstOpen: p, role: f, durationCss: v, wrapperAttrs: b, triggerAttrs: R, contentAttrs: P, contentInnerClass: S, measureContent: A, toggle: G, onTransitionEnd: z, unref: u, computed: c, inject: y, nextTick: re, onMounted: q, ref: _, watch: X, get COLLAPSE_DEFAULT_PROPS() {
|
|
2828
|
+
return _t;
|
|
2829
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
2830
|
+
return E;
|
|
2831
|
+
}, get getCollapseAttrs() {
|
|
2832
|
+
return ft;
|
|
2833
|
+
}, get getCollapseContentAttrs() {
|
|
2834
|
+
return mt;
|
|
2835
|
+
}, get getCollapseContentInnerClass() {
|
|
2836
|
+
return gt;
|
|
2837
|
+
}, get getCollapseTriggerAttrs() {
|
|
2838
|
+
return vt;
|
|
2839
|
+
} };
|
|
2840
|
+
return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
|
|
2841
|
+
}
|
|
2842
|
+
}), La = ["onKeydown"];
|
|
2843
|
+
function $a(t, r, n, e, o, a) {
|
|
2844
|
+
return m(), T("div", D(U(e.wrapperAttrs)), [
|
|
2845
|
+
H("div", K(e.triggerAttrs, {
|
|
2846
|
+
role: "button",
|
|
2847
|
+
tabindex: "0",
|
|
2848
|
+
onPointerup: e.toggle,
|
|
2849
|
+
onKeydown: Tn(rn(e.toggle, ["prevent"]), ["enter", "space"])
|
|
2850
|
+
}), [
|
|
2851
|
+
L(t.$slots, "trigger", {}, void 0, !0)
|
|
2852
|
+
], 16, La),
|
|
2853
|
+
H("div", K(e.contentAttrs, { onTransitionend: e.onTransitionEnd }), [
|
|
2854
|
+
H("div", {
|
|
2855
|
+
ref: "contentRef",
|
|
2856
|
+
class: tn(e.contentInnerClass)
|
|
2857
|
+
}, [
|
|
2858
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
2859
|
+
], 2)
|
|
2860
|
+
], 16)
|
|
2861
|
+
], 16);
|
|
2862
|
+
}
|
|
2863
|
+
const za = /* @__PURE__ */ V(Va, [["render", $a], ["__scopeId", "data-v-ec3e593e"]]), Ua = /* @__PURE__ */ B({
|
|
2864
|
+
__name: "dropdown",
|
|
2865
|
+
props: /* @__PURE__ */ j({
|
|
2866
|
+
modelValue: { type: Boolean },
|
|
2867
|
+
disabled: { type: Boolean },
|
|
2868
|
+
placement: {},
|
|
2869
|
+
role: {},
|
|
2870
|
+
shadow: { type: Boolean },
|
|
2871
|
+
shape: {},
|
|
2872
|
+
direction: {},
|
|
2873
|
+
size: {}
|
|
2874
|
+
}, {
|
|
2875
|
+
...Rt
|
|
2876
|
+
}),
|
|
2877
|
+
emits: ["update:modelValue", "open", "close"],
|
|
2878
|
+
setup(t, { expose: r, emit: n }) {
|
|
2879
|
+
r();
|
|
2880
|
+
const e = t, o = n, a = y(E), s = _(null), l = _(!1), d = c(() => {
|
|
2881
|
+
const S = e.role ?? u(a?.role) ?? "", A = e.shadow ?? u(a?.shadow) ?? !1, G = e.shape ?? u(a?.shape) ?? "";
|
|
2882
|
+
return Ot({
|
|
2883
|
+
role: S,
|
|
2884
|
+
shape: G,
|
|
2885
|
+
size: e.size,
|
|
2886
|
+
open: l.value,
|
|
2887
|
+
disabled: e.disabled,
|
|
2888
|
+
shadow: A
|
|
2889
|
+
});
|
|
2890
|
+
}), p = c(() => kt({ placement: e.placement })), f = () => {
|
|
2891
|
+
e.disabled || (l.value = !l.value, o("update:modelValue", l.value));
|
|
2892
|
+
}, v = () => {
|
|
2893
|
+
l.value && (l.value = !1, o("update:modelValue", !1));
|
|
2894
|
+
}, b = (S) => {
|
|
2895
|
+
if (!l.value) return;
|
|
2896
|
+
const A = s.value;
|
|
2897
|
+
A && !A.contains(S.target) && v();
|
|
2898
|
+
}, R = (S) => {
|
|
2899
|
+
S.key === "Escape" && l.value && (S.preventDefault(), v());
|
|
2900
|
+
};
|
|
2901
|
+
X(
|
|
2902
|
+
() => e.modelValue,
|
|
2903
|
+
(S) => {
|
|
2904
|
+
l.value = S;
|
|
2905
|
+
},
|
|
2906
|
+
{ immediate: !0 }
|
|
2907
|
+
), X(l, (S, A) => {
|
|
2908
|
+
S && !A && o("open"), !S && A && o("close");
|
|
2909
|
+
}), q(() => {
|
|
2910
|
+
document.addEventListener("pointerdown", b, !0), document.addEventListener("keydown", R, !0);
|
|
2911
|
+
}), oe(() => {
|
|
2912
|
+
document.removeEventListener("pointerdown", b, !0), document.removeEventListener("keydown", R, !0);
|
|
2913
|
+
});
|
|
2914
|
+
const P = { props: e, emit: o, appState: a, rootRef: s, isOpen: l, wrapperAttrs: d, panelAttrs: p, toggle: f, close: v, onDocPointerDown: b, onDocKeydown: R, unref: u, computed: c, inject: y, onMounted: q, onUnmounted: oe, ref: _, watch: X, get DROPDOWN_DEFAULT_PROPS() {
|
|
2915
|
+
return Rt;
|
|
2916
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
2917
|
+
return E;
|
|
2918
|
+
}, get getDropdownAttrs() {
|
|
2919
|
+
return Ot;
|
|
2920
|
+
}, get getDropdownPanelAttrs() {
|
|
2921
|
+
return kt;
|
|
2922
|
+
} };
|
|
2923
|
+
return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
|
|
2924
|
+
}
|
|
2925
|
+
});
|
|
2926
|
+
function Ma(t, r, n, e, o, a) {
|
|
2927
|
+
return m(), T("div", K({ ref: "rootRef" }, e.wrapperAttrs), [
|
|
2928
|
+
L(t.$slots, "trigger", {
|
|
2929
|
+
toggle: e.toggle,
|
|
2930
|
+
isOpen: e.isOpen
|
|
2931
|
+
}, void 0, !0),
|
|
2932
|
+
fe(H("div", D(U(e.panelAttrs)), [
|
|
2933
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
2934
|
+
], 16), [
|
|
2935
|
+
[Ee, e.isOpen]
|
|
2936
|
+
])
|
|
2937
|
+
], 16);
|
|
2938
|
+
}
|
|
2939
|
+
const un = /* @__PURE__ */ V(Ua, [["render", Ma], ["__scopeId", "data-v-c632efac"]]), Ka = /* @__PURE__ */ B({
|
|
2940
|
+
__name: "select",
|
|
2941
|
+
props: /* @__PURE__ */ j({
|
|
2942
|
+
modelValue: {},
|
|
2943
|
+
name: {},
|
|
2944
|
+
variant: {},
|
|
2945
|
+
role: {},
|
|
2946
|
+
shape: {},
|
|
2947
|
+
size: {},
|
|
2948
|
+
shadow: { type: Boolean },
|
|
2949
|
+
direction: {},
|
|
2950
|
+
id: {},
|
|
2951
|
+
value: {},
|
|
2952
|
+
placeholder: {},
|
|
2953
|
+
disabled: { type: Boolean },
|
|
2954
|
+
autocomplete: {},
|
|
2955
|
+
tabindex: {},
|
|
2956
|
+
line: {},
|
|
2957
|
+
maxLine: {},
|
|
2958
|
+
message: {},
|
|
2959
|
+
options: {}
|
|
2960
|
+
}, {
|
|
2961
|
+
...vr
|
|
2962
|
+
}),
|
|
2963
|
+
emits: ["update:modelValue", "select"],
|
|
2964
|
+
setup(t, { expose: r, emit: n }) {
|
|
2965
|
+
r();
|
|
2966
|
+
const e = t, o = y(E), a = n, s = _(!1), l = c(() => e.role || u(o?.role) || ""), d = c(() => e.direction || u(o?.direction) || "left"), p = c(() => e.shadow || u(o?.shadow) || !1), f = c(() => e.shape || u(o?.shape) || ""), v = c(
|
|
2967
|
+
() => mr({
|
|
2968
|
+
role: l.value,
|
|
2969
|
+
direction: d.value,
|
|
2970
|
+
size: e.size,
|
|
2971
|
+
disabled: e.disabled
|
|
2972
|
+
})
|
|
2973
|
+
), b = c(() => ({
|
|
2974
|
+
role: l.value,
|
|
2975
|
+
direction: d.value,
|
|
2976
|
+
shadow: p.value,
|
|
2977
|
+
shape: f.value,
|
|
2978
|
+
disabled: e.disabled
|
|
2979
|
+
})), R = c(() => {
|
|
2980
|
+
const I = e.modelValue || e.value;
|
|
2981
|
+
let g = [];
|
|
2982
|
+
return I && (g = typeof I == "string" ? [I] : I), {
|
|
2983
|
+
modelValue: e.options.filter((M) => (g || []).includes(M.value)).map((M) => M.label ?? M.value).join(","),
|
|
2984
|
+
size: e.size,
|
|
2985
|
+
variant: e.variant,
|
|
2986
|
+
placeholder: e.placeholder,
|
|
2987
|
+
direction: d.value,
|
|
2988
|
+
role: l.value,
|
|
2989
|
+
shape: f.value,
|
|
2990
|
+
readonly: !0,
|
|
2991
|
+
disabled: e.disabled,
|
|
2992
|
+
shadow: p.value
|
|
2993
|
+
};
|
|
2994
|
+
}), P = c(() => gr()), S = c(() => hr()), A = c(() => br()), z = { props: e, appState: o, emit: a, visible: s, role: l, direction: d, shadow: p, shape: f, selectAttrs: v, dropdownAttrs: b, fieldAttrs: R, selectIconAttrs: P, selectOptionAttrs: S, selectMessageAttrs: A, pickOption: (I) => {
|
|
2995
|
+
I.disabled || I.value === void 0 || (a("update:modelValue", I.value), a("select", I), s.value = !1);
|
|
2996
|
+
}, unref: u, computed: c, inject: y, ref: _, get Field() {
|
|
2997
|
+
return Ue;
|
|
2998
|
+
}, get Dropdown() {
|
|
2999
|
+
return un;
|
|
3000
|
+
}, get SELECT_DEFAULT_PROPS() {
|
|
3001
|
+
return vr;
|
|
3002
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
3003
|
+
return E;
|
|
3004
|
+
}, get getSelectAttrs() {
|
|
3005
|
+
return mr;
|
|
3006
|
+
}, get getSelectIconAttrs() {
|
|
3007
|
+
return gr;
|
|
3008
|
+
}, get getSelectMessageAttrs() {
|
|
3009
|
+
return br;
|
|
3010
|
+
}, get getSelectOptionAttrs() {
|
|
3011
|
+
return hr;
|
|
3012
|
+
} };
|
|
3013
|
+
return Object.defineProperty(z, "__isScriptSetup", { enumerable: !1, value: !0 }), z;
|
|
3014
|
+
}
|
|
3015
|
+
}), Na = ["disabled", "onPointerup"];
|
|
3016
|
+
function ja(t, r, n, e, o, a) {
|
|
3017
|
+
return m(), T("div", D(U(e.selectAttrs)), [
|
|
3018
|
+
se(e.Dropdown, K(e.dropdownAttrs, {
|
|
3019
|
+
modelValue: e.visible,
|
|
3020
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => e.visible = s)
|
|
3021
|
+
}), {
|
|
3022
|
+
trigger: ae(({ toggle: s, isOpen: l }) => [
|
|
3023
|
+
se(e.Field, K({
|
|
3024
|
+
role: e.role,
|
|
3025
|
+
variant: "outline",
|
|
3026
|
+
onPointerup: s
|
|
3027
|
+
}, e.fieldAttrs, {
|
|
3028
|
+
class: { focus: l }
|
|
3029
|
+
}), {
|
|
3030
|
+
"end-input": ae(() => [
|
|
3031
|
+
H("span", K(e.selectIconAttrs, {
|
|
3032
|
+
class: { open: l }
|
|
3033
|
+
}), null, 16)
|
|
3034
|
+
]),
|
|
3035
|
+
_: 2
|
|
3036
|
+
}, 1040, ["role", "onPointerup", "class"])
|
|
3037
|
+
]),
|
|
3038
|
+
default: ae(() => [
|
|
3039
|
+
(m(!0), T(ce, null, de(n.options, (s) => (m(), T("button", K({
|
|
3040
|
+
key: s.value,
|
|
3041
|
+
type: "button",
|
|
3042
|
+
disabled: s.disabled
|
|
3043
|
+
}, { ref_for: !0 }, e.selectOptionAttrs, {
|
|
3044
|
+
onPointerup: (l) => e.pickOption(s)
|
|
3045
|
+
}), le(s.label), 17, Na))), 128))
|
|
3046
|
+
]),
|
|
3047
|
+
_: 1
|
|
3048
|
+
}, 16, ["modelValue"]),
|
|
3049
|
+
n.message ? (m(), T("div", D(K({ key: 0 }, e.selectMessageAttrs)), le(n.message), 17)) : ee("", !0)
|
|
3050
|
+
], 16);
|
|
3051
|
+
}
|
|
3052
|
+
const Ga = /* @__PURE__ */ V(Ka, [["render", ja], ["__scopeId", "data-v-1db077aa"]]), Ya = /* @__PURE__ */ B({
|
|
3053
|
+
__name: "slide-range",
|
|
3054
|
+
props: /* @__PURE__ */ j({
|
|
3055
|
+
modelValue: {},
|
|
3056
|
+
min: {},
|
|
3057
|
+
max: {},
|
|
3058
|
+
step: {},
|
|
3059
|
+
unit: {},
|
|
3060
|
+
disabled: { type: Boolean },
|
|
3061
|
+
readonly: { type: Boolean },
|
|
3062
|
+
role: {},
|
|
3063
|
+
shape: {}
|
|
3064
|
+
}, {
|
|
3065
|
+
...Pr
|
|
3066
|
+
}),
|
|
3067
|
+
emits: ["update:modelValue", "change"],
|
|
3068
|
+
setup(t, { expose: r, emit: n }) {
|
|
3069
|
+
r();
|
|
3070
|
+
const e = t, o = n, a = y(E), s = _(null), l = _(null), d = _(!1);
|
|
3071
|
+
let p, f = null, v = 0, b = !1;
|
|
3072
|
+
const R = (h) => {
|
|
3073
|
+
h && h.stopPropagation();
|
|
3074
|
+
}, P = (h) => h === "left" || h === "right", S = c(() => {
|
|
3075
|
+
if (typeof e.modelValue == "number") return e.modelValue;
|
|
3076
|
+
if (typeof e.modelValue != "string") return e.min;
|
|
3077
|
+
const h = Number.parseFloat(e.modelValue);
|
|
3078
|
+
return Number.isNaN(h) ? e.min : h;
|
|
3079
|
+
}), A = c(() => {
|
|
3080
|
+
const h = e.max - e.min;
|
|
3081
|
+
if (h <= 0) return 0;
|
|
3082
|
+
const Y = (S.value - e.min) / h * 100;
|
|
3083
|
+
return Math.max(0, Math.min(100, Math.round(Y)));
|
|
3084
|
+
}), G = c(() => {
|
|
3085
|
+
const { min: h, max: Y, step: J } = e;
|
|
3086
|
+
if (J <= 0 || Y < h) return [h, Y];
|
|
3087
|
+
const ie = [];
|
|
3088
|
+
for (let pe = h; pe <= Y; pe += J)
|
|
3089
|
+
ie.push(pe);
|
|
3090
|
+
return ie.at(-1) !== Y && ie.push(Y), ie;
|
|
3091
|
+
}), z = c(() => {
|
|
3092
|
+
const h = x(A.value);
|
|
3093
|
+
return W(h);
|
|
3094
|
+
}), I = c(() => {
|
|
3095
|
+
const h = e.role || u(a?.role) || "", Y = e.shape || u(a?.shape) || "";
|
|
3096
|
+
return Tr({
|
|
3097
|
+
role: h,
|
|
3098
|
+
shape: Y,
|
|
3099
|
+
disabled: e.disabled,
|
|
3100
|
+
readonly: e.readonly
|
|
3101
|
+
});
|
|
3102
|
+
}), g = Sr(), F = Er(), M = Rr(), O = c(() => Or({ percent: A.value })), $ = c(() => kr({ percent: A.value })), k = wr(), Q = Dr(), w = (h) => {
|
|
3103
|
+
const Y = N(h);
|
|
3104
|
+
return Ir({
|
|
3105
|
+
active: A.value > Y,
|
|
3106
|
+
percent: Y
|
|
3107
|
+
});
|
|
3108
|
+
}, x = (h) => {
|
|
3109
|
+
const { min: Y, max: J } = e;
|
|
3110
|
+
return Math.round(Y + (J - Y) * (h / 100));
|
|
3111
|
+
}, N = (h) => {
|
|
3112
|
+
const { min: Y, max: J } = e;
|
|
3113
|
+
if (J <= Y) return 0;
|
|
3114
|
+
const ie = (h - Y) / (J - Y) * 100;
|
|
3115
|
+
return Math.max(0, Math.min(100, ie));
|
|
3116
|
+
}, W = (h) => h === 0 ? "" : `${h}${e.unit || ""}`, te = () => {
|
|
3117
|
+
p && clearTimeout(p), d.value = !0, p = setTimeout(() => {
|
|
3118
|
+
d.value = !1;
|
|
3119
|
+
}, 300);
|
|
3120
|
+
}, _e = (h) => {
|
|
3121
|
+
if (e.disabled || e.readonly) return;
|
|
3122
|
+
const Y = x(h), J = W(Y);
|
|
3123
|
+
J !== e.modelValue && (o("update:modelValue", J), o("change", J));
|
|
3124
|
+
}, ge = (h, Y) => {
|
|
3125
|
+
R(Y);
|
|
3126
|
+
const J = N(h);
|
|
3127
|
+
_e(J), te();
|
|
3128
|
+
}, _n = (h) => {
|
|
3129
|
+
e.disabled || e.readonly || R(h);
|
|
3130
|
+
}, fn = (h) => {
|
|
3131
|
+
e.disabled || e.readonly || R(h);
|
|
3132
|
+
}, Ne = (h) => "changedTouches" in h && h.changedTouches.length > 0 ? h.changedTouches[0].clientX : h.clientX, vn = (h) => {
|
|
3133
|
+
if (e.disabled || e.readonly || !l.value) return;
|
|
3134
|
+
R(h);
|
|
3135
|
+
const Y = l.value.offsetWidth, J = l.value.getBoundingClientRect(), pe = (Ne(h) - J.left) / Y * 100;
|
|
3136
|
+
_e(Math.max(0, Math.min(100, pe))), te();
|
|
3137
|
+
};
|
|
3138
|
+
q(() => {
|
|
3139
|
+
!s.value || !l.value || (f = ue(
|
|
3140
|
+
s.value,
|
|
3141
|
+
{
|
|
3142
|
+
options: { trackOutsideElement: !0 },
|
|
3143
|
+
beforeEvent(h) {
|
|
3144
|
+
return !(e.disabled || e.readonly);
|
|
3145
|
+
},
|
|
3146
|
+
afterEvent(h) {
|
|
3147
|
+
b && R(h);
|
|
3148
|
+
},
|
|
3149
|
+
down({ event: h }) {
|
|
3150
|
+
e.disabled || e.readonly || (v = A.value, b = !1, R(h));
|
|
3151
|
+
},
|
|
3152
|
+
up({ event: h }) {
|
|
3153
|
+
b = !1, d.value = !1, R(h);
|
|
3154
|
+
},
|
|
3155
|
+
cancel(h) {
|
|
3156
|
+
b = !1, d.value = !1, R(h);
|
|
3157
|
+
},
|
|
3158
|
+
move({
|
|
3159
|
+
initialDirection: h,
|
|
3160
|
+
deltaX: Y,
|
|
3161
|
+
event: J
|
|
3162
|
+
}) {
|
|
3163
|
+
if (e.disabled || e.readonly || !P(h) || !l.value) return;
|
|
3164
|
+
b = !0, R(J);
|
|
3165
|
+
const ie = l.value.offsetWidth, pe = Y / ie * 100, mn = Math.max(0, Math.min(100, Math.round(v + pe)));
|
|
3166
|
+
_e(mn), p && clearTimeout(p), d.value = !0;
|
|
3167
|
+
}
|
|
3168
|
+
},
|
|
3169
|
+
{ passive: !1, capture: !0 }
|
|
3170
|
+
));
|
|
3171
|
+
}), oe(() => {
|
|
3172
|
+
p && clearTimeout(p), f?.destroy();
|
|
3173
|
+
});
|
|
3174
|
+
const je = { props: e, emit: o, appState: a, point: s, container: l, isShowTooltip: d, get tooltipTimeout() {
|
|
3175
|
+
return p;
|
|
3176
|
+
}, set tooltipTimeout(h) {
|
|
3177
|
+
p = h;
|
|
3178
|
+
}, get gestureCleanup() {
|
|
3179
|
+
return f;
|
|
3180
|
+
}, set gestureCleanup(h) {
|
|
3181
|
+
f = h;
|
|
3182
|
+
}, get dragStartPercent() {
|
|
3183
|
+
return v;
|
|
3184
|
+
}, set dragStartPercent(h) {
|
|
3185
|
+
v = h;
|
|
3186
|
+
}, get isHorizontalDrag() {
|
|
3187
|
+
return b;
|
|
3188
|
+
}, set isHorizontalDrag(h) {
|
|
3189
|
+
b = h;
|
|
3190
|
+
}, suppressPointerEvent: R, isHorizontalDirection: P, normalizedValue: S, percent: A, ranges: G, displayValue: z, slideRangeAttrs: I, trackContainerAttrs: g, trackBodyAttrs: F, trackBackAttrs: M, trackFrontAttrs: O, thumbAttrs: $, thumbInnerAttrs: k, tooltipAttrs: Q, nodeAttrs: w, getValueFromPercent: x, getPercentFromValue: N, formatValue: W, showTooltipTemporarily: te, emitValueFromPercent: _e, onNodeSelect: ge, onTrackPointerDown: _n, onThumbPointerDown: fn, getClientX: Ne, onClickPath: vn, get gesture() {
|
|
3191
|
+
return ue;
|
|
3192
|
+
}, computed: c, inject: y, onMounted: q, onUnmounted: oe, ref: _, unref: u, get SLIDE_RANGE_DEFAULT_PROPS() {
|
|
3193
|
+
return Pr;
|
|
3194
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
3195
|
+
return E;
|
|
3196
|
+
}, get getSlideRangeAttrs() {
|
|
3197
|
+
return Tr;
|
|
3198
|
+
}, get getSlideRangeNodeAttrs() {
|
|
3199
|
+
return Ir;
|
|
3200
|
+
}, get getSlideRangeThumbAttrs() {
|
|
3201
|
+
return kr;
|
|
3202
|
+
}, get getSlideRangeThumbInnerAttrs() {
|
|
3203
|
+
return wr;
|
|
3204
|
+
}, get getSlideRangeTooltipAttrs() {
|
|
3205
|
+
return Dr;
|
|
3206
|
+
}, get getSlideRangeTrackBackAttrs() {
|
|
3207
|
+
return Rr;
|
|
3208
|
+
}, get getSlideRangeTrackBodyAttrs() {
|
|
3209
|
+
return Er;
|
|
3210
|
+
}, get getSlideRangeTrackContainerAttrs() {
|
|
3211
|
+
return Sr;
|
|
3212
|
+
}, get getSlideRangeTrackFrontAttrs() {
|
|
3213
|
+
return Or;
|
|
3214
|
+
} };
|
|
3215
|
+
return Object.defineProperty(je, "__isScriptSetup", { enumerable: !1, value: !0 }), je;
|
|
3216
|
+
}
|
|
3217
|
+
}), Wa = ["onPointerup"];
|
|
3218
|
+
function Ha(t, r, n, e, o, a) {
|
|
3219
|
+
return m(), T("div", D(U(e.slideRangeAttrs)), [
|
|
3220
|
+
H("div", K(e.trackContainerAttrs, { ref: "container" }), [
|
|
3221
|
+
H("div", K(e.trackBodyAttrs, {
|
|
3222
|
+
onPointerdown: e.onTrackPointerDown,
|
|
3223
|
+
onPointerup: e.onClickPath
|
|
3224
|
+
}), [
|
|
3225
|
+
H("div", D(U(e.trackBackAttrs)), null, 16),
|
|
3226
|
+
H("div", D(U(e.trackFrontAttrs)), null, 16),
|
|
3227
|
+
(m(!0), T(ce, null, de(e.ranges, (s) => (m(), T("div", K({ key: s }, { ref_for: !0 }, e.nodeAttrs(s), {
|
|
3228
|
+
onPointerdown: e.onTrackPointerDown,
|
|
3229
|
+
onPointerup: (l) => e.onNodeSelect(s, l)
|
|
3230
|
+
}), null, 16, Wa))), 128))
|
|
3231
|
+
], 16),
|
|
3232
|
+
H("div", K(e.thumbAttrs, {
|
|
3233
|
+
ref: "point",
|
|
3234
|
+
onPointerdown: rn(e.onThumbPointerDown, ["stop", "prevent"])
|
|
3235
|
+
}), [
|
|
3236
|
+
H("div", D(U(e.thumbInnerAttrs)), null, 16),
|
|
3237
|
+
e.percent > 0 && e.isShowTooltip ? (m(), T("span", D(K({ key: 0 }, e.tooltipAttrs)), le(e.displayValue), 17)) : ee("", !0)
|
|
3238
|
+
], 16)
|
|
3239
|
+
], 16)
|
|
3240
|
+
], 16);
|
|
3241
|
+
}
|
|
3242
|
+
const Xa = /* @__PURE__ */ V(Ya, [["render", Ha], ["__scopeId", "data-v-0b75c2d3"]]), qa = /* @__PURE__ */ B({
|
|
3243
|
+
__name: "tag",
|
|
3244
|
+
props: /* @__PURE__ */ j({
|
|
3245
|
+
role: {},
|
|
3246
|
+
size: {},
|
|
3247
|
+
shape: {},
|
|
3248
|
+
variant: {}
|
|
3249
|
+
}, {
|
|
3250
|
+
...Kr
|
|
3251
|
+
}),
|
|
3252
|
+
setup(t, { expose: r }) {
|
|
3253
|
+
r();
|
|
3254
|
+
const n = t, e = y(E), o = c(() => {
|
|
3255
|
+
const s = n.shape || u(e?.shape) || "", l = n.role || u(e?.role) || "", d = l ? `${l}-${n.variant}` : "";
|
|
3256
|
+
return Nr({ role: d, shape: s, size: n.size });
|
|
3257
|
+
}), a = { props: n, appState: e, tagAttrs: o, unref: u, computed: c, inject: y, get TAG_DEFAULT_PROPS() {
|
|
3258
|
+
return Kr;
|
|
3259
|
+
}, get APP_PROVIDER_STATE_KEY() {
|
|
3260
|
+
return E;
|
|
3261
|
+
}, get getTagAttrs() {
|
|
3262
|
+
return Nr;
|
|
3263
|
+
} };
|
|
3264
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
3265
|
+
}
|
|
3266
|
+
});
|
|
3267
|
+
function Ja(t, r, n, e, o, a) {
|
|
3268
|
+
return m(), T("span", D(U(e.tagAttrs)), [
|
|
3269
|
+
L(t.$slots, "default", {}, void 0, !0)
|
|
3270
|
+
], 16);
|
|
3271
|
+
}
|
|
3272
|
+
const Qa = /* @__PURE__ */ V(qa, [["render", Ja], ["__scopeId", "data-v-7c87c581"]]), Ke = _({}), pn = "toife";
|
|
3273
|
+
class Za {
|
|
3274
|
+
/**
|
|
3275
|
+
* Subscribe options
|
|
3276
|
+
*/
|
|
3277
|
+
options;
|
|
3278
|
+
app;
|
|
3279
|
+
/**
|
|
3280
|
+
* Constructor
|
|
3281
|
+
*/
|
|
3282
|
+
constructor(r, n) {
|
|
3283
|
+
this.options = {
|
|
3284
|
+
name: n?.name || pn,
|
|
3285
|
+
prefix: n?.prefix || "t-"
|
|
3286
|
+
}, this.app = r;
|
|
3287
|
+
}
|
|
3288
|
+
/**
|
|
3289
|
+
* Subscribe components
|
|
3290
|
+
*/
|
|
3291
|
+
subscribeAll() {
|
|
3292
|
+
const r = this.options.prefix;
|
|
3293
|
+
this.app.component(r + "app", Yn), this.app.component(r + "action", sn), this.app.component(r + "avatar", ta), this.app.component(r + "button", ze), this.app.component(r + "cable", _o), this.app.component(r + "card", No), this.app.component(r + "card-body", Yo), this.app.component(r + "card-header", Xo), this.app.component(r + "card-footer", Qo), this.app.component(r + "checkbox", Co), this.app.component(r + "radio", Lo), this.app.component(r + "radio-group", Uo), this.app.component(r + "collapse", za), this.app.component(r + "container", ha), this.app.component(r + "decision-modal", ln), this.app.component(r + "divider", oa), this.app.component(r + "dropdown", un), this.app.component(r + "field", Ue), this.app.component(r + "flex", no), this.app.component(r + "flex-item", co), this.app.component(r + "form-group", an), this.app.component(r + "gesture-indicator", cn), this.app.component(r + "grid", eo), this.app.component(r + "grid-item", so), this.app.component(r + "image", ia), this.app.component(r + "modal", Jn), this.app.component(r + "page", Ba), this.app.component(r + "present", xe), this.app.component(r + "refresher", ya), this.app.component(r + "route-navigator", wa), this.app.component(r + "route-wrapper", xa), this.app.component(r + "route-provider", Me), this.app.component(r + "route-outlet", dn), this.app.component(r + "segmented-field", va), this.app.component(r + "select", Ga), this.app.component(r + "slide-range", Xa), this.app.component(r + "skeleton", bo), this.app.component(r + "switch", wo), this.app.component(r + "tag", Qa), this.app.component(r + "tab", Eo), this.app.component(r + "tabs", Po), this.app.component(r + "toast", on), this.app.component(r + "toast-content", nn), this.app.component(r + "toolbar", mo);
|
|
3294
|
+
}
|
|
3295
|
+
/**
|
|
3296
|
+
* Subscribe a component
|
|
3297
|
+
*/
|
|
3298
|
+
subscribe(r, n) {
|
|
3299
|
+
this.app.component(this.options.prefix + r) || this.app.component(this.options.prefix + r, n);
|
|
3300
|
+
}
|
|
3301
|
+
/**
|
|
3302
|
+
* Prevent default behavior
|
|
3303
|
+
*/
|
|
3304
|
+
preventDefault() {
|
|
3305
|
+
On();
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
const os = (t, r) => {
|
|
3309
|
+
const n = new Za(t, r);
|
|
3310
|
+
return Ke.value[n.options.name] = n, n;
|
|
3311
|
+
}, as = (t = pn) => Ke.value[t] || null, ss = () => Ke.value;
|
|
3312
|
+
export {
|
|
3313
|
+
He as ACTION_DEFAULT_PROPS,
|
|
3314
|
+
qe as APP_DEFAULT_PROPS,
|
|
3315
|
+
E as APP_PROVIDER_STATE_KEY,
|
|
3316
|
+
Qe as AVATAR_DEFAULT_PROPS,
|
|
3317
|
+
sn as Action,
|
|
3318
|
+
Yn as App,
|
|
3319
|
+
ta as Avatar,
|
|
3320
|
+
et as BUTTON_DEFAULT_PROPS,
|
|
3321
|
+
ze as Button,
|
|
3322
|
+
nt as CABLE_DEFAULT_PROPS,
|
|
3323
|
+
ke as CABLE_PROVIDER_STATE_KEY,
|
|
3324
|
+
at as CARD_DEFAULT_PROPS,
|
|
3325
|
+
ve as CARD_PROVIDER_STATE_KEY,
|
|
3326
|
+
dt as CHECKBOX_DEFAULT_PROPS,
|
|
3327
|
+
_t as COLLAPSE_DEFAULT_PROPS,
|
|
3328
|
+
_o as Cable,
|
|
3329
|
+
No as Card,
|
|
3330
|
+
Yo as CardBody,
|
|
3331
|
+
Qo as CardFooter,
|
|
3332
|
+
Xo as CardHeader,
|
|
3333
|
+
Co as Checkbox,
|
|
3334
|
+
za as Collapse,
|
|
3335
|
+
ha as Container,
|
|
3336
|
+
bt as DECISION_MODAL_DEFAULT_PROPS,
|
|
3337
|
+
St as DIVIDER_DEFAULT_PROPS,
|
|
3338
|
+
Rt as DROPDOWN_DEFAULT_PROPS,
|
|
3339
|
+
ln as DecisionModal,
|
|
3340
|
+
oa as Divider,
|
|
3341
|
+
un as Dropdown,
|
|
3342
|
+
wt as FIELD_DEFAULT_PROPS,
|
|
3343
|
+
zt as FLEX_DEFAULT_PROPS,
|
|
3344
|
+
$t as FLEX_ITEM_DEFAULT_PROPS,
|
|
3345
|
+
Ft as FORM_GROUP_DEFAULT_PROPS,
|
|
3346
|
+
Ue as Field,
|
|
3347
|
+
no as Flex,
|
|
3348
|
+
co as FlexItem,
|
|
3349
|
+
an as FormGroup,
|
|
3350
|
+
Vt as GESTURE_INDICATOR_DEFAULT_PROPS,
|
|
3351
|
+
Mt as GRID_DEFAULT_PROPS,
|
|
3352
|
+
Ut as GRID_ITEM_DEFAULT_PROPS,
|
|
3353
|
+
cn as GestureIndicator,
|
|
3354
|
+
eo as Grid,
|
|
3355
|
+
so as GridItem,
|
|
3356
|
+
ia as Image,
|
|
3357
|
+
Wt as MODAL_DEFAULT_PROPS,
|
|
3358
|
+
Jn as Modal,
|
|
3359
|
+
qt as PRESENT_DEFAULT_PROPS,
|
|
3360
|
+
Jt as PRESENT_DEFAULT_STYLES,
|
|
3361
|
+
Ba as Page,
|
|
3362
|
+
xe as Present,
|
|
3363
|
+
tr as RADIO_DEFAULT_PROPS,
|
|
3364
|
+
er as RADIO_GROUP_DEFAULT_PROPS,
|
|
3365
|
+
we as RADIO_GROUP_PROVIDER_STATE_KEY,
|
|
3366
|
+
sr as ROUTE_NAVIGATOR_DEFAULT_PROPS,
|
|
3367
|
+
De as ROUTE_PROVIDER_STATE_KEY,
|
|
3368
|
+
lr as ROUTE_WRAPPER_DEFAULT_PROPS,
|
|
3369
|
+
Lo as Radio,
|
|
3370
|
+
Uo as RadioGroup,
|
|
3371
|
+
ya as Refresher,
|
|
3372
|
+
wa as RouteNavigator,
|
|
3373
|
+
dn as RouteOutlet,
|
|
3374
|
+
Me as RouteProvider,
|
|
3375
|
+
xa as RouteWrapper,
|
|
3376
|
+
Yt as SCROLLABLE_OVERFLOW_VALUES,
|
|
3377
|
+
ur as SEGMENTED_FIELD_DEFAULT_PROPS,
|
|
3378
|
+
vr as SELECT_DEFAULT_PROPS,
|
|
3379
|
+
Ar as SKELETON_DEFAULT_PROPS,
|
|
3380
|
+
Pr as SLIDE_RANGE_DEFAULT_PROPS,
|
|
3381
|
+
xr as SWITCH_DEFAULT_PROPS,
|
|
3382
|
+
va as SegmentedField,
|
|
3383
|
+
Ga as Select,
|
|
3384
|
+
bo as Skeleton,
|
|
3385
|
+
Xa as SlideRange,
|
|
3386
|
+
wo as Switch,
|
|
3387
|
+
Lr as TABS_DEFAULT_PROPS,
|
|
3388
|
+
Ie as TABS_PROVIDER_STATE_KEY,
|
|
3389
|
+
Vr as TAB_DEFAULT_PROPS,
|
|
3390
|
+
Kr as TAG_DEFAULT_PROPS,
|
|
3391
|
+
jr as TOAST_CONTENT_DEFAULT_PROPS,
|
|
3392
|
+
Gr as TOAST_DEFAULT_PROPS,
|
|
3393
|
+
Hr as TOOLBAR_DEFAULT_PROPS,
|
|
3394
|
+
Eo as Tab,
|
|
3395
|
+
Po as Tabs,
|
|
3396
|
+
Qa as Tag,
|
|
3397
|
+
on as Toast,
|
|
3398
|
+
nn as ToastContent,
|
|
3399
|
+
mo as Toolbar,
|
|
3400
|
+
Rn as blurCurrentActive,
|
|
3401
|
+
Le as clone,
|
|
3402
|
+
os as createToife,
|
|
3403
|
+
i as cssPrefix,
|
|
3404
|
+
C as cssProperty,
|
|
3405
|
+
ns as cssVariable,
|
|
3406
|
+
Xe as getActionAttrs,
|
|
3407
|
+
Je as getAppAttrs,
|
|
3408
|
+
Be as getAppClassSelector,
|
|
3409
|
+
ss as getApps,
|
|
3410
|
+
Ze as getAvatarAttrs,
|
|
3411
|
+
tt as getButtonAttrs,
|
|
3412
|
+
rt as getButtonLoaderAttrs,
|
|
3413
|
+
ot as getCableAttrs,
|
|
3414
|
+
st as getCardAttrs,
|
|
3415
|
+
ct as getCardBodyAttrs,
|
|
3416
|
+
it as getCardFooterAttrs,
|
|
3417
|
+
lt as getCardHeaderAttrs,
|
|
3418
|
+
ut as getCheckboxAttrs,
|
|
3419
|
+
pt as getCheckboxIconAttrs,
|
|
3420
|
+
ft as getCollapseAttrs,
|
|
3421
|
+
mt as getCollapseContentAttrs,
|
|
3422
|
+
gt as getCollapseContentInnerClass,
|
|
3423
|
+
vt as getCollapseTriggerAttrs,
|
|
3424
|
+
ht as getContainerAttrs,
|
|
3425
|
+
wn as getCssPrefix,
|
|
3426
|
+
kn as getCssSeparator,
|
|
3427
|
+
At as getDecisionModalAttrs,
|
|
3428
|
+
Pt as getDecisionModalBodyAttrs,
|
|
3429
|
+
Tt as getDecisionModalFooterAttrs,
|
|
3430
|
+
yt as getDecisionModalHeaderAttrs,
|
|
3431
|
+
Et as getDividerAttrs,
|
|
3432
|
+
Ot as getDropdownAttrs,
|
|
3433
|
+
kt as getDropdownPanelAttrs,
|
|
3434
|
+
Dt as getFieldAttrs,
|
|
3435
|
+
It as getFieldContentAttrs,
|
|
3436
|
+
xt as getFieldInputAttrs,
|
|
3437
|
+
Ct as getFieldMessageAttrs,
|
|
3438
|
+
jt as getFlexAttrs,
|
|
3439
|
+
Gt as getFlexItemAttrs,
|
|
3440
|
+
Bt as getFormGroupAttrs,
|
|
3441
|
+
Lt as getGestureIndicatorAttrs,
|
|
3442
|
+
Kt as getGridAttrs,
|
|
3443
|
+
Nt as getGridItemAttrs,
|
|
3444
|
+
Ht as getModalAttrs,
|
|
3445
|
+
Xt as getPageAttrs,
|
|
3446
|
+
Zt as getPresentAttrs,
|
|
3447
|
+
Qt as getPresentBackdropAttrs,
|
|
3448
|
+
rr as getRadioAttrs,
|
|
3449
|
+
or as getRadioGroupAttrs,
|
|
3450
|
+
nr as getRadioIconAttrs,
|
|
3451
|
+
ar as getRefresherAttrs,
|
|
3452
|
+
ir as getRouteNavigatorAttrs,
|
|
3453
|
+
dr as getRouteNavigatorBackdropAttrs,
|
|
3454
|
+
cr as getRouteNavigatorComponentAttrs,
|
|
3455
|
+
_r as getSegmentedFieldContentAttrs,
|
|
3456
|
+
fr as getSegmentedFieldMessageAttrs,
|
|
3457
|
+
pr as getSegmentedFieldWrapperAttrs,
|
|
3458
|
+
mr as getSelectAttrs,
|
|
3459
|
+
gr as getSelectIconAttrs,
|
|
3460
|
+
br as getSelectMessageAttrs,
|
|
3461
|
+
hr as getSelectOptionAttrs,
|
|
3462
|
+
yr as getSkeletonAttrs,
|
|
3463
|
+
Tr as getSlideRangeAttrs,
|
|
3464
|
+
Ir as getSlideRangeNodeAttrs,
|
|
3465
|
+
kr as getSlideRangeThumbAttrs,
|
|
3466
|
+
wr as getSlideRangeThumbInnerAttrs,
|
|
3467
|
+
Dr as getSlideRangeTooltipAttrs,
|
|
3468
|
+
Rr as getSlideRangeTrackBackAttrs,
|
|
3469
|
+
Er as getSlideRangeTrackBodyAttrs,
|
|
3470
|
+
Sr as getSlideRangeTrackContainerAttrs,
|
|
3471
|
+
Or as getSlideRangeTrackFrontAttrs,
|
|
3472
|
+
Fr as getSwitchAttrs,
|
|
3473
|
+
Br as getSwitchIconAttrs,
|
|
3474
|
+
Cr as getSwitchWrapperAttrs,
|
|
3475
|
+
$r as getTabAttrs,
|
|
3476
|
+
zr as getTabButtonAttrs,
|
|
3477
|
+
Ur as getTabsAttrs,
|
|
3478
|
+
Mr as getTabsHighlightStyle,
|
|
3479
|
+
Nr as getTagAttrs,
|
|
3480
|
+
Yr as getToastAttrs,
|
|
3481
|
+
Wr as getToastContentAttrs,
|
|
3482
|
+
Xr as getToolbarAttrs,
|
|
3483
|
+
En as isFormElement,
|
|
3484
|
+
On as preventDefault,
|
|
3485
|
+
Jr as useAction,
|
|
3486
|
+
as as useApp,
|
|
3487
|
+
Qr as useDecisionModal,
|
|
3488
|
+
qr as usePresent,
|
|
3489
|
+
Zr as useRouteWrapper,
|
|
3490
|
+
We as useToast
|
|
3491
|
+
};
|