@voicenter-team/voicenter-ui-plus 4.0.0-beta.6 → 4.0.0-beta.7

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 (152) hide show
  1. package/MIGRATION_v3.md +196 -196
  2. package/README.md +2 -1
  3. package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
  4. package/library/assets/components/VcFilterBar/VcFilterAddMenu.css +1 -0
  5. package/library/assets/components/VcFilterBar/VcFilterBar.css +1 -0
  6. package/library/assets/components/VcFilterBar/VcFilterChip.css +1 -0
  7. package/library/assets/components/VcFilterBar/VcFilterChipEditor.css +1 -0
  8. package/library/assets/components/VcFilterBar/VcFilterEditorModal.css +1 -0
  9. package/library/assets/components/VcFilterBar/VcFilterEditorPanel.css +1 -0
  10. package/library/assets/components/VcFilterBar/editors/VcFilterBooleanEditor.css +1 -0
  11. package/library/assets/components/VcFilterBar/editors/VcFilterMultiselectEditor.css +1 -0
  12. package/library/assets/components/VcFilterBar/editors/VcFilterRangeEditor.css +1 -0
  13. package/library/assets/components/VcFilterBar/editors/VcFilterSelectEditor.css +1 -0
  14. package/library/assets/components/VcFilterBar/editors/VcFilterTextEditor.css +1 -0
  15. package/library/assets/components/VcFilterBar/editors/VcFilterTextListEditor.css +1 -0
  16. package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
  17. package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
  18. package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
  19. package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
  20. package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
  21. package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
  22. package/library/assets/components/VcLoading/VcLoading.css +1 -1
  23. package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
  24. package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
  25. package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
  26. package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
  27. package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
  28. package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
  29. package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
  30. package/library/assets/components/VcTimeInput/VcTimeInput.css +1 -1
  31. package/library/components/VcCheckbox/VcCheckbox.vue.mjs +1 -1
  32. package/library/components/VcCheckbox/VcCheckboxButton.vue.mjs +1 -1
  33. package/library/components/VcDatePicker/VcDatePicker.vue.mjs +1 -1
  34. package/library/components/VcDropdown/VcDropdownItem.vue.mjs +1 -1
  35. package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
  36. package/library/components/VcFilterBar/VcFilterAddMenu.vue.mjs +380 -0
  37. package/library/components/VcFilterBar/VcFilterAddMenu.vue3.mjs +5 -0
  38. package/library/components/VcFilterBar/VcFilterBar.vue.mjs +469 -0
  39. package/library/components/VcFilterBar/VcFilterBar.vue3.mjs +5 -0
  40. package/library/components/VcFilterBar/VcFilterChip.vue.mjs +136 -0
  41. package/library/components/VcFilterBar/VcFilterChip.vue3.mjs +5 -0
  42. package/library/components/VcFilterBar/VcFilterChipEditor.vue.mjs +133 -0
  43. package/library/components/VcFilterBar/VcFilterChipEditor.vue3.mjs +5 -0
  44. package/library/components/VcFilterBar/VcFilterEditorModal.vue.mjs +90 -0
  45. package/library/components/VcFilterBar/VcFilterEditorModal.vue3.mjs +5 -0
  46. package/library/components/VcFilterBar/VcFilterEditorPanel.vue.mjs +179 -0
  47. package/library/components/VcFilterBar/VcFilterEditorPanel.vue3.mjs +5 -0
  48. package/library/components/VcFilterBar/editors/VcFilterBooleanEditor.vue.mjs +62 -0
  49. package/library/components/VcFilterBar/editors/VcFilterBooleanEditor.vue3.mjs +5 -0
  50. package/library/components/VcFilterBar/editors/VcFilterMultiselectEditor.vue.mjs +199 -0
  51. package/library/components/VcFilterBar/editors/VcFilterMultiselectEditor.vue3.mjs +5 -0
  52. package/library/components/VcFilterBar/editors/VcFilterRangeEditor.vue.mjs +124 -0
  53. package/library/components/VcFilterBar/editors/VcFilterRangeEditor.vue3.mjs +5 -0
  54. package/library/components/VcFilterBar/editors/VcFilterSelectEditor.vue.mjs +96 -0
  55. package/library/components/VcFilterBar/editors/VcFilterSelectEditor.vue3.mjs +5 -0
  56. package/library/components/VcFilterBar/editors/VcFilterTextEditor.vue.mjs +58 -0
  57. package/library/components/VcFilterBar/editors/VcFilterTextEditor.vue3.mjs +5 -0
  58. package/library/components/VcFilterBar/editors/VcFilterTextListEditor.vue.mjs +155 -0
  59. package/library/components/VcFilterBar/editors/VcFilterTextListEditor.vue3.mjs +5 -0
  60. package/library/components/VcFilterBar/filterBarChip.mjs +59 -0
  61. package/library/components/VcFilterBar/filterBarDate.mjs +69 -0
  62. package/library/components/VcFilterBar/filterBarDraft.mjs +86 -0
  63. package/library/components/VcFilterBar/filterBarEditors.mjs +36 -0
  64. package/library/components/VcFilterBar/filterBarErrors.mjs +57 -0
  65. package/library/components/VcFilterBar/filterBarModel.mjs +378 -0
  66. package/library/components/VcFilterBar/filterBarOptions.mjs +253 -0
  67. package/library/components/VcFilterBar/filterBarSearch.mjs +89 -0
  68. package/library/components/VcFilterBar/filterBarValidate.mjs +99 -0
  69. package/library/components/VcForm/VcForm.vue.mjs +1 -1
  70. package/library/components/VcForm/VcFormItem.vue.mjs +1 -1
  71. package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +1 -1
  72. package/library/components/VcInput/VcInput.vue.mjs +1 -1
  73. package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
  74. package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
  75. package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
  76. package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +2 -2
  77. package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
  78. package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
  79. package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
  80. package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +1 -1
  81. package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
  82. package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
  83. package/library/components/VcMdEditor/VcMdEditor.vue.mjs +1 -1
  84. package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +1 -1
  85. package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +1 -1
  86. package/library/components/VcRadio/VcRadio.vue.mjs +1 -1
  87. package/library/components/VcSegmented/VcSegmented.vue.mjs +1 -1
  88. package/library/components/VcSelect/VcSelect.vue.mjs +1 -1
  89. package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
  90. package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
  91. package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
  92. package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
  93. package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
  94. package/library/components/VcSlider/VcSlider.vue.mjs +1 -1
  95. package/library/components/VcTimeInput/VcTimeInput.vue.mjs +61 -27
  96. package/library/index.mjs +227 -162
  97. package/library/index.mjs.br +0 -0
  98. package/library/index.mjs.gz +0 -0
  99. package/library/localization/index.mjs.gz +0 -0
  100. package/library/localization/locales/en.json.mjs +51 -1
  101. package/library/plugin-components.gen.mjs +125 -122
  102. package/library/plugin.mjs +225 -160
  103. package/library/plugin.mjs.br +0 -0
  104. package/library/plugin.mjs.gz +0 -0
  105. package/library/style.css +40 -16
  106. package/library/style.css.br +0 -0
  107. package/library/style.css.gz +0 -0
  108. package/library/theme/index.mjs.gz +0 -0
  109. package/library/tokens/tokens.mjs +2 -0
  110. package/library/types/components/VcFilterBar/VcFilterAddMenu.vue.d.ts +39 -0
  111. package/library/types/components/VcFilterBar/VcFilterBar.vue.d.ts +132 -0
  112. package/library/types/components/VcFilterBar/VcFilterChip.vue.d.ts +42 -0
  113. package/library/types/components/VcFilterBar/VcFilterChipEditor.vue.d.ts +46 -0
  114. package/library/types/components/VcFilterBar/VcFilterEditorModal.vue.d.ts +40 -0
  115. package/library/types/components/VcFilterBar/VcFilterEditorPanel.vue.d.ts +116 -0
  116. package/library/types/components/VcFilterBar/editors/VcFilterBooleanEditor.vue.d.ts +66 -0
  117. package/library/types/components/VcFilterBar/editors/VcFilterMultiselectEditor.vue.d.ts +73 -0
  118. package/library/types/components/VcFilterBar/editors/VcFilterRangeEditor.vue.d.ts +62 -0
  119. package/library/types/components/VcFilterBar/editors/VcFilterSelectEditor.vue.d.ts +62 -0
  120. package/library/types/components/VcFilterBar/editors/VcFilterTextEditor.vue.d.ts +68 -0
  121. package/library/types/components/VcFilterBar/editors/VcFilterTextListEditor.vue.d.ts +64 -0
  122. package/library/types/components/VcFilterBar/filterBarChip.d.ts +23 -0
  123. package/library/types/components/VcFilterBar/filterBarDate.d.ts +14 -0
  124. package/library/types/components/VcFilterBar/filterBarDraft.d.ts +28 -0
  125. package/library/types/components/VcFilterBar/filterBarEditors.d.ts +7 -0
  126. package/library/types/components/VcFilterBar/filterBarErrors.d.ts +22 -0
  127. package/library/types/components/VcFilterBar/filterBarModel.d.ts +83 -0
  128. package/library/types/components/VcFilterBar/filterBarOptions.d.ts +52 -0
  129. package/library/types/components/VcFilterBar/filterBarSearch.d.ts +23 -0
  130. package/library/types/components/VcFilterBar/filterBarValidate.d.ts +34 -0
  131. package/library/types/components/VcJsonSchema/Components/JsonSchemaEditor.vue.d.ts +1 -1
  132. package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +9 -0
  133. package/library/types/components/exports.d.ts +3 -1
  134. package/library/types/components.gen.d.ts +1 -0
  135. package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +3 -3
  136. package/library/types/index.d.ts +8 -0
  137. package/library/types/localization/locales/en.json.d.ts +415 -365
  138. package/library/types/theme/themes.json.d.ts +72 -72
  139. package/library/types/tokens/tokens.d.ts +2 -1
  140. package/library/types/types/VcFilterBar.types.d.ts +329 -0
  141. package/library/types/types/VcTimeInput.types.d.ts +3 -0
  142. package/library/types/types/index.d.ts +2 -0
  143. package/library/utils/jsonSchema/index.mjs.gz +0 -0
  144. package/package.json +311 -311
  145. package/src/theme/index.ts +101 -101
  146. package/src/theme/tailwindScheme.js +78 -78
  147. package/src/theme/theme.types.ts +31 -31
  148. package/src/theme/themeMerge.ts +63 -63
  149. package/src/theme/themes.json +72 -72
  150. package/tailwind.config.d.ts +5 -5
  151. package/tailwind.config.js +178 -178
  152. /package/library/assets/node_modules/element-plus/theme-chalk/src/{tooltip.css → date-picker.css} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, Fragment, renderList, unref, toDisplayString, createBlock, createCommentVNode, nextTick } from "vue";
