@sme.up/ketchup 5.2.1-SNAPSHOT → 6.2.0-SNAPSHOT
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/CHANGELOG.md +5 -0
- package/dist/cjs/{cell-utils-d96b2993.js → cell-utils-d894e802.js} +2 -2
- package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
- package/dist/cjs/{f-button-2b9b99b1.js → f-button-414b3bc3.js} +4 -4
- package/dist/cjs/f-cell-c8983ec7.js +418 -0
- package/dist/cjs/f-checkbox-57443ca3.js +29 -0
- package/dist/cjs/{f-chip-df59e1b0.js → f-chip-ef81bf51.js} +5 -4
- package/dist/cjs/{f-image-12bab3b5.js → f-image-0618c795.js} +2 -2
- package/dist/cjs/f-paginator-utils-c9dd5173.js +1898 -0
- package/dist/cjs/{f-text-field-e7c35b5b.js → f-text-field-7d31190f.js} +3 -3
- package/dist/cjs/{f-text-field-mdc-a67f5dfe.js → f-text-field-mdc-85997738.js} +23 -305
- package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1833 -5745
- package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17113 -14788
- package/dist/cjs/kup-calendar.cjs.entry.js +42 -34
- package/dist/cjs/kup-cell.cjs.entry.js +10 -9
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
- package/dist/cjs/kup-dashboard.cjs.entry.js +379 -0
- package/dist/cjs/kup-drawer.cjs.entry.js +12 -5
- package/dist/cjs/kup-field.cjs.entry.js +2 -2
- package/dist/cjs/kup-form.cjs.entry.js +469 -0
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-image-list.cjs.entry.js +229 -0
- package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
- package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
- package/dist/cjs/kup-manager-2fee8cf3.js +17021 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
- package/dist/cjs/kup-photo-frame.cjs.entry.js +7 -9
- 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 -6
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-e99921c1.js → utils-8470184d.js} +1 -1
- package/dist/collection/assets/card.js +4 -5
- package/dist/collection/assets/dashboard.js +113 -0
- package/dist/collection/assets/data-table.js +15 -79
- package/dist/collection/assets/form.js +179 -0
- package/dist/collection/assets/grid.js +17 -0
- package/dist/collection/assets/image-list.js +624 -0
- package/dist/collection/assets/index.js +16 -4
- package/dist/collection/assets/kupdata.js +0 -3
- package/dist/collection/assets/kuptooltip.js +53 -7
- package/dist/collection/assets/tree.js +0 -128
- package/dist/collection/collection-manifest.json +8 -6
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +136 -130
- package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
- package/dist/collection/components/kup-box/kup-box.js +20 -137
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
- package/dist/collection/components/kup-card/kup-card.css +26 -8
- package/dist/collection/components/kup-card/kup-card.js +1 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
- package/dist/collection/components/kup-combobox/kup-combobox.js +17 -14
- package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
- package/dist/collection/components/kup-dashboard/kup-dashboard.css +81 -0
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +560 -0
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
- package/dist/collection/components/kup-data-table/kup-data-table.js +19 -136
- package/dist/collection/components/kup-drawer/kup-drawer.css +6 -8
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
- package/dist/collection/components/kup-form/kup-form-declarations.js +19 -0
- package/dist/collection/components/kup-form/kup-form.css +86 -0
- package/dist/collection/components/kup-form/kup-form.js +668 -0
- package/dist/collection/components/kup-grid/kup-grid.js +1 -4
- package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
- package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
- package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +2 -9
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +3 -5
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -8
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
- package/dist/collection/components/kup-tree/kup-tree.css +10 -3
- package/dist/collection/components/kup-tree/kup-tree.js +73 -142
- 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 +41 -121
- package/dist/collection/f-components/f-chip/f-chip.js +2 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
- package/dist/collection/managers/kup-data/kup-data.js +98 -1
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
- package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
- package/dist/collection/managers/kup-language/kup-language-declarations.js +13 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +21 -2
- package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +21 -1
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +53 -20
- package/dist/collection/types/GenericTypes.js +3 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +7 -11
- package/dist/esm/{cell-utils-f4bdbbc8.js → cell-utils-7fc84d4e.js} +3 -3
- package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
- package/dist/esm/{f-button-54a49fd8.js → f-button-2f6cc296.js} +4 -4
- package/dist/esm/f-cell-4428481c.js +415 -0
- package/dist/esm/f-checkbox-c51c4a75.js +27 -0
- package/dist/esm/{f-chip-a3035b4b.js → f-chip-b39eb49a.js} +6 -5
- package/dist/esm/{f-image-d32465e3.js → f-image-b08ebeb2.js} +2 -2
- package/dist/esm/f-paginator-utils-4fda6086.js +1884 -0
- package/dist/esm/{f-text-field-c25cc63f.js → f-text-field-184a5fb3.js} +3 -3
- package/dist/esm/{f-text-field-mdc-9fbbefc3.js → f-text-field-mdc-d42d3f9e.js} +2 -284
- package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +6 -6
- package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1775 -5685
- package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17113 -14789
- package/dist/esm/kup-calendar.entry.js +43 -35
- package/dist/esm/kup-cell.entry.js +9 -8
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +4 -7
- package/dist/esm/kup-dashboard.entry.js +375 -0
- package/dist/esm/kup-drawer.entry.js +12 -5
- package/dist/esm/kup-field.entry.js +2 -2
- package/dist/esm/kup-form.entry.js +465 -0
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-image-list.entry.js +225 -0
- package/dist/esm/kup-lazy.entry.js +3 -3
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/kup-manager-3325b2d8.js +17000 -0
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +6 -6
- package/dist/esm/kup-photo-frame.entry.js +7 -9
- 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 +6 -6
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
- package/dist/esm/{utils-f24319a0.js → utils-6373a07e.js} +2 -2
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-006bc4d0.entry.js +1 -0
- package/dist/ketchup/p-0741da57.js +1 -0
- package/dist/ketchup/{p-669bde31.js → p-13e08580.js} +1 -1
- package/dist/ketchup/p-153697fb.entry.js +1 -0
- package/dist/ketchup/{p-9a61d8dc.entry.js → p-175edb62.entry.js} +1 -1
- package/dist/ketchup/{p-11e72a8c.entry.js → p-1db1d42b.entry.js} +1 -1
- package/dist/ketchup/{p-67842f1e.entry.js → p-30820f8f.entry.js} +1 -1
- package/dist/ketchup/p-35325834.entry.js +9 -0
- package/dist/ketchup/p-359e8bec.entry.js +40 -0
- package/dist/ketchup/{p-09d708c4.entry.js → p-3c7c92c0.entry.js} +1 -1
- package/dist/ketchup/p-41cf8703.entry.js +1 -0
- package/dist/ketchup/{p-e6709c26.entry.js → p-6127fccf.entry.js} +1 -1
- package/dist/ketchup/{p-203d6295.entry.js → p-6b82e4e2.entry.js} +1 -1
- package/dist/ketchup/p-704e60eb.js +30 -0
- package/dist/ketchup/{p-4f56932b.js → p-70660fe2.js} +1 -1
- package/dist/ketchup/{p-44192f30.entry.js → p-762c0382.entry.js} +1 -1
- package/dist/ketchup/{p-c58a2a81.entry.js → p-76947316.entry.js} +1 -1
- package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
- package/dist/ketchup/{p-bb8844bf.entry.js → p-8103b80a.entry.js} +1 -1
- package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
- package/dist/ketchup/p-9fa457d4.entry.js +1 -0
- package/dist/ketchup/{p-e8e3c9da.entry.js → p-a0ce8075.entry.js} +1 -1
- package/dist/ketchup/p-a203f78b.js +45 -0
- package/dist/ketchup/p-a804fe83.entry.js +27 -0
- package/dist/ketchup/{p-34748c91.js → p-ca9fd099.js} +1 -1
- package/dist/ketchup/p-caabb9ab.entry.js +1 -0
- package/dist/ketchup/p-cc3abf84.entry.js +1 -0
- package/dist/ketchup/p-cd5cfa7c.js +1 -0
- package/dist/ketchup/p-d2e76960.entry.js +1 -0
- package/dist/ketchup/p-d3b542b3.js +2 -0
- package/dist/ketchup/p-d7004ae4.js +1 -0
- package/dist/ketchup/{p-40f97429.js → p-d95c904b.js} +1 -1
- package/dist/ketchup/p-ddce3430.js +1 -0
- package/dist/ketchup/p-ee580b3a.entry.js +1 -0
- package/dist/ketchup/p-f49cb68e.js +1 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
- package/dist/types/components/kup-box/kup-box.d.ts +0 -22
- package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +61 -0
- package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +75 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -4
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -19
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +48 -0
- package/dist/types/components/kup-form/kup-form.d.ts +68 -0
- package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -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 +3 -5
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -24
- package/dist/types/components.d.ts +512 -369
- 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 +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +3 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +13 -1
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +4 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +12 -0
- package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +3 -3
- package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +17 -6
- package/dist/types/types/GenericTypes.d.ts +3 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
- package/package.json +15 -14
- package/dist/cjs/f-cell-8351cb84.js +0 -653
- package/dist/cjs/kup-manager-5c03da64.js +0 -8795
- package/dist/collection/assets/tooltip.js +0 -73
- package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
- package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
- package/dist/collection/utils/helpers.js +0 -38
- package/dist/esm/f-cell-d5dac50b.js +0 -650
- package/dist/esm/kup-manager-9316a184.js +0 -8778
- package/dist/ketchup/p-12773ca8.js +0 -9
- package/dist/ketchup/p-34b74425.js +0 -1
- package/dist/ketchup/p-4173422f.entry.js +0 -1
- package/dist/ketchup/p-41741c28.entry.js +0 -1
- package/dist/ketchup/p-44f8da2a.js +0 -1
- package/dist/ketchup/p-7a74ad17.js +0 -1
- package/dist/ketchup/p-7ba8fa4a.entry.js +0 -39
- package/dist/ketchup/p-7de0d7e1.js +0 -1
- package/dist/ketchup/p-8418e8fa.entry.js +0 -1
- package/dist/ketchup/p-96bf19aa.entry.js +0 -1
- package/dist/ketchup/p-b0ddcce9.entry.js +0 -9
- package/dist/ketchup/p-b6c21223.entry.js +0 -27
- package/dist/ketchup/p-ca3d585b.entry.js +0 -1
- package/dist/ketchup/p-ecb7069b.js +0 -135
- package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
- package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
- package/dist/types/utils/helpers.d.ts +0 -4
|
@@ -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[];
|
|
@@ -105,6 +105,7 @@ export interface KupDataColumnOperations {
|
|
|
105
105
|
* Interface related to nodes operations.
|
|
106
106
|
*/
|
|
107
107
|
export interface KupDataNodeOperations {
|
|
108
|
+
getParent: (nodes: KupDataNode[], child: KupDataNode) => KupDataNode;
|
|
108
109
|
remove: (nodes: KupDataNode[], node2remove: KupDataNode) => KupDataNode;
|
|
109
110
|
setProperties: (nodes: KupDataNode[], properties: Partial<KupDataNode>, recursively?: boolean, exclude?: KupDataNode[]) => KupDataNode[];
|
|
110
111
|
toStream: (nodes: KupDataNode[]) => KupDataNode[];
|
|
@@ -21,3 +21,10 @@ export declare function setPropertiesNode(nodes: KupDataNode[], properties: Part
|
|
|
21
21
|
* @returns {KupDataNode[]} Streamlined array of every node and their children.
|
|
22
22
|
*/
|
|
23
23
|
export declare function toStreamNode(nodes: KupDataNode[]): KupDataNode[];
|
|
24
|
+
/**
|
|
25
|
+
* Returns the parent of the given node.
|
|
26
|
+
* @param {KupDataNode[]} nodes - Input array of nodes.
|
|
27
|
+
* @param {KupDataNode} child - Child node.
|
|
28
|
+
* @returns {KupDataNode} Parent node.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getParentNode(nodes: KupDataNode[], child: KupDataNode): KupDataNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KupDataCell, KupDataColumn, KupDataDataset, KupDataDatasetSort, KupDataFindCellFilters, KupDataNewColumn, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataNode, KupDataRow } from './kup-data-declarations';
|
|
2
|
+
import { FCellShapes, FCellTypes } from '../../f-components/f-cell/f-cell-declarations';
|
|
2
3
|
/**
|
|
3
4
|
* Handles data operations.
|
|
4
5
|
* @module KupData
|
|
@@ -8,6 +9,7 @@ export declare class KupData {
|
|
|
8
9
|
find(dataset: KupDataDataset, filters: KupDataFindCellFilters): KupDataCell[];
|
|
9
10
|
getValue(dataset: KupDataDataset, columns?: string[]): string[];
|
|
10
11
|
replace(dataset: KupDataDataset, cell: KupDataCell, columns?: string[]): KupDataCell[];
|
|
12
|
+
getType(cell: KupDataCell, shape?: FCellShapes): FCellTypes;
|
|
11
13
|
};
|
|
12
14
|
column: {
|
|
13
15
|
find(dataset: KupDataDataset | KupDataColumn[], filters: Partial<KupDataColumn>): KupDataColumn[];
|
|
@@ -15,6 +17,7 @@ export declare class KupData {
|
|
|
15
17
|
new(dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): string | KupDataColumn;
|
|
16
18
|
};
|
|
17
19
|
node: {
|
|
20
|
+
getParent(nodes: KupDataNode[], child: KupDataNode): KupDataNode;
|
|
18
21
|
remove(nodes: KupDataNode[], node2remove: KupDataNode): KupDataNode;
|
|
19
22
|
setProperties(nodes: KupDataNode[], properties: Partial<KupDataNode>, recursively?: boolean, exclude?: KupDataNode[]): KupDataNode[];
|
|
20
23
|
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
|
*/
|
|
@@ -103,6 +113,7 @@ export declare enum KupLanguageFontsize {
|
|
|
103
113
|
export declare enum KupLanguageGeneric {
|
|
104
114
|
ADD_NEW = "genericAddNew",
|
|
105
115
|
APPLY = "genericApply",
|
|
116
|
+
BACK = "genericBack",
|
|
106
117
|
COLLAPSE = "genericCollapse",
|
|
107
118
|
DAY = "genericDay",
|
|
108
119
|
DRAG_AND_DROP = "genericDragAndDrop",
|
|
@@ -137,6 +148,7 @@ export declare enum KupLanguageGeneric {
|
|
|
137
148
|
SWAP = "genericSwap",
|
|
138
149
|
TOGGLE = "genericToggle",
|
|
139
150
|
TODAY = "genericToday",
|
|
151
|
+
TOP = "genericTop",
|
|
140
152
|
TOTALS_TABLE = "genericTotalsTable",
|
|
141
153
|
TRANSPOSE_DATA = "genericTransposeData",
|
|
142
154
|
VIEW_AS = "genericViewAs",
|
|
@@ -20,6 +20,8 @@ import type { KupToolbar } from '../kup-toolbar/kup-toolbar';
|
|
|
20
20
|
import type { KupTooltip } from '../kup-tooltip/kup-tooltip';
|
|
21
21
|
import type { ResizeObserver } from 'resize-observer';
|
|
22
22
|
import { KupMathLocales } from '../kup-math/kup-math-declarations';
|
|
23
|
+
import { KupTooltipCallbacks } from '../kup-tooltip/kup-tooltip-declarations';
|
|
24
|
+
import { Options } from 'html2canvas';
|
|
23
25
|
/**
|
|
24
26
|
* Interface used to define the HTML element with Ketchup specific properties.
|
|
25
27
|
*/
|
|
@@ -54,6 +56,7 @@ export interface KupManager {
|
|
|
54
56
|
setLibraryLocalization: (locale: KupDatesLocales) => void;
|
|
55
57
|
addClickCallback: (cb: KupManagerClickCb, async?: boolean) => void;
|
|
56
58
|
removeClickCallback: (cb: KupManagerClickCb) => void;
|
|
59
|
+
rasterize: (el: HTMLElement, options?: Partial<Options>) => Promise<HTMLCanvasElement>;
|
|
57
60
|
}
|
|
58
61
|
/**
|
|
59
62
|
* Interface for the KupManager utilities.
|
|
@@ -147,6 +150,7 @@ export interface KupManagerThemeSettings {
|
|
|
147
150
|
* KupDates initialization settings.
|
|
148
151
|
*/
|
|
149
152
|
export interface KupManagerTooltipSettings {
|
|
153
|
+
fCellCallbacks?: KupTooltipCallbacks;
|
|
150
154
|
delay?: number;
|
|
151
155
|
}
|
|
152
156
|
/**
|
|
@@ -14,6 +14,7 @@ import { KupDatesLocales } from '../kup-dates/kup-dates-declarations';
|
|
|
14
14
|
import { KupSearch } from '../kup-search/kup-search';
|
|
15
15
|
import { KupMath } from '../kup-math/kup-math';
|
|
16
16
|
import { KupTooltip } from '../kup-tooltip/kup-tooltip';
|
|
17
|
+
import { Options } from 'html2canvas';
|
|
17
18
|
/**
|
|
18
19
|
* This class controls every other Ketchup utility suite.
|
|
19
20
|
* @module KupManager
|
|
@@ -63,6 +64,17 @@ export declare class KupManager {
|
|
|
63
64
|
* @param {boolean} async - When true, the callback will be added asynchrounously to prevent instant firing if it was added through a click event.
|
|
64
65
|
*/
|
|
65
66
|
addClickCallback(cb: KupManagerClickCb, async?: boolean): void;
|
|
67
|
+
/**
|
|
68
|
+
* Rasterizes an HTMLElement, transforming into a canvas.
|
|
69
|
+
* @param {HTMLElement} el - Element to rasterize.
|
|
70
|
+
* @returns {HTMLCanvasElement} - Canvas created from the HTMLElement.
|
|
71
|
+
*
|
|
72
|
+
* CSS Mask is not supported:
|
|
73
|
+
* @see https://github.com/niklasvh/html2canvas/issues/2814
|
|
74
|
+
* Warning in console about sourcemap, claimed to be solved here but...:
|
|
75
|
+
* @see https://github.com/niklasvh/html2canvas/pull/2787/files
|
|
76
|
+
*/
|
|
77
|
+
rasterize(el: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
|
|
66
78
|
/**
|
|
67
79
|
* Removes the given click callback.
|
|
68
80
|
* @param {KupManagerClickCb} cb - The callback to remove.
|
|
@@ -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.
|
|
@@ -2,7 +2,7 @@ export interface KupTooltipAnchor extends HTMLElement {
|
|
|
2
2
|
kupTooltip: KupTooltipCallbacks;
|
|
3
3
|
}
|
|
4
4
|
export interface KupTooltipCallbacks {
|
|
5
|
-
enter
|
|
6
|
-
over
|
|
7
|
-
leave
|
|
5
|
+
enter?: (e?: PointerEvent, anchor?: HTMLElement) => void;
|
|
6
|
+
over?: (e?: PointerEvent, anchor?: HTMLElement) => void;
|
|
7
|
+
leave?: (e?: PointerEvent, anchor?: HTMLElement) => void;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KupDynamicPositionAnchor } from '../kup-dynamic-position/kup-dynamic-position-declarations';
|
|
2
|
-
import { KupTooltipAnchor } from './kup-tooltip-declarations';
|
|
2
|
+
import { KupTooltipAnchor, KupTooltipCallbacks } from './kup-tooltip-declarations';
|
|
3
3
|
/**
|
|
4
4
|
* Handles application-wide tooltip using card component.
|
|
5
5
|
* @module KupTooltip
|
|
@@ -9,13 +9,26 @@ export declare class KupTooltip {
|
|
|
9
9
|
currentAnchor: KupTooltipAnchor;
|
|
10
10
|
delay: number;
|
|
11
11
|
element: HTMLKupCardElement;
|
|
12
|
+
fCellCallbacks: KupTooltipCallbacks;
|
|
12
13
|
managedElements: Set<KupTooltipAnchor>;
|
|
13
14
|
timeout: ReturnType<typeof setTimeout>;
|
|
14
15
|
/**
|
|
15
16
|
* Initializes KupTooltip.
|
|
16
17
|
*/
|
|
17
|
-
constructor(delay?: number);
|
|
18
|
+
constructor(delay?: number, fCellCallbacks?: KupTooltipCallbacks);
|
|
19
|
+
/**
|
|
20
|
+
* Destroys the tooltip.
|
|
21
|
+
*/
|
|
22
|
+
destroy(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Hides the tooltip.
|
|
25
|
+
*/
|
|
18
26
|
hide(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Displays the tooltip.
|
|
29
|
+
* @param {KupDynamicPositionAnchor} anchor - Anchor point of the tooltip: HTML element or x/y coordinates.
|
|
30
|
+
* @param {Partial<HTMLKupCardElement>} options - Props/attributes of the tooltip.
|
|
31
|
+
*/
|
|
19
32
|
show(anchor?: KupDynamicPositionAnchor, options?: Partial<HTMLKupCardElement>): void;
|
|
20
33
|
/**
|
|
21
34
|
* Returns whether an element was previously registered or not.
|
|
@@ -26,11 +39,9 @@ export declare class KupTooltip {
|
|
|
26
39
|
/**
|
|
27
40
|
* Registers an HTMLElement as KupTooltipAnchor, triggering callback invocation on mouse over.
|
|
28
41
|
* @param {KupTooltipAnchor} element - The HTML element to be registered.
|
|
29
|
-
* @param {
|
|
30
|
-
* @param {(e: PointerEvent) => void} cbOver - Callback invoked when hovering on the element.
|
|
31
|
-
* @param {(e: PointerEvent) => void} cbLeave - Callback invoked when leaving the element.
|
|
42
|
+
* @param {KupTooltipCallbacks} options - Optional callbacks.
|
|
32
43
|
*/
|
|
33
|
-
register(element: KupTooltipAnchor,
|
|
44
|
+
register(element: KupTooltipAnchor, options?: KupTooltipCallbacks): void;
|
|
34
45
|
/**
|
|
35
46
|
* Unregisters an HTMLElement, preventing its attached callback from being invoked.
|
|
36
47
|
*
|
|
@@ -75,15 +75,18 @@ 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
|
FIELD = "KUP-FIELD",
|
|
84
|
+
FORM = "KUP-FORM",
|
|
83
85
|
GAUGE = "KUP-GAUGE",
|
|
84
86
|
GRID = "KUP-GRID",
|
|
85
87
|
IFRAME = "KUP-IFRAME",
|
|
86
88
|
IMAGE = "KUP-IMAGE",
|
|
89
|
+
IMAGE_LIST = "KUP-IMAGE-LIST",
|
|
87
90
|
LAZY = "KUP-LAZY",
|
|
88
91
|
LIST = "KUP-LIST",
|
|
89
92
|
MAGIC_BOX = "KUP-MAGIC-BOX",
|
|
@@ -2,7 +2,6 @@ import type { KupCardData } from '../../components/kup-card/kup-card-declaration
|
|
|
2
2
|
import type { GenericObject } from '../../types/GenericTypes';
|
|
3
3
|
import type { KupDataTable } from '../../components/kup-data-table/kup-data-table';
|
|
4
4
|
import type { KupManagerClickCb } from '../../managers/kup-manager/kup-manager-declarations';
|
|
5
|
-
import type { KupTooltip } from '../../components/kup-tooltip/kup-tooltip';
|
|
6
5
|
import type { KupTree } from '../../components/kup-tree/kup-tree';
|
|
7
6
|
import { FiltersColumnMenu } from '../filters/filters-column-menu';
|
|
8
7
|
import { FilterInterval, ValueDisplayedValue } from '../filters/filters-declarations';
|
|
@@ -20,9 +19,8 @@ export declare class KupColumnMenu {
|
|
|
20
19
|
* Function called by the component when the column menu must be opened.
|
|
21
20
|
* @param {KupDataTable | KupTree} comp - Component using the column menu.
|
|
22
21
|
* @param {string} column - Name of the column.
|
|
23
|
-
* @param {KupTooltip} tooltip - Tooltip of the component, when present.
|
|
24
22
|
*/
|
|
25
|
-
open(comp: KupDataTable | KupTree, column: string
|
|
23
|
+
open(comp: KupDataTable | KupTree, column: string): void;
|
|
26
24
|
/**
|
|
27
25
|
* Function called by the component when the column menu must be closed.
|
|
28
26
|
* @param {HTMLKupCardElement} card - Column menu card.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.2.0-SNAPSHOT",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"smeup",
|
|
6
6
|
"KetchUP",
|
|
@@ -37,17 +37,18 @@
|
|
|
37
37
|
"test.watch": "npm run build:setup && stencil test --spec --e2e --watchAll"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@fullcalendar/core": "^5.
|
|
41
|
-
"@fullcalendar/daygrid": "^5.
|
|
42
|
-
"@fullcalendar/interaction": "^5.
|
|
43
|
-
"@fullcalendar/list": "^5.
|
|
44
|
-
"@fullcalendar/timegrid": "^5.
|
|
45
|
-
"@material/form-field": "^
|
|
46
|
-
"@material/ripple": "^
|
|
47
|
-
"@material/textfield": "^
|
|
40
|
+
"@fullcalendar/core": "^5.11.0",
|
|
41
|
+
"@fullcalendar/daygrid": "^5.11.0",
|
|
42
|
+
"@fullcalendar/interaction": "^5.11.0",
|
|
43
|
+
"@fullcalendar/list": "^5.11.0",
|
|
44
|
+
"@fullcalendar/timegrid": "^5.11.0",
|
|
45
|
+
"@material/form-field": "^14.0.0",
|
|
46
|
+
"@material/ripple": "^14.0.0",
|
|
47
|
+
"@material/textfield": "^14.0.0",
|
|
48
48
|
"d3-shape": "^3.1.0",
|
|
49
|
-
"dayjs": "^1.
|
|
50
|
-
"echarts": "^5.
|
|
49
|
+
"dayjs": "^1.11.1",
|
|
50
|
+
"echarts": "^5.3.2",
|
|
51
|
+
"html2canvas": "^1.4.1",
|
|
51
52
|
"interactjs": "^1.10.11",
|
|
52
53
|
"jquery": "^3.6.0",
|
|
53
54
|
"numeral": "^2.0.6",
|
|
@@ -55,9 +56,9 @@
|
|
|
55
56
|
"vanilla-picker": "^2.12.1"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
|
-
"@stencil/core": "^2.
|
|
59
|
+
"@stencil/core": "^2.16.1",
|
|
59
60
|
"@stencil/sass": "^1.4.1",
|
|
60
|
-
"@types/d3-shape": "^
|
|
61
|
+
"@types/d3-shape": "^3.0.2",
|
|
61
62
|
"@types/geojson": "^7946.0.8",
|
|
62
63
|
"@types/jest": "^26.0.24",
|
|
63
64
|
"@types/jest-cli": "^24.3.0",
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
"jest-environment-node": "^26.6.2",
|
|
70
71
|
"puppeteer": "^13.5.1",
|
|
71
72
|
"rimraf": "^3.0.2",
|
|
72
|
-
"sass": "^1.
|
|
73
|
+
"sass": "^1.50.1"
|
|
73
74
|
},
|
|
74
75
|
"repository": {
|
|
75
76
|
"type": "git",
|