@orangelogic/design-system 4.68.0 → 4.70.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.R0uU2KH7.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.sdjI6U9A.js} +2 -2
- package/library/chunks/{asset-link-format.COPyGdND.js → asset-link-format.D6L-qc3X.js} +8 -8
- package/library/chunks/{asset-link-format.Ce_3Qz6_.js → asset-link-format.dq41gJTI.js} +389 -384
- package/library/chunks/{audio.B0VfXBIx.js → audio.Bh_OVMPq.js} +2 -2
- package/library/chunks/{bicolor-picker.DS9Uut25.js → bicolor-picker.BiEM_IkN.js} +1 -1
- package/library/chunks/{block-width.y7Lu3iJ5.js → block-width.DVoxwnhY.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.zw5e2uZT.js} +3 -3
- package/library/chunks/{breadcrumb.DkINVxcJ.js → breadcrumb.BUMgMApw.js} +1 -1
- package/library/chunks/{button.DKkHqsUz.js → button.Dja-uoTw.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.dyBoEYVk.js} +11 -11
- package/library/chunks/{color-swatch-group.CuMJc6m8.js → color-swatch-group.D7ezyFa4.js} +24 -24
- package/library/chunks/{color-swatch.DXAr2gBg.js → color-swatch.y7Bpth0U.js} +3 -3
- package/library/chunks/{config-manager.CHIF7ZBl.js → config-manager.DxNqEyoQ.js} +32 -32
- package/library/chunks/{configs-controller.TQDPq63n.js → configs-controller.Dw2p65Lp.js} +9 -9
- package/library/chunks/{confirm-popover.sZVNhFPh.js → confirm-popover.CBU6yy6Y.js} +4 -4
- package/library/chunks/{copy-button.CqqKJEh3.js → copy-button.FXPqVprU.js} +2 -2
- package/library/chunks/{corner-position-input-group.nTlFes0_.js → corner-position-input-group.itPK9LEh.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.CVCAmoi6.js +188 -0
- package/library/chunks/date.kywrEgxd.js +363 -0
- package/library/chunks/{details.DSgp6VAD.js → details.DmHi0fqd.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.DpY6WRVN.js} +3 -3
- package/library/chunks/{diff.Bmdpmpvo.js → diff.BLPeoeMo.js} +1 -1
- package/library/chunks/{document-viewer.L77oYyOp.js → document-viewer.b3Nej7rG.js} +14 -14
- package/library/chunks/{dom.BLHsooDR.js → dom.8wD7rIGz.js} +1 -1
- package/library/chunks/{dot-pagination.C1C6NG8d.js → dot-pagination.ByrS9Fz0.js} +2 -2
- package/library/chunks/{drawer.BsKzYqKe.js → drawer.B9v7mKrO.js} +2 -2
- package/library/chunks/{dropdown.CKhoP9Cr.js → dropdown.BPVXbna1.js} +16 -7
- package/library/chunks/{dynamic-select.Cb3L0dIB.js → dynamic-select.D2zWyFJw.js} +5 -5
- package/library/chunks/{e-chart.DKFAToIc.js → e-chart.Dbh7iFWT.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.CM3ydK4k.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.BqWBYhdM.js} +17 -17
- package/library/chunks/flowDiagram-UKHOOZJN.BkgRtWrB.js +16 -0
- package/library/chunks/{folder-select.DJ5EEod3.js → folder-select.oEUjUT-R.js} +9 -9
- package/library/chunks/{form.D_eBa3AQ.js → form.ChOu6BIn.js} +1 -1
- package/library/chunks/{format-time.QkJcKYrT.js → format-time.QdzoTicK.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.l6qj73ci.js} +2 -2
- package/library/chunks/{i18n.Bjg2ubA4.js → i18n.BYpiX0kX.js} +40 -1
- package/library/chunks/{icon-button.qJd_az6T.js → icon-button.4VGhMghV.js} +2 -2
- package/library/chunks/{iframe.sl2wnUcC.js → iframe.CQ4J2A_9.js} +1 -1
- package/library/chunks/{image-comparer.BCD6kzLm.js → image-comparer.DMCUgZXb.js} +1 -1
- package/library/chunks/{image.-lgb634-.js → image.DQCunWsS.js} +2 -2
- package/library/chunks/{infoDiagram-6WML65LV.BHVojFJh.js → infoDiagram-6WML65LV.BlZ2eFcf.js} +2 -2
- package/library/chunks/{input.DZRed6yo.js → input.DWh_E1GV.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.DgWfU-Yi.js} +47 -28
- package/library/chunks/{markdown.BzDRvv-f.js → markdown.7JZ0SpEP.js} +4 -4
- package/library/chunks/{masonry.BxNeClR6.js → masonry.CMGXrgQ8.js} +3 -3
- package/library/chunks/{menu-item.au-gTg1F.js → menu-item.CJFkQ-YV.js} +3 -3
- package/library/chunks/{menu.BxBtGPsg.js → menu.BYeW0I0d.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.Dk32KiRr.js} +1 -1
- package/library/chunks/{padding-input-group.D2Qx15Yj.js → padding-input-group.BlSd4VCs.js} +1 -1
- package/library/chunks/{pagination.ByLuPMyE.js → pagination.C0Zu1uP7.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.DaV-mbsU.js} +2 -2
- package/library/chunks/{position-picker.X2hhfGx7.js → position-picker.mxReT7rl.js} +3 -3
- package/library/chunks/{progress-bar.CynVLLnY.js → progress-bar.OOVw3Ho1.js} +1 -1
- package/library/chunks/{progress-ring.Bfdj3-uB.js → progress-ring.DDNC-hmO.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.CbaIYFEi.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.1d77B-YM.js} +3 -3
- package/library/chunks/{rating.CNeNn996.js → rating.u1DIMFu_.js} +1 -1
- package/library/chunks/{relative-time.BfE3UOhF.js → relative-time.Ca958bVn.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.Blx7Am5x.js} +112 -108
- package/library/chunks/{sequenceDiagram-SI44F4Z6.BNjBc769.js → sequenceDiagram-SI44F4Z6.CZxsjRpC.js} +4 -4
- package/library/chunks/{shadow-input-group.Xxuzm8Qe.js → shadow-input-group.E6JTidSM.js} +2 -2
- package/library/chunks/{share-option-list.DOaEypfQ.js → share-option-list.CVazDKnW.js} +3 -3
- package/library/chunks/{sidebar.CiZOJ49X.js → sidebar.2H_HDEhd.js} +2 -2
- package/library/chunks/{size-input-group.wXuG0-RB.js → size-input-group.CxTubAwO.js} +5 -5
- package/library/chunks/{spinner.Bv06U7NJ.js → spinner.AokDNIMB.js} +1 -1
- package/library/chunks/{split-panel.Cag0lAvv.js → split-panel.B0tLqJqx.js} +1 -1
- package/library/chunks/{src.Dia365C9.js → src.BQtwu7L_.js} +26 -26
- package/library/chunks/src.D6mhR5h1.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.qMEvWQSa.js} +3 -3
- package/library/chunks/{stepper-wizard.CPZ2mSze.js → stepper-wizard.DbU4i26F.js} +2 -2
- package/library/chunks/{stepper.D0JB_GVh.js → stepper.BxTR5LWg.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.CBg0wLFC.js} +8 -8
- package/library/chunks/{tab.CYYAua8Y.js → tab.Dmb7JL1e.js} +3 -3
- package/library/chunks/{tag.DQLauctm.js → tag.BGu9ORJf.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.CboSydrY.js} +17 -21
- package/library/chunks/{tree.BI7r-WnZ.js → tree.CJcVgjAA.js} +4 -4
- package/library/chunks/{typeface.DTLrIP0B.js → typeface.rz2bQ3m1.js} +3 -3
- package/library/chunks/{vennDiagram-T6HMQDX7.Cd9lVObe.js → vennDiagram-T6HMQDX7.DYlGT1g9.js} +3 -3
- package/library/chunks/{video.DWmHPbXO.js → video.vPLA5d28.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 +58 -58
- 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 +18 -18
- 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 +21745 -18966
- 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 +0 -4
- 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/3d-viewer/3d-viewer.d.ts +1 -0
- package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +116 -0
- 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/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 +39 -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 +87 -5
- 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.2wQZtR6J.js +0 -103
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup, PropertyValues } from 'lit';
|
|
3
|
+
import { SearchFacetsData, SearchFacetsRequestResult } from './types';
|
|
4
|
+
export type { ActionDescriptor, ClearKind, Facet, FacetChange, FacetCheck, FacetColor, FacetDate, FacetDateHour, FacetDateMessages, FacetDateMode, FacetDatePeriod, FacetDateTimeUnit, FacetIndexingStatus, FacetKind, FacetNode, FacetPresentation, FacetSelectAll, FacetState, PanelConfig, SearchFacetsData, SearchFacetsRequestResult, SearchFacetsSummary, SummaryCriterion, ToggleVia, } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* @summary Search filter panel. The host owns fetching and supplies contract-v0 data; the panel owns the local
|
|
7
|
+
* selection preview and sends the user's net changes as one batch on Apply.
|
|
8
|
+
* @description Ticks are queued, not committed: reversing a tick removes it again, and the Apply button is shown
|
|
9
|
+
* only while at least one net change remains, unless `always-show-apply` keeps it shown so the user can apply an
|
|
10
|
+
* empty batch and have the host search again. While an Apply is in flight, selection is blocked. The next payload
|
|
11
|
+
* resolves it (or, once the server echoes it, the payload whose `responseTo` matches the request ID). A payload for
|
|
12
|
+
* another search discards pending changes. The host replaces this element when it switches panels, and disconnecting
|
|
13
|
+
* discards pending changes and timers. Ticks arrive from the facet bodies as `cx-search-facet-toggle`, which the panel
|
|
14
|
+
* stops so it never reaches the host.
|
|
15
|
+
*
|
|
16
|
+
* When the Apply that held focus leaves with its answer, focus goes back to the value the user ticked last, as today's
|
|
17
|
+
* panel keeps focus on the control it redraws, and the panel does not scroll. If that value is not there to take it, or
|
|
18
|
+
* the last thing queued was not a tick, focus goes to the panel itself, also without scrolling.
|
|
19
|
+
*
|
|
20
|
+
* A control focused from the keyboard never stays behind the sticky Apply: the panel scrolls it just clear of Apply
|
|
21
|
+
* and its focus ring, as the browser scrolls any focused control into view.
|
|
22
|
+
*
|
|
23
|
+
* More asks the host for a facet's longer list and queues no change. The host answers with a whole payload for the
|
|
24
|
+
* same search and `responseTo: null`: pending changes are carried onto it, and it never resolves an Apply in flight.
|
|
25
|
+
* One More is in flight at a time; the next payload or a timeout ends its loading state. More is disabled while an
|
|
26
|
+
* Apply is in flight.
|
|
27
|
+
*
|
|
28
|
+
* The "Applied filters" block comes first when `panel.showSummary` is not `false` and the summary has chips, or a
|
|
29
|
+
* title: with no chips it is the header alone (title and count, as today's panel on a search with no filters), with
|
|
30
|
+
* nothing to fold and no Clear All. Removing a
|
|
31
|
+
* chip, Clear All and Clear all filters (in the panel header when the block is hidden) wait for Apply like a tick: the
|
|
32
|
+
* panel previews them (a removed facet chip's values, and every value under a clear, return to their default, unticked
|
|
33
|
+
* unless the server sends `defaultChecked`; on a facet with defaults a chip removal returns every value) and pressing
|
|
34
|
+
* the same button again undoes them. The block starts open or closed from the first summary's `collapsed`; the user's
|
|
35
|
+
* choice then holds for the life of the element.
|
|
36
|
+
*
|
|
37
|
+
* Each facet header offers select all and reset (FAC-03, FAC-04), also on a closed facet. Both wait for Apply and
|
|
38
|
+
* replace the facet's earlier ticks; ticks made after them are kept. A waiting reset returns the facet and its chips to
|
|
39
|
+
* their defaults, and its button offers the undo; the server may also reset related filters, which change only after
|
|
40
|
+
* Apply.
|
|
41
|
+
*
|
|
42
|
+
* The batch sends the clear first, then the chip removals, then the facet resets and select-alls, then the ticks, each
|
|
43
|
+
* in the order made.
|
|
44
|
+
*
|
|
45
|
+
* When the search changes outside the panel (search words, a folder, see-thru, bin mode, the AI assistant), the host
|
|
46
|
+
* sets `loading` while it recounts. The panel keeps the last data, blocks every selection and More as during an Apply,
|
|
47
|
+
* leaves Apply enabled but inert, hides the empty text and sets `aria-busy` on its section. The next `data` ends it, or
|
|
48
|
+
* 30 seconds without one. A payload for another search drops the waiting changes, and the status region, which sits
|
|
49
|
+
* outside the busy section, says so once; a sort or a page size keeps the search key, so the changes stay.
|
|
50
|
+
*
|
|
51
|
+
* The status region announces select-only by value name and the result count (including no results) when an Apply's
|
|
52
|
+
* answer arrives, without moving focus. Another selection, request or payload clears that action announcement.
|
|
53
|
+
* The host reports failures through `requestResult` with the active request ID. Matching failures end the wait,
|
|
54
|
+
* keep the last payload and pending changes, and announce the outcome without moving focus. An error also shows
|
|
55
|
+
* a message and decorative icon. For a host recount, set `loadingRequestId` before setting `loading = true`.
|
|
56
|
+
*
|
|
57
|
+
* From `panel.longPanelThreshold` facets on (`>=`, not counting `color` and `similar`), the panel skips layout and paint
|
|
58
|
+
* of the facets far out of view (PNL-09) with CSS only. Every facet stays in the DOM, the tab order, find-in-page and
|
|
59
|
+
* the accessibility tree. The mode is decided again on each payload and keeps the facet elements, focus and scroll.
|
|
60
|
+
*
|
|
61
|
+
* With no facets, `panel.emptyText` shows as given; `''` draws nothing, and omitted or null shows the `noFilters` term.
|
|
62
|
+
* Content slotted into `empty` replaces either. The server writes an unset panel field as null: it reads as omitted.
|
|
63
|
+
*
|
|
64
|
+
* @slot empty - Content shown when the payload contains no facets.
|
|
65
|
+
*
|
|
66
|
+
* @event {{ requestId: string; searchKey?: string; changes: FacetChange[] }} cx-search-facets-apply -
|
|
67
|
+
* Emitted once per Apply click with the net pending changes, which are empty only when `always-show-apply` lets the
|
|
68
|
+
* user apply without one.
|
|
69
|
+
* @event {{ facetId: string }} cx-search-facets-show-more - Emitted when the user presses a facet's More button.
|
|
70
|
+
* @event {{ expanded: boolean }} cx-search-facets-summary-expand - Emitted when the user opens or closes the
|
|
71
|
+
* "Applied filters" block.
|
|
72
|
+
* @event {{ facetId: string; expanded: boolean }} cx-search-facets-facet-expand - Emitted when the user opens or
|
|
73
|
+
* closes a facet the server lets close. A facet starts from its payload `state`; the user's choice then holds for the
|
|
74
|
+
* life of the element.
|
|
75
|
+
* @event {{ facetId: string; value: string; expanded: boolean; foldKey?: string }} cx-search-facets-node-expand -
|
|
76
|
+
* Emitted when the user opens or closes a branch of a tree filter. The host stores the choice under `foldKey`; the panel
|
|
77
|
+
* holds it for the life of the element, across payloads and searches, and needs no data back.
|
|
78
|
+
*
|
|
79
|
+
* @csspart base - The panel container.
|
|
80
|
+
* @csspart header - The panel header, shown with Clear all filters when the "Applied filters" block is hidden.
|
|
81
|
+
* @csspart reset-button - Clear all filters in the panel header.
|
|
82
|
+
* @csspart summary - The "Applied filters" block.
|
|
83
|
+
* @csspart summary-header - The heading button that folds the block.
|
|
84
|
+
* @csspart summary-body - The chips and Clear All.
|
|
85
|
+
* @csspart summary-chip - One chip.
|
|
86
|
+
* @csspart summary-chip-remove - A chip's remove (or undo) button.
|
|
87
|
+
* @csspart summary-clear-all - Clear All in the block.
|
|
88
|
+
* @csspart facet - One standard filter.
|
|
89
|
+
* @csspart footer - The container of the Apply button.
|
|
90
|
+
* @csspart apply-button - The Apply button.
|
|
91
|
+
* @csspart request-error - The visible request error message and icon.
|
|
92
|
+
*
|
|
93
|
+
* @cssproperty [--cx-search-facets-background=transparent] - Background of the panel and of the sticky Apply. Transparent
|
|
94
|
+
* by default, so the panel shows the surface it is drawn on (a popup, a Space's background, the dark theme) with no band
|
|
95
|
+
* around it. A host whose facets should not show behind Apply sets it to its own background color, on the box that draws
|
|
96
|
+
* that color.
|
|
97
|
+
* @cssproperty [--cx-search-facets-padding-inline=0px] - Space on each side of the panel. A host whose container does
|
|
98
|
+
* not pad its content can set it, for example to `var(--cx-spacing-large)`.
|
|
99
|
+
* @cssproperty [--cx-search-facets-padding-block-end=0px] - Space at the end of the panel, after the last facet and
|
|
100
|
+
* Apply. The panel uses the larger of this and the footer inset. Give a unit.
|
|
101
|
+
* @cssproperty [--cx-search-facets-footer-inset-block-end=0px] - How far above the bottom of the scrolling area the
|
|
102
|
+
* sticky Apply stays. It must cover any bar over the host's scroller. Apply also stays at least as far up as that
|
|
103
|
+
* scroller runs below the viewport, which the panel measures itself. Give a unit.
|
|
104
|
+
* @cssproperty [--cx-search-facets-footer-clearance-block-end=0px] - Extra space the sticky Apply keeps above the part
|
|
105
|
+
* of the scrolling area that runs below the viewport, for a bar the host fixes to the bottom of the screen, which covers
|
|
106
|
+
* the scroller without being part of it. Unlike the footer inset, it adds to that measured part. Give a unit.
|
|
107
|
+
*/
|
|
108
|
+
export default class CxSearchFacets extends CortexElement {
|
|
109
|
+
#private;
|
|
110
|
+
static readonly styles: CSSResultGroup;
|
|
111
|
+
static readonly dependencies: Record<string, typeof CortexElement>;
|
|
112
|
+
/** Converts the JSON payload rendered by the Cortex host into contract-v0 data. */
|
|
113
|
+
private static dataAttributeConverter;
|
|
114
|
+
/**
|
|
115
|
+
* The box a panel's sticky Apply sticks in: its nearest ancestor, across shadow roots, that clips its overflow. None
|
|
116
|
+
* when the page itself scrolls the panel, where the viewport is that box and nothing runs below it.
|
|
117
|
+
* `private static`, not `static #`: a decorated class cannot have static private names (TS18036).
|
|
118
|
+
*/
|
|
119
|
+
private static findScroller;
|
|
120
|
+
private readonly localize;
|
|
121
|
+
/** Re-renders when the host slots or removes empty content, so `emptyText: ''` can still give way to it. */
|
|
122
|
+
private readonly hasSlotController;
|
|
123
|
+
private readonly base;
|
|
124
|
+
/** The sticky Apply's container; null while the footer is not rendered. */
|
|
125
|
+
private readonly footer;
|
|
126
|
+
/** Authoritative contract-v0 payload. */
|
|
127
|
+
data?: SearchFacetsData;
|
|
128
|
+
/**
|
|
129
|
+
* Keeps the Apply button shown while no change is pending, so the user can apply an empty batch and have the host
|
|
130
|
+
* search again. Off by default: the button shows only while changes are pending.
|
|
131
|
+
*/
|
|
132
|
+
alwaysShowApply: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Set to true by the host, by script on the element, while it recounts the filters for a search changed outside the
|
|
135
|
+
* panel. The panel keeps the last data, blocks every selection as during an Apply and marks itself busy. The host
|
|
136
|
+
* never sets it back: the next `data` ends it, or `REQUEST_TIMEOUT_MS` without one.
|
|
137
|
+
*/
|
|
138
|
+
loading: boolean;
|
|
139
|
+
/** Host-generated recount ID, set before `loading = true`. Script-only; omitted retains the legacy timeout flow. */
|
|
140
|
+
loadingRequestId?: string;
|
|
141
|
+
/** Terminal error/cancellation for an Apply or recount. Assign a new object; stale and unknown IDs are ignored. */
|
|
142
|
+
requestResult?: SearchFacetsRequestResult;
|
|
143
|
+
/** Net selection changes the user has made against the current payload but not applied yet. */
|
|
144
|
+
private waitingChanges;
|
|
145
|
+
/** True from an Apply click until its payload arrives or the request times out. */
|
|
146
|
+
private applying;
|
|
147
|
+
/** Matching terminal failure, cleared by the next edit, request or accepted payload. */
|
|
148
|
+
private requestFailure?;
|
|
149
|
+
/** Facet whose More request is in flight, from the click until the next payload arrives or the request times out. */
|
|
150
|
+
private moreLoadingFacetId?;
|
|
151
|
+
/**
|
|
152
|
+
* Whether the "Applied filters" block is open. Set from the first summary's `collapsed`, then only by the user, so
|
|
153
|
+
* neither a later payload nor a preview opens or closes it.
|
|
154
|
+
*/
|
|
155
|
+
private summaryExpanded?;
|
|
156
|
+
/**
|
|
157
|
+
* The user's open/closed choice per facet ID. A facet without an entry follows its payload `state`; once the user
|
|
158
|
+
* folds it, the choice holds for the life of the element, across payloads and previews.
|
|
159
|
+
*/
|
|
160
|
+
private facetFolds;
|
|
161
|
+
/**
|
|
162
|
+
* The user's open/closed choice per tree branch, keyed by `nodeKey(facetId, foldKey ?? value)`. A branch without an
|
|
163
|
+
* entry follows its payload `expanded`; once the user folds it, the choice holds for the life of the element.
|
|
164
|
+
*/
|
|
165
|
+
private nodeFolds;
|
|
166
|
+
/**
|
|
167
|
+
* True once a payload for another search dropped changes the user had not applied, so the status region says so.
|
|
168
|
+
* The user's next change or the next payload clears it, so it is announced once.
|
|
169
|
+
*/
|
|
170
|
+
private changesDropped;
|
|
171
|
+
/** Context for the latest user action; cleared by the next selection, request or authoritative payload. */
|
|
172
|
+
private actionAnnouncement?;
|
|
173
|
+
/**
|
|
174
|
+
* Date filters whose fields hold something that is not a day, keyed by facet ID: what the fields show and which
|
|
175
|
+
* message. Kept here, not in the body, so it survives a fold. While any is set, Apply sends nothing (FE-5).
|
|
176
|
+
*/
|
|
177
|
+
private dateDrafts;
|
|
178
|
+
/** Per date facet, a counter bumped on every explicit clear, so its body rewrites both fields from the preview. */
|
|
179
|
+
private dateFieldResets;
|
|
180
|
+
/**
|
|
181
|
+
* How far the scrolling area around the panel runs below the bottom of the viewport, in pixels. The sticky Apply stays
|
|
182
|
+
* at least this far up, so it stays on screen when the host's inset is smaller than its page needs: the Adobe plugins'
|
|
183
|
+
* side panel runs further below the screen than the full-screen page's inset (L-29TCJE).
|
|
184
|
+
*/
|
|
185
|
+
private viewportOverflow;
|
|
186
|
+
connectedCallback(): void;
|
|
187
|
+
disconnectedCallback(): void;
|
|
188
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
189
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
190
|
+
/** Drops un-applied changes and stops waiting for an Apply or More in flight. */
|
|
191
|
+
discardChanges(): void;
|
|
192
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
193
|
+
}
|
|
194
|
+
declare global {
|
|
195
|
+
interface HTMLElementTagNameMap {
|
|
196
|
+
'cx-search-facets': CxSearchFacets;
|
|
197
|
+
}
|
|
198
|
+
}
|