@voicenter-team/voicenter-ui-plus 3.0.0 → 3.0.1

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 (81) hide show
  1. package/library/assets/assets/sass/main.css +1 -1
  2. package/library/assets/components/VcButton/VcButton.css +1 -1
  3. package/library/assets/components/VcButton/VcButtonIcon.css +1 -1
  4. package/library/assets/components/VcDelimitedList/VcDelimitedList.css +1 -1
  5. package/library/assets/components/VcExcelUploader/VcExcelFileUploadBlock.css +1 -1
  6. package/library/assets/components/VcModal/VcModal.css +1 -1
  7. package/library/assets/components/VcSoundplayer/VcSoundPlayer.css +1 -1
  8. package/library/assets/components/VcSplitButton/VcSplitButton.css +1 -1
  9. package/library/assets/components/VcTable/VcTable.css +1 -1
  10. package/library/assets/entity/components/Form/VcBaseVerticalForm.css +1 -1
  11. package/library/assets/entity/components/Table/VcEntityListTable.css +1 -1
  12. package/library/assets/entity/components/Tabs/VcEntityEditableTabs.css +1 -1
  13. package/library/components/VcButton/VcButton.vue.mjs +3 -2
  14. package/library/components/VcButton/VcButtonIcon.vue.mjs +92 -5
  15. package/library/components/VcButton/VcButtonIcon.vue3.mjs +5 -0
  16. package/library/components/VcButton/VcToggleButton.vue.mjs +20 -7
  17. package/library/components/VcDelimitedList/VcDelimitedList.vue.mjs +194 -5
  18. package/library/components/VcDelimitedList/VcDelimitedList.vue3.mjs +5 -0
  19. package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue.mjs +140 -5
  20. package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue3.mjs +5 -0
  21. package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +6 -5
  22. package/library/components/VcExcelUploader/VcFileImportParseResultBlock.vue.mjs +5 -3
  23. package/library/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.mjs +21 -18
  24. package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.mjs +4 -3
  25. package/library/components/VcFileUploader/VcFileUploader.vue2.mjs +11 -9
  26. package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +10 -9
  27. package/library/components/VcIcon/VcIcon.vue.mjs +7 -3
  28. package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +8 -7
  29. package/library/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.mjs +10 -9
  30. package/library/components/VcMdEditor/ParameterNode.vue2.mjs +6 -5
  31. package/library/components/VcMdEditor/VcMdEditor.vue.mjs +8 -7
  32. package/library/components/VcPagination/VcPaginationButton.vue.mjs +3 -2
  33. package/library/components/VcSelect/VcSelect.vue.mjs +9 -5
  34. package/library/components/VcSoundplayer/VcSoundPlayer.vue.mjs +274 -5
  35. package/library/components/VcSoundplayer/VcSoundPlayer.vue3.mjs +5 -0
  36. package/library/components/VcSplitButton/VcSplitButton.vue.mjs +4 -3
  37. package/library/components/VcTable/VcTable.vue.mjs +1069 -6
  38. package/library/components/VcTable/VcTable.vue4.mjs +6 -0
  39. package/library/components/VcTree/VcTreeSelect.vue.mjs +8 -7
  40. package/library/entity/components/Button/VcEntityDeleteIconButton.vue.mjs +3 -2
  41. package/library/entity/components/Button/VcEntityEditIconButton.vue.mjs +3 -2
  42. package/library/entity/components/Form/VcBaseVerticalForm.vue.mjs +95 -5
  43. package/library/entity/components/Form/VcBaseVerticalForm.vue3.mjs +5 -0
  44. package/library/entity/components/Form/VcEntityVerticalCreateForm.vue.mjs +3 -2
  45. package/library/entity/components/Form/VcEntityVerticalEditForm.vue.mjs +9 -8
  46. package/library/entity/components/Table/VcEntityListTable.vue.mjs +414 -5
  47. package/library/entity/components/Table/VcEntityListTable.vue3.mjs +5 -0
  48. package/library/entity/components/Tabs/VcEntityEditableTabs.vue.mjs +287 -5
  49. package/library/entity/components/Tabs/VcEntityEditableTabs.vue3.mjs +5 -0
  50. package/library/index.mjs +8 -0
  51. package/library/index.mjs.br +0 -0
  52. package/library/index.mjs.gz +0 -0
  53. package/library/plugin.mjs +272 -264
  54. package/library/plugin.mjs.br +0 -0
  55. package/library/plugin.mjs.gz +0 -0
  56. package/library/style.css +12 -12
  57. package/library/style.css.br +0 -0
  58. package/library/style.css.gz +0 -0
  59. package/library/types/components/VcButton/VcButton.vue.d.ts +1 -1
  60. package/library/types/components/VcButton/VcToggleButton.vue.d.ts +4 -0
  61. package/library/types/components/VcDelimitedList/VcDelimitedList.vue.d.ts +1 -2
  62. package/library/types/components/VcIcon/VcIcon.vue.d.ts +1 -0
  63. package/library/types/components/VcLoading/VcLoading.vue.d.ts +1 -1
  64. package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +1 -1
  65. package/library/types/components/VcSelect/VcSelect.vue.d.ts +3 -3
  66. package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +3 -3
  67. package/library/types/components/VcSipFlow/VcSipFlow.vue.d.ts +1 -1
  68. package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +1 -1
  69. package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +3 -3
  70. package/library/types/components/VcTable/VcTable.vue.d.ts +3 -3
  71. package/library/types/components/VcTree/VcTree.vue.d.ts +3 -3
  72. package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +3 -3
  73. package/package.json +1 -1
  74. package/library/components/VcButton/VcButtonIcon.vue2.mjs +0 -92
  75. package/library/components/VcDelimitedList/VcDelimitedList.vue2.mjs +0 -195
  76. package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue2.mjs +0 -141
  77. package/library/components/VcSoundplayer/VcSoundPlayer.vue2.mjs +0 -275
  78. package/library/components/VcTable/VcTable.vue2.mjs +0 -1069
  79. package/library/entity/components/Form/VcBaseVerticalForm.vue2.mjs +0 -96
  80. package/library/entity/components/Table/VcEntityListTable.vue2.mjs +0 -413
  81. package/library/entity/components/Tabs/VcEntityEditableTabs.vue2.mjs +0 -288
