@scania/tegel 0.0.51 → 0.0.52

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 (560) hide show
  1. package/dist/cjs/index-5ad19933.js +4 -4
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sdds-accordion-item.cjs.entry.js +18 -18
  4. package/dist/cjs/sdds-accordion.cjs.entry.js +9 -9
  5. package/dist/cjs/sdds-badges.cjs.entry.js +43 -43
  6. package/dist/cjs/sdds-banner.cjs.entry.js +69 -69
  7. package/dist/cjs/sdds-banner.cjs.entry.js.map +1 -1
  8. package/dist/cjs/sdds-block.cjs.entry.js +21 -21
  9. package/dist/cjs/sdds-body-cell_2.cjs.entry.js +158 -158
  10. package/dist/cjs/sdds-body-cell_2.cjs.entry.js.map +1 -1
  11. package/dist/cjs/sdds-breadcrumb-link.cjs.entry.js +14 -14
  12. package/dist/cjs/sdds-breadcrumb-link.cjs.entry.js.map +1 -1
  13. package/dist/cjs/sdds-breadcrumb.cjs.entry.js +12 -12
  14. package/dist/cjs/sdds-button.cjs.entry.js +23 -23
  15. package/dist/cjs/sdds-button.cjs.entry.js.map +1 -1
  16. package/dist/cjs/sdds-card.cjs.entry.js +37 -37
  17. package/dist/cjs/sdds-checkbox.cjs.entry.js +45 -45
  18. package/dist/cjs/sdds-checkbox.cjs.entry.js.map +1 -1
  19. package/dist/cjs/sdds-datetime.cjs.entry.js +84 -84
  20. package/dist/cjs/sdds-divider.cjs.entry.js +9 -9
  21. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +83 -83
  22. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js.map +1 -1
  23. package/dist/cjs/sdds-dropdown_2.cjs.entry.js +317 -317
  24. package/dist/cjs/sdds-dropdown_2.cjs.entry.js.map +1 -1
  25. package/dist/cjs/sdds-folder-tabs-button.cjs.entry.js +15 -15
  26. package/dist/cjs/sdds-folder-tabs-link.cjs.entry.js +18 -18
  27. package/dist/cjs/sdds-folder-tabs.cjs.entry.js +167 -167
  28. package/dist/cjs/sdds-footer-link-group.cjs.entry.js +19 -19
  29. package/dist/cjs/sdds-footer-link.cjs.entry.js +16 -16
  30. package/dist/cjs/sdds-footer-link.cjs.entry.js.map +1 -1
  31. package/dist/cjs/sdds-footer.cjs.entry.js +15 -15
  32. package/dist/cjs/sdds-header-cell.cjs.entry.js +124 -124
  33. package/dist/cjs/sdds-icon.cjs.entry.js +31 -30
  34. package/dist/cjs/sdds-icon.cjs.entry.js.map +1 -1
  35. package/dist/cjs/sdds-inline-tabs-button.cjs.entry.js +11 -11
  36. package/dist/cjs/sdds-inline-tabs-button.cjs.entry.js.map +1 -1
  37. package/dist/cjs/sdds-inline-tabs-link.cjs.entry.js +14 -14
  38. package/dist/cjs/sdds-inline-tabs-link.cjs.entry.js.map +1 -1
  39. package/dist/cjs/sdds-inline-tabs.cjs.entry.js +175 -175
  40. package/dist/cjs/sdds-link.cjs.entry.js +13 -13
  41. package/dist/cjs/sdds-message.cjs.entry.js +27 -27
  42. package/dist/cjs/sdds-modal.cjs.entry.js +85 -85
  43. package/dist/cjs/sdds-navigation-tabs-button.cjs.entry.js +10 -10
  44. package/dist/cjs/sdds-navigation-tabs-link.cjs.entry.js +13 -13
  45. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +132 -132
  46. package/dist/cjs/sdds-popover-canvas.cjs.entry.js +99 -99
  47. package/dist/cjs/sdds-popover-menu.cjs.entry.js +73 -73
  48. package/dist/cjs/sdds-radio-button.cjs.entry.js +25 -25
  49. package/dist/cjs/sdds-radio-button.cjs.entry.js.map +1 -1
  50. package/dist/cjs/sdds-slider.cjs.entry.js +347 -347
  51. package/dist/cjs/sdds-slider.cjs.entry.js.map +1 -1
  52. package/dist/cjs/sdds-spinner.cjs.entry.js +10 -10
  53. package/dist/cjs/sdds-stepper-item.cjs.entry.js +27 -27
  54. package/dist/cjs/sdds-stepper.cjs.entry.js +32 -32
  55. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +71 -71
  56. package/dist/cjs/sdds-table-body.cjs.entry.js +233 -233
  57. package/dist/cjs/sdds-table-footer.cjs.entry.js +153 -153
  58. package/dist/cjs/sdds-table-header.cjs.entry.js +89 -89
  59. package/dist/cjs/sdds-table-header.cjs.entry.js.map +1 -1
  60. package/dist/cjs/sdds-table-toolbar.cjs.entry.js +54 -54
  61. package/dist/cjs/sdds-table.cjs.entry.js +57 -57
  62. package/dist/cjs/sdds-textarea.cjs.entry.js +55 -55
  63. package/dist/cjs/sdds-textfield.cjs.entry.js +59 -59
  64. package/dist/cjs/sdds-textfield.cjs.entry.js.map +1 -1
  65. package/dist/cjs/sdds-toast.cjs.entry.js +70 -70
  66. package/dist/cjs/sdds-toggle.cjs.entry.js +32 -32
  67. package/dist/cjs/sdds-tooltip.cjs.entry.js +92 -92
  68. package/dist/cjs/tegel.cjs.js +1 -1
  69. package/dist/collection/components/accordion/accordion-item/accordion-item.js +142 -142
  70. package/dist/collection/components/accordion/accordion.js +44 -44
  71. package/dist/collection/components/accordion/accordion.stories.js +80 -80
  72. package/dist/collection/components/badge/badge.stories.js +65 -65
  73. package/dist/collection/components/badge/badges.js +148 -148
  74. package/dist/collection/components/banner/banner.stories.js +79 -79
  75. package/dist/collection/components/banner/sdds-banner.css +7 -2
  76. package/dist/collection/components/banner/sdds-banner.js +250 -331
  77. package/dist/collection/components/banner/sdds-banner.js.map +1 -1
  78. package/dist/collection/components/banner/sdds-banner.stories.js +90 -113
  79. package/dist/collection/components/banner/sdds-banner.stories.js.map +1 -1
  80. package/dist/collection/components/block/block-native.stories.js +40 -40
  81. package/dist/collection/components/block/sdds-block.js +56 -56
  82. package/dist/collection/components/block/sdds-block.stories.js +40 -40
  83. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +21 -21
  84. package/dist/collection/components/breadcrumb/sdds-breadcrumb-link/sdds-breadcrumb-link.css +2 -2
  85. package/dist/collection/components/breadcrumb/sdds-breadcrumb-link/sdds-breadcrumb-link.js +119 -119
  86. package/dist/collection/components/breadcrumb/sdds-breadcrumb-link/sdds-breadcrumb-link.js.map +1 -1
  87. package/dist/collection/components/breadcrumb/sdds-breadcrumb.js +23 -23
  88. package/dist/collection/components/breadcrumb/sdds-breadcrumb.stories.js +33 -27
  89. package/dist/collection/components/breadcrumb/sdds-breadcrumb.stories.js.map +1 -1
  90. package/dist/collection/components/button/button-component.js +152 -152
  91. package/dist/collection/components/button/button-native.stories.js +175 -175
  92. package/dist/collection/components/button/button-webcomponent.stories.js +172 -172
  93. package/dist/collection/components/button/button.css +28 -59
  94. package/dist/collection/components/card/card.stories.js +137 -137
  95. package/dist/collection/components/card/sdds-card.js +269 -269
  96. package/dist/collection/components/card/sdds-card.stories.js +129 -129
  97. package/dist/collection/components/checkbox/checkbox.stories.js +58 -58
  98. package/dist/collection/components/checkbox/sdds-checkbox.css +5 -4
  99. package/dist/collection/components/checkbox/sdds-checkbox.js +240 -240
  100. package/dist/collection/components/checkbox/sdds-checkbox.stories.js +58 -58
  101. package/dist/collection/components/chips/chips.stories.js +110 -110
  102. package/dist/collection/components/data-table/native-table.stories.js +102 -102
  103. package/dist/collection/components/data-table/table/table.js +257 -257
  104. package/dist/collection/components/data-table/table-body/table-body.js +435 -435
  105. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +169 -169
  106. package/dist/collection/components/data-table/table-body-row/table-body-row.css +10 -5
  107. package/dist/collection/components/data-table/table-body-row/table-body-row.js +172 -172
  108. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +163 -163
  109. package/dist/collection/components/data-table/table-component-basic.stories.js +133 -133
  110. package/dist/collection/components/data-table/table-component-batch-actions.stories.js +130 -130
  111. package/dist/collection/components/data-table/table-component-bodydata.stories.js +44 -44
  112. package/dist/collection/components/data-table/table-component-custom-width.stories.js +122 -122
  113. package/dist/collection/components/data-table/table-component-event-listeners.stories.js +122 -122
  114. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +122 -122
  115. package/dist/collection/components/data-table/table-component-filtering.stories.js +137 -137
  116. package/dist/collection/components/data-table/table-component-multiselect.stories.js +133 -133
  117. package/dist/collection/components/data-table/table-component-pagination.stories.js +133 -133
  118. package/dist/collection/components/data-table/table-component-sorting.stories.js +166 -166
  119. package/dist/collection/components/data-table/table-footer/table-footer.js +358 -358
  120. package/dist/collection/components/data-table/table-header/table-header.css +10 -5
  121. package/dist/collection/components/data-table/table-header/table-header.js +156 -156
  122. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +314 -314
  123. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +142 -142
  124. package/dist/collection/components/datetime/datetime.js +389 -389
  125. package/dist/collection/components/datetime/datetime.stories.js +170 -170
  126. package/dist/collection/components/divider/divider-webcomponent.stories.js +58 -58
  127. package/dist/collection/components/divider/divider.js +44 -44
  128. package/dist/collection/components/divider/divider.stories.js +92 -92
  129. package/dist/collection/components/divider/divider.stories.js.map +1 -1
  130. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +360 -360
  131. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +144 -144
  132. package/dist/collection/components/dropdown/dropdown-native.stories.js +82 -82
  133. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +191 -191
  134. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +146 -146
  135. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +141 -141
  136. package/dist/collection/components/dropdown/dropdown.css +12 -10
  137. package/dist/collection/components/dropdown/dropdown.js +573 -573
  138. package/dist/collection/components/footer/footer.stories.js +53 -53
  139. package/dist/collection/components/footer/webcomponent/sdds-footer-link/sdds-footer-link.js +86 -86
  140. package/dist/collection/components/footer/webcomponent/sdds-footer-link/sdds-footer-link.js.map +1 -1
  141. package/dist/collection/components/footer/webcomponent/sdds-footer-link-group/sdds-footer-link-group.js +58 -58
  142. package/dist/collection/components/footer/webcomponent/sdds-footer.js +56 -56
  143. package/dist/collection/components/footer/webcomponent/sdds-footer.stories.js +73 -73
  144. package/dist/collection/components/footer/webcomponent/sdds-footer.stories.js.map +1 -1
  145. package/dist/collection/components/header/header-all.stories.js +41 -41
  146. package/dist/collection/components/header/header-default.stories.js +41 -41
  147. package/dist/collection/components/header/header-inline.stories.js +41 -41
  148. package/dist/collection/components/header/header-search.stories.js +41 -41
  149. package/dist/collection/components/header/header-toolbar.stories.js +41 -41
  150. package/dist/collection/components/icon/icon-font.stories.js +50 -50
  151. package/dist/collection/components/icon/icon-web-component.stories.js +50 -50
  152. package/dist/collection/components/icon/icon.js +90 -90
  153. package/dist/collection/components/icon/iconsArray.js +111 -2
  154. package/dist/collection/components/link/link.stories.js +48 -48
  155. package/dist/collection/components/link/sdds-link.js +118 -118
  156. package/dist/collection/components/link/sdds-link.stories.js +62 -62
  157. package/dist/collection/components/message/message.stories.js +109 -107
  158. package/dist/collection/components/message/message.stories.js.map +1 -1
  159. package/dist/collection/components/message/sdds-message.js +133 -133
  160. package/dist/collection/components/message/sdds-message.stories.js +90 -90
  161. package/dist/collection/components/modal/modal-native.stories.js +83 -83
  162. package/dist/collection/components/modal/modal-webcomponent.stories.js +82 -82
  163. package/dist/collection/components/modal/modal.js +267 -267
  164. package/dist/collection/components/popover-canvas/popover-canvas.js +273 -273
  165. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +59 -59
  166. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +71 -71
  167. package/dist/collection/components/popover-menu/popover-menu.js +221 -221
  168. package/dist/collection/components/popover-menu/popover-menu.stories.js +71 -71
  169. package/dist/collection/components/radio-button/radio-button-component.stories.js +53 -49
  170. package/dist/collection/components/radio-button/radio-button-component.stories.js.map +1 -1
  171. package/dist/collection/components/radio-button/radio-button.js +165 -165
  172. package/dist/collection/components/radio-button/radio-button.js.map +1 -1
  173. package/dist/collection/components/radio-button/radio-button.stories.js +45 -45
  174. package/dist/collection/components/side-menu/side-menu.stories.js +51 -51
  175. package/dist/collection/components/slider/slider.css +25 -14
  176. package/dist/collection/components/slider/slider.js +722 -722
  177. package/dist/collection/components/slider/slider.js.map +1 -1
  178. package/dist/collection/components/slider/slider.stories.js +205 -205
  179. package/dist/collection/components/spinner/spinner.js +62 -62
  180. package/dist/collection/components/spinner/spinner.stories.js +61 -61
  181. package/dist/collection/components/stepper/sdds-stepper.js +126 -126
  182. package/dist/collection/components/stepper/stepper-item/sdds-stepper-item.js +112 -112
  183. package/dist/collection/components/stepper/stepper.stories.js +88 -88
  184. package/dist/collection/components/tabs/folder-tabs/folder-tabs-button/sdds-folder-tabs-button.js +99 -99
  185. package/dist/collection/components/tabs/folder-tabs/folder-tabs-link/sdds-folder-tabs-link.js +155 -155
  186. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +256 -256
  187. package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +64 -64
  188. package/dist/collection/components/tabs/inline-tabs/inline-tabs-button/sdds-inline-tabs-button.css +1 -1
  189. package/dist/collection/components/tabs/inline-tabs/inline-tabs-button/sdds-inline-tabs-button.js +63 -63
  190. package/dist/collection/components/tabs/inline-tabs/inline-tabs-link/sdds-inline-tabs-link.css +1 -1
  191. package/dist/collection/components/tabs/inline-tabs/inline-tabs-link/sdds-inline-tabs-link.js +119 -119
  192. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +261 -261
  193. package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +58 -58
  194. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs-button/sdds-navigation-tabs-button.js +63 -63
  195. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs-link/sdds-navigation-tabs-link.js +119 -119
  196. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +217 -217
  197. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +59 -59
  198. package/dist/collection/components/textarea/textarea.js +414 -414
  199. package/dist/collection/components/textarea/textarea.stories.js +148 -148
  200. package/dist/collection/components/textfield/textfield.css +12 -67
  201. package/dist/collection/components/textfield/textfield.js +419 -419
  202. package/dist/collection/components/textfield/textfield.js.map +1 -1
  203. package/dist/collection/components/textfield/textfield.stories.js +209 -208
  204. package/dist/collection/components/textfield/textfield.stories.js.map +1 -1
  205. package/dist/collection/components/toast/sdds-toast.js +252 -252
  206. package/dist/collection/components/toast/sdds-toast.stories.js +70 -70
  207. package/dist/collection/components/toast/toast.stories.js +103 -103
  208. package/dist/collection/components/toggle/sdds-toggle.js +210 -210
  209. package/dist/collection/components/toggle/sdds-toggle.stories.js +78 -78
  210. package/dist/collection/components/toggle/toggle.stories.js +71 -71
  211. package/dist/collection/components/tooltip/tooltip.js +230 -230
  212. package/dist/collection/components/tooltip/tooltip.stories.js +103 -103
  213. package/dist/collection/components/utility/colour/background-color.stories.js +84 -84
  214. package/dist/collection/components/utility/colour/text-color.stories.js +84 -84
  215. package/dist/collection/foundations-stories/colour/colour-brand.stories.js +15 -15
  216. package/dist/collection/foundations-stories/colour/colour-scales.stories.js +54 -54
  217. package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +15 -15
  218. package/dist/collection/foundations-stories/grid/grid.stories.js +53 -53
  219. package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +11 -11
  220. package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +11 -11
  221. package/dist/collection/foundations-stories/typography/typography-body.stories.js +10 -10
  222. package/dist/collection/foundations-stories/typography/typography-detail.stories.js +10 -10
  223. package/dist/collection/foundations-stories/typography/typography-headline.stories.js +23 -23
  224. package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +10 -10
  225. package/dist/collection/index.js +2 -2
  226. package/dist/collection/utils/utils.js +13 -13
  227. package/dist/components/dropdown-option.js +92 -92
  228. package/dist/components/dropdown-option.js.map +1 -1
  229. package/dist/components/dropdown.js +290 -290
  230. package/dist/components/dropdown.js.map +1 -1
  231. package/dist/components/icon.js +51 -50
  232. package/dist/components/icon.js.map +1 -1
  233. package/dist/components/sdds-accordion-item.js +44 -44
  234. package/dist/components/sdds-accordion.js +26 -26
  235. package/dist/components/sdds-badges.js +65 -65
  236. package/dist/components/sdds-banner.js +101 -110
  237. package/dist/components/sdds-banner.js.map +1 -1
  238. package/dist/components/sdds-block.js +38 -38
  239. package/dist/components/sdds-breadcrumb-link.js +35 -35
  240. package/dist/components/sdds-breadcrumb-link.js.map +1 -1
  241. package/dist/components/sdds-breadcrumb.js +27 -27
  242. package/dist/components/sdds-button.js +46 -46
  243. package/dist/components/sdds-button.js.map +1 -1
  244. package/dist/components/sdds-card.js +66 -66
  245. package/dist/components/sdds-checkbox.js +67 -67
  246. package/dist/components/sdds-checkbox.js.map +1 -1
  247. package/dist/components/sdds-datetime.js +118 -118
  248. package/dist/components/sdds-divider.js +26 -26
  249. package/dist/components/sdds-dropdown-filter.js +129 -129
  250. package/dist/components/sdds-dropdown-filter.js.map +1 -1
  251. package/dist/components/sdds-folder-tabs-button.js +35 -35
  252. package/dist/components/sdds-folder-tabs-link.js +41 -41
  253. package/dist/components/sdds-folder-tabs.js +195 -195
  254. package/dist/components/sdds-footer-link-group.js +41 -41
  255. package/dist/components/sdds-footer-link.js +34 -34
  256. package/dist/components/sdds-footer-link.js.map +1 -1
  257. package/dist/components/sdds-footer.js +33 -33
  258. package/dist/components/sdds-header-cell.js +156 -156
  259. package/dist/components/sdds-inline-tabs-button.js +29 -29
  260. package/dist/components/sdds-inline-tabs-button.js.map +1 -1
  261. package/dist/components/sdds-inline-tabs-link.js +35 -35
  262. package/dist/components/sdds-inline-tabs-link.js.map +1 -1
  263. package/dist/components/sdds-inline-tabs.js +202 -202
  264. package/dist/components/sdds-link.js +42 -1
  265. package/dist/components/sdds-link.js.map +1 -1
  266. package/dist/components/sdds-message.js +53 -53
  267. package/dist/components/sdds-modal.js +115 -115
  268. package/dist/components/sdds-navigation-tabs-button.js +28 -28
  269. package/dist/components/sdds-navigation-tabs-link.js +34 -34
  270. package/dist/components/sdds-navigation-tabs.js +158 -158
  271. package/dist/components/sdds-popover-canvas.js +126 -126
  272. package/dist/components/sdds-popover-menu.js +98 -98
  273. package/dist/components/sdds-radio-button.js +46 -46
  274. package/dist/components/sdds-radio-button.js.map +1 -1
  275. package/dist/components/sdds-slider.js +384 -384
  276. package/dist/components/sdds-slider.js.map +1 -1
  277. package/dist/components/sdds-spinner.js +27 -27
  278. package/dist/components/sdds-stepper-item.js +56 -56
  279. package/dist/components/sdds-stepper.js +53 -53
  280. package/dist/components/sdds-table-body-row-expandable.js +95 -95
  281. package/dist/components/sdds-table-body.js +280 -280
  282. package/dist/components/sdds-table-footer.js +185 -185
  283. package/dist/components/sdds-table-header.js +115 -115
  284. package/dist/components/sdds-table-header.js.map +1 -1
  285. package/dist/components/sdds-table-toolbar.js +77 -77
  286. package/dist/components/sdds-table.js +81 -81
  287. package/dist/components/sdds-textarea.js +91 -91
  288. package/dist/components/sdds-textfield.js +95 -95
  289. package/dist/components/sdds-textfield.js.map +1 -1
  290. package/dist/components/sdds-toast.js +101 -101
  291. package/dist/components/sdds-toggle.js +55 -55
  292. package/dist/components/sdds-tooltip.js +116 -116
  293. package/dist/components/table-body-cell.js +94 -94
  294. package/dist/components/table-body-row.js +114 -114
  295. package/dist/components/table-body-row.js.map +1 -1
  296. package/dist/esm/index-fdfb114c.js +4 -4
  297. package/dist/esm/loader.js +1 -1
  298. package/dist/esm/polyfills/core-js.js +0 -0
  299. package/dist/esm/polyfills/dom.js +0 -0
  300. package/dist/esm/polyfills/es5-html-element.js +0 -0
  301. package/dist/esm/polyfills/index.js +0 -0
  302. package/dist/esm/polyfills/system.js +0 -0
  303. package/dist/esm/sdds-accordion-item.entry.js +18 -18
  304. package/dist/esm/sdds-accordion.entry.js +9 -9
  305. package/dist/esm/sdds-badges.entry.js +43 -43
  306. package/dist/esm/sdds-banner.entry.js +69 -69
  307. package/dist/esm/sdds-banner.entry.js.map +1 -1
  308. package/dist/esm/sdds-block.entry.js +21 -21
  309. package/dist/esm/sdds-body-cell_2.entry.js +158 -158
  310. package/dist/esm/sdds-body-cell_2.entry.js.map +1 -1
  311. package/dist/esm/sdds-breadcrumb-link.entry.js +14 -14
  312. package/dist/esm/sdds-breadcrumb-link.entry.js.map +1 -1
  313. package/dist/esm/sdds-breadcrumb.entry.js +12 -12
  314. package/dist/esm/sdds-button.entry.js +23 -23
  315. package/dist/esm/sdds-button.entry.js.map +1 -1
  316. package/dist/esm/sdds-card.entry.js +37 -37
  317. package/dist/esm/sdds-checkbox.entry.js +45 -45
  318. package/dist/esm/sdds-checkbox.entry.js.map +1 -1
  319. package/dist/esm/sdds-datetime.entry.js +84 -84
  320. package/dist/esm/sdds-divider.entry.js +9 -9
  321. package/dist/esm/sdds-dropdown-filter.entry.js +83 -83
  322. package/dist/esm/sdds-dropdown-filter.entry.js.map +1 -1
  323. package/dist/esm/sdds-dropdown_2.entry.js +317 -317
  324. package/dist/esm/sdds-dropdown_2.entry.js.map +1 -1
  325. package/dist/esm/sdds-folder-tabs-button.entry.js +15 -15
  326. package/dist/esm/sdds-folder-tabs-link.entry.js +18 -18
  327. package/dist/esm/sdds-folder-tabs.entry.js +167 -167
  328. package/dist/esm/sdds-footer-link-group.entry.js +19 -19
  329. package/dist/esm/sdds-footer-link.entry.js +16 -16
  330. package/dist/esm/sdds-footer-link.entry.js.map +1 -1
  331. package/dist/esm/sdds-footer.entry.js +15 -15
  332. package/dist/esm/sdds-header-cell.entry.js +124 -124
  333. package/dist/esm/sdds-icon.entry.js +31 -30
  334. package/dist/esm/sdds-icon.entry.js.map +1 -1
  335. package/dist/esm/sdds-inline-tabs-button.entry.js +11 -11
  336. package/dist/esm/sdds-inline-tabs-button.entry.js.map +1 -1
  337. package/dist/esm/sdds-inline-tabs-link.entry.js +14 -14
  338. package/dist/esm/sdds-inline-tabs-link.entry.js.map +1 -1
  339. package/dist/esm/sdds-inline-tabs.entry.js +175 -175
  340. package/dist/esm/sdds-link.entry.js +13 -13
  341. package/dist/esm/sdds-message.entry.js +27 -27
  342. package/dist/esm/sdds-modal.entry.js +85 -85
  343. package/dist/esm/sdds-navigation-tabs-button.entry.js +10 -10
  344. package/dist/esm/sdds-navigation-tabs-link.entry.js +13 -13
  345. package/dist/esm/sdds-navigation-tabs.entry.js +132 -132
  346. package/dist/esm/sdds-popover-canvas.entry.js +99 -99
  347. package/dist/esm/sdds-popover-menu.entry.js +73 -73
  348. package/dist/esm/sdds-radio-button.entry.js +25 -25
  349. package/dist/esm/sdds-radio-button.entry.js.map +1 -1
  350. package/dist/esm/sdds-slider.entry.js +347 -347
  351. package/dist/esm/sdds-slider.entry.js.map +1 -1
  352. package/dist/esm/sdds-spinner.entry.js +10 -10
  353. package/dist/esm/sdds-stepper-item.entry.js +27 -27
  354. package/dist/esm/sdds-stepper.entry.js +32 -32
  355. package/dist/esm/sdds-table-body-row-expandable.entry.js +71 -71
  356. package/dist/esm/sdds-table-body.entry.js +233 -233
  357. package/dist/esm/sdds-table-footer.entry.js +153 -153
  358. package/dist/esm/sdds-table-header.entry.js +89 -89
  359. package/dist/esm/sdds-table-header.entry.js.map +1 -1
  360. package/dist/esm/sdds-table-toolbar.entry.js +54 -54
  361. package/dist/esm/sdds-table.entry.js +57 -57
  362. package/dist/esm/sdds-textarea.entry.js +55 -55
  363. package/dist/esm/sdds-textfield.entry.js +59 -59
  364. package/dist/esm/sdds-textfield.entry.js.map +1 -1
  365. package/dist/esm/sdds-toast.entry.js +70 -70
  366. package/dist/esm/sdds-toggle.entry.js +32 -32
  367. package/dist/esm/sdds-tooltip.entry.js +92 -92
  368. package/dist/esm/tegel.js +1 -1
  369. package/dist/tegel/p-1df2e987.entry.js +2 -0
  370. package/dist/tegel/p-1df2e987.entry.js.map +1 -0
  371. package/dist/tegel/p-1e196fff.entry.js +2 -0
  372. package/dist/tegel/p-1e196fff.entry.js.map +1 -0
  373. package/dist/tegel/p-23998948.entry.js +2 -0
  374. package/dist/tegel/{p-cfacd8e6.entry.js.map → p-23998948.entry.js.map} +1 -1
  375. package/dist/tegel/p-29bcd369.entry.js +2 -0
  376. package/dist/tegel/p-29bcd369.entry.js.map +1 -0
  377. package/dist/tegel/p-3a93619e.entry.js +2 -0
  378. package/dist/tegel/p-3a93619e.entry.js.map +1 -0
  379. package/dist/tegel/p-5812ec42.entry.js +2 -0
  380. package/dist/tegel/p-5812ec42.entry.js.map +1 -0
  381. package/dist/tegel/{p-792e8c5d.entry.js → p-5ca26ce8.entry.js} +2 -2
  382. package/dist/tegel/p-5ca26ce8.entry.js.map +1 -0
  383. package/dist/tegel/p-5cc6d070.entry.js +2 -0
  384. package/dist/tegel/{p-90af19c6.entry.js.map → p-5cc6d070.entry.js.map} +1 -1
  385. package/dist/tegel/p-626434af.entry.js +2 -0
  386. package/dist/tegel/{p-1baafb40.entry.js.map → p-626434af.entry.js.map} +1 -1
  387. package/dist/tegel/p-68e4c190.entry.js +2 -0
  388. package/dist/tegel/{p-872bef70.entry.js.map → p-68e4c190.entry.js.map} +1 -1
  389. package/dist/tegel/{p-d87ce5e9.entry.js → p-88ba44a7.entry.js} +2 -2
  390. package/dist/tegel/p-88ba44a7.entry.js.map +1 -0
  391. package/dist/tegel/p-8b807df5.entry.js +2 -0
  392. package/dist/tegel/p-8b807df5.entry.js.map +1 -0
  393. package/dist/tegel/{p-8ee9e2f5.entry.js → p-ad3439b8.entry.js} +2 -2
  394. package/dist/tegel/{p-8ee9e2f5.entry.js.map → p-ad3439b8.entry.js.map} +1 -1
  395. package/dist/tegel/p-b8d838d1.entry.js +2 -0
  396. package/dist/tegel/p-b8d838d1.entry.js.map +1 -0
  397. package/dist/tegel/p-f23cb0ae.entry.js +2 -0
  398. package/dist/tegel/p-f23cb0ae.entry.js.map +1 -0
  399. package/dist/tegel/tegel.css +4 -4
  400. package/dist/tegel/tegel.esm.js +1 -1
  401. package/dist/tegel/tegel.esm.js.map +1 -1
  402. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +17 -17
  403. package/dist/types/components/accordion/accordion.d.ts +5 -5
  404. package/dist/types/components/accordion/accordion.stories.d.ts +77 -77
  405. package/dist/types/components/badge/badge.stories.d.ts +61 -61
  406. package/dist/types/components/badge/badges.d.ts +16 -16
  407. package/dist/types/components/banner/banner.stories.d.ts +68 -68
  408. package/dist/types/components/banner/sdds-banner.d.ts +40 -48
  409. package/dist/types/components/banner/sdds-banner.stories.d.ts +82 -104
  410. package/dist/types/components/block/block-native.stories.d.ts +31 -31
  411. package/dist/types/components/block/sdds-block.d.ts +9 -9
  412. package/dist/types/components/block/sdds-block.stories.d.ts +32 -32
  413. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +12 -12
  414. package/dist/types/components/breadcrumb/sdds-breadcrumb-link/sdds-breadcrumb-link.d.ts +13 -13
  415. package/dist/types/components/breadcrumb/sdds-breadcrumb.d.ts +5 -5
  416. package/dist/types/components/breadcrumb/sdds-breadcrumb.stories.d.ts +16 -16
  417. package/dist/types/components/button/button-component.d.ts +18 -18
  418. package/dist/types/components/button/button-native.stories.d.ts +159 -159
  419. package/dist/types/components/button/button-webcomponent.stories.d.ts +151 -151
  420. package/dist/types/components/card/card.stories.d.ts +137 -137
  421. package/dist/types/components/card/sdds-card.d.ts +39 -39
  422. package/dist/types/components/card/sdds-card.stories.d.ts +128 -128
  423. package/dist/types/components/checkbox/checkbox.stories.d.ts +51 -51
  424. package/dist/types/components/checkbox/sdds-checkbox.d.ts +38 -38
  425. package/dist/types/components/checkbox/sdds-checkbox.stories.d.ts +52 -52
  426. package/dist/types/components/chips/chips.stories.d.ts +101 -101
  427. package/dist/types/components/data-table/native-table.stories.d.ts +119 -119
  428. package/dist/types/components/data-table/table/table.d.ts +48 -48
  429. package/dist/types/components/data-table/table-body/table-body.d.ts +54 -54
  430. package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +24 -24
  431. package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +27 -27
  432. package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +27 -27
  433. package/dist/types/components/data-table/table-component-basic.stories.d.ts +144 -144
  434. package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +139 -139
  435. package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +33 -33
  436. package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +131 -131
  437. package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +131 -131
  438. package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +131 -131
  439. package/dist/types/components/data-table/table-component-filtering.stories.d.ts +139 -139
  440. package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +144 -144
  441. package/dist/types/components/data-table/table-component-pagination.stories.d.ts +144 -144
  442. package/dist/types/components/data-table/table-component-sorting.stories.d.ts +183 -183
  443. package/dist/types/components/data-table/table-footer/table-footer.d.ts +50 -50
  444. package/dist/types/components/data-table/table-header/table-header.d.ts +27 -27
  445. package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +43 -43
  446. package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +22 -22
  447. package/dist/types/components/datetime/datetime.d.ts +48 -48
  448. package/dist/types/components/datetime/datetime.stories.d.ts +128 -128
  449. package/dist/types/components/divider/divider-webcomponent.stories.d.ts +58 -58
  450. package/dist/types/components/divider/divider.d.ts +5 -5
  451. package/dist/types/components/divider/divider.stories.d.ts +60 -60
  452. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +44 -44
  453. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +137 -137
  454. package/dist/types/components/dropdown/dropdown-native.stories.d.ts +72 -72
  455. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +24 -24
  456. package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +144 -144
  457. package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +144 -144
  458. package/dist/types/components/dropdown/dropdown.d.ts +59 -59
  459. package/dist/types/components/footer/footer.stories.d.ts +45 -45
  460. package/dist/types/components/footer/webcomponent/sdds-footer-link/sdds-footer-link.d.ts +13 -13
  461. package/dist/types/components/footer/webcomponent/sdds-footer-link-group/sdds-footer-link-group.d.ts +11 -11
  462. package/dist/types/components/footer/webcomponent/sdds-footer.d.ts +9 -9
  463. package/dist/types/components/footer/webcomponent/sdds-footer.stories.d.ts +44 -44
  464. package/dist/types/components/header/header-all.stories.d.ts +31 -31
  465. package/dist/types/components/header/header-default.stories.d.ts +31 -31
  466. package/dist/types/components/header/header-inline.stories.d.ts +31 -31
  467. package/dist/types/components/header/header-search.stories.d.ts +31 -31
  468. package/dist/types/components/header/header-toolbar.stories.d.ts +31 -31
  469. package/dist/types/components/icon/icon-font.stories.d.ts +38 -38
  470. package/dist/types/components/icon/icon-web-component.stories.d.ts +38 -38
  471. package/dist/types/components/icon/icon.d.ts +12 -12
  472. package/dist/types/components/link/link.stories.d.ts +43 -43
  473. package/dist/types/components/link/sdds-link.d.ts +13 -13
  474. package/dist/types/components/link/sdds-link.stories.d.ts +58 -58
  475. package/dist/types/components/message/message.stories.d.ts +89 -89
  476. package/dist/types/components/message/sdds-message.d.ts +14 -14
  477. package/dist/types/components/message/sdds-message.stories.d.ts +88 -88
  478. package/dist/types/components/modal/modal-native.stories.d.ts +74 -74
  479. package/dist/types/components/modal/modal-webcomponent.stories.d.ts +70 -70
  480. package/dist/types/components/modal/modal.d.ts +37 -37
  481. package/dist/types/components/popover-canvas/popover-canvas.d.ts +33 -33
  482. package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +27 -27
  483. package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +32 -32
  484. package/dist/types/components/popover-menu/popover-menu.d.ts +24 -24
  485. package/dist/types/components/popover-menu/popover-menu.stories.d.ts +32 -32
  486. package/dist/types/components/radio-button/radio-button-component.stories.d.ts +39 -39
  487. package/dist/types/components/radio-button/radio-button.d.ts +26 -26
  488. package/dist/types/components/radio-button/radio-button.stories.d.ts +38 -38
  489. package/dist/types/components/side-menu/side-menu.stories.d.ts +42 -42
  490. package/dist/types/components/slider/slider.d.ts +86 -86
  491. package/dist/types/components/slider/slider.stories.d.ts +235 -235
  492. package/dist/types/components/spinner/spinner.d.ts +7 -7
  493. package/dist/types/components/spinner/spinner.stories.d.ts +47 -47
  494. package/dist/types/components/stepper/sdds-stepper.d.ts +17 -17
  495. package/dist/types/components/stepper/stepper-item/sdds-stepper-item.d.ts +17 -17
  496. package/dist/types/components/stepper/stepper.stories.d.ts +72 -72
  497. package/dist/types/components/tabs/folder-tabs/folder-tabs-button/sdds-folder-tabs-button.d.ts +10 -10
  498. package/dist/types/components/tabs/folder-tabs/folder-tabs-link/sdds-folder-tabs-link.d.ts +16 -16
  499. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +38 -38
  500. package/dist/types/components/tabs/folder-tabs/folder-tabs.stories.d.ts +52 -52
  501. package/dist/types/components/tabs/inline-tabs/inline-tabs-button/sdds-inline-tabs-button.d.ts +7 -7
  502. package/dist/types/components/tabs/inline-tabs/inline-tabs-link/sdds-inline-tabs-link.d.ts +13 -13
  503. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +40 -40
  504. package/dist/types/components/tabs/inline-tabs/inline-tabs.stories.d.ts +44 -44
  505. package/dist/types/components/tabs/navigation-tabs/navigation-tabs-button/sdds-navigation-tabs-button.d.ts +7 -7
  506. package/dist/types/components/tabs/navigation-tabs/navigation-tabs-link/sdds-navigation-tabs-link.d.ts +13 -13
  507. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +35 -35
  508. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +44 -44
  509. package/dist/types/components/textarea/textarea.d.ts +50 -50
  510. package/dist/types/components/textarea/textarea.stories.d.ts +139 -139
  511. package/dist/types/components/textfield/textfield.d.ts +52 -52
  512. package/dist/types/components/textfield/textfield.stories.d.ts +201 -201
  513. package/dist/types/components/toast/sdds-toast.d.ts +36 -36
  514. package/dist/types/components/toast/sdds-toast.stories.d.ts +56 -56
  515. package/dist/types/components/toast/toast.stories.d.ts +68 -68
  516. package/dist/types/components/toggle/sdds-toggle.d.ts +31 -31
  517. package/dist/types/components/toggle/sdds-toggle.stories.d.ts +74 -74
  518. package/dist/types/components/toggle/toggle.stories.d.ts +58 -58
  519. package/dist/types/components/tooltip/tooltip.d.ts +24 -24
  520. package/dist/types/components/tooltip/tooltip.stories.d.ts +66 -66
  521. package/dist/types/components/utility/colour/background-color.stories.d.ts +58 -58
  522. package/dist/types/components/utility/colour/text-color.stories.d.ts +58 -58
  523. package/dist/types/components.d.ts +2 -42
  524. package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +13 -13
  525. package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +13 -13
  526. package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +13 -13
  527. package/dist/types/foundations-stories/grid/grid.stories.d.ts +35 -35
  528. package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +8 -8
  529. package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +8 -8
  530. package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +8 -8
  531. package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +8 -8
  532. package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +21 -21
  533. package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +8 -8
  534. package/dist/types/index.d.ts +1 -1
  535. package/dist/types/utils/utils.d.ts +2 -2
  536. package/package.json +1 -1
  537. package/dist/components/sdds-link2.js +0 -46
  538. package/dist/components/sdds-link2.js.map +0 -1
  539. package/dist/tegel/p-1adb9259.entry.js +0 -2
  540. package/dist/tegel/p-1adb9259.entry.js.map +0 -1
  541. package/dist/tegel/p-1baafb40.entry.js +0 -2
  542. package/dist/tegel/p-2837b06c.entry.js +0 -2
  543. package/dist/tegel/p-2837b06c.entry.js.map +0 -1
  544. package/dist/tegel/p-58bc7a27.entry.js +0 -2
  545. package/dist/tegel/p-58bc7a27.entry.js.map +0 -1
  546. package/dist/tegel/p-70ccf3f7.entry.js +0 -2
  547. package/dist/tegel/p-70ccf3f7.entry.js.map +0 -1
  548. package/dist/tegel/p-792e8c5d.entry.js.map +0 -1
  549. package/dist/tegel/p-81c597fd.entry.js +0 -2
  550. package/dist/tegel/p-81c597fd.entry.js.map +0 -1
  551. package/dist/tegel/p-872bef70.entry.js +0 -2
  552. package/dist/tegel/p-90af19c6.entry.js +0 -2
  553. package/dist/tegel/p-b2269b6b.entry.js +0 -2
  554. package/dist/tegel/p-b2269b6b.entry.js.map +0 -1
  555. package/dist/tegel/p-b6fc0de7.entry.js +0 -2
  556. package/dist/tegel/p-b6fc0de7.entry.js.map +0 -1
  557. package/dist/tegel/p-bd09c184.entry.js +0 -2
  558. package/dist/tegel/p-bd09c184.entry.js.map +0 -1
  559. package/dist/tegel/p-cfacd8e6.entry.js +0 -2
  560. package/dist/tegel/p-d87ce5e9.entry.js.map +0 -1
