@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
@@ -0,0 +1,198 @@
1
+ import { default as CortexElement } from '../../../base/src/cortex-element.ts';
2
+ import { CSSResultGroup, PropertyValues } from 'lit';
3
+ import { SearchFacetsData, SearchFacetsRequestResult } from './types';
4
+ export type { ActionDescriptor, ClearKind, Facet, FacetChange, FacetCheck, FacetColor, FacetDate, FacetDateHour, FacetDateMessages, FacetDateMode, FacetDatePeriod, FacetDateTimeUnit, FacetIndexingStatus, FacetKind, FacetNode, FacetPresentation, FacetSelectAll, FacetState, PanelConfig, SearchFacetsData, SearchFacetsRequestResult, SearchFacetsSummary, SummaryCriterion, ToggleVia, } from './types';
5
+ /**
6
+ * @summary Search filter panel. The host owns fetching and supplies contract-v0 data; the panel owns the local
7
+ * selection preview and sends the user's net changes as one batch on Apply.
8
+ * @description Ticks are queued, not committed: reversing a tick removes it again, and the Apply button is shown
9
+ * only while at least one net change remains, unless `always-show-apply` keeps it shown so the user can apply an
10
+ * empty batch and have the host search again. While an Apply is in flight, selection is blocked. The next payload
11
+ * resolves it (or, once the server echoes it, the payload whose `responseTo` matches the request ID). A payload for
12
+ * another search discards pending changes. The host replaces this element when it switches panels, and disconnecting
13
+ * discards pending changes and timers. Ticks arrive from the facet bodies as `cx-search-facet-toggle`, which the panel
14
+ * stops so it never reaches the host.
15
+ *
16
+ * When the Apply that held focus leaves with its answer, focus goes back to the value the user ticked last, as today's
17
+ * panel keeps focus on the control it redraws, and the panel does not scroll. If that value is not there to take it, or
18
+ * the last thing queued was not a tick, focus goes to the panel itself, also without scrolling.
19
+ *
20
+ * A control focused from the keyboard never stays behind the sticky Apply: the panel scrolls it just clear of Apply
21
+ * and its focus ring, as the browser scrolls any focused control into view.
22
+ *
23
+ * More asks the host for a facet's longer list and queues no change. The host answers with a whole payload for the
24
+ * same search and `responseTo: null`: pending changes are carried onto it, and it never resolves an Apply in flight.
25
+ * One More is in flight at a time; the next payload or a timeout ends its loading state. More is disabled while an
26
+ * Apply is in flight.
27
+ *
28
+ * The "Applied filters" block comes first when `panel.showSummary` is not `false` and the summary has chips, or a
29
+ * title: with no chips it is the header alone (title and count, as today's panel on a search with no filters), with
30
+ * nothing to fold and no Clear All. Removing a
31
+ * chip, Clear All and Clear all filters (in the panel header when the block is hidden) wait for Apply like a tick: the
32
+ * panel previews them (a removed facet chip's values, and every value under a clear, return to their default, unticked
33
+ * unless the server sends `defaultChecked`; on a facet with defaults a chip removal returns every value) and pressing
34
+ * the same button again undoes them. The block starts open or closed from the first summary's `collapsed`; the user's
35
+ * choice then holds for the life of the element.
36
+ *
37
+ * Each facet header offers select all and reset (FAC-03, FAC-04), also on a closed facet. Both wait for Apply and
38
+ * replace the facet's earlier ticks; ticks made after them are kept. A waiting reset returns the facet and its chips to
39
+ * their defaults, and its button offers the undo; the server may also reset related filters, which change only after
40
+ * Apply.
41
+ *
42
+ * The batch sends the clear first, then the chip removals, then the facet resets and select-alls, then the ticks, each
43
+ * in the order made.
44
+ *
45
+ * When the search changes outside the panel (search words, a folder, see-thru, bin mode, the AI assistant), the host
46
+ * sets `loading` while it recounts. The panel keeps the last data, blocks every selection and More as during an Apply,
47
+ * leaves Apply enabled but inert, hides the empty text and sets `aria-busy` on its section. The next `data` ends it, or
48
+ * 30 seconds without one. A payload for another search drops the waiting changes, and the status region, which sits
49
+ * outside the busy section, says so once; a sort or a page size keeps the search key, so the changes stay.
50
+ *
51
+ * The status region announces select-only by value name and the result count (including no results) when an Apply's
52
+ * answer arrives, without moving focus. Another selection, request or payload clears that action announcement.
53
+ * The host reports failures through `requestResult` with the active request ID. Matching failures end the wait,
54
+ * keep the last payload and pending changes, and announce the outcome without moving focus. An error also shows
55
+ * a message and decorative icon. For a host recount, set `loadingRequestId` before setting `loading = true`.
56
+ *
57
+ * From `panel.longPanelThreshold` facets on (`>=`, not counting `color` and `similar`), the panel skips layout and paint
58
+ * of the facets far out of view (PNL-09) with CSS only. Every facet stays in the DOM, the tab order, find-in-page and
59
+ * the accessibility tree. The mode is decided again on each payload and keeps the facet elements, focus and scroll.
60
+ *
61
+ * With no facets, `panel.emptyText` shows as given; `''` draws nothing, and omitted or null shows the `noFilters` term.
62
+ * Content slotted into `empty` replaces either. The server writes an unset panel field as null: it reads as omitted.
63
+ *
64
+ * @slot empty - Content shown when the payload contains no facets.
65
+ *
66
+ * @event {{ requestId: string; searchKey?: string; changes: FacetChange[] }} cx-search-facets-apply -
67
+ * Emitted once per Apply click with the net pending changes, which are empty only when `always-show-apply` lets the
68
+ * user apply without one.
69
+ * @event {{ facetId: string }} cx-search-facets-show-more - Emitted when the user presses a facet's More button.
70
+ * @event {{ expanded: boolean }} cx-search-facets-summary-expand - Emitted when the user opens or closes the
71
+ * "Applied filters" block.
72
+ * @event {{ facetId: string; expanded: boolean }} cx-search-facets-facet-expand - Emitted when the user opens or
73
+ * closes a facet the server lets close. A facet starts from its payload `state`; the user's choice then holds for the
74
+ * life of the element.
75
+ * @event {{ facetId: string; value: string; expanded: boolean; foldKey?: string }} cx-search-facets-node-expand -
76
+ * Emitted when the user opens or closes a branch of a tree filter. The host stores the choice under `foldKey`; the panel
77
+ * holds it for the life of the element, across payloads and searches, and needs no data back.
78
+ *
79
+ * @csspart base - The panel container.
80
+ * @csspart header - The panel header, shown with Clear all filters when the "Applied filters" block is hidden.
81
+ * @csspart reset-button - Clear all filters in the panel header.
82
+ * @csspart summary - The "Applied filters" block.
83
+ * @csspart summary-header - The heading button that folds the block.
84
+ * @csspart summary-body - The chips and Clear All.
85
+ * @csspart summary-chip - One chip.
86
+ * @csspart summary-chip-remove - A chip's remove (or undo) button.
87
+ * @csspart summary-clear-all - Clear All in the block.
88
+ * @csspart facet - One standard filter.
89
+ * @csspart footer - The container of the Apply button.
90
+ * @csspart apply-button - The Apply button.
91
+ * @csspart request-error - The visible request error message and icon.
92
+ *
93
+ * @cssproperty [--cx-search-facets-background=transparent] - Background of the panel and of the sticky Apply. Transparent
94
+ * by default, so the panel shows the surface it is drawn on (a popup, a Space's background, the dark theme) with no band
95
+ * around it. A host whose facets should not show behind Apply sets it to its own background color, on the box that draws
96
+ * that color.
97
+ * @cssproperty [--cx-search-facets-padding-inline=0px] - Space on each side of the panel. A host whose container does
98
+ * not pad its content can set it, for example to `var(--cx-spacing-large)`.
99
+ * @cssproperty [--cx-search-facets-padding-block-end=0px] - Space at the end of the panel, after the last facet and
100
+ * Apply. The panel uses the larger of this and the footer inset. Give a unit.
101
+ * @cssproperty [--cx-search-facets-footer-inset-block-end=0px] - How far above the bottom of the scrolling area the
102
+ * sticky Apply stays. It must cover any bar over the host's scroller. Apply also stays at least as far up as that
103
+ * scroller runs below the viewport, which the panel measures itself. Give a unit.
104
+ * @cssproperty [--cx-search-facets-footer-clearance-block-end=0px] - Extra space the sticky Apply keeps above the part
105
+ * of the scrolling area that runs below the viewport, for a bar the host fixes to the bottom of the screen, which covers
106
+ * the scroller without being part of it. Unlike the footer inset, it adds to that measured part. Give a unit.
107
+ */
108
+ export default class CxSearchFacets extends CortexElement {
109
+ #private;
110
+ static readonly styles: CSSResultGroup;
111
+ static readonly dependencies: Record<string, typeof CortexElement>;
112
+ /** Converts the JSON payload rendered by the Cortex host into contract-v0 data. */
113
+ private static dataAttributeConverter;
114
+ /**
115
+ * The box a panel's sticky Apply sticks in: its nearest ancestor, across shadow roots, that clips its overflow. None
116
+ * when the page itself scrolls the panel, where the viewport is that box and nothing runs below it.
117
+ * `private static`, not `static #`: a decorated class cannot have static private names (TS18036).
118
+ */
119
+ private static findScroller;
120
+ private readonly localize;
121
+ /** Re-renders when the host slots or removes empty content, so `emptyText: ''` can still give way to it. */
122
+ private readonly hasSlotController;
123
+ private readonly base;
124
+ /** The sticky Apply's container; null while the footer is not rendered. */
125
+ private readonly footer;
126
+ /** Authoritative contract-v0 payload. */
127
+ data?: SearchFacetsData;
128
+ /**
129
+ * Keeps the Apply button shown while no change is pending, so the user can apply an empty batch and have the host
130
+ * search again. Off by default: the button shows only while changes are pending.
131
+ */
132
+ alwaysShowApply: boolean;
133
+ /**
134
+ * Set to true by the host, by script on the element, while it recounts the filters for a search changed outside the
135
+ * panel. The panel keeps the last data, blocks every selection as during an Apply and marks itself busy. The host
136
+ * never sets it back: the next `data` ends it, or `REQUEST_TIMEOUT_MS` without one.
137
+ */
138
+ loading: boolean;
139
+ /** Host-generated recount ID, set before `loading = true`. Script-only; omitted retains the legacy timeout flow. */
140
+ loadingRequestId?: string;
141
+ /** Terminal error/cancellation for an Apply or recount. Assign a new object; stale and unknown IDs are ignored. */
142
+ requestResult?: SearchFacetsRequestResult;
143
+ /** Net selection changes the user has made against the current payload but not applied yet. */
144
+ private waitingChanges;
145
+ /** True from an Apply click until its payload arrives or the request times out. */
146
+ private applying;
147
+ /** Matching terminal failure, cleared by the next edit, request or accepted payload. */
148
+ private requestFailure?;
149
+ /** Facet whose More request is in flight, from the click until the next payload arrives or the request times out. */
150
+ private moreLoadingFacetId?;
151
+ /**
152
+ * Whether the "Applied filters" block is open. Set from the first summary's `collapsed`, then only by the user, so
153
+ * neither a later payload nor a preview opens or closes it.
154
+ */
155
+ private summaryExpanded?;
156
+ /**
157
+ * The user's open/closed choice per facet ID. A facet without an entry follows its payload `state`; once the user
158
+ * folds it, the choice holds for the life of the element, across payloads and previews.
159
+ */
160
+ private facetFolds;
161
+ /**
162
+ * The user's open/closed choice per tree branch, keyed by `nodeKey(facetId, foldKey ?? value)`. A branch without an
163
+ * entry follows its payload `expanded`; once the user folds it, the choice holds for the life of the element.
164
+ */
165
+ private nodeFolds;
166
+ /**
167
+ * True once a payload for another search dropped changes the user had not applied, so the status region says so.
168
+ * The user's next change or the next payload clears it, so it is announced once.
169
+ */
170
+ private changesDropped;
171
+ /** Context for the latest user action; cleared by the next selection, request or authoritative payload. */
172
+ private actionAnnouncement?;
173
+ /**
174
+ * Date filters whose fields hold something that is not a day, keyed by facet ID: what the fields show and which
175
+ * message. Kept here, not in the body, so it survives a fold. While any is set, Apply sends nothing (FE-5).
176
+ */
177
+ private dateDrafts;
178
+ /** Per date facet, a counter bumped on every explicit clear, so its body rewrites both fields from the preview. */
179
+ private dateFieldResets;
180
+ /**
181
+ * How far the scrolling area around the panel runs below the bottom of the viewport, in pixels. The sticky Apply stays
182
+ * at least this far up, so it stays on screen when the host's inset is smaller than its page needs: the Adobe plugins'
183
+ * side panel runs further below the screen than the full-screen page's inset (L-29TCJE).
184
+ */
185
+ private viewportOverflow;
186
+ connectedCallback(): void;
187
+ disconnectedCallback(): void;
188
+ willUpdate(changedProperties: PropertyValues<this>): void;
189
+ updated(changedProperties: PropertyValues<this>): void;
190
+ /** Drops un-applied changes and stops waiting for an Apply or More in flight. */
191
+ discardChanges(): void;
192
+ render(): import('lit-html').TemplateResult<1>;
193
+ }
194
+ declare global {
195
+ interface HTMLElementTagNameMap {
196
+ 'cx-search-facets': CxSearchFacets;
197
+ }
198
+ }
@@ -0,0 +1,141 @@
1
+ import { Facet, FacetDate, SearchFacetsData, SummaryCriterion } from './types';
2
+ export declare const statusFacet: Facet;
3
+ export declare const assetTypeFacet: Facet;
4
+ export declare const indexingFacet: Facet;
5
+ /** E5 Keywords facet before More: 33 values on the server, cut at 20 (as Types is on qa-latest). */
6
+ export declare const keywordsFacet: Facet;
7
+ /** The Keywords facet after More: all 33 server-ordered values and no further More. */
8
+ export declare const keywordsFacetExpanded: Facet;
9
+ export declare const keywordsFacetWithSelectedPastCut: Facet;
10
+ export declare const keywordsFacetWithSelectedPastCutExpanded: Facet;
11
+ /** Standalone E0 data for component tests. */
12
+ export declare const baseData: SearchFacetsData;
13
+ /** E5 data before More; the host answers More with `moreData`. */
14
+ export declare const longListData: SearchFacetsData;
15
+ /** The host's answer to More on Keywords: same search, `responseTo: null`, the longer list. */
16
+ export declare const moreData: SearchFacetsData;
17
+ /** The Status chip: one of the panel's filters, so its values untick while its removal waits. */
18
+ export declare const statusChip: SummaryCriterion;
19
+ export declare const searchWordsChip: SummaryCriterion;
20
+ /** A date the server cut, with the full text for hover. */
21
+ export declare const dateChip: SummaryCriterion;
22
+ export declare const reverseImageChip: SummaryCriterion;
23
+ /** A forced display value: no filter name, and the host keeps it. */
24
+ export declare const forcedValueChip: SummaryCriterion;
25
+ export declare const seeThruChip: SummaryCriterion;
26
+ /** E7 data: one chip of every kind and the host's heading. */
27
+ export declare const summaryData: SearchFacetsData;
28
+ /** E7 data with the block hidden: Clear all filters moves to the panel header. */
29
+ export declare const hiddenSummaryData: SearchFacetsData;
30
+ /**
31
+ * E4 Orientation: the name picks only that value (`'separate'`, VAL-02). Counts are grouped by the server (VAL-04); a
32
+ * long name is cut with its full text on hover (VAL-08); a pick with no results left stays with count 0 (VAL-06).
33
+ */
34
+ export declare const orientationFacet: Facet;
35
+ /**
36
+ * E4 Rights: the name is plain text beside the checkbox (`'combined'`); counts hidden (VAL-04); a partly picked value
37
+ * (VAL-05); a server-supplied "Undefined" value (VAL-07); labels already mapped by the server (VAL-09); one row for
38
+ * merged values (VAL-13), whose opaque value the server resolves.
39
+ */
40
+ export declare const rightsFacet: Facet;
41
+ /** E4 Types as an exclude filter (VAL-10): with nothing picked the server sends every value ticked. */
42
+ export declare const excludeTypesFacet: Facet;
43
+ /** E4 data: the value options a standard site sends. */
44
+ export declare const valuesData: SearchFacetsData;
45
+ /** E3 data: Status offers select all (some values picked) and reset; Asset type cannot close. */
46
+ export declare const headerData: SearchFacetsData;
47
+ /**
48
+ * E6 roles tree: Roles opens because the site forces its first level open; Editors starts closed with one of its two
49
+ * people picked (mixed) and counts its children (cumulate on). Reviewers has no count of its own (cumulate off).
50
+ */
51
+ export declare const rolesFacet: Facet;
52
+ /** E6 data: the roles tree beside a flat filter, which renders as a tree of one level. */
53
+ export declare const treeData: SearchFacetsData;
54
+ /** The Types filter's id: the module name of today's `MainFacet`. */
55
+ export declare const TYPES_ID = "SearchCriterionFacet_TabMenu_Checkboxes_VForm";
56
+ /**
57
+ * Types with nothing picked on a site whose defaults hold every type (LST-08): every type ticked, Containers a branch,
58
+ * More holding two types back, the select all ticked and locked, reset hidden, today's reset text.
59
+ */
60
+ export declare const typesFacet: Facet;
61
+ /** Types with a saved choice (Videos unticked): the select all partly ticked and operable, reset offered. */
62
+ export declare const typesFacetWithChoice: Facet;
63
+ /** The Types chip while a choice is saved: its values are the ticked types. */
64
+ export declare const typesChip: SummaryCriterion;
65
+ /**
66
+ * Types with nothing picked on a site whose defaults leave a type out, as on COR: Corrupted Files unticked, no More, the
67
+ * select all partly ticked and operable.
68
+ */
69
+ export declare const typesFacetPartDefaults: Facet;
70
+ /** The same Types with a saved choice (Videos unticked), reset offered. */
71
+ export declare const typesFacetPartDefaultsWithChoice: Facet;
72
+ /** Types data with nothing picked: Types first, as the host puts it before the filter list. */
73
+ export declare const typesData: SearchFacetsData;
74
+ /** Types data with a saved choice, the applied block shown with the Types chip. */
75
+ export declare const typesChoiceData: SearchFacetsData;
76
+ /** Options for `longPanelData`: the threshold, the facets that start open, and colour/similar facets to append. */
77
+ export interface LongPanelDataOptions {
78
+ extraKinds?: Array<'color' | 'similar'>;
79
+ openIds?: string[];
80
+ threshold?: number | null;
81
+ valueCount?: number;
82
+ }
83
+ /**
84
+ * E14 data: `count` standard facets `facet-1…n`, closed unless listed in `openIds`. An open facet has `valueCount`
85
+ * values (10 by default), so it is far taller than the 56px placeholder of a facet not painted yet.
86
+ */
87
+ export declare const longPanelData: (count: number, { extraKinds, openIds, threshold, valueCount }?: LongPanelDataOptions) => SearchFacetsData;
88
+ /** COR ids of today's three filters that are not lists of values (E11). Opaque. */
89
+ export declare const DELETED_DATE_ID = "SearchCriterionDate_BinnedDate_InFacets_VForm";
90
+ export declare const ADVANCED_DATE_ID = "SearchCriterionDate_InFacets_AdvancedDate_K3P9QZ_VForm";
91
+ export declare const SIMILAR_TONES_ID = "SearchCriterion_ImageColors_VForm";
92
+ export declare const SIMILAR_ID = "SearchCriterion_RelatedToReferenceDocument_VForm";
93
+ /** A few of the Bin's 16 Deleted Date periods, each with its days today. */
94
+ export declare const deletedDatePeriods: {
95
+ from: string;
96
+ label: string;
97
+ until: string;
98
+ value: string;
99
+ }[];
100
+ /** "Deleted Date" in the Bin, open, nothing applied; COR settings (MM/DD/YYYY, shortcut on, no invalid-date message). */
101
+ export declare const deletedDateFacet: Facet;
102
+ /** The same filter with "Last 30 days" applied. */
103
+ export declare const deletedDateAppliedFacet: Facet;
104
+ /** COR's advanced date modes, in the site's order; `sides` as the server sends them (L-29TIB1). */
105
+ export declare const advancedDateModes: NonNullable<FacetDate['modes']>;
106
+ /**
107
+ * A custom "Advanced date" field as a filter, open, nothing applied; COR settings for a `DD/MM/YYYY` user. Unset fields
108
+ * are `null`, as the server writes them.
109
+ */
110
+ export declare const advancedDateFacet: Facet;
111
+ /** The same filter with Interval Dates applied from a year alone to a month and year. */
112
+ export declare const advancedDateAppliedFacet: Facet;
113
+ /** The same filter with Indefinite applied: a mode alone, no date. */
114
+ export declare const advancedDateIndefiniteFacet: Facet;
115
+ /** COR's hour list, `12am` to `11pm` for `00` to `23`, as the server sends it on a field that shows a time. */
116
+ export declare const advancedDateHours: NonNullable<FacetDate['hours']>;
117
+ export declare const ADVANCED_DATE_TIME_ID = "SearchCriterionDate_InFacets_AdvancedDate_T7M2WX_VForm";
118
+ /** FE-15: "Shot at", an advanced date field that shows hours and minutes, nothing applied. */
119
+ export declare const advancedDateTimeFacet: Facet;
120
+ /** The same filter on a field that shows seconds too, with Single Date applied on a day with a time. */
121
+ export declare const advancedDateTimeAppliedFacet: Facet;
122
+ /** The advanced date chip, as the server writes it, each date at its precision; no `facetId`. */
123
+ export declare const advancedDateChip: SummaryCriterion;
124
+ /** The time filter's chip, its time in the server's `HH:mm:ss`. */
125
+ export declare const advancedDateTimeChip: SummaryCriterion;
126
+ /** "Similar tones": nine colours, two ticked, every tick white as COR sends it. */
127
+ export declare const similarTonesFacet: Facet;
128
+ /** "Conceptually similar to" in a view about one image: operable, with its preview. */
129
+ export declare const similarFacet: Facet;
130
+ /** The same filter in "Similar assets", a fixed list: ticked and locked. */
131
+ export declare const lockedSimilarFacet: Facet;
132
+ /** The "Similar tones" chip with its colours as dots (FE-15); no `facetId`, as the server sends it. */
133
+ export declare const similarTonesChip: SummaryCriterion;
134
+ /** The Deleted Date chip; a facet filter in COR, so Clear all filters removes it. */
135
+ export declare const deletedDateChip: SummaryCriterion;
136
+ /** E11 data in COR order: similar and colours first, then the value facets and the date filter. */
137
+ export declare const nonFacetFiltersData: SearchFacetsData;
138
+ /** L-29TIB1: a plain and an advanced date filter side by side, the advanced one applied as Interval Dates. */
139
+ export declare const advancedDateData: SearchFacetsData;
140
+ /** FE-15: an advanced date filter with a time applied, beside one that shows hours and minutes with nothing applied. */
141
+ export declare const advancedDateTimeData: SearchFacetsData;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { SearchFacetDateDraft } from '../../../../types/src/search-facets';
2
+ import { FacetValueIndex } from './waiting-changes';
3
+ /**
4
+ * Drops the drafts of facets a same-search payload no longer lets the user edit: gone, sent as another kind, or being
5
+ * indexed. Folding, a chip removal and a rebase keep a draft. Returns the same map when nothing is dropped.
6
+ */
7
+ export declare function pruneDateDrafts(drafts: ReadonlyMap<string, SearchFacetDateDraft>, index: FacetValueIndex): ReadonlyMap<string, SearchFacetDateDraft>;
8
+ /** The drafts with every quiet one made to show its message; the same map when none is quiet. */
9
+ export declare function revealQuietDateDrafts(drafts: ReadonlyMap<string, SearchFacetDateDraft>): ReadonlyMap<string, SearchFacetDateDraft>;
10
+ /** The drafts without one facet's; the same map when it has none. */
11
+ export declare function withoutDateDraft(drafts: ReadonlyMap<string, SearchFacetDateDraft>, facetId: string): ReadonlyMap<string, SearchFacetDateDraft>;
@@ -0,0 +1,7 @@
1
+ import { SearchFacetsData } from '../types';
2
+ /**
3
+ * Whether the payload reaches the host's long-panel threshold (PNL-09), so the panel skips painting the facets far out
4
+ * of view. Counts the payload's facets, closed ones included, except `color` and `similar`. A threshold that is omitted,
5
+ * null or not a number turns it off; a fraction is compared as is.
6
+ */
7
+ export declare function isLongPanel(data?: SearchFacetsData | null): boolean;
@@ -0,0 +1,17 @@
1
+ import { SearchFacetsSummary, SummaryCriterion } from '../types';
2
+ import { WaitingChanges } from './waiting-changes';
3
+ /** Why a chip waits for Apply: its own removal, or a waiting clear or facet reset that removes it. */
4
+ export type CriterionWaiting = 'clear' | 'removal';
5
+ /** A chip as the user currently sees it. */
6
+ export interface PreviewCriterion extends SummaryCriterion {
7
+ waiting?: CriterionWaiting;
8
+ }
9
+ /** The summary as the user currently sees it; every other field passes through from the payload. */
10
+ export interface PreviewSummary extends SearchFacetsSummary {
11
+ criteria: PreviewCriterion[];
12
+ }
13
+ /**
14
+ * Marks the chips a waiting removal, clear or facet reset removes. Untouched chips, and the summary itself when no chip is touched,
15
+ * keep their payload object. `canReset`, the title and the fold are never recomputed.
16
+ */
17
+ export declare function previewSummary(summary: SearchFacetsSummary | undefined, changes: WaitingChanges): PreviewSummary | undefined;
@@ -0,0 +1,12 @@
1
+ import { Facet } from '../types';
2
+ import { WaitingChanges } from './waiting-changes';
3
+ /**
4
+ * Derives the visible facets from the authoritative payload and the waiting changes: a waiting clear or facet reset
5
+ * shows every value at its default (unticked unless the server sends `defaultChecked`), a waiting select-all every value
6
+ * ticked or unticked, a waiting chip removal its values at their default (every value of a facet with defaults), and
7
+ * ticks show on top. In a tree a tick on a branch reaches every value below it, and a branch a tick
8
+ * reached shows what its children give it (all ticked: checked, none: unchecked, else mixed), up to the top level.
9
+ * A touched facet's select-all checkbox follows its previewed values.
10
+ * Facets and nodes the changes do not touch keep their payload object, so their bodies do not re-render.
11
+ */
12
+ export declare function previewFacets(facets: Facet[], changes: WaitingChanges): Facet[];
@@ -0,0 +1,9 @@
1
+ import { SearchFacetsData } from '../types';
2
+ /**
3
+ * Whether a payload answers the Apply in flight.
4
+ * A string `responseTo` must match the Apply's request ID; `null` (for example a More response) never answers an
5
+ * Apply; an omitted `responseTo` falls back to "the next payload answers it".
6
+ */
7
+ export declare function resolvesApply(responseTo: SearchFacetsData['responseTo'], applyRequestId?: string): boolean;
8
+ /** Whether a payload is a late answer to an Apply the panel already abandoned. */
9
+ export declare function answersAbandonedApply(responseTo: SearchFacetsData['responseTo'], abandonedRequestIds: ReadonlySet<string>): boolean;
@@ -0,0 +1,179 @@
1
+ import { ClearKind, Facet, FacetChange, FacetCheck, FacetDate, FacetNode, SearchFacetsData, SearchFacetToggleDetail, SummaryCriterion } from '../types';
2
+ /** A chip removal waiting for Apply, with the chip's panel values copied from the payload it was queued against. */
3
+ export interface QueuedRemoval {
4
+ criterionId: string;
5
+ facetId?: string;
6
+ facetValues: readonly string[];
7
+ }
8
+ /**
9
+ * A date filter's range: unset fields are open, and no field at all means no range. `mode` is an advanced date filter's
10
+ * mode; a mode alone (Indefinite) is a range, not a clear.
11
+ */
12
+ export interface DateRange {
13
+ from?: string;
14
+ mode?: string;
15
+ period?: string;
16
+ until?: string;
17
+ }
18
+ /**
19
+ * A whole-facet change waiting for Apply: the header's reset or select all / unselect all, or a date filter's range.
20
+ * An empty `date` op clears an applied range; a date facet never queues `reset`, which the server drops.
21
+ */
22
+ export type FacetOp = ({
23
+ type: 'date';
24
+ } & DateRange) | {
25
+ checked: boolean;
26
+ type: 'selectAll';
27
+ value?: string;
28
+ } | {
29
+ type: 'reset';
30
+ };
31
+ /**
32
+ * What ticks are measured against: the payload as the waiting clear, chip removals and facet header changes alter it.
33
+ * The batch applies them in that order, so a facet header change wins over a removal, which wins over a clear.
34
+ */
35
+ interface Baseline {
36
+ /** At most one clear; it is sent first. */
37
+ readonly clear?: ClearKind;
38
+ readonly facetOps: ReadonlyMap<string, FacetOp>;
39
+ /** Facets with a waiting chip removal: the server then drops all of the facet's picks, so its values return to their default. */
40
+ readonly removedFacetIds: ReadonlySet<string>;
41
+ readonly removedValueKeys: ReadonlySet<string>;
42
+ }
43
+ /**
44
+ * A tick waiting for Apply. A peer untick that a replacement pick generated names the pick's value in `replacedBy`,
45
+ * so a new payload that no longer offers the pick drops these unticks with it. A tick the user made carries no tag.
46
+ */
47
+ export type QueuedToggle = SearchFacetToggleDetail & {
48
+ readonly replacedBy?: string;
49
+ };
50
+ /**
51
+ * Everything the user changed against the current payload but has not applied yet.
52
+ *
53
+ * Ticks are measured against the baseline. A tick that matches it is not a change. This one rule absorbs an untick made
54
+ * before a removal, keeps a tick made after it, and drops re-ticks when a removal, a reset or a clear is undone.
55
+ */
56
+ export interface WaitingChanges extends Baseline {
57
+ /** Facet header changes keyed by facet ID, at most one per facet, in the order the user made them. */
58
+ readonly facetOps: ReadonlyMap<string, FacetOp>;
59
+ /** Waiting chip removals keyed by criterion ID, in the order the user made them. */
60
+ readonly removals: ReadonlyMap<string, QueuedRemoval>;
61
+ /** `nodeKey`s of the values the waiting removals return to their default, derived from `removals`. */
62
+ readonly removedValueKeys: ReadonlySet<string>;
63
+ /** Net ticks keyed by `nodeKey`, in the order the user first changed each value. */
64
+ readonly toggles: ReadonlyMap<string, QueuedToggle>;
65
+ }
66
+ /** Lookup tables built once per authoritative payload. */
67
+ export interface FacetValueIndex {
68
+ /** `nodeKey`s of the values that have children: a tick on one reaches every value below it. */
69
+ branchKeys: ReadonlySet<string>;
70
+ checkedByKey: ReadonlyMap<string, FacetCheck>;
71
+ criteriaById: ReadonlyMap<string, SummaryCriterion>;
72
+ facetsById: ReadonlyMap<string, Facet>;
73
+ /** Payload nodes by identity, including values in closed branches. */
74
+ nodeByKey: ReadonlyMap<string, FacetNode>;
75
+ /** The `nodeKey` of each nested value's parent; a top-level value has none. */
76
+ parentByKey: ReadonlyMap<string, string>;
77
+ }
78
+ export declare const EMPTY_WAITING_CHANGES: WaitingChanges;
79
+ /** Whether the server gave the value a default (`defaultChecked`); the wrapper can write an unset field as `null`. */
80
+ export declare function hasDefaultState(node: FacetNode | undefined): node is FacetNode & {
81
+ defaultChecked: boolean;
82
+ };
83
+ /** Whether the value, or a value below it, has a default: at the defaults a branch then follows its children. */
84
+ export declare function hasDefaults(node: FacetNode): boolean;
85
+ export declare function indexFacetValues(data?: SearchFacetsData): FacetValueIndex;
86
+ export declare function hasWaitingChanges(changes: WaitingChanges): boolean;
87
+ /** Number of operations the next Apply sends. */
88
+ export declare function countWaitingChanges(changes: WaitingChanges): number;
89
+ /** Changes that do not queue a tick: the clear, chip removals and facet header changes. */
90
+ export declare function countNonTickChanges(changes: WaitingChanges): number;
91
+ /**
92
+ * Ticks the new payload no longer keeps: the value is gone or locked. A tick the payload already reflects is dropped
93
+ * by `normalizeToggles` as already applied, not lost, and is not counted.
94
+ */
95
+ export declare function countAbsentToggles(changes: WaitingChanges, index: FacetValueIndex): number;
96
+ /** Clear All removes every removable chip; Clear all filters removes only the panel's filter chips. */
97
+ export declare function clearRemovesCriterion(clear: ClearKind, criterion: SummaryCriterion): boolean;
98
+ /** Whether a waiting reset of the chip's facet removes it, so the chip cannot be removed on its own. */
99
+ export declare function resetRemovesCriterion(changes: WaitingChanges, criterion: SummaryCriterion): boolean;
100
+ /** A branch's state from its children's: ticked when all are, unticked when none is, else mixed. */
101
+ export declare function checkedFromChildChecks(childChecks: readonly FacetCheck[]): FacetCheck;
102
+ /**
103
+ * Effective checked state after every waiting change: the value's own tick, else its nearest ticked ancestor's, else
104
+ * the baseline. A ticked branch reads as checked even while a later untick below it shows it as mixed.
105
+ */
106
+ export declare function isCheckedInPreview(changes: WaitingChanges, index: FacetValueIndex, facetId: string, value: string): boolean;
107
+ /** Reads `null`, `undefined` and `''` alike and leaves unset fields out, so a payload range and an edit compare. */
108
+ export declare function normalizeDateRange(range: DateRange | FacetDate | null | undefined): DateRange;
109
+ /** No mode, no day and no period: nothing applied. A mode alone is not empty. */
110
+ export declare function isEmptyDateRange(range: DateRange): boolean;
111
+ /**
112
+ * Applies one user toggle and normalizes the result against the baseline, so a reversed tick leaves no change.
113
+ * A pick that replaces its peers (see `replacesPeers`) also unchecks the other values the user currently sees checked,
114
+ * applied or waiting; a name click on a value already picked therefore only unchecks the others, and on an
115
+ * all-checked-when-empty filter also sends the pick (see `pickAlwaysReplaces`).
116
+ * In a tree each ticked value is one toggle, a branch included: the server decides what a branch tick writes below it.
117
+ * The preview shows it reaching every value below, and a branch the payload shows `mixed` is always a change.
118
+ * Returns the same object when the toggle targets a value that is not in the payload, or a locked (`disabled`) one.
119
+ */
120
+ export declare function applyToggle(changes: WaitingChanges, index: FacetValueIndex, toggle: SearchFacetToggleDetail): WaitingChanges;
121
+ /**
122
+ * Queues a chip removal, or un-queues it when it already waits. A facet chip's values show at their default while it
123
+ * waits (unticked unless the server sends `defaultChecked`).
124
+ * Returns the same object for a chip the payload does not have, one the host marks not removable, or one the waiting
125
+ * clear or facet reset already removes.
126
+ */
127
+ export declare function toggleRemoval(changes: WaitingChanges, index: FacetValueIndex, criterionId: string): WaitingChanges;
128
+ /**
129
+ * Queues a clear, or undoes it when the same kind already waits.
130
+ * Queueing drops every change made before it, including a waiting clear of the other kind. Undoing keeps the changes
131
+ * made after the clear and does not bring back what it dropped.
132
+ */
133
+ export declare function toggleClear(changes: WaitingChanges, index: FacetValueIndex, clear: ClearKind): WaitingChanges;
134
+ /**
135
+ * Queues a facet reset, or undoes it when one already waits. Queueing drops the facet's earlier ticks and the removal of
136
+ * its chips, which the reset covers, and replaces a waiting select-all; undoing keeps the ticks made after it. When the
137
+ * server has no picks in the facet (`canReset` off) the picks the user sees come only from waiting changes, so reset
138
+ * just drops them and queues nothing.
139
+ * Returns the same object for a facet the payload does not have, one still being indexed, one with nothing picked in
140
+ * the preview, or while a clear waits.
141
+ * The server may also reset related filters; the preview shows only this facet until Apply.
142
+ */
143
+ export declare function toggleReset(changes: WaitingChanges, index: FacetValueIndex, facetId: string): WaitingChanges;
144
+ /**
145
+ * Queues the header's select all (`checked`) or unselect all, replacing the facet's earlier ticks and its waiting reset
146
+ * or select-all. A choice that leaves the facet as the payload has it is no change.
147
+ * Returns the same object for a facet without an operable select-all checkbox, or an unselect all the site's lock
148
+ * refuses.
149
+ */
150
+ export declare function setSelectAll(changes: WaitingChanges, index: FacetValueIndex, facetId: string, checked: boolean): WaitingChanges;
151
+ /**
152
+ * Queues a date filter's range, replacing its earlier edit (the last edit wins). An edit equal to what the facet shows
153
+ * without it, the payload's range or no range while a clear waits, is no change; the same days without the applied
154
+ * period are a change. An empty edit clears an applied range and, with no range applied, only drops the earlier edit.
155
+ * Returns the same object for a facet that is not an editable date facet.
156
+ */
157
+ export declare function setDateEdit(changes: WaitingChanges, index: FacetValueIndex, facetId: string, edit: DateRange): WaitingChanges;
158
+ /**
159
+ * The date header's reset: undoes a waiting clear of the applied range, else clears the applied range, else drops the
160
+ * facet's edit. Never queues `reset`, which the server drops for a date facet.
161
+ */
162
+ export declare function toggleDateReset(changes: WaitingChanges, index: FacetValueIndex, facetId: string): WaitingChanges;
163
+ /** Whether a clear of the date facet's applied range waits, so its reset button offers the undo. */
164
+ export declare function isDateClearWaiting(changes: WaitingChanges, index: FacetValueIndex, facetId: string): boolean;
165
+ /** The range a date facet shows: its waiting edit, else no range while a clear waits, else the payload's range. */
166
+ export declare function previewDateRange(changes: WaitingChanges, facet: Facet): DateRange;
167
+ /**
168
+ * Carries waiting changes onto a new payload for the same search: keeps the clear, drops a removal whose chip is gone
169
+ * or no longer removable and refreshes the others' values, drops a facet header change the new facet no longer offers,
170
+ * and drops ticks the new baseline already reflects or whose value disappeared. Returns the same object when nothing
171
+ * changed.
172
+ */
173
+ export declare function rebaseWaitingChanges(changes: WaitingChanges, index: FacetValueIndex): WaitingChanges;
174
+ /**
175
+ * The Apply batch: the waiting clear first, then the chip removals, then the facet resets and select-alls, then the
176
+ * ticks, each in the order made.
177
+ */
178
+ export declare function toFacetChanges(changes: WaitingChanges): FacetChange[];
179
+ export {};