@tagplus/components 5.3.11 → 5.3.12
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/node_modules/@element-plus/icons-vue/dist/index.mjs +29 -20
- package/dist/es/node_modules/@popperjs/core/lib/enums.mjs +22 -0
- package/dist/es/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +5 -0
- package/dist/es/node_modules/@vueuse/core/index.mjs +103 -58
- package/dist/es/node_modules/@vueuse/shared/index.mjs +47 -16
- package/dist/es/node_modules/element-plus/es/constants/size.mjs +1 -6
- package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +39 -14
- package/dist/es/node_modules/element-plus/es/hooks/use-id/index.mjs +8 -5
- package/dist/es/node_modules/element-plus/es/hooks/use-locale/index.mjs +12 -7
- package/dist/es/node_modules/element-plus/es/hooks/use-namespace/index.mjs +22 -7
- package/dist/es/node_modules/element-plus/es/hooks/use-prop/index.mjs +4 -1
- package/dist/es/node_modules/element-plus/es/hooks/use-size/index.mjs +3 -3
- package/dist/es/node_modules/element-plus/es/locale/lang/en.mjs +31 -28
- package/dist/es/node_modules/element-plus/es/utils/dom/aria.mjs +14 -6
- package/dist/es/node_modules/element-plus/es/utils/error.mjs +3 -4
- 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 +25 -19
- package/dist/es/src/components/Autosuggest/Autosuggest.vue.mjs +1 -1
- package/dist/es/src/components/Autosuggest/autosuggest-props.mjs +2 -2
- package/dist/es/src/components/Autosuggest/option.vue.mjs +2 -2
- package/dist/es/src/components/Autosuggest/select-dropdown.vue.mjs +2 -2
- package/dist/es/src/components/Autosuggest/useSelect.mjs +1 -1
- package/dist/es/src/components/Inline/Inline.vue.mjs +1 -1
- package/dist/es/src/components/InputNumber/InputNumber.vue.mjs +2 -2
- package/dist/es/src/components/InputNumber/input-number.mjs +1 -1
- package/dist/es/src/components/Loader/Loader.vue.mjs +1 -1
- package/dist/es/src/components/Money/Money.vue.mjs +1 -1
- package/dist/es/src/components/OptionsList/OptionsList.vue.mjs +1 -1
- package/dist/es/src/components/OptionsListItem/OptionsListItem.vue.mjs +1 -1
- package/dist/es/src/components/Percent/Percent.vue.mjs +3 -3
- package/dist/es/src/components/Skeleton/Skeleton.vue.mjs +1 -1
- package/dist/es/src/components/Step/Step.vue.mjs +1 -1
- package/dist/es/src/components/Tip/Tip.vue.mjs +9 -7
- package/dist/es/src/utils/constants.mjs +2 -2
- package/dist/es/src/utils/use-derived-namespace.mjs +1 -1
- package/dist/es/src/utils/use-form-common-props.mjs +1 -1
- package/dist/es/src/utils/use-id.mjs +2 -2
- package/dist/lib/node_modules/@element-plus/icons-vue/dist/index.js +28 -19
- package/dist/lib/node_modules/@popperjs/core/lib/enums.js +22 -0
- package/dist/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +5 -0
- package/dist/lib/node_modules/@vueuse/core/index.js +100 -56
- package/dist/lib/node_modules/@vueuse/shared/index.js +46 -15
- package/dist/lib/node_modules/element-plus/es/constants/size.js +1 -6
- package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +39 -14
- package/dist/lib/node_modules/element-plus/es/hooks/use-id/index.js +8 -5
- package/dist/lib/node_modules/element-plus/es/hooks/use-locale/index.js +11 -6
- package/dist/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +22 -7
- package/dist/lib/node_modules/element-plus/es/hooks/use-prop/index.js +4 -1
- package/dist/lib/node_modules/element-plus/es/hooks/use-size/index.js +3 -3
- package/dist/lib/node_modules/element-plus/es/locale/lang/en.js +31 -28
- package/dist/lib/node_modules/element-plus/es/utils/dom/aria.js +14 -6
- package/dist/lib/node_modules/element-plus/es/utils/error.js +3 -4
- 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 +25 -19
- package/dist/lib/src/components/Autosuggest/autosuggest-props.js +2 -2
- package/dist/lib/src/components/Autosuggest/option.vue.js +2 -2
- package/dist/lib/src/components/Autosuggest/select-dropdown.vue.js +1 -1
- package/dist/lib/src/components/Autosuggest/useSelect.js +1 -1
- package/dist/lib/src/components/InputNumber/InputNumber.vue.js +1 -1
- package/dist/lib/src/components/InputNumber/input-number.js +1 -1
- package/dist/lib/src/components/Percent/Percent.vue.js +2 -2
- package/dist/lib/src/components/Tip/Tip.vue.js +8 -6
- package/dist/lib/src/utils/constants.js +2 -2
- package/dist/lib/src/utils/use-derived-namespace.js +1 -1
- package/dist/lib/src/utils/use-form-common-props.js +1 -1
- package/dist/lib/src/utils/use-id.js +1 -1
- package/package.json +1 -2
- package/dist/es/node_modules/@popperjs/core/dist/index.mjs +0 -586
- package/dist/lib/node_modules/@popperjs/core/dist/index.js +0 -586
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { componentSizes } from "../../constants/size.mjs";
|
|
2
|
-
import { buildProp } from "../../utils/vue/props/runtime.mjs";
|
|
3
1
|
import { inject, computed, unref } from "vue";
|
|
2
|
+
import { buildProp } from "../../utils/vue/props/runtime.mjs";
|
|
3
|
+
import { componentSizes } from "../../constants/size.mjs";
|
|
4
4
|
const useSizeProp = buildProp({
|
|
5
5
|
type: String,
|
|
6
6
|
values: componentSizes,
|
|
7
7
|
required: false
|
|
8
8
|
});
|
|
9
|
-
const SIZE_INJECTION_KEY =
|
|
9
|
+
const SIZE_INJECTION_KEY = Symbol("size");
|
|
10
10
|
const useGlobalSize = () => {
|
|
11
11
|
const injectedSize = inject(SIZE_INJECTION_KEY, {});
|
|
12
12
|
return computed(() => {
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var English = {
|
|
2
2
|
name: "en",
|
|
3
3
|
el: {
|
|
4
|
-
breadcrumb: {
|
|
4
|
+
breadcrumb: {
|
|
5
|
+
label: "Breadcrumb"
|
|
6
|
+
},
|
|
5
7
|
colorpicker: {
|
|
6
8
|
confirm: "OK",
|
|
7
9
|
clear: "Clear",
|
|
8
10
|
defaultLabel: "color picker",
|
|
9
11
|
description: "current color is {color}. press enter to select a new color.",
|
|
10
|
-
alphaLabel: "pick alpha value"
|
|
11
|
-
alphaDescription: "alpha {alpha}, current color is {color}",
|
|
12
|
-
hueLabel: "pick hue value",
|
|
13
|
-
hueDescription: "hue {hue}, current color is {color}",
|
|
14
|
-
svLabel: "pick saturation and brightness value",
|
|
15
|
-
svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
|
|
16
|
-
predefineDescription: "select {value} as the color"
|
|
12
|
+
alphaLabel: "pick alpha value"
|
|
17
13
|
},
|
|
18
14
|
datepicker: {
|
|
19
15
|
now: "Now",
|
|
@@ -48,6 +44,7 @@ var en_default = {
|
|
|
48
44
|
month10: "October",
|
|
49
45
|
month11: "November",
|
|
50
46
|
month12: "December",
|
|
47
|
+
week: "week",
|
|
51
48
|
weeks: {
|
|
52
49
|
sun: "Sun",
|
|
53
50
|
mon: "Mon",
|
|
@@ -91,8 +88,12 @@ var en_default = {
|
|
|
91
88
|
noData: "No data",
|
|
92
89
|
placeholder: "Select"
|
|
93
90
|
},
|
|
94
|
-
mention: {
|
|
95
|
-
|
|
91
|
+
mention: {
|
|
92
|
+
loading: "Loading"
|
|
93
|
+
},
|
|
94
|
+
dropdown: {
|
|
95
|
+
toggleDropdown: "Toggle Dropdown"
|
|
96
|
+
},
|
|
96
97
|
cascader: {
|
|
97
98
|
noMatch: "No matching data",
|
|
98
99
|
loading: "Loading",
|
|
@@ -112,8 +113,12 @@ var en_default = {
|
|
|
112
113
|
nextPages: "Next {pager} pages",
|
|
113
114
|
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
114
115
|
},
|
|
115
|
-
dialog: {
|
|
116
|
-
|
|
116
|
+
dialog: {
|
|
117
|
+
close: "Close this dialog"
|
|
118
|
+
},
|
|
119
|
+
drawer: {
|
|
120
|
+
close: "Close this dialog"
|
|
121
|
+
},
|
|
117
122
|
messagebox: {
|
|
118
123
|
title: "Message",
|
|
119
124
|
confirm: "OK",
|
|
@@ -137,22 +142,16 @@ var en_default = {
|
|
|
137
142
|
confirmFilter: "Confirm",
|
|
138
143
|
resetFilter: "Reset",
|
|
139
144
|
clearFilter: "All",
|
|
140
|
-
sumText: "Sum"
|
|
141
|
-
|
|
142
|
-
selectRowLabel: "Select this row",
|
|
143
|
-
expandRowLabel: "Expand this row",
|
|
144
|
-
collapseRowLabel: "Collapse this row",
|
|
145
|
-
sortLabel: "Sort by {column}",
|
|
146
|
-
filterLabel: "Filter by {column}"
|
|
147
|
-
},
|
|
148
|
-
tag: { close: "Close this tag" },
|
|
145
|
+
sumText: "Sum"
|
|
146
|
+
},
|
|
149
147
|
tour: {
|
|
150
148
|
next: "Next",
|
|
151
149
|
previous: "Previous",
|
|
152
|
-
finish: "Finish"
|
|
153
|
-
|
|
150
|
+
finish: "Finish"
|
|
151
|
+
},
|
|
152
|
+
tree: {
|
|
153
|
+
emptyText: "No Data"
|
|
154
154
|
},
|
|
155
|
-
tree: { emptyText: "No Data" },
|
|
156
155
|
transfer: {
|
|
157
156
|
noMatch: "No matching data",
|
|
158
157
|
noData: "No data",
|
|
@@ -161,8 +160,12 @@ var en_default = {
|
|
|
161
160
|
noCheckedFormat: "{total} items",
|
|
162
161
|
hasCheckedFormat: "{checked}/{total} checked"
|
|
163
162
|
},
|
|
164
|
-
image: {
|
|
165
|
-
|
|
163
|
+
image: {
|
|
164
|
+
error: "FAILED"
|
|
165
|
+
},
|
|
166
|
+
pageHeader: {
|
|
167
|
+
title: "Back"
|
|
168
|
+
},
|
|
166
169
|
popconfirm: {
|
|
167
170
|
confirmButtonText: "Yes",
|
|
168
171
|
cancelButtonText: "No"
|
|
@@ -175,5 +178,5 @@ var en_default = {
|
|
|
175
178
|
}
|
|
176
179
|
};
|
|
177
180
|
export {
|
|
178
|
-
|
|
181
|
+
English as default
|
|
179
182
|
};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
const isFocusable = (element) => {
|
|
2
|
-
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null)
|
|
3
|
-
|
|
2
|
+
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) {
|
|
3
|
+
return true;
|
|
4
|
+
}
|
|
5
|
+
if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
4
8
|
switch (element.nodeName) {
|
|
5
|
-
case "A":
|
|
9
|
+
case "A": {
|
|
6
10
|
return !!element.href && element.rel !== "ignore";
|
|
7
|
-
|
|
11
|
+
}
|
|
12
|
+
case "INPUT": {
|
|
8
13
|
return !(element.type === "hidden" || element.type === "file");
|
|
14
|
+
}
|
|
9
15
|
case "BUTTON":
|
|
10
16
|
case "SELECT":
|
|
11
|
-
case "TEXTAREA":
|
|
17
|
+
case "TEXTAREA": {
|
|
12
18
|
return true;
|
|
13
|
-
|
|
19
|
+
}
|
|
20
|
+
default: {
|
|
14
21
|
return false;
|
|
22
|
+
}
|
|
15
23
|
}
|
|
16
24
|
};
|
|
17
25
|
export {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { isString } from "../../../@vue/shared/dist/shared.esm-bundler.mjs";
|
|
2
|
-
|
|
3
|
-
var ElementPlusError = class extends Error {
|
|
2
|
+
class ElementPlusError extends Error {
|
|
4
3
|
constructor(m) {
|
|
5
4
|
super(m);
|
|
6
5
|
this.name = "ElementPlusError";
|
|
7
6
|
}
|
|
8
|
-
}
|
|
7
|
+
}
|
|
9
8
|
function debugWarn(scope, message) {
|
|
10
|
-
{
|
|
9
|
+
if (process.env.NODE_ENV !== "production") {
|
|
11
10
|
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
|
12
11
|
console.warn(error);
|
|
13
12
|
}
|
|
@@ -1,32 +1,38 @@
|
|
|
1
|
-
import { isObject, hasOwn } from "../../../../../@vue/shared/dist/shared.esm-bundler.mjs";
|
|
2
|
-
import "lodash-es";
|
|
3
1
|
import { warn } from "vue";
|
|
2
|
+
import "lodash-es";
|
|
3
|
+
import { isObject, hasOwn } from "../../../../../@vue/shared/dist/shared.esm-bundler.mjs";
|
|
4
4
|
const epPropKey = "__epPropKey";
|
|
5
5
|
const isEpProp = (val) => isObject(val) && !!val[epPropKey];
|
|
6
6
|
const buildProp = (prop, key) => {
|
|
7
|
-
if (!isObject(prop) || isEpProp(prop))
|
|
7
|
+
if (!isObject(prop) || isEpProp(prop))
|
|
8
|
+
return prop;
|
|
8
9
|
const { values, required, default: defaultValue, type, validator } = prop;
|
|
10
|
+
const _validator = values || validator ? (val) => {
|
|
11
|
+
let valid = false;
|
|
12
|
+
let allowedValues = [];
|
|
13
|
+
if (values) {
|
|
14
|
+
allowedValues = Array.from(values);
|
|
15
|
+
if (hasOwn(prop, "default")) {
|
|
16
|
+
allowedValues.push(defaultValue);
|
|
17
|
+
}
|
|
18
|
+
valid || (valid = allowedValues.includes(val));
|
|
19
|
+
}
|
|
20
|
+
if (validator)
|
|
21
|
+
valid || (valid = validator(val));
|
|
22
|
+
if (!valid && allowedValues.length > 0) {
|
|
23
|
+
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
24
|
+
warn(`Invalid prop: validation failed${""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
|
|
25
|
+
}
|
|
26
|
+
return valid;
|
|
27
|
+
} : void 0;
|
|
9
28
|
const epProp = {
|
|
10
29
|
type,
|
|
11
30
|
required: !!required,
|
|
12
|
-
validator:
|
|
13
|
-
let valid = false;
|
|
14
|
-
let allowedValues = [];
|
|
15
|
-
if (values) {
|
|
16
|
-
allowedValues = Array.from(values);
|
|
17
|
-
if (hasOwn(prop, "default")) allowedValues.push(defaultValue);
|
|
18
|
-
valid ||= allowedValues.includes(val);
|
|
19
|
-
}
|
|
20
|
-
if (validator) valid ||= validator(val);
|
|
21
|
-
if (!valid && allowedValues.length > 0) {
|
|
22
|
-
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
23
|
-
warn(`Invalid prop: validation failed${""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
|
|
24
|
-
}
|
|
25
|
-
return valid;
|
|
26
|
-
} : void 0,
|
|
31
|
+
validator: _validator,
|
|
27
32
|
[epPropKey]: true
|
|
28
33
|
};
|
|
29
|
-
if (hasOwn(prop, "default"))
|
|
34
|
+
if (hasOwn(prop, "default"))
|
|
35
|
+
epProp.default = defaultValue;
|
|
30
36
|
return epProp;
|
|
31
37
|
};
|
|
32
38
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import autosuggestProps from "./autosuggest-props.mjs";
|
|
2
2
|
import autosuggestCore from "./core.mjs";
|
|
3
|
-
import { resolveComponent, resolveDirective, withDirectives,
|
|
3
|
+
import { defineComponent, resolveComponent, resolveDirective, withDirectives, createElementBlock, openBlock, withModifiers, normalizeClass, createVNode, withCtx, createCommentVNode, Fragment, renderList, createBlock, renderSlot, createElementVNode, createTextVNode, toDisplayString, vShow, normalizeStyle, withKeys, vModelText } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
6
|
const autosuggestDefinition = autosuggestCore("TpAutosuggest", autosuggestProps);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { placements
|
|
1
|
+
import { placements } from "../../../node_modules/@popperjs/core/lib/enums.mjs";
|
|
2
2
|
const autosuggestProps = {
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated
|
|
@@ -138,7 +138,7 @@ const autosuggestProps = {
|
|
|
138
138
|
*/
|
|
139
139
|
placement: {
|
|
140
140
|
type: String,
|
|
141
|
-
values:
|
|
141
|
+
values: placements,
|
|
142
142
|
default: "bottom-start"
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useOption } from "./useOption.mjs";
|
|
2
|
+
import { defineComponent, withDirectives, createElementBlock, openBlock, withModifiers, normalizeClass, renderSlot, createElementVNode, toDisplayString, vShow, computed, unref, toRefs, reactive, getCurrentInstance, onBeforeUnmount, nextTick } from "vue";
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
4
|
import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
|
|
3
5
|
import { useId } from "../../../node_modules/element-plus/es/hooks/use-id/index.mjs";
|
|
4
|
-
import { withDirectives, openBlock, createElementBlock, withModifiers, normalizeClass, renderSlot, createElementVNode, toDisplayString, vShow, defineComponent, computed, unref, reactive, toRefs, getCurrentInstance, onBeforeUnmount, nextTick } from "vue";
|
|
5
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
6
|
const _sfc_main = defineComponent({
|
|
7
7
|
name: "ElOption",
|
|
8
8
|
componentName: "ElOption",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useResizeObserver } from "../../../node_modules/@vueuse/core/index.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot, createCommentVNode, defineComponent, ref } from "vue";
|
|
2
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, renderSlot, ref } from "vue";
|
|
4
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
|
|
5
5
|
const _sfc_main = defineComponent({
|
|
6
6
|
name: "ElSelectDropdown",
|
|
7
7
|
componentName: "ElSelectDropdown",
|
|
@@ -10,8 +10,8 @@ import { useFormSize } from "../../utils/use-form-common-props.mjs";
|
|
|
10
10
|
import { useFormItem, useFormItemInputId } from "../../utils/use-form-item.mjs";
|
|
11
11
|
import { useInput } from "../../utils/use-input.mjs";
|
|
12
12
|
import { useLocale } from "../../../node_modules/element-plus/es/hooks/use-locale/index.mjs";
|
|
13
|
-
import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
|
|
14
13
|
import { useId } from "../../../node_modules/element-plus/es/hooks/use-id/index.mjs";
|
|
14
|
+
import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
|
|
15
15
|
import { useFocusController } from "../../../node_modules/element-plus/es/hooks/use-focus-controller/index.mjs";
|
|
16
16
|
import { isClient } from "../../../node_modules/@vueuse/shared/index.mjs";
|
|
17
17
|
const UPDATE_MODEL_EVENT = "update:modelValue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Check as check_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
2
2
|
import { ElInput, ElButton } from "element-plus";
|
|
3
|
-
import { resolveComponent, openBlock,
|
|
3
|
+
import { defineComponent, resolveComponent, createElementBlock, openBlock, createBlock, createElementVNode, withKeys, createCommentVNode, toDisplayString, withCtx, createVNode, createTextVNode } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
6
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, getCurrentInstance, reactive, computed, watch, onMounted, onUpdated,
|
|
1
|
+
import { ref, getCurrentInstance, reactive, computed, watch, onMounted, onUpdated, createElementBlock, openBlock, withModifiers, normalizeClass, unref, withDirectives, createCommentVNode, createBlock, withKeys, createVNode, withCtx } from "vue";
|
|
2
2
|
import { inputNumberEmits, inputNumberProps } from "./input-number.mjs";
|
|
3
3
|
import { ArrowDown as arrow_down_default, Minus as minus_default, ArrowUp as arrow_up_default, Plus as plus_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
4
4
|
import { debugWarn, throwError } from "../../utils/error.mjs";
|
|
@@ -6,9 +6,9 @@ import { isNumber, isUndefined } from "../../utils/types.mjs";
|
|
|
6
6
|
import { useFormSize, useFormDisabled } from "../../utils/use-form-common-props.mjs";
|
|
7
7
|
import { useFormItem } from "../../utils/use-form-item.mjs";
|
|
8
8
|
import { ElIcon, vRepeatClick, ElInput } from "element-plus";
|
|
9
|
+
import { isNil } from "lodash-es";
|
|
9
10
|
import { useLocale } from "../../../node_modules/element-plus/es/hooks/use-locale/index.mjs";
|
|
10
11
|
import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
|
|
11
|
-
import { isNil } from "lodash-es";
|
|
12
12
|
import { isString } from "../../../node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
|
|
13
13
|
const _hoisted_1 = ["aria-label"];
|
|
14
14
|
const _hoisted_2 = ["aria-label"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from "../../utils/index.mjs";
|
|
2
|
-
import { useSizeProp } from "../../../node_modules/element-plus/es/hooks/use-size/index.mjs";
|
|
3
2
|
import { isNil } from "lodash-es";
|
|
4
3
|
import { buildProps } from "../../utils/runtime.mjs";
|
|
4
|
+
import { useSizeProp } from "../../../node_modules/element-plus/es/hooks/use-size/index.mjs";
|
|
5
5
|
import { isNumber } from "../../utils/types.mjs";
|
|
6
6
|
const inputNumberProps = buildProps({
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, createStaticVNode, Fragment, renderList, normalizeStyle, normalizeClass, renderSlot } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import floatFormatterMixin from "../../mixins/floatFormatter.mjs";
|
|
2
2
|
import { ElInput } from "element-plus";
|
|
3
|
-
import {
|
|
3
|
+
import { defineComponent, resolveComponent, createBlock, openBlock, mergeProps, createSlots, withCtx, renderList, createTextVNode, toDisplayString, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
6
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, withKeys, normalizeClass, createElementVNode, createCommentVNode, Fragment, renderList, toDisplayString } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import floatFormatterMixin from "../../mixins/floatFormatter.mjs";
|
|
2
2
|
import { ElInput } from "element-plus";
|
|
3
|
-
import {
|
|
3
|
+
import { defineComponent, resolveComponent, createBlock, openBlock, mergeProps, createSlots, withCtx, createTextVNode } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
6
|
const _sfc_main = defineComponent({
|
|
@@ -58,14 +58,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58
58
|
!_ctx.removePrepend ? {
|
|
59
59
|
name: "prepend",
|
|
60
60
|
fn: withCtx(() => [
|
|
61
|
-
_cache[1] || (_cache[1] = createTextVNode(" % "
|
|
61
|
+
_cache[1] || (_cache[1] = createTextVNode(" % "))
|
|
62
62
|
]),
|
|
63
63
|
key: "0"
|
|
64
64
|
} : void 0,
|
|
65
65
|
_ctx.showAppend ? {
|
|
66
66
|
name: "append",
|
|
67
67
|
fn: withCtx(() => [
|
|
68
|
-
_cache[2] || (_cache[2] = createTextVNode(" % "
|
|
68
|
+
_cache[2] || (_cache[2] = createTextVNode(" % "))
|
|
69
69
|
]),
|
|
70
70
|
key: "1"
|
|
71
71
|
} : void 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, normalizeStyle, normalizeClass } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, renderSlot, createCommentVNode, toDisplayString, createTextVNode } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElCol, ElRow } from "element-plus";
|
|
2
|
-
import { resolveComponent,
|
|
2
|
+
import { resolveComponent, createBlock, openBlock, normalizeClass, withCtx, createVNode, createElementVNode, toDisplayString, createElementBlock } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
5
|
const _sfc_main = {
|
|
@@ -70,10 +70,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
70
70
|
sm: 1,
|
|
71
71
|
class: "icone"
|
|
72
72
|
}, {
|
|
73
|
-
default: withCtx(() =>
|
|
73
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
74
74
|
createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
|
|
75
|
-
])
|
|
76
|
-
_: 1
|
|
75
|
+
])),
|
|
76
|
+
_: 1,
|
|
77
|
+
__: [2]
|
|
77
78
|
}),
|
|
78
79
|
createVNode(_component_el_col, {
|
|
79
80
|
xs: 21,
|
|
@@ -103,10 +104,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
104
|
}, {
|
|
104
105
|
default: withCtx(() => [
|
|
105
106
|
createVNode(_component_el_row, { justify: "start" }, {
|
|
106
|
-
default: withCtx(() =>
|
|
107
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
107
108
|
createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
|
|
108
|
-
])
|
|
109
|
-
_: 1
|
|
109
|
+
])),
|
|
110
|
+
_: 1,
|
|
111
|
+
__: [3]
|
|
110
112
|
})
|
|
111
113
|
]),
|
|
112
114
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const formContextKey =
|
|
2
|
-
const formItemContextKey =
|
|
1
|
+
const formContextKey = Symbol("formContextKey");
|
|
2
|
+
const formItemContextKey = Symbol("formItemContextKey");
|
|
3
3
|
export {
|
|
4
4
|
formContextKey,
|
|
5
5
|
formItemContextKey
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCurrentInstance, inject, ref, computed, unref } from "vue";
|
|
2
2
|
const defaultNamespace = "el";
|
|
3
|
-
const namespaceContextKey =
|
|
3
|
+
const namespaceContextKey = Symbol("namespaceContextKey");
|
|
4
4
|
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
5
5
|
const derivedNamespace = getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace);
|
|
6
6
|
const namespace = computed(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formContextKey, formItemContextKey } from "./constants.mjs";
|
|
2
|
+
import { ref, inject, computed, unref } from "vue";
|
|
2
3
|
import { useProp } from "../../node_modules/element-plus/es/hooks/use-prop/index.mjs";
|
|
3
4
|
import { useGlobalSize } from "../../node_modules/element-plus/es/hooks/use-size/index.mjs";
|
|
4
|
-
import { ref, inject, computed, unref } from "vue";
|
|
5
5
|
const useFormSize = (fallback, ignore = {}) => {
|
|
6
6
|
const emptyRef = ref(void 0);
|
|
7
7
|
const size = ignore.prop ? emptyRef : useProp("size");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { debugWarn } from "./error.mjs";
|
|
2
2
|
import { useGetDerivedNamespace } from "./use-derived-namespace.mjs";
|
|
3
|
-
import { computed, unref,
|
|
3
|
+
import { computed, unref, inject, getCurrentInstance } from "vue";
|
|
4
4
|
import { isClient } from "../../node_modules/@vueuse/shared/index.mjs";
|
|
5
5
|
const defaultIdInjection = {
|
|
6
6
|
prefix: Math.floor(Math.random() * 1e4),
|
|
7
7
|
current: 0
|
|
8
8
|
};
|
|
9
|
-
const ID_INJECTION_KEY =
|
|
9
|
+
const ID_INJECTION_KEY = Symbol("elIdInjection");
|
|
10
10
|
const useIdInjection = () => {
|
|
11
11
|
return getCurrentInstance() ? inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection;
|
|
12
12
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
|
|
4
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
5
|
+
var arrow_down_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
5
6
|
name: "ArrowDown",
|
|
6
7
|
__name: "arrow-down",
|
|
7
8
|
setup(__props) {
|
|
@@ -11,12 +12,13 @@ var _sfc_main6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11
12
|
}, [
|
|
12
13
|
vue.createElementVNode("path", {
|
|
13
14
|
fill: "currentColor",
|
|
14
|
-
d: "M831.872 340.864 512 652.672 192.128 340.864a30.
|
|
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"
|
|
15
16
|
})
|
|
16
17
|
]));
|
|
17
18
|
}
|
|
18
|
-
})
|
|
19
|
-
var
|
|
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({
|
|
20
22
|
name: "ArrowUp",
|
|
21
23
|
__name: "arrow-up",
|
|
22
24
|
setup(__props) {
|
|
@@ -30,8 +32,9 @@ var _sfc_main12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
32
|
})
|
|
31
33
|
]));
|
|
32
34
|
}
|
|
33
|
-
})
|
|
34
|
-
var
|
|
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({
|
|
35
38
|
name: "Check",
|
|
36
39
|
__name: "check",
|
|
37
40
|
setup(__props) {
|
|
@@ -45,8 +48,9 @@ var _sfc_main43 = /* @__PURE__ */ vue.defineComponent({
|
|
|
45
48
|
})
|
|
46
49
|
]));
|
|
47
50
|
}
|
|
48
|
-
})
|
|
49
|
-
var
|
|
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({
|
|
50
54
|
name: "CircleCheck",
|
|
51
55
|
__name: "circle-check",
|
|
52
56
|
setup(__props) {
|
|
@@ -60,12 +64,13 @@ var _sfc_main49 = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
64
|
}),
|
|
61
65
|
vue.createElementVNode("path", {
|
|
62
66
|
fill: "currentColor",
|
|
63
|
-
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.
|
|
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"
|
|
64
68
|
})
|
|
65
69
|
]));
|
|
66
70
|
}
|
|
67
|
-
})
|
|
68
|
-
var
|
|
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({
|
|
69
74
|
name: "CircleClose",
|
|
70
75
|
__name: "circle-close",
|
|
71
76
|
setup(__props) {
|
|
@@ -83,8 +88,9 @@ var _sfc_main51 = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
88
|
})
|
|
84
89
|
]));
|
|
85
90
|
}
|
|
86
|
-
})
|
|
87
|
-
var
|
|
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({
|
|
88
94
|
name: "Loading",
|
|
89
95
|
__name: "loading",
|
|
90
96
|
setup(__props) {
|
|
@@ -94,12 +100,13 @@ var _sfc_main150 = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
100
|
}, [
|
|
95
101
|
vue.createElementVNode("path", {
|
|
96
102
|
fill: "currentColor",
|
|
97
|
-
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.
|
|
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"
|
|
98
104
|
})
|
|
99
105
|
]));
|
|
100
106
|
}
|
|
101
|
-
})
|
|
102
|
-
var
|
|
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({
|
|
103
110
|
name: "Minus",
|
|
104
111
|
__name: "minus",
|
|
105
112
|
setup(__props) {
|
|
@@ -113,8 +120,9 @@ var _sfc_main169 = /* @__PURE__ */ vue.defineComponent({
|
|
|
113
120
|
})
|
|
114
121
|
]));
|
|
115
122
|
}
|
|
116
|
-
})
|
|
117
|
-
var
|
|
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({
|
|
118
126
|
name: "Plus",
|
|
119
127
|
__name: "plus",
|
|
120
128
|
setup(__props) {
|
|
@@ -128,7 +136,8 @@ var _sfc_main201 = /* @__PURE__ */ vue.defineComponent({
|
|
|
128
136
|
})
|
|
129
137
|
]));
|
|
130
138
|
}
|
|
131
|
-
})
|
|
139
|
+
});
|
|
140
|
+
var plus_default = plus_vue_vue_type_script_setup_true_lang_default;
|
|
132
141
|
exports.ArrowDown = arrow_down_default;
|
|
133
142
|
exports.ArrowUp = arrow_up_default;
|
|
134
143
|
exports.Check = check_default;
|