@orangelogic/design-system 3.56.0 → 3.57.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.
@@ -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.BPve1cYQ.js";
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";
@@ -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, t) {
1156
- return !e || !(e instanceof E) ? !1 : (this.searchTerm = t, !0);
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"),
@@ -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.D3M_CLup.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";
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";