@sme.up/ketchup 7.1.0 → 7.2.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 (213) hide show
  1. package/dist/cjs/{f-button-40953600.js → f-button-1d63db82.js} +2 -2
  2. package/dist/cjs/{f-cell-e603ae4f.js → f-cell-abc20cee.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-ae40e47a.js} +6 -4
  5. package/dist/cjs/{f-image-f741cb4c.js → f-image-c5f5880a.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-35a6a848.js → f-paginator-utils-e8449af2.js} +3 -3
  7. package/dist/cjs/{f-text-field-60a2f24c.js → f-text-field-d200b904.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} +1028 -861
  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 +2 -2
  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-bbbe0491.js} +58 -13
  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/dialog.js +0 -0
  34. package/dist/collection/assets/echart.js +146 -0
  35. package/dist/collection/assets/index.js +4 -0
  36. package/dist/collection/collection-manifest.json +3 -2
  37. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -1
  38. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +12 -0
  39. package/dist/collection/components/kup-card/kup-card.css +0 -22
  40. package/dist/collection/components/kup-card/kup-card.js +1 -40
  41. package/dist/collection/components/kup-chip/kup-chip-declarations.js +2 -0
  42. package/dist/collection/components/kup-chip/kup-chip.js +122 -4
  43. package/dist/collection/components/kup-combobox/kup-combobox.js +4 -2
  44. package/dist/collection/components/kup-data-table/kup-data-table.js +12 -23
  45. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +14 -0
  46. package/dist/collection/components/kup-dialog/kup-dialog.css +64 -0
  47. package/dist/collection/components/kup-dialog/kup-dialog.js +467 -0
  48. package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
  49. package/dist/collection/components/kup-echart/kup-echart.js +86 -14
  50. package/dist/collection/components/kup-list/kup-list-helper.js +6 -4
  51. package/dist/collection/components/kup-list/kup-list.js +0 -6
  52. package/dist/collection/f-components/f-cell/f-cell-declarations.js +7 -0
  53. package/dist/collection/f-components/f-cell/f-cell.js +17 -0
  54. package/dist/collection/f-components/f-chip/f-chip.js +3 -1
  55. package/dist/collection/managers/kup-data/kup-data.js +4 -0
  56. package/dist/collection/managers/kup-interact/kup-interact.js +33 -1
  57. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  58. package/dist/collection/types/GenericTypes.js +1 -0
  59. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +6 -3
  60. package/dist/components/index.d.ts +9 -50
  61. package/dist/components/index.js +1 -48
  62. package/dist/components/kup-accordion.js +18 -13
  63. package/dist/components/kup-autocomplete.js +1 -1
  64. package/dist/components/kup-autocomplete2.js +1622 -1187
  65. package/dist/components/kup-badge.js +1 -1
  66. package/dist/components/kup-box2.js +18 -13
  67. package/dist/components/kup-button-list.js +1 -1
  68. package/dist/components/kup-button.js +1 -1
  69. package/dist/components/kup-calendar.js +18 -13
  70. package/dist/components/kup-card.js +1 -1
  71. package/dist/components/kup-cell.js +18 -13
  72. package/dist/components/kup-chart.js +1 -1
  73. package/dist/components/kup-checkbox.js +1 -1
  74. package/dist/components/kup-chip.js +1 -1
  75. package/dist/components/kup-color-picker.js +1 -1
  76. package/dist/components/kup-combobox.js +1 -1
  77. package/dist/components/kup-dash-list.js +20 -15
  78. package/dist/components/kup-dash2.js +18 -13
  79. package/dist/components/kup-dashboard.js +18 -13
  80. package/dist/components/kup-data-table.js +1 -1
  81. package/dist/components/kup-date-picker.js +1 -1
  82. package/dist/components/kup-dialog.d.ts +11 -0
  83. package/dist/components/kup-dialog.js +6 -0
  84. package/dist/components/kup-drawer.js +18 -13
  85. package/dist/components/kup-dropdown-button.js +1 -1
  86. package/dist/components/kup-echart2.js +105 -27
  87. package/dist/components/kup-family-tree.js +20 -15
  88. package/dist/components/kup-form.js +1 -1
  89. package/dist/components/kup-gauge.js +1 -1
  90. package/dist/components/kup-grid2.js +18 -13
  91. package/dist/components/kup-iframe.js +18 -13
  92. package/dist/components/kup-image-list.js +18 -13
  93. package/dist/components/kup-image.js +1 -1
  94. package/dist/components/kup-lazy.js +18 -13
  95. package/dist/components/kup-list.js +1 -1
  96. package/dist/components/kup-magic-box.js +20 -15
  97. package/dist/components/kup-nav-bar.js +18 -13
  98. package/dist/components/kup-numeric-picker.js +18 -13
  99. package/dist/components/kup-photo-frame.js +18 -13
  100. package/dist/components/kup-probe.js +18 -13
  101. package/dist/components/kup-progress-bar.js +1 -1
  102. package/dist/components/kup-qlik.js +18 -13
  103. package/dist/components/kup-radio.js +1 -1
  104. package/dist/components/kup-rating.js +1 -1
  105. package/dist/components/kup-snackbar.js +18 -13
  106. package/dist/components/kup-spinner.js +1 -1
  107. package/dist/components/kup-switch.js +1 -1
  108. package/dist/components/kup-tab-bar.js +1 -1
  109. package/dist/components/kup-text-field.js +1 -1
  110. package/dist/components/kup-time-picker.js +1 -1
  111. package/dist/components/kup-tree.js +1 -1
  112. package/dist/esm/{f-button-9aec1bc5.js → f-button-a8843fb2.js} +2 -2
  113. package/dist/esm/{f-cell-556937d0.js → f-cell-aa0acc55.js} +60 -7
  114. package/dist/esm/{f-checkbox-b721178e.js → f-checkbox-9b3f5f5b.js} +1 -1
  115. package/dist/esm/{f-chip-677db32a.js → f-chip-4555fb98.js} +6 -4
  116. package/dist/esm/{f-image-52bb5950.js → f-image-fed7623c.js} +2 -2
  117. package/dist/esm/{f-paginator-utils-d472e336.js → f-paginator-utils-8c88fab3.js} +3 -3
  118. package/dist/esm/{f-text-field-88f92118.js → f-text-field-b74f4b58.js} +2 -2
  119. package/dist/esm/{index-a2197376.js → index-8bd38435.js} +120 -3
  120. package/dist/esm/ketchup.js +7 -3
  121. package/dist/esm/kup-accordion.entry.js +3 -3
  122. package/dist/esm/{kup-autocomplete_26.entry.js → kup-autocomplete_27.entry.js} +1009 -843
  123. package/dist/esm/kup-box.entry.js +9 -9
  124. package/dist/esm/kup-calendar.entry.js +5 -5
  125. package/dist/esm/kup-cell.entry.js +7 -7
  126. package/dist/esm/kup-dash-list.entry.js +2 -2
  127. package/dist/esm/kup-dash_2.entry.js +2 -2
  128. package/dist/esm/kup-dashboard.entry.js +6 -6
  129. package/dist/esm/kup-drawer.entry.js +2 -2
  130. package/dist/esm/kup-echart.entry.js +89 -16
  131. package/dist/esm/kup-family-tree.entry.js +4 -4
  132. package/dist/esm/kup-iframe.entry.js +2 -2
  133. package/dist/esm/kup-image-list.entry.js +8 -8
  134. package/dist/esm/kup-lazy.entry.js +2 -2
  135. package/dist/esm/kup-magic-box.entry.js +3 -3
  136. package/dist/esm/{kup-manager-12e99c22.js → kup-manager-311c87ab.js} +59 -14
  137. package/dist/esm/kup-nav-bar.entry.js +2 -2
  138. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  139. package/dist/esm/kup-photo-frame.entry.js +2 -2
  140. package/dist/esm/kup-probe.entry.js +2 -2
  141. package/dist/esm/kup-qlik.entry.js +2 -2
  142. package/dist/esm/kup-snackbar.entry.js +4 -4
  143. package/dist/esm/loader.js +4 -3
  144. package/dist/esm/polyfills/css-shim.js +1 -1
  145. package/dist/ketchup/ketchup.esm.js +1 -1
  146. package/dist/ketchup/{p-c59e6bc7.entry.js → p-028e4c1d.entry.js} +1 -1
  147. package/dist/ketchup/p-06d55b09.entry.js +39 -0
  148. package/dist/ketchup/p-09b2668f.entry.js +27 -0
  149. package/dist/ketchup/p-115220b5.entry.js +1 -0
  150. package/dist/ketchup/{p-ce1da4a8.entry.js → p-17d827e8.entry.js} +1 -1
  151. package/dist/ketchup/{p-60609877.entry.js → p-1d7f90be.entry.js} +1 -1
  152. package/dist/ketchup/p-1e5fda58.entry.js +1 -0
  153. package/dist/ketchup/{p-ac33139e.entry.js → p-247362de.entry.js} +1 -1
  154. package/dist/ketchup/{p-25617855.js → p-388d18a1.js} +1 -1
  155. package/dist/ketchup/{p-88adddcf.entry.js → p-3a0cf42a.entry.js} +1 -1
  156. package/dist/ketchup/{p-9570ebfa.js → p-48be0d93.js} +1 -1
  157. package/dist/ketchup/p-4c0206cf.entry.js +1 -0
  158. package/dist/ketchup/{p-85c7a3a4.js → p-519f4074.js} +1 -1
  159. package/dist/ketchup/{p-053824eb.entry.js → p-5f920acd.entry.js} +1 -1
  160. package/dist/ketchup/{p-ad3e7b2b.entry.js → p-6ae98bb0.entry.js} +1 -1
  161. package/dist/ketchup/p-6dde2079.entry.js +1 -0
  162. package/dist/ketchup/p-79b0730b.js +1 -1
  163. package/dist/ketchup/{p-4f7302a9.js → p-7e9f8adf.js} +1 -1
  164. package/dist/ketchup/p-7f9912b1.js +1 -0
  165. package/dist/ketchup/p-8df0191d.entry.js +9 -0
  166. package/dist/ketchup/{p-e094ebb8.entry.js → p-910249f5.entry.js} +1 -1
  167. package/dist/ketchup/{p-52f19c4f.entry.js → p-9174622b.entry.js} +1 -1
  168. package/dist/ketchup/p-9dcfbb1e.js +2 -0
  169. package/dist/ketchup/{p-23cd5a68.js → p-9f9b6656.js} +1 -1
  170. package/dist/ketchup/{p-3a7a05a7.entry.js → p-a1708266.entry.js} +1 -1
  171. package/dist/ketchup/p-b67a295b.js +30 -0
  172. package/dist/ketchup/{p-485883cb.entry.js → p-bc68a9de.entry.js} +1 -1
  173. package/dist/ketchup/p-cb28bc8c.js +1 -0
  174. package/dist/ketchup/p-de9375f7.entry.js +1 -0
  175. package/dist/ketchup/{p-f44aba79.entry.js → p-df6617bc.entry.js} +1 -1
  176. package/dist/ketchup/{p-94290b09.entry.js → p-fb6ee94f.entry.js} +1 -1
  177. package/dist/loader/index.d.ts +9 -0
  178. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +4 -2
  179. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  180. package/dist/types/components/kup-card/kup-card.d.ts +0 -5
  181. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +5 -0
  182. package/dist/types/components/kup-chip/kup-chip.d.ts +16 -1
  183. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -1
  184. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +26 -0
  185. package/dist/types/components/kup-dialog/kup-dialog.d.ts +77 -0
  186. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
  187. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +1 -1
  188. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
  189. package/dist/types/components.d.ts +185 -11
  190. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -0
  191. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -0
  192. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +2 -1
  193. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
  194. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +2 -2
  195. package/dist/types/managers/kup-interact/kup-interact.d.ts +11 -0
  196. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
  197. package/dist/types/stencil-public-runtime.d.ts +71 -15
  198. package/dist/types/types/GenericTypes.d.ts +1 -0
  199. package/dist/types/utils/filters/filters-declarations.d.ts +2 -0
  200. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +3 -1
  201. package/package.json +2 -2
  202. package/dist/ketchup/p-1c371df3.entry.js +0 -39
  203. package/dist/ketchup/p-278188bf.js +0 -1
  204. package/dist/ketchup/p-4021d751.entry.js +0 -1
  205. package/dist/ketchup/p-4fdb684f.js +0 -2
  206. package/dist/ketchup/p-5483f20e.js +0 -30
  207. package/dist/ketchup/p-584369be.entry.js +0 -1
  208. package/dist/ketchup/p-6a6c3e69.entry.js +0 -27
  209. package/dist/ketchup/p-751b5708.js +0 -1
  210. package/dist/ketchup/p-775e0d34.entry.js +0 -1
  211. package/dist/ketchup/p-7e013c24.entry.js +0 -1
  212. package/dist/ketchup/p-b0f22298.entry.js +0 -9
  213. package/dist/ketchup/p-e0135ce0.entry.js +0 -1
