@otto-de/b2b-core-components 1.21.0 → 1.23.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 (465) hide show
  1. package/dist/b2b-core-components/b2b-core-components.css +1 -1
  2. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  3. package/dist/b2b-core-components/icons/b2b_icon-chatbot.svg +2 -20
  4. package/dist/b2b-core-components/icons-100/b2b_icon-bullet-list.svg +1 -0
  5. package/dist/b2b-core-components/icons-100/b2b_icon-ordered-list.svg +1 -0
  6. package/dist/b2b-core-components/p-01aea1a4.entry.js +1 -0
  7. package/dist/b2b-core-components/p-02ceefdf.entry.js +1 -0
  8. package/dist/b2b-core-components/p-191b7d0b.entry.js +1 -0
  9. package/dist/b2b-core-components/p-1ac1ed23.entry.js +1 -0
  10. package/dist/b2b-core-components/p-1cbf75dd.entry.js +1 -0
  11. package/dist/b2b-core-components/p-247b295d.entry.js +1 -0
  12. package/dist/b2b-core-components/p-25fa6d92.entry.js +1 -0
  13. package/dist/b2b-core-components/p-28674643.entry.js +1 -0
  14. package/dist/b2b-core-components/p-2a80fb82.entry.js +1 -0
  15. package/dist/b2b-core-components/p-30dce961.entry.js +1 -0
  16. package/dist/b2b-core-components/p-333969c9.entry.js +1 -0
  17. package/dist/b2b-core-components/p-339dd3ba.entry.js +1 -0
  18. package/dist/b2b-core-components/p-371efcb7.entry.js +1 -0
  19. package/dist/b2b-core-components/p-37cdfc83.entry.js +1 -0
  20. package/dist/b2b-core-components/p-3caed6e8.entry.js +1 -0
  21. package/dist/b2b-core-components/p-438ab795.entry.js +1 -0
  22. package/dist/b2b-core-components/p-44d5a9d3.entry.js +1 -0
  23. package/dist/b2b-core-components/p-47081742.entry.js +1 -0
  24. package/dist/b2b-core-components/{p-ffff2d15.entry.js → p-48d75dc1.entry.js} +1 -1
  25. package/dist/b2b-core-components/p-4cfb4131.entry.js +1 -0
  26. package/dist/b2b-core-components/p-545b6ba2.entry.js +1 -0
  27. package/dist/b2b-core-components/p-56293400.entry.js +1 -0
  28. package/dist/b2b-core-components/p-572f9f64.entry.js +1 -0
  29. package/dist/b2b-core-components/{p-a7221803.entry.js → p-744e8fc3.entry.js} +1 -1
  30. package/dist/b2b-core-components/p-74c0757b.entry.js +1 -0
  31. package/dist/b2b-core-components/p-8967cc6c.entry.js +1 -0
  32. package/dist/b2b-core-components/p-8fa70a00.entry.js +1 -0
  33. package/dist/b2b-core-components/{p-a155219a.entry.js → p-921e7a37.entry.js} +1 -1
  34. package/dist/b2b-core-components/p-925553cd.entry.js +1 -0
  35. package/dist/b2b-core-components/p-928e7db4.entry.js +1 -0
  36. package/dist/b2b-core-components/p-95570f8e.entry.js +1 -0
  37. package/dist/b2b-core-components/p-95d3519f.entry.js +1 -0
  38. package/dist/b2b-core-components/p-96968c24.entry.js +1 -0
  39. package/dist/b2b-core-components/p-96bde9dd.entry.js +1 -0
  40. package/dist/b2b-core-components/p-992dd377.entry.js +1 -0
  41. package/dist/b2b-core-components/p-9a6c243e.entry.js +1 -0
  42. package/dist/b2b-core-components/p-9c055a4e.entry.js +1 -0
  43. package/dist/b2b-core-components/p-9de02b91.entry.js +1 -0
  44. package/dist/b2b-core-components/p-a033a6b5.entry.js +1 -0
  45. package/dist/b2b-core-components/p-a0ab40f0.entry.js +1 -0
  46. package/dist/b2b-core-components/p-a923feb6.js +1 -0
  47. package/dist/b2b-core-components/p-ae71a78f.entry.js +1 -0
  48. package/dist/b2b-core-components/p-b6916793.entry.js +1 -0
  49. package/dist/b2b-core-components/p-b7afa702.entry.js +1 -0
  50. package/dist/b2b-core-components/p-bf8db809.entry.js +1 -0
  51. package/dist/b2b-core-components/p-c1135326.entry.js +1 -0
  52. package/dist/b2b-core-components/p-c3d76d28.entry.js +1 -0
  53. package/dist/b2b-core-components/p-cab7c805.entry.js +1 -0
  54. package/dist/b2b-core-components/p-cc0ad9b7.entry.js +1 -0
  55. package/dist/b2b-core-components/p-d56a8c1a.entry.js +1 -0
  56. package/dist/b2b-core-components/p-d895f199.entry.js +1 -0
  57. package/dist/b2b-core-components/p-e4359302.entry.js +1 -0
  58. package/dist/b2b-core-components/p-ec4f82b1.entry.js +1 -0
  59. package/dist/b2b-core-components/p-f6bd827c.entry.js +1 -0
  60. package/dist/b2b-core-components/p-fbd31067.entry.js +1 -0
  61. package/dist/b2b-core-components/p-fdfdc92d.entry.js +1 -0
  62. package/dist/cjs/b2b-alert.cjs.entry.js +4 -4
  63. package/dist/cjs/b2b-anchor.cjs.entry.js +1 -1
  64. package/dist/cjs/b2b-background-box.cjs.entry.js +11 -3
  65. package/dist/cjs/b2b-breadcrumb-item.cjs.entry.js +1 -1
  66. package/dist/cjs/b2b-breadcrumb.cjs.entry.js +1 -1
  67. package/dist/cjs/b2b-button_2.cjs.entry.js +5 -5
  68. package/dist/cjs/b2b-card.cjs.entry.js +1 -1
  69. package/dist/cjs/b2b-checkbox-group.cjs.entry.js +1 -1
  70. package/dist/cjs/b2b-checkbox.cjs.entry.js +1 -1
  71. package/dist/cjs/b2b-chip-component_2.cjs.entry.js +4 -4
  72. package/dist/cjs/b2b-core-components.cjs.js +1 -1
  73. package/dist/cjs/b2b-date-picker-days_5.cjs.entry.js +40 -38
  74. package/dist/cjs/b2b-date-picker.cjs.entry.js +73 -27
  75. package/dist/cjs/b2b-dropdown.cjs.entry.js +3 -3
  76. package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +2 -2
  77. package/dist/cjs/b2b-flyout-menu.cjs.entry.js +4 -4
  78. package/dist/cjs/b2b-grid-col.cjs.entry.js +5 -17
  79. package/dist/cjs/b2b-grid-row.cjs.entry.js +2 -2
  80. package/dist/cjs/b2b-grid.cjs.entry.js +1 -1
  81. package/dist/cjs/b2b-headline.cjs.entry.js +1 -1
  82. package/dist/cjs/b2b-icon-100.cjs.entry.js +3 -1
  83. package/dist/cjs/b2b-icon-50.cjs.entry.js +1 -1
  84. package/dist/cjs/b2b-icon.cjs.entry.js +1 -1
  85. package/dist/cjs/b2b-input-group_2.cjs.entry.js +5 -5
  86. package/dist/cjs/b2b-input-label.cjs.entry.js +2 -2
  87. package/dist/cjs/b2b-input_2.cjs.entry.js +10 -7
  88. package/dist/cjs/b2b-label.cjs.entry.js +3 -3
  89. package/dist/cjs/b2b-modal.cjs.entry.js +3 -3
  90. package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +5 -5
  91. package/dist/cjs/b2b-pagination.cjs.entry.js +2 -2
  92. package/dist/cjs/b2b-paragraph.cjs.entry.js +3 -3
  93. package/dist/cjs/b2b-progress-bar.cjs.entry.js +4 -4
  94. package/dist/cjs/b2b-radio-button.cjs.entry.js +3 -3
  95. package/dist/cjs/b2b-radio-group.cjs.entry.js +3 -3
  96. package/dist/cjs/b2b-required-separator.cjs.entry.js +2 -2
  97. package/dist/cjs/b2b-rounded-icon.cjs.entry.js +5 -5
  98. package/dist/cjs/b2b-scrollable-container.cjs.entry.js +2 -2
  99. package/dist/cjs/b2b-search.cjs.entry.js +1 -1
  100. package/dist/cjs/b2b-separator.cjs.entry.js +2 -2
  101. package/dist/cjs/b2b-snackbar.cjs.entry.js +111 -0
  102. package/dist/cjs/b2b-tab-group.cjs.entry.js +1 -1
  103. package/dist/cjs/b2b-tab-panel.cjs.entry.js +2 -2
  104. package/dist/cjs/b2b-tab.cjs.entry.js +3 -3
  105. package/dist/cjs/b2b-table-cell_2.cjs.entry.js +5 -5
  106. package/dist/cjs/b2b-table-row.cjs.entry.js +21 -10
  107. package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +3 -3
  108. package/dist/cjs/b2b-table.cjs.entry.js +3 -3
  109. package/dist/cjs/b2b-textarea.cjs.entry.js +3 -3
  110. package/dist/cjs/b2b-toggle-button.cjs.entry.js +4 -4
  111. package/dist/cjs/b2b-toggle-chip.cjs.entry.js +6 -7
  112. package/dist/cjs/b2b-toggle-group.cjs.entry.js +3 -3
  113. package/dist/cjs/b2b-toggle-switch.cjs.entry.js +5 -5
  114. package/dist/cjs/b2b-tooltip.cjs.entry.js +4 -4
  115. package/dist/cjs/b2b-wizard-icon.cjs.entry.js +3 -3
  116. package/dist/cjs/b2b-wizard-step.cjs.entry.js +3 -3
  117. package/dist/cjs/b2b-wizard.cjs.entry.js +2 -2
  118. package/dist/cjs/date-picker-util-8596688b.js +109 -0
  119. package/dist/cjs/index-668808fd.js +8 -4
  120. package/dist/cjs/loader.cjs.js +1 -1
  121. package/dist/collection/collection-manifest.json +1 -0
  122. package/dist/collection/components/alert/alert.css +6 -4
  123. package/dist/collection/components/alert/alert.e2e.js +2 -2
  124. package/dist/collection/components/alert/alert.js +3 -3
  125. package/dist/collection/components/anchor/anchor.css +6 -4
  126. package/dist/collection/components/background-box/background-box.css +18 -4
  127. package/dist/collection/components/background-box/background-box.e2e.js +26 -0
  128. package/dist/collection/components/background-box/background-box.js +82 -2
  129. package/dist/collection/components/background-box/background-box.spec.js +19 -0
  130. package/dist/collection/components/background-box/background-box.stories.js +16 -2
  131. package/dist/collection/components/breadcrumb/breadcrumb.css +6 -4
  132. package/dist/collection/components/button/button.css +6 -4
  133. package/dist/collection/components/button/button.e2e.js +2 -2
  134. package/dist/collection/components/button/button.js +2 -2
  135. package/dist/collection/components/button/button.stories.js +3 -3
  136. package/dist/collection/components/card/card.css +6 -4
  137. package/dist/collection/components/checkbox/checkbox.css +6 -4
  138. package/dist/collection/components/checkbox-group/checkbox-group.css +6 -4
  139. package/dist/collection/components/chip/chip.css +6 -4
  140. package/dist/collection/components/date-picker/date-picker-days-header.css +6 -4
  141. package/dist/collection/components/date-picker/date-picker-days-header.js +27 -3
  142. package/dist/collection/components/date-picker/date-picker-days.css +8 -6
  143. package/dist/collection/components/date-picker/date-picker-days.js +93 -19
  144. package/dist/collection/components/date-picker/date-picker-header.css +9 -7
  145. package/dist/collection/components/date-picker/date-picker-header.js +26 -6
  146. package/dist/collection/components/date-picker/date-picker-months.css +7 -5
  147. package/dist/collection/components/date-picker/date-picker-months.e2e.js +3 -3
  148. package/dist/collection/components/date-picker/date-picker-months.js +22 -2
  149. package/dist/collection/components/date-picker/date-picker-years.css +7 -5
  150. package/dist/collection/components/date-picker/date-picker.css +6 -6
  151. package/dist/collection/components/date-picker/date-picker.js +216 -23
  152. package/dist/collection/components/date-picker/date-picker.stories.js +105 -9
  153. package/dist/collection/components/date-picker/date-picker.types.js +33 -2
  154. package/dist/collection/components/dropdown/dropdown.css +6 -4
  155. package/dist/collection/components/dropdown/dropdown.js +2 -2
  156. package/dist/collection/components/flyout-menu/flyout-menu-option.css +7 -5
  157. package/dist/collection/components/flyout-menu/flyout-menu-option.js +1 -1
  158. package/dist/collection/components/flyout-menu/flyout-menu.css +7 -5
  159. package/dist/collection/components/flyout-menu/flyout-menu.e2e.js +6 -6
  160. package/dist/collection/components/flyout-menu/flyout-menu.js +3 -3
  161. package/dist/collection/components/flyout-menu/flyout-menu.stories.js +4 -4
  162. package/dist/collection/components/grid/column.js +5 -17
  163. package/dist/collection/components/grid/grid.js +1 -1
  164. package/dist/collection/components/grid/grid.stories.js +223 -222
  165. package/dist/collection/components/grid/row.js +2 -2
  166. package/dist/collection/components/headline/headline.css +6 -4
  167. package/dist/collection/components/icon/icon.css +6 -4
  168. package/dist/collection/components/icon/icons/b2b_icon-chatbot.svg +2 -20
  169. package/dist/collection/components/icon-100/icon-100.css +6 -4
  170. package/dist/collection/components/icon-100/icon-100.js +1 -1
  171. package/dist/collection/components/icon-100/icons-100/b2b_icon-bullet-list.svg +1 -0
  172. package/dist/collection/components/icon-100/icons-100/b2b_icon-ordered-list.svg +1 -0
  173. package/dist/collection/components/icon-100/types.js +2 -0
  174. package/dist/collection/components/icon-50/icon-50.css +6 -4
  175. package/dist/collection/components/input/input.css +6 -4
  176. package/dist/collection/components/input/input.e2e.js +10 -0
  177. package/dist/collection/components/input/input.js +7 -4
  178. package/dist/collection/components/input/input.stories.js +22 -2
  179. package/dist/collection/components/input-group/input-group.css +6 -4
  180. package/dist/collection/components/input-group/input-group.e2e.js +1 -1
  181. package/dist/collection/components/input-group/input-group.js +1 -1
  182. package/dist/collection/components/input-group/input-group.stories.js +1 -1
  183. package/dist/collection/components/input-label/input-label.js +2 -2
  184. package/dist/collection/components/input-list/input-list-option.js +1 -1
  185. package/dist/collection/components/input-list/input-list.css +8 -6
  186. package/dist/collection/components/input-list/input-list.e2e.js +6 -6
  187. package/dist/collection/components/input-list/input-list.js +2 -2
  188. package/dist/collection/components/label/label.css +6 -4
  189. package/dist/collection/components/label/label.js +2 -2
  190. package/dist/collection/components/modal/modal.css +7 -5
  191. package/dist/collection/components/modal/modal.e2e.js +2 -2
  192. package/dist/collection/components/modal/modal.js +2 -2
  193. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +6 -4
  194. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +4 -4
  195. package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.css +1 -1
  196. package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +2 -2
  197. package/dist/collection/components/pagination/pagination.css +6 -4
  198. package/dist/collection/components/pagination/pagination.js +1 -1
  199. package/dist/collection/components/paragraph/paragraph.css +6 -4
  200. package/dist/collection/components/paragraph/paragraph.js +2 -2
  201. package/dist/collection/components/progress-bar/progress-bar.css +6 -4
  202. package/dist/collection/components/progress-bar/progress-bar.js +3 -3
  203. package/dist/collection/components/radio/radio.css +6 -4
  204. package/dist/collection/components/radio/radio.e2e.js +3 -2
  205. package/dist/collection/components/radio/radio.js +2 -2
  206. package/dist/collection/components/radio-group/radio-group.css +6 -4
  207. package/dist/collection/components/radio-group/radio-group.e2e.js +4 -3
  208. package/dist/collection/components/radio-group/radio-group.js +2 -2
  209. package/dist/collection/components/required-separator/required-separator.css +6 -4
  210. package/dist/collection/components/required-separator/required-separator.js +1 -1
  211. package/dist/collection/components/rounded-icon/rounded-icon.css +6 -4
  212. package/dist/collection/components/rounded-icon/rounded-icon.js +4 -4
  213. package/dist/collection/components/rounded-icon/rounded-icon.stories.js +1 -1
  214. package/dist/collection/components/scrollable-container/scrollable-container.css +6 -4
  215. package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
  216. package/dist/collection/components/search/search.js +1 -1
  217. package/dist/collection/components/search/search.stories.js +1 -1
  218. package/dist/collection/components/separator/separator.css +6 -4
  219. package/dist/collection/components/separator/separator.js +1 -1
  220. package/dist/collection/components/snackbar/snackbar.css +337 -0
  221. package/dist/collection/components/snackbar/snackbar.e2e.js +63 -0
  222. package/dist/collection/components/snackbar/snackbar.js +273 -0
  223. package/dist/collection/components/snackbar/snackbar.stories.js +89 -0
  224. package/dist/collection/components/spinner/spinner.css +6 -4
  225. package/dist/collection/components/spinner/spinner.js +1 -1
  226. package/dist/collection/components/tab/tab.css +6 -4
  227. package/dist/collection/components/tab/tab.js +2 -2
  228. package/dist/collection/components/tab-group/tab-group.js +1 -1
  229. package/dist/collection/components/tab-group/tab-group.stories.js +1 -1
  230. package/dist/collection/components/tab-panel/tab-panel.css +6 -4
  231. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  232. package/dist/collection/components/table/table-cell/table-cell.css +6 -4
  233. package/dist/collection/components/table/table-cell/table-cell.js +2 -2
  234. package/dist/collection/components/table/table-header/table-header.css +6 -4
  235. package/dist/collection/components/table/table-header/table-header.js +1 -1
  236. package/dist/collection/components/table/table-row/table-row.css +10 -8
  237. package/dist/collection/components/table/table-row/table-row.js +22 -10
  238. package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +6 -4
  239. package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +3 -3
  240. package/dist/collection/components/table/table.css +6 -4
  241. package/dist/collection/components/table/table.js +2 -2
  242. package/dist/collection/components/textarea/textarea.css +6 -4
  243. package/dist/collection/components/textarea/textarea.js +2 -2
  244. package/dist/collection/components/toggle-button/toggle-button.css +6 -4
  245. package/dist/collection/components/toggle-button/toggle-button.js +3 -3
  246. package/dist/collection/components/toggle-chip/toggle-chip.css +37 -20
  247. package/dist/collection/components/toggle-chip/toggle-chip.js +5 -24
  248. package/dist/collection/components/toggle-chip/toggle-chip.stories.js +51 -0
  249. package/dist/collection/components/toggle-group/toggle-group.css +6 -4
  250. package/dist/collection/components/toggle-group/toggle-group.js +2 -2
  251. package/dist/collection/components/toggle-switch/toggle-switch.css +6 -4
  252. package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
  253. package/dist/collection/components/tooltip/tooltip.css +6 -4
  254. package/dist/collection/components/tooltip/tooltip.js +3 -3
  255. package/dist/collection/components/tooltip/tooltip.stories.js +3 -3
  256. package/dist/collection/components/wizard/wizard-step.js +2 -2
  257. package/dist/collection/components/wizard/wizard.css +6 -4
  258. package/dist/collection/components/wizard/wizard.js +1 -1
  259. package/dist/collection/components/wizard-icon/wizard-icon.css +6 -4
  260. package/dist/collection/components/wizard-icon/wizard-icon.js +2 -2
  261. package/dist/collection/utils/datepicker/date-picker-util.js +48 -0
  262. package/dist/components/b2b-alert.js +7 -7
  263. package/dist/components/b2b-anchor.js +1 -1
  264. package/dist/components/b2b-background-box.js +16 -4
  265. package/dist/components/b2b-breadcrumb-item.js +1 -1
  266. package/dist/components/b2b-breadcrumb.js +1 -1
  267. package/dist/components/b2b-card.js +1 -1
  268. package/dist/components/b2b-checkbox-group.js +1 -1
  269. package/dist/components/b2b-date-picker.js +85 -27
  270. package/dist/components/b2b-dropdown.js +3 -3
  271. package/dist/components/b2b-flyout-menu-option.js +2 -2
  272. package/dist/components/b2b-flyout-menu.js +4 -4
  273. package/dist/components/b2b-grid-col.js +5 -17
  274. package/dist/components/b2b-grid-row.js +2 -2
  275. package/dist/components/b2b-grid.js +1 -1
  276. package/dist/components/b2b-icon-100.js +1 -409
  277. package/dist/components/b2b-icon-50.js +1 -1
  278. package/dist/components/b2b-icon.js +444 -1
  279. package/dist/components/b2b-label.js +3 -3
  280. package/dist/components/b2b-modal.js +6 -6
  281. package/dist/components/b2b-multiselect-dropdown.js +8 -8
  282. package/dist/components/b2b-pagination.js +2 -2
  283. package/dist/components/b2b-paragraph.js +3 -3
  284. package/dist/components/b2b-progress-bar.js +4 -4
  285. package/dist/components/b2b-radio-button.js +3 -3
  286. package/dist/components/b2b-radio-group.js +3 -3
  287. package/dist/components/b2b-required-separator.js +2 -2
  288. package/dist/components/b2b-scrollable-container.js +2 -2
  289. package/dist/components/b2b-search.js +4 -4
  290. package/dist/components/b2b-snackbar.d.ts +11 -0
  291. package/dist/components/b2b-snackbar.js +141 -0
  292. package/dist/components/b2b-tab-group.js +1 -1
  293. package/dist/components/b2b-tab-panel.js +2 -2
  294. package/dist/components/b2b-tab.js +3 -3
  295. package/dist/components/b2b-table-row.js +25 -13
  296. package/dist/components/b2b-table-rowgroup.js +4 -4
  297. package/dist/components/b2b-table.js +3 -3
  298. package/dist/components/b2b-textarea.js +3 -3
  299. package/dist/components/b2b-toggle-button.js +4 -4
  300. package/dist/components/b2b-toggle-chip.js +6 -8
  301. package/dist/components/b2b-toggle-group.js +3 -3
  302. package/dist/components/b2b-toggle-switch.js +5 -5
  303. package/dist/components/b2b-tooltip.js +4 -4
  304. package/dist/components/b2b-wizard-step.js +6 -6
  305. package/dist/components/b2b-wizard.js +2 -2
  306. package/dist/components/button.js +3 -3
  307. package/dist/components/checkbox.js +1 -1
  308. package/dist/components/chip.js +1 -1
  309. package/dist/components/date-picker-days-header.js +9 -5
  310. package/dist/components/date-picker-days.js +70 -21
  311. package/dist/components/date-picker-header.js +14 -11
  312. package/dist/components/date-picker-months.js +7 -4
  313. package/dist/components/date-picker-years.js +1 -1
  314. package/dist/components/date-picker.types.js +34 -3
  315. package/dist/components/headline.js +1 -1
  316. package/dist/components/{icon.js → icon-100.js} +23 -56
  317. package/dist/components/input-group.js +2 -2
  318. package/dist/components/input-label.js +2 -2
  319. package/dist/components/input-list-option.js +2 -2
  320. package/dist/components/input-list.js +6 -6
  321. package/dist/components/input.js +8 -5
  322. package/dist/components/multiselect-option.js +3 -3
  323. package/dist/components/rounded-icon.js +5 -5
  324. package/dist/components/separator.js +2 -2
  325. package/dist/components/spinner.js +2 -2
  326. package/dist/components/table-cell.js +3 -3
  327. package/dist/components/table-header.js +2 -2
  328. package/dist/components/wizard-icon.js +6 -6
  329. package/dist/custom-elements.json +183 -13
  330. package/dist/esm/b2b-alert.entry.js +4 -4
  331. package/dist/esm/b2b-anchor.entry.js +1 -1
  332. package/dist/esm/b2b-background-box.entry.js +11 -3
  333. package/dist/esm/b2b-breadcrumb-item.entry.js +1 -1
  334. package/dist/esm/b2b-breadcrumb.entry.js +1 -1
  335. package/dist/esm/b2b-button_2.entry.js +5 -5
  336. package/dist/esm/b2b-card.entry.js +1 -1
  337. package/dist/esm/b2b-checkbox-group.entry.js +1 -1
  338. package/dist/esm/b2b-checkbox.entry.js +1 -1
  339. package/dist/esm/b2b-chip-component_2.entry.js +4 -4
  340. package/dist/esm/b2b-core-components.js +1 -1
  341. package/dist/esm/b2b-date-picker-days_5.entry.js +35 -33
  342. package/dist/esm/b2b-date-picker.entry.js +69 -23
  343. package/dist/esm/b2b-dropdown.entry.js +3 -3
  344. package/dist/esm/b2b-flyout-menu-option.entry.js +2 -2
  345. package/dist/esm/b2b-flyout-menu.entry.js +4 -4
  346. package/dist/esm/b2b-grid-col.entry.js +5 -17
  347. package/dist/esm/b2b-grid-row.entry.js +2 -2
  348. package/dist/esm/b2b-grid.entry.js +1 -1
  349. package/dist/esm/b2b-headline.entry.js +1 -1
  350. package/dist/esm/b2b-icon-100.entry.js +3 -1
  351. package/dist/esm/b2b-icon-50.entry.js +1 -1
  352. package/dist/esm/b2b-icon.entry.js +1 -1
  353. package/dist/esm/b2b-input-group_2.entry.js +5 -5
  354. package/dist/esm/b2b-input-label.entry.js +2 -2
  355. package/dist/esm/b2b-input_2.entry.js +10 -7
  356. package/dist/esm/b2b-label.entry.js +3 -3
  357. package/dist/esm/b2b-modal.entry.js +3 -3
  358. package/dist/esm/b2b-multiselect-dropdown.entry.js +5 -5
  359. package/dist/esm/b2b-pagination.entry.js +2 -2
  360. package/dist/esm/b2b-paragraph.entry.js +3 -3
  361. package/dist/esm/b2b-progress-bar.entry.js +4 -4
  362. package/dist/esm/b2b-radio-button.entry.js +3 -3
  363. package/dist/esm/b2b-radio-group.entry.js +3 -3
  364. package/dist/esm/b2b-required-separator.entry.js +2 -2
  365. package/dist/esm/b2b-rounded-icon.entry.js +5 -5
  366. package/dist/esm/b2b-scrollable-container.entry.js +2 -2
  367. package/dist/esm/b2b-search.entry.js +1 -1
  368. package/dist/esm/b2b-separator.entry.js +2 -2
  369. package/dist/esm/b2b-snackbar.entry.js +107 -0
  370. package/dist/esm/b2b-tab-group.entry.js +1 -1
  371. package/dist/esm/b2b-tab-panel.entry.js +2 -2
  372. package/dist/esm/b2b-tab.entry.js +3 -3
  373. package/dist/esm/b2b-table-cell_2.entry.js +5 -5
  374. package/dist/esm/b2b-table-row.entry.js +21 -10
  375. package/dist/esm/b2b-table-rowgroup.entry.js +3 -3
  376. package/dist/esm/b2b-table.entry.js +3 -3
  377. package/dist/esm/b2b-textarea.entry.js +3 -3
  378. package/dist/esm/b2b-toggle-button.entry.js +4 -4
  379. package/dist/esm/b2b-toggle-chip.entry.js +6 -7
  380. package/dist/esm/b2b-toggle-group.entry.js +3 -3
  381. package/dist/esm/b2b-toggle-switch.entry.js +5 -5
  382. package/dist/esm/b2b-tooltip.entry.js +4 -4
  383. package/dist/esm/b2b-wizard-icon.entry.js +3 -3
  384. package/dist/esm/b2b-wizard-step.entry.js +3 -3
  385. package/dist/esm/b2b-wizard.entry.js +2 -2
  386. package/dist/esm/date-picker-util-10878a70.js +103 -0
  387. package/dist/esm/index-ab9eb36d.js +8 -4
  388. package/dist/esm/loader.js +1 -1
  389. package/dist/types/components/background-box/background-box.d.ts +8 -0
  390. package/dist/types/components/background-box/background-box.stories.d.ts +1 -0
  391. package/dist/types/components/date-picker/date-picker-days-header.d.ts +2 -0
  392. package/dist/types/components/date-picker/date-picker-days.d.ts +8 -1
  393. package/dist/types/components/date-picker/date-picker-header.d.ts +2 -0
  394. package/dist/types/components/date-picker/date-picker-months.d.ts +2 -0
  395. package/dist/types/components/date-picker/date-picker.d.ts +24 -2
  396. package/dist/types/components/date-picker/date-picker.stories.d.ts +8 -0
  397. package/dist/types/components/date-picker/date-picker.types.d.ts +4 -2
  398. package/dist/types/components/grid/grid.stories.d.ts +8 -7
  399. package/dist/types/components/icon-100/types.d.ts +1 -1
  400. package/dist/types/components/input/input.d.ts +2 -0
  401. package/dist/types/components/input/input.stories.d.ts +1 -0
  402. package/dist/types/components/snackbar/snackbar.d.ts +36 -0
  403. package/dist/types/components/snackbar/snackbar.stories.d.ts +9 -0
  404. package/dist/types/components/table/table-row/table-row.d.ts +4 -2
  405. package/dist/types/components/toggle-chip/toggle-chip.d.ts +0 -2
  406. package/dist/types/components/toggle-chip/toggle-chip.stories.d.ts +8 -0
  407. package/dist/types/components/tooltip/tooltip.stories.d.ts +2 -2
  408. package/dist/types/components.d.ts +270 -9
  409. package/dist/types/utils/datepicker/date-picker-util.d.ts +14 -0
  410. package/dist/web-types.json +295 -16
  411. package/package.json +3 -2
  412. package/dist/b2b-core-components/p-00700a00.entry.js +0 -1
  413. package/dist/b2b-core-components/p-029da6d8.entry.js +0 -1
  414. package/dist/b2b-core-components/p-0dc06432.entry.js +0 -1
  415. package/dist/b2b-core-components/p-0f2249e0.entry.js +0 -1
  416. package/dist/b2b-core-components/p-101e08d9.entry.js +0 -1
  417. package/dist/b2b-core-components/p-11e5143c.entry.js +0 -1
  418. package/dist/b2b-core-components/p-1525a056.entry.js +0 -1
  419. package/dist/b2b-core-components/p-15a24ba4.entry.js +0 -1
  420. package/dist/b2b-core-components/p-164d8803.entry.js +0 -1
  421. package/dist/b2b-core-components/p-19b13dcc.entry.js +0 -1
  422. package/dist/b2b-core-components/p-1b7201e1.entry.js +0 -1
  423. package/dist/b2b-core-components/p-1c048a27.entry.js +0 -1
  424. package/dist/b2b-core-components/p-1c8825d1.entry.js +0 -1
  425. package/dist/b2b-core-components/p-1e8416a3.entry.js +0 -1
  426. package/dist/b2b-core-components/p-2b214797.entry.js +0 -1
  427. package/dist/b2b-core-components/p-2bab8c7f.entry.js +0 -1
  428. package/dist/b2b-core-components/p-2de83995.entry.js +0 -1
  429. package/dist/b2b-core-components/p-33ba40ee.entry.js +0 -1
  430. package/dist/b2b-core-components/p-3665d675.entry.js +0 -1
  431. package/dist/b2b-core-components/p-376ba9ef.entry.js +0 -1
  432. package/dist/b2b-core-components/p-3ffba273.entry.js +0 -1
  433. package/dist/b2b-core-components/p-441657b2.js +0 -1
  434. package/dist/b2b-core-components/p-56573a91.entry.js +0 -1
  435. package/dist/b2b-core-components/p-57d487e2.entry.js +0 -1
  436. package/dist/b2b-core-components/p-67ad8770.entry.js +0 -1
  437. package/dist/b2b-core-components/p-68a836cb.entry.js +0 -1
  438. package/dist/b2b-core-components/p-6e031b32.entry.js +0 -1
  439. package/dist/b2b-core-components/p-72e23a4e.entry.js +0 -1
  440. package/dist/b2b-core-components/p-799b194b.entry.js +0 -1
  441. package/dist/b2b-core-components/p-7a9088d2.entry.js +0 -1
  442. package/dist/b2b-core-components/p-7b711ed3.entry.js +0 -1
  443. package/dist/b2b-core-components/p-7e59c92f.entry.js +0 -1
  444. package/dist/b2b-core-components/p-869095a0.entry.js +0 -1
  445. package/dist/b2b-core-components/p-8fc792f9.entry.js +0 -1
  446. package/dist/b2b-core-components/p-931c9dc7.entry.js +0 -1
  447. package/dist/b2b-core-components/p-947f2e2c.entry.js +0 -1
  448. package/dist/b2b-core-components/p-9a0a4a74.entry.js +0 -1
  449. package/dist/b2b-core-components/p-9fc53916.entry.js +0 -1
  450. package/dist/b2b-core-components/p-a0c1c775.entry.js +0 -1
  451. package/dist/b2b-core-components/p-a37ad232.entry.js +0 -1
  452. package/dist/b2b-core-components/p-acc7ae99.entry.js +0 -1
  453. package/dist/b2b-core-components/p-ad99ec44.entry.js +0 -1
  454. package/dist/b2b-core-components/p-c03d0533.entry.js +0 -1
  455. package/dist/b2b-core-components/p-d0e8d48b.entry.js +0 -1
  456. package/dist/b2b-core-components/p-d0e930f2.entry.js +0 -1
  457. package/dist/b2b-core-components/p-d42c90d1.entry.js +0 -1
  458. package/dist/b2b-core-components/p-d51551c9.entry.js +0 -1
  459. package/dist/b2b-core-components/p-db67d6f7.entry.js +0 -1
  460. package/dist/b2b-core-components/p-e1d7f335.entry.js +0 -1
  461. package/dist/b2b-core-components/p-f5fa0721.entry.js +0 -1
  462. package/dist/b2b-core-components/p-f6fa3212.entry.js +0 -1
  463. package/dist/b2b-core-components/p-f8cf06c5.entry.js +0 -1
  464. package/dist/cjs/date-picker.types-79f4bba0.js +0 -26
  465. package/dist/esm/date-picker.types-e21b2096.js +0 -23
