@linagora/linid-im-front-corelib 0.0.75 → 0.0.76

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 Np, hasInjectionContext as As, inject as mn, getCurrentInstance as Ve, ref as te, reactive as Ur, markRaw as Wr, effectScope as Dp, isRef as Fa, isReactive as wu, toRef as Ul, toRaw as nr, nextTick as St, getCurrentScope as Ip, onScopeDispose as $p, watch as xe, computed as h, toRefs as Vc, defineComponent as Mo, openBlock as Wl, createElementBlock as zc, Fragment as qi, renderList as Fp, unref as Ps, createBlock as Bp, resolveDynamicComponent as Vp, mergeProps as zp, renderSlot as Hp, createCommentVNode as jp, onMounted as zt, onUnmounted as al, shallowRef as Up, h as m, createVNode as Wp, Text as Qp, shallowReactive as Yp, provide as Lr, onBeforeUnmount as wt, Transition as an, withDirectives as Yn, onDeactivated as gr, onActivated as ua, onBeforeUpdate as Ao, onUpdated as Kp, KeepAlive as bv, onBeforeMount as xu, vShow as yv, Teleport as Xp, createApp as Gp } from "vue";
3
3
  let Mi = null;
4
- function Vk(e) {
4
+ function zk(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 zk(e) {
328
+ function Hk(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 rb = () => ab(il()), ab = /* @__PURE__ */ ol("linidZoneStore", {
364
364
  this.zones[e]?.some(({ plugin: n }) => n === t.plugin) || this.register(e, t);
365
365
  }
366
366
  }
367
- }), Hk = /* @__PURE__ */ Mo({
367
+ }), jk = /* @__PURE__ */ Mo({
368
368
  inheritAttrs: !1,
369
369
  __name: "LinidZoneRenderer",
370
370
  props: {
@@ -386,7 +386,7 @@ const rb = () => ab(il()), ab = /* @__PURE__ */ ol("linidZoneStore", {
386
386
  }
387
387
  });
388
388
  let Li = null;
389
- function jk(e) {
389
+ function Uk(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 wb = wv(function(e) {
3176
3176
  }, t;
3177
3177
  })(Ev);
3178
3178
  const Tv = new Ev();
3179
- function Uk(e, t) {
3179
+ function Wk(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 = Wv.getAdapter;
5095
5095
  en.HttpStatusCode = Us;
5096
5096
  en.default = en;
5097
5097
  const {
5098
- Axios: Kk,
5099
- AxiosError: Xk,
5100
- CanceledError: Gk,
5101
- isCancel: Jk,
5102
- CancelToken: Zk,
5103
- VERSION: eE,
5104
- all: tE,
5105
- Cancel: nE,
5106
- isAxiosError: rE,
5107
- spread: aE,
5108
- toFormData: oE,
5109
- AxiosHeaders: iE,
5098
+ Axios: Xk,
5099
+ AxiosError: Gk,
5100
+ CanceledError: Jk,
5101
+ isCancel: Zk,
5102
+ CancelToken: eE,
5103
+ VERSION: tE,
5104
+ all: nE,
5105
+ Cancel: rE,
5106
+ isAxiosError: aE,
5107
+ spread: oE,
5108
+ toFormData: iE,
5109
+ AxiosHeaders: lE,
5110
5110
  HttpStatusCode: pd,
5111
- formToJSON: lE,
5112
- getAdapter: sE,
5113
- mergeConfig: uE
5111
+ formToJSON: sE,
5112
+ getAdapter: uE,
5113
+ mergeConfig: cE
5114
5114
  } = en;
5115
5115
  let Ni = null;
5116
- function cE(e) {
5116
+ function dE(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 Xv = /* @__PURE__ */ new Map();
5133
- function dE(e) {
5133
+ function fE(e) {
5134
5134
  Xv.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 fE(e, t) {
5144
+ async function vE(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 vE(e, t, n) {
5148
+ async function mE(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 mE(e, t, n) {
5152
+ async function hE(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 hE(e, t) {
5158
+ async function gE(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 gE(e, t) {
5162
+ async function pE(e, t) {
5163
5163
  const n = Qa(e);
5164
5164
  return pr().delete(`/${n.apiEndpoint}/${t}`);
5165
5165
  }
@@ -5179,7 +5179,7 @@ function ny(e, t) {
5179
5179
  n[r] = ny(e[r], t[r]);
5180
5180
  return n;
5181
5181
  }
5182
- function pE(e) {
5182
+ function bE(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 bE(e) {
8007
+ function yE(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 vS(e) {
8139
8139
  upToDate: C
8140
8140
  };
8141
8141
  }
8142
- function yE() {
8142
+ function _E() {
8143
8143
  function e(t) {
8144
8144
  Tv.next({
8145
8145
  key: "notify",
@@ -8149,7 +8149,7 @@ function yE() {
8149
8149
  return { Notify: e };
8150
8150
  }
8151
8151
  let Bi = null;
8152
- function _E(e) {
8152
+ function SE(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 mS() {
8165
8165
  );
8166
8166
  return Bi;
8167
8167
  }
8168
- function SE() {
8168
+ function wE() {
8169
8169
  const e = mS();
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 SE() {
8179
8179
  render: t
8180
8180
  };
8181
8181
  }
8182
- function wE() {
8182
+ function xE() {
8183
8183
  function e(n) {
8184
8184
  return {
8185
8185
  page: (n.page || 1) - 1,
@@ -28234,7 +28234,7 @@ Object.assign(QC, Rg);
28234
28234
  var YC = ["ok", "hide"];
28235
28235
  gg(YC);
28236
28236
  const Or = "YYYY/MM/DD";
28237
- function xE() {
28237
+ function CE() {
28238
28238
  function e(n, r) {
28239
28239
  return hs.formatDate(
28240
28240
  hs.extractDate(n, r || Or),
@@ -28286,7 +28286,7 @@ function KC(e) {
28286
28286
  upToDate: (T, C) => (x) => p(x, T, C || Or)
28287
28287
  };
28288
28288
  }
28289
- function CE(e, t, n, r) {
28289
+ function kE(e, t, n, r) {
28290
28290
  const { required: a, email: o, validateFromApi: i, ...l } = KC(r), c = t.required ? [a] : [];
28291
28291
  return n.forEach((v) => {
28292
28292
  if (v === "email")
@@ -28297,7 +28297,7 @@ function CE(e, t, n, r) {
28297
28297
  }
28298
28298
  }), t.hasValidations && c.push(i(e, t.name)), c;
28299
28299
  }
28300
- function kE() {
28300
+ function EE() {
28301
28301
  function e(t) {
28302
28302
  return t.map((n) => ({
28303
28303
  type: n.type,
@@ -28311,7 +28311,7 @@ function kE() {
28311
28311
  };
28312
28312
  }
28313
28313
  let rl = null;
28314
- function EE(e) {
28314
+ function TE(e) {
28315
28315
  if (rl !== null) {
28316
28316
  console.warn(
28317
28317
  "[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
@@ -28768,6 +28768,13 @@ const GC = [
28768
28768
  "separatorClass",
28769
28769
  "separatorStyle",
28770
28770
  "dark"
28771
+ ], Ak = [
28772
+ "spaced",
28773
+ "inset",
28774
+ "vertical",
28775
+ "dark",
28776
+ "size",
28777
+ "color"
28771
28778
  ], hv = {
28772
28779
  "q-avatar": rk,
28773
28780
  "q-badge": ak,
@@ -28795,14 +28802,15 @@ const GC = [
28795
28802
  "q-menu": Ok,
28796
28803
  "q-route-tab": ZC,
28797
28804
  "q-select": pk,
28805
+ "q-separator": Ak,
28798
28806
  "q-spinner": yk,
28807
+ "q-splitter": Mk,
28799
28808
  "q-table": ok,
28800
28809
  "q-tabs": JC,
28801
28810
  "q-toggle": ck,
28802
28811
  "q-toolbar": tk,
28803
28812
  "q-toolbar-title": nk,
28804
- "q-tree": qk,
28805
- "q-splitter": Mk
28813
+ "q-tree": qk
28806
28814
  };
28807
28815
  function gv(e, t) {
28808
28816
  return t.split(".").reduce((n, r) => {
@@ -28810,7 +28818,7 @@ function gv(e, t) {
28810
28818
  return n[r];
28811
28819
  }, e);
28812
28820
  }
28813
- function Ak(e, t, n) {
28821
+ function Pk(e, t, n) {
28814
28822
  let r = gv(e, `${t}.${n}`);
28815
28823
  if (r === void 0 && (r = gv(e, `default.${n}`)), typeof r == "object")
28816
28824
  throw new Error(
@@ -28818,26 +28826,26 @@ function Ak(e, t, n) {
28818
28826
  );
28819
28827
  return r;
28820
28828
  }
28821
- function Pk(e) {
28829
+ function Lk(e) {
28822
28830
  if (!(e in hv))
28823
28831
  throw new Error(
28824
28832
  `[UiDesign] The component '${e}' is not supported for UI design retrieval.`
28825
28833
  );
28826
28834
  return hv[e];
28827
28835
  }
28828
- function TE() {
28836
+ function OE() {
28829
28837
  const e = h(() => XC());
28830
28838
  function t(n, r, a) {
28831
- const o = Pk(r), i = {};
28839
+ const o = Lk(r), i = {};
28832
28840
  for (const l of o) {
28833
- const c = a?.[l] ?? Ak(e.value, n, `${r}.${String(l)}`);
28841
+ const c = a?.[l] ?? Pk(e.value, n, `${r}.${String(l)}`);
28834
28842
  c !== void 0 && (i[l] = c);
28835
28843
  }
28836
28844
  return i;
28837
28845
  }
28838
28846
  return { ui: t };
28839
28847
  }
28840
- const pv = "|", Ms = "not_", Lk = ["lk_", "gt_", "lt_"];
28848
+ const pv = "|", Ms = "not_", Rk = ["lk_", "gt_", "lt_"];
28841
28849
  class gc {
28842
28850
  /**
28843
28851
  * Whether the comparison must be negated.
@@ -28868,7 +28876,7 @@ class gc {
28868
28876
  static fromString(t) {
28869
28877
  let n = t, r = !1;
28870
28878
  n.startsWith(Ms) && (r = !0, n = n.slice(Ms.length));
28871
- const a = Lk.find((o) => n.startsWith(o)) ?? "";
28879
+ const a = Rk.find((o) => n.startsWith(o)) ?? "";
28872
28880
  return new gc(
28873
28881
  r,
28874
28882
  a,
@@ -28942,7 +28950,7 @@ class pc {
28942
28950
  return this.values.map((t) => t.toString()).join(pv);
28943
28951
  }
28944
28952
  }
28945
- function OE(e, t) {
28953
+ function qE(e, t) {
28946
28954
  function n(a, o) {
28947
28955
  const i = Object.fromEntries(
28948
28956
  Object.entries(t.query).filter(([l]) => o.includes(l))
@@ -28969,20 +28977,20 @@ function OE(e, t) {
28969
28977
  }
28970
28978
  return { setFiltersInUrl: n, getFiltersFromUrl: r };
28971
28979
  }
28972
- async function Rk() {
28980
+ async function Nk() {
28973
28981
  return (await pr().get("/metadata/entities")).data;
28974
28982
  }
28975
- async function qE(e) {
28983
+ async function ME(e) {
28976
28984
  return (await pr().get(
28977
28985
  `/metadata/entities/${e}`
28978
28986
  )).data;
28979
28987
  }
28980
- async function Nk() {
28988
+ async function Dk() {
28981
28989
  return (await pr().get(
28982
28990
  "/metadata/routes"
28983
28991
  )).data;
28984
28992
  }
28985
- const ME = () => Dk(il()), Dk = /* @__PURE__ */ ol("LinidConfigurationStore", {
28993
+ const AE = () => Ik(il()), Ik = /* @__PURE__ */ ol("LinidConfigurationStore", {
28986
28994
  state: () => ({
28987
28995
  entities: [],
28988
28996
  apiEndpoints: [],
@@ -29013,8 +29021,8 @@ const ME = () => Dk(il()), Dk = /* @__PURE__ */ ol("LinidConfigurationStore", {
29013
29021
  this.loading = !0, this.error = null;
29014
29022
  try {
29015
29023
  const [e, t] = await Promise.all([
29016
- Rk(),
29017
- Nk()
29024
+ Nk(),
29025
+ Dk()
29018
29026
  ]);
29019
29027
  this.entities = e, this.apiEndpoints = t;
29020
29028
  } catch (e) {
@@ -29024,7 +29032,7 @@ const ME = () => Dk(il()), Dk = /* @__PURE__ */ ol("LinidConfigurationStore", {
29024
29032
  }
29025
29033
  }
29026
29034
  }
29027
- }), AE = () => Ik(il()), Ik = /* @__PURE__ */ ol("LinidUiStore", {
29035
+ }), PE = () => $k(il()), $k = /* @__PURE__ */ ol("LinidUiStore", {
29028
29036
  state: () => ({
29029
29037
  mainNavigationItems: []
29030
29038
  }),
@@ -29037,7 +29045,7 @@ const ME = () => Dk(il()), Dk = /* @__PURE__ */ ol("LinidConfigurationStore", {
29037
29045
  this.mainNavigationItems.push(...e);
29038
29046
  }
29039
29047
  }
29040
- }), PE = () => $k(il()), $k = /* @__PURE__ */ ol("LinidUserStore", {
29048
+ }), LE = () => Fk(il()), Fk = /* @__PURE__ */ ol("LinidUserStore", {
29041
29049
  /**
29042
29050
  * State properties of the user store.
29043
29051
  * @returns The initial state of the user store.
@@ -29064,8 +29072,8 @@ const ME = () => Dk(il()), Dk = /* @__PURE__ */ ol("LinidConfigurationStore", {
29064
29072
  }
29065
29073
  }
29066
29074
  });
29067
- var Fk = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Fk || {});
29068
- class LE {
29075
+ var Bk = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Bk || {});
29076
+ class RE {
29069
29077
  /**
29070
29078
  * Unique identifier for the module.
29071
29079
  *
@@ -29169,25 +29177,25 @@ class LE {
29169
29177
  }
29170
29178
  }
29171
29179
  export {
29172
- LE as BasicRemoteModule,
29180
+ RE as BasicRemoteModule,
29173
29181
  Oa as DEFAULT_DATE_FORMAT,
29174
29182
  Ms as LINID_FILTER_NEGATION_PREFIX,
29175
29183
  pv as LINID_FILTER_OR_SEPARATOR,
29176
29184
  pc as LinidFilter,
29177
29185
  gc as LinidFilterValue,
29178
- Hk as LinidZoneRenderer,
29179
- Fk as ModuleLifecyclePhase,
29186
+ jk as LinidZoneRenderer,
29187
+ Bk as ModuleLifecyclePhase,
29180
29188
  Or as QDATE_DEFAULT_MASK,
29181
29189
  Gv as deepEqual,
29182
29190
  Ws as deepEqualUnordered,
29183
- gE as deleteEntityById,
29184
- pE as fromDot,
29185
- Nk as getApiEndpointsConfiguration,
29191
+ pE as deleteEntityById,
29192
+ bE as fromDot,
29193
+ Dk as getApiEndpointsConfiguration,
29186
29194
  ob as getDayjsInstance,
29187
- mE as getEntities,
29188
- Rk as getEntitiesConfiguration,
29189
- hE as getEntityById,
29190
- qE as getEntityConfiguration,
29195
+ hE as getEntities,
29196
+ Nk as getEntitiesConfiguration,
29197
+ gE as getEntityById,
29198
+ ME as getEntityConfiguration,
29191
29199
  pr as getHttpClient,
29192
29200
  uS as getI18nInstance,
29193
29201
  Jp as getModuleFederation,
@@ -29198,33 +29206,33 @@ export {
29198
29206
  Va as isObject,
29199
29207
  Zp as loadAsyncComponent,
29200
29208
  ny as merge,
29201
- dE as registerModuleHostConfiguration,
29209
+ fE as registerModuleHostConfiguration,
29202
29210
  ry as renameKeys,
29203
- fE as saveEntity,
29204
- jk as setDayjsInstance,
29205
- cE as setHttpClient,
29206
- bE as setI18nInstance,
29207
- Vk as setModuleFederation,
29208
- _E as setNunjucksEnv,
29209
- zk as setPiniaStore,
29210
- EE as setUiDesign,
29211
+ vE as saveEntity,
29212
+ Uk as setDayjsInstance,
29213
+ dE as setHttpClient,
29214
+ yE as setI18nInstance,
29215
+ zk as setModuleFederation,
29216
+ SE as setNunjucksEnv,
29217
+ Hk as setPiniaStore,
29218
+ TE as setUiDesign,
29211
29219
  Tv as uiEventSubject,
29212
- vE as updateEntity,
29220
+ mE as updateEntity,
29213
29221
  ib as useDayjs,
29214
- Uk as useDialog,
29222
+ Wk as useDialog,
29215
29223
  vS as useFieldValidation,
29216
- ME as useLinidConfigurationStore,
29217
- OE as useLinidFilterUrl,
29218
- AE as useLinidUiStore,
29219
- PE as useLinidUserStore,
29224
+ AE as useLinidConfigurationStore,
29225
+ qE as useLinidFilterUrl,
29226
+ PE as useLinidUiStore,
29227
+ LE as useLinidUserStore,
29220
29228
  rb as useLinidZoneStore,
29221
- yE as useNotify,
29222
- SE as useNunjucks,
29223
- wE as usePagination,
29224
- xE as useQuasarDate,
29229
+ _E as useNotify,
29230
+ wE as useNunjucks,
29231
+ xE as usePagination,
29232
+ CE as useQuasarDate,
29225
29233
  KC as useQuasarFieldValidation,
29226
- CE as useQuasarRules,
29234
+ kE as useQuasarRules,
29227
29235
  cS as useScopedI18n,
29228
- kE as useTree,
29229
- TE as useUiDesign
29236
+ EE as useTree,
29237
+ OE as useUiDesign
29230
29238
  };