@sme.up/ketchup 8.3.3 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/cjs/{component-24811409.js → component-cb3b32f5.js} +7 -2
  2. package/dist/cjs/{f-button-7687085a.js → f-button-b2cfce1c.js} +2 -2
  3. package/dist/cjs/{f-cell-37ef6f00.js → f-cell-75fca92b.js} +24 -17
  4. package/dist/cjs/{f-checkbox-758d1d34.js → f-checkbox-48d7af02.js} +1 -1
  5. package/dist/cjs/{f-chip-cf59bdb3.js → f-chip-3e504f3e.js} +3 -3
  6. package/dist/cjs/{f-image-1245b0cf.js → f-image-270d39ae.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-b1af2a8f.js → f-paginator-utils-6d0c4678.js} +3 -3
  8. package/dist/cjs/{f-text-field-9c745112.js → f-text-field-bbcd2143.js} +2 -2
  9. package/dist/cjs/{f-text-field-mdc-b1fa6fd6.js → f-text-field-mdc-4fda9705.js} +1 -1
  10. package/dist/cjs/{index-eac07680.js → index-c3d10561.js} +86 -8
  11. package/dist/cjs/ketchup.cjs.js +3 -3
  12. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  13. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +148 -153
  14. package/dist/cjs/kup-box.cjs.entry.js +11 -11
  15. package/dist/cjs/kup-calendar.cjs.entry.js +6 -6
  16. package/dist/cjs/kup-card-list.cjs.entry.js +244 -0
  17. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +8 -8
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +4579 -4431
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-grid.cjs.entry.js +109 -0
  23. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-image-list.cjs.entry.js +9 -9
  25. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  27. package/dist/cjs/{kup-manager-38caaef3.js → kup-manager-130bbd9d.js} +7 -7
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-planner.cjs.entry.js +5 -5
  32. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  34. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  35. package/dist/cjs/loader.cjs.js +2 -2
  36. package/dist/collection/assets/card-list.js +709 -0
  37. package/dist/collection/assets/data-table-performance.js +6 -0
  38. package/dist/collection/assets/data-table.js +44 -0
  39. package/dist/collection/assets/image-list.js +2 -12
  40. package/dist/collection/assets/index.js +4 -4
  41. package/dist/collection/collection-manifest.json +2 -3
  42. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +1 -1
  43. package/dist/collection/components/kup-card/kup-card.css +20 -7
  44. package/dist/collection/components/kup-card/kup-card.js +25 -22
  45. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +45 -54
  46. package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +13 -0
  47. package/dist/collection/components/kup-card-list/kup-card-list.css +34 -0
  48. package/dist/collection/components/kup-card-list/kup-card-list.js +481 -0
  49. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  50. package/dist/collection/components/kup-echart/kup-echart.js +0 -2
  51. package/dist/collection/components/kup-grid/kup-grid.css +10 -0
  52. package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
  53. package/dist/collection/f-components/f-cell/f-cell.js +19 -12
  54. package/dist/collection/managers/kup-math/kup-math.js +1 -1
  55. package/dist/collection/types/GenericTypes.js +1 -2
  56. package/dist/components/kup-autocomplete2.js +392 -385
  57. package/dist/components/kup-calendar.js +1 -1
  58. package/dist/components/{kup-dash-list.d.ts → kup-card-list.d.ts} +4 -4
  59. package/dist/components/kup-card-list.js +408 -0
  60. package/dist/components/kup-cell.js +1 -1
  61. package/dist/components/kup-chart.js +1 -1
  62. package/dist/components/kup-checkbox.js +1 -1
  63. package/dist/components/kup-chip.js +1 -1
  64. package/dist/components/kup-color-picker.js +1 -1
  65. package/dist/components/kup-combobox.js +1 -1
  66. package/dist/components/kup-dashboard.js +1 -1
  67. package/dist/components/kup-data-table.js +1 -1
  68. package/dist/components/kup-date-picker.js +1 -1
  69. package/dist/components/kup-dialog.js +1 -1
  70. package/dist/components/kup-dropdown-button.js +1 -1
  71. package/dist/components/kup-echart2.js +4578 -4430
  72. package/dist/components/kup-family-tree.js +1 -1
  73. package/dist/components/kup-form.js +1 -1
  74. package/dist/components/kup-gauge.js +1 -1
  75. package/dist/components/kup-grid2.js +1 -1
  76. package/dist/components/kup-image-list.js +1 -1
  77. package/dist/components/kup-image.js +1 -1
  78. package/dist/components/kup-list.js +1 -1
  79. package/dist/components/kup-magic-box.js +1 -1
  80. package/dist/components/kup-numeric-picker.js +1 -1
  81. package/dist/components/kup-planner.js +1 -1
  82. package/dist/esm/{component-cc25b031.js → component-879e99bf.js} +7 -2
  83. package/dist/esm/{f-button-e54ce8d5.js → f-button-baa419dc.js} +2 -2
  84. package/dist/esm/{f-cell-4149a05d.js → f-cell-18ee3afa.js} +24 -17
  85. package/dist/esm/{f-checkbox-7b113dd8.js → f-checkbox-00a1e020.js} +1 -1
  86. package/dist/esm/{f-chip-c3c86f7b.js → f-chip-311500f4.js} +3 -3
  87. package/dist/esm/{f-image-adceee49.js → f-image-da03494c.js} +2 -2
  88. package/dist/esm/{f-paginator-utils-e559dac8.js → f-paginator-utils-d63a195e.js} +3 -3
  89. package/dist/esm/{f-text-field-aa4497a8.js → f-text-field-e5f1f1fd.js} +2 -2
  90. package/dist/esm/{f-text-field-mdc-32a1ffd9.js → f-text-field-mdc-1143cf21.js} +1 -1
  91. package/dist/esm/{index-d413187a.js → index-3336c3b1.js} +86 -8
  92. package/dist/esm/ketchup.js +4 -4
  93. package/dist/esm/kup-accordion.entry.js +4 -4
  94. package/dist/esm/kup-autocomplete_27.entry.js +148 -153
  95. package/dist/esm/kup-box.entry.js +11 -11
  96. package/dist/esm/kup-calendar.entry.js +6 -6
  97. package/dist/esm/kup-card-list.entry.js +240 -0
  98. package/dist/esm/kup-cell.entry.js +7 -7
  99. package/dist/esm/kup-dashboard.entry.js +8 -8
  100. package/dist/esm/kup-drawer.entry.js +2 -2
  101. package/dist/esm/kup-echart.entry.js +4579 -4431
  102. package/dist/esm/kup-family-tree.entry.js +4 -4
  103. package/dist/esm/kup-grid.entry.js +105 -0
  104. package/dist/esm/kup-iframe.entry.js +2 -2
  105. package/dist/esm/kup-image-list.entry.js +9 -9
  106. package/dist/esm/kup-lazy.entry.js +2 -2
  107. package/dist/esm/kup-magic-box.entry.js +3 -3
  108. package/dist/esm/{kup-manager-a4153fb2.js → kup-manager-c8d5c94d.js} +7 -7
  109. package/dist/esm/kup-nav-bar.entry.js +2 -2
  110. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  111. package/dist/esm/kup-photo-frame.entry.js +2 -2
  112. package/dist/esm/kup-planner.entry.js +5 -5
  113. package/dist/esm/kup-probe.entry.js +2 -2
  114. package/dist/esm/kup-qlik.entry.js +2 -2
  115. package/dist/esm/kup-snackbar.entry.js +4 -4
  116. package/dist/esm/loader.js +3 -3
  117. package/dist/ketchup/ketchup.esm.js +1 -1
  118. package/dist/ketchup/{p-d680bdde.js → p-008ad26c.js} +1 -1
  119. package/dist/ketchup/{p-c0878519.entry.js → p-07707cd1.entry.js} +1 -1
  120. package/dist/ketchup/p-0c19d485.entry.js +9 -0
  121. package/dist/ketchup/{p-44b5c573.entry.js → p-13eac183.entry.js} +1 -1
  122. package/dist/ketchup/{p-e76b646c.js → p-25de68e5.js} +1 -1
  123. package/dist/ketchup/{p-c39ddeae.entry.js → p-2a2a18bf.entry.js} +1 -1
  124. package/dist/ketchup/{p-3bbcae45.entry.js → p-2d192def.entry.js} +1 -1
  125. package/dist/ketchup/p-2d42477d.js +2 -0
  126. package/dist/ketchup/{p-b623c774.entry.js → p-2dab9c4f.entry.js} +1 -1
  127. package/dist/ketchup/{p-2f0798d3.js → p-39602629.js} +1 -1
  128. package/dist/ketchup/{p-7360a410.js → p-4597f25d.js} +1 -1
  129. package/dist/ketchup/{p-e917200c.entry.js → p-51aa248f.entry.js} +1 -1
  130. package/dist/ketchup/{p-b415fe84.entry.js → p-55fd3f46.entry.js} +1 -1
  131. package/dist/ketchup/p-5c15661d.entry.js +1 -0
  132. package/dist/ketchup/{p-283ca113.entry.js → p-5cfaa673.entry.js} +1 -1
  133. package/dist/ketchup/{p-b8fcbcc9.entry.js → p-5f583257.entry.js} +1 -1
  134. package/dist/ketchup/{p-698442ed.js → p-7555c10d.js} +1 -1
  135. package/dist/ketchup/{p-3d671241.entry.js → p-76130e83.entry.js} +1 -1
  136. package/dist/ketchup/{p-3081ed82.entry.js → p-7bf649f0.entry.js} +1 -1
  137. package/dist/ketchup/{p-23d54fb2.entry.js → p-7e1c8fc0.entry.js} +1 -1
  138. package/dist/ketchup/p-80699a95.js +1 -0
  139. package/dist/ketchup/{p-3c44e838.entry.js → p-81debebe.entry.js} +1 -1
  140. package/dist/ketchup/{p-47752f3b.js → p-8281c9e5.js} +1 -1
  141. package/dist/ketchup/{p-2739b7ac.entry.js → p-a0f59b05.entry.js} +1 -1
  142. package/dist/ketchup/{p-eec864dd.entry.js → p-a8a39b08.entry.js} +1 -1
  143. package/dist/ketchup/{p-0848391f.entry.js → p-bb854cf5.entry.js} +1 -1
  144. package/dist/ketchup/{p-6d9ffb32.js → p-cd2af1a6.js} +1 -1
  145. package/dist/ketchup/{p-124f3f42.js → p-d4a879fc.js} +1 -1
  146. package/dist/ketchup/{p-f3c8c1da.entry.js → p-d6a7498b.entry.js} +1 -1
  147. package/dist/ketchup/p-d8384990.entry.js +1 -0
  148. package/dist/ketchup/p-da58f8ab.entry.js +39 -0
  149. package/dist/ketchup/p-ecb9fe91.entry.js +1 -0
  150. package/dist/ketchup/{p-d817be2a.js → p-f729449f.js} +1 -1
  151. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +1 -1
  152. package/dist/types/components/kup-calendar/kup-calendar.d.ts +1 -1
  153. package/dist/types/components/kup-card/kup-card.d.ts +3 -3
  154. package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +35 -0
  155. package/dist/types/components/kup-card-list/kup-card-list.d.ts +62 -0
  156. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  157. package/dist/types/components.d.ts +97 -92
  158. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +1 -0
  159. package/dist/types/managers/kup-math/kup-math.d.ts +1 -1
  160. package/dist/types/stencil-public-runtime.d.ts +11 -1
  161. package/dist/types/types/GenericTypes.d.ts +1 -2
  162. package/package.json +5 -2
  163. package/dist/cjs/kup-dash-list.cjs.entry.js +0 -116
  164. package/dist/cjs/kup-dash_2.cjs.entry.js +0 -179
  165. package/dist/collection/assets/dash-list.js +0 -474
  166. package/dist/collection/components/kup-dash/kup-dash.css +0 -136
  167. package/dist/collection/components/kup-dash/kup-dash.js +0 -171
  168. package/dist/collection/components/kup-dash-list/kup-dash-list.css +0 -10
  169. package/dist/collection/components/kup-dash-list/kup-dash-list.js +0 -331
  170. package/dist/components/kup-dash-list.js +0 -288
  171. package/dist/components/kup-dash.d.ts +0 -11
  172. package/dist/components/kup-dash.js +0 -6
  173. package/dist/components/kup-dash2.js +0 -228
  174. package/dist/esm/kup-dash-list.entry.js +0 -112
  175. package/dist/esm/kup-dash_2.entry.js +0 -174
  176. package/dist/ketchup/p-25d45dc9.entry.js +0 -1
  177. package/dist/ketchup/p-384137d7.entry.js +0 -39
  178. package/dist/ketchup/p-3972b97c.entry.js +0 -1
  179. package/dist/ketchup/p-5ce0e645.entry.js +0 -1
  180. package/dist/ketchup/p-be864593.entry.js +0 -9
  181. package/dist/ketchup/p-f79d544a.js +0 -1
  182. package/dist/ketchup/p-fd75d5bf.js +0 -2
  183. package/dist/types/components/kup-dash/kup-dash.d.ts +0 -33
  184. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +0 -22
