@esri/calcite-components 6.0.0-next.2 → 6.0.0-next.21
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/{MEWOQUB3.js → 223W6LE6.js} +1 -1
- package/dist/cdn/{KE3GJVSQ.js → 22NLVRMQ.js} +1 -1
- package/dist/cdn/{IHGUGSQZ.js → 2HKTQKIH.js} +1 -1
- package/dist/cdn/{KOVKQZ54.js → 2LTNE2J4.js} +1 -1
- package/dist/cdn/{MSTEJZOI.js → 2OD2MGWV.js} +1 -1
- package/dist/cdn/{S7LNFWY3.js → 3AFFJLVY.js} +1 -1
- package/dist/cdn/{W2W3CKTH.js → 3PSQ2R35.js} +1 -1
- package/dist/cdn/3VLS6XUS.js +2 -0
- package/dist/cdn/43QGZQHO.js +2 -0
- package/dist/cdn/{273FNCX2.js → 4F4R7KYO.js} +1 -1
- package/dist/cdn/4PMDXBZR.js +2 -0
- package/dist/cdn/4QDQG26I.js +2 -0
- package/dist/cdn/{JIIKBJJW.js → 5D2NEYZW.js} +1 -1
- package/dist/cdn/5VOEKVT2.js +2 -0
- package/dist/cdn/{M3FI5WF2.js → 6F7UYHW2.js} +1 -1
- package/dist/cdn/{XDGVGNRC.js → 6FZVJGKC.js} +1 -1
- package/dist/cdn/6JMUIF4F.js +2 -0
- package/dist/cdn/6MDH7C4R.js +2 -0
- package/dist/cdn/6MLPV6EV.js +2 -0
- package/dist/cdn/{WQKFWH55.js → 6OWCAUN5.js} +1 -1
- package/dist/cdn/{7YEZVXC4.js → 6RCNPDD6.js} +1 -1
- package/dist/cdn/6VJGGSVT.js +2 -0
- package/dist/cdn/75JI65U7.js +2 -0
- package/dist/cdn/7DJKJGW5.js +2 -0
- package/dist/cdn/7FL7AGSC.js +2 -0
- package/dist/cdn/{6KYJOPZY.js → 7SDW6CJN.js} +1 -1
- package/dist/cdn/7ST7F4C6.js +2 -0
- package/dist/cdn/{DPRLR4WC.js → 7XS2SBMV.js} +1 -1
- package/dist/cdn/{KCDRJSQ5.js → A3EJHPRO.js} +1 -1
- package/dist/cdn/AQIXRNUC.js +2 -0
- package/dist/cdn/{NBOTH5XL.js → ASXRP7XI.js} +1 -1
- package/dist/cdn/{KRVMZWGR.js → AU5A2EFG.js} +1 -1
- package/dist/cdn/{2DSTJBKW.js → B2ZZAOVP.js} +1 -1
- package/dist/cdn/{66U3YQAK.js → B3GZC5K2.js} +1 -1
- package/dist/cdn/{BWWSTZBC.js → B5PAE7GA.js} +1 -1
- package/dist/cdn/{72VQX4HV.js → B7DJSTXM.js} +1 -1
- package/dist/cdn/{NY4HO46K.js → BBSSYLOF.js} +1 -1
- package/dist/cdn/{NM4JGNN2.js → BCXJAK2Y.js} +1 -1
- package/dist/cdn/{U7YCVXZ3.js → BJAWDVEF.js} +1 -1
- package/dist/cdn/C3ZPJCLV.js +2 -0
- package/dist/cdn/{QQJAAD4D.js → C75XSIWC.js} +1 -1
- package/dist/cdn/CGISL4IE.js +4 -0
- package/dist/cdn/CMLT3S3M.js +2 -0
- package/dist/cdn/D2N5YVPZ.js +2 -0
- package/dist/cdn/{K4PBH6SD.js → DBN7UMVW.js} +1 -1
- package/dist/cdn/{UE76JFYY.js → DOIHMBBW.js} +1 -1
- package/dist/cdn/{737AN2CX.js → DQIUIZK3.js} +1 -1
- package/dist/cdn/{77QBHZFJ.js → E5ZW7EOD.js} +1 -1
- package/dist/cdn/{NAJMABPV.js → EQNCSPGY.js} +1 -1
- package/dist/cdn/EW44NU73.js +2 -0
- package/dist/cdn/EZGSGKNY.js +2 -0
- package/dist/cdn/{KAADRWY5.js → F3VMM64Y.js} +1 -1
- package/dist/cdn/F4YSIPQB.js +2 -0
- package/dist/cdn/{4XVKHJ2X.js → F5ITNV4F.js} +1 -1
- package/dist/cdn/{SODPWZHI.js → FHGPRD2I.js} +1 -1
- package/dist/cdn/{SXAW7MNS.js → FR6PIDS2.js} +1 -1
- package/dist/cdn/{B6T5RNLF.js → FUGQDG25.js} +1 -1
- package/dist/cdn/{ALDTCMFW.js → FZSYHFGG.js} +1 -1
- package/dist/cdn/G2LFTHKB.js +2 -0
- package/dist/cdn/{2M4ETWZU.js → G4SOANDF.js} +1 -1
- package/dist/cdn/{3CCUB4RN.js → GJ6QA72Q.js} +1 -1
- package/dist/cdn/GODDGRIM.js +2 -0
- package/dist/cdn/GPUDVETJ.js +2 -0
- package/dist/cdn/H2O6BNXL.js +2 -0
- package/dist/cdn/{G5CKYQMY.js → H7ROXLJZ.js} +1 -1
- package/dist/cdn/{LVU4SIXV.js → HASKZEWS.js} +1 -1
- package/dist/cdn/{XKHMRAUY.js → HBWRRDGG.js} +1 -1
- package/dist/cdn/{WMSWABKA.js → HC3X32YH.js} +1 -1
- package/dist/cdn/{ZDSVHHRM.js → HJHRSII7.js} +1 -1
- package/dist/cdn/{G7RVPH4C.js → HKXJXU7S.js} +1 -1
- package/dist/cdn/{NRDEJY44.js → HNNJVH5N.js} +1 -1
- package/dist/cdn/HSFPIQ3V.js +2 -0
- package/dist/cdn/HW4P4F3W.js +2 -0
- package/dist/cdn/I2CMQFSF.js +2 -0
- package/dist/cdn/ICZPODAW.js +2 -0
- package/dist/cdn/{HHUWPN3A.js → IHXI4OLW.js} +1 -1
- package/dist/cdn/{SIYPJMXG.js → IJEMAAHD.js} +1 -1
- package/dist/cdn/{T6FDJHAC.js → IKOX73E3.js} +1 -1
- package/dist/cdn/{2ZGOGJF6.js → IR2A2F5H.js} +1 -1
- package/dist/cdn/{WHGMG5VX.js → IXNMS7HW.js} +1 -1
- package/dist/cdn/{L52YMQCF.js → J2OH4U4P.js} +1 -1
- package/dist/cdn/JAARPQK6.js +2 -0
- package/dist/cdn/{XHNFLVLS.js → JFRCQM7E.js} +1 -1
- package/dist/cdn/{MKQQ4JY5.js → JHA7GYWD.js} +1 -1
- package/dist/cdn/{XPSSVDAR.js → JHKU2OVH.js} +1 -1
- package/dist/cdn/{WIHQLE5T.js → JHYK73LU.js} +1 -1
- package/dist/cdn/K477JM2I.js +2 -0
- package/dist/cdn/{YWJV2ZJH.js → K4N2EM4F.js} +1 -1
- package/dist/cdn/KKFGIVD6.js +2 -0
- package/dist/cdn/{FMBZL2MH.js → KKMSYRNB.js} +1 -1
- package/dist/cdn/{KHJVFQLY.js → KOQXT3EG.js} +1 -1
- package/dist/cdn/{CEXDJV3D.js → KULOWW3X.js} +1 -1
- package/dist/cdn/KZ6E3NTF.js +2 -0
- package/dist/cdn/L7FWJRGX.js +2 -0
- package/dist/cdn/{GXSJJCPQ.js → LDFXQ6WC.js} +1 -1
- package/dist/cdn/LHAL2DLD.js +2 -0
- package/dist/cdn/LIPIKH5W.js +2 -0
- package/dist/cdn/LN335X64.js +4 -0
- package/dist/cdn/LXTMJSEZ.js +2 -0
- package/dist/cdn/LZ2LNBCJ.js +2 -0
- package/dist/cdn/{4RK2IZYL.js → LZPLASEQ.js} +1 -1
- package/dist/cdn/{SKGY35V6.js → M2FNO345.js} +1 -1
- package/dist/cdn/{LPAMEVHT.js → MBBKKJ5T.js} +1 -1
- package/dist/cdn/MGROSAVF.js +2 -0
- package/dist/cdn/{NPSRHHXM.js → MQPN6RWU.js} +1 -1
- package/dist/cdn/{7IAXXX5I.js → MU2SEDNK.js} +1 -1
- package/dist/cdn/{5ZMT3SCL.js → N2LSFCQB.js} +1 -1
- package/dist/cdn/{YF7W5TNY.js → NO3H5PAJ.js} +1 -1
- package/dist/cdn/{GRW5KE52.js → NPJNPZL6.js} +1 -1
- package/dist/cdn/{V2KL5GNR.js → OD6OIPUQ.js} +1 -1
- package/dist/cdn/{LHJS25PA.js → ODU6JYNH.js} +1 -1
- package/dist/cdn/{XOFZSKJF.js → OKXA6BGH.js} +1 -1
- package/dist/cdn/OM67I5OV.js +2 -0
- package/dist/cdn/{2FAOL3TJ.js → ORIJJUN7.js} +1 -1
- package/dist/cdn/{CTFG7BKR.js → OS5XNQXP.js} +1 -1
- package/dist/cdn/OSPSMXCW.js +2 -0
- package/dist/cdn/OTPWDYWR.js +2 -0
- package/dist/cdn/OUGIMZJ3.js +2 -0
- package/dist/cdn/{TT36J74O.js → PPYGAB7T.js} +1 -1
- package/dist/cdn/PWBG4GRR.js +2 -0
- package/dist/cdn/{A4NOGVP7.js → QAGTFRK3.js} +1 -1
- package/dist/cdn/QEH5EF5E.js +2 -0
- package/dist/cdn/QKPAKLKF.js +2 -0
- package/dist/cdn/QMIMGMQN.js +2 -0
- package/dist/cdn/QRX37DPF.js +2 -0
- package/dist/cdn/R2VBTLA2.js +2 -0
- package/dist/cdn/RMLOWP7Y.js +2 -0
- package/dist/cdn/RQ6NCXDH.js +2 -0
- package/dist/cdn/{4SPWA3PB.js → SBISOJF7.js} +1 -1
- package/dist/cdn/SBUMSDIR.js +2 -0
- package/dist/cdn/{XWKUAYS3.js → SDU4R5MI.js} +1 -1
- package/dist/cdn/{O6FVXXVE.js → SFVWKI2W.js} +1 -1
- package/dist/cdn/SGTG3MOD.js +2 -0
- package/dist/cdn/SNF66L2P.js +2 -0
- package/dist/cdn/{YKOI3XVI.js → SRUYXOUG.js} +1 -1
- package/dist/cdn/{QKYO5KKT.js → TBUK6ANU.js} +1 -1
- package/dist/cdn/{QLYXW2TH.js → TFJWBIPL.js} +1 -1
- package/dist/cdn/{II4VOTYZ.js → TGZUPIPO.js} +1 -1
- package/dist/cdn/{AYRJ7NYC.js → TJGNWJF6.js} +1 -1
- package/dist/cdn/{AJUUWTFC.js → TYD3ZYJS.js} +1 -1
- package/dist/cdn/{DAT73NDQ.js → URNCCFR6.js} +1 -1
- package/dist/cdn/{YSW3EMMW.js → UTXN6YZB.js} +1 -1
- package/dist/cdn/V4A427UR.js +2 -0
- package/dist/cdn/V6ZD6HFR.js +2 -0
- package/dist/cdn/{CWBXU2F7.js → VIZJ6UPN.js} +1 -1
- package/dist/cdn/{KWWA7UIP.js → VKVBCBSQ.js} +1 -1
- package/dist/cdn/{N2LW56CP.js → VP2UDP6C.js} +1 -1
- package/dist/cdn/W2J4OI23.js +2 -0
- package/dist/cdn/{GGNXTSYK.js → W4CTQLKO.js} +1 -1
- package/dist/cdn/{CITN3SES.js → W6STXL5X.js} +1 -1
- package/dist/cdn/WIZBEODG.js +2 -0
- package/dist/cdn/WTNYMVTD.js +2 -0
- package/dist/cdn/WU43O4ZF.js +2 -0
- package/dist/cdn/XEDZEFWH.js +2 -0
- package/dist/cdn/XGLOX3EZ.js +20 -0
- package/dist/cdn/XI3D2ECF.js +2 -0
- package/dist/cdn/XI533FAA.js +2 -0
- package/dist/cdn/{ECJJHTCC.js → XIERF7M3.js} +1 -1
- package/dist/cdn/{UOBTIKWI.js → XTNNNHIS.js} +1 -1
- package/dist/cdn/{RUGBI54D.js → XY2NGASJ.js} +1 -1
- package/dist/cdn/XY34NDQR.js +2 -0
- package/dist/cdn/{NBJ5NTDK.js → Y5ASPAXE.js} +1 -1
- package/dist/cdn/YEUH5SYT.js +2 -0
- package/dist/cdn/YPASF5LY.js +2 -0
- package/dist/cdn/YSK6HDBM.js +2 -0
- package/dist/cdn/{D6ZKUE5D.js → YTGZHSPZ.js} +1 -1
- package/dist/cdn/{DYQWA4UX.js → Z2PB4F6G.js} +1 -1
- package/dist/cdn/ZCTSWGAB.js +2 -0
- package/dist/cdn/ZEM2IGDH.js +2 -0
- package/dist/cdn/ZILQK6FI.js +2 -0
- package/dist/cdn/{JXF6UBUW.js → ZK26QW47.js} +1 -1
- package/dist/cdn/{AULZNBSL.js → ZRPWJAOA.js} +1 -1
- package/dist/cdn/ZTNUSBAC.js +2 -0
- package/dist/cdn/ZWBJR6K4.js +2 -0
- package/dist/cdn/assets/icon/spaceBetweenHorizontal16.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/aria.js +5 -0
- package/dist/chunks/dom.js +6 -16
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources10.js +6 -56
- package/dist/chunks/resources11.js +21 -5
- package/dist/chunks/resources12.js +1 -1
- package/dist/chunks/resources13.js +1 -1
- package/dist/chunks/resources15.js +2 -3
- package/dist/chunks/resources17.js +1 -1
- package/dist/chunks/resources18.js +1 -1
- package/dist/chunks/resources2.js +18 -22
- package/dist/chunks/resources20.js +1 -1
- package/dist/chunks/resources21.js +1 -1
- package/dist/chunks/resources22.js +1 -1
- package/dist/chunks/resources23.js +1 -1
- package/dist/chunks/resources24.js +1 -1
- package/dist/chunks/resources25.js +1 -1
- package/dist/chunks/resources26.js +1 -1
- package/dist/chunks/resources27.js +1 -1
- package/dist/chunks/resources28.js +1 -1
- package/dist/chunks/resources29.js +1 -1
- package/dist/chunks/resources3.js +20 -18
- package/dist/chunks/resources30.js +1 -1
- package/dist/chunks/resources31.js +1 -1
- package/dist/chunks/resources32.js +1 -2
- package/dist/chunks/resources33.js +1 -1
- package/dist/chunks/resources34.js +1 -1
- package/dist/chunks/resources4.js +9 -19
- package/dist/chunks/resources5.js +19 -7
- package/dist/chunks/resources6.js +39 -13
- package/dist/chunks/resources7.js +20 -38
- package/dist/chunks/resources8.js +23 -21
- package/dist/chunks/resources9.js +52 -27
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/sortable.js +1 -1
- package/dist/chunks/useForm.js +1 -1
- package/dist/chunks/useSizeOverride.js +2 -2
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.js +1 -1
- package/dist/components/calcite-action/customElement.js +2 -2
- package/dist/components/calcite-action-bar/customElement.js +45 -14
- package/dist/components/calcite-action-group/customElement.js +3 -3
- package/dist/components/calcite-action-menu/customElement.js +3 -3
- package/dist/components/calcite-alert/customElement.js +2 -2
- package/dist/components/calcite-autocomplete/customElement.js +8 -8
- package/dist/components/calcite-autocomplete-item/customElement.js +2 -2
- package/dist/components/calcite-autocomplete-item-group/customElement.js +3 -3
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +0 -35
- package/dist/components/calcite-block/customElement.js +3 -32
- package/dist/components/calcite-block/index.js +1 -1
- package/dist/components/calcite-block-group/customElement.d.ts +0 -7
- package/dist/components/calcite-block-group/customElement.js +3 -4
- package/dist/components/calcite-button/customElement.d.ts +3 -1
- package/dist/components/calcite-button/customElement.js +4 -4
- package/dist/components/calcite-card/customElement.js +1 -1
- package/dist/components/calcite-card-group/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +3 -3
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +2 -2
- package/dist/components/calcite-dialog/customElement.d.ts +3 -1
- package/dist/components/calcite-dialog/customElement.js +6 -5
- package/dist/components/calcite-dropdown/customElement.d.ts +2 -4
- package/dist/components/calcite-dropdown/customElement.js +2 -2
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-filter/customElement.js +1 -1
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.js +1 -1
- package/dist/components/calcite-input-date-picker/customElement.js +1 -1
- package/dist/components/calcite-input-message/customElement.d.ts +1 -4
- package/dist/components/calcite-input-number/customElement.js +1 -1
- package/dist/components/calcite-input-text/customElement.js +1 -1
- package/dist/components/calcite-input-time-picker/customElement.js +2 -2
- package/dist/components/calcite-input-time-zone/customElement.js +1 -1
- package/dist/components/calcite-label/customElement.d.ts +1 -3
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.js +1 -1
- package/dist/components/calcite-list/customElement.d.ts +1 -8
- package/dist/components/calcite-list/customElement.js +1 -2
- package/dist/components/calcite-list/index.js +1 -1
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.js +2 -2
- package/dist/components/calcite-navigation/customElement.js +2 -2
- package/dist/components/calcite-navigation-logo/customElement.js +1 -1
- package/dist/components/calcite-navigation-user/customElement.js +1 -1
- package/dist/components/calcite-notice/customElement.d.ts +1 -3
- package/dist/components/calcite-notice/customElement.js +2 -2
- package/dist/components/calcite-pagination/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.js +3 -3
- package/dist/components/calcite-popover/customElement.d.ts +2 -4
- package/dist/components/calcite-popover/customElement.js +1 -1
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +7 -7
- package/dist/components/calcite-segmented-control/customElement.d.ts +0 -2
- package/dist/components/calcite-segmented-control/customElement.js +1 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +1 -3
- package/dist/components/calcite-select/customElement.js +2 -2
- package/dist/components/calcite-shell/customElement.js +4 -2
- package/dist/components/calcite-shell-panel/customElement.d.ts +5 -6
- package/dist/components/calcite-shell-panel/customElement.js +9 -1
- package/dist/components/calcite-shell-panel/types.d.ts +1 -1
- package/dist/components/calcite-slider/customElement.js +2 -2
- package/dist/components/calcite-split-button/customElement.d.ts +1 -3
- package/dist/components/calcite-split-button/customElement.js +1 -1
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- package/dist/components/calcite-swatch/customElement.js +1 -1
- package/dist/components/calcite-switch/customElement.js +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-text/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.js +1 -1
- package/dist/components/calcite-tile/customElement.js +1 -4
- package/dist/components/calcite-tile-group/customElement.d.ts +1 -2
- package/dist/components/calcite-tooltip/customElement.d.ts +2 -4
- package/dist/components/calcite-tooltip/customElement.js +2 -3
- package/dist/components/calcite-tree-item/customElement.js +2 -2
- 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 +0 -44
- package/dist/loader.js +2 -7
- package/dist/types/lumina.d.ts +2 -41
- package/dist/types/preact.d.ts +2 -46
- package/dist/types/react.d.ts +2 -51
- package/dist/types/stencil.d.ts +2 -41
- package/package.json +17 -17
- package/dist/cdn/2VTY5LQ6.js +0 -2
- package/dist/cdn/337IVZQ5.js +0 -2
- package/dist/cdn/3CTVLEWD.js +0 -2
- package/dist/cdn/3IUKHKSX.js +0 -20
- package/dist/cdn/3U524SQH.js +0 -2
- package/dist/cdn/3WA7E4ZU.js +0 -2
- package/dist/cdn/4DQBCTK5.js +0 -2
- package/dist/cdn/663G76DR.js +0 -2
- package/dist/cdn/6E3UFQ5L.js +0 -2
- package/dist/cdn/6M2GRSL6.js +0 -2
- package/dist/cdn/6NZ4M3JI.js +0 -2
- package/dist/cdn/6ZEJRYDB.js +0 -2
- package/dist/cdn/7NQLZR6U.js +0 -2
- package/dist/cdn/A5OQTYIZ.js +0 -2
- package/dist/cdn/A6ZG6CH4.js +0 -2
- package/dist/cdn/B3OV6FHO.js +0 -2
- package/dist/cdn/C7HSJAUY.js +0 -2
- package/dist/cdn/CQYIOPJS.js +0 -2
- package/dist/cdn/CS2JG65P.js +0 -2
- package/dist/cdn/D256R6DP.js +0 -2
- package/dist/cdn/D2SW4SVQ.js +0 -2
- package/dist/cdn/DP6CN6HN.js +0 -2
- package/dist/cdn/E5NJW2ZG.js +0 -2
- package/dist/cdn/EHVRGGHS.js +0 -2
- package/dist/cdn/EIEKGCTH.js +0 -2
- package/dist/cdn/EKMBB3NE.js +0 -2
- package/dist/cdn/F5J2JR3T.js +0 -2
- package/dist/cdn/FPXP76XS.js +0 -2
- package/dist/cdn/GAAKV2C3.js +0 -2
- package/dist/cdn/GJRL6GXH.js +0 -2
- package/dist/cdn/GYQADZBQ.js +0 -2
- package/dist/cdn/HQOZ7PVD.js +0 -2
- package/dist/cdn/HRQCTYB2.js +0 -2
- package/dist/cdn/IZ5CUQJA.js +0 -2
- package/dist/cdn/J7SLQZST.js +0 -2
- package/dist/cdn/JI5RWOTK.js +0 -2
- package/dist/cdn/JUUVUH5Y.js +0 -2
- package/dist/cdn/JYQEVQED.js +0 -2
- package/dist/cdn/KA3HIFHL.js +0 -2
- package/dist/cdn/MBPSINVB.js +0 -2
- package/dist/cdn/MVZRXC34.js +0 -2
- package/dist/cdn/N2LRLEKB.js +0 -2
- package/dist/cdn/NPLTKVWC.js +0 -2
- package/dist/cdn/NSIM6YJP.js +0 -2
- package/dist/cdn/OF7EDP7Y.js +0 -2
- package/dist/cdn/OMRGS6YG.js +0 -2
- package/dist/cdn/ONL7KCBI.js +0 -2
- package/dist/cdn/Q26NSEOR.js +0 -2
- package/dist/cdn/Q4PGLETQ.js +0 -2
- package/dist/cdn/QEXI4SMX.js +0 -2
- package/dist/cdn/QGQY72AI.js +0 -2
- package/dist/cdn/R4JCPBLC.js +0 -2
- package/dist/cdn/R6WKGKSU.js +0 -2
- package/dist/cdn/RDQF6AQS.js +0 -2
- package/dist/cdn/RT5ZS4VX.js +0 -2
- package/dist/cdn/SL3MH5OT.js +0 -2
- package/dist/cdn/THWEI3K2.js +0 -2
- package/dist/cdn/TOTGM2SP.js +0 -2
- package/dist/cdn/TRRY5LN7.js +0 -2
- package/dist/cdn/TWU5BV7Z.js +0 -2
- package/dist/cdn/UAICETTE.js +0 -2
- package/dist/cdn/UDLWRVR4.js +0 -4
- package/dist/cdn/UGD4VOGZ.js +0 -2
- package/dist/cdn/VBMZS3ZU.js +0 -2
- package/dist/cdn/VL7QTJSE.js +0 -2
- package/dist/cdn/VXTRPJJ4.js +0 -2
- package/dist/cdn/W32WN6PV.js +0 -2
- package/dist/cdn/WCO6AFY3.js +0 -2
- package/dist/cdn/WN6KY7GO.js +0 -2
- package/dist/cdn/WZEY6HY6.js +0 -2
- package/dist/cdn/X2TR4NTP.js +0 -2
- package/dist/cdn/XG62B2V7.js +0 -2
- package/dist/cdn/XODDJIYV.js +0 -2
- package/dist/cdn/XVEFLGJR.js +0 -2
- package/dist/cdn/Y5VG6YLH.js +0 -4
- package/dist/cdn/YBX7RUMR.js +0 -2
- package/dist/cdn/YKOLRZEJ.js +0 -2
- package/dist/cdn/YTDEBSOG.js +0 -2
- package/dist/cdn/YV4JKSOA.js +0 -2
- package/dist/cdn/ZS5MSUS7.js +0 -2
- package/dist/cdn/assets/action-pad/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-TW.json +0 -1
- package/dist/chunks/ExpandToggle.js +0 -48
- package/dist/components/calcite-action-pad/customElement.d.ts +0 -96
- package/dist/components/calcite-action-pad/customElement.js +0 -185
- package/dist/components/calcite-action-pad/index.d.ts +0 -1
- package/dist/components/calcite-action-pad/index.js +0 -3
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +0 -25
- package/dist/components/calcite-color-picker-swatch/customElement.js +0 -104
- package/dist/components/calcite-color-picker-swatch/index.d.ts +0 -1
- package/dist/components/calcite-color-picker-swatch/index.js +0 -1
- package/dist/components/calcite-focus-trap/customElement.d.ts +0 -53
- package/dist/components/calcite-focus-trap/customElement.js +0 -61
- package/dist/components/calcite-focus-trap/index.d.ts +0 -1
- package/dist/components/calcite-focus-trap/index.js +0 -1
- package/dist/components/calcite-handle/customElement.d.ts +0 -66
- package/dist/components/calcite-handle/customElement.js +0 -128
- package/dist/components/calcite-handle/index.d.ts +0 -1
- package/dist/components/calcite-handle/index.js +0 -2
- package/dist/components/calcite-handle/types.d.ts +0 -3
- package/dist/components/calcite-sortable-list/customElement.d.ts +0 -52
- package/dist/components/calcite-sortable-list/customElement.js +0 -133
- package/dist/components/calcite-sortable-list/index.d.ts +0 -1
- package/dist/components/calcite-sortable-list/index.js +0 -1
- /package/dist/cdn/{ZZDNIBT7.js → 2IM7ZZ7U.js} +0 -0
- /package/dist/cdn/{NYT7VOUO.js → TIIRIEHJ.js} +0 -0
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
|
-
import { keyed } from "lit/directives/keyed.js";
|
|
4
|
-
import Color from "color";
|
|
5
|
-
import { css, html, nothing, svg } from "lit";
|
|
6
|
-
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
7
|
-
import { y as getModeName } from "../../chunks/dom.js";
|
|
8
|
-
import { h as hexify } from "../../chunks/utils3.js";
|
|
9
|
-
const CSS = {
|
|
10
|
-
swatch: "swatch",
|
|
11
|
-
noColorSwatch: "swatch--no-color",
|
|
12
|
-
checker: "checker"
|
|
13
|
-
};
|
|
14
|
-
const COLORS = {
|
|
15
|
-
borderLight: "rgba(0, 0, 0, 0.3)",
|
|
16
|
-
borderDark: "rgba(255, 255, 255, 0.15)"
|
|
17
|
-
};
|
|
18
|
-
const checkerSquareSize = 4;
|
|
19
|
-
const CHECKER_DIMENSIONS = {
|
|
20
|
-
squareSize: checkerSquareSize,
|
|
21
|
-
size: checkerSquareSize * 2
|
|
22
|
-
};
|
|
23
|
-
const IDS = {
|
|
24
|
-
checker: "checker",
|
|
25
|
-
shape: "shape"
|
|
26
|
-
};
|
|
27
|
-
const styles = css`:host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1)}.swatch--no-color rect{fill:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1))}.swatch--no-color line{stroke:var(--calcite-color-status-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
28
|
-
class ColorPickerSwatch extends LitElement {
|
|
29
|
-
constructor() {
|
|
30
|
-
super(...arguments);
|
|
31
|
-
this.active = false;
|
|
32
|
-
this.scale = "m";
|
|
33
|
-
}
|
|
34
|
-
static {
|
|
35
|
-
this.properties = { active: [7, {}, { reflect: true, type: Boolean }], color: 1, scale: [3, {}, { reflect: true }] };
|
|
36
|
-
}
|
|
37
|
-
static {
|
|
38
|
-
this.styles = styles;
|
|
39
|
-
}
|
|
40
|
-
load() {
|
|
41
|
-
this.handleColorChange(this.color);
|
|
42
|
-
}
|
|
43
|
-
willUpdate(changes) {
|
|
44
|
-
if (changes.has("color")) {
|
|
45
|
-
this.handleColorChange(this.color);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
handleColorChange(color) {
|
|
49
|
-
this.internalColor = color ? Color(color) : void 0;
|
|
50
|
-
}
|
|
51
|
-
render() {
|
|
52
|
-
const isEmpty = !this.internalColor;
|
|
53
|
-
const classes = {
|
|
54
|
-
[CSS.swatch]: true,
|
|
55
|
-
[CSS.noColorSwatch]: isEmpty
|
|
56
|
-
};
|
|
57
|
-
return html`<svg class=${safeClassMap(classes)} xmlns=http://www.w3.org/2000/svg>${this.renderSwatch()}</svg>`;
|
|
58
|
-
}
|
|
59
|
-
renderSwatch() {
|
|
60
|
-
const { active, el, internalColor } = this;
|
|
61
|
-
const borderRadius = active ? "100%" : "0";
|
|
62
|
-
const theme = getModeName(el);
|
|
63
|
-
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
64
|
-
const isEmpty = !internalColor;
|
|
65
|
-
const commonSwatchProps = {
|
|
66
|
-
height: "100%",
|
|
67
|
-
rx: borderRadius,
|
|
68
|
-
stroke: borderColor,
|
|
69
|
-
strokeWidth: "2",
|
|
70
|
-
width: "100%"
|
|
71
|
-
};
|
|
72
|
-
if (isEmpty) {
|
|
73
|
-
return svg`<clipPath id=${IDS.shape}><rect height=100% rx=${borderRadius ?? nothing} width=100% /></clipPath>${this.renderSwatchRect({
|
|
74
|
-
clipPath: `inset(0 round ${borderRadius})`,
|
|
75
|
-
...commonSwatchProps
|
|
76
|
-
})}<line clip-path=url(#shape) stroke-width=3 x1=100% x2=0 y1=0 y2=100% />`;
|
|
77
|
-
}
|
|
78
|
-
const alpha = internalColor.alpha();
|
|
79
|
-
const hex = hexify(internalColor);
|
|
80
|
-
const hexa = hexify(internalColor, alpha < 1);
|
|
81
|
-
return svg`<title>${hexa}</title><defs><pattern height=${CHECKER_DIMENSIONS.size} id=${IDS.checker} patternUnits=userSpaceOnUse width=${CHECKER_DIMENSIONS.size} x=0 y=0><rect class=${safeClassMap(CSS.checker)} height=${CHECKER_DIMENSIONS.squareSize} width=${CHECKER_DIMENSIONS.squareSize} x=0 y=0 /><rect class=${safeClassMap(CSS.checker)} height=${CHECKER_DIMENSIONS.squareSize} width=${CHECKER_DIMENSIONS.squareSize} x=${CHECKER_DIMENSIONS.squareSize} y=${CHECKER_DIMENSIONS.squareSize} /></pattern></defs>${this.renderSwatchRect({
|
|
82
|
-
fill: "url(#checker)",
|
|
83
|
-
rx: commonSwatchProps.rx,
|
|
84
|
-
height: commonSwatchProps.height,
|
|
85
|
-
width: commonSwatchProps.width
|
|
86
|
-
})}${this.renderSwatchRect({
|
|
87
|
-
clipPath: alpha < 1 ? "polygon(100% 0, 0 0, 0 100%)" : `inset(0 round ${borderRadius})`,
|
|
88
|
-
fill: hex,
|
|
89
|
-
...commonSwatchProps
|
|
90
|
-
})}${alpha < 1 ? this.renderSwatchRect({
|
|
91
|
-
clipPath: "polygon(100% 0, 100% 100%, 0 100%)",
|
|
92
|
-
fill: hexa,
|
|
93
|
-
key: "opacity-fill",
|
|
94
|
-
...commonSwatchProps
|
|
95
|
-
}) : null}`;
|
|
96
|
-
}
|
|
97
|
-
renderSwatchRect({ clipPath, fill, height, key, rx, stroke, strokeWidth, width }) {
|
|
98
|
-
return keyed(key, svg`<rect clip-path=${clipPath ?? nothing} fill=${fill ?? nothing} height=${height ?? nothing} rx=${rx ?? nothing} stroke=${stroke ?? nothing} stroke-width=${strokeWidth ?? nothing} width=${width ?? nothing} />`);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
customElement("calcite-color-picker-swatch", ColorPickerSwatch);
|
|
102
|
-
export {
|
|
103
|
-
ColorPickerSwatch
|
|
104
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1,53 +0,0 @@
|
|
|
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.
|
|
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.
|
|
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
|
-
* Sets focus on the component's first focusable element.
|
|
37
|
-
*
|
|
38
|
-
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
39
|
-
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
40
|
-
*/
|
|
41
|
-
setFocus(options?: FocusOptions): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Updates the element(s) that are included in the focus-trap of the component.
|
|
44
|
-
*
|
|
45
|
-
* @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.
|
|
46
|
-
*/
|
|
47
|
-
updateFocusTrapElements(extraContainers?: FocusTrapOptions["extraContainers"]): Promise<void>;
|
|
48
|
-
/** Fires when the focus-trap active state has changed. */
|
|
49
|
-
readonly calciteFocusTrapActiveChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
50
|
-
readonly "@eventTypes": {
|
|
51
|
-
calciteFocusTrapActiveChange: FocusTrap["calciteFocusTrapActiveChange"]["detail"];
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/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
|
-
import { u as useFocusable } from "../../chunks/useFocusable.js";
|
|
7
|
-
const styles = css`:host{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
8
|
-
class FocusTrap extends LitElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this._active = false;
|
|
12
|
-
this.focusSetter = useFocusable()(this);
|
|
13
|
-
this.focusTrapController = useFocusTrap({
|
|
14
|
-
focusTrapOptions: {
|
|
15
|
-
onActivate: () => {
|
|
16
|
-
this.setActive(true);
|
|
17
|
-
},
|
|
18
|
-
onDeactivate: () => {
|
|
19
|
-
this.setActive(false);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
})(this);
|
|
23
|
-
this.focusTrapDisabled = false;
|
|
24
|
-
this.calciteFocusTrapActiveChange = createEvent({ cancelable: false });
|
|
25
|
-
}
|
|
26
|
-
static {
|
|
27
|
-
this.properties = { focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], active: [32, {}, { attribute: false, readOnly: true }], focusTrapDisabledOverride: [0, {}, { attribute: false }], focusTrapOptions: [0, {}, { attribute: false }] };
|
|
28
|
-
}
|
|
29
|
-
static {
|
|
30
|
-
this.styles = styles;
|
|
31
|
-
}
|
|
32
|
-
get active() {
|
|
33
|
-
return this._active;
|
|
34
|
-
}
|
|
35
|
-
async activate() {
|
|
36
|
-
this.focusTrapController.activate();
|
|
37
|
-
}
|
|
38
|
-
async deactivate() {
|
|
39
|
-
this.focusTrapController.deactivate();
|
|
40
|
-
}
|
|
41
|
-
async setFocus(options) {
|
|
42
|
-
return this.focusSetter(() => this.el, options);
|
|
43
|
-
}
|
|
44
|
-
async updateFocusTrapElements(extraContainers) {
|
|
45
|
-
this.focusTrapController.setExtraContainers(extraContainers);
|
|
46
|
-
this.focusTrapController.updateContainerElements();
|
|
47
|
-
}
|
|
48
|
-
setActive(active) {
|
|
49
|
-
const oldActive = this._active;
|
|
50
|
-
this._active = active;
|
|
51
|
-
this.requestUpdate("active", oldActive);
|
|
52
|
-
this.calciteFocusTrapActiveChange.emit();
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
return html`<slot></slot>`;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
customElement("calcite-focus-trap", FocusTrap);
|
|
59
|
-
export {
|
|
60
|
-
FocusTrap
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { HandleNudge } from "./types.js";
|
|
4
|
-
|
|
5
|
-
declare module "@arcgis/lumina" {
|
|
6
|
-
export interface DeclareCssProperties {
|
|
7
|
-
/** Specifies the component's background color. */
|
|
8
|
-
"--calcite-handle-background-color": "*";
|
|
9
|
-
/** Specifies the component's background color on hover. */
|
|
10
|
-
"--calcite-handle-background-color-hover": "*";
|
|
11
|
-
/** Specifies the component's background color when selected. */
|
|
12
|
-
"--calcite-handle-background-color-selected": "*";
|
|
13
|
-
/** Specifies the component's icon color. */
|
|
14
|
-
"--calcite-handle-icon-color": "*";
|
|
15
|
-
/** Specifies the component's icon color on hover. */
|
|
16
|
-
"--calcite-handle-icon-color-hover": "*";
|
|
17
|
-
/** Specifies the component's icon color when selected. */
|
|
18
|
-
"--calcite-handle-icon-color-selected": "*";
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** @deprecated in v3.0.0, removal target v6.0.0. Use the `calcite-sort-handle` component instead. */
|
|
23
|
-
export abstract class Handle extends LitElement {
|
|
24
|
-
/**
|
|
25
|
-
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
26
|
-
*
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
accessor disabled: boolean;
|
|
30
|
-
/** Value for the button title attribute. */
|
|
31
|
-
accessor dragHandle: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Replace localized message strings with your own strings.
|
|
34
|
-
*
|
|
35
|
-
* _**Note**: Individual message keys may change between releases._
|
|
36
|
-
*/
|
|
37
|
-
accessor messageOverrides: {
|
|
38
|
-
dragHandle?: string | undefined;
|
|
39
|
-
dragHandleUntitled?: string | undefined;
|
|
40
|
-
dragHandleActive?: string | undefined;
|
|
41
|
-
dragHandleChange?: string | undefined;
|
|
42
|
-
dragHandleCommit?: string | undefined;
|
|
43
|
-
dragHandleIdle?: string | undefined;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* When `true`, the component is selected.
|
|
47
|
-
*
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
accessor selected: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Sets focus on the component.
|
|
53
|
-
*
|
|
54
|
-
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
55
|
-
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
56
|
-
*/
|
|
57
|
-
setFocus(options?: FocusOptions): Promise<void>;
|
|
58
|
-
/** Fires whenever the component is selected or unselected. */
|
|
59
|
-
readonly calciteHandleChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
60
|
-
/** Fires when the handle is selected and the up or down arrow key is pressed. */
|
|
61
|
-
readonly calciteHandleNudge: import("@arcgis/lumina").TargetedEvent<this, HandleNudge>;
|
|
62
|
-
readonly "@eventTypes": {
|
|
63
|
-
calciteHandleChange: Handle["calciteHandleChange"]["detail"];
|
|
64
|
-
calciteHandleNudge: Handle["calciteHandleNudge"]["detail"];
|
|
65
|
-
};
|
|
66
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { l as logger, c as customElement } from "../../chunks/runtime.js";
|
|
3
|
-
import { css, nothing, html } from "lit";
|
|
4
|
-
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
|
-
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
7
|
-
import { u as useFocusable } from "../../chunks/useFocusable.js";
|
|
8
|
-
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
|
-
const CSS = {
|
|
10
|
-
handle: "handle",
|
|
11
|
-
handleSelected: "handle--selected"
|
|
12
|
-
};
|
|
13
|
-
const ICONS = {
|
|
14
|
-
drag: "drag"
|
|
15
|
-
};
|
|
16
|
-
const SUBSTITUTIONS = {
|
|
17
|
-
itemLabel: "{itemLabel}",
|
|
18
|
-
position: "{position}",
|
|
19
|
-
total: "{total}"
|
|
20
|
-
};
|
|
21
|
-
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}.handle{display:flex;align-items:center;justify-content:center;align-self:stretch;border-style:none;outline-color:transparent;color:var(--calcite-handle-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-handle-background-color, transparent);padding-block:.75rem;padding-inline:.25rem;line-height:0}.handle calcite-icon{color:inherit}:host(:not([disabled])) .handle{cursor:move}:host(:not([disabled])) .handle:hover{color:var(--calcite-handle-icon-color-hover, var(--calcite-color-text-1));background-color:var(--calcite-handle-background-color-hover, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)))}:host(:not([disabled])) .handle:focus{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))));color:var(--calcite-handle-icon-color-hover, var(--calcite-color-text-1))}:host(:not([disabled])) .handle--selected{color:var(--calcite-handle-icon-color-selected, var(--calcite-color-text-1));background-color:var(--calcite-handle-background-color-selected, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
22
|
-
class Handle extends LitElement {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.handleButtonRef = createRef();
|
|
26
|
-
this.messages = useT9n({ blocking: true });
|
|
27
|
-
this.focusSetter = useFocusable()(this);
|
|
28
|
-
this.interactiveContainer = useInteractive(this);
|
|
29
|
-
this.blurUnselectDisabled = false;
|
|
30
|
-
this.disabled = false;
|
|
31
|
-
this.selected = false;
|
|
32
|
-
this.calciteHandleChange = createEvent({ cancelable: false });
|
|
33
|
-
this.calciteHandleNudge = createEvent({ cancelable: false });
|
|
34
|
-
this.calciteInternalAssistiveTextChange = createEvent({ cancelable: false });
|
|
35
|
-
}
|
|
36
|
-
static {
|
|
37
|
-
this.properties = { blurUnselectDisabled: [5, {}, { type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], dragHandle: [3, {}, { reflect: true }], label: 1, messageOverrides: [0, {}, { attribute: false }], selected: [7, {}, { reflect: true, type: Boolean }], setPosition: [9, {}, { type: Number }], setSize: [9, {}, { type: Number }] };
|
|
38
|
-
}
|
|
39
|
-
static {
|
|
40
|
-
this.styles = styles;
|
|
41
|
-
}
|
|
42
|
-
async setFocus(options) {
|
|
43
|
-
return this.focusSetter(() => this.handleButtonRef.value, options);
|
|
44
|
-
}
|
|
45
|
-
willUpdate(changes) {
|
|
46
|
-
if (changes.has("messages") || changes.has("label") || changes.has("selected") && (this.hasUpdated || this.selected !== false) || changes.has("setPosition") || changes.has("setSize")) {
|
|
47
|
-
this.handleAriaTextChange();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
loaded() {
|
|
51
|
-
logger.deprecated("component", {
|
|
52
|
-
component: this,
|
|
53
|
-
name: "handle",
|
|
54
|
-
removalVersion: 5,
|
|
55
|
-
suggested: "sort-handle"
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
handleAriaTextChange() {
|
|
59
|
-
const message = this.getAriaText("live");
|
|
60
|
-
if (message) {
|
|
61
|
-
this.calciteInternalAssistiveTextChange.emit({
|
|
62
|
-
message
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
getTooltip() {
|
|
67
|
-
const { label, messages } = this;
|
|
68
|
-
if (!messages) {
|
|
69
|
-
return "";
|
|
70
|
-
}
|
|
71
|
-
if (!label) {
|
|
72
|
-
return messages.dragHandleUntitled;
|
|
73
|
-
}
|
|
74
|
-
return messages.dragHandle.replace(SUBSTITUTIONS.itemLabel, label);
|
|
75
|
-
}
|
|
76
|
-
getAriaText(type) {
|
|
77
|
-
const { setPosition, setSize, label, messages, selected } = this;
|
|
78
|
-
if (!messages || !label || typeof setSize !== "number" || typeof setPosition !== "number") {
|
|
79
|
-
return void 0;
|
|
80
|
-
}
|
|
81
|
-
const text = type === "label" ? selected ? messages.dragHandleChange : messages.dragHandleIdle : selected ? messages.dragHandleActive : messages.dragHandleCommit;
|
|
82
|
-
const replacePosition = text.replace(SUBSTITUTIONS.position, setPosition.toString());
|
|
83
|
-
const replaceLabel = replacePosition.replace(SUBSTITUTIONS.itemLabel, label);
|
|
84
|
-
return replaceLabel.replace(SUBSTITUTIONS.total, setSize.toString());
|
|
85
|
-
}
|
|
86
|
-
handleKeyDown(event) {
|
|
87
|
-
if (this.disabled) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
switch (event.key) {
|
|
91
|
-
case " ":
|
|
92
|
-
this.selected = !this.selected;
|
|
93
|
-
this.calciteHandleChange.emit();
|
|
94
|
-
event.preventDefault();
|
|
95
|
-
break;
|
|
96
|
-
case "ArrowUp":
|
|
97
|
-
if (!this.selected) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
event.preventDefault();
|
|
101
|
-
this.calciteHandleNudge.emit({ direction: "up" });
|
|
102
|
-
break;
|
|
103
|
-
case "ArrowDown":
|
|
104
|
-
if (!this.selected) {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
event.preventDefault();
|
|
108
|
-
this.calciteHandleNudge.emit({ direction: "down" });
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
handleBlur() {
|
|
113
|
-
if (this.blurUnselectDisabled || this.disabled) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (this.selected) {
|
|
117
|
-
this.selected = false;
|
|
118
|
-
this.calciteHandleChange.emit();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
render() {
|
|
122
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`<span .ariaChecked=${this.disabled ? void 0 : this.selected} .ariaDisabled=${this.disabled ? this.disabled : void 0} .ariaLabel=${this.disabled ? void 0 : this.getAriaText("label")} class=${safeClassMap({ [CSS.handle]: true, [CSS.handleSelected]: !this.disabled && this.selected })} @blur=${this.handleBlur} @keydown=${this.handleKeyDown} role=radio tabindex=${(this.disabled ? void 0 : 0) ?? nothing} title=${this.getTooltip() ?? nothing} ${ref(this.handleButtonRef)}><calcite-icon .icon=${ICONS.drag} scale=s></calcite-icon></span>` });
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
customElement("calcite-handle", Handle);
|
|
126
|
-
export {
|
|
127
|
-
Handle
|
|
128
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { Layout } from "../types.js";
|
|
4
|
-
import type { DragDetail } from "../../controllers/useSortable.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated in v3.0.0, removal target v6.0.0. Use the `calcite-block-group` component instead.
|
|
8
|
-
* @slot - A slot for adding sortable items.
|
|
9
|
-
*/
|
|
10
|
-
export abstract class SortableList extends LitElement {
|
|
11
|
-
/** When provided, the method will be called to determine whether the element can move from the list. */
|
|
12
|
-
accessor canPull: ((detail: DragDetail) => boolean) | undefined;
|
|
13
|
-
/** When provided, the method will be called to determine whether the element can be added from another list. */
|
|
14
|
-
accessor canPut: ((detail: DragDetail) => boolean) | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* When `true`, disabled prevents interaction. This state shows items with lower opacity/grayed.
|
|
17
|
-
*
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
accessor disabled: boolean;
|
|
21
|
-
/** Specifies which items inside the element should be draggable. */
|
|
22
|
-
accessor dragSelector: string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the list's group.
|
|
25
|
-
*
|
|
26
|
-
* To drag elements from one list into another, both lists must have the same group value.
|
|
27
|
-
*/
|
|
28
|
-
accessor group: string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the selector for the handle elements.
|
|
31
|
-
*
|
|
32
|
-
* @default "calcite-handle"
|
|
33
|
-
*/
|
|
34
|
-
accessor handleSelector: string;
|
|
35
|
-
/**
|
|
36
|
-
* Indicates the horizontal or vertical orientation of the component.
|
|
37
|
-
*
|
|
38
|
-
* @default "vertical"
|
|
39
|
-
*/
|
|
40
|
-
accessor layout: Extract<"horizontal" | "vertical" | "grid", Layout>;
|
|
41
|
-
/**
|
|
42
|
-
* When `true`, content is waiting to be loaded. This state shows a busy indicator.
|
|
43
|
-
*
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
accessor loading: boolean;
|
|
47
|
-
/** Fires when the order of the list changes. */
|
|
48
|
-
readonly calciteListOrderChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
49
|
-
readonly "@eventTypes": {
|
|
50
|
-
calciteListOrderChange: SortableList["calciteListOrderChange"]["detail"];
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { l as logger, c as customElement } from "../../chunks/runtime.js";
|
|
3
|
-
import { css, html } from "lit";
|
|
4
|
-
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import { c as createObserver } from "../../chunks/observers.js";
|
|
6
|
-
import { f as focusElement } from "../../chunks/dom.js";
|
|
7
|
-
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
8
|
-
import { u as useSortable } from "../../chunks/useSortable.js";
|
|
9
|
-
const CSS = {
|
|
10
|
-
container: "container",
|
|
11
|
-
containerHorizontal: "container--horizontal",
|
|
12
|
-
containerVertical: "container--vertical"
|
|
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}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{display:flex;flex:1 1 auto}.container--vertical{flex-direction:column}.container--horizontal{flex-direction:row}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
15
|
-
class SortableList extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super();
|
|
18
|
-
this.dragEnabled = true;
|
|
19
|
-
this.items = [];
|
|
20
|
-
this.mutationObserver = createObserver("mutation", () => {
|
|
21
|
-
this.setUpSorting();
|
|
22
|
-
});
|
|
23
|
-
this.sortable = useSortable()(this);
|
|
24
|
-
this.interactiveContainer = useInteractive(this);
|
|
25
|
-
this.disabled = false;
|
|
26
|
-
this.handleSelector = "calcite-handle";
|
|
27
|
-
this.layout = "vertical";
|
|
28
|
-
this.loading = false;
|
|
29
|
-
this.calciteListOrderChange = createEvent({ cancelable: false });
|
|
30
|
-
this.listen("calciteHandleNudge", this.calciteHandleNudgeNextHandler);
|
|
31
|
-
}
|
|
32
|
-
static {
|
|
33
|
-
this.properties = { canPull: [0, {}, { attribute: false }], canPut: [0, {}, { attribute: false }], disabled: [7, {}, { reflect: true, type: Boolean }], dragSelector: [3, {}, { reflect: true }], group: [3, {}, { reflect: true }], handleSelector: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], loading: [7, {}, { reflect: true, type: Boolean }] };
|
|
34
|
-
}
|
|
35
|
-
static {
|
|
36
|
-
this.styles = styles;
|
|
37
|
-
}
|
|
38
|
-
connectedCallback() {
|
|
39
|
-
super.connectedCallback();
|
|
40
|
-
this.setUpSorting();
|
|
41
|
-
this.beginObserving();
|
|
42
|
-
}
|
|
43
|
-
load() {
|
|
44
|
-
logger.deprecated("component", {
|
|
45
|
-
component: this,
|
|
46
|
-
name: "sortable-list",
|
|
47
|
-
removalVersion: 5,
|
|
48
|
-
suggested: "block-group"
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
disconnectedCallback() {
|
|
52
|
-
super.disconnectedCallback();
|
|
53
|
-
this.endObserving();
|
|
54
|
-
}
|
|
55
|
-
calciteHandleNudgeNextHandler(event) {
|
|
56
|
-
this.handleNudgeEvent(event);
|
|
57
|
-
}
|
|
58
|
-
onGlobalDragStart() {
|
|
59
|
-
this.endObserving();
|
|
60
|
-
}
|
|
61
|
-
onGlobalDragEnd() {
|
|
62
|
-
this.beginObserving();
|
|
63
|
-
}
|
|
64
|
-
onDragEnd() {
|
|
65
|
-
}
|
|
66
|
-
onDragStart() {
|
|
67
|
-
}
|
|
68
|
-
onDragSort() {
|
|
69
|
-
this.items = Array.from(this.el.children);
|
|
70
|
-
this.calciteListOrderChange.emit();
|
|
71
|
-
}
|
|
72
|
-
handleNudgeEvent(event) {
|
|
73
|
-
const { direction } = event.detail;
|
|
74
|
-
const handle = event.composedPath().find((el) => el.matches(this.handleSelector));
|
|
75
|
-
const sortItem = this.items.find((item) => {
|
|
76
|
-
return handle && item.contains(handle) || event.composedPath().includes(item);
|
|
77
|
-
});
|
|
78
|
-
const lastIndex = this.items.length - 1;
|
|
79
|
-
const startingIndex = sortItem ? this.items.indexOf(sortItem) : -1;
|
|
80
|
-
let appendInstead = false;
|
|
81
|
-
let buddyIndex;
|
|
82
|
-
if (direction === "up") {
|
|
83
|
-
if (startingIndex === 0) {
|
|
84
|
-
appendInstead = true;
|
|
85
|
-
} else {
|
|
86
|
-
buddyIndex = startingIndex - 1;
|
|
87
|
-
}
|
|
88
|
-
} else {
|
|
89
|
-
if (startingIndex === lastIndex) {
|
|
90
|
-
buddyIndex = 0;
|
|
91
|
-
} else if (startingIndex === lastIndex - 1) {
|
|
92
|
-
appendInstead = true;
|
|
93
|
-
} else {
|
|
94
|
-
buddyIndex = startingIndex + 2;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
this.endObserving();
|
|
98
|
-
if (appendInstead) {
|
|
99
|
-
sortItem.parentElement.appendChild(sortItem);
|
|
100
|
-
} else {
|
|
101
|
-
sortItem.parentElement.insertBefore(sortItem, this.items[buddyIndex]);
|
|
102
|
-
}
|
|
103
|
-
this.items = Array.from(this.el.children);
|
|
104
|
-
this.beginObserving();
|
|
105
|
-
requestAnimationFrame(() => focusElement(handle));
|
|
106
|
-
if (handle && "selected" in handle) {
|
|
107
|
-
handle.selected = true;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
setUpSorting() {
|
|
111
|
-
this.items = Array.from(this.el.children);
|
|
112
|
-
this.sortable.reset();
|
|
113
|
-
}
|
|
114
|
-
beginObserving() {
|
|
115
|
-
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
116
|
-
}
|
|
117
|
-
endObserving() {
|
|
118
|
-
this.mutationObserver?.disconnect();
|
|
119
|
-
}
|
|
120
|
-
render() {
|
|
121
|
-
const { disabled, layout } = this;
|
|
122
|
-
const horizontal = layout === "horizontal" || false;
|
|
123
|
-
return this.interactiveContainer({ disabled, children: html`<div class=${safeClassMap({
|
|
124
|
-
[CSS.container]: true,
|
|
125
|
-
[CSS.containerVertical]: !horizontal,
|
|
126
|
-
[CSS.containerHorizontal]: horizontal
|
|
127
|
-
})}><slot></slot></div>` });
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
customElement("calcite-sortable-list", SortableList);
|
|
131
|
-
export {
|
|
132
|
-
SortableList
|
|
133
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
File without changes
|
|
File without changes
|