@@ -0,0 +1,467 @@
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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9
+ if (kind === "m")
10
+ throw new TypeError("Private method is not writable");
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a setter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
15
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16
+ };
17
+ var _KupDialog_header, _KupDialog_kupManager;
18
+ import { forceUpdate, h, Host, } from '@stencil/core';
19
+ import { FImage } from '../../f-components/f-image/f-image';
20
+ import { kupManagerInstance } from '../../managers/kup-manager/kup-manager';
21
+ import { getProps, setProps } from '../../utils/utils';
22
+ import { componentWrapperId } from '../../variables/GenericVariables';
23
+ import { KupDialogProps, } from './kup-dialog-declarations';
24
+ export class KupDialog {
25
+ constructor() {
26
+ /*-------------------------------------------------*/
27
+ /* I n t e r n a l V a r i a b l e s */
28
+ /*-------------------------------------------------*/
29
+ _KupDialog_header.set(this, null);
30
+ _KupDialog_kupManager.set(this, kupManagerInstance());
31
+ this.autoCenter = { onReady: true };
32
+ this.customStyle = '';
33
+ this.header = { icons: { close: true } };
34
+ this.modal = { closeOnBackdropClick: true };
35
+ this.resizable = true;
36
+ this.sizeX = 'auto';
37
+ this.sizeY = 'auto';
38
+ }
39
+ /*-------------------------------------------------*/
40
+ /* P u b l i c M e t h o d s */
41
+ /*-------------------------------------------------*/
42
+ /**
43
+ * Closes the dialog detaching it from the DOM.
44
+ */
45
+ async close() {
46
+ this.kupClose.emit({
47
+ comp: this,
48
+ id: this.rootElement.id,
49
+ });
50
+ this.rootElement.remove();
51
+ }
52
+ /**
53
+ * Used to retrieve component's props values.
54
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
55
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
56
+ */
57
+ async getProps(descriptions) {
58
+ return getProps(this, KupDialogProps, descriptions);
59
+ }
60
+ /**
61
+ * Places the dialog at the center of the screen.
62
+ */
63
+ async recalcPosition() {
64
+ const rect = this.rootElement.getBoundingClientRect();
65
+ const left = window.innerWidth / 2 - rect.width / 2;
66
+ const top = window.innerHeight / 2 - rect.height / 2;
67
+ this.rootElement.style.setProperty('--kup_dialog_left', left + 'px');
68
+ this.rootElement.style.setProperty('--kup_dialog_top', top + 'px');
69
+ }
70
+ /**
71
+ * This method is used to trigger a new render of the component.
72
+ */
73
+ async refresh() {
74
+ forceUpdate(this);
75
+ }
76
+ /**
77
+ * Sets the props to the component.
78
+ * @param {GenericObject} props - Object containing props that will be set to the component.
79
+ */
80
+ async setProps(props) {
81
+ setProps(this, KupDialogProps, props);
82
+ }
83
+ /*-------------------------------------------------*/
84
+ /* L i f e c y c l e H o o k s */
85
+ /*-------------------------------------------------*/
86
+ componentWillLoad() {
87
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").debug.logLoad(this, false);
88
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").theme.register(this);
89
+ }
90
+ componentDidLoad() {
91
+ var _a;
92
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").interact.dialogify(this.rootElement, __classPrivateFieldGet(this, _KupDialog_header, "f") ? __classPrivateFieldGet(this, _KupDialog_header, "f") : null, !this.resizable);
93
+ if ((_a = this.autoCenter) === null || _a === void 0 ? void 0 : _a.onReady) {
94
+ this.recalcPosition().then(() => {
95
+ this.rootElement.removeAttribute('fade-in');
96
+ });
97
+ }
98
+ else {
99
+ this.rootElement.removeAttribute('fade-in');
100
+ }
101
+ if (this.modal) {
102
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").interact.showModalBackdrop(this.modal.closeOnBackdropClick
103
+ ? () => {
104
+ this.close();
105
+ }
106
+ : null);
107
+ }
108
+ this.kupReady.emit({
109
+ comp: this,
110
+ id: this.rootElement.id,
111
+ });
112
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").debug.logLoad(this, true);
113
+ }
114
+ componentWillRender() {
115
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").debug.logRender(this, false);
116
+ }
117
+ componentDidRender() {
118
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").debug.logRender(this, true);
119
+ }
120
+ render() {
121
+ var _a;
122
+ const style = {
123
+ '--kup_dialog_height': this.sizeY ? this.sizeY : 'auto',
124
+ '--kup_dialog_width': this.sizeX ? this.sizeX : 'auto',
125
+ };
126
+ return (h(Host, { "fade-in": true, style: style }, h("style", null, __classPrivateFieldGet(this, _KupDialog_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, this.header ? (h("div", { class: "header", ref: (el) => (__classPrivateFieldSet(this, _KupDialog_header, el, "f")) }, this.header.title ? (h("div", { class: "header__title" }, this.header.title)) : null, ((_a = this.header.icons) === null || _a === void 0 ? void 0 : _a.close) ? (h(FImage, { onClick: () => this.close(), sizeX: "1.25em", sizeY: "100%", resource: "clear", wrapperClass: "header__close" })) : null)) : null, h("div", { class: "content" }, h("slot", null)))));
127
+ }
128
+ disconnectedCallback() {
129
+ if (this.modal) {
130
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").interact.hideModalBackdrop();
131
+ }
132
+ __classPrivateFieldGet(this, _KupDialog_kupManager, "f").theme.unregister(this);
133
+ }
134
+ static get is() { return "kup-dialog"; }
135
+ static get encapsulation() { return "shadow"; }
136
+ static get originalStyleUrls() {
137
+ return {
138
+ "$": ["kup-dialog.scss"]
139
+ };
140
+ }
141
+ static get styleUrls() {
142
+ return {
143
+ "$": ["kup-dialog.css"]
144
+ };
145
+ }
146
+ static get properties() {
147
+ return {
148
+ "autoCenter": {
149
+ "type": "unknown",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "KupDialogAutoCenter",
153
+ "resolved": "KupDialogAutoCenter",
154
+ "references": {
155
+ "KupDialogAutoCenter": {
156
+ "location": "import",
157
+ "path": "./kup-dialog-declarations"
158
+ }
159
+ }
160
+ },
161
+ "required": false,
162
+ "optional": false,
163
+ "docs": {
164
+ "tags": [{
165
+ "name": "default",
166
+ "text": "\"{ onReady: true }\""
167
+ }],
168
+ "text": "Auto centers the dialog relatively to the viewport."
169
+ },
170
+ "defaultValue": "{ onReady: true }"
171
+ },
172
+ "customStyle": {
173
+ "type": "string",
174
+ "mutable": false,
175
+ "complexType": {
176
+ "original": "string",
177
+ "resolved": "string",
178
+ "references": {}
179
+ },
180
+ "required": false,
181
+ "optional": false,
182
+ "docs": {
183
+ "tags": [{
184
+ "name": "default",
185
+ "text": "\"\""
186
+ }, {
187
+ "name": "see",
188
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
189
+ }],
190
+ "text": "Custom style of the component."
191
+ },
192
+ "attribute": "custom-style",
193
+ "reflect": false,
194
+ "defaultValue": "''"
195
+ },
196
+ "header": {
197
+ "type": "unknown",
198
+ "mutable": false,
199
+ "complexType": {
200
+ "original": "KupDialogHeader",
201
+ "resolved": "KupDialogHeader",
202
+ "references": {
203
+ "KupDialogHeader": {
204
+ "location": "import",
205
+ "path": "./kup-dialog-declarations"
206
+ }
207
+ }
208
+ },
209
+ "required": false,
210
+ "optional": false,
211
+ "docs": {
212
+ "tags": [{
213
+ "name": "default",
214
+ "text": "\"{ icons: { close: true } }\""
215
+ }],
216
+ "text": "Header options."
217
+ },
218
+ "defaultValue": "{ icons: { close: true } }"
219
+ },
220
+ "modal": {
221
+ "type": "unknown",
222
+ "mutable": false,
223
+ "complexType": {
224
+ "original": "KupDialogModal",
225
+ "resolved": "KupDialogModal",
226
+ "references": {
227
+ "KupDialogModal": {
228
+ "location": "import",
229
+ "path": "./kup-dialog-declarations"
230
+ }
231
+ }
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [{
237
+ "name": "default",
238
+ "text": "\"{ closeOnBackdropClick: true }\""
239
+ }],
240
+ "text": "Set of options to display the dialog as a modal."
241
+ },
242
+ "defaultValue": "{ closeOnBackdropClick: true }"
243
+ },
244
+ "resizable": {
245
+ "type": "boolean",
246
+ "mutable": false,
247
+ "complexType": {
248
+ "original": "boolean",
249
+ "resolved": "boolean",
250
+ "references": {}
251
+ },
252
+ "required": false,
253
+ "optional": false,
254
+ "docs": {
255
+ "tags": [{
256
+ "name": "default",
257
+ "text": "\"true\""
258
+ }],
259
+ "text": "Sets whether the dialog is resizable or not."
260
+ },
261
+ "attribute": "resizable",
262
+ "reflect": false,
263
+ "defaultValue": "true"
264
+ },
265
+ "sizeX": {
266
+ "type": "string",
267
+ "mutable": false,
268
+ "complexType": {
269
+ "original": "string",
270
+ "resolved": "string",
271
+ "references": {}
272
+ },
273
+ "required": false,
274
+ "optional": false,
275
+ "docs": {
276
+ "tags": [{
277
+ "name": "default",
278
+ "text": "\"auto\""
279
+ }],
280
+ "text": "The width of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vw, etc.)."
281
+ },
282
+ "attribute": "size-x",
283
+ "reflect": false,
284
+ "defaultValue": "'auto'"
285
+ },
286
+ "sizeY": {
287
+ "type": "string",
288
+ "mutable": false,
289
+ "complexType": {
290
+ "original": "string",
291
+ "resolved": "string",
292
+ "references": {}
293
+ },
294
+ "required": false,
295
+ "optional": false,
296
+ "docs": {
297
+ "tags": [{
298
+ "name": "default",
299
+ "text": "\"auto\""
300
+ }],
301
+ "text": "The height of the card, defaults to auto. Accepts any valid CSS format (px, %, vh, etc.)."
302
+ },
303
+ "attribute": "size-y",
304
+ "reflect": false,
305
+ "defaultValue": "'auto'"
306
+ }
307
+ };
308
+ }
309
+ static get events() {
310
+ return [{
311
+ "method": "kupClose",
312
+ "name": "kup-dialog-close",
313
+ "bubbles": true,
314
+ "cancelable": false,
315
+ "composed": true,
316
+ "docs": {
317
+ "tags": [],
318
+ "text": ""
319
+ },
320
+ "complexType": {
321
+ "original": "KupEventPayload",
322
+ "resolved": "KupEventPayload",
323
+ "references": {
324
+ "KupEventPayload": {
325
+ "location": "import",
326
+ "path": "../../types/GenericTypes"
327
+ }
328
+ }
329
+ }
330
+ }, {
331
+ "method": "kupReady",
332
+ "name": "kup-dialog-ready",
333
+ "bubbles": true,
334
+ "cancelable": false,
335
+ "composed": true,
336
+ "docs": {
337
+ "tags": [],
338
+ "text": ""
339
+ },
340
+ "complexType": {
341
+ "original": "KupEventPayload",
342
+ "resolved": "KupEventPayload",
343
+ "references": {
344
+ "KupEventPayload": {
345
+ "location": "import",
346
+ "path": "../../types/GenericTypes"
347
+ }
348
+ }
349
+ }
350
+ }];
351
+ }
352
+ static get methods() {
353
+ return {
354
+ "close": {
355
+ "complexType": {
356
+ "signature": "() => Promise<void>",
357
+ "parameters": [],
358
+ "references": {
359
+ "Promise": {
360
+ "location": "global"
361
+ }
362
+ },
363
+ "return": "Promise<void>"
364
+ },
365
+ "docs": {
366
+ "text": "Closes the dialog detaching it from the DOM.",
367
+ "tags": []
368
+ }
369
+ },
370
+ "getProps": {
371
+ "complexType": {
372
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
373
+ "parameters": [{
374
+ "tags": [{
375
+ "name": "param",
376
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
377
+ }],
378
+ "text": "- When provided and true, the result will be the list of props with their description."
379
+ }],
380
+ "references": {
381
+ "Promise": {
382
+ "location": "global"
383
+ },
384
+ "GenericObject": {
385
+ "location": "import",
386
+ "path": "../../types/GenericTypes"
387
+ }
388
+ },
389
+ "return": "Promise<GenericObject>"
390
+ },
391
+ "docs": {
392
+ "text": "Used to retrieve component's props values.",
393
+ "tags": [{
394
+ "name": "param",
395
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
396
+ }, {
397
+ "name": "returns",
398
+ "text": "List of props as object, each key will be a prop."
399
+ }]
400
+ }
401
+ },
402
+ "recalcPosition": {
403
+ "complexType": {
404
+ "signature": "() => Promise<void>",
405
+ "parameters": [],
406
+ "references": {
407
+ "Promise": {
408
+ "location": "global"
409
+ }
410
+ },
411
+ "return": "Promise<void>"
412
+ },
413
+ "docs": {
414
+ "text": "Places the dialog at the center of the screen.",
415
+ "tags": []
416
+ }
417
+ },
418
+ "refresh": {
419
+ "complexType": {
420
+ "signature": "() => Promise<void>",
421
+ "parameters": [],
422
+ "references": {
423
+ "Promise": {
424
+ "location": "global"
425
+ }
426
+ },
427
+ "return": "Promise<void>"
428
+ },
429
+ "docs": {
430
+ "text": "This method is used to trigger a new render of the component.",
431
+ "tags": []
432
+ }
433
+ },
434
+ "setProps": {
435
+ "complexType": {
436
+ "signature": "(props: GenericObject) => Promise<void>",
437
+ "parameters": [{
438
+ "tags": [{
439
+ "name": "param",
440
+ "text": "props - Object containing props that will be set to the component."
441
+ }],
442
+ "text": "- Object containing props that will be set to the component."
443
+ }],
444
+ "references": {
445
+ "Promise": {
446
+ "location": "global"
447
+ },
448
+ "GenericObject": {
449
+ "location": "import",
450
+ "path": "../../types/GenericTypes"
451
+ }
452
+ },
453
+ "return": "Promise<void>"
454
+ },
455
+ "docs": {
456
+ "text": "Sets the props to the component.",
457
+ "tags": [{
458
+ "name": "param",
459
+ "text": "props - Object containing props that will be set to the component."
460
+ }]
461
+ }
462
+ }
463
+ };
464
+ }
465
+ static get elementRef() { return "rootElement"; }
466
+ }
467
+ _KupDialog_header = new WeakMap(), _KupDialog_kupManager = new WeakMap();
@@ -45,4 +45,5 @@ export var KupEchartTypes;
45
45
  KupEchartTypes["MAP"] = "Map";
