@sme.up/ketchup 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/cell-utils-dc0884a3.js +168 -0
  3. package/dist/cjs/f-button-2ba74fb5.js +105 -0
  4. package/dist/cjs/f-cell-fe60a08d.js +731 -0
  5. package/dist/cjs/f-chip-90d95d22.js +141 -0
  6. package/dist/cjs/{f-image-5f4f29ca.js → f-image-d3bd4e08.js} +4 -5
  7. package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
  8. package/dist/cjs/ketchup.cjs.js +3 -3
  9. package/dist/cjs/kup-accordion.cjs.entry.js +6 -8
  10. package/dist/cjs/{kup-autocomplete_29.cjs.entry.js → kup-autocomplete_28.cjs.entry.js} +2580 -3060
  11. package/dist/cjs/kup-calendar.cjs.entry.js +30 -30
  12. package/dist/cjs/kup-cell.cjs.entry.js +201 -0
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +15 -7
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +104 -62
  15. package/dist/cjs/kup-drawer.cjs.entry.js +4 -6
  16. package/dist/cjs/kup-field.cjs.entry.js +3 -5
  17. package/dist/cjs/kup-iframe.cjs.entry.js +3 -4
  18. package/dist/cjs/kup-lazy.cjs.entry.js +4 -6
  19. package/dist/cjs/kup-magic-box.cjs.entry.js +21 -31
  20. package/dist/cjs/kup-manager-1a2688ca.js +5813 -0
  21. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -6
  22. package/dist/cjs/kup-probe.cjs.entry.js +3 -4
  23. package/dist/cjs/kup-qlik.cjs.entry.js +2 -3
  24. package/dist/cjs/kup-snackbar.cjs.entry.js +152 -0
  25. package/dist/cjs/loader.cjs.js +3 -3
  26. package/dist/cjs/{utils-2af73538.js → utils-0cc466b9.js} +17 -83
  27. package/dist/collection/assets/cell.js +51 -0
  28. package/dist/collection/assets/data-table.js +518 -1
  29. package/dist/collection/assets/index.js +8 -0
  30. package/dist/collection/assets/snackbar.js +32 -0
  31. package/dist/collection/collection-manifest.json +6 -6
  32. package/dist/collection/components/kup-accordion/kup-accordion.css +0 -213
  33. package/dist/collection/components/kup-accordion/kup-accordion.js +15 -16
  34. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -2
  35. package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +5 -2381
  36. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +83 -111
  37. package/dist/collection/components/kup-badge/kup-badge.css +1 -35
  38. package/dist/collection/components/kup-badge/kup-badge.js +13 -14
  39. package/dist/collection/components/kup-box/kup-box.css +47 -780
  40. package/dist/collection/components/kup-box/kup-box.js +240 -366
  41. package/dist/collection/components/kup-button/kup-button.css +0 -333
  42. package/dist/collection/components/kup-button/kup-button.js +27 -28
  43. package/dist/collection/components/kup-button-list/kup-button-list.css +0 -332
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +19 -20
  45. package/dist/collection/components/kup-calendar/kup-calendar.css +0 -517
  46. package/dist/collection/components/kup-calendar/kup-calendar.js +47 -45
  47. package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +20 -0
  48. package/dist/collection/components/kup-card/builtin/kup-card-calendar.js +458 -0
  49. package/dist/collection/components/kup-card/builtin/kup-card-clock.js +321 -0
  50. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +18 -0
  51. package/dist/collection/components/kup-card/free/kup-card-free.js +13 -0
  52. package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
  53. package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
  54. package/dist/collection/components/kup-card/kup-card.css +615 -185
  55. package/dist/collection/components/kup-card/kup-card.js +94 -34
  56. package/dist/collection/components/kup-card/standard/kup-card-standard.js +75 -0
  57. package/dist/collection/components/kup-cell/kup-cell-declarations.js +11 -0
  58. package/dist/collection/components/kup-cell/kup-cell.css +20 -0
  59. package/dist/collection/components/kup-cell/kup-cell.js +413 -0
  60. package/dist/collection/components/kup-chart/kup-chart.js +41 -42
  61. package/dist/collection/components/kup-checkbox/kup-checkbox.css +0 -214
  62. package/dist/collection/components/kup-checkbox/kup-checkbox.js +19 -20
  63. package/dist/collection/components/kup-chip/kup-chip.css +0 -217
  64. package/dist/collection/components/kup-chip/kup-chip.js +15 -16
  65. package/dist/collection/components/kup-color-picker/kup-color-picker.css +7 -2380
  66. package/dist/collection/components/kup-color-picker/kup-color-picker.js +41 -41
  67. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
  68. package/dist/collection/components/kup-combobox/kup-combobox.css +5 -2381
  69. package/dist/collection/components/kup-combobox/kup-combobox.js +68 -28
  70. package/dist/collection/components/kup-dash-list/kup-dash-list.js +13 -4
  71. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
  72. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
  73. package/dist/collection/components/kup-data-table/kup-data-table.css +118 -3232
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +589 -1089
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.css +1 -85
  76. package/dist/collection/components/kup-date-picker/kup-date-picker.js +92 -395
  77. package/dist/collection/components/kup-drawer/kup-drawer.js +9 -10
  78. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +12 -340
  79. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +56 -45
  80. package/dist/collection/components/kup-field/kup-field.js +21 -22
  81. package/dist/collection/components/kup-gauge/kup-gauge.js +17 -18
  82. package/dist/collection/components/kup-grid/kup-grid.css +2 -1
  83. package/dist/collection/components/kup-grid/kup-grid.js +13 -14
  84. package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
  85. package/dist/collection/components/kup-image/assets/svg/ketchup.svg +74 -0
  86. package/dist/collection/components/kup-image/assets/svg/smeup.svg +59 -0
  87. package/dist/collection/components/kup-image/kup-image.css +0 -32
  88. package/dist/collection/components/kup-image/kup-image.js +25 -26
  89. package/dist/collection/components/kup-lazy/kup-lazy.js +17 -18
  90. package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
  91. package/dist/collection/components/kup-list/kup-list.css +4 -260
  92. package/dist/collection/components/kup-list/kup-list.js +39 -49
  93. package/dist/collection/components/kup-magic-box/kup-magic-box.css +13 -39
  94. package/dist/collection/components/kup-magic-box/kup-magic-box.js +29 -38
  95. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +11 -12
  96. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -332
  97. package/dist/collection/components/kup-paginator/kup-paginator.js +44 -12
  98. package/dist/collection/components/kup-probe/kup-probe.js +9 -9
  99. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +21 -22
  100. package/dist/collection/components/kup-radio/kup-radio.js +17 -18
  101. package/dist/collection/components/kup-rating/kup-rating.js +15 -16
  102. package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +13 -0
  103. package/dist/collection/components/kup-snackbar/kup-snackbar.css +75 -0
  104. package/dist/collection/components/kup-snackbar/kup-snackbar.js +390 -0
  105. package/dist/collection/components/kup-spinner/kup-spinner.js +23 -24
  106. package/dist/collection/components/kup-switch/kup-switch.css +0 -156
  107. package/dist/collection/components/kup-switch/kup-switch.js +17 -18
  108. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +0 -199
  109. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +13 -14
  110. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
  111. package/dist/collection/components/kup-text-field/kup-text-field.css +4 -2371
  112. package/dist/collection/components/kup-text-field/kup-text-field.js +77 -51
  113. package/dist/collection/components/kup-time-picker/kup-time-picker.css +7 -0
  114. package/dist/collection/components/kup-time-picker/kup-time-picker.js +97 -317
  115. package/dist/collection/components/kup-tooltip/kup-tooltip.js +24 -14
  116. package/dist/collection/components/kup-tree/kup-tree.css +27 -371
  117. package/dist/collection/components/kup-tree/kup-tree.js +163 -383
  118. package/dist/collection/f-components/f-button/f-button.js +4 -2
  119. package/dist/collection/f-components/f-cell/f-cell-declarations.js +143 -0
  120. package/dist/collection/f-components/f-cell/f-cell.js +471 -0
  121. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
  122. package/dist/collection/f-components/f-chip/f-chip.js +2 -2
  123. package/dist/collection/f-components/f-image/f-image.js +2 -3
  124. package/dist/collection/f-components/f-switch/f-switch.js +1 -1
  125. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +1 -1
  126. package/dist/collection/f-components/f-text-field/f-text-field.js +25 -21
  127. package/dist/collection/utils/cell-utils.js +18 -222
  128. package/dist/collection/utils/filters/filters.js +31 -37
  129. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +15 -3
  130. package/dist/collection/utils/kup-dates/kup-dates.js +14 -2
  131. package/dist/collection/utils/kup-debug/kup-debug-browser-utils.js +3 -3
  132. package/dist/collection/utils/kup-debug/kup-debug.js +57 -29
  133. package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +5 -7
  134. package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
  135. package/dist/collection/utils/kup-interact/kup-interact.js +379 -0
  136. package/dist/collection/utils/kup-language/kup-language-declarations.js +2 -0
  137. package/dist/collection/utils/kup-language/kup-language.js +1 -1
  138. package/dist/collection/utils/kup-manager/kup-manager.js +47 -10
  139. package/dist/collection/utils/kup-objects/kup-objects.js +9 -33
  140. package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
  141. package/dist/collection/utils/kup-search/kup-search-declarations.js +1 -0
  142. package/dist/collection/utils/kup-search/kup-search.js +75 -0
  143. package/dist/collection/utils/kup-theme/kup-theme-declarations.js +1 -0
  144. package/dist/collection/utils/kup-theme/kup-theme.js +4 -3
  145. package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
  146. package/dist/collection/utils/utils.js +15 -23
  147. package/dist/esm/cell-utils-8f512ea9.js +160 -0
  148. package/dist/esm/f-button-30dbcaa9.js +103 -0
  149. package/dist/esm/f-cell-95c186c6.js +727 -0
  150. package/dist/esm/f-chip-c0e9c0ff.js +139 -0
  151. package/dist/esm/{f-image-68b34fab.js → f-image-3bc8b24f.js} +4 -5
  152. package/dist/esm/{index-bf2824a6.js → index-e0e67c23.js} +74 -65
  153. package/dist/esm/ketchup.js +3 -3
  154. package/dist/esm/kup-accordion.entry.js +6 -8
  155. package/dist/esm/{kup-autocomplete_29.entry.js → kup-autocomplete_28.entry.js} +2379 -2858
  156. package/dist/esm/kup-calendar.entry.js +10 -10
  157. package/dist/esm/kup-cell.entry.js +197 -0
  158. package/dist/esm/kup-dash-list.entry.js +15 -7
  159. package/dist/esm/kup-dash_2.entry.js +104 -62
  160. package/dist/esm/kup-drawer.entry.js +4 -6
  161. package/dist/esm/kup-field.entry.js +3 -5
  162. package/dist/esm/kup-iframe.entry.js +3 -4
  163. package/dist/esm/kup-lazy.entry.js +4 -6
  164. package/dist/esm/kup-magic-box.entry.js +21 -31
  165. package/dist/esm/kup-manager-7fc234da.js +5800 -0
  166. package/dist/esm/kup-nav-bar.entry.js +4 -6
  167. package/dist/esm/kup-probe.entry.js +3 -4
  168. package/dist/esm/kup-qlik.entry.js +2 -3
  169. package/dist/esm/kup-snackbar.entry.js +148 -0
  170. package/dist/esm/loader.js +3 -3
  171. package/dist/esm/{utils-13dd007a.js → utils-6c73709d.js} +15 -78
  172. package/dist/ketchup/assets/svg/ketchup.svg +74 -0
  173. package/dist/ketchup/assets/svg/smeup.svg +59 -0
  174. package/dist/ketchup/ketchup.esm.js +1 -1
  175. package/dist/ketchup/p-15321eae.js +1 -0
  176. package/dist/ketchup/p-1baf1205.entry.js +1 -0
  177. package/dist/ketchup/p-1c6178e4.entry.js +1 -0
  178. package/dist/ketchup/p-44375e49.js +1 -0
  179. package/dist/ketchup/p-4dcdbd31.entry.js +45 -0
  180. package/dist/ketchup/p-5a5f2a53.js +1 -0
  181. package/dist/ketchup/{p-c7ee1fbc.js → p-61faaa38.js} +2 -2
  182. package/dist/ketchup/p-62816d0b.entry.js +1 -0
  183. package/dist/ketchup/p-65adc15b.entry.js +1 -0
  184. package/dist/ketchup/p-7e23ea7c.entry.js +1 -0
  185. package/dist/ketchup/p-a378ba56.entry.js +1 -0
  186. package/dist/ketchup/p-a878016f.entry.js +1 -0
  187. package/dist/ketchup/p-a96e6e32.entry.js +1 -0
  188. package/dist/ketchup/p-ad32821e.entry.js +1 -0
  189. package/dist/ketchup/p-af4a6191.entry.js +1 -0
  190. package/dist/ketchup/p-c18c7bb0.entry.js +27 -0
  191. package/dist/ketchup/p-ca0ca27f.entry.js +1 -0
  192. package/dist/ketchup/p-cb5f4994.js +1 -0
  193. package/dist/ketchup/p-ccda584a.entry.js +1 -0
  194. package/dist/ketchup/p-d4aa4922.js +1 -0
  195. package/dist/ketchup/p-dbb6998b.entry.js +1 -0
  196. package/dist/ketchup/p-de83f2f6.js +1 -0
  197. package/dist/ketchup/p-ec3a3db9.js +1 -0
  198. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -6
  199. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -13
  200. package/dist/types/components/kup-box/kup-box-declarations.d.ts +13 -4
  201. package/dist/types/components/kup-box/kup-box.d.ts +13 -6
  202. package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +14 -0
  203. package/dist/types/components/kup-card/builtin/kup-card-calendar.d.ts +2 -0
  204. package/dist/types/components/kup-card/builtin/kup-card-clock.d.ts +2 -0
  205. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  206. package/dist/types/components/kup-card/free/kup-card-free.d.ts +8 -0
  207. package/dist/types/components/kup-card/kup-card-declarations.d.ts +74 -0
  208. package/dist/types/components/kup-card/kup-card.d.ts +12 -3
  209. package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +6 -0
  210. package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +10 -0
  211. package/dist/types/components/kup-cell/kup-cell.d.ts +67 -0
  212. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +1 -1
  213. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -2
  214. package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
  215. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +4 -0
  216. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +20 -36
  217. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -15
  218. package/dist/types/components/kup-data-table/kup-data-table.d.ts +33 -83
  219. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -23
  220. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -4
  221. package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
  222. package/dist/types/components/kup-list/kup-list.d.ts +2 -3
  223. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
  224. package/dist/types/components/kup-paginator/kup-paginator.d.ts +6 -0
  225. package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +12 -0
  226. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +79 -0
  227. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +2 -1
  228. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  229. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +10 -20
  230. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +1 -0
  231. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
  232. package/dist/types/components/kup-tree/kup-tree.d.ts +12 -23
  233. package/dist/types/components.d.ts +348 -176
  234. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +153 -0
  235. package/dist/types/f-components/f-cell/f-cell.d.ts +3 -0
  236. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  237. package/dist/types/f-components/f-text-field/f-text-field-mdc.d.ts +1 -1
  238. package/dist/types/utils/cell-utils.d.ts +0 -19
  239. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -0
  240. package/dist/types/utils/kup-dates/kup-dates.d.ts +9 -4
  241. package/dist/types/utils/kup-debug/kup-debug.d.ts +1 -1
  242. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
  243. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
  244. package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
  245. package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
  246. package/dist/types/utils/kup-language/kup-language-declarations.d.ts +2 -0
  247. package/dist/types/utils/kup-language/kup-language.d.ts +1 -1
  248. package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +28 -8
  249. package/dist/types/utils/kup-manager/kup-manager.d.ts +18 -5
  250. package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
  251. package/dist/types/utils/kup-search/kup-search-declarations.d.ts +7 -0
  252. package/dist/types/utils/kup-search/kup-search.d.ts +20 -0
  253. package/dist/types/utils/kup-theme/kup-theme-declarations.d.ts +2 -0
  254. package/dist/types/utils/kup-theme/kup-theme.d.ts +2 -2
  255. package/dist/types/utils/utils.d.ts +0 -1
  256. package/package.json +4 -6
  257. package/dist/cjs/cell-utils-1f89a299.js +0 -1527
  258. package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
  259. package/dist/cjs/f-chip-2d58c8f7.js +0 -239
  260. package/dist/cjs/kup-grid.cjs.entry.js +0 -130
  261. package/dist/cjs/kup-manager-59ad8bdc.js +0 -4845
  262. package/dist/cjs/kup-objects-59ea949c.js +0 -717
  263. package/dist/collection/assets/images/drag-multiple.js +0 -1
  264. package/dist/collection/components/kup-editor/kup-editor.css +0 -5
  265. package/dist/collection/components/kup-editor/kup-editor.js +0 -59
  266. package/dist/collection/components/kup-layout/kup-layout.css +0 -53
  267. package/dist/collection/components/kup-layout/kup-layout.js +0 -156
  268. package/dist/collection/utils/drag-and-drop.js +0 -109
  269. package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
  270. package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
  271. package/dist/esm/cell-utils-cb612463.js +0 -1510
  272. package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
  273. package/dist/esm/f-chip-125d5dd6.js +0 -236
  274. package/dist/esm/kup-grid.entry.js +0 -126
  275. package/dist/esm/kup-manager-e7d7b353.js +0 -4842
  276. package/dist/esm/kup-objects-d38d2fa2.js +0 -711
  277. package/dist/ketchup/p-00fe1e3e.js +0 -1
  278. package/dist/ketchup/p-0320e24e.entry.js +0 -1
  279. package/dist/ketchup/p-08c7a092.js +0 -1
  280. package/dist/ketchup/p-1165f4ea.entry.js +0 -1
  281. package/dist/ketchup/p-170d3cba.js +0 -1
  282. package/dist/ketchup/p-18cb3ba3.js +0 -1
  283. package/dist/ketchup/p-23541a97.entry.js +0 -45
  284. package/dist/ketchup/p-64ea7e37.entry.js +0 -1
  285. package/dist/ketchup/p-7896031c.entry.js +0 -1
  286. package/dist/ketchup/p-876da4c2.entry.js +0 -1
  287. package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
  288. package/dist/ketchup/p-940ab57a.entry.js +0 -1
  289. package/dist/ketchup/p-9c858a38.entry.js +0 -1
  290. package/dist/ketchup/p-a12a5690.entry.js +0 -1
  291. package/dist/ketchup/p-a5424073.js +0 -1
  292. package/dist/ketchup/p-b0724035.entry.js +0 -1
  293. package/dist/ketchup/p-b14e77f0.js +0 -1
  294. package/dist/ketchup/p-d24cfdea.entry.js +0 -1
  295. package/dist/ketchup/p-ee89966f.entry.js +0 -27
  296. package/dist/ketchup/p-fcd2fd8f.js +0 -1
  297. package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
  298. package/dist/types/assets/images/drag-multiple.d.ts +0 -1
  299. package/dist/types/components/kup-editor/kup-editor.d.ts +0 -16
  300. package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
  301. package/dist/types/utils/drag-and-drop.d.ts +0 -53
  302. package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
  303. package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
