@orangelogic/design-system 2.162.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 (285) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
  33. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  34. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  35. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  36. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  37. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  38. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  39. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  40. package/library/chunks/channel.s_XjcUYI.js +5 -0
  41. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  42. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  43. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  44. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  45. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  46. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  47. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  48. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  49. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  50. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  51. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  52. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  53. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  54. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
  55. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  56. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  57. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  58. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  124. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  125. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  126. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  127. package/library/chunks/range.DdOGybNB.js +9 -0
  128. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  129. package/library/chunks/sankey.BR94A-8L.js +294 -0
  130. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  131. package/library/chunks/select.C6_sM3Pr.js +7 -0
  132. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  133. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  134. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  135. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  136. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  137. package/library/chunks/step.almIqwJ6.js +51 -0
  138. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  139. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  140. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  141. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  142. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  143. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  144. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  145. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  146. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  147. package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
  148. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  149. package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
  150. package/library/chunks/value.BXEGBVFV.js +44 -0
  151. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  152. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  153. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  154. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  155. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  156. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  157. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  158. package/library/components/alert.js +2 -2
  159. package/library/components/am-chart.js +3 -3
  160. package/library/components/animated-image.js +2 -2
  161. package/library/components/animation.js +2 -2
  162. package/library/components/array-line-clamp.js +1 -1
  163. package/library/components/asset-link-format.js +8 -7
  164. package/library/components/atoms.js +29 -29
  165. package/library/components/audio.js +3 -3
  166. package/library/components/avatar.js +2 -2
  167. package/library/components/border-input-group.js +1 -1
  168. package/library/components/breadcrumb-item.js +1 -1
  169. package/library/components/breadcrumb.js +1 -1
  170. package/library/components/button.js +3 -3
  171. package/library/components/checkbox.js +195 -18
  172. package/library/components/color-picker.js +4 -4
  173. package/library/components/color-swatch-group.js +5 -5
  174. package/library/components/color-swatch.js +2 -2
  175. package/library/components/confirm-popover.js +3 -3
  176. package/library/components/copy-button.js +2 -2
  177. package/library/components/corner-position-input-group.js +2 -2
  178. package/library/components/cropper.js +4 -4
  179. package/library/components/date-calendar.js +1 -1
  180. package/library/components/details.js +2 -2
  181. package/library/components/dialog.js +3 -3
  182. package/library/components/diff.js +1 -1
  183. package/library/components/divider.js +1 -1
  184. package/library/components/document-viewer.js +3 -3
  185. package/library/components/dot-pagination.js +2 -2
  186. package/library/components/drawer.js +3 -3
  187. package/library/components/dropdown.js +2 -2
  188. package/library/components/dynamic-select.js +6 -6
  189. package/library/components/e-chart.js +1 -1
  190. package/library/components/element-clamp.js +2 -2
  191. package/library/components/file-on-demand.js +350 -374
  192. package/library/components/folder-select.js +5 -5
  193. package/library/components/format-time.js +2 -2
  194. package/library/components/grid-item.js +1 -1
  195. package/library/components/header.js +2 -2
  196. package/library/components/hub-connection.js +2 -2
  197. package/library/components/icon-button.js +2 -2
  198. package/library/components/icon.js +2 -2
  199. package/library/components/iframe.js +2 -2
  200. package/library/components/image-comparer.js +2 -2
  201. package/library/components/image.js +3 -3
  202. package/library/components/include.js +1 -1
  203. package/library/components/input.js +3 -3
  204. package/library/components/line-clamp.js +1 -1
  205. package/library/components/markdown.js +11 -2704
  206. package/library/components/masonry.js +76 -73
  207. package/library/components/menu-item.js +2 -2
  208. package/library/components/molecules.js +3 -3
  209. package/library/components/mutation-observer.js +1 -1
  210. package/library/components/option.js +3 -3
  211. package/library/components/organisms.js +2 -2
  212. package/library/components/padding-input-group.js +1 -1
  213. package/library/components/pagination.js +6 -6
  214. package/library/components/position-picker.js +25 -25
  215. package/library/components/qr-code.js +1 -1
  216. package/library/components/radio-button.js +1 -1
  217. package/library/components/radio-card.js +1 -1
  218. package/library/components/radio-group.js +1 -1
  219. package/library/components/radio.js +2 -2
  220. package/library/components/range.js +1 -1
  221. package/library/components/rating.js +2 -2
  222. package/library/components/resize-observer.js +1 -1
  223. package/library/components/select.js +3 -3
  224. package/library/components/shadow-input-group.js +1 -1
  225. package/library/components/share-option-list.js +2 -2
  226. package/library/components/sidebar.js +3 -3
  227. package/library/components/size-input-group.js +3 -3
  228. package/library/components/split-panel.js +1 -1
  229. package/library/components/step.js +1 -1
  230. package/library/components/stepper-wizard.js +1 -1
  231. package/library/components/stepper.js +1 -1
  232. package/library/components/switch.js +1 -1
  233. package/library/components/tab-group.js +4 -4
  234. package/library/components/tab-panel.js +1 -1
  235. package/library/components/tab.js +2 -2
  236. package/library/components/tag.js +1 -1
  237. package/library/components/textarea.js +1 -1
  238. package/library/components/timecode.js +1 -1
  239. package/library/components/tooltip.js +1 -1
  240. package/library/components/tree-item.js +4 -4
  241. package/library/components/tree.js +2 -2
  242. package/library/components/typeface.js +2 -2
  243. package/library/components/types.js +122327 -120686
  244. package/library/components/video.js +2 -2
  245. package/library/package.json +2 -1
  246. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  247. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  248. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  249. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  250. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  251. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  252. package/library/packages/events/src/events.d.ts +1 -0
  253. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  254. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  255. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  256. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  257. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  258. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  259. package/library/packages/molecules/src/index.d.ts +1 -0
  260. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  261. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  262. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  263. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  264. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  265. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  266. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  267. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  268. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  269. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  270. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  271. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  272. package/library/packages/types/src/tree-item.d.ts +12 -0
  273. package/library/react-web-component.d.ts +86 -8
  274. package/library/utils.js +64 -65
  275. package/package.json +2 -1
  276. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  277. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  278. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  279. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  280. package/library/chunks/content-builder.BU8X7I6V.js +0 -60
  281. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  282. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  283. package/library/chunks/index.DU0XUO4k.js +0 -176
  284. package/library/chunks/transformation.D1alV_s4.js +0 -189
  285. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -1,21 +1,21 @@
