@tagplus/components 5.3.6 → 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.
Files changed (59) hide show
  1. package/dist/es/components.css +132 -132
  2. package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +13 -7
  3. package/dist/es/node_modules/element-plus/es/utils/dom/aria.mjs +27 -0
  4. package/dist/es/src/components/Autosuggest/Autosuggest.vue.mjs +264 -267
  5. package/dist/es/src/components/Autosuggest/Multisuggest.vue.mjs +5 -3
  6. package/dist/es/src/components/Autosuggest/core.mjs +4 -4
  7. package/dist/es/src/components/Autosuggest/option.vue.mjs +1 -1
  8. package/dist/es/src/components/Autosuggest/select-dropdown.vue.mjs +2 -3
  9. package/dist/es/src/components/Autosuggest/useOption.mjs +2 -2
  10. package/dist/es/src/components/Autosuggest/useSelect.mjs +26 -23
  11. package/dist/es/src/components/Inline/Inline.vue.mjs +2 -2
  12. package/dist/es/src/components/InputNumber/InputNumber.vue.mjs +12 -18
  13. package/dist/es/src/components/InputNumber/input-number.mjs +1 -1
  14. package/dist/es/src/components/Loader/Loader.vue.mjs +2 -2
  15. package/dist/es/src/components/Money/Money.vue.mjs +2 -2
  16. package/dist/es/src/components/OptionsList/OptionsList.vue.mjs +1 -1
  17. package/dist/es/src/components/OptionsListItem/OptionsListItem.vue.mjs +1 -1
  18. package/dist/es/src/components/Percent/Percent.vue.mjs +2 -2
  19. package/dist/es/src/components/Skeleton/Skeleton.vue.mjs +1 -1
  20. package/dist/es/src/components/Step/Step.vue.mjs +1 -1
  21. package/dist/es/src/components/Steps/Steps.vue.mjs +1 -1
  22. package/dist/es/src/components/Tip/Tip.vue.mjs +5 -3
  23. package/dist/es/src/locale/i18nCreator.mjs +1 -1
  24. package/dist/es/src/plugins/currency.mjs +4 -6
  25. package/dist/es/src/utils/runtime.mjs +3 -3
  26. package/dist/es/src/utils/use-form-common-props.mjs +3 -3
  27. package/dist/es/src/utils/use-form-item.mjs +5 -6
  28. package/dist/es/src/utils/use-id.mjs +1 -1
  29. package/dist/es/src/utils/use-input.mjs +2 -2
  30. package/dist/lib/components.css +132 -132
  31. package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +12 -6
  32. package/dist/lib/node_modules/element-plus/es/utils/dom/aria.js +27 -0
  33. package/dist/lib/src/components/Autosuggest/Autosuggest.vue.js +264 -267
  34. package/dist/lib/src/components/Autosuggest/Multisuggest.vue.js +5 -3
  35. package/dist/lib/src/components/Autosuggest/core.js +4 -4
  36. package/dist/lib/src/components/Autosuggest/option.vue.js +1 -1
  37. package/dist/lib/src/components/Autosuggest/select-dropdown.vue.js +2 -3
  38. package/dist/lib/src/components/Autosuggest/useOption.js +2 -2
  39. package/dist/lib/src/components/Autosuggest/useSelect.js +26 -23
  40. package/dist/lib/src/components/Inline/Inline.vue.js +2 -2
  41. package/dist/lib/src/components/InputNumber/InputNumber.vue.js +12 -18
  42. package/dist/lib/src/components/InputNumber/input-number.js +1 -1
  43. package/dist/lib/src/components/Loader/Loader.vue.js +2 -2
  44. package/dist/lib/src/components/Money/Money.vue.js +2 -2
  45. package/dist/lib/src/components/OptionsList/OptionsList.vue.js +1 -1
  46. package/dist/lib/src/components/OptionsListItem/OptionsListItem.vue.js +1 -1
  47. package/dist/lib/src/components/Percent/Percent.vue.js +2 -2
  48. package/dist/lib/src/components/Skeleton/Skeleton.vue.js +1 -1
  49. package/dist/lib/src/components/Step/Step.vue.js +1 -1
  50. package/dist/lib/src/components/Steps/Steps.vue.js +1 -1
  51. package/dist/lib/src/components/Tip/Tip.vue.js +5 -3
  52. package/dist/lib/src/locale/i18nCreator.js +1 -1
  53. package/dist/lib/src/plugins/currency.js +4 -6
  54. package/dist/lib/src/utils/runtime.js +3 -3
  55. package/dist/lib/src/utils/use-form-common-props.js +3 -3
  56. package/dist/lib/src/utils/use-form-item.js +5 -6
  57. package/dist/lib/src/utils/use-id.js +1 -1
  58. package/dist/lib/src/utils/use-input.js +2 -2
  59. package/package.json +28 -36
