@trintel/zooy 1.0.1-beta.0 → 1.0.1
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 +284 -339
- package/dist/chunks/{16-ChlL35BX.js → 16-BXti8Tu-.js} +6 -6
- package/dist/chunks/16-CMCRqVYz.js +1 -0
- package/dist/chunks/{20-CZPIOG-A.js → 20-CQLnFcRb.js} +9 -9
- package/dist/chunks/20-Df0dXwyx.js +1 -0
- package/dist/chunks/button-B1jzfT-Z.js +272 -0
- package/dist/chunks/button-C-oX8EmF.js +66 -0
- package/dist/chunks/button-skeleton-CK3BHdja.js +21 -0
- package/dist/chunks/{button-skeleton-COf2kCDL.js → button-skeleton-DoCp6sBb.js} +10 -9
- package/dist/chunks/checkbox-CgFjYxQ_.js +201 -0
- package/dist/chunks/checkbox-t3G-H1NN.js +40 -0
- package/dist/chunks/{class-map-BfNAkUL_.js → class-map-D6tjF27Y.js} +2 -2
- package/dist/chunks/{class-map-DEHG4tmw.js → class-map-FWQBIzSx.js} +1 -1
- package/dist/chunks/collection-helpers-Bk68Vaau.js +7 -0
- package/dist/chunks/collection-helpers-afBvMQaC.js +1 -0
- package/dist/chunks/content-switcher-item-CedjjtvP.js +351 -0
- package/dist/chunks/content-switcher-item-c4WBWz31.js +27 -0
- package/dist/chunks/defs-C88lSWuJ.js +1 -0
- package/dist/chunks/defs-Do0OvCKd.js +1165 -0
- package/dist/chunks/dropdown-item-C0SHr4st.js +69 -0
- package/dist/chunks/dropdown-item-Dh5IEXDr.js +621 -0
- package/dist/chunks/{focus-rQSNiwy7.js → focus-B3iymVyL.js} +1 -1
- package/dist/chunks/{focus-B9JYe97T.js → focus-WnKGH_xB.js} +1 -1
- package/dist/chunks/{icon-loader-Dk_AU26w.js → icon-loader-CJxyg-lp.js} +1 -1
- package/dist/chunks/{icon-loader-o_JYDmJX.js → icon-loader-ChKeNR4s.js} +1 -1
- package/dist/chunks/{icon-loader-utils-BEOGXn0q.js → icon-loader-utils-BwViqIXz.js} +23 -23
- package/dist/chunks/icon-loader-utils-DK8DViXt.js +5 -0
- package/dist/chunks/if-defined-DYWhlnlE.js +5 -0
- package/dist/chunks/{if-defined-C0yJsxi2.js → if-defined-eJcDYClo.js} +1 -1
- package/dist/chunks/{if-non-empty-DTGflHtA.js → if-non-empty-COTeEFkK.js} +1 -1
- package/dist/chunks/if-non-empty-CxMysAQW.js +1 -0
- package/dist/chunks/index-0AElqkkj.js +12 -0
- package/dist/chunks/{index-B3mXrMt1.js → index-4WNeLsiw.js} +4 -3
- package/dist/chunks/{index-BXczHDk-.js → index-4XJJobHw.js} +12 -11
- package/dist/chunks/index-7cXLLw89.js +881 -0
- package/dist/chunks/index-9fmHblh5.js +121 -0
- package/dist/chunks/{index-BwIoRMDI.js → index-B0nToMRj.js} +7 -6
- package/dist/chunks/index-B4SxU_Hu.js +87 -0
- package/dist/chunks/index-B5DpS-cb.js +2 -0
- package/dist/chunks/{index-CzTjJ8lP.js → index-B5GB0rQW.js} +47 -37
- package/dist/chunks/index-B8Ze9ISK.js +17 -0
- package/dist/chunks/index-BAAA4wkE.js +45 -0
- package/dist/chunks/index-BBWp83R-.js +160 -0
- package/dist/chunks/index-BBap1uCI.js +1 -0
- package/dist/chunks/index-BGGDxbLL.js +368 -0
- package/dist/chunks/index-BMquNDkd.js +381 -0
- package/dist/chunks/index-BQnyeVHX.js +1 -0
- package/dist/chunks/index-BRnzFxjk.js +25 -0
- package/dist/chunks/index-BbJQIwkY.js +452 -0
- package/dist/chunks/{index-hLI0Bnyb.js → index-Bb_1S0pr.js} +7 -6
- package/dist/chunks/index-BeMnerDj.js +111 -0
- package/dist/chunks/index-Bff6B9vY.js +254 -0
- package/dist/chunks/index-Bi9WliCA.js +683 -0
- package/dist/chunks/{index-D0xRAPD5.js → index-Bls8zdHV.js} +6 -5
- package/dist/chunks/index-Bo2QmpPO.js +1 -0
- package/dist/chunks/index-BseD7Jzt.js +75 -0
- package/dist/chunks/index-Bt7v-zqV.js +77 -0
- package/dist/chunks/index-Bunat0DP.js +337 -0
- package/dist/chunks/index-BvdNKhJw.js +19 -0
- package/dist/chunks/index-BwFE4R87.js +30 -0
- package/dist/chunks/index-BwRxBdeg.js +158 -0
- package/dist/chunks/index-Bymsj9gH.js +1 -0
- package/dist/chunks/index-C-pfDP7B.js +1 -0
- package/dist/chunks/index-C2oV5vU3.js +4 -0
- package/dist/chunks/index-C3n83pM3.js +103 -0
- package/dist/chunks/index-C572_UKV.js +22 -0
- package/dist/chunks/index-C6bOvXSf.js +129 -0
- package/dist/chunks/{index-CByffhPq.js → index-CBICHiFD.js} +147 -134
- package/dist/chunks/index-CEy6bu7P.js +79 -0
- package/dist/chunks/index-CFqKkC5Z.js +36 -0
- package/dist/chunks/index-CIZ3Gnmm.js +8 -0
- package/dist/chunks/index-CIiIAqrQ.js +414 -0
- package/dist/chunks/index-CJdEJ8pY.js +15 -0
- package/dist/chunks/index-CKYRBtLC.js +79 -0
- package/dist/chunks/index-CQl4NaPS.js +65 -0
- package/dist/chunks/index-CR3DrmQi.js +235 -0
- package/dist/chunks/index-CTsGb3mD.js +364 -0
- package/dist/chunks/{index-rwBsdvh6.js → index-CV7TVQ4T.js} +9 -8
- package/dist/chunks/index-CWlg_Hu2.js +150 -0
- package/dist/chunks/{index-Bwix1iwB.js → index-CYIcfuAW.js} +6 -5
- package/dist/chunks/{index-WNXgzThF.js → index-CkxGsCJy.js} +181 -181
- package/dist/chunks/index-ClE0uX_c.js +27 -0
- package/dist/chunks/index-Cnsy7Qk3.js +511 -0
- package/dist/chunks/index-CoAT1iC6.js +12 -0
- package/dist/chunks/index-Cp3P3KaW.js +45 -0
- package/dist/chunks/index-CqQZpHti.js +3 -0
- package/dist/chunks/index-CsjJntyD.js +23 -0
- package/dist/chunks/{index-BIaF1Dfx.js → index-Ctna95NT.js} +5 -4
- package/dist/chunks/index-Cu1u3Mjn.js +150 -0
- package/dist/chunks/index-Cv6qE9qP.js +22 -0
- package/dist/chunks/index-Cwb1pbm9.js +252 -0
- package/dist/chunks/{index-BSgHSOVT.js → index-CzAwJhyQ.js} +4 -3
- package/dist/chunks/index-D8LE8G2j.js +81 -0
- package/dist/chunks/{index-C_K070Kn.js → index-D9sRIKMQ.js} +9 -8
- package/dist/chunks/index-DBsASlZI.js +15 -0
- package/dist/chunks/{index-DurPWBYc.js → index-DGw1TVFB.js} +3 -2
- package/dist/chunks/index-DIsXKJDH.js +4 -0
- package/dist/chunks/{index-CT43RMOu.js → index-DNWjc2SJ.js} +3 -2
- package/dist/chunks/index-DSOPjl5x.js +563 -0
- package/dist/chunks/index-DUtoSCTU.js +455 -0
- package/dist/chunks/index-DWjrCygZ.js +49 -0
- package/dist/chunks/index-DYvD9xjl.js +4 -0
- package/dist/chunks/index-DZabSr3s.js +36 -0
- package/dist/chunks/index-DbAeG1nY.js +1 -0
- package/dist/chunks/index-Dc51G1mo.js +26 -0
- package/dist/chunks/index-Dd9iSSXa.js +260 -0
- package/dist/chunks/{index-C8LyfVmf.js → index-DfFx1Jz3.js} +6 -5
- package/dist/chunks/index-Dh4LYLg5.js +1604 -0
- package/dist/chunks/index-Dk3tlz8Q.js +15 -0
- package/dist/chunks/index-Do1DszoZ.js +1 -0
- package/dist/chunks/index-DrDKdYFJ.js +58 -0
- package/dist/chunks/index-DyO3Wdy_.js +37 -0
- package/dist/chunks/index-DyyLrVDY.js +188 -0
- package/dist/chunks/{index-45EApaFs.js → index-GDVDUQtg.js} +14 -13
- package/dist/chunks/index-GbWz6fuF.js +243 -0
- package/dist/chunks/index-JWULDURW.js +89 -0
- package/dist/chunks/index-MgWriQfr.js +35 -0
- package/dist/chunks/index-OgL1A9Rm.js +42 -0
- package/dist/chunks/{index-DdNZTQw1.js → index-QzojJs5M.js} +3 -2
- package/dist/chunks/index-TJL02uup.js +291 -0
- package/dist/chunks/index-Z4ar01y-.js +259 -0
- package/dist/chunks/{index-BSh7UYcP.js → index-_xRytR0j.js} +3 -3
- package/dist/chunks/index-cuMoh7qn.js +1 -0
- package/dist/chunks/index-du3RQU31.js +62 -0
- package/dist/chunks/{index-DFA4_spk.js → index-hH_m653R.js} +9 -8
- package/dist/chunks/index-hn76Yo-L.js +1 -0
- package/dist/chunks/index-i4heE-wx.js +71 -0
- package/dist/chunks/index-i9jyrFc9.js +19 -0
- package/dist/chunks/index-lFqOe0IJ.js +46 -0
- package/dist/chunks/index-pS6-humH.js +74 -0
- package/dist/chunks/index-pc36PiDY.js +57 -0
- package/dist/chunks/index-qgl9W8eF.js +52 -0
- package/dist/chunks/{index-BUxB7aWd.js → index-uwN33H1P.js} +9 -8
- package/dist/chunks/index-uxZPrL2m.js +406 -0
- package/dist/chunks/index-yzFU-E6F.js +22 -0
- package/dist/chunks/{loading-icon-DhJR6LyV.js → loading-icon-CPvmJvpZ.js} +2 -2
- package/dist/chunks/loading-icon-DdwpAk8-.js +24 -0
- package/dist/chunks/main-BGOPab-5.js +4041 -0
- package/dist/chunks/main-Bx21zlkN.js +65 -0
- package/dist/chunks/{property-pT1z5CCa.js → property-BkjBVRuu.js} +1 -1
- package/dist/chunks/property-DAFv3PCb.js +5 -0
- package/dist/chunks/register-BCEOkbXG.js +1583 -0
- package/dist/chunks/{register-BK21_Wkj.js → register-Bkr1UKav.js} +1 -1
- package/dist/chunks/{register-BMNs2hNG.js → register-DTXmg-gw.js} +1 -1
- package/dist/chunks/register-D_CXtGy1.js +1 -0
- package/dist/chunks/search-DDFN8-Mz.js +30 -0
- package/dist/chunks/search-npG8ywjx.js +240 -0
- package/dist/chunks/select-CFy3MvH6.js +76 -0
- package/dist/chunks/select-DkCpQORs.js +357 -0
- package/dist/chunks/settings-Bgpv8zuU.js +62 -0
- package/dist/chunks/settings-jvP7vP60.js +66 -0
- package/dist/chunks/{state-FnSmMH94.js → state-BdgD82MZ.js} +1 -1
- package/dist/chunks/{state-Bpmgn27B.js → state-uF7CZaP5.js} +1 -1
- package/dist/chunks/text-input-BUdM-ojg.js +68 -0
- package/dist/chunks/text-input-DVdkm07X.js +372 -0
- package/dist/chunks/tooltip-content-BXcBmMsV.js +3 -0
- package/dist/chunks/tooltip-content-CWRE_NqH.js +135 -0
- package/dist/chunks/{unsafe-html-D49sIpJ5.js → unsafe-html-Bg0eM3hS.js} +5 -5
- package/dist/chunks/{unsafe-html-C_MKAcuC.js → unsafe-html-CpAqmPyx.js} +1 -1
- package/dist/zooy.cjs.js +1 -1
- package/dist/zooy.es.js +20 -2
- package/package.json +3 -4
- package/src/sass/carbon.scss +117 -0
- package/src/sass/main.scss +1 -1
- package/src/sass/panels.scss +268 -359
- package/src/sass/split.scss +1 -0
- package/dist/chunks/16-41wFkj7S.js +0 -1
- package/dist/chunks/20-gmyNFvDv.js +0 -1
- package/dist/chunks/button-DdJepOoE.js +0 -271
- package/dist/chunks/button-skeleton-rf3WDPTZ.js +0 -21
- package/dist/chunks/button-zHEPxpXa.js +0 -66
- package/dist/chunks/checkbox-B5mHvx0J.js +0 -200
- package/dist/chunks/checkbox-BRPCg-DN.js +0 -40
- package/dist/chunks/collection-helpers-BwUB2CEz.js +0 -8
- package/dist/chunks/collection-helpers-CYLIiyii.js +0 -1
- package/dist/chunks/content-switcher-item-DeGjVRQY.js +0 -350
- package/dist/chunks/content-switcher-item-DucclV1b.js +0 -27
- package/dist/chunks/defs-DMmigODC.js +0 -1077
- package/dist/chunks/defs-DPD20sPK.js +0 -1
- package/dist/chunks/dropdown-item-BgLQ1VLo.js +0 -69
- package/dist/chunks/dropdown-item-DPdwOION.js +0 -620
- package/dist/chunks/icon-loader-utils-BBjK16O-.js +0 -5
- package/dist/chunks/if-defined-BdZRLDJ6.js +0 -5
- package/dist/chunks/if-non-empty-CEHK-hqx.js +0 -1
- package/dist/chunks/index-16wphaSo.js +0 -4
- package/dist/chunks/index-27oFQaOS.js +0 -37
- package/dist/chunks/index-5jmZyISW.js +0 -1
- package/dist/chunks/index-B1vQ44Hl.js +0 -363
- package/dist/chunks/index-B3CDjjXh.js +0 -214
- package/dist/chunks/index-B7mGUQhz.js +0 -79
- package/dist/chunks/index-BBNaYDog.js +0 -22
- package/dist/chunks/index-BBt9OmO5.js +0 -12
- package/dist/chunks/index-BJAuRs3y.js +0 -75
- package/dist/chunks/index-BJKftWYn.js +0 -89
- package/dist/chunks/index-BLjNrhkN.js +0 -4
- package/dist/chunks/index-BOTu9u-3.js +0 -86
- package/dist/chunks/index-BPVpH8ll.js +0 -160
- package/dist/chunks/index-BRuvyoCz.js +0 -15
- package/dist/chunks/index-BXIxcS00.js +0 -22
- package/dist/chunks/index-BaVyBv2V.js +0 -25
- package/dist/chunks/index-BgbqX0uv.js +0 -234
- package/dist/chunks/index-BjQlt8g2.js +0 -451
- package/dist/chunks/index-BoNLj7PW.js +0 -44
- package/dist/chunks/index-BxVW3p3I.js +0 -258
- package/dist/chunks/index-ByKyGGzb.js +0 -3
- package/dist/chunks/index-ByTSSU1x.js +0 -1
- package/dist/chunks/index-CBbsFlsv.js +0 -290
- package/dist/chunks/index-CIbRjtWm.js +0 -32
- package/dist/chunks/index-CIzeMGQv.js +0 -81
- package/dist/chunks/index-CLGxSjLW.js +0 -62
- package/dist/chunks/index-CMF5Cawn.js +0 -70
- package/dist/chunks/index-CO-A2KY9.js +0 -562
- package/dist/chunks/index-CONgwvp0.js +0 -12
- package/dist/chunks/index-CUgiXqyk.js +0 -4
- package/dist/chunks/index-C_ttE2g9.js +0 -16
- package/dist/chunks/index-CcgnA1uu.js +0 -29
- package/dist/chunks/index-Cd7aoWrX.js +0 -336
- package/dist/chunks/index-Ce-pMzBC.js +0 -19
- package/dist/chunks/index-CgYZ66P_.js +0 -187
- package/dist/chunks/index-ChcHMeAS.js +0 -35
- package/dist/chunks/index-Cixdzvwd.js +0 -682
- package/dist/chunks/index-Clq0Fl19.js +0 -15
- package/dist/chunks/index-CtxTJnIm.js +0 -58
- package/dist/chunks/index-Cv1hWa_y.js +0 -242
- package/dist/chunks/index-D25buhRm.js +0 -79
- package/dist/chunks/index-D4DqJG5_.js +0 -16
- package/dist/chunks/index-D5GGFPcS.js +0 -251
- package/dist/chunks/index-D5kiHJpX.js +0 -413
- package/dist/chunks/index-DEjRiv5B.js +0 -1
- package/dist/chunks/index-DFZsXFsx.js +0 -19
- package/dist/chunks/index-DGauWNwV.js +0 -156
- package/dist/chunks/index-DIR0jr3f.js +0 -127
- package/dist/chunks/index-DNeagy5a.js +0 -65
- package/dist/chunks/index-DO0fmDR9.js +0 -2
- package/dist/chunks/index-DSitHBEh.js +0 -36
- package/dist/chunks/index-DW7ST0tB.js +0 -1
- package/dist/chunks/index-DWfFgEXE.js +0 -110
- package/dist/chunks/index-DX6WAtmo.js +0 -874
- package/dist/chunks/index-DaPfSuLu.js +0 -393
- package/dist/chunks/index-DbKlVm7y.js +0 -74
- package/dist/chunks/index-Dgi-m1K-.js +0 -1
- package/dist/chunks/index-Dh4uigJs.js +0 -454
- package/dist/chunks/index-DnYNK1mz.js +0 -8
- package/dist/chunks/index-DnierBep.js +0 -510
- package/dist/chunks/index-DnpSGM23.js +0 -213
- package/dist/chunks/index-DntY4deR.js +0 -41
- package/dist/chunks/index-Dp4A8k6C.js +0 -103
- package/dist/chunks/index-Dphpk5r2.js +0 -1
- package/dist/chunks/index-DrBrgF-v.js +0 -49
- package/dist/chunks/index-Dr_cqQ-_.js +0 -77
- package/dist/chunks/index-Dt-nBtrQ.js +0 -26
- package/dist/chunks/index-DwTj7cFr.js +0 -57
- package/dist/chunks/index-DyZVAYLv.js +0 -52
- package/dist/chunks/index-Hh597Yu6.js +0 -121
- package/dist/chunks/index-LxkAuMAA.js +0 -1
- package/dist/chunks/index-OaQhvPR1.js +0 -46
- package/dist/chunks/index-UPr2EvBX.js +0 -149
- package/dist/chunks/index-WvrCPen2.js +0 -367
- package/dist/chunks/index-cTXIVcWI.js +0 -45
- package/dist/chunks/index-caLn8cu1.js +0 -1603
- package/dist/chunks/index-jBse-XgU.js +0 -35
- package/dist/chunks/index-oTjafsfN.js +0 -25
- package/dist/chunks/index-qNmuI3RB.js +0 -149
- package/dist/chunks/index-qiqzy9MI.js +0 -23
- package/dist/chunks/index-siqJUhKa.js +0 -1
- package/dist/chunks/index-w-G9CFId.js +0 -1
- package/dist/chunks/index-x6SeA7x7.js +0 -405
- package/dist/chunks/loading-icon-DJQIjg97.js +0 -23
- package/dist/chunks/main-DUusfqrI.js +0 -18
- package/dist/chunks/main-Dp7wHHgP.js +0 -2882
- package/dist/chunks/property-DCYiZTFF.js +0 -5
- package/dist/chunks/register-Cc9zkA5F.js +0 -1
- package/dist/chunks/register-JwwMwdRf.js +0 -1273
- package/dist/chunks/search-C3raqgOD.js +0 -30
- package/dist/chunks/search-CIhxkVjj.js +0 -239
- package/dist/chunks/select-item-4aISXm0r.js +0 -76
- package/dist/chunks/select-item-DjoxYopL.js +0 -356
- package/dist/chunks/settings-BPOpwVkr.js +0 -594
- package/dist/chunks/settings-CK2vhfPu.js +0 -78
- package/dist/chunks/text-input-BygzMjjc.js +0 -371
- package/dist/chunks/text-input-cjcnMXO-.js +0 -68
- package/dist/chunks/tooltip-content-BjdZJ_Ui.js +0 -134
- package/dist/chunks/tooltip-content-DHyDYyOH.js +0 -3
- package/src/sass/carbon-icons.scss +0 -46
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { _ as i } from "./tslib.es6-C5gLNDSD.js";
|
|
2
|
+
import { a as N, i as v, x as c } from "./main-BGOPab-5.js";
|
|
3
|
+
import { n as d } from "./property-BkjBVRuu.js";
|
|
4
|
+
import { e as F } from "./query-CbRg6ZGy.js";
|
|
5
|
+
import { e as p } from "./class-map-FWQBIzSx.js";
|
|
6
|
+
import { p as t } from "./settings-jvP7vP60.js";
|
|
7
|
+
import { i as m } from "./icon-loader-CJxyg-lp.js";
|
|
8
|
+
import { _ as D } from "./16-BiShwKPX.js";
|
|
9
|
+
import { _ as C } from "./16-BwDdccyH.js";
|
|
10
|
+
import { i as l } from "./if-non-empty-COTeEFkK.js";
|
|
11
|
+
import "./shared-enums-DALKjQ7e.js";
|
|
12
|
+
import { C as T, I as E } from "./text-input-DVdkm07X.js";
|
|
13
|
+
import { c as f } from "./carbon-element-DzDuXiyl.js";
|
|
14
|
+
var U = {
|
|
15
|
+
elem: "svg",
|
|
16
|
+
attrs: {
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
viewBox: "0 0 32 32",
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
width: 16,
|
|
21
|
+
height: 16
|
|
22
|
+
},
|
|
23
|
+
content: [{
|
|
24
|
+
elem: "path",
|
|
25
|
+
attrs: {
|
|
26
|
+
d: "M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"
|
|
27
|
+
}
|
|
28
|
+
}],
|
|
29
|
+
name: "add",
|
|
30
|
+
size: 16
|
|
31
|
+
}, P = {
|
|
32
|
+
elem: "svg",
|
|
33
|
+
attrs: {
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
viewBox: "0 0 32 32",
|
|
36
|
+
fill: "currentColor",
|
|
37
|
+
width: 16,
|
|
38
|
+
height: 16
|
|
39
|
+
},
|
|
40
|
+
content: [{
|
|
41
|
+
elem: "path",
|
|
42
|
+
attrs: {
|
|
43
|
+
d: "M8 15H24V17H8z"
|
|
44
|
+
}
|
|
45
|
+
}],
|
|
46
|
+
name: "subtract",
|
|
47
|
+
size: 16
|
|
48
|
+
}, h;
|
|
49
|
+
(function(u) {
|
|
50
|
+
u.EXCEEDED_MAXIMUM = "exceeded_maximum", u.EXCEEDED_MINIMUM = "exceeded_minimum";
|
|
51
|
+
})(h || (h = {}));
|
|
52
|
+
var y = N(['@keyframes cds--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}.cds--layout--size-xs{--cds-layout-size-height-context:var(--cds-layout-size-height-xs,1.5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-xs{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-xs,1.5rem))}.cds--layout-constraint--size__min-xs{--cds-layout-size-height-min:var(--cds-layout-size-height-xs,1.5rem)}.cds--layout-constraint--size__max-xs{--cds-layout-size-height-max:var(--cds-layout-size-height-xs,1.5rem)}.cds--layout--size-sm{--cds-layout-size-height-context:var(--cds-layout-size-height-sm,2rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-sm{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-sm,2rem))}.cds--layout-constraint--size__min-sm{--cds-layout-size-height-min:var(--cds-layout-size-height-sm,2rem)}.cds--layout-constraint--size__max-sm{--cds-layout-size-height-max:var(--cds-layout-size-height-sm,2rem)}.cds--layout--size-md{--cds-layout-size-height-context:var(--cds-layout-size-height-md,2.5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-md{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-md,2.5rem))}.cds--layout-constraint--size__min-md{--cds-layout-size-height-min:var(--cds-layout-size-height-md,2.5rem)}.cds--layout-constraint--size__max-md{--cds-layout-size-height-max:var(--cds-layout-size-height-md,2.5rem)}.cds--layout--size-lg{--cds-layout-size-height-context:var(--cds-layout-size-height-lg,3rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-lg{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-lg,3rem))}.cds--layout-constraint--size__min-lg{--cds-layout-size-height-min:var(--cds-layout-size-height-lg,3rem)}.cds--layout-constraint--size__max-lg{--cds-layout-size-height-max:var(--cds-layout-size-height-lg,3rem)}.cds--layout--size-xl{--cds-layout-size-height-context:var(--cds-layout-size-height-xl,4rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-xl{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-xl,4rem))}.cds--layout-constraint--size__min-xl{--cds-layout-size-height-min:var(--cds-layout-size-height-xl,4rem)}.cds--layout-constraint--size__max-xl{--cds-layout-size-height-max:var(--cds-layout-size-height-xl,4rem)}.cds--layout--size-2xl{--cds-layout-size-height-context:var(--cds-layout-size-height-2xl,5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-2xl{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-2xl,5rem))}.cds--layout-constraint--size__min-2xl{--cds-layout-size-height-min:var(--cds-layout-size-height-2xl,5rem)}.cds--layout-constraint--size__max-2xl{--cds-layout-size-height-max:var(--cds-layout-size-height-2xl,5rem)}.cds--layout--density-condensed{--cds-layout-density-padding-inline-context:var(--cds-layout-density-padding-inline-condensed,0.5rem);--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context)}.cds--layout-constraint--density__default-condensed{--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context,var(--cds-layout-density-padding-inline-condensed,0.5rem))}.cds--layout-constraint--density__min-condensed{--cds-layout-density-padding-inline-min:var(--cds-layout-density-padding-inline-condensed,0.5rem)}.cds--layout-constraint--density__max-condensed{--cds-layout-density-padding-inline-max:var(--cds-layout-density-padding-inline-condensed,0.5rem)}.cds--layout--density-normal{--cds-layout-density-padding-inline-context:var(--cds-layout-density-padding-inline-normal,1rem);--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context)}.cds--layout-constraint--density__default-normal{--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context,var(--cds-layout-density-padding-inline-normal,1rem))}.cds--layout-constraint--density__min-normal{--cds-layout-density-padding-inline-min:var(--cds-layout-density-padding-inline-normal,1rem)}.cds--layout-constraint--density__max-normal{--cds-layout-density-padding-inline-max:var(--cds-layout-density-padding-inline-normal,1rem)}:root{--cds-layout-size-height-xs:1.5rem;--cds-layout-size-height-sm:2rem;--cds-layout-size-height-md:2.5rem;--cds-layout-size-height-lg:3rem;--cds-layout-size-height-xl:4rem;--cds-layout-size-height-2xl:5rem;--cds-layout-size-height-min:0px;--cds-layout-size-height-max:999999999px;--cds-layout-density-padding-inline-condensed:0.5rem;--cds-layout-density-padding-inline-normal:1rem;--cds-layout-density-padding-inline-min:0px;--cds-layout-density-padding-inline-max:999999999px}.cds--assistive-text,.cds--visually-hidden{block-size:1px;border:0;margin:-1px;overflow:hidden;padding:0;position:absolute;clip:rect(0,0,0,0);inline-size:1px;visibility:inherit;white-space:nowrap}.cds--layer-one,:root{--cds-layer:var(--cds-layer-01,#f4f4f4);--cds-layer-active:var(--cds-layer-active-01,#c6c6c6);--cds-layer-background:var(--cds-layer-background-01,#fff);--cds-layer-hover:var(--cds-layer-hover-01,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-01,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-01,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-01,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-01,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-01,#a8a8a8);--cds-field:var(--cds-field-01,#f4f4f4);--cds-field-hover:var(--cds-field-hover-01,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-00,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-01,#c6c6c6);--cds-border-strong:var(--cds-border-strong-01,#8d8d8d);--cds-border-tile:var(--cds-border-tile-01,#c6c6c6)}.cds--layer-two{--cds-layer:var(--cds-layer-02,#fff);--cds-layer-active:var(--cds-layer-active-02,#c6c6c6);--cds-layer-background:var(--cds-layer-background-02,#f4f4f4);--cds-layer-hover:var(--cds-layer-hover-02,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-02,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-02,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-02,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-02,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-02,#a8a8a8);--cds-field:var(--cds-field-02,#fff);--cds-field-hover:var(--cds-field-hover-02,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-01,#c6c6c6);--cds-border-subtle-selected:var(--cds-border-subtle-selected-02,#c6c6c6);--cds-border-strong:var(--cds-border-strong-02,#8d8d8d);--cds-border-tile:var(--cds-border-tile-02,#a8a8a8)}.cds--layer-three{--cds-layer:var(--cds-layer-03,#f4f4f4);--cds-layer-active:var(--cds-layer-active-03,#c6c6c6);--cds-layer-background:var(--cds-layer-background-03,#fff);--cds-layer-hover:var(--cds-layer-hover-03,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-03,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-03,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-03,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-03,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-03,#a8a8a8);--cds-field:var(--cds-field-03,#f4f4f4);--cds-field-hover:var(--cds-field-hover-03,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-02,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-03,#c6c6c6);--cds-border-strong:var(--cds-border-strong-03,#8d8d8d);--cds-border-tile:var(--cds-border-tile-03,#c6c6c6)}.cds--layer-one.cds--layer__with-background,.cds--layer-three.cds--layer__with-background,.cds--layer-two.cds--layer__with-background{background-color:var(--cds-layer-background)}input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:hover,textarea:-webkit-autofill,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:hover{box-shadow:0 0 0 1000px var(--cds-field) inset;-webkit-text-fill-color:var(--cds-text-primary,#161616)}.cds--fieldset{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds--fieldset *,.cds--fieldset :after,.cds--fieldset :before{box-sizing:inherit}.cds--form-item{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572)}.cds--label html{font-size:100%}.cds--label body{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.cds--label code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}.cds--label strong{font-weight:600}.cds--label{color:var(--cds-text-secondary,#525252);display:inline-block;font-weight:var(--cds-label-01-font-weight,400);font-weight:400;line-height:var(--cds-label-01-line-height,1.33333);line-height:1rem;margin-block-end:.5rem;vertical-align:baseline}.cds--label,.cds--label .cds--toggletip-label{font-size:var(--cds-label-01-font-size,.75rem);letter-spacing:var(--cds-label-01-letter-spacing,.32px)}.cds--label .cds--toggletip-label{font-weight:var(--cds-label-01-font-weight,400);line-height:var(--cds-label-01-line-height,1.33333)}.cds--label--no-margin{margin-block-end:0}.cds--label+.cds--tooltip{inset-block-start:.2rem;inset-inline-start:.5rem;position:relative}.cds--label+.cds--tooltip .cds--tooltip__trigger{box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;vertical-align:baseline}.cds--label+.cds--tooltip .cds--tooltip__trigger *,.cds--label+.cds--tooltip .cds--tooltip__trigger :after,.cds--label+.cds--tooltip .cds--tooltip__trigger :before{box-sizing:inherit}.cds--label+.cds--tooltip .cds--tooltip__trigger{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;inline-size:100%;padding:0;text-align:start}.cds--label+.cds--tooltip .cds--tooltip__trigger::-moz-focus-inner{border:0}.cds--label+.cds--tooltip .cds--tooltip__trigger{align-items:center;display:flex;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);justify-content:center;letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.cds--label+.cds--tooltip .cds--tooltip__trigger:focus{outline:1px solid var(--cds-focus,#0f62fe)}.cds--label+.cds--tooltip .cds--tooltip__trigger svg{fill:var(--cds-icon-secondary,#525252)}.cds--label+.cds--tooltip .cds--tooltip__trigger svg :hover{fill:var(--cds-icon-primary,#161616)}.cds--label+.cds--toggletip{inset-block-start:.2rem;inset-inline-start:.5rem}.cds--label.cds--skeleton{background:var(--cds-skeleton-background,#e8e8e8);border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}.cds--label.cds--skeleton:active,.cds--label.cds--skeleton:focus,.cds--label.cds--skeleton:hover{border:none;cursor:default;outline:none}.cds--label.cds--skeleton:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;inset-inline-start:0;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--label.cds--skeleton:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--label.cds--skeleton{background:CanvasText}.cds--label.cds--skeleton:before{background:Canvas;forced-color-adjust:none}}.cds--label.cds--skeleton{block-size:.875rem;inline-size:4.6875rem}input[type=number],input[type=text].cds--number{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif}.cds--combo-box[data-invalid]:not(.cds--multi-select--selected) .cds--text-input:not(:focus),.cds--list-box[data-invalid]:not(.cds--multi-select--invalid--focused,.cds--combo-box--invalid--focused),.cds--number[data-invalid] input[type=number]:not(:focus),.cds--number[data-invalid] input[type=text]:not(:focus),.cds--select-input__wrapper[data-invalid] .cds--select-input:not(:focus),.cds--text-area__wrapper[data-invalid]>.cds--text-area--invalid:not(:focus),.cds--text-input__field-wrapper[data-invalid]>.cds--text-input--invalid:not(:focus),input[data-invalid]:not(:focus){outline:2px solid var(--cds-support-error,#da1e28);outline-offset:-2px}@media screen and (prefers-contrast){.cds--combo-box[data-invalid]:not(.cds--multi-select--selected) .cds--text-input:not(:focus),.cds--list-box[data-invalid]:not(.cds--multi-select--invalid--focused,.cds--combo-box--invalid--focused),.cds--number[data-invalid] input[type=number]:not(:focus),.cds--number[data-invalid] input[type=text]:not(:focus),.cds--select-input__wrapper[data-invalid] .cds--select-input:not(:focus),.cds--text-area__wrapper[data-invalid]>.cds--text-area--invalid:not(:focus),.cds--text-input__field-wrapper[data-invalid]>.cds--text-input--invalid:not(:focus),input[data-invalid]:not(:focus){outline-style:dotted}}.cds--date-picker-input__wrapper--invalid~.cds--form-requirement,.cds--date-picker-input__wrapper--warn~.cds--form-requirement,.cds--date-picker-input__wrapper~.cds--form-requirement,.cds--list-box--warning~.cds--form-requirement,.cds--list-box[data-invalid]~.cds--form-requirement,.cds--number[data-invalid] .cds--number__input-wrapper~.cds--form-requirement,.cds--number__input-wrapper--warning~.cds--form-requirement,.cds--select--warning .cds--select-input__wrapper~.cds--form-requirement,.cds--select-input__wrapper[data-invalid]~.cds--form-requirement,.cds--text-area__wrapper--warn~.cds--form-requirement,.cds--text-area__wrapper[data-invalid]~.cds--form-requirement,.cds--text-input__field-wrapper--warning>.cds--text-input~.cds--form-requirement,.cds--text-input__field-wrapper--warning~.cds--form-requirement,.cds--text-input__field-wrapper[data-invalid]~.cds--form-requirement,.cds--time-picker--invalid~.cds--form-requirement,.cds--time-picker--warning~.cds--form-requirement,.cds--time-picker[data-invalid]~.cds--form-requirement,input[data-invalid]~.cds--form-requirement{display:block;font-weight:400;max-block-size:12.5rem;overflow:visible}.cds--select--inline.cds--select--warning .cds--select-input--inline__wrapper~.cds--form-requirement,.cds--select-input--inline__wrapper[data-invalid]~.cds--form-requirement{display:inline-flex;inline-size:100%;margin:0;margin-block-end:0;max-block-size:100%;overflow:visible;padding-inline-start:.5rem}.cds--date-picker-input__wrapper--invalid~.cds--form-requirement,.cds--date-picker-input__wrapper~.cds--form-requirement,.cds--list-box[data-invalid]~.cds--form-requirement,.cds--number[data-invalid] .cds--number__input-wrapper~.cds--form-requirement,.cds--select-input--inline__wrapper[data-invalid]~.cds--form-requirement,.cds--select-input__wrapper[data-invalid]~.cds--form-requirement,.cds--text-area__wrapper[data-invalid]~.cds--form-requirement,.cds--text-input__field-wrapper[data-invalid]~.cds--form-requirement,.cds--time-picker--invalid~.cds--form-requirement,.cds--time-picker[data-invalid]~.cds--form-requirement,input[data-invalid]~.cds--form-requirement{color:var(--cds-text-error,#da1e28)}.cds--form--fluid .cds--text-input__field-wrapper--warning,.cds--form--fluid .cds--text-input__field-wrapper[data-invalid]{display:block}.cds--form--fluid input[data-invalid]{outline:none}.cds--form--fluid .cds--form-requirement{margin:0;padding:.5rem 2.5rem .5rem 1rem}input:not(output,[data-invalid]):-moz-ui-invalid{box-shadow:none}.cds--form-requirement html{font-size:100%}.cds--form-requirement body{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.cds--form-requirement code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}.cds--form-requirement strong{font-weight:600}.cds--form-requirement{display:none;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);margin:.25rem 0 0;max-block-size:0;overflow:hidden}.cds--select--inline .cds--form__helper-text{margin-block-start:0}.cds--form__helper-text{color:var(--cds-text-helper,#6f6f6f);font-size:var(--cds-helper-text-01-font-size,.75rem);inline-size:100%;letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);line-height:var(--cds-helper-text-01-line-height,1.33333);margin-block-start:.25rem;opacity:1;z-index:0}.cds--form__helper-text--disabled,.cds--label--disabled,fieldset[disabled] .cds--form__helper-text,fieldset[disabled] .cds--label{color:var(--cds-text-disabled,hsla(0,0%,9%,.25))}.cds--number__controls:hover .cds--number__control-btn:after,.cds--number__input-wrapper--decorator .cds--number__rule-divider,.cds--number__input-wrapper--slug .cds--number__rule-divider{display:none}.cds--number__input-wrapper--decorator .cds--number__control-btn:hover,.cds--number__input-wrapper--slug .cds--number__control-btn:hover{box-shadow:0 -1px 0 var(--cds-ai-border-strong,#4589ff) inset}.cds--number__controls:focus-within .cds--number__control-btn:after{display:none}.cds--number html{font-size:100%}.cds--number body{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.cds--number code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}.cds--number strong{font-weight:600}.cds--number{display:flex;flex-direction:column;inline-size:100%;position:relative}.cds--number .cds--number__input-wrapper--warning input[type=number],.cds--number .cds--number__input-wrapper--warning input[type=text]{padding-inline-end:8rem}.cds--number input[type=number],.cds--number input[type=text]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;background-color:var(--cds-field);block-size:2.5rem;border:0;border-block-end:.0625rem solid var(--cds-border-strong);border-radius:0;box-sizing:border-box;color:var(--cds-text-primary,#161616);display:inline-flex;font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);font-weight:400;inline-size:100%;letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572);min-inline-size:9.375rem;outline:2px solid transparent;outline-offset:-2px;padding-inline:1rem 6rem;transition:background-color 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9)}.cds--number input[type=number]:focus,.cds--number input[type=text]:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds--number input[type=number]:focus,.cds--number input[type=text]:focus{outline-style:dotted}}.cds--number input[type=number]:disabled~.cds--number__controls,.cds--number input[type=text]:disabled~.cds--number__controls{cursor:not-allowed;pointer-events:none}.cds--number input[type=number]:disabled~.cds--number__controls svg,.cds--number input[type=text]:disabled~.cds--number__controls svg{fill:var(--cds-icon-disabled,hsla(0,0%,9%,.25))}.cds--number input[type=number]::-ms-clear,.cds--number input[type=text]::-ms-clear{display:none}.cds--number input[type=number]::-webkit-inner-spin-button,.cds--number input[type=text]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.cds--number input[type=number][data-invalid],.cds--number input[type=text][data-invalid]{padding-inline-end:8rem}.cds--number--lg.cds--number input[type=number],.cds--number--lg.cds--number input[type=text]{padding-inline-end:7rem}.cds--number--lg.cds--number .cds--number__input-wrapper--warning input[type=number],.cds--number--lg.cds--number .cds--number__input-wrapper--warning input[type=text],.cds--number--lg.cds--number input[type=number][data-invalid],.cds--number--lg.cds--number input[type=text][data-invalid]{padding-inline-end:9rem}.cds--number--sm.cds--number input[type=number],.cds--number--sm.cds--number input[type=text]{padding-inline-end:5rem}.cds--number--sm.cds--number .cds--number__input-wrapper--warning input[type=number],.cds--number--sm.cds--number .cds--number__input-wrapper--warning input[type=text],.cds--number--sm.cds--number input[type=number][data-invalid],.cds--number--sm.cds--number input[type=text][data-invalid]{padding-inline-end:7rem}.cds--number input[type=number]:disabled,.cds--number input[type=text]:disabled{background-color:var(--cds-field);color:var(--cds-text-disabled,hsla(0,0%,9%,.25));cursor:not-allowed}.cds--number__input-wrapper{align-items:center;display:flex;position:relative}.cds--number__controls html{font-size:100%}.cds--number__controls body{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.cds--number__controls code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}.cds--number__controls strong{font-weight:600}.cds--number__controls{align-items:center;block-size:100%;display:flex;flex-direction:row;inline-size:5rem;inset-block-start:50%;inset-inline-end:0;justify-content:center;position:absolute;transform:translateY(-50%)}.cds--number__control-btn{box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;vertical-align:baseline}.cds--number__control-btn *,.cds--number__control-btn :after,.cds--number__control-btn :before{box-sizing:inherit}.cds--number__control-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;inline-size:100%;padding:0;text-align:start}.cds--number__control-btn::-moz-focus-inner{border:0}.cds--number__control-btn{align-items:center;block-size:100%;color:var(--cds-icon-primary,#161616);display:inline-flex;justify-content:center;position:relative}.cds--number__control-btn svg{fill:currentColor}.cds--number__control-btn:focus{outline:1px solid var(--cds-focus,#0f62fe)}@media screen and (prefers-contrast){.cds--number__control-btn:focus{outline-style:dotted}}.cds--number__control-btn:focus{color:var(--cds-icon-primary,#161616);outline-offset:-2px;outline-width:2px}.cds--number__control-btn:hover{background-color:var(--cds-field-hover);box-shadow:0 -1px 0 var(--cds-border-strong) inset;color:var(--cds-icon-primary,#161616);cursor:pointer}.cds--number__control-btn:disabled{border-block-end-color:transparent;color:var(--cds-text-disabled,hsla(0,0%,9%,.25));cursor:not-allowed}.cds--number__control-btn.down-icon{order:1}.cds--number__control-btn.up-icon{order:2}.cds--number input[type=number][data-invalid]~.cds--number__controls .cds--number__control-btn,.cds--number input[type=text][data-invalid]~.cds--number__controls .cds--number__control-btn{border-block-end-color:var(--cds-support-error,#da1e28)}.cds--number input[type=number]:focus~.cds--number__controls .cds--number__control-btn,.cds--number input[type=text]:focus~.cds--number__controls .cds--number__control-btn{border-color:var(--cds-focus,#0f62fe);border-style:solid;border-width:2px 0;box-shadow:none;outline-offset:-2px}.cds--number input[type=number]:focus~.cds--number__controls .cds--number__control-btn:last-of-type:hover,.cds--number input[type=text]:focus~.cds--number__controls .cds--number__control-btn:last-of-type:hover{box-shadow:-4px 0 0 -2px var(--cds-focus,#0f62fe) inset}.cds--number input[type=number][data-invalid]:not(:focus)~.cds--number__controls .cds--number__control-btn:last-of-type:hover,.cds--number input[type=text][data-invalid]:not(:focus)~.cds--number__controls .cds--number__control-btn:last-of-type:hover{box-shadow:-4px 0 0 -2px var(--cds-support-error,#da1e28) inset}.cds--number input[type=number][data-invalid]:not(:focus)~.cds--number__controls .cds--number__control-btn:hover,.cds--number input[type=text][data-invalid]:not(:focus)~.cds--number__controls .cds--number__control-btn:hover{border-color:var(--cds-support-error,#da1e28);border-style:solid;border-width:2px 0;box-shadow:none;outline-offset:-2px}.cds--number input[type=number][data-invalid]:not(:focus)~.cds--number__controls .cds--number__control-btn:focus:hover,.cds--number input[type=text][data-invalid]:not(:focus)~.cds--number__controls .cds--number__control-btn:focus:hover{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds--number input[type=number][data-invalid]:not(:focus)~.cds--number__controls .cds--number__control-btn:focus:hover,.cds--number input[type=text][data-invalid]:not(:focus)~.cds--number__controls .cds--number__control-btn:focus:hover{outline-style:dotted}}.cds--number__rule-divider{background-color:var(--cds-border-subtle);block-size:1rem;inline-size:.0625rem;position:absolute;z-index:6000}.cds--number__rule-divider:first-of-type{order:0}.cds--number__controls .cds--number__rule-divider:first-of-type{background-color:transparent;inset-inline-start:0}.cds--number__invalid+.cds--number__controls .cds--number__rule-divider:first-of-type{background-color:var(--cds-border-subtle)}.cds--number--light .cds--number__invalid+.cds--number__controls .cds--number__rule-divider:first-of-type,.cds--number--light .cds--number__rule-divider{background-color:var(--cds-border-subtle-02,#e0e0e0)}.cds--number input[type=number]:disabled+.cds--number__controls .cds--number__rule-divider:first-of-type,.cds--number input[type=text]:disabled+.cds--number__controls .cds--number__rule-divider:first-of-type{background-color:transparent}.cds--number input[type=number]:disabled+.cds--number__controls .cds--number__rule-divider,.cds--number input[type=text]:disabled+.cds--number__controls .cds--number__rule-divider{background-color:var(--cds-icon-disabled,hsla(0,0%,9%,.25))}.cds--number__control-btn:focus~.cds--number__rule-divider{background-color:transparent}.cds--number__invalid{position:absolute;fill:var(--cds-support-error,#da1e28);inset-inline-end:6rem}.cds--number--lg .cds--number__invalid{inset-inline-end:7rem}.cds--number--sm .cds--number__invalid{inset-inline-end:5rem}.cds--number__invalid+.cds--number__rule-divider{inset-inline-end:5rem;position:absolute}.cds--number--lg .cds--number__invalid+.cds--number__rule-divider{inset-inline-end:6rem}.cds--number--sm .cds--number__invalid+.cds--number__rule-divider{inset-inline-end:4rem}.cds--number__control-btn.down-icon:focus~.cds--number__rule-divider,.cds--number__control-btn.down-icon:hover~.cds--number__rule-divider,.cds--number__control-btn.up-icon:focus+.cds--number__rule-divider,.cds--number__control-btn.up-icon:hover+.cds--number__rule-divider{background-color:transparent}.cds--number__invalid--warning{fill:var(--cds-support-warning,#f1c21b)}.cds--number__invalid--warning path:first-of-type{fill:#000;opacity:1}.cds--number--lg input[type=number],.cds--number--lg input[type=text]{block-size:3rem}.cds--number--lg .cds--number__controls{inline-size:6rem}.cds--number--lg .cds--number__control-btn{inline-size:3rem}.cds--number--sm input[type=number],.cds--number--sm input[type=text]{block-size:2rem}.cds--number--sm .cds--number__controls{inline-size:4rem}.cds--number--sm .cds--number__control-btn{inline-size:2rem}.cds--number--nolabel .cds--label+.cds--form__helper-text{margin-block-start:0}.cds--number--nosteppers input[type=number],.cds--number--nosteppers input[type=text]{padding-inline-end:0}.cds--number--nosteppers .cds--number__input-wrapper--warning input[type=number],.cds--number--nosteppers .cds--number__input-wrapper--warning input[type=text],.cds--number--nosteppers input[type=number][data-invalid],.cds--number--nosteppers input[type=text][data-invalid]{padding-inline-end:3rem}.cds--number--nosteppers .cds--number__invalid{inset-inline-end:1rem}.cds--number--readonly input[type=number],.cds--number--readonly input[type=text]{background:transparent;border-block-end-color:var(--cds-border-subtle)}.cds--number--readonly .cds--number__control-btn{color:var(--cds-icon-disabled,hsla(0,0%,9%,.25));pointer-events:none}.cds--number--readonly .cds--number__control-btn:hover{background-color:transparent;cursor:pointer}.cds--number--readonly input[type=number]:focus~.cds--number__controls .cds--number__control-btn:hover,.cds--number--readonly input[type=text]:focus~.cds--number__controls .cds--number__control-btn:hover{outline:none}.cds--number--readonly .cds--number__controls:hover .cds--number__rule-divider:not(:first-of-type){background-color:var(--cds-border-subtle)}.cds--number__input-wrapper--decorator .cds--number__input-inner-wrapper--decorator>*,.cds--number__input-wrapper--slug .cds--ai-label,.cds--number__input-wrapper--slug .cds--slug{inset-block-start:50%;inset-inline-end:6rem;position:absolute;transform:translateY(-50%)}.cds--number__input-wrapper--decorator .cds--number__input-inner-wrapper--decorator:not(:has(.cds--ai-label))>*{block-size:1rem}.cds--number__input-wrapper--decorator .cds--number__control-btn:after,.cds--number__input-wrapper--decorator .cds--number__control-btn:before,.cds--number__input-wrapper--decorator .cds--number__input-inner-wrapper--decorator>:before,.cds--number__input-wrapper--slug .cds--ai-label:before,.cds--number__input-wrapper--slug .cds--number__control-btn:after,.cds--number__input-wrapper--slug .cds--number__control-btn:before,.cds--number__input-wrapper--slug .cds--slug:before{background-color:var(--cds-border-subtle);block-size:1rem;content:"";inline-size:.0625rem;position:absolute}.cds--number__input-wrapper--decorator .cds--number__input-inner-wrapper--decorator>:before,.cds--number__input-wrapper--slug .cds--ai-label:before,.cds--number__input-wrapper--slug .cds--slug:before{display:none;inset-inline-start:-1rem}.cds--number__input-wrapper--decorator .cds--number__input-inner-wrapper--decorator .cds--ai-label--revert:before,.cds--number__input-wrapper--slug .cds--ai-label--revert:before,.cds--number__input-wrapper--slug .cds--slug--revert:before{inset-block-start:.5rem;inset-inline-start:-.5rem}.cds--number__control-btn:after{display:block;inset-inline-end:0}.cds--number__input-wrapper--decorator .cds--number__control-btn:before,.cds--number__input-wrapper--slug .cds--number__control-btn:before{display:block;inset-inline-end:2.5rem}.cds--number__input-wrapper--decorator .cds--number__control-btn:focus:before,.cds--number__input-wrapper--slug .cds--number__control-btn:focus:before{display:none}.cds--number__control-btn:hover:after,.cds--number__control-btn:hover:before{display:none;inset-inline-end:0}.cds--number__input-wrapper:has(.cds--number__control-btn:hover)~.cds--number__input-wrapper--decorator:after,.cds--number__input-wrapper:has(.cds--number__control-btn:hover)~.cds--number__input-wrapper--slug:after{display:none}.cds--number__control-btn:has(.up-icon):after,.cds--number__control-btn:has(.up-icon):before{display:none}.cds--number__input-wrapper--decorator .cds--number__invalid,.cds--number__input-wrapper--slug .cds--number__invalid{inset-inline-end:9rem}.cds--number__input-wrapper--decorator:has(.cds--number__invalid) .cds--number__input-inner-wrapper--decorator>:before,.cds--number__input-wrapper--slug:has(.cds--number__invalid) .cds--ai-label:before,.cds--number__input-wrapper--slug:has(.cds--number__invalid) .cds--slug:before{display:block}.cds--number .cds--number__input-wrapper--decorator input[data-invalid],.cds--number .cds--number__input-wrapper--decorator.cds--number__input-wrapper--warning input,.cds--number .cds--number__input-wrapper--slug input[data-invalid],.cds--number .cds--number__input-wrapper--slug.cds--number__input-wrapper--warning input{padding-inline-end:9rem}.cds--number__input-wrapper--decorator input[type=number]:has(~.cds--number__input-inner-wrapper--decorator .cds--ai-label):not(:has(~.cds--number__input-inner-wrapper--decorator .cds--ai-label--revert)),.cds--number__input-wrapper--decorator input[type=text]:has(~.cds--number__input-inner-wrapper--decorator .cds--ai-label):not(:has(~.cds--number__input-inner-wrapper--decorator .cds--ai-label--revert)),.cds--number__input-wrapper--slug input[type=number]:disabled,.cds--number__input-wrapper--slug input[type=number]:has(~.cds--ai-label):not(:has(~.cds--ai-label--revert)),.cds--number__input-wrapper--slug input[type=number]:has(~.cds--slug):not(:has(~.cds--slug--revert)),.cds--number__input-wrapper--slug input[type=text]:disabled,.cds--number__input-wrapper--slug input[type=text]:has(~.cds--ai-label):not(:has(~.cds--ai-label--revert)),.cds--number__input-wrapper--slug input[type=text]:has(~.cds--slug):not(:has(~.cds--slug--revert)){background-image:linear-gradient(0deg,var(--cds-ai-aura-start-sm,rgba(69,137,255,.16)) 0,15%,var(--cds-ai-aura-end,hsla(0,0%,100%,0)) 50%,transparent 100%);border-block-end-color:var(--cds-ai-border-strong,#4589ff);padding-inline-end:9.0625rem}.cds--number.cds--skeleton{background:var(--cds-skeleton-background,#e8e8e8);border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}.cds--number.cds--skeleton:active,.cds--number.cds--skeleton:focus,.cds--number.cds--skeleton:hover{border:none;cursor:default;outline:none}.cds--number.cds--skeleton:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;inset-inline-start:0;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--number.cds--skeleton:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--number.cds--skeleton{background:CanvasText}.cds--number.cds--skeleton:before{background:Canvas;forced-color-adjust:none}}.cds--number.cds--skeleton{inline-size:100%}.cds--number.cds--skeleton input[type=number],.cds--number.cds--skeleton input[type=text]{display:none}.cds--number.cds--skeleton.cds--number--sm{block-size:2rem}.cds--number.cds--skeleton.cds--number--md{block-size:2.5rem}.cds--number.cds--skeleton.cds--number--lg{block-size:3rem}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--number__control-btn:focus,.cds--number__control-btn:hover{color:Highlight;outline:1px solid Highlight}.cds--number__control-btn{outline:1px solid transparent}}:host(cds-number-input),:host(cds-number-input-skeleton){inline-size:100%;outline:none}:host(cds-number-input) .cds--form-requirement[hidden],:host(cds-number-input-skeleton) .cds--form-requirement[hidden]{display:none}.cds--number .cds--number__invalid~input[type=number]:disabled+.cds--number__controls .cds--number__rule-divider:first-of-type,.cds--number__invalid~.cds--number__controls .cds--number__rule-divider:first-of-type{background-color:var(--cds-border-subtle)}.cds--number--readonly .cds--number__controls .cds--number__control-btn{border-block-end:0}:host(cds-number-input) ::slotted(cds-ai-label),:host(cds-number-input) ::slotted(cds-slug){inset-block-start:50%;inset-inline-end:6rem;position:absolute}:host(cds-number-input) ::slotted(cds-ai-label:not([revert-active])),:host(cds-number-input) ::slotted(cds-slug:not([revert-active])){transform:translateY(-50%)}:host(cds-number-input) .cds--number[data-invalid] ::slotted(cds-ai-label):after,:host(cds-number-input) .cds--number[data-invalid] ::slotted(cds-slug):after,:host(cds-number-input[invalid]) ::slotted(cds-ai-label):after,:host(cds-number-input[invalid]) ::slotted(cds-slug):after,:host(cds-number-input[warn]) ::slotted(cds-ai-label):after,:host(cds-number-input[warn]) ::slotted(cds-slug):after{background-color:var(--cds-border-subtle);block-size:100%;content:"";inline-size:.0625rem;inset-inline-start:-1rem;position:absolute}:host(cds-number-input) .up-icon:after,:host(cds-number-input) .up-icon:before{display:none}:host(cds-number-input[ai-label]) input{background-image:linear-gradient(0deg,var(--cds-ai-aura-start-sm,rgba(69,137,255,.16)) 0,15%,var(--cds-ai-aura-end,hsla(0,0%,100%,0)) 50%,transparent 100%);border-block-end-color:var(--cds-ai-border-strong,#4589ff)}']);
|
|
53
|
+
let s = class extends T {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments), this._preventWheel = (e) => {
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
}, this._min = "", this._max = "", this._step = "1", this.iconDescription = "", this.incrementButtonAssistiveText = "increase number input", this.decrementButtonAssistiveText = "decrease number input", this.hideSteppers = !1, this.allowEmpty = !1, this.defaultValue = "", this.disableWheel = !1, this.size = E.MEDIUM, this.getDecimalPlaces = (e) => {
|
|
58
|
+
const n = e.toString().split(".");
|
|
59
|
+
return n[1] ? n[1].length : 0;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Handles `input` event on the `input` in the shadow DOM.
|
|
64
|
+
*/
|
|
65
|
+
_handleInput(e) {
|
|
66
|
+
const { target: n } = e, { value: a } = n, o = this._value !== void 0 && Number(a) > Number(this._value) ? "up" : "down";
|
|
67
|
+
this.dispatchEvent(new CustomEvent(this.constructor.eventInput, {
|
|
68
|
+
bubbles: !0,
|
|
69
|
+
composed: !0,
|
|
70
|
+
cancelable: !1,
|
|
71
|
+
detail: {
|
|
72
|
+
value: a,
|
|
73
|
+
direction: o
|
|
74
|
+
}
|
|
75
|
+
})), this._value = a;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Handles `click` event on the up button in the shadow DOM.
|
|
79
|
+
*/
|
|
80
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
81
|
+
_handleUserInitiatedStepDown(e) {
|
|
82
|
+
const { _input: n } = this;
|
|
83
|
+
this.stepDown(), this.dispatchEvent(new CustomEvent(this.constructor.eventInput, {
|
|
84
|
+
bubbles: !0,
|
|
85
|
+
composed: !0,
|
|
86
|
+
cancelable: !1,
|
|
87
|
+
detail: {
|
|
88
|
+
value: n.value,
|
|
89
|
+
direction: "down"
|
|
90
|
+
}
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Handles `click` event on the down button in the shadow DOM.
|
|
95
|
+
*/
|
|
96
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
97
|
+
_handleUserInitiatedStepUp(e) {
|
|
98
|
+
const { _input: n } = this;
|
|
99
|
+
this.stepUp(), this.dispatchEvent(new CustomEvent(this.constructor.eventInput, {
|
|
100
|
+
bubbles: !0,
|
|
101
|
+
composed: !0,
|
|
102
|
+
cancelable: !1,
|
|
103
|
+
detail: {
|
|
104
|
+
value: n.value,
|
|
105
|
+
direction: "up"
|
|
106
|
+
}
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Handles `focus` event on the `input` in the shadow DOM.
|
|
111
|
+
*/
|
|
112
|
+
_handleFocus(e) {
|
|
113
|
+
this.disableWheel && e.target.addEventListener("wheel", this._preventWheel, { passive: !1 });
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Handles `blur` event on the `input` in the shadow DOM.
|
|
117
|
+
*/
|
|
118
|
+
_handleBlur(e) {
|
|
119
|
+
this.disableWheel && e.target.removeEventListener("wheel", this._preventWheel);
|
|
120
|
+
}
|
|
121
|
+
_getInputValidity() {
|
|
122
|
+
var e, n;
|
|
123
|
+
return this.invalid ? !1 : this.value === "" ? this.allowEmpty : !(((e = this._input) === null || e === void 0 ? void 0 : e.valueAsNumber) > Number(this.max) || ((n = this._input) === null || n === void 0 ? void 0 : n.valueAsNumber) < Number(this.min));
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The minimum value allowed in the input
|
|
127
|
+
*/
|
|
128
|
+
get min() {
|
|
129
|
+
return this._min.toString();
|
|
130
|
+
}
|
|
131
|
+
set min(e) {
|
|
132
|
+
const n = this.min;
|
|
133
|
+
this._min = e, this.requestUpdate("min", n);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The maximum value allowed in the input
|
|
137
|
+
*/
|
|
138
|
+
get max() {
|
|
139
|
+
return this._max.toString();
|
|
140
|
+
}
|
|
141
|
+
set max(e) {
|
|
142
|
+
const n = this.max;
|
|
143
|
+
this._max = e, this.requestUpdate("max", n);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The amount the value should increase or decrease by
|
|
147
|
+
*/
|
|
148
|
+
get step() {
|
|
149
|
+
return this._step.toString();
|
|
150
|
+
}
|
|
151
|
+
set step(e) {
|
|
152
|
+
const n = this.step;
|
|
153
|
+
this._step = e, this.requestUpdate("step", n);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Handles incrementing the value in the input
|
|
157
|
+
*/
|
|
158
|
+
stepUp() {
|
|
159
|
+
const e = Number(this._input.value), n = e + Number(this.step), a = Math.max(this.getDecimalPlaces(e), this.getDecimalPlaces(Number(this.step))), o = parseFloat(n.toFixed(a));
|
|
160
|
+
this._value = String(o), this.value = this._value;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Handles decrementing the value in the input
|
|
164
|
+
*/
|
|
165
|
+
stepDown() {
|
|
166
|
+
const e = Number(this._input.value), n = e - Number(this.step), a = Math.max(this.getDecimalPlaces(e), this.getDecimalPlaces(Number(this.step))), o = parseFloat(n.toFixed(a));
|
|
167
|
+
this._value = String(o), this.value = this._value;
|
|
168
|
+
}
|
|
169
|
+
render() {
|
|
170
|
+
const { _handleInput: e, _handleUserInitiatedStepDown: n, _handleUserInitiatedStepUp: a, _handleFocus: o, _handleBlur: g } = this, _ = this._getInputValidity(), x = m(D, {
|
|
171
|
+
class: `${t}--number__invalid`
|
|
172
|
+
}), w = m(C, {
|
|
173
|
+
class: `${t}--number__invalid ${t}--number__invalid--warning`
|
|
174
|
+
}), r = {
|
|
175
|
+
disabled: !this.readonly && this.disabled,
|
|
176
|
+
invalid: !this.readonly && !_,
|
|
177
|
+
warn: !this.readonly && _ && this.warn,
|
|
178
|
+
"slot-name": "",
|
|
179
|
+
"slot-text": "",
|
|
180
|
+
icon: null
|
|
181
|
+
}, z = p({
|
|
182
|
+
[`${t}--number`]: !0,
|
|
183
|
+
[`${t}--number--${this.size}`]: this.size,
|
|
184
|
+
[`${t}--number--nosteppers`]: this.hideSteppers,
|
|
185
|
+
[`${t}--number--readonly`]: this.readonly
|
|
186
|
+
}), k = p({
|
|
187
|
+
[`${t}--number__input-wrapper`]: !0,
|
|
188
|
+
[`${t}--number__input-wrapper--warning`]: r.warn,
|
|
189
|
+
[`${t}--number__input-wrapper--decorator`]: this._hasAILabel
|
|
190
|
+
}), $ = p({
|
|
191
|
+
[`${t}--label`]: !0,
|
|
192
|
+
[`${t}--label--disabled`]: r.disabled,
|
|
193
|
+
[`${t}--visually-hidden`]: this.hideLabel
|
|
194
|
+
}), S = p({
|
|
195
|
+
[`${t}--form__helper-text`]: !0,
|
|
196
|
+
[`${t}--form__helper-text--disabled`]: r.disabled
|
|
197
|
+
}), q = this.hasAttribute("value") ? this._value : this.defaultValue || this._value, I = c`
|
|
198
|
+
<button
|
|
199
|
+
class="${t}--number__control-btn up-icon"
|
|
200
|
+
aria-label="${this.iconDescription || this.incrementButtonAssistiveText}"
|
|
201
|
+
aria-live="polite"
|
|
202
|
+
aria-atomic="true"
|
|
203
|
+
type="button"
|
|
204
|
+
?disabled=${r.disabled}
|
|
205
|
+
@click=${a}>
|
|
206
|
+
${m(U)}
|
|
207
|
+
</button>
|
|
208
|
+
<div class="${t}--number__rule-divider"></div>
|
|
209
|
+
`, B = c`
|
|
210
|
+
<button
|
|
211
|
+
class="${t}--number__control-btn down-icon"
|
|
212
|
+
aria-label="${this.iconDescription || this.decrementButtonAssistiveText}"
|
|
213
|
+
aria-live="polite"
|
|
214
|
+
aria-atomic="true"
|
|
215
|
+
type="button"
|
|
216
|
+
?disabled=${r.disabled}
|
|
217
|
+
@click=${n}>
|
|
218
|
+
${m(P)}
|
|
219
|
+
</button>
|
|
220
|
+
<div class="${t}--number__rule-divider"></div>
|
|
221
|
+
`, M = c`
|
|
222
|
+
<input
|
|
223
|
+
autocomplete="${this.autocomplete}"
|
|
224
|
+
?autofocus="${this.autofocus}"
|
|
225
|
+
?data-invalid="${r.invalid}"
|
|
226
|
+
?disabled="${r.disabled}"
|
|
227
|
+
id="input"
|
|
228
|
+
name="${l(this.name)}"
|
|
229
|
+
pattern="${l(this.pattern)}"
|
|
230
|
+
?readonly="${this.readonly}"
|
|
231
|
+
?required="${this.required}"
|
|
232
|
+
type="number"
|
|
233
|
+
.value="${q}"
|
|
234
|
+
@input="${e}"
|
|
235
|
+
@focus="${o}"
|
|
236
|
+
@blur="${g}"
|
|
237
|
+
min="${l(this.min)}"
|
|
238
|
+
max="${l(this.max)}"
|
|
239
|
+
step="${l(this.step)}"
|
|
240
|
+
role="alert"
|
|
241
|
+
aria-atomic="true" />
|
|
242
|
+
`;
|
|
243
|
+
return r.invalid ? (r.icon = x, r["slot-name"] = "invalid-text", r["slot-text"] = this.invalidText) : r.warn && (r.icon = w, r["slot-name"] = "warn-text", r["slot-text"] = this.warnText), c`
|
|
244
|
+
<div class="${z}" ?data-invalid=${r.invalid}>
|
|
245
|
+
<label class="${$}" for="input">
|
|
246
|
+
<slot name="label-text"> ${this.label} </slot>
|
|
247
|
+
</label>
|
|
248
|
+
<div class="${k}">
|
|
249
|
+
${r.icon} ${M}
|
|
250
|
+
<slot name="ai-label" @slotchange="${this._handleSlotChange}"></slot>
|
|
251
|
+
<slot name="slug" @slotchange="${this._handleSlotChange}"></slot>
|
|
252
|
+
<div class="${t}--number__controls">
|
|
253
|
+
${this.hideSteppers ? null : c`${B} ${I}`}
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
<div
|
|
257
|
+
class="${S}"
|
|
258
|
+
?hidden="${r.invalid || r.warn}">
|
|
259
|
+
<slot name="helper-text"> ${this.helperText} </slot>
|
|
260
|
+
</div>
|
|
261
|
+
<div
|
|
262
|
+
class="${t}--form-requirement"
|
|
263
|
+
?hidden="${!r.invalid && !r.warn}">
|
|
264
|
+
<slot name="${r["slot-name"]}">
|
|
265
|
+
${r["slot-text"]}
|
|
266
|
+
</slot>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
`;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* The name of the custom event fired after the value is changed upon a user gesture.
|
|
273
|
+
*/
|
|
274
|
+
static get eventInput() {
|
|
275
|
+
return `${t}-number-input`;
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
s.shadowRootOptions = Object.assign(Object.assign({}, v.shadowRootOptions), { delegatesFocus: !0 });
|
|
279
|
+
s.styles = y;
|
|
280
|
+
i([
|
|
281
|
+
F("input")
|
|
282
|
+
], s.prototype, "_input", void 0);
|
|
283
|
+
i([
|
|
284
|
+
d({ reflect: !0 })
|
|
285
|
+
], s.prototype, "min", null);
|
|
286
|
+
i([
|
|
287
|
+
d({ reflect: !0 })
|
|
288
|
+
], s.prototype, "max", null);
|
|
289
|
+
i([
|
|
290
|
+
d({ reflect: !0 })
|
|
291
|
+
], s.prototype, "step", null);
|
|
292
|
+
i([
|
|
293
|
+
d({ attribute: "icon-description" })
|
|
294
|
+
], s.prototype, "iconDescription", void 0);
|
|
295
|
+
i([
|
|
296
|
+
d({ attribute: "increment-button-assistive-text" })
|
|
297
|
+
], s.prototype, "incrementButtonAssistiveText", void 0);
|
|
298
|
+
i([
|
|
299
|
+
d({ attribute: "decrement-button-assistive-text" })
|
|
300
|
+
], s.prototype, "decrementButtonAssistiveText", void 0);
|
|
301
|
+
i([
|
|
302
|
+
d({ type: Boolean, attribute: "hide-steppers", reflect: !0 })
|
|
303
|
+
], s.prototype, "hideSteppers", void 0);
|
|
304
|
+
i([
|
|
305
|
+
d({ type: Boolean, attribute: "allow-empty", reflect: !0 })
|
|
306
|
+
], s.prototype, "allowEmpty", void 0);
|
|
307
|
+
i([
|
|
308
|
+
d({ attribute: "default-value" })
|
|
309
|
+
], s.prototype, "defaultValue", void 0);
|
|
310
|
+
i([
|
|
311
|
+
d({ type: Boolean, attribute: "disable-wheel", reflect: !0 })
|
|
312
|
+
], s.prototype, "disableWheel", void 0);
|
|
313
|
+
i([
|
|
314
|
+
d({ reflect: !0 })
|
|
315
|
+
], s.prototype, "size", void 0);
|
|
316
|
+
s = i([
|
|
317
|
+
f(`${t}-number-input`)
|
|
318
|
+
], s);
|
|
319
|
+
let b = class extends v {
|
|
320
|
+
constructor() {
|
|
321
|
+
super(...arguments), this.hideLabel = !1;
|
|
322
|
+
}
|
|
323
|
+
render() {
|
|
324
|
+
const { hideLabel: e } = this;
|
|
325
|
+
return c`
|
|
326
|
+
${!e && c` <span class="${t}--label ${t}--skeleton"></span> `}
|
|
327
|
+
<div class="${t}--number ${t}--skeleton"></div>
|
|
328
|
+
`;
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
b.styles = y;
|
|
332
|
+
i([
|
|
333
|
+
d({ type: Boolean, reflect: !0, attribute: "hide-label" })
|
|
334
|
+
], b.prototype, "hideLabel", void 0);
|
|
335
|
+
b = i([
|
|
336
|
+
f(`${t}-number-input-skeleton`)
|
|
337
|
+
], b);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";const r=require("./tslib.es6-B07k2eac.js"),k=require("./class-map-D6tjF27Y.js"),e=require("./main-Bx21zlkN.js"),a=require("./property-DAFv3PCb.js"),s=require("./settings-Bgpv8zuU.js"),m=require("./collection-helpers-afBvMQaC.js"),_=require("./focus-B3iymVyL.js"),n=require("./carbon-element-CbfPUYRT.js"),z=require("./query-Dh8joWcT.js"),C=require("./if-defined-DYWhlnlE.js"),D=require("./icon-loader-ChKeNR4s.js"),S=require("./16-B56B50XT.js"),x=require("./host-listener-rUcT_LUW.js"),A=require("./host-listener-gxrTpxgv.js"),y=require("./radio-group-manager-DBAEmhDM.js");var h=e.i$1(['@keyframes cds--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}.cds--layout--size-xs{--cds-layout-size-height-context:var(--cds-layout-size-height-xs,1.5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-xs{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-xs,1.5rem))}.cds--layout-constraint--size__min-xs{--cds-layout-size-height-min:var(--cds-layout-size-height-xs,1.5rem)}.cds--layout-constraint--size__max-xs{--cds-layout-size-height-max:var(--cds-layout-size-height-xs,1.5rem)}.cds--layout--size-sm{--cds-layout-size-height-context:var(--cds-layout-size-height-sm,2rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-sm{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-sm,2rem))}.cds--layout-constraint--size__min-sm{--cds-layout-size-height-min:var(--cds-layout-size-height-sm,2rem)}.cds--layout-constraint--size__max-sm{--cds-layout-size-height-max:var(--cds-layout-size-height-sm,2rem)}.cds--layout--size-md{--cds-layout-size-height-context:var(--cds-layout-size-height-md,2.5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-md{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-md,2.5rem))}.cds--layout-constraint--size__min-md{--cds-layout-size-height-min:var(--cds-layout-size-height-md,2.5rem)}.cds--layout-constraint--size__max-md{--cds-layout-size-height-max:var(--cds-layout-size-height-md,2.5rem)}.cds--layout--size-lg{--cds-layout-size-height-context:var(--cds-layout-size-height-lg,3rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-lg{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-lg,3rem))}.cds--layout-constraint--size__min-lg{--cds-layout-size-height-min:var(--cds-layout-size-height-lg,3rem)}.cds--layout-constraint--size__max-lg{--cds-layout-size-height-max:var(--cds-layout-size-height-lg,3rem)}.cds--layout--size-xl{--cds-layout-size-height-context:var(--cds-layout-size-height-xl,4rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-xl{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-xl,4rem))}.cds--layout-constraint--size__min-xl{--cds-layout-size-height-min:var(--cds-layout-size-height-xl,4rem)}.cds--layout-constraint--size__max-xl{--cds-layout-size-height-max:var(--cds-layout-size-height-xl,4rem)}.cds--layout--size-2xl{--cds-layout-size-height-context:var(--cds-layout-size-height-2xl,5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-2xl{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-2xl,5rem))}.cds--layout-constraint--size__min-2xl{--cds-layout-size-height-min:var(--cds-layout-size-height-2xl,5rem)}.cds--layout-constraint--size__max-2xl{--cds-layout-size-height-max:var(--cds-layout-size-height-2xl,5rem)}.cds--layout--density-condensed{--cds-layout-density-padding-inline-context:var(--cds-layout-density-padding-inline-condensed,0.5rem);--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context)}.cds--layout-constraint--density__default-condensed{--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context,var(--cds-layout-density-padding-inline-condensed,0.5rem))}.cds--layout-constraint--density__min-condensed{--cds-layout-density-padding-inline-min:var(--cds-layout-density-padding-inline-condensed,0.5rem)}.cds--layout-constraint--density__max-condensed{--cds-layout-density-padding-inline-max:var(--cds-layout-density-padding-inline-condensed,0.5rem)}.cds--layout--density-normal{--cds-layout-density-padding-inline-context:var(--cds-layout-density-padding-inline-normal,1rem);--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context)}.cds--layout-constraint--density__default-normal{--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context,var(--cds-layout-density-padding-inline-normal,1rem))}.cds--layout-constraint--density__min-normal{--cds-layout-density-padding-inline-min:var(--cds-layout-density-padding-inline-normal,1rem)}.cds--layout-constraint--density__max-normal{--cds-layout-density-padding-inline-max:var(--cds-layout-density-padding-inline-normal,1rem)}:root{--cds-layout-size-height-xs:1.5rem;--cds-layout-size-height-sm:2rem;--cds-layout-size-height-md:2.5rem;--cds-layout-size-height-lg:3rem;--cds-layout-size-height-xl:4rem;--cds-layout-size-height-2xl:5rem;--cds-layout-size-height-min:0px;--cds-layout-size-height-max:999999999px;--cds-layout-density-padding-inline-condensed:0.5rem;--cds-layout-density-padding-inline-normal:1rem;--cds-layout-density-padding-inline-min:0px;--cds-layout-density-padding-inline-max:999999999px}.cds--assistive-text,.cds--visually-hidden{block-size:1px;border:0;margin:-1px;overflow:hidden;padding:0;position:absolute;clip:rect(0,0,0,0);inline-size:1px;visibility:inherit;white-space:nowrap}.cds--layer-one,:root{--cds-layer:var(--cds-layer-01,#f4f4f4);--cds-layer-active:var(--cds-layer-active-01,#c6c6c6);--cds-layer-background:var(--cds-layer-background-01,#fff);--cds-layer-hover:var(--cds-layer-hover-01,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-01,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-01,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-01,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-01,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-01,#a8a8a8);--cds-field:var(--cds-field-01,#f4f4f4);--cds-field-hover:var(--cds-field-hover-01,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-00,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-01,#c6c6c6);--cds-border-strong:var(--cds-border-strong-01,#8d8d8d);--cds-border-tile:var(--cds-border-tile-01,#c6c6c6)}.cds--layer-two{--cds-layer:var(--cds-layer-02,#fff);--cds-layer-active:var(--cds-layer-active-02,#c6c6c6);--cds-layer-background:var(--cds-layer-background-02,#f4f4f4);--cds-layer-hover:var(--cds-layer-hover-02,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-02,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-02,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-02,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-02,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-02,#a8a8a8);--cds-field:var(--cds-field-02,#fff);--cds-field-hover:var(--cds-field-hover-02,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-01,#c6c6c6);--cds-border-subtle-selected:var(--cds-border-subtle-selected-02,#c6c6c6);--cds-border-strong:var(--cds-border-strong-02,#8d8d8d);--cds-border-tile:var(--cds-border-tile-02,#a8a8a8)}.cds--layer-three{--cds-layer:var(--cds-layer-03,#f4f4f4);--cds-layer-active:var(--cds-layer-active-03,#c6c6c6);--cds-layer-background:var(--cds-layer-background-03,#fff);--cds-layer-hover:var(--cds-layer-hover-03,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-03,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-03,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-03,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-03,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-03,#a8a8a8);--cds-field:var(--cds-field-03,#f4f4f4);--cds-field-hover:var(--cds-field-hover-03,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-02,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-03,#c6c6c6);--cds-border-strong:var(--cds-border-strong-03,#8d8d8d);--cds-border-tile:var(--cds-border-tile-03,#c6c6c6)}.cds--layer-one.cds--layer__with-background,.cds--layer-three.cds--layer__with-background,.cds--layer-two.cds--layer__with-background{background-color:var(--cds-layer-background)}.cds--structured-list--selection .cds--structured-list-td,.cds--structured-list--selection .cds--structured-list-th,:host(cds-structured-list-header-row) .cds--structured-list--selection ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list--selection ::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-row) .cds--structured-list--selection ::slotted(cds-structured-list-cell){padding-inline:1rem 1rem}.cds--structured-list--selection .cds--structured-list-td:first-child,.cds--structured-list--selection .cds--structured-list-th:first-child,:host(cds-structured-list-header-row) .cds--structured-list--selection :first-child::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list--selection :first-child::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-row) .cds--structured-list--selection :first-child::slotted(cds-structured-list-cell){padding-inline:1rem 1rem}.cds--structured-list-row--focused-within{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds--structured-list-row--focused-within{outline-style:dotted}}.cds--structured-list{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds--structured-list *,.cds--structured-list :after,.cds--structured-list :before{box-sizing:inherit}.cds--structured-list{background-color:var(--cds-layer) transparent;border-collapse:collapse;border-spacing:0;display:table;inline-size:100%;overflow-x:auto}.cds--structured-list.cds--structured-list--condensed .cds--structured-list-td,.cds--structured-list.cds--structured-list--condensed .cds--structured-list-th,:host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--condensed ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--condensed ::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-row) .cds--structured-list.cds--structured-list--condensed ::slotted(cds-structured-list-cell){padding:.5rem}.cds--structured-list .cds--structured-list-row .cds--structured-list-td:first-of-type,.cds--structured-list .cds--structured-list-row .cds--structured-list-th:first-of-type,:host(cds-structured-list-body) .cds--structured-list ::slotted(cds-structured-list-row) .cds--structured-list-td:first-of-type,:host(cds-structured-list-body) .cds--structured-list ::slotted(cds-structured-list-row) .cds--structured-list-th:first-of-type,:host(cds-structured-list-body):host(cds-structured-list-row) .cds--structured-list ::slotted(cds-structured-list-row) :first-of-type::slotted(cds-structured-list-cell),:host(cds-structured-list-head) .cds--structured-list ::slotted(cds-structured-list-header-row) .cds--structured-list-td:first-of-type,:host(cds-structured-list-head) .cds--structured-list ::slotted(cds-structured-list-header-row) .cds--structured-list-th:first-of-type,:host(cds-structured-list-head):host(cds-structured-list-header-row) .cds--structured-list ::slotted(cds-structured-list-header-row) :first-of-type::slotted(cds-structured-list-header-cell),:host(cds-structured-list-head):host(cds-structured-list-header-row) .cds--structured-list ::slotted(cds-structured-list-header-row) :first-of-type::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-head):host(cds-structured-list-row) .cds--structured-list ::slotted(cds-structured-list-header-row) :first-of-type::slotted(cds-structured-list-cell),:host(cds-structured-list-header-row) .cds--structured-list .cds--structured-list-row :first-of-type::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list .cds--structured-list-row :first-of-type::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-header-row):host(cds-structured-list-body) .cds--structured-list ::slotted(cds-structured-list-row) :first-of-type::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row):host(cds-structured-list-body) .cds--structured-list ::slotted(cds-structured-list-row) :first-of-type::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-row) .cds--structured-list .cds--structured-list-row :first-of-type::slotted(cds-structured-list-cell){padding-inline-start:1rem}.cds--structured-list.cds--structured-list--flush .cds--structured-list-row .cds--structured-list-td,.cds--structured-list.cds--structured-list--flush .cds--structured-list-row .cds--structured-list-td:first-of-type,.cds--structured-list.cds--structured-list--flush .cds--structured-list-row .cds--structured-list-th,.cds--structured-list.cds--structured-list--flush .cds--structured-list-row .cds--structured-list-th:first-of-type,:host(cds-structured-list-body) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-row) .cds--structured-list-td,:host(cds-structured-list-body) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-row) .cds--structured-list-th,:host(cds-structured-list-body):host(cds-structured-list-row) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-row) ::slotted(cds-structured-list-cell),:host(cds-structured-list-head) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-header-row) .cds--structured-list-td,:host(cds-structured-list-head) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-header-row) .cds--structured-list-th,:host(cds-structured-list-head):host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-head):host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-head):host(cds-structured-list-row) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-header-row) ::slotted(cds-structured-list-cell),:host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--flush .cds--structured-list-row ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--flush .cds--structured-list-row ::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-header-row):host(cds-structured-list-body) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-row) ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row):host(cds-structured-list-body) .cds--structured-list.cds--structured-list--flush ::slotted(cds-structured-list-row) ::slotted(cds-structured-list-header-cell-skeleton),:host(cds-structured-list-row) .cds--structured-list.cds--structured-list--flush .cds--structured-list-row ::slotted(cds-structured-list-cell){padding-inline:0 1rem}.cds--structured-list-row,:host(cds-structured-list-body) ::slotted(cds-structured-list-row),:host(cds-structured-list-head) ::slotted(cds-structured-list-header-row){border-block-start:1px solid var(--cds-border-subtle);display:table-row;transition:background-color .11s cubic-bezier(.2,0,.38,.9)}.cds--structured-list ::slotted(cds-structured-list-body) .cds--structured-list-row:last-child,.cds--structured-list-tbody .cds--structured-list-row:last-child,:host(cds-structured-list-body) .cds--structured-list ::slotted(cds-structured-list-body) :last-child::slotted(cds-structured-list-row),:host(cds-structured-list-body) .cds--structured-list-tbody :last-child::slotted(cds-structured-list-row),:host(cds-structured-list-head) .cds--structured-list ::slotted(cds-structured-list-body) :last-child::slotted(cds-structured-list-header-row),:host(cds-structured-list-head) .cds--structured-list-tbody :last-child::slotted(cds-structured-list-header-row){border-block-end:1px solid var(--cds-border-subtle)}.cds--structured-list-row--header-row,:host(cds-structured-list-head) ::slotted(cds-structured-list-header-row){border:none}.cds--structured-list--selection .cds--structured-list-row:hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected),:host(cds-structured-list-body) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)::slotted(cds-structured-list-row),:host(cds-structured-list-head) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)::slotted(cds-structured-list-header-row){background-color:var(--cds-layer-hover);border-color:var(--cds-layer-hover);cursor:pointer}.cds--structured-list--selection .cds--structured-list-row:hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)+.cds--structured-list-row,:host(cds-structured-list-body) .cds--structured-list--selection .cds--structured-list-row:hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)+::slotted(cds-structured-list-row),:host(cds-structured-list-body) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)::slotted(cds-structured-list-row)+.cds--structured-list-row,:host(cds-structured-list-body) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)::slotted(cds-structured-list-row)+::slotted(cds-structured-list-row),:host(cds-structured-list-head) .cds--structured-list--selection .cds--structured-list-row:hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)+::slotted(cds-structured-list-header-row),:host(cds-structured-list-head) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)::slotted(cds-structured-list-header-row)+.cds--structured-list-row,:host(cds-structured-list-head) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)::slotted(cds-structured-list-header-row)+::slotted(cds-structured-list-header-row),:host(cds-structured-list-head):host(cds-structured-list-body) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)::slotted(cds-structured-list-header-row)+::slotted(cds-structured-list-row),:host(cds-structured-list-head):host(cds-structured-list-body) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row):not(.cds--structured-list-row--selected)::slotted(cds-structured-list-row)+::slotted(cds-structured-list-header-row){border-color:var(--cds-layer-hover)}.cds--structured-list--selection .cds--structured-list-row.cds--structured-list-row--selected,:host(cds-structured-list-body) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-row),:host(cds-structured-list-head) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-header-row){background-color:var(--cds-layer-selected);border-color:var(--cds-layer-selected)}.cds--structured-list--selection .cds--structured-list-row--selected+.cds--structured-list-row,:host(cds-structured-list-body) .cds--structured-list--selection .cds--structured-list-row--selected+::slotted(cds-structured-list-row),:host(cds-structured-list-head) .cds--structured-list--selection .cds--structured-list-row--selected+::slotted(cds-structured-list-header-row){border-color:var(--cds-layer-selected)}.cds--structured-list--selection .cds--structured-list-row.cds--structured-list-row--selected .cds--structured-list-td,:host(cds-structured-list-body) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-row) .cds--structured-list-td,:host(cds-structured-list-body):host(cds-structured-list-row) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-row) ::slotted(cds-structured-list-cell),:host(cds-structured-list-head) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-header-row) .cds--structured-list-td,:host(cds-structured-list-head):host(cds-structured-list-row) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-header-row) ::slotted(cds-structured-list-cell),:host(cds-structured-list-row) .cds--structured-list--selection .cds--structured-list-row.cds--structured-list-row--selected ::slotted(cds-structured-list-cell){color:var(--cds-text-primary,#161616)}.cds--structured-list-row.cds--structured-list-row--header-row,:host(cds-structured-list-body) .cds--structured-list-row--header-row::slotted(cds-structured-list-row),:host(cds-structured-list-head) ::slotted(cds-structured-list-header-row){cursor:inherit}.cds--structured-list--selection .cds--structured-list-row.cds--structured-list-row--selected>.cds--structured-list-td,.cds--structured-list--selection .cds--structured-list-row:hover:not(.cds--structured-list-row--header-row)>.cds--structured-list-td,:host(cds-structured-list-body) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-row)>.cds--structured-list-td,:host(cds-structured-list-body) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row)::slotted(cds-structured-list-row)>.cds--structured-list-td,:host(cds-structured-list-body):host(cds-structured-list-row) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-row)>::slotted(cds-structured-list-cell),:host(cds-structured-list-body):host(cds-structured-list-row) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row)::slotted(cds-structured-list-row)>::slotted(cds-structured-list-cell),:host(cds-structured-list-head) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-header-row)>.cds--structured-list-td,:host(cds-structured-list-head) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row)::slotted(cds-structured-list-header-row)>.cds--structured-list-td,:host(cds-structured-list-head):host(cds-structured-list-row) .cds--structured-list--selection .cds--structured-list-row--selected::slotted(cds-structured-list-header-row)>::slotted(cds-structured-list-cell),:host(cds-structured-list-head):host(cds-structured-list-row) .cds--structured-list--selection :hover:not(.cds--structured-list-row--header-row)::slotted(cds-structured-list-header-row)>::slotted(cds-structured-list-cell),:host(cds-structured-list-row) .cds--structured-list--selection .cds--structured-list-row.cds--structured-list-row--selected>::slotted(cds-structured-list-cell),:host(cds-structured-list-row) .cds--structured-list--selection .cds--structured-list-row:hover:not(.cds--structured-list-row--header-row)>::slotted(cds-structured-list-cell){color:var(--cds-text-primary,#161616)}.cds--structured-list ::slotted(cds-structured-list-head),.cds--structured-list-thead{display:table-header-group;vertical-align:middle}.cds--structured-list-th,:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell-skeleton){border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds--structured-list-th *,.cds--structured-list-th :after,.cds--structured-list-th :before,:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell) *,:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell) :after,:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell) :before,:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell-skeleton) *,:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell-skeleton) :after,:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell-skeleton) :before{box-sizing:inherit}.cds--structured-list-th,:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell-skeleton){block-size:2.5rem;color:var(--cds-text-primary,#161616);display:table-cell;font-size:var(--cds-heading-compact-01-font-size,.875rem);font-weight:var(--cds-heading-compact-01-font-weight,600);font-weight:600;letter-spacing:var(--cds-heading-compact-01-letter-spacing,.16px);line-height:var(--cds-heading-compact-01-line-height,1.28572);padding:1rem .5rem .5rem;text-align:start;text-transform:none;vertical-align:top}.cds--structured-list ::slotted(cds-structured-list-body),.cds--structured-list-tbody{display:table-row-group;vertical-align:middle}.cds--structured-list-td,:host(cds-structured-list-row) ::slotted(cds-structured-list-cell){border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds--structured-list-td *,.cds--structured-list-td :after,.cds--structured-list-td :before,:host(cds-structured-list-row) ::slotted(cds-structured-list-cell) *,:host(cds-structured-list-row) ::slotted(cds-structured-list-cell) :after,:host(cds-structured-list-row) ::slotted(cds-structured-list-cell) :before{box-sizing:inherit}.cds--structured-list-td,:host(cds-structured-list-row) ::slotted(cds-structured-list-cell){color:var(--cds-text-secondary,#525252);display:table-cell;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);max-inline-size:36rem;padding:1rem .5rem 1.5rem;position:relative;transition:color .11s cubic-bezier(.2,0,.38,.9)}.cds--structured-list ::slotted(cds-structured-list-header-cell[nowrap]),.cds--structured-list-content--nowrap,:host(cds-structured-list-row) ::slotted(cds-structured-list-cell[nowrap]){white-space:nowrap}.cds--structured-list-input+.cds--structured-list-td,:host(cds-structured-list-row) .cds--structured-list-input+::slotted(cds-structured-list-cell){text-align:end}.cds--structured-list-svg{display:inline-block;margin-block-start:.125rem;transition:all .11s cubic-bezier(.2,0,.38,.9);vertical-align:top}.cds--structured-list-input:checked+.cds--structured-list-row .cds--structured-list-svg,.cds--structured-list-input:checked+.cds--structured-list-td .cds--structured-list-svg,:host(cds-structured-list-body) .cds--structured-list-input:checked+::slotted(cds-structured-list-row) .cds--structured-list-svg,:host(cds-structured-list-head) .cds--structured-list-input:checked+::slotted(cds-structured-list-header-row) .cds--structured-list-svg,:host(cds-structured-list-row) .cds--structured-list-input:checked+::slotted(cds-structured-list-cell) .cds--structured-list-svg{fill:var(--cds-icon-primary,#161616)}.cds--structured-list-svg{fill:transparent}.cds--structured-list--selection .cds--structured-list-td:last-child,:host(cds-structured-list-row) .cds--structured-list--selection :last-child::slotted(cds-structured-list-cell){inline-size:2rem;padding-inline-start:0}.cds--structured-list.cds--skeleton .cds--structured-list-th:first-child,:host(cds-structured-list-header-row) .cds--structured-list.cds--skeleton :first-child::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list.cds--skeleton :first-child::slotted(cds-structured-list-header-cell-skeleton){inline-size:8%}.cds--structured-list.cds--skeleton .cds--structured-list-th:nth-child(3n+2),:host(cds-structured-list-header-row) .cds--structured-list.cds--skeleton :nth-child(3n+2)::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list.cds--skeleton :nth-child(3n+2)::slotted(cds-structured-list-header-cell-skeleton){inline-size:30%}.cds--structured-list.cds--skeleton .cds--structured-list-th:nth-child(3n+3),:host(cds-structured-list-header-row) .cds--structured-list.cds--skeleton :nth-child(3n+3)::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list.cds--skeleton :nth-child(3n+3)::slotted(cds-structured-list-header-cell-skeleton){inline-size:15%}.cds--structured-list.cds--skeleton span{background:var(--cds-skeleton-background,#e8e8e8);border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}.cds--structured-list.cds--skeleton span:active,.cds--structured-list.cds--skeleton span:focus,.cds--structured-list.cds--skeleton span:hover{border:none;cursor:default;outline:none}.cds--structured-list.cds--skeleton span:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;inset-inline-start:0;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--structured-list.cds--skeleton span:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--structured-list.cds--skeleton span{background:CanvasText}.cds--structured-list.cds--skeleton span:before{background:Canvas;forced-color-adjust:none}}.cds--structured-list.cds--skeleton span{block-size:1rem;display:block;inline-size:75%}.cds--structured-list.cds--structured-list--selection.cds--skeleton .cds--structured-list-th:first-child,:host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--selection.cds--skeleton :first-child::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--selection.cds--skeleton :first-child::slotted(cds-structured-list-header-cell-skeleton){inline-size:5%}.cds--structured-list.cds--structured-list--selection.cds--skeleton .cds--structured-list-th:first-child span,:host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--selection.cds--skeleton :first-child::slotted(cds-structured-list-header-cell) span,:host(cds-structured-list-header-row) .cds--structured-list.cds--structured-list--selection.cds--skeleton :first-child::slotted(cds-structured-list-header-cell-skeleton) span{display:none}.cds--structured-list__icon{margin-block-start:.125rem;vertical-align:top}.cds--structured-list--selection .cds--structured-list-td:first-child:has(.cds--structured-list__icon),:host(cds-structured-list-row) .cds--structured-list--selection :first-child:has(.cds--structured-list__icon)::slotted(cds-structured-list-cell){inline-size:2rem;padding-inline-end:0}:host(cds-structured-list-header-row) ::slotted(cds-structured-list-header-cell:first-of-type){padding-inline-start:1rem}:host(cds-structured-list-body) ::slotted(cds-structured-list-row:last-child){border-block-end:1px solid var(--cds-border-subtle)}:host(cds-structured-list-row) ::slotted(cds-structured-list-cell:first-of-type){padding-inline-start:1rem}:host(cds-structured-list-row[selection-value]:hover){background-color:var(--cds-layer-hover);border-block-end:1px solid var(--cds-layer-hover);cursor:pointer}:host(cds-structured-list-row[selection-value]:hover) ::slotted(cds-structured-list-cell){color:var(--cds-text-primary,#161616)}:host(cds-structured-list-row[selected]){background-color:var(--cds-layer-selected)}:host(cds-structured-list-row[selected]) .cds--structured-list-input:checked+.cds--structured-list-cell .cds--structured-list-svg{fill:var(--cds-text-primary,#161616)}:host(cds-structured-list-row[selected]) ::slotted(cds-structured-list-cell){color:var(--cds-text-primary,#161616)}:host(cds-structured-list-header-cell-skeleton):first-of-type{inline-size:8%}:host(cds-structured-list-header-cell-skeleton):nth-of-type(3n+2){inline-size:30%}:host(cds-structured-list-header-cell-skeleton):nth-of-type(3n+3){inline-size:15%}:host(cds-structured-list-header-cell-skeleton) span{background:var(--cds-skeleton-background,#e8e8e8);border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}:host(cds-structured-list-header-cell-skeleton) span:active,:host(cds-structured-list-header-cell-skeleton) span:focus,:host(cds-structured-list-header-cell-skeleton) span:hover{border:none;cursor:default;outline:none}:host(cds-structured-list-header-cell-skeleton) span:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;inset-inline-start:0;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){:host(cds-structured-list-header-cell-skeleton) span:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){:host(cds-structured-list-header-cell-skeleton) span{background:CanvasText}:host(cds-structured-list-header-cell-skeleton) span:before{background:Canvas;forced-color-adjust:none}}:host(cds-structured-list-header-cell-skeleton) span{block-size:1rem;display:block;inline-size:75%}:host(cds-structured-list-header-row[condensed]) ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-row[condensed]) ::slotted(cds-structured-list-cell){padding:.5rem}:host(cds-structured-list-header-row[condensed]) ::slotted(cds-structured-list-header-cell:first-of-type),:host(cds-structured-list-row[condensed]) ::slotted(cds-structured-list-cell:first-of-type){padding-inline-start:1rem}:host(cds-structured-list-header-row[condensed][flush]) ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-header-row[flush]) ::slotted(cds-structured-list-header-cell),:host(cds-structured-list-row[condensed][flush]) ::slotted(cds-structured-list-cell),:host(cds-structured-list-row[flush]) ::slotted(cds-structured-list-cell){padding-inline:0 1rem}']);let u=class extends _.FocusMixin(e.i){constructor(){super(...arguments),this.selectionName="",this.condensed=!1,this.flush=!1}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","table"),super.connectedCallback()}shouldUpdate(t){return t.has("selectionName")&&m.forEach(this.querySelectorAll(this.constructor.selectorRowsWithHeader),d=>{d.selectionName=this.selectionName}),!0}updated(t){["condensed","flush"].forEach(c=>{t.has(c)&&m.forEach(this.querySelectorAll(this.constructor.selectorRowsWithHeader),i=>{this[`${c}`]?i.setAttribute(c,""):i.removeAttribute(c)})})}render(){const{condensed:t,flush:d,selectionName:c}=this,i=k.e({[`${s.prefix}--structured-list`]:!0,[`${s.prefix}--structured-list--selection`]:!!c,[`${s.prefix}--structured-list--condensed`]:t,[`${s.prefix}--structured-list--flush`]:d});return e.x`
|
|
2
|
+
<section id="section" class=${i}><slot></slot></section>
|
|
3
|
+
`}};u.selectorRowsWithHeader=`${s.prefix}-structured-list-row,${s.prefix}-structured-list-header-row`;u.shadowRootOptions=Object.assign(Object.assign({},e.i.shadowRootOptions),{delegatesFocus:!0});u.styles=h;r.__decorate([a.n({attribute:"selection-name"})],u.prototype,"selectionName",void 0);r.__decorate([a.n({type:Boolean,reflect:!0})],u.prototype,"condensed",void 0);r.__decorate([a.n({type:Boolean,reflect:!0})],u.prototype,"flush",void 0);u=r.__decorate([n.carbonElement(`${s.prefix}-structured-list`)],u);let f=class extends e.i{connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","rowgroup"),super.connectedCallback()}render(){return e.x` <slot></slot> `}};f.styles=h;f=r.__decorate([n.carbonElement(`${s.prefix}-structured-list-body`)],f);let g=class extends e.i{connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","cell"),super.connectedCallback()}render(){return e.x` <slot></slot> `}};g.styles=h;g=r.__decorate([n.carbonElement(`${s.prefix}-structured-list-cell`)],g);let p=class extends e.i{connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","rowgroup"),super.connectedCallback()}render(){return e.x` <slot></slot> `}};p.styles=h;p=r.__decorate([n.carbonElement(`${s.prefix}-structured-list-head`)],p);let v=class extends e.i{connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","columnheader"),super.connectedCallback()}render(){return e.x` <slot></slot> `}};v.styles=h;v=r.__decorate([n.carbonElement(`${s.prefix}-structured-list-header-cell`)],v);let b=class extends e.i{render(){return e.x` <span></span> `}};b.styles=h;b=r.__decorate([n.carbonElement(`${s.prefix}-structured-list-header-cell-skeleton`)],b);let w=class extends e.i{constructor(){super(...arguments),this.selectionName=""}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","row"),super.connectedCallback()}render(){return this.selectionName?e.x`
|
|
4
|
+
<slot></slot>
|
|
5
|
+
<div class="${s.prefix}--structured-list-th"></div>
|
|
6
|
+
`:e.x` <slot></slot> `}};w.styles=h;r.__decorate([a.n({attribute:"selection-name"})],w.prototype,"selectionName",void 0);w=r.__decorate([n.carbonElement(`${s.prefix}-structured-list-header-row`)],w);const N={ArrowUp:y.NAVIGATION_DIRECTION.BACKWARD,Up:y.NAVIGATION_DIRECTION.BACKWARD,ArrowDown:y.NAVIGATION_DIRECTION.FORWARD,Down:y.NAVIGATION_DIRECTION.FORWARD};class ${constructor(t){this._row=t}get checked(){return this._row.selected}set checked(t){this._row.selected=t,this._row.tabIndex=t?0:-1}get tabIndex(){return this._row.tabIndex}set tabIndex(t){this._row.tabIndex=t}get name(){return this._row.selectionName}compareDocumentPosition(t){return this._row.compareDocumentPosition(t._row)}focus(){this._row.focus()}}let l=class extends A.HostListenerMixin(e.i){constructor(){super(...arguments),this._manager=null,this._radioButtonDelegate=new $(this),this._handleClick=()=>{const{_inputNode:t}=this;t&&(this.selected=!0,this._manager&&this._manager.select(this._radioButtonDelegate))},this._handleKeydown=t=>{const{_inputNode:d}=this,c=this._manager;if(d&&c){const i=N[t.key];i&&c.select(c.navigate(this._radioButtonDelegate,i)),(t.key===" "||t.key==="Enter")&&c.select(this._radioButtonDelegate)}},this.selected=!1,this.selectionName="",this.selectionValue="",this.selectionIconTitle=""}connectedCallback(){var t;if(this.hasAttribute("role")||this.setAttribute("role","row"),super.connectedCallback(),!this._manager){this._manager=y.RadioGroupManager.get(this.getRootNode({composed:!0}));const{selectionName:d}=this;d&&((t=this._manager)===null||t===void 0||t.add(this._radioButtonDelegate))}}disconnectedCallback(){this._manager&&this._manager.delete(this._radioButtonDelegate),super.disconnectedCallback()}updated(t){const{_manager:d,selectionName:c}=this;t.has("selectionName")&&(d&&(d.delete(this._radioButtonDelegate,t.get("selectionName")),c&&d.add(this._radioButtonDelegate)),this.setAttribute("tabindex",!c||!d||!d.shouldBeFocusable(this._radioButtonDelegate)?"-1":"0"))}render(){const{selected:t,selectionName:d,selectionValue:c,selectionIconTitle:i}=this;return d?e.x`
|
|
7
|
+
<slot></slot>
|
|
8
|
+
<input
|
|
9
|
+
id="input"
|
|
10
|
+
type="radio"
|
|
11
|
+
class="${s.prefix}--structured-list-input ${s.prefix}--visually-hidden"
|
|
12
|
+
.checked=${t}
|
|
13
|
+
name=${d}
|
|
14
|
+
value=${C.o(c)} />
|
|
15
|
+
<div
|
|
16
|
+
class="${s.prefix}--structured-list-td ${s.prefix}--structured-list-cell">
|
|
17
|
+
${D.iconLoader(S._16,{class:`${s.prefix}--structured-list-svg`,title:i})}
|
|
18
|
+
</div>
|
|
19
|
+
`:e.x` <slot></slot> `}};l.styles=h;r.__decorate([z.e("#input")],l.prototype,"_inputNode",void 0);r.__decorate([x.HostListener("click")],l.prototype,"_handleClick",void 0);r.__decorate([x.HostListener("keydown")],l.prototype,"_handleKeydown",void 0);r.__decorate([a.n({type:Boolean,reflect:!0})],l.prototype,"selected",void 0);r.__decorate([a.n({attribute:"selection-name"})],l.prototype,"selectionName",void 0);r.__decorate([a.n({attribute:"selection-value"})],l.prototype,"selectionValue",void 0);r.__decorate([a.n({attribute:"selection-icon-title"})],l.prototype,"selectionIconTitle",void 0);l=r.__decorate([n.carbonElement(`${s.prefix}-structured-list-row`)],l);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { _ as t } from "./tslib.es6-C5gLNDSD.js";
|
|
2
|
+
import { e as c } from "./class-map-FWQBIzSx.js";
|
|
3
|
+
import { a as l, i as d, x as k } from "./main-BGOPab-5.js";
|
|
4
|
+
import { n as f } from "./property-BkjBVRuu.js";
|
|
5
|
+
import { p as r } from "./settings-jvP7vP60.js";
|
|
6
|
+
import { c as m } from "./carbon-element-DzDuXiyl.js";
|
|
7
|
+
var _ = l(['@keyframes cds--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}@keyframes ai-skeleton-animation{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}.cds--icon--skeleton{background:var(--cds-skeleton-background,#e8e8e8);border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}.cds--icon--skeleton:active,.cds--icon--skeleton:focus,.cds--icon--skeleton:hover{border:none;cursor:default;outline:none}.cds--icon--skeleton:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;inset-inline-start:0;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--icon--skeleton:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--icon--skeleton{background:CanvasText}.cds--icon--skeleton:before{background:Canvas;forced-color-adjust:none}}.cds--icon--skeleton{block-size:1rem;display:inline-block;inline-size:1rem}.cds--skeleton__placeholder{background:var(--cds-skeleton-background,#e8e8e8);border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}.cds--skeleton__placeholder:active,.cds--skeleton__placeholder:focus,.cds--skeleton__placeholder:hover{border:none;cursor:default;outline:none}.cds--skeleton__placeholder:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;inset-inline-start:0;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--skeleton__placeholder:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--skeleton__placeholder{background:CanvasText}.cds--skeleton__placeholder:before{background:Canvas;forced-color-adjust:none}}.cds--skeleton__placeholder{block-size:6.25rem;inline-size:6.25rem}.cds--skeleton__text{background:var(--cds-skeleton-background,#e8e8e8);border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}.cds--skeleton__text:active,.cds--skeleton__text:focus,.cds--skeleton__text:hover{border:none;cursor:default;outline:none}.cds--skeleton__text:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;inset-inline-start:0;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--skeleton__text:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--skeleton__text{background:CanvasText}.cds--skeleton__text:before{background:Canvas;forced-color-adjust:none}}.cds--skeleton__text{block-size:1rem;inline-size:100%;margin-block-end:.5rem}.cds--skeleton__heading{block-size:1.5rem}.cds--skeleton__icon--ai,.cds--skeleton__placeholder--ai,.cds--skeleton__text--ai{background:var(--cds-ai-skeleton-background,#d0e2ff);overflow:hidden}.cds--skeleton__icon--ai:before,.cds--skeleton__placeholder--ai:before,.cds--skeleton__text--ai:before{animation:ai-skeleton-animation 1.25s ease-in-out infinite;background:linear-gradient(90deg,rgba(69,137,255,0) 0,rgba(69,137,255,.5) 50%,rgba(69,137,255,0))}.cds--skeleton__icon--ai:before,.cds--skeleton__placeholder--ai:before{inline-size:200%}.cds--skeleton__placeholder--ai{border-radius:.5rem}.cds--skeleton__text--ai{border-radius:1rem}.cds--skeleton__icon--ai{border-radius:.125rem}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--skeleton__icon--ai,.cds--skeleton__placeholder--ai,.cds--skeleton__text--ai{background:CanvasText}.cds--skeleton__icon--ai:before,.cds--skeleton__placeholder--ai:before,.cds--skeleton__text--ai:before{background:Canvas}}']);
|
|
8
|
+
let e = class extends d {
|
|
9
|
+
render() {
|
|
10
|
+
var o;
|
|
11
|
+
let n = {
|
|
12
|
+
[`${r}--skeleton__placeholder`]: !0
|
|
13
|
+
};
|
|
14
|
+
if (this.optionalClasses) {
|
|
15
|
+
const s = {};
|
|
16
|
+
(o = this.optionalClasses) === null || o === void 0 || o.split(" ").forEach((a) => {
|
|
17
|
+
s[a] = !0;
|
|
18
|
+
}), n = Object.assign(Object.assign({}, n), s);
|
|
19
|
+
}
|
|
20
|
+
const i = c(n);
|
|
21
|
+
return k` <div part="placeholder" class="${i}"></div> `;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
e.styles = _;
|
|
25
|
+
t([
|
|
26
|
+
f({ reflect: !0, attribute: "optional-classes" })
|
|
27
|
+
], e.prototype, "optionalClasses", void 0);
|
|
28
|
+
e = t([
|
|
29
|
+
m(`${r}-skeleton-placeholder`)
|
|
30
|
+
], e);
|