tsv2-library 1.1.1-dev-alpha.12 → 1.1.1-dev-alpha.13
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/dist/style.css +1 -1
- package/dist/tsv2-library.es.js +64 -41
- package/dist/tsv2-library.umd.js +2 -2
- package/package.json +1 -1
package/dist/tsv2-library.es.js
CHANGED
|
@@ -62692,10 +62692,10 @@ const _hoisted_1$R = {
|
|
|
62692
62692
|
class: "flex items-start"
|
|
62693
62693
|
};
|
|
62694
62694
|
const _hoisted_2$C = {
|
|
62695
|
-
class: "flex
|
|
62695
|
+
class: "flex text-xs text-nowrap gap-0.5",
|
|
62696
62696
|
"data-ts-section": "description"
|
|
62697
62697
|
};
|
|
62698
|
-
const _hoisted_3$q = { class: "flex
|
|
62698
|
+
const _hoisted_3$q = { class: "flex justify-between items-end" };
|
|
62699
62699
|
const _hoisted_4$h = {
|
|
62700
62700
|
class: "flex gap-1 w-full items-center justify-end",
|
|
62701
62701
|
"data-ts-section": "button-group"
|
|
@@ -62825,7 +62825,10 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
62825
62825
|
...defaultAssetColumns.value["group.name"],
|
|
62826
62826
|
checkedByDefault: true
|
|
62827
62827
|
},
|
|
62828
|
-
|
|
62828
|
+
{
|
|
62829
|
+
...defaultAssetColumns.value["category.name"],
|
|
62830
|
+
checkedByDefault: true
|
|
62831
|
+
},
|
|
62829
62832
|
{
|
|
62830
62833
|
...defaultAssetColumns.value["brand.name"],
|
|
62831
62834
|
checkedByDefault: true
|
|
@@ -63154,6 +63157,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63154
63157
|
const fields = Object.keys(filter4);
|
|
63155
63158
|
const parsedFilter = {};
|
|
63156
63159
|
fields.forEach((field2) => {
|
|
63160
|
+
if (filter4[field2] === null || Array.isArray(filter4[field2]) && filter4[field2].length === 0)
|
|
63161
|
+
return;
|
|
63157
63162
|
parsedFilter[field2] = JSON.stringify(filter4[field2]);
|
|
63158
63163
|
});
|
|
63159
63164
|
filterQueryParams.value = parsedFilter;
|
|
@@ -63205,7 +63210,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63205
63210
|
])) : createCommentVNode("", true),
|
|
63206
63211
|
createVNode(_sfc_main$1D, {
|
|
63207
63212
|
visible: visible4.value,
|
|
63208
|
-
"onUpdate:visible": _cache[
|
|
63213
|
+
"onUpdate:visible": _cache[13] || (_cache[13] = ($event) => visible4.value = $event),
|
|
63209
63214
|
header: header.value,
|
|
63210
63215
|
pt: { root: { style: { width: dialogSize.value } } },
|
|
63211
63216
|
onHide: resetState,
|
|
@@ -63220,7 +63225,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63220
63225
|
]),
|
|
63221
63226
|
createElementVNode("div", _hoisted_7$a, [
|
|
63222
63227
|
createVNode(_sfc_main$1Q, {
|
|
63223
|
-
onClick: _cache[
|
|
63228
|
+
onClick: _cache[10] || (_cache[10] = ($event) => visible4.value = false),
|
|
63224
63229
|
"data-ts-section": "button-cancel",
|
|
63225
63230
|
label: "Cancel",
|
|
63226
63231
|
severity: "secondary",
|
|
@@ -63237,7 +63242,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63237
63242
|
props.type === "child" ? (openBlock(), createBlock(_sfc_main$1m, {
|
|
63238
63243
|
key: 0,
|
|
63239
63244
|
visible: showConfirmDialog.value,
|
|
63240
|
-
"onUpdate:visible": _cache[
|
|
63245
|
+
"onUpdate:visible": _cache[11] || (_cache[11] = ($event) => showConfirmDialog.value = $event),
|
|
63241
63246
|
lists: selectedData.value,
|
|
63242
63247
|
onConfirm: closeDialog,
|
|
63243
63248
|
body: "All selected asset(s) will be attached as child asset. Are you sure want to attach it?",
|
|
@@ -63250,7 +63255,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63250
63255
|
props.type === "parent" ? (openBlock(), createBlock(_sfc_main$1m, {
|
|
63251
63256
|
key: 1,
|
|
63252
63257
|
visible: showConfirmDialog.value,
|
|
63253
|
-
"onUpdate:visible": _cache[
|
|
63258
|
+
"onUpdate:visible": _cache[12] || (_cache[12] = ($event) => showConfirmDialog.value = $event),
|
|
63254
63259
|
onConfirm: closeDialog,
|
|
63255
63260
|
"confirm-label": "Attach",
|
|
63256
63261
|
header: "Attach Asset",
|
|
@@ -63272,19 +63277,28 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63272
63277
|
}, 8, ["visible"])) : createCommentVNode("", true)
|
|
63273
63278
|
]),
|
|
63274
63279
|
default: withCtx(() => [
|
|
63275
|
-
createElementVNode("
|
|
63276
|
-
|
|
63277
|
-
|
|
63278
|
-
createTextVNode(toDisplayString$1(getDescription()), 1)
|
|
63279
|
-
]),
|
|
63280
|
-
tooltipInfo.value ? (openBlock(), createBlock(_sfc_main$1R, {
|
|
63281
|
-
key: 0,
|
|
63282
|
-
info: tooltipInfo.value,
|
|
63283
|
-
"data-ts-section": "tooltipinfo",
|
|
63284
|
-
icon: "info",
|
|
63285
|
-
severity: "primary"
|
|
63286
|
-
}, null, 8, ["info"])) : createCommentVNode("", true)
|
|
63280
|
+
createElementVNode("span", _hoisted_2$C, [
|
|
63281
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
63282
|
+
createTextVNode(toDisplayString$1(getDescription()), 1)
|
|
63287
63283
|
]),
|
|
63284
|
+
tooltipInfo.value ? (openBlock(), createBlock(_sfc_main$1R, {
|
|
63285
|
+
key: 0,
|
|
63286
|
+
info: tooltipInfo.value,
|
|
63287
|
+
"data-ts-section": "tooltipinfo",
|
|
63288
|
+
icon: "info",
|
|
63289
|
+
severity: "primary"
|
|
63290
|
+
}, null, 8, ["info"])) : createCommentVNode("", true)
|
|
63291
|
+
]),
|
|
63292
|
+
createElementVNode("div", _hoisted_3$q, [
|
|
63293
|
+
createVNode(_sfc_main$1z, {
|
|
63294
|
+
"selected-data": selectedData.value,
|
|
63295
|
+
"onUpdate:selectedData": _cache[1] || (_cache[1] = ($event) => selectedData.value = $event),
|
|
63296
|
+
options: [],
|
|
63297
|
+
"table-name": TABLE_NAME,
|
|
63298
|
+
"use-button": false,
|
|
63299
|
+
"data-ts": "bulk-action-button",
|
|
63300
|
+
naming: "Asset(s)"
|
|
63301
|
+
}, null, 8, ["selected-data"]),
|
|
63288
63302
|
createElementVNode("div", _hoisted_4$h, [
|
|
63289
63303
|
_ctx.useScanButton || _ctx.type === "asset" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
63290
63304
|
_ctx.scanType === "search" || _ctx.type === "asset" ? (openBlock(), createBlock(_sfc_main$1i, {
|
|
@@ -63297,12 +63311,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63297
63311
|
], 64))
|
|
63298
63312
|
], 64)) : createCommentVNode("", true),
|
|
63299
63313
|
createVNode(_sfc_main$1k, {
|
|
63300
|
-
onSearch: _cache[
|
|
63314
|
+
onSearch: _cache[2] || (_cache[2] = ($event) => searchModel.value = $event),
|
|
63301
63315
|
"data-ts-section": "button-search"
|
|
63302
63316
|
}),
|
|
63303
63317
|
createVNode(_sfc_main$1y, {
|
|
63304
63318
|
"show-filter": showFilter.value,
|
|
63305
|
-
"onUpdate:showFilter": _cache[
|
|
63319
|
+
"onUpdate:showFilter": _cache[3] || (_cache[3] = ($event) => showFilter.value = $event),
|
|
63306
63320
|
"data-ts-section": "button-filter"
|
|
63307
63321
|
}, null, 8, ["show-filter"])
|
|
63308
63322
|
])
|
|
@@ -63317,19 +63331,19 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63317
63331
|
_ctx.type === "asset" ? (openBlock(), createBlock(_sfc_main$11, {
|
|
63318
63332
|
key: 0,
|
|
63319
63333
|
filter: filter4,
|
|
63320
|
-
"onUpdate:filter": _cache[
|
|
63334
|
+
"onUpdate:filter": _cache[4] || (_cache[4] = ($event) => filter4 = $event),
|
|
63321
63335
|
"visible-columns": visibleColumns.value,
|
|
63322
|
-
"onUpdate:visibleColumns": _cache[
|
|
63336
|
+
"onUpdate:visibleColumns": _cache[5] || (_cache[5] = ($event) => visibleColumns.value = $event),
|
|
63323
63337
|
"fetch-options": props.fetchOptionFunction ?? handleFetchOptions,
|
|
63324
63338
|
"table-name": TABLE_NAME,
|
|
63325
63339
|
"tag-type": typeof props.tagType !== "boolean" ? props.tagType : void 0,
|
|
63326
|
-
onUpdateFields: _cache[
|
|
63340
|
+
onUpdateFields: _cache[6] || (_cache[6] = ($event) => containerKey.value++)
|
|
63327
63341
|
}, null, 8, ["filter", "visible-columns", "fetch-options", "tag-type"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(filterLists.value, (field2) => {
|
|
63328
63342
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
63329
63343
|
field2.fieldName === "group" ? (openBlock(), createBlock(_sfc_main$1d, {
|
|
63330
63344
|
key: field2.label,
|
|
63331
63345
|
keys: filter4.group,
|
|
63332
|
-
"onUpdate:keys": _cache[
|
|
63346
|
+
"onUpdate:keys": _cache[7] || (_cache[7] = ($event) => filter4.group = $event),
|
|
63333
63347
|
"field-label": "Group",
|
|
63334
63348
|
label: "Select Group",
|
|
63335
63349
|
type: "Group"
|
|
@@ -63359,7 +63373,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63359
63373
|
(openBlock(), createBlock(_sfc_main$18, {
|
|
63360
63374
|
key: dataTableKey.value,
|
|
63361
63375
|
"selected-data": selectedData.value,
|
|
63362
|
-
"onUpdate:selectedData": _cache[
|
|
63376
|
+
"onUpdate:selectedData": _cache[8] || (_cache[8] = ($event) => selectedData.value = $event),
|
|
63363
63377
|
columns: columns2.value,
|
|
63364
63378
|
"fetch-function": props.fetchFunction ?? getTableData,
|
|
63365
63379
|
filters: filterQueryParams.value,
|
|
@@ -63369,7 +63383,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
63369
63383
|
"selection-type": _ctx.type === "parent" ? "single" : void 0,
|
|
63370
63384
|
"table-name": props.type + props.tagType,
|
|
63371
63385
|
"use-option": false,
|
|
63372
|
-
onRowSelect: _cache[
|
|
63386
|
+
onRowSelect: _cache[9] || (_cache[9] = ($event) => showValidator.value = false),
|
|
63373
63387
|
"data-key": "_id",
|
|
63374
63388
|
"data-ts-section": "dialog-select-asset-table",
|
|
63375
63389
|
lazy: "",
|
|
@@ -63396,6 +63410,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
63396
63410
|
const fields = Object.keys(filter4);
|
|
63397
63411
|
const filterQuery = {};
|
|
63398
63412
|
fields.forEach((field2) => {
|
|
63413
|
+
if (filter4[field2] === null || Array.isArray(filter4[field2]) && filter4[field2].length === 0)
|
|
63414
|
+
return;
|
|
63399
63415
|
filterQuery[field2] = JSON.stringify(filter4[field2]);
|
|
63400
63416
|
});
|
|
63401
63417
|
return filterQuery;
|
|
@@ -65091,6 +65107,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
65091
65107
|
const fields = Object.keys(filter4);
|
|
65092
65108
|
const filterQuery = {};
|
|
65093
65109
|
fields.forEach((field2) => {
|
|
65110
|
+
if (filter4[field2] === null || Array.isArray(filter4[field2]) && filter4[field2].length === 0)
|
|
65111
|
+
return;
|
|
65094
65112
|
filterQuery[field2] = JSON.stringify(filter4[field2]);
|
|
65095
65113
|
});
|
|
65096
65114
|
return filterQuery;
|
|
@@ -67323,6 +67341,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
67323
67341
|
const fields = Object.keys(filter4);
|
|
67324
67342
|
const filterQuery = {};
|
|
67325
67343
|
fields.forEach((field2) => {
|
|
67344
|
+
if (filter4[field2] === null || Array.isArray(filter4[field2]) && filter4[field2].length === 0)
|
|
67345
|
+
return;
|
|
67326
67346
|
filterQuery[field2] = JSON.stringify(filter4[field2]);
|
|
67327
67347
|
});
|
|
67328
67348
|
return filterQuery;
|
|
@@ -67419,8 +67439,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
67419
67439
|
};
|
|
67420
67440
|
}
|
|
67421
67441
|
});
|
|
67422
|
-
const
|
|
67423
|
-
const AssetListFilter = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-
|
|
67442
|
+
const AssetListFilter_vue_vue_type_style_index_0_scoped_83dec72c_lang = "";
|
|
67443
|
+
const AssetListFilter = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-83dec72c"]]);
|
|
67424
67444
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-4beebd27"), n = n(), popScopeId(), n);
|
|
67425
67445
|
const _hoisted_1$E = { class: "w-full flex-1 p-6 gap-3 overflow-auto" };
|
|
67426
67446
|
const _hoisted_2$t = { class: "flex flex-col gap-3" };
|
|
@@ -72092,16 +72112,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
72092
72112
|
var _a, _b, _c, _d, _e, _f;
|
|
72093
72113
|
const largeLinesLength = [
|
|
72094
72114
|
(((_a = props.label.assetName) == null ? void 0 : _a.length) ?? 0) > 16,
|
|
72095
|
-
(((_b = props.label.code) == null ? void 0 : _b.length) ?? 0) >
|
|
72096
|
-
(((_c = props.label.category) == null ? void 0 : _c.length) ?? 0) >
|
|
72115
|
+
(((_b = props.label.code) == null ? void 0 : _b.length) ?? 0) > 17,
|
|
72116
|
+
(((_c = props.label.category) == null ? void 0 : _c.length) ?? 0) > 15
|
|
72097
72117
|
].filter(Boolean).length;
|
|
72098
72118
|
const mediumLinesLength = [
|
|
72099
72119
|
(((_d = props.label.assetName) == null ? void 0 : _d.length) ?? 0) > 18,
|
|
72100
|
-
(((_e = props.label.code) == null ? void 0 : _e.length) ?? 0) >
|
|
72101
|
-
(((_f = props.label.category) == null ? void 0 : _f.length) ?? 0) >
|
|
72120
|
+
(((_e = props.label.code) == null ? void 0 : _e.length) ?? 0) > 22,
|
|
72121
|
+
(((_f = props.label.category) == null ? void 0 : _f.length) ?? 0) > 16
|
|
72102
72122
|
].filter(Boolean).length;
|
|
72103
|
-
if (largeLinesLength >
|
|
72104
|
-
if (mediumLinesLength >
|
|
72123
|
+
if (largeLinesLength > 1) {
|
|
72124
|
+
if (mediumLinesLength > 2)
|
|
72105
72125
|
return "small";
|
|
72106
72126
|
return "medium";
|
|
72107
72127
|
}
|
|
@@ -72213,7 +72233,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
72213
72233
|
width: 190px;
|
|
72214
72234
|
height: 95px;
|
|
72215
72235
|
padding: 8px;
|
|
72216
|
-
padding-left: calc(
|
|
72236
|
+
padding-left: calc(12px + 12.5px);
|
|
72237
|
+
padding-right: 12px;
|
|
72217
72238
|
}
|
|
72218
72239
|
|
|
72219
72240
|
.label--large {
|
|
@@ -72237,7 +72258,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
72237
72258
|
.label__logo--small {
|
|
72238
72259
|
height: 13px;
|
|
72239
72260
|
width: 60px;
|
|
72240
|
-
left:
|
|
72261
|
+
left: 12.5px;
|
|
72241
72262
|
transform: translateY(23.5px) rotate(-90deg);
|
|
72242
72263
|
}
|
|
72243
72264
|
|
|
@@ -72279,8 +72300,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
72279
72300
|
}
|
|
72280
72301
|
|
|
72281
72302
|
.label__code--medium {
|
|
72282
|
-
font-size:
|
|
72283
|
-
line-height:
|
|
72303
|
+
font-size: 11px;
|
|
72304
|
+
line-height: 14px;
|
|
72284
72305
|
}
|
|
72285
72306
|
|
|
72286
72307
|
.label__code--large {
|
|
@@ -72301,8 +72322,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
72301
72322
|
}
|
|
72302
72323
|
|
|
72303
72324
|
.label__meta--medium {
|
|
72304
|
-
font-size:
|
|
72305
|
-
line-height:
|
|
72325
|
+
font-size: 11px;
|
|
72326
|
+
line-height: 14px;
|
|
72306
72327
|
}
|
|
72307
72328
|
|
|
72308
72329
|
.label__meta--large {
|
|
@@ -73292,6 +73313,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
73292
73313
|
const fields = Object.keys(filter4);
|
|
73293
73314
|
const parsedFilter = {};
|
|
73294
73315
|
fields.forEach((field2) => {
|
|
73316
|
+
if (filter4[field2] === null || Array.isArray(filter4[field2]) && filter4[field2].length === 0)
|
|
73317
|
+
return;
|
|
73295
73318
|
parsedFilter[field2] = JSON.stringify(filter4[field2]);
|
|
73296
73319
|
});
|
|
73297
73320
|
filterQueryParams.value = parsedFilter;
|