@orangelogic/design-system 2.77.0 → 2.78.0-ci.5

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.
Files changed (47) hide show
  1. package/library/chunks/{button.csCRiZzY.js → button.DS64Tr8Z.js} +2 -4
  2. package/library/chunks/{color-swatch-group.CKdXj10T.js → color-swatch-group.DLXAJdU4.js} +1 -1
  3. package/library/chunks/{confirm-popover.Kx6YyQwp.js → confirm-popover.BNjRvnN0.js} +1 -1
  4. package/library/chunks/{file-on-demand.BJZ5E8XT.js → file-on-demand.BTTdth3o.js} +4 -4
  5. package/library/chunks/{folder-select.BqLmIlj6.js → folder-select.B2qxSKA5.js} +1 -1
  6. package/library/chunks/{index.VbMreXxL.js → index.Bx0otwQo.js} +1 -1
  7. package/library/chunks/{list-editor.BzzQoZe1.js → list-editor.C2ZRwPIG.js} +2 -2
  8. package/library/chunks/{pagination.BXCr_5om.js → pagination.DZq0IZjI.js} +83 -73
  9. package/library/chunks/{tab-group.G24wrely.js → tab-group.Dg6a82ei.js} +1 -1
  10. package/library/chunks/{table.34yySlt-.js → table.COCT3Fsb.js} +664 -516
  11. package/library/chunks/url.Cj9cIQXJ.js +27 -0
  12. package/library/components/asset-link-format.js +1 -1
  13. package/library/components/atoms.js +4 -4
  14. package/library/components/button.js +1 -1
  15. package/library/components/color-picker.js +1 -1
  16. package/library/components/color-swatch-group.js +2 -2
  17. package/library/components/confirm-popover.js +2 -2
  18. package/library/components/dynamic-select.js +1 -1
  19. package/library/components/element-clamp.js +1 -1
  20. package/library/components/file-on-demand.js +5 -5
  21. package/library/components/folder-select.js +1 -1
  22. package/library/components/line-clamp.js +1 -1
  23. package/library/components/list-editor.js +3 -3
  24. package/library/components/molecules.js +3 -3
  25. package/library/components/organisms.js +2 -2
  26. package/library/components/pagination.js +2 -2
  27. package/library/components/select.js +156 -127
  28. package/library/components/tab-group.js +2 -2
  29. package/library/components/table.js +3 -3
  30. package/library/components/textarea.js +200 -174
  31. package/library/components/types.js +10217 -10205
  32. package/library/components/video.js +3521 -3499
  33. package/library/package.json +4 -1
  34. package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
  35. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  36. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  37. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
  38. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
  39. package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
  40. package/library/packages/organisms/src/carousel/carousel.d.ts +2 -0
  41. package/library/packages/types/src/table.d.ts +2 -0
  42. package/library/packages/types/src/textarea.d.ts +4 -0
  43. package/library/packages/utils/src/url/url.d.ts +9 -0
  44. package/library/react-web-component.d.ts +10 -6
  45. package/library/utils.js +34 -33
  46. package/package.json +4 -1
  47. package/library/chunks/url.LjsR2sB5.js +0 -15
@@ -1,6 +1,6 @@
1
- import O from "./line-clamp.js";
1
+ import w from "./line-clamp.js";
2
2
  import { C } from "../chunks/typography.oDzoLbZS.js";
3
- import { n as o, C as S } from "../chunks/lib-cortex-element.CVMmyPMC.js";
3
+ import { n as a, C as S } from "../chunks/lib-cortex-element.CVMmyPMC.js";
4
4
  import { c as k } from "../chunks/component.styles.DMSLciL5.js";
5
5
  import { f as z } from "../chunks/form-control.styles.CUGhvlfT.js";
6
6
  import { s as x, a as y } from "../chunks/animate.El-MpOws.js";
@@ -10,22 +10,22 @@ import { w as v } from "../chunks/event.mFzZi4sr.js";
10
10
  import { F as L } from "../chunks/form.DgwYWi0O.js";
11
11
  import { L as $ } from "../chunks/i18n.BUW7B9hr.js";
12
12
  import { s as T } from "../chunks/scroll.xtO5yojm.js";
13
- import { H as E } from "../chunks/slot.j5oheLJC.js";
14
- import { i as B } from "../chunks/user-agent.D9aPuOyL.js";
15
- import { w as h } from "../chunks/watch.BCJD77bD.js";
16
- import { i as F, x as p, E as A } from "../chunks/lit-element.jLBm65_O.js";
17
- import { r as f } from "../chunks/state.CSDxrqLd.js";
18
- import { e as u } from "../chunks/query.BBf1UFkC.js";
13
+ import { H as V } from "../chunks/slot.j5oheLJC.js";
14
+ import { i as E } from "../chunks/user-agent.D9aPuOyL.js";
15
+ import { w as p } from "../chunks/watch.BCJD77bD.js";
16
+ import { i as B, x as u, E as F } from "../chunks/lit-element.jLBm65_O.js";
17
+ import { r as g } from "../chunks/state.CSDxrqLd.js";
18
+ import { e as m } from "../chunks/query.BBf1UFkC.js";
19
19
  import { e as b } from "../chunks/class-map.BiVq-cVR.js";
