@trintel/zooy 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +471 -0
  3. package/dist/chunks/16-30f5E9no.js +1 -0
  4. package/dist/chunks/16-41wFkj7S.js +1 -0
  5. package/dist/chunks/16-4Ffg4DOO.js +1 -0
  6. package/dist/chunks/16-8pr5mbIO.js +28 -0
  7. package/dist/chunks/16-B56B50XT.js +1 -0
  8. package/dist/chunks/16-BFJN6B6d.js +39 -0
  9. package/dist/chunks/16-BTonF5Je.js +29 -0
  10. package/dist/chunks/16-BiShwKPX.js +28 -0
  11. package/dist/chunks/16-BwDdccyH.js +33 -0
  12. package/dist/chunks/16-C7Xs-wKv.js +1 -0
  13. package/dist/chunks/16-CDRTWf-C.js +21 -0
  14. package/dist/chunks/16-CSWwhDUY.js +21 -0
  15. package/dist/chunks/16-ChlL35BX.js +62 -0
  16. package/dist/chunks/16-CpNRIuiB.js +1 -0
  17. package/dist/chunks/16-CqC9427V.js +21 -0
  18. package/dist/chunks/16-Cubm18Em.js +1 -0
  19. package/dist/chunks/16-D3Ol0pdg.js +21 -0
  20. package/dist/chunks/16-DH311Of_.js +1 -0
  21. package/dist/chunks/16-Dlq3qxDh.js +1 -0
  22. package/dist/chunks/16-Drl9-5Gn.js +21 -0
  23. package/dist/chunks/16-Dt4v0bcc.js +1 -0
  24. package/dist/chunks/16-DylBiJnm.js +1 -0
  25. package/dist/chunks/20-CZPIOG-A.js +84 -0
  26. package/dist/chunks/20-gmyNFvDv.js +1 -0
  27. package/dist/chunks/button-DdJepOoE.js +271 -0
  28. package/dist/chunks/button-skeleton-COf2kCDL.js +48 -0
  29. package/dist/chunks/button-skeleton-rf3WDPTZ.js +21 -0
  30. package/dist/chunks/button-zHEPxpXa.js +66 -0
  31. package/dist/chunks/carbon-element-CbfPUYRT.js +1 -0
  32. package/dist/chunks/carbon-element-DzDuXiyl.js +25 -0
  33. package/dist/chunks/checkbox-B5mHvx0J.js +200 -0
  34. package/dist/chunks/checkbox-BRPCg-DN.js +40 -0
  35. package/dist/chunks/class-map-BfNAkUL_.js +5 -0
  36. package/dist/chunks/class-map-DEHG4tmw.js +32 -0
  37. package/dist/chunks/collection-helpers-BwUB2CEz.js +8 -0
  38. package/dist/chunks/collection-helpers-CYLIiyii.js +1 -0
  39. package/dist/chunks/content-switcher-item-DeGjVRQY.js +350 -0
  40. package/dist/chunks/content-switcher-item-DucclV1b.js +27 -0
  41. package/dist/chunks/defs-DMmigODC.js +1077 -0
  42. package/dist/chunks/defs-DPD20sPK.js +1 -0
  43. package/dist/chunks/directive-Dp4ZTz-F.js +5 -0
  44. package/dist/chunks/directive-kLG6oqUu.js +27 -0
  45. package/dist/chunks/dropdown-item-BgLQ1VLo.js +69 -0
  46. package/dist/chunks/dropdown-item-DPdwOION.js +620 -0
  47. package/dist/chunks/focus-B9JYe97T.js +20 -0
  48. package/dist/chunks/focus-rQSNiwy7.js +1 -0
  49. package/dist/chunks/form-D6Tce4-W.js +1 -0
  50. package/dist/chunks/form-DpI-v6DA.js +20 -0
  51. package/dist/chunks/host-listener-CN245INl.js +37 -0
  52. package/dist/chunks/host-listener-DD3oGxvg.js +16 -0
  53. package/dist/chunks/host-listener-gxrTpxgv.js +1 -0
  54. package/dist/chunks/host-listener-rUcT_LUW.js +1 -0
  55. package/dist/chunks/icon-loader-Dk_AU26w.js +7 -0
  56. package/dist/chunks/icon-loader-o_JYDmJX.js +1 -0
  57. package/dist/chunks/icon-loader-utils-BBjK16O-.js +5 -0
  58. package/dist/chunks/icon-loader-utils-BEOGXn0q.js +117 -0
  59. package/dist/chunks/if-defined-BdZRLDJ6.js +5 -0
  60. package/dist/chunks/if-defined-C0yJsxi2.js +10 -0
  61. package/dist/chunks/if-non-empty-CEHK-hqx.js +1 -0
  62. package/dist/chunks/if-non-empty-DTGflHtA.js +5 -0
  63. package/dist/chunks/index-16wphaSo.js +4 -0
  64. package/dist/chunks/index-27oFQaOS.js +37 -0
  65. package/dist/chunks/index-45EApaFs.js +205 -0
  66. package/dist/chunks/index-5jmZyISW.js +1 -0
  67. package/dist/chunks/index-B1vQ44Hl.js +363 -0
  68. package/dist/chunks/index-B3CDjjXh.js +214 -0
  69. package/dist/chunks/index-B3mXrMt1.js +24 -0
  70. package/dist/chunks/index-B7mGUQhz.js +79 -0
  71. package/dist/chunks/index-BBNaYDog.js +22 -0
  72. package/dist/chunks/index-BBt9OmO5.js +12 -0
  73. package/dist/chunks/index-BIaF1Dfx.js +107 -0
  74. package/dist/chunks/index-BJAuRs3y.js +75 -0
  75. package/dist/chunks/index-BJKftWYn.js +89 -0
  76. package/dist/chunks/index-BLjNrhkN.js +4 -0
  77. package/dist/chunks/index-BOTu9u-3.js +86 -0
  78. package/dist/chunks/index-BPVpH8ll.js +160 -0
  79. package/dist/chunks/index-BRuvyoCz.js +15 -0
  80. package/dist/chunks/index-BSgHSOVT.js +65 -0
  81. package/dist/chunks/index-BSh7UYcP.js +9 -0
  82. package/dist/chunks/index-BUxB7aWd.js +96 -0
  83. package/dist/chunks/index-BXIxcS00.js +22 -0
  84. package/dist/chunks/index-BXczHDk-.js +187 -0
  85. package/dist/chunks/index-BaVyBv2V.js +25 -0
  86. package/dist/chunks/index-BgbqX0uv.js +234 -0
  87. package/dist/chunks/index-BjQlt8g2.js +451 -0
  88. package/dist/chunks/index-BoNLj7PW.js +44 -0
  89. package/dist/chunks/index-BwIoRMDI.js +24 -0
  90. package/dist/chunks/index-Bwix1iwB.js +38 -0
  91. package/dist/chunks/index-BxVW3p3I.js +258 -0
  92. package/dist/chunks/index-ByKyGGzb.js +3 -0
  93. package/dist/chunks/index-ByTSSU1x.js +1 -0
  94. package/dist/chunks/index-C8LyfVmf.js +428 -0
  95. package/dist/chunks/index-CBbsFlsv.js +290 -0
  96. package/dist/chunks/index-CByffhPq.js +762 -0
  97. package/dist/chunks/index-CIbRjtWm.js +32 -0
  98. package/dist/chunks/index-CIzeMGQv.js +81 -0
  99. package/dist/chunks/index-CLGxSjLW.js +62 -0
  100. package/dist/chunks/index-CMF5Cawn.js +70 -0
  101. package/dist/chunks/index-CO-A2KY9.js +562 -0
  102. package/dist/chunks/index-CONgwvp0.js +12 -0
  103. package/dist/chunks/index-CT43RMOu.js +20 -0
  104. package/dist/chunks/index-CUgiXqyk.js +4 -0
  105. package/dist/chunks/index-C_K070Kn.js +284 -0
  106. package/dist/chunks/index-C_ttE2g9.js +16 -0
  107. package/dist/chunks/index-CcgnA1uu.js +29 -0
  108. package/dist/chunks/index-Cd7aoWrX.js +336 -0
  109. package/dist/chunks/index-Ce-pMzBC.js +19 -0
  110. package/dist/chunks/index-CgYZ66P_.js +187 -0
  111. package/dist/chunks/index-ChcHMeAS.js +35 -0
  112. package/dist/chunks/index-Cixdzvwd.js +682 -0
  113. package/dist/chunks/index-Clq0Fl19.js +15 -0
  114. package/dist/chunks/index-CtxTJnIm.js +58 -0
  115. package/dist/chunks/index-Cv1hWa_y.js +242 -0
  116. package/dist/chunks/index-CzTjJ8lP.js +432 -0
  117. package/dist/chunks/index-D0xRAPD5.js +75 -0
  118. package/dist/chunks/index-D25buhRm.js +79 -0
  119. package/dist/chunks/index-D4DqJG5_.js +16 -0
  120. package/dist/chunks/index-D5GGFPcS.js +251 -0
  121. package/dist/chunks/index-D5kiHJpX.js +413 -0
  122. package/dist/chunks/index-DEjRiv5B.js +1 -0
  123. package/dist/chunks/index-DFA4_spk.js +160 -0
  124. package/dist/chunks/index-DFZsXFsx.js +19 -0
  125. package/dist/chunks/index-DGauWNwV.js +156 -0
  126. package/dist/chunks/index-DIR0jr3f.js +127 -0
  127. package/dist/chunks/index-DNeagy5a.js +65 -0
  128. package/dist/chunks/index-DO0fmDR9.js +2 -0
  129. package/dist/chunks/index-DSitHBEh.js +36 -0
  130. package/dist/chunks/index-DW7ST0tB.js +1 -0
  131. package/dist/chunks/index-DWfFgEXE.js +110 -0
  132. package/dist/chunks/index-DX6WAtmo.js +874 -0
  133. package/dist/chunks/index-DaPfSuLu.js +393 -0
  134. package/dist/chunks/index-DbKlVm7y.js +74 -0
  135. package/dist/chunks/index-DdNZTQw1.js +48 -0
  136. package/dist/chunks/index-Dgi-m1K-.js +1 -0
  137. package/dist/chunks/index-Dh4uigJs.js +454 -0
  138. package/dist/chunks/index-DnYNK1mz.js +8 -0
  139. package/dist/chunks/index-DnierBep.js +510 -0
  140. package/dist/chunks/index-DnpSGM23.js +213 -0
  141. package/dist/chunks/index-DntY4deR.js +41 -0
  142. package/dist/chunks/index-Dp4A8k6C.js +103 -0
  143. package/dist/chunks/index-Dphpk5r2.js +1 -0
  144. package/dist/chunks/index-DrBrgF-v.js +49 -0
  145. package/dist/chunks/index-Dr_cqQ-_.js +77 -0
  146. package/dist/chunks/index-Dt-nBtrQ.js +26 -0
  147. package/dist/chunks/index-DurPWBYc.js +24 -0
  148. package/dist/chunks/index-DwTj7cFr.js +57 -0
  149. package/dist/chunks/index-DyZVAYLv.js +52 -0
  150. package/dist/chunks/index-Hh597Yu6.js +121 -0
  151. package/dist/chunks/index-LxkAuMAA.js +1 -0
  152. package/dist/chunks/index-OaQhvPR1.js +46 -0
  153. package/dist/chunks/index-UPr2EvBX.js +149 -0
  154. package/dist/chunks/index-WNXgzThF.js +2340 -0
  155. package/dist/chunks/index-WvrCPen2.js +367 -0
  156. package/dist/chunks/index-cTXIVcWI.js +45 -0
  157. package/dist/chunks/index-caLn8cu1.js +1603 -0
  158. package/dist/chunks/index-hLI0Bnyb.js +77 -0
  159. package/dist/chunks/index-jBse-XgU.js +35 -0
  160. package/dist/chunks/index-oTjafsfN.js +25 -0
  161. package/dist/chunks/index-qNmuI3RB.js +149 -0
  162. package/dist/chunks/index-qiqzy9MI.js +23 -0
  163. package/dist/chunks/index-rwBsdvh6.js +87 -0
  164. package/dist/chunks/index-siqJUhKa.js +1 -0
  165. package/dist/chunks/index-w-G9CFId.js +1 -0
  166. package/dist/chunks/index-x6SeA7x7.js +405 -0
  167. package/dist/chunks/loading-icon-DJQIjg97.js +23 -0
  168. package/dist/chunks/loading-icon-DhJR6LyV.js +16 -0
  169. package/dist/chunks/main-DUusfqrI.js +18 -0
  170. package/dist/chunks/main-Dp7wHHgP.js +2882 -0
  171. package/dist/chunks/on-BPhwbVf3.js +10 -0
  172. package/dist/chunks/on-XRofyGQh.js +1 -0
  173. package/dist/chunks/property-DCYiZTFF.js +5 -0
  174. package/dist/chunks/property-pT1z5CCa.js +36 -0
  175. package/dist/chunks/query-CbRg6ZGy.js +23 -0
  176. package/dist/chunks/query-Dh8joWcT.js +9 -0
  177. package/dist/chunks/radio-group-manager-DBAEmhDM.js +1 -0
  178. package/dist/chunks/radio-group-manager-Du5wSOS1.js +102 -0
  179. package/dist/chunks/register-BK21_Wkj.js +11035 -0
  180. package/dist/chunks/register-BMNs2hNG.js +2157 -0
  181. package/dist/chunks/register-Cc9zkA5F.js +1 -0
  182. package/dist/chunks/register-JwwMwdRf.js +1273 -0
  183. package/dist/chunks/search-C3raqgOD.js +30 -0
  184. package/dist/chunks/search-CIhxkVjj.js +239 -0
  185. package/dist/chunks/select-item-4aISXm0r.js +76 -0
  186. package/dist/chunks/select-item-DjoxYopL.js +356 -0
  187. package/dist/chunks/settings-BPOpwVkr.js +594 -0
  188. package/dist/chunks/settings-CK2vhfPu.js +78 -0
  189. package/dist/chunks/shared-enums-BJDDuJr7.js +1 -0
  190. package/dist/chunks/shared-enums-DALKjQ7e.js +7 -0
  191. package/dist/chunks/state-Bpmgn27B.js +12 -0
  192. package/dist/chunks/state-FnSmMH94.js +5 -0
  193. package/dist/chunks/text-input-BygzMjjc.js +371 -0
  194. package/dist/chunks/text-input-cjcnMXO-.js +68 -0
  195. package/dist/chunks/tooltip-content-BjdZJ_Ui.js +134 -0
  196. package/dist/chunks/tooltip-content-DHyDYyOH.js +3 -0
  197. package/dist/chunks/tslib.es6-B07k2eac.js +1 -0
  198. package/dist/chunks/tslib.es6-C5gLNDSD.js +160 -0
  199. package/dist/chunks/unsafe-html-C_MKAcuC.js +5 -0
  200. package/dist/chunks/unsafe-html-D49sIpJ5.js +27 -0
  201. package/dist/chunks/validity-BMLNCMmP.js +1 -0
  202. package/dist/chunks/validity-CTz7ivUd.js +59 -0
  203. package/dist/zooy.cjs.js +1 -0
  204. package/dist/zooy.es.js +4 -0
  205. package/package.json +57 -0
  206. package/src/sass/carbon-icons.scss +46 -0
  207. package/src/sass/main.scss +7 -0
  208. package/src/sass/panels.scss +642 -0
  209. package/src/sass/reset.scss +43 -0
  210. package/src/sass/split.scss +131 -0
