@sme.up/ketchup 5.2.1-SNAPSHOT → 6.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 (231) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/cjs/{cell-utils-d96b2993.js → cell-utils-d894e802.js} +2 -2
  3. package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
  4. package/dist/cjs/{f-button-2b9b99b1.js → f-button-414b3bc3.js} +4 -4
  5. package/dist/cjs/f-cell-c8983ec7.js +418 -0
  6. package/dist/cjs/f-checkbox-57443ca3.js +29 -0
  7. package/dist/cjs/{f-chip-df59e1b0.js → f-chip-ef81bf51.js} +5 -4
  8. package/dist/cjs/{f-image-12bab3b5.js → f-image-0618c795.js} +2 -2
  9. package/dist/cjs/f-paginator-utils-c9dd5173.js +1898 -0
  10. package/dist/cjs/{f-text-field-e7c35b5b.js → f-text-field-7d31190f.js} +3 -3
  11. package/dist/cjs/{f-text-field-mdc-a67f5dfe.js → f-text-field-mdc-85997738.js} +23 -305
  12. package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
  13. package/dist/cjs/ketchup.cjs.js +3 -3
  14. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  15. package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1833 -5745
  16. package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17113 -14788
  17. package/dist/cjs/kup-calendar.cjs.entry.js +42 -34
  18. package/dist/cjs/kup-cell.cjs.entry.js +10 -9
  19. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  20. package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
  21. package/dist/cjs/kup-dashboard.cjs.entry.js +379 -0
  22. package/dist/cjs/kup-drawer.cjs.entry.js +12 -5
  23. package/dist/cjs/kup-field.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-form.cjs.entry.js +469 -0
  25. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-image-list.cjs.entry.js +229 -0
  27. package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  29. package/dist/cjs/kup-manager-2fee8cf3.js +17021 -0
  30. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  31. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  32. package/dist/cjs/kup-photo-frame.cjs.entry.js +7 -9
  33. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  34. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  35. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  36. package/dist/cjs/loader.cjs.js +3 -3
  37. package/dist/cjs/{utils-e99921c1.js → utils-8470184d.js} +1 -1
  38. package/dist/collection/assets/card.js +4 -5
  39. package/dist/collection/assets/dashboard.js +113 -0
  40. package/dist/collection/assets/data-table.js +15 -79
  41. package/dist/collection/assets/form.js +179 -0
  42. package/dist/collection/assets/grid.js +17 -0
  43. package/dist/collection/assets/image-list.js +624 -0
  44. package/dist/collection/assets/index.js +16 -4
  45. package/dist/collection/assets/kupdata.js +0 -3
  46. package/dist/collection/assets/kuptooltip.js +53 -7
  47. package/dist/collection/assets/tree.js +0 -128
  48. package/dist/collection/collection-manifest.json +8 -6
  49. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +136 -130
  50. package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
  51. package/dist/collection/components/kup-box/kup-box.js +20 -137
  52. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  53. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  54. package/dist/collection/components/kup-card/kup-card.css +26 -8
  55. package/dist/collection/components/kup-card/kup-card.js +1 -2
  56. package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
  57. package/dist/collection/components/kup-combobox/kup-combobox.js +17 -14
  58. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
  59. package/dist/collection/components/kup-dashboard/kup-dashboard.css +81 -0
  60. package/dist/collection/components/kup-dashboard/kup-dashboard.js +560 -0
  61. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
  62. package/dist/collection/components/kup-data-table/kup-data-table.js +19 -136
  63. package/dist/collection/components/kup-drawer/kup-drawer.css +6 -8
  64. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
  65. package/dist/collection/components/kup-form/kup-form-declarations.js +19 -0
  66. package/dist/collection/components/kup-form/kup-form.css +86 -0
  67. package/dist/collection/components/kup-form/kup-form.js +668 -0
  68. package/dist/collection/components/kup-grid/kup-grid.js +1 -4
  69. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
  70. package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
  71. package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
  72. package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
  73. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +2 -9
  74. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +3 -5
  75. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  76. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
  77. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  78. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
  79. package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -8
  80. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
  81. package/dist/collection/components/kup-tree/kup-tree.css +10 -3
  82. package/dist/collection/components/kup-tree/kup-tree.js +73 -142
  83. package/dist/collection/f-components/f-button/f-button.js +2 -2
  84. package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
  85. package/dist/collection/f-components/f-cell/f-cell.js +41 -121
  86. package/dist/collection/f-components/f-chip/f-chip.js +2 -1
  87. package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
  88. package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
  89. package/dist/collection/managers/kup-data/kup-data.js +98 -1
  90. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
  91. package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
  92. package/dist/collection/managers/kup-language/kup-language-declarations.js +13 -0
  93. package/dist/collection/managers/kup-manager/kup-manager.js +21 -2
  94. package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
  95. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +21 -1
  96. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +53 -20
  97. package/dist/collection/types/GenericTypes.js +3 -0
  98. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +7 -11
  99. package/dist/esm/{cell-utils-f4bdbbc8.js → cell-utils-7fc84d4e.js} +3 -3
  100. package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
  101. package/dist/esm/{f-button-54a49fd8.js → f-button-2f6cc296.js} +4 -4
  102. package/dist/esm/f-cell-4428481c.js +415 -0
  103. package/dist/esm/f-checkbox-c51c4a75.js +27 -0
  104. package/dist/esm/{f-chip-a3035b4b.js → f-chip-b39eb49a.js} +6 -5
  105. package/dist/esm/{f-image-d32465e3.js → f-image-b08ebeb2.js} +2 -2
  106. package/dist/esm/f-paginator-utils-4fda6086.js +1884 -0
  107. package/dist/esm/{f-text-field-c25cc63f.js → f-text-field-184a5fb3.js} +3 -3
  108. package/dist/esm/{f-text-field-mdc-9fbbefc3.js → f-text-field-mdc-d42d3f9e.js} +2 -284
  109. package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
  110. package/dist/esm/ketchup.js +3 -3
  111. package/dist/esm/kup-accordion.entry.js +6 -6
  112. package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1775 -5685
  113. package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17113 -14789
  114. package/dist/esm/kup-calendar.entry.js +43 -35
  115. package/dist/esm/kup-cell.entry.js +9 -8
  116. package/dist/esm/kup-dash-list.entry.js +4 -4
  117. package/dist/esm/kup-dash_2.entry.js +4 -7
  118. package/dist/esm/kup-dashboard.entry.js +375 -0
  119. package/dist/esm/kup-drawer.entry.js +12 -5
  120. package/dist/esm/kup-field.entry.js +2 -2
  121. package/dist/esm/kup-form.entry.js +465 -0
  122. package/dist/esm/kup-iframe.entry.js +3 -3
  123. package/dist/esm/kup-image-list.entry.js +225 -0
  124. package/dist/esm/kup-lazy.entry.js +3 -3
  125. package/dist/esm/kup-magic-box.entry.js +4 -4
  126. package/dist/esm/kup-manager-3325b2d8.js +17000 -0
  127. package/dist/esm/kup-nav-bar.entry.js +3 -3
  128. package/dist/esm/kup-numeric-picker.entry.js +6 -6
  129. package/dist/esm/kup-photo-frame.entry.js +7 -9
  130. package/dist/esm/kup-probe.entry.js +2 -2
  131. package/dist/esm/kup-qlik.entry.js +2 -2
  132. package/dist/esm/kup-snackbar.entry.js +6 -6
  133. package/dist/esm/loader.js +3 -3
  134. package/dist/esm/polyfills/css-shim.js +1 -1
  135. package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
  136. package/dist/esm/{utils-f24319a0.js → utils-6373a07e.js} +2 -2
  137. package/dist/ketchup/ketchup.esm.js +1 -1
  138. package/dist/ketchup/p-006bc4d0.entry.js +1 -0
  139. package/dist/ketchup/p-0741da57.js +1 -0
  140. package/dist/ketchup/{p-669bde31.js → p-13e08580.js} +1 -1
  141. package/dist/ketchup/p-153697fb.entry.js +1 -0
  142. package/dist/ketchup/{p-9a61d8dc.entry.js → p-175edb62.entry.js} +1 -1
  143. package/dist/ketchup/{p-11e72a8c.entry.js → p-1db1d42b.entry.js} +1 -1
  144. package/dist/ketchup/{p-67842f1e.entry.js → p-30820f8f.entry.js} +1 -1
  145. package/dist/ketchup/p-35325834.entry.js +9 -0
  146. package/dist/ketchup/p-359e8bec.entry.js +40 -0
  147. package/dist/ketchup/{p-09d708c4.entry.js → p-3c7c92c0.entry.js} +1 -1
  148. package/dist/ketchup/p-41cf8703.entry.js +1 -0
  149. package/dist/ketchup/{p-e6709c26.entry.js → p-6127fccf.entry.js} +1 -1
  150. package/dist/ketchup/{p-203d6295.entry.js → p-6b82e4e2.entry.js} +1 -1
  151. package/dist/ketchup/p-704e60eb.js +30 -0
  152. package/dist/ketchup/{p-4f56932b.js → p-70660fe2.js} +1 -1
  153. package/dist/ketchup/{p-44192f30.entry.js → p-762c0382.entry.js} +1 -1
  154. package/dist/ketchup/{p-c58a2a81.entry.js → p-76947316.entry.js} +1 -1
  155. package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
  156. package/dist/ketchup/{p-bb8844bf.entry.js → p-8103b80a.entry.js} +1 -1
  157. package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
  158. package/dist/ketchup/p-9fa457d4.entry.js +1 -0
  159. package/dist/ketchup/{p-e8e3c9da.entry.js → p-a0ce8075.entry.js} +1 -1
  160. package/dist/ketchup/p-a203f78b.js +45 -0
  161. package/dist/ketchup/p-a804fe83.entry.js +27 -0
  162. package/dist/ketchup/{p-34748c91.js → p-ca9fd099.js} +1 -1
  163. package/dist/ketchup/p-caabb9ab.entry.js +1 -0
  164. package/dist/ketchup/p-cc3abf84.entry.js +1 -0
  165. package/dist/ketchup/p-cd5cfa7c.js +1 -0
  166. package/dist/ketchup/p-d2e76960.entry.js +1 -0
  167. package/dist/ketchup/p-d3b542b3.js +2 -0
  168. package/dist/ketchup/p-d7004ae4.js +1 -0
  169. package/dist/ketchup/{p-40f97429.js → p-d95c904b.js} +1 -1
  170. package/dist/ketchup/p-ddce3430.js +1 -0
  171. package/dist/ketchup/p-ee580b3a.entry.js +1 -0
  172. package/dist/ketchup/p-f49cb68e.js +1 -0
  173. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
  174. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
  175. package/dist/types/components/kup-box/kup-box.d.ts +0 -22
  176. package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +61 -0
  177. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +75 -0
  178. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -4
  179. package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -19
  180. package/dist/types/components/kup-form/kup-form-declarations.d.ts +48 -0
  181. package/dist/types/components/kup-form/kup-form.d.ts +68 -0
  182. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
  183. package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
  184. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
  185. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
  186. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  187. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  188. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
  189. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +3 -5
  190. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -24
  191. package/dist/types/components.d.ts +512 -369
  192. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
  193. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  194. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  195. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
  196. package/dist/types/managers/kup-data/kup-data.d.ts +3 -0
  197. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +13 -1
  198. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +4 -0
  199. package/dist/types/managers/kup-manager/kup-manager.d.ts +12 -0
  200. package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
  201. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +3 -3
  202. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +17 -6
  203. package/dist/types/types/GenericTypes.d.ts +3 -0
  204. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
  205. package/package.json +15 -14
  206. package/dist/cjs/f-cell-8351cb84.js +0 -653
  207. package/dist/cjs/kup-manager-5c03da64.js +0 -8795
  208. package/dist/collection/assets/tooltip.js +0 -73
  209. package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
  210. package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
  211. package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
  212. package/dist/collection/utils/helpers.js +0 -38
  213. package/dist/esm/f-cell-d5dac50b.js +0 -650
  214. package/dist/esm/kup-manager-9316a184.js +0 -8778
  215. package/dist/ketchup/p-12773ca8.js +0 -9
  216. package/dist/ketchup/p-34b74425.js +0 -1
  217. package/dist/ketchup/p-4173422f.entry.js +0 -1
  218. package/dist/ketchup/p-41741c28.entry.js +0 -1
  219. package/dist/ketchup/p-44f8da2a.js +0 -1
  220. package/dist/ketchup/p-7a74ad17.js +0 -1
  221. package/dist/ketchup/p-7ba8fa4a.entry.js +0 -39
  222. package/dist/ketchup/p-7de0d7e1.js +0 -1
  223. package/dist/ketchup/p-8418e8fa.entry.js +0 -1
  224. package/dist/ketchup/p-96bf19aa.entry.js +0 -1
  225. package/dist/ketchup/p-b0ddcce9.entry.js +0 -9
  226. package/dist/ketchup/p-b6c21223.entry.js +0 -27
  227. package/dist/ketchup/p-ca3d585b.entry.js +0 -1
  228. package/dist/ketchup/p-ecb7069b.js +0 -135
  229. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
  230. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
  231. package/dist/types/utils/helpers.d.ts +0 -4