@@ -0,0 +1,6 @@
1
+ import _sfc_main from "./VcTable.vue.mjs";
2
+ import '../../assets/components/VcTable/VcTable2.css';import '../../assets/components/VcTable/VcTable.css';/* empty css */
3
+ /* empty css */
4
+ export {
5
+ _sfc_main as default
6
+ };
@@ -2,9 +2,10 @@ import '../../assets/components/VcTree/VcTreeSelect.css';
2
2
  import { defineComponent, ref, computed, watch, nextTick, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, withCtx, withDirectives, createElementVNode, createBlock, createSlots, renderSlot, toDisplayString, unref, withModifiers, createCommentVNode, Fragment, renderList } from "vue";
3
3
  import { asArray, asTreeKey } from "./treeTypeUtils.mjs";
4
4
  import _sfc_main$1 from "../VcPopover/VcPopover.vue.mjs";
5
- import '../../assets/components/VcTree/VcTree.css';import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcTag/VcTag.css';import '../../assets/components/VcPopover/VcPopover.css';/* empty css */
6
- import VcDelimitedList from "../VcDelimitedList/VcDelimitedList.vue.mjs";
7
- import _sfc_main$4 from "../VcTag/VcTag.vue.mjs";
5
+ import '../../assets/components/VcTree/VcTree.css';import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcTag/VcTag.css';import '../../assets/components/VcDelimitedList/VcDelimitedList.css';import '../../assets/components/VcPopover/VcPopover.css';/* empty css */
6
+ import _sfc_main$4 from "../VcDelimitedList/VcDelimitedList.vue.mjs";
7
+ /* empty css */
8
+ import _sfc_main$5 from "../VcTag/VcTag.vue.mjs";
8
9
  /* empty css */
9
10
  import _sfc_main$3 from "../VcIcon/VcIcon.vue.mjs";
10
11
  /* empty css */
@@ -243,7 +244,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
243
244
  ])) : createCommentVNode("", true),