46
46
  KupEchartTypes["PIE"] = "Pie";
47
47
  KupEchartTypes["SCATTER"] = "Scatter";
48
+ KupEchartTypes["FUNNEL"] = "Funnel";
48
49
  })(KupEchartTypes || (KupEchartTypes = {}));
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
14
14
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
15
15
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16
16
  };
17
- var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_computedColors, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_fetchcomputedColors, _KupEchart_checks;
17
+ var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
18
18
  import { forceUpdate, getAssetPath, Host, h, } from '@stencil/core';
19
19
  import * as echarts from 'echarts';
20
20
  import { KupEchartLegendPlacement, KupEchartMaps, KupEchartProps, KupEchartTypes, } from './kup-echart-declarations';
@@ -40,7 +40,6 @@ export class KupEchart {
40
40
  _KupEchart_sortedDataset.set(this, null);
41
41
  _KupEchart_themeBorder.set(this, null);
42
42
  _KupEchart_themeBackground.set(this, null);
43
- _KupEchart_computedColors.set(this, null);
44
43
  _KupEchart_minColorHeatMap.set(this, null);
45
44
  _KupEchart_maxColorHeatMap.set(this, null);
46
45
  _KupEchart_themeFont.set(this, null);
@@ -118,8 +117,11 @@ export class KupEchart {
118
117
  __classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, true);
119
118
  }
