@rededor/cura 1.1.0 → 1.2.0-alpha.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 (238) hide show
  1. package/dist/assets/assets/cura-assets.zip +0 -0
  2. package/dist/cjs/app-globals-4d07f363.js.map +1 -1
  3. package/dist/cjs/cura-accordion_12.cjs.entry.js +21 -15
  4. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -1
  5. package/dist/cjs/cura-alert.cjs.entry.js +2 -2
  6. package/dist/cjs/cura-avatar.cjs.entry.js +2 -2
  7. package/dist/cjs/cura-badge-distance.cjs.entry.js +1 -1
  8. package/dist/cjs/cura-badge-number.cjs.entry.js +29 -0
  9. package/dist/cjs/cura-badge-number.cjs.entry.js.map +1 -0
  10. package/dist/cjs/cura-button-outline.cjs.entry.js +2 -2
  11. package/dist/cjs/cura-button-select.cjs.entry.js +69 -58
  12. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  13. package/dist/cjs/cura-button-transparent.cjs.entry.js +2 -2
  14. package/dist/cjs/cura-calendar.cjs.entry.js +120 -234
  15. package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
  16. package/dist/cjs/cura-card.cjs.entry.js +2 -2
  17. package/dist/cjs/cura-checkbox.cjs.entry.js +2 -2
  18. package/dist/cjs/cura-display.cjs.entry.js +2 -2
  19. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +2 -2
  20. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +3 -3
  21. package/dist/cjs/cura-dropdown-search.cjs.entry.js +30 -4
  22. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -1
  23. package/dist/cjs/cura-icons-view.cjs.entry.js +4 -4
  24. package/dist/cjs/cura-input-date.cjs.entry.js +188 -0
  25. package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -0
  26. package/dist/cjs/cura-loader-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/cura-radio.cjs.entry.js +2 -2
  28. package/dist/cjs/cura-switch.cjs.entry.js +2 -2
  29. package/dist/cjs/cura-toast.cjs.entry.js +2 -2
  30. package/dist/cjs/cura.cjs.js +2 -2
  31. package/dist/cjs/index-6dc29195.js +126 -0
  32. package/dist/cjs/index-6dc29195.js.map +1 -0
  33. package/dist/cjs/{index-98e7ba54.js → index-e6d728ec.js} +70 -3
  34. package/dist/{esm/index-1ad98520.js.map → cjs/index-e6d728ec.js.map} +1 -1
  35. package/dist/cjs/loader.cjs.js +2 -2
  36. package/dist/collection/collection-manifest.json +2 -0
  37. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.css +30 -0
  38. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js +66 -0
  39. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js.map +1 -0
  40. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.stories.js +56 -0
  41. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.stories.js.map +1 -0
  42. package/dist/collection/components/buttons/cura-button/cura-button.js +1 -1
  43. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +1 -1
  44. package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +49 -21
  45. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +110 -113
  46. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  47. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +133 -0
  48. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +1 -0
  49. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +1 -1
  50. package/dist/collection/components/cura-alert/cura-alert.js +1 -1
  51. package/dist/collection/components/cura-avatar/cura-avatar.js +1 -1
  52. package/dist/collection/components/cura-calendar/cura-calendar.css +2 -0
  53. package/dist/collection/components/cura-calendar/cura-calendar.js +79 -47
  54. package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
  55. package/dist/collection/components/cura-card/cura-card.js +1 -1
  56. package/dist/collection/components/cura-icon/cura-icon.js +1 -1
  57. package/dist/collection/components/cura-icons-view/cura-icons-view.js +3 -3
  58. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
  59. package/dist/collection/components/cura-toast/cura-toast.js +1 -1
  60. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
  61. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +2 -2
  62. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +1 -1
  63. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +1 -1
  64. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +28 -2
  65. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  66. package/dist/collection/components/forms/cura-input-date/cura-input-date.css +79 -0
  67. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +424 -0
  68. package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +1 -0
  69. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +138 -0
  70. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +1 -0
  71. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +5 -2
  72. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +41 -2
  73. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  74. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +73 -21
  75. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -1
  76. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +3 -0
  77. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -1
  78. package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
  79. package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
  80. package/dist/collection/components/forms/cura-select/cura-select.css +5 -2
  81. package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
  82. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
  83. package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
  84. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
  85. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
  86. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  87. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  88. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  89. package/dist/components/cura-alert.js +1 -1
  90. package/dist/components/cura-avatar.js +1 -1
  91. package/dist/components/cura-badge-number.d.ts +11 -0
  92. package/dist/components/cura-badge-number.js +8 -0
  93. package/dist/components/cura-badge-number.js.map +1 -0
  94. package/dist/components/cura-badge-number2.js +49 -0
  95. package/dist/components/cura-badge-number2.js.map +1 -0
  96. package/dist/components/cura-button-outline.js +1 -1
  97. package/dist/components/cura-button-select.js +81 -65
  98. package/dist/components/cura-button-select.js.map +1 -1
  99. package/dist/components/cura-button-transparent2.js +1 -1
  100. package/dist/components/cura-button.js +1 -1
  101. package/dist/components/cura-calendar.js +1 -4073
  102. package/dist/components/cura-calendar.js.map +1 -1
  103. package/dist/components/cura-calendar2.js +4082 -0
  104. package/dist/components/cura-calendar2.js.map +1 -0
  105. package/dist/components/cura-card.js +1 -1
  106. package/dist/components/cura-checkbox.js +1 -1
  107. package/dist/components/cura-display.js +1 -1
  108. package/dist/components/cura-dropdown-search-option-title.js +1 -1
  109. package/dist/components/cura-dropdown-search-option.js +2 -2
  110. package/dist/components/cura-dropdown-search.js +29 -3
  111. package/dist/components/cura-dropdown-search.js.map +1 -1
  112. package/dist/components/cura-heading2.js +1 -1
  113. package/dist/components/cura-icon2.js +1 -1
  114. package/dist/components/cura-icons-view.js +3 -3
  115. package/dist/components/cura-input-date.d.ts +11 -0
  116. package/dist/components/cura-input-date.js +270 -0
  117. package/dist/components/cura-input-date.js.map +1 -0
  118. package/dist/components/cura-input-text2.js +10 -2
  119. package/dist/components/cura-input-text2.js.map +1 -1
  120. package/dist/components/cura-label2.js +1 -1
  121. package/dist/components/cura-loader-bar2.js +1 -1
  122. package/dist/components/cura-loader-circle2.js +1 -1
  123. package/dist/components/cura-page-template.js +1 -1
  124. package/dist/components/cura-paragraph2.js +1 -1
  125. package/dist/components/cura-radio.js +1 -1
  126. package/dist/components/cura-select-option2.js +1 -1
  127. package/dist/components/cura-select2.js +4 -4
  128. package/dist/components/cura-select2.js.map +1 -1
  129. package/dist/components/cura-switch.js +1 -1
  130. package/dist/components/cura-toast.js +1 -1
  131. package/dist/components/index.js +4 -0
  132. package/dist/components/index.js.map +1 -1
  133. package/dist/cura/cura.esm.js +1 -1
  134. package/dist/cura/cura.esm.js.map +1 -1
  135. package/dist/cura/p-0b7a7306.js.map +1 -1
  136. package/dist/cura/{p-0d435e42.entry.js → p-116a1cd6.entry.js} +2 -2
  137. package/dist/cura/p-272c784a.js +2 -0
  138. package/dist/cura/p-272c784a.js.map +1 -0
  139. package/dist/cura/{p-4c7a2419.entry.js → p-2d267d23.entry.js} +2 -2
  140. package/dist/cura/{p-9b658260.entry.js → p-33772510.entry.js} +2 -2
  141. package/dist/cura/{p-afd2c148.entry.js → p-41c3d47d.entry.js} +2 -2
  142. package/dist/cura/{p-fbf20e5a.entry.js → p-44e3325a.entry.js} +2 -2
  143. package/dist/cura/p-4e14c01c.entry.js +2 -0
  144. package/dist/cura/p-563ba0cd.entry.js +2 -0
  145. package/dist/cura/p-563ba0cd.entry.js.map +1 -0
  146. package/dist/cura/{p-57b8b468.entry.js → p-8f3db0fe.entry.js} +2 -2
  147. package/dist/cura/{p-a00d2c68.entry.js → p-907b3d12.entry.js} +2 -2
  148. package/dist/cura/p-a2ae6bd2.entry.js +2 -0
  149. package/dist/cura/p-a2ae6bd2.entry.js.map +1 -0
  150. package/dist/cura/{p-6682619b.entry.js → p-b2d5db22.entry.js} +2 -2
  151. package/dist/cura/p-b43b69f3.entry.js +2 -0
  152. package/dist/cura/p-b43b69f3.entry.js.map +1 -0
  153. package/dist/cura/{p-5ac9d510.entry.js → p-be10b681.entry.js} +2 -2
  154. package/dist/cura/p-be10b681.entry.js.map +1 -0
  155. package/dist/cura/{p-a5cf0fd6.entry.js → p-c6508bd7.entry.js} +2 -2
  156. package/dist/cura/{p-2203e829.entry.js → p-dcd2e5bb.entry.js} +2 -2
  157. package/dist/cura/{p-84d8c67d.entry.js → p-e5023e34.entry.js} +2 -2
  158. package/dist/cura/p-e8bc6381.entry.js +2 -0
  159. package/dist/cura/p-e8bc6381.entry.js.map +1 -0
  160. package/dist/cura/p-ed97cf3c.entry.js +2 -0
  161. package/dist/cura/p-ed97cf3c.entry.js.map +1 -0
  162. package/dist/cura/{p-ad8a7e0f.entry.js → p-fcbf4311.entry.js} +2 -2
  163. package/dist/cura/{p-66c5cf5f.entry.js → p-fd083399.entry.js} +2 -2
  164. package/dist/cura/p-fd5ed6b0.js +3 -0
  165. package/dist/cura/p-fd5ed6b0.js.map +1 -0
  166. package/dist/cura/{p-f9433d24.entry.js → p-fdce91a7.entry.js} +2 -2
  167. package/dist/esm/app-globals-6ca7103d.js.map +1 -1
  168. package/dist/esm/cura-accordion_12.entry.js +21 -15
  169. package/dist/esm/cura-accordion_12.entry.js.map +1 -1
  170. package/dist/esm/cura-alert.entry.js +2 -2
  171. package/dist/esm/cura-avatar.entry.js +2 -2
  172. package/dist/esm/cura-badge-distance.entry.js +1 -1
  173. package/dist/esm/cura-badge-number.entry.js +25 -0
  174. package/dist/esm/cura-badge-number.entry.js.map +1 -0
  175. package/dist/esm/cura-button-outline.entry.js +2 -2
  176. package/dist/esm/cura-button-select.entry.js +69 -58
  177. package/dist/esm/cura-button-select.entry.js.map +1 -1
  178. package/dist/esm/cura-button-transparent.entry.js +2 -2
  179. package/dist/esm/cura-calendar.entry.js +51 -165
  180. package/dist/esm/cura-calendar.entry.js.map +1 -1
  181. package/dist/esm/cura-card.entry.js +2 -2
  182. package/dist/esm/cura-checkbox.entry.js +2 -2
  183. package/dist/esm/cura-display.entry.js +2 -2
  184. package/dist/esm/cura-dropdown-search-option-title.entry.js +2 -2
  185. package/dist/esm/cura-dropdown-search-option.entry.js +3 -3
  186. package/dist/esm/cura-dropdown-search.entry.js +30 -4
  187. package/dist/esm/cura-dropdown-search.entry.js.map +1 -1
  188. package/dist/esm/cura-icons-view.entry.js +4 -4
  189. package/dist/esm/cura-input-date.entry.js +184 -0
  190. package/dist/esm/cura-input-date.entry.js.map +1 -0
  191. package/dist/esm/cura-loader-bar.entry.js +2 -2
  192. package/dist/esm/cura-radio.entry.js +2 -2
  193. package/dist/esm/cura-switch.entry.js +2 -2
  194. package/dist/esm/cura-toast.entry.js +2 -2
  195. package/dist/esm/cura.js +3 -3
  196. package/dist/esm/{index-1ad98520.js → index-747aad85.js} +70 -3
  197. package/dist/esm/index-747aad85.js.map +1 -0
  198. package/dist/esm/index-fbee309a.js +120 -0
  199. package/dist/esm/index-fbee309a.js.map +1 -0
  200. package/dist/esm/loader.js +3 -3
  201. package/dist/types/components/badges/cura-badge-number/cura-badge-number.d.ts +8 -0
  202. package/dist/types/components/badges/cura-badge-number/cura-badge-number.stories.d.ts +39 -0
  203. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +12 -34
  204. package/dist/types/components/buttons/cura-button-select/cura-button-select.stories.d.ts +105 -0
  205. package/dist/types/components/cura-calendar/cura-calendar.d.ts +50 -42
  206. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +2 -0
  207. package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +92 -0
  208. package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +125 -0
  209. package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +6 -0
  210. package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +15 -0
  211. package/dist/types/components.d.ts +158 -48
  212. package/package.json +2 -2
  213. package/dist/cjs/index-98e7ba54.js.map +0 -1
  214. package/dist/cura/p-312791fb.js +0 -3
  215. package/dist/cura/p-312791fb.js.map +0 -1
  216. package/dist/cura/p-42dfa3a7.entry.js +0 -2
  217. package/dist/cura/p-42dfa3a7.entry.js.map +0 -1
  218. package/dist/cura/p-5ac9d510.entry.js.map +0 -1
  219. package/dist/cura/p-a9cda3b1.entry.js +0 -2
  220. package/dist/cura/p-a9cda3b1.entry.js.map +0 -1
  221. package/dist/cura/p-df5c3a86.entry.js +0 -2
  222. package/dist/cura/p-df5c3a86.entry.js.map +0 -1
  223. package/dist/cura/p-dfc65f66.entry.js +0 -2
  224. /package/dist/cura/{p-0d435e42.entry.js.map → p-116a1cd6.entry.js.map} +0 -0
  225. /package/dist/cura/{p-4c7a2419.entry.js.map → p-2d267d23.entry.js.map} +0 -0
  226. /package/dist/cura/{p-9b658260.entry.js.map → p-33772510.entry.js.map} +0 -0
  227. /package/dist/cura/{p-afd2c148.entry.js.map → p-41c3d47d.entry.js.map} +0 -0
  228. /package/dist/cura/{p-fbf20e5a.entry.js.map → p-44e3325a.entry.js.map} +0 -0
  229. /package/dist/cura/{p-dfc65f66.entry.js.map → p-4e14c01c.entry.js.map} +0 -0
  230. /package/dist/cura/{p-57b8b468.entry.js.map → p-8f3db0fe.entry.js.map} +0 -0
  231. /package/dist/cura/{p-a00d2c68.entry.js.map → p-907b3d12.entry.js.map} +0 -0
  232. /package/dist/cura/{p-6682619b.entry.js.map → p-b2d5db22.entry.js.map} +0 -0
  233. /package/dist/cura/{p-a5cf0fd6.entry.js.map → p-c6508bd7.entry.js.map} +0 -0
  234. /package/dist/cura/{p-2203e829.entry.js.map → p-dcd2e5bb.entry.js.map} +0 -0
  235. /package/dist/cura/{p-84d8c67d.entry.js.map → p-e5023e34.entry.js.map} +0 -0
  236. /package/dist/cura/{p-ad8a7e0f.entry.js.map → p-fcbf4311.entry.js.map} +0 -0
  237. /package/dist/cura/{p-66c5cf5f.entry.js.map → p-fd083399.entry.js.map} +0 -0
  238. /package/dist/cura/{p-f9433d24.entry.js.map → p-fdce91a7.entry.js.map} +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-98e7ba54.js');