@@ -0,0 +1,481 @@
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 _KupCardList_kupManager;
9
+ import { h, Host, forceUpdate, } from "@stencil/core";
10
+ import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
11
+ import { KupCardListProps, } from "./kup-card-list-declarations";
12
+ import { KupCardFamily } from "../kup-card/kup-card-declarations";
13
+ import { componentWrapperId } from "../../variables/GenericVariables";
14
+ import { getCellValueForDisplay } from "../../utils/cell-utils";
15
+ import { getProps, setProps } from "../../utils/utils";
16
+ export class KupCardList {
17
+ constructor() {
18
+ /*-------------------------------------------------*/
19
+ /* I n t e r n a l V a r i a b l e s */
20
+ /*-------------------------------------------------*/
21
+ _KupCardList_kupManager.set(this, kupManagerInstance());
22
+ this.columnsNumber = 1;
23
+ this.customStyle = '';
24
+ this.data = null;
25
+ this.fullWidth = true;
26
+ this.horizontal = false;
27
+ this.isClickable = false;
28
+ }
29
+ /*-------------------------------------------------*/
30
+ /* P u b l i c M e t h o d s */
31
+ /*-------------------------------------------------*/
32
+ /**
33
+ * Used to retrieve component's props values.
34
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
35
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
36
+ */
37
+ async getProps(descriptions) {
38
+ return getProps(this, KupCardListProps, descriptions);
39
+ }
40
+ /**
41
+ * This method is used to trigger a new render of the component.
42
+ */
43
+ async refresh() {
44
+ forceUpdate(this);
45
+ }
46
+ /**
47
+ * Sets the props to the component.
48
+ * @param {GenericObject} props - Object containing props that will be set to the component.
49
+ */
50
+ async setProps(props) {
51
+ setProps(this, KupCardListProps, props);
52
+ }
53
+ /*-------------------------------------------------*/
54
+ /* L i f e c y c l e H o o k s */
55
+ /*-------------------------------------------------*/
56
+ componentWillLoad() {
57
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").debug.logLoad(this, false);
58
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.register(this);
59
+ }
60
+ componentDidLoad() {
61
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").debug.logLoad(this, true);
62
+ }
63
+ componentDidRender() {
64
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").debug.logRender(this, true);
65
+ }
66
+ render() {
67
+ if (!this.data || !this.data.columns || !this.data.columns.length) {
68
+ return;
69
+ }
70
+ const content = [];
71
+ let decvalueCol, descrCol, iconCol, iconcolorCol, intvalueCol, layoutCol, measureCol, textcolorCol, valueCol, valuecolorCol;
72
+ for (let index = 0; index < this.data.columns.length; index++) {
73
+ const column = this.data.columns[index];
74
+ if (column.cardListOption) {
75
+ switch (column.cardListOption) {
76
+ case 'decvalue':
77
+ decvalueCol = column;
78
+ break;
79
+ case 'descr':
80
+ descrCol = column;
81
+ break;
82
+ case 'icon':
83
+ iconCol = column;
84
+ break;
85
+ case 'iconcolor':
86
+ iconcolorCol = column;
87
+ break;
88
+ case 'intvalue':
89
+ intvalueCol = column;
90
+ break;
91
+ case 'layout':
92
+ layoutCol = column;
93
+ break;
94
+ case 'measure':
95
+ measureCol = column;
96
+ break;
97
+ case 'textcolor':
98
+ textcolorCol = column;
99
+ break;
100
+ case 'value':
101
+ valueCol = column;
102
+ break;
103
+ case 'valuecolor':
104
+ valuecolorCol = column;
105
+ break;
106
+ }
107
+ }
108
+ }
109
+ for (let index = 0; index < this.data.rows.length; index++) {
110
+ const row = this.data.rows[index];
111
+ const data = {
112
+ color: [],
113
+ image: [],
114
+ text: [],
115
+ };
116
+ const layout = layoutCol && row.cells[layoutCol.name].value
117
+ ? parseInt(row.cells[layoutCol.name].value)
118
+ : 1;
119
+ const card = (h("kup-card", { class: this.isClickable ? 'is-clickable' : '', customStyle: "#kup-component, .scalable-card { min-height: var(--kup_cardlist_cardsminheight) }", data: data, layoutFamily: KupCardFamily.SCALABLE, layoutNumber: layout, key: index, "onKup-card-click": () => {
120
+ if (this.isClickable) {
121
+ this.kupCardListClickEvent.emit({
122
+ comp: this,
123
+ id: this.rootElement.id,
124
+ index,
125
+ row: row,
126
+ });
127
+ }
128
+ }, slot: index.toString() }));
129
+ const loadData = (col, prop, index) => {
130
+ if (col) {
131
+ const cell = row.cells[col.name];
132
+ if (cell) {
133
+ const value = cell.value;
134
+ switch (prop) {
135
+ case 'color':
136
+ data[prop][index] =
137
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.colorCheck(value).hexColor;
138
+ break;
139
+ case 'image':
140
+ data[prop][index] = { resource: value };
141
+ break;
142
+ default:
143
+ data[prop][index] = getCellValueForDisplay(col, cell);
144
+ break;
145
+ }
146
+ }
147
+ }
148
+ };
149
+ switch (layout) {
150
+ case 1:
151
+ loadData(textcolorCol, 'color', 0);
152
+ loadData(valuecolorCol, 'color', 1);
153
+ loadData(descrCol, 'text', 0);
154
+ loadData(valueCol, 'text', 1);
155
+ break;
156
+ case 2:
157
+ loadData(iconcolorCol, 'color', 0);
158
+ loadData(valuecolorCol, 'color', 1);
159
+ loadData(iconCol, 'image', 0);
160
+ loadData(intvalueCol, 'text', 0);
161
+ loadData(decvalueCol, 'text', 1);
162
+ loadData(measureCol, 'text', 2);
163
+ break;
164
+ case 3:
165
+ loadData(valuecolorCol, 'color', 0);
166
+ loadData(textcolorCol, 'color', 1);
167
+ loadData(valueCol, 'text', 0);
168
+ loadData(descrCol, 'text', 1);
169
+ break;
170
+ case 4:
171
+ loadData(iconcolorCol, 'color', 0);
172
+ loadData(valuecolorCol, 'color', 1);
173
+ loadData(textcolorCol, 'color', 2);
174
+ loadData(iconCol, 'image', 0);
175
+ loadData(intvalueCol, 'text', 0);
176
+ loadData(decvalueCol, 'text', 1);
177
+ loadData(measureCol, 'text', 2);
178
+ loadData(descrCol, 'text', 3);
179
+ break;
180
+ case 5:
181
+ loadData(iconcolorCol, 'color', 0);
182
+ loadData(textcolorCol, 'color', 1);
183
+ loadData(valuecolorCol, 'color', 2);
184
+ loadData(iconCol, 'image', 0);
185
+ loadData(descrCol, 'text', 0);
186
+ loadData(valueCol, 'text', 1);
187
+ break;
188
+ case 6:
189
+ loadData(iconcolorCol, 'color', 0);
190
+ loadData(valuecolorCol, 'color', 1);
191
+ loadData(textcolorCol, 'color', 2);
192
+ loadData(iconCol, 'image', 0);
193
+ loadData(valueCol, 'text', 0);
194
+ loadData(descrCol, 'text', 1);
195
+ break;
196
+ case 7:
197
+ loadData(iconcolorCol, 'color', 0);
198
+ loadData(valuecolorCol, 'color', 1);
199
+ loadData(textcolorCol, 'color', 2);
200
+ loadData(iconCol, 'image', 0);
201
+ loadData(valueCol, 'text', 0);
202
+ loadData(descrCol, 'text', 1);
203
+ break;
204
+ case 8:
205
+ loadData(iconcolorCol, 'color', 0);
206
+ loadData(valuecolorCol, 'color', 1);
207
+ loadData(textcolorCol, 'color', 2);
208
+ loadData(iconCol, 'image', 0);
209
+ loadData(valueCol, 'text', 0);
210
+ loadData(descrCol, 'text', 1);
211
+ break;
212
+ }
213
+ content.push(card);
214
+ }
215
+ return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("kup-grid", { class: `${this.fullWidth ? 'kup-full-width' : ''} scalable-cards`, columns: this.columnsNumber, singleLine: this.horizontal }, content))));
216
+ }
217
+ disconnectedCallback() {
218
+ __classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.unregister(this);
219
+ }
220
+ static get is() { return "kup-card-list"; }
221
+ static get encapsulation() { return "shadow"; }
222
+ static get originalStyleUrls() {
223
+ return {
224
+ "$": ["kup-card-list.scss"]
225
+ };
226
+ }
227
+ static get styleUrls() {
228
+ return {
229
+ "$": ["kup-card-list.css"]
230
+ };
231
+ }
232
+ static get properties() {
233
+ return {
234
+ "columnsNumber": {
235
+ "type": "number",
236
+ "mutable": false,
237
+ "complexType": {
238
+ "original": "number",
239
+ "resolved": "number",
240
+ "references": {}
241
+ },
242
+ "required": false,
243
+ "optional": false,
244
+ "docs": {
245
+ "tags": [{
246
+ "name": "default",
247
+ "text": "1"
248
+ }],
249
+ "text": "Sets the number of columns."
250
+ },
251
+ "attribute": "columns-number",
252
+ "reflect": false,
253
+ "defaultValue": "1"
254
+ },
255
+ "customStyle": {
256
+ "type": "string",
257
+ "mutable": false,
258
+ "complexType": {
259
+ "original": "string",
260
+ "resolved": "string",
261
+ "references": {}
262
+ },
263
+ "required": false,
264
+ "optional": false,
265
+ "docs": {
266
+ "tags": [{
267
+ "name": "default",
268
+ "text": "\"\""
269
+ }, {
270
+ "name": "see",
271
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
272
+ }],
273
+ "text": "Custom style of the component."
274
+ },
275
+ "attribute": "custom-style",
276
+ "reflect": false,
277
+ "defaultValue": "''"
278
+ },
279
+ "data": {
280
+ "type": "unknown",
281
+ "mutable": false,
282
+ "complexType": {
283
+ "original": "KupCardListData",
284
+ "resolved": "KupCardListData",
285
+ "references": {
286
+ "KupCardListData": {
287
+ "location": "import",
288
+ "path": "./kup-card-list-declarations",
289
+ "id": "src/components/kup-card-list/kup-card-list-declarations.ts::KupCardListData"
290
+ }
291
+ }
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [{
297
+ "name": "default",
298
+ "text": "null"
299
+ }],
300
+ "text": "Actual data of the component."
301
+ },
302
+ "defaultValue": "null"
303
+ },
304
+ "fullWidth": {
305
+ "type": "boolean",
306
+ "mutable": false,
307
+ "complexType": {
308
+ "original": "boolean",
309
+ "resolved": "boolean",
310
+ "references": {}
311
+ },
312
+ "required": false,
313
+ "optional": false,
314
+ "docs": {
315
+ "tags": [{
316
+ "name": "default",
317
+ "text": "true"
318
+ }],
319
+ "text": "Sets whether the component occupies all available width."
320
+ },
321
+ "attribute": "full-width",
322
+ "reflect": false,
323
+ "defaultValue": "true"
324
+ },
325
+ "horizontal": {
326
+ "type": "boolean",
327
+ "mutable": false,
328
+ "complexType": {
329
+ "original": "boolean",
330
+ "resolved": "boolean",
331
+ "references": {}
332
+ },
333
+ "required": false,
334
+ "optional": false,
335
+ "docs": {
336
+ "tags": [{
337
+ "name": "default",
338
+ "text": "false"
339
+ }],
340
+ "text": "Sets whether the cards are placed horizontally or not."
341
+ },
342
+ "attribute": "horizontal",
343
+ "reflect": false,
344
+ "defaultValue": "false"
345
+ },
346
+ "isClickable": {
347
+ "type": "boolean",
348
+ "mutable": false,
349
+ "complexType": {
350
+ "original": "boolean",
351
+ "resolved": "boolean",
352
+ "references": {}
353
+ },
354
+ "required": false,
355
+ "optional": false,
356
+ "docs": {
357
+ "tags": [{
358
+ "name": "default",
359
+ "text": "false"
360
+ }],
361
+ "text": "Sets whether a single card is clickable or not."
362
+ },
363
+ "attribute": "is-clickable",
364
+ "reflect": false,
365
+ "defaultValue": "false"
366
+ }
367
+ };
368
+ }
369
+ static get events() {
370
+ return [{
371
+ "method": "kupCardListClickEvent",
372
+ "name": "kup-cardlist-click",
373
+ "bubbles": true,
374
+ "cancelable": true,
375
+ "composed": true,
376
+ "docs": {
377
+ "tags": [],
378
+ "text": ""
379
+ },
380
+ "complexType": {
381
+ "original": "KupCardListClickEventPayload",
382
+ "resolved": "KupCardListClickEventPayload",
383
+ "references": {
384
+ "KupCardListClickEventPayload": {
385
+ "location": "import",
386
+ "path": "./kup-card-list-declarations",
387
+ "id": "src/components/kup-card-list/kup-card-list-declarations.ts::KupCardListClickEventPayload"
388
+ }
389
+ }
390
+ }
391
+ }];
392
+ }
393
+ static get methods() {
394
+ return {
395
+ "getProps": {
396
+ "complexType": {
397
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
398
+ "parameters": [{
399
+ "tags": [{
400
+ "name": "param",
401
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
402
+ }],
403
+ "text": "- When provided and true, the result will be the list of props with their description."
404
+ }],
405
+ "references": {
406
+ "Promise": {
407
+ "location": "global",
408
+ "id": "global::Promise"
409
+ },
410
+ "GenericObject": {
411
+ "location": "import",
412
+ "path": "../../types/GenericTypes",
413
+ "id": "src/types/GenericTypes.ts::GenericObject"
414
+ }
415
+ },
416
+ "return": "Promise<GenericObject>"
417
+ },
418
+ "docs": {
419
+ "text": "Used to retrieve component's props values.",
420
+ "tags": [{
421
+ "name": "param",
422
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
423
+ }, {
424
+ "name": "returns",
425
+ "text": "List of props as object, each key will be a prop."
426
+ }]
427
+ }
428
+ },
429
+ "refresh": {
430
+ "complexType": {
431
+ "signature": "() => Promise<void>",
432
+ "parameters": [],
433
+ "references": {
434
+ "Promise": {
435
+ "location": "global",
436
+ "id": "global::Promise"
437
+ }
438
+ },
439
+ "return": "Promise<void>"
440
+ },
441
+ "docs": {
442
+ "text": "This method is used to trigger a new render of the component.",
443
+ "tags": []
444
+ }
445
+ },
446
+ "setProps": {
447
+ "complexType": {
448
+ "signature": "(props: GenericObject) => Promise<void>",
449
+ "parameters": [{
450
+ "tags": [{
451
+ "name": "param",
452
+ "text": "props - Object containing props that will be set to the component."
453
+ }],
454
+ "text": "- Object containing props that will be set to the component."
455
+ }],
456
+ "references": {
457
+ "Promise": {
458
+ "location": "global",
459
+ "id": "global::Promise"
460
+ },
461
+ "GenericObject": {
462
+ "location": "import",
463
+ "path": "../../types/GenericTypes",
464
+ "id": "src/types/GenericTypes.ts::GenericObject"
465
+ }
466
+ },
467
+ "return": "Promise<void>"
468
+ },
469
+ "docs": {
470
+ "text": "Sets the props to the component.",
471
+ "tags": [{
472
+ "name": "param",
473
+ "text": "props - Object containing props that will be set to the component."
474
+ }]
475
+ }
476
+ }
477
+ };
478
+ }
479
+ static get elementRef() { return "rootElement"; }
480
+ }
481
+ _KupCardList_kupManager = new WeakMap();
@@ -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 = '';
@@ -677,7 +677,6 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
677
677
  options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_candleChart).call(this);
