@sme.up/ketchup 4.0.0 → 4.1.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-1f89a299.js → cell-utils-841a7769.js} +2 -2
- package/dist/cjs/{f-chip-2d58c8f7.js → f-chip-b9f489ff.js} +7 -5
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-0c3e6aa7.js} +3 -4
- package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +1014 -1103
- package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
- package/dist/cjs/kup-dash-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-dash_2.cjs.entry.js +106 -62
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/kup-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +21 -30
- package/dist/cjs/{kup-manager-59ad8bdc.js → kup-manager-828bd598.js} +599 -519
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/{kup-objects-59ea949c.js → kup-objects-89f38d6a.js} +7 -29
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-2af73538.js → utils-5192ee20.js} +1 -1
- package/dist/collection/assets/data-table.js +1 -0
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/components/kup-accordion/kup-accordion.js +14 -14
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +9 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +20 -23
- package/dist/collection/components/kup-badge/kup-badge.js +12 -12
- package/dist/collection/components/kup-box/kup-box.css +30 -30
- package/dist/collection/components/kup-box/kup-box.js +181 -171
- package/dist/collection/components/kup-button/kup-button.css +8 -5
- package/dist/collection/components/kup-button/kup-button.js +26 -26
- package/dist/collection/components/kup-button-list/kup-button-list.css +8 -5
- package/dist/collection/components/kup-button-list/kup-button-list.js +18 -18
- package/dist/collection/components/kup-calendar/kup-calendar.css +8 -6
- package/dist/collection/components/kup-calendar/kup-calendar.js +30 -30
- package/dist/collection/components/kup-card/kup-card-helper.js +2 -1
- package/dist/collection/components/kup-card/kup-card.css +20 -1
- package/dist/collection/components/kup-card/kup-card.js +26 -26
- package/dist/collection/components/kup-chart/kup-chart.js +40 -40
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +18 -18
- package/dist/collection/components/kup-chip/kup-chip.css +0 -1
- package/dist/collection/components/kup-chip/kup-chip.js +14 -14
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +6 -9
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +32 -40
- package/dist/collection/components/kup-combobox/kup-combobox.css +9 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +20 -23
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +2 -2
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +25 -46
- package/dist/collection/components/kup-data-table/kup-data-table.css +83 -87
- package/dist/collection/components/kup-data-table/kup-data-table.js +364 -531
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +2373 -5
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +72 -104
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -8
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +13 -5
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +38 -43
- package/dist/collection/components/kup-field/kup-field.js +20 -20
- package/dist/collection/components/kup-gauge/kup-gauge.js +16 -16
- package/dist/collection/components/kup-grid/kup-grid.css +2 -1
- package/dist/collection/components/kup-grid/kup-grid.js +12 -12
- package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
- package/dist/collection/components/kup-image/kup-image.js +24 -24
- package/dist/collection/components/kup-lazy/kup-lazy.js +16 -16
- package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
- package/dist/collection/components/kup-list/kup-list.css +4 -0
- package/dist/collection/components/kup-list/kup-list.js +38 -47
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +11 -6
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +27 -36
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +10 -10
- package/dist/collection/components/kup-paginator/kup-paginator.css +8 -5
- package/dist/collection/components/kup-probe/kup-probe.js +8 -8
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +20 -20
- package/dist/collection/components/kup-radio/kup-radio.js +16 -16
- package/dist/collection/components/kup-rating/kup-rating.js +14 -14
- package/dist/collection/components/kup-spinner/kup-spinner.js +22 -22
- package/dist/collection/components/kup-switch/kup-switch.js +16 -16
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +12 -12
- package/dist/collection/components/kup-text-field/kup-text-field.js +48 -48
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +2376 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +50 -83
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +18 -12
- package/dist/collection/components/kup-tree/kup-tree.css +10 -10
- package/dist/collection/components/kup-tree/kup-tree.js +96 -66
- package/dist/collection/f-components/f-button/f-button.js +4 -2
- package/dist/collection/f-components/f-image/f-image.js +1 -2
- package/dist/collection/f-components/f-text-field/f-text-field.js +8 -6
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +11 -3
- package/dist/collection/utils/kup-debug/kup-debug.js +25 -27
- package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +3 -5
- package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
- package/dist/collection/utils/kup-interact/kup-interact.js +362 -0
- package/dist/collection/utils/kup-manager/kup-manager.js +18 -6
- package/dist/collection/utils/kup-objects/kup-objects.js +7 -29
- package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
- package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
- package/dist/esm/{cell-utils-cb612463.js → cell-utils-de384721.js} +2 -2
- package/dist/esm/{f-chip-125d5dd6.js → f-chip-d585b63e.js} +7 -5
- package/dist/esm/{f-image-68b34fab.js → f-image-23548d00.js} +3 -4
- package/dist/esm/{index-bf2824a6.js → index-51694018.js} +73 -64
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_29.entry.js +818 -907
- package/dist/esm/kup-calendar.entry.js +8 -8
- package/dist/esm/kup-dash-list.entry.js +6 -6
- package/dist/esm/kup-dash_2.entry.js +106 -62
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/kup-field.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +21 -30
- package/dist/esm/{kup-manager-e7d7b353.js → kup-manager-583f2815.js} +595 -520
- package/dist/esm/kup-nav-bar.entry.js +4 -4
- package/dist/esm/{kup-objects-d38d2fa2.js → kup-objects-5968aefd.js} +7 -29
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-13dd007a.js → utils-a1dd14c3.js} +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-64ea7e37.entry.js → p-0e91c9c9.entry.js} +1 -1
- package/dist/ketchup/{p-0320e24e.entry.js → p-0f2b6a24.entry.js} +1 -1
- package/dist/ketchup/{p-a5424073.js → p-361d9431.js} +1 -1
- package/dist/ketchup/p-565785ce.js +1 -0
- package/dist/ketchup/{p-7896031c.entry.js → p-57eb45ac.entry.js} +1 -1
- package/dist/ketchup/{p-08c7a092.js → p-6f5d8830.js} +1 -1
- package/dist/ketchup/{p-9c858a38.entry.js → p-802d8906.entry.js} +1 -1
- package/dist/ketchup/p-850b9e67.entry.js +1 -0
- package/dist/ketchup/{p-a12a5690.entry.js → p-88a5787a.entry.js} +1 -1
- package/dist/ketchup/p-8ed2b7bf.entry.js +1 -0
- package/dist/ketchup/{p-ee89966f.entry.js → p-90a0c2b7.entry.js} +2 -2
- package/dist/ketchup/{p-876da4c2.entry.js → p-94c0dd8c.entry.js} +1 -1
- package/dist/ketchup/p-9ec3c377.entry.js +45 -0
- package/dist/ketchup/p-b30f34d8.js +1 -0
- package/dist/ketchup/p-b6a47512.entry.js +1 -0
- package/dist/ketchup/p-bfaf8a82.js +1 -0
- package/dist/ketchup/{p-940ab57a.entry.js → p-ca0ebdcc.entry.js} +1 -1
- package/dist/ketchup/p-d5a3a4ed.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-ee7b190c.js} +1 -1
- package/dist/ketchup/{p-b0724035.entry.js → p-f6b54fa1.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +11 -2
- package/dist/types/components/kup-box/kup-box.d.ts +8 -4
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +0 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +12 -4
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +0 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +16 -49
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -14
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +0 -4
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
- package/dist/types/components/kup-list/kup-list.d.ts +2 -3
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +7 -11
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
- package/dist/types/components/kup-tree/kup-tree.d.ts +3 -0
- package/dist/types/components.d.ts +84 -121
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
- package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
- package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
- package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +21 -4
- package/dist/types/utils/kup-manager/kup-manager.d.ts +2 -2
- package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
- package/package.json +3 -3
- package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
- package/dist/cjs/kup-grid.cjs.entry.js +0 -130
- package/dist/collection/assets/images/drag-multiple.js +0 -1
- package/dist/collection/components/kup-layout/kup-layout.css +0 -53
- package/dist/collection/components/kup-layout/kup-layout.js +0 -156
- package/dist/collection/utils/drag-and-drop.js +0 -109
- package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
- package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
- package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
- package/dist/esm/kup-grid.entry.js +0 -126
- package/dist/ketchup/p-00fe1e3e.js +0 -1
- package/dist/ketchup/p-1165f4ea.entry.js +0 -1
- package/dist/ketchup/p-170d3cba.js +0 -1
- package/dist/ketchup/p-18cb3ba3.js +0 -1
- package/dist/ketchup/p-23541a97.entry.js +0 -45
- package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
- package/dist/ketchup/p-b14e77f0.js +0 -1
- package/dist/ketchup/p-d24cfdea.entry.js +0 -1
- package/dist/ketchup/p-fcd2fd8f.js +0 -1
- package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
- package/dist/types/assets/images/drag-multiple.d.ts +0 -1
- package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
- package/dist/types/utils/drag-and-drop.d.ts +0 -53
- package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
- package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as i}from"./p-
|
|
1
|
+
import{r as s,c as t,h as i}from"./p-b30f34d8.js";import{b as l}from"./p-6f5d8830.js";import{w as e,x as h}from"./p-ee7b190c.js";import"./p-361d9431.js";let o=class{constructor(i){s(this,i),this.dashClick=t(this,"kup-dash-click",7),this.layout="1",this.fontsize="",this.active=!1,this.columnsNumber=1,this.fullWidth=!0,this.horizontal=!1,this.iconColor=[],this.valueColor=[],this.textColor=[]}render(){let s=[];var t=0;return this.data.rows.forEach((o=>{let d="",r="",a="",c="",n="",v="",p={color:this.textColor[t]},u={color:this.valueColor[t]};if(d=this.data.columns[0]?i("div",{slot:"icon"},i("icon",{class:o.cells[this.data.columns[0].name].obj.k,style:{color:this.iconColor[t]}})):i("div",{slot:"icon"}),r=this.data.columns[1]?i("div",{slot:"unit",style:u},o.cells[this.data.columns[1].name].obj.k," "):i("div",{slot:"unit"}),a=this.data.columns[2]?i("div",{slot:"descr",style:p},o.cells[this.data.columns[2].name].obj.k):i("div",{slot:"descr"}),this.data.columns[3]){let s=this.data.columns[3];s.obj=o.cells[this.data.columns[3].name].obj;let t=l(s,o.cells[this.data.columns[3].name]);c=i("div",{slot:"value",style:u},t)}else c=i("div",{slot:"value"});if(this.data.columns[5]){let s=this.data.columns[5];s.obj=o.cells[this.data.columns[5].name].obj;let t=l(s,o.cells[this.data.columns[5].name]);this.data.columns[6]&&o.cells[this.data.columns[6].name].obj.k&&(t+=e(h())),n=i("div",{slot:"value-int",style:u},t)}else n=i("div",{slot:"value-int"});v=this.data.columns[6]?i("div",{slot:"value-dec",style:u},o.cells[this.data.columns[6].name].obj.k):i("div",{slot:"value-dec"});const m=i("kup-dash",{layout:this.layout,fontsize:this.fontsize,index:t,active:this.active,slot:String(t)},d,r,a,c,n,v);s.push(m),t++})),i("div",null,i("link",{href:"https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css",rel:"stylesheet",type:"text/css"}),i("kup-grid",{columns:this.columnsNumber,singleLine:this.horizontal,class:this.fullWidth?"kup-full-width":""},s))}};o.style=".horizontal{display:inline-block;min-width:300px;max-width:100%;overflow:visible;white-space:nowrap;border:solid;border-width:1px;margin:2px}";export{o as kup_dash_list}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cell, Column, RowAction } from '../kup-data-table/kup-data-table-declarations';
|
|
2
2
|
import { KupBadge } from '../kup-badge/kup-badge';
|
|
3
|
-
import {
|
|
3
|
+
import { Identifiable, KupEventPayload } from '../../types/GenericTypes';
|
|
4
4
|
/**
|
|
5
5
|
* Props of the kup-box component.
|
|
6
6
|
* Used to export every prop in an object.
|
|
@@ -86,6 +86,15 @@ export interface KupBoxKanban {
|
|
|
86
86
|
labels?: Array<Array<string>>;
|
|
87
87
|
size?: string;
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Contains all the data of an event.
|
|
91
|
+
*/
|
|
92
|
+
export interface KupBoxEventHandlerDetails {
|
|
93
|
+
boxObject: HTMLElement;
|
|
94
|
+
cell: Cell;
|
|
95
|
+
column: Column;
|
|
96
|
+
row: KupBoxRow;
|
|
97
|
+
}
|
|
89
98
|
export interface KupBoxClickEventPayload extends KupEventPayload {
|
|
90
99
|
row: KupBoxRow;
|
|
91
100
|
column?: string;
|
|
@@ -102,5 +111,5 @@ export interface KupBoxRowActionClickEventPayload extends KupEventPayload {
|
|
|
102
111
|
index: number;
|
|
103
112
|
}
|
|
104
113
|
export interface KupBoxContextMenuEventPayload extends KupEventPayload {
|
|
105
|
-
details:
|
|
114
|
+
details: KupBoxEventHandlerDetails;
|
|
106
115
|
}
|
|
@@ -176,6 +176,12 @@ export declare class KupBox {
|
|
|
176
176
|
private globalFilterTimeout;
|
|
177
177
|
private boxContainer;
|
|
178
178
|
private iconPaths;
|
|
179
|
+
private sectionRef;
|
|
180
|
+
private rowsRefs;
|
|
181
|
+
private hold;
|
|
182
|
+
private interactableDrag;
|
|
183
|
+
private interactableDrop;
|
|
184
|
+
private interactableTouch;
|
|
179
185
|
/**
|
|
180
186
|
* Triggered when a box is clicked
|
|
181
187
|
*/
|
|
@@ -249,10 +255,6 @@ export declare class KupBox {
|
|
|
249
255
|
private toggleSectionExpand;
|
|
250
256
|
private onRowAction;
|
|
251
257
|
private onRowActionClick;
|
|
252
|
-
private onSectionDragOver;
|
|
253
|
-
private onSectionDragLeave;
|
|
254
|
-
private addMultiSelectDragImageToEvent;
|
|
255
|
-
private searchParentWithClass;
|
|
256
258
|
/**
|
|
257
259
|
* see onDocumentClick in kup-combo
|
|
258
260
|
*/
|
|
@@ -276,6 +278,8 @@ export declare class KupBox {
|
|
|
276
278
|
};
|
|
277
279
|
};
|
|
278
280
|
renderTooltip(): any;
|
|
281
|
+
didLoadInteractables(): void;
|
|
282
|
+
didRenderInteractables(): void;
|
|
279
283
|
componentWillLoad(): void;
|
|
280
284
|
componentDidLoad(): void;
|
|
281
285
|
componentWillRender(): void;
|
|
@@ -35,6 +35,7 @@ export declare enum KupDataTableProps {
|
|
|
35
35
|
pageSelected = "Current selected page set on component load",
|
|
36
36
|
paginatorPos = "Sets the position of the paginator. Available positions: top, bottom or both.",
|
|
37
37
|
removableColumns = "Sets the possibility to remove the selected column.",
|
|
38
|
+
resizableColumns = "Gives the possibility to resize columns by dragging on their right edge.",
|
|
38
39
|
rowActions = "Sets the actions of the rows.",
|
|
39
40
|
rowsPerPage = "Sets the number of rows per page to display.",
|
|
40
41
|
scrollOnHover = "Activates the scroll on hover function.",
|
|
@@ -81,9 +82,14 @@ export interface Cell {
|
|
|
81
82
|
k: string;
|
|
82
83
|
};
|
|
83
84
|
shape?: string;
|
|
85
|
+
span?: KupDatatableCellSpan;
|
|
84
86
|
style?: GenericMap;
|
|
85
87
|
title?: string;
|
|
86
88
|
}
|
|
89
|
+
export interface KupDatatableCellSpan {
|
|
90
|
+
col: number;
|
|
91
|
+
row: number;
|
|
92
|
+
}
|
|
87
93
|
/**
|
|
88
94
|
* Information about the cell, displayed before the content.
|
|
89
95
|
*
|
|
@@ -118,6 +124,8 @@ export interface Column {
|
|
|
118
124
|
valuesForFilter?: string[];
|
|
119
125
|
isKey?: boolean;
|
|
120
126
|
children?: ColumnChild[];
|
|
127
|
+
cssClass?: string;
|
|
128
|
+
style?: GenericMap;
|
|
121
129
|
}
|
|
122
130
|
export interface ColumnChild {
|
|
123
131
|
name: string;
|
|
@@ -249,16 +257,16 @@ export declare const totalMenuOpenID = "TOMEOPID";
|
|
|
249
257
|
/**
|
|
250
258
|
* Contains all the data of an event.
|
|
251
259
|
*/
|
|
252
|
-
export interface
|
|
260
|
+
export interface KupDatatableEventHandlerDetails {
|
|
253
261
|
area: string;
|
|
254
262
|
cell: Cell;
|
|
255
263
|
column: Column;
|
|
256
264
|
filterRemove: HTMLSpanElement;
|
|
257
265
|
isGroupRow: boolean;
|
|
258
266
|
row: Row;
|
|
259
|
-
td:
|
|
267
|
+
td: HTMLElement;
|
|
260
268
|
textfield: HTMLElement;
|
|
261
|
-
th:
|
|
269
|
+
th: HTMLElement;
|
|
262
270
|
tr: HTMLTableRowElement;
|
|
263
271
|
}
|
|
264
272
|
/**
|
|
@@ -288,7 +296,7 @@ export interface KupDatatableCellUpdateEventPayload extends KupEventPayload {
|
|
|
288
296
|
event: any;
|
|
289
297
|
}
|
|
290
298
|
export interface KupDatatableClickEventPayload extends KupEventPayload {
|
|
291
|
-
details:
|
|
299
|
+
details: KupDatatableEventHandlerDetails;
|
|
292
300
|
}
|
|
293
301
|
export interface KupDatatableColumnMenuEventPayload extends KupEventPayload {
|
|
294
302
|
card: HTMLKupCardElement;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Row, SortObject, Cell, GroupObject, TotalMode, TotalsMap, Column } from './kup-data-table-declarations';
|
|
2
|
-
import { DropHandlers } from '../../utils/drag-and-drop';
|
|
3
2
|
import { GenericFilter } from '../../utils/filters/filters-declarations';
|
|
4
3
|
import { FiltersColumnMenu } from '../../utils/filters/filters-column-menu';
|
|
5
4
|
import { FiltersRows } from '../../utils/filters/filters-rows';
|
|
@@ -39,4 +38,3 @@ export declare function styleHasBorderRadius(cell: Cell): boolean;
|
|
|
39
38
|
* @returns {boolean} - true if writingMode is present, false otherwise.
|
|
40
39
|
*/
|
|
41
40
|
export declare function styleHasWritingMode(cell: Cell): boolean;
|
|
42
|
-
export declare const dropHandlersCell: DropHandlers;
|
|
@@ -141,6 +141,10 @@ export declare class KupDataTable {
|
|
|
141
141
|
* Sets the possibility to remove the selected column.
|
|
142
142
|
*/
|
|
143
143
|
removableColumns: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Gives the possibility to resize columns by dragging on their right edge.
|
|
146
|
+
*/
|
|
147
|
+
resizableColumns: boolean;
|
|
144
148
|
/**
|
|
145
149
|
* Sets the actions of the rows.
|
|
146
150
|
*/
|
|
@@ -250,10 +254,6 @@ export declare class KupDataTable {
|
|
|
250
254
|
* name of the column with the opened total menu
|
|
251
255
|
*/
|
|
252
256
|
private openedTotalMenu;
|
|
253
|
-
/**
|
|
254
|
-
* name of the column with the opened group menu
|
|
255
|
-
*/
|
|
256
|
-
private openedGroupMenu;
|
|
257
257
|
private openedCustomSettings;
|
|
258
258
|
private fontsize;
|
|
259
259
|
/**
|
|
@@ -281,32 +281,6 @@ export declare class KupDataTable {
|
|
|
281
281
|
private renderedRows;
|
|
282
282
|
private loadMoreEventCounter;
|
|
283
283
|
private loadMoreEventPreviousQuantity;
|
|
284
|
-
/**
|
|
285
|
-
* Internal not reactive state used to keep track if a column is being dragged.
|
|
286
|
-
* @private
|
|
287
|
-
*/
|
|
288
|
-
private columnsAreBeingDragged;
|
|
289
|
-
/**
|
|
290
|
-
* Attribute to set when a column is being dragged on the whole thead element
|
|
291
|
-
* @const
|
|
292
|
-
* @default 'columns-dragging'
|
|
293
|
-
* @private
|
|
294
|
-
*/
|
|
295
|
-
private dragFlagAttribute;
|
|
296
|
-
/**
|
|
297
|
-
* The string representing the drag over attribute
|
|
298
|
-
* @const
|
|
299
|
-
* @default 'drag-over'
|
|
300
|
-
* @private
|
|
301
|
-
*/
|
|
302
|
-
private dragOverAttribute;
|
|
303
|
-
/**
|
|
304
|
-
* The string representing the drag starter attribute to set onto the element
|
|
305
|
-
* @const
|
|
306
|
-
* @default 'drag-starter'
|
|
307
|
-
* @private
|
|
308
|
-
*/
|
|
309
|
-
private dragStarterAttribute;
|
|
310
284
|
/**
|
|
311
285
|
* Reference for the thead element
|
|
312
286
|
* @private
|
|
@@ -340,8 +314,17 @@ export declare class KupDataTable {
|
|
|
340
314
|
private totalMenuCoords;
|
|
341
315
|
columnFilterTimeout: number;
|
|
342
316
|
private clickTimeout;
|
|
317
|
+
private thRefs;
|
|
343
318
|
private rowsRefs;
|
|
344
319
|
private oldWidth;
|
|
320
|
+
private hold;
|
|
321
|
+
private interactableDrag;
|
|
322
|
+
private interactableDrop;
|
|
323
|
+
private interactableResize;
|
|
324
|
+
private interactableTouch;
|
|
325
|
+
private dropareaRef;
|
|
326
|
+
private removeDropareaRef;
|
|
327
|
+
private groupsDropareaRef;
|
|
345
328
|
/**
|
|
346
329
|
* Used to prevent too many resizes callbacks at once.
|
|
347
330
|
*/
|
|
@@ -455,8 +438,10 @@ export declare class KupDataTable {
|
|
|
455
438
|
private stickyHeaderPosition;
|
|
456
439
|
private updateStickyHeaderSize;
|
|
457
440
|
private setObserver;
|
|
458
|
-
private
|
|
441
|
+
private didLoadInteractables;
|
|
442
|
+
private didRenderInteractables;
|
|
459
443
|
private didLoadObservers;
|
|
444
|
+
private didRenderObservers;
|
|
460
445
|
private didLoadEventHandling;
|
|
461
446
|
private scrollStickyHeader;
|
|
462
447
|
private checkScrollOnHover;
|
|
@@ -492,7 +477,6 @@ export declare class KupDataTable {
|
|
|
492
477
|
getGroupByName(column: string): GroupObject;
|
|
493
478
|
getColumnValues(column: Column): ValueDisplayedValue[];
|
|
494
479
|
getRows(): Array<Row>;
|
|
495
|
-
private addMultiSelectDragImageToEvent;
|
|
496
480
|
private initRows;
|
|
497
481
|
private filterRows;
|
|
498
482
|
private isGrouping;
|
|
@@ -528,17 +512,7 @@ export declare class KupDataTable {
|
|
|
528
512
|
private openTotalMenu;
|
|
529
513
|
private closeTotalMenu;
|
|
530
514
|
private closeMenuAndTooltip;
|
|
531
|
-
private isOpenedTotalMenu;
|
|
532
515
|
private isOpenedTotalMenuForColumn;
|
|
533
|
-
private isOpenedGroupMenu;
|
|
534
|
-
private isOpenedGroupMenuForColumn;
|
|
535
|
-
/**
|
|
536
|
-
* Type guard needed to be sure that an object returned from composePath() is an HTMLElement with classes
|
|
537
|
-
* @param node
|
|
538
|
-
*/
|
|
539
|
-
private isHTMLElementFromEventTarget;
|
|
540
|
-
private hasOverlayActions;
|
|
541
|
-
private onHeaderCellContextMenuClose;
|
|
542
516
|
private onJ4btnClicked;
|
|
543
517
|
private groupRows;
|
|
544
518
|
getInternalState(): Promise<{
|
|
@@ -607,13 +581,7 @@ export declare class KupDataTable {
|
|
|
607
581
|
renderCustomizePanel(): any;
|
|
608
582
|
private columnRemoveArea;
|
|
609
583
|
private columnGroupArea;
|
|
610
|
-
private startDynamicPositioning;
|
|
611
|
-
private stopDynamicPositioning;
|
|
612
|
-
private getElementById;
|
|
613
|
-
private getThElement;
|
|
614
584
|
private hideShowColumnDropArea;
|
|
615
|
-
private hideShowColumnRemoveDropArea;
|
|
616
|
-
private hideShowColumnGroupDropArea;
|
|
617
585
|
private handleColumnRemove;
|
|
618
586
|
private handleColumnGroup;
|
|
619
587
|
private transcodeItem;
|
|
@@ -626,7 +594,6 @@ export declare class KupDataTable {
|
|
|
626
594
|
private DENSITY_CODES;
|
|
627
595
|
private DENSITY_DECODES;
|
|
628
596
|
private DENSITY_ICONS;
|
|
629
|
-
private getDensityDecodeFromCode;
|
|
630
597
|
private getDensityCodeFromDecode;
|
|
631
598
|
private renderDensityPanel;
|
|
632
599
|
private GRID_CODES;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
|
+
import { EventEmitter, VNode } from '../../stencil-public-runtime';
|
|
2
2
|
import type { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
3
3
|
import { KupDatePickerEventPayload } from './kup-date-picker-declarations';
|
|
4
4
|
export declare class KupDatePicker {
|
|
@@ -50,16 +50,16 @@ export declare class KupDatePicker {
|
|
|
50
50
|
kupItemClick: EventEmitter<KupDatePickerEventPayload>;
|
|
51
51
|
kupTextFieldSubmit: EventEmitter<KupDatePickerEventPayload>;
|
|
52
52
|
kupClearIconClick: EventEmitter<KupEventPayload>;
|
|
53
|
-
onKupDatePickerItemClick(
|
|
54
|
-
onKupClearIconClick(
|
|
55
|
-
onKupDatePickerMonthYearItemClick(
|
|
53
|
+
onKupDatePickerItemClick(value: string): void;
|
|
54
|
+
onKupClearIconClick(): void;
|
|
55
|
+
onKupDatePickerMonthYearItemClick(value: string): void;
|
|
56
56
|
onKupBlur(): void;
|
|
57
|
-
onKupChange(e:
|
|
58
|
-
onKupClick(
|
|
59
|
-
onKupFocus(
|
|
60
|
-
onKupInput(e:
|
|
61
|
-
onkupTextFieldSubmit(e:
|
|
62
|
-
onKupIconClick(
|
|
57
|
+
onKupChange(e: InputEvent): void;
|
|
58
|
+
onKupClick(): void;
|
|
59
|
+
onKupFocus(): void;
|
|
60
|
+
onKupInput(e: InputEvent): void;
|
|
61
|
+
onkupTextFieldSubmit(e: KeyboardEvent): void;
|
|
62
|
+
onKupIconClick(): void;
|
|
63
63
|
listenKeyup(e: KeyboardEvent): void;
|
|
64
64
|
watchFirstDayIndex(): void;
|
|
65
65
|
/**
|
|
@@ -90,14 +90,12 @@ export declare class KupDatePicker {
|
|
|
90
90
|
refreshPickerComponentValue(value: string): void;
|
|
91
91
|
setPickerValueSelected(newValue?: string): void;
|
|
92
92
|
getPickerValueSelected(): string;
|
|
93
|
-
setTextFieldInitalValue(value: string): void;
|
|
94
93
|
getValueForPickerComponent(): string;
|
|
95
94
|
openPicker(): void;
|
|
96
95
|
closePicker(): void;
|
|
97
96
|
isPickerOpened(): boolean;
|
|
98
97
|
getTextFieldId(): string;
|
|
99
|
-
|
|
100
|
-
prepTextfield(initialValue: string): any;
|
|
98
|
+
prepTextfield(initialValue: string): VNode;
|
|
101
99
|
getInitEndYear(curYear: number): {
|
|
102
100
|
initYear: number;
|
|
103
101
|
endYear: number;
|
|
@@ -112,7 +110,6 @@ export declare class KupDatePicker {
|
|
|
112
110
|
private prevPage;
|
|
113
111
|
private nextPage;
|
|
114
112
|
getDateForOutput(): string;
|
|
115
|
-
recalcPosition(): void;
|
|
116
113
|
componentWillLoad(): void;
|
|
117
114
|
componentDidLoad(): void;
|
|
118
115
|
componentWillRender(): void;
|
|
@@ -12,7 +12,7 @@ export declare enum KupListProps {
|
|
|
12
12
|
filter = "Keeps string for filtering elements when filter mode is active",
|
|
13
13
|
hideText = "Hides rows' text, ideally to display a list of icons only.",
|
|
14
14
|
isMenu = "Defines whether the list is a menu or not.",
|
|
15
|
-
keyboardNavigation = "When true, enables items' navigation through keys.
|
|
15
|
+
keyboardNavigation = "When true, enables items' navigation through arrow keys.",
|
|
16
16
|
menuVisible = "Sets the status of the menu, when false it's hidden otherwise it's visible.",
|
|
17
17
|
roleType = "Defines the type of selection. Values accepted: listbox, radiogroup or group.",
|
|
18
18
|
selectable = "Defines whether items are selectable or not.",
|
|
@@ -49,9 +49,8 @@ export declare class KupList {
|
|
|
49
49
|
*/
|
|
50
50
|
isMenu: boolean;
|
|
51
51
|
/**
|
|
52
|
-
* When true, enables items' navigation through keys.
|
|
53
|
-
*
|
|
54
|
-
* @default undefined
|
|
52
|
+
* When true, enables items' navigation through arrow keys.
|
|
53
|
+
* @default true
|
|
55
54
|
*/
|
|
56
55
|
keyboardNavigation: boolean;
|
|
57
56
|
/**
|
|
@@ -29,6 +29,7 @@ export declare class KupMagicBox {
|
|
|
29
29
|
* Element which enables the drag on move feature.
|
|
30
30
|
*/
|
|
31
31
|
private dragHandler;
|
|
32
|
+
private wrapperRef;
|
|
32
33
|
/**
|
|
33
34
|
* Used to retrieve component's props values.
|
|
34
35
|
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
@@ -70,15 +70,14 @@ export declare class KupTimePicker {
|
|
|
70
70
|
kupTextFieldSubmit: EventEmitter<KupTimePickerEventPayload>;
|
|
71
71
|
kupClearIconClick: EventEmitter<KupEventPayload>;
|
|
72
72
|
onKupTimePickerItemClick(e: CustomEvent, value?: string): void;
|
|
73
|
-
onKupClearIconClick(
|
|
73
|
+
onKupClearIconClick(): void;
|
|
74
74
|
onKupBlur(): void;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
onKupIconClick(e: UIEvent): void;
|
|
75
|
+
onKupChange(e: InputEvent): void;
|
|
76
|
+
onKupClick(): void;
|
|
77
|
+
onKupFocus(): void;
|
|
78
|
+
onKupInput(e: InputEvent): void;
|
|
79
|
+
onKupTextFieldSubmit(e: KeyboardEvent): void;
|
|
80
|
+
onKupIconClick(): void;
|
|
82
81
|
listenKeyup(e: KeyboardEvent): void;
|
|
83
82
|
watchTimeMinutesStep(): void;
|
|
84
83
|
/**
|
|
@@ -112,14 +111,12 @@ export declare class KupTimePicker {
|
|
|
112
111
|
refreshPickerValue(eventDetailValue: string, eventToRaise: EventEmitter): void;
|
|
113
112
|
setPickerValueSelected(newValue?: string): void;
|
|
114
113
|
getPickerValueSelected(): string;
|
|
115
|
-
setTextFieldInitalValue(value: string): void;
|
|
116
114
|
getValueForPickerComponent(): string;
|
|
117
115
|
openPicker(): void;
|
|
118
116
|
closePicker(): void;
|
|
119
117
|
isPickerOpened(): boolean;
|
|
120
118
|
getTextFieldId(): string;
|
|
121
119
|
getPickerElId(): string;
|
|
122
|
-
prepTimeTextfield(): any;
|
|
123
120
|
prepTextfield(initialValue: string): any;
|
|
124
121
|
isRelatedTargetInThisComponent(e: any): boolean;
|
|
125
122
|
private setTimeFromClock;
|
|
@@ -131,7 +128,6 @@ export declare class KupTimePicker {
|
|
|
131
128
|
prepTimePicker(): any;
|
|
132
129
|
private createTimeListData;
|
|
133
130
|
getTimeForOutput(): string;
|
|
134
|
-
recalcPosition(): void;
|
|
135
131
|
componentWillLoad(): void;
|
|
136
132
|
componentDidLoad(): void;
|
|
137
133
|
componentWillRender(): void;
|
|
@@ -78,14 +78,14 @@ export declare const treeMainColumnName = "TREE_COLUMN";
|
|
|
78
78
|
/**
|
|
79
79
|
* Contains all the data of an event.
|
|
80
80
|
*/
|
|
81
|
-
export interface
|
|
81
|
+
export interface KupTreeEventHandlerDetails {
|
|
82
82
|
area: string;
|
|
83
83
|
cell: Cell;
|
|
84
84
|
column: Column;
|
|
85
85
|
filterRemove: HTMLSpanElement;
|
|
86
86
|
row: Row;
|
|
87
|
-
td:
|
|
88
|
-
th:
|
|
87
|
+
td: HTMLElement;
|
|
88
|
+
th: HTMLElement;
|
|
89
89
|
tr: HTMLTableRowElement;
|
|
90
90
|
}
|
|
91
91
|
export declare enum KupTreeExpansionMode {
|
|
@@ -110,7 +110,7 @@ export interface KupTreeNodeButtonClickEventPayload extends KupTreeNodeCollapseE
|
|
|
110
110
|
auto: boolean;
|
|
111
111
|
}
|
|
112
112
|
export interface KupTreeContextMenuEventPayload extends KupEventPayload {
|
|
113
|
-
details:
|
|
113
|
+
details: KupTreeEventHandlerDetails;
|
|
114
114
|
}
|
|
115
115
|
export interface KupTreeColumnMenuEventPayload extends KupEventPayload {
|
|
116
116
|
card: HTMLKupCardElement;
|
|
@@ -191,6 +191,8 @@ export declare class KupTree {
|
|
|
191
191
|
private visibleNodes;
|
|
192
192
|
private contentRefs;
|
|
193
193
|
private oldWidth;
|
|
194
|
+
private hold;
|
|
195
|
+
private interactableTouch;
|
|
194
196
|
/**
|
|
195
197
|
* Used to prevent too many resizes callbacks at once.
|
|
196
198
|
*/
|
|
@@ -365,6 +367,7 @@ export declare class KupTree {
|
|
|
365
367
|
private isOpenedTotalMenuForColumn;
|
|
366
368
|
onTotalsChange(event: any, column: any): void;
|
|
367
369
|
renderFooter(): any;
|
|
370
|
+
didLoadInteractables(): void;
|
|
368
371
|
private totalMenuPosition;
|
|
369
372
|
/**
|
|
370
373
|
* Given a TreeNode, reads through its data to compose and return the TreeNodes of the root of this TreeNode
|