@baloise/ds-core 16.8.0 → 17.0.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 (964) hide show
  1. package/components/all.d.ts +0 -2
  2. package/components/all.js +0 -3
  3. package/components/array.js +1875 -0
  4. package/components/bal-accordion-details.js +1 -1
  5. package/components/bal-accordion-summary.js +2 -2
  6. package/components/bal-accordion-trigger.js +1 -1
  7. package/components/bal-accordion.js +1 -1
  8. package/components/bal-app.js +11 -5
  9. package/components/bal-badge2.js +1 -1
  10. package/components/bal-button-group2.js +2 -2
  11. package/components/bal-button2.js +18 -4
  12. package/components/bal-card-actions.js +1 -1
  13. package/components/bal-card-button.js +1 -1
  14. package/components/bal-card-content2.js +1 -1
  15. package/components/bal-card-subtitle.js +1 -1
  16. package/components/bal-card-title.js +1 -1
  17. package/components/bal-card2.js +3 -3
  18. package/components/bal-carousel-item2.js +14 -3
  19. package/components/bal-carousel2.js +30 -7
  20. package/components/bal-checkbox-button.js +1 -1
  21. package/components/bal-checkbox-group.js +28 -3
  22. package/components/bal-checkbox2.js +16 -3
  23. package/components/bal-close2.js +1 -1
  24. package/components/bal-content2.js +1 -1
  25. package/components/bal-data-item.js +1 -1
  26. package/components/bal-data-label.js +1 -1
  27. package/components/bal-data-value.js +2 -2
  28. package/components/bal-data.js +1 -1
  29. package/components/bal-date-calendar-cell2.js +1 -1
  30. package/components/bal-date-calendar2.js +3 -3
  31. package/components/bal-date.js +39 -10
  32. package/components/bal-divider.js +1 -1
  33. package/components/bal-dropdown2.js +57 -32
  34. package/components/bal-field-control.js +2 -2
  35. package/components/bal-field-hint.js +1 -1
  36. package/components/bal-field-label.js +1 -1
  37. package/components/bal-field-message.js +2 -2
  38. package/components/bal-field.js +3 -5
  39. package/components/bal-file-upload.js +14 -7
  40. package/components/bal-footer.js +196 -6
  41. package/components/bal-form-col.js +2 -2
  42. package/components/bal-form-grid.js +1 -1
  43. package/components/bal-form.js +1 -1
  44. package/components/bal-heading2.js +1 -1
  45. package/components/bal-hint-text2.js +1 -1
  46. package/components/bal-hint-title2.js +1 -1
  47. package/components/bal-icon2.js +13 -1
  48. package/components/bal-input-date2.js +18 -6
  49. package/components/bal-input-group2.js +1 -1
  50. package/components/bal-input-slider.js +20 -6
  51. package/components/bal-input-stepper.js +20 -7
  52. package/components/bal-input.js +18 -5
  53. package/components/bal-label2.js +1 -1
  54. package/components/bal-list-item-accordion-body2.js +4 -4
  55. package/components/bal-list-item-accordion-head2.js +3 -3
  56. package/components/bal-list-item-content2.js +2 -2
  57. package/components/bal-list-item-icon2.js +2 -2
  58. package/components/bal-list-item-subtitle2.js +1 -1
  59. package/components/bal-list-item-title2.js +1 -1
  60. package/components/bal-list-item2.js +1 -1
  61. package/components/bal-list2.js +1 -1
  62. package/components/bal-logo2.js +2 -2
  63. package/components/bal-modal-body.js +1 -1
  64. package/components/bal-modal-header.js +1 -1
  65. package/components/bal-modal.js +33 -7
  66. package/components/bal-nav-link-grid-col2.js +1 -1
  67. package/components/bal-nav-link-grid2.js +1 -1
  68. package/components/bal-nav-link-group.js +1 -1
  69. package/components/bal-nav-link2.js +2 -2
  70. package/components/bal-nav-menu-bar2.js +1 -1
  71. package/components/bal-nav-menu-flyout2.js +1 -1
  72. package/components/bal-nav-meta-bar2.js +10 -3
  73. package/components/bal-nav.js +16 -3
  74. package/components/bal-navbar-brand.js +2 -2
  75. package/components/bal-navbar-menu-end.js +1 -1
  76. package/components/bal-navbar-menu-start.js +1 -1
  77. package/components/bal-navbar-menu.js +2 -2
  78. package/components/bal-navbar.js +1 -1
  79. package/components/bal-notices.js +2 -2
  80. package/components/bal-notification.js +1 -1
  81. package/components/bal-number-input.js +21 -26
  82. package/components/bal-option-list.js +17 -4
  83. package/components/bal-option2.js +9 -2
  84. package/components/bal-pagination2.js +4 -4
  85. package/components/bal-popover-content2.js +1 -1
  86. package/components/bal-popover2.js +38 -13
  87. package/components/bal-popup.js +47 -12
  88. package/components/bal-progress-bar.js +2 -2
  89. package/components/bal-radio-button.js +1 -1
  90. package/components/bal-radio-group.js +33 -2
  91. package/components/bal-radio2.js +10 -3
  92. package/components/bal-segment-item.js +2 -2
  93. package/components/bal-segment.js +17 -4
  94. package/components/bal-select-option2.js +1 -1
  95. package/components/bal-select2.js +29 -9
  96. package/components/bal-shape2.js +4 -4
  97. package/components/bal-sheet.js +1 -1
  98. package/components/bal-snackbar.js +1 -1
  99. package/components/bal-spinner2.js +3 -3
  100. package/components/bal-stack2.js +1 -1
  101. package/components/bal-stage-back-link.js +2 -2
  102. package/components/bal-stage-body.js +1 -1
  103. package/components/bal-stage-foot.js +1 -1
  104. package/components/bal-stage-head.js +1 -1
  105. package/components/bal-stage-image.js +11 -2
  106. package/components/bal-stage.js +1 -1
  107. package/components/bal-step-item.js +2 -2
  108. package/components/bal-steps.js +2 -2
  109. package/components/bal-tab-item.js +2 -2
  110. package/components/bal-table.js +1 -1
  111. package/components/bal-tabs2.js +45 -18
  112. package/components/bal-tag-group.js +1 -1
  113. package/components/bal-tag2.js +1 -1
  114. package/components/bal-text2.js +2 -2
  115. package/components/bal-textarea.js +18 -4
  116. package/components/bal-time-input.js +20 -7
  117. package/components/bal-toast.js +1 -1
  118. package/components/bal-tooltip.js +13 -9
  119. package/components/breakpoints.subject.js +1 -1
  120. package/components/date.js +32 -2
  121. package/components/element-states.decorator.js +1 -1
  122. package/components/floating-ui.dom.esm.js +493 -1
  123. package/components/floating-ui.js +26 -0
  124. package/components/focus.decorator.js +1 -1
  125. package/components/form-input.js +1 -1
  126. package/components/helpers.js +35 -3
  127. package/components/index.js +2 -3
  128. package/components/index2.js +570 -13
  129. package/components/index3.js +13 -570
  130. package/components/index4.js +558 -0
  131. package/components/keyboard.helpers.js +62 -0
  132. package/components/listen.js +58 -0
  133. package/components/mutation.decorator.js +13 -11
  134. package/components/number.js +30 -0
  135. package/components/overlays.js +1 -1
  136. package/components/resize.decorator.js +1 -1
  137. package/components/swipe.subject.js +2 -2
  138. package/components/tokens.esm.js +1 -1
  139. package/components/utils.js +1 -1
  140. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  141. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  142. package/dist/baloise-design-system/index.esm.js +1 -1
  143. package/dist/baloise-design-system/p-00b37ea2.js +1 -0
  144. package/dist/baloise-design-system/p-01cdb12b31.entry.js +1 -0
  145. package/dist/baloise-design-system/p-0215ccdca9.system.entry.js +1 -0
  146. package/dist/baloise-design-system/{p-2db9030ad9.system.entry.js → p-063f4fc96f.system.entry.js} +1 -1
  147. package/dist/baloise-design-system/{p-a6e7599e.js → p-06d357bd.js} +1 -1
  148. package/dist/baloise-design-system/p-075bcd8c56.system.entry.js +1 -0
  149. package/dist/baloise-design-system/p-0935940ea0.system.entry.js +1 -0
  150. package/dist/baloise-design-system/{p-a01f3206.system.js → p-0aa1d6a4.system.js} +1 -1
  151. package/dist/baloise-design-system/p-0c51c999.js +1 -0
  152. package/dist/baloise-design-system/p-0dc26bfe1f.entry.js +1 -0
  153. package/dist/baloise-design-system/p-0ede0fa9b2.entry.js +1 -0
  154. package/dist/baloise-design-system/p-10151a65a4.entry.js +1 -0
  155. package/dist/baloise-design-system/{p-cd378385.system.js → p-10985d5e.system.js} +1 -1
  156. package/dist/baloise-design-system/p-12701030b2.system.entry.js +1 -0
  157. package/dist/baloise-design-system/p-1400a7e9cc.entry.js +1 -0
  158. package/dist/baloise-design-system/{p-0970cac46c.system.entry.js → p-14eef425da.system.entry.js} +1 -1
  159. package/dist/baloise-design-system/p-166d571e.js +1 -0
  160. package/dist/baloise-design-system/p-16ff8c81bf.entry.js +1 -0
  161. package/dist/baloise-design-system/{p-8f89168b60.system.entry.js → p-17c73b8f48.system.entry.js} +1 -1
  162. package/dist/baloise-design-system/{p-49fe011f.js → p-1c09c9b0.js} +1 -1
  163. package/dist/baloise-design-system/p-1c41de53.system.js +1 -0
  164. package/dist/baloise-design-system/{p-bcbb5b59f3.system.entry.js → p-1e344a8c28.system.entry.js} +1 -1
  165. package/dist/baloise-design-system/{p-2ea21f9c.system.js → p-1e688639.system.js} +1 -1
  166. package/dist/baloise-design-system/p-218f416b89.entry.js +1 -0
  167. package/dist/baloise-design-system/p-2539ba43.js +2 -0
  168. package/dist/baloise-design-system/p-2767b62167.system.entry.js +1 -0
  169. package/dist/baloise-design-system/p-29273a2be9.entry.js +1 -0
  170. package/dist/baloise-design-system/p-2af8b73858.entry.js +1 -0
  171. package/dist/baloise-design-system/p-2f6c32ca97.entry.js +1 -0
  172. package/dist/baloise-design-system/p-30679d51bd.system.entry.js +1 -0
  173. package/dist/baloise-design-system/p-30f41bab1a.system.entry.js +1 -0
  174. package/dist/baloise-design-system/p-3114a84410.entry.js +1 -0
  175. package/dist/baloise-design-system/p-3149162e9e.entry.js +1 -0
  176. package/dist/baloise-design-system/p-33101c54.js +1 -0
  177. package/dist/baloise-design-system/p-3508444fc8.entry.js +1 -0
  178. package/dist/baloise-design-system/{p-abd9c578.system.js → p-365fc134.system.js} +1 -1
  179. package/dist/baloise-design-system/p-3814316946.entry.js +1 -0
  180. package/dist/baloise-design-system/p-3c504ddf38.system.entry.js +1 -0
  181. package/dist/baloise-design-system/p-3f01fc8b.js +1 -0
  182. package/dist/baloise-design-system/p-4b6481e692.entry.js +1 -0
  183. package/dist/baloise-design-system/p-4bbe4ba6ba.entry.js +1 -0
  184. package/dist/baloise-design-system/p-4d807f18.system.js +1 -0
  185. package/dist/baloise-design-system/p-4d84f90534.entry.js +1 -0
  186. package/dist/baloise-design-system/p-4dad7840.js +1 -0
  187. package/dist/baloise-design-system/p-4e4fe533.js +1 -0
  188. package/dist/baloise-design-system/{p-2e9934393d.system.entry.js → p-4e75ee3c87.system.entry.js} +1 -1
  189. package/dist/baloise-design-system/p-50927d70.js +1 -0
  190. package/dist/baloise-design-system/{p-54f81c32.js → p-50b2a9c6.js} +1 -1
  191. package/dist/baloise-design-system/p-51e22c0c.js +1 -0
  192. package/dist/baloise-design-system/{p-e61fa225.js → p-51fa7a76.js} +1 -1
  193. package/dist/baloise-design-system/{p-baf64616.system.js → p-533956b7.system.js} +1 -1
  194. package/dist/baloise-design-system/p-5353ba1263.entry.js +1 -0
  195. package/dist/baloise-design-system/p-53b859d3c4.entry.js +1 -0
  196. package/dist/baloise-design-system/p-54c8a63b7c.system.entry.js +1 -0
  197. package/dist/baloise-design-system/p-579855c6.system.js +1 -0
  198. package/dist/baloise-design-system/p-5b78557886.entry.js +1 -0
  199. package/dist/baloise-design-system/p-6116192a.js +1 -0
  200. package/dist/baloise-design-system/p-61c48963c7.system.entry.js +1 -0
  201. package/dist/baloise-design-system/p-62936f4a8b.entry.js +1 -0
  202. package/dist/baloise-design-system/{p-de08fd27.js → p-63b52c0f.js} +1 -1
  203. package/dist/baloise-design-system/p-678ebde2de.entry.js +1 -0
  204. package/dist/baloise-design-system/p-68392bc0e8.system.entry.js +1 -0
  205. package/dist/baloise-design-system/p-69f82b9b22.entry.js +1 -0
  206. package/dist/baloise-design-system/p-6c3a60ddf6.entry.js +1 -0
  207. package/dist/baloise-design-system/p-6cadcbe4bb.entry.js +1 -0
  208. package/dist/baloise-design-system/{p-438787a3f4.system.entry.js → p-6d27c4949f.system.entry.js} +1 -1
  209. package/dist/baloise-design-system/p-6d6a2f64f2.entry.js +1 -0
  210. package/dist/baloise-design-system/p-6e79b03ef3.entry.js +1 -0
  211. package/dist/baloise-design-system/{p-84da5fdc6d.system.entry.js → p-6fb26bd060.system.entry.js} +1 -1
  212. package/dist/baloise-design-system/{p-29ba4f9afe.system.entry.js → p-70ff6660e5.system.entry.js} +1 -1
  213. package/dist/baloise-design-system/p-72ffb739.system.js +1 -0
  214. package/dist/baloise-design-system/p-738ca720.system.js +1 -0
  215. package/dist/baloise-design-system/p-73bd9055.system.js +1 -0
  216. package/dist/baloise-design-system/{p-10351b73.js → p-7607c59d.js} +1 -1
  217. package/dist/baloise-design-system/p-7752fa10ea.system.entry.js +1 -0
  218. package/dist/baloise-design-system/p-799a292492.entry.js +1 -0
  219. package/dist/baloise-design-system/p-7a883fd6ed.system.entry.js +1 -0
  220. package/dist/baloise-design-system/p-7eaff7954d.entry.js +1 -0
  221. package/dist/baloise-design-system/p-7f9fe862b6.system.entry.js +1 -0
  222. package/dist/baloise-design-system/p-802216cd.system.js +1 -0
  223. package/dist/baloise-design-system/{p-1920d4af.js → p-802c6111.js} +1 -1
  224. package/dist/baloise-design-system/p-8096d040b2.system.entry.js +1 -0
  225. package/dist/baloise-design-system/p-85b6c500d8.entry.js +1 -0
  226. package/dist/baloise-design-system/p-85d9ea863b.system.entry.js +1 -0
  227. package/dist/baloise-design-system/p-85ed9bd051.entry.js +1 -0
  228. package/dist/baloise-design-system/p-8669493951.system.entry.js +1 -0
  229. package/dist/baloise-design-system/p-88be14c716.entry.js +1 -0
  230. package/dist/baloise-design-system/p-8a1bb350f1.system.entry.js +1 -0
  231. package/dist/baloise-design-system/p-8a73c9b8.js +1 -0
  232. package/dist/baloise-design-system/{p-b7ceb9e59e.system.entry.js → p-8ac5772a60.system.entry.js} +1 -1
  233. package/dist/baloise-design-system/p-8b8d19171d.entry.js +1 -0
  234. package/dist/baloise-design-system/p-8d370d87cb.entry.js +1 -0
  235. package/dist/baloise-design-system/{p-fad86a959d.system.entry.js → p-9311066eb2.system.entry.js} +1 -1
  236. package/dist/baloise-design-system/p-93e2638280.system.entry.js +1 -0
  237. package/dist/baloise-design-system/p-950bd476.js +1 -0
  238. package/dist/baloise-design-system/{p-2692caf4.js → p-95a4f1be.js} +1 -1
  239. package/dist/baloise-design-system/p-98267a7765.entry.js +1 -0
  240. package/dist/baloise-design-system/{p-049f6f9bc3.system.entry.js → p-98a58cff41.system.entry.js} +1 -1
  241. package/dist/baloise-design-system/p-98f7403c7f.entry.js +1 -0
  242. package/dist/baloise-design-system/p-992c49c23e.system.entry.js +1 -0
  243. package/dist/baloise-design-system/p-9b8ca7ead8.entry.js +1 -0
  244. package/dist/baloise-design-system/p-9d29364f13.entry.js +1 -0
  245. package/dist/baloise-design-system/p-9d3f19c6af.system.entry.js +1 -0
  246. package/dist/baloise-design-system/p-9f54cfc70b.entry.js +1 -0
  247. package/dist/baloise-design-system/p-9f83acd71d.entry.js +1 -0
  248. package/dist/baloise-design-system/p-a7d15ec66b.entry.js +1 -0
  249. package/dist/baloise-design-system/{p-333ef156.system.js → p-a898208e.system.js} +1 -1
  250. package/dist/baloise-design-system/p-ad58876e8c.entry.js +1 -0
  251. package/dist/baloise-design-system/p-ae2292f251.system.entry.js +1 -0
  252. package/dist/baloise-design-system/{p-c2de2596d1.system.entry.js → p-aebb3198c4.system.entry.js} +1 -1
  253. package/dist/baloise-design-system/{p-dfccf59e11.system.entry.js → p-af3fb420b3.system.entry.js} +1 -1
  254. package/dist/baloise-design-system/p-af4c6af2.js +1 -0
  255. package/dist/baloise-design-system/p-af5e974f4c.system.entry.js +1 -0
  256. package/dist/baloise-design-system/p-b0120babb2.entry.js +1 -0
  257. package/dist/baloise-design-system/{p-ae9b85f1.system.js → p-b0fd473a.system.js} +1 -1
  258. package/dist/baloise-design-system/p-b136739bec.entry.js +1 -0
  259. package/dist/baloise-design-system/p-b4ecd87960.system.entry.js +1 -0
  260. package/dist/baloise-design-system/p-b57c473d.system.js +1 -0
  261. package/dist/baloise-design-system/{p-45b4b4fcd6.system.entry.js → p-b8658ffb85.system.entry.js} +1 -1
  262. package/dist/baloise-design-system/p-b86876e144.entry.js +1 -0
  263. package/dist/baloise-design-system/p-ba9c735428.entry.js +1 -0
  264. package/dist/baloise-design-system/p-be61baa681.entry.js +1 -0
  265. package/dist/baloise-design-system/p-be6d3bde8f.entry.js +1 -0
  266. package/dist/baloise-design-system/{p-7957c3c0.system.js → p-bf139fe5.system.js} +1 -1
  267. package/dist/baloise-design-system/p-bf1b5db620.system.entry.js +1 -0
  268. package/dist/baloise-design-system/p-c045d5a57c.system.entry.js +1 -0
  269. package/dist/baloise-design-system/p-c2157cabd4.entry.js +1 -0
  270. package/dist/baloise-design-system/p-c416afcd52.entry.js +1 -0
  271. package/dist/baloise-design-system/{p-c7cdb944f3.system.entry.js → p-c589d05bc6.system.entry.js} +1 -1
  272. package/dist/baloise-design-system/{p-328e32e1.js → p-c61080a6.js} +1 -1
  273. package/dist/baloise-design-system/{p-014286df.system.js → p-c72bd76c.system.js} +1 -1
  274. package/dist/baloise-design-system/p-c7e93ad3c1.entry.js +1 -0
  275. package/dist/baloise-design-system/p-c7efc6d470.entry.js +1 -0
  276. package/dist/baloise-design-system/{p-81f848c6.js → p-c8caa835.js} +1 -1
  277. package/dist/baloise-design-system/p-c9dce0f3ea.system.entry.js +1 -0
  278. package/dist/baloise-design-system/p-cfd4370f6b.system.entry.js +1 -0
  279. package/dist/baloise-design-system/p-cfe42ac458.system.entry.js +1 -0
  280. package/dist/baloise-design-system/p-d0d162c677.system.entry.js +1 -0
  281. package/dist/baloise-design-system/{p-2e8b4edc.system.js → p-d1ec4d6e.system.js} +1 -1
  282. package/dist/baloise-design-system/{p-1509eaa7.system.js → p-d2f9ed2b.system.js} +1 -1
  283. package/dist/baloise-design-system/p-d404537f.system.js +1 -0
  284. package/dist/baloise-design-system/p-d532d41212.system.entry.js +1 -0
  285. package/dist/baloise-design-system/p-d67f7321.system.js +2 -0
  286. package/dist/baloise-design-system/p-d88acac29e.system.entry.js +1 -0
  287. package/dist/baloise-design-system/p-d97dc6a8.system.js +1 -0
  288. package/dist/baloise-design-system/{p-7662250151.system.entry.js → p-d9bb74c913.system.entry.js} +1 -1
  289. package/dist/baloise-design-system/p-dbc0b7c370.entry.js +1 -0
  290. package/dist/baloise-design-system/p-df907af8.system.js +1 -0
  291. package/dist/baloise-design-system/{p-15c5fe4d6d.system.entry.js → p-dfcca29bc9.system.entry.js} +1 -1
  292. package/dist/baloise-design-system/{p-f2e0ee98af.system.entry.js → p-e0e123ffec.system.entry.js} +1 -1
  293. package/dist/baloise-design-system/p-e1b2f86b.system.js +1 -0
  294. package/dist/baloise-design-system/{p-13c885d840.system.entry.js → p-e2ba4d18bc.system.entry.js} +1 -1
  295. package/dist/baloise-design-system/p-e3a563de25.system.entry.js +1 -0
  296. package/dist/baloise-design-system/p-e8f93d80ca.system.entry.js +1 -0
  297. package/dist/baloise-design-system/p-ec286609dd.entry.js +1 -0
  298. package/dist/baloise-design-system/p-ec4cf5cec6.entry.js +1 -0
  299. package/dist/baloise-design-system/p-edbd880ce1.entry.js +1 -0
  300. package/dist/baloise-design-system/p-ee3c7a38.system.js +1 -0
  301. package/dist/baloise-design-system/p-f1c41da029.entry.js +1 -0
  302. package/dist/baloise-design-system/p-f3ef269852.entry.js +1 -0
  303. package/dist/baloise-design-system/{p-d800ecde35.system.entry.js → p-f8d828383b.system.entry.js} +1 -1
  304. package/dist/baloise-design-system/p-fa363ba3f9.system.entry.js +1 -0
  305. package/dist/baloise-design-system/p-fa6b5cde.system.js +1 -0
  306. package/dist/baloise-design-system/p-faaf77375f.system.entry.js +1 -0
  307. package/dist/baloise-design-system/{p-ee9c988a19.system.entry.js → p-faf5c89145.system.entry.js} +1 -1
  308. package/dist/baloise-design-system/p-fd118a1752.system.entry.js +1 -0
  309. package/dist/cjs/{app-globals-ae3a8623.js → app-globals-f5a609c1.js} +1 -1
  310. package/dist/cjs/array-ae164ca3.js +22 -0
  311. package/dist/cjs/bal-accordion_4.cjs.entry.js +8 -10
  312. package/dist/cjs/bal-app.cjs.entry.js +12 -6
  313. package/dist/cjs/bal-badge.cjs.entry.js +2 -2
  314. package/dist/cjs/bal-button_2.cjs.entry.js +21 -5
  315. package/dist/cjs/bal-card_6.cjs.entry.js +8 -8
  316. package/dist/cjs/bal-carousel_2.cjs.entry.js +49 -17
  317. package/dist/cjs/bal-checkbox-button.cjs.entry.js +5 -5
  318. package/dist/cjs/bal-checkbox_2.cjs.entry.js +50 -11
  319. package/dist/cjs/bal-close.cjs.entry.js +2 -2
  320. package/dist/cjs/bal-content.cjs.entry.js +2 -2
  321. package/dist/cjs/bal-data_4.cjs.entry.js +5 -5
  322. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +4 -4
  323. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +55 -42
  324. package/dist/cjs/bal-date.cjs.entry.js +42 -15
  325. package/dist/cjs/bal-divider.cjs.entry.js +2 -2
  326. package/dist/cjs/bal-dropdown.cjs.entry.js +66 -41
  327. package/dist/cjs/bal-field_5.cjs.entry.js +11 -13
  328. package/dist/cjs/bal-file-upload.cjs.entry.js +17 -9
  329. package/dist/cjs/bal-footer.cjs.entry.js +200 -12
  330. package/dist/cjs/bal-form-col_2.cjs.entry.js +4 -4
  331. package/dist/cjs/bal-form.cjs.entry.js +3 -3
  332. package/dist/cjs/bal-heading_2.cjs.entry.js +4 -4
  333. package/dist/cjs/bal-hint_5.cjs.entry.js +45 -20
  334. package/dist/cjs/bal-icon.cjs.entry.js +14 -3
  335. package/dist/cjs/bal-input-group.cjs.entry.js +2 -2
  336. package/dist/cjs/bal-input-slider.cjs.entry.js +20 -6
  337. package/dist/cjs/bal-input-stepper.cjs.entry.js +21 -9
  338. package/dist/cjs/bal-input.cjs.entry.js +17 -4
  339. package/dist/cjs/bal-label.cjs.entry.js +2 -2
  340. package/dist/cjs/bal-list_8.cjs.entry.js +20 -22
  341. package/dist/cjs/bal-logo.cjs.entry.js +6 -6
  342. package/dist/cjs/bal-modal_3.cjs.entry.js +36 -10
  343. package/dist/cjs/bal-nav_8.cjs.entry.js +37 -18
  344. package/dist/cjs/bal-navbar_5.cjs.entry.js +11 -11
  345. package/dist/cjs/bal-notices_3.cjs.entry.js +5 -5
  346. package/dist/cjs/bal-notification.cjs.entry.js +2 -2
  347. package/dist/cjs/bal-number-input.cjs.entry.js +39 -43
  348. package/dist/cjs/bal-option_2.cjs.entry.js +25 -6
  349. package/dist/cjs/bal-pagination.cjs.entry.js +9 -9
  350. package/dist/cjs/bal-popup.cjs.entry.js +49 -16
  351. package/dist/cjs/bal-progress-bar.cjs.entry.js +7 -7
  352. package/dist/cjs/bal-radio-button.cjs.entry.js +5 -5
  353. package/dist/cjs/bal-radio_2.cjs.entry.js +45 -10
  354. package/dist/cjs/bal-segment_2.cjs.entry.js +29 -18
  355. package/dist/cjs/bal-select_2.cjs.entry.js +41 -20
  356. package/dist/cjs/bal-shape.cjs.entry.js +6 -6
  357. package/dist/cjs/bal-sheet.cjs.entry.js +2 -2
  358. package/dist/cjs/bal-spinner.cjs.entry.js +4 -4
  359. package/dist/cjs/bal-stack.cjs.entry.js +2 -2
  360. package/dist/cjs/bal-stage_6.cjs.entry.js +19 -8
  361. package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
  362. package/dist/cjs/bal-steps.cjs.entry.js +10 -9
  363. package/dist/cjs/bal-tab-item_2.cjs.entry.js +54 -27
  364. package/dist/cjs/bal-table.cjs.entry.js +2 -2
  365. package/dist/cjs/bal-tag_2.cjs.entry.js +3 -3
  366. package/dist/cjs/bal-textarea.cjs.entry.js +18 -4
  367. package/dist/cjs/bal-time-input.cjs.entry.js +19 -6
  368. package/dist/cjs/bal-tooltip.cjs.entry.js +17 -10
  369. package/dist/cjs/baloise-design-system.cjs.js +14 -14
  370. package/dist/cjs/{breakpoints.decorator-3e39d424.js → breakpoints.decorator-967c2fd2.js} +1 -1
  371. package/dist/cjs/{breakpoints.subject-04e46eae.js → breakpoints.subject-679bdc55.js} +2 -2
  372. package/dist/cjs/{date-20be7524.js → date-c2a815e4.js} +33 -2
  373. package/dist/cjs/{element-states.decorator-9ce5ff3b.js → element-states.decorator-5aa9bf46.js} +1 -1
  374. package/dist/cjs/floating-ui-9f03e1cf.js +28 -0
  375. package/dist/{esm/floating-ui.dom.esm-f1cf1077.js → cjs/floating-ui.dom.esm-2ece9686.js} +508 -1
  376. package/dist/cjs/{focus.decorator-afaf9ac4.js → focus.decorator-ec3a858c.js} +1 -1
  377. package/dist/cjs/{form-input-b61eb894.js → form-input-35653e8f.js} +1 -1
  378. package/dist/cjs/{helpers-2a8c8333.js → helpers-393c2183.js} +36 -2
  379. package/dist/cjs/index-3b7f8988.js +1860 -0
  380. package/dist/cjs/index-758765f7.js +560 -0
  381. package/dist/cjs/index-96c178a6.js +1689 -0
  382. package/dist/cjs/index.cjs.js +9 -13
  383. package/dist/cjs/{initialize-2a19d091.js → initialize-e7570bc6.js} +2 -2
  384. package/dist/cjs/keyboard.helpers-3c105b0c.js +73 -0
  385. package/dist/cjs/listen-b42a4134.js +60 -0
  386. package/dist/cjs/loader.cjs.js +6 -6
  387. package/dist/cjs/{mutation.decorator-af043b68.js → mutation.decorator-d2ce6c1a.js} +13 -11
  388. package/dist/cjs/number-111783eb.js +35 -0
  389. package/dist/cjs/{overlays-3e4cf786.js → overlays-e6d14274.js} +1 -1
  390. package/dist/cjs/{resize.decorator-ae91ead2.js → resize.decorator-981b6817.js} +1 -1
  391. package/dist/cjs/{swipe.decorator-5206d283.js → swipe.decorator-391a0941.js} +1 -1
  392. package/dist/cjs/{swipe.subject-4ec94271.js → swipe.subject-48bf62a1.js} +2 -2
  393. package/dist/cjs/{tokens.esm-c5d8ed82.js → tokens.esm-e4edac35.js} +1 -1
  394. package/dist/cjs/{window-resize.decorator-f34ad3f4.js → window-resize.decorator-bb2ea6d8.js} +1 -1
  395. package/dist/collection/collection-manifest.json +3 -9
  396. package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +1 -1
  397. package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +2 -2
  398. package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +1 -1
  399. package/dist/collection/components/bal-app/bal-app.css +1 -1
  400. package/dist/collection/components/bal-app/bal-app.js +10 -4
  401. package/dist/collection/components/bal-badge/bal-badge.js +1 -1
  402. package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +2 -2
  403. package/dist/collection/components/bal-button/bal-button.js +20 -11
  404. package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +1 -1
  405. package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +1 -1
  406. package/dist/collection/components/bal-card/bal-card-content/bal-card-content.js +1 -1
  407. package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +1 -1
  408. package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +1 -1
  409. package/dist/collection/components/bal-card/bal-card.js +2 -2
  410. package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +19 -4
  411. package/dist/collection/components/bal-carousel/bal-carousel.js +29 -21
  412. package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +1 -1
  413. package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +26 -28
  414. package/dist/collection/components/bal-checkbox/bal-checkbox.js +15 -17
  415. package/dist/collection/components/bal-close/bal-close.js +1 -1
  416. package/dist/collection/components/bal-content/bal-content.js +1 -1
  417. package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +1 -1
  418. package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +1 -1
  419. package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +1 -1
  420. package/dist/collection/components/bal-data/bal-data.js +1 -1
  421. package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +1 -1
  422. package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +1 -1
  423. package/dist/collection/components/bal-date/bal-date.js +37 -35
  424. package/dist/collection/components/bal-divider/bal-divider.js +1 -1
  425. package/dist/collection/components/bal-dropdown/bal-dropdown.js +44 -44
  426. package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +2 -2
  427. package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +1 -1
  428. package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +1 -1
  429. package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +2 -2
  430. package/dist/collection/components/bal-field/bal-field.js +2 -4
  431. package/dist/collection/components/bal-file-upload/bal-file-upload.js +12 -14
  432. package/dist/collection/components/bal-footer/bal-footer.js +4 -4
  433. package/dist/collection/components/bal-form/bal-form.js +1 -1
  434. package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +2 -2
  435. package/dist/collection/components/bal-form-grid/bal-form-grid.js +1 -1
  436. package/dist/collection/components/bal-heading/bal-heading.js +1 -1
  437. package/dist/collection/components/bal-hint/bal-hint-text/bal-hint-text.js +1 -1
  438. package/dist/collection/components/bal-hint/bal-hint-title/bal-hint-title.js +1 -1
  439. package/dist/collection/components/bal-icon/bal-icon.js +14 -2
  440. package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +15 -17
  441. package/dist/collection/components/bal-input/bal-input.js +14 -16
  442. package/dist/collection/components/bal-input-group/bal-input-group.js +1 -1
  443. package/dist/collection/components/bal-input-slider/bal-input-slider.js +17 -18
  444. package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +17 -19
  445. package/dist/collection/components/bal-label/bal-label.js +1 -1
  446. package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +3 -3
  447. package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +3 -3
  448. package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +2 -2
  449. package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +2 -2
  450. package/dist/collection/components/bal-list/bal-list-item-subtitle/bal-list-item-subtitle.js +1 -1
  451. package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +1 -1
  452. package/dist/collection/components/bal-list/bal-list.js +1 -1
  453. package/dist/collection/components/bal-logo/bal-logo.js +2 -2
  454. package/dist/collection/components/bal-modal/bal-modal-body/bal-modal-body.js +1 -1
  455. package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +1 -1
  456. package/dist/collection/components/bal-modal/bal-modal.js +31 -32
  457. package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +2 -2
  458. package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.js +1 -1
  459. package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +1 -1
  460. package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +1 -1
  461. package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +1 -1
  462. package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +1 -1
  463. package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.css +1 -1
  464. package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +8 -10
  465. package/dist/collection/components/bal-nav/bal-nav.js +15 -17
  466. package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +2 -2
  467. package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +1 -1
  468. package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +1 -1
  469. package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +1 -1
  470. package/dist/collection/components/bal-navbar/bal-navbar.js +1 -1
  471. package/dist/collection/components/bal-notices/bal-notices.js +2 -2
  472. package/dist/collection/components/bal-notification/bal-notification.js +1 -1
  473. package/dist/collection/components/bal-number-input/bal-number-input.js +14 -16
  474. package/dist/collection/components/bal-option/bal-option.js +8 -10
  475. package/dist/collection/components/bal-option-list/bal-option-list.js +14 -16
  476. package/dist/collection/components/bal-pagination/bal-pagination.js +4 -4
  477. package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +1 -1
  478. package/dist/collection/components/bal-popover/bal-popover.js +37 -39
  479. package/dist/collection/components/bal-popup/bal-popup.js +33 -35
  480. package/dist/collection/components/bal-popup/variants/popover-variant.renderer.js +12 -8
  481. package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +1 -1
  482. package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +1 -1
  483. package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +31 -33
  484. package/dist/collection/components/bal-radio/bal-radio.js +9 -11
  485. package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +1 -1
  486. package/dist/collection/components/bal-segment/bal-segment.js +15 -17
  487. package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +1 -1
  488. package/dist/collection/components/bal-select/bal-select.js +26 -27
  489. package/dist/collection/components/bal-shape/bal-shape.js +4 -4
  490. package/dist/collection/components/bal-sheet/bal-sheet.js +1 -1
  491. package/dist/collection/components/bal-snackbar/bal-snackbar.js +1 -1
  492. package/dist/collection/components/bal-spinner/bal-spinner.js +3 -3
  493. package/dist/collection/components/bal-stack/bal-stack.js +1 -1
  494. package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +2 -2
  495. package/dist/collection/components/bal-stage/bal-stage-body/bal-stage-body.js +1 -1
  496. package/dist/collection/components/bal-stage/bal-stage-foot/bal-stage-foot.js +1 -1
  497. package/dist/collection/components/bal-stage/bal-stage-head/bal-stage-head.js +1 -1
  498. package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +14 -1
  499. package/dist/collection/components/bal-stage/bal-stage.js +1 -1
  500. package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +2 -2
  501. package/dist/collection/components/bal-steps/bal-steps.js +1 -1
  502. package/dist/collection/components/bal-table/bal-table.js +1 -1
  503. package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +2 -2
  504. package/dist/collection/components/bal-tabs/bal-tabs.js +44 -38
  505. package/dist/collection/components/bal-tag/bal-tag-group/bal-tag-group.js +1 -1
  506. package/dist/collection/components/bal-tag/bal-tag.js +1 -1
  507. package/dist/collection/components/bal-text/bal-text.js +2 -2
  508. package/dist/collection/components/bal-textarea/bal-textarea.js +15 -16
  509. package/dist/collection/components/bal-time-input/bal-time-input.css +1 -1
  510. package/dist/collection/components/bal-time-input/bal-time-input.js +15 -17
  511. package/dist/collection/components/bal-toast/bal-toast.js +1 -1
  512. package/dist/collection/components/bal-tooltip/bal-tooltip.js +13 -9
  513. package/dist/collection/index.js +1 -2
  514. package/dist/collection/utils/array.js +17 -0
  515. package/dist/collection/utils/constants/version.constant.js +1 -1
  516. package/dist/collection/utils/date/date.helpers.js +30 -0
  517. package/dist/collection/utils/date/date.js +1 -1
  518. package/dist/collection/utils/date/index.js +1 -0
  519. package/dist/collection/utils/dropdown/auto-fill.js +1 -1
  520. package/dist/collection/utils/dropdown/icon.js +1 -1
  521. package/dist/collection/utils/dropdown/popup.js +9 -6
  522. package/dist/collection/utils/dropdown/value.js +1 -1
  523. package/dist/collection/utils/floating-ui.js +23 -0
  524. package/dist/collection/utils/helpers.js +41 -2
  525. package/dist/collection/utils/keyboard/index.js +1 -0
  526. package/dist/collection/utils/keyboard/keyboard.helpers.js +60 -0
  527. package/dist/collection/utils/listen.js +55 -0
  528. package/dist/collection/utils/mask/types/mask-date.js +1 -1
  529. package/dist/collection/utils/mutation/mutation.subject.js +13 -11
  530. package/dist/collection/utils/number.js +18 -10
  531. package/dist/collection/utils/swipe/swipe.listener.js +2 -2
  532. package/dist/esm/{app-globals-b0dd0fc4.js → app-globals-4d0448ee.js} +1 -1
  533. package/dist/esm/array-4c09dfe3.js +20 -0
  534. package/dist/esm/bal-accordion_4.entry.js +7 -9
  535. package/dist/esm/bal-app.entry.js +12 -6
  536. package/dist/esm/bal-badge.entry.js +2 -2
  537. package/dist/esm/bal-button_2.entry.js +21 -5
  538. package/dist/esm/bal-card_6.entry.js +8 -8
  539. package/dist/esm/bal-carousel_2.entry.js +49 -17
  540. package/dist/esm/bal-checkbox-button.entry.js +5 -5
  541. package/dist/esm/bal-checkbox_2.entry.js +46 -7
  542. package/dist/esm/bal-close.entry.js +2 -2
  543. package/dist/esm/bal-content.entry.js +2 -2
  544. package/dist/esm/bal-data_4.entry.js +5 -5
  545. package/dist/esm/bal-date-calendar-cell.entry.js +4 -4
  546. package/dist/esm/bal-date-calendar_2.entry.js +23 -10
  547. package/dist/esm/bal-date.entry.js +41 -14
  548. package/dist/esm/bal-divider.entry.js +2 -2
  549. package/dist/esm/bal-dropdown.entry.js +59 -34
  550. package/dist/esm/bal-field_5.entry.js +11 -13
  551. package/dist/esm/bal-file-upload.entry.js +16 -8
  552. package/dist/esm/bal-footer.entry.js +198 -10
  553. package/dist/esm/bal-form-col_2.entry.js +4 -4
  554. package/dist/esm/bal-form.entry.js +3 -3
  555. package/dist/esm/bal-heading_2.entry.js +4 -4
  556. package/dist/esm/bal-hint_5.entry.js +45 -20
  557. package/dist/esm/bal-icon.entry.js +14 -3
  558. package/dist/esm/bal-input-group.entry.js +2 -2
  559. package/dist/esm/bal-input-slider.entry.js +20 -6
  560. package/dist/esm/bal-input-stepper.entry.js +21 -9
  561. package/dist/esm/bal-input.entry.js +17 -4
  562. package/dist/esm/bal-label.entry.js +2 -2
  563. package/dist/esm/bal-list_8.entry.js +19 -21
  564. package/dist/esm/bal-logo.entry.js +6 -6
  565. package/dist/esm/bal-modal_3.entry.js +36 -10
  566. package/dist/esm/bal-nav_8.entry.js +37 -18
  567. package/dist/esm/bal-navbar_5.entry.js +11 -11
  568. package/dist/esm/bal-notices_3.entry.js +5 -5
  569. package/dist/esm/bal-notification.entry.js +2 -2
  570. package/dist/esm/bal-number-input.entry.js +20 -24
  571. package/dist/esm/bal-option_2.entry.js +25 -6
  572. package/dist/esm/bal-pagination.entry.js +9 -9
  573. package/dist/esm/bal-popup.entry.js +48 -15
  574. package/dist/esm/bal-progress-bar.entry.js +7 -7
  575. package/dist/esm/bal-radio-button.entry.js +5 -5
  576. package/dist/esm/bal-radio_2.entry.js +44 -9
  577. package/dist/esm/bal-segment_2.entry.js +24 -13
  578. package/dist/esm/bal-select_2.entry.js +31 -10
  579. package/dist/esm/bal-shape.entry.js +6 -6
  580. package/dist/esm/bal-sheet.entry.js +2 -2
  581. package/dist/esm/bal-spinner.entry.js +4 -4
  582. package/dist/esm/bal-stack.entry.js +2 -2
  583. package/dist/esm/bal-stage_6.entry.js +19 -8
  584. package/dist/esm/bal-step-item.entry.js +3 -3
  585. package/dist/esm/bal-steps.entry.js +9 -8
  586. package/dist/esm/bal-tab-item_2.entry.js +53 -26
  587. package/dist/esm/bal-table.entry.js +2 -2
  588. package/dist/esm/bal-tag_2.entry.js +3 -3
  589. package/dist/esm/bal-textarea.entry.js +18 -4
  590. package/dist/esm/bal-time-input.entry.js +19 -6
  591. package/dist/esm/bal-tooltip.entry.js +17 -10
  592. package/dist/esm/baloise-design-system.js +15 -15
  593. package/dist/esm/{breakpoints.decorator-f08ad280.js → breakpoints.decorator-9981606e.js} +1 -1
  594. package/dist/esm/{breakpoints.subject-d2b4fd79.js → breakpoints.subject-ae98d0fa.js} +2 -2
  595. package/dist/esm/{date-6e8f5617.js → date-3b88d03c.js} +32 -2
  596. package/dist/esm/{element-states.decorator-071e2b6b.js → element-states.decorator-0f2107d8.js} +1 -1
  597. package/dist/esm/floating-ui-82413f23.js +26 -0
  598. package/dist/{cjs/floating-ui.dom.esm-5dbdcff9.js → esm/floating-ui.dom.esm-8dcdb8d6.js} +493 -8
  599. package/dist/esm/{focus.decorator-8acd79c3.js → focus.decorator-dc333802.js} +1 -1
  600. package/dist/esm/{form-input-a8fdaaef.js → form-input-264ad739.js} +2 -2
  601. package/dist/esm/{helpers-c201154e.js → helpers-72ae7307.js} +35 -3
  602. package/dist/esm/index-5b1faf93.js +1658 -0
  603. package/dist/esm/index-95ee0c4b.js +1858 -0
  604. package/dist/esm/index-bba06972.js +558 -0
  605. package/dist/esm/index.js +10 -14
  606. package/dist/esm/{initialize-e216cfe4.js → initialize-f93872c4.js} +2 -2
  607. package/dist/esm/keyboard.helpers-b2dd6393.js +62 -0
  608. package/dist/esm/listen-d1712e70.js +58 -0
  609. package/dist/esm/loader.js +7 -7
  610. package/dist/esm/{mutation.decorator-c7b24839.js → mutation.decorator-985cc0a1.js} +13 -11
  611. package/dist/esm/number-54693efa.js +30 -0
  612. package/dist/esm/{overlays-9d49a4a5.js → overlays-73dcc4a8.js} +1 -1
  613. package/dist/esm/{resize.decorator-f70563b5.js → resize.decorator-f2d8461d.js} +1 -1
  614. package/dist/esm/{swipe.decorator-9d904794.js → swipe.decorator-56b6d574.js} +1 -1
  615. package/dist/esm/{swipe.subject-f1d64e8d.js → swipe.subject-683f7c7b.js} +2 -2
  616. package/dist/esm/{tokens.esm-cada8a2a.js → tokens.esm-ed9fb455.js} +1 -1
  617. package/dist/esm/{window-resize.decorator-6ef9be6a.js → window-resize.decorator-a88002f7.js} +1 -1
  618. package/dist/esm-es5/app-globals-4d0448ee.js +1 -0
  619. package/dist/esm-es5/array-4c09dfe3.js +1 -0
  620. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  621. package/dist/esm-es5/bal-app.entry.js +1 -1
  622. package/dist/esm-es5/bal-badge.entry.js +1 -1
  623. package/dist/esm-es5/bal-button_2.entry.js +1 -1
  624. package/dist/esm-es5/bal-card_6.entry.js +1 -1
  625. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  626. package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
  627. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  628. package/dist/esm-es5/bal-close.entry.js +1 -1
  629. package/dist/esm-es5/bal-content.entry.js +1 -1
  630. package/dist/esm-es5/bal-data_4.entry.js +1 -1
  631. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  632. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  633. package/dist/esm-es5/bal-date.entry.js +1 -1
  634. package/dist/esm-es5/bal-divider.entry.js +1 -1
  635. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  636. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  637. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  638. package/dist/esm-es5/bal-footer.entry.js +1 -1
  639. package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
  640. package/dist/esm-es5/bal-form.entry.js +1 -1
  641. package/dist/esm-es5/bal-heading_2.entry.js +1 -1
  642. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  643. package/dist/esm-es5/bal-icon.entry.js +1 -1
  644. package/dist/esm-es5/bal-input-group.entry.js +1 -1
  645. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  646. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  647. package/dist/esm-es5/bal-input.entry.js +1 -1
  648. package/dist/esm-es5/bal-label.entry.js +1 -1
  649. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  650. package/dist/esm-es5/bal-logo.entry.js +1 -1
  651. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  652. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  653. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  654. package/dist/esm-es5/bal-notices_3.entry.js +1 -1
  655. package/dist/esm-es5/bal-notification.entry.js +1 -1
  656. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  657. package/dist/esm-es5/bal-option_2.entry.js +1 -1
  658. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  659. package/dist/esm-es5/bal-popup.entry.js +1 -1
  660. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  661. package/dist/esm-es5/bal-radio-button.entry.js +1 -1
  662. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  663. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  664. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  665. package/dist/esm-es5/bal-shape.entry.js +1 -1
  666. package/dist/esm-es5/bal-sheet.entry.js +1 -1
  667. package/dist/esm-es5/bal-spinner.entry.js +1 -1
  668. package/dist/esm-es5/bal-stack.entry.js +1 -1
  669. package/dist/esm-es5/bal-stage_6.entry.js +1 -1
  670. package/dist/esm-es5/bal-step-item.entry.js +1 -1
  671. package/dist/esm-es5/bal-steps.entry.js +1 -1
  672. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  673. package/dist/esm-es5/bal-table.entry.js +1 -1
  674. package/dist/esm-es5/bal-tag_2.entry.js +1 -1
  675. package/dist/esm-es5/bal-textarea.entry.js +1 -1
  676. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  677. package/dist/esm-es5/bal-tooltip.entry.js +1 -1
  678. package/dist/esm-es5/baloise-design-system.js +1 -1
  679. package/dist/esm-es5/breakpoints.decorator-9981606e.js +1 -0
  680. package/dist/esm-es5/{breakpoints.subject-d2b4fd79.js → breakpoints.subject-ae98d0fa.js} +1 -1
  681. package/dist/esm-es5/date-3b88d03c.js +1 -0
  682. package/dist/esm-es5/{element-states.decorator-071e2b6b.js → element-states.decorator-0f2107d8.js} +1 -1
  683. package/dist/esm-es5/floating-ui-82413f23.js +1 -0
  684. package/dist/esm-es5/floating-ui.dom.esm-8dcdb8d6.js +1 -0
  685. package/dist/esm-es5/{focus.decorator-8acd79c3.js → focus.decorator-dc333802.js} +1 -1
  686. package/dist/esm-es5/{form-input-a8fdaaef.js → form-input-264ad739.js} +1 -1
  687. package/dist/esm-es5/helpers-72ae7307.js +1 -0
  688. package/dist/esm-es5/index-5b1faf93.js +2 -0
  689. package/dist/esm-es5/index-95ee0c4b.js +1 -0
  690. package/dist/esm-es5/index-bba06972.js +1 -0
  691. package/dist/esm-es5/index.js +1 -1
  692. package/dist/esm-es5/{initialize-e216cfe4.js → initialize-f93872c4.js} +1 -1
  693. package/dist/esm-es5/keyboard.helpers-b2dd6393.js +1 -0
  694. package/dist/esm-es5/listen-d1712e70.js +1 -0
  695. package/dist/esm-es5/loader.js +1 -1
  696. package/dist/esm-es5/mutation.decorator-985cc0a1.js +1 -0
  697. package/dist/esm-es5/number-54693efa.js +1 -0
  698. package/dist/esm-es5/{overlays-9d49a4a5.js → overlays-73dcc4a8.js} +1 -1
  699. package/dist/esm-es5/{resize.decorator-f70563b5.js → resize.decorator-f2d8461d.js} +1 -1
  700. package/dist/esm-es5/{swipe.decorator-9d904794.js → swipe.decorator-56b6d574.js} +1 -1
  701. package/dist/esm-es5/swipe.subject-683f7c7b.js +1 -0
  702. package/dist/esm-es5/{window-resize.decorator-6ef9be6a.js → window-resize.decorator-a88002f7.js} +1 -1
  703. package/dist/html.html-data.json +0 -83
  704. package/dist/types/components/bal-accordion/bal-accordion.interfaces.d.ts +0 -1
  705. package/dist/types/components/bal-app/bal-app.interfaces.d.ts +0 -1
  706. package/dist/types/components/bal-badge/bal-badge.interfaces.d.ts +0 -1
  707. package/dist/types/components/bal-button/bal-button.d.ts +2 -0
  708. package/dist/types/components/bal-button/bal-button.interfaces.d.ts +0 -1
  709. package/dist/types/components/bal-card/bal-card.interfaces.d.ts +0 -1
  710. package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +6 -0
  711. package/dist/types/components/bal-carousel/bal-carousel.d.ts +3 -0
  712. package/dist/types/components/bal-carousel/bal-carousel.interfaces.d.ts +0 -1
  713. package/dist/types/components/bal-checkbox/bal-checkbox.interfaces.d.ts +0 -1
  714. package/dist/types/components/bal-close/bal-close.interfaces.d.ts +0 -1
  715. package/dist/types/components/bal-content/bal-content.interfaces.d.ts +0 -1
  716. package/dist/types/components/bal-data/bal-data.interfaces.d.ts +0 -1
  717. package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.interfaces.d.ts +0 -1
  718. package/dist/types/components/bal-date/bal-date.interfaces.d.ts +0 -1
  719. package/dist/types/components/bal-divider/bal-divider.interfaces.d.ts +0 -1
  720. package/dist/types/components/bal-dropdown/bal-dropdown.d.ts +6 -4
  721. package/dist/types/components/bal-dropdown/bal-dropdown.interfaces.d.ts +0 -1
  722. package/dist/types/components/bal-field/bal-field.interfaces.d.ts +0 -1
  723. package/dist/types/components/bal-file-upload/bal-file-upload.interfaces.d.ts +0 -1
  724. package/dist/types/components/bal-form-grid/bal-form-gird.interfaces.d.ts +0 -1
  725. package/dist/types/components/bal-heading/bal-heading.interfaces.d.ts +0 -1
  726. package/dist/types/components/bal-icon/bal-icon.d.ts +6 -0
  727. package/dist/types/components/bal-icon/bal-icon.interfaces.d.ts +0 -1
  728. package/dist/types/components/bal-input/bal-input.interfaces.d.ts +0 -1
  729. package/dist/types/components/bal-input-slider/bal-input-slider.interfaces.d.ts +0 -1
  730. package/dist/types/components/bal-input-stepper/bal-input-stepper.interfaces.d.ts +0 -1
  731. package/dist/types/components/bal-label/bal-label.interfaces.d.ts +0 -1
  732. package/dist/types/components/bal-list/bal-list.interfaces.d.ts +0 -1
  733. package/dist/types/components/bal-logo/bal-logo.animation.d.ts +1 -1
  734. package/dist/types/components/bal-logo/bal-logo.interfaces.d.ts +0 -1
  735. package/dist/types/components/bal-modal/bal-modal.interfaces.d.ts +0 -1
  736. package/dist/types/components/bal-nav/bal-nav-link/bal-nav-link.interfaces.d.ts +0 -1
  737. package/dist/types/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.interfaces.d.ts +0 -1
  738. package/dist/types/components/bal-nav/bal-nav-link-group/bal-nav-link-group.interfaces.d.ts +0 -1
  739. package/dist/types/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.interfaces.d.ts +0 -1
  740. package/dist/types/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.interfaces.d.ts +0 -1
  741. package/dist/types/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.interfaces.d.ts +0 -1
  742. package/dist/types/components/bal-nav/bal-nav.interfaces.d.ts +0 -1
  743. package/dist/types/components/bal-navbar/bal-navbar.interfaces.d.ts +0 -1
  744. package/dist/types/components/bal-notification/bal-notification.interfaces.d.ts +0 -1
  745. package/dist/types/components/bal-number-input/bal-number-input.interfaces.d.ts +0 -1
  746. package/dist/types/components/bal-option/bal-option.interfaces.d.ts +0 -1
  747. package/dist/types/components/bal-option-list/bal-option-list.interfaces.d.ts +0 -1
  748. package/dist/types/components/bal-pagination/bal-pagination.interfaces.d.ts +0 -1
  749. package/dist/types/components/bal-popover/bal-popover.d.ts +1 -2
  750. package/dist/types/components/bal-popover/bal-popover.interfaces.d.ts +0 -1
  751. package/dist/types/components/bal-popup/bal-popup.interfaces.d.ts +0 -1
  752. package/dist/types/components/bal-progress-bar/bal-progress-bar.interfaces.d.ts +0 -1
  753. package/dist/types/components/bal-radio/bal-radio.interfaces.d.ts +0 -1
  754. package/dist/types/components/bal-segment/bal-segment.interfaces.d.ts +0 -1
  755. package/dist/types/components/bal-select/bal-select.d.ts +1 -1
  756. package/dist/types/components/bal-select/bal-select.interfaces.d.ts +0 -1
  757. package/dist/types/components/bal-select/utils/watch-options.d.ts +1 -1
  758. package/dist/types/components/bal-shape/bal-shape.interfaces.d.ts +0 -1
  759. package/dist/types/components/bal-sheet/bal-sheet.interfaces.d.ts +0 -1
  760. package/dist/types/components/bal-snackbar/bal-snackbar.interfaces.d.ts +0 -1
  761. package/dist/types/components/bal-spinner/bal-spinner.interfaces.d.ts +0 -1
  762. package/dist/types/components/bal-stack/bal-stack.interfaces.d.ts +0 -1
  763. package/dist/types/components/bal-stage/bal-stage-image/bal-stage-image.d.ts +2 -0
  764. package/dist/types/components/bal-stage/bal-stage.interfaces.d.ts +0 -1
  765. package/dist/types/components/bal-steps/bal-steps.interfaces.d.ts +0 -1
  766. package/dist/types/components/bal-tabs/bal-tabs.d.ts +2 -0
  767. package/dist/types/components/bal-tabs/bal-tabs.interfaces.d.ts +0 -1
  768. package/dist/types/components/bal-tag/bal-tag.interfaces.d.ts +0 -1
  769. package/dist/types/components/bal-text/bal-text.interfaces.d.ts +0 -1
  770. package/dist/types/components/bal-textarea/bal-textarea.interfaces.d.ts +0 -1
  771. package/dist/types/components/bal-time-input/bal-time-input.interfaces.d.ts +0 -1
  772. package/dist/types/components/bal-toast/bal-toast.d.ts +0 -1
  773. package/dist/types/components/bal-toast/bal-toast.interfaces.d.ts +0 -1
  774. package/dist/types/components/bal-tooltip/bal-tooltip.interfaces.d.ts +0 -1
  775. package/dist/types/components.d.ts +0 -227
  776. package/dist/types/index.d.ts +1 -2
  777. package/dist/types/interfaces.d.ts +0 -1
  778. package/dist/types/stencil-public-runtime.d.ts +9 -10
  779. package/dist/types/utils/array.d.ts +8 -0
  780. package/dist/types/utils/date/date.helpers.d.ts +9 -0
  781. package/dist/types/utils/date/index.d.ts +1 -0
  782. package/dist/types/utils/dropdown/popup.d.ts +2 -1
  783. package/dist/types/utils/floating-ui.d.ts +15 -0
  784. package/dist/types/utils/form-input.d.ts +1 -5
  785. package/dist/types/utils/helpers.d.ts +6 -0
  786. package/dist/types/utils/keyboard/index.d.ts +1 -0
  787. package/dist/types/utils/keyboard/keyboard.helpers.d.ts +40 -0
  788. package/dist/types/utils/legacy.d.ts +1 -1
  789. package/dist/types/utils/listen.d.ts +12 -0
  790. package/dist/types/utils/mask/__test__/mask-component.mock.d.ts +6 -6
  791. package/dist/types/utils/mask/__test__/mask.mock.d.ts +9 -9
  792. package/dist/types/utils/number.d.ts +3 -3
  793. package/loader/cdn.js +1 -2
  794. package/loader/index.cjs.js +1 -2
  795. package/loader/index.d.ts +3 -0
  796. package/loader/index.es2017.js +1 -2
  797. package/loader/index.js +1 -2
  798. package/package.json +9 -9
  799. package/components/bal-datepicker.d.ts +0 -11
  800. package/components/bal-datepicker.i18n.js +0 -74
  801. package/components/bal-datepicker.js +0 -1152
  802. package/components/index.esm.js +0 -7397
  803. package/dist/baloise-design-system/p-00014af866.system.entry.js +0 -1
  804. package/dist/baloise-design-system/p-004e4a0f4d.system.entry.js +0 -1
  805. package/dist/baloise-design-system/p-013b4c72.system.js +0 -1
  806. package/dist/baloise-design-system/p-09c9dcdf39.entry.js +0 -1
  807. package/dist/baloise-design-system/p-0f611b4158.system.entry.js +0 -1
  808. package/dist/baloise-design-system/p-10c13a369c.system.entry.js +0 -1
  809. package/dist/baloise-design-system/p-119b9e4909.entry.js +0 -1
  810. package/dist/baloise-design-system/p-16b1404ab3.system.entry.js +0 -1
  811. package/dist/baloise-design-system/p-1876e0cbba.entry.js +0 -1
  812. package/dist/baloise-design-system/p-26c8f676d0.system.entry.js +0 -1
  813. package/dist/baloise-design-system/p-2aa4f352d9.system.entry.js +0 -1
  814. package/dist/baloise-design-system/p-2b1171b384.entry.js +0 -1
  815. package/dist/baloise-design-system/p-2de8a7d2f2.entry.js +0 -1
  816. package/dist/baloise-design-system/p-2ea7550d1b.system.entry.js +0 -1
  817. package/dist/baloise-design-system/p-3231863d.js +0 -1
  818. package/dist/baloise-design-system/p-33028eda8b.entry.js +0 -1
  819. package/dist/baloise-design-system/p-360937c857.entry.js +0 -1
  820. package/dist/baloise-design-system/p-368bd6ac.system.js +0 -1
  821. package/dist/baloise-design-system/p-38e8a5093f.entry.js +0 -1
  822. package/dist/baloise-design-system/p-3b02994202.entry.js +0 -1
  823. package/dist/baloise-design-system/p-3b96381383.system.entry.js +0 -1
  824. package/dist/baloise-design-system/p-414d9ac8db.entry.js +0 -1
  825. package/dist/baloise-design-system/p-456fc561.system.js +0 -2
  826. package/dist/baloise-design-system/p-462b20f382.entry.js +0 -1
  827. package/dist/baloise-design-system/p-474fb49244.system.entry.js +0 -1
  828. package/dist/baloise-design-system/p-4ae121b6.js +0 -1
  829. package/dist/baloise-design-system/p-4b12d35824.entry.js +0 -1
  830. package/dist/baloise-design-system/p-4e05616242.entry.js +0 -1
  831. package/dist/baloise-design-system/p-4f083c5352.entry.js +0 -1
  832. package/dist/baloise-design-system/p-50b18f1f90.entry.js +0 -1
  833. package/dist/baloise-design-system/p-52351c7b9b.system.entry.js +0 -1
  834. package/dist/baloise-design-system/p-5b5d1c626d.system.entry.js +0 -1
  835. package/dist/baloise-design-system/p-5c0b0099.system.js +0 -1
  836. package/dist/baloise-design-system/p-5ef256a316.system.entry.js +0 -1
  837. package/dist/baloise-design-system/p-60e74d3515.system.entry.js +0 -1
  838. package/dist/baloise-design-system/p-6139ff78d7.system.entry.js +0 -1
  839. package/dist/baloise-design-system/p-619afa0ba5.system.entry.js +0 -1
  840. package/dist/baloise-design-system/p-635bc3259a.entry.js +0 -1
  841. package/dist/baloise-design-system/p-63c685b62d.entry.js +0 -1
  842. package/dist/baloise-design-system/p-648814edf8.entry.js +0 -1
  843. package/dist/baloise-design-system/p-648cafc450.entry.js +0 -1
  844. package/dist/baloise-design-system/p-663cc3242c.entry.js +0 -1
  845. package/dist/baloise-design-system/p-68828341e5.entry.js +0 -1
  846. package/dist/baloise-design-system/p-6a5d6e4680.entry.js +0 -1
  847. package/dist/baloise-design-system/p-6a8f612c6f.entry.js +0 -1
  848. package/dist/baloise-design-system/p-6aafd1a509.entry.js +0 -1
  849. package/dist/baloise-design-system/p-6c4b01f0a3.system.entry.js +0 -1
  850. package/dist/baloise-design-system/p-6c4b79bd09.entry.js +0 -1
  851. package/dist/baloise-design-system/p-6f18ca5500.entry.js +0 -1
  852. package/dist/baloise-design-system/p-6fb7d22ecb.system.entry.js +0 -1
  853. package/dist/baloise-design-system/p-73d0e3b2a7.system.entry.js +0 -1
  854. package/dist/baloise-design-system/p-749c516acc.system.entry.js +0 -1
  855. package/dist/baloise-design-system/p-760797ae02.system.entry.js +0 -1
  856. package/dist/baloise-design-system/p-7cd815d3e8.entry.js +0 -1
  857. package/dist/baloise-design-system/p-7d2709b193.system.entry.js +0 -1
  858. package/dist/baloise-design-system/p-7e54ecfcf8.system.entry.js +0 -1
  859. package/dist/baloise-design-system/p-8152631cd8.entry.js +0 -1
  860. package/dist/baloise-design-system/p-82333c3ce3.entry.js +0 -1
  861. package/dist/baloise-design-system/p-82afff07ac.system.entry.js +0 -1
  862. package/dist/baloise-design-system/p-82dea9a1e3.entry.js +0 -1
  863. package/dist/baloise-design-system/p-83c70a6b53.entry.js +0 -1
  864. package/dist/baloise-design-system/p-863d57eb.js +0 -1
  865. package/dist/baloise-design-system/p-87e2b8fad8.entry.js +0 -1
  866. package/dist/baloise-design-system/p-88f18fbc.js +0 -1
  867. package/dist/baloise-design-system/p-8954495d.system.js +0 -1
  868. package/dist/baloise-design-system/p-898f7862e4.entry.js +0 -1
  869. package/dist/baloise-design-system/p-8da6d9dae1.entry.js +0 -1
  870. package/dist/baloise-design-system/p-950dd794aa.system.entry.js +0 -1
  871. package/dist/baloise-design-system/p-959fc8c170.system.entry.js +0 -1
  872. package/dist/baloise-design-system/p-9e9e42ca3a.system.entry.js +0 -1
  873. package/dist/baloise-design-system/p-9f5eda0e22.entry.js +0 -1
  874. package/dist/baloise-design-system/p-a4dacc2d.system.js +0 -1
  875. package/dist/baloise-design-system/p-a7767b9500.system.entry.js +0 -1
  876. package/dist/baloise-design-system/p-a78d1ca569.system.entry.js +0 -1
  877. package/dist/baloise-design-system/p-a7fc2da7.system.js +0 -1
  878. package/dist/baloise-design-system/p-a8b35d33fe.entry.js +0 -1
  879. package/dist/baloise-design-system/p-ac24ebaa.system.js +0 -1
  880. package/dist/baloise-design-system/p-ac6d5570d8.system.entry.js +0 -1
  881. package/dist/baloise-design-system/p-b239069aea.entry.js +0 -1
  882. package/dist/baloise-design-system/p-b4c5b5e53f.entry.js +0 -1
  883. package/dist/baloise-design-system/p-b51665840d.entry.js +0 -1
  884. package/dist/baloise-design-system/p-b6624cd6f3.entry.js +0 -1
  885. package/dist/baloise-design-system/p-b7cef472.js +0 -1
  886. package/dist/baloise-design-system/p-b80d9e4d.js +0 -1
  887. package/dist/baloise-design-system/p-b87c29c80b.entry.js +0 -1
  888. package/dist/baloise-design-system/p-bcca1ed3.system.js +0 -1
  889. package/dist/baloise-design-system/p-bd5de78b2c.entry.js +0 -1
  890. package/dist/baloise-design-system/p-bd74623f0b.system.entry.js +0 -1
  891. package/dist/baloise-design-system/p-be366c8428.entry.js +0 -1
  892. package/dist/baloise-design-system/p-bffc03a66d.entry.js +0 -1
  893. package/dist/baloise-design-system/p-c442bb2db2.entry.js +0 -1
  894. package/dist/baloise-design-system/p-c4e11d3813.entry.js +0 -1
  895. package/dist/baloise-design-system/p-c539ee8edf.entry.js +0 -1
  896. package/dist/baloise-design-system/p-c64f74a007.entry.js +0 -1
  897. package/dist/baloise-design-system/p-c7338c255f.entry.js +0 -1
  898. package/dist/baloise-design-system/p-cb29a218db.entry.js +0 -1
  899. package/dist/baloise-design-system/p-cc0073c153.entry.js +0 -1
  900. package/dist/baloise-design-system/p-ce37dba1.js +0 -1
  901. package/dist/baloise-design-system/p-d14e28eb84.system.entry.js +0 -1
  902. package/dist/baloise-design-system/p-d5c02240d5.entry.js +0 -1
  903. package/dist/baloise-design-system/p-d7c752c6.js +0 -2
  904. package/dist/baloise-design-system/p-dbcf60eced.entry.js +0 -1
  905. package/dist/baloise-design-system/p-de69e6ded1.system.entry.js +0 -1
  906. package/dist/baloise-design-system/p-dec8453a4d.entry.js +0 -1
  907. package/dist/baloise-design-system/p-e088800e47.system.entry.js +0 -1
  908. package/dist/baloise-design-system/p-e6162b978e.entry.js +0 -1
  909. package/dist/baloise-design-system/p-e6f257c59c.entry.js +0 -1
  910. package/dist/baloise-design-system/p-e78a6409.js +0 -1
  911. package/dist/baloise-design-system/p-e7bcca66c5.system.entry.js +0 -1
  912. package/dist/baloise-design-system/p-e833841822.entry.js +0 -1
  913. package/dist/baloise-design-system/p-ec297b3c54.system.entry.js +0 -1
  914. package/dist/baloise-design-system/p-f00b5e9fa4.system.entry.js +0 -1
  915. package/dist/baloise-design-system/p-f0e432e19a.entry.js +0 -1
  916. package/dist/baloise-design-system/p-f22c8e0c59.entry.js +0 -1
  917. package/dist/baloise-design-system/p-f4e7616005.system.entry.js +0 -1
  918. package/dist/baloise-design-system/p-f8c5e9e7.system.js +0 -1
  919. package/dist/cjs/bal-datepicker.cjs.entry.js +0 -1071
  920. package/dist/cjs/bal-datepicker.i18n-8c3dd510.js +0 -76
  921. package/dist/cjs/index-219b2f52.js +0 -2521
  922. package/dist/cjs/index.esm-54a3d84e.js +0 -7429
  923. package/dist/collection/components/bal-date/utils/calendar.spec.js +0 -304
  924. package/dist/collection/components/bal-datepicker/bal-datepicker.css +0 -1
  925. package/dist/collection/components/bal-datepicker/bal-datepicker.i18n.js +0 -72
  926. package/dist/collection/components/bal-datepicker/bal-datepicker.interfaces.js +0 -4
  927. package/dist/collection/components/bal-datepicker/bal-datepicker.js +0 -1240
  928. package/dist/collection/components/bal-datepicker/bal-datepicker.type.js +0 -1
  929. package/dist/collection/components/bal-file-upload/test/file-validation.util.spec.js +0 -102
  930. package/dist/collection/components/bal-input/test/bal-input-util.spec.js +0 -141
  931. package/dist/collection/components/bal-number-input/bal-number-input.utils.spec.js +0 -402
  932. package/dist/collection/components/bal-pagination/bal-pagination.spec.js +0 -349
  933. package/dist/collection/components/bal-select/test/bal-select-utils.spec.js +0 -99
  934. package/dist/collection/components/bal-time-input/test/bal-time-input.util.spec.js +0 -27
  935. package/dist/collection/utils/date/date.spec.js +0 -137
  936. package/dist/collection/utils/form-input.spec.js +0 -30
  937. package/dist/collection/utils/mask/blocks/mask-block-list.spec.js +0 -73
  938. package/dist/collection/utils/mask/blocks/mask-blocks.spec.js +0 -48
  939. package/dist/collection/utils/mask/component/mask-component-adapter.spec.js +0 -192
  940. package/dist/collection/utils/mask/mask.spec.js +0 -332
  941. package/dist/collection/utils/mask/types/mask-date.spec.js +0 -48
  942. package/dist/collection/utils/string.spec.js +0 -24
  943. package/dist/esm/bal-datepicker.entry.js +0 -1067
  944. package/dist/esm/bal-datepicker.i18n-63a3cb67.js +0 -74
  945. package/dist/esm/index-b6003bc7.js +0 -2490
  946. package/dist/esm/index.esm-cc299511.js +0 -7397
  947. package/dist/esm-es5/app-globals-b0dd0fc4.js +0 -1
  948. package/dist/esm-es5/bal-datepicker.entry.js +0 -1
  949. package/dist/esm-es5/bal-datepicker.i18n-63a3cb67.js +0 -1
  950. package/dist/esm-es5/breakpoints.decorator-f08ad280.js +0 -1
  951. package/dist/esm-es5/date-6e8f5617.js +0 -1
  952. package/dist/esm-es5/floating-ui.dom.esm-f1cf1077.js +0 -1
  953. package/dist/esm-es5/helpers-c201154e.js +0 -1
  954. package/dist/esm-es5/index-b6003bc7.js +0 -2
  955. package/dist/esm-es5/index.esm-cc299511.js +0 -1
  956. package/dist/esm-es5/mutation.decorator-c7b24839.js +0 -1
  957. package/dist/esm-es5/swipe.subject-f1d64e8d.js +0 -1
  958. package/dist/types/components/bal-datepicker/bal-datepicker.d.ts +0 -221
  959. package/dist/types/components/bal-datepicker/bal-datepicker.i18n.d.ts +0 -10
  960. package/dist/types/components/bal-datepicker/bal-datepicker.interfaces.d.ts +0 -22
  961. package/dist/types/components/bal-datepicker/bal-datepicker.type.d.ts +0 -14
  962. /package/dist/baloise-design-system/{p-3486c48d.system.js → p-923b2e35.system.js} +0 -0
  963. /package/dist/baloise-design-system/{p-8088b32a.js → p-fc542e26.js} +0 -0
  964. /package/dist/esm-es5/{tokens.esm-cada8a2a.js → tokens.esm-ed9fb455.js} +0 -0