@@ -2,191 +2,191 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
 
3
3
  const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:48px}:host *{box-sizing:border-box}:host .sdds-table__footer-row{background-color:var(--sdds-data-table-footer-background);color:var(--sdds-data-table-color)}:host .sdds-table__footer-cell{padding:0 16px}:host .sdds-table__footer-cell .sdds-table__pagination{height:48px;display:flex;align-items:center;justify-content:space-between}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__row-selector,:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__page-selector{display:flex;align-items:center}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__page-selector-input{font:var(--sdds-detail-02);letter-spacing:var(--sdds-detail-02-ls);background-color:var(--sdds-data-table-footer-page-selector-input-background);color:var(--sdds-data-table-color);width:36px;height:30px;border:none;border-radius:4px;transition:background-color 250ms ease;margin-right:4px;padding-right:8px}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__page-selector-input:hover{background-color:var(--sdds-data-table-footer-page-selector-input-background-hover)}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__page-selector-input:disabled{color:var(--sdds-data-table-footer-page-selector-input-color-disabled)}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__page-selector-input--shake{animation:sdds-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__footer-text{font:var(--sdds-detail-02);letter-spacing:var(--sdds-detail-02-ls);padding:1px 8px 0 0}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:32px;width:32px;border-radius:4px;transition:background-color 250ms ease}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__footer-btn:hover{background-color:var(--sdds-data-table-footer-btn-hover)}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__footer-btn:disabled{cursor:default;opacity:0.38}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__footer-btn:disabled:hover{background-color:transparent}:host .sdds-table__footer-cell .sdds-table__pagination .sdds-table__footer-btn-svg{height:20px;width:20px;fill:var(--sdds-data-table-color)}:host(.sdds-table--compact){height:32px}:host(.sdds-table--compact) .sdds-table__footer-cell .sdds-table__pagination{height:32px}:host(.sdds-table--compact) .sdds-table__footer-cell .sdds-table__pagination .sdds-table__page-selector-input{height:24px}:host(.sdds-table--compact) .sdds-table__footer-cell .sdds-table__pagination .sdds-table__footer-btn{height:28px;width:28px}";
