@sme.up/ketchup 7.1.1 → 7.3.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 (227) hide show
  1. package/dist/cjs/{f-button-40953600.js → f-button-5856cd74.js} +2 -2
  2. package/dist/cjs/{f-cell-e603ae4f.js → f-cell-9d7a9e97.js} +59 -6
  3. package/dist/cjs/{f-checkbox-1097ca5d.js → f-checkbox-1148e791.js} +1 -1
  4. package/dist/cjs/{f-chip-01efabde.js → f-chip-675ed121.js} +6 -4
  5. package/dist/cjs/{f-image-f741cb4c.js → f-image-48facc89.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-35a6a848.js → f-paginator-utils-0c1227f6.js} +3 -3
  7. package/dist/cjs/{f-text-field-60a2f24c.js → f-text-field-3d8e7417.js} +2 -2
  8. package/dist/cjs/{index-ffdb46f6.js → index-1f177abc.js} +120 -2
  9. package/dist/cjs/ketchup.cjs.js +10 -3
  10. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  11. package/dist/cjs/{kup-autocomplete_26.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +1066 -898
  12. package/dist/cjs/kup-box.cjs.entry.js +9 -9
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +8 -5
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +89 -16
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  25. package/dist/cjs/{kup-manager-6f05ebe1.js → kup-manager-22bb9699.js} +61 -17
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  30. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  32. package/dist/cjs/loader.cjs.js +4 -3
  33. package/dist/collection/assets/card.js +10 -0
  34. package/dist/collection/assets/data-table.js +44 -0
  35. package/dist/collection/assets/dialog.js +0 -0
  36. package/dist/collection/assets/echart.js +146 -0
  37. package/dist/collection/assets/index.js +4 -0
  38. package/dist/collection/collection-manifest.json +3 -2
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -1
  40. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +3 -3
  41. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +10 -0
  42. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +12 -0
  43. package/dist/collection/components/kup-card/kup-card.css +12 -23
  44. package/dist/collection/components/kup-card/kup-card.js +1 -40
  45. package/dist/collection/components/kup-chip/kup-chip-declarations.js +2 -0
  46. package/dist/collection/components/kup-chip/kup-chip.js +122 -4
  47. package/dist/collection/components/kup-combobox/kup-combobox.js +4 -2
  48. package/dist/collection/components/kup-dash-list/kup-dash-list.js +6 -3
  49. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  50. package/dist/collection/components/kup-data-table/kup-data-table.js +12 -23
  51. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +14 -0
  52. package/dist/collection/components/kup-dialog/kup-dialog.css +65 -0
  53. package/dist/collection/components/kup-dialog/kup-dialog.js +467 -0
  54. package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
  55. package/dist/collection/components/kup-echart/kup-echart.js +86 -14
  56. package/dist/collection/components/kup-form/kup-form.js +24 -0
  57. package/dist/collection/components/kup-list/kup-list-helper.js +6 -4
  58. package/dist/collection/components/kup-list/kup-list.js +0 -6
  59. package/dist/collection/f-components/f-cell/f-cell-declarations.js +7 -0
  60. package/dist/collection/f-components/f-cell/f-cell.js +17 -0
  61. package/dist/collection/f-components/f-chip/f-chip.js +3 -1
  62. package/dist/collection/managers/kup-data/kup-data.js +4 -0
  63. package/dist/collection/managers/kup-interact/kup-interact.js +33 -1
  64. package/dist/collection/managers/kup-manager/kup-manager.js +3 -4
  65. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  66. package/dist/collection/types/GenericTypes.js +1 -0
  67. package/dist/components/index.d.ts +9 -50
  68. package/dist/components/index.js +1 -48
  69. package/dist/components/kup-accordion.js +18 -13
  70. package/dist/components/kup-autocomplete.js +1 -1
  71. package/dist/components/kup-autocomplete2.js +2802 -2492
  72. package/dist/components/kup-badge.js +1 -1
  73. package/dist/components/kup-box2.js +18 -13
  74. package/dist/components/kup-button-list.js +1 -1
  75. package/dist/components/kup-button.js +1 -1
  76. package/dist/components/kup-calendar.js +18 -13
  77. package/dist/components/kup-card.js +1 -1
  78. package/dist/components/kup-cell.js +18 -13
  79. package/dist/components/kup-chart.js +1 -1
  80. package/dist/components/kup-checkbox.js +1 -1
  81. package/dist/components/kup-chip.js +1 -1
  82. package/dist/components/kup-color-picker.js +1 -1
  83. package/dist/components/kup-combobox.js +1 -1
  84. package/dist/components/kup-dash-list.js +26 -18
  85. package/dist/components/kup-dash2.js +18 -13
  86. package/dist/components/kup-dashboard.js +18 -13
  87. package/dist/components/kup-data-table.js +1 -1
  88. package/dist/components/kup-date-picker.js +1 -1
  89. package/dist/components/kup-dialog.d.ts +11 -0
  90. package/dist/components/kup-dialog.js +6 -0
  91. package/dist/components/kup-drawer.js +18 -13
  92. package/dist/components/kup-dropdown-button.js +1 -1
  93. package/dist/components/kup-echart2.js +105 -27
  94. package/dist/components/kup-family-tree.js +20 -15
  95. package/dist/components/kup-form.js +1 -1
  96. package/dist/components/kup-gauge.js +1 -1
  97. package/dist/components/kup-grid2.js +18 -13
  98. package/dist/components/kup-iframe.js +18 -13
  99. package/dist/components/kup-image-list.js +18 -13
  100. package/dist/components/kup-image.js +1 -1
  101. package/dist/components/kup-lazy.js +18 -13
  102. package/dist/components/kup-list.js +1 -1
  103. package/dist/components/kup-magic-box.js +20 -15
  104. package/dist/components/kup-nav-bar.js +18 -13
  105. package/dist/components/kup-numeric-picker.js +18 -13
  106. package/dist/components/kup-photo-frame.js +18 -13
  107. package/dist/components/kup-probe.js +18 -13
  108. package/dist/components/kup-progress-bar.js +1 -1
  109. package/dist/components/kup-qlik.js +18 -13
  110. package/dist/components/kup-radio.js +1 -1
  111. package/dist/components/kup-rating.js +1 -1
  112. package/dist/components/kup-snackbar.js +18 -13
  113. package/dist/components/kup-spinner.js +1 -1
  114. package/dist/components/kup-switch.js +1 -1
  115. package/dist/components/kup-tab-bar.js +1 -1
  116. package/dist/components/kup-text-field.js +1 -1
  117. package/dist/components/kup-time-picker.js +1 -1
  118. package/dist/components/kup-tree.js +1 -1
  119. package/dist/esm/{f-button-9aec1bc5.js → f-button-eedbdba1.js} +2 -2
  120. package/dist/esm/{f-cell-556937d0.js → f-cell-90a418d2.js} +60 -7
  121. package/dist/esm/{f-checkbox-b721178e.js → f-checkbox-9b3f5f5b.js} +1 -1
  122. package/dist/esm/{f-chip-677db32a.js → f-chip-45e7b3f6.js} +6 -4
  123. package/dist/esm/{f-image-52bb5950.js → f-image-3026f0fe.js} +2 -2
  124. package/dist/esm/{f-paginator-utils-d472e336.js → f-paginator-utils-6369da7c.js} +3 -3
  125. package/dist/esm/{f-text-field-88f92118.js → f-text-field-3b70a6f0.js} +2 -2
  126. package/dist/esm/{index-a2197376.js → index-8bd38435.js} +120 -3
  127. package/dist/esm/ketchup.js +7 -3
  128. package/dist/esm/kup-accordion.entry.js +3 -3
  129. package/dist/esm/{kup-autocomplete_26.entry.js → kup-autocomplete_27.entry.js} +1047 -880
  130. package/dist/esm/kup-box.entry.js +9 -9
  131. package/dist/esm/kup-calendar.entry.js +5 -5
  132. package/dist/esm/kup-cell.entry.js +7 -7
  133. package/dist/esm/kup-dash-list.entry.js +8 -5
  134. package/dist/esm/kup-dash_2.entry.js +2 -2
  135. package/dist/esm/kup-dashboard.entry.js +6 -6
  136. package/dist/esm/kup-drawer.entry.js +2 -2
  137. package/dist/esm/kup-echart.entry.js +89 -16
  138. package/dist/esm/kup-family-tree.entry.js +4 -4
  139. package/dist/esm/kup-iframe.entry.js +2 -2
  140. package/dist/esm/kup-image-list.entry.js +8 -8
  141. package/dist/esm/kup-lazy.entry.js +2 -2
  142. package/dist/esm/kup-magic-box.entry.js +3 -3
  143. package/dist/esm/{kup-manager-12e99c22.js → kup-manager-cad802b1.js} +62 -18
  144. package/dist/esm/kup-nav-bar.entry.js +2 -2
  145. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  146. package/dist/esm/kup-photo-frame.entry.js +2 -2
  147. package/dist/esm/kup-probe.entry.js +2 -2
  148. package/dist/esm/kup-qlik.entry.js +2 -2
  149. package/dist/esm/kup-snackbar.entry.js +4 -4
  150. package/dist/esm/loader.js +4 -3
  151. package/dist/esm/polyfills/css-shim.js +1 -1
  152. package/dist/ketchup/ketchup.esm.js +1 -1
  153. package/dist/ketchup/{p-60609877.entry.js → p-138ac8b9.entry.js} +1 -1
  154. package/dist/ketchup/{p-94290b09.entry.js → p-1ad48de4.entry.js} +1 -1
  155. package/dist/ketchup/{p-053824eb.entry.js → p-1cd45a72.entry.js} +1 -1
  156. package/dist/ketchup/{p-ad3e7b2b.entry.js → p-2217be0a.entry.js} +1 -1
  157. package/dist/ketchup/{p-e094ebb8.entry.js → p-23288eed.entry.js} +1 -1
  158. package/dist/ketchup/p-263b2c73.entry.js +1 -0
  159. package/dist/ketchup/{p-c59e6bc7.entry.js → p-2d8b5bba.entry.js} +1 -1
  160. package/dist/ketchup/p-32dc31ad.js +1 -0
  161. package/dist/ketchup/p-4505a48d.js +1 -0
  162. package/dist/ketchup/p-4e68f629.entry.js +1 -0
  163. package/dist/ketchup/p-5a1387bf.entry.js +9 -0
  164. package/dist/ketchup/p-70a0bc02.entry.js +1 -0
  165. package/dist/ketchup/p-73becdb8.entry.js +1 -0
  166. package/dist/ketchup/p-78b093e3.entry.js +39 -0
  167. package/dist/ketchup/p-79b0730b.js +1 -1
  168. package/dist/ketchup/{p-9570ebfa.js → p-7bd28eac.js} +1 -1
  169. package/dist/ketchup/{p-ce1da4a8.entry.js → p-97afbd71.entry.js} +1 -1
  170. package/dist/ketchup/p-9dcfbb1e.js +2 -0
  171. package/dist/ketchup/p-9f1184cd.entry.js +27 -0
  172. package/dist/ketchup/{p-23cd5a68.js → p-9f9b6656.js} +1 -1
  173. package/dist/ketchup/{p-4f7302a9.js → p-a1adab40.js} +1 -1
  174. package/dist/ketchup/p-a7ae0b4d.js +1 -0
  175. package/dist/ketchup/{p-88adddcf.entry.js → p-a89f0884.entry.js} +1 -1
  176. package/dist/ketchup/{p-25617855.js → p-ae3e0d31.js} +1 -1
  177. package/dist/ketchup/{p-ac33139e.entry.js → p-b0675bce.entry.js} +1 -1
  178. package/dist/ketchup/{p-485883cb.entry.js → p-b1da7902.entry.js} +1 -1
  179. package/dist/ketchup/p-b63a5a44.js +30 -0
  180. package/dist/ketchup/{p-f44aba79.entry.js → p-bb6921bc.entry.js} +1 -1
  181. package/dist/ketchup/{p-3a7a05a7.entry.js → p-c1d8fd43.entry.js} +1 -1
  182. package/dist/ketchup/p-d0f4457e.entry.js +1 -0
  183. package/dist/ketchup/p-fe34fa6e.entry.js +1 -0
  184. package/dist/loader/index.d.ts +9 -0
  185. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +4 -2
  186. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +1 -1
  187. package/dist/types/components/kup-card/built-in/{kup-card-form.d.ts → kup-card-message-box.d.ts} +1 -1
  188. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  189. package/dist/types/components/kup-card/kup-card-declarations.d.ts +6 -8
  190. package/dist/types/components/kup-card/kup-card.d.ts +0 -5
  191. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +5 -0
  192. package/dist/types/components/kup-chip/kup-chip.d.ts +16 -1
  193. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -1
  194. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  195. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +26 -0
  196. package/dist/types/components/kup-dialog/kup-dialog.d.ts +77 -0
  197. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
  198. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +1 -1
  199. package/dist/types/components/kup-form/kup-form.d.ts +6 -1
  200. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
  201. package/dist/types/components.d.ts +193 -11
  202. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -0
  203. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -0
  204. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +2 -1
  205. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
  206. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +2 -2
  207. package/dist/types/managers/kup-interact/kup-interact.d.ts +11 -0
  208. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
  209. package/dist/types/stencil-public-runtime.d.ts +71 -15
  210. package/dist/types/types/GenericTypes.d.ts +1 -0
  211. package/dist/types/utils/filters/filters-declarations.d.ts +2 -0
  212. package/package.json +2 -2
  213. package/dist/collection/components/kup-card/built-in/kup-card-form.js +0 -11
  214. package/dist/ketchup/p-1c371df3.entry.js +0 -39
  215. package/dist/ketchup/p-278188bf.js +0 -1
  216. package/dist/ketchup/p-4021d751.entry.js +0 -1
  217. package/dist/ketchup/p-4fdb684f.js +0 -2
  218. package/dist/ketchup/p-52f19c4f.entry.js +0 -1
  219. package/dist/ketchup/p-5483f20e.js +0 -30
  220. package/dist/ketchup/p-584369be.entry.js +0 -1
  221. package/dist/ketchup/p-6a6c3e69.entry.js +0 -27
  222. package/dist/ketchup/p-751b5708.js +0 -1
  223. package/dist/ketchup/p-775e0d34.entry.js +0 -1
  224. package/dist/ketchup/p-7e013c24.entry.js +0 -1
  225. package/dist/ketchup/p-85c7a3a4.js +0 -1
  226. package/dist/ketchup/p-a3c849ae.entry.js +0 -9
  227. package/dist/ketchup/p-e0135ce0.entry.js +0 -1
@@ -3,6 +3,7 @@ const echart2 = document.getElementById('mapchart');
3
3
  const echart3 = document.getElementById('gaussianchart');
4
4
  const echart4 = document.getElementById('gaussian1chart');
5
5
  const echart5 = document.getElementById('gaussian2chart');
6
+ const echart6 = document.getElementById('funnelChart');
6
7
 
7
8
  const mockData = {
8
9
  columns: [
@@ -476,6 +477,151 @@ echart5.data = {
476
477
  columns: testMockColumns,
477
478
  rows: testMockRows,
478
479
  };
480
+
481
+ echart6.consistencyCheck = true;
482
+ echart6.types = ['Funnel'];
483
+ echart6.colors = ['blue'];
484
+ echart6.axis = 'Col1';
485
+ echart6.chartTitle = {
486
+ value: 'Funnel',
487
+ color: 'red',
488
+ position: 'top',
489
+ size: 16,
490
+ };
491
+ echart6.data = {
492
+ columns: [
493
+ {
494
+ name: 'Col1',
495
+ title: 'Person',
496
+ size: '10',
497
+ },
498
+ {
499
+ name: 'Col2',
500
+ title: 'Value1',
501
+ size: '10',
502
+ },
503
+ {
504
+ name: 'Col3',
505
+ title: 'Value2',
506
+ size: '10',
507
+ },
508
+ {
509
+ name: 'Col4',
510
+ title: 'Value3',
511
+ size: '10',
512
+ },
513
+ ],
514
+ rows: [
515
+ {
516
+ cells: {
517
+ Col1: {
518
+ obj: {
519
+ t: 'CN',
520
+ p: 'COL',
521
+ k: 'CASFRA',
522
+ },
523
+ value: 'CASFRA',
524
+ },
525
+ Col2: {
526
+ obj: {
527
+ t: 'NR',
528
+ p: '',
529
+ k: '10',
530
+ },
531
+ value: '10',
532
+ },
533
+ Col3: {
534
+ obj: {
535
+ t: 'NR',
536
+ p: '',
537
+ k: '100.60',
538
+ },
539
+ value: '100.60',
540
+ },
541
+ Col4: {
542
+ obj: {
543
+ t: 'NR',
544
+ p: '',
545
+ k: '55',
546
+ },
547
+ value: '55',
548
+ },
549
+ },
550
+ },
551
+ {
552
+ cells: {
553
+ Col1: {
554
+ obj: {
555
+ t: 'CN',
556
+ p: 'COL',
557
+ k: 'DELGIO',
558
+ },
559
+ value: 'DELGIO',
560
+ },
561
+ Col2: {
562
+ obj: {
563
+ t: 'NR',
564
+ p: '',
565
+ k: '6',
566
+ },
567
+ value: '6',
568
+ },
569
+ Col3: {
570
+ obj: {
571
+ t: 'NR',
572
+ p: '',
573
+ k: '67.8',
574
+ },
575
+ value: '67.8',
576
+ },
577
+ Col4: {
578
+ obj: {
579
+ t: 'NR',
580
+ p: '',
581
+ k: '33',
582
+ },
583
+ value: '33',
584
+ },
585
+ },
586
+ },
587
+ {
588
+ cells: {
589
+ Col1: {
590
+ obj: {
591
+ t: 'CN',
592
+ p: 'COL',
593
+ k: 'PARFRA',
594
+ },
595
+ value: 'PARFRA',
596
+ },
597
+ Col2: {
598
+ obj: {
599
+ t: 'NR',
600
+ p: '',
601
+ k: '5',
602
+ },
603
+ value: '5',
604
+ },
605
+ Col3: {
606
+ obj: {
607
+ t: 'NR',
608
+ p: '',
609
+ k: '120.06',
610
+ },
611
+ value: '120.06',
612
+ },
613
+ Col4: {
614
+ obj: {
615
+ t: 'NR',
616
+ p: '',
617
+ k: '77',
618
+ },
619
+ value: '77',
620
+ },
621
+ },
622
+ },
623
+ ],
624
+ };
479
625
  document.addEventListener('kup-echart-click', (e) => {
480
626
  console.log(e);
481
627
  });
@@ -86,6 +86,10 @@ components.data = [
86
86
  value: 'Date picker',
87
87
  id: 'date-picker.html',
88
88
  },
89
+ {
90
+ value: 'Dialog',
91
+ id: 'dialog.html',
92
+ },
89
93
  {
90
94
  value: 'Drawer',
91
95
  id: 'drawer.html',
@@ -22,6 +22,7 @@
22
22
  "./components/kup-dash-list/kup-dash-list.js",
23
23
  "./components/kup-dashboard/kup-dashboard.js",
24
24
  "./components/kup-date-picker/kup-date-picker.js",
25
+ "./components/kup-dialog/kup-dialog.js",
25
26
  "./components/kup-drawer/kup-drawer.js",
26
27
  "./components/kup-echart/kup-echart.js",
27
28
  "./components/kup-family-tree/kup-family-tree.js",
@@ -50,8 +51,8 @@
50
51
  ],
51
52
  "compiler": {
52
53
  "name": "@stencil/core",
53
- "version": "2.20.0",
54
- "typescriptVersion": "4.8.4"
54
+ "version": "3.0.1",
55
+ "typescriptVersion": "4.9.5"
55
56
  },
56
57
  "collections": [],
57
58
  "bundles": []
@@ -74,6 +74,7 @@ export class KupAutocomplete {
74
74
  id: this.rootElement.id,
75
75
  value: this.value,
76
76
  inputValue: __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value,
77
+ node: ret.node,
77
78
  });
78
79
  }
79
80
  }
