@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
|
@@ -6,40 +6,17 @@ import { KupRatingProps, } from './kup-rating-declarations';
|
|
|
6
6
|
export class KupRating {
|
|
7
7
|
constructor() {
|
|
8
8
|
/*-------------------------------------------------*/
|
|
9
|
-
/*
|
|
10
|
-
/*-------------------------------------------------*/
|
|
11
|
-
this.stars = [];
|
|
12
|
-
/*-------------------------------------------------*/
|
|
13
|
-
/* P r o p s */
|
|
9
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
14
10
|
/*-------------------------------------------------*/
|
|
15
11
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @default ""
|
|
18
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
12
|
+
* Instance of the KupManager class.
|
|
19
13
|
*/
|
|
14
|
+
this.kupManager = kupManagerInstance();
|
|
15
|
+
this.stars = [];
|
|
20
16
|
this.customStyle = '';
|
|
21
|
-
/**
|
|
22
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
17
|
this.disabled = false;
|
|
26
|
-
/**
|
|
27
|
-
* Max number of stars (default 5).
|
|
28
|
-
* @default 5
|
|
29
|
-
*/
|
|
30
18
|
this.maxValue = 5;
|
|
31
|
-
/**
|
|
32
|
-
* Rated stars.
|
|
33
|
-
* @default 0
|
|
34
|
-
*/
|
|
35
19
|
this.value = 0;
|
|
36
|
-
/*-------------------------------------------------*/
|
|
37
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
38
|
-
/*-------------------------------------------------*/
|
|
39
|
-
/**
|
|
40
|
-
* Instance of the KupManager class.
|
|
41
|
-
*/
|
|
42
|
-
this.kupManager = kupManagerInstance();
|
|
43
20
|
}
|
|
44
21
|
onStarClick(newValue) {
|
|
45
22
|
if (!this.disabled) {
|
|
@@ -7,49 +7,18 @@ import { FButton } from '../../f-components/f-button/f-button';
|
|
|
7
7
|
export class KupSnackbar {
|
|
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 false
|
|
13
|
+
* Instance of the KupManager class.
|
|
15
14
|
*/
|
|
15
|
+
this.kupManager = kupManagerInstance();
|
|
16
16
|
this.visible = false;
|
|
17
|
-
/*-------------------------------------------------*/
|
|
18
|
-
/* P r o p s */
|
|
19
|
-
/*-------------------------------------------------*/
|
|
20
|
-
/**
|
|
21
|
-
* Set of FButton props to set the action button.
|
|
22
|
-
* @default null
|
|
23
|
-
*/
|
|
24
17
|
this.actionButton = null;
|
|
25
|
-
/**
|
|
26
|
-
* When true, the hide button will be displayed.
|
|
27
|
-
* @default true
|
|
28
|
-
*/
|
|
29
18
|
this.closeButton = true;
|
|
30
|
-
/**
|
|
31
|
-
* Custom style of the component.
|
|
32
|
-
* @default ""
|
|
33
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
34
|
-
*/
|
|
35
19
|
this.customStyle = '';
|
|
36
|
-
/**
|
|
37
|
-
* Sets the textual content of the snackbar.
|
|
38
|
-
* @default ''
|
|
39
|
-
*/
|
|
40
20
|
this.text = '';
|
|
41
|
-
/**
|
|
42
|
-
* Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds.
|
|
43
|
-
* @default null
|
|
44
|
-
*/
|
|
45
21
|
this.timeout = null;
|
|
46
|
-
/*-------------------------------------------------*/
|
|
47
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
48
|
-
/*-------------------------------------------------*/
|
|
49
|
-
/**
|
|
50
|
-
* Instance of the KupManager class.
|
|
51
|
-
*/
|
|
52
|
-
this.kupManager = kupManagerInstance();
|
|
53
22
|
}
|
|
54
23
|
onKupActionClick() {
|
|
55
24
|
this.hide();
|
|
@@ -6,56 +6,20 @@ import { KupSpinnerProps } from './kup-spinner-declarations';
|
|
|
6
6
|
export class KupSpinner {
|
|
7
7
|
constructor() {
|
|
8
8
|
/*-------------------------------------------------*/
|
|
9
|
-
/*
|
|
9
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
10
10
|
/*-------------------------------------------------*/
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @default false
|
|
12
|
+
* Instance of the KupManager class.
|
|
14
13
|
*/
|
|
14
|
+
this.kupManager = kupManagerInstance();
|
|
15
15
|
this.active = false;
|
|
16
|
-
/**
|
|
17
|
-
* Decides whether the component is a bar or a spinner.
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
16
|
this.barVariant = false;
|
|
21
|
-
/**
|
|
22
|
-
* Custom style of the component.
|
|
23
|
-
* @default ""
|
|
24
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
25
|
-
*/
|
|
26
17
|
this.customStyle = '';
|
|
27
|
-
/**
|
|
28
|
-
* Width and height of the spinner. For the bar variant, only height.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
18
|
this.dimensions = null;
|
|
32
|
-
/**
|
|
33
|
-
* Places a blend modal over the wrapper to darken the view (or lighten, when the theme is dark).
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
19
|
this.fader = false;
|
|
37
|
-
/**
|
|
38
|
-
* The time required for the "fader" to trigger.
|
|
39
|
-
* @default 3500
|
|
40
|
-
*/
|
|
41
20
|
this.faderTimeout = 3500;
|
|
42
|
-
/**
|
|
43
|
-
* When set to true the component will fill the whole viewport.
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
21
|
this.fullScreen = false;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the layout of the spinner.
|
|
49
|
-
* @default 1
|
|
50
|
-
*/
|
|
51
22
|
this.layout = 1;
|
|
52
|
-
/*-------------------------------------------------*/
|
|
53
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
54
|
-
/*-------------------------------------------------*/
|
|
55
|
-
/**
|
|
56
|
-
* Instance of the KupManager class.
|
|
57
|
-
*/
|
|
58
|
-
this.kupManager = kupManagerInstance();
|
|
59
23
|
}
|
|
60
24
|
/*-------------------------------------------------*/
|
|
61
25
|
/* P u b l i c M e t h o d s */
|
|
@@ -7,49 +7,18 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
7
7
|
export class KupSwitch {
|
|
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
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
19
|
this.disabled = false;
|
|
36
|
-
/**
|
|
37
|
-
* Defaults at null. When specified, its content will be shown as a label.
|
|
38
|
-
* @default null
|
|
39
|
-
*/
|
|
40
20
|
this.label = null;
|
|
41
|
-
/**
|
|
42
|
-
* Defaults at false. When set to true, the label will be on the left of the component.
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
21
|
this.leadingLabel = false;
|
|
46
|
-
/*-------------------------------------------------*/
|
|
47
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
48
|
-
/*-------------------------------------------------*/
|
|
49
|
-
/**
|
|
50
|
-
* Instance of the KupManager class.
|
|
51
|
-
*/
|
|
52
|
-
this.kupManager = kupManagerInstance();
|
|
53
22
|
}
|
|
54
23
|
onKupBlur() {
|
|
55
24
|
this.kupBlur.emit({
|
|
@@ -9,29 +9,6 @@ import { getProps, setProps } from '../../utils/utils';
|
|
|
9
9
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
10
10
|
export class KupTabBar {
|
|
11
11
|
constructor() {
|
|
12
|
-
/*-------------------------------------------------*/
|
|
13
|
-
/* S t a t e s */
|
|
14
|
-
/*-------------------------------------------------*/
|
|
15
|
-
this.value = '';
|
|
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
|
-
/**
|
|
26
|
-
* List of elements.
|
|
27
|
-
* @default null
|
|
28
|
-
*/
|
|
29
|
-
this.data = null;
|
|
30
|
-
/**
|
|
31
|
-
* When enabled displays Material's ripple effect on item headers.
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
|
-
this.ripple = true;
|
|
35
12
|
/*-------------------------------------------------*/
|
|
36
13
|
/* I n t e r n a l V a r i a b l e s */
|
|
37
14
|
/*-------------------------------------------------*/
|
|
@@ -43,6 +20,10 @@ export class KupTabBar {
|
|
|
43
20
|
* Element scrollable on mouse hover.
|
|
44
21
|
*/
|
|
45
22
|
this.scrollArea = null;
|
|
23
|
+
this.value = '';
|
|
24
|
+
this.customStyle = '';
|
|
25
|
+
this.data = null;
|
|
26
|
+
this.ripple = true;
|
|
46
27
|
}
|
|
47
28
|
onKupBlur(i, node) {
|
|
48
29
|
this.kupBlur.emit({
|
|
@@ -105,7 +86,6 @@ export class KupTabBar {
|
|
|
105
86
|
async getSelectedNode() {
|
|
106
87
|
let res = null;
|
|
107
88
|
this.data.forEach((node) => {
|
|
108
|
-
console.log(this.value, node);
|
|
109
89
|
if (node.id === this.value) {
|
|
110
90
|
res = node;
|
|
111
91
|
}
|
|
@@ -8,149 +8,36 @@ import { getProps, setProps } from '../../utils/utils';
|
|
|
8
8
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
9
9
|
export class KupTextField {
|
|
10
10
|
constructor() {
|
|
11
|
-
/*-------------------------------------------------*/
|
|
12
|
-
/* S t a t e s */
|
|
13
|
-
/*-------------------------------------------------*/
|
|
14
11
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @default ""
|
|
12
|
+
* Instance of the KupManager class.
|
|
17
13
|
*/
|
|
14
|
+
this.kupManager = kupManagerInstance();
|
|
18
15
|
this.value = '';
|
|
19
|
-
/*-------------------------------------------------*/
|
|
20
|
-
/* P r o p s */
|
|
21
|
-
/*-------------------------------------------------*/
|
|
22
|
-
/**
|
|
23
|
-
* Custom style of the component.
|
|
24
|
-
* @default ""
|
|
25
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
26
|
-
*/
|
|
27
16
|
this.customStyle = '';
|
|
28
|
-
/**
|
|
29
|
-
* Number of decimals (should be used when inputType is number).
|
|
30
|
-
* @default null
|
|
31
|
-
*/
|
|
32
17
|
this.decimals = null;
|
|
33
|
-
/**
|
|
34
|
-
* When set to true, the component is disabled.
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
18
|
this.disabled = false;
|
|
38
|
-
/**
|
|
39
|
-
* When the text field is part of the autocomplete component and the list is opened, enter key selects the item and doesn't submit.
|
|
40
|
-
* @default true
|
|
41
|
-
*/
|
|
42
19
|
this.emitSubmitEventOnEnter = true;
|
|
43
|
-
/**
|
|
44
|
-
* When set to true, the component will be rendered at full width.
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
20
|
this.fullWidth = false;
|
|
48
|
-
/**
|
|
49
|
-
* When set, its content will be shown as a help text below the field.
|
|
50
|
-
* @default null
|
|
51
|
-
*/
|
|
52
21
|
this.helper = null;
|
|
53
|
-
/**
|
|
54
|
-
* When true, the helper will be displayed.
|
|
55
|
-
* @default true
|
|
56
|
-
*/
|
|
57
22
|
this.helperEnabled = true;
|
|
58
|
-
/**
|
|
59
|
-
* When set, the helper will be shown only when the field is focused.
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
23
|
this.helperWhenFocused = false;
|
|
63
|
-
/**
|
|
64
|
-
* When set, the text-field will show this icon.
|
|
65
|
-
* @default null
|
|
66
|
-
*/
|
|
67
24
|
this.icon = null;
|
|
68
|
-
/**
|
|
69
|
-
* Sets the initial value of the component
|
|
70
|
-
* @default ""
|
|
71
|
-
*/
|
|
72
25
|
this.initialValue = '';
|
|
73
|
-
/**
|
|
74
|
-
* The HTML inputmode of the input element.
|
|
75
|
-
* @default null
|
|
76
|
-
*/
|
|
77
26
|
this.inputMode = null;
|
|
78
|
-
/**
|
|
79
|
-
* The HTML type of the input element. It has no effect on text areas.
|
|
80
|
-
* @default "text"
|
|
81
|
-
*/
|
|
82
27
|
this.inputType = 'text';
|
|
83
|
-
/**
|
|
84
|
-
* Enables a clear trailing icon.
|
|
85
|
-
* @default false
|
|
86
|
-
*/
|
|
87
28
|
this.isClearable = false;
|
|
88
|
-
/**
|
|
89
|
-
* When set, its content will be shown as a label.
|
|
90
|
-
* @default null
|
|
91
|
-
*/
|
|
92
29
|
this.label = null;
|
|
93
|
-
/**
|
|
94
|
-
* When set to true, the label will be on the left of the component.
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
30
|
this.leadingLabel = false;
|
|
98
|
-
/**
|
|
99
|
-
* The HTML max attribute specifies the maximum value for the input element.
|
|
100
|
-
* Works with the following input types: number, range, date, datetime-local, month, time and week.
|
|
101
|
-
* @default null
|
|
102
|
-
*/
|
|
103
31
|
this.max = null;
|
|
104
|
-
/**
|
|
105
|
-
* When set, the helper will display a character counter.
|
|
106
|
-
* @default null
|
|
107
|
-
*/
|
|
108
32
|
this.maxLength = null;
|
|
109
|
-
/**
|
|
110
|
-
* The HTML min attribute specifies the minimum value for the input element.
|
|
111
|
-
* Works with the following input types: number, range, date, datetime-local, month, time and week.
|
|
112
|
-
* @default null
|
|
113
|
-
*/
|
|
114
33
|
this.min = null;
|
|
115
|
-
/**
|
|
116
|
-
* The HTML name attribute used for form autocomplete.
|
|
117
|
-
* @default null
|
|
118
|
-
*/
|
|
119
34
|
this.name = null;
|
|
120
|
-
/**
|
|
121
|
-
* When set to true, the component will be rendered as an outlined field.
|
|
122
|
-
* @default false
|
|
123
|
-
*/
|
|
124
35
|
this.outlined = false;
|
|
125
|
-
/**
|
|
126
|
-
* Sets the component to read only state, making it not editable, but interactable. Used in combobox component when it behaves as a select.
|
|
127
|
-
* @default false
|
|
128
|
-
*/
|
|
129
36
|
this.readOnly = false;
|
|
130
|
-
/**
|
|
131
|
-
* The HTML step of the input element. It has effect only with number input type.
|
|
132
|
-
* @default null
|
|
133
|
-
*/
|
|
134
37
|
this.step = null;
|
|
135
|
-
/**
|
|
136
|
-
* When set to true, the component will be rendered as a textarea.
|
|
137
|
-
* @default false
|
|
138
|
-
*/
|
|
139
38
|
this.textArea = false;
|
|
140
|
-
/**
|
|
141
|
-
* When set, the icon will be shown after the text.
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
39
|
this.trailingIcon = false;
|
|
145
|
-
/**
|
|
146
|
-
* When set to true, the label will be on the right of the component.
|
|
147
|
-
* @default false
|
|
148
|
-
*/
|
|
149
40
|
this.trailingLabel = false;
|
|
150
|
-
/**
|
|
151
|
-
* Instance of the KupManager class.
|
|
152
|
-
*/
|
|
153
|
-
this.kupManager = kupManagerInstance();
|
|
154
41
|
}
|
|
155
42
|
onKupBlur(event) {
|
|
156
43
|
const { target } = event;
|
|
@@ -11,49 +11,6 @@ import { KupCardFamily, } from '../kup-card/kup-card-declarations';
|
|
|
11
11
|
import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
12
12
|
export class KupTimePicker {
|
|
13
13
|
constructor() {
|
|
14
|
-
/*-------------------------------------------------*/
|
|
15
|
-
/* S t a t e s */
|
|
16
|
-
/*-------------------------------------------------*/
|
|
17
|
-
this.value = '';
|
|
18
|
-
/*-------------------------------------------------*/
|
|
19
|
-
/* P r o p s */
|
|
20
|
-
/*-------------------------------------------------*/
|
|
21
|
-
/**
|
|
22
|
-
* When set to true, the drop down menu will display a clock.
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
this.clockVariant = true;
|
|
26
|
-
/**
|
|
27
|
-
* Custom style of the component.
|
|
28
|
-
* @default ""
|
|
29
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
30
|
-
*/
|
|
31
|
-
this.customStyle = '';
|
|
32
|
-
/**
|
|
33
|
-
* Props of the sub-components (time input text field)
|
|
34
|
-
* @default {}
|
|
35
|
-
*/
|
|
36
|
-
this.data = {};
|
|
37
|
-
/**
|
|
38
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
this.disabled = false;
|
|
42
|
-
/**
|
|
43
|
-
* Sets the initial value of the component.
|
|
44
|
-
* @default ""
|
|
45
|
-
*/
|
|
46
|
-
this.initialValue = '';
|
|
47
|
-
/**
|
|
48
|
-
* Manage seconds.
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
this.manageSeconds = false;
|
|
52
|
-
/**
|
|
53
|
-
* Minutes step.
|
|
54
|
-
* @default 10
|
|
55
|
-
*/
|
|
56
|
-
this.timeMinutesStep = 10;
|
|
57
14
|
/*-------------------------------------------------*/
|
|
58
15
|
/* I n t e r n a l V a r i a b l e s */
|
|
59
16
|
/*-------------------------------------------------*/
|
|
@@ -68,6 +25,14 @@ export class KupTimePicker {
|
|
|
68
25
|
this.textfieldEl = undefined;
|
|
69
26
|
this.pickerKupEl = undefined;
|
|
70
27
|
this.clickCb = null;
|
|
28
|
+
this.value = '';
|
|
29
|
+
this.clockVariant = true;
|
|
30
|
+
this.customStyle = '';
|
|
31
|
+
this.data = {};
|
|
32
|
+
this.disabled = false;
|
|
33
|
+
this.initialValue = '';
|
|
34
|
+
this.manageSeconds = false;
|
|
35
|
+
this.timeMinutesStep = 10;
|
|
71
36
|
}
|
|
72
37
|
onKupTimePickerItemClick(e, value) {
|
|
73
38
|
if (e != null) {
|