@@ -0,0 +1,65 @@
1
+ import { _ as h } from "./tslib.es6-C5gLNDSD.js";
2
+ import { a as o, i as d, p as n, x as r } from "./settings-BPOpwVkr.js";
3
+ import { n as g } from "./property-pT1z5CCa.js";
4
+ import { o as l } from "./unsafe-html-D49sIpJ5.js";
5
+ /**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */
10
+ const c = (i) => (e, t) => {
11
+ t !== void 0 ? t.addInitializer((() => {
12
+ customElements.define(i, e);
13
+ })) : customElements.define(i, e);
14
+ };
15
+ var v = o([":host(cds-heading){display:block}:host(cds-heading) h1,:host(cds-heading) h2,:host(cds-heading) h3,:host(cds-heading) h4,:host(cds-heading) h5,:host(cds-heading) h6{margin-block-end:0;margin-block-start:0;margin-inline-end:0;margin-inline-start:0;unicode-bidi:-webkit-isolate;unicode-bidi:-moz-isolate;unicode-bidi:isolate}:host(cds-heading) h1{font-size:var(--cds-heading-06-font-size,2.625rem);font-weight:var(--cds-heading-06-font-weight,300);letter-spacing:var(--cds-heading-06-letter-spacing,0);line-height:var(--cds-heading-06-line-height,1.199)}:host(cds-heading) h2{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);letter-spacing:var(--cds-heading-05-letter-spacing,0);line-height:var(--cds-heading-05-line-height,1.25)}:host(cds-heading) h3{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}:host(cds-heading) h4{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}:host(cds-heading) h5{font-size:var(--cds-heading-02-font-size,1rem);font-weight:var(--cds-heading-02-font-weight,600);letter-spacing:var(--cds-heading-02-letter-spacing,0);line-height:var(--cds-heading-02-line-height,1.5)}:host(cds-heading) h6{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}"]);
16
+ let s = class extends d {
17
+ constructor() {
18
+ super(...arguments), this._currentLevel = 1;
19
+ }
20
+ getParentLevel() {
21
+ var e;
22
+ const t = (e = this.parentElement) === null || e === void 0 ? void 0 : e.closest(`${n}-section`);
23
+ return t ? t.getCurrentLevel() : 1;
24
+ }
25
+ connectedCallback() {
26
+ var e;
27
+ super.connectedCallback();
28
+ const t = this.getParentLevel();
29
+ this._currentLevel = (e = this.level) !== null && e !== void 0 ? e : Math.min(t + 1, 6);
30
+ }
31
+ getCurrentLevel() {
32
+ return this._currentLevel;
33
+ }
34
+ render() {
35
+ return r`<slot></slot>`;
36
+ }
37
+ };
38
+ h([
39
+ g({ type: Number })
40
+ ], s.prototype, "level", void 0);
41
+ s = h([
42
+ c(`${n}-section`)
43
+ ], s);
44
+ let a = class extends d {
45
+ constructor() {
46
+ super(...arguments), this._level = 1;
47
+ }
48
+ connectedCallback() {
49
+ super.connectedCallback();
50
+ const e = this.closest(`${n}-section`);
51
+ this._level = e ? e.getCurrentLevel() : 1;
52
+ }
53
+ render() {
54
+ const e = `
55
+ <h${this._level}>
56
+ <slot></slot>
57
+ </h${this._level}>
58
+ `;
59
+ return r`${l(e)}`;
60
+ }
61
+ };
62
+ a.styles = v;
63
+ a = h([
64
+ c(`${n}-heading`)
65
+ ], a);
@@ -0,0 +1,9 @@
1
+ "use strict";const h=require("./tslib.es6-B07k2eac.js"),t=require("./settings-CK2vhfPu.js"),d=require("./property-DCYiZTFF.js"),c=require("./unsafe-html-C_MKAcuC.js");/**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const r=n=>(e,i)=>{i!==void 0?i.addInitializer((()=>{customElements.define(n,e)})):customElements.define(n,e)};var o=t.i$1([":host(cds-heading){display:block}:host(cds-heading) h1,:host(cds-heading) h2,:host(cds-heading) h3,:host(cds-heading) h4,:host(cds-heading) h5,:host(cds-heading) h6{margin-block-end:0;margin-block-start:0;margin-inline-end:0;margin-inline-start:0;unicode-bidi:-webkit-isolate;unicode-bidi:-moz-isolate;unicode-bidi:isolate}:host(cds-heading) h1{font-size:var(--cds-heading-06-font-size,2.625rem);font-weight:var(--cds-heading-06-font-weight,300);letter-spacing:var(--cds-heading-06-letter-spacing,0);line-height:var(--cds-heading-06-line-height,1.199)}:host(cds-heading) h2{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);letter-spacing:var(--cds-heading-05-letter-spacing,0);line-height:var(--cds-heading-05-line-height,1.25)}:host(cds-heading) h3{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}:host(cds-heading) h4{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}:host(cds-heading) h5{font-size:var(--cds-heading-02-font-size,1rem);font-weight:var(--cds-heading-02-font-weight,600);letter-spacing:var(--cds-heading-02-letter-spacing,0);line-height:var(--cds-heading-02-line-height,1.5)}:host(cds-heading) h6{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}"]);let s=class extends t.i{constructor(){super(...arguments),this._currentLevel=1}getParentLevel(){var e;const i=(e=this.parentElement)===null||e===void 0?void 0:e.closest(`${t.prefix}-section`);return i?i.getCurrentLevel():1}connectedCallback(){var e;super.connectedCallback();const i=this.getParentLevel();this._currentLevel=(e=this.level)!==null&&e!==void 0?e:Math.min(i+1,6)}getCurrentLevel(){return this._currentLevel}render(){return t.x`<slot></slot>`}};h.__decorate([d.n({type:Number})],s.prototype,"level",void 0);s=h.__decorate([r(`${t.prefix}-section`)],s);let a=class extends t.i{constructor(){super(...arguments),this._level=1}connectedCallback(){super.connectedCallback();const e=this.closest(`${t.prefix}-section`);this._level=e?e.getCurrentLevel():1}render(){const e=`
6
+ <h${this._level}>
7
+ <slot></slot>
8
+ </h${this._level}>
9
+ `;return t.x`${c.o(e)}`}};a.styles=o;a=h.__decorate([r(`${t.prefix}-heading`)],a);
@@ -0,0 +1,96 @@
1
+ import { _ as c } from "./tslib.es6-C5gLNDSD.js";
2
+ import { a as f, i as g, p as e, x as d } from "./settings-BPOpwVkr.js";
3
+ import { n } from "./property-pT1z5CCa.js";
4
+ import { e as m } from "./class-map-DEHG4tmw.js";
5
+ import { _ as b } from "./16-8pr5mbIO.js";
6
+ import { _ as y } from "./16-BTonF5Je.js";
7
+ import { g as u } from "./loading-icon-DJQIjg97.js";
8
+ import { c as h } from "./carbon-element-DzDuXiyl.js";
9
+ import { i as o } from "./icon-loader-Dk_AU26w.js";
10
+ var s;
11
+ (function(t) {
12
+ t.INACTIVE = "inactive", t.ACTIVE = "active", t.FINISHED = "finished", t.ERROR = "error";
13
+ })(s || (s = {}));
14
+ var k = f([".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--loading{animation-duration:.69s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:cds--rotate;animation-timing-function:linear;block-size:5.5rem;border:0;box-sizing:border-box;font-family:inherit;font-size:100%;inline-size:5.5rem;margin:0;padding:0;vertical-align:baseline}.cds--loading *,.cds--loading :after,.cds--loading :before{box-sizing:inherit}.cds--loading svg circle{animation-duration:10ms;animation-name:cds--init-stroke;animation-timing-function:cubic-bezier(.5,0,.1,1)}@media screen and (prefers-reduced-motion:reduce){.cds--loading svg circle{animation:none}}.cds--loading__svg{fill:transparent}.cds--loading__svg circle{stroke-dasharray:276.4608 276.4608;stroke-linecap:butt;stroke-width:10}.cds--loading__stroke{stroke:var(--cds-interactive,#0f62fe);stroke-dashoffset:52.527552}.cds--loading--small .cds--loading__stroke{stroke-dashoffset:143.759616}.cds--loading--stop{animation:cds--rotate-end-p1 .7s cubic-bezier(0,0,.25,1) forwards,cds--rotate-end-p2 .7s cubic-bezier(0,0,.25,1) .7s forwards}.cds--loading--stop svg circle{animation-delay:.7s;animation-duration:.7s;animation-fill-mode:forwards;animation-name:cds--stroke-end;animation-timing-function:cubic-bezier(0,0,.25,1)}@media screen and (prefers-reduced-motion:reduce){.cds--loading--stop svg circle{animation:none}}.cds--loading--small{block-size:1rem;inline-size:1rem;line-height:1rem}.cds--loading--small circle{stroke-width:16}.cds--loading--small .cds--loading__svg{stroke:var(--cds-interactive,#0f62fe)}.cds--loading__background{stroke:var(--cds-layer-accent);stroke-dashoffset:-22}@supports (hanging-punctuation:first) and (font:-apple-system-body) and (-webkit-appearance:none){circle.cds--loading__background{stroke-dasharray:265;stroke-dashoffset:0}}.cds--loading-overlay{align-items:center;background-color:var(--cds-overlay,hsla(0,0%,9%,.5));block-size:100%;display:flex;inline-size:100%;inset-block-start:0;inset-inline-start:0;justify-content:center;position:fixed;transition:background-color .7s cubic-bezier(.4,.14,.3,1);z-index:6000}.cds--loading-overlay--stop{display:none}@keyframes cds--rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes cds--rotate-end-p1{to{transform:rotate(1turn)}}@keyframes cds--rotate-end-p2{to{transform:rotate(-1turn)}}@keyframes cds--init-stroke{0%{stroke-dashoffset:276.4608}to{stroke-dashoffset:52.527552}}@keyframes cds--stroke-end{0%{stroke-dashoffset:52.527552}to{stroke-dashoffset:276.4608}}@keyframes prefix--stroke{to{stroke-dashoffset:0}}.cds--inline-loading,:host(cds-inline-loading){align-items:center;display:flex;inline-size:100%;min-block-size:2rem}.cds--inline-loading__text{color:var(--cds-text-secondary,#525252);font-size:var(--cds-label-02-font-size,.875rem);font-weight:var(--cds-label-02-font-weight,400);letter-spacing:var(--cds-label-02-letter-spacing,.16px);line-height:var(--cds-label-02-line-height,1.28572)}.cds--inline-loading__animation{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem;position:relative}.cds--inline-loading__checkmark-container{fill:var(--cds-support-success,#24a148)}.cds--inline-loading__checkmark-container.cds--inline-loading__svg{inline-size:.75rem;inset-block-start:.75rem;position:absolute}.cds--inline-loading__checkmark-container[hidden]{display:none}.cds--inline-loading__checkmark{animation-duration:.25s;animation-fill-mode:forwards;animation-name:cds--stroke;fill:none;stroke:var(--cds-interactive,#0f62fe);stroke-dasharray:12;stroke-dashoffset:12;stroke-width:1.8;transform-origin:50% 50%}.cds--inline-loading--error{block-size:1rem;fill:var(--cds-support-error,#da1e28);inline-size:1rem}.cds--inline-loading--error[hidden]{display:none}.cds--loading--small .cds--inline-loading__svg{stroke:var(--cds-interactive,#0f62fe)}.cds--btn .cds--inline-loading--btn{min-block-size:0}.cds--btn .cds--inline-loading--btn .cds--inline-loading__text{font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);line-height:var(--cds-body-short-01-line-height,1.28572)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.cds--inline-loading__checkmark-container{inset-block-start:1px;inset-inline-end:.5rem}.cds--inline-loading__checkmark{animation:none;stroke-dasharray:0;stroke-dashoffset:0}}"]);
15
+ let i = class extends g {
16
+ constructor() {
17
+ super(...arguments), this.iconDescription = "Loading", this.successDelay = 1500, this.status = s.ACTIVE;
18
+ }
19
+ /**
20
+ * @deprecated The 'assistive-text' property will be deprecated in the next major release. Please use `icon-description` instead.
21
+ */
22
+ get assistiveText() {
23
+ return this.iconDescription;
24
+ }
25
+ set assistiveText(r) {
26
+ this.iconDescription = r;
27
+ }
28
+ /**
29
+ * @returns The template for the status icon.
30
+ */
31
+ _renderIcon() {
32
+ const { iconDescription: r, status: a } = this;
33
+ if (a === s.ERROR)
34
+ return o(y, {
35
+ class: `${e}--inline-loading--error`,
36
+ "aria-label": r
37
+ });
38
+ const l = {
39
+ bubbles: !0,
40
+ cancelable: !0,
41
+ composed: !0
42
+ };
43
+ if (a === s.FINISHED)
44
+ return setTimeout(() => {
45
+ this.dispatchEvent(new CustomEvent(this.constructor.eventOnSuccess, l));
46
+ }, this.successDelay), o(b, {
47
+ class: `${e}--inline-loading__checkmark-container`,
48
+ "aria-label": r
49
+ });
50
+ if (a === s.INACTIVE || a === s.ACTIVE) {
51
+ const v = m({
52
+ [`${e}--loading`]: !0,
53
+ [`${e}--loading--small`]: !0,
54
+ [`${e}--loading--stop`]: a === s.INACTIVE
55
+ });
56
+ return d`
57
+ <div class="${v}">
58
+ ${u({ description: r, small: !0 })}
59
+ </div>
60
+ `;
61
+ }
62
+ }
63
+ static get eventOnSuccess() {
64
+ return `${e}-inline-loading-onsuccess`;
65
+ }
66
+ connectedCallback() {
67
+ this.hasAttribute("aria-live") || this.setAttribute("aria-live", "assertive"), super.connectedCallback();
68
+ }
69
+ render() {
70
+ const r = this._renderIcon(), a = r ? d`
71
+ <div class="${e}--inline-loading__animation">
72
+ ${r}
73
+ </div>
74
+ ` : void 0;
75
+ return d`
76
+ ${a}
77
+ <p class="${e}--inline-loading__text"><slot></slot></p>
78
+ `;
79
+ }
80
+ };
81
+ i.styles = k;
82
+ c([
83
+ n({ attribute: "assistive-text" })
84
+ ], i.prototype, "assistiveText", null);
85
+ c([
86
+ n({ attribute: "icon-description" })
87
+ ], i.prototype, "iconDescription", void 0);
88
+ c([
89
+ n({ attribute: "success-delay" })
90
+ ], i.prototype, "successDelay", void 0);
91
+ c([
92
+ n({ reflect: !0 })
93
+ ], i.prototype, "status", void 0);
94
+ i = c([
95
+ h(`${e}-inline-loading`)
96
+ ], i);
@@ -0,0 +1,22 @@
1
+ "use strict";const i=require("./tslib.es6-B07k2eac.js"),e=require("./settings-CK2vhfPu.js"),c=require("./property-DCYiZTFF.js"),w=require("./carbon-element-CbfPUYRT.js"),x=require("./class-map-BfNAkUL_.js"),I=require("./16-DH311Of_.js"),E=require("./16-B56B50XT.js"),f=require("./icon-loader-o_JYDmJX.js");var t;(function(r){r.ACTIVE="active",r.FINISHED="finished",r.ERROR="error"})(t||(t={}));var b;(function(r){r.SMALL="small",r.BIG="big"})(b||(b={}));var v;(function(r){r.DEFAULT="default",r.INLINE="inline",r.INDENTED="indented"})(v||(v={}));var D=e.i$1(['.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--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--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--progress-bar{--cds-layout-density-padding-inline-local:clamp(var(--cds-layout-density-padding-inline-min),var(--cds-layout-density-padding-inline,var(--cds-layout-density-padding-inline-normal)),var(--cds-layout-density-padding-inline-max))}.cds--progress-bar__label{color:var(--cds-text-primary,#161616);display:flex;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);justify-content:space-between;letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572);margin-block-end:.5rem;min-inline-size:3rem}.cds--progress-bar__label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cds--progress-bar__track{background-color:var(--cds-layer);block-size:.5rem;inline-size:100%;min-inline-size:3rem;position:relative}.cds--progress-bar--big .cds--progress-bar__track{block-size:.5rem}.cds--progress-bar--small .cds--progress-bar__track{block-size:.25rem}.cds--progress-bar__bar{background-color:currentColor;block-size:100%;color:var(--cds-interactive,#0f62fe);display:block;inline-size:100%;transform:scaleX(0);transform-origin:0 center;transition:transform .11s cubic-bezier(.2,0,.38,.9)}[dir=rtl] .cds--progress-bar__bar{transform-origin:100% center}.cds--progress-bar--indeterminate .cds--progress-bar__track:after{animation-duration:1.4s;animation-iteration-count:infinite;animation-name:cds--progress-bar-indeterminate;animation-timing-function:linear;background-image:linear-gradient(90deg,var(--cds-interactive,#0f62fe) 12.5%,transparent 12.5%);background-position-x:0;background-size:200% 100%;content:"";inset:0;position:absolute}[dir=rtl] .cds--progress-bar--indeterminate .cds--progress-bar__track:after{animation-name:cds--progress-bar-indeterminate-rtl}.cds--progress-bar__helper-text{color:var(--cds-text-secondary,#525252);font-size:var(--cds-helper-text-01-font-size,.75rem);letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);line-height:var(--cds-helper-text-01-line-height,1.33333);margin-block-start:.5rem}.cds--progress-bar__status-icon{flex-shrink:0;margin-inline-start:var(--cds-layout-density-padding-inline-local)}.cds--progress-bar--finished .cds--progress-bar__bar,.cds--progress-bar--finished .cds--progress-bar__status-icon{color:var(--cds-support-success,#24a148)}.cds--progress-bar--error .cds--progress-bar__bar,.cds--progress-bar--error .cds--progress-bar__status-icon{color:var(--cds-support-error,#da1e28)}.cds--progress-bar--error .cds--progress-bar__helper-text{color:var(--cds-text-error,#da1e28)}.cds--progress-bar--error .cds--progress-bar__bar,.cds--progress-bar--finished .cds--progress-bar__bar{transform:scaleX(1)}.cds--progress-bar--error.cds--progress-bar--inline .cds--progress-bar__track,.cds--progress-bar--finished.cds--progress-bar--inline .cds--progress-bar__track{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--progress-bar--error.cds--progress-bar--inline .cds--progress-bar__label,.cds--progress-bar--finished.cds--progress-bar--inline .cds--progress-bar__label{flex-shrink:1;justify-content:flex-start;margin-inline-end:0}@keyframes cds--progress-bar-indeterminate{0%{background-position-x:25%}80%,to{background-position-x:-105%}}@keyframes cds--progress-bar-indeterminate-rtl{0%{background-position-x:-105%}80%,to{background-position-x:25%}}.cds--progress-bar--inline{align-items:center;display:flex}.cds--progress-bar--inline .cds--progress-bar__label{flex-shrink:0;margin-block-end:0;margin-inline-end:var(--cds-layout-density-padding-inline-local)}.cds--progress-bar--inline .cds--progress-bar__track{flex-basis:0;flex-grow:1}.cds--progress-bar--inline .cds--progress-bar__helper-text{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--progress-bar--indented .cds--progress-bar__helper-text,.cds--progress-bar--indented .cds--progress-bar__label{padding-inline:var(--cds-layout-density-padding-inline-local)}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--progress-bar__track{background-color:Canvas;forced-color-adjust:none;outline:2px solid transparent;outline-offset:-2px}.cds--progress-bar__bar{background-color:CanvasText}}:host(cds-progress-bar) .cds--progress-bar--inline .cds--progress-bar__label{margin-inline-end:1rem}:host(cds-progress-bar) .cds--progress-bar--indented .cds--progress-bar__helper-text,:host(cds-progress-bar) .cds--progress-bar--indented .cds--progress-bar__label{padding-inline:1rem}']);let a=class extends e.i{constructor(){super(...arguments),this.max=100,this.size=b.BIG,this.status=t.ACTIVE,this.type=v.DEFAULT}get _cappedValue(){const{value:o,max:d,status:n}=this;let s=o;return s>d&&(s=d),s<0&&(s=0),n===t.ERROR?s=0:n===t.FINISHED&&(s=d),s}updated(o){if(o.has("value")||o.has("max")||o.has("status")){const{_cappedValue:d,max:n,status:s}=this,p=d/n,y=this.shadowRoot.querySelector(`.${e.prefix}--progress-bar__bar`);s!=t.ERROR&&s!=t.FINISHED?y.style.transform=`scaleX(${p})`:y.style.transform="none"}}render(){const{_cappedValue:o,helperText:d,hideLabel:n,label:s,max:p,size:y,status:m,type:z,value:_}=this,l=m===t.FINISHED,g=m===t.ERROR,u=!l&&!g&&_==null;let h=null;g?h=f.iconLoader(I._16,{class:`${e.prefix}--progress-bar__status-icon`}):l&&(h=f.iconLoader(E._16,{class:`${e.prefix}--progress-bar__status-icon`}));const k=x.e({[`${e.prefix}--progress-bar`]:!0,[`${e.prefix}--progress-bar--${y}`]:!0,[`${e.prefix}--progress-bar--${z}`]:!0,[`${e.prefix}--progress-bar--indeterminate`]:u,[`${e.prefix}--progress-bar--finished`]:l,[`${e.prefix}--progress-bar--error`]:g}),$=x.e({[`${e.prefix}--progress-bar__label`]:!0,[`${e.prefix}--visually-hidden`]:n});return e.x` <div class="${k}">
2
+ <div class="${$}">
3
+ <span class="${e.prefix}--progress-bar__label-text">${s}</span>
4
+ ${h}
5
+ </div>
6
+ <div
7
+ class="${e.prefix}--progress-bar__track"
8
+ role="progressbar"
9
+ aria-busy="${!l}"
10
+ aria-invalid="${g}"
11
+ aria-valuemin="${u?null:0}"
12
+ aria-valuemax="${u?null:p}"
13
+ aria-valuenow="${u?null:o}">
14
+ <div class="${e.prefix}--progress-bar__bar"></div>
15
+ </div>
16
+ ${d?e.x`<div class="${e.prefix}--progress-bar__helper-text">
17
+ ${d}
18
+ <div class="${e.prefix}--visually-hidden" aria-live="polite">
19
+ ${l?"Done":"Loading"}
20
+ </div>
21
+ </div>`:null}
22
+ </div>`}};a.styles=D;i.__decorate([c.n({type:String,attribute:"helper-text",reflect:!0})],a.prototype,"helperText",void 0);i.__decorate([c.n({type:Boolean,attribute:"hide-label",reflect:!0})],a.prototype,"hideLabel",void 0);i.__decorate([c.n({type:String})],a.prototype,"label",void 0);i.__decorate([c.n({type:Number,reflect:!0})],a.prototype,"max",void 0);i.__decorate([c.n({type:String,reflect:!0})],a.prototype,"size",void 0);i.__decorate([c.n({type:String,reflect:!0})],a.prototype,"status",void 0);i.__decorate([c.n({type:String,reflect:!0})],a.prototype,"type",void 0);i.__decorate([c.n({type:Number,reflect:!0})],a.prototype,"value",void 0);a=i.__decorate([w.carbonElement(`${e.prefix}-progress-bar`)],a);
@@ -0,0 +1,187 @@
1
+ import { _ as l } from "./tslib.es6-C5gLNDSD.js";
2
+ import { e as d } from "./class-map-DEHG4tmw.js";
3
+ import { a as T, p as t, x as g, i as B } from "./settings-BPOpwVkr.js";
4
+ import { n as c } from "./property-pT1z5CCa.js";
5
+ import { e as D } from "./query-CbRg6ZGy.js";
6
+ import { o as h } from "./if-defined-C0yJsxi2.js";
7
+ import { C as O } from "./checkbox-B5mHvx0J.js";
8
+ import { H } from "./host-listener-CN245INl.js";
9
+ import { c as f } from "./carbon-element-DzDuXiyl.js";
10
+ var b;
11
+ (function(i) {
12
+ i.REGULAR = "", i.SMALL = "sm";
13
+ })(b || (b = {}));
14
+ var k = T(['.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}@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--toggle{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cds--toggle__label-text{color:var(--cds-text-secondary,#525252);display:block;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-block-end:1rem}.cds--toggle__button{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--toggle__button:focus{outline:none}.cds--toggle__appearance{align-items:center;-moz-column-gap:.5rem;column-gap:.5rem;cursor:pointer;display:inline-grid;grid-template-columns:max-content max-content}.cds--toggle__switch{background-color:var(--cds-toggle-off,#8d8d8d);block-size:1.5rem;border-radius:.75rem;inline-size:3rem;position:relative;transition:background-color 70ms cubic-bezier(.2,0,1,.9)}.cds--toggle__switch:before{background-color:var(--cds-icon-on-color,#fff);block-size:1.125rem;border-radius:50%;content:"";inline-size:1.125rem;inset-block-start:.1875rem;inset-inline-start:.1875rem;position:absolute;transition:transform 70ms cubic-bezier(.2,0,1,.9)}@media screen and (prefers-reduced-motion:reduce){.cds--toggle__switch:before{transition:none}}.cds--toggle:not(.cds--toggle--disabled):active .cds--toggle__switch:after,.cds--toggle__button:focus+.cds--toggle__label .cds--toggle__switch:after{block-size:100%;border-radius:1rem;content:"";display:block;outline:2px solid var(--cds-focus,#0f62fe);outline-offset:1px}.cds--toggle__switch--checked{background-color:var(--cds-support-success,#24a148)}.cds--toggle__switch--checked:before{transform:translateX(1.5rem)}.cds--toggle__text{color:var(--cds-text-primary,#161616);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)}.cds--toggle__appearance--sm .cds--toggle__switch{block-size:1rem;inline-size:2rem}.cds--toggle__appearance--sm .cds--toggle__switch:before{block-size:.625rem;inline-size:.625rem}.cds--toggle__appearance--sm .cds--toggle__switch--checked:before{transform:translateX(1rem)}.cds--toggle__check{block-size:.3125rem;position:absolute;fill:var(--cds-support-success,#24a148);inline-size:.375rem;inset-block-start:.375rem;inset-inline-end:.3125rem;visibility:hidden}.cds--toggle__switch--checked .cds--toggle__check{visibility:visible}.cds--toggle--disabled .cds--toggle__appearance,:host(cds-toggle[disabled]) .cds--toggle__appearance{cursor:not-allowed}.cds--toggle--disabled .cds--toggle__label-text,.cds--toggle--disabled .cds--toggle__text,:host(cds-toggle[disabled]) .cds--toggle__label-text,:host(cds-toggle[disabled]) .cds--toggle__text{color:var(--cds-text-disabled,hsla(0,0%,9%,.25))}.cds--toggle--disabled .cds--toggle__switch,:host(cds-toggle[disabled]) .cds--toggle__switch{background-color:var(--cds-button-disabled,#c6c6c6)}.cds--toggle--disabled .cds--toggle__switch:before,:host(cds-toggle[disabled]) .cds--toggle__switch:before{background-color:var(--cds-icon-on-color-disabled,#8d8d8d)}.cds--toggle--disabled .cds--toggle__check,:host(cds-toggle[disabled]) .cds--toggle__check{fill:var(--cds-button-disabled,#c6c6c6)}.cds--toggle--readonly .cds--toggle__appearance,:host(cds-toggle[read-only]) .cds--toggle__appearance{cursor:default}.cds--toggle--readonly .cds--toggle__switch,:host(cds-toggle[read-only]) .cds--toggle__switch{background-color:transparent;border:1px solid var(--cds-icon-disabled,hsla(0,0%,9%,.25))}.cds--toggle--readonly .cds--toggle__switch:before,:host(cds-toggle[read-only]) .cds--toggle__switch:before{background-color:var(--cds-icon-primary,#161616);inset-block-start:.125rem;inset-inline-start:.125rem}.cds--toggle--readonly .cds--toggle__check,:host(cds-toggle[read-only]) .cds--toggle__check{fill:var(--cds-background,#fff);inset-block-start:.3125rem;inset-inline-end:.25rem}.cds--toggle--readonly .cds--toggle__text,:host(cds-toggle[read-only]) .cds--toggle__text{cursor:text;-webkit-user-select:text;-moz-user-select:text;user-select:text}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--toggle__switch,.cds--toggle__switch:before{outline:1px solid transparent}.cds--toggle:not(.cds--toggle--disabled):active .cds--toggle__switch,.cds--toggle__button:focus+.cds--toggle__label .cds--toggle__switch{color:Highlight;outline:1px solid Highlight}}.cds--toggle--skeleton{align-items:center;display:flex}.cds--toggle--skeleton .cds--toggle__skeleton-circle{background:var(--cds-skeleton-background,#e8e8e8);block-size:1.125rem;border-radius:50%;inline-size:1.125rem;overflow:hidden;position:relative}.cds--toggle--skeleton .cds--toggle__skeleton-circle:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:200%;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--toggle--skeleton .cds--toggle__skeleton-circle:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--toggle--skeleton .cds--toggle__skeleton-circle{background:CanvasText}.cds--toggle--skeleton .cds--toggle__skeleton-circle:before{background:Canvas;forced-color-adjust:none}}.cds--toggle--skeleton .cds--toggle__skeleton-rectangle{background:var(--cds-skeleton-background,#e8e8e8);block-size:.5rem;border:none;box-shadow:none;inline-size:1.5rem;margin-inline-start:.5rem;padding:0;pointer-events:none;position:relative}.cds--toggle--skeleton .cds--toggle__skeleton-rectangle:active,.cds--toggle--skeleton .cds--toggle__skeleton-rectangle:focus,.cds--toggle--skeleton .cds--toggle__skeleton-rectangle:hover{border:none;cursor:default;outline:none}.cds--toggle--skeleton .cds--toggle__skeleton-rectangle: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--toggle--skeleton .cds--toggle__skeleton-rectangle:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--toggle--skeleton .cds--toggle__skeleton-rectangle{background:CanvasText}.cds--toggle--skeleton .cds--toggle__skeleton-rectangle:before{background:Canvas;forced-color-adjust:none}}[dir=rtl] .cds--toggle__switch--checked:before{transform:translateX(-1.5rem)}[dir=rtl] .cds--toggle__appearance--sm .cds--toggle__switch--checked:before{transform:translateX(-1rem)}:host(cds-toggle){outline:none}:host(cds-toggle) .cds--toggle__label{-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(cds-toggle[enable-v12-toggle-reduced-label-spacing]) .cds--toggle__label-text{margin-block-end:.5rem}:host(cds-toggle[disabled]) .cds--toggle__appearance{cursor:not-allowed}:host(cds-toggle[read-only]) .cds--toggle__switch{border:none;box-shadow:inset 0 0 0 1px var(--cds-icon-disabled,hsla(0,0%,9%,.25))}:host(cds-toggle[read-only]) .cds--toggle__switch:before{inset-block-start:.1875rem;inset-inline-start:.1875rem}:host(cds-toggle[read-only]) .cds--toggle__check{inset-block-start:.375rem;inset-inline-end:.3125rem}:host(cds-toggle:dir(rtl)) .cds--toggle__switch--checked:before{transform:translateX(-1.5rem)}:host(cds-toggle:dir(rtl)) .cds--toggle__appearance--sm .cds--toggle__switch--checked:before{transform:translateX(-1rem)}']);
15
+ let s = class extends H(O) {
16
+ constructor() {
17
+ super(...arguments), this.labelA = "On", this.hideLabel = !1, this.readOnly = !1, this.size = b.REGULAR, this.labelB = "Off", this._externalLabels = [], this._onExternalLabelClick = () => {
18
+ var e;
19
+ (e = this._checkboxNode) === null || e === void 0 || e.focus(), this._handleChange();
20
+ };
21
+ }
22
+ /**
23
+ * Handles `click` event on the `<button>` in the shadow DOM.
24
+ */
25
+ _handleChange() {
26
+ const { checked: e } = this._checkboxNode;
27
+ if (this.disabled || this.readOnly)
28
+ return;
29
+ this.toggled = !e;
30
+ const { eventChange: o } = this.constructor;
31
+ this.dispatchEvent(new CustomEvent(o, {
32
+ bubbles: !0,
33
+ composed: !0,
34
+ detail: {
35
+ checked: this.toggled,
36
+ // TODO: remove in v12
37
+ toggled: this.toggled
38
+ }
39
+ }));
40
+ }
41
+ _renderCheckmark() {
42
+ if (!(this.size !== b.SMALL || this.readOnly == !0))
43
+ return g`
44
+ <svg
45
+ class="${t}--toggle__check"
46
+ width="6px"
47
+ height="5px"
48
+ viewBox="0 0 6 5">
49
+ <path d="M2.2 2.7L5 0 6 1 2.2 5 0 2.7 1 1.5z" />
50
+ </svg>
51
+ `;
52
+ }
53
+ // TODO: remove in v12
54
+ /**
55
+ *
56
+ * **Deprecated:** Use `toggled` instead.
57
+ * The `checked` attribute will be removed in the next major version.
58
+ */
59
+ get _checkedAttributeAlias() {
60
+ return this.toggled;
61
+ }
62
+ set _checkedAttributeAlias(e) {
63
+ this.toggled = e;
64
+ }
65
+ // TODO: remove get() and set() in v12
66
+ /**
67
+ * Specify whether the control is toggled
68
+ */
69
+ get toggled() {
70
+ return this.checked;
71
+ }
72
+ set toggled(e) {
73
+ const o = this.checked;
74
+ o !== e && (this.checked = e, this.requestUpdate("toggled", o), this.requestUpdate("_checkedAttributeAlias"));
75
+ }
76
+ /**
77
+ * Finds external toggle `<label>`s and attaches handlers.
78
+ */
79
+ _attachExternalLabels() {
80
+ const e = this.ownerDocument || document, o = this.id ? [...e.querySelectorAll(`label[for="${this.id}"]`)] : [];
81
+ this._externalLabels = Array.from(new Set(o)), this._externalLabels.forEach((r) => {
82
+ r.addEventListener("click", this._onExternalLabelClick);
83
+ });
84
+ }
85
+ connectedCallback() {
86
+ var e;
87
+ (e = super.connectedCallback) === null || e === void 0 || e.call(this), this._attachExternalLabels();
88
+ }
89
+ disconnectedCallback() {
90
+ var e;
91
+ (e = super.disconnectedCallback) === null || e === void 0 || e.call(this), this._externalLabels.forEach((o) => o.removeEventListener("click", this._onExternalLabelClick));
92
+ }
93
+ render() {
94
+ var e, o;
95
+ const { toggled: r, disabled: v, labelText: n, hideLabel: m, id: a, name: y, size: p, labelA: x, labelB: w, value: $, _handleChange: z } = this, C = d({
96
+ [`${t}--toggle__appearance`]: !0,
97
+ [`${t}--toggle__appearance--${p}`]: p
98
+ }), L = d({
99
+ [`${t}--toggle__switch`]: !0,
100
+ [`${t}--toggle__switch--checked`]: r
101
+ }), A = d({
102
+ [`${t}--toggle__label-text`]: n,
103
+ [`${t}--visually-hidden`]: m
104
+ });
105
+ let _ = "";
106
+ m ? _ = n || "" : _ = r ? x : w;
107
+ const X = a ? `${a}_label` : void 0, E = ((e = this.labelText) !== null && e !== void 0 ? e : "") !== "", S = (o = this.ariaLabelledby) !== null && o !== void 0 ? o : E && X;
108
+ return g`
109
+ <button
110
+ class="${t}--toggle__button"
111
+ role="switch"
112
+ type="button"
113
+ aria-checked=${r}
114
+ aria-labelledby=${h(S)}
115
+ .checked=${r}
116
+ name="${h(y)}"
117
+ value="${h($)}"
118
+ ?disabled=${v}
119
+ id="${a}"
120
+ @click=${z}></button>
121
+ <label for="${a}" class="${t}--toggle__label">
122
+ ${n ? g`<span class="${A}">${n}</span>` : null}
123
+ <div class="${C}">
124
+ <div class="${L}">${this._renderCheckmark()}</div>
125
+ <span class="${t}--toggle__text" aria-hidden="true"
126
+ >${_}</span
127
+ >
128
+ </div>
129
+ </label>
130
+ `;
131
+ }
132
+ /**
133
+ * The name of the custom event fired after this changebox changes its toggled state.
134
+ */
135
+ static get eventChange() {
136
+ return `${t}-toggle-changed`;
137
+ }
138
+ };
139
+ s.styles = k;
140
+ l([
141
+ D("button")
142
+ ], s.prototype, "_checkboxNode", void 0);
143
+ l([
144
+ c({ type: Boolean, attribute: "checked", reflect: !0 })
145
+ ], s.prototype, "_checkedAttributeAlias", null);
146
+ l([
147
+ c({ type: Boolean, reflect: !0 })
148
+ ], s.prototype, "toggled", null);
149
+ l([
150
+ c({ type: String, attribute: "aria-labelledby" })
151
+ ], s.prototype, "ariaLabelledby", void 0);
152
+ l([
153
+ c({ attribute: "label-a" })
154
+ ], s.prototype, "labelA", void 0);
155
+ l([
156
+ c({ reflect: !0, type: Boolean })
157
+ ], s.prototype, "hideLabel", void 0);
158
+ l([
159
+ c({ reflect: !0, attribute: "read-only", type: Boolean })
160
+ ], s.prototype, "readOnly", void 0);
161
+ l([
162
+ c({ reflect: !0 })
163
+ ], s.prototype, "size", void 0);
164
+ l([
165
+ c({ attribute: "label-b" })
166
+ ], s.prototype, "labelB", void 0);
167
+ s = l([
168
+ f(`${t}-toggle`)
169
+ ], s);
170
+ let u = class extends B {
171
+ render() {
172
+ const e = d({
173
+ [`${t}--toggle`]: !0,
174
+ [`${t}--toggle--skeleton`]: !0
175
+ });
176
+ return g`
177
+ <div class=${e}>
178
+ <div class="${t}--toggle__skeleton-circle"></div>
179
+ <div class="${t}--toggle__skeleton-rectangle"></div>
180
+ </div>
181
+ `;
182
+ }
183
+ };
184
+ u.styles = k;
185
+ u = l([
186
+ f(`${t}-toggle-skeleton`)
187
+ ], u);
@@ -0,0 +1,25 @@
1
+ "use strict";const t=require("./tslib.es6-B07k2eac.js"),f=require("./class-map-BfNAkUL_.js"),s=require("./if-defined-BdZRLDJ6.js"),i=require("./settings-CK2vhfPu.js"),o=require("./property-DCYiZTFF.js"),b=require("./query-Dh8joWcT.js"),u=require("./focus-rQSNiwy7.js"),_=require("./carbon-element-CbfPUYRT.js");var g=i.i$1([".cds--link{border:0;box-sizing:border-box;color:var(--cds-link-text-color,var(--cds-link-primary,#0f62fe));display:inline-flex;font-family:inherit;font-size:100%;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);margin:0;outline:none;padding:0;text-decoration:none;transition:color 70ms cubic-bezier(.2,0,.38,.9);vertical-align:baseline}.cds--link *,.cds--link :after,.cds--link :before{box-sizing:inherit}.cds--link:hover{color:var(--cds-link-hover-text-color,var(--cds-link-primary-hover,#0043ce));text-decoration:underline}.cds--link:active:not(.cds--link--disabled),.cds--link:active:visited,.cds--link:active:visited:hover{color:var(--cds-link-text-color,var(--cds-link-primary,#0f62fe));outline:1px solid var(--cds-focus,#0f62fe);outline-color:var(--cds-link-focus-text-color,var(--cds-focus,#0f62fe));text-decoration:underline}@media screen and (prefers-contrast){.cds--link:active:not(.cds--link--disabled),.cds--link:active:visited,.cds--link:active:visited:hover{outline-style:dotted}}.cds--link:focus:not(.cds--link--disabled){outline:1px solid var(--cds-focus,#0f62fe);outline-color:var(--cds-link-focus-text-color,var(--cds-focus,#0f62fe));text-decoration:underline}@media screen and (prefers-contrast){.cds--link:focus:not(.cds--link--disabled){outline-style:dotted}}.cds--link:visited{color:var(--cds-link-text-color,var(--cds-link-primary,#0f62fe))}.cds--link:visited:hover{color:var(--cds-link-hover-text-color,var(--cds-link-primary-hover,#0043ce))}.cds--link--disabled,.cds--link--disabled:hover{border:0;box-sizing:border-box;color:var(--cds-text-disabled,hsla(0,0%,9%,.25));cursor:not-allowed;font-family:inherit;font-size:100%;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);font-weight:400;letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572);margin:0;padding:0;text-decoration:none;vertical-align:baseline}.cds--link--disabled *,.cds--link--disabled :after,.cds--link--disabled :before,.cds--link--disabled:hover *,.cds--link--disabled:hover :after,.cds--link--disabled:hover :before{box-sizing:inherit}.cds--link.cds--link--visited:visited{color:var(--cds-link-visited-text-color,var(--cds-link-visited,#8a3ffc))}.cds--link.cds--link--visited:visited:hover{color:var(--cds-link-hover-text-color,var(--cds-link-primary-hover,#0043ce))}.cds--link.cds--link--inline{display:inline;text-decoration:underline}.cds--link--disabled.cds--link--inline{text-decoration:underline}.cds--link--sm,.cds--link--sm.cds--link--disabled:hover{font-size:var(--cds-helper-text-01-font-size,.75rem);letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);line-height:var(--cds-helper-text-01-line-height,1.33333)}.cds--link--lg,.cds--link--lg.cds--link--disabled:hover{font-size:var(--cds-body-compact-02-font-size,1rem);font-weight:var(--cds-body-compact-02-font-weight,400);letter-spacing:var(--cds-body-compact-02-letter-spacing,0);line-height:var(--cds-body-compact-02-line-height,1.375)}.cds--link__icon{align-self:center;display:inline-flex;margin-inline-start:.5rem}:host(cds-link){outline:none}:host(cds-link) .cds--link--disabled{color:var(--cds-text-disabled,hsla(0,0%,9%,.25))}:host(cds-link) .cds--link__icon[hidden]{display:none}"]);const y={MEDIUM:"md"};let e=class extends u.FocusMixin(i.i){constructor(){super(...arguments),this._hasIcon=!1,this.disabled=!1,this.inline=!1,this.size=y.MEDIUM,this.visited=!1}_handleSlotChange({target:n}){const{name:r}=n,l=n.assignedNodes().some(d=>d.nodeType!==Node.TEXT_NODE||d.textContent.trim());this[r==="icon"?"_hasIcon":""]=l,this.requestUpdate()}get _classes(){const{disabled:n,size:r,inline:l,visited:d,_hasIcon:c}=this;return f.e({[`${i.prefix}--link`]:!0,[`${i.prefix}--link--disabled`]:n,[`${i.prefix}--link--icon`]:c,[`${i.prefix}--link--inline`]:l,[`${i.prefix}--link--${r}`]:r,[`${i.prefix}--link--visited`]:d})}_handleClick(n){}_renderInner(){const{_hasIcon:n,_handleSlotChange:r}=this;return i.x`
2
+ <slot @slotchange="${r}"></slot>
3
+ <div ?hidden="${!n}" class="${i.prefix}--link__icon">
4
+ <slot name="icon" @slotchange="${r}"></slot>
5
+ </div>
6
+ `}_renderDisabledLink(){const{_classes:n}=this;return i.x`
7
+ <p id="link" part="link" class="${n}">${this._renderInner()}</p>
8
+ `}_renderLink(){const{download:n,href:r,hreflang:l,linkRole:d,ping:c,rel:a,target:p,type:v,_classes:h,_handleClick:k}=this;return i.x`
9
+ <a
10
+ tabindex="0"
11
+ id="link"
12
+ role="${s.o(d)}"
13
+ class="${h}"
14
+ part="link"
15
+ download="${s.o(n)}"
16
+ href="${s.o(r)}"
17
+ hreflang="${s.o(l)}"
18
+ ping="${s.o(c)}"
19
+ rel="${s.o(a)}"
20
+ target="${s.o(p)}"
21
+ type="${s.o(v)}"
22
+ @click="${k}">
23
+ ${this._renderInner()}
24
+ </a>
25
+ `}render(){const{disabled:n}=this;return n?this._renderDisabledLink():this._renderLink()}};e.shadowRootOptions=Object.assign(Object.assign({},i.i.shadowRootOptions),{delegatesFocus:!0});e.styles=g;t.__decorate([b.e("#link")],e.prototype,"_linkNode",void 0);t.__decorate([o.n({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0);t.__decorate([o.n({reflect:!0})],e.prototype,"download",void 0);t.__decorate([o.n({reflect:!0})],e.prototype,"href",void 0);t.__decorate([o.n({reflect:!0})],e.prototype,"hreflang",void 0);t.__decorate([o.n({type:Boolean,reflect:!0})],e.prototype,"inline",void 0);t.__decorate([o.n({attribute:"link-role"})],e.prototype,"linkRole",void 0);t.__decorate([o.n({reflect:!0})],e.prototype,"ping",void 0);t.__decorate([o.n({reflect:!0})],e.prototype,"rel",void 0);t.__decorate([o.n({reflect:!0})],e.prototype,"size",void 0);t.__decorate([o.n({reflect:!0})],e.prototype,"target",void 0);t.__decorate([o.n({reflect:!0})],e.prototype,"type",void 0);t.__decorate([o.n({type:Boolean,reflect:!0})],e.prototype,"visited",void 0);e=t.__decorate([_.carbonElement(`${i.prefix}-link`)],e);var x=e;const m=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.CDSLink$1=x;exports.index=m;