@@ -95,7 +96,7 @@ export class KupAutocomplete {
95
96
  }
96
97
  onKupInput() {
97
98
  __classPrivateFieldSet(this, _KupAutocomplete_doConsistencyCheck, true, "f");
98
- __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value, false);
99
+ const ret = __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value, false);
99
100
  __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
100
101
  if (__classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value.length >= this.minimumChars) {
101
102
  this.kupInput.emit({
@@ -103,6 +104,7 @@ export class KupAutocomplete {
103
104
  id: this.rootElement.id,
104
105
  value: this.value,
105
106
  inputValue: __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value,
107
+ node: ret.node,
106
108
  });
107
109
  }
108
110
  }
@@ -134,6 +136,7 @@ export class KupAutocomplete {
134
136
  id: this.rootElement.id,
135
137
  value: this.value,
136
138
  inputValue: __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value,
139
+ node: e.detail.selected,
137
140
  });
138
141
  }
139
142
  /*-------------------------------------------------*/
@@ -3,7 +3,7 @@ import { KupCardCSSClasses } from '../kup-card-declarations';
3
3
  import { prepareCalendar } from './kup-card-calendar';
4
4
  import { prepareClock } from './kup-card-clock';
5
5
  import { prepareColumnDropMenu } from './kup-card-column-drop-menu';
