@sme.up/ketchup 11.0.0-SNAPSHOT-20241217103126 → 11.0.0-SNAPSHOT-20241217103457
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-cell-752a5bc4.js → f-cell-732263b0.js} +16 -16
- package/dist/cjs/{f-chip-0342fdc1.js → f-chip-238c78d1.js} +1 -1
- package/dist/cjs/{f-object-field-74179ab4.js → f-object-field-8bca23a7.js} +2 -2
- package/dist/cjs/{f-paginator-utils-db5e6e08.js → f-paginator-utils-be634c3c.js} +1 -1
- package/dist/cjs/{f-text-field-ed89e4d2.js → f-text-field-b5a51398.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js +142 -175
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-d6d793fc.js → kup-data-table-helper-07df1b41.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +5 -5
- package/dist/cjs/kup-input-panel.cjs.entry.js +43 -198
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-4e75f704.js → kup-manager-f5ccf3d0.js} +1 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +97 -70
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +38 -193
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
- package/dist/collection/f-components/f-cell/f-cell.js +12 -12
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +2 -2
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +41 -196
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-pdf.js +2 -2
- package/dist/components/kup-photo-frame.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- 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-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-3bed44d4.js → p-248b85c1.js} +2 -2
- package/dist/components/{p-b96e265d.js → p-3bf643ae.js} +2 -2
- package/dist/components/{p-83a86ca8.js → p-5c82ed77.js} +2 -2
- package/dist/components/{p-f22fb696.js → p-5ee0b3dc.js} +223 -256
- package/dist/components/{p-14aad914.js → p-8138bfb7.js} +1 -0
- package/dist/components/{p-e2f1b5d3.js → p-b31cf6a0.js} +2 -2
- package/dist/esm/{f-cell-07fa16b7.js → f-cell-b6871cf3.js} +16 -16
- package/dist/esm/{f-chip-70a06610.js → f-chip-ba9a3748.js} +1 -1
- package/dist/esm/{f-object-field-4f6d8bb7.js → f-object-field-e76b1e59.js} +2 -2
- package/dist/esm/{f-paginator-utils-17f01722.js → f-paginator-utils-54e4b908.js} +1 -1
- package/dist/esm/{f-text-field-3521b89f.js → f-text-field-48beba2c.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_28.entry.js +142 -175
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-d85d607a.js → kup-data-table-helper-c2ac5163.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +5 -5
- package/dist/esm/kup-input-panel.entry.js +43 -198
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-02418eff.js → kup-manager-02d449a3.js} +2 -1
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-8f6b99d1.entry.js → p-004e0b2c.entry.js} +1 -1
- package/dist/ketchup/{p-a34e3c9a.entry.js → p-0ee306a5.entry.js} +1 -1
- package/dist/ketchup/p-16a65a92.js +1 -0
- package/dist/ketchup/{p-bd8c59be.js → p-2ca239c5.js} +1 -1
- package/dist/ketchup/{p-8cfb1c3c.entry.js → p-32beb39d.entry.js} +1 -1
- package/dist/ketchup/{p-b4bf8262.entry.js → p-43bdc189.entry.js} +1 -1
- package/dist/ketchup/{p-100b68f9.entry.js → p-4c23dfc6.entry.js} +1 -1
- package/dist/ketchup/{p-87c116ed.entry.js → p-4ce1c468.entry.js} +1 -1
- package/dist/ketchup/{p-200fee46.entry.js → p-597facc7.entry.js} +1 -1
- package/dist/ketchup/{p-00969f5a.entry.js → p-5fbe73fa.entry.js} +1 -1
- package/dist/ketchup/{p-c9961dde.entry.js → p-63ac7b9d.entry.js} +1 -1
- package/dist/ketchup/{p-ccb446a9.entry.js → p-6a6887c2.entry.js} +1 -1
- package/dist/ketchup/{p-fc32246e.entry.js → p-6aef8eca.entry.js} +1 -1
- package/dist/ketchup/{p-92daefa6.entry.js → p-72148698.entry.js} +1 -1
- package/dist/ketchup/{p-df467d12.entry.js → p-75ed372c.entry.js} +1 -1
- package/dist/ketchup/p-76d0aeb9.entry.js +9 -0
- package/dist/ketchup/{p-f63e26e4.entry.js → p-808a7ffa.entry.js} +1 -1
- package/dist/ketchup/{p-d2732f45.entry.js → p-85512014.entry.js} +1 -1
- package/dist/ketchup/{p-b640b0d3.js → p-927aa746.js} +2 -2
- package/dist/ketchup/{p-f11b1064.js → p-9a33082b.js} +1 -1
- package/dist/ketchup/{p-9f7826b8.entry.js → p-9cdfce9d.entry.js} +1 -1
- package/dist/ketchup/{p-2e8b266e.entry.js → p-a4ac2d83.entry.js} +1 -1
- package/dist/ketchup/{p-24e66646.entry.js → p-a9738796.entry.js} +1 -1
- package/dist/ketchup/{p-c51aca8b.entry.js → p-bdf12dc3.entry.js} +1 -1
- package/dist/ketchup/{p-1339b77a.entry.js → p-c10caeed.entry.js} +1 -1
- package/dist/ketchup/{p-b6fa890b.entry.js → p-c9924da3.entry.js} +1 -1
- package/dist/ketchup/{p-08608891.js → p-ce299c02.js} +1 -1
- package/dist/ketchup/{p-8876e673.entry.js → p-ce37247c.entry.js} +1 -1
- package/dist/ketchup/p-ce908d23.entry.js +1 -0
- package/dist/ketchup/p-d52a97d6.entry.js +1 -0
- package/dist/ketchup/{p-9e8bd55a.entry.js → p-d75f7618.entry.js} +1 -1
- package/dist/ketchup/{p-4b13c5f5.entry.js → p-d9bd93d2.entry.js} +1 -1
- package/dist/ketchup/{p-51f2ffb9.entry.js → p-dd567e1d.entry.js} +1 -1
- package/dist/ketchup/{p-edcb4ac6.entry.js → p-e5b796d2.entry.js} +1 -1
- package/dist/ketchup/p-ed3253c1.js +1 -0
- package/dist/ketchup/{p-93dff1f9.js → p-ed3ff1ae.js} +1 -1
- package/dist/ketchup/{p-c4617db5.entry.js → p-f252ef4f.entry.js} +1 -1
- package/dist/ketchup/{p-026a5635.entry.js → p-f81d80a7.entry.js} +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -1
- package/dist/types/components.d.ts +8 -2
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +3 -1
- package/package.json +1 -1
- package/dist/ketchup/p-0c8cb88e.js +0 -1
- package/dist/ketchup/p-60a761cb.entry.js +0 -9
- package/dist/ketchup/p-67eacdd7.entry.js +0 -1
- package/dist/ketchup/p-72ed5abb.js +0 -1
- package/dist/ketchup/p-fcdeb4b6.entry.js +0 -1
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8aa3c73.js');
|
|
6
|
-
const kupManager$1 = require('./kup-manager-
|
|
7
|
-
const fTextField = require('./f-text-field-
|
|
6
|
+
const kupManager$1 = require('./kup-manager-f5ccf3d0.js');
|
|
7
|
+
const fTextField = require('./f-text-field-b5a51398.js');
|
|
8
8
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
9
|
-
const fCell = require('./f-cell-
|
|
9
|
+
const fCell = require('./f-cell-732263b0.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
11
|
const fImage = require('./f-image-4d316ab3.js');
|
|
12
12
|
const fButton = require('./f-button-1e98edae.js');
|
|
13
13
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
14
14
|
const kupDates = require('./kup-dates-bc4cf9d0.js');
|
|
15
|
-
const fChip = require('./f-chip-
|
|
15
|
+
const fChip = require('./f-chip-238c78d1.js');
|
|
16
16
|
const component = require('./component-a6dd6c14.js');
|
|
17
17
|
const fCheckbox = require('./f-checkbox-4fcdec8a.js');
|
|
18
|
-
const kupDataTableHelper = require('./kup-data-table-helper-
|
|
19
|
-
const fPaginatorUtils = require('./f-paginator-utils-
|
|
20
|
-
require('./f-object-field-
|
|
18
|
+
const kupDataTableHelper = require('./kup-data-table-helper-07df1b41.js');
|
|
19
|
+
const fPaginatorUtils = require('./f-paginator-utils-be634c3c.js');
|
|
20
|
+
require('./f-object-field-8bca23a7.js');
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Props of the kup-autocomplete component.
|
|
@@ -1188,7 +1188,7 @@ const KupButtonList = class {
|
|
|
1188
1188
|
};
|
|
1189
1189
|
KupButtonList.style = KupButtonListStyle0;
|
|
1190
1190
|
|
|
1191
|
-
const dom$
|
|
1191
|
+
const dom$b = document.documentElement;
|
|
1192
1192
|
/**
|
|
1193
1193
|
* 1st box card layout, it can be used as a key-value grid list.
|
|
1194
1194
|
* @param {KupCard} component - Card component.
|
|
@@ -1283,8 +1283,8 @@ function create4$4(component) {
|
|
|
1283
1283
|
let value = null;
|
|
1284
1284
|
for (let index = 0; index < cells.length; index++) {
|
|
1285
1285
|
const cell = cells[index];
|
|
1286
|
-
const isImage = dom$
|
|
1287
|
-
dom$
|
|
1286
|
+
const isImage = dom$b.ketchup.objects.isImage(cell.obj) ||
|
|
1287
|
+
dom$b.ketchup.objects.isIcon(cell.obj) ||
|
|
1288
1288
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === kupManager$1.FCellShapes.IMAGE;
|
|
1289
1289
|
if (!image && isImage) {
|
|
1290
1290
|
image = index;
|
|
@@ -1341,8 +1341,8 @@ function create5$4(component) {
|
|
|
1341
1341
|
for (let index$1 = 0; index$1 < cells.length; index$1++) {
|
|
1342
1342
|
const cell = cells[index$1];
|
|
1343
1343
|
const column = component.data.columns[index$1];
|
|
1344
|
-
const isImage = dom$
|
|
1345
|
-
dom$
|
|
1344
|
+
const isImage = dom$b.ketchup.objects.isImage(cell.obj) ||
|
|
1345
|
+
dom$b.ketchup.objects.isIcon(cell.obj) ||
|
|
1346
1346
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === kupManager$1.FCellShapes.IMAGE;
|
|
1347
1347
|
if (!imageProps && isImage) {
|
|
1348
1348
|
imageProps = {
|
|
@@ -1394,8 +1394,8 @@ function create6$4(component) {
|
|
|
1394
1394
|
for (let index$1 = 0; index$1 < cells.length; index$1++) {
|
|
1395
1395
|
const cell = cells[index$1];
|
|
1396
1396
|
const column = component.data.columns[index$1];
|
|
1397
|
-
const isImage = dom$
|
|
1398
|
-
dom$
|
|
1397
|
+
const isImage = dom$b.ketchup.objects.isImage(cell.obj) ||
|
|
1398
|
+
dom$b.ketchup.objects.isIcon(cell.obj) ||
|
|
1399
1399
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === kupManager$1.FCellShapes.IMAGE;
|
|
1400
1400
|
if (!image && isImage) {
|
|
1401
1401
|
image = index$1;
|
|
@@ -1490,7 +1490,7 @@ var SourceEvent;
|
|
|
1490
1490
|
SourceEvent["YEAR"] = "year";
|
|
1491
1491
|
})(SourceEvent || (SourceEvent = {}));
|
|
1492
1492
|
|
|
1493
|
-
const dom$
|
|
1493
|
+
const dom$a = document.documentElement;
|
|
1494
1494
|
const kupManager = kupManager$1.kupManagerInstance();
|
|
1495
1495
|
function prepareCalendar(component) {
|
|
1496
1496
|
const el = component.rootElement;
|
|
@@ -1523,7 +1523,7 @@ function prepareCalendar(component) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
if (!el.kupData.value)
|
|
1525
1525
|
setValue$2(component, new Date());
|
|
1526
|
-
const months = dom$
|
|
1526
|
+
const months = dom$a.ketchup.dates.getMonthsAsString();
|
|
1527
1527
|
const curYear = getYear(component);
|
|
1528
1528
|
const curMonth = getMonth(component);
|
|
1529
1529
|
const yearRange = getInitEndYear(curYear);
|
|
@@ -1667,7 +1667,7 @@ function createCalendar(component) {
|
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
1669
|
function createDaysCalendar(component) {
|
|
1670
|
-
const days = dom$
|
|
1670
|
+
const days = dom$a.ketchup.dates.getDaysOfWeekAsString(getFirstDayIndex(component));
|
|
1671
1671
|
const selectedDate = getValue$1(component);
|
|
1672
1672
|
const selectedDay = getDay(component);
|
|
1673
1673
|
const selectedMonth = getMonth(component);
|
|
@@ -1754,7 +1754,7 @@ function createDaysCalendar(component) {
|
|
|
1754
1754
|
index.h("tbody", null, tbody))));
|
|
1755
1755
|
}
|
|
1756
1756
|
function createMonthsCalendar(component) {
|
|
1757
|
-
const months = dom$
|
|
1757
|
+
const months = dom$a.ketchup.dates.getMonthsAsString(kupDates.KupDateTimeFormatOptionsMonth.SHORT);
|
|
1758
1758
|
let selectedDay = getDay(component);
|
|
1759
1759
|
const selectedMonth = getMonth(component);
|
|
1760
1760
|
const selectedYear = getYear(component);
|
|
@@ -1905,7 +1905,7 @@ function refresh(component) {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
function onCalendarMonthYearItemClick(component, value) {
|
|
1907
1907
|
let d;
|
|
1908
|
-
if (dom$
|
|
1908
|
+
if (dom$a.ketchup.dates.isIsoDate(value)) {
|
|
1909
1909
|
d = new Date(value);
|
|
1910
1910
|
}
|
|
1911
1911
|
else {
|
|
@@ -1927,7 +1927,7 @@ function onCalendarMonthYearItemClick(component, value) {
|
|
|
1927
1927
|
}
|
|
1928
1928
|
function onCalendarItemClick(component, value) {
|
|
1929
1929
|
let d;
|
|
1930
|
-
if (dom$
|
|
1930
|
+
if (dom$a.ketchup.dates.isIsoDate(value)) {
|
|
1931
1931
|
d = new Date(value);
|
|
1932
1932
|
}
|
|
1933
1933
|
else {
|
|
@@ -1943,7 +1943,7 @@ function setDateToday(component) {
|
|
|
1943
1943
|
refresh(component);
|
|
1944
1944
|
}
|
|
1945
1945
|
|
|
1946
|
-
const dom$
|
|
1946
|
+
const dom$9 = document.documentElement;
|
|
1947
1947
|
function prepareClock(component) {
|
|
1948
1948
|
const el = component.rootElement;
|
|
1949
1949
|
el.kupData = {};
|
|
@@ -2058,7 +2058,7 @@ function onKupBlur(component) {
|
|
|
2058
2058
|
function createClock(component) {
|
|
2059
2059
|
let selectedTime;
|
|
2060
2060
|
if (getValue(component)) {
|
|
2061
|
-
selectedTime = dom$
|
|
2061
|
+
selectedTime = dom$9.ketchup.dates.toDate(getValue(component), isManageSeconds(component)
|
|
2062
2062
|
? kupDates.KupDatesFormats.ISO_TIME
|
|
2063
2063
|
: kupDates.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
|
|
2064
2064
|
}
|
|
@@ -2260,7 +2260,7 @@ function setClockTime(e, component) {
|
|
|
2260
2260
|
e.target.classList.add('selected');
|
|
2261
2261
|
}
|
|
2262
2262
|
|
|
2263
|
-
const dom$
|
|
2263
|
+
const dom$8 = document.documentElement;
|
|
2264
2264
|
const premadeFormulas = [
|
|
2265
2265
|
kupManager$1.KupLanguageTotals.AVERAGE,
|
|
2266
2266
|
kupManager$1.KupLanguageTotals.DIFFERENCE,
|
|
@@ -2275,7 +2275,7 @@ function prepareColumnDropMenu(component) {
|
|
|
2275
2275
|
const column = options.data.columns[index];
|
|
2276
2276
|
if (column.visible !== false &&
|
|
2277
2277
|
column.obj &&
|
|
2278
|
-
dom$
|
|
2278
|
+
dom$8.ketchup.objects.isNumber(column.obj)) {
|
|
2279
2279
|
chipData.push({
|
|
2280
2280
|
obj: column.obj,
|
|
2281
2281
|
value: column.name,
|
|
@@ -2291,7 +2291,7 @@ function prepareColumnDropMenu(component) {
|
|
|
2291
2291
|
if (options.enableFormula) {
|
|
2292
2292
|
combobox = prepareCombobox(options, numericalColumnsExist);
|
|
2293
2293
|
if (numericalColumnsExist) {
|
|
2294
|
-
button = (index.h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom$
|
|
2294
|
+
button = (index.h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom$8.ketchup.language.translate(kupManager$1.KupLanguageTotals.CALCULATE), styling: fButtonDeclarations.FButtonStyling.OUTLINED }));
|
|
2295
2295
|
chipSet = (index.h("div", { class: "sub-chip" },
|
|
2296
2296
|
index.h("kup-chip", { data: chipData, "onKup-chip-click": (e) => typeColumn(e, component) })));
|
|
2297
2297
|
}
|
|
@@ -2304,35 +2304,35 @@ function prepareList(options) {
|
|
|
2304
2304
|
listData.push({
|
|
2305
2305
|
icon: 'library_add',
|
|
2306
2306
|
id: kupManager$1.KupLanguageGeneric.MERGE,
|
|
2307
|
-
value: dom$
|
|
2307
|
+
value: dom$8.ketchup.language.translate(kupManager$1.KupLanguageGeneric.MERGE),
|
|
2308
2308
|
});
|
|
2309
2309
|
}
|
|
2310
2310
|
if (options.enableMove) {
|
|
2311
2311
|
listData.push({
|
|
2312
2312
|
icon: 'swap_horiz',
|
|
2313
2313
|
id: kupManager$1.KupLanguageGeneric.MOVE,
|
|
2314
|
-
value: dom$
|
|
2314
|
+
value: dom$8.ketchup.language.translate(kupManager$1.KupLanguageGeneric.MOVE),
|
|
2315
2315
|
});
|
|
2316
2316
|
}
|
|
2317
2317
|
return listData.length > 0 ? (index.h("kup-list", { data: listData, showIcons: true, "onkup-list-click": (e) => listClick(e, options) })) : null;
|
|
2318
2318
|
}
|
|
2319
2319
|
function prepareCombobox(options, numericalColumnsExist) {
|
|
2320
2320
|
const comboListData = [];
|
|
2321
|
-
const numeric = dom$
|
|
2322
|
-
dom$
|
|
2321
|
+
const numeric = dom$8.ketchup.objects.isNumber(options.receivingColumn.obj) &&
|
|
2322
|
+
dom$8.ketchup.objects.isNumber(options.starterColumn.obj);
|
|
2323
2323
|
if (numeric) {
|
|
2324
2324
|
comboListData.push({
|
|
2325
2325
|
id: kupManager$1.KupLanguageTotals.AVERAGE,
|
|
2326
|
-
value: dom$
|
|
2326
|
+
value: dom$8.ketchup.language.translate(kupManager$1.KupLanguageTotals.AVERAGE),
|
|
2327
2327
|
}, {
|
|
2328
2328
|
id: kupManager$1.KupLanguageTotals.DIFFERENCE,
|
|
2329
|
-
value: dom$
|
|
2329
|
+
value: dom$8.ketchup.language.translate(kupManager$1.KupLanguageTotals.DIFFERENCE),
|
|
2330
2330
|
}, {
|
|
2331
2331
|
id: kupManager$1.KupLanguageTotals.PRODUCT,
|
|
2332
|
-
value: dom$
|
|
2332
|
+
value: dom$8.ketchup.language.translate(kupManager$1.KupLanguageTotals.PRODUCT),
|
|
2333
2333
|
}, {
|
|
2334
2334
|
id: kupManager$1.KupLanguageTotals.SUM,
|
|
2335
|
-
value: dom$
|
|
2335
|
+
value: dom$8.ketchup.language.translate(kupManager$1.KupLanguageTotals.SUM),
|
|
2336
2336
|
}, {
|
|
2337
2337
|
id: `([${options.starterColumn.name}]/[${options.receivingColumn.name}])*100`,
|
|
2338
2338
|
value: `[${options.starterColumn.name}] / [${options.receivingColumn.name}] * 100`,
|
|
@@ -2344,7 +2344,7 @@ function prepareCombobox(options, numericalColumnsExist) {
|
|
|
2344
2344
|
else {
|
|
2345
2345
|
comboListData.push({
|
|
2346
2346
|
id: kupManager$1.KupLanguageColumn.NO_FORMULA,
|
|
2347
|
-
value: dom$
|
|
2347
|
+
value: dom$8.ketchup.language.translate(kupManager$1.KupLanguageColumn.NO_FORMULA),
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
2350
2350
|
const comboData = {
|
|
@@ -2354,11 +2354,11 @@ function prepareCombobox(options, numericalColumnsExist) {
|
|
|
2354
2354
|
},
|
|
2355
2355
|
'kup-text-field': {
|
|
2356
2356
|
helper: !numericalColumnsExist
|
|
2357
|
-
? dom$
|
|
2357
|
+
? dom$8.ketchup.language.translate(kupManager$1.KupLanguageColumn.NON_NUMERICAL_IN_TABLE)
|
|
2358
2358
|
: numeric
|
|
2359
2359
|
? `i.e.: [${options.receivingColumn.name}] - [${options.starterColumn.name}] + 1`
|
|
2360
|
-
: dom$
|
|
2361
|
-
label: dom$
|
|
2360
|
+
: dom$8.ketchup.language.translate(kupManager$1.KupLanguageColumn.NON_NUMERICAL),
|
|
2361
|
+
label: dom$8.ketchup.language.translate(kupManager$1.KupLanguageTotals.FORMULA),
|
|
2362
2362
|
outlined: true,
|
|
2363
2363
|
},
|
|
2364
2364
|
};
|
|
@@ -2402,7 +2402,7 @@ async function applyFormula(component) {
|
|
|
2402
2402
|
? parts[1].trim()
|
|
2403
2403
|
: valueString;
|
|
2404
2404
|
if (premadeFormulas.includes(value)) {
|
|
2405
|
-
dom$
|
|
2405
|
+
dom$8.ketchup.data.column.new(options.data, kupManager$1.KupDataNewColumnTypes.MATH, {
|
|
2406
2406
|
columns: [
|
|
2407
2407
|
options.receivingColumn.name,
|
|
2408
2408
|
options.starterColumn.name,
|
|
@@ -2417,7 +2417,7 @@ async function applyFormula(component) {
|
|
|
2417
2417
|
}
|
|
2418
2418
|
}
|
|
2419
2419
|
else {
|
|
2420
|
-
const result = dom$
|
|
2420
|
+
const result = dom$8.ketchup.data.column.new(options.data, kupManager$1.KupDataNewColumnTypes.MATH, {
|
|
2421
2421
|
newColumn: hasDescription
|
|
2422
2422
|
? { name: description, title: description }
|
|
2423
2423
|
: undefined,
|
|
@@ -2435,18 +2435,18 @@ async function applyFormula(component) {
|
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
|
|
2438
|
-
const dom$
|
|
2438
|
+
const dom$7 = document.documentElement;
|
|
2439
2439
|
function prepareMessageBox(component) {
|
|
2440
2440
|
const options = component.data.options;
|
|
2441
2441
|
const buttonsExist = !!(options.cancelCb || options.confirmCb);
|
|
2442
2442
|
return (index.h("div", { class: "message-box" },
|
|
2443
2443
|
options.text ? index.h("div", { class: "text" }, options.text) : null,
|
|
2444
2444
|
buttonsExist ? (index.h("div", { class: "button-wrapper" },
|
|
2445
|
-
options.cancelCb ? (index.h(fButton.FButton, { icon: "clear", label: dom$
|
|
2446
|
-
options.confirmCb ? (index.h(fButton.FButton, { icon: "check", label: dom$
|
|
2445
|
+
options.cancelCb ? (index.h(fButton.FButton, { icon: "clear", label: dom$7.ketchup.language.translate(kupManager$1.KupLanguageGeneric.ABORT), onClick: options.cancelCb, styling: fButtonDeclarations.FButtonStyling.FLAT })) : null,
|
|
2446
|
+
options.confirmCb ? (index.h(fButton.FButton, { icon: "check", label: dom$7.ketchup.language.translate(kupManager$1.KupLanguageGeneric.CONFIRM), onClick: options.confirmCb })) : null)) : null));
|
|
2447
2447
|
}
|
|
2448
2448
|
|
|
2449
|
-
const dom$
|
|
2449
|
+
const dom$6 = document.documentElement;
|
|
2450
2450
|
function prepareNumeric(component) {
|
|
2451
2451
|
const el = component.rootElement;
|
|
2452
2452
|
if (!el.kupData)
|
|
@@ -2468,7 +2468,7 @@ function prepareNumeric(component) {
|
|
|
2468
2468
|
el.kupData.value = obj.k;
|
|
2469
2469
|
else
|
|
2470
2470
|
el.kupData.value = options.initialValue.toString();
|
|
2471
|
-
el.kupData.localeValue = dom$
|
|
2471
|
+
el.kupData.localeValue = dom$6.ketchup.math.numbers.toLocaleString(el.kupData.value);
|
|
2472
2472
|
}
|
|
2473
2473
|
options.resetStatus = false;
|
|
2474
2474
|
}
|
|
@@ -2543,7 +2543,7 @@ function setSign(component) {
|
|
|
2543
2543
|
return;
|
|
2544
2544
|
strVal = '-' + strVal;
|
|
2545
2545
|
el.kupData.value = strVal;
|
|
2546
|
-
el.kupData.localeValue = dom$
|
|
2546
|
+
el.kupData.localeValue = dom$6.ketchup.math.numbers.toLocaleString(strVal);
|
|
2547
2547
|
component.refresh();
|
|
2548
2548
|
}
|
|
2549
2549
|
function setValue(component, value) {
|
|
@@ -2580,7 +2580,7 @@ function setValue(component, value) {
|
|
|
2580
2580
|
return;
|
|
2581
2581
|
strVal += value;
|
|
2582
2582
|
el.kupData.value = strVal;
|
|
2583
|
-
el.kupData.localeValue = dom$
|
|
2583
|
+
el.kupData.localeValue = dom$6.ketchup.math.numbers.toLocaleString(strVal);
|
|
2584
2584
|
component.refresh();
|
|
2585
2585
|
}
|
|
2586
2586
|
function clearValue(component) {
|
|
@@ -2590,14 +2590,14 @@ function clearValue(component) {
|
|
|
2590
2590
|
component.refresh();
|
|
2591
2591
|
}
|
|
2592
2592
|
function getDecimalChar() {
|
|
2593
|
-
return (0.1).toLocaleString(dom$
|
|
2593
|
+
return (0.1).toLocaleString(dom$6.ketchup.math.locale).substring(1, 2);
|
|
2594
2594
|
}
|
|
2595
2595
|
function saveValue(component) {
|
|
2596
2596
|
const el = component.rootElement;
|
|
2597
2597
|
component.onKupClick(component.rootElement.id, el.kupData.value ? Number(el.kupData.value).toString() : '');
|
|
2598
2598
|
}
|
|
2599
2599
|
|
|
2600
|
-
const dom$
|
|
2600
|
+
const dom$5 = document.documentElement;
|
|
2601
2601
|
let inputArea = null;
|
|
2602
2602
|
let clearButton = null;
|
|
2603
2603
|
let submitButton = null;
|
|
@@ -2663,8 +2663,8 @@ function prepareOpenAIInterface(component) {
|
|
|
2663
2663
|
fun = fun.replace(']#', '');
|
|
2664
2664
|
}
|
|
2665
2665
|
result.push(index.h("div", { class: "fun", title: "Execute FUN.", onClick: () => {
|
|
2666
|
-
if (dom$
|
|
2667
|
-
dom$
|
|
2666
|
+
if (dom$5.ketchup.openAI.onFunClick) {
|
|
2667
|
+
dom$5.ketchup.openAI.onFunClick(fun);
|
|
2668
2668
|
}
|
|
2669
2669
|
} }, fun));
|
|
2670
2670
|
lastIndex = match.index + match[0].length;
|
|
@@ -3090,7 +3090,7 @@ const collapsibleLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3090
3090
|
create2: create2$4
|
|
3091
3091
|
});
|
|
3092
3092
|
|
|
3093
|
-
const dom$
|
|
3093
|
+
const dom$4 = document.documentElement;
|
|
3094
3094
|
/**
|
|
3095
3095
|
* 1st dialog card layout, used to display information in string format.
|
|
3096
3096
|
* @param {KupCard} component - Card component.
|
|
@@ -3184,8 +3184,8 @@ function create4$2(component) {
|
|
|
3184
3184
|
return (index.h("div", { class: `dialog-layout-${component.layoutNumber} dialog-element` },
|
|
3185
3185
|
textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''),
|
|
3186
3186
|
datatableArray[0] && buttonArray[0] && buttonArray[1] ? (index.h("div", { class: "section-1" },
|
|
3187
|
-
index.h("kup-button", Object.assign({}, buttonArray[0], { id: kupManager$1.KupCardIds.PREVIOUS_ROW, "onkup-button-click": () => prevButton(component), title: dom$
|
|
3188
|
-
index.h("kup-button", Object.assign({}, buttonArray[1], { id: kupManager$1.KupCardIds.NEXT_ROW, "onkup-button-click": () => nextButton(component), title: dom$
|
|
3187
|
+
index.h("kup-button", Object.assign({}, buttonArray[0], { id: kupManager$1.KupCardIds.PREVIOUS_ROW, "onkup-button-click": () => prevButton(component), title: dom$4.ketchup.language.translate(kupManager$1.KupLanguageRow.PREVIOUS) })),
|
|
3188
|
+
index.h("kup-button", Object.assign({}, buttonArray[1], { id: kupManager$1.KupCardIds.NEXT_ROW, "onkup-button-click": () => nextButton(component), title: dom$4.ketchup.language.translate(kupManager$1.KupLanguageRow.NEXT) })))) : null,
|
|
3189
3189
|
datatableArray[0] ? (index.h("div", { class: "section-2" },
|
|
3190
3190
|
index.h("kup-data-table", Object.assign({ id: "datatable1" }, datatableArray[0])))) : null));
|
|
3191
3191
|
}
|
|
@@ -3370,7 +3370,7 @@ const freeLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3370
3370
|
create2: create2$2
|
|
3371
3371
|
});
|
|
3372
3372
|
|
|
3373
|
-
const dom$
|
|
3373
|
+
const dom$3 = document.documentElement;
|
|
3374
3374
|
/**
|
|
3375
3375
|
* 1st scalable card layout, column of 2 texts.
|
|
3376
3376
|
* @param {KupCard} component - Card component.
|
|
@@ -3420,7 +3420,7 @@ function create2$1(component) {
|
|
|
3420
3420
|
index.h("div", { style: colorArray[1] ? { color: colorArray[1] } : undefined },
|
|
3421
3421
|
textArray[0] ? textArray[0] : '',
|
|
3422
3422
|
textArray[1]
|
|
3423
|
-
? dom$
|
|
3423
|
+
? dom$3.ketchup.math.decimalSeparator()
|
|
3424
3424
|
: '')),
|
|
3425
3425
|
textArray[1] ? (index.h("div", { class: "value-dec" },
|
|
3426
3426
|
index.h("div", { style: colorArray[1]
|
|
@@ -3481,7 +3481,7 @@ function create4$1(component) {
|
|
|
3481
3481
|
: undefined },
|
|
3482
3482
|
textArray[0] ? textArray[0] : '',
|
|
3483
3483
|
textArray[1]
|
|
3484
|
-
? dom$
|
|
3484
|
+
? dom$3.ketchup.math.decimalSeparator()
|
|
3485
3485
|
: '')),
|
|
3486
3486
|
textArray[1] ? (index.h("div", { class: "value-dec" },
|
|
3487
3487
|
index.h("div", { style: colorArray[1]
|
|
@@ -3781,7 +3781,7 @@ const scalableLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3781
3781
|
create11: create11$1
|
|
3782
3782
|
});
|
|
3783
3783
|
|
|
3784
|
-
const dom$
|
|
3784
|
+
const dom$2 = document.documentElement;
|
|
3785
3785
|
/**
|
|
3786
3786
|
* 1st standard card layout, inspired by Material Design.
|
|
3787
3787
|
* @param {KupCard} component - Card component.
|
|
@@ -4534,7 +4534,7 @@ function create15(component) {
|
|
|
4534
4534
|
const button = genericButtons[index];
|
|
4535
4535
|
props.data['kup-list'].data.push(Object.assign(Object.assign({}, button), { value: button.title }));
|
|
4536
4536
|
}
|
|
4537
|
-
return (index.h("kup-dropdown-button", Object.assign({}, props, { title: dom$
|
|
4537
|
+
return (index.h("kup-dropdown-button", Object.assign({}, props, { title: dom$2.ketchup.language.translate(kupManager$1.KupLanguageGeneric.OPTIONS) })));
|
|
4538
4538
|
};
|
|
4539
4539
|
return (index.h("div", { class: `standard-layout-${component.layoutNumber}` },
|
|
4540
4540
|
index.h("div", { class: "section-1" },
|
|
@@ -4567,7 +4567,7 @@ function create15(component) {
|
|
|
4567
4567
|
genericButtons.length > 0 ? (index.h("div", { class: "section-3" },
|
|
4568
4568
|
compList(genericButtons.slice(0, 5), 'button'),
|
|
4569
4569
|
genericButtons.length > 5 ? createDropdown() : null,
|
|
4570
|
-
treeArray[0] ? (index.h("kup-button", { title: dom$
|
|
4570
|
+
treeArray[0] ? (index.h("kup-button", { title: dom$2.ketchup.language.translate(kupManager$1.KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" })) : null)) : null));
|
|
4571
4571
|
}
|
|
4572
4572
|
/**
|
|
4573
4573
|
* 16th standard card layout, it can be used as the toolbar.
|
|
@@ -7834,7 +7834,7 @@ class KupDataTableState {
|
|
|
7834
7834
|
}
|
|
7835
7835
|
}
|
|
7836
7836
|
|
|
7837
|
-
const dom$
|
|
7837
|
+
const dom$1 = document.documentElement;
|
|
7838
7838
|
/**
|
|
7839
7839
|
* Definition and events of the column menu card.
|
|
7840
7840
|
* @module KupColumnMenu
|
|
@@ -7859,8 +7859,8 @@ class KupColumnMenu {
|
|
|
7859
7859
|
*/
|
|
7860
7860
|
close(card) {
|
|
7861
7861
|
card.menuVisible = false;
|
|
7862
|
-
dom$
|
|
7863
|
-
dom$
|
|
7862
|
+
dom$1.ketchup.removeClickCallback(this.clickCb);
|
|
7863
|
+
dom$1.ketchup.dynamicPosition.stop(card);
|
|
7864
7864
|
}
|
|
7865
7865
|
/**
|
|
7866
7866
|
* Function called to reposition the column menu card to the appropriate column.
|
|
@@ -7872,11 +7872,11 @@ class KupColumnMenu {
|
|
|
7872
7872
|
if (card) {
|
|
7873
7873
|
const column = card.dataset.column;
|
|
7874
7874
|
const wrapper = root.querySelector('th[data-column="' + column + '"]');
|
|
7875
|
-
if (dom$
|
|
7876
|
-
dom$
|
|
7875
|
+
if (dom$1.ketchup.dynamicPosition.isRegistered(card)) {
|
|
7876
|
+
dom$1.ketchup.dynamicPosition.changeAnchor(card, wrapper);
|
|
7877
7877
|
}
|
|
7878
7878
|
else {
|
|
7879
|
-
dom$
|
|
7879
|
+
dom$1.ketchup.dynamicPosition.register(card, wrapper, 0, kupManager$1.KupDynamicPositionPlacement.AUTO, true);
|
|
7880
7880
|
}
|
|
7881
7881
|
if (!this.clickCb) {
|
|
7882
7882
|
this.clickCb = {
|
|
@@ -7886,8 +7886,8 @@ class KupColumnMenu {
|
|
|
7886
7886
|
el: card,
|
|
7887
7887
|
};
|
|
7888
7888
|
}
|
|
7889
|
-
dom$
|
|
7890
|
-
dom$
|
|
7889
|
+
dom$1.ketchup.addClickCallback(this.clickCb, true);
|
|
7890
|
+
dom$1.ketchup.dynamicPosition.start(card);
|
|
7891
7891
|
card.menuVisible = true;
|
|
7892
7892
|
}
|
|
7893
7893
|
}
|
|
@@ -7937,8 +7937,8 @@ class KupColumnMenu {
|
|
|
7937
7937
|
icon: 'book',
|
|
7938
7938
|
id: KupColumnMenuIds.BUTTON_GROUP,
|
|
7939
7939
|
title: comp.getGroupByName(column.name) != null
|
|
7940
|
-
? dom$
|
|
7941
|
-
: dom$
|
|
7940
|
+
? dom$1.ketchup.language.translate(kupManager$1.KupLanguageGrouping.DISABLE)
|
|
7941
|
+
: dom$1.ketchup.language.translate(kupManager$1.KupLanguageGrouping.ENABLE),
|
|
7942
7942
|
});
|
|
7943
7943
|
}
|
|
7944
7944
|
if (comp.removableColumns) {
|
|
@@ -7949,12 +7949,12 @@ class KupColumnMenu {
|
|
|
7949
7949
|
},
|
|
7950
7950
|
icon: 'table-column-remove',
|
|
7951
7951
|
id: KupColumnMenuIds.BUTTON_REMOVE,
|
|
7952
|
-
title: dom$
|
|
7952
|
+
title: dom$1.ketchup.language.translate(kupManager$1.KupLanguageColumn.HIDE),
|
|
7953
7953
|
});
|
|
7954
7954
|
}
|
|
7955
7955
|
if (comp.enableExtraColumns &&
|
|
7956
|
-
(dom$
|
|
7957
|
-
dom$
|
|
7956
|
+
(dom$1.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
|
|
7957
|
+
dom$1.ketchup.objects.canObjsHaveExtraColumns(column.objs))) {
|
|
7958
7958
|
props.push({
|
|
7959
7959
|
className: 'printable',
|
|
7960
7960
|
'data-storage': {
|
|
@@ -7962,14 +7962,14 @@ class KupColumnMenu {
|
|
|
7962
7962
|
},
|
|
7963
7963
|
icon: 'table-column-plus-after',
|
|
7964
7964
|
id: KupColumnMenuIds.BUTTON_ADD_COLUMNS,
|
|
7965
|
-
title: dom$
|
|
7965
|
+
title: dom$1.ketchup.language.translate(kupManager$1.KupLanguageColumn.ADD),
|
|
7966
7966
|
});
|
|
7967
7967
|
props.push({
|
|
7968
7968
|
className: 'printable',
|
|
7969
|
-
label: dom$
|
|
7969
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageGeneric.APPLY),
|
|
7970
7970
|
id: KupColumnMenuIds.BUTTON_APPLY,
|
|
7971
7971
|
styling: fButtonDeclarations.FButtonStyling.OUTLINED,
|
|
7972
|
-
title: dom$
|
|
7972
|
+
title: dom$1.ketchup.language.translate(kupManager$1.KupLanguageGeneric.APPLY),
|
|
7973
7973
|
});
|
|
7974
7974
|
}
|
|
7975
7975
|
return props;
|
|
@@ -7983,8 +7983,8 @@ class KupColumnMenu {
|
|
|
7983
7983
|
prepCheckbox(comp, column) {
|
|
7984
7984
|
const props = [];
|
|
7985
7985
|
if (comp.showFilters &&
|
|
7986
|
-
(dom$
|
|
7987
|
-
dom$
|
|
7986
|
+
(dom$1.ketchup.objects.isStringObject(column.obj) ||
|
|
7987
|
+
dom$1.ketchup.objects.isCheckbox(column.obj))) {
|
|
7988
7988
|
const checkBoxesFilter = this.filtersColumnMenuInstance.getCheckBoxFilterValues(comp.filters, column.name);
|
|
7989
7989
|
const columnValues = comp.getColumnValues(column);
|
|
7990
7990
|
if (columnValues.length > 0) {
|
|
@@ -7996,17 +7996,17 @@ class KupColumnMenu {
|
|
|
7996
7996
|
},
|
|
7997
7997
|
id: KupColumnMenuIds.CHECKBOX_GLOBAL,
|
|
7998
7998
|
key: KupColumnMenuIds.CHECKBOX_GLOBAL + column.name,
|
|
7999
|
-
label: dom$
|
|
7999
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageCheckbox.ALL),
|
|
8000
8000
|
});
|
|
8001
8001
|
}
|
|
8002
8002
|
for (let index = 0; index < columnValues.length; index++) {
|
|
8003
8003
|
let label = kupManager$1.getValueForDisplay2(columnValues[index], column);
|
|
8004
|
-
if (dom$
|
|
8004
|
+
if (dom$1.ketchup.objects.isCheckbox(column.obj)) {
|
|
8005
8005
|
if (columnValues[index].value == '1') {
|
|
8006
|
-
label = dom$
|
|
8006
|
+
label = dom$1.ketchup.language.translate(kupManager$1.KupLanguageCheckbox.CHECKED);
|
|
8007
8007
|
}
|
|
8008
8008
|
else {
|
|
8009
|
-
label = dom$
|
|
8009
|
+
label = dom$1.ketchup.language.translate(kupManager$1.KupLanguageCheckbox.UNCHECKED);
|
|
8010
8010
|
}
|
|
8011
8011
|
}
|
|
8012
8012
|
props.push({
|
|
@@ -8045,7 +8045,7 @@ class KupColumnMenu {
|
|
|
8045
8045
|
}
|
|
8046
8046
|
}
|
|
8047
8047
|
catch (error) {
|
|
8048
|
-
dom$
|
|
8048
|
+
dom$1.ketchup.debug.logMessage(this, 'Child column not found (' + child.name + ')!' + error, kupManager$1.KupDebugCategory.ERROR);
|
|
8049
8049
|
}
|
|
8050
8050
|
chipData.push({
|
|
8051
8051
|
icon: child.icon ? child.icon : null,
|
|
@@ -8073,7 +8073,7 @@ class KupColumnMenu {
|
|
|
8073
8073
|
if (!kupDataTableHelper.FiltersColumnMenu.isTree(comp)) {
|
|
8074
8074
|
if (objs &&
|
|
8075
8075
|
objs.length > 0 &&
|
|
8076
|
-
!dom$
|
|
8076
|
+
!dom$1.ketchup.objects.isEmptyKupObj(objs[0])) {
|
|
8077
8077
|
props.push({
|
|
8078
8078
|
'data-storage': {
|
|
8079
8079
|
columnName: column.name,
|
|
@@ -8081,7 +8081,7 @@ class KupColumnMenu {
|
|
|
8081
8081
|
checked: column.isKey ? true : false,
|
|
8082
8082
|
key: KupColumnMenuIds.SWITCH_KEY + column.name,
|
|
8083
8083
|
id: KupColumnMenuIds.SWITCH_KEY,
|
|
8084
|
-
label: dom$
|
|
8084
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageRow.KEY),
|
|
8085
8085
|
leadingLabel: true,
|
|
8086
8086
|
});
|
|
8087
8087
|
}
|
|
@@ -8094,7 +8094,7 @@ class KupColumnMenu {
|
|
|
8094
8094
|
key: KupColumnMenuIds.SWITCH_GROUP + column.name,
|
|
8095
8095
|
checked: isGroupActive ? true : false,
|
|
8096
8096
|
id: KupColumnMenuIds.SWITCH_GROUP,
|
|
8097
|
-
label: dom$
|
|
8097
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageGrouping.GROUPS),
|
|
8098
8098
|
leadingLabel: true,
|
|
8099
8099
|
});
|
|
8100
8100
|
}
|
|
@@ -8112,16 +8112,16 @@ class KupColumnMenu {
|
|
|
8112
8112
|
if (comp.showFilters) {
|
|
8113
8113
|
data.push({
|
|
8114
8114
|
id: kupManager$1.KupLanguageGeneric.FILTERS,
|
|
8115
|
-
value: dom$
|
|
8115
|
+
value: dom$1.ketchup.language.translate(kupManager$1.KupLanguageGeneric.FILTERS),
|
|
8116
8116
|
});
|
|
8117
8117
|
}
|
|
8118
8118
|
if ((comp.enableExtraColumns &&
|
|
8119
|
-
(dom$
|
|
8120
|
-
dom$
|
|
8119
|
+
(dom$1.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
|
|
8120
|
+
dom$1.ketchup.objects.canObjsHaveExtraColumns(column.objs))) ||
|
|
8121
8121
|
comp.removableColumns) {
|
|
8122
8122
|
data.push({
|
|
8123
8123
|
id: kupManager$1.KupLanguageColumn.COLUMNS,
|
|
8124
|
-
value: dom$
|
|
8124
|
+
value: dom$1.ketchup.language.translate(kupManager$1.KupLanguageColumn.COLUMNS),
|
|
8125
8125
|
});
|
|
8126
8126
|
}
|
|
8127
8127
|
if (!kupDataTableHelper.FiltersColumnMenu.isTree(comp)) {
|
|
@@ -8148,7 +8148,7 @@ class KupColumnMenu {
|
|
|
8148
8148
|
if (this.filtersColumnMenuInstance.isColumnFiltrableByInterval(column)) {
|
|
8149
8149
|
props = props.concat(this.prepIntervalTextfield(comp, column));
|
|
8150
8150
|
}
|
|
8151
|
-
else if (dom$
|
|
8151
|
+
else if (dom$1.ketchup.objects.isStringObject(column.obj)) {
|
|
8152
8152
|
let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
|
|
8153
8153
|
filterInitialValue = kupManager$1.getValueForDisplay(filterInitialValue, column.obj, column.decimals);
|
|
8154
8154
|
props.push({
|
|
@@ -8160,13 +8160,13 @@ class KupColumnMenu {
|
|
|
8160
8160
|
initialValue: filterInitialValue,
|
|
8161
8161
|
isClearable: true,
|
|
8162
8162
|
key: KupColumnMenuIds.TEXTFIELD_FILTER + column.name,
|
|
8163
|
-
label: dom$
|
|
8163
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageSearch.SEARCH),
|
|
8164
8164
|
trailingIcon: true,
|
|
8165
8165
|
});
|
|
8166
8166
|
}
|
|
8167
8167
|
}
|
|
8168
8168
|
if (!kupDataTableHelper.FiltersColumnMenu.isTree(comp)) {
|
|
8169
|
-
if (dom$
|
|
8169
|
+
if (dom$1.ketchup.objects.isNumber(column.obj) &&
|
|
8170
8170
|
comp.enableColumnsFormula) {
|
|
8171
8171
|
props.push({
|
|
8172
8172
|
fullWidth: true,
|
|
@@ -8174,7 +8174,7 @@ class KupColumnMenu {
|
|
|
8174
8174
|
id: KupColumnMenuIds.TEXTFIELD_FORMULA,
|
|
8175
8175
|
key: KupColumnMenuIds.TEXTFIELD_FORMULA + column.name,
|
|
8176
8176
|
helper: `i.e.: Description;[${column.name}] * 2`,
|
|
8177
|
-
label: dom$
|
|
8177
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageTotals.FORMULA),
|
|
8178
8178
|
trailingIcon: true,
|
|
8179
8179
|
});
|
|
8180
8180
|
}
|
|
@@ -8192,7 +8192,7 @@ class KupColumnMenu {
|
|
|
8192
8192
|
if (!comp.showFilters) {
|
|
8193
8193
|
return props;
|
|
8194
8194
|
}
|
|
8195
|
-
if (!dom$
|
|
8195
|
+
if (!dom$1.ketchup.objects.isNumber(column.obj)) {
|
|
8196
8196
|
return props;
|
|
8197
8197
|
}
|
|
8198
8198
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8210,7 +8210,7 @@ class KupColumnMenu {
|
|
|
8210
8210
|
key: KupColumnMenuIds.TEXTFIELD_FROM + column.name,
|
|
8211
8211
|
initialValue: initialValueFrom,
|
|
8212
8212
|
isClearable: true,
|
|
8213
|
-
label: dom$
|
|
8213
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageSearch.FROM),
|
|
8214
8214
|
trailingIcon: true,
|
|
8215
8215
|
});
|
|
8216
8216
|
props.push({
|
|
@@ -8225,7 +8225,7 @@ class KupColumnMenu {
|
|
|
8225
8225
|
key: KupColumnMenuIds.TEXTFIELD_TO + column.name,
|
|
8226
8226
|
initialValue: initialValueTo,
|
|
8227
8227
|
isClearable: true,
|
|
8228
|
-
label: dom$
|
|
8228
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageSearch.TO),
|
|
8229
8229
|
trailingIcon: true,
|
|
8230
8230
|
});
|
|
8231
8231
|
return props;
|
|
@@ -8241,7 +8241,7 @@ class KupColumnMenu {
|
|
|
8241
8241
|
if (!comp.showFilters) {
|
|
8242
8242
|
return props;
|
|
8243
8243
|
}
|
|
8244
|
-
if (!dom$
|
|
8244
|
+
if (!dom$1.ketchup.objects.isTime(column.obj)) {
|
|
8245
8245
|
return props;
|
|
8246
8246
|
}
|
|
8247
8247
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8258,13 +8258,13 @@ class KupColumnMenu {
|
|
|
8258
8258
|
fullWidth: true,
|
|
8259
8259
|
helperWhenFocused: true,
|
|
8260
8260
|
isClearable: true,
|
|
8261
|
-
label: dom$
|
|
8261
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageSearch.FROM),
|
|
8262
8262
|
},
|
|
8263
8263
|
},
|
|
8264
8264
|
id: KupColumnMenuIds.TEXTFIELD_FROM,
|
|
8265
8265
|
key: KupColumnMenuIds.TEXTFIELD_FROM + column.name,
|
|
8266
8266
|
initialValue: initialValueFrom,
|
|
8267
|
-
manageSeconds: dom$
|
|
8267
|
+
manageSeconds: dom$1.ketchup.objects.isTimeWithSeconds(column.obj),
|
|
8268
8268
|
});
|
|
8269
8269
|
props.push({
|
|
8270
8270
|
'data-storage': {
|
|
@@ -8277,13 +8277,13 @@ class KupColumnMenu {
|
|
|
8277
8277
|
fullWidth: true,
|
|
8278
8278
|
helperWhenFocused: true,
|
|
8279
8279
|
isClearable: true,
|
|
8280
|
-
label: dom$
|
|
8280
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageSearch.TO),
|
|
8281
8281
|
},
|
|
8282
8282
|
},
|
|
8283
8283
|
id: KupColumnMenuIds.TEXTFIELD_TO,
|
|
8284
8284
|
key: KupColumnMenuIds.TEXTFIELD_TO + column.name,
|
|
8285
8285
|
initialValue: initialValueTo,
|
|
8286
|
-
manageSeconds: dom$
|
|
8286
|
+
manageSeconds: dom$1.ketchup.objects.isTimeWithSeconds(column.obj),
|
|
8287
8287
|
});
|
|
8288
8288
|
return props;
|
|
8289
8289
|
}
|
|
@@ -8298,8 +8298,8 @@ class KupColumnMenu {
|
|
|
8298
8298
|
if (!comp.showFilters) {
|
|
8299
8299
|
return props;
|
|
8300
8300
|
}
|
|
8301
|
-
if (!dom$
|
|
8302
|
-
!dom$
|
|
8301
|
+
if (!dom$1.ketchup.objects.isDate(column.obj) &&
|
|
8302
|
+
!dom$1.ketchup.objects.isTimestamp(column.obj)) {
|
|
8303
8303
|
return props;
|
|
8304
8304
|
}
|
|
8305
8305
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8307,7 +8307,7 @@ class KupColumnMenu {
|
|
|
8307
8307
|
let initialValueTo = interval[kupManager$1.FilterInterval.TO];
|
|
8308
8308
|
let suffixFrom = null;
|
|
8309
8309
|
let suffixTo = null;
|
|
8310
|
-
if (dom$
|
|
8310
|
+
if (dom$1.ketchup.objects.isTimestamp(column.obj)) {
|
|
8311
8311
|
suffixFrom = ' 00:00:00';
|
|
8312
8312
|
suffixTo = ' 23:59:59';
|
|
8313
8313
|
if (initialValueFrom && initialValueFrom.length >= 10) {
|
|
@@ -8335,7 +8335,7 @@ class KupColumnMenu {
|
|
|
8335
8335
|
fullWidth: true,
|
|
8336
8336
|
helperWhenFocused: true,
|
|
8337
8337
|
isClearable: true,
|
|
8338
|
-
label: dom$
|
|
8338
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageSearch.FROM),
|
|
8339
8339
|
},
|
|
8340
8340
|
},
|
|
8341
8341
|
id: KupColumnMenuIds.TEXTFIELD_FROM,
|
|
@@ -8354,7 +8354,7 @@ class KupColumnMenu {
|
|
|
8354
8354
|
fullWidth: true,
|
|
8355
8355
|
helperWhenFocused: true,
|
|
8356
8356
|
isClearable: true,
|
|
8357
|
-
label: dom$
|
|
8357
|
+
label: dom$1.ketchup.language.translate(kupManager$1.KupLanguageSearch.TO),
|
|
8358
8358
|
},
|
|
8359
8359
|
},
|
|
8360
8360
|
id: KupColumnMenuIds.TEXTFIELD_TO,
|
|
@@ -8621,8 +8621,7 @@ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
8621
8621
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8622
8622
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8623
8623
|
};
|
|
8624
|
-
var _KupDataTable_instances, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_originalDataLoaded, _KupDataTable_originalDataLoadedMaxId, _KupDataTable_insertedRowIds, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_lastPointerDetails, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_actionsCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_dropDownActionCardAnchor, _KupDataTable_insertCount, _KupDataTable_lastFocusedRow, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_eventBlurNames, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable__getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_dropDownActions, _KupDataTable_createDropDownActionsCard, _KupDataTable_clearSearchActionsCard, _KupDataTable_filterRowActionsCard, _KupDataTable_closeRowActionsCard, _KupDataTable_prepareDataForActionsCard, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_clickHandler, _KupDataTable_cellActionsMenuHandler, _KupDataTable_contextMenuHandler, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_setCellEditability, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_handleUpdateClick,
|
|
8625
|
-
const dom$1 = document.documentElement;
|
|
8624
|
+
var _KupDataTable_instances, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_originalDataLoaded, _KupDataTable_originalDataLoadedMaxId, _KupDataTable_insertedRowIds, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_lastPointerDetails, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_actionsCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_dropDownActionCardAnchor, _KupDataTable_insertCount, _KupDataTable_lastFocusedRow, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_eventBlurNames, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable__getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_dropDownActions, _KupDataTable_createDropDownActionsCard, _KupDataTable_clearSearchActionsCard, _KupDataTable_filterRowActionsCard, _KupDataTable_closeRowActionsCard, _KupDataTable_prepareDataForActionsCard, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_clickHandler, _KupDataTable_cellActionsMenuHandler, _KupDataTable_contextMenuHandler, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_setCellEditability, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_handleUpdateClick, _KupDataTable_onBlurHandler, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel, _KupDataTable_renderCommandButton, _KupDataTable_renderCommandDropDownButton, _KupDataTable_renderUpdateButtons;
|
|
8626
8625
|
const KupDataTable = class {
|
|
8627
8626
|
constructor(hostRef) {
|
|
8628
8627
|
index.registerInstance(this, hostRef);
|
|
@@ -8646,6 +8645,9 @@ const KupDataTable = class {
|
|
|
8646
8645
|
this.kupCellActionIconClick = index.createEvent(this, "kup-datatable-cell-action-icon-click", 6);
|
|
8647
8646
|
this.kupUpdate = index.createEvent(this, "kup-datatable-update", 6);
|
|
8648
8647
|
this.kupCellCheck = index.createEvent(this, "kup-datatable-check", 6);
|
|
8648
|
+
this.kupDataTableCellClick = index.createEvent(this, "kup-datatable-cell-click", 6);
|
|
8649
|
+
this.kupDataTableCellIconClick = index.createEvent(this, "kup-datatable-cell-iconclick", 6);
|
|
8650
|
+
this.kupDataTableCellInput = index.createEvent(this, "kup-datatable-cell-input", 6);
|
|
8649
8651
|
_KupDataTable_instances.add(this);
|
|
8650
8652
|
this.state = new KupDataTableState();
|
|
8651
8653
|
_KupDataTable_initialized.set(this, false);
|
|
@@ -8773,55 +8775,6 @@ const KupDataTable = class {
|
|
|
8773
8775
|
command: command,
|
|
8774
8776
|
});
|
|
8775
8777
|
});
|
|
8776
|
-
_KupDataTable_checkOnBlurProp.set(this, (cell, rowId, colName) => {
|
|
8777
|
-
cell.data = Object.assign(Object.assign({}, cell.data), { onBlur: () => {
|
|
8778
|
-
var _a, _b;
|
|
8779
|
-
if (((_b = (_a = __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f").rows.find((r) => r.id == rowId)) === null || _a === void 0 ? void 0 : _a.cells[colName]) === null || _b === void 0 ? void 0 : _b.value) !== cell.value) {
|
|
8780
|
-
this.kupCellCheck.emit({
|
|
8781
|
-
comp: this,
|
|
8782
|
-
id: this.rootElement.id,
|
|
8783
|
-
originalData: __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"),
|
|
8784
|
-
updatedData: kupDataTableHelper.getDiffData(__classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
8785
|
-
cell: cell,
|
|
8786
|
-
});
|
|
8787
|
-
}
|
|
8788
|
-
} });
|
|
8789
|
-
});
|
|
8790
|
-
_KupDataTable_checkOnBlurEvent.set(this, (cell, rowId, colName) => {
|
|
8791
|
-
const evName = __classPrivateFieldGet$6(this, _KupDataTable_eventBlurNames, "f").get(cell.shape);
|
|
8792
|
-
if (!evName) {
|
|
8793
|
-
return;
|
|
8794
|
-
}
|
|
8795
|
-
const handler = async () => {
|
|
8796
|
-
var _a, _b;
|
|
8797
|
-
if (((_b = (_a = __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f").rows.find((r) => r.id == rowId)) === null || _a === void 0 ? void 0 : _a.cells[colName]) === null || _b === void 0 ? void 0 : _b.value) !== cell.value) {
|
|
8798
|
-
this.kupCellCheck.emit({
|
|
8799
|
-
comp: this,
|
|
8800
|
-
id: this.rootElement.id,
|
|
8801
|
-
originalData: __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"),
|
|
8802
|
-
updatedData: kupDataTableHelper.getDiffData(__classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
8803
|
-
cell: cell,
|
|
8804
|
-
});
|
|
8805
|
-
}
|
|
8806
|
-
};
|
|
8807
|
-
this.rootElement.addEventListener(evName, handler);
|
|
8808
|
-
});
|
|
8809
|
-
_KupDataTable_checkOnBlurByCellType.set(this, (fCellType) => {
|
|
8810
|
-
const cbByCellType = new Map([
|
|
8811
|
-
[kupManager$1.FCellTypes.AUTOCOMPLETE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8812
|
-
[kupManager$1.FCellTypes.CHIP, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8813
|
-
[kupManager$1.FCellTypes.DATE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8814
|
-
[kupManager$1.FCellTypes.MULTI_AUTOCOMPLETE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8815
|
-
[kupManager$1.FCellTypes.MULTI_COMBOBOX, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8816
|
-
[kupManager$1.FCellTypes.TIME, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8817
|
-
[kupManager$1.FCellTypes.COMBOBOX, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8818
|
-
[kupManager$1.FCellTypes.STRING, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8819
|
-
[kupManager$1.FCellTypes.RADIO, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8820
|
-
[kupManager$1.FCellTypes.NUMBER, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8821
|
-
[kupManager$1.FCellTypes.OBJECT, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8822
|
-
]);
|
|
8823
|
-
return cbByCellType.get(fCellType);
|
|
8824
|
-
});
|
|
8825
8778
|
_KupDataTable_FONTSIZE_CODES.set(this, ['small', 'medium', 'big']);
|
|
8826
8779
|
_KupDataTable_FONTSIZE_DECODES.set(this, ['Small', 'Medium', 'Big']);
|
|
8827
8780
|
_KupDataTable_FONTSIZE_ICONS.set(this, [
|
|
@@ -9929,7 +9882,7 @@ const KupDataTable = class {
|
|
|
9929
9882
|
}
|
|
9930
9883
|
let rows = null;
|
|
9931
9884
|
if (__classPrivateFieldGet$6(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9932
|
-
rows = (index.h("tr", { key: '
|
|
9885
|
+
rows = (index.h("tr", { key: '5e7916b2d5e5406bfe89de59c85abfcf9d9c7c27', ref: (el) => __classPrivateFieldGet$6(this, _KupDataTable_rowsRefs, "f").push(el) }, index.h("td", { key: '3a773e1601ad49f6092cc5c29552f30b199ebf6f', colSpan: __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9933
9886
|
}
|
|
9934
9887
|
else {
|
|
9935
9888
|
rows = [];
|
|
@@ -9994,7 +9947,7 @@ const KupDataTable = class {
|
|
|
9994
9947
|
for (let i = 0; i < chipsData.length; i++) {
|
|
9995
9948
|
props.onIconClick.push(() => __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
9996
9949
|
}
|
|
9997
|
-
groupChips = index.h(fChip.FChip, Object.assign({ key: '
|
|
9950
|
+
groupChips = index.h(fChip.FChip, Object.assign({ key: 'b18db45f91b68ade282b4f8c3418d0697e7a5fc1' }, props));
|
|
9998
9951
|
}
|
|
9999
9952
|
}
|
|
10000
9953
|
const tableClass = {
|
|
@@ -10026,7 +9979,7 @@ const KupDataTable = class {
|
|
|
10026
9979
|
if (this.headerIsPersistent &&
|
|
10027
9980
|
this.tableHeight === undefined &&
|
|
10028
9981
|
this.tableWidth === undefined) {
|
|
10029
|
-
stickyEl = (index.h("sticky-header", { key: '
|
|
9982
|
+
stickyEl = (index.h("sticky-header", { key: '3fb152a6231778c46a1c414a974b92fd3ac5243f', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, index.h("thead-sticky", { key: '8000359e51e3761851779b2746b8a823169f17e0' }, index.h("tr-sticky", { key: '95049c2d562c00c4f71215dd193dda2b0457187f' }, stickyHeader))));
|
|
10030
9983
|
}
|
|
10031
9984
|
let belowClass = 'below-wrapper';
|
|
10032
9985
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -10052,11 +10005,18 @@ const KupDataTable = class {
|
|
|
10052
10005
|
}
|
|
10053
10006
|
}
|
|
10054
10007
|
};
|
|
10055
|
-
const compCreated = (index.h(index.Host, { key: '
|
|
10008
|
+
const compCreated = (index.h(index.Host, { key: 'db73b583031420003c076acd9c48e5c44c9d95cf', "onKup-cell-input": (e) => {
|
|
10009
|
+
autoselectOnAction(e);
|
|
10010
|
+
this.kupDataTableCellInput.emit(e.detail);
|
|
10011
|
+
}, "onKup-cell-update": autoselectOnAction, "onKup-cell-blur": __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_onBlurHandler), "onKup-cell-click": (e) => {
|
|
10012
|
+
this.kupDataTableCellClick.emit(e.detail);
|
|
10013
|
+
}, "onKup-cell-iconclick": (e) => {
|
|
10014
|
+
this.kupDataTableCellIconClick.emit(e.detail);
|
|
10015
|
+
} }, index.h("style", { key: 'e979b5cccaddb966b713cc71717ed6f7158d0400' }, __classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, index.h("div", { key: 'd18317ca2692ef7737996ba4d517d04855c47ffe', id: GenericVariables.componentWrapperId, class: wrapClass }, index.h("div", { key: '26dbdc330eaba4fae0f5e9f7d27a191be1747eed', class: "group-wrapper" }, groupChips), index.h("div", { key: '64fe5a4113a4a215d6d25b08519dd5b88f32e411', class: "actions-wrapper", style: actionWrapperWidth }, this.globalFilter ? (index.h("div", { id: "global-filter" }, index.h(fTextField.FTextField, { fullWidth: true, icon: kupManager$1.KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").language.translate(kupManager$1.KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
|
|
10056
10016
|
const t = event.target;
|
|
10057
10017
|
window.clearTimeout(__classPrivateFieldGet$6(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
10058
10018
|
__classPrivateFieldSet$3(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
10059
|
-
} }))) : null, index.h("div", { key: '
|
|
10019
|
+
} }))) : null, index.h("div", { key: '4a633fe3a6b4f2205f9b769d9fa33af7642a4823', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
10060
10020
|
this.selectedRows.length > 0 ? (index.h(fButton.FButton, { icon: "save", onClick: () => {
|
|
10061
10021
|
this.kupSave.emit({
|
|
10062
10022
|
comp: this,
|
|
@@ -10106,9 +10066,9 @@ const KupDataTable = class {
|
|
|
10106
10066
|
this.data.rows.unshift(row);
|
|
10107
10067
|
await this.refresh(true);
|
|
10108
10068
|
}
|
|
10109
|
-
}, sizing: kupManager$1.KupComponentSizing.MEDIUM, styling: fButtonDeclarations.FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), index.h("div", { key: '
|
|
10069
|
+
}, sizing: kupManager$1.KupComponentSizing.MEDIUM, styling: fButtonDeclarations.FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), index.h("div", { key: '9facac39033ec246e9956fd4ee0be2fce5361566', class: "droparea", ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
10110
10070
|
? __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10111
|
-
: null), index.h("div", { key: '
|
|
10071
|
+
: null), index.h("div", { key: '39c7f61aa191bf964ff6c6ad35919cae01863c7f', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10112
10072
|
? [
|
|
10113
10073
|
index.h("div", { class: "settings-trigger", onClick: () => {
|
|
10114
10074
|
__classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10117,7 +10077,7 @@ const KupDataTable = class {
|
|
|
10117
10077
|
} }, index.h(fImage.FImage, { color: `var(${kupManager$1.KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10118
10078
|
this.renderCustomizePanel(),
|
|
10119
10079
|
]
|
|
10120
|
-
: null, index.h("table", { key: '
|
|
10080
|
+
: null, index.h("table", { key: 'ba49043f8cc8e2bc160b313c590fa330a63ee4de', class: tableClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
|
|
10121
10081
|
ev.stopPropagation();
|
|
10122
10082
|
}, onPointerDown: (e) => {
|
|
10123
10083
|
__classPrivateFieldSet$3(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -10125,7 +10085,7 @@ const KupDataTable = class {
|
|
|
10125
10085
|
__classPrivateFieldSet$3(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
10126
10086
|
}, onContextMenu: (e) => {
|
|
10127
10087
|
e.preventDefault();
|
|
10128
|
-
} }, index.h("thead", { key: '
|
|
10088
|
+
} }, index.h("thead", { key: 'fed053b884d7536e7b98bb369287a7fa0d09425b', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, index.h("tr", { key: 'c64f1ff4ac83b0bf529ace7f2c1eaab7458577bc' }, header)), index.h("tbody", { key: 'a7224a1e949d4d1402cd050f2da707798626eeb5' }, rows), this.showFooter || __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
|
|
10129
10089
|
? this.renderFooter()
|
|
10130
10090
|
: null), stickyEl), paginatorBottom)));
|
|
10131
10091
|
return compCreated;
|
|
@@ -10168,7 +10128,7 @@ const KupDataTable = class {
|
|
|
10168
10128
|
"transpose": ["recalculateData"]
|
|
10169
10129
|
}; }
|
|
10170
10130
|
};
|
|
10171
|
-
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_originalDataLoaded = new WeakMap(), _KupDataTable_originalDataLoadedMaxId = new WeakMap(), _KupDataTable_insertedRowIds = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_lastPointerDetails = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_actionsCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_dropDownActionCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_lastFocusedRow = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_eventBlurNames = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_handleUpdateClick = new WeakMap(),
|
|
10131
|
+
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_originalDataLoaded = new WeakMap(), _KupDataTable_originalDataLoadedMaxId = new WeakMap(), _KupDataTable_insertedRowIds = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_lastPointerDetails = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_actionsCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_dropDownActionCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_lastFocusedRow = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_eventBlurNames = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_handleUpdateClick = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
|
|
10172
10132
|
__classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$6(this, _KupDataTable_columnDropCard, "f"));
|
|
10173
10133
|
__classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$6(this, _KupDataTable_clickCbDropCard, "f"));
|
|
10174
10134
|
__classPrivateFieldGet$6(this, _KupDataTable_columnDropCard, "f").remove();
|
|
@@ -11882,6 +11842,20 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11882
11842
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
11883
11843
|
columns.splice(receivingColumnIndex, 0, remove[0]);
|
|
11884
11844
|
this.refresh();
|
|
11845
|
+
}, _KupDataTable_onBlurHandler = function _KupDataTable_onBlurHandler({ detail: { cell, column, row }, }) {
|
|
11846
|
+
var _a, _b, _c;
|
|
11847
|
+
if (this.updatableData &&
|
|
11848
|
+
cell.isEditable &&
|
|
11849
|
+
((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkValueOnExit) &&
|
|
11850
|
+
((_c = (_b = __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f").rows.find((r) => r.id == row.id)) === null || _b === void 0 ? void 0 : _b.cells[column.name]) === null || _c === void 0 ? void 0 : _c.value) !== cell.value) {
|
|
11851
|
+
this.kupCellCheck.emit({
|
|
11852
|
+
comp: this,
|
|
11853
|
+
id: this.rootElement.id,
|
|
11854
|
+
originalData: __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"),
|
|
11855
|
+
updatedData: kupDataTableHelper.getDiffData(__classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
11856
|
+
cell: cell,
|
|
11857
|
+
});
|
|
11858
|
+
}
|
|
11885
11859
|
}, _KupDataTable_applyLineBreaks = function _KupDataTable_applyLineBreaks(content) {
|
|
11886
11860
|
if (!content) {
|
|
11887
11861
|
return '';
|
|
@@ -12234,7 +12208,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12234
12208
|
}
|
|
12235
12209
|
// Renders plain rows cells
|
|
12236
12210
|
const cells = visibleColumns.map((currentColumn, cellIndex) => {
|
|
12237
|
-
var _a
|
|
12211
|
+
var _a;
|
|
12238
12212
|
const { name, hideValuesRepetitions } = currentColumn;
|
|
12239
12213
|
const indend = [];
|
|
12240
12214
|
if (cellIndex === 0) {
|
|
@@ -12266,13 +12240,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12266
12240
|
},
|
|
12267
12241
|
}
|
|
12268
12242
|
: null });
|
|
12269
|
-
const cellType = dom$1.ketchup.data.cell.getType(cell, cell.shape);
|
|
12270
|
-
if (this.updatableData &&
|
|
12271
|
-
cell.isEditable &&
|
|
12272
|
-
((_b = cell.inputSettings) === null || _b === void 0 ? void 0 : _b.checkValueOnExit) &&
|
|
12273
|
-
__classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurByCellType, "f").call(this, cellType)) {
|
|
12274
|
-
__classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurByCellType, "f").call(this, cellType)(cell, row.id, currentColumn.name);
|
|
12275
|
-
}
|
|
12276
12243
|
const jsxCell = index.h(fCell.FCell, Object.assign({}, fcell));
|
|
12277
12244
|
// Classes which will be set onto the single data-table cell;
|
|
12278
12245
|
let cellClass = null;
|