@sme.up/ketchup 5.2.0-SNAPSHOT → 6.0.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/{cell-utils-5b16c180.js → cell-utils-a78d6fac.js} +2 -2
- package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
- package/dist/cjs/{f-button-3b9f32af.js → f-button-ac179257.js} +2 -2
- package/dist/cjs/{f-cell-c6ad973a.js → f-cell-69294bca.js} +33 -121
- package/dist/cjs/{f-chip-bed86c4a.js → f-chip-b00897d7.js} +5 -4
- package/dist/cjs/{f-image-08a3d340.js → f-image-89f25556.js} +2 -2
- package/dist/cjs/f-paginator-utils-8fa501b3.js +1898 -0
- package/dist/cjs/f-text-field-e1e45ade.js +94 -0
- package/dist/cjs/f-text-field-mdc-85997738.js +2570 -0
- package/dist/cjs/{index-8d7bb3be.js → index-eb556444.js} +2 -0
- 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} +1788 -8378
- package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17102 -14788
- package/dist/cjs/kup-calendar.cjs.entry.js +42 -34
- package/dist/cjs/kup-cell.cjs.entry.js +8 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +3 -3
- 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-editor.cjs.entry.js +404 -0
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-image-list.cjs.entry.js +228 -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-7a941909.js +16703 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +423 -0
- package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
- 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-b9df398c.js → utils-6287d878.js} +1 -1
- package/dist/collection/assets/card.js +4 -5
- package/dist/collection/assets/data-table.js +44 -79
- package/dist/collection/assets/form-editor.js +338 -0
- package/dist/collection/assets/image-list.js +624 -0
- package/dist/collection/assets/index.js +16 -0
- package/dist/collection/assets/kupdata.js +0 -3
- package/dist/collection/assets/kuptooltip.js +654 -0
- 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 +1 -1
- package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
- package/dist/collection/components/kup-box/kup-box.js +7 -135
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -0
- 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/built-in/kup-card-numeric.js +153 -0
- package/dist/collection/components/kup-card/kup-card.css +61 -8
- package/dist/collection/components/kup-card/kup-card.js +2 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
- package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
- 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 +50 -138
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
- package/dist/collection/components/kup-drawer/kup-drawer.css +1 -0
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
- package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +23 -0
- package/dist/collection/components/kup-form-editor/kup-form-editor.css +80 -0
- package/dist/collection/components/kup-form-editor/kup-form-editor.js +561 -0
- 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-numeric-picker/kup-numeric-picker-declarations.js +16 -0
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +50 -0
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +895 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +3 -13
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
- 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-time-picker/kup-time-picker.js +2 -2
- 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 +81 -145
- package/dist/collection/f-components/f-cell/f-cell.js +7 -7
- package/dist/collection/f-components/f-chip/f-chip.js +2 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
- package/dist/collection/managers/kup-data/kup-data.js +4 -1
- package/dist/collection/managers/kup-debug/kup-debug.js +1 -0
- 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 +2 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +31 -1
- package/dist/collection/managers/kup-math/kup-math.js +11 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +6 -0
- package/dist/collection/managers/kup-tooltip/kup-tooltip-declarations.js +1 -0
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +224 -0
- package/dist/collection/types/GenericTypes.js +3 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +8 -12
- package/dist/esm/{cell-utils-69f75e2e.js → cell-utils-964da6b5.js} +3 -3
- package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
- package/dist/esm/{f-button-7e7607d8.js → f-button-871a544b.js} +2 -2
- package/dist/esm/{f-cell-e4d83c27.js → f-cell-521ef17a.js} +33 -120
- package/dist/esm/{f-chip-51dfefaf.js → f-chip-1dda722f.js} +6 -5
- package/dist/esm/{f-image-de331954.js → f-image-c468d8ae.js} +2 -2
- package/dist/esm/f-paginator-utils-7dff8ff0.js +1884 -0
- package/dist/esm/f-text-field-d6c61c73.js +92 -0
- package/dist/esm/f-text-field-mdc-d42d3f9e.js +2568 -0
- package/dist/esm/{index-aeec9835.js → index-baeab1ac.js} +2 -1
- 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} +1724 -8312
- package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17102 -14789
- package/dist/esm/kup-calendar.entry.js +43 -35
- package/dist/esm/kup-cell.entry.js +8 -7
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +3 -3
- package/dist/esm/kup-drawer.entry.js +12 -5
- package/dist/esm/kup-field.entry.js +2 -2
- package/dist/esm/kup-form-editor.entry.js +400 -0
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-image-list.entry.js +224 -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-58b075b4.js +16686 -0
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +419 -0
- package/dist/esm/kup-photo-frame.entry.js +5 -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 +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-35c7a90d.js → utils-d7e4b3c2.js} +2 -2
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-5d190cf5.js → p-1ae66cc5.js} +1 -1
- package/dist/ketchup/{p-8be1337b.js → p-34b74425.js} +1 -1
- package/dist/ketchup/{p-fea316ab.entry.js → p-3c11e615.entry.js} +1 -1
- package/dist/ketchup/p-44ec4f03.js +1 -0
- package/dist/ketchup/p-4ffbc3ff.js +1 -0
- package/dist/ketchup/p-5264a3e6.entry.js +1 -0
- package/dist/ketchup/{p-d7af8156.entry.js → p-65974e48.entry.js} +1 -1
- package/dist/ketchup/p-65b46587.entry.js +40 -0
- package/dist/ketchup/{p-3813281b.entry.js → p-6dff70f8.entry.js} +1 -1
- package/dist/ketchup/{p-33073f4a.js → p-7454cb92.js} +1 -1
- package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
- package/dist/ketchup/p-7eff4eee.js +1 -0
- package/dist/ketchup/p-80968627.entry.js +1 -0
- package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
- package/dist/ketchup/p-8cdf61a4.js +1 -0
- package/dist/ketchup/{p-f9c41e20.entry.js → p-954cc340.entry.js} +1 -1
- package/dist/ketchup/p-99e0d768.entry.js +1 -0
- package/dist/ketchup/{p-8f735633.entry.js → p-a0f6e25c.entry.js} +1 -1
- package/dist/ketchup/p-a203f78b.js +45 -0
- package/dist/ketchup/{p-9bcda66f.entry.js → p-a615a92b.entry.js} +1 -1
- package/dist/ketchup/p-aca0e54b.js +30 -0
- package/dist/ketchup/p-b8939a8b.entry.js +1 -0
- package/dist/ketchup/p-bfc3bac7.js +1 -0
- package/dist/ketchup/{p-67c64257.entry.js → p-c5ce8951.entry.js} +1 -1
- package/dist/ketchup/p-cad1e097.entry.js +9 -0
- package/dist/ketchup/{p-68fc1428.entry.js → p-d2ee56dd.entry.js} +1 -1
- package/dist/ketchup/p-db71436b.entry.js +27 -0
- package/dist/ketchup/{p-10c8d755.js → p-e0035c58.js} +1 -1
- package/dist/ketchup/p-e1039cf2.entry.js +1 -0
- package/dist/ketchup/{p-b5e1dbfa.entry.js → p-ea10176c.entry.js} +1 -1
- package/dist/ketchup/p-f09f2f98.entry.js +1 -0
- package/dist/ketchup/{p-0751aaf6.entry.js → p-f71a1675.entry.js} +1 -1
- package/dist/ketchup/{p-4081f5f7.entry.js → p-fac1a08b.entry.js} +1 -1
- 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-card/built-in/kup-card-built-in.d.ts +7 -0
- package/dist/types/components/kup-card/built-in/kup-card-numeric.d.ts +2 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +26 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +4 -4
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +5 -19
- package/dist/types/components/kup-form-editor/kup-form-editor-declarations.d.ts +79 -0
- package/dist/types/components/kup-form-editor/kup-form-editor.d.ts +72 -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-numeric-picker/kup-numeric-picker-declarations.d.ts +19 -0
- package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +121 -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-tree/kup-tree-declarations.d.ts +1 -5
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -25
- package/dist/types/components.d.ts +265 -232
- 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 +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -0
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +14 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +14 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +2 -1
- package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +8 -0
- package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +51 -0
- 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 +16 -15
- package/dist/cjs/kup-manager-4227f0a2.js +0 -8582
- 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/kup-manager-0ab94726.js +0 -8565
- package/dist/ketchup/p-24df4f29.entry.js +0 -27
- package/dist/ketchup/p-2d4f19f4.js +0 -1
- package/dist/ketchup/p-3445be1e.entry.js +0 -1
- package/dist/ketchup/p-3aab1f0d.entry.js +0 -1
- package/dist/ketchup/p-47b57d97.js +0 -1
- package/dist/ketchup/p-5186885c.entry.js +0 -1
- package/dist/ketchup/p-78223dc0.entry.js +0 -143
- package/dist/ketchup/p-96101f09.entry.js +0 -39
- package/dist/ketchup/p-c314b1e6.js +0 -1
- package/dist/ketchup/p-ee33cbe9.js +0 -9
- 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
|
@@ -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;
|
|
@@ -15,6 +15,7 @@ export declare class KupData {
|
|
|
15
15
|
new(dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): string | KupDataColumn;
|
|
16
16
|
};
|
|
17
17
|
node: {
|
|
18
|
+
getParent(nodes: KupDataNode[], child: KupDataNode): KupDataNode;
|
|
18
19
|
remove(nodes: KupDataNode[], node2remove: KupDataNode): KupDataNode;
|
|
19
20
|
setProperties(nodes: KupDataNode[], properties: Partial<KupDataNode>, recursively?: boolean, exclude?: KupDataNode[]): KupDataNode[];
|
|
20
21
|
toStream(nodes: KupDataNode[]): KupDataNode[];
|
|
@@ -103,6 +103,7 @@ export declare enum KupLanguageFontsize {
|
|
|
103
103
|
export declare enum KupLanguageGeneric {
|
|
104
104
|
ADD_NEW = "genericAddNew",
|
|
105
105
|
APPLY = "genericApply",
|
|
106
|
+
BACK = "genericBack",
|
|
106
107
|
COLLAPSE = "genericCollapse",
|
|
107
108
|
DAY = "genericDay",
|
|
108
109
|
DRAG_AND_DROP = "genericDragAndDrop",
|
|
@@ -137,6 +138,7 @@ export declare enum KupLanguageGeneric {
|
|
|
137
138
|
SWAP = "genericSwap",
|
|
138
139
|
TOGGLE = "genericToggle",
|
|
139
140
|
TODAY = "genericToday",
|
|
141
|
+
TOP = "genericTop",
|
|
140
142
|
TOTALS_TABLE = "genericTotalsTable",
|
|
141
143
|
TRANSPOSE_DATA = "genericTransposeData",
|
|
142
144
|
VIEW_AS = "genericViewAs",
|
|
@@ -17,8 +17,11 @@ import type { KupSearch } from '../kup-search/kup-search';
|
|
|
17
17
|
import type { KupTheme } from '../kup-theme/kup-theme';
|
|
18
18
|
import type { KupThemeJSON } from '../kup-theme/kup-theme-declarations';
|
|
19
19
|
import type { KupToolbar } from '../kup-toolbar/kup-toolbar';
|
|
20
|
+
import type { KupTooltip } from '../kup-tooltip/kup-tooltip';
|
|
20
21
|
import type { ResizeObserver } from 'resize-observer';
|
|
21
22
|
import { KupMathLocales } from '../kup-math/kup-math-declarations';
|
|
23
|
+
import { KupTooltipCallbacks } from '../kup-tooltip/kup-tooltip-declarations';
|
|
24
|
+
import { Options } from 'html2canvas';
|
|
22
25
|
/**
|
|
23
26
|
* Interface used to define the HTML element with Ketchup specific properties.
|
|
24
27
|
*/
|
|
@@ -45,6 +48,7 @@ export interface KupManager {
|
|
|
45
48
|
search: KupSearch;
|
|
46
49
|
theme: KupTheme;
|
|
47
50
|
toolbar: KupToolbar;
|
|
51
|
+
tooltip: KupTooltip;
|
|
48
52
|
utilities: KupManagerUtilities;
|
|
49
53
|
showMagicBox: () => void;
|
|
50
54
|
hideMagicBox: () => void;
|
|
@@ -52,6 +56,7 @@ export interface KupManager {
|
|
|
52
56
|
setLibraryLocalization: (locale: KupDatesLocales) => void;
|
|
53
57
|
addClickCallback: (cb: KupManagerClickCb, async?: boolean) => void;
|
|
54
58
|
removeClickCallback: (cb: KupManagerClickCb) => void;
|
|
59
|
+
rasterize: (el: HTMLElement, options?: Partial<Options>) => Promise<HTMLCanvasElement>;
|
|
55
60
|
}
|
|
56
61
|
/**
|
|
57
62
|
* Interface for the KupManager utilities.
|
|
@@ -71,6 +76,7 @@ export interface KupManagerClickCb {
|
|
|
71
76
|
* Interface for the KupManager override settings.
|
|
72
77
|
*/
|
|
73
78
|
export interface KupManagerInitialization {
|
|
79
|
+
assetsPath?: string;
|
|
74
80
|
autoSetLocalization?: boolean;
|
|
75
81
|
dates?: KupManagerDatesSettings;
|
|
76
82
|
debug?: KupManagerDebugSettings;
|
|
@@ -80,6 +86,7 @@ export interface KupManagerInitialization {
|
|
|
80
86
|
objects?: KupManagerObjectsSettings;
|
|
81
87
|
scrollOnHover?: KupManagerScrollOnHoverSettings;
|
|
82
88
|
theme?: KupManagerThemeSettings;
|
|
89
|
+
tooltip?: KupManagerTooltipSettings;
|
|
83
90
|
}
|
|
84
91
|
/**
|
|
85
92
|
* KupDates initialization settings.
|
|
@@ -139,6 +146,13 @@ export interface KupManagerThemeSettings {
|
|
|
139
146
|
list?: KupThemeJSON;
|
|
140
147
|
name?: string;
|
|
141
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* KupDates initialization settings.
|
|
151
|
+
*/
|
|
152
|
+
export interface KupManagerTooltipSettings {
|
|
153
|
+
fCellCallbacks?: KupTooltipCallbacks;
|
|
154
|
+
delay?: number;
|
|
155
|
+
}
|
|
142
156
|
/**
|
|
143
157
|
* KupTheme initialization settings.
|
|
144
158
|
*/
|
|
@@ -13,6 +13,8 @@ import { KupDates } from '../kup-dates/kup-dates';
|
|
|
13
13
|
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
|
+
import { KupTooltip } from '../kup-tooltip/kup-tooltip';
|
|
17
|
+
import { Options } from 'html2canvas';
|
|
16
18
|
/**
|
|
17
19
|
* This class controls every other Ketchup utility suite.
|
|
18
20
|
* @module KupManager
|
|
@@ -34,6 +36,7 @@ export declare class KupManager {
|
|
|
34
36
|
utilities: KupManagerUtilities;
|
|
35
37
|
theme: KupTheme;
|
|
36
38
|
toolbar: KupToolbar;
|
|
39
|
+
tooltip: KupTooltip;
|
|
37
40
|
/**
|
|
38
41
|
* Initializes KupManager.
|
|
39
42
|
*/
|
|
@@ -61,6 +64,17 @@ export declare class KupManager {
|
|
|
61
64
|
* @param {boolean} async - When true, the callback will be added asynchrounously to prevent instant firing if it was added through a click event.
|
|
62
65
|
*/
|
|
63
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>;
|
|
64
78
|
/**
|
|
65
79
|
* Removes the given click callback.
|
|
66
80
|
* @param {KupManagerClickCb} cb - The callback to remove.
|
|
@@ -6,7 +6,7 @@ import 'numeral/locales/it';
|
|
|
6
6
|
import 'numeral/locales/pl';
|
|
7
7
|
import 'numeral/locales/ru';
|
|
8
8
|
import { KupComponent } from '../../types/GenericTypes';
|
|
9
|
-
import { KupMathFormulas, KupMathLocales } from './kup-math-declarations';
|
|
9
|
+
import { KupMathFormulas, KupMathLocales, KupMathNumbers } from './kup-math-declarations';
|
|
10
10
|
/**
|
|
11
11
|
* Handles mathematical operations and number formatting/conversion.
|
|
12
12
|
* @module KupMath
|
|
@@ -15,6 +15,7 @@ export declare class KupMath {
|
|
|
15
15
|
formulas: KupMathFormulas;
|
|
16
16
|
locale: KupMathLocales;
|
|
17
17
|
managedComponents: Set<KupComponent>;
|
|
18
|
+
numbers: KupMathNumbers;
|
|
18
19
|
numeral: typeof numeral;
|
|
19
20
|
/**
|
|
20
21
|
* Initializes KupMath.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface KupTooltipAnchor extends HTMLElement {
|
|
2
|
+
kupTooltip: KupTooltipCallbacks;
|
|
3
|
+
}
|
|
4
|
+
export interface KupTooltipCallbacks {
|
|
5
|
+
enter?: (e?: PointerEvent, anchor?: HTMLElement) => void;
|
|
6
|
+
over?: (e?: PointerEvent, anchor?: HTMLElement) => void;
|
|
7
|
+
leave?: (e?: PointerEvent, anchor?: HTMLElement) => void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { KupDynamicPositionAnchor } from '../kup-dynamic-position/kup-dynamic-position-declarations';
|
|
2
|
+
import { KupTooltipAnchor, KupTooltipCallbacks } from './kup-tooltip-declarations';
|
|
3
|
+
/**
|
|
4
|
+
* Handles application-wide tooltip using card component.
|
|
5
|
+
* @module KupTooltip
|
|
6
|
+
*/
|
|
7
|
+
export declare class KupTooltip {
|
|
8
|
+
#private;
|
|
9
|
+
currentAnchor: KupTooltipAnchor;
|
|
10
|
+
delay: number;
|
|
11
|
+
element: HTMLKupCardElement;
|
|
12
|
+
fCellCallbacks: KupTooltipCallbacks;
|
|
13
|
+
managedElements: Set<KupTooltipAnchor>;
|
|
14
|
+
timeout: ReturnType<typeof setTimeout>;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes KupTooltip.
|
|
17
|
+
*/
|
|
18
|
+
constructor(delay?: number, fCellCallbacks?: KupTooltipCallbacks);
|
|
19
|
+
/**
|
|
20
|
+
* Destroys the tooltip.
|
|
21
|
+
*/
|
|
22
|
+
destroy(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Hides the tooltip.
|
|
25
|
+
*/
|
|
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
|
+
*/
|
|
32
|
+
show(anchor?: KupDynamicPositionAnchor, options?: Partial<HTMLKupCardElement>): void;
|
|
33
|
+
/**
|
|
34
|
+
* Returns whether an element was previously registered or not.
|
|
35
|
+
* @param {KupTooltipAnchor} element - Element to test.
|
|
36
|
+
* @returns {boolean} True if the element was registered.
|
|
37
|
+
*/
|
|
38
|
+
isRegistered(element: KupTooltipAnchor): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Registers an HTMLElement as KupTooltipAnchor, triggering callback invocation on mouse over.
|
|
41
|
+
* @param {KupTooltipAnchor} element - The HTML element to be registered.
|
|
42
|
+
* @param {KupTooltipCallbacks} options - Optional callbacks.
|
|
43
|
+
*/
|
|
44
|
+
register(element: KupTooltipAnchor, options?: KupTooltipCallbacks): void;
|
|
45
|
+
/**
|
|
46
|
+
* Unregisters an HTMLElement, preventing its attached callback from being invoked.
|
|
47
|
+
*
|
|
48
|
+
* @param {KupTooltipAnchor} element - - The HTML element to be unregistered.
|
|
49
|
+
*/
|
|
50
|
+
unregister(element: KupTooltipAnchor): void;
|
|
51
|
+
}
|
|
@@ -80,14 +80,17 @@ export declare enum KupTagNames {
|
|
|
80
80
|
DRAWER = "KUP-DRAWER",
|
|
81
81
|
DROPDOWN_BUTTON = "KUP-DROPDOWN-BUTTON",
|
|
82
82
|
FIELD = "KUP-FIELD",
|
|
83
|
+
FORM_EDITOR = "KUP-FORM-EDITOR",
|
|
83
84
|
GAUGE = "KUP-GAUGE",
|
|
84
85
|
GRID = "KUP-GRID",
|
|
85
86
|
IFRAME = "KUP-IFRAME",
|
|
86
87
|
IMAGE = "KUP-IMAGE",
|
|
88
|
+
IMAGE_LIST = "KUP-IMAGE-LIST",
|
|
87
89
|
LAZY = "KUP-LAZY",
|
|
88
90
|
LIST = "KUP-LIST",
|
|
89
91
|
MAGIC_BOX = "KUP-MAGIC-BOX",
|
|
90
92
|
NAV_BAR = "KUP-NAV-BAR",
|
|
93
|
+
NUMERIC_PICKER = "KUP-NUMERIC-PICKER",
|
|
91
94
|
PROBE = "KUP-PROBE",
|
|
92
95
|
PROGRESS_BAR = "KUP-PROGRESS-BAR",
|
|
93
96
|
QLIK = "KUP-QLIK",
|
|
@@ -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.0.0",
|
|
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.15.2",
|
|
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",
|
|
@@ -67,9 +68,9 @@
|
|
|
67
68
|
"jest": "^26.6.3",
|
|
68
69
|
"jest-cli": "^26.6.3",
|
|
69
70
|
"jest-environment-node": "^26.6.2",
|
|
70
|
-
"puppeteer": "^
|
|
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",
|