@@ -5,7 +5,6 @@ import { getColumnByName } from '../../utils/cell-utils';
5
5
  import { filterRows, sortRows, paginateRows, } from '../kup-data-table/kup-data-table-helper';
6
6
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
7
7
  import { KupBoxState } from './kup-box-state';
8
- import { setTooltip, unsetTooltip } from '../../utils/helpers';
9
8
  import { getProps, identify, setProps } from '../../utils/utils';
10
9
  import { FImage } from '../../f-components/f-image/f-image';
11
10
  import { FChip } from '../../f-components/f-chip/f-chip';
@@ -18,6 +17,7 @@ import { FCell } from '../../f-components/f-cell/f-cell';
18
17
  import { FPaginator } from '../../f-components/f-paginator/f-paginator';
19
18
  import { FPaginatorMode } from '../../f-components/f-paginator/f-paginator-declarations';
20
19
  import { pageChange, rowsPerPageChange, } from '../../f-components/f-paginator/f-paginator-utils';
20
+ import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
21
21
  export class KupBox {
22
22
  constructor() {
23
23
  /*-------------------------------------------------*/
@@ -123,11 +123,6 @@ export class KupBox {
123
123
  * @default true
124
124
  */
125
125
  this.showSelection = true;
126
- /**
127
- * If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.
128
- * @default true
129
- */
130
- this.showTooltipOnRightClick = true;
131
126
  /**
132
127
  * Enable sorting
133
128
  * @default false
@@ -139,11 +134,6 @@ export class KupBox {
139
134
  * @default false
140
135
  */
141
136
  this.swipeDisabled = false;
142
- /**
143
- * Enable show tooltip
144
- * @default true
145
- */
146
- this.tooltipEnabled = true;
147
137
  /*-------------------------------------------------*/
148
138
  /* I n t e r n a l V a r i a b l e s */
149
139
  /*-------------------------------------------------*/
@@ -386,7 +376,7 @@ export class KupBox {
386
376
  });
387
377
  }
388
378
  }
