@sme.up/ketchup 7.3.1 → 7.4.1
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/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +42 -1
- package/dist/cjs/kup-planner.cjs.entry.js +11688 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/echart.js +167 -0
- package/dist/collection/assets/gantt.js +0 -0
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +41 -1
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +42 -0
- package/dist/collection/components/kup-planner/kup-planner.css +489 -0
- package/dist/collection/components/kup-planner/kup-planner.js +708 -0
- package/dist/components/kup-echart2.js +42 -1
- package/dist/components/kup-planner.d.ts +11 -0
- package/dist/components/kup-planner.js +11858 -0
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-echart.entry.js +42 -1
- package/dist/esm/kup-planner.entry.js +11684 -0
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-cb6c8417.entry.js +10 -0
- package/dist/ketchup/{p-78b093e3.entry.js → p-ff11d6d0.entry.js} +3 -3
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +52 -0
- package/dist/types/components/kup-planner/kup-planner.d.ts +72 -0
- package/dist/types/components.d.ts +85 -0
- package/package.json +6 -1
|
@@ -49,7 +49,8 @@ export declare enum KupEchartTypes {
|
|
|
49
49
|
MAP = "Map",
|
|
50
50
|
PIE = "Pie",
|
|
51
51
|
SCATTER = "Scatter",
|
|
52
|
-
FUNNEL = "Funnel"
|
|
52
|
+
FUNNEL = "Funnel",
|
|
53
|
+
RADAR = "Radar"
|
|
53
54
|
}
|
|
54
55
|
export interface KupEchartClickEventPayload extends KupEventPayload {
|
|
55
56
|
column: KupDataColumn;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { GanttTask } from '@sme.up/gantt-component';
|
|
2
|
+
import { Phase } from '@sme.up/gantt-component';
|
|
3
|
+
import { GanttRow } from '@sme.up/gantt-component';
|
|
4
|
+
import { KupEventPayload } from '../../components';
|
|
5
|
+
import { KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
6
|
+
/**
|
|
7
|
+
* Props of the kup-gantt component.
|
|
8
|
+
* Used to export every prop in an object.
|
|
9
|
+
*/
|
|
10
|
+
export declare enum KupPlannerProps {
|
|
11
|
+
customStyle = "Custom style of the component.",
|
|
12
|
+
taskIdCol = "Unique task identifier",
|
|
13
|
+
taskNameCol = "Task name displayed",
|
|
14
|
+
taskDates = "Task duration, from (firstDate) to (secondDate)",
|
|
15
|
+
taskPrevDates = "Forecast task duration, from (firstDate) to (secondDate)",
|
|
16
|
+
taskColumns = "Columns containing informations displayed on the left box near the gantt",
|
|
17
|
+
phaseIdCol = "Unique phase identifier",
|
|
18
|
+
phaseNameCol = "Phase name displayed",
|
|
19
|
+
phaseDates = "Phase duration, from (firstDate) to (secondDate)",
|
|
20
|
+
phasePrevDates = "Forecast phase duration, from (firstDate) to (secondDate)",
|
|
21
|
+
phaseColumns = "Columns containing informations displayed on the left box near the gantt",
|
|
22
|
+
phaseColorCol = "Phase color in hex format",
|
|
23
|
+
phaseColParDep = "Names of the parent phases",
|
|
24
|
+
titleMess = "Message displayed",
|
|
25
|
+
data = "Dataset containg the task list"
|
|
26
|
+
}
|
|
27
|
+
export declare enum KupPlannerTaskAction {
|
|
28
|
+
onOpening = "onOpening",
|
|
29
|
+
onClosing = "onClosing"
|
|
30
|
+
}
|
|
31
|
+
export interface KupPlannerEventPayload extends KupEventPayload {
|
|
32
|
+
value: GanttRow;
|
|
33
|
+
taskAction?: KupPlannerTaskAction;
|
|
34
|
+
}
|
|
35
|
+
export interface KupPlannerGanttTask extends GanttTask {
|
|
36
|
+
taskRowId: string;
|
|
37
|
+
taskRow: KupDataRow;
|
|
38
|
+
}
|
|
39
|
+
export interface KupPlannerPhase extends Phase {
|
|
40
|
+
taskRowId: string;
|
|
41
|
+
taskRow: KupDataRow;
|
|
42
|
+
phaseRowId: string;
|
|
43
|
+
phaseRow: KupDataRow;
|
|
44
|
+
}
|
|
45
|
+
export declare class KupPlannerLastOnChangeReceived {
|
|
46
|
+
private event;
|
|
47
|
+
private dateTime;
|
|
48
|
+
private threshold;
|
|
49
|
+
constructor(event: GanttRow, threshold?: number);
|
|
50
|
+
isEquivalent(newEvent: GanttRow): boolean;
|
|
51
|
+
resetDateTime(): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { GenericObject } from '../../types/GenericTypes';
|
|
3
|
+
import { KupPlannerEventPayload, KupPlannerTaskAction } from './kup-planner-declarations';
|
|
4
|
+
import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
|
|
5
|
+
import { GanttRow, PlannerProps } from '@sme.up/gantt-component';
|
|
6
|
+
export declare class KupPlanner {
|
|
7
|
+
#private;
|
|
8
|
+
/**
|
|
9
|
+
* References the root HTML element of the component (<kup-planner>).
|
|
10
|
+
*/
|
|
11
|
+
rootElement: HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* The value of the component.
|
|
14
|
+
* @default ""
|
|
15
|
+
*/
|
|
16
|
+
plannerProps: PlannerProps;
|
|
17
|
+
/**
|
|
18
|
+
* Custom style of the component.
|
|
19
|
+
* @default ""
|
|
20
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
21
|
+
*/
|
|
22
|
+
customStyle: string;
|
|
23
|
+
data: KupDataDataset;
|
|
24
|
+
dataRaw: any;
|
|
25
|
+
phaseColorCol: string;
|
|
26
|
+
phaseColumns: string[];
|
|
27
|
+
phaseColParDep: string;
|
|
28
|
+
phaseDates: string[];
|
|
29
|
+
phaseIdCol: string;
|
|
30
|
+
phaseNameCol: string;
|
|
31
|
+
phasePrevDates: string[];
|
|
32
|
+
taskColumns: string[];
|
|
33
|
+
taskDates: string[];
|
|
34
|
+
taskIdCol: string;
|
|
35
|
+
taskNameCol: string;
|
|
36
|
+
taskPrevDates: string[];
|
|
37
|
+
titleMess: string;
|
|
38
|
+
kupClick: EventEmitter<KupPlannerEventPayload>;
|
|
39
|
+
onKupClick(event: GanttRow, taskAction?: KupPlannerTaskAction): void;
|
|
40
|
+
kupDateChange: EventEmitter<KupPlannerEventPayload>;
|
|
41
|
+
onKupDateChange(event: GanttRow): void;
|
|
42
|
+
kupReady: EventEmitter<KupPlannerEventPayload>;
|
|
43
|
+
/**
|
|
44
|
+
* Used to retrieve component's props values.
|
|
45
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
46
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
47
|
+
*/
|
|
48
|
+
getProps(descriptions?: boolean): Promise<GenericObject>;
|
|
49
|
+
/**
|
|
50
|
+
* This method is used to trigger a new render of the component.
|
|
51
|
+
*/
|
|
52
|
+
refresh(): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Sets the props to the component.
|
|
55
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
56
|
+
*/
|
|
57
|
+
setProps(props: GenericObject): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Add a list of phases to the project
|
|
60
|
+
* @param taskId
|
|
61
|
+
* @param data - Matrix which contains project phases
|
|
62
|
+
*/
|
|
63
|
+
addPhases(taskId: string, data: KupDataDataset): Promise<void>;
|
|
64
|
+
handleOnClick(nativeEvent: GanttRow): void;
|
|
65
|
+
handleOnDateChange(nativeEvent: GanttRow): void;
|
|
66
|
+
componentWillLoad(): void;
|
|
67
|
+
componentDidLoad(): void;
|
|
68
|
+
componentWillRender(): void;
|
|
69
|
+
componentDidRender(): void;
|
|
70
|
+
render(): any;
|
|
71
|
+
disconnectedCallback(): void;
|
|
72
|
+
}
|
|
@@ -43,6 +43,7 @@ import { KupImageListEventPayload } from "./components/kup-image-list/kup-image-
|
|
|
43
43
|
import { KupLazyRender } from "./components/kup-lazy/kup-lazy-declarations";
|
|
44
44
|
import { KupNavBarStyling } from "./components/kup-nav-bar/kup-nav-bar-declarations";
|
|
45
45
|
import { KupNumericPickerEventPayload } from "./components/kup-numeric-picker/kup-numeric-picker-declarations";
|
|
46
|
+
import { KupPlannerEventPayload, KupPlannerPhase } from "./components/kup-planner/kup-planner-declarations";
|
|
46
47
|
import { KupQlikGrid, QlikServer } from "./components/kup-qlik/kup-qlik-declarations";
|
|
47
48
|
import { KupRadioChangeEventPayload, KupRadioData } from "./components/kup-radio/kup-radio-declarations";
|
|
48
49
|
import { KupRatingClickEventPayload } from "./components/kup-rating/kup-rating-declarations";
|
|
@@ -88,6 +89,7 @@ export { KupImageListEventPayload } from "./components/kup-image-list/kup-image-
|
|
|
88
89
|
export { KupLazyRender } from "./components/kup-lazy/kup-lazy-declarations";
|
|
89
90
|
export { KupNavBarStyling } from "./components/kup-nav-bar/kup-nav-bar-declarations";
|
|
90
91
|
export { KupNumericPickerEventPayload } from "./components/kup-numeric-picker/kup-numeric-picker-declarations";
|
|
92
|
+
export { KupPlannerEventPayload, KupPlannerPhase } from "./components/kup-planner/kup-planner-declarations";
|
|
91
93
|
export { KupQlikGrid, QlikServer } from "./components/kup-qlik/kup-qlik-declarations";
|
|
92
94
|
export { KupRadioChangeEventPayload, KupRadioData } from "./components/kup-radio/kup-radio-declarations";
|
|
93
95
|
export { KupRatingClickEventPayload } from "./components/kup-rating/kup-rating-declarations";
|
|
@@ -2432,6 +2434,50 @@ export namespace Components {
|
|
|
2432
2434
|
*/
|
|
2433
2435
|
"threshold": number;
|
|
2434
2436
|
}
|
|
2437
|
+
interface KupPlanner {
|
|
2438
|
+
/**
|
|
2439
|
+
* Add a list of phases to the project
|
|
2440
|
+
* @param taskId
|
|
2441
|
+
* @param data - Matrix which contains project phases
|
|
2442
|
+
*/
|
|
2443
|
+
"addPhases": (taskId: string, data: KupDataDataset) => Promise<void>;
|
|
2444
|
+
/**
|
|
2445
|
+
* Custom style of the component.
|
|
2446
|
+
* @default ""
|
|
2447
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
2448
|
+
*/
|
|
2449
|
+
"customStyle": string;
|
|
2450
|
+
"data": KupDataDataset;
|
|
2451
|
+
"dataRaw": any;
|
|
2452
|
+
/**
|
|
2453
|
+
* Used to retrieve component's props values.
|
|
2454
|
+
* @param descriptions - When provided and true, the result will be the list of props with their description.
|
|
2455
|
+
* @returns List of props as object, each key will be a prop.
|
|
2456
|
+
*/
|
|
2457
|
+
"getProps": (descriptions?: boolean) => Promise<GenericObject>;
|
|
2458
|
+
"phaseColParDep": string;
|
|
2459
|
+
"phaseColorCol": string;
|
|
2460
|
+
"phaseColumns": string[];
|
|
2461
|
+
"phaseDates": string[];
|
|
2462
|
+
"phaseIdCol": string;
|
|
2463
|
+
"phaseNameCol": string;
|
|
2464
|
+
"phasePrevDates": string[];
|
|
2465
|
+
/**
|
|
2466
|
+
* This method is used to trigger a new render of the component.
|
|
2467
|
+
*/
|
|
2468
|
+
"refresh": () => Promise<void>;
|
|
2469
|
+
/**
|
|
2470
|
+
* Sets the props to the component.
|
|
2471
|
+
* @param props - Object containing props that will be set to the component.
|
|
2472
|
+
*/
|
|
2473
|
+
"setProps": (props: GenericObject) => Promise<void>;
|
|
2474
|
+
"taskColumns": string[];
|
|
2475
|
+
"taskDates": string[];
|
|
2476
|
+
"taskIdCol": string;
|
|
2477
|
+
"taskNameCol": string;
|
|
2478
|
+
"taskPrevDates": string[];
|
|
2479
|
+
"titleMess": string;
|
|
2480
|
+
}
|
|
2435
2481
|
interface KupProbe {
|
|
2436
2482
|
/**
|
|
2437
2483
|
* Custom style of the component.
|
|
@@ -3345,6 +3391,10 @@ export interface KupPhotoFrameCustomEvent<T> extends CustomEvent<T> {
|
|
|
3345
3391
|
detail: T;
|
|
3346
3392
|
target: HTMLKupPhotoFrameElement;
|
|
3347
3393
|
}
|
|
3394
|
+
export interface KupPlannerCustomEvent<T> extends CustomEvent<T> {
|
|
3395
|
+
detail: T;
|
|
3396
|
+
target: HTMLKupPlannerElement;
|
|
3397
|
+
}
|
|
3348
3398
|
export interface KupRadioCustomEvent<T> extends CustomEvent<T> {
|
|
3349
3399
|
detail: T;
|
|
3350
3400
|
target: HTMLKupRadioElement;
|
|
@@ -3598,6 +3648,12 @@ declare global {
|
|
|
3598
3648
|
prototype: HTMLKupPhotoFrameElement;
|
|
3599
3649
|
new (): HTMLKupPhotoFrameElement;
|
|
3600
3650
|
};
|
|
3651
|
+
interface HTMLKupPlannerElement extends Components.KupPlanner, HTMLStencilElement {
|
|
3652
|
+
}
|
|
3653
|
+
var HTMLKupPlannerElement: {
|
|
3654
|
+
prototype: HTMLKupPlannerElement;
|
|
3655
|
+
new (): HTMLKupPlannerElement;
|
|
3656
|
+
};
|
|
3601
3657
|
interface HTMLKupProbeElement extends Components.KupProbe, HTMLStencilElement {
|
|
3602
3658
|
}
|
|
3603
3659
|
var HTMLKupProbeElement: {
|
|
@@ -3707,6 +3763,7 @@ declare global {
|
|
|
3707
3763
|
"kup-nav-bar": HTMLKupNavBarElement;
|
|
3708
3764
|
"kup-numeric-picker": HTMLKupNumericPickerElement;
|
|
3709
3765
|
"kup-photo-frame": HTMLKupPhotoFrameElement;
|
|
3766
|
+
"kup-planner": HTMLKupPlannerElement;
|
|
3710
3767
|
"kup-probe": HTMLKupProbeElement;
|
|
3711
3768
|
"kup-progress-bar": HTMLKupProgressBarElement;
|
|
3712
3769
|
"kup-qlik": HTMLKupQlikElement;
|
|
@@ -5572,6 +5629,32 @@ declare namespace LocalJSX {
|
|
|
5572
5629
|
*/
|
|
5573
5630
|
"threshold"?: number;
|
|
5574
5631
|
}
|
|
5632
|
+
interface KupPlanner {
|
|
5633
|
+
/**
|
|
5634
|
+
* Custom style of the component.
|
|
5635
|
+
* @default ""
|
|
5636
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
5637
|
+
*/
|
|
5638
|
+
"customStyle"?: string;
|
|
5639
|
+
"data"?: KupDataDataset;
|
|
5640
|
+
"dataRaw"?: any;
|
|
5641
|
+
"onKup-planner-click"?: (event: KupPlannerCustomEvent<KupPlannerEventPayload>) => void;
|
|
5642
|
+
"onKup-planner-datechange"?: (event: KupPlannerCustomEvent<KupPlannerEventPayload>) => void;
|
|
5643
|
+
"onKup-planner-ready"?: (event: KupPlannerCustomEvent<KupPlannerEventPayload>) => void;
|
|
5644
|
+
"phaseColParDep"?: string;
|
|
5645
|
+
"phaseColorCol"?: string;
|
|
5646
|
+
"phaseColumns"?: string[];
|
|
5647
|
+
"phaseDates"?: string[];
|
|
5648
|
+
"phaseIdCol"?: string;
|
|
5649
|
+
"phaseNameCol"?: string;
|
|
5650
|
+
"phasePrevDates"?: string[];
|
|
5651
|
+
"taskColumns"?: string[];
|
|
5652
|
+
"taskDates"?: string[];
|
|
5653
|
+
"taskIdCol"?: string;
|
|
5654
|
+
"taskNameCol"?: string;
|
|
5655
|
+
"taskPrevDates"?: string[];
|
|
5656
|
+
"titleMess"?: string;
|
|
5657
|
+
}
|
|
5575
5658
|
interface KupProbe {
|
|
5576
5659
|
/**
|
|
5577
5660
|
* Custom style of the component.
|
|
@@ -6285,6 +6368,7 @@ declare namespace LocalJSX {
|
|
|
6285
6368
|
"kup-nav-bar": KupNavBar;
|
|
6286
6369
|
"kup-numeric-picker": KupNumericPicker;
|
|
6287
6370
|
"kup-photo-frame": KupPhotoFrame;
|
|
6371
|
+
"kup-planner": KupPlanner;
|
|
6288
6372
|
"kup-probe": KupProbe;
|
|
6289
6373
|
"kup-progress-bar": KupProgressBar;
|
|
6290
6374
|
"kup-qlik": KupQlik;
|
|
@@ -6339,6 +6423,7 @@ declare module "@stencil/core" {
|
|
|
6339
6423
|
"kup-nav-bar": LocalJSX.KupNavBar & JSXBase.HTMLAttributes<HTMLKupNavBarElement>;
|
|
6340
6424
|
"kup-numeric-picker": LocalJSX.KupNumericPicker & JSXBase.HTMLAttributes<HTMLKupNumericPickerElement>;
|
|
6341
6425
|
"kup-photo-frame": LocalJSX.KupPhotoFrame & JSXBase.HTMLAttributes<HTMLKupPhotoFrameElement>;
|
|
6426
|
+
"kup-planner": LocalJSX.KupPlanner & JSXBase.HTMLAttributes<HTMLKupPlannerElement>;
|
|
6342
6427
|
"kup-probe": LocalJSX.KupProbe & JSXBase.HTMLAttributes<HTMLKupProbeElement>;
|
|
6343
6428
|
"kup-progress-bar": LocalJSX.KupProgressBar & JSXBase.HTMLAttributes<HTMLKupProgressBarElement>;
|
|
6344
6429
|
"kup-qlik": LocalJSX.KupQlik & JSXBase.HTMLAttributes<HTMLKupQlikElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"smeup",
|
|
6
6
|
"KetchUP",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@material/form-field": "^14.0.0",
|
|
46
46
|
"@material/ripple": "^14.0.0",
|
|
47
47
|
"@material/textfield": "^14.0.0",
|
|
48
|
+
"@sme.up/gantt-component": "^1.3.6",
|
|
48
49
|
"d3-shape": "^3.1.0",
|
|
49
50
|
"dayjs": "^1.11.1",
|
|
50
51
|
"echarts": "^5.3.2",
|
|
@@ -52,6 +53,8 @@
|
|
|
52
53
|
"interactjs": "^1.10.11",
|
|
53
54
|
"jquery": "^3.6.0",
|
|
54
55
|
"numeral": "^2.0.6",
|
|
56
|
+
"react": "^18.2.0",
|
|
57
|
+
"react-dom": "^18.2.0",
|
|
55
58
|
"resize-observer": "^1.0.4",
|
|
56
59
|
"vanilla-picker": "^2.12.1"
|
|
57
60
|
},
|
|
@@ -66,6 +69,8 @@
|
|
|
66
69
|
"@types/node": "^14.5.0",
|
|
67
70
|
"@types/numeral": "^2.0.2",
|
|
68
71
|
"@types/puppeteer": "^5.4.3",
|
|
72
|
+
"@types/react": "^18.0.28",
|
|
73
|
+
"@types/react-dom": "^18.0.10",
|
|
69
74
|
"jest": "^26.6.3",
|
|
70
75
|
"jest-cli": "^26.6.3",
|
|
71
76
|
"jest-environment-node": "^26.6.2",
|