6
- import { prepareForm } from './kup-card-form';
6
+ import { prepareMessageBox } from './kup-card-message-box';
7
7
  import { prepareNumeric } from './kup-card-numeric';
8
8
  /**
9
9
  * 1st built-in layout, calendar view.
@@ -47,10 +47,10 @@ export function create5(component) {
47
47
  return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareNumeric(component)));
48
48
  }
49
49
  /**
50
- * 6th built-in layout, form with submit button.
50
+ * 6th built-in layout, message box with confirm and cancel buttons.
51
51
  * @param {KupCard} component - Card component.
52
52
  * @returns {VNode} 6th built-in layout virtual node.
53
53
  */
54
54
  export function create6(component) {
55
- return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareForm(component)));
55
+ return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareMessageBox(component)));
56
56
  }
@@ -0,0 +1,10 @@
1
+ import { h } from '@stencil/core';
2
+ import { FButton } from '../../../f-components/f-button/f-button';
3
+ import { FButtonStyling } from '../../../f-components/f-button/f-button-declarations';
4
+ import { KupLanguageGeneric } from '../../../managers/kup-language/kup-language-declarations';
5
+ const dom = document.documentElement;
6
+ export function prepareMessageBox(component) {
7
+ const options = component.data.options;
8
+ const buttonsExist = !!(options.cancelCb || options.confirmCb);
9
+ return (h("div", { class: "message-box" }, options.text ? h("div", { class: "text" }, options.text) : null, buttonsExist ? (h("div", { class: "button-wrapper" }, options.cancelCb ? (h(FButton, { icon: "clear", label: dom.ketchup.language.translate(KupLanguageGeneric.ABORT), onClick: options.cancelCb, styling: FButtonStyling.FLAT })) : null, options.confirmCb ? (h(FButton, { icon: "check", label: dom.ketchup.language.translate(KupLanguageGeneric.CONFIRM), onClick: options.confirmCb })) : null)) : null));
10
+ }
@@ -116,6 +116,18 @@ export function create6(component) {
116
116
  : [];
117
117
  return (h("div", { class: `dialog-layout-${component.layoutNumber}` }, textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''), h("div", { class: "section-1" }, datatableArray.length > 0 ? (h("kup-data-table", Object.assign({ id: "datatable1" }, datatableArray[0]))) : (h("kup-spinner", { active: true, dimensions: "7px", layout: 14 })))));
