@sme.up/ketchup 6.7.0 → 6.8.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 (170) hide show
  1. package/dist/cjs/{f-button-bf76ab95.js → f-button-229c63fd.js} +1 -1
  2. package/dist/cjs/{f-cell-b7a1524a.js → f-cell-dd006395.js} +5 -5
  3. package/dist/cjs/{f-chip-a5e100b1.js → f-chip-f2c369fd.js} +2 -2
  4. package/dist/cjs/{f-image-d80a2749.js → f-image-847a6ddf.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-c70812fe.js → f-paginator-utils-cedc4b3e.js} +2 -2
  6. package/dist/cjs/{f-text-field-48b8bb16.js → f-text-field-fe85187d.js} +1 -1
  7. package/dist/cjs/ketchup.cjs.js +2 -2
  8. package/dist/cjs/kup-accordion.cjs.entry.js +6 -29
  9. package/dist/cjs/{kup-autocomplete_25.cjs.entry.js → kup-autocomplete_26.cjs.entry.js} +3811 -4323
  10. package/dist/cjs/kup-box.cjs.entry.js +29 -110
  11. package/dist/cjs/kup-calendar.cjs.entry.js +9 -33
  12. package/dist/cjs/kup-cell.cjs.entry.js +8 -27
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +9 -8
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +6 -34
  15. package/dist/cjs/kup-dashboard.cjs.entry.js +8 -30
  16. package/dist/cjs/kup-drawer.cjs.entry.js +3 -18
  17. package/dist/cjs/kup-echart.cjs.entry.js +15 -76
  18. package/dist/cjs/kup-family-tree.cjs.entry.js +11 -47
  19. package/dist/cjs/kup-iframe.cjs.entry.js +4 -16
  20. package/dist/cjs/kup-image-list.cjs.entry.js +14 -32
  21. package/dist/cjs/kup-lazy.cjs.entry.js +9 -36
  22. package/dist/cjs/kup-magic-box.cjs.entry.js +5 -24
  23. package/dist/cjs/{kup-manager-0e38bf48.js → kup-manager-c53468cd.js} +66 -1
  24. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -15
  25. package/dist/cjs/kup-numeric-picker.cjs.entry.js +13 -56
  26. package/dist/cjs/kup-photo-frame.cjs.entry.js +8 -30
  27. package/dist/cjs/kup-probe.cjs.entry.js +12 -32
  28. package/dist/cjs/kup-qlik.cjs.entry.js +5 -59
  29. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -37
  30. package/dist/cjs/loader.cjs.js +2 -2
  31. package/dist/collection/collection-manifest.json +2 -2
  32. package/dist/collection/components/kup-accordion/kup-accordion.js +4 -27
  33. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +15 -64
  34. package/dist/collection/components/kup-badge/kup-badge.js +3 -19
  35. package/dist/collection/components/kup-box/kup-box.js +22 -103
  36. package/dist/collection/components/kup-button/kup-button.js +3 -58
  37. package/dist/collection/components/kup-button-list/kup-button-list.js +3 -38
  38. package/dist/collection/components/kup-calendar/kup-calendar.js +5 -29
  39. package/dist/collection/components/kup-card/box/kup-card-box.js +5 -2
  40. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -2
  41. package/dist/collection/components/kup-card/built-in/kup-card-form.js +11 -0
  42. package/dist/collection/components/kup-card/kup-card.css +78 -12
  43. package/dist/collection/components/kup-card/kup-card.js +48 -47
  44. package/dist/collection/components/kup-cell/kup-cell.js +3 -22
  45. package/dist/collection/components/kup-chart/kup-chart.js +15 -49
  46. package/dist/collection/components/kup-checkbox/kup-checkbox.js +3 -38
  47. package/dist/collection/components/kup-chip/kup-chip.js +3 -19
  48. package/dist/collection/components/kup-color-picker/kup-color-picker.js +4 -35
  49. package/dist/collection/components/kup-combobox/kup-combobox.js +10 -42
  50. package/dist/collection/components/kup-dash/kup-dash.js +2 -14
  51. package/dist/collection/components/kup-dash-list/kup-dash-list.js +8 -7
  52. package/dist/collection/components/kup-dashboard/kup-dashboard.js +4 -26
  53. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
  54. package/dist/collection/components/kup-data-table/kup-data-table.css +9 -0
  55. package/dist/collection/components/kup-data-table/kup-data-table.js +3546 -3385
  56. package/dist/collection/components/kup-date-picker/kup-date-picker.js +7 -35
  57. package/dist/collection/components/kup-drawer/kup-drawer.js +2 -17
  58. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +12 -63
  59. package/dist/collection/components/kup-echart/kup-echart.js +14 -75
  60. package/dist/collection/components/kup-family-tree/kup-family-tree.js +8 -44
  61. package/dist/collection/components/kup-form/kup-form.js +4 -24
  62. package/dist/collection/components/kup-gauge/kup-gauge.js +15 -76
  63. package/dist/collection/components/kup-grid/kup-grid.js +3 -19
  64. package/dist/collection/components/kup-iframe/kup-iframe.js +3 -15
  65. package/dist/collection/components/kup-image/kup-image.js +5 -45
  66. package/dist/collection/components/kup-image-list/kup-image-list.js +8 -26
  67. package/dist/collection/components/kup-lazy/kup-lazy.js +8 -35
  68. package/dist/collection/components/kup-list/kup-list.js +5 -68
  69. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -22
  70. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -14
  71. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +11 -54
  72. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +7 -29
  73. package/dist/collection/components/kup-probe/kup-probe.js +11 -31
  74. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +3 -35
  75. package/dist/collection/components/kup-qlik/kup-qlik.js +4 -58
  76. package/dist/collection/components/kup-radio/kup-radio.js +3 -34
  77. package/dist/collection/components/kup-rating/kup-rating.js +4 -27
  78. package/dist/collection/components/kup-snackbar/kup-snackbar.js +3 -34
  79. package/dist/collection/components/kup-spinner/kup-spinner.js +3 -39
  80. package/dist/collection/components/kup-switch/kup-switch.js +3 -34
  81. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +4 -24
  82. package/dist/collection/components/kup-text-field/kup-text-field.js +2 -115
  83. package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -43
  84. package/dist/collection/components/kup-tree/kup-tree.js +39 -129
  85. package/dist/collection/f-components/f-cell/f-cell.js +1 -1
  86. package/dist/collection/managers/kup-language/kup-language-declarations.js +6 -0
  87. package/dist/esm/{f-button-e79f7594.js → f-button-d1aba968.js} +1 -1
  88. package/dist/esm/{f-cell-9400374e.js → f-cell-646406bb.js} +5 -5
  89. package/dist/esm/{f-chip-bf740287.js → f-chip-d94e9e81.js} +2 -2
  90. package/dist/esm/{f-image-ab3dc8cb.js → f-image-57c88302.js} +1 -1
  91. package/dist/esm/{f-paginator-utils-6909e43b.js → f-paginator-utils-2c865e9a.js} +2 -2
  92. package/dist/esm/{f-text-field-4841dfea.js → f-text-field-b0a1fea6.js} +1 -1
  93. package/dist/esm/ketchup.js +2 -2
  94. package/dist/esm/kup-accordion.entry.js +6 -29
  95. package/dist/esm/{kup-autocomplete_25.entry.js → kup-autocomplete_26.entry.js} +3811 -4324
  96. package/dist/esm/kup-box.entry.js +29 -110
  97. package/dist/esm/kup-calendar.entry.js +9 -33
  98. package/dist/esm/kup-cell.entry.js +8 -27
  99. package/dist/esm/kup-dash-list.entry.js +9 -8
  100. package/dist/esm/kup-dash_2.entry.js +6 -34
  101. package/dist/esm/kup-dashboard.entry.js +8 -30
  102. package/dist/esm/kup-drawer.entry.js +3 -18
  103. package/dist/esm/kup-echart.entry.js +15 -76
  104. package/dist/esm/kup-family-tree.entry.js +11 -47
  105. package/dist/esm/kup-iframe.entry.js +4 -16
  106. package/dist/esm/kup-image-list.entry.js +14 -32
  107. package/dist/esm/kup-lazy.entry.js +9 -36
  108. package/dist/esm/kup-magic-box.entry.js +5 -24
  109. package/dist/esm/{kup-manager-c54e6df5.js → kup-manager-c0fbb180.js} +67 -2
  110. package/dist/esm/kup-nav-bar.entry.js +3 -15
  111. package/dist/esm/kup-numeric-picker.entry.js +13 -56
  112. package/dist/esm/kup-photo-frame.entry.js +8 -30
  113. package/dist/esm/kup-probe.entry.js +12 -32
  114. package/dist/esm/kup-qlik.entry.js +5 -59
  115. package/dist/esm/kup-snackbar.entry.js +6 -37
  116. package/dist/esm/loader.js +2 -2
  117. package/dist/ketchup/ketchup.esm.js +1 -1
  118. package/dist/ketchup/{p-30a63b85.entry.js → p-1914969e.entry.js} +1 -1
  119. package/dist/ketchup/{p-859163c2.entry.js → p-250118e3.entry.js} +1 -1
  120. package/dist/ketchup/{p-2e184b57.entry.js → p-30766296.entry.js} +1 -1
  121. package/dist/ketchup/{p-182b869e.entry.js → p-351cecba.entry.js} +1 -1
  122. package/dist/ketchup/{p-758d03f4.entry.js → p-35e16ea2.entry.js} +1 -1
  123. package/dist/ketchup/{p-e1d0ea71.js → p-395675b8.js} +1 -1
  124. package/dist/ketchup/p-3cf97e3a.js +1 -0
  125. package/dist/ketchup/{p-7e7b6127.entry.js → p-596bdc10.entry.js} +1 -1
  126. package/dist/ketchup/{p-4f0d3062.js → p-61ff1761.js} +1 -1
  127. package/dist/ketchup/p-72d4fa26.entry.js +1 -0
  128. package/dist/ketchup/{p-f9d5e553.entry.js → p-738685f9.entry.js} +1 -1
  129. package/dist/ketchup/{p-fb4d772a.entry.js → p-7c8c5444.entry.js} +1 -1
  130. package/dist/ketchup/p-86154e2b.js +1 -0
  131. package/dist/ketchup/{p-41620707.entry.js → p-9214ef33.entry.js} +1 -1
  132. package/dist/ketchup/{p-1f5c7f21.entry.js → p-980ed953.entry.js} +1 -1
  133. package/dist/ketchup/p-991bd70d.entry.js +1 -0
  134. package/dist/ketchup/{p-bffaef6e.entry.js → p-a1fe329f.entry.js} +1 -1
  135. package/dist/ketchup/p-a740352c.js +30 -0
  136. package/dist/ketchup/{p-25bf0cb6.js → p-a992cf87.js} +1 -1
  137. package/dist/ketchup/{p-313e376b.entry.js → p-b1da1ba7.entry.js} +2 -2
  138. package/dist/ketchup/{p-4a0ccf18.entry.js → p-cee3635a.entry.js} +1 -1
  139. package/dist/ketchup/p-d05ed931.entry.js +9 -0
  140. package/dist/ketchup/{p-8e1fa7a8.entry.js → p-d422151a.entry.js} +2 -2
  141. package/dist/ketchup/p-e6f19333.entry.js +1 -0
  142. package/dist/ketchup/p-eb10958a.entry.js +1 -0
  143. package/dist/ketchup/{p-5bea2971.js → p-ecac6269.js} +1 -1
  144. package/dist/ketchup/p-f43b445e.entry.js +1 -0
  145. package/dist/ketchup/{p-6bd57787.entry.js → p-fa37e92e.entry.js} +1 -1
  146. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -2
  147. package/dist/types/components/kup-card/built-in/kup-card-form.d.ts +3 -0
  148. package/dist/types/components/kup-card/kup-card-declarations.d.ts +11 -1
  149. package/dist/types/components/kup-card/kup-card.d.ts +5 -0
  150. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +9 -0
  151. package/dist/types/components/kup-data-table/kup-data-table.d.ts +41 -202
  152. package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
  153. package/dist/types/components.d.ts +55 -2
  154. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  155. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +7 -1
  156. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +1 -0
  157. package/dist/types/stencil-public-runtime.d.ts +5 -0
  158. package/package.json +2 -2
  159. package/dist/cjs/kup-form.cjs.entry.js +0 -486
  160. package/dist/esm/kup-form.entry.js +0 -482
  161. package/dist/ketchup/p-1dfd2a51.js +0 -30
  162. package/dist/ketchup/p-22ec1ba0.entry.js +0 -9
  163. package/dist/ketchup/p-260ff835.entry.js +0 -1
  164. package/dist/ketchup/p-53d3ae80.entry.js +0 -1
  165. package/dist/ketchup/p-60fa0ccf.entry.js +0 -1
  166. package/dist/ketchup/p-6333388c.js +0 -1
  167. package/dist/ketchup/p-8386e3db.entry.js +0 -1
  168. package/dist/ketchup/p-90860d9e.entry.js +0 -1
  169. package/dist/ketchup/p-b7fdc7aa.entry.js +0 -1
  170. package/dist/ketchup/p-c35c5e05.js +0 -1
