@orangelogic/design-system 2.163.0 → 2.164.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.
Files changed (45) hide show
  1. package/library/chunks/{asset-link-format.BdB6fQA_.js → asset-link-format.0q_MQOYh.js} +689 -633
  2. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  3. package/library/chunks/{color-swatch-group.w5DMzNco.js → color-swatch-group.ChP9amU9.js} +375 -296
  4. package/library/chunks/{document-viewer.gyH0NGM5.js → document-viewer.Cng07M-1.js} +1 -1
  5. package/library/chunks/{folder-select.Dh4SX0eU.js → folder-select.Dw1ZKZAq.js} +156 -136
  6. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  7. package/library/chunks/{toast.C5Ir5yKA.js → toast.CXEAfCvN.js} +1 -1
  8. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  9. package/library/chunks/{tree.Dvnw_4vz.js → tree.vn5sHbdt.js} +120 -114
  10. package/library/components/asset-link-format.js +5 -4
  11. package/library/components/atoms.js +2 -2
  12. package/library/components/color-swatch-group.js +3 -3
  13. package/library/components/cropper.js +1 -1
  14. package/library/components/document-viewer.js +1 -1
  15. package/library/components/file-on-demand.js +1 -1
  16. package/library/components/folder-select.js +2 -2
  17. package/library/components/masonry.js +74 -71
  18. package/library/components/molecules.js +1 -1
  19. package/library/components/organisms.js +2 -2
  20. package/library/components/position-picker.js +25 -25
  21. package/library/components/tree-item.js +1 -1
  22. package/library/components/tree.js +1 -1
  23. package/library/components/types.js +10511 -10509
  24. package/library/package.json +1 -1
  25. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  26. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  27. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  28. package/library/packages/events/src/events.d.ts +1 -0
  29. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  30. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  31. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  32. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  33. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  34. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  35. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  36. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  37. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  38. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  39. package/library/packages/types/src/tree-item.d.ts +12 -0
  40. package/library/react-web-component.d.ts +15 -3
  41. package/library/utils.js +63 -64
  42. package/package.json +1 -1
  43. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  44. package/library/chunks/content-builder.BX4pHujE.js +0 -60
  45. package/library/chunks/transformation.D1alV_s4.js +0 -189
@@ -21,50 +21,50 @@ import { i as J } from "./browser.BHOCIF_A.js";
21
21
  import { S as Q } from "./sortable.esm.oSzf6C5Q.js";
22
22
  import { v as ee } from "./v4.CKZ6klMF.js";
