@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
1
|
import type { VNode } from '../../stencil-public-runtime';
|
|
2
2
|
import { KupDataCell, KupDataColumn, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
3
3
|
import { FComponent, KupEventPayload, KupTagNames } from '../../types/GenericTypes';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const autoCenterComps: KupTagNames[];
|
|
5
|
+
export declare const fullWidthFieldsComps: KupTagNames[];
|
|
5
6
|
/**
|
|
6
7
|
* Props of the f-cell component.
|
|
7
8
|
*/
|
|
@@ -110,6 +111,7 @@ export declare enum FCellShapes {
|
|
|
110
111
|
PROGRESS_BAR = "PGB",
|
|
111
112
|
RADIO = "RAD",
|
|
112
113
|
RATING = "RTG",
|
|
114
|
+
SWITCH = "SWT",
|
|
113
115
|
TEXT_FIELD = "ITX"
|
|
114
116
|
}
|
|
115
117
|
/**
|
|
@@ -138,6 +140,7 @@ export declare enum FCellTypes {
|
|
|
138
140
|
RADIO = "radio",
|
|
139
141
|
RATING = "rating",
|
|
140
142
|
STRING = "string",
|
|
143
|
+
SWITCH = "switch",
|
|
141
144
|
TIME = "time"
|
|
142
145
|
}
|
|
143
146
|
export declare const editableTypes: FCellTypes[];
|
|
@@ -3,6 +3,7 @@ import type { FComponent } from '../../types/GenericTypes';
|
|
|
3
3
|
* Props of the f-text-field component.
|
|
4
4
|
*/
|
|
5
5
|
export interface FTextFieldProps extends FComponent {
|
|
6
|
+
decimals?: number;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
fullHeight?: boolean;
|
|
8
9
|
fullWidth?: boolean;
|
|
@@ -17,6 +18,7 @@ export interface FTextFieldProps extends FComponent {
|
|
|
17
18
|
isClearable?: boolean;
|
|
18
19
|
label?: string;
|
|
19
20
|
leadingLabel?: boolean;
|
|
21
|
+
name?: string;
|
|
20
22
|
outlined?: boolean;
|
|
21
23
|
readOnly?: boolean;
|
|
22
24
|
shaped?: boolean;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ValueDisplayedValue } from '../../utils/filters/filters-declarations';
|
|
2
|
+
import { KupObj } from '../kup-objects/kup-objects-declarations';
|
|
3
|
+
import { KupDataCell, KupDataColumn, KupDataDataset, KupDataFindCellFilters } from './kup-data-declarations';
|
|
2
4
|
/**
|
|
3
5
|
* Finds all the cells matching the filters criteria in the input dataset.
|
|
4
6
|
* @param {KupDataDataset} dataset - Input dataset.
|
|
@@ -7,12 +9,17 @@ import { KupDataCell, KupDataDataset, KupDataFindCellFilters } from './kup-data-
|
|
|
7
9
|
*/
|
|
8
10
|
export declare function findCell(dataset: KupDataDataset, filters: KupDataFindCellFilters): KupDataCell[];
|
|
9
11
|
/**
|
|
10
|
-
* Returns all the cells values of the specified
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {
|
|
13
|
-
* @returns {
|
|
12
|
+
* Returns all the cells values of the specified column, sorted if required.
|
|
13
|
+
* @param {Array<KupDataRow>} dataset - Input dataset.
|
|
14
|
+
* @param {KupDataColumn} column - Column included in the search. When missing, returns empty array.
|
|
15
|
+
* @returns {ValueDisplayedValue[]} Values of the cells, sorted.
|
|
14
16
|
*/
|
|
15
|
-
export declare function getCellValue(dataset: KupDataDataset,
|
|
17
|
+
export declare function getCellValue(dataset: KupDataDataset, column: KupDataColumn, sorted?: boolean): ValueDisplayedValue[];
|
|
18
|
+
export declare function addColumnValueFromRow(values: {
|
|
19
|
+
value: string;
|
|
20
|
+
displayedValue?: string;
|
|
21
|
+
obj?: KupObj;
|
|
22
|
+
}[], column: KupDataColumn, cell: KupDataCell): void;
|
|
16
23
|
/**
|
|
17
24
|
* Overrides the given cell attributes for the specified columns.
|
|
18
25
|
* If no columns are provided, the value will be applied to every column of the dataset.
|
|
@@ -105,6 +105,7 @@ export interface KupDataColumnOperations {
|
|
|
105
105
|
* Interface related to nodes operations.
|
|
106
106
|
*/
|
|
107
107
|
export interface KupDataNodeOperations {
|
|
108
|
+
getDrilldownInfo: (nodes: KupDataNode[]) => KupDataNodeDrilldownInfo;
|
|
108
109
|
getParent: (nodes: KupDataNode[], child: KupDataNode) => KupDataNode;
|
|
109
110
|
remove: (nodes: KupDataNode[], node2remove: KupDataNode) => KupDataNode;
|
|
110
111
|
setProperties: (nodes: KupDataNode[], properties: Partial<KupDataNode>, recursively?: boolean, exclude?: KupDataNode[]) => KupDataNode[];
|
|
@@ -152,6 +153,13 @@ export interface KupDataNewColumnOptions {
|
|
|
152
153
|
operation?: string;
|
|
153
154
|
separator?: string;
|
|
154
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Interface containing the options related to column creation when invoking column.new.
|
|
158
|
+
*/
|
|
159
|
+
export interface KupDataNodeDrilldownInfo {
|
|
160
|
+
maxChildren?: number;
|
|
161
|
+
maxDepth?: number;
|
|
162
|
+
}
|
|
155
163
|
/**
|
|
156
164
|
* Types of column creation when invoking column.new.
|
|
157
165
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TreeNodePath } from '../../components/kup-tree/kup-tree-declarations';
|
|
2
|
+
import { KupDataNode, KupDataNodeDrilldownInfo } from './kup-data-declarations';
|
|
2
3
|
/**
|
|
3
4
|
* Removes the given node from the input array, by searching even children.
|
|
4
5
|
* @param {KupDataNode[]} nodes - Input array of nodes.
|
|
@@ -21,6 +22,12 @@ export declare function setPropertiesNode(nodes: KupDataNode[], properties: Part
|
|
|
21
22
|
* @returns {KupDataNode[]} Streamlined array of every node and their children.
|
|
22
23
|
*/
|
|
23
24
|
export declare function toStreamNode(nodes: KupDataNode[]): KupDataNode[];
|
|
25
|
+
/**
|
|
26
|
+
* Gets information about the tree depth, such as max number of children and max depth.
|
|
27
|
+
* @param {KupDataNode[]} nodes - Input array of nodes.
|
|
28
|
+
* @returns {KupDataNodeDrilldownInfo} Information about the tree depth.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getDrilldownInfoNode(nodes: KupDataNode[]): KupDataNodeDrilldownInfo;
|
|
24
31
|
/**
|
|
25
32
|
* Returns the parent of the given node.
|
|
26
33
|
* @param {KupDataNode[]} nodes - Input array of nodes.
|
|
@@ -28,3 +35,10 @@ export declare function toStreamNode(nodes: KupDataNode[]): KupDataNode[];
|
|
|
28
35
|
* @returns {KupDataNode} Parent node.
|
|
29
36
|
*/
|
|
30
37
|
export declare function getParentNode(nodes: KupDataNode[], child: KupDataNode): KupDataNode;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the node with id equal to the given value.
|
|
40
|
+
* @param {KupDataNode[]} nodes - Input array of nodes.
|
|
41
|
+
* @param {string} treeNodePath - Tree node path.
|
|
42
|
+
* @returns {KupDataNode} Node.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getNodeByPath(nodes: KupDataNode[], treeNodePath: TreeNodePath): KupDataNode;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { KupDataCell, KupDataColumn, KupDataDataset, KupDataDatasetSort, KupDataFindCellFilters, KupDataNewColumn, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataNode, KupDataRow } from './kup-data-declarations';
|
|
1
|
+
import { KupDataCell, KupDataColumn, KupDataDataset, KupDataDatasetSort, KupDataFindCellFilters, KupDataNewColumn, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataNode, KupDataNodeDrilldownInfo, KupDataRow } from './kup-data-declarations';
|
|
2
|
+
import { FCellShapes, FCellTypes } from '../../f-components/f-cell/f-cell-declarations';
|
|
3
|
+
import { TreeNodePath } from '../../components/kup-tree/kup-tree-declarations';
|
|
4
|
+
import { ValueDisplayedValue } from '../../utils/filters/filters-declarations';
|
|
2
5
|
/**
|
|
3
6
|
* Handles data operations.
|
|
4
7
|
* @module KupData
|
|
@@ -6,8 +9,9 @@ import { KupDataCell, KupDataColumn, KupDataDataset, KupDataDatasetSort, KupData
|
|
|
6
9
|
export declare class KupData {
|
|
7
10
|
cell: {
|
|
8
11
|
find(dataset: KupDataDataset, filters: KupDataFindCellFilters): KupDataCell[];
|
|
9
|
-
getValue(dataset: KupDataDataset,
|
|
12
|
+
getValue(dataset: KupDataDataset, column: KupDataColumn, sorted?: boolean): ValueDisplayedValue[];
|
|
10
13
|
replace(dataset: KupDataDataset, cell: KupDataCell, columns?: string[]): KupDataCell[];
|
|
14
|
+
getType(cell: KupDataCell, shape?: FCellShapes): FCellTypes;
|
|
11
15
|
};
|
|
12
16
|
column: {
|
|
13
17
|
find(dataset: KupDataDataset | KupDataColumn[], filters: Partial<KupDataColumn>): KupDataColumn[];
|
|
@@ -15,7 +19,10 @@ export declare class KupData {
|
|
|
15
19
|
new(dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): string | KupDataColumn;
|
|
16
20
|
};
|
|
17
21
|
node: {
|
|
22
|
+
getDrilldownInfo(nodes: KupDataNode[]): KupDataNodeDrilldownInfo;
|
|
18
23
|
getParent(nodes: KupDataNode[], child: KupDataNode): KupDataNode;
|
|
24
|
+
find(nodes: KupDataNode[], treeNodePath: TreeNodePath): KupDataNode;
|
|
25
|
+
findByStrTreeNodePath(nodes: KupDataNode[], treeNodePath: string): KupDataNode;
|
|
19
26
|
remove(nodes: KupDataNode[], node2remove: KupDataNode): KupDataNode;
|
|
20
27
|
setProperties(nodes: KupDataNode[], properties: Partial<KupDataNode>, recursively?: boolean, exclude?: KupDataNode[]): KupDataNode[];
|
|
21
28
|
toStream(nodes: KupDataNode[]): KupDataNode[];
|
|
@@ -3,7 +3,7 @@ import type { GenericObject } from '../../types/GenericTypes';
|
|
|
3
3
|
* Master type extending all subtypes of keys.
|
|
4
4
|
* Remember to edit "languages.json"
|
|
5
5
|
*/
|
|
6
|
-
export declare type KupLanguageKey = KupLanguageCheckbox | KupLanguageColumn | KupLanguageDebug | KupLanguageDensity | KupLanguageFontsize | KupLanguageGeneric | KupLanguageGrid | KupLanguageGrouping | KupLanguagePage | KupLanguageRow | KupLanguageSearch | KupLanguageTotals;
|
|
6
|
+
export declare type KupLanguageKey = KupLanguageCheckbox | KupLanguageColumn | KupLanguageDashboard | KupLanguageDebug | KupLanguageDensity | KupLanguageFontsize | KupLanguageGeneric | KupLanguageGrid | KupLanguageGrouping | KupLanguagePage | KupLanguageRow | KupLanguageSearch | KupLanguageTotals;
|
|
7
7
|
/**
|
|
8
8
|
* Interface of the languages JSON.
|
|
9
9
|
*/
|
|
@@ -61,6 +61,16 @@ export declare enum KupLanguageColumn {
|
|
|
61
61
|
NON_NUMERICAL_IN_TABLE = "columnNonNumericalInTable",
|
|
62
62
|
SWAP = "columnSwap"
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Dashboard related decodes.
|
|
66
|
+
*/
|
|
67
|
+
export declare enum KupLanguageDashboard {
|
|
68
|
+
DIMENSION = "dashboardDimension",
|
|
69
|
+
LOADED = "dashboardLoaded",
|
|
70
|
+
RESET = "dashboardReset",
|
|
71
|
+
SAVE = "dashboardSave",
|
|
72
|
+
VERTICAL = "dashboardVertical"
|
|
73
|
+
}
|
|
64
74
|
/**
|
|
65
75
|
* Debug widget decodes.
|
|
66
76
|
*/
|
|
@@ -126,6 +126,12 @@ export declare class KupObjects {
|
|
|
126
126
|
* @returns {boolean} True when the object can be considered as a string.
|
|
127
127
|
*/
|
|
128
128
|
isStringObject(obj: any): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Checks whether the object represents a switch or not.
|
|
131
|
+
* @param {KupObj} obj - Object to check.
|
|
132
|
+
* @returns {boolean} True when the object is a switch.
|
|
133
|
+
*/
|
|
134
|
+
isSwitch(obj: KupObj): boolean;
|
|
129
135
|
/**
|
|
130
136
|
* Checks whether the object represents a text field or not.
|
|
131
137
|
* @param {KupObj} obj - Object to check.
|
|
@@ -5,15 +5,23 @@ export interface KupScrollOnHoverElement extends HTMLElement {
|
|
|
5
5
|
scrollOnHover: {
|
|
6
6
|
active: boolean;
|
|
7
7
|
children: NodeListOf<HTMLElement>;
|
|
8
|
+
percentages: KupScrollOnHoverPercentages;
|
|
8
9
|
rect: DOMRect;
|
|
10
|
+
vertical: boolean;
|
|
9
11
|
x: number;
|
|
10
12
|
y: number;
|
|
11
13
|
};
|
|
12
14
|
}
|
|
15
|
+
export interface KupScrollOnHoverPercentages {
|
|
16
|
+
back: number;
|
|
17
|
+
forward: number;
|
|
18
|
+
}
|
|
13
19
|
/**
|
|
14
20
|
* The direction to which ScollableElement can be scrolled.
|
|
15
21
|
*/
|
|
16
22
|
export declare enum ScrollOnHoverDirection {
|
|
23
|
+
BOTTOM = "bottom",
|
|
17
24
|
LEFT = "left",
|
|
18
|
-
RIGHT = "right"
|
|
25
|
+
RIGHT = "right",
|
|
26
|
+
TOP = "top"
|
|
19
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KupScrollOnHoverElement, ScrollOnHoverDirection } from './kup-scroll-on-hover-declarations';
|
|
1
|
+
import { KupScrollOnHoverElement, KupScrollOnHoverPercentages, ScrollOnHoverDirection } from './kup-scroll-on-hover-declarations';
|
|
2
2
|
/**
|
|
3
3
|
* Lets the user scroll an element's overflow by hovering with the mouse on its left/right edge.
|
|
4
4
|
* @module KupScrollOnHover
|
|
@@ -19,8 +19,10 @@ export declare class KupScrollOnHover {
|
|
|
19
19
|
* Watches the given element in order to trigger the scroll on hover when conditions are met.
|
|
20
20
|
* Children nodes with the "hover-scrolling-child" will be watched and scrolled when el scrolls.
|
|
21
21
|
* @param {KupScrollOnHoverElement} el - Element to watch.
|
|
22
|
+
* @param {boolean} vertical - Enables vertical scroll.
|
|
23
|
+
* @param {KupScrollOnHoverPercentages} percentages - Sets how big is the area in which the scroll is enabled.
|
|
22
24
|
*/
|
|
23
|
-
register(el: KupScrollOnHoverElement): void;
|
|
25
|
+
register(el: KupScrollOnHoverElement, vertical?: boolean, percentages?: KupScrollOnHoverPercentages): void;
|
|
24
26
|
/**
|
|
25
27
|
* Removes the given element from ScrollOnHover watchlist.
|
|
26
28
|
* @param {KupScrollOnHoverElement} el - Element to unregister.
|
|
@@ -46,11 +48,11 @@ export declare class KupScrollOnHover {
|
|
|
46
48
|
* The actual recursive scroll function.
|
|
47
49
|
* @param {KupScrollOnHoverElement} el - The scrolled element.
|
|
48
50
|
* @param {number} maxScrollLeft - Left coordinates to which the recursiveness must be stopped.
|
|
49
|
-
* @param {number}
|
|
50
|
-
* @param {number}
|
|
51
|
+
* @param {number} percForward - Range of the right (or bottom) area.
|
|
52
|
+
* @param {number} percBack - Range of the left (or top) scrollable area.
|
|
51
53
|
* @param {ScrollOnHoverDirection} direction - Direction of the scroll.
|
|
52
54
|
*/
|
|
53
|
-
run(el: KupScrollOnHoverElement, maxScrollLeft: number,
|
|
55
|
+
run(el: KupScrollOnHoverElement, maxScrollLeft: number, percForward: number, percBack: number, direction: ScrollOnHoverDirection): void;
|
|
54
56
|
/**
|
|
55
57
|
* Scrolls children of the element having the "hover-scrolling-child" class
|
|
56
58
|
* @param {KupScrollOnHoverElement} el - The scrolled element.
|
|
@@ -75,12 +75,13 @@ export declare enum KupTagNames {
|
|
|
75
75
|
COMBOBOX = "KUP-COMBOBOX",
|
|
76
76
|
DASH = "KUP-DASH",
|
|
77
77
|
DASH_LIST = "KUP-DASH-LIST",
|
|
78
|
+
DASHBOARD = "KUP-DASHBOARD",
|
|
78
79
|
DATA_TABLE = "KUP-DATA-TABLE",
|
|
79
80
|
DATE_PICKER = "KUP-DATE-PICKER",
|
|
80
81
|
DRAWER = "KUP-DRAWER",
|
|
81
82
|
DROPDOWN_BUTTON = "KUP-DROPDOWN-BUTTON",
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
FAMILY_TREE = "KUP-FAMILY-TREE",
|
|
84
|
+
FORM = "KUP-FORM",
|
|
84
85
|
GAUGE = "KUP-GAUGE",
|
|
85
86
|
GRID = "KUP-GRID",
|
|
86
87
|
IFRAME = "KUP-IFRAME",
|
|
@@ -27,6 +27,4 @@ export declare class FiltersRows extends Filters {
|
|
|
27
27
|
*/
|
|
28
28
|
filterRows(rows?: Array<KupDataRow>, filters?: GenericFilter, globalFilter?: string, columns?: KupDataColumn[], columnFilters?: FiltersColumnMenu): Array<KupDataRow>;
|
|
29
29
|
getColumnValues(comp: KupDataTable | KupTree, column: KupDataColumn, globalFilterValue: string, columnFilters?: FiltersColumnMenu): ValueDisplayedValue[];
|
|
30
|
-
extractColumnValues(rows: Array<KupDataRow>, column: KupDataColumn, values: ValueDisplayedValue[]): ValueDisplayedValue[];
|
|
31
|
-
addColumnValueFromRow(values: ValueDisplayedValue[], column: KupDataColumn, cell: KupDataCell): void;
|
|
32
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"smeup",
|
|
6
6
|
"KetchUP",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"vanilla-picker": "^2.12.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@stencil/core": "^2.
|
|
59
|
+
"@stencil/core": "^2.17.3",
|
|
60
60
|
"@stencil/sass": "^1.4.1",
|
|
61
61
|
"@types/d3-shape": "^3.0.2",
|
|
62
62
|
"@types/geojson": "^7946.0.8",
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const utils = require('./utils-6287d878.js');
|
|
4
|
-
const kupManager = require('./kup-manager-7a941909.js');
|
|
5
|
-
|
|
6
|
-
const dom = document.documentElement;
|
|
7
|
-
// -------------
|
|
8
|
-
// COMMONS
|
|
9
|
-
// -------------
|
|
10
|
-
function getCellValueForDisplay(column, cell) {
|
|
11
|
-
if (cell != null) {
|
|
12
|
-
if (cell.displayedValue != null) {
|
|
13
|
-
return cell.displayedValue;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
let formattedValue = _getCellValueForDisplay(cell.value, column, cell);
|
|
17
|
-
if (cell != null) {
|
|
18
|
-
cell.displayedValue = formattedValue;
|
|
19
|
-
}
|
|
20
|
-
return formattedValue;
|
|
21
|
-
}
|
|
22
|
-
function getValueForDisplay2(values, column) {
|
|
23
|
-
if (values == null) {
|
|
24
|
-
return '';
|
|
25
|
-
}
|
|
26
|
-
if (values.displayedValue == null || values.displayedValue.trim() == '') {
|
|
27
|
-
values.displayedValue = _getCellValueForDisplay(values.value, column, null);
|
|
28
|
-
}
|
|
29
|
-
return values.displayedValue;
|
|
30
|
-
}
|
|
31
|
-
function formatToNumber(cell) {
|
|
32
|
-
if (cell.obj) {
|
|
33
|
-
return dom.ketchup.math.numberify(cell.obj.k);
|
|
34
|
-
}
|
|
35
|
-
return dom.ketchup.math.numberify(cell.value);
|
|
36
|
-
}
|
|
37
|
-
function _getCellValueForDisplay(value, column, cell) {
|
|
38
|
-
let obj = column != null ? column.obj : null;
|
|
39
|
-
if (cell != null) {
|
|
40
|
-
obj = cell.obj ? cell.obj : obj;
|
|
41
|
-
}
|
|
42
|
-
return getValueForDisplay(value, obj, column != null ? column.decimals : null);
|
|
43
|
-
}
|
|
44
|
-
function getValueForDisplay(value, obj, decimals) {
|
|
45
|
-
if (value == null || value.trim() == '') {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
if (dom.ketchup.objects.isNumber(obj)) {
|
|
49
|
-
return utils.unformattedStringToFormattedStringNumber(value, decimals ? decimals : -1, obj ? obj.p : '');
|
|
50
|
-
}
|
|
51
|
-
if (dom.ketchup.objects.isDate(obj) &&
|
|
52
|
-
dom.ketchup.dates.isValid(value, kupManager.KupDatesFormats.ISO_DATE)) {
|
|
53
|
-
return dom.ketchup.dates.format(value);
|
|
54
|
-
}
|
|
55
|
-
if (dom.ketchup.objects.isTime(obj)) {
|
|
56
|
-
return utils.unformattedStringToFormattedStringTime(value, dom.ketchup.objects.isTimeWithSeconds(obj), obj.t + obj.p);
|
|
57
|
-
}
|
|
58
|
-
if (dom.ketchup.objects.isTimestamp(obj)) {
|
|
59
|
-
return utils.unformattedStringToFormattedStringTimestamp(value);
|
|
60
|
-
}
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
function getColumnByName(columns, name) {
|
|
64
|
-
if (columns == null) {
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
for (let column of columns) {
|
|
68
|
-
if (column.name === name) {
|
|
69
|
-
return column;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
function compareCell(cell1, cell2, sortMode) {
|
|
75
|
-
return compareValues(cell1.obj, cell1.value, cell2.obj, cell2.value, sortMode);
|
|
76
|
-
}
|
|
77
|
-
function compareValues(obj1, value1, obj2, value2, sortMode) {
|
|
78
|
-
const sm = sortMode === 'A' ? 1 : -1;
|
|
79
|
-
if (obj1 == null || obj2 == null) {
|
|
80
|
-
return sm * localCompareAsInJava(value1, value2);
|
|
81
|
-
}
|
|
82
|
-
// If either the type or the parameter of the current object are not equal.
|
|
83
|
-
if (!(obj1.t === obj2.t && obj1.p === obj2.p)) {
|
|
84
|
-
let compare = localCompareAsInJava(obj1.t, obj2.t);
|
|
85
|
-
if (compare === 0) {
|
|
86
|
-
compare = localCompareAsInJava(obj1.p, obj2.p);
|
|
87
|
-
}
|
|
88
|
-
return compare * sm;
|
|
89
|
-
}
|
|
90
|
-
let s1 = value1;
|
|
91
|
-
let s2 = value2;
|
|
92
|
-
if (s1 == s2) {
|
|
93
|
-
return 0;
|
|
94
|
-
}
|
|
95
|
-
if (s1 == '') {
|
|
96
|
-
return sm * -1;
|
|
97
|
-
}
|
|
98
|
-
if (s2 == '') {
|
|
99
|
-
return sm * 1;
|
|
100
|
-
}
|
|
101
|
-
let v1 = s1;
|
|
102
|
-
let v2 = s2;
|
|
103
|
-
if (dom.ketchup.objects.isNumber(obj1)) {
|
|
104
|
-
v1 = utils.stringToNumber(s1);
|
|
105
|
-
v2 = utils.stringToNumber(s2);
|
|
106
|
-
}
|
|
107
|
-
else if (dom.ketchup.objects.isDate(obj1)) {
|
|
108
|
-
v1 = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s1, kupManager.KupDatesFormats.ISO_DATE));
|
|
109
|
-
v2 = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s2, kupManager.KupDatesFormats.ISO_DATE));
|
|
110
|
-
}
|
|
111
|
-
else if (dom.ketchup.objects.isTime(obj1)) {
|
|
112
|
-
let manageSeconds = dom.ketchup.objects.isTimeWithSeconds(obj1);
|
|
113
|
-
v1 = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s1, manageSeconds
|
|
114
|
-
? kupManager.KupDatesFormats.ISO_TIME
|
|
115
|
-
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS));
|
|
116
|
-
v2 = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s2, manageSeconds
|
|
117
|
-
? kupManager.KupDatesFormats.ISO_TIME
|
|
118
|
-
: kupManager.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS));
|
|
119
|
-
}
|
|
120
|
-
else if (dom.ketchup.objects.isTimestamp(obj1)) {
|
|
121
|
-
v1 = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s1, kupManager.KupDatesFormats.ISO_DATE_TIME));
|
|
122
|
-
v2 = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s2, kupManager.KupDatesFormats.ISO_DATE_TIME));
|
|
123
|
-
}
|
|
124
|
-
if (v1 > v2) {
|
|
125
|
-
return sm * 1;
|
|
126
|
-
}
|
|
127
|
-
if (v1 < v2) {
|
|
128
|
-
return sm * -1;
|
|
129
|
-
}
|
|
130
|
-
return 0;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Given two strings to compare, the functions decides which string comes before the other or if they are equal.
|
|
134
|
-
* This is meant as a replacement for the JavaScript function localCompare() which produces a slightly different result from
|
|
135
|
-
* the Java version of compareTo().
|
|
136
|
-
*
|
|
137
|
-
* Re-implemented from java source method compareTo() of java.lang.String
|
|
138
|
-
* @param t1 firstString the first string to be compared
|
|
139
|
-
* @param t2 anotherString the another string to be compared to the first one
|
|
140
|
-
* @returns the value 0 if the anotherString is equal to
|
|
141
|
-
* firstString; a value less than 0 if firstString
|
|
142
|
-
* is lexicographically less than the anotherString; and a
|
|
143
|
-
* value greater than 0 if firstString is
|
|
144
|
-
* lexicographically greater than the anotherString.
|
|
145
|
-
*/
|
|
146
|
-
function localCompareAsInJava(t1, t2) {
|
|
147
|
-
let t1Length = t1 == null ? 0 : t1.length;
|
|
148
|
-
let t2Length = t2 == null ? 0 : t2.length;
|
|
149
|
-
const lim = Math.min(t1Length, t2Length);
|
|
150
|
-
let k = 0;
|
|
151
|
-
while (k < lim) {
|
|
152
|
-
const c1 = t1[k];
|
|
153
|
-
const c2 = t2[k];
|
|
154
|
-
if (c1 !== c2) {
|
|
155
|
-
return c1.charCodeAt(0) - c2.charCodeAt(0);
|
|
156
|
-
}
|
|
157
|
-
k++;
|
|
158
|
-
}
|
|
159
|
-
return t1Length - t2Length;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
exports.compareCell = compareCell;
|
|
163
|
-
exports.compareValues = compareValues;
|
|
164
|
-
exports.formatToNumber = formatToNumber;
|
|
165
|
-
exports.getCellValueForDisplay = getCellValueForDisplay;
|
|
166
|
-
exports.getColumnByName = getColumnByName;
|
|
167
|
-
exports.getValueForDisplay = getValueForDisplay;
|
|
168
|
-
exports.getValueForDisplay2 = getValueForDisplay2;
|