@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.
- package/library/chunks/{abnfDiagram-N423BO3Z.H1zwr_k6.js → abnfDiagram-N423BO3Z.DF8zrlpl.js} +3 -3
- package/library/chunks/{alert.2Esbser8.js → alert.D4RTWtiS.js} +2 -2
- package/library/chunks/{architectureDiagram-T3A2C74G.AxjW1Pvo.js → architectureDiagram-T3A2C74G.ChMyS2RN.js} +5 -5
- package/library/chunks/{array-line-clamp.C0Vo0Zzg.js → array-line-clamp.CFndztdp.js} +2 -2
- package/library/chunks/{asset-link-format.Ce_3Qz6_.js → asset-link-format.BbDrlRL5.js} +686 -606
- package/library/chunks/{asset-link-format.COPyGdND.js → asset-link-format.D6L-qc3X.js} +8 -8
- package/library/chunks/{audio.B0VfXBIx.js → audio.jEmfjIWU.js} +2 -2
- package/library/chunks/{bicolor-picker.DS9Uut25.js → bicolor-picker.DoLf8yCy.js} +1 -1
- package/library/chunks/{block-width.ClbkbtKA.js → block-width.nVsYTBw6.js} +44 -44
- package/library/chunks/{blockDiagram-VBNYF7ZC.BA5YJ5tg.js → blockDiagram-VBNYF7ZC.Dd9MRQVF.js} +6 -6
- package/library/chunks/{border-input-group.B6fqiG6F.js → border-input-group.CQ-BZvjI.js} +3 -3
- package/library/chunks/{breadcrumb.DkINVxcJ.js → breadcrumb.8_0yuiOI.js} +1 -1
- package/library/chunks/{button.DKkHqsUz.js → button.VUFrOP0u.js} +3 -3
- package/library/chunks/{c4Diagram-5PPSVZJV.B1weqOqz.js → c4Diagram-5PPSVZJV.BYo1Zq25.js} +3 -3
- package/library/chunks/{channel.Bqlqmufs.js → channel.DQU07rrH.js} +1 -1
- package/library/chunks/{checkbox.BdSpQlwf.js → checkbox.BzR50Is_.js} +2 -2
- package/library/chunks/{chunk-2GRJ4B5K.BOBf1_FX.js → chunk-2GRJ4B5K.DSIuCed9.js} +1 -1
- package/library/chunks/{chunk-4I5QYGJK.DfO_P7bO.js → chunk-4I5QYGJK.C74S0dID.js} +1 -1
- package/library/chunks/{chunk-5RXB4S5H.oisV3Q1b.js → chunk-5RXB4S5H.BSZ9vwQ_.js} +6 -6
- package/library/chunks/{chunk-6Q2QTUOP.ByglL7sM.js → chunk-6Q2QTUOP.C98k0Ypz.js} +2 -2
- package/library/chunks/{chunk-7Z6QIM7H.BXSFN_6B.js → chunk-7Z6QIM7H.CbyAI1qL.js} +6 -6
- package/library/chunks/{chunk-GF5L2VYU.BBRVN_Sz.js → chunk-GF5L2VYU.BwnEI-9p.js} +6 -6
- package/library/chunks/{chunk-I66GZJ75.lUTR0Zxp.js → chunk-I66GZJ75.hYJHAb8_.js} +1 -1
- package/library/chunks/{chunk-JQJVKLGR.dOAJ_eec.js → chunk-JQJVKLGR.Ca9c6WQC.js} +8 -8
- package/library/chunks/{chunk-KBJHAD2P.Bfz5cQAa.js → chunk-KBJHAD2P.Dpm7St5I.js} +1 -1
- package/library/chunks/{chunk-NSK5VX7P.BkWzMz1o.js → chunk-NSK5VX7P.JTL9VQLt.js} +1 -1
- package/library/chunks/{chunk-QR6OTTB3.DyBl4spZ.js → chunk-QR6OTTB3.1iZWec7S.js} +6 -6
- package/library/chunks/{chunk-UBXNYLIW.BjkOeuJd.js → chunk-UBXNYLIW.DiZRcRzh.js} +2 -2
- package/library/chunks/{chunk-W5SLKNZC.DzlXmWcA.js → chunk-W5SLKNZC.BpdNkiim.js} +1 -1
- package/library/chunks/{chunk-WRU74C26.BDl8PZFV.js → chunk-WRU74C26.BREX4nlj.js} +3 -3
- package/library/chunks/{classDiagram-JCYQIIEL.P36yteOv.js → classDiagram-JCYQIIEL.CHysnuuw.js} +12 -12
- package/library/chunks/{classDiagram-v2-OCEON4UE.C05djrx3.js → classDiagram-v2-OCEON4UE.CMVfaUrJ.js} +12 -12
- package/library/chunks/{color-picker.DZUudAAS.js → color-picker.C1CCN1nS.js} +11 -11
- package/library/chunks/{color-swatch-group.CuMJc6m8.js → color-swatch-group.BAIZMur5.js} +24 -24
- package/library/chunks/{color-swatch.DXAr2gBg.js → color-swatch.93BgkncM.js} +3 -3
- package/library/chunks/{config-manager.B6c9XW1s.js → config-manager.DijEOQly.js} +32 -32
- package/library/chunks/{configs-controller.TQDPq63n.js → configs-controller.B91MEy-4.js} +9 -9
- package/library/chunks/{confirm-popover.sZVNhFPh.js → confirm-popover.BRYw_62p.js} +4 -4
- package/library/chunks/{copy-button.CqqKJEh3.js → copy-button.BVuGJ0pX.js} +2 -2
- package/library/chunks/{corner-position-input-group.nTlFes0_.js → corner-position-input-group.zh-KziJB.js} +4 -4
- package/library/chunks/{cropper.BF32WRyP.js → cropper.D8Uu43xy.js} +1 -1
- package/library/chunks/{cynefinDiagram-MW4NZA55.CN3dX-zy.js → cynefinDiagram-MW4NZA55.CNmGi2wN.js} +3 -3
- package/library/chunks/{dagre-VZM6K2ZE.DpSsP2YW.js → dagre-VZM6K2ZE.pAZyqROg.js} +8 -8
- package/library/chunks/date-calendar.D-LYjKFX.js +188 -0
- package/library/chunks/date.kywrEgxd.js +363 -0
- package/library/chunks/{details.DSgp6VAD.js → details.BXMJk9oy.js} +1 -1
- package/library/chunks/{diagram-7IWD3JNH.C3K0gCHG.js → diagram-7IWD3JNH.BDOF6I2J.js} +4 -4
- package/library/chunks/{diagram-B4RE2ZJO.BULgC23C.js → diagram-B4RE2ZJO.DT1Xf2Kc.js} +2 -2
- package/library/chunks/{diagram-LBJQPF4R.BmYYTkym.js → diagram-LBJQPF4R.i67nojTE.js} +3 -3
- package/library/chunks/{diagram-Q27KOJAE.Bj5ayV3p.js → diagram-Q27KOJAE.C9Y5E3pX.js} +5 -5
- package/library/chunks/{diagram-UB23O5K3.Bu_lTx_A.js → diagram-UB23O5K3.Dxnn2pgu.js} +3 -3
- package/library/chunks/{dialog.D0oTJWFf.js → dialog.C21jNK4r.js} +3 -3
- package/library/chunks/{diff.Bmdpmpvo.js → diff.BLPeoeMo.js} +1 -1
- package/library/chunks/{document-viewer.L77oYyOp.js → document-viewer.CZ2Fhfs7.js} +14 -14
- package/library/chunks/{dom.BLHsooDR.js → dom.8wD7rIGz.js} +1 -1
- package/library/chunks/{dot-pagination.C1C6NG8d.js → dot-pagination.BdG_9NTv.js} +2 -2
- package/library/chunks/{drawer.BsKzYqKe.js → drawer.DM1zAUgP.js} +2 -2
- package/library/chunks/{dropdown.CKhoP9Cr.js → dropdown.DG5U64BM.js} +16 -7
- package/library/chunks/{dynamic-select.Cb3L0dIB.js → dynamic-select.hfD2F6e4.js} +5 -5
- package/library/chunks/{e-chart.DKFAToIc.js → e-chart.BtYiI1g7.js} +2 -2
- package/library/chunks/{ebnfDiagram-BXEA7PRR.Cg96HHIs.js → ebnfDiagram-BXEA7PRR.C15CrBEH.js} +3 -3
- package/library/chunks/{element-clamp.CGq-62gg.js → element-clamp.Bmn_oyV6.js} +2 -2
- package/library/chunks/{erDiagram-JOGREHBK.CrJ962th.js → erDiagram-JOGREHBK.BAFJcDwv.js} +11 -11
- package/library/chunks/{file-on-demand.BjUW2Ydt.js → file-on-demand.DoiRhsJ7.js} +17 -17
- package/library/chunks/flowDiagram-UKHOOZJN.BkgRtWrB.js +16 -0
- package/library/chunks/{folder-select.DJ5EEod3.js → folder-select.DrM6sqAw.js} +9 -9
- package/library/chunks/{form.D_eBa3AQ.js → form.ChOu6BIn.js} +1 -1
- package/library/chunks/{format-time.QkJcKYrT.js → format-time.BZ7jIbu7.js} +1 -1
- package/library/chunks/{ganttDiagram-PKOTCBZU.D216_p5R.js → ganttDiagram-PKOTCBZU.BWKE9zb3.js} +2 -2
- package/library/chunks/{gitGraphDiagram-DS77QQ5N.BGTaYiUE.js → gitGraphDiagram-DS77QQ5N.Dh9BZvJA.js} +2 -2
- package/library/chunks/{header.CowQINf-.js → header.aHKslWaJ.js} +2 -2
- package/library/chunks/{i18n.Bjg2ubA4.js → i18n.qIMzqW-F.js} +43 -1
- package/library/chunks/{icon-button.qJd_az6T.js → icon-button.DTyZ7Nwc.js} +2 -2
- package/library/chunks/{iframe.sl2wnUcC.js → iframe.DU9XEE6J.js} +1 -1
- package/library/chunks/{image-comparer.BCD6kzLm.js → image-comparer.yDCQTe-Z.js} +1 -1
- package/library/chunks/{image.-lgb634-.js → image.C6ffajdy.js} +2 -2
- package/library/chunks/{infoDiagram-6WML65LV.BHVojFJh.js → infoDiagram-6WML65LV.BlZ2eFcf.js} +2 -2
- package/library/chunks/{input.DZRed6yo.js → input.1CW0nLBL.js} +19 -6
- package/library/chunks/{ishikawaDiagram-WSZJBQD7.nZsYnPcQ.js → ishikawaDiagram-WSZJBQD7.QMHGwtgV.js} +3 -3
- package/library/chunks/{journeyDiagram-NVQOT4AX.BXUxAk98.js → journeyDiagram-NVQOT4AX.C-ovuC8R.js} +2 -2
- package/library/chunks/{kanban-definition-27J2QSJJ.Bg8-oEtc.js → kanban-definition-27J2QSJJ.CwAo6fJw.js} +8 -8
- package/library/chunks/{line-clamp.Dl3_JdHX.js → line-clamp.BDFNqZZ8.js} +47 -28
- package/library/chunks/{markdown.BzDRvv-f.js → markdown.BBOqRlzE.js} +4 -4
- package/library/chunks/{masonry.BxNeClR6.js → masonry.BrOEearB.js} +3 -3
- package/library/chunks/{menu-item.au-gTg1F.js → menu-item.B6Lww_R9.js} +3 -3
- package/library/chunks/{menu.BxBtGPsg.js → menu.DgRAUDo_.js} +2 -2
- package/library/chunks/{mermaid.core.m1JI7kDY.js → mermaid.core.CGY0RVtv.js} +49 -49
- package/library/chunks/{mindmap-definition-FAOFIHXS.DwjOzYq5.js → mindmap-definition-FAOFIHXS.CQvqcBzU.js} +10 -10
- package/library/chunks/{option.DWE0tark.js → option.DXo-QZhI.js} +1 -1
- package/library/chunks/{padding-input-group.D2Qx15Yj.js → padding-input-group.tjIBMptQ.js} +1 -1
- package/library/chunks/{pagination.ByLuPMyE.js → pagination.CVVtlgOf.js} +7 -7
- package/library/chunks/{pegDiagram-VL7TDLO6.BaVddVr3.js → pegDiagram-VL7TDLO6.CCjKBwxn.js} +3 -3
- package/library/chunks/{pieDiagram-7S7Q4E2Y.lZiCqBKs.js → pieDiagram-7S7Q4E2Y.BIlwtlJL.js} +3 -3
- package/library/chunks/{popup.w4ZU3jI-.js → popup.jQD3De0E.js} +2 -2
- package/library/chunks/{position-picker.X2hhfGx7.js → position-picker.DW9YTney.js} +3 -3
- package/library/chunks/{progress-bar.CynVLLnY.js → progress-bar.2YrCjo_K.js} +1 -1
- package/library/chunks/{progress-ring.Bfdj3-uB.js → progress-ring.D50j7Uhy.js} +1 -1
- package/library/chunks/purify.es.jxOE2kAK.js +867 -0
- package/library/chunks/{quadrantDiagram-CIZ2JOQS.DswnHa_z.js → quadrantDiagram-CIZ2JOQS.DorpRl0y.js} +1 -1
- package/library/chunks/{radio-card.VEsyM8ue.js → radio-card.C_GVggMn.js} +2 -2
- package/library/chunks/{radio-group.CHlxPcrs.js → radio-group.DfR13lVB.js} +1 -1
- package/library/chunks/{radio.DhPbmKbQ.js → radio.BmN7pFIX.js} +1 -1
- package/library/chunks/{railroadDiagram-AXF67PYL.RYtWvnP4.js → railroadDiagram-AXF67PYL.c5ghpRCW.js} +3 -3
- package/library/chunks/{range.ObEMbygm.js → range.C14Kx5Ln.js} +3 -3
- package/library/chunks/{rating.CNeNn996.js → rating.B6WhmtiT.js} +1 -1
- package/library/chunks/{relative-time.BfE3UOhF.js → relative-time.BF48GQmV.js} +1 -1
- package/library/chunks/{requirementDiagram-LRYGKXZP.BhxZAEJL.js → requirementDiagram-LRYGKXZP.MlkqKyhd.js} +10 -10
- package/library/chunks/{sankeyDiagram-W5VNT64P.Dk8npZSg.js → sankeyDiagram-W5VNT64P.Ch23b1-S.js} +1 -1
- package/library/chunks/{select.BV0Necz7.js → select.D-QQK2rH.js} +134 -123
- package/library/chunks/{sequenceDiagram-SI44F4Z6.BNjBc769.js → sequenceDiagram-SI44F4Z6.CZxsjRpC.js} +4 -4
- package/library/chunks/{shadow-input-group.Xxuzm8Qe.js → shadow-input-group.Ch6vHKZp.js} +2 -2
- package/library/chunks/{share-option-list.DOaEypfQ.js → share-option-list.DZHvOfV4.js} +3 -3
- package/library/chunks/{sidebar.CiZOJ49X.js → sidebar.BftNiyQt.js} +32 -22
- package/library/chunks/{size-input-group.wXuG0-RB.js → size-input-group.CbsKvFaO.js} +5 -5
- package/library/chunks/{spinner.Bv06U7NJ.js → spinner.CCSVc6Z6.js} +1 -1
- package/library/chunks/{split-panel.Cag0lAvv.js → split-panel.CRHvHDiv.js} +1 -1
- package/library/chunks/{src.Dia365C9.js → src.D0_s2pWf.js} +26 -26
- package/library/chunks/src.DEO8lR91.js +103 -0
- package/library/chunks/{stateDiagram-OKZ733FA.DkiIgxjd.js → stateDiagram-OKZ733FA.JCaGHMmH.js} +12 -12
- package/library/chunks/{stateDiagram-v2-UEYNNEHI.oVj_Ex1_.js → stateDiagram-v2-UEYNNEHI.CKrKpvxj.js} +12 -12
- package/library/chunks/{step.D93ReCO1.js → step.CiCIM79l.js} +3 -3
- package/library/chunks/{stepper-wizard.CPZ2mSze.js → stepper-wizard.BKSPLzfU.js} +2 -2
- package/library/chunks/{stepper.D0JB_GVh.js → stepper.r0k2sIAi.js} +1 -1
- package/library/chunks/{string.9yahdkB8.js → string.TY0RTPc8.js} +1 -1
- package/library/chunks/{swimlanes-SLNWSIFB.DKU7qXJ7.js → swimlanes-SLNWSIFB.BnCITr-P.js} +8 -8
- package/library/chunks/{swimlanesDiagram-ULZ7WXOC.DYwYMO_K.js → swimlanesDiagram-ULZ7WXOC.DMYLowNi.js} +12 -12
- package/library/chunks/{switch.BM9msK5T.js → switch.BuleQplE.js} +1 -1
- package/library/chunks/{tab-group.dnnT9Mk6.js → tab-group.B6O3pBw0.js} +8 -8
- package/library/chunks/{tab.CYYAua8Y.js → tab.DHblc3F_.js} +3 -3
- package/library/chunks/{tag.DQLauctm.js → tag.Bp7R2CeG.js} +3 -3
- package/library/chunks/{textarea.CHSZI8vt.js → textarea.BQV58bk8.js} +1 -1
- package/library/chunks/{timecode.DjI1OTXD.js → timecode.B6JsxLxl.js} +1 -1
- package/library/chunks/{timeline-definition-Z64GVDOM.agRZ87Zs.js → timeline-definition-Z64GVDOM.DpGlraiA.js} +3 -3
- package/library/chunks/{tooltip.Cc02vm6M.js → tooltip.C11omEOs.js} +17 -21
- package/library/chunks/{tree.BI7r-WnZ.js → tree.CpN2Va5s.js} +4 -4
- package/library/chunks/{typeface.DTLrIP0B.js → typeface.oJr92CGd.js} +3 -3
- package/library/chunks/{vennDiagram-T6HMQDX7.Cd9lVObe.js → vennDiagram-T6HMQDX7.DYlGT1g9.js} +3 -3
- package/library/chunks/{video.DWmHPbXO.js → video.CtWiwJj6.js} +6 -6
- package/library/chunks/{wardleyDiagram-T6FBY63Y.yCklp5Oa.js → wardleyDiagram-T6FBY63Y.DFkqP4xG.js} +3 -3
- package/library/chunks/{xychartDiagram-ELKLHX3M.CLuRN0XK.js → xychartDiagram-ELKLHX3M.CmCPBha7.js} +5 -5
- package/library/components/alert.js +1 -1
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +55 -55
- package/library/components/audio.js +1 -1
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +1 -1
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/cropper.js +1 -1
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dot-pagination.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +1 -1
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +17 -17
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +21914 -19131
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -2
- package/library/packages/atoms/src/components/date-calendar/date-calendar.d.ts +62 -9
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +6 -0
- package/library/packages/atoms/src/components/input/input.d.ts +20 -1
- package/library/packages/atoms/src/components/line-clamp/line-clamp.d.ts +3 -0
- package/library/packages/atoms/src/components/radio/radio.d.ts +3 -0
- package/library/packages/atoms/src/components/select/select.d.ts +7 -9
- package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +4 -1
- package/library/packages/events/src/cx-search-facet-date-change.d.ts +11 -0
- package/library/packages/events/src/cx-search-facet-focus-title.d.ts +10 -0
- package/library/packages/events/src/cx-search-facet-reset.d.ts +12 -0
- package/library/packages/events/src/cx-search-facet-select-all.d.ts +13 -0
- package/library/packages/events/src/cx-search-facet-show-more.d.ts +12 -0
- package/library/packages/events/src/cx-search-facet-toggle.d.ts +11 -0
- package/library/packages/events/src/cx-search-facets-apply.d.ts +17 -0
- package/library/packages/events/src/cx-search-facets-change-filters.d.ts +6 -0
- package/library/packages/events/src/cx-search-facets-clear-all.d.ts +10 -0
- package/library/packages/events/src/cx-search-facets-custom.d.ts +10 -0
- package/library/packages/events/src/cx-search-facets-facet-expand.d.ts +9 -0
- package/library/packages/events/src/cx-search-facets-node-expand.d.ts +11 -0
- package/library/packages/events/src/cx-search-facets-refresh.d.ts +6 -0
- package/library/packages/events/src/cx-search-facets-show-more.d.ts +8 -0
- package/library/packages/events/src/cx-search-facets-summary-expand.d.ts +9 -0
- package/library/packages/events/src/cx-search-facets-summary-remove.d.ts +12 -0
- package/library/packages/events/src/events.d.ts +16 -0
- package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +116 -0
- package/library/packages/molecules/src/sidebar/sidebar.d.ts +1 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +43 -2
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +7 -2
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.d.ts +12 -3
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +1 -0
- package/library/packages/organisms/src/downloader/downloader.d.ts +6 -0
- package/library/packages/organisms/src/index.d.ts +1 -0
- package/library/packages/organisms/src/search-facets/components/search-facet/search-facet.d.ts +95 -0
- package/library/packages/organisms/src/search-facets/components/search-facet/search-facet.styles.d.ts +2 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/advanced-date-reading.d.ts +90 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/search-facet-advanced-date.d.ts +85 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/search-facet-advanced-date.styles.d.ts +2 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-color/search-facet-color.d.ts +47 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-color/search-facet-color.styles.d.ts +2 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-date/date-range-validation.d.ts +67 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-date/search-facet-date.d.ts +120 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-date/search-facet-date.styles.d.ts +2 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-similar/search-facet-similar.d.ts +44 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-similar/search-facet-similar.styles.d.ts +2 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-tree/search-facet-tree.d.ts +104 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-tree/search-facet-tree.styles.d.ts +2 -0
- package/library/packages/organisms/src/search-facets/components/search-facet-tree/visible-nodes.d.ts +36 -0
- package/library/packages/organisms/src/search-facets/components/search-facets-summary/search-facets-summary.d.ts +67 -0
- package/library/packages/organisms/src/search-facets/components/search-facets-summary/search-facets-summary.styles.d.ts +2 -0
- package/library/packages/organisms/src/search-facets/search-facets.d.ts +198 -0
- package/library/packages/organisms/src/search-facets/search-facets.fixtures.d.ts +141 -0
- package/library/packages/organisms/src/search-facets/search-facets.styles.d.ts +2 -0
- package/library/packages/organisms/src/search-facets/state/date-drafts.d.ts +11 -0
- package/library/packages/organisms/src/search-facets/state/long-panel.d.ts +7 -0
- package/library/packages/organisms/src/search-facets/state/preview-summary.d.ts +17 -0
- package/library/packages/organisms/src/search-facets/state/preview-waiting-changes.d.ts +12 -0
- package/library/packages/organisms/src/search-facets/state/response-correlation.d.ts +9 -0
- package/library/packages/organisms/src/search-facets/state/waiting-changes.d.ts +179 -0
- package/library/packages/organisms/src/search-facets/types.d.ts +347 -0
- package/library/packages/types/src/asset-link-format.d.ts +6 -0
- package/library/packages/types/src/search-facets.d.ts +104 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +42 -0
- package/library/packages/utils/src/date/calendar-grid.d.ts +5 -6
- package/library/packages/utils/src/date/date.d.ts +7 -1
- package/library/react-web-component.d.ts +99 -9
- package/library/utils.js +13 -13
- package/package.json +1 -1
- package/library/chunks/date-calendar.B7e6WBzh.js +0 -78
- package/library/chunks/date.BL4L64Hx.js +0 -358
- package/library/chunks/flowDiagram-UKHOOZJN.Bj_loY7-.js +0 -16
- package/library/chunks/purify.es.Bwsrv9kG.js +0 -866
- package/library/chunks/src.-wSEUjRV.js +0 -103
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { FacetChange, FacetDateMessages, FacetDateSide, FacetDateTimeUnit } from '../../../types/src/search-facets';
|
|
2
|
+
export type { FacetChange, FacetDateMessageKey, FacetDateMessages, FacetDateSide, FacetDateTimeUnit, SearchFacetDateChangeDetail, SearchFacetDateDraft, SearchFacetToggleDetail, TogglePickMode, ToggleVia, } from '../../../types/src/search-facets';
|
|
3
|
+
/** The two clears the panel queues: Clear All (every condition) and Clear all filters (the panel's filters only). */
|
|
4
|
+
export type ClearKind = Extract<FacetChange['type'], 'clearAll' | 'clearFilters'>;
|
|
5
|
+
/** Whether a facet is open, closed, or closed and not yet queried. */
|
|
6
|
+
export type FacetState = 'collapsed' | 'collapsedUnloaded' | 'expanded';
|
|
7
|
+
/** Server-authoritative selection state for a facet value. */
|
|
8
|
+
export type FacetCheck = 'checked' | 'mixed' | 'unchecked';
|
|
9
|
+
/** The body renderer selected for a filter. E0 implements the standard flat facet body. */
|
|
10
|
+
export type FacetKind = 'color' | 'date' | 'facet' | 'similar';
|
|
11
|
+
/** A host action described by the payload. */
|
|
12
|
+
export interface ActionDescriptor {
|
|
13
|
+
event?: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}
|
|
18
|
+
/** The body of a `kind: 'color'` facet ("Similar tones"). The server writes an unset field as `null`. */
|
|
19
|
+
export interface FacetColor {
|
|
20
|
+
/** The select-all checkbox's visible label, already translated (COR "Similar tones: "). Omitted: `facet.label`. */
|
|
21
|
+
selectAllLabel?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The body of a `kind: 'date'` facet. The server writes every unset field as `null`: read it as omitted. Days are
|
|
25
|
+
* `YYYY-MM-DD`, the user's calendar days, never with `Z`: never parse them with `new Date(iso)`. Only an advanced date
|
|
26
|
+
* filter with `timeUnits` carries a time, `YYYY-MM-DD HH:mm:ss`, already in the user's time zone.
|
|
27
|
+
*/
|
|
28
|
+
export interface FacetDate {
|
|
29
|
+
/** Today's Clear text, already translated. Omitted: the `clear` term. */
|
|
30
|
+
clearLabel?: string;
|
|
31
|
+
/** The user's own date format: `MM/DD/YYYY` (COR default), `DD/MM/YYYY` or `YYYY/MM/DD`. Anything else reads as `MM/DD/YYYY`. */
|
|
32
|
+
displayFormat?: string;
|
|
33
|
+
/** The calendar's first day, 0 = Sunday … 6 = Saturday. Omitted: Sunday. */
|
|
34
|
+
firstDayOfWeek?: number;
|
|
35
|
+
/** The applied first day. Omitted: open at that end. With a period: the period's first day today. */
|
|
36
|
+
from?: string;
|
|
37
|
+
/** The From field's label, already translated. Omitted: the `fromLabel` term. */
|
|
38
|
+
fromLabel?: string;
|
|
39
|
+
/** Advanced date filter with a time only: the hour options in the site's order. Omitted or empty: `HOUR_OPTIONS`. */
|
|
40
|
+
hours?: FacetDateHour[];
|
|
41
|
+
/** Today's validation texts, already translated; a text left out falls back to the panel's term. */
|
|
42
|
+
messages?: FacetDateMessages;
|
|
43
|
+
/** Advanced date filter only: the applied mode, one of `modes[].value`. Omitted: nothing applied. */
|
|
44
|
+
mode?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Advanced date filter only: the modes in the site's order. Omitted, null or empty: a plain date range.
|
|
47
|
+
* When set, `from` and `until` are 'YYYY' | 'YYYY-MM' | 'YYYY-MM-DD' (or 'YYYY-MM-DD HH:mm:ss' when `timeUnits` is
|
|
48
|
+
* set) and `periods` is empty.
|
|
49
|
+
*/
|
|
50
|
+
modes?: FacetDateMode[];
|
|
51
|
+
/** The applied period's code, one of `periods[].value`. Omitted for typed days or no range. */
|
|
52
|
+
period?: string;
|
|
53
|
+
/** The filter's periods in the site's order, each with its days today. Empty or omitted: no period select. */
|
|
54
|
+
periods?: FacetDatePeriod[];
|
|
55
|
+
/**
|
|
56
|
+
* The site's `ShowInvalidDateWarning`. `false` (COR): a day or month that does not exist is corrected as today's
|
|
57
|
+
* control corrects it, with no message. Omitted or `true`: it shows `messages.invalidDate` and queues nothing.
|
|
58
|
+
*/
|
|
59
|
+
showInvalidDateWarning?: boolean;
|
|
60
|
+
/** Advanced date filter only: the time selects each date shows, in order. Omitted or empty: no time. */
|
|
61
|
+
timeUnits?: FacetDateTimeUnit[];
|
|
62
|
+
/** The applied last day, inclusive. Omitted: open at that end. With a period: the period's last day today. */
|
|
63
|
+
until?: string;
|
|
64
|
+
/** The To field's label, already translated. Omitted: the `toLabel` term. */
|
|
65
|
+
untilLabel?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The site's `FormatYearShortcutActivated`. `true` (COR): a 1-, 2- or 3-digit year becomes 200X, 20XX or 1XXX.
|
|
68
|
+
* Omitted or `false`: the year as typed, padded with zeros (26 → 0026).
|
|
69
|
+
*/
|
|
70
|
+
yearShortcut?: boolean;
|
|
71
|
+
}
|
|
72
|
+
/** One option of an advanced date filter's hour select. */
|
|
73
|
+
export interface FacetDateHour {
|
|
74
|
+
/** As the site writes it, e.g. `10am`. */
|
|
75
|
+
label: string;
|
|
76
|
+
/** 24-hour `00` to `23`, written as `HH`. */
|
|
77
|
+
value: string;
|
|
78
|
+
}
|
|
79
|
+
/** One mode of an advanced date filter. */
|
|
80
|
+
export interface FacetDateMode {
|
|
81
|
+
/** Translated label. */
|
|
82
|
+
label: string;
|
|
83
|
+
/** The dates the mode shows and sends, in order; `[]` for Indefinite. */
|
|
84
|
+
sides: FacetDateSide[];
|
|
85
|
+
/** Opaque, sent back unchanged as the change's `mode`. */
|
|
86
|
+
value: string;
|
|
87
|
+
}
|
|
88
|
+
/** One period of a date filter, computed by the server. */
|
|
89
|
+
export interface FacetDatePeriod {
|
|
90
|
+
/** The period's first day today, `YYYY-MM-DD`. Omitted: open. */
|
|
91
|
+
from?: string;
|
|
92
|
+
/** Translated label. */
|
|
93
|
+
label: string;
|
|
94
|
+
/** The period's last day today, `YYYY-MM-DD`. Omitted: open. */
|
|
95
|
+
until?: string;
|
|
96
|
+
/** Opaque code sent back unchanged in the `date` change. */
|
|
97
|
+
value: string;
|
|
98
|
+
}
|
|
99
|
+
/** Presentation settings shared by the panel and individual facets. */
|
|
100
|
+
export interface FacetPresentation {
|
|
101
|
+
collapseIcon?: string;
|
|
102
|
+
dense?: boolean;
|
|
103
|
+
expandIcon?: string;
|
|
104
|
+
showCounts?: boolean;
|
|
105
|
+
}
|
|
106
|
+
/** Server-supplied status shown while a facet's field is still being indexed. */
|
|
107
|
+
export interface FacetIndexingStatus {
|
|
108
|
+
/** Optional estimate formatted and localized by the host/server. */
|
|
109
|
+
estimate?: string;
|
|
110
|
+
/** Primary status text formatted and localized by the host/server. */
|
|
111
|
+
label: string;
|
|
112
|
+
}
|
|
113
|
+
/** Panel-level configuration resolved by the host. The server writes an unset field as `null`: read it as omitted. */
|
|
114
|
+
export interface PanelConfig extends FacetPresentation {
|
|
115
|
+
/** Text for a panel with no facet. `''` draws nothing, as today's Cortex panel; omitted or null: the `noFilters` term. */
|
|
116
|
+
emptyText?: string;
|
|
117
|
+
headingLevel?: number;
|
|
118
|
+
label?: string;
|
|
119
|
+
/**
|
|
120
|
+
* From this many facets on, the panel skips painting the facets far out of view, as today's Cortex panel stops
|
|
121
|
+
* drawing them (PNL-09). Counts the facets whose `kind` is not `'color'` or `'similar'`: today those two sit outside
|
|
122
|
+
* the filter list that counts and hides filters. Every facet stays in the DOM, the tab order, find-in-page and the
|
|
123
|
+
* accessibility tree. Omitted or null: every facet is painted. `0`: always on. `virtualizeThreshold` counts one
|
|
124
|
+
* facet's values.
|
|
125
|
+
*/
|
|
126
|
+
longPanelThreshold?: number;
|
|
127
|
+
showResultCount?: boolean;
|
|
128
|
+
/** Whether the "Applied filters" block shows. `false` moves Clear all filters to the panel header (PNL-04). */
|
|
129
|
+
showSummary?: boolean;
|
|
130
|
+
summaryActions?: ActionDescriptor[];
|
|
131
|
+
summaryPlacement?: 'bottom' | 'top';
|
|
132
|
+
virtualizeThreshold?: number;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* One value supplied by the server. `value` is opaque and is never derived from `label`.
|
|
136
|
+
* In a tree (`Facet.hierarchical`) a value with `children` is a branch. The server sends the whole tree and decides what
|
|
137
|
+
* a tick on a branch writes, so the panel sends one toggle per ticked value.
|
|
138
|
+
*/
|
|
139
|
+
export interface FacetNode {
|
|
140
|
+
/** `mixed` on a branch while only part of it is picked. */
|
|
141
|
+
checked: FacetCheck;
|
|
142
|
+
/** The values nested below this one, in the server's order. Omitted or empty on a leaf. */
|
|
143
|
+
children?: FacetNode[];
|
|
144
|
+
/** A pre-formatted count such as `2,223` or `~1.2k`. Omitted on a branch that does not add up its children's counts. */
|
|
145
|
+
count?: string;
|
|
146
|
+
/**
|
|
147
|
+
* The state the site's defaults give the value, as today's default types: a waiting reset, clear or removal of the
|
|
148
|
+
* facet's chip shows it, and the server returns to it once nothing is picked. On a branch: true when every value
|
|
149
|
+
* below it defaults to ticked; at the defaults the preview derives a branch from its children, also when only they
|
|
150
|
+
* carry the field. Omitted or null: unticked, as on any other filter.
|
|
151
|
+
*/
|
|
152
|
+
defaultChecked?: boolean;
|
|
153
|
+
description?: string;
|
|
154
|
+
/** Shown in its state but not operable, and kept in that state by every preview (a locked "Conceptually similar to"). */
|
|
155
|
+
disabled?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Whether a branch starts open: the levels the site forces open, else the fold the user left, else the site default.
|
|
158
|
+
* `null` or omitted on a leaf. The user's choice then holds for the life of the panel.
|
|
159
|
+
*/
|
|
160
|
+
expanded?: boolean | null;
|
|
161
|
+
/** Opaque key the host stores a branch's fold under; sent back unchanged in `cx-search-facets-node-expand`. */
|
|
162
|
+
foldKey?: string;
|
|
163
|
+
/** `kind: 'similar'`: the preview's alternative text, the asset's title. */
|
|
164
|
+
imageAlt?: string;
|
|
165
|
+
/** `kind: 'similar'`: the asset's small preview. Omitted when the user may not see it. */
|
|
166
|
+
imageUrl?: string;
|
|
167
|
+
label: string;
|
|
168
|
+
/** Depth in the tree, 1 at the top. */
|
|
169
|
+
level: number;
|
|
170
|
+
/** Position among its siblings, 1-based. */
|
|
171
|
+
posInSet: number;
|
|
172
|
+
/** Number of siblings, the value included. */
|
|
173
|
+
setSize: number;
|
|
174
|
+
/** `kind: 'color'`: the colour as `#RRGGBB`. */
|
|
175
|
+
swatch?: string;
|
|
176
|
+
/** `kind: 'color'`: the tick's tone, picked by the server as today's control picks it. Never computed by the panel. */
|
|
177
|
+
swatchTick?: 'dark' | 'light';
|
|
178
|
+
synthetic?: boolean;
|
|
179
|
+
value: string;
|
|
180
|
+
}
|
|
181
|
+
/** The facet header's select-all checkbox. Its presence shows it, also on a closed facet (FAC-04). */
|
|
182
|
+
export interface FacetSelectAll {
|
|
183
|
+
/** Current state, computed by the server from the facet's values. */
|
|
184
|
+
checked: FacetCheck;
|
|
185
|
+
/**
|
|
186
|
+
* The state at the site's defaults across every applicable value, values behind More included (Types: `checked`, or
|
|
187
|
+
* `mixed` when the defaults leave a type out).
|
|
188
|
+
* The preview shows it while a reset, a clear or a removal of the facet's chip waits. Omitted or null: the values
|
|
189
|
+
* behind More read as unticked there.
|
|
190
|
+
*/
|
|
191
|
+
defaultChecked?: FacetCheck;
|
|
192
|
+
/** Shown but not operable. */
|
|
193
|
+
disabled?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Hides the checkbox while the facet is closed (`ShowSelectAllOnCollapsedFacets` off). Omitted shows it on a closed
|
|
196
|
+
* facet too, as the standard site does. The panel applies it because only the panel knows whether the facet is open.
|
|
197
|
+
*/
|
|
198
|
+
hideWhenCollapsed?: boolean;
|
|
199
|
+
/** Accessible name, already translated. Omitted means the panel's own term with the facet name. */
|
|
200
|
+
label?: string;
|
|
201
|
+
/**
|
|
202
|
+
* The site's "Display All Checked If None Selected": the checkbox is locked while every value shows ticked, in the
|
|
203
|
+
* preview too, and unlocks once one is unticked; unselect all is never sent, and a name click always sends its pick.
|
|
204
|
+
* `disabled` then states only the payload's lock. Omitted or null: `disabled` alone decides.
|
|
205
|
+
*/
|
|
206
|
+
lockWhenChecked?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Tooltip while everything is ticked. With `lockWhenChecked` the checkbox is then locked, so this is the locked
|
|
209
|
+
* tooltip (today's SelectAllChk DisabledTooltip); otherwise it offers to untick all (today's UnselectAllTooltip).
|
|
210
|
+
*/
|
|
211
|
+
unselectLabel?: string;
|
|
212
|
+
/** Opaque argument sent back unchanged in the `selectAll` change. */
|
|
213
|
+
value?: string;
|
|
214
|
+
}
|
|
215
|
+
/** One filter in the panel. */
|
|
216
|
+
export interface Facet {
|
|
217
|
+
/**
|
|
218
|
+
* The site's "Display All Checked If None Selected": with nothing picked every value shows ticked, and the server
|
|
219
|
+
* fills the picks on the first untick, values the panel does not show included (Types). A name click then always
|
|
220
|
+
* sends its pick, because only the pick drops those hidden picks again. Independent of `selectAll`: a filter
|
|
221
|
+
* without a select-all checkbox (the Configure filters popup's Types) needs it as well. Omitted: any other filter.
|
|
222
|
+
*/
|
|
223
|
+
allCheckedWhenEmpty?: boolean;
|
|
224
|
+
approximate?: boolean;
|
|
225
|
+
/** Whether the heading can fold the body. Independent of the decorative arrow; false keeps the body open. */
|
|
226
|
+
canCollapse: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Whether the header offers reset: the server sets it while the facet has picks, also when it is closed (FAC-03).
|
|
229
|
+
* Once the user changes the facet before Apply, the panel's preview recomputes it from the picks the user sees, or,
|
|
230
|
+
* for values with a `defaultChecked`, from the values that differ from it, keeping the server's reset while the saved
|
|
231
|
+
* choice stands.
|
|
232
|
+
*/
|
|
233
|
+
canReset: boolean;
|
|
234
|
+
/** `kind: 'color'` settings. */
|
|
235
|
+
color?: FacetColor;
|
|
236
|
+
/** `kind: 'date'`: the applied range, the periods, the format and the texts. */
|
|
237
|
+
date?: FacetDate;
|
|
238
|
+
description?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Text shown in place of the values when the facet has none, already translated (Types on a page with no result:
|
|
241
|
+
* today's "No results found" under the filter's header). Omitted, null or `''`: an empty facet shows no text.
|
|
242
|
+
*/
|
|
243
|
+
emptyText?: string;
|
|
244
|
+
fullTextOnHover: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Whether More would reveal at least one more value. The server sends `false` once the facet is expanded, when the
|
|
247
|
+
* site sets no first limit, or when More would add nothing because every value kept back is already shown selected.
|
|
248
|
+
*/
|
|
249
|
+
hasMore: boolean;
|
|
250
|
+
headerActions?: ActionDescriptor[];
|
|
251
|
+
hierarchical: boolean;
|
|
252
|
+
id: string;
|
|
253
|
+
/** Omitted once indexing completes and the facet can render its values normally. */
|
|
254
|
+
indexing?: FacetIndexingStatus;
|
|
255
|
+
/** Omitted means the standard `facet` body. */
|
|
256
|
+
kind?: FacetKind;
|
|
257
|
+
label: string;
|
|
258
|
+
labelClickTarget: 'combined' | 'separate';
|
|
259
|
+
/**
|
|
260
|
+
* In a tree: every branch is open and stays open (the site's "Force expanded filter"). No branch draws an arrow, and
|
|
261
|
+
* none can be opened or closed by click or key; each parent still states `aria-expanded="true"`. Omitted or null:
|
|
262
|
+
* branches fold.
|
|
263
|
+
*/
|
|
264
|
+
lockBranchesOpen?: boolean;
|
|
265
|
+
/** The site's own More text, already translated. Omitted means the panel's localized `more` term. */
|
|
266
|
+
moreLabel?: string;
|
|
267
|
+
/** How many values More adds, excluding selected values already shown. Sent only with `hasMore`; not rendered. */
|
|
268
|
+
nextPageSize?: number;
|
|
269
|
+
presentation?: FacetPresentation;
|
|
270
|
+
/** The reset button's accessible name, already translated (e.g. "Reset to default types"). Omitted means the term. */
|
|
271
|
+
resetLabel?: string;
|
|
272
|
+
/** Omitted hides the select-all checkbox. */
|
|
273
|
+
selectAll?: FacetSelectAll;
|
|
274
|
+
selectionMode: 'multiple' | 'single';
|
|
275
|
+
showCounts: boolean;
|
|
276
|
+
/** Whether the foldable heading shows an arrow. Hiding it does not disable the heading button. */
|
|
277
|
+
showExpandArrow: boolean;
|
|
278
|
+
state: FacetState;
|
|
279
|
+
/** Number of values on the server, hidden ones included. Sent only with `hasMore`; not rendered. */
|
|
280
|
+
totalCount?: number;
|
|
281
|
+
/**
|
|
282
|
+
* Values already ordered and limited by the server; the panel renders them as supplied, without sorting or cutting.
|
|
283
|
+
* A selected value past the limit is sent in its normal position.
|
|
284
|
+
*/
|
|
285
|
+
values: FacetNode[];
|
|
286
|
+
}
|
|
287
|
+
/** One chip of the "Applied filters" block: one condition of the search, built by the server. */
|
|
288
|
+
export interface SummaryCriterion {
|
|
289
|
+
/** Set when the chip is one of the panel's filters. */
|
|
290
|
+
facetId?: string;
|
|
291
|
+
/**
|
|
292
|
+
* That filter's picked values, as the exact `FacetNode.value` strings of the same payload. Opaque: compared as
|
|
293
|
+
* strings, never parsed. While the chip's removal waits for Apply they show at their default (unticked unless the
|
|
294
|
+
* value has `defaultChecked`), and so does every other value of the facet that has a `defaultChecked`.
|
|
295
|
+
*/
|
|
296
|
+
facetValues?: string[];
|
|
297
|
+
/** Opaque; sent back unchanged in `removeCriterion`. */
|
|
298
|
+
id: string;
|
|
299
|
+
/** Thumbnail of a reverse image search. */
|
|
300
|
+
imageUrl?: string;
|
|
301
|
+
/** Clear all filters removes only `facet` chips; Clear All removes every removable chip. */
|
|
302
|
+
kind: 'facet' | 'other' | 'seeThru' | 'text';
|
|
303
|
+
/** The filter name. Empty for the see-thru chip and a forced display value: the chip shows its text alone. */
|
|
304
|
+
label: string;
|
|
305
|
+
removable: boolean;
|
|
306
|
+
/** "Similar tones" only: one `#RRGGBB` per entry of `values`, in the same order. The chip draws a dot per entry. */
|
|
307
|
+
swatches?: string[];
|
|
308
|
+
/** The chip text already shaped by the site's rules. Omitted means `values` joined with ", ". */
|
|
309
|
+
text?: string;
|
|
310
|
+
/** The full text for hover; sent only when the text was cut or the chip has several values. */
|
|
311
|
+
tooltip?: string;
|
|
312
|
+
values: string[];
|
|
313
|
+
}
|
|
314
|
+
/** Applied-filter summary data. */
|
|
315
|
+
export interface SearchFacetsSummary {
|
|
316
|
+
canChangeFilters: boolean;
|
|
317
|
+
canRefresh: boolean;
|
|
318
|
+
/** Whether Clear All is offered. Authoritative: the preview never recomputes it. */
|
|
319
|
+
canReset: boolean;
|
|
320
|
+
/** Whether the block starts closed. Read once per panel instance; omitted means it starts open. */
|
|
321
|
+
collapsed?: boolean;
|
|
322
|
+
/** One chip per condition, in the search's order. */
|
|
323
|
+
criteria: SummaryCriterion[];
|
|
324
|
+
/** The translated heading with the count filled in. Omitted means the panel's own counted term. */
|
|
325
|
+
title?: string;
|
|
326
|
+
}
|
|
327
|
+
/** A terminal failure without a payload. The ID must match the active Apply or host recount. */
|
|
328
|
+
export interface SearchFacetsRequestResult {
|
|
329
|
+
requestId: string;
|
|
330
|
+
status: 'cancelled' | 'error';
|
|
331
|
+
}
|
|
332
|
+
/** Contract v0 payload supplied by the host. */
|
|
333
|
+
export interface SearchFacetsData {
|
|
334
|
+
facets: Facet[];
|
|
335
|
+
panel?: PanelConfig;
|
|
336
|
+
/**
|
|
337
|
+
* `requestId` of the Apply this payload answers, echoed unchanged by the server. `null` means the payload answers
|
|
338
|
+
* no Apply, for example a More response. When omitted, the next payload after Apply resolves it.
|
|
339
|
+
*/
|
|
340
|
+
responseTo?: string | null;
|
|
341
|
+
searchKey?: string;
|
|
342
|
+
/** Omitted when the host supplies no "Applied filters" block. */
|
|
343
|
+
summary?: SearchFacetsSummary;
|
|
344
|
+
totalCount: number;
|
|
345
|
+
}
|
|
346
|
+
/** Stable render key scoped by facet because values may repeat across facets. */
|
|
347
|
+
export declare const nodeKey: (facetId: string, value: string) => string;
|
|
@@ -24,6 +24,12 @@ export declare const cropModes: {
|
|
|
24
24
|
value: string;
|
|
25
25
|
}[];
|
|
26
26
|
export declare const INPUT_DEBOUNCE_DELAY = 1000;
|
|
27
|
+
/**
|
|
28
|
+
* The largest width or height a size input takes, in pixels or as a ratio term: the Int32 max. The server
|
|
29
|
+
* reads crop sides as UInt32 and keeps some sizes as int, so a larger one saves, but the format can no
|
|
30
|
+
* longer be parsed and its transformation panel fails to open.
|
|
31
|
+
*/
|
|
32
|
+
export declare const MAX_TRANSFORMATION_SIDE = 2147483647;
|
|
27
33
|
export type Proxy = {
|
|
28
34
|
cdnName: string | null;
|
|
29
35
|
extension: string | null;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/** Which control initiated a selection change. Purely presentational: it never reaches the Apply batch. */
|
|
2
|
+
export type ToggleVia = 'checkbox' | 'label';
|
|
3
|
+
/**
|
|
4
|
+
* What a ticking change does to the facet's other picks (contract r4). `'add'` keeps them, as a checkbox tick;
|
|
5
|
+
* `'replace'` clears them first, as a click whose meaning is "pick only this value" (a name click on a facet whose
|
|
6
|
+
* `labelClickTarget` is `'separate'`). Omitted means `'add'`, so payloads from before r4 behave as before. The
|
|
7
|
+
* component states the intent where it already knows the click's meaning; the server applies it whatever its own
|
|
8
|
+
* facet settings are. `via` rides along on the wire change but stays presentational — the server never reads it.
|
|
9
|
+
*/
|
|
10
|
+
export type TogglePickMode = 'add' | 'replace';
|
|
11
|
+
/** One value the user ticked or unticked in a facet body, before Apply. `pickMode` states the intent (contract r4). */
|
|
12
|
+
export interface SearchFacetToggleDetail {
|
|
13
|
+
checked: boolean;
|
|
14
|
+
facetId: string;
|
|
15
|
+
pickMode?: TogglePickMode;
|
|
16
|
+
value: string;
|
|
17
|
+
via: ToggleVia;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A date filter's validation texts, already translated by the server, keyed as today's
|
|
21
|
+
* `Interface_BO.Data.Controls.Date.InvalidDateWarningMessage`. A text left out falls back to the panel's term.
|
|
22
|
+
*/
|
|
23
|
+
export interface FacetDateMessages {
|
|
24
|
+
dateIsNotCompletelyFilled?: string;
|
|
25
|
+
invalidDate?: string;
|
|
26
|
+
invalidInterval?: string;
|
|
27
|
+
maxDateViolated?: string;
|
|
28
|
+
minDateViolated?: string;
|
|
29
|
+
/** Advanced date filter: a one-date mode with no date (COR "Missing Date field"). */
|
|
30
|
+
missingDate?: string;
|
|
31
|
+
/** Advanced date filter: Interval Dates missing one or both dates (COR "Missing From Date and/or Until Date field"). */
|
|
32
|
+
missingIntervalDate?: string;
|
|
33
|
+
}
|
|
34
|
+
/** Which validation text a date filter shows. */
|
|
35
|
+
export type FacetDateMessageKey = keyof FacetDateMessages;
|
|
36
|
+
/** A side of a date filter: the one a message is about, or a date a mode takes. */
|
|
37
|
+
export type FacetDateSide = 'from' | 'until';
|
|
38
|
+
/** A time select of an advanced date filter, in the order a date shows them. */
|
|
39
|
+
export type FacetDateTimeUnit = 'hour' | 'minute' | 'second';
|
|
40
|
+
/**
|
|
41
|
+
* What a date filter shows while a validation message holds Apply: both fields' text, the period, and the message.
|
|
42
|
+
* The panel keeps it so the blocked day survives a fold; it never reaches the Apply batch. On an advanced date filter
|
|
43
|
+
* `mode` is the shown mode and each text is that date's boxes in display order joined with `/` (`/11/2021`); with time
|
|
44
|
+
* selects, a space and their values joined with `:` follow, an empty unit left empty (`29/11/2021 10::`).
|
|
45
|
+
*/
|
|
46
|
+
export interface SearchFacetDateDraft {
|
|
47
|
+
error: FacetDateMessageKey;
|
|
48
|
+
field: FacetDateSide;
|
|
49
|
+
fromText: string;
|
|
50
|
+
mode?: string;
|
|
51
|
+
period?: string;
|
|
52
|
+
/** Holds Apply without showing the message yet: an advanced mode just picked, its dates still empty. */
|
|
53
|
+
quiet?: boolean;
|
|
54
|
+
untilText: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A date body's edit, sent to `cx-search-facets` (internal). Days are `YYYY-MM-DD`; a side left out is open. `invalid`:
|
|
58
|
+
* the fields hold something that is not a day, so nothing is queued and Apply waits; `draft` is what they show. On an
|
|
59
|
+
* advanced date filter `mode` is the picked mode and the dates are `YYYY`, `YYYY-MM` or `YYYY-MM-DD`, or, on a field
|
|
60
|
+
* that shows a time, a full day with a time `YYYY-MM-DD HH:mm:ss`.
|
|
61
|
+
*/
|
|
62
|
+
export interface SearchFacetDateChangeDetail {
|
|
63
|
+
draft?: SearchFacetDateDraft;
|
|
64
|
+
facetId: string;
|
|
65
|
+
from?: string;
|
|
66
|
+
invalid?: boolean;
|
|
67
|
+
mode?: string;
|
|
68
|
+
period?: string;
|
|
69
|
+
until?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* One normalized operation in a `cx-search-facets-apply` batch (contract r4).
|
|
73
|
+
* Facet IDs, values, and criterion IDs are opaque server strings and are sent unchanged.
|
|
74
|
+
*/
|
|
75
|
+
export type FacetChange = {
|
|
76
|
+
checked: boolean;
|
|
77
|
+
facetId: string;
|
|
78
|
+
pickMode?: TogglePickMode;
|
|
79
|
+
type: 'toggle';
|
|
80
|
+
value: string;
|
|
81
|
+
via?: ToggleVia;
|
|
82
|
+
} | {
|
|
83
|
+
checked: boolean;
|
|
84
|
+
facetId: string;
|
|
85
|
+
type: 'selectAll';
|
|
86
|
+
value?: string;
|
|
87
|
+
} | {
|
|
88
|
+
criterionId: string;
|
|
89
|
+
type: 'removeCriterion';
|
|
90
|
+
} | {
|
|
91
|
+
facetId: string;
|
|
92
|
+
from?: string;
|
|
93
|
+
mode?: string;
|
|
94
|
+
period?: string;
|
|
95
|
+
type: 'date';
|
|
96
|
+
until?: string;
|
|
97
|
+
} | {
|
|
98
|
+
facetId: string;
|
|
99
|
+
type: 'reset';
|
|
100
|
+
} | {
|
|
101
|
+
type: 'clearAll';
|
|
102
|
+
} | {
|
|
103
|
+
type: 'clearFilters';
|
|
104
|
+
};
|
|
@@ -92,6 +92,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
92
92
|
appearance: string;
|
|
93
93
|
appearanceOptions: string;
|
|
94
94
|
appliedFilters: string;
|
|
95
|
+
appliedFiltersCount: (count: number) => string;
|
|
95
96
|
apply: string;
|
|
96
97
|
applyFilters: string;
|
|
97
98
|
applyToPanels: string;
|
|
@@ -231,6 +232,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
231
232
|
class: string;
|
|
232
233
|
clear: string;
|
|
233
234
|
clearAll: string;
|
|
235
|
+
clearAllFilters: string;
|
|
234
236
|
clearCache: string;
|
|
235
237
|
clearEntry: string;
|
|
236
238
|
clearSearch: string;
|
|
@@ -289,13 +291,16 @@ export interface Translation extends DefaultTranslation {
|
|
|
289
291
|
control: string;
|
|
290
292
|
copied: string;
|
|
291
293
|
copy: string;
|
|
294
|
+
copyHtml: string;
|
|
292
295
|
createANewPalette: string;
|
|
293
296
|
createNew: string;
|
|
294
297
|
createRecord: string;
|
|
295
298
|
createTransition: string;
|
|
296
299
|
crop: string;
|
|
297
300
|
cropFocus: string;
|
|
301
|
+
cropFreeMode: string;
|
|
298
302
|
cropLimitedByDimensions: (width: number, height: number) => string;
|
|
303
|
+
cropManualFocus: string;
|
|
299
304
|
cropStyle: string;
|
|
300
305
|
cubic: string;
|
|
301
306
|
currentPage: string;
|
|
@@ -489,6 +494,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
489
494
|
filledBodySecondaryColorAsBackground: string;
|
|
490
495
|
filter: string;
|
|
491
496
|
filterButtonOpens: string;
|
|
497
|
+
filterRegion: (name: string) => string;
|
|
492
498
|
filters: string;
|
|
493
499
|
find: string;
|
|
494
500
|
findAndReplace: string;
|
|
@@ -508,6 +514,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
508
514
|
folder: string;
|
|
509
515
|
folderCollection: string;
|
|
510
516
|
folderHierarchy: string;
|
|
517
|
+
folderPickerBlocked: string;
|
|
511
518
|
folders: string;
|
|
512
519
|
font: string;
|
|
513
520
|
fontAwesome: string;
|
|
@@ -737,6 +744,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
737
744
|
next: string;
|
|
738
745
|
nextMatch: string;
|
|
739
746
|
nextMatchEnter: string;
|
|
747
|
+
nextMonth: string;
|
|
740
748
|
nextOccurrence: string;
|
|
741
749
|
nextPage: string;
|
|
742
750
|
nextSlide: string;
|
|
@@ -748,6 +756,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
748
756
|
noDataAvailable: string;
|
|
749
757
|
noDownloads: string;
|
|
750
758
|
noDownloadsMessage: string;
|
|
759
|
+
noFilters: string;
|
|
751
760
|
noItemsAddedYet: (dialog: string) => string;
|
|
752
761
|
noPalette: string;
|
|
753
762
|
noPreviewAvailable: string;
|
|
@@ -875,6 +884,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
875
884
|
previousJobUnfinished: string;
|
|
876
885
|
previousMatch: string;
|
|
877
886
|
previousMatchShiftEnter: string;
|
|
887
|
+
previousMonth: string;
|
|
878
888
|
previousOccurrence: string;
|
|
879
889
|
previousPage: string;
|
|
880
890
|
previousSlide: string;
|
|
@@ -901,6 +911,8 @@ export interface Translation extends DefaultTranslation {
|
|
|
901
911
|
rememberCollapsedState: string;
|
|
902
912
|
remove: string;
|
|
903
913
|
removeBlock: string;
|
|
914
|
+
removeFilter: (name: string) => string;
|
|
915
|
+
removeFilterValues: (name: string, values: string) => string;
|
|
904
916
|
removeFolder: (num: number) => string;
|
|
905
917
|
removeGradientStop: string;
|
|
906
918
|
renderAudio: string;
|
|
@@ -911,6 +923,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
911
923
|
representativeImage: string;
|
|
912
924
|
requestInProgress: string;
|
|
913
925
|
reset: string;
|
|
926
|
+
resetFilter: (name: string) => string;
|
|
914
927
|
resetPosition: string;
|
|
915
928
|
resize: string;
|
|
916
929
|
resources: string;
|
|
@@ -961,6 +974,28 @@ export interface Translation extends DefaultTranslation {
|
|
|
961
974
|
searchApiQuery: string;
|
|
962
975
|
searchBox: string;
|
|
963
976
|
searchDownloads: string;
|
|
977
|
+
searchFacetsChangesDropped: string;
|
|
978
|
+
searchFacetsChangesPending: (count: number) => string;
|
|
979
|
+
searchFacetsClearDate: (name: string) => string;
|
|
980
|
+
searchFacetsDateAfterRange: string;
|
|
981
|
+
searchFacetsDateBeforeRange: string;
|
|
982
|
+
searchFacetsDateIncomplete: string;
|
|
983
|
+
searchFacetsDateInvalid: string;
|
|
984
|
+
searchFacetsDateInvalidInterval: string;
|
|
985
|
+
searchFacetsDateMissing: string;
|
|
986
|
+
searchFacetsDateMissingInterval: string;
|
|
987
|
+
searchFacetsDateMode: string;
|
|
988
|
+
searchFacetsDatePeriod: string;
|
|
989
|
+
searchFacetsOnlySelected: (label: string) => string;
|
|
990
|
+
searchFacetsRequestCancelled: string;
|
|
991
|
+
searchFacetsRequestError: string;
|
|
992
|
+
searchFacetsResults: (count: number) => string;
|
|
993
|
+
searchFacetsSelectDate: (name: string) => string;
|
|
994
|
+
searchFacetsSelectEndDate: (name: string) => string;
|
|
995
|
+
searchFacetsSelectOnly: (label: string) => string;
|
|
996
|
+
searchFacetsSelectStartDate: (name: string) => string;
|
|
997
|
+
searchFacetsUpdating: string;
|
|
998
|
+
searchFacetsValueWithCount: (label: string, count: string) => string;
|
|
964
999
|
searchFolders: string;
|
|
965
1000
|
searchOptions: string;
|
|
966
1001
|
searchPlaceholder: string;
|
|
@@ -973,6 +1008,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
973
1008
|
sectionStyle: string;
|
|
974
1009
|
sectionTitles: string;
|
|
975
1010
|
securityPoint: string;
|
|
1011
|
+
seeMoreFilters: (name: string) => string;
|
|
976
1012
|
seeThru: string;
|
|
977
1013
|
seeThruOnRealFolderOnly: string;
|
|
978
1014
|
seeThruOnVirtualFolder: string;
|
|
@@ -980,6 +1016,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
980
1016
|
selectAColorFromTheScreen: string;
|
|
981
1017
|
selectARelationship: string;
|
|
982
1018
|
selectAll: string;
|
|
1019
|
+
selectAllFilter: (name: string) => string;
|
|
983
1020
|
selectFolder: string;
|
|
984
1021
|
selectFolders: string;
|
|
985
1022
|
selected: string;
|
|
@@ -1163,6 +1200,11 @@ export interface Translation extends DefaultTranslation {
|
|
|
1163
1200
|
unauthorized: string;
|
|
1164
1201
|
underline: string;
|
|
1165
1202
|
undo: string;
|
|
1203
|
+
undoClearAll: string;
|
|
1204
|
+
undoClearAllFilters: string;
|
|
1205
|
+
undoRemoveFilter: (name: string) => string;
|
|
1206
|
+
undoRemoveFilterValues: (name: string, values: string) => string;
|
|
1207
|
+
undoResetFilter: (name: string) => string;
|
|
1166
1208
|
unfavorite: string;
|
|
1167
1209
|
uniqueIdentifier: string;
|
|
1168
1210
|
unit: string;
|
|
@@ -14,6 +14,8 @@ export interface CalendarCell {
|
|
|
14
14
|
year: number;
|
|
15
15
|
}
|
|
16
16
|
export interface CalendarGridParams {
|
|
17
|
+
/** First day of the week, 0 = Sunday … 6 = Saturday. Omitted: Sunday. */
|
|
18
|
+
firstDayOfWeek?: number;
|
|
17
19
|
/** Maximum selectable date. Empty string means no maximum. */
|
|
18
20
|
maxDate: CalendarDate;
|
|
19
21
|
/** Minimum selectable date. Empty string means no minimum. */
|
|
@@ -28,12 +30,9 @@ export interface CalendarGridParams {
|
|
|
28
30
|
}
|
|
29
31
|
export declare class CalendarGrid {
|
|
30
32
|
/**
|
|
31
|
-
* Generates
|
|
32
|
-
* The grid
|
|
33
|
-
* day of viewMonth are marked isOutside = true but remain selectable.
|
|
34
|
-
*
|
|
35
|
-
* Note: months that span more than 5 weeks (start on Fri/Sat with 30/31 days)
|
|
36
|
-
* will have their last 1-2 days truncated. This matches the fixed-height design.
|
|
33
|
+
* Generates the whole weeks that hold every day of the given month: 35 cells (5 weeks), or 42 (6 weeks) when the
|
|
34
|
+
* month needs them, so no day is dropped. The grid starts on `firstDayOfWeek` (Sunday by default). Days before the
|
|
35
|
+
* 1st and after the last day of viewMonth are marked isOutside = true but remain selectable.
|
|
37
36
|
*/
|
|
38
37
|
static generate(params: CalendarGridParams): CalendarCell[];
|
|
39
38
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/** Strict date-only string in YYYY-MM-DD format. No time, no timezone. */
|
|
2
2
|
export type CalendarDate = string;
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Builds a local date for any year. `new Date(year, monthIndex, day)` reads a year from 0 to 99 as 1900-1999, so a
|
|
5
|
+
* calendar day in 0001-0099 would land in the wrong century; `setFullYear` takes the year as given. Month and day may
|
|
6
|
+
* overflow, as with `new Date` (month 13 is January of the next year, day 0 the last day of the month before).
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildLocalDate(year: number, monthIndex: number, day: number): Date;
|
|
9
|
+
/** Returns true only for well-formed, calendar-valid YYYY-MM-DD strings, years 0001-9999. */
|
|
4
10
|
export declare function isValidIsoDate(value: string): value is CalendarDate;
|
|
5
11
|
/** Builds a CalendarDate from numeric parts. Month is 1-based. */
|
|
6
12
|
export declare function toIsoDate(year: number, month: number, day: number): CalendarDate;
|