@orangelogic/design-system 4.69.0 → 4.71.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.BMbwDsmP.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.Bl0fIoAD.js} +2 -2
- package/library/chunks/{asset-link-format.Ce_3Qz6_.js → asset-link-format.C0Bz-mEZ.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.WFMBpGdz.js} +2 -2
- package/library/chunks/{bicolor-picker.DS9Uut25.js → bicolor-picker.BPzbYxLV.js} +1 -1
- package/library/chunks/{block-width.CSyA0Dwe.js → block-width.DjdPu6UK.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.BAQeCwt1.js} +3 -3
- package/library/chunks/{breadcrumb.DkINVxcJ.js → breadcrumb.D9bL86V1.js} +1 -1
- package/library/chunks/{button.DKkHqsUz.js → button.cbOwOkfp.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.DbKVaaKI.js} +11 -11
- package/library/chunks/{color-swatch-group.CuMJc6m8.js → color-swatch-group.Cm0A4rYA.js} +24 -24
- package/library/chunks/{color-swatch.DXAr2gBg.js → color-swatch.Bf8fvLkg.js} +3 -3
- package/library/chunks/{config-manager.BFqNZV0l.js → config-manager.DB7-b-EK.js} +32 -32
- package/library/chunks/{configs-controller.TQDPq63n.js → configs-controller.DFWOYKsW.js} +9 -9
- package/library/chunks/{confirm-popover.sZVNhFPh.js → confirm-popover.CWujDeV1.js} +4 -4
- package/library/chunks/{copy-button.CqqKJEh3.js → copy-button.D4K7M_oK.js} +2 -2
- package/library/chunks/{corner-position-input-group.nTlFes0_.js → corner-position-input-group.DDWSDorz.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.QUer9O4E.js +188 -0
- package/library/chunks/date.kywrEgxd.js +363 -0
- package/library/chunks/{details.DSgp6VAD.js → details.tNVJTWTC.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.Cda1uhdF.js} +3 -3
- package/library/chunks/{diff.Bmdpmpvo.js → diff.BLPeoeMo.js} +1 -1
- package/library/chunks/{document-viewer.L77oYyOp.js → document-viewer.Bimlwspw.js} +14 -14
- package/library/chunks/{dom.BLHsooDR.js → dom.8wD7rIGz.js} +1 -1
- package/library/chunks/{dot-pagination.C1C6NG8d.js → dot-pagination.QSoeQPKs.js} +2 -2
- package/library/chunks/{drawer.BsKzYqKe.js → drawer.D7McF8LV.js} +2 -2
- package/library/chunks/{dropdown.CKhoP9Cr.js → dropdown.POAxHVKf.js} +16 -7
- package/library/chunks/{dynamic-select.Cb3L0dIB.js → dynamic-select.CkyOkzsa.js} +5 -5
- package/library/chunks/{e-chart.DKFAToIc.js → e-chart.CYtsjq1T.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.n_Lrq1kt.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.CqlWEx1w.js} +17 -17
- package/library/chunks/flowDiagram-UKHOOZJN.BkgRtWrB.js +16 -0
- package/library/chunks/{folder-select.DJ5EEod3.js → folder-select.Df1upp0M.js} +9 -9
- package/library/chunks/{form.D_eBa3AQ.js → form.ChOu6BIn.js} +1 -1
- package/library/chunks/{format-time.QkJcKYrT.js → format-time.JhYL2G9j.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.ClRvFgwz.js} +2 -2
- package/library/chunks/{i18n.Bjg2ubA4.js → i18n.X_3rP_Iz.js} +42 -1
- package/library/chunks/{icon-button.qJd_az6T.js → icon-button.CAfxRI1U.js} +2 -2
- package/library/chunks/{iframe.sl2wnUcC.js → iframe.DkQJMbzH.js} +1 -1
- package/library/chunks/{image-comparer.BCD6kzLm.js → image-comparer.CaUpG5Zj.js} +1 -1
- package/library/chunks/{image.-lgb634-.js → image.CVuRwLzz.js} +2 -2
- package/library/chunks/{infoDiagram-6WML65LV.BHVojFJh.js → infoDiagram-6WML65LV.BlZ2eFcf.js} +2 -2
- package/library/chunks/{input.DZRed6yo.js → input.C6fbxRuC.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.C8G30nOV.js} +47 -28
- package/library/chunks/{markdown.BzDRvv-f.js → markdown.C6AfbcBc.js} +4 -4
- package/library/chunks/{masonry.BxNeClR6.js → masonry.Bd2v23iE.js} +3 -3
- package/library/chunks/{menu-item.au-gTg1F.js → menu-item.BotPBD7O.js} +3 -3
- package/library/chunks/{menu.BxBtGPsg.js → menu.YdOirIbC.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.DXF1O3-h.js} +1 -1
- package/library/chunks/{padding-input-group.D2Qx15Yj.js → padding-input-group.B8ph-5ls.js} +1 -1
- package/library/chunks/{pagination.ByLuPMyE.js → pagination.B2hheBNY.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.jgKP0_Eq.js} +2 -2
- package/library/chunks/{position-picker.X2hhfGx7.js → position-picker.BSOusbGw.js} +3 -3
- package/library/chunks/{progress-bar.CynVLLnY.js → progress-bar.D5DPdmL-.js} +1 -1
- package/library/chunks/{progress-ring.Bfdj3-uB.js → progress-ring.DAcWv9zS.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.Bmd-28FP.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.CI4oCDot.js} +3 -3
- package/library/chunks/{rating.CNeNn996.js → rating.CwqqF6CH.js} +1 -1
- package/library/chunks/{relative-time.BfE3UOhF.js → relative-time.CXeuhQzB.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.D6nU_tMZ.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.DQDXISvK.js} +2 -2
- package/library/chunks/{share-option-list.DOaEypfQ.js → share-option-list.B9Raz9GO.js} +3 -3
- package/library/chunks/{sidebar.CiZOJ49X.js → sidebar.7phLIXE9.js} +2 -2
- package/library/chunks/{size-input-group.wXuG0-RB.js → size-input-group._YdmvlAr.js} +5 -5
- package/library/chunks/{spinner.Bv06U7NJ.js → spinner.BfyplUu3.js} +1 -1
- package/library/chunks/{split-panel.Cag0lAvv.js → split-panel.CUs1jgH4.js} +1 -1
- package/library/chunks/{src.Dia365C9.js → src.Bs5rZ16K.js} +26 -26
- package/library/chunks/src.tHpCbOII.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.BRT1Duvf.js} +3 -3
- package/library/chunks/{stepper-wizard.CPZ2mSze.js → stepper-wizard.CAzhXeYZ.js} +2 -2
- package/library/chunks/{stepper.D0JB_GVh.js → stepper.C_a00Rul.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.Bj4mUm_k.js} +8 -8
- package/library/chunks/{tab.CYYAua8Y.js → tab.BbIB084o.js} +3 -3
- package/library/chunks/{tag.DQLauctm.js → tag.3vLG7AWG.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.CaAdk5m9.js} +17 -21
- package/library/chunks/{tree.BI7r-WnZ.js → tree.D_yv5J9e.js} +4 -4
- package/library/chunks/{typeface.DTLrIP0B.js → typeface.J4nY7adt.js} +3 -3
- package/library/chunks/{vennDiagram-T6HMQDX7.Cd9lVObe.js → vennDiagram-T6HMQDX7.DYlGT1g9.js} +3 -3
- package/library/chunks/{video.DWmHPbXO.js → video.D07SfJEm.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 +57 -57
- 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 +21888 -19121
- 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/input-date-picker/input-date-picker.d.ts +116 -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/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 +41 -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.DKhoCHMa.js +0 -103
|
@@ -13,9 +13,13 @@ import { CSSResultGroup } from 'lit';
|
|
|
13
13
|
* Renders a label inside the input, a calendar popup, and optional
|
|
14
14
|
* hour/minute/second selects.
|
|
15
15
|
*
|
|
16
|
+
* With `partial-date` (on top of `calendar-button`) the field also takes a year alone or a month and year. With
|
|
17
|
+
* `no-blur-commit` leaving the field does not commit, for a host that commits when focus leaves its own group.
|
|
18
|
+
*
|
|
16
19
|
* @event cx-change - Emitted when the user commits a date or changes the time. Read `el.value` for the date and `el.timeValue` for the time.
|
|
17
20
|
*
|
|
18
21
|
* @csspart field - The outer wrapper element.
|
|
22
|
+
* @csspart calendar-button - `calendar-button` mode: the button that opens the calendar.
|
|
19
23
|
* @csspart calendar-panel - The popup panel wrapping the calendar.
|
|
20
24
|
* @csspart time-row - The row containing the time selects.
|
|
21
25
|
*
|
|
@@ -37,8 +41,26 @@ export default class CxInputDatePicker extends CortexElement {
|
|
|
37
41
|
'cx-popup': typeof CxPopup;
|
|
38
42
|
'cx-select': typeof CxSelect;
|
|
39
43
|
};
|
|
44
|
+
/** The field holds a whole day: two day digits, two month digits and four year digits, in the pattern's order. */
|
|
45
|
+
private static isCompleteDisplayDate;
|
|
46
|
+
/**
|
|
47
|
+
* `partial-date` mode: a field text that may leave out leading parts, read by the number of pieces it holds. `2021` is
|
|
48
|
+
* a year, `11/2021` (or `2021/11` in a year-first format) a month and year, `29/11/2021` a day. Returns the year, month
|
|
49
|
+
* and day digits as typed; a part left out is empty.
|
|
50
|
+
*/
|
|
51
|
+
private static readPartialText;
|
|
52
|
+
/**
|
|
53
|
+
* `partial-date` mode: where the calendar opens and the day it selects. A full day opens on itself and is selected; a
|
|
54
|
+
* month and year opens on the 1st of the month, a year alone on 1 January, with no day selected. Anything else opens
|
|
55
|
+
* on today. Years 0001-0099 open on their own month.
|
|
56
|
+
*/
|
|
57
|
+
private static partialCalendarDays;
|
|
40
58
|
private readonly localize;
|
|
41
59
|
private readonly dateInputEl;
|
|
60
|
+
private readonly calendarEl?;
|
|
61
|
+
private readonly calendarButtonEl?;
|
|
62
|
+
/** In `calendar-button` mode, the field text last written or committed, so a commit fires only for a real edit. */
|
|
63
|
+
private lastCommittedText;
|
|
42
64
|
/** Display label for the field. */
|
|
43
65
|
label: string;
|
|
44
66
|
/** The name submitted as a name/value pair with form data. */
|
|
@@ -85,6 +107,40 @@ export default class CxInputDatePicker extends CortexElement {
|
|
|
85
107
|
* Falls back to the localized `dateAfterMax` term when omitted.
|
|
86
108
|
*/
|
|
87
109
|
maskMaxMessage: string;
|
|
110
|
+
/** Text under the field that describes it, for example its format. Tied to the input by `aria-describedby`. */
|
|
111
|
+
helpText: string;
|
|
112
|
+
/** Marks the typed value as invalid for assistive technology, for a message the host shows about it. */
|
|
113
|
+
invalid: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Elements outside the picker that also describe its date field, for example the host's validation message. Passed to
|
|
116
|
+
* the field's `cx-input`, which reads them after its help text. JS only.
|
|
117
|
+
*/
|
|
118
|
+
describedByElements: readonly Element[];
|
|
119
|
+
/** The calendar's first day of the week, 0 = Sunday … 6 = Saturday. */
|
|
120
|
+
firstDayOfWeek: number;
|
|
121
|
+
/**
|
|
122
|
+
* Opt-in mode for a host that validates the typed date itself. The calendar opens only from a button after the field,
|
|
123
|
+
* as a dialog that takes focus and gives it back to the button; typing and clicking the field never open it. The year
|
|
124
|
+
* takes any four digits and a single digit that cannot start a day or month is read as its second digit. A commit
|
|
125
|
+
* (Enter, leaving the field, a full typed day, a calendar pick) emits `cx-change`; read `typedValue`. The host writes
|
|
126
|
+
* the field with `setDisplayText()` and sets `value` only to place the calendar. No inline clear button.
|
|
127
|
+
*/
|
|
128
|
+
calendarButton: boolean;
|
|
129
|
+
/** `calendar-button` mode: the calendar button's and dialog's accessible name. Omitted: `label`. */
|
|
130
|
+
calendarLabel: string;
|
|
131
|
+
/**
|
|
132
|
+
* With `calendar-button`, for a host that reads partial dates itself: the field has no input mask, so it also takes a
|
|
133
|
+
* year alone (`2021`) or a month and year (`11/2021`, `2021/11` year first), digits and "/" only. A typed full day no
|
|
134
|
+
* longer commits by itself; Enter, leaving the field and a calendar pick do. The calendar opens on the typed day, month
|
|
135
|
+
* or year, selects a day only for a full day, and reaches 0001-9999. `value` is not used.
|
|
136
|
+
*/
|
|
137
|
+
partialDate: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* With `calendar-button`, for a host that groups the field with other controls and commits when focus leaves the
|
|
140
|
+
* group: leaving the field no longer commits, so moving to its calendar button or a sibling control does not. Enter
|
|
141
|
+
* and a calendar pick still commit.
|
|
142
|
+
*/
|
|
143
|
+
noBlurCommit: boolean;
|
|
88
144
|
/** Controls whether the calendar popup is visible. */
|
|
89
145
|
private calendarOpen;
|
|
90
146
|
/** Date shown in the text input, formatted according to `displayFormat`. */
|
|
@@ -94,6 +150,22 @@ export default class CxInputDatePicker extends CortexElement {
|
|
|
94
150
|
disconnectedCallback(): void;
|
|
95
151
|
runFirstUpdated(): Promise<void>;
|
|
96
152
|
private readonly dateMaskBlocks;
|
|
153
|
+
/**
|
|
154
|
+
* `calendar-button` mode: the year takes any one to four digits and never drops or rewrites one (the host checks the
|
|
155
|
+
* accepted range); a single day or month digit that cannot start a two-digit one is padded (3 → 03).
|
|
156
|
+
*/
|
|
157
|
+
private readonly openYearMaskBlocks;
|
|
158
|
+
/** Moves focus to the date field. */
|
|
159
|
+
focus(options?: FocusOptions): void;
|
|
160
|
+
/** `calendar-button` mode: what the field shows now, including text the user has not committed. */
|
|
161
|
+
get typedValue(): string;
|
|
162
|
+
/**
|
|
163
|
+
* `calendar-button` mode: writes `text` into the field, even when `value` does not change, and treats it as
|
|
164
|
+
* committed. Use it to show a normalized day, keep a blocked day, or empty the field.
|
|
165
|
+
*/
|
|
166
|
+
setDisplayText(text: string): void;
|
|
167
|
+
/** `partial-date` on its own still opens the calendar from the button: it only makes sense with `calendar-button`. */
|
|
168
|
+
private get hasCalendarButton();
|
|
97
169
|
getForm(): HTMLFormElement | undefined;
|
|
98
170
|
/** The concrete pattern (e.g. `DD/MM/YYYY`) resolved from `displayFormat`. */
|
|
99
171
|
private get datePattern();
|
|
@@ -121,16 +193,60 @@ export default class CxInputDatePicker extends CortexElement {
|
|
|
121
193
|
private handleDateChange;
|
|
122
194
|
private handleDateBlur;
|
|
123
195
|
private handleShowCalender;
|
|
196
|
+
/** Focusing the field selects its text, so typing replaces the day as today's boxes do. */
|
|
197
|
+
private handleDateFocus;
|
|
198
|
+
/**
|
|
199
|
+
* `calendar-button` mode: a typed day is committed once it is complete, without opening the calendar. With
|
|
200
|
+
* `partial-date` only digits and "/" stay, and nothing commits until Enter or focus leaves: a year alone is already a
|
|
201
|
+
* whole date, so a full field is no sign the user is done.
|
|
202
|
+
*/
|
|
203
|
+
private handleTypedInput;
|
|
204
|
+
/** `partial-date`: keeps digits and "/", at most ten characters (a full day); anything else typed or pasted goes. */
|
|
205
|
+
private keepPartialDateCharacters;
|
|
206
|
+
/**
|
|
207
|
+
* `calendar-button` mode: reports the field text as a commit when it changed since the last write or commit. With
|
|
208
|
+
* `force` (Enter) it reports even an unchanged text, so the host can check it again.
|
|
209
|
+
*/
|
|
210
|
+
private commitTypedText;
|
|
211
|
+
/**
|
|
212
|
+
* The button sits inside `cx-input`'s container, whose mousedown pulls focus into the text field. Stopping it here
|
|
213
|
+
* keeps the click on the button, so the calendar opens and takes focus.
|
|
214
|
+
*/
|
|
215
|
+
private handleCalendarButtonMouseDown;
|
|
216
|
+
private handleCalendarButtonClick;
|
|
217
|
+
/**
|
|
218
|
+
* The popup's content can take focus only once it has opened: move focus to the field's day, else today. With
|
|
219
|
+
* `partial-date`, the typed day, month or year.
|
|
220
|
+
*/
|
|
221
|
+
private handlePopupOpened;
|
|
222
|
+
/** Closes the calendar dialog and gives focus back to its button. */
|
|
223
|
+
private closeCalendarToButton;
|
|
224
|
+
private handleCalendarPanelKeyDown;
|
|
124
225
|
private handleCalendarPanelPointerDown;
|
|
125
226
|
private handleDocumentPointerDown;
|
|
126
227
|
private handleDocumentKeyDown;
|
|
127
228
|
private handleClearClick;
|
|
128
229
|
private handleCalendarDateSelect;
|
|
230
|
+
/** `calendar-button` mode: a pick shows the day in the field, commits it and gives focus back to the button. */
|
|
231
|
+
private commitCalendarPick;
|
|
129
232
|
private commitFromCalendar;
|
|
130
233
|
private commitValue;
|
|
131
234
|
private closeCalendar;
|
|
132
235
|
private renderCalendarIcon;
|
|
133
236
|
private renderShowtime;
|
|
237
|
+
/**
|
|
238
|
+
* The date field. `calendar-button` mode keeps a mask that takes any four-digit year; `partial-date` drops the mask so
|
|
239
|
+
* a year alone or a month and year can be typed, and keeps only digits and "/" itself.
|
|
240
|
+
*/
|
|
241
|
+
private renderDateInput;
|
|
242
|
+
/**
|
|
243
|
+
* `calendar-button` mode: a real button in the field's suffix, in place of the decorative icon. It stays in this
|
|
244
|
+
* shadow root (slotted into `cx-input`), so `aria-controls` reaches the dialog.
|
|
245
|
+
*/
|
|
246
|
+
private renderCalendarButton;
|
|
247
|
+
/** The calendar's bounds: the database range with a calendar button, every four-digit year with `partial-date`. */
|
|
248
|
+
private get calendarBounds();
|
|
249
|
+
private renderCalendarPanel;
|
|
134
250
|
render(): import('lit-html').TemplateResult<1>;
|
|
135
251
|
}
|
|
136
252
|
declare global {
|
|
@@ -33,6 +33,13 @@ type ImageSizeBound = {
|
|
|
33
33
|
* Without an asset, the crop's pixel size is capped by the steps above it.
|
|
34
34
|
*
|
|
35
35
|
* @event `cx-asset-link-format-change` - Emitted when the asset link format is changed.
|
|
36
|
+
* Without an asset (Format Proxy, rendition picker), the detail is the transformation string. With
|
|
37
|
+
* `can-percent-dimensions` on, it ends with the Dimensions percent: `|<W>%,<H>%`, or `|` alone when
|
|
38
|
+
* the choice is not a percent (e.g. `c_w_16,c_h_9/q_level_70|50%,50%`). Both sides are the same
|
|
39
|
+
* whole number from 1 to 100. Every event sent while `can-percent-dimensions` is on carries it;
|
|
40
|
+
* setting the flag or `percent-dimensions` sends no event. Split on the last `|`.
|
|
41
|
+
* With an asset, the detail is `/t/<transformations>/<file>.<ext>` with no suffix: a percent is
|
|
42
|
+
* not reported there.
|
|
36
43
|
* @event cx-asset-link-format-reorder - Emitted with parts and transformations after a user reorder, Undo or Reset of order.
|
|
37
44
|
* @event cx-asset-link-format-crop-toggle - Emitted with the enabled state of Crop in the Formats layout.
|
|
38
45
|
*
|
|
@@ -96,6 +103,16 @@ export default class CxAssetLinkFormat extends CortexElement {
|
|
|
96
103
|
height: number;
|
|
97
104
|
width: number;
|
|
98
105
|
} | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* The Dimensions choice when it is a percent size; undefined for a preset or a pixel size.
|
|
108
|
+
*/
|
|
109
|
+
private static getPercentDimensions;
|
|
110
|
+
/**
|
|
111
|
+
* The percent choice of a `<W>%,<H>%` text (e.g. `50%,50%`), as the change event writes it: one
|
|
112
|
+
* whole scale from 1 to 100 for both sides, as the panel takes it and Cortex stores it. Undefined
|
|
113
|
+
* for any other text, such as decimals, sides above 100 or unequal sides.
|
|
114
|
+
*/
|
|
115
|
+
private static parsePercentDimensions;
|
|
99
116
|
/**
|
|
100
117
|
* The largest image size after `step` (undefined: unknown). A pixel Resize sets it, Dimensions caps
|
|
101
118
|
* it, Rotate turns it (bounding box), an aspect-ratio Resize makes it unknown.
|
|
@@ -133,7 +150,15 @@ export default class CxAssetLinkFormat extends CortexElement {
|
|
|
133
150
|
* This property is required for the component to function correctly.
|
|
134
151
|
*/
|
|
135
152
|
asset: Asset | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* The crop modes offered, in order: ratio modes (`16:9`) and auto modes (`auto: true`). Free (`free`) is the
|
|
155
|
+
* start mode and always offered: a list without it gets it first, labelled "Free".
|
|
156
|
+
*/
|
|
136
157
|
cropModes: CropMode[];
|
|
158
|
+
/**
|
|
159
|
+
* The focus modes offered, in order. Manual focus (`manual`) is the start mode and always offered: a list
|
|
160
|
+
* without it, an empty one included, gets it first, labelled "Manual focus".
|
|
161
|
+
*/
|
|
137
162
|
focusModes: FocusMode[];
|
|
138
163
|
/**
|
|
139
164
|
* The list of available file extensions for the asset.
|
|
@@ -194,6 +219,7 @@ export default class CxAssetLinkFormat extends CortexElement {
|
|
|
194
219
|
/**
|
|
195
220
|
* Space-separated list of panels to show, in display order (e.g. "proxy crop resize").
|
|
196
221
|
* Valid tokens: proxy, dimensions, crop, resize, rotate, quality, metadata.
|
|
222
|
+
* Set to `undefined` or `null` for the default panels; an empty list shows none.
|
|
197
223
|
*/
|
|
198
224
|
parts: AssetLinkFormatPart[];
|
|
199
225
|
/**
|
|
@@ -220,10 +246,25 @@ export default class CxAssetLinkFormat extends CortexElement {
|
|
|
220
246
|
*/
|
|
221
247
|
qualityItems: QualityItem[];
|
|
222
248
|
/**
|
|
223
|
-
* Include Custom (a width and height in pixels or percent) in the
|
|
224
|
-
* A percent size writes no segment.
|
|
249
|
+
* Include Custom (a width and height in pixels, or in percent with `can-percent-dimensions`) in the
|
|
250
|
+
* Dimensions dropdown. A percent size writes no segment.
|
|
225
251
|
*/
|
|
226
252
|
canCustomDimensions: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Offer Percent as a Custom Dimensions unit and report it in `cx-asset-link-format-change`
|
|
255
|
+
* (without an asset only). Percent is offered only with `can-custom-dimensions`, `dimensions` in
|
|
256
|
+
* `parts`, and no `asset`. In the panel a percent is one whole scale from 1 to 100, with W and H
|
|
257
|
+
* kept equal, as Cortex stores it. Off: Percent is hidden and the event detail is unchanged.
|
|
258
|
+
*/
|
|
259
|
+
canPercentDimensions: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* The starting percent choice, `<W>%,<H>%` (e.g. `50%,50%`): the text the change event reports,
|
|
262
|
+
* without the `|`, with both sides the same whole number from 1 to 100. Applied when it changes, or when Percent becomes offered or not (e.g. an asset
|
|
263
|
+
* arrives), before or after `transformations`; `''` clears a percent choice. Ignored when Percent is not offered
|
|
264
|
+
* (see `can-percent-dimensions`), when it is invalid, or when `transformations` has a Dimensions
|
|
265
|
+
* step: the step wins whichever is set first.
|
|
266
|
+
*/
|
|
267
|
+
percentDimensions: string;
|
|
227
268
|
lastImageSize: {
|
|
228
269
|
height: number;
|
|
229
270
|
width: number;
|
|
@@ -257,8 +257,13 @@ export default class CxAssetLinkFormatCrop extends CortexElement {
|
|
|
257
257
|
*/
|
|
258
258
|
private handleAspectRatioClick;
|
|
259
259
|
/**
|
|
260
|
-
* The
|
|
261
|
-
*
|
|
260
|
+
* The largest value of a size side: `max` in pixels, never above `MAX_TRANSFORMATION_SIDE`. Ratio values and
|
|
261
|
+
* an unknown (0) or infinite max stop at `MAX_TRANSFORMATION_SIDE` only.
|
|
262
|
+
*/
|
|
263
|
+
private getSideMax;
|
|
264
|
+
/**
|
|
265
|
+
* The mask of a size input: whole numbers from 1 to `getSideMax(max)`. `autofix` turns a larger number
|
|
266
|
+
* into that max as it is typed.
|
|
262
267
|
*/
|
|
263
268
|
private getSizeMaskBlocks;
|
|
264
269
|
/**
|
|
@@ -10,16 +10,20 @@ import { default as CxSpace } from '../../../../../atoms/src/components/space/sp
|
|
|
10
10
|
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
11
11
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
12
12
|
import { AssetLinkFormatApplyBehavior, DimensionsItem, DimensionsValue } from '../../../../../types/src/asset-link-format';
|
|
13
|
-
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
13
|
+
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
14
14
|
export type CxAssetLinkFormatDimensionsChangeEvent = CustomEvent<DimensionsValue>;
|
|
15
|
+
/** The largest percent: Cortex stores a percent size as one whole scale from 1 to 100. */
|
|
16
|
+
export declare const MAX_DIMENSIONS_PERCENT = 100;
|
|
15
17
|
/**
|
|
16
|
-
* @summary Select a dimensions preset or a custom maximum width and height, in pixels or percent
|
|
18
|
+
* @summary Select a dimensions preset or a custom maximum width and height, in pixels, or in percent
|
|
19
|
+
* with `can-percent`. A percent is one whole scale from 1 to 100: typing W or H sets both.
|
|
17
20
|
* @event cx-asset-link-format-dimensions-change - Emitted with the selected dimensions value.
|
|
18
21
|
* `cx-asset-link-format` turns it into its Dimensions transformation.
|
|
19
22
|
* @csspart icon - The summary icon.
|
|
20
23
|
* @csspart input-label - The width and height prefixes.
|
|
21
24
|
*/
|
|
22
25
|
export default class CxAssetLinkFormatDimensions extends CortexElement {
|
|
26
|
+
#private;
|
|
23
27
|
static readonly styles: CSSResultGroup;
|
|
24
28
|
static readonly dependencies: {
|
|
25
29
|
'cx-button': typeof CxButton;
|
|
@@ -59,6 +63,11 @@ export default class CxAssetLinkFormatDimensions extends CortexElement {
|
|
|
59
63
|
* Offer custom width and height controls.
|
|
60
64
|
*/
|
|
61
65
|
canCustom: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Offer Percent as a custom unit: one whole scale from 1 to 100, with W and H kept equal.
|
|
68
|
+
* Off: Percent is hidden, and a percent `value` shows as no selection.
|
|
69
|
+
*/
|
|
70
|
+
canPercent: boolean;
|
|
62
71
|
/**
|
|
63
72
|
* Selected preset or custom size. Undefined means no selection.
|
|
64
73
|
*/
|
|
@@ -75,7 +84,7 @@ export default class CxAssetLinkFormatDimensions extends CortexElement {
|
|
|
75
84
|
* The custom width and height as typed, per unit, kept while another option is selected.
|
|
76
85
|
*/
|
|
77
86
|
private customDimensionsDrafts;
|
|
78
|
-
|
|
87
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
79
88
|
private emitDimensionsValue;
|
|
80
89
|
private getCustomDimensionsValue;
|
|
81
90
|
private get pendingValue();
|
|
@@ -18,6 +18,7 @@ export type CxAssetLinkFormatQualityChangeEvent = CustomEvent<number>;
|
|
|
18
18
|
* @event `cx-asset-link-format-quality-change` - Emitted when the quality settings are changed.
|
|
19
19
|
*/
|
|
20
20
|
export default class CxAssetLinkFormatQuality extends CortexElement {
|
|
21
|
+
#private;
|
|
21
22
|
static readonly styles: CSSResultGroup;
|
|
22
23
|
static readonly dependencies: {
|
|
23
24
|
'cx-button': typeof CxButton;
|
|
@@ -20,6 +20,7 @@ export { default as CxFileOnDemand } from './file-on-demand/file-on-demand';
|
|
|
20
20
|
export { default as CxFindAndReplace } from './find-and-replace/find-and-replace';
|
|
21
21
|
export { default as CxLightbox } from './lightbox/lightbox';
|
|
22
22
|
export { default as CxListEditor } from './list-editor/list-editor';
|
|
23
|
+
export { default as CxSearchFacets } from './search-facets/search-facets';
|
|
23
24
|
export { default as CxSearchBox } from './content-builder/blocks/search-box/search-box';
|
|
24
25
|
export { default as CxSpaceSelector } from './space-selector/space-selector';
|
|
25
26
|
export { default as CxSpecialCharactersDialog } from './special-characters-dialog/special-characters-dialog';
|
package/library/packages/organisms/src/search-facets/components/search-facet/search-facet.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup, nothing, PropertyValues } from 'lit';
|
|
3
|
+
import { Facet, SearchFacetDateDraft } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @summary One filter of `cx-search-facets`: its header (select all, name, open/close arrow, reset) and a body selected
|
|
6
|
+
* by filter kind.
|
|
7
|
+
* @description A facet the server lets close (`canCollapse`) has a heading button that folds its body; its arrow is
|
|
8
|
+
* independently controlled by `showExpandArrow`. A facet that cannot close has a static title and stays open. The
|
|
9
|
+
* owning panel holds the fold: it starts from the facet's `state` and then follows the user, so a payload or a preview
|
|
10
|
+
* never resets it. Select all and reset sit in the header beside the
|
|
11
|
+
* heading button, not inside it, and show also on a closed facet (select all unless `hideWhenCollapsed`). Reset shows
|
|
12
|
+
* while the preview has a pick. Neither shows while the facet is being indexed. Both wait for Apply: the panel queues
|
|
13
|
+
* them and previews the facet, and while a reset waits its button offers the undo on the same button, so focus stays
|
|
14
|
+
* put. Reset and undo show their action label as a tooltip on hover and keyboard focus. The filter name stays on one
|
|
15
|
+
* line; a name cut short shows in full as a tooltip on hover and on keyboard focus of the heading.
|
|
16
|
+
*
|
|
17
|
+
* A standard filter (`kind` omitted or `'facet'`), flat or nested, renders as `cx-search-facet-tree`. Its
|
|
18
|
+
* `cx-search-facet-toggle` and `cx-search-facet-show-more` bubble through to the owning `cx-search-facets`, and its
|
|
19
|
+
* `cx-search-facets-node-expand` on to the host. Escape inside the tree returns focus to the heading.
|
|
20
|
+
*
|
|
21
|
+
* A `date` filter renders `cx-search-facet-date` under the same header, or `cx-search-facet-advanced-date` when its
|
|
22
|
+
* `date.modes` has at least one entry (an advanced date filter). A `color` ("Similar tones") or `similar`
|
|
23
|
+
* ("Conceptually similar to") filter renders `cx-search-facet-color` or `cx-search-facet-similar` with no header at
|
|
24
|
+
* all, whatever the flags: its body is always open. Their `cx-search-facet-toggle` and `cx-search-facet-date-change`
|
|
25
|
+
* bubble through to the owning panel. When a body loses its focused control and has none left, focus goes to the
|
|
26
|
+
* toggle, else the title, else the facet's section.
|
|
27
|
+
*
|
|
28
|
+
* Every facet's section is a region named "<label> filter" from the facet label, never from the title, whose arrow
|
|
29
|
+
* icon text would join the name.
|
|
30
|
+
*
|
|
31
|
+
* @event {{ facetId: string; expanded: boolean }} cx-search-facets-facet-expand - The user opened or closed the facet.
|
|
32
|
+
* Reaches the host.
|
|
33
|
+
* @event {{ facetId: string; checked: boolean }} cx-search-facet-select-all - Internal: the header's select-all
|
|
34
|
+
* checkbox was changed. The panel stops it.
|
|
35
|
+
* @event {{ facetId: string }} cx-search-facet-reset - Internal: reset or its undo was pressed. The panel stops it.
|
|
36
|
+
*
|
|
37
|
+
* @csspart facet-header - The header row.
|
|
38
|
+
* @csspart facet-select-all - The header's select-all checkbox.
|
|
39
|
+
* @csspart facet-select-all-lock - The focusable wrapper around a locked select all, which carries the lock's tooltip.
|
|
40
|
+
* @csspart facet-toggle - The heading button that folds a facet that can close.
|
|
41
|
+
* @csspart facet-title - The filter name. Programmatically focusable on a facet that cannot close, so focus has a
|
|
42
|
+
* target when the body cannot keep it.
|
|
43
|
+
* @csspart facet-reset - The reset (or undo) button.
|
|
44
|
+
* @csspart facet-body - The filter body.
|
|
45
|
+
* @csspart facet-indexing - The server-supplied status shown while the facet is being indexed.
|
|
46
|
+
* @csspart facet-empty - The server-supplied text shown in place of the values of a facet that has none.
|
|
47
|
+
*/
|
|
48
|
+
export default class CxSearchFacet extends CortexElement {
|
|
49
|
+
#private;
|
|
50
|
+
static readonly styles: CSSResultGroup;
|
|
51
|
+
static readonly dependencies: Record<string, typeof CortexElement>;
|
|
52
|
+
private readonly localize;
|
|
53
|
+
private readonly toggleButton?;
|
|
54
|
+
private readonly titleElement?;
|
|
55
|
+
private readonly sectionElement?;
|
|
56
|
+
private readonly treeBody?;
|
|
57
|
+
/** The facet to render, including the panel's pending-change preview. */
|
|
58
|
+
facet?: Facet;
|
|
59
|
+
/** Heading level of the facet title. */
|
|
60
|
+
headingLevel: number;
|
|
61
|
+
/** Whether a facet that can close is open. The owning panel holds it; a facet that cannot close ignores it. */
|
|
62
|
+
expanded: boolean;
|
|
63
|
+
/** Blocks selection changes, select all, reset and More, for example while an Apply is in flight. */
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
/** Set while a reset of this facet waits for Apply, so its button offers the undo. */
|
|
66
|
+
resetWaiting: boolean;
|
|
67
|
+
/** Set while a clear waits for Apply: it already resets this facet, so reset is blocked. */
|
|
68
|
+
clearWaiting: boolean;
|
|
69
|
+
/** Shows the body's More button as loading while the panel waits for the longer list. */
|
|
70
|
+
moreLoading: boolean;
|
|
71
|
+
/** Blocks the body's More button while another facet's More request is in flight. */
|
|
72
|
+
moreDisabled: boolean;
|
|
73
|
+
/** The user's open/closed choice per tree branch, held by the owning panel and passed on to the body. */
|
|
74
|
+
nodeFolds: ReadonlyMap<string, boolean>;
|
|
75
|
+
/** A date facet's blocked day, held by the owning panel so it survives a fold. */
|
|
76
|
+
dateDraft?: SearchFacetDateDraft;
|
|
77
|
+
/** Bumped by the owning panel on every explicit clear of a date facet, so its body rewrites both fields. */
|
|
78
|
+
dateFieldsReset: number;
|
|
79
|
+
/** Whether the heading (toggle or static title) has keyboard focus, which opens a cut name's tooltip. */
|
|
80
|
+
private isTitleFocused;
|
|
81
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
82
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
83
|
+
/**
|
|
84
|
+
* Puts focus on a value of this facet's body, for the owning panel to leave the user on the value they ticked.
|
|
85
|
+
* Resolves with whether the body had the value to take focus: a closed facet, or one that is not a list of values,
|
|
86
|
+
* has none.
|
|
87
|
+
*/
|
|
88
|
+
focusValue(value: string): Promise<boolean>;
|
|
89
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
90
|
+
}
|
|
91
|
+
declare global {
|
|
92
|
+
interface HTMLElementTagNameMap {
|
|
93
|
+
'cx-search-facet': CxSearchFacet;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { FacetDateMessageKey, FacetDateSide, FacetDateTimeUnit } from '../../types';
|
|
2
|
+
import { DateDisplayPattern, DatePart, DateReadingOptions } from '../search-facet-date/date-range-validation';
|
|
3
|
+
/** The digits of one advanced date's boxes, as typed. */
|
|
4
|
+
export type DateParts = Record<DatePart, string>;
|
|
5
|
+
export declare const EMPTY_DATE_PARTS: DateParts;
|
|
6
|
+
/** One date's time selects, each `HH`, `mm` or `ss`, or `''` while left blank. */
|
|
7
|
+
export type TimeParts = Record<FacetDateTimeUnit, string>;
|
|
8
|
+
export declare const EMPTY_TIME_PARTS: TimeParts;
|
|
9
|
+
/** One date read on its own. `value` is set only for a readable date; `parts` is what the boxes show after the commit. */
|
|
10
|
+
interface AdvancedDateReading {
|
|
11
|
+
error?: FacetDateMessageKey;
|
|
12
|
+
/** Nothing typed in any box. */
|
|
13
|
+
isEmpty: boolean;
|
|
14
|
+
parts: DateParts;
|
|
15
|
+
/** Set when the whole year, read as a number, falls outside 0001-9999 (`10000` and `9999999999` included). */
|
|
16
|
+
rangeError?: FacetDateMessageKey;
|
|
17
|
+
/** `YYYY`, `YYYY-MM` or `YYYY-MM-DD`. */
|
|
18
|
+
value?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Every shown date read and checked in today's order. */
|
|
21
|
+
export interface AdvancedDateValidation {
|
|
22
|
+
error?: FacetDateMessageKey;
|
|
23
|
+
field?: FacetDateSide;
|
|
24
|
+
/** What each shown date's boxes show after the commit. */
|
|
25
|
+
partsBySide: Partial<Record<FacetDateSide, DateParts>>;
|
|
26
|
+
/** The dates to queue, by side: set only when the whole body is valid. */
|
|
27
|
+
valuesBySide: Partial<Record<FacetDateSide, string>>;
|
|
28
|
+
}
|
|
29
|
+
export declare function isEmptyDateParts(parts: DateParts): boolean;
|
|
30
|
+
/** A date with a day, a month and a year: the only kind a time may go with. */
|
|
31
|
+
export declare function isFullDay(parts: DateParts): boolean;
|
|
32
|
+
export declare function isEmptyTimeParts(time: TimeParts): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Splits an applied value at the space that starts its time: `2021-11-29 10:30:15` is the day `2021-11-29` and the time
|
|
35
|
+
* `10:30:15`. A value without a time has an empty one.
|
|
36
|
+
*/
|
|
37
|
+
export declare function splitDateTime(value: string | null | undefined): {
|
|
38
|
+
date: string;
|
|
39
|
+
time: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Splits `YYYY`, `YYYY-MM` or `YYYY-MM-DD` into the boxes; the missing parts stay empty ("2021" fills the year only). A
|
|
43
|
+
* time after the day is left out: the date never shows it.
|
|
44
|
+
*/
|
|
45
|
+
export declare function partsFromValue(value: string | null | undefined): DateParts;
|
|
46
|
+
/** The time selects from an applied value: only the units the field shows; a day alone leaves them all blank. */
|
|
47
|
+
export declare function timeFromValue(value: string | null | undefined, timeUnits: readonly FacetDateTimeUnit[]): TimeParts;
|
|
48
|
+
/**
|
|
49
|
+
* The value a date sends with its time selects: the date alone when no unit is picked (the whole day), else
|
|
50
|
+
* `YYYY-MM-DD HH:mm:ss` with each unit not picked, or not shown, as `00`. Only a full day takes a time.
|
|
51
|
+
*/
|
|
52
|
+
export declare function withTime(dateValue: string, time: TimeParts, timeUnits: readonly FacetDateTimeUnit[]): string;
|
|
53
|
+
/** The time as a draft keeps it: the shown units joined with `:`, an empty unit left empty (`10::`). */
|
|
54
|
+
export declare function timeToText(time: TimeParts, timeUnits: readonly FacetDateTimeUnit[]): string;
|
|
55
|
+
/** Reads a draft's time back, unit by unit in the shown order. */
|
|
56
|
+
export declare function timeFromText(text: string, timeUnits: readonly FacetDateTimeUnit[]): TimeParts;
|
|
57
|
+
/**
|
|
58
|
+
* The field's text for a date, with only the parts it has: a year alone (`2021`), a month and year (`11/2021`, or
|
|
59
|
+
* `2021/11` when the format starts with the year), or every part in display order (`29/11/2021`). A day without a month
|
|
60
|
+
* keeps its empty month (`12//2021`), so the text reads back as typed.
|
|
61
|
+
*/
|
|
62
|
+
export declare function partsToText(parts: DateParts, displayFormat: DateDisplayPattern): string;
|
|
63
|
+
/**
|
|
64
|
+
* Reads the field's text by the number of pieces it holds: one is a year, two a month and year (year first when the
|
|
65
|
+
* format starts with the year), three every part in display order. Non-digits inside a piece are dropped.
|
|
66
|
+
*/
|
|
67
|
+
export declare function partsFromText(text: string, displayFormat: DateDisplayPattern): DateParts;
|
|
68
|
+
/**
|
|
69
|
+
* The first instant of a date, `YYYY-MM-DD HH:mm:ss`: a year counts from 1 January, a month from its 1st, a day from
|
|
70
|
+
* 00:00:00, a time as picked, as today's Interval Dates compares them.
|
|
71
|
+
*/
|
|
72
|
+
export declare function firstInstantOf(value: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* Reads one date: a year is required, the month is optional, a day needs a month. A 1-3 digit year follows the year
|
|
75
|
+
* shortcut, a one-digit month or day is padded. Never builds the date with `new Date(iso)`.
|
|
76
|
+
*/
|
|
77
|
+
export declare function readAdvancedDate(typed: DateParts, options: DateReadingOptions): AdvancedDateReading;
|
|
78
|
+
/** A date's time selects, sent only on a field that shows a time. */
|
|
79
|
+
export interface AdvancedDateTimes {
|
|
80
|
+
timeBySide: Partial<Record<FacetDateSide, TimeParts>>;
|
|
81
|
+
timeUnits: readonly FacetDateTimeUnit[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Reads the shown dates and checks them in today's order, stopping at the first failure: a part typed without what it
|
|
85
|
+
* needs or a date that does not exist, then a shown date left empty, then From after Until (the time included), then
|
|
86
|
+
* the 0001-9999 range. The boxes show each date as read even when a later check fails; only a date that cannot be read
|
|
87
|
+
* keeps its typing. An error never queues a date. A full day takes its time selects; a year or a month drops them.
|
|
88
|
+
*/
|
|
89
|
+
export declare function validateAdvancedDate(sides: readonly FacetDateSide[], typedBySide: Partial<Record<FacetDateSide, DateParts>>, options: DateReadingOptions, times?: AdvancedDateTimes): AdvancedDateValidation;
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup, nothing, PropertyValues } from 'lit';
|
|
3
|
+
import { Facet, SearchFacetDateDraft } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @summary The body of an advanced date filter of `cx-search-facets` (a `kind: 'date'` facet with `date.modes`): the
|
|
6
|
+
* mode select, the mode's dates as `cx-input-date-picker` (`calendar-button partial-date`: one field and a calendar
|
|
7
|
+
* button), and Clear.
|
|
8
|
+
* @description Each date takes a year alone, a month and year, or a full day, sent as `YYYY`, `YYYY-MM` or
|
|
9
|
+
* `YYYY-MM-DD`. On a field that shows a time (`date.timeUnits`), each date also has an hour select, then minute and
|
|
10
|
+
* second selects as the field asks, enabled only while the date is a full day; a day with a time is sent as
|
|
11
|
+
* `YYYY-MM-DD HH:mm:ss`, a day with none alone (the whole day). The time picked is kept until a commit reads a year or a
|
|
12
|
+
* month, so correcting the day does not lose it. Each date and its time selects form one named group. A date is
|
|
13
|
+
* checked as it commits (Enter, a calendar pick, a time pick, or focus leaving its group), in today's order:
|
|
14
|
+
* a part typed without what it needs or a day that does not exist, then a shown date left empty, then From after Until,
|
|
15
|
+
* then the 0001-9999 range. A valid state is sent to the panel with its mode, which queues it until Apply; a failure
|
|
16
|
+
* shows the site's message under the body, marks the date invalid, ties the message to that date as its description
|
|
17
|
+
* and holds Apply. Picking a mode empties the dates;
|
|
18
|
+
* Indefinite is valid at once, a mode that takes dates holds Apply until they are typed, but its missing-date message
|
|
19
|
+
* waits for a date's commit or a press of Apply, as today shows none for a mode just picked. Clear, the blank choice and
|
|
20
|
+
* the header reset empty the mode and every date.
|
|
21
|
+
*
|
|
22
|
+
* The panel keeps a blocked state as `draft`, so it survives a fold, and bumps `fieldsReset` on every explicit clear.
|
|
23
|
+
* The body rewrites the dates only on its first render, its own commit, an explicit clear, or a change of the applied
|
|
24
|
+
* value while the user is not editing, so a payload never overwrites typing.
|
|
25
|
+
*
|
|
26
|
+
* @event {SearchFacetDateChangeDetail} cx-search-facet-date-change - Internal: a valid state with its `mode`, or
|
|
27
|
+
* `invalid` with the draft. The panel stops it.
|
|
28
|
+
*
|
|
29
|
+
* @csspart date-mode - The mode select.
|
|
30
|
+
* @csspart date-field - Each date's `cx-input-date-picker`.
|
|
31
|
+
* @csspart date-time - Each time select of a date, on a field that shows a time.
|
|
32
|
+
* @csspart date-clear - The Clear button.
|
|
33
|
+
* @csspart date-message - The validation message region.
|
|
34
|
+
*/
|
|
35
|
+
export default class CxSearchFacetAdvancedDate extends CortexElement {
|
|
36
|
+
#private;
|
|
37
|
+
static readonly styles: CSSResultGroup;
|
|
38
|
+
static readonly dependencies: Record<string, typeof CortexElement>;
|
|
39
|
+
/** The applied mode and dates, as one comparable key. */
|
|
40
|
+
private static appliedKeyOf;
|
|
41
|
+
/** Each date's time selects from the applied value: blank for a day alone, a year or a month. */
|
|
42
|
+
private static timeFromApplied;
|
|
43
|
+
/** A draft text splits at its first space: the date before it, the time selects after it. */
|
|
44
|
+
private static splitDraftText;
|
|
45
|
+
/** The dates a mode shows, in order; none for the blank choice or a mode the filter does not offer. */
|
|
46
|
+
private static sidesOf;
|
|
47
|
+
/** Each picker's text from the applied value: the missing parts stay empty ("2021" fills the year only). */
|
|
48
|
+
private static textFromApplied;
|
|
49
|
+
/** Each picker's text after a commit: the parts as read, in display order. */
|
|
50
|
+
private static textFromParts;
|
|
51
|
+
/** The side a picker, a time select or a date's group was drawn for. */
|
|
52
|
+
private static sideOf;
|
|
53
|
+
/** Whether the date's text holds a day, a month and a year: only then may a time be picked. */
|
|
54
|
+
private static isFullDayText;
|
|
55
|
+
private readonly localize;
|
|
56
|
+
private readonly modeSelect?;
|
|
57
|
+
private readonly messageRegion?;
|
|
58
|
+
/** The date facet, including the panel's preview of its waiting edit. */
|
|
59
|
+
facet?: Facet;
|
|
60
|
+
/** Blocks every control, for example while an Apply is in flight. */
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
/** A blocked state the panel keeps for this facet: what the select and the dates show while a message stands. */
|
|
63
|
+
draft?: SearchFacetDateDraft;
|
|
64
|
+
/** Bumped by the panel on every explicit clear; a change rewrites the select and the dates from the preview. */
|
|
65
|
+
fieldsReset: number;
|
|
66
|
+
/** The mode the select shows; `''` is the blank choice. */
|
|
67
|
+
private shownMode;
|
|
68
|
+
/** The validation message the body shows, and the side it is about. */
|
|
69
|
+
private message?;
|
|
70
|
+
/**
|
|
71
|
+
* Each date's time selects. Kept while the date is not a full day, so correcting the day does not lose the time; the
|
|
72
|
+
* next commit that reads a year or a month drops it.
|
|
73
|
+
*/
|
|
74
|
+
private timeBySide;
|
|
75
|
+
/** Which dates hold a full day as typed now: their time selects are enabled. */
|
|
76
|
+
private fullDayBySide;
|
|
77
|
+
willUpdate(changedProperties: PropertyValues<this>): void;
|
|
78
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
79
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
80
|
+
}
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
'cx-search-facet-advanced-date': CxSearchFacetAdvancedDate;
|
|
84
|
+
}
|
|
85
|
+
}
|