244
245
  createElementVNode("div", _hoisted_2, [
245
246
  createElementVNode("div", _hoisted_3, [
246
- createVNode(VcDelimitedList, {
247
+ createVNode(_sfc_main$4, {
247
248
  list: selectedModel.value,
248
249
  limit: __props.tagsLimit,
249
250
  "popover-disabled": open.value,
@@ -252,7 +253,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
252
253
  separator: ""
253
254
  }, {
254
255
  "list-item": withCtx(({ item }) => [
255
- createVNode(_sfc_main$4, {
256
+ createVNode(_sfc_main$5, {
256
257
  label: item == null ? void 0 : item.label,
257
258
  color: __props.tagColor,
258
259
  "max-content": tagMaxContent,
@@ -265,7 +266,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
265
266
  }, null, 8, ["label", "color", "borderless", "disabled", "square", "onOnClose"])
266
267
  ]),
267
268
  reference: withCtx(({ listLength }) => [
268
- createVNode(_sfc_main$4, {
269
+ createVNode(_sfc_main$5, {
269
270
  label: `+ ${listLength}`,
270
271
  borderless: __props.tagBorderless,
271
272
  square: __props.tagsSquare,
@@ -282,7 +283,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
282
283
  key: index,
283
284
  class: "flex items-center justify-start m-1"
284
285
  }, [
285
- createVNode(_sfc_main$4, {
286
+ createVNode(_sfc_main$5, {
286
287
  label: item.label,
287
288
  icon: item.icon,
288
289
  "max-content": tagMaxContent,
@@ -1,7 +1,8 @@
1
1
  import { defineComponent, openBlock, createBlock, mergeProps, withModifiers } from "vue";
2
2
  import { tVU } from "../../../localization/index.mjs";
3
3
  import useConfirmModal from "../../../composables/useConfirmModal.mjs";
4
- import VcButtonIcon from "../../../components/VcButton/VcButtonIcon.vue.mjs";
4
+ import _sfc_main$1 from "../../../components/VcButton/VcButtonIcon.vue.mjs";
5
+ import '../../../assets/components/VcButton/VcButtonIcon.css';/* empty css */
5
6
  import { Trash2 } from "@lucide/vue";
6
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
8
  __name: "VcEntityDeleteIconButton",
@@ -43,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
44
  }
44
45
  }
45
46
  return (_ctx, _cache) => {
46
- return openBlock(), createBlock(VcButtonIcon, mergeProps({
47
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
47
48
  icon: __props.icon,
48
49
  color: "destructive"
49
50
  }, _ctx.$attrs, {
@@ -1,5 +1,6 @@
1
1
  import { defineComponent, openBlock, createBlock, mergeProps } from "vue";
2
- import VcButtonIcon from "../../../components/VcButton/VcButtonIcon.vue.mjs";
2
+ import _sfc_main$1 from "../../../components/VcButton/VcButtonIcon.vue.mjs";
3
+ import '../../../assets/components/VcButton/VcButtonIcon.css';/* empty css */
3
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
5
  __name: "VcEntityEditIconButton",
5
6
  props: {
@@ -10,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
11
  setup(__props) {
11
12
  const props = __props;
12
13
  return (_ctx, _cache) => {
13
- return openBlock(), createBlock(VcButtonIcon, mergeProps({
14
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
14
15
  icon: __props.icon ?? "vc-icon-settings",
15
16
  disabled: !props.entity.canEdit(props.entityData)
16
17
  }, _ctx.$attrs), null, 16, ["icon", "disabled"]);
@@ -1,7 +1,97 @@
1
- import _sfc_main from "./VcBaseVerticalForm.vue2.mjs";
2
- import '../../../assets/entity/components/Form/VcBaseVerticalForm.css';/* empty css */
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const VcBaseVerticalForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6516290"]]);
1
+ import '../../../assets/entity/components/Form/VcBaseVerticalForm.css';
2
+ import { defineComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, createTextVNode, toDisplayString, renderSlot, createCommentVNode, createVNode, unref } from "vue";
3
+ import _sfc_main$1 from "../../../components/VcCard/VcCard.vue.mjs";
4
+ import '../../../assets/components/VcButton/VcButton.css';import '../../../assets/components/VcCard/VcCard.css';/* empty css */
5
+ import _sfc_main$2 from "../../../components/VcButton/VcButton.vue.mjs";
6
+ /* empty css */
7
+ import { tVU } from "../../../localization/index.mjs";
8
+ const _hoisted_1 = { class: "vc-base-vertical-form__wrap" };
9
+ const _hoisted_2 = { class: "vc-base-vertical-form__content" };
10
+ const _hoisted_3 = { class: "w-full" };
11
+ const _hoisted_4 = {
12
+ key: 0,
13
+ class: "vc-base-vertical-form__header px-3"
14
+ };
15
+ const _hoisted_5 = { class: "vc-base-vertical-form__form-content" };
16
+ const _hoisted_6 = { class: "vc-base-vertical-form__footer px-3" };
17
+ const _hoisted_7 = { class: "footer-add-action flex-grow sm:flex-grow-0" };
18
+ const _hoisted_8 = { class: "footer-actions" };
19
+ const _sfc_main = /* @__PURE__ */ defineComponent({
20
+ __name: "VcBaseVerticalForm",
21
+ props: {
22
+ formTitle: { default: "" },
23
+ loading: { type: Boolean, default: false },
24
+ disabledSave: { type: Boolean, default: false },
25
+ hideTitle: { type: Boolean, default: false }
26
+ },
27
+ emits: ["cancel", "save"],
28
+ setup(__props, { emit: __emit }) {
29
+ const emit = __emit;
30
+ const onCancel = () => {
31
+ emit("cancel");
32
+ };
33
+ const onSave = () => {
34
+ emit("save");
35
+ };
36
+ return (_ctx, _cache) => {
37
+ return openBlock(), createBlock(_sfc_main$1, { class: "vc-base-vertical-form" }, {
38
+ default: withCtx(() => [
39
+ createElementVNode("div", _hoisted_1, [
40
+ createElementVNode("div", _hoisted_2, [
41
+ createElementVNode("div", _hoisted_3, [
42
+ !__props.hideTitle ? (openBlock(), createElementBlock("div", _hoisted_4, [
43
+ createTextVNode(toDisplayString(__props.formTitle) + " ", 1),
44
+ renderSlot(_ctx.$slots, "header-action")
45
+ ])) : createCommentVNode("", true),
46
+ createElementVNode("div", _hoisted_5, [
47
+ renderSlot(_ctx.$slots, "default", {}, () => [
48
+ _cache[0] || (_cache[0] = createTextVNode("Form Content", -1))
49
+ ])
50
+ ])
51
+ ]),
52
+ _cache[1] || (_cache[1] = createElementVNode("hr", { class: "border border-ui-lines mx-3" }, null, -1)),
53
+ createElementVNode("div", _hoisted_6, [
54
+ createElementVNode("div", _hoisted_7, [
55
+ renderSlot(_ctx.$slots, "additional-action")
56
+ ]),
57
+ createElementVNode("div", _hoisted_8, [
58
+ createVNode(_sfc_main$2, {
59
+ icon: "vc-icon-cancel",
60
+ color: "secondary",
61
+ type: "outline",
62
+ size: "large",
63
+ block: "",
64
+ onClick: onCancel
65
+ }, {
66
+ default: withCtx(() => [
67
+ createTextVNode(toDisplayString(unref(tVU).t("voicenterUi.general.cancel")), 1)
68
+ ]),
69
+ _: 1
70
+ }),
71
+ createVNode(_sfc_main$2, {
72
+ block: "",
73
+ loading: __props.loading,
74
+ disabled: __props.disabledSave,
75
+ icon: "vc-icon-save",
76
+ color: "primary",
77
+ size: "large",
78
+ onClick: onSave
79
+ }, {
80
+ default: withCtx(() => [
81
+ createTextVNode(toDisplayString(unref(tVU).t("voicenterUi.general.save")), 1)
82
+ ]),
83
+ _: 1
84
+ }, 8, ["loading", "disabled"])
85
+ ])
86
+ ])
87
+ ])
88
+ ])
89
+ ]),
90
+ _: 3
91
+ });
92
+ };
93
+ }
94
+ });
5
95
  export {
6
- VcBaseVerticalForm as default
96
+ _sfc_main as default
7
97
  };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./VcBaseVerticalForm.vue.mjs";
2
+ import '../../../assets/entity/components/Form/VcBaseVerticalForm.css';/* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -1,5 +1,6 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot } from "vue";
2
- import VcBaseVerticalForm from "./VcBaseVerticalForm.vue.mjs";
2
+ import _sfc_main$1 from "./VcBaseVerticalForm.vue.mjs";
3
+ import '../../../assets/entity/components/Form/VcBaseVerticalForm.css';/* empty css */
3
4
  import { useEntityInject } from "../../composable/useEntityProvideInject.mjs";
4
5
  import { tVU } from "../../../localization/index.mjs";
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -20,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
21
  emit("cancel");
21
22
  };
22
23
  return (_ctx, _cache) => {
23
- return openBlock(), createBlock(VcBaseVerticalForm, {
24
+ return openBlock(), createBlock(_sfc_main$1, {
24
25
  "form-title": __props.formTitle || unref(tVU).t("voicenterUi.general.simpleAddEntity", { entity: unref(entity).entityTypeLabelTranslations }),
25
26
  loading: unref(loading),
26
27
  "disabled-save": __props.disabledSave,
@@ -1,11 +1,12 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, withCtx, renderSlot, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, createElementBlock, createVNode } from "vue";
2
- import VcBaseVerticalForm from "./VcBaseVerticalForm.vue.mjs";
2
+ import _sfc_main$1 from "./VcBaseVerticalForm.vue.mjs";
3
+ import '../../../assets/components/VcButton/VcButton.css';import '../../../assets/components/VcTag/VcTag.css';import '../../../assets/entity/components/Form/VcBaseVerticalForm.css';/* empty css */
3
4
  import { useEntityInject } from "../../composable/useEntityProvideInject.mjs";
4
5
  import useConfirmModal from "../../../composables/useConfirmModal.mjs";
5
6
  import { tVU } from "../../../localization/index.mjs";
6
- import _sfc_main$2 from "../../../components/VcTag/VcTag.vue.mjs";
7
- import '../../../assets/components/VcButton/VcButton.css';import '../../../assets/components/VcTag/VcTag.css';/* empty css */
8
- import _sfc_main$1 from "../../../components/VcButton/VcButton.vue.mjs";
7
+ import _sfc_main$3 from "../../../components/VcTag/VcTag.vue.mjs";
8
+ /* empty css */
9
+ import _sfc_main$2 from "../../../components/VcButton/VcButton.vue.mjs";
9
10
  /* empty css */
10
11
  const _hoisted_1 = { class: "flex items-center leading-none" };
11
12
  const _hoisted_2 = {
@@ -80,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
81
  emit("cancel");
81
82
  }
82
83
  return (_ctx, _cache) => {
83
- return openBlock(), createBlock(VcBaseVerticalForm, {
84
+ return openBlock(), createBlock(_sfc_main$1, {
84
85
  "form-title": __props.formTitle || unref(tVU).t("voicenterUi.general.editEntity", { entity: unref(entity).entityTypeLabelTranslations }),
85
86
  loading: unref(loading),
86
87
  "disabled-save": __props.disabledSave,
@@ -92,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
93
  renderSlot(_ctx.$slots, "header-action", {}, () => [
93
94
  createElementVNode("div", _hoisted_1, [
94
95
  isArchived.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
95
- createVNode(_sfc_main$2, {
96
+ createVNode(_sfc_main$3, {
96
97
  color: "destructive",
97
98
  square: ""
98
99
  }, {
@@ -107,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
108
  ]),
108
109
  "additional-action": withCtx(() => [
109
110
  createElementVNode("div", _hoisted_4, [
110
- showDeleteAction.value ? (openBlock(), createBlock(_sfc_main$1, {
111
+ showDeleteAction.value ? (openBlock(), createBlock(_sfc_main$2, {
111
112
  key: 0,
112
113
  loading: unref(loading),
113
114
  disabled: !unref(entity).canDelete(props.entityData),
@@ -123,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
124
  ]),
124
125
  _: 1
125
126
  }, 8, ["loading", "disabled"])) : createCommentVNode("", true),
126
- showRestoreAction.value ? (openBlock(), createBlock(_sfc_main$1, {
127
+ showRestoreAction.value ? (openBlock(), createBlock(_sfc_main$2, {
127
128
  key: 1,
128
129
  loading: unref(loading),
129
130
  disabled: !unref(entity).canEdit(props.entityData),