@@ -24,18 +24,15 @@
24
24
  font-size: var(--kup-font-size);
25
25
  padding: 0.5em;
26
26
  }
27
- .box-layout-2 .container {
27
+ .box-layout-2 table {
28
28
  width: 100%;
29
29
  }
30
- .box-layout-2 .flex-container {
31
- display: flex;
32
- justify-content: space-between;
33
- }
34
30
  .box-layout-2 .label {
31
+ max-width: 50%;
35
32
  overflow: hidden;
36
33
  padding: 0.5em;
37
34
  text-overflow: ellipsis;
38
- width: 50%;
35
+ white-space: nowrap;
39
36
  }
40
37
  .box-layout-2 .value {
41
38
  padding: 0.5em;
@@ -50,6 +47,8 @@
50
47
  }
51
48
  .box-layout-3 .container {
52
49
  display: flex;
50
+ justify-content: space-between;
51
+ overflow: hidden;
53
52
  width: 100%;
54
53
  }
55
54
  .box-layout-3 .flex-container {
@@ -61,7 +60,6 @@
61
60
  padding: 0.5em;
62
61
  text-overflow: ellipsis;
63
62
  white-space: nowrap;
64
- width: 50%;
65
63
  }
66
64
  .box-layout-3 .value {
67
65
  padding: 0.5em;
@@ -901,6 +899,20 @@
901
899
  background-color: var(--kup-hover-background-color);
902
900
  }
903
901
 
902
+ .built-in-layout-6 {
903
+ background-color: var(--kup-background-color);
904
+ border-radius: 4px;
905
+ box-sizing: border-box;
906
+ box-shadow: 0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);
907
+ display: flex;
908
+ flex-direction: column;
909
+ height: 100%;
910
+ position: relative;
911
+ width: 100%;
912
+ overflow: auto;
913
+ padding: 0.5em;
914
+ }
915
+
904
916
  .collapsible-layout-1 {
905
917
  color: var(--kup-text-color);
906
918
  box-shadow: 0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);
