@orangelogic/design-system 3.57.0 → 3.58.0

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.
@@ -79,8 +79,8 @@ import { t as Ot } from "./position-picker.DwDC9gDl.js";
79
79
  import { t as kt } from "./shadow-input-group.B6gcdNEi.js";
80
80
  import { t as At } from "./size-input-group.f_Zw3nTt.js";
81
81
  import { C as jt, S as Mt, T as Nt, _ as Pt, b as Ft, c as It, f as Lt, g as Rt, h as zt, i as Bt, l as Vt, n as Ht, o as Ut, p as Wt, r as Gt, s as Kt, t as qt, u as Jt, v as Yt, w as Xt, x as Zt, y as Qt } from "./asset-link-format.DsqpErPW.js";
82
- import { c as $t, d as en, f as tn, n as nn, u as rn } from "./color-swatch-group.DnLiXSB9.js";
83
- import { $ as F, B as an, E as on, G as sn, H as cn, I as ln, Q as un, S as dn, U as fn, V as pn, W as mn, X as hn, Z as I, et as gn, g as _n, h as vn, j as L, y as yn } from "./configs-controller.DNSGtqMU.js";
82
+ import { c as $t, d as en, f as tn, n as nn, u as rn } from "./color-swatch-group.DUbPuxjC.js";
83
+ import { $ as F, B as an, E as on, G as sn, H as cn, I as ln, Q as un, S as dn, U as fn, V as pn, W as mn, X as hn, Z as I, et as gn, g as _n, h as vn, j as L, y as yn } from "./configs-controller.CrajsBAF.js";
84
84
  import { a as bn } from "./cloneDeep.C6x5LNv3.js";
85
85
  //#region ../../packages/types/src/icon-picker.ts
86
86
  var xn = /* @__PURE__ */ function(e) {
@@ -14371,7 +14371,7 @@ var Yc = process.env.NODE_ENV === "development", Xc = 2e3, Zc = 1e3, Qc = "data-
14371
14371
  }
14372
14372
  }, hl = class extends H {
14373
14373
  constructor(e) {
14374
- super(e), this.type = null, this.element = this._createAlertElement(), this.msgElement = this._createMsgElement(), this.element.appendChild(this.msgElement);
14374
+ super(e), this.type = null, this.loadingWidthObserver = null, this.loadingWidthCleanupSubscribed = !1, this.element = this._createAlertElement(), this.msgElement = this._createMsgElement(), this.element.appendChild(this.msgElement);
14375
14375
  }
14376
14376
  _createAlertElement() {
14377
14377
  let e = document.createElement("div");
@@ -14389,11 +14389,24 @@ var Yc = process.env.NODE_ENV === "development", Xc = 2e3, Zc = 1e3, Qc = "data-
14389
14389
  for (this.clear(), this.dispatch("alert-show", t), this.type = t; this.msgElement.firstChild;) this.msgElement.removeChild(this.msgElement.firstChild);
14390
14390
  this.element.classList.add(this._typeClass()), this.msgElement.classList.add(this._typeClass());
14391
14391
  let n;
14392
- n = typeof e == "function" ? e() : e, n instanceof HTMLElement ? this.msgElement.appendChild(n) : this.msgElement.innerHTML = A(String(n)), this.table.element.appendChild(this.element);
14392
+ n = typeof e == "function" ? e() : e, n instanceof HTMLElement ? this.msgElement.appendChild(n) : this.msgElement.innerHTML = A(String(n)), this.table.element.appendChild(this.element), t === "loading" && this.observeLoadingWidth();
14393
14393
  }
14394
14394
  }
14395
+ observeLoadingWidth() {
14396
+ this.loadingWidthCleanupSubscribed ||= (this.subscribe("table-destroy", () => this.disconnectLoadingWidthObserver()), !0);
14397
+ let e = this.table.columnManager?.getElement();
14398
+ if (!e) return;
14399
+ let t = () => {
14400
+ let t = e.getBoundingClientRect().width;
14401
+ t > 0 ? this.element.style.width = `${t}px` : this.element.style.removeProperty("width");
14402
+ };
14403
+ t(), typeof ResizeObserver < "u" && (this.loadingWidthObserver = new ResizeObserver(t), this.loadingWidthObserver.observe(e));
14404
+ }
14405
+ disconnectLoadingWidthObserver() {
14406
+ this.loadingWidthObserver?.disconnect(), this.loadingWidthObserver = null;
14407
+ }
14395
14408
  clear() {
14396
- this.dispatch("alert-hide", this.type), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element.classList.remove(this._typeClass()), this.msgElement.classList.remove(this._typeClass()), this.type = null;
14409
+ this.disconnectLoadingWidthObserver(), this.element.style.removeProperty("width"), this.dispatch("alert-hide", this.type), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element.classList.remove(this._typeClass()), this.msgElement.classList.remove(this._typeClass()), this.type = null;
14397
14410
  }