2
2
  import _sfc_main$1 from "../VcPopover/VcPopover.vue.mjs";
3
- import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButton.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/cascader-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/virtual-list.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';import '../../assets/components/VcPopover/VcPopover.css';/* empty css */
3
+ import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButton.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/cascader-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/virtual-list.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';import '../../assets/components/VcPopover/VcPopover.css';/* empty css */
4
4
  import { headingMenuItems, listMenuItems, advancedMenuItems } from "./mdEditor.config.mjs";
5
5
  import { isGroupParameter } from "../../types/VcMdEditor.types.mjs";
6
6
  import { ElCascaderPanel, ElTooltip } from "element-plus";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, createBlock, unref, withCtx, createElementVNode, normalizeClass, toDisplayString, createVNode } from "vue";
2
2
  import { ElTooltip } from "element-plus";
3
- import '../../../assets/components/VcMessage/reactions/VcMessageEmojiPicker.css';import '../../../assets/components/VcIcon/VcIcon.css';import '../../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../../assets/node_modules/element-plus/theme-chalk/src/base.css';
3
+ import '../../../assets/components/VcMessage/reactions/VcMessageEmojiPicker.css';import '../../../assets/components/VcIcon/VcIcon.css';import '../../../assets/node_modules/element-plus/theme-chalk/src/date-picker.css';import '../../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../../assets/node_modules/element-plus/theme-chalk/src/base.css';
4
4
  import '../../../assets/components/VcMessage/reactions/VcMessageReactionBar.css';/* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
2
2
  import { ElRadio } from "element-plus";
3
- import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/select.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tag.css';import '../../assets/node_modules/element-plus/theme-chalk/src/autocomplete.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form-item.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
3
+ import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/select.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tag.css';import '../../assets/node_modules/element-plus/theme-chalk/src/autocomplete.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form-item.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
4
4
  import '../../assets/components/VcRadio/VcRadio.css';/* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  emits: ["update:modelValue", "change"],
32
32
  setup(__props, { emit: __emit }) {
33
33
  useCssVars((_ctx) => ({
34
- "f90f18b8": slideDuration
34
+ "v45dce9af": slideDuration
35
35
  }));
36
36
  const MAPPED_OPTION_KEYS = {
37
37
  value: "value",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, watch, openBlock, createBlock, unref, mergeProps, isRef, createSlots, withCtx, renderSlot, createElementBlock, Fragment, createVNode, createTextVNode, toDisplayString, createCommentVNode, renderList, createElementVNode, normalizeStyle, normalizeClass } from "vue";
2
2
  import { ElSelect } from "element-plus";
3
- import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcForm/VcFormItem.css';import '../../assets/components/VcCheckbox/VcCheckbox.css';import '../../assets/components/VcSelect/VcSelectOption.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/select.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tag.css';import '../../assets/node_modules/element-plus/theme-chalk/src/autocomplete.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form-item.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
3
+ import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcForm/VcFormItem.css';import '../../assets/components/VcCheckbox/VcCheckbox.css';import '../../assets/components/VcSelect/VcSelectOption.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/select.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tag.css';import '../../assets/node_modules/element-plus/theme-chalk/src/autocomplete.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form-item.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
4
4
  import '../../assets/components/VcSelect/VcSelect.css';/* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Card.vue2.mjs";
2
2
  import '../../../assets/components/VcSkeletonLoader/Loaders/Card.css';/* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b42b9dc0"]]);
4
+ const Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-16ee0368"]]);
5
5
  export {
6
6
  Card as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Circle.vue2.mjs";
2
2
  import '../../../assets/components/VcSkeletonLoader/Loaders/Circle.css';/* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const Circle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d07adbb8"]]);
4
+ const Circle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0ad3df7c"]]);
5
5
  export {
6
6
  Circle as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Row.vue2.mjs";
2
2
  import '../../../assets/components/VcSkeletonLoader/Loaders/Row.css';/* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const Row = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-df8419d5"]]);
4
+ const Row = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-147d5fbb"]]);
5
5
  export {
6
6
  Row as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Square.vue2.mjs";
2
2
  import '../../../assets/components/VcSkeletonLoader/Loaders/Square.css';/* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const Square = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-04b65ecc"]]);
4
+ const Square = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-daeb74ee"]]);
5
5
  export {
6
6
  Square as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Text.vue2.mjs";
2
2
  import '../../../assets/components/VcSkeletonLoader/Loaders/Text.css';/* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-64651d77"]]);
4
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2723084e"]]);
5
5
  export {
6
6
  Text as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps } from "vue";
2
2
  import { ElSlider } from "element-plus";
3
- import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
3
+ import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
4
4
  import '../../assets/components/VcSlider/VcSlider.css';/* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
@@ -12,10 +12,16 @@ const _hoisted_2 = {
12
12
  "data-test": "time-input-container"
13
13
  };
14
14
  const _hoisted_3 = ["disabled"];
15
- const _hoisted_4 = { class: "divider-wrapper" };
15
+ const _hoisted_4 = {
16
+ key: 1,
17
+ class: "divider-wrapper"
18
+ };
16
19
  const _hoisted_5 = { class: "divider" };
17
20
  const _hoisted_6 = ["disabled"];
18
- const _hoisted_7 = { class: "divider-wrapper" };
21
+ const _hoisted_7 = {
22
+ key: 3,
23
+ class: "divider-wrapper"
24
+ };
19
25
  const _hoisted_8 = { class: "divider" };
20
26
  const _hoisted_9 = ["disabled"];
21
27
  const CLASS_FOR_COLOR = "vc-time-input-color--";
@@ -34,6 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
40
  emptyDataText: { default: "" },
35
41
  placeholder: { default: "" },
36
42
  allowMouseWheel: { type: Boolean, default: false },
43
+ format: { default: "hh:mm:ss" },
37
44
  id: { default: void 0 },
38
45
  disabled: { type: Boolean, default: false },
39
46
  clearable: { type: Boolean },
@@ -48,6 +55,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
55
  },
49
56
  emits: ["input", "update:modelValue"],
50
57
  setup(__props, { emit: __emit }) {
58
+ const UNIT_OF = {
59
+ hh: "hours",
60
+ mm: "minutes",
61
+ ss: "seconds"
62
+ };
51
63
  const vLongPress = { ...longPress };
52
64
  const props = __props;
53
65
  const emit = __emit;
@@ -78,11 +90,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
90
  const _time = props.modelValue || timeModel.value;
79
91
  return !!(!isFocus.value && _time === 0 && props.emptyDataText);
80
92
  });
93
+ const units = computed(() => props.format.split(":").map((part) => UNIT_OF[part]).filter((unit) => !!unit));
94
+ const lastUnit = computed(() => units.value[units.value.length - 1] ?? "seconds");
95
+ function clearHiddenUnits() {
96
+ const order = ["hours", "minutes", "seconds"];
97
+ order.slice(order.indexOf(lastUnit.value) + 1).forEach((unit) => {
98
+ timeSettingModel[unit] = "00";
99
+ });
100
+ }
101
+ function inputStyle(unit) {
102
+ const digits = timeSettingModel[unit].length;
103
+ return unit === units.value[0] && digits > 2 ? { width: `calc(${digits}ch + 0.5rem)` } : void 0;
104
+ }
81
105
  const placeholderInput = computed(() => {
82
- return props.emptyDataText || props.placeholder || "00:00:00";
106
+ return props.emptyDataText || props.placeholder || units.value.map(() => "00").join(props.divider);
83
107
  });
84
108
  function onClickWrapper() {
85
- onClickInput("seconds");
109
+ onClickInput(lastUnit.value);
86
110
  }
87
111
  const onLongPressDecrease = () => {
88
112
  return decrease();
@@ -105,7 +129,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
129
  return parseInt(hours2) * 3600 + parseInt(minutes2) * 60 + parseInt(seconds2);
106
130
  }
107
131
  function onPlaceholderClick() {
108
- onClickInput("seconds");
132
+ onClickInput(lastUnit.value);
109
133
  }
110
134
  function onClickInput(type) {
111
135
  var _a, _b, _c;
@@ -130,7 +154,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
154
  if (timeValue < 0) {
131
155
  timeValue = 0;
132
156
  }
133
- if (["minutes", "seconds"].includes(type) && timeValue > 59) {
157
+ if (["minutes", "seconds"].includes(type) && type !== units.value[0] && timeValue > 59) {
134
158
  timeValue = 59;
135
159
  }
136
160
  return timeValue;
@@ -142,8 +166,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
142
166
  return `${val}`;
143
167
  }
144
168
  function getTimeData(value) {
145
- const hours2 = Math.floor(value / 3600);
146
- const minutes2 = Math.floor(value / 60 - hours2 * 60);
169
+ const first = units.value[0];
170
+ const hours2 = first === "hours" ? Math.floor(value / 3600) : 0;
171
+ const minutes2 = first === "seconds" ? 0 : Math.floor((value - hours2 * 3600) / 60);
147
172
  const seconds2 = Math.floor(value - hours2 * 3600 - minutes2 * 60);
148
173
  return {
149
174
  hours: hours2,
@@ -168,7 +193,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
168
193
  return;
169
194
  }
170
195
  let _nevTime = timeModel.value + props.step;
171
- if (_nevTime >= props.maxValue) {
196
+ if (props.maxValue > 0 && _nevTime >= props.maxValue) {
172
197
  _nevTime = props.maxValue;
173
198
  }
174
199
  setTimeData(_nevTime);
@@ -239,12 +264,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
239
264
  };
240
265
  emit("update:modelValue", props.minValue);
241
266
  emit("input", res);
242
- } else if (timeModel.value > props.maxValue) {
267
+ } else if (props.maxValue > 0 && timeModel.value > props.maxValue) {
243
268
  const res = {
244
269
  seconds: props.maxValue || 0,
245
270
  string: { ...timeSettingModel }
246
271
  };
247
- emit("update:modelValue", props.minValue);
272
+ emit("update:modelValue", props.maxValue);
248
273
  emit("input", res);
249
274
  }
250
275
  });
@@ -290,57 +315,66 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
290
315
  onClick: withModifiers(onClickWrapper, ["stop", "self"]),
291
316
  onWheel: onWheelMouse
292
317
  }, [
293
- withDirectives(createElementVNode("input", {
318
+ units.value.includes("hours") ? withDirectives((openBlock(), createElementBlock("input", {
319
+ key: 0,
294
320
  ref_key: "hours",
295
321
  ref: hours,
296
322
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => timeSettingModel.hours = $event),
297
323
  class: "vc-time-input__input hours",
324
+ style: normalizeStyle(inputStyle("hours")),
298
325
  type: "number",
299
326
  "data-test": "hours",
300
327
  disabled: __props.disabled,
301
328
  placeholder: "00",
302
329
  onFocusin: _cache[1] || (_cache[1] = ($event) => isFocus.value = true),
303
330
  onFocusout: _cache[2] || (_cache[2] = ($event) => isFocus.value = false),
304
- onClick: _cache[3] || (_cache[3] = ($event) => onClickInput("hours"))
305
- }, null, 40, _hoisted_3), [
331
+ onClick: _cache[3] || (_cache[3] = ($event) => onClickInput("hours")),
332
+ onInput: clearHiddenUnits
333
+ }, null, 44, _hoisted_3)), [
306
334
  [vModelText, timeSettingModel.hours]
307
- ]),
308
- createElementVNode("div", _hoisted_4, [
335
+ ]) : createCommentVNode("", true),
336
+ units.value.includes("hours") && units.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
309
337
  createElementVNode("span", _hoisted_5, toDisplayString(__props.divider), 1)
310
- ]),
311
- withDirectives(createElementVNode("input", {
338
+ ])) : createCommentVNode("", true),
339
+ units.value.includes("minutes") ? withDirectives((openBlock(), createElementBlock("input", {
340
+ key: 2,
312
341
  ref_key: "minutes",
313
342
  ref: minutes,
314
343
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => timeSettingModel.minutes = $event),
315
344
  class: "vc-time-input__input minutes",
345
+ style: normalizeStyle(inputStyle("minutes")),
316
346
  type: "number",
317
347
  "data-test": "minutes",
318
348
  disabled: __props.disabled,
319
349
  placeholder: "00",
320
350
  onFocusin: _cache[5] || (_cache[5] = ($event) => isFocus.value = true),
321
351
  onFocusout: _cache[6] || (_cache[6] = ($event) => isFocus.value = false),
322
- onClick: _cache[7] || (_cache[7] = ($event) => onClickInput("minutes"))
323
- }, null, 40, _hoisted_6), [
352
+ onClick: _cache[7] || (_cache[7] = ($event) => onClickInput("minutes")),
353
+ onInput: clearHiddenUnits
354
+ }, null, 44, _hoisted_6)), [
324
355
  [vModelText, timeSettingModel.minutes]
325
- ]),
326
- createElementVNode("div", _hoisted_7, [
356
+ ]) : createCommentVNode("", true),
357
+ units.value.includes("minutes") && units.value.includes("seconds") ? (openBlock(), createElementBlock("div", _hoisted_7, [
327
358
  createElementVNode("span", _hoisted_8, toDisplayString(__props.divider), 1)
328
- ]),
329
- withDirectives(createElementVNode("input", {
359
+ ])) : createCommentVNode("", true),
360
+ units.value.includes("seconds") ? withDirectives((openBlock(), createElementBlock("input", {
361
+ key: 4,
330
362
  ref_key: "seconds",
331
363
  ref: seconds,
332
364
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => timeSettingModel.seconds = $event),
333
365
  class: "vc-time-input__input seconds",
366
+ style: normalizeStyle(inputStyle("seconds")),
334
367
  type: "number",
335
368
  "data-test": "seconds",
336
369
  disabled: __props.disabled,
337
370
  placeholder: "00",
338
371
  onFocusin: _cache[9] || (_cache[9] = ($event) => isFocus.value = true),
339
372
  onFocusout: _cache[10] || (_cache[10] = ($event) => isFocus.value = false),
340
- onClick: _cache[11] || (_cache[11] = ($event) => onClickInput("seconds"))
341
- }, null, 40, _hoisted_9), [
373
+ onClick: _cache[11] || (_cache[11] = ($event) => onClickInput("seconds")),
374
+ onInput: clearHiddenUnits
375
+ }, null, 44, _hoisted_9)), [
342
376
  [vModelText, timeSettingModel.seconds]
343
- ])
377
+ ]) : createCommentVNode("", true)
344
378
  ], 32)
345
379
  ]),
346
380
  withDirectives((openBlock(), createElementBlock("div", {