5
+ const index = require('./index-e6d728ec.js');
6
6
  const curaForms_definitions = require('./cura-forms.definitions-c164f1b8.js');
7
7
 
8
8
  const curaRadioCss = "@charset \"UTF-8\";:host{display:block;width:fit-content;box-sizing:border-box;}:host .container{display:flex;align-items:center;flex-direction:row-reverse;gap:var(--gap)}:host .position.container{flex-direction:row}:host .position .label-wrapper{justify-content:end}:host .position .message{text-align:right}:host .position .label{order:1}:host .info{display:flex;flex-direction:column}:host .label-wrapper{display:flex;justify-content:start;align-items:center;gap:5px}:host .control{width:fit-content;cursor:pointer;position:relative}:host .radio{margin:0;appearance:none;-webkit-appearance:none;-moz-appearance:none;border-radius:50%;border:2px solid var(--primary-base-neutral-medium);background:var(--neutral-purewhite);box-sizing:border-box;transition:border-color 0.3s;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;width:var(--size);height:var(--size);flex:0 0 var(--size)}:host .radio::after{content:\"\";background:var(--color-base-light);border-radius:50%;opacity:0;transition:opacity 0.3s;width:var(--size-after);height:var(--size-after)}:host .radio:focus{border-color:var(--info-base) !important}:host .success .radio{border-color:var(--success-base);background:var(--success-lighter)}:host .success .radio:hover{border-color:var(--success-base) !important}:host .success.checked .radio{border-color:var(--success-base)}:host .success.checked .radio::after{background:var(--success-base)}:host .success.checked .radio:hover{background:var(--success-lighter) !important;border-color:var(--success-base) !important}:host .success.checked .radio:hover::after{background:var(--success-base) !important}:host .error .radio{border-color:var(--error-base);background:var(--error-lighter)}:host .error .radio:hover{border-color:var(--error-base) !important}:host .error.checked .radio{border-color:var(--error-base)}:host .error.checked .radio::after{background:var(--error-base)}:host .error.checked .radio:hover{background:var(--error-lighter) !important;border-color:var(--error-base) !important}:host .error.checked .radio:hover::after{background:var(--error-base) !important}:host .checked .radio::after{opacity:1;background:var(--color-base)}:host .checked .radio{border-color:var(--color-dark)}:host .checked .radio:hover{border-color:var(--color-light) !important}:host .checked .radio:hover::after{background:var(--color-light)}:host .disabled .radio{background:var(--primary-base-neutral-white);border-color:var(--primary-darker-neutral-base);cursor:not-allowed}:host .disabled .radio::after{background:var(--neutral-lighter)}:host .disabled.checked .radio{border-color:var(--primary-base-neutral-base) !important;background:var(--primary-darker-neutral-white) !important}:host .disabled.checked .radio::after{background:var(--primary-base-neutral-base) !important}:host :not(.disabled):not(.checked) .radio:hover{border-color:var(--primary-base-neutral-dark)}";