@@ -2407,6 +2419,8 @@
2407
2419
  /* Chrome */
2408
2420
  }
2409
2421
  .standard-layout-14 .section-1 {
2422
+ --kup-button-font-size: 0.75em;
2423
+ box-sizing: border-box;
2410
2424
  display: flex;
2411
2425
  padding: 1em;
2412
2426
  }
@@ -2422,14 +2436,21 @@
2422
2436
  margin: 0 0.5em 0 0;
2423
2437
  }
2424
2438
  .standard-layout-14 .section-1 .title {
2425
- --kup-button-font-size: 0.75em;
2439
+ align-items: flex-end;
2440
+ display: flex;
2426
2441
  font-size: 1.25em;
2427
- margin-top: -0.5em;
2442
+ font-weight: 600;
2443
+ margin-bottom: 0.5em;
2428
2444
  padding: 0 0.25em 0.25em;
2445
+ text-align: left;
2429
2446
  }
2430
2447
  .standard-layout-14 .section-1 .title .label {
2431
2448
  cursor: pointer;
2432
2449
  padding-right: 0.25em;
2450
+ padding-top: 0.5em;
2451
+ overflow: hidden;
2452
+ text-overflow: ellipsis;
2453
+ white-space: nowrap;
2433
2454
  }
2434
2455
  .standard-layout-14 .section-1 .title .label:hover {
2435
2456
  text-decoration: underline;
@@ -2446,6 +2467,7 @@
2446
2467
  width: auto;
2447
2468
  }
