@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
|
@@ -8,7 +8,7 @@ import { g as getIconScale } from "../../chunks/component.js";
|
|
|
8
8
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
9
9
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
10
10
|
import { C as CSS, I as ICONS } from "../../chunks/resources7.js";
|
|
11
|
-
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;flex-grow:1;align-items:center;outline:2px solid transparent;outline-offset:2px}.container{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;text-decoration-line:none;color:var(--calcite-dropdown-item-text-color, var(--calcite-color-text-1));text-align:start}.container a{outline:none;position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;text-decoration-line:none;color:var(--calcite-dropdown-item-text-color, var(--calcite-color-text-1))}.content{flex:1 1 auto}.icon{position:relative;opacity:0;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:scale(.9)}.icon--start,.icon--end{--calcite-icon-color: var(--calcite-dropdown-item-text-color, var(--calcite-color-text-3))}:host([scale=s]) .container{padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s]) .icon,:host([scale=s]) .icon--start{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .icon--end{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) .icon,:host([scale=m]) .icon--start{padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .icon--end{padding-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .container{padding-block
|
|
11
|
+
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;flex-grow:1;align-items:center;outline:2px solid transparent;outline-offset:2px}.container{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;text-decoration-line:none;color:var(--calcite-dropdown-item-text-color, var(--calcite-color-text-1));text-align:start}.container a{outline:none;position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;text-decoration-line:none;color:var(--calcite-dropdown-item-text-color, var(--calcite-color-text-1))}.content{flex:1 1 auto}.icon{position:relative;opacity:0;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:scale(.9)}.icon--start,.icon--end{--calcite-icon-color: var(--calcite-dropdown-item-text-color, var(--calcite-color-text-3))}:host([scale=s]) .container{padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s]) .icon,:host([scale=s]) .icon--start{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .icon--end{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) .icon,:host([scale=m]) .icon--start{padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .icon--end{padding-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .container{padding-block:var(--calcite-space-sm-plus);padding-inline:1rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) .icon,:host([scale=l]) .icon--start{padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .icon--end{padding-inline-start:var(--calcite-spacing-lg)}:host(:focus) .container,:host([active-descendant]) .container{text-decoration-line:none;outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:hover:not([disabled])) .container{background-color:var(--calcite-dropdown-item-background-color-hover, var(--calcite-color-foreground-2))}:host(:active:not([disabled])) .container{background-color:var(--calcite-dropdown-item-background-color-press, var(--calcite-color-foreground-3))}:host(:hover:not([disabled])) .container,:host(:active:not([disabled])) .container{text-decoration-line:none;color:var(--calcite-dropdown-item-text-color-press, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .icon--start,:host(:hover:not([disabled])) .icon--end,:host(:active:not([disabled])) .icon--start,:host(:active:not([disabled])) .icon--end{--calcite-icon-color: var(--calcite-dropdown-item-text-color-press, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .link,:host(:active:not([disabled])) .link{color:var(--calcite-dropdown-item-text-color-press, var(--calcite-color-text-1))}:host([selected]) .container:not(.container--none-selection),:host([selected]) .link{font-weight:var(--calcite-font-weight-medium);--calcite-internal-dropdown-item-text-color: var( --calcite-dropdown-item-text-color-press, var(--calcite-color-text-1) );color:var(--calcite-internal-dropdown-item-text-color)}:host([selected]) .container:not(.container--none-selection) .icon,:host([selected]) .link .icon{--calcite-icon-color: var(--calcite-dropdown-item-icon-color-press, var(--calcite-color-brand))}:host([selected]) .container:not(.container--none-selection) .icon--start,:host([selected]) .container:not(.container--none-selection) .icon--end,:host([selected]) .link .icon--start,:host([selected]) .link .icon--end{--calcite-icon-color: var(--calcite-internal-dropdown-item-text-color)}:host(:hover:not([disabled])) .icon{--calcite-icon-color: var(--calcite-dropdown-item-icon-color-hover)}:host([selected]) .icon{opacity:1}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
|
|
12
12
|
class DropdownItem extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super();
|
|
@@ -16,19 +16,17 @@ class DropdownItem extends LitElement {
|
|
|
16
16
|
this.focusSetter = useSetFocus()(this);
|
|
17
17
|
this.interactiveContainer = useInteractive(this);
|
|
18
18
|
this.disabled = false;
|
|
19
|
+
this.activeDescendant = false;
|
|
19
20
|
this.scale = "m";
|
|
20
21
|
this.selected = false;
|
|
21
22
|
this.selectionMode = "single";
|
|
22
23
|
this.calciteDropdownItemSelect = createEvent({ cancelable: false });
|
|
23
|
-
this.calciteInternalDropdownCloseRequest = createEvent({ cancelable: false });
|
|
24
|
-
this.calciteInternalDropdownItemKeyEvent = createEvent({ cancelable: false });
|
|
25
24
|
this.calciteInternalDropdownItemSelect = createEvent({ cancelable: false });
|
|
26
25
|
this.listen("click", this.onClick);
|
|
27
|
-
this.listen("keydown", this.keyDownHandler);
|
|
28
26
|
this.listenOn(document.body, "calciteInternalDropdownItemChange", this.updateActiveItemOnChange);
|
|
29
27
|
}
|
|
30
28
|
static {
|
|
31
|
-
this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], href: [3, {}, { reflect: true }], iconEnd: [3, { type: String }, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], iconStart: [3, { type: String }, { reflect: true }], label: 1, rel: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selected: [7, {}, { reflect: true, type: Boolean }], selectionMode: 1, target: [3, {}, { reflect: true }] };
|
|
29
|
+
this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], activeDescendant: [7, {}, { reflect: true, type: Boolean }], href: [3, {}, { reflect: true }], iconEnd: [3, { type: String }, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], iconStart: [3, { type: String }, { reflect: true }], label: 1, rel: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selected: [7, {}, { reflect: true, type: Boolean }], selectionMode: 1, target: [3, {}, { reflect: true }] };
|
|
32
30
|
}
|
|
33
31
|
static {
|
|
34
32
|
this.styles = styles;
|
|
@@ -36,6 +34,16 @@ class DropdownItem extends LitElement {
|
|
|
36
34
|
async setFocus(options) {
|
|
37
35
|
return this.focusSetter(() => this.el, options);
|
|
38
36
|
}
|
|
37
|
+
async activateItem() {
|
|
38
|
+
if (this.disabled) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (this.href) {
|
|
42
|
+
this.childLinkRef.value?.click();
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this.emitRequestedItem();
|
|
46
|
+
}
|
|
39
47
|
connectedCallback() {
|
|
40
48
|
super.connectedCallback();
|
|
41
49
|
this.initialize();
|
|
@@ -46,32 +54,6 @@ class DropdownItem extends LitElement {
|
|
|
46
54
|
onClick() {
|
|
47
55
|
this.emitRequestedItem();
|
|
48
56
|
}
|
|
49
|
-
keyDownHandler(event) {
|
|
50
|
-
switch (event.key) {
|
|
51
|
-
case " ":
|
|
52
|
-
case "Enter":
|
|
53
|
-
this.emitRequestedItem();
|
|
54
|
-
if (this.href) {
|
|
55
|
-
this.childLinkRef.value.click();
|
|
56
|
-
}
|
|
57
|
-
event.preventDefault();
|
|
58
|
-
break;
|
|
59
|
-
case "Escape":
|
|
60
|
-
this.calciteInternalDropdownCloseRequest.emit();
|
|
61
|
-
event.preventDefault();
|
|
62
|
-
break;
|
|
63
|
-
case "Tab":
|
|
64
|
-
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: event });
|
|
65
|
-
break;
|
|
66
|
-
case "ArrowUp":
|
|
67
|
-
case "ArrowDown":
|
|
68
|
-
case "Home":
|
|
69
|
-
case "End":
|
|
70
|
-
event.preventDefault();
|
|
71
|
-
this.calciteInternalDropdownItemKeyEvent.emit({ keyboardEvent: event });
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
57
|
updateActiveItemOnChange(event) {
|
|
76
58
|
const parentEmittedChange = event.composedPath().includes(this.parentDropdownGroupEl);
|
|
77
59
|
if (parentEmittedChange) {
|
|
@@ -126,7 +108,7 @@ class DropdownItem extends LitElement {
|
|
|
126
108
|
this.el.ariaChecked = itemAria;
|
|
127
109
|
this.el.ariaLabel = !href ? label : "";
|
|
128
110
|
this.el.role = itemRole;
|
|
129
|
-
setAttribute(this.el, "tabIndex",
|
|
111
|
+
setAttribute(this.el, "tabIndex", -1);
|
|
130
112
|
return this.interactiveContainer({ disabled, children: html`<div class=${safeClassMap({
|
|
131
113
|
[CSS.container]: true,
|
|
132
114
|
[CSS.containerNone]: selectionMode === "none"
|
|
@@ -64,7 +64,7 @@ export abstract class Fab extends LitElement {
|
|
|
64
64
|
* Sets focus on the component.
|
|
65
65
|
*
|
|
66
66
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
67
|
-
* @
|
|
67
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
68
68
|
*/
|
|
69
69
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
70
70
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
|
-
import { LitElement,
|
|
5
|
+
import { LitElement, nothing, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
7
7
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
8
8
|
const CSS = {
|
|
@@ -11,7 +11,7 @@ const CSS = {
|
|
|
11
11
|
const ICONS = {
|
|
12
12
|
plus: "plus"
|
|
13
13
|
};
|
|
14
|
-
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}calcite-button{--calcite-fab-shadow-internal:
|
|
14
|
+
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}calcite-button{--calcite-fab-shadow-internal: var(--calcite-shadow-md);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-corner-radius: var(--calcite-fab-corner-radius);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
15
15
|
class Fab extends LitElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
@@ -66,7 +66,7 @@ export abstract class Filter extends LitElement {
|
|
|
66
66
|
* Sets focus on the component.
|
|
67
67
|
*
|
|
68
68
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
69
|
-
* @
|
|
69
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
70
70
|
*/
|
|
71
71
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
72
72
|
/** Fires when the filter text changes. */
|
|
@@ -19,7 +19,7 @@ export abstract class Flow extends LitElement {
|
|
|
19
19
|
*
|
|
20
20
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
21
21
|
* @returns Promise<void>
|
|
22
|
-
* @
|
|
22
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
23
23
|
*/
|
|
24
24
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
25
25
|
}
|
|
@@ -3,11 +3,12 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
3
3
|
import type { HeadingLevel } from "../functional/Heading.js";
|
|
4
4
|
import type { OverlayPositioning } from "../../utils/floating-ui.js";
|
|
5
5
|
import type { Scale } from "../interfaces.js";
|
|
6
|
+
import type { Panel } from "../calcite-panel/customElement.js";
|
|
6
7
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
|
-
* @cssproperty [--calcite-flow-item-footer-padding] - [Deprecated] Use `--calcite-flow-footer-space` instead. Specifies the padding of the component's footer.
|
|
10
|
-
* @cssproperty [--calcite-flow-item-header-border-block-end] - [Deprecated] Use `--calcite-flow-border-color` instead. Specifies the component header's block end border.
|
|
10
|
+
* @cssproperty [--calcite-flow-item-footer-padding] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-flow-footer-space` instead. Specifies the padding of the component's footer.
|
|
11
|
+
* @cssproperty [--calcite-flow-item-header-border-block-end] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-flow-border-color` instead. Specifies the component header's block end border.
|
|
11
12
|
* @cssproperty [--calcite-flow-corner-radius] - Specifies the component's corner radius.
|
|
12
13
|
* @cssproperty [--calcite-flow-heading-text-color] - Specifies the text color of the component's `heading`.
|
|
13
14
|
* @cssproperty [--calcite-flow-icon-color] - Specifies the color of the component's `icon`.
|
|
@@ -42,6 +43,8 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
42
43
|
* @slot [header-actions-end] - A slot for adding `calcite-action`s or content to the end side of the component's header.
|
|
43
44
|
* @slot [header-content] - A slot for adding custom content to the component's header.
|
|
44
45
|
* @slot [header-menu-actions] - A slot for adding an overflow menu with `calcite-action`s inside a `calcite-dropdown`.
|
|
46
|
+
* @slot [heading] - A slot for adding content to the heading area of the default header. Takes precedence over the `heading` property.
|
|
47
|
+
* @slot [description] - A slot for adding content to the description area of the default header. Takes precedence over the `description` property.
|
|
45
48
|
* @slot [fab] - A slot for adding a `calcite-fab` (floating action button) to perform an action.
|
|
46
49
|
* @slot [footer] - A slot for adding custom content to the component's footer. Should not be used with the `footer-start` or `footer-end` slots.
|
|
47
50
|
* @slot [footer-end] - A slot for adding a trailing footer custom content. Should not be used with the `footer` slot.
|
|
@@ -113,7 +116,7 @@ export abstract class FlowItem extends LitElement {
|
|
|
113
116
|
back?: string;
|
|
114
117
|
close?: string;
|
|
115
118
|
options?: string;
|
|
116
|
-
};
|
|
119
|
+
} & Panel["messageOverrides"];
|
|
117
120
|
/**
|
|
118
121
|
* Specifies the type of positioning to use for overlaid content, where:
|
|
119
122
|
*
|
|
@@ -149,7 +152,7 @@ export abstract class FlowItem extends LitElement {
|
|
|
149
152
|
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
150
153
|
*
|
|
151
154
|
* @default false
|
|
152
|
-
* @
|
|
155
|
+
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
153
156
|
*/
|
|
154
157
|
accessor topLayerDisabled: boolean;
|
|
155
158
|
/**
|
|
@@ -170,7 +173,7 @@ export abstract class FlowItem extends LitElement {
|
|
|
170
173
|
*
|
|
171
174
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
172
175
|
* @returns promise.
|
|
173
|
-
* @
|
|
176
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
174
177
|
*/
|
|
175
178
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
176
179
|
/** Fires when the component's back button is clicked. */
|
|
@@ -23,6 +23,8 @@ const SLOTS = {
|
|
|
23
23
|
contentBottom: "content-bottom",
|
|
24
24
|
headerActionsStart: "header-actions-start",
|
|
25
25
|
headerActionsEnd: "header-actions-end",
|
|
26
|
+
description: "description",
|
|
27
|
+
heading: "heading",
|
|
26
28
|
headerMenuActions: "header-menu-actions",
|
|
27
29
|
headerContent: "header-content",
|
|
28
30
|
fab: "fab",
|
|
@@ -120,8 +122,8 @@ class FlowItem extends LitElement {
|
|
|
120
122
|
return showBackButton ? keyed("flow-back-button", html`<calcite-action .ariaLabel=${label} class=${safeClassMap(CSS.backButton)} .icon=${icon} @click=${backButtonClick} .scale=${this.scale} slot=${SLOTS.headerActionsStart} .text=${label} title=${label ?? nothing} ${ref(this.backButtonRef)}></calcite-action>`) : null;
|
|
121
123
|
}
|
|
122
124
|
render() {
|
|
123
|
-
const { collapsed, collapseDirection, collapsible, closable, closed, description, disabled, heading, headingLevel, loading, menuOpen,
|
|
124
|
-
return this.interactiveContainer({ disabled, children: html`<calcite-panel .beforeClose=${beforeClose} .closable=${closable} .closed=${closed} .collapseDirection=${collapseDirection} .collapsed=${collapsed} .collapsible=${collapsible} .description=${description} .disabled=${disabled} .heading=${heading} .headingLevel=${headingLevel} .icon=${icon} .iconFlipRtl=${iconFlipRtl} .loading=${loading} .menuOpen=${menuOpen} .messageOverrides=${
|
|
125
|
+
const { collapsed, collapseDirection, collapsible, closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messageOverrides, overlayPositioning, beforeClose, icon, iconFlipRtl } = this;
|
|
126
|
+
return this.interactiveContainer({ disabled, children: html`<calcite-panel .beforeClose=${beforeClose} .closable=${closable} .closed=${closed} .collapseDirection=${collapseDirection} .collapsed=${collapsed} .collapsible=${collapsible} .description=${description} .disabled=${disabled} .heading=${heading} .headingLevel=${headingLevel} .icon=${icon} .iconFlipRtl=${iconFlipRtl} .loading=${loading} .menuOpen=${menuOpen} .messageOverrides=${messageOverrides} @calcitePanelClose=${this.handleInternalPanelClose} @calcitePanelScroll=${this.handleInternalPanelScroll} @calcitePanelToggle=${this.handleInternalPanelToggle} .overlayPositioning=${overlayPositioning} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.containerRef)}>${this.renderBackButton()}<slot name=${SLOTS.actionBar} slot=${SLOTS$1.actionBar}></slot><slot name=${SLOTS.alerts} slot=${SLOTS$1.alerts}></slot><slot name=${SLOTS.headerActionsStart} slot=${SLOTS$1.headerActionsStart}></slot><slot name=${SLOTS.headerActionsEnd} slot=${SLOTS$1.headerActionsEnd}></slot><slot name=${SLOTS.description} slot=${SLOTS$1.description}></slot><slot name=${SLOTS.heading} slot=${SLOTS$1.heading}></slot><slot name=${SLOTS.headerContent} slot=${SLOTS$1.headerContent}></slot><slot name=${SLOTS.headerMenuActions} slot=${SLOTS$1.headerMenuActions}></slot><slot name=${SLOTS.fab} slot=${SLOTS$1.fab}></slot><slot name=${SLOTS.contentTop} slot=${SLOTS$1.contentTop}></slot><slot name=${SLOTS.contentBottom} slot=${SLOTS$1.contentBottom}></slot><slot name=${SLOTS.footerStart} slot=${SLOTS$1.footerStart}></slot><slot name=${SLOTS.footer} slot=${SLOTS$1.footer}></slot><slot name=${SLOTS.footerEnd} slot=${SLOTS$1.footerEnd}></slot><slot></slot></calcite-panel>` });
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
customElement("calcite-flow-item", FlowItem);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
+
import type { FocusTrapOptions } from "../../controllers/useFocusTrap.js";
|
|
4
|
+
|
|
5
|
+
/** @slot - A slot for adding focus-trapped content. */
|
|
6
|
+
export abstract class FocusTrap extends LitElement {
|
|
7
|
+
/**
|
|
8
|
+
* Indicates whether the component's focus trap is currently active.
|
|
9
|
+
*
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
get active(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* When `true`, prevents focus trapping.
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
accessor focusTrapDisabled: boolean;
|
|
19
|
+
/** When defined, provides a condition to disable focus trapping. When `true`, prevents focus trapping. */
|
|
20
|
+
accessor focusTrapDisabledOverride: (() => boolean) | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies custom focus trap configuration on the component, where
|
|
23
|
+
*
|
|
24
|
+
* `"allowOutsideClick"` allows outside clicks,
|
|
25
|
+
* `"initialFocus"` enables initial focus,
|
|
26
|
+
* `"returnFocusOnDeactivate"` returns focus when not active,
|
|
27
|
+
* `"extraContainers"` specifies additional focusable elements external to the trap, and
|
|
28
|
+
* `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated.
|
|
29
|
+
*/
|
|
30
|
+
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
31
|
+
/** Activates the component's focus trap. */
|
|
32
|
+
activate(): Promise<void>;
|
|
33
|
+
/** Deactivates the component's focus trap. */
|
|
34
|
+
deactivate(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Updates the element(s) that are included in the focus-trap of the component.
|
|
37
|
+
*
|
|
38
|
+
* @param extraContainers - Additional elements to include in the focus trap. This is useful for including elements that may have related parts rendered outside the main focus trapping element.
|
|
39
|
+
*/
|
|
40
|
+
updateFocusTrapElements(extraContainers?: FocusTrapOptions["extraContainers"]): Promise<void>;
|
|
41
|
+
/** Fires when the focus-trap active state has changed. */
|
|
42
|
+
readonly calciteFocusTrapActiveChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
43
|
+
readonly "@eventTypes": {
|
|
44
|
+
calciteFocusTrapActiveChange: FocusTrap["calciteFocusTrapActiveChange"]["detail"];
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
|
+
import { css, html } from "lit";
|
|
4
|
+
import { LitElement, createEvent } from "@arcgis/lumina";
|
|
5
|
+
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
6
|
+
const styles = css`:host{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
7
|
+
class FocusTrap extends LitElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this._active = false;
|
|
11
|
+
this.focusTrapController = useFocusTrap({
|
|
12
|
+
focusTrapOptions: {
|
|
13
|
+
onActivate: () => {
|
|
14
|
+
this.setActive(true);
|
|
15
|
+
},
|
|
16
|
+
onDeactivate: () => {
|
|
17
|
+
this.setActive(false);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
})(this);
|
|
21
|
+
this.focusTrapDisabled = false;
|
|
22
|
+
this.calciteFocusTrapActiveChange = createEvent({ cancelable: false });
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
this.properties = { focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], active: [32, {}, { attribute: false, readOnly: true }], focusTrapDisabledOverride: [0, {}, { attribute: false }], focusTrapOptions: [0, {}, { attribute: false }] };
|
|
26
|
+
}
|
|
27
|
+
static {
|
|
28
|
+
this.styles = styles;
|
|
29
|
+
}
|
|
30
|
+
get active() {
|
|
31
|
+
return this._active;
|
|
32
|
+
}
|
|
33
|
+
async activate() {
|
|
34
|
+
this.focusTrapController.activate();
|
|
35
|
+
}
|
|
36
|
+
async deactivate() {
|
|
37
|
+
this.focusTrapController.deactivate();
|
|
38
|
+
}
|
|
39
|
+
async updateFocusTrapElements(extraContainers) {
|
|
40
|
+
this.focusTrapController.setExtraContainers(extraContainers);
|
|
41
|
+
this.focusTrapController.updateContainerElements();
|
|
42
|
+
}
|
|
43
|
+
setActive(active) {
|
|
44
|
+
const oldActive = this._active;
|
|
45
|
+
this._active = active;
|
|
46
|
+
this.requestUpdate("active", oldActive);
|
|
47
|
+
this.calciteFocusTrapActiveChange.emit();
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return html`<slot></slot>`;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
customElement("calcite-focus-trap", FocusTrap);
|
|
54
|
+
export {
|
|
55
|
+
FocusTrap
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html, svg } from "lit";
|
|
4
|
-
import { LitElement,
|
|
4
|
+
import { LitElement, nothing, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { g as guid } from "../../chunks/guid.js";
|
|
6
6
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
7
7
|
function slope(p0, p1, p2) {
|
|
@@ -39,7 +39,7 @@ export abstract class Handle extends LitElement {
|
|
|
39
39
|
* Sets focus on the component.
|
|
40
40
|
*
|
|
41
41
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
42
|
-
* @
|
|
42
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
43
43
|
*/
|
|
44
44
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
45
45
|
/** Fires whenever the component is selected or unselected. */
|
|
@@ -4,7 +4,7 @@ import type { Scale } from "../interfaces.js";
|
|
|
4
4
|
import type { IconName } from "./interfaces.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @cssproperty [--calcite-ui-icon-color] - [Deprecated] Use `--calcite-icon-color
|
|
7
|
+
* @cssproperty [--calcite-ui-icon-color] - [Deprecated] in v2.13.0, removal target v6.0.0 - Use `--calcite-icon-color` instead. Specifies the component's color. Defaults to current color.
|
|
8
8
|
* @cssproperty [--calcite-icon-color] - Specifies the component's color. Defaults to current color.
|
|
9
9
|
*/
|
|
10
10
|
export abstract class Icon extends LitElement {
|
|
@@ -7,7 +7,7 @@ import type { Scale } from "../interfaces.js";
|
|
|
7
7
|
* @cssproperty [--calcite-inline-editable-background-color] - Specifies the component's background color.
|
|
8
8
|
* @cssproperty [--calcite-inline-editable-button-background-color] - When `appearance="solid"` or `appearance="outline-fill"`, specifies the background color of the component's button element.
|
|
9
9
|
* @cssproperty [--calcite-inline-editable-button-corner-radius] - Specifies the corner radius of the component's button element.
|
|
10
|
-
* @cssproperty [--calcite-inline-editable-button-loader-color] - Specifies the loader color of the
|
|
10
|
+
* @cssproperty [--calcite-inline-editable-button-loader-color] - Specifies the loader color of the component's button element.
|
|
11
11
|
* @cssproperty [--calcite-inline-editable-button-text-color] - Specifies the text color of the component's button element.
|
|
12
12
|
* @slot - A slot for adding a `calcite-input`.
|
|
13
13
|
*/
|
|
@@ -54,7 +54,7 @@ export abstract class InlineEditable extends LitElement {
|
|
|
54
54
|
* Sets focus on the component.
|
|
55
55
|
*
|
|
56
56
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
57
|
-
* @
|
|
57
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
58
58
|
*/
|
|
59
59
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
60
60
|
/** Fires when the component's "cancel editing" button is pressed. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
|
-
import { LitElement, createEvent,
|
|
5
|
+
import { LitElement, createEvent, nothing, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
7
7
|
import { a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
8
8
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { Alignment, Scale, Status } from "../interfaces.js";
|
|
4
|
-
import type { MutableValidityState } from "../../utils/form.js";
|
|
5
4
|
import type { NumberingSystem } from "../../utils/locale.js";
|
|
6
5
|
import type { IconName } from "../calcite-icon/interfaces.js";
|
|
7
6
|
import type { InputPlacement } from "./interfaces.js";
|
|
@@ -34,7 +33,7 @@ export abstract class Input extends LitElement {
|
|
|
34
33
|
* When `type` is `"file"`, specifies a comma separated list of unique file type specifiers for limiting accepted file types.
|
|
35
34
|
* Read the native attribute's documentation on MDN for more info.
|
|
36
35
|
*
|
|
37
|
-
* @
|
|
36
|
+
* @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern)
|
|
38
37
|
*/
|
|
39
38
|
accessor accept: string;
|
|
40
39
|
/**
|
|
@@ -47,7 +46,7 @@ export abstract class Input extends LitElement {
|
|
|
47
46
|
* Specifies the type of content to autocomplete, for use in forms.
|
|
48
47
|
* Read the native attribute's documentation on MDN for more info.
|
|
49
48
|
*
|
|
50
|
-
* @
|
|
49
|
+
* @see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
|
|
51
50
|
*/
|
|
52
51
|
accessor autocomplete: AutoFill;
|
|
53
52
|
/**
|
|
@@ -60,13 +59,13 @@ export abstract class Input extends LitElement {
|
|
|
60
59
|
* When `true`, prevents interaction and decreases the component's opacity.
|
|
61
60
|
*
|
|
62
61
|
* @default false
|
|
63
|
-
* @
|
|
62
|
+
* @see [MDN - disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
|
|
64
63
|
*/
|
|
65
64
|
accessor disabled: boolean;
|
|
66
65
|
/**
|
|
67
66
|
* When `type` is `"file"`, specifies the component's selected files.
|
|
68
67
|
*
|
|
69
|
-
* @
|
|
68
|
+
* @see [MDN - files](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)
|
|
70
69
|
*/
|
|
71
70
|
accessor files: FileList | undefined;
|
|
72
71
|
/**
|
|
@@ -103,14 +102,14 @@ export abstract class Input extends LitElement {
|
|
|
103
102
|
* When the component resides in a form,
|
|
104
103
|
* specifies the maximum value for `type="number"`.
|
|
105
104
|
*
|
|
106
|
-
* @
|
|
105
|
+
* @see [MDN - max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max)
|
|
107
106
|
*/
|
|
108
107
|
accessor max: number;
|
|
109
108
|
/**
|
|
110
109
|
* When the component resides in a form,
|
|
111
110
|
* specifies the maximum length of text for the component's `value`.
|
|
112
111
|
*
|
|
113
|
-
* @
|
|
112
|
+
* @see [MDN - maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
|
|
114
113
|
*/
|
|
115
114
|
accessor maxLength: number;
|
|
116
115
|
/** Overrides individual strings used by the component. */
|
|
@@ -123,14 +122,14 @@ export abstract class Input extends LitElement {
|
|
|
123
122
|
* When the component resides in a form,
|
|
124
123
|
* specifies the minimum value for `type="number"`.
|
|
125
124
|
*
|
|
126
|
-
* @
|
|
125
|
+
* @see [MDN - min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min)
|
|
127
126
|
*/
|
|
128
127
|
accessor min: number;
|
|
129
128
|
/**
|
|
130
129
|
* When the component resides in a form,
|
|
131
130
|
* specifies the minimum length of text for the component's `value`.
|
|
132
131
|
*
|
|
133
|
-
* @
|
|
132
|
+
* @see [MDN - minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
|
|
134
133
|
*/
|
|
135
134
|
accessor minLength: number;
|
|
136
135
|
/**
|
|
@@ -138,7 +137,7 @@ export abstract class Input extends LitElement {
|
|
|
138
137
|
* Read the native attribute's documentation on MDN for more info.
|
|
139
138
|
*
|
|
140
139
|
* @default false
|
|
141
|
-
* @
|
|
140
|
+
* @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple)
|
|
142
141
|
*/
|
|
143
142
|
accessor multiple: boolean;
|
|
144
143
|
/**
|
|
@@ -146,7 +145,7 @@ export abstract class Input extends LitElement {
|
|
|
146
145
|
*
|
|
147
146
|
* Required to pass the component's `value` on form submission.
|
|
148
147
|
*
|
|
149
|
-
* @
|
|
148
|
+
* @see [MDN - name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
|
|
150
149
|
*/
|
|
151
150
|
accessor name: string;
|
|
152
151
|
/**
|
|
@@ -162,13 +161,13 @@ export abstract class Input extends LitElement {
|
|
|
162
161
|
* specifies a regular expression (regex) pattern the component's `value` must match for validation.
|
|
163
162
|
* Read the native attribute's documentation on MDN for more info.
|
|
164
163
|
*
|
|
165
|
-
* @
|
|
164
|
+
* @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern)
|
|
166
165
|
*/
|
|
167
166
|
accessor pattern: string;
|
|
168
167
|
/**
|
|
169
168
|
* Specifies the component's placeholder text.
|
|
170
169
|
*
|
|
171
|
-
* @
|
|
170
|
+
* @see [MDN - placeholder](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder)
|
|
172
171
|
*/
|
|
173
172
|
accessor placeholder: string;
|
|
174
173
|
/** Specifies text to display at the start of the component. */
|
|
@@ -177,7 +176,7 @@ export abstract class Input extends LitElement {
|
|
|
177
176
|
* When `true`, the component's `value` can be read, but cannot be modified.
|
|
178
177
|
*
|
|
179
178
|
* @default false
|
|
180
|
-
* @
|
|
179
|
+
* @see [MDN - readOnly](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly)
|
|
181
180
|
*/
|
|
182
181
|
accessor readOnly: boolean;
|
|
183
182
|
/**
|
|
@@ -202,7 +201,7 @@ export abstract class Input extends LitElement {
|
|
|
202
201
|
/**
|
|
203
202
|
* Specifies the granularity the component's `value` must adhere to.
|
|
204
203
|
*
|
|
205
|
-
* @
|
|
204
|
+
* @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step)
|
|
206
205
|
*/
|
|
207
206
|
accessor step: number | "any";
|
|
208
207
|
/** Specifies text to display at the end of the component. */
|
|
@@ -222,9 +221,9 @@ export abstract class Input extends LitElement {
|
|
|
222
221
|
/**
|
|
223
222
|
* The component's current validation state.
|
|
224
223
|
*
|
|
225
|
-
* @
|
|
224
|
+
* @see [MDN - ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
|
|
226
225
|
*/
|
|
227
|
-
get validity():
|
|
226
|
+
get validity(): ValidityState;
|
|
228
227
|
/** The component's value. */
|
|
229
228
|
accessor value: string;
|
|
230
229
|
/** Selects the text of the component's `value`. */
|
|
@@ -233,7 +232,7 @@ export abstract class Input extends LitElement {
|
|
|
233
232
|
* Sets focus on the component.
|
|
234
233
|
*
|
|
235
234
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
236
|
-
* @
|
|
235
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
237
236
|
*/
|
|
238
237
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
239
238
|
/** Fires each time a new `value` is typed and committed. */
|