@@ -137,7 +137,7 @@ const CuraRadio = class {
137
137
  return statusColors[this.status][type];
138
138
  }
139
139
  render() {
140
- return (index.h(index.Host, { key: '47a86162a780f9bfc554ab0f39e20e2f1e01a9d9' }, index.h("div", { key: 'a0f2860ed3ff500bfc100c1e546da8ced421b207', class: this.getClasses(), style: this.styles }, index.h("div", { key: '9191f64704f6c1d791922464a75e00afa0cdcb7e', class: "info" }, index.h("div", { key: 'c61a9ba353b49db897c27f6356bfe3d76651b186', class: "label-wrapper" }, index.h("cura-label", { key: 'aa942db786a175452697b17229dc05e9113e8097', class: "label", size: this.size === 'large' ? 'medium' : 'xsmall', color: this.assignColor('label') }, this.label), this.required && index.h("cura-paragraph", { key: 'aed6a56437cc00fb7050043ce0a89877770acc6c', lineHeight: '0%', marginBlock: '0', color: "error-base" }, "* ")), index.h("cura-label", { key: '4b489038012fcf112d89d5cdcce46e55b363eca0', color: this.assignColor('message'), size: "xsmall", class: "message" }, index.h("slot", { key: 'edff8c3ddc4875017dc7e9342fe3c9e19bdb86dc' }))), index.h("input", { key: '43d5c937fbaa9139abaa3c1c8b5534a39fa4017c', type: "radio", class: `radio ${this.size.toLocaleLowerCase()}`, name: this.name, value: this.value, required: this.required, tabIndex: this.ontabindex, disabled: this.disabled, checked: this.checked, onClick: this.handleClick }))));
140
+ return (index.h(index.Host, { key: '015424d6821feeef090b0e064cf35eb39100f918' }, index.h("div", { key: '85b54a48eb2c75dd98df83f7ac7557162b036300', class: this.getClasses(), style: this.styles }, index.h("div", { key: '84f0b0a8f5e2698fc5fcc6941b6a8b369629d6c0', class: "info" }, index.h("div", { key: '94194138a25b71c7a6cd1b8c191662ebcbd16b71', class: "label-wrapper" }, index.h("cura-label", { key: 'cd5af14f2c174bf6a2e2715f32c3f97ed42dd05e', class: "label", size: this.size === 'large' ? 'medium' : 'xsmall', color: this.assignColor('label') }, this.label), this.required && index.h("cura-paragraph", { key: '237bc98ab60ab07e917dcd99b1874bf6fd400ec6', lineHeight: '0%', marginBlock: '0', color: "error-base" }, "* ")), index.h("cura-label", { key: '88a3014b55f420ed7744090f1e54927f7f6ec767', color: this.assignColor('message'), size: "xsmall", class: "message" }, index.h("slot", { key: 'b505727b192c807344f328c73c44f88b72314cb3' }))), index.h("input", { key: '6f324f596f24328d0829e1013bf78545dda17e4b', type: "radio", class: `radio ${this.size.toLocaleLowerCase()}`, name: this.name, value: this.value, required: this.required, tabIndex: this.ontabindex, disabled: this.disabled, checked: this.checked, onClick: this.handleClick }))));
141
141
  }
142
142
  static get formAssociated() { return true; }
143
143
  get host() { return index.getElement(this); }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-98e7ba54.js');
5
+ const index = require('./index-e6d728ec.js');
6
6
  const curaForms_definitions = require('./cura-forms.definitions-c164f1b8.js');
7
7
 
