@sme.up/ketchup 11.0.0-SNAPSHOT-20241206132732 → 11.0.0-SNAPSHOT-20241206152412
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/kup-autocomplete_28.cjs.entry.js +181 -114
- package/dist/collection/components/kup-data-table/kup-data-table.js +100 -13
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +3 -3
- package/dist/components/kup-accordion.js +1 -1
- package/dist/components/kup-activity-timeline.js +1 -1
- 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 +1 -1
- package/dist/components/kup-card-list.js +2 -2
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +2 -2
- package/dist/components/kup-lazy.js +1 -1
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +3 -3
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-object-field.js +1 -1
- package/dist/components/kup-pdf.js +1 -1
- package/dist/components/kup-photo-frame.js +1 -1
- package/dist/components/kup-planner.js +1 -1
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +1 -1
- package/dist/components/kup-typography-list.js +1 -1
- package/dist/components/kup-typography.js +1 -1
- package/dist/components/{p-73c7c7b5.js → p-1a3e379e.js} +256 -189
- package/dist/components/{p-114c9818.js → p-3c88823e.js} +1 -1
- package/dist/components/{p-cea40dca.js → p-aa96c6a8.js} +1 -1
- package/dist/components/{p-6c871eb1.js → p-e531a5c7.js} +1 -1
- package/dist/components/{p-1aca791c.js → p-eef2c533.js} +1 -1
- package/dist/esm/{f-cell-205e11d7.js → f-cell-473e7292.js} +4 -4
- package/dist/esm/{f-chip-b6ce9d23.js → f-chip-b4cab768.js} +1 -1
- package/dist/esm/{f-object-field-9aedb15c.js → f-object-field-ec48f9ef.js} +2 -2
- package/dist/esm/{f-paginator-utils-58d431d0.js → f-paginator-utils-0cadfff8.js} +1 -1
- package/dist/esm/{f-text-field-6f591b7b.js → f-text-field-9d225f15.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 +188 -121
- 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-cbb97117.js → kup-data-table-helper-9056d136.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 +5 -5
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-127fb2fb.js → kup-manager-a6bd3ba5.js} +1 -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-45df9a0b.entry.js → p-0bbe1a3c.entry.js} +1 -1
- package/dist/ketchup/{p-14f94f98.entry.js → p-0d59d17c.entry.js} +1 -1
- package/dist/ketchup/{p-6c957751.entry.js → p-0f38aae2.entry.js} +1 -1
- package/dist/ketchup/{p-ca15c303.entry.js → p-1c987dc4.entry.js} +1 -1
- package/dist/ketchup/{p-06389a63.entry.js → p-1deac00c.entry.js} +1 -1
- package/dist/ketchup/{p-2573e4b8.entry.js → p-2ca6e6e6.entry.js} +1 -1
- package/dist/ketchup/{p-6fc2bc44.js → p-306f088a.js} +1 -1
- package/dist/ketchup/{p-3921a0a8.entry.js → p-364de6af.entry.js} +1 -1
- package/dist/ketchup/{p-5c36597d.entry.js → p-3838e3bc.entry.js} +1 -1
- package/dist/ketchup/{p-797902ed.entry.js → p-3c28612e.entry.js} +1 -1
- package/dist/ketchup/{p-6680546a.js → p-5bb20f79.js} +1 -1
- package/dist/ketchup/{p-391f53b3.js → p-5dd9db36.js} +1 -1
- package/dist/ketchup/{p-b58199aa.entry.js → p-6065c7ea.entry.js} +1 -1
- package/dist/ketchup/{p-055c4315.entry.js → p-654f4371.entry.js} +1 -1
- package/dist/ketchup/{p-27d6b90f.js → p-766322e7.js} +1 -1
- package/dist/ketchup/{p-f72bdfba.entry.js → p-7c6617cd.entry.js} +1 -1
- package/dist/ketchup/p-7d2bf463.entry.js +1 -0
- package/dist/ketchup/{p-074ccc28.entry.js → p-7d861b3f.entry.js} +1 -1
- package/dist/ketchup/{p-4de1ab66.entry.js → p-8ea5b4e1.entry.js} +1 -1
- package/dist/ketchup/p-967725d6.js +1 -0
- package/dist/ketchup/{p-c3e55f0c.entry.js → p-96b8affd.entry.js} +1 -1
- package/dist/ketchup/{p-62e0c101.entry.js → p-9caab26b.entry.js} +1 -1
- package/dist/ketchup/{p-6d4ad1d2.entry.js → p-9d5da416.entry.js} +1 -1
- package/dist/ketchup/{p-aefa6b82.entry.js → p-a1eee0fe.entry.js} +1 -1
- package/dist/ketchup/p-a7ad25c7.js +1 -0
- package/dist/ketchup/{p-8cf46021.js → p-b3ed9c7c.js} +1 -1
- package/dist/ketchup/{p-a9643593.entry.js → p-c1fee10a.entry.js} +1 -1
- package/dist/ketchup/{p-8eae0436.entry.js → p-cd9a87b4.entry.js} +1 -1
- package/dist/ketchup/{p-5a3503f8.entry.js → p-ce0dc924.entry.js} +1 -1
- package/dist/ketchup/{p-cba873a6.entry.js → p-d3315a59.entry.js} +1 -1
- package/dist/ketchup/p-d38ae1bc.entry.js +9 -0
- package/dist/ketchup/p-d430d01f.entry.js +1 -0
- package/dist/ketchup/{p-c7b33eec.entry.js → p-d8b3aab2.entry.js} +1 -1
- package/dist/ketchup/{p-e5bd0d63.entry.js → p-e51cc822.entry.js} +1 -1
- package/dist/ketchup/{p-65f3da2f.entry.js → p-e548cddc.entry.js} +1 -1
- package/dist/ketchup/{p-005a8c68.entry.js → p-e8c7d616.entry.js} +1 -1
- package/dist/ketchup/{p-4e145062.entry.js → p-f080102e.entry.js} +1 -1
- package/dist/ketchup/{p-4d756c13.entry.js → p-f70a52fa.entry.js} +1 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +5 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +2 -1
- package/dist/types/components.d.ts +4 -2
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ketchup/p-085afbad.entry.js +0 -1
- package/dist/ketchup/p-1343ec57.entry.js +0 -9
- package/dist/ketchup/p-d4dd6b27.js +0 -1
- package/dist/ketchup/p-d558fd20.js +0 -1
- package/dist/ketchup/p-e6a51a05.entry.js +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement$1, F as Fragment } from './index-c1a3792b.js';
|
|
2
|
-
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeIconValues, c as KupDynamicPositionPlacement, d as KupThemeColorValues, e as KupDebugCategory, F as FCellShapes, f as FCellPadding, h as KupLanguageGeneric, i as fillString, j as KupCardBuiltInClockElements, l as KupCardCSSClasses, m as KupLanguageTotals, n as KupLanguageColumn, o as KupDataNewColumnTypes, p as KupCardSubEvents, q as KupCardIds, r as KupLanguageRow, t as KupCardFamily, u as KupCardProps, v as getColumnByName, w as formatToNumber, x as KupObjects, y as identify, G as GroupLabelDisplayMode, S as SelectionMode, z as KupLanguageGrouping, A as KupLanguageCheckbox, B as getValueForDisplay2, C as Filters, D as getValueForDisplay, E as KupLanguageSearch, H as FilterInterval, L as LoadMoreMode, P as PaginatorPos,
|
|
3
|
-
import { F as FTextField } from './f-text-field-
|
|
2
|
+
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeIconValues, c as KupDynamicPositionPlacement, d as KupThemeColorValues, e as KupDebugCategory, F as FCellShapes, f as FCellPadding, h as KupLanguageGeneric, i as fillString, j as KupCardBuiltInClockElements, l as KupCardCSSClasses, m as KupLanguageTotals, n as KupLanguageColumn, o as KupDataNewColumnTypes, p as KupCardSubEvents, q as KupCardIds, r as KupLanguageRow, t as KupCardFamily, u as KupCardProps, v as getColumnByName, w as formatToNumber, x as KupObjects, y as identify, G as GroupLabelDisplayMode, S as SelectionMode, z as KupLanguageGrouping, A as KupLanguageCheckbox, B as getValueForDisplay2, C as Filters, D as getValueForDisplay, E as KupLanguageSearch, H as FilterInterval, I as FCellTypes, L as LoadMoreMode, P as PaginatorPos, J as ShowGrid, T as TotalLabel, M as TotalMode, N as kupDynamicPositionAttribute, O as KupPointerEventTypes, Q as kupDraggableColumnAttr, R as kupDragActiveAttr, U as KupDragEffect, V as kupDraggableCellAttr, W as KupDropEventTypes, X as FixedCellsClasses, Y as FixedCellsCSSVarsBase, Z as KupLanguageFontsize, _ as KupLanguageDensity, $ as KupLanguageGrid, a0 as KupDataTableProps, a1 as DataTableAreasEnum, a2 as SortMode, a3 as iconColumn, a4 as keyColumn, a5 as fieldColumn, a6 as addColumnValueFromRow, a7 as KupGlobalFilterMode } from './kup-manager-a6bd3ba5.js';
|
|
3
|
+
import { F as FTextField } from './f-text-field-9d225f15.js';
|
|
4
4
|
import { F as FTextFieldMDC } from './f-text-field-mdc-81ce6c7c.js';
|
|
5
|
-
import { I as ItemsDisplayMode, F as FCell, K as KupListRole, a as KupListProps, b as FProgressBar, c as FRadio, d as FRating, e as FSwitchSizing, f as FSwitch } from './f-cell-
|
|
5
|
+
import { I as ItemsDisplayMode, F as FCell, K as KupListRole, a as KupListProps, b as FProgressBar, c as FRadio, d as FRating, e as FSwitchSizing, f as FSwitch } from './f-cell-473e7292.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
7
|
import { F as FImage } from './f-image-5009e205.js';
|
|
8
8
|
import { F as FButton } from './f-button-91d64c91.js';
|
|
9
9
|
import { F as FButtonAlign, a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
10
10
|
import { d as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './kup-dates-4b58eae6.js';
|
|
11
|
-
import { F as FChipType, a as FChipSize, b as FChipStyling, c as FChip } from './f-chip-
|
|
11
|
+
import { F as FChipType, a as FChipSize, b as FChipStyling, c as FChip } from './f-chip-b4cab768.js';
|
|
12
12
|
import { M as MDCRipple } from './component-a35bc7f1.js';
|
|
13
13
|
import { F as FCheckbox } from './f-checkbox-889de715.js';
|
|
14
|
-
import { F as FiltersColumnMenu, a as FiltersRows, g as getDiffData, d as decorateDataTable, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, b as groupRows, s as sortRows, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './kup-data-table-helper-
|
|
15
|
-
import { F as FPaginator, p as pageChange, r as rowsPerPageChange } from './f-paginator-utils-
|
|
16
|
-
import './f-object-field-
|
|
14
|
+
import { F as FiltersColumnMenu, a as FiltersRows, g as getDiffData, d as decorateDataTable, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, b as groupRows, s as sortRows, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './kup-data-table-helper-9056d136.js';
|
|
15
|
+
import { F as FPaginator, p as pageChange, r as rowsPerPageChange } from './f-paginator-utils-0cadfff8.js';
|
|
16
|
+
import './f-object-field-ec48f9ef.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Props of the kup-autocomplete component.
|
|
@@ -1193,7 +1193,7 @@ const KupButtonList = class {
|
|
|
1193
1193
|
};
|
|
1194
1194
|
KupButtonList.style = KupButtonListStyle0;
|
|
1195
1195
|
|
|
1196
|
-
const dom$
|
|
1196
|
+
const dom$c = document.documentElement;
|
|
1197
1197
|
/**
|
|
1198
1198
|
* 1st box card layout, it can be used as a key-value grid list.
|
|
1199
1199
|
* @param {KupCard} component - Card component.
|
|
@@ -1288,8 +1288,8 @@ function create4$4(component) {
|
|
|
1288
1288
|
let value = null;
|
|
1289
1289
|
for (let index = 0; index < cells.length; index++) {
|
|
1290
1290
|
const cell = cells[index];
|
|
1291
|
-
const isImage = dom$
|
|
1292
|
-
dom$
|
|
1291
|
+
const isImage = dom$c.ketchup.objects.isImage(cell.obj) ||
|
|
1292
|
+
dom$c.ketchup.objects.isIcon(cell.obj) ||
|
|
1293
1293
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
1294
1294
|
if (!image && isImage) {
|
|
1295
1295
|
image = index;
|
|
@@ -1346,8 +1346,8 @@ function create5$4(component) {
|
|
|
1346
1346
|
for (let index = 0; index < cells.length; index++) {
|
|
1347
1347
|
const cell = cells[index];
|
|
1348
1348
|
const column = component.data.columns[index];
|
|
1349
|
-
const isImage = dom$
|
|
1350
|
-
dom$
|
|
1349
|
+
const isImage = dom$c.ketchup.objects.isImage(cell.obj) ||
|
|
1350
|
+
dom$c.ketchup.objects.isIcon(cell.obj) ||
|
|
1351
1351
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
1352
1352
|
if (!imageProps && isImage) {
|
|
1353
1353
|
imageProps = {
|
|
@@ -1399,8 +1399,8 @@ function create6$4(component) {
|
|
|
1399
1399
|
for (let index = 0; index < cells.length; index++) {
|
|
1400
1400
|
const cell = cells[index];
|
|
1401
1401
|
const column = component.data.columns[index];
|
|
1402
|
-
const isImage = dom$
|
|
1403
|
-
dom$
|
|
1402
|
+
const isImage = dom$c.ketchup.objects.isImage(cell.obj) ||
|
|
1403
|
+
dom$c.ketchup.objects.isIcon(cell.obj) ||
|
|
1404
1404
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
1405
1405
|
if (!image && isImage) {
|
|
1406
1406
|
image = index;
|
|
@@ -1495,7 +1495,7 @@ var SourceEvent;
|
|
|
1495
1495
|
SourceEvent["YEAR"] = "year";
|
|
1496
1496
|
})(SourceEvent || (SourceEvent = {}));
|
|
1497
1497
|
|
|
1498
|
-
const dom$
|
|
1498
|
+
const dom$b = document.documentElement;
|
|
1499
1499
|
const kupManager = kupManagerInstance();
|
|
1500
1500
|
function prepareCalendar(component) {
|
|
1501
1501
|
const el = component.rootElement;
|
|
@@ -1528,7 +1528,7 @@ function prepareCalendar(component) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
if (!el.kupData.value)
|
|
1530
1530
|
setValue$2(component, new Date());
|
|
1531
|
-
const months = dom$
|
|
1531
|
+
const months = dom$b.ketchup.dates.getMonthsAsString();
|
|
1532
1532
|
const curYear = getYear(component);
|
|
1533
1533
|
const curMonth = getMonth(component);
|
|
1534
1534
|
const yearRange = getInitEndYear(curYear);
|
|
@@ -1672,7 +1672,7 @@ function createCalendar(component) {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
1674
|
function createDaysCalendar(component) {
|
|
1675
|
-
const days = dom$
|
|
1675
|
+
const days = dom$b.ketchup.dates.getDaysOfWeekAsString(getFirstDayIndex(component));
|
|
1676
1676
|
const selectedDate = getValue$1(component);
|
|
1677
1677
|
const selectedDay = getDay(component);
|
|
1678
1678
|
const selectedMonth = getMonth(component);
|
|
@@ -1759,7 +1759,7 @@ function createDaysCalendar(component) {
|
|
|
1759
1759
|
h("tbody", null, tbody))));
|
|
1760
1760
|
}
|
|
1761
1761
|
function createMonthsCalendar(component) {
|
|
1762
|
-
const months = dom$
|
|
1762
|
+
const months = dom$b.ketchup.dates.getMonthsAsString(KupDateTimeFormatOptionsMonth.SHORT);
|
|
1763
1763
|
let selectedDay = getDay(component);
|
|
1764
1764
|
const selectedMonth = getMonth(component);
|
|
1765
1765
|
const selectedYear = getYear(component);
|
|
@@ -1910,7 +1910,7 @@ function refresh(component) {
|
|
|
1910
1910
|
}
|
|
1911
1911
|
function onCalendarMonthYearItemClick(component, value) {
|
|
1912
1912
|
let d;
|
|
1913
|
-
if (dom$
|
|
1913
|
+
if (dom$b.ketchup.dates.isIsoDate(value)) {
|
|
1914
1914
|
d = new Date(value);
|
|
1915
1915
|
}
|
|
1916
1916
|
else {
|
|
@@ -1932,7 +1932,7 @@ function onCalendarMonthYearItemClick(component, value) {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
function onCalendarItemClick(component, value) {
|
|
1934
1934
|
let d;
|
|
1935
|
-
if (dom$
|
|
1935
|
+
if (dom$b.ketchup.dates.isIsoDate(value)) {
|
|
1936
1936
|
d = new Date(value);
|
|
1937
1937
|
}
|
|
1938
1938
|
else {
|
|
@@ -1948,7 +1948,7 @@ function setDateToday(component) {
|
|
|
1948
1948
|
refresh(component);
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
1951
|
-
const dom$
|
|
1951
|
+
const dom$a = document.documentElement;
|
|
1952
1952
|
function prepareClock(component) {
|
|
1953
1953
|
const el = component.rootElement;
|
|
1954
1954
|
el.kupData = {};
|
|
@@ -2063,7 +2063,7 @@ function onKupBlur(component) {
|
|
|
2063
2063
|
function createClock(component) {
|
|
2064
2064
|
let selectedTime;
|
|
2065
2065
|
if (getValue(component)) {
|
|
2066
|
-
selectedTime = dom$
|
|
2066
|
+
selectedTime = dom$a.ketchup.dates.toDate(getValue(component), isManageSeconds(component)
|
|
2067
2067
|
? KupDatesFormats.ISO_TIME
|
|
2068
2068
|
: KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
|
|
2069
2069
|
}
|
|
@@ -2265,7 +2265,7 @@ function setClockTime(e, component) {
|
|
|
2265
2265
|
e.target.classList.add('selected');
|
|
2266
2266
|
}
|
|
2267
2267
|
|
|
2268
|
-
const dom$
|
|
2268
|
+
const dom$9 = document.documentElement;
|
|
2269
2269
|
const premadeFormulas = [
|
|
2270
2270
|
KupLanguageTotals.AVERAGE,
|
|
2271
2271
|
KupLanguageTotals.DIFFERENCE,
|
|
@@ -2280,7 +2280,7 @@ function prepareColumnDropMenu(component) {
|
|
|
2280
2280
|
const column = options.data.columns[index];
|
|
2281
2281
|
if (column.visible !== false &&
|
|
2282
2282
|
column.obj &&
|
|
2283
|
-
dom$
|
|
2283
|
+
dom$9.ketchup.objects.isNumber(column.obj)) {
|
|
2284
2284
|
chipData.push({
|
|
2285
2285
|
obj: column.obj,
|
|
2286
2286
|
value: column.name,
|
|
@@ -2296,7 +2296,7 @@ function prepareColumnDropMenu(component) {
|
|
|
2296
2296
|
if (options.enableFormula) {
|
|
2297
2297
|
combobox = prepareCombobox(options, numericalColumnsExist);
|
|
2298
2298
|
if (numericalColumnsExist) {
|
|
2299
|
-
button = (h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom$
|
|
2299
|
+
button = (h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom$9.ketchup.language.translate(KupLanguageTotals.CALCULATE), styling: FButtonStyling.OUTLINED }));
|
|
2300
2300
|
chipSet = (h("div", { class: "sub-chip" },
|
|
2301
2301
|
h("kup-chip", { data: chipData, "onKup-chip-click": (e) => typeColumn(e, component) })));
|
|
2302
2302
|
}
|
|
@@ -2309,35 +2309,35 @@ function prepareList(options) {
|
|
|
2309
2309
|
listData.push({
|
|
2310
2310
|
icon: 'library_add',
|
|
2311
2311
|
id: KupLanguageGeneric.MERGE,
|
|
2312
|
-
value: dom$
|
|
2312
|
+
value: dom$9.ketchup.language.translate(KupLanguageGeneric.MERGE),
|
|
2313
2313
|
});
|
|
2314
2314
|
}
|
|
2315
2315
|
if (options.enableMove) {
|
|
2316
2316
|
listData.push({
|
|
2317
2317
|
icon: 'swap_horiz',
|
|
2318
2318
|
id: KupLanguageGeneric.MOVE,
|
|
2319
|
-
value: dom$
|
|
2319
|
+
value: dom$9.ketchup.language.translate(KupLanguageGeneric.MOVE),
|
|
2320
2320
|
});
|
|
2321
2321
|
}
|
|
2322
2322
|
return listData.length > 0 ? (h("kup-list", { data: listData, showIcons: true, "onkup-list-click": (e) => listClick(e, options) })) : null;
|
|
2323
2323
|
}
|
|
2324
2324
|
function prepareCombobox(options, numericalColumnsExist) {
|
|
2325
2325
|
const comboListData = [];
|
|
2326
|
-
const numeric = dom$
|
|
2327
|
-
dom$
|
|
2326
|
+
const numeric = dom$9.ketchup.objects.isNumber(options.receivingColumn.obj) &&
|
|
2327
|
+
dom$9.ketchup.objects.isNumber(options.starterColumn.obj);
|
|
2328
2328
|
if (numeric) {
|
|
2329
2329
|
comboListData.push({
|
|
2330
2330
|
id: KupLanguageTotals.AVERAGE,
|
|
2331
|
-
value: dom$
|
|
2331
|
+
value: dom$9.ketchup.language.translate(KupLanguageTotals.AVERAGE),
|
|
2332
2332
|
}, {
|
|
2333
2333
|
id: KupLanguageTotals.DIFFERENCE,
|
|
2334
|
-
value: dom$
|
|
2334
|
+
value: dom$9.ketchup.language.translate(KupLanguageTotals.DIFFERENCE),
|
|
2335
2335
|
}, {
|
|
2336
2336
|
id: KupLanguageTotals.PRODUCT,
|
|
2337
|
-
value: dom$
|
|
2337
|
+
value: dom$9.ketchup.language.translate(KupLanguageTotals.PRODUCT),
|
|
2338
2338
|
}, {
|
|
2339
2339
|
id: KupLanguageTotals.SUM,
|
|
2340
|
-
value: dom$
|
|
2340
|
+
value: dom$9.ketchup.language.translate(KupLanguageTotals.SUM),
|
|
2341
2341
|
}, {
|
|
2342
2342
|
id: `([${options.starterColumn.name}]/[${options.receivingColumn.name}])*100`,
|
|
2343
2343
|
value: `[${options.starterColumn.name}] / [${options.receivingColumn.name}] * 100`,
|
|
@@ -2349,7 +2349,7 @@ function prepareCombobox(options, numericalColumnsExist) {
|
|
|
2349
2349
|
else {
|
|
2350
2350
|
comboListData.push({
|
|
2351
2351
|
id: KupLanguageColumn.NO_FORMULA,
|
|
2352
|
-
value: dom$
|
|
2352
|
+
value: dom$9.ketchup.language.translate(KupLanguageColumn.NO_FORMULA),
|
|
2353
2353
|
});
|
|
2354
2354
|
}
|
|
2355
2355
|
const comboData = {
|
|
@@ -2359,11 +2359,11 @@ function prepareCombobox(options, numericalColumnsExist) {
|
|
|
2359
2359
|
},
|
|
2360
2360
|
'kup-text-field': {
|
|
2361
2361
|
helper: !numericalColumnsExist
|
|
2362
|
-
? dom$
|
|
2362
|
+
? dom$9.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL_IN_TABLE)
|
|
2363
2363
|
: numeric
|
|
2364
2364
|
? `i.e.: [${options.receivingColumn.name}] - [${options.starterColumn.name}] + 1`
|
|
2365
|
-
: dom$
|
|
2366
|
-
label: dom$
|
|
2365
|
+
: dom$9.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL),
|
|
2366
|
+
label: dom$9.ketchup.language.translate(KupLanguageTotals.FORMULA),
|
|
2367
2367
|
outlined: true,
|
|
2368
2368
|
},
|
|
2369
2369
|
};
|
|
@@ -2407,7 +2407,7 @@ async function applyFormula(component) {
|
|
|
2407
2407
|
? parts[1].trim()
|
|
2408
2408
|
: valueString;
|
|
2409
2409
|
if (premadeFormulas.includes(value)) {
|
|
2410
|
-
dom$
|
|
2410
|
+
dom$9.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
|
|
2411
2411
|
columns: [
|
|
2412
2412
|
options.receivingColumn.name,
|
|
2413
2413
|
options.starterColumn.name,
|
|
@@ -2422,7 +2422,7 @@ async function applyFormula(component) {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
2424
|
else {
|
|
2425
|
-
const result = dom$
|
|
2425
|
+
const result = dom$9.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
|
|
2426
2426
|
newColumn: hasDescription
|
|
2427
2427
|
? { name: description, title: description }
|
|
2428
2428
|
: undefined,
|
|
@@ -2440,18 +2440,18 @@ async function applyFormula(component) {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
2442
|
|
|
2443
|
-
const dom$
|
|
2443
|
+
const dom$8 = document.documentElement;
|
|
2444
2444
|
function prepareMessageBox(component) {
|
|
2445
2445
|
const options = component.data.options;
|
|
2446
2446
|
const buttonsExist = !!(options.cancelCb || options.confirmCb);
|
|
2447
2447
|
return (h("div", { class: "message-box" },
|
|
2448
2448
|
options.text ? h("div", { class: "text" }, options.text) : null,
|
|
2449
2449
|
buttonsExist ? (h("div", { class: "button-wrapper" },
|
|
2450
|
-
options.cancelCb ? (h(FButton, { icon: "clear", label: dom$
|
|
2451
|
-
options.confirmCb ? (h(FButton, { icon: "check", label: dom$
|
|
2450
|
+
options.cancelCb ? (h(FButton, { icon: "clear", label: dom$8.ketchup.language.translate(KupLanguageGeneric.ABORT), onClick: options.cancelCb, styling: FButtonStyling.FLAT })) : null,
|
|
2451
|
+
options.confirmCb ? (h(FButton, { icon: "check", label: dom$8.ketchup.language.translate(KupLanguageGeneric.CONFIRM), onClick: options.confirmCb })) : null)) : null));
|
|
2452
2452
|
}
|
|
2453
2453
|
|
|
2454
|
-
const dom$
|
|
2454
|
+
const dom$7 = document.documentElement;
|
|
2455
2455
|
function prepareNumeric(component) {
|
|
2456
2456
|
const el = component.rootElement;
|
|
2457
2457
|
if (!el.kupData)
|
|
@@ -2473,7 +2473,7 @@ function prepareNumeric(component) {
|
|
|
2473
2473
|
el.kupData.value = obj.k;
|
|
2474
2474
|
else
|
|
2475
2475
|
el.kupData.value = options.initialValue.toString();
|
|
2476
|
-
el.kupData.localeValue = dom$
|
|
2476
|
+
el.kupData.localeValue = dom$7.ketchup.math.numbers.toLocaleString(el.kupData.value);
|
|
2477
2477
|
}
|
|
2478
2478
|
options.resetStatus = false;
|
|
2479
2479
|
}
|
|
@@ -2548,7 +2548,7 @@ function setSign(component) {
|
|
|
2548
2548
|
return;
|
|
2549
2549
|
strVal = '-' + strVal;
|
|
2550
2550
|
el.kupData.value = strVal;
|
|
2551
|
-
el.kupData.localeValue = dom$
|
|
2551
|
+
el.kupData.localeValue = dom$7.ketchup.math.numbers.toLocaleString(strVal);
|
|
2552
2552
|
component.refresh();
|
|
2553
2553
|
}
|
|
2554
2554
|
function setValue(component, value) {
|
|
@@ -2585,7 +2585,7 @@ function setValue(component, value) {
|
|
|
2585
2585
|
return;
|
|
2586
2586
|
strVal += value;
|
|
2587
2587
|
el.kupData.value = strVal;
|
|
2588
|
-
el.kupData.localeValue = dom$
|
|
2588
|
+
el.kupData.localeValue = dom$7.ketchup.math.numbers.toLocaleString(strVal);
|
|
2589
2589
|
component.refresh();
|
|
2590
2590
|
}
|
|
2591
2591
|
function clearValue(component) {
|
|
@@ -2595,14 +2595,14 @@ function clearValue(component) {
|
|
|
2595
2595
|
component.refresh();
|
|
2596
2596
|
}
|
|
2597
2597
|
function getDecimalChar() {
|
|
2598
|
-
return (0.1).toLocaleString(dom$
|
|
2598
|
+
return (0.1).toLocaleString(dom$7.ketchup.math.locale).substring(1, 2);
|
|
2599
2599
|
}
|
|
2600
2600
|
function saveValue(component) {
|
|
2601
2601
|
const el = component.rootElement;
|
|
2602
2602
|
component.onKupClick(component.rootElement.id, el.kupData.value ? Number(el.kupData.value).toString() : '');
|
|
2603
2603
|
}
|
|
2604
2604
|
|
|
2605
|
-
const dom$
|
|
2605
|
+
const dom$6 = document.documentElement;
|
|
2606
2606
|
let inputArea = null;
|
|
2607
2607
|
let clearButton = null;
|
|
2608
2608
|
let submitButton = null;
|
|
@@ -2668,8 +2668,8 @@ function prepareOpenAIInterface(component) {
|
|
|
2668
2668
|
fun = fun.replace(']#', '');
|
|
2669
2669
|
}
|
|
2670
2670
|
result.push(h("div", { class: "fun", title: "Execute FUN.", onClick: () => {
|
|
2671
|
-
if (dom$
|
|
2672
|
-
dom$
|
|
2671
|
+
if (dom$6.ketchup.openAI.onFunClick) {
|
|
2672
|
+
dom$6.ketchup.openAI.onFunClick(fun);
|
|
2673
2673
|
}
|
|
2674
2674
|
} }, fun));
|
|
2675
2675
|
lastIndex = match.index + match[0].length;
|
|
@@ -3095,7 +3095,7 @@ const collapsibleLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3095
3095
|
create2: create2$4
|
|
3096
3096
|
});
|
|
3097
3097
|
|
|
3098
|
-
const dom$
|
|
3098
|
+
const dom$5 = document.documentElement;
|
|
3099
3099
|
/**
|
|
3100
3100
|
* 1st dialog card layout, used to display information in string format.
|
|
3101
3101
|
* @param {KupCard} component - Card component.
|
|
@@ -3189,8 +3189,8 @@ function create4$2(component) {
|
|
|
3189
3189
|
return (h("div", { class: `dialog-layout-${component.layoutNumber} dialog-element` },
|
|
3190
3190
|
textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''),
|
|
3191
3191
|
datatableArray[0] && buttonArray[0] && buttonArray[1] ? (h("div", { class: "section-1" },
|
|
3192
|
-
h("kup-button", Object.assign({}, buttonArray[0], { id: KupCardIds.PREVIOUS_ROW, "onkup-button-click": () => prevButton(component), title: dom$
|
|
3193
|
-
h("kup-button", Object.assign({}, buttonArray[1], { id: KupCardIds.NEXT_ROW, "onkup-button-click": () => nextButton(component), title: dom$
|
|
3192
|
+
h("kup-button", Object.assign({}, buttonArray[0], { id: KupCardIds.PREVIOUS_ROW, "onkup-button-click": () => prevButton(component), title: dom$5.ketchup.language.translate(KupLanguageRow.PREVIOUS) })),
|
|
3193
|
+
h("kup-button", Object.assign({}, buttonArray[1], { id: KupCardIds.NEXT_ROW, "onkup-button-click": () => nextButton(component), title: dom$5.ketchup.language.translate(KupLanguageRow.NEXT) })))) : null,
|
|
3194
3194
|
datatableArray[0] ? (h("div", { class: "section-2" },
|
|
3195
3195
|
h("kup-data-table", Object.assign({ id: "datatable1" }, datatableArray[0])))) : null));
|
|
3196
3196
|
}
|
|
@@ -3375,7 +3375,7 @@ const freeLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3375
3375
|
create2: create2$2
|
|
3376
3376
|
});
|
|
3377
3377
|
|
|
3378
|
-
const dom$
|
|
3378
|
+
const dom$4 = document.documentElement;
|
|
3379
3379
|
/**
|
|
3380
3380
|
* 1st scalable card layout, column of 2 texts.
|
|
3381
3381
|
* @param {KupCard} component - Card component.
|
|
@@ -3425,7 +3425,7 @@ function create2$1(component) {
|
|
|
3425
3425
|
h("div", { style: colorArray[1] ? { color: colorArray[1] } : undefined },
|
|
3426
3426
|
textArray[0] ? textArray[0] : '',
|
|
3427
3427
|
textArray[1]
|
|
3428
|
-
? dom$
|
|
3428
|
+
? dom$4.ketchup.math.decimalSeparator()
|
|
3429
3429
|
: '')),
|
|
3430
3430
|
textArray[1] ? (h("div", { class: "value-dec" },
|
|
3431
3431
|
h("div", { style: colorArray[1]
|
|
@@ -3486,7 +3486,7 @@ function create4$1(component) {
|
|
|
3486
3486
|
: undefined },
|
|
3487
3487
|
textArray[0] ? textArray[0] : '',
|
|
3488
3488
|
textArray[1]
|
|
3489
|
-
? dom$
|
|
3489
|
+
? dom$4.ketchup.math.decimalSeparator()
|
|
3490
3490
|
: '')),
|
|
3491
3491
|
textArray[1] ? (h("div", { class: "value-dec" },
|
|
3492
3492
|
h("div", { style: colorArray[1]
|
|
@@ -3786,7 +3786,7 @@ const scalableLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3786
3786
|
create11: create11$1
|
|
3787
3787
|
});
|
|
3788
3788
|
|
|
3789
|
-
const dom$
|
|
3789
|
+
const dom$3 = document.documentElement;
|
|
3790
3790
|
/**
|
|
3791
3791
|
* 1st standard card layout, inspired by Material Design.
|
|
3792
3792
|
* @param {KupCard} component - Card component.
|
|
@@ -4539,7 +4539,7 @@ function create15(component) {
|
|
|
4539
4539
|
const button = genericButtons[index];
|
|
4540
4540
|
props.data['kup-list'].data.push(Object.assign(Object.assign({}, button), { value: button.title }));
|
|
4541
4541
|
}
|
|
4542
|
-
return (h("kup-dropdown-button", Object.assign({}, props, { title: dom$
|
|
4542
|
+
return (h("kup-dropdown-button", Object.assign({}, props, { title: dom$3.ketchup.language.translate(KupLanguageGeneric.OPTIONS) })));
|
|
4543
4543
|
};
|
|
4544
4544
|
return (h("div", { class: `standard-layout-${component.layoutNumber}` },
|
|
4545
4545
|
h("div", { class: "section-1" },
|
|
@@ -4572,7 +4572,7 @@ function create15(component) {
|
|
|
4572
4572
|
genericButtons.length > 0 ? (h("div", { class: "section-3" },
|
|
4573
4573
|
compList(genericButtons.slice(0, 5), 'button'),
|
|
4574
4574
|
genericButtons.length > 5 ? createDropdown() : null,
|
|
4575
|
-
treeArray[0] ? (h("kup-button", { title: dom$
|
|
4575
|
+
treeArray[0] ? (h("kup-button", { title: dom$3.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" })) : null)) : null));
|
|
4576
4576
|
}
|
|
4577
4577
|
/**
|
|
4578
4578
|
* 16th standard card layout, it can be used as the toolbar.
|
|
@@ -7825,7 +7825,7 @@ class KupDataTableState {
|
|
|
7825
7825
|
}
|
|
7826
7826
|
}
|
|
7827
7827
|
|
|
7828
|
-
const dom$
|
|
7828
|
+
const dom$2 = document.documentElement;
|
|
7829
7829
|
/**
|
|
7830
7830
|
* Definition and events of the column menu card.
|
|
7831
7831
|
* @module KupColumnMenu
|
|
@@ -7850,8 +7850,8 @@ class KupColumnMenu {
|
|
|
7850
7850
|
*/
|
|
7851
7851
|
close(card) {
|
|
7852
7852
|
card.menuVisible = false;
|
|
7853
|
-
dom$
|
|
7854
|
-
dom$
|
|
7853
|
+
dom$2.ketchup.removeClickCallback(this.clickCb);
|
|
7854
|
+
dom$2.ketchup.dynamicPosition.stop(card);
|
|
7855
7855
|
}
|
|
7856
7856
|
/**
|
|
7857
7857
|
* Function called to reposition the column menu card to the appropriate column.
|
|
@@ -7863,11 +7863,11 @@ class KupColumnMenu {
|
|
|
7863
7863
|
if (card) {
|
|
7864
7864
|
const column = card.dataset.column;
|
|
7865
7865
|
const wrapper = root.querySelector('th[data-column="' + column + '"]');
|
|
7866
|
-
if (dom$
|
|
7867
|
-
dom$
|
|
7866
|
+
if (dom$2.ketchup.dynamicPosition.isRegistered(card)) {
|
|
7867
|
+
dom$2.ketchup.dynamicPosition.changeAnchor(card, wrapper);
|
|
7868
7868
|
}
|
|
7869
7869
|
else {
|
|
7870
|
-
dom$
|
|
7870
|
+
dom$2.ketchup.dynamicPosition.register(card, wrapper, 0, KupDynamicPositionPlacement.AUTO, true);
|
|
7871
7871
|
}
|
|
7872
7872
|
if (!this.clickCb) {
|
|
7873
7873
|
this.clickCb = {
|
|
@@ -7877,8 +7877,8 @@ class KupColumnMenu {
|
|
|
7877
7877
|
el: card,
|
|
7878
7878
|
};
|
|
7879
7879
|
}
|
|
7880
|
-
dom$
|
|
7881
|
-
dom$
|
|
7880
|
+
dom$2.ketchup.addClickCallback(this.clickCb, true);
|
|
7881
|
+
dom$2.ketchup.dynamicPosition.start(card);
|
|
7882
7882
|
card.menuVisible = true;
|
|
7883
7883
|
}
|
|
7884
7884
|
}
|
|
@@ -7928,8 +7928,8 @@ class KupColumnMenu {
|
|
|
7928
7928
|
icon: 'book',
|
|
7929
7929
|
id: KupColumnMenuIds.BUTTON_GROUP,
|
|
7930
7930
|
title: comp.getGroupByName(column.name) != null
|
|
7931
|
-
? dom$
|
|
7932
|
-
: dom$
|
|
7931
|
+
? dom$2.ketchup.language.translate(KupLanguageGrouping.DISABLE)
|
|
7932
|
+
: dom$2.ketchup.language.translate(KupLanguageGrouping.ENABLE),
|
|
7933
7933
|
});
|
|
7934
7934
|
}
|
|
7935
7935
|
if (comp.removableColumns) {
|
|
@@ -7940,12 +7940,12 @@ class KupColumnMenu {
|
|
|
7940
7940
|
},
|
|
7941
7941
|
icon: 'table-column-remove',
|
|
7942
7942
|
id: KupColumnMenuIds.BUTTON_REMOVE,
|
|
7943
|
-
title: dom$
|
|
7943
|
+
title: dom$2.ketchup.language.translate(KupLanguageColumn.HIDE),
|
|
7944
7944
|
});
|
|
7945
7945
|
}
|
|
7946
7946
|
if (comp.enableExtraColumns &&
|
|
7947
|
-
(dom$
|
|
7948
|
-
dom$
|
|
7947
|
+
(dom$2.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
|
|
7948
|
+
dom$2.ketchup.objects.canObjsHaveExtraColumns(column.objs))) {
|
|
7949
7949
|
props.push({
|
|
7950
7950
|
className: 'printable',
|
|
7951
7951
|
'data-storage': {
|
|
@@ -7953,14 +7953,14 @@ class KupColumnMenu {
|
|
|
7953
7953
|
},
|
|
7954
7954
|
icon: 'table-column-plus-after',
|
|
7955
7955
|
id: KupColumnMenuIds.BUTTON_ADD_COLUMNS,
|
|
7956
|
-
title: dom$
|
|
7956
|
+
title: dom$2.ketchup.language.translate(KupLanguageColumn.ADD),
|
|
7957
7957
|
});
|
|
7958
7958
|
props.push({
|
|
7959
7959
|
className: 'printable',
|
|
7960
|
-
label: dom$
|
|
7960
|
+
label: dom$2.ketchup.language.translate(KupLanguageGeneric.APPLY),
|
|
7961
7961
|
id: KupColumnMenuIds.BUTTON_APPLY,
|
|
7962
7962
|
styling: FButtonStyling.OUTLINED,
|
|
7963
|
-
title: dom$
|
|
7963
|
+
title: dom$2.ketchup.language.translate(KupLanguageGeneric.APPLY),
|
|
7964
7964
|
});
|
|
7965
7965
|
}
|
|
7966
7966
|
return props;
|
|
@@ -7974,8 +7974,8 @@ class KupColumnMenu {
|
|
|
7974
7974
|
prepCheckbox(comp, column) {
|
|
7975
7975
|
const props = [];
|
|
7976
7976
|
if (comp.showFilters &&
|
|
7977
|
-
(dom$
|
|
7978
|
-
dom$
|
|
7977
|
+
(dom$2.ketchup.objects.isStringObject(column.obj) ||
|
|
7978
|
+
dom$2.ketchup.objects.isCheckbox(column.obj))) {
|
|
7979
7979
|
const checkBoxesFilter = this.filtersColumnMenuInstance.getCheckBoxFilterValues(comp.filters, column.name);
|
|
7980
7980
|
const columnValues = comp.getColumnValues(column);
|
|
7981
7981
|
if (columnValues.length > 0) {
|
|
@@ -7987,17 +7987,17 @@ class KupColumnMenu {
|
|
|
7987
7987
|
},
|
|
7988
7988
|
id: KupColumnMenuIds.CHECKBOX_GLOBAL,
|
|
7989
7989
|
key: KupColumnMenuIds.CHECKBOX_GLOBAL + column.name,
|
|
7990
|
-
label: dom$
|
|
7990
|
+
label: dom$2.ketchup.language.translate(KupLanguageCheckbox.ALL),
|
|
7991
7991
|
});
|
|
7992
7992
|
}
|
|
7993
7993
|
for (let index = 0; index < columnValues.length; index++) {
|
|
7994
7994
|
let label = getValueForDisplay2(columnValues[index], column);
|
|
7995
|
-
if (dom$
|
|
7995
|
+
if (dom$2.ketchup.objects.isCheckbox(column.obj)) {
|
|
7996
7996
|
if (columnValues[index].value == '1') {
|
|
7997
|
-
label = dom$
|
|
7997
|
+
label = dom$2.ketchup.language.translate(KupLanguageCheckbox.CHECKED);
|
|
7998
7998
|
}
|
|
7999
7999
|
else {
|
|
8000
|
-
label = dom$
|
|
8000
|
+
label = dom$2.ketchup.language.translate(KupLanguageCheckbox.UNCHECKED);
|
|
8001
8001
|
}
|
|
8002
8002
|
}
|
|
8003
8003
|
props.push({
|
|
@@ -8036,7 +8036,7 @@ class KupColumnMenu {
|
|
|
8036
8036
|
}
|
|
8037
8037
|
}
|
|
8038
8038
|
catch (error) {
|
|
8039
|
-
dom$
|
|
8039
|
+
dom$2.ketchup.debug.logMessage(this, 'Child column not found (' + child.name + ')!' + error, KupDebugCategory.ERROR);
|
|
8040
8040
|
}
|
|
8041
8041
|
chipData.push({
|
|
8042
8042
|
icon: child.icon ? child.icon : null,
|
|
@@ -8064,7 +8064,7 @@ class KupColumnMenu {
|
|
|
8064
8064
|
if (!FiltersColumnMenu.isTree(comp)) {
|
|
8065
8065
|
if (objs &&
|
|
8066
8066
|
objs.length > 0 &&
|
|
8067
|
-
!dom$
|
|
8067
|
+
!dom$2.ketchup.objects.isEmptyKupObj(objs[0])) {
|
|
8068
8068
|
props.push({
|
|
8069
8069
|
'data-storage': {
|
|
8070
8070
|
columnName: column.name,
|
|
@@ -8072,7 +8072,7 @@ class KupColumnMenu {
|
|
|
8072
8072
|
checked: column.isKey ? true : false,
|
|
8073
8073
|
key: KupColumnMenuIds.SWITCH_KEY + column.name,
|
|
8074
8074
|
id: KupColumnMenuIds.SWITCH_KEY,
|
|
8075
|
-
label: dom$
|
|
8075
|
+
label: dom$2.ketchup.language.translate(KupLanguageRow.KEY),
|
|
8076
8076
|
leadingLabel: true,
|
|
8077
8077
|
});
|
|
8078
8078
|
}
|
|
@@ -8085,7 +8085,7 @@ class KupColumnMenu {
|
|
|
8085
8085
|
key: KupColumnMenuIds.SWITCH_GROUP + column.name,
|
|
8086
8086
|
checked: isGroupActive ? true : false,
|
|
8087
8087
|
id: KupColumnMenuIds.SWITCH_GROUP,
|
|
8088
|
-
label: dom$
|
|
8088
|
+
label: dom$2.ketchup.language.translate(KupLanguageGrouping.GROUPS),
|
|
8089
8089
|
leadingLabel: true,
|
|
8090
8090
|
});
|
|
8091
8091
|
}
|
|
@@ -8103,16 +8103,16 @@ class KupColumnMenu {
|
|
|
8103
8103
|
if (comp.showFilters) {
|
|
8104
8104
|
data.push({
|
|
8105
8105
|
id: KupLanguageGeneric.FILTERS,
|
|
8106
|
-
value: dom$
|
|
8106
|
+
value: dom$2.ketchup.language.translate(KupLanguageGeneric.FILTERS),
|
|
8107
8107
|
});
|
|
8108
8108
|
}
|
|
8109
8109
|
if ((comp.enableExtraColumns &&
|
|
8110
|
-
(dom$
|
|
8111
|
-
dom$
|
|
8110
|
+
(dom$2.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
|
|
8111
|
+
dom$2.ketchup.objects.canObjsHaveExtraColumns(column.objs))) ||
|
|
8112
8112
|
comp.removableColumns) {
|
|
8113
8113
|
data.push({
|
|
8114
8114
|
id: KupLanguageColumn.COLUMNS,
|
|
8115
|
-
value: dom$
|
|
8115
|
+
value: dom$2.ketchup.language.translate(KupLanguageColumn.COLUMNS),
|
|
8116
8116
|
});
|
|
8117
8117
|
}
|
|
8118
8118
|
if (!FiltersColumnMenu.isTree(comp)) {
|
|
@@ -8139,7 +8139,7 @@ class KupColumnMenu {
|
|
|
8139
8139
|
if (this.filtersColumnMenuInstance.isColumnFiltrableByInterval(column)) {
|
|
8140
8140
|
props = props.concat(this.prepIntervalTextfield(comp, column));
|
|
8141
8141
|
}
|
|
8142
|
-
else if (dom$
|
|
8142
|
+
else if (dom$2.ketchup.objects.isStringObject(column.obj)) {
|
|
8143
8143
|
let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
|
|
8144
8144
|
filterInitialValue = getValueForDisplay(filterInitialValue, column.obj, column.decimals);
|
|
8145
8145
|
props.push({
|
|
@@ -8151,13 +8151,13 @@ class KupColumnMenu {
|
|
|
8151
8151
|
initialValue: filterInitialValue,
|
|
8152
8152
|
isClearable: true,
|
|
8153
8153
|
key: KupColumnMenuIds.TEXTFIELD_FILTER + column.name,
|
|
8154
|
-
label: dom$
|
|
8154
|
+
label: dom$2.ketchup.language.translate(KupLanguageSearch.SEARCH),
|
|
8155
8155
|
trailingIcon: true,
|
|
8156
8156
|
});
|
|
8157
8157
|
}
|
|
8158
8158
|
}
|
|
8159
8159
|
if (!FiltersColumnMenu.isTree(comp)) {
|
|
8160
|
-
if (dom$
|
|
8160
|
+
if (dom$2.ketchup.objects.isNumber(column.obj) &&
|
|
8161
8161
|
comp.enableColumnsFormula) {
|
|
8162
8162
|
props.push({
|
|
8163
8163
|
fullWidth: true,
|
|
@@ -8165,7 +8165,7 @@ class KupColumnMenu {
|
|
|
8165
8165
|
id: KupColumnMenuIds.TEXTFIELD_FORMULA,
|
|
8166
8166
|
key: KupColumnMenuIds.TEXTFIELD_FORMULA + column.name,
|
|
8167
8167
|
helper: `i.e.: Description;[${column.name}] * 2`,
|
|
8168
|
-
label: dom$
|
|
8168
|
+
label: dom$2.ketchup.language.translate(KupLanguageTotals.FORMULA),
|
|
8169
8169
|
trailingIcon: true,
|
|
8170
8170
|
});
|
|
8171
8171
|
}
|
|
@@ -8183,7 +8183,7 @@ class KupColumnMenu {
|
|
|
8183
8183
|
if (!comp.showFilters) {
|
|
8184
8184
|
return props;
|
|
8185
8185
|
}
|
|
8186
|
-
if (!dom$
|
|
8186
|
+
if (!dom$2.ketchup.objects.isNumber(column.obj)) {
|
|
8187
8187
|
return props;
|
|
8188
8188
|
}
|
|
8189
8189
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8201,7 +8201,7 @@ class KupColumnMenu {
|
|
|
8201
8201
|
key: KupColumnMenuIds.TEXTFIELD_FROM + column.name,
|
|
8202
8202
|
initialValue: initialValueFrom,
|
|
8203
8203
|
isClearable: true,
|
|
8204
|
-
label: dom$
|
|
8204
|
+
label: dom$2.ketchup.language.translate(KupLanguageSearch.FROM),
|
|
8205
8205
|
trailingIcon: true,
|
|
8206
8206
|
});
|
|
8207
8207
|
props.push({
|
|
@@ -8216,7 +8216,7 @@ class KupColumnMenu {
|
|
|
8216
8216
|
key: KupColumnMenuIds.TEXTFIELD_TO + column.name,
|
|
8217
8217
|
initialValue: initialValueTo,
|
|
8218
8218
|
isClearable: true,
|
|
8219
|
-
label: dom$
|
|
8219
|
+
label: dom$2.ketchup.language.translate(KupLanguageSearch.TO),
|
|
8220
8220
|
trailingIcon: true,
|
|
8221
8221
|
});
|
|
8222
8222
|
return props;
|
|
@@ -8232,7 +8232,7 @@ class KupColumnMenu {
|
|
|
8232
8232
|
if (!comp.showFilters) {
|
|
8233
8233
|
return props;
|
|
8234
8234
|
}
|
|
8235
|
-
if (!dom$
|
|
8235
|
+
if (!dom$2.ketchup.objects.isTime(column.obj)) {
|
|
8236
8236
|
return props;
|
|
8237
8237
|
}
|
|
8238
8238
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8251,11 +8251,11 @@ class KupColumnMenu {
|
|
|
8251
8251
|
id: KupColumnMenuIds.TEXTFIELD_FROM,
|
|
8252
8252
|
key: KupColumnMenuIds.TEXTFIELD_FROM + column.name,
|
|
8253
8253
|
isClearable: true,
|
|
8254
|
-
label: dom$
|
|
8254
|
+
label: dom$2.ketchup.language.translate(KupLanguageSearch.FROM),
|
|
8255
8255
|
},
|
|
8256
8256
|
},
|
|
8257
8257
|
initialValue: initialValueFrom,
|
|
8258
|
-
manageSeconds: dom$
|
|
8258
|
+
manageSeconds: dom$2.ketchup.objects.isTimeWithSeconds(column.obj),
|
|
8259
8259
|
});
|
|
8260
8260
|
props.push({
|
|
8261
8261
|
'data-storage': {
|
|
@@ -8270,11 +8270,11 @@ class KupColumnMenu {
|
|
|
8270
8270
|
id: KupColumnMenuIds.TEXTFIELD_TO,
|
|
8271
8271
|
key: KupColumnMenuIds.TEXTFIELD_TO + column.name,
|
|
8272
8272
|
isClearable: true,
|
|
8273
|
-
label: dom$
|
|
8273
|
+
label: dom$2.ketchup.language.translate(KupLanguageSearch.TO),
|
|
8274
8274
|
},
|
|
8275
8275
|
},
|
|
8276
8276
|
initialValue: initialValueTo,
|
|
8277
|
-
manageSeconds: dom$
|
|
8277
|
+
manageSeconds: dom$2.ketchup.objects.isTimeWithSeconds(column.obj),
|
|
8278
8278
|
});
|
|
8279
8279
|
return props;
|
|
8280
8280
|
}
|
|
@@ -8289,8 +8289,8 @@ class KupColumnMenu {
|
|
|
8289
8289
|
if (!comp.showFilters) {
|
|
8290
8290
|
return props;
|
|
8291
8291
|
}
|
|
8292
|
-
if (!dom$
|
|
8293
|
-
!dom$
|
|
8292
|
+
if (!dom$2.ketchup.objects.isDate(column.obj) &&
|
|
8293
|
+
!dom$2.ketchup.objects.isTimestamp(column.obj)) {
|
|
8294
8294
|
return props;
|
|
8295
8295
|
}
|
|
8296
8296
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8298,7 +8298,7 @@ class KupColumnMenu {
|
|
|
8298
8298
|
let initialValueTo = interval[FilterInterval.TO];
|
|
8299
8299
|
let suffixFrom = null;
|
|
8300
8300
|
let suffixTo = null;
|
|
8301
|
-
if (dom$
|
|
8301
|
+
if (dom$2.ketchup.objects.isTimestamp(column.obj)) {
|
|
8302
8302
|
suffixFrom = ' 00:00:00';
|
|
8303
8303
|
suffixTo = ' 23:59:59';
|
|
8304
8304
|
if (initialValueFrom && initialValueFrom.length >= 10) {
|
|
@@ -8328,7 +8328,7 @@ class KupColumnMenu {
|
|
|
8328
8328
|
id: KupColumnMenuIds.TEXTFIELD_FROM,
|
|
8329
8329
|
key: KupColumnMenuIds.TEXTFIELD_FROM + column.name,
|
|
8330
8330
|
isClearable: true,
|
|
8331
|
-
label: dom$
|
|
8331
|
+
label: dom$2.ketchup.language.translate(KupLanguageSearch.FROM),
|
|
8332
8332
|
},
|
|
8333
8333
|
},
|
|
8334
8334
|
initialValue: initialValueFrom,
|
|
@@ -8347,7 +8347,7 @@ class KupColumnMenu {
|
|
|
8347
8347
|
id: KupColumnMenuIds.TEXTFIELD_TO,
|
|
8348
8348
|
key: KupColumnMenuIds.TEXTFIELD_TO + column.name,
|
|
8349
8349
|
isClearable: true,
|
|
8350
|
-
label: dom$
|
|
8350
|
+
label: dom$2.ketchup.language.translate(KupLanguageSearch.TO),
|
|
8351
8351
|
},
|
|
8352
8352
|
},
|
|
8353
8353
|
initialValue: initialValueTo,
|
|
@@ -8463,9 +8463,9 @@ class KupColumnMenu {
|
|
|
8463
8463
|
case 'kup-timepicker-input':
|
|
8464
8464
|
case 'kup-timepicker-itemclick':
|
|
8465
8465
|
switch (compID) {
|
|
8466
|
-
case KupColumnMenuIds.
|
|
8467
|
-
|
|
8468
|
-
|
|
8466
|
+
case KupColumnMenuIds.TEXTFIELD_FILTER:
|
|
8467
|
+
case KupColumnMenuIds.TEXTFIELD_FROM:
|
|
8468
|
+
case KupColumnMenuIds.TEXTFIELD_TO:
|
|
8469
8469
|
window.clearTimeout(comp.columnFilterTimeout);
|
|
8470
8470
|
comp.columnFilterTimeout = window.setTimeout(() => {
|
|
8471
8471
|
var _a;
|
|
@@ -8615,7 +8615,8 @@ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
8615
8615
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8616
8616
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8617
8617
|
};
|
|
8618
|
-
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_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_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;
|
|
8618
|
+
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_checkOnBlurProp, _KupDataTable_checkOnBlurEvent, _KupDataTable_checkOnBlurByCellType, _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;
|
|
8619
|
+
const dom$1 = document.documentElement;
|
|
8619
8620
|
const KupDataTable = class {
|
|
8620
8621
|
constructor(hostRef) {
|
|
8621
8622
|
registerInstance(this, hostRef);
|
|
@@ -8638,6 +8639,7 @@ const KupDataTable = class {
|
|
|
8638
8639
|
this.kupRowActionItemClick = createEvent(this, "kup-datatable-rowaction-item-click", 6);
|
|
8639
8640
|
this.kupCellActionIconClick = createEvent(this, "kup-datatable-cell-action-icon-click", 6);
|
|
8640
8641
|
this.kupUpdate = createEvent(this, "kup-datatable-update", 6);
|
|
8642
|
+
this.kupCellCheck = createEvent(this, "kup-datatable-check", 6);
|
|
8641
8643
|
_KupDataTable_instances.add(this);
|
|
8642
8644
|
this.state = new KupDataTableState();
|
|
8643
8645
|
_KupDataTable_initialized.set(this, false);
|
|
@@ -8731,6 +8733,15 @@ const KupDataTable = class {
|
|
|
8731
8733
|
_KupDataTable_MESSAGE_ID.set(this, 'message');
|
|
8732
8734
|
_KupDataTable_MESSAGE_WRAPPER_ID.set(this, 'messageWrapper');
|
|
8733
8735
|
_KupDataTable_INSERT_PREFIX.set(this, 'insert_');
|
|
8736
|
+
_KupDataTable_eventBlurNames.set(this, new Map([
|
|
8737
|
+
[FCellShapes.AUTOCOMPLETE, 'kup-autocomplete-blur'],
|
|
8738
|
+
[FCellShapes.CHIP, 'kup-textfield-blur'],
|
|
8739
|
+
[FCellShapes.COMBOBOX, 'kup-combobox-blur'],
|
|
8740
|
+
[FCellShapes.DATE, 'kup-datepicker-blur'],
|
|
8741
|
+
[FCellShapes.MULTI_AUTOCOMPLETE, 'kup-autocomplete-blur'],
|
|
8742
|
+
[FCellShapes.MULTI_COMBOBOX, 'kup-combobox-blur'],
|
|
8743
|
+
[FCellShapes.TIME, 'kup-timepicker-blur'],
|
|
8744
|
+
]));
|
|
8734
8745
|
_KupDataTable_stickyHeaderPosition.set(this, () => {
|
|
8735
8746
|
if (__classPrivateFieldGet$6(this, _KupDataTable_tableRef, "f")) {
|
|
8736
8747
|
if (__classPrivateFieldGet$6(this, _KupDataTable_tableIntersecting, "f")) {
|
|
@@ -8756,6 +8767,55 @@ const KupDataTable = class {
|
|
|
8756
8767
|
command: command,
|
|
8757
8768
|
});
|
|
8758
8769
|
});
|
|
8770
|
+
_KupDataTable_checkOnBlurProp.set(this, (cell, rowId, colName) => {
|
|
8771
|
+
cell.data = Object.assign(Object.assign({}, cell.data), { onBlur: () => {
|
|
8772
|
+
var _a, _b;
|
|
8773
|
+
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) {
|
|
8774
|
+
this.kupCellCheck.emit({
|
|
8775
|
+
comp: this,
|
|
8776
|
+
id: this.rootElement.id,
|
|
8777
|
+
originalData: __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"),
|
|
8778
|
+
updatedData: getDiffData(__classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
8779
|
+
cell: cell,
|
|
8780
|
+
});
|
|
8781
|
+
}
|
|
8782
|
+
} });
|
|
8783
|
+
});
|
|
8784
|
+
_KupDataTable_checkOnBlurEvent.set(this, (cell, rowId, colName) => {
|
|
8785
|
+
const evName = __classPrivateFieldGet$6(this, _KupDataTable_eventBlurNames, "f").get(cell.shape);
|
|
8786
|
+
if (!evName) {
|
|
8787
|
+
return;
|
|
8788
|
+
}
|
|
8789
|
+
const handler = async () => {
|
|
8790
|
+
var _a, _b;
|
|
8791
|
+
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) {
|
|
8792
|
+
this.kupCellCheck.emit({
|
|
8793
|
+
comp: this,
|
|
8794
|
+
id: this.rootElement.id,
|
|
8795
|
+
originalData: __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"),
|
|
8796
|
+
updatedData: getDiffData(__classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
8797
|
+
cell: cell,
|
|
8798
|
+
});
|
|
8799
|
+
}
|
|
8800
|
+
};
|
|
8801
|
+
this.rootElement.addEventListener(evName, handler);
|
|
8802
|
+
});
|
|
8803
|
+
_KupDataTable_checkOnBlurByCellType.set(this, (fCellType) => {
|
|
8804
|
+
const cbByCellType = new Map([
|
|
8805
|
+
[FCellTypes.AUTOCOMPLETE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8806
|
+
[FCellTypes.CHIP, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8807
|
+
[FCellTypes.DATE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8808
|
+
[FCellTypes.MULTI_AUTOCOMPLETE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8809
|
+
[FCellTypes.MULTI_COMBOBOX, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8810
|
+
[FCellTypes.TIME, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8811
|
+
[FCellTypes.COMBOBOX, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8812
|
+
[FCellTypes.STRING, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8813
|
+
[FCellTypes.RADIO, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8814
|
+
[FCellTypes.NUMBER, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8815
|
+
[FCellTypes.OBJECT, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8816
|
+
]);
|
|
8817
|
+
return cbByCellType.get(fCellType);
|
|
8818
|
+
});
|
|
8759
8819
|
_KupDataTable_FONTSIZE_CODES.set(this, ['small', 'medium', 'big']);
|
|
8760
8820
|
_KupDataTable_FONTSIZE_DECODES.set(this, ['Small', 'Medium', 'Big']);
|
|
8761
8821
|
_KupDataTable_FONTSIZE_ICONS.set(this, [
|
|
@@ -9854,7 +9914,7 @@ const KupDataTable = class {
|
|
|
9854
9914
|
}
|
|
9855
9915
|
let rows = null;
|
|
9856
9916
|
if (__classPrivateFieldGet$6(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9857
|
-
rows = (h("tr", { key: '
|
|
9917
|
+
rows = (h("tr", { key: '09aa6756b5c3509f82307619d6fc43b7e83f1c64', ref: (el) => __classPrivateFieldGet$6(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: 'acdf483dba1b2397481705232fbe57e6fad5f1f7', colSpan: __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9858
9918
|
}
|
|
9859
9919
|
else {
|
|
9860
9920
|
rows = [];
|
|
@@ -9919,7 +9979,7 @@ const KupDataTable = class {
|
|
|
9919
9979
|
for (let i = 0; i < chipsData.length; i++) {
|
|
9920
9980
|
props.onIconClick.push(() => __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
9921
9981
|
}
|
|
9922
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
9982
|
+
groupChips = h(FChip, Object.assign({ key: '824e134a150c63881c552cd7e738b0844520e752' }, props));
|
|
9923
9983
|
}
|
|
9924
9984
|
}
|
|
9925
9985
|
const tableClass = {
|
|
@@ -9951,7 +10011,7 @@ const KupDataTable = class {
|
|
|
9951
10011
|
if (this.headerIsPersistent &&
|
|
9952
10012
|
this.tableHeight === undefined &&
|
|
9953
10013
|
this.tableWidth === undefined) {
|
|
9954
|
-
stickyEl = (h("sticky-header", { key: '
|
|
10014
|
+
stickyEl = (h("sticky-header", { key: 'da840d700a3e2d3bf27d1ab4ff56b66bed3a9198', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '2478bd0f8f219d739cc435a71896c5dc4bed8634' }, h("tr-sticky", { key: 'd4fa0fcf96dcd4b39c5762e8c4c3bf0893d633a2' }, stickyHeader))));
|
|
9955
10015
|
}
|
|
9956
10016
|
let belowClass = 'below-wrapper';
|
|
9957
10017
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -9977,11 +10037,11 @@ const KupDataTable = class {
|
|
|
9977
10037
|
}
|
|
9978
10038
|
}
|
|
9979
10039
|
};
|
|
9980
|
-
const compCreated = (h(Host, { key: '
|
|
10040
|
+
const compCreated = (h(Host, { key: '254631d417d784bd2b73b171b0b9f09bd3d05747', "onKup-cell-input": autoselectOnAction, "onKup-cell-update": autoselectOnAction }, h("style", { key: '1cba7f548eae6e76dbdbad6141abba7d3b1cda03' }, __classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: '08921ebe20fbfe5358c8fb294b7d2cf14d6770aa', id: componentWrapperId, class: wrapClass }, h("div", { key: '85dc4716ed17dc0efe476602af5c0a3cc93150ff', class: "group-wrapper" }, groupChips), h("div", { key: '4a20478cf2bdbabffe87f6e7e9e39b77b9166ae7', class: "actions-wrapper", style: actionWrapperWidth }, this.globalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
|
|
9981
10041
|
const t = event.target;
|
|
9982
10042
|
window.clearTimeout(__classPrivateFieldGet$6(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
9983
10043
|
__classPrivateFieldSet$3(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
9984
|
-
} }))) : null, h("div", { key: '
|
|
10044
|
+
} }))) : null, h("div", { key: 'a67851fa369250dbc66ddf35667daba81becdbf3', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
9985
10045
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
9986
10046
|
this.kupSave.emit({
|
|
9987
10047
|
comp: this,
|
|
@@ -10031,9 +10091,9 @@ const KupDataTable = class {
|
|
|
10031
10091
|
this.data.rows.unshift(row);
|
|
10032
10092
|
await this.refresh(true);
|
|
10033
10093
|
}
|
|
10034
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
10094
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: 'f408ac91fd5f0ef47694239b33cafeba9866bab6', 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
|
|
10035
10095
|
? __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10036
|
-
: null), h("div", { key: '
|
|
10096
|
+
: null), h("div", { key: '5baf667020b5106fce2ab4112beff4c0f90779c4', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10037
10097
|
? [
|
|
10038
10098
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
10039
10099
|
__classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10042,7 +10102,7 @@ const KupDataTable = class {
|
|
|
10042
10102
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10043
10103
|
this.renderCustomizePanel(),
|
|
10044
10104
|
]
|
|
10045
|
-
: null, h("table", { key: '
|
|
10105
|
+
: null, h("table", { key: '43d15c44f026050f3b23190cff4f4a06878b59bf', class: tableClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
|
|
10046
10106
|
ev.stopPropagation();
|
|
10047
10107
|
}, onPointerDown: (e) => {
|
|
10048
10108
|
__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");
|
|
@@ -10050,7 +10110,7 @@ const KupDataTable = class {
|
|
|
10050
10110
|
__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");
|
|
10051
10111
|
}, onContextMenu: (e) => {
|
|
10052
10112
|
e.preventDefault();
|
|
10053
|
-
} }, h("thead", { key: '
|
|
10113
|
+
} }, h("thead", { key: '7e2ffa54c706843ccc96134c3fb92466c8424a6d', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '83c47ca445f4f5a0868881acfa04b549e39d54d2' }, header)), h("tbody", { key: '44aacb27d1271e2848bf71040e31a8ac679b846b' }, rows), this.showFooter || __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
|
|
10054
10114
|
? this.renderFooter()
|
|
10055
10115
|
: null), stickyEl), paginatorBottom)));
|
|
10056
10116
|
return compCreated;
|
|
@@ -10093,7 +10153,7 @@ const KupDataTable = class {
|
|
|
10093
10153
|
"transpose": ["recalculateData"]
|
|
10094
10154
|
}; }
|
|
10095
10155
|
};
|
|
10096
|
-
_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_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() {
|
|
10156
|
+
_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_checkOnBlurProp = new WeakMap(), _KupDataTable_checkOnBlurEvent = new WeakMap(), _KupDataTable_checkOnBlurByCellType = 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() {
|
|
10097
10157
|
__classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$6(this, _KupDataTable_columnDropCard, "f"));
|
|
10098
10158
|
__classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$6(this, _KupDataTable_clickCbDropCard, "f"));
|
|
10099
10159
|
__classPrivateFieldGet$6(this, _KupDataTable_columnDropCard, "f").remove();
|
|
@@ -12157,7 +12217,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12157
12217
|
}
|
|
12158
12218
|
// Renders plain rows cells
|
|
12159
12219
|
const cells = visibleColumns.map((currentColumn, cellIndex) => {
|
|
12160
|
-
var _a;
|
|
12220
|
+
var _a, _b;
|
|
12161
12221
|
const { name, hideValuesRepetitions } = currentColumn;
|
|
12162
12222
|
const indend = [];
|
|
12163
12223
|
if (cellIndex === 0) {
|
|
@@ -12188,6 +12248,13 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12188
12248
|
},
|
|
12189
12249
|
}
|
|
12190
12250
|
: null });
|
|
12251
|
+
const cellType = dom$1.ketchup.data.cell.getType(cell, cell.shape);
|
|
12252
|
+
if (this.updatableData &&
|
|
12253
|
+
cell.isEditable &&
|
|
12254
|
+
((_b = cell.inputSettings) === null || _b === void 0 ? void 0 : _b.checkValueOnExit) &&
|
|
12255
|
+
__classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurByCellType, "f").call(this, cellType)) {
|
|
12256
|
+
__classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurByCellType, "f").call(this, cellType)(cell, row.id, currentColumn.name);
|
|
12257
|
+
}
|
|
12191
12258
|
const jsxCell = h(FCell, Object.assign({}, fcell));
|
|
12192
12259
|
// Classes which will be set onto the single data-table cell;
|
|
12193
12260
|
let cellClass = null;
|