@sme.up/ketchup 5.2.1-SNAPSHOT → 6.1.0-SNAPSHOT
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/CHANGELOG.md +5 -0
- package/dist/cjs/{cell-utils-d96b2993.js → cell-utils-a78d6fac.js} +2 -2
- package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
- package/dist/cjs/{f-button-2b9b99b1.js → f-button-ac179257.js} +1 -1
- package/dist/cjs/{f-cell-8351cb84.js → f-cell-69294bca.js} +37 -37
- package/dist/cjs/{f-chip-df59e1b0.js → f-chip-b00897d7.js} +4 -3
- package/dist/cjs/{f-image-12bab3b5.js → f-image-89f25556.js} +1 -1
- package/dist/cjs/f-paginator-utils-8fa501b3.js +1898 -0
- package/dist/cjs/{f-text-field-e7c35b5b.js → f-text-field-e1e45ade.js} +1 -1
- package/dist/cjs/{f-text-field-mdc-a67f5dfe.js → f-text-field-mdc-85997738.js} +23 -305
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
- package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1493 -5418
- package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17101 -14787
- package/dist/cjs/kup-calendar.cjs.entry.js +41 -33
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +3 -3
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-drawer.cjs.entry.js +11 -4
- package/dist/cjs/kup-field.cjs.entry.js +1 -1
- package/dist/cjs/kup-form-editor.cjs.entry.js +404 -0
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +228 -0
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/kup-manager-7a941909.js +16703 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
- 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 +5 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-e99921c1.js → utils-6287d878.js} +1 -1
- package/dist/collection/assets/card.js +4 -5
- package/dist/collection/assets/data-table.js +0 -79
- package/dist/collection/assets/form-editor.js +338 -0
- package/dist/collection/assets/image-list.js +624 -0
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/kupdata.js +0 -3
- package/dist/collection/assets/kuptooltip.js +53 -7
- package/dist/collection/assets/tree.js +0 -128
- package/dist/collection/collection-manifest.json +7 -6
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +1 -1
- package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
- package/dist/collection/components/kup-box/kup-box.js +7 -135
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
- package/dist/collection/components/kup-card/kup-card.css +26 -8
- package/dist/collection/components/kup-card/kup-card.js +1 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
- package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
- package/dist/collection/components/kup-data-table/kup-data-table.js +19 -136
- package/dist/collection/components/kup-drawer/kup-drawer.css +1 -0
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
- package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +23 -0
- package/dist/collection/components/kup-form-editor/kup-form-editor.css +80 -0
- package/dist/collection/components/kup-form-editor/kup-form-editor.js +561 -0
- package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
- package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +3 -13
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -2
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
- package/dist/collection/components/kup-tree/kup-tree.css +10 -3
- package/dist/collection/components/kup-tree/kup-tree.js +65 -140
- package/dist/collection/f-components/f-cell/f-cell.js +7 -7
- package/dist/collection/f-components/f-chip/f-chip.js +2 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
- package/dist/collection/managers/kup-data/kup-data.js +4 -1
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
- package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
- package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +21 -2
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +53 -20
- package/dist/collection/types/GenericTypes.js +2 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +7 -11
- package/dist/esm/{cell-utils-f4bdbbc8.js → cell-utils-964da6b5.js} +3 -3
- package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
- package/dist/esm/{f-button-54a49fd8.js → f-button-871a544b.js} +1 -1
- package/dist/esm/{f-cell-d5dac50b.js → f-cell-521ef17a.js} +38 -38
- package/dist/esm/{f-chip-a3035b4b.js → f-chip-1dda722f.js} +5 -4
- package/dist/esm/{f-image-d32465e3.js → f-image-c468d8ae.js} +1 -1
- package/dist/esm/f-paginator-utils-7dff8ff0.js +1884 -0
- package/dist/esm/{f-text-field-c25cc63f.js → f-text-field-d6c61c73.js} +1 -1
- package/dist/esm/{f-text-field-mdc-9fbbefc3.js → f-text-field-mdc-d42d3f9e.js} +2 -284
- package/dist/esm/ketchup.js +2 -2
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1445 -5368
- package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17101 -14788
- package/dist/esm/kup-calendar.entry.js +42 -34
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-dash-list.entry.js +3 -3
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-drawer.entry.js +11 -4
- package/dist/esm/kup-field.entry.js +1 -1
- package/dist/esm/kup-form-editor.entry.js +400 -0
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +224 -0
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/kup-manager-58b075b4.js +16686 -0
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +5 -5
- package/dist/esm/kup-photo-frame.entry.js +4 -4
- 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 +5 -5
- package/dist/esm/loader.js +2 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
- package/dist/esm/{utils-f24319a0.js → utils-d7e4b3c2.js} +2 -2
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-7a74ad17.js → p-1ae66cc5.js} +1 -1
- package/dist/ketchup/{p-e6709c26.entry.js → p-3c11e615.entry.js} +1 -1
- package/dist/ketchup/{p-669bde31.js → p-44ec4f03.js} +1 -1
- package/dist/ketchup/p-4ffbc3ff.js +1 -0
- package/dist/ketchup/p-5264a3e6.entry.js +1 -0
- package/dist/ketchup/{p-e8e3c9da.entry.js → p-65974e48.entry.js} +1 -1
- package/dist/ketchup/p-65b46587.entry.js +40 -0
- package/dist/ketchup/{p-09d708c4.entry.js → p-6dff70f8.entry.js} +1 -1
- package/dist/ketchup/{p-34748c91.js → p-7454cb92.js} +1 -1
- package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
- package/dist/ketchup/p-7eff4eee.js +1 -0
- package/dist/ketchup/p-80968627.entry.js +1 -0
- package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
- package/dist/ketchup/p-8cdf61a4.js +1 -0
- package/dist/ketchup/{p-8418e8fa.entry.js → p-954cc340.entry.js} +1 -1
- package/dist/ketchup/p-976244f9.entry.js +9 -0
- package/dist/ketchup/{p-4173422f.entry.js → p-99e0d768.entry.js} +1 -1
- package/dist/ketchup/{p-41741c28.entry.js → p-a0f6e25c.entry.js} +1 -1
- package/dist/ketchup/p-a203f78b.js +45 -0
- package/dist/ketchup/{p-9a61d8dc.entry.js → p-a615a92b.entry.js} +1 -1
- package/dist/ketchup/p-aca0e54b.js +30 -0
- package/dist/ketchup/p-b8939a8b.entry.js +1 -0
- package/dist/ketchup/p-bfc3bac7.js +1 -0
- package/dist/ketchup/p-c5ce8951.entry.js +1 -0
- package/dist/ketchup/{p-bb8844bf.entry.js → p-d2ee56dd.entry.js} +1 -1
- package/dist/ketchup/p-db71436b.entry.js +27 -0
- package/dist/ketchup/{p-40f97429.js → p-e0035c58.js} +1 -1
- package/dist/ketchup/p-e1039cf2.entry.js +1 -0
- package/dist/ketchup/{p-44192f30.entry.js → p-ea10176c.entry.js} +1 -1
- package/dist/ketchup/{p-67842f1e.entry.js → p-f09f2f98.entry.js} +1 -1
- package/dist/ketchup/{p-203d6295.entry.js → p-f71a1675.entry.js} +1 -1
- package/dist/ketchup/{p-11e72a8c.entry.js → p-fac1a08b.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
- package/dist/types/components/kup-box/kup-box.d.ts +0 -22
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -4
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -19
- package/dist/types/components/kup-form-editor/kup-form-editor-declarations.d.ts +79 -0
- package/dist/types/components/kup-form-editor/kup-form-editor.d.ts +72 -0
- package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -5
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -24
- package/dist/types/components.d.ts +121 -231
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -0
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +4 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +12 -0
- package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +3 -3
- package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +17 -6
- package/dist/types/types/GenericTypes.d.ts +2 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
- package/package.json +15 -14
- package/dist/cjs/kup-manager-5c03da64.js +0 -8795
- package/dist/collection/assets/tooltip.js +0 -73
- package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
- package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
- package/dist/collection/utils/helpers.js +0 -38
- package/dist/esm/kup-manager-9316a184.js +0 -8778
- package/dist/ketchup/p-12773ca8.js +0 -9
- package/dist/ketchup/p-44f8da2a.js +0 -1
- package/dist/ketchup/p-4f56932b.js +0 -1
- package/dist/ketchup/p-7ba8fa4a.entry.js +0 -39
- package/dist/ketchup/p-7de0d7e1.js +0 -1
- package/dist/ketchup/p-96bf19aa.entry.js +0 -1
- package/dist/ketchup/p-b0ddcce9.entry.js +0 -9
- package/dist/ketchup/p-b6c21223.entry.js +0 -27
- package/dist/ketchup/p-c58a2a81.entry.js +0 -1
- package/dist/ketchup/p-ca3d585b.entry.js +0 -1
- package/dist/ketchup/p-ecb7069b.js +0 -135
- package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
- package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
- package/dist/types/utils/helpers.d.ts +0 -4
|
@@ -6,6 +6,7 @@ import { FChipType } from '../../../f-components/f-chip/f-chip-declarations';
|
|
|
6
6
|
import { KupCardCSSClasses, KupCardIds } from '../kup-card-declarations';
|
|
7
7
|
import { KupColumnMenuIds } from '../../../utils/kup-column-menu/kup-column-menu-declarations';
|
|
8
8
|
import { KupThemeColorValues } from '../../../managers/kup-theme/kup-theme-declarations';
|
|
9
|
+
const dom = document.documentElement;
|
|
9
10
|
/**
|
|
10
11
|
* 1st standard card layout, inspired by Material Design.
|
|
11
12
|
* @param {KupCard} component - Card component.
|
|
@@ -592,7 +593,7 @@ export function create14(component) {
|
|
|
592
593
|
if (tabbarArray[0] && tabbarArray[0].data) {
|
|
593
594
|
for (let index = 0; index < tabbarArray[0].data.length; index++) {
|
|
594
595
|
const tab = tabbarArray[0].data[index];
|
|
595
|
-
tabsValues.push(tab.
|
|
596
|
+
tabsValues.push(tab.id);
|
|
596
597
|
if (tab.active) {
|
|
597
598
|
visibleView = index + 1;
|
|
598
599
|
}
|
|
@@ -729,11 +730,19 @@ export function create15(component) {
|
|
|
729
730
|
}
|
|
730
731
|
// Setting up buttons.
|
|
731
732
|
const buttonsIds = [];
|
|
733
|
+
const genericButtons = [];
|
|
734
|
+
const isReservedID = (id) => {
|
|
735
|
+
return (id === KupColumnMenuIds.BUTTON_OPEN_IN_NEW ||
|
|
736
|
+
id === KupColumnMenuIds.BUTTON_SEARCH);
|
|
737
|
+
};
|
|
732
738
|
for (let index = 0; index < buttonArray.length; index++) {
|
|
733
739
|
const button = buttonArray[index];
|
|
734
740
|
if (button['id']) {
|
|
735
741
|
buttonsIds.push(button['id']);
|
|
736
742
|
}
|
|
743
|
+
if (!isReservedID(button['id'])) {
|
|
744
|
+
genericButtons.push(button);
|
|
745
|
+
}
|
|
737
746
|
}
|
|
738
747
|
return (h("div", { class: `standard-layout-${component.layoutNumber}` },
|
|
739
748
|
h("div", { class: "section-1" },
|
|
@@ -757,9 +766,8 @@ export function create15(component) {
|
|
|
757
766
|
h("div", { class: "info" }, sectionTwoDetails.length > 0
|
|
758
767
|
? sectionTwoDetails
|
|
759
768
|
: null)),
|
|
760
|
-
h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex + 1}` },
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
h("kup-button", { id: "view-selector", icon: "menu" }))) : null));
|
|
769
|
+
h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex + 1}` }, treeArray[0] ? (h("kup-tree", Object.assign({ class: "kup-full-width" }, treeArray[0]))) : null)),
|
|
770
|
+
genericButtons.length > 0 ? (h("div", { class: "section-3" },
|
|
771
|
+
compList(genericButtons.slice(0, 5), 'button'),
|
|
772
|
+
h("kup-button", { title: dom.ketchup.language.translate(KupLanguageGeneric.SHOW_ROW_OPTIONS), id: "view-selector", icon: "menu" }))) : null));
|
|
765
773
|
}
|
|
@@ -146,7 +146,7 @@ export class KupCombobox {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
onKupItemClick(e) {
|
|
149
|
-
this.onKupChange(e.detail.selected.
|
|
149
|
+
this.onKupChange(e.detail.selected.id);
|
|
150
150
|
__classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
151
151
|
if (__classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f")) {
|
|
152
152
|
__classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").focus();
|
|
@@ -47,7 +47,6 @@ export var KupDataTableProps;
|
|
|
47
47
|
KupDataTableProps["showGroups"] = "When set to true enables the column grouping.";
|
|
48
48
|
KupDataTableProps["showHeader"] = "Enables rendering of the table header.";
|
|
49
49
|
KupDataTableProps["showLoadMore"] = "If set to true, displays the button to load more records.";
|
|
50
|
-
KupDataTableProps["showTooltipOnRightClick"] = "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.";
|
|
51
50
|
KupDataTableProps["sort"] = "Defines the current sorting options.";
|
|
52
51
|
KupDataTableProps["stateId"] = "";
|
|
53
52
|
KupDataTableProps["store"] = "";
|
|
@@ -55,9 +54,8 @@ export var KupDataTableProps;
|
|
|
55
54
|
KupDataTableProps["sortEnabled"] = "When set to true enables the sorting of the columns by clicking on the column header.";
|
|
56
55
|
KupDataTableProps["tableHeight"] = "Sets the height of the table.";
|
|
57
56
|
KupDataTableProps["tableWidth"] = "Sets the width of the table.";
|
|
58
|
-
KupDataTableProps["tooltipDetailTimeout"] = "Defines the timeout for tooltip detail";
|
|
59
|
-
KupDataTableProps["tooltipEnabled"] = "Enable show tooltip";
|
|
60
57
|
KupDataTableProps["totals"] = "Defines the current totals options.";
|
|
58
|
+
KupDataTableProps["transpose"] = "Transposes the data of the data table.";
|
|
61
59
|
})(KupDataTableProps || (KupDataTableProps = {}));
|
|
62
60
|
export var SortMode;
|
|
63
61
|
(function (SortMode) {
|
|
@@ -6,7 +6,6 @@ import { numberToFormattedStringNumber, identify, getProps, setProps, } from '..
|
|
|
6
6
|
import { ItemsDisplayMode, } from '../kup-list/kup-list-declarations';
|
|
7
7
|
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
8
8
|
import { KupDataTableState } from './kup-data-table-state';
|
|
9
|
-
import { setTooltip, unsetTooltip } from '../../utils/helpers';
|
|
10
9
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
11
10
|
import { FTextField } from '../../f-components/f-text-field/f-text-field';
|
|
12
11
|
import { FChip } from '../../f-components/f-chip/f-chip';
|
|
@@ -219,10 +218,6 @@ export class KupDataTable {
|
|
|
219
218
|
* If set to true, displays the button to load more records.
|
|
220
219
|
*/
|
|
221
220
|
this.showLoadMore = false;
|
|
222
|
-
/**
|
|
223
|
-
* If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.
|
|
224
|
-
*/
|
|
225
|
-
this.showTooltipOnRightClick = true;
|
|
226
221
|
/**
|
|
227
222
|
* Defines the current sorting options.
|
|
228
223
|
*/
|
|
@@ -244,10 +239,6 @@ export class KupDataTable {
|
|
|
244
239
|
* Sets the width of the table.
|
|
245
240
|
*/
|
|
246
241
|
this.tableWidth = undefined;
|
|
247
|
-
/**
|
|
248
|
-
* Enable show tooltip
|
|
249
|
-
*/
|
|
250
|
-
this.tooltipEnabled = true;
|
|
251
242
|
/**
|
|
252
243
|
* Transposes the data of the data table
|
|
253
244
|
*/
|
|
@@ -265,6 +256,7 @@ export class KupDataTable {
|
|
|
265
256
|
this.openedTotalMenu = null;
|
|
266
257
|
this.openedCustomSettings = false;
|
|
267
258
|
this.fontsize = 'medium';
|
|
259
|
+
this.initialized = false;
|
|
268
260
|
this.rowsLength = 0;
|
|
269
261
|
this.paginatedRowsLength = 0;
|
|
270
262
|
/**
|
|
@@ -564,7 +556,9 @@ export class KupDataTable {
|
|
|
564
556
|
}
|
|
565
557
|
}
|
|
566
558
|
recalculateData() {
|
|
567
|
-
this.
|
|
559
|
+
if (this.initialized) {
|
|
560
|
+
this.calculateData();
|
|
561
|
+
}
|
|
568
562
|
}
|
|
569
563
|
/**
|
|
570
564
|
* Closes any opened column menu.
|
|
@@ -670,7 +664,7 @@ export class KupDataTable {
|
|
|
670
664
|
}
|
|
671
665
|
this.columnMenuCard.setAttribute('data-column', column);
|
|
672
666
|
this.columnMenuCard.data = this.columnMenuInstance.prepData(this, getColumnByName(this.getVisibleColumns(), column));
|
|
673
|
-
this.columnMenuInstance.open(this, column
|
|
667
|
+
this.columnMenuInstance.open(this, column);
|
|
674
668
|
this.columnMenuInstance.reposition(this, this.columnMenuCard);
|
|
675
669
|
this.kupDataTableColumnMenu.emit({
|
|
676
670
|
comp: this,
|
|
@@ -1256,9 +1250,13 @@ export class KupDataTable {
|
|
|
1256
1250
|
}
|
|
1257
1251
|
if (this.dropEnabled) {
|
|
1258
1252
|
const dataCb = () => {
|
|
1259
|
-
const
|
|
1260
|
-
|
|
1261
|
-
|
|
1253
|
+
const cell = this.rootElement.shadowRoot.querySelector('td:hover');
|
|
1254
|
+
if (!cell) {
|
|
1255
|
+
this.kupManager.debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
|
|
1256
|
+
return;
|
|
1257
|
+
}
|
|
1258
|
+
const path = this.getEventPath(cell);
|
|
1259
|
+
const receivingDetails = this.getEventDetails(path);
|
|
1262
1260
|
return {
|
|
1263
1261
|
cell: receivingDetails.cell,
|
|
1264
1262
|
column: receivingDetails.column,
|
|
@@ -1392,6 +1390,7 @@ export class KupDataTable {
|
|
|
1392
1390
|
CSS.supports('position', '-webkit-sticky') ||
|
|
1393
1391
|
!!(window && window.safari);
|
|
1394
1392
|
this.calculateData();
|
|
1393
|
+
this.initialized = true;
|
|
1395
1394
|
}
|
|
1396
1395
|
componentWillRender() {
|
|
1397
1396
|
this.kupManager.debug.logRender(this, false);
|
|
@@ -1437,9 +1436,8 @@ export class KupDataTable {
|
|
|
1437
1436
|
this.kupManager.debug.logLoad(this, true);
|
|
1438
1437
|
}
|
|
1439
1438
|
//======== Utility methods ========
|
|
1440
|
-
getEventPath(
|
|
1441
|
-
|
|
1442
|
-
let currentEl = e.target;
|
|
1439
|
+
getEventPath(currentEl) {
|
|
1440
|
+
const path = [];
|
|
1443
1441
|
while (currentEl &&
|
|
1444
1442
|
currentEl !== this.rootElement &&
|
|
1445
1443
|
currentEl !== document.body) {
|
|
@@ -1730,7 +1728,7 @@ export class KupDataTable {
|
|
|
1730
1728
|
};
|
|
1731
1729
|
}
|
|
1732
1730
|
clickHandler(e) {
|
|
1733
|
-
const details = this.getEventDetails(this.getEventPath(e), e);
|
|
1731
|
+
const details = this.getEventDetails(this.getEventPath(e.target), e);
|
|
1734
1732
|
if (details.area === 'header') {
|
|
1735
1733
|
if (details.th && details.column) {
|
|
1736
1734
|
if (details.filterRemove) {
|
|
@@ -1769,26 +1767,13 @@ export class KupDataTable {
|
|
|
1769
1767
|
return details;
|
|
1770
1768
|
}
|
|
1771
1769
|
contextMenuHandler(e) {
|
|
1772
|
-
const details = this.getEventDetails(this.getEventPath(e), e);
|
|
1770
|
+
const details = this.getEventDetails(this.getEventPath(e.target), e);
|
|
1773
1771
|
if (details.area === 'header') {
|
|
1774
1772
|
if (details.th && details.column) {
|
|
1775
1773
|
this.openColumnMenu(details.column.name);
|
|
1776
1774
|
return details;
|
|
1777
1775
|
}
|
|
1778
1776
|
}
|
|
1779
|
-
else if (details.area === 'body') {
|
|
1780
|
-
const _hasTooltip = details.cell.obj
|
|
1781
|
-
? !this.kupManager.objects.isEmptyKupObj(details.cell.obj)
|
|
1782
|
-
: false;
|
|
1783
|
-
if (_hasTooltip &&
|
|
1784
|
-
this.showTooltipOnRightClick &&
|
|
1785
|
-
details.td &&
|
|
1786
|
-
details.cell) {
|
|
1787
|
-
const columnName = details.column ? details.column.name : null;
|
|
1788
|
-
setTooltip(e, details.row.id, columnName, details.cell, this.tooltip);
|
|
1789
|
-
return details;
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
1777
|
else if (details.area === 'footer') {
|
|
1793
1778
|
if (details.td && details.column) {
|
|
1794
1779
|
this.totalMenuCoords = { x: e.clientX, y: e.clientY };
|
|
@@ -1799,7 +1784,7 @@ export class KupDataTable {
|
|
|
1799
1784
|
return details;
|
|
1800
1785
|
}
|
|
1801
1786
|
dblClickHandler(e) {
|
|
1802
|
-
const details = this.getEventDetails(this.getEventPath(e), e);
|
|
1787
|
+
const details = this.getEventDetails(this.getEventPath(e.target), e);
|
|
1803
1788
|
if (details.area === 'body') {
|
|
1804
1789
|
if (this.selection == SelectionMode.MULTIPLE) {
|
|
1805
1790
|
this.resetSelectedRows();
|
|
@@ -2236,9 +2221,6 @@ export class KupDataTable {
|
|
|
2236
2221
|
this.openedTotalMenu = null;
|
|
2237
2222
|
this.kupManager.removeClickCallback(this.clickCb);
|
|
2238
2223
|
}
|
|
2239
|
-
closeMenuAndTooltip() {
|
|
2240
|
-
unsetTooltip(this.tooltip);
|
|
2241
|
-
}
|
|
2242
2224
|
isOpenedTotalMenuForColumn(column) {
|
|
2243
2225
|
return this.openedTotalMenu === column;
|
|
2244
2226
|
}
|
|
@@ -2552,14 +2534,6 @@ export class KupDataTable {
|
|
|
2552
2534
|
});
|
|
2553
2535
|
return [multiSelectColumn, actionsColumn, ...dataColumns];
|
|
2554
2536
|
}
|
|
2555
|
-
renderTooltip() {
|
|
2556
|
-
if (this.tooltipEnabled == false) {
|
|
2557
|
-
return null;
|
|
2558
|
-
}
|
|
2559
|
-
return (h("kup-tooltip", { class: "datatable-tooltip", owner: this.rootElement.tagName, loadTimeout: this.showTooltipOnRightClick == true
|
|
2560
|
-
? 0
|
|
2561
|
-
: this.tooltipLoadTimeout, detailTimeout: this.tooltipDetailTimeout, ref: (el) => (this.tooltip = el) }));
|
|
2562
|
-
}
|
|
2563
2537
|
areTotalsSelected(column) {
|
|
2564
2538
|
return this.totals && this.totals[column.name] ? true : false;
|
|
2565
2539
|
}
|
|
@@ -2570,7 +2544,7 @@ export class KupDataTable {
|
|
|
2570
2544
|
// must do this
|
|
2571
2545
|
// otherwise does not fire the watcher
|
|
2572
2546
|
const totalsCopy = Object.assign({}, this.totals);
|
|
2573
|
-
const value = event.detail.selected.
|
|
2547
|
+
const value = event.detail.selected.id;
|
|
2574
2548
|
if (value === TotalLabel.CANC) {
|
|
2575
2549
|
if (this.totals && this.totals[column.name]) {
|
|
2576
2550
|
delete totalsCopy[column.name];
|
|
@@ -2600,7 +2574,6 @@ export class KupDataTable {
|
|
|
2600
2574
|
}
|
|
2601
2575
|
}
|
|
2602
2576
|
onTotalMenuOpen(column) {
|
|
2603
|
-
this.closeMenuAndTooltip();
|
|
2604
2577
|
this.closeTotalMenu();
|
|
2605
2578
|
this.openTotalMenu(column);
|
|
2606
2579
|
}
|
|
@@ -2993,25 +2966,8 @@ export class KupDataTable {
|
|
|
2993
2966
|
cellStyle['width'] = colWidth;
|
|
2994
2967
|
}
|
|
2995
2968
|
}
|
|
2996
|
-
/**
|
|
2997
|
-
* Controls if current cell needs a tooltip and eventually adds it.
|
|
2998
|
-
* @todo When the option forceOneLine is active, there is a problem with the current implementation of the tooltip. See documentation in the mauer wiki for better understanding.
|
|
2999
|
-
*/
|
|
3000
|
-
const _hasTooltip = !this.kupManager.objects.isEmptyKupObj(cell.obj);
|
|
3001
2969
|
let eventHandlers = undefined;
|
|
3002
2970
|
let title = undefined;
|
|
3003
|
-
if (_hasTooltip) {
|
|
3004
|
-
if (!this.showTooltipOnRightClick) {
|
|
3005
|
-
eventHandlers = {
|
|
3006
|
-
onMouseEnter: (ev) => {
|
|
3007
|
-
setTooltip(ev, row.id, currentColumn.name, cell, this.tooltip);
|
|
3008
|
-
},
|
|
3009
|
-
onMouseLeave: () => {
|
|
3010
|
-
unsetTooltip(this.tooltip);
|
|
3011
|
-
},
|
|
3012
|
-
};
|
|
3013
|
-
}
|
|
3014
|
-
}
|
|
3015
2971
|
cellClass = Object.assign({}, cellClass);
|
|
3016
2972
|
return (h("td", Object.assign({ title: title, colSpan: cell.span && cell.span.col ? cell.span.col : null, rowSpan: cell.span && cell.span.row ? cell.span.row : null, "data-cell": cell, "data-column": name, "data-row": row, style: cellStyle, class: cellClass }, eventHandlers), jsxCell));
|
|
3017
2973
|
});
|
|
@@ -3366,7 +3322,6 @@ export class KupDataTable {
|
|
|
3366
3322
|
// for multi selection purposes, this should be called before this.renderedRows has been evaluated
|
|
3367
3323
|
const header = this.renderHeader();
|
|
3368
3324
|
const stickyHeader = this.renderStickyHeader();
|
|
3369
|
-
const tooltip = this.renderTooltip();
|
|
3370
3325
|
let paginatorTop = undefined;
|
|
3371
3326
|
let paginatorBottom = undefined;
|
|
3372
3327
|
if ((!this.lazyLoadRows && this.rowsLength > this.rowsPerPage) ||
|
|
@@ -3479,7 +3434,6 @@ export class KupDataTable {
|
|
|
3479
3434
|
: null,
|
|
3480
3435
|
h("table", { class: tableClass, ref: (el) => (this.tableRef = el), onMouseLeave: (ev) => {
|
|
3481
3436
|
ev.stopPropagation();
|
|
3482
|
-
unsetTooltip(this.tooltip);
|
|
3483
3437
|
}, onContextMenu: (e) => {
|
|
3484
3438
|
e.preventDefault();
|
|
3485
3439
|
} },
|
|
@@ -3490,7 +3444,6 @@ export class KupDataTable {
|
|
|
3490
3444
|
? this.renderFooter()
|
|
3491
3445
|
: null),
|
|
3492
3446
|
stickyEl),
|
|
3493
|
-
tooltip,
|
|
3494
3447
|
paginatorBottom)));
|
|
3495
3448
|
return compCreated;
|
|
3496
3449
|
}
|
|
@@ -4417,24 +4370,6 @@ export class KupDataTable {
|
|
|
4417
4370
|
"reflect": false,
|
|
4418
4371
|
"defaultValue": "false"
|
|
4419
4372
|
},
|
|
4420
|
-
"showTooltipOnRightClick": {
|
|
4421
|
-
"type": "boolean",
|
|
4422
|
-
"mutable": false,
|
|
4423
|
-
"complexType": {
|
|
4424
|
-
"original": "boolean",
|
|
4425
|
-
"resolved": "boolean",
|
|
4426
|
-
"references": {}
|
|
4427
|
-
},
|
|
4428
|
-
"required": false,
|
|
4429
|
-
"optional": false,
|
|
4430
|
-
"docs": {
|
|
4431
|
-
"tags": [],
|
|
4432
|
-
"text": "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver."
|
|
4433
|
-
},
|
|
4434
|
-
"attribute": "show-tooltip-on-right-click",
|
|
4435
|
-
"reflect": false,
|
|
4436
|
-
"defaultValue": "true"
|
|
4437
|
-
},
|
|
4438
4373
|
"sort": {
|
|
4439
4374
|
"type": "unknown",
|
|
4440
4375
|
"mutable": true,
|
|
@@ -4531,58 +4466,6 @@ export class KupDataTable {
|
|
|
4531
4466
|
"reflect": false,
|
|
4532
4467
|
"defaultValue": "undefined"
|
|
4533
4468
|
},
|
|
4534
|
-
"tooltipDetailTimeout": {
|
|
4535
|
-
"type": "number",
|
|
4536
|
-
"mutable": false,
|
|
4537
|
-
"complexType": {
|
|
4538
|
-
"original": "number",
|
|
4539
|
-
"resolved": "number",
|
|
4540
|
-
"references": {}
|
|
4541
|
-
},
|
|
4542
|
-
"required": false,
|
|
4543
|
-
"optional": false,
|
|
4544
|
-
"docs": {
|
|
4545
|
-
"tags": [],
|
|
4546
|
-
"text": "Defines the timeout for tooltip detail"
|
|
4547
|
-
},
|
|
4548
|
-
"attribute": "tooltip-detail-timeout",
|
|
4549
|
-
"reflect": false
|
|
4550
|
-
},
|
|
4551
|
-
"tooltipEnabled": {
|
|
4552
|
-
"type": "boolean",
|
|
4553
|
-
"mutable": false,
|
|
4554
|
-
"complexType": {
|
|
4555
|
-
"original": "boolean",
|
|
4556
|
-
"resolved": "boolean",
|
|
4557
|
-
"references": {}
|
|
4558
|
-
},
|
|
4559
|
-
"required": false,
|
|
4560
|
-
"optional": false,
|
|
4561
|
-
"docs": {
|
|
4562
|
-
"tags": [],
|
|
4563
|
-
"text": "Enable show tooltip"
|
|
4564
|
-
},
|
|
4565
|
-
"attribute": "tooltip-enabled",
|
|
4566
|
-
"reflect": false,
|
|
4567
|
-
"defaultValue": "true"
|
|
4568
|
-
},
|
|
4569
|
-
"tooltipLoadTimeout": {
|
|
4570
|
-
"type": "number",
|
|
4571
|
-
"mutable": false,
|
|
4572
|
-
"complexType": {
|
|
4573
|
-
"original": "number",
|
|
4574
|
-
"resolved": "number",
|
|
4575
|
-
"references": {}
|
|
4576
|
-
},
|
|
4577
|
-
"required": false,
|
|
4578
|
-
"optional": false,
|
|
4579
|
-
"docs": {
|
|
4580
|
-
"tags": [],
|
|
4581
|
-
"text": "Defines the timeout for tooltip load"
|
|
4582
|
-
},
|
|
4583
|
-
"attribute": "tooltip-load-timeout",
|
|
4584
|
-
"reflect": false
|
|
4585
|
-
},
|
|
4586
4469
|
"totals": {
|
|
4587
4470
|
"type": "unknown",
|
|
4588
4471
|
"mutable": true,
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
--kup-textfield-primary-color-rgb: var(--kup-drawer-color-rgb);
|
|
78
78
|
--kup-tree-color: var(--kup-drawer-color);
|
|
79
79
|
--kup-tree-color-rgb: var(--kup-drawer-color-rgb);
|
|
80
|
+
--kup-tree-filter-background-color: var(--kup-drawer-background-color);
|
|
80
81
|
--kup-tree-icon-color: var(--kup-drawer-color);
|
|
81
82
|
color: var(--kup-drawer-color);
|
|
82
83
|
fill: var(--kup-drawer-color);
|
|
@@ -125,9 +125,16 @@ export class KupDrawer {
|
|
|
125
125
|
render() {
|
|
126
126
|
return (h(Host, { "kup-opened": this.opened },
|
|
127
127
|
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
128
|
-
h("div", { class: "backdrop",
|
|
128
|
+
h("div", { class: "backdrop", onClick: (e) => {
|
|
129
|
+
e.preventDefault();
|
|
130
|
+
e.stopPropagation();
|
|
131
|
+
}, onPointerDown: (e) => {
|
|
132
|
+
e.preventDefault();
|
|
129
133
|
e.stopPropagation();
|
|
130
134
|
this.close();
|
|
135
|
+
}, onTouchStart: (e) => {
|
|
136
|
+
e.preventDefault();
|
|
137
|
+
e.stopPropagation();
|
|
131
138
|
} }),
|
|
132
139
|
h("div", { id: componentWrapperId },
|
|
133
140
|
h("div", { class: drawerClass }, this.content()))));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props of the kup-form-editor component.
|
|
3
|
+
* Used to export every prop in an object.
|
|
4
|
+
*/
|
|
5
|
+
export var KupFormEditorProps;
|
|
6
|
+
(function (KupFormEditorProps) {
|
|
7
|
+
KupFormEditorProps["customStyle"] = "Custom style of the component.";
|
|
8
|
+
KupFormEditorProps["data"] = "The data of the component.";
|
|
9
|
+
})(KupFormEditorProps || (KupFormEditorProps = {}));
|
|
10
|
+
export var KupFormEditorDragTypes;
|
|
11
|
+
(function (KupFormEditorDragTypes) {
|
|
12
|
+
KupFormEditorDragTypes["Components"] = "1";
|
|
13
|
+
KupFormEditorDragTypes["Sections"] = "2";
|
|
14
|
+
})(KupFormEditorDragTypes || (KupFormEditorDragTypes = {}));
|
|
15
|
+
export var KupFormEditorLabels;
|
|
16
|
+
(function (KupFormEditorLabels) {
|
|
17
|
+
KupFormEditorLabels["Loaded"] = "Loaded";
|
|
18
|
+
KupFormEditorLabels["Reset"] = "Reset";
|
|
19
|
+
KupFormEditorLabels["Save"] = "Save";
|
|
20
|
+
KupFormEditorLabels["Components"] = "Components";
|
|
21
|
+
KupFormEditorLabels["Sections"] = "Sections";
|
|
22
|
+
KupFormEditorLabels["Column"] = "Column";
|
|
23
|
+
})(KupFormEditorLabels || (KupFormEditorLabels = {}));
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.header {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
}
|
|
11
|
+
.header > * {
|
|
12
|
+
margin-left: 0.5em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.form {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-gap: 0.5em;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.form-dropzone {
|
|
21
|
+
padding: 1em;
|
|
22
|
+
border: 1px solid var(--kup-primary-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.section {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.section-header {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
34
|
+
.section-header > * {
|
|
35
|
+
width: 100%;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
}
|
|
39
|
+
.section-header > * > .section-header-actions {
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: end;
|
|
42
|
+
}
|
|
43
|
+
.section-header > * > .section-header-actions > * {
|
|
44
|
+
margin-top: auto;
|
|
45
|
+
margin-bottom: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.section-body {
|
|
49
|
+
display: grid;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.section-dropzone {
|
|
53
|
+
border: 1px solid var(--kup-primary-color);
|
|
54
|
+
min-height: 100px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.section-draggable {
|
|
58
|
+
border: 1px solid var(--kup-secondary-color);
|
|
59
|
+
padding: 1em;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.component {
|
|
63
|
+
height: fit-content;
|
|
64
|
+
padding: 1em;
|
|
65
|
+
margin: 0.5em;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.component-draggable {
|
|
69
|
+
border: 1px solid var(--kup-secondary-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.layout-row {
|
|
73
|
+
grid-auto-flow: column;
|
|
74
|
+
grid-template-columns: min-content;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.layout-column {
|
|
78
|
+
grid-auto-flow: row;
|
|
79
|
+
grid-template-rows: min-content;
|
|
80
|
+
}
|