@limetech/lime-elements 35.0.0-next.9 → 35.0.1-next.2

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 (299) hide show
  1. package/dist/cjs/{_arrayIncludesWith-36a6fafb.js → _arrayIncludesWith-29083f83.js} +5 -4
  2. package/dist/cjs/{_assignValue-c9fc3712.js → _assignValue-7c18d8d6.js} +1 -1
  3. package/dist/cjs/_defineProperty-8f56146d.js +13 -0
  4. package/dist/cjs/{_defineProperty-8351e789.js → _getNative-60328036.js} +0 -9
  5. package/dist/cjs/checkbox.template-b6c6562c.js +43 -0
  6. package/dist/cjs/{component-f7ef9087.js → component-66df95e7.js} +190 -132
  7. package/dist/cjs/{component-f532119f.js → component-67144c1c.js} +47 -3
  8. package/dist/cjs/{component-ed21410d.js → component-ae3bfacf.js} +367 -235
  9. package/dist/cjs/{component-2faaa141.js → component-cf490570.js} +213 -143
  10. package/dist/cjs/{component-10dbdd60.js → component-dd795ff0.js} +7 -5
  11. package/dist/cjs/{dateFormatter-26eac73a.js → dateFormatter-05d80b12.js} +37 -31
  12. package/dist/cjs/identity-6dc34885.js +44 -0
  13. package/dist/cjs/{index-e63a89d7.js → index-2a28697b.js} +27 -1
  14. package/dist/cjs/{isEqual-e3b9c27c.js → isEqual-d2a13a24.js} +13 -55
  15. package/dist/cjs/lime-elements.cjs.js +3 -3
  16. package/dist/cjs/limel-badge.cjs.entry.js +4 -4
  17. package/dist/cjs/limel-banner.cjs.entry.js +2 -2
  18. package/dist/cjs/limel-button-group.cjs.entry.js +3 -3
  19. package/dist/cjs/limel-button.cjs.entry.js +3 -3
  20. package/dist/cjs/limel-checkbox.cjs.entry.js +136 -90
  21. package/dist/cjs/limel-chip-set.cjs.entry.js +235 -191
  22. package/dist/cjs/limel-circular-progress.cjs.entry.js +3 -3
  23. package/dist/cjs/limel-code-editor.cjs.entry.js +51 -24
  24. package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
  25. package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +7 -6
  26. package/dist/cjs/limel-color-picker.cjs.entry.js +2 -2
  27. package/dist/cjs/limel-config.cjs.entry.js +2 -2
  28. package/dist/cjs/limel-date-picker.cjs.entry.js +8 -8
  29. package/dist/cjs/limel-dialog.cjs.entry.js +35 -19
  30. package/dist/cjs/limel-file.cjs.entry.js +11 -9
  31. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +987 -669
  32. package/dist/cjs/limel-flex-container.cjs.entry.js +6 -2
  33. package/dist/cjs/limel-form.cjs.entry.js +19985 -20009
  34. package/dist/cjs/limel-grid.cjs.entry.js +2 -2
  35. package/dist/cjs/limel-header.cjs.entry.js +2 -2
  36. package/dist/cjs/limel-icon-button.cjs.entry.js +6 -6
  37. package/dist/cjs/limel-icon.cjs.entry.js +2 -2
  38. package/dist/cjs/limel-input-field.cjs.entry.js +12 -10
  39. package/dist/cjs/limel-linear-progress.cjs.entry.js +4 -4
  40. package/dist/cjs/limel-list_3.cjs.entry.js +154 -91
  41. package/dist/cjs/limel-menu-list.cjs.entry.js +87 -74
  42. package/dist/cjs/limel-menu.cjs.entry.js +6 -5
  43. package/dist/cjs/limel-picker.cjs.entry.js +6 -8
  44. package/dist/cjs/limel-popover-surface.cjs.entry.js +3 -3
  45. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +2 -2
  46. package/dist/cjs/limel-progress-flow.cjs.entry.js +2 -2
  47. package/dist/cjs/limel-select.cjs.entry.js +6 -6
  48. package/dist/cjs/limel-slider.cjs.entry.js +34 -7
  49. package/dist/cjs/limel-snackbar.cjs.entry.js +79 -73
  50. package/dist/cjs/limel-spinner.cjs.entry.js +2 -2
  51. package/dist/cjs/limel-switch.cjs.entry.js +498 -202
  52. package/dist/cjs/limel-tab-bar.cjs.entry.js +269 -190
  53. package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -2
  54. package/dist/cjs/limel-table.cjs.entry.js +79 -17
  55. package/dist/cjs/limel-tooltip_2.cjs.entry.js +3 -3
  56. package/dist/cjs/loader.cjs.js +3 -3
  57. package/dist/cjs/{moment-d287c0ed.js → moment-5cfac5cd.js} +94 -79
  58. package/dist/cjs/{pickBy-88b0430a.js → pickBy-3ef47bf2.js} +6 -5
  59. package/dist/cjs/{zipObject-4050a45f.js → zipObject-93a471fa.js} +1 -1
  60. package/dist/collection/collection-manifest.json +2 -2
  61. package/dist/collection/components/badge/badge.css +9 -15
  62. package/dist/collection/components/badge/badge.js +2 -2
  63. package/dist/collection/components/button/button.css +333 -145
  64. package/dist/collection/components/button-group/button-group.css +30 -5
  65. package/dist/collection/components/checkbox/checkbox.css +71 -20
  66. package/dist/collection/components/checkbox/checkbox.js +5 -4
  67. package/dist/collection/components/checkbox/checkbox.template.js +24 -20
  68. package/dist/collection/components/chip-set/chip-set.css +367 -34
  69. package/dist/collection/components/circular-progress/circular-progress.css +2 -2
  70. package/dist/collection/components/code-editor/code-editor.css +8 -13
  71. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +1 -1
  72. package/dist/collection/components/dialog/dialog.css +153 -109
  73. package/dist/collection/components/dialog/dialog.js +36 -11
  74. package/dist/collection/components/file/icon-background-colors.js +2 -1
  75. package/dist/collection/components/file/icon-fill-colors.js +2 -1
  76. package/dist/collection/components/file/icons.js +1 -1
  77. package/dist/collection/components/flex-container/flex-container.js +10 -0
  78. package/dist/collection/components/form/fields/schema-field.js +0 -1
  79. package/dist/collection/components/form/form.css +5 -1
  80. package/dist/collection/components/form/form.js +34 -0
  81. package/dist/collection/components/form/form.types.js +0 -1
  82. package/dist/collection/components/form/templates/common.js +4 -1
  83. package/dist/collection/components/icon-button/icon-button.css +116 -59
  84. package/dist/collection/components/icon-button/icon-button.js +1 -0
  85. package/dist/collection/components/input-field/input-field.css +344 -29
  86. package/dist/collection/components/input-field/input-field.js +5 -3
  87. package/dist/collection/components/linear-progress/linear-progress.css +14 -2
  88. package/dist/collection/components/list/list-renderer.js +1 -4
  89. package/dist/collection/components/list/list.css +938 -93
  90. package/dist/collection/components/list/list.js +13 -6
  91. package/dist/collection/components/menu-list/menu-list-renderer.js +1 -4
  92. package/dist/collection/components/menu-list/menu-list.css +938 -93
  93. package/dist/collection/components/menu-surface/menu-surface.css +31 -7
  94. package/dist/collection/components/picker/picker.js +6 -7
  95. package/dist/collection/components/popover-surface/popover-surface.css +1 -0
  96. package/dist/collection/components/select/select.css +424 -17
  97. package/dist/collection/components/select/select.template.js +1 -1
  98. package/dist/collection/components/slider/slider.css +49 -2
  99. package/dist/collection/components/snackbar/snackbar.css +588 -301
  100. package/dist/collection/components/switch/switch.css +592 -222
  101. package/dist/collection/components/switch/switch.js +18 -12
  102. package/dist/collection/components/tab-bar/tab-bar.css +77 -48
  103. package/dist/collection/components/table/table.css +219 -165
  104. package/dist/collection/components/table/table.js +99 -15
  105. package/dist/collection/components/table/table.types.js +0 -1
  106. package/dist/collection/style/functions.scss +3 -1
  107. package/dist/collection/style/internal/lime-theme.scss +30 -31
  108. package/dist/collection/style/internal/lime-typography.scss +55 -56
  109. package/dist/esm/{_arrayIncludesWith-b5d3fd9e.js → _arrayIncludesWith-969bccda.js} +4 -3
  110. package/dist/esm/{_assignValue-08fe10bc.js → _assignValue-fb2bf80a.js} +1 -1
  111. package/dist/esm/_defineProperty-2105cb48.js +11 -0
  112. package/dist/esm/{_defineProperty-8c869077.js → _getNative-93d6bfe9.js} +1 -9
  113. package/dist/esm/checkbox.template-2f1bbc98.js +41 -0
  114. package/dist/esm/{component-89e0ce26.js → component-19eb6e2b.js} +7 -5
  115. package/dist/esm/{component-2630c3d7.js → component-288691f3.js} +367 -235
  116. package/dist/esm/{component-d682c974.js → component-410aad5a.js} +44 -4
  117. package/dist/esm/{component-429e92ee.js → component-5b4ac85a.js} +213 -143
  118. package/dist/esm/{component-834d85a1.js → component-fffa3419.js} +190 -132
  119. package/dist/esm/{dateFormatter-c9b41548.js → dateFormatter-2cad0292.js} +37 -31
  120. package/dist/esm/identity-87aa3962.js +41 -0
  121. package/dist/esm/{index-2316f345.js → index-11cd0b60.js} +27 -1
  122. package/dist/esm/{isArrayLike-dd37ba9a.js → isArrayLike-385e0f31.js} +1 -1
  123. package/dist/esm/{isEqual-4f22635f.js → isEqual-c5a636a4.js} +3 -43
  124. package/dist/esm/lime-elements.js +3 -3
  125. package/dist/esm/limel-badge.entry.js +4 -4
  126. package/dist/esm/limel-banner.entry.js +2 -2
  127. package/dist/esm/limel-button-group.entry.js +3 -3
  128. package/dist/esm/limel-button.entry.js +3 -3
  129. package/dist/esm/limel-checkbox.entry.js +136 -90
  130. package/dist/esm/limel-chip-set.entry.js +235 -191
  131. package/dist/esm/limel-circular-progress.entry.js +3 -3
  132. package/dist/esm/limel-code-editor.entry.js +51 -24
  133. package/dist/esm/limel-collapsible-section.entry.js +2 -2
  134. package/dist/esm/limel-color-picker-palette_2.entry.js +7 -6
  135. package/dist/esm/limel-color-picker.entry.js +2 -2
  136. package/dist/esm/limel-config.entry.js +2 -2
  137. package/dist/esm/limel-date-picker.entry.js +8 -8
  138. package/dist/esm/limel-dialog.entry.js +35 -19
  139. package/dist/esm/limel-file.entry.js +11 -9
  140. package/dist/esm/limel-flatpickr-adapter.entry.js +988 -670
  141. package/dist/esm/limel-flex-container.entry.js +6 -2
  142. package/dist/esm/limel-form.entry.js +19966 -19990
  143. package/dist/esm/limel-grid.entry.js +2 -2
  144. package/dist/esm/limel-header.entry.js +2 -2
  145. package/dist/esm/limel-icon-button.entry.js +6 -6
  146. package/dist/esm/limel-icon.entry.js +2 -2
  147. package/dist/esm/limel-input-field.entry.js +12 -10
  148. package/dist/esm/limel-linear-progress.entry.js +4 -4
  149. package/dist/esm/limel-list_3.entry.js +154 -91
  150. package/dist/esm/limel-menu-list.entry.js +87 -74
  151. package/dist/esm/limel-menu.entry.js +6 -5
  152. package/dist/esm/limel-picker.entry.js +6 -8
  153. package/dist/esm/limel-popover-surface.entry.js +3 -3
  154. package/dist/esm/limel-progress-flow-item.entry.js +2 -2
  155. package/dist/esm/limel-progress-flow.entry.js +2 -2
  156. package/dist/esm/limel-select.entry.js +6 -6
  157. package/dist/esm/limel-slider.entry.js +34 -7
  158. package/dist/esm/limel-snackbar.entry.js +79 -73
  159. package/dist/esm/limel-spinner.entry.js +2 -2
  160. package/dist/esm/limel-switch.entry.js +498 -202
  161. package/dist/esm/limel-tab-bar.entry.js +269 -190
  162. package/dist/esm/limel-tab-panel.entry.js +2 -2
  163. package/dist/esm/limel-table.entry.js +80 -18
  164. package/dist/esm/limel-tooltip_2.entry.js +3 -3
  165. package/dist/esm/loader.js +3 -3
  166. package/dist/esm/{moment-8dadd938.js → moment-367e51c5.js} +94 -79
  167. package/dist/esm/{pickBy-8a849e46.js → pickBy-d359eb12.js} +4 -3
  168. package/dist/esm/polyfills/css-shim.js +1 -1
  169. package/dist/esm/{zipObject-22e88ce9.js → zipObject-2bb1968e.js} +1 -1
  170. package/dist/lime-elements/lime-elements.esm.js +1 -1
  171. package/dist/lime-elements/p-101af376.entry.js +1 -0
  172. package/dist/lime-elements/p-1a9a961a.entry.js +11 -0
  173. package/dist/lime-elements/p-1c284626.js +73 -0
  174. package/dist/lime-elements/p-1ede893b.js +1 -0
  175. package/dist/lime-elements/p-2639edf9.entry.js +73 -0
  176. package/dist/lime-elements/p-2754e134.entry.js +1 -0
  177. package/dist/lime-elements/p-2da6e2a3.entry.js +1 -0
  178. package/dist/lime-elements/p-36ecbd03.entry.js +1 -0
  179. package/dist/lime-elements/p-3af5f9ad.js +3 -0
  180. package/dist/lime-elements/p-404e1465.entry.js +1 -0
  181. package/dist/lime-elements/p-42b67933.entry.js +1 -0
  182. package/dist/lime-elements/p-440454ed.entry.js +1 -0
  183. package/dist/lime-elements/{p-076bd4dc.js → p-48d4ef20.js} +3 -3
  184. package/dist/lime-elements/p-4c3358cb.js +1 -0
  185. package/dist/lime-elements/p-4d5a874a.entry.js +1 -0
  186. package/dist/lime-elements/p-53e01330.entry.js +1 -0
  187. package/dist/lime-elements/p-5908c21d.entry.js +1 -0
  188. package/dist/lime-elements/p-5fdb83c9.js +1 -0
  189. package/dist/lime-elements/p-63e25a0a.entry.js +1 -0
  190. package/dist/lime-elements/p-669626e5.js +1 -0
  191. package/dist/lime-elements/p-6966b5df.entry.js +1 -0
  192. package/dist/lime-elements/p-6e7809a6.entry.js +1 -0
  193. package/dist/lime-elements/p-705334c1.entry.js +1 -0
  194. package/dist/lime-elements/p-71efe2ca.entry.js +37 -0
  195. package/dist/lime-elements/p-7cda574b.js +1 -0
  196. package/dist/lime-elements/p-83ea517b.entry.js +1 -0
  197. package/dist/lime-elements/p-84f933f7.entry.js +16 -0
  198. package/dist/lime-elements/p-8827628d.entry.js +131 -0
  199. package/dist/lime-elements/{p-8ad5e143.entry.js → p-94899019.entry.js} +1 -1
  200. package/dist/lime-elements/p-95f275ab.entry.js +1 -0
  201. package/dist/lime-elements/p-97d6c4a6.entry.js +1 -0
  202. package/dist/lime-elements/{p-7f43b0c4.js → p-9acf7b5d.js} +1 -1
  203. package/dist/lime-elements/p-a465084b.entry.js +82 -0
  204. package/dist/lime-elements/p-a5af84a7.entry.js +1 -0
  205. package/dist/lime-elements/p-ad8cb388.js +1 -0
  206. package/dist/lime-elements/p-ade76f1d.js +1 -0
  207. package/dist/lime-elements/p-af0ec482.entry.js +16 -0
  208. package/dist/lime-elements/{p-090bc949.js → p-b28128d2.js} +1 -1
  209. package/dist/lime-elements/p-b91dc1ef.entry.js +1 -0
  210. package/dist/lime-elements/p-b95e80c9.entry.js +1 -0
  211. package/dist/lime-elements/p-bd8c9384.entry.js +1 -0
  212. package/dist/lime-elements/p-c7953a05.entry.js +82 -0
  213. package/dist/lime-elements/p-c80acfb2.entry.js +59 -0
  214. package/dist/lime-elements/p-cbc43682.js +81 -0
  215. package/dist/lime-elements/{p-ace9affc.js → p-d0a7de87.js} +2 -2
  216. package/dist/lime-elements/p-d1ee4501.entry.js +37 -0
  217. package/dist/lime-elements/p-d74fa89e.entry.js +1 -0
  218. package/dist/lime-elements/{p-e1928c0e.js → p-d76f896d.js} +1 -1
  219. package/dist/lime-elements/p-dfba92de.js +126 -0
  220. package/dist/lime-elements/p-dfbe015e.entry.js +1 -0
  221. package/dist/lime-elements/p-e80dd2ff.entry.js +1 -0
  222. package/dist/lime-elements/p-e83dddcd.entry.js +126 -0
  223. package/dist/lime-elements/p-e98d76e8.entry.js +59 -0
  224. package/dist/lime-elements/{p-92146da6.js → p-e9a95b8f.js} +1 -1
  225. package/dist/lime-elements/p-ed65468d.entry.js +1 -0
  226. package/dist/lime-elements/p-f0c9dadd.entry.js +1 -0
  227. package/dist/lime-elements/p-f9bfbeb3.entry.js +82 -0
  228. package/dist/lime-elements/p-fa607ed3.js +1 -0
  229. package/dist/lime-elements/style/functions.scss +3 -1
  230. package/dist/lime-elements/style/internal/lime-theme.scss +30 -31
  231. package/dist/lime-elements/style/internal/lime-typography.scss +55 -56
  232. package/dist/types/components/badge/badge.d.ts +1 -1
  233. package/dist/types/components/checkbox/checkbox.d.ts +3 -2
  234. package/dist/types/components/checkbox/checkbox.template.d.ts +1 -0
  235. package/dist/types/components/dialog/dialog.d.ts +11 -5
  236. package/dist/types/components/dialog/dialog.types.d.ts +4 -0
  237. package/dist/types/components/flex-container/flex-container.d.ts +7 -0
  238. package/dist/types/components/form/fields/array-field.d.ts +0 -1
  239. package/dist/types/components/form/fields/object-field.d.ts +2 -2
  240. package/dist/types/components/form/form.d.ts +8 -1
  241. package/dist/types/components/form/form.types.d.ts +6 -0
  242. package/dist/types/components/picker/picker.d.ts +2 -1
  243. package/dist/types/components/switch/switch.d.ts +2 -2
  244. package/dist/types/components/table/table.d.ts +10 -1
  245. package/dist/types/components/table/table.types.d.ts +13 -0
  246. package/dist/types/components.d.ts +23 -7
  247. package/dist/types/stencil-public-runtime.d.ts +6 -4
  248. package/package.json +31 -44
  249. package/dist/cjs/checkbox.template-50eb8b76.js +0 -39
  250. package/dist/esm/checkbox.template-50f7c07b.js +0 -37
  251. package/dist/lime-elements/p-041ae00c.entry.js +0 -1
  252. package/dist/lime-elements/p-0ce9165f.entry.js +0 -1
  253. package/dist/lime-elements/p-0fd208f3.entry.js +0 -82
  254. package/dist/lime-elements/p-143705b1.entry.js +0 -1
  255. package/dist/lime-elements/p-1876a96a.entry.js +0 -1
  256. package/dist/lime-elements/p-1a64b531.js +0 -1
  257. package/dist/lime-elements/p-1fb5340d.entry.js +0 -1
  258. package/dist/lime-elements/p-250f55be.js +0 -1
  259. package/dist/lime-elements/p-29f054cc.entry.js +0 -37
  260. package/dist/lime-elements/p-31fecf5d.entry.js +0 -1
  261. package/dist/lime-elements/p-34c7872e.entry.js +0 -1
  262. package/dist/lime-elements/p-379955f4.js +0 -1
  263. package/dist/lime-elements/p-3ae6bb75.entry.js +0 -82
  264. package/dist/lime-elements/p-3ae6dfba.entry.js +0 -73
  265. package/dist/lime-elements/p-426d11b4.js +0 -1
  266. package/dist/lime-elements/p-440084ea.js +0 -1
  267. package/dist/lime-elements/p-468e940e.entry.js +0 -16
  268. package/dist/lime-elements/p-4932c029.entry.js +0 -1
  269. package/dist/lime-elements/p-4b5af81b.entry.js +0 -1
  270. package/dist/lime-elements/p-510bb5a4.entry.js +0 -1
  271. package/dist/lime-elements/p-58cbe99d.entry.js +0 -1
  272. package/dist/lime-elements/p-597cbe05.entry.js +0 -1
  273. package/dist/lime-elements/p-6003f817.entry.js +0 -1
  274. package/dist/lime-elements/p-668795a7.js +0 -73
  275. package/dist/lime-elements/p-714fde78.entry.js +0 -1
  276. package/dist/lime-elements/p-7476efe0.entry.js +0 -1
  277. package/dist/lime-elements/p-887d5bda.entry.js +0 -1
  278. package/dist/lime-elements/p-8a2c1038.entry.js +0 -16
  279. package/dist/lime-elements/p-902347b9.js +0 -81
  280. package/dist/lime-elements/p-90c6fa15.js +0 -126
  281. package/dist/lime-elements/p-90f3e17c.entry.js +0 -37
  282. package/dist/lime-elements/p-a2cf74c1.entry.js +0 -1
  283. package/dist/lime-elements/p-a397bab7.js +0 -3
  284. package/dist/lime-elements/p-a4c532a7.entry.js +0 -1
  285. package/dist/lime-elements/p-be56ffab.entry.js +0 -1
  286. package/dist/lime-elements/p-c306c953.entry.js +0 -1
  287. package/dist/lime-elements/p-c35874db.entry.js +0 -1
  288. package/dist/lime-elements/p-c8c8a946.entry.js +0 -59
  289. package/dist/lime-elements/p-ca664c9f.entry.js +0 -1
  290. package/dist/lime-elements/p-d2c74396.entry.js +0 -1
  291. package/dist/lime-elements/p-d48ad9f7.entry.js +0 -126
  292. package/dist/lime-elements/p-d93a3b07.entry.js +0 -16
  293. package/dist/lime-elements/p-df8faeb4.entry.js +0 -59
  294. package/dist/lime-elements/p-dfe0a58b.entry.js +0 -1
  295. package/dist/lime-elements/p-e275f502.entry.js +0 -37
  296. package/dist/lime-elements/p-e881e98d.entry.js +0 -1
  297. package/dist/lime-elements/p-f2c706b8.entry.js +0 -131
  298. package/dist/lime-elements/p-f83213b8.js +0 -1
  299. package/dist/lime-elements/p-fc30b8e3.entry.js +0 -1
