@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
@@ -1,171 +0,0 @@
1
- import { h, } from "@stencil/core";
2
- import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
3
- export class KupDash {
4
- constructor() {
5
- /**
6
- * Instance of the KupManager class.
7
- */
8
- this.kupManager = kupManagerInstance();
9
- this.active = false;
10
- this.fontsize = '';
11
- this.layout = '1';
12
- this.index = 0;
13
- }
14
- onDshClickHandler() {
15
- this.dashClick.emit({
16
- id: this.index,
17
- });
18
- }
19
- //---- Lifecycle hooks ----
20
- componentWillLoad() {
21
- this.kupManager.debug.logLoad(this, false);
22
- }
23
- componentDidLoad() {
24
- this.kupManager.debug.logLoad(this, true);
25
- }
26
- componentWillRender() {
27
- this.kupManager.debug.logRender(this, false);
28
- }
29
- componentDidRender() {
30
- this.kupManager.debug.logRender(this, true);
31
- }
32
- render() {
33
- let content = null;
34
- switch (this.layout) {
35
- case '2':
36
- content = (h("div", null, h("div", { class: "icon" }, h("slot", { name: "icon" })), h("div", { class: "value-int" }, h("slot", { name: "value-int" })), h("div", { class: "value-dec" }, h("slot", { name: "value-dec" })), h("div", { class: "unit" }, h("slot", { name: "unit" }))));
37
- break;
38
- case '3':
39
- content = (h("div", null, h("div", { class: "value" }, h("slot", { name: "value" })), h("div", { class: "descr" }, h("slot", { name: "descr" }))));
40
- break;
41
- case '4':
42
- content = (h("div", null, h("div", { class: "icon" }, h("slot", { name: "icon" })), h("div", { class: "value-and-unit" }, h("div", { class: "value-int" }, h("slot", { name: "value-int" })), h("div", { class: "value-dec" }, h("slot", { name: "value-dec" })), h("div", { class: "unit" }, h("slot", { name: "unit" }))), h("div", null), h("div", { class: "descr" }, h("slot", { name: "descr" }))));
43
- break;
44
- case '5':
45
- content = (h("div", null, h("div", null, h("div", { class: "descr" }, h("slot", { name: "descr" })), h("div", { class: "value" }, h("slot", { name: "value" }))), h("div", { class: "icon" }, h("slot", { name: "icon" }))));
46
- break;
47
- case '6':
48
- content = (h("div", null, h("div", { class: "icon" }, h("slot", { name: "icon" })), h("div", null, h("div", { class: "value" }, h("slot", { name: "value" })), h("div", { class: "descr" }, h("slot", { name: "descr" })))));
49
- break;
50
- case '7':
51
- content = (h("div", null, h("div", null, h("div", { class: "value" }, h("slot", { name: "value" })), h("div", { class: "descr" }, h("slot", { name: "descr" }))), h("div", { class: "icon" }, h("slot", { name: "icon" }))));
52
- break;
53
- case '8':
54
- content = (h("div", null, h("div", { class: "icon" }, h("slot", { name: "icon" })), h("div", { class: "value" }, h("slot", { name: "value" })), h("div", { class: "descr" }, h("slot", { name: "descr" }))));
55
- break;
56
- default:
57
- // layout 1
58
- content = (h("div", null, h("div", { class: "descr" }, h("slot", { name: "descr" })), h("div", { class: "value" }, h("slot", { name: "value" }))));
59
- break;
60
- }
61
- const style = { fontSize: this.fontsize };
62
- return (h("div", { id: "dash", class: `${this.active ? 'with-dyn' : ''}`, style: style, onClick: () => this.onDshClickHandler() }, h("div", { id: "content", class: `layout-${this.layout} ` }, content)));
63
- }
64
- static get is() { return "kup-dash"; }
65
- static get encapsulation() { return "shadow"; }
66
- static get originalStyleUrls() {
67
- return {
68
- "$": ["kup-dash.scss"]
69
- };
70
- }
71
- static get styleUrls() {
72
- return {
73
- "$": ["kup-dash.css"]
74
- };
75
- }
76
- static get properties() {
77
- return {
78
- "active": {
79
- "type": "boolean",
80
- "mutable": false,
81
- "complexType": {
82
- "original": "boolean",
83
- "resolved": "boolean",
84
- "references": {}
85
- },
86
- "required": false,
87
- "optional": false,
88
- "docs": {
89
- "tags": [],
90
- "text": "The component can be clicked."
91
- },
92
- "attribute": "active",
93
- "reflect": false,
94
- "defaultValue": "false"
95
- },
96
- "fontsize": {
97
- "type": "string",
98
- "mutable": false,
99
- "complexType": {
100
- "original": "string",
101
- "resolved": "string",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": "Sets the font size of the component."
109
- },
110
- "attribute": "fontsize",
111
- "reflect": false,
112
- "defaultValue": "''"
113
- },
114
- "layout": {
115
- "type": "string",
116
- "mutable": false,
117
- "complexType": {
118
- "original": "string",
119
- "resolved": "string",
120
- "references": {}
121
- },
122
- "required": false,
123
- "optional": false,
124
- "docs": {
125
- "tags": [],
126
- "text": "Sets the layout of the component."
127
- },
128
- "attribute": "layout",
129
- "reflect": false,
130
- "defaultValue": "'1'"
131
- },
132
- "index": {
133
- "type": "number",
134
- "mutable": false,
135
- "complexType": {
136
- "original": "number",
137
- "resolved": "number",
138
- "references": {}
139
- },
140
- "required": false,
141
- "optional": false,
142
- "docs": {
143
- "tags": [],
144
- "text": "No idea what this is about."
145
- },
146
- "attribute": "index",
147
- "reflect": false,
148
- "defaultValue": "0"
149
- }
150
- };
151
- }
152
- static get events() {
153
- return [{
154
- "method": "dashClick",
155
- "name": "kup-dash-click",
156
- "bubbles": true,
157
- "cancelable": false,
158
- "composed": true,
159
- "docs": {
160
- "tags": [],
161
- "text": ""
162
- },
163
- "complexType": {
164
- "original": "{\r\n id: number;\r\n }",
165
- "resolved": "{ id: number; }",
166
- "references": {}
167
- }
168
- }];
169
- }
170
- static get elementRef() { return "rootElement"; }
171
- }
@@ -1,10 +0,0 @@
1
- .horizontal {
2
- display: inline-block;
3
- min-width: 300px;
4
- max-width: 100%;
5
- overflow: visible;
6
- white-space: nowrap;
7
- border: solid;
8
- border-width: 1px;
9
- margin: 2px;
10
- }
@@ -1,331 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { getCellValueForDisplay } from "../../utils/cell-utils";
3
- import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
4
- export class KupDashList {
5
- constructor() {
6
- /*-------------------------------------------------*/
7
- /* I n t e r n a l V a r i a b l e s */
8
- /*-------------------------------------------------*/
9
- /**
10
- * Instance of the KupManager class.
11
- */
12
- this.kupManager = kupManagerInstance();
13
- this.layout = '1';
14
- this.fontsize = '';
15
- this.active = false;
16
- this.columnsNumber = 1;
17
- this.fullWidth = true;
18
- this.horizontal = false;
19
- this.iconColor = [];
20
- this.valueColor = [];
21
- this.textColor = [];
22
- this.data = undefined;
23
- }
24
- render() {
25
- let rows = [];
26
- var count = 0;
27
- this.data.rows.forEach((r) => {
28
- let icon = '';
29
- let unit = '';
30
- let descr = '';
31
- let value = '';
32
- let valueInt = '';
33
- let valueDec = '';
34
- let iconColor = {
35
- color: this.iconColor[count]
36
- ? this.kupManager.theme.colorCheck(this.iconColor[count])
37
- .hexColor
38
- : null,
39
- };
40
- let textColor = {
41
- color: this.textColor[count]
42
- ? this.kupManager.theme.colorCheck(this.textColor[count])
43
- .hexColor
44
- : null,
45
- };
46
- let valueColor = {
47
- color: this.valueColor[count]
48
- ? this.kupManager.theme.colorCheck(this.valueColor[count])
49
- .hexColor
50
- : null,
51
- };
52
- if (this.data.columns[0]) {
53
- icon = (h("div", { slot: "icon" }, h("icon", { class: r.cells[this.data.columns[0].name].obj.k, style: iconColor })));
54
- }
55
- else {
56
- icon = h("div", { slot: "icon" });
57
- }
58
- if (this.data.columns[1]) {
59
- unit = (h("div", { slot: "unit", style: valueColor }, r.cells[this.data.columns[1].name].obj.k, ' '));
60
- }
61
- else {
62
- unit = h("div", { slot: "unit" });
63
- }
64
- if (this.data.columns[2]) {
65
- descr = (h("div", { slot: "descr", style: textColor }, r.cells[this.data.columns[2].name].obj.k));
66
- }
67
- else {
68
- descr = h("div", { slot: "descr" });
69
- }
70
- if (this.data.columns[3]) {
71
- let col = this.data.columns[3];
72
- col.obj = r.cells[this.data.columns[3].name].obj;
73
- let newValue = getCellValueForDisplay(col, r.cells[this.data.columns[3].name]);
74
- value = (h("div", { slot: "value", style: valueColor }, newValue));
75
- }
76
- else {
77
- value = h("div", { slot: "value" });
78
- }
79
- if (this.data.columns[5]) {
80
- let col = this.data.columns[5];
81
- col.obj = r.cells[this.data.columns[5].name].obj;
82
- let newValue = getCellValueForDisplay(col, r.cells[this.data.columns[5].name]);
83
- if (this.data.columns[6] &&
84
- r.cells[this.data.columns[6].name].obj.k) {
85
- newValue =
86
- newValue + this.kupManager.math.decimalSeparator();
87
- }
88
- valueInt = (h("div", { slot: "value-int", style: valueColor }, newValue));
89
- }
90
- else {
91
- valueInt = h("div", { slot: "value-int" });
92
- }
93
- if (this.data.columns[6]) {
94
- valueDec = (h("div", { slot: "value-dec", style: valueColor }, r.cells[this.data.columns[6].name].obj.k));
95
- }
96
- else {
97
- valueDec = h("div", { slot: "value-dec" });
98
- }
99
- const row = (h("kup-dash", { layout: this.layout, fontsize: this.fontsize, index: count, active: this.active, slot: String(count) }, icon, unit, descr, value, valueInt, valueDec));
100
- rows.push(row);
101
- count++;
102
- });
103
- return (h("div", null, h("link", { href: "https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css", rel: "stylesheet", type: "text/css" }), h("kup-grid", { columns: this.columnsNumber, singleLine: this.horizontal, class: `${this.fullWidth ? 'kup-full-width' : ''}` }, rows)));
104
- }
105
- static get is() { return "kup-dash-list"; }
106
- static get encapsulation() { return "shadow"; }
107
- static get originalStyleUrls() {
108
- return {
109
- "$": ["kup-dash-list.scss"]
110
- };
111
- }
112
- static get styleUrls() {
113
- return {
114
- "$": ["kup-dash-list.css"]
115
- };
116
- }
117
- static get properties() {
118
- return {
119
- "layout": {
120
- "type": "string",
121
- "mutable": false,
122
- "complexType": {
123
- "original": "string",
124
- "resolved": "string",
125
- "references": {}
126
- },
127
- "required": false,
128
- "optional": false,
129
- "docs": {
130
- "tags": [],
131
- "text": ""
132
- },
133
- "attribute": "layout",
134
- "reflect": false,
135
- "defaultValue": "'1'"
136
- },
137
- "fontsize": {
138
- "type": "string",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "string",
142
- "resolved": "string",
143
- "references": {}
144
- },
145
- "required": false,
146
- "optional": false,
147
- "docs": {
148
- "tags": [],
149
- "text": ""
150
- },
151
- "attribute": "fontsize",
152
- "reflect": false,
153
- "defaultValue": "''"
154
- },
155
- "active": {
156
- "type": "boolean",
157
- "mutable": false,
158
- "complexType": {
159
- "original": "boolean",
160
- "resolved": "boolean",
161
- "references": {}
162
- },
163
- "required": false,
164
- "optional": false,
165
- "docs": {
166
- "tags": [],
167
- "text": ""
168
- },
169
- "attribute": "active",
170
- "reflect": false,
171
- "defaultValue": "false"
172
- },
173
- "columnsNumber": {
174
- "type": "number",
175
- "mutable": false,
176
- "complexType": {
177
- "original": "number",
178
- "resolved": "number",
179
- "references": {}
180
- },
181
- "required": false,
182
- "optional": false,
183
- "docs": {
184
- "tags": [],
185
- "text": ""
186
- },
187
- "attribute": "columns-number",
188
- "reflect": false,
189
- "defaultValue": "1"
190
- },
191
- "fullWidth": {
192
- "type": "boolean",
193
- "mutable": false,
194
- "complexType": {
195
- "original": "boolean",
196
- "resolved": "boolean",
197
- "references": {}
198
- },
199
- "required": false,
200
- "optional": false,
201
- "docs": {
202
- "tags": [],
203
- "text": ""
204
- },
205
- "attribute": "full-width",
206
- "reflect": false,
207
- "defaultValue": "true"
208
- },
209
- "horizontal": {
210
- "type": "boolean",
211
- "mutable": false,
212
- "complexType": {
213
- "original": "boolean",
214
- "resolved": "boolean",
215
- "references": {}
216
- },
217
- "required": false,
218
- "optional": false,
219
- "docs": {
220
- "tags": [],
221
- "text": ""
222
- },
223
- "attribute": "horizontal",
224
- "reflect": false,
225
- "defaultValue": "false"
226
- },
227
- "iconColor": {
228
- "type": "unknown",
229
- "mutable": false,
230
- "complexType": {
231
- "original": "Array<any>",
232
- "resolved": "any[]",
233
- "references": {
234
- "Array": {
235
- "location": "global",
236
- "id": "global::Array"
237
- }
238
- }
239
- },
240
- "required": false,
241
- "optional": false,
242
- "docs": {
243
- "tags": [],
244
- "text": ""
245
- },
246
- "defaultValue": "[]"
247
- },
248
- "valueColor": {
249
- "type": "unknown",
250
- "mutable": false,
251
- "complexType": {
252
- "original": "Array<any>",
253
- "resolved": "any[]",
254
- "references": {
255
- "Array": {
256
- "location": "global",
257
- "id": "global::Array"
258
- }
259
- }
260
- },
261
- "required": false,
262
- "optional": false,
263
- "docs": {
264
- "tags": [],
265
- "text": ""
266
- },
267
- "defaultValue": "[]"
268
- },
269
- "textColor": {
270
- "type": "unknown",
271
- "mutable": false,
272
- "complexType": {
273
- "original": "Array<any>",
274
- "resolved": "any[]",
275
- "references": {
276
- "Array": {
277
- "location": "global",
278
- "id": "global::Array"
279
- }
280
- }
281
- },
282
- "required": false,
283
- "optional": false,
284
- "docs": {
285
- "tags": [],
286
- "text": ""
287
- },
288
- "defaultValue": "[]"
289
- },
290
- "data": {
291
- "type": "unknown",
292
- "mutable": false,
293
- "complexType": {
294
- "original": "KupDataDataset",
295
- "resolved": "KupDataDataset",
296
- "references": {
297
- "KupDataDataset": {
298
- "location": "import",
299
- "path": "../../managers/kup-data/kup-data-declarations",
300
- "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
301
- }
302
- }
303
- },
304
- "required": false,
305
- "optional": false,
306
- "docs": {
307
- "tags": [],
308
- "text": ""
309
- }
310
- }
311
- };
312
- }
313
- static get events() {
314
- return [{
315
- "method": "dashClick",
316
- "name": "kup-dash-click",
317
- "bubbles": true,
318
- "cancelable": true,
319
- "composed": true,
320
- "docs": {
321
- "tags": [],
322
- "text": ""
323
- },
324
- "complexType": {
325
- "original": "{\r\n idx: number;\r\n }",
326
- "resolved": "{ idx: number; }",
327
- "references": {}
328
- }
329
- }];
330
- }
331
- }