@tagplus/components 5.3.7 → 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.
Files changed (111) hide show
  1. package/dist/es/components.css +132 -132
  2. package/dist/es/node_modules/@element-plus/icons-vue/dist/index.mjs +20 -29
  3. package/dist/es/node_modules/@popperjs/core/dist/index.mjs +586 -0
  4. package/dist/es/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +0 -5
  5. package/dist/es/node_modules/@vueuse/core/index.mjs +58 -103
  6. package/dist/es/node_modules/@vueuse/shared/index.mjs +16 -47
  7. package/dist/es/node_modules/element-plus/es/constants/size.mjs +6 -1
  8. package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +17 -36
  9. package/dist/es/node_modules/element-plus/es/hooks/use-id/index.mjs +5 -8
  10. package/dist/es/node_modules/element-plus/es/hooks/use-locale/index.mjs +7 -12
  11. package/dist/es/node_modules/element-plus/es/hooks/use-namespace/index.mjs +7 -22
  12. package/dist/es/node_modules/element-plus/es/hooks/use-prop/index.mjs +1 -4
  13. package/dist/es/node_modules/element-plus/es/hooks/use-size/index.mjs +3 -3
  14. package/dist/es/node_modules/element-plus/es/locale/lang/en.mjs +28 -31
  15. package/dist/es/node_modules/element-plus/es/utils/dom/aria.mjs +19 -0
  16. package/dist/es/node_modules/element-plus/es/utils/error.mjs +4 -3
  17. package/dist/es/node_modules/element-plus/es/utils/vue/props/runtime.mjs +19 -25
  18. package/dist/es/src/components/Autosuggest/Autosuggest.vue.mjs +264 -267
  19. package/dist/es/src/components/Autosuggest/Multisuggest.vue.mjs +5 -3
  20. package/dist/es/src/components/Autosuggest/autosuggest-props.mjs +2 -2
  21. package/dist/es/src/components/Autosuggest/core.mjs +4 -4
  22. package/dist/es/src/components/Autosuggest/option.vue.mjs +2 -2
  23. package/dist/es/src/components/Autosuggest/select-dropdown.vue.mjs +3 -4
  24. package/dist/es/src/components/Autosuggest/useOption.mjs +2 -2
  25. package/dist/es/src/components/Autosuggest/useSelect.mjs +16 -22
  26. package/dist/es/src/components/Inline/Inline.vue.mjs +2 -2
  27. package/dist/es/src/components/InputNumber/InputNumber.vue.mjs +36 -26
  28. package/dist/es/src/components/InputNumber/input-number.mjs +11 -3
  29. package/dist/es/src/components/Loader/Loader.vue.mjs +3 -3
  30. package/dist/es/src/components/Money/Money.vue.mjs +2 -2
  31. package/dist/es/src/components/OptionsList/OptionsList.vue.mjs +2 -2
  32. package/dist/es/src/components/OptionsListItem/OptionsListItem.vue.mjs +2 -2
  33. package/dist/es/src/components/Percent/Percent.vue.mjs +4 -4
  34. package/dist/es/src/components/Skeleton/Skeleton.vue.mjs +2 -2
  35. package/dist/es/src/components/Step/Step.vue.mjs +2 -2
  36. package/dist/es/src/components/Steps/Steps.vue.mjs +1 -1
  37. package/dist/es/src/components/Tip/Tip.vue.mjs +6 -6
  38. package/dist/es/src/locale/i18nCreator.mjs +1 -1
  39. package/dist/es/src/plugins/currency.mjs +4 -6
  40. package/dist/es/src/utils/constants.mjs +2 -2
  41. package/dist/es/src/utils/runtime.mjs +3 -3
  42. package/dist/es/src/utils/use-derived-namespace.mjs +1 -1
  43. package/dist/es/src/utils/use-form-common-props.mjs +3 -3
  44. package/dist/es/src/utils/use-form-item.mjs +5 -6
  45. package/dist/es/src/utils/use-id.mjs +2 -2
  46. package/dist/es/src/utils/use-input.mjs +2 -2
  47. package/dist/lib/components.css +132 -132
  48. package/dist/lib/node_modules/@element-plus/icons-vue/dist/index.js +19 -28
  49. package/dist/lib/node_modules/@popperjs/core/dist/index.js +586 -0
  50. package/dist/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -5
  51. package/dist/lib/node_modules/@vueuse/core/index.js +56 -100
  52. package/dist/lib/node_modules/@vueuse/shared/index.js +15 -46
  53. package/dist/lib/node_modules/element-plus/es/constants/size.js +6 -1
  54. package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +17 -36
  55. package/dist/lib/node_modules/element-plus/es/hooks/use-id/index.js +5 -8
  56. package/dist/lib/node_modules/element-plus/es/hooks/use-locale/index.js +6 -11
  57. package/dist/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +7 -22
  58. package/dist/lib/node_modules/element-plus/es/hooks/use-prop/index.js +1 -4
  59. package/dist/lib/node_modules/element-plus/es/hooks/use-size/index.js +3 -3
  60. package/dist/lib/node_modules/element-plus/es/locale/lang/en.js +28 -31
  61. package/dist/lib/node_modules/element-plus/es/utils/dom/aria.js +19 -0
  62. package/dist/lib/node_modules/element-plus/es/utils/error.js +4 -3
  63. package/dist/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +19 -25
  64. package/dist/lib/src/components/Autosuggest/Autosuggest.vue.js +264 -267
  65. package/dist/lib/src/components/Autosuggest/Multisuggest.vue.js +5 -3
  66. package/dist/lib/src/components/Autosuggest/autosuggest-props.js +2 -2
  67. package/dist/lib/src/components/Autosuggest/core.js +4 -4
  68. package/dist/lib/src/components/Autosuggest/option.vue.js +2 -2
  69. package/dist/lib/src/components/Autosuggest/select-dropdown.vue.js +3 -4
  70. package/dist/lib/src/components/Autosuggest/useOption.js +2 -2
  71. package/dist/lib/src/components/Autosuggest/useSelect.js +16 -22
  72. package/dist/lib/src/components/Inline/Inline.vue.js +2 -2
  73. package/dist/lib/src/components/InputNumber/InputNumber.vue.js +35 -25
  74. package/dist/lib/src/components/InputNumber/input-number.js +11 -3
  75. package/dist/lib/src/components/Loader/Loader.vue.js +2 -2
  76. package/dist/lib/src/components/Money/Money.vue.js +2 -2
  77. package/dist/lib/src/components/OptionsList/OptionsList.vue.js +1 -1
  78. package/dist/lib/src/components/OptionsListItem/OptionsListItem.vue.js +1 -1
  79. package/dist/lib/src/components/Percent/Percent.vue.js +4 -4
  80. package/dist/lib/src/components/Skeleton/Skeleton.vue.js +1 -1
  81. package/dist/lib/src/components/Step/Step.vue.js +1 -1
  82. package/dist/lib/src/components/Steps/Steps.vue.js +1 -1
  83. package/dist/lib/src/components/Tip/Tip.vue.js +5 -5
  84. package/dist/lib/src/locale/i18nCreator.js +1 -1
  85. package/dist/lib/src/plugins/currency.js +4 -6
  86. package/dist/lib/src/utils/constants.js +2 -2
  87. package/dist/lib/src/utils/runtime.js +3 -3
  88. package/dist/lib/src/utils/use-derived-namespace.js +1 -1
  89. package/dist/lib/src/utils/use-form-common-props.js +3 -3
  90. package/dist/lib/src/utils/use-form-item.js +5 -6
  91. package/dist/lib/src/utils/use-id.js +2 -2
  92. package/dist/lib/src/utils/use-input.js +2 -2
  93. package/package.json +24 -32
  94. package/dist/demo.html +0 -1
  95. package/dist/es/node_modules/@popperjs/core/lib/enums.mjs +0 -22
  96. package/dist/es/node_modules/element-plus/es/utils/types.mjs +0 -9
  97. package/dist/fonts/bevi-bold.7e4dcd11.woff +0 -0
  98. package/dist/fonts/bevi-bold.873def84.woff2 +0 -0
  99. package/dist/fonts/bevi-medium.6187e050.woff2 +0 -0
  100. package/dist/fonts/bevi-medium.65b3056d.woff +0 -0
  101. package/dist/fonts/bevi-regular.c89f126e.woff +0 -0
  102. package/dist/fonts/bevi-regular.f81e4b8f.woff2 +0 -0
  103. package/dist/lib/node_modules/@popperjs/core/lib/enums.js +0 -22
  104. package/dist/lib/node_modules/element-plus/es/utils/types.js +0 -9
  105. package/dist/tp.common.js +0 -2
  106. package/dist/tp.common.js.map +0 -1
  107. package/dist/tp.css +0 -167
  108. package/dist/tp.umd.js +0 -2
  109. package/dist/tp.umd.js.map +0 -1
  110. package/dist/tp.umd.min.js +0 -2
  111. package/dist/tp.umd.min.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { provide, reactive } from "vue";