120
119
  componentWillRender() {
120
+ __classPrivateFieldSet(this, _KupEchart_themeBackground, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BACKGROUND], "f");
121
+ __classPrivateFieldSet(this, _KupEchart_themeBorder, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BORDER], "f");
122
+ __classPrivateFieldSet(this, _KupEchart_themeFont, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars['--kup-font-family'], "f");
123
+ __classPrivateFieldSet(this, _KupEchart_themeText, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.TEXT], "f");
121
124
  __classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, false);
122
- __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_fetchcomputedColors).call(this);
123
125
  }
124
126
  componentDidRender() {
125
127
  if (this.data && this.data.columns && this.data.rows) {
@@ -602,7 +604,7 @@ export class KupEchart {
602
604
  }
603
605
  static get elementRef() { return "rootElement"; }
604
606
  }
605
- _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _KupEchart_gaussianDatasets = new WeakMap(), _KupEchart_kupManager = new WeakMap(), _KupEchart_mapObj = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(), _KupEchart_sortedDataset = new WeakMap(), _KupEchart_themeBorder = new WeakMap(), _KupEchart_themeBackground = new WeakMap(), _KupEchart_computedColors = new WeakMap(), _KupEchart_minColorHeatMap = new WeakMap(), _KupEchart_maxColorHeatMap = new WeakMap(), _KupEchart_themeFont = new WeakMap(), _KupEchart_themeText = new WeakMap(), _KupEchart_instances = new WeakSet(), _KupEchart_initChart = function _KupEchart_initChart() {
607
+ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _KupEchart_gaussianDatasets = new WeakMap(), _KupEchart_kupManager = new WeakMap(), _KupEchart_mapObj = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(), _KupEchart_sortedDataset = new WeakMap(), _KupEchart_themeBorder = new WeakMap(), _KupEchart_themeBackground = new WeakMap(), _KupEchart_minColorHeatMap = new WeakMap(), _KupEchart_maxColorHeatMap = new WeakMap(), _KupEchart_themeFont = new WeakMap(), _KupEchart_themeText = new WeakMap(), _KupEchart_instances = new WeakSet(), _KupEchart_initChart = function _KupEchart_initChart() {
606
608
  if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
607
609
  echarts.dispose(__classPrivateFieldGet(this, _KupEchart_chartContainer, "f"));
608
610
  }
@@ -644,6 +646,9 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
644
646
  case KupEchartTypes.PIE:
645
647
  options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setPieOptions).call(this);
646
648
  break;
649
+ case KupEchartTypes.FUNNEL:
650
+ options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_funnelChart).call(this);
651
+ break;
647
652
  default:
