@orangelogic/design-system 5.0.0 → 5.2.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 (296) hide show
  1. package/library/chunks/{abnfDiagram-N423BO3Z.H1zwr_k6.js → abnfDiagram-N423BO3Z.DF8zrlpl.js} +3 -3
  2. package/library/chunks/{alert.2Esbser8.js → alert.D4RTWtiS.js} +2 -2
  3. package/library/chunks/{architectureDiagram-T3A2C74G.AxjW1Pvo.js → architectureDiagram-T3A2C74G.ChMyS2RN.js} +5 -5
  4. package/library/chunks/{array-line-clamp.C0Vo0Zzg.js → array-line-clamp.CFndztdp.js} +2 -2
  5. package/library/chunks/{asset-link-format.Ce_3Qz6_.js → asset-link-format.BbDrlRL5.js} +686 -606
  6. package/library/chunks/{asset-link-format.COPyGdND.js → asset-link-format.D6L-qc3X.js} +8 -8
  7. package/library/chunks/{audio.B0VfXBIx.js → audio.jEmfjIWU.js} +2 -2
  8. package/library/chunks/{bicolor-picker.DS9Uut25.js → bicolor-picker.DoLf8yCy.js} +1 -1
  9. package/library/chunks/{block-width.ClbkbtKA.js → block-width.nVsYTBw6.js} +44 -44
  10. package/library/chunks/{blockDiagram-VBNYF7ZC.BA5YJ5tg.js → blockDiagram-VBNYF7ZC.Dd9MRQVF.js} +6 -6
  11. package/library/chunks/{border-input-group.B6fqiG6F.js → border-input-group.CQ-BZvjI.js} +3 -3
  12. package/library/chunks/{breadcrumb.DkINVxcJ.js → breadcrumb.8_0yuiOI.js} +1 -1
  13. package/library/chunks/{button.DKkHqsUz.js → button.VUFrOP0u.js} +3 -3
  14. package/library/chunks/{c4Diagram-5PPSVZJV.B1weqOqz.js → c4Diagram-5PPSVZJV.BYo1Zq25.js} +3 -3
  15. package/library/chunks/{channel.Bqlqmufs.js → channel.DQU07rrH.js} +1 -1
  16. package/library/chunks/{checkbox.BdSpQlwf.js → checkbox.BzR50Is_.js} +2 -2
  17. package/library/chunks/{chunk-2GRJ4B5K.BOBf1_FX.js → chunk-2GRJ4B5K.DSIuCed9.js} +1 -1
  18. package/library/chunks/{chunk-4I5QYGJK.DfO_P7bO.js → chunk-4I5QYGJK.C74S0dID.js} +1 -1
  19. package/library/chunks/{chunk-5RXB4S5H.oisV3Q1b.js → chunk-5RXB4S5H.BSZ9vwQ_.js} +6 -6
  20. package/library/chunks/{chunk-6Q2QTUOP.ByglL7sM.js → chunk-6Q2QTUOP.C98k0Ypz.js} +2 -2
  21. package/library/chunks/{chunk-7Z6QIM7H.BXSFN_6B.js → chunk-7Z6QIM7H.CbyAI1qL.js} +6 -6
  22. package/library/chunks/{chunk-GF5L2VYU.BBRVN_Sz.js → chunk-GF5L2VYU.BwnEI-9p.js} +6 -6
  23. package/library/chunks/{chunk-I66GZJ75.lUTR0Zxp.js → chunk-I66GZJ75.hYJHAb8_.js} +1 -1
  24. package/library/chunks/{chunk-JQJVKLGR.dOAJ_eec.js → chunk-JQJVKLGR.Ca9c6WQC.js} +8 -8
  25. package/library/chunks/{chunk-KBJHAD2P.Bfz5cQAa.js → chunk-KBJHAD2P.Dpm7St5I.js} +1 -1
  26. package/library/chunks/{chunk-NSK5VX7P.BkWzMz1o.js → chunk-NSK5VX7P.JTL9VQLt.js} +1 -1
  27. package/library/chunks/{chunk-QR6OTTB3.DyBl4spZ.js → chunk-QR6OTTB3.1iZWec7S.js} +6 -6
  28. package/library/chunks/{chunk-UBXNYLIW.BjkOeuJd.js → chunk-UBXNYLIW.DiZRcRzh.js} +2 -2
  29. package/library/chunks/{chunk-W5SLKNZC.DzlXmWcA.js → chunk-W5SLKNZC.BpdNkiim.js} +1 -1
  30. package/library/chunks/{chunk-WRU74C26.BDl8PZFV.js → chunk-WRU74C26.BREX4nlj.js} +3 -3
  31. package/library/chunks/{classDiagram-JCYQIIEL.P36yteOv.js → classDiagram-JCYQIIEL.CHysnuuw.js} +12 -12
  32. package/library/chunks/{classDiagram-v2-OCEON4UE.C05djrx3.js → classDiagram-v2-OCEON4UE.CMVfaUrJ.js} +12 -12
  33. package/library/chunks/{color-picker.DZUudAAS.js → color-picker.C1CCN1nS.js} +11 -11
  34. package/library/chunks/{color-swatch-group.CuMJc6m8.js → color-swatch-group.BAIZMur5.js} +24 -24
  35. package/library/chunks/{color-swatch.DXAr2gBg.js → color-swatch.93BgkncM.js} +3 -3
  36. package/library/chunks/{config-manager.B6c9XW1s.js → config-manager.DijEOQly.js} +32 -32
  37. package/library/chunks/{configs-controller.TQDPq63n.js → configs-controller.B91MEy-4.js} +9 -9
  38. package/library/chunks/{confirm-popover.sZVNhFPh.js → confirm-popover.BRYw_62p.js} +4 -4
  39. package/library/chunks/{copy-button.CqqKJEh3.js → copy-button.BVuGJ0pX.js} +2 -2
  40. package/library/chunks/{corner-position-input-group.nTlFes0_.js → corner-position-input-group.zh-KziJB.js} +4 -4
  41. package/library/chunks/{cropper.BF32WRyP.js → cropper.D8Uu43xy.js} +1 -1
  42. package/library/chunks/{cynefinDiagram-MW4NZA55.CN3dX-zy.js → cynefinDiagram-MW4NZA55.CNmGi2wN.js} +3 -3
  43. package/library/chunks/{dagre-VZM6K2ZE.DpSsP2YW.js → dagre-VZM6K2ZE.pAZyqROg.js} +8 -8
  44. package/library/chunks/date-calendar.D-LYjKFX.js +188 -0
  45. package/library/chunks/date.kywrEgxd.js +363 -0
  46. package/library/chunks/{details.DSgp6VAD.js → details.BXMJk9oy.js} +1 -1
  47. package/library/chunks/{diagram-7IWD3JNH.C3K0gCHG.js → diagram-7IWD3JNH.BDOF6I2J.js} +4 -4
  48. package/library/chunks/{diagram-B4RE2ZJO.BULgC23C.js → diagram-B4RE2ZJO.DT1Xf2Kc.js} +2 -2
  49. package/library/chunks/{diagram-LBJQPF4R.BmYYTkym.js → diagram-LBJQPF4R.i67nojTE.js} +3 -3
  50. package/library/chunks/{diagram-Q27KOJAE.Bj5ayV3p.js → diagram-Q27KOJAE.C9Y5E3pX.js} +5 -5
  51. package/library/chunks/{diagram-UB23O5K3.Bu_lTx_A.js → diagram-UB23O5K3.Dxnn2pgu.js} +3 -3
  52. package/library/chunks/{dialog.D0oTJWFf.js → dialog.C21jNK4r.js} +3 -3
  53. package/library/chunks/{diff.Bmdpmpvo.js → diff.BLPeoeMo.js} +1 -1
  54. package/library/chunks/{document-viewer.L77oYyOp.js → document-viewer.CZ2Fhfs7.js} +14 -14
  55. package/library/chunks/{dom.BLHsooDR.js → dom.8wD7rIGz.js} +1 -1
  56. package/library/chunks/{dot-pagination.C1C6NG8d.js → dot-pagination.BdG_9NTv.js} +2 -2
  57. package/library/chunks/{drawer.BsKzYqKe.js → drawer.DM1zAUgP.js} +2 -2
  58. package/library/chunks/{dropdown.CKhoP9Cr.js → dropdown.DG5U64BM.js} +16 -7
  59. package/library/chunks/{dynamic-select.Cb3L0dIB.js → dynamic-select.hfD2F6e4.js} +5 -5
  60. package/library/chunks/{e-chart.DKFAToIc.js → e-chart.BtYiI1g7.js} +2 -2
  61. package/library/chunks/{ebnfDiagram-BXEA7PRR.Cg96HHIs.js → ebnfDiagram-BXEA7PRR.C15CrBEH.js} +3 -3
  62. package/library/chunks/{element-clamp.CGq-62gg.js → element-clamp.Bmn_oyV6.js} +2 -2
  63. package/library/chunks/{erDiagram-JOGREHBK.CrJ962th.js → erDiagram-JOGREHBK.BAFJcDwv.js} +11 -11
  64. package/library/chunks/{file-on-demand.BjUW2Ydt.js → file-on-demand.DoiRhsJ7.js} +17 -17
  65. package/library/chunks/flowDiagram-UKHOOZJN.BkgRtWrB.js +16 -0
  66. package/library/chunks/{folder-select.DJ5EEod3.js → folder-select.DrM6sqAw.js} +9 -9
  67. package/library/chunks/{form.D_eBa3AQ.js → form.ChOu6BIn.js} +1 -1
  68. package/library/chunks/{format-time.QkJcKYrT.js → format-time.BZ7jIbu7.js} +1 -1
  69. package/library/chunks/{ganttDiagram-PKOTCBZU.D216_p5R.js → ganttDiagram-PKOTCBZU.BWKE9zb3.js} +2 -2
  70. package/library/chunks/{gitGraphDiagram-DS77QQ5N.BGTaYiUE.js → gitGraphDiagram-DS77QQ5N.Dh9BZvJA.js} +2 -2
  71. package/library/chunks/{header.CowQINf-.js → header.aHKslWaJ.js} +2 -2
  72. package/library/chunks/{i18n.Bjg2ubA4.js → i18n.qIMzqW-F.js} +43 -1
  73. package/library/chunks/{icon-button.qJd_az6T.js → icon-button.DTyZ7Nwc.js} +2 -2
  74. package/library/chunks/{iframe.sl2wnUcC.js → iframe.DU9XEE6J.js} +1 -1
  75. package/library/chunks/{image-comparer.BCD6kzLm.js → image-comparer.yDCQTe-Z.js} +1 -1
  76. package/library/chunks/{image.-lgb634-.js → image.C6ffajdy.js} +2 -2
  77. package/library/chunks/{infoDiagram-6WML65LV.BHVojFJh.js → infoDiagram-6WML65LV.BlZ2eFcf.js} +2 -2
  78. package/library/chunks/{input.DZRed6yo.js → input.1CW0nLBL.js} +19 -6
  79. package/library/chunks/{ishikawaDiagram-WSZJBQD7.nZsYnPcQ.js → ishikawaDiagram-WSZJBQD7.QMHGwtgV.js} +3 -3
  80. package/library/chunks/{journeyDiagram-NVQOT4AX.BXUxAk98.js → journeyDiagram-NVQOT4AX.C-ovuC8R.js} +2 -2
  81. package/library/chunks/{kanban-definition-27J2QSJJ.Bg8-oEtc.js → kanban-definition-27J2QSJJ.CwAo6fJw.js} +8 -8
  82. package/library/chunks/{line-clamp.Dl3_JdHX.js → line-clamp.BDFNqZZ8.js} +47 -28
  83. package/library/chunks/{markdown.BzDRvv-f.js → markdown.BBOqRlzE.js} +4 -4
  84. package/library/chunks/{masonry.BxNeClR6.js → masonry.BrOEearB.js} +3 -3
  85. package/library/chunks/{menu-item.au-gTg1F.js → menu-item.B6Lww_R9.js} +3 -3
  86. package/library/chunks/{menu.BxBtGPsg.js → menu.DgRAUDo_.js} +2 -2
  87. package/library/chunks/{mermaid.core.m1JI7kDY.js → mermaid.core.CGY0RVtv.js} +49 -49
  88. package/library/chunks/{mindmap-definition-FAOFIHXS.DwjOzYq5.js → mindmap-definition-FAOFIHXS.CQvqcBzU.js} +10 -10
  89. package/library/chunks/{option.DWE0tark.js → option.DXo-QZhI.js} +1 -1
  90. package/library/chunks/{padding-input-group.D2Qx15Yj.js → padding-input-group.tjIBMptQ.js} +1 -1
  91. package/library/chunks/{pagination.ByLuPMyE.js → pagination.CVVtlgOf.js} +7 -7
  92. package/library/chunks/{pegDiagram-VL7TDLO6.BaVddVr3.js → pegDiagram-VL7TDLO6.CCjKBwxn.js} +3 -3
  93. package/library/chunks/{pieDiagram-7S7Q4E2Y.lZiCqBKs.js → pieDiagram-7S7Q4E2Y.BIlwtlJL.js} +3 -3
  94. package/library/chunks/{popup.w4ZU3jI-.js → popup.jQD3De0E.js} +2 -2
  95. package/library/chunks/{position-picker.X2hhfGx7.js → position-picker.DW9YTney.js} +3 -3
  96. package/library/chunks/{progress-bar.CynVLLnY.js → progress-bar.2YrCjo_K.js} +1 -1
  97. package/library/chunks/{progress-ring.Bfdj3-uB.js → progress-ring.D50j7Uhy.js} +1 -1
  98. package/library/chunks/purify.es.jxOE2kAK.js +867 -0
  99. package/library/chunks/{quadrantDiagram-CIZ2JOQS.DswnHa_z.js → quadrantDiagram-CIZ2JOQS.DorpRl0y.js} +1 -1
  100. package/library/chunks/{radio-card.VEsyM8ue.js → radio-card.C_GVggMn.js} +2 -2
  101. package/library/chunks/{radio-group.CHlxPcrs.js → radio-group.DfR13lVB.js} +1 -1
  102. package/library/chunks/{radio.DhPbmKbQ.js → radio.BmN7pFIX.js} +1 -1
  103. package/library/chunks/{railroadDiagram-AXF67PYL.RYtWvnP4.js → railroadDiagram-AXF67PYL.c5ghpRCW.js} +3 -3
  104. package/library/chunks/{range.ObEMbygm.js → range.C14Kx5Ln.js} +3 -3
  105. package/library/chunks/{rating.CNeNn996.js → rating.B6WhmtiT.js} +1 -1
  106. package/library/chunks/{relative-time.BfE3UOhF.js → relative-time.BF48GQmV.js} +1 -1
  107. package/library/chunks/{requirementDiagram-LRYGKXZP.BhxZAEJL.js → requirementDiagram-LRYGKXZP.MlkqKyhd.js} +10 -10
  108. package/library/chunks/{sankeyDiagram-W5VNT64P.Dk8npZSg.js → sankeyDiagram-W5VNT64P.Ch23b1-S.js} +1 -1
  109. package/library/chunks/{select.BV0Necz7.js → select.D-QQK2rH.js} +134 -123
  110. package/library/chunks/{sequenceDiagram-SI44F4Z6.BNjBc769.js → sequenceDiagram-SI44F4Z6.CZxsjRpC.js} +4 -4
  111. package/library/chunks/{shadow-input-group.Xxuzm8Qe.js → shadow-input-group.Ch6vHKZp.js} +2 -2
  112. package/library/chunks/{share-option-list.DOaEypfQ.js → share-option-list.DZHvOfV4.js} +3 -3
  113. package/library/chunks/{sidebar.CiZOJ49X.js → sidebar.BftNiyQt.js} +32 -22
  114. package/library/chunks/{size-input-group.wXuG0-RB.js → size-input-group.CbsKvFaO.js} +5 -5
  115. package/library/chunks/{spinner.Bv06U7NJ.js → spinner.CCSVc6Z6.js} +1 -1
  116. package/library/chunks/{split-panel.Cag0lAvv.js → split-panel.CRHvHDiv.js} +1 -1
  117. package/library/chunks/{src.Dia365C9.js → src.D0_s2pWf.js} +26 -26
  118. package/library/chunks/src.DEO8lR91.js +103 -0
  119. package/library/chunks/{stateDiagram-OKZ733FA.DkiIgxjd.js → stateDiagram-OKZ733FA.JCaGHMmH.js} +12 -12
  120. package/library/chunks/{stateDiagram-v2-UEYNNEHI.oVj_Ex1_.js → stateDiagram-v2-UEYNNEHI.CKrKpvxj.js} +12 -12
  121. package/library/chunks/{step.D93ReCO1.js → step.CiCIM79l.js} +3 -3
  122. package/library/chunks/{stepper-wizard.CPZ2mSze.js → stepper-wizard.BKSPLzfU.js} +2 -2
  123. package/library/chunks/{stepper.D0JB_GVh.js → stepper.r0k2sIAi.js} +1 -1
  124. package/library/chunks/{string.9yahdkB8.js → string.TY0RTPc8.js} +1 -1
  125. package/library/chunks/{swimlanes-SLNWSIFB.DKU7qXJ7.js → swimlanes-SLNWSIFB.BnCITr-P.js} +8 -8
  126. package/library/chunks/{swimlanesDiagram-ULZ7WXOC.DYwYMO_K.js → swimlanesDiagram-ULZ7WXOC.DMYLowNi.js} +12 -12
  127. package/library/chunks/{switch.BM9msK5T.js → switch.BuleQplE.js} +1 -1
  128. package/library/chunks/{tab-group.dnnT9Mk6.js → tab-group.B6O3pBw0.js} +8 -8
  129. package/library/chunks/{tab.CYYAua8Y.js → tab.DHblc3F_.js} +3 -3
  130. package/library/chunks/{tag.DQLauctm.js → tag.Bp7R2CeG.js} +3 -3
  131. package/library/chunks/{textarea.CHSZI8vt.js → textarea.BQV58bk8.js} +1 -1
  132. package/library/chunks/{timecode.DjI1OTXD.js → timecode.B6JsxLxl.js} +1 -1
  133. package/library/chunks/{timeline-definition-Z64GVDOM.agRZ87Zs.js → timeline-definition-Z64GVDOM.DpGlraiA.js} +3 -3
  134. package/library/chunks/{tooltip.Cc02vm6M.js → tooltip.C11omEOs.js} +17 -21
  135. package/library/chunks/{tree.BI7r-WnZ.js → tree.CpN2Va5s.js} +4 -4
  136. package/library/chunks/{typeface.DTLrIP0B.js → typeface.oJr92CGd.js} +3 -3
  137. package/library/chunks/{vennDiagram-T6HMQDX7.Cd9lVObe.js → vennDiagram-T6HMQDX7.DYlGT1g9.js} +3 -3
  138. package/library/chunks/{video.DWmHPbXO.js → video.CtWiwJj6.js} +6 -6
  139. package/library/chunks/{wardleyDiagram-T6FBY63Y.yCklp5Oa.js → wardleyDiagram-T6FBY63Y.DFkqP4xG.js} +3 -3
  140. package/library/chunks/{xychartDiagram-ELKLHX3M.CLuRN0XK.js → xychartDiagram-ELKLHX3M.CmCPBha7.js} +5 -5
  141. package/library/components/alert.js +1 -1
  142. package/library/components/array-line-clamp.js +1 -1
  143. package/library/components/asset-link-format.js +1 -1
  144. package/library/components/atoms.js +55 -55
  145. package/library/components/audio.js +1 -1
  146. package/library/components/bicolor-picker.js +1 -1
  147. package/library/components/border-input-group.js +1 -1
  148. package/library/components/breadcrumb.js +1 -1
  149. package/library/components/button.js +1 -1
  150. package/library/components/checkbox.js +1 -1
  151. package/library/components/color-picker.js +1 -1
  152. package/library/components/color-swatch-group.js +1 -1
  153. package/library/components/color-swatch.js +1 -1
  154. package/library/components/confirm-popover.js +1 -1
  155. package/library/components/copy-button.js +1 -1
  156. package/library/components/corner-position-input-group.js +1 -1
  157. package/library/components/cropper.js +1 -1
  158. package/library/components/date-calendar.js +1 -1
  159. package/library/components/details.js +1 -1
  160. package/library/components/dialog.js +1 -1
  161. package/library/components/diff.js +1 -1
  162. package/library/components/document-viewer.js +1 -1
  163. package/library/components/dot-pagination.js +1 -1
  164. package/library/components/drawer.js +1 -1
  165. package/library/components/dropdown.js +1 -1
  166. package/library/components/dynamic-select.js +1 -1
  167. package/library/components/e-chart.js +1 -1
  168. package/library/components/element-clamp.js +1 -1
  169. package/library/components/file-on-demand.js +1 -1
  170. package/library/components/folder-select.js +1 -1
  171. package/library/components/format-bytes.js +1 -1
  172. package/library/components/format-date.js +1 -1
  173. package/library/components/format-number.js +1 -1
  174. package/library/components/format-time.js +1 -1
  175. package/library/components/header.js +1 -1
  176. package/library/components/icon-button.js +1 -1
  177. package/library/components/iframe.js +1 -1
  178. package/library/components/image-comparer.js +1 -1
  179. package/library/components/image.js +1 -1
  180. package/library/components/input.js +1 -1
  181. package/library/components/line-clamp.js +1 -1
  182. package/library/components/markdown.js +1 -1
  183. package/library/components/masonry.js +1 -1
  184. package/library/components/menu-item.js +1 -1
  185. package/library/components/menu.js +1 -1
  186. package/library/components/molecules.js +17 -17
  187. package/library/components/option.js +1 -1
  188. package/library/components/organisms.js +3 -3
  189. package/library/components/padding-input-group.js +1 -1
  190. package/library/components/pagination.js +1 -1
  191. package/library/components/popup.js +1 -1
  192. package/library/components/position-picker.js +1 -1
  193. package/library/components/progress-bar.js +1 -1
  194. package/library/components/progress-ring.js +1 -1
  195. package/library/components/radio-card.js +1 -1
  196. package/library/components/radio-group.js +1 -1
  197. package/library/components/radio.js +1 -1
  198. package/library/components/range.js +1 -1
  199. package/library/components/rating.js +1 -1
  200. package/library/components/relative-time.js +1 -1
  201. package/library/components/select.js +1 -1
  202. package/library/components/shadow-input-group.js +1 -1
  203. package/library/components/share-option-list.js +1 -1
  204. package/library/components/sidebar.js +1 -1
  205. package/library/components/size-input-group.js +1 -1
  206. package/library/components/spinner.js +1 -1
  207. package/library/components/split-panel.js +1 -1
  208. package/library/components/step.js +1 -1
  209. package/library/components/stepper-wizard.js +1 -1
  210. package/library/components/stepper.js +1 -1
  211. package/library/components/switch.js +1 -1
  212. package/library/components/tab-group.js +1 -1
  213. package/library/components/tab.js +1 -1
  214. package/library/components/tag.js +1 -1
  215. package/library/components/textarea.js +1 -1
  216. package/library/components/timecode.js +1 -1
  217. package/library/components/tooltip.js +1 -1
  218. package/library/components/tree-item.js +1 -1
  219. package/library/components/tree.js +1 -1
  220. package/library/components/typeface.js +1 -1
  221. package/library/components/types.js +21914 -19131
  222. package/library/components/video.js +1 -1
  223. package/library/package.json +1 -1
  224. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -2
  225. package/library/packages/atoms/src/components/date-calendar/date-calendar.d.ts +62 -9
  226. package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +6 -0
  227. package/library/packages/atoms/src/components/input/input.d.ts +20 -1
  228. package/library/packages/atoms/src/components/line-clamp/line-clamp.d.ts +3 -0
  229. package/library/packages/atoms/src/components/radio/radio.d.ts +3 -0
  230. package/library/packages/atoms/src/components/select/select.d.ts +7 -9
  231. package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +4 -1
  232. package/library/packages/events/src/cx-search-facet-date-change.d.ts +11 -0
  233. package/library/packages/events/src/cx-search-facet-focus-title.d.ts +10 -0
  234. package/library/packages/events/src/cx-search-facet-reset.d.ts +12 -0
  235. package/library/packages/events/src/cx-search-facet-select-all.d.ts +13 -0
  236. package/library/packages/events/src/cx-search-facet-show-more.d.ts +12 -0
  237. package/library/packages/events/src/cx-search-facet-toggle.d.ts +11 -0
  238. package/library/packages/events/src/cx-search-facets-apply.d.ts +17 -0
  239. package/library/packages/events/src/cx-search-facets-change-filters.d.ts +6 -0
  240. package/library/packages/events/src/cx-search-facets-clear-all.d.ts +10 -0
  241. package/library/packages/events/src/cx-search-facets-custom.d.ts +10 -0
  242. package/library/packages/events/src/cx-search-facets-facet-expand.d.ts +9 -0
  243. package/library/packages/events/src/cx-search-facets-node-expand.d.ts +11 -0
  244. package/library/packages/events/src/cx-search-facets-refresh.d.ts +6 -0
  245. package/library/packages/events/src/cx-search-facets-show-more.d.ts +8 -0
  246. package/library/packages/events/src/cx-search-facets-summary-expand.d.ts +9 -0
  247. package/library/packages/events/src/cx-search-facets-summary-remove.d.ts +12 -0
  248. package/library/packages/events/src/events.d.ts +16 -0
  249. package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +116 -0
  250. package/library/packages/molecules/src/sidebar/sidebar.d.ts +1 -0
  251. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +43 -2
  252. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +7 -2
  253. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.d.ts +12 -3
  254. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +1 -0
  255. package/library/packages/organisms/src/downloader/downloader.d.ts +6 -0
  256. package/library/packages/organisms/src/index.d.ts +1 -0
  257. package/library/packages/organisms/src/search-facets/components/search-facet/search-facet.d.ts +95 -0
  258. package/library/packages/organisms/src/search-facets/components/search-facet/search-facet.styles.d.ts +2 -0
  259. package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/advanced-date-reading.d.ts +90 -0
  260. package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/search-facet-advanced-date.d.ts +85 -0
  261. package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/search-facet-advanced-date.styles.d.ts +2 -0
  262. package/library/packages/organisms/src/search-facets/components/search-facet-color/search-facet-color.d.ts +47 -0
  263. package/library/packages/organisms/src/search-facets/components/search-facet-color/search-facet-color.styles.d.ts +2 -0
  264. package/library/packages/organisms/src/search-facets/components/search-facet-date/date-range-validation.d.ts +67 -0
  265. package/library/packages/organisms/src/search-facets/components/search-facet-date/search-facet-date.d.ts +120 -0
  266. package/library/packages/organisms/src/search-facets/components/search-facet-date/search-facet-date.styles.d.ts +2 -0
  267. package/library/packages/organisms/src/search-facets/components/search-facet-similar/search-facet-similar.d.ts +44 -0
  268. package/library/packages/organisms/src/search-facets/components/search-facet-similar/search-facet-similar.styles.d.ts +2 -0
  269. package/library/packages/organisms/src/search-facets/components/search-facet-tree/search-facet-tree.d.ts +104 -0
  270. package/library/packages/organisms/src/search-facets/components/search-facet-tree/search-facet-tree.styles.d.ts +2 -0
  271. package/library/packages/organisms/src/search-facets/components/search-facet-tree/visible-nodes.d.ts +36 -0
  272. package/library/packages/organisms/src/search-facets/components/search-facets-summary/search-facets-summary.d.ts +67 -0
  273. package/library/packages/organisms/src/search-facets/components/search-facets-summary/search-facets-summary.styles.d.ts +2 -0
  274. package/library/packages/organisms/src/search-facets/search-facets.d.ts +198 -0
  275. package/library/packages/organisms/src/search-facets/search-facets.fixtures.d.ts +141 -0
  276. package/library/packages/organisms/src/search-facets/search-facets.styles.d.ts +2 -0
  277. package/library/packages/organisms/src/search-facets/state/date-drafts.d.ts +11 -0
  278. package/library/packages/organisms/src/search-facets/state/long-panel.d.ts +7 -0
  279. package/library/packages/organisms/src/search-facets/state/preview-summary.d.ts +17 -0
  280. package/library/packages/organisms/src/search-facets/state/preview-waiting-changes.d.ts +12 -0
  281. package/library/packages/organisms/src/search-facets/state/response-correlation.d.ts +9 -0
  282. package/library/packages/organisms/src/search-facets/state/waiting-changes.d.ts +179 -0
  283. package/library/packages/organisms/src/search-facets/types.d.ts +347 -0
  284. package/library/packages/types/src/asset-link-format.d.ts +6 -0
  285. package/library/packages/types/src/search-facets.d.ts +104 -0
  286. package/library/packages/utils/src/custom-element/i18n.d.ts +42 -0
  287. package/library/packages/utils/src/date/calendar-grid.d.ts +5 -6
  288. package/library/packages/utils/src/date/date.d.ts +7 -1
  289. package/library/react-web-component.d.ts +99 -9
  290. package/library/utils.js +13 -13
  291. package/package.json +1 -1
  292. package/library/chunks/date-calendar.B7e6WBzh.js +0 -78
  293. package/library/chunks/date.BL4L64Hx.js +0 -358
  294. package/library/chunks/flowDiagram-UKHOOZJN.Bj_loY7-.js +0 -16
  295. package/library/chunks/purify.es.Bwsrv9kG.js +0 -866
  296. package/library/chunks/src.-wSEUjRV.js +0 -103