20
- import { o as V } from "../chunks/unsafe-html.Dff7-rCx.js";
21
- import { n as m } from "../chunks/when.Dr1es41R.js";
22
- import { s as w, g as _ } from "../chunks/animation-registry.HmpwNuGH.js";
20
+ import { o as A } from "../chunks/unsafe-html.Dff7-rCx.js";
21
+ import { n as f } from "../chunks/when.Dr1es41R.js";
22
+ import { s as O, g as _ } from "../chunks/animation-registry.HmpwNuGH.js";
23
23
  import P from "./icon.js";
24
24
  import { C as d } from "../chunks/option.Csqefux_.js";
25
- import M from "./popup.js";
26
- import U from "./spinner.js";
25
+ import U from "./popup.js";
26
+ import M from "./spinner.js";
27
27
  import N from "./tag.js";
28
- const R = (t) => !(document.createElement(t.tagName).constructor === HTMLElement || customElements.get(t.tagName.toLowerCase())), W = F`
28
+ const R = (t) => !(document.createElement(t.tagName).constructor === HTMLElement || customElements.get(t.tagName.toLowerCase())), W = B`
29
29
  :host {
30
30
  display: block;
31
31
  }
@@ -599,23 +599,23 @@ const R = (t) => !(document.createElement(t.tagName).constructor === HTMLElement
599
599
  }
600
600
  `;
601
601
  var H = Object.defineProperty, q = Object.getOwnPropertyDescriptor, s = (t, e, l, n) => {
602
- for (var a = n > 1 ? void 0 : n ? q(e, l) : e, r = t.length - 1, c; r >= 0; r--)
603
- (c = t[r]) && (a = (n ? c(e, l, a) : c(a)) || a);
604
- return n && a && H(e, l, a), a;
602
+ for (var o = n > 1 ? void 0 : n ? q(e, l) : e, r = t.length - 1, c; r >= 0; r--)
603
+ (c = t[r]) && (o = (n ? c(e, l, o) : c(o)) || o);
604
+ return n && o && H(e, l, o), o;
605
605
  };
606
606
  let i = class extends S {
607
607
  constructor() {
608
608
  super(...arguments), this.formControlController = new L(this, {
609
609
  assumeInteractionOn: ["cx-input"]
610
- }), this.hasSlotController = new E(
610
+ }), this.hasSlotController = new V(
611
611
  this,
612
612
  "help-text",
613
613
  "label"
614
- ), this.localize = new $(this), this.typeToSelectString = "", this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.name = "", this.value = "", this.defaultValue = "", this.size = "medium", this.placeholder = "", this.allowFreetext = !1, this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.noFlip = !1, this.freeWidth = !1, this.autosizePadding = 10, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = void 0, this.required = !1, this.useTag = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.noDropdown = !1, this.loading = !1, this.getTag = (t) => {
615
- const e = this.hasSlotController.test("label"), n = (this.label ? !0 : !!e) ? this.size === "large" ? "medium" : "small" : this.size, a = (r) => {
614
+ ), this.localize = new $(this), this.typeToSelectString = "", this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.name = "", this.value = "", this.fallbackOptionValue = "", this.defaultValue = "", this.size = "medium", this.placeholder = "", this.allowFreetext = !1, this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.noFlip = !1, this.freeWidth = !1, this.autosizePadding = 10, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = void 0, this.required = !1, this.useTag = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.noDropdown = !1, this.loading = !1, this.getTag = (t) => {
615
+ const e = this.hasSlotController.test("label"), n = (this.label ? !0 : !!e) ? this.size === "large" ? "medium" : "small" : this.size, o = (r) => {
616
616
  this.handleTagRemove(r, t);
617
617
  };
618
- return p`
618
+ return u`
619
619
  <cx-tag
620
620
  part="tag"
621
621
  exportparts="
@@ -627,7 +627,7 @@ let i = class extends S {
627
627
  ?pill=${this.pill}
628
628
  size=${n}
629
629
  ?removable=${this.multiple}
630
- @cx-remove=${a}
630
+ @cx-remove=${o}
631
631
  >
632
632
  <cx-line-clamp lines="1">
633
633
  ${this.getOptionLabel(t)}
@@ -681,11 +681,11 @@ let i = class extends S {
681
681
  return;
682
682
  }
683
683
  if (["ArrowUp", "ArrowDown", "Home", "End"].includes(t.key)) {
684
- const a = this.getAllOptions().filter((g) => this.inputBehavior === "filter" ? !g.hidden : !0), r = this.currentOption ? a.indexOf(this.currentOption) : -1;
684
+ const o = this.getAllOptions().filter((h) => this.inputBehavior === "filter" ? !h.hidden : !0), r = this.currentOption ? o.indexOf(this.currentOption) : -1;
685
685
  let c = Math.max(0, r);
686
686
  if (t.preventDefault(), !this.open && (this.show(), this.currentOption))
687
687
  return;
688
- t.key === "ArrowDown" ? (c = r + 1, c > a.length - 1 && (c = 0)) : t.key === "ArrowUp" ? (c = r - 1, c < 0 && (c = a.length - 1)) : t.key === "Home" ? c = 0 : t.key === "End" && (c = a.length - 1), this.setCurrentOption(a[c]);
688
+ t.key === "ArrowDown" ? (c = r + 1, c > o.length - 1 && (c = 0)) : t.key === "ArrowUp" ? (c = r - 1, c < 0 && (c = o.length - 1)) : t.key === "Home" ? c = 0 : t.key === "End" && (c = o.length - 1), this.setCurrentOption(o[c]);
689
689
  }
690
690
  }
691
691
  }, this.handleDocumentMouseDown = (t) => {
@@ -757,7 +757,7 @@ let i = class extends S {
757
757
  super.connectedCallback(), this.stayOpenOnSelect || (this.open = !1);
758
758
  }
759
759
  runFirstUpdated() {
760
- B() && (this.contentEditable = "true");
760
+ E() && (this.contentEditable = "true");
761
761
  }
762
762
  addOpenListeners() {
763
763
  document.addEventListener(
@@ -823,12 +823,12 @@ let i = class extends S {
823
823
  handleComboboxMouseDown(t) {
824
824
  const e = t.composedPath();
825
825
  let l = !1, n = !1;
826
- e.forEach((a) => {
827
- if (a instanceof HTMLElement && a.classList.contains("select__expand-icon")) {
826
+ e.forEach((o) => {
827
+ if (o instanceof HTMLElement && o.classList.contains("select__expand-icon")) {
828
828
  n = !0;
829
829
  return;
830
830
  }
831
- a instanceof HTMLElement && a.tagName.toLowerCase() === "cx-icon-button" && (l = !0);
831
+ o instanceof HTMLElement && o.tagName.toLowerCase() === "cx-icon-button" && (l = !0);
832
832
  }), !(this.disabled || l) && (n || this.inputBehavior !== "filter" || !this.open || !this.multiple && !this.useTag ? (this.allowDefaultMouseDown ? requestAnimationFrame(() => {
833
833
  this.displayInput.focus({ preventScroll: !0 });
834
834
  }) : (t.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open) : (t.preventDefault(), this.displayInput.focus({ preventScroll: !0 })));
@@ -845,12 +845,12 @@ let i = class extends S {
845
845
  t.stopPropagation(), t.preventDefault();
846
846
  }
847
847
  handleOptionClick(t) {
848
- const l = t.target.closest('[role="option"], cx-option'), n = this.value, a = t.composedPath().some(
848
+ const l = t.target.closest('[role="option"], cx-option'), n = this.value, o = t.composedPath().some(
849
849
  (c) => c?.classList?.contains("tree-item__expand-button")
850
850
  ), r = t.composedPath().some(
851
851
  (c) => c?.classList?.contains("tree-item__actions")
852
852
  );
853
- l && !this.getOptionDisabled(l) && !a && !r && (this.multiple ? this.toggleOptionSelection(l) : this.setSelectedOptions(l), this.updateComplete.then(
853
+ l && !this.getOptionDisabled(l) && !o && !r && (this.multiple ? this.toggleOptionSelection(l) : this.setSelectedOptions(l), this.updateComplete.then(
854
854
  () => this.displayInput.focus({ preventScroll: !0 })
855
855
  ), (this.value !== n || this.forceOnChange) && this.updateComplete.then(() => {
856
856
  this.emit("cx-input"), this.emit("cx-change");
@@ -858,20 +858,23 @@ let i = class extends S {
858
858
  }
859
859
  handleDefaultSlotChange() {
860
860
  const t = this.getAllOptions(), e = Array.isArray(this.value) ? this.value : [this.value], l = [];
861
- for (const n of t) {
862
- const a = this.getOptionValue(n);
863
- if (!a && !(n instanceof d))
861
+ for (const r of t) {
862
+ const c = this.getOptionValue(r);
863
+ if (!c && !(r instanceof d))
864
864
  return;
865
- l.push(a);
866
- const r = n.tagName.toLowerCase();
867
- if (!R(n) && !customElements.get(r)) {
868
- customElements.whenDefined(r).then(() => this.handleDefaultSlotChange());
865
+ l.push(c);
866
+ const h = r.tagName.toLowerCase();
867
+ if (!R(r) && !customElements.get(h)) {
868
+ customElements.whenDefined(h).then(() => this.handleDefaultSlotChange());
869
869
  return;
870
870
  }
871
871
  }
872
- t.forEach((n) => l.push(this.getOptionValue(n))), this.setSelectedOptions(
873
- t.filter((n) => e.includes(this.getOptionValue(n)))
872
+ t.forEach((r) => l.push(this.getOptionValue(r)));
873
+ const { options: n, preserveValue: o } = this.getOptionsForValue(
874
+ e,
875
+ t
874
876
  );
877
+ this.setSelectedOptions(n, o ? this.value : void 0);
875
878
  }
876
879
  handleTagRemove(t, e) {
877
880
  t.stopPropagation(), this.disabled || (this.toggleOptionSelection(e, !1), this.updateComplete.then(() => {
@@ -898,6 +901,27 @@ let i = class extends S {
898
901
  getVisibleOptions() {
899
902
  return this.getAllOptions().filter((t) => !t.hidden);
900
903
  }
904
+ /**
905
+ * Resolves selected options for the current value and applies fallback selection
906
+ * when unmatched values exist and `fallbackOptionValue` is configured.
907
+ */
908
+ getOptionsForValue(t, e = this.getAllOptions()) {
909
+ const l = [], n = this.fallbackOptionValue ? e.find(
910
+ (r) => this.getOptionValue(r) === this.fallbackOptionValue
911
+ ) : void 0;
912
+ let o = !1;
913
+ return t.forEach((r) => {
914
+ if (r === "")
915
+ return;
916
+ const c = e.find(
917
+ (h) => this.getOptionValue(h) === r
918
+ );
919
+ c ? l.push(c) : o = !0;
920
+ }), o && n && l.push(n), {
921
+ options: l,
922
+ preserveValue: o && !!n
923
+ };
924
+ }
901
925
  /**
902
926
  * Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
903
927
  * option may be "current" at a time.
@@ -910,9 +934,9 @@ let i = class extends S {
910
934
  /**
911
935
  * Sets the selected option(s)
912
936
  */
913
- setSelectedOptions(t) {
914
- const e = this.getAllOptions(), l = Array.isArray(t) ? t : [t];
915
- e.forEach((n) => this.setOptionSelected(n, !1)), l.length && l.forEach((n) => this.setOptionSelected(n, !0)), this.selectionChanged();
937
+ setSelectedOptions(t, e) {
938
+ const l = this.getAllOptions(), n = Array.isArray(t) ? t : [t];
939
+ l.forEach((o) => this.setOptionSelected(o, !1)), n.length && n.forEach((o) => this.setOptionSelected(o, !0)), this.selectionChanged(e);
916
940
  }
917
941
  /**
918
942
  * Toggles an option's selected state
@@ -924,24 +948,24 @@ let i = class extends S {
924
948
  * This method must be called whenever the selection changes. It will update the selected options cache, the current
925
949
  * value, and the display value
926
950
  */
927
- selectionChanged() {
951
+ selectionChanged(t) {
928
952
  this.selectedOptions = this.getAllOptions().filter(
929
- (t) => this.getOptionSelected(t)
930
- ), this.multiple ? (this.value = this.selectedOptions.map((t) => this.getOptionValue(t)), this.displayLabel = "") : (this.value = this.getOptionValue(this.selectedOptions[0]) ?? "", this.displayLabel = this.getOptionLabel(this.selectedOptions[0]) ?? ""), this.updateComplete.then(() => {
953
+ (e) => this.getOptionSelected(e)
954
+ ), this.multiple ? (this.value = t ?? this.selectedOptions.map((e) => this.getOptionValue(e)), this.displayLabel = "") : (this.value = t ?? this.getOptionValue(this.selectedOptions[0]) ?? "", this.displayLabel = this.getOptionLabel(this.selectedOptions[0]) ?? ""), this.updateComplete.then(() => {
931
955
  this.formControlController.updateValidity();
932
956
  });
933
957
  }
934
958
  get tags() {
935
959
  const t = this.hasSlotController.test("label"), l = (this.label ? !0 : !!t) ? this.size === "large" ? "medium" : "small" : this.size;
936
- return this.selectedOptions.map((n, a) => {
937
- if (a < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
938
- const r = this.getTag(n, a);
939
- return p`${typeof r == "string" ? V(r) : r}`;
940
- } else if (a === this.maxOptionsVisible)
941
- return p`<cx-tag ?pill=${this.pill} size=${l}>
942
- +${this.selectedOptions.length - a}
960
+ return this.selectedOptions.map((n, o) => {
961
+ if (o < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
962
+ const r = this.getTag(n, o);
963
+ return u`${typeof r == "string" ? A(r) : r}`;
964
+ } else if (o === this.maxOptionsVisible)
965
+ return u`<cx-tag ?pill=${this.pill} size=${l}>
966
+ +${this.selectedOptions.length - o}
943
967
  </cx-tag>`;
944
- return A;
968
+ return F;
945
969
  });
946
970
  }
947
971
  handleInvalid(t) {
@@ -951,10 +975,11 @@ let i = class extends S {
951
975
  this.disabled && (this.open = !1, this.handleOpenChange());
952
976
  }
953
977
  handleValueChange() {
954
- const t = this.getAllOptions(), e = Array.isArray(this.value) ? this.value : [this.value];
955
- this.setSelectedOptions(
956
- t.filter((l) => e.includes(this.getOptionValue(l)))
978
+ const t = this.getAllOptions(), e = Array.isArray(this.value) ? this.value : [this.value], { options: l, preserveValue: n } = this.getOptionsForValue(
979
+ e,
980
+ t
957
981
  );
982
+ this.setSelectedOptions(l, n ? this.value : void 0);
958
983
  }
959
984
  async handleNoDropdownChange() {
960
985
  await this.updateComplete, this.noDropdown ? this.open = !1 : this.handleOpenChange();
@@ -1033,8 +1058,8 @@ let i = class extends S {
1033
1058
  this.displayInput.blur();
1034
1059
  }
1035
1060
  render() {
1036
- const t = this.hasSlotController.test("label"), e = this.hasSlotController.test("help-text"), l = this.label ? !0 : !!t, n = this.helpText ? !0 : !!e, a = this.clearable && !this.disabled && (this.displayLabel.length > 0 || this.selectedOptions.length > 0), r = this.placeholder && this.value.length === 0 && this.displayLabel.length === 0, c = this.value.length === 0 && this.displayLabel.length === 0 || (this.multiple || this.useTag) && this.tags.length === 0, g = (this.multiple || this.useTag) && this.selectedOptions.length > 0;
1037
- return p`
1061
+ const t = this.hasSlotController.test("label"), e = this.hasSlotController.test("help-text"), l = this.label ? !0 : !!t, n = this.helpText ? !0 : !!e, o = this.clearable && !this.disabled && (this.displayLabel.length > 0 || this.selectedOptions.length > 0), r = this.placeholder && this.value.length === 0 && this.displayLabel.length === 0, c = this.value.length === 0 && this.displayLabel.length === 0 || (this.multiple || this.useTag) && this.tags.length === 0, h = (this.multiple || this.useTag) && this.selectedOptions.length > 0;
1062
+ return u`
1038
1063
  <div
1039
1064
  part="form-control"
1040
1065
  class=${b({
@@ -1094,9 +1119,9 @@ let i = class extends S {
1094
1119
  >
1095
1120
  <slot name="label">${this.label}</slot>
1096
1121
  </label>
1097
- ${m(
1098
- g,
1099
- () => p`
1122
+ ${f(
1123
+ h,
1124
+ () => u`
1100
1125
  <div
1101
1126
  part="tags"
1102
1127
  class="select__tags"
@@ -1149,9 +1174,9 @@ let i = class extends S {
1149
1174
  @invalid=${this.handleInvalid}
1150
1175
  />
1151
1176
 
1152
- ${m(
1177
+ ${f(
1153
1178
  this.loading,
1154
- () => p`
1179
+ () => u`
1155
1180
  <cx-spinner
1156
1181
  part="spinner"
1157
1182
  role="status"
@@ -1159,9 +1184,9 @@ let i = class extends S {
1159
1184
  ></cx-spinner>
1160
1185
  `
1161
1186
  )}
1162
- ${m(
1163
- a,
1164
- () => p`
1187
+ ${f(
1188
+ o,
1189
+ () => u`
1165
1190
  <button
1166
1191
  part="clear-button"
1167
1192
  class="select__clear"
@@ -1202,9 +1227,9 @@ let i = class extends S {
1202
1227
  @slotchange=${this.handleDefaultSlotChange}
1203
1228
  >
1204
1229
  <slot></slot>
1205
- ${m(
1230
+ ${f(
1206
1231
  this.shouldShowNoOptionsMessage,
1207
- () => p`
1232
+ () => u`
1208
1233
  <cx-typography
1209
1234
  variant="body3"
1210
1235
  class="select__no-options"
@@ -1237,203 +1262,207 @@ i.styles = [
1237
1262
  ];
1238
1263
  i.dependencies = {
1239
1264
  "cx-icon": P,
1240
- "cx-line-clamp": O,
1241
- "cx-popup": M,
1242
- "cx-spinner": U,
1265
+ "cx-line-clamp": w,
1266
+ "cx-popup": U,
1267
+ "cx-spinner": M,
1243
1268
  "cx-tag": N,
1244
1269
  "cx-typography": C
1245
1270
  };
1246
1271
  s([
1247
- u(".select")
1272
+ m(".select")
1248
1273
  ], i.prototype, "popup", 2);
1249
1274
  s([
1250
- u(".select__combobox")
1275
+ m(".select__combobox")
1251
1276
  ], i.prototype, "combobox", 2);
1252
1277
  s([
1253
- u(".select__display-input")
1278
+ m(".select__display-input")
1254
1279
  ], i.prototype, "displayInput", 2);
1255
1280
  s([
1256
- u(".select__value-input")
1281
+ m(".select__value-input")
1257
1282
  ], i.prototype, "valueInput", 2);
1258
1283
  s([
1259
- u(".select__listbox")
1284
+ m(".select__listbox")
1260
1285
  ], i.prototype, "listbox", 2);
1261
1286
  s([
1262
- f()
1287
+ g()
1263
1288
  ], i.prototype, "hasFocus", 2);
1264
1289
  s([
1265
- f()
1290
+ g()
1266
1291
  ], i.prototype, "displayLabel", 2);
1267
1292
  s([
1268
- f()
1293
+ g()
1269
1294
  ], i.prototype, "currentOption", 2);
1270
1295
  s([
1271
- f()
1296
+ g()
1272
1297
  ], i.prototype, "selectedOptions", 2);
1273
1298
  s([
1274
- o()
1299
+ a()
1275
1300
  ], i.prototype, "name", 2);
1276
1301
  s([
1277
- o({
1302
+ a({
1278
1303
  converter: {
1279
1304
  fromAttribute: (t) => t.split(" "),
1280
1305
  toAttribute: (t) => Array.isArray(t) ? t.join(" ") : t
1281
1306
  }
1282
1307
  })
1283
1308
  ], i.prototype, "value", 2);
1309
+ s([
1310
+ a({ attribute: "fallback-option-value", type: String })
1311
+ ], i.prototype, "fallbackOptionValue", 2);
1284
1312
  s([
1285
1313
  I()
1286
1314
  ], i.prototype, "defaultValue", 2);
1287
1315
  s([
1288
- o({ reflect: !0 })
1316
+ a({ reflect: !0 })
1289
1317
  ], i.prototype, "size", 2);
1290
1318
  s([
1291
- o()
1319
+ a()
1292
1320
  ], i.prototype, "placeholder", 2);
1293
1321
  s([
1294
- o({ attribute: "allow-freetext", reflect: !0, type: Boolean })
1322
+ a({ attribute: "allow-freetext", reflect: !0, type: Boolean })
1295
1323
  ], i.prototype, "allowFreetext", 2);
1296
1324
  s([
1297
- o({ reflect: !0, type: Boolean })
1325
+ a({ reflect: !0, type: Boolean })
1298
1326
  ], i.prototype, "multiple", 2);
1299
1327
  s([
1300
- o({ attribute: "max-options-visible", type: Number })
1328
+ a({ attribute: "max-options-visible", type: Number })
1301
1329
  ], i.prototype, "maxOptionsVisible", 2);
1302
1330
  s([
1303
- o({ reflect: !0, type: Boolean })
1331
+ a({ reflect: !0, type: Boolean })
1304
1332
  ], i.prototype, "disabled", 2);
1305
1333
  s([
1306
- o({ type: Boolean })
1334
+ a({ type: Boolean })
1307
1335
  ], i.prototype, "clearable", 2);
1308
1336
  s([
1309
- o({ reflect: !0, type: Boolean })
1337
+ a({ reflect: !0, type: Boolean })
1310
1338
  ], i.prototype, "open", 2);
1311
1339
  s([
1312
- o({ type: Boolean })
1340
+ a({ type: Boolean })
1313
1341
  ], i.prototype, "hoist", 2);
1314
1342
  s([
1315
- o({ attribute: "no-flip", reflect: !0, type: Boolean })
1343
+ a({ attribute: "no-flip", reflect: !0, type: Boolean })
1316
1344
  ], i.prototype, "noFlip", 2);
1317
1345
  s([
1318
- o({ attribute: "sync-element" })
1346
+ a({ attribute: "sync-element" })
1319
1347
  ], i.prototype, "syncElement", 2);
1320
1348
  s([
1321
- o({ attribute: "free-width", reflect: !0, type: Boolean })
1349
+ a({ attribute: "free-width", reflect: !0, type: Boolean })
1322
1350
  ], i.prototype, "freeWidth", 2);
1323
1351
  s([
1324
- o({ attribute: "auto-size-padding", type: Number })
1352
+ a({ attribute: "auto-size-padding", type: Number })
1325
1353
  ], i.prototype, "autosizePadding", 2);
1326
1354
  s([
1327
- o({ reflect: !0, type: Boolean })
1355
+ a({ reflect: !0, type: Boolean })
1328
1356
  ], i.prototype, "filled", 2);
1329
1357
  s([
1330
- o({ reflect: !0, type: Boolean })
1358
+ a({ reflect: !0, type: Boolean })
1331
1359
  ], i.prototype, "pill", 2);
1332
1360
  s([
1333
- o()
1361
+ a()
1334
1362
  ], i.prototype, "label", 2);
1335
1363
  s([
1336
- o({ reflect: !0 })
1364
+ a({ reflect: !0 })
1337
1365
  ], i.prototype, "placement", 2);
1338
1366
  s([
1339
- o({ attribute: "help-text" })
1367
+ a({ attribute: "help-text" })
1340
1368
  ], i.prototype, "helpText", 2);
1341
1369
  s([
1342
- o({ reflect: !1 })
1370
+ a({ reflect: !1 })
1343
1371
  ], i.prototype, "form", 2);
1344
1372
  s([
1345
- o({ reflect: !0, type: Boolean })
1373
+ a({ reflect: !0, type: Boolean })
1346
1374
  ], i.prototype, "required", 2);
1347
1375
  s([
1348
- o({ attribute: "use-tag", reflect: !0, type: Boolean })
1376
+ a({ attribute: "use-tag", reflect: !0, type: Boolean })
1349
1377
  ], i.prototype, "useTag", 2);
1350
1378
  s([
1351
- o({
1379
+ a({
1352
1380
  attribute: "no-select-on-enter",
1353
1381
  reflect: !0,
1354
1382
  type: Boolean
1355
1383
  })
1356
1384
  ], i.prototype, "noSelectOnEnter", 2);
1357
1385
  s([
1358
- o({
1386
+ a({
1359
1387
  attribute: "no-reset-current",
1360
1388
  reflect: !0,
1361
1389
  type: Boolean
1362
1390
  })
1363
1391
  ], i.prototype, "noResetCurrent", 2);
1364
1392
  s([
1365
- o({
1393
+ a({
1366
1394
  attribute: "no-dropdown",
1367
1395
  reflect: !0,
1368
1396
  type: Boolean
1369
1397
  })
1370
1398
  ], i.prototype, "noDropdown", 2);
1371
1399
  s([
1372
- o({
1400
+ a({
1373
1401
  attribute: "loading",
1374
1402
  reflect: !0,
1375
1403
  type: Boolean
1376
1404
  })
1377
1405
  ], i.prototype, "loading", 2);
1378
1406
  s([
1379
- o({ attribute: "get-tag" })
1407
+ a({ attribute: "get-tag" })
1380
1408
  ], i.prototype, "getTag", 2);
1381
1409
  s([
1382
- o({ attribute: "input-behavior" })
1410
+ a({ attribute: "input-behavior" })
1383
1411
  ], i.prototype, "inputBehavior", 2);
1384
1412
  s([
1385
- o({ attribute: "get-option-value" })
1413
+ a({ attribute: "get-option-value" })
1386
1414
  ], i.prototype, "getOptionValue", 2);
1387
1415
  s([
1388
- o({ attribute: "get-option-label" })
1416
+ a({ attribute: "get-option-label" })
1389
1417
  ], i.prototype, "getOptionLabel", 2);
1390
1418
  s([
1391
- o({ attribute: "get-option-selected" })
1419
+ a({ attribute: "get-option-selected" })
1392
1420
  ], i.prototype, "getOptionSelected", 2);
1393
1421
  s([
1394
- o({ attribute: "get-option-disabled" })
1422
+ a({ attribute: "get-option-disabled" })
1395
1423
  ], i.prototype, "getOptionDisabled", 2);
1396
1424
  s([
1397
- o({ attribute: "stay-open-on-select", type: Boolean })
1425
+ a({ attribute: "stay-open-on-select", type: Boolean })
1398
1426
  ], i.prototype, "stayOpenOnSelect", 2);
1399
1427
  s([
1400
- o({ attribute: "force-on-change", type: Boolean })
1428
+ a({ attribute: "force-on-change", type: Boolean })
1401
1429
  ], i.prototype, "forceOnChange", 2);
1402
1430
  s([
1403
- o({ attribute: "allow-default-mouse-down", type: Boolean })
1431
+ a({ attribute: "allow-default-mouse-down", type: Boolean })
1404
1432
  ], i.prototype, "allowDefaultMouseDown", 2);
1405
1433
  s([
1406
- o({ attribute: "no-option-text", type: String })
1434
+ a({ attribute: "no-option-text", type: String })
1407
1435
  ], i.prototype, "noOptionText", 2);
1408
1436
  s([
1409
- h("getOptionValue", { waitUntilFirstUpdate: !0 }),
1410
- h("getOptionLabel", { waitUntilFirstUpdate: !0 }),
1411
- h("getOptionSelected", { waitUntilFirstUpdate: !0 }),
1412
- h("getOptionDisabled", { waitUntilFirstUpdate: !0 })
1437
+ p("getOptionValue", { waitUntilFirstUpdate: !0 }),
1438
+ p("getOptionLabel", { waitUntilFirstUpdate: !0 }),
1439
+ p("getOptionSelected", { waitUntilFirstUpdate: !0 }),
1440
+ p("getOptionDisabled", { waitUntilFirstUpdate: !0 }),
1441
+ p("fallbackOptionValue", { waitUntilFirstUpdate: !0 })
1413
1442
  ], i.prototype, "handleDefaultSlotChange", 1);
1414
1443
  s([
1415
- h("disabled", { waitUntilFirstUpdate: !0 })
1444
+ p("disabled", { waitUntilFirstUpdate: !0 })
1416
1445
  ], i.prototype, "handleDisabledChange", 1);
1417
1446
  s([
1418
- h("value", { waitUntilFirstUpdate: !0 })
1447
+ p("value", { waitUntilFirstUpdate: !0 })
1419
1448
  ], i.prototype, "handleValueChange", 1);
1420
1449
  s([
1421
- h("noDropdown", { waitUntilFirstUpdate: !0 })
1450
+ p("noDropdown", { waitUntilFirstUpdate: !0 })
1422
1451
  ], i.prototype, "handleNoDropdownChange", 1);
1423
1452
  s([
1424
- h("open", { waitUntilFirstUpdate: !0 })
1453
+ p("open", { waitUntilFirstUpdate: !0 })
1425
1454
  ], i.prototype, "handleOpenChange", 1);
1426
1455
  i = s([
1427
1456
  D("cx-select")
1428
1457
  ], i);
1429
- w("select.show", {
1458
+ O("select.show", {
1430
1459
  keyframes: [
1431
1460
  { opacity: 0, scale: 0.9 },
1432
1461
  { opacity: 1, scale: 1 }
1433
1462
  ],
1434
1463
  options: { duration: 100, easing: "ease" }
1435
1464
  });
1436
- w("select.hide", {
1465
+ O("select.hide", {
1437
1466
  keyframes: [
1438
1467
  { opacity: 1, scale: 1 },
1439
1468
  { opacity: 0, scale: 0.9 }
@@ -1,7 +1,7 @@
1
1
  import "./resize-observer.js";
2
2
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
3
3
  import "../chunks/component.styles.DMSLciL5.js";
4
- import { C as A } from "../chunks/tab-group.G24wrely.js";
4
+ import { C as A } from "../chunks/tab-group.Dg6a82ei.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
6
6
  import "../chunks/i18n.BUW7B9hr.js";
7
7
  import "../chunks/scroll.xtO5yojm.js";
@@ -18,7 +18,7 @@ import "../chunks/guard.D4axKaMo.js";
18
18
  import "../chunks/map.D8heArFD.js";
19
19
  import "../chunks/style-map.llVFPd__.js";
20
20
  import "../chunks/when.Dr1es41R.js";
21
- import "../chunks/button.csCRiZzY.js";
21
+ import "../chunks/button.DS64Tr8Z.js";
22
22
  import "./dropdown.js";
23
23
  import "../chunks/icon-button.C3eqeQl9.js";
24
24
  import "./menu.js";
@@ -1,4 +1,4 @@
1
- import "../chunks/button.csCRiZzY.js";
1
+ import "../chunks/button.DS64Tr8Z.js";
2
2
  import "./checkbox.js";
3
3
  import "./divider.js";
4
4
  import "./format-number.js";
@@ -9,8 +9,8 @@ import "./spinner.js";
9
9
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
10
10
  import "../chunks/component.styles.DMSLciL5.js";
11
11
  import "../chunks/overlayscrollbars.XhGWx9Zk.js";
12
- import "../chunks/pagination.BXCr_5om.js";
13
- import { A as F, i as P, j as S, d as g, g as v, b as y, k as A, l as D, c as I, a0 as f, a1 as h, D as E, m as G, E as j, n as H, F as K, o as L, p as V, q as k, G as q, r as B, s as J, t as N, I as O, u as Q, K as U, v as W, M as X, w as Y, x as Z, y as _, z as $, B as oo, J as eo, L as ao, P as so, e as lo, N as to, h as uo, O as ro, Q as Mo, U as io, V as po, f as mo, R as no, X as Co, W as Ro, S as co, Y as bo, Z as wo, T as To, a as xo, _ as zo, $ as Fo, C as Po } from "../chunks/table.34yySlt-.js";
12
+ import "../chunks/pagination.DZq0IZjI.js";
13
+ import { A as F, i as P, j as S, d as g, g as v, b as y, k as A, l as D, c as I, a0 as f, a1 as h, D as E, m as G, E as j, n as H, F as K, o as L, p as V, q as k, G as q, r as B, s as J, t as N, I as O, u as Q, K as U, v as W, M as X, w as Y, x as Z, y as _, z as $, B as oo, J as eo, L as ao, P as so, e as lo, N as to, h as uo, O as ro, Q as Mo, U as io, V as po, f as mo, R as no, X as Co, W as Ro, S as co, Y as bo, Z as wo, T as To, a as xo, _ as zo, $ as Fo, C as Po } from "../chunks/table.COCT3Fsb.js";
14
14
  import "../chunks/custom-element.L4WJXn1j.js";
15
15
  import "../chunks/i18n.BUW7B9hr.js";
16
16
  import "../chunks/watch.BCJD77bD.js";