2448
2469
  .standard-layout-14 .section-1 .info .value {
2470
+ font-weight: 600;
2449
2471
  width: 100%;
2450
2472
  }
2451
2473
  .standard-layout-14 .sub-button {
@@ -2516,8 +2538,7 @@
2516
2538
  .standard-layout-14 #open-in-new,
2517
2539
  .standard-layout-14 #search,
2518
2540
  .standard-layout-14 #new {
2519
- margin: 0;
2520
- display: inline-flex;
2541
+ margin: 0 0 0.5em 0;
2521
2542
  }
2522
2543
 
2523
2544
  .standard-layout-15 {
@@ -2547,16 +2568,18 @@
2547
2568
  margin: 0 0.5em 0 0;
2548
2569
  }
2549
2570
  .standard-layout-15 .section-1 .title {
2550
- align-items: center;
2571
+ align-items: flex-end;
2551
2572
  display: flex;
2552
2573
  font-size: 1.25em;
2553
2574
  font-weight: 600;
2575
+ margin-bottom: 0.5em;
2554
2576
  padding: 0 0.25em 0.25em;
2555
2577
  text-align: left;
2556
2578
  }
2557
2579
  .standard-layout-15 .section-1 .title .label {
2558
2580
  cursor: pointer;
2559
2581
  padding-right: 0.25em;
2582
+ padding-top: 0.5em;
2560
2583
  overflow: hidden;
2561
2584
  text-overflow: ellipsis;
2562
2585
  white-space: nowrap;
@@ -2640,9 +2663,11 @@
2640
2663
  }
