@sme.up/ketchup 5.2.1-SNAPSHOT → 6.1.0-SNAPSHOT

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/cjs/{cell-utils-d96b2993.js → cell-utils-a78d6fac.js} +2 -2
  3. package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
  4. package/dist/cjs/{f-button-2b9b99b1.js → f-button-ac179257.js} +1 -1
  5. package/dist/cjs/{f-cell-8351cb84.js → f-cell-69294bca.js} +37 -37
  6. package/dist/cjs/{f-chip-df59e1b0.js → f-chip-b00897d7.js} +4 -3
  7. package/dist/cjs/{f-image-12bab3b5.js → f-image-89f25556.js} +1 -1
  8. package/dist/cjs/f-paginator-utils-8fa501b3.js +1898 -0
  9. package/dist/cjs/{f-text-field-e7c35b5b.js → f-text-field-e1e45ade.js} +1 -1
  10. package/dist/cjs/{f-text-field-mdc-a67f5dfe.js → f-text-field-mdc-85997738.js} +23 -305
  11. package/dist/cjs/ketchup.cjs.js +2 -2
  12. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  13. package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1493 -5418
  14. package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17101 -14787
  15. package/dist/cjs/kup-calendar.cjs.entry.js +41 -33
  16. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  17. package/dist/cjs/kup-dash-list.cjs.entry.js +3 -3
  18. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-drawer.cjs.entry.js +11 -4
  20. package/dist/cjs/kup-field.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-form-editor.cjs.entry.js +404 -0
  22. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  23. package/dist/cjs/kup-image-list.cjs.entry.js +228 -0
  24. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-manager-7a941909.js +16703 -0
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
  30. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/cjs/{utils-e99921c1.js → utils-6287d878.js} +1 -1
  35. package/dist/collection/assets/card.js +4 -5
  36. package/dist/collection/assets/data-table.js +0 -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 +8 -0
  40. package/dist/collection/assets/kupdata.js +0 -3
  41. package/dist/collection/assets/kuptooltip.js +53 -7
  42. package/dist/collection/assets/tree.js +0 -128
  43. package/dist/collection/collection-manifest.json +7 -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-clock.js +1 -1
  48. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  49. package/dist/collection/components/kup-card/kup-card.css +26 -8
  50. package/dist/collection/components/kup-card/kup-card.js +1 -2
  51. package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
  52. package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
  53. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
  54. package/dist/collection/components/kup-data-table/kup-data-table.js +19 -136
  55. package/dist/collection/components/kup-drawer/kup-drawer.css +1 -0
  56. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
  57. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +23 -0
  58. package/dist/collection/components/kup-form-editor/kup-form-editor.css +80 -0
  59. package/dist/collection/components/kup-form-editor/kup-form-editor.js +561 -0
  60. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
  61. package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
  62. package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
  63. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +3 -13
  64. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  65. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  66. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
  67. package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -2
  68. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
  69. package/dist/collection/components/kup-tree/kup-tree.css +10 -3
  70. package/dist/collection/components/kup-tree/kup-tree.js +65 -140
  71. package/dist/collection/f-components/f-cell/f-cell.js +7 -7
  72. package/dist/collection/f-components/f-chip/f-chip.js +2 -1
  73. package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
  74. package/dist/collection/managers/kup-data/kup-data.js +4 -1
  75. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
  76. package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
  77. package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
  78. package/dist/collection/managers/kup-manager/kup-manager.js +21 -2
  79. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
  80. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +53 -20
  81. package/dist/collection/types/GenericTypes.js +2 -0
  82. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +7 -11
  83. package/dist/esm/{cell-utils-f4bdbbc8.js → cell-utils-964da6b5.js} +3 -3
  84. package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
  85. package/dist/esm/{f-button-54a49fd8.js → f-button-871a544b.js} +1 -1
  86. package/dist/esm/{f-cell-d5dac50b.js → f-cell-521ef17a.js} +38 -38
  87. package/dist/esm/{f-chip-a3035b4b.js → f-chip-1dda722f.js} +5 -4
  88. package/dist/esm/{f-image-d32465e3.js → f-image-c468d8ae.js} +1 -1
  89. package/dist/esm/f-paginator-utils-7dff8ff0.js +1884 -0
  90. package/dist/esm/{f-text-field-c25cc63f.js → f-text-field-d6c61c73.js} +1 -1
  91. package/dist/esm/{f-text-field-mdc-9fbbefc3.js → f-text-field-mdc-d42d3f9e.js} +2 -284
  92. package/dist/esm/ketchup.js +2 -2
  93. package/dist/esm/kup-accordion.entry.js +5 -5
  94. package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1445 -5368
  95. package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17101 -14788
  96. package/dist/esm/kup-calendar.entry.js +42 -34
  97. package/dist/esm/kup-cell.entry.js +7 -7
  98. package/dist/esm/kup-dash-list.entry.js +3 -3
  99. package/dist/esm/kup-dash_2.entry.js +2 -2
  100. package/dist/esm/kup-drawer.entry.js +11 -4
  101. package/dist/esm/kup-field.entry.js +1 -1
  102. package/dist/esm/kup-form-editor.entry.js +400 -0
  103. package/dist/esm/kup-iframe.entry.js +2 -2
  104. package/dist/esm/kup-image-list.entry.js +224 -0
  105. package/dist/esm/kup-lazy.entry.js +2 -2
  106. package/dist/esm/kup-magic-box.entry.js +3 -3
  107. package/dist/esm/kup-manager-58b075b4.js +16686 -0
  108. package/dist/esm/kup-nav-bar.entry.js +2 -2
  109. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  110. package/dist/esm/kup-photo-frame.entry.js +4 -4
  111. package/dist/esm/kup-probe.entry.js +1 -1
  112. package/dist/esm/kup-qlik.entry.js +1 -1
  113. package/dist/esm/kup-snackbar.entry.js +5 -5
  114. package/dist/esm/loader.js +2 -2
  115. package/dist/esm/polyfills/css-shim.js +1 -1
  116. package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
  117. package/dist/esm/{utils-f24319a0.js → utils-d7e4b3c2.js} +2 -2
  118. package/dist/ketchup/ketchup.esm.js +1 -1
  119. package/dist/ketchup/{p-7a74ad17.js → p-1ae66cc5.js} +1 -1
  120. package/dist/ketchup/{p-e6709c26.entry.js → p-3c11e615.entry.js} +1 -1
  121. package/dist/ketchup/{p-669bde31.js → p-44ec4f03.js} +1 -1
  122. package/dist/ketchup/p-4ffbc3ff.js +1 -0
  123. package/dist/ketchup/p-5264a3e6.entry.js +1 -0
  124. package/dist/ketchup/{p-e8e3c9da.entry.js → p-65974e48.entry.js} +1 -1
  125. package/dist/ketchup/p-65b46587.entry.js +40 -0
  126. package/dist/ketchup/{p-09d708c4.entry.js → p-6dff70f8.entry.js} +1 -1
  127. package/dist/ketchup/{p-34748c91.js → p-7454cb92.js} +1 -1
  128. package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
  129. package/dist/ketchup/p-7eff4eee.js +1 -0
  130. package/dist/ketchup/p-80968627.entry.js +1 -0
  131. package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
  132. package/dist/ketchup/p-8cdf61a4.js +1 -0
  133. package/dist/ketchup/{p-8418e8fa.entry.js → p-954cc340.entry.js} +1 -1
  134. package/dist/ketchup/p-976244f9.entry.js +9 -0
  135. package/dist/ketchup/{p-4173422f.entry.js → p-99e0d768.entry.js} +1 -1
  136. package/dist/ketchup/{p-41741c28.entry.js → p-a0f6e25c.entry.js} +1 -1
  137. package/dist/ketchup/p-a203f78b.js +45 -0
  138. package/dist/ketchup/{p-9a61d8dc.entry.js → p-a615a92b.entry.js} +1 -1
  139. package/dist/ketchup/p-aca0e54b.js +30 -0
  140. package/dist/ketchup/p-b8939a8b.entry.js +1 -0
  141. package/dist/ketchup/p-bfc3bac7.js +1 -0
  142. package/dist/ketchup/p-c5ce8951.entry.js +1 -0
  143. package/dist/ketchup/{p-bb8844bf.entry.js → p-d2ee56dd.entry.js} +1 -1
  144. package/dist/ketchup/p-db71436b.entry.js +27 -0
  145. package/dist/ketchup/{p-40f97429.js → p-e0035c58.js} +1 -1
  146. package/dist/ketchup/p-e1039cf2.entry.js +1 -0
  147. package/dist/ketchup/{p-44192f30.entry.js → p-ea10176c.entry.js} +1 -1
  148. package/dist/ketchup/{p-67842f1e.entry.js → p-f09f2f98.entry.js} +1 -1
  149. package/dist/ketchup/{p-203d6295.entry.js → p-f71a1675.entry.js} +1 -1
  150. package/dist/ketchup/{p-11e72a8c.entry.js → p-fac1a08b.entry.js} +1 -1
  151. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
  152. package/dist/types/components/kup-box/kup-box.d.ts +0 -22
  153. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -4
  154. package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -19
  155. package/dist/types/components/kup-form-editor/kup-form-editor-declarations.d.ts +79 -0
  156. package/dist/types/components/kup-form-editor/kup-form-editor.d.ts +72 -0
  157. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
  158. package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
  159. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
  160. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
  161. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -5
  162. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -24
  163. package/dist/types/components.d.ts +121 -231
  164. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  165. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
  166. package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
  167. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -0
  168. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +4 -0
  169. package/dist/types/managers/kup-manager/kup-manager.d.ts +12 -0
  170. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +3 -3
  171. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +17 -6
  172. package/dist/types/types/GenericTypes.d.ts +2 -0
  173. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
  174. package/package.json +15 -14
  175. package/dist/cjs/kup-manager-5c03da64.js +0 -8795
  176. package/dist/collection/assets/tooltip.js +0 -73
  177. package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
  178. package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
  179. package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
  180. package/dist/collection/utils/helpers.js +0 -38
  181. package/dist/esm/kup-manager-9316a184.js +0 -8778
  182. package/dist/ketchup/p-12773ca8.js +0 -9
  183. package/dist/ketchup/p-44f8da2a.js +0 -1
  184. package/dist/ketchup/p-4f56932b.js +0 -1
  185. package/dist/ketchup/p-7ba8fa4a.entry.js +0 -39
  186. package/dist/ketchup/p-7de0d7e1.js +0 -1
  187. package/dist/ketchup/p-96bf19aa.entry.js +0 -1
  188. package/dist/ketchup/p-b0ddcce9.entry.js +0 -9
  189. package/dist/ketchup/p-b6c21223.entry.js +0 -27
  190. package/dist/ketchup/p-c58a2a81.entry.js +0 -1
  191. package/dist/ketchup/p-ca3d585b.entry.js +0 -1
  192. package/dist/ketchup/p-ecb7069b.js +0 -135
  193. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
  194. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
  195. package/dist/types/utils/helpers.d.ts +0 -4
