@sme.up/ketchup 6.2.0 → 6.3.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/{f-button-5b69d882.js → f-button-94cb5f35.js} +2 -2
- package/dist/cjs/{f-cell-3a740c48.js → f-cell-76830a0d.js} +12 -14
- package/dist/cjs/{f-checkbox-57443ca3.js → f-checkbox-cd977193.js} +1 -1
- package/dist/cjs/{f-chip-02e83f82.js → f-chip-68d45fd3.js} +3 -3
- package/dist/cjs/{f-image-2a61ece2.js → f-image-0e71df7e.js} +2 -2
- package/dist/cjs/{f-paginator-utils-09126bdd.js → f-paginator-utils-46689c0a.js} +80 -403
- package/dist/cjs/{f-text-field-9ee20a67.js → f-text-field-b4229cef.js} +11 -3
- package/dist/cjs/{index-06b131ea.js → index-31125378.js} +9 -4
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -6
- package/dist/cjs/kup-autocomplete_25.cjs.entry.js +116 -111
- package/dist/cjs/kup-box.cjs.entry.js +15 -17
- package/dist/cjs/kup-calendar.cjs.entry.js +9 -11
- package/dist/cjs/kup-cell.cjs.entry.js +9 -11
- package/dist/cjs/kup-dash-list.cjs.entry.js +5 -7
- package/dist/cjs/kup-dash_2.cjs.entry.js +4 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +76 -17
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -5
- package/dist/cjs/kup-echart.cjs.entry.js +17 -19
- package/dist/cjs/kup-family-tree.cjs.entry.js +140 -64
- package/dist/cjs/kup-form.cjs.entry.js +10 -12
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -5
- package/dist/cjs/kup-image-list.cjs.entry.js +10 -12
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -5
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -6
- package/dist/cjs/{kup-manager-02acbb37.js → kup-manager-7c514a30.js} +1400 -369
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -5
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -5
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +6 -7
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/assets/dashboard.js +48 -0
- package/dist/collection/assets/family-tree.js +236 -19
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/assets/kupinteract.js +68 -0
- package/dist/collection/collection-manifest.json +5 -5
- package/dist/collection/components/kup-dashboard/kup-dashboard.css +7 -0
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +67 -7
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +42 -30
- package/dist/collection/components/kup-echart/kup-echart.js +9 -9
- package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +3 -1
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +79 -9
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +253 -65
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +9 -1
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +48 -15
- package/dist/collection/managers/kup-data/kup-data.js +5 -5
- package/dist/collection/managers/kup-interact/kup-interact.js +3 -5
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +2 -0
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +131 -45
- package/dist/collection/utils/filters/filters-rows.js +4 -23
- package/dist/collection/utils/filters/filters-tree-items.js +2 -1
- package/dist/esm/{f-button-fd44ef70.js → f-button-cd948e50.js} +2 -2
- package/dist/esm/{f-cell-7b159a22.js → f-cell-474dd282.js} +6 -8
- package/dist/esm/{f-checkbox-c51c4a75.js → f-checkbox-e06cf07b.js} +1 -1
- package/dist/esm/{f-chip-c2e4c522.js → f-chip-d6f2eb94.js} +3 -3
- package/dist/esm/{f-image-2ab4b9aa.js → f-image-914a03ef.js} +2 -2
- package/dist/esm/{f-paginator-utils-ef537d82.js → f-paginator-utils-a4a52732.js} +44 -366
- package/dist/esm/{f-text-field-41c575eb.js → f-text-field-76341fe3.js} +11 -3
- package/dist/esm/{index-ad6ab214.js → index-e41330a5.js} +9 -4
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +3 -4
- package/dist/esm/kup-autocomplete_25.entry.js +17 -12
- package/dist/esm/kup-box.entry.js +9 -11
- package/dist/esm/kup-calendar.entry.js +5 -7
- package/dist/esm/kup-cell.entry.js +7 -9
- package/dist/esm/kup-dash-list.entry.js +2 -4
- package/dist/esm/kup-dash_2.entry.js +2 -3
- package/dist/esm/kup-dashboard.entry.js +74 -15
- package/dist/esm/kup-drawer.entry.js +2 -3
- package/dist/esm/kup-echart.entry.js +11 -13
- package/dist/esm/kup-family-tree.entry.js +138 -62
- package/dist/esm/kup-form.entry.js +7 -9
- package/dist/esm/kup-iframe.entry.js +2 -3
- package/dist/esm/kup-image-list.entry.js +8 -10
- package/dist/esm/kup-lazy.entry.js +2 -3
- package/dist/esm/kup-magic-box.entry.js +3 -4
- package/dist/esm/{kup-manager-22a475e6.js → kup-manager-86f440c7.js} +1379 -370
- package/dist/esm/kup-nav-bar.entry.js +2 -3
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -5
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-00e1133d.entry.js +9 -0
- package/dist/ketchup/p-066f344a.entry.js +1 -0
- package/dist/ketchup/p-0c6e0647.entry.js +1 -0
- package/dist/ketchup/p-151f7c17.entry.js +27 -0
- package/dist/ketchup/p-1e9c03b0.entry.js +1 -0
- package/dist/ketchup/{p-fc2b1229.js → p-21ea11cb.js} +3 -3
- package/dist/ketchup/{p-1959f835.entry.js → p-2f4e6c50.entry.js} +1 -1
- package/dist/ketchup/p-3586f59c.js +1 -0
- package/dist/ketchup/p-359fd90d.entry.js +1 -0
- package/dist/ketchup/{p-38d7584e.js → p-389fd0bf.js} +1 -1
- package/dist/ketchup/{p-cd5cfa7c.js → p-5552f156.js} +1 -1
- package/dist/ketchup/{p-264b1b19.entry.js → p-77aff9c1.entry.js} +1 -1
- package/dist/ketchup/{p-e9366aaf.entry.js → p-7cfdf53c.entry.js} +4 -4
- package/dist/ketchup/p-853a5178.entry.js +1 -0
- package/dist/ketchup/{p-edae3076.js → p-8673bd4e.js} +1 -1
- package/dist/ketchup/p-8b55b786.entry.js +1 -0
- package/dist/ketchup/p-95f5834b.entry.js +1 -0
- package/dist/ketchup/p-a2c595c4.js +1 -0
- package/dist/ketchup/p-ae91f27e.entry.js +1 -0
- package/dist/ketchup/{p-928c5c36.js → p-af664379.js} +1 -1
- package/dist/ketchup/p-b0b3989b.js +2 -0
- package/dist/ketchup/p-b3b65a61.entry.js +1 -0
- package/dist/ketchup/p-bc306a53.entry.js +1 -0
- package/dist/ketchup/{p-42080355.entry.js → p-c3783b77.entry.js} +1 -1
- package/dist/ketchup/{p-dc62a30f.js → p-cd4fc3fb.js} +1 -1
- package/dist/ketchup/p-cee76b14.entry.js +1 -0
- package/dist/ketchup/p-cfaea29b.entry.js +1 -0
- package/dist/ketchup/p-d2f51e7b.entry.js +1 -0
- package/dist/ketchup/p-df8e6a4d.entry.js +1 -0
- package/dist/ketchup/p-e60a1170.entry.js +1 -0
- package/dist/ketchup/p-e9a1ba04.entry.js +1 -0
- package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +6 -1
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +7 -3
- package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +26 -5
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components.d.ts +49 -7
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +13 -6
- package/dist/types/managers/kup-data/kup-data.d.ts +2 -1
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +9 -1
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +7 -5
- package/dist/types/utils/filters/filters-rows.d.ts +0 -2
- package/package.json +2 -2
- package/dist/cjs/cell-utils-fe64a28c.js +0 -168
- package/dist/cjs/utils-4b208b48.js +0 -447
- package/dist/esm/cell-utils-cb5d4149.js +0 -160
- package/dist/esm/utils-2c1f4122.js +0 -428
- package/dist/ketchup/p-06c6cc68.js +0 -1
- package/dist/ketchup/p-0dacd4bc.entry.js +0 -1
- package/dist/ketchup/p-1c44dc62.entry.js +0 -1
- package/dist/ketchup/p-4bc9f98b.entry.js +0 -1
- package/dist/ketchup/p-578583db.entry.js +0 -1
- package/dist/ketchup/p-5866d507.entry.js +0 -1
- package/dist/ketchup/p-61059e9d.entry.js +0 -9
- package/dist/ketchup/p-664be494.entry.js +0 -1
- package/dist/ketchup/p-67cd575d.entry.js +0 -1
- package/dist/ketchup/p-682a367a.js +0 -1
- package/dist/ketchup/p-6ccf7eb2.entry.js +0 -1
- package/dist/ketchup/p-7230ab97.entry.js +0 -1
- package/dist/ketchup/p-752b4cef.entry.js +0 -1
- package/dist/ketchup/p-7de3e7ac.entry.js +0 -1
- package/dist/ketchup/p-9b36497d.entry.js +0 -1
- package/dist/ketchup/p-b982d137.entry.js +0 -1
- package/dist/ketchup/p-c0219e5e.js +0 -1
- package/dist/ketchup/p-c55fd0a7.entry.js +0 -1
- package/dist/ketchup/p-d154b3a0.entry.js +0 -1
- package/dist/ketchup/p-d2affb6f.entry.js +0 -27
- package/dist/ketchup/p-d3b542b3.js +0 -2
- package/dist/ketchup/p-d6c12c6c.js +0 -1
- package/dist/ketchup/p-da0eab60.entry.js +0 -1
|
@@ -2,21 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
7
|
-
const fTextField = require('./f-text-field-
|
|
5
|
+
const index = require('./index-31125378.js');
|
|
6
|
+
const kupManager = require('./kup-manager-7c514a30.js');
|
|
7
|
+
const fTextField = require('./f-text-field-b4229cef.js');
|
|
8
8
|
const fTextFieldMdc = require('./f-text-field-mdc-85997738.js');
|
|
9
|
-
const utils = require('./utils-4b208b48.js');
|
|
10
9
|
const GenericVariables = require('./GenericVariables-a9ed17ee.js');
|
|
11
|
-
const fImage = require('./f-image-
|
|
12
|
-
const fButton = require('./f-button-
|
|
10
|
+
const fImage = require('./f-image-0e71df7e.js');
|
|
11
|
+
const fButton = require('./f-button-94cb5f35.js');
|
|
13
12
|
const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
|
|
14
|
-
const fChip = require('./f-chip-
|
|
13
|
+
const fChip = require('./f-chip-68d45fd3.js');
|
|
15
14
|
const component = require('./component-72a5b626.js');
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const fCell = require('./f-cell-3a740c48.js');
|
|
15
|
+
const fCheckbox = require('./f-checkbox-cd977193.js');
|
|
16
|
+
const fPaginatorUtils = require('./f-paginator-utils-46689c0a.js');
|
|
17
|
+
const fCell = require('./f-cell-76830a0d.js');
|
|
20
18
|
require('./tslib.es6-0ee02c67.js');
|
|
21
19
|
|
|
22
20
|
/**
|
|
@@ -444,7 +442,7 @@ const KupAutocomplete = class {
|
|
|
444
442
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
445
443
|
*/
|
|
446
444
|
async getProps(descriptions) {
|
|
447
|
-
return
|
|
445
|
+
return kupManager.getProps(this, KupAutocompleteProps, descriptions);
|
|
448
446
|
}
|
|
449
447
|
/**
|
|
450
448
|
* Used to retrieve the value of the component.
|
|
@@ -470,7 +468,7 @@ const KupAutocomplete = class {
|
|
|
470
468
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
471
469
|
*/
|
|
472
470
|
async setProps(props) {
|
|
473
|
-
|
|
471
|
+
kupManager.setProps(this, KupAutocompleteProps, props);
|
|
474
472
|
}
|
|
475
473
|
/**
|
|
476
474
|
* Sets the value of the component.
|
|
@@ -654,7 +652,7 @@ const KupBadge = class {
|
|
|
654
652
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
655
653
|
*/
|
|
656
654
|
async getProps(descriptions) {
|
|
657
|
-
return
|
|
655
|
+
return kupManager.getProps(this, KupBadgeProps, descriptions);
|
|
658
656
|
}
|
|
659
657
|
/**
|
|
660
658
|
* This method is used to trigger a new render of the component.
|
|
@@ -667,7 +665,7 @@ const KupBadge = class {
|
|
|
667
665
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
668
666
|
*/
|
|
669
667
|
async setProps(props) {
|
|
670
|
-
|
|
668
|
+
kupManager.setProps(this, KupBadgeProps, props);
|
|
671
669
|
}
|
|
672
670
|
/*-------------------------------------------------*/
|
|
673
671
|
/* L i f e c y c l e H o o k s */
|
|
@@ -847,7 +845,7 @@ const KupButton = class {
|
|
|
847
845
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
848
846
|
*/
|
|
849
847
|
async getProps(descriptions) {
|
|
850
|
-
return
|
|
848
|
+
return kupManager.getProps(this, KupButtonProps, descriptions);
|
|
851
849
|
}
|
|
852
850
|
/**
|
|
853
851
|
* This method is used to trigger a new render of the component.
|
|
@@ -860,7 +858,7 @@ const KupButton = class {
|
|
|
860
858
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
861
859
|
*/
|
|
862
860
|
async setProps(props) {
|
|
863
|
-
|
|
861
|
+
kupManager.setProps(this, KupButtonProps, props);
|
|
864
862
|
}
|
|
865
863
|
/*-------------------------------------------------*/
|
|
866
864
|
/* L i f e c y c l e H o o k s */
|
|
@@ -1081,7 +1079,7 @@ const KupButtonList = class {
|
|
|
1081
1079
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
1082
1080
|
*/
|
|
1083
1081
|
async setProps(props) {
|
|
1084
|
-
|
|
1082
|
+
kupManager.setProps(this, KupButtonListProps, props);
|
|
1085
1083
|
}
|
|
1086
1084
|
/*-------------------------------------------------*/
|
|
1087
1085
|
/* P r i v a t e M e t h o d s */
|
|
@@ -1302,7 +1300,7 @@ function prepareCalendar(component) {
|
|
|
1302
1300
|
}
|
|
1303
1301
|
if (!el.kupData.value)
|
|
1304
1302
|
setValue$2(component, new Date());
|
|
1305
|
-
const months =
|
|
1303
|
+
const months = kupManager.getMonthsAsStringByLocale();
|
|
1306
1304
|
const curYear = getYear(component);
|
|
1307
1305
|
const curMonth = getMonth(component);
|
|
1308
1306
|
const yearRange = getInitEndYear(curYear);
|
|
@@ -1492,7 +1490,7 @@ function createDaysCalendar(component) {
|
|
|
1492
1490
|
index.h("tbody", null, tbody)));
|
|
1493
1491
|
}
|
|
1494
1492
|
function createMonthsCalendar(component) {
|
|
1495
|
-
const months =
|
|
1493
|
+
const months = kupManager.getMonthsAsStringByLocale(kupManager.DateTimeFormatOptionsMonth.SHORT);
|
|
1496
1494
|
let selectedDay = getDay(component);
|
|
1497
1495
|
const selectedMonth = getMonth(component);
|
|
1498
1496
|
const selectedYear = getYear(component);
|
|
@@ -5148,7 +5146,7 @@ const KupCard = class {
|
|
|
5148
5146
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
5149
5147
|
*/
|
|
5150
5148
|
async getProps(descriptions) {
|
|
5151
|
-
return
|
|
5149
|
+
return kupManager.getProps(this, kupManager.KupCardProps, descriptions);
|
|
5152
5150
|
}
|
|
5153
5151
|
/**
|
|
5154
5152
|
* This method is used to trigger a new render of the component.
|
|
@@ -5170,7 +5168,7 @@ const KupCard = class {
|
|
|
5170
5168
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
5171
5169
|
*/
|
|
5172
5170
|
async setProps(props) {
|
|
5173
|
-
|
|
5171
|
+
kupManager.setProps(this, kupManager.KupCardProps, props);
|
|
5174
5172
|
}
|
|
5175
5173
|
/*-------------------------------------------------*/
|
|
5176
5174
|
/* P r i v a t e M e t h o d s */
|
|
@@ -5566,14 +5564,14 @@ const convertColumns = (data, { series, axis }) => {
|
|
|
5566
5564
|
}
|
|
5567
5565
|
const columns = [];
|
|
5568
5566
|
// axis
|
|
5569
|
-
const axisColumn =
|
|
5567
|
+
const axisColumn = kupManager.getColumnByName(data.columns, axis);
|
|
5570
5568
|
if (axisColumn) {
|
|
5571
5569
|
columns.push(axisColumn);
|
|
5572
5570
|
}
|
|
5573
5571
|
// series
|
|
5574
5572
|
series.map((serie) => {
|
|
5575
5573
|
// searching colum
|
|
5576
|
-
const c =
|
|
5574
|
+
const c = kupManager.getColumnByName(data.columns, serie.code);
|
|
5577
5575
|
if (c) {
|
|
5578
5576
|
columns.push(c);
|
|
5579
5577
|
}
|
|
@@ -5596,7 +5594,7 @@ const convertRows = (data, columns, showMarks) => {
|
|
|
5596
5594
|
if (cell && cell.obj) {
|
|
5597
5595
|
const addMark = showMarks && index > 0;
|
|
5598
5596
|
if (kupObjects.isNumber(cell.obj)) {
|
|
5599
|
-
const value =
|
|
5597
|
+
const value = kupManager.formatToNumber(cell);
|
|
5600
5598
|
currentRow.push(value);
|
|
5601
5599
|
if (addMark) {
|
|
5602
5600
|
currentRow.push(value.toString());
|
|
@@ -5711,7 +5709,7 @@ const KupChart = class {
|
|
|
5711
5709
|
/*-------------------------------------------------*/
|
|
5712
5710
|
identifyRows() {
|
|
5713
5711
|
if (this.data) {
|
|
5714
|
-
|
|
5712
|
+
kupManager.identify(this.data.rows);
|
|
5715
5713
|
}
|
|
5716
5714
|
}
|
|
5717
5715
|
/*-------------------------------------------------*/
|
|
@@ -5723,7 +5721,7 @@ const KupChart = class {
|
|
|
5723
5721
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
5724
5722
|
*/
|
|
5725
5723
|
async getProps(descriptions) {
|
|
5726
|
-
return
|
|
5724
|
+
return kupManager.getProps(this, KupChartProps, descriptions);
|
|
5727
5725
|
}
|
|
5728
5726
|
/**
|
|
5729
5727
|
* This method is used to trigger a new render of the component.
|
|
@@ -5754,7 +5752,7 @@ const KupChart = class {
|
|
|
5754
5752
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
5755
5753
|
*/
|
|
5756
5754
|
async setProps(props) {
|
|
5757
|
-
|
|
5755
|
+
kupManager.setProps(this, KupChartProps, props);
|
|
5758
5756
|
}
|
|
5759
5757
|
/*-------------------------------------------------*/
|
|
5760
5758
|
/* P r i v a t e M e t h o d s */
|
|
@@ -5971,11 +5969,11 @@ const KupChart = class {
|
|
|
5971
5969
|
this.gChartDataTable.getColumnProperty(originalColIndex, 'role')) {
|
|
5972
5970
|
--originalColIndex;
|
|
5973
5971
|
}
|
|
5974
|
-
event.column =
|
|
5972
|
+
event.column = kupManager.getColumnByName(this.data.columns, this.series[originalColIndex - 1].code);
|
|
5975
5973
|
event.colindex = originalColIndex;
|
|
5976
5974
|
}
|
|
5977
5975
|
else {
|
|
5978
|
-
event.column =
|
|
5976
|
+
event.column = kupManager.getColumnByName(this.data.columns, this.series[0].code);
|
|
5979
5977
|
event.colindex = 0;
|
|
5980
5978
|
}
|
|
5981
5979
|
}
|
|
@@ -6269,7 +6267,7 @@ const KupCheckbox = class {
|
|
|
6269
6267
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
6270
6268
|
*/
|
|
6271
6269
|
async getProps(descriptions) {
|
|
6272
|
-
return
|
|
6270
|
+
return kupManager.getProps(this, KupCheckboxProps, descriptions);
|
|
6273
6271
|
}
|
|
6274
6272
|
/**
|
|
6275
6273
|
* This method is used to trigger a new render of the component.
|
|
@@ -6282,7 +6280,7 @@ const KupCheckbox = class {
|
|
|
6282
6280
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
6283
6281
|
*/
|
|
6284
6282
|
async setProps(props) {
|
|
6285
|
-
|
|
6283
|
+
kupManager.setProps(this, KupCheckboxProps, props);
|
|
6286
6284
|
}
|
|
6287
6285
|
/*-------------------------------------------------*/
|
|
6288
6286
|
/* L i f e c y c l e H o o k s */
|
|
@@ -6448,7 +6446,7 @@ const KupChip = class {
|
|
|
6448
6446
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
6449
6447
|
*/
|
|
6450
6448
|
async getProps(descriptions) {
|
|
6451
|
-
return
|
|
6449
|
+
return kupManager.getProps(this, KupChipProps, descriptions);
|
|
6452
6450
|
}
|
|
6453
6451
|
/**
|
|
6454
6452
|
* This method is used to trigger a new render of the component.
|
|
@@ -6461,7 +6459,7 @@ const KupChip = class {
|
|
|
6461
6459
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
6462
6460
|
*/
|
|
6463
6461
|
async setProps(props) {
|
|
6464
|
-
|
|
6462
|
+
kupManager.setProps(this, KupChipProps, props);
|
|
6465
6463
|
}
|
|
6466
6464
|
/*-------------------------------------------------*/
|
|
6467
6465
|
/* L i f e c y c l e H o o k s */
|
|
@@ -6625,7 +6623,7 @@ const KupColorPicker = class {
|
|
|
6625
6623
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
6626
6624
|
*/
|
|
6627
6625
|
async getProps(descriptions) {
|
|
6628
|
-
return
|
|
6626
|
+
return kupManager.getProps(this, KupColorPickerProps, descriptions);
|
|
6629
6627
|
}
|
|
6630
6628
|
/**
|
|
6631
6629
|
* Retrieves the component's value.
|
|
@@ -6645,7 +6643,7 @@ const KupColorPicker = class {
|
|
|
6645
6643
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
6646
6644
|
*/
|
|
6647
6645
|
async setProps(props) {
|
|
6648
|
-
|
|
6646
|
+
kupManager.setProps(this, KupColorPickerProps, props);
|
|
6649
6647
|
}
|
|
6650
6648
|
/**
|
|
6651
6649
|
* Sets the component's value.
|
|
@@ -7085,7 +7083,7 @@ const KupCombobox = class {
|
|
|
7085
7083
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
7086
7084
|
*/
|
|
7087
7085
|
async getProps(descriptions) {
|
|
7088
|
-
return
|
|
7086
|
+
return kupManager.getProps(this, KupComboboxProps, descriptions);
|
|
7089
7087
|
}
|
|
7090
7088
|
/**
|
|
7091
7089
|
* Retrieves the component's value.
|
|
@@ -7111,7 +7109,7 @@ const KupCombobox = class {
|
|
|
7111
7109
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
7112
7110
|
*/
|
|
7113
7111
|
async setProps(props) {
|
|
7114
|
-
|
|
7112
|
+
kupManager.setProps(this, KupComboboxProps, props);
|
|
7115
7113
|
}
|
|
7116
7114
|
/**
|
|
7117
7115
|
* Sets the component's value.
|
|
@@ -7451,7 +7449,7 @@ class KupColumnMenu {
|
|
|
7451
7449
|
});
|
|
7452
7450
|
}
|
|
7453
7451
|
for (let index = 0; index < columnValues.length; index++) {
|
|
7454
|
-
let label =
|
|
7452
|
+
let label = kupManager.getValueForDisplay2(columnValues[index], column);
|
|
7455
7453
|
if (dom.ketchup.objects.isCheckbox(column.obj)) {
|
|
7456
7454
|
if (columnValues[index].value == '1') {
|
|
7457
7455
|
label = dom.ketchup.language.translate(kupManager.KupLanguageCheckbox.CHECKED);
|
|
@@ -7461,11 +7459,11 @@ class KupColumnMenu {
|
|
|
7461
7459
|
}
|
|
7462
7460
|
}
|
|
7463
7461
|
props.push({
|
|
7464
|
-
checked:
|
|
7462
|
+
checked: kupManager.Filters.valuesArrayContainsValue(checkBoxesFilter, columnValues[index].value),
|
|
7465
7463
|
'data-storage': {
|
|
7466
7464
|
column: column,
|
|
7467
7465
|
value: columnValues[index].value,
|
|
7468
|
-
displayedValue:
|
|
7466
|
+
displayedValue: kupManager.getValueForDisplay2(columnValues[index], column),
|
|
7469
7467
|
},
|
|
7470
7468
|
label: label,
|
|
7471
7469
|
});
|
|
@@ -7596,7 +7594,7 @@ class KupColumnMenu {
|
|
|
7596
7594
|
}
|
|
7597
7595
|
else if (dom.ketchup.objects.isStringObject(column.obj)) {
|
|
7598
7596
|
let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
|
|
7599
|
-
filterInitialValue =
|
|
7597
|
+
filterInitialValue = kupManager.getValueForDisplay(filterInitialValue, column.obj, column.decimals);
|
|
7600
7598
|
props.push({
|
|
7601
7599
|
'data-storage': {
|
|
7602
7600
|
column: column,
|
|
@@ -7641,12 +7639,12 @@ class KupColumnMenu {
|
|
|
7641
7639
|
return props;
|
|
7642
7640
|
}
|
|
7643
7641
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
7644
|
-
let initialValueFrom = interval[
|
|
7645
|
-
let initialValueTo = interval[
|
|
7642
|
+
let initialValueFrom = interval[kupManager.FilterInterval.FROM];
|
|
7643
|
+
let initialValueTo = interval[kupManager.FilterInterval.TO];
|
|
7646
7644
|
props.push({
|
|
7647
7645
|
'data-storage': {
|
|
7648
7646
|
column: column,
|
|
7649
|
-
intervalIndex:
|
|
7647
|
+
intervalIndex: kupManager.FilterInterval.FROM,
|
|
7650
7648
|
isInterval: true,
|
|
7651
7649
|
},
|
|
7652
7650
|
fullWidth: true,
|
|
@@ -7661,7 +7659,7 @@ class KupColumnMenu {
|
|
|
7661
7659
|
props.push({
|
|
7662
7660
|
'data-storage': {
|
|
7663
7661
|
column: column,
|
|
7664
|
-
intervalIndex:
|
|
7662
|
+
intervalIndex: kupManager.FilterInterval.TO,
|
|
7665
7663
|
isInterval: true,
|
|
7666
7664
|
},
|
|
7667
7665
|
fullWidth: true,
|
|
@@ -7690,12 +7688,12 @@ class KupColumnMenu {
|
|
|
7690
7688
|
return props;
|
|
7691
7689
|
}
|
|
7692
7690
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
7693
|
-
let initialValueFrom = interval[
|
|
7694
|
-
let initialValueTo = interval[
|
|
7691
|
+
let initialValueFrom = interval[kupManager.FilterInterval.FROM];
|
|
7692
|
+
let initialValueTo = interval[kupManager.FilterInterval.TO];
|
|
7695
7693
|
props.push({
|
|
7696
7694
|
'data-storage': {
|
|
7697
7695
|
column: column,
|
|
7698
|
-
intervalIndex:
|
|
7696
|
+
intervalIndex: kupManager.FilterInterval.FROM,
|
|
7699
7697
|
isInterval: true,
|
|
7700
7698
|
},
|
|
7701
7699
|
data: {
|
|
@@ -7713,7 +7711,7 @@ class KupColumnMenu {
|
|
|
7713
7711
|
props.push({
|
|
7714
7712
|
'data-storage': {
|
|
7715
7713
|
column: column,
|
|
7716
|
-
intervalIndex:
|
|
7714
|
+
intervalIndex: kupManager.FilterInterval.TO,
|
|
7717
7715
|
isInterval: true,
|
|
7718
7716
|
},
|
|
7719
7717
|
data: {
|
|
@@ -7746,8 +7744,8 @@ class KupColumnMenu {
|
|
|
7746
7744
|
return props;
|
|
7747
7745
|
}
|
|
7748
7746
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
7749
|
-
let initialValueFrom = interval[
|
|
7750
|
-
let initialValueTo = interval[
|
|
7747
|
+
let initialValueFrom = interval[kupManager.FilterInterval.FROM];
|
|
7748
|
+
let initialValueTo = interval[kupManager.FilterInterval.TO];
|
|
7751
7749
|
let suffixFrom = null;
|
|
7752
7750
|
let suffixTo = null;
|
|
7753
7751
|
if (dom.ketchup.objects.isTimestamp(column.obj)) {
|
|
@@ -7770,7 +7768,7 @@ class KupColumnMenu {
|
|
|
7770
7768
|
'data-storage': {
|
|
7771
7769
|
column: column,
|
|
7772
7770
|
suffix: suffixFrom,
|
|
7773
|
-
intervalIndex:
|
|
7771
|
+
intervalIndex: kupManager.FilterInterval.FROM,
|
|
7774
7772
|
isInterval: true,
|
|
7775
7773
|
},
|
|
7776
7774
|
data: {
|
|
@@ -7788,7 +7786,7 @@ class KupColumnMenu {
|
|
|
7788
7786
|
'data-storage': {
|
|
7789
7787
|
column: column,
|
|
7790
7788
|
suffix: suffixTo,
|
|
7791
|
-
intervalIndex:
|
|
7789
|
+
intervalIndex: kupManager.FilterInterval.TO,
|
|
7792
7790
|
isInterval: true,
|
|
7793
7791
|
},
|
|
7794
7792
|
data: {
|
|
@@ -8539,7 +8537,7 @@ const KupDataTable = class {
|
|
|
8539
8537
|
}
|
|
8540
8538
|
}
|
|
8541
8539
|
identifyAndInitRows() {
|
|
8542
|
-
|
|
8540
|
+
kupManager.identify(this.getRows());
|
|
8543
8541
|
this.expandGroupsHandler();
|
|
8544
8542
|
this.resetSelectedRows();
|
|
8545
8543
|
}
|
|
@@ -8604,7 +8602,7 @@ const KupDataTable = class {
|
|
|
8604
8602
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
8605
8603
|
*/
|
|
8606
8604
|
async getProps(descriptions) {
|
|
8607
|
-
return
|
|
8605
|
+
return kupManager.getProps(this, kupManager.KupDataTableProps, descriptions);
|
|
8608
8606
|
}
|
|
8609
8607
|
/**
|
|
8610
8608
|
* This method will get the selected rows of the component.
|
|
@@ -8672,7 +8670,7 @@ const KupDataTable = class {
|
|
|
8672
8670
|
});
|
|
8673
8671
|
}
|
|
8674
8672
|
this.columnMenuCard.setAttribute('data-column', column);
|
|
8675
|
-
this.columnMenuCard.data = this.columnMenuInstance.prepData(this,
|
|
8673
|
+
this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), column));
|
|
8676
8674
|
this.columnMenuInstance.open(this, column);
|
|
8677
8675
|
this.columnMenuInstance.reposition(this, this.columnMenuCard);
|
|
8678
8676
|
this.kupDataTableColumnMenu.emit({
|
|
@@ -8730,7 +8728,7 @@ const KupDataTable = class {
|
|
|
8730
8728
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
8731
8729
|
*/
|
|
8732
8730
|
async setProps(props) {
|
|
8733
|
-
|
|
8731
|
+
kupManager.setProps(this, kupManager.KupDataTableProps, props);
|
|
8734
8732
|
}
|
|
8735
8733
|
/**
|
|
8736
8734
|
* This method will set the selected rows of the component.
|
|
@@ -9108,7 +9106,7 @@ const KupDataTable = class {
|
|
|
9108
9106
|
}, null, {
|
|
9109
9107
|
drop: (e) => {
|
|
9110
9108
|
const draggedTh = e.relatedTarget;
|
|
9111
|
-
const grouped =
|
|
9109
|
+
const grouped = kupManager.getColumnByName(this.getColumns(), draggedTh.dataset.column);
|
|
9112
9110
|
this.handleColumnGroup(grouped);
|
|
9113
9111
|
this.tableRef.removeAttribute(kupManager.kupDragActiveAttr);
|
|
9114
9112
|
},
|
|
@@ -9123,7 +9121,7 @@ const KupDataTable = class {
|
|
|
9123
9121
|
}, null, {
|
|
9124
9122
|
drop: (e) => {
|
|
9125
9123
|
const draggedTh = e.relatedTarget;
|
|
9126
|
-
const deleted =
|
|
9124
|
+
const deleted = kupManager.getColumnByName(this.getColumns(), draggedTh.dataset.column);
|
|
9127
9125
|
this.hideColumn(deleted);
|
|
9128
9126
|
this.tableRef.removeAttribute(kupManager.kupDragActiveAttr);
|
|
9129
9127
|
},
|
|
@@ -9137,7 +9135,7 @@ const KupDataTable = class {
|
|
|
9137
9135
|
const draggable = e.target;
|
|
9138
9136
|
return {
|
|
9139
9137
|
cell: null,
|
|
9140
|
-
column:
|
|
9138
|
+
column: kupManager.getColumnByName(this.getVisibleColumns(), draggable.dataset.column),
|
|
9141
9139
|
id: this.rootElement.id,
|
|
9142
9140
|
multiple: !!(this.selection === kupManager.SelectionMode.MULTIPLE ||
|
|
9143
9141
|
this.selection === kupManager.SelectionMode.MULTIPLE_CHECKBOX),
|
|
@@ -9154,7 +9152,7 @@ const KupDataTable = class {
|
|
|
9154
9152
|
!this.enableMergeColumns);
|
|
9155
9153
|
const draggable = e.relatedTarget;
|
|
9156
9154
|
const starter = draggable.kupDragDrop.column;
|
|
9157
|
-
const receiving =
|
|
9155
|
+
const receiving = kupManager.getColumnByName(this.getColumns(), e.target.dataset.column);
|
|
9158
9156
|
this.columnDropCardAnchor = e.target;
|
|
9159
9157
|
if (receiving && starter) {
|
|
9160
9158
|
if (onlySort) {
|
|
@@ -9205,7 +9203,7 @@ const KupDataTable = class {
|
|
|
9205
9203
|
}
|
|
9206
9204
|
if (this.resizableColumns) {
|
|
9207
9205
|
const moveCb = (e) => {
|
|
9208
|
-
const column =
|
|
9206
|
+
const column = kupManager.getColumnByName(this.getVisibleColumns(), e.target.dataset.column);
|
|
9209
9207
|
column.size = e.rect.width + 'px';
|
|
9210
9208
|
this.refresh();
|
|
9211
9209
|
};
|
|
@@ -9236,7 +9234,7 @@ const KupDataTable = class {
|
|
|
9236
9234
|
const cellEl = this.rootElement.shadowRoot.querySelector('td:hover');
|
|
9237
9235
|
return {
|
|
9238
9236
|
cell: cellEl['data-cell'],
|
|
9239
|
-
column:
|
|
9237
|
+
column: kupManager.getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
|
|
9240
9238
|
id: this.rootElement.id,
|
|
9241
9239
|
multiple: !!(this.selection === kupManager.SelectionMode.MULTIPLE ||
|
|
9242
9240
|
this.selection === kupManager.SelectionMode.MULTIPLE_CHECKBOX),
|
|
@@ -9358,7 +9356,7 @@ const KupDataTable = class {
|
|
|
9358
9356
|
setDynPosElements() {
|
|
9359
9357
|
// Column menu
|
|
9360
9358
|
if (this.columnMenuCard && this.columnMenuCard.data) {
|
|
9361
|
-
this.columnMenuCard.data = this.columnMenuInstance.prepData(this,
|
|
9359
|
+
this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
|
|
9362
9360
|
}
|
|
9363
9361
|
}
|
|
9364
9362
|
//---- Lifecycle hooks ----
|
|
@@ -9383,7 +9381,7 @@ const KupDataTable = class {
|
|
|
9383
9381
|
this.currentRowsPerPage = this.rowsPerPage;
|
|
9384
9382
|
this.isRestoringState = false;
|
|
9385
9383
|
//this.identifyAndInitRows();
|
|
9386
|
-
|
|
9384
|
+
kupManager.identify(this.getRows());
|
|
9387
9385
|
this.expandGroupsHandler();
|
|
9388
9386
|
if (document.querySelectorAll('.header')[0]) {
|
|
9389
9387
|
this.navBarHeight =
|
|
@@ -9713,7 +9711,7 @@ const KupDataTable = class {
|
|
|
9713
9711
|
? th.dataset.column
|
|
9714
9712
|
: null;
|
|
9715
9713
|
if (columnName) {
|
|
9716
|
-
column =
|
|
9714
|
+
column = kupManager.getColumnByName(this.getColumns(), columnName);
|
|
9717
9715
|
}
|
|
9718
9716
|
}
|
|
9719
9717
|
return {
|
|
@@ -10704,7 +10702,7 @@ const KupDataTable = class {
|
|
|
10704
10702
|
}
|
|
10705
10703
|
}
|
|
10706
10704
|
else {
|
|
10707
|
-
value =
|
|
10705
|
+
value = kupManager.numberToFormattedStringNumber(footerValue, column.decimals, column.obj ? column.obj.p : '');
|
|
10708
10706
|
}
|
|
10709
10707
|
return (index.h("td", { "data-column": column.name, class: fixedCellStyle && fixedCellStyle.fixedCellClasses
|
|
10710
10708
|
? fixedCellStyle.fixedCellClasses
|
|
@@ -10783,7 +10781,7 @@ const KupDataTable = class {
|
|
|
10783
10781
|
}
|
|
10784
10782
|
}
|
|
10785
10783
|
else {
|
|
10786
|
-
value =
|
|
10784
|
+
value = kupManager.numberToFormattedStringNumber(totalValue, column.decimals, column.obj ? column.obj.p : '');
|
|
10787
10785
|
}
|
|
10788
10786
|
}
|
|
10789
10787
|
cells.push(index.h("td", { class: totalClass }, value));
|
|
@@ -11294,7 +11292,7 @@ const KupDataTable = class {
|
|
|
11294
11292
|
const chipsData = [];
|
|
11295
11293
|
for (let index = 0; index < this.groups.length; index++) {
|
|
11296
11294
|
const group = this.groups[index];
|
|
11297
|
-
const column =
|
|
11295
|
+
const column = kupManager.getColumnByName(this.getColumns(), group.column);
|
|
11298
11296
|
if (column) {
|
|
11299
11297
|
chipsData.push({
|
|
11300
11298
|
value: column.title,
|
|
@@ -12042,7 +12040,7 @@ const KupDropdownButton = class {
|
|
|
12042
12040
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
12043
12041
|
*/
|
|
12044
12042
|
async getProps(descriptions) {
|
|
12045
|
-
return
|
|
12043
|
+
return kupManager.getProps(this, KupDropdownButtonProps, descriptions);
|
|
12046
12044
|
}
|
|
12047
12045
|
/**
|
|
12048
12046
|
* Returns the component's internal value.
|
|
@@ -12061,7 +12059,7 @@ const KupDropdownButton = class {
|
|
|
12061
12059
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
12062
12060
|
*/
|
|
12063
12061
|
async setProps(props) {
|
|
12064
|
-
|
|
12062
|
+
kupManager.setProps(this, KupDropdownButtonProps, props);
|
|
12065
12063
|
}
|
|
12066
12064
|
/**
|
|
12067
12065
|
* Sets the internal value of the component.
|
|
@@ -12755,7 +12753,7 @@ const KupGauge = class {
|
|
|
12755
12753
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
12756
12754
|
*/
|
|
12757
12755
|
async getProps(descriptions) {
|
|
12758
|
-
return
|
|
12756
|
+
return kupManager.getProps(this, KupGaugeProps, descriptions);
|
|
12759
12757
|
}
|
|
12760
12758
|
/**
|
|
12761
12759
|
* This method is used to trigger a new render of the component.
|
|
@@ -12768,7 +12766,7 @@ const KupGauge = class {
|
|
|
12768
12766
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
12769
12767
|
*/
|
|
12770
12768
|
async setProps(props) {
|
|
12771
|
-
|
|
12769
|
+
kupManager.setProps(this, KupGaugeProps, props);
|
|
12772
12770
|
}
|
|
12773
12771
|
/*-------------------------------------------------*/
|
|
12774
12772
|
/* P r i v a t e M e t h o d s */
|
|
@@ -12971,7 +12969,7 @@ const KupGauge = class {
|
|
|
12971
12969
|
let retValue = '';
|
|
12972
12970
|
if (thresholdPercentage > 0 && thresholdPercentage < 1) {
|
|
12973
12971
|
if (this.showLabels && !this.onlyValue) {
|
|
12974
|
-
retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY },
|
|
12972
|
+
retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, kupManager.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
|
|
12975
12973
|
}
|
|
12976
12974
|
}
|
|
12977
12975
|
else {
|
|
@@ -12984,7 +12982,7 @@ const KupGauge = class {
|
|
|
12984
12982
|
topX = this.size - this.arcThickness;
|
|
12985
12983
|
topY = halvedSize + this.labelDistance;
|
|
12986
12984
|
}
|
|
12987
|
-
retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY },
|
|
12985
|
+
retValue = (index.h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, kupManager.unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
|
|
12988
12986
|
}
|
|
12989
12987
|
}
|
|
12990
12988
|
return retValue;
|
|
@@ -12993,7 +12991,7 @@ const KupGauge = class {
|
|
|
12993
12991
|
const style = { fontSize: this.calculateValueFontSize() };
|
|
12994
12992
|
let valueText = undefined;
|
|
12995
12993
|
if (this.showValue) {
|
|
12996
|
-
valueText = (index.h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style },
|
|
12994
|
+
valueText = (index.h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, kupManager.unformattedStringToFormattedStringNumber(String(tempValue), -1, '') +
|
|
12997
12995
|
' ' +
|
|
12998
12996
|
this.measurementUnit));
|
|
12999
12997
|
}
|
|
@@ -13523,7 +13521,7 @@ const KupImage = class {
|
|
|
13523
13521
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
13524
13522
|
*/
|
|
13525
13523
|
async getProps(descriptions) {
|
|
13526
|
-
return
|
|
13524
|
+
return kupManager.getProps(this, KupImageProps, descriptions);
|
|
13527
13525
|
}
|
|
13528
13526
|
/**
|
|
13529
13527
|
* This method is used to trigger a new render of the component.
|
|
@@ -13536,7 +13534,7 @@ const KupImage = class {
|
|
|
13536
13534
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
13537
13535
|
*/
|
|
13538
13536
|
async setProps(props) {
|
|
13539
|
-
|
|
13537
|
+
kupManager.setProps(this, KupImageProps, props);
|
|
13540
13538
|
}
|
|
13541
13539
|
/*-------------------------------------------------*/
|
|
13542
13540
|
/* P r i v a t e M e t h o d s */
|
|
@@ -13835,7 +13833,7 @@ const KupList = class {
|
|
|
13835
13833
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
13836
13834
|
*/
|
|
13837
13835
|
async getProps(descriptions) {
|
|
13838
|
-
return
|
|
13836
|
+
return kupManager.getProps(this, KupListProps, descriptions);
|
|
13839
13837
|
}
|
|
13840
13838
|
/**
|
|
13841
13839
|
* This method is used to trigger a new render of the component.
|
|
@@ -13858,7 +13856,7 @@ const KupList = class {
|
|
|
13858
13856
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
13859
13857
|
*/
|
|
13860
13858
|
async setProps(props) {
|
|
13861
|
-
|
|
13859
|
+
kupManager.setProps(this, KupListProps, props);
|
|
13862
13860
|
}
|
|
13863
13861
|
/*-------------------------------------------------*/
|
|
13864
13862
|
/* L i f e c y c l e H o o k s */
|
|
@@ -14177,7 +14175,7 @@ const KupProgressBar = class {
|
|
|
14177
14175
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
14178
14176
|
*/
|
|
14179
14177
|
async getProps(descriptions) {
|
|
14180
|
-
return
|
|
14178
|
+
return kupManager.getProps(this, KupProgressBarProps, descriptions);
|
|
14181
14179
|
}
|
|
14182
14180
|
/**
|
|
14183
14181
|
* This method is used to trigger a new render of the component.
|
|
@@ -14190,7 +14188,7 @@ const KupProgressBar = class {
|
|
|
14190
14188
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
14191
14189
|
*/
|
|
14192
14190
|
async setProps(props) {
|
|
14193
|
-
|
|
14191
|
+
kupManager.setProps(this, KupProgressBarProps, props);
|
|
14194
14192
|
}
|
|
14195
14193
|
/*-------------------------------------------------*/
|
|
14196
14194
|
/* P r i v a t e M e t h o d s */
|
|
@@ -14410,7 +14408,7 @@ const KupRadio = class {
|
|
|
14410
14408
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
14411
14409
|
*/
|
|
14412
14410
|
async getProps(descriptions) {
|
|
14413
|
-
return
|
|
14411
|
+
return kupManager.getProps(this, KupRadioProps, descriptions);
|
|
14414
14412
|
}
|
|
14415
14413
|
/**
|
|
14416
14414
|
* This method is used to trigger a new render of the component.
|
|
@@ -14423,7 +14421,7 @@ const KupRadio = class {
|
|
|
14423
14421
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
14424
14422
|
*/
|
|
14425
14423
|
async setProps(props) {
|
|
14426
|
-
|
|
14424
|
+
kupManager.setProps(this, KupRadioProps, props);
|
|
14427
14425
|
}
|
|
14428
14426
|
/*-------------------------------------------------*/
|
|
14429
14427
|
/* L i f e c y c l e H o o k s */
|
|
@@ -14555,7 +14553,7 @@ const KupRating = class {
|
|
|
14555
14553
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
14556
14554
|
*/
|
|
14557
14555
|
async getProps(descriptions) {
|
|
14558
|
-
return
|
|
14556
|
+
return kupManager.getProps(this, KupRatingProps, descriptions);
|
|
14559
14557
|
}
|
|
14560
14558
|
/**
|
|
14561
14559
|
* This method is used to trigger a new render of the component.
|
|
@@ -14568,7 +14566,7 @@ const KupRating = class {
|
|
|
14568
14566
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
14569
14567
|
*/
|
|
14570
14568
|
async setProps(props) {
|
|
14571
|
-
|
|
14569
|
+
kupManager.setProps(this, KupRatingProps, props);
|
|
14572
14570
|
}
|
|
14573
14571
|
/*-------------------------------------------------*/
|
|
14574
14572
|
/* P r i v a t e M e t h o d s */
|
|
@@ -14709,7 +14707,7 @@ const KupSpinner = class {
|
|
|
14709
14707
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
14710
14708
|
*/
|
|
14711
14709
|
async getProps(descriptions) {
|
|
14712
|
-
return
|
|
14710
|
+
return kupManager.getProps(this, KupSpinnerProps, descriptions);
|
|
14713
14711
|
}
|
|
14714
14712
|
/**
|
|
14715
14713
|
* This method is used to trigger a new render of the component.
|
|
@@ -14722,7 +14720,7 @@ const KupSpinner = class {
|
|
|
14722
14720
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
14723
14721
|
*/
|
|
14724
14722
|
async setProps(props) {
|
|
14725
|
-
|
|
14723
|
+
kupManager.setProps(this, KupSpinnerProps, props);
|
|
14726
14724
|
}
|
|
14727
14725
|
/*-------------------------------------------------*/
|
|
14728
14726
|
/* L i f e c y c l e H o o k s */
|
|
@@ -14960,7 +14958,7 @@ const KupSwitch = class {
|
|
|
14960
14958
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
14961
14959
|
*/
|
|
14962
14960
|
async getProps(descriptions) {
|
|
14963
|
-
return
|
|
14961
|
+
return kupManager.getProps(this, KupSwitchProps, descriptions);
|
|
14964
14962
|
}
|
|
14965
14963
|
/**
|
|
14966
14964
|
* This method is used to trigger a new render of the component.
|
|
@@ -14973,7 +14971,7 @@ const KupSwitch = class {
|
|
|
14973
14971
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
14974
14972
|
*/
|
|
14975
14973
|
async setProps(props) {
|
|
14976
|
-
|
|
14974
|
+
kupManager.setProps(this, KupSwitchProps, props);
|
|
14977
14975
|
}
|
|
14978
14976
|
/*-------------------------------------------------*/
|
|
14979
14977
|
/* L i f e c y c l e H o o k s */
|
|
@@ -15137,7 +15135,7 @@ const KupTabBar = class {
|
|
|
15137
15135
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
15138
15136
|
*/
|
|
15139
15137
|
async getProps(descriptions) {
|
|
15140
|
-
return
|
|
15138
|
+
return kupManager.getProps(this, KupTabBarProps, descriptions);
|
|
15141
15139
|
}
|
|
15142
15140
|
/**
|
|
15143
15141
|
* This method is used to trigger a new render of the component.
|
|
@@ -15150,7 +15148,7 @@ const KupTabBar = class {
|
|
|
15150
15148
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
15151
15149
|
*/
|
|
15152
15150
|
async setProps(props) {
|
|
15153
|
-
|
|
15151
|
+
kupManager.setProps(this, KupTabBarProps, props);
|
|
15154
15152
|
}
|
|
15155
15153
|
/*-------------------------------------------------*/
|
|
15156
15154
|
/* P r i v a t e M e t h o d s */
|
|
@@ -15236,6 +15234,7 @@ KupTabBar.style = kupTabBarCss;
|
|
|
15236
15234
|
var KupTextFieldProps;
|
|
15237
15235
|
(function (KupTextFieldProps) {
|
|
15238
15236
|
KupTextFieldProps["customStyle"] = "Custom style of the component.";
|
|
15237
|
+
KupTextFieldProps["decimals"] = "Number of decimals (should be used when inputType is number).";
|
|
15239
15238
|
KupTextFieldProps["disabled"] = "When set to true, the component is disabled.";
|
|
15240
15239
|
KupTextFieldProps["emitSubmitEventOnEnter"] = "When the text field is part of the autocomplete component and the list is opened, enter key selects the item and doesn't submit.";
|
|
15241
15240
|
KupTextFieldProps["fullWidth"] = "When set to true, the component will be rendered at full width.";
|
|
@@ -15290,6 +15289,11 @@ const KupTextField = class {
|
|
|
15290
15289
|
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
15291
15290
|
*/
|
|
15292
15291
|
this.customStyle = '';
|
|
15292
|
+
/**
|
|
15293
|
+
* Number of decimals (should be used when inputType is number).
|
|
15294
|
+
* @default null
|
|
15295
|
+
*/
|
|
15296
|
+
this.decimals = null;
|
|
15293
15297
|
/**
|
|
15294
15298
|
* When set to true, the component is disabled.
|
|
15295
15299
|
* @default false
|
|
@@ -15484,7 +15488,7 @@ const KupTextField = class {
|
|
|
15484
15488
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
15485
15489
|
*/
|
|
15486
15490
|
async getProps(descriptions) {
|
|
15487
|
-
return
|
|
15491
|
+
return kupManager.getProps(this, KupTextFieldProps, descriptions);
|
|
15488
15492
|
}
|
|
15489
15493
|
/**
|
|
15490
15494
|
* Returns the component's internal value.
|
|
@@ -15509,7 +15513,7 @@ const KupTextField = class {
|
|
|
15509
15513
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
15510
15514
|
*/
|
|
15511
15515
|
async setProps(props) {
|
|
15512
|
-
|
|
15516
|
+
kupManager.setProps(this, KupTextFieldProps, props);
|
|
15513
15517
|
}
|
|
15514
15518
|
/**
|
|
15515
15519
|
* Sets the internal value of the component.
|
|
@@ -15556,6 +15560,7 @@ const KupTextField = class {
|
|
|
15556
15560
|
danger: this.rootElement.classList.contains('kup-danger')
|
|
15557
15561
|
? true
|
|
15558
15562
|
: false,
|
|
15563
|
+
decimals: this.decimals,
|
|
15559
15564
|
disabled: this.disabled,
|
|
15560
15565
|
fullHeight: this.rootElement.classList.contains('kup-full-height')
|
|
15561
15566
|
? true
|
|
@@ -15820,7 +15825,7 @@ const KupTimePicker = class {
|
|
|
15820
15825
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
15821
15826
|
*/
|
|
15822
15827
|
async getProps(descriptions) {
|
|
15823
|
-
return
|
|
15828
|
+
return kupManager.getProps(this, KupTimePickerProps, descriptions);
|
|
15824
15829
|
}
|
|
15825
15830
|
/**
|
|
15826
15831
|
* Returns the component's internal value.
|
|
@@ -15847,7 +15852,7 @@ const KupTimePicker = class {
|
|
|
15847
15852
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
15848
15853
|
*/
|
|
15849
15854
|
async setProps(props) {
|
|
15850
|
-
|
|
15855
|
+
kupManager.setProps(this, KupTimePickerProps, props);
|
|
15851
15856
|
}
|
|
15852
15857
|
/**
|
|
15853
15858
|
* Sets the internal value of the component.
|
|
@@ -15859,13 +15864,13 @@ const KupTimePicker = class {
|
|
|
15859
15864
|
/* P r i v a t e M e t h o d s */
|
|
15860
15865
|
/*-------------------------------------------------*/
|
|
15861
15866
|
getFormattedValue(value) {
|
|
15862
|
-
return
|
|
15867
|
+
return kupManager.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
|
|
15863
15868
|
? kupManager.KupDatesFormats.ISO_TIME
|
|
15864
15869
|
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
|
|
15865
15870
|
}
|
|
15866
15871
|
refreshPickerValue(eventDetailValue, eventToRaise) {
|
|
15867
15872
|
let newValue = null;
|
|
15868
|
-
if (
|
|
15873
|
+
if (kupManager.isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
|
|
15869
15874
|
this.value = eventDetailValue;
|
|
15870
15875
|
newValue = this.value;
|
|
15871
15876
|
}
|
|
@@ -16015,8 +16020,8 @@ const KupTimePicker = class {
|
|
|
16015
16020
|
date.getMinutes() == selectedTime.getMinutes()) {
|
|
16016
16021
|
selected = true;
|
|
16017
16022
|
}
|
|
16018
|
-
const value =
|
|
16019
|
-
const id =
|
|
16023
|
+
const value = kupManager.formatTime(date, this.manageSeconds);
|
|
16024
|
+
const id = kupManager.formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
|
|
16020
16025
|
? kupManager.KupDatesFormats.ISO_TIME
|
|
16021
16026
|
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
|
|
16022
16027
|
let item = {
|
|
@@ -16033,7 +16038,7 @@ const KupTimePicker = class {
|
|
|
16033
16038
|
if (this.value == null || this.value.trim() == '') {
|
|
16034
16039
|
return '';
|
|
16035
16040
|
}
|
|
16036
|
-
let v1 =
|
|
16041
|
+
let v1 = kupManager.unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
|
|
16037
16042
|
return v1;
|
|
16038
16043
|
}
|
|
16039
16044
|
/*-------------------------------------------------*/
|
|
@@ -16183,7 +16188,7 @@ class FiltersTreeItems extends fPaginatorUtils.FiltersRows {
|
|
|
16183
16188
|
value: node.value,
|
|
16184
16189
|
};
|
|
16185
16190
|
if (node.visible) {
|
|
16186
|
-
|
|
16191
|
+
kupManager.addColumnValueFromRow(values, column, cellsHolder[column.name]);
|
|
16187
16192
|
this.extractColumnValues(node.children, column, values);
|
|
16188
16193
|
}
|
|
16189
16194
|
});
|
|
@@ -16315,7 +16320,7 @@ const KupTree = class {
|
|
|
16315
16320
|
/**
|
|
16316
16321
|
* The mode of the global filter (default SIMPLE)
|
|
16317
16322
|
*/
|
|
16318
|
-
this.globalFilterMode =
|
|
16323
|
+
this.globalFilterMode = kupManager.KupGlobalFilterMode.SIMPLE;
|
|
16319
16324
|
/**
|
|
16320
16325
|
* Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells.
|
|
16321
16326
|
* It works only on cells of the main column.
|
|
@@ -16540,7 +16545,7 @@ const KupTree = class {
|
|
|
16540
16545
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
16541
16546
|
*/
|
|
16542
16547
|
async getProps(descriptions) {
|
|
16543
|
-
return
|
|
16548
|
+
return kupManager.getProps(this, fPaginatorUtils.KupTreeProps, descriptions);
|
|
16544
16549
|
}
|
|
16545
16550
|
/**
|
|
16546
16551
|
* Hides the given column.
|
|
@@ -16588,7 +16593,7 @@ const KupTree = class {
|
|
|
16588
16593
|
});
|
|
16589
16594
|
}
|
|
16590
16595
|
this.columnMenuCard.setAttribute('data-column', column);
|
|
16591
|
-
this.columnMenuCard.data = this.columnMenuInstance.prepData(this,
|
|
16596
|
+
this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), column));
|
|
16592
16597
|
this.columnMenuInstance.open(this, column);
|
|
16593
16598
|
this.columnMenuInstance.reposition(this, this.columnMenuCard);
|
|
16594
16599
|
this.kupTreeColumnMenu.emit({
|
|
@@ -16619,7 +16624,7 @@ const KupTree = class {
|
|
|
16619
16624
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
16620
16625
|
*/
|
|
16621
16626
|
async setProps(props) {
|
|
16622
|
-
|
|
16627
|
+
kupManager.setProps(this, fPaginatorUtils.KupTreeProps, props);
|
|
16623
16628
|
}
|
|
16624
16629
|
/*-------------------------------------------------*/
|
|
16625
16630
|
/* P r i v a t e M e t h o d s */
|
|
@@ -16686,7 +16691,7 @@ const KupTree = class {
|
|
|
16686
16691
|
setDynPosElements() {
|
|
16687
16692
|
// Column menu
|
|
16688
16693
|
if (this.columnMenuCard && this.columnMenuCard.data) {
|
|
16689
|
-
this.columnMenuCard.data = this.columnMenuInstance.prepData(this,
|
|
16694
|
+
this.columnMenuCard.data = this.columnMenuInstance.prepData(this, kupManager.getColumnByName(this.getVisibleColumns(), this.columnMenuAnchor), this.columnMenuCard.data);
|
|
16690
16695
|
}
|
|
16691
16696
|
}
|
|
16692
16697
|
expandCollapseNode(treeNode, expandNode = false) {
|
|
@@ -16811,7 +16816,7 @@ const KupTree = class {
|
|
|
16811
16816
|
? th.dataset.column
|
|
16812
16817
|
: null;
|
|
16813
16818
|
if (columnName) {
|
|
16814
|
-
column =
|
|
16819
|
+
column = kupManager.getColumnByName(this.getColumns(), columnName);
|
|
16815
16820
|
}
|
|
16816
16821
|
}
|
|
16817
16822
|
return {
|
|
@@ -17279,7 +17284,7 @@ const KupTree = class {
|
|
|
17279
17284
|
let treeNodeCell = null;
|
|
17280
17285
|
if (this.isTreeColumnVisible()) {
|
|
17281
17286
|
let content = '';
|
|
17282
|
-
if (
|
|
17287
|
+
if (kupManager.KupGlobalFilterMode.HIGHLIGHT === this.globalFilterMode) {
|
|
17283
17288
|
content = this.renderHighlightedContent(treeNodeData.value, this.globalFilterValue, 'cell-content');
|
|
17284
17289
|
}
|
|
17285
17290
|
else {
|
|
@@ -17425,7 +17430,7 @@ const KupTree = class {
|
|
|
17425
17430
|
value = this.footer[column.name];
|
|
17426
17431
|
}
|
|
17427
17432
|
else {
|
|
17428
|
-
value =
|
|
17433
|
+
value = kupManager.numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
|
|
17429
17434
|
}
|
|
17430
17435
|
return (index.h("td", { "data-column": column.name }, totalMenu, index.h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
|
|
17431
17436
|
});
|