@otto-de/b2b-core-components 1.30.0 → 1.31.1

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 (474) hide show
  1. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  2. package/dist/b2b-core-components/p-00666ca7.entry.js +1 -0
  3. package/dist/b2b-core-components/p-0a63f5f8.entry.js +1 -0
  4. package/dist/b2b-core-components/{p-9cfba835.entry.js → p-0bf05f33.entry.js} +1 -1
  5. package/dist/b2b-core-components/{p-68e07419.entry.js → p-0edac105.entry.js} +1 -1
  6. package/dist/b2b-core-components/p-0ffc90ee.entry.js +1 -0
  7. package/dist/b2b-core-components/p-168c8684.entry.js +1 -0
  8. package/dist/b2b-core-components/p-19392020.js +1 -0
  9. package/dist/b2b-core-components/p-1a908833.entry.js +1 -0
  10. package/dist/b2b-core-components/{p-a37d6cea.entry.js → p-1dff8b34.entry.js} +1 -1
  11. package/dist/b2b-core-components/p-2d5df8f7.entry.js +1 -0
  12. package/dist/b2b-core-components/p-2dc0c5c0.entry.js +1 -0
  13. package/dist/b2b-core-components/p-318eb15e.entry.js +1 -0
  14. package/dist/b2b-core-components/p-33c01bb2.entry.js +1 -0
  15. package/dist/b2b-core-components/p-375cefbd.entry.js +1 -0
  16. package/dist/b2b-core-components/p-383d0a10.entry.js +1 -0
  17. package/dist/b2b-core-components/{p-08577a40.entry.js → p-400fa973.entry.js} +1 -1
  18. package/dist/b2b-core-components/p-413729d1.entry.js +1 -0
  19. package/dist/b2b-core-components/p-4528e98c.entry.js +1 -0
  20. package/dist/b2b-core-components/p-49bafb74.entry.js +1 -0
  21. package/dist/b2b-core-components/{p-745ad406.entry.js → p-4bc0ec9a.entry.js} +1 -1
  22. package/dist/b2b-core-components/p-564c62d0.entry.js +1 -0
  23. package/dist/b2b-core-components/{p-6040dca2.entry.js → p-6025d667.entry.js} +1 -1
  24. package/dist/b2b-core-components/p-61b2a6ad.js +1 -0
  25. package/dist/b2b-core-components/{p-54d478b6.entry.js → p-661d0249.entry.js} +1 -1
  26. package/dist/b2b-core-components/p-6dd7fd7b.entry.js +1 -0
  27. package/dist/b2b-core-components/p-6ff5114b.entry.js +1 -0
  28. package/dist/b2b-core-components/p-742a18f1.entry.js +1 -0
  29. package/dist/b2b-core-components/{p-23acc468.entry.js → p-781611fb.entry.js} +1 -1
  30. package/dist/b2b-core-components/{p-0847e62e.entry.js → p-7bb6f06e.entry.js} +1 -1
  31. package/dist/b2b-core-components/p-7dd8f3cb.entry.js +1 -0
  32. package/dist/b2b-core-components/p-815d7a53.entry.js +1 -0
  33. package/dist/b2b-core-components/{p-5063e5b7.entry.js → p-850c8e01.entry.js} +1 -1
  34. package/dist/b2b-core-components/{p-e8b1fee4.entry.js → p-86ff8e6c.entry.js} +1 -1
  35. package/dist/b2b-core-components/{p-552f43c1.entry.js → p-9819f622.entry.js} +1 -1
  36. package/dist/b2b-core-components/{p-ccf78e23.entry.js → p-9dde1af0.entry.js} +1 -1
  37. package/dist/b2b-core-components/{p-24c94653.entry.js → p-9f88b476.entry.js} +1 -1
  38. package/dist/b2b-core-components/p-a155219a.entry.js +1 -0
  39. package/dist/b2b-core-components/p-a96c8ba0.entry.js +1 -0
  40. package/dist/b2b-core-components/p-b33059ab.entry.js +1 -0
  41. package/dist/b2b-core-components/p-b5fdf7df.entry.js +1 -0
  42. package/dist/b2b-core-components/p-b6a753e8.js +2 -0
  43. package/dist/b2b-core-components/p-bba0b41b.entry.js +1 -0
  44. package/dist/b2b-core-components/p-be93498d.entry.js +1 -0
  45. package/dist/b2b-core-components/p-bfbe4aff.entry.js +1 -0
  46. package/dist/b2b-core-components/p-c597637e.entry.js +1 -0
  47. package/dist/b2b-core-components/{p-eb01bb4f.entry.js → p-c67bcebc.entry.js} +1 -1
  48. package/dist/b2b-core-components/p-cb4cc427.entry.js +1 -0
  49. package/dist/b2b-core-components/{p-a63dfd99.entry.js → p-d1c8105b.entry.js} +1 -1
  50. package/dist/b2b-core-components/{p-2f9efe3f.entry.js → p-d26ec403.entry.js} +1 -1
  51. package/dist/b2b-core-components/p-d3204d75.entry.js +1 -0
  52. package/dist/b2b-core-components/p-d6457a1d.entry.js +1 -0
  53. package/dist/b2b-core-components/p-db205434.entry.js +1 -0
  54. package/dist/b2b-core-components/p-e1255160.js +1 -0
  55. package/dist/b2b-core-components/p-e520c7cf.entry.js +1 -0
  56. package/dist/b2b-core-components/p-f2fdce36.entry.js +1 -0
  57. package/dist/b2b-core-components/p-f5786cad.entry.js +1 -0
  58. package/dist/b2b-core-components/{p-58fb3508.entry.js → p-f5e9dbf4.entry.js} +1 -1
  59. package/dist/b2b-core-components/p-f9e278da.entry.js +1 -0
  60. package/dist/b2b-core-components/p-fa85955c.entry.js +1 -0
  61. package/dist/b2b-core-components/{p-eb78706f.entry.js → p-fae54521.entry.js} +1 -1
  62. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  63. package/dist/cjs/b2b-alert.cjs.entry.js +13 -15
  64. package/dist/cjs/b2b-anchor.cjs.entry.js +8 -10
  65. package/dist/cjs/b2b-background-box.cjs.entry.js +7 -10
  66. package/dist/cjs/b2b-breadcrumb-item.cjs.entry.js +10 -8
  67. package/dist/cjs/b2b-breadcrumb.cjs.entry.js +10 -9
  68. package/dist/cjs/b2b-button_2.cjs.entry.js +20 -25
  69. package/dist/cjs/b2b-card.cjs.entry.js +8 -8
  70. package/dist/cjs/b2b-checkbox-group.cjs.entry.js +15 -13
  71. package/dist/cjs/b2b-checkbox.cjs.entry.js +22 -19
  72. package/dist/cjs/b2b-chip-component_2.cjs.entry.js +24 -20
  73. package/dist/cjs/b2b-core-components.cjs.js +14 -13
  74. package/dist/cjs/b2b-date-picker-days_5.cjs.entry.js +50 -40
  75. package/dist/cjs/b2b-date-picker.cjs.entry.js +37 -36
  76. package/dist/cjs/b2b-dropdown.cjs.entry.js +26 -24
  77. package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +10 -8
  78. package/dist/cjs/b2b-flyout-menu.cjs.entry.js +9 -7
  79. package/dist/cjs/b2b-grid-col.cjs.entry.js +6 -4
  80. package/dist/cjs/b2b-grid-row.cjs.entry.js +5 -7
  81. package/dist/cjs/b2b-grid.cjs.entry.js +6 -4
  82. package/dist/cjs/b2b-headline.cjs.entry.js +5 -5
  83. package/dist/cjs/b2b-icon-100.cjs.entry.js +12 -12
  84. package/dist/cjs/b2b-icon-50.cjs.entry.js +10 -9
  85. package/dist/cjs/b2b-icon.cjs.entry.js +12 -12
  86. package/dist/cjs/b2b-input-group_2.cjs.entry.js +24 -24
  87. package/dist/cjs/b2b-input-label.cjs.entry.js +7 -6
  88. package/dist/cjs/b2b-input_2.cjs.entry.js +33 -33
  89. package/dist/cjs/b2b-label.cjs.entry.js +7 -5
  90. package/dist/cjs/b2b-modal.cjs.entry.js +16 -18
  91. package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +27 -24
  92. package/dist/cjs/b2b-pagination.cjs.entry.js +12 -13
  93. package/dist/cjs/b2b-paragraph.cjs.entry.js +7 -10
  94. package/dist/cjs/b2b-progress-bar.cjs.entry.js +12 -9
  95. package/dist/cjs/b2b-radio-button.cjs.entry.js +19 -15
  96. package/dist/cjs/b2b-radio-group.cjs.entry.js +17 -13
  97. package/dist/cjs/b2b-required-separator.cjs.entry.js +6 -4
  98. package/dist/cjs/b2b-rounded-icon.cjs.entry.js +10 -12
  99. package/dist/cjs/b2b-scrollable-container.cjs.entry.js +6 -3
  100. package/dist/cjs/b2b-search.cjs.entry.js +10 -9
  101. package/dist/cjs/b2b-separator.cjs.entry.js +6 -4
  102. package/dist/cjs/b2b-shimmer.cjs.entry.js +9 -3
  103. package/dist/cjs/b2b-snackbar.cjs.entry.js +19 -18
  104. package/dist/cjs/b2b-tab-group.cjs.entry.js +6 -6
  105. package/dist/cjs/b2b-tab-panel.cjs.entry.js +6 -3
  106. package/dist/cjs/b2b-tab.cjs.entry.js +8 -8
  107. package/dist/cjs/b2b-table-cell_2.cjs.entry.js +30 -37
  108. package/dist/cjs/b2b-table-row.cjs.entry.js +19 -17
  109. package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +16 -23
  110. package/dist/cjs/b2b-table.cjs.entry.js +10 -13
  111. package/dist/cjs/b2b-textarea.cjs.entry.js +23 -17
  112. package/dist/cjs/b2b-toggle-button.cjs.entry.js +14 -10
  113. package/dist/cjs/b2b-toggle-chip.cjs.entry.js +14 -10
  114. package/dist/cjs/b2b-toggle-group.cjs.entry.js +11 -7
  115. package/dist/cjs/b2b-toggle-switch.cjs.entry.js +15 -13
  116. package/dist/cjs/b2b-tooltip.cjs.entry.js +12 -11
  117. package/dist/cjs/b2b-wizard-icon.cjs.entry.js +9 -8
  118. package/dist/cjs/b2b-wizard-step.cjs.entry.js +8 -9
  119. package/dist/cjs/b2b-wizard.cjs.entry.js +10 -12
  120. package/dist/cjs/index-668808fd.js +2516 -0
  121. package/dist/cjs/loader.cjs.js +6 -3
  122. package/dist/cjs/{request-Dwsj-gbA.js → request-801c6ba1.js} +0 -2
  123. package/dist/cjs/{utils--ZrBSHVe.js → utils-499e9db5.js} +9 -2
  124. package/dist/collection/collection-manifest.json +2 -2
  125. package/dist/collection/components/alert/alert.e2e.js +67 -0
  126. package/dist/collection/components/alert/alert.js +12 -27
  127. package/dist/collection/components/anchor/anchor.js +9 -26
  128. package/dist/collection/components/anchor/anchor.spec.js +68 -0
  129. package/dist/collection/components/background-box/background-box.e2e.js +63 -0
  130. package/dist/collection/components/background-box/background-box.js +8 -26
  131. package/dist/collection/components/background-box/background-box.spec.js +64 -0
  132. package/dist/collection/components/breadcrumb/breadcrumb-item.js +7 -14
  133. package/dist/collection/components/breadcrumb/breadcrumb.e2e.js +50 -0
  134. package/dist/collection/components/breadcrumb/breadcrumb.js +6 -12
  135. package/dist/collection/components/button/button.e2e.js +80 -0
  136. package/dist/collection/components/button/button.js +23 -52
  137. package/dist/collection/components/card/card.e2e.js +110 -0
  138. package/dist/collection/components/card/card.js +5 -14
  139. package/dist/collection/components/card/card.spec.js +32 -0
  140. package/dist/collection/components/checkbox/checkbox.e2e.js +38 -0
  141. package/dist/collection/components/checkbox/checkbox.js +26 -50
  142. package/dist/collection/components/checkbox/checkbox.spec.js +45 -0
  143. package/dist/collection/components/checkbox-group/checkbox-group.e2e.js +83 -0
  144. package/dist/collection/components/checkbox-group/checkbox-group.js +16 -31
  145. package/dist/collection/components/checkbox-group/checkbox-group.spec.js +38 -0
  146. package/dist/collection/components/chip/chip.e2e.js +99 -0
  147. package/dist/collection/components/chip/chip.js +17 -30
  148. package/dist/collection/components/date-picker/date-picker-days-header.js +3 -6
  149. package/dist/collection/components/date-picker/date-picker-days.js +20 -44
  150. package/dist/collection/components/date-picker/date-picker-header.e2e.js +38 -0
  151. package/dist/collection/components/date-picker/date-picker-header.js +10 -15
  152. package/dist/collection/components/date-picker/date-picker-months.e2e.js +39 -0
  153. package/dist/collection/components/date-picker/date-picker-months.js +5 -9
  154. package/dist/collection/components/date-picker/date-picker-years.e2e.js +39 -0
  155. package/dist/collection/components/date-picker/date-picker-years.js +4 -5
  156. package/dist/collection/components/date-picker/date-picker.e2e.js +137 -0
  157. package/dist/collection/components/date-picker/date-picker.js +44 -76
  158. package/dist/collection/components/dropdown/dropdown.e2e.js +89 -0
  159. package/dist/collection/components/dropdown/dropdown.js +27 -46
  160. package/dist/collection/components/dropdown/dropdown.spec.js +52 -0
  161. package/dist/collection/components/flyout-menu/flyout-menu-option.js +7 -14
  162. package/dist/collection/components/flyout-menu/flyout-menu.e2e.js +97 -0
  163. package/dist/collection/components/flyout-menu/flyout-menu.js +5 -8
  164. package/dist/collection/components/grid/column.js +5 -9
  165. package/dist/collection/components/grid/grid.e2e.js +17 -0
  166. package/dist/collection/components/grid/grid.js +2 -5
  167. package/dist/collection/components/grid/row.js +6 -18
  168. package/dist/collection/components/headline/headline.e2e.js +13 -0
  169. package/dist/collection/components/headline/headline.js +3 -12
  170. package/dist/collection/components/headline/headline.spec.js +67 -0
  171. package/dist/collection/components/icon/icon.js +11 -24
  172. package/dist/collection/components/icon/icon.spec.js +21 -0
  173. package/dist/collection/components/icon-100/icon-100.e2e.js +40 -0
  174. package/dist/collection/components/icon-100/icon-100.js +11 -24
  175. package/dist/collection/components/icon-50/icon-50.e2e.js +32 -0
  176. package/dist/collection/components/icon-50/icon-50.js +8 -18
  177. package/dist/collection/components/input/input.e2e.js +84 -0
  178. package/dist/collection/components/input/input.js +33 -64
  179. package/dist/collection/components/input/input.spec.js +45 -0
  180. package/dist/collection/components/input-group/input-group.e2e.js +77 -0
  181. package/dist/collection/components/input-group/input-group.js +9 -17
  182. package/dist/collection/components/input-group/input-group.spec.js +56 -0
  183. package/dist/collection/components/input-label/input-label.e2e.js +10 -0
  184. package/dist/collection/components/input-label/input-label.js +4 -10
  185. package/dist/collection/components/input-list/input-list-option.js +3 -4
  186. package/dist/collection/components/input-list/input-list.e2e.js +242 -0
  187. package/dist/collection/components/input-list/input-list.js +17 -36
  188. package/dist/collection/components/label/label.e2e.js +17 -0
  189. package/dist/collection/components/label/label.js +3 -6
  190. package/dist/collection/components/label/label.spec.js +58 -0
  191. package/dist/collection/components/modal/modal.e2e.js +115 -0
  192. package/dist/collection/components/modal/modal.js +14 -29
  193. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.e2e.js +74 -0
  194. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +33 -57
  195. package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +8 -15
  196. package/dist/collection/components/pagination/pagination.e2e.js +257 -0
  197. package/dist/collection/components/pagination/pagination.js +10 -22
  198. package/dist/collection/components/pagination/pagination.spec.js +103 -0
  199. package/dist/collection/components/paragraph/paragraph.e2e.js +13 -0
  200. package/dist/collection/components/paragraph/paragraph.js +8 -26
  201. package/dist/collection/components/progress-bar/progress-bar.e2e.js +43 -0
  202. package/dist/collection/components/progress-bar/progress-bar.js +11 -19
  203. package/dist/collection/components/radio/radio.e2e.js +45 -0
  204. package/dist/collection/components/radio/radio.js +20 -37
  205. package/dist/collection/components/radio/radio.spec.js +38 -0
  206. package/dist/collection/components/radio-group/radio-group.e2e.js +86 -0
  207. package/dist/collection/components/radio-group/radio-group.js +19 -34
  208. package/dist/collection/components/radio-group/radio-group.spec.js +31 -0
  209. package/dist/collection/components/required-separator/required-separator.e2e.js +17 -0
  210. package/dist/collection/components/required-separator/required-separator.js +2 -5
  211. package/dist/collection/components/rounded-icon/rounded-icon.js +8 -19
  212. package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
  213. package/dist/collection/components/search/search.e2e.js +98 -0
  214. package/dist/collection/components/search/search.js +9 -19
  215. package/dist/collection/components/separator/separator.e2e.js +22 -0
  216. package/dist/collection/components/separator/separator.js +2 -5
  217. package/dist/collection/components/shimmer/shimmer.e2e.js +18 -0
  218. package/dist/collection/components/shimmer/shimmer.js +9 -10
  219. package/dist/collection/components/shimmer/shimmer.spec.js +35 -0
  220. package/dist/collection/components/snackbar/snackbar.e2e.js +61 -0
  221. package/dist/collection/components/snackbar/snackbar.js +20 -38
  222. package/dist/collection/components/spinner/spinner.e2e.js +12 -0
  223. package/dist/collection/components/spinner/spinner.js +3 -9
  224. package/dist/collection/components/spinner/spinner.spec.js +41 -0
  225. package/dist/collection/components/tab/tab.e2e.js +35 -0
  226. package/dist/collection/components/tab/tab.js +5 -14
  227. package/dist/collection/components/tab/tab.spec.js +31 -0
  228. package/dist/collection/components/tab-group/tab-group.e2e.js +99 -0
  229. package/dist/collection/components/tab-group/tab-group.js +3 -7
  230. package/dist/collection/components/tab-panel/tab-panel.e2e.js +12 -0
  231. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  232. package/dist/collection/components/tab-panel/tab-panel.spec.js +10 -0
  233. package/dist/collection/components/table/table-cell/table-cell.js +17 -40
  234. package/dist/collection/components/table/table-header/table-header.js +19 -37
  235. package/dist/collection/components/table/table-row/table-row.js +18 -33
  236. package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +15 -37
  237. package/dist/collection/components/table/table.e2e.js +405 -0
  238. package/dist/collection/components/table/table.js +4 -12
  239. package/dist/collection/components/textarea/textarea.e2e.js +91 -0
  240. package/dist/collection/components/textarea/textarea.js +30 -52
  241. package/dist/collection/components/toggle-button/toggle-button.e2e.js +44 -0
  242. package/dist/collection/components/toggle-button/toggle-button.js +13 -22
  243. package/dist/collection/components/toggle-chip/toggle-chip.e2e.js +47 -0
  244. package/dist/collection/components/toggle-chip/toggle-chip.js +13 -22
  245. package/dist/collection/components/toggle-group/toggle-group.e2e.js +65 -0
  246. package/dist/collection/components/toggle-group/toggle-group.js +7 -10
  247. package/dist/collection/components/toggle-switch/toggle-switch.e2e.js +50 -0
  248. package/dist/collection/components/toggle-switch/toggle-switch.js +14 -25
  249. package/dist/collection/components/tooltip/tooltip.e2e.js +64 -0
  250. package/dist/collection/components/tooltip/tooltip.js +11 -21
  251. package/dist/collection/components/wizard/wizard-step.js +5 -15
  252. package/dist/collection/components/wizard/wizard.e2e.js +149 -0
  253. package/dist/collection/components/wizard/wizard.js +7 -18
  254. package/dist/collection/components/wizard-icon/wizard-icon.js +6 -14
  255. package/dist/collection/docs/config/replace-prop-controls.spec.js +32 -0
  256. package/dist/collection/utils/utils.spec.js +15 -0
  257. package/dist/components/b2b-alert.js +13 -17
  258. package/dist/components/b2b-anchor.js +7 -11
  259. package/dist/components/b2b-background-box.js +6 -11
  260. package/dist/components/b2b-breadcrumb-item.js +9 -9
  261. package/dist/components/b2b-breadcrumb.js +9 -10
  262. package/dist/components/b2b-button.js +1 -1
  263. package/dist/components/b2b-card.js +7 -9
  264. package/dist/components/b2b-checkbox-group.js +15 -15
  265. package/dist/components/b2b-checkbox.js +1 -1
  266. package/dist/components/b2b-chip-component.js +1 -1
  267. package/dist/components/b2b-date-picker-days-header.js +1 -1
  268. package/dist/components/b2b-date-picker-days.js +1 -1
  269. package/dist/components/b2b-date-picker-header.js +1 -1
  270. package/dist/components/b2b-date-picker-months.js +1 -1
  271. package/dist/components/b2b-date-picker-years.js +1 -1
  272. package/dist/components/b2b-date-picker.js +43 -44
  273. package/dist/components/b2b-dropdown.js +26 -26
  274. package/dist/components/b2b-flyout-menu-option.js +9 -9
  275. package/dist/components/b2b-flyout-menu.js +8 -8
  276. package/dist/components/b2b-grid-col.js +5 -5
  277. package/dist/components/b2b-grid-row.js +4 -8
  278. package/dist/components/b2b-grid.js +5 -5
  279. package/dist/components/b2b-headline.js +1 -1
  280. package/dist/components/b2b-icon-100.js +1 -1
  281. package/dist/components/b2b-icon-50.js +13 -11
  282. package/dist/components/b2b-icon.js +16 -15
  283. package/dist/components/b2b-input-group.js +1 -1
  284. package/dist/components/b2b-input-label.js +1 -1
  285. package/dist/components/b2b-input-list-option.js +1 -1
  286. package/dist/components/b2b-input-list.js +1 -1
  287. package/dist/components/b2b-input.js +1 -1
  288. package/dist/components/b2b-label.js +6 -6
  289. package/dist/components/b2b-modal.js +17 -21
  290. package/dist/components/b2b-multiselect-dropdown.js +31 -30
  291. package/dist/components/b2b-multiselect-option.js +1 -1
  292. package/dist/components/b2b-pagination.js +13 -16
  293. package/dist/components/b2b-paragraph.js +6 -11
  294. package/dist/components/b2b-progress-bar.js +11 -10
  295. package/dist/components/b2b-radio-button.js +19 -17
  296. package/dist/components/b2b-radio-group.js +17 -15
  297. package/dist/components/b2b-required-separator.js +6 -6
  298. package/dist/components/b2b-rounded-icon.js +1 -1
  299. package/dist/components/b2b-scrollable-container.js +5 -4
  300. package/dist/components/b2b-search.js +18 -19
  301. package/dist/components/b2b-separator.js +1 -1
  302. package/dist/components/b2b-shimmer.js +8 -4
  303. package/dist/components/b2b-snackbar.js +19 -20
  304. package/dist/components/b2b-spinner.js +1 -1
  305. package/dist/components/b2b-tab-group.js +6 -8
  306. package/dist/components/b2b-tab-panel.js +5 -4
  307. package/dist/components/b2b-tab.js +7 -9
  308. package/dist/components/b2b-table-cell.js +1 -1
  309. package/dist/components/b2b-table-header.js +1 -1
  310. package/dist/components/b2b-table-row.js +23 -23
  311. package/dist/components/b2b-table-rowgroup.js +15 -24
  312. package/dist/components/b2b-table.js +9 -14
  313. package/dist/components/b2b-textarea.js +23 -19
  314. package/dist/components/b2b-toggle-button.js +13 -11
  315. package/dist/components/b2b-toggle-chip.js +13 -11
  316. package/dist/components/b2b-toggle-group.js +10 -8
  317. package/dist/components/b2b-toggle-switch.js +14 -14
  318. package/dist/components/b2b-tooltip.js +11 -12
  319. package/dist/components/b2b-wizard-icon.js +1 -1
  320. package/dist/components/b2b-wizard-step.js +10 -13
  321. package/dist/components/b2b-wizard.js +9 -13
  322. package/dist/components/{p-CE7t2D9r.js → button.js} +17 -23
  323. package/dist/components/{p-CLYM9t6v.js → checkbox.js} +22 -21
  324. package/dist/components/{p-ClL49BcQ.js → chip.js} +15 -13
  325. package/dist/components/{p-FI-HbnMh.js → date-picker-days-header.js} +7 -7
  326. package/dist/components/{p-0Vy4494O.js → date-picker-days.js} +24 -21
  327. package/dist/components/{p-C_U38W4s.js → date-picker-header.js} +17 -15
  328. package/dist/components/{p-1ZoTG5p9.js → date-picker-months.js} +9 -8
  329. package/dist/components/{p-dMZsx2Fh.js → date-picker-years.js} +8 -6
  330. package/dist/components/{p-Bo-B8kdb.js → headline.js} +4 -6
  331. package/dist/components/{p-B9RvgUY3.js → icon-100.js} +15 -14
  332. package/dist/components/index.js +1 -1929
  333. package/dist/components/{p-TB2jJFV6.js → input-group.js} +9 -8
  334. package/dist/components/{p-Zg4AtKjq.js → input-label.js} +6 -7
  335. package/dist/components/{p-QTGqu3he.js → input-list-option.js} +7 -5
  336. package/dist/components/{p-BacBJzW_.js → input-list.js} +21 -24
  337. package/dist/components/{p-CuUquHzL.js → input.js} +28 -32
  338. package/dist/components/{p-B7bjXySI.js → multiselect-option.js} +12 -12
  339. package/dist/{esm/request-B8W50WyB.js → components/request.js} +5 -2
  340. package/dist/components/{p-i758rnm2.js → rounded-icon.js} +9 -13
  341. package/dist/components/{p-DO7N8IC0.js → separator.js} +5 -5
  342. package/dist/components/{p-3cu_Madt.js → spinner.js} +5 -6
  343. package/dist/components/{p-9OQH2pET.js → table-cell.js} +15 -23
  344. package/dist/components/{p-BVLpVPNb.js → table-header.js} +17 -18
  345. package/dist/{esm/utils-BA6KE1BD.js → components/utils.js} +10 -3
  346. package/dist/components/{p-N6d2-6pL.js → wizard-icon.js} +10 -11
  347. package/dist/custom-elements.json +0 -24
  348. package/dist/esm/app-globals-0f993ce5.js +3 -0
  349. package/dist/esm/b2b-alert.entry.js +11 -15
  350. package/dist/esm/b2b-anchor.entry.js +6 -10
  351. package/dist/esm/b2b-background-box.entry.js +5 -10
  352. package/dist/esm/b2b-breadcrumb-item.entry.js +8 -8
  353. package/dist/esm/b2b-breadcrumb.entry.js +8 -9
  354. package/dist/esm/b2b-button_2.entry.js +18 -25
  355. package/dist/esm/b2b-card.entry.js +6 -8
  356. package/dist/esm/b2b-checkbox-group.entry.js +13 -13
  357. package/dist/esm/b2b-checkbox.entry.js +20 -19
  358. package/dist/esm/b2b-chip-component_2.entry.js +22 -20
  359. package/dist/esm/b2b-core-components.js +12 -12
  360. package/dist/esm/b2b-date-picker-days_5.entry.js +48 -40
  361. package/dist/esm/b2b-date-picker.entry.js +35 -36
  362. package/dist/esm/b2b-dropdown.entry.js +24 -24
  363. package/dist/esm/b2b-flyout-menu-option.entry.js +8 -8
  364. package/dist/esm/b2b-flyout-menu.entry.js +7 -7
  365. package/dist/esm/b2b-grid-col.entry.js +4 -4
  366. package/dist/esm/b2b-grid-row.entry.js +3 -7
  367. package/dist/esm/b2b-grid.entry.js +4 -4
  368. package/dist/esm/b2b-headline.entry.js +3 -5
  369. package/dist/esm/b2b-icon-100.entry.js +10 -12
  370. package/dist/esm/b2b-icon-50.entry.js +8 -9
  371. package/dist/esm/b2b-icon.entry.js +10 -12
  372. package/dist/esm/b2b-input-group_2.entry.js +22 -24
  373. package/dist/esm/b2b-input-label.entry.js +5 -6
  374. package/dist/esm/b2b-input_2.entry.js +31 -33
  375. package/dist/esm/b2b-label.entry.js +5 -5
  376. package/dist/esm/b2b-modal.entry.js +14 -18
  377. package/dist/esm/b2b-multiselect-dropdown.entry.js +25 -24
  378. package/dist/esm/b2b-pagination.entry.js +10 -13
  379. package/dist/esm/b2b-paragraph.entry.js +5 -10
  380. package/dist/esm/b2b-progress-bar.entry.js +10 -9
  381. package/dist/esm/b2b-radio-button.entry.js +17 -15
  382. package/dist/esm/b2b-radio-group.entry.js +15 -13
  383. package/dist/esm/b2b-required-separator.entry.js +4 -4
  384. package/dist/esm/b2b-rounded-icon.entry.js +8 -12
  385. package/dist/esm/b2b-scrollable-container.entry.js +4 -3
  386. package/dist/esm/b2b-search.entry.js +8 -9
  387. package/dist/esm/b2b-separator.entry.js +4 -4
  388. package/dist/esm/b2b-shimmer.entry.js +7 -3
  389. package/dist/esm/b2b-snackbar.entry.js +17 -18
  390. package/dist/esm/b2b-tab-group.entry.js +4 -6
  391. package/dist/esm/b2b-tab-panel.entry.js +4 -3
  392. package/dist/esm/b2b-tab.entry.js +6 -8
  393. package/dist/esm/b2b-table-cell_2.entry.js +28 -37
  394. package/dist/esm/b2b-table-row.entry.js +17 -17
  395. package/dist/esm/b2b-table-rowgroup.entry.js +14 -23
  396. package/dist/esm/b2b-table.entry.js +8 -13
  397. package/dist/esm/b2b-textarea.entry.js +21 -17
  398. package/dist/esm/b2b-toggle-button.entry.js +12 -10
  399. package/dist/esm/b2b-toggle-chip.entry.js +12 -10
  400. package/dist/esm/b2b-toggle-group.entry.js +9 -7
  401. package/dist/esm/b2b-toggle-switch.entry.js +13 -13
  402. package/dist/esm/b2b-tooltip.entry.js +10 -11
  403. package/dist/esm/b2b-wizard-icon.entry.js +7 -8
  404. package/dist/esm/b2b-wizard-step.entry.js +6 -9
  405. package/dist/esm/b2b-wizard.entry.js +8 -12
  406. package/dist/esm/index-ab9eb36d.js +2487 -0
  407. package/dist/esm/loader.js +4 -3
  408. package/dist/esm/polyfills/core-js.js +11 -0
  409. package/dist/esm/polyfills/dom.js +79 -0
  410. package/dist/esm/polyfills/es5-html-element.js +1 -0
  411. package/dist/esm/polyfills/index.js +34 -0
  412. package/dist/esm/polyfills/system.js +6 -0
  413. package/dist/{components/p-CPfvpKl5.js → esm/request-1d048f8a.js} +0 -2
  414. package/dist/{components/p-BA6KE1BD.js → esm/utils-868299de.js} +10 -3
  415. package/dist/loader/cdn.js +3 -1
  416. package/dist/loader/index.cjs.js +3 -1
  417. package/dist/loader/index.d.ts +0 -3
  418. package/dist/loader/index.es2017.js +3 -1
  419. package/dist/loader/index.js +3 -1
  420. package/dist/loader/package.json +11 -0
  421. package/dist/types/components.d.ts +0 -413
  422. package/dist/types/stencil-public-runtime.d.ts +11 -32
  423. package/dist/web-types.json +8 -7
  424. package/package.json +10 -11
  425. package/dist/b2b-core-components/p-0002d8d5.entry.js +0 -1
  426. package/dist/b2b-core-components/p-0386f660.entry.js +0 -1
  427. package/dist/b2b-core-components/p-0a08e2c8.entry.js +0 -1
  428. package/dist/b2b-core-components/p-0d8cc4eb.entry.js +0 -1
  429. package/dist/b2b-core-components/p-197dc9c0.entry.js +0 -1
  430. package/dist/b2b-core-components/p-220b8c79.entry.js +0 -1
  431. package/dist/b2b-core-components/p-2933f053.entry.js +0 -1
  432. package/dist/b2b-core-components/p-3a9f7db8.entry.js +0 -1
  433. package/dist/b2b-core-components/p-3e0919b3.entry.js +0 -1
  434. package/dist/b2b-core-components/p-42d9f79d.entry.js +0 -1
  435. package/dist/b2b-core-components/p-4bb42493.entry.js +0 -1
  436. package/dist/b2b-core-components/p-4c550170.entry.js +0 -1
  437. package/dist/b2b-core-components/p-50559efd.entry.js +0 -1
  438. package/dist/b2b-core-components/p-55db3d57.entry.js +0 -1
  439. package/dist/b2b-core-components/p-6e7abebc.entry.js +0 -1
  440. package/dist/b2b-core-components/p-7b75a0a4.entry.js +0 -1
  441. package/dist/b2b-core-components/p-7cbe33ef.entry.js +0 -1
  442. package/dist/b2b-core-components/p-8544b7e1.entry.js +0 -1
  443. package/dist/b2b-core-components/p-88037ad2.entry.js +0 -1
  444. package/dist/b2b-core-components/p-930425a1.entry.js +0 -1
  445. package/dist/b2b-core-components/p-B9l4NfeG.js +0 -1
  446. package/dist/b2b-core-components/p-BA6KE1BD.js +0 -1
  447. package/dist/b2b-core-components/p-a1a4efd4.entry.js +0 -1
  448. package/dist/b2b-core-components/p-a61eecf7.entry.js +0 -1
  449. package/dist/b2b-core-components/p-ada918c2.entry.js +0 -1
  450. package/dist/b2b-core-components/p-bb020c1c.entry.js +0 -1
  451. package/dist/b2b-core-components/p-bbb4c6f3.entry.js +0 -1
  452. package/dist/b2b-core-components/p-c0af184a.entry.js +0 -1
  453. package/dist/b2b-core-components/p-c40f7176.entry.js +0 -1
  454. package/dist/b2b-core-components/p-c6043d6a.entry.js +0 -1
  455. package/dist/b2b-core-components/p-c649c112.entry.js +0 -1
  456. package/dist/b2b-core-components/p-c69e9220.entry.js +0 -1
  457. package/dist/b2b-core-components/p-d1b46208.entry.js +0 -1
  458. package/dist/b2b-core-components/p-d2d40ae5.entry.js +0 -1
  459. package/dist/b2b-core-components/p-e8e156a4.entry.js +0 -1
  460. package/dist/b2b-core-components/p-ebcc2cce.entry.js +0 -1
  461. package/dist/b2b-core-components/p-edea84cc.entry.js +0 -1
  462. package/dist/b2b-core-components/p-f831e483.entry.js +0 -1
  463. package/dist/b2b-core-components/p-fdfb094e.entry.js +0 -1
  464. package/dist/b2b-core-components/p-zl-jO_Vq.js +0 -2
  465. package/dist/cjs/index-CIrNIFXs.js +0 -2406
  466. package/dist/esm/index-zl-jO_Vq.js +0 -2378
  467. /package/dist/b2b-core-components/{p-B8geQC3V.js → p-48608c23.js} +0 -0
  468. /package/dist/b2b-core-components/{p-BgHEmQ44.js → p-c500d93c.js} +0 -0
  469. /package/dist/cjs/{date-picker-util-VbL9p5ie.js → date-picker-util-51276571.js} +0 -0
  470. /package/dist/cjs/{wizard.types-uAv3s7tK.js → wizard.types-40a1058c.js} +0 -0
  471. /package/dist/components/{p-BsfreBZY.js → date-picker.types.js} +0 -0
  472. /package/dist/components/{p-BgHEmQ44.js → wizard.types.js} +0 -0
  473. /package/dist/esm/{date-picker-util-B8geQC3V.js → date-picker-util-44201ca6.js} +0 -0
  474. /package/dist/esm/{wizard.types-BgHEmQ44.js → wizard.types-40ae9b73.js} +0 -0