118
118
  }
119
+ /**
120
+ * 7th dialog card layout, a raw slot.
121
+ * @param {KupCard} component - Card component.
122
+ * @returns {VNode} 1st standard layout virtual node.
123
+ */
124
+ export function create7(component) {
125
+ //Dialog title
126
+ const textArray = component.data && component.data['text'] ? component.data['text'] : [];
127
+ //Slot list
128
+ const slots = Array.prototype.slice.call(component.rootElement.children, 0);
129
+ return (h("div", { class: `dialog-layout-${component.layoutNumber}` }, textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''), slots.length > 0 ? compList(slots, 'slot') : null));
130
+ }
119
131
  /**
120
132
  * Invoked by 4th layout to switch to the previous record of the original data table.
121
133
  * Reminder: data table inside 4th layout should be transposed and valid columns should be named with numbers (strings, but numerical).
@@ -1079,7 +1079,18 @@
1079
1079
  position: relative;
1080
1080
  width: 100%;
1081
1081
  overflow: auto;
1082
- padding: 0.5em;
1082
+ padding: 2em;
1083
+ }
1084
+ .built-in-layout-6 .text {
1085
+ padding-bottom: 1.5em;
1086
+ text-align: center;
1087
+ }
1088
+ .built-in-layout-6 .button-wrapper {
1089
+ display: flex;
1090
+ justify-content: center;
1091
+ }
1092
+ .built-in-layout-6 .f-button {
1093
+ padding: 0 0.5em;
1083
1094
  }
1084
1095
 
1085
1096
  .collapsible-layout-1 {
@@ -2851,16 +2862,6 @@
2851
2862
  width: var(--kup_card_width);
2852
2863
  }
2853
2864
 
2854
- :host([show-modal]) #kup-component {
2855
- position: fixed;
2856
- z-index: var(--kup-card-zindex);
2857
- height: var(--kup_card_height);
2858
- width: var(--kup_card_width);
2859
- top: var(--kup_card_top);
2860
- left: var(--kup_card_left);
2861
- display: var(--kup_card_display, none);
2862
- }
2863
-
2864
2865
  :host([is-menu]) {
2865
2866
  display: none;
2866
2867
  animation: fade-in 0.25s ease-out;
@@ -2876,18 +2877,6 @@
2876
2877
  width: 100%;
2877
2878
  }
2878
2879
 
2879
- .backdrop {
2880
- background: var(--kup_card_backdrop);
2881
- display: none;
2882
- height: 100%;
2883
- left: 0;
2884
- position: fixed;
2885
- top: 0;
2886
- width: 100%;
2887
- z-index: calc(var(--kup-card-zindex) - 1);
2888
- display: block;
2889
- }
2890
-
2891
2880
  .mdc-ripple-surface {
2892
2881
  cursor: pointer;
2893
2882
  flex-direction: column;
@@ -45,7 +45,6 @@ export class KupCard {
45
45
  this.layoutFamily = KupCardFamily.STANDARD;
46
46
  this.layoutNumber = 1;
47
47
  this.menuVisible = false;
48
- this.showModal = false;
49
48
  this.sizeX = '100%';
50
49
  this.sizeY = '100%';
51
50
  }
@@ -414,13 +413,6 @@ export class KupCard {
414
413
  }, 0);
415
414
  }
416
415
  this.kupManager.debug.logRender(this, true);
417
- if (this.showModal) {
418
- this.rootElement.style.setProperty('--kup_card_left', window.innerWidth / 2 - this.rootElement.clientWidth / 2 + 'px');
419
- this.rootElement.style.setProperty('--kup_card_top', window.innerHeight / 2 -
420
- this.rootElement.clientHeight / 2 +
421
- 'px');
422
- this.rootElement.style.setProperty('--kup_card_display', 'block');
423
- }
424
416
  }
425
417
  render() {
426
418
  if (!this.data && this.rootElement.children.length < 1) {
@@ -430,17 +422,7 @@ export class KupCard {
430
422
  '--kup_card_height': this.sizeY ? this.sizeY : '100%',
431
423
  '--kup_card_width': this.sizeX ? this.sizeX : '100%',
432
424
  };
433
- const backdropComp = this.showModal ? (h("div", { class: "backdrop", onClick: (e) => {
434
- e.preventDefault();
435
- e.stopPropagation();
436
- }, onPointerDown: (e) => {
437
- e.preventDefault();
438
- e.stopPropagation();
439
- }, onTouchStart: (e) => {
440
- e.preventDefault();
441
- e.stopPropagation();
442
- } })) : null;
443
- return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), backdropComp, h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null), ref: (el) => (this.componentWrapper = el) }, this.getLayout())));
425
+ return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null), ref: (el) => (this.componentWrapper = el) }, this.getLayout())));
444
426
  }
445
427
  disconnectedCallback() {
446
428
  this.kupManager.interact.unregister([this.rootElement]);
@@ -599,27 +581,6 @@ export class KupCard {
599
581
  "reflect": true,
600
582
  "defaultValue": "false"
601
583
  },
602
- "showModal": {
603
- "type": "boolean",
604
- "mutable": false,
605
- "complexType": {
606
- "original": "boolean",
607
- "resolved": "boolean",
608
- "references": {}
609
- },
610
- "required": false,
611
- "optional": false,
612
- "docs": {
613
- "tags": [{
614
- "name": "default",
615
- "text": "false"
616
- }],
617
- "text": "Sets the card as modal window"
618
- },
619
- "attribute": "show-modal",
620
- "reflect": true,
621
- "defaultValue": "false"
622
- },
623
584
  "sizeX": {
624
585
  "type": "string",
625
586
  "mutable": false,
@@ -6,5 +6,7 @@ export var KupChipProps;
6
6
  (function (KupChipProps) {
7
7
  KupChipProps["customStyle"] = "Custom style of the component.";
8
8
  KupChipProps["data"] = "List of elements.";
9
+ KupChipProps["displayId"] = "When enabled, the chip's text will display both the id and the value.";
10
+ KupChipProps["enableInput"] = "When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).";
9
11
  KupChipProps["type"] = "The type of chip. Available types: input, filter, choice or empty for default.";
10
12
  })(KupChipProps || (KupChipProps = {}));
@@ -1,3 +1,11 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f)
3
+ throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
5
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
6
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7
+ };
8
+ var _KupChip_instances, _KupChip_changeHandler, _KupChip_stringifiedValues;
1
9
  import { forceUpdate, h, Host, } from '@stencil/core';
2
10
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
3
11
  import { FChip } from '../../f-components/f-chip/f-chip';
@@ -8,6 +16,7 @@ import { getProps, setProps } from '../../utils/utils';
8
16
  import { componentWrapperId } from '../../variables/GenericVariables';
9
17
  export class KupChip {
10
18
  constructor() {
19
+ _KupChip_instances.add(this);
11
20
  /*-------------------------------------------------*/