678
678
  break;
679
679
  case KupEchartTypes.CALENDAR:
680
- console.log('virtual 0');
681
680
  options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_calendarChart).call(this);
682
681
  break;
683
682
  default:
@@ -1014,7 +1013,6 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
1014
1013
  return {
1015
1014
  tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
1016
1015
  const name = value.data;
1017
- console.log('data', name);
1018
1016
  const data = keys.map((e, i) => {
1019
1017
  return `<li> ${e}: ${name[i]} </li>`;
1020
1018
  });
@@ -9,6 +9,7 @@
9
9
  --kup_grid_gap: var(--kup-grid-gap, 24px);
10
10
  --kup_grid_gap_mobile: var(--kup-grid-gap-mobile, 16px);
11
11
  --kup_grid_padding: var(--kup-grid-padding, 24px);
12
+ display: block;
12
13
  font-size: var(--kup_grid_font_size);
13
14
  height: 100%;
14
15
  width: 100%;
@@ -181,4 +182,13 @@
181
182
  }
182
183
  :host(.kup-full-width) .flex-layout__inner * {
183
184
  margin: auto;
185
+ }
186
+
187
+ :host(.kup-full-width.scalable-cards) .flex-layout__inner {
188
+ width: 100%;
189
+ }
190
+ :host(.kup-full-width.scalable-cards) .flex-layout__inner * {
191
+ margin: 0;
192
+ height: 100%;
193
+ width: 100%;
184
194
  }