@@ -1,16 +1,6 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  export class SnackbarComponent {
3
3
  constructor() {
4
- /** The type of snackbar. Default is info. */
5
- this.type = 'info';
6
- /** Whether the snackbar is currently visible. Set to true to display the snackbar. */
7
- this.opened = false;
8
- /** Whether snackbar is show for limited time. Default is true. Error snackbars cannot be timed. */
9
- this.timed = true;
10
- /** How long is snackbar shown. Default value is 5000 ms. */
11
- this.duration = 5000;
12
- /** Whether the snackbar has a Call-to-Action. Per default, it is false. */
13
- this.hasAction = false;
14
4
  /** when user hovers over snackbar, the timer is paused. */
15
5
  this.handleMouseEnter = () => {
16
6
  if (this.timeoutId && this.timed && this.type !== 'error') {
@@ -54,6 +44,14 @@ export class SnackbarComponent {
54
44
  this.handleActionClick = () => {
55
45
  this.b2bActionClick.emit();
56
46
  };
47
+ this.description = undefined;
48
+ this.type = 'info';
49
+ this.opened = false;
50
+ this.timed = true;
51
+ this.duration = 5000;
52
+ this.hasAction = false;
53
+ this.actionLabel = undefined;
54
+ this.width = undefined;
57
55
  }
58
56
  onVisibleChange(newValue) {
59
57
  if (newValue) {
@@ -88,17 +86,17 @@ export class SnackbarComponent {
88
86
  clearTimeout(this.timeoutId);
89
87
  }
90
88
  render() {
91
- return (h(Host, { key: '0636ae82f1f44f2960367d2667c7948af3d61a04', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("div", { key: '428d1e22c09dc375c25bcf986603e73ed83dce64', class: {
89
+ return (h(Host, { key: 'b22311754d7186da6012cec8f82d251f3cbafd83', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("div", { key: '810bcfee20a5b9a88586ad1cb98c685819381847', class: {
92
90
  'b2b-snackbar': true,
93
91
  [`b2b-snackbar--${this.type}`]: true,
94
92
  'b2b-snackbar--opened': this.opened,
95
- }, style: this.width ? { width: this.width } : { width: 'auto' } }, h("div", { key: '327fd8cdf05e25fd1f0c7feaf72497471c7146d4', class: "b2b-snackbar__content" }, h("span", { key: '9f9586b27a236ad59d1d464cf805bc8302bdd510', class: { [`b2b-snackbar--${this.type}__icon`]: true } }, this.chooseIcon()), h("p", { key: '296e30330f06bdfad65c4d9248e0aa812c9de360', class: "b2b-snackbar__content__description" }, this.description)), this.isActionPresent() && (h("div", { key: 'd1777085d235dae35d72675507c5d995a1914de2', class: {
93
+ }, style: this.width ? { width: this.width } : { width: 'auto' } }, h("div", { key: 'd8e5cb8e8cda32693ae68055cb06918f51f1688d', class: "b2b-snackbar__content" }, h("span", { key: '8e31a914129f255151569eaf0e806f337b085f6d', class: { [`b2b-snackbar--${this.type}__icon`]: true } }, this.chooseIcon()), h("p", { key: '3a6faa0dd08da3ea8f830bc59116ab50b574d770', class: "b2b-snackbar__content__description" }, this.description)), this.isActionPresent() && (h("div", { class: {
96
94
  'b2b-snackbar__action': true,
97
95
  [`b2b-snackbar__action--${this.type}`]: true,
98
- }, onClick: this.handleActionClick }, h("a", { key: 'c6b6d08ddd14ca60b1c266b48c1da72d9e4e11fc' }, this.actionLabel))), h("div", { key: '0186b1efc237baae871bec063a40289f4ce3572d', class: {
96
+ }, onClick: this.handleActionClick }, h("a", null, this.actionLabel))), h("div", { key: '362ad1e19f9ea031f1ef5991da654d47a0a1f701', class: {
99
97
  'b2b-snackbar__close-icon': true,
100
98
  [`b2b-snackbar__close-icon--${this.type}`]: true,
101
- }, onClick: this.close }, h("b2b-icon-100", { key: 'd2567439989cfe451d3022a9bb138f9d1ecf03d9', clickable: true, size: 24, icon: "b2b_icon-close" })))));
99
+ }, onClick: this.close }, h("b2b-icon-100", { key: '1913c3bfc643fb845568c4388cdd300f6c3df8a7', clickable: true, size: 24, icon: "b2b_icon-close" })))));
102
100
  }
103
101
  static get is() { return "b2b-snackbar"; }
104
102
  static get encapsulation() { return "shadow"; }
@@ -116,7 +114,6 @@ export class SnackbarComponent {
116
114
  return {
117
115
  "description": {
118
116
  "type": "string",
119
- "attribute": "description",
120
117
  "mutable": false,
121
118
  "complexType": {
122
119
  "original": "string",
@@ -129,13 +126,11 @@ export class SnackbarComponent {
129
126
  "tags": [],
130
127
  "text": "Text on the snackbar."
131
128
  },
132
- "getter": false,
133
- "setter": false,
129
+ "attribute": "description",
134
130
  "reflect": false
135
131
  },
136
132
  "type": {
137
133
  "type": "string",
138
- "attribute": "type",
139
134
  "mutable": false,
140
135
  "complexType": {
141
136
  "original": "'info' | 'success' | 'warning' | 'error'",
@@ -148,14 +143,12 @@ export class SnackbarComponent {
148
143
  "tags": [],
149
144
  "text": "The type of snackbar. Default is info."
150
145
  },
151
- "getter": false,
152
- "setter": false,
146
+ "attribute": "type",
153
147
  "reflect": false,
154
148
  "defaultValue": "'info'"
155
149
  },
156
150
  "opened": {
157
151
  "type": "boolean",
158
- "attribute": "opened",
159
152
  "mutable": true,
160
153
  "complexType": {
161
154
  "original": "boolean",
@@ -168,14 +161,12 @@ export class SnackbarComponent {
168
161
  "tags": [],
169
162
  "text": "Whether the snackbar is currently visible. Set to true to display the snackbar."
170
163
  },
171
- "getter": false,
172
- "setter": false,
164
+ "attribute": "opened",
173
165
  "reflect": true,
174
166
  "defaultValue": "false"
175
167
  },
176
168
  "timed": {
177
169
  "type": "boolean",
178
- "attribute": "timed",
179
170
  "mutable": false,
180
171
  "complexType": {
181
172
  "original": "boolean",
@@ -188,14 +179,12 @@ export class SnackbarComponent {
188
179
  "tags": [],
189
180
  "text": "Whether snackbar is show for limited time. Default is true. Error snackbars cannot be timed."
190
181
  },
191
- "getter": false,
192
- "setter": false,
182
+ "attribute": "timed",
193
183
  "reflect": false,
194
184
  "defaultValue": "true"
195
185
  },
196
186
  "duration": {
197
187
  "type": "number",
198
- "attribute": "duration",
199
188
  "mutable": false,
200
189
  "complexType": {
201
190
  "original": "number",
@@ -208,14 +197,12 @@ export class SnackbarComponent {
208
197
  "tags": [],
209
198
  "text": "How long is snackbar shown. Default value is 5000 ms."
210
199
  },
211
- "getter": false,
212
- "setter": false,
200
+ "attribute": "duration",
213
201
  "reflect": false,
214
202
  "defaultValue": "5000"
215
203
  },
216
204
  "hasAction": {
217
205
  "type": "boolean",
218
- "attribute": "has-action",
219
206
  "mutable": false,
220
207
  "complexType": {
221
208
  "original": "boolean",
@@ -228,14 +215,12 @@ export class SnackbarComponent {
228
215
  "tags": [],
229
216
  "text": "Whether the snackbar has a Call-to-Action. Per default, it is false."
230
217
  },
231
- "getter": false,
232
- "setter": false,
218
+ "attribute": "has-action",
233
219
  "reflect": false,
234
220
  "defaultValue": "false"
235
221
  },
236
222
  "actionLabel": {
237
223
  "type": "string",
238
- "attribute": "action-label",
239
224
  "mutable": false,
240
225
  "complexType": {
241
226
  "original": "string",
@@ -248,13 +233,11 @@ export class SnackbarComponent {
248
233
  "tags": [],
249
234
  "text": "Text for the Call-to-Action link."
250
235
  },
251
- "getter": false,
252
- "setter": false,
236
+ "attribute": "action-label",
253
237
  "reflect": false
254
238
  },
255
239
  "width": {
256
240
  "type": "string",
257
- "attribute": "width",
258
241
  "mutable": false,
259
242
  "complexType": {
260
243
  "original": "string",
@@ -267,8 +250,7 @@ export class SnackbarComponent {
267
250
  "tags": [],
268
251
  "text": "Width of the snackbar can be specified in px. If not provided, the default value is auto, which will adjust the width to fit the content."
269
252
  },
270
- "getter": false,
271
- "setter": false,
253
+ "attribute": "width",
272
254
  "reflect": false
273
255
  }
274
256
  };
@@ -0,0 +1,12 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('B2B-Spinner', () => {
3
+ let page;
4
+ beforeEach(async () => {
5
+ page = await newE2EPage();
6
+ await page.setContent(`<b2b-spinner></b2b-spinner>`);
7
+ });
8
+ it('should render spinner component', async () => {
9
+ const element = await page.find('b2b-spinner');
10
+ expect(element).not.toBeNull();
11
+ });
12
+ });
@@ -5,13 +5,11 @@ import { h } from "@stencil/core";
5
5
  */
6
6
  export class SpinnerComponent {
7
7
  constructor() {
8
- /** The size of the spinner. */
9
8
  this.size = '100';
10
- /** The color of the spinner. */
11
9
  this.color = 'primary';
12
10
  }
13
11
  render() {
14
- return (h("div", { key: 'dcae9a0d97aa5f9bb4f5d52d9ae3302bfecf5f81', class: {
12
+ return (h("div", { key: '4260cc2e742b9d3a77fc1739f7de248ee70ffd69', class: {
15
13
  'b2b-spinner': true,
16
14
  ['b2b-spinner--size-' + this.size]: true,
17
15
  ['b2b-spinner--color-' + this.color]: true,
@@ -33,7 +31,6 @@ export class SpinnerComponent {
33
31
  return {
34
32
  "size": {
35
33
  "type": "string",
36
- "attribute": "size",
37
34
  "mutable": false,
38
35
  "complexType": {
39
36
  "original": "'50' | '100' | '200'",
@@ -46,14 +43,12 @@ export class SpinnerComponent {
46
43
  "tags": [],
47
44
  "text": "The size of the spinner."
48
45
  },
49
- "getter": false,
50
- "setter": false,
46
+ "attribute": "size",
51
47
  "reflect": false,
52
48
  "defaultValue": "'100'"
53
49
  },
54
50
  "color": {
55
51
  "type": "string",
56
- "attribute": "color",
57
52
  "mutable": false,
58
53
  "complexType": {
59
54
  "original": "'primary' | 'secondary' | 'inverse'",
@@ -66,8 +61,7 @@ export class SpinnerComponent {
66
61
  "tags": [],
67
62
  "text": "The color of the spinner."
68
63
  },
69
- "getter": false,
70
- "setter": false,
64
+ "attribute": "color",
71
65
  "reflect": false,
72
66
  "defaultValue": "'primary'"
73
67
  }
@@ -0,0 +1,41 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { h } from "@stencil/core";
3
+ import { SpinnerComponent } from "./spinner";
4
+ describe('B2B-Spinner', () => {
5
+ async function renderPage(template) {
6
+ return newSpecPage({
7
+ components: [SpinnerComponent],
8
+ template: () => template,
9
+ });
10
+ }
11
+ it('should render spinner with default attributes', async () => {
12
+ const page = await renderPage(h("b2b-spinner", null));
13
+ expect(page.root).toEqualHtml(`
14
+ <b2b-spinner>
15
+ <mock:shadow-root>
16
+ <div class="b2b-spinner b2b-spinner--size-100 b2b-spinner--color-primary"></div>
17
+ </mock:shadow-root>
18
+ </b2b-spinner>
19
+ `);
20
+ });
21
+ it('should render spinner with small size', async () => {
22
+ const page = await renderPage(h("b2b-spinner", { size: "50" }));
23
+ expect(page.root).toEqualHtml(`
24
+ <b2b-spinner>
25
+ <mock:shadow-root>
26
+ <div class="b2b-spinner b2b-spinner--size-50 b2b-spinner--color-primary"></div>
27
+ </mock:shadow-root>
28
+ </b2b-spinner>
29
+ `);
30
+ });
31
+ it('should render spinner with inverse color', async () => {
32
+ const page = await renderPage(h("b2b-spinner", { color: "inverse" }));
33
+ expect(page.root).toEqualHtml(`
34
+ <b2b-spinner>
35
+ <mock:shadow-root>
36
+ <div class="b2b-spinner b2b-spinner--size-100 b2b-spinner--color-inverse"></div>
37
+ </mock:shadow-root>
38
+ </b2b-spinner>
39
+ `);
40
+ });
41
+ });
@@ -0,0 +1,35 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('B2B Tab', () => {
3
+ let page;
4
+ beforeEach(async () => {
5
+ page = await newE2EPage();
6
+ await page.setContent(`<b2b-tab>Tab 1</b2b-tab>`);
7
+ });
8
+ it('should render the tab component', async () => {
9
+ const element = await page.find('b2b-tab');
10
+ expect(element).not.toBeNull();
11
+ });
12
+ it('should emit when selected changes', async () => {
13
+ const selectedSpy = await page.spyOnEvent('b2b-change');
14
+ await page.$eval('b2b-tab', (element) => {
15
+ element.selected = true;
16
+ });
17
+ await page.waitForChanges();
18
+ expect(selectedSpy).toHaveReceivedEvent();
19
+ });
20
+ it('should focus on the tab if it is selected', async () => {
21
+ const element = await page.find('b2b-tab');
22
+ const selectedBefore = await element.getProperty('selected');
23
+ expect(selectedBefore).toBe(false);
24
+ await page.$eval('b2b-tab', (element) => {
25
+ element.selected = true;
26
+ });
27
+ await page.waitForChanges();
28
+ const selectedAfter = await element.getProperty('selected');
29
+ expect(selectedAfter).toBe(true);
30
+ const focus = await page.evaluate(() => {
31
+ return document.activeElement.ariaSelected;
32
+ });
33
+ expect(focus).not.toBeNull();
34
+ });
35
+ });
@@ -3,11 +3,8 @@ let i = 0;
3
3
  export class B2bTabComponent {
4
4
  constructor() {
5
5
  this.generatedId = i++;
6
- /** Whether or not the tab is currently selected. Per default it is false. */
7
6
  this.selected = false;
8
- /** Whether or not the tab is currently disabled. Per default it is false. */
9
7
  this.disabled = false;
10
- /** Whether or not the tab has an error. Per default, it is false. */
11
8
  this.invalid = false;
12
9
  }
13
10
  propagateChange(newValue) {
@@ -20,12 +17,12 @@ export class B2bTabComponent {
20
17
  }
21
18
  }
22
19
  render() {
23
- return (h(Host, { key: 'd4fb6d906bb49dc4fb3908b96ebdf647cca17cbd', id: `b2b-tab-${this.generatedId}`, "aria-role": "tab", "aria-selected": this.selected, role: this.disabled ? false : 'tab', disabled: this.disabled, tabindex: this.disabled ? false : this.selected ? '0' : '-1' }, h("span", { key: 'c70e11223805322d111073682ece5115c7374772', class: {
20
+ return (h(Host, { key: '8aa1b1ae2ad6d9b2f77cbd882602caade8cc8355', id: `b2b-tab-${this.generatedId}`, "aria-role": "tab", "aria-selected": this.selected, role: this.disabled ? false : 'tab', disabled: this.disabled, tabindex: this.disabled ? false : this.selected ? '0' : '-1' }, h("span", { key: '896a95b6fe0e389c380bed8d7755ef04467470c2', class: {
24
21
  'b2b-tab': true,
25
22
  'b2b-tab--selected': this.selected,
26
23
  'b2b-tab--disabled': this.disabled,
27
24
  'b2b-tab--error': this.invalid,
28
- } }, h("slot", { key: '41b30f1662648b54a60b89583c856da27e2a89dc' }))));
25
+ } }, h("slot", { key: '87e0d4dc4f316d16efde95c2e9f4c9fa63db984d' }))));
29
26
  }
30
27
  static get is() { return "b2b-tab"; }
31
28
  static get encapsulation() { return "shadow"; }
@@ -43,7 +40,6 @@ export class B2bTabComponent {
43
40
  return {
44
41
  "selected": {
45
42
  "type": "boolean",
46
- "attribute": "selected",
47
43
  "mutable": false,
48
44
  "complexType": {
49
45
  "original": "boolean",
@@ -56,14 +52,12 @@ export class B2bTabComponent {
56
52
  "tags": [],
57
53
  "text": "Whether or not the tab is currently selected. Per default it is false."
58
54
  },
59
- "getter": false,
60
- "setter": false,
55
+ "attribute": "selected",
61
56
  "reflect": true,
62
57
  "defaultValue": "false"
63
58
  },
64
59
  "disabled": {
65
60
  "type": "boolean",
66
- "attribute": "disabled",
67
61
  "mutable": false,
68
62
  "complexType": {
69
63
  "original": "boolean",
@@ -76,14 +70,12 @@ export class B2bTabComponent {
76
70
  "tags": [],
77
71
  "text": "Whether or not the tab is currently disabled. Per default it is false."
78
72
  },
79
- "getter": false,
80
- "setter": false,
73
+ "attribute": "disabled",
81
74
  "reflect": false,
82
75
  "defaultValue": "false"
83
76
  },
84
77
  "invalid": {
85
78
  "type": "boolean",
86
- "attribute": "invalid",
87
79
  "mutable": false,
88
80
  "complexType": {
89
81
  "original": "boolean",
@@ -96,8 +88,7 @@ export class B2bTabComponent {
96
88
  "tags": [],
97
89
  "text": "Whether or not the tab has an error. Per default, it is false."
98
90
  },
99
- "getter": false,
100
- "setter": false,
91
+ "attribute": "invalid",
101
92
  "reflect": false,
102
93
  "defaultValue": "false"
103
94
  }
@@ -0,0 +1,31 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { h } from "@stencil/core";
3
+ import { B2bTabComponent } from "./tab";
4
+ it('should match the snapshot', async () => {
5
+ const page = await newSpecPage({
6
+ components: [B2bTabComponent],
7
+ template: () => h("b2b-tab", null, "Tab 1"),
8
+ });
9
+ expect(page.root).toMatchSnapshot();
10
+ });
11
+ it('should not be selected by default', async () => {
12
+ const page = await newSpecPage({
13
+ components: [B2bTabComponent],
14
+ template: () => h("b2b-tab", null, "Tab 1"),
15
+ });
16
+ expect(page.rootInstance.selected).toBe(false);
17
+ });
18
+ it('should not have an error by default', async () => {
19
+ const page = await newSpecPage({
20
+ components: [B2bTabComponent],
21
+ template: () => h("b2b-tab", null, "Tab 1"),
22
+ });
23
+ expect(page.rootInstance.invalid).toBe(false);
24
+ });
25
+ it('should not be disabled by default', async () => {
26
+ const page = await newSpecPage({
27
+ components: [B2bTabComponent],
28
+ template: () => h("b2b-tab", null, "Tab 1"),
29
+ });
30
+ expect(page.rootInstance.disabled).toBe(false);
31
+ });
@@ -0,0 +1,99 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('B2B Tab Group', () => {
3
+ let page;
4
+ beforeEach(async () => {
5
+ page = await newE2EPage();
6
+ await page.setContent(`
7
+ <b2b-tab-group>
8
+ <b2b-tab slot="tab">
9
+ First Tab
10
+ </b2b-tab>
11
+ <b2b-tab-panel slot="panel">
12
+ First Panel
13
+ </b2b-tab-panel>
14
+ <b2b-tab slot="tab">
15
+ Second Tab
16
+ </b2b-tab>
17
+ <b2b-tab-panel slot="panel">
18
+ Second Panel
19
+ </b2b-tab-panel>
20
+ <b2b-tab slot="tab" disabled="true">
21
+ Disabled Tab
22
+ </b2b-tab>
23
+ <b2b-tab-panel slot="panel">
24
+ Disabled Panel
25
+ </b2b-tab-panel>
26
+ </b2b-tab-group>
27
+ `);
28
+ });
29
+ it('should render the tab group', async () => {
30
+ const element = await page.find('b2b-tab-group');
31
+ expect(element).not.toBeNull();
32
+ });
33
+ it('should select the first tab by default', async () => {
34
+ const tab = await page.find('b2b-tab');
35
+ const selected = await tab.getProperty('selected');
36
+ expect(selected).toBe(true);
37
+ });
38
+ it('should show the panel associated with the tab that is selected', async () => {
39
+ const tab = await page.find({ text: 'First Tab' });
40
+ const selected = await tab.getProperty('selected');
41
+ expect(selected).toBe(true);
42
+ const panel = await page.find({ text: 'First Panel' });
43
+ expect(await panel.isVisible()).toBe(true);
44
+ });
45
+ it('should not select a disabled tab', async () => {
46
+ const tab = await page.find({ text: 'Disabled Tab' });
47
+ const panel = await page.find({ text: 'Disabled Panel' });
48
+ const selected = await tab.getProperty('selected');
49
+ expect(selected).toBe(false);
50
+ await tab.click();
51
+ await page.waitForChanges();
52
+ const selectedAfter = await tab.getProperty('selected');
53
+ expect(selectedAfter).toBe(false);
54
+ expect(await panel.isVisible()).toBe(false);
55
+ });
56
+ it('should navigate to the next enabled tab using the keyboard', async () => {
57
+ const tabs = await page.findAll('b2b-tab');
58
+ expect(await tabs[0].getProperty('selected')).toBe(true);
59
+ await page.keyboard.down('ArrowRight');
60
+ await page.waitForChanges();
61
+ expect(await tabs[1].getProperty('selected')).toBe(true);
62
+ await page.keyboard.press('ArrowRight');
63
+ await page.waitForChanges();
64
+ expect(await tabs[2].getProperty('selected')).toBe(false);
65
+ expect(await tabs[0].getProperty('selected')).toBe(true);
66
+ });
67
+ it('should navigate to the previous tab using the keyboard', async () => {
68
+ const tabs = await page.findAll('b2b-tab');
69
+ expect(await tabs[0].getProperty('selected')).toBe(true);
70
+ await page.keyboard.down('ArrowLeft');
71
+ await page.waitForChanges();
72
+ // second tab is selected because it is first enabled from last
73
+ expect(await tabs[1].getProperty('selected')).toBe(true);
74
+ await page.keyboard.press('ArrowLeft');
75
+ await page.waitForChanges();
76
+ // first tab is selected because last tab is disabled
77
+ expect(await tabs[0].getProperty('selected')).toBe(true);
78
+ });
79
+ it('should emit when a new tab is selected', async () => {
80
+ const changeSpy = await page.spyOnEvent('b2b-selected');
81
+ const secondTab = await page.find({ text: 'Second Tab' });
82
+ await secondTab.click();
83
+ await page.waitForChanges();
84
+ expect(changeSpy).toHaveReceivedEvent();
85
+ });
86
+ it('should not navigate when external navigation is used', async () => {
87
+ const tabGroup = await page.find('b2b-tab-group');
88
+ await tabGroup.setProperty('useRouter', true);
89
+ await page.waitForChanges();
90
+ const tabs = await page.findAll('b2b-tab');
91
+ expect(await tabs[0].getProperty('selected')).toBe(true);
92
+ expect(await tabs[0].getAttribute('aria-controls')).not.toBeDefined;
93
+ await page.keyboard.press('ArrowRight');
94
+ await page.waitForChanges();
95
+ await tabs[1].click();
96
+ await page.waitForChanges();
97
+ expect(await tabs[1].getProperty('selected')).toBe(false);
98
+ });
99
+ });
@@ -5,9 +5,6 @@ const HOME = 'Home';
5
5
  const END = 'End';
6
6
  export class B2bTabGroupComponent {
7
7
  constructor() {
8
- /** Determines if the Tab Group will do it's own navigation. Per default, it will use internal navigation.
9
- * Set it to true if you want to use external, route-based navigation. */
10
- this.useRouter = false;
11
8
  this.getPreviousTab = () => {
12
9
  const tabs = this.getAllEnabledTabs();
13
10
  const index = tabs.findIndex(tab => tab.selected) - 1;
@@ -65,6 +62,7 @@ export class B2bTabGroupComponent {
65
62
  tabs.forEach(tab => (tab.selected = false));
66
63
  panels.forEach(panel => (panel.hidden = true));
67
64
  };
65
+ this.useRouter = false;
68
66
  }
69
67
  handleClick(event) {
70
68
  if (this.useRouter) {
@@ -123,7 +121,7 @@ export class B2bTabGroupComponent {
123
121
  });
124
122
  }
125
123
  render() {
126
- return (h(Host, { key: 'fa7eee42c069a31f2c866b97f9113de8c1afcb82' }, h("slot", { key: '966fb2b75c5666421bc17097c9d333c44431d989', name: "tab" }), h("b2b-separator", { key: 'a900f03e00ffbd66fd786d69aed72f457cd6234a' }), h("slot", { key: 'f32d4846fc68660fd7670d8fc22b7ada7d3b4b74', name: "panel" })));
124
+ return (h(Host, { key: '82c0d22d7738ecbbe49dc358a81759da436389ea' }, h("slot", { key: '073c3086c66b28ee4d90e38dfc3920ca58deccfd', name: "tab" }), h("b2b-separator", { key: 'd9906b47b55895b61883767817cd761b10225dd0' }), h("slot", { key: 'f01db3ddcdcb289170dbb8865bf6873dd9442b60', name: "panel" })));
127
125
  }
128
126
  static get is() { return "b2b-tab-group"; }
129
127
  static get encapsulation() { return "shadow"; }
@@ -131,7 +129,6 @@ export class B2bTabGroupComponent {
131
129
  return {
132
130
  "useRouter": {
133
131
  "type": "boolean",
134
- "attribute": "use-router",
135
132
  "mutable": false,
136
133
  "complexType": {
137
134
  "original": "boolean",
@@ -144,8 +141,7 @@ export class B2bTabGroupComponent {
144
141
  "tags": [],
145
142
  "text": "Determines if the Tab Group will do it's own navigation. Per default, it will use internal navigation.\nSet it to true if you want to use external, route-based navigation."
146
143
  },
147
- "getter": false,
148
- "setter": false,
144
+ "attribute": "use-router",
149
145
  "reflect": false,
150
146
  "defaultValue": "false"
151
147
  }
@@ -0,0 +1,12 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('B2B Tab Panel', () => {
3
+ let page;
4
+ beforeEach(async () => {
5
+ page = await newE2EPage();
6
+ await page.setContent(`<b2b-tab-panel name="tab-1">Tab 1</b2b-tab-panel>`);
7
+ });
8
+ it('should render the tab panel', async () => {
9
+ const element = await page.find('b2b-tab-panel');
10
+ expect(element).not.toBeNull();
11
+ });
12
+ });
@@ -5,7 +5,7 @@ export class B2bTabPanelComponent {
5
5
  this.generatedId = i++;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: 'e92ca5dc2cb66f73b3c1bc72e1587aa888d77d0d', id: `b2b-tab-panel-${this.generatedId}`, role: "tabpanel" }, h("div", { key: 'c96969d01deba2a60cbc605be6f36101a5ba89a4', class: "b2b-tab-panel" }, h("slot", { key: '11cc6086bd635e43635fe46fd4c4cd095c2bb786' }))));
8
+ return (h(Host, { key: 'af2fa2c4c2a00694c838ad5efcf293fde97a3cd4', id: `b2b-tab-panel-${this.generatedId}`, role: "tabpanel" }, h("div", { key: '3d14cdc1c06a1986cb4e3b23fce7d23fd907e6a1', class: "b2b-tab-panel" }, h("slot", { key: '76b6383394425c71055d82569dab910066265643' }))));
9
9
  }
10
10
  static get is() { return "b2b-tab-panel"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,10 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { h } from "@stencil/core";
3
+ import { B2bTabPanelComponent } from "./tab-panel";
4
+ it('should match the snapshot', async () => {
5
+ const page = await newSpecPage({
6
+ components: [B2bTabPanelComponent],
7
+ template: () => h("b2b-tab-panel", null, "Tab 1"),
8
+ });
9
+ expect(page.root).toMatchSnapshot();
10
+ });