12
21
  /* I n t e r n a l V a r i a b l e s */
13
22
  /*-------------------------------------------------*/
@@ -17,6 +26,8 @@ export class KupChip {
17
26
  this.kupManager = kupManagerInstance();
18
27
  this.customStyle = '';
19
28
  this.data = [];
29
+ this.displayId = false;
30
+ this.enableInput = false;
20
31
  this.type = FChipType.STANDARD;
21
32
  }
22
33
  onKupBlur(chip) {
@@ -55,6 +66,11 @@ export class KupChip {
55
66
  id: this.rootElement.id,
56
67
  chip: this.kupManager.data.node.remove(this.data, chip),
57
68
  });
69
+ this.kupChange.emit({
70
+ comp: this,
71
+ id: this.rootElement.id,
72
+ stringifiedValues: __classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
73
+ });
58
74
  this.refresh();
59
75
  }
60
76
  /*-------------------------------------------------*/
@@ -130,11 +146,13 @@ export class KupChip {
130
146
  this.kupManager.debug.logRender(this, true);
131
147
  }
132
148
  render() {
149
+ var _a;
133
150
  const props = {
134
151
  danger: this.rootElement.classList.contains('kup-danger')
135
152
  ? true
136
153
  : false,
137
154
  data: this.data,
155
+ displayId: this.displayId,
138
156
  info: this.rootElement.classList.contains('kup-info')
139
157
  ? true
140
158
  : false,
@@ -167,10 +185,13 @@ export class KupChip {
167
185
  props.onFocus.push((chip) => this.onKupFocus(chip));
168
186
  props.onIconClick.push((chip) => this.onKupIconClick(chip));
169
187
  }
170
- if (!this.data || this.data.length === 0) {
171
- return;
172
- }
173
- return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h(FChip, Object.assign({}, props)))));
188
+ return (h(Host, { "onKup-autocomplete-change": (e) => {
189
+ __classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
190
+ }, "onKup-combobox-change": (e) => {
191
+ __classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
192
+ }, "onKup-textfield-change": (e) => {
193
+ __classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
194
+ } }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? h(FChip, Object.assign({}, props)) : null, h("slot", { name: "field" }))));
174
195
  }