@@ -96,15 +96,13 @@ export class Table {
96
96
  this.updateMaxPage = this.updateMaxPage.bind(this);
97
97
  this.initTabulatorComponent = this.initTabulatorComponent.bind(this);
98
98
  this.setSelection = this.setSelection.bind(this);
99
+ this.addColumnAggregator = this.addColumnAggregator.bind(this);
99
100
  this.pool = new ElementPool(document);
100
101
  this.columnFactory = new ColumnDefinitionFactory(this.pool);
101
102
  }
102
103
  componentWillLoad() {
103
104
  this.firstRequest = this.mode === 'remote';
104
- if (this.selectable) {
105
- this.tableSelection = new TableSelection(() => this.tabulator, this.pool, this.select);
106
- this.tableSelection.setSelection(this.selection);
107
- }
105
+ this.initTableSelection();
108
106
  }
109
107
  componentDidLoad() {
110
108
  this.init();
@@ -164,16 +162,42 @@ export class Table {
164
162
  // afterwards
165
163
  this.init();
166
164
  }
165
+ updateAggregates(newAggregates, oldAggregates) {
166
+ if (!this.tabulator) {
167
+ return;
168
+ }
169
+ if (isEqual(newAggregates, oldAggregates)) {
170
+ return;
171
+ }
172
+ if (!this.haveSameAggregateFields(newAggregates, oldAggregates)) {
173
+ this.init();
174
+ return;
175
+ }
176
+ this.tabulator.recalc();
177
+ this.tabulator.rowManager.redraw();
178
+ }
167
179
  updateSelection(newSelection) {
168
180
  if (!this.tableSelection) {
169
181
  return;
170
182
  }
171
183
  this.tableSelection.setSelection(newSelection);
172
184
  }
185
+ updateSelectable() {
186
+ if (this.tableSelection && !this.selectable) {
187
+ this.tableSelection = null;
188
+ }
189
+ this.initTableSelection();
190
+ this.init();
191
+ }
173
192
  areSameColumns(newColumns, oldColumns) {
174
193
  return (newColumns.length === oldColumns.length &&
175
194
  newColumns.every((column) => oldColumns.includes(column)));
176
195
  }
196
+ haveSameAggregateFields(newAggregates, oldAggregates) {
197
+ const oldAggregateFields = (oldAggregates === null || oldAggregates === void 0 ? void 0 : oldAggregates.map((a) => a.field)) || [];
198
+ return ((newAggregates === null || newAggregates === void 0 ? void 0 : newAggregates.length) === (oldAggregates === null || oldAggregates === void 0 ? void 0 : oldAggregates.length) &&
199
+ !!(newAggregates === null || newAggregates === void 0 ? void 0 : newAggregates.every((a) => oldAggregateFields.includes(a.field))));
200
+ }
177
201
  init() {
178
202
  if (this.tabulator) {
179
203
  this.pool.releaseAll();
@@ -210,6 +234,12 @@ export class Table {
210
234
  });
211
235
  observer.observe(table);
212
236
  }
237
+ initTableSelection() {
238
+ if (this.selectable) {
239
+ this.tableSelection = new TableSelection(() => this.tabulator, this.pool, this.select);
240
+ this.tableSelection.setSelection(this.selection);
241
+ }
242
+ }
213
243
  setSelection() {
214
244
  if (!(this.tabulator && this.tableSelection)) {
215
245
  return;
@@ -237,12 +267,39 @@ export class Table {
237
267
  });
238
268
  }
239
269
  getColumnDefinitions() {
240
- const columnDefinitions = this.columns.map(this.columnFactory.create);
270
+ const columnDefinitions = this.columns
271
+ .map(this.addColumnAggregator)
272
+ .map(this.columnFactory.create);
241
273
  if (this.tableSelection) {
242
274
  return this.tableSelection.getColumnDefinitions(columnDefinitions);
243
275
  }
244
276
  return columnDefinitions;
245
277
  }
278
+ addColumnAggregator(column) {
279
+ var _a;
280
+ if (!((_a = this.aggregates) === null || _a === void 0 ? void 0 : _a.length) || column.aggregator) {
281
+ return column;
282
+ }
283
+ const aggregate = this.aggregates.find((a) => a.field === column.field);
284
+ if (aggregate) {
285
+ column.aggregator = (col,
286
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
287
+ _values,
288
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
289
+ _data) => {
290
+ var _a;
291
+ if (!col) {
292
+ return undefined;
293
+ }
294
+ const value = (_a = this.aggregates.find((a) => a.field === col.field)) === null || _a === void 0 ? void 0 : _a.value;
295
+ if (col.formatter) {
296
+ return col.formatter(value);
297
+ }
298
+ return value;
299
+ };
300
+ }
301
+ return column;
302
+ }
246
303
  getAjaxOptions() {
247
304
  if (!this.isRemoteMode()) {
248
305
  return {};
@@ -376,27 +433,28 @@ export class Table {
376
433
  }
377
434
  render() {
378
435
  var _a;
379
- return (h("div", { id: "tabulator-container" },
436
+ return (h("div", { id: "tabulator-container", class: {
437
+ 'has-pagination': this.totalRows > this.pageSize,
438
+ 'has-aggregation': this.hasAggregation(this.columns),
439
+ 'has-movable-columns': this.movableColumns,
440
+ 'has-rowselector': this.selectable,
441
+ 'has-selection': (_a = this.tableSelection) === null || _a === void 0 ? void 0 : _a.hasSelection,
442
+ } },
380
443
  h("div", { id: "tabulator-loader", style: { display: this.loading ? 'flex' : 'none' } },
381
444
  h("limel-spinner", { size: "large" })),
382
445
  this.renderEmptyMessage(),
383
446
  this.renderSelectAll(),
384
- h("div", { id: "tabulator-table", class: {
385
- 'has-pagination': this.totalRows > this.pageSize,
386
- 'has-aggregation': this.hasAggregation(this.columns),
387
- 'has-movable-columns': this.movableColumns,
388
- 'has-rowselector': this.selectable,
389
- 'has-selection': (_a = this.tableSelection) === null || _a === void 0 ? void 0 : _a.hasSelection,
390
- } })));
447
+ h("div", { id: "tabulator-table" })));
391
448
  }
392
449
  renderSelectAll() {
450
+ var _a, _b, _c;
393
451
  if (!this.selectable) {
394
452
  return;
395
453
  }
396
454
  const showSelectAll = !this.loading && this.tableSelection;
397
455
  return (h("div", { class: "select-all", style: { display: showSelectAll ? 'inline-block' : 'none' } },
398
- h("limel-checkbox", { onChange: this.selectAllOnChange, checked: this.tableSelection.hasSelection, indeterminate: this.tableSelection.hasSelection &&
399
- this.selection.length < this.data.length })));
456
+ h("limel-checkbox", { onChange: this.selectAllOnChange, disabled: !this.totalRows, checked: (_a = this.tableSelection) === null || _a === void 0 ? void 0 : _a.hasSelection, indeterminate: ((_b = this.tableSelection) === null || _b === void 0 ? void 0 : _b.hasSelection) &&
457
+ ((_c = this.selection) === null || _c === void 0 ? void 0 : _c.length) < this.data.length })));
400
458
  }
401
459
  renderEmptyMessage() {
402
460
  const showEmptyMessage = !this.loading && !this.data.length && this.emptyMessage;
@@ -607,6 +665,26 @@ export class Table {
607
665
  "attribute": "empty-message",
608
666
  "reflect": false
609
667
  },
668
+ "aggregates": {
669
+ "type": "unknown",
670
+ "mutable": false,
671
+ "complexType": {
672
+ "original": "ColumnAggregate[]",
673
+ "resolved": "ColumnAggregate[]",
674
+ "references": {
675
+ "ColumnAggregate": {
676
+ "location": "import",
677
+ "path": "./table.types"
678
+ }
679
+ }
680
+ },
681
+ "required": false,
682
+ "optional": false,
683
+ "docs": {
684
+ "tags": [],
685
+ "text": "Column aggregates to be displayed in the table"
686
+ }
687
+ },
610
688
  "selectable": {
611
689
  "type": "boolean",
612
690
  "mutable": false,
@@ -780,8 +858,14 @@ export class Table {
780
858
  }, {
781
859
  "propName": "columns",
782
860
  "methodName": "updateColumns"
861
+ }, {
862
+ "propName": "aggregates",
863
+ "methodName": "updateAggregates"
783
864
  }, {
784
865
  "propName": "selection",
785
866
  "methodName": "updateSelection"
867
+ }, {
868
+ "propName": "selectable",
869
+ "methodName": "updateSelectable"
786
870
  }]; }
787
871
  }
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line no-shadow
2
1
  export var ColumnAggregatorType;
