@pristy/pristy-libvue 0.16.2 → 0.16.3
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/pristy-libvue.mjs +52 -41
- package/dist/pristy-libvue.umd.js +6 -6
- package/package.json +1 -1
package/dist/pristy-libvue.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlfrescoApi as Wa, ContentApi as Ea, UploadApi as wa, RenditionsApi as xa, NodesApi as Ga, SitesApi as ha, SearchApi as ka, PeopleApi as Sa, FavoritesApi as Ua, TrashcanApi as Xa, GroupsApi as va, SharedlinksApi as Ra, VersionsApi as Qa, ActionsApi as Ja, CategoriesApi as Fa, CommentsApi as Ba, DownloadsApi as fa, TagsApi as Va, AspectsApi as Ha, TypesApi as Pa, WebscriptApi as _a } from "@alfresco/js-api";
|
|
2
|
-
import { h as fI, getCurrentInstance as qe, effectScope as VI, inject as HI, onMounted as Ka, onUnmounted as $a, shallowRef as qa, ref as
|
|
3
|
-
const B = new Wa(), nt = new Ea(B), ss = new wa(B), qM = new xa(B),
|
|
2
|
+
import { h as fI, getCurrentInstance as qe, effectScope as VI, inject as HI, onMounted as Ka, onUnmounted as $a, shallowRef as qa, ref as ne, computed as me, onBeforeMount as es, watch as Ut, Fragment as ts, isRef as et, createVNode as Ms, Text as Is, markRaw as Fe, reactive as cs, isReactive as EM, toRef as tM, toRaw as gs, nextTick as KM, getCurrentScope as Ns, onScopeDispose as ls, toRefs as $M, openBlock as rs, createElementBlock as as } from "vue";
|
|
3
|
+
const B = new Wa(), nt = new Ea(B), ss = new wa(B), qM = new xa(B), ue = new Ga(B), re = new ha(B), is = new ka(B), dt = new Sa(B), MM = new Ua(B), po = new Xa(B), PI = new va(B), eI = new Ra(B), jt = new Qa(B), Lo = new Ja(B), Yo = new Fa(B), Wo = new Ba(B), Eo = new fa(B), wo = new Va(B), xo = new Ha(B), Go = new Pa(B), bs = new _a(B);
|
|
4
4
|
/*!
|
|
5
5
|
* shared v9.2.2
|
|
6
6
|
* (c) 2022 kazuya kawaguchi
|
|
@@ -1809,11 +1809,11 @@ const Bi = () => {
|
|
|
1809
1809
|
function SM(e = {}, M) {
|
|
1810
1810
|
const { __root: t } = e, I = t === void 0;
|
|
1811
1811
|
let c = v(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1812
|
-
const g =
|
|
1812
|
+
const g = ne(
|
|
1813
1813
|
t && c ? t.locale.value : E(e.locale) ? e.locale : Lt
|
|
1814
|
-
), N =
|
|
1814
|
+
), N = ne(
|
|
1815
1815
|
t && c ? t.fallbackLocale.value : E(e.fallbackLocale) || V(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : g.value
|
|
1816
|
-
), l =
|
|
1816
|
+
), l = ne(Ht(g.value, e)), r = ne(k(e.datetimeFormats) ? e.datetimeFormats : { [g.value]: {} }), i = ne(k(e.numberFormats) ? e.numberFormats : { [g.value]: {} });
|
|
1817
1817
|
let u = t ? t.missingWarn : v(e.missingWarn) || he(e.missingWarn) ? e.missingWarn : !0, n = t ? t.fallbackWarn : v(e.fallbackWarn) || he(e.fallbackWarn) ? e.fallbackWarn : !0, m = t ? t.fallbackRoot : v(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, y = P(e.missing) ? e.missing : null, Z = P(e.missing) ? OI(e.missing) : null, w = P(e.postTranslation) ? e.postTranslation : null, o = t ? t.warnHtmlMessage : v(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, D = !!e.escapeParameter;
|
|
1818
1818
|
const p = t ? t.modifiers : k(e.modifiers) ? e.modifiers : {};
|
|
1819
1819
|
let T = e.pluralRules || t && t.pluralRules, j;
|
|
@@ -1850,17 +1850,17 @@ function SM(e = {}, M) {
|
|
|
1850
1850
|
i.value
|
|
1851
1851
|
];
|
|
1852
1852
|
}
|
|
1853
|
-
const U =
|
|
1853
|
+
const U = me({
|
|
1854
1854
|
get: () => g.value,
|
|
1855
1855
|
set: (z) => {
|
|
1856
1856
|
g.value = z, j.locale = g.value;
|
|
1857
1857
|
}
|
|
1858
|
-
}), L =
|
|
1858
|
+
}), L = me({
|
|
1859
1859
|
get: () => N.value,
|
|
1860
1860
|
set: (z) => {
|
|
1861
1861
|
N.value = z, j.fallbackLocale = N.value, mt(j, g.value, z);
|
|
1862
1862
|
}
|
|
1863
|
-
}), W =
|
|
1863
|
+
}), W = me(() => l.value), X = /* @__PURE__ */ me(() => r.value), H = /* @__PURE__ */ me(() => i.value);
|
|
1864
1864
|
function te() {
|
|
1865
1865
|
return P(w) ? w : null;
|
|
1866
1866
|
}
|
|
@@ -2924,11 +2924,11 @@ function Db(e, M, t, I = {}) {
|
|
|
2924
2924
|
const c = M === "local", g = qa(null);
|
|
2925
2925
|
if (c && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
|
2926
2926
|
throw K(R.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
|
2927
|
-
const N = v(I.inheritLocale) ? I.inheritLocale : !0, l =
|
|
2927
|
+
const N = v(I.inheritLocale) ? I.inheritLocale : !0, l = ne(
|
|
2928
2928
|
c && N ? t.locale.value : E(I.locale) ? I.locale : Lt
|
|
2929
|
-
), r =
|
|
2929
|
+
), r = ne(
|
|
2930
2930
|
c && N ? t.fallbackLocale.value : E(I.fallbackLocale) || V(I.fallbackLocale) || k(I.fallbackLocale) || I.fallbackLocale === !1 ? I.fallbackLocale : l.value
|
|
2931
|
-
), i =
|
|
2931
|
+
), i = ne(Ht(l.value, I)), u = ne(k(I.datetimeFormats) ? I.datetimeFormats : { [l.value]: {} }), n = ne(k(I.numberFormats) ? I.numberFormats : { [l.value]: {} }), m = c ? t.missingWarn : v(I.missingWarn) || he(I.missingWarn) ? I.missingWarn : !0, O = c ? t.fallbackWarn : v(I.fallbackWarn) || he(I.fallbackWarn) ? I.fallbackWarn : !0, y = c ? t.fallbackRoot : v(I.fallbackRoot) ? I.fallbackRoot : !0, Z = !!I.fallbackFormat, w = P(I.missing) ? I.missing : null, o = P(I.postTranslation) ? I.postTranslation : null, D = c ? t.warnHtmlMessage : v(I.warnHtmlMessage) ? I.warnHtmlMessage : !0, p = !!I.escapeParameter, T = c ? t.modifiers : k(I.modifiers) ? I.modifiers : {}, j = I.pluralRules || c && t.pluralRules;
|
|
2932
2932
|
function x() {
|
|
2933
2933
|
return [
|
|
2934
2934
|
l.value,
|
|
@@ -2938,17 +2938,17 @@ function Db(e, M, t, I = {}) {
|
|
|
2938
2938
|
n.value
|
|
2939
2939
|
];
|
|
2940
2940
|
}
|
|
2941
|
-
const d =
|
|
2941
|
+
const d = me({
|
|
2942
2942
|
get: () => g.value ? g.value.locale.value : l.value,
|
|
2943
2943
|
set: (a) => {
|
|
2944
2944
|
g.value && (g.value.locale.value = a), l.value = a;
|
|
2945
2945
|
}
|
|
2946
|
-
}), U =
|
|
2946
|
+
}), U = me({
|
|
2947
2947
|
get: () => g.value ? g.value.fallbackLocale.value : r.value,
|
|
2948
2948
|
set: (a) => {
|
|
2949
2949
|
g.value && (g.value.fallbackLocale.value = a), r.value = a;
|
|
2950
2950
|
}
|
|
2951
|
-
}), L =
|
|
2951
|
+
}), L = me(() => g.value ? g.value.messages.value : i.value), W = me(() => u.value), X = me(() => n.value);
|
|
2952
2952
|
function H() {
|
|
2953
2953
|
return g.value ? g.value.getPostTranslationHandler() : o;
|
|
2954
2954
|
}
|
|
@@ -4765,10 +4765,18 @@ class kb {
|
|
|
4765
4765
|
"path"
|
|
4766
4766
|
]
|
|
4767
4767
|
};
|
|
4768
|
-
return
|
|
4768
|
+
return ue.getNode(M, t).then((I) => I.entry).catch((I) => I);
|
|
4769
|
+
}
|
|
4770
|
+
getNodeContent(M, t) {
|
|
4771
|
+
const I = {
|
|
4772
|
+
attachment: t
|
|
4773
|
+
};
|
|
4774
|
+
return ue.getNodeContent(M, I).catch((c) => {
|
|
4775
|
+
Q.getVersionContentError(c);
|
|
4776
|
+
});
|
|
4769
4777
|
}
|
|
4770
4778
|
createNode(M, t) {
|
|
4771
|
-
return
|
|
4779
|
+
return ue.createNode(M, t).catch((I) => {
|
|
4772
4780
|
Q.createNodeError(I);
|
|
4773
4781
|
});
|
|
4774
4782
|
}
|
|
@@ -4783,7 +4791,7 @@ class kb {
|
|
|
4783
4791
|
"isLocked"
|
|
4784
4792
|
]
|
|
4785
4793
|
};
|
|
4786
|
-
return
|
|
4794
|
+
return ue.listNodeChildren(M, t).then((I) => {
|
|
4787
4795
|
let c = I.list.entries.map((N) => N.entry), g = c.filter(
|
|
4788
4796
|
(N) => N.name === "documentLibrary"
|
|
4789
4797
|
)[0];
|
|
@@ -4794,13 +4802,13 @@ class kb {
|
|
|
4794
4802
|
}).catch((I) => I);
|
|
4795
4803
|
}
|
|
4796
4804
|
updateNode(M, t) {
|
|
4797
|
-
return
|
|
4805
|
+
return ue.updateNode(M, t).catch((I) => {
|
|
4798
4806
|
Q.updateNodeError(I);
|
|
4799
4807
|
});
|
|
4800
4808
|
}
|
|
4801
4809
|
deleteNode(M, t) {
|
|
4802
4810
|
const I = {};
|
|
4803
|
-
return
|
|
4811
|
+
return ue.deleteNode(M, I).catch((c) => {
|
|
4804
4812
|
Q.deleteNodeError(c, t);
|
|
4805
4813
|
});
|
|
4806
4814
|
}
|
|
@@ -4808,7 +4816,7 @@ class kb {
|
|
|
4808
4816
|
const t = {
|
|
4809
4817
|
include: ["isFavorite", "properties", "path"]
|
|
4810
4818
|
};
|
|
4811
|
-
return
|
|
4819
|
+
return ue.listParents(M, t).then((I) => {
|
|
4812
4820
|
let c = I.list.entries.map((N) => N.entry), g = c[0];
|
|
4813
4821
|
return g && g.name === "documentLibrary" ? this.getParents(g.id).then((N) => ({
|
|
4814
4822
|
documentLibrary: g,
|
|
@@ -4825,14 +4833,14 @@ class kb {
|
|
|
4825
4833
|
"permissions"
|
|
4826
4834
|
]
|
|
4827
4835
|
};
|
|
4828
|
-
return
|
|
4836
|
+
return ue.listNodeChildren(M, t).then((I) => I.list.entries.map((g) => g.entry).find((g) => g.name === "documentLibrary")).catch((I) => I);
|
|
4829
4837
|
}
|
|
4830
4838
|
updateContentNode(M, t, I, c) {
|
|
4831
4839
|
let g = {
|
|
4832
4840
|
majorVersion: I,
|
|
4833
4841
|
comment: c
|
|
4834
4842
|
};
|
|
4835
|
-
return
|
|
4843
|
+
return ue.updateNodeContent(M, t, g).catch((N) => {
|
|
4836
4844
|
Q.updateContentNodeError(N);
|
|
4837
4845
|
});
|
|
4838
4846
|
}
|
|
@@ -4845,7 +4853,7 @@ class kb {
|
|
|
4845
4853
|
}, g = {
|
|
4846
4854
|
include: ["path"]
|
|
4847
4855
|
};
|
|
4848
|
-
return
|
|
4856
|
+
return ue.copyNode(M, c, g).catch((N) => {
|
|
4849
4857
|
Q.copyNodeError(N);
|
|
4850
4858
|
});
|
|
4851
4859
|
}
|
|
@@ -4858,7 +4866,7 @@ class kb {
|
|
|
4858
4866
|
}, g = {
|
|
4859
4867
|
include: ["path"]
|
|
4860
4868
|
};
|
|
4861
|
-
return
|
|
4869
|
+
return ue.moveNode(M, c, g).catch((N) => {
|
|
4862
4870
|
Q.moveNodeError(N);
|
|
4863
4871
|
});
|
|
4864
4872
|
}
|
|
@@ -5031,7 +5039,7 @@ class Sb {
|
|
|
5031
5039
|
"pm:typeEspace": t
|
|
5032
5040
|
}
|
|
5033
5041
|
};
|
|
5034
|
-
return
|
|
5042
|
+
return ue.updateNode(M, I).catch((c) => {
|
|
5035
5043
|
Q.updateWorkspaceTypeError(c);
|
|
5036
5044
|
});
|
|
5037
5045
|
}
|
|
@@ -6477,7 +6485,7 @@ const qu = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
6477
6485
|
function eo(e) {
|
|
6478
6486
|
return !Ve(e) || !e.hasOwnProperty(qu);
|
|
6479
6487
|
}
|
|
6480
|
-
const { assign:
|
|
6488
|
+
const { assign: oe } = Object;
|
|
6481
6489
|
function QI(e) {
|
|
6482
6490
|
return !!(et(e) && e.effect);
|
|
6483
6491
|
}
|
|
@@ -6486,8 +6494,8 @@ function JI(e, M, t, I) {
|
|
|
6486
6494
|
let r;
|
|
6487
6495
|
function i() {
|
|
6488
6496
|
!l && (process.env.NODE_ENV === "production" || !I) && (t.state.value[e] = c ? c() : {});
|
|
6489
|
-
const u = process.env.NODE_ENV !== "production" && I ? $M(
|
|
6490
|
-
return
|
|
6497
|
+
const u = process.env.NODE_ENV !== "production" && I ? $M(ne(c ? c() : {}).value) : $M(t.state.value[e]);
|
|
6498
|
+
return oe(u, g, Object.keys(N || {}).reduce((n, m) => (process.env.NODE_ENV !== "production" && m in u && console.warn(`[\u{1F34D}]: A getter cannot have the same name as another state property. Rename one of them. Found with "${m}" in store "${e}".`), n[m] = Fe(me(() => {
|
|
6491
6499
|
Rt(t);
|
|
6492
6500
|
const O = t._s.get(e);
|
|
6493
6501
|
return N[m].call(O, O);
|
|
@@ -6497,7 +6505,7 @@ function JI(e, M, t, I) {
|
|
|
6497
6505
|
}
|
|
6498
6506
|
function WM(e, M, t = {}, I, c, g) {
|
|
6499
6507
|
let N;
|
|
6500
|
-
const l =
|
|
6508
|
+
const l = oe({ actions: {} }, t);
|
|
6501
6509
|
if (process.env.NODE_ENV !== "production" && !I._e.active)
|
|
6502
6510
|
throw new Error("Pinia destroyed");
|
|
6503
6511
|
const r = {
|
|
@@ -6509,7 +6517,7 @@ function WM(e, M, t = {}, I, c, g) {
|
|
|
6509
6517
|
let i, u, n = Fe([]), m = Fe([]), O;
|
|
6510
6518
|
const y = I.state.value[e];
|
|
6511
6519
|
!g && !y && (process.env.NODE_ENV === "production" || !c) && (I.state.value[e] = {});
|
|
6512
|
-
const Z =
|
|
6520
|
+
const Z = ne({});
|
|
6513
6521
|
let w;
|
|
6514
6522
|
function o(L) {
|
|
6515
6523
|
let W;
|
|
@@ -6531,7 +6539,7 @@ function WM(e, M, t = {}, I, c, g) {
|
|
|
6531
6539
|
const D = g ? function() {
|
|
6532
6540
|
const { state: W } = t, X = W ? W() : {};
|
|
6533
6541
|
this.$patch((H) => {
|
|
6534
|
-
|
|
6542
|
+
oe(H, X);
|
|
6535
6543
|
});
|
|
6536
6544
|
} : process.env.NODE_ENV !== "production" ? () => {
|
|
6537
6545
|
throw new Error(`\u{1F34D}: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
@@ -6583,11 +6591,11 @@ function WM(e, M, t = {}, I, c, g) {
|
|
|
6583
6591
|
type: zt.direct,
|
|
6584
6592
|
events: O
|
|
6585
6593
|
}, te);
|
|
6586
|
-
},
|
|
6594
|
+
}, oe({}, r, W)));
|
|
6587
6595
|
return X;
|
|
6588
6596
|
},
|
|
6589
6597
|
$dispose: p
|
|
6590
|
-
}, d = cs(process.env.NODE_ENV !== "production" || bM ?
|
|
6598
|
+
}, d = cs(process.env.NODE_ENV !== "production" || bM ? oe(
|
|
6591
6599
|
{
|
|
6592
6600
|
_hmrPayload: j,
|
|
6593
6601
|
_customProperties: Fe(/* @__PURE__ */ new Set())
|
|
@@ -6606,13 +6614,13 @@ function WM(e, M, t = {}, I, c, g) {
|
|
|
6606
6614
|
} else
|
|
6607
6615
|
process.env.NODE_ENV !== "production" && QI(W) && (j.getters[L] = g ? t.getters[L] : W, PM && (U._getters || (U._getters = Fe([]))).push(L));
|
|
6608
6616
|
}
|
|
6609
|
-
if (
|
|
6617
|
+
if (oe(d, U), oe(gs(d), U), Object.defineProperty(d, "$state", {
|
|
6610
6618
|
get: () => process.env.NODE_ENV !== "production" && c ? Z.value : I.state.value[e],
|
|
6611
6619
|
set: (L) => {
|
|
6612
6620
|
if (process.env.NODE_ENV !== "production" && c)
|
|
6613
6621
|
throw new Error("cannot set hotState");
|
|
6614
6622
|
o((W) => {
|
|
6615
|
-
|
|
6623
|
+
oe(W, L);
|
|
6616
6624
|
});
|
|
6617
6625
|
}
|
|
6618
6626
|
}), process.env.NODE_ENV !== "production" && (d._hotUpdate = Fe((L) => {
|
|
@@ -6632,7 +6640,7 @@ function WM(e, M, t = {}, I, c, g) {
|
|
|
6632
6640
|
xt(d, W, T(W, X));
|
|
6633
6641
|
}
|
|
6634
6642
|
for (const W in L._hmrPayload.getters) {
|
|
6635
|
-
const X = L._hmrPayload.getters[W], H = g ?
|
|
6643
|
+
const X = L._hmrPayload.getters[W], H = g ? me(() => (Rt(I), X.call(d, d))) : X;
|
|
6636
6644
|
xt(d, W, H);
|
|
6637
6645
|
}
|
|
6638
6646
|
Object.keys(d._hmrPayload.getters).forEach((W) => {
|
|
@@ -6647,7 +6655,7 @@ function WM(e, M, t = {}, I, c, g) {
|
|
|
6647
6655
|
enumerable: !1
|
|
6648
6656
|
};
|
|
6649
6657
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((W) => {
|
|
6650
|
-
Object.defineProperty(d, W,
|
|
6658
|
+
Object.defineProperty(d, W, oe({ value: d[W] }, L));
|
|
6651
6659
|
});
|
|
6652
6660
|
}
|
|
6653
6661
|
return I._p.forEach((L) => {
|
|
@@ -6658,9 +6666,9 @@ function WM(e, M, t = {}, I, c, g) {
|
|
|
6658
6666
|
pinia: I,
|
|
6659
6667
|
options: l
|
|
6660
6668
|
}));
|
|
6661
|
-
Object.keys(W || {}).forEach((X) => d._customProperties.add(X)),
|
|
6669
|
+
Object.keys(W || {}).forEach((X) => d._customProperties.add(X)), oe(d, W);
|
|
6662
6670
|
} else
|
|
6663
|
-
|
|
6671
|
+
oe(d, N.run(() => L({
|
|
6664
6672
|
store: d,
|
|
6665
6673
|
app: I._a,
|
|
6666
6674
|
pinia: I,
|
|
@@ -6684,7 +6692,7 @@ This will fail in production.`);
|
|
|
6684
6692
|
l = Dt, l._s.has(I) || (g ? WM(I, M, c, l) : JI(I, c, l), process.env.NODE_ENV !== "production" && (N._pinia = l));
|
|
6685
6693
|
const u = l._s.get(I);
|
|
6686
6694
|
if (process.env.NODE_ENV !== "production" && r) {
|
|
6687
|
-
const n = "__hot:" + I, m = g ? WM(n, M, c, l, !0) : JI(n,
|
|
6695
|
+
const n = "__hot:" + I, m = g ? WM(n, M, c, l, !0) : JI(n, oe({}, c), l, !0);
|
|
6688
6696
|
r._hotUpdate(m), delete l.state.value[n], l._s.delete(n);
|
|
6689
6697
|
}
|
|
6690
6698
|
if (process.env.NODE_ENV !== "production" && PM && i && i.proxy && !r) {
|
|
@@ -6744,6 +6752,9 @@ const Qt = qt({
|
|
|
6744
6752
|
getters: {
|
|
6745
6753
|
displayName(e) {
|
|
6746
6754
|
return e.person == null ? "" : e.person.displayName;
|
|
6755
|
+
},
|
|
6756
|
+
me(e) {
|
|
6757
|
+
return e.person == null ? null : e.person;
|
|
6747
6758
|
}
|
|
6748
6759
|
},
|
|
6749
6760
|
actions: {
|
|
@@ -7259,7 +7270,7 @@ export {
|
|
|
7259
7270
|
vo as iconeService,
|
|
7260
7271
|
Qo as menuService,
|
|
7261
7272
|
Zb as messages,
|
|
7262
|
-
|
|
7273
|
+
ue as nodesApi,
|
|
7263
7274
|
dt as peopleApi,
|
|
7264
7275
|
Jo as peopleService,
|
|
7265
7276
|
qM as renditionsApi,
|