@linagora/linid-im-front-corelib 0.0.68 → 0.0.70

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.
@@ -1,7 +1,7 @@
1
1
  import * as jl from "vue";
2
2
  import { defineAsyncComponent as Ap, hasInjectionContext as Ms, inject as mn, getCurrentInstance as Ve, ref as te, reactive as Ur, markRaw as Wr, effectScope as Pp, isRef as Fa, isReactive as Su, toRef as Ul, toRaw as nr, nextTick as St, getCurrentScope as Lp, onScopeDispose as Rp, watch as xe, computed as h, toRefs as $c, defineComponent as Mo, openBlock as Wl, createElementBlock as Fc, Fragment as Oi, renderList as Np, unref as As, createBlock as Dp, resolveDynamicComponent as Ip, mergeProps as $p, renderSlot as Fp, createCommentVNode as Bp, onMounted as zt, onUnmounted as al, shallowRef as Vp, h as m, createVNode as zp, Text as Hp, shallowReactive as jp, provide as Lr, onBeforeUnmount as wt, Transition as an, withDirectives as Yn, onDeactivated as gr, onActivated as ua, onBeforeUpdate as Ao, onUpdated as Up, KeepAlive as mv, onBeforeMount as wu, vShow as hv, Teleport as Wp, createApp as Qp } from "vue";
3
3
  let Mi = null;