8
8
  const curaSwitchCss = "@charset \"UTF-8\";:host{display:block;width:fit-content;box-sizing:border-box}.container{display:flex;align-items:center;flex-direction:row-reverse;gap:var(--gap);text-align:left}.position{flex-direction:row}.label,.message{text-align:left}.control{width:fit-content}.track{background:var(--neutral-dark-base);border-radius:16px;transition:background-color 0.3s;align-items:flex-start;flex-shrink:0;box-sizing:border-box;width:var(--size-track);height:var(--size);position:relative}.thumb{background:var(--neutral-purewhite);border:2px solid var(--neutral-darker-medium);border-radius:50%;position:absolute;transition:transform 0.3s, outline 0.3s;display:inline-block;cursor:pointer;user-select:none;box-sizing:border-box;width:var(--size);height:var(--size);top:50%;transform:translateY(-50%)}.checked .thumb{border-color:var(--color-dark);box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16));background:var(--neutral-purewhite);transform:translateX(var(--size)) translateY(-50%)}.checked .thumb:hover{background:var(--neutral-pale) !important;border-color:var(--neutral-darker-medium) !important}.checked .thumb:active{border-color:var(--color-dark);background:var(--neutral-pale)}.checked .track{background:var(--color-base-light)}.disabled .track{background:var(--neutral-black-neutral-pale)}.disabled .thumb{background:var(--neutral-black-neutral-base) !important;border-color:var(--neutral-black-neutral-pale) !important;cursor:not-allowed}.disabled.checked .track{background:var(--neutral-black-neutral-pale)}.container.disabled .thumb:focus{outline:none !important;border-color:var(--neutral-black-neutral-pale) !important}:not(.disabled):not(.checked) .thumb:hover{border-color:var(--color-dark);background:var(--neutral-pale)}:not(.disabled):not(.checked) .thumb:active{border-color:var(--color-dark);background:var(--neutral-pale)}:not(.disabled) .thumb:focus{outline:2px solid var(--info-base) !important;border:2px solid var(--neutral-darker-medium);z-index:1}:not(.disabled) .checked .thumb:focus{outline:2px solid var(--info-base) !important;border-color:var(--color-dark)}";
@@ -109,7 +109,7 @@ const CuraSwitch = class {
109
109
  return classes;
110
110
  }
111
111
  render() {
112
- return (index.h(index.Host, { key: 'a18d2e4516e63c9dc080fabb97ded6cb145f096f' }, index.h("div", { key: 'e6cfb0bada406eef4b6dc400eae2cc8e15ff209b', class: this.getClasses(), style: this.styles }, index.h("div", { key: '520489765d61a4c96079cc51395c9a7038c1ec12', class: "info" }, index.h("cura-label", { key: '3b064a7794c262d62e4d8e04475ca20d87febc7b', style: { textAlign: this.position === 'right' ? 'right' : 'left' }, class: "label", weight: "bold", size: this.size === 'large' ? 'medium' : 'xsmall', lineHeight: "125%", color: this.assignColor('neutral-white', 'neutral-black') }, this.label), index.h("cura-label", { key: 'b94ac8cf1fd1e3ba0dce269b677636f09bc97597', style: { textAlign: this.position === 'right' ? 'right' : 'left' }, color: this.assignColor('primary-lighter', 'neutral-dark'), size: "xsmall", class: "message" }, index.h("slot", { key: '437f81a5bde1395d97c346928191c8ab0ce7219d' }))), index.h("div", { key: '3e36e82138a69c5f829f54ec82af0646fdea4fbb', onClick: this.toggleSwitch, class: "control" }, index.h("div", { key: '7068b0664ebb020037d63df565e5c835b7a4fa46', class: `track ${this.size.toLowerCase()}` }, index.h("div", { key: '6ce66dfe5d06bdfdb625b38b0e0adb20df7db130', class: `thumb ${this.size.toLowerCase()}`, tabIndex: this.ontabindex }))))));
112
+ return (index.h(index.Host, { key: '6bbc037348270c69bfac13e7466c6fd19f4dc427' }, index.h("div", { key: '11ada01c69ff91815ba1b1f76a6e6b448e88a361', class: this.getClasses(), style: this.styles }, index.h("div", { key: '34992d3d6fbf3ca7782fa4502e297d508656c34c', class: "info" }, index.h("cura-label", { key: '0e6a178f1f74526962d588b1fad3024920bcf815', style: { textAlign: this.position === 'right' ? 'right' : 'left' }, class: "label", weight: "bold", size: this.size === 'large' ? 'medium' : 'xsmall', lineHeight: "125%", color: this.assignColor('neutral-white', 'neutral-black') }, this.label), index.h("cura-label", { key: '33e7c6d7aaabd9007b0a41fb966b41b0fd947bc8', style: { textAlign: this.position === 'right' ? 'right' : 'left' }, color: this.assignColor('primary-lighter', 'neutral-dark'), size: "xsmall", class: "message" }, index.h("slot", { key: '66dd525702f7d53c8167cfd2aa25552d1bd79837' }))), index.h("div", { key: 'a3828f2e511a7e23ad5d0e04319637e1aa256c96', onClick: this.toggleSwitch, class: "control" }, index.h("div", { key: 'afc664ab5563591ef201eee1ca0d33a48075ad04', class: `track ${this.size.toLowerCase()}` }, index.h("div", { key: 'e6b7f3b67e78421283426ce1c7679cbbf8f77f5e', class: `thumb ${this.size.toLowerCase()}`, tabIndex: this.ontabindex }))))));
113
113
  }
114
114
  static get formAssociated() { return true; }