@@ -1,4 +1,5 @@
1
1
  const dataTable = document.getElementById('data-table');
2
+ const fCellHover = document.getElementById('fcell-hover');
2
3
  const registerThis = document.getElementById('register-this');
3
4
  const registerThisInstead = document.getElementById('register-this-instead');
4
5
  const unregisterBoth = document.getElementById('unregister-both');
@@ -22,11 +23,55 @@ const dataTableTooltip = (e) => {
22
23
  }
23
24
  };
24
25
 
26
+ const fCellToggle = () => {
27
+ if (kupManager.tooltip.fCellCallbacks) {
28
+ kupManager.tooltip.fCellCallbacks = null;
29
+ } else {
30
+ kupManager.tooltip.fCellCallbacks = {
31
+ enter: (_e, anchor) => {
32
+ anchor.style.setProperty(
33
+ '--kup-cell-background',
34
+ 'var(--kup-primary-color)'
35
+ );
36
+ anchor.style.setProperty(
37
+ '--kup-cell-text-color',
38
+ 'var(--kup-text-on-primary-color)'
39
+ );
40
+ const props = anchor['kup-get-cell-props']();
41
+ const cardText = ['Cell props'];
42
+ for (const key in props) {
43
+ const prop = props[key];
44
+ if (key !== 'component') {
45
+ cardText.push(key);
46
+ let value = '';
47
+ try {
48
+ value = JSON.stringify(prop);
49
+ } catch (error) {
50
+ value = 'Unstringifiable JSON';
51
+ }
52
+ cardText.push(value);
53
+ }
54
+ }
55
+ kupManager.tooltip.show(anchor, {
56
+ data: {
57
+ text: cardText,
58
+ },
59
+ layoutNumber: 15,
60
+ });
61
+ },
62
+ leave: (_e, anchor) => {
63
+ anchor.style.setProperty('--kup-cell-background', '');
64
+ anchor.style.setProperty('--kup-cell-text-color', '');
65
+ kupManager.tooltip.hide();
66
+ },
67
+ };
68
+ }
69
+ };
70
+
25
71
  const registerThisTooltip = (anchor) => {
26
72
  anchor.disabled = true;
27
- kupManager.tooltip.register(
28
- anchor,
29
- () => {
73
+ kupManager.tooltip.register(anchor, {
74
+ enter: () => {
30
75
  console.log('In callback.');
31
76
  kupManager.tooltip.show(anchor, {
32
77
  data: {
@@ -35,7 +80,7 @@ const registerThisTooltip = (anchor) => {
35
80
  layoutNumber: '8',
36
81
  });
37
82
  },
38
- (e) => {
83
+ over: (e) => {
39
84
  console.log('Hovering.');
40
85
  kupManager.tooltip.element.style.setProperty(
41
86
  '--kup-background-color',
@@ -58,11 +103,11 @@ const registerThisTooltip = (anchor) => {
58
103
  layoutNumber: '15',
59
104
  });
60
105
  },
61
- () => {
106
+ leave: () => {
62
107
  console.log('Out callback.');
63
108
  kupManager.tooltip.hide();
64
- }
65
- );
109
+ },
110
+ });
66
111
  };
67
112
 
68
113
  const unregister = () => {
@@ -73,6 +118,7 @@ const unregister = () => {
73
118
  };
74
119
 
75
120
  dataTable.addEventListener('kup-datatable-contextmenu', dataTableTooltip);
121
+ fCellHover.addEventListener('kup-button-click', fCellToggle);
76
122
  registerThis.addEventListener(
77
123
  'kup-button-click',
78
124
  registerThisTooltip.bind(registerThisTooltip, registerThis)
@@ -190169,125 +190169,6 @@ let treeLayoutFixedEl = document.getElementById('tree-layout-fixed');
190169
190169
  if (treeLayoutFixedEl != null) {
190170
190170
  treeLayoutFixedEl.columns = tlfCols;
190171
190171
  treeLayoutFixedEl.data = tlfData;
190172
- treeLayoutFixedEl.addEventListener('kup-tooltip-loaddata', ({ detail }) => {
190173
- console.log(JSON.stringify(detail));
190174
- onLoadData(detail);
190175
- });
190176
- treeLayoutFixedEl.addEventListener(
190177
- 'kup-tooltip-loaddetail',
190178
- ({ detail }) => {
190179
- console.log(JSON.stringify(detail));
190180
- onLoadDetailData(detail);
190181
- }
190182
- );
190183
- }
190184
-
190185
- function onLoadData(detail) {
190186
- detail.comp.data = {
190187
- //image: this.images.bornToDie,
190188
- title: 'Born to die',
190189
- content: {
190190
- info1: {
190191
- label: 'Author',
190192
- value: 'Lana del Rey',
190193
- },
190194
- info2: {
190195
- label: 'Year',
190196
- value: 2012,
190197
- },
190198
- },
190199
- };
190200
- console.log('data:' + JSON.stringify(detail.comp.data));
190201
- }
190202
-
190203
- function onLoadDetailData(detail) {
190204
- detail.comp.detailData = {
190205
- columns: [
190206
- {
190207
- name: 'label',
190208
- title: 'Label',
190209
- size: '10',
190210
- },
190211
- {
190212
- name: 'value',
190213
- title: 'Value',
190214
- size: '10',
190215
- },
190216
- ],
190217
- rows: [
190218
- {
190219
- cells: {
190220
- label: {
190221
- value: 'Born to die',
190222
- },
190223
- value: {
190224
- value: '4:46',
190225
- },
190226
- },
190227
- },
190228
- {
190229
- cells: {
190230
- label: {
190231
- value: 'Off to the races',
190232
- },
190233
- value: {
190234
- value: '5:00',
190235
- },
190236
- },
190237
- },
190238
- {
190239
- cells: {
190240
- label: {
190241
- value: 'Blue jeans',
190242
- },
190243
- value: {
190244
- value: '3:29',
190245
- },
190246
- },
190247
- },
190248
- ],
190249
- actions: {
190250
- /** Ne metto 7 per verificare se vengono visualizzati solo i primi 5 */
190251
- command: [
190252
- {
190253
- text: 'Attiva il riconoscimento facciale',
190254
- icon: 'face',
190255
- exec: 'F(EXD;*SCO;) 1(CN;CLI;C0001)',
190256
- },
190257
- {
190258
- text: 'Accendi la luce',
190259
- icon: 'lightbulb-on',
190260
- exec: 'F(EXD;*SCO;) 1(CN;CLI;C0002)',
190261
- },
190262
- {
190263
- text: 'Leggi gli ultimi feed rss',
190264
- icon: 'rss',
190265
- exec: 'F(EXD;*SCO;) 1(CN;CLI;C0003)',
190266
- },
190267
- {
190268
- text: 'Accedi a videocorso su udemy',
190269
- icon: 'school',
190270
- exec: 'F(EXD;*SCO;) 1(CN;CLI;C0004)',
190271
- },
190272
- {
190273
- text: 'Sblocca la serratura della cantina',
190274
- icon: 'lock_open',
190275
- exec: 'F(EXD;*SCO;) 1(CN;CLI;C0005)',
190276
- },
190277
- {
190278
- text: "Fai qualcosa d'altro",
190279
- icon: 'play',
190280
- exec: 'F(EXD;*SCO;) 1(CN;CLI;C0005)',
190281
- },
190282
- {
190283
- text: "Fai qualcosa d'altro",
190284
- icon: 'play',
190285
- exec: 'F(EXD;*SCO;) 1(CN;CLI;C0006)',
190286
- },
190287
- ],
190288
- },
190289
- };
190290
- console.log('detailData:' + JSON.stringify(detail.comp.detailData));
190291
190172
  }
190292
190173
 
190293
190174
  let tmCols = [
@@ -227779,15 +227660,6 @@ let treeMixedEl = document.getElementById('tree-mixed');
227779
227660
  if (treeMixedEl != null) {
227780
227661
  treeMixedEl.columns = tmCols;
227781
227662
  treeMixedEl.data = tmData;
227782
- /*
227783
- treeMixedEl.addEventListener('kup-tooltip-loaddata', ({ detail }) => {
227784
- console.log(JSON.stringify(detail));
227785
- onLoadData(detail);
227786
- });
227787
- treeMixedEl.addEventListener('kup-tooltip-loaddetail', ({ detail }) => {
227788
- console.log(JSON.stringify(detail));
227789
- onLoadDetailData(detail);
227790
- });*/
227791
227663
  }
227792
227664
 
227793
227665
  let f2Data = [
@@ -2,13 +2,12 @@
2
2
  "entries": [
3
3
  "./components/kup-card/kup-card.js",
4
4
  "./components/kup-badge/kup-badge.js",
5
- "./components/kup-tooltip/kup-tooltip.js",
6
- "./components/kup-text-field/kup-text-field.js",
7
- "./components/kup-chart/kup-chart.js",
8
- "./components/kup-data-table/kup-data-table.js",
9
- "./components/kup-tree/kup-tree.js",
10
5
  "./components/kup-accordion/kup-accordion.js",
11
6
  "./components/kup-autocomplete/kup-autocomplete.js",
7
+ "./components/kup-chart/kup-chart.js",
8
+ "./components/kup-tree/kup-tree.js",
9
+ "./components/kup-text-field/kup-text-field.js",
10
+ "./components/kup-data-table/kup-data-table.js",
12
11
  "./components/kup-box/kup-box.js",
13
12
  "./components/kup-button/kup-button.js",
14
13
  "./components/kup-button-list/kup-button-list.js",
@@ -25,10 +24,12 @@
25
24
  "./components/kup-dropdown-button/kup-dropdown-button.js",
26
25
  "./components/kup-echart/kup-echart.js",
27
26
  "./components/kup-field/kup-field.js",
27
+ "./components/kup-form-editor/kup-form-editor.js",
28
28
  "./components/kup-gauge/kup-gauge.js",
29
29
  "./components/kup-grid/kup-grid.js",
30
30
  "./components/kup-iframe/kup-iframe.js",
31
31
  "./components/kup-image/kup-image.js",
32
+ "./components/kup-image-list/kup-image-list.js",
32
33
  "./components/kup-lazy/kup-lazy.js",
33
34
  "./components/kup-radio/kup-radio.js",
34
35
  "./components/kup-list/kup-list.js",
@@ -48,7 +49,7 @@
48
49
  ],
49
50
  "compiler": {
50
51
  "name": "@stencil/core",
51
- "version": "2.14.2",
52
+ "version": "2.15.2",
52
53
  "typescriptVersion": "4.5.4"
53
54
  },
54
55
  "collections": [],
@@ -158,7 +158,7 @@ export class KupAutocomplete {
158
158
  });
159
159
  }
160
160
  onKupItemClick(e) {
161
- this.onKupChange(e.detail.selected.value);
161
+ this.onKupChange(e.detail.selected.id);
162
162
  this.closeList();
163
163
  if (this.textfieldEl) {
164
164
  this.textfieldEl.focus();
@@ -25,13 +25,9 @@ export var KupBoxProps;
25
25
  KupBoxProps["selectBox"] = "Automatically selects the box at the specified index.";
26
26
  KupBoxProps["selectedRowsState"] = "Multiple selection.";
27
27
  KupBoxProps["showSelection"] = "If enabled, highlights the selected box/boxes.";
28
- KupBoxProps["showTooltipOnRightClick"] = "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.";
29
28
  KupBoxProps["sortBy"] = "If sorting is enabled, specifies which column to sort.";
30
29
  KupBoxProps["sortEnabled"] = "Enable sorting.";
31
30
  KupBoxProps["stateId"] = "";
32
31
  KupBoxProps["store"] = "";
33
32
  KupBoxProps["swipeDisabled"] = "Disable swipe.";
34
- KupBoxProps["tooltipDetailTimeout"] = "Defines the timeout for tooltip detail.";
35
- KupBoxProps["tooltipEnabled"] = "Enable show tooltip.";
36
- KupBoxProps["tooltipLoadTimeout"] = "Defines the timeout for tooltip load.";
37
33
  })(KupBoxProps || (KupBoxProps = {}));
@@ -5,7 +5,6 @@ import { getColumnByName } from '../../utils/cell-utils';
5
5
  import { filterRows, sortRows, paginateRows, } from '../kup-data-table/kup-data-table-helper';
6
6
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
7
7
  import { KupBoxState } from './kup-box-state';
8
- import { setTooltip, unsetTooltip } from '../../utils/helpers';
9
8
  import { getProps, identify, setProps } from '../../utils/utils';
10
9
  import { FImage } from '../../f-components/f-image/f-image';
11
10
  import { FChip } from '../../f-components/f-chip/f-chip';
@@ -123,11 +122,6 @@ export class KupBox {
123
122
  * @default true
124
123
  */
125
124
  this.showSelection = true;
126
- /**
127
- * If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.
128
- * @default true
129
- */
130
- this.showTooltipOnRightClick = true;
131
125
  /**
132
126
  * Enable sorting
133
127
  * @default false
@@ -139,11 +133,6 @@ export class KupBox {
139
133
  * @default false
140
134
  */
141
135
  this.swipeDisabled = false;
142
- /**
143
- * Enable show tooltip
144
- * @default true
145
- */
146
- this.tooltipEnabled = true;
147
136
  /*-------------------------------------------------*/
148
137
  /* I n t e r n a l V a r i a b l e s */
149
138
  /*-------------------------------------------------*/
@@ -386,7 +375,7 @@ export class KupBox {
386
375
  });
387
376
  }
388
377
  }
389
- getEventDetails(el) {
378
+ getEventDetails(el, e) {
390
379
  let boxObject = null;
391
380
  let cell = null;
392
381
  let row = null;
@@ -402,16 +391,14 @@ export class KupBox {
402
391
  }
403
392
  return {
404
393
  boxObject: boxObject ? boxObject : null,
405
- row: row ? row : null,
406
394
  column: column ? column : null,
407
395
  cell: cell ? cell : null,
396
+ originalEvent: e,
397
+ row: row ? row : null,
408
398
  };
409
399
  }
410
400
  contextMenuHandler(e) {
411
- const details = this.getEventDetails(e.target);
412
- if (this.showTooltipOnRightClick && details.boxObject && details.cell) {
413
- setTooltip(e, details.row.id, details.column.name, details.cell, this.tooltip);
414
- }
401
+ const details = this.getEventDetails(e.target, e);
415
402
  return details;
416
403
  }
417
404
  /**
@@ -923,33 +910,14 @@ export class KupBox {
923
910
  column = this.data.columns.find((x) => x.name === boxObject.column);
924
911
  }
925
912
  const cell = row.cells[boxObject.column];
926
- let _hasTooltip = false;
927
913
  let title = undefined;
928
- if (_hasTooltip) {
914
+ if (cell && !this.kupManager.objects.isEmptyKupObj(cell.obj)) {
929
915
  classObj['is-obj'] = true;
930
916
  if (this.kupManager.debug.isDebug()) {
931
917
  title =
932
918
  cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
933
919
  }
934
920
  }
935
- let tipEvents = null;
936
- if (_hasTooltip) {
937
- if (!this.showTooltipOnRightClick) {
938
- tipEvents = {
939
- onMouseEnter: (ev) => {
940
- if (_hasTooltip) {
941
- setTooltip(ev, row.id, boxObject.column, cell, this.tooltip);
942
- }
943
- else if (!_hasTooltip) {
944
- unsetTooltip(this.tooltip);
945
- }
946
- },
947
- onMouseLeave: () => {
948
- unsetTooltip(this.tooltip);
949
- },
950
- };
951
- }
952
- }
953
921
  const cellProps = {
954
922
  cell: cell,
955
923
  column: column,
@@ -960,7 +928,7 @@ export class KupBox {
960
928
  setSizes: true,
961
929
  shape: boxObject.shape,
962
930
  };
963
- return (h("div", Object.assign({ "data-cell": cell, "data-row": row, "data-column": boxObject.column, class: classObj, style: boStyle, title: title }, tipEvents), cell && column ? (h(FCell, Object.assign({}, cellProps))) : (h("span", null, boxObject.value))));
931
+ return (h("div", { "data-cell": cell, "data-row": row, "data-column": boxObject.column, class: classObj, style: boStyle, title: title }, cell && column ? (h(FCell, Object.assign({}, cellProps))) : (h("span", null, boxObject.value))));
964
932
  }
965
933
  /**
966
934
  * Prepares the kanban sections by sorting the boxlist's data.
@@ -1053,14 +1021,6 @@ export class KupBox {
1053
1021
  },
1054
1022
  };
1055
1023
  }
1056
- renderTooltip() {
1057
- if (this.tooltipEnabled == false) {
1058
- return null;
1059
- }
1060
- return (h("kup-tooltip", { class: "box-tooltip", owner: this.rootElement.tagName, loadTimeout: this.showTooltipOnRightClick == true
1061
- ? 0
1062
- : this.tooltipLoadTimeout, detailTimeout: this.tooltipDetailTimeout, ref: (el) => (this.tooltip = el) }));
1063
- }
1064
1024
  didLoadInteractables() {
1065
1025
  this.interactableTouch.push(this.boxContainer);
1066
1026
  const tapCb = (e) => {
@@ -1069,7 +1029,6 @@ export class KupBox {
1069
1029
  return;
1070
1030
  }
1071
1031
  switch (e.button) {
1072
- // right click
1073
1032
  case 2:
1074
1033
  this.kupBoxContextMenu.emit({
1075
1034
  comp: this,
@@ -1266,7 +1225,6 @@ export class KupBox {
1266
1225
  boxContent.push(this.renderRow(rows[cnt++]));
1267
1226
  }
1268
1227
  }
1269
- const tooltip = this.renderTooltip();
1270
1228
  return (h(Host, null,
1271
1229
  h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
1272
1230
  h("div", { id: componentWrapperId },
@@ -1276,12 +1234,8 @@ export class KupBox {
1276
1234
  paginator,
1277
1235
  h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
1278
1236
  e.preventDefault();
1279
- }, onMouseLeave: (ev) => {
1280
- ev.stopPropagation();
1281
- unsetTooltip(this.tooltip);
1282
1237
  }, ref: (el) => (this.boxContainer =
1283
- el) }, boxContent),
1284
- tooltip))));
1238
+ el) }, boxContent)))));
1285
1239
  }
1286
1240
  disconnectedCallback() {
1287
1241
  this.kupManager.interact.unregister(this.interactableDrag.concat(this.interactableDrop));
@@ -1776,27 +1730,6 @@ export class KupBox {
1776
1730
  "reflect": false,
1777
1731
  "defaultValue": "true"
1778
1732
  },
1779
- "showTooltipOnRightClick": {
1780
- "type": "boolean",
1781
- "mutable": false,
1782
- "complexType": {
1783
- "original": "boolean",
1784
- "resolved": "boolean",
1785
- "references": {}
1786
- },
1787
- "required": false,
1788
- "optional": false,
1789
- "docs": {
1790
- "tags": [{
1791
- "name": "default",
1792
- "text": "true"
1793
- }],
1794
- "text": "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver."
1795
- },
1796
- "attribute": "show-tooltip-on-right-click",
1797
- "reflect": false,
1798
- "defaultValue": "true"
1799
- },
1800
1733
  "sortBy": {
1801
1734
  "type": "string",
1802
1735
  "mutable": true,
@@ -1896,67 +1829,6 @@ export class KupBox {
1896
1829
  "attribute": "swipe-disabled",
1897
1830
  "reflect": false,
1898
1831
  "defaultValue": "false"
1899
- },
1900
- "tooltipDetailTimeout": {
1901
- "type": "number",
1902
- "mutable": false,
1903
- "complexType": {
1904
- "original": "number",
1905
- "resolved": "number",
1906
- "references": {}
1907
- },
1908
- "required": false,
1909
- "optional": false,
1910
- "docs": {
1911
- "tags": [{
1912
- "name": "default",
1913
- "text": "undefined"
1914
- }],
1915
- "text": "Defines the timeout for tooltip detail"
1916
- },
1917
- "attribute": "tooltip-detail-timeout",
1918
- "reflect": false
1919
- },
1920
- "tooltipEnabled": {
1921
- "type": "boolean",
1922
- "mutable": false,
1923
- "complexType": {
1924
- "original": "boolean",
1925
- "resolved": "boolean",
1926
- "references": {}
1927
- },
1928
- "required": false,
1929
- "optional": false,
1930
- "docs": {
1931
- "tags": [{
1932
- "name": "default",
1933
- "text": "true"
1934
- }],
1935
- "text": "Enable show tooltip"
1936
- },
1937
- "attribute": "tooltip-enabled",
1938
- "reflect": false,
1939
- "defaultValue": "true"
1940
- },
1941
- "tooltipLoadTimeout": {
1942
- "type": "number",
1943
- "mutable": false,
1944
- "complexType": {
1945
- "original": "number",
1946
- "resolved": "number",
1947
- "references": {}
1948
- },
1949
- "required": false,
1950
- "optional": false,
1951
- "docs": {
1952
- "tags": [{
1953
- "name": "default",
1954
- "text": "undefined"
1955
- }],
1956
- "text": "Defines the timeout for tooltip load"
1957
- },
1958
- "attribute": "tooltip-load-timeout",
1959
- "reflect": false
1960
1832
  }
1961
1833
  }; }
1962
1834
  static get states() { return {
@@ -83,7 +83,7 @@ function prepTimeArea(component) {
83
83
  function onKupClockItemClick(e, component, value) {
84
84
  if (e != null) {
85
85
  if (value == null) {
86
- value = e.detail.selected.value;
86
+ value = e.detail.selected.id;
87
87
  }
88
88
  }
89
89
  setClockValueSelected(component, value);
@@ -119,8 +119,7 @@ function typeColumn(e, component) {
119
119
  });
120
120
  }
121
121
  function listClick(e, options) {
122
- const value = e.detail.selected.value;
123
- switch (value) {
122
+ switch (e.detail.selected.id) {
124
123
  case KupLanguageGeneric.MERGE:
125
124
  if (options.mergeCb) {
126
125
  options.mergeCb();
@@ -2282,6 +2282,7 @@
2282
2282
  margin: 0 0.5em 0 0;
2283
2283
  }
2284
2284
  .standard-layout-14 .section-1 .title {
2285
+ --kup-button-font-size: 0.75em;
2285
2286
  font-size: 1.25em;
2286
2287
  margin-top: -0.5em;
2287
2288
  padding: 0 0.25em 0.25em;
@@ -2380,15 +2381,16 @@
2380
2381
  }
2381
2382
 
2382
2383
  .standard-layout-15 {
2383
- outline: none;
2384
- display: block;
2385
- font-size: var(--kup-font-size);
2386
2384
  background: var(--kup-background-color);
2387
- color: var(--kup-text-color);
2388
- box-shadow: var(--kup-box-shadow);
2389
2385
  border-radius: 3px;
2386
+ box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
2387
+ color: var(--kup-text-color);
2388
+ display: block;
2389
+ font-size: var(--kup-font-size);
2390
+ outline: none;
2390
2391
  }
2391
2392
  .standard-layout-15 .section-1 {
2393
+ --kup-button-font-size: 0.75em;
2392
2394
  box-sizing: border-box;
2393
2395
  display: flex;
2394
2396
  padding: 1em;
@@ -2405,13 +2407,19 @@
2405
2407
  margin: 0 0.5em 0 0;
2406
2408
  }
2407
2409
  .standard-layout-15 .section-1 .title {
2410
+ align-items: center;
2411
+ display: flex;
2408
2412
  font-size: 1.25em;
2413
+ font-weight: 600;
2409
2414
  padding: 0 0.25em 0.25em;
2410
2415
  text-align: left;
2411
2416
  }
2412
2417
  .standard-layout-15 .section-1 .title .label {
2413
2418
  cursor: pointer;
2414
2419
  padding-right: 0.25em;
2420
+ overflow: hidden;
2421
+ text-overflow: ellipsis;
2422
+ white-space: nowrap;
2415
2423
  }
2416
2424
  .standard-layout-15 .section-1 .title .label:hover {
2417
2425
  text-decoration: underline;
@@ -2428,6 +2436,7 @@
2428
2436
  width: auto;
2429
2437
  }
2430
2438
  .standard-layout-15 .section-1 .info .value {
2439
+ font-weight: 600;
2431
2440
  width: 100%;
2432
2441
  }
2433
2442
  .standard-layout-15 .section-2 {
@@ -2441,9 +2450,11 @@
2441
2450
  .standard-layout-15 .section-2 .info {
2442
2451
  box-sizing: border-box;
2443
2452
  height: 100%;
2453
+ overflow: auto;
2444
2454
  padding: 1.25em;
2445
2455
  }
2446
2456
  .standard-layout-15 .section-2 .detail-row {
2457
+ align-items: center;
2447
2458
  display: flex;
2448
2459
  justify-content: space-between;
2449
2460
  }
@@ -2454,11 +2465,19 @@
2454
2465
  color: rgba(var(--kup-text-color-rgb), 0.5);
2455
2466
  margin-top: 0.175em;
2456
2467
  max-width: 320px;
2468
+ padding-right: 1.25em;
2469
+ white-space: nowrap;
2470
+ overflow: hidden;
2471
+ text-overflow: ellipsis;
2457
2472
  }
2458
2473
  .standard-layout-15 .section-2 .detail-row__value {
2459
2474
  color: var(--kup-text-color);
2460
- font-size: 120%;
2475
+ font-size: 105%;
2476
+ font-weight: 600;
2461
2477
  max-width: 320px;
2478
+ white-space: nowrap;
2479
+ overflow: hidden;
2480
+ text-overflow: ellipsis;
2462
2481
  }
2463
2482
  .standard-layout-15 .section-2 kup-tree {
2464
2483
  text-align: left;
@@ -2477,8 +2496,7 @@
2477
2496
  .standard-layout-15 #open-in-new,
2478
2497
  .standard-layout-15 #search,
2479
2498
  .standard-layout-15 #new {
2480
- margin: 0;
2481
- display: inline-flex;
2499
+ margin: 0 0 0.5em 0;
2482
2500
  }
2483
2501
 
2484
2502
  /**
@@ -83,7 +83,7 @@ export class KupCard {
83
83
  this.scalingActive = false;
84
84
  this.componentWrapper = null;
85
85
  this.colorPicker = null;
86
- this.firstColorPickerChange = null;
86
+ this.firstColorPickerChange = true;
87
87
  }
88
88
  onKupClick(id, value) {
89
89
  this.kupClick.emit({
@@ -256,7 +256,6 @@ export class KupCard {
256
256
  const color = colorPickerOptions
257
257
  ? colorPickerOptions.initialValue
258
258
  : null;
259
- this.firstColorPickerChange = true;
260
259
  if (!this.colorPicker) {
261
260
  this.colorPicker = new Picker({
262
261
  alpha: false,