@tagplus/components 5.3.7 → 5.3.8
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/components.css +132 -132
- package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +13 -7
- package/dist/es/node_modules/element-plus/es/utils/dom/aria.mjs +27 -0
- package/dist/es/src/components/Autosuggest/Autosuggest.vue.mjs +264 -267
- package/dist/es/src/components/Autosuggest/Multisuggest.vue.mjs +5 -3
- package/dist/es/src/components/Autosuggest/core.mjs +4 -4
- package/dist/es/src/components/Autosuggest/option.vue.mjs +1 -1
- package/dist/es/src/components/Autosuggest/select-dropdown.vue.mjs +2 -3
- package/dist/es/src/components/Autosuggest/useOption.mjs +2 -2
- package/dist/es/src/components/Autosuggest/useSelect.mjs +15 -21
- package/dist/es/src/components/Inline/Inline.vue.mjs +2 -2
- package/dist/es/src/components/InputNumber/InputNumber.vue.mjs +12 -18
- package/dist/es/src/components/InputNumber/input-number.mjs +1 -1
- package/dist/es/src/components/Loader/Loader.vue.mjs +2 -2
- package/dist/es/src/components/Money/Money.vue.mjs +2 -2
- 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 +2 -2
- 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/Steps/Steps.vue.mjs +1 -1
- package/dist/es/src/components/Tip/Tip.vue.mjs +5 -3
- package/dist/es/src/locale/i18nCreator.mjs +1 -1
- package/dist/es/src/plugins/currency.mjs +4 -6
- package/dist/es/src/utils/runtime.mjs +3 -3
- package/dist/es/src/utils/use-form-common-props.mjs +3 -3
- package/dist/es/src/utils/use-form-item.mjs +5 -6
- package/dist/es/src/utils/use-id.mjs +1 -1
- package/dist/es/src/utils/use-input.mjs +2 -2
- package/dist/lib/components.css +132 -132
- package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +12 -6
- package/dist/lib/node_modules/element-plus/es/utils/dom/aria.js +27 -0
- package/dist/lib/src/components/Autosuggest/Autosuggest.vue.js +264 -267
- package/dist/lib/src/components/Autosuggest/Multisuggest.vue.js +5 -3
- package/dist/lib/src/components/Autosuggest/core.js +4 -4
- package/dist/lib/src/components/Autosuggest/option.vue.js +1 -1
- package/dist/lib/src/components/Autosuggest/select-dropdown.vue.js +2 -3
- package/dist/lib/src/components/Autosuggest/useOption.js +2 -2
- package/dist/lib/src/components/Autosuggest/useSelect.js +15 -21
- package/dist/lib/src/components/Inline/Inline.vue.js +2 -2
- package/dist/lib/src/components/InputNumber/InputNumber.vue.js +12 -18
- package/dist/lib/src/components/InputNumber/input-number.js +1 -1
- package/dist/lib/src/components/Loader/Loader.vue.js +2 -2
- package/dist/lib/src/components/Money/Money.vue.js +2 -2
- package/dist/lib/src/components/OptionsList/OptionsList.vue.js +1 -1
- package/dist/lib/src/components/OptionsListItem/OptionsListItem.vue.js +1 -1
- package/dist/lib/src/components/Percent/Percent.vue.js +2 -2
- package/dist/lib/src/components/Skeleton/Skeleton.vue.js +1 -1
- package/dist/lib/src/components/Step/Step.vue.js +1 -1
- package/dist/lib/src/components/Steps/Steps.vue.js +1 -1
- package/dist/lib/src/components/Tip/Tip.vue.js +5 -3
- package/dist/lib/src/locale/i18nCreator.js +1 -1
- package/dist/lib/src/plugins/currency.js +4 -6
- package/dist/lib/src/utils/runtime.js +3 -3
- package/dist/lib/src/utils/use-form-common-props.js +3 -3
- package/dist/lib/src/utils/use-form-item.js +5 -6
- package/dist/lib/src/utils/use-id.js +1 -1
- package/dist/lib/src/utils/use-input.js +2 -2
- package/package.json +24 -32
- 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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const elementPlus = require("element-plus");
|
|
5
|
-
const index = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
6
|
-
const selectDropdown = require("./select-dropdown.vue.js");
|
|
7
3
|
const option = require("./option.vue.js");
|
|
4
|
+
const selectDropdown = require("./select-dropdown.vue.js");
|
|
8
5
|
const useSelect = require("./useSelect.js");
|
|
6
|
+
const index = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
7
|
+
const elementPlus = require("element-plus");
|
|
8
|
+
const vue = require("vue");
|
|
9
9
|
function autosuggestCore(component_name, propsDefinition) {
|
|
10
10
|
return {
|
|
11
11
|
name: component_name,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const useOption = require("./useOption.js");
|
|
4
|
+
const vue = require("vue");
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
6
|
const index = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
7
7
|
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-id/index.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const index = require("../../../node_modules/@vueuse/core/index.js");
|
|
4
|
+
const vue = require("vue");
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
6
|
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
7
7
|
const _sfc_main = vue.defineComponent({
|
|
@@ -33,8 +33,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
33
33
|
},
|
|
34
34
|
methods: {
|
|
35
35
|
updateMinWidth() {
|
|
36
|
-
|
|
37
|
-
this.minWidth = `${(_a = this.select.selectRef) == null ? void 0 : _a.offsetWidth}px`;
|
|
36
|
+
this.minWidth = `${this.select.selectRef?.offsetWidth}px`;
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const lodashEs = require("lodash-es");
|
|
5
3
|
const strings = require("../../utils/strings.js");
|
|
4
|
+
const lodashEs = require("lodash-es");
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
const shared_esmBundler = require("../../../node_modules/@vue/shared/dist/shared.esm-bundler.js");
|
|
7
7
|
function useOption(props, states) {
|
|
8
8
|
const select = vue.inject("select");
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const shared_esmBundler = require("../../../node_modules/@vue/shared/dist/shared.esm-bundler.js");
|
|
5
|
-
const lodashEs = require("lodash-es");
|
|
6
4
|
const index$5 = require("../../../node_modules/@vueuse/core/index.js");
|
|
7
|
-
const
|
|
5
|
+
const lodashEs = require("lodash-es");
|
|
6
|
+
const vue = require("vue");
|
|
8
7
|
const error = require("../../utils/error.js");
|
|
8
|
+
const types = require("../../utils/types.js");
|
|
9
9
|
const icon = require("../../utils/icon.js");
|
|
10
10
|
const scroll = require("../../utils/scroll.js");
|
|
11
|
-
const useInput = require("../../utils/use-input.js");
|
|
12
|
-
const useFormItem = require("../../utils/use-form-item.js");
|
|
13
11
|
const useFormCommonProps = require("../../utils/use-form-common-props.js");
|
|
12
|
+
const useFormItem = require("../../utils/use-form-item.js");
|
|
13
|
+
const useInput = require("../../utils/use-input.js");
|
|
14
14
|
const index = require("../../../node_modules/element-plus/es/hooks/use-locale/index.js");
|
|
15
15
|
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-id/index.js");
|
|
16
16
|
const index$2 = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
@@ -64,8 +64,7 @@ const useSelect = (props, { emit }) => {
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
beforeBlur(event) {
|
|
67
|
-
|
|
68
|
-
return (_a = tooltipRef.value) == null ? void 0 : _a.isFocusInsideContent(event);
|
|
67
|
+
return tooltipRef.value?.isFocusInsideContent(event);
|
|
69
68
|
},
|
|
70
69
|
afterBlur() {
|
|
71
70
|
expanded.value = false;
|
|
@@ -79,7 +78,7 @@ const useSelect = (props, { emit }) => {
|
|
|
79
78
|
const { inputId } = useFormItem.useFormItemInputId(props, {
|
|
80
79
|
formItemContext: formItem
|
|
81
80
|
});
|
|
82
|
-
const selectDisabled = vue.computed(() => props.disabled ||
|
|
81
|
+
const selectDisabled = vue.computed(() => props.disabled || form?.disabled);
|
|
83
82
|
const hasModelValue = vue.computed(() => {
|
|
84
83
|
return props.multiple ? shared_esmBundler.isArray(props.modelValue) && props.modelValue.length > 0 : props.modelValue !== void 0 && props.modelValue !== null && props.modelValue !== "";
|
|
85
84
|
});
|
|
@@ -111,7 +110,7 @@ const useSelect = (props, { emit }) => {
|
|
|
111
110
|
}
|
|
112
111
|
return newVal;
|
|
113
112
|
});
|
|
114
|
-
const validateState = vue.computed(() =>
|
|
113
|
+
const validateState = vue.computed(() => formItem?.validateState || "");
|
|
115
114
|
const validateIcon = vue.computed(
|
|
116
115
|
() => icon.ValidateComponentsMap[validateState.value]
|
|
117
116
|
);
|
|
@@ -224,7 +223,7 @@ const useSelect = (props, { emit }) => {
|
|
|
224
223
|
}
|
|
225
224
|
setSelected();
|
|
226
225
|
if (!lodashEs.isEqual(val, oldVal) && props.validateEvent) {
|
|
227
|
-
formItem
|
|
226
|
+
formItem?.validate("change").catch((err) => error.debugWarn(err));
|
|
228
227
|
}
|
|
229
228
|
},
|
|
230
229
|
{
|
|
@@ -435,8 +434,7 @@ const useSelect = (props, { emit }) => {
|
|
|
435
434
|
states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
|
|
436
435
|
};
|
|
437
436
|
const updateTooltip = () => {
|
|
438
|
-
|
|
439
|
-
(_b = (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
|
|
437
|
+
tooltipRef.value?.updatePopper?.();
|
|
440
438
|
};
|
|
441
439
|
const onInputChange = () => {
|
|
442
440
|
if (states.inputValue.length > 0 && !expanded.value) {
|
|
@@ -556,10 +554,9 @@ const useSelect = (props, { emit }) => {
|
|
|
556
554
|
return -1;
|
|
557
555
|
};
|
|
558
556
|
const scrollToOption = (option) => {
|
|
559
|
-
var _a, _b, _c, _d, _e;
|
|
560
557
|
const targetOption = shared_esmBundler.isArray(option) ? option[0] : option;
|
|
561
558
|
let target = null;
|
|
562
|
-
if (targetOption
|
|
559
|
+
if (targetOption?.value) {
|
|
563
560
|
const options = optionsArray.value.filter(
|
|
564
561
|
(item) => item.value === targetOption.value
|
|
565
562
|
);
|
|
@@ -568,15 +565,14 @@ const useSelect = (props, { emit }) => {
|
|
|
568
565
|
}
|
|
569
566
|
}
|
|
570
567
|
if (tooltipRef.value && target) {
|
|
571
|
-
const menu =
|
|
572
|
-
_c,
|
|
568
|
+
const menu = tooltipRef.value?.popperRef?.contentRef?.querySelector?.(
|
|
573
569
|
`.${nsSelect.be("dropdown", "wrap")}`
|
|
574
570
|
);
|
|
575
571
|
if (menu) {
|
|
576
572
|
scroll.scrollIntoView(menu, target);
|
|
577
573
|
}
|
|
578
574
|
}
|
|
579
|
-
|
|
575
|
+
scrollbarRef.value?.handleScroll();
|
|
580
576
|
};
|
|
581
577
|
const onOptionCreate = (vm) => {
|
|
582
578
|
states.options.set(vm.value, vm);
|
|
@@ -594,15 +590,13 @@ const useSelect = (props, { emit }) => {
|
|
|
594
590
|
handleCompositionEnd
|
|
595
591
|
} = useInput.useInput((e) => onInput(e));
|
|
596
592
|
const popperRef = vue.computed(() => {
|
|
597
|
-
|
|
598
|
-
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
593
|
+
return tooltipRef.value?.popperRef?.contentRef;
|
|
599
594
|
});
|
|
600
595
|
const handleMenuEnter = () => {
|
|
601
596
|
vue.nextTick(() => scrollToOption(states.selected));
|
|
602
597
|
};
|
|
603
598
|
const focus = () => {
|
|
604
|
-
|
|
605
|
-
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
599
|
+
inputRef.value?.focus();
|
|
606
600
|
};
|
|
607
601
|
const blur = () => {
|
|
608
602
|
handleClickOutside();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const index = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
5
4
|
const elementPlus = require("element-plus");
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
8
8
|
const _sfc_main = vue.defineComponent({
|
|
@@ -126,5 +126,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
126
126
|
}, 8, ["id", "model-value", "onInput", "onBlur", "onKeypress"]))
|
|
127
127
|
], 8, _hoisted_1);
|
|
128
128
|
}
|
|
129
|
-
const Inline = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
129
|
+
const Inline = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8cf574fc"]]);
|
|
130
130
|
exports.default = Inline;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const inputNumber = require("./input-number.js");
|
|
5
|
+
const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
6
6
|
const error = require("../../utils/error.js");
|
|
7
|
-
const
|
|
7
|
+
const types = require("../../utils/types.js");
|
|
8
8
|
const useFormCommonProps = require("../../utils/use-form-common-props.js");
|
|
9
|
+
const useFormItem = require("../../utils/use-form-item.js");
|
|
9
10
|
const elementPlus = require("element-plus");
|
|
10
|
-
const
|
|
11
|
-
const inputNumber = require("./input-number.js");
|
|
11
|
+
const lodashEs = require("lodash-es");
|
|
12
12
|
const index = require("../../../node_modules/element-plus/es/hooks/use-locale/index.js");
|
|
13
13
|
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-namespace/index.js");
|
|
14
14
|
const shared_esmBundler = require("../../../node_modules/@vue/shared/dist/shared.esm-bundler.js");
|
|
@@ -169,7 +169,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
169
169
|
return newVal;
|
|
170
170
|
};
|
|
171
171
|
const setCurrentValue = (value, emitChange = true) => {
|
|
172
|
-
var _a;
|
|
173
172
|
const oldVal = data.currentValue;
|
|
174
173
|
const newVal = verifyValue(value);
|
|
175
174
|
if (!emitChange) {
|
|
@@ -181,7 +180,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
181
180
|
emit(UPDATE_MODEL_EVENT, newVal);
|
|
182
181
|
emit(CHANGE_EVENT, newVal, oldVal);
|
|
183
182
|
if (props.validateEvent) {
|
|
184
|
-
|
|
183
|
+
formItem?.validate?.("change").catch((err) => error.debugWarn(err));
|
|
185
184
|
}
|
|
186
185
|
data.currentValue = newVal;
|
|
187
186
|
};
|
|
@@ -200,22 +199,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
200
199
|
data.userInput = null;
|
|
201
200
|
};
|
|
202
201
|
const focus = () => {
|
|
203
|
-
|
|
204
|
-
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
202
|
+
input.value?.focus?.();
|
|
205
203
|
};
|
|
206
204
|
const blur = () => {
|
|
207
|
-
|
|
208
|
-
(_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
205
|
+
input.value?.blur?.();
|
|
209
206
|
};
|
|
210
207
|
const handleFocus = (event) => {
|
|
211
208
|
emit("focus", event);
|
|
212
209
|
};
|
|
213
210
|
const handleBlur = (event) => {
|
|
214
|
-
var _a;
|
|
215
211
|
data.userInput = null;
|
|
216
212
|
emit("blur", event);
|
|
217
213
|
if (props.validateEvent) {
|
|
218
|
-
|
|
214
|
+
formItem?.validate?.("blur").catch((err) => error.debugWarn(err));
|
|
219
215
|
}
|
|
220
216
|
};
|
|
221
217
|
const setCurrentValueToModelValue = () => {
|
|
@@ -240,9 +236,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
240
236
|
}
|
|
241
237
|
);
|
|
242
238
|
vue.onMounted(() => {
|
|
243
|
-
var _a;
|
|
244
239
|
const { min, max, modelValue } = props;
|
|
245
|
-
const innerInput =
|
|
240
|
+
const innerInput = input.value?.input;
|
|
246
241
|
innerInput.setAttribute("role", "spinbutton");
|
|
247
242
|
if (Number.isFinite(max)) {
|
|
248
243
|
innerInput.setAttribute("aria-valuemax", String(max));
|
|
@@ -268,9 +263,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
268
263
|
}
|
|
269
264
|
});
|
|
270
265
|
vue.onUpdated(() => {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${data.currentValue ?? ""}`);
|
|
266
|
+
const innerInput = input.value?.input;
|
|
267
|
+
innerInput?.setAttribute("aria-valuenow", `${data.currentValue ?? ""}`);
|
|
274
268
|
});
|
|
275
269
|
__expose({
|
|
276
270
|
/** @description get focus the input component */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const lodashEs = require("lodash-es");
|
|
4
3
|
const index = require("../../utils/index.js");
|
|
4
|
+
const lodashEs = require("lodash-es");
|
|
5
5
|
const runtime = require("../../utils/runtime.js");
|
|
6
6
|
const index$1 = require("../../../node_modules/element-plus/es/hooks/use-size/index.js");
|
|
7
7
|
const types = require("../../utils/types.js");
|
|
@@ -38,7 +38,7 @@ const _hoisted_4 = { class: "texto" };
|
|
|
38
38
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
39
39
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
40
40
|
vue.createElementVNode("div", _hoisted_2, [
|
|
41
|
-
_cache[0] || (_cache[0] = vue.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="150px" height="150px" data-v-
|
|
41
|
+
_cache[0] || (_cache[0] = vue.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="150px" height="150px" data-v-fdf492f2><mask id="mascara" data-v-fdf492f2><rect x="0" y="0" width="100%" height="100%" fill="white" data-v-fdf492f2></rect><circle id="circulo-interno" class="circulo" cx="45" cy="50" r="40" fill="black" data-v-fdf492f2></circle></mask><g id="bola" fill="none" fill-rule="evenodd" transform="translate(30 30)" data-v-fdf492f2><circle id="circulo" class="circulo" cx="45" cy="50" r="40" fill="#1F7DE7" mask="url(#mascara)" data-v-fdf492f2></circle><g fill="none" fill-rule="evenodd" data-v-fdf492f2><circle class="residuo top center" cx="45" cy="9" r="15" fill="#FFCB05" data-v-fdf492f2></circle><circle class="residuo top right" cx="72" cy="21" r="8.5" fill="#1F7DE7" data-v-fdf492f2></circle><circle class="residuo middle right" cx="81" cy="45" r="12" fill="#1F7DE7" data-v-fdf492f2></circle><circle class="residuo bottom right" cx="71" cy="70" r="8.5" fill="none" stroke="#FFCB05" stroke-width="3" data-v-fdf492f2></circle><circle class="residuo bottom center" cx="45" cy="81" r="8.5" fill="none" stroke="#1F7DE7" stroke-width="3" data-v-fdf492f2></circle><circle class="residuo bottom left" cx="19" cy="70" r="8.5" fill="#1F7DE7" data-v-fdf492f2></circle><circle class="residuo middle left" cx="9" cy="45" r="10" fill="#FFCB05" data-v-fdf492f2></circle><circle class="residuo top left" cx="18" cy="21" r="8.5" fill="none" stroke="#1F7DE7" stroke-width="3" data-v-fdf492f2></circle></g></g></svg>', 1)),
|
|
42
42
|
vue.createElementVNode("div", _hoisted_3, [
|
|
43
43
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.icons, (icon, k) => {
|
|
44
44
|
return vue.openBlock(), vue.createElementBlock("i", {
|
|
@@ -55,5 +55,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55
55
|
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "overlay" }, null, -1))
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
58
|
-
const Loader = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
58
|
+
const Loader = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-fdf492f2"]]);
|
|
59
59
|
exports.default = Loader;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const floatFormatter = require("../../mixins/floatFormatter.js");
|
|
5
4
|
const elementPlus = require("element-plus");
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
8
8
|
const _sfc_main = vue.defineComponent({
|
|
@@ -72,5 +72,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
72
72
|
})
|
|
73
73
|
]), 1040, ["id", "model-value", "maxlength", "onInput", "onChange"]);
|
|
74
74
|
}
|
|
75
|
-
const Money = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
75
|
+
const Money = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4afe98f3"]]);
|
|
76
76
|
exports.default = Money;
|
|
@@ -24,5 +24,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24
24
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25
25
|
], 2);
|
|
26
26
|
}
|
|
27
|
-
const OptionsList = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
27
|
+
const OptionsList = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b6878c99"]]);
|
|
28
28
|
exports.default = OptionsList;
|
|
@@ -92,5 +92,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
92
92
|
_ctx.badge ? (vue.openBlock(), vue.createElementBlock("sup", _hoisted_3)) : vue.createCommentVNode("", true)
|
|
93
93
|
], 42, _hoisted_1);
|
|
94
94
|
}
|
|
95
|
-
const OptionsListItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
95
|
+
const OptionsListItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e3f033e2"]]);
|
|
96
96
|
exports.default = OptionsListItem;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const floatFormatter = require("../../mixins/floatFormatter.js");
|
|
5
4
|
const elementPlus = require("element-plus");
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
8
8
|
const _sfc_main = vue.defineComponent({
|
|
@@ -73,5 +73,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73
73
|
} : void 0
|
|
74
74
|
]), 1040, ["id", "model-value", "maxlength", "onInput", "onChange"]);
|
|
75
75
|
}
|
|
76
|
-
const Percent = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
76
|
+
const Percent = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3ffa1372"]]);
|
|
77
77
|
exports.default = Percent;
|
|
@@ -75,5 +75,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
75
|
}), 128))
|
|
76
76
|
]);
|
|
77
77
|
}
|
|
78
|
-
const Skeleton = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
78
|
+
const Skeleton = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e17e8c84"]]);
|
|
79
79
|
exports.default = Skeleton;
|
|
@@ -202,5 +202,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
202
202
|
])
|
|
203
203
|
], 6);
|
|
204
204
|
}
|
|
205
|
-
const Step = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
205
|
+
const Step = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-903c296d"]]);
|
|
206
206
|
exports.default = Step;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const elementPlus = require("element-plus");
|
|
4
|
+
const vue = require("vue");
|
|
5
5
|
const _sfc_main = vue.defineComponent({
|
|
6
6
|
name: "TpSteps",
|
|
7
7
|
extends: elementPlus.ElSteps,
|
|
@@ -75,7 +75,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
75
|
default: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
76
76
|
vue.createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
|
|
77
77
|
])),
|
|
78
|
-
_: 1
|
|
78
|
+
_: 1,
|
|
79
|
+
__: [2]
|
|
79
80
|
}),
|
|
80
81
|
vue.createVNode(_component_el_col, {
|
|
81
82
|
xs: 21,
|
|
@@ -108,7 +109,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
109
|
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
109
110
|
vue.createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
|
|
110
111
|
])),
|
|
111
|
-
_: 1
|
|
112
|
+
_: 1,
|
|
113
|
+
__: [3]
|
|
112
114
|
})
|
|
113
115
|
]),
|
|
114
116
|
_: 1
|
|
@@ -161,5 +163,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
161
163
|
_: 1
|
|
162
164
|
}, 8, ["id", "class"]));
|
|
163
165
|
}
|
|
164
|
-
const Tip = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
166
|
+
const Tip = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0fd7bc4b"]]);
|
|
165
167
|
exports.default = Tip;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vueI18n = require("vue-i18n");
|
|
4
3
|
const vue = require("vue");
|
|
4
|
+
const vueI18n = require("vue-i18n");
|
|
5
5
|
let i18n;
|
|
6
6
|
const loadedLanguages = [];
|
|
7
7
|
const i18nHelper = {
|
|
@@ -6,7 +6,6 @@ function setDefaults(app) {
|
|
|
6
6
|
defaults = app.$i18n ? app.$i18n.t("locale.number") : ptBr.default.locale;
|
|
7
7
|
}
|
|
8
8
|
function formatMoney(input, toString = false, locale = defaults, customPrecision = false) {
|
|
9
|
-
var _a, _b;
|
|
10
9
|
let inputString = `${input}`;
|
|
11
10
|
if (inputString.slice(-1).match(/[.,]/)) {
|
|
12
11
|
inputString = inputString.substring(0, inputString.length - 1);
|
|
@@ -20,8 +19,8 @@ function formatMoney(input, toString = false, locale = defaults, customPrecision
|
|
|
20
19
|
const currency = numbersToCurrency(numbers, precision);
|
|
21
20
|
if (toString) {
|
|
22
21
|
let num = negative === -1 ? `-${currency}` : `${currency}`;
|
|
23
|
-
if (
|
|
24
|
-
const decimalChar =
|
|
22
|
+
if (locale?.number?.decimal) {
|
|
23
|
+
const decimalChar = locale?.number?.decimal;
|
|
25
24
|
num = num.replaceAll(",", decimalChar).replaceAll(".", decimalChar);
|
|
26
25
|
}
|
|
27
26
|
return num;
|
|
@@ -29,9 +28,8 @@ function formatMoney(input, toString = false, locale = defaults, customPrecision
|
|
|
29
28
|
return currency * negative;
|
|
30
29
|
}
|
|
31
30
|
function completeZeros(customPrecision, input, locale) {
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
const decimal = ((_b = locale == null ? void 0 : locale.number) == null ? void 0 : _b.decimal) || defaults.decimal;
|
|
31
|
+
const precision = customPrecision || locale?.number?.precision || defaults.precision;
|
|
32
|
+
const decimal = locale?.number?.decimal || defaults.decimal;
|
|
35
33
|
let i = input.lastIndexOf(".");
|
|
36
34
|
const j = input.lastIndexOf(",");
|
|
37
35
|
i = i > j ? i : j;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const lodashEs = require("lodash-es");
|
|
4
|
+
const vue = require("vue");
|
|
5
5
|
const shared_esmBundler = require("../../node_modules/@vue/shared/dist/shared.esm-bundler.js");
|
|
6
6
|
const epPropKey = "__epPropKey";
|
|
7
7
|
const isEpProp = (val) => shared_esmBundler.isObject(val) && !!val[epPropKey];
|
|
@@ -16,9 +16,9 @@ const buildProp = (prop, key) => {
|
|
|
16
16
|
if (shared_esmBundler.hasOwn(prop, "default")) {
|
|
17
17
|
allowedValues.push(defaultValue);
|
|
18
18
|
}
|
|
19
|
-
valid
|
|
19
|
+
valid ||= allowedValues.includes(val);
|
|
20
20
|
}
|
|
21
|
-
if (validator) valid
|
|
21
|
+
if (validator) valid ||= validator(val);
|
|
22
22
|
if (!valid && allowedValues.length > 0) {
|
|
23
23
|
const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
|
|
24
24
|
vue.warn(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const constants = require("./constants.js");
|
|
4
|
+
const vue = require("vue");
|
|
5
5
|
const index = require("../../node_modules/element-plus/es/hooks/use-prop/index.js");
|
|
6
6
|
const index$1 = require("../../node_modules/element-plus/es/hooks/use-size/index.js");
|
|
7
7
|
const useFormSize = (fallback, ignore = {}) => {
|
|
@@ -11,14 +11,14 @@ const useFormSize = (fallback, ignore = {}) => {
|
|
|
11
11
|
const form = ignore.form ? { size: void 0 } : vue.inject(constants.formContextKey, void 0);
|
|
12
12
|
const formItem = ignore.formItem ? { size: void 0 } : vue.inject(constants.formItemContextKey, void 0);
|
|
13
13
|
return vue.computed(
|
|
14
|
-
() => size.value || vue.unref(fallback) ||
|
|
14
|
+
() => size.value || vue.unref(fallback) || formItem?.size || form?.size || globalConfig.value || ""
|
|
15
15
|
);
|
|
16
16
|
};
|
|
17
17
|
const useFormDisabled = (fallback) => {
|
|
18
18
|
const disabled = index.useProp("disabled");
|
|
19
19
|
const form = vue.inject(constants.formContextKey, void 0);
|
|
20
20
|
return vue.computed(
|
|
21
|
-
() => disabled.value || vue.unref(fallback) ||
|
|
21
|
+
() => disabled.value || vue.unref(fallback) || form?.disabled || false
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
24
|
exports.useFormDisabled = useFormDisabled;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const constants = require("./constants.js");
|
|
5
4
|
const useId = require("./use-id.js");
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
const useFormItem = () => {
|
|
7
7
|
const form = vue.inject(constants.formContextKey, void 0);
|
|
8
8
|
const formItem = vue.inject(constants.formItemContextKey, void 0);
|
|
@@ -25,8 +25,7 @@ const useFormItemInputId = (props, {
|
|
|
25
25
|
const inputId = vue.ref();
|
|
26
26
|
let idUnwatch;
|
|
27
27
|
const isLabeledByFormItem = vue.computed(() => {
|
|
28
|
-
|
|
29
|
-
return !!(!props.label && formItemContext && formItemContext.inputIds && ((_a = formItemContext.inputIds) == null ? void 0 : _a.length) <= 1);
|
|
28
|
+
return !!(!props.label && formItemContext && formItemContext.inputIds && formItemContext.inputIds?.length <= 1);
|
|
30
29
|
});
|
|
31
30
|
vue.onMounted(() => {
|
|
32
31
|
idUnwatch = vue.watch(
|
|
@@ -34,9 +33,9 @@ const useFormItemInputId = (props, {
|
|
|
34
33
|
([id, disableIdGeneration2]) => {
|
|
35
34
|
const newId = id ?? (!disableIdGeneration2 ? useId.useId().value : void 0);
|
|
36
35
|
if (newId !== inputId.value) {
|
|
37
|
-
if (formItemContext
|
|
36
|
+
if (formItemContext?.removeInputId) {
|
|
38
37
|
inputId.value && formItemContext.removeInputId(inputId.value);
|
|
39
|
-
if (!
|
|
38
|
+
if (!disableIdManagement?.value && !disableIdGeneration2 && newId) {
|
|
40
39
|
formItemContext.addInputId(newId);
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -48,7 +47,7 @@ const useFormItemInputId = (props, {
|
|
|
48
47
|
});
|
|
49
48
|
vue.onUnmounted(() => {
|
|
50
49
|
idUnwatch && idUnwatch();
|
|
51
|
-
if (formItemContext
|
|
50
|
+
if (formItemContext?.removeInputId) {
|
|
52
51
|
inputId.value && formItemContext.removeInputId(inputId.value);
|
|
53
52
|
}
|
|
54
53
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
3
|
const error = require("./error.js");
|
|
5
4
|
const useDerivedNamespace = require("./use-derived-namespace.js");
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
const index = require("../../node_modules/@vueuse/shared/index.js");
|
|
7
7
|
const defaultIdInjection = {
|
|
8
8
|
prefix: Math.floor(Math.random() * 1e4),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const shared_esmBundler = require("../../node_modules/@vue/shared/dist/shared.esm-bundler.js");
|
|
5
3
|
const i18n = require("./i18n.js");
|
|
4
|
+
const shared_esmBundler = require("../../node_modules/@vue/shared/dist/shared.esm-bundler.js");
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
function useInput(handleInput = (event) => {
|
|
7
7
|
}) {
|
|
8
8
|
const isComposing = vue.ref(false);
|