@@ -1,5 +1,5 @@
1
- import { defineComponent, withDirectives, createElementBlock, openBlock, withModifiers, normalizeClass, renderSlot, createElementVNode, toDisplayString, vShow, computed, unref, toRefs, reactive, getCurrentInstance, onBeforeUnmount, nextTick } from "vue";
2
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
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
5
5
  import { useId } from "../../../node_modules/element-plus/es/hooks/use-id/index.mjs";
@@ -1,5 +1,5 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, renderSlot, ref } from "vue";
2
1
  import { useResizeObserver } from "../../../node_modules/@vueuse/core/index.mjs";
2
+ import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, renderSlot, ref } from "vue";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
5
5
  const _sfc_main = defineComponent({
@@ -31,8 +31,7 @@ const _sfc_main = defineComponent({
31
31
  },
32
32
  methods: {
33
33
  updateMinWidth() {
34
- var _a;
35
- this.minWidth = `${(_a = this.select.selectRef) == null ? void 0 : _a.offsetWidth}px`;
34
+ this.minWidth = `${this.select.selectRef?.offsetWidth}px`;
36
35
  }
37
36
  }
38
37
  });
@@ -1,6 +1,6 @@
1
- import { inject, computed, getCurrentInstance, toRaw, watch } from "vue";
2
- import { get, isEqual } from "lodash-es";
3
1
  import { escapeStringRegexp } from "../../utils/strings.mjs";
2
+ import { get, isEqual } from "lodash-es";
3
+ import { inject, computed, getCurrentInstance, toRaw, watch } from "vue";
4
4
  import { isObject } from "../../../node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
5
5
  function useOption(props, states) {
6
6
  const select = inject("select");
@@ -1,14 +1,14 @@
1
- import { reactive, ref, computed, getCurrentInstance, watch, watchEffect, nextTick, onMounted } from "vue";
2
1
  import { isArray, isFunction, toRawType, isObject, isString } from "../../../node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
3
- import { isEqual, get, debounce, findLastIndex } from "lodash-es";
4
2
  import { useResizeObserver } from "../../../node_modules/@vueuse/core/index.mjs";
5
- import { isNumber } from "../../utils/types.mjs";
3
+ import { isEqual, get, debounce, findLastIndex } from "lodash-es";
4
+ import { reactive, ref, computed, getCurrentInstance, watch, watchEffect, nextTick, onMounted } from "vue";
6
5
  import { debugWarn } from "../../utils/error.mjs";
6
+ import { isNumber } from "../../utils/types.mjs";
7
7
  import { ValidateComponentsMap } from "../../utils/icon.mjs";
8
8
  import { scrollIntoView } from "../../utils/scroll.mjs";
9
- import { useInput } from "../../utils/use-input.mjs";
10
- import { useFormItem, useFormItemInputId } from "../../utils/use-form-item.mjs";
11
9
  import { useFormSize } from "../../utils/use-form-common-props.mjs";
10
+ import { useFormItem, useFormItemInputId } from "../../utils/use-form-item.mjs";
11
+ import { useInput } from "../../utils/use-input.mjs";
12
12
  import { useLocale } from "../../../node_modules/element-plus/es/hooks/use-locale/index.mjs";
13
13
  import { useId } from "../../../node_modules/element-plus/es/hooks/use-id/index.mjs";
14
14
  import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
@@ -62,8 +62,7 @@ const useSelect = (props, { emit }) => {
62
62
  }
63
63
  },
64
64
  beforeBlur(event) {
65
- var _a;
66
- return (_a = tooltipRef.value) == null ? void 0 : _a.isFocusInsideContent(event);
65
+ return tooltipRef.value?.isFocusInsideContent(event);
67
66
  },
68
67
  afterBlur() {
69
68
  expanded.value = false;
@@ -77,7 +76,7 @@ const useSelect = (props, { emit }) => {
77
76
  const { inputId } = useFormItemInputId(props, {
78
77
  formItemContext: formItem
79
78
  });
80
- const selectDisabled = computed(() => props.disabled || (form == null ? void 0 : form.disabled));
79
+ const selectDisabled = computed(() => props.disabled || form?.disabled);
81
80
  const hasModelValue = computed(() => {
82
81
  return props.multiple ? isArray(props.modelValue) && props.modelValue.length > 0 : props.modelValue !== void 0 && props.modelValue !== null && props.modelValue !== "";
83
82
  });
@@ -109,7 +108,7 @@ const useSelect = (props, { emit }) => {
109
108
  }
110
109
  return newVal;
111
110
  });
112
- const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
111
+ const validateState = computed(() => formItem?.validateState || "");
113
112
  const validateIcon = computed(
114
113
  () => ValidateComponentsMap[validateState.value]
115
114
  );
@@ -222,7 +221,7 @@ const useSelect = (props, { emit }) => {
222
221
  }
223
222
  setSelected();
224
223
  if (!isEqual(val, oldVal) && props.validateEvent) {
225
- formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
224
+ formItem?.validate("change").catch((err) => debugWarn(err));
226
225
  }
227
226
  },
