admins-components 5.2.2 → 5.2.4

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.
@@ -1544,7 +1544,10 @@ function vir(c, f) {
1544
1544
  _.hasPermission(T, f, "reader") && g.push(T);
1545
1545
  return g;
1546
1546
  }
1547
- const m4t = { class: "d-flex flex-column w-100 gap-2" }, g4t = { class: "d-flex flex-row justify-content-between p-2" }, h4t = {
1547
+ const yir = () => {
1548
+ var c;
1549
+ return (c = window.cmsContext) == null ? void 0 : c.currentSite;
1550
+ }, m4t = { class: "d-flex flex-column w-100 gap-2" }, g4t = { class: "d-flex flex-row justify-content-between p-2" }, h4t = {
1548
1551
  key: 0,
1549
1552
  class: "d-flex flex-column gap-2"
1550
1553
  }, v4t = { class: "d-flex flex-row justify-content-between" }, y4t = { class: "d-flex flex-row justify-content-between" }, b4t = ["onClick"], S4t = {
@@ -1938,19 +1941,19 @@ const m4t = { class: "d-flex flex-column w-100 gap-2" }, g4t = { class: "d-flex
1938
1941
  key: 1,
1939
1942
  class: "d-flex flex-row input-group align-items-center"
1940
1943
  };
1941
- class yir {
1944
+ class bir {
1942
1945
  constructor(f, _, g) {
1943
1946
  Ph(this, "type");
1944
1947
  this.key = f, this.placeholder = _, this.filtered = g, this.type = "text";
1945
1948
  }
1946
1949
  }
1947
- class bir {
1950
+ class Sir {
1948
1951
  constructor(f, _, g, T, D, N, B) {
1949
1952
  Ph(this, "type");
1950
1953
  this.key = f, this.label = _, this.options = g, this.filterevent = T, this.onfiltered = D, this.filtered = N, this.selected = B, this.type = "dropdown";
1951
1954
  }
1952
1955
  }
1953
- class Sir {
1956
+ class Tir {
1954
1957
  constructor(f, _, g, T, D) {
1955
1958
  Ph(this, "type");
1956
1959
  this.key = f, this.label = _, this.filtered = g, this.defFrom = T, this.defTil = D, this.type = "date";
@@ -4901,22 +4904,22 @@ ch.getAdapter = wVe.getAdapter;
4901
4904
  ch.HttpStatusCode = nxe;
4902
4905
  ch.default = ch;
4903
4906
  const {
4904
- Axios: kir,
4905
- AxiosError: Cir,
4906
- CanceledError: Eir,
4907
- isCancel: wir,
4908
- CancelToken: Dir,
4909
- VERSION: Air,
4910
- all: Pir,
4911
- Cancel: Nir,
4912
- isAxiosError: Iir,
4913
- spread: Oir,
4914
- toFormData: Fir,
4915
- AxiosHeaders: Mir,
4916
- HttpStatusCode: Lir,
4917
- formToJSON: Rir,
4918
- getAdapter: jir,
4919
- mergeConfig: Bir
4907
+ Axios: Cir,
4908
+ AxiosError: Eir,
4909
+ CanceledError: wir,
4910
+ isCancel: Dir,
4911
+ CancelToken: Air,
4912
+ VERSION: Pir,
4913
+ all: Nir,
4914
+ Cancel: Iir,
4915
+ isAxiosError: Oir,
4916
+ spread: Fir,
4917
+ toFormData: Mir,
4918
+ AxiosHeaders: Lir,
4919
+ HttpStatusCode: Rir,
4920
+ formToJSON: jir,
4921
+ getAdapter: Bir,
4922
+ mergeConfig: $ir
4920
4923
  } = ch;
4921
4924
  //! moment.js
4922
4925
  //! version : 2.30.1
@@ -33107,7 +33110,7 @@ iXe(void 0, Vn({}, enr), Vn({}, $Qt), {
33107
33110
  moment: To
33108
33111
  });
33109
33112
  let hA;
33110
- function $ir(c) {
33113
+ function Jir(c) {
33111
33114
  return hA = c, hA;
33112
33115
  }
33113
33116
  const rnr = jA({
@@ -33256,13 +33259,13 @@ function fnr(c, f, _, g, T, D) {
33256
33259
  }))
33257
33260
  ]), 1024);
33258
33261
  }
33259
- const Jir = /* @__PURE__ */ PC(rnr, [["render", fnr]]);
33262
+ const zir = /* @__PURE__ */ PC(rnr, [["render", fnr]]);
33260
33263
  let Zne;
33261
- function zir(c) {
33264
+ function qir(c) {
33262
33265
  Zne = c;
33263
33266
  }
33264
33267
  let bA;
33265
- function qir(c) {
33268
+ function Uir(c) {
33266
33269
  return bA = c, c;
33267
33270
  }
33268
33271
  const _nr = jA({
@@ -33452,7 +33455,7 @@ function Anr(c, f, _, g, T, D) {
33452
33455
  }))
33453
33456
  ]), 1024);
33454
33457
  }
33455
- const Uir = /* @__PURE__ */ PC(_nr, [["render", Anr]]), Pnr = jA({
33458
+ const Wir = /* @__PURE__ */ PC(_nr, [["render", Anr]]), Pnr = jA({
33456
33459
  name: "ImagePickerElement",
33457
33460
  components: { ImagePickerComponent: ZU },
33458
33461
  setup(c, f) {
@@ -33502,7 +33505,7 @@ function Nnr(c, f, _, g, T, D) {
33502
33505
  }))
33503
33506
  ]), 1024);
33504
33507
  }
33505
- const Wir = /* @__PURE__ */ PC(Pnr, [["render", Nnr]]), Inr = jA({
33508
+ const Vir = /* @__PURE__ */ PC(Pnr, [["render", Nnr]]), Inr = jA({
33506
33509
  name: "ImagePickerDetailsElement",
33507
33510
  components: { ImagePickerComponent: ZU },
33508
33511
  setup(c, f) {
@@ -33553,9 +33556,9 @@ function Onr(c, f, _, g, T, D) {
33553
33556
  }))
33554
33557
  ]), 1024);
33555
33558
  }
