@sme.up/ketchup 6.7.0 → 6.8.0
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-229c63fd.js} +1 -1
- package/dist/cjs/{f-cell-b7a1524a.js → f-cell-dd006395.js} +5 -5
- package/dist/cjs/{f-chip-a5e100b1.js → f-chip-f2c369fd.js} +2 -2
- package/dist/cjs/{f-image-d80a2749.js → f-image-847a6ddf.js} +1 -1
- package/dist/cjs/{f-paginator-utils-c70812fe.js → f-paginator-utils-cedc4b3e.js} +2 -2
- package/dist/cjs/{f-text-field-48b8bb16.js → f-text-field-fe85187d.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} +3811 -4323
- 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-c53468cd.js} +66 -1
- 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/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 +3 -19
- 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.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-language/kup-language-declarations.js +6 -0
- package/dist/esm/{f-button-e79f7594.js → f-button-d1aba968.js} +1 -1
- package/dist/esm/{f-cell-9400374e.js → f-cell-646406bb.js} +5 -5
- package/dist/esm/{f-chip-bf740287.js → f-chip-d94e9e81.js} +2 -2
- package/dist/esm/{f-image-ab3dc8cb.js → f-image-57c88302.js} +1 -1
- package/dist/esm/{f-paginator-utils-6909e43b.js → f-paginator-utils-2c865e9a.js} +2 -2
- package/dist/esm/{f-text-field-4841dfea.js → f-text-field-b0a1fea6.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} +3811 -4324
- 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-c0fbb180.js} +67 -2
- 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-30a63b85.entry.js → p-1914969e.entry.js} +1 -1
- package/dist/ketchup/{p-859163c2.entry.js → p-250118e3.entry.js} +1 -1
- package/dist/ketchup/{p-2e184b57.entry.js → p-30766296.entry.js} +1 -1
- package/dist/ketchup/{p-182b869e.entry.js → p-351cecba.entry.js} +1 -1
- package/dist/ketchup/{p-758d03f4.entry.js → p-35e16ea2.entry.js} +1 -1
- package/dist/ketchup/{p-e1d0ea71.js → p-395675b8.js} +1 -1
- package/dist/ketchup/p-3cf97e3a.js +1 -0
- package/dist/ketchup/{p-7e7b6127.entry.js → p-596bdc10.entry.js} +1 -1
- package/dist/ketchup/{p-4f0d3062.js → p-61ff1761.js} +1 -1
- package/dist/ketchup/p-72d4fa26.entry.js +1 -0
- package/dist/ketchup/{p-f9d5e553.entry.js → p-738685f9.entry.js} +1 -1
- package/dist/ketchup/{p-fb4d772a.entry.js → p-7c8c5444.entry.js} +1 -1
- package/dist/ketchup/p-86154e2b.js +1 -0
- package/dist/ketchup/{p-41620707.entry.js → p-9214ef33.entry.js} +1 -1
- package/dist/ketchup/{p-1f5c7f21.entry.js → p-980ed953.entry.js} +1 -1
- package/dist/ketchup/p-991bd70d.entry.js +1 -0
- package/dist/ketchup/{p-bffaef6e.entry.js → p-a1fe329f.entry.js} +1 -1
- package/dist/ketchup/p-a740352c.js +30 -0
- package/dist/ketchup/{p-25bf0cb6.js → p-a992cf87.js} +1 -1
- package/dist/ketchup/{p-313e376b.entry.js → p-b1da1ba7.entry.js} +2 -2
- package/dist/ketchup/{p-4a0ccf18.entry.js → p-cee3635a.entry.js} +1 -1
- package/dist/ketchup/p-d05ed931.entry.js +9 -0
- package/dist/ketchup/{p-8e1fa7a8.entry.js → p-d422151a.entry.js} +2 -2
- package/dist/ketchup/p-e6f19333.entry.js +1 -0
- package/dist/ketchup/p-eb10958a.entry.js +1 -0
- package/dist/ketchup/{p-5bea2971.js → p-ecac6269.js} +1 -1
- package/dist/ketchup/p-f43b445e.entry.js +1 -0
- package/dist/ketchup/{p-6bd57787.entry.js → p-fa37e92e.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.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-60fa0ccf.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
|
@@ -10,41 +10,6 @@ import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position
|
|
|
10
10
|
import { KupCardFamily, } from '../kup-card/kup-card-declarations';
|
|
11
11
|
export class KupDatePicker {
|
|
12
12
|
constructor() {
|
|
13
|
-
/*-------------------------------------------------*/
|
|
14
|
-
/* S t a t e s */
|
|
15
|
-
/*-------------------------------------------------*/
|
|
16
|
-
this.stateSwitcher = false;
|
|
17
|
-
this.value = '';
|
|
18
|
-
/*-------------------------------------------------*/
|
|
19
|
-
/* P r o p s */
|
|
20
|
-
/*-------------------------------------------------*/
|
|
21
|
-
/**
|
|
22
|
-
* Custom style of the component.
|
|
23
|
-
* @default ""
|
|
24
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
25
|
-
*/
|
|
26
|
-
this.customStyle = '';
|
|
27
|
-
/**
|
|
28
|
-
* Props of the sub-components.
|
|
29
|
-
* @default null
|
|
30
|
-
*/
|
|
31
|
-
this.data = null;
|
|
32
|
-
/**
|
|
33
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
this.disabled = false;
|
|
37
|
-
/**
|
|
38
|
-
* First day number (0 - sunday, 1 - monday, ...)
|
|
39
|
-
* TODO: manage with kupDates.locale, remove prop
|
|
40
|
-
* @default 1
|
|
41
|
-
*/
|
|
42
|
-
this.firstDayIndex = 1;
|
|
43
|
-
/**
|
|
44
|
-
* Sets the initial value of the component
|
|
45
|
-
* @default ""
|
|
46
|
-
*/
|
|
47
|
-
this.initialValue = '';
|
|
48
13
|
/*-------------------------------------------------*/
|
|
49
14
|
/* I n t e r n a l V a r i a b l e s */
|
|
50
15
|
/*-------------------------------------------------*/
|
|
@@ -59,6 +24,13 @@ export class KupDatePicker {
|
|
|
59
24
|
date: new Date(),
|
|
60
25
|
};
|
|
61
26
|
this.clickCb = null;
|
|
27
|
+
this.stateSwitcher = false;
|
|
28
|
+
this.value = '';
|
|
29
|
+
this.customStyle = '';
|
|
30
|
+
this.data = null;
|
|
31
|
+
this.disabled = false;
|
|
32
|
+
this.firstDayIndex = 1;
|
|
33
|
+
this.initialValue = '';
|
|
62
34
|
}
|
|
63
35
|
onKupDatePickerItemClick(value) {
|
|
64
36
|
this.setPickerValueSelected(value);
|
|
@@ -5,23 +5,6 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
5
5
|
import { drawerClass, KupDrawerProps } from './kup-drawer-declarations';
|
|
6
6
|
export class KupDrawer {
|
|
7
7
|
constructor() {
|
|
8
|
-
/*-------------------------------------------------*/
|
|
9
|
-
/* S t a t e s */
|
|
10
|
-
/*-------------------------------------------------*/
|
|
11
|
-
/**
|
|
12
|
-
* True when the drawer is open.
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
this.opened = false;
|
|
16
|
-
/*-------------------------------------------------*/
|
|
17
|
-
/* P r o p s */
|
|
18
|
-
/*-------------------------------------------------*/
|
|
19
|
-
/**
|
|
20
|
-
* Custom style of the component.
|
|
21
|
-
* @default ""
|
|
22
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
23
|
-
*/
|
|
24
|
-
this.customStyle = '';
|
|
25
8
|
/*-------------------------------------------------*/
|
|
26
9
|
/* I n t e r n a l V a r i a b l e s */
|
|
27
10
|
/*-------------------------------------------------*/
|
|
@@ -29,6 +12,8 @@ export class KupDrawer {
|
|
|
29
12
|
* Instance of the KupManager class.
|
|
30
13
|
*/
|
|
31
14
|
this.kupManager = kupManagerInstance();
|
|
15
|
+
this.opened = false;
|
|
16
|
+
this.customStyle = '';
|
|
32
17
|
}
|
|
33
18
|
/*-------------------------------------------------*/
|
|
34
19
|
/* P u b l i c M e t h o d s */
|
|
@@ -10,69 +10,6 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
10
10
|
import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
11
11
|
export class KupDropdownButton {
|
|
12
12
|
constructor() {
|
|
13
|
-
/*-------------------------------------------------*/
|
|
14
|
-
/* S t a t e s */
|
|
15
|
-
/*-------------------------------------------------*/
|
|
16
|
-
this.id = '';
|
|
17
|
-
/*-------------------------------------------------*/
|
|
18
|
-
/* P r o p s */
|
|
19
|
-
/*-------------------------------------------------*/
|
|
20
|
-
/**
|
|
21
|
-
* Custom style of the component.
|
|
22
|
-
* @default ""
|
|
23
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
24
|
-
*/
|
|
25
|
-
this.customStyle = '';
|
|
26
|
-
/**
|
|
27
|
-
* Props of the sub-components.
|
|
28
|
-
* @default null
|
|
29
|
-
*/
|
|
30
|
-
this.data = null;
|
|
31
|
-
/**
|
|
32
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
this.disabled = false;
|
|
36
|
-
/**
|
|
37
|
-
* Sets how to show the selected item value. Suported values: "code", "description", "both".
|
|
38
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
39
|
-
*/
|
|
40
|
-
this.displayMode = ItemsDisplayMode.DESCRIPTION;
|
|
41
|
-
/**
|
|
42
|
-
* Default value is false. When set to true, the arrow dropdown button is the only button displayed.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
this.dropdownOnly = false;
|
|
46
|
-
/**
|
|
47
|
-
* Defaults at null. When set, the button will show this icon.
|
|
48
|
-
* @default icon
|
|
49
|
-
*/
|
|
50
|
-
this.icon = null;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the initial value of the component.
|
|
53
|
-
* @default ""
|
|
54
|
-
*/
|
|
55
|
-
this.initialValue = '';
|
|
56
|
-
/**
|
|
57
|
-
* Defaults at null. When set, the button will show this text.
|
|
58
|
-
* @default ""
|
|
59
|
-
*/
|
|
60
|
-
this.label = null;
|
|
61
|
-
/**
|
|
62
|
-
* Sets how to return the selected item value. Suported values: "code", "description", "both".
|
|
63
|
-
* @default ItemsDisplayMode.CODE
|
|
64
|
-
*/
|
|
65
|
-
this.selectMode = ItemsDisplayMode.CODE;
|
|
66
|
-
/**
|
|
67
|
-
* Defines the style of the button. Styles available: "flat", "outlined" and "raised" which is also the default.
|
|
68
|
-
* @default FButtonStyling.RAISED
|
|
69
|
-
*/
|
|
70
|
-
this.styling = FButtonStyling.RAISED;
|
|
71
|
-
/**
|
|
72
|
-
* Defaults at null. When set, the icon will be shown after the text.
|
|
73
|
-
* @default false
|
|
74
|
-
*/
|
|
75
|
-
this.trailingIcon = false;
|
|
76
13
|
/*-------------------------------------------------*/
|
|
77
14
|
/* I n t e r n a l V a r i a b l e s */
|
|
78
15
|
/*-------------------------------------------------*/
|
|
@@ -93,6 +30,18 @@ export class KupDropdownButton {
|
|
|
93
30
|
*/
|
|
94
31
|
this.listEl = null;
|
|
95
32
|
this.clickCb = null;
|
|
33
|
+
this.id = '';
|
|
34
|
+
this.customStyle = '';
|
|
35
|
+
this.data = null;
|
|
36
|
+
this.disabled = false;
|
|
37
|
+
this.displayMode = ItemsDisplayMode.DESCRIPTION;
|
|
38
|
+
this.dropdownOnly = false;
|
|
39
|
+
this.icon = null;
|
|
40
|
+
this.initialValue = '';
|
|
41
|
+
this.label = null;
|
|
42
|
+
this.selectMode = ItemsDisplayMode.CODE;
|
|
43
|
+
this.styling = FButtonStyling.RAISED;
|
|
44
|
+
this.trailingIcon = false;
|
|
96
45
|
}
|
|
97
46
|
/**
|
|
98
47
|
* Handles the navigation of the dropdown menu with the keyboard.
|
|
@@ -29,81 +29,6 @@ export class KupEchart {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
_KupEchart_instances.add(this);
|
|
31
31
|
/*-------------------------------------------------*/
|
|
32
|
-
/* P r o p s */
|
|
33
|
-
/*-------------------------------------------------*/
|
|
34
|
-
/**
|
|
35
|
-
* Sets the axis of the chart.
|
|
36
|
-
* @default ""
|
|
37
|
-
*/
|
|
38
|
-
this.axis = '';
|
|
39
|
-
/**
|
|
40
|
-
* Overrides theme's colors.
|
|
41
|
-
* @default []
|
|
42
|
-
*/
|
|
43
|
-
this.colors = [];
|
|
44
|
-
/**
|
|
45
|
-
* When true, performs checks in order to properly initialize props which could be missing (i.e.: axis).
|
|
46
|
-
* For performances purposes, this prop will run only once when the component is initially created.
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
|
-
this.consistencyCheck = false;
|
|
50
|
-
/**
|
|
51
|
-
* Title of the graph.
|
|
52
|
-
* @default null
|
|
53
|
-
*/
|
|
54
|
-
this.chartTitle = null;
|
|
55
|
-
/**
|
|
56
|
-
* Custom style of the component.
|
|
57
|
-
* @default ""
|
|
58
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
59
|
-
*/
|
|
60
|
-
this.customStyle = '';
|
|
61
|
-
/**
|
|
62
|
-
* The actual data of the chart.
|
|
63
|
-
* @default null
|
|
64
|
-
*/
|
|
65
|
-
this.data = null;
|
|
66
|
-
/**
|
|
67
|
-
* Sets the position of the legend. Supported values: bottom, left, right, top, hidden. Keep in mind that legend types are tied to chart types, some combinations might not work.
|
|
68
|
-
* @default KupEchartLegendPlacement.RIGHT
|
|
69
|
-
*/
|
|
70
|
-
this.legend = KupEchartLegendPlacement.RIGHT;
|
|
71
|
-
/**
|
|
72
|
-
* Choose which map you want to view, supported values: "europe", "africa", "asia", "oceania", "america", "italy" and "world". It's possible to supply a custom JSON too.
|
|
73
|
-
* @default null
|
|
74
|
-
*/
|
|
75
|
-
this.map = null;
|
|
76
|
-
/**
|
|
77
|
-
* The data series to be displayed. They must be of the same type.
|
|
78
|
-
* @default []
|
|
79
|
-
*/
|
|
80
|
-
this.series = [];
|
|
81
|
-
/**
|
|
82
|
-
* The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
|
|
83
|
-
* @default "100%"
|
|
84
|
-
*/
|
|
85
|
-
this.sizeX = '100%';
|
|
86
|
-
/**
|
|
87
|
-
* The height of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).
|
|
88
|
-
* @default "100%"
|
|
89
|
-
*/
|
|
90
|
-
this.sizeY = '100%';
|
|
91
|
-
/**
|
|
92
|
-
* The type of the chart. Supported formats: Bar, Gaussian, Line, Pie, Map and Scatter.
|
|
93
|
-
* @default [KupEchartTypes.LINE]
|
|
94
|
-
*/
|
|
95
|
-
this.types = [KupEchartTypes.LINE];
|
|
96
|
-
/**
|
|
97
|
-
* Customization options for the x Axis.
|
|
98
|
-
* @default null
|
|
99
|
-
*/
|
|
100
|
-
this.xAxis = null;
|
|
101
|
-
/**
|
|
102
|
-
* Customization options for the y Axis.
|
|
103
|
-
* @default null
|
|
104
|
-
*/
|
|
105
|
-
this.yAxis = null;
|
|
106
|
-
/*-------------------------------------------------*/
|
|
107
32
|
/* I n t e r n a l V a r i a b l e s */
|
|
108
33
|
/*-------------------------------------------------*/
|
|
109
34
|
_KupEchart_chartContainer.set(this, void 0);
|
|
@@ -120,6 +45,20 @@ export class KupEchart {
|
|
|
120
45
|
_KupEchart_maxColorHeatMap.set(this, null);
|
|
121
46
|
_KupEchart_themeFont.set(this, null);
|
|
122
47
|
_KupEchart_themeText.set(this, null);
|
|
48
|
+
this.axis = '';
|
|
49
|
+
this.colors = [];
|
|
50
|
+
this.consistencyCheck = false;
|
|
51
|
+
this.chartTitle = null;
|
|
52
|
+
this.customStyle = '';
|
|
53
|
+
this.data = null;
|
|
54
|
+
this.legend = KupEchartLegendPlacement.RIGHT;
|
|
55
|
+
this.map = null;
|
|
56
|
+
this.series = [];
|
|
57
|
+
this.sizeX = '100%';
|
|
58
|
+
this.sizeY = '100%';
|
|
59
|
+
this.types = [KupEchartTypes.LINE];
|
|
60
|
+
this.xAxis = null;
|
|
61
|
+
this.yAxis = null;
|
|
123
62
|
}
|
|
124
63
|
/*-------------------------------------------------*/
|
|
125
64
|
/* P u b l i c M e t h o d s */
|
|
@@ -29,50 +29,6 @@ export class KupFamilyTree {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
_KupFamilyTree_instances.add(this);
|
|
31
31
|
/*-------------------------------------------------*/
|
|
32
|
-
/* P r o p s */
|
|
33
|
-
/*-------------------------------------------------*/
|
|
34
|
-
/**
|
|
35
|
-
* The component will autofit everytime a node is expanded.
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
this.autofitOnExpand = true;
|
|
39
|
-
/**
|
|
40
|
-
* The component's initial render will fit the container by invoking the runAutofit method.
|
|
41
|
-
* @default true
|
|
42
|
-
*/
|
|
43
|
-
this.autofitOnLoad = true;
|
|
44
|
-
/**
|
|
45
|
-
* Used to render the family tree boxes as kup-cards (through kup-box).
|
|
46
|
-
* @default null
|
|
47
|
-
*/
|
|
48
|
-
this.cardData = null;
|
|
49
|
-
/**
|
|
50
|
-
* Nodes can be expanded/collapsed.
|
|
51
|
-
* @default true
|
|
52
|
-
*/
|
|
53
|
-
this.collapsible = true;
|
|
54
|
-
/**
|
|
55
|
-
* Custom style of the component.
|
|
56
|
-
* @default ""
|
|
57
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
58
|
-
*/
|
|
59
|
-
this.customStyle = '';
|
|
60
|
-
/**
|
|
61
|
-
* Actual data of the component.
|
|
62
|
-
* @default null
|
|
63
|
-
*/
|
|
64
|
-
this.data = null;
|
|
65
|
-
/**
|
|
66
|
-
* Layout of the boxes.
|
|
67
|
-
* @default null
|
|
68
|
-
*/
|
|
69
|
-
this.layout = null;
|
|
70
|
-
/**
|
|
71
|
-
* Child nodes that have no children are arranged vertically.
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
this.stackedLeaves = false;
|
|
75
|
-
/*-------------------------------------------------*/
|
|
76
32
|
/* I n t e r n a l V a r i a b l e s */
|
|
77
33
|
/*-------------------------------------------------*/
|
|
78
34
|
_KupFamilyTree_clickTimeout.set(this, []);
|
|
@@ -91,6 +47,14 @@ export class KupFamilyTree {
|
|
|
91
47
|
});
|
|
92
48
|
_KupFamilyTree_shouldAutofit.set(this, false);
|
|
93
49
|
_KupFamilyTree_wrapperEl.set(this, null);
|
|
50
|
+
this.autofitOnExpand = true;
|
|
51
|
+
this.autofitOnLoad = true;
|
|
52
|
+
this.cardData = null;
|
|
53
|
+
this.collapsible = true;
|
|
54
|
+
this.customStyle = '';
|
|
55
|
+
this.data = null;
|
|
56
|
+
this.layout = null;
|
|
57
|
+
this.stackedLeaves = false;
|
|
94
58
|
}
|
|
95
59
|
/*-------------------------------------------------*/
|
|
96
60
|
/* P u b l i c M e t h o d s */
|
|
@@ -12,34 +12,14 @@ const dom = document.documentElement;
|
|
|
12
12
|
export class KupForm {
|
|
13
13
|
constructor() {
|
|
14
14
|
/*-------------------------------------------------*/
|
|
15
|
-
/*
|
|
15
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
16
16
|
/*-------------------------------------------------*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* @default ""
|
|
20
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
21
|
-
*/
|
|
17
|
+
this.kupManager = kupManagerInstance();
|
|
18
|
+
this.visibleColumns = [];
|
|
22
19
|
this.customStyle = '';
|
|
23
|
-
/**
|
|
24
|
-
* Actual data of the form.
|
|
25
|
-
* @default null
|
|
26
|
-
*/
|
|
27
20
|
this.data = null;
|
|
28
|
-
/**
|
|
29
|
-
* Creates a hidden submit button in order to submit the form with enter.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
21
|
this.hiddenSubmitButton = false;
|
|
33
|
-
/**
|
|
34
|
-
* How the form will arrange its content.
|
|
35
|
-
* @default null
|
|
36
|
-
*/
|
|
37
22
|
this.layout = null;
|
|
38
|
-
/*-------------------------------------------------*/
|
|
39
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
40
|
-
/*-------------------------------------------------*/
|
|
41
|
-
this.kupManager = kupManagerInstance();
|
|
42
|
-
this.visibleColumns = [];
|
|
43
23
|
}
|
|
44
24
|
/*-------------------------------------------------*/
|
|
45
25
|
/* W a t c h e r s */
|
|
@@ -173,7 +153,7 @@ export class KupForm {
|
|
|
173
153
|
form: true,
|
|
174
154
|
'form--column': !horizontal,
|
|
175
155
|
};
|
|
176
|
-
return (h("form", { class: classObj, name: this.rootElement.id }, formContent, this.hiddenSubmitButton ? (h(FButton, { buttonType: "submit", label:
|
|
156
|
+
return (h("form", { class: classObj, name: this.rootElement.id }, formContent, this.hiddenSubmitButton ? (h(FButton, { buttonType: "submit", label: this.kupManager.language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit" })) : null));
|
|
177
157
|
}
|
|
178
158
|
renderSection(section, parent, row, visibleColumns) {
|
|
179
159
|
var _a;
|
|
@@ -9,107 +9,46 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
9
9
|
export class KupGauge {
|
|
10
10
|
constructor() {
|
|
11
11
|
/*-------------------------------------------------*/
|
|
12
|
-
/*
|
|
12
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
13
13
|
/*-------------------------------------------------*/
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @namespace kup-gauge.arcThickness
|
|
17
|
-
* @see kup-gauge.size
|
|
15
|
+
* Instance of the KupManager class.
|
|
18
16
|
*/
|
|
19
|
-
this.
|
|
17
|
+
this.kupManager = kupManagerInstance();
|
|
18
|
+
// Arcs generator
|
|
19
|
+
this.arcGenerator = arc();
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Holds the maximum positive interval.
|
|
22
|
+
* Percentages are calculated as it follows:
|
|
23
|
+
* MIN = 0 = the value the prop minValue gets transformed to\
|
|
24
|
+
* MAX = ABSOLUTE(minValue - maxValue) = the maxValuePositive holds this value
|
|
25
|
+
* TVALUE = value - minValue = any value, which needs to be represented on the chart
|
|
26
|
+
* @namespace kup-gauge.maxValuePositive
|
|
22
27
|
*/
|
|
28
|
+
this.maxValuePositive = 0;
|
|
29
|
+
this.arcThickness = 30;
|
|
23
30
|
this.colors = [
|
|
24
31
|
`var(${KupThemeColorValues.SUCCESS})`,
|
|
25
32
|
`var(${KupThemeColorValues.WARNING})`,
|
|
26
33
|
`var(${KupThemeColorValues.DANGER})`,
|
|
27
34
|
];
|
|
28
|
-
/**
|
|
29
|
-
* Custom style of the component.
|
|
30
|
-
* @default ""
|
|
31
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
32
|
-
*/
|
|
33
35
|
this.customStyle = '';
|
|
34
|
-
|
|
35
|
-
* The distance the label and the value has from the gauge graph.
|
|
36
|
-
*/
|
|
36
|
+
this.firstThreshold = undefined;
|
|
37
37
|
this.labelDistance = 20;
|
|
38
|
-
/**
|
|
39
|
-
* The maximum value reachable in the current graph.
|
|
40
|
-
*/
|
|
41
38
|
this.maxValue = 100;
|
|
42
|
-
/**
|
|
43
|
-
* A string which will be appended to the displayed values of the component.
|
|
44
|
-
*/
|
|
45
39
|
this.measurementUnit = '';
|
|
46
|
-
/**
|
|
47
|
-
* The minimum value reachable in the current graph.
|
|
48
|
-
*/
|
|
49
40
|
this.minValue = -100;
|
|
50
|
-
/**
|
|
51
|
-
* When true, shows a rounded needle.
|
|
52
|
-
*/
|
|
53
41
|
this.needleCircle = false;
|
|
54
|
-
/**
|
|
55
|
-
* When true, ignore thresholds in gauge and show colored value's arc.
|
|
56
|
-
*/
|
|
57
42
|
this.onlyValue = false;
|
|
58
|
-
/**
|
|
59
|
-
* When true, the colors inside the colors array are used in the reversed order.
|
|
60
|
-
*/
|
|
61
43
|
this.reverseColors = false;
|
|
62
|
-
|
|
63
|
-
* If set to false, threshold values of the gauge are not displayed.
|
|
64
|
-
*/
|
|
44
|
+
this.secondThreshold = undefined;
|
|
65
45
|
this.showLabels = true;
|
|
66
|
-
/**
|
|
67
|
-
* If set to false, the maximum and minimum values of the gauge are not displayed.
|
|
68
|
-
*/
|
|
69
46
|
this.showMaxmin = true;
|
|
70
|
-
/**
|
|
71
|
-
* If set to false, the current value of the gauge is not displayed.
|
|
72
|
-
*/
|
|
73
47
|
this.showValue = true;
|
|
74
|
-
/**
|
|
75
|
-
* Con be used change the viewbox of the SVG.
|
|
76
|
-
* By manipulating this value, some customizations of the aspect of the gauge is achievable.
|
|
77
|
-
* @namespace kup-gauge.size
|
|
78
|
-
* @see kup-gauge.arcThickness
|
|
79
|
-
*/
|
|
80
48
|
this.size = 300;
|
|
81
|
-
/**
|
|
82
|
-
* The current value of the gauge.
|
|
83
|
-
* The gauge's needle points to the percentage based on this prop.
|
|
84
|
-
*/
|
|
85
49
|
this.value = 0;
|
|
86
|
-
/**
|
|
87
|
-
* The current size of gauge's value.
|
|
88
|
-
* Correct values are: 0,1,2 or 3.
|
|
89
|
-
*/
|
|
90
50
|
this.valueSize = 0;
|
|
91
|
-
/**
|
|
92
|
-
* Set Width gauge.
|
|
93
|
-
*/
|
|
94
51
|
this.widthComponent = '100%';
|
|
95
|
-
/*-------------------------------------------------*/
|
|
96
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
97
|
-
/*-------------------------------------------------*/
|
|
98
|
-
/**
|
|
99
|
-
* Instance of the KupManager class.
|
|
100
|
-
*/
|
|
101
|
-
this.kupManager = kupManagerInstance();
|
|
102
|
-
// Arcs generator
|
|
103
|
-
this.arcGenerator = arc();
|
|
104
|
-
/**
|
|
105
|
-
* Holds the maximum positive interval.
|
|
106
|
-
* Percentages are calculated as it follows:
|
|
107
|
-
* MIN = 0 = the value the prop minValue gets transformed to\
|
|
108
|
-
* MAX = ABSOLUTE(minValue - maxValue) = the maxValuePositive holds this value
|
|
109
|
-
* TVALUE = value - minValue = any value, which needs to be represented on the chart
|
|
110
|
-
* @namespace kup-gauge.maxValuePositive
|
|
111
|
-
*/
|
|
112
|
-
this.maxValuePositive = 0;
|
|
113
52
|
}
|
|
114
53
|
/*-------------------------------------------------*/
|
|
115
54
|
/* P u b l i c M e t h o d s */
|
|
@@ -6,25 +6,6 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
6
6
|
import { KupGridProps } from './kup-grid-declarations';
|
|
7
7
|
export class KupGrid {
|
|
8
8
|
constructor() {
|
|
9
|
-
/*-------------------------------------------------*/
|
|
10
|
-
/* P r o p s */
|
|
11
|
-
/*-------------------------------------------------*/
|
|
12
|
-
/**
|
|
13
|
-
* The number of columns displayed by the grid, the default behavior is 12.
|
|
14
|
-
* @default 12
|
|
15
|
-
*/
|
|
16
|
-
this.columns = 12;
|
|
17
|
-
/**
|
|
18
|
-
* Custom style of the component.
|
|
19
|
-
* @default ""
|
|
20
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
21
|
-
*/
|
|
22
|
-
this.customStyle = '';
|
|
23
|
-
/**
|
|
24
|
-
* When set to true, forces the content on a single line.
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
this.singleLine = false;
|
|
28
9
|
/*-------------------------------------------------*/
|
|
29
10
|
/* I n t e r n a l V a r i a b l e s */
|
|
30
11
|
/*-------------------------------------------------*/
|
|
@@ -32,6 +13,9 @@ export class KupGrid {
|
|
|
32
13
|
* Instance of the KupManager class.
|
|
33
14
|
*/
|
|
34
15
|
this.kupManager = kupManagerInstance();
|
|
16
|
+
this.columns = 12;
|
|
17
|
+
this.customStyle = '';
|
|
18
|
+
this.singleLine = false;
|
|
35
19
|
}
|
|
36
20
|
/*-------------------------------------------------*/
|
|
37
21
|
/* P u b l i c M e t h o d s */
|
|
@@ -5,21 +5,6 @@ import { getProps, setProps } from '../../utils/utils';
|
|
|
5
5
|
import { KupIframeProps } from './kup-iframe-declarations';
|
|
6
6
|
export class KupIframe {
|
|
7
7
|
constructor() {
|
|
8
|
-
/*-------------------------------------------------*/
|
|
9
|
-
/* P r o p s */
|
|
10
|
-
/*-------------------------------------------------*/
|
|
11
|
-
/**
|
|
12
|
-
* Props of the button (when isButton is set to true).
|
|
13
|
-
*/
|
|
14
|
-
this.buttonData = {};
|
|
15
|
-
/**
|
|
16
|
-
* The component will be rendered as a button, which opens the link associated to the iframe in another tab when clicked.
|
|
17
|
-
*/
|
|
18
|
-
this.isButton = false;
|
|
19
|
-
/**
|
|
20
|
-
* The address the iframe should be referencing to.
|
|
21
|
-
*/
|
|
22
|
-
this.src = undefined;
|
|
23
8
|
/*-------------------------------------------------*/
|
|
24
9
|
/* I n t e r n a l V a r i a b l e s */
|
|
25
10
|
/*-------------------------------------------------*/
|
|
@@ -27,6 +12,9 @@ export class KupIframe {
|
|
|
27
12
|
* Instance of the KupManager class.
|
|
28
13
|
*/
|
|
29
14
|
this.kupManager = kupManagerInstance();
|
|
15
|
+
this.buttonData = {};
|
|
16
|
+
this.isButton = false;
|
|
17
|
+
this.src = undefined;
|
|
30
18
|
}
|
|
31
19
|
onKupIframeError() {
|
|
32
20
|
this.kupIframeError.emit({ comp: this, id: this.rootElement.id });
|
|
@@ -9,63 +9,23 @@ import { getProps, setProps } from '../../utils/utils';
|
|
|
9
9
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
10
10
|
export class KupImage {
|
|
11
11
|
constructor() {
|
|
12
|
-
/*-------------------------------------------------*/
|
|
13
|
-
/* P r o p s */
|
|
14
|
-
/*-------------------------------------------------*/
|
|
15
12
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @default null
|
|
13
|
+
* True when the resource is an URL.
|
|
18
14
|
*/
|
|
19
|
-
this.
|
|
15
|
+
this.isUrl = false;
|
|
20
16
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @default KupThemeColorValues.ICON
|
|
17
|
+
* Instance of the KupManager class.
|
|
23
18
|
*/
|
|
19
|
+
this.kupManager = kupManagerInstance();
|
|
20
|
+
this.badgeData = null;
|
|
24
21
|
this.color = `var(${KupThemeColorValues.ICON})`;
|
|
25
|
-
/**
|
|
26
|
-
* Custom style of the component.
|
|
27
|
-
* @default ""
|
|
28
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
29
|
-
*/
|
|
30
22
|
this.customStyle = '';
|
|
31
|
-
/**
|
|
32
|
-
* When present, the component will be drawn using CSS. Check the 'Drawing with CSS' section of the image showcase for more information.
|
|
33
|
-
* @default null
|
|
34
|
-
*/
|
|
35
23
|
this.data = null;
|
|
36
|
-
/**
|
|
37
|
-
* When set to true, a spinner will be displayed until the image finished loading. Not compatible with SVGs.
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
24
|
this.feedback = false;
|
|
41
|
-
/**
|
|
42
|
-
* The image component will create a canvas element on which it's possible to draw. It's a temporary feature that will be fully replaced by CSS drawing in the future.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
25
|
this.isCanvas = false;
|
|
46
|
-
/**
|
|
47
|
-
* The resource used to fetch the image.
|
|
48
|
-
* @default null
|
|
49
|
-
*/
|
|
50
26
|
this.resource = null;
|
|
51
|
-
/**
|
|
52
|
-
* The width of the icon, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).
|
|
53
|
-
* @default '100%'
|
|
54
|
-
*/
|
|
55
27
|
this.sizeX = '100%';
|
|
56
|
-
/**
|
|
57
|
-
* The height of the icon, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).
|
|
58
|
-
* @default '100%'
|
|
59
|
-
*/
|
|
60
28
|
this.sizeY = '100%';
|
|
61
|
-
/**
|
|
62
|
-
* True when the resource is an URL.
|
|
63
|
-
*/
|
|
64
|
-
this.isUrl = false;
|
|
65
|
-
/**
|
|
66
|
-
* Instance of the KupManager class.
|
|
67
|
-
*/
|
|
68
|
-
this.kupManager = kupManagerInstance();
|
|
69
29
|
}
|
|
70
30
|
onKupClick(e) {
|
|
71
31
|
this.kupClick.emit({
|