648
653
  options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
649
654
  break;
@@ -674,6 +679,73 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
674
679
  y: Array.isArray(e.data) ? e.data[1] : e.value,
675
680
  });
676
681
  });
682
+ }, _KupEchart_funnelChart = function _KupEchart_funnelChart() {
683
+ const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
684
+ const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
685
+ const cellsSum = {};
686
+ const data = [];
687
+ let highest = 0;
688
+ for (let key in y) {
689
+ for (let j = 0; j < y[key].length; j++) {
690
+ if (cellsSum[x[j]]) {
691
+ cellsSum[x[j]] += parseFloat(y[key][j]);
692
+ }
693
+ else {
694
+ cellsSum[x[j]] = parseFloat(y[key][j]);
695
+ }
696
+ }
697
+ }
698
+ for (let key in cellsSum) {
699
+ const value = cellsSum[key];
700
+ if (value > highest) {
701
+ highest = value;
702
+ }
703
+ }
704
+ for (const key in cellsSum) {
705
+ const value = cellsSum[key];
706
+ data.push({
707
+ name: key,
708
+ value: ((100 * value) / highest).toFixed(2),
709
+ });
710
+ }
711
+ return {
712
+ color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(cellsSum).length),
713
+ title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
714
+ tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
715
+ const name = value.data.name;
716
+ const percentage = value.data
717
+ .value;
718
+ return `${name}: <strong>${cellsSum[name]}</strong> (${__classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(percentage)}%)`;
719
+ } }),
720
+ legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, cellsSum),
721
+ series: [
722
+ {
723
+ name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
724
+ name: this.axis,
725
+ })[0].title,
726
+ type: 'funnel',
727
+ gap: 2,
728
+ label: {
729
+ show: true,
730
+ position: 'right',
731
+ },
732
+ labelLine: {
733
+ lineStyle: {
734
+ width: 1,
735
+ type: 'solid',
736
+ },
737
+ },
738
+ itemStyle: {
739
+ borderColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
740
+ borderWidth: 1,
741
+ },
742
+ left: '10%',
743
+ right: '10%',
744
+ width: '80%',
745
+ data,
746
+ },
747
+ ],
748
+ };
677
749
  }, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