33556
- const Vir = /* @__PURE__ */ PC(Inr, [["render", Onr]]);
33559
+ const Hir = /* @__PURE__ */ PC(Inr, [["render", Onr]]);
33557
33560
  let Axe;
33558
- function Hir(c) {
33561
+ function Gir(c) {
33559
33562
  return Axe = c, Axe;
33560
33563
  }
33561
33564
  const Fnr = jA({
@@ -33599,9 +33602,9 @@ function Mnr(c, f, _, g, T, D) {
33599
33602
  }))
33600
33603
  ]), 1024);
33601
33604
  }
33602
- const Gir = /* @__PURE__ */ PC(Fnr, [["render", Mnr]]);
33605
+ const Yir = /* @__PURE__ */ PC(Fnr, [["render", Mnr]]);
33603
33606
  let Pxe;
33604
- function Yir(c) {
33607
+ function Xir(c) {
33605
33608
  return Pxe = c, Pxe;
33606
33609
  }
33607
33610
  const Lnr = jA({
@@ -33643,7 +33646,7 @@ function Rnr(c, f, _, g, T, D) {
33643
33646
  }))
33644
33647
  ]), 1024);
33645
33648
  }
33646
- const Xir = /* @__PURE__ */ PC(Lnr, [["render", Rnr]]), jnr = jA({
33649
+ const Qir = /* @__PURE__ */ PC(Lnr, [["render", Rnr]]), jnr = jA({
33647
33650
  name: "DateTimePickerElement",
33648
33651
  setup(c, f) {
33649
33652
  r1().appContext && !r1().appContext.components.DateTimePicker && (r1().appContext.components.DateTimePicker = ZTe);
@@ -33686,9 +33689,9 @@ function Bnr(c, f, _, g, T, D) {
33686
33689
  }))
33687
33690
  ]), 1024);
33688
33691
  }
33689
- const Qir = /* @__PURE__ */ PC(jnr, [["render", Bnr]]);
33692
+ const Zir = /* @__PURE__ */ PC(jnr, [["render", Bnr]]);
33690
33693
  let xie;
33691
- function Zir(c) {
33694
+ function Kir(c) {
33692
33695
  return xie = c, xie;
33693
33696
  }
33694
33697
  var jWe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -192805,9 +192808,9 @@ function Znr(c, f, _, g, T, D) {
192805
192808
  }))
192806
192809
  ]), 1024);
192807
192810
  }
192808
- const Kir = /* @__PURE__ */ PC(Unr, [["render", Znr]]);
192811
+ const ear = /* @__PURE__ */ PC(Unr, [["render", Znr]]);
192809
192812
  let kie;
192810
- const ear = (c) => (kie = c, kie), Knr = jA({
192813
+ const tar = (c) => (kie = c, kie), Knr = jA({
192811
192814
  name: "GalleryImageSelectorElement",
192812
192815
  setup(c, f) {
192813
192816
  const { value: _ } = f.element, g = Hr([]), T = (W) => {
@@ -192896,8 +192899,8 @@ function air(c, f, _, g, T, D) {
192896
192899
  }))
192897
192900
  ]), 1024);
192898
192901
  }