@@ -13,9 +13,13 @@ import { CSSResultGroup } from 'lit';
13
13
  * Renders a label inside the input, a calendar popup, and optional
14
14
  * hour/minute/second selects.
15
15
  *
16
+ * With `partial-date` (on top of `calendar-button`) the field also takes a year alone or a month and year. With
17
+ * `no-blur-commit` leaving the field does not commit, for a host that commits when focus leaves its own group.
18
+ *
16
19
  * @event cx-change - Emitted when the user commits a date or changes the time. Read `el.value` for the date and `el.timeValue` for the time.
17
20
  *
18
21
  * @csspart field - The outer wrapper element.
22
+ * @csspart calendar-button - `calendar-button` mode: the button that opens the calendar.
19
23
  * @csspart calendar-panel - The popup panel wrapping the calendar.
20
24
  * @csspart time-row - The row containing the time selects.
21
25
  *
@@ -37,8 +41,26 @@ export default class CxInputDatePicker extends CortexElement {
37
41
  'cx-popup': typeof CxPopup;
38
42
  'cx-select': typeof CxSelect;
39
43
  };
44
+ /** The field holds a whole day: two day digits, two month digits and four year digits, in the pattern's order. */
45
+ private static isCompleteDisplayDate;
46
+ /**
47
+ * `partial-date` mode: a field text that may leave out leading parts, read by the number of pieces it holds. `2021` is
48
+ * a year, `11/2021` (or `2021/11` in a year-first format) a month and year, `29/11/2021` a day. Returns the year, month
49
+ * and day digits as typed; a part left out is empty.
50
+ */
51
+ private static readPartialText;
52
+ /**
53
+ * `partial-date` mode: where the calendar opens and the day it selects. A full day opens on itself and is selected; a
54
+ * month and year opens on the 1st of the month, a year alone on 1 January, with no day selected. Anything else opens
55
+ * on today. Years 0001-0099 open on their own month.
56
+ */
57
+ private static partialCalendarDays;
40
58
  private readonly localize;