@@ -1,5 +1,6 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { DatePickerView } from "./date-picker.types";
3
+ import { DateUtils } from "../../utils/datepicker/date-picker-util";
3
4
  export class B2bDatePicker {
4
5
  constructor() {
5
6
  this.DISABLED_DATE_ERROR_MESSAGE = 'Auswahl nicht möglich, bitte gültiges Datum auswählen.';
@@ -83,9 +84,17 @@ export class B2bDatePicker {
83
84
  this.disablePastDates = undefined;
84
85
  this.disableFutureDates = undefined;
85
86
  this.disableWeekends = undefined;
86
- this.label = 'Zeitraum auswählen';
87
+ this.disableDates = [];
88
+ this.label = 'Zeitpunkt auswählen';
87
89
  this.preSelectedDate = undefined;
88
90
  this.showHint = true;
91
+ this.width = 300;
92
+ this.disableDays = [];
93
+ this.disableDatesUntil = undefined;
94
+ this.disableDatesFrom = undefined;
95
+ this.hint = 'Format: TT.MM.JJJJ';
96
+ this.placeholder = null;
97
+ this.language = 'de';
89
98
  this.showDatePicker = false;
90
99
  this.focused = false;
91
100
  this.datePickerView = DatePickerView.Days;
@@ -96,8 +105,44 @@ export class B2bDatePicker {
96
105
  this.userInputDate = '';
97
106
  this.invalid = false;
98
107
  this.errorMessage = this.FORMATTING_ERROR_MESSAGE;
108
+ this.datesToBeDisabled = [];
109
+ this.normalizedDisableEvery = [];
110
+ this.normalizedDisableDatesUntil = undefined;
111
+ this.normalizedDisableDatesFrom = undefined;
112
+ }
113
+ isWithWithinLimit() {
114
+ return this.width >= 300 && this.width <= 600;
115
+ }
116
+ normalizeArrayInput(value) {
117
+ if (Array.isArray(value)) {
118
+ return value;
119
+ }
120
+ if (typeof value === 'string') {
121
+ return JSON.parse(value);
122
+ }
123
+ return [];
124
+ }
125
+ normalizeDisableDatesUntilAndFrom(givenDate) {
126
+ const [day, month, year] = givenDate.split('.').map(Number);
127
+ return new Date(year, month - 1, day);
99
128
  }
100
129
  componentWillLoad() {
130
+ if (this.disableDates !== '' || this.disableDates.length > 0) {
131
+ const dateString = this.normalizeArrayInput(this.disableDates);
132
+ this.datesToBeDisabled = dateString.map(date => {
133
+ const [day, month, year] = date.split('.').map(Number);
134
+ return new Date(year, month - 1, day);
135
+ });
136
+ }
137
+ if (this.disableDays !== '' || this.disableDays.length > 0) {
138
+ this.normalizedDisableEvery = this.normalizeArrayInput(this.disableDays);
139
+ }
140
+ if (this.disableDatesUntil !== '' && this.disableDatesUntil !== undefined) {
141
+ this.normalizedDisableDatesUntil = this.normalizeDisableDatesUntilAndFrom(this.disableDatesUntil);
142
+ }
143
+ if (this.disableDatesFrom !== '' && this.disableDatesFrom !== undefined) {
144
+ this.normalizedDisableDatesFrom = this.normalizeDisableDatesUntilAndFrom(this.disableDatesFrom);
145
+ }
101
146
  if (this.preSelectedDate !== undefined) {
102
147
  const [day, month, year] = this.preSelectedDate.split('.').map(Number);
103
148
  this.selectedDay = day;
@@ -163,6 +208,7 @@ export class B2bDatePicker {
163
208
  }
164
209
  isValidDate(day, month, year) {
165
210
  const date = new Date(year, month - 1, day);
211
+ const todayWithoutTime = new Date(this.today.getFullYear(), this.today.getMonth(), this.today.getDate());
166
212
  const isValidDay = date.getDate() === day;
167
213
  const isValidMonth = date.getMonth() + 1 === month;
168
214
  const isValidYear = date.getFullYear() === year && year >= 1900 && year <= 2100;
@@ -171,15 +217,16 @@ export class B2bDatePicker {
171
217
  return false;
172
218
  }
173
219
  let isValidRange = true;
174
- if (this.disablePastDates && date < this.todayWithoutTime) {
175
- this.errorMessage = this.DISABLED_DATE_ERROR_MESSAGE;
176
- isValidRange = false;
177
- }
178
- if (this.disableFutureDates && date > this.todayWithoutTime) {
179
- this.errorMessage = this.DISABLED_DATE_ERROR_MESSAGE;
180
- isValidRange = false;
181
- }
182
- if (this.disableWeekends && (date.getDay() == 0 || date.getDay() == 6)) {
220
+ if (DateUtils.isDisabledDate(date, {
221
+ disableDates: this.datesToBeDisabled,
222
+ disablePastDates: this.disablePastDates,
223
+ disableFutureDates: this.disableFutureDates,
224
+ disableWeekends: this.disableWeekends,
225
+ todayWithoutTime: todayWithoutTime,
226
+ disableEvery: this.normalizedDisableEvery,
227
+ disableDatesUntil: this.normalizedDisableDatesUntil,
228
+ disableDatesFrom: this.normalizedDisableDatesFrom,
229
+ })) {
183
230
  this.errorMessage = this.DISABLED_DATE_ERROR_MESSAGE;
184
231
  isValidRange = false;
185
232
  }
@@ -276,19 +323,21 @@ export class B2bDatePicker {
276
323
  }
277
324
  }
278
325
  render() {
279
- return (h(Host, { key: '8c47388da5b4d322847338e17106f6421e570f94' }, h("div", { key: 'a5c01d164a0fd8555df6ee8cd01380072832bc8a', class: "b2b-date-picker" }, h("div", { key: 'ce234fe5588126890b384d742c5fe9cc6482e298', class: "b2b-date-picker-label" }, this.label), h("div", { key: '017889d17ab599540bb4db90b25b90bad1c37f2e', class: {
326
+ if (!this.isWithWithinLimit())
327
+ return null;
328
+ return (h(Host, null, h("div", { class: "b2b-date-picker" }, h("div", { class: "b2b-date-picker-label" }, this.label), h("div", { style: { width: `${this.width}px` }, class: {
280
329
  'b2b-date-picker-input-wrapper': true,
281
330
  'b2b-date-picker-input-wrapper--focused': this.focused || this.showDatePicker,
282
331
  'b2b-date-picker-input-wrapper--error': this.invalid,
283
- } }, h("div", { key: 'dbb4c054fd05e75d4fd51cf37d8771062bfc4501', class: "b2b-date-picker-input-focus-wrapper", onClick: () => {
332
+ } }, h("div", { class: "b2b-date-picker-input-focus-wrapper", onClick: () => {
284
333
  this.moveFocusToInputComponent();
285
- } }, h("input", { key: 'f4e4a9a6ba7304d12d3e84290647df5d1e7acd15', type: "text", tabindex: 0, class: {
334
+ } }, h("input", { type: "text", tabindex: 0, class: {
286
335
  'b2b-date-picker-input': true,
287
336
  'b2b-date-picker-input--error': this.invalid,
288
337
  }, value: this.userInputDate, onInput: this.handleInputChange, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus, onBlur: () => {
289
338
  this.focused = false;
290
339
  this.handleFocusOut();
291
- } })), h("div", { key: 'c604c6f2908bc9d96f0f489fd4758e0fe6c8e5f9', class: "b2b-icons" }, this.userInputDate && (h("div", { tabIndex: 0, onClick: () => {
340
+ }, placeholder: this.placeholder })), h("div", { class: "b2b-icons" }, this.userInputDate && (h("div", { tabIndex: 0, onClick: () => {
292
341
  this.invalid = false;
293
342
  this.clearDateInput();
294
343
  }, class: "b2b-close-icon", onKeyDown: event => {
@@ -296,7 +345,7 @@ export class B2bDatePicker {
296
345
  this.invalid = false;
297
346
  this.clearDateInput();
298
347
  }
299
- } }, h("b2b-icon", { icon: "b2b_icon-close", "aria-label": "clear input", clickable: true }))), h("div", { key: 'c3e12e0904a2ee72ff672415e49e0ebaa48e46d9', tabindex: 0, onClick: () => {
348
+ } }, h("b2b-icon-100", { icon: "b2b_icon-close", "aria-label": "clear input", clickable: true }))), h("div", { tabindex: 0, onClick: () => {
300
349
  if (this.invalid) {
301
350
  this.invalid = false;
302
351
  }
@@ -308,17 +357,15 @@ export class B2bDatePicker {
308
357
  }
309
358
  this.showHideDatePicker();
310
359
  }
311
- }, class: "b2b-event-icon" }, h("b2b-icon", { key: 'a38cbfb24b84ca95bcd2507357e3e003cd5fd708', "aria-label": this.showDatePicker
360
+ }, class: "b2b-event-icon" }, h("b2b-icon-100", { "aria-label": this.showDatePicker
312
361
  ? 'close date picker'
313
- : 'open date picker', icon: "b2b_icon-event", clickable: true }))))), h("div", { key: 'addb043cc83121ad0e70611a1621f95d473f7cd1', class: {
362
+ : 'open date picker', icon: "b2b_icon-event", clickable: true }))))), h("div", { class: {
314
363
  'b2b-date-picker-body': true,
315
364
  'b2b-date-picker-body--hidden': !this.showDatePicker,
316
- } }, this.datePickerView === DatePickerView.Days && (h("div", null, h("b2b-date-picker-header", { selectedMonth: this.selectedMonth, selectedYear: this.selectedYear }), h("b2b-date-picker-days-header", null), h("b2b-date-picker-days", { selectedMonth: this.selectedMonth, selectedYear: this.selectedYear, selectedDay: this.selectedDay, disableWeekends: this.disableWeekends, disableFutureDates: this.disableFutureDates, disablePastDates: this.disablePastDates }))), this.datePickerView === DatePickerView.Months && (h("b2b-date-picker-months", { selectedMonth: this.selectedMonth })), this.datePickerView === DatePickerView.Years && (h("b2b-date-picker-years", { selectedYear: this.selectedYear }))), this.showDatePicker && (h("div", { class: "b2b-date-picker__backdrop", onClick: this.handleBackdropDismiss })), !this.showDatePicker && (h("span", { class: {
365
+ } }, this.datePickerView === DatePickerView.Days && (h("div", null, h("b2b-date-picker-header", { language: this.language, selectedMonth: this.selectedMonth, selectedYear: this.selectedYear }), h("b2b-date-picker-days-header", { language: this.language }), h("b2b-date-picker-days", { selectedMonth: this.selectedMonth, selectedYear: this.selectedYear, selectedDay: this.selectedDay, disableWeekends: this.disableWeekends, disableFutureDates: this.disableFutureDates, disablePastDates: this.disablePastDates, disableDates: this.datesToBeDisabled, disableDatesUntil: this.normalizedDisableDatesUntil, disableEvery: this.normalizedDisableEvery, disableDatesFrom: this.normalizedDisableDatesFrom }))), this.datePickerView === DatePickerView.Months && (h("b2b-date-picker-months", { language: this.language, selectedMonth: this.selectedMonth })), this.datePickerView === DatePickerView.Years && (h("b2b-date-picker-years", { selectedYear: this.selectedYear }))), this.showDatePicker && (h("div", { class: "b2b-date-picker__backdrop", onClick: this.handleBackdropDismiss })), !this.showDatePicker && (h("span", { class: {
317
366
  'b2b-date-picker-hint': true,
318
367
  'b2b-date-picker-hint--error': this.invalid,
319
- } }, this.invalid
320
- ? this.errorMessage
321
- : this.showHint && 'Format: TT.MM.JJJJ'))));
368
+ } }, this.invalid ? this.errorMessage : this.showHint && this.hint))));
322
369
  }
323
370
  static get is() { return "b2b-date-picker"; }
324
371
  static get encapsulation() { return "shadow"; }
@@ -385,6 +432,24 @@ export class B2bDatePicker {
385
432
  "attribute": "disable-weekends",
386
433
  "reflect": false
387
434
  },
435
+ "disableDates": {
436
+ "type": "string",
437
+ "mutable": false,
438
+ "complexType": {
439
+ "original": "string | string[]",
440
+ "resolved": "string | string[]",
441
+ "references": {}
442
+ },
443
+ "required": false,
444
+ "optional": false,
445
+ "docs": {
446
+ "tags": [],
447
+ "text": "The dates that are part of this array are disabled. By default, this is an empty array."
448
+ },
449
+ "attribute": "disable-dates",
450
+ "reflect": false,
451
+ "defaultValue": "[]"
452
+ },
388
453
  "label": {
389
454
  "type": "string",
390
455
  "mutable": false,
@@ -401,7 +466,7 @@ export class B2bDatePicker {
401
466
  },
402
467
  "attribute": "label",
403
468
  "reflect": false,
404
- "defaultValue": "'Zeitraum ausw\u00E4hlen'"
469
+ "defaultValue": "'Zeitpunkt ausw\u00E4hlen'"
405
470
  },
406
471
  "preSelectedDate": {
407
472
  "type": "string",
@@ -438,6 +503,130 @@ export class B2bDatePicker {
438
503
  "attribute": "show-hint",
439
504
  "reflect": false,
440
505
  "defaultValue": "true"
506
+ },
507
+ "width": {
508
+ "type": "number",
509
+ "mutable": false,
510
+ "complexType": {
511
+ "original": "number",
512
+ "resolved": "number",
513
+ "references": {}
514
+ },
515
+ "required": false,
516
+ "optional": false,
517
+ "docs": {
518
+ "tags": [],
519
+ "text": "The width of the input field of the date picker in pixel. Minimum is 250, maximum is 600px."
520
+ },
521
+ "attribute": "width",
522
+ "reflect": false,
523
+ "defaultValue": "300"
524
+ },
525
+ "disableDays": {
526
+ "type": "string",
527
+ "mutable": false,
528
+ "complexType": {
529
+ "original": "| 'Mo'\n | 'Di'\n | 'Mi'\n | 'Do'\n | 'Fr'\n | 'Sa'\n | 'So'\n | 'Tu'\n | 'We'\n | 'Th'\n | 'Su'\n | string\n | string[]",
530
+ "resolved": "string | string[]",
531
+ "references": {}
532
+ },
533
+ "required": false,
534
+ "optional": false,
535
+ "docs": {
536
+ "tags": [],
537
+ "text": "Disable the days of the week specified here."
538
+ },
539
+ "attribute": "disable-days",
540
+ "reflect": false,
541
+ "defaultValue": "[]"
542
+ },
543
+ "disableDatesUntil": {
544
+ "type": "string",
545
+ "mutable": false,
546
+ "complexType": {
547
+ "original": "string",
548
+ "resolved": "string",
549
+ "references": {}
550
+ },
551
+ "required": false,
552
+ "optional": false,
553
+ "docs": {
554
+ "tags": [],
555
+ "text": "All the dates until the given specified date will be disabled."
556
+ },
557
+ "attribute": "disable-dates-until",
558
+ "reflect": false
559
+ },
560
+ "disableDatesFrom": {
561
+ "type": "string",
562
+ "mutable": false,
563
+ "complexType": {
564
+ "original": "string",
565
+ "resolved": "string",
566
+ "references": {}
567
+ },
568
+ "required": false,
569
+ "optional": false,
570
+ "docs": {
571
+ "tags": [],
572
+ "text": "All the dates until the given specified date will be disabled."
573
+ },
574
+ "attribute": "disable-dates-from",
575
+ "reflect": false
576
+ },
577
+ "hint": {
578
+ "type": "string",
579
+ "mutable": false,
580
+ "complexType": {
581
+ "original": "string",
582
+ "resolved": "string",
583
+ "references": {}
584
+ },
585
+ "required": false,
586
+ "optional": false,
587
+ "docs": {
588
+ "tags": [],
589
+ "text": "Hint text that should be displayed when showHint is true"
590
+ },
591
+ "attribute": "hint",
592
+ "reflect": false,
593
+ "defaultValue": "'Format: TT.MM.JJJJ'"
594
+ },
595
+ "placeholder": {
596
+ "type": "string",
597
+ "mutable": false,
598
+ "complexType": {
599
+ "original": "string",
600
+ "resolved": "string",
601
+ "references": {}
602
+ },
603
+ "required": false,
604
+ "optional": false,
605
+ "docs": {
606
+ "tags": [],
607
+ "text": "The placeholder shown in the date picker."
608
+ },
609
+ "attribute": "placeholder",
610
+ "reflect": true,
611
+ "defaultValue": "null"
612
+ },
613
+ "language": {
614
+ "type": "string",
615
+ "mutable": false,
616
+ "complexType": {
617
+ "original": "'de' | 'en'",
618
+ "resolved": "\"de\" | \"en\"",
619
+ "references": {}
620
+ },
621
+ "required": false,
622
+ "optional": false,
623
+ "docs": {
624
+ "tags": [],
625
+ "text": "The language for month and the weekdays will be decided based on the given input. By default, this will be de which is german"
626
+ },
627
+ "attribute": "language",
628
+ "reflect": false,
629
+ "defaultValue": "'de'"
441
630
  }
442
631
  };
443
632
  }
@@ -452,7 +641,11 @@ export class B2bDatePicker {
452
641
  "selectedDate": {},
453
642
  "userInputDate": {},
454
643
  "invalid": {},
455
- "errorMessage": {}
644
+ "errorMessage": {},
645
+ "datesToBeDisabled": {},
646
+ "normalizedDisableEvery": {},
647
+ "normalizedDisableDatesUntil": {},
648
+ "normalizedDisableDatesFrom": {}
456
649
  };
457
650
  }
458
651
  static get events() {
@@ -20,11 +20,19 @@ const meta = {
20
20
  disablePastDates: false,
21
21
  disableFutureDates: false,
22
22
  disableWeekends: false,
23
+ disableDates: [],
23
24
  label: 'Zeitraum auswählen',
24
25
  preSelectedDate: '',
25
26
  showHint: true,
27
+ disableDays: [],
28
+ disableDatesUntil: '',
29
+ disableDatesFrom: '',
30
+ hint: 'Format: TT.MM.JJJJ',
31
+ placeholder: '',
32
+ width: 600,
33
+ language: 'de',
26
34
  },
27
- argTypes: Object.assign(Object.assign({}, getArgTypes('b2b-date-picker')), { preSelectedDate: { control: false } }),
35
+ argTypes: Object.assign(Object.assign({}, getArgTypes('b2b-date-picker')), { preSelectedDate: { control: false }, width: { control: { type: 'range', min: 300, max: 600, step: 1 } } }),
28
36
  render: (_a) => {
29
37
  var args = __rest(_a, []);
30
38
  if (args.preSelectedDate === '') {
@@ -34,8 +42,16 @@ const meta = {
34
42
  disable-past-dates=${args.disablePastDates}
35
43
  disable-future-dates=${args.disableFutureDates}
36
44
  disable-weekends=${args.disableWeekends}
45
+ disable-dates=${args.disableDates}
37
46
  .pre-selected-date="${args.preSelectedDate}"
38
- show-hint=${args.showHint}></b2b-date-picker>
47
+ disable-days=${args.disableDays}
48
+ disable-dates-until=${args.disableDatesUntil}
49
+ disable-dates-from=${args.disableDatesFrom}
50
+ show-hint=${args.showHint}
51
+ hint=${args.hint}
52
+ placeholder=${args.placeholder}
53
+ width=${args.width}
54
+ language=${args.language}></b2b-date-picker>
39
55
  </div>`;
40
56
  }
41
57
  else {
@@ -45,20 +61,28 @@ const meta = {
45
61
  disable-past-dates=${args.disablePastDates}
46
62
  disable-future-dates=${args.disableFutureDates}
47
63
  disable-weekends=${args.disableWeekends}
64
+ disable-dates=${args.disableDates}
48
65
  pre-selected-date="${args.preSelectedDate}"
49
- show-hint=${args.showHint}></b2b-date-picker>
66
+ disable-days=${args.disableDays}
67
+ disable-dates-until=${args.disableDatesUntil}
68
+ disable-dates-from=${args.disableDatesFrom}
69
+ show-hint=${args.showHint}
70
+ hint=${args.hint}
71
+ placeholder=${args.placeholder}
72
+ width=${args.width}
73
+ language=${args.language}></b2b-date-picker>
50
74
  </div>`;
51
75
  }
52
76
  },
53
77
  };
54
78
  export default meta;
55
79
  export const Default = {
56
- args: Object.assign({}, meta.args),
80
+ args: Object.assign(Object.assign({}, meta.args), { preSelectedDate: '01.01.2025' }),
57
81
  play: async ({ canvasElement }) => {
58
82
  setTimeout(async () => {
59
83
  var _a;
60
84
  const datePicker = canvasElement.querySelector('b2b-date-picker');
61
- const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-wrapper');
85
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
62
86
  await userEvent.click(b2bDatePickerInputWrapper);
63
87
  }, 500);
64
88
  },
@@ -69,7 +93,7 @@ export const DisablePastDates = {
69
93
  setTimeout(async () => {
70
94
  var _a;
71
95
  const datePicker = canvasElement.querySelector('b2b-date-picker');
72
- const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-wrapper');
96
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
73
97
  await userEvent.click(b2bDatePickerInputWrapper);
74
98
  }, 500);
75
99
  },
@@ -80,18 +104,90 @@ export const DisableFutureDates = {
80
104
  setTimeout(async () => {
81
105
  var _a;
82
106
  const datePicker = canvasElement.querySelector('b2b-date-picker');
83
- const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-wrapper');
107
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
84
108
  await userEvent.click(b2bDatePickerInputWrapper);
85
109
  }, 500);
86
110
  },
87
111
  };
88
112
  export const DisableWeekends = {
89
- args: Object.assign(Object.assign({}, meta.args), { disableWeekends: true }),
113
+ args: Object.assign(Object.assign({}, meta.args), { disableWeekends: true, preSelectedDate: '01.01.2025' }),
90
114
  play: async ({ canvasElement }) => {
91
115
  setTimeout(async () => {
92
116
  var _a;
93
117
  const datePicker = canvasElement.querySelector('b2b-date-picker');
94
- const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-wrapper');
118
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
119
+ await userEvent.click(b2bDatePickerInputWrapper);
120
+ }, 500);
121
+ },
122
+ };
123
+ export const DisableDates = {
124
+ args: Object.assign(Object.assign({}, meta.args), { preSelectedDate: '01.01.2025', disableDates: '["10.01.2025", "21.01.2025"]' }),
125
+ play: async ({ canvasElement }) => {
126
+ setTimeout(async () => {
127
+ var _a;
128
+ const datePicker = canvasElement.querySelector('b2b-date-picker');
129
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
130
+ await userEvent.click(b2bDatePickerInputWrapper);
131
+ }, 500);
132
+ },
133
+ };
134
+ export const DisableDays = {
135
+ args: Object.assign(Object.assign({}, meta.args), { preSelectedDate: '01.01.2025', disableDays: '["Mo", "Tu"]' }),
136
+ play: async ({ canvasElement }) => {
137
+ setTimeout(async () => {
138
+ var _a;
139
+ const datePicker = canvasElement.querySelector('b2b-date-picker');
140
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
141
+ await userEvent.click(b2bDatePickerInputWrapper);
142
+ }, 500);
143
+ },
144
+ };
145
+ export const DisableDatesUntil = {
146
+ args: Object.assign(Object.assign({}, meta.args), { preSelectedDate: '26.01.2025', disableDatesUntil: '20.01.2025' }),
147
+ play: async ({ canvasElement }) => {
148
+ setTimeout(async () => {
149
+ var _a;
150
+ const datePicker = canvasElement.querySelector('b2b-date-picker');
151
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
152
+ await userEvent.click(b2bDatePickerInputWrapper);
153
+ }, 500);
154
+ },
155
+ };
156
+ export const DisableDatesFrom = {
157
+ args: Object.assign(Object.assign({}, meta.args), { preSelectedDate: '01.01.2025', disableDatesFrom: '10.01.2025' }),
158
+ play: async ({ canvasElement }) => {
159
+ setTimeout(async () => {
160
+ var _a;
161
+ const datePicker = canvasElement.querySelector('b2b-date-picker');
162
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
163
+ await userEvent.click(b2bDatePickerInputWrapper);
164
+ }, 500);
165
+ },
166
+ };
167
+ export const WithCustomHintMessage = {
168
+ args: Object.assign(Object.assign({}, meta.args), { showHint: true, hint: 'This is a long hint text message which is longer than the normal default hint message' }),
169
+ };
170
+ export const WithPlaceholder = {
171
+ args: Object.assign(Object.assign({}, meta.args), { preSelectedDate: '01.01.2025', placeholder: 'this is date picker' }),
172
+ };
173
+ export const WithWidth = {
174
+ args: Object.assign(Object.assign({}, meta.args), { width: 500, preSelectedDate: '01.01.2025' }),
175
+ play: async ({ canvasElement }) => {
176
+ setTimeout(async () => {
177
+ var _a;
178
+ const datePicker = canvasElement.querySelector('b2b-date-picker');
179
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
180
+ await userEvent.click(b2bDatePickerInputWrapper);
181
+ }, 500);
182
+ },
183
+ };
184
+ export const EnglishDatepicker = {
185
+ args: Object.assign(Object.assign({}, meta.args), { language: 'en', preSelectedDate: '01.01.2025' }),
186
+ play: async ({ canvasElement }) => {
187
+ setTimeout(async () => {
188
+ var _a;
189
+ const datePicker = canvasElement.querySelector('b2b-date-picker');
190
+ const b2bDatePickerInputWrapper = (_a = datePicker.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-date-picker-input-focus-wrapper');
95
191
  await userEvent.click(b2bDatePickerInputWrapper);
96
192
  }, 500);
97
193
  },
@@ -1,4 +1,4 @@
1
- export const Months = [
1
+ export const MonthsGerman = [
2
2
  'Jan',
3
3
  'Feb',
4
4
  'Mär',
@@ -12,7 +12,38 @@ export const Months = [
12
12
  'Nov',
13
13
  'Dez',
14
14
  ];
15
- export const Weekdays = ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'];
15
+ export const WeekdaysGerman = [
16
+ 'Mo',
17
+ 'Di',
18
+ 'Mi',
19
+ 'Do',
20
+ 'Fr',
21
+ 'Sa',
22
+ 'So',
23
+ ];
24
+ export const WeekdaysEnglish = [
25
+ 'Mo',
26
+ 'Tu',
27
+ 'We',
28
+ 'Th',
29
+ 'Fr',
30
+ 'Sa',
31
+ 'Su',
32
+ ];
33
+ export const MonthsEnglish = [
34
+ 'Jan',
35
+ 'Feb',
36
+ 'Mar',
37
+ 'Apr',
38
+ 'May',
39
+ 'Jun',
40
+ 'Jul',
41
+ 'Aug',
42
+ 'Sep',
43
+ 'Oct',
44
+ 'Nov',
45
+ 'Dec',
46
+ ];
16
47
  export var DatePickerView;
17
48
  (function (DatePickerView) {
18
49
  DatePickerView["Days"] = "Days";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 21 Jan 2025 10:05:32 GMT
3
+ * Generated on Tue, 18 Feb 2025 12:27:58 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -35,7 +35,8 @@
35
35
  --b2b-color-table-selected-default: #cce9ff;
36
36
  --b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
37
37
  --b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
38
- --b2b-color-hover: #e6f4ff;
38
+ --b2b-color-hover-black: #3b3b3b;
39
+ --b2b-color-hover-default: #e6f4ff;
39
40
  --b2b-color-info-100: #003264;
40
41
  --b2b-color-info-50: #ccd6e0;
41
42
  --b2b-color-success-100: #326400;
@@ -122,7 +123,7 @@
122
123
  }
123
124
  /**
124
125
  * Do not edit directly
125
- * Generated on Tue, 21 Jan 2025 10:05:32 GMT
126
+ * Generated on Tue, 18 Feb 2025 12:27:58 GMT
126
127
  */
127
128
  :root [data-theme="dark"] {
128
129
  --b2b-size-200: 5rem; /* 80px */
@@ -153,7 +154,8 @@
153
154
  --b2b-font-weight-normal: 500;
154
155
  --b2b-font-weight-thin: 100;
155
156
  --b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
156
- --b2b-color-hover: #e6f4ff;
157
+ --b2b-color-hover-black: #3b3b3b;
158
+ --b2b-color-hover-default: #e6f4ff;
157
159
  --b2b-color-info-100: #003264;
158
160
  --b2b-color-info-50: #ccd6e0;
159
161
  --b2b-color-success-100: #326400;
@@ -43,11 +43,11 @@ export class DropdownComponent {
43
43
  selectElement.append(...options);
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '5ab2b6da866b7dfa16a70986b930c4ab6c498820', class: {
46
+ return (h(Host, { key: 'e4eb8019f2b434acde4f3adbe597bb255e0cf872', class: {
47
47
  'b2b-dropdown': true,
48
48
  'b2b-dropdown--error': this.invalid && !this.disabled,
49
49
  'b2b-dropdown--disabled': this.disabled,
50
- } }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: 'e086977e610c986f0d6f3539ed31fdee0d7229e7', class: "b2b-dropdown__select", "aria-labelledby": this.name, name: this.name, disabled: this.disabled, onChange: this.onSelect, onFocus: this.onFocus, onBlur: this.onBlur }), (this.hint !== undefined && !this.invalid) ||
50
+ } }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '3a780ca3f170a59ef73f3e72d3668f9941812e9c', class: "b2b-dropdown__select", "aria-labelledby": this.name, name: this.name, disabled: this.disabled, onChange: this.onSelect, onFocus: this.onFocus, onBlur: this.onBlur }), (this.hint !== undefined && !this.invalid) ||
51
51
  (this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
52
52
  }
53
53
  static get is() { return "b2b-dropdown"; }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 21 Jan 2025 10:05:32 GMT
3
+ * Generated on Tue, 18 Feb 2025 12:27:58 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -35,7 +35,8 @@
35
35
  --b2b-color-table-selected-default: #cce9ff;
36
36
  --b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
37
37
  --b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
38
- --b2b-color-hover: #e6f4ff;
38
+ --b2b-color-hover-black: #3b3b3b;
39
+ --b2b-color-hover-default: #e6f4ff;
39
40
  --b2b-color-info-100: #003264;
40
41
  --b2b-color-info-50: #ccd6e0;
41
42
  --b2b-color-success-100: #326400;
@@ -122,7 +123,7 @@
122
123
  }
123
124
  /**
124
125
  * Do not edit directly
125
- * Generated on Tue, 21 Jan 2025 10:05:32 GMT
126
+ * Generated on Tue, 18 Feb 2025 12:27:58 GMT
126
127
  */
127
128
  :root [data-theme="dark"] {
128
129
  --b2b-size-200: 5rem; /* 80px */
@@ -153,7 +154,8 @@
153
154
  --b2b-font-weight-normal: 500;
154
155
  --b2b-font-weight-thin: 100;
155
156
  --b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
156
- --b2b-color-hover: #e6f4ff;
157
+ --b2b-color-hover-black: #3b3b3b;
158
+ --b2b-color-hover-default: #e6f4ff;
157
159
  --b2b-color-info-100: #003264;
158
160
  --b2b-color-info-50: #ccd6e0;
159
161
  --b2b-color-success-100: #326400;
@@ -223,7 +225,7 @@
223
225
  }
224
226
  :host(.b2b-flyout-menu__option:hover),
225
227
  :host(.b2b-flyout-menu__option:focus) {
226
- background-color: var(--b2b-color-hover);
228
+ background-color: var(--b2b-color-hover-default);
227
229
  outline: none;
228
230
  }
229
231
  :host(.b2b-flyout-menu__option--disabled):hover,
@@ -16,7 +16,7 @@ export class FlyoutMenuOptionComponent {
16
16
  }
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '549433cce616c4ecaaa63f78a9d28f5c1d90a0d1', class: {
19
+ return (h(Host, { key: '3dc359231f65e0d900c87a90fb16917dec1cef05', class: {
20
20
  'b2b-flyout-menu__option': true,
21
21
  'b2b-flyout-menu__option--disabled': this.disabled,
22
22
  'b2b-flyout-menu__option--separator': this.separator,