@orangelogic/design-system 2.175.0 → 2.177.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 (150) hide show
  1. package/library/chunks/{abnfDiagram-VRR7QNED.DKqYa5p7.js → abnfDiagram-N423BO3Z.DmbxJEYP.js} +3 -3
  2. package/library/chunks/architectureDiagram-T3A2C74G.B3-MGxdy.js +4782 -0
  3. package/library/chunks/{asset-link-format.NhSLWk_Y.js → asset-link-format.Ckb6Eq0e.js} +5 -5
  4. package/library/chunks/{blockDiagram-677ZJIJ3.CeQxLPwj.js → blockDiagram-VBNYF7ZC.Dw_7h8Aq.js} +3 -3
  5. package/library/chunks/{button.zWaIO1sl.js → button.Bj14A10c.js} +1 -1
  6. package/library/chunks/{c4Diagram-LMCZKHZV.B73xdpNh.js → c4Diagram-5PPSVZJV.sgkQad3b.js} +2 -2
  7. package/library/chunks/{channel.s_XjcUYI.js → channel.BgACV0Fb.js} +1 -1
  8. package/library/chunks/{chunk-32BRIVSS.BbIrVi3j.js → chunk-2GRJ4B5K.r19kfrEk.js} +1 -1
  9. package/library/chunks/{chunk-2Q5K7J3B.Dy1Z-bMH.js → chunk-2Q5K7J3B.DR95kRDU.js} +1 -1
  10. package/library/chunks/{chunk-EX3LRPZG.L693y8d4.js → chunk-5RXB4S5H.4NblUr61.js} +4 -4
  11. package/library/chunks/{chunk-5VM5RSS4.D0-lddDM.js → chunk-5VM5RSS4.DjAk9wN1.js} +1 -1
  12. package/library/chunks/{chunk-MOJQB5TN.BZstBMYC.js → chunk-6Q2QTUOP.RrRW6s5_.js} +1 -1
  13. package/library/chunks/{chunk-V7JOEXUC.DcJlyQO0.js → chunk-GF5L2VYU.DBI3JTKM.js} +5 -5
  14. package/library/chunks/{chunk-JWPE2WC7.BV0i4LDu.js → chunk-JWPE2WC7.Bw21g4Xj.js} +1 -1
  15. package/library/chunks/{chunk-VR4S4FIN.BpryBs7q.js → chunk-KBJHAD2P.DfRrJw9t.js} +1 -1
  16. package/library/chunks/{chunk-RYQCIY6F.BMsuG7ya.js → chunk-RYQCIY6F.DkJNx6hl.js} +1 -1
  17. package/library/chunks/{chunk-XXDRQBXY.CSOjab1V.js → chunk-XXDRQBXY.CLvgdAsG.js} +1 -1
  18. package/library/chunks/{classDiagram-OUVF2IWQ.Dvz7CNwe.js → classDiagram-JCYQIIEL.DQ9axGI4.js} +2 -2
  19. package/library/chunks/{classDiagram-v2-EOCWNBFH.Dvz7CNwe.js → classDiagram-v2-OCEON4UE.DQ9axGI4.js} +2 -2
  20. package/library/chunks/{color-swatch-group.C01UAz1A.js → color-swatch-group.JIvuSR7O.js} +701 -704
  21. package/library/chunks/{color-swatch.DpzAGKQx.js → color-swatch.D6Gg5bpz.js} +1 -1
  22. package/library/chunks/{confirm-popover.Cn1BaP0W.js → confirm-popover.BVWtAu5T.js} +1 -1
  23. package/library/chunks/{cose-bilkent-JH36ORCC.cfzS2XsK.js → cose-bilkent-JH36ORCC.DaEeg-T2.js} +1 -1
  24. package/library/chunks/{cynefinDiagram-TSTJHNR4.C8SgNXWI.js → cynefinDiagram-MW4NZA55.BPUjzF-9.js} +2 -2
  25. package/library/chunks/{dagre-VKFMJZFB.D5B1cAri.js → dagre-VZM6K2ZE.D8ZW6jWn.js} +2 -2
  26. package/library/chunks/{diagram-OA4YK3LP.Dm5WJs91.js → diagram-7IWD3JNH.DEn-8Nyk.js} +3 -3
  27. package/library/chunks/{diagram-FQU43EPY.DJukDcLl.js → diagram-B4RE2ZJO.D8OadPQp.js} +2 -2
  28. package/library/chunks/{diagram-NH7WQ7WH.DOpRwmC2.js → diagram-LBJQPF4R.uE98W6WL.js} +2 -2
  29. package/library/chunks/{diagram-G47NLZAW.BBOvcbcR.js → diagram-Q27KOJAE.yof_N5m5.js} +3 -3
  30. package/library/chunks/{diagram-WEI45ONY.COuzdmSR.js → diagram-UB23O5K3.Ch7qaZ8N.js} +66 -64
  31. package/library/chunks/{document-viewer.DxPw7xHV.js → document-viewer.5jZ0djNd.js} +3 -3
  32. package/library/chunks/{dom.C5aVLhKS.js → dom.gRV2cDjL.js} +1 -1
  33. package/library/chunks/{ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js → ebnfDiagram-BXEA7PRR.BCGi4Or-.js} +3 -3
  34. package/library/chunks/{endpoints.CwgTrs4A.js → endpoints.mJ5S-tIs.js} +51 -52
  35. package/library/chunks/{erDiagram-Q63AITRT.sSw_w-2B.js → erDiagram-JOGREHBK.Dj_WQ9-P.js} +4 -4
  36. package/library/chunks/{flowDiagram-23GEKE2U.CMMbuUHf.js → flowDiagram-UKHOOZJN.C0pE4e9K.js} +25 -25
  37. package/library/chunks/{folder-select.BgWvY0t0.js → folder-select.CXrAwaij.js} +80 -75
  38. package/library/chunks/{form.CP9KLGjF.js → form.DSsy3Fcy.js} +1 -1
  39. package/library/chunks/{ganttDiagram-NO4QXBWP.DZdwd0O4.js → ganttDiagram-PKOTCBZU.Cz_H5LNn.js} +1 -1
  40. package/library/chunks/{gitGraphDiagram-IHSO6WYX.F6mwS3uS.js → gitGraphDiagram-DS77QQ5N.BwyVHdCu.js} +3 -3
  41. package/library/chunks/{infoDiagram-FWYZ7A6U.BnktKL7i.js → infoDiagram-6WML65LV.D986xkxa.js} +2 -2
  42. package/library/chunks/{input.B-c9KEAH.js → input.CftMH3MT.js} +1 -1
  43. package/library/chunks/{ishikawaDiagram-FXEZZL3T.CFp-9Kes.js → ishikawaDiagram-WSZJBQD7.DS_s73xV.js} +1 -1
  44. package/library/chunks/{journeyDiagram-5HDEW3XC.BxO1aPu_.js → journeyDiagram-NVQOT4AX.CpnBzO_7.js} +3 -3
  45. package/library/chunks/{kanban-definition-HUTT4EX6.Bk8vmLFK.js → kanban-definition-27J2QSJJ.BWQ1LbN9.js} +2 -2
  46. package/library/chunks/{markdown.CESgIEEE.js → markdown.ClRfC7SP.js} +665 -653
  47. package/library/chunks/{mermaid.core.Dspbw7Ig.js → mermaid.core.CPVTuCpJ.js} +1202 -1167
  48. package/library/chunks/{mindmap-definition-LN4V7U3C.DuCBBYwE.js → mindmap-definition-FAOFIHXS.tV221P-F.js} +3 -3
  49. package/library/chunks/{pagination.Do36kaZK.js → pagination.CW3yynt_.js} +2 -2
  50. package/library/chunks/{pegDiagram-2B236MQR.DQrkEdJr.js → pegDiagram-VL7TDLO6.SjdhjwPL.js} +3 -3
  51. package/library/chunks/{pieDiagram-ENE6RG2P.B6nPW8Pj.js → pieDiagram-7S7Q4E2Y.BCRXd1yD.js} +2 -2
  52. package/library/chunks/{quadrantDiagram-ABIIQ3AL.BFy9moxz.js → quadrantDiagram-CIZ2JOQS.BMNbRkIQ.js} +1 -1
  53. package/library/chunks/{railroadDiagram-RFXS5EU6.CSao8YZX.js → railroadDiagram-AXF67PYL.2IwXOeL6.js} +3 -3
  54. package/library/chunks/{requirementDiagram-TGXJPOKE.CjpliZnF.js → requirementDiagram-LRYGKXZP.BtyA_EuA.js} +3 -3
  55. package/library/chunks/{sankeyDiagram-HTMAVEWB.D8aAxVGe.js → sankeyDiagram-W5VNT64P.BUBAWIOI.js} +1 -1
  56. package/library/chunks/{sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js → sequenceDiagram-SI44F4Z6.Cys6U73s.js} +3 -3
  57. package/library/chunks/{sizeCapture-X5ZJPWSS.BDByEFcW.js → sizeCapture-X5ZJPWSS.CEEU5-VT.js} +1 -1
  58. package/library/chunks/{stateDiagram-2N3HPSRC.DvrAW9Ck.js → stateDiagram-OKZ733FA.r1-hE_hN.js} +2 -2
  59. package/library/chunks/{stateDiagram-v2-6OUMAXLB.CFfuaFM1.js → stateDiagram-v2-UEYNNEHI.BMfu2Zly.js} +2 -2
  60. package/library/chunks/{string.BhJ0Zogu.js → string.CfI2ejyR.js} +60 -63
  61. package/library/chunks/{swimlanes-5IMT3BWC.AtMD47q7.js → swimlanes-SLNWSIFB.X2WxIaD_.js} +3 -3
  62. package/library/chunks/{swimlanesDiagram-G3AALYLV.26A1eX7s.js → swimlanesDiagram-ULZ7WXOC.BTivMnAR.js} +2 -2
  63. package/library/chunks/{tab-group.DYywhd3A.js → tab-group.DvPwuInt.js} +2 -2
  64. package/library/chunks/{timeline-definition-FHXFAJF6.CYSh6xl5.js → timeline-definition-Z64GVDOM.DFfCN4wg.js} +1 -1
  65. package/library/chunks/{vennDiagram-L72KCM5P.CSk1WWlu.js → vennDiagram-T6HMQDX7.C-CHsl0o.js} +1 -1
  66. package/library/chunks/{wardleyDiagram-EHGQE667.C7UzXYG7.js → wardleyDiagram-T6FBY63Y.BauqS3ST.js} +2 -2
  67. package/library/chunks/{xychartDiagram-FW5EYKEG.idiZWvYS.js → xychartDiagram-ELKLHX3M.BgPK-qcM.js} +76 -73
  68. package/library/components/asset-link-format.js +2 -2
  69. package/library/components/atoms.js +6 -6
  70. package/library/components/avatar.js +7 -7
  71. package/library/components/border-input-group.js +1 -1
  72. package/library/components/button.js +2 -2
  73. package/library/components/checkbox.js +1 -1
  74. package/library/components/color-picker.js +3 -3
  75. package/library/components/color-swatch-group.js +2 -2
  76. package/library/components/color-swatch.js +1 -1
  77. package/library/components/confirm-popover.js +2 -2
  78. package/library/components/copy-button.js +1 -1
  79. package/library/components/corner-position-input-group.js +1 -1
  80. package/library/components/diff.js +1 -1
  81. package/library/components/document-viewer.js +1 -1
  82. package/library/components/dropdown.js +1 -1
  83. package/library/components/dynamic-select.js +1 -1
  84. package/library/components/element-clamp.js +1 -1
  85. package/library/components/file-on-demand.js +5 -5
  86. package/library/components/folder-select.js +4 -4
  87. package/library/components/input.js +2 -2
  88. package/library/components/line-clamp.js +1 -1
  89. package/library/components/markdown.js +2 -2
  90. package/library/components/molecules.js +3 -3
  91. package/library/components/organisms.js +2 -2
  92. package/library/components/padding-input-group.js +1 -1
  93. package/library/components/pagination.js +3 -3
  94. package/library/components/radio-group.js +1 -1
  95. package/library/components/range.js +1 -1
  96. package/library/components/select.js +1 -1
  97. package/library/components/shadow-input-group.js +1 -1
  98. package/library/components/share-option-list.js +1 -1
  99. package/library/components/size-input-group.js +1 -1
  100. package/library/components/switch.js +1 -1
  101. package/library/components/tab-group.js +3 -3
  102. package/library/components/textarea.js +1 -1
  103. package/library/components/timecode.js +1 -1
  104. package/library/components/types.js +48206 -49635
  105. package/library/package.json +1 -1
  106. package/library/packages/atoms/src/components/avatar/avatar.d.ts +2 -0
  107. package/library/packages/atoms/src/components/copy-button/copy-button.d.ts +3 -0
  108. package/library/packages/events/src/cx-video-annotation-layer-change.d.ts +8 -0
  109. package/library/packages/events/src/cx-video-closed.d.ts +6 -0
  110. package/library/packages/events/src/cx-video-comment-click.d.ts +8 -0
  111. package/library/packages/events/src/cx-video-comment-mouseleave.d.ts +8 -0
  112. package/library/packages/events/src/cx-video-comment-mouseover.d.ts +8 -0
  113. package/library/packages/events/src/cx-video-context-change.d.ts +27 -0
  114. package/library/packages/events/src/cx-video-enter-fullscreen.d.ts +6 -0
  115. package/library/packages/events/src/cx-video-event.d.ts +9 -0
  116. package/library/packages/events/src/cx-video-exit-fullscreen.d.ts +6 -0
  117. package/library/packages/events/src/cx-video-next-frame.d.ts +6 -0
  118. package/library/packages/events/src/cx-video-paused.d.ts +8 -0
  119. package/library/packages/events/src/cx-video-played.d.ts +8 -0
  120. package/library/packages/events/src/cx-video-prev-frame.d.ts +6 -0
  121. package/library/packages/events/src/cx-video-seeked.d.ts +8 -0
  122. package/library/packages/events/src/cx-video-segment-change.d.ts +9 -0
  123. package/library/packages/events/src/cx-video-time-update.d.ts +8 -0
  124. package/library/packages/events/src/events.d.ts +16 -0
  125. package/library/packages/organisms/src/annotator-comment/annotator-comment.d.ts +6 -0
  126. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +10 -66
  127. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -0
  128. package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +9 -0
  129. package/library/packages/organisms/src/index.d.ts +0 -2
  130. package/library/packages/utils/src/font/font.d.ts +23 -8
  131. package/library/react-web-component.d.ts +243 -4
  132. package/library/utils.js +323 -312
  133. package/package.json +1 -1
  134. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +0 -4757
  135. package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.d.ts +0 -71
  136. package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.styles.d.ts +0 -2
  137. package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.utils.d.ts +0 -25
  138. package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.d.ts +0 -66
  139. package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.styles.d.ts +0 -2
  140. package/library/packages/organisms/src/video-editor/components/video-editor-toolbar/video-editor-toolbar.d.ts +0 -84
  141. package/library/packages/organisms/src/video-editor/components/video-editor-toolbar/video-editor-toolbar.styles.d.ts +0 -2
  142. package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.d.ts +0 -59
  143. package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.styles.d.ts +0 -2
  144. package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.d.ts +0 -79
  145. package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.styles.d.ts +0 -2
  146. package/library/packages/organisms/src/video-editor/components/video-editor-transition/video-editor-transition.d.ts +0 -26
  147. package/library/packages/organisms/src/video-editor/components/video-editor-transition/video-editor-transition.styles.d.ts +0 -2
  148. package/library/packages/organisms/src/video-editor/video-editor.d.ts +0 -102
  149. package/library/packages/organisms/src/video-editor/video-editor.styles.d.ts +0 -2
  150. package/library/packages/services/src/api/chapter/chapter.d.ts +0 -7