23
23
  function te(e, t, i) {
24
- let n;
25
- return function(...s) {
26
- const a = this, d = function() {
27
- n = null, e.apply(a, s);
24
+ let a;
25
+ return function(...r) {
26
+ const n = this, d = function() {
27
+ a = null, e.apply(n, r);
28
28
  };
29
- n && clearTimeout(n), n = window.setTimeout(d, t);
29
+ a && clearTimeout(a), a = window.setTimeout(d, t);
30
30
  };
31
31
  }
32
- const ie = R`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true])) .tree-item--selected,:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`, w = "tree-sortable", C = 0.2, P = (e) => e == null;
33
- function ne() {
32
+ const ie = R`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral-900);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([variant=text]){--selected-background-color:transparent;--selected-color:inherit;--hover-background-color:transparent;--active-background-color:transparent;--hover-color:var(--cx-color-primary)}:host([variant=text]:not([aria-disabled=true])) .tree-item__item:hover{color:var(--hover-color)}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`, w = "tree-sortable", C = 0.2, P = (e) => e == null;
33
+ function ae() {
34
34
  function e() {
35
35
  }
36
36
  let t = null;
37
37
  return e.prototype = {
38
38
  dragOver({
39
39
  cancel: i,
40
- target: n
40
+ target: a
41
41
  }) {
42
- if (t && (t.el.removeAttribute("data-dragging"), t = null), !["CX-TREE-ITEM", "CX-TREE"].includes(n.tagName) || n.hasAttribute("no-drag")) {
42
+ if (t && (t.el.removeAttribute("data-dragging"), t = null), !["CX-TREE-ITEM", "CX-TREE"].includes(a.tagName) || a.hasAttribute("no-drag")) {
43
43
  i();
44
44
  return;
45
45
  }
46
46
  },
47
47
  dragOverValid({
48
48
  activeSortable: i,
49
- cancel: n,
50
- changed: s,
51
- completed: a,
49
+ cancel: a,
50
+ changed: r,
51
+ completed: n,
52
52
  dragEl: d,
53
53
  originalEvent: u,
54
54
  putSortable: x,
55
55
  target: p
56
56
  }) {
57
57
  if (t = null, !i || !i.options[w] || !i.options.getDropZone || P(i.options.insertBeforeZonePercentage) || P(i.options.insertAfterZonePercentage) || !["CX-TREE-ITEM", "CX-TREE"].includes(p.tagName) || p.hasAttribute("no-drag")) {
58
- n();
58
+ a();
59
59
  return;
60
60
  }
61
61
  const k = i.options.getDropZone(p);
62
62
  if (!k) {
63
- n();
63
+ a();
64
64
  return;
65
65
  }
66
- const A = k.getBoundingClientRect(), B = (u.clientY - A.top) / A.height, v = x || this.sortable;
67
- v.captureAnimationState(), v !== i && i.captureAnimationState();
66
+ const A = k.getBoundingClientRect(), B = (u.clientY - A.top) / A.height, S = x || this.sortable;
67
+ S.captureAnimationState(), S !== i && i.captureAnimationState();
68
68
  const q = p.parentNode;
69
69
  if (d && q)
70
70
  if (B < i.options.insertBeforeZonePercentage)
@@ -81,7 +81,7 @@ function ne() {
81
81
  }, p.setAttribute("data-dragging", "after");
82
82
  else {
83
83
  if (p.hasAttribute("no-drag-inside")) {
84
- s(), a(!0), n();
84
+ r(), n(!0), a();
85
85
  return;
86
86
  }
87
87
  t = {
@@ -90,16 +90,16 @@ function ne() {
90
90
  position: 0
91
91
  }, p.setAttribute("data-dragging", "inside");
92
92
  }
93
- if (v.animateAll(), v !== i && i.animateAll(), t)
94
- s(), a(!0), n();
93
+ if (S.animateAll(), S !== i && i.animateAll(), t)
94
+ r(), n(!0), a();
95
95
  else
96
96
  return !0;
97
97
  },
98
98
  dragStart({
99
99
  cancel: i,
100
- dragEl: n
100
+ dragEl: a
101
101
  }) {
102
- if (n && !o.isTreeItem(n)) {
102
+ if (a && !o.isTreeItem(a)) {
103
103
  i();
104
104
  return;
105
105
  }
@@ -114,15 +114,15 @@ function ne() {
114
114
  pluginName: w
115
115
  });
116
116
  }
117
- class S extends Q {
117
+ class v extends Q {
118
118
  constructor(t, i) {
119
119
  super(t, i);
120
120
  }
121
121
  static create(t, i = {}) {
122
- return new S(t, i);
122
+ return new v(t, i);
123
123
  }
124
124
  }
125
- S.mount(new ne());
125
+ v.mount(new ae());
126
126
  const M = (e) => ({
127
127
  ...e,
128
128
  animation: 100,
@@ -143,10 +143,10 @@ const M = (e) => ({
143
143
  [w]: !0,
144
144
  swapThreshold: C
145
145
  });
146
- var ae = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, r = (e, t, i, n) => {
147
- for (var s = n > 1 ? void 0 : n ? oe(t, i) : t, a = e.length - 1, d; a >= 0; a--)
148
- (d = e[a]) && (s = (n ? d(t, i, s) : d(s)) || s);
149
- return n && s && ae(t, i, s), s;
146
+ var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, s = (e, t, i, a) => {
147
+ for (var r = a > 1 ? void 0 : a ? oe(t, i) : t, n = e.length - 1, d; n >= 0; n--)
148
+ (d = e[n]) && (r = (a ? d(t, i, r) : d(r)) || r);
149
+ return a && r && ne(t, i, r), r;
150
150
  };
151
151
  let o = class extends F {
152
152
  constructor() {
@@ -271,7 +271,7 @@ let o = class extends F {
271
271
  this.removeEventListener("dragstart", this.onDragStart), this.sortableInstance && (this.sortableInstance.destroy(), this.sortableInstance = null);
272
272
  }
273
273
  initSortable() {
274
- this.addEventListener("dragstart", this.onDragStart), this.focusable || this.setAttribute("tabindex", "-1"), this.sortableInstance = S.create(this, {
274
+ this.addEventListener("dragstart", this.onDragStart), this.focusable || this.setAttribute("tabindex", "-1"), this.sortableInstance = v.create(this, {
275
275
  ...M({
276
276
  group: this.sortableGroup,
277
277
  onAdd: this.handleSortableUpdate,
@@ -348,133 +348,136 @@ o.dependencies = {
348
348
  "cx-line-clamp": W,
349
349
  "cx-spinner": Y
350
350
  };
351
- r([
351
+ s([
352
352
  f("slot:not([name])")
353
353
  ], o.prototype, "defaultSlot", 2);
354
- r([
354
+ s([
355
355
  f("slot[name=children]")
356
356
  ], o.prototype, "childrenSlot", 2);
357
- r([
357
+ s([
358
358
  f(".tree-item__item")
359
359
  ], o.prototype, "itemElement", 2);
360
- r([
360
+ s([
361
361
  f(".tree-item__children")
362
362
  ], o.prototype, "childrenContainer", 2);
363
- r([
363
+ s([
364
364
  f(".tree-item__expand-button slot")
365
365
  ], o.prototype, "expandButtonSlot", 2);
366
- r([
366
+ s([
367
367
  l({ reflect: !0, type: Boolean })
368
368
  ], o.prototype, "expanded", 2);
369
- r([
369
+ s([
370
370
  l({ reflect: !0, type: Boolean })
371
371
  ], o.prototype, "selected", 2);
372
- r([
372
+ s([
373
373
  l({ reflect: !0, type: Boolean })
374
374
  ], o.prototype, "disabled", 2);
375
- r([
375
+ s([
376
376
  l({ reflect: !0, type: Boolean })
377
377
  ], o.prototype, "readonly", 2);
378
- r([
378
+ s([
379
379
  l({ reflect: !0, type: Boolean })
380
380
  ], o.prototype, "lazy", 2);
381
- r([
381
+ s([
382
382
  l()
383
383
  ], o.prototype, "href", 2);
384
- r([
384
+ s([
385
385
  l()
386
386
  ], o.prototype, "target", 2);
387
- r([
387
+ s([
388
388
  l()
389
389
  ], o.prototype, "rel", 2);
390
- r([
390
+ s([
391
391
  l()
392
392
  ], o.prototype, "download", 2);
393
- r([
393
+ s([
394
394
  l({ attribute: "itemid", reflect: !0, type: String })
395
395
  ], o.prototype, "itemId", 2);
396
- r([
396
+ s([
397
397
  l({ reflect: !0, type: Boolean })
398
398
  ], o.prototype, "sortable", 2);
399
- r([
399
+ s([
400
400
  l({ attribute: "no-drag", reflect: !0, type: Boolean })
401
401
  ], o.prototype, "noDrag", 2);
402
- r([
402
+ s([
403
403
  l({ attribute: "no-select", reflect: !0, type: Boolean })
404
404
  ], o.prototype, "noSelect", 2);
405
- r([
405
+ s([
406
406
  l({ attribute: "no-drag-inside", reflect: !0, type: Boolean })
407
407
  ], o.prototype, "noDragInside", 2);
408
- r([
408
+ s([
409
409
  l({ attribute: "sortable-group", type: String })
410
410
  ], o.prototype, "sortableGroup", 2);
411
- r([
411
+ s([
412
412
  l({
413
413
  attribute: "expand-button-placement",
414
414
  reflect: !0,
415
415
  type: String
416
416
  })
417
417
  ], o.prototype, "expandButtonPlacement", 2);
418
- r([
418
+ s([
419
419
  l({ attribute: "no-forward-expand-button-placement", type: Boolean })
420
420
  ], o.prototype, "noForwardExpandButtonPlacement", 2);
421
- r([
421
+ s([
422
+ l({ reflect: !0, type: String })
423
+ ], o.prototype, "variant", 2);
424
+ s([
422
425
  l({
423
426
  attribute: "disabled-sync-checkboxes",
424
427
  reflect: !0,
425
428
  type: Boolean
426
429
  })
427
430
  ], o.prototype, "disabledSyncCheckboxes", 2);
428
- r([
431
+ s([
429
432
  l({
430
433
  attribute: "partial-sync-checkboxes",
431
434
  reflect: !0,
432
435
  type: Boolean
433
436
  })
434
437
  ], o.prototype, "partialSyncCheckboxes", 2);
435
- r([
438
+ s([
436
439
  l({ attribute: "previously-selected", reflect: !0, type: Boolean })
437
440
  ], o.prototype, "previouslySelected", 2);
438
- r([
441
+ s([
439
442
  l({ reflect: !0, type: Boolean })
440
443
  ], o.prototype, "focusable", 2);
441
- r([
444
+ s([
442
445
  l({ attribute: "max-lines", type: Number })
443
446
  ], o.prototype, "maxLines", 2);
444
- r([
447
+ s([
445
448
  g()
446
449
  ], o.prototype, "indeterminate", 2);
447
- r([
450
+ s([
448
451
  g()
449
452
  ], o.prototype, "isLeaf", 2);
450
- r([
453
+ s([
451
454
  g()
452
455
  ], o.prototype, "loading", 2);
453
- r([
456
+ s([
454
457
  g()
455
458
  ], o.prototype, "selectable", 2);
456
- r([
459
+ s([
457
460
  g()
458
461
  ], o.prototype, "sortableInstance", 2);
459
- r([
462
+ s([
460
463
  b("loading", { waitUntilFirstUpdate: !0 })
461
464
  ], o.prototype, "handleLoadingChange", 1);
462
- r([
465
+ s([
463
466
  b("disabled")
464
467
  ], o.prototype, "handleDisabledChange", 1);
465
- r([
468
+ s([
466
469
  b("selected")
467
470
  ], o.prototype, "handleSelectedChange", 1);
468
- r([
471
+ s([
469
472
  b("expanded", { waitUntilFirstUpdate: !0 })
470
473
  ], o.prototype, "handleExpandedChange", 1);
471
- r([
474
+ s([
472
475
  b("expanded", { waitUntilFirstUpdate: !0 })
473
476
  ], o.prototype, "handleExpandAnimation", 1);
474
- r([
477
+ s([
475
478
  b("lazy", { waitUntilFirstUpdate: !0 })
476
479
  ], o.prototype, "handleLazyChange", 1);
477
- o = r([
480
+ o = s([
478
481
  U("cx-tree-item")
479
482
  ], o);
480
483
  G("tree-item.expand", {
@@ -491,20 +494,20 @@ G("tree-item.collapse", {
491
494
  ],
492
495
  options: { duration: 200, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)" }
493
496
  });
494
- const se = R`:host{--indent-guide-color:var(--cx-color-neutral-200);--indent-guide-offset:0;--indent-guide-style:solid;--indent-guide-width:0;--indent-size:var(--cx-spacing-large);font-size:0;display:block}:host::part(children){gap:var(--children-gap,0);flex-direction:column;display:flex}:host([dragging]) ::slotted(cx-tree-item){--hover-background-color:transparent!important;--active-background-color:transparent!important;--selected-background-color:transparent!important}`;
495
- var re = Object.defineProperty, le = Object.getOwnPropertyDescriptor, h = (e, t, i, n) => {
496
- for (var s = n > 1 ? void 0 : n ? le(t, i) : t, a = e.length - 1, d; a >= 0; a--)
497
- (d = e[a]) && (s = (n ? d(t, i, s) : d(s)) || s);
498
- return n && s && re(t, i, s), s;
497
+ const re = R`:host{--indent-guide-color:var(--cx-color-neutral-200);--indent-guide-offset:0;--indent-guide-style:solid;--indent-guide-width:0;--indent-size:var(--cx-spacing-large);font-size:0;display:block}:host::part(children){gap:var(--children-gap,0);flex-direction:column;display:flex}:host([dragging]) ::slotted(cx-tree-item){--hover-background-color:transparent!important;--active-background-color:transparent!important;--selected-background-color:transparent!important}`;
498
+ var se = Object.defineProperty, le = Object.getOwnPropertyDescriptor, h = (e, t, i, a) => {
499
+ for (var r = a > 1 ? void 0 : a ? le(t, i) : t, n = e.length - 1, d; n >= 0; n--)
500
+ (d = e[n]) && (r = (a ? d(t, i, r) : d(r)) || r);
501
+ return a && r && se(t, i, r), r;
499
502
  };
500
503
  function H(e) {
501
504
  const t = e.getChildrenItems({ includeDisabled: !1 });
502
505
  if (t.length) {
503
- const i = t.every((d) => d.selected), n = t.every(
506
+ const i = t.every((d) => d.selected), a = t.every(
504
507
  (d) => !d.selected && !d.indeterminate
505
508
  );
506
- let s = !1, a = !1;
507
- (!i && !n || e.partialSyncCheckboxes && (i || n && e.previouslySelected)) && (s = !0), e.partialSyncCheckboxes ? a = i && !s : a = i, e.indeterminate = s, e.selected = a;
509
+ let r = !1, n = !1;
510
+ (!i && !a || e.partialSyncCheckboxes && (i || a && e.previouslySelected)) && (r = !0), e.partialSyncCheckboxes ? n = i && !r : n = i, e.indeterminate = r, e.selected = n;
508
511
  }
509
512
  }
510
513
  function Z(e, t = "single") {
@@ -512,14 +515,14 @@ function Z(e, t = "single") {
512
515
  o.isTreeItem(i) && !i.disabledSyncCheckboxes && t === "multiple" && (H(i), Z(i, t));
513
516
  }
514
517
  function I(e, t = !1, i = "single") {
515
- function n(s) {
516
- if (!(!(s instanceof o) && s.getAttribute("role") !== "treeitem")) {
517
- for (const a of s.getChildrenItems())
518
- a.selected = t ? s.selected || a.selected : !a.disabled && !a.readonly && s.selected, n(a);
519
- t && H(s);
518
+ function a(r) {
519
+ if (!(!(r instanceof o) && r.getAttribute("role") !== "treeitem")) {
520
+ for (const n of r.getChildrenItems())
521
+ n.selected = t ? r.selected || n.selected : !n.disabled && !n.readonly && r.selected, a(n);
522
+ t && H(r);
520
523
  }
521
524
  }
522
- !e.disabledSyncCheckboxes && i === "multiple" && (e.partialSyncCheckboxes && (e.selected ? e.previouslySelected = !0 : e.previouslySelected = !1), n(e)), Z(e, i);
525
+ !e.disabledSyncCheckboxes && i === "multiple" && (e.partialSyncCheckboxes && (e.selected ? e.previouslySelected = !0 : e.previouslySelected = !1), a(e)), Z(e, i);
523
526
  }
524
527
  let c = class extends F {
525
528
  constructor() {
@@ -555,10 +558,10 @@ let c = class extends F {
555
558
  getExpandButtonIcon(e) {
556
559
  const i = (e === "expand" ? this.expandedIconSlot : this.collapsedIconSlot)?.assignedElements({ flatten: !0 })[0];
557
560
  if (i) {
558
- const n = i.cloneNode(!0);
559
- return [n, ...n.querySelectorAll("[id]")].forEach(
560
- (s) => s.removeAttribute("id")
561
- ), n.setAttribute("data-default", ""), n.slot = `${e}-icon`, n;
561
+ const a = i.cloneNode(!0);
562
+ return [a, ...a.querySelectorAll("[id]")].forEach(
563
+ (r) => r.removeAttribute("id")
564
+ ), a.setAttribute("data-default", ""), a.slot = `${e}-icon`, a;
562
565
  }
563
566
  return null;
564
567
  }
@@ -566,9 +569,9 @@ let c = class extends F {
566
569
  * Initializes new items by setting the `selectable` property and the expanded/collapsed icons if any
567
570
  */
568
571
  initTreeItem(e) {
569
- this.noForwardExpandButtonPlacement || (e.expandButtonPlacement = this.expandButtonPlacement), e.selectable = this.selection === "multiple", e.focusable = this.focusable, ["expand", "collapse"].filter((t) => !!this.querySelector(`[slot="${t}-icon"]`)).forEach((t) => {
570
- const i = e.querySelector(`[slot="${t}-icon"]`), n = this.getExpandButtonIcon(t);
571
- n && (i === null ? e.append(n) : i.hasAttribute("data-default") && i.replaceWith(n));
572
+ this.noForwardExpandButtonPlacement || (e.expandButtonPlacement = this.expandButtonPlacement), e.variant = this.variant, e.selectable = this.selection === "multiple", e.focusable = this.focusable, ["expand", "collapse"].filter((t) => !!this.querySelector(`[slot="${t}-icon"]`)).forEach((t) => {
573
+ const i = e.querySelector(`[slot="${t}-icon"]`), a = this.getExpandButtonIcon(t);
574
+ a && (i === null ? e.append(a) : i.hasAttribute("data-default") && i.replaceWith(a));
572
575
  }), this.sortable ? (e.sortable = !0, e.sortableGroup = this.getSortableGroup(), this.noDragInside && (e.noDragInside = !0)) : e.sortable = !1;
573
576
  }
574
577
  initTreeItems() {
@@ -578,10 +581,10 @@ let c = class extends F {
578
581
  for (const t of e) {
579
582
  const i = [...t.addedNodes].filter(
580
583
  o.isTreeItem
581
- ), n = [...t.removedNodes].filter(
584
+ ), a = [...t.removedNodes].filter(
582
585
  o.isTreeItem
583
586
  );
584
- i.forEach(this.initTreeItem), this.lastFocusedItem && n.includes(this.lastFocusedItem) && (this.lastFocusedItem = null);
587
+ i.forEach(this.initTreeItem), this.lastFocusedItem && a.includes(this.lastFocusedItem) && (this.lastFocusedItem = null);
585
588
  }
586
589
  }
587
590
  /**
@@ -591,21 +594,21 @@ let c = class extends F {
591
594
  * @param isSingleSelect - Optional flag to force the item to be selected and unselect all other items.
592
595
  */
593
596
  async selectItem(e, t = !1) {
594
- const i = [...this.selectedItems], n = this.getAllTreeItems();
597
+ const i = [...this.selectedItems], a = this.getAllTreeItems();
595
598
  if (this.selection === "multiple")
596
599
  t && await Promise.all(
597
- n.map(async (a) => {
598
- a.selected = !1, a.indeterminate = !1, a.previouslySelected = !1, await a.updateComplete;
600
+ a.map(async (n) => {
601
+ n.selected = !1, n.indeterminate = !1, n.previouslySelected = !1, await n.updateComplete;
599
602
  })
600
603
  ), e.selected = t || !e.selected, e.lazy && !this.disabledAutoExpand && (e.expanded = !0), I(e, !1, this.selection);
601
604
  else if ((this.selection === "single" || e.isLeaf) && !e.noSelect)
602
- for (const a of n)
603
- a.selected = a === e;
605
+ for (const n of a)
606
+ n.selected = n === e;
604
607
  else (this.selection === "leaf" || e.noSelect) && (e.expanded = !e.expanded);
605
608
  if (e.noSelect)
606
609
  return;
607
- const s = this.selectedItems;
608
- (i.length !== s.length || s.some((a) => !i.includes(a)) || this.forceOnChange || t) && Promise.all(s.map((a) => a.updateComplete)).then(() => {
610
+ const r = this.selectedItems;
611
+ (i.length !== r.length || r.some((n) => !i.includes(n)) || this.forceOnChange || t) && Promise.all(r.map((n) => n.updateComplete)).then(() => {
609
612
  this.emit("cx-selection-change", {
610
613
  /**
611
614
  * Use this.selectedItems instead of nextSelection because
@@ -635,36 +638,36 @@ let c = class extends F {
635
638
  "Enter",
636
639
  " "
637
640
  ].includes(e.key) || e.composedPath().some(
638
- (s) => ["input", "textarea"].includes(
639
- s?.tagName?.toLowerCase()
641
+ (r) => ["input", "textarea"].includes(
642
+ r?.tagName?.toLowerCase()
640
643
  )
641
644
  ))
642
645
  return;
643
- const t = this.getFocusableItems(), i = this.localize.dir() === "ltr", n = this.localize.dir() === "rtl";
646
+ const t = this.getFocusableItems(), i = this.localize.dir() === "ltr", a = this.localize.dir() === "rtl";
644
647
  if (t.length > 0) {
645
648
  e.preventDefault();
646
- const s = t.findIndex((x) => x.matches(":focus")), a = t[s], d = (x) => {
649
+ const r = t.findIndex((x) => x.matches(":focus")), n = t[r], d = (x) => {
647
650
  const p = t[X(x, 0, t.length - 1)];
648
651
  this.focusItem(p);
649
652
  }, u = (x) => {
650
- a.expanded = x;
653
+ n.expanded = x;
651
654
  };
652
- e.key === "ArrowDown" ? d(s + 1) : e.key === "ArrowUp" ? d(s - 1) : i && e.key === "ArrowRight" || n && e.key === "ArrowLeft" ? !a || a.disabled || a.readonly || a.expanded || a.isLeaf && !a.lazy ? d(s + 1) : u(!0) : i && e.key === "ArrowLeft" || n && e.key === "ArrowRight" ? !a || a.disabled || a.readonly || a.isLeaf || !a.expanded ? d(s - 1) : u(!1) : e.key === "Home" ? d(0) : e.key === "End" ? d(t.length - 1) : (e.key === "Enter" || e.key === " ") && !a.disabled && !a.readonly && this.selectItem(a);
655
+ e.key === "ArrowDown" ? d(r + 1) : e.key === "ArrowUp" ? d(r - 1) : i && e.key === "ArrowRight" || a && e.key === "ArrowLeft" ? !n || n.disabled || n.readonly || n.expanded || n.isLeaf && !n.lazy ? d(r + 1) : u(!0) : i && e.key === "ArrowLeft" || a && e.key === "ArrowRight" ? !n || n.disabled || n.readonly || n.isLeaf || !n.expanded ? d(r - 1) : u(!1) : e.key === "Home" ? d(0) : e.key === "End" ? d(t.length - 1) : (e.key === "Enter" || e.key === " ") && !n.disabled && !n.readonly && this.selectItem(n);
653
656
  }
654
657
  }
655
658
  handleClick(e) {
656
- const t = e.composedPath(), i = e.target, n = i.closest("cx-tree-item"), s = e.composedPath().some(
659
+ const t = e.composedPath(), i = e.target, a = i.closest("cx-tree-item"), r = e.composedPath().some(
657
660
  (u) => u?.classList?.contains("tree-item__expand-button")
658
- ), a = e.composedPath().some(
661
+ ), n = e.composedPath().some(
659
662
  (u) => u?.classList?.contains("tree-item__actions")
660
663
  );
661
- if (!n || n.disabled || n.readonly || i !== this.clickTarget)
664
+ if (!a || a.disabled || a.readonly || i !== this.clickTarget)
662
665
  return;
663
666
  const d = !t.find(
664
667
  (u) => u.tagName?.toLowerCase() === "cx-checkbox"
665
668
  );
666
- s && n.showExpandButton ? n.expanded = !n.expanded : a || this.selectItem(
667
- n,
669
+ r && a.showExpandButton ? a.expanded = !a.expanded : n || this.selectItem(
670
+ a,
668
671
  d && this.labelSelectSingle && this.selection === "multiple"
669
672
  );
670
673
  }
@@ -731,7 +734,7 @@ let c = class extends F {
731
734
  this.removeAttribute("dragging");
732
735
  }
733
736
  initSortable() {
734
- this.addEventListener("cx-drag-start", this.handleSortableStart), this.addEventListener("cx-drag-end", this.handleSortableEnd), this.sortableInstance = S.create(this, {
737
+ this.addEventListener("cx-drag-start", this.handleSortableStart), this.addEventListener("cx-drag-end", this.handleSortableEnd), this.sortableInstance = v.create(this, {
735
738
  ...M({
736
739
  group: this.getSortableGroup(),
737
740
  onAdd: this.handleSortableUpdate,
@@ -778,15 +781,15 @@ let c = class extends F {
778
781
  return e.filter((i) => {
779
782
  if (i.disabled || i.readonly)
780
783
  return !1;
781
- const n = i.parentElement?.closest("[role=treeitem]");
782
- return n instanceof o ? (n && (!n.expanded || n.loading || t.has(n)) && t.add(i), !t.has(i)) : !0;
784
+ const a = i.parentElement?.closest("[role=treeitem]");
785
+ return a instanceof o ? (a && (!a.expanded || a.loading || t.has(a)) && t.add(i), !t.has(i)) : !0;
783
786
  });
784
787
  }
785
788
  render() {
786
789
  return m`<div part="base" class="tree" @click=${this.handleClick} @keydown=${this.handleKeyDown} @mousedown=${this.handleMouseDown}><slot part="children" @slotchange=${this.handleSlotChange}></slot><span hidden aria-hidden="true"><slot name="expand-icon"></slot></span><span hidden aria-hidden="true"><slot name="collapse-icon"></slot></span></div>`;
787
790
  }
788
791
  };
789
- c.styles = [O, se];
792
+ c.styles = [O, re];
790
793
  h([
791
794
  f("slot:not([name])")
792
795
  ], c.prototype, "defaultSlot", 2);
@@ -824,6 +827,9 @@ h([
824
827
  h([
825
828
  l({ attribute: "no-forward-expand-button-placement", type: Boolean })
826
829
  ], c.prototype, "noForwardExpandButtonPlacement", 2);
830
+ h([
831
+ l({ reflect: !0, type: String })
832
+ ], c.prototype, "variant", 2);
827
833
  h([
828
834
  l({ attribute: "force-on-change", type: Boolean })
829
835
  ], c.prototype, "forceOnChange", 2);
@@ -840,7 +846,7 @@ h([
840
846
  g()
841
847
  ], c.prototype, "sortableInstance", 2);
842
848
  h([
843
- b("sortable")
849
+ b(["sortable", "variant"])
844
850
  ], c.prototype, "initTreeItems", 1);
845
851
  h([
846
852
  b("selection")
@@ -3,17 +3,18 @@ import "../chunks/button.DGyqdBou.js";
3
3
  import "./space.js";
4
4
  import "../chunks/typography.IqHbnd3C.js";
5
5
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
6
- import { C as g } from "../chunks/asset-link-format.BdB6fQA_.js";
6
+ import { C as h } from "../chunks/asset-link-format.0q_MQOYh.js";
7
7
  import "../chunks/component.styles.CRO4Odto.js";
8
- import "../chunks/asset-link-format.QzzboHHE.js";
8
+ import "../chunks/asset-link-format.ClaYu_v8.js";
9
+ import "../chunks/position-picker.DjnhxIKF.js";
9
10
  import "../chunks/custom-element.L4WJXn1j.js";
10
11
  import "../chunks/i18n.Bchq8v1d.js";
11
12
  import "../chunks/watch.DJF5K-8U.js";
12
13
  import "../chunks/number.Cx2ncfJJ.js";
13
- import "../chunks/transformation.D1alV_s4.js";
14
+ import "../chunks/transformation.8uLv6uwG.js";
14
15
  import "../chunks/lit-element.jLBm65_O.js";
15
16
  import "../chunks/state.CSDxrqLd.js";
16
17
  import "../chunks/when.Dr1es41R.js";
17
18
  export {
18
- g as default
19
+ h as default
19
20
  };
@@ -20,7 +20,7 @@ import { default as W } from "./details.js";
20
20
  import { default as Y } from "./diff.js";
21
21
  import { C as _ } from "../chunks/dialog.05FgdLBZ.js";
22
22
  import { default as oe } from "./divider.js";
23
- import { C as ae } from "../chunks/document-viewer.gyH0NGM5.js";
23
+ import { C as ae } from "../chunks/document-viewer.Cng07M-1.js";
24
24
  import { C as xe } from "../chunks/dot-pagination.Pg9O0nIh.js";
25
25
  import { default as me } from "./dot-status.js";
26
26
  import { default as pe } from "./drawer.js";
@@ -80,7 +80,7 @@ import { default as ft } from "./tag.js";
80
80
  import { default as st } from "./textarea.js";
81
81
  import { default as Ct } from "./timecode.js";
82
82
  import { default as lt } from "./tooltip.js";
83
- import { a as nt, C as it } from "../chunks/tree.Dvnw_4vz.js";
83
+ import { a as nt, C as it } from "../chunks/tree.vn5sHbdt.js";
84
84
  import { C as gt } from "../chunks/typography.IqHbnd3C.js";
85
85
  import { default as At } from "./video.js";
86
86
  import { default as St } from "./visually-hidden.js";
@@ -3,13 +3,13 @@ import "../chunks/typography.IqHbnd3C.js";
3
3
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
4
4
  import "../chunks/color-swatch.QsHoy_K1.js";
5
5
  import "../chunks/component.styles.CRO4Odto.js";
6
- import { C as v } from "../chunks/color-swatch-group.w5DMzNco.js";
7
- import "../chunks/content-builder.BX4pHujE.js";
6
+ import { C as v } from "../chunks/color-swatch-group.ChP9amU9.js";
7
+ import "../chunks/transformation.8uLv6uwG.js";
8
8
  import "../chunks/custom-element.L4WJXn1j.js";
9
9
  import "../chunks/debounce.DaHuiSGU.js";
10
10
  import "../chunks/i18n.Bchq8v1d.js";
11
11
  import "../chunks/watch.DJF5K-8U.js";
12
- import "../chunks/toast.C5Ir5yKA.js";
12
+ import "../chunks/toast.CXEAfCvN.js";
13
13
  import "../chunks/lit-element.jLBm65_O.js";
14
14
  import "../chunks/state.CSDxrqLd.js";
15
15
  import "../chunks/query.BBf1UFkC.js";
@@ -1,6 +1,6 @@
1
1
  import { n as S, C as be } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as ye } from "../chunks/component.styles.CRO4Odto.js";
3
- import { U as N } from "../chunks/asset-link-format.QzzboHHE.js";
3
+ import { U as N } from "../chunks/asset-link-format.ClaYu_v8.js";
4
4
  import { c as Re } from "../chunks/custom-element.L4WJXn1j.js";
5
5
  import { i as _e, x as te } from "../chunks/lit-element.jLBm65_O.js";
6
6
  import { r as ve } from "../chunks/state.CSDxrqLd.js";
@@ -1,5 +1,5 @@
1
1
  import "../chunks/resizable-component.styles.CAfXABBc.js";
2
- import { C as b } from "../chunks/document-viewer.gyH0NGM5.js";
2
+ import { C as b } from "../chunks/document-viewer.Cng07M-1.js";
3
3
  import "../chunks/component.styles.CRO4Odto.js";
4
4
  import "../chunks/index.Cpamj0jB.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
@@ -1,6 +1,6 @@
1
1
  import { C as tt } from "../chunks/icon.D5iM9wXS.js";
2
2
  import et from "./line-clamp.js";
3
- import { C as mt, s as _t, a as ft, b as dt } from "../chunks/tree.Dvnw_4vz.js";
3
+ import { C as mt, s as _t, a as ft, b as dt } from "../chunks/tree.vn5sHbdt.js";
4
4
  import { n as l, C as W } from "../chunks/lib-cortex-element.CVMmyPMC.js";
5
5
  import { c as st } from "../chunks/component.styles.CRO4Odto.js";
6
6
  import { c as q } from "../chunks/custom-element.L4WJXn1j.js";
@@ -3,9 +3,9 @@ import "../chunks/input.DOorVTYZ.js";
3
3
  import "./line-clamp.js";
4
4
  import "./select.js";
5
5
  import "./tag.js";
6
- import "../chunks/tree.Dvnw_4vz.js";
6
+ import "../chunks/tree.vn5sHbdt.js";
7
7
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
8
- import { C as h } from "../chunks/folder-select.Dh4SX0eU.js";
8
+ import { C as h } from "../chunks/folder-select.Dw1ZKZAq.js";
9
9
  import "../chunks/component.styles.CRO4Odto.js";
10
10
  import "../chunks/custom-element.L4WJXn1j.js";
11
11
  import "../chunks/i18n.Bchq8v1d.js";