@esri/calcite-components 5.2.0-next.16 → 5.2.0-next.18
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/{CULRGSU4.js → 244JKBVF.js} +1 -1
- package/dist/cdn/2AGAJJIB.js +2 -0
- package/dist/cdn/{6P5O53FC.js → 2HWRKMAA.js} +1 -1
- package/dist/cdn/2KXWVK5R.js +2 -0
- package/dist/cdn/32GEN77J.js +2 -0
- package/dist/cdn/3AKXMU5G.js +2 -0
- package/dist/cdn/{G6FR4KMK.js → 43UQRDUP.js} +1 -1
- package/dist/cdn/4GP6TAXB.js +2 -0
- package/dist/cdn/4JD3CHXN.js +2 -0
- package/dist/cdn/{YFT3HJ6C.js → 4QJ6NOHG.js} +1 -1
- package/dist/cdn/4YS5YNKT.js +2 -0
- package/dist/cdn/4ZCZK72Y.js +2 -0
- package/dist/cdn/{BKBRE6BE.js → 63ZJIDQB.js} +1 -1
- package/dist/cdn/{YGO2VHM5.js → 66TIXUKZ.js} +1 -1
- package/dist/cdn/67C3XP73.js +2 -0
- package/dist/cdn/6R6GTKYT.js +2 -0
- package/dist/cdn/{B5Q7JLP5.js → 6X2WSMZ5.js} +1 -1
- package/dist/cdn/6XJIWEWK.js +2 -0
- package/dist/cdn/{W5QIPFSJ.js → 7DKQWZLO.js} +1 -1
- package/dist/cdn/{SI2JU5OQ.js → 7E5TIEWW.js} +1 -1
- package/dist/cdn/{4EHBKF47.js → 7JNLY4HM.js} +1 -1
- package/dist/cdn/7JOCL5OG.js +2 -0
- package/dist/cdn/{MZ7UQKEU.js → 7PT2HEYK.js} +1 -1
- package/dist/cdn/7VKL5SMS.js +2 -0
- package/dist/cdn/{2YBRZFRA.js → 7VP33ZLQ.js} +1 -1
- package/dist/cdn/AEZPF54J.js +2 -0
- package/dist/cdn/AK2BNXU5.js +2 -0
- package/dist/cdn/AW2JNNR4.js +2 -0
- package/dist/cdn/AXG3VSQ6.js +2 -0
- package/dist/cdn/AZFJU6IP.js +2 -0
- package/dist/cdn/B4VQMW6S.js +2 -0
- package/dist/cdn/{E7IC4K6C.js → BDGDPDVV.js} +1 -1
- package/dist/cdn/BLY4R5W6.js +2 -0
- package/dist/cdn/{LMNS42HV.js → BUSQG554.js} +1 -1
- package/dist/cdn/BWOA2R7K.js +2 -0
- package/dist/cdn/CBBO5C4D.js +2 -0
- package/dist/cdn/CF4EUVWG.js +2 -0
- package/dist/cdn/{5RU4WRDH.js → CLN5CN37.js} +1 -1
- package/dist/cdn/CQMPIJ3E.js +2 -0
- package/dist/cdn/D47KWV7W.js +2 -0
- package/dist/cdn/D6GFNLFZ.js +2 -0
- package/dist/cdn/DAYLBQID.js +2 -0
- package/dist/cdn/DNBT6WDR.js +2 -0
- package/dist/cdn/{B3UUKGE4.js → DXKRVRLN.js} +1 -1
- package/dist/cdn/DY3KKYRE.js +2 -0
- package/dist/cdn/{Y5JJBAGO.js → DZNW7UTU.js} +1 -1
- package/dist/cdn/{QDCCLW4T.js → E2BUHHZS.js} +1 -1
- package/dist/cdn/EEXZCUXB.js +2 -0
- package/dist/cdn/{QQEZNIQC.js → FDSU3JQZ.js} +1 -1
- package/dist/cdn/{4NVF6ZE7.js → FSQUOQNG.js} +1 -1
- package/dist/cdn/FTIU6FYM.js +2 -0
- package/dist/cdn/FY4JRD6Z.js +2 -0
- package/dist/cdn/G7KAUO2G.js +2 -0
- package/dist/cdn/{OD4W6GP7.js → GGG5VD7I.js} +1 -1
- package/dist/cdn/GSTSH45B.js +2 -0
- package/dist/cdn/GYJCECNX.js +2 -0
- package/dist/cdn/{WL2UZNLW.js → H6C2WKYJ.js} +1 -1
- package/dist/cdn/HB4IMRSW.js +2 -0
- package/dist/cdn/HLOVDE25.js +2 -0
- package/dist/cdn/HUEEU253.js +2 -0
- package/dist/cdn/IQXDPLHG.js +2 -0
- package/dist/cdn/IUPMMDTD.js +2 -0
- package/dist/cdn/IYTRLXAB.js +2 -0
- package/dist/cdn/{F5OYYX7P.js → J3PDNDDA.js} +1 -1
- package/dist/cdn/JDMI7L3B.js +2 -0
- package/dist/cdn/{NY44QG3Z.js → JPB6GI3D.js} +1 -1
- package/dist/cdn/JZCYPF7M.js +2 -0
- package/dist/cdn/{HLSREAGB.js → K2W3MKF3.js} +1 -1
- package/dist/cdn/{SHDZO7WL.js → KFZUOOJM.js} +1 -1
- package/dist/cdn/{HXJ3PWDD.js → KOH5XP44.js} +1 -1
- package/dist/cdn/KV7LRXYH.js +2 -0
- package/dist/cdn/KY6MSZKV.js +2 -0
- package/dist/cdn/L5F3IADW.js +2 -0
- package/dist/cdn/LLNBAA6Z.js +2 -0
- package/dist/cdn/LV77PJ5S.js +2 -0
- package/dist/cdn/{Z3VY5WT2.js → M723D5MX.js} +1 -1
- package/dist/cdn/MC36JUZR.js +2 -0
- package/dist/cdn/{7NECG5PK.js → MC4RBKB4.js} +1 -1
- package/dist/cdn/{6OZPUPKW.js → MMDUIXCY.js} +1 -1
- package/dist/cdn/{Q54HXE6A.js → NMYHYOYP.js} +1 -1
- package/dist/cdn/{KVCFGTZC.js → NOJZLZ2S.js} +1 -1
- package/dist/cdn/{UHDMAQIY.js → NS3N2EV5.js} +1 -1
- package/dist/cdn/{XVNOPWL3.js → NVC4Y7T4.js} +1 -1
- package/dist/cdn/NXL5U2GC.js +2 -0
- package/dist/cdn/{UJXHOMUC.js → NXLRHGGA.js} +1 -1
- package/dist/cdn/{23CKFJJ3.js → OF5OJ6W2.js} +1 -1
- package/dist/cdn/OI345FLZ.js +2 -0
- package/dist/cdn/{BCQDFCKN.js → OLB32C3K.js} +1 -1
- package/dist/cdn/{25ZVWCQX.js → OPXBR7HS.js} +1 -1
- package/dist/cdn/OVNOBXYH.js +2 -0
- package/dist/cdn/P7FRWWUA.js +2 -0
- package/dist/cdn/{IMNESPYO.js → PCKRHASB.js} +1 -1
- package/dist/cdn/{DEJB6LKH.js → PMKHZKUN.js} +1 -1
- package/dist/cdn/PTMNJ42P.js +2 -0
- package/dist/cdn/{ZFHW7RUW.js → PXYDK2MR.js} +1 -1
- package/dist/cdn/Q47SQGAQ.js +2 -0
- package/dist/cdn/{MPBEGHZK.js → QXNE3FI6.js} +1 -1
- package/dist/cdn/{67UZPLTH.js → RAFFL26S.js} +1 -1
- package/dist/cdn/{4IFN3JAF.js → RBYGDWFZ.js} +1 -1
- package/dist/cdn/ROKJQZAL.js +2 -0
- package/dist/cdn/RUUFFFOK.js +2 -0
- package/dist/cdn/S3WZTYTS.js +2 -0
- package/dist/cdn/S7MMMYVR.js +2 -0
- package/dist/cdn/SC4SRDST.js +2 -0
- package/dist/cdn/{7TXXRTD6.js → SIKK7UA5.js} +1 -1
- package/dist/cdn/SKDGAPNI.js +2 -0
- package/dist/cdn/TL4SKOYR.js +2 -0
- package/dist/cdn/TYYIW6LT.js +2 -0
- package/dist/cdn/U265VDQL.js +2 -0
- package/dist/cdn/U3PEALKM.js +2 -0
- package/dist/cdn/{3N5FOQAL.js → UCKDHXO6.js} +1 -1
- package/dist/cdn/{SBGFZIL5.js → UKIH3ENO.js} +1 -1
- package/dist/cdn/{NRGZYLHS.js → VHAVU7MI.js} +1 -1
- package/dist/cdn/{PQYNJXHD.js → VHZB2PB5.js} +1 -1
- package/dist/cdn/VK3JOH4A.js +2 -0
- package/dist/cdn/W25HYUBT.js +2 -0
- package/dist/cdn/W3KZMB45.js +2 -0
- package/dist/cdn/{FQ6VKBCC.js → WCB4MZTL.js} +1 -1
- package/dist/cdn/{ZT2T23RU.js → WD6X4OSZ.js} +1 -1
- package/dist/cdn/WEEI6EKR.js +2 -0
- package/dist/cdn/WFNJV7IH.js +2 -0
- package/dist/cdn/WHX2PPLS.js +3 -0
- package/dist/cdn/{5R66KNRS.js → WJXOPH7K.js} +1 -1
- package/dist/cdn/{SDUVQU3B.js → WOI3236M.js} +1 -1
- package/dist/cdn/{IWV3N5DN.js → WPEUWJKE.js} +1 -1
- package/dist/cdn/WRB3PM5B.js +2 -0
- package/dist/cdn/{TQOSF3DK.js → WULCVVUT.js} +1 -1
- package/dist/cdn/WVBJFYVZ.js +2 -0
- package/dist/cdn/WYN26COG.js +2 -0
- package/dist/cdn/X2VN4Z5V.js +2 -0
- package/dist/cdn/{CMSVRAIL.js → X3DYPOR7.js} +1 -1
- package/dist/cdn/{B2ORCPWA.js → X4M2MAGB.js} +1 -1
- package/dist/cdn/Y773K7JU.js +2 -0
- package/dist/cdn/YIEYEQ3Z.js +2 -0
- package/dist/cdn/YM2XH3OQ.js +2 -0
- package/dist/cdn/YOVWDJJ6.js +2 -0
- package/dist/cdn/{ADXJH4JG.js → Z2R7NG2Y.js} +1 -1
- package/dist/cdn/Z6SMBXYE.js +2 -0
- package/dist/cdn/{OZWW4O5S.js → ZAFZW542.js} +1 -1
- package/dist/cdn/ZBURBVQW.js +2 -0
- package/dist/cdn/{5UODEL4J.js → ZDGLUTPC.js} +1 -1
- package/dist/cdn/ZHMODJZN.js +2 -0
- package/dist/cdn/{H37WKFXM.js → ZS4TG5RD.js} +1 -1
- package/dist/cdn/ZV45INOM.js +2 -0
- package/dist/cdn/assets/icon/arcgisEnterprise16.json +1 -0
- package/dist/cdn/assets/icon/arcgisEnterprise24.json +1 -0
- package/dist/cdn/assets/icon/arcgisEnterprise32.json +1 -0
- package/dist/cdn/assets/input-date-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input-date-picker/t9n/messages.json +1 -1
- package/dist/cdn/assets/input-time-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/input-time-picker/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ExpandToggle.js +1 -1
- package/dist/chunks/dom.js +6 -12
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/logger.js +1 -1
- package/dist/chunks/manager.js +5 -5
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useForm.js +8 -6
- package/dist/chunks/useTime.js +1 -0
- package/dist/components/calcite-accordion-item/customElement.d.ts +2 -2
- package/dist/components/calcite-action/customElement.d.ts +3 -3
- package/dist/components/calcite-action-bar/customElement.d.ts +4 -4
- package/dist/components/calcite-action-group/customElement.d.ts +1 -1
- package/dist/components/calcite-action-menu/customElement.d.ts +1 -1
- package/dist/components/calcite-action-menu/customElement.js +3 -3
- package/dist/components/calcite-action-pad/customElement.d.ts +4 -4
- package/dist/components/calcite-alert/customElement.d.ts +1 -1
- package/dist/components/calcite-autocomplete/customElement.d.ts +3 -3
- package/dist/components/calcite-block/customElement.d.ts +4 -4
- package/dist/components/calcite-block-group/customElement.d.ts +2 -2
- package/dist/components/calcite-block-section/customElement.d.ts +2 -2
- package/dist/components/calcite-button/customElement.d.ts +1 -1
- package/dist/components/calcite-card/customElement.d.ts +2 -2
- package/dist/components/calcite-carousel/customElement.d.ts +7 -7
- package/dist/components/calcite-checkbox/customElement.d.ts +1 -1
- package/dist/components/calcite-chip/customElement.d.ts +1 -1
- package/dist/components/calcite-chip/customElement.js +2 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +20 -20
- package/dist/components/calcite-color-picker/customElement.js +6 -2
- package/dist/components/calcite-combobox/customElement.d.ts +11 -11
- package/dist/components/calcite-date-picker/customElement.d.ts +5 -5
- package/dist/components/calcite-dialog/customElement.d.ts +3 -3
- package/dist/components/calcite-filter/customElement.d.ts +2 -2
- package/dist/components/calcite-flow-item/customElement.d.ts +8 -8
- package/dist/components/calcite-handle/customElement.d.ts +7 -7
- package/dist/components/calcite-handle/customElement.js +2 -2
- package/dist/components/calcite-inline-editable/customElement.d.ts +3 -3
- package/dist/components/calcite-input/customElement.d.ts +6 -6
- package/dist/components/calcite-input-date-picker/customElement.d.ts +13 -6
- package/dist/components/calcite-input-date-picker/customElement.js +3 -3
- package/dist/components/calcite-input-message/customElement.js +1 -3
- package/dist/components/calcite-input-number/customElement.d.ts +6 -6
- package/dist/components/calcite-input-text/customElement.d.ts +6 -6
- package/dist/components/calcite-input-time-picker/customElement.d.ts +18 -17
- package/dist/components/calcite-input-time-zone/customElement.d.ts +606 -606
- package/dist/components/calcite-list/customElement.d.ts +4 -4
- package/dist/components/calcite-list-item/customElement.d.ts +3 -3
- package/dist/components/calcite-list-item/interfaces.d.ts +3 -3
- package/dist/components/calcite-menu/customElement.d.ts +1 -1
- package/dist/components/calcite-menu-item/customElement.d.ts +2 -2
- package/dist/components/calcite-meter/customElement.js +9 -9
- package/dist/components/calcite-navigation/customElement.d.ts +1 -1
- package/dist/components/calcite-navigation/customElement.js +9 -0
- package/dist/components/calcite-navigation-logo/customElement.d.ts +9 -9
- package/dist/components/calcite-navigation-logo/customElement.js +1 -0
- package/dist/components/calcite-navigation-user/customElement.d.ts +5 -5
- package/dist/components/calcite-navigation-user/customElement.js +1 -0
- package/dist/components/calcite-notice/customElement.d.ts +2 -2
- package/dist/components/calcite-option/customElement.d.ts +1 -1
- package/dist/components/calcite-option/customElement.js +1 -0
- package/dist/components/calcite-pagination/customElement.d.ts +4 -4
- package/dist/components/calcite-panel/customElement.d.ts +4 -4
- package/dist/components/calcite-popover/customElement.d.ts +1 -1
- package/dist/components/calcite-radio-button/customElement.js +1 -0
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
- package/dist/components/calcite-rating/customElement.d.ts +3 -3
- package/dist/components/calcite-scrim/customElement.d.ts +1 -1
- package/dist/components/calcite-segmented-control/customElement.d.ts +6 -6
- package/dist/components/calcite-segmented-control/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +6 -6
- package/dist/components/calcite-sheet/customElement.d.ts +5 -5
- package/dist/components/calcite-sheet/customElement.js +7 -22
- package/dist/components/calcite-shell/customElement.js +2 -13
- package/dist/components/calcite-shell-panel/customElement.d.ts +4 -4
- package/dist/components/calcite-shell-panel/customElement.js +4 -16
- package/dist/components/calcite-slider/customElement.d.ts +1 -1
- package/dist/components/calcite-sort-handle/customElement.d.ts +14 -14
- package/dist/components/calcite-sort-handle/customElement.js +2 -2
- package/dist/components/calcite-sortable-list/customElement.d.ts +2 -2
- package/dist/components/calcite-sortable-list/customElement.js +3 -3
- package/dist/components/calcite-stepper/customElement.d.ts +3 -3
- package/dist/components/calcite-stepper-item/customElement.d.ts +3 -3
- package/dist/components/calcite-tab-nav/customElement.d.ts +2 -2
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.d.ts +1 -1
- package/dist/components/calcite-table/customElement.d.ts +5 -5
- package/dist/components/calcite-table-cell/customElement.d.ts +5 -5
- package/dist/components/calcite-table-header/customElement.d.ts +6 -6
- package/dist/components/calcite-table-row/customElement.js +1 -1
- package/dist/components/calcite-tabs/customElement.js +2 -2
- package/dist/components/calcite-text-area/customElement.d.ts +5 -5
- package/dist/components/calcite-text-area/customElement.js +1 -1
- package/dist/components/calcite-time-picker/customElement.d.ts +15 -15
- package/dist/components/calcite-tooltip/customElement.d.ts +1 -1
- package/dist/components/calcite-tree-item/customElement.js +1 -1
- 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.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cdn/2BPEKIT3.js +0 -2
- package/dist/cdn/34JHLJ3H.js +0 -2
- package/dist/cdn/3I5BTEEC.js +0 -2
- package/dist/cdn/3U4ZWJVW.js +0 -2
- package/dist/cdn/44MSN4BY.js +0 -2
- package/dist/cdn/44P2MJGD.js +0 -2
- package/dist/cdn/4GEVIBLZ.js +0 -2
- package/dist/cdn/4IMOW4XR.js +0 -2
- package/dist/cdn/4TIEXZFH.js +0 -2
- package/dist/cdn/62H6YWOD.js +0 -2
- package/dist/cdn/667BX6C2.js +0 -2
- package/dist/cdn/6AK6KZDQ.js +0 -2
- package/dist/cdn/6MFBNGHM.js +0 -2
- package/dist/cdn/6UUG7BR5.js +0 -2
- package/dist/cdn/743PCCPR.js +0 -2
- package/dist/cdn/7KHQNJUK.js +0 -2
- package/dist/cdn/AOXRDXK3.js +0 -2
- package/dist/cdn/B2Z2OFXW.js +0 -2
- package/dist/cdn/B3QZ2XNQ.js +0 -2
- package/dist/cdn/B6AJO7QQ.js +0 -2
- package/dist/cdn/BLVQHZ6I.js +0 -2
- package/dist/cdn/BQLQFRQU.js +0 -2
- package/dist/cdn/BWYJRS53.js +0 -2
- package/dist/cdn/D2HKARC2.js +0 -2
- package/dist/cdn/D52NOMC4.js +0 -2
- package/dist/cdn/D7VHKSBM.js +0 -2
- package/dist/cdn/E622Q2TQ.js +0 -2
- package/dist/cdn/EZQKTHH3.js +0 -2
- package/dist/cdn/FNJIBEB2.js +0 -2
- package/dist/cdn/FP434YLN.js +0 -2
- package/dist/cdn/GW747T3W.js +0 -2
- package/dist/cdn/GWUTSOHK.js +0 -2
- package/dist/cdn/H4L4EHB2.js +0 -2
- package/dist/cdn/H5TXFZSO.js +0 -2
- package/dist/cdn/H7AVJRRT.js +0 -2
- package/dist/cdn/HA3LHNRC.js +0 -2
- package/dist/cdn/HHWIABV7.js +0 -2
- package/dist/cdn/IEV3ZJGY.js +0 -2
- package/dist/cdn/IK2ZWLKD.js +0 -2
- package/dist/cdn/JSWUC46W.js +0 -2
- package/dist/cdn/JTOHCGX2.js +0 -2
- package/dist/cdn/KG6IVYF4.js +0 -2
- package/dist/cdn/KNTHSCWX.js +0 -2
- package/dist/cdn/KSGT4GRV.js +0 -2
- package/dist/cdn/LDIOQBSI.js +0 -2
- package/dist/cdn/LF6MQ6HF.js +0 -2
- package/dist/cdn/LHPCIKUI.js +0 -2
- package/dist/cdn/MDEHQJED.js +0 -2
- package/dist/cdn/MDWQVFCB.js +0 -2
- package/dist/cdn/MGSMKR2I.js +0 -2
- package/dist/cdn/NMTRXY5U.js +0 -2
- package/dist/cdn/NR7I7ABN.js +0 -2
- package/dist/cdn/NVMXMJKA.js +0 -2
- package/dist/cdn/PBNAZWZY.js +0 -2
- package/dist/cdn/PDEJLZ3D.js +0 -2
- package/dist/cdn/Q4ZZN7TG.js +0 -2
- package/dist/cdn/Q7GAT2DB.js +0 -2
- package/dist/cdn/QLNZXK7M.js +0 -2
- package/dist/cdn/QZUGIHZN.js +0 -2
- package/dist/cdn/RF7K7DTZ.js +0 -2
- package/dist/cdn/RJUGARBU.js +0 -2
- package/dist/cdn/RZULQ2JP.js +0 -2
- package/dist/cdn/TQ3C46K7.js +0 -2
- package/dist/cdn/TR56RG7Q.js +0 -2
- package/dist/cdn/TTNGUCIA.js +0 -2
- package/dist/cdn/TVX7XVJC.js +0 -2
- package/dist/cdn/UFJCW5EG.js +0 -2
- package/dist/cdn/UI2Y2KED.js +0 -2
- package/dist/cdn/UTSULH62.js +0 -2
- package/dist/cdn/VRNR72VI.js +0 -2
- package/dist/cdn/WHGBMNS4.js +0 -2
- package/dist/cdn/X3TBQXF6.js +0 -2
- package/dist/cdn/XJMNQRUJ.js +0 -2
- package/dist/cdn/XLHTNALK.js +0 -2
- package/dist/cdn/Y6JHEDKL.js +0 -2
- package/dist/cdn/YPCHV7D7.js +0 -2
- package/dist/cdn/Z5X6I2G7.js +0 -2
- package/dist/cdn/ZD7I7RV6.js +0 -3
- package/dist/cdn/ZHNSJJ4O.js +0 -2
- package/dist/cdn/ZOAYIZNY.js +0 -2
- package/dist/cdn/ZS6DTRJ2.js +0 -2
- package/dist/cdn/ZSX6UO57.js +0 -2
- package/dist/cdn/ZUIIHKJP.js +0 -2
|
@@ -19,9 +19,9 @@ import type { ListDisplayMode, ListDragDetail } from "./interfaces.js";
|
|
|
19
19
|
*/
|
|
20
20
|
export abstract class List extends LitElement {
|
|
21
21
|
/** When provided, the method will be called to determine whether the element can move from the list. */
|
|
22
|
-
accessor canPull: (detail: ListDragDetail) => boolean | "clone";
|
|
22
|
+
accessor canPull: ((detail: ListDragDetail) => boolean | "clone") | undefined;
|
|
23
23
|
/** When provided, the method will be called to determine whether the element can be added from another list. */
|
|
24
|
-
accessor canPut: (detail: ListDragDetail) => boolean;
|
|
24
|
+
accessor canPut: ((detail: ListDragDetail) => boolean) | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
27
27
|
*
|
|
@@ -112,8 +112,8 @@ export abstract class List extends LitElement {
|
|
|
112
112
|
accessor loading: boolean;
|
|
113
113
|
/** Overrides individual strings used by the component. */
|
|
114
114
|
accessor messageOverrides: {
|
|
115
|
-
filterEnabled?: string;
|
|
116
|
-
total?: string;
|
|
115
|
+
filterEnabled?: string | undefined;
|
|
116
|
+
total?: string | undefined;
|
|
117
117
|
};
|
|
118
118
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
119
119
|
accessor numberingSystem: NumberingSystem | undefined;
|
|
@@ -64,9 +64,9 @@ export abstract class ListItem extends LitElement {
|
|
|
64
64
|
accessor label: string | undefined;
|
|
65
65
|
/** Overrides individual strings used by the component. */
|
|
66
66
|
accessor messageOverrides: {
|
|
67
|
-
close?: string;
|
|
68
|
-
expand?: string;
|
|
69
|
-
collapse?: string;
|
|
67
|
+
close?: string | undefined;
|
|
68
|
+
expand?: string | undefined;
|
|
69
|
+
collapse?: string | undefined;
|
|
70
70
|
};
|
|
71
71
|
/** Provides additional metadata to the component. Primary use is for a filter on the parent `calcite-list`. */
|
|
72
72
|
accessor metadata: Record<string, unknown> | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ListItem } from "./customElement.js";
|
|
2
2
|
|
|
3
3
|
export type ItemData = {
|
|
4
|
-
label
|
|
5
|
-
description
|
|
6
|
-
metadata
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
metadata?: Record<string, unknown>;
|
|
7
7
|
el: ListItem;
|
|
8
8
|
heading?: string[];
|
|
9
9
|
};
|
|
@@ -15,7 +15,7 @@ export abstract class Menu extends LitElement {
|
|
|
15
15
|
*/
|
|
16
16
|
accessor layout: Layout;
|
|
17
17
|
/** Overrides individual strings used by the component. */
|
|
18
|
-
accessor messageOverrides: { more?: string; };
|
|
18
|
+
accessor messageOverrides: { more?: string | undefined; };
|
|
19
19
|
/**
|
|
20
20
|
* Sets focus on the component's first focusable element.
|
|
21
21
|
*
|
|
@@ -40,8 +40,8 @@ export abstract class MenuItem extends LitElement {
|
|
|
40
40
|
accessor label: string;
|
|
41
41
|
/** Overrides individual strings used by the component. */
|
|
42
42
|
accessor messageOverrides: {
|
|
43
|
-
submenu?: string;
|
|
44
|
-
open?: string;
|
|
43
|
+
submenu?: string | undefined;
|
|
44
|
+
open?: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* When `true`, the component will display any slotted `calcite-menu-item` in an open overflow menu.
|
|
@@ -98,13 +98,13 @@ class Meter extends LitElement {
|
|
|
98
98
|
}
|
|
99
99
|
calculateValues() {
|
|
100
100
|
const { min, max, low, high, value } = this;
|
|
101
|
-
const lowPercent = 100 * (low - min) / (max - min);
|
|
102
|
-
const highPercent = 100 * (high - min) / (max - min);
|
|
103
|
-
const currentPercent = 100 * (value - min) / (max - min);
|
|
104
|
-
if (!low || low < min || low > high || low > max) {
|
|
101
|
+
const lowPercent = low === void 0 ? NaN : 100 * (low - min) / (max - min);
|
|
102
|
+
const highPercent = high === void 0 ? NaN : 100 * (high - min) / (max - min);
|
|
103
|
+
const currentPercent = value === void 0 ? NaN : 100 * (value - min) / (max - min);
|
|
104
|
+
if (!low || low < min || high !== void 0 && low > high || low > max) {
|
|
105
105
|
this.low = min;
|
|
106
106
|
}
|
|
107
|
-
if (!high || high > max || high < low || high < min) {
|
|
107
|
+
if (!high || high > max || low !== void 0 && high < low || high < min) {
|
|
108
108
|
this.high = max;
|
|
109
109
|
}
|
|
110
110
|
if (!value) {
|
|
@@ -140,10 +140,10 @@ class Meter extends LitElement {
|
|
|
140
140
|
const { low, high, min, max, value } = this;
|
|
141
141
|
const lowest = low ? low : min;
|
|
142
142
|
const highest = high ? high : max;
|
|
143
|
-
const aboveLowest = value >= lowest;
|
|
144
|
-
const belowLowest = value < lowest;
|
|
145
|
-
const aboveHighest = value >= highest;
|
|
146
|
-
const belowHighest = value < highest;
|
|
143
|
+
const aboveLowest = value !== void 0 && value >= lowest;
|
|
144
|
+
const belowLowest = value !== void 0 && value < lowest;
|
|
145
|
+
const aboveHighest = value !== void 0 && value >= highest;
|
|
146
|
+
const belowHighest = value !== void 0 && value < highest;
|
|
147
147
|
if (!value || !low && belowHighest || belowLowest) {
|
|
148
148
|
return CSS.success;
|
|
149
149
|
} else if (aboveLowest && belowHighest) {
|
|
@@ -19,7 +19,7 @@ import type { Scale } from "../interfaces.js";
|
|
|
19
19
|
*/
|
|
20
20
|
export abstract class Navigation extends LitElement {
|
|
21
21
|
/** When `navigationAction` is `true`, specifies an accessible label for the `calcite-action`. */
|
|
22
|
-
accessor label: string;
|
|
22
|
+
accessor label: string | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* When `true`, displays a `calcite-action` and emits a `calciteNavActionSelect` event on selection change.
|
|
25
25
|
*
|
|
@@ -40,6 +40,15 @@ class Navigation extends LitElement {
|
|
|
40
40
|
this.updateNavigationUser();
|
|
41
41
|
this.updateNestedNavigation();
|
|
42
42
|
});
|
|
43
|
+
this.logoSlotHasElements = false;
|
|
44
|
+
this.navigationActionSlotHasElements = false;
|
|
45
|
+
this.primaryContentCenterSlotHasElements = false;
|
|
46
|
+
this.primaryContentEndSlotHasElements = false;
|
|
47
|
+
this.primaryContentStartSlotHasElements = false;
|
|
48
|
+
this.progressSlotHasElement = false;
|
|
49
|
+
this.secondarySlotHasElements = false;
|
|
50
|
+
this.tertiarySlotHasElements = false;
|
|
51
|
+
this.userSlotHasElements = false;
|
|
43
52
|
this.navigationAction = false;
|
|
44
53
|
this.scale = "m";
|
|
45
54
|
this.calciteNavigationActionSelect = createEvent({ cancelable: false });
|
|
@@ -17,15 +17,15 @@ export abstract class NavigationLogo extends LitElement {
|
|
|
17
17
|
*/
|
|
18
18
|
accessor active: boolean;
|
|
19
19
|
/** Specifies a description for the component. Displays below the `heading`. */
|
|
20
|
-
accessor description: string;
|
|
20
|
+
accessor description: string | undefined;
|
|
21
21
|
/** Specifies the component's heading text. */
|
|
22
|
-
accessor heading: string;
|
|
22
|
+
accessor heading: string | undefined;
|
|
23
23
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
24
|
-
accessor headingLevel: HeadingLevel;
|
|
24
|
+
accessor headingLevel: HeadingLevel | undefined;
|
|
25
25
|
/** Specifies the URL destination of the component, which can be set as an absolute or relative path. */
|
|
26
|
-
accessor href: string;
|
|
26
|
+
accessor href: string | undefined;
|
|
27
27
|
/** Specifies an icon to display. */
|
|
28
|
-
accessor icon: IconName;
|
|
28
|
+
accessor icon: IconName | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
31
31
|
*
|
|
@@ -33,21 +33,21 @@ export abstract class NavigationLogo extends LitElement {
|
|
|
33
33
|
*/
|
|
34
34
|
accessor iconFlipRtl: boolean;
|
|
35
35
|
/** Specifies an accessible label for the component. */
|
|
36
|
-
accessor label: string;
|
|
36
|
+
accessor label: string | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Defines the relationship between the `href` value and the current document.
|
|
39
39
|
*
|
|
40
40
|
* @see [MDN - rel](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel)
|
|
41
41
|
*/
|
|
42
|
-
accessor rel: string;
|
|
42
|
+
accessor rel: string | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* Specifies where to open the linked document defined in the `href` property.
|
|
45
45
|
*
|
|
46
46
|
* @see [MDN - target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target)
|
|
47
47
|
*/
|
|
48
|
-
accessor target: string;
|
|
48
|
+
accessor target: string | undefined;
|
|
49
49
|
/** Specifies the `src` to an image. */
|
|
50
|
-
accessor thumbnail: string;
|
|
50
|
+
accessor thumbnail: string | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Sets focus on the component.
|
|
53
53
|
*
|
|
@@ -17,9 +17,9 @@ export abstract class NavigationUser extends LitElement {
|
|
|
17
17
|
*/
|
|
18
18
|
accessor active: boolean;
|
|
19
19
|
/** Specifies the full name of the user. */
|
|
20
|
-
accessor fullName: string;
|
|
20
|
+
accessor fullName: string | undefined;
|
|
21
21
|
/** Specifies an accessible label for the component. */
|
|
22
|
-
accessor label: string;
|
|
22
|
+
accessor label: string | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* When `true`, hides the `fullName` and `username` contents.
|
|
25
25
|
*
|
|
@@ -27,11 +27,11 @@ export abstract class NavigationUser extends LitElement {
|
|
|
27
27
|
*/
|
|
28
28
|
accessor textDisabled: boolean;
|
|
29
29
|
/** Specifies the `src` to an image (remember to add a token if the user is private). */
|
|
30
|
-
accessor thumbnail: string;
|
|
30
|
+
accessor thumbnail: string | undefined;
|
|
31
31
|
/** Specifies the unique id of the user. */
|
|
32
|
-
accessor userId: string;
|
|
32
|
+
accessor userId: string | undefined;
|
|
33
33
|
/** Specifies the username of the user. */
|
|
34
|
-
accessor username: string;
|
|
34
|
+
accessor username: string | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Sets focus on the component.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ export abstract class Notice extends LitElement {
|
|
|
41
41
|
*/
|
|
42
42
|
accessor closable: boolean;
|
|
43
43
|
/** When `true`, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon. */
|
|
44
|
-
accessor icon: IconName | boolean;
|
|
44
|
+
accessor icon: IconName | boolean | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
47
47
|
*
|
|
@@ -55,7 +55,7 @@ export abstract class Notice extends LitElement {
|
|
|
55
55
|
*/
|
|
56
56
|
accessor kind: Extract<"brand" | "danger" | "info" | "success" | "warning" | "neutral", Kind>;
|
|
57
57
|
/** Overrides individual strings used by the component. */
|
|
58
|
-
accessor messageOverrides: { close?: string; };
|
|
58
|
+
accessor messageOverrides: { close?: string | undefined; };
|
|
59
59
|
/**
|
|
60
60
|
* When `true`, the component is visible.
|
|
61
61
|
*
|
|
@@ -9,7 +9,7 @@ export abstract class Option extends LitElement {
|
|
|
9
9
|
*/
|
|
10
10
|
accessor disabled: boolean;
|
|
11
11
|
/** Specifies an accessible label for the component. */
|
|
12
|
-
accessor label: string;
|
|
12
|
+
accessor label: string | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* When `true`, the component is selected.
|
|
15
15
|
*
|
|
@@ -20,10 +20,10 @@ export abstract class Pagination extends LitElement {
|
|
|
20
20
|
accessor groupSeparator: boolean;
|
|
21
21
|
/** Overrides individual strings used by the component. */
|
|
22
22
|
accessor messageOverrides: {
|
|
23
|
-
next?: string;
|
|
24
|
-
previous?: string;
|
|
25
|
-
first?: string;
|
|
26
|
-
last?: string;
|
|
23
|
+
next?: string | undefined;
|
|
24
|
+
previous?: string | undefined;
|
|
25
|
+
first?: string | undefined;
|
|
26
|
+
last?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
29
29
|
accessor numberingSystem: NumberingSystem | undefined;
|
|
@@ -119,10 +119,10 @@ export abstract class Panel extends LitElement {
|
|
|
119
119
|
accessor menuPlacement: LogicalPlacement;
|
|
120
120
|
/** Overrides individual strings used by the component. */
|
|
121
121
|
accessor messageOverrides: {
|
|
122
|
-
close?: string;
|
|
123
|
-
options?: string;
|
|
124
|
-
collapse?: string;
|
|
125
|
-
expand?: string;
|
|
122
|
+
close?: string | undefined;
|
|
123
|
+
options?: string | undefined;
|
|
124
|
+
collapse?: string | undefined;
|
|
125
|
+
expand?: string | undefined;
|
|
126
126
|
};
|
|
127
127
|
/**
|
|
128
128
|
* Specifies the type of positioning to use for overlaid content, where:
|
|
@@ -61,7 +61,7 @@ export abstract class Popover extends LitElement {
|
|
|
61
61
|
*/
|
|
62
62
|
accessor label: string;
|
|
63
63
|
/** Overrides individual strings used by the component. */
|
|
64
|
-
accessor messageOverrides: { close?: string; };
|
|
64
|
+
accessor messageOverrides: { close?: string | undefined; };
|
|
65
65
|
/** Specifies the distance to position the component away from the `referenceElement`. */
|
|
66
66
|
accessor offsetDistance: number;
|
|
67
67
|
/**
|
|
@@ -26,7 +26,7 @@ export abstract class RadioButtonGroup extends LitElement {
|
|
|
26
26
|
*/
|
|
27
27
|
accessor layout: Extract<"horizontal" | "vertical", Layout>;
|
|
28
28
|
/** Overrides individual strings used by the component. */
|
|
29
|
-
accessor messageOverrides: { required?: string; };
|
|
29
|
+
accessor messageOverrides: { required?: string | undefined; };
|
|
30
30
|
/**
|
|
31
31
|
* Specifies the name of the component. Required to pass the component's `value` on form submission.
|
|
32
32
|
*
|
|
@@ -30,9 +30,9 @@ export abstract class Rating extends LitElement {
|
|
|
30
30
|
accessor labelText: string | undefined;
|
|
31
31
|
/** Overrides individual strings used by the component. */
|
|
32
32
|
accessor messageOverrides: {
|
|
33
|
-
rating?: string;
|
|
34
|
-
required?: string;
|
|
35
|
-
stars?: string;
|
|
33
|
+
rating?: string | undefined;
|
|
34
|
+
required?: string | undefined;
|
|
35
|
+
stars?: string | undefined;
|
|
36
36
|
};
|
|
37
37
|
/** Specifies the name of the component. Required to pass the component's `value` on form submission. */
|
|
38
38
|
accessor name: string | undefined;
|
|
@@ -13,5 +13,5 @@ export abstract class Scrim extends LitElement {
|
|
|
13
13
|
*/
|
|
14
14
|
accessor loading: boolean;
|
|
15
15
|
/** Overrides individual strings used by the component. */
|
|
16
|
-
accessor messageOverrides: { loading?: string; };
|
|
16
|
+
accessor messageOverrides: { loading?: string | undefined; };
|
|
17
17
|
}
|
|
@@ -24,9 +24,9 @@ export abstract class SegmentedControl extends LitElement {
|
|
|
24
24
|
*/
|
|
25
25
|
accessor disabled: boolean;
|
|
26
26
|
/** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
|
|
27
|
-
accessor form: string;
|
|
27
|
+
accessor form: string | undefined;
|
|
28
28
|
/** Specifies the component's label text. */
|
|
29
|
-
accessor labelText: string;
|
|
29
|
+
accessor labelText: string | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* Defines the layout of the component.
|
|
32
32
|
*
|
|
@@ -34,9 +34,9 @@ export abstract class SegmentedControl extends LitElement {
|
|
|
34
34
|
*/
|
|
35
35
|
accessor layout: Extract<"horizontal" | "vertical", Layout>;
|
|
36
36
|
/** Overrides individual strings used by the component. */
|
|
37
|
-
accessor messageOverrides: { required?: string; };
|
|
37
|
+
accessor messageOverrides: { required?: string | undefined; };
|
|
38
38
|
/** Specifies the name of the component. Required to pass the component's `value` on form submission. */
|
|
39
|
-
accessor name: string;
|
|
39
|
+
accessor name: string | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* When `true` and the component resides in a form,
|
|
42
42
|
* the component must have a value in order for the form to submit.
|
|
@@ -59,9 +59,9 @@ export abstract class SegmentedControl extends LitElement {
|
|
|
59
59
|
*/
|
|
60
60
|
accessor status: Status;
|
|
61
61
|
/** Specifies the validation icon to display under the component. */
|
|
62
|
-
accessor validationIcon: IconName | boolean;
|
|
62
|
+
accessor validationIcon: IconName | boolean | undefined;
|
|
63
63
|
/** Specifies the validation message to display under the component. */
|
|
64
|
-
accessor validationMessage: string;
|
|
64
|
+
accessor validationMessage: string | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* The component's current validation state.
|
|
67
67
|
*
|
|
@@ -185,7 +185,7 @@ class SegmentedControl extends LitElement {
|
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
const { items } = this;
|
|
188
|
-
let match
|
|
188
|
+
let match;
|
|
189
189
|
items.forEach((item) => {
|
|
190
190
|
const matches = item === selected;
|
|
191
191
|
if (matches && !item.checked || !matches && item.checked) {
|
|
@@ -24,7 +24,7 @@ export abstract class Select extends LitElement {
|
|
|
24
24
|
*/
|
|
25
25
|
accessor disabled: boolean;
|
|
26
26
|
/** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
|
|
27
|
-
accessor form: string;
|
|
27
|
+
accessor form: string | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Specifies an accessible label for the component.
|
|
30
30
|
*
|
|
@@ -32,11 +32,11 @@ export abstract class Select extends LitElement {
|
|
|
32
32
|
*/
|
|
33
33
|
accessor label: string;
|
|
34
34
|
/** Specifies the component's label text. */
|
|
35
|
-
accessor labelText: string;
|
|
35
|
+
accessor labelText: string | undefined;
|
|
36
36
|
/** Overrides individual strings used by the component. */
|
|
37
|
-
accessor messageOverrides: { required?: string; };
|
|
37
|
+
accessor messageOverrides: { required?: string | undefined; };
|
|
38
38
|
/** Specifies the name of the component. Required to pass the component's `value` on form submission. */
|
|
39
|
-
accessor name: string;
|
|
39
|
+
accessor name: string | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* When `true` and the component resides in a form,
|
|
42
42
|
* the component must have a value in order for the form to submit.
|
|
@@ -59,9 +59,9 @@ export abstract class Select extends LitElement {
|
|
|
59
59
|
*/
|
|
60
60
|
accessor status: Status;
|
|
61
61
|
/** Specifies the validation icon to display under the component. */
|
|
62
|
-
accessor validationIcon: IconName | boolean;
|
|
62
|
+
accessor validationIcon: IconName | boolean | undefined;
|
|
63
63
|
/** Specifies the validation message to display under the component. */
|
|
64
|
-
accessor validationMessage: string;
|
|
64
|
+
accessor validationMessage: string | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* The component's current validation state.
|
|
67
67
|
*
|
|
@@ -23,7 +23,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
23
23
|
*/
|
|
24
24
|
export abstract class Sheet extends LitElement {
|
|
25
25
|
/** Passes a function to run before the component closes. */
|
|
26
|
-
accessor beforeClose: (el: Sheet) => Promise<void
|
|
26
|
+
accessor beforeClose: ((el: Sheet) => Promise<void>) | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Specifies the display mode - `"float"` separates content from main layout,
|
|
29
29
|
* and `"overlay"` displays on top of center content.
|
|
@@ -52,9 +52,9 @@ export abstract class Sheet extends LitElement {
|
|
|
52
52
|
* `"extraContainers"` specifies additional focusable elements external to the trap, such as 3rd-party components appending elements to the document body, and
|
|
53
53
|
* `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated. Return `false` to prevent focus return, or `undefined` to use the default behavior (returning focus to the element focused before activation).
|
|
54
54
|
*/
|
|
55
|
-
accessor focusTrapOptions: Partial<FocusTrapOptions
|
|
55
|
+
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
56
56
|
/** Specifies the component's height. */
|
|
57
|
-
accessor height: Height;
|
|
57
|
+
accessor height: Height | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* When `position` is `"block-start"` or `"block-end"`, specifies the component's height.
|
|
60
60
|
*
|
|
@@ -69,7 +69,7 @@ export abstract class Sheet extends LitElement {
|
|
|
69
69
|
*/
|
|
70
70
|
accessor label: string;
|
|
71
71
|
/** Overrides individual strings used by the component. */
|
|
72
|
-
accessor messageOverrides: { resizeEnabled?: string; };
|
|
72
|
+
accessor messageOverrides: { resizeEnabled?: string | undefined; };
|
|
73
73
|
/** @internal */
|
|
74
74
|
protected messages: Partial<{ resizeEnabled: string; }> & T9nMeta<{ resizeEnabled: string; }>;
|
|
75
75
|
/**
|
|
@@ -104,7 +104,7 @@ export abstract class Sheet extends LitElement {
|
|
|
104
104
|
*/
|
|
105
105
|
accessor topLayerDisabled: boolean;
|
|
106
106
|
/** Specifies the component's width. */
|
|
107
|
-
accessor width: Extract<Width, Scale
|
|
107
|
+
accessor width: Extract<Width, Scale> | undefined;
|
|
108
108
|
/**
|
|
109
109
|
* When `position` is `"inline-start"` or `"inline-end"`, specifies the component's width.
|
|
110
110
|
*
|
|
@@ -6,7 +6,7 @@ import { css, html } from "lit";
|
|
|
6
6
|
import { LitElement, createEvent, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
8
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
-
import {
|
|
9
|
+
import { g as getStylePixelValue } from "../../chunks/dom.js";
|
|
10
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
11
11
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
12
12
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
@@ -149,9 +149,6 @@ class Sheet extends LitElement {
|
|
|
149
149
|
if (changes.has("open") && (this.hasUpdated || this.open !== false) || changes.has("position") && (this.hasUpdated || this.position !== "inline-start") || changes.has("resizable") && (this.hasUpdated || this.resizable !== false) || changes.has("direction")) {
|
|
150
150
|
this.refreshResize();
|
|
151
151
|
}
|
|
152
|
-
if (this.contentRef.value) {
|
|
153
|
-
this.contentId = ensureId(this.contentRef.value);
|
|
154
|
-
}
|
|
155
152
|
}
|
|
156
153
|
disconnectedCallback() {
|
|
157
154
|
super.disconnectedCallback();
|
|
@@ -177,9 +174,6 @@ class Sheet extends LitElement {
|
|
|
177
174
|
const { position } = this;
|
|
178
175
|
return position === "block-start" || position === "block-end" ? ICONS.dragVertical : ICONS.dragHorizontal;
|
|
179
176
|
}
|
|
180
|
-
getContentRefDOMRect() {
|
|
181
|
-
return this.contentRef.value?.getBoundingClientRect();
|
|
182
|
-
}
|
|
183
177
|
handleKeyDown(event) {
|
|
184
178
|
const { key, defaultPrevented, shiftKey } = event;
|
|
185
179
|
const { contentRef, position, resizable, resizeValues: { maxBlockSize, maxInlineSize, minBlockSize, minInlineSize } } = this;
|
|
@@ -188,7 +182,7 @@ class Sheet extends LitElement {
|
|
|
188
182
|
if (!resizable || !contentRef.value || defaultPrevented || !keys.includes(key)) {
|
|
189
183
|
return;
|
|
190
184
|
}
|
|
191
|
-
const rect =
|
|
185
|
+
const rect = contentRef.value.getBoundingClientRect();
|
|
192
186
|
const invertRTL = this.direction === "rtl" ? -1 : 1;
|
|
193
187
|
const stepValue = shiftKey ? resizeShiftStep : resizeStep;
|
|
194
188
|
switch (key) {
|
|
@@ -261,6 +255,8 @@ class Sheet extends LitElement {
|
|
|
261
255
|
return;
|
|
262
256
|
}
|
|
263
257
|
const rtl = this.direction === "rtl";
|
|
258
|
+
const restrictSizeMin = this.resizeValues.minInlineSize === null || this.resizeValues.minBlockSize === null ? void 0 : { width: this.resizeValues.minInlineSize, height: this.resizeValues.minBlockSize };
|
|
259
|
+
const restrictSizeMax = this.resizeValues.maxInlineSize === null || this.resizeValues.maxBlockSize === null ? void 0 : { width: this.resizeValues.maxInlineSize, height: this.resizeValues.maxBlockSize };
|
|
264
260
|
this.interaction = interact(contentRef.value, { context: el.ownerDocument }).resizable({
|
|
265
261
|
edges: {
|
|
266
262
|
top: position === "block-end" ? resizeHandleEl : false,
|
|
@@ -268,18 +264,7 @@ class Sheet extends LitElement {
|
|
|
268
264
|
bottom: position === "block-start" ? resizeHandleEl : false,
|
|
269
265
|
left: position === (rtl ? "inline-start" : "inline-end") ? resizeHandleEl : false
|
|
270
266
|
},
|
|
271
|
-
modifiers: [
|
|
272
|
-
interact.modifiers.restrictSize({
|
|
273
|
-
min: {
|
|
274
|
-
width: this.resizeValues.minInlineSize,
|
|
275
|
-
height: this.resizeValues.minBlockSize
|
|
276
|
-
},
|
|
277
|
-
max: {
|
|
278
|
-
width: this.resizeValues.maxInlineSize,
|
|
279
|
-
height: this.resizeValues.maxBlockSize
|
|
280
|
-
}
|
|
281
|
-
})
|
|
282
|
-
],
|
|
267
|
+
modifiers: [interact.modifiers.restrictSize({ min: restrictSizeMin, max: restrictSizeMax })],
|
|
283
268
|
listeners: {
|
|
284
269
|
move: ({ rect }) => {
|
|
285
270
|
const isBlock = position === "block-start" || position === "block-end";
|
|
@@ -324,7 +309,7 @@ class Sheet extends LitElement {
|
|
|
324
309
|
const { resizable, position, resizeValues } = this;
|
|
325
310
|
const dir = this.direction;
|
|
326
311
|
const isBlockPosition = position === "block-start" || position === "block-end";
|
|
327
|
-
setAttribute(this.el, "aria-describedby",
|
|
312
|
+
setAttribute(this.el, "aria-describedby", IDS.sheetContent);
|
|
328
313
|
this.el.ariaLabel = this.label;
|
|
329
314
|
this.el.ariaModal = "true";
|
|
330
315
|
this.el.role = "dialog";
|
|
@@ -335,7 +320,7 @@ class Sheet extends LitElement {
|
|
|
335
320
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
336
321
|
[getDimensionClass("width", this.width, this.widthScale)]: !!(this.width || this.widthScale),
|
|
337
322
|
[getDimensionClass("height", this.height, this.heightScale)]: !!(this.height || this.heightScale)
|
|
338
|
-
})} .popover=${!this.embedded ? "manual" :
|
|
323
|
+
})} .popover=${!this.embedded ? "manual" : void 0} ${ref(this.transitionRef)}><calcite-scrim class=${safeClassMap(CSS.scrim)} @click=${this.handleOutsideClose}></calcite-scrim><div class=${safeClassMap(CSS.content)} id=${IDS.sheetContent} ${ref(this.contentRef)}><div class=${safeClassMap(CSS.contentContainer)}><slot></slot></div>${resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${isBlockPosition ? "vertical" : "horizontal"} .ariaValueMax=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.maxBlockSize, resizeValues.maxInlineSize)} .ariaValueMin=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.minBlockSize, resizeValues.minInlineSize)} .ariaValueNow=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.blockSize, resizeValues.inlineSize)} class=${safeClassMap(CSS.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${ref(this.setResizeHandleEl)}><div class=${safeClassMap(CSS.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`) : null}</div></div>`;
|
|
339
324
|
}
|
|
340
325
|
}
|
|
341
326
|
customElement("calcite-sheet", Sheet);
|
|
@@ -24,7 +24,6 @@ const SLOTS = {
|
|
|
24
24
|
footer: "footer",
|
|
25
25
|
alerts: "alerts",
|
|
26
26
|
sheets: "sheets",
|
|
27
|
-
modals: "modals",
|
|
28
27
|
dialogs: "dialogs"
|
|
29
28
|
};
|
|
30
29
|
class Shell extends LitElement {
|
|
@@ -34,7 +33,6 @@ class Shell extends LitElement {
|
|
|
34
33
|
this.hasDialogs = false;
|
|
35
34
|
this.hasFooter = false;
|
|
36
35
|
this.hasHeader = false;
|
|
37
|
-
this.hasModals = false;
|
|
38
36
|
this.hasOnlyPanelBottom = false;
|
|
39
37
|
this.hasPanelBottom = false;
|
|
40
38
|
this.hasPanelTop = false;
|
|
@@ -45,7 +43,7 @@ class Shell extends LitElement {
|
|
|
45
43
|
this.listen("calciteInternalShellPanelResizeEnd", this.handleCalciteInternalShellPanelResizeEnd);
|
|
46
44
|
}
|
|
47
45
|
static {
|
|
48
|
-
this.properties = { hasAlerts: [16, {}, { state: true }], hasDialogs: [16, {}, { state: true }], hasFooter: [16, {}, { state: true }], hasHeader: [16, {}, { state: true }],
|
|
46
|
+
this.properties = { hasAlerts: [16, {}, { state: true }], hasDialogs: [16, {}, { state: true }], hasFooter: [16, {}, { state: true }], hasHeader: [16, {}, { state: true }], hasOnlyPanelBottom: [16, {}, { state: true }], hasPanelBottom: [16, {}, { state: true }], hasPanelTop: [16, {}, { state: true }], hasSheets: [16, {}, { state: true }], panelIsResizing: [16, {}, { state: true }], contentBehind: [7, {}, { reflect: true, type: Boolean }] };
|
|
49
47
|
}
|
|
50
48
|
static {
|
|
51
49
|
this.styles = styles;
|
|
@@ -81,12 +79,6 @@ class Shell extends LitElement {
|
|
|
81
79
|
el.embedded = true;
|
|
82
80
|
});
|
|
83
81
|
}
|
|
84
|
-
handleModalsSlotChange(event) {
|
|
85
|
-
this.hasModals = !!slotChangeHasAssignedElement(event);
|
|
86
|
-
slotChangeGetAssignedElements(event)?.filter((el) => el?.matches("calcite-modal")).forEach((el) => {
|
|
87
|
-
el.embedded = true;
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
82
|
handlePanelTopChange(event) {
|
|
91
83
|
this.hasPanelTop = slotChangeHasAssignedElement(event);
|
|
92
84
|
slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel")).forEach((el) => {
|
|
@@ -131,9 +123,6 @@ class Shell extends LitElement {
|
|
|
131
123
|
renderSheets() {
|
|
132
124
|
return html`<div .hidden=${!this.hasSheets}>${keyed("sheets", html`<slot name=${SLOTS.sheets} @slotchange=${this.handleSheetsSlotChange}></slot>`)}</div>`;
|
|
133
125
|
}
|
|
134
|
-
renderModals() {
|
|
135
|
-
return html`<div .hidden=${!this.hasModals}>${keyed("modals", html`<slot name=${SLOTS.modals} @slotchange=${this.handleModalsSlotChange}></slot>`)}</div>`;
|
|
136
|
-
}
|
|
137
126
|
renderDialogs() {
|
|
138
127
|
return html`<div .hidden=${!this.hasDialogs}>${keyed("dialogs", html`<slot name=${SLOTS.dialogs} @slotchange=${this.handleDialogsSlotChange}></slot>`)}</div>`;
|
|
139
128
|
}
|
|
@@ -162,7 +151,7 @@ class Shell extends LitElement {
|
|
|
162
151
|
return html`<div class=${safeClassMap(CSS.main)}><slot name=${SLOTS.panelStart} @slotchange=${this.handlePanelStartChange}></slot>${this.renderContent()}<slot name=${SLOTS.panelEnd} @slotchange=${this.handlePanelEndChange}></slot></div>`;
|
|
163
152
|
}
|
|
164
153
|
renderPositionedSlots() {
|
|
165
|
-
return html`<div class=${safeClassMap(CSS.positionedSlotWrapper)}>${this.renderAlerts()}${this.
|
|
154
|
+
return html`<div class=${safeClassMap(CSS.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderDialogs()}${this.renderSheets()}</div>`;
|
|
166
155
|
}
|
|
167
156
|
render() {
|
|
168
157
|
return html`${this.renderHeader()}${this.renderMain()}${this.renderFooter()}${this.renderPositionedSlots()}`;
|