@@ -1,28 +1,28 @@
1
1
  import { C as re } from "./icon.D5iM9wXS.js";
2
- import { C as me } from "./input.B-c9KEAH.js";
2
+ import { C as me } from "./input.CftMH3MT.js";
3
3
  import se from "../components/line-clamp.js";
4
4
  import ye from "../components/select.js";
5
5
  import ge from "../components/tag.js";
6
- import { C as S, a as xe } from "./tree.B0-6Ny9b.js";
6
+ import { C as F, a as xe } from "./tree.B0-6Ny9b.js";
7
7
  import { n as s, C as N } from "./lib-cortex-element.CVMmyPMC.js";
8
- import { h as A, F as be, A as $e } from "./endpoints.CwgTrs4A.js";
8
+ import { h as A, F as be, A as $e } from "./endpoints.mJ5S-tIs.js";
9
9
  import { M as P } from "./asset-link-format.ClaYu_v8.js";
10
10
  import { c as ie } from "./component.styles.CRO4Odto.js";
11
11
  import { c as W } from "./custom-element.L4WJXn1j.js";
12
- import { L as H } from "./i18n.DbXTTLXx.js";
12
+ import { L as q } from "./i18n.DbXTTLXx.js";
13
13
  import { w as y } from "./watch.DJF5K-8U.js";