2641
2664
 
2642
2665
  /**
2666
+ * @prop --kup-card-backdrop: Backdrop of the component when is visible.
2643
2667
  * @prop --kup-card-ripple-color: Sets color of ripple effect (for Material layouts).
2644
2668
  */
2645
2669
  :host {
2670
+ --kup_card_backdrop: var(--kup-card-backdrop, rgba(0, 0, 0, 0.32));
2646
2671
  --kup_card_ripple_color: var(
2647
2672
  --kup-card-ripple-color,
2648
2673
  var(--kup-primary-color)
@@ -2657,6 +2682,16 @@
2657
2682
  width: var(--kup_card_width);
2658
2683
  }
2659
2684
 
2685
+ :host([show-modal]) #kup-component {
2686
+ position: fixed;
2687
+ z-index: var(--kup-card-zindex);
2688
+ height: var(--kup_card_height);
2689
+ width: var(--kup_card_width);
2690
+ top: var(--kup_card_top);
2691
+ left: var(--kup_card_left);
2692
+ display: var(--kup_card_display, none);
2693
+ }
2694
+
2660
2695
  :host([is-menu]) {
2661
2696
  display: none;
2662
2697
  animation: fade-in 0.25s ease-out;
@@ -2672,6 +2707,18 @@
2672
2707
  width: 100%;
2673
2708
  }
2674
2709
 
2710
+ .backdrop {
2711
+ background: var(--kup_card_backdrop);
2712
+ display: none;
2713
+ height: 100%;
2714
+ left: 0;
2715
+ position: fixed;
2716
+ top: 0;
2717
+ width: 100%;
2718
+ z-index: calc(var(--kup-card-zindex) - 1);
2719
+ display: block;
2720
+ }
2721
+
2675
2722
  .mdc-ripple-surface {
2676
2723
  cursor: pointer;
2677
2724
  flex-direction: column;
@@ -2691,4 +2738,23 @@
2691
2738
  }
2692
2739
  .card-view.visible {
2693
2740
  display: block;
2741
+ }
2742
+
2743
+ .dialog-layout-7 {
2744
+ background-color: var(--kup-background-color);
2745
+ 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);
2746
+ display: flex;
2747
+ flex-direction: column;
2748
+ height: 100%;
2749
+ max-height: 95vh;
2750
+ max-width: 95vw;
2751
+ width: 100%;
2752
+ }
2753
+ .dialog-layout-7 .section-1 {
2754
+ max-height: 40vh;
2755
+ overflow: auto;
2756
+ }
2757
+ .dialog-layout-7 .section-2 {
2758
+ display: flex;
2759
+ justify-content: center;
2694
2760
  }
@@ -18,52 +18,6 @@ import { getProps, setProps } from '../../utils/utils';
18
18
  import { componentWrapperId } from '../../variables/GenericVariables';
19
19
  export class KupCard {
20
20
  constructor() {
21
- /*-------------------------------------------------*/
22
- /* P r o p s */
23
- /*-------------------------------------------------*/
24
- /**
25
- * Custom style of the component.
26
- * @default ""
27
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
28
- */
29
- this.customStyle = '';
30
- /**
31
- * The actual data of the card.
32
- * @default null
33
- */
34
- this.data = null;
35
- /**
36
- * Defines whether the card is a menu or not.
37
- * Works together with menuVisible.
38
- * @default false
39
- */
40
- this.isMenu = false;
41
- /**
42
- * Sets the type of the card.
43
- * @default KupCardFamily.STANDARD
44
- */
45
- this.layoutFamily = KupCardFamily.STANDARD;
46
- /**
47
- * Sets the number of the layout.
48
- * @default 1
49
- */
50
- this.layoutNumber = 1;
51
- /**
52
- * Sets the status of the card as menu, when false it's hidden otherwise it's visible.
53
- * Works together with isMenu.
54
- * @default false
55
- */
56
- this.menuVisible = false;
57
- /**
58
- * The width of the card, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
59
- * @default "100%"
60
- */
61
- this.sizeX = '100%';
62
- /**
63
- * The height of the card, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).
64
- * @default "100%"
65
- */
66
- this.sizeY = '100%';
67
21
  /*-------------------------------------------------*/
68
22
  /* I n t e r n a l V a r i a b l e s */
69
23
  /*-------------------------------------------------*/
@@ -85,6 +39,15 @@ export class KupCard {
85
39
  this.componentWrapper = null;
86
40
  this.colorPicker = null;
87
41
  this.firstColorPickerChange = true;
42
+ this.customStyle = '';
43
+ this.data = null;
44
+ this.isMenu = false;
45
+ this.layoutFamily = KupCardFamily.STANDARD;
46
+ this.layoutNumber = 1;
47
+ this.menuVisible = false;
48
+ this.showModal = false;
49
+ this.sizeX = '100%';
50
+ this.sizeY = '100%';
88
51
  }
89
52
  onKupClick(id, value) {
90
53
  this.kupClick.emit({
@@ -451,6 +414,13 @@ export class KupCard {
451
414
  }, 0);
452
415
  }
453
416
  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
+ }
454
424
  }
455
425
  render() {
456
426
  if (!this.data && this.rootElement.children.length < 1) {
@@ -460,7 +430,17 @@ export class KupCard {
460
430
  '--kup_card_height': this.sizeY ? this.sizeY : '100%',
461
431
  '--kup_card_width': this.sizeX ? this.sizeX : '100%',
462
432
  };
463
- 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())));
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())));
464
444
  }