115
115
  static get watchers() { return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-98e7ba54.js');
5
+ const index = require('./index-e6d728ec.js');
6
6
 
7
7
  const curaToastCss = ":host{display:block;box-sizing:border-box}:host .container{position:fixed;z-index:99999;display:flex;box-sizing:border-box;min-width:328px;height:fit-content;padding:16px;border:1px solid var(--color-base);border-radius:12px;background-color:var(--neutral-purewhite);overflow:hidden;box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12))}:host .container.loader{padding:16px 16px 20px}:host .container.top{top:24px}:host .container.top.center{top:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, top 0.5s ease-in-out}:host .container.top.center.active{top:24px;opacity:1}:host .container.bottom{bottom:24px}:host .container.bottom.center{bottom:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, bottom 0.5s ease-in-out}:host .container.bottom.center.active{bottom:24px;opacity:1}:host .container.left{left:-100%;opacity:0;transition:opacity 0.5s ease-in-out, left 0.5s ease-in-out}@media (max-width: 768px){:host .container.left{right:unset;left:50%;transform:translateX(-50%)}}:host .container.left.active{left:24px;opacity:1}:host .container.right{right:-100%;opacity:0;transition:opacity 0.5s ease-in-out, right 0.5s ease-in-out}@media (max-width: 768px){:host .container.right{right:unset;left:50%;transform:translateX(-50%)}}:host .container.right.active{right:24px;opacity:1}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:4px}:host .container .default-icon{margin-right:12px}:host .container .close-icon{margin-left:12px;cursor:pointer}";
8
8
  const CuraToastStyle0 = curaToastCss;
@@ -31,7 +31,7 @@ const CuraToast = class {
31
31
  this.setStyle();
32
32
  }
33
33
  render() {
34
- return (index.h(index.Host, { key: '65417f506ab0db06fd38449643c679d4fea1fffd' }, index.h("div", { key: '80e509d36768bea4b99e215dc9d81aec83b9143c', class: this.getClasses(), style: this.styles }, index.h("cura-icon", { key: 'd2f6a36370ab4c6555bb679f481e1975fb234e41', class: "default-icon", name: this.getNameIcon(), size: 16, color: `${this.type}-dark` }), index.h("div", { key: 'c312e11dbb469c1a486eaf90898c6149ce099627', class: "content" }, index.h("cura-heading", { key: 'f0ff03c554caaf0213476c23004b1361a876cf19', level: 4, size: "xsmall", color: `${this.type}-dark`, weight: "bold", "margin-block": "0" }, this.label), index.h("cura-paragraph", { key: 'd94ab5591663c1135712bf54dd90182de5d18ed5', color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, index.h("slot", { key: '9dc18a1ded79abcc258b4a2c892084addb194c9f' })), index.h("slot", { key: '829788786a56a1492b6fef2dd053f84fdafd7ea1', name: "actions" })), this.closeButton && index.h("cura-icon", { key: '1d507a45d3a860e859f879de15d79bc7c3a34787', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.loader && !!this.autoCloseDelay && index.h("cura-loader-bar", { key: '0ad99ff90899e19b3b2e9a13a2ac3fa76dae286d', color: `${this.type}-base`, progress: this.progress }))));
34
+ return (index.h(index.Host, { key: 'b875e88d00075a71d6052563a45849f0b3124f13' }, index.h("div", { key: 'e766c7a687ec1f9ad943dc4e2ebb87c100da5b71', class: this.getClasses(), style: this.styles }, index.h("cura-icon", { key: '9379419d8403c5c7b14182bb136cd3375f8aa09a', class: "default-icon", name: this.getNameIcon(), size: 16, color: `${this.type}-dark` }), index.h("div", { key: '38f2a177984d826209d6fbdc9ad3036ef02a1825', class: "content" }, index.h("cura-heading", { key: 'a4fd1cce18d6208daa527b8da5687b47fbb59968', level: 4, size: "xsmall", color: `${this.type}-dark`, weight: "bold", "margin-block": "0" }, this.label), index.h("cura-paragraph", { key: 'fb803bbcbe47f1d2eca897ca5679d71294fe59ab', color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, index.h("slot", { key: '9ea56d9f87a423b109945cd4cf4078347a9fc1e9' })), index.h("slot", { key: '045b4ae11997260832288428df6672be6e918730', name: "actions" })), this.closeButton && index.h("cura-icon", { key: 'e326bb7786f60c95bed9d910e46f47bb4273bb7b', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.loader && !!this.autoCloseDelay && index.h("cura-loader-bar", { key: 'bf1d59681ac35d79fe240777e5d5424ee2b4a4e7', color: `${this.type}-base`, progress: this.progress }))));
35
35
  }
36
36
  componentDidLoad() {
37
37
  this.openContainer();
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-98e7ba54.js');
5
+ const index = require('./index-e6d728ec.js');
6
6
  const appGlobals = require('./app-globals-4d07f363.js');
7
7
 
8
8
  /*
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["cura-accordion_12.cjs",[[65,"cura-button",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[1],"background":[513],"fontColor":[513,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"styles":[32],"hovered":[32]},null,{"background":["setColors"],"color":["setColors"]}],[1,"cura-accordion-item",{"label":[513],"iconSize":[514,"icon-size"],"openIcon":[513,"open-icon"],"closeIcon":[513,"close-icon"],"iconColor":[513,"icon-color"],"iconActiveColor":[513,"icon-active-color"],"colorMode":[1,"color-mode"],"opened":[1540],"styles":[32]}],[1,"cura-accordion",{"color":[513],"activeColor":[513,"active-color"],"colorMode":[513,"color-mode"],"iconSize":[514,"icon-size"],"openIcon":[513,"open-icon"],"closeIcon":[513,"close-icon"],"iconColor":[513,"icon-color"],"iconActiveColor":[513,"icon-active-color"],"behavior":[513],"styles":[32]},null,{"color":["handleChangeColor"],"activeColor":["handleChangeColor"]}],[1,"cura-page-template",{"contentwidth":[513]}],[65,"cura-input-text",{"mode":[1537],"status":[1537],"size":[1537],"type":[513],"inputMode":[513,"input-mode"],"label":[513],"name":[513],"placeholder":[513],"value":[1032],"iconName":[1537,"icon-name"],"helperText":[1537,"helper-text"],"disabled":[516],"required":[516],"maskPreset":[8,"mask-preset"],"maskRegex":[1537,"mask-regex"],"maskAdvanced":[1544,"mask-advanced"],"maxlength":[1538],"readOnly":[516,"read-only"],"isLoading":[1540,"is-loading"],"clearIcon":[1540,"clear-icon"],"hideErrorIcon":[4,"hide-error-icon"],"isHovered":[32],"isFocused":[32],"styles":[32]},null,{"styles":["connectedCallback"],"size":["getClasses"],"status":["renderIcon"],"mode":["renderIcon"],"maskPreset":["initializeMask"],"maskRegex":["initializeMask"],"maskAdvanced":["initializeMask"]}],[65,"cura-select",{"label":[513],"placeholder":[513],"value":[1537],"mode":[513],"size":[513],"status":[1537],"disabled":[516],"required":[516],"searchBehavior":[516,"search-behavior"],"isHovered":[32],"isFocused":[32],"isOpen":[32],"options":[32],"activeIndex":[32],"textInput":[32]},null,{"activeIndex":["updateOptionHighlights"],"textInput":["filterOptions"],"value":["handleValueChange"]}],[1,"cura-select-option",{"value":[513],"selected":[516],"active":[516],"size":[1],"styles":[32]},null,{"size":["getSize"]}],[1,"cura-heading",{"level":[514],"size":[513],"weight":[513],"spotColor":[513,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}],[1,"cura-paragraph",{"size":[513],"spotColor":[513,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}],[1,"cura-loader-circle",{"size":[513],"color":[513]}],[1,"cura-icon",{"name":[513],"color":[1],"size":[8],"iconset":[513],"disabled":[4]},null,{"size":["sizeHandler"],"color":["colorHandler"],"disabled":["colorHandler"]}],[1,"cura-label",{"size":[513],"weight":[513],"spotColor":[513,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}]]],["cura-calendar.cjs",[[1,"cura-calendar",{"period":[513],"width":[513],"mode":[513],"dateFormat":[1537,"date-format"],"locale":[513],"type":[513],"disable":[16],"enable":[16],"defaultDate":[16],"limitRange":[514,"limit-range"],"disablePassDates":[1540,"disable-pass-dates"],"disableFutureDates":[1540,"disable-future-dates"],"collapsed":[1540],"floating":[1540],"embedded":[1540],"currentDate":[32],"selectedDates":[32],"rangeStart":[32],"defaultDates":[32],"selectMonth":[32],"selectYear":[32],"styles":[32]}]]],["cura-dropdown-search.cjs",[[1,"cura-dropdown-search",{"size":[1537],"status":[513],"disabled":[516],"name":[513],"required":[1540],"selected":[1540],"value":[1537],"placeholder":[1537],"label":[1537],"iconName":[513,"icon-name"],"dropdownMaxHeight":[513,"dropdown-max-height"],"overlayVisible":[32],"isDropdownOpen":[32],"styles":[32],"isMobile":[32],"mode":[32],"inputTextRef":[32],"isOnBlurInput":[32],"hoveredIndex":[32],"options":[32]},null,{"value":["onValueChange"]}]]],["cura-icons-view.cjs",[[1,"cura-icons-view",{"selected":[32]}]]],["cura-toast.cjs",[[1,"cura-toast",{"type":[1],"position":[1],"icon":[513],"label":[513],"closeButton":[516,"close-button"],"loader":[516],"autoCloseDelay":[514,"auto-close-delay"],"styles":[32],"progress":[32]},null,{"type":["handleChangeType"],"position":["handleChangeType"]}]]],["cura-alert.cjs",[[1,"cura-alert",{"type":[1],"floating":[516],"label":[513],"closeable":[516],"icon":[513],"styles":[32]},null,{"type":["setColors"]}]]],["cura-button-outline.cjs",[[65,"cura-button-outline",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[1],"background":[1],"fontColor":[1,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"styles":[32],"hovered":[32]},null,{"background":["setColors"],"color":["setColors","getSymbolColor"],"fontColor":["getSymbolColor"]}]]],["cura-checkbox.cjs",[[65,"cura-checkbox",{"checked":[1540],"indeterminate":[1540],"status":[1537],"disabled":[516],"required":[516],"label":[513],"ontabindex":[514],"position":[513],"value":[513],"name":[513],"size":[513],"background":[1],"iconColor":[1,"icon-color"],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors","assignColor"],"iconColor":["assignColor"]}]]],["cura-button-select.cjs",[[1,"cura-button-select",{"size":[513],"disabled":[516],"selected":[516],"iconPosition":[513,"icon-position"],"color":[1],"background":[1],"fontcolor":[1],"hovered":[32],"styles":[32]},null,{"background":["setColors","assignColor"],"color":["setColors"],"fontcolor":["setColors","assignColor"]}]]],["cura-radio.cjs",[[65,"cura-radio",{"checked":[1540],"status":[1537],"disabled":[516],"required":[516],"label":[513],"ontabindex":[514],"position":[513],"value":[513],"name":[513],"background":[1],"size":[1],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors","assignColor"]}]]],["cura-badge-distance.cjs",[[1,"cura-badge-distance",{"distance":[2],"label":[513],"styles":[32],"displayDistance":[32]},null,{"distance":["formatDistance"]}]]],["cura-dropdown-search-option.cjs",[[1,"cura-dropdown-search-option",{"value":[513],"selected":[1540],"selectable":[516],"hovered":[1540],"styles":[32]},null,{"selected":["updateIconColor"]}]]],["cura-dropdown-search-option-title.cjs",[[1,"cura-dropdown-search-option-title"]]],["cura-switch.cjs",[[65,"cura-switch",{"checked":[1540],"disabled":[516],"label":[513],"ontabindex":[514],"position":[513],"size":[513],"background":[1],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors"]}]]],["cura-avatar.cjs",[[1,"cura-avatar",{"size":[1],"backgroundColor":[513,"background-color"],"borderColor":[513,"border-color"],"borderRadius":[513,"border-radius"],"border":[516],"type":[513],"imageSrc":[1537,"image-src"],"imageSrcDefault":[513,"image-src-default"],"floating":[516],"styles":[32]},null,{"size":["sizeHandler"]}]]],["cura-card.cjs",[[1,"cura-card",{"hasPadding":[1028,"has-padding"],"hasShadow":[1028,"has-shadow"],"type":[1025],"colorMode":[1025,"color-mode"],"href":[1537],"target":[513],"styles":[32]}]]],["cura-display.cjs",[[1,"cura-display",{"level":[514],"size":[513],"spotColor":[1,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}]]],["cura-loader-bar.cjs",[[1,"cura-loader-bar",{"color":[1],"progress":[2],"styles":[32]},null,{"color":["handleChangeColor"],"progress":["handleProgress"]}]]],["cura-button-transparent.cjs",[[65,"cura-button-transparent",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[513],"fontColor":[513,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"hovered":[32],"styles":[32]},null,{"fontColor":["getSymbolColor"],"color":["getSymbolColor"]}]]]], options);
22
+ return index.bootstrapLazy([["cura-accordion_12.cjs",[[65,"cura-button",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[1],"background":[513],"fontColor":[513,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"styles":[32],"hovered":[32]},null,{"background":["setColors"],"color":["setColors"]}],[1,"cura-accordion-item",{"label":[513],"iconSize":[514,"icon-size"],"openIcon":[513,"open-icon"],"closeIcon":[513,"close-icon"],"iconColor":[513,"icon-color"],"iconActiveColor":[513,"icon-active-color"],"colorMode":[1,"color-mode"],"opened":[1540],"styles":[32]}],[1,"cura-accordion",{"color":[513],"activeColor":[513,"active-color"],"colorMode":[513,"color-mode"],"iconSize":[514,"icon-size"],"openIcon":[513,"open-icon"],"closeIcon":[513,"close-icon"],"iconColor":[513,"icon-color"],"iconActiveColor":[513,"icon-active-color"],"behavior":[513],"styles":[32]},null,{"color":["handleChangeColor"],"activeColor":["handleChangeColor"]}],[1,"cura-page-template",{"contentwidth":[513]}],[65,"cura-input-text",{"mode":[1537],"status":[1537],"size":[1537],"type":[513],"inputMode":[513,"input-mode"],"label":[513],"name":[513],"placeholder":[513],"value":[1032],"iconName":[1537,"icon-name"],"helperText":[1537,"helper-text"],"disabled":[516],"required":[516],"maskPreset":[8,"mask-preset"],"enableSelectionMode":[1540,"enable-selection-mode"],"maskRegex":[1537,"mask-regex"],"maskAdvanced":[1544,"mask-advanced"],"maxlength":[1538],"readOnly":[516,"read-only"],"isLoading":[1540,"is-loading"],"clearIcon":[1540,"clear-icon"],"hideErrorIcon":[4,"hide-error-icon"],"autocomplete":[513],"isHovered":[32],"isFocused":[32],"styles":[32]},null,{"styles":["connectedCallback"],"size":["getClasses"],"status":["renderIcon"],"mode":["renderIcon"],"maskPreset":["initializeMask"],"maskRegex":["initializeMask"],"maskAdvanced":["initializeMask"]}],[65,"cura-select",{"label":[513],"placeholder":[513],"value":[1537],"mode":[513],"size":[513],"status":[1537],"disabled":[516],"required":[516],"searchBehavior":[516,"search-behavior"],"isHovered":[32],"isFocused":[32],"isOpen":[32],"options":[32],"activeIndex":[32],"textInput":[32]},null,{"activeIndex":["updateOptionHighlights"],"textInput":["filterOptions"],"value":["handleValueChange"]}],[1,"cura-select-option",{"value":[513],"selected":[516],"active":[516],"size":[1],"styles":[32]},null,{"size":["getSize"]}],[1,"cura-heading",{"level":[514],"size":[513],"weight":[513],"spotColor":[513,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}],[1,"cura-paragraph",{"size":[513],"spotColor":[513,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}],[1,"cura-loader-circle",{"size":[513],"color":[513]}],[1,"cura-icon",{"name":[513],"color":[1],"size":[8],"iconset":[513],"disabled":[4]},null,{"size":["sizeHandler"],"color":["colorHandler"],"disabled":["colorHandler"]}],[1,"cura-label",{"size":[513],"weight":[513],"spotColor":[513,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}]]],["cura-input-date.cjs",[[65,"cura-input-date",{"label":[513],"status":[1537],"size":[1537],"name":[513],"helperText":[1537,"helper-text"],"enableRangeDates":[1540,"enable-range-dates"],"disableFutureDates":[1540,"disable-future-dates"],"disablePassDates":[1540,"disable-pass-dates"],"iconName":[1537,"icon-name"],"placeholder":[513],"styles":[32],"isCalendarVisible":[32],"dates":[32],"value":[32]},[[8,"click","handleClick"]],{"enableRangeDates":["setPlaceholder","setMask","setMode"],"disableFutureDates":["isDateValid","renderCalendarOrHelperText"],"disablePassDates":["isDateValid"],"dates":["renderCalendarOrHelperText"],"isCalendarVisible":["renderCalendarOrHelperText"]}]]],["cura-dropdown-search.cjs",[[1,"cura-dropdown-search",{"size":[1537],"status":[513],"disabled":[516],"name":[513],"required":[1540],"selected":[1540],"value":[1537],"placeholder":[1537],"label":[1537],"iconName":[513,"icon-name"],"dropdownMaxHeight":[513,"dropdown-max-height"],"overlayVisible":[32],"isDropdownOpen":[32],"styles":[32],"isMobile":[32],"mode":[32],"inputTextRef":[32],"isOnBlurInput":[32],"hoveredIndex":[32],"options":[32]},null,{"value":["onValueChange"]}]]],["cura-icons-view.cjs",[[1,"cura-icons-view",{"selected":[32]}]]],["cura-toast.cjs",[[1,"cura-toast",{"type":[1],"position":[1],"icon":[513],"label":[513],"closeButton":[516,"close-button"],"loader":[516],"autoCloseDelay":[514,"auto-close-delay"],"styles":[32],"progress":[32]},null,{"type":["handleChangeType"],"position":["handleChangeType"]}]]],["cura-alert.cjs",[[1,"cura-alert",{"type":[1],"floating":[516],"label":[513],"closeable":[516],"icon":[513],"styles":[32]},null,{"type":["setColors"]}]]],["cura-button-outline.cjs",[[65,"cura-button-outline",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[1],"background":[1],"fontColor":[1,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"styles":[32],"hovered":[32]},null,{"background":["setColors"],"color":["setColors","getSymbolColor"],"fontColor":["getSymbolColor"]}]]],["cura-button-select.cjs",[[1,"cura-button-select",{"selected":[1540],"iconName":[1537,"icon-name"],"size":[513],"counter":[1544],"disabled":[516],"background":[1],"color":[1],"hovered":[32],"styles":[32]},null,{"background":["setColors"],"color":["setColors"]}]]],["cura-checkbox.cjs",[[65,"cura-checkbox",{"checked":[1540],"indeterminate":[1540],"status":[1537],"disabled":[516],"required":[516],"label":[513],"ontabindex":[514],"position":[513],"value":[513],"name":[513],"size":[513],"background":[1],"iconColor":[1,"icon-color"],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors","assignColor"],"iconColor":["assignColor"]}]]],["cura-radio.cjs",[[65,"cura-radio",{"checked":[1540],"status":[1537],"disabled":[516],"required":[516],"label":[513],"ontabindex":[514],"position":[513],"value":[513],"name":[513],"background":[1],"size":[1],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors","assignColor"]}]]],["cura-badge-distance.cjs",[[1,"cura-badge-distance",{"distance":[2],"label":[513],"styles":[32],"displayDistance":[32]},null,{"distance":["formatDistance"]}]]],["cura-dropdown-search-option.cjs",[[1,"cura-dropdown-search-option",{"value":[513],"selected":[1540],"selectable":[516],"hovered":[1540],"styles":[32]},null,{"selected":["updateIconColor"]}]]],["cura-dropdown-search-option-title.cjs",[[1,"cura-dropdown-search-option-title"]]],["cura-switch.cjs",[[65,"cura-switch",{"checked":[1540],"disabled":[516],"label":[513],"ontabindex":[514],"position":[513],"size":[513],"background":[1],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors"]}]]],["cura-avatar.cjs",[[1,"cura-avatar",{"size":[1],"backgroundColor":[513,"background-color"],"borderColor":[513,"border-color"],"borderRadius":[513,"border-radius"],"border":[516],"type":[513],"imageSrc":[1537,"image-src"],"imageSrcDefault":[513,"image-src-default"],"floating":[516],"styles":[32]},null,{"size":["sizeHandler"]}]]],["cura-card.cjs",[[1,"cura-card",{"hasPadding":[1028,"has-padding"],"hasShadow":[1028,"has-shadow"],"type":[1025],"colorMode":[1025,"color-mode"],"href":[1537],"target":[513],"styles":[32]}]]],["cura-display.cjs",[[1,"cura-display",{"level":[514],"size":[513],"spotColor":[1,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}]]],["cura-calendar.cjs",[[1,"cura-calendar",{"period":[513],"width":[513],"mode":[513],"dateFormat":[1537,"date-format"],"locale":[513],"type":[513],"disable":[16],"enable":[16],"defaultDate":[16],"customDates":[16],"limitRange":[514,"limit-range"],"disablePassDates":[1540,"disable-pass-dates"],"disableFutureDates":[1540,"disable-future-dates"],"collapsed":[1540],"floating":[1540],"embedded":[1540],"currentDate":[32],"selectedDates":[32],"rangeStart":[32],"defaultDates":[32],"selectMonth":[32],"selectYear":[32],"styles":[32]},null,{"customDates":["watchDefaultDatesArray"]}]]],["cura-badge-number.cjs",[[1,"cura-badge-number",{"number":[514],"color":[513]}]]],["cura-loader-bar.cjs",[[1,"cura-loader-bar",{"color":[1],"progress":[2],"styles":[32]},null,{"color":["handleChangeColor"],"progress":["handleProgress"]}]]],["cura-button-transparent.cjs",[[65,"cura-button-transparent",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[513],"fontColor":[513,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"hovered":[32],"styles":[32]},null,{"fontColor":["getSymbolColor"],"color":["getSymbolColor"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -0,0 +1,126 @@
1
+ 'use strict';
2
+
3
+ function _typeof(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+
13
+ function requiredArgs(required, args) {
14
+ if (args.length < required) {
15
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
16
+ }
17
+ }
18
+
19
+ /**
20
+ * @name toDate
21
+ * @category Common Helpers
22
+ * @summary Convert the given argument to an instance of Date.
23
+ *
24
+ * @description
25
+ * Convert the given argument to an instance of Date.
26
+ *
27
+ * If the argument is an instance of Date, the function returns its clone.
28
+ *
29
+ * If the argument is a number, it is treated as a timestamp.
30
+ *
31
+ * If the argument is none of the above, the function returns Invalid Date.
32
+ *
33
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
34
+ *
35
+ * @param {Date|Number} argument - the value to convert
36
+ * @returns {Date} the parsed date in the local time zone
37
+ * @throws {TypeError} 1 argument required
38
+ *
39
+ * @example
40
+ * // Clone the date:
41
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
42
+ * //=> Tue Feb 11 2014 11:30:30
43
+ *
44
+ * @example
45
+ * // Convert the timestamp to date:
46
+ * const result = toDate(1392098430000)
47
+ * //=> Tue Feb 11 2014 11:30:30
48
+ */
49
+ function toDate(argument) {
50
+ requiredArgs(1, arguments);
51
+ var argStr = Object.prototype.toString.call(argument);
52
+
53
+ // Clone the date
54
+ if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
55
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
56
+ return new Date(argument.getTime());
57
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
58
+ return new Date(argument);
59
+ } else {
60
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
61
+ // eslint-disable-next-line no-console
62
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
63
+ // eslint-disable-next-line no-console
64
+ console.warn(new Error().stack);
65
+ }
66
+ return new Date(NaN);
67
+ }
68
+ }
69
+
70
+ /**
71
+ * @name isAfter
72
+ * @category Common Helpers
73
+ * @summary Is the first date after the second one?
74
+ *
75
+ * @description
76
+ * Is the first date after the second one?
77
+ *
78
+ * @param {Date|Number} date - the date that should be after the other one to return true
79
+ * @param {Date|Number} dateToCompare - the date to compare with
80
+ * @returns {Boolean} the first date is after the second date
81
+ * @throws {TypeError} 2 arguments required
82
+ *
83
+ * @example
84
+ * // Is 10 July 1989 after 11 February 1987?
85
+ * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
86
+ * //=> true
87
+ */
88
+ function isAfter(dirtyDate, dirtyDateToCompare) {
89
+ requiredArgs(2, arguments);
90
+ var date = toDate(dirtyDate);
91
+ var dateToCompare = toDate(dirtyDateToCompare);
92
+ return date.getTime() > dateToCompare.getTime();
93
+ }
94
+
95
+ /**
96
+ * @name isBefore
97
+ * @category Common Helpers
98
+ * @summary Is the first date before the second one?
99
+ *
100
+ * @description
101
+ * Is the first date before the second one?
102
+ *
103
+ * @param {Date|Number} date - the date that should be before the other one to return true
104
+ * @param {Date|Number} dateToCompare - the date to compare with
105
+ * @returns {Boolean} the first date is before the second date
106
+ * @throws {TypeError} 2 arguments required
107
+ *
108
+ * @example
109
+ * // Is 10 July 1989 before 11 February 1987?
110
+ * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
111
+ * //=> false
112
+ */
113
+ function isBefore(dirtyDate, dirtyDateToCompare) {
114
+ requiredArgs(2, arguments);
115
+ var date = toDate(dirtyDate);
116
+ var dateToCompare = toDate(dirtyDateToCompare);
117
+ return date.getTime() < dateToCompare.getTime();
118
+ }
119
+
120
+ exports._typeof = _typeof;
121
+ exports.isAfter = isAfter;
122
+ exports.isBefore = isBefore;
123
+ exports.requiredArgs = requiredArgs;
124
+ exports.toDate = toDate;
125
+
126
+ //# sourceMappingURL=index-6dc29195.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-6dc29195.js","mappings":";;AAAA,SAAS,OAAO,CAAC,CAAC,EAAE;AACpB,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;AACpG,IAAI,OAAO,OAAO,CAAC,CAAC;AACpB,GAAG,GAAG,UAAU,CAAC,EAAE;AACnB,IAAI,OAAO,CAAC,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM,IAAI,CAAC,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AACxH,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAChB;;ACRe,SAAS,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE;AACrD,EAAE,IAAI,IAAI,CAAC,MAAM,GAAG,QAAQ,EAAE;AAC9B,IAAI,MAAM,IAAI,SAAS,CAAC,QAAQ,GAAG,WAAW,IAAI,QAAQ,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC,GAAG,sBAAsB,GAAG,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;AAChI,GAAG;AACH;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,MAAM,CAAC,QAAQ,EAAE;AACzC,EAAE,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACxD;AACA;AACA,EAAE,IAAI,QAAQ,YAAY,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,QAAQ,IAAI,MAAM,KAAK,eAAe,EAAE;AAChG;AACA,IAAI,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;AACxC,GAAG,MAAM,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,MAAM,KAAK,iBAAiB,EAAE;AAC3E,IAAI,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC9B,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,MAAM,KAAK,iBAAiB,KAAK,OAAO,OAAO,KAAK,WAAW,EAAE;AAC1G;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,oNAAoN,CAAC,CAAC;AACzO;AACA,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AACtC,KAAK;AACL,IAAI,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;AACzB,GAAG;AACH;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,OAAO,CAAC,SAAS,EAAE,kBAAkB,EAAE;AAC/D,EAAE,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAC/B,EAAE,IAAI,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACjD,EAAE,OAAO,IAAI,CAAC,OAAO,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE,CAAC;AAClD;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,QAAQ,CAAC,SAAS,EAAE,kBAAkB,EAAE;AAChE,EAAE,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAC7B,EAAE,IAAI,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAC/B,EAAE,IAAI,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACjD,EAAE,OAAO,IAAI,CAAC,OAAO,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE,CAAC;AAClD;;;;;;;;","names":[],"sources":["../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../../node_modules/date-fns/esm/toDate/index.js","../../node_modules/date-fns/esm/isAfter/index.js","../../node_modules/date-fns/esm/isBefore/index.js"],"sourcesContent":["function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n\n // Clone the date\n if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n // eslint-disable-next-line no-console\n console.warn(new Error().stack);\n }\n return new Date(NaN);\n }\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param {Date|Number} date - the date that should be after the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is after the second date\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport default function isAfter(dirtyDate, dirtyDateToCompare) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dateToCompare = toDate(dirtyDateToCompare);\n return date.getTime() > dateToCompare.getTime();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param {Date|Number} date - the date that should be before the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is before the second date\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport default function isBefore(dirtyDate, dirtyDateToCompare) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dateToCompare = toDate(dirtyDateToCompare);\n return date.getTime() < dateToCompare.getTime();\n}"],"version":3}
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'cura';
24
- const BUILD = /* cura */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
24
+ const BUILD = /* cura */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.22.0 | MIT Licensed | https://stenciljs.com
@@ -110,6 +110,22 @@ var plt = {
110
110
  ce: (eventName, opts) => new CustomEvent(eventName, opts)
111
111
  };
112
112
  var supportsShadow = BUILD.shadowDom;
113
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
114
+ let supportsListenerOptions2 = false;
115
+ try {
116
+ doc.addEventListener(
117
+ "e",
118
+ null,
119
+ Object.defineProperty({}, "passive", {
120
+ get() {
121
+ supportsListenerOptions2 = true;
122
+ }
123
+ })
124
+ );
125
+ } catch (e) {
126
+ }
127
+ return supportsListenerOptions2;
128
+ })();
113
129
  var promiseResolve = (v) => Promise.resolve(v);
114
130
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
115
131
  try {
@@ -1013,6 +1029,13 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1013
1029
  }
1014
1030
  let maybePromise;
1015
1031
  if (isInitialLoad) {
1032
+ {
1033
+ hostRef.$flags$ |= 256 /* isListenReady */;
1034
+ if (hostRef.$queuedListeners$) {
1035
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1036
+ hostRef.$queuedListeners$ = void 0;
1037
+ }
1038
+ }
1016
1039
  {
1017
1040
  maybePromise = safeCall(instance, "componentWillLoad");
1018
1041
  }
@@ -1378,6 +1401,7 @@ var connectedCallback = (elm) => {
1378
1401
  initializeComponent(elm, hostRef, cmpMeta);
1379
1402
  }
1380
1403
  } else {
1404
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1381
1405
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1382
1406
  fireConnectedCallback(hostRef.$lazyInstance$);
1383
1407
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
@@ -1395,6 +1419,12 @@ var disconnectInstance = (instance) => {
1395
1419
  var disconnectedCallback = async (elm) => {
1396
1420
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1397
1421
  const hostRef = getHostRef(elm);
1422
+ {
1423
+ if (hostRef.$rmListeners$) {
1424
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1425
+ hostRef.$rmListeners$ = void 0;
1426
+ }
1427
+ }
1398
1428
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1399
1429
  disconnectInstance(hostRef.$lazyInstance$);
1400
1430
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
@@ -1437,6 +1467,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1437
1467
  {
1438
1468
  cmpMeta.$members$ = compactMeta[2];
1439
1469
  }
1470
+ {
1471
+ cmpMeta.$listeners$ = compactMeta[3];
1472
+ }
1440
1473
  {
1441
1474
  cmpMeta.$attrsToReflect$ = [];
1442
1475
  }
@@ -1468,9 +1501,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1468
1501
  }
1469
1502
  }
1470
1503
  connectedCallback() {
1471
- getHostRef(this);
1504
+ const hostRef = getHostRef(this);
1472
1505
  if (!this.hasRegisteredEventListeners) {
1473
1506
  this.hasRegisteredEventListeners = true;
1507
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1474
1508
  }
1475
1509
  if (appLoadFallback) {
1476
1510
  clearTimeout(appLoadFallback);
@@ -1528,6 +1562,39 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1528
1562
  }
1529
1563
  endBootstrap();
1530
1564
  };
1565
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1566
+ if (listeners) {
1567
+ listeners.map(([flags, name, method]) => {
1568
+ const target = getHostListenerTarget(elm, flags) ;
1569
+ const handler = hostListenerProxy(hostRef, method);
1570
+ const opts = hostListenerOpts(flags);
1571
+ plt.ael(target, name, handler, opts);
1572
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1573
+ });
1574
+ }
1575
+ };
1576
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1577
+ var _a;
1578
+ try {
1579
+ {
1580
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
1581
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1582
+ } else {
1583
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1584
+ }
1585
+ }
1586
+ } catch (e) {
1587
+ consoleError(e);
1588
+ }
1589
+ };
1590
+ var getHostListenerTarget = (elm, flags) => {
1591
+ if (flags & 8 /* TargetWindow */) return win;
1592
+ return elm;
1593
+ };
1594
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1595
+ passive: (flags & 1 /* Passive */) !== 0,
1596
+ capture: (flags & 2 /* Capture */) !== 0
1597
+ } : (flags & 2 /* Capture */) !== 0;
1531
1598
 
1532
1599
  // src/runtime/nonce.ts
1533
1600
  var setNonce = (nonce) => plt.$nonce$ = nonce;
@@ -1541,4 +1608,4 @@ exports.promiseResolve = promiseResolve;
1541
1608
  exports.registerInstance = registerInstance;
1542
1609
  exports.setNonce = setNonce;
1543
1610
 
1544
- //# sourceMappingURL=index-98e7ba54.js.map
1611
+ //# sourceMappingURL=index-e6d728ec.js.map