@tagplus/components 5.3.8 → 5.3.11
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 +20 -29
- package/dist/es/node_modules/@popperjs/core/dist/index.mjs +586 -0
- package/dist/es/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +0 -5
- package/dist/es/node_modules/@vueuse/core/index.mjs +58 -103
- package/dist/es/node_modules/@vueuse/shared/index.mjs +16 -47
- package/dist/es/node_modules/element-plus/es/constants/size.mjs +6 -1
- package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +14 -39
- package/dist/es/node_modules/element-plus/es/hooks/use-id/index.mjs +5 -8
- package/dist/es/node_modules/element-plus/es/hooks/use-locale/index.mjs +7 -12
- package/dist/es/node_modules/element-plus/es/hooks/use-namespace/index.mjs +7 -22
- package/dist/es/node_modules/element-plus/es/hooks/use-prop/index.mjs +1 -4
- 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 +28 -31
- package/dist/es/node_modules/element-plus/es/utils/dom/aria.mjs +6 -14
- package/dist/es/node_modules/element-plus/es/utils/error.mjs +4 -3
- package/dist/es/node_modules/element-plus/es/utils/vue/props/runtime.mjs +19 -25
- 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 +25 -9
- package/dist/es/src/components/InputNumber/input-number.mjs +10 -2
- 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 +7 -9
- 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 +19 -28
- package/dist/lib/node_modules/@popperjs/core/dist/index.js +586 -0
- package/dist/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -5
- package/dist/lib/node_modules/@vueuse/core/index.js +56 -100
- package/dist/lib/node_modules/@vueuse/shared/index.js +15 -46
- package/dist/lib/node_modules/element-plus/es/constants/size.js +6 -1
- package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +14 -39
- package/dist/lib/node_modules/element-plus/es/hooks/use-id/index.js +5 -8
- package/dist/lib/node_modules/element-plus/es/hooks/use-locale/index.js +6 -11
- package/dist/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +7 -22
- package/dist/lib/node_modules/element-plus/es/hooks/use-prop/index.js +1 -4
- 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 +28 -31
- package/dist/lib/node_modules/element-plus/es/utils/dom/aria.js +6 -14
- package/dist/lib/node_modules/element-plus/es/utils/error.js +4 -3
- package/dist/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +19 -25
- 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 +24 -8
- package/dist/lib/src/components/InputNumber/input-number.js +10 -2
- package/dist/lib/src/components/Percent/Percent.vue.js +2 -2
- package/dist/lib/src/components/Tip/Tip.vue.js +6 -8
- 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 -1
- package/dist/es/node_modules/@popperjs/core/lib/enums.mjs +0 -22
- package/dist/es/node_modules/element-plus/es/utils/types.mjs +0 -9
- package/dist/lib/node_modules/@popperjs/core/lib/enums.js +0 -22
- package/dist/lib/node_modules/element-plus/es/utils/types.js +0 -9
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
const isFocusable = (element) => {
|
|
2
|
-
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null)
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") {
|
|
6
|
-
return false;
|
|
7
|
-
}
|
|
2
|
+
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) return true;
|
|
3
|
+
if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") return false;
|
|
8
4
|
switch (element.nodeName) {
|
|
9
|
-
case "A":
|
|
5
|
+
case "A":
|
|
10
6
|
return !!element.href && element.rel !== "ignore";
|
|
11
|
-
|
|
12
|
-
case "INPUT": {
|
|
7
|
+
case "INPUT":
|
|
13
8
|
return !(element.type === "hidden" || element.type === "file");
|
|
14
|
-
}
|
|
15
9
|
case "BUTTON":
|
|
16
10
|
case "SELECT":
|
|
17
|
-
case "TEXTAREA":
|
|
11
|
+
case "TEXTAREA":
|
|
18
12
|
return true;
|
|
19
|
-
|
|
20
|
-
default: {
|
|
13
|
+
default:
|
|
21
14
|
return false;
|
|
22
|
-
}
|
|
23
15
|
}
|
|
24
16
|
};
|
|
25
17
|
export {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { isString } from "../../../@vue/shared/dist/shared.esm-bundler.mjs";
|
|
2
|
-
|
|
2
|
+
import "lodash-es";
|
|
3
|
+
var ElementPlusError = class extends Error {
|
|
3
4
|
constructor(m) {
|
|
4
5
|
super(m);
|
|
5
6
|
this.name = "ElementPlusError";
|
|
6
7
|
}
|
|
7
|
-
}
|
|
8
|
+
};
|
|
8
9
|
function debugWarn(scope, message) {
|
|
9
|
-
|
|
10
|
+
{
|
|
10
11
|
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
|
11
12
|
console.warn(error);
|
|
12
13
|
}
|
|
@@ -1,38 +1,32 @@
|
|
|
1
|
-
import { warn } from "vue";
|
|
2
|
-
import "lodash-es";
|
|
3
1
|
import { isObject, hasOwn } from "../../../../../@vue/shared/dist/shared.esm-bundler.mjs";
|
|
2
|
+
import "lodash-es";
|
|
3
|
+
import { warn } from "vue";
|
|
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))
|
|
8
|
-
return prop;
|
|
7
|
+
if (!isObject(prop) || isEpProp(prop)) return prop;
|
|
9
8
|
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;
|
|
28
9
|
const epProp = {
|
|
29
10
|
type,
|
|
30
11
|
required: !!required,
|
|
31
|
-
validator:
|
|
12
|
+
validator: values || validator ? (val) => {
|
|
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,
|
|
32
27
|
[epPropKey]: true
|
|
33
28
|
};
|
|
34
|
-
if (hasOwn(prop, "default"))
|
|
35
|
-
epProp.default = defaultValue;
|
|
29
|
+
if (hasOwn(prop, "default")) epProp.default = defaultValue;
|
|
36
30
|
return epProp;
|
|
37
31
|
};
|
|
38
32
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import autosuggestProps from "./autosuggest-props.mjs";
|
|
2
2
|
import autosuggestCore from "./core.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, withModifiers, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode, createTextVNode, toDisplayString, renderSlot, vShow, createCommentVNode, normalizeStyle, withKeys, vModelText, defineComponent } 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 } from "../../../node_modules/@popperjs/core/
|
|
1
|
+
import { placements as Ee } from "../../../node_modules/@popperjs/core/dist/index.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: Ee,
|
|
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";
|
|
4
2
|
import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
|
|
5
3
|
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 { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, renderSlot, ref } from "vue";
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
2
|
import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
|
|
3
|
+
import { openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot, createCommentVNode, defineComponent, ref } from "vue";
|
|
4
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.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 { useId } from "../../../node_modules/element-plus/es/hooks/use-id/index.mjs";
|
|
14
13
|
import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
|
|
14
|
+
import { useId } from "../../../node_modules/element-plus/es/hooks/use-id/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 {
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, withKeys, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, createTextVNode, defineComponent } 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, openBlock, createElementBlock, withModifiers, normalizeClass, unref, withDirectives, withKeys, createVNode, withCtx, createBlock, createCommentVNode } 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";
|
|
10
9
|
import { useLocale } from "../../../node_modules/element-plus/es/hooks/use-locale/index.mjs";
|
|
11
10
|
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"];
|
|
@@ -59,6 +59,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
59
59
|
});
|
|
60
60
|
const inputNumberSize = useFormSize();
|
|
61
61
|
const inputNumberDisabled = useFormDisabled();
|
|
62
|
+
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
63
|
+
const toNumberValue = (value) => {
|
|
64
|
+
if (value === "") return null;
|
|
65
|
+
const normalizedValue = String(value).replace(",", ".");
|
|
66
|
+
const parsedValue = Number(normalizedValue);
|
|
67
|
+
return Number.isNaN(parsedValue) ? null : parsedValue;
|
|
68
|
+
};
|
|
62
69
|
const displayValue = computed(() => {
|
|
63
70
|
if (data.userInput !== null) {
|
|
64
71
|
return data.userInput;
|
|
@@ -80,18 +87,26 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
80
87
|
const decimalChar = vm.$t("locale.number.decimal");
|
|
81
88
|
const thousandsChar = vm.$t("locale.number.thousands");
|
|
82
89
|
return (value) => {
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
|
|
90
|
+
if (value === null || value === void 0) return value;
|
|
91
|
+
const noLetters = String(value).replaceAll(/[a-zA-Z]/g, "");
|
|
92
|
+
if (!props.usarVirgula) {
|
|
93
|
+
return noLetters;
|
|
94
|
+
}
|
|
95
|
+
return noLetters.replace(".", decimalChar).replace(/\B(?=(\d{3})+(?!\d))/g, thousandsChar);
|
|
86
96
|
};
|
|
87
97
|
});
|
|
88
98
|
const inputParser = computed(() => {
|
|
89
99
|
const decimalChar = vm.$t("locale.number.decimal");
|
|
90
100
|
const thousandsChar = vm.$t("locale.number.thousands");
|
|
91
101
|
return (value) => {
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
102
|
+
if (!value) return value;
|
|
103
|
+
const inputValue = String(value).replaceAll(/[a-zA-Z]/g, "");
|
|
104
|
+
if (props.usarVirgula) {
|
|
105
|
+
const thousandsRegex = new RegExp(escapeRegExp(thousandsChar), "g");
|
|
106
|
+
const withoutThousands = inputValue.replace(thousandsRegex, "");
|
|
107
|
+
return withoutThousands.replace(decimalChar, ".");
|
|
108
|
+
}
|
|
109
|
+
return inputValue.replaceAll(",", "");
|
|
95
110
|
};
|
|
96
111
|
});
|
|
97
112
|
const toPrecision = (num, pre) => {
|
|
@@ -184,8 +199,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
184
199
|
};
|
|
185
200
|
const handleInput = (value) => {
|
|
186
201
|
data.userInput = value;
|
|
187
|
-
const newVal =
|
|
202
|
+
const newVal = toNumberValue(value);
|
|
188
203
|
emit(INPUT_EVENT, newVal);
|
|
204
|
+
emit(CHANGE_EVENT, newVal, data.currentValue);
|
|
189
205
|
setCurrentValue(newVal, false);
|
|
190
206
|
};
|
|
191
207
|
const handleInputChange = (value) => {
|
|
@@ -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";
|
|
2
3
|
import { isNil } from "lodash-es";
|
|
3
4
|
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
|
/**
|
|
@@ -113,10 +113,18 @@ const inputNumberProps = buildProps({
|
|
|
113
113
|
stringDefaultsZero: {
|
|
114
114
|
type: Boolean,
|
|
115
115
|
default: true
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
* @tagplus
|
|
119
|
+
* Permite usar virgula como separador decimal na digitacao
|
|
120
|
+
**/
|
|
121
|
+
usarVirgula: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: true
|
|
116
124
|
}
|
|
117
125
|
});
|
|
118
126
|
const inputNumberEmits = {
|
|
119
|
-
[CHANGE_EVENT]: (cur, prev) => prev
|
|
127
|
+
[CHANGE_EVENT]: (cur, prev) => (isNumber(cur) || isNil(cur) || cur === "") && (isNumber(prev) || isNil(prev) || prev === ""),
|
|
120
128
|
blur: (e) => e instanceof FocusEvent,
|
|
121
129
|
focus: (e) => e instanceof FocusEvent,
|
|
122
130
|
[INPUT_EVENT]: (val) => isNumber(val) || isNil(val),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode, createStaticVNode, Fragment, renderList, normalizeStyle, normalizeClass, renderSlot, defineComponent } 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 { resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, createTextVNode, toDisplayString, renderList, renderSlot, normalizeProps, guardReactiveProps, defineComponent } 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 { openBlock, createElementBlock, normalizeClass, renderSlot, defineComponent } 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 { openBlock, createElementBlock, withKeys, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString, createCommentVNode, defineComponent } 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 { resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, createTextVNode, defineComponent } 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(" % ", -1))
|
|
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(" % ", -1))
|
|
69
69
|
]),
|
|
70
70
|
key: "1"
|
|
71
71
|
} : void 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock, createElementBlock, Fragment, renderList, normalizeStyle, normalizeClass, defineComponent } 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 { openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, renderSlot, createCommentVNode, toDisplayString, createTextVNode, defineComponent } 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, openBlock, createBlock, 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,11 +70,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
70
70
|
sm: 1,
|
|
71
71
|
class: "icone"
|
|
72
72
|
}, {
|
|
73
|
-
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
73
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
74
74
|
createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
|
|
75
|
-
])),
|
|
76
|
-
_: 1
|
|
77
|
-
__: [2]
|
|
75
|
+
])]),
|
|
76
|
+
_: 1
|
|
78
77
|
}),
|
|
79
78
|
createVNode(_component_el_col, {
|
|
80
79
|
xs: 21,
|
|
@@ -104,11 +103,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
104
103
|
}, {
|
|
105
104
|
default: withCtx(() => [
|
|
106
105
|
createVNode(_component_el_row, { justify: "start" }, {
|
|
107
|
-
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
106
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
108
107
|
createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
|
|
109
|
-
])),
|
|
110
|
-
_: 1
|
|
111
|
-
__: [3]
|
|
108
|
+
])]),
|
|
109
|
+
_: 1
|
|
112
110
|
})
|
|
113
111
|
]),
|
|
114
112
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const formContextKey = Symbol("formContextKey");
|
|
2
|
-
const formItemContextKey = Symbol("formItemContextKey");
|
|
1
|
+
const formContextKey = /* @__PURE__ */ Symbol("formContextKey");
|
|
2
|
+
const formItemContextKey = /* @__PURE__ */ 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 = Symbol("namespaceContextKey");
|
|
3
|
+
const namespaceContextKey = /* @__PURE__ */ 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";
|
|
3
2
|
import { useProp } from "../../node_modules/element-plus/es/hooks/use-prop/index.mjs";
|
|
4
3
|
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, getCurrentInstance, inject } 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 = Symbol("elIdInjection");
|
|
9
|
+
const ID_INJECTION_KEY = /* @__PURE__ */ Symbol("elIdInjection");
|
|
10
10
|
const useIdInjection = () => {
|
|
11
11
|
return getCurrentInstance() ? inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection;
|
|
12
12
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
|
|
5
|
-
var arrow_down_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
4
|
+
var _sfc_main6 = /* @__PURE__ */ vue.defineComponent({
|
|
6
5
|
name: "ArrowDown",
|
|
7
6
|
__name: "arrow-down",
|
|
8
7
|
setup(__props) {
|
|
@@ -12,13 +11,12 @@ var arrow_down_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue
|
|
|
12
11
|
}, [
|
|
13
12
|
vue.createElementVNode("path", {
|
|
14
13
|
fill: "currentColor",
|
|
15
|
-
d: "M831.872 340.864 512 652.672 192.128 340.864a30.
|
|
14
|
+
d: "M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 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.59 30.59 0 0 0-42.752 0z"
|
|
16
15
|
})
|
|
17
16
|
]));
|
|
18
17
|
}
|
|
19
|
-
});
|
|
20
|
-
var
|
|
21
|
-
var arrow_up_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
18
|
+
}), arrow_down_default = _sfc_main6;
|
|
19
|
+
var _sfc_main12 = /* @__PURE__ */ vue.defineComponent({
|
|
22
20
|
name: "ArrowUp",
|
|
23
21
|
__name: "arrow-up",
|
|
24
22
|
setup(__props) {
|
|
@@ -32,9 +30,8 @@ var arrow_up_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.d
|
|
|
32
30
|
})
|
|
33
31
|
]));
|
|
34
32
|
}
|
|
35
|
-
});
|
|
36
|
-
var
|
|
37
|
-
var check_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
33
|
+
}), arrow_up_default = _sfc_main12;
|
|
34
|
+
var _sfc_main43 = /* @__PURE__ */ vue.defineComponent({
|
|
38
35
|
name: "Check",
|
|
39
36
|
__name: "check",
|
|
40
37
|
setup(__props) {
|
|
@@ -48,9 +45,8 @@ var check_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defi
|
|
|
48
45
|
})
|
|
49
46
|
]));
|
|
50
47
|
}
|
|
51
|
-
});
|
|
52
|
-
var
|
|
53
|
-
var circle_check_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
48
|
+
}), check_default = _sfc_main43;
|
|
49
|
+
var _sfc_main49 = /* @__PURE__ */ vue.defineComponent({
|
|
54
50
|
name: "CircleCheck",
|
|
55
51
|
__name: "circle-check",
|
|
56
52
|
setup(__props) {
|
|
@@ -64,13 +60,12 @@ var circle_check_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ v
|
|
|
64
60
|
}),
|
|
65
61
|
vue.createElementVNode("path", {
|
|
66
62
|
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.
|
|
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.752z"
|
|
68
64
|
})
|
|
69
65
|
]));
|
|
70
66
|
}
|
|
71
|
-
});
|
|
72
|
-
var
|
|
73
|
-
var circle_close_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
67
|
+
}), circle_check_default = _sfc_main49;
|
|
68
|
+
var _sfc_main51 = /* @__PURE__ */ vue.defineComponent({
|
|
74
69
|
name: "CircleClose",
|
|
75
70
|
__name: "circle-close",
|
|
76
71
|
setup(__props) {
|
|
@@ -88,9 +83,8 @@ var circle_close_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ v
|
|
|
88
83
|
})
|
|
89
84
|
]));
|
|
90
85
|
}
|
|
91
|
-
});
|
|
92
|
-
var
|
|
93
|
-
var loading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
86
|
+
}), circle_close_default = _sfc_main51;
|
|
87
|
+
var _sfc_main150 = /* @__PURE__ */ vue.defineComponent({
|
|
94
88
|
name: "Loading",
|
|
95
89
|
__name: "loading",
|
|
96
90
|
setup(__props) {
|
|
@@ -100,13 +94,12 @@ var loading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.de
|
|
|
100
94
|
}, [
|
|
101
95
|
vue.createElementVNode("path", {
|
|
102
96
|
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.
|
|
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.248m452.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.248M828.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 0"
|
|
104
98
|
})
|
|
105
99
|
]));
|
|
106
100
|
}
|
|
107
|
-
});
|
|
108
|
-
var
|
|
109
|
-
var minus_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
101
|
+
}), loading_default = _sfc_main150;
|
|
102
|
+
var _sfc_main169 = /* @__PURE__ */ vue.defineComponent({
|
|
110
103
|
name: "Minus",
|
|
111
104
|
__name: "minus",
|
|
112
105
|
setup(__props) {
|
|
@@ -120,9 +113,8 @@ var minus_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defi
|
|
|
120
113
|
})
|
|
121
114
|
]));
|
|
122
115
|
}
|
|
123
|
-
});
|
|
124
|
-
var
|
|
125
|
-
var plus_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
|
|
116
|
+
}), minus_default = _sfc_main169;
|
|
117
|
+
var _sfc_main201 = /* @__PURE__ */ vue.defineComponent({
|
|
126
118
|
name: "Plus",
|
|
127
119
|
__name: "plus",
|
|
128
120
|
setup(__props) {
|
|
@@ -136,8 +128,7 @@ var plus_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defin
|
|
|
136
128
|
})
|
|
137
129
|
]));
|
|
138
130
|
}
|
|
139
|
-
});
|
|
140
|
-
var plus_default = plus_vue_vue_type_script_setup_true_lang_default;
|
|
131
|
+
}), plus_default = _sfc_main201;
|
|
141
132
|
exports.ArrowDown = arrow_down_default;
|
|
142
133
|
exports.ArrowUp = arrow_up_default;
|
|
143
134
|
exports.Check = check_default;
|