@@ -86,6 +86,7 @@ export var FCellShapes;
86
86
  FCellShapes["EDITOR"] = "EDT";
87
87
  FCellShapes["GAUGE"] = "GAU";
88
88
  FCellShapes["IMAGE"] = "IMG";
89
+ FCellShapes["INPUT_FIELD"] = "INF";
89
90
  FCellShapes["KNOB"] = "KNB";
90
91
  FCellShapes["MULTI_AUTOCOMPLETE"] = "AML";
91
92
  FCellShapes["MULTI_COMBOBOX"] = "CML";
@@ -1,5 +1,5 @@
1
1
  import { KupTagNames, } from "../../types/GenericTypes";
2
- import { autoCenterComps, editableTypes, FCellClasses, FCellEvents, FCellTypes, fullWidthFieldsComps, kupTypes, } from "./f-cell-declarations";
2
+ import { autoCenterComps, editableTypes, FCellClasses, FCellEvents, FCellShapes, FCellTypes, fullWidthFieldsComps, kupTypes, } from "./f-cell-declarations";
3
3
  import { h } from "@stencil/core";
4
4
  import { getCellValueForDisplay } from "../../utils/cell-utils";
5
5
  import { FCheckbox } from "../f-checkbox/f-checkbox";
@@ -230,17 +230,24 @@ function setEditableCell(cellType, classObj, cell, column, props) {
230
230
  classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
231
231
  case FCellTypes.LINK:
232
232
  case FCellTypes.STRING:
233
- return (h(FTextField, Object.assign({ inputType: cellType === FCellTypes.NUMBER ? 'number' : null, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.data && cell.data.icon
234
- ? cell.data.icon
235
- : cell.icon
236
- ? cell.icon
237
- : column.icon
238
- ? column.icon
239
- : null, value: cellType === FCellTypes.NUMBER && cell.value
240
- ? dom.ketchup.math
241
- .numberifySafe(cell.value)
242
- .toString()
243
- : cell.value, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
233
+ const onChange = (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE);
234
+ const onInput = (e) => cellEvent(e, props, cellType, FCellEvents.INPUT);
235
+ const type = cellType === FCellTypes.NUMBER ? 'number' : null;
236
+ const value = cellType === FCellTypes.NUMBER && cell.value
237
+ ? dom.ketchup.math.numberifySafe(cell.value).toString()
238
+ : cell.value;
239
+ if (cell.shape === FCellShapes.INPUT_FIELD) {
240
+ return (h("input", { class: 'input-field', onChange: onChange, onInput: onInput, type: type, value: value }));
241
+ }
242
+ else {
243
+ return (h(FTextField, Object.assign({ inputType: type, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.data && cell.data.icon
244
+ ? cell.data.icon
245
+ : cell.icon
246
+ ? cell.icon
247
+ : column.icon
248
+ ? column.icon
249
+ : null, value: value, onChange: onChange, onInput: onInput, onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
250
+ }
244
251
  }
245
252
  }
246
253
  function setCell(cellType, subcomponentProps, content, classObj, cell, column, props) {
@@ -376,7 +376,7 @@ export class KupMath {
376
376
  * @param {string} input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
377
377
  * @param {number} decimals number of significant decimal digits for output
378
378
  * @param {string} type - type of number for calculate suffix
379
- * @param {string} decSeparator decimal separator for outpu string
379
+ * @param {string} decSeparator decimal separator for output string
380
380
  * @returns {string} number as string, formatted by actual browser locale (or using decimal separator param), with suffix by type
381
381
  **/
382
382
  numberStringToFormattedString(input, decimals, type, decSeparator) {
@@ -11,14 +11,13 @@ export var KupTagNames;
11
11
  KupTagNames["BUTTON_LIST"] = "KUP-BUTTON-LIST";
12
12
  KupTagNames["CALENDAR"] = "KUP-CALENDAR";
13
13
  KupTagNames["CARD"] = "KUP-CARD";
14
+ KupTagNames["CARD_LIST"] = "KUP-CARD-LIST";
14
15
  KupTagNames["CELL"] = "KUP-CELL";
15
16
  KupTagNames["CHART"] = "KUP-CHART";
16
17
  KupTagNames["CHECKBOX"] = "KUP-CHECKBOX";
17
18
  KupTagNames["CHIP"] = "KUP-CHIP";
18
19
  KupTagNames["COLOR_PICKER"] = "KUP-COLOR-PICKER";
19
20
  KupTagNames["COMBOBOX"] = "KUP-COMBOBOX";
20
- KupTagNames["DASH"] = "KUP-DASH";
21
- KupTagNames["DASH_LIST"] = "KUP-DASH-LIST";
22
21
  KupTagNames["DASHBOARD"] = "KUP-DASHBOARD";
23
22
  KupTagNames["DATA_TABLE"] = "KUP-DATA-TABLE";
24
23
  KupTagNames["DATE_PICKER"] = "KUP-DATE-PICKER";