@tagplus/components 5.3.4 → 5.3.5
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/dist/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/dist/es/components.css +2391 -0
- package/dist/es/node_modules/@element-plus/icons-vue/dist/index.mjs +148 -0
- package/dist/es/node_modules/@popperjs/core/lib/enums.mjs +22 -0
- package/dist/es/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +28 -0
- package/dist/es/node_modules/@vueuse/core/index.mjs +172 -0
- package/dist/es/node_modules/@vueuse/shared/index.mjs +68 -0
- package/dist/es/node_modules/element-plus/es/constants/size.mjs +4 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +64 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-id/index.mjs +30 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-locale/index.mjs +29 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-namespace/index.mjs +79 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-prop/index.mjs +11 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-size/index.mjs +20 -0
- package/dist/es/node_modules/element-plus/es/locale/lang/en.mjs +182 -0
- package/dist/es/node_modules/element-plus/es/utils/error.mjs +16 -0
- package/dist/es/node_modules/element-plus/es/utils/types.mjs +9 -0
- package/dist/es/node_modules/element-plus/es/utils/vue/props/runtime.mjs +42 -0
- package/dist/es/src/components/Autosuggest/Autosuggest.vue.mjs +446 -0
- package/dist/es/src/components/Autosuggest/Multisuggest.vue.mjs +17 -0
- package/dist/es/src/components/Autosuggest/autosuggest-props.mjs +204 -0
- package/dist/es/src/components/Autosuggest/core.mjs +62 -0
- package/dist/es/src/components/Autosuggest/multisuggest-props.mjs +11 -0
- package/dist/es/src/components/Autosuggest/option.vue.mjs +118 -0
- package/dist/es/src/components/Autosuggest/select-dropdown.vue.mjs +62 -0
- package/dist/es/src/components/Autosuggest/useOption.mjs +93 -0
- package/dist/es/src/components/Autosuggest/useSelect.mjs +803 -0
- package/dist/es/src/components/Inline/Inline.vue.mjs +130 -0
- package/dist/es/src/components/Inline/index.mjs +4 -0
- package/dist/es/src/components/InputNumber/InputNumber.vue.mjs +358 -0
- package/dist/es/src/components/InputNumber/index.mjs +4 -0
- package/dist/es/src/components/InputNumber/input-number.mjs +128 -0
- package/dist/es/src/components/Loader/Loader.vue.mjs +59 -0
- package/dist/es/src/components/Loader/index.mjs +4 -0
- package/dist/es/src/components/Money/Money.vue.mjs +76 -0
- package/dist/es/src/components/Money/index.mjs +4 -0
- package/dist/es/src/components/Multisuggest/index.mjs +4 -0
- package/dist/es/src/components/OptionsList/OptionsList.vue.mjs +28 -0
- package/dist/es/src/components/OptionsList/index.mjs +4 -0
- package/dist/es/src/components/OptionsListItem/OptionsListItem.vue.mjs +96 -0
- package/dist/es/src/components/OptionsListItem/index.mjs +4 -0
- package/dist/es/src/components/Percent/Percent.vue.mjs +77 -0
- package/dist/es/src/components/Percent/index.mjs +4 -0
- package/dist/es/src/components/Skeleton/Skeleton.vue.mjs +79 -0
- package/dist/es/src/components/Skeleton/index.mjs +4 -0
- package/dist/es/src/components/Step/Step.vue.mjs +206 -0
- package/dist/es/src/components/Step/index.mjs +4 -0
- package/dist/es/src/components/Steps/Steps.vue.mjs +15 -0
- package/dist/es/src/components/Steps/index.mjs +4 -0
- package/dist/es/src/components/Tip/Tip.vue.mjs +165 -0
- package/dist/es/src/components/Tip/index.mjs +4 -0
- package/dist/es/src/components/index.mjs +22 -0
- package/dist/es/src/locale/i18nCreator.mjs +93 -0
- package/dist/es/src/locale/lang/pt-br.mjs +21 -0
- package/dist/es/src/main.mjs +18 -0
- package/dist/es/src/mixins/floatFormatter.mjs +42 -0
- package/dist/es/src/plugins/currency.mjs +69 -0
- package/dist/es/src/utils/constants.mjs +6 -0
- package/dist/es/src/utils/error.mjs +20 -0
- package/dist/es/src/utils/i18n.mjs +4 -0
- package/dist/es/src/utils/icon.mjs +9 -0
- package/dist/es/src/utils/index.mjs +8 -0
- package/dist/es/src/utils/runtime.mjs +50 -0
- package/dist/es/src/utils/scroll.mjs +26 -0
- package/dist/es/src/utils/strings.mjs +4 -0
- package/dist/es/src/utils/types.mjs +9 -0
- package/dist/es/src/utils/use-derived-namespace.mjs +15 -0
- package/dist/es/src/utils/use-form-common-props.mjs +25 -0
- package/dist/es/src/utils/use-form-item.mjs +61 -0
- package/dist/es/src/utils/use-id.mjs +35 -0
- package/dist/es/src/utils/use-input.mjs +31 -0
- package/{src/locale → dist}/lang/en.js +3 -2
- package/{src/locale → dist}/lang/pt-br.js +3 -2
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/lib/components.css +2391 -0
- package/dist/lib/node_modules/@element-plus/icons-vue/dist/index.js +148 -0
- package/dist/lib/node_modules/@popperjs/core/lib/enums.js +22 -0
- package/dist/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +28 -0
- package/dist/lib/node_modules/@vueuse/core/index.js +170 -0
- package/dist/lib/node_modules/@vueuse/shared/index.js +68 -0
- package/dist/lib/node_modules/element-plus/es/constants/size.js +4 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +64 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-id/index.js +30 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-locale/index.js +29 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +79 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-prop/index.js +11 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-size/index.js +20 -0
- package/dist/lib/node_modules/element-plus/es/locale/lang/en.js +182 -0
- package/dist/lib/node_modules/element-plus/es/utils/error.js +16 -0
- package/dist/lib/node_modules/element-plus/es/utils/types.js +9 -0
- package/dist/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +42 -0
- package/dist/lib/src/components/Autosuggest/Autosuggest.vue.js +446 -0
- package/dist/lib/src/components/Autosuggest/Multisuggest.vue.js +17 -0
- package/dist/lib/src/components/Autosuggest/autosuggest-props.js +204 -0
- package/dist/lib/src/components/Autosuggest/core.js +62 -0
- package/dist/lib/src/components/Autosuggest/multisuggest-props.js +11 -0
- package/dist/lib/src/components/Autosuggest/option.vue.js +118 -0
- package/dist/lib/src/components/Autosuggest/select-dropdown.vue.js +62 -0
- package/dist/lib/src/components/Autosuggest/useOption.js +93 -0
- package/dist/lib/src/components/Autosuggest/useSelect.js +803 -0
- package/dist/lib/src/components/Inline/Inline.vue.js +130 -0
- package/dist/lib/src/components/Inline/index.js +4 -0
- package/dist/lib/src/components/InputNumber/InputNumber.vue.js +358 -0
- package/dist/lib/src/components/InputNumber/index.js +4 -0
- package/dist/lib/src/components/InputNumber/input-number.js +128 -0
- package/dist/lib/src/components/Loader/Loader.vue.js +59 -0
- package/dist/lib/src/components/Loader/index.js +4 -0
- package/dist/lib/src/components/Money/Money.vue.js +76 -0
- package/dist/lib/src/components/Money/index.js +4 -0
- package/dist/lib/src/components/Multisuggest/index.js +4 -0
- package/dist/lib/src/components/OptionsList/OptionsList.vue.js +28 -0
- package/dist/lib/src/components/OptionsList/index.js +4 -0
- package/dist/lib/src/components/OptionsListItem/OptionsListItem.vue.js +96 -0
- package/dist/lib/src/components/OptionsListItem/index.js +4 -0
- package/dist/lib/src/components/Percent/Percent.vue.js +77 -0
- package/dist/lib/src/components/Percent/index.js +4 -0
- package/dist/lib/src/components/Skeleton/Skeleton.vue.js +79 -0
- package/dist/lib/src/components/Skeleton/index.js +4 -0
- package/dist/lib/src/components/Step/Step.vue.js +206 -0
- package/dist/lib/src/components/Step/index.js +4 -0
- package/dist/lib/src/components/Steps/Steps.vue.js +15 -0
- package/dist/lib/src/components/Steps/index.js +4 -0
- package/dist/lib/src/components/Tip/Tip.vue.js +165 -0
- package/dist/lib/src/components/Tip/index.js +4 -0
- package/dist/lib/src/components/index.js +22 -0
- package/dist/lib/src/locale/i18nCreator.js +93 -0
- package/dist/lib/src/locale/lang/pt-br.js +21 -0
- package/dist/lib/src/main.js +18 -0
- package/dist/lib/src/mixins/floatFormatter.js +42 -0
- package/dist/lib/src/plugins/currency.js +69 -0
- package/dist/lib/src/utils/constants.js +6 -0
- package/dist/lib/src/utils/error.js +20 -0
- package/dist/lib/src/utils/i18n.js +4 -0
- package/dist/lib/src/utils/icon.js +9 -0
- package/dist/lib/src/utils/index.js +8 -0
- package/dist/lib/src/utils/runtime.js +50 -0
- package/dist/lib/src/utils/scroll.js +26 -0
- package/dist/lib/src/utils/strings.js +4 -0
- package/dist/lib/src/utils/types.js +12 -0
- package/dist/lib/src/utils/use-derived-namespace.js +15 -0
- package/dist/lib/src/utils/use-form-common-props.js +25 -0
- package/dist/lib/src/utils/use-form-item.js +61 -0
- package/dist/lib/src/utils/use-id.js +35 -0
- package/dist/lib/src/utils/use-input.js +31 -0
- package/package.json +84 -62
- package/dist/demo.html +0 -1
- package/dist/fonts/bevi-bold.7e4dcd11.woff +0 -0
- package/dist/fonts/bevi-bold.873def84.woff2 +0 -0
- package/dist/fonts/bevi-medium.6187e050.woff2 +0 -0
- package/dist/fonts/bevi-medium.65b3056d.woff +0 -0
- package/dist/fonts/bevi-regular.c89f126e.woff +0 -0
- package/dist/fonts/bevi-regular.f81e4b8f.woff2 +0 -0
- package/dist/tp.common.js +0 -2
- package/dist/tp.common.js.map +0 -1
- package/dist/tp.css +0 -167
- package/dist/tp.umd.js +0 -2
- package/dist/tp.umd.js.map +0 -1
- package/dist/tp.umd.min.js +0 -2
- package/dist/tp.umd.min.js.map +0 -1
- package/src/assets/scss/_fonts.scss +0 -27
- package/src/assets/scss/_functions.scss +0 -22
- package/src/assets/scss/_helpers.scss +0 -112
- package/src/assets/scss/_mixins.scss +0 -69
- package/src/assets/scss/_overrides.scss +0 -69
- package/src/assets/scss/_resass.scss +0 -83
- package/src/assets/scss/_variables.scss +0 -27
- package/src/assets/scss/index.scss +0 -11
- package/src/components/Autosuggest/Autosuggest.vue +0 -791
- package/src/components/Autosuggest/index.js +0 -3
- package/src/components/Dialog/Dialog.vue +0 -253
- package/src/components/Dialog/index.js +0 -3
- package/src/components/Inline/Inline.vue +0 -149
- package/src/components/Inline/index.js +0 -3
- package/src/components/InputNumber/InputNumber.vue +0 -430
- package/src/components/InputNumber/index.js +0 -3
- package/src/components/Loader/Loader.vue +0 -317
- package/src/components/Loader/animations.scss +0 -68
- package/src/components/Loader/index.js +0 -3
- package/src/components/Money/Money.vue +0 -82
- package/src/components/Money/index.js +0 -3
- package/src/components/Multisuggest/Multisuggest.vue +0 -858
- package/src/components/Multisuggest/index.js +0 -3
- package/src/components/OptionsList/OptionsList.vue +0 -61
- package/src/components/OptionsList/index.js +0 -3
- package/src/components/OptionsListItem/OptionsListItem.vue +0 -191
- package/src/components/OptionsListItem/index.js +0 -3
- package/src/components/Percent/Percent.vue +0 -81
- package/src/components/Percent/index.js +0 -3
- package/src/components/Skeleton/Skeleton.vue +0 -137
- package/src/components/Skeleton/index.js +0 -3
- package/src/components/Step/Step.vue +0 -230
- package/src/components/Step/index.js +0 -3
- package/src/components/Steps/Steps.vue +0 -18
- package/src/components/Steps/index.js +0 -3
- package/src/components/Tip/Tip.vue +0 -193
- package/src/components/Tip/index.js +0 -3
- package/src/components/index.js +0 -31
- package/src/locale/index.js +0 -78
- package/src/main.js +0 -26
- package/src/mixins/floatFormatter.js +0 -53
- package/src/mixins/locale.js +0 -9
- package/src/utils/currency.js +0 -180
- package/src/utils/filters.js +0 -84
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
5
|
+
var arrow_down_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
+
name: "ArrowDown",
|
|
7
|
+
__name: "arrow-down",
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
viewBox: "0 0 1024 1024"
|
|
12
|
+
}, [
|
|
13
|
+
vue.createElementVNode("path", {
|
|
14
|
+
fill: "currentColor",
|
|
15
|
+
d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
|
|
16
|
+
})
|
|
17
|
+
]));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var arrow_down_default = arrow_down_vue_vue_type_script_setup_true_lang_default;
|
|
21
|
+
var arrow_up_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
22
|
+
name: "ArrowUp",
|
|
23
|
+
__name: "arrow-up",
|
|
24
|
+
setup(__props) {
|
|
25
|
+
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
viewBox: "0 0 1024 1024"
|
|
28
|
+
}, [
|
|
29
|
+
vue.createElementVNode("path", {
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
|
|
32
|
+
})
|
|
33
|
+
]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
var arrow_up_default = arrow_up_vue_vue_type_script_setup_true_lang_default;
|
|
37
|
+
var check_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
38
|
+
name: "Check",
|
|
39
|
+
__name: "check",
|
|
40
|
+
setup(__props) {
|
|
41
|
+
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
+
viewBox: "0 0 1024 1024"
|
|
44
|
+
}, [
|
|
45
|
+
vue.createElementVNode("path", {
|
|
46
|
+
fill: "currentColor",
|
|
47
|
+
d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
|
|
48
|
+
})
|
|
49
|
+
]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
var check_default = check_vue_vue_type_script_setup_true_lang_default;
|
|
53
|
+
var circle_check_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
54
|
+
name: "CircleCheck",
|
|
55
|
+
__name: "circle-check",
|
|
56
|
+
setup(__props) {
|
|
57
|
+
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
58
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
+
viewBox: "0 0 1024 1024"
|
|
60
|
+
}, [
|
|
61
|
+
vue.createElementVNode("path", {
|
|
62
|
+
fill: "currentColor",
|
|
63
|
+
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
|
64
|
+
}),
|
|
65
|
+
vue.createElementVNode("path", {
|
|
66
|
+
fill: "currentColor",
|
|
67
|
+
d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
|
|
68
|
+
})
|
|
69
|
+
]));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var circle_check_default = circle_check_vue_vue_type_script_setup_true_lang_default;
|
|
73
|
+
var circle_close_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
74
|
+
name: "CircleClose",
|
|
75
|
+
__name: "circle-close",
|
|
76
|
+
setup(__props) {
|
|
77
|
+
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
78
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
79
|
+
viewBox: "0 0 1024 1024"
|
|
80
|
+
}, [
|
|
81
|
+
vue.createElementVNode("path", {
|
|
82
|
+
fill: "currentColor",
|
|
83
|
+
d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
|
|
84
|
+
}),
|
|
85
|
+
vue.createElementVNode("path", {
|
|
86
|
+
fill: "currentColor",
|
|
87
|
+
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
|
88
|
+
})
|
|
89
|
+
]));
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
var circle_close_default = circle_close_vue_vue_type_script_setup_true_lang_default;
|
|
93
|
+
var loading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
94
|
+
name: "Loading",
|
|
95
|
+
__name: "loading",
|
|
96
|
+
setup(__props) {
|
|
97
|
+
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
98
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
99
|
+
viewBox: "0 0 1024 1024"
|
|
100
|
+
}, [
|
|
101
|
+
vue.createElementVNode("path", {
|
|
102
|
+
fill: "currentColor",
|
|
103
|
+
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
|
|
104
|
+
})
|
|
105
|
+
]));
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
var loading_default = loading_vue_vue_type_script_setup_true_lang_default;
|
|
109
|
+
var minus_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
110
|
+
name: "Minus",
|
|
111
|
+
__name: "minus",
|
|
112
|
+
setup(__props) {
|
|
113
|
+
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
114
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
115
|
+
viewBox: "0 0 1024 1024"
|
|
116
|
+
}, [
|
|
117
|
+
vue.createElementVNode("path", {
|
|
118
|
+
fill: "currentColor",
|
|
119
|
+
d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
|
|
120
|
+
})
|
|
121
|
+
]));
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
var minus_default = minus_vue_vue_type_script_setup_true_lang_default;
|
|
125
|
+
var plus_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
126
|
+
name: "Plus",
|
|
127
|
+
__name: "plus",
|
|
128
|
+
setup(__props) {
|
|
129
|
+
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
130
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
131
|
+
viewBox: "0 0 1024 1024"
|
|
132
|
+
}, [
|
|
133
|
+
vue.createElementVNode("path", {
|
|
134
|
+
fill: "currentColor",
|
|
135
|
+
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
136
|
+
})
|
|
137
|
+
]));
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
var plus_default = plus_vue_vue_type_script_setup_true_lang_default;
|
|
141
|
+
exports.ArrowDown = arrow_down_default;
|
|
142
|
+
exports.ArrowUp = arrow_up_default;
|
|
143
|
+
exports.Check = check_default;
|
|
144
|
+
exports.CircleCheck = circle_check_default;
|
|
145
|
+
exports.CircleClose = circle_close_default;
|
|
146
|
+
exports.Loading = loading_default;
|
|
147
|
+
exports.Minus = minus_default;
|
|
148
|
+
exports.Plus = plus_default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var top = "top";
|
|
4
|
+
var bottom = "bottom";
|
|
5
|
+
var right = "right";
|
|
6
|
+
var left = "left";
|
|
7
|
+
var auto = "auto";
|
|
8
|
+
var basePlacements = [top, bottom, right, left];
|
|
9
|
+
var start = "start";
|
|
10
|
+
var end = "end";
|
|
11
|
+
var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
12
|
+
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
13
|
+
}, []);
|
|
14
|
+
exports.auto = auto;
|
|
15
|
+
exports.basePlacements = basePlacements;
|
|
16
|
+
exports.bottom = bottom;
|
|
17
|
+
exports.end = end;
|
|
18
|
+
exports.left = left;
|
|
19
|
+
exports.placements = placements;
|
|
20
|
+
exports.right = right;
|
|
21
|
+
exports.start = start;
|
|
22
|
+
exports.top = top;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
/**
|
|
4
|
+
* @vue/shared v3.5.13
|
|
5
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
|
+
* @license MIT
|
|
7
|
+
**/
|
|
8
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
9
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
10
|
+
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
11
|
+
const hasOwn = (val, key) => hasOwnProperty.call(val, key);
|
|
12
|
+
const isArray = Array.isArray;
|
|
13
|
+
const isFunction = (val) => typeof val === "function";
|
|
14
|
+
const isString = (val) => typeof val === "string";
|
|
15
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
16
|
+
const objectToString = Object.prototype.toString;
|
|
17
|
+
const toTypeString = (value) => objectToString.call(value);
|
|
18
|
+
const toRawType = (value) => {
|
|
19
|
+
return toTypeString(value).slice(8, -1);
|
|
20
|
+
};
|
|
21
|
+
exports.hasOwn = hasOwn;
|
|
22
|
+
exports.isArray = isArray;
|
|
23
|
+
exports.isFunction = isFunction;
|
|
24
|
+
exports.isObject = isObject;
|
|
25
|
+
exports.isString = isString;
|
|
26
|
+
exports.objectToString = objectToString;
|
|
27
|
+
exports.toRawType = toRawType;
|
|
28
|
+
exports.toTypeString = toTypeString;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const index = require("../shared/index.js");
|
|
4
|
+
const vue = require("vue");
|
|
5
|
+
function unrefElement(elRef) {
|
|
6
|
+
var _a;
|
|
7
|
+
const plain = index.resolveUnref(elRef);
|
|
8
|
+
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
9
|
+
}
|
|
10
|
+
const defaultWindow = index.isClient ? window : void 0;
|
|
11
|
+
function useEventListener(...args) {
|
|
12
|
+
let target;
|
|
13
|
+
let events;
|
|
14
|
+
let listeners;
|
|
15
|
+
let options;
|
|
16
|
+
if (index.isString(args[0]) || Array.isArray(args[0])) {
|
|
17
|
+
[events, listeners, options] = args;
|
|
18
|
+
target = defaultWindow;
|
|
19
|
+
} else {
|
|
20
|
+
[target, events, listeners, options] = args;
|
|
21
|
+
}
|
|
22
|
+
if (!target)
|
|
23
|
+
return index.noop;
|
|
24
|
+
if (!Array.isArray(events))
|
|
25
|
+
events = [events];
|
|
26
|
+
if (!Array.isArray(listeners))
|
|
27
|
+
listeners = [listeners];
|
|
28
|
+
const cleanups = [];
|
|
29
|
+
const cleanup = () => {
|
|
30
|
+
cleanups.forEach((fn) => fn());
|
|
31
|
+
cleanups.length = 0;
|
|
32
|
+
};
|
|
33
|
+
const register = (el, event, listener, options2) => {
|
|
34
|
+
el.addEventListener(event, listener, options2);
|
|
35
|
+
return () => el.removeEventListener(event, listener, options2);
|
|
36
|
+
};
|
|
37
|
+
const stopWatch = vue.watch(() => [unrefElement(target), index.resolveUnref(options)], ([el, options2]) => {
|
|
38
|
+
cleanup();
|
|
39
|
+
if (!el)
|
|
40
|
+
return;
|
|
41
|
+
cleanups.push(...events.flatMap((event) => {
|
|
42
|
+
return listeners.map((listener) => register(el, event, listener, options2));
|
|
43
|
+
}));
|
|
44
|
+
}, { immediate: true, flush: "post" });
|
|
45
|
+
const stop = () => {
|
|
46
|
+
stopWatch();
|
|
47
|
+
cleanup();
|
|
48
|
+
};
|
|
49
|
+
index.tryOnScopeDispose(stop);
|
|
50
|
+
return stop;
|
|
51
|
+
}
|
|
52
|
+
function useSupported(callback, sync = false) {
|
|
53
|
+
const isSupported = vue.ref();
|
|
54
|
+
const update = () => isSupported.value = Boolean(callback());
|
|
55
|
+
update();
|
|
56
|
+
index.tryOnMounted(update, sync);
|
|
57
|
+
return isSupported;
|
|
58
|
+
}
|
|
59
|
+
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
60
|
+
const globalKey = "__vueuse_ssr_handlers__";
|
|
61
|
+
_global[globalKey] = _global[globalKey] || {};
|
|
62
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
63
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
64
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
65
|
+
var __objRest$2 = (source, exclude) => {
|
|
66
|
+
var target = {};
|
|
67
|
+
for (var prop in source)
|
|
68
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
69
|
+
target[prop] = source[prop];
|
|
70
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
71
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
72
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
73
|
+
target[prop] = source[prop];
|
|
74
|
+
}
|
|
75
|
+
return target;
|
|
76
|
+
};
|
|
77
|
+
function useResizeObserver(target, callback, options = {}) {
|
|
78
|
+
const _a = options, { window: window2 = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
79
|
+
let observer;
|
|
80
|
+
const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
|
|
81
|
+
const cleanup = () => {
|
|
82
|
+
if (observer) {
|
|
83
|
+
observer.disconnect();
|
|
84
|
+
observer = void 0;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const stopWatch = vue.watch(() => unrefElement(target), (el) => {
|
|
88
|
+
cleanup();
|
|
89
|
+
if (isSupported.value && window2 && el) {
|
|
90
|
+
observer = new ResizeObserver(callback);
|
|
91
|
+
observer.observe(el, observerOptions);
|
|
92
|
+
}
|
|
93
|
+
}, { immediate: true, flush: "post" });
|
|
94
|
+
const stop = () => {
|
|
95
|
+
cleanup();
|
|
96
|
+
stopWatch();
|
|
97
|
+
};
|
|
98
|
+
index.tryOnScopeDispose(stop);
|
|
99
|
+
return {
|
|
100
|
+
isSupported,
|
|
101
|
+
stop
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
exports.SwipeDirection = void 0;
|
|
105
|
+
(function(SwipeDirection2) {
|
|
106
|
+
SwipeDirection2["UP"] = "UP";
|
|
107
|
+
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
108
|
+
SwipeDirection2["DOWN"] = "DOWN";
|
|
109
|
+
SwipeDirection2["LEFT"] = "LEFT";
|
|
110
|
+
SwipeDirection2["NONE"] = "NONE";
|
|
111
|
+
})(exports.SwipeDirection || (exports.SwipeDirection = {}));
|
|
112
|
+
var __defProp = Object.defineProperty;
|
|
113
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
114
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
115
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
116
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
117
|
+
var __spreadValues = (a, b) => {
|
|
118
|
+
for (var prop in b || (b = {}))
|
|
119
|
+
if (__hasOwnProp.call(b, prop))
|
|
120
|
+
__defNormalProp(a, prop, b[prop]);
|
|
121
|
+
if (__getOwnPropSymbols)
|
|
122
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
123
|
+
if (__propIsEnum.call(b, prop))
|
|
124
|
+
__defNormalProp(a, prop, b[prop]);
|
|
125
|
+
}
|
|
126
|
+
return a;
|
|
127
|
+
};
|
|
128
|
+
const _TransitionPresets = {
|
|
129
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
130
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
131
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
132
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
133
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
134
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
135
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
136
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
137
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
138
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
139
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
140
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
141
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
142
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
143
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
144
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
145
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
146
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
147
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
148
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
149
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
150
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
151
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
152
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
153
|
+
};
|
|
154
|
+
__spreadValues({
|
|
155
|
+
linear: index.identity
|
|
156
|
+
}, _TransitionPresets);
|
|
157
|
+
exports.computedEager = index.computedEager;
|
|
158
|
+
exports.eagerComputed = index.computedEager;
|
|
159
|
+
exports.identity = index.identity;
|
|
160
|
+
exports.isClient = index.isClient;
|
|
161
|
+
exports.isString = index.isString;
|
|
162
|
+
exports.noop = index.noop;
|
|
163
|
+
exports.resolveUnref = index.resolveUnref;
|
|
164
|
+
exports.tryOnMounted = index.tryOnMounted;
|
|
165
|
+
exports.tryOnScopeDispose = index.tryOnScopeDispose;
|
|
166
|
+
exports.defaultWindow = defaultWindow;
|
|
167
|
+
exports.unrefElement = unrefElement;
|
|
168
|
+
exports.useEventListener = useEventListener;
|
|
169
|
+
exports.useResizeObserver = useResizeObserver;
|
|
170
|
+
exports.useSupported = useSupported;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
var __defProp$9 = Object.defineProperty;
|
|
5
|
+
var __defProps$6 = Object.defineProperties;
|
|
6
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues$9 = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
14
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols$b)
|
|
16
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
17
|
+
if (__propIsEnum$b.call(b, prop))
|
|
18
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
23
|
+
function computedEager(fn, options) {
|
|
24
|
+
var _a2;
|
|
25
|
+
const result = vue.shallowRef();
|
|
26
|
+
vue.watchEffect(() => {
|
|
27
|
+
result.value = fn();
|
|
28
|
+
}, __spreadProps$6(__spreadValues$9({}, options), {
|
|
29
|
+
flush: (_a2 = void 0) != null ? _a2 : "sync"
|
|
30
|
+
}));
|
|
31
|
+
return vue.readonly(result);
|
|
32
|
+
}
|
|
33
|
+
var _a;
|
|
34
|
+
const isClient = typeof window !== "undefined";
|
|
35
|
+
const isString = (val) => typeof val === "string";
|
|
36
|
+
const noop = () => {
|
|
37
|
+
};
|
|
38
|
+
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
39
|
+
function resolveUnref(r) {
|
|
40
|
+
return typeof r === "function" ? r() : vue.unref(r);
|
|
41
|
+
}
|
|
42
|
+
function identity(arg) {
|
|
43
|
+
return arg;
|
|
44
|
+
}
|
|
45
|
+
function tryOnScopeDispose(fn) {
|
|
46
|
+
if (vue.getCurrentScope()) {
|
|
47
|
+
vue.onScopeDispose(fn);
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
function tryOnMounted(fn, sync = true) {
|
|
53
|
+
if (vue.getCurrentInstance())
|
|
54
|
+
vue.onMounted(fn);
|
|
55
|
+
else if (sync)
|
|
56
|
+
fn();
|
|
57
|
+
else
|
|
58
|
+
vue.nextTick(fn);
|
|
59
|
+
}
|
|
60
|
+
exports.computedEager = computedEager;
|
|
61
|
+
exports.eagerComputed = computedEager;
|
|
62
|
+
exports.identity = identity;
|
|
63
|
+
exports.isClient = isClient;
|
|
64
|
+
exports.isString = isString;
|
|
65
|
+
exports.noop = noop;
|
|
66
|
+
exports.resolveUnref = resolveUnref;
|
|
67
|
+
exports.tryOnMounted = tryOnMounted;
|
|
68
|
+
exports.tryOnScopeDispose = tryOnScopeDispose;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const index = require("../../../../@vueuse/core/index.js");
|
|
5
|
+
const types = require("../../utils/types.js");
|
|
6
|
+
const shared_esmBundler = require("../../../../@vue/shared/dist/shared.esm-bundler.js");
|
|
7
|
+
function useFocusController(target, {
|
|
8
|
+
beforeFocus,
|
|
9
|
+
afterFocus,
|
|
10
|
+
beforeBlur,
|
|
11
|
+
afterBlur
|
|
12
|
+
} = {}) {
|
|
13
|
+
const instance = vue.getCurrentInstance();
|
|
14
|
+
const { emit } = instance;
|
|
15
|
+
const wrapperRef = vue.shallowRef();
|
|
16
|
+
const isFocused = vue.ref(false);
|
|
17
|
+
const handleFocus = (event) => {
|
|
18
|
+
const cancelFocus = shared_esmBundler.isFunction(beforeFocus) ? beforeFocus(event) : false;
|
|
19
|
+
if (cancelFocus || isFocused.value)
|
|
20
|
+
return;
|
|
21
|
+
isFocused.value = true;
|
|
22
|
+
emit("focus", event);
|
|
23
|
+
afterFocus == null ? void 0 : afterFocus();
|
|
24
|
+
};
|
|
25
|
+
const handleBlur = (event) => {
|
|
26
|
+
var _a;
|
|
27
|
+
const cancelBlur = shared_esmBundler.isFunction(beforeBlur) ? beforeBlur(event) : false;
|
|
28
|
+
if (cancelBlur || event.relatedTarget && ((_a = wrapperRef.value) == null ? void 0 : _a.contains(event.relatedTarget)))
|
|
29
|
+
return;
|
|
30
|
+
isFocused.value = false;
|
|
31
|
+
emit("blur", event);
|
|
32
|
+
afterBlur == null ? void 0 : afterBlur();
|
|
33
|
+
};
|
|
34
|
+
const handleClick = () => {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
if (((_a = wrapperRef.value) == null ? void 0 : _a.contains(document.activeElement)) && wrapperRef.value !== document.activeElement)
|
|
37
|
+
return;
|
|
38
|
+
(_b = target.value) == null ? void 0 : _b.focus();
|
|
39
|
+
};
|
|
40
|
+
vue.watch(wrapperRef, (el) => {
|
|
41
|
+
if (el) {
|
|
42
|
+
el.setAttribute("tabindex", "-1");
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
index.useEventListener(wrapperRef, "focus", handleFocus, true);
|
|
46
|
+
index.useEventListener(wrapperRef, "blur", handleBlur, true);
|
|
47
|
+
index.useEventListener(wrapperRef, "click", handleClick, true);
|
|
48
|
+
if (process.env.NODE_ENV === "test") {
|
|
49
|
+
vue.onMounted(() => {
|
|
50
|
+
const targetEl = types.isElement(target.value) ? target.value : document.querySelector("input,textarea");
|
|
51
|
+
if (targetEl) {
|
|
52
|
+
index.useEventListener(targetEl, "focus", handleFocus, true);
|
|
53
|
+
index.useEventListener(targetEl, "blur", handleBlur, true);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
isFocused,
|
|
59
|
+
wrapperRef,
|
|
60
|
+
handleFocus,
|
|
61
|
+
handleBlur
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.useFocusController = useFocusController;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const index$1 = require("../use-namespace/index.js");
|
|
5
|
+
const error = require("../../utils/error.js");
|
|
6
|
+
const index = require("../../../../@vueuse/shared/index.js");
|
|
7
|
+
const defaultIdInjection = {
|
|
8
|
+
prefix: Math.floor(Math.random() * 1e4),
|
|
9
|
+
current: 0
|
|
10
|
+
};
|
|
11
|
+
const ID_INJECTION_KEY = Symbol("elIdInjection");
|
|
12
|
+
const useIdInjection = () => {
|
|
13
|
+
return vue.getCurrentInstance() ? vue.inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection;
|
|
14
|
+
};
|
|
15
|
+
const useId = (deterministicId) => {
|
|
16
|
+
const idInjection = useIdInjection();
|
|
17
|
+
if (!index.isClient && idInjection === defaultIdInjection) {
|
|
18
|
+
error.debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
19
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
20
|
+
prefix: number,
|
|
21
|
+
current: number,
|
|
22
|
+
})`);
|
|
23
|
+
}
|
|
24
|
+
const namespace = index$1.useGetDerivedNamespace();
|
|
25
|
+
const idRef = index.computedEager(() => vue.unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`);
|
|
26
|
+
return idRef;
|
|
27
|
+
};
|
|
28
|
+
exports.ID_INJECTION_KEY = ID_INJECTION_KEY;
|
|
29
|
+
exports.useId = useId;
|
|
30
|
+
exports.useIdInjection = useIdInjection;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const lodashEs = require("lodash-es");
|
|
5
|
+
const en = require("../../locale/lang/en.js");
|
|
6
|
+
const buildTranslator = (locale) => (path, option) => translate(path, option, vue.unref(locale));
|
|
7
|
+
const translate = (path, option, locale) => lodashEs.get(locale, path, path).replace(/\{(\w+)\}/g, (_, key) => {
|
|
8
|
+
var _a;
|
|
9
|
+
return `${(_a = option == null ? void 0 : option[key]) != null ? _a : `{${key}}`}`;
|
|
10
|
+
});
|
|
11
|
+
const buildLocaleContext = (locale) => {
|
|
12
|
+
const lang = vue.computed(() => vue.unref(locale).name);
|
|
13
|
+
const localeRef = vue.isRef(locale) ? locale : vue.ref(locale);
|
|
14
|
+
return {
|
|
15
|
+
lang,
|
|
16
|
+
locale: localeRef,
|
|
17
|
+
t: buildTranslator(locale)
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
const localeContextKey = Symbol("localeContextKey");
|
|
21
|
+
const useLocale = (localeOverrides) => {
|
|
22
|
+
const locale = vue.inject(localeContextKey, vue.ref());
|
|
23
|
+
return buildLocaleContext(vue.computed(() => locale.value || en.default));
|
|
24
|
+
};
|
|
25
|
+
exports.buildLocaleContext = buildLocaleContext;
|
|
26
|
+
exports.buildTranslator = buildTranslator;
|
|
27
|
+
exports.localeContextKey = localeContextKey;
|
|
28
|
+
exports.translate = translate;
|
|
29
|
+
exports.useLocale = useLocale;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const defaultNamespace = "el";
|
|
5
|
+
const statePrefix = "is-";
|
|
6
|
+
const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
7
|
+
let cls = `${namespace}-${block}`;
|
|
8
|
+
if (blockSuffix) {
|
|
9
|
+
cls += `-${blockSuffix}`;
|
|
10
|
+
}
|
|
11
|
+
if (element) {
|
|
12
|
+
cls += `__${element}`;
|
|
13
|
+
}
|
|
14
|
+
if (modifier) {
|
|
15
|
+
cls += `--${modifier}`;
|
|
16
|
+
}
|
|
17
|
+
return cls;
|
|
18
|
+
};
|
|
19
|
+
const namespaceContextKey = Symbol("namespaceContextKey");
|
|
20
|
+
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
21
|
+
const derivedNamespace = vue.getCurrentInstance() ? vue.inject(namespaceContextKey, vue.ref(defaultNamespace)) : vue.ref(defaultNamespace);
|
|
22
|
+
const namespace = vue.computed(() => {
|
|
23
|
+
return vue.unref(derivedNamespace) || defaultNamespace;
|
|
24
|
+
});
|
|
25
|
+
return namespace;
|
|
26
|
+
};
|
|
27
|
+
const useNamespace = (block, namespaceOverrides) => {
|
|
28
|
+
const namespace = useGetDerivedNamespace();
|
|
29
|
+
const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
|
|
30
|
+
const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
|
|
31
|
+
const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
|
|
32
|
+
const be = (blockSuffix, element) => blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, "") : "";
|
|
33
|
+
const em = (element, modifier) => element && modifier ? _bem(namespace.value, block, "", element, modifier) : "";
|
|
34
|
+
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, "", modifier) : "";
|
|
35
|
+
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : "";
|
|
36
|
+
const is = (name, ...args) => {
|
|
37
|
+
const state = args.length >= 1 ? args[0] : true;
|
|
38
|
+
return name && state ? `${statePrefix}${name}` : "";
|
|
39
|
+
};
|
|
40
|
+
const cssVar = (object) => {
|
|
41
|
+
const styles = {};
|
|
42
|
+
for (const key in object) {
|
|
43
|
+
if (object[key]) {
|
|
44
|
+
styles[`--${namespace.value}-${key}`] = object[key];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return styles;
|
|
48
|
+
};
|
|
49
|
+
const cssVarBlock = (object) => {
|
|
50
|
+
const styles = {};
|
|
51
|
+
for (const key in object) {
|
|
52
|
+
if (object[key]) {
|
|
53
|
+
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return styles;
|
|
57
|
+
};
|
|
58
|
+
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
|
59
|
+
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
|
60
|
+
return {
|
|
61
|
+
namespace,
|
|
62
|
+
b,
|
|
63
|
+
e,
|
|
64
|
+
m,
|
|
65
|
+
be,
|
|
66
|
+
em,
|
|
67
|
+
bm,
|
|
68
|
+
bem,
|
|
69
|
+
is,
|
|
70
|
+
cssVar,
|
|
71
|
+
cssVarName,
|
|
72
|
+
cssVarBlock,
|
|
73
|
+
cssVarBlockName
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
exports.defaultNamespace = defaultNamespace;
|
|
77
|
+
exports.namespaceContextKey = namespaceContextKey;
|
|
78
|
+
exports.useGetDerivedNamespace = useGetDerivedNamespace;
|
|
79
|
+
exports.useNamespace = useNamespace;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const useProp = (name) => {
|
|
5
|
+
const vm = vue.getCurrentInstance();
|
|
6
|
+
return vue.computed(() => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
return (_b = (_a = vm == null ? void 0 : vm.proxy) == null ? void 0 : _a.$props) == null ? void 0 : _b[name];
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.useProp = useProp;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const runtime = require("../../utils/vue/props/runtime.js");
|
|
5
|
+
const size = require("../../constants/size.js");
|
|
6
|
+
const useSizeProp = runtime.buildProp({
|
|
7
|
+
type: String,
|
|
8
|
+
values: size.componentSizes,
|
|
9
|
+
required: false
|
|
10
|
+
});
|
|
11
|
+
const SIZE_INJECTION_KEY = Symbol("size");
|
|
12
|
+
const useGlobalSize = () => {
|
|
13
|
+
const injectedSize = vue.inject(SIZE_INJECTION_KEY, {});
|
|
14
|
+
return vue.computed(() => {
|
|
15
|
+
return vue.unref(injectedSize.size) || "";
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
exports.SIZE_INJECTION_KEY = SIZE_INJECTION_KEY;
|
|
19
|
+
exports.useGlobalSize = useGlobalSize;
|
|
20
|
+
exports.useSizeProp = useSizeProp;
|