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