@sme.up/ketchup 4.0.0 → 4.2.0-SNAPSHOT

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 (295) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/cell-utils-1d44a3f0.js +168 -0
  3. package/dist/cjs/f-button-a5788453.js +105 -0
  4. package/dist/cjs/f-cell-eba6f39e.js +727 -0
  5. package/dist/cjs/f-chip-ce69b7d2.js +141 -0
  6. package/dist/cjs/{f-image-5f4f29ca.js → f-image-e03842eb.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} +1678 -2558
  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-75f1a2cd.js +5794 -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-b3ec89fe.js} +18 -26
  27. package/dist/collection/assets/cell.js +51 -0
  28. package/dist/collection/assets/data-table.js +518 -45
  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/dialog/kup-card-dialog.js +18 -0
  48. package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
  49. package/dist/collection/components/kup-card/kup-card.css +147 -216
  50. package/dist/collection/components/kup-card/kup-card.js +80 -29
  51. package/dist/collection/components/kup-card/standard/kup-card-standard.js +75 -0
  52. package/dist/collection/components/kup-cell/kup-cell-declarations.js +11 -0
  53. package/dist/collection/components/kup-cell/kup-cell.css +20 -0
  54. package/dist/collection/components/kup-cell/kup-cell.js +413 -0
  55. package/dist/collection/components/kup-chart/kup-chart.js +41 -42
  56. package/dist/collection/components/kup-checkbox/kup-checkbox.css +0 -214
  57. package/dist/collection/components/kup-checkbox/kup-checkbox.js +19 -20
  58. package/dist/collection/components/kup-chip/kup-chip.css +0 -217
  59. package/dist/collection/components/kup-chip/kup-chip.js +15 -16
  60. package/dist/collection/components/kup-color-picker/kup-color-picker.css +7 -2380
  61. package/dist/collection/components/kup-color-picker/kup-color-picker.js +41 -41
  62. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
  63. package/dist/collection/components/kup-combobox/kup-combobox.css +5 -2381
  64. package/dist/collection/components/kup-combobox/kup-combobox.js +68 -28
  65. package/dist/collection/components/kup-dash-list/kup-dash-list.js +13 -4
  66. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
  67. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
  68. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  69. package/dist/collection/components/kup-data-table/kup-data-table.css +127 -3203
  70. package/dist/collection/components/kup-data-table/kup-data-table.js +568 -1085
  71. package/dist/collection/components/kup-date-picker/kup-date-picker.css +6 -8
  72. package/dist/collection/components/kup-date-picker/kup-date-picker.js +77 -106
  73. package/dist/collection/components/kup-drawer/kup-drawer.js +9 -10
  74. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +12 -340
  75. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +56 -45
  76. package/dist/collection/components/kup-field/kup-field.js +21 -22
  77. package/dist/collection/components/kup-gauge/kup-gauge.js +17 -18
  78. package/dist/collection/components/kup-grid/kup-grid.css +2 -1
  79. package/dist/collection/components/kup-grid/kup-grid.js +13 -14
  80. package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
  81. package/dist/collection/components/kup-image/assets/svg/ketchup.svg +74 -0
  82. package/dist/collection/components/kup-image/assets/svg/smeup.svg +59 -0
  83. package/dist/collection/components/kup-image/kup-image.css +0 -32
  84. package/dist/collection/components/kup-image/kup-image.js +25 -26
  85. package/dist/collection/components/kup-lazy/kup-lazy.js +17 -18
  86. package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
  87. package/dist/collection/components/kup-list/kup-list.css +4 -260
  88. package/dist/collection/components/kup-list/kup-list.js +39 -49
  89. package/dist/collection/components/kup-magic-box/kup-magic-box.css +13 -39
  90. package/dist/collection/components/kup-magic-box/kup-magic-box.js +29 -38
  91. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +11 -12
  92. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -332
  93. package/dist/collection/components/kup-paginator/kup-paginator.js +44 -12
  94. package/dist/collection/components/kup-probe/kup-probe.js +9 -9
  95. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +21 -22
  96. package/dist/collection/components/kup-radio/kup-radio.js +17 -18
  97. package/dist/collection/components/kup-rating/kup-rating.js +15 -16
  98. package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +13 -0
  99. package/dist/collection/components/kup-snackbar/kup-snackbar.css +75 -0
  100. package/dist/collection/components/kup-snackbar/kup-snackbar.js +390 -0
  101. package/dist/collection/components/kup-spinner/kup-spinner.js +23 -24
  102. package/dist/collection/components/kup-switch/kup-switch.css +0 -156
  103. package/dist/collection/components/kup-switch/kup-switch.js +17 -18
  104. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +0 -199
  105. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +13 -14
  106. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
  107. package/dist/collection/components/kup-text-field/kup-text-field.css +3 -2371
  108. package/dist/collection/components/kup-text-field/kup-text-field.js +77 -51
  109. package/dist/collection/components/kup-time-picker/kup-time-picker.css +6 -0
  110. package/dist/collection/components/kup-time-picker/kup-time-picker.js +55 -85
  111. package/dist/collection/components/kup-tooltip/kup-tooltip.js +24 -14
  112. package/dist/collection/components/kup-tree/kup-tree.css +27 -371
  113. package/dist/collection/components/kup-tree/kup-tree.js +158 -383
  114. package/dist/collection/f-components/f-button/f-button.js +4 -2
  115. package/dist/collection/f-components/f-cell/f-cell-declarations.js +143 -0
  116. package/dist/collection/f-components/f-cell/f-cell.js +467 -0
  117. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
  118. package/dist/collection/f-components/f-chip/f-chip.js +2 -2
  119. package/dist/collection/f-components/f-image/f-image.js +2 -3
  120. package/dist/collection/f-components/f-switch/f-switch.js +1 -1
  121. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +1 -1
  122. package/dist/collection/f-components/f-text-field/f-text-field.js +25 -21
  123. package/dist/collection/utils/cell-utils.js +18 -222
  124. package/dist/collection/utils/filters/filters.js +31 -37
  125. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +15 -3
  126. package/dist/collection/utils/kup-dates/kup-dates.js +14 -2
  127. package/dist/collection/utils/kup-debug/kup-debug-browser-utils.js +3 -3
  128. package/dist/collection/utils/kup-debug/kup-debug.js +57 -29
  129. package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +5 -7
  130. package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
  131. package/dist/collection/utils/kup-interact/kup-interact.js +379 -0
  132. package/dist/collection/utils/kup-language/kup-language-declarations.js +2 -0
  133. package/dist/collection/utils/kup-language/kup-language.js +1 -1
  134. package/dist/collection/utils/kup-manager/kup-manager.js +47 -10
  135. package/dist/collection/utils/kup-objects/kup-objects.js +9 -33
  136. package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
  137. package/dist/collection/utils/kup-search/kup-search-declarations.js +1 -0
  138. package/dist/collection/utils/kup-search/kup-search.js +76 -0
  139. package/dist/collection/utils/kup-theme/kup-theme-declarations.js +1 -0
  140. package/dist/collection/utils/kup-theme/kup-theme.js +4 -3
  141. package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
  142. package/dist/collection/utils/utils.js +15 -23
  143. package/dist/esm/cell-utils-9a2914fc.js +160 -0
  144. package/dist/esm/f-button-55a9ed88.js +103 -0
  145. package/dist/esm/f-cell-ac520cb2.js +723 -0
  146. package/dist/esm/f-chip-babf1740.js +139 -0
  147. package/dist/esm/{f-image-68b34fab.js → f-image-70ca9dfe.js} +4 -5
  148. package/dist/esm/{index-bf2824a6.js → index-e0e67c23.js} +74 -65
  149. package/dist/esm/ketchup.js +3 -3
  150. package/dist/esm/kup-accordion.entry.js +6 -8
  151. package/dist/esm/{kup-autocomplete_29.entry.js → kup-autocomplete_28.entry.js} +1451 -2330
  152. package/dist/esm/kup-calendar.entry.js +10 -10
  153. package/dist/esm/kup-cell.entry.js +197 -0
  154. package/dist/esm/kup-dash-list.entry.js +15 -7
  155. package/dist/esm/kup-dash_2.entry.js +104 -62
  156. package/dist/esm/kup-drawer.entry.js +4 -6
  157. package/dist/esm/kup-field.entry.js +3 -5
  158. package/dist/esm/kup-iframe.entry.js +3 -4
  159. package/dist/esm/kup-lazy.entry.js +4 -6
  160. package/dist/esm/kup-magic-box.entry.js +21 -31
  161. package/dist/esm/kup-manager-bba32828.js +5781 -0
  162. package/dist/esm/kup-nav-bar.entry.js +4 -6
  163. package/dist/esm/kup-probe.entry.js +3 -4
  164. package/dist/esm/kup-qlik.entry.js +2 -3
  165. package/dist/esm/kup-snackbar.entry.js +148 -0
  166. package/dist/esm/loader.js +3 -3
  167. package/dist/esm/{utils-13dd007a.js → utils-cfcbe33f.js} +16 -23
  168. package/dist/ketchup/assets/svg/ketchup.svg +74 -0
  169. package/dist/ketchup/assets/svg/smeup.svg +59 -0
  170. package/dist/ketchup/ketchup.esm.js +1 -1
  171. package/dist/ketchup/p-03ae1be9.entry.js +1 -0
  172. package/dist/ketchup/p-06c209a5.js +1 -0
  173. package/dist/ketchup/p-1ce9a037.js +1 -0
  174. package/dist/ketchup/p-1e2c3497.js +1 -0
  175. package/dist/ketchup/p-40df35de.entry.js +1 -0
  176. package/dist/ketchup/{p-c7ee1fbc.js → p-4748be4b.js} +2 -2
  177. package/dist/ketchup/p-52038ccb.js +1 -0
  178. package/dist/ketchup/p-5db41fae.entry.js +45 -0
  179. package/dist/ketchup/p-5faf7715.entry.js +1 -0
  180. package/dist/ketchup/p-62208488.entry.js +1 -0
  181. package/dist/ketchup/p-69a705ae.entry.js +1 -0
  182. package/dist/ketchup/p-6cc8264d.entry.js +1 -0
  183. package/dist/ketchup/p-74259992.entry.js +1 -0
  184. package/dist/ketchup/p-756aa8b1.entry.js +1 -0
  185. package/dist/ketchup/p-a7687c0e.entry.js +27 -0
  186. package/dist/ketchup/p-cb5f4994.js +1 -0
  187. package/dist/ketchup/p-d58dbf0e.js +1 -0
  188. package/dist/ketchup/p-d6ce1ac6.entry.js +1 -0
  189. package/dist/ketchup/p-daf03877.entry.js +1 -0
  190. package/dist/ketchup/p-e90934b5.entry.js +1 -0
  191. package/dist/ketchup/p-ea387b49.entry.js +1 -0
  192. package/dist/ketchup/p-f6bff949.js +1 -0
  193. package/dist/ketchup/p-ff7d590e.entry.js +1 -0
  194. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -6
  195. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -13
  196. package/dist/types/components/kup-box/kup-box-declarations.d.ts +13 -4
  197. package/dist/types/components/kup-box/kup-box.d.ts +13 -6
  198. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  199. package/dist/types/components/kup-card/kup-card.d.ts +9 -0
  200. package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +6 -0
  201. package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +10 -0
  202. package/dist/types/components/kup-cell/kup-cell.d.ts +67 -0
  203. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +1 -1
  204. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -2
  205. package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
  206. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +4 -0
  207. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +21 -32
  208. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -15
  209. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  210. package/dist/types/components/kup-data-table/kup-data-table.d.ts +32 -81
  211. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +12 -14
  212. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -4
  213. package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
  214. package/dist/types/components/kup-list/kup-list.d.ts +2 -3
  215. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
  216. package/dist/types/components/kup-paginator/kup-paginator.d.ts +6 -0
  217. package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +12 -0
  218. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +79 -0
  219. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +2 -1
  220. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  221. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +8 -11
  222. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +1 -0
  223. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
  224. package/dist/types/components/kup-tree/kup-tree.d.ts +12 -23
  225. package/dist/types/components.d.ts +346 -174
  226. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +153 -0
  227. package/dist/types/f-components/f-cell/f-cell.d.ts +3 -0
  228. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  229. package/dist/types/f-components/f-text-field/f-text-field-mdc.d.ts +1 -1
  230. package/dist/types/utils/cell-utils.d.ts +0 -19
  231. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -0
  232. package/dist/types/utils/kup-dates/kup-dates.d.ts +9 -4
  233. package/dist/types/utils/kup-debug/kup-debug.d.ts +1 -1
  234. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
  235. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
  236. package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
  237. package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
  238. package/dist/types/utils/kup-language/kup-language-declarations.d.ts +2 -0
  239. package/dist/types/utils/kup-language/kup-language.d.ts +1 -1
  240. package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +28 -8
  241. package/dist/types/utils/kup-manager/kup-manager.d.ts +18 -5
  242. package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
  243. package/dist/types/utils/kup-search/kup-search-declarations.d.ts +7 -0
  244. package/dist/types/utils/kup-search/kup-search.d.ts +20 -0
  245. package/dist/types/utils/kup-theme/kup-theme-declarations.d.ts +2 -0
  246. package/dist/types/utils/kup-theme/kup-theme.d.ts +2 -2
  247. package/dist/types/utils/utils.d.ts +0 -1
  248. package/package.json +4 -6
  249. package/dist/cjs/cell-utils-1f89a299.js +0 -1527
  250. package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
  251. package/dist/cjs/f-chip-2d58c8f7.js +0 -239
  252. package/dist/cjs/kup-grid.cjs.entry.js +0 -130
  253. package/dist/cjs/kup-manager-59ad8bdc.js +0 -4845
  254. package/dist/cjs/kup-objects-59ea949c.js +0 -717
  255. package/dist/collection/assets/images/drag-multiple.js +0 -1
  256. package/dist/collection/components/kup-editor/kup-editor.css +0 -5
  257. package/dist/collection/components/kup-editor/kup-editor.js +0 -59
  258. package/dist/collection/components/kup-layout/kup-layout.css +0 -53
  259. package/dist/collection/components/kup-layout/kup-layout.js +0 -156
  260. package/dist/collection/utils/drag-and-drop.js +0 -109
  261. package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
  262. package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
  263. package/dist/esm/cell-utils-cb612463.js +0 -1510
  264. package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
  265. package/dist/esm/f-chip-125d5dd6.js +0 -236
  266. package/dist/esm/kup-grid.entry.js +0 -126
  267. package/dist/esm/kup-manager-e7d7b353.js +0 -4842
  268. package/dist/esm/kup-objects-d38d2fa2.js +0 -711
  269. package/dist/ketchup/p-00fe1e3e.js +0 -1
  270. package/dist/ketchup/p-0320e24e.entry.js +0 -1
  271. package/dist/ketchup/p-08c7a092.js +0 -1
  272. package/dist/ketchup/p-1165f4ea.entry.js +0 -1
  273. package/dist/ketchup/p-170d3cba.js +0 -1
  274. package/dist/ketchup/p-18cb3ba3.js +0 -1
  275. package/dist/ketchup/p-23541a97.entry.js +0 -45
  276. package/dist/ketchup/p-64ea7e37.entry.js +0 -1
  277. package/dist/ketchup/p-7896031c.entry.js +0 -1
  278. package/dist/ketchup/p-876da4c2.entry.js +0 -1
  279. package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
  280. package/dist/ketchup/p-940ab57a.entry.js +0 -1
  281. package/dist/ketchup/p-9c858a38.entry.js +0 -1
  282. package/dist/ketchup/p-a12a5690.entry.js +0 -1
  283. package/dist/ketchup/p-a5424073.js +0 -1
  284. package/dist/ketchup/p-b0724035.entry.js +0 -1
  285. package/dist/ketchup/p-b14e77f0.js +0 -1
  286. package/dist/ketchup/p-d24cfdea.entry.js +0 -1
  287. package/dist/ketchup/p-ee89966f.entry.js +0 -27
  288. package/dist/ketchup/p-fcd2fd8f.js +0 -1
  289. package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
  290. package/dist/types/assets/images/drag-multiple.d.ts +0 -1
  291. package/dist/types/components/kup-editor/kup-editor.d.ts +0 -16
  292. package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
  293. package/dist/types/utils/drag-and-drop.d.ts +0 -53
  294. package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
  295. package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