3
2
  (function (ColumnAggregatorType) {
4
3
  /**
@@ -5,6 +5,8 @@
5
5
  * without being explicitly called by outside code.
6
6
  */
7
7
 
8
+ @use 'sass:math';
9
+
8
10
  @function pxToRem($px) {
9
- @return #{$px/16}rem;
11
+ @return #{math.div($px, 16)}rem;
10
12
  }
@@ -10,37 +10,36 @@
10
10
  @use '../brand-colors';
11
11
  @use '../_theme-color-variables';
12
12
 
13
- @use '@material/theme' with
14
- (
15
- $primary: brand-colors.$lime-turquoise,
16
- $secondary: brand-colors.$lime-dark-grey,
17
- $background: #fff,
18
- $surface: #fff,
19
- $error: #b00020,
20
- $on-primary: #fff,
21
- $on-secondary: #fff,
22
- $on-surface: #000,
23
- $on-error: #fff,
24
- // $text-disabled-on-background: rgba(0, 0, 0, 0.38),
25
- // $text-hint-on-light: rgba(0, 0, 0, 0.38),
26
- // $text-primary-on-background: rgba(0, 0, 0, 0.87),
27
- // $text-secondary-on-background: rgba(0, 0, 0, 0.54),
28
- //
29
- // The following variables are also available to be set if needed
30
- // (note by Ads: they probably aren't available in MDC v11)
31
- //
32
- // $text-hint-on-background: rgba(0, 0, 0, 0.38),
33
- // $text-icon-on-background: rgba(0, 0, 0, 0.38),
34
- // $text-primary-on-light: rgba(0, 0, 0, 0.87),
35
- // $text-secondary-on-light: rgba(0, 0, 0, 0.54),
36
- // $text-disabled-on-light: rgba(0, 0, 0, 0.38),
37
- // $text-icon-on-light: rgba(0, 0, 0, 0.38),
38
- // $text-primary-on-dark: white,
39
- // $text-secondary-on-dark: rgba(255, 255, 255, 0.7),
40
- // $text-hint-on-dark: rgba(255, 255, 255, 0.5),
41
- // $text-disabled-on-dark: rgba(255, 255, 255, 0.5),
42
- // $text-icon-on-dark: rgba(255, 255, 255, 0.5),
43
- );
13
+ @use '@material/theme' with (
14
+ $primary: brand-colors.$lime-turquoise,
15
+ $secondary: brand-colors.$lime-dark-grey,
16
+ $background: #fff,
17
+ $surface: #fff,
18
+ $error: #b00020,
19
+ $on-primary: #fff,
20
+ $on-secondary: #fff,
21
+ $on-surface: #000,
22
+ $on-error: #fff,
23
+ // $text-disabled-on-background: rgba(0, 0, 0, 0.38),
24
+ // $text-hint-on-light: rgba(0, 0, 0, 0.38),
25
+ // $text-primary-on-background: rgba(0, 0, 0, 0.87),
26
+ // $text-secondary-on-background: rgba(0, 0, 0, 0.54),
27
+ //
28
+ // The following variables are also available to be set if needed
29
+ // (note by Ads: they probably aren't available in MDC v11)
30
+ //
31
+ // $text-hint-on-background: rgba(0, 0, 0, 0.38),
32
+ // $text-icon-on-background: rgba(0, 0, 0, 0.38),
33
+ // $text-primary-on-light: rgba(0, 0, 0, 0.87),
34
+ // $text-secondary-on-light: rgba(0, 0, 0, 0.54),
35
+ // $text-disabled-on-light: rgba(0, 0, 0, 0.38),
36
+ // $text-icon-on-light: rgba(0, 0, 0, 0.38),
37
+ // $text-primary-on-dark: white,
38
+ // $text-secondary-on-dark: rgba(255, 255, 255, 0.7),
39
+ // $text-hint-on-dark: rgba(255, 255, 255, 0.5),
40
+ // $text-disabled-on-dark: rgba(255, 255, 255, 0.5),
41
+ // $text-icon-on-dark: rgba(255, 255, 255, 0.5),
42
+ );
44
43
  @forward '@material/theme';
45
44
 
46
45
  @use './lime-typography';
@@ -9,60 +9,59 @@
9
9
 
10
10
  @use '../functions';
11
11
 
12
- @use '@material/typography' with
13
- (
14
- $styles-headline1: (
15
- font-size: functions.pxToRem(22),
16
- line-height: functions.pxToRem(22),
17
- ),
18
- $styles-headline2: (
19
- font-size: functions.pxToRem(16),
20
- line-height: functions.pxToRem(14),
21
- ),
22
- $styles-headline3: (
23
- font-size: functions.pxToRem(16),
24
- line-height: functions.pxToRem(14),
25
- ),
26
- $styles-headline4: (
27
- font-size: functions.pxToRem(16),
28
- line-height: functions.pxToRem(14),
29
- ),
30
- $styles-headline5: (
31
- font-size: functions.pxToRem(14),
32
- line-height: functions.pxToRem(14),
33
- ),
34
- $styles-headline6: (
35
- font-size: functions.pxToRem(14),
36
- line-height: functions.pxToRem(14),
37
- ),
38
- $styles-subtitle1: (
39
- font-size: functions.pxToRem(14),
40
- line-height: functions.pxToRem(18),
41
- ),
42
- $styles-subtitle2: (
43
- font-size: functions.pxToRem(13),
44
- line-height: functions.pxToRem(18),
45
- ),
46
- $styles-body1: (
47
- font-size: functions.pxToRem(13),
48
- line-height: functions.pxToRem(24),
49
- ),
50
- $styles-body2: (
51
- font-size: functions.pxToRem(13),
52
- line-height: functions.pxToRem(26),
53
- ),
54
- $styles-caption: (
55
- font-size: functions.pxToRem(11),
56
- line-height: functions.pxToRem(14),
57
- ),
58
- $styles-button: (
59
- font-size: functions.pxToRem(14),
60
- line-height: functions.pxToRem(36),
61
- text-transform: none,
62
- ),
63
- $styles-overline: (
64
- font-size: functions.pxToRem(11),
65
- line-height: functions.pxToRem(14),
66
- )
67
- );
12
+ @use '@material/typography' with (
13
+ $styles-headline1: (
14
+ font-size: functions.pxToRem(22),
15
+ line-height: functions.pxToRem(22),
16
+ ),
17
+ $styles-headline2: (
18
+ font-size: functions.pxToRem(16),
19
+ line-height: functions.pxToRem(14),
20
+ ),
21
+ $styles-headline3: (
22
+ font-size: functions.pxToRem(16),
23
+ line-height: functions.pxToRem(14),
24
+ ),
25
+ $styles-headline4: (
26
+ font-size: functions.pxToRem(16),
27
+ line-height: functions.pxToRem(14),
28
+ ),
29
+ $styles-headline5: (
30
+ font-size: functions.pxToRem(14),
31
+ line-height: functions.pxToRem(14),
32
+ ),
33
+ $styles-headline6: (
34
+ font-size: functions.pxToRem(14),
35
+ line-height: functions.pxToRem(14),
36
+ ),
37
+ $styles-subtitle1: (
38
+ font-size: functions.pxToRem(14),
39
+ line-height: functions.pxToRem(18),
40
+ ),
41
+ $styles-subtitle2: (
42
+ font-size: functions.pxToRem(13),
43
+ line-height: functions.pxToRem(18),
44
+ ),
45
+ $styles-body1: (
46
+ font-size: functions.pxToRem(13),
47
+ line-height: functions.pxToRem(24),
48
+ ),
49
+ $styles-body2: (
50
+ font-size: functions.pxToRem(13),
51
+ line-height: functions.pxToRem(26),
52
+ ),
53
+ $styles-caption: (
54
+ font-size: functions.pxToRem(11),
55
+ line-height: functions.pxToRem(14),
56
+ ),
57
+ $styles-button: (
58
+ font-size: functions.pxToRem(14),
59
+ line-height: functions.pxToRem(36),
60
+ text-transform: none,
61
+ ),
62
+ $styles-overline: (
63
+ font-size: functions.pxToRem(11),
64
+ line-height: functions.pxToRem(14),
65
+ )
66
+ );
68
67
  @forward '@material/typography';
@@ -1,8 +1,9 @@
1
- import { v as identity, c as isArguments, p as arrayPush } from './isEqual-4f22635f.js';
2
- import { d as defineProperty } from './_defineProperty-8c869077.js';
1
+ import { i as identity } from './identity-87aa3962.js';
2
+ import { d as defineProperty } from './_defineProperty-2105cb48.js';
3
+ import { c as isArguments, n as arrayPush } from './isEqual-c5a636a4.js';
3
4
  import { S as Symbol } from './isObject-c74e273c.js';
4
5
  import { i as isArray } from './isArray-80298bc7.js';
5
- import { i as isArrayLike } from './isArrayLike-dd37ba9a.js';
6
+ import { b as isArrayLike } from './isArrayLike-385e0f31.js';
6
7
  import { i as isObjectLike } from './isObjectLike-38996507.js';
7
8
 
8
9
  /**
@@ -1,4 +1,4 @@
1
- import { d as defineProperty } from './_defineProperty-8c869077.js';
1
+ import { d as defineProperty } from './_defineProperty-2105cb48.js';
2
2
  import { e as eq } from './eq-c1c7f528.js';
3
3
 
4
4
  /**
@@ -0,0 +1,11 @@
1
+ import { g as getNative } from './_getNative-93d6bfe9.js';
2
+
3
+ var defineProperty = (function() {
4
+ try {
5
+ var func = getNative(Object, 'defineProperty');
6
+ func({}, '', {});
7
+ return func;
8
+ } catch (e) {}
9
+ }());
10
+
11
+ export { defineProperty as d };
@@ -112,12 +112,4 @@ function getNative(object, key) {
112
112
  return baseIsNative(value) ? value : undefined;
113
113
  }
114
114
 
115
- var defineProperty = (function() {
116
- try {
117
- var func = getNative(Object, 'defineProperty');
118
- func({}, '', {});
119
- return func;
120
- } catch (e) {}
121
- }());
122
-
123
- export { defineProperty as d, getNative as g, toSource as t };
115
+ export { getNative as g, toSource as t };
@@ -0,0 +1,41 @@
1
+ import { h } from './index-11cd0b60.js';
2
+
3
+ const CheckboxTemplate = (props) => {
4
+ const inputProps = {};
5
+ if (props.indeterminate) {
6
+ inputProps['data-indeterminate'] = 'true';
7
+ }
8
+ return [
9
+ h("div", { class: "mdc-form-field " },
10
+ h("div", { class: {
11
+ 'mdc-checkbox': true,
12
+ 'mdc-checkbox--invalid': props.invalid,
13
+ 'mdc-checkbox--disabled': props.disabled,
14
+ 'mdc-checkbox--required': props.required,
15
+ 'mdc-checkbox--indeterminate': props.indeterminate,
16
+ 'lime-checkbox--readonly': props.readonly,
17
+ } },
18
+ h("input", Object.assign({ type: "checkbox", class: "mdc-checkbox__native-control", id: props.id, checked: props.checked, disabled: props.disabled || props.readonly, required: props.required, onChange: props.onChange }, inputProps)),
19
+ h("div", { class: "mdc-checkbox__background" },
20
+ h("svg", { class: "mdc-checkbox__checkmark", viewBox: "0 0 24 24" },
21
+ h("path", { class: "mdc-checkbox__checkmark-path", fill: "none", d: "M1.73,12.91 8.1,19.28 22.79,4.59" })),
22
+ h("div", { class: "mdc-checkbox__mixedmark" }))),
23
+ h("label", { class: {
24
+ 'mdc-checkbox--invalid': props.invalid,
25
+ 'mdc-checkbox--disabled': props.disabled,
26
+ 'mdc-checkbox--required': props.required,
27
+ 'mdc-checkbox--indeterminate': props.indeterminate,
28
+ 'lime-checkbox--readonly': props.readonly,
29
+ }, htmlFor: props.id }, props.label)),
30
+ h(HelperText, { text: props.helperText }),
31
+ ];
32
+ };
33
+ const HelperText = (props) => {
34
+ if (typeof props.text !== 'string') {
35
+ return;
36
+ }
37
+ return (h("div", { class: "limel-checkbox-helper-line" },
38
+ h("p", { class: "limel-checkbox-helper-text", "aria-hidden": "true" }, props.text.trim())));
39
+ };
40
+
41
+ export { CheckboxTemplate as C };
@@ -1,4 +1,4 @@
1
- import { M as MDCFoundation, a as MDCComponent } from './component-d682c974.js';
1
+ import { M as MDCFoundation, a as MDCComponent } from './component-410aad5a.js';
2
2
  import { e as estimateScrollWidth } from './ponyfill-30263d5e.js';
3
3
 
4
4
  /*! *****************************************************************************
@@ -98,7 +98,9 @@ var MDCFloatingLabelFoundation = /** @class */ (function (_super) {
98
98
  __extends(MDCFloatingLabelFoundation, _super);
99
99
  function MDCFloatingLabelFoundation(adapter) {
100
100
  var _this = _super.call(this, __assign(__assign({}, MDCFloatingLabelFoundation.defaultAdapter), adapter)) || this;
101
- _this.shakeAnimationEndHandler_ = function () { return _this.handleShakeAnimationEnd_(); };
101
+ _this.shakeAnimationEndHandler = function () {
102
+ _this.handleShakeAnimationEnd();
103
+ };
102
104
  return _this;
103
105
  }
104
106
  Object.defineProperty(MDCFloatingLabelFoundation, "cssClasses", {
@@ -127,10 +129,10 @@ var MDCFloatingLabelFoundation = /** @class */ (function (_super) {
127
129
  configurable: true
128
130
  });
129
131
  MDCFloatingLabelFoundation.prototype.init = function () {
130
- this.adapter.registerInteractionHandler('animationend', this.shakeAnimationEndHandler_);
132
+ this.adapter.registerInteractionHandler('animationend', this.shakeAnimationEndHandler);
131
133
  };
132
134
  MDCFloatingLabelFoundation.prototype.destroy = function () {
133
- this.adapter.deregisterInteractionHandler('animationend', this.shakeAnimationEndHandler_);
135
+ this.adapter.deregisterInteractionHandler('animationend', this.shakeAnimationEndHandler);
134
136
  };
135
137
  /**
136
138
  * Returns the width of the label element.
@@ -178,7 +180,7 @@ var MDCFloatingLabelFoundation = /** @class */ (function (_super) {
178
180
  this.adapter.removeClass(LABEL_REQUIRED);
179
181
  }
180
182
  };
181
- MDCFloatingLabelFoundation.prototype.handleShakeAnimationEnd_ = function () {
183
+ MDCFloatingLabelFoundation.prototype.handleShakeAnimationEnd = function () {
182
184
  var LABEL_SHAKE = MDCFloatingLabelFoundation.cssClasses.LABEL_SHAKE;
183
185
  this.adapter.removeClass(LABEL_SHAKE);
184
186
  };