@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
|
@@ -35,32 +35,6 @@ export class KupImageList {
|
|
|
35
35
|
/* S t a t e s */
|
|
36
36
|
/*-------------------------------------------------*/
|
|
37
37
|
this.state = new KupImageListState();
|
|
38
|
-
this.currentNode = null;
|
|
39
|
-
this.navigationBarToggled = false;
|
|
40
|
-
/*-------------------------------------------------*/
|
|
41
|
-
/* P r o p s */
|
|
42
|
-
/*-------------------------------------------------*/
|
|
43
|
-
/**
|
|
44
|
-
* Custom style of the component.
|
|
45
|
-
* @default ""
|
|
46
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
47
|
-
*/
|
|
48
|
-
this.customStyle = '';
|
|
49
|
-
/**
|
|
50
|
-
* Actual data of the component.
|
|
51
|
-
* @default []
|
|
52
|
-
*/
|
|
53
|
-
this.data = [];
|
|
54
|
-
/**
|
|
55
|
-
* When enabled displays Material's ripple effect on clicked items.
|
|
56
|
-
* @default true
|
|
57
|
-
*/
|
|
58
|
-
this.ripple = true;
|
|
59
|
-
/**
|
|
60
|
-
* An array of integers containing the path to a selected child.\
|
|
61
|
-
*/
|
|
62
|
-
this.selectedNode = [];
|
|
63
|
-
this.stateId = '';
|
|
64
38
|
/*-------------------------------------------------*/
|
|
65
39
|
/* I n t e r n a l V a r i a b l e s */
|
|
66
40
|
/*-------------------------------------------------*/
|
|
@@ -90,6 +64,14 @@ export class KupImageList {
|
|
|
90
64
|
styling: FButtonStyling.FLAT,
|
|
91
65
|
wrapperClass: 'navigation-bar__top',
|
|
92
66
|
});
|
|
67
|
+
this.currentNode = null;
|
|
68
|
+
this.navigationBarToggled = false;
|
|
69
|
+
this.customStyle = '';
|
|
70
|
+
this.data = [];
|
|
71
|
+
this.ripple = true;
|
|
72
|
+
this.selectedNode = [];
|
|
73
|
+
this.stateId = '';
|
|
74
|
+
this.store = undefined;
|
|
93
75
|
}
|
|
94
76
|
initWithPersistedState() {
|
|
95
77
|
if (this.store && this.stateId) {
|
|
@@ -5,40 +5,6 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
5
5
|
import { KupLazyProps, KupLazyRender } from './kup-lazy-declarations';
|
|
6
6
|
export class KupLazy {
|
|
7
7
|
constructor() {
|
|
8
|
-
/*-------------------------------------------------*/
|
|
9
|
-
/* S t a t e s */
|
|
10
|
-
/*-------------------------------------------------*/
|
|
11
|
-
this.isInViewport = false;
|
|
12
|
-
/*-------------------------------------------------*/
|
|
13
|
-
/* P r o p s */
|
|
14
|
-
/*-------------------------------------------------*/
|
|
15
|
-
/**
|
|
16
|
-
* Sets the tag name of the component to be lazy loaded.
|
|
17
|
-
* @default null
|
|
18
|
-
*/
|
|
19
|
-
this.componentName = null;
|
|
20
|
-
/**
|
|
21
|
-
* Custom style of the component.
|
|
22
|
-
* @default ""
|
|
23
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
24
|
-
*/
|
|
25
|
-
this.customStyle = '';
|
|
26
|
-
/**
|
|
27
|
-
* Sets the data of the component to be lazy loaded.
|
|
28
|
-
* @default null
|
|
29
|
-
*/
|
|
30
|
-
this.data = null;
|
|
31
|
-
/**
|
|
32
|
-
* Decides when the sub-component should be rendered.
|
|
33
|
-
* By default when both the component props exist and the component is in the viewport.
|
|
34
|
-
* @default KupLazyRender.BOTH
|
|
35
|
-
*/
|
|
36
|
-
this.renderMode = KupLazyRender.BOTH;
|
|
37
|
-
/**
|
|
38
|
-
* Displays an animated SVG placeholder until the component is loaded.
|
|
39
|
-
* @default true
|
|
40
|
-
*/
|
|
41
|
-
this.showPlaceholder = true;
|
|
42
8
|
/*-------------------------------------------------*/
|
|
43
9
|
/* I n t e r n a l V a r i a b l e s */
|
|
44
10
|
/*-------------------------------------------------*/
|
|
@@ -52,6 +18,12 @@ export class KupLazy {
|
|
|
52
18
|
this.kupManager = kupManagerInstance();
|
|
53
19
|
this.lazyComponent = null;
|
|
54
20
|
this.lazyComponentLoaded = false;
|
|
21
|
+
this.isInViewport = false;
|
|
22
|
+
this.componentName = null;
|
|
23
|
+
this.customStyle = '';
|
|
24
|
+
this.data = null;
|
|
25
|
+
this.renderMode = KupLazyRender.BOTH;
|
|
26
|
+
this.showPlaceholder = true;
|
|
55
27
|
}
|
|
56
28
|
/*-------------------------------------------------*/
|
|
57
29
|
/* P u b l i c M e t h o d s */
|
|
@@ -187,8 +159,9 @@ export class KupLazy {
|
|
|
187
159
|
return (h(Host, { class: className }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, content)));
|
|
188
160
|
}
|
|
189
161
|
disconnectedCallback() {
|
|
162
|
+
var _a;
|
|
190
163
|
this.kupManager.theme.unregister(this);
|
|
191
|
-
this.intObserver.unobserve(this.rootElement);
|
|
164
|
+
(_a = this.intObserver) === null || _a === void 0 ? void 0 : _a.unobserve(this.rootElement);
|
|
192
165
|
}
|
|
193
166
|
static get is() { return "kup-lazy"; }
|
|
194
167
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,91 +28,28 @@ export class KupList {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
_KupList_instances.add(this);
|
|
30
30
|
/*-------------------------------------------------*/
|
|
31
|
-
/*
|
|
31
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
32
32
|
/*-------------------------------------------------*/
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @default null
|
|
34
|
+
* Instance of the KupManager class.
|
|
36
35
|
*/
|
|
36
|
+
_KupList_kupManager.set(this, kupManagerInstance());
|
|
37
|
+
_KupList_radios.set(this, []);
|
|
38
|
+
_KupList_listItems.set(this, []);
|
|
37
39
|
this.focused = null;
|
|
38
|
-
/**
|
|
39
|
-
* The selected list items.
|
|
40
|
-
* @default []
|
|
41
|
-
*/
|
|
42
40
|
this.selected = [];
|
|
43
|
-
/*-------------------------------------------------*/
|
|
44
|
-
/* P r o p s */
|
|
45
|
-
/*-------------------------------------------------*/
|
|
46
|
-
/**
|
|
47
|
-
* Custom style of the component.
|
|
48
|
-
* @default ""
|
|
49
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
50
|
-
*/
|
|
51
41
|
this.customStyle = '';
|
|
52
|
-
/**
|
|
53
|
-
* The data of the list.
|
|
54
|
-
* @default []
|
|
55
|
-
*/
|
|
56
42
|
this.data = [];
|
|
57
|
-
/**
|
|
58
|
-
* Selects how the items must display their label and how they can be filtered for.
|
|
59
|
-
* @default ItemsDisplayMode.DESCRIPTION
|
|
60
|
-
*/
|
|
61
43
|
this.displayMode = ItemsDisplayMode.DESCRIPTION;
|
|
62
|
-
/**
|
|
63
|
-
* Keeps string for filtering elements when filter mode is active
|
|
64
|
-
* @default ''
|
|
65
|
-
*/
|
|
66
44
|
this.filter = '';
|
|
67
|
-
/**
|
|
68
|
-
* Hides rows' text, ideally to display a list of icons only.
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
45
|
this.hideText = false;
|
|
72
|
-
/**
|
|
73
|
-
* Defines whether the list is a menu or not.
|
|
74
|
-
* @default false
|
|
75
|
-
*/
|
|
76
46
|
this.isMenu = false;
|
|
77
|
-
/**
|
|
78
|
-
* When true, enables items' navigation through arrow keys.
|
|
79
|
-
* @default true
|
|
80
|
-
*/
|
|
81
47
|
this.keyboardNavigation = true;
|
|
82
|
-
/**
|
|
83
|
-
* Sets the status of the menu, when false it's hidden otherwise it's visible.
|
|
84
|
-
* @default false
|
|
85
|
-
*/
|
|
86
48
|
this.menuVisible = false;
|
|
87
|
-
/**
|
|
88
|
-
* Defines the type of selection. Values accepted: listbox, radiogroup or group.
|
|
89
|
-
* @default KupListRole.LISTBOX
|
|
90
|
-
*/
|
|
91
49
|
this.roleType = KupListRole.LISTBOX;
|
|
92
|
-
/**
|
|
93
|
-
* Defines whether items are selectable or not.
|
|
94
|
-
* @default true
|
|
95
|
-
*/
|
|
96
50
|
this.selectable = true;
|
|
97
|
-
/**
|
|
98
|
-
* Displays the icons associated to each row when set to true.
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
51
|
this.showIcons = false;
|
|
102
|
-
/**
|
|
103
|
-
* The list elements descriptions will be arranged in two lines.
|
|
104
|
-
* @default false
|
|
105
|
-
*/
|
|
106
52
|
this.twoLine = false;
|
|
107
|
-
/*-------------------------------------------------*/
|
|
108
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
109
|
-
/*-------------------------------------------------*/
|
|
110
|
-
/**
|
|
111
|
-
* Instance of the KupManager class.
|
|
112
|
-
*/
|
|
113
|
-
_KupList_kupManager.set(this, kupManagerInstance());
|
|
114
|
-
_KupList_radios.set(this, []);
|
|
115
|
-
_KupList_listItems.set(this, []);
|
|
116
53
|
}
|
|
117
54
|
onKupBlur() {
|
|
118
55
|
this.kupBlur.emit({
|
|
@@ -11,28 +11,6 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
11
11
|
import { kupDraggableColumnAttr, kupDraggableRowAttr, kupDropEvent, KupDropEventTypes, } from '../../managers/kup-interact/kup-interact-declarations';
|
|
12
12
|
export class KupMagicBox {
|
|
13
13
|
constructor() {
|
|
14
|
-
/*-------------------------------------------------*/
|
|
15
|
-
/* S t a t e s */
|
|
16
|
-
/*-------------------------------------------------*/
|
|
17
|
-
/**
|
|
18
|
-
* Data will be displayed using this component.
|
|
19
|
-
* @default KupMagicBoxDisplay.DATATABLE
|
|
20
|
-
*/
|
|
21
|
-
this.display = KupMagicBoxDisplay.DATATABLE;
|
|
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
|
-
* Sets the data that will be used to display different components.
|
|
33
|
-
* @default null
|
|
34
|
-
*/
|
|
35
|
-
this.data = null;
|
|
36
14
|
/*-------------------------------------------------*/
|
|
37
15
|
/* I n t e r n a l V a r i a b l e s */
|
|
38
16
|
/*-------------------------------------------------*/
|
|
@@ -40,6 +18,9 @@ export class KupMagicBox {
|
|
|
40
18
|
this.kupManager = kupManagerInstance();
|
|
41
19
|
this.textArea = null;
|
|
42
20
|
this.wrapperRef = null;
|
|
21
|
+
this.display = KupMagicBoxDisplay.DATATABLE;
|
|
22
|
+
this.customStyle = '';
|
|
23
|
+
this.data = null;
|
|
43
24
|
}
|
|
44
25
|
/*-------------------------------------------------*/
|
|
45
26
|
/* P u b l i c M e t h o d s */
|
|
@@ -5,20 +5,6 @@ import { getProps, setProps } from '../../utils/utils';
|
|
|
5
5
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
6
6
|
export class KupNavBar {
|
|
7
7
|
constructor() {
|
|
8
|
-
/*-------------------------------------------------*/
|
|
9
|
-
/* P r o p s */
|
|
10
|
-
/*-------------------------------------------------*/
|
|
11
|
-
/**
|
|
12
|
-
* Custom style of the component.
|
|
13
|
-
* @default ""
|
|
14
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
15
|
-
*/
|
|
16
|
-
this.customStyle = '';
|
|
17
|
-
/**
|
|
18
|
-
* Defines the style of the nav bar.
|
|
19
|
-
* @default KupNavBarStyling.STANDARD
|
|
20
|
-
*/
|
|
21
|
-
this.styling = KupNavBarStyling.STANDARD;
|
|
22
8
|
/*-------------------------------------------------*/
|
|
23
9
|
/* I n t e r n a l V a r i a b l e s */
|
|
24
10
|
/*-------------------------------------------------*/
|
|
@@ -26,6 +12,8 @@ export class KupNavBar {
|
|
|
26
12
|
* Instance of the KupManager class.
|
|
27
13
|
*/
|
|
28
14
|
this.kupManager = kupManagerInstance();
|
|
15
|
+
this.customStyle = '';
|
|
16
|
+
this.styling = KupNavBarStyling.STANDARD;
|
|
29
17
|
}
|
|
30
18
|
/*-------------------------------------------------*/
|
|
31
19
|
/* P u b l i c M e t h o d s */
|
|
@@ -8,60 +8,6 @@ import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position
|
|
|
8
8
|
import { KupCardFamily, } from '../kup-card/kup-card-declarations';
|
|
9
9
|
export class KupNumericPicker {
|
|
10
10
|
constructor() {
|
|
11
|
-
/*-------------------------------------------------*/
|
|
12
|
-
/* S t a t e s */
|
|
13
|
-
/*-------------------------------------------------*/
|
|
14
|
-
this.stateSwitcher = false;
|
|
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
|
-
* Props of the sub-components.
|
|
27
|
-
* @default null
|
|
28
|
-
*/
|
|
29
|
-
this.data = null;
|
|
30
|
-
/**
|
|
31
|
-
* Defaults at false. When set to true, the component has decimals.
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
this.decimals = false;
|
|
35
|
-
/**
|
|
36
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
this.disabled = false;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the initial value of the component
|
|
42
|
-
* @default ""
|
|
43
|
-
*/
|
|
44
|
-
this.initialValue = '';
|
|
45
|
-
/**
|
|
46
|
-
* when set, the component allows you to enter decimals with a maximum of characters.
|
|
47
|
-
* @default null
|
|
48
|
-
*/
|
|
49
|
-
this.maxDecimals = null;
|
|
50
|
-
/**
|
|
51
|
-
* When set, the component allows you to enter integer numbers with a maximum of characters.
|
|
52
|
-
* @default null
|
|
53
|
-
*/
|
|
54
|
-
this.maxIntegers = null;
|
|
55
|
-
/**
|
|
56
|
-
* When set, the component allows you to enter numbers with a maximum of characters, including decimals.
|
|
57
|
-
* @default null
|
|
58
|
-
*/
|
|
59
|
-
this.maxLength = null;
|
|
60
|
-
/**
|
|
61
|
-
* Defaults at false. When set to true, the component has negative number.
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
this.negative = false;
|
|
65
11
|
/*-------------------------------------------------*/
|
|
66
12
|
/* I n t e r n a l V a r i a b l e s */
|
|
67
13
|
/*-------------------------------------------------*/
|
|
@@ -76,6 +22,17 @@ export class KupNumericPicker {
|
|
|
76
22
|
date: new Date(),
|
|
77
23
|
};
|
|
78
24
|
this.clickCb = null;
|
|
25
|
+
this.stateSwitcher = false;
|
|
26
|
+
this.value = '';
|
|
27
|
+
this.customStyle = '';
|
|
28
|
+
this.data = null;
|
|
29
|
+
this.decimals = false;
|
|
30
|
+
this.disabled = false;
|
|
31
|
+
this.initialValue = '';
|
|
32
|
+
this.maxDecimals = null;
|
|
33
|
+
this.maxIntegers = null;
|
|
34
|
+
this.maxLength = null;
|
|
35
|
+
this.negative = false;
|
|
79
36
|
}
|
|
80
37
|
onKupPickerItemClick(value) {
|
|
81
38
|
this.setPickerValueSelected(value);
|
|
@@ -22,34 +22,6 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
22
22
|
import { KupPhotoFrameProps } from './kup-photo-frame-declarations';
|
|
23
23
|
export class KupPhotoFrame {
|
|
24
24
|
constructor() {
|
|
25
|
-
/*-------------------------------------------------*/
|
|
26
|
-
/* S t a t e s */
|
|
27
|
-
/*-------------------------------------------------*/
|
|
28
|
-
this.isInViewport = false;
|
|
29
|
-
/*-------------------------------------------------*/
|
|
30
|
-
/* P r o p s */
|
|
31
|
-
/*-------------------------------------------------*/
|
|
32
|
-
/**
|
|
33
|
-
* Custom style of the component.
|
|
34
|
-
* @default ""
|
|
35
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
36
|
-
*/
|
|
37
|
-
this.customStyle = '';
|
|
38
|
-
/**
|
|
39
|
-
* Html attributes of the picture before the component enters the viewport.
|
|
40
|
-
* @default {}
|
|
41
|
-
*/
|
|
42
|
-
this.placeholderAttrs = {};
|
|
43
|
-
/**
|
|
44
|
-
* Html attributes of the picture after the component enters the viewport.
|
|
45
|
-
* @default {}
|
|
46
|
-
*/
|
|
47
|
-
this.resourceAttrs = {};
|
|
48
|
-
/**
|
|
49
|
-
* Percentage of the component dimensions entering the viewport (0.1 => 1).
|
|
50
|
-
* @default 0.25
|
|
51
|
-
*/
|
|
52
|
-
this.threshold = 0.25;
|
|
53
25
|
/*-------------------------------------------------*/
|
|
54
26
|
/* I n t e r n a l V a r i a b l e s */
|
|
55
27
|
/*-------------------------------------------------*/
|
|
@@ -59,6 +31,11 @@ export class KupPhotoFrame {
|
|
|
59
31
|
_KupPhotoFrame_resourceEl.set(this, null);
|
|
60
32
|
_KupPhotoFrame_renderResource.set(this, false);
|
|
61
33
|
_KupPhotoFrame_wrapperEl.set(this, null);
|
|
34
|
+
this.isInViewport = false;
|
|
35
|
+
this.customStyle = '';
|
|
36
|
+
this.placeholderAttrs = {};
|
|
37
|
+
this.resourceAttrs = {};
|
|
38
|
+
this.threshold = 0.25;
|
|
62
39
|
}
|
|
63
40
|
/*-------------------------------------------------*/
|
|
64
41
|
/* P u b l i c M e t h o d s */
|
|
@@ -148,8 +125,9 @@ export class KupPhotoFrame {
|
|
|
148
125
|
} }))) : null)));
|
|
149
126
|
}
|
|
150
127
|
disconnectedCallback() {
|
|
128
|
+
var _a;
|
|
151
129
|
__classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.unregister(this);
|
|
152
|
-
__classPrivateFieldGet(this, _KupPhotoFrame_intObserver, "f").unobserve(this.rootElement);
|
|
130
|
+
(_a = __classPrivateFieldGet(this, _KupPhotoFrame_intObserver, "f")) === null || _a === void 0 ? void 0 : _a.unobserve(this.rootElement);
|
|
153
131
|
}
|
|
154
132
|
static get is() { return "kup-photo-frame"; }
|
|
155
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,37 +3,6 @@ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
|
3
3
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
4
4
|
export class KupProbe {
|
|
5
5
|
constructor() {
|
|
6
|
-
/*-------------------------------------------------*/
|
|
7
|
-
/* S t a t e s */
|
|
8
|
-
/*-------------------------------------------------*/
|
|
9
|
-
/**
|
|
10
|
-
* Lifecycle time.
|
|
11
|
-
* @default null
|
|
12
|
-
*/
|
|
13
|
-
this.content = null;
|
|
14
|
-
/*-------------------------------------------------*/
|
|
15
|
-
/* P r o p s */
|
|
16
|
-
/*-------------------------------------------------*/
|
|
17
|
-
/**
|
|
18
|
-
* Custom style of the component.
|
|
19
|
-
* @default ""
|
|
20
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
21
|
-
*/
|
|
22
|
-
this.customStyle = '';
|
|
23
|
-
/**
|
|
24
|
-
* Specify features to test.
|
|
25
|
-
* @default ""
|
|
26
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
27
|
-
*/
|
|
28
|
-
this.features = {
|
|
29
|
-
debug: false,
|
|
30
|
-
language: false,
|
|
31
|
-
longCycleProp: false,
|
|
32
|
-
longCycleVar: false,
|
|
33
|
-
objects: false,
|
|
34
|
-
objectsFunction: false,
|
|
35
|
-
theme: false,
|
|
36
|
-
};
|
|
37
6
|
/**
|
|
38
7
|
* Uncomment the code below to test render times with many props (100).
|
|
39
8
|
*/
|
|
@@ -158,6 +127,17 @@ export class KupProbe {
|
|
|
158
127
|
* End performance.now()
|
|
159
128
|
*/
|
|
160
129
|
this.endTime = null;
|
|
130
|
+
this.content = null;
|
|
131
|
+
this.customStyle = '';
|
|
132
|
+
this.features = {
|
|
133
|
+
debug: false,
|
|
134
|
+
language: false,
|
|
135
|
+
longCycleProp: false,
|
|
136
|
+
longCycleVar: false,
|
|
137
|
+
objects: false,
|
|
138
|
+
objectsFunction: false,
|
|
139
|
+
theme: false,
|
|
140
|
+
};
|
|
161
141
|
}
|
|
162
142
|
/*-------------------------------------------------*/
|
|
163
143
|
/* P u b l i c M e t h o d s */
|
|
@@ -6,51 +6,19 @@ import { KupProgressBarProps } from './kup-progress-bar-declarations';
|
|
|
6
6
|
export class KupProgressBar {
|
|
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 true
|
|
12
|
+
* Instance of the KupManager class.
|
|
14
13
|
*/
|
|
14
|
+
this.kupManager = kupManagerInstance();
|
|
15
15
|
this.centeredLabel = true;
|
|
16
|
-
/**
|
|
17
|
-
* Custom style of the component.
|
|
18
|
-
* @default ""
|
|
19
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
20
|
-
*/
|
|
21
16
|
this.customStyle = '';
|
|
22
|
-
/**
|
|
23
|
-
* Flag to show or hide the progress bar's label.
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
17
|
this.hideLabel = false;
|
|
27
|
-
/**
|
|
28
|
-
* Specifies an icon to replace the label.
|
|
29
|
-
* @default null
|
|
30
|
-
*/
|
|
31
18
|
this.icon = null;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies a text for the bar's label.
|
|
34
|
-
* @default null
|
|
35
|
-
*/
|
|
36
19
|
this.label = null;
|
|
37
|
-
/**
|
|
38
|
-
* Radial version.
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
20
|
this.isRadial = false;
|
|
42
|
-
/**
|
|
43
|
-
* The current value the progress bar must display.
|
|
44
|
-
* @default 0
|
|
45
|
-
*/
|
|
46
21
|
this.value = 0;
|
|
47
|
-
/*-------------------------------------------------*/
|
|
48
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
49
|
-
/*-------------------------------------------------*/
|
|
50
|
-
/**
|
|
51
|
-
* Instance of the KupManager class.
|
|
52
|
-
*/
|
|
53
|
-
this.kupManager = kupManagerInstance();
|
|
54
22
|
}
|
|
55
23
|
/*-------------------------------------------------*/
|
|
56
24
|
/* P u b l i c M e t h o d s */
|
|
@@ -3,72 +3,18 @@ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
|
3
3
|
export class KupQlik {
|
|
4
4
|
constructor() {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* How to find app id --> https://support.qlik.com/articles/000026239
|
|
6
|
+
* Instance of the KupManager class.
|
|
8
7
|
*/
|
|
8
|
+
this.kupManager = kupManagerInstance();
|
|
9
|
+
this.config = undefined;
|
|
10
|
+
this.qlik = undefined;
|
|
9
11
|
this.appid = '';
|
|
10
|
-
/**
|
|
11
|
-
* Set Qlik App's istance would you like to use
|
|
12
|
-
* (!!!ALLERT!!! if you have already set appid app's istance will be NOT generated again)
|
|
13
|
-
*/
|
|
14
12
|
this.app = false;
|
|
15
|
-
/**
|
|
16
|
-
* Set the grid structure (JSON)
|
|
17
|
-
* selections --> Data selection array
|
|
18
|
-
* field --> Qlik field on which to make the selection
|
|
19
|
-
* values --> Array of int or string value which to select
|
|
20
|
-
* rows
|
|
21
|
-
* colums --> they define the structure of grid
|
|
22
|
-
* obj --> Qlik Object id would you like to render (How to find Qlik obj id --> https://help.qlik.com/en-US/sense-developer/June2020/Subsystems/Mashups/Content/Sense_Mashups/Howtos/mashups-obtain-app-object-id.htm)
|
|
23
|
-
* colDim --> define column's dimension, it could have values from 1 to 12 where 12 is 100%
|
|
24
|
-
* size --> define size height of obj's div container, it colud have this values XS|S|M|L|XL
|
|
25
|
-
* noSelections --> define if selections in object are disable (default: false)
|
|
26
|
-
* Example:
|
|
27
|
-
{
|
|
28
|
-
selections:[
|
|
29
|
-
{
|
|
30
|
-
field: 'Anno',
|
|
31
|
-
values:[2020]
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
rows:[
|
|
35
|
-
{
|
|
36
|
-
columns:[
|
|
37
|
-
{
|
|
38
|
-
obj:'KvqdmD', colDim:5, size:'L', noSelections:<true/flase>
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
obj:'JjSaVm', colDim:5, size:'S', noSelections:<true/flase>
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
*/
|
|
49
13
|
this.grid = [];
|
|
50
|
-
/**
|
|
51
|
-
* Activate logging
|
|
52
|
-
* Default false
|
|
53
|
-
*/
|
|
54
14
|
this.debug = false;
|
|
55
|
-
/* Style prop */
|
|
56
|
-
/**
|
|
57
|
-
* Define width of grid, with true width = 100% responsive, false 1200px
|
|
58
|
-
*/
|
|
59
15
|
this.fluid = false;
|
|
60
|
-
/**
|
|
61
|
-
* Set gird border
|
|
62
|
-
*/
|
|
63
16
|
this.bordered = false;
|
|
64
|
-
/**
|
|
65
|
-
* Set default obj's container pixel height
|
|
66
|
-
*/
|
|
67
17
|
this.defobjsize = '400px';
|
|
68
|
-
/**
|
|
69
|
-
* Instance of the KupManager class.
|
|
70
|
-
*/
|
|
71
|
-
this.kupManager = kupManagerInstance();
|
|
72
18
|
this.divlist = [];
|
|
73
19
|
}
|
|
74
20
|
/**
|
|
@@ -6,49 +6,18 @@ import { componentWrapperId } from '../../variables/GenericVariables';
|
|
|
6
6
|
export class KupRadio {
|
|
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 ""
|
|
12
|
+
* Instance of the KupManager class.
|
|
14
13
|
*/
|
|
14
|
+
this.kupManager = kupManagerInstance();
|
|
15
15
|
this.value = '';
|
|
16
|
-
/*-------------------------------------------------*/
|
|
17
|
-
/* P r o p s */
|
|
18
|
-
/*-------------------------------------------------*/
|
|
19
|
-
/**
|
|
20
|
-
* Number of columns. When null, radio fields will be displayed inline.
|
|
21
|
-
* @default null
|
|
22
|
-
*/
|
|
23
16
|
this.columns = null;
|
|
24
|
-
/**
|
|
25
|
-
* Custom style of the component.
|
|
26
|
-
* @default ""
|
|
27
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
28
|
-
*/
|
|
29
17
|
this.customStyle = '';
|
|
30
|
-
/**
|
|
31
|
-
* List of elements.
|
|
32
|
-
* @default null
|
|
33
|
-
*/
|
|
34
18
|
this.data = null;
|
|
35
|
-
/**
|
|
36
|
-
* Defaults at false. When set to true, the component is disabled.
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
19
|
this.disabled = false;
|
|
40
|
-
/**
|
|
41
|
-
* Defaults at false. When set to true, the label will be on the left of the component.
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
20
|
this.leadingLabel = false;
|
|
45
|
-
/*-------------------------------------------------*/
|
|
46
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
47
|
-
/*-------------------------------------------------*/
|
|
48
|
-
/**
|
|
49
|
-
* Instance of the KupManager class.
|
|
50
|
-
*/
|
|
51
|
-
this.kupManager = kupManagerInstance();
|
|
52
21
|
}
|
|
53
22
|
onKupBlur() {
|
|
54
23
|
this.kupBlur.emit({
|