389
- getEventDetails(el) {
379
+ getEventDetails(el, e) {
390
380
  let boxObject = null;
391
381
  let cell = null;
392
382
  let row = null;
@@ -402,16 +392,14 @@ export class KupBox {
402
392
  }
403
393
  return {
404
394
  boxObject: boxObject ? boxObject : null,
405
- row: row ? row : null,
406
395
  column: column ? column : null,
407
396
  cell: cell ? cell : null,
397
+ originalEvent: e,
398
+ row: row ? row : null,
408
399
  };
409
400
  }
410
401
  contextMenuHandler(e) {
411
- const details = this.getEventDetails(e.target);
412
- if (this.showTooltipOnRightClick && details.boxObject && details.cell) {
413
- setTooltip(e, details.row.id, details.column.name, details.cell, this.tooltip);
414
- }
402
+ const details = this.getEventDetails(e.target, e);
415
403
  return details;
416
404
  }
417
405
  /**
@@ -923,33 +911,14 @@ export class KupBox {
923
911
  column = this.data.columns.find((x) => x.name === boxObject.column);
924
912
  }
925
913
  const cell = row.cells[boxObject.column];
926
- let _hasTooltip = false;
927
914
  let title = undefined;
928
- if (_hasTooltip) {
915
+ if (cell && !this.kupManager.objects.isEmptyKupObj(cell.obj)) {
929
916
  classObj['is-obj'] = true;
930
917
  if (this.kupManager.debug.isDebug()) {
931
918
  title =
932
919
  cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
933
920
  }
934
921
  }
935
- let tipEvents = null;
936
- if (_hasTooltip) {
937
- if (!this.showTooltipOnRightClick) {
938
- tipEvents = {
939
- onMouseEnter: (ev) => {
940
- if (_hasTooltip) {
941
- setTooltip(ev, row.id, boxObject.column, cell, this.tooltip);
942
- }
943
- else if (!_hasTooltip) {
944
- unsetTooltip(this.tooltip);
945
- }
946
- },
947
- onMouseLeave: () => {
948
- unsetTooltip(this.tooltip);
949
- },
950
- };
951
- }
952
- }
953
922
  const cellProps = {
954
923
  cell: cell,
955
924
  column: column,
@@ -960,7 +929,7 @@ export class KupBox {
960
929
  setSizes: true,
961
930
  shape: boxObject.shape,
962
931
  };
963
- return (h("div", Object.assign({ "data-cell": cell, "data-row": row, "data-column": boxObject.column, class: classObj, style: boStyle, title: title }, tipEvents), cell && column ? (h(FCell, Object.assign({}, cellProps))) : (h("span", null, boxObject.value))));
932
+ return (h("div", { "data-cell": cell, "data-row": row, "data-column": boxObject.column, class: classObj, style: boStyle, title: title }, cell && column ? (h(FCell, Object.assign({}, cellProps))) : (h("span", null, boxObject.value))));
964
933
  }
965
934
  /**
966
935
  * Prepares the kanban sections by sorting the boxlist's data.
@@ -971,7 +940,9 @@ export class KupBox {
971
940
  if (!this.kanban.columns || this.kanban.columns.length === 0) {
972
941
  this.kupManager.debug.logMessage(this, 'No columns to group by detected.', KupDebugCategory.ERROR);
973
942
  return {
974
- jsx: (h("p", { id: "empty-data-message" }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA))),
943
+ jsx: (h("div", { id: "empty-data-message", class: "box-wrapper" },
944
+ h("div", { ref: (el) => this.rowsRefs.push(el) }),
945
+ this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA))),
975
946
  style: { 'grid-template-columns': `repeat(1, 1fr)` },
976
947
  };
977
948
  }
@@ -1053,14 +1024,6 @@ export class KupBox {
1053
1024
  },
1054
1025
  };
1055
1026
  }
1056
- renderTooltip() {
1057
- if (this.tooltipEnabled == false) {
1058
- return null;
1059
- }
1060
- return (h("kup-tooltip", { class: "box-tooltip", owner: this.rootElement.tagName, loadTimeout: this.showTooltipOnRightClick == true
1061
- ? 0
1062
- : this.tooltipLoadTimeout, detailTimeout: this.tooltipDetailTimeout, ref: (el) => (this.tooltip = el) }));
1063
- }
1064
1027
  didLoadInteractables() {
1065
1028
  this.interactableTouch.push(this.boxContainer);
1066
1029
  const tapCb = (e) => {
@@ -1069,7 +1032,6 @@ export class KupBox {
1069
1032
  return;
1070
1033
  }
1071
1034
  switch (e.button) {
1072
- // right click
1073
1035
  case 2:
1074
1036
  this.kupBoxContextMenu.emit({
1075
1037
  comp: this,
@@ -1195,6 +1157,13 @@ export class KupBox {
1195
1157
  this.kupManager.debug.logRender(this, false);
1196
1158
  }
1197
1159
  componentDidRender() {
1160
+ const root = this.rootElement.shadowRoot;
1161
+ if (root) {
1162
+ const fs = root.querySelectorAll('.f-text-field');
1163
+ for (let index = 0; index < fs.length; index++) {
1164
+ FTextFieldMDC(fs[index]);
1165
+ }
1166
+ }
1198
1167
  this.checkScrollOnHover();
1199
1168
  this.persistState();
1200
1169
  this.didRenderInteractables();
@@ -1246,7 +1215,8 @@ export class KupBox {
1246
1215
  let boxContent = null;
1247
1216
  let containerStyle = {};
1248
1217
  if (this.rows.length === 0) {
1249
- boxContent = (h("p", { id: "empty-data-message" }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
1218
+ boxContent = (h("div", { id: "empty-data-message", class: "box-wrapper" },
1219
+ h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA))));
1250
1220
  containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
1251
1221
  }
1252
1222
  else if (isKanban) {
@@ -1266,7 +1236,6 @@ export class KupBox {
1266
1236
  boxContent.push(this.renderRow(rows[cnt++]));
1267
1237
  }
1268
1238
  }
1269
- const tooltip = this.renderTooltip();
1270
1239
  return (h(Host, null,
1271
1240
  h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
1272
1241
  h("div", { id: componentWrapperId },
@@ -1276,12 +1245,8 @@ export class KupBox {
1276
1245
  paginator,
1277
1246
  h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
1278
1247
  e.preventDefault();
1279
- }, onMouseLeave: (ev) => {
1280
- ev.stopPropagation();
1281
- unsetTooltip(this.tooltip);
1282
1248
  }, ref: (el) => (this.boxContainer =
1283
- el) }, boxContent),
1284
- tooltip))));
1249
+ el) }, boxContent)))));
1285
1250
  }
1286
1251
  disconnectedCallback() {
1287
1252
  this.kupManager.interact.unregister(this.interactableDrag.concat(this.interactableDrop));
@@ -1776,27 +1741,6 @@ export class KupBox {
1776
1741
  "reflect": false,
1777
1742
  "defaultValue": "true"
1778
1743
  },
1779
- "showTooltipOnRightClick": {
1780
- "type": "boolean",
1781
- "mutable": false,
1782
- "complexType": {
1783
- "original": "boolean",
1784
- "resolved": "boolean",
1785
- "references": {}
1786
- },
1787
- "required": false,
1788
- "optional": false,
1789
- "docs": {
1790
- "tags": [{
1791
- "name": "default",
1792
- "text": "true"
1793
- }],
1794
- "text": "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver."
1795
- },
1796
- "attribute": "show-tooltip-on-right-click",
1797
- "reflect": false,
1798
- "defaultValue": "true"
1799
- },
1800
1744
  "sortBy": {
1801
1745
  "type": "string",
1802
1746
  "mutable": true,
@@ -1896,67 +1840,6 @@ export class KupBox {
1896
1840
  "attribute": "swipe-disabled",
1897
1841
  "reflect": false,
1898
1842
  "defaultValue": "false"
1899
- },
1900
- "tooltipDetailTimeout": {
1901
- "type": "number",
1902
- "mutable": false,
1903
- "complexType": {
1904
- "original": "number",
1905
- "resolved": "number",
1906
- "references": {}
1907
- },
1908
- "required": false,
1909
- "optional": false,
1910
- "docs": {
1911
- "tags": [{
1912
- "name": "default",
1913
- "text": "undefined"
1914
- }],
1915
- "text": "Defines the timeout for tooltip detail"
1916
- },
1917
- "attribute": "tooltip-detail-timeout",
1918
- "reflect": false
1919
- },
1920
- "tooltipEnabled": {
1921
- "type": "boolean",
1922
- "mutable": false,
1923
- "complexType": {
1924
- "original": "boolean",
1925
- "resolved": "boolean",
1926
- "references": {}
1927
- },
1928
- "required": false,
1929
- "optional": false,
1930
- "docs": {
1931
- "tags": [{
1932
- "name": "default",
1933
- "text": "true"
1934
- }],
1935
- "text": "Enable show tooltip"
1936
- },
1937
- "attribute": "tooltip-enabled",
1938
- "reflect": false,
1939
- "defaultValue": "true"
1940
- },
1941
- "tooltipLoadTimeout": {
1942
- "type": "number",
1943
- "mutable": false,
1944
- "complexType": {
1945
- "original": "number",
1946
- "resolved": "number",
1947
- "references": {}
1948
- },
1949
- "required": false,
1950
- "optional": false,
1951
- "docs": {
1952
- "tags": [{
1953
- "name": "default",
1954
- "text": "undefined"
1955
- }],
1956
- "text": "Defines the timeout for tooltip load"
1957
- },
1958
- "attribute": "tooltip-load-timeout",
1959
- "reflect": false
1960
1843
  }
1961
1844
  }; }
1962
1845
  static get states() { return {
@@ -83,7 +83,7 @@ function prepTimeArea(component) {
83
83
  function onKupClockItemClick(e, component, value) {
84
84
  if (e != null) {
85
85
  if (value == null) {
86
- value = e.detail.selected.value;
86
+ value = e.detail.selected.id;
87
87
  }
88
88
  }
89
89
  setClockValueSelected(component, value);
@@ -119,8 +119,7 @@ function typeColumn(e, component) {
119
119
  });
120
120
  }
121
121
  function listClick(e, options) {
122
- const value = e.detail.selected.value;
123
- switch (value) {
122
+ switch (e.detail.selected.id) {
124
123
  case KupLanguageGeneric.MERGE:
125
124
  if (options.mergeCb) {
126
125
  options.mergeCb();
@@ -2282,6 +2282,7 @@
2282
2282
  margin: 0 0.5em 0 0;
2283
2283
  }
2284
2284
  .standard-layout-14 .section-1 .title {
2285
+ --kup-button-font-size: 0.75em;
2285
2286
  font-size: 1.25em;
2286
2287
  margin-top: -0.5em;
2287
2288
  padding: 0 0.25em 0.25em;
@@ -2380,15 +2381,16 @@
2380
2381
  }
2381
2382
 
2382
2383
  .standard-layout-15 {
2383
- outline: none;
2384
- display: block;
2385
- font-size: var(--kup-font-size);
2386
2384
  background: var(--kup-background-color);
2387
- color: var(--kup-text-color);
2388
- box-shadow: var(--kup-box-shadow);
2389
2385
  border-radius: 3px;
2386
+ box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
2387
+ color: var(--kup-text-color);
2388
+ display: block;
2389
+ font-size: var(--kup-font-size);
2390
+ outline: none;
2390
2391
  }
2391
2392
  .standard-layout-15 .section-1 {
2393
+ --kup-button-font-size: 0.75em;
2392
2394
  box-sizing: border-box;
2393
2395
  display: flex;
2394
2396
  padding: 1em;
@@ -2405,13 +2407,19 @@
2405
2407
  margin: 0 0.5em 0 0;
2406
2408
  }
2407
2409
  .standard-layout-15 .section-1 .title {
2410
+ align-items: center;
2411
+ display: flex;
2408
2412
  font-size: 1.25em;
2413
+ font-weight: 600;
2409
2414
  padding: 0 0.25em 0.25em;
2410
2415
  text-align: left;
2411
2416
  }
2412
2417
  .standard-layout-15 .section-1 .title .label {
2413
2418
  cursor: pointer;
2414
2419
  padding-right: 0.25em;
2420
+ overflow: hidden;
2421
+ text-overflow: ellipsis;
2422
+ white-space: nowrap;
2415
2423
  }
2416
2424
  .standard-layout-15 .section-1 .title .label:hover {
2417
2425
  text-decoration: underline;
@@ -2428,6 +2436,7 @@
2428
2436
  width: auto;
2429
2437
  }
2430
2438
  .standard-layout-15 .section-1 .info .value {
2439
+ font-weight: 600;
2431
2440
  width: 100%;
2432
2441
  }
2433
2442
  .standard-layout-15 .section-2 {
@@ -2441,9 +2450,11 @@
2441
2450
  .standard-layout-15 .section-2 .info {
2442
2451
  box-sizing: border-box;
2443
2452
  height: 100%;
2453
+ overflow: auto;
2444
2454
  padding: 1.25em;
2445
2455
  }
2446
2456
  .standard-layout-15 .section-2 .detail-row {
2457
+ align-items: center;
2447
2458
  display: flex;
2448
2459
  justify-content: space-between;
2449
2460
  }
@@ -2454,11 +2465,19 @@
2454
2465
  color: rgba(var(--kup-text-color-rgb), 0.5);
2455
2466
  margin-top: 0.175em;
2456
2467
  max-width: 320px;
2468
+ padding-right: 1.25em;
2469
+ white-space: nowrap;
2470
+ overflow: hidden;
2471
+ text-overflow: ellipsis;
2457
2472
  }
2458
2473
  .standard-layout-15 .section-2 .detail-row__value {
2459
2474
  color: var(--kup-text-color);
2460
- font-size: 120%;
2475
+ font-size: 105%;
2476
+ font-weight: 600;
2461
2477
  max-width: 320px;
2478
+ white-space: nowrap;
2479
+ overflow: hidden;
2480
+ text-overflow: ellipsis;
2462
2481
  }
2463
2482
  .standard-layout-15 .section-2 kup-tree {
2464
2483
  text-align: left;
@@ -2477,8 +2496,7 @@
2477
2496
  .standard-layout-15 #open-in-new,
2478
2497
  .standard-layout-15 #search,
2479
2498
  .standard-layout-15 #new {
2480
- margin: 0;
2481
- display: inline-flex;
2499
+ margin: 0 0 0.5em 0;
2482
2500
  }
2483
2501
 
2484
2502
  /**
@@ -83,7 +83,7 @@ export class KupCard {
83
83
  this.scalingActive = false;
84
84
  this.componentWrapper = null;
85
85
  this.colorPicker = null;
86
- this.firstColorPickerChange = null;
86
+ this.firstColorPickerChange = true;
87
87
  }
88
88
  onKupClick(id, value) {
89
89
  this.kupClick.emit({
@@ -256,7 +256,6 @@ export class KupCard {
256
256
  const color = colorPickerOptions
257
257
  ? colorPickerOptions.initialValue
258
258
  : null;
259
- this.firstColorPickerChange = true;
260
259
  if (!this.colorPicker) {
261
260
  this.colorPicker = new Picker({
262
261
  alpha: false,
@@ -6,6 +6,7 @@ import { FChipType } from '../../../f-components/f-chip/f-chip-declarations';
6
6
  import { KupCardCSSClasses, KupCardIds } from '../kup-card-declarations';
7
7
  import { KupColumnMenuIds } from '../../../utils/kup-column-menu/kup-column-menu-declarations';
8
8
  import { KupThemeColorValues } from '../../../managers/kup-theme/kup-theme-declarations';
9
+ const dom = document.documentElement;
9
10
  /**
10
11
  * 1st standard card layout, inspired by Material Design.
11
12
  * @param {KupCard} component - Card component.
@@ -592,7 +593,7 @@ export function create14(component) {
592
593
  if (tabbarArray[0] && tabbarArray[0].data) {
593
594
  for (let index = 0; index < tabbarArray[0].data.length; index++) {
594
595
  const tab = tabbarArray[0].data[index];
595
- tabsValues.push(tab.value);
596
+ tabsValues.push(tab.id);
596
597
  if (tab.active) {
597
598
  visibleView = index + 1;
598
599
  }
@@ -729,11 +730,19 @@ export function create15(component) {
729
730
  }
730
731
  // Setting up buttons.
731
732
  const buttonsIds = [];
733
+ const genericButtons = [];
734
+ const isReservedID = (id) => {
735
+ return (id === KupColumnMenuIds.BUTTON_OPEN_IN_NEW ||
736
+ id === KupColumnMenuIds.BUTTON_SEARCH);
737
+ };
732
738
  for (let index = 0; index < buttonArray.length; index++) {
733
739
  const button = buttonArray[index];
734
740
  if (button['id']) {
735
741
  buttonsIds.push(button['id']);
736
742
  }
743
+ if (!isReservedID(button['id'])) {
744
+ genericButtons.push(button);
745
+ }
737
746
  }
738
747
  return (h("div", { class: `standard-layout-${component.layoutNumber}` },
739
748
  h("div", { class: "section-1" },
@@ -757,9 +766,8 @@ export function create15(component) {
757
766
  h("div", { class: "info" }, sectionTwoDetails.length > 0
758
767
  ? sectionTwoDetails
759
768
  : null)),
760
- h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex + 1}` },
761
- h("kup-tree", Object.assign({ class: "kup-full-width" }, treeArray[0])))),
762
- buttonArray.length > 0 ? (h("div", { class: "section-3" },
763
- compList(buttonArray.slice(0, 4), 'button'),
764
- h("kup-button", { id: "view-selector", icon: "menu" }))) : null));
769
+ h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex + 1}` }, treeArray[0] ? (h("kup-tree", Object.assign({ class: "kup-full-width" }, treeArray[0]))) : null)),
770
+ genericButtons.length > 0 ? (h("div", { class: "section-3" },
771
+ compList(genericButtons.slice(0, 5), 'button'),
772
+ h("kup-button", { title: dom.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" }))) : null));
765
773
  }
@@ -88,7 +88,7 @@ export class KupCombobox {
88
88
  });
89
89
  }
90
90
  onKupChange(value) {
91
- __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, value, true);
91
+ __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
92
92
  this.kupChange.emit({
93
93
  comp: this,
94
94
  id: this.rootElement.id,
@@ -121,14 +121,14 @@ export class KupCombobox {
121
121
  });
122
122
  }
123
123
  onKupInput() {
124
- __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value, false);
124
+ __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value, false);
125
+ __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
125
126
  this.kupInput.emit({
126
127
  comp: this,
127
128
  id: this.rootElement.id,
128
129
  value: this.value,
129
130
  inputValue: __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value,
130
131
  });
131
- __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
132
132
  }
133
133
  onKupIconClick() {
134
134
  if (__classPrivateFieldGet(this, _KupCombobox_textfieldWrapper, "f").classList.contains('toggled')) {
@@ -146,7 +146,7 @@ export class KupCombobox {
146
146
  });
147
147
  }
148
148
  onKupItemClick(e) {
149
- this.onKupChange(e.detail.selected.value);
149
+ this.onKupChange(e.detail.selected.id);
150
150
  __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
151
151
  if (__classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f")) {
152
152
  __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").focus();
@@ -254,7 +254,7 @@ export class KupCombobox {
254
254
  * @param {string} value - Value to be set.
255
255
  */
256
256
  async setValue(value) {
257
- __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, value, true);
257
+ __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
258
258
  }