1
- import { C as ee } from "./icon.mxNZ85k0.js";
2
- import { C as fe } from "./input.BcyLZUmv.js";
1
+ import { C as ee } from "./icon.D5iM9wXS.js";
2
+ import { C as fe } from "./input.DOorVTYZ.js";
3
3
  import te from "../components/line-clamp.js";
4
4
  import me from "../components/select.js";
5
5
  import ye from "../components/tag.js";
6
- import { C as v, a as xe } from "./tree.C2dPd6gt.js";
6
+ import { C as S, a as ge } from "./tree.vn5sHbdt.js";
7
7
  import { n as s, C as B } from "./lib-cortex-element.CVMmyPMC.js";
8
- import { h as L, F as ge, A as be } from "./endpoints.CwgTrs4A.js";
9
- import { M as P } from "./asset-link-format.QzzboHHE.js";
8
+ import { h as M, F as xe, A as be } from "./endpoints.CwgTrs4A.js";
9
+ import { M as U } from "./asset-link-format.ClaYu_v8.js";
10
10
  import { c as re } from "./component.styles.CRO4Odto.js";
11
11
  import { c as N } from "./custom-element.L4WJXn1j.js";
12
12
  import { L as W } from "./i18n.Bchq8v1d.js";
13
- import { w as m } from "./watch.DOt4Mabe.js";
13
+ import { w as m } from "./watch.DJF5K-8U.js";
14
14
  import { x as y, i as $e } from "./lit-element.jLBm65_O.js";
15
- import { r as x } from "./state.CSDxrqLd.js";
15
+ import { r as g } from "./state.CSDxrqLd.js";
16
16
  import { e as se } from "./query.BBf1UFkC.js";
17
17
  import { r as ve } from "./choose.BTbF6BAn.js";
18
- import { C as ie } from "./button.8syoJXYs.js";
18
+ import { C as ie } from "./button.DGyqdBou.js";
19
19
  import { d as Se } from "./debounce.DaHuiSGU.js";
20
20
  import { g as A, p as J, e as Fe } from "./string.BhJ0Zogu.js";
21
21
  import { o as p } from "./if-defined.BRoBj_Rp.js";