@@ -1 +0,0 @@
1
- export const dragMultipleImg = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBRDk4M0E2RjcwOEIxMUU4QjVGOEJGOEU4QjFDNjQyNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBRDk4M0E3MDcwOEIxMUU4QjVGOEJGOEU4QjFDNjQyNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkFEOTgzQTZENzA4QjExRThCNUY4QkY4RThCMUM2NDI2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkFEOTgzQTZFNzA4QjExRThCNUY4QkY4RThCMUM2NDI2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+R5zvIwAAAeJJREFUeNrs3b+q2mAYwOHERnQ6VLoJHV3cHHojrp1dNKsgXodOHbwAhzMUvItegLifDh1U8E8L1TTZWrFiPMeSU54fiJiQ5Xs074dLwiRJAhWnEAgQAXlFIHkv6Pf7H3e7XcPS3aco7wWVSqXc6XSCRoPJSxfHcVCyDMUKyGu5ZfV6vfDSRsBm4BmDOwzzgaQY79O3x3PnVqvVu8lkUomiyMreWLvd/txqtb7m+oU0m83v3W63enp8u91mgz0Acluz2cwMMdR1+1BP58XbM8cfDodDtNls3pye2O/3pfRcyS3rim97qZRUq9Vcu59sVZfnTszn82AwGFjVZ1Sv138Oh8Nvube9o9HI6r1wi8UimE6nuf+aMkMMdQEBIiBABASIgAAREAEBIiBABASIgAAREAEBIiBABASIgAAREAEBIiBABASIgAAREAEBIiBABASIgAAREAEBIiBABASIgAAREAEBIiBABASIgAAREAEBoivyqLU7djweg+Xyz2euZZ8vPVwSyH071Gq1p98PZE9JTfuUvr4AKU7JeDxOzBBDXYZ6gVqv10Ecx0CKUhiG2UD/cHr8b/MDyD/o0uKbIYa6bhrqeQePrqtcLv/IPXeSJLFyRdoIAAEiIEAE5P/olwADAE+GfLJCR9BSAAAAAElFTkSuQmCC';
@@ -1,5 +0,0 @@
1
- :host {
2
- display: block;
3
- font-size: var(--kup-font-size);
4
- width: 100%;
5
- }
@@ -1,59 +0,0 @@
1
- import { Component, Element, Prop, h } from '@stencil/core';
2
- import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
3
- export class KupEditor {
4
- constructor() {
5
- /**
6
- * The html to be rendered and edited
7
- */
8
- this.text = '';
9
- /**
10
- * Instance of the KupManager class.
11
- */
12
- this.kupManager = kupManagerInstance();
13
- }
14
- //---- Lifecycle hooks ----
15
- componentWillLoad() {
16
- this.kupManager.debug.logLoad(this, false);
17
- }
18
- componentDidLoad() {
19
- this.kupManager.debug.logLoad(this, true);
20
- }
21
- componentWillRender() {
22
- this.kupManager.debug.logRender(this, false);
23
- }
24
- componentDidRender() {
25
- this.kupManager.debug.logRender(this, true);
26
- }
27
- render() {
28
- return h("div", { innerHTML: this.text });
29
- }
30
- static get is() { return "kup-editor"; }
31
- static get encapsulation() { return "shadow"; }
32
- static get originalStyleUrls() { return {
33
- "$": ["kup-editor.scss"]
34
- }; }
35
- static get styleUrls() { return {
36
- "$": ["kup-editor.css"]
37
- }; }
38
- static get properties() { return {
39
- "text": {
40
- "type": "string",
41
- "mutable": false,
42
- "complexType": {
43
- "original": "string",
44
- "resolved": "string",
45
- "references": {}
46
- },
47
- "required": false,
48
- "optional": false,
49
- "docs": {
50
- "tags": [],
51
- "text": "The html to be rendered and edited"
52
- },
53
- "attribute": "text",
54
- "reflect": false,
55
- "defaultValue": "''"
56
- }
57
- }; }
58
- static get elementRef() { return "rootElement"; }
59
- }
@@ -1,53 +0,0 @@
1
- /**
2
- * @prop --lyo_column-number, --kup-layout_column-number: Number of columns. This property is regulated by the columnsNumber property, but can be overridden by !important declarations.
3
- * @prop --lyo_grid-gap, --kup-layout_grid-gap: Space between two adjacent cells (on columns and rows).
4
- */
5
- :host {
6
- --lyo_column-number: var(--kup-layout_column-number, 1);
7
- --lyo_grid-gap: var(--kup-layout_grid-gap, 2rem);
8
- display: inline-grid;
9
- grid-auto-flow: row;
10
- grid-column: 1;
11
- grid-gap: var(--lyo_grid-gap) var(--lyo_grid-gap);
12
- gap: var(--lyo_grid-gap) var(--lyo_grid-gap);
13
- grid-row: auto;
14
- grid-template-columns: repeat(var(--lyo_column-number), 1fr);
15
- }
16
-
17
- :host([content-based-columns-width]) {
18
- grid-template-columns: repeat(var(--lyo_column-number), minmax(min-content, auto));
19
- }
20
-
21
- :host(.lyo-multiple-columns) {
22
- --kup-layout_column-number: 2;
23
- }
24
-
25
- :host([fill-space]) {
26
- display: grid;
27
- text-align: center;
28
- width: 100%;
29
- }
30
-
31
- :host([vertical]) {
32
- grid-gap: 10px;
33
- padding: 10px;
34
- }
35
-
36
- :host([content-based-columns-width]) {
37
- table-layout: auto;
38
- column-width: auto;
39
- }
40
-
41
- :host([horizontal]:not(.lyo-multiple-columns)) {
42
- display: inline-block;
43
- max-width: 100%;
44
- overflow: visible;
45
- white-space: nowrap;
46
- }
47
-
48
- :host([horizontal][fill-space]:not(.lyo-multiple-columns)) {
49
- display: grid;
50
- grid-auto-columns: 1fr;
51
- grid-auto-flow: column;
52
- width: 100%;
53
- }
@@ -1,156 +0,0 @@
1
- import { Component, Host, Prop, h } from '@stencil/core';
2
- export class KupLayout {
3
- constructor() {
4
- /**
5
- * Specifies how many columns the content must be organized onto.
6
- *
7
- * If this is greater than 1, then the horizontal prop will have no effect.
8
- */
9
- this.columnsNumber = 1;
10
- /**
11
- * By default, columns size is calculated by the grid layout and it tries to give the same space to elements.
12
- *
13
- * If this is true, columns width will be calculated according to the cells content.
14
- * See SCSS file for more details.
15
- */
16
- this.contentBasedColumnsWidth = false;
17
- /**
18
- * When true, the layout and its contents will try to take all the available horizontal space.
19
- */
20
- this.fillSpace = false;
21
- /**
22
- * Tells the layout to place all elements onto a single row.
23
- * It does not work when columnsNumber is greater then 1.
24
- */
25
- this.horizontal = false;
26
- }
27
- render() {
28
- let classLayout = null;
29
- //horizontal class
30
- //let posHorizontal = null;
31
- if (this.columnsNumber <= 1) {
32
- if (this.horizontal) {
33
- classLayout = {
34
- ['horizontal']: true,
35
- };
36
- }
37
- }
38
- //fillspace class
39
- //let allSpace = null;
40
- if (this.fillSpace) {
41
- classLayout = {
42
- ['fill-space']: true,
43
- };
44
- }
45
- //contentBasedColumnsWidth
46
- // let columnWidth = null;
47
- if (this.contentBasedColumnsWidth) {
48
- classLayout = {
49
- ['content-based-columns-width']: true,
50
- };
51
- }
52
- // Classes
53
- //let layoutClasses = null;
54
- if (this.columnsNumber > 1) {
55
- classLayout = {
56
- ['lyo-multiple-columns']: true,
57
- };
58
- }
59
- else
60
- this.columnsNumber = 1;
61
- classLayout = {
62
- ['vertical']: true,
63
- };
64
- // Styles
65
- let layoutStyle = null;
66
- if (this.columnsNumber >= 1) {
67
- layoutStyle = {
68
- ['--lyo_column-number']: this.columnsNumber,
69
- };
70
- }
71
- return (h(Host, { class: classLayout, style: layoutStyle },
72
- h("slot", null)));
73
- }
74
- static get is() { return "kup-layout"; }
75
- static get encapsulation() { return "shadow"; }
76
- static get originalStyleUrls() { return {
77
- "$": ["kup-layout.scss"]
78
- }; }
79
- static get styleUrls() { return {
80
- "$": ["kup-layout.css"]
81
- }; }
82
- static get properties() { return {
83
- "columnsNumber": {
84
- "type": "number",
85
- "mutable": true,
86
- "complexType": {
87
- "original": "number",
88
- "resolved": "number",
89
- "references": {}
90
- },
91
- "required": false,
92
- "optional": false,
93
- "docs": {
94
- "tags": [],
95
- "text": "Specifies how many columns the content must be organized onto.\n\nIf this is greater than 1, then the horizontal prop will have no effect."
96
- },
97
- "attribute": "columns-number",
98
- "reflect": true,
99
- "defaultValue": "1"
100
- },
101
- "contentBasedColumnsWidth": {
102
- "type": "boolean",
103
- "mutable": false,
104
- "complexType": {
105
- "original": "boolean",
106
- "resolved": "boolean",
107
- "references": {}
108
- },
109
- "required": false,
110
- "optional": false,
111
- "docs": {
112
- "tags": [],
113
- "text": "By default, columns size is calculated by the grid layout and it tries to give the same space to elements.\n\nIf this is true, columns width will be calculated according to the cells content.\nSee SCSS file for more details."
114
- },
115
- "attribute": "content-based-columns-width",
116
- "reflect": true,
117
- "defaultValue": "false"
118
- },
119
- "fillSpace": {
120
- "type": "boolean",
121
- "mutable": false,
122
- "complexType": {
123
- "original": "boolean",
124
- "resolved": "boolean",
125
- "references": {}
126
- },
127
- "required": false,
128
- "optional": false,
129
- "docs": {
130
- "tags": [],
131
- "text": "When true, the layout and its contents will try to take all the available horizontal space."
132
- },
133
- "attribute": "fill-space",
134
- "reflect": true,
135
- "defaultValue": "false"
136
- },
137
- "horizontal": {
138
- "type": "boolean",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "boolean",
142
- "resolved": "boolean",
143
- "references": {}
144
- },
145
- "required": false,
146
- "optional": false,
147
- "docs": {
148
- "tags": [],
149
- "text": "Tells the layout to place all elements onto a single row.\nIt does not work when columnsNumber is greater then 1."
150
- },
151
- "attribute": "horizontal",
152
- "reflect": true,
153
- "defaultValue": "false"
154
- }
155
- }; }
156
- }
@@ -1,109 +0,0 @@
1
- // TODO: [feat-1]: if acceptedDataTypesFound must be passed to all drag event handler but the dragStart event.a
2
- // This could possibly simplify the analysis of the e.dataTransfer.types
3
- // TODO: PayloadStructure to implement or remove (implement the TypeScript type lika a generic)
4
- const dragDropPayloadHolder = {
5
- // fields used only by the D&D wrapper
6
- // [...]
7
- // The holder of the payload data
8
- dragPayload: undefined,
9
- };
10
- // payload getter
11
- export function getDragDropPayload() {
12
- return dragDropPayloadHolder.dragPayload;
13
- }
14
- // payload setter
15
- export function setDragDropPayload(dragPayload) {
16
- dragDropPayloadHolder.dragPayload = dragPayload;
17
- }
18
- // playload cleaner
19
- function _cleanDragDropPayload() {
20
- dragDropPayloadHolder.dragPayload = undefined;
21
- }
22
- /**
23
- *
24
- */
25
- export function setKetchupDraggable(handlers, data, image) {
26
- const onDragStart = (e) => {
27
- // clean the DragDropPlayload
28
- _cleanDragDropPayload();
29
- // Sets drag data, the type of drag action, and the image
30
- Object.keys(data).forEach((key) => {
31
- e.dataTransfer.setData(key, typeof data[key] === 'string'
32
- ? data[key]
33
- : JSON.stringify(data[key]));
34
- });
35
- // manage the dragImage
36
- if (image) {
37
- e.dataTransfer.setDragImage(image.img, image.offsetX, image.offsetY);
38
- }
39
- // Executes the given handler for custom behavior
40
- handlers.onDragStart(e);
41
- };
42
- let onDragOver = undefined;
43
- if (handlers.onDragOver) {
44
- onDragOver = (e) => {
45
- if (handlers.onDragOver(e)) {
46
- // this is mandatory in order to launch the onDrop method
47
- e.preventDefault();
48
- }
49
- };
50
- }
51
- // remember that onDragOver and onDragLeave can be replaced by the same methods in DropHandlers (if the component is both draggable and droppable)
52
- // in this scenario it's possible to merge the logic in the DropHandlers only
53
- return Object.assign(Object.assign(Object.assign({ draggable: true, onDragStart }, (handlers.onDragLeave ? { onDragLeave: handlers.onDragLeave } : {})), (onDragOver ? { onDragOver } : {})), (handlers.onDragEnd ? { onDragEnd: handlers.onDragEnd } : {}));
54
- }
55
- export function setKetchupDroppable(handlers, acceptedDataTypes, dispatcherElement, targetElement) {
56
- const onDrop = (e) => {
57
- // Searches for accepted data types
58
- const acceptedDataTypesFound = acceptedDataTypes.filter((dataType) => hasDragDataType(e, dataType));
59
- // If not accepted data types have been found, we stop the drop operation
60
- let processedDataType = '';
61
- if (acceptedDataTypesFound.length >= 1 &&
62
- !!(processedDataType = handlers.onDrop(e, acceptedDataTypesFound))) {
63
- let sourceElement;
64
- try {
65
- sourceElement = JSON.parse(e.dataTransfer.getData('kup-drag-source-element'));
66
- }
67
- catch (error) {
68
- console.log('Managed error during the kup-drop-source-element parsing', error);
69
- sourceElement = e.dataTransfer.getData('kup-drag-source-element');
70
- }
71
- // dataType: identifier of Drag & Drop
72
- // sourceElement: applicative dragged object
73
- // targetElement: applicative dropped object
74
- const ketchupDropEvent = new CustomEvent('kup-drop', {
75
- bubbles: true,
76
- cancelable: true,
77
- detail: {
78
- dataType: processedDataType,
79
- sourceElement,
80
- targetElement,
81
- },
82
- });
83
- console.log('kup-drop event', ketchupDropEvent);
84
- dispatcherElement.dispatchEvent(ketchupDropEvent);
85
- // this is mandatory
86
- e.preventDefault();
87
- }
88
- };
89
- let onDragOver = undefined;
90
- if (handlers.onDragOver) {
91
- onDragOver = (e) => {
92
- if (handlers.onDragOver(e)) {
93
- // this is mandatory
94
- e.preventDefault();
95
- }
96
- };
97
- }
98
- // remember that onDragOver and onDragLeave can be replace the same methods in DragHandlers (if the component is both draggable and droppable)
99
- // in this scenario it's possible to merge the logic in the DropHandlers only
100
- return Object.assign(Object.assign(Object.assign({}, (onDragOver ? { onDragOver } : {})), (handlers.onDragLeave ? { onDragLeave: handlers.onDragLeave } : {})), { onDrop });
101
- }
102
- // utility that set the drag effect allowed
103
- export function setDragEffectAllowed(e, effectAllowed = 'move') {
104
- e.dataTransfer.effectAllowed = effectAllowed;
105
- }
106
- // utility that simply check the drag data type
107
- export function hasDragDataType(e, dataType) {
108
- return e.dataTransfer.types.indexOf(dataType) >= 0;
109
- }
@@ -1,36 +0,0 @@
1
- /**
2
- * HTML Attribute attached to dialogs.
3
- * Referenced by kup-theme.css
4
- */
5
- export const kupDialogAttribute = 'kup-dialog';
6
- /**
7
- * CSS class attached to resizable dialogs.
8
- * Referenced by kup-theme.css
9
- */
10
- export const kupResizableDialogClass = 'kup-resizable';
11
- /**
12
- * Actions performed by KupDialog.
13
- * The value reflects the CSS "cursor" property.
14
- */
15
- export var KupDialogActions;
16
- (function (KupDialogActions) {
17
- KupDialogActions["MOVE"] = "move";
18
- KupDialogActions["RESIZE"] = "resize";
19
- })(KupDialogActions || (KupDialogActions = {}));
20
- /**
21
- * Coordinates of the resize.
22
- * The value reflects the CSS "cursor" property.
23
- */
24
- export var KupDialogCoordinates;
25
- (function (KupDialogCoordinates) {
26
- KupDialogCoordinates["ALL"] = "move";
27
- KupDialogCoordinates["UNSET"] = "auto";
28
- KupDialogCoordinates["NORTHWEST"] = "nw-resize";
29
- KupDialogCoordinates["NORTH"] = "n-resize";
30
- KupDialogCoordinates["NORTHEAST"] = "ne-resize";
31
- KupDialogCoordinates["EAST"] = "e-resize";
32
- KupDialogCoordinates["SOUTHEAST"] = "se-resize";
33
- KupDialogCoordinates["SOUTH"] = "s-resize";
34
- KupDialogCoordinates["SOUTHWEST"] = "sw-resize";
35
- KupDialogCoordinates["WEST"] = "w-resize";
36
- })(KupDialogCoordinates || (KupDialogCoordinates = {}));