@orangelogic/design-system 3.56.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.
- package/library/chunks/{block-width.D3M_CLup.js → block-width.DO9qMNf6.js} +21 -7
- package/library/chunks/{color-swatch-group.DnLiXSB9.js → color-swatch-group.DUbPuxjC.js} +16 -3
- package/library/chunks/{config-manager.CPwMU2md.js → config-manager.BKmXLHaH.js} +2 -2
- package/library/chunks/{configs-controller.DNSGtqMU.js → configs-controller.CrajsBAF.js} +1 -1
- package/library/chunks/{markdown.DMexA2xN.js → markdown.Ce5rh6vN.js} +566 -566
- package/library/chunks/{src.BPve1cYQ.js → src.qAKiRBjl.js} +1 -1
- package/library/components/atoms.js +2 -2
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/organisms.js +1 -1
- package/library/components/types.js +9736 -9726
- package/library/package.json +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/core/tools/Alert.d.ts +4 -0
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +13 -1
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +5 -1
- package/library/packages/molecules/src/markdown-viewer/prism-global.d.ts +1 -0
- package/library/packages/molecules/src/markdown-viewer/prism-global.mock.d.ts +2 -0
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ import { t as y } from "./when.BUskJLtZ.js";
|
|
|
15
15
|
import { t as ie } from "./icon.CeQpEaQz.js";
|
|
16
16
|
import { t as ae } from "./spinner.o3Rjsff7.js";
|
|
17
17
|
import { n as oe } from "./tslib.es6.DJNsMHqv.js";
|
|
18
|
-
import { t as se } from "./src.
|
|
18
|
+
import { t as se } from "./src.qAKiRBjl.js";
|
|
19
19
|
import { t as ce } from "./style-map.DPGQIxip.js";
|
|
20
20
|
import { t as b } from "./button.Cgunf6cP.js";
|
|
21
21
|
import { E as x, S as le, r as ue } from "./string.DAuTpyw8.js";
|
|
@@ -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.
|
|
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.
|
|
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) {
|
|
@@ -1065,6 +1065,9 @@ var rr = "data:application/json;base64,ewogICIxMjMiOiB7CiAgICAiY2F0ZWdvcmllcyI6I
|
|
|
1065
1065
|
async handleVariantChange() {
|
|
1066
1066
|
await this.updateComplete, this.runFirstUpdated();
|
|
1067
1067
|
}
|
|
1068
|
+
async handleSelectOptionsChange() {
|
|
1069
|
+
await this.updateComplete, await this.selectVirtualizer?.layoutComplete?.catch(() => void 0), this.select?.requestUpdate();
|
|
1070
|
+
}
|
|
1068
1071
|
async handleCustomIconValidation() {
|
|
1069
1072
|
await this.updateComplete, await this.select?.updateComplete, this.updateCustomIconValidity();
|
|
1070
1073
|
}
|
|
@@ -1126,6 +1129,12 @@ var rr = "data:application/json;base64,ewogICIxMjMiOiB7CiAgICAiY2F0ZWdvcmllcyI6I
|
|
|
1126
1129
|
handleSearchInput(e) {
|
|
1127
1130
|
this.searchTerm = e.target.value.toLowerCase();
|
|
1128
1131
|
}
|
|
1132
|
+
handleSelectSearchInput() {
|
|
1133
|
+
this.searchTerm = this.select.displayInput.value.trim().toLowerCase();
|
|
1134
|
+
}
|
|
1135
|
+
handleSelectSearchReset(e) {
|
|
1136
|
+
e.target === this.select && (this.searchTerm = "");
|
|
1137
|
+
}
|
|
1129
1138
|
handleMenuSelect(e) {
|
|
1130
1139
|
let t = e.detail.item.value;
|
|
1131
1140
|
this.value = this.setValueMenuSelect(this.value.name, t), this.emit("cx-change");
|
|
@@ -1152,8 +1161,8 @@ var rr = "data:application/json;base64,ewogICIxMjMiOiB7CiAgICAiY2F0ZWdvcmllcyI6I
|
|
|
1152
1161
|
selectGetOptionLabel(e) {
|
|
1153
1162
|
return !e || !(e instanceof E) ? this.value?.name.toString() : e.value === "custom" ? this.customOptionLabel || this.localize.term("custom") : e.dataset.name || e.value.toString();
|
|
1154
1163
|
}
|
|
1155
|
-
selectFilterCallback(e
|
|
1156
|
-
return
|
|
1164
|
+
selectFilterCallback(e) {
|
|
1165
|
+
return e instanceof E;
|
|
1157
1166
|
}
|
|
1158
1167
|
renderIcon(e, t) {
|
|
1159
1168
|
return e.startsWith("fa ") ? n`<cx-icon slot=${v(t)} variant="fa" name=${e}></cx-icon>` : n`<cx-icon slot=${v(t)} name=${e}></cx-icon>`;
|
|
@@ -1171,7 +1180,7 @@ var rr = "data:application/json;base64,ewogICIxMjMiOiB7CiAgICAiY2F0ZWdvcmllcyI6I
|
|
|
1171
1180
|
}
|
|
1172
1181
|
renderSelectMode() {
|
|
1173
1182
|
let e = this.value?.name.trim();
|
|
1174
|
-
return n`<cx-select part="base" class="icon-picker__select" value=${v(this.value?.name)} placeholder=${this.searchPlaceholder || this.localize.term("search")} no-option-text=${this.localize.term("noResults")} ?clearable=${this.clearable} .form=${this.requireCustomIcon ? this.closest("form") : void 0} hoist no-flip data-label=${this.localize.term("iconPicker")} @cx-change=${this.handleSelectValueChange} @cx-show=${this.handleSelectBeforeShow} @cx-after-show=${this.handleSelectShow} .setOptionCurrent=${this.setSelectOptionCurrent}>${this.renderSelectPrefixIcon(e)}
|
|
1183
|
+
return n`<cx-select part="base" class="icon-picker__select" value=${v(this.value?.name)} placeholder=${this.searchPlaceholder || this.localize.term("search")} no-option-text=${this.localize.term("noResults")} ?clearable=${this.clearable} .form=${this.requireCustomIcon ? this.closest("form") : void 0} hoist no-flip data-label=${this.localize.term("iconPicker")} @cx-change=${this.handleSelectValueChange} @input=${this.handleSelectSearchInput} @cx-blur=${this.handleSelectSearchReset} @cx-clear=${this.handleSelectSearchReset} @cx-show=${this.handleSelectBeforeShow} @cx-after-show=${this.handleSelectShow} .setOptionCurrent=${this.setSelectOptionCurrent}>${this.renderSelectPrefixIcon(e)}
|
|
1175
1184
|
${y(this.showVirtualizer, () => n`<lit-virtualizer .items=${this.virtualListItems} .renderItem=${this.renderOption}></lit-virtualizer>`)}
|
|
1176
1185
|
${y(!this.noCustomOption, () => n`<div part="footer" class="icon-picker__select__footer"><cx-divider part="footer-divider" class="icon-picker__select__footer__divider"></cx-divider><cx-option part="custom-button" class="icon-picker__select__footer__option" value="custom">${y(this.customOptionIcon, () => n`<cx-icon slot="prefix" name=${this.customOptionIcon}></cx-icon>`)}${this.customOptionLabel || this.localize.term("custom")}</cx-option></div>`)}</cx-select>${y(this.value?.name === "custom", () => this.renderCustomIconPicker())}
|
|
1177
1186
|
`;
|
|
@@ -1189,7 +1198,7 @@ var rr = "data:application/json;base64,ewogICIxMjMiOiB7CiAgICAiY2F0ZWdvcmllcyI6I
|
|
|
1189
1198
|
${y(this.canPickColor, () => n`<cx-bicolor-picker value=${qe(this.color)} @cx-bicolor-picker-change=${this.handleBicolorChange}></cx-bicolor-picker>`)}</cx-space>`;
|
|
1190
1199
|
}
|
|
1191
1200
|
};
|
|
1192
|
-
l([f(".icon-picker__select"), u("design:type", O === void 0 ? Object : O)], U.prototype, "select", void 0), l([f(".icon-picker__select__footer__option"), u("design:type", E === void 0 ? Object : E)], U.prototype, "customOption", void 0), l([f("cx-dropdown"), u("design:type", w === void 0 ? Object : w)], U.prototype, "dropdown", void 0), l([s({
|
|
1201
|
+
l([f(".icon-picker__select"), u("design:type", O === void 0 ? Object : O)], U.prototype, "select", void 0), l([f(".icon-picker__select__footer__option"), u("design:type", E === void 0 ? Object : E)], U.prototype, "customOption", void 0), l([f("cx-dropdown"), u("design:type", w === void 0 ? Object : w)], U.prototype, "dropdown", void 0), l([f(".icon-picker__select lit-virtualizer"), u("design:type", Object)], U.prototype, "selectVirtualizer", void 0), l([s({
|
|
1193
1202
|
converter: { fromAttribute(e) {
|
|
1194
1203
|
if (!e) return {
|
|
1195
1204
|
name: "",
|
|
@@ -1260,6 +1269,11 @@ l([f(".icon-picker__select"), u("design:type", O === void 0 ? Object : O)], U.pr
|
|
|
1260
1269
|
u("design:paramtypes", []),
|
|
1261
1270
|
u("design:returntype", Promise)
|
|
1262
1271
|
], U.prototype, "handleVariantChange", null), l([
|
|
1272
|
+
g(["searchTerm", "showVirtualizer"], { waitUntilFirstUpdate: !0 }),
|
|
1273
|
+
u("design:type", Function),
|
|
1274
|
+
u("design:paramtypes", []),
|
|
1275
|
+
u("design:returntype", Promise)
|
|
1276
|
+
], U.prototype, "handleSelectOptionsChange", null), l([
|
|
1263
1277
|
g("value", { waitUntilFirstUpdate: !0 }),
|
|
1264
1278
|
g("requireCustomIcon", { waitUntilFirstUpdate: !0 }),
|
|
1265
1279
|
g("variant"),
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|