@esri/calcite-components 5.1.1-next.6 → 5.1.2-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/{F7RQCNJ4.js → 22ZEEBHY.js} +1 -1
- package/dist/cdn/{YI3ZMHS5.js → 2E5VWP5F.js} +1 -1
- package/dist/cdn/{KB2WIMAL.js → 2IH3A7XP.js} +1 -1
- package/dist/cdn/{MWMTHMMN.js → 35O6UEOL.js} +1 -1
- package/dist/cdn/{WVJUNLFN.js → 3DHLIYTZ.js} +1 -1
- package/dist/cdn/{TQJK5WF5.js → 3LBQM6E5.js} +1 -1
- package/dist/cdn/3OUO73FE.js +2 -0
- package/dist/cdn/3UQ52WEC.js +2 -0
- package/dist/cdn/{F5MS5PBN.js → 46QVRBZQ.js} +1 -1
- package/dist/cdn/{YFUBBPNI.js → 4DEE5DJG.js} +1 -1
- package/dist/cdn/{3BUDIEL3.js → 4ESXF6CD.js} +1 -1
- package/dist/cdn/4GINWH77.js +2 -0
- package/dist/cdn/{7M4ANW77.js → 4GLWWIFB.js} +1 -1
- package/dist/cdn/55B3DHRL.js +2 -0
- package/dist/cdn/{32QFEQZS.js → 5AIYVBUE.js} +1 -1
- package/dist/cdn/{Y44WJ7Z2.js → 5GSQDOTM.js} +1 -1
- package/dist/cdn/{3XFDQDVC.js → 5JMEGSKG.js} +1 -1
- package/dist/cdn/{NAJTDRNC.js → 5P6PZGTL.js} +1 -1
- package/dist/cdn/{3XMNPYNB.js → 5RKV22NY.js} +1 -1
- package/dist/cdn/{WYGNUS2B.js → 5XBX6MS4.js} +1 -1
- package/dist/cdn/{MRRVOAJL.js → 65AE3WDH.js} +1 -1
- package/dist/cdn/{QN4XN67Z.js → 6DMJVTU7.js} +1 -1
- package/dist/cdn/{M2TFDONT.js → 7CPR7ZY6.js} +1 -1
- package/dist/cdn/{Z2GSU7Q2.js → 7LJPLUHO.js} +1 -1
- package/dist/cdn/{VYXKMJSU.js → 7Q7ZAE37.js} +1 -1
- package/dist/cdn/{ROY5CHB3.js → 7S7I3ZX6.js} +1 -1
- package/dist/cdn/{CUSR767T.js → 7TIC7MWH.js} +1 -1
- package/dist/cdn/{ND7KY7GE.js → AE6WIDBA.js} +1 -1
- package/dist/cdn/{U6NA5WAH.js → ANR6MBC5.js} +1 -1
- package/dist/cdn/AQZ7H27V.js +2 -0
- package/dist/cdn/AUY3K2CK.js +2 -0
- package/dist/cdn/{VWQPK5JA.js → B2ZOCHY5.js} +1 -1
- package/dist/cdn/B74ZW4VM.js +2 -0
- package/dist/cdn/{74CLXGQH.js → BSFLNK3G.js} +1 -1
- package/dist/cdn/{JQIHTMWX.js → BX7JMSW4.js} +1 -1
- package/dist/cdn/{45C4ENM6.js → BXUDOEEY.js} +1 -1
- package/dist/cdn/{OXKGEAUB.js → BZW75APA.js} +1 -1
- package/dist/cdn/{QXPWDVC2.js → CCMLFJRX.js} +1 -1
- package/dist/cdn/{C4PPQBLW.js → CHVYZBJP.js} +1 -1
- package/dist/cdn/{5X2CR2NN.js → CQMH7FNX.js} +1 -1
- package/dist/cdn/{REW7C42W.js → D5RB7ITG.js} +1 -1
- package/dist/cdn/{IHGSINVA.js → D7WOEWO3.js} +1 -1
- package/dist/cdn/{ATWAUE4R.js → DAUDD3TU.js} +1 -1
- package/dist/cdn/{I2DNOFC6.js → DH7CVA3S.js} +1 -1
- package/dist/cdn/{5RJTKL4J.js → DIVK7SUE.js} +1 -1
- package/dist/cdn/{CDGEWGDD.js → DUFMSJ4N.js} +1 -1
- package/dist/cdn/{RZR44QGM.js → DVG3NA3H.js} +1 -1
- package/dist/cdn/{RIEKXKB2.js → DZ2ML6RL.js} +1 -1
- package/dist/cdn/{N3YQ6P66.js → E274U5KY.js} +1 -1
- package/dist/cdn/{5SYOHCLD.js → E5KOELX6.js} +1 -1
- package/dist/cdn/{JMKB4CRU.js → EBDWLL34.js} +1 -1
- package/dist/cdn/{YNG6JO67.js → EH5Y2TRK.js} +1 -1
- package/dist/cdn/{WAXTXFBL.js → FA5NVFJF.js} +1 -1
- package/dist/cdn/{5N32D533.js → FPSAFKXP.js} +1 -1
- package/dist/cdn/{D2HPEC7F.js → FQTCAXYA.js} +1 -1
- package/dist/cdn/{E4MGJ47Y.js → FQZZCTBU.js} +1 -1
- package/dist/cdn/{2VL3OCAZ.js → FR5GKBKS.js} +1 -1
- package/dist/cdn/{G62VTWNT.js → FTH3OHTR.js} +1 -1
- package/dist/cdn/{5L5RJCKK.js → GA2SRL7F.js} +1 -1
- package/dist/cdn/{IXQQO6HC.js → GCCKUDLZ.js} +1 -1
- package/dist/cdn/{BTSHRUHD.js → GFJSIQAL.js} +1 -1
- package/dist/cdn/{F3E7QPPC.js → GQV6EPVW.js} +1 -1
- package/dist/cdn/{CUTXFNYN.js → GUYWR6OU.js} +1 -1
- package/dist/cdn/{7YNDWV76.js → GVPG6GL6.js} +1 -1
- package/dist/cdn/{27MK2V4G.js → H5OQUUCS.js} +1 -1
- package/dist/cdn/{5QXKHC54.js → HNFN5XI4.js} +1 -1
- package/dist/cdn/{A332WZ6V.js → HOZFU3MX.js} +1 -1
- package/dist/cdn/{EJUEMY56.js → HS67EN4X.js} +1 -1
- package/dist/cdn/{TMWGSGAP.js → I5FHLUKC.js} +1 -1
- package/dist/cdn/{N6V2UT62.js → IDT2SXTU.js} +1 -1
- package/dist/cdn/{KQGUXAM6.js → IIK67UVJ.js} +1 -1
- package/dist/cdn/{W3N2DKPC.js → J4NTIVMX.js} +1 -1
- package/dist/cdn/{VVJGLEIA.js → JBJREVM7.js} +1 -1
- package/dist/cdn/{773VWCGD.js → JGIGYWX4.js} +1 -1
- package/dist/cdn/{OJO5NPP3.js → JKB2GJ3L.js} +1 -1
- package/dist/cdn/{CZPSEMDH.js → KJ3CYYKH.js} +1 -1
- package/dist/cdn/KRJOJQ44.js +2 -0
- package/dist/cdn/KZAI3CI3.js +2 -0
- package/dist/cdn/{UE4QYUAU.js → LBE47OKH.js} +1 -1
- package/dist/cdn/{SBQVCX2M.js → LELOCWEB.js} +1 -1
- package/dist/cdn/LWJGPTE6.js +2 -0
- package/dist/cdn/{5WFJNGXP.js → M3FXEHEJ.js} +1 -1
- package/dist/cdn/{2MRL4RKW.js → MOFJZGJJ.js} +1 -1
- package/dist/cdn/{Y6WCKCHJ.js → MSMAWAGB.js} +1 -1
- package/dist/cdn/{5JIKOOZ6.js → NFJSGECW.js} +1 -1
- package/dist/cdn/{JDAOWOTY.js → NFSJVK6S.js} +1 -1
- package/dist/cdn/{KJNTF66K.js → NV73Q6Y3.js} +1 -1
- package/dist/cdn/{FKX46Z6K.js → NWCJZZUP.js} +1 -1
- package/dist/cdn/{SGZ3IG5W.js → NXXNNPTZ.js} +1 -1
- package/dist/cdn/OAHYAUPC.js +2 -0
- package/dist/cdn/{RVXZUGJA.js → OJOSD3I3.js} +1 -1
- package/dist/cdn/{MD2UCHOX.js → OKEUM3YZ.js} +1 -1
- package/dist/cdn/{6W4CWLXH.js → ON5SZ43I.js} +1 -1
- package/dist/cdn/{EHS7L663.js → OO4DL46D.js} +1 -1
- package/dist/cdn/{GEKASHNF.js → OXAULX56.js} +1 -1
- package/dist/cdn/{TPML2DIA.js → OYI5HS2H.js} +1 -1
- package/dist/cdn/{3VNZC64N.js → PF2E72GP.js} +1 -1
- package/dist/cdn/{XTGDCTQE.js → PGOMURMZ.js} +1 -1
- package/dist/cdn/{WRQD4O6A.js → PTENM6H3.js} +1 -1
- package/dist/cdn/PZBMDHWQ.js +2 -0
- package/dist/cdn/{72XY7IDN.js → QEET4SDM.js} +1 -1
- package/dist/cdn/QEJPO65G.js +2 -0
- package/dist/cdn/{RDOHAXOA.js → QU4Q7ONO.js} +1 -1
- package/dist/cdn/{TRN7FUFM.js → QUBOBRBE.js} +1 -1
- package/dist/cdn/{YBFI2FQL.js → QUFMR3GW.js} +1 -1
- package/dist/cdn/{6N246L5H.js → R6QHGRLY.js} +1 -1
- package/dist/cdn/{HQHM5NWX.js → RAPPDCJC.js} +1 -1
- package/dist/cdn/{2PEF7GQE.js → RCKGNXG5.js} +1 -1
- package/dist/cdn/{O6PZKJ7R.js → ROD7LNFF.js} +1 -1
- package/dist/cdn/{IRDSJTUK.js → RRG7YZBV.js} +1 -1
- package/dist/cdn/{74UIHSVE.js → RUFVN26P.js} +1 -1
- package/dist/cdn/{BZJYGCDK.js → SNI7EAIB.js} +1 -1
- package/dist/cdn/{6MUZLYOR.js → T3FWIMHQ.js} +1 -1
- package/dist/cdn/{PJSI5N6F.js → THKF3UIU.js} +1 -1
- package/dist/cdn/{ERBKUSSX.js → TLYY3J5P.js} +1 -1
- package/dist/cdn/{CBUNIAKL.js → TMJJBLP6.js} +1 -1
- package/dist/cdn/{KCENWQ6Z.js → TNK2ZMWI.js} +1 -1
- package/dist/cdn/{TFTS26NS.js → TO7Y5WZH.js} +1 -1
- package/dist/cdn/{PW2XM5HR.js → TPA4W766.js} +1 -1
- package/dist/cdn/{NDVX6CLP.js → TPACOVOQ.js} +1 -1
- package/dist/cdn/{SH7DQCS7.js → TQ5ZBZVK.js} +1 -1
- package/dist/cdn/U5CB5AOH.js +2 -0
- package/dist/cdn/{4Q7PL2KY.js → UANLRLKZ.js} +1 -1
- package/dist/cdn/{3NNR2AZU.js → UILRTNAY.js} +1 -1
- package/dist/cdn/{DJMAPSDY.js → UJSGNQNS.js} +1 -1
- package/dist/cdn/{34WAUXUE.js → UMNCTZMZ.js} +1 -1
- package/dist/cdn/{UIFHJ5IO.js → UQADROG7.js} +1 -1
- package/dist/cdn/{ZEEFJOPQ.js → UU6TKA7Y.js} +1 -1
- package/dist/cdn/{4NYY44U4.js → V7X5QMP5.js} +1 -1
- package/dist/cdn/{FE3TGEP7.js → VKOMYCKU.js} +1 -1
- package/dist/cdn/{C4DX6ZIA.js → VL5MBQLU.js} +1 -1
- package/dist/cdn/{OB3Z74X6.js → VLTH6OI4.js} +1 -1
- package/dist/cdn/{FZTLSQJL.js → VTIIXIO2.js} +1 -1
- package/dist/cdn/{SS4J7QES.js → VVLIBG27.js} +1 -1
- package/dist/cdn/{CQYI4Z2Z.js → W776TYSB.js} +1 -1
- package/dist/cdn/{UOSSQPFY.js → WBG5KGIT.js} +1 -1
- package/dist/cdn/{DEQNFOAS.js → WE6LDLUR.js} +1 -1
- package/dist/cdn/{5CBFI2KM.js → WJLDQOSL.js} +1 -1
- package/dist/cdn/{XCNAJ4XA.js → WMAINNWS.js} +1 -1
- package/dist/cdn/{RUNWK23I.js → WMRHH4QJ.js} +1 -1
- package/dist/cdn/WYWBO53V.js +2 -0
- package/dist/cdn/XPV23QFC.js +2 -0
- package/dist/cdn/XXOHZXFG.js +2 -0
- package/dist/cdn/{R4C3WA5S.js → Y7HCDFPY.js} +1 -1
- package/dist/cdn/{ZBN5LXKS.js → YCBJZOJS.js} +1 -1
- package/dist/cdn/{3H6RVKMN.js → YETMUH7M.js} +1 -1
- package/dist/cdn/{WUBPEGFV.js → YPGTWYGF.js} +1 -1
- package/dist/cdn/{FKPCRFUW.js → YVT2GP5U.js} +1 -1
- package/dist/cdn/{6UM5PQBD.js → ZAWIMU5V.js} +1 -1
- package/dist/cdn/{72EJ64LI.js → ZU6VN5T5.js} +1 -1
- package/dist/cdn/assets/icon/buildingIndex16.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex24.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex32.json +1 -0
- package/dist/cdn/assets/icon/fireIndex16.json +1 -0
- package/dist/cdn/assets/icon/fireIndex24.json +1 -0
- package/dist/cdn/assets/icon/fireIndex32.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex16.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex24.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex32.json +1 -0
- package/dist/cdn/assets/icon/snowIndex16.json +1 -0
- package/dist/cdn/assets/icon/snowIndex24.json +1 -0
- package/dist/cdn/assets/icon/snowIndex32.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex16.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex24.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex32.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex16.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex24.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex32.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources10.js +19 -0
- package/dist/chunks/resources11.js +63 -0
- package/dist/chunks/resources5.js +40 -51
- package/dist/chunks/resources6.js +24 -46
- package/dist/chunks/resources7.js +53 -8
- package/dist/chunks/resources8.js +50 -10
- package/dist/chunks/resources9.js +7 -53
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/utils.js +9 -15
- package/dist/chunks/utils2.js +59 -6
- package/dist/components/calcite-block/customElement.d.ts +9 -9
- package/dist/components/calcite-block/customElement.js +8 -49
- package/dist/components/calcite-block-group/customElement.js +3 -5
- package/dist/components/calcite-block-section/customElement.d.ts +5 -5
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.d.ts +8 -8
- package/dist/components/calcite-button/customElement.js +3 -3
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -27
- package/dist/components/calcite-color-picker/customElement.d.ts +3 -3
- package/dist/components/calcite-color-picker/customElement.js +23 -20
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +4 -4
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +286 -132
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.js +1 -1
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +7 -1
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.js +1 -1
- package/dist/components/calcite-input-date-picker/customElement.js +5 -10
- 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-zone/customElement.js +1 -1
- package/dist/components/calcite-list/customElement.js +1 -1
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.js +1 -1
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +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 +3 -3
- package/dist/cdn/25SUELBY.js +0 -2
- package/dist/cdn/73EQ5TEB.js +0 -2
- package/dist/cdn/7AOQ4FPG.js +0 -2
- package/dist/cdn/C2BK5CUC.js +0 -2
- package/dist/cdn/DAXLXKIY.js +0 -2
- package/dist/cdn/DSQ47C3C.js +0 -2
- package/dist/cdn/DZSC3TJX.js +0 -2
- package/dist/cdn/GYYFBZS2.js +0 -2
- package/dist/cdn/I5HZNPIE.js +0 -2
- package/dist/cdn/OGNY6ZIB.js +0 -2
- package/dist/cdn/OWJYARYV.js +0 -2
- package/dist/cdn/QABVNEOF.js +0 -2
- package/dist/cdn/VCDOY22T.js +0 -2
- package/dist/cdn/VYZ6WAWT.js +0 -2
- package/dist/cdn/Z7NNDJEN.js +0 -2
- /package/dist/cdn/{IYGANVDT.js → 2G2ZTAXT.js} +0 -0
- /package/dist/cdn/{UM6KICQF.js → 5ZULUIQ5.js} +0 -0
- /package/dist/cdn/{MYDCGCGV.js → EWIZKNXQ.js} +0 -0
- /package/dist/cdn/{DCWL5FUH.js → EZQV6OUW.js} +0 -0
- /package/dist/cdn/{R6HABYRV.js → SXELOWJI.js} +0 -0
|
@@ -1,19 +1,59 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
const CSS = {
|
|
3
|
+
actionBarContainer: "action-bar-container",
|
|
3
4
|
container: "container",
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
contentBottom: "content-bottom",
|
|
6
|
+
contentTop: "content-top",
|
|
7
|
+
header: "header",
|
|
8
|
+
headerContainer: "header-container",
|
|
9
|
+
headerContainerBorderEnd: "header-container--border-end",
|
|
10
|
+
headingTextContent: "heading-text-content",
|
|
11
|
+
heading: "heading",
|
|
12
|
+
description: "description",
|
|
13
|
+
headerContent: "header-content",
|
|
14
|
+
headerActions: "header-actions",
|
|
15
|
+
headerActionsEnd: "header-actions--end",
|
|
16
|
+
headerActionsStart: "header-actions--start",
|
|
17
|
+
icon: "icon",
|
|
18
|
+
contentWrapper: "content-wrapper",
|
|
19
|
+
fabContainer: "fab-container",
|
|
20
|
+
footer: "footer",
|
|
21
|
+
footerContent: "footer-content",
|
|
22
|
+
footerStart: "footer-start",
|
|
23
|
+
footerEnd: "footer-end",
|
|
24
|
+
headerSlottedContent: "header--slotted-content",
|
|
25
|
+
headerNonSlottedContent: "header--non-slotted-content",
|
|
26
|
+
menuAction: "menu-action"
|
|
27
|
+
};
|
|
28
|
+
const IDS = {
|
|
29
|
+
close: "close",
|
|
30
|
+
collapse: "collapse"
|
|
31
|
+
};
|
|
32
|
+
const ICONS = {
|
|
33
|
+
close: "x",
|
|
34
|
+
menu: "ellipsis",
|
|
35
|
+
expand: "chevron-down",
|
|
36
|
+
collapse: "chevron-up"
|
|
9
37
|
};
|
|
10
38
|
const SLOTS = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
39
|
+
actionBar: "action-bar",
|
|
40
|
+
alerts: "alerts",
|
|
41
|
+
contentBottom: "content-bottom",
|
|
42
|
+
contentTop: "content-top",
|
|
43
|
+
headerActionsStart: "header-actions-start",
|
|
44
|
+
headerActionsEnd: "header-actions-end",
|
|
45
|
+
description: "description",
|
|
46
|
+
heading: "heading",
|
|
47
|
+
headerMenuActions: "header-menu-actions",
|
|
48
|
+
headerContent: "header-content",
|
|
49
|
+
fab: "fab",
|
|
50
|
+
footer: "footer",
|
|
51
|
+
footerEnd: "footer-end",
|
|
52
|
+
footerStart: "footer-start"
|
|
15
53
|
};
|
|
16
54
|
export {
|
|
17
55
|
CSS as C,
|
|
18
|
-
|
|
56
|
+
ICONS as I,
|
|
57
|
+
SLOTS as S,
|
|
58
|
+
IDS as a
|
|
19
59
|
};
|
|
@@ -1,63 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
const CSS = {
|
|
3
|
-
actionsEnd: "actions-end",
|
|
4
|
-
actionsStart: "actions-start",
|
|
5
|
-
description: "description",
|
|
6
|
-
close: "close",
|
|
7
3
|
container: "container",
|
|
8
|
-
|
|
9
|
-
containerBorder: "container--border",
|
|
10
|
-
containerBorderSelected: "container--border-selected",
|
|
11
|
-
containerHighlightSelected: "container--highlight-selected",
|
|
12
|
-
content: "content",
|
|
13
|
-
contentBottom: "content-bottom",
|
|
14
|
-
contentContainer: "content-container",
|
|
15
|
-
contentContainerHasCenterContent: "content-container--has-center-content",
|
|
16
|
-
contentContainerSelectable: "content-container--selectable",
|
|
17
|
-
contentContainerUnavailable: "content-container--unavailable",
|
|
18
|
-
contentContainerWrapper: "content-container-wrapper",
|
|
19
|
-
contentContainerWrapperBordered: "content-container-wrapper--bordered",
|
|
20
|
-
contentEnd: "content-end",
|
|
21
|
-
contentStart: "content-start",
|
|
22
|
-
customContent: "custom-content",
|
|
23
|
-
expandedContainer: "expanded-container",
|
|
24
|
-
dragContainer: "drag-container",
|
|
25
|
-
gridCell: "grid-cell",
|
|
4
|
+
containerNone: "container--none-selection",
|
|
26
5
|
icon: "icon",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
selectionContainer: "selection-container",
|
|
32
|
-
selectionContainerSingle: "selection-container--single",
|
|
33
|
-
wrapper: "wrapper",
|
|
34
|
-
wrapperBordered: "wrapper--bordered"
|
|
6
|
+
iconEnd: "icon--end",
|
|
7
|
+
iconStart: "icon--start",
|
|
8
|
+
itemContent: "content",
|
|
9
|
+
link: "link"
|
|
35
10
|
};
|
|
36
|
-
const SLOTS = {
|
|
37
|
-
actionsStart: "actions-start",
|
|
38
|
-
contentStart: "content-start",
|
|
39
|
-
content: "content",
|
|
40
|
-
contentBottom: "content-bottom",
|
|
41
|
-
contentEnd: "content-end",
|
|
42
|
-
actionsEnd: "actions-end"
|
|
43
|
-
};
|
|
44
|
-
const MAX_COLUMNS = 0;
|
|
45
11
|
const ICONS = {
|
|
46
|
-
|
|
47
|
-
selectedSingle: "circle-inset-large",
|
|
48
|
-
unselectedMultiple: "square",
|
|
49
|
-
unselectedSingle: "circle",
|
|
50
|
-
collapsedLTR: "chevron-right",
|
|
51
|
-
collapsedRTL: "chevron-left",
|
|
52
|
-
open: "chevron-down",
|
|
53
|
-
blank: "blank",
|
|
54
|
-
close: "x"
|
|
12
|
+
check: "check"
|
|
55
13
|
};
|
|
56
|
-
const activeCellTestAttribute = "data-test-active";
|
|
57
14
|
export {
|
|
58
15
|
CSS as C,
|
|
59
|
-
ICONS as I
|
|
60
|
-
MAX_COLUMNS as M,
|
|
61
|
-
SLOTS as S,
|
|
62
|
-
activeCellTestAttribute as a
|
|
16
|
+
ICONS as I
|
|
63
17
|
};
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -60,9 +60,9 @@ function getConfig() {
|
|
|
60
60
|
}
|
|
61
61
|
return effectiveConfig;
|
|
62
62
|
}
|
|
63
|
-
const version = "5.1.
|
|
64
|
-
const buildDate = "2026-06-
|
|
65
|
-
const revision = "
|
|
63
|
+
const version = "5.1.2-next.0";
|
|
64
|
+
const buildDate = "2026-06-10";
|
|
65
|
+
const revision = "f9640583f";
|
|
66
66
|
function stampVersion() {
|
|
67
67
|
const config = getConfig();
|
|
68
68
|
if (config && config.version) {
|
|
@@ -85,7 +85,7 @@ if (!isServer) {
|
|
|
85
85
|
if (process.env.NODE_ENV !== "test") {
|
|
86
86
|
queueMicrotask(stampVersion);
|
|
87
87
|
}
|
|
88
|
-
const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.1.
|
|
88
|
+
const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.1.2-next.0/dist/cdn/", hydratedAttribute: "calcite-hydrated" });
|
|
89
89
|
const { customElement, getAssetPath, setAssetPath } = runtime;
|
|
90
90
|
export {
|
|
91
91
|
CSS_UTILITY as C,
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import Color from "color";
|
|
3
3
|
import { c as calciteSpacingFixedXl, a as calciteSpacingFixedMd, b as calciteSpacingFixedSm } from "./global.js";
|
|
4
|
+
import { omit } from "es-toolkit";
|
|
4
5
|
const CSS = {
|
|
5
6
|
channel: "channel",
|
|
6
7
|
channels: "channels",
|
|
@@ -103,7 +104,7 @@ const shorthandHexWithAlpha = /^#[0-9A-F]{4}$/i;
|
|
|
103
104
|
const longhandHexWithAlpha = /^#[0-9A-F]{8}$/i;
|
|
104
105
|
function colorFromValue(value, clearable = false, mode) {
|
|
105
106
|
if (clearable && !value) {
|
|
106
|
-
return
|
|
107
|
+
return void 0;
|
|
107
108
|
}
|
|
108
109
|
return Color(
|
|
109
110
|
value != null && typeof value === "object" && alphaCompatible(mode) ? normalizeColor(value) : value
|
|
@@ -136,7 +137,7 @@ function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
|
|
|
136
137
|
hex = `#${hex}`;
|
|
137
138
|
}
|
|
138
139
|
if (isShorthandHex(hex, hasAlpha)) {
|
|
139
|
-
return rgbToHex(hexToRGB(hex
|
|
140
|
+
return rgbToHex(hexToRGB(hex));
|
|
140
141
|
}
|
|
141
142
|
if (hasAlpha && convertFromHexToHexa && isValidHex(
|
|
142
143
|
hex,
|
|
@@ -144,7 +145,7 @@ function normalizeHex(hex, hasAlpha = false, convertFromHexToHexa = false) {
|
|
|
144
145
|
/* we only care about RGB hex for conversion */
|
|
145
146
|
)) {
|
|
146
147
|
const isShorthand = isShorthandHex(hex, false);
|
|
147
|
-
return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}
|
|
148
|
+
return rgbToHex(hexToRGB(`${hex}${isShorthand ? "f" : "ff"}`));
|
|
148
149
|
}
|
|
149
150
|
return hex;
|
|
150
151
|
}
|
|
@@ -163,23 +164,16 @@ function numToHex(num) {
|
|
|
163
164
|
return num.toString(16).padStart(2, "0");
|
|
164
165
|
}
|
|
165
166
|
function normalizeAlpha(colorObject) {
|
|
166
|
-
|
|
167
|
-
...colorObject,
|
|
167
|
+
return {
|
|
168
|
+
...omit(colorObject, ["alpha"]),
|
|
168
169
|
a: colorObject.alpha ?? 1
|
|
169
170
|
/* Color() will omit alpha if 1 */
|
|
170
171
|
};
|
|
171
|
-
delete normalized.alpha;
|
|
172
|
-
return normalized;
|
|
173
172
|
}
|
|
174
173
|
function normalizeColor(alphaColorObject) {
|
|
175
|
-
|
|
176
|
-
delete normalized.a;
|
|
177
|
-
return normalized;
|
|
174
|
+
return { ...omit(alphaColorObject, ["a"]), alpha: alphaColorObject.a ?? 1 };
|
|
178
175
|
}
|
|
179
|
-
function hexToRGB(hex
|
|
180
|
-
if (!isValidHex(hex, hasAlpha)) {
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
176
|
+
function hexToRGB(hex) {
|
|
183
177
|
hex = hex.replace("#", "");
|
|
184
178
|
let r;
|
|
185
179
|
let g;
|
|
@@ -252,7 +246,7 @@ function parseMode(colorValue) {
|
|
|
252
246
|
return hasChannels(colorValue, "a") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;
|
|
253
247
|
}
|
|
254
248
|
}
|
|
255
|
-
return
|
|
249
|
+
return void 0;
|
|
256
250
|
}
|
|
257
251
|
function hasChannels(colorObject, ...channels) {
|
|
258
252
|
return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { isServer } from "lit";
|
|
3
3
|
import { n as nodeListToArray } from "./dom.js";
|
|
4
|
-
import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./
|
|
4
|
+
import { A as AllComboboxChildrenSelector, a as ComboboxItemSelector, b as ComboboxItemGroupSelector } from "./resources7.js";
|
|
5
5
|
function getAncestors(element) {
|
|
6
6
|
const parent = element.parentElement?.closest(AllComboboxChildrenSelector);
|
|
7
7
|
const grandparent = parent?.parentElement?.closest(AllComboboxChildrenSelector);
|
|
@@ -47,12 +47,65 @@ function isSingleLike(selectionMode) {
|
|
|
47
47
|
function getLabel(item) {
|
|
48
48
|
return item.shortHeading || item.heading;
|
|
49
49
|
}
|
|
50
|
+
function orderByPrevious(items, previousItems) {
|
|
51
|
+
if (items.length < 2 || previousItems.length === 0) {
|
|
52
|
+
return items;
|
|
53
|
+
}
|
|
54
|
+
const previousItemOrder = new Map(previousItems.map((item, index) => [item, index]));
|
|
55
|
+
return [...items].sort((a, b) => {
|
|
56
|
+
const aOrder = previousItemOrder.get(a);
|
|
57
|
+
const bOrder = previousItemOrder.get(b);
|
|
58
|
+
if (aOrder !== void 0 && bOrder !== void 0) {
|
|
59
|
+
return aOrder - bOrder;
|
|
60
|
+
}
|
|
61
|
+
if (aOrder !== void 0) {
|
|
62
|
+
return -1;
|
|
63
|
+
}
|
|
64
|
+
if (bOrder !== void 0) {
|
|
65
|
+
return 1;
|
|
66
|
+
}
|
|
67
|
+
return 0;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function consumeValue(counts, value) {
|
|
71
|
+
const count = counts.get(value) ?? 0;
|
|
72
|
+
if (count === 0) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
if (count === 1) {
|
|
76
|
+
counts.delete(value);
|
|
77
|
+
} else {
|
|
78
|
+
counts.set(value, count - 1);
|
|
79
|
+
}
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
function orderValuesByPrevious(selectedValues, previousValues) {
|
|
83
|
+
if (selectedValues.length < 2 || previousValues.length === 0) {
|
|
84
|
+
return selectedValues;
|
|
85
|
+
}
|
|
86
|
+
const selectedValueCounts = /* @__PURE__ */ new Map();
|
|
87
|
+
selectedValues.forEach((value) => {
|
|
88
|
+
selectedValueCounts.set(value, (selectedValueCounts.get(value) ?? 0) + 1);
|
|
89
|
+
});
|
|
90
|
+
const orderedSelectedValues = previousValues.filter((value) => consumeValue(selectedValueCounts, value));
|
|
91
|
+
if (orderedSelectedValues.length === 0) {
|
|
92
|
+
return selectedValues;
|
|
93
|
+
}
|
|
94
|
+
selectedValues.forEach((value) => {
|
|
95
|
+
if (consumeValue(selectedValueCounts, value)) {
|
|
96
|
+
orderedSelectedValues.push(value);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
return orderedSelectedValues;
|
|
100
|
+
}
|
|
50
101
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
102
|
+
orderByPrevious as a,
|
|
103
|
+
getItemAncestors as b,
|
|
104
|
+
getItemChildren as c,
|
|
105
|
+
getAncestors as d,
|
|
106
|
+
getDepth as e,
|
|
55
107
|
getLabel as g,
|
|
56
108
|
hasActiveChildren as h,
|
|
57
|
-
isSingleLike as i
|
|
109
|
+
isSingleLike as i,
|
|
110
|
+
orderValuesByPrevious as o
|
|
58
111
|
};
|
|
@@ -36,7 +36,7 @@ export abstract class Block extends LitElement {
|
|
|
36
36
|
*/
|
|
37
37
|
accessor collapsible: boolean;
|
|
38
38
|
/** Specifies a description for the component. Displays below the heading. */
|
|
39
|
-
accessor description: string;
|
|
39
|
+
accessor description: string | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
42
42
|
*
|
|
@@ -63,17 +63,17 @@ export abstract class Block extends LitElement {
|
|
|
63
63
|
*/
|
|
64
64
|
accessor expanded: boolean;
|
|
65
65
|
/** Specifies the component's heading text. */
|
|
66
|
-
accessor heading: string;
|
|
66
|
+
accessor heading: string | undefined;
|
|
67
67
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
68
|
-
accessor headingLevel: HeadingLevel;
|
|
68
|
+
accessor headingLevel: HeadingLevel | undefined;
|
|
69
69
|
/** Specifies an icon to display at the end of the component. */
|
|
70
|
-
accessor iconEnd: IconName;
|
|
70
|
+
accessor iconEnd: IconName | undefined;
|
|
71
71
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
72
|
-
accessor iconFlipRtl: FlipContext;
|
|
72
|
+
accessor iconFlipRtl: FlipContext | undefined;
|
|
73
73
|
/** Specifies an icon to display at the start of the component. */
|
|
74
|
-
accessor iconStart: IconName;
|
|
74
|
+
accessor iconStart: IconName | undefined;
|
|
75
75
|
/** Specifies an accessible label for the component. */
|
|
76
|
-
accessor label: string;
|
|
76
|
+
accessor label: string | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* When `true`, a busy indicator is displayed.
|
|
79
79
|
*
|
|
@@ -81,7 +81,7 @@ export abstract class Block extends LitElement {
|
|
|
81
81
|
*/
|
|
82
82
|
accessor loading: boolean;
|
|
83
83
|
/** Specifies the component's fallback `menuPlacement` when it's initial or specified `menuPlacement` has insufficient space available. */
|
|
84
|
-
accessor menuFlipPlacements: FlipPlacement[];
|
|
84
|
+
accessor menuFlipPlacements: FlipPlacement[] | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* Determines where the action menu will be positioned.
|
|
87
87
|
*
|
|
@@ -129,7 +129,7 @@ export abstract class Block extends LitElement {
|
|
|
129
129
|
*
|
|
130
130
|
* @deprecated in v3.0.0, removal target v6.0.0 - Use the `icon-start` property instead.
|
|
131
131
|
*/
|
|
132
|
-
accessor status: Status;
|
|
132
|
+
accessor status: Status | undefined;
|
|
133
133
|
/**
|
|
134
134
|
* When `true` and the component is `open`, disables top layer placement.
|
|
135
135
|
*
|
|
@@ -15,46 +15,7 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
|
15
15
|
import { s as styles$2 } from "../../chunks/sortable.js";
|
|
16
16
|
import { s as styles$1 } from "../../chunks/header.js";
|
|
17
17
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
18
|
-
|
|
19
|
-
content: "content",
|
|
20
|
-
toggle: "toggle",
|
|
21
|
-
header: "header"
|
|
22
|
-
};
|
|
23
|
-
const CSS = {
|
|
24
|
-
actionsEnd: "actions-end",
|
|
25
|
-
container: "container",
|
|
26
|
-
content: "content",
|
|
27
|
-
contentEnd: "content-end",
|
|
28
|
-
contentStart: "content-start",
|
|
29
|
-
description: "description",
|
|
30
|
-
header: "header",
|
|
31
|
-
headerContainer: "header-container",
|
|
32
|
-
headerHasContent: "header--has-content",
|
|
33
|
-
headerDraggable: "header--draggable",
|
|
34
|
-
heading: "heading",
|
|
35
|
-
icon: "icon",
|
|
36
|
-
iconStart: "icon--start",
|
|
37
|
-
iconEnd: "icon--end",
|
|
38
|
-
iconEndContainer: "icon-end-container",
|
|
39
|
-
invalid: "invalid",
|
|
40
|
-
statusIcon: "status-icon",
|
|
41
|
-
title: "title",
|
|
42
|
-
toggle: "toggle",
|
|
43
|
-
toggleIcon: "toggle-icon",
|
|
44
|
-
valid: "valid"
|
|
45
|
-
};
|
|
46
|
-
const SLOTS = {
|
|
47
|
-
actionsEnd: "actions-end",
|
|
48
|
-
contentEnd: "content-end",
|
|
49
|
-
contentStart: "content-start",
|
|
50
|
-
headerMenuActions: "header-menu-actions"
|
|
51
|
-
};
|
|
52
|
-
const ICONS = {
|
|
53
|
-
expanded: "chevron-up",
|
|
54
|
-
collapsed: "chevron-down",
|
|
55
|
-
valid: "check-circle",
|
|
56
|
-
invalid: "exclamation-mark-triangle"
|
|
57
|
-
};
|
|
18
|
+
import { C as CSS, I as ICONS, S as SLOTS, a as IDS } from "../../chunks/resources5.js";
|
|
58
19
|
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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([scale=s]) .header{gap:var(--calcite-spacing-sm)}:host([scale=s]) .icon-end-container{gap:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm)}:host([scale=s]) .description{font-size:var(--calcite-font-size-xs)}:host([scale=s]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-sm);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-xxs)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) )}:host([scale=m]) .header{gap:var(--calcite-spacing-md)}:host([scale=m]) .icon-end-container{gap:var(--calcite-spacing-md);padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size)}:host([scale=m]) .description{font-size:var(--calcite-font-size-sm)}:host([scale=m]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-md);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) )}:host([scale=l]) .header{gap:var(--calcite-spacing-lg)}:host([scale=l]) .icon-end-container{gap:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md)}:host([scale=l]) .description{font-size:var(--calcite-font-size)}:host([scale=l]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-lg);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-lg)) )}:host{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;padding:0;transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.215,.44,.42,.88);flex-basis:auto;border-color:var(--calcite-block-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{justify-content:flex-start}.header--has-content{padding:var(--calcite-internal-block-header-content-padding)}.header--draggable{padding-inline-start:var(--calcite-spacing-xxs)}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto auto auto;grid-template-areas:"handle header icon-end menu actions-end"}.icon--start{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.actions-end{align-items:center;display:flex;gap:var(--calcite-internal-block-actions-spacing);grid-area:actions-end;padding-block:var(--calcite-internal-block-actions-spacing);padding-inline-end:var(--calcite-internal-block-actions-spacing)}.toggle{margin:0;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0;outline-color:transparent;font-family:inherit;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-color-foreground-2))}.toggle: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))))}.toggle:active{background-color:var(--calcite-block-header-background-color-press, var(--calcite-color-foreground-3))}calcite-loader[inline]{align-self:center}calcite-sort-handle{align-self:center;grid-area:handle;margin-block:var(--calcite-internal-block-actions-spacing);padding-inline-start:var(--calcite-spacing-xxs)}.title{display:flex;flex-direction:column}.header .title .heading{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-font-line-height-relative-snug)}.description{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-description-text-color, var(--calcite-color-text-3));font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-snug)}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;grid-area:icon-end}.toggle-icon{align-self:center;justify-self:end;transition-property:color;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-block-collapsible-icon-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.toggle:hover .toggle-icon{color:var(--calcite-block-collapsible-icon-color-hover, var(--calcite-block-icon-color-hover, var(--calcite-color-text-1)))}.container{position:relative;display:flex;block-size:100%;flex-direction:column}.content{position:relative;min-block-size:0px;flex:1 1 0%;opacity:0;padding-block:var(--calcite-internal-block-padding-block);padding-inline:var(--calcite-internal-block-padding-inline);transition:opacity var(--calcite-internal-animation-timing-slow) ease-in-out}.content-end,.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}calcite-action-menu{align-self:center;grid-area:menu;margin-inline-end:var(--calcite-internal-block-actions-spacing)}:host([expanded]){margin-block:.5rem}:host([expanded]) .header .title .heading{color:var(--calcite-block-heading-text-color, var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1)));font-weight:var(--calcite-font-weight-medium)}:host([expanded]) .description{color:var(--calcite-block-description-text-color, var(--calcite-color-text-2))}:host([expanded]) .icon--start{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .content{opacity:1}@starting-style{:host([expanded]){margin-block-start:0;opacity:0}}:host([expanded][scale=s]){margin-block:var(--calcite-spacing-xxs)}:host([expanded][scale=l]){margin-block:var(--calcite-spacing-md)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
59
20
|
class Block extends LitElement {
|
|
60
21
|
constructor() {
|
|
@@ -80,8 +41,6 @@ class Block extends LitElement {
|
|
|
80
41
|
this.sortDisabled = false;
|
|
81
42
|
this.overlayPositioning = "absolute";
|
|
82
43
|
this.scale = "m";
|
|
83
|
-
this.setPosition = null;
|
|
84
|
-
this.setSize = null;
|
|
85
44
|
this.sortHandleOpen = false;
|
|
86
45
|
this.topLayerDisabled = false;
|
|
87
46
|
this.calciteBlockBeforeClose = createEvent({ cancelable: false });
|
|
@@ -216,12 +175,12 @@ class Block extends LitElement {
|
|
|
216
175
|
return [loading ? html`<calcite-scrim .loading=${loading}></calcite-scrim>` : null, defaultSlot];
|
|
217
176
|
}
|
|
218
177
|
renderLoaderStatusIcon() {
|
|
219
|
-
const { loading, messages, status
|
|
220
|
-
return loading ? keyed("loader", html`<div class=${safeClassMap(CSS.icon)}><calcite-loader inline .label=${messages.loading} .scale=${this.scale}></calcite-loader></div>`) :
|
|
178
|
+
const { loading, messages, status } = this;
|
|
179
|
+
return loading ? keyed("loader", html`<div class=${safeClassMap(CSS.icon)}><calcite-loader inline .label=${messages.loading} .scale=${this.scale}></calcite-loader></div>`) : status ? keyed("status-icon", html`<div class=${safeClassMap(CSS.icon)}><calcite-icon class=${safeClassMap({
|
|
221
180
|
[CSS.statusIcon]: true,
|
|
222
|
-
[CSS.valid]:
|
|
223
|
-
[CSS.invalid]:
|
|
224
|
-
})} .icon=${ICONS[
|
|
181
|
+
[CSS.valid]: status == "valid",
|
|
182
|
+
[CSS.invalid]: status == "invalid"
|
|
183
|
+
})} .icon=${ICONS[status]} .scale=${getIconScale(this.scale)}></calcite-icon></div>`) : null;
|
|
225
184
|
}
|
|
226
185
|
renderActionsEnd() {
|
|
227
186
|
return html`<div class=${safeClassMap(CSS.actionsEnd)} .hidden=${!this.hasEndActions}><slot name=${SLOTS.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot></div>`;
|
|
@@ -247,7 +206,7 @@ class Block extends LitElement {
|
|
|
247
206
|
return keyed(iconValue, html`<calcite-icon class=${safeClassMap(iconClass)} .flipRtl=${flipRtl} .icon=${iconValue} .scale=${getIconScale(this.scale)}></calcite-icon>`);
|
|
248
207
|
}
|
|
249
208
|
render() {
|
|
250
|
-
const { collapsible, loading, expanded, label, heading, messages, description, menuFlipPlacements, menuPlacement, moveToItems, addToItems, setPosition, setSize, dragDisabled, sortDisabled, iconEnd, hasContentEnd, hasContentStart, iconStart } = this;
|
|
209
|
+
const { collapsible, loading, expanded, label, heading, messages, description, menuFlipPlacements, menuPlacement, moveToItems, addToItems, setPosition, setSize, dragDisabled, sortDisabled, iconEnd, hasContentEnd, hasContentStart, iconStart, status } = this;
|
|
251
210
|
const toggleLabel = expanded ? messages.collapse : messages.expand;
|
|
252
211
|
const headerHasContent = !!(heading || description || hasContentEnd || hasContentStart || iconStart || loading || status);
|
|
253
212
|
const headerContent = html`<header class=${safeClassMap({
|
|
@@ -256,7 +215,7 @@ class Block extends LitElement {
|
|
|
256
215
|
[CSS.headerDraggable]: this.dragHandle
|
|
257
216
|
})} id=${IDS.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`;
|
|
258
217
|
const collapseIcon = expanded ? ICONS.expanded : ICONS.collapsed;
|
|
259
|
-
const headerNode = html`<div class=${safeClassMap(CSS.headerContainer)}>${this.dragHandle ? html`<calcite-sort-handle .addToItems=${addToItems} .disabled=${dragDisabled} .label=${heading || label} .moveToItems=${moveToItems} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${setPosition} .setSize=${setSize} .sortDisabled=${sortDisabled} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.setSortHandleEl)}></calcite-sort-handle>` : null}${collapsible ? html`<button aria-controls=${IDS.content} aria-describedby=${IDS.header} .ariaExpanded=${collapsible ? expanded :
|
|
218
|
+
const headerNode = html`<div class=${safeClassMap(CSS.headerContainer)}>${this.dragHandle ? html`<calcite-sort-handle .addToItems=${addToItems} .disabled=${dragDisabled} .label=${heading || label} .moveToItems=${moveToItems} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${setPosition} .setSize=${setSize} .sortDisabled=${sortDisabled} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.setSortHandleEl)}></calcite-sort-handle>` : null}${collapsible ? html`<button aria-controls=${IDS.content} aria-describedby=${IDS.header} .ariaExpanded=${collapsible ? expanded : void 0} class=${safeClassMap(CSS.toggle)} id=${IDS.toggle} @click=${this.onHeaderClick} title=${toggleLabel ?? nothing}>${headerContent}<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}<calcite-icon class=${safeClassMap(CSS.toggleIcon)} .icon=${collapseIcon} .scale=${getIconScale(this.scale)}></calcite-icon></div></button>` : headerContent}${iconEnd && !collapsible ? html`<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}</div>` : !iconEnd && !collapsible ? this.renderContentEnd() : null}<calcite-action-menu .flipPlacements=${menuFlipPlacements ?? ["top", "bottom"]} .hidden=${!this.hasMenuActions} .label=${messages.options} .overlayPositioning=${this.overlayPositioning} .placement=${menuPlacement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled}><slot name=${SLOTS.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;
|
|
260
219
|
return this.interactiveContainer({ disabled: this.disabled, children: html`<article aria-label=${label ?? nothing} .ariaBusy=${loading} class=${safeClassMap({
|
|
261
220
|
[CSS.container]: true
|
|
262
221
|
})}>${headerNode}<section aria-labelledby=${IDS.toggle} class=${safeClassMap(CSS.content)} .hidden=${!expanded} id=${IDS.content}>${this.renderScrim()}</section></article>` });
|
|
@@ -10,9 +10,7 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
|
10
10
|
import { u as useCancelable } from "../../chunks/useCancelable.js";
|
|
11
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
12
12
|
import { u as useSortable } from "../../chunks/useSortable.js";
|
|
13
|
-
|
|
14
|
-
return element.tagName === "CALCITE-BLOCK";
|
|
15
|
-
}
|
|
13
|
+
import { i as isBlock } from "../../chunks/resources5.js";
|
|
16
14
|
const CSS = {
|
|
17
15
|
container: "container",
|
|
18
16
|
groupContainer: "group-container",
|
|
@@ -180,12 +178,12 @@ class BlockGroup extends LitElement {
|
|
|
180
178
|
this.calciteBlockGroupOrderChange.emit(detail);
|
|
181
179
|
}
|
|
182
180
|
setParentBlockGroup() {
|
|
183
|
-
this.parentBlockGroupEl = this.el.parentElement?.closest(blockGroupSelector);
|
|
181
|
+
this.parentBlockGroupEl = this.el.parentElement?.closest(blockGroupSelector) || void 0;
|
|
184
182
|
}
|
|
185
183
|
handleDefaultSlotChange(event) {
|
|
186
184
|
const blockChildren = [];
|
|
187
185
|
this.blockAndGroups = slotChangeGetAssignedElements(event).filter((el) => {
|
|
188
|
-
if (el
|
|
186
|
+
if (isBlock(el)) {
|
|
189
187
|
blockChildren.push(el);
|
|
190
188
|
}
|
|
191
189
|
return el.matches(blockSelector) || el.matches(blockGroupSelector);
|
|
@@ -21,11 +21,11 @@ export abstract class BlockSection extends LitElement {
|
|
|
21
21
|
*/
|
|
22
22
|
accessor expanded: boolean;
|
|
23
23
|
/** Specifies an icon to display at the end of the component. */
|
|
24
|
-
accessor iconEnd: IconName;
|
|
24
|
+
accessor iconEnd: IconName | undefined;
|
|
25
25
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
26
|
-
accessor iconFlipRtl: FlipContext;
|
|
26
|
+
accessor iconFlipRtl: FlipContext | undefined;
|
|
27
27
|
/** Specifies an icon to display at the start of the component. */
|
|
28
|
-
accessor iconStart: IconName;
|
|
28
|
+
accessor iconStart: IconName | undefined;
|
|
29
29
|
/** Overrides individual strings used by the component. */
|
|
30
30
|
accessor messageOverrides: {
|
|
31
31
|
collapse?: string;
|
|
@@ -49,9 +49,9 @@ export abstract class BlockSection extends LitElement {
|
|
|
49
49
|
*
|
|
50
50
|
* @deprecated in v2.8.1, removal target v6.0.0 - Use `icon-start` instead.
|
|
51
51
|
*/
|
|
52
|
-
accessor status: Status;
|
|
52
|
+
accessor status: Status | undefined;
|
|
53
53
|
/** The component header text. */
|
|
54
|
-
accessor text: string;
|
|
54
|
+
accessor text: string | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* Specifies how the component's toggle is displayed, where:
|
|
57
57
|
*
|
|
@@ -94,7 +94,7 @@ class BlockSection extends LitElement {
|
|
|
94
94
|
}
|
|
95
95
|
renderStatusIcon() {
|
|
96
96
|
const { status } = this;
|
|
97
|
-
const statusIcon = ICONS[status]
|
|
97
|
+
const statusIcon = status && ICONS[status];
|
|
98
98
|
const statusIconClasses = {
|
|
99
99
|
[CSS.statusIcon]: true,
|
|
100
100
|
[CSS.valid]: status == "valid",
|
|
@@ -50,15 +50,15 @@ export abstract class Button extends LitElement {
|
|
|
50
50
|
*
|
|
51
51
|
* When not set, the component is associated with its ancestor form element, if one exists.
|
|
52
52
|
*/
|
|
53
|
-
accessor form: string;
|
|
53
|
+
accessor form: string | undefined;
|
|
54
54
|
/** Specifies the URL of the linked resource, which can be set as an absolute or relative path. */
|
|
55
|
-
accessor href: string;
|
|
55
|
+
accessor href: string | undefined;
|
|
56
56
|
/** Specifies an icon to display at the end of the component. */
|
|
57
|
-
accessor iconEnd: IconName;
|
|
57
|
+
accessor iconEnd: IconName | undefined;
|
|
58
58
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
59
|
-
accessor iconFlipRtl: FlipContext;
|
|
59
|
+
accessor iconFlipRtl: FlipContext | undefined;
|
|
60
60
|
/** Specifies an icon to display at the start of the component. */
|
|
61
|
-
accessor iconStart: IconName;
|
|
61
|
+
accessor iconStart: IconName | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Specifies the kind of the component, which will apply to the border and background if applicable.
|
|
64
64
|
*
|
|
@@ -66,7 +66,7 @@ export abstract class Button extends LitElement {
|
|
|
66
66
|
*/
|
|
67
67
|
accessor kind: Extract<"brand" | "danger" | "inverse" | "neutral", Kind>;
|
|
68
68
|
/** Specifies an accessible label for the component. */
|
|
69
|
-
accessor label: string;
|
|
69
|
+
accessor label: string | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* When `true`, a busy indicator is displayed.
|
|
72
72
|
*
|
|
@@ -82,7 +82,7 @@ export abstract class Button extends LitElement {
|
|
|
82
82
|
*
|
|
83
83
|
* @see [MDN - rel](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel)
|
|
84
84
|
*/
|
|
85
|
-
accessor rel: string;
|
|
85
|
+
accessor rel: string | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* When `true`, adds a round style to the component.
|
|
88
88
|
*
|
|
@@ -106,7 +106,7 @@ export abstract class Button extends LitElement {
|
|
|
106
106
|
*
|
|
107
107
|
* @see [MDN - target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target)
|
|
108
108
|
*/
|
|
109
|
-
accessor target: string;
|
|
109
|
+
accessor target: string | undefined;
|
|
110
110
|
/**
|
|
111
111
|
* Specifies the default behavior of the component.
|
|
112
112
|
*
|
|
@@ -96,7 +96,7 @@ class Button extends LitElement {
|
|
|
96
96
|
setTooltipText() {
|
|
97
97
|
const { contentRef: { value: contentEl } } = this;
|
|
98
98
|
if (contentEl) {
|
|
99
|
-
this.tooltipText = contentEl.offsetWidth < contentEl.scrollWidth ? this.el.innerText ||
|
|
99
|
+
this.tooltipText = contentEl.offsetWidth < contentEl.scrollWidth ? this.el.innerText || void 0 : void 0;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
setChildEl(el) {
|
|
@@ -111,13 +111,13 @@ class Button extends LitElement {
|
|
|
111
111
|
const iconStartEl = html`<calcite-icon class=${safeClassMap({ [CSS.icon]: true, [CSS.iconStart]: true })} .flipRtl=${this.iconFlipRtl === "start" || this.iconFlipRtl === "both"} .icon=${this.iconStart} .scale=${getIconScale(this.scale)}></calcite-icon>`;
|
|
112
112
|
const iconEndEl = html`<calcite-icon class=${safeClassMap({ [CSS.icon]: true, [CSS.iconEnd]: true })} .flipRtl=${this.iconFlipRtl === "end" || this.iconFlipRtl === "both"} .icon=${this.iconEnd} .scale=${getIconScale(this.scale)}></calcite-icon>`;
|
|
113
113
|
const contentEl = html`<span class=${safeClassMap(CSS.content)} ${ref(this.contentRef)}><slot></slot></span>`;
|
|
114
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html$1`<${DynamicHtmlTag} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded ? this.el.ariaExpanded :
|
|
114
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html$1`<${DynamicHtmlTag} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded ? this.el.ariaExpanded : void 0} .ariaLabel=${!this.loading ? getLabelText(this) : this.messages.loading} aria-live=polite class=${safeClassMap({
|
|
115
115
|
[CSS.buttonPadding]: noStartEndIcons,
|
|
116
116
|
[CSS.buttonPaddingShrunk]: !noStartEndIcons,
|
|
117
117
|
[CSS.contentSlotted]: this.hasContent,
|
|
118
118
|
[CSS.iconStartEmpty]: !this.iconStart,
|
|
119
119
|
[CSS.iconEndEmpty]: !this.iconEnd
|
|
120
|
-
})} .disabled=${childElType === "button" ? this.disabled :
|
|
120
|
+
})} .disabled=${childElType === "button" ? this.disabled : void 0} download=${(childElType === "a" ? this.download === true || this.download === "" ? "" : this.download || void 0 : void 0) ?? nothing} href=${(childElType === "a" ? this.href : void 0) ?? nothing} name=${(childElType === "button" ? this.name : void 0) ?? nothing} rel=${(childElType === "a" ? this.rel : void 0) ?? nothing} tabindex=${(this.disabled ? -1 : void 0) ?? nothing} target=${(childElType === "a" ? this.target : void 0) ?? nothing} title=${this.tooltipText ?? nothing} type=${(childElType === "button" ? this.type : void 0) ?? nothing} ${ref(this.setChildEl)}>${loaderNode}${this.iconStart ? iconStartEl : null}${this.hasContent ? contentEl : null}${this.iconEnd ? iconEndEl : null}</${DynamicHtmlTag}>` });
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
customElement("calcite-button", Button);
|