4
- function Pk(e) {
4
+ function Lk(e) {
5
5
  if (Mi !== null) {
6
6
  console.warn(
7
7
  "[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
@@ -325,7 +325,7 @@ This will fail in production.`);
325
325
  return o.$id = e, o;
326
326
  }
327
327
  let Pi = null;
328
- function Lk(e) {
328
+ function Rk(e) {
329
329
  if (Pi !== null) {
330
330
  console.warn(
331
331
  "[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
@@ -364,7 +364,7 @@ const Zp = () => eb(il()), eb = /* @__PURE__ */ ol("linidZoneStore", {
364
364
  this.zones[e]?.some(({ plugin: n }) => n === t.plugin) || this.register(e, t);
365
365
  }
366
366
  }
367
- }), Rk = /* @__PURE__ */ Mo({
367
+ }), Nk = /* @__PURE__ */ Mo({
368
368
  inheritAttrs: !1,
369
369
  __name: "LinidZoneRenderer",
370
370
  props: {
@@ -386,7 +386,7 @@ const Zp = () => eb(il()), eb = /* @__PURE__ */ ol("linidZoneStore", {
386
386
  }
387
387
  });
388
388
  let Li = null;
389
- function Nk(e) {
389
+ function Dk(e) {
390
390
  if (Li !== null) {
391
391
  console.warn(
392
392
  "[LinID CoreLib] Dayjs instance has already been initialized. Re-initialization is ignored."
@@ -3176,7 +3176,7 @@ var bb = bv(function(e) {
3176
3176
  }, t;
3177
3177
  })(wv);
3178
3178
  const xv = new wv();
3179
- function Dk(e, t) {
3179
+ function Ik(e, t) {
3180
3180
  const n = te(!1), r = te(null);
3181
3181
  let a, o = null;
3182
3182
  function i(f) {
@@ -5095,25 +5095,25 @@ en.getAdapter = zv.getAdapter;
5095
5095
  en.HttpStatusCode = js;
5096
5096
  en.default = en;
5097
5097
  const {
5098
- Axios: Bk,
5099
- AxiosError: Vk,
5100
- CanceledError: zk,
5101
- isCancel: Hk,
5102
- CancelToken: jk,
5103
- VERSION: Uk,
5104
- all: Wk,
5105
- Cancel: Qk,
5106
- isAxiosError: Yk,
5107
- spread: Kk,
5108
- toFormData: Gk,
5109
- AxiosHeaders: Xk,
5098
+ Axios: Vk,
5099
+ AxiosError: zk,
5100
+ CanceledError: Hk,
5101
+ isCancel: jk,
5102
+ CancelToken: Uk,
5103
+ VERSION: Wk,
5104
+ all: Qk,
5105
+ Cancel: Yk,
5106
+ isAxiosError: Kk,
5107
+ spread: Gk,
5108
+ toFormData: Xk,
5109
+ AxiosHeaders: Jk,
5110
5110
  HttpStatusCode: md,
5111
- formToJSON: Jk,
5112
- getAdapter: Zk,
5113
- mergeConfig: eE
5111
+ formToJSON: Zk,
5112
+ getAdapter: eE,
5113
+ mergeConfig: tE
5114
5114
  } = en;
5115
5115
  let Ni = null;
5116
- function tE(e) {
5116
+ function nE(e) {
5117
5117
  if (Ni !== null) {
5118
5118
  console.warn(
5119
5119
  "[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
@@ -5130,7 +5130,7 @@ function pr() {
5130
5130
  return Ni;
5131
5131
  }
5132
5132
  const Wv = /* @__PURE__ */ new Map();
5133
- function nE(e) {
5133
+ function rE(e) {
5134
5134
  Wv.set(e.instanceId, e);
5135
5135
  }
5136
5136
  function Qa(e) {
@@ -5141,25 +5141,25 @@ function Qa(e) {
5141
5141
  );
5142
5142
  return t;
5143
5143
  }
5144
- async function rE(e, t) {
5144
+ async function aE(e, t) {
5145
5145
  const n = Qa(e);
5146
5146
  return pr().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
5147
5147
  }
5148
- async function aE(e, t, n) {
5148
+ async function oE(e, t, n) {
5149
5149
  const r = Qa(e);
5150
5150
  return pr().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: a }) => a);
5151
5151
  }
5152
- async function oE(e, t, n) {
5152
+ async function iE(e, t, n) {
5153
5153
  const r = Qa(e);
5154
5154
  return pr().get(`/${r.apiEndpoint}`, {
5155
5155
  params: { ...t, ...n }
5156
5156
  }).then(({ data: a }) => a);
5157
5157
  }
5158
- async function iE(e, t) {
5158
+ async function lE(e, t) {
5159
5159
  const n = Qa(e);
5160
5160
  return pr().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
5161
5161
  }
5162
- async function lE(e, t) {
5162
+ async function sE(e, t) {
5163
5163
  const n = Qa(e);
5164
5164
  return pr().delete(`/${n.apiEndpoint}/${t}`);
5165
5165
  }
@@ -5179,7 +5179,7 @@ function J0(e, t) {
5179
5179
  n[r] = J0(e[r], t[r]);
5180
5180
  return n;
5181
5181
  }
5182
- function sE(e) {
5182
+ function uE(e) {
5183
5183
  const t = {};
5184
5184
  for (const [n, r] of Object.entries(e)) {
5185
5185
  const a = n.split(".");
@@ -8004,7 +8004,7 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
8004
8004
  }
8005
8005
  process.env.NODE_ENV;
8006
8006
  let Fi = null;
8007
- function uE(e) {
8007
+ function cE(e) {
8008
8008
  if (Fi !== null) {
8009
8009
  console.warn(
8010
8010
  "[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
@@ -8139,7 +8139,7 @@ function uS(e) {
8139
8139
  upToDate: C
8140
8140
  };
8141
8141
  }
8142
- function cE() {
8142
+ function dE() {
8143
8143
  function e(t) {
8144
8144
  xv.next({
8145
8145
  key: "notify",
@@ -8149,7 +8149,7 @@ function cE() {
8149
8149
  return { Notify: e };
8150
8150
  }
8151
8151
  let Bi = null;
8152
- function dE(e) {
8152
+ function fE(e) {
8153
8153
  if (Bi !== null) {
8154
8154
  console.warn(
8155
8155
  "[LinID CoreLib] Nunjucks environment has already been initialized. Re-initialization is ignored."
@@ -8165,7 +8165,7 @@ function cS() {
8165
8165
  );
8166
8166
  return Bi;
8167
8167
  }
8168
- function fE() {
8168
+ function vE() {
8169
8169
  const e = cS();
8170
8170
  function t(n, r) {
8171
8171
  return typeof n == "string" ? e.renderString(n, r) : Array.isArray(n) ? n.map((a) => t(a, r)) : n !== null && typeof n == "object" && Object.getPrototypeOf(n) === Object.prototype ? Object.fromEntries(
@@ -8179,7 +8179,7 @@ function fE() {
8179
8179
  render: t
8180
8180
  };
8181
8181
  }
8182
- function vE() {
8182
+ function mE() {
8183
8183
  function e(n) {
8184
8184
  return {
8185
8185
  page: (n.page || 1) - 1,
@@ -28234,7 +28234,7 @@ Object.assign(HC, Mg);
28234
28234
  var jC = ["ok", "hide"];
28235
28235
  fg(jC);
28236
28236
  const qr = "YYYY/MM/DD";
28237
- function mE() {
28237
+ function hE() {
28238
28238
  function e(n, r) {
28239
28239
  return hs.formatDate(
28240
28240
  hs.extractDate(n, r || qr),
@@ -28286,7 +28286,7 @@ function UC(e) {
28286
28286
  upToDate: (T, C) => (x) => p(x, T, C || qr)
28287
28287
  };
28288
28288
  }
28289
- function hE(e, t, n, r) {
28289
+ function gE(e, t, n, r) {
28290
28290
  const { required: a, email: o, validateFromApi: i, ...l } = UC(r), c = t.required ? [a] : [];
28291
28291
  return n.forEach((v) => {
28292
28292
  if (v === "email")
@@ -28297,7 +28297,7 @@ function hE(e, t, n, r) {
28297
28297
  }
28298
28298
  }), t.hasValidations && c.push(i(e, t.name)), c;
28299
28299
  }
28300
- function gE() {
28300
+ function pE() {
28301
28301
  function e(t) {
28302
28302
  return t.map((n) => ({
28303
28303
  type: n.type,
@@ -28311,7 +28311,7 @@ function gE() {
28311
28311
  };
28312
28312
  }
28313
28313
  let rl = null;
28314
- function pE(e) {
28314
+ function bE(e) {
28315
28315
  if (rl !== null) {
28316
28316
  console.warn(
28317
28317
  "[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
@@ -28646,14 +28646,14 @@ const QC = [
28646
28646
  "transitionShow",
28647
28647
  "transitionHide",
28648
28648
  "transitionDuration"
28649
- ], mk = [
28649
+ ], mk = ["view", "container"], hk = [
28650
28650
  "separator",
28651
28651
  "padding",
28652
28652
  "tag",
28653
28653
  "bordered",
28654
28654
  "dense",
28655
28655
  "dark"
28656
- ], hk = [
28656
+ ], gk = [
28657
28657
  "insetLevel",
28658
28658
  "tag",
28659
28659
  "activeClass",
@@ -28663,18 +28663,18 @@ const QC = [
28663
28663
  "focused",
28664
28664
  "dark",
28665
28665
  "dense"
28666
- ], gk = [
28666
+ ], pk = [
28667
28667
  "avatar",
28668
28668
  "thumbnail",
28669
28669
  "side",
28670
28670
  "top",
28671
28671
  "noWrap"
28672
- ], pk = [
28672
+ ], bk = [
28673
28673
  "autofocus",
28674
28674
  "noErrorFocus",
28675
28675
  "noResetFocus",
28676
28676
  "greedy"
28677
- ], bk = ["lines", "overline", "caption", "header"], yk = ["inlineActions", "dense", "rounded", "dark"], _k = [
28677
+ ], yk = ["lines", "overline", "caption", "header"], _k = ["inlineActions", "dense", "rounded", "dark"], Sk = [
28678
28678
  "contextMenu",
28679
28679
  "touchPosition",
28680
28680
  "persistent",
@@ -28696,7 +28696,7 @@ const QC = [
28696
28696
  "transitionShow",
28697
28697
  "transitionHide",
28698
28698
  "transitionDuration"
28699
- ], Sk = [
28699
+ ], wk = [
28700
28700
  "tickStrategy",
28701
28701
  "noSelectionUnset",
28702
28702
  "defaultExpandAll",
@@ -28710,7 +28710,7 @@ const QC = [
28710
28710
  "dense",
28711
28711
  "dark",
28712
28712
  "duration"
28713
- ], wk = [
28713
+ ], xk = [
28714
28714
  "horizontal",
28715
28715
  "limits",
28716
28716
  "modelValue",
@@ -28725,7 +28725,7 @@ const QC = [
28725
28725
  ], fv = {
28726
28726
  "q-avatar": ZC,
28727
28727
  "q-badge": ek,
28728
- "q-banner": yk,
28728
+ "q-banner": _k,
28729
28729
  "q-btn": QC,
28730
28730
  "q-btn-dropdown": vk,
28731
28731
  "q-card": nk,
@@ -28733,16 +28733,17 @@ const QC = [
28733
28733
  "q-date": lk,
28734
28734
  "q-dialog": dk,
28735
28735
  "q-file": uk,
28736
- "q-form": pk,
28736
+ "q-form": bk,
28737
28737
  "q-header": GC,
28738
28738
  "q-icon": ak,
28739
28739
  "q-img": sk,
28740
28740
  "q-input": ik,
28741
- "q-item": hk,
28742
- "q-item-label": bk,
28743
- "q-item-section": gk,
28744
- "q-list": mk,
28745
- "q-menu": _k,
28741
+ "q-item": gk,
28742
+ "q-item-label": yk,
28743
+ "q-item-section": pk,
28744
+ "q-layout": mk,
28745
+ "q-list": hk,
28746
+ "q-menu": Sk,
28746
28747
  "q-route-tab": KC,
28747
28748
  "q-select": ck,
28748
28749
  "q-spinner": fk,
@@ -28751,8 +28752,8 @@ const QC = [
28751
28752
  "q-toggle": ok,
28752
28753
  "q-toolbar": XC,
28753
28754
  "q-toolbar-title": JC,
28754
- "q-tree": Sk,
28755
- "q-splitter": wk
28755
+ "q-tree": wk,
28756
+ "q-splitter": xk
28756
28757
  };
28757
28758
  function vv(e, t) {
28758
28759
  return t.split(".").reduce((n, r) => {
@@ -28760,7 +28761,7 @@ function vv(e, t) {
28760
28761
  return n[r];
28761
28762
  }, e);
28762
28763
  }
28763
- function xk(e, t, n) {
28764
+ function Ck(e, t, n) {
28764
28765
  let r = vv(e, `${t}.${n}`);
28765
28766
  if (r === void 0 && (r = vv(e, `default.${n}`)), typeof r == "object")
28766
28767
  throw new Error(
@@ -28768,39 +28769,39 @@ function xk(e, t, n) {
28768
28769
  );
28769
28770
  return r;
28770
28771
  }
28771
- function Ck(e) {
28772
+ function kk(e) {
28772
28773
  if (!(e in fv))
28773
28774
  throw new Error(
28774
28775
  `[UiDesign] The component '${e}' is not supported for UI design retrieval.`
28775
28776
  );
28776
28777
  return fv[e];
28777
28778
  }
28778
- function bE() {
28779
+ function yE() {
28779
28780
  const e = h(() => WC());
28780
28781
  function t(n, r, a) {
28781
- const o = Ck(r), i = {};
28782
+ const o = kk(r), i = {};
28782
28783
  for (const l of o) {
28783
- const c = a?.[l] ?? xk(e.value, n, `${r}.${String(l)}`);
28784
+ const c = a?.[l] ?? Ck(e.value, n, `${r}.${String(l)}`);
28784
28785
  c !== void 0 && (i[l] = c);
28785
28786
  }
28786
28787
  return i;
28787
28788
  }
28788
28789
  return { ui: t };
28789
28790
  }
28790
- async function kk() {
28791
+ async function Ek() {
28791
28792
  return (await pr().get("/metadata/entities")).data;
28792
28793
  }
28793
- async function yE(e) {
28794
+ async function _E(e) {
28794
28795
  return (await pr().get(
28795
28796
  `/metadata/entities/${e}`
28796
28797
  )).data;
28797
28798
  }
28798
- async function Ek() {
28799
+ async function Tk() {
28799
28800
  return (await pr().get(
28800
28801
  "/metadata/routes"
28801
28802
  )).data;
28802
28803
  }
28803
- const _E = () => Tk(il()), Tk = /* @__PURE__ */ ol("LinidConfigurationStore", {
28804
+ const SE = () => qk(il()), qk = /* @__PURE__ */ ol("LinidConfigurationStore", {
28804
28805
  state: () => ({
28805
28806
  entities: [],
28806
28807
  apiEndpoints: [],
@@ -28831,8 +28832,8 @@ const _E = () => Tk(il()), Tk = /* @__PURE__ */ ol("LinidConfigurationStore", {
28831
28832
  this.loading = !0, this.error = null;
28832
28833
  try {
28833
28834
  const [e, t] = await Promise.all([
28834
- kk(),
28835
- Ek()
28835
+ Ek(),
28836
+ Tk()
28836
28837
  ]);
28837
28838
  this.entities = e, this.apiEndpoints = t;
28838
28839
  } catch (e) {
@@ -28842,7 +28843,7 @@ const _E = () => Tk(il()), Tk = /* @__PURE__ */ ol("LinidConfigurationStore", {
28842
28843
  }
28843
28844
  }
28844
28845
  }
28845
- }), SE = () => qk(il()), qk = /* @__PURE__ */ ol("LinidUiStore", {
28846
+ }), wE = () => Ok(il()), Ok = /* @__PURE__ */ ol("LinidUiStore", {
28846
28847
  state: () => ({
28847
28848
  mainNavigationItems: []
28848
28849
  }),
@@ -28855,7 +28856,7 @@ const _E = () => Tk(il()), Tk = /* @__PURE__ */ ol("LinidConfigurationStore", {
28855
28856
  this.mainNavigationItems.push(...e);
28856
28857
  }
28857
28858
  }
28858
- }), wE = () => Ok(il()), Ok = /* @__PURE__ */ ol("LinidUserStore", {
28859
+ }), xE = () => Mk(il()), Mk = /* @__PURE__ */ ol("LinidUserStore", {
28859
28860
  /**
28860
28861
  * State properties of the user store.
28861
28862
  * @returns The initial state of the user store.
@@ -28882,8 +28883,8 @@ const _E = () => Tk(il()), Tk = /* @__PURE__ */ ol("LinidConfigurationStore", {
28882
28883
  }
28883
28884
  }
28884
28885
  });
28885
- var Mk = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Mk || {});
28886
- class xE {
28886
+ var Ak = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Ak || {});
28887
+ class CE {
28887
28888
  /**
28888
28889
  * Unique identifier for the module.
28889
28890
  *
@@ -28987,21 +28988,21 @@ class xE {
28987
28988
  }
28988
28989
  }
28989
28990
  export {
28990
- xE as BasicRemoteModule,
28991
+ CE as BasicRemoteModule,
28991
28992
  qa as DEFAULT_DATE_FORMAT,
28992
- Rk as LinidZoneRenderer,
28993
- Mk as ModuleLifecyclePhase,
28993
+ Nk as LinidZoneRenderer,
28994
+ Ak as ModuleLifecyclePhase,
28994
28995
  qr as QDATE_DEFAULT_MASK,
28995
28996
  Qv as deepEqual,
28996
28997
  Us as deepEqualUnordered,
28997
- lE as deleteEntityById,
28998
- sE as fromDot,
28999
- Ek as getApiEndpointsConfiguration,
28998
+ sE as deleteEntityById,
28999
+ uE as fromDot,
29000
+ Tk as getApiEndpointsConfiguration,
29000
29001
  tb as getDayjsInstance,
29001
- oE as getEntities,
29002
- kk as getEntitiesConfiguration,
29003
- iE as getEntityById,
29004
- yE as getEntityConfiguration,
29002
+ iE as getEntities,
29003
+ Ek as getEntitiesConfiguration,
29004
+ lE as getEntityById,
29005
+ _E as getEntityConfiguration,
29005
29006
  pr as getHttpClient,
29006
29007
  oS as getI18nInstance,
29007
29008
  Yp as getModuleFederation,
@@ -29012,32 +29013,32 @@ export {
29012
29013
  Va as isObject,
29013
29014
  Kp as loadAsyncComponent,
29014
29015
  J0 as merge,
29015
- nE as registerModuleHostConfiguration,
29016
+ rE as registerModuleHostConfiguration,
29016
29017
  Z0 as renameKeys,
29017
- rE as saveEntity,
29018
- Nk as setDayjsInstance,
29019
- tE as setHttpClient,
29020
- uE as setI18nInstance,
29021
- Pk as setModuleFederation,
29022
- dE as setNunjucksEnv,
29023
- Lk as setPiniaStore,
29024
- pE as setUiDesign,
29018
+ aE as saveEntity,
29019
+ Dk as setDayjsInstance,
29020
+ nE as setHttpClient,
29021
+ cE as setI18nInstance,
29022
+ Lk as setModuleFederation,
29023
+ fE as setNunjucksEnv,
29024
+ Rk as setPiniaStore,
29025
+ bE as setUiDesign,
29025
29026
  xv as uiEventSubject,
29026
- aE as updateEntity,
29027
+ oE as updateEntity,
29027
29028
  nb as useDayjs,
29028
- Dk as useDialog,
29029
+ Ik as useDialog,
29029
29030
  uS as useFieldValidation,
29030
- _E as useLinidConfigurationStore,
29031
- SE as useLinidUiStore,
29032
- wE as useLinidUserStore,
29031
+ SE as useLinidConfigurationStore,
29032
+ wE as useLinidUiStore,
29033
+ xE as useLinidUserStore,
29033
29034
  Zp as useLinidZoneStore,
29034
- cE as useNotify,
29035
- fE as useNunjucks,
29036
- vE as usePagination,
29037
- mE as useQuasarDate,
29035
+ dE as useNotify,
29036
+ vE as useNunjucks,
29037
+ mE as usePagination,
29038
+ hE as useQuasarDate,
29038
29039
  UC as useQuasarFieldValidation,
29039
- hE as useQuasarRules,
29040
+ gE as useQuasarRules,
29040
29041
  iS as useScopedI18n,
29041
- gE as useTree,
29042
- bE as useUiDesign
29042
+ pE as useTree,
29043
+ yE as useUiDesign
29043
29044
  };