admins-components 5.0.18 → 5.0.20

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.
@@ -1869,11 +1869,11 @@ class o7 {
1869
1869
  }), B) {
1870
1870
  console.info("initializing keycloak bearer...");
1871
1871
  const K = RAt();
1872
- K.keycloak !== void 0 && await new Promise((L, ce) => {
1872
+ K.keycloak === void 0 && await new Promise((L, ce) => {
1873
1873
  const ee = setTimeout(() => {
1874
1874
  console.error("Timeout waiting for keycloak.keycloak to not be undefined"), ce(new Error("Timeout"));
1875
1875
  }, 5e3), fe = setInterval(() => {
1876
- K.keycloak === void 0 && (clearTimeout(ee), clearInterval(fe), L());
1876
+ K.keycloak !== void 0 && (clearTimeout(ee), clearInterval(fe), L());
1877
1877
  }, 100);
1878
1878
  }), await new Promise((L) => {
1879
1879
  var ce;
@@ -193532,6 +193532,20 @@ async function Ynr(l, u) {
193532
193532
  }, _.getKeycloakConfig.execute();
193533
193533
  });
193534
193534
  }
193535
+ function Gir(l) {
193536
+ const u = l.createLoginUrl(), _ = 600, g = 700, T = window.screen.width / 2 - _ / 2, D = window.screen.height / 2 - g / 2, I = window.open(
193537
+ u,
193538
+ "KeycloakLoginPopup",
193539
+ `width=${_},height=${g},top=${D},left=${T},resizable=yes,scrollbars=yes`
193540
+ );
193541
+ if (!I) {
193542
+ alert("Popup blocked! Please allow popups for this site.");
193543
+ return;
193544
+ }
193545
+ const B = setInterval(() => {
193546
+ I.closed && clearInterval(B);
193547
+ }, 500);
193548
+ }
193535
193549
  const Xnr = {
193536
193550
  CheckBox: Vne,
193537
193551
  CheckBoxList: rAt,
@@ -193556,7 +193570,7 @@ const Xnr = {
193556
193570
  ToastWrapper: FPt,
193557
193571
  CalendarComponent: MWe,
193558
193572
  HeaderComponent: JPt
193559
- }, Gir = {
193573
+ }, Yir = {
193560
193574
  install(l) {
193561
193575
  Object.entries(Xnr).forEach(([u, _]) => {
193562
193576
  l.component(u, _);
@@ -193615,7 +193629,7 @@ export {
193615
193629
  Rir as configureInternalArticleOfferElement,
193616
193630
  zir as configurePartnerPickerElement,
193617
193631
  oir as debounce,
193618
- Gir as default,
193632
+ Yir as default,
193619
193633
  yxe as eaoeConfig,
193620
193634
  mie as gisConfig,
193621
193635
  vxe as iaoeConfig,
@@ -193627,6 +193641,7 @@ export {
193627
193641
  Gne as localToDateStr,
193628
193642
  e4t as localToStr,
193629
193643
  $Te as localToUtcStr,
193644
+ Gir as loginWithPopup,
193630
193645
  die as ppeconfig,
193631
193646
  Vir as sendMsgToToast,
193632
193647
  eir as toDateString,
@@ -1,2 +1,3 @@
1
1
  import { App } from 'vue';
2
2
  export declare function useAdminKeycloak(app: App, configUrl: string, configEnvironment: string, clientId: string): void;
3
+ export declare function loginWithPopup(keycloak: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "admins-components",
3
- "version": "5.0.18",
3
+ "version": "5.0.20",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"