tsv2-library 1.1.0-dev-alpha.22 → 1.1.0-dev-alpha.25
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/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +4 -0
- package/dist/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +4 -0
- package/dist/src/components/v2/Tree/Tree.vue.d.ts +4 -0
- package/dist/tsv2-library.es.js +70 -46
- package/dist/tsv2-library.umd.js +3 -3
- package/package.json +1 -1
- package/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +4 -0
- package/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +4 -0
- package/src/components/v2/Tree/Tree.vue.d.ts +4 -0
|
@@ -127,6 +127,10 @@ export interface ButtonSelectTreeProps {
|
|
|
127
127
|
* Defines the group tree to showing disposable groups.
|
|
128
128
|
*/
|
|
129
129
|
showDisposableGroups?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* The asset quantity already used, to validate the chosen group's available quota.
|
|
132
|
+
*/
|
|
133
|
+
validateQuota?: { assetQuantity: number };
|
|
130
134
|
/**
|
|
131
135
|
* Defines the tree to be flattened and shows disposable only
|
|
132
136
|
*/
|
|
@@ -51,6 +51,10 @@ export interface SelectTreeDialogProps {
|
|
|
51
51
|
* Defines the group tree to showing disposable groups.
|
|
52
52
|
*/
|
|
53
53
|
showDisposableGroups?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The asset quantity already used, to validate the chosen group's available quota.
|
|
56
|
+
*/
|
|
57
|
+
validateQuota?: { assetQuantity: number };
|
|
54
58
|
/**
|
|
55
59
|
* Defines the tree to be flattened and shows disposable only
|
|
56
60
|
*/
|
|
@@ -167,6 +167,10 @@ declare class Tree extends ClassComponent<TreeProps, TreeSlots, TreeEmits> {
|
|
|
167
167
|
* Show disposable group icon.
|
|
168
168
|
*/
|
|
169
169
|
showDisposableGroups: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Show group available quota.
|
|
172
|
+
*/
|
|
173
|
+
showAvailableQuota: boolean;
|
|
170
174
|
/**
|
|
171
175
|
* State where all tree node expanded.
|
|
172
176
|
*/
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -28831,7 +28831,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
28831
28831
|
});
|
|
28832
28832
|
const _hoisted_1$2d = ["data-ts-original-value"];
|
|
28833
28833
|
const _hoisted_2$1L = ["contenteditable"];
|
|
28834
|
-
const _hoisted_3$
|
|
28834
|
+
const _hoisted_3$P = {
|
|
28835
28835
|
key: 1,
|
|
28836
28836
|
"aria-label": "invalid-label"
|
|
28837
28837
|
};
|
|
@@ -28999,13 +28999,13 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
28999
28999
|
void 0,
|
|
29000
29000
|
{ top: true }
|
|
29001
29001
|
]
|
|
29002
|
-
]) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
29002
|
+
]) : (openBlock(), createElementBlock("span", _hoisted_3$P, "-"));
|
|
29003
29003
|
};
|
|
29004
29004
|
}
|
|
29005
29005
|
});
|
|
29006
29006
|
const _hoisted_1$2c = { class: "flex gap-1 items-center" };
|
|
29007
29007
|
const _hoisted_2$1K = { class: "flex gap-[0.96px] items-center" };
|
|
29008
|
-
const _hoisted_3$
|
|
29008
|
+
const _hoisted_3$O = { class: "flex gap-[1.39px] items-center" };
|
|
29009
29009
|
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
29010
29010
|
__name: "TagType",
|
|
29011
29011
|
props: {
|
|
@@ -29039,7 +29039,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
29039
29039
|
])
|
|
29040
29040
|
}, " RFID ", 2)
|
|
29041
29041
|
]),
|
|
29042
|
-
createElementVNode("div", _hoisted_3$
|
|
29042
|
+
createElementVNode("div", _hoisted_3$O, [
|
|
29043
29043
|
(openBlock(), createBlock(_sfc_main$1O, {
|
|
29044
29044
|
key: (_b = props.qr) == null ? void 0 : _b.toString(),
|
|
29045
29045
|
class: normalizeClass(["text-[10px]", { "!text-general-200": !isActive(props.qr) }]),
|
|
@@ -29984,7 +29984,7 @@ function _toPrimitive$k(t, r) {
|
|
|
29984
29984
|
}
|
|
29985
29985
|
var _hoisted_1$24 = ["aria-label"];
|
|
29986
29986
|
var _hoisted_2$1D = ["aria-modal"];
|
|
29987
|
-
var _hoisted_3$
|
|
29987
|
+
var _hoisted_3$N = ["aria-label"];
|
|
29988
29988
|
var _hoisted_4$y = ["aria-label"];
|
|
29989
29989
|
var _hoisted_5$r = ["disabled", "aria-label"];
|
|
29990
29990
|
var _hoisted_6$l = ["disabled", "aria-label"];
|
|
@@ -30052,7 +30052,7 @@ function render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30052
30052
|
"data-pc-group-section": "action"
|
|
30053
30053
|
}), [renderSlot(_ctx.$slots, "refresh", {}, function() {
|
|
30054
30054
|
return [createVNode(_component_RefreshIcon, normalizeProps(guardReactiveProps(_ctx.ptm("rotateRightIcon"))), null, 16)];
|
|
30055
|
-
})], 16, _hoisted_3$
|
|
30055
|
+
})], 16, _hoisted_3$N), createElementVNode("button", mergeProps({
|
|
30056
30056
|
"class": _ctx.cx("rotateLeftButton"),
|
|
30057
30057
|
onClick: _cache[3] || (_cache[3] = function() {
|
|
30058
30058
|
return $options.rotateLeft && $options.rotateLeft.apply($options, arguments);
|
|
@@ -30196,7 +30196,7 @@ function computedAsync(evaluationCallback, initialState, optionsOrRef) {
|
|
|
30196
30196
|
}
|
|
30197
30197
|
const _hoisted_1$23 = ["src"];
|
|
30198
30198
|
const _hoisted_2$1C = ["alt", "src"];
|
|
30199
|
-
const _hoisted_3$
|
|
30199
|
+
const _hoisted_3$M = ["alt", "src"];
|
|
30200
30200
|
const _hoisted_4$x = ["alt", "src", "onClick"];
|
|
30201
30201
|
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
30202
30202
|
__name: "Image",
|
|
@@ -30387,7 +30387,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
30387
30387
|
src: resolvedGallerySrcs.value[index2],
|
|
30388
30388
|
style: normalizeStyle(slotProps.style),
|
|
30389
30389
|
"data-ts-section": "image-gallery"
|
|
30390
|
-
}, null, 12, _hoisted_3$
|
|
30390
|
+
}, null, 12, _hoisted_3$M)), [
|
|
30391
30391
|
[vShow, index2 === currentGalleryImage.value]
|
|
30392
30392
|
]);
|
|
30393
30393
|
}), 128)),
|
|
@@ -30973,7 +30973,7 @@ const TransactionAPIs = {
|
|
|
30973
30973
|
};
|
|
30974
30974
|
const _hoisted_1$22 = { class: "w-full flex items-center justify-between pr-4" };
|
|
30975
30975
|
const _hoisted_2$1B = { class: "flex gap-3 items-center" };
|
|
30976
|
-
const _hoisted_3$
|
|
30976
|
+
const _hoisted_3$L = /* @__PURE__ */ createElementVNode("span", { class: "text-sm font-bold" }, "Transfer Log", -1);
|
|
30977
30977
|
const _hoisted_4$w = { class: "flex gap-1 items-center" };
|
|
30978
30978
|
const _hoisted_5$q = { class: "text-xs font-medium" };
|
|
30979
30979
|
const _hoisted_6$k = { class: "flex items-center gap-2" };
|
|
@@ -31167,7 +31167,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
31167
31167
|
return [
|
|
31168
31168
|
createElementVNode("div", _hoisted_1$22, [
|
|
31169
31169
|
createElementVNode("div", _hoisted_2$1B, [
|
|
31170
|
-
_hoisted_3$
|
|
31170
|
+
_hoisted_3$L,
|
|
31171
31171
|
createElementVNode("div", _hoisted_4$w, [
|
|
31172
31172
|
createElementVNode("span", _hoisted_5$q, toDisplayString$1(((_a = detail.value) == null ? void 0 : _a.transactionId) ?? "-"), 1),
|
|
31173
31173
|
createVNode(unref(_sfc_main$1t), {
|
|
@@ -31303,7 +31303,7 @@ const AssetDamageServices = {
|
|
|
31303
31303
|
};
|
|
31304
31304
|
const _hoisted_1$21 = { class: "w-full flex items-center justify-between" };
|
|
31305
31305
|
const _hoisted_2$1A = /* @__PURE__ */ createElementVNode("h1", { class: "text-sm font-bold" }, "Damage Log", -1);
|
|
31306
|
-
const _hoisted_3$
|
|
31306
|
+
const _hoisted_3$K = { class: "flex items-center gap-2" };
|
|
31307
31307
|
const _hoisted_4$v = ["disabled"];
|
|
31308
31308
|
const _hoisted_5$p = ["disabled"];
|
|
31309
31309
|
const _hoisted_6$j = { class: "items-center flex gap-2" };
|
|
@@ -31453,7 +31453,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
31453
31453
|
header: withCtx(() => [
|
|
31454
31454
|
createElementVNode("div", _hoisted_1$21, [
|
|
31455
31455
|
_hoisted_2$1A,
|
|
31456
|
-
createElementVNode("div", _hoisted_3$
|
|
31456
|
+
createElementVNode("div", _hoisted_3$K, [
|
|
31457
31457
|
createElementVNode("button", {
|
|
31458
31458
|
class: normalizeClass([currentIdIndex.value === 0 ? "text-general-100" : "text-primary", "text-xs font-medium"]),
|
|
31459
31459
|
disabled: currentIdIndex.value === 0,
|
|
@@ -31555,7 +31555,7 @@ const AssetMissingServices = {
|
|
|
31555
31555
|
};
|
|
31556
31556
|
const _hoisted_1$20 = { class: "w-full flex items-center justify-between" };
|
|
31557
31557
|
const _hoisted_2$1z = /* @__PURE__ */ createElementVNode("h1", { class: "text-sm font-bold" }, "Missing Log", -1);
|
|
31558
|
-
const _hoisted_3$
|
|
31558
|
+
const _hoisted_3$J = { class: "flex items-center gap-2" };
|
|
31559
31559
|
const _hoisted_4$u = ["disabled"];
|
|
31560
31560
|
const _hoisted_5$o = ["disabled"];
|
|
31561
31561
|
const _hoisted_6$i = { class: "flex items-start gap-[18px]" };
|
|
@@ -31722,7 +31722,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
31722
31722
|
header: withCtx(() => [
|
|
31723
31723
|
createElementVNode("div", _hoisted_1$20, [
|
|
31724
31724
|
_hoisted_2$1z,
|
|
31725
|
-
createElementVNode("div", _hoisted_3$
|
|
31725
|
+
createElementVNode("div", _hoisted_3$J, [
|
|
31726
31726
|
createElementVNode("button", {
|
|
31727
31727
|
class: normalizeClass([currentIdIndex.value === 0 ? "text-general-100" : "text-primary", "text-xs font-medium"]),
|
|
31728
31728
|
disabled: currentIdIndex.value === 0,
|
|
@@ -31878,7 +31878,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
31878
31878
|
});
|
|
31879
31879
|
const _hoisted_1$1$ = { class: "flex justify-between gap-[18px] dark:text-general-100" };
|
|
31880
31880
|
const _hoisted_2$1y = { class: "w-full flex flex-col gap-[6px]" };
|
|
31881
|
-
const _hoisted_3$
|
|
31881
|
+
const _hoisted_3$I = { class: "" };
|
|
31882
31882
|
const _hoisted_4$t = { class: "flex justify-between" };
|
|
31883
31883
|
const _hoisted_5$n = { class: "text-[16px] font-bold leading-[19.12px]" };
|
|
31884
31884
|
const _hoisted_6$h = ["href"];
|
|
@@ -32041,7 +32041,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
32041
32041
|
thumbnail: defaultImage.value.thumbnail
|
|
32042
32042
|
}, null, 8, ["preview", "thumbnail"]),
|
|
32043
32043
|
createElementVNode("div", _hoisted_2$1y, [
|
|
32044
|
-
createElementVNode("div", _hoisted_3$
|
|
32044
|
+
createElementVNode("div", _hoisted_3$I, [
|
|
32045
32045
|
createElementVNode("div", _hoisted_4$t, [
|
|
32046
32046
|
createElementVNode("div", _hoisted_5$n, toDisplayString$1(nameWithSequence.value), 1),
|
|
32047
32047
|
unref(hasAccessToAssetDetail)() ? (openBlock(), createElementBlock("a", {
|
|
@@ -32143,7 +32143,7 @@ const _hoisted_2$1w = {
|
|
|
32143
32143
|
class: "text-body-medium flex items-center justify-between",
|
|
32144
32144
|
"data-ts-section": "title"
|
|
32145
32145
|
};
|
|
32146
|
-
const _hoisted_3$
|
|
32146
|
+
const _hoisted_3$H = {
|
|
32147
32147
|
class: "flex flex-col gap-2",
|
|
32148
32148
|
"data-ts-section": "approvers-list"
|
|
32149
32149
|
};
|
|
@@ -32201,7 +32201,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
32201
32201
|
severity: "success"
|
|
32202
32202
|
})) : createCommentVNode("", true)
|
|
32203
32203
|
]),
|
|
32204
|
-
createElementVNode("ul", _hoisted_3$
|
|
32204
|
+
createElementVNode("ul", _hoisted_3$H, [
|
|
32205
32205
|
(openBlock(true), createElementBlock(Fragment, null, renderList(approval.approvers, (approver) => {
|
|
32206
32206
|
return openBlock(), createElementBlock("li", {
|
|
32207
32207
|
key: approver.user._id,
|
|
@@ -32230,7 +32230,7 @@ const _hoisted_1$1Y = {
|
|
|
32230
32230
|
"data-ts-section": "root"
|
|
32231
32231
|
};
|
|
32232
32232
|
const _hoisted_2$1v = /* @__PURE__ */ createElementVNode("span", null, "Approver:", -1);
|
|
32233
|
-
const _hoisted_3$
|
|
32233
|
+
const _hoisted_3$G = {
|
|
32234
32234
|
key: 0,
|
|
32235
32235
|
"data-ts-section": "approvedate"
|
|
32236
32236
|
};
|
|
@@ -32259,7 +32259,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
32259
32259
|
user: (_b = firstApprover.value) == null ? void 0 : _b.user,
|
|
32260
32260
|
class: "gap-1"
|
|
32261
32261
|
}, null, 8, ["show-icon", "user"]),
|
|
32262
|
-
((_c = firstApprover.value) == null ? void 0 : _c.approvedAt) ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
32262
|
+
((_c = firstApprover.value) == null ? void 0 : _c.approvedAt) ? (openBlock(), createElementBlock("span", _hoisted_3$G, toDisplayString$1(unref(formatDate)(firstApprover.value.approvedAt, true)), 1)) : createCommentVNode("", true),
|
|
32263
32263
|
((_d = _ctx.approvals) == null ? void 0 : _d.length) ? (openBlock(), createElementBlock("span", {
|
|
32264
32264
|
key: 1,
|
|
32265
32265
|
onClick: _cache[0] || (_cache[0] = ($event) => showAprovalListDialog.value = true),
|
|
@@ -32873,7 +32873,7 @@ function _toPrimitive$j(t, r) {
|
|
|
32873
32873
|
}
|
|
32874
32874
|
var _hoisted_1$1V = ["aria-labelledby", "aria-modal"];
|
|
32875
32875
|
var _hoisted_2$1s = ["id"];
|
|
32876
|
-
var _hoisted_3$
|
|
32876
|
+
var _hoisted_3$F = ["autofocus", "tabindex"];
|
|
32877
32877
|
var _hoisted_4$r = ["autofocus", "aria-label"];
|
|
32878
32878
|
function render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32879
32879
|
var _component_Portal = resolveComponent("Portal");
|
|
@@ -32960,7 +32960,7 @@ function render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32960
32960
|
return [(openBlock(), createBlock(resolveDynamicComponent($options.maximizeIconComponent), mergeProps({
|
|
32961
32961
|
"class": [_ctx.cx("maximizableIcon"), $data.maximized ? _ctx.minimizeIcon : _ctx.maximizeIcon]
|
|
32962
32962
|
}, _ctx.ptm("maximizableIcon")), null, 16, ["class"]))];
|
|
32963
|
-
})], 16, _hoisted_3$
|
|
32963
|
+
})], 16, _hoisted_3$F)), [[_directive_ripple]]) : createCommentVNode("", true), _ctx.closable ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
32964
32964
|
key: 1,
|
|
32965
32965
|
ref: $options.closeButtonRef,
|
|
32966
32966
|
autofocus: $data.focusableClose,
|
|
@@ -33213,7 +33213,7 @@ const _hoisted_1$1T = {
|
|
|
33213
33213
|
"data-ts-name": "breadcrumb"
|
|
33214
33214
|
};
|
|
33215
33215
|
const _hoisted_2$1q = ["href", "title", "onClick"];
|
|
33216
|
-
const _hoisted_3$
|
|
33216
|
+
const _hoisted_3$E = {
|
|
33217
33217
|
key: 0,
|
|
33218
33218
|
textContent: ">",
|
|
33219
33219
|
class: "text-[0.875rem] w-[0.5625rem]",
|
|
@@ -33246,7 +33246,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
33246
33246
|
createTextVNode(toDisplayString$1(menu.name), 1)
|
|
33247
33247
|
], 64))
|
|
33248
33248
|
], 2),
|
|
33249
|
-
index2 != lastIndex.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
33249
|
+
index2 != lastIndex.value ? (openBlock(), createElementBlock("span", _hoisted_3$E)) : createCommentVNode("", true)
|
|
33250
33250
|
], 64);
|
|
33251
33251
|
}), 128))
|
|
33252
33252
|
]);
|
|
@@ -33969,7 +33969,7 @@ var script$Y = {
|
|
|
33969
33969
|
};
|
|
33970
33970
|
var _hoisted_1$1S = ["id"];
|
|
33971
33971
|
var _hoisted_2$1p = ["id", "tabindex", "aria-activedescendant", "aria-label", "aria-labelledby"];
|
|
33972
|
-
var _hoisted_3$
|
|
33972
|
+
var _hoisted_3$D = ["id"];
|
|
33973
33973
|
function render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33974
33974
|
var _component_PVMenuitem = resolveComponent("PVMenuitem");
|
|
33975
33975
|
var _component_Portal = resolveComponent("Portal");
|
|
@@ -34029,7 +34029,7 @@ function render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34029
34029
|
item: item3
|
|
34030
34030
|
}, function() {
|
|
34031
34031
|
return [createTextVNode(toDisplayString$1($options.label(item3)), 1)];
|
|
34032
|
-
})], 16, _hoisted_3$
|
|
34032
|
+
})], 16, _hoisted_3$D)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(item3.items, function(child, j2) {
|
|
34033
34033
|
return openBlock(), createElementBlock(Fragment, {
|
|
34034
34034
|
key: child.label + i + "_" + j2
|
|
34035
34035
|
}, [$options.visible(child) && !child.separator ? (openBlock(), createBlock(_component_PVMenuitem, {
|
|
@@ -34399,11 +34399,11 @@ var _hoisted_2$1n = /* @__PURE__ */ createElementVNode("path", {
|
|
|
34399
34399
|
d: "M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",
|
|
34400
34400
|
fill: "currentColor"
|
|
34401
34401
|
}, null, -1);
|
|
34402
|
-
var _hoisted_3$
|
|
34402
|
+
var _hoisted_3$C = /* @__PURE__ */ createElementVNode("path", {
|
|
34403
34403
|
d: "M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",
|
|
34404
34404
|
fill: "currentColor"
|
|
34405
34405
|
}, null, -1);
|
|
34406
|
-
var _hoisted_4$q = [_hoisted_1$1P, _hoisted_2$1n, _hoisted_3$
|
|
34406
|
+
var _hoisted_4$q = [_hoisted_1$1P, _hoisted_2$1n, _hoisted_3$C];
|
|
34407
34407
|
function render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34408
34408
|
return openBlock(), createElementBlock("svg", mergeProps({
|
|
34409
34409
|
width: "14",
|
|
@@ -37531,7 +37531,7 @@ function _toPrimitive$f(t, r) {
|
|
|
37531
37531
|
}
|
|
37532
37532
|
var _hoisted_1$1F = ["id"];
|
|
37533
37533
|
var _hoisted_2$1f = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
|
|
37534
|
-
var _hoisted_3$
|
|
37534
|
+
var _hoisted_3$B = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"];
|
|
37535
37535
|
var _hoisted_4$p = ["value", "placeholder", "aria-owns", "aria-activedescendant"];
|
|
37536
37536
|
var _hoisted_5$m = ["id", "aria-label"];
|
|
37537
37537
|
var _hoisted_6$g = ["id"];
|
|
@@ -37611,7 +37611,7 @@ function render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37611
37611
|
placeholder: _ctx.placeholder
|
|
37612
37612
|
}, function() {
|
|
37613
37613
|
return [createTextVNode(toDisplayString$1($options.label === "p-emptylabel" ? " " : $options.label || "empty"), 1)];
|
|
37614
|
-
})], 16, _hoisted_3$
|
|
37614
|
+
})], 16, _hoisted_3$B)), _ctx.showClear && _ctx.modelValue != null ? renderSlot(_ctx.$slots, "clearicon", {
|
|
37615
37615
|
key: 2,
|
|
37616
37616
|
"class": normalizeClass(_ctx.cx("clearIcon")),
|
|
37617
37617
|
onClick: $options.onClearClick,
|
|
@@ -38328,7 +38328,7 @@ const _hoisted_2$1c = {
|
|
|
38328
38328
|
class: "flex items-center w-full justify-between",
|
|
38329
38329
|
"data-ts-section": "content"
|
|
38330
38330
|
};
|
|
38331
|
-
const _hoisted_3$
|
|
38331
|
+
const _hoisted_3$A = {
|
|
38332
38332
|
key: 0,
|
|
38333
38333
|
class: "font-bold",
|
|
38334
38334
|
"data-ts-section": "title"
|
|
@@ -38394,7 +38394,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
38394
38394
|
]),
|
|
38395
38395
|
"data-ts-section": "messagewrapper"
|
|
38396
38396
|
}, [
|
|
38397
|
-
_ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
38397
|
+
_ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString$1(props.title), 1)) : createCommentVNode("", true),
|
|
38398
38398
|
createElementVNode("span", _hoisted_4$o, toDisplayString$1(props.loading ? `${props.message}...` : props.message), 1)
|
|
38399
38399
|
], 2),
|
|
38400
38400
|
_ctx.removable ? (openBlock(), createBlock(_sfc_main$1N, {
|
|
@@ -38877,7 +38877,7 @@ const _hoisted_2$1b = {
|
|
|
38877
38877
|
key: 0,
|
|
38878
38878
|
"data-ts-section": "dialog-confirm-lists"
|
|
38879
38879
|
};
|
|
38880
|
-
const _hoisted_3$
|
|
38880
|
+
const _hoisted_3$z = { "data-ts-section": "dialog-body" };
|
|
38881
38881
|
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
38882
38882
|
__name: "DialogConfirm",
|
|
38883
38883
|
props: {
|
|
@@ -38972,7 +38972,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
38972
38972
|
}), 128))
|
|
38973
38973
|
])) : createCommentVNode("", true),
|
|
38974
38974
|
renderSlot(_ctx.$slots, "body", { items: _ctx.lists }, () => [
|
|
38975
|
-
createElementVNode("p", _hoisted_3$
|
|
38975
|
+
createElementVNode("p", _hoisted_3$z, toDisplayString$1(_ctx.body), 1)
|
|
38976
38976
|
])
|
|
38977
38977
|
]),
|
|
38978
38978
|
footer: withCtx(() => [
|
|
@@ -39004,7 +39004,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
39004
39004
|
});
|
|
39005
39005
|
const _hoisted_1$1A = { class: "flex gap-2 items-center" };
|
|
39006
39006
|
const _hoisted_2$1a = { class: "flex gap-0.5 items-center leading-4" };
|
|
39007
|
-
const _hoisted_3$
|
|
39007
|
+
const _hoisted_3$y = { class: "flex gap-5 items-center" };
|
|
39008
39008
|
const _hoisted_4$n = {
|
|
39009
39009
|
key: 1,
|
|
39010
39010
|
class: "text-xs font-medium leading-[16.39px] tracking-[0.02em]"
|
|
@@ -39454,7 +39454,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
39454
39454
|
], 64))
|
|
39455
39455
|
])
|
|
39456
39456
|
]),
|
|
39457
|
-
createElementVNode("section", _hoisted_3$
|
|
39457
|
+
createElementVNode("section", _hoisted_3$y, [
|
|
39458
39458
|
createTextVNode(" do not leave this page "),
|
|
39459
39459
|
createVNode(_sfc_main$1N, {
|
|
39460
39460
|
onClick: _cache[1] || (_cache[1] = ($event) => stopScan(true)),
|
|
@@ -41982,6 +41982,10 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
41982
41982
|
});
|
|
41983
41983
|
const _hoisted_1$1o = ["data-exact-node-disabled", "data-node-all-is-disabled", "data-node-disabled", "data-node-has-children", "data-node-key", "data-node-selected"];
|
|
41984
41984
|
const _hoisted_2$12 = {
|
|
41985
|
+
key: 0,
|
|
41986
|
+
class: "text-[9px] leading-3"
|
|
41987
|
+
};
|
|
41988
|
+
const _hoisted_3$x = {
|
|
41985
41989
|
"aria-hidden": "true",
|
|
41986
41990
|
class: "flex items-center justify-start gap-2 px-4 py-1.5 hover:bg-surface-50 text-xs no-underline overflow-hidden cursor-pointer select-none",
|
|
41987
41991
|
"data-pc-section": "action",
|
|
@@ -42029,6 +42033,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
42029
42033
|
const isExpandedAll = ref(false);
|
|
42030
42034
|
const expandedKeys2 = ref({ "0": true });
|
|
42031
42035
|
const showDisposableGroups = ref(false);
|
|
42036
|
+
const showAvailableQuota = ref(false);
|
|
42032
42037
|
const selectedKeysModel = computed({
|
|
42033
42038
|
get: () => props.selectedKeys ?? {},
|
|
42034
42039
|
set: (keys2) => {
|
|
@@ -42398,6 +42403,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
42398
42403
|
treeNodes,
|
|
42399
42404
|
isLoading,
|
|
42400
42405
|
showDisposableGroups,
|
|
42406
|
+
showAvailableQuota,
|
|
42401
42407
|
isExpandedAll,
|
|
42402
42408
|
collapseAll,
|
|
42403
42409
|
expandAll,
|
|
@@ -42457,8 +42463,11 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
42457
42463
|
"data-node-has-children": !!((_f = node2.children) == null ? void 0 : _f.length),
|
|
42458
42464
|
"data-node-key": node2.key,
|
|
42459
42465
|
"data-node-selected": isNodeChecked(node2.key),
|
|
42460
|
-
class: "grow text-body-medium break-all"
|
|
42461
|
-
},
|
|
42466
|
+
class: "flex flex-col grow text-body-medium break-all"
|
|
42467
|
+
}, [
|
|
42468
|
+
createElementVNode("span", null, toDisplayString$1(node2.name), 1),
|
|
42469
|
+
showAvailableQuota.value && node2.fixedAssetQuota && node2.key != "0" ? (openBlock(), createElementBlock("span", _hoisted_2$12, " Available Quota: " + toDisplayString$1(node2.fixedAssetQuota.available), 1)) : createCommentVNode("", true)
|
|
42470
|
+
], 8, _hoisted_1$1o),
|
|
42462
42471
|
node2.isDisposable && showDisposableGroups.value ? (openBlock(), createBlock(_sfc_main$1O, {
|
|
42463
42472
|
key: 0,
|
|
42464
42473
|
class: "!text-general-200 w-4 h-4 p-1",
|
|
@@ -42495,7 +42504,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
42495
42504
|
"data-ts-section": "tree-node-menus"
|
|
42496
42505
|
}, {
|
|
42497
42506
|
item: withCtx(({ item: item3 }) => [
|
|
42498
|
-
createElementVNode("a",
|
|
42507
|
+
createElementVNode("a", _hoisted_3$x, [
|
|
42499
42508
|
createVNode(_sfc_main$1O, {
|
|
42500
42509
|
icon: item3.icon,
|
|
42501
42510
|
severity: item3.danger ? "danger" : void 0
|
|
@@ -42545,6 +42554,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
42545
42554
|
exactDisableKey: {},
|
|
42546
42555
|
readonly: { type: Boolean },
|
|
42547
42556
|
showDisposableGroups: { type: Boolean },
|
|
42557
|
+
validateQuota: {},
|
|
42548
42558
|
flattenDisposableNode: { type: Boolean },
|
|
42549
42559
|
excludedKeys: {},
|
|
42550
42560
|
hidden: { type: Boolean },
|
|
@@ -42569,10 +42579,18 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
42569
42579
|
return props.header;
|
|
42570
42580
|
return props.type === "Group" ? "Select Group" : "Select Category";
|
|
42571
42581
|
});
|
|
42582
|
+
const validateSelection = computed(
|
|
42583
|
+
() => !props.allowEmptySelection || !!props.validateQuota
|
|
42584
|
+
);
|
|
42572
42585
|
const onButtonSelectClicked = (close4 = true) => {
|
|
42586
|
+
var _a, _b;
|
|
42573
42587
|
selectedTreeKeys.value = temporarySelectedTreeKeys.value;
|
|
42574
42588
|
selectedNode.value = temporarySelectedNode.value;
|
|
42575
42589
|
if (Object.keys(selectedTreeKeys.value ?? {}).length) {
|
|
42590
|
+
if (props.validateQuota && props.validateQuota.assetQuantity > ((_b = (_a = selectedNode.value) == null ? void 0 : _a.fixedAssetQuota) == null ? void 0 : _b.available)) {
|
|
42591
|
+
invalidSelectionMessage.value = "Group quota is exceeded";
|
|
42592
|
+
return;
|
|
42593
|
+
}
|
|
42576
42594
|
emit("select", {
|
|
42577
42595
|
keys: selectedTreeKeys.value,
|
|
42578
42596
|
selectedNodes: selectedTreeNodes.value,
|
|
@@ -42606,9 +42624,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
42606
42624
|
watch(
|
|
42607
42625
|
treeComponent,
|
|
42608
42626
|
(tree) => {
|
|
42609
|
-
if (tree
|
|
42610
|
-
|
|
42611
|
-
|
|
42627
|
+
if (tree) {
|
|
42628
|
+
if (props.showDisposableGroups) {
|
|
42629
|
+
tree.showDisposableGroups = true;
|
|
42630
|
+
selectDisposableOnly.value = true;
|
|
42631
|
+
}
|
|
42632
|
+
if (props.validateQuota)
|
|
42633
|
+
tree.showAvailableQuota = true;
|
|
42612
42634
|
}
|
|
42613
42635
|
},
|
|
42614
42636
|
{ deep: true }
|
|
@@ -42648,8 +42670,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
42648
42670
|
footer: {
|
|
42649
42671
|
class: [
|
|
42650
42672
|
{
|
|
42651
|
-
"flex justify-end items-center gap-1":
|
|
42652
|
-
"flex justify-end items-end flex-col gap-1":
|
|
42673
|
+
"flex justify-end items-center gap-1": !validateSelection.value,
|
|
42674
|
+
"flex justify-end items-end flex-col gap-1": validateSelection.value
|
|
42653
42675
|
}
|
|
42654
42676
|
]
|
|
42655
42677
|
}
|
|
@@ -42723,7 +42745,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
42723
42745
|
renderSlot(_ctx.$slots, "footer", {}, () => {
|
|
42724
42746
|
var _a;
|
|
42725
42747
|
return [
|
|
42726
|
-
|
|
42748
|
+
validateSelection.value ? withDirectives((openBlock(), createBlock(_sfc_main$1p, {
|
|
42727
42749
|
key: 0,
|
|
42728
42750
|
format: false,
|
|
42729
42751
|
message: invalidSelectionMessage.value
|
|
@@ -42786,6 +42808,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
42786
42808
|
btnWidth: {},
|
|
42787
42809
|
readonly: { type: Boolean },
|
|
42788
42810
|
showDisposableGroups: { type: Boolean },
|
|
42811
|
+
validateQuota: {},
|
|
42789
42812
|
flattenDisposableNode: { type: Boolean },
|
|
42790
42813
|
excludedKeys: {},
|
|
42791
42814
|
singleEditable: { type: Boolean, default: true },
|
|
@@ -42985,9 +43008,10 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
42985
43008
|
"selection-mode": props.selectionMode,
|
|
42986
43009
|
"show-disposable-groups": props.showDisposableGroups,
|
|
42987
43010
|
type: props.type,
|
|
43011
|
+
"validate-quota": props.validateQuota,
|
|
42988
43012
|
onHide: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("dialogHidden")),
|
|
42989
43013
|
onSelect: setTreeSelection
|
|
42990
|
-
}, null, 8, ["visible", "allow-empty-selection", "auto-select-all", "disable-keys", "disable-node-all", "disable-sub-children", "exact-disable-key", "excluded-keys", "flatten-disposable-node", "group-params", "header", "hidden", "keys", "readonly", "required-manager-permission", "selection-mode", "show-disposable-groups", "type"]))
|
|
43014
|
+
}, null, 8, ["visible", "allow-empty-selection", "auto-select-all", "disable-keys", "disable-node-all", "disable-sub-children", "exact-disable-key", "excluded-keys", "flatten-disposable-node", "group-params", "header", "hidden", "keys", "readonly", "required-manager-permission", "selection-mode", "show-disposable-groups", "type", "validate-quota"]))
|
|
42991
43015
|
], 64);
|
|
42992
43016
|
};
|
|
42993
43017
|
}
|