2
- import { ElScrollbar, ElRow, ElIcon, ElTag, ElDivider, ElTooltip, ClickOutside } from "element-plus";
3
- import { ArrowDown as arrow_down_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
4
- import ElSelectMenu from "./select-dropdown.vue.mjs";
5
1
  import ElOption from "./option.vue.mjs";
2
+ import ElSelectMenu from "./select-dropdown.vue.mjs";
6
3
  import { useSelect } from "./useSelect.mjs";
4
+ import { ArrowDown as arrow_down_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
5
+ import { ElScrollbar, ElRow, ElIcon, ElTag, ElDivider, ElTooltip, ClickOutside } from "element-plus";
6
+ import { provide, reactive } from "vue";
7
7
  function autosuggestCore(component_name, propsDefinition) {
8
8
  return {
9
9
  name: component_name,
@@ -1,8 +1,8 @@
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";
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
- import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createCommentVNode, renderSlot, ref } from "vue";
2
1
  import { useResizeObserver } from "../../../node_modules/@vueuse/core/index.mjs";
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",
@@ -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,17 +1,17 @@
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
- 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";
@@ -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
  {
@@ -433,8 +432,7 @@ const useSelect = (props, { emit }) => {
433
432
  states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
434
433
  };
435
434
  const updateTooltip = () => {
436
- var _a, _b;
437
- (_b = (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
435
+ tooltipRef.value?.updatePopper?.();
438
436
  };
439
437
  const onInputChange = () => {
440
438
  if (states.inputValue.length > 0 && !expanded.value) {
@@ -554,10 +552,9 @@ const useSelect = (props, { emit }) => {
554
552
  return -1;
555
553
  };
556
554
  const scrollToOption = (option) => {
557
- var _a, _b, _c, _d, _e;
558
555
  const targetOption = isArray(option) ? option[0] : option;
559
556
  let target = null;
560
- if (targetOption == null ? void 0 : targetOption.value) {
557
+ if (targetOption?.value) {
561
558
  const options = optionsArray.value.filter(
562
559
  (item) => item.value === targetOption.value
563
560
  );
@@ -566,15 +563,14 @@ const useSelect = (props, { emit }) => {
566
563
  }
567
564
  }
568
565
  if (tooltipRef.value && target) {
569
- 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(
570
- _c,
566
+ const menu = tooltipRef.value?.popperRef?.contentRef?.querySelector?.(
571
567
  `.${nsSelect.be("dropdown", "wrap")}`
572
568
  );
573
569
  if (menu) {
574
570
  scrollIntoView(menu, target);
575
571
  }
576
572
  }
577
- (_e = scrollbarRef.value) == null ? void 0 : _e.handleScroll();
573
+ scrollbarRef.value?.handleScroll();
578
574
  };
579
575
  const onOptionCreate = (vm) => {
580
576
  states.options.set(vm.value, vm);
@@ -592,15 +588,13 @@ const useSelect = (props, { emit }) => {
592
588
  handleCompositionEnd
593
589
  } = useInput((e) => onInput(e));
594
590
  const popperRef = computed(() => {
595
- var _a, _b;
596
- return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
591
+ return tooltipRef.value?.popperRef?.contentRef;
597
592
  });
598
593
  const handleMenuEnter = () => {
599
594
  nextTick(() => scrollToOption(states.selected));
600
595
  };
601
596
  const focus = () => {
602
- var _a;
603
- (_a = inputRef.value) == null ? void 0 : _a.focus();
597
+ inputRef.value?.focus();
604
598
  };
605
599
  const blur = () => {
606
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 { 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({
@@ -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,14 +1,14 @@
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";
1
+ import { ref, getCurrentInstance, reactive, computed, watch, onMounted, onUpdated, openBlock, createElementBlock, withModifiers, normalizeClass, unref, withDirectives, withKeys, createVNode, withCtx, createBlock, createCommentVNode } from "vue";
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";
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
- const noLetters = value.replaceAll(/[a-zA-Z]/g, "");
84
- const res = noLetters.replace(".", decimalChar).replace(/\B(?=(\d{3})+(?!\d))/g, thousandsChar);
85
- return res;
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
- const regexThou = `/$s?|(${thousandsChar}*)/g`;
93
- const res = value.replace(regexThou, "").replace(decimalChar, ".");
94
- return res;
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) => {
@@ -167,7 +182,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
167
182
  return newVal;
168
183
  };
169
184
  const setCurrentValue = (value, emitChange = true) => {
170
- var _a;
171
185
  const oldVal = data.currentValue;
172
186
  const newVal = verifyValue(value);
173
187
  if (!emitChange) {
@@ -179,14 +193,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
179
193
  emit(UPDATE_MODEL_EVENT, newVal);
180
194
  emit(CHANGE_EVENT, newVal, oldVal);
181
195
  if (props.validateEvent) {
182
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
196
+ formItem?.validate?.("change").catch((err) => debugWarn(err));
183
197
  }
184
198
  data.currentValue = newVal;
185
199
  };
186
200
  const handleInput = (value) => {
187
201
  data.userInput = value;
188
- const newVal = value === "" ? null : Number(value);
202
+ const newVal = toNumberValue(value);
189
203
  emit(INPUT_EVENT, newVal);
204
+ emit(CHANGE_EVENT, newVal, data.currentValue);
190
205
  setCurrentValue(newVal, false);
191
206
  };
192
207
  const handleInputChange = (value) => {
@@ -198,22 +213,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
198
213
  data.userInput = null;
199
214
  };
200
215
  const focus = () => {
201
- var _a, _b;
202
- (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
216
+ input.value?.focus?.();
203
217
  };
204
218
  const blur = () => {
205
- var _a, _b;
206
- (_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
219
+ input.value?.blur?.();
207
220
  };
208
221
  const handleFocus = (event) => {
209
222
  emit("focus", event);
210
223
  };
211
224
  const handleBlur = (event) => {
212
- var _a;
213
225
  data.userInput = null;
214
226
  emit("blur", event);
215
227
  if (props.validateEvent) {
216
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
228
+ formItem?.validate?.("blur").catch((err) => debugWarn(err));
217
229
  }
218
230
  };
219
231
  const setCurrentValueToModelValue = () => {
@@ -238,9 +250,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
238
250
  }
239
251
  );
240
252
  onMounted(() => {
241
- var _a;
242
253
  const { min, max, modelValue } = props;
243
- const innerInput = (_a = input.value) == null ? void 0 : _a.input;
254
+ const innerInput = input.value?.input;
244
255
  innerInput.setAttribute("role", "spinbutton");
245
256
  if (Number.isFinite(max)) {
246
257
  innerInput.setAttribute("aria-valuemax", String(max));
@@ -266,9 +277,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
266
277
  }
267
278
  });
268
279
  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 ?? ""}`);
280
+ const innerInput = input.value?.input;
281
+ innerInput?.setAttribute("aria-valuenow", `${data.currentValue ?? ""}`);
272
282
  });
273
283
  __expose({
274
284
  /** @description get focus the input component */
@@ -1,7 +1,7 @@
1
- import { isNil } from "lodash-es";
2
1
  import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from "../../utils/index.mjs";
3
- import { buildProps } from "../../utils/runtime.mjs";
4
2
  import { useSizeProp } from "../../../node_modules/element-plus/es/hooks/use-size/index.mjs";
3
+ import { isNil } from "lodash-es";
4
+ import { buildProps } from "../../utils/runtime.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 !== cur,
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 { defineComponent, createElementBlock, openBlock, createElementVNode, createStaticVNode, Fragment, renderList, normalizeStyle, normalizeClass, renderSlot } from "vue";
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({
@@ -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 { 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({
@@ -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
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
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({
@@ -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
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, withKeys, normalizeClass, createElementVNode, createCommentVNode, Fragment, renderList, toDisplayString } from "vue";
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({
@@ -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 { 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,20 +58,20 @@ 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
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
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, Fragment, renderList, normalizeStyle, normalizeClass } from "vue";
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({
@@ -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
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, renderSlot, createCommentVNode, toDisplayString, createTextVNode } from "vue";
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({
@@ -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,
@@ -1,5 +1,5 @@
1
1
  import { ElCol, ElRow } from "element-plus";
2
- import { resolveComponent, createBlock, openBlock, normalizeClass, withCtx, createVNode, createElementVNode, toDisplayString, createElementBlock } from "vue";
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,9 +70,9 @@ 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
- ])),
75
+ ])]),
76
76
  _: 1
77
77
  }),
78
78
  createVNode(_component_el_col, {
@@ -103,9 +103,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
103
  }, {
104
104
  default: withCtx(() => [
105
105
  createVNode(_component_el_row, { justify: "start" }, {
106
- default: withCtx(() => _cache[3] || (_cache[3] = [
106
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
107
107
  createElementVNode("em", { class: "far fa-lightbulb-on" }, null, -1)
108
- ])),
108
+ ])]),
109
109
  _: 1
110
110
  })
111
111
  ]),
@@ -159,7 +159,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
159
159
  _: 1
160
160
  }, 8, ["id", "class"]));
161
161
  }
162
- const Tip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-042c88f6"]]);
162
+ const Tip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0fd7bc4b"]]);
163
163
  export {
164
164
  Tip as default
165
165
  };
@@ -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
- 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,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(