@sme.up/ketchup 6.7.0 → 6.9.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/dist/cjs/{f-button-bf76ab95.js → f-button-e48df7ac.js} +1 -1
- package/dist/cjs/{f-cell-b7a1524a.js → f-cell-73b2fd86.js} +5 -5
- package/dist/cjs/{f-chip-a5e100b1.js → f-chip-1d499dc9.js} +2 -2
- package/dist/cjs/{f-image-d80a2749.js → f-image-9be73458.js} +1 -1
- package/dist/cjs/{f-paginator-utils-c70812fe.js → f-paginator-utils-b1f44f04.js} +2 -2
- package/dist/cjs/{f-text-field-48b8bb16.js → f-text-field-43439612.js} +1 -1
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +6 -29
- package/dist/cjs/{kup-autocomplete_25.cjs.entry.js → kup-autocomplete_26.cjs.entry.js} +3792 -4304
- package/dist/cjs/kup-box.cjs.entry.js +29 -110
- package/dist/cjs/kup-calendar.cjs.entry.js +9 -33
- package/dist/cjs/kup-cell.cjs.entry.js +8 -27
- package/dist/cjs/kup-dash-list.cjs.entry.js +9 -8
- package/dist/cjs/kup-dash_2.cjs.entry.js +6 -34
- package/dist/cjs/kup-dashboard.cjs.entry.js +8 -30
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -18
- package/dist/cjs/kup-echart.cjs.entry.js +15 -76
- package/dist/cjs/kup-family-tree.cjs.entry.js +11 -47
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -16
- package/dist/cjs/kup-image-list.cjs.entry.js +14 -32
- package/dist/cjs/kup-lazy.cjs.entry.js +9 -36
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -24
- package/dist/cjs/{kup-manager-0e38bf48.js → kup-manager-58ba55f4.js} +70 -2
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -15
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +13 -56
- package/dist/cjs/kup-photo-frame.cjs.entry.js +8 -30
- package/dist/cjs/kup-probe.cjs.entry.js +12 -32
- package/dist/cjs/kup-qlik.cjs.entry.js +5 -59
- package/dist/cjs/kup-snackbar.cjs.entry.js +6 -37
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/data-table.js +0 -44
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/kup-accordion/kup-accordion.js +4 -27
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +15 -64
- package/dist/collection/components/kup-badge/kup-badge.js +3 -19
- package/dist/collection/components/kup-box/kup-box.js +22 -103
- package/dist/collection/components/kup-button/kup-button.js +3 -58
- package/dist/collection/components/kup-button-list/kup-button-list.js +3 -38
- package/dist/collection/components/kup-calendar/kup-calendar.js +5 -29
- package/dist/collection/components/kup-card/box/kup-card-box.js +5 -2
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -2
- package/dist/collection/components/kup-card/built-in/kup-card-form.js +11 -0
- package/dist/collection/components/kup-card/kup-card.css +78 -12
- package/dist/collection/components/kup-card/kup-card.js +48 -47
- package/dist/collection/components/kup-cell/kup-cell.js +3 -22
- package/dist/collection/components/kup-chart/kup-chart.js +15 -49
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +3 -38
- package/dist/collection/components/kup-chip/kup-chip.js +5 -21
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +4 -35
- package/dist/collection/components/kup-combobox/kup-combobox.js +10 -42
- package/dist/collection/components/kup-dash/kup-dash.js +2 -14
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +8 -7
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +4 -26
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.css +9 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +3546 -3385
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +7 -35
- package/dist/collection/components/kup-drawer/kup-drawer.js +2 -17
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +12 -63
- package/dist/collection/components/kup-echart/kup-echart.js +14 -75
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +8 -44
- package/dist/collection/components/kup-form/kup-form.js +4 -24
- package/dist/collection/components/kup-gauge/kup-gauge.js +15 -76
- package/dist/collection/components/kup-grid/kup-grid.js +3 -19
- package/dist/collection/components/kup-iframe/kup-iframe.js +3 -15
- package/dist/collection/components/kup-image/kup-image.js +5 -45
- package/dist/collection/components/kup-image-list/kup-image-list.js +8 -26
- package/dist/collection/components/kup-lazy/kup-lazy.js +8 -35
- package/dist/collection/components/kup-list/kup-list.js +5 -68
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -22
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -14
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +11 -54
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +7 -29
- package/dist/collection/components/kup-probe/kup-probe.js +11 -31
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +3 -35
- package/dist/collection/components/kup-qlik/kup-qlik.js +4 -58
- package/dist/collection/components/kup-radio/kup-radio.js +3 -34
- package/dist/collection/components/kup-rating/kup-rating.js +4 -27
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +3 -34
- package/dist/collection/components/kup-spinner/kup-spinner.js +3 -39
- package/dist/collection/components/kup-switch/kup-switch.js +3 -34
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +4 -24
- package/dist/collection/components/kup-text-field/kup-text-field.js +2 -115
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -43
- package/dist/collection/components/kup-tree/kup-tree.js +39 -129
- package/dist/collection/f-components/f-cell/f-cell.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +4 -1
- package/dist/collection/managers/kup-language/kup-language-declarations.js +6 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
- package/dist/components/index.d.ts +68 -0
- package/dist/components/index.js +48 -0
- package/dist/components/kup-accordion.d.ts +11 -0
- package/dist/components/kup-accordion.js +363 -0
- package/dist/components/kup-autocomplete.d.ts +11 -0
- package/dist/components/kup-autocomplete.js +6 -0
- package/dist/components/kup-autocomplete2.js +45995 -0
- package/dist/components/kup-badge.d.ts +11 -0
- package/dist/components/kup-badge.js +6 -0
- package/dist/components/kup-box.d.ts +11 -0
- package/dist/components/kup-box.js +6 -0
- package/dist/components/kup-box2.js +1412 -0
- package/dist/components/kup-button-list.d.ts +11 -0
- package/dist/components/kup-button-list.js +6 -0
- package/dist/components/kup-button.d.ts +11 -0
- package/dist/components/kup-button.js +6 -0
- package/dist/components/kup-calendar.d.ts +11 -0
- package/dist/components/kup-calendar.js +14818 -0
- package/dist/components/kup-card.d.ts +11 -0
- package/dist/components/kup-card.js +6 -0
- package/dist/components/kup-cell.d.ts +11 -0
- package/dist/components/kup-cell.js +332 -0
- package/dist/components/kup-chart.d.ts +11 -0
- package/dist/components/kup-chart.js +6 -0
- package/dist/components/kup-checkbox.d.ts +11 -0
- package/dist/components/kup-checkbox.js +6 -0
- package/dist/components/kup-chip.d.ts +11 -0
- package/dist/components/kup-chip.js +6 -0
- package/dist/components/kup-color-picker.d.ts +11 -0
- package/dist/components/kup-color-picker.js +6 -0
- package/dist/components/kup-combobox.d.ts +11 -0
- package/dist/components/kup-combobox.js +6 -0
- package/dist/components/kup-dash-list.d.ts +11 -0
- package/dist/components/kup-dash-list.js +275 -0
- package/dist/components/kup-dash.d.ts +11 -0
- package/dist/components/kup-dash.js +6 -0
- package/dist/components/kup-dash2.js +223 -0
- package/dist/components/kup-dashboard.d.ts +11 -0
- package/dist/components/kup-dashboard.js +559 -0
- package/dist/components/kup-data-table.d.ts +11 -0
- package/dist/components/kup-data-table.js +6 -0
- package/dist/components/kup-date-picker.d.ts +11 -0
- package/dist/components/kup-date-picker.js +6 -0
- package/dist/components/kup-drawer.d.ts +11 -0
- package/dist/components/kup-drawer.js +303 -0
- package/dist/components/kup-dropdown-button.d.ts +11 -0
- package/dist/components/kup-dropdown-button.js +6 -0
- package/dist/components/kup-echart.d.ts +11 -0
- package/dist/components/kup-echart.js +6 -0
- package/dist/components/kup-echart2.js +94317 -0
- package/dist/components/kup-family-tree.d.ts +11 -0
- package/dist/components/kup-family-tree.js +623 -0
- package/dist/components/kup-form.d.ts +11 -0
- package/dist/components/kup-form.js +6 -0
- package/dist/components/kup-gauge.d.ts +11 -0
- package/dist/components/kup-gauge.js +6 -0
- package/dist/components/kup-grid.d.ts +11 -0
- package/dist/components/kup-grid.js +6 -0
- package/dist/components/kup-grid2.js +256 -0
- package/dist/components/kup-iframe.d.ts +11 -0
- package/dist/components/kup-iframe.js +257 -0
- package/dist/components/kup-image-list.d.ts +11 -0
- package/dist/components/kup-image-list.js +416 -0
- package/dist/components/kup-image.d.ts +11 -0
- package/dist/components/kup-image.js +6 -0
- package/dist/components/kup-lazy.d.ts +11 -0
- package/dist/components/kup-lazy.js +352 -0
- package/dist/components/kup-list.d.ts +11 -0
- package/dist/components/kup-list.js +6 -0
- package/dist/components/kup-magic-box.d.ts +11 -0
- package/dist/components/kup-magic-box.js +470 -0
- package/dist/components/kup-nav-bar.d.ts +11 -0
- package/dist/components/kup-nav-bar.js +292 -0
- package/dist/components/kup-numeric-picker.d.ts +11 -0
- package/dist/components/kup-numeric-picker.js +536 -0
- package/dist/components/kup-photo-frame.d.ts +11 -0
- package/dist/components/kup-photo-frame.js +308 -0
- package/dist/components/kup-probe.d.ts +11 -0
- package/dist/components/kup-probe.js +403 -0
- package/dist/components/kup-progress-bar.d.ts +11 -0
- package/dist/components/kup-progress-bar.js +6 -0
- package/dist/components/kup-qlik.d.ts +11 -0
- package/dist/components/kup-qlik.js +302 -0
- package/dist/components/kup-radio.d.ts +11 -0
- package/dist/components/kup-radio.js +6 -0
- package/dist/components/kup-rating.d.ts +11 -0
- package/dist/components/kup-rating.js +6 -0
- package/dist/components/kup-snackbar.d.ts +11 -0
- package/dist/components/kup-snackbar.js +272 -0
- package/dist/components/kup-spinner.d.ts +11 -0
- package/dist/components/kup-spinner.js +6 -0
- package/dist/components/kup-switch.d.ts +11 -0
- package/dist/components/kup-switch.js +6 -0
- package/dist/components/kup-tab-bar.d.ts +11 -0
- package/dist/components/kup-tab-bar.js +6 -0
- package/dist/components/kup-text-field.d.ts +11 -0
- package/dist/components/kup-text-field.js +6 -0
- package/dist/components/kup-time-picker.d.ts +11 -0
- package/dist/components/kup-time-picker.js +6 -0
- package/dist/components/kup-tree.d.ts +11 -0
- package/dist/components/kup-tree.js +6 -0
- package/dist/esm/{f-button-e79f7594.js → f-button-b902ad65.js} +1 -1
- package/dist/esm/{f-cell-9400374e.js → f-cell-b11d0d5d.js} +5 -5
- package/dist/esm/{f-chip-bf740287.js → f-chip-6b8cd306.js} +2 -2
- package/dist/esm/{f-image-ab3dc8cb.js → f-image-983805af.js} +1 -1
- package/dist/esm/{f-paginator-utils-6909e43b.js → f-paginator-utils-b22bec1f.js} +2 -2
- package/dist/esm/{f-text-field-4841dfea.js → f-text-field-3f9a7ba7.js} +1 -1
- package/dist/esm/ketchup.js +2 -2
- package/dist/esm/kup-accordion.entry.js +6 -29
- package/dist/esm/{kup-autocomplete_25.entry.js → kup-autocomplete_26.entry.js} +3790 -4303
- package/dist/esm/kup-box.entry.js +29 -110
- package/dist/esm/kup-calendar.entry.js +9 -33
- package/dist/esm/kup-cell.entry.js +8 -27
- package/dist/esm/kup-dash-list.entry.js +9 -8
- package/dist/esm/kup-dash_2.entry.js +6 -34
- package/dist/esm/kup-dashboard.entry.js +8 -30
- package/dist/esm/kup-drawer.entry.js +3 -18
- package/dist/esm/kup-echart.entry.js +15 -76
- package/dist/esm/kup-family-tree.entry.js +11 -47
- package/dist/esm/kup-iframe.entry.js +4 -16
- package/dist/esm/kup-image-list.entry.js +14 -32
- package/dist/esm/kup-lazy.entry.js +9 -36
- package/dist/esm/kup-magic-box.entry.js +5 -24
- package/dist/esm/{kup-manager-c54e6df5.js → kup-manager-a1976c1f.js} +71 -3
- package/dist/esm/kup-nav-bar.entry.js +3 -15
- package/dist/esm/kup-numeric-picker.entry.js +13 -56
- package/dist/esm/kup-photo-frame.entry.js +8 -30
- package/dist/esm/kup-probe.entry.js +12 -32
- package/dist/esm/kup-qlik.entry.js +5 -59
- package/dist/esm/kup-snackbar.entry.js +6 -37
- package/dist/esm/loader.js +2 -2
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-4a0ccf18.entry.js → p-0e34943f.entry.js} +1 -1
- package/dist/ketchup/p-1df3f4b3.js +30 -0
- package/dist/ketchup/p-1f1c3e90.entry.js +1 -0
- package/dist/ketchup/p-2f274bd1.entry.js +1 -0
- package/dist/ketchup/{p-e1d0ea71.js → p-34fb0757.js} +1 -1
- package/dist/ketchup/p-43d52a62.js +1 -0
- package/dist/ketchup/{p-4f0d3062.js → p-59a78bb2.js} +1 -1
- package/dist/ketchup/{p-bffaef6e.entry.js → p-5c6798dc.entry.js} +1 -1
- package/dist/ketchup/p-5d4503ff.entry.js +9 -0
- package/dist/ketchup/{p-182b869e.entry.js → p-6154123c.entry.js} +1 -1
- package/dist/ketchup/p-657eb6db.js +1 -0
- package/dist/ketchup/{p-30a63b85.entry.js → p-6686f614.entry.js} +1 -1
- package/dist/ketchup/p-67c86b4a.entry.js +1 -0
- package/dist/ketchup/{p-25bf0cb6.js → p-751a87a6.js} +1 -1
- package/dist/ketchup/{p-60fa0ccf.entry.js → p-7d223413.entry.js} +1 -1
- package/dist/ketchup/{p-7e7b6127.entry.js → p-8bed854e.entry.js} +1 -1
- package/dist/ketchup/{p-6bd57787.entry.js → p-9003c78d.entry.js} +1 -1
- package/dist/ketchup/{p-41620707.entry.js → p-913d78b8.entry.js} +1 -1
- package/dist/ketchup/{p-f9d5e553.entry.js → p-a4c30e9a.entry.js} +1 -1
- package/dist/ketchup/p-b2bb0feb.entry.js +1 -0
- package/dist/ketchup/{p-fb4d772a.entry.js → p-b8de542a.entry.js} +1 -1
- package/dist/ketchup/{p-2e184b57.entry.js → p-bb172702.entry.js} +1 -1
- package/dist/ketchup/{p-859163c2.entry.js → p-c1d3332f.entry.js} +1 -1
- package/dist/ketchup/{p-8e1fa7a8.entry.js → p-ca42bab6.entry.js} +2 -2
- package/dist/ketchup/{p-758d03f4.entry.js → p-ca723973.entry.js} +1 -1
- package/dist/ketchup/{p-5bea2971.js → p-f08ba5cd.js} +1 -1
- package/dist/ketchup/{p-313e376b.entry.js → p-fc1f1a63.entry.js} +2 -2
- package/dist/ketchup/{p-1f5c7f21.entry.js → p-fe4d6234.entry.js} +1 -1
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -2
- package/dist/types/components/kup-card/built-in/kup-card-form.d.ts +3 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +11 -1
- package/dist/types/components/kup-card/kup-card.d.ts +5 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +9 -0
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +41 -202
- package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
- package/dist/types/components.d.ts +55 -2
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +7 -1
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +5 -0
- package/package.json +2 -2
- package/dist/cjs/kup-form.cjs.entry.js +0 -486
- package/dist/esm/kup-form.entry.js +0 -482
- package/dist/ketchup/p-1dfd2a51.js +0 -30
- package/dist/ketchup/p-22ec1ba0.entry.js +0 -9
- package/dist/ketchup/p-260ff835.entry.js +0 -1
- package/dist/ketchup/p-53d3ae80.entry.js +0 -1
- package/dist/ketchup/p-6333388c.js +0 -1
- package/dist/ketchup/p-8386e3db.entry.js +0 -1
- package/dist/ketchup/p-90860d9e.entry.js +0 -1
- package/dist/ketchup/p-b7fdc7aa.entry.js +0 -1
- package/dist/ketchup/p-c35c5e05.js +0 -1
|
@@ -18,52 +18,6 @@ import { getProps, setProps } from '../../utils/utils';
|
|
|
18
18
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
19
19
|
export class KupCard {
|
|
20
20
|
constructor() {
|
|
21
|
-
/*-------------------------------------------------*/
|
|
22
|
-
/* P r o p s */
|
|
23
|
-
/*-------------------------------------------------*/
|
|
24
|
-
/**
|
|
25
|
-
* Custom style of the component.
|
|
26
|
-
* @default ""
|
|
27
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
28
|
-
*/
|
|
29
|
-
this.customStyle = '';
|
|
30
|
-
/**
|
|
31
|
-
* The actual data of the card.
|
|
32
|
-
* @default null
|
|
33
|
-
*/
|
|
34
|
-
this.data = null;
|
|
35
|
-
/**
|
|
36
|
-
* Defines whether the card is a menu or not.
|
|
37
|
-
* Works together with menuVisible.
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
this.isMenu = false;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the type of the card.
|
|
43
|
-
* @default KupCardFamily.STANDARD
|
|
44
|
-
*/
|
|
45
|
-
this.layoutFamily = KupCardFamily.STANDARD;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the number of the layout.
|
|
48
|
-
* @default 1
|
|
49
|
-
*/
|
|
50
|
-
this.layoutNumber = 1;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the status of the card as menu, when false it's hidden otherwise it's visible.
|
|
53
|
-
* Works together with isMenu.
|
|
54
|
-
* @default false
|
|
55
|
-
*/
|
|
56
|
-
this.menuVisible = false;
|
|
57
|
-
/**
|
|
58
|
-
* The width of the card, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
|
|
59
|
-
* @default "100%"
|
|
60
|
-
*/
|
|
61
|
-
this.sizeX = '100%';
|
|
62
|
-
/**
|
|
63
|
-
* The height of the card, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).
|
|
64
|
-
* @default "100%"
|
|
65
|
-
*/
|
|
66
|
-
this.sizeY = '100%';
|
|
67
21
|
/*-------------------------------------------------*/
|
|
68
22
|
/* I n t e r n a l V a r i a b l e s */
|
|
69
23
|
/*-------------------------------------------------*/
|
|
@@ -85,6 +39,15 @@ export class KupCard {
|
|
|
85
39
|
this.componentWrapper = null;
|
|
86
40
|
this.colorPicker = null;
|
|
87
41
|
this.firstColorPickerChange = true;
|
|
42
|
+
this.customStyle = '';
|
|
43
|
+
this.data = null;
|
|
44
|
+
this.isMenu = false;
|
|
45
|
+
this.layoutFamily = KupCardFamily.STANDARD;
|
|
46
|
+
this.layoutNumber = 1;
|
|
47
|
+
this.menuVisible = false;
|
|
48
|
+
this.showModal = false;
|
|
49
|
+
this.sizeX = '100%';
|
|
50
|
+
this.sizeY = '100%';
|
|
88
51
|
}
|
|
89
52
|
onKupClick(id, value) {
|
|
90
53
|
this.kupClick.emit({
|
|
@@ -451,6 +414,13 @@ export class KupCard {
|
|
|
451
414
|
}, 0);
|
|
452
415
|
}
|
|
453
416
|
this.kupManager.debug.logRender(this, true);
|
|
417
|
+
if (this.showModal) {
|
|
418
|
+
this.rootElement.style.setProperty('--kup_card_left', window.innerWidth / 2 - this.rootElement.clientWidth / 2 + 'px');
|
|
419
|
+
this.rootElement.style.setProperty('--kup_card_top', window.innerHeight / 2 -
|
|
420
|
+
this.rootElement.clientHeight / 2 +
|
|
421
|
+
'px');
|
|
422
|
+
this.rootElement.style.setProperty('--kup_card_display', 'block');
|
|
423
|
+
}
|
|
454
424
|
}
|
|
455
425
|
render() {
|
|
456
426
|
if (!this.data && this.rootElement.children.length < 1) {
|
|
@@ -460,7 +430,17 @@ export class KupCard {
|
|
|
460
430
|
'--kup_card_height': this.sizeY ? this.sizeY : '100%',
|
|
461
431
|
'--kup_card_width': this.sizeX ? this.sizeX : '100%',
|
|
462
432
|
};
|
|
463
|
-
|
|
433
|
+
const backdropComp = this.showModal ? (h("div", { class: "backdrop", onClick: (e) => {
|
|
434
|
+
e.preventDefault();
|
|
435
|
+
e.stopPropagation();
|
|
436
|
+
}, onPointerDown: (e) => {
|
|
437
|
+
e.preventDefault();
|
|
438
|
+
e.stopPropagation();
|
|
439
|
+
}, onTouchStart: (e) => {
|
|
440
|
+
e.preventDefault();
|
|
441
|
+
e.stopPropagation();
|
|
442
|
+
} })) : null;
|
|
443
|
+
return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), backdropComp, h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null), ref: (el) => (this.componentWrapper = el) }, this.getLayout())));
|
|
464
444
|
}
|
|
465
445
|
disconnectedCallback() {
|
|
466
446
|
this.kupManager.interact.unregister([this.rootElement]);
|
|
@@ -619,6 +599,27 @@ export class KupCard {
|
|
|
619
599
|
"reflect": true,
|
|
620
600
|
"defaultValue": "false"
|
|
621
601
|
},
|
|
602
|
+
"showModal": {
|
|
603
|
+
"type": "boolean",
|
|
604
|
+
"mutable": false,
|
|
605
|
+
"complexType": {
|
|
606
|
+
"original": "boolean",
|
|
607
|
+
"resolved": "boolean",
|
|
608
|
+
"references": {}
|
|
609
|
+
},
|
|
610
|
+
"required": false,
|
|
611
|
+
"optional": false,
|
|
612
|
+
"docs": {
|
|
613
|
+
"tags": [{
|
|
614
|
+
"name": "default",
|
|
615
|
+
"text": "false"
|
|
616
|
+
}],
|
|
617
|
+
"text": "Sets the card as modal window"
|
|
618
|
+
},
|
|
619
|
+
"attribute": "show-modal",
|
|
620
|
+
"reflect": true,
|
|
621
|
+
"defaultValue": "false"
|
|
622
|
+
},
|
|
622
623
|
"sizeX": {
|
|
623
624
|
"type": "string",
|
|
624
625
|
"mutable": false,
|
|
@@ -10,35 +10,16 @@ import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-dec
|
|
|
10
10
|
export class KupCell {
|
|
11
11
|
constructor() {
|
|
12
12
|
/*-------------------------------------------------*/
|
|
13
|
-
/*
|
|
13
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
14
14
|
/*-------------------------------------------------*/
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @default ""
|
|
18
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
16
|
+
* Instance of the KupManager class.
|
|
19
17
|
*/
|
|
18
|
+
this.kupManager = kupManagerInstance();
|
|
20
19
|
this.customStyle = '';
|
|
21
|
-
/**
|
|
22
|
-
* The data of the cell.
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
20
|
this.data = null;
|
|
26
|
-
/**
|
|
27
|
-
* The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.
|
|
28
|
-
*/
|
|
29
21
|
this.density = FCellPadding.NONE;
|
|
30
|
-
/**
|
|
31
|
-
* When set to true, the component is draggable.
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
22
|
this.dragEnabled = false;
|
|
35
|
-
/*-------------------------------------------------*/
|
|
36
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
37
|
-
/*-------------------------------------------------*/
|
|
38
|
-
/**
|
|
39
|
-
* Instance of the KupManager class.
|
|
40
|
-
*/
|
|
41
|
-
this.kupManager = kupManagerInstance();
|
|
42
23
|
}
|
|
43
24
|
/*-------------------------------------------------*/
|
|
44
25
|
/* P u b l i c M e t h o d s */
|
|
@@ -10,67 +10,33 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
10
10
|
export class KupChart {
|
|
11
11
|
constructor() {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @default []
|
|
13
|
+
* Instance of the KupManager class.
|
|
15
14
|
*/
|
|
15
|
+
this.kupManager = kupManagerInstance();
|
|
16
|
+
this.elStyle = undefined;
|
|
17
|
+
this.themeColors = null;
|
|
18
|
+
this.themeText = null;
|
|
19
|
+
this.asp = undefined;
|
|
20
|
+
this.axis = undefined;
|
|
21
|
+
this.chartTitle = undefined;
|
|
16
22
|
this.colors = [];
|
|
17
|
-
/**
|
|
18
|
-
* Custom style of the component.
|
|
19
|
-
* @default ""
|
|
20
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
21
|
-
*/
|
|
22
23
|
this.customStyle = '';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
24
|
+
this.data = undefined;
|
|
25
|
+
this.hAxis = undefined;
|
|
26
|
+
this.hAxes = undefined;
|
|
27
27
|
this.legend = 'right';
|
|
28
|
-
/**
|
|
29
|
-
* Renders charts without the Google API and using jQuery Sparkline.
|
|
30
|
-
* @default undefined
|
|
31
|
-
*/
|
|
32
28
|
this.offlineMode = undefined;
|
|
33
|
-
|
|
34
|
-
* Displays the numerical values.
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
29
|
+
this.series = undefined;
|
|
37
30
|
this.showMarks = false;
|
|
38
|
-
/**
|
|
39
|
-
* The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
|
|
40
|
-
* @default "100%"
|
|
41
|
-
*/
|
|
42
31
|
this.sizeX = '100%';
|
|
43
|
-
/**
|
|
44
|
-
* The height of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).
|
|
45
|
-
* @default "100%"
|
|
46
|
-
*/
|
|
47
32
|
this.sizeY = '100%';
|
|
48
|
-
/**
|
|
49
|
-
* Used to sort series.
|
|
50
|
-
* @default null
|
|
51
|
-
*/
|
|
52
33
|
this.sorting = null;
|
|
53
|
-
/**
|
|
54
|
-
* Displays the data columns of an object on top of each other.
|
|
55
|
-
*/
|
|
56
34
|
this.stacked = false;
|
|
57
|
-
/**
|
|
58
|
-
* The type of the chart. Supported formats: Area, Bubble, Cal, Candlestick, Combo, Geo, Hbar, Line, Ohlc, Pie, Sankey, Scatter, Unk, Vbar.
|
|
59
|
-
* @default [ChartType.Hbar]
|
|
60
|
-
*/
|
|
61
35
|
this.types = [ChartType.Hbar];
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*/
|
|
36
|
+
this.vAxes = undefined;
|
|
37
|
+
this.vAxis = undefined;
|
|
38
|
+
this.trendlines = undefined;
|
|
66
39
|
this.version = '45.2';
|
|
67
|
-
/**
|
|
68
|
-
* Instance of the KupManager class.
|
|
69
|
-
*/
|
|
70
|
-
this.kupManager = kupManagerInstance();
|
|
71
|
-
this.elStyle = undefined;
|
|
72
|
-
this.themeColors = null;
|
|
73
|
-
this.themeText = null;
|
|
74
40
|
}
|
|
75
41
|
/*-------------------------------------------------*/
|
|
76
42
|
/* W a t c h e r s */
|
|
@@ -7,54 +7,19 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
7
7
|
export class KupCheckbox {
|
|
8
8
|
constructor() {
|
|
9
9
|
/*-------------------------------------------------*/
|
|
10
|
-
/*
|
|
10
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
11
11
|
/*-------------------------------------------------*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @default ""
|
|
13
|
+
* Instance of the KupManager class.
|
|
15
14
|
*/
|
|
15
|
+
this.kupManager = kupManagerInstance();
|
|
16
16
|
this.value = '';
|
|
17
|
-
/*-------------------------------------------------*/
|
|
18
|
-
/* P r o p s */
|
|
19
|
-
/*-------------------------------------------------*/
|
|
20
|
-
/**
|
|
21
|
-
* Defaults at false. When set to true, the component will be set to 'checked'.
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
17
|
this.checked = false;
|
|
25
|
-
/**
|
|
26
|
-
* Custom style of the component.
|
|
27
|
-
* @default ""
|
|
28
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
29
|
-
*/
|
|
30
18
|
this.customStyle = '';
|
|
31
|
-
/**
|
|
32
|
-
* When set to true, the component is disabled.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
19
|
this.disabled = false;
|
|
36
|
-
/**
|
|
37
|
-
* When set to true, the component will be set to 'indeterminate'.
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
20
|
this.indeterminate = false;
|
|
41
|
-
/**
|
|
42
|
-
* When specified, its content will be shown as a label.
|
|
43
|
-
* @default null
|
|
44
|
-
*/
|
|
45
21
|
this.label = null;
|
|
46
|
-
/**
|
|
47
|
-
* When set to true, the label will be on the left of the component.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
22
|
this.leadingLabel = false;
|
|
51
|
-
/*-------------------------------------------------*/
|
|
52
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
53
|
-
/*-------------------------------------------------*/
|
|
54
|
-
/**
|
|
55
|
-
* Instance of the KupManager class.
|
|
56
|
-
*/
|
|
57
|
-
this.kupManager = kupManagerInstance();
|
|
58
23
|
}
|
|
59
24
|
onKupBlur() {
|
|
60
25
|
this.kupBlur.emit({
|
|
@@ -8,25 +8,6 @@ import { getProps, setProps } from '../../utils/utils';
|
|
|
8
8
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
9
9
|
export class KupChip {
|
|
10
10
|
constructor() {
|
|
11
|
-
/*-------------------------------------------------*/
|
|
12
|
-
/* P r o p s */
|
|
13
|
-
/*-------------------------------------------------*/
|
|
14
|
-
/**
|
|
15
|
-
* Custom style of the component.
|
|
16
|
-
* @default ""
|
|
17
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
18
|
-
*/
|
|
19
|
-
this.customStyle = '';
|
|
20
|
-
/**
|
|
21
|
-
* List of elements.
|
|
22
|
-
* @default []
|
|
23
|
-
*/
|
|
24
|
-
this.data = [];
|
|
25
|
-
/**
|
|
26
|
-
* The type of chip. Available types: input, filter, choice or empty for default.
|
|
27
|
-
* @default FChipType.STANDARD
|
|
28
|
-
*/
|
|
29
|
-
this.type = FChipType.STANDARD;
|
|
30
11
|
/*-------------------------------------------------*/
|
|
31
12
|
/* I n t e r n a l V a r i a b l e s */
|
|
32
13
|
/*-------------------------------------------------*/
|
|
@@ -34,6 +15,9 @@ export class KupChip {
|
|
|
34
15
|
* Instance of the KupManager class.
|
|
35
16
|
*/
|
|
36
17
|
this.kupManager = kupManagerInstance();
|
|
18
|
+
this.customStyle = '';
|
|
19
|
+
this.data = [];
|
|
20
|
+
this.type = FChipType.STANDARD;
|
|
37
21
|
}
|
|
38
22
|
onKupBlur(chip) {
|
|
39
23
|
this.kupBlur.emit({
|
|
@@ -125,7 +109,7 @@ export class KupChip {
|
|
|
125
109
|
const isChoice = this.type.toLowerCase() === FChipType.CHOICE;
|
|
126
110
|
let firstCheckedFound = false;
|
|
127
111
|
if (isChoice) {
|
|
128
|
-
for (let j = 0; j < this.data.length; j++) {
|
|
112
|
+
for (let j = 0; this.data && j < this.data.length; j++) {
|
|
129
113
|
if (this.data[j].checked && firstCheckedFound) {
|
|
130
114
|
this.data[j].checked = false;
|
|
131
115
|
let message = 'Found occurence of data(' +
|
|
@@ -170,7 +154,7 @@ export class KupChip {
|
|
|
170
154
|
? true
|
|
171
155
|
: false,
|
|
172
156
|
};
|
|
173
|
-
for (let j = 0; j < this.data.length; j++) {
|
|
157
|
+
for (let j = 0; this.data && j < this.data.length; j++) {
|
|
174
158
|
props.onBlur.push((chip) => this.onKupBlur(chip));
|
|
175
159
|
props.onClick.push((chip) => this.onKupClick(chip));
|
|
176
160
|
props.onExpansionClick.push((chip, e) => {
|
|
@@ -11,50 +11,19 @@ import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position
|
|
|
11
11
|
export class KupColorPicker {
|
|
12
12
|
constructor() {
|
|
13
13
|
/*-------------------------------------------------*/
|
|
14
|
-
/*
|
|
14
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
15
15
|
/*-------------------------------------------------*/
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @default null
|
|
17
|
+
* Instance of the KupManager class.
|
|
19
18
|
*/
|
|
19
|
+
this.kupManager = kupManagerInstance();
|
|
20
|
+
this.clickCb = null;
|
|
20
21
|
this.value = null;
|
|
21
|
-
/*-------------------------------------------------*/
|
|
22
|
-
/* P r o p s */
|
|
23
|
-
/*-------------------------------------------------*/
|
|
24
|
-
/**
|
|
25
|
-
* Custom style of the component.
|
|
26
|
-
* @default ""
|
|
27
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
28
|
-
*/
|
|
29
22
|
this.customStyle = '';
|
|
30
|
-
/**
|
|
31
|
-
* Props of the text field.
|
|
32
|
-
* @default null
|
|
33
|
-
*/
|
|
34
23
|
this.data = null;
|
|
35
|
-
/**
|
|
36
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
24
|
this.disabled = false;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the initial value of the component. Can be css color name, hex code or rgb code (sample: "red" or rgb(255, 0, 0) or "#FF0000" ).
|
|
42
|
-
* @default ""
|
|
43
|
-
*/
|
|
44
25
|
this.initialValue = '';
|
|
45
|
-
/**
|
|
46
|
-
* When true, the component's text field will be replaced by a swatch.
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
26
|
this.swatchOnly = false;
|
|
50
|
-
/*-------------------------------------------------*/
|
|
51
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
52
|
-
/*-------------------------------------------------*/
|
|
53
|
-
/**
|
|
54
|
-
* Instance of the KupManager class.
|
|
55
|
-
*/
|
|
56
|
-
this.kupManager = kupManagerInstance();
|
|
57
|
-
this.clickCb = null;
|
|
58
27
|
}
|
|
59
28
|
/*-------------------------------------------------*/
|
|
60
29
|
/* P u b l i c M e t h o d s */
|
|
@@ -30,48 +30,6 @@ export class KupCombobox {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
_KupCombobox_instances.add(this);
|
|
32
32
|
/*-------------------------------------------------*/
|
|
33
|
-
/* S t a t e s */
|
|
34
|
-
/*-------------------------------------------------*/
|
|
35
|
-
this.displayedValue = undefined;
|
|
36
|
-
this.value = '';
|
|
37
|
-
/*-------------------------------------------------*/
|
|
38
|
-
/* P r o p s */
|
|
39
|
-
/*-------------------------------------------------*/
|
|
40
|
-
/**
|
|
41
|
-
* Custom style of the component.
|
|
42
|
-
* @default ""
|
|
43
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
44
|
-
*/
|
|
45
|
-
this.customStyle = '';
|
|
46
|
-
/**
|
|
47
|
-
* Props of the sub-components (date input text field).
|
|
48
|
-
*/
|
|
49
|
-
this.data = undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
52
|
-
*/
|
|
53
|
-
this.disabled = false;
|
|
54
|
-
/**
|
|
55
|
-
* Sets how to show the selected item value. Suported values: "code", "description", "both".
|
|
56
|
-
*/
|
|
57
|
-
this.displayMode = ItemsDisplayMode.DESCRIPTION;
|
|
58
|
-
/**
|
|
59
|
-
* Sets the initial value of the component
|
|
60
|
-
*/
|
|
61
|
-
this.initialValue = '';
|
|
62
|
-
/**
|
|
63
|
-
* Lets the combobox behave as a select element.
|
|
64
|
-
*/
|
|
65
|
-
this.isSelect = false;
|
|
66
|
-
/**
|
|
67
|
-
* Sets how to return the selected item value. Suported values: "code", "description", "both".
|
|
68
|
-
*/
|
|
69
|
-
this.selectMode = ItemsDisplayMode.CODE;
|
|
70
|
-
/**
|
|
71
|
-
* When true shows the drop-down icon, for open list.
|
|
72
|
-
*/
|
|
73
|
-
this.showDropDownIcon = true;
|
|
74
|
-
/*-------------------------------------------------*/
|
|
75
33
|
/* I n t e r n a l V a r i a b l e s */
|
|
76
34
|
/*-------------------------------------------------*/
|
|
77
35
|
/**
|
|
@@ -83,6 +41,16 @@ export class KupCombobox {
|
|
|
83
41
|
_KupCombobox_textfieldWrapper.set(this, undefined);
|
|
84
42
|
_KupCombobox_textfieldEl.set(this, undefined);
|
|
85
43
|
_KupCombobox_clickCb.set(this, null);
|
|
44
|
+
this.displayedValue = undefined;
|
|
45
|
+
this.value = '';
|
|
46
|
+
this.customStyle = '';
|
|
47
|
+
this.data = undefined;
|
|
48
|
+
this.disabled = false;
|
|
49
|
+
this.displayMode = ItemsDisplayMode.DESCRIPTION;
|
|
50
|
+
this.initialValue = '';
|
|
51
|
+
this.isSelect = false;
|
|
52
|
+
this.selectMode = ItemsDisplayMode.CODE;
|
|
53
|
+
this.showDropDownIcon = true;
|
|
86
54
|
}
|
|
87
55
|
onKupBlur() {
|
|
88
56
|
this.kupBlur.emit({
|
|
@@ -3,25 +3,13 @@ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
|
3
3
|
export class KupDash {
|
|
4
4
|
constructor() {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Instance of the KupManager class.
|
|
7
7
|
*/
|
|
8
|
+
this.kupManager = kupManagerInstance();
|
|
8
9
|
this.active = false;
|
|
9
|
-
/**
|
|
10
|
-
* Sets the font size of the component.
|
|
11
|
-
*/
|
|
12
10
|
this.fontsize = '';
|
|
13
|
-
/**
|
|
14
|
-
* Sets the layout of the component.
|
|
15
|
-
*/
|
|
16
11
|
this.layout = '1';
|
|
17
|
-
/**
|
|
18
|
-
* No idea what this is about.
|
|
19
|
-
*/
|
|
20
12
|
this.index = 0;
|
|
21
|
-
/**
|
|
22
|
-
* Instance of the KupManager class.
|
|
23
|
-
*/
|
|
24
|
-
this.kupManager = kupManagerInstance();
|
|
25
13
|
}
|
|
26
14
|
onDshClickHandler() {
|
|
27
15
|
this.dashClick.emit({
|
|
@@ -4,6 +4,13 @@ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
|
4
4
|
import { getDecimalSeparator } from '../../utils/utils';
|
|
5
5
|
export class KupDashList {
|
|
6
6
|
constructor() {
|
|
7
|
+
/*-------------------------------------------------*/
|
|
8
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
9
|
+
/*-------------------------------------------------*/
|
|
10
|
+
/**
|
|
11
|
+
* Instance of the KupManager class.
|
|
12
|
+
*/
|
|
13
|
+
this.kupManager = kupManagerInstance();
|
|
7
14
|
this.layout = '1';
|
|
8
15
|
this.fontsize = '';
|
|
9
16
|
this.active = false;
|
|
@@ -13,13 +20,7 @@ export class KupDashList {
|
|
|
13
20
|
this.iconColor = [];
|
|
14
21
|
this.valueColor = [];
|
|
15
22
|
this.textColor = [];
|
|
16
|
-
|
|
17
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
18
|
-
/*-------------------------------------------------*/
|
|
19
|
-
/**
|
|
20
|
-
* Instance of the KupManager class.
|
|
21
|
-
*/
|
|
22
|
-
this.kupManager = kupManagerInstance();
|
|
23
|
+
this.data = undefined;
|
|
23
24
|
}
|
|
24
25
|
render() {
|
|
25
26
|
let rows = [];
|
|
@@ -12,32 +12,6 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
12
12
|
import { KupDashboardProps, } from './kup-dashboard-declarations';
|
|
13
13
|
export class KupDashboard {
|
|
14
14
|
constructor() {
|
|
15
|
-
/*-------------------------------------------------*/
|
|
16
|
-
/* S t a t e s */
|
|
17
|
-
/*-------------------------------------------------*/
|
|
18
|
-
/**
|
|
19
|
-
* Force render component by internal event.
|
|
20
|
-
*/
|
|
21
|
-
this.resetInternalData = false;
|
|
22
|
-
/*-------------------------------------------------*/
|
|
23
|
-
/* P r o p s */
|
|
24
|
-
/*-------------------------------------------------*/
|
|
25
|
-
/**
|
|
26
|
-
* Custom style of the component.
|
|
27
|
-
* @default ""
|
|
28
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
29
|
-
*/
|
|
30
|
-
this.customStyle = '';
|
|
31
|
-
/**
|
|
32
|
-
* The data of the component.
|
|
33
|
-
* @default null
|
|
34
|
-
*/
|
|
35
|
-
this.data = null;
|
|
36
|
-
/**
|
|
37
|
-
* Enable drag & drop of the section.
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
this.enableDesign = false;
|
|
41
15
|
/*-------------------------------------------------*/
|
|
42
16
|
/* I n t e r n a l V a r i a b l e s */
|
|
43
17
|
/*-------------------------------------------------*/
|
|
@@ -53,6 +27,10 @@ export class KupDashboard {
|
|
|
53
27
|
* Internal data backup of the component for refresh when changed content by drag&drop.
|
|
54
28
|
*/
|
|
55
29
|
this.internalDataBackup = null;
|
|
30
|
+
this.resetInternalData = false;
|
|
31
|
+
this.customStyle = '';
|
|
32
|
+
this.data = null;
|
|
33
|
+
this.enableDesign = false;
|
|
56
34
|
}
|
|
57
35
|
onKupSave() {
|
|
58
36
|
this.kupSave.emit({
|
|
@@ -26,6 +26,7 @@ export var KupDataTableProps;
|
|
|
26
26
|
KupDataTableProps["groupLabelDisplay"] = "How the label of a group must be displayed. For available values";
|
|
27
27
|
KupDataTableProps["groups"] = "The list of groups.";
|
|
28
28
|
KupDataTableProps["headerIsPersistent"] = "When set to true the header will stick on top of the table when scrolling.";
|
|
29
|
+
KupDataTableProps["insertMode"] = "Enables insert mode.";
|
|
29
30
|
KupDataTableProps["isFocusable"] = "When set to true, clicked-on rows will have a visual feedback.";
|
|
30
31
|
KupDataTableProps["lazyLoadRows"] = "When set to true, extra rows will be automatically loaded once the last row enters the viewport. When groups are present, the number of rows is referred to groups and not to their content. Paginator is disabled.";
|
|
31
32
|
KupDataTableProps["lineBreakCharacter"] = "Defines the placeholder character which will be replaced by a line break inside table header cells, normal or sticky.";
|
|
@@ -41,6 +42,7 @@ export var KupDataTableProps;
|
|
|
41
42
|
KupDataTableProps["rowsPerPage"] = "Sets the number of rows per page to display.";
|
|
42
43
|
KupDataTableProps["scrollOnHover"] = "Activates the scroll on hover function.";
|
|
43
44
|
KupDataTableProps["showCustomization"] = "If set to true, displays the button to open the customization panel.";
|
|
45
|
+
KupDataTableProps["showDeleteButton"] = "Enables the delete row button.";
|
|
44
46
|
KupDataTableProps["showFilters"] = "When set to true enables the column filters.";
|
|
45
47
|
KupDataTableProps["showFooter"] = "When set to true shows the footer.";
|
|
46
48
|
KupDataTableProps["showGrid"] = "Can be used to customize the grid view of the table.";
|
|
@@ -5,8 +5,8 @@ export class KupDataTableState {
|
|
|
5
5
|
this.expandGroups = false;
|
|
6
6
|
this.groupLabelDisplay = GroupLabelDisplayMode.BOTH;
|
|
7
7
|
this.density = 'small';
|
|
8
|
-
this.enableExtraColumns = true;
|
|
9
8
|
this.enableSortableColumns = false;
|
|
9
|
+
this.enableExtraColumns = true;
|
|
10
10
|
this.forceOneLine = false;
|
|
11
11
|
this.globalFilter = false;
|
|
12
12
|
this.globalFilterValue = '';
|
|
@@ -415,6 +415,15 @@ th.obj:hover span:not(.overlay-action) {
|
|
|
415
415
|
display: inline-block;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
+
.actions-wrapper {
|
|
419
|
+
display: flex;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.insert-button,
|
|
423
|
+
.delete-button {
|
|
424
|
+
padding: 1em 0.5em;
|
|
425
|
+
}
|
|
426
|
+
|
|
418
427
|
.kup-icon.kup-ascending-icon {
|
|
419
428
|
-webkit-mask: var(--kup-ascending-icon);
|
|
420
429
|
mask: var(--kup-ascending-icon);
|