@@ -1,1067 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b6003bc7.js';
2
- import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
3
- import { k as rIC, m as debounceEvent } from './helpers-c201154e.js';
4
- import { i as inheritAttributes } from './attributes-4fa7040f.js';
5
- import { r as requiredArgs, t as toDate, b as toInteger, g as getDefaultOptions, p as parse, f as formatDateString, i as isValidIsoString, c as format, e as isSpaceKey, h as isEnterKey, d as dateSeparator, j as getYear, n as now, k as getMonth, m as getDate } from './index.esm-cc299511.js';
6
- import { l as lodash_isnil } from './index-82aff103.js';
7
- import { N as NUMBER_KEYS, A as ACTION_KEYS, i as isCtrlOrCommandKey } from './keys.constant-0eb059e0.js';
8
- import { i as i18nBalDatepicker } from './bal-datepicker.i18n-63a3cb67.js';
9
- import { s as stopEventBubbling, g as getInputTarget, i as inputHandleFocus, a as inputHandleHostClick, b as inputListenOnClick, c as inputSetFocus, d as inputSetBlur } from './form-input-a8fdaaef.js';
10
- import { p as preventDefault } from './utils-9fbab1d3.js';
11
- import { B as BEM } from './bem-8c7d2eb0.js';
12
- import { L as Logger } from './log-dfd1c19f.js';
13
- import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
14
- import { d as defaultConfig, a as defaultLocale } from './config.default-7efdc82d.js';
15
- import { b as balBreakpoints } from './breakpoints.subject-d2b4fd79.js';
16
- import { g as useBalConfig } from './config.utils-6ac6c9bd.js';
17
- import { L as ListenToBreakpoints } from './breakpoints.decorator-f08ad280.js';
18
- import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
19
- import './browser-a8073d92.js';
20
- import './icons.constant-a7885631.js';
21
- import './_commonjsHelpers-1c8beb5f.js';
22
- import './device-8c6d2881.js';
23
- import './listener-04842ae9.js';
24
- import './tokens.esm-cada8a2a.js';
25
-
26
- /**
27
- * @name addDays
28
- * @category Day Helpers
29
- * @summary Add the specified number of days to the given date.
30
- *
31
- * @description
32
- * Add the specified number of days to the given date.
33
- *
34
- * @param {Date|Number} date - the date to be changed
35
- * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
36
- * @returns {Date} - the new date with the days added
37
- * @throws {TypeError} - 2 arguments required
38
- *
39
- * @example
40
- * // Add 10 days to 1 September 2014:
41
- * const result = addDays(new Date(2014, 8, 1), 10)
42
- * //=> Thu Sep 11 2014 00:00:00
43
- */
44
- function addDays(dirtyDate, dirtyAmount) {
45
- requiredArgs(2, arguments);
46
- var date = toDate(dirtyDate);
47
- var amount = toInteger(dirtyAmount);
48
- if (isNaN(amount)) {
49
- return new Date(NaN);
50
- }
51
- if (!amount) {
52
- // If 0 days, no-op to avoid changing times in the hour before end of DST
53
- return date;
54
- }
55
- date.setDate(date.getDate() + amount);
56
- return date;
57
- }
58
-
59
- /**
60
- * @name addMonths
61
- * @category Month Helpers
62
- * @summary Add the specified number of months to the given date.
63
- *
64
- * @description
65
- * Add the specified number of months to the given date.
66
- *
67
- * @param {Date|Number} date - the date to be changed
68
- * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
69
- * @returns {Date} the new date with the months added
70
- * @throws {TypeError} 2 arguments required
71
- *
72
- * @example
73
- * // Add 5 months to 1 September 2014:
74
- * const result = addMonths(new Date(2014, 8, 1), 5)
75
- * //=> Sun Feb 01 2015 00:00:00
76
- */
77
- function addMonths(dirtyDate, dirtyAmount) {
78
- requiredArgs(2, arguments);
79
- var date = toDate(dirtyDate);
80
- var amount = toInteger(dirtyAmount);
81
- if (isNaN(amount)) {
82
- return new Date(NaN);
83
- }
84
- if (!amount) {
85
- // If 0 months, no-op to avoid changing times in the hour before end of DST
86
- return date;
87
- }
88
- var dayOfMonth = date.getDate();
89
-
90
- // The JS Date object supports date math by accepting out-of-bounds values for
91
- // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
92
- // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
93
- // want except that dates will wrap around the end of a month, meaning that
94
- // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
95
- // we'll default to the end of the desired month by adding 1 to the desired
96
- // month and using a date of 0 to back up one day to the end of the desired
97
- // month.
98
- var endOfDesiredMonth = new Date(date.getTime());
99
- endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
100
- var daysInMonth = endOfDesiredMonth.getDate();
101
- if (dayOfMonth >= daysInMonth) {
102
- // If we're already at the end of the month, then this is the correct date
103
- // and we're done.
104
- return endOfDesiredMonth;
105
- } else {
106
- // Otherwise, we now know that setting the original day-of-month value won't
107
- // cause an overflow, so set the desired day-of-month. Note that we can't
108
- // just set the date of `endOfDesiredMonth` because that object may have had
109
- // its time changed in the unusual case where where a DST transition was on
110
- // the last day of the month and its local time was in the hour skipped or
111
- // repeated next to a DST transition. So we use `date` instead which is
112
- // guaranteed to still have the original time.
113
- date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
114
- return date;
115
- }
116
- }
117
-
118
- /**
119
- * @name startOfWeek
120
- * @category Week Helpers
121
- * @summary Return the start of a week for the given date.
122
- *
123
- * @description
124
- * Return the start of a week for the given date.
125
- * The result will be in the local timezone.
126
- *
127
- * @param {Date|Number} date - the original date
128
- * @param {Object} [options] - an object with options.
129
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
130
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
131
- * @returns {Date} the start of a week
132
- * @throws {TypeError} 1 argument required
133
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
134
- *
135
- * @example
136
- * // The start of a week for 2 September 2014 11:55:00:
137
- * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
138
- * //=> Sun Aug 31 2014 00:00:00
139
- *
140
- * @example
141
- * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
142
- * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
143
- * //=> Mon Sep 01 2014 00:00:00
144
- */
145
- function startOfWeek(dirtyDate, options) {
146
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
147
- requiredArgs(1, arguments);
148
- var defaultOptions = getDefaultOptions();
149
- var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
150
-
151
- // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
152
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
153
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
154
- }
155
- var date = toDate(dirtyDate);
156
- var day = date.getDay();
157
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
158
- date.setDate(date.getDate() - diff);
159
- date.setHours(0, 0, 0, 0);
160
- return date;
161
- }
162
-
163
- /**
164
- * @name startOfDay
165
- * @category Day Helpers
166
- * @summary Return the start of a day for the given date.
167
- *
168
- * @description
169
- * Return the start of a day for the given date.
170
- * The result will be in the local timezone.
171
- *
172
- * @param {Date|Number} date - the original date
173
- * @returns {Date} the start of a day
174
- * @throws {TypeError} 1 argument required
175
- *
176
- * @example
177
- * // The start of a day for 2 September 2014 11:55:00:
178
- * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
179
- * //=> Tue Sep 02 2014 00:00:00
180
- */
181
- function startOfDay(dirtyDate) {
182
- requiredArgs(1, arguments);
183
- var date = toDate(dirtyDate);
184
- date.setHours(0, 0, 0, 0);
185
- return date;
186
- }
187
-
188
- /**
189
- * @name addYears
190
- * @category Year Helpers
191
- * @summary Add the specified number of years to the given date.
192
- *
193
- * @description
194
- * Add the specified number of years to the given date.
195
- *
196
- * @param {Date|Number} date - the date to be changed
197
- * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
198
- * @returns {Date} the new date with the years added
199
- * @throws {TypeError} 2 arguments required
200
- *
201
- * @example
202
- * // Add 5 years to 1 September 2014:
203
- * const result = addYears(new Date(2014, 8, 1), 5)
204
- * //=> Sun Sep 01 2019 00:00:00
205
- */
206
- function addYears(dirtyDate, dirtyAmount) {
207
- requiredArgs(2, arguments);
208
- var amount = toInteger(dirtyAmount);
209
- return addMonths(dirtyDate, amount * 12);
210
- }
211
-
212
- /**
213
- * @name isSameDay
214
- * @category Day Helpers
215
- * @summary Are the given dates in the same day (and year and month)?
216
- *
217
- * @description
218
- * Are the given dates in the same day (and year and month)?
219
- *
220
- * @param {Date|Number} dateLeft - the first date to check
221
- * @param {Date|Number} dateRight - the second date to check
222
- * @returns {Boolean} the dates are in the same day (and year and month)
223
- * @throws {TypeError} 2 arguments required
224
- *
225
- * @example
226
- * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
227
- * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
228
- * //=> true
229
- *
230
- * @example
231
- * // Are 4 September and 4 October in the same day?
232
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
233
- * //=> false
234
- *
235
- * @example
236
- * // Are 4 September, 2014 and 4 September, 2015 in the same day?
237
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
238
- * //=> false
239
- */
240
- function isSameDay(dirtyDateLeft, dirtyDateRight) {
241
- requiredArgs(2, arguments);
242
- var dateLeftStartOfDay = startOfDay(dirtyDateLeft);
243
- var dateRightStartOfDay = startOfDay(dirtyDateRight);
244
- return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
245
- }
246
-
247
- /**
248
- * @name lastDayOfMonth
249
- * @category Month Helpers
250
- * @summary Return the last day of a month for the given date.
251
- *
252
- * @description
253
- * Return the last day of a month for the given date.
254
- * The result will be in the local timezone.
255
- *
256
- * @param {Date|Number} date - the original date
257
- * @returns {Date} the last day of a month
258
- * @throws {TypeError} 1 argument required
259
- *
260
- * @example
261
- * // The last day of a month for 2 September 2014 11:55:00:
262
- * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0))
263
- * //=> Tue Sep 30 2014 00:00:00
264
- */
265
- function lastDayOfMonth(dirtyDate) {
266
- requiredArgs(1, arguments);
267
- var date = toDate(dirtyDate);
268
- var month = date.getMonth();
269
- date.setFullYear(date.getFullYear(), month + 1, 0);
270
- date.setHours(0, 0, 0, 0);
271
- return date;
272
- }
273
-
274
- /**
275
- * @name isAfter
276
- * @category Common Helpers
277
- * @summary Is the first date after the second one?
278
- *
279
- * @description
280
- * Is the first date after the second one?
281
- *
282
- * @param {Date|Number} date - the date that should be after the other one to return true
283
- * @param {Date|Number} dateToCompare - the date to compare with
284
- * @returns {Boolean} the first date is after the second date
285
- * @throws {TypeError} 2 arguments required
286
- *
287
- * @example
288
- * // Is 10 July 1989 after 11 February 1987?
289
- * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
290
- * //=> true
291
- */
292
- function isAfter(dirtyDate, dirtyDateToCompare) {
293
- requiredArgs(2, arguments);
294
- var date = toDate(dirtyDate);
295
- var dateToCompare = toDate(dirtyDateToCompare);
296
- return date.getTime() > dateToCompare.getTime();
297
- }
298
-
299
- /**
300
- * @name isBefore
301
- * @category Common Helpers
302
- * @summary Is the first date before the second one?
303
- *
304
- * @description
305
- * Is the first date before the second one?
306
- *
307
- * @param {Date|Number} date - the date that should be before the other one to return true
308
- * @param {Date|Number} dateToCompare - the date to compare with
309
- * @returns {Boolean} the first date is before the second date
310
- * @throws {TypeError} 2 arguments required
311
- *
312
- * @example
313
- * // Is 10 July 1989 before 11 February 1987?
314
- * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
315
- * //=> false
316
- */
317
- function isBefore(dirtyDate, dirtyDateToCompare) {
318
- requiredArgs(2, arguments);
319
- var date = toDate(dirtyDate);
320
- var dateToCompare = toDate(dirtyDateToCompare);
321
- return date.getTime() < dateToCompare.getTime();
322
- }
323
-
324
- /**
325
- * @name isSameWeek
326
- * @category Week Helpers
327
- * @summary Are the given dates in the same week (and month and year)?
328
- *
329
- * @description
330
- * Are the given dates in the same week (and month and year)?
331
- *
332
- * @param {Date|Number} dateLeft - the first date to check
333
- * @param {Date|Number} dateRight - the second date to check
334
- * @param {Object} [options] - an object with options.
335
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
336
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
337
- * @returns {Boolean} the dates are in the same week (and month and year)
338
- * @throws {TypeError} 2 arguments required
339
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
340
- *
341
- * @example
342
- * // Are 31 August 2014 and 4 September 2014 in the same week?
343
- * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))
344
- * //=> true
345
- *
346
- * @example
347
- * // If week starts with Monday,
348
- * // are 31 August 2014 and 4 September 2014 in the same week?
349
- * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {
350
- * weekStartsOn: 1
351
- * })
352
- * //=> false
353
- *
354
- * @example
355
- * // Are 1 January 2014 and 1 January 2015 in the same week?
356
- * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))
357
- * //=> false
358
- */
359
- function isSameWeek(dirtyDateLeft, dirtyDateRight, options) {
360
- requiredArgs(2, arguments);
361
- var dateLeftStartOfWeek = startOfWeek(dirtyDateLeft, options);
362
- var dateRightStartOfWeek = startOfWeek(dirtyDateRight, options);
363
- return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();
364
- }
365
-
366
- /**
367
- * @name isSameMonth
368
- * @category Month Helpers
369
- * @summary Are the given dates in the same month (and year)?
370
- *
371
- * @description
372
- * Are the given dates in the same month (and year)?
373
- *
374
- * @param {Date|Number} dateLeft - the first date to check
375
- * @param {Date|Number} dateRight - the second date to check
376
- * @returns {Boolean} the dates are in the same month (and year)
377
- * @throws {TypeError} 2 arguments required
378
- *
379
- * @example
380
- * // Are 2 September 2014 and 25 September 2014 in the same month?
381
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
382
- * //=> true
383
- *
384
- * @example
385
- * // Are 2 September 2014 and 25 September 2015 in the same month?
386
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
387
- * //=> false
388
- */
389
- function isSameMonth(dirtyDateLeft, dirtyDateRight) {
390
- requiredArgs(2, arguments);
391
- var dateLeft = toDate(dirtyDateLeft);
392
- var dateRight = toDate(dirtyDateRight);
393
- return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();
394
- }
395
-
396
- /**
397
- * @name isWithinInterval
398
- * @category Interval Helpers
399
- * @summary Is the given date within the interval?
400
- *
401
- * @description
402
- * Is the given date within the interval? (Including start and end.)
403
- *
404
- * @param {Date|Number} date - the date to check
405
- * @param {Interval} interval - the interval to check
406
- * @returns {Boolean} the date is within the interval
407
- * @throws {TypeError} 2 arguments required
408
- * @throws {RangeError} The start of an interval cannot be after its end
409
- * @throws {RangeError} Date in interval cannot be `Invalid Date`
410
- *
411
- * @example
412
- * // For the date within the interval:
413
- * isWithinInterval(new Date(2014, 0, 3), {
414
- * start: new Date(2014, 0, 1),
415
- * end: new Date(2014, 0, 7)
416
- * })
417
- * //=> true
418
- *
419
- * @example
420
- * // For the date outside of the interval:
421
- * isWithinInterval(new Date(2014, 0, 10), {
422
- * start: new Date(2014, 0, 1),
423
- * end: new Date(2014, 0, 7)
424
- * })
425
- * //=> false
426
- *
427
- * @example
428
- * // For date equal to interval start:
429
- * isWithinInterval(date, { start, end: date }) // => true
430
- *
431
- * @example
432
- * // For date equal to interval end:
433
- * isWithinInterval(date, { start: date, end }) // => true
434
- */
435
- function isWithinInterval(dirtyDate, interval) {
436
- requiredArgs(2, arguments);
437
- var time = toDate(dirtyDate).getTime();
438
- var startTime = toDate(interval.start).getTime();
439
- var endTime = toDate(interval.end).getTime();
440
-
441
- // Throw an exception if start date is after end date or if any date is `Invalid Date`
442
- if (!(startTime <= endTime)) {
443
- throw new RangeError('Invalid interval');
444
- }
445
- return time >= startTime && time <= endTime;
446
- }
447
-
448
- /**
449
- * @name subDays
450
- * @category Day Helpers
451
- * @summary Subtract the specified number of days from the given date.
452
- *
453
- * @description
454
- * Subtract the specified number of days from the given date.
455
- *
456
- * @param {Date|Number} date - the date to be changed
457
- * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
458
- * @returns {Date} the new date with the days subtracted
459
- * @throws {TypeError} 2 arguments required
460
- *
461
- * @example
462
- * // Subtract 10 days from 1 September 2014:
463
- * const result = subDays(new Date(2014, 8, 1), 10)
464
- * //=> Fri Aug 22 2014 00:00:00
465
- */
466
- function subDays(dirtyDate, dirtyAmount) {
467
- requiredArgs(2, arguments);
468
- var amount = toInteger(dirtyAmount);
469
- return addDays(dirtyDate, -amount);
470
- }
471
-
472
- /**
473
- * @name subYears
474
- * @category Year Helpers
475
- * @summary Subtract the specified number of years from the given date.
476
- *
477
- * @description
478
- * Subtract the specified number of years from the given date.
479
- *
480
- * @param {Date|Number} date - the date to be changed
481
- * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
482
- * @returns {Date} the new date with the years subtracted
483
- * @throws {TypeError} 2 arguments required
484
- *
485
- * @example
486
- * // Subtract 5 years from 1 September 2014:
487
- * const result = subYears(new Date(2014, 8, 1), 5)
488
- * //=> Tue Sep 01 2009 00:00:00
489
- */
490
- function subYears(dirtyDate, dirtyAmount) {
491
- requiredArgs(2, arguments);
492
- var amount = toInteger(dirtyAmount);
493
- return addYears(dirtyDate, -amount);
494
- }
495
-
496
- const balDatepickerCss = ":root{--bal-datepicker-popover-background:var(--bal-color-grey-2);--bal-datepicker-cell-background:var(--bal-color-white);--bal-datepicker-cell-selected-background:var(--bal-color-primary);--bal-datepicker-cell-selected-today-background:var(--bal-color-white);--bal-datepicker-cell-today-background:var(--bal-color-primary);--bal-datepicker-cell-today-radius:var(--bal-radius-rounded)}.bal-datepicker{display:block;font-family:var(--bal-font-family-text);width:100%}.bal-datepicker__native{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}.bal-datepicker__popup{padding:1rem;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--bal-datepicker-popover-background)}@media screen and (min-width: 769px),print{.bal-datepicker__popup{max-width:24.5rem}}.bal-datepicker__popup__body{max-width:22.5rem;margin:0 auto 0 auto;margin-top:.75rem}.bal-datepicker-pagination{max-width:22.5rem;margin:0 auto 0 auto}.bal-datepicker-pagination__inner{display:-ms-flexbox;display:flex;gap:.5rem}.bal-datepicker-pagination__month-and-year{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;gap:.5rem}.bal-datepicker-pagination__month-and-year__select{-ms-flex:1;flex:1}.bal-datepicker-pagination__month-and-year__select .select,.bal-datepicker-pagination__month-and-year__select .select select{padding-top:0 !important;padding-bottom:0 !important;text-align:center !important;min-height:2rem !important;height:2rem !important}@media screen and (min-width: 769px),print{.bal-datepicker-pagination__month-and-year__select .select,.bal-datepicker-pagination__month-and-year__select .select select{min-height:3rem !important;height:3rem !important}}.bal-datepicker-grid{display:table;border-collapse:collapse;width:100%;table-layout:fixed}.bal-datepicker-grid__body{display:table-row-group}.bal-datepicker-grid__row{display:table-row}.bal-datepicker-grid__row .bal-datepicker-grid__cell{margin-bottom:.25rem;margin-right:.25rem}.bal-datepicker-grid__row:last-child .bal-datepicker-grid__cell{margin-bottom:0}.bal-datepicker-grid__header{display:-ms-flexbox;display:flex;max-width:22.5rem;margin:0 auto 0 auto;gap:.25rem}.bal-datepicker-grid__header .bal-datepicker-grid__cell{background:rgba(0,0,0,0)}.bal-datepicker-grid__header .bal-datepicker-grid__cell span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;width:100%}.bal-datepicker-grid__cell{position:relative;text-align:center;vertical-align:middle;display:table-cell;width:13%;padding:0 !important;height:3rem;min-height:3rem;min-width:2.25rem;-webkit-appearance:auto !important;-moz-appearance:auto !important;appearance:auto !important;background:var(--bal-datepicker-cell-background)}.bal-datepicker-grid__cell--selected{background:var(--bal-datepicker-cell-selected-background) !important}.bal-datepicker-grid__cell--today:not(.bal-datepicker-grid__cell--outdated)>span{font-weight:var(--bal-font-weight-bold)}.bal-datepicker-grid__cell--today:not(.bal-datepicker-grid__cell--outdated)::after{content:\"\";position:absolute;display:block;width:.25rem;height:.25rem;background:var(--bal-datepicker-cell-today-background);border-radius:var(--bal-datepicker-cell-today-radius);margin-left:-2px;left:50%;bottom:.375rem}.bal-datepicker-grid__cell--today.bal-datepicker-grid__cell--selected:not(.bal-datepicker-grid__cell--outdated)::after{background:var(--bal-datepicker-cell-selected-today-background)}.bal-datepicker-grid__cell:last-child{margin-right:0}.bal-datepicker-grid__cell>span{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular)}@media screen and (min-width: 769px),print{.bal-datepicker-grid__cell{min-width:3rem !important}}.bal-datepicker-grid__cell--disabled{border-color:rgba(0,0,0,0) !important;background:rgba(0,0,0,0) !important}.bal-datepicker-grid__cell--header>span{border:none;background:rgba(0,0,0,0);color:var(--bal-color-text-primary);font-weight:var(--bal-font-weight-bold);cursor:default}";
497
- const BalDatepickerStyle0 = balDatepickerCss;
498
-
499
- const Datepicker = class {
500
- constructor(hostRef) {
501
- registerInstance(this, hostRef);
502
- this.balChange = createEvent(this, "balChange", 7);
503
- this.balInput = createEvent(this, "balInput", 7);
504
- this.balBlur = createEvent(this, "balBlur", 7);
505
- this.balFocus = createEvent(this, "balFocus", 7);
506
- this.balInputClick = createEvent(this, "balInputClick", 7);
507
- this.balIconClick = createEvent(this, "balIconClick", 7);
508
- this.inputId = `bal-dp-${datepickerIds++}`;
509
- this.inheritedAttributes = {};
510
- this.inputValue = this.value;
511
- this.onIconClick = (ev) => {
512
- if (!this.disabled && !this.readonly) {
513
- this.popoverElement.toggle();
514
- }
515
- stopEventBubbling(ev);
516
- this.balIconClick.emit(ev);
517
- };
518
- this.onInputClick = (ev) => {
519
- if (!this.triggerIcon && !this.disabled && !this.readonly) {
520
- this.popoverElement.toggle();
521
- }
522
- stopEventBubbling(ev);
523
- if (!this.triggerIcon) {
524
- this.balInputClick.emit(ev);
525
- }
526
- };
527
- this.onPopoverChange = (ev) => {
528
- stopEventBubbling(ev);
529
- if (this.isPopoverOpen !== ev.detail) {
530
- this.isPopoverOpen = ev.detail;
531
- this.fireBlur(ev);
532
- }
533
- };
534
- this.onInput = (ev) => {
535
- const input = getInputTarget(ev);
536
- if (input) {
537
- this.inputValue = input.value;
538
- if (input.value) {
539
- this.nativeInput.value = this.formatDate(this.inputValue);
540
- }
541
- if (this.inputValue && this.inputValue.length >= 6) {
542
- const date = parse(this.inputValue, this.getLocale());
543
- const dateString = formatDateString(date);
544
- if (isValidIsoString(dateString)) {
545
- this.selectedDate = dateString;
546
- this.updatePointerDates();
547
- }
548
- }
549
- }
550
- this.balInput.emit(this.inputValue);
551
- };
552
- this.onInputChange = (ev) => {
553
- const inputValue = ev.target.value;
554
- const date = parse(inputValue, this.getLocale());
555
- const dateString = formatDateString(date);
556
- const formattedValue = format(this.getLocale(), date);
557
- this.nativeInput.value = formattedValue;
558
- this.updateValue(dateString);
559
- this.updatePointerDates();
560
- };
561
- this.onClickDateCell = (cell) => {
562
- if (!cell.isDisabled) {
563
- this.select(cell.dateString);
564
- }
565
- };
566
- this.onInputKeyUp = (ev) => {
567
- if (isSpaceKey(ev) && !this.triggerIcon) {
568
- if (this.isPopoverOpen) {
569
- this.close();
570
- }
571
- else {
572
- this.open();
573
- }
574
- }
575
- if (isEnterKey(ev) && !this.triggerIcon) {
576
- const date = parse(this.nativeInput.value, this.getLocale());
577
- const dateString = formatDateString(date);
578
- if (this.isPopoverOpen) {
579
- if (this.value === dateString) {
580
- this.close();
581
- }
582
- }
583
- }
584
- };
585
- this.onInputKeyDown = (ev) => {
586
- const separator = dateSeparator(this.getLocale());
587
- const allowedKeys = [...NUMBER_KEYS, separator, ...ACTION_KEYS];
588
- if (!isCtrlOrCommandKey(ev) && allowedKeys.indexOf(ev.key) < 0) {
589
- ev.preventDefault();
590
- ev.stopPropagation();
591
- }
592
- if (ev.key === 'Tab') {
593
- this.close();
594
- }
595
- };
596
- this.onMonthSelect = (ev) => {
597
- const inputValue = ev.target.value;
598
- this.pointerDate = Object.assign(Object.assign({}, this.pointerDate), { day: 1, month: parseInt(inputValue, 10) });
599
- };
600
- this.onYearSelect = (ev) => {
601
- const inputValue = ev.target.value;
602
- const yearValue = parseInt(inputValue, 10);
603
- let month = undefined;
604
- if (this.defaultDate) {
605
- const defaultDate = parse(this.defaultDate);
606
- if (this.max) {
607
- const maxDate = parse(this.max);
608
- if (defaultDate.getMonth() > maxDate.getMonth()) {
609
- month = maxDate.getMonth();
610
- }
611
- }
612
- if (this.min) {
613
- const minDate = parse(this.min);
614
- if (defaultDate.getMonth() < minDate.getMonth()) {
615
- month = minDate.getMonth();
616
- }
617
- }
618
- }
619
- this.pointerDate = {
620
- day: 1,
621
- year: yearValue,
622
- month: month !== undefined ? month : this.pointerDate.month,
623
- };
624
- };
625
- this.onInputFocus = (ev) => inputHandleFocus(this, ev);
626
- this.onInputBlur = (ev) => {
627
- preventDefault(ev);
628
- this.focused = false;
629
- this.fireBlur(ev);
630
- };
631
- this.fireBlur = (ev) => {
632
- if (!this.isPopoverOpen && !this.focused) {
633
- rIC(() => this.balBlur.emit(ev));
634
- }
635
- };
636
- this.handleClick = (ev) => inputHandleHostClick(this, ev);
637
- this.language = defaultConfig.language;
638
- this.region = defaultConfig.region;
639
- this.isMobile = balBreakpoints.isMobile;
640
- this.focused = false;
641
- this.isPopoverOpen = false;
642
- this.selectedDate = '';
643
- this.pointerDate = {
644
- year: getYear(now()),
645
- month: getMonth(now()),
646
- day: getDate(now()),
647
- };
648
- this.ariaForm = defaultBalAriaForm;
649
- this.name = this.inputId;
650
- this.invalid = false;
651
- this.required = false;
652
- this.disabled = false;
653
- this.readonly = false;
654
- this.loading = false;
655
- this.placeholder = undefined;
656
- this.min = undefined;
657
- this.max = undefined;
658
- this.closeOnSelect = true;
659
- this.triggerIcon = false;
660
- this.minYearProp = undefined;
661
- this.maxYearProp = undefined;
662
- this.debounce = 0;
663
- this.defaultDate = undefined;
664
- this.value = undefined;
665
- this.allowedDates = undefined;
666
- this.autoInvalidOff = false;
667
- }
668
- createLogger(log) {
669
- this.log = log;
670
- }
671
- debounceChanged() {
672
- this.balChange = debounceEvent(this.balChange, this.debounce);
673
- }
674
- /**
675
- * Update the native input element when the value changes
676
- */
677
- valueChanged() {
678
- this.selectedDate = this.value;
679
- this.updatePointerDates();
680
- }
681
- listenOnClick(ev) {
682
- inputListenOnClick(this, ev);
683
- }
684
- resetHandler(ev) {
685
- const formElement = ev.target;
686
- if (formElement === null || formElement === void 0 ? void 0 : formElement.contains(this.el)) {
687
- if (this.resetHandlerTimer) {
688
- clearTimeout(this.resetHandlerTimer);
689
- }
690
- this.resetHandlerTimer = setTimeout(() => {
691
- if (this.initialValue) {
692
- this.nativeInput.value = format(this.getLocale(), parse(this.initialValue));
693
- }
694
- else {
695
- this.nativeInput.value = '';
696
- }
697
- this.selectedDate = this.initialValue;
698
- this.updateValue(this.initialValue, false);
699
- this.updatePointerDates();
700
- }, 0);
701
- }
702
- }
703
- breakpointListener(breakpoints) {
704
- this.isMobile = breakpoints.mobile;
705
- }
706
- connectedCallback() {
707
- this.debounceChanged();
708
- this.initialValue = this.value;
709
- }
710
- componentDidLoad() {
711
- this.inputValue = this.value;
712
- }
713
- componentWillLoad() {
714
- this.inheritedAttributes = inheritAttributes(this.el, ['aria-label', 'tabindex', 'title']);
715
- this.selectedDate = this.value;
716
- this.updatePointerDates();
717
- this.updateValue(this.value, false);
718
- }
719
- /**
720
- * @internal define config for the component
721
- */
722
- async configChanged(state) {
723
- this.language = state.language;
724
- this.region = state.region;
725
- }
726
- /**
727
- * Opens the popover
728
- */
729
- async open() {
730
- if (!this.disabled && this.popoverElement) {
731
- this.popoverElement.present();
732
- }
733
- }
734
- /**
735
- * Closes the popover
736
- */
737
- async close() {
738
- if (!this.disabled && this.popoverElement) {
739
- this.popoverElement.dismiss();
740
- }
741
- }
742
- /**
743
- * Selects an option
744
- */
745
- async select(dateString) {
746
- var _a;
747
- this.nativeInput.value = format(this.getLocale(), parse(dateString));
748
- this.updateValue(dateString);
749
- this.updatePointerDates();
750
- if (this.closeOnSelect) {
751
- await ((_a = this.popoverElement) === null || _a === void 0 ? void 0 : _a.toggle());
752
- }
753
- }
754
- /**
755
- * Sets focus on the native `input`. Use this method instead of the global
756
- * `input.focus()`.
757
- */
758
- async setFocus() {
759
- inputSetFocus(this);
760
- }
761
- /**
762
- * Sets blur on the native `input`. Use this method instead of the global
763
- * `input.blur()`.
764
- * @internal
765
- */
766
- async setBlur() {
767
- inputSetBlur(this);
768
- }
769
- /**
770
- * Returns the native `<input>` element used under the hood.
771
- */
772
- getInputElement() {
773
- return Promise.resolve(this.nativeInput);
774
- }
775
- /**
776
- * @internal
777
- */
778
- async setAriaForm(ariaForm) {
779
- this.ariaForm = Object.assign({}, ariaForm);
780
- }
781
- updatePointerDates() {
782
- let date = now();
783
- date.setDate(1);
784
- if (this.selectedDate) {
785
- date = parse(this.selectedDate);
786
- }
787
- else {
788
- if (this.defaultDate) {
789
- date = parse(this.defaultDate);
790
- }
791
- }
792
- if (this.min) {
793
- const minDate = parse(this.min);
794
- if (minDate && date < minDate) {
795
- date = minDate;
796
- }
797
- }
798
- if (this.max) {
799
- const maxDate = parse(this.max);
800
- if (maxDate && date > maxDate) {
801
- date = maxDate;
802
- }
803
- }
804
- this.pointerDate = {
805
- year: getYear(date),
806
- month: getMonth(date),
807
- day: getDate(date),
808
- };
809
- }
810
- updateValue(dateString, isHuman = true) {
811
- if (!isValidIsoString(dateString)) {
812
- this.selectedDate = undefined;
813
- this.value = undefined;
814
- if (this.nativeInput) {
815
- this.nativeInput.value = '';
816
- }
817
- }
818
- if (this.value !== dateString) {
819
- this.value = dateString;
820
- if (isHuman && (this.isDateInRange(parse(this.value)) || this.value === '')) {
821
- this.balChange.emit(this.value);
822
- }
823
- }
824
- }
825
- get minYear() {
826
- if (this.min) {
827
- return parseInt(this.min.substring(0, 4), 10);
828
- }
829
- return this.minYearProp ? this.minYearProp : getYear(subYears(now(), 100));
830
- }
831
- get maxYear() {
832
- if (this.max) {
833
- return parseInt(this.max.substring(0, 4), 10);
834
- }
835
- return this.maxYearProp ? this.maxYearProp : getYear(addYears(now(), 100));
836
- }
837
- get years() {
838
- let years = Array.from({ length: this.maxYear - this.minYear + 1 }, (_, index) => this.minYear + index);
839
- if (this.min && this.pointerDate.month === getMonth(parse(this.min))) {
840
- const minYear = getYear(parse(this.min));
841
- years = years.filter(y => y >= minYear);
842
- }
843
- if (this.max && this.pointerDate.month === getMonth(parse(this.max))) {
844
- const maxYear = getYear(parse(this.max));
845
- years = years.filter(y => y <= maxYear);
846
- }
847
- return years;
848
- }
849
- get months() {
850
- const monthNames = i18nBalDatepicker[this.language].monthsShort;
851
- let months = monthNames.map((name, index) => ({ name, index }));
852
- if (this.min && this.pointerDate.year === getYear(parse(this.min))) {
853
- const minMonth = parseInt(this.min.substring(5, 7), 10) - 1;
854
- months = months.filter(month => month.index >= minMonth);
855
- }
856
- if (this.max && this.pointerDate.year === getYear(parse(this.max))) {
857
- const maxMonth = parseInt(this.max.substring(5, 7), 10) - 1;
858
- months = months.filter(month => month.index <= maxMonth);
859
- }
860
- return months;
861
- }
862
- get weekDays() {
863
- const translations = [...i18nBalDatepicker[this.language].weekdaysMin];
864
- translations.push(translations.shift() || '');
865
- return translations;
866
- }
867
- get firstDateOfBox() {
868
- const date = new Date(this.pointerDate.year, this.pointerDate.month, 1);
869
- return startOfWeek(date, { weekStartsOn: 1 });
870
- }
871
- getLocale() {
872
- const config = useBalConfig();
873
- return (config && config.locale) || defaultLocale;
874
- }
875
- get calendarGrid() {
876
- const weekDatePointer = this.firstDateOfBox;
877
- const dayDatePointer = this.firstDateOfBox;
878
- let calendar = []; // eslint-disable-line
879
- do {
880
- let row = []; // eslint-disable-line
881
- do {
882
- row = [
883
- ...row,
884
- {
885
- date: new Date(dayDatePointer),
886
- display: format(this.getLocale(), dayDatePointer),
887
- dateString: formatDateString(dayDatePointer),
888
- label: getDate(dayDatePointer).toString(),
889
- isToday: isSameDay(dayDatePointer, now()),
890
- isSelected: parse(this.selectedDate) !== undefined &&
891
- isSameDay(dayDatePointer, parse(this.selectedDate)),
892
- isDisabled: !this.getAllowedDates(dayDatePointer) || !this.isDateInRange(dayDatePointer),
893
- isOutdated: this.pointerDate.month !== dayDatePointer.getMonth() || !this.isDateInRange(dayDatePointer),
894
- },
895
- ];
896
- dayDatePointer.setDate(dayDatePointer.getDate() + 1);
897
- } while (isSameWeek(dayDatePointer, weekDatePointer, { weekStartsOn: 1 }));
898
- calendar = [...calendar, row];
899
- weekDatePointer.setDate(weekDatePointer.getDate() + 7);
900
- } while (isSameMonth(new Date(this.pointerDate.year, this.pointerDate.month, this.pointerDate.day), dayDatePointer));
901
- return calendar;
902
- }
903
- getAllowedDates(dayDatePointer) {
904
- if (lodash_isnil(this.allowedDates)) {
905
- return true;
906
- }
907
- return this.allowedDates(formatDateString(dayDatePointer));
908
- }
909
- formatDate(value) {
910
- const separator = dateSeparator(this.getLocale());
911
- const length = value.length;
912
- const currentChar = value.charAt(length - 1);
913
- const lastChar = value.charAt(length - 2);
914
- if (currentChar === separator) {
915
- if (length === 1 || lastChar === separator || value.split(separator).filter(val => val.length > 0).length >= 3) {
916
- return value.substring(0, length - 1);
917
- }
918
- }
919
- if (length === 5) {
920
- if (value.split(separator)[0].split('').length === 1 && lastChar !== separator && currentChar !== separator) {
921
- return value.substring(0, length - 1) + separator + value.substring(length - 1, length);
922
- }
923
- }
924
- if (length === 3 || length === 6) {
925
- if (currentChar !== separator && lastChar !== separator && value.split(separator).length <= 2) {
926
- return value.substring(0, length - 1) + separator + value.substring(length - 1, length);
927
- }
928
- }
929
- return value;
930
- }
931
- render() {
932
- const block = BEM.block('datepicker');
933
- const native = block.element('native');
934
- const popup = block.element('popup');
935
- const popupBody = popup.element('body');
936
- const popupFooter = popup.element('footer');
937
- return (h(Host, { onClick: this.handleClick, "aria-disabled": this.disabled ? 'true' : null, class: Object.assign(Object.assign({}, block.class()), block.modifier('disabled').class(this.disabled || this.readonly)) }, h("input", { type: "date", class: Object.assign({}, native.class()), name: this.name, min: this.min, max: this.max, value: this.value, tabindex: -1, "aria-hidden": "true" }), h("bal-popover", { onBalChange: this.onPopoverChange, ref: el => (this.popoverElement = el) }, this.renderInput(), h("bal-popover-content", { spaceless: true, contentMinWidth: 392 }, h("div", { class: Object.assign({}, popup.class()) }, this.renderHeader(), h("div", { class: Object.assign({}, popupBody.class()) }, this.renderGrid()), h("div", { class: Object.assign({}, popupFooter.class()) }, h("slot", null)))))));
938
- }
939
- renderInput() {
940
- return (h("div", { "bal-popover-trigger": true, class: "control" }, h("bal-input-group", { disabled: this.disabled || this.readonly, invalid: this.invalid }, h("input", Object.assign({ class: {
941
- 'input': true,
942
- 'data-test-input': true,
943
- 'is-clickable': !this.disabled && !this.triggerIcon && !this.readonly,
944
- 'is-disabled': this.disabled || this.readonly,
945
- 'is-danger': this.invalid,
946
- }, "data-testid": "bal-datepicker-input", ref: el => (this.nativeInput = el), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, type: "text", maxlength: "10", autoComplete: "off", value: format(this.getLocale(), parse(this.value || '')), required: this.required, disabled: this.disabled, readonly: this.readonly, placeholder: this.placeholder, onKeyDown: e => this.onInputKeyDown(e), onKeyUp: e => this.onInputKeyUp(e), onInput: this.onInput, onClick: this.onInputClick, onChange: this.onInputChange, onBlur: this.onInputBlur, onFocus: this.onInputFocus }, this.inheritedAttributes)), !this.loading ? (h("bal-icon", { class: {
947
- 'datepicker-trigger-icon': true,
948
- 'is-clickable': !this.disabled && !this.readonly,
949
- }, "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', name: "date", onClick: this.onIconClick })) : (''))));
950
- }
951
- renderGrid() {
952
- const block = BEM.block('datepicker-grid');
953
- const rowEl = block.element('row');
954
- const cellEl = block.element('cell');
955
- return (h("div", null, this.renderWeekDayHeader(), h("div", { class: Object.assign({}, block.class()) }, this.calendarGrid.map((row, index) => (h("div", { key: index, class: Object.assign({}, rowEl.class()) }, row.map(cell => (h("button", { key: cell.dateString, type: "button", "data-date": cell.dateString, onClick: () => this.onClickDateCell(cell), disabled: cell.isDisabled, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, cellEl.class()), { 'button': true, 'is-text': !cell.isDisabled && !cell.isSelected, 'is-primary': cell.isSelected && cell.isSelected, 'is-disabled': cell.isDisabled || cell.isOutdated }), cellEl.modifier('today').class(cell.isToday)), cellEl.modifier('selectable').class(!cell.isDisabled && !cell.isOutdated)), cellEl.modifier('disabled').class(cell.isDisabled || cell.isOutdated)), cellEl.modifier('outdated').class(cell.isOutdated)), cellEl.modifier('selected').class(cell.isSelected)) }, h("span", null, cell.label))))))))));
956
- }
957
- renderWeekDayHeader() {
958
- const block = BEM.block('datepicker-grid');
959
- const headerEl = block.element('header');
960
- const cellEl = block.element('cell');
961
- return (h("header", { class: Object.assign({}, headerEl.class()) }, this.weekDays.map(weekday => (h("div", { key: weekday, class: Object.assign(Object.assign({}, cellEl.class()), cellEl.modifier('header').class()) }, h("span", null, weekday))))));
962
- }
963
- renderHeader() {
964
- const block = BEM.block('datepicker-pagination');
965
- const innerEl = block.element('inner');
966
- const monthAndYearEl = block.element('month-and-year');
967
- const selectEl = monthAndYearEl.element('select');
968
- return (h("header", { class: Object.assign({}, block.class()) }, h("div", { class: Object.assign({}, innerEl.class()) }, h("bal-button", { square: true, size: this.isMobile ? 'small' : '', color: "info", icon: "nav-go-left", disabled: this.isPreviousMonthDisabled, onClick: () => this.previousMonth() }), h("div", { class: Object.assign({}, monthAndYearEl.class()) }, h("div", { class: Object.assign(Object.assign({}, selectEl.class()), selectEl.modifier('month').class()) }, h("div", { class: "select" }, h("select", { onInput: this.onMonthSelect }, this.months.map(month => (h("option", { key: month.index, value: month.index, selected: this.pointerDate.month === month.index }, month.name)))))), h("div", { class: Object.assign(Object.assign({}, selectEl.class()), selectEl.modifier('year').class()) }, h("div", { class: "select" }, h("select", { onInput: this.onYearSelect }, this.years.map(year => (h("option", { key: year, value: year, selected: this.pointerDate.year === year }, year))))))), h("bal-button", { square: true, size: this.isMobile ? 'small' : '', color: "info", icon: "nav-go-right", disabled: this.isNextMonthDisabled, onClick: () => this.nextMonth() }))));
969
- }
970
- previousMonth() {
971
- if (!this.isPreviousMonthDisabled) {
972
- if (this.pointerDate.year === this.minYear && this.pointerDate.month === 0) {
973
- return;
974
- }
975
- this.pointerDate = this.calcPreviousMonth();
976
- }
977
- }
978
- nextMonth() {
979
- if (!this.isNextMonthDisabled) {
980
- if (this.pointerDate.year === this.maxYear && this.pointerDate.month === 11) {
981
- return;
982
- }
983
- this.pointerDate = this.calcNextMonth();
984
- }
985
- }
986
- calcPreviousMonth() {
987
- if (this.pointerDate.month === 0) {
988
- return Object.assign(Object.assign({}, this.pointerDate), { year: this.pointerDate.year - 1, month: 11, day: 1 });
989
- }
990
- else {
991
- return Object.assign(Object.assign({}, this.pointerDate), { month: this.pointerDate.month - 1, day: 1 });
992
- }
993
- }
994
- calcNextMonth() {
995
- if (this.pointerDate.month === 11) {
996
- return Object.assign(Object.assign({}, this.pointerDate), { year: this.pointerDate.year + 1, month: 0, day: 1 });
997
- }
998
- else {
999
- return Object.assign(Object.assign({}, this.pointerDate), { month: this.pointerDate.month + 1, day: 1 });
1000
- }
1001
- }
1002
- lastDayOfMonth(year, month) {
1003
- const d = new Date(year, month + 1, 0);
1004
- return getDate(d);
1005
- }
1006
- get isPreviousMonthDisabled() {
1007
- if (this.min) {
1008
- const minDate = parse(this.min);
1009
- const lastDayOfMonth = this.lastDayOfMonth(this.calcPreviousMonth().year, this.calcPreviousMonth().month);
1010
- const beforeDate = new Date(this.calcPreviousMonth().year, this.calcPreviousMonth().month, lastDayOfMonth);
1011
- return isBefore(beforeDate, subDays(minDate, 1));
1012
- }
1013
- return false;
1014
- }
1015
- get isNextMonthDisabled() {
1016
- if (this.max) {
1017
- const maxDate = parse(this.max);
1018
- const beforeDate = new Date(this.calcNextMonth().year, this.calcNextMonth().month, 1);
1019
- return isAfter(beforeDate, lastDayOfMonth(maxDate) ? maxDate : addDays(maxDate, 1));
1020
- }
1021
- return false;
1022
- }
1023
- isDateInRange(cellDate) {
1024
- const parsedCellDate = parse(formatDateString(cellDate));
1025
- if (this.min && this.max && this.max > this.min) {
1026
- return isWithinInterval(parsedCellDate, {
1027
- start: parse(this.min),
1028
- end: parse(this.max),
1029
- });
1030
- }
1031
- if (this.min) {
1032
- return isAfter(parsedCellDate, parse(this.min)) || isSameDay(parsedCellDate, parse(this.min));
1033
- }
1034
- if (this.max) {
1035
- return (isBefore(parsedCellDate, addDays(parse(this.max), 1)) ||
1036
- isSameDay(parsedCellDate, parse(this.max)));
1037
- }
1038
- return true;
1039
- }
1040
- get el() { return getElement(this); }
1041
- static get watchers() { return {
1042
- "debounce": ["debounceChanged"],
1043
- "value": ["valueChanged"]
1044
- }; }
1045
- };
1046
- __decorate([
1047
- Logger('bal-datepicker'),
1048
- __metadata("design:type", Function),
1049
- __metadata("design:paramtypes", [Function]),
1050
- __metadata("design:returntype", void 0)
1051
- ], Datepicker.prototype, "createLogger", null);
1052
- __decorate([
1053
- ListenToBreakpoints(),
1054
- __metadata("design:type", Function),
1055
- __metadata("design:paramtypes", [Object]),
1056
- __metadata("design:returntype", void 0)
1057
- ], Datepicker.prototype, "breakpointListener", null);
1058
- __decorate([
1059
- ListenToConfig(),
1060
- __metadata("design:type", Function),
1061
- __metadata("design:paramtypes", [Object]),
1062
- __metadata("design:returntype", Promise)
1063
- ], Datepicker.prototype, "configChanged", null);
1064
- let datepickerIds = 0;
1065
- Datepicker.style = BalDatepickerStyle0;
1066
-
1067
- export { Datepicker as bal_datepicker };