465
445
  disconnectedCallback() {
466
446
  this.kupManager.interact.unregister([this.rootElement]);
@@ -619,6 +599,27 @@ export class KupCard {
619
599
  "reflect": true,
620
600
  "defaultValue": "false"
621
601
  },
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
+ },
622
623
  "sizeX": {
623
624
  "type": "string",
624
625
  "mutable": false,
@@ -10,35 +10,16 @@ import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-dec
10
10
  export class KupCell {
11
11
  constructor() {
12
12
  /*-------------------------------------------------*/
13
- /* P r o p s */
13
+ /* I n t e r n a l V a r i a b l e s */
14
14
  /*-------------------------------------------------*/
15
15
  /**
16
- * Custom style of the component.
17
- * @default ""
18
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
16
+ * Instance of the KupManager class.
19
17
  */
18
+ this.kupManager = kupManagerInstance();
20
19
  this.customStyle = '';
21
- /**
22
- * The data of the cell.
23
- * @default false
24
- */
25
20
  this.data = null;
26
- /**
27
- * The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.
28
- */
29
21
  this.density = FCellPadding.NONE;
30
- /**
31
- * When set to true, the component is draggable.
32
- * @default false
33
- */
34
22
  this.dragEnabled = false;
35
- /*-------------------------------------------------*/
36
- /* I n t e r n a l V a r i a b l e s */
37
- /*-------------------------------------------------*/
38
- /**
39
- * Instance of the KupManager class.
40
- */
41
- this.kupManager = kupManagerInstance();
42
23
  }
43
24
  /*-------------------------------------------------*/
44
25
  /* P u b l i c M e t h o d s */
@@ -10,67 +10,33 @@ import { componentWrapperId } from '../../variables/GenericVariables';
10
10
  export class KupChart {
11
11
  constructor() {
12
12
  /**
13
- * Colors of the chart.
14
- * @default []
13
+ * Instance of the KupManager class.
15
14
  */
15
+ this.kupManager = kupManagerInstance();
16
+ this.elStyle = undefined;
17
+ this.themeColors = null;
18
+ this.themeText = null;
19
+ this.asp = undefined;
20
+ this.axis = undefined;
21
+ this.chartTitle = undefined;
16
22
  this.colors = [];
17
- /**
18
- * Custom style of the component.
19
- * @default ""
20
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
21
- */
22
23
  this.customStyle = '';
23
- /**
24
- * Sets the position of the legend. Supported values: bottom, labeled, left, none, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.
25
- * @default "right"
26
- */
24
+ this.data = undefined;
25
+ this.hAxis = undefined;
26
+ this.hAxes = undefined;
27
27
  this.legend = 'right';
28
- /**
29
- * Renders charts without the Google API and using jQuery Sparkline.
30
- * @default undefined
31
- */
32
28
  this.offlineMode = undefined;
33
- /**
34
- * Displays the numerical values.
35
- * @default false
36
- */
29
+ this.series = undefined;
37
30
  this.showMarks = false;
38
- /**
39
- * The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
40
- * @default "100%"
41
- */
42
31
  this.sizeX = '100%';
43
- /**
44
- * The height of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).
45
- * @default "100%"
46
- */
47
32
  this.sizeY = '100%';
48
- /**
49
- * Used to sort series.
50
- * @default null
51
- */
52
33
  this.sorting = null;
53
- /**
54
- * Displays the data columns of an object on top of each other.
55
- */
56
34
  this.stacked = false;
57
- /**
58
- * The type of the chart. Supported formats: Area, Bubble, Cal, Candlestick, Combo, Geo, Hbar, Line, Ohlc, Pie, Sankey, Scatter, Unk, Vbar.
59
- * @default [ChartType.Hbar]
60
- */
61
35
  this.types = [ChartType.Hbar];
62
- /**
63
- * Google chart version to load
64
- * @default "45.2"
65
- */
36
+ this.vAxes = undefined;
37
+ this.vAxis = undefined;
38
+ this.trendlines = undefined;
66
39
  this.version = '45.2';
67
- /**
68
- * Instance of the KupManager class.
69
- */
70
- this.kupManager = kupManagerInstance();
71
- this.elStyle = undefined;
72
- this.themeColors = null;
73
- this.themeText = null;
74
40
  }
75
41
  /*-------------------------------------------------*/
76
42
  /* W a t c h e r s */
@@ -7,54 +7,19 @@ import { componentWrapperId } from '../../variables/GenericVariables';
7
7
  export class KupCheckbox {
8
8
  constructor() {
9
9
  /*-------------------------------------------------*/
10
- /* S t a t e s */
10
+ /* I n t e r n a l V a r i a b l e s */
11
11
  /*-------------------------------------------------*/
12
12
  /**
13
- * The value of the component.
14
- * @default ""
13
+ * Instance of the KupManager class.
15
14
  */
15
+ this.kupManager = kupManagerInstance();
16
16
  this.value = '';
17
- /*-------------------------------------------------*/
18
- /* P r o p s */
19
- /*-------------------------------------------------*/
20
- /**
21
- * Defaults at false. When set to true, the component will be set to 'checked'.
22
- * @default false
23
- */
24
17
  this.checked = false;
25
- /**
26
- * Custom style of the component.
27
- * @default ""
28
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
29
- */
30
18
  this.customStyle = '';
31
- /**
32
- * When set to true, the component is disabled.
33
- * @default false
34
- */
35
19
  this.disabled = false;
36
- /**
37
- * When set to true, the component will be set to 'indeterminate'.
38
- * @default false
39
- */
40
20
  this.indeterminate = false;
41
- /**
42
- * When specified, its content will be shown as a label.
43
- * @default null
44
- */
45
21
  this.label = null;
46
- /**
47
- * When set to true, the label will be on the left of the component.
48
- * @default false
49
- */
50
22
  this.leadingLabel = false;
51
- /*-------------------------------------------------*/
52
- /* I n t e r n a l V a r i a b l e s */
53
- /*-------------------------------------------------*/
54
- /**
55
- * Instance of the KupManager class.
56
- */
57
- this.kupManager = kupManagerInstance();
58
23
  }
59
24
  onKupBlur() {
60
25
  this.kupBlur.emit({
@@ -8,25 +8,6 @@ import { getProps, setProps } from '../../utils/utils';
8
8
  import { componentWrapperId } from '../../variables/GenericVariables';
9
9
  export class KupChip {
10
10
  constructor() {
11
- /*-------------------------------------------------*/
12
- /* P r o p s */
13
- /*-------------------------------------------------*/
14
- /**
15
- * Custom style of the component.
16
- * @default ""
17
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
18
- */
19
- this.customStyle = '';
20
- /**
21
- * List of elements.
22
- * @default []
23
- */
24
- this.data = [];
25
- /**
26
- * The type of chip. Available types: input, filter, choice or empty for default.
27
- * @default FChipType.STANDARD
28
- */
29
- this.type = FChipType.STANDARD;
30
11
  /*-------------------------------------------------*/
31
12
  /* I n t e r n a l V a r i a b l e s */
32
13
  /*-------------------------------------------------*/
@@ -34,6 +15,9 @@ export class KupChip {
34
15
  * Instance of the KupManager class.
35
16
  */
36
17
  this.kupManager = kupManagerInstance();
18
+ this.customStyle = '';
19
+ this.data = [];
20
+ this.type = FChipType.STANDARD;
37
21
  }
38
22
  onKupBlur(chip) {
39
23
  this.kupBlur.emit({
@@ -11,50 +11,19 @@ import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position
11
11
  export class KupColorPicker {
12
12
  constructor() {
13
13
  /*-------------------------------------------------*/
14
- /* S t a t e s */
14
+ /* I n t e r n a l V a r i a b l e s */
15
15
  /*-------------------------------------------------*/
16
16
  /**
17
- * State of the component.
18
- * @default null
17
+ * Instance of the KupManager class.
19
18
  */
19
+ this.kupManager = kupManagerInstance();
20
+ this.clickCb = null;
20
21
  this.value = null;
21
- /*-------------------------------------------------*/
22
- /* P r o p s */
23
- /*-------------------------------------------------*/
24
- /**
25
- * Custom style of the component.
26
- * @default ""
27
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
28
- */
29
22
  this.customStyle = '';
30
- /**
31
- * Props of the text field.
32
- * @default null
33
- */
34
23
  this.data = null;
35
- /**
36
- * Defaults at false. When set to true, the component is disabled.
37
- * @default false
38
- */
39
24
  this.disabled = false;
40
- /**
41
- * Sets the initial value of the component. Can be css color name, hex code or rgb code (sample: "red" or rgb(255, 0, 0) or "#FF0000" ).
42
- * @default ""
43
- */
44
25
  this.initialValue = '';
45
- /**
46
- * When true, the component's text field will be replaced by a swatch.
47
- * @default false
48
- */
49
26
  this.swatchOnly = false;
50
- /*-------------------------------------------------*/
51
- /* I n t e r n a l V a r i a b l e s */
52
- /*-------------------------------------------------*/
53
- /**
54
- * Instance of the KupManager class.
55
- */
56
- this.kupManager = kupManagerInstance();
57
- this.clickCb = null;
58
27
  }
59
28
  /*-------------------------------------------------*/
60
29
  /* P u b l i c M e t h o d s */
@@ -30,48 +30,6 @@ export class KupCombobox {
30
30
  constructor() {
31
31
  _KupCombobox_instances.add(this);
32
32
  /*-------------------------------------------------*/
33
- /* S t a t e s */
34
- /*-------------------------------------------------*/
35
- this.displayedValue = undefined;
36
- this.value = '';
37
- /*-------------------------------------------------*/
38
- /* P r o p s */
39
- /*-------------------------------------------------*/
40
- /**
41
- * Custom style of the component.
42
- * @default ""
43
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
44
- */
45
- this.customStyle = '';
46
- /**
47
- * Props of the sub-components (date input text field).
48
- */
49
- this.data = undefined;
50
- /**
51
- * Defaults at false. When set to true, the component is disabled.
52
- */
53
- this.disabled = false;
54
- /**
55
- * Sets how to show the selected item value. Suported values: "code", "description", "both".
56
- */
57
- this.displayMode = ItemsDisplayMode.DESCRIPTION;
58
- /**
59
- * Sets the initial value of the component
60
- */
61
- this.initialValue = '';
62
- /**
63
- * Lets the combobox behave as a select element.
64
- */
65
- this.isSelect = false;
66
- /**
67
- * Sets how to return the selected item value. Suported values: "code", "description", "both".
68
- */
69
- this.selectMode = ItemsDisplayMode.CODE;
70
- /**
71
- * When true shows the drop-down icon, for open list.
72
- */
73
- this.showDropDownIcon = true;
74
- /*-------------------------------------------------*/
75
33
  /* I n t e r n a l V a r i a b l e s */
76
34
  /*-------------------------------------------------*/
77
35
  /**
@@ -83,6 +41,16 @@ export class KupCombobox {
83
41
  _KupCombobox_textfieldWrapper.set(this, undefined);
84
42
  _KupCombobox_textfieldEl.set(this, undefined);
85
43
  _KupCombobox_clickCb.set(this, null);
44
+ this.displayedValue = undefined;
45
+ this.value = '';
46
+ this.customStyle = '';
47
+ this.data = undefined;
48
+ this.disabled = false;
49
+ this.displayMode = ItemsDisplayMode.DESCRIPTION;
50
+ this.initialValue = '';
51
+ this.isSelect = false;
52
+ this.selectMode = ItemsDisplayMode.CODE;
53
+ this.showDropDownIcon = true;
86
54
  }
87
55
  onKupBlur() {
88
56
  this.kupBlur.emit({
@@ -3,25 +3,13 @@ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
3
3
  export class KupDash {
4
4
  constructor() {
5
5
  /**
6
- * The component can be clicked.
6
+ * Instance of the KupManager class.
7
7
  */
8
+ this.kupManager = kupManagerInstance();
8
9
  this.active = false;
9
- /**
10
- * Sets the font size of the component.
11
- */
12
10
  this.fontsize = '';
13
- /**
14
- * Sets the layout of the component.
15
- */
16
11
  this.layout = '1';
17
- /**
18
- * No idea what this is about.
19
- */
20
12
  this.index = 0;
21
- /**
22
- * Instance of the KupManager class.
23
- */
24
- this.kupManager = kupManagerInstance();
25
13
  }
26
14
  onDshClickHandler() {
27
15
  this.dashClick.emit({