@pristy/pristy-libvue 2.11.0 → 2.11.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.
- package/dist/{ActivityHistory-CJRVzJMU.js → ActivityHistory-CFXcjH71.js} +2 -2
- package/dist/{ActivityHistory-CJRVzJMU.js.map → ActivityHistory-CFXcjH71.js.map} +1 -1
- package/dist/{BookmarksComponent-CO7xN8NO.js → BookmarksComponent-CmYDE0Cp.js} +2 -2
- package/dist/{BookmarksComponent-CO7xN8NO.js.map → BookmarksComponent-CmYDE0Cp.js.map} +1 -1
- package/dist/{ChartWrapper-CD8d8H-H.js → ChartWrapper-BmNc4SWQ.js} +2 -2
- package/dist/{ChartWrapper-CD8d8H-H.js.map → ChartWrapper-BmNc4SWQ.js.map} +1 -1
- package/dist/{DisplayFileInDashboardComponent-CEfR8e0F.js → DisplayFileInDashboardComponent-CdFg8er7.js} +2 -2
- package/dist/{DisplayFileInDashboardComponent-CEfR8e0F.js.map → DisplayFileInDashboardComponent-CdFg8er7.js.map} +1 -1
- package/dist/{ExternalApps-CnL1M-YE.js → ExternalApps-C1zs4KGU.js} +2 -2
- package/dist/{ExternalApps-CnL1M-YE.js.map → ExternalApps-C1zs4KGU.js.map} +1 -1
- package/dist/{FavoriteList-BI88CGpg.js → FavoriteList-C3U4TwcJ.js} +2 -2
- package/dist/{FavoriteList-BI88CGpg.js.map → FavoriteList-C3U4TwcJ.js.map} +1 -1
- package/dist/{MarkdownComponent-BdK7_Fve.js → MarkdownComponent-DvqLK4q_.js} +2 -2
- package/dist/{MarkdownComponent-BdK7_Fve.js.map → MarkdownComponent-DvqLK4q_.js.map} +1 -1
- package/dist/{SearchInput-BvY345ZW.js → SearchInput-aoLen7C3.js} +2 -2
- package/dist/{SearchInput-BvY345ZW.js.map → SearchInput-aoLen7C3.js.map} +1 -1
- package/dist/{UnknownBlockType-DQFiX0EC.js → UnknownBlockType-DX_fXvIW.js} +2 -2
- package/dist/{UnknownBlockType-DQFiX0EC.js.map → UnknownBlockType-DX_fXvIW.js.map} +1 -1
- package/dist/{index-DRmiARUo.js → index-2FfuwhLl.js} +619 -619
- package/dist/index-2FfuwhLl.js.map +1 -0
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +1 -1
- package/dist/pristy-libvue.umd.js +11 -11
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts +1 -1
- package/dist/src/components/navigation/ContentTableView.vue.d.ts +1 -1
- package/dist/src/components/navigation/DynamicContentView.vue.d.ts +2 -2
- package/package.json +1 -1
- package/dist/index-DRmiARUo.js.map +0 -1
|
@@ -716,7 +716,7 @@ const Pn = /* @__PURE__ */ se(L0, [["render", k0]]), Yt = Pt({
|
|
|
716
716
|
class: "pdf-all-pages"
|
|
717
717
|
}, tb = { class: "pdf-page-number" };
|
|
718
718
|
function lb(e, t, l, i, a, o) {
|
|
719
|
-
const n = v("PrimeProgressSpinner"), c = v("PrimeButton"), m = v("PrimeInputNumber"), p = v("PrimeDivider"), h = v("PrimeTag"), Z = v("VuePDF"), y = v("PrimeColumn"), W = v("PrimeDataTable"), T = v("PrimeDialog"),
|
|
719
|
+
const n = v("PrimeProgressSpinner"), c = v("PrimeButton"), m = v("PrimeInputNumber"), p = v("PrimeDivider"), h = v("PrimeTag"), Z = v("VuePDF"), y = v("PrimeColumn"), W = v("PrimeDataTable"), T = v("PrimeDialog"), w = He("tooltip");
|
|
720
720
|
return r(), u("div", {
|
|
721
721
|
ref: "pdfComponent",
|
|
722
722
|
class: le(["pdf-component-root", {
|
|
@@ -736,7 +736,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
736
736
|
disabled: o.isLeftButtonDisable,
|
|
737
737
|
onClick: t[0] || (t[0] = (G) => o.previousPage())
|
|
738
738
|
}, null, 8, ["aria-label", "disabled"]), [
|
|
739
|
-
[
|
|
739
|
+
[w, e.$t("pdf.previousPage")]
|
|
740
740
|
]),
|
|
741
741
|
s("span", R0, [
|
|
742
742
|
d(m, {
|
|
@@ -758,7 +758,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
758
758
|
disabled: o.isRightButtonDisable,
|
|
759
759
|
onClick: t[2] || (t[2] = (G) => o.nextPage())
|
|
760
760
|
}, null, 8, ["aria-label", "disabled"]), [
|
|
761
|
-
[
|
|
761
|
+
[w, e.$t("pdf.nextPage")]
|
|
762
762
|
])
|
|
763
763
|
])) : f("", !0),
|
|
764
764
|
a.pages > 1 ? (r(), N(p, {
|
|
@@ -777,7 +777,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
777
777
|
onClick: t[3] || (t[3] = (G) => o.changePdfDisplay())
|
|
778
778
|
}, null, 8, ["aria-label"])), [
|
|
779
779
|
[
|
|
780
|
-
|
|
780
|
+
w,
|
|
781
781
|
e.$t("pdf.showAllPages"),
|
|
782
782
|
void 0,
|
|
783
783
|
{ top: !0 }
|
|
@@ -790,7 +790,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
790
790
|
onClick: t[4] || (t[4] = (G) => o.changePdfDisplay())
|
|
791
791
|
}, null, 8, ["aria-label"])), [
|
|
792
792
|
[
|
|
793
|
-
|
|
793
|
+
w,
|
|
794
794
|
e.$t("pdf.showPageByPage"),
|
|
795
795
|
void 0,
|
|
796
796
|
{ top: !0 }
|
|
@@ -811,7 +811,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
811
811
|
class: "pdf-toolbar-btn",
|
|
812
812
|
onClick: t[5] || (t[5] = (G) => a.rotation = a.rotation - 90)
|
|
813
813
|
}, null, 8, ["aria-label"]), [
|
|
814
|
-
[
|
|
814
|
+
[w, e.$t("pdf.rotationLeft")]
|
|
815
815
|
]),
|
|
816
816
|
H(d(c, {
|
|
817
817
|
"aria-label": e.$t("pdf.rotationRigth"),
|
|
@@ -819,7 +819,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
819
819
|
class: "pdf-toolbar-btn",
|
|
820
820
|
onClick: t[6] || (t[6] = (G) => a.rotation = a.rotation + 90)
|
|
821
821
|
}, null, 8, ["aria-label"]), [
|
|
822
|
-
[
|
|
822
|
+
[w, e.$t("pdf.rotationRigth")]
|
|
823
823
|
])
|
|
824
824
|
])
|
|
825
825
|
]),
|
|
@@ -835,7 +835,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
835
835
|
class: "pdf-toolbar-btn",
|
|
836
836
|
onClick: o.zoomOut
|
|
837
837
|
}, null, 8, ["aria-label", "onClick"]), [
|
|
838
|
-
[
|
|
838
|
+
[w, e.$t("pdf.dezoom")]
|
|
839
839
|
]),
|
|
840
840
|
H(d(c, {
|
|
841
841
|
"aria-label": e.$t("pdf.zoom"),
|
|
@@ -843,7 +843,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
843
843
|
class: "pdf-toolbar-btn",
|
|
844
844
|
onClick: o.zoomIn
|
|
845
845
|
}, null, 8, ["aria-label", "onClick"]), [
|
|
846
|
-
[
|
|
846
|
+
[w, e.$t("pdf.zoom")]
|
|
847
847
|
])
|
|
848
848
|
])
|
|
849
849
|
]),
|
|
@@ -860,7 +860,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
860
860
|
onClick: t[7] || (t[7] = (G) => o.fitAuto())
|
|
861
861
|
}, null, 8, ["aria-label"]), [
|
|
862
862
|
[
|
|
863
|
-
|
|
863
|
+
w,
|
|
864
864
|
e.$t("pdf.adaptToPage"),
|
|
865
865
|
void 0,
|
|
866
866
|
{ left: !0 }
|
|
@@ -873,7 +873,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
873
873
|
onClick: t[8] || (t[8] = (G) => o.fitWidthAuto())
|
|
874
874
|
}, null, 8, ["aria-label"]), [
|
|
875
875
|
[
|
|
876
|
-
|
|
876
|
+
w,
|
|
877
877
|
e.$t("pdf.adaptToWidth"),
|
|
878
878
|
void 0,
|
|
879
879
|
{ left: !0 }
|
|
@@ -898,7 +898,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
898
898
|
loading: a.isSaving,
|
|
899
899
|
onClick: t[9] || (t[9] = (G) => e.$emit("saveForm"))
|
|
900
900
|
}, null, 8, ["aria-label", "disabled", "loading"])), [
|
|
901
|
-
[
|
|
901
|
+
[w, e.$t("pdf.saveForm")]
|
|
902
902
|
]) : f("", !0),
|
|
903
903
|
H(d(c, {
|
|
904
904
|
"aria-label": e.$t("pdf.cancelForm"),
|
|
@@ -907,7 +907,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
907
907
|
disabled: !a.isFormDirty,
|
|
908
908
|
onClick: t[10] || (t[10] = (G) => o.cancelForm())
|
|
909
909
|
}, null, 8, ["aria-label", "disabled"]), [
|
|
910
|
-
[
|
|
910
|
+
[w, e.$t("pdf.cancelForm")]
|
|
911
911
|
]),
|
|
912
912
|
H(d(c, {
|
|
913
913
|
"aria-label": e.$t("pdf.formFieldsInfo"),
|
|
@@ -915,7 +915,7 @@ function lb(e, t, l, i, a, o) {
|
|
|
915
915
|
class: "text-xl p-1",
|
|
916
916
|
onClick: t[11] || (t[11] = (G) => o.showFormFieldsInfo())
|
|
917
917
|
}, null, 8, ["aria-label"]), [
|
|
918
|
-
[
|
|
918
|
+
[w, e.$t("pdf.formFieldsInfo")]
|
|
919
919
|
])
|
|
920
920
|
])
|
|
921
921
|
])
|
|
@@ -3549,11 +3549,11 @@ const $i = (e) => {
|
|
|
3549
3549
|
const Z = h.data?.entry || h.data, y = Z.id || Z.nodeId;
|
|
3550
3550
|
if (t.aspects?.length > 0 && y)
|
|
3551
3551
|
try {
|
|
3552
|
-
const T = (await be.getNode(y)).aspectNames || [],
|
|
3552
|
+
const T = (await be.getNode(y)).aspectNames || [], w = [
|
|
3553
3553
|
.../* @__PURE__ */ new Set([...T, ...t.aspects])
|
|
3554
3554
|
];
|
|
3555
3555
|
await be.updateNode(y, {
|
|
3556
|
-
aspectNames:
|
|
3556
|
+
aspectNames: w
|
|
3557
3557
|
});
|
|
3558
3558
|
} catch (W) {
|
|
3559
3559
|
console.error("Failed to apply aspects:", W);
|
|
@@ -5593,7 +5593,7 @@ const z1 = /* @__PURE__ */ se(p1, [["render", N1], ["__scopeId", "data-v-9d5444a
|
|
|
5593
5593
|
}), T = $(() => {
|
|
5594
5594
|
let Q = 0;
|
|
5595
5595
|
return Z.value.length > 0 && Z.value[0].nodeType === "home" && Q++, Z.value.length > Q && Z.value[Q].nodeType === "st:site" && Q++, Q;
|
|
5596
|
-
}),
|
|
5596
|
+
}), w = $(() => Z.value.find((Q) => Q.nodeType === "st:site") || null), G = $(() => Z.value[Z.value.length - 1] || {}), j = $(() => Z.value.length > T.value + 1 ? Z.value[Z.value.length - 2] : null), X = $(() => {
|
|
5597
5597
|
const Q = T.value;
|
|
5598
5598
|
let x, Y;
|
|
5599
5599
|
return h.value ? (x = Z.value.length > 0 && Z.value[0].nodeType === "home" ? 1 : 0, Y = Z.value.length - 1) : p.value ? (x = Q, Y = Z.value.length - 1) : (x = Q, Y = Z.value.length - 2), x >= Y ? [] : Z.value.slice(x, Y).map((U) => ({
|
|
@@ -5608,10 +5608,10 @@ const z1 = /* @__PURE__ */ se(p1, [["render", N1], ["__scopeId", "data-v-9d5444a
|
|
|
5608
5608
|
actionMenuItems: a,
|
|
5609
5609
|
computedPath: Z,
|
|
5610
5610
|
displayMode: W,
|
|
5611
|
-
workspaceItem:
|
|
5611
|
+
workspaceItem: w,
|
|
5612
5612
|
lastItem: G,
|
|
5613
5613
|
secondToLastItem: j,
|
|
5614
|
-
ellipsisMenuItems:
|
|
5614
|
+
ellipsisMenuItems: X,
|
|
5615
5615
|
getItemIcon: M,
|
|
5616
5616
|
isItemClickable: (Q, x) => x === Z.value.length - 1 ? e.isInSearch || m.value : !0,
|
|
5617
5617
|
isLastItem: (Q) => Q === Z.value.length - 1,
|
|
@@ -5920,7 +5920,7 @@ function ku({
|
|
|
5920
5920
|
const k = W(O), B = e.value[k];
|
|
5921
5921
|
return Array.isArray(B) ? B.length > 0 : B && typeof B == "object" ? !!B.value : !1;
|
|
5922
5922
|
}
|
|
5923
|
-
function
|
|
5923
|
+
function w(O) {
|
|
5924
5924
|
if (!n.value)
|
|
5925
5925
|
return !1;
|
|
5926
5926
|
const k = W(n.value), B = e.value[k] || [];
|
|
@@ -5940,7 +5940,7 @@ function ku({
|
|
|
5940
5940
|
values: B.length > 0 ? B : null
|
|
5941
5941
|
});
|
|
5942
5942
|
}
|
|
5943
|
-
function
|
|
5943
|
+
function X() {
|
|
5944
5944
|
const O = W(n.value);
|
|
5945
5945
|
m.value.trim() ? a("filter-change", {
|
|
5946
5946
|
field: O,
|
|
@@ -5964,10 +5964,10 @@ function ku({
|
|
|
5964
5964
|
clearAllFilters: y,
|
|
5965
5965
|
getFilterField: W,
|
|
5966
5966
|
isColumnFiltered: T,
|
|
5967
|
-
isOptionSelected:
|
|
5967
|
+
isOptionSelected: w,
|
|
5968
5968
|
openFilterPopover: G,
|
|
5969
5969
|
toggleFilterOption: j,
|
|
5970
|
-
applyTextFilter:
|
|
5970
|
+
applyTextFilter: X,
|
|
5971
5971
|
clearColumnFilter: M
|
|
5972
5972
|
};
|
|
5973
5973
|
}
|
|
@@ -6439,7 +6439,7 @@ function Wy(e, t, l, i, a, o) {
|
|
|
6439
6439
|
d(Z, {
|
|
6440
6440
|
modelValue: T.visible,
|
|
6441
6441
|
inputId: "search-col-" + T.key,
|
|
6442
|
-
"onUpdate:modelValue": (
|
|
6442
|
+
"onUpdate:modelValue": (w) => o.onToggleVisibility(T, w)
|
|
6443
6443
|
}, null, 8, ["modelValue", "inputId", "onUpdate:modelValue"])
|
|
6444
6444
|
]))), 128))
|
|
6445
6445
|
])
|
|
@@ -6447,14 +6447,14 @@ function Wy(e, t, l, i, a, o) {
|
|
|
6447
6447
|
s("div", cy, [
|
|
6448
6448
|
s("div", dy, b(e.$t("column.displayed")), 1),
|
|
6449
6449
|
s("div", uy, [
|
|
6450
|
-
(r(!0), u(ee, null, Ye(o.visibleColumns, (T,
|
|
6450
|
+
(r(!0), u(ee, null, Ye(o.visibleColumns, (T, w) => (r(), u("div", {
|
|
6451
6451
|
key: T.key,
|
|
6452
|
-
class: le(["column-toggle-item", { "drag-over": a.dragOverIndex ===
|
|
6452
|
+
class: le(["column-toggle-item", { "drag-over": a.dragOverIndex === w }]),
|
|
6453
6453
|
draggable: !l.isSmallScreen,
|
|
6454
|
-
onDragstart: (G) => !l.isSmallScreen && o.onDragStart(
|
|
6455
|
-
onDragover: Pe((G) => !l.isSmallScreen && o.onDragOver(
|
|
6454
|
+
onDragstart: (G) => !l.isSmallScreen && o.onDragStart(w, G),
|
|
6455
|
+
onDragover: Pe((G) => !l.isSmallScreen && o.onDragOver(w), ["prevent"]),
|
|
6456
6456
|
onDragleave: t[2] || (t[2] = (G) => !l.isSmallScreen && o.onDragLeave()),
|
|
6457
|
-
onDrop: (G) => !l.isSmallScreen && o.onDrop(
|
|
6457
|
+
onDrop: (G) => !l.isSmallScreen && o.onDrop(w),
|
|
6458
6458
|
onDragend: t[3] || (t[3] = (G) => !l.isSmallScreen && o.onDragEnd())
|
|
6459
6459
|
}, [
|
|
6460
6460
|
l.isSmallScreen ? f("", !0) : (r(), u("i", by)),
|
|
@@ -6470,8 +6470,8 @@ function Wy(e, t, l, i, a, o) {
|
|
|
6470
6470
|
severity: "secondary",
|
|
6471
6471
|
text: "",
|
|
6472
6472
|
rounded: "",
|
|
6473
|
-
disabled:
|
|
6474
|
-
onClick: (G) => o.moveColumn(
|
|
6473
|
+
disabled: w === 0,
|
|
6474
|
+
onClick: (G) => o.moveColumn(w, -1)
|
|
6475
6475
|
}, null, 8, ["disabled", "onClick"]),
|
|
6476
6476
|
d(n, {
|
|
6477
6477
|
type: "button",
|
|
@@ -6480,8 +6480,8 @@ function Wy(e, t, l, i, a, o) {
|
|
|
6480
6480
|
severity: "secondary",
|
|
6481
6481
|
text: "",
|
|
6482
6482
|
rounded: "",
|
|
6483
|
-
disabled:
|
|
6484
|
-
onClick: (G) => o.moveColumn(
|
|
6483
|
+
disabled: w === o.visibleColumns.length - 1,
|
|
6484
|
+
onClick: (G) => o.moveColumn(w, 1)
|
|
6485
6485
|
}, null, 8, ["disabled", "onClick"])
|
|
6486
6486
|
]),
|
|
6487
6487
|
d(Z, {
|
|
@@ -6506,7 +6506,7 @@ function Wy(e, t, l, i, a, o) {
|
|
|
6506
6506
|
d(Z, {
|
|
6507
6507
|
modelValue: T.visible,
|
|
6508
6508
|
inputId: "hidden-col-" + T.key,
|
|
6509
|
-
"onUpdate:modelValue": (
|
|
6509
|
+
"onUpdate:modelValue": (w) => o.onToggleVisibility(T, w)
|
|
6510
6510
|
}, null, 8, ["modelValue", "inputId", "onUpdate:modelValue"])
|
|
6511
6511
|
]))), 128))
|
|
6512
6512
|
])
|
|
@@ -6671,8 +6671,8 @@ const Cu = /* @__PURE__ */ se(ey, [["render", Wy], ["__scopeId", "data-v-06ffb6b
|
|
|
6671
6671
|
applyFormat(e, t) {
|
|
6672
6672
|
return !t || typeof this[t] != "function" ? e : this[t](e);
|
|
6673
6673
|
},
|
|
6674
|
-
getValue(e, t) {
|
|
6675
|
-
return t.replace(/\[(\w+)\]/g, ".$1").replace(/\["(.+?)"\]|\['(.+?)'\]/g, ".$1$2").split(".").filter(Boolean).reduce((
|
|
6674
|
+
getValue(e, t, l) {
|
|
6675
|
+
return l?.valueGetter ? l.valueGetter(e) : t.replace(/\[(\w+)\]/g, ".$1").replace(/\["(.+?)"\]|\['(.+?)'\]/g, ".$1$2").split(".").filter(Boolean).reduce((i, a) => i && i[a] !== void 0 ? i[a] : void 0, e);
|
|
6676
6676
|
},
|
|
6677
6677
|
alfrescoFileService() {
|
|
6678
6678
|
return gt;
|
|
@@ -6746,7 +6746,7 @@ const Cu = /* @__PURE__ */ se(ey, [["render", Wy], ["__scopeId", "data-v-06ffb6b
|
|
|
6746
6746
|
class: "filter-popover-empty"
|
|
6747
6747
|
};
|
|
6748
6748
|
function Fy(e, t, l, i, a, o) {
|
|
6749
|
-
const n = v("PrimeColumn"), c = v("PrimeImage"), m = v("PristyIcon"), p = v("PrimeButton"), h = v("router-link"), Z = v("ColumnTogglePanel"), y = v("PrimeDataTable"), W = v("PrimeSelect"), T = v("PrimeInputText"),
|
|
6749
|
+
const n = v("PrimeColumn"), c = v("PrimeImage"), m = v("PristyIcon"), p = v("PrimeButton"), h = v("router-link"), Z = v("ColumnTogglePanel"), y = v("PrimeDataTable"), W = v("PrimeSelect"), T = v("PrimeInputText"), w = v("PrimeCheckbox"), G = v("PrimePopover"), j = He("tooltip");
|
|
6750
6750
|
return r(), u(ee, null, [
|
|
6751
6751
|
l.currentNode ? (r(), N(y, {
|
|
6752
6752
|
key: l.currentNode.id,
|
|
@@ -6758,7 +6758,7 @@ function Fy(e, t, l, i, a, o) {
|
|
|
6758
6758
|
"striped-rows": "",
|
|
6759
6759
|
class: "content-table-view",
|
|
6760
6760
|
selection: o.selectedNodesCopy,
|
|
6761
|
-
"onUpdate:selection": t[1] || (t[1] = (
|
|
6761
|
+
"onUpdate:selection": t[1] || (t[1] = (X) => o.selectedNodesCopy = X),
|
|
6762
6762
|
"selection-mode": "multiple",
|
|
6763
6763
|
"data-key": "id",
|
|
6764
6764
|
pt: o.datatablePt,
|
|
@@ -6775,95 +6775,95 @@ function Fy(e, t, l, i, a, o) {
|
|
|
6775
6775
|
header: e.$t("column.thumbnail"),
|
|
6776
6776
|
"header-style": "min-width: 1.65rem"
|
|
6777
6777
|
}, {
|
|
6778
|
-
body: g((
|
|
6778
|
+
body: g((X) => [
|
|
6779
6779
|
(r(), u("div", {
|
|
6780
|
-
key:
|
|
6780
|
+
key: X.data.id,
|
|
6781
6781
|
"data-tour": "thumbnail"
|
|
6782
6782
|
}, [
|
|
6783
|
-
o.displaySvg(
|
|
6783
|
+
o.displaySvg(X.data) ? (r(), N(c, {
|
|
6784
6784
|
key: 0,
|
|
6785
6785
|
class: "shadow-2 cursor-pointer",
|
|
6786
|
-
onClick: (M) => o.openPreviewPanel(
|
|
6786
|
+
onClick: (M) => o.openPreviewPanel(X.data)
|
|
6787
6787
|
}, {
|
|
6788
6788
|
image: g(() => [
|
|
6789
6789
|
s("img", {
|
|
6790
|
-
src: o.alfrescoFileService().getContentUrl(
|
|
6791
|
-
alt:
|
|
6790
|
+
src: o.alfrescoFileService().getContentUrl(X.data.id),
|
|
6791
|
+
alt: X.data.name,
|
|
6792
6792
|
class: "max-h-3rem max-w-3rem"
|
|
6793
6793
|
}, null, 8, Ay)
|
|
6794
6794
|
]),
|
|
6795
6795
|
_: 2
|
|
6796
|
-
}, 1032, ["onClick"])) : o.displayThumb(
|
|
6796
|
+
}, 1032, ["onClick"])) : o.displayThumb(X.data) ? (r(), N(c, {
|
|
6797
6797
|
key: 1,
|
|
6798
6798
|
class: "shadow-2 cursor-pointer",
|
|
6799
|
-
onClick: (M) => o.openPreviewPanel(
|
|
6799
|
+
onClick: (M) => o.openPreviewPanel(X.data)
|
|
6800
6800
|
}, {
|
|
6801
6801
|
image: g(() => [
|
|
6802
6802
|
s("img", {
|
|
6803
|
-
src: o.alfrescoFileService().getThumbnailUrl(
|
|
6804
|
-
alt:
|
|
6803
|
+
src: o.alfrescoFileService().getThumbnailUrl(X.data.id),
|
|
6804
|
+
alt: X.data.name,
|
|
6805
6805
|
class: "max-h-3rem max-w-3rem",
|
|
6806
|
-
onError: (M) => o.onImageLoadFailure(M,
|
|
6806
|
+
onError: (M) => o.onImageLoadFailure(M, X.data)
|
|
6807
6807
|
}, null, 40, Yy)
|
|
6808
6808
|
]),
|
|
6809
6809
|
_: 2
|
|
6810
6810
|
}, 1032, ["onClick"])) : f("", !0),
|
|
6811
|
-
!o.displayThumb(
|
|
6811
|
+
!o.displayThumb(X.data) && !o.displaySvg(X.data) ? H((r(), N(m, {
|
|
6812
6812
|
key: 2,
|
|
6813
6813
|
class: "icon cursor-pointer",
|
|
6814
|
-
"svg-file-name": o.loadIcon(
|
|
6815
|
-
onClick: (M) => o.clickIcon(
|
|
6814
|
+
"svg-file-name": o.loadIcon(X.data),
|
|
6815
|
+
onClick: (M) => o.clickIcon(X.data)
|
|
6816
6816
|
}, null, 8, ["svg-file-name", "onClick"])), [
|
|
6817
|
-
[j, o.loadIconLabel(
|
|
6817
|
+
[j, o.loadIconLabel(X.data)]
|
|
6818
6818
|
]) : f("", !0)
|
|
6819
6819
|
]))
|
|
6820
6820
|
]),
|
|
6821
6821
|
_: 1
|
|
6822
6822
|
}, 8, ["header"]),
|
|
6823
|
-
(r(!0), u(ee, null, Ye(o.visibleColumns, (
|
|
6823
|
+
(r(!0), u(ee, null, Ye(o.visibleColumns, (X, M) => (r(), N(n, {
|
|
6824
6824
|
key: M,
|
|
6825
|
-
sortable: !!
|
|
6826
|
-
"sort-field":
|
|
6827
|
-
style: zt(
|
|
6825
|
+
sortable: !!X.sortField,
|
|
6826
|
+
"sort-field": X.sortField,
|
|
6827
|
+
style: zt(X.key === "name" ? "max-width: 40vw; min-width: 12rem;" : "")
|
|
6828
6828
|
}, {
|
|
6829
6829
|
header: g(() => [
|
|
6830
|
-
s("span", My, b(
|
|
6831
|
-
|
|
6830
|
+
s("span", My, b(X.label), 1),
|
|
6831
|
+
X.filterType ? H((r(), N(p, {
|
|
6832
6832
|
key: 0,
|
|
6833
6833
|
type: "button",
|
|
6834
|
-
icon: e.isColumnFiltered(
|
|
6834
|
+
icon: e.isColumnFiltered(X) ? "ri-filter-fill" : "ri-filter-line",
|
|
6835
6835
|
size: "small",
|
|
6836
6836
|
severity: "primary",
|
|
6837
6837
|
text: "",
|
|
6838
6838
|
rounded: "",
|
|
6839
6839
|
class: "filter-toggle-btn",
|
|
6840
|
-
onClick: Pe((O) => e.openFilterPopover(O,
|
|
6840
|
+
onClick: Pe((O) => e.openFilterPopover(O, X), ["stop"])
|
|
6841
6841
|
}, null, 8, ["icon", "onClick"])), [
|
|
6842
6842
|
[j, e.$t("filter.toggle")]
|
|
6843
6843
|
]) : f("", !0)
|
|
6844
6844
|
]),
|
|
6845
6845
|
body: g((O) => [
|
|
6846
|
-
|
|
6846
|
+
X.component ? (r(), N(Gi(X.component), wi(
|
|
6847
6847
|
{
|
|
6848
6848
|
key: 0,
|
|
6849
6849
|
ref_for: !0
|
|
6850
6850
|
},
|
|
6851
|
-
|
|
6851
|
+
X.componentProps ? X.componentProps(O.data) : { node: O.data }
|
|
6852
6852
|
), null, 16)) : f("", !0),
|
|
6853
|
-
|
|
6853
|
+
X.action === "navigateTo" ? H((r(), N(h, {
|
|
6854
6854
|
key: 1,
|
|
6855
6855
|
to: o.collaboraService.getRoute(O.data),
|
|
6856
6856
|
class: le([{
|
|
6857
6857
|
underline: o.isCurrentNodeDisplayed(O.data),
|
|
6858
|
-
"text-overflow":
|
|
6859
|
-
"name-cell":
|
|
6858
|
+
"text-overflow": X.key === "name",
|
|
6859
|
+
"name-cell": X.key === "name"
|
|
6860
6860
|
}, "noColorElement"]),
|
|
6861
6861
|
onClick: (k) => o.handleNavigateClick(k, O.data)
|
|
6862
6862
|
}, {
|
|
6863
6863
|
default: g(() => [
|
|
6864
|
-
|
|
6864
|
+
X.key === "name" && O.data.isLocked ? H((r(), u("i", Ny, null, 512)), [
|
|
6865
6865
|
[j, o.alfrescoFileService().tooltipLockContent(O.data)]
|
|
6866
|
-
]) :
|
|
6866
|
+
]) : X.key === "name" && O.data.permissions?.isInheritanceEnabled === !1 ? H((r(), N(p, {
|
|
6867
6867
|
key: 1,
|
|
6868
6868
|
type: "button",
|
|
6869
6869
|
icon: "ri-shield-user-line",
|
|
@@ -6876,52 +6876,52 @@ function Fy(e, t, l, i, a, o) {
|
|
|
6876
6876
|
}, null, 8, ["aria-label", "onClick"])), [
|
|
6877
6877
|
[j, e.$t("restrictedPermissions")]
|
|
6878
6878
|
]) : f("", !0),
|
|
6879
|
-
O.data.aspectNames?.includes(
|
|
6879
|
+
O.data.aspectNames?.includes(X.displayIconForProperty) ? (r(), u("i", {
|
|
6880
6880
|
key: 2,
|
|
6881
|
-
class: le(
|
|
6881
|
+
class: le(X.icon),
|
|
6882
6882
|
"aria-hidden": "true"
|
|
6883
6883
|
}, null, 2)) : f("", !0),
|
|
6884
|
-
K(" " + b(o.applyFormat(o.getValue(O.data,
|
|
6884
|
+
K(" " + b(o.applyFormat(o.getValue(O.data, X.key, X), X.format)), 1)
|
|
6885
6885
|
]),
|
|
6886
6886
|
_: 2
|
|
6887
6887
|
}, 1032, ["to", "class", "onClick"])), [
|
|
6888
6888
|
[
|
|
6889
6889
|
j,
|
|
6890
|
-
o.getValue(O.data,
|
|
6890
|
+
o.getValue(O.data, X.key, X),
|
|
6891
6891
|
void 0,
|
|
6892
6892
|
{ bottom: !0 }
|
|
6893
6893
|
]
|
|
6894
|
-
]) :
|
|
6894
|
+
]) : X.hasTooltip ? H((r(), u("span", {
|
|
6895
6895
|
key: 2,
|
|
6896
6896
|
class: le({
|
|
6897
|
-
"cursor-pointer": !!
|
|
6898
|
-
"text-overflow":
|
|
6899
|
-
"line-clamp": !!
|
|
6897
|
+
"cursor-pointer": !!X.action,
|
|
6898
|
+
"text-overflow": X.key === "name",
|
|
6899
|
+
"line-clamp": !!X.maxLines
|
|
6900
6900
|
}),
|
|
6901
|
-
style: zt(
|
|
6902
|
-
onClick: (k) => o.applyAction(
|
|
6901
|
+
style: zt(X.maxLines ? { "-webkit-line-clamp": X.maxLines } : {}),
|
|
6902
|
+
onClick: (k) => o.applyAction(X.action, O.data)
|
|
6903
6903
|
}, [
|
|
6904
|
-
K(b(o.applyFormat(o.getValue(O.data,
|
|
6904
|
+
K(b(o.applyFormat(o.getValue(O.data, X.key, X), X.format)), 1)
|
|
6905
6905
|
], 14, zy)), [
|
|
6906
6906
|
[
|
|
6907
6907
|
j,
|
|
6908
|
-
o.getValue(O.data,
|
|
6908
|
+
o.getValue(O.data, X.key, X),
|
|
6909
6909
|
void 0,
|
|
6910
6910
|
{ bottom: !0 }
|
|
6911
6911
|
]
|
|
6912
6912
|
]) : (r(), u("span", {
|
|
6913
6913
|
key: 3,
|
|
6914
6914
|
class: le({
|
|
6915
|
-
"cursor-pointer": !!
|
|
6916
|
-
"text-overflow":
|
|
6917
|
-
"line-clamp": !!
|
|
6915
|
+
"cursor-pointer": !!X.action,
|
|
6916
|
+
"text-overflow": X.key === "name",
|
|
6917
|
+
"line-clamp": !!X.maxLines
|
|
6918
6918
|
}),
|
|
6919
|
-
style: zt(
|
|
6920
|
-
onClick: (k) => o.applyAction(
|
|
6919
|
+
style: zt(X.maxLines ? { "-webkit-line-clamp": X.maxLines } : {}),
|
|
6920
|
+
onClick: (k) => o.applyAction(X.action, O.data)
|
|
6921
6921
|
}, [
|
|
6922
|
-
|
|
6922
|
+
X.key === "name" && O.data.isLocked ? H((r(), u("i", Xy, null, 512)), [
|
|
6923
6923
|
[j, o.alfrescoFileService().tooltipLockContent(O.data)]
|
|
6924
|
-
]) :
|
|
6924
|
+
]) : X.key === "name" && O.data.permissions?.isInheritanceEnabled === !1 ? H((r(), N(p, {
|
|
6925
6925
|
key: 1,
|
|
6926
6926
|
type: "button",
|
|
6927
6927
|
icon: "ri-shield-user-line",
|
|
@@ -6934,7 +6934,7 @@ function Fy(e, t, l, i, a, o) {
|
|
|
6934
6934
|
}, null, 8, ["aria-label", "onClick"])), [
|
|
6935
6935
|
[j, e.$t("restrictedPermissions")]
|
|
6936
6936
|
]) : f("", !0),
|
|
6937
|
-
K(" " + b(o.applyFormat(o.getValue(O.data,
|
|
6937
|
+
K(" " + b(o.applyFormat(o.getValue(O.data, X.key, X), X.format)), 1)
|
|
6938
6938
|
], 14, Oy))
|
|
6939
6939
|
]),
|
|
6940
6940
|
_: 2
|
|
@@ -6943,9 +6943,9 @@ function Fy(e, t, l, i, a, o) {
|
|
|
6943
6943
|
header: e.$t("column.actions"),
|
|
6944
6944
|
"header-style": "width: 1%"
|
|
6945
6945
|
}, {
|
|
6946
|
-
body: g((
|
|
6946
|
+
body: g((X) => [
|
|
6947
6947
|
s("div", wy, [
|
|
6948
|
-
(r(!0), u(ee, null, Ye(o.resolvedInlineActions(
|
|
6948
|
+
(r(!0), u(ee, null, Ye(o.resolvedInlineActions(X.data), (M, O) => (r(), u(ee, { key: O }, [
|
|
6949
6949
|
M.visible !== !1 ? H((r(), N(p, {
|
|
6950
6950
|
key: 0,
|
|
6951
6951
|
type: "button",
|
|
@@ -6955,7 +6955,7 @@ function Fy(e, t, l, i, a, o) {
|
|
|
6955
6955
|
class: le(M.class),
|
|
6956
6956
|
text: "",
|
|
6957
6957
|
rounded: "",
|
|
6958
|
-
onClick: (k) => M.handler(k,
|
|
6958
|
+
onClick: (k) => M.handler(k, X.data)
|
|
6959
6959
|
}, null, 8, ["icon", "severity", "class", "onClick"])), [
|
|
6960
6960
|
[
|
|
6961
6961
|
j,
|
|
@@ -6973,7 +6973,7 @@ function Fy(e, t, l, i, a, o) {
|
|
|
6973
6973
|
severity: "secondary",
|
|
6974
6974
|
text: "",
|
|
6975
6975
|
rounded: "",
|
|
6976
|
-
onClick: (M) => o.toggleFileActionMenu(M,
|
|
6976
|
+
onClick: (M) => o.toggleFileActionMenu(M, X.data)
|
|
6977
6977
|
}, null, 8, ["onClick"])), [
|
|
6978
6978
|
[
|
|
6979
6979
|
j,
|
|
@@ -7009,7 +7009,7 @@ function Fy(e, t, l, i, a, o) {
|
|
|
7009
7009
|
d(Z, {
|
|
7010
7010
|
columns: l.datatableColumnConfig,
|
|
7011
7011
|
"is-small-screen": l.isSmallScreen,
|
|
7012
|
-
"onUpdate:columns": t[0] || (t[0] = (
|
|
7012
|
+
"onUpdate:columns": t[0] || (t[0] = (X) => e.$emit("update:datatableColumnConfig", X))
|
|
7013
7013
|
}, null, 8, ["columns", "is-small-screen"])
|
|
7014
7014
|
])
|
|
7015
7015
|
]),
|
|
@@ -7035,7 +7035,7 @@ function Fy(e, t, l, i, a, o) {
|
|
|
7035
7035
|
e.activeFilterColumn.filterType === "text" ? (r(), u("div", Ly, [
|
|
7036
7036
|
d(W, {
|
|
7037
7037
|
modelValue: e.textFilterOperator,
|
|
7038
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
7038
|
+
"onUpdate:modelValue": t[2] || (t[2] = (X) => e.textFilterOperator = X),
|
|
7039
7039
|
options: e.textFilterOperators,
|
|
7040
7040
|
"option-label": "label",
|
|
7041
7041
|
"option-value": "value",
|
|
@@ -7044,7 +7044,7 @@ function Fy(e, t, l, i, a, o) {
|
|
|
7044
7044
|
}, null, 8, ["modelValue", "options"]),
|
|
7045
7045
|
d(T, {
|
|
7046
7046
|
modelValue: e.textFilterValue,
|
|
7047
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
7047
|
+
"onUpdate:modelValue": t[3] || (t[3] = (X) => e.textFilterValue = X),
|
|
7048
7048
|
placeholder: e.$t("filter.search"),
|
|
7049
7049
|
size: "small",
|
|
7050
7050
|
class: "filter-text-input",
|
|
@@ -7056,16 +7056,16 @@ function Fy(e, t, l, i, a, o) {
|
|
|
7056
7056
|
onClick: e.applyTextFilter
|
|
7057
7057
|
}, null, 8, ["label", "onClick"])
|
|
7058
7058
|
])) : (r(), u("div", ky, [
|
|
7059
|
-
(r(!0), u(ee, null, Ye(e.currentFilterOptions, (
|
|
7060
|
-
key:
|
|
7059
|
+
(r(!0), u(ee, null, Ye(e.currentFilterOptions, (X) => (r(), u("label", {
|
|
7060
|
+
key: X.value,
|
|
7061
7061
|
class: "filter-option"
|
|
7062
7062
|
}, [
|
|
7063
|
-
d(
|
|
7064
|
-
"model-value": e.isOptionSelected(
|
|
7063
|
+
d(w, {
|
|
7064
|
+
"model-value": e.isOptionSelected(X.value),
|
|
7065
7065
|
binary: !0,
|
|
7066
|
-
"onUpdate:modelValue": (M) => e.toggleFilterOption(
|
|
7066
|
+
"onUpdate:modelValue": (M) => e.toggleFilterOption(X.value)
|
|
7067
7067
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
7068
|
-
s("span", null, b(
|
|
7068
|
+
s("span", null, b(X.label), 1)
|
|
7069
7069
|
]))), 128)),
|
|
7070
7070
|
e.currentFilterOptions.length === 0 ? (r(), u("span", Cy, b(e.$t("filter.noOptions")), 1)) : f("", !0)
|
|
7071
7071
|
]))
|
|
@@ -7075,7 +7075,7 @@ function Fy(e, t, l, i, a, o) {
|
|
|
7075
7075
|
}, 512)
|
|
7076
7076
|
], 64);
|
|
7077
7077
|
}
|
|
7078
|
-
const Fu = /* @__PURE__ */ se(fy, [["render", Fy], ["__scopeId", "data-v-
|
|
7078
|
+
const Fu = /* @__PURE__ */ se(fy, [["render", Fy], ["__scopeId", "data-v-ef4d5c5f"]]), Dy = {
|
|
7079
7079
|
name: "ContentListView",
|
|
7080
7080
|
components: {
|
|
7081
7081
|
PristyIcon: ci,
|
|
@@ -7545,8 +7545,8 @@ const Ky = /* @__PURE__ */ se(Dy, [["render", _y], ["__scopeId", "data-v-4d8d006
|
|
|
7545
7545
|
applyFormat(e, t) {
|
|
7546
7546
|
return !t || typeof this[t] != "function" ? e : this[t](e);
|
|
7547
7547
|
},
|
|
7548
|
-
getValue(e, t) {
|
|
7549
|
-
return t.replace(/\[(\w+)\]/g, ".$1").replace(/\["(.+?)"\]|\['(.+?)'\]/g, ".$1$2").split(".").filter(Boolean).reduce((
|
|
7548
|
+
getValue(e, t, l) {
|
|
7549
|
+
return l?.valueGetter ? l.valueGetter(e) : t.replace(/\[(\w+)\]/g, ".$1").replace(/\["(.+?)"\]|\['(.+?)'\]/g, ".$1$2").split(".").filter(Boolean).reduce((i, a) => i && i[a] !== void 0 ? i[a] : void 0, e);
|
|
7550
7550
|
},
|
|
7551
7551
|
convertBytesToSize(e) {
|
|
7552
7552
|
return Ao.convertBytesToSize(e);
|
|
@@ -7581,7 +7581,7 @@ const Ky = /* @__PURE__ */ se(Dy, [["render", _y], ["__scopeId", "data-v-4d8d006
|
|
|
7581
7581
|
class: "filter-popover-empty"
|
|
7582
7582
|
};
|
|
7583
7583
|
function m3(e, t, l, i, a, o) {
|
|
7584
|
-
const n = v("PrimeColumn"), c = v("PrimeButton"), m = v("PristyIcon"), p = v("ColumnTogglePanel"), h = v("PrimeDataTable"), Z = v("PrimeSelect"), y = v("PrimeInputText"), W = v("PrimeCheckbox"), T = v("PrimePopover"),
|
|
7584
|
+
const n = v("PrimeColumn"), c = v("PrimeButton"), m = v("PristyIcon"), p = v("ColumnTogglePanel"), h = v("PrimeDataTable"), Z = v("PrimeSelect"), y = v("PrimeInputText"), W = v("PrimeCheckbox"), T = v("PrimePopover"), w = He("tooltip");
|
|
7585
7585
|
return r(), u(ee, null, [
|
|
7586
7586
|
l.currentNode ? (r(), N(h, {
|
|
7587
7587
|
key: l.currentNode.id,
|
|
@@ -7622,26 +7622,26 @@ function m3(e, t, l, i, a, o) {
|
|
|
7622
7622
|
text: "",
|
|
7623
7623
|
rounded: "",
|
|
7624
7624
|
class: "filter-toggle-btn",
|
|
7625
|
-
onClick: Pe((
|
|
7625
|
+
onClick: Pe((X) => e.openFilterPopover(X, G), ["stop"])
|
|
7626
7626
|
}, null, 8, ["icon", "onClick"])), [
|
|
7627
|
-
[
|
|
7627
|
+
[w, e.$t("filter.toggle")]
|
|
7628
7628
|
]) : f("", !0)
|
|
7629
7629
|
]),
|
|
7630
|
-
body: g(({ data:
|
|
7630
|
+
body: g(({ data: X }) => [
|
|
7631
7631
|
G.component ? (r(), N(Gi(G.component), wi(
|
|
7632
7632
|
{
|
|
7633
7633
|
key: 0,
|
|
7634
7634
|
ref_for: !0
|
|
7635
7635
|
},
|
|
7636
|
-
G.componentProps ? G.componentProps(
|
|
7636
|
+
G.componentProps ? G.componentProps(X) : { node: X }
|
|
7637
7637
|
), null, 16)) : G.key === "name" ? H((r(), u("span", {
|
|
7638
7638
|
key: 1,
|
|
7639
|
-
class: le(["name-cell cursor-pointer", { underline: o.isCurrentNodeDisplayed(
|
|
7640
|
-
onClick: (M) => o.navigateTo(
|
|
7639
|
+
class: le(["name-cell cursor-pointer", { underline: o.isCurrentNodeDisplayed(X) }]),
|
|
7640
|
+
onClick: (M) => o.navigateTo(X)
|
|
7641
7641
|
}, [
|
|
7642
|
-
|
|
7642
|
+
X.isFolder ? (r(), u(ee, { key: 0 }, [
|
|
7643
7643
|
t[4] || (t[4] = s("i", { class: "ri-folder-2-line folder-icon" }, null, -1)),
|
|
7644
|
-
|
|
7644
|
+
X.permissions?.isInheritanceEnabled === !1 ? H((r(), N(c, {
|
|
7645
7645
|
key: 0,
|
|
7646
7646
|
type: "button",
|
|
7647
7647
|
icon: "ri-shield-user-line",
|
|
@@ -7650,12 +7650,12 @@ function m3(e, t, l, i, a, o) {
|
|
|
7650
7650
|
rounded: "",
|
|
7651
7651
|
size: "small",
|
|
7652
7652
|
"aria-label": e.$t("restrictedPermissions"),
|
|
7653
|
-
onClick: Pe((M) => e.$emit("open-members",
|
|
7653
|
+
onClick: Pe((M) => e.$emit("open-members", X), ["stop"])
|
|
7654
7654
|
}, null, 8, ["aria-label", "onClick"])), [
|
|
7655
|
-
[
|
|
7655
|
+
[w, e.$t("restrictedPermissions")]
|
|
7656
7656
|
]) : f("", !0)
|
|
7657
7657
|
], 64)) : (r(), u(ee, { key: 1 }, [
|
|
7658
|
-
|
|
7658
|
+
X.isLocked ? (r(), u("i", t3)) : X.permissions?.isInheritanceEnabled === !1 ? H((r(), N(c, {
|
|
7659
7659
|
key: 1,
|
|
7660
7660
|
type: "button",
|
|
7661
7661
|
icon: "ri-shield-user-line",
|
|
@@ -7664,23 +7664,23 @@ function m3(e, t, l, i, a, o) {
|
|
|
7664
7664
|
rounded: "",
|
|
7665
7665
|
size: "small",
|
|
7666
7666
|
"aria-label": e.$t("restrictedPermissions"),
|
|
7667
|
-
onClick: Pe((M) => e.$emit("open-members",
|
|
7667
|
+
onClick: Pe((M) => e.$emit("open-members", X), ["stop"])
|
|
7668
7668
|
}, null, 8, ["aria-label", "onClick"])), [
|
|
7669
|
-
[
|
|
7669
|
+
[w, e.$t("restrictedPermissions")]
|
|
7670
7670
|
]) : f("", !0),
|
|
7671
7671
|
H(d(m, {
|
|
7672
7672
|
class: "file-icon cursor-pointer",
|
|
7673
|
-
"svg-file-name": o.loadIcon(
|
|
7674
|
-
onClick: Pe((M) => o.clickIcon(
|
|
7673
|
+
"svg-file-name": o.loadIcon(X),
|
|
7674
|
+
onClick: Pe((M) => o.clickIcon(X), ["stop"])
|
|
7675
7675
|
}, null, 8, ["svg-file-name", "onClick"]), [
|
|
7676
|
-
[
|
|
7676
|
+
[w, o.loadIconLabel(X)]
|
|
7677
7677
|
])
|
|
7678
7678
|
], 64)),
|
|
7679
|
-
K(" " + b(o.getValue(
|
|
7679
|
+
K(" " + b(o.getValue(X, G.key, G)), 1)
|
|
7680
7680
|
], 10, e3)), [
|
|
7681
7681
|
[
|
|
7682
|
-
|
|
7683
|
-
o.getValue(
|
|
7682
|
+
w,
|
|
7683
|
+
o.getValue(X, G.key, G),
|
|
7684
7684
|
void 0,
|
|
7685
7685
|
{ bottom: !0 }
|
|
7686
7686
|
]
|
|
@@ -7691,21 +7691,21 @@ function m3(e, t, l, i, a, o) {
|
|
|
7691
7691
|
"line-clamp": !!G.maxLines
|
|
7692
7692
|
}]),
|
|
7693
7693
|
style: zt(G.maxLines ? { "-webkit-line-clamp": G.maxLines } : {}),
|
|
7694
|
-
onClick: (M) => o.applyAction(G.action,
|
|
7694
|
+
onClick: (M) => o.applyAction(G.action, X)
|
|
7695
7695
|
}, [
|
|
7696
|
-
K(b(o.applyFormat(o.getValue(
|
|
7696
|
+
K(b(o.applyFormat(o.getValue(X, G.key, G), G.format)), 1)
|
|
7697
7697
|
], 14, l3)), [
|
|
7698
7698
|
[
|
|
7699
|
-
|
|
7700
|
-
o.getValue(
|
|
7699
|
+
w,
|
|
7700
|
+
o.getValue(X, G.key, G),
|
|
7701
7701
|
void 0,
|
|
7702
7702
|
{ bottom: !0 }
|
|
7703
7703
|
]
|
|
7704
7704
|
]) : (r(), u("span", {
|
|
7705
7705
|
key: 3,
|
|
7706
7706
|
class: le({ "cursor-pointer": !!G.action }),
|
|
7707
|
-
onClick: (M) => o.applyAction(G.action,
|
|
7708
|
-
}, b(o.applyFormat(o.getValue(
|
|
7707
|
+
onClick: (M) => o.applyAction(G.action, X)
|
|
7708
|
+
}, b(o.applyFormat(o.getValue(X, G.key, G), G.format)), 11, a3))
|
|
7709
7709
|
]),
|
|
7710
7710
|
_: 2
|
|
7711
7711
|
}, 1032, ["sortable", "sort-field", "style"]))), 128)),
|
|
@@ -7715,7 +7715,7 @@ function m3(e, t, l, i, a, o) {
|
|
|
7715
7715
|
}, {
|
|
7716
7716
|
body: g(({ data: G }) => [
|
|
7717
7717
|
s("div", i3, [
|
|
7718
|
-
(r(!0), u(ee, null, Ye(o.resolvedInlineActions(G), (j,
|
|
7718
|
+
(r(!0), u(ee, null, Ye(o.resolvedInlineActions(G), (j, X) => (r(), u(ee, { key: X }, [
|
|
7719
7719
|
j.visible !== !1 ? H((r(), N(c, {
|
|
7720
7720
|
key: 0,
|
|
7721
7721
|
type: "button",
|
|
@@ -7728,7 +7728,7 @@ function m3(e, t, l, i, a, o) {
|
|
|
7728
7728
|
onClick: (M) => j.handler(M, G)
|
|
7729
7729
|
}, null, 8, ["icon", "severity", "class", "onClick"])), [
|
|
7730
7730
|
[
|
|
7731
|
-
|
|
7731
|
+
w,
|
|
7732
7732
|
j.tooltip,
|
|
7733
7733
|
void 0,
|
|
7734
7734
|
{ left: !0 }
|
|
@@ -7746,7 +7746,7 @@ function m3(e, t, l, i, a, o) {
|
|
|
7746
7746
|
onClick: (j) => o.toggleFileActionMenu(j, G)
|
|
7747
7747
|
}, null, 8, ["onClick"])), [
|
|
7748
7748
|
[
|
|
7749
|
-
|
|
7749
|
+
w,
|
|
7750
7750
|
e.$t("moreActions"),
|
|
7751
7751
|
void 0,
|
|
7752
7752
|
{ left: !0 }
|
|
@@ -7770,7 +7770,7 @@ function m3(e, t, l, i, a, o) {
|
|
|
7770
7770
|
onClick: e.clearAllFilters
|
|
7771
7771
|
}, null, 8, ["onClick"])), [
|
|
7772
7772
|
[
|
|
7773
|
-
|
|
7773
|
+
w,
|
|
7774
7774
|
e.$t("filter.clearAll"),
|
|
7775
7775
|
void 0,
|
|
7776
7776
|
{ left: !0 }
|
|
@@ -7845,7 +7845,7 @@ function m3(e, t, l, i, a, o) {
|
|
|
7845
7845
|
}, 512)
|
|
7846
7846
|
], 64);
|
|
7847
7847
|
}
|
|
7848
|
-
const Io = /* @__PURE__ */ se($y, [["render", m3], ["__scopeId", "data-v-
|
|
7848
|
+
const Io = /* @__PURE__ */ se($y, [["render", m3], ["__scopeId", "data-v-76e6e518"]]), b3 = {
|
|
7849
7849
|
name: "ContentGridView",
|
|
7850
7850
|
components: {
|
|
7851
7851
|
PristyIcon: ci,
|
|
@@ -8192,8 +8192,8 @@ class I3 {
|
|
|
8192
8192
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
8193
8193
|
}
|
|
8194
8194
|
searchUser(t, l, i = {}) {
|
|
8195
|
-
const a = t.toUpperCase(), o = t.toLowerCase(), n = this.capitalizeFirstLetter(t), c = (W, T,
|
|
8196
|
-
const j =
|
|
8195
|
+
const a = t.toUpperCase(), o = t.toLowerCase(), n = this.capitalizeFirstLetter(t), c = (W, T, w = "suffix") => T.map((G) => {
|
|
8196
|
+
const j = w === "surround" ? `*${G}*` : `${G}*`;
|
|
8197
8197
|
return `${W}:"${j}"`;
|
|
8198
8198
|
}).join(" OR "), m = [a, o, n], y = {
|
|
8199
8199
|
query: {
|
|
@@ -8467,7 +8467,7 @@ const Ru = new I3(), T3 = {
|
|
|
8467
8467
|
class: "font-bold"
|
|
8468
8468
|
}, cZ = { class: "flex pt-4 justify-content-between" };
|
|
8469
8469
|
function dZ(e, t, l, i, a, o) {
|
|
8470
|
-
const n = v("PrimeButton"), c = v("PrimeSteps"), m = v("PrimeSelect"), p = v("PrimeCheckbox"), h = v("PrimeInputIcon"), Z = v("PrimeInputText"), y = v("PrimeIconField"), W = v("PrimeAvatar"), T = v("PrimeColumn"),
|
|
8470
|
+
const n = v("PrimeButton"), c = v("PrimeSteps"), m = v("PrimeSelect"), p = v("PrimeCheckbox"), h = v("PrimeInputIcon"), Z = v("PrimeInputText"), y = v("PrimeIconField"), W = v("PrimeAvatar"), T = v("PrimeColumn"), w = v("PrimeDataTable"), G = v("PrimeDatePicker"), j = v("PrimeTextArea"), X = v("PrimeMessage"), M = v("PrimeDialog");
|
|
8471
8471
|
return r(), N(M, {
|
|
8472
8472
|
"data-testid": "create-workflow-popup",
|
|
8473
8473
|
header: e.$t("workflow.startWorkflow"),
|
|
@@ -8549,7 +8549,7 @@ function dZ(e, t, l, i, a, o) {
|
|
|
8549
8549
|
]),
|
|
8550
8550
|
s("div", H3, [
|
|
8551
8551
|
s("div", Q3, [
|
|
8552
|
-
d(
|
|
8552
|
+
d(w, {
|
|
8553
8553
|
"data-testid": "create-workflow-popup-users-table",
|
|
8554
8554
|
id: "users",
|
|
8555
8555
|
selection: a.assignee,
|
|
@@ -8729,7 +8729,7 @@ function dZ(e, t, l, i, a, o) {
|
|
|
8729
8729
|
}, null, 8, ["modelValue"])
|
|
8730
8730
|
]),
|
|
8731
8731
|
s("div", null, [
|
|
8732
|
-
a.startWorkflowError ? (r(), N(
|
|
8732
|
+
a.startWorkflowError ? (r(), N(X, {
|
|
8733
8733
|
key: 0,
|
|
8734
8734
|
"data-testid": "create-workflow-popup-error-message",
|
|
8735
8735
|
severity: "error",
|
|
@@ -10638,7 +10638,7 @@ const Gg = /* @__PURE__ */ se(Xg, [["render", jg], ["__scopeId", "data-v-9bc5f98
|
|
|
10638
10638
|
class: "ghost-panel-body"
|
|
10639
10639
|
}, Qg = ["aria-label"], Eg = ["aria-label"], Bg = ["aria-label"], _g = { class: "pagination-bar" };
|
|
10640
10640
|
function Kg(e, t, l, i, a, o) {
|
|
10641
|
-
const n = v("ActionMenu"), c = v("PrimeSkeleton"), m = v("GhostNodeRow"), p = v("ContentTableView"), h = v("ContentCompactTableView"), Z = v("ContentGridView"), y = v("PrimeDataView"), W = v("PrimeButton"), T = v("PaginatorComponent"),
|
|
10641
|
+
const n = v("ActionMenu"), c = v("PrimeSkeleton"), m = v("GhostNodeRow"), p = v("ContentTableView"), h = v("ContentCompactTableView"), Z = v("ContentGridView"), y = v("PrimeDataView"), W = v("PrimeButton"), T = v("PaginatorComponent"), w = v("CreateWorkflowPopup"), G = v("CopyOrMovePopup"), j = v("ImportNewVersionPopup"), X = v("ShareLinkPopup"), M = v("MemberListPopup"), O = v("SendMailPopup");
|
|
10642
10642
|
return r(), u(ee, null, [
|
|
10643
10643
|
d(n, {
|
|
10644
10644
|
ref: "fileMenuAction",
|
|
@@ -10888,7 +10888,7 @@ function Kg(e, t, l, i, a, o) {
|
|
|
10888
10888
|
onChangeElementPerPage: o.reloadData
|
|
10889
10889
|
}, null, 8, ["displayed-elements", "total-records", "onChangePage", "onChangeElementPerPage"])) : f("", !0)
|
|
10890
10890
|
]),
|
|
10891
|
-
a.popup === "WORKFLOW" ? (r(), N(
|
|
10891
|
+
a.popup === "WORKFLOW" ? (r(), N(w, {
|
|
10892
10892
|
key: 7,
|
|
10893
10893
|
onClose: o.closePopup
|
|
10894
10894
|
}, null, 8, ["onClose"])) : f("", !0),
|
|
@@ -10904,7 +10904,7 @@ function Kg(e, t, l, i, a, o) {
|
|
|
10904
10904
|
onClose: o.closePopup,
|
|
10905
10905
|
onMessage: o.emitMessage
|
|
10906
10906
|
}, null, 8, ["onClose", "onMessage"])) : f("", !0),
|
|
10907
|
-
a.popup === "SHARELINK" ? (r(), N(
|
|
10907
|
+
a.popup === "SHARELINK" ? (r(), N(X, {
|
|
10908
10908
|
key: 10,
|
|
10909
10909
|
onClose: o.closePopup,
|
|
10910
10910
|
onReload: t[10] || (t[10] = (k) => e.$emit("reload"))
|
|
@@ -12576,14 +12576,14 @@ function To() {
|
|
|
12576
12576
|
950: `{${j}.950}`
|
|
12577
12577
|
});
|
|
12578
12578
|
}, Z = () => localStorage.getItem(Ot.surfaceColor) || Vl.surfaceColor, y = () => {
|
|
12579
|
-
const j = localStorage.getItem(Ot.scale) || Vl.scale.toString(),
|
|
12580
|
-
return document.documentElement.style.fontSize = `${M}px`,
|
|
12579
|
+
const j = localStorage.getItem(Ot.scale) || Vl.scale.toString(), X = parseInt(j), M = lo[X] || lo[Vl.scale];
|
|
12580
|
+
return document.documentElement.style.fontSize = `${M}px`, X;
|
|
12581
12581
|
}, W = (j) => {
|
|
12582
|
-
const
|
|
12583
|
-
|
|
12582
|
+
const X = lo[j];
|
|
12583
|
+
X && (document.documentElement.style.fontSize = `${X}px`, localStorage.setItem(Ot.scale, j.toString()));
|
|
12584
12584
|
}, T = () => parseInt(
|
|
12585
12585
|
localStorage.getItem(Ot.scale) || Vl.scale.toString()
|
|
12586
|
-
),
|
|
12586
|
+
), w = () => {
|
|
12587
12587
|
e(), i(), n(), p(), y();
|
|
12588
12588
|
};
|
|
12589
12589
|
return {
|
|
@@ -12593,7 +12593,7 @@ function To() {
|
|
|
12593
12593
|
applyPrimaryColor: n,
|
|
12594
12594
|
applySurfaceColor: p,
|
|
12595
12595
|
applyScale: y,
|
|
12596
|
-
applyAllThemeSettings:
|
|
12596
|
+
applyAllThemeSettings: w,
|
|
12597
12597
|
// Setters
|
|
12598
12598
|
setDarkMode: t,
|
|
12599
12599
|
setPreset: a,
|
|
@@ -12608,7 +12608,7 @@ function To() {
|
|
|
12608
12608
|
getScale: T,
|
|
12609
12609
|
// Reset
|
|
12610
12610
|
resetToDefaults: () => {
|
|
12611
|
-
localStorage.removeItem(Ot.darkMode), localStorage.removeItem(Ot.preset), localStorage.removeItem(Ot.primaryColor), localStorage.removeItem(Ot.surfaceColor), localStorage.removeItem(Ot.scale),
|
|
12611
|
+
localStorage.removeItem(Ot.darkMode), localStorage.removeItem(Ot.preset), localStorage.removeItem(Ot.primaryColor), localStorage.removeItem(Ot.surfaceColor), localStorage.removeItem(Ot.scale), w();
|
|
12612
12612
|
},
|
|
12613
12613
|
// Constants
|
|
12614
12614
|
themePresets: fi,
|
|
@@ -12640,34 +12640,34 @@ const Sv = { class: "code-viewer-wrapper" }, xv = {
|
|
|
12640
12640
|
}), W = () => {
|
|
12641
12641
|
if (!n.value)
|
|
12642
12642
|
return;
|
|
12643
|
-
const G = si(o.value),
|
|
12643
|
+
const G = si(o.value), X = [...ni({
|
|
12644
12644
|
editable: !1,
|
|
12645
12645
|
showLineNumbers: !0,
|
|
12646
12646
|
enableHistory: !1,
|
|
12647
12647
|
dark: l()
|
|
12648
12648
|
})];
|
|
12649
|
-
G && (!Array.isArray(G) || G.length > 0) &&
|
|
12650
|
-
const M = ai.create({ doc: a.value, extensions:
|
|
12649
|
+
G && (!Array.isArray(G) || G.length > 0) && X.push(G);
|
|
12650
|
+
const M = ai.create({ doc: a.value, extensions: X });
|
|
12651
12651
|
c.value = new Gl({ state: M, parent: n.value });
|
|
12652
12652
|
}, T = () => {
|
|
12653
12653
|
c.value && (c.value.destroy(), c.value = null);
|
|
12654
|
-
},
|
|
12654
|
+
}, w = async (G) => {
|
|
12655
12655
|
if (!(!G.id && !G.shareId)) {
|
|
12656
12656
|
m.value = !0, p.value = null;
|
|
12657
12657
|
try {
|
|
12658
12658
|
let j;
|
|
12659
12659
|
i.isSharedLink && G.shareId ? j = await be.getSharedLinkContent(G.shareId) : j = await be.getNodeContent(G.id, !1);
|
|
12660
|
-
let
|
|
12660
|
+
let X = await j.text();
|
|
12661
12661
|
if (G.content?.mimeType === "application/json")
|
|
12662
12662
|
try {
|
|
12663
|
-
|
|
12663
|
+
X = JSON.stringify(JSON.parse(X), null, 2);
|
|
12664
12664
|
} catch (M) {
|
|
12665
12665
|
console.warn(
|
|
12666
12666
|
"Failed to format JSON, displaying raw content:",
|
|
12667
12667
|
M.message
|
|
12668
12668
|
);
|
|
12669
12669
|
}
|
|
12670
|
-
a.value =
|
|
12670
|
+
a.value = X, o.value = G.content?.mimeType || "text/plain", m.value = !1, await pl(), !h.value && !Z.value && W();
|
|
12671
12671
|
} catch (j) {
|
|
12672
12672
|
console.error("Failed to load content:", j), p.value = t("editor.loadError"), m.value = !1;
|
|
12673
12673
|
}
|
|
@@ -12676,7 +12676,7 @@ const Sv = { class: "code-viewer-wrapper" }, xv = {
|
|
|
12676
12676
|
return qe(
|
|
12677
12677
|
() => i.contentNode,
|
|
12678
12678
|
(G) => {
|
|
12679
|
-
G && (T(),
|
|
12679
|
+
G && (T(), w(G));
|
|
12680
12680
|
},
|
|
12681
12681
|
{ immediate: !0 }
|
|
12682
12682
|
), No(() => {
|
|
@@ -13104,13 +13104,13 @@ const f5 = /* @__PURE__ */ se(Z5, [["render", W5], ["__scopeId", "data-v-6cb2b56
|
|
|
13104
13104
|
folders: c,
|
|
13105
13105
|
isCurrentPageFullySelected: m,
|
|
13106
13106
|
isSelectionRemovalVisible: p
|
|
13107
|
-
} = mo(l), { pagination: h, currentNode: Z } = mo(i), { isSmallScreen: y } = mo(a), W = D(null), T = D([]),
|
|
13107
|
+
} = mo(l), { pagination: h, currentNode: Z } = mo(i), { isSmallScreen: y } = mo(a), W = D(null), T = D([]), w = $(() => o.value.length), G = $(
|
|
13108
13108
|
() => e.totalItems ?? h.value?.totalItems ?? 0
|
|
13109
13109
|
), j = $(() => ({
|
|
13110
13110
|
nodes: o.value,
|
|
13111
13111
|
files: n.value,
|
|
13112
13112
|
folders: c.value
|
|
13113
|
-
})),
|
|
13113
|
+
})), X = $(() => w.value === G.value && G.value > 0), M = $(() => h.value?.count ?? 0), O = $(() => X.value || p.value ? !1 : w.value >= M.value && M.value > 0 && w.value < G.value), k = $(() => {
|
|
13114
13114
|
const pe = j.value;
|
|
13115
13115
|
return e.actions.filter((oe) => typeof oe.visible == "function" ? oe.visible(pe) : oe.visible !== !1);
|
|
13116
13116
|
}), B = $(() => {
|
|
@@ -13162,11 +13162,11 @@ const f5 = /* @__PURE__ */ se(Z5, [["render", W5], ["__scopeId", "data-v-6cb2b56
|
|
|
13162
13162
|
isSmallScreen: y,
|
|
13163
13163
|
isSelectionRemovalVisible: p,
|
|
13164
13164
|
// Computed
|
|
13165
|
-
selectedCount:
|
|
13165
|
+
selectedCount: w,
|
|
13166
13166
|
totalItemsComputed: G,
|
|
13167
13167
|
actionContext: j,
|
|
13168
13168
|
showSelectAll: O,
|
|
13169
|
-
isAllSelected:
|
|
13169
|
+
isAllSelected: X,
|
|
13170
13170
|
inlineActions: V,
|
|
13171
13171
|
menuActions: Q,
|
|
13172
13172
|
allMobileMenuActions: x,
|
|
@@ -14081,7 +14081,7 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14081
14081
|
} else
|
|
14082
14082
|
a.value.push("");
|
|
14083
14083
|
i("update:modelValue", a.value);
|
|
14084
|
-
},
|
|
14084
|
+
}, w = (k) => {
|
|
14085
14085
|
const B = a.value[k];
|
|
14086
14086
|
a.value[k] = { ...m, ...B }, c.value = k;
|
|
14087
14087
|
}, G = () => {
|
|
@@ -14091,7 +14091,7 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14091
14091
|
a.value.splice(k + 1, 0, B), a.value.forEach((V, Q) => {
|
|
14092
14092
|
h(V) && Object.prototype.hasOwnProperty.call(V, "order") && (V.order = Q + 1);
|
|
14093
14093
|
}), i("update:modelValue", a.value);
|
|
14094
|
-
},
|
|
14094
|
+
}, X = (k, B) => {
|
|
14095
14095
|
const V = k + B;
|
|
14096
14096
|
if (V < 0 || V >= a.value.length)
|
|
14097
14097
|
return;
|
|
@@ -14212,7 +14212,7 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14212
14212
|
icon: "ri-pencil-line",
|
|
14213
14213
|
"aria-label": k.$t("modify"),
|
|
14214
14214
|
class: "p-button-secondary p-button-sm",
|
|
14215
|
-
onClick: (x) =>
|
|
14215
|
+
onClick: (x) => w(Q)
|
|
14216
14216
|
}, null, 8, ["aria-label", "onClick"])) : f("", !0),
|
|
14217
14217
|
e.isMetadata && c.value === Q ? (r(), N(A(ie), {
|
|
14218
14218
|
key: 1,
|
|
@@ -14226,7 +14226,7 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14226
14226
|
icon: "ri-arrow-up-line",
|
|
14227
14227
|
"aria-label": k.$t("moveUp"),
|
|
14228
14228
|
class: "p-button-secondary p-button-sm",
|
|
14229
|
-
onClick: (x) =>
|
|
14229
|
+
onClick: (x) => X(Q, -1),
|
|
14230
14230
|
disabled: Q === 0
|
|
14231
14231
|
}, null, 8, ["aria-label", "onClick", "disabled"])) : f("", !0),
|
|
14232
14232
|
e.isMetadata ? (r(), N(A(ie), {
|
|
@@ -14234,7 +14234,7 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14234
14234
|
icon: "ri-arrow-down-line",
|
|
14235
14235
|
"aria-label": k.$t("moveDown"),
|
|
14236
14236
|
class: "p-button-secondary p-button-sm",
|
|
14237
|
-
onClick: (x) =>
|
|
14237
|
+
onClick: (x) => X(Q, 1),
|
|
14238
14238
|
disabled: Q === a.value.length - 1
|
|
14239
14239
|
}, null, 8, ["aria-label", "onClick", "disabled"])) : f("", !0),
|
|
14240
14240
|
e.isMetadata ? (r(), N(A(ie), {
|
|
@@ -14565,21 +14565,21 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14565
14565
|
label: "config.groups.other"
|
|
14566
14566
|
}
|
|
14567
14567
|
}, p = (j) => {
|
|
14568
|
-
for (const [
|
|
14569
|
-
if (
|
|
14568
|
+
for (const [X, M] of Object.entries(m))
|
|
14569
|
+
if (X !== "other") {
|
|
14570
14570
|
if (M.keys && M.keys.includes(j))
|
|
14571
|
-
return
|
|
14571
|
+
return X;
|
|
14572
14572
|
if (M.prefixes) {
|
|
14573
14573
|
for (const O of M.prefixes)
|
|
14574
14574
|
if (j.startsWith(O))
|
|
14575
|
-
return
|
|
14575
|
+
return X;
|
|
14576
14576
|
}
|
|
14577
14577
|
}
|
|
14578
14578
|
return "other";
|
|
14579
14579
|
}, h = $(() => {
|
|
14580
|
-
const j = o.value.toLowerCase().trim(),
|
|
14580
|
+
const j = o.value.toLowerCase().trim(), X = {};
|
|
14581
14581
|
for (const O of Object.keys(m))
|
|
14582
|
-
|
|
14582
|
+
X[O] = [];
|
|
14583
14583
|
for (const O of i.configData) {
|
|
14584
14584
|
if (j) {
|
|
14585
14585
|
const B = O.key.toLowerCase().includes(j), V = i.descriptions[O.key]?.descriptionKey, Q = V ? l(V).toLowerCase().includes(j) : !1;
|
|
@@ -14587,16 +14587,16 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14587
14587
|
continue;
|
|
14588
14588
|
}
|
|
14589
14589
|
const k = p(O.key);
|
|
14590
|
-
|
|
14590
|
+
X[k].push(O);
|
|
14591
14591
|
}
|
|
14592
|
-
for (const O of Object.keys(
|
|
14593
|
-
|
|
14592
|
+
for (const O of Object.keys(X))
|
|
14593
|
+
X[O].sort((k, B) => k.key.localeCompare(B.key));
|
|
14594
14594
|
const M = [];
|
|
14595
14595
|
for (const [O, k] of Object.entries(m))
|
|
14596
|
-
|
|
14596
|
+
X[O].length > 0 && M.push({
|
|
14597
14597
|
id: O,
|
|
14598
14598
|
label: k.label,
|
|
14599
|
-
items:
|
|
14599
|
+
items: X[O]
|
|
14600
14600
|
});
|
|
14601
14601
|
return M;
|
|
14602
14602
|
}), Z = $(() => n.value ? i.configData.find((j) => j.key === n.value) : null), y = (j) => {
|
|
@@ -14606,22 +14606,22 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14606
14606
|
}, T = (j) => {
|
|
14607
14607
|
if (!n.value)
|
|
14608
14608
|
return;
|
|
14609
|
-
const
|
|
14610
|
-
a("update:config",
|
|
14611
|
-
},
|
|
14609
|
+
const X = i.configData.map((M) => M.key === n.value ? { ...M, value: j } : M);
|
|
14610
|
+
a("update:config", X);
|
|
14611
|
+
}, w = () => {
|
|
14612
14612
|
if (!n.value)
|
|
14613
14613
|
return;
|
|
14614
|
-
const j = i.configData.map((
|
|
14614
|
+
const j = i.configData.map((X) => X.key === n.value ? { ...X, isDefined: !0 } : X);
|
|
14615
14615
|
a("update:config", j);
|
|
14616
14616
|
}, G = () => {
|
|
14617
14617
|
if (!n.value)
|
|
14618
14618
|
return;
|
|
14619
|
-
const j = i.configData.map((
|
|
14620
|
-
if (
|
|
14621
|
-
const M = i.descriptions[
|
|
14622
|
-
return { ...
|
|
14619
|
+
const j = i.configData.map((X) => {
|
|
14620
|
+
if (X.key === n.value) {
|
|
14621
|
+
const M = i.descriptions[X.key]?.default;
|
|
14622
|
+
return { ...X, isDefined: !1, value: M };
|
|
14623
14623
|
}
|
|
14624
|
-
return
|
|
14624
|
+
return X;
|
|
14625
14625
|
});
|
|
14626
14626
|
a("update:config", j);
|
|
14627
14627
|
};
|
|
@@ -14631,17 +14631,17 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14631
14631
|
!n.value && i.configData.length > 0 && h.value.length > 0 && h.value[0].items.length > 0 && (n.value = h.value[0].items[0].key);
|
|
14632
14632
|
},
|
|
14633
14633
|
{ immediate: !0 }
|
|
14634
|
-
), (j,
|
|
14634
|
+
), (j, X) => (r(), u("div", Wf, [
|
|
14635
14635
|
s("div", ff, [
|
|
14636
14636
|
s("div", Af, [
|
|
14637
14637
|
s("span", Yf, [
|
|
14638
|
-
|
|
14638
|
+
X[1] || (X[1] = s("i", {
|
|
14639
14639
|
class: "ri-search-line",
|
|
14640
14640
|
"aria-hidden": "true"
|
|
14641
14641
|
}, null, -1)),
|
|
14642
14642
|
d(A(Ve), {
|
|
14643
14643
|
modelValue: o.value,
|
|
14644
|
-
"onUpdate:modelValue":
|
|
14644
|
+
"onUpdate:modelValue": X[0] || (X[0] = (M) => o.value = M),
|
|
14645
14645
|
placeholder: j.$t("config.splitView.filterPlaceholder"),
|
|
14646
14646
|
class: "filter-input"
|
|
14647
14647
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -14687,7 +14687,7 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14687
14687
|
])
|
|
14688
14688
|
]))), 128)),
|
|
14689
14689
|
h.value.length === 0 ? (r(), u("div", jf, [
|
|
14690
|
-
|
|
14690
|
+
X[2] || (X[2] = s("i", {
|
|
14691
14691
|
class: "ri-search-line",
|
|
14692
14692
|
"aria-hidden": "true"
|
|
14693
14693
|
}, null, -1)),
|
|
@@ -14701,11 +14701,11 @@ const IW = /* @__PURE__ */ se(WW, [["render", wW]]), TW = { class: "array-editor
|
|
|
14701
14701
|
item: Z.value,
|
|
14702
14702
|
description: e.descriptions[Z.value.key],
|
|
14703
14703
|
"onUpdate:value": T,
|
|
14704
|
-
onDefine:
|
|
14704
|
+
onDefine: w,
|
|
14705
14705
|
onUndefine: G
|
|
14706
14706
|
}, null, 8, ["item", "description"])
|
|
14707
14707
|
])) : (r(), u("div", kf, [
|
|
14708
|
-
|
|
14708
|
+
X[3] || (X[3] = s("i", {
|
|
14709
14709
|
class: "ri-settings-3-line",
|
|
14710
14710
|
"aria-hidden": "true"
|
|
14711
14711
|
}, null, -1)),
|
|
@@ -15124,7 +15124,7 @@ const n9 = /* @__PURE__ */ se(Jf, [["render", s9], ["__scopeId", "data-v-8bb7c5b
|
|
|
15124
15124
|
class: "font-semibold"
|
|
15125
15125
|
}, p9 = { class: "text-sm" }, h9 = { class: "flex gap-3" }, y9 = { class: "flex flex-column gap-1 flex-1" }, Z9 = { class: "font-semibold" }, g9 = { class: "flex flex-column gap-1 flex-1" }, v9 = { class: "font-semibold" }, W9 = { class: "flex flex-column gap-1" }, f9 = { class: "font-semibold" }, A9 = { class: "flex gap-2 align-items-center" };
|
|
15126
15126
|
function Y9(e, t, l, i, a, o) {
|
|
15127
|
-
const n = v("PrimeInputIcon"), c = v("PrimeInputText"), m = v("PrimeIconField"), p = v("PrimeColumn"), h = v("PrimeDataTable"), Z = v("PrimeSelectButton"), y = v("PrimeSelect"), W = v("PrimeDatePicker"), T = v("PrimeInputNumber"),
|
|
15127
|
+
const n = v("PrimeInputIcon"), c = v("PrimeInputText"), m = v("PrimeIconField"), p = v("PrimeColumn"), h = v("PrimeDataTable"), Z = v("PrimeSelectButton"), y = v("PrimeSelect"), W = v("PrimeDatePicker"), T = v("PrimeInputNumber"), w = v("PrimeButton"), G = v("PrimeDialog");
|
|
15128
15128
|
return r(), N(G, {
|
|
15129
15129
|
visible: l.visible,
|
|
15130
15130
|
"onUpdate:visible": t[11] || (t[11] = (j) => e.$emit("update:visible", j)),
|
|
@@ -15133,19 +15133,19 @@ function Y9(e, t, l, i, a, o) {
|
|
|
15133
15133
|
style: { width: "600px", maxWidth: "95vw" }
|
|
15134
15134
|
}, {
|
|
15135
15135
|
footer: g(() => [
|
|
15136
|
-
d(
|
|
15136
|
+
d(w, {
|
|
15137
15137
|
label: e.$t("rechercheAvancee.cancelButton"),
|
|
15138
15138
|
icon: "ri-close-line",
|
|
15139
15139
|
onClick: t[10] || (t[10] = (j) => e.$emit("update:visible", !1)),
|
|
15140
15140
|
text: ""
|
|
15141
15141
|
}, null, 8, ["label"]),
|
|
15142
|
-
l.editCriterion ? (r(), N(
|
|
15142
|
+
l.editCriterion ? (r(), N(w, {
|
|
15143
15143
|
key: 0,
|
|
15144
15144
|
label: e.$t("rechercheAvancee.updateButton"),
|
|
15145
15145
|
icon: "ri-check-line",
|
|
15146
15146
|
onClick: o.updateCriterion,
|
|
15147
15147
|
disabled: !o.isCriterionValid
|
|
15148
|
-
}, null, 8, ["label", "onClick", "disabled"])) : (r(), N(
|
|
15148
|
+
}, null, 8, ["label", "onClick", "disabled"])) : (r(), N(w, {
|
|
15149
15149
|
key: 1,
|
|
15150
15150
|
label: e.$t("rechercheAvancee.addButton"),
|
|
15151
15151
|
icon: "ri-add-line",
|
|
@@ -16577,10 +16577,10 @@ const ks = /* @__PURE__ */ se(T9, [["render", H9], ["__scopeId", "data-v-8a1b953
|
|
|
16577
16577
|
class: "p-error"
|
|
16578
16578
|
}, n4 = { class: "flex flex-column gap-1" }, r4 = { class: "font-semibold" }, c4 = { class: "flex justify-content-between pt-3" };
|
|
16579
16579
|
function d4(e, t, l, i, a, o) {
|
|
16580
|
-
const n = v("PrimeStep"), c = v("PrimeStepList"), m = v("PrimeSelectButton"), p = v("PrimeButton"), h = v("PrimeStepPanel"), Z = v("PrimeInputGroupAddon"), y = v("PrimeInputText"), W = v("PrimeInputGroup"), T = v("PrimeTextarea"),
|
|
16580
|
+
const n = v("PrimeStep"), c = v("PrimeStepList"), m = v("PrimeSelectButton"), p = v("PrimeButton"), h = v("PrimeStepPanel"), Z = v("PrimeInputGroupAddon"), y = v("PrimeInputText"), W = v("PrimeInputGroup"), T = v("PrimeTextarea"), w = v("PrimeStepPanels"), G = v("PrimeStepper"), j = v("PrimeDialog");
|
|
16581
16581
|
return r(), N(j, {
|
|
16582
16582
|
visible: l.visible,
|
|
16583
|
-
"onUpdate:visible": t[6] || (t[6] = (
|
|
16583
|
+
"onUpdate:visible": t[6] || (t[6] = (X) => e.$emit("update:visible", X)),
|
|
16584
16584
|
modal: "",
|
|
16585
16585
|
header: o.isEditMode ? e.$t("vuesUtilisateurs.modifyViewPopup.title") : e.$t("vuesUtilisateurs.saveViewPopup.title"),
|
|
16586
16586
|
style: { width: "550px", maxWidth: "95vw" }
|
|
@@ -16588,7 +16588,7 @@ function d4(e, t, l, i, a, o) {
|
|
|
16588
16588
|
default: g(() => [
|
|
16589
16589
|
d(G, {
|
|
16590
16590
|
value: a.currentStep,
|
|
16591
|
-
"onUpdate:value": t[5] || (t[5] = (
|
|
16591
|
+
"onUpdate:value": t[5] || (t[5] = (X) => a.currentStep = X),
|
|
16592
16592
|
linear: !o.isEditMode
|
|
16593
16593
|
}, {
|
|
16594
16594
|
default: g(() => [
|
|
@@ -16618,13 +16618,13 @@ function d4(e, t, l, i, a, o) {
|
|
|
16618
16618
|
]),
|
|
16619
16619
|
_: 1
|
|
16620
16620
|
}),
|
|
16621
|
-
d(
|
|
16621
|
+
d(w, null, {
|
|
16622
16622
|
default: g(() => [
|
|
16623
16623
|
o.showScopeStep ? (r(), N(h, {
|
|
16624
16624
|
key: 0,
|
|
16625
16625
|
value: "1"
|
|
16626
16626
|
}, {
|
|
16627
|
-
default: g(({ activateCallback:
|
|
16627
|
+
default: g(({ activateCallback: X }) => [
|
|
16628
16628
|
s("div", E9, [
|
|
16629
16629
|
s("p", B9, b(e.$t("vuesUtilisateurs.saveViewPopup.scopeDescription")), 1),
|
|
16630
16630
|
d(m, {
|
|
@@ -16641,7 +16641,7 @@ function d4(e, t, l, i, a, o) {
|
|
|
16641
16641
|
label: e.$t("next"),
|
|
16642
16642
|
icon: "ri-arrow-right-line",
|
|
16643
16643
|
iconPos: "right",
|
|
16644
|
-
onClick: (M) =>
|
|
16644
|
+
onClick: (M) => X(o.fileIdStep),
|
|
16645
16645
|
disabled: !a.scope
|
|
16646
16646
|
}, null, 8, ["label", "onClick", "disabled"])
|
|
16647
16647
|
])
|
|
@@ -16649,7 +16649,7 @@ function d4(e, t, l, i, a, o) {
|
|
|
16649
16649
|
_: 1
|
|
16650
16650
|
})) : f("", !0),
|
|
16651
16651
|
d(h, { value: o.fileIdStep }, {
|
|
16652
|
-
default: g(({ activateCallback:
|
|
16652
|
+
default: g(({ activateCallback: X }) => [
|
|
16653
16653
|
s("div", K9, [
|
|
16654
16654
|
a.scope === "global" ? (r(), u("p", $9, b(e.$t("vuesUtilisateurs.saveViewPopup.fileIdDescription")), 1)) : f("", !0),
|
|
16655
16655
|
a.scope === "global" ? (r(), N(W, { key: 1 }, {
|
|
@@ -16683,13 +16683,13 @@ function d4(e, t, l, i, a, o) {
|
|
|
16683
16683
|
label: e.$t("previous"),
|
|
16684
16684
|
icon: "ri-arrow-left-line",
|
|
16685
16685
|
severity: "secondary",
|
|
16686
|
-
onClick: (M) =>
|
|
16686
|
+
onClick: (M) => X("1")
|
|
16687
16687
|
}, null, 8, ["label", "onClick"])) : (r(), u("span", t4)),
|
|
16688
16688
|
d(p, {
|
|
16689
16689
|
label: e.$t("next"),
|
|
16690
16690
|
icon: "ri-arrow-right-line",
|
|
16691
16691
|
iconPos: "right",
|
|
16692
|
-
onClick: (M) =>
|
|
16692
|
+
onClick: (M) => X(o.detailsStep),
|
|
16693
16693
|
disabled: a.scope === "global" && !a.viewFileId
|
|
16694
16694
|
}, null, 8, ["label", "onClick", "disabled"])
|
|
16695
16695
|
])
|
|
@@ -16697,7 +16697,7 @@ function d4(e, t, l, i, a, o) {
|
|
|
16697
16697
|
_: 1
|
|
16698
16698
|
}, 8, ["value"]),
|
|
16699
16699
|
d(h, { value: o.detailsStep }, {
|
|
16700
|
-
default: g(({ activateCallback:
|
|
16700
|
+
default: g(({ activateCallback: X }) => [
|
|
16701
16701
|
s("div", l4, [
|
|
16702
16702
|
s("div", a4, [
|
|
16703
16703
|
s("label", i4, b(e.$t("vuesUtilisateurs.saveViewPopup.nameLabel")), 1),
|
|
@@ -16726,7 +16726,7 @@ function d4(e, t, l, i, a, o) {
|
|
|
16726
16726
|
label: e.$t("previous"),
|
|
16727
16727
|
icon: "ri-arrow-left-line",
|
|
16728
16728
|
severity: "secondary",
|
|
16729
|
-
onClick: (M) =>
|
|
16729
|
+
onClick: (M) => X(o.fileIdStep)
|
|
16730
16730
|
}, null, 8, ["label", "onClick"]),
|
|
16731
16731
|
d(p, {
|
|
16732
16732
|
label: o.isEditMode ? e.$t("vuesUtilisateurs.modifyView") : e.$t("vuesUtilisateurs.saveView"),
|
|
@@ -16941,7 +16941,7 @@ const Cs = /* @__PURE__ */ se(Q9, [["render", d4]]), u4 = {
|
|
|
16941
16941
|
class: "flex gap-2 mt-2"
|
|
16942
16942
|
}, X4 = { class: "flex align-items-center" }, w4 = { key: 0 };
|
|
16943
16943
|
function I4(e, t, l, i, a, o) {
|
|
16944
|
-
const n = v("ExactSearch"), c = v("PrimeAccordionHeader"), m = v("UserViewsFavoritesPanel"), p = v("PrimeAccordionContent"), h = v("PrimeAccordionPanel"), Z = v("PrimeSelectButton"), y = v("PrimeInputText"), W = v("PrimeButton"), T = v("PrimeAccordion"),
|
|
16944
|
+
const n = v("ExactSearch"), c = v("PrimeAccordionHeader"), m = v("UserViewsFavoritesPanel"), p = v("PrimeAccordionContent"), h = v("PrimeAccordionPanel"), Z = v("PrimeSelectButton"), y = v("PrimeInputText"), W = v("PrimeButton"), T = v("PrimeAccordion"), w = v("AddCriterionPopup"), G = v("SaveViewPopup"), j = v("TreeExplorer"), X = v("PrimeDialog");
|
|
16945
16945
|
return r(), u(ee, null, [
|
|
16946
16946
|
d(n, {
|
|
16947
16947
|
onChangeExactSearchSettings: t[0] || (t[0] = (M) => e.$emit("change-exact-search-settings", M)),
|
|
@@ -17078,7 +17078,7 @@ function I4(e, t, l, i, a, o) {
|
|
|
17078
17078
|
]),
|
|
17079
17079
|
_: 1
|
|
17080
17080
|
}),
|
|
17081
|
-
d(
|
|
17081
|
+
d(w, {
|
|
17082
17082
|
visible: a.isAddCriterionDialogVisible,
|
|
17083
17083
|
"onUpdate:visible": t[5] || (t[5] = (M) => a.isAddCriterionDialogVisible = M),
|
|
17084
17084
|
properties: o.availableProperties,
|
|
@@ -17092,7 +17092,7 @@ function I4(e, t, l, i, a, o) {
|
|
|
17092
17092
|
onSaveView: o.handleSaveView,
|
|
17093
17093
|
onClearError: o.clearSaveViewError
|
|
17094
17094
|
}, null, 8, ["visible", "view-data", "error-message", "onSaveView", "onClearError"]),
|
|
17095
|
-
d(
|
|
17095
|
+
d(X, {
|
|
17096
17096
|
visible: a.isDossierTreeVisible,
|
|
17097
17097
|
"onUpdate:visible": t[7] || (t[7] = (M) => a.isDossierTreeVisible = M),
|
|
17098
17098
|
header: "Choisir un dossier",
|
|
@@ -17108,7 +17108,7 @@ function I4(e, t, l, i, a, o) {
|
|
|
17108
17108
|
]),
|
|
17109
17109
|
_: 1
|
|
17110
17110
|
}, 8, ["visible"]),
|
|
17111
|
-
d(
|
|
17111
|
+
d(X, {
|
|
17112
17112
|
visible: a.isDeleteConfirmVisible,
|
|
17113
17113
|
"onUpdate:visible": t[9] || (t[9] = (M) => a.isDeleteConfirmVisible = M),
|
|
17114
17114
|
header: "Confirmation de suppression",
|
|
@@ -17484,7 +17484,7 @@ const T4 = /* @__PURE__ */ se(u4, [["render", I4]]), j4 = {
|
|
|
17484
17484
|
class: "flex flex-column gap-1 w-full"
|
|
17485
17485
|
}, mA = { class: "font-semibold" }, bA = { class: "flex align-items-center" }, pA = { key: 0 };
|
|
17486
17486
|
function hA(e, t, l, i, a, o) {
|
|
17487
|
-
const n = v("PrimeButton"), c = v("PrimeAccordionHeader"), m = v("UserViewsFavoritesPanel"), p = v("PrimeAccordionContent"), h = v("PrimeAccordionPanel"), Z = v("PrimeAccordion"), y = v("PrimeSelectButton"), W = v("PrimeAutoComplete"), T = v("PrimeInputText"),
|
|
17487
|
+
const n = v("PrimeButton"), c = v("PrimeAccordionHeader"), m = v("UserViewsFavoritesPanel"), p = v("PrimeAccordionContent"), h = v("PrimeAccordionPanel"), Z = v("PrimeAccordion"), y = v("PrimeSelectButton"), W = v("PrimeAutoComplete"), T = v("PrimeInputText"), w = v("PrimeDialog"), G = v("AddCriterionPopup"), j = v("SaveViewPopup"), X = v("TreeExplorer"), M = He("tooltip");
|
|
17488
17488
|
return r(), u(ee, null, [
|
|
17489
17489
|
o.isSavedViewLoaded && !l.hideViewSelector ? (r(), u("div", G4, [
|
|
17490
17490
|
s("span", L4, [
|
|
@@ -17724,7 +17724,7 @@ function hA(e, t, l, i, a, o) {
|
|
|
17724
17724
|
]),
|
|
17725
17725
|
_: 1
|
|
17726
17726
|
}, 8, ["class", "value"]),
|
|
17727
|
-
d(
|
|
17727
|
+
d(w, {
|
|
17728
17728
|
visible: a.isAddLocationDialogVisible,
|
|
17729
17729
|
"onUpdate:visible": t[9] || (t[9] = (O) => a.isAddLocationDialogVisible = O),
|
|
17730
17730
|
header: e.$t("rechercheAvancee.addLocationTitle"),
|
|
@@ -17813,7 +17813,7 @@ function hA(e, t, l, i, a, o) {
|
|
|
17813
17813
|
onSaveView: o.handleSaveView,
|
|
17814
17814
|
onClearError: o.clearSaveViewError
|
|
17815
17815
|
}, null, 8, ["visible", "view-data", "error-message", "global-only", "onSaveView", "onClearError"]),
|
|
17816
|
-
d(
|
|
17816
|
+
d(w, {
|
|
17817
17817
|
visible: a.isDossierTreeVisible,
|
|
17818
17818
|
"onUpdate:visible": t[12] || (t[12] = (O) => a.isDossierTreeVisible = O),
|
|
17819
17819
|
header: e.$t("selectFolder"),
|
|
@@ -17821,7 +17821,7 @@ function hA(e, t, l, i, a, o) {
|
|
|
17821
17821
|
class: "w-full md:w-6"
|
|
17822
17822
|
}, {
|
|
17823
17823
|
default: g(() => [
|
|
17824
|
-
d(
|
|
17824
|
+
d(X, {
|
|
17825
17825
|
"current-node": null,
|
|
17826
17826
|
showUserHome: l.showUserHome,
|
|
17827
17827
|
onSelectNode: o.handleDossierSelected
|
|
@@ -17829,7 +17829,7 @@ function hA(e, t, l, i, a, o) {
|
|
|
17829
17829
|
]),
|
|
17830
17830
|
_: 1
|
|
17831
17831
|
}, 8, ["visible", "header"]),
|
|
17832
|
-
d(
|
|
17832
|
+
d(w, {
|
|
17833
17833
|
visible: a.isDeleteConfirmVisible,
|
|
17834
17834
|
"onUpdate:visible": t[14] || (t[14] = (O) => a.isDeleteConfirmVisible = O),
|
|
17835
17835
|
header: e.$t("rechercheAvancee.confirmDeleteTitle"),
|
|
@@ -18276,7 +18276,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18276
18276
|
modal: "",
|
|
18277
18277
|
header: W.$t("pdfTools.saveAs.title"),
|
|
18278
18278
|
class: "dialog-save-as",
|
|
18279
|
-
"onUpdate:visible": T[3] || (T[3] = (
|
|
18279
|
+
"onUpdate:visible": T[3] || (T[3] = (w) => W.$emit("close")),
|
|
18280
18280
|
onShow: h
|
|
18281
18281
|
}, {
|
|
18282
18282
|
footer: g(() => [
|
|
@@ -18284,7 +18284,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18284
18284
|
label: W.$t("pdfTools.common.cancel"),
|
|
18285
18285
|
icon: "ri-close-line",
|
|
18286
18286
|
text: "",
|
|
18287
|
-
onClick: T[2] || (T[2] = (
|
|
18287
|
+
onClick: T[2] || (T[2] = (w) => W.$emit("close"))
|
|
18288
18288
|
}, null, 8, ["label"]),
|
|
18289
18289
|
d(A(ie), {
|
|
18290
18290
|
label: W.$t("pdfTools.common.save"),
|
|
@@ -18300,7 +18300,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18300
18300
|
d(A(Ve), {
|
|
18301
18301
|
id: "filename",
|
|
18302
18302
|
modelValue: o.value,
|
|
18303
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
18303
|
+
"onUpdate:modelValue": T[0] || (T[0] = (w) => o.value = w)
|
|
18304
18304
|
}, null, 8, ["modelValue"])
|
|
18305
18305
|
]),
|
|
18306
18306
|
s("div", JA, [
|
|
@@ -18314,7 +18314,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18314
18314
|
d(A(ie), {
|
|
18315
18315
|
icon: c.value ? "ri-arrow-up-s-line" : "ri-arrow-down-s-line",
|
|
18316
18316
|
label: W.$t("pdfTools.saveAs.browse"),
|
|
18317
|
-
onClick: T[1] || (T[1] = (
|
|
18317
|
+
onClick: T[1] || (T[1] = (w) => c.value = !c.value)
|
|
18318
18318
|
}, null, 8, ["icon", "label"])
|
|
18319
18319
|
])
|
|
18320
18320
|
]),
|
|
@@ -18406,7 +18406,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18406
18406
|
IMAGE: "image",
|
|
18407
18407
|
SIGNATURE: "signature",
|
|
18408
18408
|
TEXT: "text"
|
|
18409
|
-
}, T = D(W.SELECT),
|
|
18409
|
+
}, T = D(W.SELECT), w = D([]), G = D(null), j = D(null), X = D(null), M = D(null), O = D(!1), k = D(null);
|
|
18410
18410
|
let B = !1, V = null, Q = !1, x = null;
|
|
18411
18411
|
const Y = D(""), U = D(-45), S = D(5), P = [
|
|
18412
18412
|
{ label: "Helvetica", value: "Helvetica" },
|
|
@@ -18737,7 +18737,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18737
18737
|
n.value = !1;
|
|
18738
18738
|
}
|
|
18739
18739
|
}, Se = (z) => {
|
|
18740
|
-
Z.value = z || m.value, h.value = !0, y.value = 1,
|
|
18740
|
+
Z.value = z || m.value, h.value = !0, y.value = 1, w.value = [], setTimeout(Ft, 200);
|
|
18741
18741
|
}, tt = () => {
|
|
18742
18742
|
h.value = !1, Z.value = null;
|
|
18743
18743
|
}, el = () => {
|
|
@@ -18751,7 +18751,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18751
18751
|
}, jt = () => {
|
|
18752
18752
|
O.value = !0;
|
|
18753
18753
|
}, zl = () => {
|
|
18754
|
-
|
|
18754
|
+
w.value.pop(), nl();
|
|
18755
18755
|
}, gl = async (z) => {
|
|
18756
18756
|
if (!(!z || z.type !== W.IMAGE || z._loading || z._bitmap)) {
|
|
18757
18757
|
z._loading = !0;
|
|
@@ -18767,7 +18767,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18767
18767
|
}
|
|
18768
18768
|
}
|
|
18769
18769
|
}, mi = () => {
|
|
18770
|
-
const z =
|
|
18770
|
+
const z = X.value;
|
|
18771
18771
|
if (!z)
|
|
18772
18772
|
return null;
|
|
18773
18773
|
const F = Array.from(z.querySelectorAll("canvas"));
|
|
@@ -18800,16 +18800,16 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18800
18800
|
};
|
|
18801
18801
|
let ua = null, sl = null, wa = null, $l = null;
|
|
18802
18802
|
const jo = (z) => {
|
|
18803
|
-
for (let F =
|
|
18804
|
-
const E =
|
|
18803
|
+
for (let F = w.value.length - 1; F >= 0; F--) {
|
|
18804
|
+
const E = w.value[F].rect;
|
|
18805
18805
|
if (z.x >= E.x && z.x <= E.x + E.w && z.y >= E.y && z.y <= E.y + E.h)
|
|
18806
18806
|
return F;
|
|
18807
18807
|
}
|
|
18808
18808
|
return -1;
|
|
18809
18809
|
}, Go = (z) => {
|
|
18810
18810
|
const J = 6 * (window.devicePixelRatio || 1) / 2;
|
|
18811
|
-
for (let Ze =
|
|
18812
|
-
const _ =
|
|
18811
|
+
for (let Ze = w.value.length - 1; Ze >= 0; Ze--) {
|
|
18812
|
+
const _ = w.value[Ze];
|
|
18813
18813
|
if (_.type !== W.IMAGE && _.type !== W.TEXT)
|
|
18814
18814
|
continue;
|
|
18815
18815
|
const we = _.rect, Be = [
|
|
@@ -18828,7 +18828,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18828
18828
|
Q = !0, x = Fl(z);
|
|
18829
18829
|
else if (T.value === W.COMMENT) {
|
|
18830
18830
|
const F = Fl(z), E = window.prompt(t("pdfTools.pageEditor.commentPrompt"));
|
|
18831
|
-
E && (
|
|
18831
|
+
E && (w.value.push({
|
|
18832
18832
|
type: W.COMMENT,
|
|
18833
18833
|
rect: { x: F.x, y: F.y, w: 24, h: 24 },
|
|
18834
18834
|
payload: { text: E }
|
|
@@ -18836,12 +18836,12 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18836
18836
|
} else if (T.value === W.IMAGE || T.value === W.SELECT || T.value === W.TEXT) {
|
|
18837
18837
|
const F = Fl(z), E = Go(F);
|
|
18838
18838
|
if (E) {
|
|
18839
|
-
wa = E.idx, $l = E.corner, sl = { p: F, rect: { ...
|
|
18839
|
+
wa = E.idx, $l = E.corner, sl = { p: F, rect: { ...w.value[E.idx].rect } }, M.value && (M.value.style.cursor = "nwse-resize");
|
|
18840
18840
|
return;
|
|
18841
18841
|
}
|
|
18842
18842
|
const J = jo(F);
|
|
18843
|
-
if (J !== -1 && (
|
|
18844
|
-
ua = J, sl = { p: F, rect: { ...
|
|
18843
|
+
if (J !== -1 && (w.value[J].type === W.IMAGE || w.value[J].type === W.TEXT)) {
|
|
18844
|
+
ua = J, sl = { p: F, rect: { ...w.value[J].rect } }, M.value && (M.value.style.cursor = "move");
|
|
18845
18845
|
return;
|
|
18846
18846
|
}
|
|
18847
18847
|
if (T.value === W.IMAGE) {
|
|
@@ -18855,12 +18855,12 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18855
18855
|
signature: j.value
|
|
18856
18856
|
}
|
|
18857
18857
|
};
|
|
18858
|
-
|
|
18858
|
+
w.value.push(Ze), gl(Ze), nl(), T.value = W.SELECT, G.value = null, j.value = null;
|
|
18859
18859
|
}
|
|
18860
18860
|
}
|
|
18861
18861
|
}, Lo = (z) => {
|
|
18862
18862
|
if (wa !== null && $l) {
|
|
18863
|
-
const E = Fl(z), J =
|
|
18863
|
+
const E = Fl(z), J = w.value[wa];
|
|
18864
18864
|
if (J) {
|
|
18865
18865
|
const Ze = sl.rect;
|
|
18866
18866
|
let _ = Ze.x, we = Ze.y, Be = Ze.w, lt = Ze.h;
|
|
@@ -18870,7 +18870,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18870
18870
|
return;
|
|
18871
18871
|
}
|
|
18872
18872
|
if (ua !== null) {
|
|
18873
|
-
const E = Fl(z), J =
|
|
18873
|
+
const E = Fl(z), J = w.value[ua];
|
|
18874
18874
|
if (J) {
|
|
18875
18875
|
const Ze = E.x - sl.p.x, _ = E.y - sl.p.y;
|
|
18876
18876
|
J.rect.x = sl.rect.x + Ze, J.rect.y = sl.rect.y + _, nl();
|
|
@@ -18894,7 +18894,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18894
18894
|
if (Q && Ol.value)
|
|
18895
18895
|
if (T.value === W.TEXT) {
|
|
18896
18896
|
const z = window.prompt(t("pdfTools.pageEditor.addTextPrompt"));
|
|
18897
|
-
z && z.trim().length > 0 &&
|
|
18897
|
+
z && z.trim().length > 0 && w.value.push({
|
|
18898
18898
|
type: W.TEXT,
|
|
18899
18899
|
rect: { ...Ol.value },
|
|
18900
18900
|
payload: {
|
|
@@ -18905,7 +18905,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18905
18905
|
}
|
|
18906
18906
|
});
|
|
18907
18907
|
} else
|
|
18908
|
-
|
|
18908
|
+
w.value.push({
|
|
18909
18909
|
type: T.value,
|
|
18910
18910
|
rect: { ...Ol.value }
|
|
18911
18911
|
});
|
|
@@ -18967,7 +18967,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
18967
18967
|
E.restore();
|
|
18968
18968
|
}
|
|
18969
18969
|
};
|
|
18970
|
-
if (
|
|
18970
|
+
if (w.value.forEach(Ze), Ol.value) {
|
|
18971
18971
|
const _ = Ol.value;
|
|
18972
18972
|
E.setLineDash([6 * J, 4 * J]), E.strokeStyle = T.value === W.REDACT ? "black" : "goldenrod", E.strokeRect(_.x, _.y, _.w, _.h), E.setLineDash([]);
|
|
18973
18973
|
}
|
|
@@ -19003,7 +19003,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19003
19003
|
const { width: J, height: Ze } = E.getSize(), _ = mi();
|
|
19004
19004
|
if (!_)
|
|
19005
19005
|
throw new Error(t("pdfTools.pdfRenderCanvasNotFound"));
|
|
19006
|
-
if (
|
|
19006
|
+
if (w.value.some(
|
|
19007
19007
|
(yt) => yt.type === W.REDACT
|
|
19008
19008
|
)) {
|
|
19009
19009
|
if (!window.confirm(t("pdfTools.redactFlattenConfirm"))) {
|
|
@@ -19033,7 +19033,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19033
19033
|
Ga.drawImage(Zi, { x: 0, y: 0, width: J, height: Ze }), E = Ga;
|
|
19034
19034
|
}
|
|
19035
19035
|
const Be = _.getBoundingClientRect(), lt = _.width, Gt = _.height, wt = window.devicePixelRatio || 1, Dl = lt / Be.width, pa = Gt / Be.height, Rl = J / lt, ja = Ze / Gt;
|
|
19036
|
-
for (const yt of
|
|
19036
|
+
for (const yt of w.value) {
|
|
19037
19037
|
const ql = yt.rect.x / wt, Xl = yt.rect.y / wt, Bi = yt.rect.w / wt, ea = yt.rect.h / wt, yi = ql * Dl, Ea = Xl * pa, Zi = Bi * Dl, Ga = ea * pa, ha = Zi * Rl, ya = Ga * ja, Za = yi * Rl, ta = Ze - (Ea + Ga) * ja;
|
|
19038
19038
|
if (yt.type === W.REDACT)
|
|
19039
19039
|
E.drawRectangle({ x: Za, y: ta, width: ha, height: ya, color: Ba(0, 0, 0) });
|
|
@@ -19076,7 +19076,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19076
19076
|
}
|
|
19077
19077
|
} else if (yt.type === W.TEXT) {
|
|
19078
19078
|
const tl = yt.payload || {}, ga = tl.font === "TimesRoman" ? _o.TimesRoman : tl.font === "Courier" ? _o.Courier : _o.Helvetica, R = await z.embedFont(ga), L = Math.max(6, Number(tl.size) || 18), {
|
|
19079
|
-
r:
|
|
19079
|
+
r: I,
|
|
19080
19080
|
g: C,
|
|
19081
19081
|
b: ae
|
|
19082
19082
|
} = Do(tl.color || "#000000"), he = 2, Ae = Math.max(1, ha - 2 * he), Ne = Ro(
|
|
@@ -19091,15 +19091,15 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19091
19091
|
x: Za + he,
|
|
19092
19092
|
y: Oe,
|
|
19093
19093
|
size: L,
|
|
19094
|
-
color: Ba(
|
|
19094
|
+
color: Ba(I, C, ae)
|
|
19095
19095
|
}), Oe -= L * 1.2, Oe < ta)
|
|
19096
19096
|
break;
|
|
19097
19097
|
}
|
|
19098
19098
|
}
|
|
19099
|
-
const hi =
|
|
19099
|
+
const hi = w.value.some(
|
|
19100
19100
|
(yt) => yt.type === W.REDACT
|
|
19101
19101
|
);
|
|
19102
|
-
hi && z.removePage(F), await it(z, { updatePages: hi }),
|
|
19102
|
+
hi && z.removePage(F), await it(z, { updatePages: hi }), w.value = [], l.toast.add({
|
|
19103
19103
|
severity: "success",
|
|
19104
19104
|
summary: t("pdfTools.common.success"),
|
|
19105
19105
|
detail: t("pdfTools.pageEditor.applySuccess"),
|
|
@@ -19500,7 +19500,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19500
19500
|
])) : f("", !0),
|
|
19501
19501
|
d(A(Va)),
|
|
19502
19502
|
d(A(ie), {
|
|
19503
|
-
disabled:
|
|
19503
|
+
disabled: w.value.length === 0,
|
|
19504
19504
|
severity: "info",
|
|
19505
19505
|
class: "btn-full btn-mt-auto",
|
|
19506
19506
|
icon: "ri-check-line",
|
|
@@ -19508,7 +19508,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19508
19508
|
onClick: Hi
|
|
19509
19509
|
}, null, 8, ["disabled", "label"]),
|
|
19510
19510
|
d(A(ie), {
|
|
19511
|
-
disabled:
|
|
19511
|
+
disabled: w.value.length === 0,
|
|
19512
19512
|
severity: "warn",
|
|
19513
19513
|
class: "btn-full btn-mt-sm",
|
|
19514
19514
|
icon: "ri-arrow-go-back-line",
|
|
@@ -19523,7 +19523,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19523
19523
|
}, [
|
|
19524
19524
|
s("div", {
|
|
19525
19525
|
ref_key: "pdfCanvasWrapper",
|
|
19526
|
-
ref:
|
|
19526
|
+
ref: X,
|
|
19527
19527
|
class: "pdf-canvas-wrapper"
|
|
19528
19528
|
}, [
|
|
19529
19529
|
A(Nt) && (Z.value || m.value) ? (r(), N(A(Xi), {
|
|
@@ -19937,7 +19937,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19937
19937
|
},
|
|
19938
19938
|
emits: ["update:visible", "revertVersion"],
|
|
19939
19939
|
setup(e, { emit: t }) {
|
|
19940
|
-
const { t: l } = Tt(), i = Cl(), { isDarkMode: a } = To(), o = e, n = t, c = D(o.visible), m = D(null), p = D(null), h = D(""), Z = D(""), y = D(!1), W = D(null), T = D(null),
|
|
19940
|
+
const { t: l } = Tt(), i = Cl(), { isDarkMode: a } = To(), o = e, n = t, c = D(o.visible), m = D(null), p = D(null), h = D(""), Z = D(""), y = D(!1), W = D(null), T = D(null), w = D(null), G = $(() => {
|
|
19941
19941
|
if (!o.versions)
|
|
19942
19942
|
return [];
|
|
19943
19943
|
const Y = o.versions.map((U) => ({
|
|
@@ -19948,7 +19948,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19948
19948
|
...U,
|
|
19949
19949
|
isCurrent: S === Y.length - 1
|
|
19950
19950
|
}));
|
|
19951
|
-
}), j = $(() => G.value.filter((Y) => Y.id !== p.value)),
|
|
19951
|
+
}), j = $(() => G.value.filter((Y) => Y.id !== p.value)), X = $(() => G.value.filter((Y) => Y.id !== m.value)), M = $(() => {
|
|
19952
19952
|
switch (o.contentNode?.content?.mimeType || "") {
|
|
19953
19953
|
case "text/html":
|
|
19954
19954
|
return [Gn()];
|
|
@@ -19995,7 +19995,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
19995
19995
|
}
|
|
19996
19996
|
}
|
|
19997
19997
|
}, B = () => {
|
|
19998
|
-
if (
|
|
19998
|
+
if (w.value && (w.value.destroy(), w.value = null), !T.value || !h.value && !Z.value)
|
|
19999
19999
|
return;
|
|
20000
20000
|
const Y = a() ? jn : Tn(d0, { fallback: !0 }), U = [
|
|
20001
20001
|
In(),
|
|
@@ -20004,7 +20004,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
20004
20004
|
ai.readOnly.of(!0)
|
|
20005
20005
|
];
|
|
20006
20006
|
try {
|
|
20007
|
-
|
|
20007
|
+
w.value = new f0({
|
|
20008
20008
|
a: { doc: h.value, extensions: U },
|
|
20009
20009
|
b: { doc: Z.value, extensions: U },
|
|
20010
20010
|
parent: T.value
|
|
@@ -20044,7 +20044,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
20044
20044
|
return qe(
|
|
20045
20045
|
() => o.visible,
|
|
20046
20046
|
(Y) => {
|
|
20047
|
-
c.value = Y, Y ? V() : (
|
|
20047
|
+
c.value = Y, Y ? V() : (w.value && (w.value.destroy(), w.value = null), m.value = null, p.value = null, h.value = "", Z.value = "", W.value = null);
|
|
20048
20048
|
}
|
|
20049
20049
|
), qe([m, p], () => {
|
|
20050
20050
|
m.value && p.value && k();
|
|
@@ -20127,7 +20127,7 @@ const SA = /* @__PURE__ */ se(MA, [["render", RA], ["__scopeId", "data-v-0cfc30d
|
|
|
20127
20127
|
d(A(Ct), {
|
|
20128
20128
|
modelValue: p.value,
|
|
20129
20129
|
"onUpdate:modelValue": U[2] || (U[2] = (P) => p.value = P),
|
|
20130
|
-
options:
|
|
20130
|
+
options: X.value,
|
|
20131
20131
|
"option-label": "label",
|
|
20132
20132
|
"option-value": "id",
|
|
20133
20133
|
placeholder: Y.$t("diffViewer.selectVersionB"),
|
|
@@ -20236,7 +20236,7 @@ function VY(e = {}) {
|
|
|
20236
20236
|
const P = y[U].indexOf(S);
|
|
20237
20237
|
P > -1 && y[U].splice(P, 1);
|
|
20238
20238
|
}
|
|
20239
|
-
},
|
|
20239
|
+
}, w = (U, ...S) => {
|
|
20240
20240
|
y[U] && y[U].forEach((P) => P(...S));
|
|
20241
20241
|
}, G = (U) => new Promise((S, P) => {
|
|
20242
20242
|
if (c && c.readyState === WebSocket.OPEN) {
|
|
@@ -20246,15 +20246,15 @@ function VY(e = {}) {
|
|
|
20246
20246
|
h = U, Z = !1, l.value = bl.CONNECTING;
|
|
20247
20247
|
try {
|
|
20248
20248
|
c = new WebSocket(U), c.onopen = () => {
|
|
20249
|
-
l.value = bl.CONNECTED, o.value = 0, i.value = null, O(), Q(),
|
|
20249
|
+
l.value = bl.CONNECTED, o.value = 0, i.value = null, O(), Q(), w("onConnected"), S();
|
|
20250
20250
|
}, c.onclose = (q) => {
|
|
20251
20251
|
if (k(), a.value = q.code, l.value = bl.DISCONNECTED, q.code === 1009) {
|
|
20252
|
-
l.value = bl.ERROR,
|
|
20252
|
+
l.value = bl.ERROR, w("onDisconnected", q);
|
|
20253
20253
|
return;
|
|
20254
20254
|
}
|
|
20255
|
-
!Z && !q.wasClean && B(),
|
|
20255
|
+
!Z && !q.wasClean && B(), w("onDisconnected", q);
|
|
20256
20256
|
}, c.onerror = (q) => {
|
|
20257
|
-
i.value = q, l.value = bl.ERROR,
|
|
20257
|
+
i.value = q, l.value = bl.ERROR, w("onError", q), P(q);
|
|
20258
20258
|
}, c.onmessage = (q) => {
|
|
20259
20259
|
try {
|
|
20260
20260
|
const ce = JSON.parse(q.data);
|
|
@@ -20264,18 +20264,18 @@ function VY(e = {}) {
|
|
|
20264
20264
|
}
|
|
20265
20265
|
};
|
|
20266
20266
|
} catch (q) {
|
|
20267
|
-
i.value = q, l.value = bl.ERROR,
|
|
20267
|
+
i.value = q, l.value = bl.ERROR, w("onError", q), P(q);
|
|
20268
20268
|
}
|
|
20269
20269
|
}), j = () => {
|
|
20270
20270
|
Z = !0, k(), V(), c && (c.close(1e3, "User disconnected"), c = null), l.value = bl.DISCONNECTED, n.value = [];
|
|
20271
|
-
},
|
|
20271
|
+
}, X = (U) => {
|
|
20272
20272
|
const S = JSON.stringify(U);
|
|
20273
20273
|
return c && c.readyState === WebSocket.OPEN ? (c.send(S), !0) : (n.value.length < t.messageBufferSize ? n.value = [...n.value, S] : console.warn("[CollabWebSocket] Message buffer full, dropping message"), !1);
|
|
20274
20274
|
}, M = (U) => {
|
|
20275
|
-
U.type !== "pong" &&
|
|
20275
|
+
U.type !== "pong" && w("onMessage", U);
|
|
20276
20276
|
}, O = () => {
|
|
20277
20277
|
k(), m = setInterval(() => {
|
|
20278
|
-
c && c.readyState === WebSocket.OPEN &&
|
|
20278
|
+
c && c.readyState === WebSocket.OPEN && X({ type: "ping" });
|
|
20279
20279
|
}, t.heartbeatInterval);
|
|
20280
20280
|
}, k = () => {
|
|
20281
20281
|
m && (clearInterval(m), m = null);
|
|
@@ -20289,7 +20289,7 @@ function VY(e = {}) {
|
|
|
20289
20289
|
t.reconnectInterval * Math.pow(t.reconnectDecay, o.value - 1),
|
|
20290
20290
|
t.maxReconnectInterval
|
|
20291
20291
|
);
|
|
20292
|
-
|
|
20292
|
+
w("onReconnecting", o.value, U), p = setTimeout(() => {
|
|
20293
20293
|
h && !Z && (n.value = [], G(h).catch(() => {
|
|
20294
20294
|
}));
|
|
20295
20295
|
}, U);
|
|
@@ -20317,7 +20317,7 @@ function VY(e = {}) {
|
|
|
20317
20317
|
// Methods
|
|
20318
20318
|
connect: G,
|
|
20319
20319
|
disconnect: j,
|
|
20320
|
-
send:
|
|
20320
|
+
send: X,
|
|
20321
20321
|
isConnected: x,
|
|
20322
20322
|
resetReconnectAttempts: Y,
|
|
20323
20323
|
// Event handlers
|
|
@@ -20570,10 +20570,10 @@ function EY() {
|
|
|
20570
20570
|
const e = D(!1), t = D(null), l = D(null), i = D(null), a = D(null), o = za([]), n = za([]), c = D(0), m = D(null), p = D(!1), h = D(!1), Z = D(!1), y = D(null);
|
|
20571
20571
|
let W = null, T = null;
|
|
20572
20572
|
const {
|
|
20573
|
-
connectionState:
|
|
20573
|
+
connectionState: w,
|
|
20574
20574
|
lastCloseCode: G,
|
|
20575
20575
|
connect: j,
|
|
20576
|
-
disconnect:
|
|
20576
|
+
disconnect: X,
|
|
20577
20577
|
send: M,
|
|
20578
20578
|
on: O,
|
|
20579
20579
|
off: k,
|
|
@@ -20585,11 +20585,11 @@ function EY() {
|
|
|
20585
20585
|
const ce = (me) => {
|
|
20586
20586
|
V = me;
|
|
20587
20587
|
}, pe = $(() => o.value.length), oe = $(
|
|
20588
|
-
() =>
|
|
20588
|
+
() => w.value === bl.CONNECTED
|
|
20589
20589
|
), Xe = $(
|
|
20590
|
-
() =>
|
|
20590
|
+
() => w.value === bl.RECONNECTING
|
|
20591
20591
|
), ve = $(
|
|
20592
|
-
() =>
|
|
20592
|
+
() => w.value === bl.ERROR
|
|
20593
20593
|
), re = $(() => a.value === Ca), We = $(() => a.value === ei), xe = $(
|
|
20594
20594
|
() => o.value.filter((me) => me.role === Ca).length
|
|
20595
20595
|
), Qe = $(
|
|
@@ -20662,7 +20662,7 @@ function EY() {
|
|
|
20662
20662
|
type: "leave",
|
|
20663
20663
|
sessionId: t.value,
|
|
20664
20664
|
clientId: l.value
|
|
20665
|
-
}), k("onMessage", ke), k("onDisconnected", Nt), k("onReconnecting", Ht), k("onConnected", nt),
|
|
20665
|
+
}), k("onMessage", ke), k("onDisconnected", Nt), k("onReconnecting", Ht), k("onConnected", nt), X(), e.value = !1, t.value = null, o.value = [], n.value = [], i.value = null, a.value = null, y.value = null, W = null, T = null, q = null, Y = null, U = null, V = null, Q = null;
|
|
20666
20666
|
}
|
|
20667
20667
|
}, ft = (me) => {
|
|
20668
20668
|
t.value = me.sessionId, c.value = me.version, i.value = me.color, a.value = me.role || ei, o.value = me.peers || [], e.value = !0, ol(), S && clearInterval(S), S = setInterval(() => {
|
|
@@ -20874,7 +20874,7 @@ function EY() {
|
|
|
20874
20874
|
myRole: a,
|
|
20875
20875
|
connectedPeers: o,
|
|
20876
20876
|
remoteCursors: n,
|
|
20877
|
-
connectionState:
|
|
20877
|
+
connectionState: w,
|
|
20878
20878
|
lastError: m,
|
|
20879
20879
|
startVersion: c,
|
|
20880
20880
|
// Computed
|
|
@@ -21089,10 +21089,10 @@ const BY = Pt({
|
|
|
21089
21089
|
peerCount: y,
|
|
21090
21090
|
myRole: W,
|
|
21091
21091
|
isEditor: T,
|
|
21092
|
-
isObserver:
|
|
21092
|
+
isObserver: w,
|
|
21093
21093
|
editorCount: G,
|
|
21094
21094
|
observerCount: j,
|
|
21095
|
-
startVersion:
|
|
21095
|
+
startVersion: X,
|
|
21096
21096
|
startCollab: M,
|
|
21097
21097
|
stopCollab: O,
|
|
21098
21098
|
setEditorView: k,
|
|
@@ -21371,9 +21371,9 @@ const BY = Pt({
|
|
|
21371
21371
|
throw new Error("Missing node ID or editor view");
|
|
21372
21372
|
const te = ot(), ge = te.person?.displayName || te.person?.id || "User";
|
|
21373
21373
|
let Se, tt;
|
|
21374
|
-
if (c.value &&
|
|
21374
|
+
if (c.value && w.value) {
|
|
21375
21375
|
const el = await x();
|
|
21376
|
-
Se = el.version ||
|
|
21376
|
+
Se = el.version || X.value, tt = el.document;
|
|
21377
21377
|
} else {
|
|
21378
21378
|
const el = await M(
|
|
21379
21379
|
Y.contentNode.id,
|
|
@@ -21504,7 +21504,7 @@ const BY = Pt({
|
|
|
21504
21504
|
class: "ri-eye-fill",
|
|
21505
21505
|
"aria-hidden": "true"
|
|
21506
21506
|
}, null, -1)),
|
|
21507
|
-
s("span", sM, b(A(j) + (A(
|
|
21507
|
+
s("span", sM, b(A(j) + (A(w) ? 1 : 0)), 1)
|
|
21508
21508
|
])), [
|
|
21509
21509
|
[
|
|
21510
21510
|
Se,
|
|
@@ -22353,14 +22353,14 @@ function CM(e = {}) {
|
|
|
22353
22353
|
onPresence: [],
|
|
22354
22354
|
onError: [],
|
|
22355
22355
|
onReconnecting: []
|
|
22356
|
-
}, T = (ue, Me) => (W[ue] && W[ue].push(Me), () =>
|
|
22356
|
+
}, T = (ue, Me) => (W[ue] && W[ue].push(Me), () => w(ue, Me)), w = (ue, Me) => {
|
|
22357
22357
|
if (W[ue]) {
|
|
22358
22358
|
const de = W[ue].indexOf(Me);
|
|
22359
22359
|
de > -1 && W[ue].splice(de, 1);
|
|
22360
22360
|
}
|
|
22361
22361
|
}, G = (ue, ...Me) => {
|
|
22362
22362
|
W[ue] && W[ue].forEach((de) => de(...Me));
|
|
22363
|
-
}, j = () => String(++Z),
|
|
22363
|
+
}, j = () => String(++Z), X = () => new Promise((ue, Me) => {
|
|
22364
22364
|
if (c && c.readyState === WebSocket.OPEN) {
|
|
22365
22365
|
ue();
|
|
22366
22366
|
return;
|
|
@@ -22528,7 +22528,7 @@ function CM(e = {}) {
|
|
|
22528
22528
|
t.maxReconnectInterval
|
|
22529
22529
|
);
|
|
22530
22530
|
G("onReconnecting", a.value, ue), p = setTimeout(() => {
|
|
22531
|
-
h ||
|
|
22531
|
+
h || X().catch(() => {
|
|
22532
22532
|
});
|
|
22533
22533
|
}, ue);
|
|
22534
22534
|
}, re = () => {
|
|
@@ -22551,7 +22551,7 @@ function CM(e = {}) {
|
|
|
22551
22551
|
bufferedMessages: Pl(o),
|
|
22552
22552
|
subscribedRooms: Pl(n),
|
|
22553
22553
|
// Methods
|
|
22554
|
-
connect:
|
|
22554
|
+
connect: X,
|
|
22555
22555
|
disconnect: M,
|
|
22556
22556
|
isConnected: Qe,
|
|
22557
22557
|
isReady: xe,
|
|
@@ -22566,7 +22566,7 @@ function CM(e = {}) {
|
|
|
22566
22566
|
send: k,
|
|
22567
22567
|
// Event handlers
|
|
22568
22568
|
on: T,
|
|
22569
|
-
off:
|
|
22569
|
+
off: w
|
|
22570
22570
|
};
|
|
22571
22571
|
}
|
|
22572
22572
|
const FM = Pt({
|
|
@@ -24189,8 +24189,8 @@ const wR = /* @__PURE__ */ se($N, [["render", lz], ["__scopeId", "data-v-e8d0500
|
|
|
24189
24189
|
},
|
|
24190
24190
|
emits: ["load-view", "views-changed"],
|
|
24191
24191
|
setup(e, { emit: t }) {
|
|
24192
|
-
const l = vt, i = e, a = t, o = Cl(), n = Vi(), { t: c } = Tt(), m = D(null), p = D([]), h = D(!1), Z = D(!1), y = D(null), W = D(""), T = D(""),
|
|
24193
|
-
|
|
24192
|
+
const l = vt, i = e, a = t, o = Cl(), n = Vi(), { t: c } = Tt(), m = D(null), p = D([]), h = D(!1), Z = D(!1), y = D(null), W = D(""), T = D(""), w = D(0), G = D(10), j = $(() => i.views.slice(w.value, w.value + G.value)), X = (ve) => {
|
|
24193
|
+
w.value = ve.first, G.value = ve.rows;
|
|
24194
24194
|
};
|
|
24195
24195
|
zn("isCurrentNodeDisplayed", () => !1);
|
|
24196
24196
|
const M = [
|
|
@@ -24514,12 +24514,12 @@ const wR = /* @__PURE__ */ se($N, [["render", lz], ["__scopeId", "data-v-e8d0500
|
|
|
24514
24514
|
}, null, 8, ["files", "selected-nodes"]),
|
|
24515
24515
|
e.views.length > G.value ? (r(), N(A(Mo), {
|
|
24516
24516
|
key: 1,
|
|
24517
|
-
first:
|
|
24517
|
+
first: w.value,
|
|
24518
24518
|
rows: G.value,
|
|
24519
24519
|
"total-records": e.views.length,
|
|
24520
24520
|
"rows-per-page-options": [10, 25, 50],
|
|
24521
24521
|
template: "FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown",
|
|
24522
|
-
onPage:
|
|
24522
|
+
onPage: X
|
|
24523
24523
|
}, null, 8, ["first", "rows", "total-records"])) : f("", !0)
|
|
24524
24524
|
], 64)) : (r(), u("div", uz, [
|
|
24525
24525
|
s("p", null, b(A(c)("adminViewList.existingViews.noViewsFound")), 1)
|
|
@@ -24578,31 +24578,31 @@ const wR = /* @__PURE__ */ se($N, [["render", lz], ["__scopeId", "data-v-e8d0500
|
|
|
24578
24578
|
name: "DashboardComponent",
|
|
24579
24579
|
components: {
|
|
24580
24580
|
FavoriteList: la(
|
|
24581
|
-
() => import("./FavoriteList-
|
|
24581
|
+
() => import("./FavoriteList-C3U4TwcJ.js")
|
|
24582
24582
|
),
|
|
24583
24583
|
ActivityHistory: la(
|
|
24584
|
-
() => import("./ActivityHistory-
|
|
24584
|
+
() => import("./ActivityHistory-CFXcjH71.js")
|
|
24585
24585
|
),
|
|
24586
24586
|
ExternalApps: la(
|
|
24587
|
-
() => import("./ExternalApps-
|
|
24587
|
+
() => import("./ExternalApps-C1zs4KGU.js")
|
|
24588
24588
|
),
|
|
24589
24589
|
MarkdownComponent: la(
|
|
24590
|
-
() => import("./MarkdownComponent-
|
|
24590
|
+
() => import("./MarkdownComponent-DvqLK4q_.js")
|
|
24591
24591
|
),
|
|
24592
24592
|
BookmarksComponent: la(
|
|
24593
|
-
() => import("./BookmarksComponent-
|
|
24593
|
+
() => import("./BookmarksComponent-CmYDE0Cp.js")
|
|
24594
24594
|
),
|
|
24595
24595
|
SearchInput: la(
|
|
24596
|
-
() => import("./SearchInput-
|
|
24596
|
+
() => import("./SearchInput-aoLen7C3.js")
|
|
24597
24597
|
),
|
|
24598
24598
|
DisplayFileInDashboardComponent: la(
|
|
24599
|
-
() => import("./DisplayFileInDashboardComponent-
|
|
24599
|
+
() => import("./DisplayFileInDashboardComponent-CdFg8er7.js")
|
|
24600
24600
|
),
|
|
24601
24601
|
ChartWrapper: la(
|
|
24602
|
-
() => import("./ChartWrapper-
|
|
24602
|
+
() => import("./ChartWrapper-BmNc4SWQ.js")
|
|
24603
24603
|
),
|
|
24604
24604
|
UnknownBlockType: la(
|
|
24605
|
-
() => import("./UnknownBlockType-
|
|
24605
|
+
() => import("./UnknownBlockType-DX_fXvIW.js")
|
|
24606
24606
|
)
|
|
24607
24607
|
},
|
|
24608
24608
|
props: {
|
|
@@ -26229,14 +26229,14 @@ function uX(e, t, l, i, a, o) {
|
|
|
26229
26229
|
t[11] || (t[11] = s("i", { class: "ri-link empty-icon" }, null, -1)),
|
|
26230
26230
|
s("p", GO, b(e.$t("dashboardAdmin.externalApps.noLinks")), 1)
|
|
26231
26231
|
])) : (r(), u("div", LO, [
|
|
26232
|
-
(r(!0), u(ee, null, Ye(a.links, (
|
|
26232
|
+
(r(!0), u(ee, null, Ye(a.links, (w, G) => (r(), u("div", {
|
|
26233
26233
|
key: G,
|
|
26234
26234
|
class: "link-card"
|
|
26235
26235
|
}, [
|
|
26236
26236
|
s("div", kO, [
|
|
26237
|
-
l.config.useFavicon &&
|
|
26237
|
+
l.config.useFavicon && w.link ? (r(), u("img", {
|
|
26238
26238
|
key: 0,
|
|
26239
|
-
src: o.getFaviconUrl(
|
|
26239
|
+
src: o.getFaviconUrl(w.link),
|
|
26240
26240
|
alt: "favicon",
|
|
26241
26241
|
width: "32",
|
|
26242
26242
|
height: "32",
|
|
@@ -26244,15 +26244,15 @@ function uX(e, t, l, i, a, o) {
|
|
|
26244
26244
|
onError: t[0] || (t[0] = (...j) => o.onFaviconError && o.onFaviconError(...j))
|
|
26245
26245
|
}, null, 40, CO)) : (r(), u("i", {
|
|
26246
26246
|
key: 1,
|
|
26247
|
-
class: le([
|
|
26247
|
+
class: le([w.icon || o.getIconForType(w.type), "link-icon-large"]),
|
|
26248
26248
|
style: zt({
|
|
26249
|
-
color:
|
|
26249
|
+
color: w.color ? `#${w.color}` : "var(--p-text-color)"
|
|
26250
26250
|
})
|
|
26251
26251
|
}, null, 6))
|
|
26252
26252
|
]),
|
|
26253
26253
|
s("div", FO, [
|
|
26254
|
-
s("div", DO, b(
|
|
26255
|
-
s("div", RO, b(
|
|
26254
|
+
s("div", DO, b(w.value || o.getLabelForType(w.type)), 1),
|
|
26255
|
+
s("div", RO, b(w.link), 1)
|
|
26256
26256
|
]),
|
|
26257
26257
|
s("div", SO, [
|
|
26258
26258
|
H(d(m, {
|
|
@@ -26288,7 +26288,7 @@ function uX(e, t, l, i, a, o) {
|
|
|
26288
26288
|
]),
|
|
26289
26289
|
d(y, {
|
|
26290
26290
|
visible: a.showDialog,
|
|
26291
|
-
"onUpdate:visible": t[9] || (t[9] = (
|
|
26291
|
+
"onUpdate:visible": t[9] || (t[9] = (w) => a.showDialog = w),
|
|
26292
26292
|
header: a.editingIndex !== null ? e.$t("dashboardAdmin.externalApps.editLinkTitle") : e.$t("dashboardAdmin.externalApps.addLinkTitle"),
|
|
26293
26293
|
modal: "",
|
|
26294
26294
|
style: { width: "90vw", maxWidth: "500px" }
|
|
@@ -26297,7 +26297,7 @@ function uX(e, t, l, i, a, o) {
|
|
|
26297
26297
|
d(m, {
|
|
26298
26298
|
label: e.$t("dashboardAdmin.cancel"),
|
|
26299
26299
|
text: "",
|
|
26300
|
-
onClick: t[8] || (t[8] = (
|
|
26300
|
+
onClick: t[8] || (t[8] = (w) => a.showDialog = !1)
|
|
26301
26301
|
}, null, 8, ["label"]),
|
|
26302
26302
|
d(m, {
|
|
26303
26303
|
label: e.$t("dashboardAdmin.save"),
|
|
@@ -26311,27 +26311,27 @@ function uX(e, t, l, i, a, o) {
|
|
|
26311
26311
|
s("label", UO, b(e.$t("dashboardAdmin.externalApps.type")), 1),
|
|
26312
26312
|
d(p, {
|
|
26313
26313
|
modelValue: a.currentLink.type,
|
|
26314
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
26314
|
+
"onUpdate:modelValue": t[1] || (t[1] = (w) => a.currentLink.type = w),
|
|
26315
26315
|
options: o.availableTypes,
|
|
26316
26316
|
"option-label": "label",
|
|
26317
26317
|
"option-value": "value",
|
|
26318
26318
|
placeholder: e.$t("dashboardAdmin.externalApps.selectType"),
|
|
26319
26319
|
class: "select-full"
|
|
26320
26320
|
}, {
|
|
26321
|
-
value: g((
|
|
26322
|
-
|
|
26321
|
+
value: g((w) => [
|
|
26322
|
+
w.value ? (r(), u("div", JO, [
|
|
26323
26323
|
s("i", {
|
|
26324
|
-
class: le(o.getIconForType(
|
|
26324
|
+
class: le(o.getIconForType(w.value))
|
|
26325
26325
|
}, null, 2),
|
|
26326
|
-
s("span", null, b(o.getLabelForType(
|
|
26327
|
-
])) : (r(), u("span", PO, b(
|
|
26326
|
+
s("span", null, b(o.getLabelForType(w.value)), 1)
|
|
26327
|
+
])) : (r(), u("span", PO, b(w.placeholder), 1))
|
|
26328
26328
|
]),
|
|
26329
|
-
option: g((
|
|
26329
|
+
option: g((w) => [
|
|
26330
26330
|
s("div", HO, [
|
|
26331
26331
|
s("i", {
|
|
26332
|
-
class: le(
|
|
26332
|
+
class: le(w.option.icon)
|
|
26333
26333
|
}, null, 2),
|
|
26334
|
-
s("span", null, b(
|
|
26334
|
+
s("span", null, b(w.option.label), 1)
|
|
26335
26335
|
])
|
|
26336
26336
|
]),
|
|
26337
26337
|
_: 1
|
|
@@ -26341,7 +26341,7 @@ function uX(e, t, l, i, a, o) {
|
|
|
26341
26341
|
s("label", EO, b(e.$t("dashboardAdmin.externalApps.url")), 1),
|
|
26342
26342
|
d(h, {
|
|
26343
26343
|
modelValue: a.currentLink.link,
|
|
26344
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
26344
|
+
"onUpdate:modelValue": t[2] || (t[2] = (w) => a.currentLink.link = w),
|
|
26345
26345
|
placeholder: e.$t("dashboardAdmin.externalApps.urlPlaceholder"),
|
|
26346
26346
|
class: "input-full"
|
|
26347
26347
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -26350,7 +26350,7 @@ function uX(e, t, l, i, a, o) {
|
|
|
26350
26350
|
s("label", _O, b(e.$t("dashboardAdmin.externalApps.customName")), 1),
|
|
26351
26351
|
d(h, {
|
|
26352
26352
|
modelValue: a.currentLink.value,
|
|
26353
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
26353
|
+
"onUpdate:modelValue": t[3] || (t[3] = (w) => a.currentLink.value = w),
|
|
26354
26354
|
placeholder: e.$t("dashboardAdmin.externalApps.customNamePlaceholder"),
|
|
26355
26355
|
class: "input-full"
|
|
26356
26356
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
@@ -26362,14 +26362,14 @@ function uX(e, t, l, i, a, o) {
|
|
|
26362
26362
|
d(m, {
|
|
26363
26363
|
label: a.currentLink.icon || e.$t("dashboardAdmin.externalApps.selectIcon"),
|
|
26364
26364
|
icon: "ri-emotion-line",
|
|
26365
|
-
onClick: t[4] || (t[4] = (
|
|
26365
|
+
onClick: t[4] || (t[4] = (w) => a.showIconPicker = !0),
|
|
26366
26366
|
class: "icon-picker-btn"
|
|
26367
26367
|
}, null, 8, ["label"]),
|
|
26368
26368
|
a.currentLink.icon ? H((r(), N(m, {
|
|
26369
26369
|
key: 0,
|
|
26370
26370
|
icon: "ri-close-line",
|
|
26371
26371
|
severity: "secondary",
|
|
26372
|
-
onClick: t[5] || (t[5] = (
|
|
26372
|
+
onClick: t[5] || (t[5] = (w) => a.currentLink.icon = "")
|
|
26373
26373
|
}, null, 512)), [
|
|
26374
26374
|
[
|
|
26375
26375
|
T,
|
|
@@ -26385,7 +26385,7 @@ function uX(e, t, l, i, a, o) {
|
|
|
26385
26385
|
s("div", aX, [
|
|
26386
26386
|
d(Z, {
|
|
26387
26387
|
modelValue: a.currentLink.color,
|
|
26388
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
26388
|
+
"onUpdate:modelValue": t[6] || (t[6] = (w) => a.currentLink.color = w),
|
|
26389
26389
|
format: "hex"
|
|
26390
26390
|
}, null, 8, ["modelValue"]),
|
|
26391
26391
|
s("span", iX, "#" + b(a.currentLink.color), 1)
|
|
@@ -26402,7 +26402,7 @@ function uX(e, t, l, i, a, o) {
|
|
|
26402
26402
|
width: "32",
|
|
26403
26403
|
height: "32",
|
|
26404
26404
|
style: { "object-fit": "contain" },
|
|
26405
|
-
onError: t[7] || (t[7] = (...
|
|
26405
|
+
onError: t[7] || (t[7] = (...w) => o.onFaviconError && o.onFaviconError(...w))
|
|
26406
26406
|
}, null, 40, cX)) : (r(), u("i", {
|
|
26407
26407
|
key: 1,
|
|
26408
26408
|
class: le([a.currentLink.icon || o.getIconForType(a.currentLink.type), "preview-icon"]),
|
|
@@ -26420,7 +26420,7 @@ function uX(e, t, l, i, a, o) {
|
|
|
26420
26420
|
}, 8, ["visible", "header"]),
|
|
26421
26421
|
d(W, {
|
|
26422
26422
|
modelValue: a.showIconPicker,
|
|
26423
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
26423
|
+
"onUpdate:modelValue": t[10] || (t[10] = (w) => a.showIconPicker = w),
|
|
26424
26424
|
"current-icon": a.currentLink.icon,
|
|
26425
26425
|
onSelect: o.handleIconSelect
|
|
26426
26426
|
}, null, 8, ["modelValue", "current-icon", "onSelect"])
|
|
@@ -26841,7 +26841,7 @@ const WX = /* @__PURE__ */ se(ZX, [["render", vX], ["__scopeId", "data-v-c797734
|
|
|
26841
26841
|
class: "p-error"
|
|
26842
26842
|
}, dw = { class: "browser-footer-actions" };
|
|
26843
26843
|
function uw(e, t, l, i, a, o) {
|
|
26844
|
-
const n = v("PrimeButton"), c = v("FieldLabel"), m = v("PrimeSelect"), p = v("PrimeInputText"), h = v("PrimeFieldset"), Z = v("PrimeInputNumber"), y = v("MarkdownEditorDialog"), W = v("JsonEditorDialog"), T = v("TreeExplorer"),
|
|
26844
|
+
const n = v("PrimeButton"), c = v("FieldLabel"), m = v("PrimeSelect"), p = v("PrimeInputText"), h = v("PrimeFieldset"), Z = v("PrimeInputNumber"), y = v("MarkdownEditorDialog"), W = v("JsonEditorDialog"), T = v("TreeExplorer"), w = v("PrimeProgressSpinner"), G = v("PrimeDialog"), j = He("tooltip");
|
|
26845
26845
|
return r(), u("div", AX, [
|
|
26846
26846
|
s("div", YX, [
|
|
26847
26847
|
s("div", null, [
|
|
@@ -26853,7 +26853,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
26853
26853
|
text: "",
|
|
26854
26854
|
rounded: "",
|
|
26855
26855
|
severity: "secondary",
|
|
26856
|
-
onClick: t[0] || (t[0] = (
|
|
26856
|
+
onClick: t[0] || (t[0] = (X) => e.$emit("close"))
|
|
26857
26857
|
})
|
|
26858
26858
|
]),
|
|
26859
26859
|
s("div", zX, [
|
|
@@ -26864,7 +26864,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
26864
26864
|
}, null, 8, ["label", "help"]),
|
|
26865
26865
|
d(m, {
|
|
26866
26866
|
modelValue: a.editableBlock.type,
|
|
26867
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
26867
|
+
"onUpdate:modelValue": t[1] || (t[1] = (X) => a.editableBlock.type = X),
|
|
26868
26868
|
options: o.blockTypes,
|
|
26869
26869
|
"option-label": "label",
|
|
26870
26870
|
"option-value": "value",
|
|
@@ -26879,7 +26879,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
26879
26879
|
}, null, 8, ["label", "help"]),
|
|
26880
26880
|
d(p, {
|
|
26881
26881
|
modelValue: a.editableBlock.title,
|
|
26882
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
26882
|
+
"onUpdate:modelValue": t[2] || (t[2] = (X) => a.editableBlock.title = X),
|
|
26883
26883
|
class: "input-full",
|
|
26884
26884
|
placeholder: e.$t("dashboardAdmin.blockEditor.titlePlaceholder")
|
|
26885
26885
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -26894,8 +26894,8 @@ function uw(e, t, l, i, a, o) {
|
|
|
26894
26894
|
bookmarksJson: a.bookmarksJson,
|
|
26895
26895
|
linksJson: a.linksJson,
|
|
26896
26896
|
"onUpdate:config": o.updateConfig,
|
|
26897
|
-
"onUpdate:linksJson": t[3] || (t[3] = (
|
|
26898
|
-
onOpenMarkdownEditor: t[4] || (t[4] = (
|
|
26897
|
+
"onUpdate:linksJson": t[3] || (t[3] = (X) => a.linksJson = X),
|
|
26898
|
+
onOpenMarkdownEditor: t[4] || (t[4] = (X) => a.showMarkdownEditor = !0),
|
|
26899
26899
|
onOpenMarkdownBrowser: o.openMarkdownBrowser,
|
|
26900
26900
|
onOpenFileBrowser: o.openFileBrowser,
|
|
26901
26901
|
onOpenJsonEditor: o.openJsonEditor
|
|
@@ -26916,7 +26916,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
26916
26916
|
}, null, 8, ["label", "help"]),
|
|
26917
26917
|
d(m, {
|
|
26918
26918
|
modelValue: a.routeName,
|
|
26919
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
26919
|
+
"onUpdate:modelValue": t[5] || (t[5] = (X) => a.routeName = X),
|
|
26920
26920
|
options: o.routeOptions,
|
|
26921
26921
|
"option-label": "label",
|
|
26922
26922
|
"option-value": "value",
|
|
@@ -26942,7 +26942,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
26942
26942
|
}, null, 8, ["label", "help"]),
|
|
26943
26943
|
d(Z, {
|
|
26944
26944
|
modelValue: a.editableBlock.gridPosition.colStart,
|
|
26945
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
26945
|
+
"onUpdate:modelValue": t[6] || (t[6] = (X) => a.editableBlock.gridPosition.colStart = X),
|
|
26946
26946
|
min: 1,
|
|
26947
26947
|
class: "input-full"
|
|
26948
26948
|
}, null, 8, ["modelValue"])
|
|
@@ -26954,7 +26954,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
26954
26954
|
}, null, 8, ["label", "help"]),
|
|
26955
26955
|
d(Z, {
|
|
26956
26956
|
modelValue: a.editableBlock.gridPosition.colEnd,
|
|
26957
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
26957
|
+
"onUpdate:modelValue": t[7] || (t[7] = (X) => a.editableBlock.gridPosition.colEnd = X),
|
|
26958
26958
|
min: a.editableBlock.gridPosition.colStart + 1,
|
|
26959
26959
|
class: "input-full"
|
|
26960
26960
|
}, null, 8, ["modelValue", "min"])
|
|
@@ -26968,7 +26968,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
26968
26968
|
}, null, 8, ["label", "help"]),
|
|
26969
26969
|
d(Z, {
|
|
26970
26970
|
modelValue: a.editableBlock.gridPosition.rowStart,
|
|
26971
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
26971
|
+
"onUpdate:modelValue": t[8] || (t[8] = (X) => a.editableBlock.gridPosition.rowStart = X),
|
|
26972
26972
|
min: 1,
|
|
26973
26973
|
class: "input-full"
|
|
26974
26974
|
}, null, 8, ["modelValue"])
|
|
@@ -26980,7 +26980,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
26980
26980
|
}, null, 8, ["label", "help"]),
|
|
26981
26981
|
d(Z, {
|
|
26982
26982
|
modelValue: a.editableBlock.gridPosition.rowEnd,
|
|
26983
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
26983
|
+
"onUpdate:modelValue": t[9] || (t[9] = (X) => a.editableBlock.gridPosition.rowEnd = X),
|
|
26984
26984
|
min: a.editableBlock.gridPosition.rowStart + 1,
|
|
26985
26985
|
class: "input-full"
|
|
26986
26986
|
}, null, 8, ["modelValue", "min"])
|
|
@@ -27005,19 +27005,19 @@ function uw(e, t, l, i, a, o) {
|
|
|
27005
27005
|
]),
|
|
27006
27006
|
d(y, {
|
|
27007
27007
|
modelValue: a.showMarkdownEditor,
|
|
27008
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
27008
|
+
"onUpdate:modelValue": t[10] || (t[10] = (X) => a.showMarkdownEditor = X),
|
|
27009
27009
|
content: a.editableBlock.config?.markdown || "",
|
|
27010
27010
|
onSave: o.handleMarkdownSave
|
|
27011
27011
|
}, null, 8, ["modelValue", "content", "onSave"]),
|
|
27012
27012
|
d(W, {
|
|
27013
27013
|
modelValue: a.showJsonEditor,
|
|
27014
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
27014
|
+
"onUpdate:modelValue": t[11] || (t[11] = (X) => a.showJsonEditor = X),
|
|
27015
27015
|
content: o.currentJsonContent,
|
|
27016
27016
|
onSave: o.handleJsonSave
|
|
27017
27017
|
}, null, 8, ["modelValue", "content", "onSave"]),
|
|
27018
27018
|
d(G, {
|
|
27019
27019
|
visible: a.showMarkdownBrowser,
|
|
27020
|
-
"onUpdate:visible": t[13] || (t[13] = (
|
|
27020
|
+
"onUpdate:visible": t[13] || (t[13] = (X) => a.showMarkdownBrowser = X),
|
|
27021
27021
|
modal: "",
|
|
27022
27022
|
header: e.$t("dashboardAdmin.blockEditor.selectMarkdownFile"),
|
|
27023
27023
|
style: { width: "80rem", height: "80vh" }
|
|
@@ -27045,7 +27045,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
27045
27045
|
label: e.$t("cancel"),
|
|
27046
27046
|
severity: "secondary",
|
|
27047
27047
|
text: "",
|
|
27048
|
-
onClick: t[12] || (t[12] = (
|
|
27048
|
+
onClick: t[12] || (t[12] = (X) => a.showMarkdownBrowser = !1)
|
|
27049
27049
|
}, null, 8, ["label"]),
|
|
27050
27050
|
d(n, {
|
|
27051
27051
|
disabled: !a.selectedMarkdownFile,
|
|
@@ -27067,7 +27067,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
27067
27067
|
]),
|
|
27068
27068
|
s("div", VX, [
|
|
27069
27069
|
a.selectedMarkdownFile ? a.markdownPreviewLoading ? (r(), u("div", PX, [
|
|
27070
|
-
d(
|
|
27070
|
+
d(w)
|
|
27071
27071
|
])) : a.markdownPreviewHtml ? (r(), u("iframe", {
|
|
27072
27072
|
key: 2,
|
|
27073
27073
|
srcdoc: a.markdownPreviewHtml,
|
|
@@ -27091,7 +27091,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
27091
27091
|
}, 8, ["visible", "header"]),
|
|
27092
27092
|
d(G, {
|
|
27093
27093
|
visible: a.showFileBrowser,
|
|
27094
|
-
"onUpdate:visible": t[15] || (t[15] = (
|
|
27094
|
+
"onUpdate:visible": t[15] || (t[15] = (X) => a.showFileBrowser = X),
|
|
27095
27095
|
modal: "",
|
|
27096
27096
|
header: e.$t("dashboardAdmin.blockEditor.selectFile"),
|
|
27097
27097
|
style: { width: "50rem", height: "70vh" }
|
|
@@ -27119,7 +27119,7 @@ function uw(e, t, l, i, a, o) {
|
|
|
27119
27119
|
label: e.$t("cancel"),
|
|
27120
27120
|
severity: "secondary",
|
|
27121
27121
|
text: "",
|
|
27122
|
-
onClick: t[14] || (t[14] = (
|
|
27122
|
+
onClick: t[14] || (t[14] = (X) => a.showFileBrowser = !1)
|
|
27123
27123
|
}, null, 8, ["label"]),
|
|
27124
27124
|
d(n, {
|
|
27125
27125
|
disabled: !a.selectedFile,
|
|
@@ -27757,7 +27757,7 @@ function nI(e, t, l) {
|
|
|
27757
27757
|
}, !n.value && (n.value = requestAnimationFrame(() => {
|
|
27758
27758
|
c.value && W(c.value), n.value = null;
|
|
27759
27759
|
})));
|
|
27760
|
-
},
|
|
27760
|
+
}, w = (O) => {
|
|
27761
27761
|
const k = O.currentTarget, B = O.relatedTarget;
|
|
27762
27762
|
(!B || !k.contains(B)) && (o.value = null, c.value = null, n.value && (cancelAnimationFrame(n.value), n.value = null));
|
|
27763
27763
|
}, G = () => {
|
|
@@ -27785,7 +27785,7 @@ function nI(e, t, l) {
|
|
|
27785
27785
|
B && (B.gridPosition.colStart = o.value.colStart, B.gridPosition.colEnd = o.value.colEnd, B.gridPosition.rowStart = o.value.rowStart, B.gridPosition.rowEnd = o.value.rowEnd, k && k());
|
|
27786
27786
|
}
|
|
27787
27787
|
G();
|
|
27788
|
-
},
|
|
27788
|
+
}, X = () => {
|
|
27789
27789
|
G();
|
|
27790
27790
|
}, M = () => {
|
|
27791
27791
|
document.hidden && i.value && G();
|
|
@@ -27799,9 +27799,9 @@ function nI(e, t, l) {
|
|
|
27799
27799
|
onDragStart: Z,
|
|
27800
27800
|
onBasketDragStart: y,
|
|
27801
27801
|
onDragOver: T,
|
|
27802
|
-
onDragLeave:
|
|
27802
|
+
onDragLeave: w,
|
|
27803
27803
|
onDrop: j,
|
|
27804
|
-
onDragEnd:
|
|
27804
|
+
onDragEnd: X
|
|
27805
27805
|
};
|
|
27806
27806
|
}
|
|
27807
27807
|
function rI(e, t) {
|
|
@@ -27815,27 +27815,27 @@ function rI(e, t) {
|
|
|
27815
27815
|
onResizeMove: (h) => {
|
|
27816
27816
|
if (!l.value)
|
|
27817
27817
|
return;
|
|
27818
|
-
const Z = h.clientX - a.value, y = h.clientY - o.value, W = 100, T = 100,
|
|
27818
|
+
const Z = h.clientX - a.value, y = h.clientY - o.value, W = 100, T = 100, w = Math.round(Z / W), G = Math.round(y / T), j = t.value.find((X) => X.id === l.value.id);
|
|
27819
27819
|
if (j) {
|
|
27820
27820
|
if (i.value === "right" || i.value === "corner") {
|
|
27821
|
-
const
|
|
27821
|
+
const X = Math.max(
|
|
27822
27822
|
n.value.colStart + 1,
|
|
27823
27823
|
Math.min(
|
|
27824
|
-
n.value.colEnd +
|
|
27824
|
+
n.value.colEnd + w,
|
|
27825
27825
|
e.value.columns + 1
|
|
27826
27826
|
)
|
|
27827
27827
|
);
|
|
27828
|
-
j.gridPosition.colEnd =
|
|
27828
|
+
j.gridPosition.colEnd = X;
|
|
27829
27829
|
}
|
|
27830
27830
|
if (i.value === "bottom" || i.value === "corner") {
|
|
27831
|
-
const
|
|
27831
|
+
const X = Math.max(
|
|
27832
27832
|
n.value.rowStart + 1,
|
|
27833
27833
|
Math.min(
|
|
27834
27834
|
n.value.rowEnd + G,
|
|
27835
27835
|
e.value.rows + 1
|
|
27836
27836
|
)
|
|
27837
27837
|
);
|
|
27838
|
-
j.gridPosition.rowEnd =
|
|
27838
|
+
j.gridPosition.rowEnd = X;
|
|
27839
27839
|
}
|
|
27840
27840
|
}
|
|
27841
27841
|
},
|
|
@@ -27935,10 +27935,10 @@ const dI = {
|
|
|
27935
27935
|
setup(e, { emit: t }) {
|
|
27936
27936
|
const l = Cl(), i = Vi(), { t: a } = Tt(), o = D({ ...e.config.configJson.gridSettings }), n = D([...e.config.configJson.blocConfig]), c = D([]), m = D(null), p = D(!1), h = D(!1), Z = D(!1), y = D(!1), W = D(null), {
|
|
27937
27937
|
draggedBlock: T,
|
|
27938
|
-
draggedFromBasket:
|
|
27938
|
+
draggedFromBasket: w,
|
|
27939
27939
|
dragPreview: G,
|
|
27940
27940
|
onDragStart: j,
|
|
27941
|
-
onBasketDragStart:
|
|
27941
|
+
onBasketDragStart: X,
|
|
27942
27942
|
onDragOver: M,
|
|
27943
27943
|
onDragLeave: O,
|
|
27944
27944
|
onDrop: k,
|
|
@@ -28132,7 +28132,7 @@ ${a("dashboardAdmin.newBlockContent")}`
|
|
|
28132
28132
|
scrollContainer: W,
|
|
28133
28133
|
// Composable returns
|
|
28134
28134
|
draggedBlock: T,
|
|
28135
|
-
draggedFromBasket:
|
|
28135
|
+
draggedFromBasket: w,
|
|
28136
28136
|
dragPreview: G,
|
|
28137
28137
|
resizingBlock: V,
|
|
28138
28138
|
overlappingBlockIds: pe,
|
|
@@ -28151,7 +28151,7 @@ ${a("dashboardAdmin.newBlockContent")}`
|
|
|
28151
28151
|
duplicateBlock: Ee,
|
|
28152
28152
|
updateBlock: je,
|
|
28153
28153
|
onDragStart: j,
|
|
28154
|
-
onBasketDragStart:
|
|
28154
|
+
onBasketDragStart: X,
|
|
28155
28155
|
onDragOver: M,
|
|
28156
28156
|
onDragLeave: O,
|
|
28157
28157
|
onDrop: ft,
|
|
@@ -28168,7 +28168,7 @@ ${a("dashboardAdmin.newBlockContent")}`
|
|
|
28168
28168
|
class: "sidebar-empty"
|
|
28169
28169
|
};
|
|
28170
28170
|
function AI(e, t, l, i, a, o) {
|
|
28171
|
-
const n = v("PrimeInputNumber"), c = v("PrimeButton"), m = v("GridEditor"), p = v("BasketPanel"), h = v("MinimapPanel"), Z = v("DashboardComponent"), y = v("PrimeDialog"), W = v("BlockConfigEditor"), T = v("BlockTypeSelector"),
|
|
28171
|
+
const n = v("PrimeInputNumber"), c = v("PrimeButton"), m = v("GridEditor"), p = v("BasketPanel"), h = v("MinimapPanel"), Z = v("DashboardComponent"), y = v("PrimeDialog"), W = v("BlockConfigEditor"), T = v("BlockTypeSelector"), w = v("PrimeConfirmDialog");
|
|
28172
28172
|
return r(), u("div", uI, [
|
|
28173
28173
|
s("div", mI, [
|
|
28174
28174
|
s("div", bI, [
|
|
@@ -28312,7 +28312,7 @@ function AI(e, t, l, i, a, o) {
|
|
|
28312
28312
|
"custom-block-types": l.customBlockTypes,
|
|
28313
28313
|
onSelect: i.onBlockTypeSelected
|
|
28314
28314
|
}, null, 8, ["modelValue", "custom-block-types", "onSelect"]),
|
|
28315
|
-
d(
|
|
28315
|
+
d(w)
|
|
28316
28316
|
]);
|
|
28317
28317
|
}
|
|
28318
28318
|
const cm = /* @__PURE__ */ se(dI, [["render", AI], ["__scopeId", "data-v-13fa8349"]]), Mi = "dashboard-config.json", Ni = "dashboard.json", oo = "user-preferences.json", Wa = {
|
|
@@ -29496,7 +29496,7 @@ const oa = new rT(), cT = { class: "create-plan-actions" }, dT = {
|
|
|
29496
29496
|
Z.value = S.first, y.value = S.rows;
|
|
29497
29497
|
};
|
|
29498
29498
|
zn("isCurrentNodeDisplayed", () => !1);
|
|
29499
|
-
const
|
|
29499
|
+
const w = [
|
|
29500
29500
|
{
|
|
29501
29501
|
key: "name",
|
|
29502
29502
|
label: c("adminClassificationLauncher.existingPlans.title"),
|
|
@@ -29554,7 +29554,7 @@ const oa = new rT(), cT = { class: "create-plan-actions" }, dT = {
|
|
|
29554
29554
|
});
|
|
29555
29555
|
}
|
|
29556
29556
|
});
|
|
29557
|
-
},
|
|
29557
|
+
}, X = [
|
|
29558
29558
|
{
|
|
29559
29559
|
icon: "ri-download-line",
|
|
29560
29560
|
tooltip: c("adminClassificationLauncher.existingPlans.download"),
|
|
@@ -29779,8 +29779,8 @@ const oa = new rT(), cT = { class: "create-plan-actions" }, dT = {
|
|
|
29779
29779
|
d(Io, {
|
|
29780
29780
|
files: W.value,
|
|
29781
29781
|
"current-node": { id: "classification-plans" },
|
|
29782
|
-
"datatable-column-config":
|
|
29783
|
-
"inline-actions":
|
|
29782
|
+
"datatable-column-config": w,
|
|
29783
|
+
"inline-actions": X,
|
|
29784
29784
|
"selected-nodes": h.value,
|
|
29785
29785
|
"onUpdate:selectedNodes": P[2] || (P[2] = (q) => h.value = q),
|
|
29786
29786
|
onNavigateTo: P[3] || (P[3] = (q) => a("select-plan", q.name))
|
|
@@ -30827,7 +30827,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30827
30827
|
d(n, {
|
|
30828
30828
|
id: "name",
|
|
30829
30829
|
modelValue: a.editableField.name,
|
|
30830
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
30830
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => a.editableField.name = w),
|
|
30831
30831
|
disabled: a.isEditMode,
|
|
30832
30832
|
class: "w-full"
|
|
30833
30833
|
}, null, 8, ["modelValue", "disabled"]),
|
|
@@ -30838,7 +30838,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30838
30838
|
d(n, {
|
|
30839
30839
|
id: "description",
|
|
30840
30840
|
modelValue: a.editableField.description,
|
|
30841
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
30841
|
+
"onUpdate:modelValue": t[1] || (t[1] = (w) => a.editableField.description = w),
|
|
30842
30842
|
class: "w-full"
|
|
30843
30843
|
}, null, 8, ["modelValue"]),
|
|
30844
30844
|
s("small", rj, b(e.$t("fieldForm.description.help")), 1)
|
|
@@ -30848,7 +30848,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30848
30848
|
d(c, {
|
|
30849
30849
|
id: "optional",
|
|
30850
30850
|
modelValue: a.editableField.optional,
|
|
30851
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
30851
|
+
"onUpdate:modelValue": t[2] || (t[2] = (w) => a.editableField.optional = w)
|
|
30852
30852
|
}, null, 8, ["modelValue"]),
|
|
30853
30853
|
s("label", uj, b(e.$t("fieldForm.optional.label")), 1)
|
|
30854
30854
|
]),
|
|
@@ -30861,7 +30861,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30861
30861
|
d(n, {
|
|
30862
30862
|
id: "default-value",
|
|
30863
30863
|
modelValue: a.editableField.default,
|
|
30864
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
30864
|
+
"onUpdate:modelValue": t[3] || (t[3] = (w) => a.editableField.default = w),
|
|
30865
30865
|
class: "w-full"
|
|
30866
30866
|
}, null, 8, ["modelValue"]),
|
|
30867
30867
|
s("small", yj, b(e.$t("fieldForm.defaultValue.help")), 1)
|
|
@@ -30873,7 +30873,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30873
30873
|
d(n, {
|
|
30874
30874
|
id: "prefix",
|
|
30875
30875
|
modelValue: a.editableField.prefix,
|
|
30876
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
30876
|
+
"onUpdate:modelValue": t[4] || (t[4] = (w) => a.editableField.prefix = w),
|
|
30877
30877
|
class: "w-full"
|
|
30878
30878
|
}, null, 8, ["modelValue"]),
|
|
30879
30879
|
s("small", fj, b(e.$t("fieldForm.prefix.help")), 1)
|
|
@@ -30885,7 +30885,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30885
30885
|
d(n, {
|
|
30886
30886
|
id: "suffix",
|
|
30887
30887
|
modelValue: a.editableField.suffix,
|
|
30888
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
30888
|
+
"onUpdate:modelValue": t[5] || (t[5] = (w) => a.editableField.suffix = w),
|
|
30889
30889
|
class: "w-full"
|
|
30890
30890
|
}, null, 8, ["modelValue"]),
|
|
30891
30891
|
s("small", Nj, b(e.$t("fieldForm.suffix.help")), 1)
|
|
@@ -30898,7 +30898,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30898
30898
|
d(m, {
|
|
30899
30899
|
id: "type",
|
|
30900
30900
|
modelValue: a.editableField.type,
|
|
30901
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
30901
|
+
"onUpdate:modelValue": t[6] || (t[6] = (w) => a.editableField.type = w),
|
|
30902
30902
|
options: a.dataTypes,
|
|
30903
30903
|
placeholder: e.$t("fieldForm.dataType.placeholder"),
|
|
30904
30904
|
class: "w-full",
|
|
@@ -30911,7 +30911,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30911
30911
|
d(m, {
|
|
30912
30912
|
id: "input",
|
|
30913
30913
|
modelValue: a.editableField.input,
|
|
30914
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
30914
|
+
"onUpdate:modelValue": t[7] || (t[7] = (w) => a.editableField.input = w),
|
|
30915
30915
|
options: o.filteredInputTypes,
|
|
30916
30916
|
placeholder: e.$t("fieldForm.inputType.placeholder"),
|
|
30917
30917
|
class: "w-full",
|
|
@@ -30924,7 +30924,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30924
30924
|
d(m, {
|
|
30925
30925
|
id: "source",
|
|
30926
30926
|
modelValue: a.editableField.source,
|
|
30927
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
30927
|
+
"onUpdate:modelValue": t[8] || (t[8] = (w) => a.editableField.source = w),
|
|
30928
30928
|
options: o.sourceOptions,
|
|
30929
30929
|
"option-label": "label",
|
|
30930
30930
|
"option-value": "value",
|
|
@@ -30940,7 +30940,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30940
30940
|
d(n, {
|
|
30941
30941
|
id: "regex",
|
|
30942
30942
|
modelValue: a.editableField.regex,
|
|
30943
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
30943
|
+
"onUpdate:modelValue": t[9] || (t[9] = (w) => a.editableField.regex = w),
|
|
30944
30944
|
class: "w-full"
|
|
30945
30945
|
}, null, 8, ["modelValue"]),
|
|
30946
30946
|
s("small", Dj, b(e.$t("fieldForm.stringConstraints.regex.help")), 1)
|
|
@@ -30952,7 +30952,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30952
30952
|
d(n, {
|
|
30953
30953
|
id: "regex-test",
|
|
30954
30954
|
modelValue: a.regexTestString,
|
|
30955
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
30955
|
+
"onUpdate:modelValue": t[10] || (t[10] = (w) => a.regexTestString = w),
|
|
30956
30956
|
placeholder: e.$t("fieldForm.stringConstraints.regexTester.placeholder"),
|
|
30957
30957
|
class: "w-full"
|
|
30958
30958
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
@@ -30981,7 +30981,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30981
30981
|
d(Z, {
|
|
30982
30982
|
id: "default",
|
|
30983
30983
|
modelValue: a.editableField.default,
|
|
30984
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
30984
|
+
"onUpdate:modelValue": t[11] || (t[11] = (w) => a.editableField.default = w),
|
|
30985
30985
|
class: "w-full"
|
|
30986
30986
|
}, null, 8, ["modelValue"])
|
|
30987
30987
|
])
|
|
@@ -30992,7 +30992,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
30992
30992
|
d(Z, {
|
|
30993
30993
|
id: "min",
|
|
30994
30994
|
modelValue: a.editableField.min,
|
|
30995
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
30995
|
+
"onUpdate:modelValue": t[12] || (t[12] = (w) => a.editableField.min = w),
|
|
30996
30996
|
class: "w-full"
|
|
30997
30997
|
}, null, 8, ["modelValue"])
|
|
30998
30998
|
])
|
|
@@ -31003,7 +31003,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
31003
31003
|
d(Z, {
|
|
31004
31004
|
id: "max",
|
|
31005
31005
|
modelValue: a.editableField.max,
|
|
31006
|
-
"onUpdate:modelValue": t[13] || (t[13] = (
|
|
31006
|
+
"onUpdate:modelValue": t[13] || (t[13] = (w) => a.editableField.max = w),
|
|
31007
31007
|
class: "w-full"
|
|
31008
31008
|
}, null, 8, ["modelValue"])
|
|
31009
31009
|
])
|
|
@@ -31015,7 +31015,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
31015
31015
|
d(y, {
|
|
31016
31016
|
id: "values",
|
|
31017
31017
|
modelValue: a.valuesAsString,
|
|
31018
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
31018
|
+
"onUpdate:modelValue": t[14] || (t[14] = (w) => a.valuesAsString = w),
|
|
31019
31019
|
rows: "5",
|
|
31020
31020
|
class: "w-full"
|
|
31021
31021
|
}, null, 8, ["modelValue"]),
|
|
@@ -31029,7 +31029,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
31029
31029
|
d(m, {
|
|
31030
31030
|
id: "search-lang",
|
|
31031
31031
|
modelValue: a.editableField.search.lang,
|
|
31032
|
-
"onUpdate:modelValue": t[15] || (t[15] = (
|
|
31032
|
+
"onUpdate:modelValue": t[15] || (t[15] = (w) => a.editableField.search.lang = w),
|
|
31033
31033
|
options: a.searchLanguages,
|
|
31034
31034
|
class: "w-full"
|
|
31035
31035
|
}, null, 8, ["modelValue", "options"])
|
|
@@ -31039,7 +31039,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
31039
31039
|
d(y, {
|
|
31040
31040
|
id: "search-query",
|
|
31041
31041
|
modelValue: a.editableField.search.query,
|
|
31042
|
-
"onUpdate:modelValue": t[16] || (t[16] = (
|
|
31042
|
+
"onUpdate:modelValue": t[16] || (t[16] = (w) => a.editableField.search.query = w),
|
|
31043
31043
|
rows: "3",
|
|
31044
31044
|
class: "w-full"
|
|
31045
31045
|
}, null, 8, ["modelValue"])
|
|
@@ -31049,7 +31049,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
31049
31049
|
d(n, {
|
|
31050
31050
|
id: "search-value",
|
|
31051
31051
|
modelValue: a.editableField.search.valueField,
|
|
31052
|
-
"onUpdate:modelValue": t[17] || (t[17] = (
|
|
31052
|
+
"onUpdate:modelValue": t[17] || (t[17] = (w) => a.editableField.search.valueField = w),
|
|
31053
31053
|
class: "w-full"
|
|
31054
31054
|
}, null, 8, ["modelValue"])
|
|
31055
31055
|
]),
|
|
@@ -31063,7 +31063,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
31063
31063
|
a.testResults.length > 0 ? (r(), u("div", cG, [
|
|
31064
31064
|
s("h6", null, b(e.$t("fieldForm.search.testResults.title")), 1),
|
|
31065
31065
|
s("ul", dG, [
|
|
31066
|
-
(r(!0), u(ee, null, Ye(a.testResults, (
|
|
31066
|
+
(r(!0), u(ee, null, Ye(a.testResults, (w, G) => (r(), u("li", { key: G }, b(w), 1))), 128))
|
|
31067
31067
|
])
|
|
31068
31068
|
])) : f("", !0),
|
|
31069
31069
|
a.testError ? (r(), N(T, {
|
|
@@ -31084,7 +31084,7 @@ function hG(e, t, l, i, a, o) {
|
|
|
31084
31084
|
d(n, {
|
|
31085
31085
|
id: "metadata",
|
|
31086
31086
|
modelValue: a.editableField.metadata,
|
|
31087
|
-
"onUpdate:modelValue": t[18] || (t[18] = (
|
|
31087
|
+
"onUpdate:modelValue": t[18] || (t[18] = (w) => a.editableField.metadata = w),
|
|
31088
31088
|
class: "w-full"
|
|
31089
31089
|
}, null, 8, ["modelValue"]),
|
|
31090
31090
|
s("small", pG, b(e.$t("fieldForm.parentConfig.metadata.help")), 1)
|
|
@@ -32534,7 +32534,7 @@ const X7 = /* @__PURE__ */ se(y7, [["render", O7], ["__scopeId", "data-v-83d7a41
|
|
|
32534
32534
|
for: "categoryDisplay"
|
|
32535
32535
|
};
|
|
32536
32536
|
function eL(e, t, l, i, a, o) {
|
|
32537
|
-
const n = v("PrimeButton"), c = v("PrimeTab"), m = v("PrimeTabList"), p = v("PrimeInputText"), h = v("PrimeColumn"), Z = v("PrimeTag"), y = v("PrimeDataTable"), W = v("PrimeTabPanel"), T = v("PrimeTabPanels"),
|
|
32537
|
+
const n = v("PrimeButton"), c = v("PrimeTab"), m = v("PrimeTabList"), p = v("PrimeInputText"), h = v("PrimeColumn"), Z = v("PrimeTag"), y = v("PrimeDataTable"), W = v("PrimeTabPanel"), T = v("PrimeTabPanels"), w = v("PrimeTabs"), G = v("PrimeCard"), j = v("NatureForm"), X = v("PrimeDialog"), M = v("FieldForm"), O = v("EmplacementForm"), k = v("PrimeMultiSelect"), B = v("ViewSelectorPopup"), V = v("DictionaryForm"), Q = v("LexiconForm"), x = v("PrimeConfirmDialog");
|
|
32538
32538
|
return r(), u("div", T7, [
|
|
32539
32539
|
d(G, null, {
|
|
32540
32540
|
title: g(() => [
|
|
@@ -32566,7 +32566,7 @@ function eL(e, t, l, i, a, o) {
|
|
|
32566
32566
|
s("p", null, b(e.$t("adminClassificationPage.loading")), 1)
|
|
32567
32567
|
])) : f("", !0),
|
|
32568
32568
|
!a.loading && a.planContent ? (r(), u("div", C7, [
|
|
32569
|
-
d(
|
|
32569
|
+
d(w, { value: 0 }, {
|
|
32570
32570
|
default: g(() => [
|
|
32571
32571
|
d(m, null, {
|
|
32572
32572
|
default: g(() => [
|
|
@@ -33337,7 +33337,7 @@ function eL(e, t, l, i, a, o) {
|
|
|
33337
33337
|
]),
|
|
33338
33338
|
_: 1
|
|
33339
33339
|
}),
|
|
33340
|
-
d(
|
|
33340
|
+
d(X, {
|
|
33341
33341
|
visible: a.displayNatureDialog,
|
|
33342
33342
|
"onUpdate:visible": t[10] || (t[10] = (Y) => a.displayNatureDialog = Y),
|
|
33343
33343
|
header: a.dialogTitle,
|
|
@@ -33372,7 +33372,7 @@ function eL(e, t, l, i, a, o) {
|
|
|
33372
33372
|
]),
|
|
33373
33373
|
_: 1
|
|
33374
33374
|
}, 8, ["visible", "header"]),
|
|
33375
|
-
d(
|
|
33375
|
+
d(X, {
|
|
33376
33376
|
visible: a.displayFieldDialog,
|
|
33377
33377
|
"onUpdate:visible": t[13] || (t[13] = (Y) => a.displayFieldDialog = Y),
|
|
33378
33378
|
header: a.dialogTitle,
|
|
@@ -33405,7 +33405,7 @@ function eL(e, t, l, i, a, o) {
|
|
|
33405
33405
|
]),
|
|
33406
33406
|
_: 1
|
|
33407
33407
|
}, 8, ["visible", "header"]),
|
|
33408
|
-
d(
|
|
33408
|
+
d(X, {
|
|
33409
33409
|
visible: a.displayEmplacementDialog,
|
|
33410
33410
|
"onUpdate:visible": t[16] || (t[16] = (Y) => a.displayEmplacementDialog = Y),
|
|
33411
33411
|
header: a.dialogTitle,
|
|
@@ -33436,7 +33436,7 @@ function eL(e, t, l, i, a, o) {
|
|
|
33436
33436
|
]),
|
|
33437
33437
|
_: 1
|
|
33438
33438
|
}, 8, ["visible", "header"]),
|
|
33439
|
-
d(
|
|
33439
|
+
d(X, {
|
|
33440
33440
|
visible: a.displayCategoryDialog,
|
|
33441
33441
|
"onUpdate:visible": t[21] || (t[21] = (Y) => a.displayCategoryDialog = Y),
|
|
33442
33442
|
header: a.dialogTitle,
|
|
@@ -33503,7 +33503,7 @@ function eL(e, t, l, i, a, o) {
|
|
|
33503
33503
|
readonly: !a.canEdit,
|
|
33504
33504
|
"onUpdate:selectedViews": o.onViewsUpdated
|
|
33505
33505
|
}, null, 8, ["visible", "selectedViews", "availableViews", "loading", "readonly", "onUpdate:selectedViews"]),
|
|
33506
|
-
d(
|
|
33506
|
+
d(X, {
|
|
33507
33507
|
visible: a.displayDictionaryDialog,
|
|
33508
33508
|
"onUpdate:visible": t[25] || (t[25] = (Y) => a.displayDictionaryDialog = Y),
|
|
33509
33509
|
header: a.dialogTitle,
|
|
@@ -33534,7 +33534,7 @@ function eL(e, t, l, i, a, o) {
|
|
|
33534
33534
|
]),
|
|
33535
33535
|
_: 1
|
|
33536
33536
|
}, 8, ["visible", "header"]),
|
|
33537
|
-
d(
|
|
33537
|
+
d(X, {
|
|
33538
33538
|
visible: a.displayLexiconDialog,
|
|
33539
33539
|
"onUpdate:visible": t[28] || (t[28] = (Y) => a.displayLexiconDialog = Y),
|
|
33540
33540
|
header: a.dialogTitle,
|
|
@@ -33727,7 +33727,7 @@ function lL({
|
|
|
33727
33727
|
"classificationPlan.validationRegexError",
|
|
33728
33728
|
{ regex: S.regex }
|
|
33729
33729
|
));
|
|
33730
|
-
},
|
|
33730
|
+
}, w = (S, P) => {
|
|
33731
33731
|
clearTimeout(W), W = setTimeout(() => {
|
|
33732
33732
|
T(S, P);
|
|
33733
33733
|
}, 500);
|
|
@@ -33738,7 +33738,7 @@ function lL({
|
|
|
33738
33738
|
S,
|
|
33739
33739
|
t.value,
|
|
33740
33740
|
e.value?.FIELDS || []
|
|
33741
|
-
),
|
|
33741
|
+
), X = $(() => {
|
|
33742
33742
|
if (!l.value || !e.value?.FIELDS)
|
|
33743
33743
|
return [];
|
|
33744
33744
|
const S = /* @__PURE__ */ new Set();
|
|
@@ -33892,7 +33892,7 @@ function lL({
|
|
|
33892
33892
|
}, Y = $(() => e.value?.DICTIONARIES || []), U = $(() => e.value?.LEXICONS || []);
|
|
33893
33893
|
return {
|
|
33894
33894
|
// Fields
|
|
33895
|
-
currentFields:
|
|
33895
|
+
currentFields: X,
|
|
33896
33896
|
requiredFields: O,
|
|
33897
33897
|
isFieldRequired: k,
|
|
33898
33898
|
// Summary
|
|
@@ -33910,7 +33910,7 @@ function lL({
|
|
|
33910
33910
|
// Validation
|
|
33911
33911
|
validationErrors: y,
|
|
33912
33912
|
validateField: T,
|
|
33913
|
-
debounceValidate:
|
|
33913
|
+
debounceValidate: w,
|
|
33914
33914
|
// Dictionaries / Lexicons
|
|
33915
33915
|
dictionaries: Y,
|
|
33916
33916
|
lexicons: U,
|
|
@@ -33944,7 +33944,7 @@ const ns = "__ALL_CATEGORIES__", hn = "__NO_CATEGORY__", co = "__NO_NATURE__", a
|
|
|
33944
33944
|
label: l("classificationPlan.allCategories"),
|
|
33945
33945
|
value: ns
|
|
33946
33946
|
},
|
|
33947
|
-
...e.categories.map((
|
|
33947
|
+
...e.categories.map((w) => ({ label: w.label, value: w.id })),
|
|
33948
33948
|
{ label: l("classificationPlan.noCategory"), value: hn }
|
|
33949
33949
|
]), c = $(() => o.value === ns ? e.natures : o.value === hn ? e.natures.filter(
|
|
33950
33950
|
(T) => !T.categories || T.categories.length === 0
|
|
@@ -33953,15 +33953,15 @@ const ns = "__ALL_CATEGORIES__", hn = "__NO_CATEGORY__", co = "__NO_NATURE__", a
|
|
|
33953
33953
|
)), m = $(() => {
|
|
33954
33954
|
const T = i.value.toLowerCase().trim();
|
|
33955
33955
|
return T ? c.value.filter(
|
|
33956
|
-
(
|
|
33956
|
+
(w) => w.name.toLowerCase().includes(T) || w.code.toLowerCase().includes(T)
|
|
33957
33957
|
) : c.value;
|
|
33958
33958
|
}), p = $(() => ({
|
|
33959
33959
|
code: co,
|
|
33960
33960
|
name: l("classificationPlan.noNature"),
|
|
33961
33961
|
icon: "ri-file-line"
|
|
33962
33962
|
})), h = $(() => {
|
|
33963
|
-
const T = [...m.value],
|
|
33964
|
-
return e.allowNoNature && !
|
|
33963
|
+
const T = [...m.value], w = i.value.trim().length > 0;
|
|
33964
|
+
return e.allowNoNature && !w && T.unshift(p.value), T;
|
|
33965
33965
|
});
|
|
33966
33966
|
return {
|
|
33967
33967
|
t: l,
|
|
@@ -33976,8 +33976,8 @@ const ns = "__ALL_CATEGORIES__", hn = "__NO_CATEGORY__", co = "__NO_NATURE__", a
|
|
|
33976
33976
|
T.data.code === co ? t("select-no-nature") : t("update:modelValue", T.data.code);
|
|
33977
33977
|
},
|
|
33978
33978
|
getCategoryLabel: (T) => {
|
|
33979
|
-
const
|
|
33980
|
-
return
|
|
33979
|
+
const w = e.categories.find((G) => G.id === T);
|
|
33980
|
+
return w ? w.label : T;
|
|
33981
33981
|
},
|
|
33982
33982
|
NO_NATURE_CODE: co
|
|
33983
33983
|
};
|
|
@@ -34203,7 +34203,7 @@ const hL = /* @__PURE__ */ se(aL, [["render", pL], ["__scopeId", "data-v-efa0834
|
|
|
34203
34203
|
class: "p-error"
|
|
34204
34204
|
};
|
|
34205
34205
|
function NL(e, t, l, i, a, o) {
|
|
34206
|
-
const n = v("PrimeDatePicker"), c = v("PrimeInputNumber"), m = v("PrimeKnob"), p = v("PrimeCheckbox"), h = v("PrimeToggleSwitch"), Z = v("PrimeDropdown"), y = v("PrimeMultiSelect"), W = v("PrimeSelectButton"), T = v("PrimeInputChips"),
|
|
34206
|
+
const n = v("PrimeDatePicker"), c = v("PrimeInputNumber"), m = v("PrimeKnob"), p = v("PrimeCheckbox"), h = v("PrimeToggleSwitch"), Z = v("PrimeDropdown"), y = v("PrimeMultiSelect"), W = v("PrimeSelectButton"), T = v("PrimeInputChips"), w = v("PrimeRating"), G = v("PrimePassword"), j = v("PrimeTextarea"), X = v("PrimeInputText");
|
|
34207
34207
|
return r(!0), u(ee, null, Ye(l.fields, (M) => (r(), u("div", {
|
|
34208
34208
|
key: M.name,
|
|
34209
34209
|
class: "form-field"
|
|
@@ -34311,7 +34311,7 @@ function NL(e, t, l, i, a, o) {
|
|
|
34311
34311
|
modelValue: l.modelValue[M.name],
|
|
34312
34312
|
disabled: l.disabledFields.has(M.name),
|
|
34313
34313
|
"onUpdate:modelValue": (O) => i.updateField(M.name, O)
|
|
34314
|
-
}, null, 8, ["id", "modelValue", "disabled", "onUpdate:modelValue"])) : M.input === "rating" ? (r(), N(
|
|
34314
|
+
}, null, 8, ["id", "modelValue", "disabled", "onUpdate:modelValue"])) : M.input === "rating" ? (r(), N(w, {
|
|
34315
34315
|
key: 13,
|
|
34316
34316
|
id: M.name,
|
|
34317
34317
|
modelValue: l.modelValue[M.name],
|
|
@@ -34330,14 +34330,14 @@ function NL(e, t, l, i, a, o) {
|
|
|
34330
34330
|
disabled: l.disabledFields.has(M.name),
|
|
34331
34331
|
"onUpdate:modelValue": (O) => i.updateField(M.name, O)
|
|
34332
34332
|
}, null, 8, ["id", "modelValue", "disabled", "onUpdate:modelValue"])) : M.input === "parent" ? (r(), u("div", vL, [
|
|
34333
|
-
d(
|
|
34333
|
+
d(X, {
|
|
34334
34334
|
id: M.name,
|
|
34335
34335
|
modelValue: l.modelValue[M.name],
|
|
34336
34336
|
disabled: "",
|
|
34337
34337
|
class: "w-full"
|
|
34338
34338
|
}, null, 8, ["id", "modelValue"]),
|
|
34339
34339
|
l.modelValue[M.name] ? f("", !0) : (r(), u("small", WL, b(i.t("classificationPlan.parentFieldNotFound")), 1))
|
|
34340
|
-
])) : (r(), N(
|
|
34340
|
+
])) : (r(), N(X, {
|
|
34341
34341
|
key: 17,
|
|
34342
34342
|
id: M.name,
|
|
34343
34343
|
modelValue: l.modelValue[M.name],
|
|
@@ -34440,7 +34440,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34440
34440
|
"upload-complete"
|
|
34441
34441
|
],
|
|
34442
34442
|
setup(e, { emit: t }) {
|
|
34443
|
-
const l = at, i = ie, a = li, o = I0, n = Ja, c = Sn, m = xn, p = Vn, h = Wl, Z = fl, y = Ct, W = Xa, T = ki,
|
|
34443
|
+
const l = at, i = ie, a = li, o = I0, n = Ja, c = Sn, m = xn, p = Vn, h = Wl, Z = fl, y = Ct, W = Xa, T = ki, w = Ci, G = Na, j = T0, X = Va, M = jl, O = Ve, k = Al, B = Si, V = e, Q = t, { t: x } = Tt(), Y = Cl(), U = $t(), S = Ce(), P = $(
|
|
34444
34444
|
() => S.CLASSIFICATION_PLAN_ALLOW_NO_NATURE === !0
|
|
34445
34445
|
), q = $({
|
|
34446
34446
|
get: () => V.inline || V.visible,
|
|
@@ -34500,10 +34500,10 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34500
34500
|
selectedNature: dl,
|
|
34501
34501
|
destinationNodeName: Zl
|
|
34502
34502
|
}), te = (R) => {
|
|
34503
|
-
const L = Kl.value.find((
|
|
34503
|
+
const L = Kl.value.find((I) => I.id === R);
|
|
34504
34504
|
return L ? L.entries || [] : [];
|
|
34505
34505
|
}, ge = (R) => {
|
|
34506
|
-
const L = Ml.value.find((
|
|
34506
|
+
const L = Ml.value.find((I) => I.id === R);
|
|
34507
34507
|
return L ? L.values || [] : [];
|
|
34508
34508
|
}, Se = D("row"), tt = $(() => ne.value.some((R) => ma(R))), el = D(
|
|
34509
34509
|
S.CLASSIFICATION_PLAN_FULL_VIEW_THRESHOLD || 5
|
|
@@ -34522,7 +34522,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34522
34522
|
return R.categoryId || "__unassigned__";
|
|
34523
34523
|
}
|
|
34524
34524
|
function mi(R) {
|
|
34525
|
-
return R.categoryId ? zl.value.find((
|
|
34525
|
+
return R.categoryId ? zl.value.find((I) => I.id === R.categoryId)?.label || R.categoryId : x("classificationPlan.multiFile.unassigned");
|
|
34526
34526
|
}
|
|
34527
34527
|
function Ft(R) {
|
|
34528
34528
|
return ne.value.indexOf(R);
|
|
@@ -34534,13 +34534,13 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34534
34534
|
const ae = gl(C);
|
|
34535
34535
|
L.has(ae) || L.set(ae, []), L.get(ae).push(C);
|
|
34536
34536
|
}
|
|
34537
|
-
const
|
|
34538
|
-
L.has("__unassigned__") && (
|
|
34537
|
+
const I = [];
|
|
34538
|
+
L.has("__unassigned__") && (I.push(...L.get("__unassigned__")), L.delete("__unassigned__"));
|
|
34539
34539
|
for (const C of zl.value)
|
|
34540
|
-
L.has(C.id) && (
|
|
34540
|
+
L.has(C.id) && (I.push(...L.get(C.id)), L.delete(C.id));
|
|
34541
34541
|
for (const C of L.values())
|
|
34542
|
-
|
|
34543
|
-
return
|
|
34542
|
+
I.push(...C);
|
|
34543
|
+
return I;
|
|
34544
34544
|
});
|
|
34545
34545
|
qe(
|
|
34546
34546
|
() => ne.value.map(gl).join(","),
|
|
@@ -34556,11 +34556,11 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34556
34556
|
}), qe(Ue, (R) => {
|
|
34557
34557
|
if (!R) {
|
|
34558
34558
|
const L = new Set(
|
|
34559
|
-
ne.value.map((
|
|
34559
|
+
ne.value.map((I) => I.categoryId).filter(Boolean)
|
|
34560
34560
|
);
|
|
34561
34561
|
if (_e.value = L.size === 1 ? [...L][0] : null, _e.value)
|
|
34562
|
-
for (const
|
|
34563
|
-
|
|
34562
|
+
for (const I of ne.value)
|
|
34563
|
+
I.categoryId = _e.value;
|
|
34564
34564
|
}
|
|
34565
34565
|
});
|
|
34566
34566
|
const ua = $(
|
|
@@ -34618,9 +34618,9 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34618
34618
|
return he.push(V.currentNode.name), he.join("/");
|
|
34619
34619
|
}
|
|
34620
34620
|
}
|
|
34621
|
-
const L = R.split("/"),
|
|
34622
|
-
if (
|
|
34623
|
-
const C = L.slice(
|
|
34621
|
+
const L = R.split("/"), I = L.indexOf("documentLibrary");
|
|
34622
|
+
if (I !== -1) {
|
|
34623
|
+
const C = L.slice(I + 1);
|
|
34624
34624
|
return C.push(V.currentNode.name), C.join("/");
|
|
34625
34625
|
}
|
|
34626
34626
|
return R + "/" + V.currentNode.name;
|
|
@@ -34631,18 +34631,18 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34631
34631
|
if (Ao?.convertBytesToSize)
|
|
34632
34632
|
return Ao.convertBytesToSize(R) || "-";
|
|
34633
34633
|
const L = ["B", "KB", "MB", "GB"];
|
|
34634
|
-
let
|
|
34635
|
-
for (; C >= 1024 &&
|
|
34636
|
-
C /= 1024,
|
|
34637
|
-
return `${C.toFixed(1)} ${L[
|
|
34634
|
+
let I = 0, C = R;
|
|
34635
|
+
for (; C >= 1024 && I < L.length - 1; )
|
|
34636
|
+
C /= 1024, I++;
|
|
34637
|
+
return `${C.toFixed(1)} ${L[I]}`;
|
|
34638
34638
|
}
|
|
34639
34639
|
function Hi(R) {
|
|
34640
|
-
return R ? jt.value.find((
|
|
34640
|
+
return R ? jt.value.find((I) => I.code === R)?.name || R : null;
|
|
34641
34641
|
}
|
|
34642
34642
|
function bi(R) {
|
|
34643
34643
|
let L;
|
|
34644
34644
|
return R ? L = jt.value.filter(
|
|
34645
|
-
(
|
|
34645
|
+
(I) => I.categories && I.categories.includes(R)
|
|
34646
34646
|
) : L = jt.value, P.value && !ce.value && !oe.value ? [
|
|
34647
34647
|
{ code: ll, name: x("classificationPlan.noNature") },
|
|
34648
34648
|
...L
|
|
@@ -34667,8 +34667,8 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34667
34667
|
const L = ne.value[R];
|
|
34668
34668
|
if (!L?.natureCode)
|
|
34669
34669
|
return {};
|
|
34670
|
-
const
|
|
34671
|
-
if (!
|
|
34670
|
+
const I = jt.value.find((pt) => pt.code === L.natureCode);
|
|
34671
|
+
if (!I?.metadata) {
|
|
34672
34672
|
const pt = S.CLASSIFICATION_PLAN_NATURE_CODE_PROPERTY;
|
|
34673
34673
|
return pt ? { [pt]: L.natureCode } : {};
|
|
34674
34674
|
}
|
|
@@ -34677,7 +34677,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34677
34677
|
pt.properties && Object.assign(ae, pt.properties);
|
|
34678
34678
|
});
|
|
34679
34679
|
const Ae = {}, Ne = L.file.name, Oe = Ne.lastIndexOf("."), Je = Oe > 0 ? Ne.substring(Oe) : "";
|
|
34680
|
-
for (const [pt, Vt] of Object.entries(
|
|
34680
|
+
for (const [pt, Vt] of Object.entries(I.metadata)) {
|
|
34681
34681
|
const Bt = Object.keys(Vt).find((kt) => kt !== "required"), ml = Vt[Bt];
|
|
34682
34682
|
switch (Bt) {
|
|
34683
34683
|
case "value":
|
|
@@ -34713,11 +34713,11 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34713
34713
|
const L = ne.value[R];
|
|
34714
34714
|
if (!L?.natureCode)
|
|
34715
34715
|
return [];
|
|
34716
|
-
const
|
|
34717
|
-
if (!
|
|
34716
|
+
const I = jt.value.find((ae) => ae.code === L.natureCode);
|
|
34717
|
+
if (!I?.emplacement || !je.value?.EMPLACEMENT)
|
|
34718
34718
|
return [];
|
|
34719
34719
|
const C = je.value?.FIELDS || [];
|
|
34720
|
-
return
|
|
34720
|
+
return I.emplacement.map((ae) => {
|
|
34721
34721
|
const he = je.value.EMPLACEMENT.find((Je) => Je.code === ae);
|
|
34722
34722
|
if (!he)
|
|
34723
34723
|
return { name: `[${ae}]` };
|
|
@@ -34769,17 +34769,17 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34769
34769
|
return !1;
|
|
34770
34770
|
if (L.natureCode === ll)
|
|
34771
34771
|
return !0;
|
|
34772
|
-
const
|
|
34773
|
-
if (!
|
|
34772
|
+
const I = jt.value.find((Ne) => Ne.code === L.natureCode);
|
|
34773
|
+
if (!I)
|
|
34774
34774
|
return !1;
|
|
34775
34775
|
const C = /* @__PURE__ */ new Set();
|
|
34776
|
-
if (
|
|
34777
|
-
for (const [, Ne] of Object.entries(
|
|
34776
|
+
if (I.metadata)
|
|
34777
|
+
for (const [, Ne] of Object.entries(I.metadata))
|
|
34778
34778
|
Ne.required && Ne.field && C.add(Ne.field), Ne.template && Dt(Ne.template).forEach(
|
|
34779
34779
|
(Oe) => C.add(Oe)
|
|
34780
34780
|
);
|
|
34781
|
-
if (
|
|
34782
|
-
for (const Ne of
|
|
34781
|
+
if (I.emplacement && je.value?.EMPLACEMENT)
|
|
34782
|
+
for (const Ne of I.emplacement) {
|
|
34783
34783
|
const Oe = je.value.EMPLACEMENT.find((Je) => Je.code === Ne);
|
|
34784
34784
|
if (Oe?.metadata)
|
|
34785
34785
|
for (const [, Je] of Object.entries(Oe.metadata))
|
|
@@ -34805,64 +34805,64 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34805
34805
|
const L = jt.value.find((C) => C.code === R);
|
|
34806
34806
|
if (!L)
|
|
34807
34807
|
return [];
|
|
34808
|
-
const
|
|
34808
|
+
const I = /* @__PURE__ */ new Set();
|
|
34809
34809
|
if (L.metadata)
|
|
34810
34810
|
for (const C of Object.values(L.metadata))
|
|
34811
|
-
C.field &&
|
|
34811
|
+
C.field && I.add(C.field), C.template && Dt(C.template).forEach((ae) => I.add(ae));
|
|
34812
34812
|
if (L.emplacement && je.value.EMPLACEMENT)
|
|
34813
34813
|
for (const C of L.emplacement) {
|
|
34814
34814
|
const ae = je.value.EMPLACEMENT.find((he) => he.code === C);
|
|
34815
34815
|
if (ae?.metadata)
|
|
34816
34816
|
for (const he of Object.values(ae.metadata))
|
|
34817
|
-
he.field &&
|
|
34818
|
-
(Ae) =>
|
|
34817
|
+
he.field && I.add(he.field), he.template && Dt(he.template).forEach(
|
|
34818
|
+
(Ae) => I.add(Ae)
|
|
34819
34819
|
);
|
|
34820
34820
|
}
|
|
34821
|
-
return je.value.FIELDS.filter((C) =>
|
|
34821
|
+
return je.value.FIELDS.filter((C) => I.has(C.name));
|
|
34822
34822
|
}
|
|
34823
34823
|
function Qi(R) {
|
|
34824
34824
|
const L = jt.value.find((he) => he.code === R);
|
|
34825
34825
|
if (!L)
|
|
34826
34826
|
return /* @__PURE__ */ new Set();
|
|
34827
|
-
const
|
|
34827
|
+
const I = /* @__PURE__ */ new Set();
|
|
34828
34828
|
if (L.metadata)
|
|
34829
34829
|
for (const [, he] of Object.entries(L.metadata))
|
|
34830
|
-
he.required && he.field &&
|
|
34831
|
-
(Ae) =>
|
|
34830
|
+
he.required && he.field && I.add(he.field), he.template && Dt(he.template).forEach(
|
|
34831
|
+
(Ae) => I.add(Ae)
|
|
34832
34832
|
);
|
|
34833
34833
|
if (L.emplacement && je.value?.EMPLACEMENT)
|
|
34834
34834
|
for (const he of L.emplacement) {
|
|
34835
34835
|
const Ae = je.value.EMPLACEMENT.find((Ne) => Ne.code === he);
|
|
34836
34836
|
if (Ae?.metadata)
|
|
34837
34837
|
for (const [, Ne] of Object.entries(Ae.metadata))
|
|
34838
|
-
Ne.required && Ne.field &&
|
|
34839
|
-
(Oe) =>
|
|
34838
|
+
Ne.required && Ne.field && I.add(Ne.field), Ne.template && Dt(Ne.template).forEach(
|
|
34839
|
+
(Oe) => I.add(Oe)
|
|
34840
34840
|
);
|
|
34841
34841
|
}
|
|
34842
34842
|
const C = je.value?.FIELDS || [], ae = new Set(
|
|
34843
34843
|
C.filter((he) => he.optional === !0).map((he) => he.name)
|
|
34844
34844
|
);
|
|
34845
|
-
for (const he of
|
|
34846
|
-
ae.has(he) &&
|
|
34847
|
-
return
|
|
34845
|
+
for (const he of I)
|
|
34846
|
+
ae.has(he) && I.delete(he);
|
|
34847
|
+
return I;
|
|
34848
34848
|
}
|
|
34849
34849
|
function ma(R) {
|
|
34850
34850
|
if (!R.natureCode || R.natureCode === ll)
|
|
34851
34851
|
return !1;
|
|
34852
|
-
const L = S.CLASSIFICATION_PLAN_INLINE_METADATA_THRESHOLD || 3,
|
|
34853
|
-
return
|
|
34852
|
+
const L = S.CLASSIFICATION_PLAN_INLINE_METADATA_THRESHOLD || 3, I = pi(R.natureCode);
|
|
34853
|
+
return I.length > 0 && I.length <= L;
|
|
34854
34854
|
}
|
|
34855
34855
|
function Ei(R) {
|
|
34856
34856
|
const L = ne.value[R];
|
|
34857
34857
|
if (!L?.natureCode)
|
|
34858
34858
|
return { filled: 0, total: 0 };
|
|
34859
|
-
const
|
|
34859
|
+
const I = Qi(L.natureCode), C = L.metadata || {};
|
|
34860
34860
|
let ae = 0;
|
|
34861
|
-
for (const he of
|
|
34861
|
+
for (const he of I) {
|
|
34862
34862
|
const Ae = C[he];
|
|
34863
34863
|
Ae != null && Ae !== "" && ae++;
|
|
34864
34864
|
}
|
|
34865
|
-
return { filled: ae, total:
|
|
34865
|
+
return { filled: ae, total: I.size };
|
|
34866
34866
|
}
|
|
34867
34867
|
function xo(R) {
|
|
34868
34868
|
if (Et(R)) {
|
|
@@ -34871,8 +34871,8 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34871
34871
|
}
|
|
34872
34872
|
return x("classificationPlan.multiFile.metadataBtn");
|
|
34873
34873
|
}
|
|
34874
|
-
function ul(R, L,
|
|
34875
|
-
R.metadata = { ...R.metadata, [L]:
|
|
34874
|
+
function ul(R, L, I) {
|
|
34875
|
+
R.metadata = { ...R.metadata, [L]: I };
|
|
34876
34876
|
}
|
|
34877
34877
|
function ba(R) {
|
|
34878
34878
|
return {
|
|
@@ -34904,27 +34904,27 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34904
34904
|
try {
|
|
34905
34905
|
const R = V.defaultDestinationNodeId;
|
|
34906
34906
|
if (R) {
|
|
34907
|
-
const
|
|
34907
|
+
const I = [(await $e.getNode(R)).entry.name], C = U.currentNode?.id;
|
|
34908
34908
|
if (C && C !== R) {
|
|
34909
34909
|
const ae = await $e.getNode(C, {
|
|
34910
34910
|
include: ["path"]
|
|
34911
34911
|
}), he = ae.entry.path?.elements || [], Ae = he.findIndex((Ne) => Ne.id === R);
|
|
34912
34912
|
if (Ae !== -1) {
|
|
34913
34913
|
const Ne = he.slice(Ae + 1).map((Oe) => Oe.name);
|
|
34914
|
-
|
|
34914
|
+
I.push(...Ne);
|
|
34915
34915
|
}
|
|
34916
|
-
|
|
34916
|
+
I.push(ae.entry.name);
|
|
34917
34917
|
}
|
|
34918
|
-
ze.value = "/ " +
|
|
34918
|
+
ze.value = "/ " + I.join(" / ");
|
|
34919
34919
|
} else {
|
|
34920
34920
|
const L = U.currentNode?.id;
|
|
34921
34921
|
if (L) {
|
|
34922
|
-
const
|
|
34922
|
+
const I = await $e.getNode(L, {
|
|
34923
34923
|
include: ["path"]
|
|
34924
|
-
}), C =
|
|
34924
|
+
}), C = I.entry.path?.elements || [], ae = C.findIndex(
|
|
34925
34925
|
(Ae) => Ae.name === "documentLibrary"
|
|
34926
34926
|
), he = C.slice(ae + 1).map((Ae) => Ae.name);
|
|
34927
|
-
he.push(
|
|
34927
|
+
he.push(I.entry.name), ze.value = "/ " + he.join(" / ");
|
|
34928
34928
|
}
|
|
34929
34929
|
}
|
|
34930
34930
|
} catch {
|
|
@@ -34942,15 +34942,15 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34942
34942
|
} else
|
|
34943
34943
|
L[C.name] = null;
|
|
34944
34944
|
});
|
|
34945
|
-
const
|
|
34946
|
-
|
|
34945
|
+
const I = ne.value[nt.value];
|
|
34946
|
+
I && (I.metadata = L);
|
|
34947
34947
|
}
|
|
34948
34948
|
function Be(R) {
|
|
34949
34949
|
const L = ne.value[R];
|
|
34950
34950
|
if (!L?.natureCode)
|
|
34951
34951
|
return;
|
|
34952
|
-
const
|
|
34953
|
-
|
|
34952
|
+
const I = pi(L.natureCode), C = {};
|
|
34953
|
+
I.forEach((ae) => {
|
|
34954
34954
|
it.value?.extractedValues && it.value.extractedValues[ae.name] !== void 0 ? C[ae.name] = it.value.extractedValues[ae.name] : ae.default !== void 0 && ae.default !== null && ae.default !== "" ? C[ae.name] = ae.default : C[ae.name] = null;
|
|
34955
34955
|
}), L.metadata = C;
|
|
34956
34956
|
}
|
|
@@ -34973,13 +34973,13 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34973
34973
|
Je === "field" && (L[Oe[Je]] = Ne);
|
|
34974
34974
|
}
|
|
34975
34975
|
});
|
|
34976
|
-
const
|
|
34976
|
+
const I = V.currentNode?.properties || {}, C = L[R];
|
|
34977
34977
|
if (C) {
|
|
34978
|
-
const he =
|
|
34978
|
+
const he = I[C];
|
|
34979
34979
|
if (he != null)
|
|
34980
34980
|
return he;
|
|
34981
34981
|
}
|
|
34982
|
-
const ae =
|
|
34982
|
+
const ae = I[R];
|
|
34983
34983
|
if (ae != null)
|
|
34984
34984
|
return ae;
|
|
34985
34985
|
}
|
|
@@ -34993,13 +34993,13 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
34993
34993
|
}
|
|
34994
34994
|
if (!ne.value[R].categoryId) {
|
|
34995
34995
|
const L = jt.value.find(
|
|
34996
|
-
(
|
|
34996
|
+
(I) => I.code === ne.value[R].natureCode
|
|
34997
34997
|
);
|
|
34998
34998
|
if (L?.categories?.length) {
|
|
34999
|
-
const
|
|
34999
|
+
const I = L.categories.find(
|
|
35000
35000
|
(C) => zl.value.some((ae) => ae.id === C)
|
|
35001
35001
|
);
|
|
35002
|
-
|
|
35002
|
+
I && (ne.value[R].categoryId = I);
|
|
35003
35003
|
}
|
|
35004
35004
|
}
|
|
35005
35005
|
ma(ne.value[R]) ? Be(R) : (nt.value = R, we());
|
|
@@ -35019,21 +35019,21 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35019
35019
|
const R = At.value;
|
|
35020
35020
|
if (R) {
|
|
35021
35021
|
for (const L of st.value) {
|
|
35022
|
-
const
|
|
35023
|
-
if (
|
|
35024
|
-
if (ne.value[
|
|
35022
|
+
const I = ne.value.indexOf(L);
|
|
35023
|
+
if (I !== -1)
|
|
35024
|
+
if (ne.value[I].natureCode = R, ne.value[I].metadata = {}, R === ll)
|
|
35025
35025
|
ze.value || _();
|
|
35026
35026
|
else {
|
|
35027
|
-
if (!ne.value[
|
|
35027
|
+
if (!ne.value[I].categoryId) {
|
|
35028
35028
|
const C = jt.value.find((ae) => ae.code === R);
|
|
35029
35029
|
if (C?.categories?.length) {
|
|
35030
35030
|
const ae = C.categories.find(
|
|
35031
35031
|
(he) => zl.value.some((Ae) => Ae.id === he)
|
|
35032
35032
|
);
|
|
35033
|
-
ae && (ne.value[
|
|
35033
|
+
ae && (ne.value[I].categoryId = ae);
|
|
35034
35034
|
}
|
|
35035
35035
|
}
|
|
35036
|
-
ma(ne.value[
|
|
35036
|
+
ma(ne.value[I]) && Be(I);
|
|
35037
35037
|
}
|
|
35038
35038
|
}
|
|
35039
35039
|
st.value = [], At.value = null;
|
|
@@ -35049,11 +35049,11 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35049
35049
|
const L = ne.value[R];
|
|
35050
35050
|
if (!L?.natureCode)
|
|
35051
35051
|
return "—";
|
|
35052
|
-
const
|
|
35053
|
-
if (!
|
|
35052
|
+
const I = jt.value.find((he) => he.code === L.natureCode);
|
|
35053
|
+
if (!I?.emplacement || !je.value?.EMPLACEMENT)
|
|
35054
35054
|
return "—";
|
|
35055
35055
|
const C = je.value?.FIELDS || [];
|
|
35056
|
-
return
|
|
35056
|
+
return I.emplacement.map((he) => {
|
|
35057
35057
|
const Ae = je.value.EMPLACEMENT.find((Ne) => Ne.code === he);
|
|
35058
35058
|
if (!Ae)
|
|
35059
35059
|
return `[${he}]`;
|
|
@@ -35149,7 +35149,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35149
35149
|
try {
|
|
35150
35150
|
if (je.value = await oa.getPlan(R), await Ea(), V.forceSingleCategory && V.defaultCategoryId && !_e.value) {
|
|
35151
35151
|
const L = zl.value.find(
|
|
35152
|
-
(
|
|
35152
|
+
(I) => I.id === V.defaultCategoryId
|
|
35153
35153
|
);
|
|
35154
35154
|
L && (_e.value = L.id);
|
|
35155
35155
|
}
|
|
@@ -35175,14 +35175,14 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35175
35175
|
include: ["path", "properties"]
|
|
35176
35176
|
});
|
|
35177
35177
|
Zl.value = L.entry.name || null;
|
|
35178
|
-
const
|
|
35179
|
-
C !== -1 &&
|
|
35180
|
-
const ae =
|
|
35178
|
+
const I = L.entry.path?.elements || [], C = I.findIndex((Oe) => Oe.name === "Sites");
|
|
35179
|
+
C !== -1 && I.length > C + 1 && (ft.value = I[C + 1].name);
|
|
35180
|
+
const ae = I.findIndex(
|
|
35181
35181
|
(Oe) => Oe.name === "documentLibrary"
|
|
35182
35182
|
);
|
|
35183
35183
|
if (ae === -1)
|
|
35184
35184
|
return;
|
|
35185
|
-
const he =
|
|
35185
|
+
const he = I.slice(ae + 1).map((Oe) => Oe.id), Ne = (await Promise.all(
|
|
35186
35186
|
he.map(
|
|
35187
35187
|
(Oe) => $e.getNode(Oe, { include: ["properties"] })
|
|
35188
35188
|
)
|
|
@@ -35203,7 +35203,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35203
35203
|
function Zi(R) {
|
|
35204
35204
|
if (!je.value?.EMPLACEMENT)
|
|
35205
35205
|
return;
|
|
35206
|
-
const L = [],
|
|
35206
|
+
const L = [], I = {}, C = /* @__PURE__ */ new Set();
|
|
35207
35207
|
for (const ae of je.value.EMPLACEMENT) {
|
|
35208
35208
|
if (!ae.metadata)
|
|
35209
35209
|
continue;
|
|
@@ -35224,7 +35224,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35224
35224
|
const pt = Object.keys(Lt).find((Vt) => Vt !== "required");
|
|
35225
35225
|
if (pt === "field") {
|
|
35226
35226
|
const Vt = Lt[pt], Bt = Ae.properties[Je];
|
|
35227
|
-
Bt !== void 0 && (
|
|
35227
|
+
Bt !== void 0 && (I[Vt] = Bt, C.add(Vt));
|
|
35228
35228
|
}
|
|
35229
35229
|
}
|
|
35230
35230
|
break;
|
|
@@ -35233,7 +35233,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35233
35233
|
}
|
|
35234
35234
|
it.value = {
|
|
35235
35235
|
matchedEmplacements: L,
|
|
35236
|
-
extractedValues:
|
|
35236
|
+
extractedValues: I,
|
|
35237
35237
|
parentFoldersData: R
|
|
35238
35238
|
}, ce.value || (dt.value = C);
|
|
35239
35239
|
}
|
|
@@ -35245,17 +35245,17 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35245
35245
|
extractedValues: {},
|
|
35246
35246
|
parentFoldersData: R
|
|
35247
35247
|
});
|
|
35248
|
-
const L = [...R].reverse(),
|
|
35248
|
+
const L = [...R].reverse(), I = {}, C = [];
|
|
35249
35249
|
for (const ae of je.value.FIELDS)
|
|
35250
35250
|
if (!(ae.input !== "parent" || !ae.metadata))
|
|
35251
35251
|
for (const he of L) {
|
|
35252
35252
|
const Ae = he.properties[ae.metadata];
|
|
35253
35253
|
if (Ae != null) {
|
|
35254
|
-
|
|
35254
|
+
I[ae.name] = Ae, C.push(ae.name);
|
|
35255
35255
|
break;
|
|
35256
35256
|
}
|
|
35257
35257
|
}
|
|
35258
|
-
C.length > 0 && (Object.assign(it.value.extractedValues,
|
|
35258
|
+
C.length > 0 && (Object.assign(it.value.extractedValues, I), dt.value = /* @__PURE__ */ new Set([
|
|
35259
35259
|
...dt.value,
|
|
35260
35260
|
...C
|
|
35261
35261
|
]));
|
|
@@ -35269,15 +35269,15 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35269
35269
|
const ae = JSON.stringify(R[C].pathFull);
|
|
35270
35270
|
L.has(ae) || L.set(ae, []), L.get(ae).push(C);
|
|
35271
35271
|
}
|
|
35272
|
-
let
|
|
35273
|
-
V.defaultDestinationNodeId ?
|
|
35272
|
+
let I;
|
|
35273
|
+
V.defaultDestinationNodeId ? I = V.defaultDestinationNodeId : I = await ro.getDocumentLibraryId(
|
|
35274
35274
|
ft.value
|
|
35275
35275
|
);
|
|
35276
35276
|
for (const [, C] of L) {
|
|
35277
35277
|
const ae = R[C[0]].pathFull, he = C.map((Oe) => R[Oe].fileRenames[0].new);
|
|
35278
35278
|
let Ae = [];
|
|
35279
35279
|
try {
|
|
35280
|
-
const Oe = await ro.ensureFolderHierarchy(
|
|
35280
|
+
const Oe = await ro.ensureFolderHierarchy(I, ae);
|
|
35281
35281
|
Ae = (await be.getDirectChildren(
|
|
35282
35282
|
Oe,
|
|
35283
35283
|
{ maxItems: 1e3 }
|
|
@@ -35304,13 +35304,13 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35304
35304
|
try {
|
|
35305
35305
|
const L = sa();
|
|
35306
35306
|
if (L.onCompleteCallback = () => Q("upload-complete"), ct.value) {
|
|
35307
|
-
const
|
|
35307
|
+
const I = V.defaultDestinationNodeId || U.currentNode?.id, C = ne.value.map((ae) => ({
|
|
35308
35308
|
file: ae.file,
|
|
35309
35309
|
relativePath: ""
|
|
35310
35310
|
}));
|
|
35311
|
-
L.startUpload(C,
|
|
35311
|
+
L.startUpload(C, I);
|
|
35312
35312
|
} else {
|
|
35313
|
-
const
|
|
35313
|
+
const I = je.value?.FIELDS || [], C = V.defaultDestinationNodeId || U.currentNode?.id, ae = ne.value.filter(
|
|
35314
35314
|
(Ae) => Ae.natureCode === ll
|
|
35315
35315
|
), he = ne.value.filter(
|
|
35316
35316
|
(Ae) => Ae.natureCode !== ll
|
|
@@ -35330,7 +35330,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35330
35330
|
), pt = Ta(Je), Vt = Qa(Je), Bt = Lt?.metadata?.["cm:name"]?.template;
|
|
35331
35331
|
let ml = Oe.file.name;
|
|
35332
35332
|
if (Bt) {
|
|
35333
|
-
const kt = fa(Bt, Oe.metadata,
|
|
35333
|
+
const kt = fa(Bt, Oe.metadata, I);
|
|
35334
35334
|
if (kt) {
|
|
35335
35335
|
const La = Oe.file.name.lastIndexOf("."), Vo = La > 0 ? Oe.file.name.substring(La) : "";
|
|
35336
35336
|
ml = kt + Vo;
|
|
@@ -35380,7 +35380,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35380
35380
|
}
|
|
35381
35381
|
Ee.value = !0;
|
|
35382
35382
|
try {
|
|
35383
|
-
const R = V.createFileMode, L = ne.value[0],
|
|
35383
|
+
const R = V.createFileMode, L = ne.value[0], I = jt.value.find((Oe) => Oe.code === L.natureCode), C = Ta(0), ae = Qa(0), he = I?.metadata?.["cm:name"]?.template, Ae = he ? fa(
|
|
35384
35384
|
he,
|
|
35385
35385
|
L.metadata,
|
|
35386
35386
|
je.value?.FIELDS || []
|
|
@@ -35390,7 +35390,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35390
35390
|
R.templateNodeId,
|
|
35391
35391
|
Ae,
|
|
35392
35392
|
ae,
|
|
35393
|
-
|
|
35393
|
+
I
|
|
35394
35394
|
);
|
|
35395
35395
|
q.value = !1, Q("file-created", {
|
|
35396
35396
|
nodeId: Ne.entry.id,
|
|
@@ -35424,11 +35424,11 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35424
35424
|
}
|
|
35425
35425
|
Ee.value = !0;
|
|
35426
35426
|
try {
|
|
35427
|
-
const R = ne.value[0], L = jt.value.find((he) => he.code === R.natureCode),
|
|
35427
|
+
const R = ne.value[0], L = jt.value.find((he) => he.code === R.natureCode), I = Ta(0), C = Qa(0), ae = Ia(0);
|
|
35428
35428
|
await ro.requalifyDocument(
|
|
35429
35429
|
V.currentNode.id,
|
|
35430
35430
|
ft.value,
|
|
35431
|
-
|
|
35431
|
+
I,
|
|
35432
35432
|
C,
|
|
35433
35433
|
ae,
|
|
35434
35434
|
L,
|
|
@@ -35471,8 +35471,8 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35471
35471
|
), (R, L) => (r(), N(Gi(e.inline ? "div" : A(l)), Pm(Hm(
|
|
35472
35472
|
e.inline ? { class: "unified-upload-inline" } : {
|
|
35473
35473
|
visible: q.value,
|
|
35474
|
-
"onUpdate:visible": (
|
|
35475
|
-
q.value =
|
|
35474
|
+
"onUpdate:visible": (I) => {
|
|
35475
|
+
q.value = I;
|
|
35476
35476
|
},
|
|
35477
35477
|
header: ce.value ? A(x)("classificationPlan.requalify.title") : oe.value ? A(x)("classificationPlan.upload.headerCreate") : A(x)("classificationPlan.upload.headerImport"),
|
|
35478
35478
|
modal: !0,
|
|
@@ -35494,12 +35494,12 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35494
35494
|
default: g(() => [
|
|
35495
35495
|
d(A(m), null, {
|
|
35496
35496
|
default: g(() => [
|
|
35497
|
-
(r(!0), u(ee, null, Ye(Me.value, (
|
|
35498
|
-
key:
|
|
35499
|
-
value:
|
|
35497
|
+
(r(!0), u(ee, null, Ye(Me.value, (I) => (r(), N(A(p), {
|
|
35498
|
+
key: I.value,
|
|
35499
|
+
value: I.value
|
|
35500
35500
|
}, {
|
|
35501
35501
|
default: g(() => [
|
|
35502
|
-
K(b(
|
|
35502
|
+
K(b(I.label), 1)
|
|
35503
35503
|
]),
|
|
35504
35504
|
_: 2
|
|
35505
35505
|
}, 1032, ["value"]))), 128))
|
|
@@ -35521,7 +35521,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35521
35521
|
!Ie.value && de.value === Xe.value && !pe.value ? (r(), u("div", IL, [
|
|
35522
35522
|
d(A(y), {
|
|
35523
35523
|
modelValue: Re.value,
|
|
35524
|
-
"onUpdate:modelValue": L[0] || (L[0] = (
|
|
35524
|
+
"onUpdate:modelValue": L[0] || (L[0] = (I) => Re.value = I),
|
|
35525
35525
|
options: ke.value,
|
|
35526
35526
|
placeholder: A(x)("classificationPlan.steps.selectPlan"),
|
|
35527
35527
|
class: "full-width",
|
|
@@ -35539,12 +35539,12 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35539
35539
|
}, {
|
|
35540
35540
|
content: g(() => [
|
|
35541
35541
|
ne.value.length ? (r(), u("ul", jL, [
|
|
35542
|
-
(r(!0), u(ee, null, Ye(ne.value, (
|
|
35542
|
+
(r(!0), u(ee, null, Ye(ne.value, (I, C) => (r(), u("li", {
|
|
35543
35543
|
key: C,
|
|
35544
35544
|
class: "upload-file-item"
|
|
35545
35545
|
}, [
|
|
35546
|
-
s("span", GL, b(
|
|
35547
|
-
|
|
35546
|
+
s("span", GL, b(I.file.name), 1),
|
|
35547
|
+
I.file.size ? (r(), u("span", LL, b(So(I.file.size)), 1)) : f("", !0),
|
|
35548
35548
|
d(A(i), {
|
|
35549
35549
|
icon: "ri-close-line",
|
|
35550
35550
|
text: "",
|
|
@@ -35566,7 +35566,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35566
35566
|
e.forceSingleCategory ? f("", !0) : (r(), N(A(W), {
|
|
35567
35567
|
key: 0,
|
|
35568
35568
|
modelValue: Ue.value,
|
|
35569
|
-
"onUpdate:modelValue": L[2] || (L[2] = (
|
|
35569
|
+
"onUpdate:modelValue": L[2] || (L[2] = (I) => Ue.value = I),
|
|
35570
35570
|
options: ko.value,
|
|
35571
35571
|
optionLabel: "label",
|
|
35572
35572
|
optionValue: "value",
|
|
@@ -35576,7 +35576,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35576
35576
|
Ue.value ? f("", !0) : (r(), N(A(y), {
|
|
35577
35577
|
key: 1,
|
|
35578
35578
|
modelValue: _e.value,
|
|
35579
|
-
"onUpdate:modelValue": L[3] || (L[3] = (
|
|
35579
|
+
"onUpdate:modelValue": L[3] || (L[3] = (I) => _e.value = I),
|
|
35580
35580
|
options: Pi.value,
|
|
35581
35581
|
optionLabel: "label",
|
|
35582
35582
|
optionValue: "value",
|
|
@@ -35593,7 +35593,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35593
35593
|
Ue.value ? (r(), N(A(y), {
|
|
35594
35594
|
key: 0,
|
|
35595
35595
|
modelValue: Wt.value,
|
|
35596
|
-
"onUpdate:modelValue": L[4] || (L[4] = (
|
|
35596
|
+
"onUpdate:modelValue": L[4] || (L[4] = (I) => Wt.value = I),
|
|
35597
35597
|
options: Pi.value,
|
|
35598
35598
|
optionLabel: "label",
|
|
35599
35599
|
optionValue: "value",
|
|
@@ -35603,7 +35603,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35603
35603
|
}, null, 8, ["modelValue", "options", "placeholder"])) : f("", !0),
|
|
35604
35604
|
d(A(y), {
|
|
35605
35605
|
modelValue: At.value,
|
|
35606
|
-
"onUpdate:modelValue": L[5] || (L[5] = (
|
|
35606
|
+
"onUpdate:modelValue": L[5] || (L[5] = (I) => At.value = I),
|
|
35607
35607
|
options: Lo.value,
|
|
35608
35608
|
optionLabel: "name",
|
|
35609
35609
|
optionValue: "code",
|
|
@@ -35620,7 +35620,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35620
35620
|
d(A(h), {
|
|
35621
35621
|
value: ne.value,
|
|
35622
35622
|
selection: st.value,
|
|
35623
|
-
"onUpdate:selection": L[6] || (L[6] = (
|
|
35623
|
+
"onUpdate:selection": L[6] || (L[6] = (I) => st.value = I),
|
|
35624
35624
|
dataKey: "file.name",
|
|
35625
35625
|
size: "small",
|
|
35626
35626
|
rowHover: "",
|
|
@@ -35629,7 +35629,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35629
35629
|
groupRowsBy: Ue.value ? gl : void 0,
|
|
35630
35630
|
expandableRowGroups: Ue.value,
|
|
35631
35631
|
expandedRowGroups: Ht.value,
|
|
35632
|
-
"onUpdate:expandedRowGroups": L[7] || (L[7] = (
|
|
35632
|
+
"onUpdate:expandedRowGroups": L[7] || (L[7] = (I) => Ht.value = I)
|
|
35633
35633
|
}, ti({
|
|
35634
35634
|
default: g(() => [
|
|
35635
35635
|
d(A(Z), {
|
|
@@ -35640,10 +35640,10 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35640
35640
|
header: A(x)("classificationPlan.multiFile.fileName"),
|
|
35641
35641
|
style: { "min-width": "12rem" }
|
|
35642
35642
|
}, {
|
|
35643
|
-
body: g(({ data:
|
|
35643
|
+
body: g(({ data: I }) => [
|
|
35644
35644
|
s("span", {
|
|
35645
|
-
title:
|
|
35646
|
-
}, b(
|
|
35645
|
+
title: I.file.name
|
|
35646
|
+
}, b(I.file.name), 9, QL)
|
|
35647
35647
|
]),
|
|
35648
35648
|
_: 1
|
|
35649
35649
|
}, 8, ["header"]),
|
|
@@ -35652,17 +35652,17 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35652
35652
|
header: A(x)("classificationPlan.multiFile.category"),
|
|
35653
35653
|
style: { width: "12rem" }
|
|
35654
35654
|
}, {
|
|
35655
|
-
body: g(({ data:
|
|
35655
|
+
body: g(({ data: I }) => [
|
|
35656
35656
|
d(A(y), {
|
|
35657
|
-
modelValue:
|
|
35658
|
-
"onUpdate:modelValue": (C) =>
|
|
35657
|
+
modelValue: I.categoryId,
|
|
35658
|
+
"onUpdate:modelValue": (C) => I.categoryId = C,
|
|
35659
35659
|
options: Go.value,
|
|
35660
35660
|
optionLabel: "label",
|
|
35661
35661
|
optionValue: "value",
|
|
35662
35662
|
placeholder: A(x)("classificationPlan.multiFile.selectCategory"),
|
|
35663
35663
|
class: "w-full",
|
|
35664
35664
|
size: "small",
|
|
35665
|
-
onChange: (C) => Gt(Ft(
|
|
35665
|
+
onChange: (C) => Gt(Ft(I))
|
|
35666
35666
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "placeholder", "onChange"])
|
|
35667
35667
|
]),
|
|
35668
35668
|
_: 1
|
|
@@ -35671,11 +35671,11 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35671
35671
|
header: A(x)("classificationPlan.nature"),
|
|
35672
35672
|
style: { width: "14rem" }
|
|
35673
35673
|
}, {
|
|
35674
|
-
body: g(({ data:
|
|
35674
|
+
body: g(({ data: I }) => [
|
|
35675
35675
|
d(A(y), {
|
|
35676
|
-
modelValue:
|
|
35677
|
-
"onUpdate:modelValue": (C) =>
|
|
35678
|
-
options: bi(
|
|
35676
|
+
modelValue: I.natureCode,
|
|
35677
|
+
"onUpdate:modelValue": (C) => I.natureCode = C,
|
|
35678
|
+
options: bi(I.categoryId),
|
|
35679
35679
|
optionLabel: "name",
|
|
35680
35680
|
optionValue: "code",
|
|
35681
35681
|
placeholder: !Ue.value && !_e.value ? A(x)("classificationPlan.multiFile.selectCategoryFirst") : A(x)("classificationPlan.multiFile.selectNature"),
|
|
@@ -35686,20 +35686,20 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35686
35686
|
filterFields: ["name", "code"],
|
|
35687
35687
|
filterPlaceholder: A(x)("classificationPlan.multiFile.searchNature"),
|
|
35688
35688
|
resetFilterOnHide: "",
|
|
35689
|
-
onChange: (C) => wt(Ft(
|
|
35689
|
+
onChange: (C) => wt(Ft(I))
|
|
35690
35690
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "placeholder", "disabled", "filterPlaceholder", "onChange"])
|
|
35691
35691
|
]),
|
|
35692
35692
|
_: 1
|
|
35693
35693
|
}, 8, ["header"]),
|
|
35694
35694
|
d(A(Z), { style: { width: "3rem" } }, {
|
|
35695
|
-
body: g(({ data:
|
|
35695
|
+
body: g(({ data: I }) => [
|
|
35696
35696
|
d(A(i), {
|
|
35697
35697
|
icon: "ri-close-line",
|
|
35698
35698
|
text: "",
|
|
35699
35699
|
rounded: "",
|
|
35700
35700
|
severity: "danger",
|
|
35701
35701
|
size: "small",
|
|
35702
|
-
onClick: (C) => F(Ft(
|
|
35702
|
+
onClick: (C) => F(Ft(I))
|
|
35703
35703
|
}, null, 8, ["onClick"])
|
|
35704
35704
|
]),
|
|
35705
35705
|
_: 1
|
|
@@ -35709,11 +35709,11 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35709
35709
|
}, [
|
|
35710
35710
|
Ue.value ? {
|
|
35711
35711
|
name: "groupheader",
|
|
35712
|
-
fn: g(({ data:
|
|
35712
|
+
fn: g(({ data: I }) => [
|
|
35713
35713
|
s("div", PL, [
|
|
35714
|
-
s("span", null, b(mi(
|
|
35714
|
+
s("span", null, b(mi(I)), 1),
|
|
35715
35715
|
s("span", HL, " (" + b(ne.value.filter(
|
|
35716
|
-
(C) => gl(C) === gl(
|
|
35716
|
+
(C) => gl(C) === gl(I)
|
|
35717
35717
|
).length) + ") ", 1)
|
|
35718
35718
|
])
|
|
35719
35719
|
]),
|
|
@@ -35743,7 +35743,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35743
35743
|
allowNoNature: P.value && !ce.value && !oe.value,
|
|
35744
35744
|
categories: jo.value,
|
|
35745
35745
|
"default-category": e.defaultCategoryId,
|
|
35746
|
-
"onUpdate:modelValue": L[1] || (L[1] = (
|
|
35746
|
+
"onUpdate:modelValue": L[1] || (L[1] = (I) => E(I)),
|
|
35747
35747
|
onSelectNoNature: J
|
|
35748
35748
|
}, null, 8, ["natures", "modelValue", "allowNoNature", "categories", "default-category"]))
|
|
35749
35749
|
]))
|
|
@@ -35754,7 +35754,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35754
35754
|
tt.value ? (r(), N(A(W), {
|
|
35755
35755
|
key: 0,
|
|
35756
35756
|
modelValue: Se.value,
|
|
35757
|
-
"onUpdate:modelValue": L[11] || (L[11] = (
|
|
35757
|
+
"onUpdate:modelValue": L[11] || (L[11] = (I) => Se.value = I),
|
|
35758
35758
|
options: [
|
|
35759
35759
|
{
|
|
35760
35760
|
label: A(x)("classificationPlan.multiFile.layoutRow"),
|
|
@@ -35789,17 +35789,17 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35789
35789
|
Nl.value ? (r(), u("div", lk, [
|
|
35790
35790
|
d(A(T), {
|
|
35791
35791
|
value: Nt.value,
|
|
35792
|
-
"onUpdate:value": L[12] || (L[12] = (
|
|
35792
|
+
"onUpdate:value": L[12] || (L[12] = (I) => Nt.value = I)
|
|
35793
35793
|
}, {
|
|
35794
35794
|
default: g(() => [
|
|
35795
|
-
d(A(
|
|
35795
|
+
d(A(w), null, {
|
|
35796
35796
|
default: g(() => [
|
|
35797
|
-
(r(!0), u(ee, null, Ye(wa.value, (
|
|
35798
|
-
key:
|
|
35799
|
-
value:
|
|
35797
|
+
(r(!0), u(ee, null, Ye(wa.value, (I) => (r(), N(A(G), {
|
|
35798
|
+
key: I.value,
|
|
35799
|
+
value: I.value
|
|
35800
35800
|
}, {
|
|
35801
35801
|
default: g(() => [
|
|
35802
|
-
K(b(
|
|
35802
|
+
K(b(I.label), 1)
|
|
35803
35803
|
]),
|
|
35804
35804
|
_: 2
|
|
35805
35805
|
}, 1032, ["value"]))), 128))
|
|
@@ -35820,17 +35820,17 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35820
35820
|
groupRowsBy: Ue.value ? gl : void 0,
|
|
35821
35821
|
expandableRowGroups: Ue.value,
|
|
35822
35822
|
expandedRowGroups: Ht.value,
|
|
35823
|
-
"onUpdate:expandedRowGroups": L[13] || (L[13] = (
|
|
35823
|
+
"onUpdate:expandedRowGroups": L[13] || (L[13] = (I) => Ht.value = I)
|
|
35824
35824
|
}, ti({
|
|
35825
35825
|
default: g(() => [
|
|
35826
35826
|
d(A(Z), {
|
|
35827
35827
|
header: A(x)("classificationPlan.multiFile.fileName"),
|
|
35828
35828
|
style: { "min-width": "12rem" }
|
|
35829
35829
|
}, {
|
|
35830
|
-
body: g(({ data:
|
|
35830
|
+
body: g(({ data: I }) => [
|
|
35831
35831
|
s("span", {
|
|
35832
|
-
title:
|
|
35833
|
-
}, b(
|
|
35832
|
+
title: I.file.name
|
|
35833
|
+
}, b(I.file.name), 9, ok)
|
|
35834
35834
|
]),
|
|
35835
35835
|
_: 1
|
|
35836
35836
|
}, 8, ["header"]),
|
|
@@ -35838,10 +35838,10 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35838
35838
|
header: A(x)("classificationPlan.nature"),
|
|
35839
35839
|
style: { width: "10rem" }
|
|
35840
35840
|
}, {
|
|
35841
|
-
body: g(({ data:
|
|
35842
|
-
|
|
35841
|
+
body: g(({ data: I }) => [
|
|
35842
|
+
I.natureCode && I.natureCode !== ll ? (r(), N(A(n), {
|
|
35843
35843
|
key: 0,
|
|
35844
|
-
value: Hi(
|
|
35844
|
+
value: Hi(I.natureCode) || I.natureCode
|
|
35845
35845
|
}, null, 8, ["value"])) : (r(), u("span", sk, "—"))
|
|
35846
35846
|
]),
|
|
35847
35847
|
_: 1
|
|
@@ -35850,67 +35850,67 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35850
35850
|
header: A(x)("classificationPlan.multiFile.metadataBtn"),
|
|
35851
35851
|
style: zt({ minWidth: tt.value ? "20rem" : "8rem" })
|
|
35852
35852
|
}, {
|
|
35853
|
-
body: g(({ data:
|
|
35854
|
-
!
|
|
35853
|
+
body: g(({ data: I }) => [
|
|
35854
|
+
!I.natureCode || I.natureCode === ll ? (r(), u("span", nk, "—")) : ma(I) ? (r(), u("div", {
|
|
35855
35855
|
key: 1,
|
|
35856
35856
|
class: le([
|
|
35857
35857
|
"inline-metadata",
|
|
35858
35858
|
"inline-metadata--" + Se.value
|
|
35859
35859
|
])
|
|
35860
35860
|
}, [
|
|
35861
|
-
(r(!0), u(ee, null, Ye(pi(
|
|
35861
|
+
(r(!0), u(ee, null, Ye(pi(I.natureCode), (C) => (r(), u("div", {
|
|
35862
35862
|
key: C.name,
|
|
35863
35863
|
class: "inline-metadata-field"
|
|
35864
35864
|
}, [
|
|
35865
35865
|
s("label", rk, [
|
|
35866
35866
|
K(b(C.description) + " ", 1),
|
|
35867
|
-
Qi(
|
|
35867
|
+
Qi(I.natureCode).has(
|
|
35868
35868
|
C.name
|
|
35869
35869
|
) ? (r(), u("span", ck, "*")) : f("", !0)
|
|
35870
35870
|
]),
|
|
35871
35871
|
C.input === "date" ? (r(), N(A(B), {
|
|
35872
35872
|
key: 0,
|
|
35873
|
-
modelValue:
|
|
35873
|
+
modelValue: I.metadata[C.name],
|
|
35874
35874
|
disabled: dt.value.has(C.name),
|
|
35875
35875
|
size: "small",
|
|
35876
35876
|
class: "w-full",
|
|
35877
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35877
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35878
35878
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : C.input === "datetime" ? (r(), N(A(B), {
|
|
35879
35879
|
key: 1,
|
|
35880
|
-
modelValue:
|
|
35880
|
+
modelValue: I.metadata[C.name],
|
|
35881
35881
|
disabled: dt.value.has(C.name),
|
|
35882
35882
|
showTime: "",
|
|
35883
35883
|
size: "small",
|
|
35884
35884
|
class: "w-full",
|
|
35885
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35885
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35886
35886
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : C.type === "number" ? (r(), N(A(M), {
|
|
35887
35887
|
key: 2,
|
|
35888
|
-
modelValue:
|
|
35888
|
+
modelValue: I.metadata[C.name],
|
|
35889
35889
|
disabled: dt.value.has(C.name),
|
|
35890
35890
|
min: C.min,
|
|
35891
35891
|
max: C.max,
|
|
35892
35892
|
placeholder: C.default != null ? String(C.default) : void 0,
|
|
35893
35893
|
size: "small",
|
|
35894
35894
|
class: "w-full",
|
|
35895
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35895
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35896
35896
|
}, null, 8, ["modelValue", "disabled", "min", "max", "placeholder", "onUpdate:modelValue"])) : C.input === "boolean" ? (r(), N(A(k), {
|
|
35897
35897
|
key: 3,
|
|
35898
|
-
modelValue:
|
|
35898
|
+
modelValue: I.metadata[C.name],
|
|
35899
35899
|
disabled: dt.value.has(C.name),
|
|
35900
35900
|
binary: "",
|
|
35901
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35901
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35902
35902
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : C.input === "list" ? (r(), N(A(y), {
|
|
35903
35903
|
key: 4,
|
|
35904
|
-
modelValue:
|
|
35904
|
+
modelValue: I.metadata[C.name],
|
|
35905
35905
|
disabled: dt.value.has(C.name),
|
|
35906
35906
|
options: C.values || [],
|
|
35907
35907
|
placeholder: C.description,
|
|
35908
35908
|
size: "small",
|
|
35909
35909
|
class: "w-full",
|
|
35910
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35910
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35911
35911
|
}, null, 8, ["modelValue", "disabled", "options", "placeholder", "onUpdate:modelValue"])) : C.input === "search" ? (r(), N(A(y), {
|
|
35912
35912
|
key: 5,
|
|
35913
|
-
modelValue:
|
|
35913
|
+
modelValue: I.metadata[C.name],
|
|
35914
35914
|
disabled: dt.value.has(C.name),
|
|
35915
35915
|
options: A(qt)(C.name),
|
|
35916
35916
|
loading: A(Yl)(C.name),
|
|
@@ -35918,18 +35918,18 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35918
35918
|
filter: "",
|
|
35919
35919
|
size: "small",
|
|
35920
35920
|
class: "w-full",
|
|
35921
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35921
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae),
|
|
35922
35922
|
onFocus: (ae) => A(Qt)(C)
|
|
35923
35923
|
}, null, 8, ["modelValue", "disabled", "options", "loading", "placeholder", "onUpdate:modelValue", "onFocus"])) : C.input === "select" ? (r(), N(A(W), {
|
|
35924
35924
|
key: 6,
|
|
35925
|
-
modelValue:
|
|
35925
|
+
modelValue: I.metadata[C.name],
|
|
35926
35926
|
disabled: dt.value.has(C.name),
|
|
35927
35927
|
options: C.values || [],
|
|
35928
35928
|
size: "small",
|
|
35929
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35929
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35930
35930
|
}, null, 8, ["modelValue", "disabled", "options", "onUpdate:modelValue"])) : C.input === "dictionary" ? (r(), N(A(y), {
|
|
35931
35931
|
key: 7,
|
|
35932
|
-
modelValue:
|
|
35932
|
+
modelValue: I.metadata[C.name],
|
|
35933
35933
|
disabled: dt.value.has(C.name),
|
|
35934
35934
|
options: te(C.source),
|
|
35935
35935
|
"option-label": "value",
|
|
@@ -35937,43 +35937,43 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35937
35937
|
placeholder: C.description,
|
|
35938
35938
|
size: "small",
|
|
35939
35939
|
class: "w-full",
|
|
35940
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35940
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35941
35941
|
}, null, 8, ["modelValue", "disabled", "options", "placeholder", "onUpdate:modelValue"])) : C.input === "lexicon" ? (r(), N(A(y), {
|
|
35942
35942
|
key: 8,
|
|
35943
|
-
modelValue:
|
|
35943
|
+
modelValue: I.metadata[C.name],
|
|
35944
35944
|
disabled: dt.value.has(C.name),
|
|
35945
35945
|
options: ge(C.source),
|
|
35946
35946
|
placeholder: C.description,
|
|
35947
35947
|
size: "small",
|
|
35948
35948
|
class: "w-full",
|
|
35949
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35949
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35950
35950
|
}, null, 8, ["modelValue", "disabled", "options", "placeholder", "onUpdate:modelValue"])) : C.input === "parent" ? (r(), N(A(O), {
|
|
35951
35951
|
key: 9,
|
|
35952
|
-
modelValue:
|
|
35952
|
+
modelValue: I.metadata[C.name],
|
|
35953
35953
|
disabled: "",
|
|
35954
35954
|
size: "small",
|
|
35955
35955
|
class: "w-full"
|
|
35956
35956
|
}, null, 8, ["modelValue"])) : (r(), N(A(O), {
|
|
35957
35957
|
key: 10,
|
|
35958
|
-
modelValue:
|
|
35958
|
+
modelValue: I.metadata[C.name],
|
|
35959
35959
|
disabled: dt.value.has(C.name),
|
|
35960
35960
|
pattern: C.regex,
|
|
35961
35961
|
placeholder: C.default != null && C.default !== "" ? String(C.default) : void 0,
|
|
35962
35962
|
size: "small",
|
|
35963
35963
|
class: "w-full",
|
|
35964
|
-
"onUpdate:modelValue": (ae) => ul(
|
|
35964
|
+
"onUpdate:modelValue": (ae) => ul(I, C.name, ae)
|
|
35965
35965
|
}, null, 8, ["modelValue", "disabled", "pattern", "placeholder", "onUpdate:modelValue"])),
|
|
35966
35966
|
C.default != null && C.default !== "" ? (r(), u("small", dk, b(A(x)("classificationPlan.defaultValue")) + ": " + b(C.default), 1)) : f("", !0),
|
|
35967
|
-
C.input === "parent" && !
|
|
35967
|
+
C.input === "parent" && !I.metadata[C.name] ? (r(), u("small", uk, b(A(x)("classificationPlan.parentFieldNotFound")), 1)) : f("", !0)
|
|
35968
35968
|
]))), 128))
|
|
35969
35969
|
], 2)) : (r(), N(A(i), {
|
|
35970
35970
|
key: 2,
|
|
35971
|
-
label: xo(Ft(
|
|
35972
|
-
icon: Et(Ft(
|
|
35973
|
-
severity: Et(Ft(
|
|
35971
|
+
label: xo(Ft(I)),
|
|
35972
|
+
icon: Et(Ft(I)) ? "ri-check-line" : "ri-edit-line",
|
|
35973
|
+
severity: Et(Ft(I)) ? "success" : void 0,
|
|
35974
35974
|
text: "",
|
|
35975
35975
|
size: "small",
|
|
35976
|
-
onClick: (C) => ja(Ft(
|
|
35976
|
+
onClick: (C) => ja(Ft(I))
|
|
35977
35977
|
}, null, 8, ["label", "icon", "severity", "onClick"]))
|
|
35978
35978
|
]),
|
|
35979
35979
|
_: 1
|
|
@@ -35983,23 +35983,23 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
35983
35983
|
header: A(x)("classificationPlan.multiFile.status"),
|
|
35984
35984
|
style: { width: "7rem" }
|
|
35985
35985
|
}, {
|
|
35986
|
-
body: g(({ data:
|
|
35986
|
+
body: g(({ data: I }) => [
|
|
35987
35987
|
d(A(n), {
|
|
35988
|
-
value: Et(Ft(
|
|
35989
|
-
severity: Et(Ft(
|
|
35988
|
+
value: Et(Ft(I)) ? A(x)("classificationPlan.multiFile.complete") : A(x)("classificationPlan.multiFile.incomplete"),
|
|
35989
|
+
severity: Et(Ft(I)) ? "success" : "warn"
|
|
35990
35990
|
}, null, 8, ["value", "severity"])
|
|
35991
35991
|
]),
|
|
35992
35992
|
_: 1
|
|
35993
35993
|
}, 8, ["header"])) : f("", !0),
|
|
35994
35994
|
d(A(Z), { style: { width: "3rem" } }, {
|
|
35995
|
-
body: g(({ data:
|
|
35995
|
+
body: g(({ data: I }) => [
|
|
35996
35996
|
d(A(i), {
|
|
35997
35997
|
icon: "ri-close-line",
|
|
35998
35998
|
text: "",
|
|
35999
35999
|
rounded: "",
|
|
36000
36000
|
severity: "danger",
|
|
36001
36001
|
size: "small",
|
|
36002
|
-
onClick: (C) => F(Ft(
|
|
36002
|
+
onClick: (C) => F(Ft(I))
|
|
36003
36003
|
}, null, 8, ["onClick"])
|
|
36004
36004
|
]),
|
|
36005
36005
|
_: 1
|
|
@@ -36009,11 +36009,11 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36009
36009
|
}, [
|
|
36010
36010
|
Ue.value ? {
|
|
36011
36011
|
name: "groupheader",
|
|
36012
|
-
fn: g(({ data:
|
|
36012
|
+
fn: g(({ data: I }) => [
|
|
36013
36013
|
s("div", ak, [
|
|
36014
|
-
s("span", null, b(mi(
|
|
36014
|
+
s("span", null, b(mi(I)), 1),
|
|
36015
36015
|
s("span", ik, " (" + b(Fl.value.filter(
|
|
36016
|
-
(C) => gl(C) === gl(
|
|
36016
|
+
(C) => gl(C) === gl(I)
|
|
36017
36017
|
).length) + ") ", 1)
|
|
36018
36018
|
])
|
|
36019
36019
|
]),
|
|
@@ -36034,23 +36034,23 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36034
36034
|
isSearchLoading: A(Yl),
|
|
36035
36035
|
dictionaries: A(Kl),
|
|
36036
36036
|
lexicons: A(Ml),
|
|
36037
|
-
"onUpdate:modelValue": L[8] || (L[8] = (
|
|
36038
|
-
onLoadSearch: L[9] || (L[9] = (
|
|
36039
|
-
onValidate: L[10] || (L[10] = (
|
|
36037
|
+
"onUpdate:modelValue": L[8] || (L[8] = (I) => St.value = I),
|
|
36038
|
+
onLoadSearch: L[9] || (L[9] = (I) => A(Qt)(I)),
|
|
36039
|
+
onValidate: L[10] || (L[10] = (I) => A(ra)(I, St.value[I.name]))
|
|
36040
36040
|
}, null, 8, ["fields", "modelValue", "requiredFields", "disabledFields", "validationErrors", "getSearchOptions", "isSearchLoading", "dictionaries", "lexicons"]),
|
|
36041
36041
|
oe.value ? (r(), u("div", KL, [
|
|
36042
36042
|
s("p", null, [
|
|
36043
36043
|
s("strong", null, b(A(x)("classificationPlan.fileToCreate")) + " :", 1)
|
|
36044
36044
|
]),
|
|
36045
36045
|
s("ul", null, [
|
|
36046
|
-
(r(!0), u(ee, null, Ye(ne.value, (
|
|
36046
|
+
(r(!0), u(ee, null, Ye(ne.value, (I, C) => (r(), u("li", { key: C }, b(I.file.name), 1))), 128))
|
|
36047
36047
|
])
|
|
36048
36048
|
])) : f("", !0)
|
|
36049
36049
|
]))
|
|
36050
36050
|
])) : f("", !0),
|
|
36051
36051
|
!Ie.value && de.value === Qe.value ? (r(), u("div", mk, [
|
|
36052
36052
|
s("p", null, b(A(x)("classificationPlan.summary.verifyBeforeDeposit")), 1),
|
|
36053
|
-
(r(!0), u(ee, null, Ye(ne.value, (
|
|
36053
|
+
(r(!0), u(ee, null, Ye(ne.value, (I, C) => (r(), N(A(o), {
|
|
36054
36054
|
key: C,
|
|
36055
36055
|
toggleable: "",
|
|
36056
36056
|
collapsed: ne.value.length > 1,
|
|
@@ -36058,12 +36058,12 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36058
36058
|
}, {
|
|
36059
36059
|
header: g(() => [
|
|
36060
36060
|
s("div", bk, [
|
|
36061
|
-
s("span", pk, b(
|
|
36062
|
-
!ct.value &&
|
|
36061
|
+
s("span", pk, b(I.file.name), 1),
|
|
36062
|
+
!ct.value && I.natureCode !== ll && Ia(C) !== I.file.name ? (r(), u(ee, { key: 0 }, [
|
|
36063
36063
|
L[21] || (L[21] = s("i", { class: "ri-arrow-right-line" }, null, -1)),
|
|
36064
36064
|
s("strong", null, b(Ia(C)), 1)
|
|
36065
36065
|
], 64)) : f("", !0),
|
|
36066
|
-
!ct.value &&
|
|
36066
|
+
!ct.value && I.natureCode !== ll ? (r(), N(A(n), {
|
|
36067
36067
|
key: 1,
|
|
36068
36068
|
value: Et(C) ? A(x)("classificationPlan.multiFile.complete") : A(x)("classificationPlan.multiFile.incomplete"),
|
|
36069
36069
|
severity: Et(C) ? "success" : "warn"
|
|
@@ -36079,11 +36079,11 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36079
36079
|
]),
|
|
36080
36080
|
s("p", null, [
|
|
36081
36081
|
s("strong", null, b(A(x)("classificationPlan.nature")) + " :", 1),
|
|
36082
|
-
K(" " + b(ct.value ||
|
|
36082
|
+
K(" " + b(ct.value || I.natureCode === ll ? A(x)("classificationPlan.noNature") : Hi(I.natureCode) || "—"), 1)
|
|
36083
36083
|
])
|
|
36084
36084
|
]),
|
|
36085
|
-
d(A(
|
|
36086
|
-
!ct.value &&
|
|
36085
|
+
d(A(X)),
|
|
36086
|
+
!ct.value && I.natureCode !== ll ? (r(), u(ee, { key: 0 }, [
|
|
36087
36087
|
s("div", yk, [
|
|
36088
36088
|
s("h5", null, b(A(x)("classificationPlan.summary.metadataToSend")), 1),
|
|
36089
36089
|
s("ul", Zk, [
|
|
@@ -36093,7 +36093,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36093
36093
|
]))), 128))
|
|
36094
36094
|
])
|
|
36095
36095
|
]),
|
|
36096
|
-
d(A(
|
|
36096
|
+
d(A(X))
|
|
36097
36097
|
], 64)) : f("", !0),
|
|
36098
36098
|
ce.value ? (r(), u("div", gk, [
|
|
36099
36099
|
s("h5", null, b(A(x)("classificationPlan.summary.movement")), 1),
|
|
@@ -36101,22 +36101,22 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36101
36101
|
s("strong", null, b(A(x)("classificationPlan.requalify.summaryFrom")) + " :", 1),
|
|
36102
36102
|
s("code", null, b(Ro.value), 1)
|
|
36103
36103
|
]),
|
|
36104
|
-
d(A(
|
|
36104
|
+
d(A(X)),
|
|
36105
36105
|
s("p", null, [
|
|
36106
36106
|
s("strong", null, b(A(x)("classificationPlan.requalify.summaryTo")) + " :", 1),
|
|
36107
36107
|
s("code", null, b(yt(C)), 1)
|
|
36108
36108
|
]),
|
|
36109
36109
|
s("p", null, [
|
|
36110
36110
|
s("strong", null, b(A(x)("classificationPlan.summary.document")) + " :", 1),
|
|
36111
|
-
K(" " + b(
|
|
36112
|
-
Ia(C) !==
|
|
36111
|
+
K(" " + b(I.file.name) + " ", 1),
|
|
36112
|
+
Ia(C) !== I.file.name ? (r(), u(ee, { key: 0 }, [
|
|
36113
36113
|
L[22] || (L[22] = s("i", { class: "ri-arrow-right-line arrow-icon" }, null, -1)),
|
|
36114
36114
|
s("strong", null, b(Ia(C)), 1)
|
|
36115
36115
|
], 64)) : f("", !0)
|
|
36116
36116
|
])
|
|
36117
36117
|
])) : (r(), u("div", vk, [
|
|
36118
36118
|
s("h5", null, b(A(x)("classificationPlan.summary.fileClassification")), 1),
|
|
36119
|
-
ct.value ||
|
|
36119
|
+
ct.value || I.natureCode === ll ? (r(), u("p", Wk, [
|
|
36120
36120
|
s("strong", null, b(A(x)("classificationPlan.summary.destinationFolder")) + " :", 1),
|
|
36121
36121
|
s("code", null, b(ze.value || "—"), 1)
|
|
36122
36122
|
])) : (r(), u("p", fk, [
|
|
@@ -36130,7 +36130,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36130
36130
|
])) : f("", !0),
|
|
36131
36131
|
d(A(l), {
|
|
36132
36132
|
visible: Xt.value,
|
|
36133
|
-
"onUpdate:visible": L[17] || (L[17] = (
|
|
36133
|
+
"onUpdate:visible": L[17] || (L[17] = (I) => Xt.value = I),
|
|
36134
36134
|
header: A(x)("classificationPlan.multiFile.metadataTitle", {
|
|
36135
36135
|
fileName: Fo.value
|
|
36136
36136
|
}),
|
|
@@ -36157,9 +36157,9 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36157
36157
|
isSearchLoading: A(Yl),
|
|
36158
36158
|
dictionaries: A(Kl),
|
|
36159
36159
|
lexicons: A(Ml),
|
|
36160
|
-
"onUpdate:modelValue": L[14] || (L[14] = (
|
|
36161
|
-
onLoadSearch: L[15] || (L[15] = (
|
|
36162
|
-
onValidate: L[16] || (L[16] = (
|
|
36160
|
+
"onUpdate:modelValue": L[14] || (L[14] = (I) => St.value = I),
|
|
36161
|
+
onLoadSearch: L[15] || (L[15] = (I) => A(Qt)(I)),
|
|
36162
|
+
onValidate: L[16] || (L[16] = (I) => A(ra)(I, St.value[I.name]))
|
|
36163
36163
|
}, null, 8, ["fields", "modelValue", "requiredFields", "disabledFields", "validationErrors", "getSearchOptions", "isSearchLoading", "dictionaries", "lexicons"])) : f("", !0)
|
|
36164
36164
|
]),
|
|
36165
36165
|
_: 1
|
|
@@ -36198,7 +36198,7 @@ const yn = /* @__PURE__ */ se(yL, [["render", NL], ["__scopeId", "data-v-563d0df
|
|
|
36198
36198
|
label: A(x)("classificationPlan.buttons.cancel"),
|
|
36199
36199
|
icon: "ri-close-line",
|
|
36200
36200
|
text: "",
|
|
36201
|
-
onClick: L[18] || (L[18] = (
|
|
36201
|
+
onClick: L[18] || (L[18] = (I) => q.value = !1)
|
|
36202
36202
|
}, null, 8, ["label"]),
|
|
36203
36203
|
de.value > ue.value ? (r(), N(A(i), {
|
|
36204
36204
|
key: 0,
|
|
@@ -36356,7 +36356,7 @@ function Ji() {
|
|
|
36356
36356
|
return;
|
|
36357
36357
|
}
|
|
36358
36358
|
a.value ? Te.staticMenuDesktopInactive = !Te.staticMenuDesktopInactive : (n.value || c.value || m.value) && (Te.overlayMenuActive = !Te.overlayMenuActive);
|
|
36359
|
-
},
|
|
36359
|
+
}, w = () => {
|
|
36360
36360
|
Te.staticMenuMobileActive = !0;
|
|
36361
36361
|
}, G = () => {
|
|
36362
36362
|
Te.staticMenuMobileActive = !1;
|
|
@@ -36387,7 +36387,7 @@ function Ji() {
|
|
|
36387
36387
|
toggleAnchor: () => {
|
|
36388
36388
|
Te.anchored = !Te.anchored, Te.anchored && (Te.sidebarActive = !0);
|
|
36389
36389
|
},
|
|
36390
|
-
showMobileMenu:
|
|
36390
|
+
showMobileMenu: w,
|
|
36391
36391
|
hideMobileMenu: G,
|
|
36392
36392
|
hideOverlayMenu: () => {
|
|
36393
36393
|
Te.overlayMenuActive = !1;
|
|
@@ -36672,7 +36672,7 @@ const Vk = {
|
|
|
36672
36672
|
n.value = !n.value;
|
|
36673
36673
|
}, T = (G) => {
|
|
36674
36674
|
c.value.toggle(G);
|
|
36675
|
-
},
|
|
36675
|
+
}, w = $(() => {
|
|
36676
36676
|
const G = [
|
|
36677
36677
|
{
|
|
36678
36678
|
label: t("sidebarMenu.profile"),
|
|
@@ -36707,7 +36707,7 @@ const Vk = {
|
|
|
36707
36707
|
portalUrl: y,
|
|
36708
36708
|
toggleMenu: W,
|
|
36709
36709
|
toggleSlimMenu: T,
|
|
36710
|
-
slimMenuItems:
|
|
36710
|
+
slimMenuItems: w,
|
|
36711
36711
|
handleLogout: o
|
|
36712
36712
|
};
|
|
36713
36713
|
}
|
|
@@ -37589,15 +37589,15 @@ const hm = /* @__PURE__ */ se(bC, [["render", YC], ["__scopeId", "data-v-101f118
|
|
|
37589
37589
|
onSidebarMouseEnter: y,
|
|
37590
37590
|
onSidebarMouseLeave: W,
|
|
37591
37591
|
applyLayoutSettings: T
|
|
37592
|
-
} = Ji(),
|
|
37593
|
-
|
|
37592
|
+
} = Ji(), w = D(window.innerWidth), G = () => {
|
|
37593
|
+
w.value = window.innerWidth;
|
|
37594
37594
|
};
|
|
37595
37595
|
Li(() => {
|
|
37596
37596
|
T(), window.addEventListener("resize", G);
|
|
37597
37597
|
}), ri(() => {
|
|
37598
37598
|
window.removeEventListener("resize", G);
|
|
37599
37599
|
});
|
|
37600
|
-
const j = $(() => l.value || i.value ? !0 : !a.value),
|
|
37600
|
+
const j = $(() => l.value || i.value ? !0 : !a.value), X = $(() => l.value || i.value ? !0 : m.value), M = $(() => l.value || i.value && m.value ? !0 : m.value && e.staticMenuDesktopInactive);
|
|
37601
37601
|
return {
|
|
37602
37602
|
layoutState: e,
|
|
37603
37603
|
containerClass: t,
|
|
@@ -37609,7 +37609,7 @@ const hm = /* @__PURE__ */ se(bC, [["render", YC], ["__scopeId", "data-v-101f118
|
|
|
37609
37609
|
isSlimPlus: c,
|
|
37610
37610
|
isStatic: m,
|
|
37611
37611
|
showSidebar: j,
|
|
37612
|
-
showMenuButton:
|
|
37612
|
+
showMenuButton: X,
|
|
37613
37613
|
showTopbarLogo: M,
|
|
37614
37614
|
onMenuToggle: p,
|
|
37615
37615
|
hideMobileMenu: h,
|
|
@@ -38748,8 +38748,8 @@ function HR({ displayContext: e, onRefresh: t }) {
|
|
|
38748
38748
|
case "view": {
|
|
38749
38749
|
if (h.currentNodeId && W._uploadContext?.parentNodeId && W._uploadContext.parentNodeId !== h.currentNodeId)
|
|
38750
38750
|
return !1;
|
|
38751
|
-
const
|
|
38752
|
-
return
|
|
38751
|
+
const w = W._uploadContext?.activeViewId;
|
|
38752
|
+
return w && w === h.viewId ? !0 : zi.matchesSite(W, h.siteId) ? zi.matchesViewConfig(W, h.viewConfig) : !1;
|
|
38753
38753
|
}
|
|
38754
38754
|
case "folder":
|
|
38755
38755
|
return zi.matchesFolder(W, h.currentNodeId);
|
|
@@ -39009,4 +39009,4 @@ export {
|
|
|
39009
39009
|
ef as y,
|
|
39010
39010
|
Ku as z
|
|
39011
39011
|
};
|
|
39012
|
-
//# sourceMappingURL=index-
|
|
39012
|
+
//# sourceMappingURL=index-2FfuwhLl.js.map
|