228
227
  {
@@ -365,6 +364,7 @@ const useSelect = (props, { emit }) => {
365
364
  };
366
365
  const getOption = (val) => {
367
366
  const { value, initialLabel } = getValueLabelForOption(val);
367
+ let modifiedLabel = null;
368
368
  let option;
369
369
  if (value && initialLabel) {
370
370
  option = {
@@ -377,7 +377,15 @@ const useSelect = (props, { emit }) => {
377
377
  const isUndefined = toRawType(value).toLowerCase() === "undefined";
378
378
  for (let i = states.cachedOptions.size - 1; i >= 0; i--) {
379
379
  const cachedOption = cachedOptionsArray.value[i];
380
- const isEqualValue = isObjectValue ? get(cachedOption.value, props.valueKey) === get(value, props.valueKey) : cachedOption.value === value;
380
+ let isEqualValue;
381
+ if (isObjectValue) {
382
+ isEqualValue = get(cachedOption.value, props.valueKey) === get(value, props.valueKey);
383
+ } else {
384
+ isEqualValue = cachedOption.value === value;
385
+ if (initialLabel) {
386
+ modifiedLabel = initialLabel;
387
+ }
388
+ }
381
389
  if (isEqualValue) {
382
390
  option = {
383
391
  value,
@@ -391,7 +399,7 @@ const useSelect = (props, { emit }) => {
391
399
  const label = isObjectValue ? value.label : !isNull && !isUndefined ? value : "";
392
400
  const newOption = {
393
401
  value,
394
- currentLabel: initialLabel || label
402
+ currentLabel: modifiedLabel || label
395
403
  };
396
404
  return newOption;
397
405
  };
@@ -424,8 +432,7 @@ const useSelect = (props, { emit }) => {
424
432
  states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
425
433
  };
426
434
  const updateTooltip = () => {
427
- var _a, _b;
428
- (_b = (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
435
+ tooltipRef.value?.updatePopper?.();
429
436
  };
430
437
  const onInputChange = () => {
431
438
  if (states.inputValue.length > 0 && !expanded.value) {
@@ -545,10 +552,9 @@ const useSelect = (props, { emit }) => {
545
552
  return -1;
546
553
  };
547
554
  const scrollToOption = (option) => {
548
- var _a, _b, _c, _d, _e;
549
555
  const targetOption = isArray(option) ? option[0] : option;
550
556
  let target = null;
551
- if (targetOption == null ? void 0 : targetOption.value) {
557
+ if (targetOption?.value) {
552
558
  const options = optionsArray.value.filter(
553
559
  (item) => item.value === targetOption.value
554
560
  );
@@ -557,15 +563,14 @@ const useSelect = (props, { emit }) => {
557
563
  }
558
564
  }
559
565
  if (tooltipRef.value && target) {
560
- const menu = (_d = (_c = (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef) == null ? void 0 : _c.querySelector) == null ? void 0 : _d.call(
561
- _c,
566
+ const menu = tooltipRef.value?.popperRef?.contentRef?.querySelector?.(
562
567
  `.${nsSelect.be("dropdown", "wrap")}`
563
568
  );
564
569
  if (menu) {
565
570
  scrollIntoView(menu, target);
566
571
  }
567
572
  }
568
- (_e = scrollbarRef.value) == null ? void 0 : _e.handleScroll();
573
+ scrollbarRef.value?.handleScroll();
569
574
  };
570
575
  const onOptionCreate = (vm) => {
571
576
  states.options.set(vm.value, vm);
@@ -583,15 +588,13 @@ const useSelect = (props, { emit }) => {
583
588
  handleCompositionEnd
584
589
  } = useInput((e) => onInput(e));
585
590
  const popperRef = computed(() => {
586
- var _a, _b;
587
- return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
591
+ return tooltipRef.value?.popperRef?.contentRef;
588
592
  });
589
593
  const handleMenuEnter = () => {
590
594
  nextTick(() => scrollToOption(states.selected));
591
595
  };
592
596
  const focus = () => {
593
- var _a;
594
- (_a = inputRef.value) == null ? void 0 : _a.focus();
597
+ inputRef.value?.focus();
595
598
  };
596
599
  const blur = () => {
597
600
  handleClickOutside();
@@ -1,6 +1,6 @@
1
- import { defineComponent, resolveComponent, createElementBlock, openBlock, createBlock, createElementVNode, withKeys, createCommentVNode, toDisplayString, withCtx, createVNode, createTextVNode } from "vue";
2
1
  import { Check as check_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
3
2
  import { ElInput, ElButton } from "element-plus";
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({
@@ -124,7 +124,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
124
124
  }, 8, ["id", "model-value", "onInput", "onBlur", "onKeypress"]))
125
125
  ], 8, _hoisted_1);
126
126
  }
127
- const Inline = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e30c0e2a"]]);
127
+ const Inline = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8cf574fc"]]);
128
128
  export {
129
129
  Inline as default
130
130
  };
@@ -1,12 +1,12 @@
1
1
  import { ref, getCurrentInstance, reactive, computed, watch, onMounted, onUpdated, createElementBlock, openBlock, withModifiers, normalizeClass, unref, withDirectives, createCommentVNode, createBlock, withKeys, createVNode, withCtx } from "vue";
2
- import { isNil } from "lodash-es";
3
- import { isNumber, isUndefined } from "../../utils/types.mjs";
2
+ import { inputNumberEmits, inputNumberProps } from "./input-number.mjs";
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";
5
- import { useFormItem } from "../../utils/use-form-item.mjs";
5
+ import { isNumber, isUndefined } from "../../utils/types.mjs";
6
6
  import { useFormSize, useFormDisabled } from "../../utils/use-form-common-props.mjs";
7
+ import { useFormItem } from "../../utils/use-form-item.mjs";
7
8
  import { ElIcon, vRepeatClick, ElInput } from "element-plus";
8
- 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";
9
- import { inputNumberEmits, inputNumberProps } from "./input-number.mjs";
9
+ import { isNil } from "lodash-es";
10
10
  import { useLocale } from "../../../node_modules/element-plus/es/hooks/use-locale/index.mjs";
11
11
  import { useNamespace } from "../../../node_modules/element-plus/es/hooks/use-namespace/index.mjs";
12
12
  import { isString } from "../../../node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
@@ -167,7 +167,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
167
167
  return newVal;
168
168
  };
169
169
  const setCurrentValue = (value, emitChange = true) => {
170
- var _a;
171
170
  const oldVal = data.currentValue;
172
171
  const newVal = verifyValue(value);
173
172
  if (!emitChange) {
@@ -179,7 +178,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
179
178
  emit(UPDATE_MODEL_EVENT, newVal);
180
179
  emit(CHANGE_EVENT, newVal, oldVal);
181
180
  if (props.validateEvent) {
182
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
181
+ formItem?.validate?.("change").catch((err) => debugWarn(err));
183
182
  }
184
183
  data.currentValue = newVal;
185
184
  };
@@ -198,22 +197,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
198
197
  data.userInput = null;
199
198
  };
200
199
  const focus = () => {
201
- var _a, _b;
202
- (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
200
+ input.value?.focus?.();
203
201
  };
204
202
  const blur = () => {
205
- var _a, _b;
206
- (_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
203
+ input.value?.blur?.();
207
204
  };
208
205
  const handleFocus = (event) => {
209
206
  emit("focus", event);
210
207
  };
211
208
  const handleBlur = (event) => {
212
- var _a;
213
209
  data.userInput = null;
214
210
  emit("blur", event);
215
211
  if (props.validateEvent) {
216
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
212
+ formItem?.validate?.("blur").catch((err) => debugWarn(err));
217
213
  }
218
214
  };
219
215
  const setCurrentValueToModelValue = () => {
@@ -238,9 +234,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
238
234
  }
239
235
  );
240
236
  onMounted(() => {
241
- var _a;
242
237
  const { min, max, modelValue } = props;
243
- const innerInput = (_a = input.value) == null ? void 0 : _a.input;
238
+ const innerInput = input.value?.input;
244
239
  innerInput.setAttribute("role", "spinbutton");
245
240
  if (Number.isFinite(max)) {
246
241
  innerInput.setAttribute("aria-valuemax", String(max));
@@ -266,9 +261,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
266
261
  }
267
262
  });
268
263
  onUpdated(() => {
269
- var _a;
270
- const innerInput = (_a = input.value) == null ? void 0 : _a.input;
271
- innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${data.currentValue ?? ""}`);
264
+ const innerInput = input.value?.input;
265
+ innerInput?.setAttribute("aria-valuenow", `${data.currentValue ?? ""}`);
272
266
  });
273
267
  __expose({
274
268
  /** @description get focus the input component */
@@ -1,5 +1,5 @@
1
- import { isNil } from "lodash-es";
2
1
  import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from "../../utils/index.mjs";
2
+ import { isNil } from "lodash-es";
3
3
  import { buildProps } from "../../utils/runtime.mjs";
4
4
  import { useSizeProp } from "../../../node_modules/element-plus/es/hooks/use-size/index.mjs";
5
5
  import { isNumber } from "../../utils/types.mjs";
@@ -36,7 +36,7 @@ const _hoisted_4 = { class: "texto" };
36
36
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
37
37
  return openBlock(), createElementBlock("div", _hoisted_1, [
38
38
  createElementVNode("div", _hoisted_2, [
39
- _cache[0] || (_cache[0] = createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="150px" height="150px" data-v-719fb911><mask id="mascara" data-v-719fb911><rect x="0" y="0" width="100%" height="100%" fill="white" data-v-719fb911></rect><circle id="circulo-interno" class="circulo" cx="45" cy="50" r="40" fill="black" data-v-719fb911></circle></mask><g id="bola" fill="none" fill-rule="evenodd" transform="translate(30 30)" data-v-719fb911><circle id="circulo" class="circulo" cx="45" cy="50" r="40" fill="#1F7DE7" mask="url(#mascara)" data-v-719fb911></circle><g fill="none" fill-rule="evenodd" data-v-719fb911><circle class="residuo top center" cx="45" cy="9" r="15" fill="#FFCB05" data-v-719fb911></circle><circle class="residuo top right" cx="72" cy="21" r="8.5" fill="#1F7DE7" data-v-719fb911></circle><circle class="residuo middle right" cx="81" cy="45" r="12" fill="#1F7DE7" data-v-719fb911></circle><circle class="residuo bottom right" cx="71" cy="70" r="8.5" fill="none" stroke="#FFCB05" stroke-width="3" data-v-719fb911></circle><circle class="residuo bottom center" cx="45" cy="81" r="8.5" fill="none" stroke="#1F7DE7" stroke-width="3" data-v-719fb911></circle><circle class="residuo bottom left" cx="19" cy="70" r="8.5" fill="#1F7DE7" data-v-719fb911></circle><circle class="residuo middle left" cx="9" cy="45" r="10" fill="#FFCB05" data-v-719fb911></circle><circle class="residuo top left" cx="18" cy="21" r="8.5" fill="none" stroke="#1F7DE7" stroke-width="3" data-v-719fb911></circle></g></g></svg>', 1)),
39
+ _cache[0] || (_cache[0] = 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)),
40
40
  createElementVNode("div", _hoisted_3, [
41
41
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.icons, (icon, k) => {
42
42
  return openBlock(), createElementBlock("i", {
@@ -53,7 +53,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
53
53
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "overlay" }, null, -1))
54
54
  ]);
55
55
  }
56
- const Loader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-719fb911"]]);
56
+ const Loader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-fdf492f2"]]);
57
57
  export {
58
58
  Loader as default
59
59
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent, resolveComponent, createBlock, openBlock, mergeProps, createSlots, withCtx, renderList, createTextVNode, toDisplayString, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
1
  import floatFormatterMixin from "../../mixins/floatFormatter.mjs";
3
2
  import { ElInput } from "element-plus";
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({
@@ -70,7 +70,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
70
70
  })
71
71
  ]), 1040, ["id", "model-value", "maxlength", "onInput", "onChange"]);
72
72
  }
73
- const Money = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3f676031"]]);
73
+ const Money = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4afe98f3"]]);
74
74
  export {
75
75
  Money as default
76
76
  };
@@ -22,7 +22,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
22
22
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
23
23
  ], 2);
24
24
  }
25
- const OptionsList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c8c0f83e"]]);
25
+ const OptionsList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b6878c99"]]);
26
26
  export {
27
27
  OptionsList as default
28
28
  };
@@ -90,7 +90,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
90
90
  _ctx.badge ? (openBlock(), createElementBlock("sup", _hoisted_3)) : createCommentVNode("", true)
91
91
  ], 42, _hoisted_1);
92
92
  }
93
- const OptionsListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ace81497"]]);
93
+ const OptionsListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e3f033e2"]]);
94
94
  export {
95
95
  OptionsListItem as default
96
96
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent, resolveComponent, createBlock, openBlock, mergeProps, createSlots, withCtx, createTextVNode } from "vue";
2
1
  import floatFormatterMixin from "../../mixins/floatFormatter.mjs";
3
2
  import { ElInput } from "element-plus";
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({
@@ -71,7 +71,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
71
71
  } : void 0
72
72
  ]), 1040, ["id", "model-value", "maxlength", "onInput", "onChange"]);
73
73
  }
74
- const Percent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9d797852"]]);
74
+ const Percent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3ffa1372"]]);
75
75
  export {
76
76
  Percent as default
77
77
  };
@@ -73,7 +73,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
73
73
  }), 128))
74
74
  ]);
75
75
  }
76
- const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3fc0709e"]]);
76
+ const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e17e8c84"]]);
77
77
  export {
78
78
  Skeleton as default
79
79
  };
@@ -200,7 +200,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
200
200
  ])
201
201
  ], 6);
202
202
  }
203
- const Step = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3c497fa9"]]);
203
+ const Step = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-903c296d"]]);
204
204
  export {
205
205
  Step as default
206
206
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent } from "vue";
2
1
  import { ElSteps } from "element-plus";
2
+ import { defineComponent } from "vue";
3
3
  const _sfc_main = defineComponent({
4
4
  name: "TpSteps",
5
5
  extends: ElSteps,
@@ -73,7 +73,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
73
73
  default: withCtx(() => _cache[2] || (_cache[2] = [
74
74
  createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
75
75
  ])),
76
- _: 1
76
+ _: 1,
77
+ __: [2]
77
78
  }),
78
79
  createVNode(_component_el_col, {
79
80
  xs: 21,
@@ -106,7 +107,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
106
107
  default: withCtx(() => _cache[3] || (_cache[3] = [
107
108
  createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
108
109
  ])),
109
- _: 1
110
+ _: 1,
111
+ __: [3]
110
112
  })
111
113
  ]),
112
114
  _: 1
@@ -159,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
159
161
  _: 1
160
162
  }, 8, ["id", "class"]));
161
163
  }
162
- const Tip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-042c88f6"]]);
164
+ const Tip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0fd7bc4b"]]);
163
165
  export {
164
166
  Tip as default
165
167
  };
@@ -1,5 +1,5 @@
1
- import { createI18n } from "vue-i18n";
2
1
  import { reactive } from "vue";
2
+ import { createI18n } from "vue-i18n";
3
3
  let i18n;
4
4
  const loadedLanguages = [];
5
5
  const i18nHelper = {
@@ -4,7 +4,6 @@ function setDefaults(app) {
4
4
  defaults = app.$i18n ? app.$i18n.t("locale.number") : ptbrLocale.locale;
5
5
  }
6
6
  function formatMoney(input, toString = false, locale = defaults, customPrecision = false) {
7
- var _a, _b;
8
7
  let inputString = `${input}`;
9
8
  if (inputString.slice(-1).match(/[.,]/)) {
10
9
  inputString = inputString.substring(0, inputString.length - 1);
@@ -18,8 +17,8 @@ function formatMoney(input, toString = false, locale = defaults, customPrecision
18
17
  const currency = numbersToCurrency(numbers, precision);
19
18
  if (toString) {
20
19
  let num = negative === -1 ? `-${currency}` : `${currency}`;
21
- if ((_a = locale == null ? void 0 : locale.number) == null ? void 0 : _a.decimal) {
22
- const decimalChar = (_b = locale == null ? void 0 : locale.number) == null ? void 0 : _b.decimal;
20
+ if (locale?.number?.decimal) {
21
+ const decimalChar = locale?.number?.decimal;
23
22
  num = num.replaceAll(",", decimalChar).replaceAll(".", decimalChar);
24
23
  }
25
24
  return num;
@@ -27,9 +26,8 @@ function formatMoney(input, toString = false, locale = defaults, customPrecision
27
26
  return currency * negative;
28
27
  }
29
28
  function completeZeros(customPrecision, input, locale) {
30
- var _a, _b;
31
- const precision = customPrecision || ((_a = locale == null ? void 0 : locale.number) == null ? void 0 : _a.precision) || defaults.precision;
32
- const decimal = ((_b = locale == null ? void 0 : locale.number) == null ? void 0 : _b.decimal) || defaults.decimal;
29
+ const precision = customPrecision || locale?.number?.precision || defaults.precision;
30
+ const decimal = locale?.number?.decimal || defaults.decimal;
33
31
  let i = input.lastIndexOf(".");
34
32
  const j = input.lastIndexOf(",");
35
33
  i = i > j ? i : j;
@@ -1,5 +1,5 @@
1
- import { warn } from "vue";
2
1
  import { fromPairs } from "lodash-es";
2
+ import { warn } from "vue";
3
3
  import { isObject, hasOwn } from "../../node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
4
4
  const epPropKey = "__epPropKey";
5
5
  const isEpProp = (val) => isObject(val) && !!val[epPropKey];
@@ -14,9 +14,9 @@ const buildProp = (prop, key) => {
14
14
  if (hasOwn(prop, "default")) {
15
15
  allowedValues.push(defaultValue);
16
16
  }
17
- valid || (valid = allowedValues.includes(val));
17
+ valid ||= allowedValues.includes(val);
18
18
  }
19
- if (validator) valid || (valid = validator(val));
19
+ if (validator) valid ||= validator(val);
20
20
  if (!valid && allowedValues.length > 0) {
21
21
  const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
22
22
  warn(
@@ -1,5 +1,5 @@
1
- import { ref, inject, computed, unref } from "vue";
2
1
  import { formContextKey, formItemContextKey } from "./constants.mjs";
2
+ import { ref, inject, computed, unref } from "vue";
3
3
  import { useProp } from "../../node_modules/element-plus/es/hooks/use-prop/index.mjs";
4
4
  import { useGlobalSize } from "../../node_modules/element-plus/es/hooks/use-size/index.mjs";
5
5
  const useFormSize = (fallback, ignore = {}) => {
@@ -9,14 +9,14 @@ const useFormSize = (fallback, ignore = {}) => {
9
9
  const form = ignore.form ? { size: void 0 } : inject(formContextKey, void 0);
10
10
  const formItem = ignore.formItem ? { size: void 0 } : inject(formItemContextKey, void 0);
11
11
  return computed(
12
- () => size.value || unref(fallback) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || globalConfig.value || ""
12
+ () => size.value || unref(fallback) || formItem?.size || form?.size || globalConfig.value || ""
13
13
  );
14
14
  };
15
15
  const useFormDisabled = (fallback) => {
16
16
  const disabled = useProp("disabled");
17
17
  const form = inject(formContextKey, void 0);
18
18
  return computed(
19
- () => disabled.value || unref(fallback) || (form == null ? void 0 : form.disabled) || false
19
+ () => disabled.value || unref(fallback) || form?.disabled || false
20
20
  );
21
21
  };
22
22
  export {
@@ -1,6 +1,6 @@
1
- import { inject, ref, computed, onMounted, watch, toRef, onUnmounted } from "vue";
2
1
  import { formContextKey, formItemContextKey } from "./constants.mjs";
3
2
  import { useId } from "./use-id.mjs";
3
+ import { inject, ref, computed, onMounted, watch, toRef, onUnmounted } from "vue";
4
4
  const useFormItem = () => {
5
5
  const form = inject(formContextKey, void 0);
6
6
  const formItem = inject(formItemContextKey, void 0);
@@ -23,8 +23,7 @@ const useFormItemInputId = (props, {
23
23
  const inputId = ref();
24
24
  let idUnwatch;
25
25
  const isLabeledByFormItem = computed(() => {
26
- var _a;
27
- return !!(!props.label && formItemContext && formItemContext.inputIds && ((_a = formItemContext.inputIds) == null ? void 0 : _a.length) <= 1);
26
+ return !!(!props.label && formItemContext && formItemContext.inputIds && formItemContext.inputIds?.length <= 1);
28
27
  });
29
28
  onMounted(() => {
30
29
  idUnwatch = watch(
@@ -32,9 +31,9 @@ const useFormItemInputId = (props, {
32
31
  ([id, disableIdGeneration2]) => {
33
32
  const newId = id ?? (!disableIdGeneration2 ? useId().value : void 0);
34
33
  if (newId !== inputId.value) {
35
- if (formItemContext == null ? void 0 : formItemContext.removeInputId) {
34
+ if (formItemContext?.removeInputId) {
36
35
  inputId.value && formItemContext.removeInputId(inputId.value);
37
- if (!(disableIdManagement == null ? void 0 : disableIdManagement.value) && !disableIdGeneration2 && newId) {
36
+ if (!disableIdManagement?.value && !disableIdGeneration2 && newId) {
38
37
  formItemContext.addInputId(newId);
39
38
  }
40
39
  }
@@ -46,7 +45,7 @@ const useFormItemInputId = (props, {
46
45
  });
47
46
  onUnmounted(() => {
48
47
  idUnwatch && idUnwatch();
49
- if (formItemContext == null ? void 0 : formItemContext.removeInputId) {
48
+ if (formItemContext?.removeInputId) {
50
49
  inputId.value && formItemContext.removeInputId(inputId.value);
51
50
  }
52
51
  });
@@ -1,6 +1,6 @@
1
- import { computed, unref, inject, getCurrentInstance } from "vue";
2
1
  import { debugWarn } from "./error.mjs";
3
2
  import { useGetDerivedNamespace } from "./use-derived-namespace.mjs";
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),
@@ -1,6 +1,6 @@
1
- import { ref } from "vue";
2
- import { isFunction } from "../../node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
3
1
  import { isKorean } from "./i18n.mjs";
2
+ import { isFunction } from "../../node_modules/@vue/shared/dist/shared.esm-bundler.mjs";
3
+ import { ref } from "vue";
4
4
  function useInput(handleInput = (event) => {
5
5
  }) {
6
6
  const isComposing = ref(false);