@orangelogic/design-system 2.40.0 → 2.41.0-ci.3

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,4 +1,4 @@
1
- import { h as d, A as T, a as P } from "./endpoints.B7lcoc1N.js";
1
+ import { h as d, A as T, a as P } from "./endpoints.BgyupJys.js";
2
2
  const U = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
3
3
  function M(o, e, r, t = U) {
4
4
  const s = new URL(t + "/" + o);
@@ -2363,7 +2363,9 @@ ht.interceptors.response.use(
2363
2363
  (e) => e,
2364
2364
  (e) => Promise.reject(e)
2365
2365
  );
2366
- const Pn = ln(ht), Bn = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", Dn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
2366
+ const Pn = ln(ht);
2367
+ Promise.resolve();
2368
+ const Bn = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", Dn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
2367
2369
  var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_ASSET_LINK = "webapi/extensibility/integrations/contentBrowserSDK/GetAssetLink_4by", e.GET_CONTENT_V1 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v1", e.GET_CONTENT_V2 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v2", e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e))(mn || {}), yn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(yn || {}), bn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e))(bn || {});
2368
2370
  export {
2369
2371
  fn as A,
@@ -1,6 +1,6 @@
1
1
  import lt from "../components/icon.js";
2
2
  import dt from "../components/line-clamp.js";
3
- import { C as pt, s as ht, a as ut, b as Q } from "./tree.BcFl8OPo.js";
3
+ import { C as pt, s as ht, a as ut, b as Q } from "./tree.DynOxJWg.js";
4
4
  import { n as p, C as Y, x as r, c as K, i as gt, E as bt } from "./custom-element.fmLrnDZr.js";
5
5
  import { c as xt } from "./component.styles.DtouHn2g.js";
6
6
  import { L as Z } from "./i18n.D33BKrRs.js";
@@ -1,9 +1,9 @@
1
1
  import G from "../components/icon.js";
2
2
  import Z from "../components/input.js";
3
3
  import { C as J } from "./select.Bo8mWJ1g.js";
4
- import { C as x, a as K } from "./tree.BcFl8OPo.js";
4
+ import { C as x, a as K } from "./tree.DynOxJWg.js";
5
5
  import { n as r, C as I, x as f, c as w, i as X } from "./custom-element.fmLrnDZr.js";
6
- import { h as k, F as Y, b as A } from "./endpoints.B7lcoc1N.js";
6
+ import { h as k, F as Y, b as A } from "./endpoints.BgyupJys.js";
7
7
  import { c as R } from "./component.styles.DtouHn2g.js";
8
8
  import { L as V } from "./i18n.D33BKrRs.js";
9
9
  import { w as m } from "./watch.BCJD77bD.js";
@@ -23,7 +23,7 @@ import { n as u } from "./when.Dr1es41R.js";
23
23
  import { t as B } from "./toString.CL_lYXbK.js";
24
24
  import H from "../components/icon-button.js";
25
25
  import { C as N } from "./image.C9hVXtqX.js";
26
- import { t as U, a as G, D as v } from "./asset.CdfbYhcC.js";
26
+ import { t as U, a as G, D as v } from "./asset.Ba-CxnNM.js";
27
27
  import { a as V } from "./index.Cpamj0jB.js";
28
28
  import { A as m } from "./content-builder.UlVFSATk.js";
29
29
  import { e as J, t as f } from "./string.D6poLUEC.js";
@@ -1,4 +1,4 @@
1
- import { i as R, C as N, x, E as L, n as l, c as G } from "./custom-element.fmLrnDZr.js";
1
+ import { i as R, C as N, x as g, E as L, n as l, c as G } from "./custom-element.fmLrnDZr.js";
2
2
  import { c as M } from "./component.styles.DtouHn2g.js";
3
3
  import { L as Z } from "./i18n.D33BKrRs.js";
4
4
  import { c as K } from "./math.DqTA6ya4.js";
@@ -6,10 +6,10 @@ import { w as b } from "./watch.BCJD77bD.js";
6
6
  import { r as y } from "./state.Dt9F_SuS.js";
7
7
  import { e as f } from "./query.BBf1UFkC.js";
8
8
  import { a as z, g as P, b as U, c as $, s as H } from "./animation-registry.DavRkTTr.js";
9
- import { e as E } from "./class-map.DqNfBvJI.js";
9
+ import { e as w } from "./class-map.DqNfBvJI.js";
10
10
  import { o as _ } from "./if-defined.CKupVaWs.js";
11
11
  import { l as W } from "./live.DCdtYl87.js";
12
- import { n as w } from "./when.Dr1es41R.js";
12
+ import { n as E } from "./when.Dr1es41R.js";
13
13
  import Y from "../components/checkbox.js";
14
14
  import J from "../components/icon.js";
15
15
  import Q from "../components/spinner.js";
@@ -30,15 +30,15 @@ for (let e = 0; e < 256; ++e)
30
30
  function ne(e, t = 0) {
31
31
  return (p[e[t + 0]] + p[e[t + 1]] + p[e[t + 2]] + p[e[t + 3]] + "-" + p[e[t + 4]] + p[e[t + 5]] + "-" + p[e[t + 6]] + p[e[t + 7]] + "-" + p[e[t + 8]] + p[e[t + 9]] + "-" + p[e[t + 10]] + p[e[t + 11]] + p[e[t + 12]] + p[e[t + 13]] + p[e[t + 14]] + p[e[t + 15]]).toLowerCase();
32
32
  }
33
- let C;
33
+ let I;
34
34
  const oe = new Uint8Array(16);
35
35
  function ae() {
36
- if (!C) {
36
+ if (!I) {
37
37
  if (typeof crypto > "u" || !crypto.getRandomValues)
38
38
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
39
- C = crypto.getRandomValues.bind(crypto);
39
+ I = crypto.getRandomValues.bind(crypto);
40
40
  }
41
- return C(oe);
41
+ return I(oe);
42
42
  }
43
43
  const re = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), F = { randomUUID: re };
44
44
  function se(e, t, i) {
@@ -54,13 +54,12 @@ const le = R`
54
54
  :host {
55
55
  display: block;
56
56
  outline: 0;
57
- padding: var(--cx-focus-ring-width);
58
57
 
59
- --selected-color: var(--cx-color-primary);
58
+ --selected-color: var(--cx-color-primary-600);
60
59
  --selected-background-color: var(--cx-color-primary-50);
61
60
  --hover-background-color: var(--cx-menu-item-background-color-hover);
62
61
  --active-background-color: var(--cx-color-neutral-200);
63
- --item-padding: var(--cx-spacing-x-small) var(--cx-spacing-small);
62
+ --item-padding: var(--cx-spacing-2x-small) var(--cx-spacing-x-small);
64
63
  }
65
64
 
66
65
  :host(:focus-visible) .tree-item {
@@ -96,7 +95,7 @@ const le = R`
96
95
  .tree-item__label {
97
96
  font-family: var(--cx-font-sans);
98
97
  font-size: var(--cx-tree-item-font-size, var(--cx-font-size-small));
99
- font-weight: var(--cx-tree-item-font-weight, var(--cx-font-weight-regular));
98
+ font-weight: var(--cx-tree-item-font-weight, var(--cx-font-weight-medium));
100
99
  line-height: var(--cx-tree-item-line-height, var(--cx-line-height-large));
101
100
  letter-spacing: var(--cx-tree-item-letter-spacing, var(--cx-letter-spacing-normal));
102
101
  }
@@ -304,7 +303,7 @@ const le = R`
304
303
  width: 100%;
305
304
  border-bottom: var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);
306
305
  }
307
- `, k = "tree-sortable", I = 0.2, O = (e) => e == null;
306
+ `, k = "tree-sortable", C = 0.2, O = (e) => e == null;
308
307
  function de() {
309
308
  function e() {
310
309
  }
@@ -325,45 +324,45 @@ function de() {
325
324
  changed: r,
326
325
  completed: o,
327
326
  dragEl: d,
328
- originalEvent: g,
329
- putSortable: u,
330
- target: m
327
+ originalEvent: m,
328
+ putSortable: x,
329
+ target: u
331
330
  }) {
332
- if (t = null, !i || !i.options[k] || !i.options.getDropZone || O(i.options.insertBeforeZonePercentage) || O(i.options.insertAfterZonePercentage) || !["CX-TREE-ITEM", "CX-TREE"].includes(m.tagName) || m.hasAttribute("no-drag")) {
331
+ if (t = null, !i || !i.options[k] || !i.options.getDropZone || O(i.options.insertBeforeZonePercentage) || O(i.options.insertAfterZonePercentage) || !["CX-TREE-ITEM", "CX-TREE"].includes(u.tagName) || u.hasAttribute("no-drag")) {
333
332
  n();
334
333
  return;
335
334
  }
336
- const B = i.options.getDropZone(m);
335
+ const B = i.options.getDropZone(u);
337
336
  if (!B) {
338
337
  n();
339
338
  return;
340
339
  }
341
- const T = B.getBoundingClientRect(), D = (g.clientY - T.top) / T.height, v = u || this.sortable;
340
+ const T = B.getBoundingClientRect(), D = (m.clientY - T.top) / T.height, v = x || this.sortable;
342
341
  v.captureAnimationState(), v !== i && i.captureAnimationState();
343
- const V = m.parentNode;
342
+ const V = u.parentNode;
344
343
  if (d && V)
345
344
  if (D < i.options.insertBeforeZonePercentage)
346
345
  t = {
347
346
  dragEl: d,
348
- el: m,
347
+ el: u,
349
348
  position: -1
350
- }, m.setAttribute("data-dragging", "before");
349
+ }, u.setAttribute("data-dragging", "before");
351
350
  else if (D > i.options.insertAfterZonePercentage)
352
351
  t = {
353
352
  dragEl: d,
354
- el: m,
353
+ el: u,
355
354
  position: 1
356
- }, m.setAttribute("data-dragging", "after");
355
+ }, u.setAttribute("data-dragging", "after");
357
356
  else {
358
- if (m.hasAttribute("no-drag-inside")) {
357
+ if (u.hasAttribute("no-drag-inside")) {
359
358
  r(), o(!0), n();
360
359
  return;
361
360
  }
362
361
  t = {
363
362
  dragEl: d,
364
- el: m,
363
+ el: u,
365
364
  position: 0
366
- }, m.setAttribute("data-dragging", "inside");
365
+ }, u.setAttribute("data-dragging", "inside");
367
366
  }
368
367
  if (v.animateAll(), v !== i && i.animateAll(), t)
369
368
  r(), o(!0), n();
@@ -406,8 +405,8 @@ const j = (e) => ({
406
405
  fallbackOnBody: !0,
407
406
  forceFallback: ee(),
408
407
  getDropZone: (t) => t?.shadowRoot?.querySelector(".tree-item__item"),
409
- insertAfterZonePercentage: 1 - I,
410
- insertBeforeZonePercentage: I,
408
+ insertAfterZonePercentage: 1 - C,
409
+ insertBeforeZonePercentage: C,
411
410
  invertSwap: !0,
412
411
  onStart(t) {
413
412
  if (e.onStart?.(t), t.item.tagName === "CX-TREE-ITEM") {
@@ -416,7 +415,7 @@ const j = (e) => ({
416
415
  }
417
416
  },
418
417
  [k]: !0,
419
- swapThreshold: I
418
+ swapThreshold: C
420
419
  });
421
420
  var ce = Object.defineProperty, he = Object.getOwnPropertyDescriptor, s = (e, t, i, n) => {
422
421
  for (var r = n > 1 ? void 0 : n ? he(t, i) : t, o = e.length - 1, d; o >= 0; o--)
@@ -514,17 +513,17 @@ let a = class extends N {
514
513
  }
515
514
  renderExpandButton() {
516
515
  const e = this.localize.dir() === "rtl", t = this.showExpandButton;
517
- return x` <div
516
+ return g` <div
518
517
  part="expand-button"
519
- class=${E({
518
+ class=${w({
520
519
  "tree-item__expand-button": !0,
521
520
  "tree-item__expand-button--visible": t
522
521
  })}
523
522
  aria-hidden="true"
524
523
  >
525
- ${w(
524
+ ${E(
526
525
  this.loading,
527
- () => x`
526
+ () => g`
528
527
  <cx-spinner
529
528
  part="spinner"
530
529
  class="tree-item__expand-spinner"
@@ -580,11 +579,11 @@ let a = class extends N {
580
579
  }
581
580
  renderBase(e) {
582
581
  const t = this.showExpandButton;
583
- return this.href ? x`
582
+ return this.href ? g`
584
583
  <a
585
584
  id="anchor"
586
585
  part="base"
587
- class=${E({
586
+ class=${w({
588
587
  "tree-item": !0,
589
588
  "tree-item--disabled": this.disabled,
590
589
  "tree-item--expanded": this.expanded,
@@ -601,10 +600,10 @@ let a = class extends N {
601
600
  >
602
601
  ${e}
603
602
  </a>
604
- ` : x`
603
+ ` : g`
605
604
  <div
606
605
  part="base"
607
- class=${E({
606
+ class=${w({
608
607
  "tree-item": !0,
609
608
  "tree-item--disabled": this.disabled,
610
609
  "tree-item--expanded": this.expanded,
@@ -619,7 +618,7 @@ let a = class extends N {
619
618
  `;
620
619
  }
621
620
  render() {
622
- return this.renderBase(x`
621
+ return this.renderBase(g`
623
622
  <div
624
623
  class="tree-item__item"
625
624
  part="
@@ -632,14 +631,14 @@ let a = class extends N {
632
631
  >
633
632
  <div class="tree-item__indentation" part="indentation"></div>
634
633
 
635
- ${w(
634
+ ${E(
636
635
  this.expandButtonPlacement === "start",
637
636
  this.renderExpandButton,
638
637
  () => L
639
638
  )}
640
- ${w(
639
+ ${E(
641
640
  this.selectable,
642
- () => x`
641
+ () => g`
643
642
  <cx-checkbox
644
643
  part="checkbox"
645
644
  exportparts="
@@ -663,7 +662,7 @@ let a = class extends N {
663
662
  <slot class="tree-item__label" part="label"></slot>
664
663
  <slot class="tree-item__actions" part="actions" name="actions"></slot>
665
664
 
666
- ${w(
665
+ ${E(
667
666
  this.expandButtonPlacement === "end",
668
667
  this.renderExpandButton,
669
668
  () => L
@@ -1004,31 +1003,29 @@ let c = class extends N {
1004
1003
  const t = this.getFocusableItems(), i = this.localize.dir() === "ltr", n = this.localize.dir() === "rtl";
1005
1004
  if (t.length > 0) {
1006
1005
  e.preventDefault();
1007
- const r = t.findIndex((u) => u.matches(":focus")), o = t[r], d = (u) => {
1008
- const m = t[K(u, 0, t.length - 1)];
1009
- this.focusItem(m);
1010
- }, g = (u) => {
1011
- o.expanded = u;
1006
+ const r = t.findIndex((x) => x.matches(":focus")), o = t[r], d = (x) => {
1007
+ const u = t[K(x, 0, t.length - 1)];
1008
+ this.focusItem(u);
1009
+ }, m = (x) => {
1010
+ o.expanded = x;
1012
1011
  };
1013
- e.key === "ArrowDown" ? d(r + 1) : e.key === "ArrowUp" ? d(r - 1) : i && e.key === "ArrowRight" || n && e.key === "ArrowLeft" ? !o || o.disabled || o.readonly || o.expanded || o.isLeaf && !o.lazy ? d(r + 1) : g(!0) : i && e.key === "ArrowLeft" || n && e.key === "ArrowRight" ? !o || o.disabled || o.readonly || o.isLeaf || !o.expanded ? d(r - 1) : g(!1) : e.key === "Home" ? d(0) : e.key === "End" ? d(t.length - 1) : (e.key === "Enter" || e.key === " ") && !o.disabled && !o.readonly && this.selectItem(o);
1012
+ e.key === "ArrowDown" ? d(r + 1) : e.key === "ArrowUp" ? d(r - 1) : i && e.key === "ArrowRight" || n && e.key === "ArrowLeft" ? !o || o.disabled || o.readonly || o.expanded || o.isLeaf && !o.lazy ? d(r + 1) : m(!0) : i && e.key === "ArrowLeft" || n && e.key === "ArrowRight" ? !o || o.disabled || o.readonly || o.isLeaf || !o.expanded ? d(r - 1) : m(!1) : e.key === "Home" ? d(0) : e.key === "End" ? d(t.length - 1) : (e.key === "Enter" || e.key === " ") && !o.disabled && !o.readonly && this.selectItem(o);
1014
1013
  }
1015
1014
  }
1016
1015
  handleClick(e) {
1017
1016
  const t = e.composedPath(), i = e.target, n = i.closest("cx-tree-item"), r = e.composedPath().some(
1018
- (u) => u?.classList?.contains("tree-item__expand-button")
1017
+ (m) => m?.classList?.contains("tree-item__expand-button")
1019
1018
  ), o = e.composedPath().some(
1020
- (u) => u?.classList?.contains("tree-item__actions")
1021
- ), d = t.find(
1022
- (u) => u.classList?.contains("checkbox__control")
1019
+ (m) => m?.classList?.contains("tree-item__actions")
1023
1020
  );
1024
- if (!n || n.disabled || n.readonly || i !== this.clickTarget || d)
1021
+ if (!n || n.disabled || n.readonly || i !== this.clickTarget)
1025
1022
  return;
1026
- const g = !t.find(
1027
- (u) => u.tagName?.toLowerCase() === "cx-checkbox"
1023
+ const d = !t.find(
1024
+ (m) => m.tagName?.toLowerCase() === "cx-checkbox"
1028
1025
  );
1029
1026
  r && n.showExpandButton ? n.expanded = !n.expanded : o || this.selectItem(
1030
1027
  n,
1031
- g && this.labelSelectSingle && this.selection === "multiple"
1028
+ d && this.labelSelectSingle && this.selection === "multiple"
1032
1029
  );
1033
1030
  }
1034
1031
  handleMouseDown(e) {
@@ -1129,7 +1126,7 @@ let c = class extends N {
1129
1126
  });
1130
1127
  }
1131
1128
  render() {
1132
- return x`
1129
+ return g`
1133
1130
  <div
1134
1131
  part="base"
1135
1132
  class="tree"
@@ -3,7 +3,7 @@ import { C as q } from "../chunks/button.DrU92LJQ.js";
3
3
  import H from "./space.js";
4
4
  import { C as W } from "../chunks/typography.trna8y2b.js";
5
5
  import { i as F, n as l, C as E, x as b, c as N } from "../chunks/custom-element.fmLrnDZr.js";
6
- import { b as ht, c as lt } from "../chunks/asset.CdfbYhcC.js";
6
+ import { b as ht, c as lt } from "../chunks/asset.Ba-CxnNM.js";
7
7
  import { c as O } from "../chunks/component.styles.DtouHn2g.js";
8
8
  import { T as c, U as o } from "../chunks/asset-link-format.BSRDqHg7.js";
9
9
  import { L as D } from "../chunks/i18n.D33BKrRs.js";
@@ -71,7 +71,7 @@ import { default as No } from "./tag.js";
71
71
  import { default as Eo } from "./textarea.js";
72
72
  import { C as Vo } from "../chunks/timecode.BOz71Ho5.js";
73
73
  import { default as Qo } from "./tooltip.js";
74
- import { a as Jo, C as Ko } from "../chunks/tree.BcFl8OPo.js";
74
+ import { a as Jo, C as Ko } from "../chunks/tree.DynOxJWg.js";
75
75
  import { C as Wo } from "../chunks/typography.trna8y2b.js";
76
76
  import { default as Yo } from "./video.js";
77
77
  import { default as _o } from "./visually-hidden.js";