@esri/calcite-components 5.1.0-next.9 → 5.1.1-next.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/README.md +1 -1
- package/dist/cdn/2DXIZU6R.js +2 -0
- package/dist/cdn/2IWGUAWA.js +2 -0
- package/dist/cdn/{EB4M47KA.js → 2JARICGO.js} +1 -1
- package/dist/cdn/{34EJXQYF.js → 2KGEPRUF.js} +1 -1
- package/dist/cdn/3BPI3O6E.js +2 -0
- package/dist/cdn/3RBTYVUD.js +2 -0
- package/dist/cdn/{67QHQNZF.js → 3SYGBKWR.js} +1 -1
- package/dist/cdn/{U4MTAQRM.js → 4CB2O5QG.js} +1 -1
- package/dist/cdn/{VQHTMUYJ.js → 4ERCP6XO.js} +1 -1
- package/dist/cdn/4FUCDFGK.js +2 -0
- package/dist/cdn/4SJPPENI.js +2 -0
- package/dist/cdn/56VYPYFF.js +2 -0
- package/dist/cdn/5AMCYZ6W.js +2 -0
- package/dist/cdn/5BXGV5ZQ.js +2 -0
- package/dist/cdn/{CNR7IJIS.js → 5IISC3HD.js} +1 -1
- package/dist/cdn/5IYNIOCS.js +2 -0
- package/dist/cdn/5TNWLRB6.js +2 -0
- package/dist/cdn/{3GXLGKZV.js → 6BDNCIAA.js} +1 -1
- package/dist/cdn/{BG7CCT2Q.js → 6CEBXQSC.js} +1 -1
- package/dist/cdn/6H3CYBMZ.js +2 -0
- package/dist/cdn/6J6NDAUF.js +2 -0
- package/dist/cdn/{5TJGOI64.js → 6JKXCCTG.js} +1 -1
- package/dist/cdn/6RRQ22LO.js +2 -0
- package/dist/cdn/6SLXQWU4.js +2 -0
- package/dist/cdn/75I5SJ4X.js +2 -0
- package/dist/cdn/7RS475AK.js +2 -0
- package/dist/cdn/{6C76CPWO.js → 7TFO6D5F.js} +1 -1
- package/dist/cdn/{MVA4NE6I.js → A7U6OOWG.js} +1 -1
- package/dist/cdn/AA3NSH3U.js +2 -0
- package/dist/cdn/ACAPEXIF.js +2 -0
- package/dist/cdn/ADCXSL56.js +2 -0
- package/dist/cdn/{XW3UC4FN.js → AGRNONET.js} +1 -1
- package/dist/cdn/ALDJUEQ6.js +2 -0
- package/dist/cdn/{BPIG37CO.js → AVN7GDNI.js} +1 -1
- package/dist/cdn/AZHDD5QW.js +2 -0
- package/dist/cdn/B5SIF6E3.js +2 -0
- package/dist/cdn/BAMXLXKZ.js +2 -0
- package/dist/cdn/{UKC7JB7P.js → BXRNRAM4.js} +1 -1
- package/dist/cdn/BZVESTLV.js +2 -0
- package/dist/cdn/CAU3D7O6.js +2 -0
- package/dist/cdn/CQMZOIYT.js +3 -0
- package/dist/cdn/D2IHG7U6.js +2 -0
- package/dist/cdn/D36FINW3.js +2 -0
- package/dist/cdn/DBKOSP2J.js +2 -0
- package/dist/cdn/DCLKVSQL.js +2 -0
- package/dist/cdn/{EHIAXJAL.js → DCWL5FUH.js} +1 -1
- package/dist/cdn/DEUPIV3Z.js +2 -0
- package/dist/cdn/DPVKTTT4.js +2 -0
- package/dist/cdn/E4DM4ZJR.js +2 -0
- package/dist/cdn/{RPT5BJMD.js → EBCHRNQU.js} +1 -1
- package/dist/cdn/EGJCIQXC.js +2 -0
- package/dist/cdn/FAMRE5HY.js +2 -0
- package/dist/cdn/{TKH5LW5O.js → FDZMMKDF.js} +1 -1
- package/dist/cdn/{AS2M2ZWD.js → FFQ7TM4J.js} +1 -1
- package/dist/cdn/FHT56RXI.js +2 -0
- package/dist/cdn/{EIXE62NK.js → FSIXQSOF.js} +1 -1
- package/dist/cdn/{S7XHDLIF.js → FVT27KQD.js} +1 -1
- package/dist/cdn/G456YVPG.js +2 -0
- package/dist/cdn/G4W7YKDH.js +2 -0
- package/dist/cdn/GQ7DKFA5.js +2 -0
- package/dist/cdn/GQDKVK3D.js +2 -0
- package/dist/cdn/GURB6TIJ.js +2 -0
- package/dist/cdn/{WBJUAZ65.js → H2UXQDON.js} +1 -1
- package/dist/cdn/{CMVTCAFL.js → HEIK7T3T.js} +1 -1
- package/dist/cdn/{JVAE3MLA.js → HLF26T4C.js} +1 -1
- package/dist/cdn/HP3ZLN4B.js +2 -0
- package/dist/cdn/{YMHR4PKM.js → HVGZLEM5.js} +1 -1
- package/dist/cdn/HVO2U7ZI.js +2 -0
- package/dist/cdn/{ZGJRTQBX.js → HZZHIGHG.js} +1 -1
- package/dist/cdn/{PIU3YYLU.js → I3XG7K6C.js} +1 -1
- package/dist/cdn/{LQD663MA.js → I4VNM5NL.js} +1 -1
- package/dist/cdn/{HQDFIE2B.js → IEF6JYBC.js} +1 -1
- package/dist/cdn/{TXRFE5GH.js → ILQX7Y7Q.js} +1 -1
- package/dist/cdn/INTGSZ5Z.js +2 -0
- package/dist/cdn/{NJRKH5Q7.js → IPPMCVC6.js} +1 -1
- package/dist/cdn/{VOTW2RMD.js → IVWQJUEE.js} +1 -1
- package/dist/cdn/JHTPQLAI.js +2 -0
- package/dist/cdn/JHXH6UZJ.js +2 -0
- package/dist/cdn/{OQ2UCUQP.js → JOCO4XI3.js} +1 -1
- package/dist/cdn/{WEAILY72.js → KLCLUDIS.js} +1 -1
- package/dist/cdn/{7XBTO6NQ.js → KQCAFH4L.js} +1 -1
- package/dist/cdn/KTBY2CGR.js +2 -0
- package/dist/cdn/KUL73QJV.js +2 -0
- package/dist/cdn/{SHD6TE4R.js → KZ3LUSU2.js} +1 -1
- package/dist/cdn/{HZGU4N3I.js → L4A2ANF6.js} +1 -1
- package/dist/cdn/LJ4KTE6Y.js +2 -0
- package/dist/cdn/{BZGE52YU.js → LRZTZSHC.js} +1 -1
- package/dist/cdn/{IWG7JAQJ.js → LT4BKZ77.js} +1 -1
- package/dist/cdn/LZRGGTLJ.js +2 -0
- package/dist/cdn/{O7BFREIB.js → LZRUNHQB.js} +1 -1
- package/dist/cdn/{PFKFYB45.js → M4FJ2QZO.js} +1 -1
- package/dist/cdn/{JRWW665Q.js → MBFZ33SM.js} +1 -1
- package/dist/cdn/{CSOE3CJR.js → MJEQO4QJ.js} +1 -1
- package/dist/cdn/MLSILTYB.js +4 -0
- package/dist/cdn/MOOXNG3K.js +2 -0
- package/dist/cdn/MREXPRS4.js +2 -0
- package/dist/cdn/MUOYIJVV.js +2 -0
- package/dist/cdn/N5GIKXDL.js +2 -0
- package/dist/cdn/N7F4APVB.js +2 -0
- package/dist/cdn/{XUSE3II4.js → NIOQGKNW.js} +1 -1
- package/dist/cdn/O7YMPQUI.js +2 -0
- package/dist/cdn/{XJZLGVT6.js → PBNKEMBL.js} +1 -1
- package/dist/cdn/{6LA4PLL2.js → POYAO7CJ.js} +1 -1
- package/dist/cdn/QAASRSQZ.js +2 -0
- package/dist/cdn/{YM6QAFEQ.js → QGKI3OMJ.js} +1 -1
- package/dist/cdn/QO5UB5D4.js +2 -0
- package/dist/cdn/QXQDUUO7.js +2 -0
- package/dist/cdn/R7KZTTEV.js +2 -0
- package/dist/cdn/{QCDS2TXE.js → RF73TS72.js} +1 -1
- package/dist/cdn/{TTFCVVON.js → RMTFO2LM.js} +1 -1
- package/dist/cdn/{IZLDBAPA.js → S6DQQTW3.js} +1 -1
- package/dist/cdn/{YJHXVSEP.js → SFJW4TZX.js} +1 -1
- package/dist/cdn/{DYBHFMG7.js → SIAFDW7Y.js} +1 -1
- package/dist/cdn/SRXPPFYE.js +2 -0
- package/dist/cdn/{QULVDSNJ.js → SZD4HZMW.js} +1 -1
- package/dist/cdn/SZSMPM6E.js +2 -0
- package/dist/cdn/TOEE2LYN.js +2 -0
- package/dist/cdn/{BAMCFG7H.js → TZI723KV.js} +1 -1
- package/dist/cdn/U3EXF4ZG.js +2 -0
- package/dist/cdn/{E6EGKXUX.js → UDMEFBNA.js} +1 -1
- package/dist/cdn/UFURWY36.js +2 -0
- package/dist/cdn/UH5QPC23.js +2 -0
- package/dist/cdn/{L24DVRWE.js → UQ4U2WKO.js} +1 -1
- package/dist/cdn/URRCLJJL.js +2 -0
- package/dist/cdn/{BMRN6G4T.js → US2R5SI2.js} +1 -1
- package/dist/cdn/UZ6A3EVC.js +2 -0
- package/dist/cdn/V2R55PMZ.js +2 -0
- package/dist/cdn/VZDAEJEF.js +4 -0
- package/dist/cdn/{OPHJLVOH.js → W3AYPD7P.js} +1 -1
- package/dist/cdn/{RH6ZIP65.js → WGGFNK4Z.js} +1 -1
- package/dist/cdn/X3P7R4XF.js +2 -0
- package/dist/cdn/{3IHT5FIP.js → X7CHFMN5.js} +1 -1
- package/dist/cdn/XHP4ORWZ.js +2 -0
- package/dist/cdn/XLD2OUA2.js +2 -0
- package/dist/cdn/XM4MM6Q2.js +2 -0
- package/dist/cdn/{IJ7V345Q.js → XSAUQUSM.js} +1 -1
- package/dist/cdn/Y4RJBGTN.js +2 -0
- package/dist/cdn/{GGGN54CY.js → YK5IMHQT.js} +1 -1
- package/dist/cdn/YX2QYEVF.js +2 -0
- package/dist/cdn/Z3AYOD3V.js +2 -0
- package/dist/cdn/{C25ETLQX.js → ZHTE4PVO.js} +1 -1
- package/dist/cdn/{43FMFYKZ.js → ZJBIXCJU.js} +1 -1
- package/dist/cdn/ZLL3IOQH.js +2 -0
- package/dist/cdn/{I7BWPAOF.js → ZQRR6YTB.js} +1 -1
- package/dist/cdn/ZWHKM56M.js +2 -0
- package/dist/cdn/{7JGWCRII.js → ZX5NT7BW.js} +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/icon/arcgisQuickcapture16.json +1 -0
- package/dist/cdn/assets/icon/arcgisQuickcapture24.json +1 -0
- package/dist/cdn/assets/icon/arcgisQuickcapture32.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12316.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12324.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12332.json +1 -0
- package/dist/cdn/assets/icon/buttons16.json +1 -0
- package/dist/cdn/assets/icon/buttons24.json +1 -0
- package/dist/cdn/assets/icon/buttons32.json +1 -0
- package/dist/cdn/assets/icon/entityTypes16.json +1 -0
- package/dist/cdn/assets/icon/entityTypes24.json +1 -0
- package/dist/cdn/assets/icon/entityTypes32.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver16.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver24.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver32.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting16.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting24.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting32.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose16.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose24.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose32.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose16.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose24.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose32.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly16.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly24.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly32.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault16.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault24.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault32.json +1 -0
- package/dist/cdn/assets/icon/reviewMap16.json +1 -0
- package/dist/cdn/assets/icon/reviewMap24.json +1 -0
- package/dist/cdn/assets/icon/reviewMap32.json +1 -0
- package/dist/cdn/assets/icon/totalStation16.json +1 -0
- package/dist/cdn/assets/icon/totalStation24.json +1 -0
- package/dist/cdn/assets/icon/totalStation32.json +1 -0
- package/dist/cdn/assets/icon/velocityServer16.json +1 -0
- package/dist/cdn/assets/icon/velocityServer24.json +1 -0
- package/dist/cdn/assets/icon/velocityServer32.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +2 -2
- package/dist/chunks/ClearButton.js +16 -0
- package/dist/chunks/ExpandToggle.js +2 -2
- package/dist/chunks/FloatingArrow.js +24 -0
- package/dist/chunks/Heading.js +3 -3
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/dom.js +50 -29
- package/dist/chunks/floating-ui.js +1 -1
- package/dist/chunks/locale.js +29 -12
- package/dist/chunks/{useReferenceElement.js → manager.js} +114 -114
- package/dist/chunks/resources6.js +2 -0
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +70 -28
- package/dist/chunks/useForm.js +225 -44
- package/dist/chunks/useFormTrigger.js +25 -0
- package/dist/chunks/{sortableComponent.js → useSortable.js} +70 -44
- package/dist/chunks/utils.js +6 -6
- package/dist/chunks/utils3.js +18 -3
- package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
- package/dist/components/calcite-action/customElement.d.ts +20 -12
- package/dist/components/calcite-action/customElement.js +10 -15
- package/dist/components/calcite-action-bar/customElement.d.ts +4 -4
- package/dist/components/calcite-action-bar/customElement.js +12 -6
- package/dist/components/calcite-action-group/customElement.d.ts +12 -6
- package/dist/components/calcite-action-group/customElement.js +2 -1
- package/dist/components/calcite-action-menu/customElement.d.ts +2 -2
- package/dist/components/calcite-action-pad/customElement.d.ts +3 -3
- package/dist/components/calcite-action-pad/customElement.js +12 -7
- package/dist/components/calcite-alert/customElement.d.ts +2 -2
- package/dist/components/calcite-alert/customElement.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.d.ts +16 -13
- package/dist/components/calcite-autocomplete/customElement.js +21 -32
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +6 -0
- package/dist/components/calcite-autocomplete-item/customElement.js +9 -4
- package/dist/components/calcite-block/customElement.d.ts +11 -7
- package/dist/components/calcite-block/customElement.js +1 -1
- package/dist/components/calcite-block-group/customElement.d.ts +1 -1
- package/dist/components/calcite-block-group/customElement.js +4 -11
- package/dist/components/calcite-block-group/interfaces.d.ts +2 -6
- package/dist/components/calcite-block-section/customElement.d.ts +1 -1
- package/dist/components/calcite-button/customElement.d.ts +6 -6
- package/dist/components/calcite-button/customElement.js +10 -22
- package/dist/components/calcite-card/customElement.d.ts +11 -5
- package/dist/components/calcite-card/customElement.js +5 -3
- package/dist/components/calcite-card-group/customElement.d.ts +9 -3
- package/dist/components/calcite-card-group/customElement.js +11 -1
- package/dist/components/calcite-carousel/customElement.d.ts +8 -2
- package/dist/components/calcite-carousel/customElement.js +11 -8
- package/dist/components/calcite-carousel/interfaces.d.ts +3 -1
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -5
- package/dist/components/calcite-checkbox/customElement.js +2 -15
- package/dist/components/calcite-chip/customElement.d.ts +2 -2
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +2 -2
- package/dist/components/calcite-color-picker/customElement.js +2 -2
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +5 -5
- package/dist/components/calcite-combobox/customElement.js +57 -69
- package/dist/components/calcite-combobox/index.js +2 -1
- package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-date-picker/customElement.js +4 -14
- package/dist/components/calcite-date-picker-day/customElement.d.ts +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.d.ts +7 -5
- package/dist/components/calcite-dialog/customElement.js +4 -2
- package/dist/components/calcite-dropdown/customElement.d.ts +15 -5
- package/dist/components/calcite-dropdown/customElement.js +166 -91
- package/dist/components/calcite-dropdown-item/customElement.d.ts +2 -2
- package/dist/components/calcite-dropdown-item/customElement.js +14 -32
- package/dist/components/calcite-fab/customElement.d.ts +1 -1
- package/dist/components/calcite-fab/customElement.js +2 -2
- package/dist/components/calcite-filter/customElement.d.ts +1 -1
- package/dist/components/calcite-flow/customElement.d.ts +1 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +8 -5
- package/dist/components/calcite-flow-item/customElement.js +4 -2
- package/dist/components/calcite-focus-trap/customElement.d.ts +46 -0
- package/dist/components/calcite-focus-trap/customElement.js +56 -0
- package/dist/components/calcite-focus-trap/index.d.ts +1 -0
- package/dist/components/calcite-focus-trap/index.js +1 -0
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-handle/customElement.d.ts +1 -1
- package/dist/components/calcite-icon/customElement.d.ts +1 -1
- package/dist/components/calcite-inline-editable/customElement.d.ts +2 -2
- package/dist/components/calcite-inline-editable/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.d.ts +17 -18
- package/dist/components/calcite-input/customElement.js +26 -49
- package/dist/components/calcite-input/index.js +1 -0
- package/dist/components/calcite-input-date-picker/customElement.d.ts +6 -7
- package/dist/components/calcite-input-date-picker/customElement.js +67 -76
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-number/customElement.d.ts +13 -14
- package/dist/components/calcite-input-number/customElement.js +22 -48
- package/dist/components/calcite-input-number/index.js +1 -0
- package/dist/components/calcite-input-text/customElement.d.ts +11 -12
- package/dist/components/calcite-input-text/customElement.js +6 -18
- package/dist/components/calcite-input-text/index.js +1 -0
- package/dist/components/calcite-input-time-picker/customElement.d.ts +6 -7
- package/dist/components/calcite-input-time-picker/customElement.js +11 -23
- package/dist/components/calcite-input-time-zone/customElement.d.ts +5 -6
- package/dist/components/calcite-input-time-zone/customElement.js +21 -19
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.d.ts +9 -9
- package/dist/components/calcite-link/customElement.js +28 -23
- package/dist/components/calcite-list/customElement.d.ts +1 -1
- package/dist/components/calcite-list/customElement.js +18 -15
- package/dist/components/calcite-list/interfaces.d.ts +2 -6
- package/dist/components/calcite-list-item/customElement.d.ts +2 -2
- package/dist/components/calcite-list-item/customElement.js +7 -4
- package/dist/components/calcite-list-item-group/customElement.js +6 -0
- package/dist/components/calcite-loader/customElement.d.ts +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.d.ts +3 -3
- package/dist/components/calcite-menu-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.js +4 -4
- package/dist/components/calcite-navigation/customElement.d.ts +9 -2
- package/dist/components/calcite-navigation/customElement.js +56 -3
- package/dist/components/calcite-navigation-logo/customElement.d.ts +3 -3
- package/dist/components/calcite-navigation-logo/customElement.js +4 -3
- package/dist/components/calcite-navigation-user/customElement.d.ts +2 -2
- package/dist/components/calcite-navigation-user/customElement.js +11 -6
- package/dist/components/calcite-notice/customElement.d.ts +3 -3
- package/dist/components/calcite-notice/customElement.js +1 -1
- package/dist/components/calcite-pagination/customElement.d.ts +1 -1
- package/dist/components/calcite-pagination/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.d.ts +7 -5
- package/dist/components/calcite-panel/customElement.js +20 -8
- package/dist/components/calcite-popover/customElement.d.ts +2 -2
- package/dist/components/calcite-popover/customElement.js +3 -2
- package/dist/components/calcite-radio-button/customElement.d.ts +30 -2
- package/dist/components/calcite-radio-button/customElement.js +12 -19
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
- package/dist/components/calcite-radio-button-group/customElement.js +20 -1
- package/dist/components/calcite-rating/customElement.d.ts +3 -4
- package/dist/components/calcite-rating/customElement.js +12 -18
- package/dist/components/calcite-segmented-control/customElement.d.ts +3 -4
- package/dist/components/calcite-segmented-control/customElement.js +8 -19
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +0 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +3 -4
- package/dist/components/calcite-select/customElement.js +9 -20
- package/dist/components/calcite-sheet/customElement.d.ts +3 -3
- package/dist/components/calcite-sheet/customElement.js +3 -7
- package/dist/components/calcite-shell-panel/customElement.d.ts +4 -4
- package/dist/components/calcite-shell-panel/customElement.js +59 -30
- package/dist/components/calcite-slider/customElement.d.ts +3 -4
- package/dist/components/calcite-slider/customElement.js +12 -22
- package/dist/components/calcite-sort-handle/customElement.d.ts +4 -4
- package/dist/components/calcite-sort-handle/customElement.js +44 -17
- package/dist/components/calcite-sortable-list/customElement.d.ts +1 -1
- package/dist/components/calcite-sortable-list/customElement.js +3 -3
- package/dist/components/calcite-split-button/customElement.d.ts +8 -8
- package/dist/components/calcite-stepper/customElement.d.ts +2 -2
- package/dist/components/calcite-stepper/customElement.js +29 -42
- package/dist/components/calcite-stepper-item/customElement.d.ts +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +2 -8
- package/dist/components/calcite-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-switch/customElement.d.ts +4 -4
- package/dist/components/calcite-switch/customElement.js +9 -8
- package/dist/components/calcite-tab/customElement.d.ts +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.js +1 -1
- package/dist/components/calcite-table/customElement.js +1 -1
- package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
- package/dist/components/calcite-table-header/customElement.d.ts +2 -2
- package/dist/components/calcite-table-row/customElement.d.ts +1 -1
- package/dist/components/calcite-tabs/customElement.js +2 -1
- package/dist/components/calcite-text-area/customElement.d.ts +13 -14
- package/dist/components/calcite-text-area/customElement.js +32 -37
- package/dist/components/calcite-tile/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.js +2 -2
- package/dist/components/calcite-tooltip/customElement.d.ts +15 -2
- package/dist/components/calcite-tooltip/customElement.js +16 -8
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +2 -3
- package/dist/controllers/useSortable.d.ts +7 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/translations.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +27 -26
- package/dist/types/lumina.d.ts +16 -10
- package/dist/types/preact.d.ts +17 -10
- package/dist/types/react.d.ts +18 -10
- package/dist/types/stencil.d.ts +16 -10
- package/package.json +22 -23
- package/dist/cdn/24BVOJIY.js +0 -2
- package/dist/cdn/3O7NXGXJ.js +0 -3
- package/dist/cdn/43SP7K3P.js +0 -2
- package/dist/cdn/45Z5R6GR.js +0 -2
- package/dist/cdn/47RTCYTX.js +0 -2
- package/dist/cdn/4AQ3DQDN.js +0 -2
- package/dist/cdn/4DJKUEBQ.js +0 -2
- package/dist/cdn/4IBKGKIH.js +0 -2
- package/dist/cdn/4JVVYRDW.js +0 -2
- package/dist/cdn/4U633XVG.js +0 -2
- package/dist/cdn/55GOZN42.js +0 -2
- package/dist/cdn/575ZYV35.js +0 -2
- package/dist/cdn/5LUEFKD3.js +0 -2
- package/dist/cdn/5RDU2ZNH.js +0 -2
- package/dist/cdn/6OKASMD7.js +0 -2
- package/dist/cdn/7ECYZZBW.js +0 -2
- package/dist/cdn/7UOYXJ3K.js +0 -2
- package/dist/cdn/A6XPQQWN.js +0 -2
- package/dist/cdn/ANQRSTGE.js +0 -2
- package/dist/cdn/BDQCESE7.js +0 -2
- package/dist/cdn/CKMZY3H7.js +0 -2
- package/dist/cdn/DRQCOAQ4.js +0 -2
- package/dist/cdn/DTUD5FAT.js +0 -2
- package/dist/cdn/EQZPTVS3.js +0 -2
- package/dist/cdn/ESATITDD.js +0 -2
- package/dist/cdn/ETIO6SPJ.js +0 -2
- package/dist/cdn/EY7FPNVS.js +0 -2
- package/dist/cdn/FIEDEHAP.js +0 -2
- package/dist/cdn/FZ6ZUHKQ.js +0 -2
- package/dist/cdn/GH34TDLL.js +0 -2
- package/dist/cdn/HG2EYXWI.js +0 -2
- package/dist/cdn/I5G3H4D4.js +0 -2
- package/dist/cdn/IBQYZCFQ.js +0 -2
- package/dist/cdn/IQ4VNR4Q.js +0 -2
- package/dist/cdn/J2OGE3DI.js +0 -2
- package/dist/cdn/JPWQ44GC.js +0 -2
- package/dist/cdn/JRF656V5.js +0 -2
- package/dist/cdn/K2H2TINH.js +0 -2
- package/dist/cdn/KDZRPYFR.js +0 -2
- package/dist/cdn/KHIMNKVO.js +0 -2
- package/dist/cdn/KMOFSKZF.js +0 -2
- package/dist/cdn/KQNOWW4C.js +0 -2
- package/dist/cdn/KYKC2CK2.js +0 -2
- package/dist/cdn/L5LBH4FP.js +0 -2
- package/dist/cdn/LKRLVAVK.js +0 -2
- package/dist/cdn/M6MHKAA5.js +0 -2
- package/dist/cdn/MMEADS6E.js +0 -2
- package/dist/cdn/NGXAYCAR.js +0 -2
- package/dist/cdn/NVHH3XZJ.js +0 -2
- package/dist/cdn/NVSO6GLT.js +0 -2
- package/dist/cdn/NY7A5LKZ.js +0 -2
- package/dist/cdn/OLYLT2L5.js +0 -2
- package/dist/cdn/OXCJDMGQ.js +0 -2
- package/dist/cdn/P4JFMLKY.js +0 -2
- package/dist/cdn/PCTQTX5N.js +0 -2
- package/dist/cdn/PHGT3YNE.js +0 -2
- package/dist/cdn/QR4JRFEP.js +0 -4
- package/dist/cdn/QWALXRY6.js +0 -2
- package/dist/cdn/RCUNETDY.js +0 -2
- package/dist/cdn/SAQAAU52.js +0 -2
- package/dist/cdn/SG24GAXY.js +0 -2
- package/dist/cdn/SIMNCT4V.js +0 -2
- package/dist/cdn/SJSCENKK.js +0 -2
- package/dist/cdn/SLVFP6JA.js +0 -2
- package/dist/cdn/TMOOTRK4.js +0 -2
- package/dist/cdn/TXYWJHYI.js +0 -2
- package/dist/cdn/UHQ454NG.js +0 -2
- package/dist/cdn/UTQKB5CS.js +0 -2
- package/dist/cdn/V2EVNXUV.js +0 -2
- package/dist/cdn/WITGQRKF.js +0 -2
- package/dist/cdn/WJXZ7BPV.js +0 -2
- package/dist/cdn/WM4NZNNA.js +0 -2
- package/dist/cdn/YANXY6FO.js +0 -2
- package/dist/cdn/YMSZKTCN.js +0 -2
- package/dist/cdn/YYDYHAP7.js +0 -2
- package/dist/cdn/ZEASFJJQ.js +0 -2
- package/dist/cdn/ZGCRVGEK.js +0 -2
- package/dist/cdn/ZPZI63EH.js +0 -3
- package/dist/cdn/ZQLGBHLZ.js +0 -2
- package/dist/cdn/ZTV4V5SF.js +0 -2
- package/dist/chunks/form.js +0 -268
- package/dist/chunks/input.js +0 -40
- package/dist/controllers/useForm.d.ts +0 -3
- package/dist/utils/form.d.ts +0 -3
- package/dist/utils/sortableComponent.d.ts +0 -7
package/dist/chunks/dom.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { g as guid } from "./guid.js";
|
|
3
3
|
import { C as CSS_UTILITY } from "./runtime.js";
|
|
4
|
-
var candidateSelectors = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"];
|
|
4
|
+
var candidateSelectors = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"];
|
|
5
5
|
var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
|
|
6
6
|
var NoElement = typeof Element === "undefined";
|
|
7
7
|
var matches = NoElement ? function() {
|
|
@@ -12,14 +12,16 @@ var getRootNode$1 = !NoElement && Element.prototype.getRootNode ? function(eleme
|
|
|
12
12
|
} : function(element) {
|
|
13
13
|
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
14
14
|
};
|
|
15
|
-
var
|
|
15
|
+
var _isInert = function isInert(node, lookUp) {
|
|
16
16
|
var _node$getAttribute;
|
|
17
17
|
if (lookUp === void 0) {
|
|
18
18
|
lookUp = true;
|
|
19
19
|
}
|
|
20
20
|
var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
|
|
21
21
|
var inert = inertAtt === "" || inertAtt === "true";
|
|
22
|
-
var result = inert || lookUp && node &&
|
|
22
|
+
var result = inert || lookUp && node && // closest does not exist on shadow roots, so we fall back to a manual
|
|
23
|
+
// lookup upward, in case it is not defined.
|
|
24
|
+
(typeof node.closest === "function" ? node.closest("[inert]") : _isInert(node.parentNode));
|
|
23
25
|
return result;
|
|
24
26
|
};
|
|
25
27
|
var isContentEditable = function isContentEditable2(node) {
|
|
@@ -28,7 +30,7 @@ var isContentEditable = function isContentEditable2(node) {
|
|
|
28
30
|
return attValue === "" || attValue === "true";
|
|
29
31
|
};
|
|
30
32
|
var getCandidates = function getCandidates2(el, includeContainer, filter) {
|
|
31
|
-
if (
|
|
33
|
+
if (_isInert(el)) {
|
|
32
34
|
return [];
|
|
33
35
|
}
|
|
34
36
|
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
@@ -38,18 +40,18 @@ var getCandidates = function getCandidates2(el, includeContainer, filter) {
|
|
|
38
40
|
candidates = candidates.filter(filter);
|
|
39
41
|
return candidates;
|
|
40
42
|
};
|
|
41
|
-
var
|
|
43
|
+
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
42
44
|
var candidates = [];
|
|
43
45
|
var elementsToCheck = Array.from(elements);
|
|
44
46
|
while (elementsToCheck.length) {
|
|
45
47
|
var element = elementsToCheck.shift();
|
|
46
|
-
if (
|
|
48
|
+
if (_isInert(element, false)) {
|
|
47
49
|
continue;
|
|
48
50
|
}
|
|
49
51
|
if (element.tagName === "SLOT") {
|
|
50
52
|
var assigned = element.assignedElements();
|
|
51
53
|
var content = assigned.length ? assigned : element.children;
|
|
52
|
-
var nestedCandidates =
|
|
54
|
+
var nestedCandidates = _getCandidatesIteratively(content, true, options);
|
|
53
55
|
if (options.flatten) {
|
|
54
56
|
candidates.push.apply(candidates, nestedCandidates);
|
|
55
57
|
} else {
|
|
@@ -65,9 +67,9 @@ var getCandidatesIteratively = function getCandidatesIteratively2(elements, incl
|
|
|
65
67
|
}
|
|
66
68
|
var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
|
|
67
69
|
typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
|
|
68
|
-
var validShadowRoot = !
|
|
70
|
+
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
69
71
|
if (shadowRoot && validShadowRoot) {
|
|
70
|
-
var _nestedCandidates =
|
|
72
|
+
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
71
73
|
if (options.flatten) {
|
|
72
74
|
candidates.push.apply(candidates, _nestedCandidates);
|
|
73
75
|
} else {
|
|
@@ -177,6 +179,24 @@ var isZeroArea = function isZeroArea2(node) {
|
|
|
177
179
|
};
|
|
178
180
|
var isHidden = function isHidden2(node, _ref) {
|
|
179
181
|
var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
|
|
182
|
+
if (displayCheck === "full-native") {
|
|
183
|
+
if ("checkVisibility" in node) {
|
|
184
|
+
var visible = node.checkVisibility({
|
|
185
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
186
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
187
|
+
checkOpacity: false,
|
|
188
|
+
opacityProperty: false,
|
|
189
|
+
contentVisibilityAuto: true,
|
|
190
|
+
visibilityProperty: true,
|
|
191
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
192
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
193
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
194
|
+
// we include it anyway.
|
|
195
|
+
checkVisibilityCSS: true
|
|
196
|
+
});
|
|
197
|
+
return !visible;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
180
200
|
if (getComputedStyle(node).visibility === "hidden") {
|
|
181
201
|
return true;
|
|
182
202
|
}
|
|
@@ -185,7 +205,9 @@ var isHidden = function isHidden2(node, _ref) {
|
|
|
185
205
|
if (matches.call(nodeUnderDetails, "details:not([open]) *")) {
|
|
186
206
|
return true;
|
|
187
207
|
}
|
|
188
|
-
if (!displayCheck || displayCheck === "full" ||
|
|
208
|
+
if (!displayCheck || displayCheck === "full" || // full-native can run this branch when it falls through in case
|
|
209
|
+
// Element#checkVisibility is unsupported
|
|
210
|
+
displayCheck === "full-native" || displayCheck === "legacy-full") {
|
|
189
211
|
if (typeof getShadowRoot === "function") {
|
|
190
212
|
var originalNode = node;
|
|
191
213
|
while (node) {
|
|
@@ -233,10 +255,7 @@ var isDisabledFromFieldset = function isDisabledFromFieldset2(node) {
|
|
|
233
255
|
return false;
|
|
234
256
|
};
|
|
235
257
|
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {
|
|
236
|
-
if (node.disabled ||
|
|
237
|
-
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
238
|
-
// note related to `candidateSelectors`)
|
|
239
|
-
isInert(node) || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
258
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
240
259
|
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
241
260
|
return false;
|
|
242
261
|
}
|
|
@@ -248,21 +267,21 @@ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(op
|
|
|
248
267
|
}
|
|
249
268
|
return true;
|
|
250
269
|
};
|
|
251
|
-
var
|
|
270
|
+
var isShadowRootTabbable = function isShadowRootTabbable2(shadowHostNode) {
|
|
252
271
|
var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
|
|
253
272
|
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
254
273
|
return true;
|
|
255
274
|
}
|
|
256
275
|
return false;
|
|
257
276
|
};
|
|
258
|
-
var
|
|
277
|
+
var _sortByOrder = function sortByOrder(candidates) {
|
|
259
278
|
var regularTabbables = [];
|
|
260
279
|
var orderedTabbables = [];
|
|
261
280
|
candidates.forEach(function(item, i) {
|
|
262
281
|
var isScope = !!item.scopeParent;
|
|
263
282
|
var element = isScope ? item.scopeParent : item;
|
|
264
283
|
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
265
|
-
var elements = isScope ?
|
|
284
|
+
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
266
285
|
if (candidateTabindex === 0) {
|
|
267
286
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
268
287
|
} else {
|
|
@@ -284,22 +303,22 @@ var tabbable = function tabbable2(container, options) {
|
|
|
284
303
|
options = options || {};
|
|
285
304
|
var candidates;
|
|
286
305
|
if (options.getShadowRoot) {
|
|
287
|
-
candidates =
|
|
306
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
288
307
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
289
308
|
flatten: false,
|
|
290
309
|
getShadowRoot: options.getShadowRoot,
|
|
291
|
-
shadowRootFilter:
|
|
310
|
+
shadowRootFilter: isShadowRootTabbable
|
|
292
311
|
});
|
|
293
312
|
} else {
|
|
294
313
|
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
295
314
|
}
|
|
296
|
-
return
|
|
315
|
+
return _sortByOrder(candidates);
|
|
297
316
|
};
|
|
298
317
|
var focusable = function focusable2(container, options) {
|
|
299
318
|
options = options || {};
|
|
300
319
|
var candidates;
|
|
301
320
|
if (options.getShadowRoot) {
|
|
302
|
-
candidates =
|
|
321
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
303
322
|
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
304
323
|
flatten: true,
|
|
305
324
|
getShadowRoot: options.getShadowRoot
|
|
@@ -531,8 +550,10 @@ function viewportUnitToPixel(value, viewportSize) {
|
|
|
531
550
|
return value * viewportSize / 100;
|
|
532
551
|
}
|
|
533
552
|
export {
|
|
534
|
-
|
|
535
|
-
|
|
553
|
+
slotChangeHasTextContent as A,
|
|
554
|
+
ensureId as B,
|
|
555
|
+
filterDirectChildren as C,
|
|
556
|
+
getSlotAssignedElements as D,
|
|
536
557
|
slotChangeGetAssignedElements as a,
|
|
537
558
|
setRequestedIcon as b,
|
|
538
559
|
closestElementCrossShadowBoundary as c,
|
|
@@ -550,13 +571,13 @@ export {
|
|
|
550
571
|
whenTransitionDone as o,
|
|
551
572
|
isBefore as p,
|
|
552
573
|
queryElementRoots as q,
|
|
553
|
-
|
|
574
|
+
isCalciteFocusable as r,
|
|
554
575
|
slotChangeHasAssignedElement as s,
|
|
555
576
|
tabbableOptions as t,
|
|
556
|
-
|
|
557
|
-
|
|
577
|
+
nextFrame as u,
|
|
578
|
+
getShadowRootNode as v,
|
|
558
579
|
whenAnimationDone as w,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
580
|
+
isKeyboardTriggeredClick as x,
|
|
581
|
+
getFirstTabbable as y,
|
|
582
|
+
intersects as z
|
|
562
583
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { isServer } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { computePosition, autoUpdate, shift, hide, flip, offset, autoPlacement, arrow, platform } from "@floating-ui/dom";
|
|
4
4
|
import { debounce } from "es-toolkit";
|
|
5
5
|
import { offsetParent } from "composed-offset-position";
|
|
6
6
|
import { D as DEBOUNCE } from "./runtime.js";
|
package/dist/chunks/locale.js
CHANGED
|
@@ -212,19 +212,21 @@ function getDateFormatSupportedLocale(locale) {
|
|
|
212
212
|
}
|
|
213
213
|
class NumberStringFormat {
|
|
214
214
|
constructor() {
|
|
215
|
-
this.delocalize = (numberString) =>
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
this.delocalize = (numberString) => {
|
|
216
|
+
if (!this._numberFormatOptions) {
|
|
217
|
+
return numberString;
|
|
218
|
+
}
|
|
219
|
+
return sanitizeExponentialNumberString(
|
|
220
220
|
numberString,
|
|
221
|
-
(
|
|
222
|
-
)
|
|
223
|
-
|
|
224
|
-
this.localize = (numberString) =>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
221
|
+
(nonExponentialNumberString) => this.#normalizeDigitsAndSign(this.#normalizeSeparators(nonExponentialNumberString))
|
|
222
|
+
);
|
|
223
|
+
};
|
|
224
|
+
this.localize = (numberString) => {
|
|
225
|
+
return this._numberFormatOptions ? sanitizeExponentialNumberString(
|
|
226
|
+
numberString,
|
|
227
|
+
(nonExpoNumString) => isValidNumber(nonExpoNumString.trim()) ? new BigDecimal(nonExpoNumString.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`, "g"), this._group) : nonExpoNumString
|
|
228
|
+
) : numberString;
|
|
229
|
+
};
|
|
228
230
|
}
|
|
229
231
|
get group() {
|
|
230
232
|
return this._group;
|
|
@@ -278,6 +280,21 @@ class NumberStringFormat {
|
|
|
278
280
|
this._minusSign = parts.find((d) => d.type === "minusSign").value;
|
|
279
281
|
this._getDigitIndex = (d) => index.get(d);
|
|
280
282
|
}
|
|
283
|
+
#normalizeDigitsAndSign(value) {
|
|
284
|
+
return value.replace(new RegExp(`[${this._minusSign}]`, "g"), "-").replace(new RegExp(`[${this._digits.join("")}]`, "g"), this._getDigitIndex);
|
|
285
|
+
}
|
|
286
|
+
#normalizeSeparators(value) {
|
|
287
|
+
if (this._group !== this._decimal) {
|
|
288
|
+
return value.replace(new RegExp(`[${this._group}]`, "g"), "").replace(new RegExp(`[${this._decimal}]`, "g"), ".");
|
|
289
|
+
}
|
|
290
|
+
const lastSeparatorIndex = value.lastIndexOf(this._decimal);
|
|
291
|
+
if (lastSeparatorIndex === -1) {
|
|
292
|
+
return value;
|
|
293
|
+
}
|
|
294
|
+
const wholePart = value.slice(0, lastSeparatorIndex).replace(new RegExp(`[${this._group}]`, "g"), "");
|
|
295
|
+
const fractionalPart = value.slice(lastSeparatorIndex + 1);
|
|
296
|
+
return `${wholePart}.${fractionalPart}`;
|
|
297
|
+
}
|
|
281
298
|
}
|
|
282
299
|
const numberStringFormatter = new NumberStringFormat();
|
|
283
300
|
let dateTimeFormatCache;
|
|
@@ -1,27 +1,84 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { nothing, svg, html } from "lit";
|
|
5
|
-
import { safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import { x as getShadowRootNode, j as isPrimaryPointerButton, y as isKeyboardTriggeredClick, q as queryElementRoots } from "./dom.js";
|
|
2
|
+
import { makeGenericController } from "@arcgis/lumina/controllers";
|
|
3
|
+
import { q as queryElementRoots, v as getShadowRootNode, j as isPrimaryPointerButton, x as isKeyboardTriggeredClick } from "./dom.js";
|
|
7
4
|
import { i as isActivationKey } from "./key.js";
|
|
8
5
|
import { t as toAriaBoolean } from "./aria.js";
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
const useReferenceElement = (options) => {
|
|
7
|
+
const { manager } = options;
|
|
8
|
+
return makeGenericController((component, controller) => {
|
|
9
|
+
let animationFrameId = null;
|
|
10
|
+
let lastRegisteredReferenceEl = null;
|
|
11
|
+
const canManageReferenceElement = (referenceEl) => {
|
|
12
|
+
return Boolean(referenceEl && component.referenceElementType);
|
|
13
|
+
};
|
|
14
|
+
const registerReferenceElement = (referenceEl) => {
|
|
15
|
+
if (!canManageReferenceElement(referenceEl)) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
manager.registerElement(component, referenceEl);
|
|
19
|
+
lastRegisteredReferenceEl = referenceEl;
|
|
20
|
+
};
|
|
21
|
+
const unregisterReferenceElement = (referenceEl) => {
|
|
22
|
+
if (!canManageReferenceElement(referenceEl)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
manager.unregisterElement(component, referenceEl);
|
|
26
|
+
if (lastRegisteredReferenceEl === referenceEl) {
|
|
27
|
+
lastRegisteredReferenceEl = null;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const getReferenceElement = (component2) => {
|
|
31
|
+
const { referenceElement, el } = component2;
|
|
32
|
+
return (typeof referenceElement === "string" ? queryElementRoots(el, { id: referenceElement }) : referenceElement) || null;
|
|
33
|
+
};
|
|
34
|
+
const setUpReferenceElement = (warn = true) => {
|
|
35
|
+
if (!component.referenceElementType) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
component.referenceEl = getReferenceElement(component);
|
|
39
|
+
const { el, referenceElement, referenceEl } = component;
|
|
40
|
+
if (warn && referenceElement && !referenceEl) {
|
|
41
|
+
console.warn(`${el.tagName}: reference-element id "${referenceElement}" was not found.`, {
|
|
42
|
+
el
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
controller.onConnected(() => {
|
|
47
|
+
animationFrameId = requestAnimationFrame(() => {
|
|
48
|
+
if (!component.el.isConnected) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
setUpReferenceElement(component.manager.loadedCalled);
|
|
52
|
+
registerReferenceElement(component.referenceEl);
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
controller.onLoaded(() => {
|
|
56
|
+
if (component.referenceElement && !component.referenceEl) {
|
|
57
|
+
setUpReferenceElement();
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
controller.onUpdate((changes) => {
|
|
61
|
+
if (!component.hasUpdated) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (changes.has("referenceElement")) {
|
|
65
|
+
setUpReferenceElement();
|
|
66
|
+
}
|
|
67
|
+
if (changes.has("referenceEl")) {
|
|
68
|
+
unregisterReferenceElement(changes.get("referenceEl"));
|
|
69
|
+
registerReferenceElement(component.referenceEl);
|
|
70
|
+
} else if (changes.has("open")) {
|
|
71
|
+
manager.updateElement(component, component.referenceEl);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
controller.onDisconnected(() => {
|
|
75
|
+
if (animationFrameId != null) {
|
|
76
|
+
cancelAnimationFrame(animationFrameId);
|
|
77
|
+
animationFrameId = null;
|
|
78
|
+
}
|
|
79
|
+
unregisterReferenceElement(lastRegisteredReferenceEl);
|
|
80
|
+
});
|
|
81
|
+
});
|
|
25
82
|
};
|
|
26
83
|
function haveSameComponents(components, activeComponents) {
|
|
27
84
|
if (components === activeComponents) {
|
|
@@ -71,7 +128,7 @@ const referenceElementManager = (options) => {
|
|
|
71
128
|
return void 0;
|
|
72
129
|
}
|
|
73
130
|
const components = registeredElements.get(registeredElement);
|
|
74
|
-
return components?.filter((component) => component.referenceElementType === type);
|
|
131
|
+
return type ? components?.filter((component) => component.referenceElementType === type) : components;
|
|
75
132
|
};
|
|
76
133
|
const toggleComponents = (event, type) => {
|
|
77
134
|
const composedPath = event.composedPath();
|
|
@@ -179,6 +236,10 @@ const referenceElementManager = (options) => {
|
|
|
179
236
|
toggleComponents(event, "click");
|
|
180
237
|
}
|
|
181
238
|
};
|
|
239
|
+
const onReferenceElementKeyDown = (event) => {
|
|
240
|
+
const components = queryComponents(event.composedPath());
|
|
241
|
+
components?.forEach((component) => component.onReferenceElementKeyDown?.(event));
|
|
242
|
+
};
|
|
182
243
|
const closeAllComponents = () => {
|
|
183
244
|
Array.from(registeredElements.values()).flat().forEach((component) => component.open = false);
|
|
184
245
|
};
|
|
@@ -243,15 +304,32 @@ const referenceElementManager = (options) => {
|
|
|
243
304
|
clearHoverTimeout();
|
|
244
305
|
closeHoveredComponents();
|
|
245
306
|
};
|
|
307
|
+
const clickListener = (event) => {
|
|
308
|
+
if (options.click) {
|
|
309
|
+
clickHandler(event);
|
|
310
|
+
}
|
|
311
|
+
if (options.hover) {
|
|
312
|
+
hoverClickHandler(event);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
const keyDownListener = (event) => {
|
|
316
|
+
onReferenceElementKeyDown(event);
|
|
317
|
+
if (options.click) {
|
|
318
|
+
keyDownHandler(event);
|
|
319
|
+
}
|
|
320
|
+
if (options.hover) {
|
|
321
|
+
hoverKeyDownHandler(event);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
246
324
|
const addListeners = () => {
|
|
325
|
+
if (options.click || options.hover) {
|
|
326
|
+
window.addEventListener("click", clickListener);
|
|
327
|
+
window.addEventListener("keydown", keyDownListener);
|
|
328
|
+
}
|
|
247
329
|
if (options.click) {
|
|
248
|
-
window.addEventListener("click", clickHandler);
|
|
249
|
-
window.addEventListener("keydown", keyDownHandler);
|
|
250
330
|
window.addEventListener("pointerdown", pointerDownHandler);
|
|
251
331
|
}
|
|
252
332
|
if (options.hover) {
|
|
253
|
-
window.addEventListener("click", hoverClickHandler);
|
|
254
|
-
window.addEventListener("keydown", hoverKeyDownHandler);
|
|
255
333
|
window.addEventListener("pointermove", pointerMoveHandler);
|
|
256
334
|
window.addEventListener("focusin", focusInHandler);
|
|
257
335
|
window.addEventListener("blur", blurHandler);
|
|
@@ -259,14 +337,14 @@ const referenceElementManager = (options) => {
|
|
|
259
337
|
}
|
|
260
338
|
};
|
|
261
339
|
const removeListeners = () => {
|
|
340
|
+
if (options.click || options.hover) {
|
|
341
|
+
window.removeEventListener("click", clickListener);
|
|
342
|
+
window.removeEventListener("keydown", keyDownListener);
|
|
343
|
+
}
|
|
262
344
|
if (options.click) {
|
|
263
345
|
window.removeEventListener("pointerdown", pointerDownHandler);
|
|
264
|
-
window.removeEventListener("click", clickHandler);
|
|
265
|
-
window.removeEventListener("keydown", keyDownHandler);
|
|
266
346
|
}
|
|
267
347
|
if (options.hover) {
|
|
268
|
-
window.removeEventListener("click", hoverClickHandler);
|
|
269
|
-
window.removeEventListener("keydown", hoverKeyDownHandler);
|
|
270
348
|
window.removeEventListener("pointermove", pointerMoveHandler);
|
|
271
349
|
window.removeEventListener("focusin", focusInHandler);
|
|
272
350
|
window.removeEventListener("blur", blurHandler);
|
|
@@ -349,15 +427,15 @@ const referenceElementManager = (options) => {
|
|
|
349
427
|
}
|
|
350
428
|
if (options.click && "ariaControlsElements" in referenceEl) {
|
|
351
429
|
const currentElements = referenceEl.ariaControlsElements ?? [];
|
|
352
|
-
if (!currentElements.includes(component)) {
|
|
353
|
-
const updatedElements = [...currentElements, component];
|
|
430
|
+
if (!currentElements.includes(component.el)) {
|
|
431
|
+
const updatedElements = [...currentElements, component.el];
|
|
354
432
|
referenceEl.ariaControlsElements = updatedElements;
|
|
355
433
|
}
|
|
356
434
|
}
|
|
357
435
|
if (options.hover && "ariaDescribedByElements" in referenceEl) {
|
|
358
436
|
const currentElements = referenceEl.ariaDescribedByElements ?? [];
|
|
359
|
-
if (!currentElements.includes(component)) {
|
|
360
|
-
const updatedElements = [...currentElements, component];
|
|
437
|
+
if (!currentElements.includes(component.el)) {
|
|
438
|
+
const updatedElements = [...currentElements, component.el];
|
|
361
439
|
referenceEl.ariaDescribedByElements = updatedElements;
|
|
362
440
|
}
|
|
363
441
|
}
|
|
@@ -398,7 +476,7 @@ const referenceElementManager = (options) => {
|
|
|
398
476
|
clearHoverTimeout();
|
|
399
477
|
}
|
|
400
478
|
if (options.click && "ariaControlsElements" in referenceEl) {
|
|
401
|
-
const newElements = referenceEl.ariaControlsElements?.filter((element) => element !== component);
|
|
479
|
+
const newElements = referenceEl.ariaControlsElements?.filter((element) => element !== component.el);
|
|
402
480
|
referenceEl.ariaControlsElements = newElements?.length > 0 ? newElements : null;
|
|
403
481
|
}
|
|
404
482
|
if (options.click && "ariaExpanded" in referenceEl) {
|
|
@@ -411,7 +489,7 @@ const referenceElementManager = (options) => {
|
|
|
411
489
|
}
|
|
412
490
|
}
|
|
413
491
|
if (options.hover && "ariaDescribedByElements" in referenceEl) {
|
|
414
|
-
const newElements = referenceEl.ariaDescribedByElements?.filter((element) => element !== component);
|
|
492
|
+
const newElements = referenceEl.ariaDescribedByElements?.filter((element) => element !== component.el);
|
|
415
493
|
referenceEl.ariaDescribedByElements = newElements?.length > 0 ? newElements : null;
|
|
416
494
|
}
|
|
417
495
|
};
|
|
@@ -421,85 +499,7 @@ const referenceElementManager = (options) => {
|
|
|
421
499
|
updateElement
|
|
422
500
|
};
|
|
423
501
|
};
|
|
424
|
-
const useReferenceElement = (options) => {
|
|
425
|
-
const { manager } = options;
|
|
426
|
-
return makeGenericController((component, controller) => {
|
|
427
|
-
let animationFrameId = null;
|
|
428
|
-
let lastRegisteredReferenceEl = null;
|
|
429
|
-
const canManageReferenceElement = (referenceEl) => {
|
|
430
|
-
return Boolean(referenceEl && component.referenceElementType);
|
|
431
|
-
};
|
|
432
|
-
const registerReferenceElement = (referenceEl) => {
|
|
433
|
-
if (!canManageReferenceElement(referenceEl)) {
|
|
434
|
-
return;
|
|
435
|
-
}
|
|
436
|
-
manager.registerElement(component, referenceEl);
|
|
437
|
-
lastRegisteredReferenceEl = referenceEl;
|
|
438
|
-
};
|
|
439
|
-
const unregisterReferenceElement = (referenceEl) => {
|
|
440
|
-
if (!canManageReferenceElement(referenceEl)) {
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
manager.unregisterElement(component, referenceEl);
|
|
444
|
-
if (lastRegisteredReferenceEl === referenceEl) {
|
|
445
|
-
lastRegisteredReferenceEl = null;
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
const getReferenceElement = (component2) => {
|
|
449
|
-
const { referenceElement, el } = component2;
|
|
450
|
-
return (typeof referenceElement === "string" ? queryElementRoots(el, { id: referenceElement }) : referenceElement) || null;
|
|
451
|
-
};
|
|
452
|
-
const setUpReferenceElement = (warn = true) => {
|
|
453
|
-
if (!component.referenceElementType) {
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
component.referenceEl = getReferenceElement(component);
|
|
457
|
-
const { el, referenceElement, referenceEl } = component;
|
|
458
|
-
if (warn && referenceElement && !referenceEl) {
|
|
459
|
-
console.warn(`${el.tagName}: reference-element id "${referenceElement}" was not found.`, {
|
|
460
|
-
el
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
controller.onConnected(() => {
|
|
465
|
-
animationFrameId = requestAnimationFrame(() => {
|
|
466
|
-
if (!component.el.isConnected) {
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
|
-
setUpReferenceElement(component.manager.loadedCalled);
|
|
470
|
-
registerReferenceElement(component.referenceEl);
|
|
471
|
-
});
|
|
472
|
-
});
|
|
473
|
-
controller.onLoaded(() => {
|
|
474
|
-
if (component.referenceElement && !component.referenceEl) {
|
|
475
|
-
setUpReferenceElement();
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
controller.onUpdate((changes) => {
|
|
479
|
-
if (!component.hasUpdated) {
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
if (changes.has("referenceElement")) {
|
|
483
|
-
setUpReferenceElement();
|
|
484
|
-
}
|
|
485
|
-
if (changes.has("referenceEl")) {
|
|
486
|
-
unregisterReferenceElement(changes.get("referenceEl"));
|
|
487
|
-
registerReferenceElement(component.referenceEl);
|
|
488
|
-
} else if (changes.has("open")) {
|
|
489
|
-
manager.updateElement(component, component.referenceEl);
|
|
490
|
-
}
|
|
491
|
-
});
|
|
492
|
-
controller.onDisconnected(() => {
|
|
493
|
-
if (animationFrameId != null) {
|
|
494
|
-
cancelAnimationFrame(animationFrameId);
|
|
495
|
-
animationFrameId = null;
|
|
496
|
-
}
|
|
497
|
-
unregisterReferenceElement(lastRegisteredReferenceEl);
|
|
498
|
-
});
|
|
499
|
-
});
|
|
500
|
-
};
|
|
501
502
|
export {
|
|
502
|
-
FloatingArrow as F,
|
|
503
503
|
referenceElementManager as r,
|
|
504
504
|
useReferenceElement as u
|
|
505
505
|
};
|
|
@@ -42,6 +42,8 @@ const SLOTS = {
|
|
|
42
42
|
contentTop: "content-top",
|
|
43
43
|
headerActionsStart: "header-actions-start",
|
|
44
44
|
headerActionsEnd: "header-actions-end",
|
|
45
|
+
description: "description",
|
|
46
|
+
heading: "heading",
|
|
45
47
|
headerMenuActions: "header-menu-actions",
|
|
46
48
|
headerContent: "header-content",
|
|
47
49
|
fab: "fab",
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -60,9 +60,9 @@ function getConfig() {
|
|
|
60
60
|
}
|
|
61
61
|
return effectiveConfig;
|
|
62
62
|
}
|
|
63
|
-
const version = "5.1.
|
|
64
|
-
const buildDate = "2026-
|
|
65
|
-
const revision = "
|
|
63
|
+
const version = "5.1.1-next.0";
|
|
64
|
+
const buildDate = "2026-05-28";
|
|
65
|
+
const revision = "06e3bdbee";
|
|
66
66
|
function stampVersion() {
|
|
67
67
|
const config = getConfig();
|
|
68
68
|
if (config && config.version) {
|
|
@@ -85,7 +85,7 @@ if (!isServer) {
|
|
|
85
85
|
if (process.env.NODE_ENV !== "test") {
|
|
86
86
|
queueMicrotask(stampVersion);
|
|
87
87
|
}
|
|
88
|
-
const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.1.
|
|
88
|
+
const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.1.1-next.0/dist/cdn/", hydratedAttribute: "calcite-hydrated" });
|
|
89
89
|
const { customElement, getAssetPath, setAssetPath } = runtime;
|
|
90
90
|
export {
|
|
91
91
|
CSS_UTILITY as C,
|