175
196
  disconnectedCallback() {
176
197
  this.kupManager.theme.unregister(this);
@@ -237,6 +258,48 @@ export class KupChip {
237
258
  },
238
259
  "defaultValue": "[]"
239
260
  },
261
+ "displayId": {
262
+ "type": "boolean",
263
+ "mutable": false,
264
+ "complexType": {
265
+ "original": "boolean",
266
+ "resolved": "boolean",
267
+ "references": {}
268
+ },
269
+ "required": false,
270
+ "optional": false,
271
+ "docs": {
272
+ "tags": [{
273
+ "name": "default",
274
+ "text": "false"
275
+ }],
276
+ "text": "When enabled, the chip's text will display both the id and the value."
277
+ },
278
+ "attribute": "display-id",
279
+ "reflect": false,
280
+ "defaultValue": "false"
281
+ },
282
+ "enableInput": {
283
+ "type": "boolean",
284
+ "mutable": false,
285
+ "complexType": {
286
+ "original": "boolean",
287
+ "resolved": "boolean",
288
+ "references": {}
289
+ },
290
+ "required": false,
291
+ "optional": false,
292
+ "docs": {
293
+ "tags": [{
294
+ "name": "default",
295
+ "text": "false"
296
+ }],
297
+ "text": "When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field)."
298
+ },
299
+ "attribute": "enable-input",
300
+ "reflect": false,
301
+ "defaultValue": "false"
302
+ },
240
303
  "type": {
241
304
  "type": "string",
242
305
  "mutable": false,
@@ -286,6 +349,26 @@ export class KupChip {
286
349
  }
287
350
  }
