@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
|
@@ -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-c9246a86.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,
|
|
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, L as LoadMoreMode, P as PaginatorPos, I as ShowGrid, T as TotalLabel, J as TotalMode, M as kupDynamicPositionAttribute, N as KupPointerEventTypes, O as kupDraggableColumnAttr, Q as kupDragActiveAttr, R as KupDragEffect, U as kupDraggableCellAttr, V as KupDropEventTypes, W as FixedCellsClasses, X as FixedCellsCSSVarsBase, Y as KupLanguageFontsize, Z as KupLanguageDensity, _ as KupLanguageGrid, $ as KupDataTableProps, a0 as DataTableAreasEnum, a1 as SortMode, a2 as iconColumn, a3 as keyColumn, a4 as fieldColumn, a5 as FCellTypes, a6 as addColumnValueFromRow, a7 as KupGlobalFilterMode } from './kup-manager-02d449a3.js';
|
|
3
|
+
import { F as FTextField } from './f-text-field-48beba2c.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-b6871cf3.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
7
|
import { F as FImage } from './f-image-e8fec767.js';
|
|
8
8
|
import { F as FButton } from './f-button-acef8cca.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-da19044e.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-ba9a3748.js';
|
|
12
12
|
import { M as MDCRipple } from './component-a35bc7f1.js';
|
|
13
13
|
import { F as FCheckbox } from './f-checkbox-ed122005.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-c2ac5163.js';
|
|
15
|
+
import { F as FPaginator, p as pageChange, r as rowsPerPageChange } from './f-paginator-utils-54e4b908.js';
|
|
16
|
+
import './f-object-field-e76b1e59.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Props of the kup-autocomplete component.
|
|
@@ -1184,7 +1184,7 @@ const KupButtonList = class {
|
|
|
1184
1184
|
};
|
|
1185
1185
|
KupButtonList.style = KupButtonListStyle0;
|
|
1186
1186
|
|
|
1187
|
-
const dom$
|
|
1187
|
+
const dom$b = document.documentElement;
|
|
1188
1188
|
/**
|
|
1189
1189
|
* 1st box card layout, it can be used as a key-value grid list.
|
|
1190
1190
|
* @param {KupCard} component - Card component.
|
|
@@ -1279,8 +1279,8 @@ function create4$4(component) {
|
|
|
1279
1279
|
let value = null;
|
|
1280
1280
|
for (let index = 0; index < cells.length; index++) {
|
|
1281
1281
|
const cell = cells[index];
|
|
1282
|
-
const isImage = dom$
|
|
1283
|
-
dom$
|
|
1282
|
+
const isImage = dom$b.ketchup.objects.isImage(cell.obj) ||
|
|
1283
|
+
dom$b.ketchup.objects.isIcon(cell.obj) ||
|
|
1284
1284
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
1285
1285
|
if (!image && isImage) {
|
|
1286
1286
|
image = index;
|
|
@@ -1337,8 +1337,8 @@ function create5$4(component) {
|
|
|
1337
1337
|
for (let index = 0; index < cells.length; index++) {
|
|
1338
1338
|
const cell = cells[index];
|
|
1339
1339
|
const column = component.data.columns[index];
|
|
1340
|
-
const isImage = dom$
|
|
1341
|
-
dom$
|
|
1340
|
+
const isImage = dom$b.ketchup.objects.isImage(cell.obj) ||
|
|
1341
|
+
dom$b.ketchup.objects.isIcon(cell.obj) ||
|
|
1342
1342
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
1343
1343
|
if (!imageProps && isImage) {
|
|
1344
1344
|
imageProps = {
|
|
@@ -1390,8 +1390,8 @@ function create6$4(component) {
|
|
|
1390
1390
|
for (let index = 0; index < cells.length; index++) {
|
|
1391
1391
|
const cell = cells[index];
|
|
1392
1392
|
const column = component.data.columns[index];
|
|
1393
|
-
const isImage = dom$
|
|
1394
|
-
dom$
|
|
1393
|
+
const isImage = dom$b.ketchup.objects.isImage(cell.obj) ||
|
|
1394
|
+
dom$b.ketchup.objects.isIcon(cell.obj) ||
|
|
1395
1395
|
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
1396
1396
|
if (!image && isImage) {
|
|
1397
1397
|
image = index;
|
|
@@ -1486,7 +1486,7 @@ var SourceEvent;
|
|
|
1486
1486
|
SourceEvent["YEAR"] = "year";
|
|
1487
1487
|
})(SourceEvent || (SourceEvent = {}));
|
|
1488
1488
|
|
|
1489
|
-
const dom$
|
|
1489
|
+
const dom$a = document.documentElement;
|
|
1490
1490
|
const kupManager = kupManagerInstance();
|
|
1491
1491
|
function prepareCalendar(component) {
|
|
1492
1492
|
const el = component.rootElement;
|
|
@@ -1519,7 +1519,7 @@ function prepareCalendar(component) {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
if (!el.kupData.value)
|
|
1521
1521
|
setValue$2(component, new Date());
|
|
1522
|
-
const months = dom$
|
|
1522
|
+
const months = dom$a.ketchup.dates.getMonthsAsString();
|
|
1523
1523
|
const curYear = getYear(component);
|
|
1524
1524
|
const curMonth = getMonth(component);
|
|
1525
1525
|
const yearRange = getInitEndYear(curYear);
|
|
@@ -1663,7 +1663,7 @@ function createCalendar(component) {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
function createDaysCalendar(component) {
|
|
1666
|
-
const days = dom$
|
|
1666
|
+
const days = dom$a.ketchup.dates.getDaysOfWeekAsString(getFirstDayIndex(component));
|
|
1667
1667
|
const selectedDate = getValue$1(component);
|
|
1668
1668
|
const selectedDay = getDay(component);
|
|
1669
1669
|
const selectedMonth = getMonth(component);
|
|
@@ -1750,7 +1750,7 @@ function createDaysCalendar(component) {
|
|
|
1750
1750
|
h("tbody", null, tbody))));
|
|
1751
1751
|
}
|
|
1752
1752
|
function createMonthsCalendar(component) {
|
|
1753
|
-
const months = dom$
|
|
1753
|
+
const months = dom$a.ketchup.dates.getMonthsAsString(KupDateTimeFormatOptionsMonth.SHORT);
|
|
1754
1754
|
let selectedDay = getDay(component);
|
|
1755
1755
|
const selectedMonth = getMonth(component);
|
|
1756
1756
|
const selectedYear = getYear(component);
|
|
@@ -1901,7 +1901,7 @@ function refresh(component) {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
function onCalendarMonthYearItemClick(component, value) {
|
|
1903
1903
|
let d;
|
|
1904
|
-
if (dom$
|
|
1904
|
+
if (dom$a.ketchup.dates.isIsoDate(value)) {
|
|
1905
1905
|
d = new Date(value);
|
|
1906
1906
|
}
|
|
1907
1907
|
else {
|
|
@@ -1923,7 +1923,7 @@ function onCalendarMonthYearItemClick(component, value) {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
function onCalendarItemClick(component, value) {
|
|
1925
1925
|
let d;
|
|
1926
|
-
if (dom$
|
|
1926
|
+
if (dom$a.ketchup.dates.isIsoDate(value)) {
|
|
1927
1927
|
d = new Date(value);
|
|
1928
1928
|
}
|
|
1929
1929
|
else {
|
|
@@ -1939,7 +1939,7 @@ function setDateToday(component) {
|
|
|
1939
1939
|
refresh(component);
|
|
1940
1940
|
}
|
|
1941
1941
|
|
|
1942
|
-
const dom$
|
|
1942
|
+
const dom$9 = document.documentElement;
|
|
1943
1943
|
function prepareClock(component) {
|
|
1944
1944
|
const el = component.rootElement;
|
|
1945
1945
|
el.kupData = {};
|
|
@@ -2054,7 +2054,7 @@ function onKupBlur(component) {
|
|
|
2054
2054
|
function createClock(component) {
|
|
2055
2055
|
let selectedTime;
|
|
2056
2056
|
if (getValue(component)) {
|
|
2057
|
-
selectedTime = dom$
|
|
2057
|
+
selectedTime = dom$9.ketchup.dates.toDate(getValue(component), isManageSeconds(component)
|
|
2058
2058
|
? KupDatesFormats.ISO_TIME
|
|
2059
2059
|
: KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
|
|
2060
2060
|
}
|
|
@@ -2256,7 +2256,7 @@ function setClockTime(e, component) {
|
|
|
2256
2256
|
e.target.classList.add('selected');
|
|
2257
2257
|
}
|
|
2258
2258
|
|
|
2259
|
-
const dom$
|
|
2259
|
+
const dom$8 = document.documentElement;
|
|
2260
2260
|
const premadeFormulas = [
|
|
2261
2261
|
KupLanguageTotals.AVERAGE,
|
|
2262
2262
|
KupLanguageTotals.DIFFERENCE,
|
|
@@ -2271,7 +2271,7 @@ function prepareColumnDropMenu(component) {
|
|
|
2271
2271
|
const column = options.data.columns[index];
|
|
2272
2272
|
if (column.visible !== false &&
|
|
2273
2273
|
column.obj &&
|
|
2274
|
-
dom$
|
|
2274
|
+
dom$8.ketchup.objects.isNumber(column.obj)) {
|
|
2275
2275
|
chipData.push({
|
|
2276
2276
|
obj: column.obj,
|
|
2277
2277
|
value: column.name,
|
|
@@ -2287,7 +2287,7 @@ function prepareColumnDropMenu(component) {
|
|
|
2287
2287
|
if (options.enableFormula) {
|
|
2288
2288
|
combobox = prepareCombobox(options, numericalColumnsExist);
|
|
2289
2289
|
if (numericalColumnsExist) {
|
|
2290
|
-
button = (h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom$
|
|
2290
|
+
button = (h("kup-button", { "onKup-button-click": () => applyFormula(component), label: dom$8.ketchup.language.translate(KupLanguageTotals.CALCULATE), styling: FButtonStyling.OUTLINED }));
|
|
2291
2291
|
chipSet = (h("div", { class: "sub-chip" },
|
|
2292
2292
|
h("kup-chip", { data: chipData, "onKup-chip-click": (e) => typeColumn(e, component) })));
|
|
2293
2293
|
}
|
|
@@ -2300,35 +2300,35 @@ function prepareList(options) {
|
|
|
2300
2300
|
listData.push({
|
|
2301
2301
|
icon: 'library_add',
|
|
2302
2302
|
id: KupLanguageGeneric.MERGE,
|
|
2303
|
-
value: dom$
|
|
2303
|
+
value: dom$8.ketchup.language.translate(KupLanguageGeneric.MERGE),
|
|
2304
2304
|
});
|
|
2305
2305
|
}
|
|
2306
2306
|
if (options.enableMove) {
|
|
2307
2307
|
listData.push({
|
|
2308
2308
|
icon: 'swap_horiz',
|
|
2309
2309
|
id: KupLanguageGeneric.MOVE,
|
|
2310
|
-
value: dom$
|
|
2310
|
+
value: dom$8.ketchup.language.translate(KupLanguageGeneric.MOVE),
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
2313
2313
|
return listData.length > 0 ? (h("kup-list", { data: listData, showIcons: true, "onkup-list-click": (e) => listClick(e, options) })) : null;
|
|
2314
2314
|
}
|
|
2315
2315
|
function prepareCombobox(options, numericalColumnsExist) {
|
|
2316
2316
|
const comboListData = [];
|
|
2317
|
-
const numeric = dom$
|
|
2318
|
-
dom$
|
|
2317
|
+
const numeric = dom$8.ketchup.objects.isNumber(options.receivingColumn.obj) &&
|
|
2318
|
+
dom$8.ketchup.objects.isNumber(options.starterColumn.obj);
|
|
2319
2319
|
if (numeric) {
|
|
2320
2320
|
comboListData.push({
|
|
2321
2321
|
id: KupLanguageTotals.AVERAGE,
|
|
2322
|
-
value: dom$
|
|
2322
|
+
value: dom$8.ketchup.language.translate(KupLanguageTotals.AVERAGE),
|
|
2323
2323
|
}, {
|
|
2324
2324
|
id: KupLanguageTotals.DIFFERENCE,
|
|
2325
|
-
value: dom$
|
|
2325
|
+
value: dom$8.ketchup.language.translate(KupLanguageTotals.DIFFERENCE),
|
|
2326
2326
|
}, {
|
|
2327
2327
|
id: KupLanguageTotals.PRODUCT,
|
|
2328
|
-
value: dom$
|
|
2328
|
+
value: dom$8.ketchup.language.translate(KupLanguageTotals.PRODUCT),
|
|
2329
2329
|
}, {
|
|
2330
2330
|
id: KupLanguageTotals.SUM,
|
|
2331
|
-
value: dom$
|
|
2331
|
+
value: dom$8.ketchup.language.translate(KupLanguageTotals.SUM),
|
|
2332
2332
|
}, {
|
|
2333
2333
|
id: `([${options.starterColumn.name}]/[${options.receivingColumn.name}])*100`,
|
|
2334
2334
|
value: `[${options.starterColumn.name}] / [${options.receivingColumn.name}] * 100`,
|
|
@@ -2340,7 +2340,7 @@ function prepareCombobox(options, numericalColumnsExist) {
|
|
|
2340
2340
|
else {
|
|
2341
2341
|
comboListData.push({
|
|
2342
2342
|
id: KupLanguageColumn.NO_FORMULA,
|
|
2343
|
-
value: dom$
|
|
2343
|
+
value: dom$8.ketchup.language.translate(KupLanguageColumn.NO_FORMULA),
|
|
2344
2344
|
});
|
|
2345
2345
|
}
|
|
2346
2346
|
const comboData = {
|
|
@@ -2350,11 +2350,11 @@ function prepareCombobox(options, numericalColumnsExist) {
|
|
|
2350
2350
|
},
|
|
2351
2351
|
'kup-text-field': {
|
|
2352
2352
|
helper: !numericalColumnsExist
|
|
2353
|
-
? dom$
|
|
2353
|
+
? dom$8.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL_IN_TABLE)
|
|
2354
2354
|
: numeric
|
|
2355
2355
|
? `i.e.: [${options.receivingColumn.name}] - [${options.starterColumn.name}] + 1`
|
|
2356
|
-
: dom$
|
|
2357
|
-
label: dom$
|
|
2356
|
+
: dom$8.ketchup.language.translate(KupLanguageColumn.NON_NUMERICAL),
|
|
2357
|
+
label: dom$8.ketchup.language.translate(KupLanguageTotals.FORMULA),
|
|
2358
2358
|
outlined: true,
|
|
2359
2359
|
},
|
|
2360
2360
|
};
|
|
@@ -2398,7 +2398,7 @@ async function applyFormula(component) {
|
|
|
2398
2398
|
? parts[1].trim()
|
|
2399
2399
|
: valueString;
|
|
2400
2400
|
if (premadeFormulas.includes(value)) {
|
|
2401
|
-
dom$
|
|
2401
|
+
dom$8.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
|
|
2402
2402
|
columns: [
|
|
2403
2403
|
options.receivingColumn.name,
|
|
2404
2404
|
options.starterColumn.name,
|
|
@@ -2413,7 +2413,7 @@ async function applyFormula(component) {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
2415
|
else {
|
|
2416
|
-
const result = dom$
|
|
2416
|
+
const result = dom$8.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
|
|
2417
2417
|
newColumn: hasDescription
|
|
2418
2418
|
? { name: description, title: description }
|
|
2419
2419
|
: undefined,
|
|
@@ -2431,18 +2431,18 @@ async function applyFormula(component) {
|
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
2433
|
|
|
2434
|
-
const dom$
|
|
2434
|
+
const dom$7 = document.documentElement;
|
|
2435
2435
|
function prepareMessageBox(component) {
|
|
2436
2436
|
const options = component.data.options;
|
|
2437
2437
|
const buttonsExist = !!(options.cancelCb || options.confirmCb);
|
|
2438
2438
|
return (h("div", { class: "message-box" },
|
|
2439
2439
|
options.text ? h("div", { class: "text" }, options.text) : null,
|
|
2440
2440
|
buttonsExist ? (h("div", { class: "button-wrapper" },
|
|
2441
|
-
options.cancelCb ? (h(FButton, { icon: "clear", label: dom$
|
|
2442
|
-
options.confirmCb ? (h(FButton, { icon: "check", label: dom$
|
|
2441
|
+
options.cancelCb ? (h(FButton, { icon: "clear", label: dom$7.ketchup.language.translate(KupLanguageGeneric.ABORT), onClick: options.cancelCb, styling: FButtonStyling.FLAT })) : null,
|
|
2442
|
+
options.confirmCb ? (h(FButton, { icon: "check", label: dom$7.ketchup.language.translate(KupLanguageGeneric.CONFIRM), onClick: options.confirmCb })) : null)) : null));
|
|
2443
2443
|
}
|
|
2444
2444
|
|
|
2445
|
-
const dom$
|
|
2445
|
+
const dom$6 = document.documentElement;
|
|
2446
2446
|
function prepareNumeric(component) {
|
|
2447
2447
|
const el = component.rootElement;
|
|
2448
2448
|
if (!el.kupData)
|
|
@@ -2464,7 +2464,7 @@ function prepareNumeric(component) {
|
|
|
2464
2464
|
el.kupData.value = obj.k;
|
|
2465
2465
|
else
|
|
2466
2466
|
el.kupData.value = options.initialValue.toString();
|
|
2467
|
-
el.kupData.localeValue = dom$
|
|
2467
|
+
el.kupData.localeValue = dom$6.ketchup.math.numbers.toLocaleString(el.kupData.value);
|
|
2468
2468
|
}
|
|
2469
2469
|
options.resetStatus = false;
|
|
2470
2470
|
}
|
|
@@ -2539,7 +2539,7 @@ function setSign(component) {
|
|
|
2539
2539
|
return;
|
|
2540
2540
|
strVal = '-' + strVal;
|
|
2541
2541
|
el.kupData.value = strVal;
|
|
2542
|
-
el.kupData.localeValue = dom$
|
|
2542
|
+
el.kupData.localeValue = dom$6.ketchup.math.numbers.toLocaleString(strVal);
|
|
2543
2543
|
component.refresh();
|
|
2544
2544
|
}
|
|
2545
2545
|
function setValue(component, value) {
|
|
@@ -2576,7 +2576,7 @@ function setValue(component, value) {
|
|
|
2576
2576
|
return;
|
|
2577
2577
|
strVal += value;
|
|
2578
2578
|
el.kupData.value = strVal;
|
|
2579
|
-
el.kupData.localeValue = dom$
|
|
2579
|
+
el.kupData.localeValue = dom$6.ketchup.math.numbers.toLocaleString(strVal);
|
|
2580
2580
|
component.refresh();
|
|
2581
2581
|
}
|
|
2582
2582
|
function clearValue(component) {
|
|
@@ -2586,14 +2586,14 @@ function clearValue(component) {
|
|
|
2586
2586
|
component.refresh();
|
|
2587
2587
|
}
|
|
2588
2588
|
function getDecimalChar() {
|
|
2589
|
-
return (0.1).toLocaleString(dom$
|
|
2589
|
+
return (0.1).toLocaleString(dom$6.ketchup.math.locale).substring(1, 2);
|
|
2590
2590
|
}
|
|
2591
2591
|
function saveValue(component) {
|
|
2592
2592
|
const el = component.rootElement;
|
|
2593
2593
|
component.onKupClick(component.rootElement.id, el.kupData.value ? Number(el.kupData.value).toString() : '');
|
|
2594
2594
|
}
|
|
2595
2595
|
|
|
2596
|
-
const dom$
|
|
2596
|
+
const dom$5 = document.documentElement;
|
|
2597
2597
|
let inputArea = null;
|
|
2598
2598
|
let clearButton = null;
|
|
2599
2599
|
let submitButton = null;
|
|
@@ -2659,8 +2659,8 @@ function prepareOpenAIInterface(component) {
|
|
|
2659
2659
|
fun = fun.replace(']#', '');
|
|
2660
2660
|
}
|
|
2661
2661
|
result.push(h("div", { class: "fun", title: "Execute FUN.", onClick: () => {
|
|
2662
|
-
if (dom$
|
|
2663
|
-
dom$
|
|
2662
|
+
if (dom$5.ketchup.openAI.onFunClick) {
|
|
2663
|
+
dom$5.ketchup.openAI.onFunClick(fun);
|
|
2664
2664
|
}
|
|
2665
2665
|
} }, fun));
|
|
2666
2666
|
lastIndex = match.index + match[0].length;
|
|
@@ -3086,7 +3086,7 @@ const collapsibleLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3086
3086
|
create2: create2$4
|
|
3087
3087
|
});
|
|
3088
3088
|
|
|
3089
|
-
const dom$
|
|
3089
|
+
const dom$4 = document.documentElement;
|
|
3090
3090
|
/**
|
|
3091
3091
|
* 1st dialog card layout, used to display information in string format.
|
|
3092
3092
|
* @param {KupCard} component - Card component.
|
|
@@ -3180,8 +3180,8 @@ function create4$2(component) {
|
|
|
3180
3180
|
return (h("div", { class: `dialog-layout-${component.layoutNumber} dialog-element` },
|
|
3181
3181
|
textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''),
|
|
3182
3182
|
datatableArray[0] && buttonArray[0] && buttonArray[1] ? (h("div", { class: "section-1" },
|
|
3183
|
-
h("kup-button", Object.assign({}, buttonArray[0], { id: KupCardIds.PREVIOUS_ROW, "onkup-button-click": () => prevButton(component), title: dom$
|
|
3184
|
-
h("kup-button", Object.assign({}, buttonArray[1], { id: KupCardIds.NEXT_ROW, "onkup-button-click": () => nextButton(component), title: dom$
|
|
3183
|
+
h("kup-button", Object.assign({}, buttonArray[0], { id: KupCardIds.PREVIOUS_ROW, "onkup-button-click": () => prevButton(component), title: dom$4.ketchup.language.translate(KupLanguageRow.PREVIOUS) })),
|
|
3184
|
+
h("kup-button", Object.assign({}, buttonArray[1], { id: KupCardIds.NEXT_ROW, "onkup-button-click": () => nextButton(component), title: dom$4.ketchup.language.translate(KupLanguageRow.NEXT) })))) : null,
|
|
3185
3185
|
datatableArray[0] ? (h("div", { class: "section-2" },
|
|
3186
3186
|
h("kup-data-table", Object.assign({ id: "datatable1" }, datatableArray[0])))) : null));
|
|
3187
3187
|
}
|
|
@@ -3366,7 +3366,7 @@ const freeLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3366
3366
|
create2: create2$2
|
|
3367
3367
|
});
|
|
3368
3368
|
|
|
3369
|
-
const dom$
|
|
3369
|
+
const dom$3 = document.documentElement;
|
|
3370
3370
|
/**
|
|
3371
3371
|
* 1st scalable card layout, column of 2 texts.
|
|
3372
3372
|
* @param {KupCard} component - Card component.
|
|
@@ -3416,7 +3416,7 @@ function create2$1(component) {
|
|
|
3416
3416
|
h("div", { style: colorArray[1] ? { color: colorArray[1] } : undefined },
|
|
3417
3417
|
textArray[0] ? textArray[0] : '',
|
|
3418
3418
|
textArray[1]
|
|
3419
|
-
? dom$
|
|
3419
|
+
? dom$3.ketchup.math.decimalSeparator()
|
|
3420
3420
|
: '')),
|
|
3421
3421
|
textArray[1] ? (h("div", { class: "value-dec" },
|
|
3422
3422
|
h("div", { style: colorArray[1]
|
|
@@ -3477,7 +3477,7 @@ function create4$1(component) {
|
|
|
3477
3477
|
: undefined },
|
|
3478
3478
|
textArray[0] ? textArray[0] : '',
|
|
3479
3479
|
textArray[1]
|
|
3480
|
-
? dom$
|
|
3480
|
+
? dom$3.ketchup.math.decimalSeparator()
|
|
3481
3481
|
: '')),
|
|
3482
3482
|
textArray[1] ? (h("div", { class: "value-dec" },
|
|
3483
3483
|
h("div", { style: colorArray[1]
|
|
@@ -3777,7 +3777,7 @@ const scalableLayouts = /*#__PURE__*/Object.freeze({
|
|
|
3777
3777
|
create11: create11$1
|
|
3778
3778
|
});
|
|
3779
3779
|
|
|
3780
|
-
const dom$
|
|
3780
|
+
const dom$2 = document.documentElement;
|
|
3781
3781
|
/**
|
|
3782
3782
|
* 1st standard card layout, inspired by Material Design.
|
|
3783
3783
|
* @param {KupCard} component - Card component.
|
|
@@ -4530,7 +4530,7 @@ function create15(component) {
|
|
|
4530
4530
|
const button = genericButtons[index];
|
|
4531
4531
|
props.data['kup-list'].data.push(Object.assign(Object.assign({}, button), { value: button.title }));
|
|
4532
4532
|
}
|
|
4533
|
-
return (h("kup-dropdown-button", Object.assign({}, props, { title: dom$
|
|
4533
|
+
return (h("kup-dropdown-button", Object.assign({}, props, { title: dom$2.ketchup.language.translate(KupLanguageGeneric.OPTIONS) })));
|
|
4534
4534
|
};
|
|
4535
4535
|
return (h("div", { class: `standard-layout-${component.layoutNumber}` },
|
|
4536
4536
|
h("div", { class: "section-1" },
|
|
@@ -4563,7 +4563,7 @@ function create15(component) {
|
|
|
4563
4563
|
genericButtons.length > 0 ? (h("div", { class: "section-3" },
|
|
4564
4564
|
compList(genericButtons.slice(0, 5), 'button'),
|
|
4565
4565
|
genericButtons.length > 5 ? createDropdown() : null,
|
|
4566
|
-
treeArray[0] ? (h("kup-button", { title: dom$
|
|
4566
|
+
treeArray[0] ? (h("kup-button", { title: dom$2.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" })) : null)) : null));
|
|
4567
4567
|
}
|
|
4568
4568
|
/**
|
|
4569
4569
|
* 16th standard card layout, it can be used as the toolbar.
|
|
@@ -7830,7 +7830,7 @@ class KupDataTableState {
|
|
|
7830
7830
|
}
|
|
7831
7831
|
}
|
|
7832
7832
|
|
|
7833
|
-
const dom$
|
|
7833
|
+
const dom$1 = document.documentElement;
|
|
7834
7834
|
/**
|
|
7835
7835
|
* Definition and events of the column menu card.
|
|
7836
7836
|
* @module KupColumnMenu
|
|
@@ -7855,8 +7855,8 @@ class KupColumnMenu {
|
|
|
7855
7855
|
*/
|
|
7856
7856
|
close(card) {
|
|
7857
7857
|
card.menuVisible = false;
|
|
7858
|
-
dom$
|
|
7859
|
-
dom$
|
|
7858
|
+
dom$1.ketchup.removeClickCallback(this.clickCb);
|
|
7859
|
+
dom$1.ketchup.dynamicPosition.stop(card);
|
|
7860
7860
|
}
|
|
7861
7861
|
/**
|
|
7862
7862
|
* Function called to reposition the column menu card to the appropriate column.
|
|
@@ -7868,11 +7868,11 @@ class KupColumnMenu {
|
|
|
7868
7868
|
if (card) {
|
|
7869
7869
|
const column = card.dataset.column;
|
|
7870
7870
|
const wrapper = root.querySelector('th[data-column="' + column + '"]');
|
|
7871
|
-
if (dom$
|
|
7872
|
-
dom$
|
|
7871
|
+
if (dom$1.ketchup.dynamicPosition.isRegistered(card)) {
|
|
7872
|
+
dom$1.ketchup.dynamicPosition.changeAnchor(card, wrapper);
|
|
7873
7873
|
}
|
|
7874
7874
|
else {
|
|
7875
|
-
dom$
|
|
7875
|
+
dom$1.ketchup.dynamicPosition.register(card, wrapper, 0, KupDynamicPositionPlacement.AUTO, true);
|
|
7876
7876
|
}
|
|
7877
7877
|
if (!this.clickCb) {
|
|
7878
7878
|
this.clickCb = {
|
|
@@ -7882,8 +7882,8 @@ class KupColumnMenu {
|
|
|
7882
7882
|
el: card,
|
|
7883
7883
|
};
|
|
7884
7884
|
}
|
|
7885
|
-
dom$
|
|
7886
|
-
dom$
|
|
7885
|
+
dom$1.ketchup.addClickCallback(this.clickCb, true);
|
|
7886
|
+
dom$1.ketchup.dynamicPosition.start(card);
|
|
7887
7887
|
card.menuVisible = true;
|
|
7888
7888
|
}
|
|
7889
7889
|
}
|
|
@@ -7933,8 +7933,8 @@ class KupColumnMenu {
|
|
|
7933
7933
|
icon: 'book',
|
|
7934
7934
|
id: KupColumnMenuIds.BUTTON_GROUP,
|
|
7935
7935
|
title: comp.getGroupByName(column.name) != null
|
|
7936
|
-
? dom$
|
|
7937
|
-
: dom$
|
|
7936
|
+
? dom$1.ketchup.language.translate(KupLanguageGrouping.DISABLE)
|
|
7937
|
+
: dom$1.ketchup.language.translate(KupLanguageGrouping.ENABLE),
|
|
7938
7938
|
});
|
|
7939
7939
|
}
|
|
7940
7940
|
if (comp.removableColumns) {
|
|
@@ -7945,12 +7945,12 @@ class KupColumnMenu {
|
|
|
7945
7945
|
},
|
|
7946
7946
|
icon: 'table-column-remove',
|
|
7947
7947
|
id: KupColumnMenuIds.BUTTON_REMOVE,
|
|
7948
|
-
title: dom$
|
|
7948
|
+
title: dom$1.ketchup.language.translate(KupLanguageColumn.HIDE),
|
|
7949
7949
|
});
|
|
7950
7950
|
}
|
|
7951
7951
|
if (comp.enableExtraColumns &&
|
|
7952
|
-
(dom$
|
|
7953
|
-
dom$
|
|
7952
|
+
(dom$1.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
|
|
7953
|
+
dom$1.ketchup.objects.canObjsHaveExtraColumns(column.objs))) {
|
|
7954
7954
|
props.push({
|
|
7955
7955
|
className: 'printable',
|
|
7956
7956
|
'data-storage': {
|
|
@@ -7958,14 +7958,14 @@ class KupColumnMenu {
|
|
|
7958
7958
|
},
|
|
7959
7959
|
icon: 'table-column-plus-after',
|
|
7960
7960
|
id: KupColumnMenuIds.BUTTON_ADD_COLUMNS,
|
|
7961
|
-
title: dom$
|
|
7961
|
+
title: dom$1.ketchup.language.translate(KupLanguageColumn.ADD),
|
|
7962
7962
|
});
|
|
7963
7963
|
props.push({
|
|
7964
7964
|
className: 'printable',
|
|
7965
|
-
label: dom$
|
|
7965
|
+
label: dom$1.ketchup.language.translate(KupLanguageGeneric.APPLY),
|
|
7966
7966
|
id: KupColumnMenuIds.BUTTON_APPLY,
|
|
7967
7967
|
styling: FButtonStyling.OUTLINED,
|
|
7968
|
-
title: dom$
|
|
7968
|
+
title: dom$1.ketchup.language.translate(KupLanguageGeneric.APPLY),
|
|
7969
7969
|
});
|
|
7970
7970
|
}
|
|
7971
7971
|
return props;
|
|
@@ -7979,8 +7979,8 @@ class KupColumnMenu {
|
|
|
7979
7979
|
prepCheckbox(comp, column) {
|
|
7980
7980
|
const props = [];
|
|
7981
7981
|
if (comp.showFilters &&
|
|
7982
|
-
(dom$
|
|
7983
|
-
dom$
|
|
7982
|
+
(dom$1.ketchup.objects.isStringObject(column.obj) ||
|
|
7983
|
+
dom$1.ketchup.objects.isCheckbox(column.obj))) {
|
|
7984
7984
|
const checkBoxesFilter = this.filtersColumnMenuInstance.getCheckBoxFilterValues(comp.filters, column.name);
|
|
7985
7985
|
const columnValues = comp.getColumnValues(column);
|
|
7986
7986
|
if (columnValues.length > 0) {
|
|
@@ -7992,17 +7992,17 @@ class KupColumnMenu {
|
|
|
7992
7992
|
},
|
|
7993
7993
|
id: KupColumnMenuIds.CHECKBOX_GLOBAL,
|
|
7994
7994
|
key: KupColumnMenuIds.CHECKBOX_GLOBAL + column.name,
|
|
7995
|
-
label: dom$
|
|
7995
|
+
label: dom$1.ketchup.language.translate(KupLanguageCheckbox.ALL),
|
|
7996
7996
|
});
|
|
7997
7997
|
}
|
|
7998
7998
|
for (let index = 0; index < columnValues.length; index++) {
|
|
7999
7999
|
let label = getValueForDisplay2(columnValues[index], column);
|
|
8000
|
-
if (dom$
|
|
8000
|
+
if (dom$1.ketchup.objects.isCheckbox(column.obj)) {
|
|
8001
8001
|
if (columnValues[index].value == '1') {
|
|
8002
|
-
label = dom$
|
|
8002
|
+
label = dom$1.ketchup.language.translate(KupLanguageCheckbox.CHECKED);
|
|
8003
8003
|
}
|
|
8004
8004
|
else {
|
|
8005
|
-
label = dom$
|
|
8005
|
+
label = dom$1.ketchup.language.translate(KupLanguageCheckbox.UNCHECKED);
|
|
8006
8006
|
}
|
|
8007
8007
|
}
|
|
8008
8008
|
props.push({
|
|
@@ -8041,7 +8041,7 @@ class KupColumnMenu {
|
|
|
8041
8041
|
}
|
|
8042
8042
|
}
|
|
8043
8043
|
catch (error) {
|
|
8044
|
-
dom$
|
|
8044
|
+
dom$1.ketchup.debug.logMessage(this, 'Child column not found (' + child.name + ')!' + error, KupDebugCategory.ERROR);
|
|
8045
8045
|
}
|
|
8046
8046
|
chipData.push({
|
|
8047
8047
|
icon: child.icon ? child.icon : null,
|
|
@@ -8069,7 +8069,7 @@ class KupColumnMenu {
|
|
|
8069
8069
|
if (!FiltersColumnMenu.isTree(comp)) {
|
|
8070
8070
|
if (objs &&
|
|
8071
8071
|
objs.length > 0 &&
|
|
8072
|
-
!dom$
|
|
8072
|
+
!dom$1.ketchup.objects.isEmptyKupObj(objs[0])) {
|
|
8073
8073
|
props.push({
|
|
8074
8074
|
'data-storage': {
|
|
8075
8075
|
columnName: column.name,
|
|
@@ -8077,7 +8077,7 @@ class KupColumnMenu {
|
|
|
8077
8077
|
checked: column.isKey ? true : false,
|
|
8078
8078
|
key: KupColumnMenuIds.SWITCH_KEY + column.name,
|
|
8079
8079
|
id: KupColumnMenuIds.SWITCH_KEY,
|
|
8080
|
-
label: dom$
|
|
8080
|
+
label: dom$1.ketchup.language.translate(KupLanguageRow.KEY),
|
|
8081
8081
|
leadingLabel: true,
|
|
8082
8082
|
});
|
|
8083
8083
|
}
|
|
@@ -8090,7 +8090,7 @@ class KupColumnMenu {
|
|
|
8090
8090
|
key: KupColumnMenuIds.SWITCH_GROUP + column.name,
|
|
8091
8091
|
checked: isGroupActive ? true : false,
|
|
8092
8092
|
id: KupColumnMenuIds.SWITCH_GROUP,
|
|
8093
|
-
label: dom$
|
|
8093
|
+
label: dom$1.ketchup.language.translate(KupLanguageGrouping.GROUPS),
|
|
8094
8094
|
leadingLabel: true,
|
|
8095
8095
|
});
|
|
8096
8096
|
}
|
|
@@ -8108,16 +8108,16 @@ class KupColumnMenu {
|
|
|
8108
8108
|
if (comp.showFilters) {
|
|
8109
8109
|
data.push({
|
|
8110
8110
|
id: KupLanguageGeneric.FILTERS,
|
|
8111
|
-
value: dom$
|
|
8111
|
+
value: dom$1.ketchup.language.translate(KupLanguageGeneric.FILTERS),
|
|
8112
8112
|
});
|
|
8113
8113
|
}
|
|
8114
8114
|
if ((comp.enableExtraColumns &&
|
|
8115
|
-
(dom$
|
|
8116
|
-
dom$
|
|
8115
|
+
(dom$1.ketchup.objects.canObjHaveExtraColumns(column.obj) ||
|
|
8116
|
+
dom$1.ketchup.objects.canObjsHaveExtraColumns(column.objs))) ||
|
|
8117
8117
|
comp.removableColumns) {
|
|
8118
8118
|
data.push({
|
|
8119
8119
|
id: KupLanguageColumn.COLUMNS,
|
|
8120
|
-
value: dom$
|
|
8120
|
+
value: dom$1.ketchup.language.translate(KupLanguageColumn.COLUMNS),
|
|
8121
8121
|
});
|
|
8122
8122
|
}
|
|
8123
8123
|
if (!FiltersColumnMenu.isTree(comp)) {
|
|
@@ -8144,7 +8144,7 @@ class KupColumnMenu {
|
|
|
8144
8144
|
if (this.filtersColumnMenuInstance.isColumnFiltrableByInterval(column)) {
|
|
8145
8145
|
props = props.concat(this.prepIntervalTextfield(comp, column));
|
|
8146
8146
|
}
|
|
8147
|
-
else if (dom$
|
|
8147
|
+
else if (dom$1.ketchup.objects.isStringObject(column.obj)) {
|
|
8148
8148
|
let filterInitialValue = this.filtersColumnMenuInstance.getTextFilterValue(comp.filters, column.name);
|
|
8149
8149
|
filterInitialValue = getValueForDisplay(filterInitialValue, column.obj, column.decimals);
|
|
8150
8150
|
props.push({
|
|
@@ -8156,13 +8156,13 @@ class KupColumnMenu {
|
|
|
8156
8156
|
initialValue: filterInitialValue,
|
|
8157
8157
|
isClearable: true,
|
|
8158
8158
|
key: KupColumnMenuIds.TEXTFIELD_FILTER + column.name,
|
|
8159
|
-
label: dom$
|
|
8159
|
+
label: dom$1.ketchup.language.translate(KupLanguageSearch.SEARCH),
|
|
8160
8160
|
trailingIcon: true,
|
|
8161
8161
|
});
|
|
8162
8162
|
}
|
|
8163
8163
|
}
|
|
8164
8164
|
if (!FiltersColumnMenu.isTree(comp)) {
|
|
8165
|
-
if (dom$
|
|
8165
|
+
if (dom$1.ketchup.objects.isNumber(column.obj) &&
|
|
8166
8166
|
comp.enableColumnsFormula) {
|
|
8167
8167
|
props.push({
|
|
8168
8168
|
fullWidth: true,
|
|
@@ -8170,7 +8170,7 @@ class KupColumnMenu {
|
|
|
8170
8170
|
id: KupColumnMenuIds.TEXTFIELD_FORMULA,
|
|
8171
8171
|
key: KupColumnMenuIds.TEXTFIELD_FORMULA + column.name,
|
|
8172
8172
|
helper: `i.e.: Description;[${column.name}] * 2`,
|
|
8173
|
-
label: dom$
|
|
8173
|
+
label: dom$1.ketchup.language.translate(KupLanguageTotals.FORMULA),
|
|
8174
8174
|
trailingIcon: true,
|
|
8175
8175
|
});
|
|
8176
8176
|
}
|
|
@@ -8188,7 +8188,7 @@ class KupColumnMenu {
|
|
|
8188
8188
|
if (!comp.showFilters) {
|
|
8189
8189
|
return props;
|
|
8190
8190
|
}
|
|
8191
|
-
if (!dom$
|
|
8191
|
+
if (!dom$1.ketchup.objects.isNumber(column.obj)) {
|
|
8192
8192
|
return props;
|
|
8193
8193
|
}
|
|
8194
8194
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8206,7 +8206,7 @@ class KupColumnMenu {
|
|
|
8206
8206
|
key: KupColumnMenuIds.TEXTFIELD_FROM + column.name,
|
|
8207
8207
|
initialValue: initialValueFrom,
|
|
8208
8208
|
isClearable: true,
|
|
8209
|
-
label: dom$
|
|
8209
|
+
label: dom$1.ketchup.language.translate(KupLanguageSearch.FROM),
|
|
8210
8210
|
trailingIcon: true,
|
|
8211
8211
|
});
|
|
8212
8212
|
props.push({
|
|
@@ -8221,7 +8221,7 @@ class KupColumnMenu {
|
|
|
8221
8221
|
key: KupColumnMenuIds.TEXTFIELD_TO + column.name,
|
|
8222
8222
|
initialValue: initialValueTo,
|
|
8223
8223
|
isClearable: true,
|
|
8224
|
-
label: dom$
|
|
8224
|
+
label: dom$1.ketchup.language.translate(KupLanguageSearch.TO),
|
|
8225
8225
|
trailingIcon: true,
|
|
8226
8226
|
});
|
|
8227
8227
|
return props;
|
|
@@ -8237,7 +8237,7 @@ class KupColumnMenu {
|
|
|
8237
8237
|
if (!comp.showFilters) {
|
|
8238
8238
|
return props;
|
|
8239
8239
|
}
|
|
8240
|
-
if (!dom$
|
|
8240
|
+
if (!dom$1.ketchup.objects.isTime(column.obj)) {
|
|
8241
8241
|
return props;
|
|
8242
8242
|
}
|
|
8243
8243
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8254,13 +8254,13 @@ class KupColumnMenu {
|
|
|
8254
8254
|
fullWidth: true,
|
|
8255
8255
|
helperWhenFocused: true,
|
|
8256
8256
|
isClearable: true,
|
|
8257
|
-
label: dom$
|
|
8257
|
+
label: dom$1.ketchup.language.translate(KupLanguageSearch.FROM),
|
|
8258
8258
|
},
|
|
8259
8259
|
},
|
|
8260
8260
|
id: KupColumnMenuIds.TEXTFIELD_FROM,
|
|
8261
8261
|
key: KupColumnMenuIds.TEXTFIELD_FROM + column.name,
|
|
8262
8262
|
initialValue: initialValueFrom,
|
|
8263
|
-
manageSeconds: dom$
|
|
8263
|
+
manageSeconds: dom$1.ketchup.objects.isTimeWithSeconds(column.obj),
|
|
8264
8264
|
});
|
|
8265
8265
|
props.push({
|
|
8266
8266
|
'data-storage': {
|
|
@@ -8273,13 +8273,13 @@ class KupColumnMenu {
|
|
|
8273
8273
|
fullWidth: true,
|
|
8274
8274
|
helperWhenFocused: true,
|
|
8275
8275
|
isClearable: true,
|
|
8276
|
-
label: dom$
|
|
8276
|
+
label: dom$1.ketchup.language.translate(KupLanguageSearch.TO),
|
|
8277
8277
|
},
|
|
8278
8278
|
},
|
|
8279
8279
|
id: KupColumnMenuIds.TEXTFIELD_TO,
|
|
8280
8280
|
key: KupColumnMenuIds.TEXTFIELD_TO + column.name,
|
|
8281
8281
|
initialValue: initialValueTo,
|
|
8282
|
-
manageSeconds: dom$
|
|
8282
|
+
manageSeconds: dom$1.ketchup.objects.isTimeWithSeconds(column.obj),
|
|
8283
8283
|
});
|
|
8284
8284
|
return props;
|
|
8285
8285
|
}
|
|
@@ -8294,8 +8294,8 @@ class KupColumnMenu {
|
|
|
8294
8294
|
if (!comp.showFilters) {
|
|
8295
8295
|
return props;
|
|
8296
8296
|
}
|
|
8297
|
-
if (!dom$
|
|
8298
|
-
!dom$
|
|
8297
|
+
if (!dom$1.ketchup.objects.isDate(column.obj) &&
|
|
8298
|
+
!dom$1.ketchup.objects.isTimestamp(column.obj)) {
|
|
8299
8299
|
return props;
|
|
8300
8300
|
}
|
|
8301
8301
|
let interval = this.filtersColumnMenuInstance.getIntervalTextFieldFilterValues(comp.filters, column);
|
|
@@ -8303,7 +8303,7 @@ class KupColumnMenu {
|
|
|
8303
8303
|
let initialValueTo = interval[FilterInterval.TO];
|
|
8304
8304
|
let suffixFrom = null;
|
|
8305
8305
|
let suffixTo = null;
|
|
8306
|
-
if (dom$
|
|
8306
|
+
if (dom$1.ketchup.objects.isTimestamp(column.obj)) {
|
|
8307
8307
|
suffixFrom = ' 00:00:00';
|
|
8308
8308
|
suffixTo = ' 23:59:59';
|
|
8309
8309
|
if (initialValueFrom && initialValueFrom.length >= 10) {
|
|
@@ -8331,7 +8331,7 @@ class KupColumnMenu {
|
|
|
8331
8331
|
fullWidth: true,
|
|
8332
8332
|
helperWhenFocused: true,
|
|
8333
8333
|
isClearable: true,
|
|
8334
|
-
label: dom$
|
|
8334
|
+
label: dom$1.ketchup.language.translate(KupLanguageSearch.FROM),
|
|
8335
8335
|
},
|
|
8336
8336
|
},
|
|
8337
8337
|
id: KupColumnMenuIds.TEXTFIELD_FROM,
|
|
@@ -8350,7 +8350,7 @@ class KupColumnMenu {
|
|
|
8350
8350
|
fullWidth: true,
|
|
8351
8351
|
helperWhenFocused: true,
|
|
8352
8352
|
isClearable: true,
|
|
8353
|
-
label: dom$
|
|
8353
|
+
label: dom$1.ketchup.language.translate(KupLanguageSearch.TO),
|
|
8354
8354
|
},
|
|
8355
8355
|
},
|
|
8356
8356
|
id: KupColumnMenuIds.TEXTFIELD_TO,
|
|
@@ -8617,8 +8617,7 @@ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
8617
8617
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8618
8618
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8619
8619
|
};
|
|
8620
|
-
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,
|
|
8621
|
-
const dom$1 = document.documentElement;
|
|
8620
|
+
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;
|
|
8622
8621
|
const KupDataTable = class {
|
|
8623
8622
|
constructor(hostRef) {
|
|
8624
8623
|
registerInstance(this, hostRef);
|
|
@@ -8642,6 +8641,9 @@ const KupDataTable = class {
|
|
|
8642
8641
|
this.kupCellActionIconClick = createEvent(this, "kup-datatable-cell-action-icon-click", 6);
|
|
8643
8642
|
this.kupUpdate = createEvent(this, "kup-datatable-update", 6);
|
|
8644
8643
|
this.kupCellCheck = createEvent(this, "kup-datatable-check", 6);
|
|
8644
|
+
this.kupDataTableCellClick = createEvent(this, "kup-datatable-cell-click", 6);
|
|
8645
|
+
this.kupDataTableCellIconClick = createEvent(this, "kup-datatable-cell-iconclick", 6);
|
|
8646
|
+
this.kupDataTableCellInput = createEvent(this, "kup-datatable-cell-input", 6);
|
|
8645
8647
|
_KupDataTable_instances.add(this);
|
|
8646
8648
|
this.state = new KupDataTableState();
|
|
8647
8649
|
_KupDataTable_initialized.set(this, false);
|
|
@@ -8769,55 +8771,6 @@ const KupDataTable = class {
|
|
|
8769
8771
|
command: command,
|
|
8770
8772
|
});
|
|
8771
8773
|
});
|
|
8772
|
-
_KupDataTable_checkOnBlurProp.set(this, (cell, rowId, colName) => {
|
|
8773
|
-
cell.data = Object.assign(Object.assign({}, cell.data), { onBlur: () => {
|
|
8774
|
-
var _a, _b;
|
|
8775
|
-
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) {
|
|
8776
|
-
this.kupCellCheck.emit({
|
|
8777
|
-
comp: this,
|
|
8778
|
-
id: this.rootElement.id,
|
|
8779
|
-
originalData: __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"),
|
|
8780
|
-
updatedData: getDiffData(__classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
8781
|
-
cell: cell,
|
|
8782
|
-
});
|
|
8783
|
-
}
|
|
8784
|
-
} });
|
|
8785
|
-
});
|
|
8786
|
-
_KupDataTable_checkOnBlurEvent.set(this, (cell, rowId, colName) => {
|
|
8787
|
-
const evName = __classPrivateFieldGet$6(this, _KupDataTable_eventBlurNames, "f").get(cell.shape);
|
|
8788
|
-
if (!evName) {
|
|
8789
|
-
return;
|
|
8790
|
-
}
|
|
8791
|
-
const handler = async () => {
|
|
8792
|
-
var _a, _b;
|
|
8793
|
-
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) {
|
|
8794
|
-
this.kupCellCheck.emit({
|
|
8795
|
-
comp: this,
|
|
8796
|
-
id: this.rootElement.id,
|
|
8797
|
-
originalData: __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"),
|
|
8798
|
-
updatedData: getDiffData(__classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
8799
|
-
cell: cell,
|
|
8800
|
-
});
|
|
8801
|
-
}
|
|
8802
|
-
};
|
|
8803
|
-
this.rootElement.addEventListener(evName, handler);
|
|
8804
|
-
});
|
|
8805
|
-
_KupDataTable_checkOnBlurByCellType.set(this, (fCellType) => {
|
|
8806
|
-
const cbByCellType = new Map([
|
|
8807
|
-
[FCellTypes.AUTOCOMPLETE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8808
|
-
[FCellTypes.CHIP, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8809
|
-
[FCellTypes.DATE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8810
|
-
[FCellTypes.MULTI_AUTOCOMPLETE, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8811
|
-
[FCellTypes.MULTI_COMBOBOX, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8812
|
-
[FCellTypes.TIME, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8813
|
-
[FCellTypes.COMBOBOX, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurEvent, "f").bind(this)],
|
|
8814
|
-
[FCellTypes.STRING, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8815
|
-
[FCellTypes.RADIO, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8816
|
-
[FCellTypes.NUMBER, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8817
|
-
[FCellTypes.OBJECT, __classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurProp, "f").bind(this)],
|
|
8818
|
-
]);
|
|
8819
|
-
return cbByCellType.get(fCellType);
|
|
8820
|
-
});
|
|
8821
8774
|
_KupDataTable_FONTSIZE_CODES.set(this, ['small', 'medium', 'big']);
|
|
8822
8775
|
_KupDataTable_FONTSIZE_DECODES.set(this, ['Small', 'Medium', 'Big']);
|
|
8823
8776
|
_KupDataTable_FONTSIZE_ICONS.set(this, [
|
|
@@ -9925,7 +9878,7 @@ const KupDataTable = class {
|
|
|
9925
9878
|
}
|
|
9926
9879
|
let rows = null;
|
|
9927
9880
|
if (__classPrivateFieldGet$6(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
9928
|
-
rows = (h("tr", { key: '
|
|
9881
|
+
rows = (h("tr", { key: '5e7916b2d5e5406bfe89de59c85abfcf9d9c7c27', ref: (el) => __classPrivateFieldGet$6(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '3a773e1601ad49f6092cc5c29552f30b199ebf6f', colSpan: __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
9929
9882
|
}
|
|
9930
9883
|
else {
|
|
9931
9884
|
rows = [];
|
|
@@ -9990,7 +9943,7 @@ const KupDataTable = class {
|
|
|
9990
9943
|
for (let i = 0; i < chipsData.length; i++) {
|
|
9991
9944
|
props.onIconClick.push(() => __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
9992
9945
|
}
|
|
9993
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
9946
|
+
groupChips = h(FChip, Object.assign({ key: 'b18db45f91b68ade282b4f8c3418d0697e7a5fc1' }, props));
|
|
9994
9947
|
}
|
|
9995
9948
|
}
|
|
9996
9949
|
const tableClass = {
|
|
@@ -10022,7 +9975,7 @@ const KupDataTable = class {
|
|
|
10022
9975
|
if (this.headerIsPersistent &&
|
|
10023
9976
|
this.tableHeight === undefined &&
|
|
10024
9977
|
this.tableWidth === undefined) {
|
|
10025
|
-
stickyEl = (h("sticky-header", { key: '
|
|
9978
|
+
stickyEl = (h("sticky-header", { key: '3fb152a6231778c46a1c414a974b92fd3ac5243f', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '8000359e51e3761851779b2746b8a823169f17e0' }, h("tr-sticky", { key: '95049c2d562c00c4f71215dd193dda2b0457187f' }, stickyHeader))));
|
|
10026
9979
|
}
|
|
10027
9980
|
let belowClass = 'below-wrapper';
|
|
10028
9981
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -10048,11 +10001,18 @@ const KupDataTable = class {
|
|
|
10048
10001
|
}
|
|
10049
10002
|
}
|
|
10050
10003
|
};
|
|
10051
|
-
const compCreated = (h(Host, { key: '
|
|
10004
|
+
const compCreated = (h(Host, { key: 'db73b583031420003c076acd9c48e5c44c9d95cf', "onKup-cell-input": (e) => {
|
|
10005
|
+
autoselectOnAction(e);
|
|
10006
|
+
this.kupDataTableCellInput.emit(e.detail);
|
|
10007
|
+
}, "onKup-cell-update": autoselectOnAction, "onKup-cell-blur": __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_onBlurHandler), "onKup-cell-click": (e) => {
|
|
10008
|
+
this.kupDataTableCellClick.emit(e.detail);
|
|
10009
|
+
}, "onKup-cell-iconclick": (e) => {
|
|
10010
|
+
this.kupDataTableCellIconClick.emit(e.detail);
|
|
10011
|
+
} }, 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, h("div", { key: 'd18317ca2692ef7737996ba4d517d04855c47ffe', id: componentWrapperId, class: wrapClass }, h("div", { key: '26dbdc330eaba4fae0f5e9f7d27a191be1747eed', class: "group-wrapper" }, groupChips), h("div", { key: '64fe5a4113a4a215d6d25b08519dd5b88f32e411', 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) => {
|
|
10052
10012
|
const t = event.target;
|
|
10053
10013
|
window.clearTimeout(__classPrivateFieldGet$6(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
10054
10014
|
__classPrivateFieldSet$3(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
10055
|
-
} }))) : null, h("div", { key: '
|
|
10015
|
+
} }))) : null, h("div", { key: '4a633fe3a6b4f2205f9b769d9fa33af7642a4823', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
10056
10016
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
10057
10017
|
this.kupSave.emit({
|
|
10058
10018
|
comp: this,
|
|
@@ -10102,9 +10062,9 @@ const KupDataTable = class {
|
|
|
10102
10062
|
this.data.rows.unshift(row);
|
|
10103
10063
|
await this.refresh(true);
|
|
10104
10064
|
}
|
|
10105
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
10065
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), 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
|
|
10106
10066
|
? __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10107
|
-
: null), h("div", { key: '
|
|
10067
|
+
: null), h("div", { key: '39c7f61aa191bf964ff6c6ad35919cae01863c7f', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10108
10068
|
? [
|
|
10109
10069
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
10110
10070
|
__classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10113,7 +10073,7 @@ const KupDataTable = class {
|
|
|
10113
10073
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10114
10074
|
this.renderCustomizePanel(),
|
|
10115
10075
|
]
|
|
10116
|
-
: null, h("table", { key: '
|
|
10076
|
+
: null, h("table", { key: 'ba49043f8cc8e2bc160b313c590fa330a63ee4de', class: tableClass, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_tableRef, el, "f")), onMouseLeave: (ev) => {
|
|
10117
10077
|
ev.stopPropagation();
|
|
10118
10078
|
}, onPointerDown: (e) => {
|
|
10119
10079
|
__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");
|
|
@@ -10121,7 +10081,7 @@ const KupDataTable = class {
|
|
|
10121
10081
|
__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");
|
|
10122
10082
|
}, onContextMenu: (e) => {
|
|
10123
10083
|
e.preventDefault();
|
|
10124
|
-
} }, h("thead", { key: '
|
|
10084
|
+
} }, h("thead", { key: 'fed053b884d7536e7b98bb369287a7fa0d09425b', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$3(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: 'c64f1ff4ac83b0bf529ace7f2c1eaab7458577bc' }, header)), h("tbody", { key: 'a7224a1e949d4d1402cd050f2da707798626eeb5' }, rows), this.showFooter || __classPrivateFieldGet$6(this, _KupDataTable_instances, "m", _KupDataTable_hasTotals).call(this)
|
|
10125
10085
|
? this.renderFooter()
|
|
10126
10086
|
: null), stickyEl), paginatorBottom)));
|
|
10127
10087
|
return compCreated;
|
|
@@ -10164,7 +10124,7 @@ const KupDataTable = class {
|
|
|
10164
10124
|
"transpose": ["recalculateData"]
|
|
10165
10125
|
}; }
|
|
10166
10126
|
};
|
|
10167
|
-
_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(),
|
|
10127
|
+
_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() {
|
|
10168
10128
|
__classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet$6(this, _KupDataTable_columnDropCard, "f"));
|
|
10169
10129
|
__classPrivateFieldGet$6(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet$6(this, _KupDataTable_clickCbDropCard, "f"));
|
|
10170
10130
|
__classPrivateFieldGet$6(this, _KupDataTable_columnDropCard, "f").remove();
|
|
@@ -11878,6 +11838,20 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11878
11838
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
11879
11839
|
columns.splice(receivingColumnIndex, 0, remove[0]);
|
|
11880
11840
|
this.refresh();
|
|
11841
|
+
}, _KupDataTable_onBlurHandler = function _KupDataTable_onBlurHandler({ detail: { cell, column, row }, }) {
|
|
11842
|
+
var _a, _b, _c;
|
|
11843
|
+
if (this.updatableData &&
|
|
11844
|
+
cell.isEditable &&
|
|
11845
|
+
((_a = cell.inputSettings) === null || _a === void 0 ? void 0 : _a.checkValueOnExit) &&
|
|
11846
|
+
((_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) {
|
|
11847
|
+
this.kupCellCheck.emit({
|
|
11848
|
+
comp: this,
|
|
11849
|
+
id: this.rootElement.id,
|
|
11850
|
+
originalData: __classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"),
|
|
11851
|
+
updatedData: getDiffData(__classPrivateFieldGet$6(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
11852
|
+
cell: cell,
|
|
11853
|
+
});
|
|
11854
|
+
}
|
|
11881
11855
|
}, _KupDataTable_applyLineBreaks = function _KupDataTable_applyLineBreaks(content) {
|
|
11882
11856
|
if (!content) {
|
|
11883
11857
|
return '';
|
|
@@ -12230,7 +12204,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12230
12204
|
}
|
|
12231
12205
|
// Renders plain rows cells
|
|
12232
12206
|
const cells = visibleColumns.map((currentColumn, cellIndex) => {
|
|
12233
|
-
var _a
|
|
12207
|
+
var _a;
|
|
12234
12208
|
const { name, hideValuesRepetitions } = currentColumn;
|
|
12235
12209
|
const indend = [];
|
|
12236
12210
|
if (cellIndex === 0) {
|
|
@@ -12262,13 +12236,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12262
12236
|
},
|
|
12263
12237
|
}
|
|
12264
12238
|
: null });
|
|
12265
|
-
const cellType = dom$1.ketchup.data.cell.getType(cell, cell.shape);
|
|
12266
|
-
if (this.updatableData &&
|
|
12267
|
-
cell.isEditable &&
|
|
12268
|
-
((_b = cell.inputSettings) === null || _b === void 0 ? void 0 : _b.checkValueOnExit) &&
|
|
12269
|
-
__classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurByCellType, "f").call(this, cellType)) {
|
|
12270
|
-
__classPrivateFieldGet$6(this, _KupDataTable_checkOnBlurByCellType, "f").call(this, cellType)(cell, row.id, currentColumn.name);
|
|
12271
|
-
}
|
|
12272
12239
|
const jsxCell = h(FCell, Object.assign({}, fcell));
|
|
12273
12240
|
// Classes which will be set onto the single data-table cell;
|
|
12274
12241
|
let cellClass = null;
|