192899
- const tar = /* @__PURE__ */ PC(Knr, [["render", air]]);
192900
- function rar(c) {
192902
+ const rar = /* @__PURE__ */ PC(Knr, [["render", air]]);
192903
+ function nar(c) {
192901
192904
  window.dispatchEvent(
192902
192905
  new CustomEvent("toast-notification-message", {
192903
192906
  detail: c
@@ -192928,7 +192931,7 @@ const sir = {
192928
192931
  ToastWrapper: WPt,
192929
192932
  CalendarComponent: ZWe,
192930
192933
  HeaderComponent: ZPt
192931
- }, nar = {
192934
+ }, iar = {
192932
192935
  install(c) {
192933
192936
  Object.entries(sir).forEach(([f, _]) => {
192934
192937
  c.component(f, _);
@@ -192937,36 +192940,36 @@ const sir = {
192937
192940
  };
192938
192941
  export {
192939
192942
  c4t as ArticleEditorService,
192940
- Jir as ArticleOfferElement,
192941
- Uir as ArticlePickerElement,
192943
+ zir as ArticleOfferElement,
192944
+ Wir as ArticlePickerElement,
192942
192945
  ZWe as CalendarComponent,
192943
192946
  eie as CheckBox,
192944
192947
  vAt as CheckBoxList,
192945
- Qir as DateTimePickerElement,
192948
+ Zir as DateTimePickerElement,
192946
192949
  QU as DropDown,
192947
192950
  JAt as DropDownButton,
192948
192951
  VWe as DropDownCallBack,
192949
192952
  Rxe as DropDownMenu,
192950
192953
  sVe as ExternalArticleOfferComponent,
192951
- Xir as ExternalArticleOfferElement,
192954
+ Qir as ExternalArticleOfferElement,
192952
192955
  Z8 as FetchDetails,
192953
192956
  jxe as FetchError,
192954
192957
  HWe as FilterCompact,
192955
192958
  KWe as FilterControl,
192956
- Sir as FilterDate,
192957
- bir as FilterDropDown,
192958
- yir as FilterText,
192959
- tar as GalleryImageSelectorElement,
192959
+ Tir as FilterDate,
192960
+ Sir as FilterDropDown,
192961
+ bir as FilterText,
192962
+ rar as GalleryImageSelectorElement,
192960
192963
  ZPt as HeaderComponent,
192961
192964
  cL as IconButton,
192962
192965
  ZU as ImagePickerComponent,
192963
- Vir as ImagePickerDetailsElement,
192964
- Wir as ImagePickerElement,
192966
+ Hir as ImagePickerDetailsElement,
192967
+ Vir as ImagePickerElement,
192965
192968
  aVe as InternalArticleOfferComponent,
192966
- Gir as InternalArticleOfferElement,
192969
+ Yir as InternalArticleOfferElement,
192967
192970
  mA as Methods,
192968
192971
  eVe as PaginatorControl,
192969
- Kir as PartnerPickerElement,
192972
+ ear as PartnerPickerElement,
192970
192973
  tVe as RadioButton,
192971
192974
  K4t as RadioButtonGroup,
192972
192975
  rVe as SpinningProgress,
@@ -192978,16 +192981,17 @@ export {
192978
192981
  WPt as ToastWrapper,
192979
192982
  hA as aoeConfig,
192980
192983
  Zne as apeConfig,
192981
- $ir as configureArticleOfferElement,
192982
- zir as configureArticlePickerElement,
192983
- Yir as configureExternalArticleOfferElement,
192984
- ear as configureGalleryImageSelectorElement,
192985
- qir as configureImagePickerElement,
192986
- Hir as configureInternalArticleOfferElement,
192987
- Zir as configurePartnerPickerElement,
192984
+ Jir as configureArticleOfferElement,
192985
+ qir as configureArticlePickerElement,
192986
+ Xir as configureExternalArticleOfferElement,
192987
+ tar as configureGalleryImageSelectorElement,
192988
+ Uir as configureImagePickerElement,
192989
+ Gir as configureInternalArticleOfferElement,
192990
+ Kir as configurePartnerPickerElement,
192988
192991
  hir as debounce,
192989
- nar as default,
192992
+ iar as default,
192990
192993
  Pxe as eaoeConfig,
192994
+ yir as getCurrentSite,
192991
192995
  vir as getMixableSiteIdsForResource,
192992
192996
  kie as gisConfig,
192993
192997
  Axe as iaoeConfig,
@@ -193000,7 +193004,7 @@ export {
193000
193004
  s4t as localToStr,
193001
193005
  YTe as localToUtcStr,
193002
193006
  xie as ppeconfig,
193003
- rar as sendMsgToToast,
193007
+ nar as sendMsgToToast,
193004
193008
  uir as toDateString,
193005
193009
  pir as toDateStringFromUtc,
193006
193010
  fir as toDateTimeString,
@@ -55,3 +55,4 @@ export * from './utils/debounce';
55
55
  export * from './utils/articleEditorService';
56
56
  export * from './utils/currentUserInfo';
57
57
  export * from './utils/multisiteMixingHelper';
58
+ export * from './utils/cmsContext';
@@ -1 +1 @@
1
- export declare function getCurrentSite(): string | undefined;
1
+ export declare const getCurrentSite: () => string | undefined;
@@ -6,3 +6,4 @@ export * from './debounce';
6
6
  export * from './articleEditorService';
7
7
  export * from './currentUserInfo';
8
8
  export * from './multisiteMixingHelper';
9
+ export * from './cmsContext';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "admins-components",
3
- "version": "5.2.2",
3
+ "version": "5.2.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"