41
59
  private readonly dateInputEl;
60
+ private readonly calendarEl?;
61
+ private readonly calendarButtonEl?;
62
+ /** In `calendar-button` mode, the field text last written or committed, so a commit fires only for a real edit. */
63
+ private lastCommittedText;
42
64
  /** Display label for the field. */
43
65
  label: string;
44
66
  /** The name submitted as a name/value pair with form data. */
@@ -85,6 +107,40 @@ export default class CxInputDatePicker extends CortexElement {
85
107
  * Falls back to the localized `dateAfterMax` term when omitted.
86
108
  */
87
109
  maskMaxMessage: string;
110
+ /** Text under the field that describes it, for example its format. Tied to the input by `aria-describedby`. */
111
+ helpText: string;
112
+ /** Marks the typed value as invalid for assistive technology, for a message the host shows about it. */
113
+ invalid: boolean;
114
+ /**
115
+ * Elements outside the picker that also describe its date field, for example the host's validation message. Passed to
116
+ * the field's `cx-input`, which reads them after its help text. JS only.
117
+ */
118
+ describedByElements: readonly Element[];
119
+ /** The calendar's first day of the week, 0 = Sunday … 6 = Saturday. */
120
+ firstDayOfWeek: number;
121
+ /**
122
+ * Opt-in mode for a host that validates the typed date itself. The calendar opens only from a button after the field,
123
+ * as a dialog that takes focus and gives it back to the button; typing and clicking the field never open it. The year
124
+ * takes any four digits and a single digit that cannot start a day or month is read as its second digit. A commit
125
+ * (Enter, leaving the field, a full typed day, a calendar pick) emits `cx-change`; read `typedValue`. The host writes
126
+ * the field with `setDisplayText()` and sets `value` only to place the calendar. No inline clear button.
127
+ */
128
+ calendarButton: boolean;
129
+ /** `calendar-button` mode: the calendar button's and dialog's accessible name. Omitted: `label`. */
130
+ calendarLabel: string;
131
+ /**
132
+ * With `calendar-button`, for a host that reads partial dates itself: the field has no input mask, so it also takes a
133
+ * year alone (`2021`) or a month and year (`11/2021`, `2021/11` year first), digits and "/" only. A typed full day no
134
+ * longer commits by itself; Enter, leaving the field and a calendar pick do. The calendar opens on the typed day, month
135
+ * or year, selects a day only for a full day, and reaches 0001-9999. `value` is not used.
136
+ */
137
+ partialDate: boolean;
138
+ /**
139
+ * With `calendar-button`, for a host that groups the field with other controls and commits when focus leaves the
140
+ * group: leaving the field no longer commits, so moving to its calendar button or a sibling control does not. Enter
141
+ * and a calendar pick still commit.
142
+ */
143
+ noBlurCommit: boolean;
88
144
  /** Controls whether the calendar popup is visible. */
89
145
  private calendarOpen;
90
146
  /** Date shown in the text input, formatted according to `displayFormat`. */
@@ -94,6 +150,22 @@ export default class CxInputDatePicker extends CortexElement {
94
150
  disconnectedCallback(): void;
95
151
  runFirstUpdated(): Promise<void>;
96
152
  private readonly dateMaskBlocks;
153
+ /**
154
+ * `calendar-button` mode: the year takes any one to four digits and never drops or rewrites one (the host checks the
155
+ * accepted range); a single day or month digit that cannot start a two-digit one is padded (3 → 03).
156
+ */
157
+ private readonly openYearMaskBlocks;
158
+ /** Moves focus to the date field. */
159
+ focus(options?: FocusOptions): void;
160
+ /** `calendar-button` mode: what the field shows now, including text the user has not committed. */
161
+ get typedValue(): string;
162
+ /**
163
+ * `calendar-button` mode: writes `text` into the field, even when `value` does not change, and treats it as
164
+ * committed. Use it to show a normalized day, keep a blocked day, or empty the field.
165
+ */
166
+ setDisplayText(text: string): void;
167
+ /** `partial-date` on its own still opens the calendar from the button: it only makes sense with `calendar-button`. */
168
+ private get hasCalendarButton();
97
169
  getForm(): HTMLFormElement | undefined;
98
170
  /** The concrete pattern (e.g. `DD/MM/YYYY`) resolved from `displayFormat`. */
99
171
  private get datePattern();
@@ -121,16 +193,60 @@ export default class CxInputDatePicker extends CortexElement {
121
193
  private handleDateChange;
122
194
  private handleDateBlur;
123
195
  private handleShowCalender;
196
+ /** Focusing the field selects its text, so typing replaces the day as today's boxes do. */
197
+ private handleDateFocus;
198
+ /**
199
+ * `calendar-button` mode: a typed day is committed once it is complete, without opening the calendar. With
200
+ * `partial-date` only digits and "/" stay, and nothing commits until Enter or focus leaves: a year alone is already a
201
+ * whole date, so a full field is no sign the user is done.
202
+ */
203
+ private handleTypedInput;
204
+ /** `partial-date`: keeps digits and "/", at most ten characters (a full day); anything else typed or pasted goes. */
205
+ private keepPartialDateCharacters;
206
+ /**
207
+ * `calendar-button` mode: reports the field text as a commit when it changed since the last write or commit. With
208
+ * `force` (Enter) it reports even an unchanged text, so the host can check it again.
209
+ */
210
+ private commitTypedText;
211
+ /**
212
+ * The button sits inside `cx-input`'s container, whose mousedown pulls focus into the text field. Stopping it here
213
+ * keeps the click on the button, so the calendar opens and takes focus.
214
+ */
215
+ private handleCalendarButtonMouseDown;
216
+ private handleCalendarButtonClick;
217
+ /**
218
+ * The popup's content can take focus only once it has opened: move focus to the field's day, else today. With
219
+ * `partial-date`, the typed day, month or year.
220
+ */
221
+ private handlePopupOpened;
222
+ /** Closes the calendar dialog and gives focus back to its button. */
223
+ private closeCalendarToButton;
224
+ private handleCalendarPanelKeyDown;
124
225
  private handleCalendarPanelPointerDown;
125
226
  private handleDocumentPointerDown;
126
227
  private handleDocumentKeyDown;
127
228
  private handleClearClick;
128
229
  private handleCalendarDateSelect;
230
+ /** `calendar-button` mode: a pick shows the day in the field, commits it and gives focus back to the button. */
231
+ private commitCalendarPick;
129
232
  private commitFromCalendar;
130
233
  private commitValue;
131
234
  private closeCalendar;
132
235
  private renderCalendarIcon;
133
236
  private renderShowtime;
237
+ /**
238
+ * The date field. `calendar-button` mode keeps a mask that takes any four-digit year; `partial-date` drops the mask so
239
+ * a year alone or a month and year can be typed, and keeps only digits and "/" itself.
240
+ */
241
+ private renderDateInput;
242
+ /**
243
+ * `calendar-button` mode: a real button in the field's suffix, in place of the decorative icon. It stays in this
244
+ * shadow root (slotted into `cx-input`), so `aria-controls` reaches the dialog.
245
+ */
246
+ private renderCalendarButton;
247
+ /** The calendar's bounds: the database range with a calendar button, every four-digit year with `partial-date`. */
248
+ private get calendarBounds();
249
+ private renderCalendarPanel;
134
250
  render(): import('lit-html').TemplateResult<1>;
135
251
  }
136
252
  declare global {
@@ -49,6 +49,7 @@ export default class CxSidebar extends CortexElement {
49
49
  'cx-resize-observer': typeof CxResizeObserver;
50
50
  };
51
51
  header: HTMLElement;
52
+ mainContent: HTMLElement;
52
53
  openTrigger: HTMLElement | null;
53
54
  /**
54
55
  * Sets the side for the component.
@@ -33,6 +33,13 @@ type ImageSizeBound = {
33
33
  * Without an asset, the crop's pixel size is capped by the steps above it.
34
34
  *
35
35
  * @event `cx-asset-link-format-change` - Emitted when the asset link format is changed.
36
+ * Without an asset (Format Proxy, rendition picker), the detail is the transformation string. With
37
+ * `can-percent-dimensions` on, it ends with the Dimensions percent: `|<W>%,<H>%`, or `|` alone when
38
+ * the choice is not a percent (e.g. `c_w_16,c_h_9/q_level_70|50%,50%`). Both sides are the same
39
+ * whole number from 1 to 100. Every event sent while `can-percent-dimensions` is on carries it;
40
+ * setting the flag or `percent-dimensions` sends no event. Split on the last `|`.
41
+ * With an asset, the detail is `/t/<transformations>/<file>.<ext>` with no suffix: a percent is
42
+ * not reported there.
36
43
  * @event cx-asset-link-format-reorder - Emitted with parts and transformations after a user reorder, Undo or Reset of order.
37
44
  * @event cx-asset-link-format-crop-toggle - Emitted with the enabled state of Crop in the Formats layout.
38
45
  *
@@ -96,6 +103,16 @@ export default class CxAssetLinkFormat extends CortexElement {
96
103
  height: number;
97
104
  width: number;
98
105
  } | undefined;
106
+ /**
107
+ * The Dimensions choice when it is a percent size; undefined for a preset or a pixel size.
108
+ */
109
+ private static getPercentDimensions;
110
+ /**
111
+ * The percent choice of a `<W>%,<H>%` text (e.g. `50%,50%`), as the change event writes it: one
112
+ * whole scale from 1 to 100 for both sides, as the panel takes it and Cortex stores it. Undefined
113
+ * for any other text, such as decimals, sides above 100 or unequal sides.
114
+ */
115
+ private static parsePercentDimensions;
99
116
  /**
100
117
  * The largest image size after `step` (undefined: unknown). A pixel Resize sets it, Dimensions caps
101
118
  * it, Rotate turns it (bounding box), an aspect-ratio Resize makes it unknown.
@@ -133,7 +150,15 @@ export default class CxAssetLinkFormat extends CortexElement {
133
150
  * This property is required for the component to function correctly.
134
151
  */
135
152
  asset: Asset | undefined;
153
+ /**
154
+ * The crop modes offered, in order: ratio modes (`16:9`) and auto modes (`auto: true`). Free (`free`) is the
155
+ * start mode and always offered: a list without it gets it first, labelled "Free".
156
+ */
136
157
  cropModes: CropMode[];
158
+ /**
159
+ * The focus modes offered, in order. Manual focus (`manual`) is the start mode and always offered: a list
160
+ * without it, an empty one included, gets it first, labelled "Manual focus".
161
+ */
137
162
  focusModes: FocusMode[];
138
163
  /**
139
164
  * The list of available file extensions for the asset.
@@ -194,6 +219,7 @@ export default class CxAssetLinkFormat extends CortexElement {
194
219
  /**
195
220
  * Space-separated list of panels to show, in display order (e.g. "proxy crop resize").
196
221
  * Valid tokens: proxy, dimensions, crop, resize, rotate, quality, metadata.
222
+ * Set to `undefined` or `null` for the default panels; an empty list shows none.
197
223
  */
198
224
  parts: AssetLinkFormatPart[];
199
225
  /**
@@ -220,10 +246,25 @@ export default class CxAssetLinkFormat extends CortexElement {
220
246
  */
221
247
  qualityItems: QualityItem[];
222
248
  /**
223
- * Include Custom (a width and height in pixels or percent) in the Dimensions dropdown.
224
- * A percent size writes no segment.
249
+ * Include Custom (a width and height in pixels, or in percent with `can-percent-dimensions`) in the
250
+ * Dimensions dropdown. A percent size writes no segment.
225
251
  */
226
252
  canCustomDimensions: boolean;
253
+ /**
254
+ * Offer Percent as a Custom Dimensions unit and report it in `cx-asset-link-format-change`
255
+ * (without an asset only). Percent is offered only with `can-custom-dimensions`, `dimensions` in
256
+ * `parts`, and no `asset`. In the panel a percent is one whole scale from 1 to 100, with W and H
257
+ * kept equal, as Cortex stores it. Off: Percent is hidden and the event detail is unchanged.
258
+ */
259
+ canPercentDimensions: boolean;
260
+ /**
261
+ * The starting percent choice, `<W>%,<H>%` (e.g. `50%,50%`): the text the change event reports,
262
+ * without the `|`, with both sides the same whole number from 1 to 100. Applied when it changes, or when Percent becomes offered or not (e.g. an asset
263
+ * arrives), before or after `transformations`; `''` clears a percent choice. Ignored when Percent is not offered
264
+ * (see `can-percent-dimensions`), when it is invalid, or when `transformations` has a Dimensions
265
+ * step: the step wins whichever is set first.
266
+ */
267
+ percentDimensions: string;
227
268
  lastImageSize: {
228
269
  height: number;
229
270
  width: number;
@@ -257,8 +257,13 @@ export default class CxAssetLinkFormatCrop extends CortexElement {
257
257
  */
258
258
  private handleAspectRatioClick;
259
259
  /**
260
- * The mask of a size input: whole numbers from 1. In pixels it also stops at `max`, and `autofix`
261
- * turns a larger number into `max` as it is typed. Ratio values and an unknown (0) max have no cap.
260
+ * The largest value of a size side: `max` in pixels, never above `MAX_TRANSFORMATION_SIDE`. Ratio values and
261
+ * an unknown (0) or infinite max stop at `MAX_TRANSFORMATION_SIDE` only.
262
+ */
263
+ private getSideMax;
264
+ /**
265
+ * The mask of a size input: whole numbers from 1 to `getSideMax(max)`. `autofix` turns a larger number
266
+ * into that max as it is typed.
262
267
  */
263
268
  private getSizeMaskBlocks;
264
269
  /**
@@ -10,16 +10,20 @@ import { default as CxSpace } from '../../../../../atoms/src/components/space/sp
10
10
  import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
11
11
  import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
12
12
  import { AssetLinkFormatApplyBehavior, DimensionsItem, DimensionsValue } from '../../../../../types/src/asset-link-format';
13
- import { CSSResultGroup, TemplateResult } from 'lit';
13
+ import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
14
14
  export type CxAssetLinkFormatDimensionsChangeEvent = CustomEvent<DimensionsValue>;
15
+ /** The largest percent: Cortex stores a percent size as one whole scale from 1 to 100. */
16
+ export declare const MAX_DIMENSIONS_PERCENT = 100;
15
17
  /**
16
- * @summary Select a dimensions preset or a custom maximum width and height, in pixels or percent.
18
+ * @summary Select a dimensions preset or a custom maximum width and height, in pixels, or in percent
19
+ * with `can-percent`. A percent is one whole scale from 1 to 100: typing W or H sets both.
17
20
  * @event cx-asset-link-format-dimensions-change - Emitted with the selected dimensions value.
18
21
  * `cx-asset-link-format` turns it into its Dimensions transformation.
19
22
  * @csspart icon - The summary icon.
20
23
  * @csspart input-label - The width and height prefixes.
21
24
  */
22
25
  export default class CxAssetLinkFormatDimensions extends CortexElement {
26
+ #private;
23
27
  static readonly styles: CSSResultGroup;
24
28
  static readonly dependencies: {
25
29
  'cx-button': typeof CxButton;
@@ -59,6 +63,11 @@ export default class CxAssetLinkFormatDimensions extends CortexElement {
59
63
  * Offer custom width and height controls.
60
64
  */
61
65
  canCustom: boolean;
66
+ /**
67
+ * Offer Percent as a custom unit: one whole scale from 1 to 100, with W and H kept equal.
68
+ * Off: Percent is hidden, and a percent `value` shows as no selection.
69
+ */
70
+ canPercent: boolean;
62
71
  /**
63
72
  * Selected preset or custom size. Undefined means no selection.
64
73
  */
@@ -75,7 +84,7 @@ export default class CxAssetLinkFormatDimensions extends CortexElement {
75
84
  * The custom width and height as typed, per unit, kept while another option is selected.
76
85
  */
77
86
  private customDimensionsDrafts;
78
- handleDimensionsValueChange(): void;
87
+ willUpdate(changedProperties: PropertyValues<this>): void;
79
88
  private emitDimensionsValue;
80
89
  private getCustomDimensionsValue;
81
90
  private get pendingValue();
@@ -18,6 +18,7 @@ export type CxAssetLinkFormatQualityChangeEvent = CustomEvent<number>;
18
18
  * @event `cx-asset-link-format-quality-change` - Emitted when the quality settings are changed.
19
19
  */
20
20
  export default class CxAssetLinkFormatQuality extends CortexElement {
21
+ #private;
21
22
  static readonly styles: CSSResultGroup;
22
23
  static readonly dependencies: {
23
24
  'cx-button': typeof CxButton;
@@ -125,6 +125,8 @@ export default class CxDownloader extends CortexElement {
125
125
  private isCancelling;
126
126
  private isRetrying;
127
127
  private isSearchOpen;
128
+ /** Folder request the browser refused to open a picker for; null when none is waiting for a new click. */
129
+ private blockedLocationRequest;
128
130
  private totalSize;
129
131
  updateTotalSize(): Promise<void>;
130
132
  private countByStatus;
@@ -139,6 +141,9 @@ export default class CxDownloader extends CortexElement {
139
141
  disconnectedCallback(): void;
140
142
  protected runFirstUpdated(): void;
141
143
  requestLocation(transactionID: string | null): void;
144
+ private handleBlockedLocationRetry;
145
+ private handleBlockedLocationCancel;
146
+ private handleBlockedLocationDismiss;
142
147
  requestDownload({ containerName, transactionID }: any): void;
143
148
  private buildDownloadManager;
144
149
  fireNotification(message: string, title: string | undefined, options: {
@@ -212,6 +217,7 @@ export default class CxDownloader extends CortexElement {
212
217
  renderBandWidth(showLabel?: boolean): TemplateResult;
213
218
  renderFullView(): TemplateResult;
214
219
  renderSmallView(): TemplateResult;
220
+ renderBlockedLocationDialog(): TemplateResult;
215
221
  render(): TemplateResult;
216
222
  }
217
223
  declare global {
@@ -20,6 +20,7 @@ export { default as CxFileOnDemand } from './file-on-demand/file-on-demand';
20
20
  export { default as CxFindAndReplace } from './find-and-replace/find-and-replace';
21
21
  export { default as CxLightbox } from './lightbox/lightbox';
22
22
  export { default as CxListEditor } from './list-editor/list-editor';
23
+ export { default as CxSearchFacets } from './search-facets/search-facets';
23
24
  export { default as CxSearchBox } from './content-builder/blocks/search-box/search-box';
24
25
  export { default as CxSpaceSelector } from './space-selector/space-selector';
25
26
  export { default as CxSpecialCharactersDialog } from './special-characters-dialog/special-characters-dialog';
@@ -0,0 +1,95 @@
1
+ import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
2
+ import { CSSResultGroup, nothing, PropertyValues } from 'lit';
3
+ import { Facet, SearchFacetDateDraft } from '../../types';
4
+ /**
5
+ * @summary One filter of `cx-search-facets`: its header (select all, name, open/close arrow, reset) and a body selected
6
+ * by filter kind.
7
+ * @description A facet the server lets close (`canCollapse`) has a heading button that folds its body; its arrow is
8
+ * independently controlled by `showExpandArrow`. A facet that cannot close has a static title and stays open. The
9
+ * owning panel holds the fold: it starts from the facet's `state` and then follows the user, so a payload or a preview
10
+ * never resets it. Select all and reset sit in the header beside the
11
+ * heading button, not inside it, and show also on a closed facet (select all unless `hideWhenCollapsed`). Reset shows
12
+ * while the preview has a pick. Neither shows while the facet is being indexed. Both wait for Apply: the panel queues
13
+ * them and previews the facet, and while a reset waits its button offers the undo on the same button, so focus stays
14
+ * put. Reset and undo show their action label as a tooltip on hover and keyboard focus. The filter name stays on one
15
+ * line; a name cut short shows in full as a tooltip on hover and on keyboard focus of the heading.
16
+ *
17
+ * A standard filter (`kind` omitted or `'facet'`), flat or nested, renders as `cx-search-facet-tree`. Its
18
+ * `cx-search-facet-toggle` and `cx-search-facet-show-more` bubble through to the owning `cx-search-facets`, and its
19
+ * `cx-search-facets-node-expand` on to the host. Escape inside the tree returns focus to the heading.
20
+ *
21
+ * A `date` filter renders `cx-search-facet-date` under the same header, or `cx-search-facet-advanced-date` when its
22
+ * `date.modes` has at least one entry (an advanced date filter). A `color` ("Similar tones") or `similar`
23
+ * ("Conceptually similar to") filter renders `cx-search-facet-color` or `cx-search-facet-similar` with no header at
24
+ * all, whatever the flags: its body is always open. Their `cx-search-facet-toggle` and `cx-search-facet-date-change`
25
+ * bubble through to the owning panel. When a body loses its focused control and has none left, focus goes to the
26
+ * toggle, else the title, else the facet's section.
27
+ *
28
+ * Every facet's section is a region named "<label> filter" from the facet label, never from the title, whose arrow
29
+ * icon text would join the name.
30
+ *
31
+ * @event {{ facetId: string; expanded: boolean }} cx-search-facets-facet-expand - The user opened or closed the facet.
32
+ * Reaches the host.
33
+ * @event {{ facetId: string; checked: boolean }} cx-search-facet-select-all - Internal: the header's select-all
34
+ * checkbox was changed. The panel stops it.
35
+ * @event {{ facetId: string }} cx-search-facet-reset - Internal: reset or its undo was pressed. The panel stops it.
36
+ *
37
+ * @csspart facet-header - The header row.
38
+ * @csspart facet-select-all - The header's select-all checkbox.
39
+ * @csspart facet-select-all-lock - The focusable wrapper around a locked select all, which carries the lock's tooltip.
40
+ * @csspart facet-toggle - The heading button that folds a facet that can close.
41
+ * @csspart facet-title - The filter name. Programmatically focusable on a facet that cannot close, so focus has a
42
+ * target when the body cannot keep it.
43
+ * @csspart facet-reset - The reset (or undo) button.
44
+ * @csspart facet-body - The filter body.
45
+ * @csspart facet-indexing - The server-supplied status shown while the facet is being indexed.
46
+ * @csspart facet-empty - The server-supplied text shown in place of the values of a facet that has none.
47
+ */
48
+ export default class CxSearchFacet extends CortexElement {
49
+ #private;
50
+ static readonly styles: CSSResultGroup;
51
+ static readonly dependencies: Record<string, typeof CortexElement>;
52
+ private readonly localize;
53
+ private readonly toggleButton?;
54
+ private readonly titleElement?;
55
+ private readonly sectionElement?;
56
+ private readonly treeBody?;
57
+ /** The facet to render, including the panel's pending-change preview. */
58
+ facet?: Facet;
59
+ /** Heading level of the facet title. */
60
+ headingLevel: number;
61
+ /** Whether a facet that can close is open. The owning panel holds it; a facet that cannot close ignores it. */
62
+ expanded: boolean;
63
+ /** Blocks selection changes, select all, reset and More, for example while an Apply is in flight. */
64
+ disabled: boolean;
65
+ /** Set while a reset of this facet waits for Apply, so its button offers the undo. */
66
+ resetWaiting: boolean;
67
+ /** Set while a clear waits for Apply: it already resets this facet, so reset is blocked. */
68
+ clearWaiting: boolean;
69
+ /** Shows the body's More button as loading while the panel waits for the longer list. */
70
+ moreLoading: boolean;
71
+ /** Blocks the body's More button while another facet's More request is in flight. */
72
+ moreDisabled: boolean;
73
+ /** The user's open/closed choice per tree branch, held by the owning panel and passed on to the body. */
74
+ nodeFolds: ReadonlyMap<string, boolean>;
75
+ /** A date facet's blocked day, held by the owning panel so it survives a fold. */
76
+ dateDraft?: SearchFacetDateDraft;
77
+ /** Bumped by the owning panel on every explicit clear of a date facet, so its body rewrites both fields. */
78
+ dateFieldsReset: number;
79
+ /** Whether the heading (toggle or static title) has keyboard focus, which opens a cut name's tooltip. */
80
+ private isTitleFocused;
81
+ willUpdate(changedProperties: PropertyValues<this>): void;
82
+ updated(changedProperties: PropertyValues<this>): void;
83
+ /**
84
+ * Puts focus on a value of this facet's body, for the owning panel to leave the user on the value they ticked.
85
+ * Resolves with whether the body had the value to take focus: a closed facet, or one that is not a list of values,
86
+ * has none.
87
+ */
88
+ focusValue(value: string): Promise<boolean>;
89
+ render(): import('lit-html').TemplateResult<1> | typeof nothing;
90
+ }
91
+ declare global {
92
+ interface HTMLElementTagNameMap {
93
+ 'cx-search-facet': CxSearchFacet;
94
+ }
95
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,90 @@
1
+ import { FacetDateMessageKey, FacetDateSide, FacetDateTimeUnit } from '../../types';
2
+ import { DateDisplayPattern, DatePart, DateReadingOptions } from '../search-facet-date/date-range-validation';
3
+ /** The digits of one advanced date's boxes, as typed. */
4
+ export type DateParts = Record<DatePart, string>;
5
+ export declare const EMPTY_DATE_PARTS: DateParts;
6
+ /** One date's time selects, each `HH`, `mm` or `ss`, or `''` while left blank. */
7
+ export type TimeParts = Record<FacetDateTimeUnit, string>;
8
+ export declare const EMPTY_TIME_PARTS: TimeParts;
9
+ /** One date read on its own. `value` is set only for a readable date; `parts` is what the boxes show after the commit. */
10
+ interface AdvancedDateReading {
11
+ error?: FacetDateMessageKey;
12
+ /** Nothing typed in any box. */
13
+ isEmpty: boolean;
14
+ parts: DateParts;
15
+ /** Set when the whole year, read as a number, falls outside 0001-9999 (`10000` and `9999999999` included). */
16
+ rangeError?: FacetDateMessageKey;
17
+ /** `YYYY`, `YYYY-MM` or `YYYY-MM-DD`. */
18
+ value?: string;
19
+ }
20
+ /** Every shown date read and checked in today's order. */
21
+ export interface AdvancedDateValidation {
22
+ error?: FacetDateMessageKey;
23
+ field?: FacetDateSide;
24
+ /** What each shown date's boxes show after the commit. */
25
+ partsBySide: Partial<Record<FacetDateSide, DateParts>>;
26
+ /** The dates to queue, by side: set only when the whole body is valid. */
27
+ valuesBySide: Partial<Record<FacetDateSide, string>>;
28
+ }
29
+ export declare function isEmptyDateParts(parts: DateParts): boolean;
30
+ /** A date with a day, a month and a year: the only kind a time may go with. */
31
+ export declare function isFullDay(parts: DateParts): boolean;
32
+ export declare function isEmptyTimeParts(time: TimeParts): boolean;
33
+ /**
34
+ * Splits an applied value at the space that starts its time: `2021-11-29 10:30:15` is the day `2021-11-29` and the time
35
+ * `10:30:15`. A value without a time has an empty one.
36
+ */
37
+ export declare function splitDateTime(value: string | null | undefined): {
38
+ date: string;
39
+ time: string;
40
+ };
41
+ /**
42
+ * Splits `YYYY`, `YYYY-MM` or `YYYY-MM-DD` into the boxes; the missing parts stay empty ("2021" fills the year only). A
43
+ * time after the day is left out: the date never shows it.
44
+ */
45
+ export declare function partsFromValue(value: string | null | undefined): DateParts;
46
+ /** The time selects from an applied value: only the units the field shows; a day alone leaves them all blank. */
47
+ export declare function timeFromValue(value: string | null | undefined, timeUnits: readonly FacetDateTimeUnit[]): TimeParts;
48
+ /**
49
+ * The value a date sends with its time selects: the date alone when no unit is picked (the whole day), else
50
+ * `YYYY-MM-DD HH:mm:ss` with each unit not picked, or not shown, as `00`. Only a full day takes a time.
51
+ */
52
+ export declare function withTime(dateValue: string, time: TimeParts, timeUnits: readonly FacetDateTimeUnit[]): string;
53
+ /** The time as a draft keeps it: the shown units joined with `:`, an empty unit left empty (`10::`). */
54
+ export declare function timeToText(time: TimeParts, timeUnits: readonly FacetDateTimeUnit[]): string;
55
+ /** Reads a draft's time back, unit by unit in the shown order. */
56
+ export declare function timeFromText(text: string, timeUnits: readonly FacetDateTimeUnit[]): TimeParts;
57
+ /**
58
+ * The field's text for a date, with only the parts it has: a year alone (`2021`), a month and year (`11/2021`, or
59
+ * `2021/11` when the format starts with the year), or every part in display order (`29/11/2021`). A day without a month
60
+ * keeps its empty month (`12//2021`), so the text reads back as typed.
61
+ */
62
+ export declare function partsToText(parts: DateParts, displayFormat: DateDisplayPattern): string;
63
+ /**
64
+ * Reads the field's text by the number of pieces it holds: one is a year, two a month and year (year first when the
65
+ * format starts with the year), three every part in display order. Non-digits inside a piece are dropped.
66
+ */
67
+ export declare function partsFromText(text: string, displayFormat: DateDisplayPattern): DateParts;
68
+ /**
69
+ * The first instant of a date, `YYYY-MM-DD HH:mm:ss`: a year counts from 1 January, a month from its 1st, a day from
70
+ * 00:00:00, a time as picked, as today's Interval Dates compares them.
71
+ */
72
+ export declare function firstInstantOf(value: string): string;
73
+ /**
74
+ * Reads one date: a year is required, the month is optional, a day needs a month. A 1-3 digit year follows the year
75
+ * shortcut, a one-digit month or day is padded. Never builds the date with `new Date(iso)`.
76
+ */
77
+ export declare function readAdvancedDate(typed: DateParts, options: DateReadingOptions): AdvancedDateReading;
78
+ /** A date's time selects, sent only on a field that shows a time. */
79
+ export interface AdvancedDateTimes {
80
+ timeBySide: Partial<Record<FacetDateSide, TimeParts>>;
81
+ timeUnits: readonly FacetDateTimeUnit[];
82
+ }
83
+ /**
84
+ * Reads the shown dates and checks them in today's order, stopping at the first failure: a part typed without what it
85
+ * needs or a date that does not exist, then a shown date left empty, then From after Until (the time included), then
86
+ * the 0001-9999 range. The boxes show each date as read even when a later check fails; only a date that cannot be read
87
+ * keeps its typing. An error never queues a date. A full day takes its time selects; a year or a month drops them.
88
+ */
89
+ export declare function validateAdvancedDate(sides: readonly FacetDateSide[], typedBySide: Partial<Record<FacetDateSide, DateParts>>, options: DateReadingOptions, times?: AdvancedDateTimes): AdvancedDateValidation;
90
+ export {};
@@ -0,0 +1,85 @@
1
+ import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
2
+ import { CSSResultGroup, nothing, PropertyValues } from 'lit';
3
+ import { Facet, SearchFacetDateDraft } from '../../types';
4
+ /**
5
+ * @summary The body of an advanced date filter of `cx-search-facets` (a `kind: 'date'` facet with `date.modes`): the
6
+ * mode select, the mode's dates as `cx-input-date-picker` (`calendar-button partial-date`: one field and a calendar
7
+ * button), and Clear.
8
+ * @description Each date takes a year alone, a month and year, or a full day, sent as `YYYY`, `YYYY-MM` or
9
+ * `YYYY-MM-DD`. On a field that shows a time (`date.timeUnits`), each date also has an hour select, then minute and
10
+ * second selects as the field asks, enabled only while the date is a full day; a day with a time is sent as
11
+ * `YYYY-MM-DD HH:mm:ss`, a day with none alone (the whole day). The time picked is kept until a commit reads a year or a
12
+ * month, so correcting the day does not lose it. Each date and its time selects form one named group. A date is
13
+ * checked as it commits (Enter, a calendar pick, a time pick, or focus leaving its group), in today's order:
14
+ * a part typed without what it needs or a day that does not exist, then a shown date left empty, then From after Until,
15
+ * then the 0001-9999 range. A valid state is sent to the panel with its mode, which queues it until Apply; a failure
16
+ * shows the site's message under the body, marks the date invalid, ties the message to that date as its description
17
+ * and holds Apply. Picking a mode empties the dates;
18
+ * Indefinite is valid at once, a mode that takes dates holds Apply until they are typed, but its missing-date message
19
+ * waits for a date's commit or a press of Apply, as today shows none for a mode just picked. Clear, the blank choice and
20
+ * the header reset empty the mode and every date.
21
+ *
22
+ * The panel keeps a blocked state as `draft`, so it survives a fold, and bumps `fieldsReset` on every explicit clear.
23
+ * The body rewrites the dates only on its first render, its own commit, an explicit clear, or a change of the applied
24
+ * value while the user is not editing, so a payload never overwrites typing.
25
+ *
26
+ * @event {SearchFacetDateChangeDetail} cx-search-facet-date-change - Internal: a valid state with its `mode`, or
27
+ * `invalid` with the draft. The panel stops it.
28
+ *
29
+ * @csspart date-mode - The mode select.
30
+ * @csspart date-field - Each date's `cx-input-date-picker`.
31
+ * @csspart date-time - Each time select of a date, on a field that shows a time.
32
+ * @csspart date-clear - The Clear button.
33
+ * @csspart date-message - The validation message region.
34
+ */
35
+ export default class CxSearchFacetAdvancedDate extends CortexElement {
36
+ #private;
37
+ static readonly styles: CSSResultGroup;
38
+ static readonly dependencies: Record<string, typeof CortexElement>;
39
+ /** The applied mode and dates, as one comparable key. */
40
+ private static appliedKeyOf;
41
+ /** Each date's time selects from the applied value: blank for a day alone, a year or a month. */
42
+ private static timeFromApplied;
43
+ /** A draft text splits at its first space: the date before it, the time selects after it. */
44
+ private static splitDraftText;
45
+ /** The dates a mode shows, in order; none for the blank choice or a mode the filter does not offer. */
46
+ private static sidesOf;
47
+ /** Each picker's text from the applied value: the missing parts stay empty ("2021" fills the year only). */
48
+ private static textFromApplied;
49
+ /** Each picker's text after a commit: the parts as read, in display order. */
50
+ private static textFromParts;
51
+ /** The side a picker, a time select or a date's group was drawn for. */
52
+ private static sideOf;
53
+ /** Whether the date's text holds a day, a month and a year: only then may a time be picked. */
54
+ private static isFullDayText;
55
+ private readonly localize;
56
+ private readonly modeSelect?;
57
+ private readonly messageRegion?;
58
+ /** The date facet, including the panel's preview of its waiting edit. */
59
+ facet?: Facet;
60
+ /** Blocks every control, for example while an Apply is in flight. */
61
+ disabled: boolean;
62
+ /** A blocked state the panel keeps for this facet: what the select and the dates show while a message stands. */
63
+ draft?: SearchFacetDateDraft;
64
+ /** Bumped by the panel on every explicit clear; a change rewrites the select and the dates from the preview. */
65
+ fieldsReset: number;
66
+ /** The mode the select shows; `''` is the blank choice. */
67
+ private shownMode;
68
+ /** The validation message the body shows, and the side it is about. */
69
+ private message?;
70
+ /**
71
+ * Each date's time selects. Kept while the date is not a full day, so correcting the day does not lose the time; the
72
+ * next commit that reads a year or a month drops it.
73
+ */
74
+ private timeBySide;
75
+ /** Which dates hold a full day as typed now: their time selects are enabled. */
76
+ private fullDayBySide;
77
+ willUpdate(changedProperties: PropertyValues<this>): void;
78
+ updated(changedProperties: PropertyValues<this>): void;
79
+ render(): import('lit-html').TemplateResult<1> | typeof nothing;
80
+ }
81
+ declare global {
82
+ interface HTMLElementTagNameMap {
83
+ 'cx-search-facet-advanced-date': CxSearchFacetAdvancedDate;
84
+ }
85
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;