@designsystem-se/af 34.0.3-beta.0 → 34.0.3

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 (146) hide show
  1. package/components/digi-form-select-filter.js +1 -1
  2. package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-6826a1e7.js} +7 -0
  3. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  4. package/dist/cjs/digi-button_12.cjs.entry.js +1126 -0
  5. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +8 -13
  6. package/dist/cjs/digi-code-block_3.cjs.entry.js +13 -18
  7. package/dist/cjs/digi-code-example.cjs.entry.js +3 -4
  8. package/dist/cjs/digi-dialog.cjs.entry.js +14 -19
  9. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +8 -13
  10. package/dist/cjs/digi-footer.cjs.entry.js +7 -12
  11. package/dist/cjs/digi-form-error-list.cjs.entry.js +7 -12
  12. package/dist/cjs/digi-form-file-upload.cjs.entry.js +9 -10
  13. package/dist/cjs/digi-form-input-search.cjs.entry.js +6 -8
  14. package/dist/cjs/digi-form-receipt.cjs.entry.js +14 -19
  15. package/dist/cjs/digi-header-navigation.cjs.entry.js +7 -12
  16. package/dist/cjs/digi-header.cjs.entry.js +7 -12
  17. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +5 -10
  18. package/dist/cjs/digi-notification-alert.cjs.entry.js +12 -17
  19. package/dist/cjs/digi-notification-error-page.cjs.entry.js +21 -26
  20. package/dist/cjs/digi-progress-indicator.cjs.entry.js +137 -0
  21. package/dist/cjs/digi-tools-feedback.cjs.entry.js +15 -20
  22. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +64 -0
  23. package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
  24. package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
  25. package/dist/cjs/index-cfa8e9be.js +8 -24
  26. package/dist/cjs/index.cjs.js +105 -110
  27. package/dist/cjs/loader.cjs.js +1 -1
  28. package/dist/cjs/{typography-variation.enum-252bed2e.js → progress-indicator-variation.enum-7cf8e0e4.js} +0 -6
  29. package/dist/cjs/{tools-feedback-variation.enum-b17e8f87.js → typography-variation.enum-07b834ba.js} +34 -0
  30. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
  31. package/dist/collection/design-tokens/components/_navigation-context-menu.variables.scss +47 -3
  32. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-context-menu.variables.scss +0 -40
  33. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  34. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  35. package/dist/digi-arbetsformedlingen/p-0b2baab8.entry.js +1 -0
  36. package/dist/digi-arbetsformedlingen/p-333d2a13.entry.js +1 -0
  37. package/dist/digi-arbetsformedlingen/p-38405a91.entry.js +1 -0
  38. package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
  39. package/dist/digi-arbetsformedlingen/p-39708dfd.entry.js +1 -0
  40. package/dist/digi-arbetsformedlingen/p-435d4154.entry.js +1 -0
  41. package/dist/digi-arbetsformedlingen/p-47367a06.entry.js +1 -0
  42. package/dist/digi-arbetsformedlingen/p-4934e112.entry.js +1 -0
  43. package/dist/digi-arbetsformedlingen/p-4a7e484f.entry.js +1 -0
  44. package/dist/digi-arbetsformedlingen/p-537d3a7f.entry.js +1 -0
  45. package/dist/digi-arbetsformedlingen/p-53cfeeba.entry.js +1 -0
  46. package/dist/digi-arbetsformedlingen/p-62c112f5.entry.js +1 -0
  47. package/dist/digi-arbetsformedlingen/p-7fc94925.entry.js +1 -0
  48. package/dist/digi-arbetsformedlingen/p-8f0cfb82.entry.js +1 -0
  49. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +1 -0
  50. package/dist/digi-arbetsformedlingen/p-a29a52f3.entry.js +1 -0
  51. package/dist/digi-arbetsformedlingen/p-a8afc3af.entry.js +1 -0
  52. package/dist/digi-arbetsformedlingen/p-b4e075c1.js +1 -0
  53. package/dist/digi-arbetsformedlingen/p-be5aa9ca.entry.js +1 -0
  54. package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
  55. package/dist/digi-arbetsformedlingen/p-ccca6900.js +1 -0
  56. package/dist/digi-arbetsformedlingen/p-dc888867.entry.js +1 -0
  57. package/dist/digi-arbetsformedlingen/p-e6ff6b0f.entry.js +1 -0
  58. package/dist/digi-arbetsformedlingen/p-f8fa5e66.entry.js +1 -0
  59. package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-222e18d3.js} +8 -1
  60. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  61. package/dist/esm/digi-button_12.entry.js +1111 -0
  62. package/dist/esm/digi-calendar-datepicker.entry.js +5 -10
  63. package/dist/esm/digi-code-block_3.entry.js +5 -10
  64. package/dist/esm/digi-code-example.entry.js +1 -2
  65. package/dist/esm/digi-dialog.entry.js +5 -10
  66. package/dist/esm/digi-expandable-accordion.entry.js +5 -10
  67. package/dist/esm/digi-footer.entry.js +5 -10
  68. package/dist/esm/digi-form-error-list.entry.js +5 -10
  69. package/dist/esm/digi-form-file-upload.entry.js +1 -2
  70. package/dist/esm/digi-form-input-search.entry.js +1 -3
  71. package/dist/esm/digi-form-receipt.entry.js +5 -10
  72. package/dist/esm/digi-header-navigation.entry.js +5 -10
  73. package/dist/esm/digi-header.entry.js +5 -10
  74. package/dist/esm/digi-navigation-pagination.entry.js +5 -10
  75. package/dist/esm/digi-notification-alert.entry.js +5 -10
  76. package/dist/esm/digi-notification-error-page.entry.js +5 -10
  77. package/dist/esm/digi-progress-indicator.entry.js +133 -0
  78. package/dist/esm/digi-tools-feedback.entry.js +5 -10
  79. package/dist/esm/digi-util-mutation-observer.entry.js +60 -0
  80. package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
  81. package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
  82. package/dist/esm/index-8e318bb2.js +8 -24
  83. package/dist/esm/index.js +5 -10
  84. package/dist/esm/loader.js +1 -1
  85. package/dist/esm/{typography-variation.enum-d5ac8594.js → progress-indicator-variation.enum-b12ba50a.js} +1 -7
  86. package/dist/esm/{tools-feedback-variation.enum-4bfb560b.js → typography-variation.enum-253cc59f.js} +35 -1
  87. package/hydrate/index.js +1 -1
  88. package/hydrate/index.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/cjs/button-size.enum-7921c01e.js +0 -8
  91. package/dist/cjs/button-type.enum-406723db.js +0 -8
  92. package/dist/cjs/digi-button.cjs.entry.js +0 -130
  93. package/dist/cjs/digi-form-input.cjs.entry.js +0 -157
  94. package/dist/cjs/digi-form-label_3.cjs.entry.js +0 -129
  95. package/dist/cjs/digi-form-select-filter.cjs.entry.js +0 -552
  96. package/dist/cjs/digi-icon-check_6.cjs.entry.js +0 -286
  97. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
  98. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
  99. package/dist/cjs/form-input-search-variation.enum-c50239bc.js +0 -8
  100. package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
  101. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
  102. package/dist/digi-arbetsformedlingen/p-03c74be2.entry.js +0 -1
  103. package/dist/digi-arbetsformedlingen/p-1d065367.js +0 -1
  104. package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
  105. package/dist/digi-arbetsformedlingen/p-27a933f2.entry.js +0 -1
  106. package/dist/digi-arbetsformedlingen/p-38ac4375.entry.js +0 -1
  107. package/dist/digi-arbetsformedlingen/p-3ee7d913.entry.js +0 -1
  108. package/dist/digi-arbetsformedlingen/p-4771449c.entry.js +0 -1
  109. package/dist/digi-arbetsformedlingen/p-48d8109b.entry.js +0 -1
  110. package/dist/digi-arbetsformedlingen/p-4c6b9991.entry.js +0 -1
  111. package/dist/digi-arbetsformedlingen/p-4e311538.entry.js +0 -1
  112. package/dist/digi-arbetsformedlingen/p-4e9b1820.entry.js +0 -1
  113. package/dist/digi-arbetsformedlingen/p-4e9cd0cd.entry.js +0 -1
  114. package/dist/digi-arbetsformedlingen/p-4f4113d7.entry.js +0 -1
  115. package/dist/digi-arbetsformedlingen/p-525bd193.entry.js +0 -1
  116. package/dist/digi-arbetsformedlingen/p-551f6906.entry.js +0 -1
  117. package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
  118. package/dist/digi-arbetsformedlingen/p-6492e062.entry.js +0 -1
  119. package/dist/digi-arbetsformedlingen/p-766df2e4.entry.js +0 -1
  120. package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
  121. package/dist/digi-arbetsformedlingen/p-7f1574ff.js +0 -1
  122. package/dist/digi-arbetsformedlingen/p-80fce66a.entry.js +0 -1
  123. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
  124. package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
  125. package/dist/digi-arbetsformedlingen/p-91d1344c.js +0 -1
  126. package/dist/digi-arbetsformedlingen/p-a0472ce2.entry.js +0 -1
  127. package/dist/digi-arbetsformedlingen/p-bad82d8a.entry.js +0 -1
  128. package/dist/digi-arbetsformedlingen/p-bc37453e.entry.js +0 -1
  129. package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
  130. package/dist/digi-arbetsformedlingen/p-c7fd83fa.entry.js +0 -1
  131. package/dist/digi-arbetsformedlingen/p-d13c7e47.entry.js +0 -1
  132. package/dist/digi-arbetsformedlingen/p-edf6fbd2.entry.js +0 -1
  133. package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
  134. package/dist/digi-arbetsformedlingen/p-f3b56695.entry.js +0 -1
  135. package/dist/esm/button-size.enum-2dcd673f.js +0 -8
  136. package/dist/esm/button-type.enum-5250ae0b.js +0 -8
  137. package/dist/esm/digi-button.entry.js +0 -126
  138. package/dist/esm/digi-form-input.entry.js +0 -153
  139. package/dist/esm/digi-form-label_3.entry.js +0 -123
  140. package/dist/esm/digi-form-select-filter.entry.js +0 -548
  141. package/dist/esm/digi-icon-check_6.entry.js +0 -277
  142. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  143. package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
  144. package/dist/esm/form-input-search-variation.enum-f9d669f2.js +0 -8
  145. package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
  146. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
