@voicenter-team/voicenter-ui-plus 3.0.12 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcCheckbox/VcCheckbox.css +1 -1
- package/library/assets/components/VcCodeBlock/VcCodeBlock.css +1 -0
- package/library/assets/node_modules/element-plus/theme-chalk/src/checkbox-button.css +1 -0
- package/library/components/VcCheckbox/VcCheckbox.vue.mjs +7 -4
- package/library/components/VcCodeBlock/VcCodeBlock.vue.mjs +243 -0
- package/library/components/VcCodeBlock/VcCodeBlock.vue3.mjs +5 -0
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +1 -1
- package/library/components/VcDropdown/VcDropdownItem.vue.mjs +1 -1
- package/library/components/VcForm/VcForm.vue.mjs +2 -1
- package/library/components/VcForm/VcFormItem.vue.mjs +2 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +1 -1
- package/library/components/VcInput/VcInput.vue.mjs +2 -1
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +1 -1
- package/library/components/VcRadio/VcRadio.vue.mjs +2 -1
- package/library/components/VcSelect/VcSelect.vue.mjs +2 -1
- package/library/components/VcSlider/VcSlider.vue.mjs +1 -1
- package/library/entity/components/Table/VcEntityListTable.vue.mjs +61 -43
- package/library/index.mjs +169 -167
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/plugin.mjs +186 -182
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +11 -7
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +3 -0
- package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +3 -3
- package/library/types/components/VcCodeBlock/VcCodeBlock.vue.d.ts +92 -0
- package/library/types/components/VcTable/VcTable.vue.d.ts +18 -18
- package/library/types/components/exports.d.ts +7 -1
- package/library/types/directives/click-outside.d.ts +7 -0
- package/library/types/directives/input-mask.d.ts +8 -0
- package/library/types/directives/long-press.d.ts +8 -0
- package/library/types/directives/resize.d.ts +10 -0
- package/library/types/index.d.ts +1 -0
- package/library/types/types/Entity.basic.types.d.ts +4 -0
- package/library/types/utils/element-plus-imports.d.ts +1 -1
- package/library/utils/lucideIcon.mjs +4 -1
- package/package.json +156 -153
- /package/library/assets/node_modules/element-plus/theme-chalk/src/{dropdown-item.css → tooltip.css} +0 -0
|
@@ -20,22 +20,26 @@ import _sfc_main$6 from "../../../components/VcButton/VcButton.vue.mjs";
|
|
|
20
20
|
const _hoisted_1 = { class: "vc-entity-list-table__wrap relative" };
|
|
21
21
|
const _hoisted_2 = { key: 0 };
|
|
22
22
|
const _hoisted_3 = ["colspan"];
|
|
23
|
-
const _hoisted_4 = { class: "w-full
|
|
23
|
+
const _hoisted_4 = { class: "w-full flex justify-center items-center" };
|
|
24
24
|
const _hoisted_5 = { class: "text-default-text text-sm font-semibold" };
|
|
25
|
-
const _hoisted_6 = {
|
|
26
|
-
const _hoisted_7 =
|
|
27
|
-
const _hoisted_8 = { class: "
|
|
28
|
-
const _hoisted_9 = {
|
|
25
|
+
const _hoisted_6 = { key: 1 };
|
|
26
|
+
const _hoisted_7 = ["colspan"];
|
|
27
|
+
const _hoisted_8 = { class: "w-full p-4 items-center flex flex-col" };
|
|
28
|
+
const _hoisted_9 = { class: "text-default-text text-sm font-semibold" };
|
|
29
|
+
const _hoisted_10 = { class: "flex-center px-2" };
|
|
30
|
+
const _hoisted_11 = { class: "flex justify-between flex-wrap md:flex-nowrap gap-2" };
|
|
31
|
+
const _hoisted_12 = { class: "left-header-actions flex items-center order-2 md:order-1 w-full md:w-auto" };
|
|
32
|
+
const _hoisted_13 = {
|
|
29
33
|
key: 0,
|
|
30
34
|
class: "md:mx-6 w-full md:w-60"
|
|
31
35
|
};
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
36
|
+
const _hoisted_14 = { class: "right-header-actions flex items-center flex-wrap md:flex-nowrap gap-2 order-1 md:order-2" };
|
|
37
|
+
const _hoisted_15 = { class: "flex items-center justify-center gap-1" };
|
|
38
|
+
const _hoisted_16 = {
|
|
35
39
|
key: 1,
|
|
36
40
|
class: "flex-center gap-1"
|
|
37
41
|
};
|
|
38
|
-
const
|
|
42
|
+
const _hoisted_17 = {
|
|
39
43
|
key: 0,
|
|
40
44
|
class: "vc-entity-table-disabled-overflow"
|
|
41
45
|
};
|
|
@@ -81,6 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
85
|
const searchModel = ref("");
|
|
82
86
|
const searchInputRef = ref();
|
|
83
87
|
const debouncedSearchModel = refDebounced(searchModel, 300);
|
|
88
|
+
const tableColumns = computed(() => props.columns);
|
|
84
89
|
const usedSlots = computed(() => {
|
|
85
90
|
return Object.keys(slots);
|
|
86
91
|
});
|
|
@@ -233,7 +238,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
233
238
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
234
239
|
createVNode(_sfc_main$1, mergeProps(unref(attrs), {
|
|
235
240
|
options: dataSearched.value,
|
|
236
|
-
columns:
|
|
241
|
+
columns: tableColumns.value,
|
|
237
242
|
loading: !!unref(loading),
|
|
238
243
|
"show-selection": isShowSelection.value,
|
|
239
244
|
"show-actions-column": __props.showActionColumns,
|
|
@@ -251,38 +256,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
251
256
|
onHandleSelectionChange: handleSelectionChange
|
|
252
257
|
}), createSlots({
|
|
253
258
|
"empty-data": withCtx(() => {
|
|
254
|
-
var _a2;
|
|
259
|
+
var _a2, _b;
|
|
255
260
|
return [
|
|
256
|
-
|
|
261
|
+
unref(loading) ? (openBlock(), createElementBlock("tr", _hoisted_2, [
|
|
257
262
|
createElementVNode("td", {
|
|
258
263
|
colspan: ((_a2 = props.columns) == null ? void 0 : _a2.length) + 1
|
|
259
264
|
}, [
|
|
260
265
|
createElementVNode("div", _hoisted_4, [
|
|
261
|
-
createElementVNode("
|
|
262
|
-
isRecycleBin.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
263
|
-
key: 0,
|
|
264
|
-
type: "borderless",
|
|
265
|
-
icon: "vc-icon-exit-recycle-bin",
|
|
266
|
-
"data-test-name": "exit-recycle-bit-button",
|
|
267
|
-
onClick: recycleBinClickHandler
|
|
268
|
-
}, {
|
|
269
|
-
default: withCtx(() => [
|
|
270
|
-
createTextVNode(toDisplayString(unref(tVU).t("voicenterUi.general.exitRecycleBin")), 1)
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
})) : unref(onCreateFunction) ? renderSlot(_ctx.$slots, "add-entity-button", {
|
|
274
|
-
key: 1,
|
|
275
|
-
entity: unref(entity)
|
|
276
|
-
}, () => [
|
|
277
|
-
createVNode(_sfc_main$7, {
|
|
278
|
-
entity: unref(entity),
|
|
279
|
-
"add-entity-label": __props.addEntityLabel,
|
|
280
|
-
onClick: addNewClickHandler
|
|
281
|
-
}, null, 8, ["entity", "add-entity-label"])
|
|
282
|
-
]) : createCommentVNode("", true)
|
|
266
|
+
createElementVNode("span", _hoisted_5, toDisplayString(unref(tVU).t("voicenterUi.loader.loading")) + "...", 1)
|
|
283
267
|
])
|
|
284
268
|
], 8, _hoisted_3)
|
|
285
|
-
])) :
|
|
269
|
+
])) : (openBlock(), createElementBlock("tr", _hoisted_6, [
|
|
270
|
+
createElementVNode("td", {
|
|
271
|
+
colspan: ((_b = props.columns) == null ? void 0 : _b.length) + 1
|
|
272
|
+
}, [
|
|
273
|
+
renderSlot(_ctx.$slots, "empty-data-slot", {
|
|
274
|
+
recycleBin: isRecycleBin.value,
|
|
275
|
+
entity: unref(entity)
|
|
276
|
+
}, () => [
|
|
277
|
+
createElementVNode("div", _hoisted_8, [
|
|
278
|
+
createElementVNode("div", _hoisted_9, toDisplayString(__props.tableNoDataText || unref(tVU).t("voicenterUi.general.no.data")), 1),
|
|
279
|
+
isRecycleBin.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
280
|
+
key: 0,
|
|
281
|
+
type: "borderless",
|
|
282
|
+
icon: "vc-icon-exit-recycle-bin",
|
|
283
|
+
"data-test-name": "exit-recycle-bit-button",
|
|
284
|
+
onClick: recycleBinClickHandler
|
|
285
|
+
}, {
|
|
286
|
+
default: withCtx(() => [
|
|
287
|
+
createTextVNode(toDisplayString(unref(tVU).t("voicenterUi.general.exitRecycleBin")), 1)
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
})) : unref(onCreateFunction) ? renderSlot(_ctx.$slots, "add-entity-button", {
|
|
291
|
+
key: 1,
|
|
292
|
+
entity: unref(entity)
|
|
293
|
+
}, () => [
|
|
294
|
+
createVNode(_sfc_main$7, {
|
|
295
|
+
entity: unref(entity),
|
|
296
|
+
"add-entity-label": __props.addEntityLabel,
|
|
297
|
+
onClick: addNewClickHandler
|
|
298
|
+
}, null, 8, ["entity", "add-entity-label"])
|
|
299
|
+
]) : createCommentVNode("", true)
|
|
300
|
+
])
|
|
301
|
+
])
|
|
302
|
+
], 8, _hoisted_7)
|
|
303
|
+
]))
|
|
286
304
|
];
|
|
287
305
|
}),
|
|
288
306
|
"header-filter": withCtx(() => [
|
|
@@ -290,7 +308,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
290
308
|
]),
|
|
291
309
|
"checked-tooltip": withCtx(() => [
|
|
292
310
|
renderSlot(_ctx.$slots, "checked-tooltip", {}, () => [
|
|
293
|
-
createElementVNode("div",
|
|
311
|
+
createElementVNode("div", _hoisted_10, [
|
|
294
312
|
unref(onEntityTableDeleteSelectedFunction) && selectedItems.value.length ? (openBlock(), createBlock(_sfc_main$6, {
|
|
295
313
|
key: 0,
|
|
296
314
|
color: "destructive",
|
|
@@ -310,9 +328,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
310
328
|
"header-actions": withCtx(() => {
|
|
311
329
|
var _a2;
|
|
312
330
|
return [
|
|
313
|
-
createElementVNode("div",
|
|
314
|
-
createElementVNode("div",
|
|
315
|
-
((_a2 = __props.searchKeys) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div",
|
|
331
|
+
createElementVNode("div", _hoisted_11, [
|
|
332
|
+
createElementVNode("div", _hoisted_12, [
|
|
333
|
+
((_a2 = __props.searchKeys) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
316
334
|
createVNode(_sfc_main$5, {
|
|
317
335
|
ref_key: "searchInputRef",
|
|
318
336
|
ref: searchInputRef,
|
|
@@ -325,7 +343,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
325
343
|
}, null, 8, ["modelValue", "placeholder"])
|
|
326
344
|
])) : createCommentVNode("", true)
|
|
327
345
|
]),
|
|
328
|
-
createElementVNode("div",
|
|
346
|
+
createElementVNode("div", _hoisted_14, [
|
|
329
347
|
renderSlot(_ctx.$slots, "pre-header-actions"),
|
|
330
348
|
__props.showRecycleBinAction && unref(onRecycleBinToggleFunction) ? (openBlock(), createBlock(_sfc_main$6, {
|
|
331
349
|
key: 0,
|
|
@@ -354,7 +372,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
354
372
|
];
|
|
355
373
|
}),
|
|
356
374
|
"actions-column": withCtx(({ row, index }) => [
|
|
357
|
-
createElementVNode("div",
|
|
375
|
+
createElementVNode("div", _hoisted_15, [
|
|
358
376
|
isRecycleBin.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
359
377
|
key: 0,
|
|
360
378
|
"entity-data": row,
|
|
@@ -362,7 +380,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
362
380
|
disabled: !unref(onRestoreFunction),
|
|
363
381
|
"data-test-name": "restore-button",
|
|
364
382
|
onRestore: restoreClickHandler
|
|
365
|
-
}, null, 8, ["entity-data", "entity", "disabled"])) : (openBlock(), createElementBlock("div",
|
|
383
|
+
}, null, 8, ["entity-data", "entity", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
366
384
|
renderSlot(_ctx.$slots, "pre-column-actions", {
|
|
367
385
|
row,
|
|
368
386
|
index
|
|
@@ -406,7 +424,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
406
424
|
};
|
|
407
425
|
})
|
|
408
426
|
]), 1040, ["options", "columns", "loading", "show-selection", "show-actions-column", "is-server-data", "per-page-options", "external-paginate", "loader-type"]),
|
|
409
|
-
__props.disabled ? (openBlock(), createElementBlock("div",
|
|
427
|
+
__props.disabled ? (openBlock(), createElementBlock("div", _hoisted_17)) : createCommentVNode("", true)
|
|
410
428
|
]);
|
|
411
429
|
};
|
|
412
430
|
}
|