14398
14411
  }, gl = process.env.NODE_ENV === "development", _l = class {
14399
14412
  constructor(e) {
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
14
14
  import { t as x } from "./button.Cgunf6cP.js";
15
15
  import { t as ee } from "./tooltip.GjnTzFeL.js";
16
16
  import { t as te } from "./line-clamp.CFDQn3q5.js";
17
- import { C as ne, E as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, g as ue, h as de, i as fe, l as pe, m as me, n as he, o as ge, s as S, t as C, v as w, w as T, x as E, y as D } from "./block-width.CPMzQD89.js";
17
+ import { C as ne, E as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, g as ue, h as de, i as fe, l as pe, m as me, n as he, o as ge, s as S, t as C, v as w, w as T, x as E, y as D } from "./block-width.DO9qMNf6.js";
18
18
  import { t as O } from "./typography.B0mkhqTB.js";
19
19
  import { t as k } from "./button-group.CPfXrqyq.js";
20
20
  import { t as A } from "./card.3c-X4hqR.js";
@@ -63,7 +63,7 @@ import { T as K } from "./asset-link-format.DsqpErPW.js";
63
63
  import { n as Qe } from "./_baseXor.Ca5K0ORC.js";
64
64
  import { n as $e, s as et, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
65
65
  import { i as tt } from "./_baseClone.CnI5Vpqn.js";
66
- import { E as nt, l as J, s as rt, t as it } from "./configs-controller.DNSGtqMU.js";
66
+ import { E as nt, l as J, s as rt, t as it } from "./configs-controller.CrajsBAF.js";
67
67
  import { t as at } from "./isEmpty.D3QQduJ5.js";
68
68
  import { i as ot } from "./cloneDeep.C6x5LNv3.js";
69
69
  //#region ../../node_modules/lodash-es/difference.js
@@ -16,7 +16,7 @@ import { g as _e, m as ve, p as ye, s as b } from "./responsive.L9Csz2w2.js";
16
16
  import { n as be, r as xe } from "./header.BDEqW3TI.js";
17
17
  import { d as Se, f as x, l as S, o as C, s as Ce } from "./endpoints.jOHOmF_t.js";
18
18
  import { n as w } from "./folder-select.OpTigUmf.js";
19
- import { a as T, i as E, o as D, r as O, s as we } from "./color-swatch-group.DnLiXSB9.js";
19
+ import { a as T, i as E, o as D, r as O, s as we } from "./color-swatch-group.DUbPuxjC.js";
20
20
  import { n as Te } from "./isEmpty.D3QQduJ5.js";
21
21
  import { a as k } from "./cloneDeep.C6x5LNv3.js";
22
22
  //#region ../../packages/services/src/api/dashboard/dashboard.ts
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/color-swatch-group.DnLiXSB9.js";
1
+ import { t as e } from "../chunks/color-swatch-group.DUbPuxjC.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
1
  import { t as e } from "../chunks/asset-link-format.DsqpErPW.js";
2
- import { t } from "../chunks/color-swatch-group.DnLiXSB9.js";
2
+ import { t } from "../chunks/color-swatch-group.DUbPuxjC.js";
3
3
  import { t as n } from "../chunks/file-on-demand.mXtuYM6V.js";
4
4
  export { e as CxAssetLinkFormat, t as CxColorSwatchGroup, n as CxFileOnDemand };
@@ -38,7 +38,7 @@ import { t as kt } from "../chunks/resize-observer.D9EHlnZI.js";
38
38
  import { t as At } from "../chunks/line-clamp.CFDQn3q5.js";
39
39
  import { t as jt } from "../chunks/tag.fa4s56WR.js";
40
40
  import { t as Mt } from "../chunks/array-line-clamp.TyBsO6dK.js";
41
- import { C as Nt, D as Pt, E as Ft, O as It, S as Lt, T as Rt, b as zt, d as Bt, f as Vt, o as Ht, p as Ut, r as Wt, s as Gt, t as Kt, u as qt, w as Jt, x as Yt, y as Xt } from "../chunks/block-width.CPMzQD89.js";
41
+ import { C as Nt, D as Pt, E as Ft, O as It, S as Lt, T as Rt, b as zt, d as Bt, f as Vt, o as Ht, p as Ut, r as Wt, s as Gt, t as Kt, u as qt, w as Jt, x as Yt, y as Xt } from "../chunks/block-width.DO9qMNf6.js";
42
42
  import { n as Zt, t as Qt } from "../chunks/position-picker.dY_vgF_H.js";
43
43
  import { a as $t, i as en, n as tn, o as nn, r as rn, s as an, t as on } from "../chunks/src.BJhIYoMP.js";
44
44
  import { a as sn, c as cn, i as ln, n as un, o as dn, r as fn, t as pn, u as mn } from "../chunks/time.p1t0NCwj.js";
@@ -166,11 +166,11 @@ import { t as Ks } from "../chunks/size-input-group.f_Zw3nTt.js";
166
166
  import { t as qs } from "../chunks/stepper-wizard.lIqA749z.js";
167
167
  import { t as Js } from "../chunks/typeface.FHj7pyQy.js";
168
168
  import { T as Ys, _ as Xs, a as Zs, b as Qs, c as $s, d as ec, l as tc, m as nc, n as rc, o as ic, s as ac, t as oc, v as sc } from "../chunks/asset-link-format.DsqpErPW.js";
169
- import { c as cc, h as lc, l as uc, m as dc, p as fc, t as pc, u as mc } from "../chunks/color-swatch-group.DnLiXSB9.js";
169
+ import { c as cc, h as lc, l as uc, m as dc, p as fc, t as pc, u as mc } from "../chunks/color-swatch-group.DUbPuxjC.js";
170
170
  import { n as hc } from "../chunks/isArrayLikeObject.Da3IzQeH.js";
171
171
  import { t as gc } from "../chunks/file-on-demand.mXtuYM6V.js";
172
172
  import "../events.js";
173
- import { A as _c, C as vc, D as yc, F as bc, I as xc, J as Sc, K as Cc, L as eee, M as tee, N as nee, O as ree, P as iee, R as aee, T as wc, Y as oee, _ as see, a as Tc, at as cee, b as lee, c as uee, d as dee, et as Ec, f as Dc, i as Oc, it as kc, j as fee, k as Ac, m as jc, nt as Mc, o as Nc, p as Pc, q as Fc, r as pee, rt as Ic, s as Lc, t as Rc, tt as zc, u as Bc, v as Vc, w as Hc, x as Uc, z as Wc } from "../chunks/configs-controller.DNSGtqMU.js";
173
+ import { A as _c, C as vc, D as yc, F as bc, I as xc, J as Sc, K as Cc, L as eee, M as tee, N as nee, O as ree, P as iee, R as aee, T as wc, Y as oee, _ as see, a as Tc, at as cee, b as lee, c as uee, d as dee, et as Ec, f as Dc, i as Oc, it as kc, j as fee, k as Ac, m as jc, nt as Mc, o as Nc, p as Pc, q as Fc, r as pee, rt as Ic, s as Lc, t as Rc, tt as zc, u as Bc, v as Vc, w as Hc, x as Uc, z as Wc } from "../chunks/configs-controller.CrajsBAF.js";
174
174
  import { i as Gc } from "../chunks/timer.M6Aa3L_j.js";
175
175
  import { a as Kc, c as qc, d as Jc, f as Yc, i as Xc, l as Zc, n as Qc, o as $c, r as el, s as tl, t as nl, u as rl } from "../chunks/src.CLGAM3OO.js";
176
176
  import { t as il } from "../chunks/value.C4_tUrAq.js";
@@ -95090,7 +95090,7 @@ var QTe = [
95090
95090
  return this.mappedSupportedLanguages.length > 1;
95091
95091
  }
95092
95092
  ensureConfigUi() {
95093
- return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.C7v_dgBh.js"), import("../chunks/configs-controller.DNSGtqMU.js").then((e) => e.n)]).then(async ([, e]) => {
95093
+ return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.BKmXLHaH.js"), import("../chunks/configs-controller.CrajsBAF.js").then((e) => e.n)]).then(async ([, e]) => {
95094
95094
  this.configsController ??= new e.default(this.localize), await customElements.whenDefined("cx-config-manager"), await this.configManager?.updateComplete;
95095
95095
  });
95096
95096
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.57.0",
4
+ "version": "3.58.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -4,10 +4,14 @@ export default class Alert extends CoreFeature implements IAlert {
4
4
  element: HTMLElement;
5
5
  msgElement: HTMLElement;
6
6
  type: string | null;
7
+ private loadingWidthObserver;
8
+ private loadingWidthCleanupSubscribed;
7
9
  constructor(table: ITabulator);
8
10
  _createAlertElement(): HTMLElement;
9
11
  _createMsgElement(): HTMLElement;
10
12
  _typeClass(): string;
11
13
  alert(content: string | HTMLElement | (() => string | HTMLElement) | undefined, type?: string): void;
14
+ private observeLoadingWidth;
15
+ private disconnectLoadingWidthObserver;
12
16
  clear(): void;
13
17
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.57.0",
4
+ "version": "3.58.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {