@orangelogic/design-system 2.89.0 → 2.91.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.
@@ -1,5 +1,5 @@
1
1
  import z from "../components/space.js";
2
- import { C as $ } from "./table.CGTmaN_x.js";
2
+ import { C as $ } from "./table.Da1P5WrI.js";
3
3
  import { C as k } from "./typography.DJC_UXgs.js";
4
4
  import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
5
5
  import { C, a as g } from "./color-swatch.hsIcIXE-.js";
@@ -1,8 +1,8 @@
1
1
  import N from "../components/icon.js";
2
2
  import oe from "../components/input.js";
3
3
  import H from "../components/line-clamp.js";
4
- import ne from "../components/select.js";
5
- import ce from "../components/tag.js";
4
+ import ce from "../components/select.js";
5
+ import ne from "../components/tag.js";
6
6
  import { C as g, a as he } from "./tree.D5Fv7i1r.js";
7
7
  import { n as r, C as U } from "./lib-cortex-element.CVMmyPMC.js";
8
8
  import { h as E, F as de, b as pe } from "./endpoints.BpAhLyZw.js";
@@ -19,7 +19,7 @@ import { d as me } from "./debounce.DaHuiSGU.js";
19
19
  import { g as X, p as W, e as ye } from "./string.B_mXTq0K.js";
20
20
  import { o as y } from "./if-defined.BRoBj_Rp.js";
21
21
  import { c as Y } from "./repeat.DbF2p5ae.js";
22
- import { n as D } from "./when.Dr1es41R.js";
22
+ import { n as _ } from "./when.Dr1es41R.js";
23
23
  import xe from "../components/space.js";
24
24
  import { M as q } from "./asset-link-format.BSRDqHg7.js";
25
25
  import { g as be } from "./template.CsJd8Pb_.js";
@@ -208,7 +208,7 @@ let o = class extends U {
208
208
  this.data || [],
209
209
  (t) => t.id,
210
210
  (t) => m`<cx-folder-select-tree-item slot="children" folder-id=${t.id} full-path=${t.fullPath} name=${t.title} representative-asset-id=${t.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?has-children=${t.hasChildren} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${y(t.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${t.url}></cx-folder-select-tree-item>`
211
- )}</cx-tree-item>${D(
211
+ )}</cx-tree-item>${_(
212
212
  this.hasMore,
213
213
  () => m`<div slot="children" class="load-more-button"><cx-button variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button></div>`
214
214
  )}
@@ -315,10 +315,10 @@ var Fe = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, ee = (e) =
315
315
  for (var a = l > 1 ? void 0 : l ? Te(t, s) : t, p = e.length - 1, u; p >= 0; p--)
316
316
  (u = e[p]) && (a = (l ? u(t, s, a) : u(a)) || a);
317
317
  return l && a && Fe(t, s, a), a;
318
- }, te = (e, t, s) => t.has(e) || ee("Cannot " + s), Ce = (e, t, s) => (te(e, t, "read from private field"), t.get(e)), Ie = (e, t, s) => t.has(e) ? ee("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), De = (e, t, s, l) => (te(e, t, "write to private field"), t.set(e, s), s), _;
319
- let c = class extends U {
318
+ }, te = (e, t, s) => t.has(e) || ee("Cannot " + s), Ce = (e, t, s) => (te(e, t, "read from private field"), t.get(e)), Ie = (e, t, s) => t.has(e) ? ee("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), _e = (e, t, s, l) => (te(e, t, "write to private field"), t.set(e, s), s), D;
319
+ let n = class extends U {
320
320
  constructor() {
321
- super(...arguments), this.localize = new M(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = A, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.data = [], this.hasMore = !1, this.loading = !1, this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], Ie(this, _, !1);
321
+ super(...arguments), this.localize = new M(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = A, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.data = [], this.hasMore = !1, this.loading = !1, this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], Ie(this, D, !1);
322
322
  }
323
323
  get empty() {
324
324
  return !this.loading && this.data.length === 0;
@@ -394,7 +394,7 @@ let c = class extends U {
394
394
  }
395
395
  async handleFetchFolders() {
396
396
  const { data: e, hasMore: t } = await this.fetchFolders();
397
- Ce(this, _) || e.length > 0 && (this.firstFetchCallback?.(e), De(this, _, !0)), this.data = e, this.hasMore = t, this.loading = !1;
397
+ Ce(this, D) || e.length > 0 && (this.firstFetchCallback?.(e), _e(this, D, !0)), this.data = e, this.hasMore = t, this.loading = !1;
398
398
  }
399
399
  async fetchFolders() {
400
400
  if (!this.api)
@@ -428,11 +428,11 @@ let c = class extends U {
428
428
  return m`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${e.docType} folder-id=${e.id} full-path=${y(e.fullPath ?? void 0)} name=${e.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${y(e.url ?? void 0)} ?has-children=${e.hasChildren} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`;
429
429
  }
430
430
  render() {
431
- return m`<cx-tree class="folder-select-tree" selection=${this.selection} force-on-change disabled-auto-expand disabled-sync-checkboxes @cx-selected-change=${this.handleSelectedChange}>${D(
431
+ return m`<cx-tree class="folder-select-tree" selection=${this.selection} force-on-change disabled-auto-expand disabled-sync-checkboxes @cx-selected-change=${this.handleSelectedChange}>${_(
432
432
  this.empty,
433
433
  () => m`<div class="folder-select-tree__empty-message" role="status" aria-live="polite"><cx-typography variant="body3">${this.localize.term("noResults")}</cx-typography></div>`
434
434
  )}
435
- ${D(
435
+ ${_(
436
436
  this.extraFolderData,
437
437
  () => m`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${y(this.extraFolderData?.docType ?? void 0)} folder-id=${y(this.extraFolderData?.id ?? void 0)} full-path=${y(this.extraFolderData?.fullPath ?? void 0)} icon=${this.extraFolderIcon} name=${this.extraFolderTitle || this.extraFolderData?.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${y(this.extraFolderData?.url ?? void 0)} ?has-children=${this.extraFolderData?.hasChildren} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`
438
438
  )}
@@ -441,99 +441,99 @@ let c = class extends U {
441
441
  (e) => e.id,
442
442
  (e) => this.renderFolder(e)
443
443
  )}
444
- ${D(
444
+ ${_(
445
445
  this.hasMore,
446
446
  () => m`<cx-button class="folder-select-tree__load-more" variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button>`
447
447
  )}</cx-tree>`;
448
448
  }
449
449
  };
450
- _ = /* @__PURE__ */ new WeakMap();
451
- c.dependencies = {
450
+ D = /* @__PURE__ */ new WeakMap();
451
+ n.dependencies = {
452
452
  "cx-button": K,
453
453
  "cx-folder-select-tree-item": o,
454
454
  "cx-tree": he
455
455
  };
456
456
  d([
457
457
  r({ attribute: "min-query-length", reflect: !0, type: Number })
458
- ], c.prototype, "minQueryLength", 2);
458
+ ], n.prototype, "minQueryLength", 2);
459
459
  d([
460
460
  r({ attribute: "selection", reflect: !0, type: String })
461
- ], c.prototype, "selection", 2);
461
+ ], n.prototype, "selection", 2);
462
462
  d([
463
463
  r({ attribute: "search-term", reflect: !0, type: String })
464
- ], c.prototype, "searchTerm", 2);
464
+ ], n.prototype, "searchTerm", 2);
465
465
  d([
466
466
  r({ attribute: "selected-value", reflect: !0, type: String })
467
- ], c.prototype, "selectedValue", 2);
467
+ ], n.prototype, "selectedValue", 2);
468
468
  d([
469
469
  r({ reflect: !0, type: String })
470
- ], c.prototype, "token", 2);
470
+ ], n.prototype, "token", 2);
471
471
  d([
472
472
  r({ attribute: "bearer-token", reflect: !0, type: String })
473
- ], c.prototype, "bearerToken", 2);
473
+ ], n.prototype, "bearerToken", 2);
474
474
  d([
475
475
  r({ attribute: "base-url", reflect: !0, type: String })
476
- ], c.prototype, "baseUrl", 2);
476
+ ], n.prototype, "baseUrl", 2);
477
477
  d([
478
478
  r({ attribute: "extra-folder-id", reflect: !0, type: String })
479
- ], c.prototype, "extraFolderId", 2);
479
+ ], n.prototype, "extraFolderId", 2);
480
480
  d([
481
481
  r({ attribute: "extra-folder-title", reflect: !0, type: String })
482
- ], c.prototype, "extraFolderTitle", 2);
482
+ ], n.prototype, "extraFolderTitle", 2);
483
483
  d([
484
484
  r({ attribute: "extra-folder-icon", reflect: !0, type: String })
485
- ], c.prototype, "extraFolderIcon", 2);
485
+ ], n.prototype, "extraFolderIcon", 2);
486
486
  d([
487
487
  r({ attribute: "see-thru", reflect: !0, type: Boolean })
488
- ], c.prototype, "seeThru", 2);
488
+ ], n.prototype, "seeThru", 2);
489
489
  d([
490
490
  x()
491
- ], c.prototype, "extraFolderData", 2);
491
+ ], n.prototype, "extraFolderData", 2);
492
492
  d([
493
493
  r({ type: Function })
494
- ], c.prototype, "api", 2);
494
+ ], n.prototype, "api", 2);
495
495
  d([
496
496
  r({
497
497
  attribute: "exclude-virtual-folders",
498
498
  reflect: !0,
499
499
  type: Boolean
500
500
  })
501
- ], c.prototype, "excludeVirtualFolders", 2);
501
+ ], n.prototype, "excludeVirtualFolders", 2);
502
502
  d([
503
503
  r({ attribute: "first-fetch-callback", reflect: !1, type: Function })
504
- ], c.prototype, "firstFetchCallback", 2);
504
+ ], n.prototype, "firstFetchCallback", 2);
505
505
  d([
506
506
  x()
507
- ], c.prototype, "data", 2);
507
+ ], n.prototype, "data", 2);
508
508
  d([
509
509
  x()
510
- ], c.prototype, "hasMore", 2);
510
+ ], n.prototype, "hasMore", 2);
511
511
  d([
512
512
  x()
513
- ], c.prototype, "loading", 2);
513
+ ], n.prototype, "loading", 2);
514
514
  d([
515
515
  x()
516
- ], c.prototype, "currentRootIDsSet", 2);
516
+ ], n.prototype, "currentRootIDsSet", 2);
517
517
  d([
518
518
  x()
519
- ], c.prototype, "removedIDs", 2);
519
+ ], n.prototype, "removedIDs", 2);
520
520
  d([
521
521
  f("extraFolderId")
522
- ], c.prototype, "handleExtraFolderIdChange", 1);
522
+ ], n.prototype, "handleExtraFolderIdChange", 1);
523
523
  d([
524
524
  f("baseUrl", { waitUntilFirstUpdate: !0 }),
525
525
  f("token", { waitUntilFirstUpdate: !0 }),
526
526
  f("searchTerm", { waitUntilFirstUpdate: !0 }),
527
527
  f("excludeVirtualFolders", { waitUntilFirstUpdate: !0 }),
528
528
  me(500)
529
- ], c.prototype, "handleFetchFolders", 1);
530
- c = d([
529
+ ], n.prototype, "handleFetchFolders", 1);
530
+ n = d([
531
531
  L("cx-folder-select-tree")
532
- ], c);
533
- const _e = ue`:host{width:100%;display:block}.folder-select{gap:var(--cx-spacing-x-small);flex-direction:column;display:flex}.folder-select-tree{flex:1;overflow:auto}.folder-select-tree__item__icon{color:var(--cx-color-primary)}.folder-select-tree__empty-message{font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-500);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);text-align:center;cursor:default;user-select:none}.folder-select-tree__load-more{margin-inline:var(--cx-spacing-small)}.folder-select-tree-item::part(label),.folder-select-tree-item__label,.folder-select-tree-item__title{overflow:hidden}`;
532
+ ], n);
533
+ const De = ue`:host{flex-direction:column;width:100%;height:100%;min-height:0;max-height:100%;display:flex}.folder-select{gap:var(--cx-spacing-x-small);flex-direction:column;flex:1;width:100%;min-height:0;display:flex}.folder-select__search{flex-shrink:0}.folder-select__tree{flex-direction:column;flex:1;min-height:0;display:flex}.folder-select-tree{flex:1;min-height:0;overflow:auto}.folder-select-tree__item__icon{color:var(--cx-color-primary)}.folder-select-tree__empty-message{font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-500);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);text-align:center;cursor:default;user-select:none}.folder-select-tree__load-more{margin-inline:var(--cx-spacing-small)}.folder-select-tree-item::part(label),.folder-select-tree-item__label,.folder-select-tree-item__title{overflow:hidden}`;
534
534
  var ke = Object.defineProperty, we = Object.getOwnPropertyDescriptor, re = (e) => {
535
535
  throw TypeError(e);
536
- }, n = (e, t, s, l) => {
536
+ }, c = (e, t, s, l) => {
537
537
  for (var a = l > 1 ? void 0 : l ? we(t, s) : t, p = e.length - 1, u; p >= 0; p--)
538
538
  (u = e[p]) && (a = (l ? u(t, s, a) : u(a)) || a);
539
539
  return l && a && ke(t, s, a), a;
@@ -650,7 +650,7 @@ let i = class extends U {
650
650
  return m`<div class="folder-select">${fe(this.variant, [
651
651
  [
652
652
  C.Input,
653
- () => m`<cx-input aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} .api=${Q(this, F)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
653
+ () => m`<cx-input class="folder-select__search" aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree class="folder-select__tree" base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} .api=${Q(this, F)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
654
654
  ],
655
655
  [
656
656
  C.Select,
@@ -660,111 +660,111 @@ let i = class extends U {
660
660
  }
661
661
  };
662
662
  F = /* @__PURE__ */ new WeakMap();
663
- i.styles = [Z, _e];
663
+ i.styles = [Z, De];
664
664
  i.dependencies = {
665
- "cx-folder-select-tree": c,
665
+ "cx-folder-select-tree": n,
666
666
  "cx-icon": N,
667
667
  "cx-input": oe,
668
668
  "cx-line-clamp": H,
669
- "cx-select": ne,
670
- "cx-tag": ce
669
+ "cx-select": ce,
670
+ "cx-tag": ne
671
671
  };
672
- n([
672
+ c([
673
673
  J("cx-select")
674
674
  ], i.prototype, "selectEl", 2);
675
- n([
675
+ c([
676
676
  r({ attribute: "min-query-length", reflect: !0, type: Number })
677
677
  ], i.prototype, "minQueryLength", 2);
678
- n([
678
+ c([
679
679
  r({ attribute: "selection", reflect: !0, type: String })
680
680
  ], i.prototype, "selection", 2);
681
- n([
681
+ c([
682
682
  r({ attribute: "variant", reflect: !0, type: String })
683
683
  ], i.prototype, "variant", 2);
684
- n([
684
+ c([
685
685
  r({ reflect: !0, type: String })
686
686
  ], i.prototype, "value", 2);
687
- n([
687
+ c([
688
688
  r({ reflect: !0, type: String })
689
689
  ], i.prototype, "name", 2);
690
- n([
690
+ c([
691
691
  r({ attribute: "selected-label", reflect: !0, type: String })
692
692
  ], i.prototype, "selectedLabel", 2);
693
- n([
693
+ c([
694
694
  r({ attribute: "base-url", reflect: !0, type: String })
695
695
  ], i.prototype, "baseUrl", 2);
696
- n([
696
+ c([
697
697
  r({ reflect: !0, type: Boolean })
698
698
  ], i.prototype, "open", 2);
699
- n([
699
+ c([
700
700
  r({ reflect: !1, type: String })
701
701
  ], i.prototype, "token", 2);
702
- n([
702
+ c([
703
703
  r({ attribute: "bearer-token", reflect: !0, type: String })
704
704
  ], i.prototype, "bearerToken", 2);
705
- n([
705
+ c([
706
706
  r({ attribute: "see-thru", reflect: !0, type: Boolean })
707
707
  ], i.prototype, "seeThru", 2);
708
- n([
708
+ c([
709
709
  r({ type: Function })
710
710
  ], i.prototype, "api", 2);
711
- n([
711
+ c([
712
712
  r({ reflect: !0, type: Boolean })
713
713
  ], i.prototype, "required", 2);
714
- n([
714
+ c([
715
715
  r({ reflect: !1 })
716
716
  ], i.prototype, "form", 2);
717
- n([
717
+ c([
718
718
  r({
719
719
  attribute: "exclude-virtual-folders",
720
720
  reflect: !0,
721
721
  type: Boolean
722
722
  })
723
723
  ], i.prototype, "excludeVirtualFolders", 2);
724
- n([
724
+ c([
725
725
  r({
726
726
  attribute: "extra-folder-id",
727
727
  reflect: !0,
728
728
  type: String
729
729
  })
730
730
  ], i.prototype, "extraFolderId", 2);
731
- n([
731
+ c([
732
732
  r({
733
733
  attribute: "extra-folder-title",
734
734
  reflect: !0,
735
735
  type: String
736
736
  })
737
737
  ], i.prototype, "extraFolderTitle", 2);
738
- n([
738
+ c([
739
739
  r({
740
740
  attribute: "extra-folder-icon",
741
741
  reflect: !0,
742
742
  type: String
743
743
  })
744
744
  ], i.prototype, "extraFolderIcon", 2);
745
- n([
745
+ c([
746
746
  r({ attribute: "first-fetch-callback", reflect: !1, type: Function })
747
747
  ], i.prototype, "firstFetchCallback", 2);
748
- n([
748
+ c([
749
749
  x()
750
750
  ], i.prototype, "searchTerm", 2);
751
- n([
751
+ c([
752
752
  f("api")
753
753
  ], i.prototype, "updateWrappedApi", 1);
754
- n([
754
+ c([
755
755
  f("searchTerm", { waitUntilFirstUpdate: !0 })
756
756
  ], i.prototype, "handleSearchTermChange", 1);
757
- n([
757
+ c([
758
758
  f("open")
759
759
  ], i.prototype, "handleOpenChange", 1);
760
- n([
760
+ c([
761
761
  f("variant")
762
762
  ], i.prototype, "handleVariantChange", 1);
763
- n([
763
+ c([
764
764
  f("selectedLabel", { waitUntilFirstUpdate: !0 }),
765
765
  f("value", { waitUntilFirstUpdate: !0 })
766
766
  ], i.prototype, "handleValueChange", 1);
767
- i = n([
767
+ i = c([
768
768
  L("cx-folder-select")
769
769
  ], i);
770
770
  export {
@@ -9,7 +9,7 @@ import B from "../components/radio.js";
9
9
  import K from "../components/radio-group.js";
10
10
  import U from "../components/select.js";
11
11
  import E from "../components/space.js";
12
- import { C as H, H as V } from "./table.CGTmaN_x.js";
12
+ import { C as H, H as V } from "./table.Da1P5WrI.js";
13
13
  import { C as L } from "./typography.DJC_UXgs.js";
14
14
  import { n as o, C as T } from "./lib-cortex-element.CVMmyPMC.js";
15
15
  import W from "../components/dynamic-select.js";
@@ -16966,6 +16966,11 @@ const Dl = E`<cx-table-row-actions></cx-table-row-actions>`, _e = class _e exten
16966
16966
  this.hoverMenuField = this.table.options.hoverMenuField || "hoverMenu", this.subscribe(
16967
16967
  "row-layout",
16968
16968
  this.layoutRow.bind(this)
16969
+ ), this.subscribe(
16970
+ "row-data-changed",
16971
+ (e, t, i) => {
16972
+ Object.hasOwn(i, this.hoverMenuField) && this.layoutRow(e);
16973
+ }
16969
16974
  ), this.subscribe(
16970
16975
  "row-mouseenter",
16971
16976
  this.handleRowMouseEnter.bind(this)
@@ -10,7 +10,7 @@ import { c as N } from "../chunks/custom-element.L4WJXn1j.js";
10
10
  import { L as O } from "../chunks/i18n.CgwQHLcP.js";
11
11
  import { w as k } from "../chunks/watch.BCJD77bD.js";
12
12
  import { s as it, c as st } from "../chunks/number.CjNxU7Xs.js";
13
- import { i as D, x as b, E as lt } from "../chunks/lit-element.jLBm65_O.js";
13
+ import { i as U, x as b, E as lt } from "../chunks/lit-element.jLBm65_O.js";
14
14
  import { r as z } from "../chunks/state.CSDxrqLd.js";
15
15
  import { n as G } from "../chunks/when.Dr1es41R.js";
16
16
  import L from "./details.js";
@@ -27,7 +27,7 @@ import { o as M } from "../chunks/style-map.llVFPd__.js";
27
27
  import at from "./tooltip.js";
28
28
  import pt from "./button-group.js";
29
29
  import dt from "./checkbox.js";
30
- const ut = D`.asset-link-format__details{--header-padding:var(--cx-spacing-small) var(--cx-spacing-medium)}.asset-link-format__details::part(icon){width:var(--cx-font-size-3x-large);height:var(--cx-font-size-3x-large);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-large);color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-large);justify-content:center;align-items:center;display:flex}.asset-link-format__details::part(input-label){color:var(--cx-color-neutral-400);margin-inline-start:var(--cx-spacing-small)}.asset-link-format__header{padding:var(--cx-spacing-medium)}.asset-link-format__section-header{padding:0 var(--cx-spacing-medium);border-top:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo{--color:var(--cx-color-primary);--background-color:transparent}`;
30
+ const ut = U`.asset-link-format__details{--header-padding:var(--cx-spacing-small) var(--cx-spacing-medium)}.asset-link-format__details::part(icon){width:var(--cx-font-size-3x-large);height:var(--cx-font-size-3x-large);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-large);color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-large);justify-content:center;align-items:center;display:flex}.asset-link-format__details::part(input-label){color:var(--cx-color-neutral-400);margin-inline-start:var(--cx-spacing-small)}.asset-link-format__header{padding:var(--cx-spacing-medium)}.asset-link-format__section-header{padding:0 var(--cx-spacing-medium);border-top:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo{--color:var(--cx-color-primary);--background-color:transparent}`;
31
31
  function J({
32
32
  asset: t,
33
33
  baseUrl: e,
@@ -166,7 +166,7 @@ function J({
166
166
  );
167
167
  }), w.length > 0 && (r += `?${w.join("&")}`), r.endsWith("/") && (r = r.slice(0, -1)), r;
168
168
  }
169
- const gt = D`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.crop__unit-select{width:120px}.crop__input-group{flex:1;display:flex}`;
169
+ const gt = U`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.crop__unit-select{width:120px}.crop__input-group{flex:1;display:flex}`;
170
170
  var mt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, f = (t, e, i, s) => {
171
171
  for (var a = s > 1 ? void 0 : s ? xt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
172
172
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -519,13 +519,13 @@ f([
519
519
  u = f([
520
520
  N("cx-asset-link-format-crop")
521
521
  ], u);
522
- const ft = D`.extension{padding:var(--cx-spacing-small) var(--cx-spacing-medium);border:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-0);& cx-select{flex:1;width:100%}}`;
522
+ const ft = U`.extension{padding:var(--cx-spacing-small) var(--cx-spacing-medium);border:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-0);& cx-select{flex:1;width:100%}}`;
523
523
  var yt = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, et = (t, e, i, s) => {
524
524
  for (var a = s > 1 ? void 0 : s ? vt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
525
525
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
526
526
  return s && a && yt(e, i, a), a;
527
527
  };
528
- let U = class extends F {
528
+ let D = class extends F {
529
529
  constructor() {
530
530
  super(...arguments), this.localize = new O(this), this.value = "", this.items = [];
531
531
  }
@@ -543,8 +543,8 @@ let U = class extends F {
543
543
  )}</cx-select></cx-space>`;
544
544
  }
545
545
  };
546
- U.styles = [E, ft];
547
- U.dependencies = {
546
+ D.styles = [E, ft];
547
+ D.dependencies = {
548
548
  "cx-option": X,
549
549
  "cx-select": Y,
550
550
  "cx-space": H,
@@ -552,14 +552,14 @@ U.dependencies = {
552
552
  };
553
553
  et([
554
554
  l({ reflect: !0, type: String })
555
- ], U.prototype, "value", 2);
555
+ ], D.prototype, "value", 2);
556
556
  et([
557
557
  l({ reflect: !1, type: Array })
558
- ], U.prototype, "items", 2);
559
- U = et([
558
+ ], D.prototype, "items", 2);
559
+ D = et([
560
560
  N("cx-asset-link-format-extension")
561
- ], U);
562
- const wt = D`cx-details::part(base){border-bottom-width:0}`;
561
+ ], D);
562
+ const wt = U`cx-details::part(base){border-bottom-width:0}`;
563
563
  var zt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, _ = (t, e, i, s) => {
564
564
  for (var a = s > 1 ? void 0 : s ? St(e, i) : e, h = t.length - 1, r; h >= 0; h--)
565
565
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -657,7 +657,7 @@ _([
657
657
  C = _([
658
658
  N("cx-asset-link-format-proxy")
659
659
  ], C);
660
- const bt = D`cx-details::part(base){border-bottom-width:0}`;
660
+ const bt = U`cx-details::part(base){border-bottom-width:0}`;
661
661
  var kt = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, I = (t, e, i, s) => {
662
662
  for (var a = s > 1 ? void 0 : s ? $t(e, i) : e, h = t.length - 1, r; h >= 0; h--)
663
663
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -745,7 +745,7 @@ I([
745
745
  A = I([
746
746
  N("cx-asset-link-format-quality")
747
747
  ], A);
748
- const Ct = D`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.resize__unit-select{width:120px}.resize__input-group{flex:1;display:flex}`;
748
+ const Ct = U`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.resize__unit-select{width:120px}.resize__input-group{flex:1;display:flex}`;
749
749
  var At = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, S = (t, e, i, s) => {
750
750
  for (var a = s > 1 ? void 0 : s ? Rt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
751
751
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -967,7 +967,7 @@ S([
967
967
  v = S([
968
968
  N("cx-asset-link-format-resize")
969
969
  ], v);
970
- const Mt = D`cx-details::part(base){border-bottom-width:0}`;
970
+ const Mt = U`cx-details::part(base){border-bottom-width:0}`;
971
971
  var _t = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, V = (t, e, i, s) => {
972
972
  for (var a = s > 1 ? void 0 : s ? Pt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
973
973
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -1049,7 +1049,7 @@ V([
1049
1049
  R = V([
1050
1050
  N("cx-asset-link-format-rotation")
1051
1051
  ], R);
1052
- const Ht = D`cx-details::part(base){border-bottom-width:0}`;
1052
+ const Ht = U`cx-details::part(base){border-bottom-width:0}`;
1053
1053
  var Wt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, Z = (t, e, i, s) => {
1054
1054
  for (var a = s > 1 ? void 0 : s ? Ft(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1055
1055
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -1329,6 +1329,7 @@ let p = class extends F {
1329
1329
  assetId: this.asset.id,
1330
1330
  extension: this.asset.extension,
1331
1331
  format: e?.proxyName ?? "",
1332
+ siteUrl: this.baseUrl,
1332
1333
  token: this.token,
1333
1334
  transformations: this.transformationString
1334
1335
  }).then((s) => {
@@ -1379,6 +1380,7 @@ let p = class extends F {
1379
1380
  assetId: this.asset.id,
1380
1381
  extension: this.selectedFormat.extension,
1381
1382
  format: t?.proxyName ?? "",
1383
+ siteUrl: this.baseUrl,
1382
1384
  token: this.token,
1383
1385
  transformations: this.transformationString
1384
1386
  });
@@ -1631,7 +1633,10 @@ let p = class extends F {
1631
1633
  width: s,
1632
1634
  x: a,
1633
1635
  y: h
1634
- } = e, r = this.cropSize.percentageWidth !== s, y = this.cropSize.percentageHeight !== i;
1636
+ } = e;
1637
+ if (s === 0 || i === 0)
1638
+ return;
1639
+ const r = this.cropSize.percentageWidth !== s, y = this.cropSize.percentageHeight !== i;
1635
1640
  let w = this.cropSize.height, x = this.cropSize.width;
1636
1641
  r && (x = Math.round(s * this.selectedFormat.width / 100)), y && (w = Math.round(
1637
1642
  i * this.selectedFormat.height / 100
@@ -1951,7 +1956,7 @@ let p = class extends F {
1951
1956
  p.styles = [E, ut];
1952
1957
  p.dependencies = {
1953
1958
  "cx-asset-link-format-crop": u,
1954
- "cx-asset-link-format-extension": U,
1959
+ "cx-asset-link-format-extension": D,
1955
1960
  "cx-asset-link-format-metadata": P,
1956
1961
  "cx-asset-link-format-proxy": C,
1957
1962
  "cx-asset-link-format-quality": A,
@@ -70,7 +70,7 @@ import { default as ka } from "./stepper.js";
70
70
  import { default as Ea } from "./switch.js";
71
71
  import { default as La } from "./tab.js";
72
72
  import { C as ja } from "../chunks/tab-group.B6olTWpV.js";
73
- import { C as za } from "../chunks/table.CGTmaN_x.js";
73
+ import { C as za } from "../chunks/table.Da1P5WrI.js";
74
74
  import { default as qa } from "./tab-panel.js";
75
75
  import { default as Ka } from "./tag.js";
76
76
  import { default as Wa } from "./textarea.js";
@@ -1,10 +1,10 @@
1
1
  import "./space.js";
2
- import "../chunks/table.CGTmaN_x.js";
2
+ import "../chunks/table.Da1P5WrI.js";
3
3
  import "../chunks/typography.DJC_UXgs.js";
4
4
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
5
5
  import "../chunks/color-swatch.hsIcIXE-.js";
6
6
  import "../chunks/component.styles.CRO4Odto.js";
7
- import { C as w } from "../chunks/color-swatch-group.BaMEIlzq.js";
7
+ import { C as w } from "../chunks/color-swatch-group.CpuPC0u3.js";
8
8
  import "../chunks/content-builder.B4Tqoc6M.js";
9
9
  import "../chunks/custom-element.L4WJXn1j.js";
10
10
  import "../chunks/debounce.DaHuiSGU.js";
@@ -5,7 +5,7 @@ import "./select.js";
5
5
  import "./tag.js";
6
6
  import "../chunks/tree.D5Fv7i1r.js";
7
7
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
8
- import { C as h } from "../chunks/folder-select.BFme962J.js";
8
+ import { C as h } from "../chunks/folder-select.D6NkbExX.js";
9
9
  import "../chunks/component.styles.CRO4Odto.js";
10
10
  import "../chunks/custom-element.L4WJXn1j.js";
11
11
  import "../chunks/i18n.CgwQHLcP.js";
@@ -9,7 +9,7 @@ import "./radio.js";
9
9
  import "./radio-group.js";
10
10
  import "./select.js";
11
11
  import "./space.js";
12
- import "../chunks/table.CGTmaN_x.js";
12
+ import "../chunks/table.Da1P5WrI.js";
13
13
  import "../chunks/typography.DJC_UXgs.js";
14
14
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
15
15
  import "./dynamic-select.js";
@@ -18,7 +18,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
18
18
  import "../chunks/debounce.DaHuiSGU.js";
19
19
  import "../chunks/i18n.CgwQHLcP.js";
20
20
  import "../chunks/watch.BCJD77bD.js";
21
- import { c as E, C as F } from "../chunks/list-editor.DsI3-bUG.js";
21
+ import { c as E, C as F } from "../chunks/list-editor.T0Lrm0Yo.js";
22
22
  import "../chunks/lit-element.jLBm65_O.js";
23
23
  import "../chunks/state.CSDxrqLd.js";
24
24
  import "../chunks/query.BBf1UFkC.js";
@@ -5,8 +5,8 @@ import { C } from "../chunks/confirm-popover.Bk0_yxOs.js";
5
5
  import { default as u } from "./corner-position-input-group.js";
6
6
  import { C as m } from "../chunks/cropper.DTokTzP9.js";
7
7
  import { default as i } from "./dynamic-select.js";
8
- import { C as c } from "../chunks/folder-select.BFme962J.js";
9
- import { C as P } from "../chunks/list-editor.DsI3-bUG.js";
8
+ import { C as c } from "../chunks/folder-select.D6NkbExX.js";
9
+ import { C as P } from "../chunks/list-editor.T0Lrm0Yo.js";
10
10
  import { default as I } from "./masonry.js";
11
11
  import { default as y } from "./padding-input-group.js";
12
12
  import { default as w } from "./position-picker.js";
@@ -1,5 +1,5 @@
1
1
  import { default as a } from "./asset-link-format.js";
2
- import { C as t } from "../chunks/color-swatch-group.BaMEIlzq.js";
2
+ import { C as t } from "../chunks/color-swatch-group.CpuPC0u3.js";
3
3
  import { C } from "../chunks/file-on-demand.CTJQ6P_F.js";
4
4
  export {
5
5
  a as CxAssetLinkFormat,
@@ -9,7 +9,7 @@ import "./spinner.js";
9
9
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
10
10
  import "../chunks/component.styles.CRO4Odto.js";
11
11
  import "../chunks/overlayscrollbars.BMav4RQ4.js";
12
- 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.CGTmaN_x.js";
12
+ 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.Da1P5WrI.js";
13
13
  import "../chunks/pagination.DC9JIt4s.js";
14
14
  import "../chunks/custom-element.L4WJXn1j.js";
15
15
  import "../chunks/i18n.CgwQHLcP.js";
@@ -71,7 +71,7 @@ import { default as uqt } from "./stepper.js";
71
71
  import Kb from "./switch.js";
72
72
  import G2 from "./tab.js";
73
73
  import { C as K2, T as e9, a as t9, b as n9, g as TO } from "../chunks/tab-group.B6olTWpV.js";
74
- import { C as r9 } from "../chunks/table.CGTmaN_x.js";
74
+ import { C as r9 } from "../chunks/table.Da1P5WrI.js";
75
75
  import i9 from "./tab-panel.js";
76
76
  import { default as hqt } from "./tag.js";
77
77
  import uR from "./textarea.js";
@@ -112,7 +112,7 @@ import { H as wR } from "../chunks/slot.j5oheLJC.js";
112
112
  import { a as lVt, g as dVt } from "../chunks/slot.j5oheLJC.js";
113
113
  import { c as LO, G as mh, d as Yd, T as xR, h as fn, i as kR, j as nY, t as RO, u as rY, f as y1, k as iY, F as Cf, M as Vv } from "../chunks/string.B_mXTq0K.js";
114
114
  import { b as pVt, a as hVt, e as gVt, g as mVt, p as fVt, r as vVt, s as yVt, n as bVt, l as wVt, m as xVt, o as kVt } from "../chunks/string.B_mXTq0K.js";
115
- import { a as l9, u as tp, I as _R, C as oY } from "../chunks/list-editor.DsI3-bUG.js";
115
+ import { a as l9, u as tp, I as _R, C as oY } from "../chunks/list-editor.T0Lrm0Yo.js";
116
116
  import aY from "./bicolor-picker.js";
117
117
  import CR from "./border-input-group.js";
118
118
  import { C as CVt } from "../chunks/color-swatch.hsIcIXE-.js";
@@ -126,7 +126,7 @@ import { c as Hn } from "../chunks/repeat.DbF2p5ae.js";
126
126
  import p9 from "./dynamic-select.js";
127
127
  import { D as AR, M as gY, U as mY, F as fY } from "../chunks/time.D_uFZqqe.js";
128
128
  import { c as AVt, a as OVt, f as IVt, g as DVt } from "../chunks/time.D_uFZqqe.js";
129
- import { F as Jd, C as h9, a as B_, M as vY } from "../chunks/folder-select.BFme962J.js";
129
+ import { F as Jd, C as h9, a as B_, M as vY } from "../chunks/folder-select.D6NkbExX.js";
130
130
  import { a as Ro, E as Fn, b as Xm, O as jd, T as Ku, G as zO } from "../chunks/index.Cpamj0jB.js";
131
131
  import { C as PVt } from "../chunks/index.Cpamj0jB.js";
132
132
  import { S as FO, r as yY, c as bY, i as $O, a as jO, b as wY, d as HO, e as z_ } from "../chunks/index.DcjJFMlq.js";
@@ -165,8 +165,8 @@ import { c as hg } from "../chunks/math.DqTA6ya4.js";
165
165
  import { b as YO, e as $Y } from "../chunks/number.CjNxU7Xs.js";
166
166
  import { a as rWt, c as iWt, f as oWt, r as aWt, s as sWt } from "../chunks/number.CjNxU7Xs.js";
167
167
  import { t as LR } from "../chunks/event-options.CYHYGOd8.js";
168
- import { a as Uw } from "../chunks/color-swatch-group.BaMEIlzq.js";
169
- import { C as lWt } from "../chunks/color-swatch-group.BaMEIlzq.js";
168
+ import { a as Uw } from "../chunks/color-swatch-group.CpuPC0u3.js";
169
+ import { C as lWt } from "../chunks/color-swatch-group.CpuPC0u3.js";
170
170
  import { t as jY } from "../chunks/converters.DkDtLstb.js";
171
171
  import { i as HY } from "../chunks/user-agent.D9aPuOyL.js";
172
172
  import { a as RR, U as f9, t as UY } from "../chunks/url.Cj9cIQXJ.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.89.0",
4
+ "version": "2.91.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -10,6 +10,7 @@
10
10
  "build-worker": "vite build --config ./vite.worker.config.js",
11
11
  "build": "vite build --config vite.config.ts && bun run build-worker && node ./scripts/remove-index-html-file.js && node ./scripts/copy-entry-file.js",
12
12
  "start": "vite",
13
+ "dev-build": "vite build --config vite.dev-build.config.ts",
13
14
  "open": "npx playwright test --project=chromium --ui",
14
15
  "playwright": "npx playwright test --project=chromium",
15
16
  "build-library": "bun run build && vite build --config ./vite.library.config.ts",
@@ -27,8 +28,12 @@
27
28
  "types": "./library/types.d.ts"
28
29
  },
29
30
  "./components/*": {
30
- "import": "./library/components/*",
31
- "types": "./library/components/*.d.ts"
31
+ "types": "./library/components/*.d.ts",
32
+ "import": "./library/components/*.js"
33
+ },
34
+ "./components/*.js": {
35
+ "types": "./library/components/*.d.ts",
36
+ "import": "./library/components/*.js"
32
37
  },
33
38
  "./utils": {
34
39
  "types": "./library/utils.d.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.89.0",
4
+ "version": "2.91.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -10,6 +10,7 @@
10
10
  "build-worker": "vite build --config ./vite.worker.config.js",
11
11
  "build": "vite build --config vite.config.ts && bun run build-worker && node ./scripts/remove-index-html-file.js && node ./scripts/copy-entry-file.js",
12
12
  "start": "vite",
13
+ "dev-build": "vite build --config vite.dev-build.config.ts",
13
14
  "open": "npx playwright test --project=chromium --ui",
14
15
  "playwright": "npx playwright test --project=chromium",
15
16
  "build-library": "bun run build && vite build --config ./vite.library.config.ts",
@@ -27,8 +28,12 @@
27
28
  "types": "./library/types.d.ts"
28
29
  },
29
30
  "./components/*": {
30
- "import": "./library/components/*",
31
- "types": "./library/components/*.d.ts"
31
+ "types": "./library/components/*.d.ts",
32
+ "import": "./library/components/*.js"
33
+ },
34
+ "./components/*.js": {
35
+ "types": "./library/components/*.d.ts",
36
+ "import": "./library/components/*.js"
32
37
  },
33
38
  "./utils": {
34
39
  "types": "./library/utils.d.ts",