@sme.up/ketchup 6.1.0-SNAPSHOT → 6.3.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-ac179257.js → f-button-94cb5f35.js} +4 -4
- package/dist/cjs/f-cell-76830a0d.js +416 -0
- package/dist/cjs/f-checkbox-cd977193.js +29 -0
- package/dist/cjs/{f-chip-b00897d7.js → f-chip-68d45fd3.js} +3 -3
- package/dist/cjs/{f-image-89f25556.js → f-image-0e71df7e.js} +2 -2
- package/dist/cjs/{f-paginator-utils-8fa501b3.js → f-paginator-utils-46689c0a.js} +80 -403
- package/dist/cjs/{f-text-field-e1e45ade.js → f-text-field-b4229cef.js} +11 -3
- package/dist/cjs/{index-eb556444.js → index-31125378.js} +15 -8
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -6
- package/dist/cjs/kup-autocomplete_25.cjs.entry.js +331 -299
- package/dist/cjs/kup-box.cjs.entry.js +1304 -0
- package/dist/cjs/kup-calendar.cjs.entry.js +9 -11
- package/dist/cjs/kup-cell.cjs.entry.js +10 -11
- package/dist/cjs/kup-dash-list.cjs.entry.js +5 -7
- package/dist/cjs/kup-dash_2.cjs.entry.js +5 -9
- package/dist/cjs/kup-dashboard.cjs.entry.js +438 -0
- package/dist/cjs/kup-drawer.cjs.entry.js +5 -6
- package/dist/cjs/{kup-box_2.cjs.entry.js → kup-echart.cjs.entry.js} +66 -1353
- package/dist/cjs/kup-family-tree.cjs.entry.js +486 -0
- package/dist/cjs/kup-form.cjs.entry.js +478 -0
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -5
- package/dist/cjs/kup-image-list.cjs.entry.js +73 -13
- package/dist/cjs/kup-lazy.cjs.entry.js +5 -6
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -6
- package/dist/cjs/{kup-manager-7a941909.js → kup-manager-7c514a30.js} +1787 -356
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -5
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +6 -7
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +6 -7
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/assets/dashboard.js +161 -0
- package/dist/collection/assets/data-table.js +59 -0
- package/dist/collection/assets/family-tree.js +2654 -0
- package/dist/collection/assets/form.js +433 -0
- package/dist/collection/assets/grid.js +17 -0
- package/dist/collection/assets/index.js +18 -6
- package/dist/collection/assets/kupinteract.js +68 -0
- package/dist/collection/collection-manifest.json +8 -7
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +135 -129
- package/dist/collection/components/kup-box/kup-box.js +13 -2
- package/dist/collection/components/kup-button/kup-button.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +16 -13
- package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
- package/dist/collection/components/{kup-form-editor/kup-form-editor.css → kup-dashboard/kup-dashboard.css} +14 -6
- package/dist/collection/components/{kup-form-editor/kup-form-editor.js → kup-dashboard/kup-dashboard.js} +211 -152
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +42 -30
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +7 -6
- package/dist/collection/components/kup-drawer/kup-drawer.css +5 -8
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +9 -9
- package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +14 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +171 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +854 -0
- package/dist/collection/components/kup-form/kup-form-declarations.js +25 -0
- package/dist/collection/components/kup-form/kup-form.css +99 -0
- package/dist/collection/components/kup-form/kup-form.js +647 -0
- package/dist/collection/components/kup-grid/kup-grid.js +1 -4
- package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +0 -6
- package/dist/collection/components/kup-image-list/kup-image-list.js +113 -1
- package/dist/collection/components/kup-lazy/kup-lazy.css +13 -6
- package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +13 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +4 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +54 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +0 -6
- package/dist/collection/components/kup-tree/kup-tree.js +26 -9
- package/dist/collection/f-components/f-button/f-button.js +2 -2
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
- package/dist/collection/f-components/f-cell/f-cell.js +34 -114
- package/dist/collection/f-components/f-text-field/f-text-field.js +9 -1
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +48 -15
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +69 -0
- package/dist/collection/managers/kup-data/kup-data.js +114 -6
- package/dist/collection/managers/kup-interact/kup-interact.js +3 -5
- package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -0
- package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +2 -0
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +131 -45
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +20 -3
- package/dist/collection/types/GenericTypes.js +3 -2
- package/dist/collection/utils/filters/filters-rows.js +4 -23
- package/dist/collection/utils/filters/filters-tree-items.js +2 -1
- package/dist/esm/{f-button-871a544b.js → f-button-cd948e50.js} +4 -4
- package/dist/esm/{f-cell-521ef17a.js → f-cell-474dd282.js} +46 -283
- package/dist/esm/f-checkbox-e06cf07b.js +27 -0
- package/dist/esm/{f-chip-1dda722f.js → f-chip-d6f2eb94.js} +3 -3
- package/dist/esm/{f-image-c468d8ae.js → f-image-914a03ef.js} +2 -2
- package/dist/esm/{f-paginator-utils-7dff8ff0.js → f-paginator-utils-a4a52732.js} +44 -366
- package/dist/esm/{f-text-field-d6c61c73.js → f-text-field-76341fe3.js} +11 -3
- package/dist/esm/{index-baeab1ac.js → index-e41330a5.js} +15 -8
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +3 -4
- package/dist/esm/kup-autocomplete_25.entry.js +222 -190
- package/dist/esm/kup-box.entry.js +1300 -0
- package/dist/esm/kup-calendar.entry.js +5 -7
- package/dist/esm/kup-cell.entry.js +7 -8
- package/dist/esm/kup-dash-list.entry.js +2 -4
- package/dist/esm/kup-dash_2.entry.js +3 -7
- package/dist/esm/kup-dashboard.entry.js +434 -0
- package/dist/esm/kup-drawer.entry.js +3 -4
- package/dist/esm/{kup-box_2.entry.js → kup-echart.entry.js} +61 -1347
- package/dist/esm/kup-family-tree.entry.js +482 -0
- package/dist/esm/kup-form.entry.js +474 -0
- package/dist/esm/kup-iframe.entry.js +2 -3
- package/dist/esm/kup-image-list.entry.js +70 -10
- package/dist/esm/kup-lazy.entry.js +3 -4
- package/dist/esm/kup-magic-box.entry.js +3 -4
- package/dist/esm/{kup-manager-58b075b4.js → kup-manager-86f440c7.js} +1762 -357
- package/dist/esm/kup-nav-bar.entry.js +2 -3
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +4 -5
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -5
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-00e1133d.entry.js +9 -0
- package/dist/ketchup/p-066f344a.entry.js +1 -0
- package/dist/ketchup/p-0c6e0647.entry.js +1 -0
- package/dist/ketchup/p-151f7c17.entry.js +27 -0
- package/dist/ketchup/p-1e9c03b0.entry.js +1 -0
- package/dist/ketchup/p-21ea11cb.js +30 -0
- package/dist/ketchup/{p-fac1a08b.entry.js → p-2f4e6c50.entry.js} +1 -1
- package/dist/ketchup/p-3586f59c.js +1 -0
- package/dist/ketchup/p-359fd90d.entry.js +1 -0
- package/dist/ketchup/p-389fd0bf.js +1 -0
- package/dist/ketchup/p-5552f156.js +1 -0
- package/dist/ketchup/{p-f09f2f98.entry.js → p-77aff9c1.entry.js} +1 -1
- package/dist/ketchup/p-7cfdf53c.entry.js +39 -0
- package/dist/ketchup/p-853a5178.entry.js +1 -0
- package/dist/ketchup/{p-44ec4f03.js → p-8673bd4e.js} +1 -1
- package/dist/ketchup/p-8b55b786.entry.js +1 -0
- package/dist/ketchup/p-95f5834b.entry.js +1 -0
- package/dist/ketchup/p-a2c595c4.js +1 -0
- package/dist/ketchup/p-ae91f27e.entry.js +1 -0
- package/dist/ketchup/p-af664379.js +1 -0
- package/dist/ketchup/p-b0b3989b.js +2 -0
- package/dist/ketchup/p-b3b65a61.entry.js +1 -0
- package/dist/ketchup/p-bc306a53.entry.js +1 -0
- package/dist/ketchup/{p-f71a1675.entry.js → p-c3783b77.entry.js} +1 -1
- package/dist/ketchup/{p-7eff4eee.js → p-cd4fc3fb.js} +1 -1
- package/dist/ketchup/p-cee76b14.entry.js +1 -0
- package/dist/ketchup/p-cfaea29b.entry.js +1 -0
- package/dist/ketchup/p-d2f51e7b.entry.js +1 -0
- package/dist/ketchup/p-df8e6a4d.entry.js +1 -0
- package/dist/ketchup/p-e60a1170.entry.js +1 -0
- package/dist/ketchup/p-e9a1ba04.entry.js +1 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
- package/dist/types/components/{kup-form-editor/kup-form-editor-declarations.d.ts → kup-dashboard/kup-dashboard-declarations.d.ts} +9 -27
- package/dist/types/components/{kup-form-editor/kup-form-editor.d.ts → kup-dashboard/kup-dashboard.d.ts} +17 -9
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +37 -0
- package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +82 -0
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +60 -0
- package/dist/types/components/kup-form/kup-form.d.ts +63 -0
- package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +17 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +4 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +10 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +2 -0
- package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
- package/dist/types/components.d.ts +492 -231
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +2 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +13 -6
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +8 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +15 -1
- package/dist/types/managers/kup-data/kup-data.d.ts +9 -2
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -1
- package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +9 -1
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +7 -5
- package/dist/types/types/GenericTypes.d.ts +3 -2
- package/dist/types/utils/filters/filters-rows.d.ts +0 -2
- package/package.json +2 -2
- package/dist/cjs/cell-utils-a78d6fac.js +0 -168
- package/dist/cjs/f-cell-69294bca.js +0 -653
- package/dist/cjs/kup-field.cjs.entry.js +0 -241
- package/dist/cjs/kup-form-editor.cjs.entry.js +0 -404
- package/dist/cjs/utils-6287d878.js +0 -447
- package/dist/collection/assets/form-editor.js +0 -338
- package/dist/collection/components/kup-field/kup-field-declarations.js +0 -15
- package/dist/collection/components/kup-field/kup-field.css +0 -48
- package/dist/collection/components/kup-field/kup-field.js +0 -514
- package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +0 -23
- package/dist/esm/cell-utils-964da6b5.js +0 -160
- package/dist/esm/kup-field.entry.js +0 -237
- package/dist/esm/kup-form-editor.entry.js +0 -400
- package/dist/esm/utils-d7e4b3c2.js +0 -428
- package/dist/ketchup/p-1ae66cc5.js +0 -1
- package/dist/ketchup/p-34b74425.js +0 -1
- package/dist/ketchup/p-3c11e615.entry.js +0 -1
- package/dist/ketchup/p-4ffbc3ff.js +0 -1
- package/dist/ketchup/p-5264a3e6.entry.js +0 -1
- package/dist/ketchup/p-65974e48.entry.js +0 -1
- package/dist/ketchup/p-65b46587.entry.js +0 -40
- package/dist/ketchup/p-6dff70f8.entry.js +0 -1
- package/dist/ketchup/p-7454cb92.js +0 -1
- package/dist/ketchup/p-80968627.entry.js +0 -1
- package/dist/ketchup/p-8cdf61a4.js +0 -1
- package/dist/ketchup/p-954cc340.entry.js +0 -1
- package/dist/ketchup/p-976244f9.entry.js +0 -9
- package/dist/ketchup/p-99e0d768.entry.js +0 -1
- package/dist/ketchup/p-a0f6e25c.entry.js +0 -1
- package/dist/ketchup/p-a615a92b.entry.js +0 -1
- package/dist/ketchup/p-aca0e54b.js +0 -30
- package/dist/ketchup/p-b8939a8b.entry.js +0 -1
- package/dist/ketchup/p-bfc3bac7.js +0 -1
- package/dist/ketchup/p-c5ce8951.entry.js +0 -1
- package/dist/ketchup/p-d2ee56dd.entry.js +0 -1
- package/dist/ketchup/p-db71436b.entry.js +0 -27
- package/dist/ketchup/p-e0035c58.js +0 -1
- package/dist/ketchup/p-e1039cf2.entry.js +0 -1
- package/dist/ketchup/p-ea10176c.entry.js +0 -1
- package/dist/types/components/kup-field/kup-field-declarations.d.ts +0 -25
- package/dist/types/components/kup-field/kup-field.d.ts +0 -90
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { DropEvent } from '@interactjs/types/index';
|
|
1
2
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
3
|
import { GenericObject } from '../../types/GenericTypes';
|
|
3
|
-
import { KupForm,
|
|
4
|
-
export declare class
|
|
4
|
+
import { KupForm, KupDashboardElement, KupDashboardEventPayload, KupSection, KupDataDashboard } from './kup-dashboard-declarations';
|
|
5
|
+
export declare class KupDashboard {
|
|
5
6
|
/**
|
|
6
7
|
* References the root HTML element of the component (<kup-text-field>).
|
|
7
8
|
*/
|
|
@@ -18,17 +19,18 @@ export declare class KupFormEditor {
|
|
|
18
19
|
customStyle: string;
|
|
19
20
|
/**
|
|
20
21
|
* The data of the component.
|
|
22
|
+
* @default null
|
|
23
|
+
*/
|
|
24
|
+
data: KupDataDashboard;
|
|
25
|
+
/**
|
|
26
|
+
* Enable drag & drop of the section.
|
|
21
27
|
* @default false
|
|
22
28
|
*/
|
|
23
|
-
|
|
29
|
+
enableDesign: boolean;
|
|
24
30
|
/**
|
|
25
31
|
* Instance of the KupManager class.
|
|
26
32
|
*/
|
|
27
33
|
private kupManager;
|
|
28
|
-
/**
|
|
29
|
-
* Draggable type of Form (Components or Sections).
|
|
30
|
-
*/
|
|
31
|
-
private dragType;
|
|
32
34
|
/**
|
|
33
35
|
* Internal data of the component.
|
|
34
36
|
*/
|
|
@@ -37,7 +39,7 @@ export declare class KupFormEditor {
|
|
|
37
39
|
* Internal data backup of the component for refresh when changed content by drag&drop.
|
|
38
40
|
*/
|
|
39
41
|
private internalDataBackup;
|
|
40
|
-
kupSave: EventEmitter<
|
|
42
|
+
kupSave: EventEmitter<KupDashboardEventPayload>;
|
|
41
43
|
onKupSave(): void;
|
|
42
44
|
dataChanged(): void;
|
|
43
45
|
/**
|
|
@@ -55,12 +57,18 @@ export declare class KupFormEditor {
|
|
|
55
57
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
56
58
|
*/
|
|
57
59
|
setProps(props: GenericObject): Promise<void>;
|
|
60
|
+
buildGuid(): string;
|
|
58
61
|
buildHeader(): any;
|
|
59
62
|
buildForm(form: KupForm, parent: KupForm | KupSection): any;
|
|
60
63
|
buildSectionHeader(section: KupSection, parent: KupForm | KupSection): any;
|
|
61
64
|
buildSection(section: KupSection, parent: KupForm | KupSection): any;
|
|
65
|
+
calcSectionPosition(pointerY: number, pointerX: number, vertical: boolean, sectionCount: number, elements: HTMLCollection): number;
|
|
62
66
|
didRenderInteractables(): void;
|
|
63
|
-
|
|
67
|
+
dragEnter(clientY: number, clientX: number, parent: KupDashboardElement): void;
|
|
68
|
+
dropped(event: DropEvent, parent: KupDashboardElement, child: KupDashboardElement): void;
|
|
69
|
+
getGridStyle(entity: KupForm | KupSection): {};
|
|
70
|
+
setSectionPlaceHolder(element: HTMLElement, index: number): void;
|
|
71
|
+
removeSectionPlaceHolder(): void;
|
|
64
72
|
resetData(form?: KupForm): void;
|
|
65
73
|
unregisterInteractables(): void;
|
|
66
74
|
componentWillLoad(): void;
|
|
@@ -6,8 +6,8 @@ export declare class KupDataTableState implements KupState {
|
|
|
6
6
|
expandGroups: boolean;
|
|
7
7
|
groupLabelDisplay: GroupLabelDisplayMode;
|
|
8
8
|
density: string;
|
|
9
|
-
enableSortableColumns: boolean;
|
|
10
9
|
enableExtraColumns: boolean;
|
|
10
|
+
enableSortableColumns: boolean;
|
|
11
11
|
forceOneLine: boolean;
|
|
12
12
|
globalFilter: boolean;
|
|
13
13
|
globalFilterValue: string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { KupDataCell, KupDataColumn, KupDataNode } from '../../managers/kup-data/kup-data-declarations';
|
|
2
|
+
import { KupEventPayload } from '../../types/GenericTypes';
|
|
3
|
+
import { KupBoxLayout } from '../kup-box/kup-box-declarations';
|
|
4
|
+
/**
|
|
5
|
+
* Props of the kup-family-tree component.
|
|
6
|
+
* Used to export every prop in an object.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum KupFamilyTreeProps {
|
|
9
|
+
autofitOnExpand = "The component will autofit everytime a node is expanded.",
|
|
10
|
+
autofitOnLoad = "The component's initial render will fit the container by invoking the runAutofit method.",
|
|
11
|
+
collapsible = "Nodes can be expanded/collapsed.",
|
|
12
|
+
customStyle = "Custom style of the component.",
|
|
13
|
+
data = "Actual data of the component",
|
|
14
|
+
layout = "Layout of the boxes.",
|
|
15
|
+
stackedLeaves = "Child nodes that have no children are arranged vertically."
|
|
16
|
+
}
|
|
17
|
+
export interface KupFamilyTreeData {
|
|
18
|
+
columns: KupDataColumn[];
|
|
19
|
+
rows: KupFamilyTreeNode[];
|
|
20
|
+
}
|
|
21
|
+
export declare type KupFamilyTreeLayout = KupBoxLayout | number;
|
|
22
|
+
export interface KupFamilyTreeNode extends KupDataNode {
|
|
23
|
+
children?: KupFamilyTreeNode[];
|
|
24
|
+
isStaff?: boolean;
|
|
25
|
+
layout?: KupFamilyTreeLayout;
|
|
26
|
+
}
|
|
27
|
+
export interface KupFamilyTreeEventHandlerDetails {
|
|
28
|
+
cell: KupDataCell;
|
|
29
|
+
column: KupDataColumn;
|
|
30
|
+
expandButton: HTMLElement;
|
|
31
|
+
originalEvent: PointerEvent;
|
|
32
|
+
row: KupFamilyTreeNode;
|
|
33
|
+
td: HTMLElement;
|
|
34
|
+
}
|
|
35
|
+
export interface KupFamilyTreeEventPayload extends KupEventPayload {
|
|
36
|
+
details: KupFamilyTreeEventHandlerDetails;
|
|
37
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { GenericObject } from '../../types/GenericTypes';
|
|
3
|
+
import { KupFamilyTreeData, KupFamilyTreeEventPayload, KupFamilyTreeLayout, KupFamilyTreeNode } from './kup-family-tree-declarations';
|
|
4
|
+
export declare class KupFamilyTree {
|
|
5
|
+
#private;
|
|
6
|
+
/**
|
|
7
|
+
* References the root HTML element of the component (<kup-family-tree>).
|
|
8
|
+
*/
|
|
9
|
+
rootElement: HTMLElement;
|
|
10
|
+
/**
|
|
11
|
+
* The component will autofit everytime a node is expanded.
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
autofitOnExpand: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The component's initial render will fit the container by invoking the runAutofit method.
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
autofitOnLoad: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Nodes can be expanded/collapsed.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
collapsible: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Custom style of the component.
|
|
27
|
+
* @default ""
|
|
28
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
29
|
+
*/
|
|
30
|
+
customStyle: string;
|
|
31
|
+
/**
|
|
32
|
+
* Actual data of the component.
|
|
33
|
+
* @default null
|
|
34
|
+
*/
|
|
35
|
+
data: KupFamilyTreeData;
|
|
36
|
+
/**
|
|
37
|
+
* Layout of the boxes.
|
|
38
|
+
* @default null
|
|
39
|
+
*/
|
|
40
|
+
layout: KupFamilyTreeLayout;
|
|
41
|
+
/**
|
|
42
|
+
* Child nodes that have no children are arranged vertically.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
stackedLeaves: boolean;
|
|
46
|
+
kupClick: EventEmitter<KupFamilyTreeEventPayload>;
|
|
47
|
+
kupContextMenu: EventEmitter<KupFamilyTreeEventPayload>;
|
|
48
|
+
kupDblClick: EventEmitter<KupFamilyTreeEventPayload>;
|
|
49
|
+
/**
|
|
50
|
+
* Collapses all nodes.
|
|
51
|
+
*/
|
|
52
|
+
collapseAll(nodes?: KupFamilyTreeNode[]): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Expands all nodes.
|
|
55
|
+
*/
|
|
56
|
+
expandAll(nodes?: KupFamilyTreeNode[]): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Used to retrieve component's props values.
|
|
59
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
60
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
61
|
+
*/
|
|
62
|
+
getProps(descriptions?: boolean): Promise<GenericObject>;
|
|
63
|
+
/**
|
|
64
|
+
* This method is used to trigger a new render of the component.
|
|
65
|
+
*/
|
|
66
|
+
refresh(): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* This method causes the component to autofit its container's width.
|
|
69
|
+
*/
|
|
70
|
+
runAutofit(): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the props to the component.
|
|
73
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
74
|
+
*/
|
|
75
|
+
setProps(props: GenericObject): Promise<void>;
|
|
76
|
+
componentWillLoad(): void;
|
|
77
|
+
componentDidLoad(): void;
|
|
78
|
+
componentWillRender(): void;
|
|
79
|
+
componentDidRender(): void;
|
|
80
|
+
render(): any;
|
|
81
|
+
disconnectedCallback(): void;
|
|
82
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FCellShapes } from '../../f-components/f-cell/f-cell-declarations';
|
|
2
|
+
import { KupDataColumn, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
3
|
+
/**
|
|
4
|
+
* Props of the kup-form component.
|
|
5
|
+
* Used to export every prop in an object.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum KupFormProps {
|
|
8
|
+
customStyle = "Custom style of the component.",
|
|
9
|
+
data = "Actual data of the form.",
|
|
10
|
+
layout = "How the form will arrange its content."
|
|
11
|
+
}
|
|
12
|
+
export interface KupFormData {
|
|
13
|
+
columns?: KupDataColumn[];
|
|
14
|
+
rows?: KupFormRow[];
|
|
15
|
+
}
|
|
16
|
+
export interface KupFormRow extends KupDataRow {
|
|
17
|
+
layout?: KupFormLayout;
|
|
18
|
+
}
|
|
19
|
+
export interface KupFormLayout {
|
|
20
|
+
horizontal?: boolean;
|
|
21
|
+
sections?: KupFormSection[];
|
|
22
|
+
}
|
|
23
|
+
export interface KupFormSection {
|
|
24
|
+
columns?: number;
|
|
25
|
+
content?: KupFormField[];
|
|
26
|
+
dim?: string;
|
|
27
|
+
horizontal?: boolean;
|
|
28
|
+
id?: string;
|
|
29
|
+
label?: KupFormLabel;
|
|
30
|
+
sections?: KupFormSection[];
|
|
31
|
+
style?: {
|
|
32
|
+
[index: string]: string;
|
|
33
|
+
};
|
|
34
|
+
title?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface KupFormField {
|
|
37
|
+
column?: string;
|
|
38
|
+
data?: any;
|
|
39
|
+
label?: string;
|
|
40
|
+
shape?: FCellShapes;
|
|
41
|
+
value?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface KupFormLabel {
|
|
44
|
+
alignment?: KupFormLabelAlignment;
|
|
45
|
+
placement?: KupFormLabelPlacement;
|
|
46
|
+
width?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare enum KupFormLabelAlignment {
|
|
49
|
+
CENTER = "center",
|
|
50
|
+
LEFT = "left",
|
|
51
|
+
RIGHT = "right"
|
|
52
|
+
}
|
|
53
|
+
export declare enum KupFormLabelPlacement {
|
|
54
|
+
BOTTOM = "bottom",
|
|
55
|
+
LEFT = "left",
|
|
56
|
+
HIDDEN = "hidden",
|
|
57
|
+
PLACEHOLDER = "placeholder",
|
|
58
|
+
RIGHT = "right",
|
|
59
|
+
TOP = "top"
|
|
60
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { KupFormLayout, KupFormData } from './kup-form-declarations';
|
|
2
|
+
import { GenericObject } from '../../types/GenericTypes';
|
|
3
|
+
export declare class KupForm {
|
|
4
|
+
/**
|
|
5
|
+
* References the root HTML element of the component (<kup-form>).
|
|
6
|
+
*/
|
|
7
|
+
rootElement: HTMLElement;
|
|
8
|
+
/**
|
|
9
|
+
* Custom style of the component.
|
|
10
|
+
* @default ""
|
|
11
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
12
|
+
*/
|
|
13
|
+
customStyle: string;
|
|
14
|
+
/**
|
|
15
|
+
* Actual data of the form.
|
|
16
|
+
* @default null
|
|
17
|
+
*/
|
|
18
|
+
data: KupFormData;
|
|
19
|
+
/**
|
|
20
|
+
* How the form will arrange its content.
|
|
21
|
+
* @default null
|
|
22
|
+
*/
|
|
23
|
+
layout: KupFormLayout;
|
|
24
|
+
private kupManager;
|
|
25
|
+
private formLayout;
|
|
26
|
+
private visibleColumns;
|
|
27
|
+
onDataChanged(): void;
|
|
28
|
+
onLayoutChanged(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Used to retrieve component's props values.
|
|
31
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
32
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
33
|
+
*/
|
|
34
|
+
getProps(descriptions?: boolean): Promise<GenericObject>;
|
|
35
|
+
/**
|
|
36
|
+
* This method is used to trigger a new render of the component.
|
|
37
|
+
*/
|
|
38
|
+
refresh(): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Sets the focus on an editable table cell.
|
|
41
|
+
* @param {string} column - Name of the column.
|
|
42
|
+
* @param {string} rowId - Id of the row.
|
|
43
|
+
*/
|
|
44
|
+
setFocus(column: string, rowId: string): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the props to the component.
|
|
47
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
48
|
+
*/
|
|
49
|
+
setProps(props: GenericObject): Promise<void>;
|
|
50
|
+
private getColumns;
|
|
51
|
+
private initVisibleColumns;
|
|
52
|
+
private getRows;
|
|
53
|
+
private checkLayout;
|
|
54
|
+
private renderRow;
|
|
55
|
+
private renderSection;
|
|
56
|
+
private renderFormField;
|
|
57
|
+
componentWillLoad(): void;
|
|
58
|
+
componentDidLoad(): void;
|
|
59
|
+
componentWillRender(): void;
|
|
60
|
+
componentDidRender(): void;
|
|
61
|
+
render(): any;
|
|
62
|
+
disconnectedCallback(): void;
|
|
63
|
+
}
|
|
@@ -2,14 +2,20 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
import { GenericObject } from '../../types/GenericTypes';
|
|
3
3
|
import { KupImageListEventPayload } from './kup-image-list-declarations';
|
|
4
4
|
import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
|
|
5
|
+
import { KupStore } from '../kup-state/kup-store';
|
|
6
|
+
import { KupImageListState } from './kup-image-list-state';
|
|
7
|
+
import { TreeNodePath } from '../kup-tree/kup-tree-declarations';
|
|
5
8
|
export declare class KupImageList {
|
|
6
9
|
#private;
|
|
7
10
|
/**
|
|
8
11
|
* References the root HTML element of the component (<kup-image-list>).
|
|
9
12
|
*/
|
|
10
13
|
rootElement: HTMLElement;
|
|
14
|
+
state: KupImageListState;
|
|
11
15
|
currentNode: KupDataNode;
|
|
12
16
|
navigationBarToggled: boolean;
|
|
17
|
+
initWithPersistedState(): void;
|
|
18
|
+
persistState(): void;
|
|
13
19
|
/**
|
|
14
20
|
* Custom style of the component.
|
|
15
21
|
* @default ""
|
|
@@ -26,12 +32,23 @@ export declare class KupImageList {
|
|
|
26
32
|
* @default true
|
|
27
33
|
*/
|
|
28
34
|
ripple: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* An array of integers containing the path to a selected child.\
|
|
37
|
+
*/
|
|
38
|
+
selectedNode: TreeNodePath;
|
|
39
|
+
stateId: string;
|
|
40
|
+
store: KupStore;
|
|
41
|
+
/**
|
|
42
|
+
* Instance of the KupManager class.
|
|
43
|
+
*/
|
|
44
|
+
private kupManager;
|
|
29
45
|
kupClick: EventEmitter<KupImageListEventPayload>;
|
|
30
46
|
onKupClick(node: KupDataNode): void;
|
|
31
47
|
kupContextMenu: EventEmitter<KupImageListEventPayload>;
|
|
32
48
|
onKupContextMenu(e: MouseEvent, node: KupDataNode): void;
|
|
33
49
|
kupDblClick: EventEmitter<KupImageListEventPayload>;
|
|
34
50
|
onKupDblClick(node: KupDataNode): void;
|
|
51
|
+
selectNode(newData: TreeNodePath): void;
|
|
35
52
|
/**
|
|
36
53
|
* Used to retrieve component's props values.
|
|
37
54
|
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
@@ -5,6 +5,7 @@ import { KupEventPayload } from '../../types/GenericTypes';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare enum KupTextFieldProps {
|
|
7
7
|
customStyle = "Custom style of the component.",
|
|
8
|
+
decimals = "Number of decimals (should be used when inputType is number).",
|
|
8
9
|
disabled = "When set to true, the component is disabled.",
|
|
9
10
|
emitSubmitEventOnEnter = "When the text field is part of the autocomplete component and the list is opened, enter key selects the item and doesn't submit.",
|
|
10
11
|
fullWidth = "When set to true, the component will be rendered at full width.",
|
|
@@ -17,7 +18,10 @@ export declare enum KupTextFieldProps {
|
|
|
17
18
|
isClearable = "Enables a clear trailing icon.",
|
|
18
19
|
label = "When set, its content will be shown as a label.",
|
|
19
20
|
leadingLabel = "When set to true, the label will be on the left of the component.",
|
|
21
|
+
max = "The HTML max attribute specifies the maximum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.",
|
|
20
22
|
maxLength = "When set, the helper will display a character counter.",
|
|
23
|
+
min = "The HTML min attribute specifies the minimum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.",
|
|
24
|
+
name = "The HTML name attribute used for form autocomplete.",
|
|
21
25
|
outlined = "When set to true, the component will be rendered as an outlined field.",
|
|
22
26
|
readOnly = "Sets the component to read only state, making it not editable, but interactable. Used in combobox component when it behaves as a select.",
|
|
23
27
|
step = "The HTML step of the input element. It has effect only with number input type.",
|
|
@@ -17,6 +17,11 @@ export declare class KupTextField {
|
|
|
17
17
|
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
18
18
|
*/
|
|
19
19
|
customStyle: string;
|
|
20
|
+
/**
|
|
21
|
+
* Number of decimals (should be used when inputType is number).
|
|
22
|
+
* @default null
|
|
23
|
+
*/
|
|
24
|
+
decimals: number;
|
|
20
25
|
/**
|
|
21
26
|
* When set to true, the component is disabled.
|
|
22
27
|
* @default false
|
|
@@ -94,6 +99,11 @@ export declare class KupTextField {
|
|
|
94
99
|
* @default null
|
|
95
100
|
*/
|
|
96
101
|
min: number;
|
|
102
|
+
/**
|
|
103
|
+
* The HTML name attribute used for form autocomplete.
|
|
104
|
+
* @default null
|
|
105
|
+
*/
|
|
106
|
+
name: string;
|
|
97
107
|
/**
|
|
98
108
|
* When set to true, the component will be rendered as an outlined field.
|
|
99
109
|
* @default false
|
|
@@ -47,12 +47,6 @@ export declare class KupTimePicker {
|
|
|
47
47
|
* Instance of the KupManager class.
|
|
48
48
|
*/
|
|
49
49
|
private kupManager;
|
|
50
|
-
private hoursEl;
|
|
51
|
-
private minutesEl;
|
|
52
|
-
private secondsEl;
|
|
53
|
-
private hoursCircleEl;
|
|
54
|
-
private minutesCircleEl;
|
|
55
|
-
private secondsCircleEl;
|
|
56
50
|
private hoursActive;
|
|
57
51
|
private minutesActive;
|
|
58
52
|
private secondsActive;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KupDataCell, KupDataColumn, KupDataNode, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
2
|
+
import type { PointerEvent } from '@interactjs/types/index';
|
|
2
3
|
import { GenericMap, KupEventPayload } from '../../types/GenericTypes';
|
|
3
4
|
import { KupCardEventPayload } from '../kup-card/kup-card-declarations';
|
|
4
5
|
/**
|
|
@@ -55,6 +56,7 @@ export interface KupTreeEventHandlerDetails {
|
|
|
55
56
|
cell: KupDataCell;
|
|
56
57
|
column: KupDataColumn;
|
|
57
58
|
filterRemove: HTMLSpanElement;
|
|
59
|
+
originalEvent: PointerEvent;
|
|
58
60
|
row: KupDataRow;
|
|
59
61
|
td: HTMLElement;
|
|
60
62
|
th: HTMLElement;
|