259
259
  /*-------------------------------------------------*/
260
260
  /* L i f e c y c l e H o o k s */
@@ -271,7 +271,7 @@ export class KupCombobox {
271
271
  }
272
272
  }
273
273
  componentDidLoad() {
274
- __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, undefined, this.value, true);
274
+ __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, this.value, true);
275
275
  __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").debug.logLoad(this, true);
276
276
  }
277
277
  componentWillRender() {
@@ -297,7 +297,8 @@ export class KupCombobox {
297
297
  h("div", { id: componentWrapperId, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") },
298
298
  h(FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
299
299
  ? KupThemeIconValues.DROPDOWN
300
- : null, readOnly: this.isSelect, trailingIcon: true, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }), __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)))));
300
+ : null, readOnly: this.isSelect, trailingIcon: true, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))),
301
+ __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
301
302
  }
302
303
  disconnectedCallback() {
303
304
  if (__classPrivateFieldGet(this, _KupCombobox_listEl, "f")) {
@@ -808,20 +809,22 @@ _KupCombobox_kupManager = new WeakMap(), _KupCombobox_elStyle = new WeakMap(), _
808
809
  __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").removeClickCallback(__classPrivateFieldGet(this, _KupCombobox_clickCb, "f"));
809
810
  }, _KupCombobox_isListOpened = function _KupCombobox_isListOpened() {
810
811
  return __classPrivateFieldGet(this, _KupCombobox_listEl, "f").menuVisible == true;
811
- }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(e, idIn, setValue) {
812
- let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode, e);
813
- if (ret.exists && setValue) {
814
- this.value = ret.value;
815
- this.displayedValue = ret.displayedValue;
812
+ }, _KupCombobox_consistencyCheck = function _KupCombobox_consistencyCheck(idIn, setValue) {
813
+ let ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupCombobox_listEl, "f"), this.selectMode, this.displayMode);
814
+ if (ret.exists) {
815
+ if (setValue) {
816
+ this.value = ret.value;
817
+ this.displayedValue = ret.displayedValue;
818
+ }
816
819
  if (__classPrivateFieldGet(this, _KupCombobox_listEl, "f") != null) {
817
- __classPrivateFieldGet(this, _KupCombobox_listEl, "f").filter = this.displayedValue;
820
+ __classPrivateFieldGet(this, _KupCombobox_listEl, "f").filter = ret.value;
818
821
  }
819
822
  }
