@sme.up/ketchup 7.4.2 → 8.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.
- package/dist/cjs/{component-72a5b626.js → component-85c2bd4d.js} +1 -1
- package/dist/cjs/{f-button-daddd700.js → f-button-49b2c37c.js} +1 -1
- package/dist/cjs/{f-cell-3682fad4.js → f-cell-9a6bc55c.js} +4 -4
- package/dist/cjs/{f-chip-9d540d94.js → f-chip-dee84122.js} +2 -2
- package/dist/cjs/{f-image-7b42d149.js → f-image-27f965ff.js} +4 -4
- package/dist/cjs/{f-paginator-utils-1baeba0f.js → f-paginator-utils-4a30189d.js} +2 -2
- package/dist/cjs/{f-text-field-a6ed2d22.js → f-text-field-04a663b4.js} +1 -1
- package/dist/cjs/{f-text-field-mdc-85997738.js → f-text-field-mdc-0e22f3e3.js} +2 -2
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +814 -819
- package/dist/cjs/kup-box.cjs.entry.js +10 -10
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
- package/dist/cjs/kup-dashboard.cjs.entry.js +7 -10
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +25 -8
- package/dist/cjs/kup-family-tree.cjs.entry.js +8 -19
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-10351449.js → kup-manager-2ff5d258.js} +80 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +1127 -218
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tslib.es6-0ee02c67.js → tslib.es6-386654de.js} +9 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/kup-card/kup-card.css +4 -8
- package/dist/collection/components/kup-chip/kup-chip.js +4 -3
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +0 -3
- package/dist/collection/components/kup-data-table/kup-data-table.css +3 -6
- package/dist/collection/components/kup-data-table/kup-data-table.js +6 -20
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +2 -0
- package/dist/collection/components/kup-echart/kup-echart.js +23 -8
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +2 -2
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +4 -15
- package/dist/collection/components/kup-image/kup-image.js +28 -0
- package/dist/collection/components/kup-list/kup-list.css +1 -1
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +5 -2
- package/dist/collection/components/kup-planner/kup-planner.css +6 -3
- package/dist/collection/components/kup-planner/kup-planner.js +347 -65
- package/dist/collection/components/kup-qlik/kup-qlik.css +4 -8
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -3
- package/dist/collection/components/kup-spinner/kup-spinner.css +2 -4
- package/dist/collection/components/kup-tree/kup-tree.js +66 -67
- package/dist/collection/f-components/f-image/f-image.js +3 -3
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +1 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +18 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/components/kup-autocomplete2.js +228 -151
- package/dist/components/kup-dashboard.js +0 -3
- package/dist/components/kup-echart2.js +24 -7
- package/dist/components/kup-family-tree.js +5 -16
- package/dist/components/kup-planner.js +1127 -219
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/esm/{component-b1bedf1d.js → component-120651a0.js} +1 -1
- package/dist/esm/{f-button-8d15b5a0.js → f-button-744cf1f6.js} +1 -1
- package/dist/esm/{f-cell-7b706e57.js → f-cell-b319c869.js} +4 -4
- package/dist/esm/{f-chip-c671fe90.js → f-chip-7e3e4180.js} +2 -2
- package/dist/esm/{f-image-21451b15.js → f-image-098c26ce.js} +4 -4
- package/dist/esm/{f-paginator-utils-92bbf277.js → f-paginator-utils-674cb2ae.js} +2 -2
- package/dist/esm/{f-text-field-0bb2d109.js → f-text-field-c38ef113.js} +1 -1
- package/dist/esm/{f-text-field-mdc-d42d3f9e.js → f-text-field-mdc-cee583ea.js} +2 -2
- package/dist/esm/ketchup.js +2 -2
- package/dist/esm/kup-accordion.entry.js +4 -4
- package/dist/esm/kup-autocomplete_27.entry.js +814 -819
- package/dist/esm/kup-box.entry.js +10 -10
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dash-list.entry.js +1 -1
- package/dist/esm/kup-dash_2.entry.js +1 -1
- package/dist/esm/kup-dashboard.entry.js +7 -10
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +25 -8
- package/dist/esm/kup-family-tree.entry.js +8 -19
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-6145d980.js → kup-manager-b41eb2a8.js} +80 -2
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +5 -5
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +1128 -219
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{tslib.es6-3eea2234.js → tslib.es6-8c2af864.js} +9 -5
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-439ac105.entry.js → p-0b0b61cb.entry.js} +1 -1
- package/dist/ketchup/p-0b91f5f8.entry.js +1 -0
- package/dist/ketchup/{p-81605f08.js → p-10d84b1b.js} +1 -1
- package/dist/ketchup/{p-a203f78b.js → p-27a56c87.js} +1 -1
- package/dist/ketchup/{p-32517a99.entry.js → p-395e1960.entry.js} +1 -1
- package/dist/ketchup/{p-76bf53df.entry.js → p-3b41aca7.entry.js} +1 -1
- package/dist/ketchup/{p-4d039705.entry.js → p-3efe7f43.entry.js} +1 -1
- package/dist/ketchup/{p-a641780a.entry.js → p-4325d965.entry.js} +1 -1
- package/dist/ketchup/{p-2915a66a.entry.js → p-4ae2ca6f.entry.js} +1 -1
- package/dist/ketchup/{p-e4975ffa.entry.js → p-5ce2b4fc.entry.js} +1 -1
- package/dist/ketchup/p-5d398e42.js +1 -0
- package/dist/ketchup/{p-7cfdce27.js → p-77e3d537.js} +1 -1
- package/dist/ketchup/p-7f59211b.js +1 -0
- package/dist/ketchup/p-940a5feb.js +30 -0
- package/dist/ketchup/{p-826c91d7.js → p-9700eb32.js} +1 -1
- package/dist/ketchup/p-a7e19620.entry.js +39 -0
- package/dist/ketchup/p-a877a87b.entry.js +9 -0
- package/dist/ketchup/p-a9b7533b.entry.js +25 -0
- package/dist/ketchup/{p-89ac80c1.entry.js → p-af82131e.entry.js} +1 -1
- package/dist/ketchup/{p-da37c417.entry.js → p-b032f47d.entry.js} +1 -1
- package/dist/ketchup/{p-0c1cbf8b.entry.js → p-b244f5ca.entry.js} +1 -1
- package/dist/ketchup/{p-2a2dc2a8.entry.js → p-bb17c1ba.entry.js} +1 -1
- package/dist/ketchup/{p-0c9b7c80.entry.js → p-bd42562d.entry.js} +1 -1
- package/dist/ketchup/{p-849ad5d8.entry.js → p-c8b7790a.entry.js} +1 -1
- package/dist/ketchup/{p-c022824e.entry.js → p-c968e93d.entry.js} +1 -1
- package/dist/ketchup/{p-1242366a.entry.js → p-d739710a.entry.js} +1 -1
- package/dist/ketchup/{p-ae4fffe0.js → p-d98fdb9b.js} +1 -1
- package/dist/ketchup/{p-c222d070.entry.js → p-da891093.entry.js} +1 -1
- package/dist/ketchup/{p-281cff81.entry.js → p-df316daf.entry.js} +1 -1
- package/dist/ketchup/{p-d87fb5ff.entry.js → p-e02b5141.entry.js} +1 -1
- package/dist/ketchup/{p-ea16ddc0.js → p-e714f4dc.js} +1 -1
- package/dist/ketchup/{p-c4d9e3e2.js → p-ef614656.js} +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -0
- package/dist/types/components/kup-image/kup-image.d.ts +2 -0
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +18 -3
- package/dist/types/components/kup-planner/kup-planner.d.ts +36 -11
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -5
- package/dist/types/components.d.ts +39 -4
- package/dist/types/f-components/f-image/f-image-declarations.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +1 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +7 -0
- package/dist/types/types/GenericTypes.d.ts +1 -0
- package/package.json +8 -20
- package/dist/ketchup/p-02a26d59.entry.js +0 -9
- package/dist/ketchup/p-462475ac.entry.js +0 -10
- package/dist/ketchup/p-5292ef67.js +0 -30
- package/dist/ketchup/p-79b0730b.js +0 -15
- package/dist/ketchup/p-9f00ad0f.js +0 -1
- package/dist/ketchup/p-be61dd36.entry.js +0 -39
- package/dist/ketchup/p-e83e70e2.entry.js +0 -1
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
#kup-component {
|
|
20
|
+
box-sizing: border-box;
|
|
20
21
|
display: flex;
|
|
21
22
|
justify-content: center;
|
|
22
23
|
height: 100%;
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
box-shadow: var(--kup-box-shadow);
|
|
32
33
|
color: var(--kup-navbar-color);
|
|
33
34
|
display: flex;
|
|
34
|
-
justify-content:
|
|
35
|
+
justify-content: space-between;
|
|
35
36
|
max-width: 672px;
|
|
36
37
|
min-height: 48px;
|
|
37
38
|
min-width: 344px;
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
.snackbar__text {
|
|
40
41
|
padding: 14px 16px;
|
|
41
42
|
pointer-events: all;
|
|
42
|
-
|
|
43
|
+
word-break: break-word;
|
|
43
44
|
}
|
|
44
45
|
.snackbar__buttons {
|
|
45
46
|
--kup-button-primary-color: var(--kup-navbar-color);
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
justify-content: flex-end;
|
|
53
54
|
margin-right: 8px;
|
|
54
55
|
pointer-events: all;
|
|
55
|
-
width:
|
|
56
|
+
width: max-content;
|
|
56
57
|
}
|
|
57
58
|
.snackbar__close {
|
|
58
59
|
--kup-button-font-size: 11px;
|
|
@@ -779,8 +779,7 @@
|
|
|
779
779
|
@keyframes sk-spinner-bar-v1 {
|
|
780
780
|
from {
|
|
781
781
|
left: -25%;
|
|
782
|
-
background: var(--kup-spinner-color);
|
|
783
|
-
/* fallback */
|
|
782
|
+
background: var(--kup-spinner-color); /* fallback */
|
|
784
783
|
background: linear-gradient(to left, var(--kup-spinner-color) 0, rgba(255, 255, 255, 0) 100%);
|
|
785
784
|
}
|
|
786
785
|
50% {
|
|
@@ -788,8 +787,7 @@
|
|
|
788
787
|
}
|
|
789
788
|
to {
|
|
790
789
|
left: -25%;
|
|
791
|
-
background: var(--kup-spinner-color);
|
|
792
|
-
/* fallback */
|
|
790
|
+
background: var(--kup-spinner-color); /* fallback */
|
|
793
791
|
background: linear-gradient(to right, var(--kup-spinner-color) 0, rgba(255, 255, 255, 0) 100%);
|
|
794
792
|
}
|
|
795
793
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f)
|
|
3
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var _KupTree_kupManager;
|
|
1
9
|
import { forceUpdate, getAssetPath, h, Host, } from '@stencil/core';
|
|
2
10
|
import { TotalLabel, TotalMode, } from './../kup-data-table/kup-data-table-declarations';
|
|
3
11
|
import { KupTreeProps, treeMainColumnName, KupTreeExpansionMode, } from './kup-tree-declarations';
|
|
@@ -32,7 +40,7 @@ export class KupTree {
|
|
|
32
40
|
/**
|
|
33
41
|
* Instance of the KupManager class.
|
|
34
42
|
*/
|
|
35
|
-
this
|
|
43
|
+
_KupTree_kupManager.set(this, kupManagerInstance());
|
|
36
44
|
/**
|
|
37
45
|
* Reference to the column menu card.
|
|
38
46
|
*/
|
|
@@ -97,31 +105,31 @@ export class KupTree {
|
|
|
97
105
|
persistState() {
|
|
98
106
|
if (this.store && this.stateId) {
|
|
99
107
|
let somethingChanged = false;
|
|
100
|
-
if (!this.
|
|
108
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
|
|
101
109
|
this.state.filters = Object.assign({}, this.filters);
|
|
102
110
|
somethingChanged = true;
|
|
103
111
|
}
|
|
104
|
-
if (!this.
|
|
112
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
|
|
105
113
|
this.state.density = this.density;
|
|
106
114
|
somethingChanged = true;
|
|
107
115
|
}
|
|
108
|
-
if (!this.
|
|
116
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
|
|
109
117
|
this.state.showFilters = this.showFilters;
|
|
110
118
|
somethingChanged = true;
|
|
111
119
|
}
|
|
112
|
-
if (!this.
|
|
120
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
|
|
113
121
|
this.state.showFooter = this.showFooter;
|
|
114
122
|
somethingChanged = true;
|
|
115
123
|
}
|
|
116
|
-
if (!this.
|
|
124
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
|
|
117
125
|
this.state.totals = Object.assign({}, this.totals);
|
|
118
126
|
somethingChanged = true;
|
|
119
127
|
}
|
|
120
|
-
if (!this.
|
|
128
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
|
|
121
129
|
this.state.globalFilter = this.globalFilter;
|
|
122
130
|
somethingChanged = true;
|
|
123
131
|
}
|
|
124
|
-
if (!this.
|
|
132
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
125
133
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
126
134
|
somethingChanged = true;
|
|
127
135
|
}
|
|
@@ -252,7 +260,7 @@ export class KupTree {
|
|
|
252
260
|
* @param {KupDataColumn} column - Column to hide.
|
|
253
261
|
*/
|
|
254
262
|
async hideColumn(column) {
|
|
255
|
-
this.
|
|
263
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").data.column.hide(this.columns, [column.name]);
|
|
256
264
|
this.kupColumnRemove.emit({
|
|
257
265
|
comp: this,
|
|
258
266
|
id: this.rootElement.id,
|
|
@@ -336,21 +344,21 @@ export class KupTree {
|
|
|
336
344
|
return this.treeColumnVisible;
|
|
337
345
|
}
|
|
338
346
|
checkScrollOnHover() {
|
|
339
|
-
if (!this.
|
|
347
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").scrollOnHover.isRegistered(this.treeWrapperRef)) {
|
|
340
348
|
if (this.scrollOnHover) {
|
|
341
|
-
this.
|
|
349
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").scrollOnHover.register(this.treeWrapperRef);
|
|
342
350
|
}
|
|
343
351
|
}
|
|
344
352
|
else {
|
|
345
353
|
if (!this.scrollOnHover) {
|
|
346
|
-
this.
|
|
354
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").scrollOnHover.unregister(this.treeWrapperRef);
|
|
347
355
|
}
|
|
348
356
|
}
|
|
349
357
|
}
|
|
350
358
|
onKupTreeNodeDblClick(treeNodeData, treeNodePath) {
|
|
351
359
|
for (let index = 0; index < this.clickTimeout.length; index++) {
|
|
352
360
|
clearTimeout(this.clickTimeout[index]);
|
|
353
|
-
this.
|
|
361
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logMessage(this, 'Cleared hdlTreeNodeClick timeout(' +
|
|
354
362
|
this.clickTimeout[index] +
|
|
355
363
|
').');
|
|
356
364
|
}
|
|
@@ -539,7 +547,7 @@ export class KupTree {
|
|
|
539
547
|
}
|
|
540
548
|
contextMenuHandler(e) {
|
|
541
549
|
e.preventDefault();
|
|
542
|
-
const details = this.getEventDetails(this.getEventPath(e.target), e);
|
|
550
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupTree_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
543
551
|
if (details.area === 'header') {
|
|
544
552
|
if (details.th && details.column) {
|
|
545
553
|
this.openColumnMenu(details.column.name);
|
|
@@ -555,18 +563,6 @@ export class KupTree {
|
|
|
555
563
|
}
|
|
556
564
|
return details;
|
|
557
565
|
}
|
|
558
|
-
getEventPath(currentEl) {
|
|
559
|
-
const path = [];
|
|
560
|
-
while (currentEl &&
|
|
561
|
-
currentEl !== this.rootElement &&
|
|
562
|
-
currentEl !== document.body) {
|
|
563
|
-
path.push(currentEl);
|
|
564
|
-
currentEl = currentEl.parentNode
|
|
565
|
-
? currentEl.parentNode
|
|
566
|
-
: currentEl.host;
|
|
567
|
-
}
|
|
568
|
-
return path;
|
|
569
|
-
}
|
|
570
566
|
// When a TreeNode can be selected
|
|
571
567
|
hdlTreeNodeClick(e, treeNodeData, treeNodePath) {
|
|
572
568
|
if (this.expansionMode.toLowerCase() ===
|
|
@@ -574,7 +570,9 @@ export class KupTree {
|
|
|
574
570
|
(this.expansionMode.toLowerCase() === KupTreeExpansionMode.NODE &&
|
|
575
571
|
!treeNodeData.expandable)) {
|
|
576
572
|
const td = e
|
|
577
|
-
? this
|
|
573
|
+
? __classPrivateFieldGet(this, _KupTree_kupManager, "f")
|
|
574
|
+
.getEventPath(e.target, this.rootElement)
|
|
575
|
+
.find((el) => {
|
|
578
576
|
if (el.tagName === 'TD')
|
|
579
577
|
return el;
|
|
580
578
|
})
|
|
@@ -766,10 +764,10 @@ export class KupTree {
|
|
|
766
764
|
refreshStructureState() {
|
|
767
765
|
if (this.data) {
|
|
768
766
|
if (this.data.columns) {
|
|
769
|
-
this.
|
|
767
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logMessage(this, 'Detected KupDataDataset: setting up tree as grid.', KupDebugCategory.WARNING);
|
|
770
768
|
const data = this.data;
|
|
771
769
|
this.columns = data.columns;
|
|
772
|
-
this.data = this.
|
|
770
|
+
this.data = __classPrivateFieldGet(this, _KupTree_kupManager, "f").data.row.toNode(data);
|
|
773
771
|
this.showColumns = true;
|
|
774
772
|
this.showHeader = true;
|
|
775
773
|
}
|
|
@@ -832,7 +830,7 @@ export class KupTree {
|
|
|
832
830
|
//---- Filter ----
|
|
833
831
|
let filter = null;
|
|
834
832
|
if (this.filtersColumnMenuInstance.hasFiltersForColumn(this.filters, column)) {
|
|
835
|
-
const svgLabel = this.
|
|
833
|
+
const svgLabel = __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.REMOVE_FILTERS) + `: '${this.getFilterValueForTooltip(column)}'`;
|
|
836
834
|
/**
|
|
837
835
|
* When column has a filter but filters must not be displayed, shows an icon to remove the filter.
|
|
838
836
|
* Upon click, the filter gets removed.
|
|
@@ -907,9 +905,9 @@ export class KupTree {
|
|
|
907
905
|
expandClass += ` ${KupThemeIconValues.COLLAPSED.replace('--', '')}`;
|
|
908
906
|
}
|
|
909
907
|
}
|
|
910
|
-
let treeExpandIcon = (h("span", { title: this.
|
|
908
|
+
let treeExpandIcon = (h("span", { title: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND) +
|
|
911
909
|
'/' +
|
|
912
|
-
this.
|
|
910
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.COLLAPSE) +
|
|
913
911
|
' (CTRL + Click)', class: expandClass, onClick: this.expansionMode.toLowerCase() ===
|
|
914
912
|
KupTreeExpansionMode.DROPDOWN && !treeNodeData.disabled
|
|
915
913
|
? (event) => {
|
|
@@ -982,8 +980,8 @@ export class KupTree {
|
|
|
982
980
|
}
|
|
983
981
|
}
|
|
984
982
|
let title = undefined;
|
|
985
|
-
if (!this.
|
|
986
|
-
this.
|
|
983
|
+
if (!__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isEmptyKupObj(treeNodeData.obj) &&
|
|
984
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.isDebug()) {
|
|
987
985
|
title =
|
|
988
986
|
treeNodeData.obj.t +
|
|
989
987
|
'; ' +
|
|
@@ -1006,7 +1004,7 @@ export class KupTree {
|
|
|
1006
1004
|
'mdc-ripple-surface': this.ripple &&
|
|
1007
1005
|
!this.showColumns &&
|
|
1008
1006
|
!treeNodeData.disabled,
|
|
1009
|
-
'is-obj': !this.
|
|
1007
|
+
'is-obj': !__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isEmptyKupObj(treeNodeData.obj),
|
|
1010
1008
|
}, style: treeNodeData.style || null, title: title, onDblClick: () => {
|
|
1011
1009
|
this.onKupTreeNodeDblClick(treeNodeData, treeNodePath);
|
|
1012
1010
|
} }, this.asAccordion && !treeNodeDepth
|
|
@@ -1029,7 +1027,7 @@ export class KupTree {
|
|
|
1029
1027
|
}
|
|
1030
1028
|
closeTotalMenu() {
|
|
1031
1029
|
this.openedTotalMenu = null;
|
|
1032
|
-
this.
|
|
1030
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").removeClickCallback(this.clickCb);
|
|
1033
1031
|
}
|
|
1034
1032
|
isOpenedTotalMenuForColumn(column) {
|
|
1035
1033
|
return this.openedTotalMenu === column;
|
|
@@ -1059,15 +1057,15 @@ export class KupTree {
|
|
|
1059
1057
|
let totalMenu = undefined;
|
|
1060
1058
|
let menuLabel = TotalLabel.CALC;
|
|
1061
1059
|
const translation = {
|
|
1062
|
-
[TotalLabel.AVERAGE]: this.
|
|
1063
|
-
[TotalLabel.CALC]: this.
|
|
1064
|
-
[TotalLabel.CANC]: this.
|
|
1065
|
-
[TotalLabel.COUNT]: this.
|
|
1066
|
-
[TotalLabel.DISTINCT]: this.
|
|
1067
|
-
[TotalLabel.MATH]: this.
|
|
1068
|
-
[TotalLabel.MAX]: this.
|
|
1069
|
-
[TotalLabel.MIN]: this.
|
|
1070
|
-
[TotalLabel.SUM]: this.
|
|
1060
|
+
[TotalLabel.AVERAGE]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.AVERAGE),
|
|
1061
|
+
[TotalLabel.CALC]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.CALCULATE),
|
|
1062
|
+
[TotalLabel.CANC]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.CANCEL),
|
|
1063
|
+
[TotalLabel.COUNT]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.COUNT),
|
|
1064
|
+
[TotalLabel.DISTINCT]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.DISTINCT),
|
|
1065
|
+
[TotalLabel.MATH]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.FORMULA),
|
|
1066
|
+
[TotalLabel.MAX]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.MAXIMUM),
|
|
1067
|
+
[TotalLabel.MIN]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.MINIMUM),
|
|
1068
|
+
[TotalLabel.SUM]: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageTotals.SUM),
|
|
1071
1069
|
};
|
|
1072
1070
|
if (this.totals) {
|
|
1073
1071
|
const totalValue = this.totals[column.name];
|
|
@@ -1112,7 +1110,7 @@ export class KupTree {
|
|
|
1112
1110
|
value: translation[TotalLabel.DISTINCT],
|
|
1113
1111
|
},
|
|
1114
1112
|
];
|
|
1115
|
-
if (this.
|
|
1113
|
+
if (__classPrivateFieldGet(this, _KupTree_kupManager, "f").objects.isNumber(column.obj)) {
|
|
1116
1114
|
listData.push({
|
|
1117
1115
|
id: TotalMode.SUM,
|
|
1118
1116
|
value: translation[TotalLabel.SUM],
|
|
@@ -1178,25 +1176,25 @@ export class KupTree {
|
|
|
1178
1176
|
});
|
|
1179
1177
|
}
|
|
1180
1178
|
};
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1179
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").interact.on(this.treeWrapperRef, KupPointerEventTypes.TAP, tapCb);
|
|
1180
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").interact.on(this.treeWrapperRef, KupPointerEventTypes.HOLD, holdCb);
|
|
1183
1181
|
}
|
|
1184
1182
|
totalMenuPosition() {
|
|
1185
1183
|
if (this.rootElement.shadowRoot) {
|
|
1186
1184
|
const menu = this.rootElement.shadowRoot.querySelector('#totals-menu');
|
|
1187
1185
|
if (menu) {
|
|
1188
|
-
this.
|
|
1186
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").dynamicPosition.register(menu, this.totalMenuCoords);
|
|
1189
1187
|
if (!this.clickCb) {
|
|
1190
1188
|
this.clickCb = {
|
|
1191
1189
|
cb: () => {
|
|
1192
1190
|
this.closeTotalMenu();
|
|
1193
|
-
this.
|
|
1191
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").dynamicPosition.stop(menu);
|
|
1194
1192
|
},
|
|
1195
1193
|
el: menu,
|
|
1196
1194
|
};
|
|
1197
1195
|
}
|
|
1198
|
-
this.
|
|
1199
|
-
this.
|
|
1196
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").addClickCallback(this.clickCb, true);
|
|
1197
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").dynamicPosition.start(menu);
|
|
1200
1198
|
menu.menuVisible = true;
|
|
1201
1199
|
}
|
|
1202
1200
|
}
|
|
@@ -1254,20 +1252,20 @@ export class KupTree {
|
|
|
1254
1252
|
/* L i f e c y c l e H o o k s */
|
|
1255
1253
|
/*-------------------------------------------------*/
|
|
1256
1254
|
componentWillLoad() {
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1255
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logLoad(this, false);
|
|
1256
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").language.register(this);
|
|
1257
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.register(this);
|
|
1260
1258
|
this.columnMenuInstance = new KupColumnMenu();
|
|
1261
1259
|
this.refreshStructureState();
|
|
1262
1260
|
}
|
|
1263
1261
|
componentDidLoad() {
|
|
1264
1262
|
this.didLoadInteractables();
|
|
1265
1263
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1264
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").resize.observe(this.rootElement);
|
|
1265
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logLoad(this, true);
|
|
1268
1266
|
}
|
|
1269
1267
|
componentWillRender() {
|
|
1270
|
-
this.
|
|
1268
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logRender(this, false);
|
|
1271
1269
|
if (this.showFooter && this.columns) {
|
|
1272
1270
|
this.footer = calcTotals(normalizeRows(this.getColumns(), this.nodesToRows()), this.totals);
|
|
1273
1271
|
}
|
|
@@ -1299,7 +1297,7 @@ export class KupTree {
|
|
|
1299
1297
|
this.persistState();
|
|
1300
1298
|
// ***
|
|
1301
1299
|
this.oldWidth = this.rootElement.clientWidth;
|
|
1302
|
-
this.
|
|
1300
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").debug.logRender(this, true);
|
|
1303
1301
|
}
|
|
1304
1302
|
render() {
|
|
1305
1303
|
this.contentRefs = [];
|
|
@@ -1322,7 +1320,7 @@ export class KupTree {
|
|
|
1322
1320
|
}
|
|
1323
1321
|
else {
|
|
1324
1322
|
// There are no TreeNodes, so we print a single cell with a caption
|
|
1325
|
-
treeNodes.push(h("tr", null, h("td", null, this.
|
|
1323
|
+
treeNodes.push(h("tr", null, h("td", null, __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))));
|
|
1326
1324
|
}
|
|
1327
1325
|
// Calculates if header must be shown or not
|
|
1328
1326
|
const visibleHeader = this.showHeader && this.showColumns;
|
|
@@ -1331,12 +1329,12 @@ export class KupTree {
|
|
|
1331
1329
|
this.data &&
|
|
1332
1330
|
this.data.length &&
|
|
1333
1331
|
this.data.length > 0) {
|
|
1334
|
-
filterField = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: this.
|
|
1332
|
+
filterField = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
1335
1333
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1336
1334
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1337
1335
|
} })));
|
|
1338
1336
|
}
|
|
1339
|
-
return (h(Host, null, h("style", null, this.
|
|
1337
|
+
return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, class: wrapperClass }, filterField, h("div", { class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
1340
1338
|
el) }, h("table", { class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
1341
1339
|
e.preventDefault();
|
|
1342
1340
|
} }, h("thead", { class: {
|
|
@@ -1347,18 +1345,18 @@ export class KupTree {
|
|
|
1347
1345
|
: null)))));
|
|
1348
1346
|
}
|
|
1349
1347
|
disconnectedCallback() {
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1348
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").language.register(this);
|
|
1349
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").resize.unobserve(this.rootElement);
|
|
1350
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.unregister(this);
|
|
1353
1351
|
const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
|
|
1354
1352
|
if (dynamicPositionElements.length > 0) {
|
|
1355
|
-
this.
|
|
1353
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
|
|
1356
1354
|
}
|
|
1357
1355
|
if (this.columnMenuCard) {
|
|
1358
1356
|
this.columnMenuCard.remove();
|
|
1359
1357
|
}
|
|
1360
1358
|
if (this.scrollOnHover) {
|
|
1361
|
-
this.
|
|
1359
|
+
__classPrivateFieldGet(this, _KupTree_kupManager, "f").scrollOnHover.unregister(this.treeWrapperRef);
|
|
1362
1360
|
}
|
|
1363
1361
|
this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
|
|
1364
1362
|
}
|
|
@@ -2478,3 +2476,4 @@ export class KupTree {
|
|
|
2478
2476
|
}];
|
|
2479
2477
|
}
|
|
2480
2478
|
}
|
|
2479
|
+
_KupTree_kupManager = new WeakMap();
|
|
@@ -15,7 +15,7 @@ export const FImage = (props) => {
|
|
|
15
15
|
'--kup_image_height': props.sizeY ? props.sizeY : 'auto',
|
|
16
16
|
'--kup_image_width': props.sizeX ? props.sizeX : '100%',
|
|
17
17
|
};
|
|
18
|
-
el = createImage(props
|
|
18
|
+
el = createImage(props);
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
21
|
style = {
|
|
@@ -64,8 +64,8 @@ function createIcon(props) {
|
|
|
64
64
|
}
|
|
65
65
|
return h("div", { class: classObj, style: style });
|
|
66
66
|
}
|
|
67
|
-
function createImage(
|
|
68
|
-
return h("img", { src: resource });
|
|
67
|
+
function createImage(props) {
|
|
68
|
+
return h("img", { onLoad: props.onLoad, src: props.resource });
|
|
69
69
|
}
|
|
70
70
|
function createBar(data) {
|
|
71
71
|
const steps = [];
|
|
@@ -104,6 +104,7 @@ function newColumnFromConcatenate(dataset, columns, separator) {
|
|
|
104
104
|
const message = 'The product of these columns in the same order already exists!(' +
|
|
105
105
|
columns.toString() +
|
|
106
106
|
')';
|
|
107
|
+
col.visible = true;
|
|
107
108
|
dom.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
|
|
108
109
|
return message;
|
|
109
110
|
}
|
|
@@ -233,6 +233,24 @@ export class KupManager {
|
|
|
233
233
|
this.utilities.clickCallbacks.add(cb);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Retrives event path from event.target
|
|
238
|
+
* @param currentEl event.target
|
|
239
|
+
* @param rootElement rootElement of component
|
|
240
|
+
* @returns
|
|
241
|
+
*/
|
|
242
|
+
getEventPath(currentEl, rootElement) {
|
|
243
|
+
const path = [];
|
|
244
|
+
while (currentEl &&
|
|
245
|
+
currentEl !== rootElement &&
|
|
246
|
+
currentEl !== document.body) {
|
|
247
|
+
path.push(currentEl);
|
|
248
|
+
currentEl = currentEl.parentNode
|
|
249
|
+
? currentEl.parentNode
|
|
250
|
+
: currentEl.host;
|
|
251
|
+
}
|
|
252
|
+
return path;
|
|
253
|
+
}
|
|
236
254
|
/**
|
|
237
255
|
* Rasterizes an HTMLElement, transforming into a canvas.
|
|
238
256
|
* @param {HTMLElement} el - Element to rasterize.
|
|
@@ -37,6 +37,7 @@ export var KupTagNames;
|
|
|
37
37
|
KupTagNames["MAGIC_BOX"] = "KUP-MAGIC-BOX";
|
|
38
38
|
KupTagNames["NAV_BAR"] = "KUP-NAV-BAR";
|
|
39
39
|
KupTagNames["NUMERIC_PICKER"] = "KUP-NUMERIC-PICKER";
|
|
40
|
+
KupTagNames["PLANNER"] = "KUP-PLANNER";
|
|
40
41
|
KupTagNames["PROBE"] = "KUP-PROBE";
|
|
41
42
|
KupTagNames["PROGRESS_BAR"] = "KUP-PROGRESS-BAR";
|
|
42
43
|
KupTagNames["QLIK"] = "KUP-QLIK";
|