@sme.up/ketchup 6.5.0 → 6.7.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 (209) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-4e2a0bb6.js → f-button-bf76ab95.js} +2 -2
  3. package/dist/cjs/{f-cell-1fc8a8b6.js → f-cell-b7a1524a.js} +25 -23
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-7867f17b.js → f-chip-a5e100b1.js} +3 -3
  6. package/dist/cjs/{f-image-6b7a6168.js → f-image-d80a2749.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-b7712403.js → f-paginator-utils-c70812fe.js} +3 -5
  8. package/dist/cjs/{f-text-field-153e827c.js → f-text-field-48b8bb16.js} +2 -2
  9. package/dist/cjs/{index-31125378.js → index-ffdb46f6.js} +423 -252
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +433 -163
  13. package/dist/cjs/kup-box.cjs.entry.js +27 -16
  14. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +19 -7
  22. package/dist/cjs/kup-form.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-image-list.cjs.entry.js +9 -9
  25. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  27. package/dist/cjs/{kup-manager-cfe2f36e.js → kup-manager-0e38bf48.js} +39 -26
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/collection/assets/box.js +9 -6
  36. package/dist/collection/assets/card.js +12 -2
  37. package/dist/collection/collection-manifest.json +3 -3
  38. package/dist/collection/components/kup-accordion/kup-accordion.js +239 -234
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +545 -530
  40. package/dist/collection/components/kup-badge/kup-badge.js +176 -170
  41. package/dist/collection/components/kup-box/kup-box.js +907 -913
  42. package/dist/collection/components/kup-button/kup-button.css +1 -0
  43. package/dist/collection/components/kup-button/kup-button.js +379 -370
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +251 -240
  45. package/dist/collection/components/kup-calendar/kup-calendar.js +301 -300
  46. package/dist/collection/components/kup-card/box/kup-card-box.js +115 -0
  47. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
  48. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
  49. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  50. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
  51. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  52. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  53. package/dist/collection/components/kup-card/kup-card-declarations.js +2 -0
  54. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  55. package/dist/collection/components/kup-card/kup-card.css +140 -20
  56. package/dist/collection/components/kup-card/kup-card.js +352 -340
  57. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  58. package/dist/collection/components/kup-card/standard/kup-card-standard.js +96 -304
  59. package/dist/collection/components/kup-cell/kup-cell.js +221 -216
  60. package/dist/collection/components/kup-chart/kup-chart.js +547 -537
  61. package/dist/collection/components/kup-checkbox/kup-checkbox.js +275 -266
  62. package/dist/collection/components/kup-chip/kup-chip.js +240 -231
  63. package/dist/collection/components/kup-color-picker/kup-color-picker.js +274 -264
  64. package/dist/collection/components/kup-combobox/kup-combobox.js +458 -440
  65. package/dist/collection/components/kup-dash/kup-dash.js +110 -158
  66. package/dist/collection/components/kup-dash-list/kup-dash-list.js +210 -213
  67. package/dist/collection/components/kup-dashboard/kup-dashboard.js +196 -203
  68. package/dist/collection/components/kup-data-table/kup-data-table.js +1932 -1838
  69. package/dist/collection/components/kup-date-picker/kup-date-picker.js +408 -394
  70. package/dist/collection/components/kup-drawer/kup-drawer.js +244 -236
  71. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +474 -464
  72. package/dist/collection/components/kup-echart/kup-echart.js +436 -423
  73. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +1 -0
  74. package/dist/collection/components/kup-family-tree/kup-family-tree.js +420 -398
  75. package/dist/collection/components/kup-form/kup-form.js +223 -225
  76. package/dist/collection/components/kup-gauge/kup-gauge.js +445 -445
  77. package/dist/collection/components/kup-grid/kup-grid.js +156 -153
  78. package/dist/collection/components/kup-iframe/kup-iframe.js +181 -173
  79. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  80. package/dist/collection/components/kup-image/kup-image.js +300 -295
  81. package/dist/collection/components/kup-image-list/kup-image-list.js +292 -285
  82. package/dist/collection/components/kup-lazy/kup-lazy.js +253 -253
  83. package/dist/collection/components/kup-list/kup-list.js +541 -504
  84. package/dist/collection/components/kup-magic-box/kup-magic-box.js +145 -145
  85. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +190 -184
  86. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +490 -478
  87. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +254 -242
  88. package/dist/collection/components/kup-probe/kup-probe.js +87 -83
  89. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +237 -241
  90. package/dist/collection/components/kup-qlik/kup-qlik.js +178 -170
  91. package/dist/collection/components/kup-radio/kup-radio.js +258 -255
  92. package/dist/collection/components/kup-rating/kup-rating.js +208 -197
  93. package/dist/collection/components/kup-snackbar/kup-snackbar.js +249 -246
  94. package/dist/collection/components/kup-spinner/kup-spinner.js +274 -269
  95. package/dist/collection/components/kup-switch/kup-switch.js +255 -246
  96. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +265 -224
  97. package/dist/collection/components/kup-text-field/kup-text-field.js +814 -805
  98. package/dist/collection/components/kup-time-picker/kup-time-picker.js +464 -450
  99. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -2
  100. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  101. package/dist/collection/components/kup-tree/kup-tree.js +1134 -1133
  102. package/dist/collection/f-components/f-button/f-button.js +11 -20
  103. package/dist/collection/f-components/f-cell/f-cell.js +23 -23
  104. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  105. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  106. package/dist/collection/f-components/f-image/f-image.js +1 -3
  107. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  108. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  109. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  110. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  111. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  112. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  113. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  114. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  115. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  116. package/dist/esm/{f-button-a24e43dd.js → f-button-e79f7594.js} +2 -2
  117. package/dist/esm/{f-cell-ebbb0c06.js → f-cell-9400374e.js} +25 -23
  118. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  119. package/dist/esm/{f-chip-e2c38ba8.js → f-chip-bf740287.js} +3 -3
  120. package/dist/esm/{f-image-7e02e88f.js → f-image-ab3dc8cb.js} +2 -2
  121. package/dist/esm/{f-paginator-utils-e6d2638f.js → f-paginator-utils-6909e43b.js} +3 -5
  122. package/dist/esm/{f-text-field-8438a278.js → f-text-field-4841dfea.js} +2 -2
  123. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  124. package/dist/esm/ketchup.js +3 -3
  125. package/dist/esm/kup-accordion.entry.js +3 -3
  126. package/dist/esm/kup-autocomplete_25.entry.js +433 -163
  127. package/dist/esm/kup-box.entry.js +27 -16
  128. package/dist/esm/kup-calendar.entry.js +5 -5
  129. package/dist/esm/kup-cell.entry.js +7 -7
  130. package/dist/esm/kup-dash-list.entry.js +2 -2
  131. package/dist/esm/kup-dash_2.entry.js +2 -2
  132. package/dist/esm/kup-dashboard.entry.js +6 -6
  133. package/dist/esm/kup-drawer.entry.js +2 -2
  134. package/dist/esm/kup-echart.entry.js +2 -2
  135. package/dist/esm/kup-family-tree.entry.js +19 -7
  136. package/dist/esm/kup-form.entry.js +8 -8
  137. package/dist/esm/kup-iframe.entry.js +2 -2
  138. package/dist/esm/kup-image-list.entry.js +9 -9
  139. package/dist/esm/kup-lazy.entry.js +2 -2
  140. package/dist/esm/kup-magic-box.entry.js +3 -3
  141. package/dist/esm/{kup-manager-7c27e90e.js → kup-manager-c54e6df5.js} +22 -9
  142. package/dist/esm/kup-nav-bar.entry.js +2 -2
  143. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  144. package/dist/esm/kup-photo-frame.entry.js +2 -2
  145. package/dist/esm/kup-probe.entry.js +2 -2
  146. package/dist/esm/kup-qlik.entry.js +2 -2
  147. package/dist/esm/kup-snackbar.entry.js +4 -4
  148. package/dist/esm/loader.js +3 -3
  149. package/dist/esm/polyfills/css-shim.js +1 -1
  150. package/dist/ketchup/ketchup.esm.js +1 -1
  151. package/dist/ketchup/{p-191096ff.entry.js → p-182b869e.entry.js} +1 -1
  152. package/dist/ketchup/p-1dfd2a51.js +30 -0
  153. package/dist/ketchup/{p-b502b91b.entry.js → p-1f5c7f21.entry.js} +1 -1
  154. package/dist/ketchup/p-22ec1ba0.entry.js +9 -0
  155. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  156. package/dist/ketchup/{p-26acb448.js → p-25bf0cb6.js} +1 -1
  157. package/dist/ketchup/{p-601a50db.entry.js → p-260ff835.entry.js} +1 -1
  158. package/dist/ketchup/{p-5a703573.entry.js → p-2e184b57.entry.js} +1 -1
  159. package/dist/ketchup/{p-45415b72.entry.js → p-30a63b85.entry.js} +1 -1
  160. package/dist/ketchup/{p-cc663bad.entry.js → p-313e376b.entry.js} +1 -1
  161. package/dist/ketchup/{p-e0ed3fd7.entry.js → p-41620707.entry.js} +1 -1
  162. package/dist/ketchup/{p-25875aa1.entry.js → p-4a0ccf18.entry.js} +1 -1
  163. package/dist/ketchup/{p-3decc8e4.js → p-4f0d3062.js} +1 -1
  164. package/dist/ketchup/p-4fdb684f.js +2 -0
  165. package/dist/ketchup/{p-52590a90.entry.js → p-53d3ae80.entry.js} +1 -1
  166. package/dist/ketchup/{p-92595296.js → p-5bea2971.js} +1 -1
  167. package/dist/ketchup/{p-a782ebd1.entry.js → p-60fa0ccf.entry.js} +1 -1
  168. package/dist/ketchup/p-6333388c.js +1 -0
  169. package/dist/ketchup/{p-2003a841.entry.js → p-6bd57787.entry.js} +1 -1
  170. package/dist/ketchup/p-758d03f4.entry.js +1 -0
  171. package/dist/ketchup/{p-2f009c42.entry.js → p-7e7b6127.entry.js} +1 -1
  172. package/dist/ketchup/p-8386e3db.entry.js +1 -0
  173. package/dist/ketchup/{p-23111c8d.entry.js → p-859163c2.entry.js} +1 -1
  174. package/dist/ketchup/{p-97f28bbd.entry.js → p-8e1fa7a8.entry.js} +6 -6
  175. package/dist/ketchup/{p-ca98059c.entry.js → p-90860d9e.entry.js} +1 -1
  176. package/dist/ketchup/{p-b131b257.entry.js → p-b7fdc7aa.entry.js} +1 -1
  177. package/dist/ketchup/{p-3138cabb.entry.js → p-bffaef6e.entry.js} +1 -1
  178. package/dist/ketchup/p-c35c5e05.js +1 -0
  179. package/dist/ketchup/{p-1468bf09.js → p-e1d0ea71.js} +1 -1
  180. package/dist/ketchup/p-f9d5e553.entry.js +1 -0
  181. package/dist/ketchup/{p-69dd11da.entry.js → p-fb4d772a.entry.js} +1 -1
  182. package/dist/loader/package.json +1 -0
  183. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  184. package/dist/types/components/kup-card/box/kup-card-box.d.ts +26 -0
  185. package/dist/types/components/kup-card/kup-card-declarations.d.ts +2 -0
  186. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  187. package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +0 -6
  188. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -1
  189. package/dist/types/components/kup-data-table/kup-data-table.d.ts +15 -1
  190. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +1 -0
  191. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +5 -0
  192. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  193. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  194. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +0 -4
  195. package/dist/types/components/kup-tree/kup-tree.d.ts +18 -12
  196. package/dist/types/components.d.ts +43 -16
  197. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  198. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  199. package/dist/types/stencil-public-runtime.d.ts +15 -4
  200. package/package.json +3 -2
  201. package/CHANGELOG.md +0 -5
  202. package/dist/ketchup/p-753c82d8.js +0 -1
  203. package/dist/ketchup/p-77600efd.entry.js +0 -9
  204. package/dist/ketchup/p-88722265.js +0 -1
  205. package/dist/ketchup/p-9027e5ac.js +0 -30
  206. package/dist/ketchup/p-aa564df8.entry.js +0 -1
  207. package/dist/ketchup/p-b0b3989b.js +0 -2
  208. package/dist/ketchup/p-b238f9ea.entry.js +0 -1
  209. package/dist/ketchup/p-b4f85d34.entry.js +0 -1
