@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,47 @@
|
|
|
1
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup, nothing, PropertyValues } from 'lit';
|
|
3
|
+
import { Facet } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @summary The body of a `kind: 'color'` facet of `cx-search-facets` ("Similar tones"): a select-all checkbox and one
|
|
6
|
+
* square per colour, in the server's order.
|
|
7
|
+
* @description The select-all is ticked only when every swatch is, and never indeterminate, as today. Ticking it sends
|
|
8
|
+
* one tick per swatch whose state changes; it never sends `selectAll`, which the server drops for this kind. Each swatch
|
|
9
|
+
* is a native checkbox laid over its colour, named by its `#RRGGBB` label, with one Tab stop; a ticked swatch shows a
|
|
10
|
+
* tick in the tone the server sends. A tick never unticks the others. Every tick goes to the panel, which queues it
|
|
11
|
+
* until Apply.
|
|
12
|
+
*
|
|
13
|
+
* @event {SearchFacetToggleDetail} cx-search-facet-toggle - Internal: one swatch ticked or unticked. The panel stops it.
|
|
14
|
+
* @event cx-search-facet-focus-title - Internal: the focused control left and no other can take focus.
|
|
15
|
+
*
|
|
16
|
+
* @csspart color-select-all - The select-all checkbox.
|
|
17
|
+
* @csspart color-swatch - One colour square.
|
|
18
|
+
*/
|
|
19
|
+
export default class CxSearchFacetColor extends CortexElement {
|
|
20
|
+
static readonly styles: CSSResultGroup;
|
|
21
|
+
static readonly dependencies: Record<string, typeof CortexElement>;
|
|
22
|
+
/** The control that had focus before an update, so focus stays in the body if it leaves. */
|
|
23
|
+
private focusedBeforeUpdate?;
|
|
24
|
+
/** The colour facet, including the panel's preview of its waiting ticks. */
|
|
25
|
+
facet?: Facet;
|
|
26
|
+
/** Blocks every control, for example while an Apply is in flight. */
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
29
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
30
|
+
private get swatches();
|
|
31
|
+
private get isEveryChecked();
|
|
32
|
+
/** Ticks or unticks every swatch that changes, in swatch order; never `selectAll`. */
|
|
33
|
+
private handleSelectAllChange;
|
|
34
|
+
private handleSwatchChange;
|
|
35
|
+
private emitToggle;
|
|
36
|
+
/** Keeps a control's own input events inside the panel; the panel hears the toggles only. */
|
|
37
|
+
private stopInnerEvent;
|
|
38
|
+
/** A focused swatch the payload dropped: focus the select-all, else the first swatch, else the facet's fallback. */
|
|
39
|
+
private restoreFocusIfLost;
|
|
40
|
+
private renderSwatch;
|
|
41
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
'cx-search-facet-color': CxSearchFacetColor;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { FacetDateMessageKey, FacetDateSide } from '../../types';
|
|
2
|
+
/** The three display orders a date filter accepts. Anything else reads as `MM/DD/YYYY` (COR default). */
|
|
3
|
+
export declare const DATE_DISPLAY_FORMATS: readonly ["MM/DD/YYYY", "DD/MM/YYYY", "YYYY/MM/DD"];
|
|
4
|
+
export type DateDisplayPattern = (typeof DATE_DISPLAY_FORMATS)[number];
|
|
5
|
+
export type DatePart = 'DD' | 'MM' | 'YYYY';
|
|
6
|
+
/** The site settings that change how a typed day is read. */
|
|
7
|
+
export interface DateReadingOptions {
|
|
8
|
+
displayFormat: DateDisplayPattern;
|
|
9
|
+
/** `ShowInvalidDateWarning`: true shows a message for a day that does not exist; false corrects it as today. */
|
|
10
|
+
showInvalidDateWarning: boolean;
|
|
11
|
+
/** `FormatYearShortcutActivated`: a 1-3 digit year becomes 200X, 20XX or 1XXX; else it is padded with zeros. */
|
|
12
|
+
yearShortcut: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** Both fields read and checked in today's order. */
|
|
15
|
+
export interface DateRangeValidation {
|
|
16
|
+
error?: FacetDateMessageKey;
|
|
17
|
+
field?: FacetDateSide;
|
|
18
|
+
/** The From day to queue: set only when the whole range is valid. */
|
|
19
|
+
from?: string;
|
|
20
|
+
/** Where the From calendar opens: a real day inside the accepted range, else empty. */
|
|
21
|
+
fromCalendarDay: string;
|
|
22
|
+
fromText: string;
|
|
23
|
+
/** The To day to queue: set only when the whole range is valid. */
|
|
24
|
+
until?: string;
|
|
25
|
+
untilCalendarDay: string;
|
|
26
|
+
untilText: string;
|
|
27
|
+
}
|
|
28
|
+
/** `MM/DD/YYYY` for any value that is not one of the three accepted orders. */
|
|
29
|
+
export declare function toDisplayPattern(displayFormat: string | null | undefined): DateDisplayPattern;
|
|
30
|
+
/** Builds a local date for any year; `new Date(y, m, d)` would read a year below 100 as 19XX. */
|
|
31
|
+
export declare function buildLocalDate(year: number, monthIndex: number, day: number): Date;
|
|
32
|
+
/** Formats a day in the display order, with the year as four digits. */
|
|
33
|
+
export declare function formatDisplayDay(isoDay: string, displayFormat: DateDisplayPattern): string;
|
|
34
|
+
/** Splits the field text into its day, month and year digits, following the display order. */
|
|
35
|
+
export declare function splitParts(text: string, displayFormat: DateDisplayPattern): Record<DatePart, string>;
|
|
36
|
+
/** A 1-3 digit year with the shortcut: 3 → 2003, 23 → 2023, 999 → 1999 (today's control). */
|
|
37
|
+
export declare function expandYear(yearDigits: string, yearShortcut: boolean): number;
|
|
38
|
+
/**
|
|
39
|
+
* A day or month that does not exist, corrected as today's `DateCtrl.js` does: a day outside 1-31 becomes 1, a month
|
|
40
|
+
* outside 1-12 becomes 1 on From and 12 on To, and a day past its month's end rolls over (built in the leap year 2000,
|
|
41
|
+
* then the year set), so 31/02/2026 becomes 02/03/2026 and 29/02/2026 becomes 01/03/2026.
|
|
42
|
+
*/
|
|
43
|
+
export declare function correctDay(year: number, month: number, day: number, side: FacetDateSide): {
|
|
44
|
+
day: number;
|
|
45
|
+
month: number;
|
|
46
|
+
year: number;
|
|
47
|
+
};
|
|
48
|
+
export declare function existsAsTyped(year: number, month: number, day: number): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Reads both fields and checks them in today's order, stopping at the first failure: a partly typed day or one that
|
|
51
|
+
* does not exist, then To before From, then the 1753-9999 range on both fields. The text each field shows is worked
|
|
52
|
+
* out before the checks stop, so a padded or corrected day shows even when a later check fails; only a partly typed day
|
|
53
|
+
* or an impossible day with the warning on keeps the text as typed. An error never queues a day.
|
|
54
|
+
*/
|
|
55
|
+
export declare function validateDateRange(fromInput: string, untilInput: string, options: DateReadingOptions): DateRangeValidation;
|
|
56
|
+
/**
|
|
57
|
+
* The period a commit leaves: a period pick keeps its period, and a day typed or picked that differs from the shown
|
|
58
|
+
* period's day on either side drops it, as today. A commit that leaves both days as the period has them keeps it.
|
|
59
|
+
*/
|
|
60
|
+
export declare function periodAfterCommit(shownPeriod: {
|
|
61
|
+
from?: string;
|
|
62
|
+
until?: string;
|
|
63
|
+
value: string;
|
|
64
|
+
} | undefined, committed: {
|
|
65
|
+
from?: string;
|
|
66
|
+
until?: string;
|
|
67
|
+
}): string | undefined;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup, nothing, PropertyValues } from 'lit';
|
|
3
|
+
import { Facet, SearchFacetDateDraft } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @summary The body of a `kind: 'date'` facet of `cx-search-facets`: From and To fields with their calendars, the
|
|
6
|
+
* site's period list and Clear.
|
|
7
|
+
* @description Each field reads days in the user's format, shown as its placeholder. A complete day is checked as it
|
|
8
|
+
* is committed (typed in full, Enter, leaving the field, or picked in the calendar), in today's order: a partly typed or
|
|
9
|
+
* impossible day, then To before From, then the 1753-9999 range. A valid range is sent to the panel, which queues it
|
|
10
|
+
* until Apply; a failure shows the site's message under the body, marks the field invalid, ties the message to that
|
|
11
|
+
* field as its description and holds Apply. A period
|
|
12
|
+
* fills both fields with the server's days. Clear, the blank period and the header reset empty both fields.
|
|
13
|
+
*
|
|
14
|
+
* The panel keeps a blocked day as `draft`, so it survives a fold, and bumps `fieldsReset` on every explicit clear. The
|
|
15
|
+
* body rewrites a field only on its first render, its own commit, an explicit clear, or a change of the applied range
|
|
16
|
+
* while the field is untouched, so a payload never overwrites what the user is typing.
|
|
17
|
+
*
|
|
18
|
+
* @event {SearchFacetDateChangeDetail} cx-search-facet-date-change - Internal: a valid range, or `invalid` with the
|
|
19
|
+
* draft. The panel stops it.
|
|
20
|
+
*
|
|
21
|
+
* @csspart date-field - Each `cx-input-date-picker`.
|
|
22
|
+
* @csspart date-period - The period select.
|
|
23
|
+
* @csspart date-clear - The Clear button.
|
|
24
|
+
* @csspart date-message - The validation message region.
|
|
25
|
+
*/
|
|
26
|
+
export default class CxSearchFacetDate extends CortexElement {
|
|
27
|
+
static readonly styles: CSSResultGroup;
|
|
28
|
+
static readonly dependencies: Record<string, typeof CortexElement>;
|
|
29
|
+
private readonly localize;
|
|
30
|
+
/** What each field last showed by the body's own write, keyed by side. */
|
|
31
|
+
private fieldSnapshots;
|
|
32
|
+
/** Set once the fields have been written from their source (first render, including a reopened fold). */
|
|
33
|
+
private hasSyncedFields;
|
|
34
|
+
/** The control that had focus before an update, so focus stays in the body if it leaves. */
|
|
35
|
+
private focusedBeforeUpdate?;
|
|
36
|
+
private readonly fromPicker?;
|
|
37
|
+
private readonly untilPicker?;
|
|
38
|
+
private readonly messageRegion?;
|
|
39
|
+
/** The date facet, including the panel's preview of its waiting range. */
|
|
40
|
+
facet?: Facet;
|
|
41
|
+
/** Blocks every control, for example while an Apply is in flight. */
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
/** A blocked day the panel keeps for this facet: what the fields and the period show while a message stands. */
|
|
44
|
+
draft?: SearchFacetDateDraft;
|
|
45
|
+
/** Bumped by the panel on every explicit clear; a change rewrites both fields from the preview. */
|
|
46
|
+
fieldsReset: number;
|
|
47
|
+
/** The validation message the body shows, and the side it is about. */
|
|
48
|
+
private message?;
|
|
49
|
+
/** The period the select shows. */
|
|
50
|
+
private shownPeriod;
|
|
51
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
52
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
53
|
+
private get date();
|
|
54
|
+
private get displayFormat();
|
|
55
|
+
private get periods();
|
|
56
|
+
private get appliedRange();
|
|
57
|
+
private pickerFor;
|
|
58
|
+
/** The message and the period follow the panel's draft; without one, the period follows the preview. */
|
|
59
|
+
private syncMessageFromDraft;
|
|
60
|
+
/** Writes the fields only on the events that own them: first render, an explicit clear, or a new applied range. */
|
|
61
|
+
private syncFields;
|
|
62
|
+
/**
|
|
63
|
+
* First render, including reopening a folded facet: the panel's draft, else the preview. A draft's fields are read
|
|
64
|
+
* again so each calendar opens on its own day where that day is real (an interval error keeps both).
|
|
65
|
+
*/
|
|
66
|
+
private writeFromSource;
|
|
67
|
+
private writeFromApplied;
|
|
68
|
+
/**
|
|
69
|
+
* A field that follows an older applied day than the payload's (an Apply answer, a removal, a rebase) catches up once
|
|
70
|
+
* the user is not editing it. A field skipped because it had focus catches up on blur (`handleFieldBlur`). With a
|
|
71
|
+
* blocked day the fields keep what they show.
|
|
72
|
+
*/
|
|
73
|
+
private catchUpUntouchedFields;
|
|
74
|
+
/** A field that skipped an update because it had focus catches up when it loses focus with nothing typed. */
|
|
75
|
+
private handleFieldBlur;
|
|
76
|
+
/**
|
|
77
|
+
* Ties the message to the field it is about, so a screen reader reads it with the field's invalid state whenever the
|
|
78
|
+
* field is reached, not only once as the status region speaks. Set only on a change, so a picker is not redrawn.
|
|
79
|
+
*/
|
|
80
|
+
private syncFieldDescriptions;
|
|
81
|
+
/** The user typed and has not committed, or the field has focus: a payload must not move its text or caret. */
|
|
82
|
+
private isFieldDirty;
|
|
83
|
+
private formatDay;
|
|
84
|
+
/**
|
|
85
|
+
* Writes a field's text and the day its calendar opens on, always together. `appliedDay` is the applied day the write
|
|
86
|
+
* follows; a commit of the user's own leaves it as it was, since it is not the applied range yet.
|
|
87
|
+
*/
|
|
88
|
+
private writeField;
|
|
89
|
+
/** A commit of either field: validates both, writes what they show, and reports the range or the draft. */
|
|
90
|
+
private handleFieldChange;
|
|
91
|
+
/** The period a typed or picked day leaves: kept only while both fields still hold the period's days. */
|
|
92
|
+
private periodAfterFieldCommit;
|
|
93
|
+
private get readingOptions();
|
|
94
|
+
private commitResult;
|
|
95
|
+
private emitChange;
|
|
96
|
+
/** Picking a period fills both fields with its days at once; the blank choice is a clear. */
|
|
97
|
+
private handlePeriodChange;
|
|
98
|
+
private handleClearClick;
|
|
99
|
+
/** Empties both fields and the period, removes the message, and sends a range with nothing set. */
|
|
100
|
+
private clearRange;
|
|
101
|
+
/** Keeps a select's own events inside the panel; the panel hears the date change only. */
|
|
102
|
+
private stopInnerEvent;
|
|
103
|
+
private findFocusedControl;
|
|
104
|
+
/**
|
|
105
|
+
* Keeps focus in the body when the focused control leaves (in practice the period select, when the periods go): the
|
|
106
|
+
* first enabled control, else the facet asks for its own fallback.
|
|
107
|
+
*/
|
|
108
|
+
private restoreFocusIfLost;
|
|
109
|
+
private firstEnabledControl;
|
|
110
|
+
private messageText;
|
|
111
|
+
private renderField;
|
|
112
|
+
private renderPeriods;
|
|
113
|
+
private renderClear;
|
|
114
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
115
|
+
}
|
|
116
|
+
declare global {
|
|
117
|
+
interface HTMLElementTagNameMap {
|
|
118
|
+
'cx-search-facet-date': CxSearchFacetDate;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup, nothing, PropertyValues } from 'lit';
|
|
3
|
+
import { Facet } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @summary The body of a `kind: 'similar'` facet of `cx-search-facets` ("Conceptually similar to"): one checkbox and the
|
|
6
|
+
* reference asset's preview under it.
|
|
7
|
+
* @description The checkbox is labelled with the value's text and ticked from the panel's preview. In a fixed list
|
|
8
|
+
* (`disabled`) it is shown ticked and cannot change, and nothing is sent for it. The preview is a plain image, not a
|
|
9
|
+
* link; without `imageUrl`, or when the image fails to load, the checkbox shows alone. A change goes to the panel, which
|
|
10
|
+
* queues it until Apply.
|
|
11
|
+
*
|
|
12
|
+
* @event {SearchFacetToggleDetail} cx-search-facet-toggle - Internal: the checkbox changed. The panel stops it.
|
|
13
|
+
* @event cx-search-facet-focus-title - Internal: the focused checkbox became unusable.
|
|
14
|
+
*
|
|
15
|
+
* @csspart similar-checkbox - The checkbox.
|
|
16
|
+
* @csspart similar-preview - The preview image.
|
|
17
|
+
*/
|
|
18
|
+
export default class CxSearchFacetSimilar extends CortexElement {
|
|
19
|
+
static readonly styles: CSSResultGroup;
|
|
20
|
+
static readonly dependencies: Record<string, typeof CortexElement>;
|
|
21
|
+
/** Whether the checkbox had focus before an update, so focus moves on if it becomes unusable. */
|
|
22
|
+
private hadFocus;
|
|
23
|
+
/** The similar facet, including the panel's preview of its waiting tick. */
|
|
24
|
+
facet?: Facet;
|
|
25
|
+
/** Blocks the checkbox, for example while an Apply is in flight. */
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
/** The preview URL that failed to load, so it is hidden until the payload sends another. */
|
|
28
|
+
private failedImageUrl?;
|
|
29
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
30
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
31
|
+
private get node();
|
|
32
|
+
private get isOperable();
|
|
33
|
+
private handleChange;
|
|
34
|
+
/** Keeps the checkbox's own input events inside the panel; the panel hears the toggle only. */
|
|
35
|
+
private stopInnerEvent;
|
|
36
|
+
private handleImageError;
|
|
37
|
+
private renderPreview;
|
|
38
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
39
|
+
}
|
|
40
|
+
declare global {
|
|
41
|
+
interface HTMLElementTagNameMap {
|
|
42
|
+
'cx-search-facet-similar': CxSearchFacetSimilar;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup, nothing, PropertyValues } from 'lit';
|
|
3
|
+
import { Facet } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @summary The body of a standard filter, flat or nested: a W3C APG tree view whose values the user ticks. A flat
|
|
6
|
+
* filter is a tree of one level.
|
|
7
|
+
* @description Controlled by the `facet` it receives, which already carries the panel's pending-change preview; values
|
|
8
|
+
* render in the server's order, without sorting or cutting. A tick is reported with `cx-search-facet-toggle`, one per
|
|
9
|
+
* ticked value, a branch included: the server decides what a branch tick writes below it, and `cx-search-facets` stops
|
|
10
|
+
* the event once it has queued the change.
|
|
11
|
+
*
|
|
12
|
+
* The tree is one tab stop (roving tabindex): Tab enters on the last value the user was on, else the first. Inside,
|
|
13
|
+
* ArrowDown / ArrowUp move between the visible values, ArrowRight opens a closed branch or moves into an open one,
|
|
14
|
+
* ArrowLeft closes an open branch or moves to the parent (the two swap in a right-to-left page), Home / End go to the
|
|
15
|
+
* first / last value, `*` opens every closed branch beside the focused value, and typing moves to the next value whose
|
|
16
|
+
* name starts with the typed text. Space ticks or unticks. Enter picks the value as a click on its name would, a
|
|
17
|
+
* branch included, and opens or closes nothing: it picks only that value when `facet.labelClickTarget` is `'separate'`
|
|
18
|
+
* (`pickMode: 'replace'`, VAL-02), else ticks it. Escape asks the facet shell to focus its heading.
|
|
19
|
+
*
|
|
20
|
+
* Each value has `aria-level`, `aria-posinset` and `aria-setsize` from the payload, `aria-checked` (`mixed` while only
|
|
21
|
+
* part of a branch is picked) and, on a branch, `aria-expanded`. Its name is its label and its shown count (VAL-04); the
|
|
22
|
+
* visible count, the checkbox and the branch arrow are hidden from assistive technology. The checkbox and the arrow are
|
|
23
|
+
* for the pointer: the checkbox is inert and only draws the value's state, and a click on it ticks or unticks the value.
|
|
24
|
+
* A click on a `'separate'` facet's name picks only that value. A cut name shows its full text on hover
|
|
25
|
+
* unless `facet.fullTextOnHover` is false (VAL-08). While `disabled`, values can still be focused, moved through and
|
|
26
|
+
* folded, but not ticked.
|
|
27
|
+
*
|
|
28
|
+
* A branch is open by the user's choice in `nodeFolds`, else by the payload's `expanded`. Opening or closing one emits
|
|
29
|
+
* `cx-search-facets-node-expand` for the host, which stores it under the branch's `foldKey`; the owning panel holds the
|
|
30
|
+
* choice. Children of a closed branch are not rendered.
|
|
31
|
+
*
|
|
32
|
+
* When `facet.lockBranchesOpen` is true every branch is open, whatever `nodeFolds` and `expanded` say, and stays open:
|
|
33
|
+
* no branch draws an arrow (each keeps its place), and no key or click opens or closes one, so no
|
|
34
|
+
* `cx-search-facets-node-expand` is emitted. Each branch still carries `aria-expanded="true"`: a parent treeitem states
|
|
35
|
+
* its open state, and omitting it would describe the branch as an end node. ArrowLeft on such a branch moves to its
|
|
36
|
+
* parent, as on a closed one, and `*` opens nothing.
|
|
37
|
+
*
|
|
38
|
+
* Focus stays on its value when new data arrives. When the value leaves, focus moves to its nearest visible ancestor,
|
|
39
|
+
* else to the value now at its place, else to the last value; with no value left the body asks its shell to focus the
|
|
40
|
+
* facet heading. Focus outside the tree is never pulled in.
|
|
41
|
+
*
|
|
42
|
+
* While `facet.hasMore` is true, a More button asks the panel for the longer list with `cx-search-facet-show-more`. Its
|
|
43
|
+
* accessible name names the filter, and its tooltip shows how many top-level values are shown out of
|
|
44
|
+
* `facet.totalCount`. If More had focus and the longer list removes it, focus moves to the first top-level value that
|
|
45
|
+
* was not shown before More; when there is none, the body asks its shell to focus the facet heading.
|
|
46
|
+
*
|
|
47
|
+
* @event {{ checked: boolean; facetId: string; pickMode?: TogglePickMode; value: string; via: ToggleVia }} cx-search-facet-toggle -
|
|
48
|
+
* Internal: the user ticked or unticked a value (`via: 'checkbox'`), or picked only it (`via: 'label'`,
|
|
49
|
+
* `pickMode: 'replace'`, always `checked`). The panel stops it.
|
|
50
|
+
* @event {{ expanded: boolean; facetId: string; foldKey?: string; value: string }} cx-search-facets-node-expand - The
|
|
51
|
+
* user opened or closed a branch. Reaches the host.
|
|
52
|
+
* @event {{ facetId: string }} cx-search-facet-show-more - Internal: the user pressed More. The panel stops it.
|
|
53
|
+
* @event cx-search-facet-focus-title - Internal, non-bubbling request to the shell to focus the facet heading.
|
|
54
|
+
*
|
|
55
|
+
* @csspart tree - The tree.
|
|
56
|
+
* @csspart group - The values below an open branch.
|
|
57
|
+
* @csspart item - One value, with the values below it.
|
|
58
|
+
* @csspart item-row - The row of one value.
|
|
59
|
+
* @csspart item-arrow - The arrow that opens or closes a branch.
|
|
60
|
+
* @csspart item-checkbox - The selection checkbox.
|
|
61
|
+
* @csspart item-label - The value label.
|
|
62
|
+
* @csspart item-count - The server-formatted count.
|
|
63
|
+
* @csspart show-more - The button that reveals the facet's longer value list.
|
|
64
|
+
*/
|
|
65
|
+
export default class CxSearchFacetTree extends CortexElement {
|
|
66
|
+
#private;
|
|
67
|
+
static readonly styles: CSSResultGroup;
|
|
68
|
+
static readonly dependencies: Record<string, typeof CortexElement>;
|
|
69
|
+
private readonly localize;
|
|
70
|
+
private readonly moreButton?;
|
|
71
|
+
/** The facet to render, including the panel's pending-change preview. */
|
|
72
|
+
facet?: Facet;
|
|
73
|
+
/** Blocks ticks and More, for example while an Apply is in flight. Values stay focusable and foldable. */
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The user's open/closed choice per branch, keyed by `nodeKey(facetId, foldKey ?? value)`. Held by the owning panel so
|
|
77
|
+
* it survives new payloads; a branch without an entry follows its payload `expanded`.
|
|
78
|
+
*/
|
|
79
|
+
nodeFolds: ReadonlyMap<string, boolean>;
|
|
80
|
+
/** Shows the More button as loading while the panel waits for the longer list. */
|
|
81
|
+
moreLoading: boolean;
|
|
82
|
+
/** Blocks More while another facet's More request is in flight. */
|
|
83
|
+
moreDisabled: boolean;
|
|
84
|
+
/** `nodeKey` of the value that holds the tab stop; the first visible value until the user moves. */
|
|
85
|
+
private activeKey?;
|
|
86
|
+
/** Actual keyboard focus, separate from the remembered tab stop, drives a truncated value's tooltip. */
|
|
87
|
+
private focusedKey?;
|
|
88
|
+
connectedCallback(): void;
|
|
89
|
+
disconnectedCallback(): void;
|
|
90
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
91
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
92
|
+
/**
|
|
93
|
+
* Puts focus on a value once the body has drawn the data it was last given, where the value is: nothing scrolls
|
|
94
|
+
* unless the row is out of view. Resolves with whether the value was there to take focus. The owning panel uses it
|
|
95
|
+
* to leave the user on the value they ticked once their Apply is done.
|
|
96
|
+
*/
|
|
97
|
+
focusValue(value: string): Promise<boolean>;
|
|
98
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
99
|
+
}
|
|
100
|
+
declare global {
|
|
101
|
+
interface HTMLElementTagNameMap {
|
|
102
|
+
'cx-search-facet-tree': CxSearchFacetTree;
|
|
103
|
+
}
|
|
104
|
+
}
|
package/library/packages/organisms/src/search-facets/components/search-facet-tree/visible-nodes.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FacetNode } from '../../types';
|
|
2
|
+
/** One value the keyboard can reach: a value of the top level or of an open branch, in reading order. */
|
|
3
|
+
export interface VisibleNode {
|
|
4
|
+
/** Whether the value has children. */
|
|
5
|
+
isBranch: boolean;
|
|
6
|
+
/** Whether a branch shows its children. Always false on a leaf. */
|
|
7
|
+
isExpanded: boolean;
|
|
8
|
+
/** `nodeKey` of the value. */
|
|
9
|
+
key: string;
|
|
10
|
+
node: FacetNode;
|
|
11
|
+
/** `nodeKey` of the value's parent; omitted at the top level. */
|
|
12
|
+
parentKey?: string;
|
|
13
|
+
}
|
|
14
|
+
/** The values the keyboard can reach, with each one's position, built once per facet and fold change. */
|
|
15
|
+
export interface VisibleNodes {
|
|
16
|
+
/** Position of each value in `nodes`, by `nodeKey`. */
|
|
17
|
+
indexByKey: ReadonlyMap<string, number>;
|
|
18
|
+
nodes: readonly VisibleNode[];
|
|
19
|
+
}
|
|
20
|
+
/** The key a branch's fold is held under: its `foldKey` when the server sends one, else its value. */
|
|
21
|
+
export declare const foldKeyOf: (facetId: string, node: Pick<FacetNode, "foldKey" | "value">) => string;
|
|
22
|
+
/** Whether a value has children. */
|
|
23
|
+
export declare const isBranchNode: (node: FacetNode) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* A branch is open whatever the folds say when the facet locks branches open (`Facet.lockBranchesOpen`), else by the
|
|
26
|
+
* user's choice, else as the server sent it; a leaf never is.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isNodeExpanded(facetId: string, node: FacetNode, nodeFolds: ReadonlyMap<string, boolean>, lockBranchesOpen?: boolean): boolean;
|
|
29
|
+
/** Lists the values of the top level and of every open branch, in reading order. */
|
|
30
|
+
export declare function collectVisibleNodes(facetId: string, values: readonly FacetNode[], nodeFolds: ReadonlyMap<string, boolean>, lockBranchesOpen?: boolean): VisibleNodes;
|
|
31
|
+
/**
|
|
32
|
+
* Type-ahead: the next value after `fromIndex`, wrapping, whose label starts with `search`, ignoring case and accents.
|
|
33
|
+
* When the search is one repeated character, the current value is skipped, so pressing a letter again cycles through
|
|
34
|
+
* the values that start with it. Returns `undefined` when none matches. `search` holds at least one typed character.
|
|
35
|
+
*/
|
|
36
|
+
export declare function findTypeAheadMatch(nodes: readonly VisibleNode[], fromIndex: number, search: string): VisibleNode | undefined;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup, PropertyValues } from 'lit';
|
|
3
|
+
import { PreviewSummary } from '../../state/preview-summary';
|
|
4
|
+
/**
|
|
5
|
+
* @summary The "Applied filters" block of `cx-search-facets`: a heading button that folds it, one chip per search
|
|
6
|
+
* condition, and Clear All.
|
|
7
|
+
* @description Its heading is the same disclosure button as a facet's, so the panel's headers look and behave alike.
|
|
8
|
+
* Draws what it is given. The owning panel holds the fold, queues removals and clears until Apply, and
|
|
9
|
+
* passes the preview back: a chip whose removal waits shows dimmed and struck through, and its remove button turns into
|
|
10
|
+
* an undo on the same button, so focus stays put; while a clear waits, the chips it removes cannot be removed one by
|
|
11
|
+
* one and Clear All offers the undo.
|
|
12
|
+
*
|
|
13
|
+
* A chip itself takes no focus: its remove button is its only stop. The button names the filter and all its values, so
|
|
14
|
+
* a chip cut to one line still reads in full, and focusing it from the keyboard opens the chip's hover text as hovering
|
|
15
|
+
* does; a click focuses it without holding the hover text open.
|
|
16
|
+
*
|
|
17
|
+
* @event {{ criterionId: string }} cx-search-facets-summary-remove - Internal: a chip's remove or undo was pressed.
|
|
18
|
+
* The panel stops it.
|
|
19
|
+
* @event cx-search-facets-clear-all - Internal: Clear All or its undo was pressed. The panel stops it.
|
|
20
|
+
* @event {{ expanded: boolean }} cx-search-facets-summary-expand - The heading asked to open or close the block. Reaches
|
|
21
|
+
* the host.
|
|
22
|
+
*
|
|
23
|
+
* @csspart summary - The block.
|
|
24
|
+
* @csspart summary-header - The heading button that folds the block.
|
|
25
|
+
* @csspart summary-body - The chips and Clear All, which the heading folds away.
|
|
26
|
+
* @csspart summary-chip - One chip.
|
|
27
|
+
* @csspart summary-chip-remove - A chip's remove (or undo) button.
|
|
28
|
+
* @csspart summary-clear-all - The Clear All button.
|
|
29
|
+
*
|
|
30
|
+
* @cssproperty --cx-search-facets-chip-background - The chip background.
|
|
31
|
+
* @cssproperty [--cx-search-facets-chip-thumb-size=32px] - The size of a reverse image search thumbnail.
|
|
32
|
+
*/
|
|
33
|
+
export default class CxSearchFacetsSummary extends CortexElement {
|
|
34
|
+
#private;
|
|
35
|
+
static readonly styles: CSSResultGroup;
|
|
36
|
+
static readonly dependencies: Record<string, typeof CortexElement>;
|
|
37
|
+
/** The chip text: the server's shaped text, else its values joined. */
|
|
38
|
+
private static chipText;
|
|
39
|
+
/** The name a chip's remove button speaks: the filter name, else the chip text for a chip without one. */
|
|
40
|
+
private static chipName;
|
|
41
|
+
/** The values a chip's remove button speaks: all of them, uncut, else the chip text. */
|
|
42
|
+
private static chipSpokenValues;
|
|
43
|
+
private readonly localize;
|
|
44
|
+
private readonly toggleButton?;
|
|
45
|
+
/** The summary preview from the owning panel. */
|
|
46
|
+
summary?: PreviewSummary;
|
|
47
|
+
/** Whether the block is open. The owning panel holds it so a payload or a preview never resets it. */
|
|
48
|
+
expanded: boolean;
|
|
49
|
+
/** Blocks every chip button and Clear All, for example while an Apply is in flight. */
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
/** Set while a Clear All waits for Apply, so Clear All offers its undo. */
|
|
52
|
+
clearWaiting: boolean;
|
|
53
|
+
/** The chip whose remove button has focus; its hover text shows while it does. */
|
|
54
|
+
private focusedChipId?;
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
58
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
59
|
+
/** Moves focus to the heading. */
|
|
60
|
+
focusHeader(): void;
|
|
61
|
+
render(): symbol | import('lit-html').TemplateResult<1> | undefined;
|
|
62
|
+
}
|
|
63
|
+
declare global {
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
'cx-search-facets-summary': CxSearchFacetsSummary;
|
|
66
|
+
}
|
|
67
|
+
}
|