@@ -1,286 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-cfa8e9be.js');
6
- const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
7
- const text = require('./text-ca7e238b.js');
8
- const typographyVariation_enum = require('./typography-variation.enum-252bed2e.js');
9
-
10
- const iconCheckCss = ".sc-digi-icon-check-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-check-h svg.sc-digi-icon-check{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
11
- const DigiIconCheckStyle0 = iconCheckCss;
12
-
13
- const IconCheck = class {
14
- constructor(hostRef) {
15
- index.registerInstance(this, hostRef);
16
- this.afTitle = undefined;
17
- this.afDesc = undefined;
18
- this.afSvgAriaHidden = true;
19
- this.afSvgAriaLabelledby = undefined;
20
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
21
- }
22
- render() {
23
- return (index.h("svg", { key: 'b93763762cb15da9dd043c599d28801dd1b7b6d2', class: "digi-icon-check", width: "23", height: "18", viewBox: "0 0 23 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
24
- ? this.afSvgAriaLabelledby
25
- : this.afTitle
26
- ? this.titleId
27
- : undefined }, this.afTitle && index.h("title", { key: '50601b1e8c8eaf8a33d0a1074005e9c65b87113d', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '06f9aacdab41e114f4f47f690ece821651ac4ee3' }, this.afDesc), index.h("path", { key: '1af3c61a39655f9002f6826fc8beaf48b2a976b1', class: "digi-icon-check__shape", d: "M20.547.18L7.315 13.627 2.453 8.686a.597.597 0 00-.853 0L.177 10.132a.62.62 0 000 .868l6.711 6.82c.236.24.618.24.854 0L22.823 2.493a.62.62 0 000-.867L21.4.18a.597.597 0 00-.853 0z", fill: "currentColor", "fill-rule": "nonzero" })));
28
- }
29
- };
30
- IconCheck.style = DigiIconCheckStyle0;
31
-
32
- const iconValidationErrorCss = ".sc-digi-icon-validation-error-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-error-h svg.sc-digi-icon-validation-error{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
33
- const DigiIconValidationErrorStyle0 = iconValidationErrorCss;
34
-
35
- const IconValidationError = class {
36
- constructor(hostRef) {
37
- index.registerInstance(this, hostRef);
38
- this.afTitle = undefined;
39
- this.afDesc = undefined;
40
- this.afSvgAriaHidden = true;
41
- this.afSvgAriaLabelledby = undefined;
42
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
43
- }
44
- render() {
45
- return (index.h("svg", { key: '41ffc4c3d87390ae217263e98d041467a3f4c3a8', class: "digi-icon-validation-error", width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
46
- ? this.afSvgAriaLabelledby
47
- : this.afTitle
48
- ? this.titleId
49
- : undefined }, this.afTitle && index.h("title", { key: 'd1bdf3cb7894761018a33df17e461562c62f2a88', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '03e28955baed21df8d54fd9a45b5b6b52c861e72' }, this.afDesc), index.h("path", { key: 'd1aad885c99e8dcefbd87554dfa24ff4793e3e80', class: "digi-icon-validation-error__shape", d: "M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z", fill: "currentColor", "fill-rule": "nonzero" })));
50
- }
51
- };
52
- IconValidationError.style = DigiIconValidationErrorStyle0;
53
-
54
- const iconValidationWarningCss = ".sc-digi-icon-validation-warning-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-warning-h svg.sc-digi-icon-validation-warning{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
55
- const DigiIconValidationWarningStyle0 = iconValidationWarningCss;
56
-
57
- const IconValidationWarning = class {
58
- constructor(hostRef) {
59
- index.registerInstance(this, hostRef);
60
- this.afTitle = undefined;
61
- this.afDesc = undefined;
62
- this.afSvgAriaHidden = true;
63
- this.afSvgAriaLabelledby = undefined;
64
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
65
- }
66
- render() {
67
- return (index.h("div", { key: '584c0d857b5b1f2e872abfac1ac0b67c743ee109' }, index.h("svg", { key: '9181b9f7e07e98629826415884de3dc8224282d7', class: "digi-icon-validation-warning", width: "18", height: "18", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
68
- ? this.afSvgAriaLabelledby
69
- : this.afTitle
70
- ? this.titleId
71
- : undefined }, this.afTitle && index.h("title", { key: 'b86270de37ffe0d0dcdc2d3b11d122b294970e22', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: 'c534be9c18e9467d18aa8397698edac77f15dfae' }, this.afDesc), index.h("g", { key: '42657f7631a8c9a54e3b7a02bd95757222c68b86', fill: "none", "fill-rule": "evenodd" }, index.h("circle", { key: '863ad3e5f51f15d8385558494f9ea9e389a8d216', cx: "9", cy: "9", r: "6.75", fill: "#333" }), index.h("path", { key: '53881444c3a8a351d3a2b41bad03c0d10d190668', d: "m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z", fill: "#FFE200" })))));
72
- }
73
- };
74
- IconValidationWarning.style = DigiIconValidationWarningStyle0;
75
-
76
- const progressIndicatorCss = ".digi--util--fs--xs.sc-digi-progress-indicator{font-size:var(--digi--global--typography--font-size--small) !important}.digi--util--fs--s.sc-digi-progress-indicator{font-size:calc(var(--digi--global--typography--font-size--small) + 1px) !important}.digi--util--fs--m.sc-digi-progress-indicator{font-size:var(--digi--global--typography--font-size--base) !important}.digi--util--fs--l.sc-digi-progress-indicator{font-size:var(--digi--global--typography--font-size--large) !important}.digi--util--fw--sb.sc-digi-progress-indicator{font-weight:var(--digi--global--typography--font-weight--semibold) !important}.digi--util--pt--1.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--smallest-2) !important}.digi--util--pt--10.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--smallest) !important}.digi--util--pt--20.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--base) !important}.digi--util--pt--30.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--largest-2) !important}.digi--util--pt--40.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--largest-4) !important}.digi--util--pt--50.sc-digi-progress-indicator{padding-top:2.5rem !important}.digi--util--pt--60.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--largest-5) !important}.digi--util--pt--70.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--largest-6) !important}.digi--util--pt--80.sc-digi-progress-indicator{padding-top:4.5rem !important}.digi--util--pt--90.sc-digi-progress-indicator{padding-top:5rem !important}.digi--util--pb--1.sc-digi-progress-indicator{padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--pb--10.sc-digi-progress-indicator{padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--pb--20.sc-digi-progress-indicator{padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--pb--30.sc-digi-progress-indicator{padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--pb--40.sc-digi-progress-indicator{padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--pb--50.sc-digi-progress-indicator{padding-bottom:2.5rem !important}.digi--util--pb--60.sc-digi-progress-indicator{padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--pb--70.sc-digi-progress-indicator{padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--pb--80.sc-digi-progress-indicator{padding-bottom:4.5rem !important}.digi--util--pb--90.sc-digi-progress-indicator{padding-bottom:5rem !important}.digi--util--p--1.sc-digi-progress-indicator{padding:var(--digi--global--spacing--smallest-2) !important}.digi--util--p--10.sc-digi-progress-indicator{padding:var(--digi--global--spacing--smallest) !important}.digi--util--p--20.sc-digi-progress-indicator{padding:var(--digi--global--spacing--base) !important}.digi--util--p--30.sc-digi-progress-indicator{padding:var(--digi--global--spacing--largest-2) !important}.digi--util--p--40.sc-digi-progress-indicator{padding:var(--digi--global--spacing--largest-4) !important}.digi--util--p--50.sc-digi-progress-indicator{padding:2.5rem !important}.digi--util--p--60.sc-digi-progress-indicator{padding:var(--digi--global--spacing--largest-5) !important}.digi--util--p--70.sc-digi-progress-indicator{padding:var(--digi--global--spacing--largest-6) !important}.digi--util--p--80.sc-digi-progress-indicator{padding:4.5rem !important}.digi--util--p--90.sc-digi-progress-indicator{padding:5rem !important}.digi--util--ptb--1.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--smallest-2) !important;padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--ptb--10.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--smallest) !important;padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--ptb--20.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--base) !important;padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--ptb--30.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--largest-2) !important;padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--ptb--40.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--largest-4) !important;padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--ptb--50.sc-digi-progress-indicator{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.digi--util--ptb--60.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--largest-5) !important;padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--ptb--70.sc-digi-progress-indicator{padding-top:var(--digi--global--spacing--largest-6) !important;padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--ptb--80.sc-digi-progress-indicator{padding-top:4.5rem !important;padding-bottom:4.5rem !important}.digi--util--ptb--90.sc-digi-progress-indicator{padding-top:5rem !important;padding-bottom:5rem !important}.digi--util--plr--1.sc-digi-progress-indicator{padding-left:var(--digi--global--spacing--smallest-2) !important;padding-right:var(--digi--global--spacing--smallest-2) !important}.digi--util--plr--10.sc-digi-progress-indicator{padding-left:var(--digi--global--spacing--smallest) !important;padding-right:var(--digi--global--spacing--smallest) !important}.digi--util--plr--20.sc-digi-progress-indicator{padding-left:var(--digi--global--spacing--base) !important;padding-right:var(--digi--global--spacing--base) !important}.digi--util--plr--30.sc-digi-progress-indicator{padding-left:var(--digi--global--spacing--largest-2) !important;padding-right:var(--digi--global--spacing--largest-2) !important}.digi--util--plr--40.sc-digi-progress-indicator{padding-left:var(--digi--global--spacing--largest-4) !important;padding-right:var(--digi--global--spacing--largest-4) !important}.digi--util--plr--50.sc-digi-progress-indicator{padding-left:2.5rem !important;padding-right:2.5rem !important}.digi--util--plr--60.sc-digi-progress-indicator{padding-left:var(--digi--global--spacing--largest-5) !important;padding-right:var(--digi--global--spacing--largest-5) !important}.digi--util--plr--70.sc-digi-progress-indicator{padding-left:var(--digi--global--spacing--largest-6) !important;padding-right:var(--digi--global--spacing--largest-6) !important}.digi--util--plr--80.sc-digi-progress-indicator{padding-left:4.5rem !important;padding-right:4.5rem !important}.digi--util--plr--90.sc-digi-progress-indicator{padding-left:5rem !important;padding-right:5rem !important}.digi--util--sr-only.sc-digi-progress-indicator{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.digi--util--hidden.sc-digi-progress-indicator{display:none}.sc-digi-progress-indicator-h{--digi--progress-indicator--margin:0 0 var(--digi--margin--medium);--digi--progress-indicator--label--font-size:var(--digi--typography--label--font-size--desktop);--digi--progress-indicator--label--margin:var(--digi--gutter--medium) 0;--digi--progress-indicator--border-color:var(--digi--color--border--neutral-5);--digi--progress-indicator--border-color--active:var(--digi--global--color--function--success--base);--digi--progress-indicator--border-color--secondary--active:var(--digi--color--border--secondary);--digi--progress-indicator--border-width:var(--digi--border-width--primary);--digi--progress-indicator--gap:var(--digi--padding--largest);--digi--progress-indicator--gap--medium:var(--digi--padding--largest);--digi--progress-indicator--gap--large:var(--digi--padding--largest-3);--digi--progress-indicator--gap--x-large:var(--digi--padding--largest-3);--digi--progress-indicator--heading--font-size:var(--digi--typography--heading-2--font-size--desktop);--digi--progress-indicator--heading--mobile--font-size:var(--digi--typography--heading-2--font-size--mobile);--digi--progress-indicator--heading--font-weight:var(--digi--typography--heading-2--font-weight--desktop);--digi--progress-indicator--step--background:transparent;--digi--progress-indicator--step--background--active:var(--digi--global--color--function--success--base);--digi--progress-indicator--step--background--secondary--active:var(--digi--color--background--inverted-1);--digi--progress-indicator--step--size:var(--digi--global--spacing--base);--digi--progress-indicator--step--size--large:1.625rem;--digi--progress-indicator--step--size--active:1.625rem;--digi--progress-indicator--step--size--active--large:1.625rem;--digi--progress-indicator--step--line--width:var(--digi--border-width--secondary);--digi--progress-indicator--step--line--color:var(--digi--color--border--neutral-5);--digi--progress-indicator--step--line--color--current:var(--digi--color--border--neutral-5);--digi--progress-indicator--step--line--color--active:var(--digi--global--color--function--success--base);--digi--progress-indicator--step--line--color--secondary--active:var(--digi--color--border--secondary);--digi--progress-indicator--step--line--style:dashed;--digi--progress-indicator--icon--width:1rem;--digi--progress-indicator--icon--height:1rem;--digi--progress-indicator--icon--color:var(--digi--color--text--inverted);--digi--progress-indicator--icon-status--width:1.75rem;--digi--progress-indicator--icon-status--height:1.75rem;--digi--progress-indicator--icon--warning--color:var(--digi--color--background--warning-1);--digi--progress-indicator--icon--error--color:var(--digi--color--background--danger-1);--digi--progress-indicator--icon--error--background-color:var(--digi--color--background--danger-2)}.sc-digi-progress-indicator-h .digi-progress-indicator.sc-digi-progress-indicator{font-size:var(--digi--progress-indicator--label--font-size);margin:var(--digi--progress-indicator--margin);box-sizing:border-box}.sc-digi-progress-indicator-h .digi-progress-indicator.sc-digi-progress-indicator:not(.digi-progress-indicator--linear){--digi--progress-indicator--step--line--color--active:var(\n --digi--progress-indicator--step--line--color\n )}.sc-digi-progress-indicator-h .digi-progress-indicator__content.sc-digi-progress-indicator{font-family:var(--digi--global--typography--font-family--default)}.sc-digi-progress-indicator-h .digi-progress-indicator__heading.sc-digi-progress-indicator{font-size:var(--digi--typography--heading-2--font-size--desktop);font-weight:var(--digi--progress-indicator--heading--font-weight);margin:0;margin-bottom:0.5rem}@media (max-width: 36rem){.sc-digi-progress-indicator-h .digi-progress-indicator__heading.sc-digi-progress-indicator{font-size:var(--digi--typography--heading-2--font-size--mobile);font-weight:var(--digi--typography--heading-2--font-weight--mobile)}}.sc-digi-progress-indicator-h .digi-progress-indicator__next.sc-digi-progress-indicator{font-size:var(--digi--typography--body--font-size--desktop);font-style:italic;color:var(--digi--color--text--neutral);margin:0}.sc-digi-progress-indicator-h .digi-progress-indicator__icon.sc-digi-progress-indicator{--digi--icon--height:var(--digi--progress-indicator--icon--width);--digi--icon--width:var(--digi--progress-indicator--icon--height);--digi--icon--color:var(--digi--progress-indicator--icon--color)}.sc-digi-progress-indicator-h .digi-progress-indicator__icon--warning.sc-digi-progress-indicator{--digi--icon--height:var(\n --digi--progress-indicator--icon-status--height\n );--digi--icon--width:var(\n --digi--progress-indicator--icon-status--width\n );margin-top:4px}.sc-digi-progress-indicator-h .digi-progress-indicator__icon--error.sc-digi-progress-indicator{margin-top:4px;--digi--icon--height:var(\n --digi--progress-indicator--icon-status--height\n );--digi--icon--width:var(\n --digi--progress-indicator--icon-status--width\n );--digi--icon--color:var(\n --digi--progress-indicator--icon--error--color\n )}.sc-digi-progress-indicator-h .digi-progress-indicator__label.sc-digi-progress-indicator{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--progress-indicator--label--font-size);line-height:var(--digi--typography--body--line-height--desktop);color:var(--digi--color--text--primary);margin:var(--digi--progress-indicator--label--margin)}.sc-digi-progress-indicator-h .digi-progress-indicator__label--steps.sc-digi-progress-indicator{font-weight:600}.sc-digi-progress-indicator-h .digi-progress-indicator__validation-label.sc-digi-progress-indicator{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--progress-indicator--label--font-size);line-height:var(--digi--typography--body--line-height--desktop);color:var(--digi--color--text--primary);padding:var(--digi--gutter--medium) var(--digi--gutter--medium);display:flex;align-items:center}.sc-digi-progress-indicator-h .digi-progress-indicator__validation-label.sc-digi-progress-indicator span.sc-digi-progress-indicator{display:inline-block;margin-left:8px}.sc-digi-progress-indicator-h .digi-progress-indicator__validation-label--warning.sc-digi-progress-indicator{background-color:var(--digi--color--background--warning-2)}.sc-digi-progress-indicator-h .digi-progress-indicator__validation-label--error.sc-digi-progress-indicator{background-color:var(--digi--color--background--danger-2)}.sc-digi-progress-indicator-h .digi-progress-indicator__list.sc-digi-progress-indicator{position:relative;list-style:none;padding:0;margin:0;margin-top:24px;margin-bottom:16px;display:grid;grid-template-columns:repeat(auto-fit, minmax(calc(var(--digi--progress-indicator--step--size) + var(--digi--progress-indicator--gap)), 1fr));--digi--progress-indicator--step--size:var(\n --digi--progress-indicator--step--size--large\n );--digi--progress-indicator--step--size--active:var(\n --digi--progress-indicator--step--size--active--large\n );--digi--progress-indicator--gap:var(\n --digi--progress-indicator--gap--x-large\n )}@media (max-width: 36rem){.sc-digi-progress-indicator-h .digi-progress-indicator__list.sc-digi-progress-indicator{grid-template-columns:repeat(auto-fit, minmax(0.45rem, 1fr))}}.sc-digi-progress-indicator-h .digi-progress-indicator__step.sc-digi-progress-indicator{position:relative;height:var(--digi--progress-indicator--step--size--active);z-index:2}.sc-digi-progress-indicator-h .digi-progress-indicator__step.sc-digi-progress-indicator:last-child{width:var(--digi--progress-indicator--step--size--active)}.sc-digi-progress-indicator-h .digi-progress-indicator__step.sc-digi-progress-indicator:last-child::before{display:none}.sc-digi-progress-indicator-h .digi-progress-indicator__step.sc-digi-progress-indicator::before{content:\"\";position:absolute;top:50%;transform:translateY(-50%);display:inline-block;width:calc(100% - 34px);left:30px;border-top:var(--digi--progress-indicator--step--line--style) var(--digi--progress-indicator--step--line--width) var(--digi--progress-indicator--step--line--color)}@media (max-width: 36rem){.sc-digi-progress-indicator-h .digi-progress-indicator__step.sc-digi-progress-indicator::before{width:calc(100% - 1.1rem);left:1.1rem}}.sc-digi-progress-indicator-h .digi-progress-indicator__step--active.sc-digi-progress-indicator{--digi--progress-indicator--border-color:var(\n --digi--progress-indicator--border-color--active\n );--digi--progress-indicator--step--background:var(\n --digi--progress-indicator--step--background--active\n );--digi--progress-indicator--step--size:var(\n --digi--progress-indicator--step--size--active\n );--digi--progress-indicator--step--line--color:var(\n --digi--progress-indicator--step--line--color--active\n );--digi--progress-indicator--step--line--style:solid}.sc-digi-progress-indicator-h .digi-progress-indicator__step--active.sc-digi-progress-indicator .digi-progress-indicator__step-indicator.sc-digi-progress-indicator{margin-left:calc((var(--digi--progress-indicator--step--size--large) - var(--digi--progress-indicator--step--size--active--large)) / 2)}.sc-digi-progress-indicator-h .digi-progress-indicator__step--current.sc-digi-progress-indicator{--digi--progress-indicator--step--line--color:var(\n --digi--progress-indicator--step--line--color--current\n );--digi--progress-indicator--step--line--style:dashed}.sc-digi-progress-indicator-h .digi-progress-indicator__step--current.sc-digi-progress-indicator span.sc-digi-progress-indicator:not(:has(>digi-icon-validation-error)).sc-digi-progress-indicator:not(:has(>digi-icon-validation-warning)).sc-digi-progress-indicator{box-shadow:inset 0px 0px 0px 3px var(--digi--color--background--primary), 0 0 0 3px var(--digi--progress-indicator--step--background);width:1.75rem;height:1.75rem}@media (max-width: 36rem){.sc-digi-progress-indicator-h .digi-progress-indicator__step--current.sc-digi-progress-indicator span.sc-digi-progress-indicator:not(:has(>digi-icon-validation-error)).sc-digi-progress-indicator:not(:has(>digi-icon-validation-warning)).sc-digi-progress-indicator{width:1.375rem;height:1.375rem;box-shadow:inset 0px 0px 0px 3px var(--digi--color--background--primary), 0 0 0 2px var(--digi--progress-indicator--step--background)}}.sc-digi-progress-indicator-h .digi-progress-indicator__step--warning.sc-digi-progress-indicator,.sc-digi-progress-indicator-h .digi-progress-indicator__step--error.sc-digi-progress-indicator{--digi--progress-indicator--step--background:transparent}.sc-digi-progress-indicator-h .digi-progress-indicator__step--warning.sc-digi-progress-indicator .digi-progress-indicator__step-indicator.sc-digi-progress-indicator,.sc-digi-progress-indicator-h .digi-progress-indicator__step--error.sc-digi-progress-indicator .digi-progress-indicator__step-indicator.sc-digi-progress-indicator{border:0;box-shadow:inset 0px 0px 0px 2px transparent}.sc-digi-progress-indicator-h .digi-progress-indicator__step-indicator.sc-digi-progress-indicator{width:var(--digi--progress-indicator--step--size);height:var(--digi--progress-indicator--step--size);border:var(--digi--progress-indicator--step--line--style) var(--digi--progress-indicator--step--line--width) var(--digi--progress-indicator--border-color);background:var(--digi--progress-indicator--step--background);box-sizing:border-box;position:absolute;display:inline-flex;align-items:center;justify-content:center;top:50%;transform:translateY(-50%);border-radius:50%}@media (max-width: 36rem){.sc-digi-progress-indicator-h .digi-progress-indicator__step-indicator.sc-digi-progress-indicator{width:1.1rem;height:1.1rem;--digi--progress-indicator--icon-status--width:1.3rem;--digi--progress-indicator--icon-status--width:1.3rem;--digi--progress-indicator--icon--width:0.6rem;--digi--progress-indicator--icon--height:0.6rem}}.sc-digi-progress-indicator-h .digi-progress-indicator__step-number.sc-digi-progress-indicator{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sc-digi-progress-indicator-h .digi-progress-indicator__circle-wrapper.sc-digi-progress-indicator{display:flex;align-items:center}.sc-digi-progress-indicator-h .digi-progress-indicator__circle.sc-digi-progress-indicator{position:relative;display:inline-block}.sc-digi-progress-indicator-h .digi-progress-indicator__circle.sc-digi-progress-indicator svg.sc-digi-progress-indicator{transform:rotate(-90deg)}.sc-digi-progress-indicator-h .digi-progress-indicator__circle-label.sc-digi-progress-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);line-height:var(--digi--typography--body--line-height--desktop);color:var(--digi--color--text--primary);font-weight:600;margin:0}.sc-digi-progress-indicator-h .digi-progress-indicator__circle-step-unfinished.sc-digi-progress-indicator{stroke:var(--digi--progress-indicator--border-color)}.sc-digi-progress-indicator-h .digi-progress-indicator__circle-step-completed.sc-digi-progress-indicator{stroke:var(--digi--progress-indicator--step--background--active)}.sc-digi-progress-indicator-h .digi-progress-indicator__circle-step-warning.sc-digi-progress-indicator{stroke:var(--digi--progress-indicator--icon--warning--color)}.sc-digi-progress-indicator-h .digi-progress-indicator__circle-step-error.sc-digi-progress-indicator{stroke:var(--digi--progress-indicator--icon--error--color)}";
77
- const DigiProgressIndicatorStyle0 = progressIndicatorCss;
78
-
79
- const ProgressIndicator = class {
80
- constructor(hostRef) {
81
- index.registerInstance(this, hostRef);
82
- this.completedSteps = undefined;
83
- this.totalSteps = [];
84
- this.listItems = undefined;
85
- this.hasSlottedItems = undefined;
86
- this.radius = 42;
87
- this.stroke = 6;
88
- this.afCompletedSteps = undefined;
89
- this.afWarningStep = undefined;
90
- this.afErrorStep = undefined;
91
- this.afTotalSteps = undefined;
92
- this.afStepsSeparator = text._t.of;
93
- this.afStepText = text._t.step;
94
- this.afStepNextText = text._t.progress.questions_next;
95
- this.afStepHeading = undefined;
96
- this.afStepNextLabel = undefined;
97
- this.afValidationLabel = undefined;
98
- this.afRole = typographyVariation_enum.ProgressIndicatorRole.STATUS;
99
- this.afVariation = typographyVariation_enum.ProgressIndicatorVariation.PRIMARY;
100
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-progress-indicator');
101
- }
102
- componentWillLoad() {
103
- this.changeTotalStepsHandler(this.afTotalSteps);
104
- this.getItems();
105
- }
106
- componentDidLoad() {
107
- this.getItems();
108
- }
109
- changeTotalStepsHandler(value) {
110
- const arr = [];
111
- let n = 0;
112
- while (n < value) {
113
- n++;
114
- arr.push(n);
115
- }
116
- this.totalSteps = arr;
117
- }
118
- changeCompletedStepsHandler(value) {
119
- this.completedSteps = value;
120
- }
121
- getItems(update) {
122
- let items;
123
- if (update) {
124
- items = this._observer.children;
125
- }
126
- else {
127
- items = this.hostElement.querySelectorAll('.digi-progress-indicator__slot li');
128
- }
129
- if (items.length > 0) {
130
- this.hasSlottedItems = true;
131
- this.listItems = [...items]
132
- .filter((element) => element.tagName.toLowerCase() === 'li')
133
- .map((element) => {
134
- const el = element;
135
- const checked = el.matches('.completed');
136
- return {
137
- text: element.textContent,
138
- checked: checked
139
- };
140
- });
141
- }
142
- }
143
- /**
144
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva rubrik-elementet.
145
- * @en Listens for when focus is set on the custom element and propagates it down to the actual heading element.
146
- */
147
- focusOnHeading() {
148
- this.headingElement.focus();
149
- }
150
- renderHeading() {
151
- return (index.h("h2", { class: "digi-progress-indicator__heading", tabIndex: -1, ref: (el) => (this.headingElement = el) }, this.afStepHeading));
152
- }
153
- get cssModifiers() {
154
- return {
155
- 'digi-progress-indicator': true,
156
- 'digi-progress-indicator--primary': this.afVariation === typographyVariation_enum.ProgressIndicatorVariation.PRIMARY,
157
- 'digi-progress-indicator--secondary': this.afVariation === typographyVariation_enum.ProgressIndicatorVariation.SECONDARY,
158
- 'digi-progress-indicator--linear': !this.hasSlottedItems
159
- };
160
- }
161
- get slottedContent() {
162
- return;
163
- }
164
- render() {
165
- return (index.h("div", { key: '129050ed3f0aecee43976870d8c3fe834ab498fa', class: this.cssModifiers, role: this.afRole === typographyVariation_enum.ProgressIndicatorRole.STATUS
166
- ? typographyVariation_enum.ProgressIndicatorRole.STATUS
167
- : null }, index.h("div", { key: 'ec760ad17be307e7078188b5f355f14008bd939d' }, this.afStepNextLabel !== undefined ? (index.h("div", { class: "digi-progress-indicator__content" }, this.renderHeading(), this.afCompletedSteps != this.afTotalSteps && (index.h("p", { class: "digi-progress-indicator__next", style: {
168
- visibility: this.afStepNextLabel !== null &&
169
- this.afStepNextLabel !== undefined
170
- ? 'visible'
171
- : 'hidden'
172
- } }, `${this.afStepNextText} ${this.afStepNextLabel}`)), this.afCompletedSteps === this.afTotalSteps && (index.h("p", { class: "digi-progress-indicator__next", style: {
173
- visibility: 'hidden'
174
- } }, `${this.afStepNextText} ${this.afStepNextLabel}`)))) : (index.h("div", { class: "digi-progress-indicator__content" }, this.renderHeading(), index.h("p", { class: "digi-progress-indicator__label" }, index.h("span", null, `${this.afStepText}`, " "), index.h("span", { class: "digi-progress-indicator__label--steps" }, `${this.afCompletedSteps} ${this.afStepsSeparator} ${this.afTotalSteps}`)))), !this.hasSlottedItems ? (index.h("ol", { class: "digi-progress-indicator__list", "aria-hidden": "true" }, this.totalSteps.map((item, i) => {
175
- return (index.h("li", { class: {
176
- 'digi-progress-indicator__step': true,
177
- 'digi-progress-indicator__step--active': this.afCompletedSteps > i,
178
- 'digi-progress-indicator__step--current': this.afCompletedSteps === i + 1,
179
- 'digi-progress-indicator__step--warning': this.afWarningStep === i + 1,
180
- 'digi-progress-indicator__step--error': this.afErrorStep === i + 1
181
- } }, index.h("span", { class: "digi-progress-indicator__step-indicator" }, this.afVariation ===
182
- typographyVariation_enum.ProgressIndicatorVariation.SECONDARY &&
183
- this.afCompletedSteps > i + 1 && (index.h("digi-icon-check", { class: "digi-progress-indicator__icon" })), this.afWarningStep === i + 1 && (index.h("digi-icon-validation-warning", { class: "digi-progress-indicator__icon--warning" })), this.afErrorStep === i + 1 && (index.h("digi-icon-validation-error", { class: "digi-progress-indicator__icon--error" })), index.h("span", { class: "digi-progress-indicator__step-number" }, item))));
184
- }))) : (index.h("ol", { class: "digi-progress-indicator__list", "aria-hidden": "true" }, this.listItems.map((item, index$1) => {
185
- return (index.h("li", { class: {
186
- 'digi-progress-indicator__step': true,
187
- 'digi-progress-indicator__step--active': item.checked || this.afCompletedSteps === index$1 + 1,
188
- 'digi-progress-indicator__step--current': this.afCompletedSteps === index$1 + 1
189
- } }, index.h("span", { class: "digi-progress-indicator__step-indicator" }, this.afVariation ===
190
- typographyVariation_enum.ProgressIndicatorVariation.SECONDARY &&
191
- item.checked &&
192
- this.afCompletedSteps !== index$1 + 1 && (index.h("digi-icon-check", { class: "digi-progress-indicator__icon" })), index.h("span", { class: "digi-progress-indicator__step-number" }, index$1 + 1))));
193
- }))), this.afStepNextLabel !== undefined && (index.h("p", { key: 'd22d8344fdec62143e0147e701c011ce7e189eac', class: "digi-progress-indicator__label" }, index.h("span", { key: '9a66cc1d054ce853a014acf2a5cbad43a1ac3e19' }, `${this.afStepText}`, " "), index.h("span", { key: '68bfada37c4de1fee2ec4e53ceb467831832f947', class: "digi-progress-indicator__label--steps" }, `${this.afCompletedSteps} ${this.afStepsSeparator} ${this.afTotalSteps}`)))), this.afValidationLabel && this.afWarningStep > 0 && (index.h("p", { key: 'd0b2f915f238245bd993401c9e16f17190258508', class: "digi-progress-indicator__validation-label digi-progress-indicator__validation-label--warning" }, index.h("digi-icon-validation-warning", { key: '29ce0863e62eae150df7d327d79eb516bb2d6d20', class: "digi-progress-indicator__icon--warning" }), index.h("span", { key: 'c360860b68c279fdb61441cb2d2d21e9b0b18101' }, this.afValidationLabel))), this.afValidationLabel && this.afErrorStep > 0 && (index.h("p", { key: '40839ee9f09d34803a7cf4e3800be15bfb5d8532', class: "digi-progress-indicator__validation-label digi-progress-indicator__validation-label--error" }, index.h("digi-icon-validation-error", { key: '81cde2de59b5d0b8965a96e2c23fdb1a586be862', class: "digi-progress-indicator__icon--error" }), index.h("span", { key: 'b9a33dcce30760da08233f6333acd425392d11e3' }, this.afValidationLabel))), index.h("div", { key: '1dcd28b87affe8aea016a0a47bacee08b2eac637', hidden: true, class: "digi-progress-indicator__slot" }, index.h("digi-util-mutation-observer", { key: '1d2f85e12f722cf8e322f89efcb109a377d2c09a', ref: (el) => (this._observer = el), onAfOnChange: () => this.getItems() }, index.h("slot", { key: 'f12c39b8602f924929873b075acb04a57bac3f12' })))));
194
- }
195
- get hostElement() { return index.getElement(this); }
196
- static get watchers() { return {
197
- "afTotalSteps": ["changeTotalStepsHandler"],
198
- "afCompletedSteps": ["changeCompletedStepsHandler"]
199
- }; }
200
- };
201
- ProgressIndicator.style = DigiProgressIndicatorStyle0;
202
-
203
- const typographyCss = ".digi--util--fs--xs{font-size:var(--digi--global--typography--font-size--small) !important}.digi--util--fs--s{font-size:calc(var(--digi--global--typography--font-size--small) + 1px) !important}.digi--util--fs--m{font-size:var(--digi--global--typography--font-size--base) !important}.digi--util--fs--l{font-size:var(--digi--global--typography--font-size--large) !important}.digi--util--fw--sb{font-weight:var(--digi--global--typography--font-weight--semibold) !important}.digi--util--pt--1{padding-top:var(--digi--global--spacing--smallest-2) !important}.digi--util--pt--10{padding-top:var(--digi--global--spacing--smallest) !important}.digi--util--pt--20{padding-top:var(--digi--global--spacing--base) !important}.digi--util--pt--30{padding-top:var(--digi--global--spacing--largest-2) !important}.digi--util--pt--40{padding-top:var(--digi--global--spacing--largest-4) !important}.digi--util--pt--50{padding-top:2.5rem !important}.digi--util--pt--60{padding-top:var(--digi--global--spacing--largest-5) !important}.digi--util--pt--70{padding-top:var(--digi--global--spacing--largest-6) !important}.digi--util--pt--80{padding-top:4.5rem !important}.digi--util--pt--90{padding-top:5rem !important}.digi--util--pb--1{padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--pb--10{padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--pb--20{padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--pb--30{padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--pb--40{padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--pb--50{padding-bottom:2.5rem !important}.digi--util--pb--60{padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--pb--70{padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--pb--80{padding-bottom:4.5rem !important}.digi--util--pb--90{padding-bottom:5rem !important}.digi--util--p--1{padding:var(--digi--global--spacing--smallest-2) !important}.digi--util--p--10{padding:var(--digi--global--spacing--smallest) !important}.digi--util--p--20{padding:var(--digi--global--spacing--base) !important}.digi--util--p--30{padding:var(--digi--global--spacing--largest-2) !important}.digi--util--p--40{padding:var(--digi--global--spacing--largest-4) !important}.digi--util--p--50{padding:2.5rem !important}.digi--util--p--60{padding:var(--digi--global--spacing--largest-5) !important}.digi--util--p--70{padding:var(--digi--global--spacing--largest-6) !important}.digi--util--p--80{padding:4.5rem !important}.digi--util--p--90{padding:5rem !important}.digi--util--ptb--1{padding-top:var(--digi--global--spacing--smallest-2) !important;padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--ptb--10{padding-top:var(--digi--global--spacing--smallest) !important;padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--ptb--20{padding-top:var(--digi--global--spacing--base) !important;padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--ptb--30{padding-top:var(--digi--global--spacing--largest-2) !important;padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--ptb--40{padding-top:var(--digi--global--spacing--largest-4) !important;padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--ptb--50{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.digi--util--ptb--60{padding-top:var(--digi--global--spacing--largest-5) !important;padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--ptb--70{padding-top:var(--digi--global--spacing--largest-6) !important;padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--ptb--80{padding-top:4.5rem !important;padding-bottom:4.5rem !important}.digi--util--ptb--90{padding-top:5rem !important;padding-bottom:5rem !important}.digi--util--plr--1{padding-left:var(--digi--global--spacing--smallest-2) !important;padding-right:var(--digi--global--spacing--smallest-2) !important}.digi--util--plr--10{padding-left:var(--digi--global--spacing--smallest) !important;padding-right:var(--digi--global--spacing--smallest) !important}.digi--util--plr--20{padding-left:var(--digi--global--spacing--base) !important;padding-right:var(--digi--global--spacing--base) !important}.digi--util--plr--30{padding-left:var(--digi--global--spacing--largest-2) !important;padding-right:var(--digi--global--spacing--largest-2) !important}.digi--util--plr--40{padding-left:var(--digi--global--spacing--largest-4) !important;padding-right:var(--digi--global--spacing--largest-4) !important}.digi--util--plr--50{padding-left:2.5rem !important;padding-right:2.5rem !important}.digi--util--plr--60{padding-left:var(--digi--global--spacing--largest-5) !important;padding-right:var(--digi--global--spacing--largest-5) !important}.digi--util--plr--70{padding-left:var(--digi--global--spacing--largest-6) !important;padding-right:var(--digi--global--spacing--largest-6) !important}.digi--util--plr--80{padding-left:4.5rem !important;padding-right:4.5rem !important}.digi--util--plr--90{padding-left:5rem !important;padding-right:5rem !important}.digi--util--sr-only{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.digi--util--hidden{display:none}digi-typography{--digi--typography--h1--margin--small:var(--digi--margin--h1-small);--digi--typography--h1--margin--medium:var(--digi--margin--h1-medium);--digi--typography--h1--margin--large:var(--digi--margin--h1-large);--digi--typography--h2--margin--small:var(--digi--margin--h2-small);--digi--typography--h2--margin--large:var(--digi--margin--h2-large);--digi--typography--h3--margin--small:var(--digi--margin--h3-small);--digi--typography--h3--margin--large:var(--digi--margin--h3-large);--digi--typography--h4--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h4--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--h5--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h6--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--paragraph--margin--small:var(--digi--margin--text-small);--digi--typography--paragraph--margin--large:var(--digi--margin--text-large);--digi--typography--paragraph--margin-top:initial;--digi--typography--color--text:var(--digi--color--text--primary);--digi--typography--text-decoration-thickness--hover:0.156em;--digi--typography--text-decoration-thickness--default:0.05em;--digi--typography--text-underline-offset:3px;font-family:var(--digi--global--typography--font-family--default);color:var(--digi--typography--color--text);--FONT-SIZE--BODY:var(--digi--typography--body--font-size--mobile);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--mobile);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--mobile);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--mobile\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--mobile);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--mobile);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--mobile);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--mobile\n );--FONT-SIZE--HEADING-1:var(--digi--typography--heading-1--font-size--mobile);--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--mobile\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--mobile\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--mobile\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--small);--FONT-SIZE--HEADING-2:var(--digi--typography--heading-2--font-size--mobile);--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--mobile\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--mobile\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--mobile\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(--digi--typography--heading-3--font-size--mobile);--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--mobile\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--mobile\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--mobile\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-5:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-6:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-6:var(--digi--typography--h4--margin--small);font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY)}@media (min-width: 62rem){digi-typography{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--desktop);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--desktop);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--desktop);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--desktop);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--medium);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--small);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--small)}}digi-typography .digi-typography--large{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--desktop);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--desktop);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--desktop);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--desktop);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--medium);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--small);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--small)}@media (min-width: 62rem){digi-typography .digi-typography--large{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop-large);--LINE-HEIGHT--BODY:var(\n --digi--typography--body--line-height--desktop-large\n );--FONT-WEIGHT--BODY:var(\n --digi--typography--body--font-weight--desktop-large\n );--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop-large\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--large);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop-large);--LINE-HEIGHT--LINK:var(\n --digi--typography--link--line-height--desktop-large\n );--FONT-WEIGHT--LINK:var(\n --digi--typography--link--font-weight--desktop-large\n );--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop-large\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop-large\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--large);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop-large\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--large);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop-large\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--large);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop-large\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--large);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop-large\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--large);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop-large\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--large)}}digi-typography .digi-typography--hide-visited a:visited{color:var(--digi--color--text--link-secondary, var(--digi--color--text--link))}digi-typography h1,digi-typography h2,digi-typography h3,digi-typography h4,digi-typography h5,digi-typography h6{margin-top:0;}digi-typography h1,digi-typography .digi-h1{font-size:var(--FONT-SIZE--HEADING-1);line-height:var(--LINE-HEIGHT--HEADING-1);font-weight:var(--FONT-WEIGHT--HEADING-1);text-decoration:var(--TEXT-DECORATION--HEADING-1);margin-bottom:var(--MARGIN--HEADING-1)}digi-typography h2,digi-typography .digi-h2{font-size:var(--FONT-SIZE--HEADING-2);line-height:var(--LINE-HEIGHT--HEADING-2);font-weight:var(--FONT-WEIGHT--HEADING-2);text-decoration:var(--TEXT-DECORATION--HEADING-2);margin-bottom:var(--MARGIN--HEADING-2)}digi-typography h3,digi-typography .digi-h3{font-size:var(--FONT-SIZE--HEADING-3);line-height:var(--LINE-HEIGHT--HEADING-3);font-weight:var(--FONT-WEIGHT--HEADING-3);text-decoration:var(--TEXT-DECORATION--HEADING-3);margin-bottom:var(--MARGIN--HEADING-3)}digi-typography h4,digi-typography .digi-h4{font-size:var(--FONT-SIZE--HEADING-4);line-height:var(--LINE-HEIGHT--HEADING-4);font-weight:var(--FONT-WEIGHT--HEADING-4);text-decoration:var(--TEXT-DECORATION--HEADING-4);margin-bottom:var(--MARGIN--HEADING-4)}digi-typography h5,digi-typography .digi-h5{font-size:var(--FONT-SIZE--HEADING-5);line-height:var(--LINE-HEIGHT--HEADING-5);font-weight:var(--FONT-WEIGHT--HEADING-5);text-decoration:var(--TEXT-DECORATION--HEADING-5);margin-bottom:var(--MARGIN--HEADING-5)}digi-typography h6,digi-typography .digi-h6{font-size:var(--FONT-SIZE--HEADING-6);line-height:var(--LINE-HEIGHT--HEADING-6);font-weight:var(--FONT-WEIGHT--HEADING-6);text-decoration:var(--TEXT-DECORATION--HEADING-6);margin-bottom:var(--MARGIN--HEADING-6)}digi-typography p,digi-typography blockquote{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);margin-top:initial;margin-bottom:var(--MARGIN--BODY);max-width:var(--digi--paragraph-width--medium)}digi-typography p:last-child,digi-typography blockquote:last-child{margin-bottom:0}digi-typography blockquote{margin-inline:0}digi-typography digi-typography-preamble{display:block;margin-bottom:var(--MARGIN--BODY)}digi-typography digi-typography-preamble:last-child{margin-bottom:0}digi-typography ul,digi-typography ol,digi-typography dl{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);max-width:var(--digi--paragraph-width--medium);margin-bottom:var(--MARGIN--BODY)}digi-typography ul,digi-typography ol{margin:0 0 var(--MARGIN--BODY) 0;padding-inline-start:1.5rem}digi-typography ul li,digi-typography ol li{margin-top:initial;margin-bottom:0.5rem;box-sizing:border-box;width:100%;padding-left:0}digi-typography ul li:last-child,digi-typography ol li:last-child{margin-bottom:0}digi-typography a{font-size:1em;line-height:var(--LINE-HEIGHT--LINK);font-weight:inherit;text-decoration:var(--TEXT-DECORATION--LINK);color:var(--digi--color--text--link-secondary, var(--digi--color--text--link));text-decoration-thickness:var(--digi--typography--text-decoration-thickness--default);text-underline-offset:var(--digi--typography--text-underline-offset)}digi-typography a:hover{text-decoration:var(--TEXT-DECORATION--LINK);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--hover)}digi-typography a:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}digi-typography a:visited{color:var(--digi--color--text--link-secondary-visited, var(--digi--color--text--link-visited))}digi-typography strong{font-weight:var(--digi--typography--label--font-weight--desktop)}";
204
- const DigiTypographyStyle0 = typographyCss;
205
-
206
- const Typography = class {
207
- constructor(hostRef) {
208
- index.registerInstance(this, hostRef);
209
- this.afVariation = typographyVariation_enum.TypographyVariation.SMALL;
210
- this.hideVisitedColor = undefined;
211
- }
212
- get cssModifiers() {
213
- return {
214
- 'digi-typography--large': this.afVariation === typographyVariation_enum.TypographyVariation.LARGE,
215
- 'digi-typography--small': this.afVariation === typographyVariation_enum.TypographyVariation.SMALL,
216
- 'digi-typography--hide-visited': this.hideVisitedColor
217
- };
218
- }
219
- render() {
220
- return (index.h("div", { key: '4a881c4feb6cbe1cf6b50a49209d0ba3ed373324', class: Object.assign({ 'digi-typography': true }, this.cssModifiers) }, index.h("slot", { key: '4935b0dbadff8ed9f1830b23caa976701a29343e' })));
221
- }
222
- };
223
- Typography.style = DigiTypographyStyle0;
224
-
225
- const UtilMutationObserver = class {
226
- constructor(hostRef) {
227
- index.registerInstance(this, hostRef);
228
- this.afOnChange = index.createEvent(this, "afOnChange", 7);
229
- this._observer = null;
230
- this._isObserving = false;
231
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-util-mutation-observer');
232
- this.afOptions = {
233
- attributes: false,
234
- childList: true,
235
- subtree: false,
236
- characterData: false
237
- };
238
- }
239
- afOptionsWatcher(newValue) {
240
- this._afOptions =
241
- typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
242
- }
243
- componentWillLoad() {
244
- this.afOptionsWatcher(this.afOptions);
245
- this.initObserver();
246
- }
247
- disconnectedCallback() {
248
- if (this._isObserving) {
249
- this.removeObserver();
250
- }
251
- }
252
- initObserver() {
253
- this._observer = new MutationObserver((mutationsList) => {
254
- for (const mutation of mutationsList) {
255
- if (mutation.type === 'childList' ||
256
- mutation.type === 'attributes' ||
257
- mutation.type === 'characterData') {
258
- this.changeHandler(mutation);
259
- }
260
- }
261
- });
262
- this._observer.observe(this.$el, this._afOptions);
263
- this._isObserving = true;
264
- }
265
- removeObserver() {
266
- this._observer.disconnect();
267
- this._isObserving = false;
268
- }
269
- changeHandler(e) {
270
- this.afOnChange.emit(e);
271
- }
272
- render() {
273
- index.h("div", { id: this.afId, ref: (el) => (this.$el = el) }, index.h("slot", null));
274
- }
275
- get $el() { return index.getElement(this); }
276
- static get watchers() { return {
277
- "afOptions": ["afOptionsWatcher"]
278
- }; }
279
- };
280
-
281
- exports.digi_icon_check = IconCheck;
282
- exports.digi_icon_validation_error = IconValidationError;
283
- exports.digi_icon_validation_warning = IconValidationWarning;
284
- exports.digi_progress_indicator = ProgressIndicator;
285
- exports.digi_typography = Typography;
286
- exports.digi_util_mutation_observer = UtilMutationObserver;
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-cfa8e9be.js');
6
- const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
7
-
8
- const iconChevronDownCss = ".sc-digi-icon-chevron-down-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-chevron-down-h svg.sc-digi-icon-chevron-down{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
9
- const DigiIconChevronDownStyle0 = iconChevronDownCss;
10
-
11
- const IconChevronDown = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- this.afTitle = undefined;
15
- this.afDesc = undefined;
16
- this.afSvgAriaHidden = true;
17
- this.afSvgAriaLabelledby = undefined;
18
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
19
- }
20
- render() {
21
- return (index.h("svg", { key: '5ac426b453a30750f70586d7ba38119c3ac36a73', class: "digi-icon-chevron-down", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
22
- ? this.afSvgAriaLabelledby
23
- : this.afTitle
24
- ? this.titleId
25
- : undefined }, this.afTitle && index.h("title", { key: '7f9ebb68d4f0a68f17df66c02e290e46b24a3004', id: this.titleId }, this.afTitle), this.afDesc && index.h("desc", { key: '5267ccd4d49aaf68cc85bb84dbcca21b1540d8c5' }, this.afDesc), index.h("path", { key: '4c0d7b31ff1e20fc32941d442ca3b04ca8349081', class: "digi-icon-chevron-down__shape", d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
26
- }
27
- };
28
- IconChevronDown.style = DigiIconChevronDownStyle0;
29
-
30
- exports.digi_icon_chevron_down = IconChevronDown;
@@ -1,83 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-cfa8e9be.js');
6
- const keyboardHandler_util = require('./keyboardHandler.util-d8600adb.js');
7
-
8
- const UtilKeydownHandler = class {
9
- constructor(hostRef) {
10
- index.registerInstance(this, hostRef);
11
- this.afOnEsc = index.createEvent(this, "afOnEsc", 7);
12
- this.afOnEnter = index.createEvent(this, "afOnEnter", 7);
13
- this.afOnTab = index.createEvent(this, "afOnTab", 7);
14
- this.afOnSpace = index.createEvent(this, "afOnSpace", 7);
15
- this.afOnShiftTab = index.createEvent(this, "afOnShiftTab", 7);
16
- this.afOnUp = index.createEvent(this, "afOnUp", 7);
17
- this.afOnDown = index.createEvent(this, "afOnDown", 7);
18
- this.afOnLeft = index.createEvent(this, "afOnLeft", 7);
19
- this.afOnRight = index.createEvent(this, "afOnRight", 7);
20
- this.afOnHome = index.createEvent(this, "afOnHome", 7);
21
- this.afOnEnd = index.createEvent(this, "afOnEnd", 7);
22
- this.afOnKeyDown = index.createEvent(this, "afOnKeyDown", 7);
23
- }
24
- keydownHandler(e) {
25
- const key = keyboardHandler_util.keyboardHandler(e);
26
- switch (key) {
27
- case keyboardHandler_util.KEY_CODE.SHIFT_TAB:
28
- this.afOnShiftTab.emit(e);
29
- break;
30
- case keyboardHandler_util.KEY_CODE.DOWN_ARROW:
31
- this.afOnDown.emit(e);
32
- this.afOnKeyDown.emit(e);
33
- break;
34
- case keyboardHandler_util.KEY_CODE.UP_ARROW:
35
- this.afOnUp.emit(e);
36
- this.afOnKeyDown.emit(e);
37
- break;
38
- case keyboardHandler_util.KEY_CODE.LEFT_ARROW:
39
- this.afOnLeft.emit(e);
40
- this.afOnKeyDown.emit(e);
41
- break;
42
- case keyboardHandler_util.KEY_CODE.RIGHT_ARROW:
43
- this.afOnRight.emit(e);
44
- this.afOnKeyDown.emit(e);
45
- break;
46
- case keyboardHandler_util.KEY_CODE.ENTER:
47
- this.afOnEnter.emit(e);
48
- this.afOnKeyDown.emit(e);
49
- break;
50
- case keyboardHandler_util.KEY_CODE.ESCAPE:
51
- this.afOnEsc.emit(e);
52
- this.afOnKeyDown.emit(e);
53
- break;
54
- case keyboardHandler_util.KEY_CODE.TAB:
55
- this.afOnTab.emit(e);
56
- this.afOnKeyDown.emit(e);
57
- break;
58
- case keyboardHandler_util.KEY_CODE.SPACE:
59
- this.afOnSpace.emit(e);
60
- this.afOnKeyDown.emit(e);
61
- break;
62
- case keyboardHandler_util.KEY_CODE.HOME:
63
- this.afOnHome.emit(e);
64
- this.afOnKeyDown.emit(e);
65
- break;
66
- case keyboardHandler_util.KEY_CODE.END:
67
- this.afOnEnd.emit(e);
68
- this.afOnKeyDown.emit(e);
69
- break;
70
- case keyboardHandler_util.KEY_CODE.ANY:
71
- this.afOnKeyDown.emit(e);
72
- break;
73
- default:
74
- this.afOnKeyDown.emit(e);
75
- return;
76
- }
77
- }
78
- render() {
79
- return index.h("slot", { key: 'e07347cd86e34c905bf0a0b19eee84dc4f201a30' });
80
- }
81
- };
82
-
83
- exports.digi_util_keydown_handler = UtilKeydownHandler;
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- exports.FormInputSearchVariation = void 0;
4
- (function (FormInputSearchVariation) {
5
- FormInputSearchVariation["SMALL"] = "small";
6
- FormInputSearchVariation["MEDIUM"] = "medium";
7
- FormInputSearchVariation["LARGE"] = "large";
8
- })(exports.FormInputSearchVariation || (exports.FormInputSearchVariation = {}));
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- exports.FormInputMode = void 0;
4
- (function (FormInputMode) {
5
- FormInputMode["DEFAULT"] = "";
6
- FormInputMode["NONE"] = "none";
7
- FormInputMode["TEXT"] = "text";
8
- FormInputMode["DECIMAL"] = "decimal";
9
- FormInputMode["NUMERIC"] = "numeric";
10
- FormInputMode["TEL"] = "tel";
11
- FormInputMode["SEARCH"] = "search";
12
- FormInputMode["EMAIL"] = "email";
13
- FormInputMode["URL"] = "url";
14
- })(exports.FormInputMode || (exports.FormInputMode = {}));
15
-
16
- exports.FormInputValidation = void 0;
17
- (function (FormInputValidation) {
18
- FormInputValidation["SUCCESS"] = "success";
19
- FormInputValidation["ERROR"] = "error";
20
- FormInputValidation["WARNING"] = "warning";
21
- FormInputValidation["NEUTRAL"] = "neutral";
22
- })(exports.FormInputValidation || (exports.FormInputValidation = {}));
23
-
24
- exports.FormInputVariation = void 0;
25
- (function (FormInputVariation) {
26
- FormInputVariation["SMALL"] = "small";
27
- FormInputVariation["MEDIUM"] = "medium";
28
- FormInputVariation["LARGE"] = "large";
29
- })(exports.FormInputVariation || (exports.FormInputVariation = {}));
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- exports.FormValidationMessageVariation = void 0;
4
- (function (FormValidationMessageVariation) {
5
- FormValidationMessageVariation["SUCCESS"] = "success";
6
- FormValidationMessageVariation["ERROR"] = "error";
7
- FormValidationMessageVariation["WARNING"] = "warning";
8
- })(exports.FormValidationMessageVariation || (exports.FormValidationMessageVariation = {}));