678
750
  const x = [];
679
751
  if (!dataset)
@@ -823,6 +895,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
823
895
  }
824
896
  return opts;
825
897
  }, _KupEchart_setMapOptions = function _KupEchart_setMapOptions(map) {
898
+ const computedColors = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, 3);
826
899
  const mapJson = JSON.parse(map);
827
900
  const isoA2 = [];
828
901
  const names = [];
@@ -955,7 +1028,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
955
1028
  roam: true,
956
1029
  select: {
957
1030
  itemStyle: {
958
- areaColor: __classPrivateFieldGet(this, _KupEchart_computedColors, "f")[0],
1031
+ areaColor: computedColors[0],
959
1032
  },
960
1033
  label: {
961
1034
  color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
@@ -981,7 +1054,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
981
1054
  });
982
1055
  }
983
1056
  return {
984
- color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
1057
+ color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
985
1058
  legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
986
1059
  title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
987
1060
  tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' }),
@@ -1132,7 +1205,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
1132
1205
  yAxisTmp.splice(0, 1);
1133
1206
  }
1134
1207
  return {
1135
- color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
1208
+ color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
1136
1209
  legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
1137
1210
  series: series,
1138
1211
  title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
@@ -1195,7 +1268,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
1195
1268
  i++;
1196
1269
  }
