@sme.up/ketchup 5.2.0-SNAPSHOT → 6.0.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 (214) hide show
  1. package/dist/cjs/{cell-utils-5b16c180.js → cell-utils-a78d6fac.js} +2 -2
  2. package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
  3. package/dist/cjs/{f-button-3b9f32af.js → f-button-ac179257.js} +2 -2
  4. package/dist/cjs/{f-cell-c6ad973a.js → f-cell-69294bca.js} +33 -121
  5. package/dist/cjs/{f-chip-bed86c4a.js → f-chip-b00897d7.js} +5 -4
  6. package/dist/cjs/{f-image-08a3d340.js → f-image-89f25556.js} +2 -2
  7. package/dist/cjs/f-paginator-utils-8fa501b3.js +1898 -0
  8. package/dist/cjs/f-text-field-e1e45ade.js +94 -0
  9. package/dist/cjs/f-text-field-mdc-85997738.js +2570 -0
  10. package/dist/cjs/{index-8d7bb3be.js → index-eb556444.js} +2 -0
  11. package/dist/cjs/ketchup.cjs.js +3 -3
  12. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  13. package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1788 -8378
  14. package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17102 -14788
  15. package/dist/cjs/kup-calendar.cjs.entry.js +42 -34
  16. package/dist/cjs/kup-cell.cjs.entry.js +8 -7
  17. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  18. package/dist/cjs/kup-dash_2.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-drawer.cjs.entry.js +12 -5
  20. package/dist/cjs/kup-field.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-form-editor.cjs.entry.js +404 -0
  22. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  23. package/dist/cjs/kup-image-list.cjs.entry.js +228 -0
  24. package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  26. package/dist/cjs/kup-manager-7a941909.js +16703 -0
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +423 -0
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
  30. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  33. package/dist/cjs/loader.cjs.js +3 -3
  34. package/dist/cjs/{utils-b9df398c.js → utils-6287d878.js} +1 -1
  35. package/dist/collection/assets/card.js +4 -5
  36. package/dist/collection/assets/data-table.js +44 -79
  37. package/dist/collection/assets/form-editor.js +338 -0
  38. package/dist/collection/assets/image-list.js +624 -0
  39. package/dist/collection/assets/index.js +16 -0
  40. package/dist/collection/assets/kupdata.js +0 -3
  41. package/dist/collection/assets/kuptooltip.js +654 -0
  42. package/dist/collection/assets/tree.js +0 -128
  43. package/dist/collection/collection-manifest.json +8 -6
  44. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +1 -1
  45. package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
  46. package/dist/collection/components/kup-box/kup-box.js +7 -135
  47. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -0
  48. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  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 +153 -0
  51. package/dist/collection/components/kup-card/kup-card.css +61 -8
  52. package/dist/collection/components/kup-card/kup-card.js +2 -2
  53. package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
  54. package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
  55. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
  56. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  57. package/dist/collection/components/kup-data-table/kup-data-table.js +50 -138
  58. package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
  59. package/dist/collection/components/kup-drawer/kup-drawer.css +1 -0
  60. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
  61. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +23 -0
  62. package/dist/collection/components/kup-form-editor/kup-form-editor.css +80 -0
  63. package/dist/collection/components/kup-form-editor/kup-form-editor.js +561 -0
  64. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
  65. package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
  66. package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
  67. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +16 -0
  68. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +50 -0
  69. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +895 -0
  70. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +3 -13
  71. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  72. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  73. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
  74. package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -2
  75. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
  76. package/dist/collection/components/kup-tree/kup-tree.css +10 -3
  77. package/dist/collection/components/kup-tree/kup-tree.js +81 -145
  78. package/dist/collection/f-components/f-cell/f-cell.js +7 -7
  79. package/dist/collection/f-components/f-chip/f-chip.js +2 -1
  80. package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
  81. package/dist/collection/managers/kup-data/kup-data.js +4 -1
  82. package/dist/collection/managers/kup-debug/kup-debug.js +1 -0
  83. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
  84. package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
  85. package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
  86. package/dist/collection/managers/kup-manager/kup-manager.js +31 -1
  87. package/dist/collection/managers/kup-math/kup-math.js +11 -1
  88. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +6 -0
  89. package/dist/collection/managers/kup-tooltip/kup-tooltip-declarations.js +1 -0
  90. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +224 -0
  91. package/dist/collection/types/GenericTypes.js +3 -0
  92. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +8 -12
  93. package/dist/esm/{cell-utils-69f75e2e.js → cell-utils-964da6b5.js} +3 -3
  94. package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
  95. package/dist/esm/{f-button-7e7607d8.js → f-button-871a544b.js} +2 -2
  96. package/dist/esm/{f-cell-e4d83c27.js → f-cell-521ef17a.js} +33 -120
  97. package/dist/esm/{f-chip-51dfefaf.js → f-chip-1dda722f.js} +6 -5
  98. package/dist/esm/{f-image-de331954.js → f-image-c468d8ae.js} +2 -2
  99. package/dist/esm/f-paginator-utils-7dff8ff0.js +1884 -0
  100. package/dist/esm/f-text-field-d6c61c73.js +92 -0
  101. package/dist/esm/f-text-field-mdc-d42d3f9e.js +2568 -0
  102. package/dist/esm/{index-aeec9835.js → index-baeab1ac.js} +2 -1
  103. package/dist/esm/ketchup.js +3 -3
  104. package/dist/esm/kup-accordion.entry.js +6 -6
  105. package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1724 -8312
  106. package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17102 -14789
  107. package/dist/esm/kup-calendar.entry.js +43 -35
  108. package/dist/esm/kup-cell.entry.js +8 -7
  109. package/dist/esm/kup-dash-list.entry.js +4 -4
  110. package/dist/esm/kup-dash_2.entry.js +3 -3
  111. package/dist/esm/kup-drawer.entry.js +12 -5
  112. package/dist/esm/kup-field.entry.js +2 -2
  113. package/dist/esm/kup-form-editor.entry.js +400 -0
  114. package/dist/esm/kup-iframe.entry.js +3 -3
  115. package/dist/esm/kup-image-list.entry.js +224 -0
  116. package/dist/esm/kup-lazy.entry.js +3 -3
  117. package/dist/esm/kup-magic-box.entry.js +4 -4
  118. package/dist/esm/kup-manager-58b075b4.js +16686 -0
  119. package/dist/esm/kup-nav-bar.entry.js +3 -3
  120. package/dist/esm/kup-numeric-picker.entry.js +419 -0
  121. package/dist/esm/kup-photo-frame.entry.js +5 -5
  122. package/dist/esm/kup-probe.entry.js +2 -2
  123. package/dist/esm/kup-qlik.entry.js +2 -2
  124. package/dist/esm/kup-snackbar.entry.js +6 -6
  125. package/dist/esm/loader.js +3 -3
  126. package/dist/esm/polyfills/css-shim.js +1 -1
  127. package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
  128. package/dist/esm/{utils-35c7a90d.js → utils-d7e4b3c2.js} +2 -2
  129. package/dist/ketchup/ketchup.esm.js +1 -1
  130. package/dist/ketchup/{p-5d190cf5.js → p-1ae66cc5.js} +1 -1
  131. package/dist/ketchup/{p-8be1337b.js → p-34b74425.js} +1 -1
  132. package/dist/ketchup/{p-fea316ab.entry.js → p-3c11e615.entry.js} +1 -1
  133. package/dist/ketchup/p-44ec4f03.js +1 -0
  134. package/dist/ketchup/p-4ffbc3ff.js +1 -0
  135. package/dist/ketchup/p-5264a3e6.entry.js +1 -0
  136. package/dist/ketchup/{p-d7af8156.entry.js → p-65974e48.entry.js} +1 -1
  137. package/dist/ketchup/p-65b46587.entry.js +40 -0
  138. package/dist/ketchup/{p-3813281b.entry.js → p-6dff70f8.entry.js} +1 -1
  139. package/dist/ketchup/{p-33073f4a.js → p-7454cb92.js} +1 -1
  140. package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
  141. package/dist/ketchup/p-7eff4eee.js +1 -0
  142. package/dist/ketchup/p-80968627.entry.js +1 -0
  143. package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
  144. package/dist/ketchup/p-8cdf61a4.js +1 -0
  145. package/dist/ketchup/{p-f9c41e20.entry.js → p-954cc340.entry.js} +1 -1
  146. package/dist/ketchup/p-99e0d768.entry.js +1 -0
  147. package/dist/ketchup/{p-8f735633.entry.js → p-a0f6e25c.entry.js} +1 -1
  148. package/dist/ketchup/p-a203f78b.js +45 -0
  149. package/dist/ketchup/{p-9bcda66f.entry.js → p-a615a92b.entry.js} +1 -1
  150. package/dist/ketchup/p-aca0e54b.js +30 -0
  151. package/dist/ketchup/p-b8939a8b.entry.js +1 -0
  152. package/dist/ketchup/p-bfc3bac7.js +1 -0
  153. package/dist/ketchup/{p-67c64257.entry.js → p-c5ce8951.entry.js} +1 -1
  154. package/dist/ketchup/p-cad1e097.entry.js +9 -0
  155. package/dist/ketchup/{p-68fc1428.entry.js → p-d2ee56dd.entry.js} +1 -1
  156. package/dist/ketchup/p-db71436b.entry.js +27 -0
  157. package/dist/ketchup/{p-10c8d755.js → p-e0035c58.js} +1 -1
  158. package/dist/ketchup/p-e1039cf2.entry.js +1 -0
  159. package/dist/ketchup/{p-b5e1dbfa.entry.js → p-ea10176c.entry.js} +1 -1
  160. package/dist/ketchup/p-f09f2f98.entry.js +1 -0
  161. package/dist/ketchup/{p-0751aaf6.entry.js → p-f71a1675.entry.js} +1 -1
  162. package/dist/ketchup/{p-4081f5f7.entry.js → p-fac1a08b.entry.js} +1 -1
  163. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
  164. package/dist/types/components/kup-box/kup-box.d.ts +0 -22
  165. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -0
  166. package/dist/types/components/kup-card/built-in/kup-card-numeric.d.ts +2 -0
  167. package/dist/types/components/kup-card/kup-card-declarations.d.ts +26 -1
  168. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +4 -4
  169. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  170. package/dist/types/components/kup-data-table/kup-data-table.d.ts +5 -19
  171. package/dist/types/components/kup-form-editor/kup-form-editor-declarations.d.ts +79 -0
  172. package/dist/types/components/kup-form-editor/kup-form-editor.d.ts +72 -0
  173. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
  174. package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
  175. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +19 -0
  176. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +121 -0
  177. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
  178. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
  179. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -5
  180. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -25
  181. package/dist/types/components.d.ts +265 -232
  182. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  183. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
  184. package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
  185. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -0
  186. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +14 -0
  187. package/dist/types/managers/kup-manager/kup-manager.d.ts +14 -0
  188. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
  189. package/dist/types/managers/kup-math/kup-math.d.ts +2 -1
  190. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +8 -0
  191. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +51 -0
  192. package/dist/types/types/GenericTypes.d.ts +3 -0
  193. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
  194. package/package.json +16 -15
  195. package/dist/cjs/kup-manager-4227f0a2.js +0 -8582
  196. package/dist/collection/assets/tooltip.js +0 -73
  197. package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
  198. package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
  199. package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
  200. package/dist/collection/utils/helpers.js +0 -38
  201. package/dist/esm/kup-manager-0ab94726.js +0 -8565
  202. package/dist/ketchup/p-24df4f29.entry.js +0 -27
  203. package/dist/ketchup/p-2d4f19f4.js +0 -1
  204. package/dist/ketchup/p-3445be1e.entry.js +0 -1
  205. package/dist/ketchup/p-3aab1f0d.entry.js +0 -1
  206. package/dist/ketchup/p-47b57d97.js +0 -1
  207. package/dist/ketchup/p-5186885c.entry.js +0 -1
  208. package/dist/ketchup/p-78223dc0.entry.js +0 -143
  209. package/dist/ketchup/p-96101f09.entry.js +0 -39
  210. package/dist/ketchup/p-c314b1e6.js +0 -1
  211. package/dist/ketchup/p-ee33cbe9.js +0 -9
  212. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
  213. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
  214. package/dist/types/utils/helpers.d.ts +0 -4