@@ -1,5 +1,5 @@
1
1
  document.addEventListener('kup-card-event', (e) => console.log(e));
2
- document.addEventListener('kup-datatable-cellupdate', (e) => {
2
+ document.addEventListener('kup-cell-update', (e) => {
3
3
  console.log(e);
4
4
  e.detail.cell['info'] = {
5
5
  color: 'var(--kup-success-color)',
@@ -12,6 +12,7 @@ document.addEventListener('kup-datatable-rowactionclick', (e) =>
12
12
  console.log(e)
13
13
  );
14
14
  document.addEventListener('kupColumnMenuActive', (e) => console.log(e));
15
+ document.addEventListener('kup-datatable-dblclick', (e) => console.log(e));
15
16
  document.addEventListener('kup-datatable-contextmenu', (e) => console.log(e));
16
17
  document.addEventListener('kup-datatable-click', (e) => console.log(e));
17
18
  document.addEventListener('kup-datatable-columnmenu', (e) => {
@@ -76,6 +77,519 @@ document.addEventListener('kup-datatable-columnmenu', (e) => {
76
77
  e.detail.card.refresh();
77
78
  }
78
79
  });
80
+
81
+ const completeData = {
82
+ columns: [
83
+ {
84
+ name: 'AUTOCOMPLETE',
85
+ title: 'Autocomplete',
86
+ },
87
+ {
88
+ name: 'BAR',
89
+ title: 'Bar',
90
+ },
91
+ {
92
+ name: 'BTN',
93
+ title: 'Btn',
94
+ },
95
+ {
96
+ name: 'BUTTON',
97
+ title: 'Button',
98
+ },
99
+ {
100
+ name: 'CHART',
101
+ title: 'Chart',
102
+ },
103
+ {
104
+ name: 'CHECKBOX',
105
+ title: 'Checkbox',
106
+ },
107
+ {
108
+ name: 'CHIPS',
109
+ title: 'Chips',
110
+ },
111
+ {
112
+ name: 'COLORPICKER',
113
+ title: 'Color picker',
114
+ },
115
+ {
116
+ name: 'COMBOBOX',
117
+ title: 'Combobox',
118
+ },
119
+ {
120
+ name: 'DATE',
121
+ title: 'Date',
122
+ },
123
+ {
124
+ name: 'DATETIME',
125
+ title: 'Date time',
126
+ },
127
+ {
128
+ name: 'EDITOR',
129
+ title: 'Editor',
130
+ },
131
+ {
132
+ name: 'GAUGE',
133
+ title: 'Gauge',
134
+ },
135
+ {
136
+ name: 'ICON',
137
+ title: 'Icon',
138
+ },
139
+ {
140
+ name: 'IMAGE',
141
+ title: 'Image',
142
+ },
143
+ {
144
+ name: 'KNOB',
145
+ title: 'Knob',
146
+ },
147
+ {
148
+ name: 'LINK',
149
+ title: 'Link',
150
+ },
151
+ {
152
+ name: 'NUMBER',
153
+ title: 'Number',
154
+ },
155
+ {
156
+ name: 'PROGRESSBAR',
157
+ title: 'Progress bar',
158
+ },
159
+ {
160
+ name: 'RADIO',
161
+ title: 'Radio',
162
+ },
163
+ {
164
+ name: 'RATING',
165
+ title: 'Rating',
166
+ },
167
+ {
168
+ name: 'STRING',
169
+ title: 'String',
170
+ },
171
+ {
172
+ name: 'TIME',
173
+ title: 'Time',
174
+ },
175
+ ],
176
+ rows: [
177
+ {
178
+ cells: {
179
+ AUTOCOMPLETE: {
180
+ data: {
181
+ data: {
182
+ 'kup-list': {
183
+ data: [
184
+ {
185
+ text: 'First item',
186
+ value: 'CODE_1',
187
+ selected: false,
188
+ },
189
+ {
190
+ text: 'Second item',
191
+ value: 'CODE_2',
192
+ selected: false,
193
+ },
194
+ {
195
+ text: 'Third item',
196
+ value: 'CODE_3',
197
+ selected: false,
198
+ },
199
+ ],
200
+ displayMode: 'both',
201
+ selectable: true,
202
+ },
203
+ 'kup-text-field': {
204
+ label: 'Demo',
205
+ },
206
+ },
207
+ initialValue: 'CODE_1',
208
+ },
209
+ obj: {
210
+ t: '',
211
+ p: '',
212
+ k: '',
213
+ },
214
+ isEditable: true,
215
+ shape: 'ACP',
216
+ value: 'CODE_1',
217
+ options: false,
218
+ },
219
+ BAR: {
220
+ obj: {
221
+ t: 'J4',
222
+ p: 'BAR',
223
+ k: 'R255G128B000;20,58\\\\HEIGHT;60',
224
+ },
225
+ data: {
226
+ data: [
227
+ {
228
+ shape: 'bar',
229
+ color: 'rgb(255,128,0)',
230
+ width: '20%',
231
+ height: '60%',
232
+ },
233
+ ],
234
+ },
235
+ value: 'R255G128B000;20,58\\\\HEIGHT;60',
236
+ },
237
+ BTN: {
238
+ cssClass: 'strong-text',
239
+ data: {
240
+ data: [
241
+ {
242
+ children: [
243
+ {
244
+ children: [],
245
+ disabled: false,
246
+ expandable: false,
247
+ icon: 'lightbulb-outline',
248
+ isExpanded: false,
249
+ obj: {
250
+ k: '000050',
251
+ p: 'COD_VER',
252
+ t: 'VO',
253
+ },
254
+ options: false,
255
+ value: 'Collaboratore',
256
+ },
257
+ {
258
+ children: [],
259
+ disabled: false,
260
+ expandable: false,
261
+ icon: 'briefcase',
262
+ isExpanded: false,
263
+ obj: {
264
+ k: '000050',
265
+ p: 'COD_VER',
266
+ t: 'VO',
267
+ },
268
+ options: false,
269
+ value: 'Azienda',
270
+ },
271
+ ],
272
+ data: {
273
+ dropdownOnly: true,
274
+ },
275
+ disabled: false,
276
+ expandable: false,
277
+ isExpanded: false,
278
+ options: false,
279
+ },
280
+ ],
281
+ customStyle:
282
+ ' #kup-component button { padding: 0; font-size: 0.65em; } ',
283
+ icon: 'settings',
284
+ className: 'kup-slim',
285
+ },
286
+ isEditable: false,
287
+ obj: {
288
+ k: '000050',
289
+ p: 'COD_VER',
290
+ t: 'VO',
291
+ },
292
+ shape: 'BTN',
293
+ value: '',
294
+ },
295
+ BUTTON: {
296
+ cssClass: 'strong-text',
297
+ data: {
298
+ label: 'Testo',
299
+ },
300
+ isEditable: false,
301
+ obj: {
302
+ k: 'T(Testo)',
303
+ p: 'BTN',
304
+ t: 'J4',
305
+ },
306
+ value: 'Testo',
307
+ style: {
308
+ minHeight: '36px',
309
+ },
310
+ },
311
+ CHART: {
312
+ obj: {
313
+ t: 'J4',
314
+ p: 'GRA_PIE',
315
+ k: '1;2;1',
316
+ },
317
+ value: '1;2;1',
318
+ data: {
319
+ colors: ['red', 'blue', 'purple'],
320
+ id: 'pie_example',
321
+ sizeX: '100px',
322
+ sizeY: '100px',
323
+ offlineMode: {
324
+ value: '1;2;1',
325
+ shape: 'pie',
326
+ },
327
+ },
328
+ },
329
+ CHECKBOX: {
330
+ obj: {
331
+ k: '1',
332
+ p: 'SI/NO',
333
+ t: 'V2',
334
+ },
335
+ data: {
336
+ checked: true,
337
+ },
338
+ options: false,
339
+ value: '1',
340
+ style: {
341
+ minHeight: '18px',
342
+ },
343
+ isEditable: true,
344
+ },
345
+ CHIPS: {
346
+ data: {
347
+ data: [
348
+ {
349
+ value: 'text',
350
+ label: 'Text only',
351
+ },
352
+ {
353
+ value: 'icon',
354
+ icon: 'widgets',
355
+ label: 'With icon',
356
+ },
357
+ ],
358
+ },
359
+ obj: {
360
+ t: 'JL',
361
+ p: '**',
362
+ k: 'text;icon',
363
+ },
364
+ value: 'text;icon',
365
+ options: false,
366
+ style: {
367
+ minHeight: '40px',
368
+ },
369
+ },
370
+ COLORPICKER: {
371
+ data: {
372
+ initialValue: 'rgb(255, 0, 0)',
373
+ },
374
+ obj: {
375
+ t: 'J1',
376
+ p: 'COL',
377
+ k: 'R255G000B000',
378
+ },
379
+ value: 'R255G000B000',
380
+ options: false,
381
+ isEditable: true,
382
+ },
383
+ COMBOBOX: {
384
+ isEditable: true,
385
+ data: {
386
+ data: {
387
+ 'kup-list': {
388
+ data: [
389
+ {
390
+ text: 'First item',
391
+ value: 'CODE_1',
392
+ selected: false,
393
+ },
394
+ {
395
+ text: 'Second item',
396
+ value: 'CODE_2',
397
+ selected: false,
398
+ },
399
+ {
400
+ text: 'Third item',
401
+ value: 'CODE_3',
402
+ selected: false,
403
+ },
404
+ ],
405
+ displayMode: 'both',
406
+ selectable: true,
407
+ },
408
+ 'kup-text-field': {
409
+ label: 'Demo',
410
+ },
411
+ },
412
+ initialValue: 'CODE_2',
413
+ },
414
+ obj: {
415
+ t: '',
416
+ p: '',
417
+ k: '',
418
+ },
419
+ shape: 'CMB',
420
+ value: 'CODE_2',
421
+ options: false,
422
+ isEditable: true,
423
+ },
424
+ DATE: {
425
+ obj: {
426
+ t: 'D8',
427
+ p: '',
428
+ k: '',
429
+ },
430
+ value: '2021-01-02',
431
+ displayedValue: '02/01/2021',
432
+ isEditable: true,
433
+ },
434
+ DATETIME: {
435
+ obj: {
436
+ t: 'I3',
437
+ p: '2',
438
+ k: '',
439
+ },
440
+ value: '2021-07-19 10:33:44',
441
+ displayedValue: '19/07/2021, 10:33:44',
442
+ isEditable: true,
443
+ },
444
+ EDITOR: {
445
+ isEditable: false,
446
+ obj: {
447
+ k: '<ul><li>6737</li><li>6796</li></ul>',
448
+ p: '',
449
+ t: '',
450
+ },
451
+ shape: 'Edt',
452
+ value: '<ul><li>6737</li><li>6796</li></ul>',
453
+ },
454
+ GAUGE: {
455
+ data: {
456
+ minValue: '30',
457
+ maxValue: '150',
458
+ value: '50',
459
+ },
460
+ obj: {
461
+ t: 'NR',
462
+ p: '',
463
+ k: '50',
464
+ },
465
+ value: '50',
466
+ shape: 'Gau',
467
+ options: false,
468
+ },
469
+ ICON: {
470
+ obj: {
471
+ t: 'J4',
472
+ p: 'ICO',
473
+ k: 'CN;COL;Customers module',
474
+ },
475
+ data: {
476
+ resource: 'account',
477
+ },
478
+ value: 'account',
479
+ style: {
480
+ minHeight: '18px',
481
+ },
482
+ },
483
+ IMAGE: {
484
+ obj: {
485
+ t: 'J4',
486
+ p: 'IMG',
487
+ k: 'CN;COL;Customers module',
488
+ },
489
+ data: {
490
+ resource: 'https://via.placeholder.com/64?text=PF',
491
+ },
492
+ value: 'https://via.placeholder.com/64?text=PF',
493
+ },
494
+ KNOB: {
495
+ obj: {
496
+ t: 'J4',
497
+ p: 'PGB',
498
+ k: '80',
499
+ },
500
+ data: {
501
+ value: '80',
502
+ isRadial: true,
503
+ },
504
+ value: '80',
505
+ },
506
+ LINK: {
507
+ cssClass: '',
508
+ isEditable: false,
509
+ obj: {
510
+ k: 'https://via.placeholder.com/64?text=PF',
511
+ p: 'URL',
512
+ t: 'J1',
513
+ },
514
+ value: 'https://via.placeholder.com/64?text=PF',
515
+ },
516
+ NUMBER: {
517
+ obj: {
518
+ k: '12345',
519
+ p: '',
520
+ t: 'NR',
521
+ },
522
+ value: '12345.0',
523
+ displayedValue: '12.345',
524
+ isEditable: true,
525
+ },
526
+ PROGRESSBAR: {
527
+ obj: {
528
+ t: 'J4',
529
+ p: 'PGB',
530
+ k: '80',
531
+ },
532
+ data: {
533
+ value: '80',
534
+ },
535
+ value: '80',
536
+ },
537
+ RADIO: {
538
+ data: {
539
+ data: [
540
+ {
541
+ checked: true,
542
+ value: '10',
543
+ },
544
+ ],
545
+ },
546
+ obj: {
547
+ k: '10',
548
+ p: 'B£WAR',
549
+ t: 'TA',
550
+ },
551
+ shape: 'Rad',
552
+ value: '10',
553
+ },
554
+ RATING: {
555
+ data: {
556
+ value: '5',
557
+ maxValue: 10,
558
+ },
559
+ obj: {
560
+ t: 'NR',
561
+ p: '',
562
+ k: '5',
563
+ },
564
+ value: '5',
565
+ options: false,
566
+ shape: 'Rtg',
567
+ },
568
+ STRING: {
569
+ obj: {
570
+ k: 'String value',
571
+ p: '',
572
+ t: '',
573
+ },
574
+ value: 'String value',
575
+ isEditable: true,
576
+ },
577
+ TIME: {
578
+ obj: {
579
+ t: 'I1',
580
+ p: '',
581
+ k: '',
582
+ },
583
+ value: '10:55',
584
+ displayedValue: '10:55',
585
+ isEditable: true,
586
+ },
587
+ },
588
+ id: '0',
589
+ },
590
+ ],
591
+ };
592
+
79
593
  const radioColumns = [
80
594
  {
81
595
  name: 'G08ID',
@@ -132018,6 +132532,9 @@ const textfieldRow = [
132018
132532
  },
132019
132533
  ];
132020
132534
 
132535
+ const completeTable = document.getElementById('complete-data');
132536
+ completeTable.data = completeData;
132537
+
132021
132538
  const textfieldTable = document.getElementById('text-field');
132022
132539
  textfieldTable.data = { columns: textfieldColumn, rows: textfieldRow };
132023
132540
  textfieldTable.rowActions = rowActions;
@@ -46,6 +46,10 @@ components.data = [
46
46
  text: 'Card',
47
47
  value: 'card.html',
48
48
  },
49
+ {
50
+ text: 'Cell',
51
+ value: 'cell.html',
52
+ },
49
53
  {
50
54
  text: 'Chart',
51
55
  value: 'chart.html',
@@ -118,6 +122,10 @@ components.data = [
118
122
  text: 'Rating',
119
123
  value: 'rating.html',
120
124
  },
125
+ {
126
+ text: 'Snackbar',
127
+ value: 'snackbar.html',
128
+ },
121
129
  {
122
130
  text: 'Switch',
123
131
  value: 'switch.html',
@@ -0,0 +1,32 @@
1
+ const bottomButton = document.getElementById('bottom');
2
+ const topButton = document.getElementById('top');
3
+ const snackbar = document.getElementById('snackbar');
4
+ const props = {
5
+ text: 'This is a snackbar demo',
6
+ actionButton: { label: 'Action', styling: 'flat' },
7
+ closeButton: true,
8
+ timeout: 2000,
9
+ };
10
+
11
+ bottomButton.addEventListener('kup-button-click', () => {
12
+ showBottomSnackbar(props);
13
+ });
14
+ topButton.addEventListener('kup-button-click', () => {
15
+ showTopSnackbar(props);
16
+ });
17
+
18
+ function showBottomSnackbar(props) {
19
+ for (const key in props) {
20
+ snackbar[key] = props[key];
21
+ }
22
+ snackbar.classList.remove('kup-top');
23
+ snackbar.show();
24
+ }
25
+
26
+ function showTopSnackbar(props) {
27
+ for (const key in props) {
28
+ snackbar[key] = props[key];
29
+ }
30
+ snackbar.classList.add('kup-top');
31
+ snackbar.show();
32
+ }
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "entries": [
3
+ "./components/kup-card/kup-card.js",
3
4
  "./components/kup-badge/kup-badge.js",
4
5
  "./components/kup-tooltip/kup-tooltip.js",
6
+ "./components/kup-chart/kup-chart.js",
5
7
  "./components/kup-data-table/kup-data-table.js",
6
8
  "./components/kup-tree/kup-tree.js",
7
9
  "./components/kup-accordion/kup-accordion.js",
@@ -10,8 +12,7 @@
10
12
  "./components/kup-button/kup-button.js",
11
13
  "./components/kup-button-list/kup-button-list.js",
12
14
  "./components/kup-calendar/kup-calendar.js",
13
- "./components/kup-card/kup-card.js",
14
- "./components/kup-chart/kup-chart.js",
15
+ "./components/kup-cell/kup-cell.js",
15
16
  "./components/kup-checkbox/kup-checkbox.js",
16
17
  "./components/kup-chip/kup-chip.js",
17
18
  "./components/kup-color-picker/kup-color-picker.js",
@@ -21,13 +22,11 @@
21
22
  "./components/kup-date-picker/kup-date-picker.js",
22
23
  "./components/kup-drawer/kup-drawer.js",
23
24
  "./components/kup-dropdown-button/kup-dropdown-button.js",
24
- "./components/kup-editor/kup-editor.js",
25
25
  "./components/kup-field/kup-field.js",
26
26
  "./components/kup-gauge/kup-gauge.js",
27
27
  "./components/kup-grid/kup-grid.js",
28
28
  "./components/kup-iframe/kup-iframe.js",
29
29
  "./components/kup-image/kup-image.js",
30
- "./components/kup-layout/kup-layout.js",
31
30
  "./components/kup-lazy/kup-lazy.js",
32
31
  "./components/kup-radio/kup-radio.js",
33
32
  "./components/kup-list/kup-list.js",
@@ -38,6 +37,7 @@
38
37
  "./components/kup-progress-bar/kup-progress-bar.js",
39
38
  "./components/kup-qlik/kup-qlik.js",
40
39
  "./components/kup-rating/kup-rating.js",
40
+ "./components/kup-snackbar/kup-snackbar.js",
41
41
  "./components/kup-spinner/kup-spinner.js",
42
42
  "./components/kup-switch/kup-switch.js",
43
43
  "./components/kup-tab-bar/kup-tab-bar.js",
@@ -46,8 +46,8 @@
46
46
  ],
47
47
  "compiler": {
48
48
  "name": "@stencil/core",
49
- "version": "2.9.0",
50
- "typescriptVersion": "4.2.3"
49
+ "version": "2.12.0",
50
+ "typescriptVersion": "4.3.5"
51
51
  },
52
52
  "collections": [],
53
53
  "bundles": []