@@ -36,14 +36,14 @@ async function q({
36
36
  includeDirectChild: u,
37
37
  limit: f = De,
38
38
  searchTerm: $,
39
- self: T,
39
+ self: C,
40
40
  start: H = 0,
41
41
  token: de
42
42
  }) {
43
- let U = [], Q = u ?? !0;
44
- e && e.length > 0 && !i ? (U = e, T = !0, Q = !1) : i && (U = [i]);
43
+ let P = [], Q = u ?? !0;
44
+ e && e.length > 0 && !i ? (P = e, C = !0, Q = !1) : i && (P = [i]);
45
45
  try {
46
- return (await L.request({
46
+ return (await M.request({
47
47
  baseURL: t,
48
48
  headers: {
49
49
  Authorization: `Bearer ${r}`
@@ -53,9 +53,9 @@ async function q({
53
53
  IncludeDirectChild: Q,
54
54
  IncludeVirtualFolders: !l,
55
55
  Limit: f,
56
- ObjectRecordIDs: U,
56
+ ObjectRecordIDs: P,
57
57
  SeeThru: !!$,
58
- Self: T,
58
+ Self: C,
59
59
  Start: H,
60
60
  Text: $ || void 0,
61
61
  Token: de || void 0
@@ -65,42 +65,42 @@ async function q({
65
65
  },
66
66
  responseType: "json",
67
67
  transformResponse: [
68
- ...Array.isArray(L.defaults.transformResponse) ? L.defaults.transformResponse : [],
69
- (S, Re, E) => {
68
+ ...Array.isArray(M.defaults.transformResponse) ? M.defaults.transformResponse : [],
69
+ (F, Re, E) => {
70
70
  if (E !== void 0 && (E < 200 || E >= 300))
71
71
  return {
72
72
  data: [],
73
73
  hasMore: !1,
74
74
  totalCount: 0
75
75
  };
76
- if (!S || typeof S != "object")
76
+ if (!F || typeof F != "object")
77
77
  throw new Error("Invalid response format");
78
- const ue = S.contentItems?.length ?? 0;
78
+ const ue = F.contentItems?.length ?? 0;
79
79
  return {
80
- data: S.contentItems?.map((g) => {
81
- const O = g.fields[b.DocType] ?? "", R = g.fields[b.TitleWithFallback] ?? "", w = g.fields[b.CortexPath] ?? "", M = w.endsWith("/") && w.length > 1 ? w.slice(0, -1) : w;
82
- let j = M;
83
- (O === P.Album || O === P.ProjectDocument) && (j = M ? `${M}/${R}` : R);
84
- const Z = g.fields[b.DocSubTypeIsFontIcon];
80
+ data: F.contentItems?.map((x) => {
81
+ const O = x.fields[b.DocType] ?? "", R = x.fields[b.TitleWithFallback] ?? "", w = x.fields[b.CortexPath] ?? "", L = w.endsWith("/") && w.length > 1 ? w.slice(0, -1) : w;
82
+ let j = L;
83
+ (O === U.Album || O === U.ProjectDocument) && (j = L ? `${L}/${R}` : R);
84
+ const Z = x.fields[b.DocSubTypeIsFontIcon];
85
85
  return {
86
86
  docType: O,
87
87
  fullPath: j,
88
- hasChildren: g.fields[b.HasBrowserChildren] === "1",
89
- iconColor: g.fields[b.DocSubTypeIconColor],
90
- iconImageUrl: g.fields[b.DocSubTypeIconImageUrl],
91
- iconName: g.fields[b.DocSubTypeIconName],
92
- id: g.recordID,
88
+ hasChildren: x.fields[b.HasBrowserChildren] === "1",
89
+ iconColor: x.fields[b.DocSubTypeIconColor],
90
+ iconImageUrl: x.fields[b.DocSubTypeIconImageUrl],
91
+ iconName: x.fields[b.DocSubTypeIconName],
92
+ id: x.recordID,
93
93
  isFontIcon: Z === void 0 ? void 0 : Z === "1",
94
- representativeAssetId: g.fields[b.RepresentativeAssetId] ?? "",
94
+ representativeAssetId: x.fields[b.RepresentativeAssetId] ?? "",
95
95
  title: R
96
96
  };
97
97
  }) ?? [],
98
- hasMore: H + ue < S.totalCount,
99
- totalCount: S.totalCount
98
+ hasMore: H + ue < F.totalCount,
99
+ totalCount: F.totalCount
100
100
  };
101
101
  }
102
102
  ],
103
- url: ge
103
+ url: xe
104
104
  })).data;
105
105
  } catch {
106
106
  return {
@@ -114,14 +114,14 @@ const ae = {
114
114
  fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
115
115
  toAttribute: (e) => e.join(" ")
116
116
  };
117
- var C = /* @__PURE__ */ ((e) => (e.Input = "input", e.Select = "select", e))(C || {}), _e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, c = (e, t, r, l) => {
117
+ var D = /* @__PURE__ */ ((e) => (e.Input = "input", e.Select = "select", e))(D || {}), _e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, h = (e, t, r, l) => {
118
118
  for (var i = l > 1 ? void 0 : l ? we(t, r) : t, u = e.length - 1, f; u >= 0; u--)
119
119
  (f = e[u]) && (i = (l ? f(t, r, i) : f(i)) || i);
120
120
  return l && i && _e(t, r, i), i;
121
121
  };
122
122
  let a = class extends B {
123
123
  constructor() {
124
- super(...arguments), this.localize = new W(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 W(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType = U.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
@@ -199,8 +199,8 @@ let a = class extends B {
199
199
  const $ = Fe(f);
200
200
  if (!$.path.trim() || !$.id.trim())
201
201
  continue;
202
- const T = J($.path);
203
- if (T.startsWith(r) && T !== r) {
202
+ const C = J($.path);
203
+ if (C.startsWith(r) && C !== r) {
204
204
  i = !0;
205
205
  break;
206
206
  }
@@ -226,7 +226,7 @@ let a = class extends B {
226
226
  return y`<cx-icon class="folder-select-tree__item__icon" src=${this.iconImageUrl} style=${e}></cx-icon>`;
227
227
  if (!this.icon && this.isFontIcon !== !1 && this.iconName)
228
228
  return y`<cx-icon class="folder-select-tree__item__icon" name=${this.iconName} variant="fa" style=${e}></cx-icon>`;
229
- const t = this.docType === P.Album ? "outlined" : "filled";
229
+ const t = this.docType === U.Album ? "outlined" : "filled";
230
230
  return y`<cx-icon class="folder-select-tree__item__icon" name=${this.icon || "folder"} variant=${t}></cx-icon>`;
231
231
  }
232
232
  render() {
@@ -251,104 +251,104 @@ a.dependencies = {
251
251
  "cx-icon": ee,
252
252
  "cx-line-clamp": te,
253
253
  "cx-space": Ie,
254
- "cx-tree-item": v
254
+ "cx-tree-item": S
255
255
  };
256
- c([
256
+ h([
257
257
  se("cx-tree-item")
258
258
  ], a.prototype, "treeItem", 2);
259
- c([
259
+ h([
260
260
  s({ attribute: "folder-id", reflect: !0, type: String })
261
261
  ], a.prototype, "folderId", 2);
262
- c([
262
+ h([
263
263
  s({ attribute: "has-children", reflect: !0, type: Boolean })
264
264
  ], a.prototype, "hasChildren", 2);
265
- c([
265
+ h([
266
266
  s({ reflect: !0, type: Boolean })
267
267
  ], a.prototype, "selectable", 2);
268
- c([
268
+ h([
269
269
  s({ attribute: "full-path", reflect: !0, type: String })
270
270
  ], a.prototype, "fullPath", 2);
271
- c([
271
+ h([
272
272
  s({ attribute: "doc-type", reflect: !0, type: String })
273
273
  ], a.prototype, "docType", 2);
274
- c([
274
+ h([
275
275
  s({ reflect: !0, type: String })
276
276
  ], a.prototype, "name", 2);
277
- c([
277
+ h([
278
278
  s({
279
279
  attribute: "representative-asset-id",
280
280
  reflect: !0,
281
281
  type: String
282
282
  })
283
283
  ], a.prototype, "representativeAssetId", 2);
284
- c([
284
+ h([
285
285
  s({ attribute: "selected-value", reflect: !0, type: String })
286
286
  ], a.prototype, "selectedValue", 2);
287
- c([
287
+ h([
288
288
  s({ attribute: "selection", reflect: !0, type: String })
289
289
  ], a.prototype, "selection", 2);
290
- c([
290
+ h([
291
291
  s({ attribute: !1, type: Object })
292
292
  ], a.prototype, "currentRootIDsSet", 2);
293
- c([
293
+ h([
294
294
  s({ attribute: !1, type: Array })
295
295
  ], a.prototype, "removedIDs", 2);
296
- c([
296
+ h([
297
297
  s({ reflect: !0, type: String })
298
298
  ], a.prototype, "token", 2);
299
- c([
299
+ h([
300
300
  s({ attribute: "bearer-token", reflect: !0, type: String })
301
301
  ], a.prototype, "bearerToken", 2);
302
- c([
302
+ h([
303
303
  s({ attribute: "base-url", reflect: !0, type: String })
304
304
  ], a.prototype, "baseUrl", 2);
305
- c([
305
+ h([
306
306
  s({ attribute: "search-term", reflect: !0, type: String })
307
307
  ], a.prototype, "searchTerm", 2);
308
- c([
308
+ h([
309
309
  s({ type: Function })
310
310
  ], a.prototype, "api", 2);
311
- c([
311
+ h([
312
312
  s({
313
313
  attribute: "exclude-virtual-folders",
314
314
  reflect: !0,
315
315
  type: Boolean
316
316
  })
317
317
  ], a.prototype, "excludeVirtualFolders", 2);
318
- c([
318
+ h([
319
319
  s({ reflect: !0, type: String })
320
320
  ], a.prototype, "url", 2);
321
- c([
321
+ h([
322
322
  s({ reflect: !0, type: String })
323
323
  ], a.prototype, "icon", 2);
324
- c([
324
+ h([
325
325
  s({ attribute: "icon-name", reflect: !0, type: String })
326
326
  ], a.prototype, "iconName", 2);
327
- c([
327
+ h([
328
328
  s({ attribute: "icon-image-url", reflect: !0, type: String })
329
329
  ], a.prototype, "iconImageUrl", 2);
330
- c([
330
+ h([
331
331
  s({ attribute: "icon-color", reflect: !0, type: String })
332
332
  ], a.prototype, "iconColor", 2);
333
- c([
333
+ h([
334
334
  s({ attribute: "is-font-icon", reflect: !0, type: Boolean })
335
335
  ], a.prototype, "isFontIcon", 2);
336
- c([
337
- x()
336
+ h([
337
+ g()
338
338
  ], a.prototype, "data", 2);
339
- c([
340
- x()
339
+ h([
340
+ g()
341
341
  ], a.prototype, "hasMore", 2);
342
- c([
343
- x()
342
+ h([
343
+ g()
344
344
  ], a.prototype, "loading", 2);
345
- c([
345
+ h([
346
346
  m("currentRootIDsSet"),
347
347
  m("removedIDs"),
348
348
  m("fullPath"),
349
349
  m("folderId")
350
350
  ], a.prototype, "syncBoxes", 1);
351
- a = c([
351
+ a = h([
352
352
  N("cx-folder-select-tree-item")
353
353
  ], a);
354
354
  var ke = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, oe = (e) => {
@@ -357,10 +357,10 @@ var ke = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, oe = (e) =
357
357
  for (var i = l > 1 ? void 0 : l ? Ve(t, r) : t, u = e.length - 1, f; u >= 0; u--)
358
358
  (f = e[u]) && (i = (l ? f(t, r, i) : f(i)) || i);
359
359
  return l && i && ke(t, r, i), i;
360
- }, ne = (e, t, r) => t.has(e) || oe("Cannot " + r), F = (e, t, r) => (ne(e, t, "read from private field"), t.get(e)), z = (e, t, r) => t.has(e) ? oe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), K = (e, t, r, l) => (ne(e, t, "write to private field"), t.set(e, r), r), D, V, _;
360
+ }, ne = (e, t, r) => t.has(e) || oe("Cannot " + r), v = (e, t, r) => (ne(e, t, "read from private field"), t.get(e)), z = (e, t, r) => t.has(e) ? oe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), K = (e, t, r, l) => (ne(e, t, "write to private field"), t.set(e, r), r), _, V, I;
361
361
  let n = class extends B {
362
362
  constructor() {
363
- super(...arguments), this.localize = new W(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.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], z(this, D, !1), z(this, V, 10), z(this, _, /* @__PURE__ */ new Set());
363
+ super(...arguments), this.localize = new W(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 = [], z(this, _, !1), z(this, V, 10), z(this, I, /* @__PURE__ */ new Set());
364
364
  }
365
365
  get empty() {
366
366
  return !this.loading && this.data.length === 0;
@@ -385,6 +385,13 @@ let n = class extends B {
385
385
  runFirstUpdated() {
386
386
  this.searchTerm = "", this.autoPageSize && K(this, V, this.computeInitialLimit()), this.handleFetchFolders();
387
387
  }
388
+ handleLoadingStateChange() {
389
+ this.emit("cx-folder-select-loading-change", {
390
+ detail: {
391
+ loading: this.loading || this.preloading
392
+ }
393
+ });
394
+ }
388
395
  async handleExtraFolderIdChange() {
389
396
  if (!this.extraFolderId || !this.api) {
390
397
  this.extraFolderData = null;
@@ -448,10 +455,10 @@ let n = class extends B {
448
455
  }
449
456
  async handleFetchFolders() {
450
457
  const { data: e, hasMore: t } = await this.fetchFolders();
451
- F(this, D) || (e.length > 0 && this.firstFetchCallback?.(e), K(this, D, !0)), this.data = e, this.hasMore = t, this.loading = !1, this.seedSelectionFromValue(e), this.removePreloadedFolders(e), await this.preloadSelectedFolders();
458
+ v(this, _) || (e.length > 0 && this.firstFetchCallback?.(e), K(this, _, !0)), this.data = e, this.hasMore = t, this.loading = !1, this.seedSelectionFromValue(e), this.removePreloadedFolders(e), await this.preloadSelectedFolders();
452
459
  }
453
460
  async handleSelectedValueChange() {
454
- if (!F(this, D))
461
+ if (!v(this, _))
455
462
  return;
456
463
  const e = new Set(
457
464
  this.selectedValue.split(/[\s,]+/).filter(Boolean)
@@ -476,7 +483,7 @@ let n = class extends B {
476
483
  bearerToken: this.bearerToken,
477
484
  excludeVirtualFolders: this.excludeVirtualFolders,
478
485
  folderId: "",
479
- limit: F(this, V),
486
+ limit: v(this, V),
480
487
  searchTerm: this.searchTerm,
481
488
  seeThru: this.seeThru,
482
489
  start: 0,
@@ -505,7 +512,7 @@ let n = class extends B {
505
512
  ...this.data.map((i) => i.id),
506
513
  ...this.extraFolderData ? [this.extraFolderData.id] : [],
507
514
  ...this.preloadedFolders.map((i) => i.id),
508
- ...F(this, _),
515
+ ...v(this, I),
509
516
  ...[
510
517
  ...this.querySelectorAll(
511
518
  "cx-folder-select-tree-item"
@@ -516,7 +523,7 @@ let n = class extends B {
516
523
  );
517
524
  if (r.length === 0)
518
525
  return;
519
- r.forEach((i) => F(this, _).add(i));
526
+ r.forEach((i) => v(this, I).add(i)), this.preloading = !0;
520
527
  const l = [];
521
528
  if (await Promise.all(
522
529
  r.map(async (i) => {
@@ -538,7 +545,7 @@ let n = class extends B {
538
545
  } catch {
539
546
  }
540
547
  })
541
- ), r.forEach((i) => F(this, _).delete(i)), l.length > 0) {
548
+ ), r.forEach((i) => v(this, I).delete(i)), this.preloading = v(this, I).size > 0, l.length > 0) {
542
549
  const i = new Set(this.preloadedFolders.map((f) => f.id)), u = l.filter((f) => !i.has(f.id));
543
550
  u.length > 0 && (this.preloadedFolders = [...this.preloadedFolders, ...u].sort(
544
551
  (f, $) => f.title.localeCompare($.title)
@@ -588,13 +595,13 @@ let n = class extends B {
588
595
  )}`;
589
596
  }
590
597
  };
591
- D = /* @__PURE__ */ new WeakMap();
592
- V = /* @__PURE__ */ new WeakMap();
593
598
  _ = /* @__PURE__ */ new WeakMap();
599
+ V = /* @__PURE__ */ new WeakMap();
600
+ I = /* @__PURE__ */ new WeakMap();
594
601
  n.dependencies = {
595
602
  "cx-button": ie,
596
603
  "cx-folder-select-tree-item": a,
597
- "cx-tree": xe
604
+ "cx-tree": ge
598
605
  };
599
606
  d([
600
607
  s({ attribute: "min-query-length", reflect: !0, type: Number })
@@ -633,7 +640,7 @@ d([
633
640
  s({ attribute: "see-thru", reflect: !0, type: Boolean })
634
641
  ], n.prototype, "seeThru", 2);
635
642
  d([
636
- x()
643
+ g()
637
644
  ], n.prototype, "extraFolderData", 2);
638
645
  d([
639
646
  s({ type: Function })
@@ -652,23 +659,30 @@ d([
652
659
  s({ attribute: "auto-page-size", reflect: !0, type: Boolean })
653
660
  ], n.prototype, "autoPageSize", 2);
654
661
  d([
655
- x()
662
+ g()
656
663
  ], n.prototype, "data", 2);
657
664
  d([
658
- x()
665
+ g()
659
666
  ], n.prototype, "hasMore", 2);
660
667
  d([
661
- x()
668
+ g()
662
669
  ], n.prototype, "loading", 2);
663
670
  d([
664
- x()
671
+ g()
672
+ ], n.prototype, "preloading", 2);
673
+ d([
674
+ g()
665
675
  ], n.prototype, "preloadedFolders", 2);
666
676
  d([
667
- x()
677
+ g()
668
678
  ], n.prototype, "currentRootIDsSet", 2);
669
679
  d([
670
- x()
680
+ g()
671
681
  ], n.prototype, "removedIDs", 2);
682
+ d([
683
+ m("loading", { waitUntilFirstUpdate: !0 }),
684
+ m("preloading")
685
+ ], n.prototype, "handleLoadingStateChange", 1);
672
686
  d([
673
687
  m("extraFolderId")
674
688
  ], n.prototype, "handleExtraFolderIdChange", 1);
@@ -686,24 +700,24 @@ d([
686
700
  n = d([
687
701
  N("cx-folder-select-tree")
688
702
  ], n);
689
- const Pe = $e`: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}`;
690
- var Ue = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, ce = (e) => {
703
+ const Ue = $e`: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}`;
704
+ var Pe = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, ce = (e) => {
691
705
  throw TypeError(e);
692
- }, h = (e, t, r, l) => {
706
+ }, c = (e, t, r, l) => {
693
707
  for (var i = l > 1 ? void 0 : l ? Ee(t, r) : t, u = e.length - 1, f; u >= 0; u--)
694
708
  (f = e[u]) && (i = (l ? f(t, r, i) : f(i)) || i);
695
- return l && i && Ue(t, r, i), i;
696
- }, he = (e, t, r) => t.has(e) || ce("Cannot " + r), X = (e, t, r) => (he(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Oe = (e, t, r) => t.has(e) ? ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Y = (e, t, r, l) => (he(e, t, "write to private field"), t.set(e, r), r), I;
709
+ return l && i && Pe(t, r, i), i;
710
+ }, he = (e, t, r) => t.has(e) || ce("Cannot " + r), X = (e, t, r) => (he(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Oe = (e, t, r) => t.has(e) ? ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Y = (e, t, r, l) => (he(e, t, "write to private field"), t.set(e, r), r), T;
697
711
  let o = class extends B {
698
712
  constructor() {
699
- super(), this.localize = new W(this), this.minQueryLength = 1, this.selection = "single", this.variant = C.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 = "", Oe(this, I), 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.selectSetOptionSelected = this.selectSetOptionSelected.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
713
+ super(), this.localize = new W(this), this.minQueryLength = 1, this.selection = "single", this.variant = D.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, Oe(this, T), 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.selectSetOptionSelected = this.selectSetOptionSelected.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
700
714
  }
701
715
  updateWrappedApi() {
702
716
  if (!this.api) {
703
- Y(this, I, void 0);
717
+ Y(this, T, void 0);
704
718
  return;
705
719
  }
706
- Y(this, I, async (e) => {
720
+ Y(this, T, async (e) => {
707
721
  try {
708
722
  return await this.api(e);
709
723
  } catch (t) {
@@ -724,6 +738,9 @@ let o = class extends B {
724
738
  handleSearchTermSelectChange(e) {
725
739
  e.target === e.currentTarget && (this.searchTerm = e.currentTarget.displayInput.value);
726
740
  }
741
+ handleTreeLoadingChange(e) {
742
+ this.treeLoading = e.detail.loading;
743
+ }
727
744
  handleSelectClear() {
728
745
  if (this.searchTerm = "", this.selection !== "multiple")
729
746
  return;
@@ -764,17 +781,17 @@ let o = class extends B {
764
781
  ), this.syncSelectValue(), this.selectEl.handleDefaultSlotChange(), await this.selectEl.updateComplete, this.selectEl.displayLabel = this.searchTerm);
765
782
  }
766
783
  selectGetOptionValue(e) {
767
- return !e || !(e instanceof v) ? this.value : e.dataset.id || this.value;
784
+ return !e || !(e instanceof S) ? this.value : e.dataset.id || this.value;
768
785
  }
769
786
  selectGetOptionLabel(e) {
770
- return !e || !(e instanceof v) ? this.selectedLabel : e.dataset.name || this.selectedLabel;
787
+ return !e || !(e instanceof S) ? this.selectedLabel : e.dataset.name || this.selectedLabel;
771
788
  }
772
789
  selectGetOptionSelected(e) {
773
- if (!(!e || !(e instanceof v)))
790
+ if (!(!e || !(e instanceof S)))
774
791
  return e.selected;
775
792
  }
776
793
  selectFilterCallback(e) {
777
- return !(!e || !(e instanceof v));
794
+ return !(!e || !(e instanceof S));
778
795
  }
779
796
  /**
780
797
  * Custom tag renderer for cx-select multi mode. Identical visuals to the
@@ -791,11 +808,11 @@ let o = class extends B {
791
808
  remove-button:tag__remove-button,
792
809
  remove-button__base:tag__remove-button__base
793
810
  " removable @cx-remove=${(r) => {
794
- r.stopPropagation(), e instanceof v && (e.selected = !1);
811
+ r.stopPropagation(), e instanceof S && (e.selected = !1);
795
812
  }}><cx-line-clamp lines="1">${this.selectGetOptionLabel(e)}</cx-line-clamp></cx-tag>`;
796
813
  }
797
814
  selectSetOptionSelected(e, t) {
798
- if (!(!e || !(e instanceof v)) && this.selection !== "multiple") {
815
+ if (!(!e || !(e instanceof S)) && this.selection !== "multiple") {
799
816
  if (t === void 0) {
800
817
  e.selected = !e.selected;
801
818
  return;
@@ -816,7 +833,7 @@ let o = class extends B {
816
833
  }
817
834
  }
818
835
  async handleVariantChange() {
819
- this.variant === C.Select && (await this.updateComplete, this.updateFunctionProps());
836
+ this.variant === D.Select && (await this.updateComplete, this.updateFunctionProps());
820
837
  }
821
838
  handleValueChange() {
822
839
  this.selectEl && (this.searchTerm = "", this.selectEl.getOptionValue = this.selectGetOptionValue, this.selectEl.getOptionLabel = this.selectGetOptionLabel, this.selectEl.getOptionSelected = this.selectGetOptionSelected, this.selectEl.filterCallback = this.selectFilterCallback, this.selectEl.setOptionSelected = this.selectSetOptionSelected, this.selectEl.getTag = this.selectGetTag, this.syncSelectValue(), this.selectEl.handleDefaultSlotChange());
@@ -824,18 +841,18 @@ let o = class extends B {
824
841
  render() {
825
842
  return y`<div class="folder-select">${ve(this.variant, [
826
843
  [
827
- C.Input,
828
- () => y`<cx-input class="folder-select__search" aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree class="folder-select__tree" base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${X(this, I)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
844
+ D.Input,
845
+ () => y`<cx-input class="folder-select__search" aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree class="folder-select__tree" base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${X(this, T)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
829
846
  ],
830
847
  [
831
- C.Select,
832
- () => y`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} @cx-folder-select-selection-seeded=${this.handleTreeSelectedChange} allow-freetext><cx-folder-select-tree base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${X(this, I)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`
848
+ D.Select,
849
+ () => y`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} ?loading=${this.treeLoading} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} @cx-folder-select-selection-seeded=${this.handleTreeSelectedChange} @cx-folder-select-loading-change=${this.handleTreeLoadingChange} allow-freetext><cx-folder-select-tree base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${X(this, T)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`
833
850
  ]
834
851
  ])}</div>`;
835
852
  }
836
853
  };
837
- I = /* @__PURE__ */ new WeakMap();
838
- o.styles = [re, Pe];
854
+ T = /* @__PURE__ */ new WeakMap();
855
+ o.styles = [re, Ue];
839
856
  o.dependencies = {
840
857
  "cx-folder-select-tree": n,
841
858
  "cx-icon": ee,
@@ -844,113 +861,116 @@ o.dependencies = {
844
861
  "cx-select": me,
845
862
  "cx-tag": ye
846
863
  };
847
- h([
864
+ c([
848
865
  se("cx-select")
849
866
  ], o.prototype, "selectEl", 2);
850
- h([
867
+ c([
851
868
  s({ attribute: "min-query-length", reflect: !0, type: Number })
852
869
  ], o.prototype, "minQueryLength", 2);
853
- h([
870
+ c([
854
871
  s({ attribute: "selection", reflect: !0, type: String })
855
872
  ], o.prototype, "selection", 2);
856
- h([
873
+ c([
857
874
  s({ attribute: "variant", reflect: !0, type: String })
858
875
  ], o.prototype, "variant", 2);
859
- h([
876
+ c([
860
877
  s({ reflect: !0, type: String })
861
878
  ], o.prototype, "value", 2);
862
- h([
879
+ c([
863
880
  s({ reflect: !0, type: String })
864
881
  ], o.prototype, "name", 2);
865
- h([
882
+ c([
866
883
  s({ attribute: "selected-label", reflect: !0, type: String })
867
884
  ], o.prototype, "selectedLabel", 2);
868
- h([
885
+ c([
869
886
  s({ attribute: "base-url", reflect: !0, type: String })
870
887
  ], o.prototype, "baseUrl", 2);
871
- h([
888
+ c([
872
889
  s({ attribute: "allowed-folders", converter: ae, type: Array })
873
890
  ], o.prototype, "allowedFolders", 2);
874
- h([
891
+ c([
875
892
  s({ reflect: !0, type: Boolean })
876
893
  ], o.prototype, "open", 2);
877
- h([
894
+ c([
878
895
  s({ reflect: !1, type: String })
879
896
  ], o.prototype, "token", 2);
880
- h([
897
+ c([
881
898
  s({ attribute: "bearer-token", reflect: !0, type: String })
882
899
  ], o.prototype, "bearerToken", 2);
883
- h([
900
+ c([
884
901
  s({ attribute: "see-thru", reflect: !0, type: Boolean })
885
902
  ], o.prototype, "seeThru", 2);
886
- h([
903
+ c([
887
904
  s({ type: Function })
888
905
  ], o.prototype, "api", 2);
889
- h([
906
+ c([
890
907
  s({ reflect: !0, type: Boolean })
891
908
  ], o.prototype, "required", 2);
892
- h([
909
+ c([
893
910
  s({ reflect: !1 })
894
911
  ], o.prototype, "form", 2);
895
- h([
912
+ c([
896
913
  s({
897
914
  attribute: "exclude-virtual-folders",
898
915
  reflect: !0,
899
916
  type: Boolean
900
917
  })
901
918
  ], o.prototype, "excludeVirtualFolders", 2);
902
- h([
919
+ c([
903
920
  s({
904
921
  attribute: "extra-folder-id",
905
922
  reflect: !0,
906
923
  type: String
907
924
  })
908
925
  ], o.prototype, "extraFolderId", 2);
909
- h([
926
+ c([
910
927
  s({
911
928
  attribute: "extra-folder-title",
912
929
  reflect: !0,
913
930
  type: String
914
931
  })
915
932
  ], o.prototype, "extraFolderTitle", 2);
916
- h([
933
+ c([
917
934
  s({
918
935
  attribute: "extra-folder-icon",
919
936
  reflect: !0,
920
937
  type: String
921
938
  })
922
939
  ], o.prototype, "extraFolderIcon", 2);
923
- h([
940
+ c([
924
941
  s({ attribute: "auto-page-size", reflect: !0, type: Boolean })
925
942
  ], o.prototype, "autoPageSize", 2);
926
- h([
943
+ c([
927
944
  s({ attribute: "first-fetch-callback", reflect: !1, type: Function })
928
945
  ], o.prototype, "firstFetchCallback", 2);
929
- h([
930
- x()
946
+ c([
947
+ g()
931
948
  ], o.prototype, "searchTerm", 2);
932
- h([
949
+ c([
950
+ g()
951
+ ], o.prototype, "treeLoading", 2);
952
+ c([
933
953
  m("api")
934
954
  ], o.prototype, "updateWrappedApi", 1);
935
- h([
955
+ c([
936
956
  m("searchTerm", { waitUntilFirstUpdate: !0 })
937
957
  ], o.prototype, "handleSearchTermChange", 1);
938
- h([
958
+ c([
939
959
  m("open")
940
960
  ], o.prototype, "handleOpenChange", 1);
941
- h([
961
+ c([
942
962
  m("variant")
943
963
  ], o.prototype, "handleVariantChange", 1);
944
- h([
964
+ c([
945
965
  m("selectedLabel", { waitUntilFirstUpdate: !0 }),
946
966
  m("value", { waitUntilFirstUpdate: !0 })
947
967
  ], o.prototype, "handleValueChange", 1);
948
- o = h([
968
+ o = c([
949
969
  N("cx-folder-select")
950
970
  ], o);
951
971
  export {
952
972
  o as C,
953
- C as F,
973
+ D as F,
954
974
  q as a,
955
975
  ae as s
956
976
  };