288
351
  }
352
+ }, {
353
+ "method": "kupChange",
354
+ "name": "kup-chip-change",
355
+ "bubbles": true,
356
+ "cancelable": false,
357
+ "composed": true,
358
+ "docs": {
359
+ "tags": [],
360
+ "text": "Triggered when the chip dataset changes."
361
+ },
362
+ "complexType": {
363
+ "original": "KupChipChangeEventPayload",
364
+ "resolved": "KupChipChangeEventPayload",
365
+ "references": {
366
+ "KupChipChangeEventPayload": {
367
+ "location": "import",
368
+ "path": "./kup-chip-declarations"
369
+ }
370
+ }
371
+ }
289
372
  }, {
290
373
  "method": "kupClick",
291
374
  "name": "kup-chip-click",
@@ -437,3 +520,38 @@ export class KupChip {
437
520
  }];
438
521
  }
439
522
  }
523
+ _KupChip_instances = new WeakSet(), _KupChip_changeHandler =
524
+ /*-------------------------------------------------*/
525
+ /* P r i v a t e M e t h o d s */
526
+ /*-------------------------------------------------*/
527
+ async function _KupChip_changeHandler(e) {
528
+ var _a, _b;
529
+ e.stopPropagation();
530
+ const value = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.value;
531
+ const listNode = e.detail.node;
532
+ if (value) {
533
+ const node = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find((node) => node.id === value);
534
+ if (!node) {
535
+ this.data = [
536
+ ...this.data,
537
+ {
538
+ id: listNode ? listNode.id : value,
539
+ value: listNode ? listNode.value : value,
540
+ },
541
+ ];
542
+ const slot = this.rootElement.querySelector('[slot=field]');
543
+ await slot.setValue('');
544
+ await slot.refresh();
545
+ await slot.setFocus();
546
+ this.kupChange.emit({
547
+ comp: this,
548
+ id: this.rootElement.id,
549
+ stringifiedValues: __classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
550
+ });
551
+ }
552
+ }
553
+ }, _KupChip_stringifiedValues = function _KupChip_stringifiedValues() {
554
+ let stringifiedValues = '';
555
+ this.data.forEach((node) => (stringifiedValues += node.id + ';'));
556
+ return stringifiedValues;
557
+ };
@@ -61,12 +61,13 @@ export class KupCombobox {
61
61
  });