14
- import { g as V, p as X, e as R } from "./string.BhJ0Zogu.js";
14
+ import { g as V, p as X, e as E } from "./string.CfI2ejyR.js";
15
15
  import { x as g, i as ve } from "./lit-element.jLBm65_O.js";
16
16
  import { r as x } from "./state.CSDxrqLd.js";
17
- import { e as q } from "./query.BBf1UFkC.js";
17
+ import { e as H } from "./query.BBf1UFkC.js";
18
18
  import { r as Ie } from "./choose.BTbF6BAn.js";
19
- import { C as ae } from "./button.zWaIO1sl.js";
20
- import { d as Fe } from "./debounce.DaHuiSGU.js";
21
- import { o as u } from "./if-defined.BRoBj_Rp.js";
19
+ import { C as ae } from "./button.Bj14A10c.js";
20
+ import { d as Se } from "./debounce.DaHuiSGU.js";
21
+ import { o as p } from "./if-defined.BRoBj_Rp.js";
22
22
  import { c as G } from "./repeat.CFjcER6_.js";
23
23
  import { o as le } from "./style-map.llVFPd__.js";
24
24
  import { n as k } from "./when.Dr1es41R.js";
25
- import Se from "../components/space.js";
25
+ import Fe from "../components/space.js";
26
26
  import { g as Te } from "./template.ClovJacp.js";
27
27
  import { e as Ce } from "./class-map.BiVq-cVR.js";
28
28
  var v = /* @__PURE__ */ ((e) => (e.CortexPath = "Document.CortexPath", e.DocSubTypeIconColor = "DocSubTypeIconColor", e.DocSubTypeIconImageUrl = "DocSubTypeIconImageUrl", e.DocSubTypeIconName = "DocSubTypeIconName", e.DocSubTypeIsFontIcon = "DocSubTypeIsFontIcon", e.DocType = "CoreField.DocType", e.HasBrowserChildren = "Document.HasBrowserChildren", e.RepresentativeAssetId = "Document.DocumentDirectRepresentativeRID", e.TitleWithFallback = "CoreField.TitleWithFallback", e))(v || {});