820
823
  else {
821
824
  this.value = idIn;
822
825
  this.displayedValue = idIn;
823
826
  if (__classPrivateFieldGet(this, _KupCombobox_listEl, "f") != null) {
824
- __classPrivateFieldGet(this, _KupCombobox_listEl, "f").filter = idIn;
827
+ __classPrivateFieldGet(this, _KupCombobox_listEl, "f").filter = ret.value;
825
828
  }
826
829
  }
827
830
  return ret;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Props of the kup-dashboard component.
3
+ * Used to export every prop in an object.
4
+ */
5
+ export var KupDashboardProps;
6
+ (function (KupDashboardProps) {
7
+ KupDashboardProps["customStyle"] = "Custom style of the component.";
8
+ KupDashboardProps["data"] = "The data of the component.";
9
+ KupDashboardProps["enableDesign"] = "When set to true, the component is in design mode and it is draggable.";
10
+ })(KupDashboardProps || (KupDashboardProps = {}));
@@ -0,0 +1,81 @@
1
+ :host {
2
+ width: 100%;
3
+ height: 100%;
4
+ }
5
+
6
+ #kup-component {
7
+ height: 100%;
8
+ }
9
+
10
+ .header {
11
+ display: flex;
12
+ flex-direction: row;
13
+ justify-content: center;
14
+ }
15
+ .header > * {
16
+ margin-left: 0.5em;
17
+ }
18
+
19
+ .form {
20
+ display: grid;
21
+ height: 100%;
22
+ }
23
+
24
+ .form-dropzone {
25
+ padding: 1em;
26
+ grid-gap: 0.5em;
27
+ border: 1px solid var(--kup-primary-color);
28
+ }
29
+
30
+ .section {
31
+ display: flex;
32
+ flex-direction: column;
33
+ overflow: auto;
34
+ }
35
+
36
+ .section-header {
37
+ display: flex;
38
+ flex-direction: column;
39
+ }
40
+ .section-header > * {
41
+ width: 100%;
42
+ display: flex;
43
+ flex-direction: row;
44
+ }
45
+ .section-header > * > .section-header-actions {
46
+ display: flex;
47
+ justify-content: end;
48
+ }
49
+ .section-header > * > .section-header-actions > * {
50
+ margin-top: auto;
51
+ margin-bottom: auto;
52
+ }
53
+
54
+ .section-body {
55
+ display: grid;
56
+ }
57
+
58
+ .section-dropzone {
59
+ border: 1px solid var(--kup-primary-color);
60
+ }
61
+
62
+ .section-draggable {
63
+ border: 1px solid var(--kup-secondary-color);
64
+ padding: 1em;
65
+ }
66
+
67
+ .component {
68
+ height: fit-content;
69
+ padding: 1em;
70
+ margin: 0.5em;
71
+ }
72
+
73
+ .layout-row {
74
+ grid-auto-flow: column;
75
+ grid-template-columns: min-content;
76
+ }
77
+
78
+ .layout-column {
79
+ grid-auto-flow: row;
80
+ grid-template-rows: min-content;
81
+ }