1197
1270
  return {
1198
- color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
1271
+ color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
1199
1272
  legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
1200
1273
  series: series,
1201
1274
  title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
@@ -1203,17 +1276,12 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
1203
1276
  xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: x, type: 'category' }), this.xAxis),
1204
1277
  yAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
1205
1278
  };
1206
- }, _KupEchart_fetchcomputedColors = function _KupEchart_fetchcomputedColors() {
1279
+ }, _KupEchart_setColors = function _KupEchart_setColors(requiredNumber) {
1207
1280
  let colorArray = this.colors && this.colors.length > 0 ? [...this.colors] : [];
1208
1281
  let key = '--kup-chart-color-';
1209
1282
  for (let index = 1; __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]; index++) {
1210
1283
  colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]);
1211
1284
  }
1212
- __classPrivateFieldSet(this, _KupEchart_themeBackground, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BACKGROUND], "f");
1213
- __classPrivateFieldSet(this, _KupEchart_themeBorder, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BORDER], "f");
1214
- __classPrivateFieldSet(this, _KupEchart_themeFont, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars['--kup-font-family'], "f");
1215
- __classPrivateFieldSet(this, _KupEchart_themeText, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.TEXT], "f");
1216
- __classPrivateFieldSet(this, _KupEchart_computedColors, colorArray, "f");
1217
1285
  if (this.colors && this.colors[0]) {
1218
1286
  __classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, this.colors[0], "f");
1219
1287
  }
@@ -1228,6 +1296,10 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
1228
1296
  const colorCheckBright = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
1229
1297
  __classPrivateFieldSet(this, _KupEchart_minColorHeatMap, `hsl(${colorCheckBright.hue}, ${colorCheckBright.saturation}, ${(parseFloat(colorCheckBright.lightness) + 30).toString()}%)`, "f");
1230
1298
  }
1299
+ for (let index = colorArray.length; requiredNumber && index < requiredNumber; index++) {
1300
+ colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.randomColor(128));
1301
+ }
1302
+ return colorArray;
1231
1303
  }, _KupEchart_checks = function _KupEchart_checks() {
1232
1304
  const gaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
1233
1305
  const nonGaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;