@@ -6,8 +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
- import { FCell } from '../../../f-components/f-cell/f-cell';
10
- import { FCellPadding, } from '../../../f-components/f-cell/f-cell-declarations';
9
+ import { FButtonStyling } from '../../../f-components/f-button/f-button-declarations';
11
10
  const dom = document.documentElement;
12
11
  /**
13
12
  * 1st standard card layout, inspired by Material Design.
@@ -28,18 +27,7 @@ export function create1(component) {
28
27
  const textArray = component.data['text']
29
28
  ? component.data['text']
30
29
  : [];
31
- return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray.length > 0 ? KupCardCSSClasses.HAS_ACTIONS : ''}` },
32
- h("div", { class: "mdc-ripple-surface" },
33
- imageArray[0] ? (h("div", { class: "section-1" },
34
- h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" })))) : null,
35
- h("div", { class: "section-2" },
36
- textArray[textIndex] ? (h("div", { class: "sub-2 title" },
37
- h("div", null, textArray[textIndex]))) : null,
38
- textArray[++textIndex] ? (h("div", { class: "sub-2 subtitle" },
39
- h("div", null, textArray[textIndex]))) : null,
40
- textArray[++textIndex] ? (h("div", { class: "sub-2 description" },
41
- h("div", null, textArray[textIndex]))) : null)),
42
- buttonArray.length > 0 ? (h("div", { class: "section-3" }, compList(buttonArray, 'button'))) : null));
30
+ return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray.length > 0 ? KupCardCSSClasses.HAS_ACTIONS : ''}` }, h("div", { class: "mdc-ripple-surface" }, imageArray[0] ? (h("div", { class: "section-1" }, h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" })))) : null, h("div", { class: "section-2" }, textArray[textIndex] ? (h("div", { class: "sub-2 title" }, h("div", null, textArray[textIndex]))) : null, textArray[++textIndex] ? (h("div", { class: "sub-2 subtitle" }, h("div", null, textArray[textIndex]))) : null, textArray[++textIndex] ? (h("div", { class: "sub-2 description" }, h("div", null, textArray[textIndex]))) : null)), buttonArray.length > 0 ? (h("div", { class: "section-3" }, compList(buttonArray, 'button'))) : null));
43
31
  }
44
32
  /**
45
33
  * 2nd standard card layout, inspired by Material Design.
@@ -60,18 +48,7 @@ export function create2(component) {
60
48
  const textArray = component.data['text']
61
49
  ? component.data['text']
62
50
  : [];
63
- return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray.length > 0 ? KupCardCSSClasses.HAS_ACTIONS : ''}` },
64
- h("div", { class: "section-1" },
65
- textArray[textIndex] ? (h("div", { class: "sub-1 title" },
66
- h("div", null, textArray[textIndex]))) : null,
67
- textArray[++textIndex] ? (h("div", { class: "sub-1 subtitle" },
68
- h("div", null, textArray[textIndex]))) : null),
69
- h("div", { class: "mdc-ripple-surface" },
70
- imageArray[0] ? (h("div", { class: "section-2" },
71
- h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" })))) : null,
72
- h("div", { class: "section-3" }, textArray[++textIndex] ? (h("div", { class: "sub-3 description" },
73
- h("div", null, textArray[textIndex]))) : null)),
74
- buttonArray.length > 0 ? (h("div", { class: "section-4" }, compList(buttonArray, 'button'))) : null));
51
+ return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray.length > 0 ? KupCardCSSClasses.HAS_ACTIONS : ''}` }, h("div", { class: "section-1" }, textArray[textIndex] ? (h("div", { class: "sub-1 title" }, h("div", null, textArray[textIndex]))) : null, textArray[++textIndex] ? (h("div", { class: "sub-1 subtitle" }, h("div", null, textArray[textIndex]))) : null), h("div", { class: "mdc-ripple-surface" }, imageArray[0] ? (h("div", { class: "section-2" }, h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" })))) : null, h("div", { class: "section-3" }, textArray[++textIndex] ? (h("div", { class: "sub-3 description" }, h("div", null, textArray[textIndex]))) : null)), buttonArray.length > 0 ? (h("div", { class: "section-4" }, compList(buttonArray, 'button'))) : null));
75
52
  }
76
53
  /**
77
54
  * 3rd standard card layout, inspired by Material Design.
@@ -92,19 +69,7 @@ export function create3(component) {
92
69
  const textArray = component.data['text']
93
70
  ? component.data['text']
94
71
  : [];
95
- return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray ? KupCardCSSClasses.HAS_ACTIONS : ''}` },
96
- h("div", { class: "mdc-ripple-surface" },
97
- h("div", { class: "section-1" },
98
- h("div", { class: "media" },
99
- imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" }))) : null,
100
- h("div", { class: "text-on-media" },
101
- textArray[textIndex] ? (h("div", { class: "sub-1 title" },
102
- h("div", null, textArray[textIndex]))) : null,
103
- textArray[++textIndex] ? (h("div", { class: "sub-1 subtitle" },
104
- h("div", null, textArray[textIndex]))) : null))),
105
- h("div", { class: "section-2" }, textArray[++textIndex] ? (h("div", { class: "sub-2 description" },
106
- h("div", null, textArray[textIndex]))) : null)),
107
- buttonArray.length > 0 ? (h("div", { class: "section-3" }, compList(buttonArray, 'button'))) : null));
72
+ return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray ? KupCardCSSClasses.HAS_ACTIONS : ''}` }, h("div", { class: "mdc-ripple-surface" }, h("div", { class: "section-1" }, h("div", { class: "media" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" }))) : null, h("div", { class: "text-on-media" }, textArray[textIndex] ? (h("div", { class: "sub-1 title" }, h("div", null, textArray[textIndex]))) : null, textArray[++textIndex] ? (h("div", { class: "sub-1 subtitle" }, h("div", null, textArray[textIndex]))) : null))), h("div", { class: "section-2" }, textArray[++textIndex] ? (h("div", { class: "sub-2 description" }, h("div", null, textArray[textIndex]))) : null)), buttonArray.length > 0 ? (h("div", { class: "section-3" }, compList(buttonArray, 'button'))) : null));
108
73
  }
109
74
  /**
110
75
  * 4th standard card layout, inspired by Material Design.
@@ -125,17 +90,7 @@ export function create4(component) {
125
90
  const textArray = component.data['text']
126
91
  ? component.data['text']
127
92
  : [];
128
- return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray ? KupCardCSSClasses.HAS_ACTIONS : ''}` },
129
- h("div", { class: "mdc-ripple-surface" },
130
- h("div", { class: "section-1" },
131
- imageArray[0] ? (h("div", { class: "sub-1 image" },
132
- h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" })))) : null,
133
- h("div", { class: "text" },
134
- textArray[textIndex] ? (h("div", { class: "sub-1 title" },
135
- h("div", null, textArray[textIndex]))) : null,
136
- textArray[++textIndex] ? (h("div", { class: "sub-1 subtitle" },
137
- h("div", null, textArray[textIndex]))) : null))),
138
- h("div", { class: "section-2" }, buttonArray ? compList(buttonArray, 'button') : '')));
93
+ return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray ? KupCardCSSClasses.HAS_ACTIONS : ''}` }, h("div", { class: "mdc-ripple-surface" }, h("div", { class: "section-1" }, imageArray[0] ? (h("div", { class: "sub-1 image" }, h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" })))) : null, h("div", { class: "text" }, textArray[textIndex] ? (h("div", { class: "sub-1 title" }, h("div", null, textArray[textIndex]))) : null, textArray[++textIndex] ? (h("div", { class: "sub-1 subtitle" }, h("div", null, textArray[textIndex]))) : null))), h("div", { class: "section-2" }, buttonArray ? compList(buttonArray, 'button') : '')));
139
94
  }
140
95
  /**
141
96
  * 5th standard card layout, useful to display TODOs with extensive information.
@@ -175,24 +130,7 @@ export function create5(component) {
175
130
  ? colorArray[colorIndex]
176
131
  : `rgba(var(${KupThemeColorValues.PRIMARY}-rgb),0.1)`,
177
132
  };
178
- return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables },
179
- h("div", { class: "section-1" }),
180
- h("div", { class: "section-2" },
181
- h("div", { class: "sub-2 icon" }, imageArray[imageIndex] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[imageIndex], { sizeX: "100%", sizeY: "100%" }))) : null),
182
- h("div", { class: "sub-2 text" },
183
- h("div", { class: "desc-text" }, textArray[textIndex] ? textArray[textIndex] : ''),
184
- h("div", { class: "alt-text" }, textArray[++textIndex] ? textArray[textIndex] : '')),
185
- h("div", { class: "sub-2 image" }, imageArray[++imageIndex] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[imageIndex], { sizeX: "100%", sizeY: "100%" }))) : null)),
186
- h("div", { class: "section-3" },
187
- h("div", { class: "sub-3 progress-bar" }, progressbarArray[0] ? (h("kup-progress-bar", Object.assign({ id: "progressBar1", "is-slim": true }, progressbarArray[0]))) : null),
188
- h("div", { class: "sub-3 button" }, buttonArray[0] ? (h("kup-button", Object.assign({ id: "button1" }, buttonArray[0]))) : null)),
189
- h("div", { class: "section-4" },
190
- h("div", { class: "sub-4 text" },
191
- h("div", null, textArray[++textIndex] ? textArray[textIndex] : ''),
192
- h("div", { class: "alt-text" }, textArray[++textIndex] ? textArray[textIndex] : '')),
193
- h("div", { class: "sub-4 text" },
194
- h("div", null, textArray[++textIndex] ? textArray[textIndex] : ''),
195
- h("div", { class: "alt-text" }, textArray[++textIndex] ? textArray[textIndex] : '')))));
133
+ return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "section-1" }), h("div", { class: "section-2" }, h("div", { class: "sub-2 icon" }, imageArray[imageIndex] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[imageIndex], { sizeX: "100%", sizeY: "100%" }))) : null), h("div", { class: "sub-2 text" }, h("div", { class: "desc-text" }, textArray[textIndex] ? textArray[textIndex] : ''), h("div", { class: "alt-text" }, textArray[++textIndex] ? textArray[textIndex] : '')), h("div", { class: "sub-2 image" }, imageArray[++imageIndex] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[imageIndex], { sizeX: "100%", sizeY: "100%" }))) : null)), h("div", { class: "section-3" }, h("div", { class: "sub-3 progress-bar" }, progressbarArray[0] ? (h("kup-progress-bar", Object.assign({ id: "progressBar1", "is-slim": true }, progressbarArray[0]))) : null), h("div", { class: "sub-3 button" }, buttonArray[0] ? (h("kup-button", Object.assign({ id: "button1" }, buttonArray[0]))) : null)), h("div", { class: "section-4" }, h("div", { class: "sub-4 text" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : ''), h("div", { class: "alt-text" }, textArray[++textIndex] ? textArray[textIndex] : '')), h("div", { class: "sub-4 text" }, h("div", null, textArray[++textIndex] ? textArray[textIndex] : ''), h("div", { class: "alt-text" }, textArray[++textIndex] ? textArray[textIndex] : '')))));
196
134
  }
197
135
  /**
198
136
  * 6th standard card layout, useful to display TODOs in a compact view.
@@ -224,14 +162,7 @@ export function create6(component) {
224
162
  : `var(${KupThemeColorValues.PRIMARY})`,
225
163
  ['--kup_card_dynamic_color_0']: 'white',
226
164
  };
227
- return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables },
228
- h("div", { class: "section-1" },
229
- h("div", { class: "alt-text" }, textArray[textIndex] ? textArray[textIndex] : '')),
230
- h("div", { class: "section-2" },
231
- h("div", { class: "sub-2" },
232
- progressbarArray[0] ? (h("kup-progress-bar", Object.assign({ id: "progressBar1", "is-radial": true }, progressbarArray[0]))) : null,
233
- h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')),
234
- buttonArray[0] ? (h("kup-button", Object.assign({ id: "button1" }, buttonArray[0]))) : null)));
165
+ return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "section-1" }, h("div", { class: "alt-text" }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "section-2" }, h("div", { class: "sub-2" }, progressbarArray[0] ? (h("kup-progress-bar", Object.assign({ id: "progressBar1", "is-radial": true }, progressbarArray[0]))) : null, h("div", null, textArray[++textIndex] ? textArray[textIndex] : '')), buttonArray[0] ? (h("kup-button", Object.assign({ id: "button1" }, buttonArray[0]))) : null)));
235
166
  }
236
167
  /**
237
168
  * 7th standard card layout, centered image and text.
@@ -258,15 +189,7 @@ export function create7(component) {
258
189
  ? colorArray[0]
259
190
  : `var(${KupThemeColorValues.PRIMARY})`,
260
191
  };
261
- return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables },
262
- h("div", { class: "section-1" }),
263
- h("div", { class: "section-2" },
264
- h("div", { class: "sub-2 image" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" }))) : null),
265
- h("div", { class: "sub-2 text" },
266
- h("div", null, textArray[textIndex] ? textArray[textIndex] : ''))),
267
- h("div", { class: "section-3" },
268
- h("div", { class: "sub-3 alt-text" }, textArray[++textIndex] ? textArray[textIndex] : ''),
269
- h("div", { class: "sub-3 alt-text" }, textArray[++textIndex] ? textArray[textIndex] : ''))));
192
+ return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "section-1" }), h("div", { class: "section-2" }, h("div", { class: "sub-2 image" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "100%", sizeY: "100%" }))) : null), h("div", { class: "sub-2 text" }, h("div", null, textArray[textIndex] ? textArray[textIndex] : ''))), h("div", { class: "section-3" }, h("div", { class: "sub-3 alt-text" }, textArray[++textIndex] ? textArray[textIndex] : ''), h("div", { class: "sub-3 alt-text" }, textArray[++textIndex] ? textArray[textIndex] : ''))));
270
193
  }
271
194
  /**
272
195
  * 8th standard card layout, useful to display a list of chips.
@@ -297,17 +220,7 @@ export function create8(component) {
297
220
  ? colorArray[0]
298
221
  : `var(${KupThemeColorValues.PRIMARY})`,
299
222
  };
300
- return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables },
301
- h("div", { class: "background" }),
302
- h("div", { class: "section-1" },
303
- h("div", { class: "sub-1" },
304
- h("div", { class: "text" }, textArray[textIndex] ? textArray[textIndex] : '')),
305
- h("div", { class: "sub-2" },
306
- h("div", { class: "text" }, textArray[++textIndex] ? textArray[textIndex] : '')),
307
- h("div", { class: "sub-3" },
308
- h("div", { class: "image" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "24px", sizeY: "24px" }))) : null),
309
- h("div", { class: "text" }, textArray[++textIndex] ? textArray[textIndex] : ''))),
310
- h("div", { class: "section-2" }, chipArray[0] ? (h("kup-chip", Object.assign({ id: "chip1" }, chipArray[0]))) : null)));
223
+ return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "background" }), h("div", { class: "section-1" }, h("div", { class: "sub-1" }, h("div", { class: "text" }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "sub-2" }, h("div", { class: "text" }, textArray[++textIndex] ? textArray[textIndex] : '')), h("div", { class: "sub-3" }, h("div", { class: "image" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "24px", sizeY: "24px" }))) : null), h("div", { class: "text" }, textArray[++textIndex] ? textArray[textIndex] : ''))), h("div", { class: "section-2" }, chipArray[0] ? (h("kup-chip", Object.assign({ id: "chip1" }, chipArray[0]))) : null)));
311
224
  }
312
225
  /**
313
226
  * 9th standard card layout, chart displayed on the right with some info on the left.
@@ -338,24 +251,13 @@ export function create9(component) {
338
251
  ? colorArray[0]
339
252
  : `var(${KupThemeColorValues.PRIMARY})`,
340
253
  };
341
- return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables },
342
- h("div", { class: "section-1" },
343
- h("div", { class: "sub-1" },
344
- h("div", { class: "text description" }, textArray[textIndex] ? textArray[textIndex] : '')),
345
- h("div", { class: "sub-2" },
346
- h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
347
- ? colorArray[0]
348
- : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "3em", sizeY: "3em" }))) : null),
349
- h("div", { class: "text-wrapper" },
350
- h("div", { class: "text title" },
351
- h("div", null, textArray[++textIndex]
352
- ? textArray[textIndex]
353
- : '')),
354
- h("div", { class: "text subtitle" },
355
- h("div", null, textArray[++textIndex]
356
- ? textArray[textIndex]
357
- : ''))))),
358
- h("div", { class: "section-2" }, chartArray[0] ? (h("kup-chart", Object.assign({ id: "chart1" }, chartArray[0]))) : null)));
254
+ return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "section-1" }, h("div", { class: "sub-1" }, h("div", { class: "text description" }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "sub-2" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
255
+ ? colorArray[0]
256
+ : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "3em", sizeY: "3em" }))) : null), h("div", { class: "text-wrapper" }, h("div", { class: "text title" }, h("div", null, textArray[++textIndex]
257
+ ? textArray[textIndex]
258
+ : '')), h("div", { class: "text subtitle" }, h("div", null, textArray[++textIndex]
259
+ ? textArray[textIndex]
260
+ : ''))))), h("div", { class: "section-2" }, chartArray[0] ? (h("kup-chart", Object.assign({ id: "chart1" }, chartArray[0]))) : null)));
359
261
  }
360
262
  /**
361
263
  * 10th standard card layout, chart displayed on the left with some info on the right.
@@ -386,24 +288,13 @@ export function create10(component) {
386
288
  ? colorArray[0]
387
289
  : `var(${KupThemeColorValues.PRIMARY})`,
388
290
  };
389
- return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables },
390
- h("div", { class: "section-1" }, chartArray[0] ? (h("kup-chart", Object.assign({ id: "chart1" }, chartArray[0]))) : null),
391
- h("div", { class: "section-2" },
392
- h("div", { class: "sub-1" },
393
- h("div", { class: "text description" }, textArray[textIndex] ? textArray[textIndex] : '')),
394
- h("div", { class: "sub-2" },
395
- h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
396
- ? colorArray[0]
397
- : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "3em", sizeY: "3em" }))) : null),
398
- h("div", { class: "text-wrapper" },
399
- h("div", { class: "text title" },
400
- h("div", null, textArray[++textIndex]
401
- ? textArray[textIndex]
402
- : '')),
403
- h("div", { class: "text subtitle" },
404
- h("div", null, textArray[++textIndex]
405
- ? textArray[textIndex]
406
- : '')))))));
291
+ return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "section-1" }, chartArray[0] ? (h("kup-chart", Object.assign({ id: "chart1" }, chartArray[0]))) : null), h("div", { class: "section-2" }, h("div", { class: "sub-1" }, h("div", { class: "text description" }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "sub-2" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
292
+ ? colorArray[0]
293
+ : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "3em", sizeY: "3em" }))) : null), h("div", { class: "text-wrapper" }, h("div", { class: "text title" }, h("div", null, textArray[++textIndex]
294
+ ? textArray[textIndex]
295
+ : '')), h("div", { class: "text subtitle" }, h("div", null, textArray[++textIndex]
296
+ ? textArray[textIndex]
297
+ : '')))))));
407
298
  }
408
299
  /**
409
300
  * 11th standard card layout, chart displayed on the right with some info on the left, visible when hovering on the colored bar.
@@ -434,32 +325,21 @@ export function create11(component) {
434
325
  ? colorArray[0]
435
326
  : `var(${KupThemeColorValues.PRIMARY})`,
436
327
  };
437
- return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables },
438
- h("div", { class: "section-1", onMouseEnter: (e) => {
439
- let el = e.currentTarget;
440
- el.style.minWidth = el.scrollWidth + 10 + 'px';
441
- el.style.maxWidth = el.scrollWidth + 10 + 'px';
442
- }, onMouseLeave: (e) => {
443
- let el = e.currentTarget;
444
- el.style.minWidth = '';
445
- el.style.maxWidth = '';
446
- } },
447
- h("div", { class: "sub-1 dyn-color" },
448
- h("div", { class: "text description" }, textArray[textIndex] ? textArray[textIndex] : '')),
449
- h("div", { class: "sub-2" },
450
- h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
451
- ? colorArray[0]
452
- : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "3em", sizeY: "3em" }))) : null),
453
- h("div", { class: "text-wrapper" },
454
- h("div", { class: "text title" },
455
- h("div", null, textArray[++textIndex]
456
- ? textArray[textIndex]
457
- : '')),
458
- h("div", { class: "text subtitle" },
459
- h("div", null, textArray[++textIndex]
460
- ? textArray[textIndex]
461
- : ''))))),
462
- h("div", { class: "section-2" }, chartArray[0] ? (h("kup-chart", Object.assign({ id: "chart1" }, chartArray[0]))) : null)));
328
+ return (h("div", { class: `standard-layout-${component.layoutNumber}`, style: CSSVariables }, h("div", { class: "section-1", onMouseEnter: (e) => {
329
+ let el = e.currentTarget;
330
+ el.style.minWidth = el.scrollWidth + 10 + 'px';
331
+ el.style.maxWidth = el.scrollWidth + 10 + 'px';
332
+ }, onMouseLeave: (e) => {
333
+ let el = e.currentTarget;
334
+ el.style.minWidth = '';
335
+ el.style.maxWidth = '';
336
+ } }, h("div", { class: "sub-1 dyn-color" }, h("div", { class: "text description" }, textArray[textIndex] ? textArray[textIndex] : '')), h("div", { class: "sub-2" }, h("div", { class: "icon" }, imageArray[0] ? (h(FImage, Object.assign({ color: colorArray[0]
337
+ ? colorArray[0]
338
+ : `var(${KupThemeColorValues.PRIMARY})`, id: "image1" }, imageArray[0], { sizeX: "3em", sizeY: "3em" }))) : null), h("div", { class: "text-wrapper" }, h("div", { class: "text title" }, h("div", null, textArray[++textIndex]
339
+ ? textArray[textIndex]
340
+ : '')), h("div", { class: "text subtitle" }, h("div", null, textArray[++textIndex]
341
+ ? textArray[textIndex]
342
+ : ''))))), h("div", { class: "section-2" }, chartArray[0] ? (h("kup-chart", Object.assign({ id: "chart1" }, chartArray[0]))) : null)));
463
343
  }
464
344
  /**
465
345
  * 12th standard card layout, used for column menus in tree and data table.
@@ -490,28 +370,19 @@ export function create12(component) {
490
370
  buttonsIds.push(button['id']);
491
371
  }
492
372
  }
493
- return (h("div", { class: `standard-layout-${component.layoutNumber} ` },
494
- buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ||
495
- buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ||
496
- buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (h("div", { class: "section-1" },
497
- buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_REMOVE)))) : null,
498
- buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_GROUP)))) : null,
499
- buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_ADD_COLUMNS)))) : null)) : null,
500
- h("div", { class: `section-2 ${textfieldArray.length > 0 ||
501
- datepickerArray.length > 0 ||
502
- timepickerArray.length > 0
503
- ? KupCardCSSClasses.HAS_CONTENT
504
- : ''}` },
505
- datepickerArray.length > 0
506
- ? compList(datepickerArray, 'datepicker')
507
- : null,
508
- textfieldArray.length > 0
509
- ? compList(textfieldArray, 'textfield')
510
- : null,
373
+ return (h("div", { class: `standard-layout-${component.layoutNumber} ` }, buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ||
374
+ buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ||
375
+ buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (h("div", { class: "section-1" }, buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_REMOVE)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_GROUP)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_ADD_COLUMNS)))) : null)) : null, h("div", { class: `section-2 ${textfieldArray.length > 0 ||
376
+ datepickerArray.length > 0 ||
511
377
  timepickerArray.length > 0
512
- ? compList(timepickerArray, 'timepicker')
513
- : null),
514
- checkboxArray.length > 0 ? (h("div", { class: "section-3" }, compList(checkboxArray, 'checkbox'))) : null));
378
+ ? KupCardCSSClasses.HAS_CONTENT
379
+ : ''}` }, datepickerArray.length > 0
380
+ ? compList(datepickerArray, 'datepicker')
381
+ : null, textfieldArray.length > 0
382
+ ? compList(textfieldArray, 'textfield')
383
+ : null, timepickerArray.length > 0
384
+ ? compList(timepickerArray, 'timepicker')
385
+ : null), checkboxArray.length > 0 ? (h("div", { class: "section-3" }, compList(checkboxArray, 'checkbox'))) : null));
515
386
  }
516
387
  /**
517
388
  * 13th standard card layout, buttons and text lines, used for debug window.
@@ -535,13 +406,7 @@ export function create13(component) {
535
406
  const textfieldArray = component.data['textfield']
536
407
  ? component.data['textfield']
537
408
  : [];
538
- return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray.length > 0 ? KupCardCSSClasses.HAS_ACTIONS : ''}` },
539
- h("div", null,
540
- buttonArray.length > 0 || textfieldArray.length > 0 ? (h("div", { class: "section-1" },
541
- compList(buttonArray, 'button'),
542
- compList(textfieldArray, 'textfield'),
543
- compList(comboboxArray, 'combobox'))) : null,
544
- textArray.length > 0 ? (h("div", { class: "section-2" }, compList(textArray, 'text'))) : null)));
409
+ return (h("div", { class: `standard-layout-${component.layoutNumber} ${buttonArray.length > 0 ? KupCardCSSClasses.HAS_ACTIONS : ''}` }, h("div", null, buttonArray.length > 0 || textfieldArray.length > 0 ? (h("div", { class: "section-1" }, compList(buttonArray, 'button'), compList(textfieldArray, 'textfield'), compList(comboboxArray, 'combobox'))) : null, textArray.length > 0 ? (h("div", { class: "section-2" }, compList(textArray, 'text'))) : null)));
545
410
  }
546
411
  /**
547
412
  * 14th standard card layout, used for column menus in tree and data table (with tabs). This is a very specifically-designed layout, so correct ids are a must.
@@ -625,71 +490,33 @@ export function create14(component) {
625
490
  textfieldsIds.push(textfield['id']);
626
491
  }
627
492
  }
628
- return (h("div", { class: `standard-layout-${component.layoutNumber} ` },
629
- objectArray[0] ? (h("div", { class: "section-1" },
630
- imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" },
631
- h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))),
632
- h("div", { class: "sub-1" },
633
- textArray[0] ? (h("div", { class: "title" },
634
- h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]),
635
- buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
636
- KupColumnMenuIds.BUTTON_OPEN_IN_NEW)))) : null,
637
- buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
638
- KupColumnMenuIds.BUTTON_SEARCH)))) : null,
639
- buttonsIds.includes(KupColumnMenuIds.BUTTON_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
640
- KupColumnMenuIds.BUTTON_NEW)))) : null)) : null,
641
- textArray[1] && textArray[2] ? (h("div", { class: "info" },
642
- h("span", { class: "label" }, textArray[1]),
643
- h("span", { class: "value" }, textArray[2]))) : null,
644
- textArray[3] && textArray[4] ? (h("div", { class: "info" },
645
- h("span", { class: "label" }, textArray[3]),
646
- h("span", { class: "value" }, textArray[4]))) : null))) : null,
647
- h("div", { class: "section-2" }, tabbarArray[0] ? (h("kup-tab-bar", Object.assign({}, tabbarArray[0], { id: KupCardIds.VIEW_SELECTOR }))) : null),
648
- h("div", { class: "section-3" },
649
- tabsValues.includes(KupLanguageGeneric.FILTERS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
650
- ? KupCardCSSClasses.VISIBLE
651
- : ''}` },
652
- h("div", { class: `sub-field ${textfieldArray.length > 0 ||
653
- datepickerArray.length > 0 ||
654
- timepickerArray.length > 0
655
- ? KupCardCSSClasses.HAS_CONTENT
656
- : ''}` },
657
- datepickerArray.length > 0
658
- ? compList(datepickerArray, 'datepicker')
659
- : null,
660
- textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FILTER) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
661
- KupColumnMenuIds.TEXTFIELD_FILTER)))) : null,
662
- textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FROM) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
663
- KupColumnMenuIds.TEXTFIELD_FROM)))) : null,
664
- textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_TO) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
665
- KupColumnMenuIds.TEXTFIELD_TO)))) : null,
666
- timepickerArray.length > 0
667
- ? compList(timepickerArray, 'timepicker')
668
- : null),
669
- checkboxArray.length > 0 ? (h("div", { class: "sub-checkbox" }, compList(checkboxArray, 'checkbox'))) : null)) : null,
670
- tabsValues.includes(KupLanguageColumn.COLUMNS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
671
- ? KupCardCSSClasses.VISIBLE
672
- : ''}` },
673
- h("div", { class: "sub-button" },
674
- buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
675
- KupColumnMenuIds.BUTTON_REMOVE)))) : null,
676
- buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
677
- KupColumnMenuIds.BUTTON_GROUP)))) : null),
678
- h("div", { class: "sub-formula" }, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FORMULA) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
679
- KupColumnMenuIds.TEXTFIELD_FORMULA)))) : null),
680
- h("div", { class: "sub-chip" },
681
- chipArray[0] ? (h("kup-chip", Object.assign({}, chipArray[0], { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST }))) : (h("kup-chip", { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST })),
682
- buttonsIds.includes(KupColumnMenuIds.BUTTON_APPLY) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
683
- KupColumnMenuIds.BUTTON_APPLY)))) : null),
684
- objectArray[0] ? (h("div", { class: "sub-tree" }, treeArray[0] ? (h("kup-tree", Object.assign({ class: "kup-full-width", globalFilter: true }, treeArray[0], { id: KupCardIds.EXTRA_COLUMNS }))) : (h("div", { class: "sub-spinner" },
685
- h("kup-spinner", { active: true, dimensions: "8px", layout: 2 }))))) : null)) : null,
686
- tabsValues.includes(KupLanguageGeneric.SETTINGS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
687
- ? KupCardCSSClasses.VISIBLE
688
- : ''}` },
689
- h("div", { class: "sub-autocomplete" }, autocompleteArray.length > 0
690
- ? compList(autocompleteArray, 'autocomplete')
691
- : null),
692
- h("div", { class: "sub-switch" }, switchesIds.includes(KupColumnMenuIds.SWITCH_KEY) ? (h("kup-switch", Object.assign({}, switchArray.find((x) => x.id === KupColumnMenuIds.SWITCH_KEY)))) : null))) : null)));
493
+ return (h("div", { class: `standard-layout-${component.layoutNumber} ` }, objectArray[0] ? (h("div", { class: "section-1" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))), h("div", { class: "sub-1" }, textArray[0] ? (h("div", { class: "title" }, h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]), buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
494
+ KupColumnMenuIds.BUTTON_OPEN_IN_NEW)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
495
+ KupColumnMenuIds.BUTTON_SEARCH)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
496
+ KupColumnMenuIds.BUTTON_NEW)))) : null)) : null, textArray[1] && textArray[2] ? (h("div", { class: "info" }, h("span", { class: "label" }, textArray[1]), h("span", { class: "value" }, textArray[2]))) : null, textArray[3] && textArray[4] ? (h("div", { class: "info" }, h("span", { class: "label" }, textArray[3]), h("span", { class: "value" }, textArray[4]))) : null))) : null, h("div", { class: "section-2" }, tabbarArray[0] ? (h("kup-tab-bar", Object.assign({}, tabbarArray[0], { id: KupCardIds.VIEW_SELECTOR }))) : null), h("div", { class: "section-3" }, tabsValues.includes(KupLanguageGeneric.FILTERS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
497
+ ? KupCardCSSClasses.VISIBLE
498
+ : ''}` }, h("div", { class: `sub-field ${textfieldArray.length > 0 ||
499
+ datepickerArray.length > 0 ||
500
+ timepickerArray.length > 0
501
+ ? KupCardCSSClasses.HAS_CONTENT
502
+ : ''}` }, datepickerArray.length > 0
503
+ ? compList(datepickerArray, 'datepicker')
504
+ : null, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FILTER) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
505
+ KupColumnMenuIds.TEXTFIELD_FILTER)))) : null, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FROM) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
506
+ KupColumnMenuIds.TEXTFIELD_FROM)))) : null, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_TO) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
507
+ KupColumnMenuIds.TEXTFIELD_TO)))) : null, timepickerArray.length > 0
508
+ ? compList(timepickerArray, 'timepicker')
509
+ : null), checkboxArray.length > 0 ? (h("div", { class: "sub-checkbox" }, compList(checkboxArray, 'checkbox'))) : null)) : null, tabsValues.includes(KupLanguageColumn.COLUMNS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
510
+ ? KupCardCSSClasses.VISIBLE
511
+ : ''}` }, h("div", { class: "sub-button" }, buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
512
+ KupColumnMenuIds.BUTTON_REMOVE)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
513
+ KupColumnMenuIds.BUTTON_GROUP)))) : null), h("div", { class: "sub-formula" }, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FORMULA) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
514
+ KupColumnMenuIds.TEXTFIELD_FORMULA)))) : null), h("div", { class: "sub-chip" }, chipArray[0] ? (h("kup-chip", Object.assign({}, chipArray[0], { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST }))) : (h("kup-chip", { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST })), buttonsIds.includes(KupColumnMenuIds.BUTTON_APPLY) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
515
+ KupColumnMenuIds.BUTTON_APPLY)))) : null), objectArray[0] ? (h("div", { class: "sub-tree" }, treeArray[0] ? (h("kup-tree", Object.assign({ class: "kup-full-width", globalFilter: true }, treeArray[0], { id: KupCardIds.EXTRA_COLUMNS }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "8px", layout: 2 }))))) : null)) : null, tabsValues.includes(KupLanguageGeneric.SETTINGS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
516
+ ? KupCardCSSClasses.VISIBLE
517
+ : ''}` }, h("div", { class: "sub-autocomplete" }, autocompleteArray.length > 0
518
+ ? compList(autocompleteArray, 'autocomplete')
519
+ : null), h("div", { class: "sub-switch" }, switchesIds.includes(KupColumnMenuIds.SWITCH_KEY) ? (h("kup-switch", Object.assign({}, switchArray.find((x) => x.id === KupColumnMenuIds.SWITCH_KEY)))) : null))) : null)));
693
520
  }
694
521
  /**
695
522
  * 15th standard card layout, it can be used as a tooltip.
@@ -726,9 +553,7 @@ export function create15(component) {
726
553
  }
727
554
  }
728
555
  for (let index = 0; index < labels.length; index++) {
729
- sectionTwoDetails.push(h("div", { class: "detail-row" },
730
- h("div", { class: "detail-row__label ellipsis" }, labels[index]),
731
- h("div", { class: "detail-row__value ellipsis" }, values[index])));
556
+ sectionTwoDetails.push(h("div", { class: "detail-row" }, h("div", { class: "detail-row__label ellipsis" }, labels[index]), h("div", { class: "detail-row__value ellipsis" }, values[index])));
732
557
  }
733
558
  // Setting up buttons.
734
559
  const buttonsIds = [];
@@ -746,56 +571,23 @@ export function create15(component) {
746
571
  genericButtons.push(button);
747
572
  }
748
573
  }
749
- return (h("div", { class: `standard-layout-${component.layoutNumber}` },
750
- h("div", { class: "section-1" },
751
- imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" },
752
- h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))),
753
- h("div", { class: "sub-1" },
754
- textArray[0] ? (h("div", { class: "title" },
755
- h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]),
756
- buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
757
- KupColumnMenuIds.BUTTON_OPEN_IN_NEW)))) : null,
758
- buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
759
- KupColumnMenuIds.BUTTON_SEARCH)))) : null)) : null,
760
- sectionOneArray[1] && sectionOneArray[2] ? (h("div", { class: "info" },
761
- h("span", { class: "label" }, sectionOneArray[1]),
762
- h("span", { class: "value" }, sectionOneArray[2]))) : null,
763
- sectionOneArray[3] && sectionOneArray[4] ? (h("div", { class: "info" },
764
- h("span", { class: "label" }, sectionOneArray[3]),
765
- h("span", { class: "value" }, sectionOneArray[4]))) : null)),
766
- h("div", { class: "section-2" },
767
- h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${KupCardCSSClasses.VISIBLE}` },
768
- h("div", { class: "info" }, sectionTwoDetails.length > 0
769
- ? sectionTwoDetails
770
- : null)),
771
- 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)),
772
- genericButtons.length > 0 ? (h("div", { class: "section-3" },
773
- compList(genericButtons.slice(0, 5), 'button'),
774
- h("kup-button", { title: dom.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" }))) : null));
775
- }
776
- /**
777
- * 16th standard card layout, it can be used as a key-value grid list.
778
- * @param {KupCard} component - Card component.
779
- * @returns {VNode} 16th standard layout virtual node.
780
- */
781
- export function create16(component) {
782
- const rows = [];
783
- for (let index = 0; index < component.data.cell.length; index++) {
784
- const cell = component.data.cell[index];
785
- const column = component.data.columns[index];
574
+ const createDropdown = () => {
786
575
  const props = {
787
- cell: cell,
788
- column: column,
789
- component: component,
790
- density: FCellPadding.NONE,
791
- renderKup: true,
792
- row: { cells: { [column.name]: cell } },
576
+ data: { 'kup-list': { data: [], showIcons: true } },
577
+ dropdownOnly: true,
578
+ icon: 'more_vert',
579
+ id: 'options',
580
+ styling: FButtonStyling.ICON,
793
581
  };
794
- rows.push(h("tr", null,
795
- h("td", { class: "label" }, column.title),
796
- h("td", { class: "value" },
797
- h(FCell, Object.assign({}, props)))));
798
- }
799
- return (h("div", { class: `standard-layout-${component.layoutNumber}` },
800
- h("table", null, rows)));
582
+ for (let index = 5; index < genericButtons.length; index++) {
583
+ const button = genericButtons[index];
584
+ props.data['kup-list'].data.push(Object.assign(Object.assign({}, button), { value: button.title }));
585
+ }
586
+ return (h("kup-dropdown-button", Object.assign({}, props, { title: dom.ketchup.language.translate(KupLanguageGeneric.OPTIONS) })));
587
+ };
588
+ return (h("div", { class: `standard-layout-${component.layoutNumber}` }, h("div", { class: "section-1" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))), h("div", { class: "sub-1" }, textArray[0] ? (h("div", { class: "title" }, h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]), buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
589
+ KupColumnMenuIds.BUTTON_OPEN_IN_NEW)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
590
+ KupColumnMenuIds.BUTTON_SEARCH)))) : null)) : null, sectionOneArray[1] && sectionOneArray[2] ? (h("div", { class: "info" }, h("span", { class: "label" }, sectionOneArray[1]), h("span", { class: "value" }, sectionOneArray[2]))) : null, sectionOneArray[3] && sectionOneArray[4] ? (h("div", { class: "info" }, h("span", { class: "label" }, sectionOneArray[3]), h("span", { class: "value" }, sectionOneArray[4]))) : null)), h("div", { class: "section-2" }, h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${KupCardCSSClasses.VISIBLE}` }, h("div", { class: "info" }, sectionTwoDetails.length > 0
591
+ ? sectionTwoDetails
592
+ : null)), 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)), genericButtons.length > 0 ? (h("div", { class: "section-3" }, compList(genericButtons.slice(0, 5), 'button'), genericButtons.length > 5 ? createDropdown() : null, treeArray[0] ? (h("kup-button", { title: dom.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" })) : null)) : null));
801
593
  }