@@ -33,15 +33,15 @@ async function Q({
33
33
  bearerToken: r,
34
34
  excludeVirtualFolders: i,
35
35
  folderId: a,
36
- includeDirectChild: f,
36
+ includeDirectChild: u,
37
37
  limit: m = De,
38
- searchTerm: p,
38
+ searchTerm: f,
39
39
  self: b,
40
40
  start: j = 0,
41
- token: ue
41
+ token: pe
42
42
  }) {
43
- let E = [], Z = f ?? !0;
44
- e && e.length > 0 && !a ? (E = e, b = !0, Z = !1) : a && (E = [a]);
43
+ let R = [], Z = u ?? !0;
44
+ e && e.length > 0 && !a ? (R = e, b = !0, Z = !1) : a && (R = [a]);
45
45
  try {
46
46
  return (await A.request({
47
47
  baseURL: t,
@@ -53,12 +53,12 @@ async function Q({
53
53
  IncludeDirectChild: Z,
54
54
  IncludeVirtualFolders: !i,
55
55
  Limit: m,
56
- ObjectRecordIDs: E,
57
- SeeThru: !!p,
56
+ ObjectRecordIDs: R,
57
+ SeeThru: !!f,
58
58
  Self: b,
59
59
  Start: j,
60
- Text: p || void 0,
61
- Token: ue || void 0
60
+ Text: f || void 0,
61
+ Token: pe || void 0
62
62
  },
63
63
  paramsSerializer: {
64
64
  indexes: null
@@ -66,21 +66,21 @@ async function Q({
66
66
  responseType: "json",
67
67
  transformResponse: [
68
68
  ...Array.isArray(A.defaults.transformResponse) ? A.defaults.transformResponse : [],
69
- (F, Le, L) => {
69
+ (S, Le, L) => {
70
70
  if (L !== void 0 && (L < 200 || L >= 300))
71
71
  return {
72
72
  data: [],
73
73
  hasMore: !1,
74
74
  totalCount: 0
75
75
  };
76
- if (!F || typeof F != "object")
76
+ if (!S || typeof S != "object")
77
77
  throw new Error("Invalid response format");
78
- const fe = F.contentItems?.length ?? 0;
78
+ const fe = S.contentItems?.length ?? 0;
79
79
  return {
80
- data: F.contentItems?.map(($) => {
81
- const M = $.fields[v.DocType] ?? "", z = $.fields[v.TitleWithFallback] ?? "", w = $.fields[v.CortexPath] ?? "", O = w.endsWith("/") && w.length > 1 ? w.slice(0, -1) : w;
82
- let J = O;
83
- (M === P.Album || M === P.ProjectDocument) && (J = O ? `${O}/${z}` : z);
80
+ data: S.contentItems?.map(($) => {
81
+ const M = $.fields[v.DocType] ?? "", O = $.fields[v.TitleWithFallback] ?? "", w = $.fields[v.CortexPath] ?? "", z = w.endsWith("/") && w.length > 1 ? w.slice(0, -1) : w;
82
+ let J = z;
83
+ (M === P.Album || M === P.ProjectDocument) && (J = z ? `${z}/${O}` : O);
84
84
  const K = $.fields[v.DocSubTypeIsFontIcon];
85
85
  return {
86
86
  docType: M,
@@ -92,11 +92,11 @@ async function Q({
92
92
  id: $.recordID,
93
93
  isFontIcon: K === void 0 ? void 0 : K === "1",
94
94
  representativeAssetId: $.fields[v.RepresentativeAssetId] ?? "",
95
- title: z
95
+ title: O
96
96
  };
97
97
  }) ?? [],
98
- hasMore: j + fe < F.totalCount,
99
- totalCount: F.totalCount
98
+ hasMore: j + fe < S.totalCount,
99
+ totalCount: S.totalCount
100
100
  };
101
101
  }
102
102
  ],
@@ -115,13 +115,13 @@ const oe = {
115
115
  toAttribute: (e) => e.join(" ")
116
116
  };
117
117
  var T = /* @__PURE__ */ ((e) => (e.Input = "input", e.Select = "select", e))(T || {}), _e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, h = (e, t, r, i) => {
118
- for (var a = i > 1 ? void 0 : i ? we(t, r) : t, f = e.length - 1, m; f >= 0; f--)
119
- (m = e[f]) && (a = (i ? m(t, r, a) : m(a)) || a);
118
+ for (var a = i > 1 ? void 0 : i ? we(t, r) : t, u = e.length - 1, m; u >= 0; u--)
119
+ (m = e[u]) && (a = (i ? m(t, r, a) : m(a)) || a);
120
120
  return i && a && _e(t, r, a), a;
121
121
  };
122
122
  let o = class extends N {
123
123
  constructor() {
124
- super(...arguments), this.localize = new H(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType = P.Story, this.name = "", this.representativeAssetId = "", this.selectedValue = "", this.selection = "single", this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.token = "", this.bearerToken = "", this.baseUrl = "", this.searchTerm = "", this.api = Q, this.excludeVirtualFolders = !1, this.url = "", this.icon = "", this.iconName = "", this.iconImageUrl = "", this.iconColor = "", this.isFontIcon = !1, this.data = null, this.hasMore = !1, this.loading = !1;
124
+ super(...arguments), this.localize = new q(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType = P.Story, this.name = "", this.representativeAssetId = "", this.selectedValue = "", this.selection = "single", this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.token = "", this.bearerToken = "", this.baseUrl = "", this.searchTerm = "", this.api = Q, this.excludeVirtualFolders = !1, this.url = "", this.icon = "", this.iconName = "", this.iconImageUrl = "", this.iconColor = "", this.isFontIcon = !1, this.data = null, this.hasMore = !1, this.loading = !1;
125
125
  }
126
126
  /**
127
127
  * This is used to render the cx-tree-item inside the cx-folder-item without the shadow root so that the cx-tree can query select the cx-tree-item inside
@@ -196,17 +196,17 @@ let o = class extends N {
196
196
  let a = !1;
197
197
  if (e)
198
198
  for (const m of this.currentRootIDsSet) {
199
- const p = R(m);
200
- if (!p.path.trim() || !p.id.trim())
199
+ const f = E(m);
200
+ if (!f.path.trim() || !f.id.trim())
201
201
  continue;
202
- const b = X(p.path);
202
+ const b = X(f.path);
203
203
  if (b.startsWith(r) && b !== r) {
204
204
  a = !0;
205
205
  break;
206
206
  }
207
207
  }
208
- const f = !i && a;
209
- this.treeItem.selected = i, await this.treeItem.updateComplete, this.treeItem.indeterminate = f;
208
+ const u = !i && a;
209
+ this.treeItem.selected = i, await this.treeItem.updateComplete, this.treeItem.indeterminate = u;
210
210
  }
211
211
  /**
212
212
  * Resolves the icon to render, in priority order:
@@ -232,14 +232,14 @@ let o = class extends N {
232
232
  render() {
233
233
  return g`<cx-tree-item class=${Ce({
234
234
  "folder-select-tree-item": !0
235
- })} data-id=${this.folderId} data-url=${u(this.url)} data-name=${u(this.name?.trim() || void 0)} data-representative-asset-id=${u(
235
+ })} data-id=${this.folderId} data-url=${p(this.url)} data-name=${p(this.name?.trim() || void 0)} data-representative-asset-id=${p(
236
236
  this.representativeAssetId || void 0
237
237
  )} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection === "multiple" ? this.currentRootIDsSet.has(
238
238
  V({ id: this.folderId, path: this.fullPath })
239
239
  ) : this.selectedValue === this.folderId} ?disabled-sync-checkboxes=${this.selection === "multiple"} .selectable=${this.selectable} @cx-lazy-load=${this.handleLazyLoad}><cx-space class="folder-select-tree-item__label" direction="horizontal" spacing="x-small" align-items="center" wrap="nowrap">${this.renderIcon()}<cx-line-clamp lines="1" class="folder-select-tree-item__title">${Te(this.name, this.searchTerm)}</cx-line-clamp></cx-space>${G(
240
240
  this.data || [],
241
241
  (e) => e.id,
242
- (e) => g`<cx-folder-select-tree-item slot="children" folder-id=${e.id} full-path=${e.fullPath} name=${e.title} doc-type=${e.docType} icon-name=${u(e.iconName || void 0)} icon-image-url=${u(e.iconImageUrl || void 0)} icon-color=${u(e.iconColor || void 0)} representative-asset-id=${e.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?has-children=${e.hasChildren} ?is-font-icon=${e.isFontIcon} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${u(e.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${e.url}></cx-folder-select-tree-item>`
242
+ (e) => g`<cx-folder-select-tree-item slot="children" folder-id=${e.id} full-path=${e.fullPath} name=${e.title} doc-type=${e.docType} icon-name=${p(e.iconName || void 0)} icon-image-url=${p(e.iconImageUrl || void 0)} icon-color=${p(e.iconColor || void 0)} representative-asset-id=${e.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?has-children=${e.hasChildren} ?is-font-icon=${e.isFontIcon} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${p(e.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${e.url}></cx-folder-select-tree-item>`
243
243
  )}
244
244
  ${k(
245
245
  this.hasMore,
@@ -252,11 +252,11 @@ o.dependencies = {
252
252
  "cx-button": ae,
253
253
  "cx-icon": re,
254
254
  "cx-line-clamp": se,
255
- "cx-space": Se,
256
- "cx-tree-item": S
255
+ "cx-space": Fe,
256
+ "cx-tree-item": F
257
257
  };
258
258
  h([
259
- q("cx-tree-item")
259
+ H("cx-tree-item")
260
260
  ], o.prototype, "treeItem", 2);
261
261
  h([
262
262
  s({ attribute: "folder-id", reflect: !0, type: String })
@@ -356,13 +356,13 @@ o = h([
356
356
  var ke = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, ne = (e) => {
357
357
  throw TypeError(e);
358
358
  }, d = (e, t, r, i) => {
359
- for (var a = i > 1 ? void 0 : i ? Ue(t, r) : t, f = e.length - 1, m; f >= 0; f--)
360
- (m = e[f]) && (a = (i ? m(t, r, a) : m(a)) || a);
359
+ for (var a = i > 1 ? void 0 : i ? Ue(t, r) : t, u = e.length - 1, m; u >= 0; u--)
360
+ (m = e[u]) && (a = (i ? m(t, r, a) : m(a)) || a);
361
361
  return i && a && ke(t, r, a), a;
362
362
  }, ce = (e, t, r) => t.has(e) || ne("Cannot " + r), I = (e, t, r) => (ce(e, t, "read from private field"), t.get(e)), B = (e, t, r) => t.has(e) ? ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Y = (e, t, r, i) => (ce(e, t, "write to private field"), t.set(e, r), r), _, U, C;
363
363
  let n = class extends N {
364
364
  constructor() {
365
- super(...arguments), this.localize = new H(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.allowedFolders = [], this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = Q, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], B(this, _, !1), B(this, U, 10), B(this, C, /* @__PURE__ */ new Set());
365
+ super(...arguments), this.localize = new q(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.allowedFolders = [], this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = Q, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], B(this, _, !1), B(this, U, 10), B(this, C, /* @__PURE__ */ new Set());
366
366
  }
367
367
  get empty() {
368
368
  return !this.loading && this.data.length === 0;
@@ -480,7 +480,7 @@ let n = class extends N {
480
480
  removeDeselectedRootIDs(e) {
481
481
  const t = new Set(
482
482
  [...this.currentRootIDsSet].filter(
483
- (r) => e.has(R(r).id)
483
+ (r) => e.has(E(r).id)
484
484
  )
485
485
  );
486
486
  t.size !== this.currentRootIDsSet.size && (this.currentRootIDsSet = t);
@@ -536,25 +536,25 @@ let n = class extends N {
536
536
  const e = new Set(
537
537
  this.selectedValue.split(/[\s,]+/).filter(Boolean)
538
538
  ), t = new Set(
539
- [...this.currentRootIDsSet].map((p) => R(p).id)
539
+ [...this.currentRootIDsSet].map((f) => E(f).id)
540
540
  ), r = /* @__PURE__ */ new Set([
541
541
  ...t,
542
542
  ...I(this, C)
543
543
  ]), i = [...e].filter(
544
- (p) => !r.has(p)
544
+ (f) => !r.has(f)
545
545
  );
546
546
  if (i.length === 0)
547
547
  return !1;
548
- i.forEach((p) => I(this, C).add(p)), this.preloading = !0;
548
+ i.forEach((f) => I(this, C).add(f)), this.preloading = !0;
549
549
  const a = [];
550
550
  if (await Promise.all(
551
- i.map(async (p) => {
551
+ i.map(async (f) => {
552
552
  try {
553
553
  const { data: b } = await this.api({
554
554
  baseUrl: this.baseUrl,
555
555
  bearerToken: this.bearerToken,
556
556
  excludeVirtualFolders: this.excludeVirtualFolders,
557
- folderId: p,
557
+ folderId: f,
558
558
  includeDirectChild: !1,
559
559
  limit: 1,
560
560
  searchTerm: "",
@@ -567,11 +567,11 @@ let n = class extends N {
567
567
  } catch {
568
568
  }
569
569
  })
570
- ), i.forEach((p) => I(this, C).delete(p)), this.preloading = I(this, C).size > 0, a.length === 0)
570
+ ), i.forEach((f) => I(this, C).delete(f)), this.preloading = I(this, C).size > 0, a.length === 0)
571
571
  return !1;
572
- const f = new Set(this.preloadedFolders.map((p) => p.id)), m = a.filter((p) => !f.has(p.id));
572
+ const u = new Set(this.preloadedFolders.map((f) => f.id)), m = a.filter((f) => !u.has(f.id));
573
573
  return m.length === 0 ? !1 : (this.preloadedFolders = [...this.preloadedFolders, ...m].sort(
574
- (p, b) => p.title.localeCompare(b.title)
574
+ (f, b) => f.title.localeCompare(b.title)
575
575
  ), this.seedSelectionFromValue(m));
576
576
  }
577
577
  /**
@@ -592,13 +592,13 @@ let n = class extends N {
592
592
  let i = !1;
593
593
  for (const a of e)
594
594
  if (a.fullPath && r.has(a.id)) {
595
- const f = V({ id: a.id, path: a.fullPath });
596
- this.currentRootIDsSet.has(f) || (this.currentRootIDsSet.add(f), i = !0);
595
+ const u = V({ id: a.id, path: a.fullPath });
596
+ this.currentRootIDsSet.has(u) || (this.currentRootIDsSet.add(u), i = !0);
597
597
  }
598
598
  return i ? (this.currentRootIDsSet = new Set(this.currentRootIDsSet), t || this.emit("cx-folder-select-selection-seeded"), !0) : !1;
599
599
  }
600
600
  renderFolder(e) {
601
- return g`<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=${u(e.fullPath ?? void 0)} icon-name=${u(e.iconName || void 0)} icon-image-url=${u(e.iconImageUrl || void 0)} icon-color=${u(e.iconColor || void 0)} name=${e.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${u(e.url ?? void 0)} ?has-children=${e.hasChildren} ?is-font-icon=${e.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`;
601
+ return g`<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=${p(e.fullPath ?? void 0)} icon-name=${p(e.iconName || void 0)} icon-image-url=${p(e.iconImageUrl || void 0)} icon-color=${p(e.iconColor || void 0)} name=${e.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(e.url ?? void 0)} ?has-children=${e.hasChildren} ?is-font-icon=${e.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`;
602
602
  }
603
603
  render() {
604
604
  return g`<cx-tree class="folder-select-tree" selection=${this.selection} force-on-change disabled-auto-expand disabled-sync-checkboxes @cx-selected-change=${this.handleSelectedChange} @cx-folder-select-children-loaded=${this.handleChildrenLoaded}>${k(
@@ -607,9 +607,9 @@ let n = class extends N {
607
607
  )}
608
608
  ${k(
609
609
  this.extraFolderData,
610
- () => g`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${u(this.extraFolderData?.docType ?? void 0)} folder-id=${u(this.extraFolderData?.id ?? void 0)} full-path=${u(this.extraFolderData?.fullPath ?? void 0)} icon=${this.extraFolderIcon} icon-name=${u(this.extraFolderData?.iconName || void 0)} icon-image-url=${u(
610
+ () => g`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${p(this.extraFolderData?.docType ?? void 0)} folder-id=${p(this.extraFolderData?.id ?? void 0)} full-path=${p(this.extraFolderData?.fullPath ?? void 0)} icon=${this.extraFolderIcon} icon-name=${p(this.extraFolderData?.iconName || void 0)} icon-image-url=${p(
611
611
  this.extraFolderData?.iconImageUrl || void 0
612
- )} icon-color=${u(this.extraFolderData?.iconColor || void 0)} 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=${u(this.extraFolderData?.url ?? void 0)} ?has-children=${this.extraFolderData?.hasChildren} ?is-font-icon=${this.extraFolderData?.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`
612
+ )} icon-color=${p(this.extraFolderData?.iconColor || void 0)} 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=${p(this.extraFolderData?.url ?? void 0)} ?has-children=${this.extraFolderData?.hasChildren} ?is-font-icon=${this.extraFolderData?.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`
613
613
  )}
614
614
  ${G(
615
615
  this.data,
@@ -623,7 +623,7 @@ let n = class extends N {
623
623
  ${G(
624
624
  this.preloadedFolders,
625
625
  (e) => `preloaded-${e.id}`,
626
- (e) => g`<cx-folder-select-tree-item style=${le({ display: "none" })} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${e.docType} folder-id=${e.id} full-path=${u(e.fullPath ?? void 0)} icon-name=${u(e.iconName || void 0)} icon-image-url=${u(e.iconImageUrl || void 0)} icon-color=${u(e.iconColor || void 0)} name=${e.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${u(e.url ?? void 0)} ?has-children=${!1} ?is-font-icon=${e.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`
626
+ (e) => g`<cx-folder-select-tree-item style=${le({ display: "none" })} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${e.docType} folder-id=${e.id} full-path=${p(e.fullPath ?? void 0)} icon-name=${p(e.iconName || void 0)} icon-image-url=${p(e.iconImageUrl || void 0)} icon-color=${p(e.iconColor || void 0)} name=${e.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(e.url ?? void 0)} ?has-children=${!1} ?is-font-icon=${e.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`
627
627
  )}</cx-tree>`;
628
628
  }
629
629
  };
@@ -724,7 +724,7 @@ d([
724
724
  y("token", { waitUntilFirstUpdate: !0 }),
725
725
  y("searchTerm", { waitUntilFirstUpdate: !0 }),
726
726
  y("excludeVirtualFolders", { waitUntilFirstUpdate: !0 }),
727
- Fe(500)
727
+ Se(500)
728
728
  ], n.prototype, "handleFetchFolders", 1);
729
729
  d([
730
730
  y("selectedValue", { waitUntilFirstUpdate: !0 })
@@ -733,16 +733,16 @@ n = d([
733
733
  W("cx-folder-select-tree")
734
734
  ], n);
735
735
  const Pe = ve`: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}`;
736
- var Ve = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, he = (e) => {
736
+ var Ve = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, he = (e) => {
737
737
  throw TypeError(e);
738
738
  }, c = (e, t, r, i) => {
739
- for (var a = i > 1 ? void 0 : i ? Re(t, r) : t, f = e.length - 1, m; f >= 0; f--)
740
- (m = e[f]) && (a = (i ? m(t, r, a) : m(a)) || a);
739
+ for (var a = i > 1 ? void 0 : i ? Ee(t, r) : t, u = e.length - 1, m; u >= 0; u--)
740
+ (m = e[u]) && (a = (i ? m(t, r, a) : m(a)) || a);
741
741
  return i && a && Ve(t, r, a), a;
742
- }, de = (e, t, r) => t.has(e) || he("Cannot " + r), ee = (e, t, r) => (de(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ee = (e, t, r) => t.has(e) ? he("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), te = (e, t, r, i) => (de(e, t, "write to private field"), t.set(e, r), r), D;
742
+ }, de = (e, t, r) => t.has(e) || he("Cannot " + r), ee = (e, t, r) => (de(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Re = (e, t, r) => t.has(e) ? he("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), te = (e, t, r, i) => (de(e, t, "write to private field"), t.set(e, r), r), D;
743
743
  let l = class extends N {
744
744
  constructor() {
745
- super(), this.localize = new H(this), this.minQueryLength = 1, this.selection = "single", this.variant = T.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = Q, this.required = !1, this.form = void 0, this.excludeVirtualFolders = !1, this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.autoPageSize = !1, this.firstFetchCallback = null, this.searchTerm = "", this.treeLoading = !1, Ee(this, D), this.selectGetOptionValue = this.selectGetOptionValue.bind(this), this.selectGetOptionLabel = this.selectGetOptionLabel.bind(this), this.selectGetOptionSelected = this.selectGetOptionSelected.bind(this), this.selectFilterCallback = this.selectFilterCallback.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
745
+ super(), this.localize = new q(this), this.minQueryLength = 1, this.selection = "single", this.variant = T.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = Q, this.required = !1, this.form = void 0, this.excludeVirtualFolders = !1, this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.autoPageSize = !1, this.firstFetchCallback = null, this.searchTerm = "", this.treeLoading = !1, Re(this, D), this.selectGetOptionValue = this.selectGetOptionValue.bind(this), this.selectGetOptionLabel = this.selectGetOptionLabel.bind(this), this.selectGetOptionSelected = this.selectGetOptionSelected.bind(this), this.selectFilterCallback = this.selectFilterCallback.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
746
746
  }
747
747
  updateWrappedApi() {
748
748
  if (!this.api) {
@@ -819,7 +819,7 @@ let l = class extends N {
819
819
  * reports a selection change.
820
820
  */
821
821
  syncValueFromTree() {
822
- this.treeEl && (this.value = [...this.treeEl.currentRootIDsSet].map((e) => R(e).id).filter(Boolean).join(" "));
822
+ this.treeEl && (this.value = [...this.treeEl.currentRootIDsSet].map((e) => E(e).id).filter(Boolean).join(" "));
823
823
  }
824
824
  /**
825
825
  * cx-select's own `value` only reflects our `value` correctly the very
@@ -860,17 +860,17 @@ let l = class extends N {
860
860
  this.syncValueFromTree(), this.syncSelectValue(), this.selectEl.handleDefaultSlotChange(), await this.selectEl.updateComplete, this.searchTerm = e, this.selectEl.displayLabel = this.searchTerm;
861
861
  }
862
862
  selectGetOptionValue(e) {
863
- return !e || !(e instanceof S) ? this.value : e.dataset.id || this.value;
863
+ return !e || !(e instanceof F) ? this.value : e.dataset.id || this.value;
864
864
  }
865
865
  selectGetOptionLabel(e) {
866
- return !e || !(e instanceof S) ? this.selectedLabel : e.dataset.name || this.selectedLabel;
866
+ return !e || !(e instanceof F) ? this.selectedLabel : e.dataset.name || this.selectedLabel;
867
867
  }
868
868
  selectGetOptionSelected(e) {
869
- if (!(!e || !(e instanceof S)))
869
+ if (!(!e || !(e instanceof F)))
870
870
  return e.selected;
871
871
  }
872
872
  selectFilterCallback(e) {
873
- return !(!e || !(e instanceof S));
873
+ return !(!e || !(e instanceof F));
874
874
  }
875
875
  /**
876
876
  * Custom tag renderer for cx-select multi mode. Identical visuals to the
@@ -882,13 +882,18 @@ let l = class extends N {
882
882
  * `CxTreeItem` options).
883
883
  */
884
884
  selectGetTag(e) {
885
+ const t = e.dataset.id;
885
886
  return g`<cx-tag part="tag" exportparts="
886
887
  base:tag__base,
887
888
  content:tag__content,
888
889
  remove-button:tag__remove-button,
889
890
  remove-button__base:tag__remove-button__base
890
- " removable @cx-remove=${(r) => {
891
- r.stopPropagation(), e instanceof S && (e.selected = !1, this.emitSelectionChangeFromTree());
891
+ " removable @cx-remove=${(i) => {
892
+ i.stopPropagation();
893
+ const u = (t ? this.treeEl?.querySelector(
894
+ `cx-tree-item[data-id="${CSS.escape(t)}"]`
895
+ ) : null) ?? e;
896
+ u instanceof F && (u.selected = !1, this.emitSelectionChangeFromTree());
892
897
  }}><cx-line-clamp lines="1">${this.selectGetOptionLabel(e)}</cx-line-clamp></cx-tag>`;
893
898
  }
894
899
  updateFunctionProps() {
@@ -933,10 +938,10 @@ l.dependencies = {
933
938
  "cx-tag": ge
934
939
  };
935
940
  c([
936
- q("cx-select")
941
+ H("cx-select")
937
942
  ], l.prototype, "selectEl", 2);
938
943
  c([
939
- q("cx-folder-select-tree")
944
+ H("cx-folder-select-tree")
940
945
  ], l.prototype, "treeEl", 2);
941
946
  c([
942
947
  s({ attribute: "min-query-length", reflect: !0, type: Number })
@@ -1,4 +1,4 @@
1
- import { s as m } from "./dom.C5aVLhKS.js";
1
+ import { s as m } from "./dom.gRV2cDjL.js";
2
2
  const n = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakSet(), f = /* @__PURE__ */ new WeakMap();
3
3
  class v {
4
4
  constructor(e, o) {
@@ -1,4 +1,4 @@
1
- import { _ as d, g as On, s as Hn, o as Nn, n as Pn, a as Vn, b as Rn, c as Yt, d as zn, aU as it, l as Tt, j as qn, i as Bn, p as Zn, x as Xn } from "./mermaid.core.Dspbw7Ig.js";
1
+ import { _ as d, g as On, s as Hn, o as Nn, n as Pn, a as Vn, b as Rn, c as Yt, d as zn, aU as it, l as Tt, j as qn, i as Bn, p as Zn, x as Xn } from "./mermaid.core.CPVTuCpJ.js";
2
2
  import { a as oe } from "./_commonjsHelpers.DQNKXVTB.js";
3
3
  import { R as on, e as Gn, f as cn, g as un, C as ln, n as ue, h as jn } from "./index.CrhRU5m8.js";
4
4
  import "./transform.BuqENXeT.js";
@@ -1,6 +1,6 @@
1
- import { I as le } from "./chunk-2Q5K7J3B.Dy1Z-bMH.js";
2
- import { p as he } from "./chunk-JWPE2WC7.BV0i4LDu.js";
3
- import { _ as h, o as $e, n as fe, s as ge, g as ue, a as ye, b as xe, y as J, l as w, c as q, x as me, z as pe, p as be, j as B, A as we, B as ke, D as ve } from "./mermaid.core.Dspbw7Ig.js";
1
+ import { I as le } from "./chunk-2Q5K7J3B.DR95kRDU.js";
2
+ import { p as he } from "./chunk-JWPE2WC7.Bw21g4Xj.js";
3
+ import { _ as h, o as $e, n as fe, s as ge, g as ue, a as ye, b as xe, y as J, l as w, c as q, x as me, z as pe, p as be, j as B, A as we, B as ke, D as ve } from "./mermaid.core.CPVTuCpJ.js";
4
4
  import { p as Ce } from "./cynefin-VYW2F7L2.c7H5z9nQ.js";
5
5
  import "./index.CrhRU5m8.js";
6
6
  import "./transform.BuqENXeT.js";
@@ -1,4 +1,4 @@
1
- import { _ as e, l as s, E as o, d as i } from "./mermaid.core.Dspbw7Ig.js";
1
+ import { _ as e, l as s, E as o, d as i } from "./mermaid.core.CPVTuCpJ.js";
2
2
  import { p as g } from "./cynefin-VYW2F7L2.c7H5z9nQ.js";
3
3
  var d = {
4
4
  parse: /* @__PURE__ */ e(async (r) => {
@@ -6,7 +6,7 @@ var d = {
6
6
  s.debug(a);
7
7
  }, "parse")
8
8
  }, p = {
9
- version: "11.16.0"
9
+ version: "11.16.1"
10
10
  }, v = /* @__PURE__ */ e(() => p.version, "getVersion"), m = {
11
11
  getVersion: v
12
12
  }, c = /* @__PURE__ */ e((r, a, n) => {
@@ -3,7 +3,7 @@ import { c as ut } from "./component.styles.CRO4Odto.js";
3
3
  import { f as ot } from "./form-control.styles.CaGWmeAS.js";
4
4
  import { c as lt } from "./custom-element.L4WJXn1j.js";
5
5
  import { d as ht } from "./default-value.COZopaet.js";
6
- import { F as pt } from "./form.CP9KLGjF.js";
6
+ import { F as pt } from "./form.DSsy3Fcy.js";
7
7
  import { L as ct } from "./i18n.DbXTTLXx.js";
8
8
  import { H as dt } from "./slot.j5oheLJC.js";
9
9
  import { w as V } from "./watch.DJF5K-8U.js";
@@ -1,4 +1,4 @@
1
- import { _ as o, c as ot, L as ut, E as dt, a4 as yt, p as ft, j as pt, n as it, a as gt, b as kt, g as mt, s as wt, o as _t, d as bt } from "./mermaid.core.Dspbw7Ig.js";
1
+ import { _ as o, c as ot, L as ut, E as dt, a4 as yt, p as ft, j as pt, n as it, a as gt, b as kt, g as mt, s as wt, o as _t, d as bt } from "./mermaid.core.CPVTuCpJ.js";
2
2
  var J = function() {
3
3
  var e = /* @__PURE__ */ o(function(T, t, s, i) {
4
4
  for (s = s || {}, i = T.length; i--; s[T[i]] = t) ;
@@ -1,6 +1,6 @@
1
- import { g as gt } from "./chunk-5VM5RSS4.D0-lddDM.js";
2
- import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS.BbIrVi3j.js";
3
- import { _ as s, g as _t, s as vt, a as bt, b as wt, o as Tt, n as St, c as R, d as $t, p as Mt } from "./mermaid.core.Dspbw7Ig.js";
1
+ import { g as gt } from "./chunk-5VM5RSS4.DjAk9wN1.js";
2
+ import { a as mt, g as lt, h as xt, d as kt } from "./chunk-2GRJ4B5K.r19kfrEk.js";
3
+ import { _ as s, g as _t, s as vt, a as bt, b as wt, o as Tt, n as St, c as R, d as $t, p as Mt } from "./mermaid.core.CPVTuCpJ.js";
4
4
  import "./index.CrhRU5m8.js";
5
5
  import "./transform.BuqENXeT.js";
6
6
  import { s as X } from "./select.C6_sM3Pr.js";
@@ -1,5 +1,5 @@
1
- import { _ as o, l as te, c as U, E as fe, Y as ye, $ as be, a0 as me, V as Ee, B as Y, h as F, H as _e, J as ke, R as Se, S as ce, T as le } from "./mermaid.core.Dspbw7Ig.js";
2
- import { g as Ne } from "./chunk-5VM5RSS4.D0-lddDM.js";
1
+ import { _ as o, l as te, c as U, E as fe, Y as ye, $ as be, a0 as me, V as Ee, B as Y, h as F, H as _e, J as ke, R as Se, S as ce, T as le } from "./mermaid.core.CPVTuCpJ.js";
2
+ import { g as Ne } from "./chunk-5VM5RSS4.DjAk9wN1.js";
3
3
  var $ = function() {
4
4
  var e = /* @__PURE__ */ o(function(O, s, n, r) {
5
5
  for (n = n || {}, r = O.length; r--; n[O[r]] = s) ;