62
62
  }
63
63
  onKupChange(value) {
64
- __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
64
+ let ret = __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
65
65
  this.kupChange.emit({
66
66
  comp: this,
67
67
  id: this.rootElement.id,
68
68
  value: this.value,
69
69
  inputValue: __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value,
70
+ node: ret.node,
70
71
  });
71
72
  }
72
73
  onKupClick() {
@@ -94,13 +95,14 @@ export class KupCombobox {
94
95
  });
95
96
  }
96
97
  onKupInput() {
97
- __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value, false);
98
+ let ret = __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value, false);
98
99
  __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
99
100
  this.kupInput.emit({
100
101
  comp: this,
101
102
  id: this.rootElement.id,
102
103
  value: this.value,
103
104
  inputValue: __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value,
105
+ node: ret.node,
104
106
  });
105
107
  }
106
108
  onKupIconClick() {
@@ -33,13 +33,16 @@ export class KupDashList {
33
33
  let valueInt = '';
34
34
  let valueDec = '';
35
35
  let iconColor = {
36
- color: this.iconColor[count],
36
+ color: this.kupManager.theme.colorCheck(this.iconColor[count])
37
+ .hexColor,
37
38
  };
38
39
  let textColor = {
39
- color: this.textColor[count],
40
+ color: this.kupManager.theme.colorCheck(this.textColor[count])
41
+ .hexColor,
40
42
  };
41
43
  let valueColor = {
42
- color: this.valueColor[count],
44
+ color: this.kupManager.theme.colorCheck(this.valueColor[count])
45
+ .hexColor,
43
46
  };
44
47
  if (this.data.columns[0]) {
45
48
  icon = (h("div", { slot: "icon" }, h("icon", { class: r.cells[this.data.columns[0].name].obj.k, style: iconColor })));
@@ -5,8 +5,8 @@ export class KupDataTableState {
5
5
  this.expandGroups = false;
6
6
  this.groupLabelDisplay = GroupLabelDisplayMode.BOTH;
7
7
  this.density = 'small';
8
- this.enableSortableColumns = false;
9
8
  this.enableExtraColumns = true;
9
+ this.enableSortableColumns = false;
10
10
  this.forceOneLine = false;
11
11
  this.globalFilter = false;
12
12
  this.globalFilterValue = '';