4
4
 
5
- const relevantTableProps = [
6
- 'compactDesign',
7
- 'noMinWidth',
8
- 'verticalDividers',
9
- ];
10
- function removeShakeAnimation(e) {
11
- e.target.classList.remove('sdds-table__page-selector-input--shake');
12
- }
13
- const TableFooter = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
14
- constructor() {
15
- super();
16
- this.__registerHost();
17
- this.__attachShadow();
18
- this.internalSddsEnablePagination = createEvent(this, "internalSddsEnablePagination", 7);
19
- this.sddsPageChange = createEvent(this, "sddsPageChange", 7);
20
- this.paginationPrev = (event) => {
21
- event.preventDefault();
22
- // Enable lowering until 1st page
23
- if (this.paginationValue >= 2) {
24
- this.paginationValue--;
25
- this.runPagination();
26
- }
27
- };
28
- this.paginationNext = (event) => {
29
- event.preventDefault();
30
- // Enable increasing until the max number of pages
31
- if (this.paginationValue <= this.numberOfPages) {
32
- this.paginationValue++;
33
- this.runPagination();
34
- }
35
- };
36
- this.runPagination = () => {
37
- if (!this.disablePaginationFunction) {
38
- // grab all rows in body
39
- const dataRowsPagination = this.host.parentNode
40
- .querySelector('sdds-table-body')
41
- .querySelectorAll('.sdds-table__row');
42
- dataRowsPagination.forEach((item, i) => {
43
- // for making logic easier 1st result, 2nd result...
44
- const index = i + 1;
45
- if (this.tempPaginationDisable) {
46
- this.paginationValue = 1;
47
- }
48
- else {
49
- const lastResult = this.rowsPerPage * this.paginationValue;
50
- const firstResult = lastResult - this.rowsPerPage;
51
- if (index > firstResult && index <= lastResult) {
52
- item.classList.remove('sdds-table__row--hidden');
53
- }
54
- else {
55
- item.classList.add('sdds-table__row--hidden');
56
- }
57
- }
58
- });
59
- }
60
- };
61
- this.clientPaginationPrev = (event) => {
62
- event.preventDefault();
63
- // Enable lowering until 1st page
64
- if (this.clientPaginationValue >= 2) {
65
- this.clientPaginationValue--;
66
- this.sendPaginationValue(this.clientPaginationValue);
67
- }
68
- };
69
- this.clientPaginationNext = (event) => {
70
- event.preventDefault();
71
- // Enable increasing until the max number of pages
72
- if (this.clientPaginationValue <= this.clientMaxPages) {
73
- this.clientPaginationValue++;
74
- this.sendPaginationValue(this.clientPaginationValue);
75
- }
76
- };
77
- this.enablePagination = false;
78
- this.rowsPerPage = 5;
79
- this.enableClientPagination = false;
80
- this.clientPaginationValue = 1;
81
- this.clientMaxPages = 1;
82
- this.clientSetColumnsNumber = null;
83
- this.disablePaginationFunction = false;
84
- this.columnsNumber = 0;
85
- this.numberOfPages = 0;
86
- this.paginationValue = 1;
87
- this.tempPaginationDisable = false;
88
- this.verticalDividers = false;
89
- this.compactDesign = false;
90
- this.noMinWidth = false;
91
- this.whiteBackground = false;
92
- this.tableId = '';
93
- }
94
- internalSddsPropChangeListener(event) {
95
- if (this.tableId === event.detail.tableId) {
96
- event.detail.changed
97
- .filter((changedProp) => relevantTableProps.includes(changedProp))
98
- .forEach((changedProp) => {
99
- if (typeof this[changedProp] === 'undefined') {
100
- throw new Error(`Table prop is not supported: ${changedProp}`);
101
- }
102
- this[changedProp] = event.detail[changedProp];
103
- });
104
- }
105
- }
106
- connectedCallback() {
107
- this.tableEl = this.host.closest('sdds-table');
108
- this.tableId = this.tableEl.tableId;
109
- }
110
- componentWillLoad() {
111
- relevantTableProps.forEach((tablePropName) => {
112
- this[tablePropName] = this.tableEl[tablePropName];
113
- });
114
- const numberOfRows = this.host.parentElement.querySelector('sdds-table-body').childElementCount;
115
- const numberOfColumns = this.host.parentElement.querySelector('sdds-table-header').childElementCount;
116
- this.numberOfPages = Math.ceil(numberOfRows / this.rowsPerPage);
117
- if (this.clientSetColumnsNumber !== null) {
118
- this.columnsNumber = this.clientSetColumnsNumber;
119
- }
120
- else {
121
- this.columnsNumber = numberOfColumns;
122
- }
123
- this.internalSddsEnablePagination.emit(this.tableId);
124
- }
125
- paginationInputChange(event) {
126
- const insertedValue = event.target.value;
127
- if (insertedValue > this.numberOfPages || insertedValue < 1) {
128
- event.target.classList.add('sdds-table__page-selector-input--shake');
129
- this.paginationValue = event.target.max;
130
- }
131
- else {
132
- this.paginationValue = event.target.value;
133
- }
134
- this.runPagination();
135
- }
136
- sddsPaginationListener(event) {
137
- if (this.tableId === event.detail) {
138
- this.runPagination();
139
- }
140
- }
141
- sendPaginationValue(value) {
142
- this.sddsPageChange.emit([this.tableId, value]);
143
- }
144
- clientPaginationInputChange(event) {
145
- const insertedValue = event.target.value;
146
- if (insertedValue > this.clientMaxPages || insertedValue < 1) {
147
- event.target.classList.add('sdds-table__page-selector-input--shake');
148
- this.clientPaginationValue = event.target.max;
149
- }
150
- else {
151
- this.clientPaginationValue = event.target.value;
152
- }
153
- this.sendPaginationValue(this.clientPaginationValue);
154
- }
155
- render() {
156
- return (h(Host, { class: this.compactDesign ? 'sdds-table--compact' : '' }, h("tr", { class: "sdds-table__footer-row" }, h("td", { class: "sdds-table__footer-cell", colSpan: this.columnsNumber }, this.enablePagination && !this.enableClientPagination && (h("div", { class: "sdds-table__pagination" }, h("div", { class: "sdds-table__row-selector" }), h("div", { class: "sdds-table__page-selector" }, h("input", { class: "sdds-table__page-selector-input", type: "number", min: "1", max: this.numberOfPages, value: this.paginationValue, pattern: "[0-9]+", dir: "rtl", onChange: (event) => this.paginationInputChange(event), onFocusout: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation, disabled: this.tempPaginationDisable }), h("p", { class: "sdds-table__footer-text" }, "of ", h("span", null, this.tempPaginationDisable ? 1 : this.numberOfPages), " pages"), h("button", { class: "sdds-table__footer-btn", disabled: this.paginationValue <= 1 || this.tempPaginationDisable, onClick: (event) => this.paginationPrev(event) }, h("svg", { class: "sdds-table__footer-btn-svg", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M22.217 4.273a1 1 0 0 1 0 1.415l-9.888 9.888a.6.6 0 0 0 0 .848l9.888 9.888a1 1 0 0 1-1.414 1.415l-9.889-9.889a2.6 2.6 0 0 1 0-3.677l9.889-9.888a1 1 0 0 1 1.414 0Z" }))), h("button", { class: "sdds-table__footer-btn", disabled: this.paginationValue >= this.numberOfPages || this.tempPaginationDisable, onClick: (event) => this.paginationNext(event) }, h("svg", { class: "sdds-table__footer-btn-svg", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.783 27.727a1 1 0 0 1 0-1.415l9.888-9.888a.6.6 0 0 0 0-.848L9.783 5.688a1 1 0 0 1 1.414-1.415l9.889 9.889a2.6 2.6 0 0 1 0 3.676l-9.889 9.889a1 1 0 0 1-1.414 0Z" })))))), this.enableClientPagination && !this.enablePagination && (h("div", { class: "sdds-table__pagination" }, h("div", { class: "sdds-table__row-selector" }), h("div", { class: "sdds-table__page-selector" }, h("input", { class: "sdds-table__page-selector-input", type: "number", min: "1", max: this.clientMaxPages, value: this.clientPaginationValue, pattern: "[0-9]+", dir: "rtl", onChange: (event) => this.clientPaginationInputChange(event), onFocusout: (event) => this.clientPaginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { class: "sdds-table__footer-text" }, "of ", h("span", null, this.clientMaxPages), " pages"), h("button", { class: "sdds-table__footer-btn", disabled: this.clientPaginationValue <= 1, onClick: (event) => this.clientPaginationPrev(event) }, h("svg", { class: "sdds-table__footer-btn-svg", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M22.217 4.273a1 1 0 0 1 0 1.415l-9.888 9.888a.6.6 0 0 0 0 .848l9.888 9.888a1 1 0 0 1-1.414 1.415l-9.889-9.889a2.6 2.6 0 0 1 0-3.677l9.889-9.888a1 1 0 0 1 1.414 0Z" }))), h("button", { class: "sdds-table__footer-btn", disabled: this.clientPaginationValue >= this.clientMaxPages, onClick: (event) => this.clientPaginationNext(event) }, h("svg", { class: "sdds-table__footer-btn-svg", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.783 27.727a1 1 0 0 1 0-1.415l9.888-9.888a.6.6 0 0 0 0-.848L9.783 5.688a1 1 0 0 1 1.414-1.415l9.889 9.889a2.6 2.6 0 0 1 0 3.676l-9.889 9.889a1 1 0 0 1-1.414 0Z" }))))))))));
157
- }
158
- get host() { return this; }
159
- static get style() { return tableFooterCss; }
160
- }, [1, "sdds-table-footer", {
161
- "enablePagination": [516, "enable-pagination"],
162
- "rowsPerPage": [514, "rows-per-page"],
163
- "enableClientPagination": [516, "enable-client-pagination"],
164
- "clientPaginationValue": [514, "client-pagination-value"],
165
- "clientMaxPages": [514, "client-max-pages"],
166
- "clientSetColumnsNumber": [2, "client-set-columns-number"],
167
- "disablePaginationFunction": [4, "disable-pagination-function"],
168
- "columnsNumber": [32],
169
- "numberOfPages": [32],
170
- "paginationValue": [32],
171
- "tempPaginationDisable": [32],
172
- "verticalDividers": [32],
173
- "compactDesign": [32],
174
- "noMinWidth": [32],
175
- "whiteBackground": [32],
176
- "tableId": [32]
177
- }, [[16, "internalSddsTablePropChange", "internalSddsPropChangeListener"], [16, "internalSddsPagination", "sddsPaginationListener"]]]);
178
- function defineCustomElement$1() {
179
- if (typeof customElements === "undefined") {
180
- return;
181
- }
182
- const components = ["sdds-table-footer"];
183
- components.forEach(tagName => { switch (tagName) {
184
- case "sdds-table-footer":
185
- if (!customElements.get(tagName)) {
186
- customElements.define(tagName, TableFooter);
187
- }
188
- break;
189
- } });
5
+ const relevantTableProps = [
6
+ 'compactDesign',
7
+ 'noMinWidth',
8
+ 'verticalDividers',
9
+ ];
10
+ function removeShakeAnimation(e) {
11
+ e.target.classList.remove('sdds-table__page-selector-input--shake');
12
+ }
13
+ const TableFooter = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
14
+ constructor() {
15
+ super();
16
+ this.__registerHost();
17
+ this.__attachShadow();
18
+ this.internalSddsEnablePagination = createEvent(this, "internalSddsEnablePagination", 7);
19
+ this.sddsPageChange = createEvent(this, "sddsPageChange", 7);
20
+ this.paginationPrev = (event) => {
21
+ event.preventDefault();
22
+ // Enable lowering until 1st page
23
+ if (this.paginationValue >= 2) {
24
+ this.paginationValue--;
25
+ this.runPagination();
26
+ }
27
+ };
28
+ this.paginationNext = (event) => {
29
+ event.preventDefault();
30
+ // Enable increasing until the max number of pages
31
+ if (this.paginationValue <= this.numberOfPages) {
32
+ this.paginationValue++;
33
+ this.runPagination();
34
+ }
35
+ };
36
+ this.runPagination = () => {
37
+ if (!this.disablePaginationFunction) {
38
+ // grab all rows in body
39
+ const dataRowsPagination = this.host.parentNode
40
+ .querySelector('sdds-table-body')
41
+ .querySelectorAll('.sdds-table__row');
42
+ dataRowsPagination.forEach((item, i) => {
43
+ // for making logic easier 1st result, 2nd result...
44
+ const index = i + 1;
45
+ if (this.tempPaginationDisable) {
46
+ this.paginationValue = 1;
47
+ }
48
+ else {
49
+ const lastResult = this.rowsPerPage * this.paginationValue;
50
+ const firstResult = lastResult - this.rowsPerPage;
51
+ if (index > firstResult && index <= lastResult) {
52
+ item.classList.remove('sdds-table__row--hidden');
53
+ }
54
+ else {
55
+ item.classList.add('sdds-table__row--hidden');
56
+ }
57
+ }
58
+ });
59
+ }
60
+ };
61
+ this.clientPaginationPrev = (event) => {
62
+ event.preventDefault();
63
+ // Enable lowering until 1st page
64
+ if (this.clientPaginationValue >= 2) {
65
+ this.clientPaginationValue--;
66
+ this.sendPaginationValue(this.clientPaginationValue);
67
+ }
68
+ };
69
+ this.clientPaginationNext = (event) => {
70
+ event.preventDefault();
71
+ // Enable increasing until the max number of pages
72
+ if (this.clientPaginationValue <= this.clientMaxPages) {
73
+ this.clientPaginationValue++;
74
+ this.sendPaginationValue(this.clientPaginationValue);
75
+ }
76
+ };
77
+ this.enablePagination = false;
78
+ this.rowsPerPage = 5;
79
+ this.enableClientPagination = false;
80
+ this.clientPaginationValue = 1;
81
+ this.clientMaxPages = 1;
82
+ this.clientSetColumnsNumber = null;
83
+ this.disablePaginationFunction = false;
84
+ this.columnsNumber = 0;
85
+ this.numberOfPages = 0;
86
+ this.paginationValue = 1;
87
+ this.tempPaginationDisable = false;
88
+ this.verticalDividers = false;
89
+ this.compactDesign = false;
90
+ this.noMinWidth = false;
91
+ this.whiteBackground = false;
92
+ this.tableId = '';
93
+ }
94
+ internalSddsPropChangeListener(event) {
95
+ if (this.tableId === event.detail.tableId) {
96
+ event.detail.changed
97
+ .filter((changedProp) => relevantTableProps.includes(changedProp))
98
+ .forEach((changedProp) => {
99
+ if (typeof this[changedProp] === 'undefined') {
100
+ throw new Error(`Table prop is not supported: ${changedProp}`);
101
+ }
102
+ this[changedProp] = event.detail[changedProp];
103
+ });
104
+ }
105
+ }
106
+ connectedCallback() {
107
+ this.tableEl = this.host.closest('sdds-table');
108
+ this.tableId = this.tableEl.tableId;
109
+ }
110
+ componentWillLoad() {
111
+ relevantTableProps.forEach((tablePropName) => {
112
+ this[tablePropName] = this.tableEl[tablePropName];
113
+ });
114
+ const numberOfRows = this.host.parentElement.querySelector('sdds-table-body').childElementCount;
115
+ const numberOfColumns = this.host.parentElement.querySelector('sdds-table-header').childElementCount;
116
+ this.numberOfPages = Math.ceil(numberOfRows / this.rowsPerPage);
117
+ if (this.clientSetColumnsNumber !== null) {
118
+ this.columnsNumber = this.clientSetColumnsNumber;
119
+ }
120
+ else {
121
+ this.columnsNumber = numberOfColumns;
122
+ }
123
+ this.internalSddsEnablePagination.emit(this.tableId);
124
+ }
125
+ paginationInputChange(event) {
126
+ const insertedValue = event.target.value;
127
+ if (insertedValue > this.numberOfPages || insertedValue < 1) {
128
+ event.target.classList.add('sdds-table__page-selector-input--shake');
129
+ this.paginationValue = event.target.max;
130
+ }
131
+ else {
132
+ this.paginationValue = event.target.value;
133
+ }
134
+ this.runPagination();
135
+ }
136
+ sddsPaginationListener(event) {
137
+ if (this.tableId === event.detail) {
138
+ this.runPagination();
139
+ }
140
+ }
141
+ sendPaginationValue(value) {
142
+ this.sddsPageChange.emit([this.tableId, value]);
143
+ }
144
+ clientPaginationInputChange(event) {
145
+ const insertedValue = event.target.value;
146
+ if (insertedValue > this.clientMaxPages || insertedValue < 1) {
147
+ event.target.classList.add('sdds-table__page-selector-input--shake');
148
+ this.clientPaginationValue = event.target.max;
149
+ }
150
+ else {
151
+ this.clientPaginationValue = event.target.value;
152
+ }
153
+ this.sendPaginationValue(this.clientPaginationValue);
154
+ }
155
+ render() {
156
+ return (h(Host, { class: this.compactDesign ? 'sdds-table--compact' : '' }, h("tr", { class: "sdds-table__footer-row" }, h("td", { class: "sdds-table__footer-cell", colSpan: this.columnsNumber }, this.enablePagination && !this.enableClientPagination && (h("div", { class: "sdds-table__pagination" }, h("div", { class: "sdds-table__row-selector" }), h("div", { class: "sdds-table__page-selector" }, h("input", { class: "sdds-table__page-selector-input", type: "number", min: "1", max: this.numberOfPages, value: this.paginationValue, pattern: "[0-9]+", dir: "rtl", onChange: (event) => this.paginationInputChange(event), onFocusout: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation, disabled: this.tempPaginationDisable }), h("p", { class: "sdds-table__footer-text" }, "of ", h("span", null, this.tempPaginationDisable ? 1 : this.numberOfPages), " pages"), h("button", { class: "sdds-table__footer-btn", disabled: this.paginationValue <= 1 || this.tempPaginationDisable, onClick: (event) => this.paginationPrev(event) }, h("svg", { class: "sdds-table__footer-btn-svg", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M22.217 4.273a1 1 0 0 1 0 1.415l-9.888 9.888a.6.6 0 0 0 0 .848l9.888 9.888a1 1 0 0 1-1.414 1.415l-9.889-9.889a2.6 2.6 0 0 1 0-3.677l9.889-9.888a1 1 0 0 1 1.414 0Z" }))), h("button", { class: "sdds-table__footer-btn", disabled: this.paginationValue >= this.numberOfPages || this.tempPaginationDisable, onClick: (event) => this.paginationNext(event) }, h("svg", { class: "sdds-table__footer-btn-svg", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.783 27.727a1 1 0 0 1 0-1.415l9.888-9.888a.6.6 0 0 0 0-.848L9.783 5.688a1 1 0 0 1 1.414-1.415l9.889 9.889a2.6 2.6 0 0 1 0 3.676l-9.889 9.889a1 1 0 0 1-1.414 0Z" })))))), this.enableClientPagination && !this.enablePagination && (h("div", { class: "sdds-table__pagination" }, h("div", { class: "sdds-table__row-selector" }), h("div", { class: "sdds-table__page-selector" }, h("input", { class: "sdds-table__page-selector-input", type: "number", min: "1", max: this.clientMaxPages, value: this.clientPaginationValue, pattern: "[0-9]+", dir: "rtl", onChange: (event) => this.clientPaginationInputChange(event), onFocusout: (event) => this.clientPaginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { class: "sdds-table__footer-text" }, "of ", h("span", null, this.clientMaxPages), " pages"), h("button", { class: "sdds-table__footer-btn", disabled: this.clientPaginationValue <= 1, onClick: (event) => this.clientPaginationPrev(event) }, h("svg", { class: "sdds-table__footer-btn-svg", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M22.217 4.273a1 1 0 0 1 0 1.415l-9.888 9.888a.6.6 0 0 0 0 .848l9.888 9.888a1 1 0 0 1-1.414 1.415l-9.889-9.889a2.6 2.6 0 0 1 0-3.677l9.889-9.888a1 1 0 0 1 1.414 0Z" }))), h("button", { class: "sdds-table__footer-btn", disabled: this.clientPaginationValue >= this.clientMaxPages, onClick: (event) => this.clientPaginationNext(event) }, h("svg", { class: "sdds-table__footer-btn-svg", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.783 27.727a1 1 0 0 1 0-1.415l9.888-9.888a.6.6 0 0 0 0-.848L9.783 5.688a1 1 0 0 1 1.414-1.415l9.889 9.889a2.6 2.6 0 0 1 0 3.676l-9.889 9.889a1 1 0 0 1-1.414 0Z" }))))))))));
157
+ }
158
+ get host() { return this; }
159
+ static get style() { return tableFooterCss; }
160
+ }, [1, "sdds-table-footer", {
161
+ "enablePagination": [516, "enable-pagination"],
162
+ "rowsPerPage": [514, "rows-per-page"],
163
+ "enableClientPagination": [516, "enable-client-pagination"],
164
+ "clientPaginationValue": [514, "client-pagination-value"],
165
+ "clientMaxPages": [514, "client-max-pages"],
166
+ "clientSetColumnsNumber": [2, "client-set-columns-number"],
167
+ "disablePaginationFunction": [4, "disable-pagination-function"],
168
+ "columnsNumber": [32],
169
+ "numberOfPages": [32],
170
+ "paginationValue": [32],
171
+ "tempPaginationDisable": [32],
172
+ "verticalDividers": [32],
173
+ "compactDesign": [32],
174
+ "noMinWidth": [32],
175
+ "whiteBackground": [32],
176
+ "tableId": [32]
177
+ }, [[16, "internalSddsTablePropChange", "internalSddsPropChangeListener"], [16, "internalSddsPagination", "sddsPaginationListener"]]]);
178
+ function defineCustomElement$1() {
179
+ if (typeof customElements === "undefined") {
180
+ return;
181
+ }
182
+ const components = ["sdds-table-footer"];
183
+ components.forEach(tagName => { switch (tagName) {
184
+ case "sdds-table-footer":
185
+ if (!customElements.get(tagName)) {
186
+ customElements.define(tagName, TableFooter);
187
+ }
188
+ break;
189
+ } });
190
190
  }
191
191
 
192
192
  const SddsTableFooter = TableFooter;