@sme.up/ketchup 11.0.7 → 11.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-button-9aca7812.js → f-button-a1b656d2.js} +3 -1
- package/dist/cjs/{f-cell-eed32cd7.js → f-cell-2b05ec41.js} +7 -7
- package/dist/cjs/{f-chip-ec543689.js → f-chip-911142ce.js} +1 -1
- package/dist/cjs/{f-object-field-1ddaee2d.js → f-object-field-60ddab64.js} +3 -3
- package/dist/cjs/{f-paginator-utils-f0d22b06.js → f-paginator-utils-fcbea8ea.js} +2 -2
- package/dist/cjs/{f-text-field-4d4fa492.js → f-text-field-028d892b.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_30.cjs.entry.js +43 -32
- package/dist/cjs/kup-box.cjs.entry.js +19 -15
- package/dist/cjs/kup-calendar.cjs.entry.js +3 -3
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +6 -6
- package/dist/cjs/kup-dashboard.cjs.entry.js +3 -3
- package/dist/cjs/{kup-data-table-helper-9a9ad503.js → kup-data-table-helper-a1d68467.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 +2 -2
- 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-input-panel.cjs.entry.js +20 -18
- 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-8787fc42.js → kup-manager-f3bdd297.js} +4 -3
- 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 +4 -4
- 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 +2 -2
- 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-autocomplete/kup-autocomplete.js +11 -9
- package/dist/collection/components/kup-box/kup-box.js +11 -7
- package/dist/collection/components/kup-data-table/kup-data-table.js +21 -12
- package/dist/collection/components/kup-form/kup-form.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +14 -12
- package/dist/collection/f-components/f-button/f-button.js +3 -1
- package/dist/collection/f-components/f-cell/f-cell.js +2 -2
- package/dist/collection/managers/kup-data/kup-data.js +4 -3
- 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-file-upload.js +1 -1
- 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 +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +17 -15
- 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-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-362d7a44.js → p-0a8eb556.js} +4 -3
- package/dist/components/{p-fc3df00a.js → p-0bd261d7.js} +2 -2
- package/dist/components/{p-fcdae215.js → p-1314bbdf.js} +13 -9
- package/dist/components/{p-f1766ad7.js → p-2807b2ad.js} +2 -2
- package/dist/components/{p-a30c0106.js → p-4a48a95b.js} +41 -28
- package/dist/components/{p-b85372ba.js → p-afa666c5.js} +2 -2
- package/dist/esm/{f-button-3e022953.js → f-button-93e7961b.js} +3 -1
- package/dist/esm/{f-cell-bd79ffef.js → f-cell-3b2ffb31.js} +7 -7
- package/dist/esm/{f-chip-c22107de.js → f-chip-5308ce63.js} +1 -1
- package/dist/esm/{f-object-field-90dfb903.js → f-object-field-79b11bc0.js} +3 -3
- package/dist/esm/{f-paginator-utils-38b51762.js → f-paginator-utils-a5920e3f.js} +2 -2
- package/dist/esm/{f-text-field-31ad8f7f.js → f-text-field-2a249262.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_30.entry.js +43 -32
- package/dist/esm/kup-box.entry.js +19 -15
- package/dist/esm/kup-calendar.entry.js +3 -3
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-dashboard.entry.js +3 -3
- package/dist/esm/{kup-data-table-helper-3a60f39d.js → kup-data-table-helper-22528638.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 +2 -2
- 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-input-panel.entry.js +20 -18
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-35960eb2.js → kup-manager-c45fb212.js} +4 -3
- 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 +4 -4
- 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 +2 -2
- 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-751b23b7.entry.js → p-054dab8e.entry.js} +1 -1
- package/dist/ketchup/{p-707dff2c.entry.js → p-054e86fa.entry.js} +1 -1
- package/dist/ketchup/{p-21cb6f39.entry.js → p-10ce03d9.entry.js} +1 -1
- package/dist/ketchup/{p-c838a17e.entry.js → p-1b41a2f5.entry.js} +1 -1
- package/dist/ketchup/{p-3b4d57f5.entry.js → p-1b4e7e1d.entry.js} +1 -1
- package/dist/ketchup/p-206177c6.js +1 -0
- package/dist/ketchup/{p-5f82173c.js → p-21ccfe53.js} +1 -1
- package/dist/ketchup/{p-77117b3a.entry.js → p-2f10f0dc.entry.js} +1 -1
- package/dist/ketchup/p-310d2f7f.entry.js +8 -0
- package/dist/ketchup/{p-99761543.entry.js → p-34e90e24.entry.js} +1 -1
- package/dist/ketchup/{p-08ac13a7.entry.js → p-38965836.entry.js} +1 -1
- package/dist/ketchup/{p-76c2f184.entry.js → p-38fa4745.entry.js} +1 -1
- package/dist/ketchup/p-3a4f2645.entry.js +1 -0
- package/dist/ketchup/{p-541d469a.entry.js → p-4188de38.entry.js} +1 -1
- package/dist/ketchup/{p-2d954ca8.entry.js → p-430eba1f.entry.js} +1 -1
- package/dist/ketchup/{p-a841aef5.entry.js → p-4efa5cf8.entry.js} +1 -1
- package/dist/ketchup/{p-9f5d650a.js → p-52468dba.js} +1 -1
- package/dist/ketchup/p-5249e759.entry.js +1 -0
- package/dist/ketchup/{p-6d3521d6.entry.js → p-5c16e13d.entry.js} +1 -1
- package/dist/ketchup/{p-bbd702fd.entry.js → p-5f1013cd.entry.js} +1 -1
- package/dist/ketchup/{p-6dd48c60.entry.js → p-6a68c47d.entry.js} +1 -1
- package/dist/ketchup/{p-9ae814eb.js → p-6b7448c7.js} +1 -1
- package/dist/ketchup/{p-b6a5e87c.entry.js → p-6dd07391.entry.js} +1 -1
- package/dist/ketchup/{p-68dc4ed1.js → p-7cad8215.js} +1 -1
- package/dist/ketchup/p-97eba4ec.entry.js +1 -0
- package/dist/ketchup/{p-ab6b96ab.entry.js → p-9ec6c43e.entry.js} +1 -1
- package/dist/ketchup/{p-7e0fb905.entry.js → p-a799b4e8.entry.js} +1 -1
- package/dist/ketchup/{p-939094ef.entry.js → p-c3fde41a.entry.js} +1 -1
- package/dist/ketchup/{p-55e69e9f.entry.js → p-ca91eb26.entry.js} +1 -1
- package/dist/ketchup/{p-d66086d5.entry.js → p-d16d66fc.entry.js} +1 -1
- package/dist/ketchup/{p-c31f37f9.entry.js → p-f03f501a.entry.js} +1 -1
- package/dist/ketchup/{p-c2367aee.js → p-f0ce7a1c.js} +1 -1
- package/dist/ketchup/{p-b1197adf.entry.js → p-fbbf08d7.entry.js} +1 -1
- package/dist/ketchup/{p-df0207be.entry.js → p-fcee2b95.entry.js} +1 -1
- package/dist/ketchup/p-ff9d5cc2.js +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +1 -1
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +1 -1
- package/package.json +2 -2
- package/dist/ketchup/p-067b5430.entry.js +0 -1
- package/dist/ketchup/p-1ad40fd0.js +0 -1
- package/dist/ketchup/p-37c3d27d.js +0 -1
- package/dist/ketchup/p-a44780fb.entry.js +0 -1
- package/dist/ketchup/p-a8714314.entry.js +0 -8
- package/dist/ketchup/p-fa177711.entry.js +0 -1
- /package/dist/ketchup/{p-14c6efce.js → p-6742335b.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h as h$1, d as Host, F as Fragment$1 } from './p-ef8cbd35.js';
|
|
2
|
-
import { b as KupThemeIconValues, I as ItemsDisplayMode, e as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, d as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, c as KupThemeColorValues, C as CHIAdapter, R as RADAdapter, j as CMBandACPAdapter, l as KupTagNames, m as FCellShapes, n as getCellValueForDisplay, o as fullWidthFieldsComps, p as autoCenterComps, q as FCellEvents, r as isForceUppercase, t as isForceLowercase, u as KupDebugCategory, v as adaptContentToDisplayMode, w as FCellPadding, x as fillString, y as KupCardBuiltInClockElements, z as KupCardCSSClasses, A as KupLanguageTotals, B as KupLanguageColumn, D as KupDataNewColumnTypes, E as KupCardSubEvents, G as KupCardIds, H as KupLanguageRow, J as KupLanguageSearch, L as getColumnByName, M as KupObjects, N as formatToNumber, O as Filters, P as getValueForDisplay, Q as getValueForDisplay2, S as KupData, T as compareCell, U as TotalMode, V as getRegExpFromString, W as CHKAdapter, X as SWTAdapter, Y as SortMode, Z as GroupLabelDisplayMode, _ as SelectionMode, $ as KupLanguageGrouping, a0 as KupLanguageCheckbox, a1 as extractColumnsFromFormulaString, a2 as FILTER_ANALYZER, a3 as KupLanguagePage, a4 as addColumnValueFromRow, a5 as KupGlobalFilterMode, g as getProps, s as setProps, a6 as TotalLabel, a7 as isNegativeNumber, a8 as KupPointerEventTypes, a9 as kupDynamicPositionAttribute, aa as identify, ab as KupListProps, ac as KupCardFamily, ad as KupListRole, ae as KupLanguageUpload, af as LoadMoreMode, ag as PaginatorPos, ah as ShowGrid, ai as kupDraggableColumnAttr, aj as kupDragActiveAttr, ak as KupDragEffect, al as kupDraggableCellAttr, am as KupDropEventTypes, an as DataTableAreasEnum, ao as TypesToDuplicate, ap as UseAsValue, aq as FixedCellsClasses, ar as FixedCellsCSSVarsBase, as as KupLanguageFontsize, at as KupLanguageDensity, au as KupLanguageGrid, av as KupDataTableProps, aw as iconColumn, ax as keyColumn, ay as fieldColumn, az as getSizeOfInputElement, aA as KupCardProps } from './p-
|
|
2
|
+
import { b as KupThemeIconValues, I as ItemsDisplayMode, e as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, d as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, c as KupThemeColorValues, C as CHIAdapter, R as RADAdapter, j as CMBandACPAdapter, l as KupTagNames, m as FCellShapes, n as getCellValueForDisplay, o as fullWidthFieldsComps, p as autoCenterComps, q as FCellEvents, r as isForceUppercase, t as isForceLowercase, u as KupDebugCategory, v as adaptContentToDisplayMode, w as FCellPadding, x as fillString, y as KupCardBuiltInClockElements, z as KupCardCSSClasses, A as KupLanguageTotals, B as KupLanguageColumn, D as KupDataNewColumnTypes, E as KupCardSubEvents, G as KupCardIds, H as KupLanguageRow, J as KupLanguageSearch, L as getColumnByName, M as KupObjects, N as formatToNumber, O as Filters, P as getValueForDisplay, Q as getValueForDisplay2, S as KupData, T as compareCell, U as TotalMode, V as getRegExpFromString, W as CHKAdapter, X as SWTAdapter, Y as SortMode, Z as GroupLabelDisplayMode, _ as SelectionMode, $ as KupLanguageGrouping, a0 as KupLanguageCheckbox, a1 as extractColumnsFromFormulaString, a2 as FILTER_ANALYZER, a3 as KupLanguagePage, a4 as addColumnValueFromRow, a5 as KupGlobalFilterMode, g as getProps, s as setProps, a6 as TotalLabel, a7 as isNegativeNumber, a8 as KupPointerEventTypes, a9 as kupDynamicPositionAttribute, aa as identify, ab as KupListProps, ac as KupCardFamily, ad as KupListRole, ae as KupLanguageUpload, af as LoadMoreMode, ag as PaginatorPos, ah as ShowGrid, ai as kupDraggableColumnAttr, aj as kupDragActiveAttr, ak as KupDragEffect, al as kupDraggableCellAttr, am as KupDropEventTypes, an as DataTableAreasEnum, ao as TypesToDuplicate, ap as UseAsValue, aq as FixedCellsClasses, ar as FixedCellsCSSVarsBase, as as KupLanguageFontsize, at as KupLanguageDensity, au as KupLanguageGrid, av as KupDataTableProps, aw as iconColumn, ax as keyColumn, ay as fieldColumn, az as getSizeOfInputElement, aA as KupCardProps } from './p-0a8eb556.js';
|
|
3
3
|
import { h, g as getAssetPath, F as Fragment } from './p-3aae989f.js';
|
|
4
4
|
import { c as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './p-ea482528.js';
|
|
5
5
|
|
|
@@ -4426,7 +4426,9 @@ const FButton = (props, children) => {
|
|
|
4426
4426
|
const isIconButton = !!(props.styling.toLowerCase() === FButtonStyling.ICON ||
|
|
4427
4427
|
(props.styling.toLowerCase() === FButtonStyling.RAISED &&
|
|
4428
4428
|
props.icon &&
|
|
4429
|
-
(props.label === null ||
|
|
4429
|
+
(props.label === null ||
|
|
4430
|
+
props.label === undefined ||
|
|
4431
|
+
props.label === '')));
|
|
4430
4432
|
const classObj = {
|
|
4431
4433
|
'f-button': true,
|
|
4432
4434
|
'kup-danger': props.danger,
|
|
@@ -5325,7 +5327,7 @@ const FCell = (props, children) => {
|
|
|
5325
5327
|
cell.data = (_a = mapData(cell, column)) !== null && _a !== void 0 ? _a : cell.data;
|
|
5326
5328
|
let _value = (_b = cell.decode) !== null && _b !== void 0 ? _b : cell.value;
|
|
5327
5329
|
const valueToDisplay = props.previousValue !== _value ? _value : '';
|
|
5328
|
-
const cellType = dom$i.ketchup.data.cell.getType(cell, shape);
|
|
5330
|
+
const cellType = dom$i.ketchup.data.cell.getType(column, cell, shape);
|
|
5329
5331
|
const sizing = props.density === 'extra_dense' ? 'extra-small' : (_c = cell.data) === null || _c === void 0 ? void 0 : _c.sizing;
|
|
5330
5332
|
let cssClasses = cell.cssClass
|
|
5331
5333
|
? cell.cssClass
|
|
@@ -5477,7 +5479,7 @@ const mapData = (cell, column) => {
|
|
|
5477
5479
|
? cell.data.label
|
|
5478
5480
|
: column.title;
|
|
5479
5481
|
const currentValue = cell.value;
|
|
5480
|
-
const cellType = dom$i.ketchup.data.cell.getType(cell, cell.shape);
|
|
5482
|
+
const cellType = dom$i.ketchup.data.cell.getType(column, cell, cell.shape);
|
|
5481
5483
|
const dataAdapterMap = new Map([
|
|
5482
5484
|
[FCellTypes.BUTTON_LIST, MainBTNAdapter.bind(undefined)],
|
|
5483
5485
|
[FCellTypes.STRING, MainITXAdapter.bind(undefined)],
|
|
@@ -16649,7 +16651,7 @@ const KupForm = /*@__PURE__*/ proxyCustomElement(class KupForm extends H {
|
|
|
16649
16651
|
return (h$1("td", { class: `form__label form__label--${alignment}`, style: style }, h$1("span", null, label)));
|
|
16650
16652
|
}
|
|
16651
16653
|
function setPlaceholderLabel() {
|
|
16652
|
-
switch (dom$1.ketchup.data.cell.getType(cell, cell.shape || column.shape || null)) {
|
|
16654
|
+
switch (dom$1.ketchup.data.cell.getType(column, cell, cell.shape || column.shape || null)) {
|
|
16653
16655
|
case FCellTypes.AUTOCOMPLETE:
|
|
16654
16656
|
case FCellTypes.COLOR_PICKER:
|
|
16655
16657
|
case FCellTypes.COMBOBOX:
|
|
@@ -16714,7 +16716,7 @@ const KupForm = /*@__PURE__*/ proxyCustomElement(class KupForm extends H {
|
|
|
16714
16716
|
render() {
|
|
16715
16717
|
let formContent = null;
|
|
16716
16718
|
if (this.data.rows.length === 0) {
|
|
16717
|
-
formContent = (h$1("p", { key: '
|
|
16719
|
+
formContent = (h$1("p", { key: 'ea815da488cf3ac3ac14510a9526b09417d39ebf' }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
|
|
16718
16720
|
}
|
|
16719
16721
|
else {
|
|
16720
16722
|
const rows = this.data.rows;
|
|
@@ -16725,7 +16727,7 @@ const KupForm = /*@__PURE__*/ proxyCustomElement(class KupForm extends H {
|
|
|
16725
16727
|
formContent.push(this.renderRow(rows[cnt++]));
|
|
16726
16728
|
}
|
|
16727
16729
|
}
|
|
16728
|
-
return (h$1(Host, { key: '
|
|
16730
|
+
return (h$1(Host, { key: '87eec5120123fb0d89bbc454825ab9717f8cc57a' }, h$1("style", { key: '17bd0739b753023d6636496d93852e8b5a8f3e77' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: '5ff34b363c16a369a175f4e166fcb8acd5880139', id: componentWrapperId }, formContent)));
|
|
16729
16731
|
}
|
|
16730
16732
|
disconnectedCallback() {
|
|
16731
16733
|
this.kupManager.language.unregister(this);
|
|
@@ -25074,7 +25076,13 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25074
25076
|
if (this.data.rows.filter((r) => r.id == undefined).length) {
|
|
25075
25077
|
identify(this.getRows());
|
|
25076
25078
|
}
|
|
25077
|
-
|
|
25079
|
+
// Group expansion is triggered at the end of decorateAndInitForUpdTable()
|
|
25080
|
+
// instead, so the grouped row tree (which clones rows, severing the live
|
|
25081
|
+
// reference to this.data.rows) is rebuilt from already-decorated and
|
|
25082
|
+
// already-patched (pendingRowsToUpdate) cell data. Doing it here, before
|
|
25083
|
+
// decorateDataTable() runs, caused cells in grouped tables to keep a
|
|
25084
|
+
// stale cell.data missing the 'kup-list'/'kup-text-field' slot data,
|
|
25085
|
+
// crashing kup-autocomplete's consistency check on the next value change.
|
|
25078
25086
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
25079
25087
|
}
|
|
25080
25088
|
decorateAndInitForUpdTable() {
|
|
@@ -25112,6 +25120,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25112
25120
|
__classPrivateFieldSet$2(this, _KupDataTable_insertedRowIds, [], "f");
|
|
25113
25121
|
__classPrivateFieldSet$2(this, _KupDataTable_modifiedRowsIds, [], "f");
|
|
25114
25122
|
}
|
|
25123
|
+
// Runs after pendingRowsToUpdate patching and decorateDataTable() above,
|
|
25124
|
+
// so grouped rows are (re)built from fully decorated, up-to-date cells.
|
|
25125
|
+
this.expandGroupsHandler();
|
|
25115
25126
|
}
|
|
25116
25127
|
computeMaxRowsPerPage() {
|
|
25117
25128
|
var _a, _b, _c, _d;
|
|
@@ -26129,7 +26140,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26129
26140
|
__classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
26130
26141
|
let rows = null;
|
|
26131
26142
|
if (__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
26132
|
-
rows = (h$1("tr", { key: '
|
|
26143
|
+
rows = (h$1("tr", { key: '222a8279fe407575382a65c83e33fd4b2569014a', ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h$1("td", { key: '9c5ed4321284ebbec8dcab42d8c833b22a5e5a8a', colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
26133
26144
|
}
|
|
26134
26145
|
else {
|
|
26135
26146
|
rows = [];
|
|
@@ -26205,7 +26216,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26205
26216
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
|
|
26206
26217
|
});
|
|
26207
26218
|
}
|
|
26208
|
-
groupChips = h$1(FChip, Object.assign({ key: '
|
|
26219
|
+
groupChips = h$1(FChip, Object.assign({ key: '3dcf15fd1edb4038a0bde0f7832ecc63030917ba' }, props));
|
|
26209
26220
|
}
|
|
26210
26221
|
}
|
|
26211
26222
|
const tableClass = {
|
|
@@ -26237,7 +26248,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26237
26248
|
if (this.headerIsPersistent &&
|
|
26238
26249
|
this.tableHeight === undefined &&
|
|
26239
26250
|
this.tableWidth === undefined) {
|
|
26240
|
-
stickyEl = (h$1("sticky-header", { key: '
|
|
26251
|
+
stickyEl = (h$1("sticky-header", { key: '012a49ef4e86f9653a7f019e458a3726cd848c96', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h$1("thead-sticky", { key: '8d7af5595a3a85ba1e6d2b0b20f745212322c347' }, h$1("tr-sticky", { key: 'f33ccbb7ec7dfe9dd98f6b70faf73540a4b0df31' }, stickyHeader))));
|
|
26241
26252
|
}
|
|
26242
26253
|
let belowClass = 'below-wrapper';
|
|
26243
26254
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -26283,7 +26294,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26283
26294
|
const useGlobalFilter = !this.legacyLook &&
|
|
26284
26295
|
(this.globalFilter ||
|
|
26285
26296
|
this.getRows().length > __classPrivateFieldGet$3(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
26286
|
-
const compCreated = (h$1(Host, { key: '
|
|
26297
|
+
const compCreated = (h$1(Host, { key: '5264eb4129ec9fdca78982b3eacf4dba3fd80fde', "onKup-drop": (e) => {
|
|
26287
26298
|
this.kupDataTableDrop.emit(e.detail);
|
|
26288
26299
|
}, "onKup-cell-input": (e) => {
|
|
26289
26300
|
autoselectOnAction(e);
|
|
@@ -26302,11 +26313,11 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26302
26313
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
26303
26314
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
26304
26315
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
26305
|
-
} }, h$1("style", { key: '
|
|
26316
|
+
} }, h$1("style", { key: '7c422ef8e9ef0e9a73fa7e4ff2d429babac78432' }, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), h$1("div", { key: 'e7665c4b6a220ab94ec6a78c9e821e3480a9e95e', id: componentWrapperId, class: wrapClass }, h$1("div", { key: 'b160e64031639cb6319bc43aac7b08e6c92a83a3', class: "group-wrapper" }, groupChips), h$1("div", { key: '53d1d060d86f15869a3448330348c6f1d5ea89dc', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h$1("div", { id: "global-filter" }, h$1(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
26306
26317
|
const t = event.target;
|
|
26307
26318
|
window.clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
26308
26319
|
__classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
26309
|
-
} }))) : null, paginatorTop && (h$1("div", { key: '
|
|
26320
|
+
} }))) : null, paginatorTop && (h$1("div", { key: '2c200acb217f83755654023dd824591669fe1f9e', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
|
|
26310
26321
|
this.selectedRows.length > 0 ? (h$1(FButton, { icon: "save", onClick: () => {
|
|
26311
26322
|
this.kupSave.emit({
|
|
26312
26323
|
comp: this,
|
|
@@ -26356,9 +26367,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26356
26367
|
this.data.rows.unshift(row);
|
|
26357
26368
|
await this.refresh(true);
|
|
26358
26369
|
}
|
|
26359
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '
|
|
26370
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '1c87d7627e2e8eca3805b3acf8579fcf4a6a8cfb', class: "droparea", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
26360
26371
|
? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
26361
|
-
: null), h$1("div", { key: '
|
|
26372
|
+
: null), h$1("div", { key: '9ee1376d49777a9181bd638713ac773eb600b850', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
26362
26373
|
? [
|
|
26363
26374
|
h$1("div", { class: "settings-trigger", onClick: () => {
|
|
26364
26375
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -26367,7 +26378,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26367
26378
|
} }, h$1(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
26368
26379
|
this.renderCustomizePanel(),
|
|
26369
26380
|
]
|
|
26370
|
-
: null, h$1("table", { key: '
|
|
26381
|
+
: null, h$1("table", { key: 'b0154ffe6d1bcdb073ed8a9c5083c5fcfb1d4222', class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$3(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
26371
26382
|
ev.stopPropagation();
|
|
26372
26383
|
}, onPointerDown: (e) => {
|
|
26373
26384
|
__classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -26375,7 +26386,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26375
26386
|
__classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
26376
26387
|
}, onContextMenu: (e) => {
|
|
26377
26388
|
e.preventDefault();
|
|
26378
|
-
} }, h$1("thead", { key: '
|
|
26389
|
+
} }, h$1("thead", { key: 'd0b45272e078fb72046591df5cee832c3ad01b40', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h$1("tr", { key: '5b7db1061b419177488d7f6227a39eb5a9b07428' }, header)), h$1("tbody", { key: '02881d35ba957b56a84fc3ee8468a04bd6be3d82' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
26379
26390
|
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
26380
26391
|
return compCreated;
|
|
26381
26392
|
}
|
|
@@ -27983,7 +27994,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_cellToFocus = new WeakM
|
|
|
27983
27994
|
}, _KupDataTable_copyCellValueInColumnHandler = function _KupDataTable_copyCellValueInColumnHandler(e, el) {
|
|
27984
27995
|
const details = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(el, this.rootElement));
|
|
27985
27996
|
const { cell, column, row } = details;
|
|
27986
|
-
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
27997
|
+
const cellType = dom.ketchup.data.cell.getType(column, cell, cell.shape);
|
|
27987
27998
|
if (!TypesToDuplicate.includes(cellType)) {
|
|
27988
27999
|
return;
|
|
27989
28000
|
}
|
|
@@ -33961,7 +33972,7 @@ const KupAutocomplete = /*@__PURE__*/ proxyCustomElement(class KupAutocomplete e
|
|
|
33961
33972
|
__classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
|
|
33962
33973
|
}
|
|
33963
33974
|
render() {
|
|
33964
|
-
var _a;
|
|
33975
|
+
var _a, _b;
|
|
33965
33976
|
const props = {
|
|
33966
33977
|
alert: this.alert,
|
|
33967
33978
|
danger: this.rootElement.classList.contains('kup-danger')
|
|
@@ -33995,9 +34006,9 @@ const KupAutocomplete = /*@__PURE__*/ proxyCustomElement(class KupAutocomplete e
|
|
|
33995
34006
|
};
|
|
33996
34007
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
33997
34008
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
33998
|
-
return (h$1(Host, { key: '
|
|
34009
|
+
return (h$1(Host, { key: 'dcf5fb54a29f7417eb03a900996212ebed8ade9b', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h$1("style", { key: '841899fcb8b4d3220ac82b14311f2b4d4d69acbd' }, __classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h$1("div", { key: 'd7f7c3309a92552d8a0199004ab5fed75d492275', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h$1(FTextField, Object.assign({ key: '60f9bc7ec98b83792059b14e6f9e3ad12052326f' }, props, { icon: this.showDropDownIcon
|
|
33999
34010
|
? KupThemeIconValues.SEARCH
|
|
34000
|
-
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChangeSubmit(e.target.value, this.kupChange), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
34011
|
+
: null, trailingIcon: true }, (_b = this.data) === null || _b === void 0 ? void 0 : _b['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChangeSubmit(e.target.value, this.kupChange), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
34001
34012
|
window.clearTimeout(__classPrivateFieldGet(this, _KupAutocomplete_inputTimeout, "f"));
|
|
34002
34013
|
__classPrivateFieldSet(this, _KupAutocomplete_inputTimeout, window.setTimeout(() => this.onKupInput(), this.inputDelay), "f");
|
|
34003
34014
|
}, onIconClick: () => this.onKupIconClick(), onClearIconClick: () => this.onKupClearIconClick() }))), __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
|
|
@@ -34057,13 +34068,13 @@ const KupAutocomplete = /*@__PURE__*/ proxyCustomElement(class KupAutocomplete e
|
|
|
34057
34068
|
"initialValueDecode": ["initialValueDecodeChange"]
|
|
34058
34069
|
}]);
|
|
34059
34070
|
_KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(), _KupAutocomplete_kupManager = new WeakMap(), _KupAutocomplete_textfieldWrapper = new WeakMap(), _KupAutocomplete_textfieldEl = new WeakMap(), _KupAutocomplete_clickCb = new WeakMap(), _KupAutocomplete_inputTimeout = new WeakMap(), _KupAutocomplete_instances = new WeakSet(), _KupAutocomplete_openList = function _KupAutocomplete_openList(forceOpen) {
|
|
34060
|
-
var _a, _b, _c, _d;
|
|
34071
|
+
var _a, _b, _c, _d, _e;
|
|
34061
34072
|
if (forceOpen != true &&
|
|
34062
34073
|
__classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
|
|
34063
34074
|
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
34064
34075
|
return false;
|
|
34065
34076
|
}
|
|
34066
|
-
if (forceOpen && !((_b = (_a = this.data['kup-list']) === null ||
|
|
34077
|
+
if (forceOpen && !((_c = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a['kup-list']) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
34067
34078
|
this.kupIconClick.emit({
|
|
34068
34079
|
comp: this,
|
|
34069
34080
|
id: this.rootElement.id,
|
|
@@ -34072,8 +34083,8 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
34072
34083
|
open: true,
|
|
34073
34084
|
});
|
|
34074
34085
|
}
|
|
34075
|
-
const hasError = ((
|
|
34076
|
-
const hasAlert = ((
|
|
34086
|
+
const hasError = ((_d = this.error) === null || _d === void 0 ? void 0 : _d.trim().length) > 0;
|
|
34087
|
+
const hasAlert = ((_e = this.alert) === null || _e === void 0 ? void 0 : _e.trim().length) > 0;
|
|
34077
34088
|
const topOffset = hasError || hasAlert ? -20 : 0;
|
|
34078
34089
|
__classPrivateFieldGet(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
|
|
34079
34090
|
__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible = true;
|
|
@@ -34106,11 +34117,12 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
34106
34117
|
}, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
|
|
34107
34118
|
return __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible == true;
|
|
34108
34119
|
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
34120
|
+
var _a;
|
|
34109
34121
|
if (idIn && idInDecode) {
|
|
34110
34122
|
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.DescrMode, ' - ');
|
|
34111
34123
|
}
|
|
34112
34124
|
else {
|
|
34113
|
-
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.DescrMode);
|
|
34125
|
+
const ret = consistencyCheck(idIn, (_a = this.data) === null || _a === void 0 ? void 0 : _a['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.DescrMode);
|
|
34114
34126
|
if ((ret.exists || this.allowInconsistentValues) &&
|
|
34115
34127
|
eventShouldSetValue) {
|
|
34116
34128
|
this.value = ret.value;
|
|
@@ -34125,7 +34137,8 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
34125
34137
|
return ret;
|
|
34126
34138
|
}
|
|
34127
34139
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
34128
|
-
|
|
34140
|
+
var _a;
|
|
34141
|
+
return (h$1("kup-list", Object.assign({ DescrMode: this.ListDescrMode }, (_a = this.data) === null || _a === void 0 ? void 0 : _a['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
34129
34142
|
};
|
|
34130
34143
|
function defineCustomElement() {
|
|
34131
34144
|
if (typeof customElements === "undefined") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory } from './p-
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory } from './p-0a8eb556.js';
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-4a48a95b.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-grid component.
|
|
@@ -15,7 +15,9 @@ const FButton = (props, children) => {
|
|
|
15
15
|
const isIconButton = !!(props.styling.toLowerCase() === FButtonStyling.ICON ||
|
|
16
16
|
(props.styling.toLowerCase() === FButtonStyling.RAISED &&
|
|
17
17
|
props.icon &&
|
|
18
|
-
(props.label === null ||
|
|
18
|
+
(props.label === null ||
|
|
19
|
+
props.label === undefined ||
|
|
20
|
+
props.label === '')));
|
|
19
21
|
const classObj = {
|
|
20
22
|
'f-button': true,
|
|
21
23
|
'kup-danger': props.danger,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, F as Fragment } from './index-9b0f4a0d.js';
|
|
2
|
-
import { ar as editableTypes, as as kupTypes, U as FCellClasses, ae as FCellTypes, f as KupThemeColorValues, ap as CHIAdapter, an as RADAdapter, am as CMBandACPAdapter, at as KupTagNames, F as FCellShapes, aj as getCellValueForDisplay, a as KupComponentSizing, au as fullWidthFieldsComps, I as ItemsDisplayMode, av as autoCenterComps, aw as adaptContentToDisplayMode, ax as FCellEvents, ay as isForceUppercase, az as isForceLowercase, h as KupDebugCategory } from './kup-manager-
|
|
3
|
-
import { F as FButton } from './f-button-
|
|
2
|
+
import { ar as editableTypes, as as kupTypes, U as FCellClasses, ae as FCellTypes, f as KupThemeColorValues, ap as CHIAdapter, an as RADAdapter, am as CMBandACPAdapter, at as KupTagNames, F as FCellShapes, aj as getCellValueForDisplay, a as KupComponentSizing, au as fullWidthFieldsComps, I as ItemsDisplayMode, av as autoCenterComps, aw as adaptContentToDisplayMode, ax as FCellEvents, ay as isForceUppercase, az as isForceLowercase, h as KupDebugCategory } from './kup-manager-c45fb212.js';
|
|
3
|
+
import { F as FButton } from './f-button-93e7961b.js';
|
|
4
4
|
import { F as FCheckbox } from './f-checkbox-9912e1a4.js';
|
|
5
|
-
import { F as FChipType, d as FChip } from './f-chip-
|
|
5
|
+
import { F as FChipType, d as FChip } from './f-chip-5308ce63.js';
|
|
6
6
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
7
|
-
import { F as FObjectField } from './f-object-field-
|
|
8
|
-
import { F as FTextField } from './f-text-field-
|
|
7
|
+
import { F as FObjectField } from './f-object-field-79b11bc0.js';
|
|
8
|
+
import { F as FTextField } from './f-text-field-2a249262.js';
|
|
9
9
|
|
|
10
10
|
var FRadioType;
|
|
11
11
|
(function (FRadioType) {
|
|
@@ -422,7 +422,7 @@ const FCell = (props, children) => {
|
|
|
422
422
|
cell.data = (_a = mapData(cell, column)) !== null && _a !== void 0 ? _a : cell.data;
|
|
423
423
|
let _value = (_b = cell.decode) !== null && _b !== void 0 ? _b : cell.value;
|
|
424
424
|
const valueToDisplay = props.previousValue !== _value ? _value : '';
|
|
425
|
-
const cellType = dom.ketchup.data.cell.getType(cell, shape);
|
|
425
|
+
const cellType = dom.ketchup.data.cell.getType(column, cell, shape);
|
|
426
426
|
const sizing = props.density === 'extra_dense' ? 'extra-small' : (_c = cell.data) === null || _c === void 0 ? void 0 : _c.sizing;
|
|
427
427
|
let cssClasses = cell.cssClass
|
|
428
428
|
? cell.cssClass
|
|
@@ -574,7 +574,7 @@ const mapData = (cell, column) => {
|
|
|
574
574
|
? cell.data.label
|
|
575
575
|
: column.title;
|
|
576
576
|
const currentValue = cell.value;
|
|
577
|
-
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
577
|
+
const cellType = dom.ketchup.data.cell.getType(column, cell, cell.shape);
|
|
578
578
|
const dataAdapterMap = new Map([
|
|
579
579
|
[FCellTypes.BUTTON_LIST, MainBTNAdapter.bind(undefined)],
|
|
580
580
|
[FCellTypes.STRING, MainITXAdapter.bind(undefined)],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
2
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
3
|
-
import { I as ItemsDisplayMode, d as KupThemeIconValues, b as KupLanguageGeneric } from './kup-manager-
|
|
3
|
+
import { I as ItemsDisplayMode, d as KupThemeIconValues, b as KupLanguageGeneric } from './kup-manager-c45fb212.js';
|
|
4
4
|
|
|
5
5
|
function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
6
6
|
const { id, value, decode } = item;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement } from './kup-manager-
|
|
3
|
-
import { F as FButton } from './f-button-
|
|
2
|
+
import { a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement } from './kup-manager-c45fb212.js';
|
|
3
|
+
import { F as FButton } from './f-button-93e7961b.js';
|
|
4
4
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
5
|
-
import { F as FTextField } from './f-text-field-
|
|
5
|
+
import { F as FTextField } from './f-text-field-2a249262.js';
|
|
6
6
|
|
|
7
7
|
const STATE = new WeakMap();
|
|
8
8
|
const FObjectField = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { I as ItemsDisplayMode, aA as KupLanguagePage, t as KupLanguageRow, a as KupComponentSizing, b as KupLanguageGeneric } from './kup-manager-
|
|
3
|
-
import { F as FButton } from './f-button-
|
|
2
|
+
import { I as ItemsDisplayMode, aA as KupLanguagePage, t as KupLanguageRow, a as KupComponentSizing, b as KupLanguageGeneric } from './kup-manager-c45fb212.js';
|
|
3
|
+
import { F as FButton } from './f-button-93e7961b.js';
|
|
4
4
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
5
5
|
|
|
6
6
|
var FPaginatorMode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, g as getAssetPath } from './index-9b0f4a0d.js';
|
|
2
|
-
import { d as KupThemeIconValues } from './kup-manager-
|
|
2
|
+
import { d as KupThemeIconValues } from './kup-manager-c45fb212.js';
|
|
3
3
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
4
4
|
|
|
5
5
|
const dom = document.documentElement;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, d as KupThemeIconValues, f as KupThemeColorValues, e as KupDynamicPositionPlacement } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, d as KupThemeIconValues, f as KupThemeColorValues, e as KupDynamicPositionPlacement } from './kup-manager-c45fb212.js';
|
|
3
3
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
4
4
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
5
5
|
import { M as MDCRipple } from './component-a35bc7f1.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, F as Fragment, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory, aj as getCellValueForDisplay } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory, aj as getCellValueForDisplay } from './kup-manager-c45fb212.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
5
|
-
import { s as sortRows } from './kup-data-table-helper-
|
|
5
|
+
import { s as sortRows } from './kup-data-table-helper-22528638.js';
|
|
6
6
|
import './kup-dates-c38ee99a.js';
|
|
7
7
|
|
|
8
8
|
var KupActivityTimelineProps;
|