@@ -0,0 +1,166 @@
1
+ /**
2
+ * @prop --kup-imagelist-background-color: Sets the background color of the component.
3
+ * @prop --kup-imagelist-columns: Sets the number of columns of the grid.
4
+ * @prop --kup-imagelist-grid-gap: Sets the gap of the grid.
5
+ * @prop --kup-imagelist-image-margin: Sets the margin of the images.
6
+ * @prop --kup-imagelist-image-min-height: Sets the minimun height of the images (useful for icons).
7
+ * @prop --kup-imagelist-item-border-radius: Sets the border radius of items.
8
+ * @prop --kup-imagelist-item-height: Sets the height of an item.
9
+ * @prop --kup-imagelist-item-padding: Sets the padding of an item.
10
+ * @prop --kup-imagelist-item-width: Sets the width of an item.
11
+ * @prop --kup-imagelist-label-margin: Sets the margin of the labels.
12
+ * @prop --kup-imagelist-primary-color: Sets the primary color of the component (ripple effect).
13
+ * @prop --kup-imagelist-primary-color-rgb: Sets the RGB values of the primary color.
14
+ * @prop --kup-imagelist-text-color: Sets the text color of the labels.
15
+ */
16
+ :host {
17
+ --kup_imagelist_background_color: var(
18
+ --kup-imagelist-background-color,
19
+ transparent
20
+ );
21
+ --kup_imagelist_columns: var(--kup-imagelist-columns, 4);
22
+ --kup_imagelist_grid_gap: var(--kup-imagelist-grid-gap, 0.5em);
23
+ --kup_imagelist_image_margin: var(--kup-imagelist-image-margin, 1em auto);
24
+ --kup_imagelist_image_min_height: var(--kup-imagelist-image-min-height, 64px);
25
+ --kup_imagelist_item_border_radius: var(
26
+ --kup-imagelist-item-border-radius,
27
+ 8px
28
+ );
29
+ --kup_imagelist_item_height: var(--kup-imagelist-item-height, auto);
30
+ --kup_imagelist_item_padding: var(--kup-imagelist-item-padding, 0);
31
+ --kup_imagelist_item_width: var(--kup-imagelist-item-width, auto);
32
+ --kup_imagelist_label_margin: var(
33
+ --kup-imagelist-label-margin,
34
+ 0 auto 1em auto
35
+ );
36
+ --kup_imagelist_navbar_background_color: var(
37
+ --kup-imagelist-navbar-background-color,
38
+ transparent
39
+ );
40
+ --kup_imagelist_primary_color: var(
41
+ --kup-imagelist-primary-color,
42
+ var(--kup-primary-color)
43
+ );
44
+ --kup_imagelist_primary_color_rgb: var(
45
+ --kup-imagelist-primary-color-rgb,
46
+ var(--kup-primary-color-rgb)
47
+ );
48
+ --kup_imagelist_text_color: var(
49
+ --kup-imagelist-text-color,
50
+ var(--kup-text-color)
51
+ );
52
+ display: block;
53
+ }
54
+
55
+ .navigation-bar {
56
+ align-items: center;
57
+ background-color: var(--kup_imagelist_navbar_background_color);
58
+ display: flex;
59
+ justify-content: center;
60
+ }
61
+ .navigation-bar__wrapper {
62
+ align-items: center;
63
+ display: flex;
64
+ flex-wrap: wrap;
65
+ justify-content: center;
66
+ max-width: 100%;
67
+ position: relative;
68
+ }
69
+ .navigation-bar__wrapper--active .navigation-bar__title {
70
+ background-color: rgba(var(--kup_imagelist_primary_color_rgb), 0.15);
71
+ color: var(--kup_imagelist_primary_color);
72
+ }
73
+ .navigation-bar__wrapper--active .navigation-bar__back,
74
+ .navigation-bar__wrapper--active .navigation-bar__top {
75
+ display: block;
76
+ }
77
+ .navigation-bar__back, .navigation-bar__top {
78
+ --kup-button-primary-color-rgb: 0;
79
+ animation: fade-in 0.375s ease-in;
80
+ display: none;
81
+ }
82
+ .navigation-bar__title {
83
+ border-radius: 16px;
84
+ box-sizing: border-box;
85
+ cursor: pointer;
86
+ display: flex;
87
+ justify-content: center;
88
+ padding: 0.75em 1em;
89
+ user-select: none;
90
+ transition: background-color 125ms, color 125ms;
91
+ width: 100%;
92
+ }
93
+ .navigation-bar__title__image.f-image {
94
+ margin: 0;
95
+ }
96
+ .navigation-bar__title__label {
97
+ font-size: 1.2em;
98
+ font-weight: bold;
99
+ letter-spacing: 0.12em;
100
+ overflow: hidden;
101
+ padding: 0 0.5em;
102
+ text-overflow: ellipsis;
103
+ text-transform: uppercase;
104
+ white-space: nowrap;
105
+ }
106
+
107
+ .image-list {
108
+ background-color: var(--kup_imagelist_background_color);
109
+ display: grid;
110
+ grid-gap: var(--kup_imagelist_grid_gap);
111
+ grid-template-columns: repeat(var(--kup_imagelist_columns, 4), minmax(0px, 1fr));
112
+ margin-top: 1em;
113
+ width: 100%;
114
+ }
115
+ .image-list .f-cell {
116
+ height: 100%;
117
+ width: 100%;
118
+ }
119
+ .image-list__item {
120
+ border-radius: var(--kup_imagelist_item_border_radius);
121
+ cursor: pointer;
122
+ height: var(--kup_imagelist_item_height);
123
+ padding: var(--kup_imagelist_item_padding);
124
+ width: var(--kup_imagelist_item_width);
125
+ }
126
+ .image-list__image.f-image {
127
+ margin: var(--kup_imagelist_image_margin);
128
+ }
129
+ .image-list__image.f-image .f-image__icon {
130
+ min-height: var(--kup_imagelist_image_min_height);
131
+ }
132
+ .image-list__label {
133
+ color: var(--kup_imagelist_text_color);
134
+ letter-spacing: 0.12em;
135
+ margin: var(--kup_imagelist_label_margin);
136
+ overflow: hidden;
137
+ text-align: center;
138
+ text-overflow: ellipsis;
139
+ }
140
+ .image-list .mdc-ripple-surface {
141
+ --mdc-ripple-fg-opacity: 0.24;
142
+ }
143
+ .image-list .mdc-ripple-surface:before, .image-list .mdc-ripple-surface:after {
144
+ background-color: var(--kup_imagelist_primary_color);
145
+ }
146
+
147
+ /*-------------------------------------------------*/
148
+ /* C o m p o n e n t C l a s s e s */
149
+ /*-------------------------------------------------*/
150
+ :host(.kup-full-height) {
151
+ height: 100%;
152
+ }
153
+
154
+ :host(.kup-full-width) {
155
+ width: 100%;
156
+ }
157
+
158
+ :host(.kup-horizontal) .image-list {
159
+ display: flex;
160
+ }
161
+
162
+ :host(.kup-auto-grid) .image-list {
163
+ display: flex;
164
+ flex-wrap: wrap;
165
+ justify-content: center;
166
+ }
@@ -0,0 +1,432 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var _KupImageList_instances, _KupImageList_clickTimeout, _KupImageList_kupManager, _KupImageList_backProps, _KupImageList_topProps, _KupImageList_createItem, _KupImageList_createList;
13
+ import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, } from '@stencil/core';
14
+ import { MDCRipple } from '@material/ripple';
15
+ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
16
+ import { KupImageListProps, } from './kup-image-list-declarations';
17
+ import { getProps, setProps } from '../../utils/utils';
18
+ import { componentWrapperId } from '../../variables/GenericVariables';
19
+ import { FImage } from '../../f-components/f-image/f-image';
20
+ import { FButton } from '../../f-components/f-button/f-button';
21
+ import { FButtonStyling, } from '../../f-components/f-button/f-button-declarations';
22
+ import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
23
+ import { FCell } from '../../f-components/f-cell/f-cell';
24
+ import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
25
+ export class KupImageList {
26
+ constructor() {
27
+ _KupImageList_instances.add(this);
28
+ /*-------------------------------------------------*/
29
+ /* S t a t e s */
30
+ /*-------------------------------------------------*/
31
+ this.currentNode = null;
32
+ this.navigationBarToggled = false;
33
+ /*-------------------------------------------------*/
34
+ /* P r o p s */
35
+ /*-------------------------------------------------*/
36
+ /**
37
+ * Custom style of the component.
38
+ * @default ""
39
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
40
+ */
41
+ this.customStyle = '';
42
+ /**
43
+ * Actual data of the component.
44
+ * @default []
45
+ */
46
+ this.data = [];
47
+ /**
48
+ * When enabled displays Material's ripple effect on clicked items.
49
+ * @default true
50
+ */
51
+ this.ripple = true;
52
+ /*-------------------------------------------------*/
53
+ /* I n t e r n a l V a r i a b l e s */
54
+ /*-------------------------------------------------*/
55
+ _KupImageList_clickTimeout.set(this, []);
56
+ _KupImageList_kupManager.set(this, kupManagerInstance());
57
+ _KupImageList_backProps.set(this, {
58
+ icon: 'arrow_back',
59
+ onClick: () => {
60
+ this.currentNode = __classPrivateFieldGet(this, _KupImageList_kupManager, "f").data.node.getParent(this.data, this.currentNode);
61
+ if (!this.currentNode) {
62
+ this.navigationBarToggled = false;
63
+ }
64
+ },
65
+ styling: FButtonStyling.FLAT,
66
+ wrapperClass: 'navigation-bar__back',
67
+ });
68
+ _KupImageList_topProps.set(this, {
69
+ icon: 'arrow_upward',
70
+ onClick: () => {
71
+ this.currentNode = null;
72
+ this.navigationBarToggled = false;
73
+ },
74
+ styling: FButtonStyling.FLAT,
75
+ wrapperClass: 'navigation-bar__top',
76
+ });
77
+ }
78
+ onKupClick(node) {
79
+ if (node.children && node.children.length > 0) {
80
+ this.currentNode = node;
81
+ }
82
+ this.kupClick.emit({
83
+ comp: this,
84
+ id: this.rootElement.id,
85
+ node: node,
86
+ });
87
+ }
88
+ onKupContextMenu(e, node) {
89
+ e.preventDefault();
90
+ this.kupContextMenu.emit({
91
+ comp: this,
92
+ id: this.rootElement.id,
93
+ node: node,
94
+ });
95
+ }
96
+ onKupDblClick(node) {
97
+ for (let index = 0; index < __classPrivateFieldGet(this, _KupImageList_clickTimeout, "f").length; index++) {
98
+ clearTimeout(__classPrivateFieldGet(this, _KupImageList_clickTimeout, "f")[index]);
99
+ }
100
+ __classPrivateFieldSet(this, _KupImageList_clickTimeout, [], "f");
101
+ this.kupDblClick.emit({
102
+ comp: this,
103
+ id: this.rootElement.id,
104
+ node: node,
105
+ });
106
+ }
107
+ /*-------------------------------------------------*/
108
+ /* P u b l i c M e t h o d s */
109
+ /*-------------------------------------------------*/
110
+ /**
111
+ * Used to retrieve component's props values.
112
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
113
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
114
+ */
115
+ async getProps(descriptions) {
116
+ return getProps(this, KupImageListProps, descriptions);
117
+ }
118
+ /**
119
+ * This method is used to trigger a new render of the component.
120
+ */
121
+ async refresh() {
122
+ forceUpdate(this);
123
+ }
124
+ /**
125
+ * Sets the props to the component.
126
+ * @param {GenericObject} props - Object containing props that will be set to the component.
127
+ */
128
+ async setProps(props) {
129
+ setProps(this, KupImageListProps, props);
130
+ }
131
+ /*-------------------------------------------------*/
132
+ /* L i f e c y c l e H o o k s */
133
+ /*-------------------------------------------------*/
134
+ componentWillLoad() {
135
+ __classPrivateFieldGet(this, _KupImageList_kupManager, "f").debug.logLoad(this, false);
136
+ __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.register(this);
137
+ __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.register(this);
138
+ }
139
+ componentDidLoad() {
140
+ __classPrivateFieldGet(this, _KupImageList_kupManager, "f").debug.logLoad(this, true);
141
+ }
142
+ componentWillRender() {
143
+ __classPrivateFieldGet(this, _KupImageList_kupManager, "f").debug.logRender(this, false);
144
+ }
145
+ componentDidRender() {
146
+ const root = this.rootElement.shadowRoot;
147
+ if (root && this.ripple) {
148
+ const rippleCells = root.querySelectorAll('.mdc-ripple-surface:not(.mdc-ripple-upgraded)');
149
+ if (rippleCells) {
150
+ for (let i = 0; i < rippleCells.length; i++) {
151
+ MDCRipple.attachTo(rippleCells[i]);
152
+ }
153
+ }
154
+ }
155
+ __classPrivateFieldGet(this, _KupImageList_kupManager, "f").debug.logRender(this, true);
156
+ }
157
+ render() {
158
+ const hasNavigation = !!this.currentNode;
159
+ return (h(Host, null,
160
+ h("style", null, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)),
161
+ h("div", { id: componentWrapperId },
162
+ h("div", { class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
163
+ ? 'navigation-bar__wrapper--active'
164
+ : ''}` },
165
+ h("div", { class: `navigation-bar__title`, onClick: () => {
166
+ this.navigationBarToggled =
167
+ !this.navigationBarToggled;
168
+ } },
169
+ h(FImage, { fit: true, resource: this.currentNode.icon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }),
170
+ h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)),
171
+ h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })),
172
+ h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null),
173
+ h("div", { class: "image-list" }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
174
+ }
175
+ disconnectedCallback() {
176
+ __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.unregister(this);
177
+ __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.unregister(this);
178
+ }
179
+ static get is() { return "kup-image-list"; }
180
+ static get encapsulation() { return "shadow"; }
181
+ static get originalStyleUrls() { return {
182
+ "$": ["kup-image-list.scss"]
183
+ }; }
184
+ static get styleUrls() { return {
185
+ "$": ["kup-image-list.css"]
186
+ }; }
187
+ static get properties() { return {
188
+ "customStyle": {
189
+ "type": "string",
190
+ "mutable": false,
191
+ "complexType": {
192
+ "original": "string",
193
+ "resolved": "string",
194
+ "references": {}
195
+ },
196
+ "required": false,
197
+ "optional": false,
198
+ "docs": {
199
+ "tags": [{
200
+ "name": "default",
201
+ "text": "\"\""
202
+ }, {
203
+ "name": "see",
204
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
205
+ }],
206
+ "text": "Custom style of the component."
207
+ },
208
+ "attribute": "custom-style",
209
+ "reflect": false,
210
+ "defaultValue": "''"
211
+ },
212
+ "data": {
213
+ "type": "unknown",
214
+ "mutable": false,
215
+ "complexType": {
216
+ "original": "KupDataNode[]",
217
+ "resolved": "KupDataNode[]",
218
+ "references": {
219
+ "KupDataNode": {
220
+ "location": "import",
221
+ "path": "../../managers/kup-data/kup-data-declarations"
222
+ }
223
+ }
224
+ },
225
+ "required": false,
226
+ "optional": false,
227
+ "docs": {
228
+ "tags": [{
229
+ "name": "default",
230
+ "text": "[]"
231
+ }],
232
+ "text": "Actual data of the component."
233
+ },
234
+ "defaultValue": "[]"
235
+ },
236
+ "ripple": {
237
+ "type": "boolean",
238
+ "mutable": false,
239
+ "complexType": {
240
+ "original": "boolean",
241
+ "resolved": "boolean",
242
+ "references": {}
243
+ },
244
+ "required": false,
245
+ "optional": false,
246
+ "docs": {
247
+ "tags": [{
248
+ "name": "default",
249
+ "text": "true"
250
+ }],
251
+ "text": "When enabled displays Material's ripple effect on clicked items."
252
+ },
253
+ "attribute": "ripple",
254
+ "reflect": false,
255
+ "defaultValue": "true"
256
+ }
257
+ }; }
258
+ static get states() { return {
259
+ "currentNode": {},
260
+ "navigationBarToggled": {}
261
+ }; }
262
+ static get events() { return [{
263
+ "method": "kupClick",
264
+ "name": "kup-imagelist-click",
265
+ "bubbles": true,
266
+ "cancelable": false,
267
+ "composed": true,
268
+ "docs": {
269
+ "tags": [],
270
+ "text": ""
271
+ },
272
+ "complexType": {
273
+ "original": "KupImageListEventPayload",
274
+ "resolved": "KupImageListEventPayload",
275
+ "references": {
276
+ "KupImageListEventPayload": {
277
+ "location": "import",
278
+ "path": "./kup-image-list-declarations"
279
+ }
280
+ }
281
+ }
282
+ }, {
283
+ "method": "kupContextMenu",
284
+ "name": "kup-imagelist-contextmenu",
285
+ "bubbles": true,
286
+ "cancelable": false,
287
+ "composed": true,
288
+ "docs": {
289
+ "tags": [],
290
+ "text": ""
291
+ },
292
+ "complexType": {
293
+ "original": "KupImageListEventPayload",
294
+ "resolved": "KupImageListEventPayload",
295
+ "references": {
296
+ "KupImageListEventPayload": {
297
+ "location": "import",
298
+ "path": "./kup-image-list-declarations"
299
+ }
300
+ }
301
+ }
302
+ }, {
303
+ "method": "kupDblClick",
304
+ "name": "kup-imagelist-dblclick",
305
+ "bubbles": true,
306
+ "cancelable": false,
307
+ "composed": true,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": ""
311
+ },
312
+ "complexType": {
313
+ "original": "KupImageListEventPayload",
314
+ "resolved": "KupImageListEventPayload",
315
+ "references": {
316
+ "KupImageListEventPayload": {
317
+ "location": "import",
318
+ "path": "./kup-image-list-declarations"
319
+ }
320
+ }
321
+ }
322
+ }]; }
323
+ static get methods() { return {
324
+ "getProps": {
325
+ "complexType": {
326
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
327
+ "parameters": [{
328
+ "tags": [{
329
+ "name": "param",
330
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
331
+ }],
332
+ "text": "- When provided and true, the result will be the list of props with their description."
333
+ }],
334
+ "references": {
335
+ "Promise": {
336
+ "location": "global"
337
+ },
338
+ "GenericObject": {
339
+ "location": "import",
340
+ "path": "../../types/GenericTypes"
341
+ }
342
+ },
343
+ "return": "Promise<GenericObject>"
344
+ },
345
+ "docs": {
346
+ "text": "Used to retrieve component's props values.",
347
+ "tags": [{
348
+ "name": "param",
349
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
350
+ }, {
351
+ "name": "returns",
352
+ "text": "List of props as object, each key will be a prop."
353
+ }]
354
+ }
355
+ },
356
+ "refresh": {
357
+ "complexType": {
358
+ "signature": "() => Promise<void>",
359
+ "parameters": [],
360
+ "references": {
361
+ "Promise": {
362
+ "location": "global"
363
+ }
364
+ },
365
+ "return": "Promise<void>"
366
+ },
367
+ "docs": {
368
+ "text": "This method is used to trigger a new render of the component.",
369
+ "tags": []
370
+ }
371
+ },
372
+ "setProps": {
373
+ "complexType": {
374
+ "signature": "(props: GenericObject) => Promise<void>",
375
+ "parameters": [{
376
+ "tags": [{
377
+ "name": "param",
378
+ "text": "props - Object containing props that will be set to the component."
379
+ }],
380
+ "text": "- Object containing props that will be set to the component."
381
+ }],
382
+ "references": {
383
+ "Promise": {
384
+ "location": "global"
385
+ },
386
+ "GenericObject": {
387
+ "location": "import",
388
+ "path": "../../types/GenericTypes"
389
+ }
390
+ },
391
+ "return": "Promise<void>"
392
+ },
393
+ "docs": {
394
+ "text": "Sets the props to the component.",
395
+ "tags": [{
396
+ "name": "param",
397
+ "text": "props - Object containing props that will be set to the component."
398
+ }]
399
+ }
400
+ }
401
+ }; }
402
+ static get elementRef() { return "rootElement"; }
403
+ }
404
+ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakMap(), _KupImageList_backProps = new WeakMap(), _KupImageList_topProps = new WeakMap(), _KupImageList_instances = new WeakSet(), _KupImageList_createItem = function _KupImageList_createItem(node) {
405
+ const props = {
406
+ fit: true,
407
+ resource: node.icon,
408
+ title: node.title,
409
+ wrapperClass: 'image-list__image',
410
+ };
411
+ const image = h(FImage, Object.assign({}, props));
412
+ const label = h("div", { class: "image-list__label" }, node.value);
413
+ return (h(FCell, { cell: { value: node.value, icon: node.icon, obj: node.obj }, column: { name: 'IMAGE', title: 'Image' }, density: FCellPadding.NONE, row: Object.assign({}, node) },
414
+ h("div", { class: "image-list__wrapper" },
415
+ image,
416
+ label)));
417
+ }, _KupImageList_createList = function _KupImageList_createList() {
418
+ const nodes = [];
419
+ const items = this.currentNode ? this.currentNode.children : this.data;
420
+ for (let index = 0; items && index < items.length; index++) {
421
+ const node = items[index];
422
+ const classObj = {
423
+ 'image-list__item': true,
424
+ 'mdc-ripple-surface': this.ripple ? true : false,
425
+ };
426
+ const item = (h("div", { onClick: () => {
427
+ __classPrivateFieldGet(this, _KupImageList_clickTimeout, "f").push(setTimeout(() => this.onKupClick(node), 300));
428
+ }, onContextMenu: (e) => this.onKupContextMenu(e, node), onDblClick: () => this.onKupDblClick(node), class: classObj }, __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createItem).call(this, node)));
429
+ nodes.push(item);
430
+ }
431
+ return nodes;
432
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Props of the kup-numeric-picker component.
3
+ * Used to export every prop in an object.
4
+ */
5
+ export var KupNumericPickerProps;
6
+ (function (KupNumericPickerProps) {
7
+ KupNumericPickerProps["customStyle"] = "Custom style of the component.";
8
+ KupNumericPickerProps["data"] = "Props of the sub-components.";
9
+ KupNumericPickerProps["decimals"] = "Defaults at false. When set to true, the component has decimals.";
10
+ KupNumericPickerProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
11
+ KupNumericPickerProps["initialValue"] = "Sets the initial value of the component";
12
+ KupNumericPickerProps["maxDecimals"] = "when set, the component allows you to enter decimals with a maximum of characters.";
13
+ KupNumericPickerProps["maxIntegers"] = "When set, the component allows you to enter integer numbers with a maximum of characters.";
14
+ KupNumericPickerProps["maxLength"] = "When set, the component allows you to enter numbers with a maximum of characters, including decimals.";
15
+ KupNumericPickerProps["negative"] = "Defaults at false. When set to true, the component has negative number.";
16
+ })(KupNumericPickerProps || (KupNumericPickerProps = {}));
@@ -0,0 +1,50 @@
1
+ :host {
2
+ display: block;
3
+ font-size: var(--kup-font-size);
4
+ }
5
+
6
+ .f-text-field {
7
+ position: relative;
8
+ }
9
+
10
+ /*-------------------------------------------------*/
11
+ /* C o m p o n e n t C l a s s e s */
12
+ /*-------------------------------------------------*/
13
+ :host(.kup-full-height) {
14
+ height: 100%;
15
+ }
16
+ :host(.kup-full-height) #kup-component {
17
+ height: 100%;
18
+ }
19
+
20
+ :host(.kup-full-width) {
21
+ width: 100%;
22
+ }
23
+ :host(.kup-full-width) #kup-component {
24
+ width: 100%;
25
+ }
26
+
27
+ :host(.kup-danger) {
28
+ --kup-textfield-primary-color: var(--kup-danger-color);
29
+ --kup-textfield-primary-color-rgb: var(--kup-danger-color-rgb);
30
+ }
31
+
32
+ :host(.kup-info) {
33
+ --kup-textfield-primary-color: var(--kup-info-color);
34
+ --kup-textfield-primary-color-rgb: var(--kup-info-color-rgb);
35
+ }
36
+
37
+ :host(.kup-secondary) {
38
+ --kup-textfield-primary-color: var(--kup-secondary-color);
39
+ --kup-textfield-primary-color-rgb: var(--kup-secondary-color-rgb);
40
+ }
41
+
42
+ :host(.kup-success) {
43
+ --kup-textfield-primary-color: var(--kup-success-color);
44
+ --kup-textfield-primary-color-rgb: var(--kup-success-color-rgb);
45
+ }
46
+
47
+ :host(.kup-warning) {
48
+ --kup-textfield-primary-color: var(--kup-warning-color);
49
+ --kup-textfield-primary-color-rgb: var(--kup-warning-color-rgb);
50
+ }