@sme.up/ketchup 7.5.0-SNAPSHOT → 8.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/{component-72a5b626.js → component-85c2bd4d.js} +1 -1
- package/dist/cjs/{f-button-a508a0a1.js → f-button-49b2c37c.js} +2 -2
- package/dist/cjs/{f-cell-52d724f5.js → f-cell-9a6bc55c.js} +6 -6
- package/dist/cjs/{f-checkbox-1148e791.js → f-checkbox-593f72c3.js} +1 -1
- package/dist/cjs/{f-chip-cbb70aed.js → f-chip-dee84122.js} +3 -3
- package/dist/cjs/{f-image-510563ed.js → f-image-27f965ff.js} +2 -2
- package/dist/cjs/{f-paginator-utils-ff531caa.js → f-paginator-utils-4a30189d.js} +3 -3
- package/dist/cjs/{f-text-field-d17e5aa0.js → f-text-field-04a663b4.js} +2 -2
- package/dist/cjs/{f-text-field-mdc-85997738.js → f-text-field-mdc-0e22f3e3.js} +2 -2
- package/dist/cjs/{index-1f177abc.js → index-74433248.js} +3 -0
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +805 -816
- package/dist/cjs/kup-box.cjs.entry.js +13 -13
- package/dist/cjs/kup-calendar.cjs.entry.js +6 -6
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-dashboard.cjs.entry.js +9 -9
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +26 -9
- package/dist/cjs/kup-family-tree.cjs.entry.js +8 -19
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +10 -10
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-9e1680dd.js → kup-manager-2ff5d258.js} +78 -2
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +1042 -193
- 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 +5 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tslib.es6-0ee02c67.js → tslib.es6-386654de.js} +9 -5
- package/dist/collection/components/kup-chip/kup-chip.js +4 -3
- package/dist/collection/components/kup-data-table/kup-data-table.js +5 -16
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +2 -0
- package/dist/collection/components/kup-echart/kup-echart.js +23 -8
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +4 -15
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +1 -0
- package/dist/collection/components/kup-planner/kup-planner.css +1 -3
- package/dist/collection/components/kup-planner/kup-planner.js +302 -72
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -3
- package/dist/collection/components/kup-tree/kup-tree.js +66 -67
- package/dist/collection/managers/kup-manager/kup-manager.js +18 -0
- package/dist/components/kup-autocomplete2.js +211 -143
- package/dist/components/kup-echart2.js +24 -7
- package/dist/components/kup-family-tree.js +4 -15
- package/dist/components/kup-planner.js +1041 -189
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/esm/{component-b1bedf1d.js → component-120651a0.js} +1 -1
- package/dist/esm/{f-button-b7f77b26.js → f-button-744cf1f6.js} +2 -2
- package/dist/esm/{f-cell-dc3beffe.js → f-cell-b319c869.js} +6 -6
- package/dist/esm/{f-checkbox-9b3f5f5b.js → f-checkbox-ec85b437.js} +1 -1
- package/dist/esm/{f-chip-0a678211.js → f-chip-7e3e4180.js} +3 -3
- package/dist/esm/{f-image-f84dbd7c.js → f-image-098c26ce.js} +2 -2
- package/dist/esm/{f-paginator-utils-52902bd6.js → f-paginator-utils-674cb2ae.js} +3 -3
- package/dist/esm/{f-text-field-7dd143be.js → f-text-field-c38ef113.js} +2 -2
- package/dist/esm/{f-text-field-mdc-d42d3f9e.js → f-text-field-mdc-cee583ea.js} +2 -2
- package/dist/esm/{index-8bd38435.js → index-b326ffc9.js} +3 -1
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +805 -816
- package/dist/esm/kup-box.entry.js +13 -13
- package/dist/esm/kup-calendar.entry.js +6 -6
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-dash-list.entry.js +2 -2
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-dashboard.entry.js +9 -9
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +26 -9
- package/dist/esm/kup-family-tree.entry.js +8 -19
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +10 -10
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/{kup-manager-a5ab58a0.js → kup-manager-b41eb2a8.js} +78 -3
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +6 -6
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +1042 -193
- 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 +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tslib.es6-3eea2234.js → tslib.es6-8c2af864.js} +9 -5
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-9ae47a0d.entry.js → p-0b0b61cb.entry.js} +1 -1
- package/dist/ketchup/p-0b91f5f8.entry.js +1 -0
- package/dist/ketchup/{p-81605f08.js → p-10d84b1b.js} +1 -1
- package/dist/ketchup/{p-a203f78b.js → p-27a56c87.js} +1 -1
- package/dist/ketchup/{p-871cfe60.entry.js → p-395e1960.entry.js} +1 -1
- package/dist/ketchup/{p-e92d1972.entry.js → p-3b41aca7.entry.js} +1 -1
- package/dist/ketchup/{p-98ff4101.entry.js → p-3efe7f43.entry.js} +1 -1
- package/dist/ketchup/{p-a32cc181.entry.js → p-4325d965.entry.js} +1 -1
- package/dist/ketchup/{p-6022c951.entry.js → p-4ae2ca6f.entry.js} +1 -1
- package/dist/ketchup/{p-a122b8d3.entry.js → p-5ce2b4fc.entry.js} +1 -1
- package/dist/ketchup/{p-d1e3573f.js → p-5d398e42.js} +1 -1
- package/dist/ketchup/{p-7065b172.js → p-77e3d537.js} +1 -1
- package/dist/ketchup/p-7f59211b.js +1 -0
- package/dist/ketchup/{p-4fd6c34c.js → p-940a5feb.js} +2 -2
- package/dist/ketchup/{p-69f3b9da.js → p-9700eb32.js} +1 -1
- package/dist/ketchup/{p-f158836b.entry.js → p-a7e19620.entry.js} +2 -2
- package/dist/ketchup/p-a877a87b.entry.js +9 -0
- package/dist/ketchup/p-a9b7533b.entry.js +25 -0
- package/dist/ketchup/{p-00fc0f80.entry.js → p-af82131e.entry.js} +1 -1
- package/dist/ketchup/{p-78d1fc60.entry.js → p-b032f47d.entry.js} +1 -1
- package/dist/ketchup/{p-beb0907a.entry.js → p-b244f5ca.entry.js} +1 -1
- package/dist/ketchup/{p-d2670436.entry.js → p-bb17c1ba.entry.js} +1 -1
- package/dist/ketchup/{p-d315f7fa.entry.js → p-bd42562d.entry.js} +1 -1
- package/dist/ketchup/{p-9f9b6656.js → p-c26975bf.js} +1 -1
- package/dist/ketchup/p-c8b7790a.entry.js +1 -0
- package/dist/ketchup/p-c968e93d.entry.js +1 -0
- package/dist/ketchup/{p-9dcfbb1e.js → p-d4ece435.js} +2 -2
- package/dist/ketchup/{p-c797ab39.entry.js → p-d739710a.entry.js} +1 -1
- package/dist/ketchup/{p-c5c6a2fb.js → p-d98fdb9b.js} +1 -1
- package/dist/ketchup/{p-166257d0.entry.js → p-da891093.entry.js} +1 -1
- package/dist/ketchup/{p-3ae1409f.entry.js → p-df316daf.entry.js} +1 -1
- package/dist/ketchup/{p-d711e9ae.entry.js → p-e02b5141.entry.js} +1 -1
- package/dist/ketchup/{p-28efed63.js → p-e714f4dc.js} +1 -1
- package/dist/ketchup/{p-de34eb56.js → p-ef614656.js} +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -0
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +15 -2
- package/dist/types/components/kup-planner/kup-planner.d.ts +36 -11
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -5
- package/dist/types/components.d.ts +38 -4
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +1 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +7 -0
- package/package.json +6 -18
- package/dist/ketchup/p-7040cab7.entry.js +0 -1
- package/dist/ketchup/p-71cb80ac.entry.js +0 -9
- package/dist/ketchup/p-79b0730b.js +0 -15
- package/dist/ketchup/p-8d0e6825.entry.js +0 -1
- package/dist/ketchup/p-efb80719.entry.js +0 -1
- package/dist/ketchup/p-f69a6d89.entry.js +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as c}from"./p-
|
|
1
|
+
import{h as c}from"./p-d4ece435.js";import{F as i}from"./p-5d398e42.js";import{K as e,l as s,b as n}from"./p-940a5feb.js";var p;!function(c){c.CHOICE="choice",c.FILTER="filter",c.INPUT="input",c.STANDARD="standard"}(p||(p={}));const l=document.documentElement,a=a=>{a.type||(a.type=p.STANDARD);const r=a.type.toLowerCase()===p.CHOICE,t=a.type.toLowerCase()===p.FILTER,o=a.type.toLowerCase()===p.INPUT,d={"chip-set":!0,"chip-set--choice":!!r,"chip-set--filter":!!t,"chip-set--input":!!o};return c("div",Object.assign({class:`f-chip ${a.danger?"kup-danger":""} ${a.info?"kup-info":""} ${a.secondary?"kup-secondary":""} ${a.success?"kup-success":""} ${a.warning?"kup-warning":""} ${a.wrapperClass?a.wrapperClass:""}`},a.dataSet,{id:a.id,title:a.title}),c("div",{class:d,role:"grid"},function(p,a,r,t){const o=[];for(let u=0;p.data&&u<p.data.length;u++){const _=[];function d(n,a){const r=!!(n.children&&n.children.length>0),t=!(!r||!n.isExpanded),o={"--kup_chip_indent_offset":a.toString()};if(_.push(c("div",{class:"chip-set__wrapper "+(r&&!t?"chip-set__wrapper--hidden-children":"")},c("div",{class:"chip-set__indent",style:o}),r?c(i,{onClick:p.onExpansionClick&&p.onExpansionClick[u]?p.onExpansionClick[u].bind(p.onExpansionClick[u],n):null,resource:`${e.DROPDOWN}`,sizeX:"18px",sizeY:"18px",title:l.ketchup.language.translate(s.EXPAND)+"/"+l.ketchup.language.translate(s.COLLAPSE)+" (CTRL + Click)",wrapperClass:"dropdown-icon"}):a?c(i,{resource:"blank",sizeX:"18px",sizeY:"18px",wrapperClass:"dropdown-icon"}):null,h(n))),t)for(let c=0;c<n.children.length;c++)n.children[c]&&d(n.children[c],a+1)}function h(s){let l="chip "+(s.icon&&!s.value?"chip--only-icon":""),o=[],d="chip__icon chip__icon--leading";return(r||a)&&s.checked&&(l+=" chip--selected",r&&(d+=" chip__icon--leading-hidden")),s.icon&&o.push(c(i,Object.assign({},{color:a&&s.checked?`var(${n.PRIMARY})`:`var(${n.TEXT})`,resource:s.icon,sizeX:"18px",sizeY:"18px",wrapperClass:d}))),r&&o.push(c("span",{class:"chip__checkmark"},c("svg",{class:"chip__checkmark-svg",viewBox:"-2 -3 30 30"},c("path",{class:"chip__checkmark-path",fill:"none",stroke:"black",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})))),c("div",{class:l,"data-value":s.id,onClick:p.onClick&&p.onClick[u]?p.onClick[u].bind(p.onClick[u],s):null,role:"row",title:s.title?s.title:""},c("span",{class:"chip-set__indent"}),o,c("span",{role:"gridcell"},c("span",{role:"button",tabindex:u,class:"chip__primary-action",value:s.id,checked:s.checked,onBlur:p.onBlur&&p.onBlur[u]?p.onBlur[u].bind(p.onBlur[u],s):null,onFocus:p.onFocus&&p.onFocus[u]?p.onFocus[u].bind(p.onFocus[u],s):null},c("span",{class:"chip__text"},p.displayId?s.id+" - "+s.value:s.value))),t?c("span",{role:"gridcell"},c("span",{tabindex:"-1",class:`kup-icon chip__icon ${e.CLEAR.replace("--","")}`,onClick:p.onIconClick&&p.onIconClick[u]?p.onIconClick[u].bind(p.onIconClick[u],s):null})):null)}d(p.data[u],0),o.push(c("div",{class:"chip-set__item"},..._))}return o}(a,r,t,o)))};export{p as F,a}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { Detail, GanttTask } from '@sme.up/gantt-component';
|
|
2
3
|
import { Phase } from '@sme.up/gantt-component';
|
|
3
4
|
import { GanttRow } from '@sme.up/gantt-component';
|
|
4
5
|
import { KupEventPayload } from '../../components';
|
|
5
|
-
import { KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
6
|
+
import { KupDataColumn, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
7
|
+
import { KupDataTableCell } from '../kup-data-table/kup-data-table-declarations';
|
|
6
8
|
/**
|
|
7
9
|
* Props of the kup-gantt component.
|
|
8
10
|
* Used to export every prop in an object.
|
|
@@ -40,12 +42,22 @@ export declare enum KupPlannerTaskAction {
|
|
|
40
42
|
onTaskOpening = "onTaskOpening",
|
|
41
43
|
onTaskClosing = "onTaskClosing",
|
|
42
44
|
onClick = "onClick",
|
|
43
|
-
onResize = "onResize"
|
|
45
|
+
onResize = "onResize",
|
|
46
|
+
onRightClick = "onRightClick"
|
|
44
47
|
}
|
|
45
48
|
export interface KupPlannerEventPayload extends KupEventPayload {
|
|
46
49
|
value: GanttRow;
|
|
47
50
|
taskAction?: KupPlannerTaskAction;
|
|
48
51
|
}
|
|
52
|
+
export interface KupPlannerClickEventPayload extends KupPlannerEventPayload {
|
|
53
|
+
details: KupPlannerEventHandlerDetails;
|
|
54
|
+
}
|
|
55
|
+
export interface KupPlannerEventHandlerDetails {
|
|
56
|
+
cell: KupDataTableCell;
|
|
57
|
+
column: KupDataColumn;
|
|
58
|
+
originalEvent: React.MouseEvent<Element, MouseEvent>;
|
|
59
|
+
row: KupDataRow;
|
|
60
|
+
}
|
|
49
61
|
export declare enum KupPlannerGanttRowType {
|
|
50
62
|
TASK = "task",
|
|
51
63
|
PHASE = "phase",
|
|
@@ -58,6 +70,7 @@ export interface KupPlannerGanttTask extends GanttTask {
|
|
|
58
70
|
}
|
|
59
71
|
export interface KupPlannerDetail extends Detail {
|
|
60
72
|
rowType: KupPlannerGanttRowType;
|
|
73
|
+
detailRow: KupDataRow;
|
|
61
74
|
}
|
|
62
75
|
export interface KupPlannerPhase extends Phase {
|
|
63
76
|
taskRowId: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { GenericObject } from '../../types/GenericTypes';
|
|
3
|
-
import { KupPlannerEventPayload, KupPlannerGanttTask, KupPlannerPhase, KupPlannerTaskAction, KupPlannerDetail } from './kup-planner-declarations';
|
|
3
|
+
import { KupPlannerEventPayload, KupPlannerGanttTask, KupPlannerPhase, KupPlannerTaskAction, KupPlannerDetail, KupPlannerClickEventPayload } from './kup-planner-declarations';
|
|
4
|
+
import React from 'react';
|
|
4
5
|
import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
|
|
5
6
|
import { GanttRow, PlannerProps } from '@sme.up/gantt-component';
|
|
6
7
|
export declare class KupPlanner {
|
|
@@ -9,11 +10,6 @@ export declare class KupPlanner {
|
|
|
9
10
|
* References the root HTML element of the component (<kup-planner>).
|
|
10
11
|
*/
|
|
11
12
|
rootElement: HTMLElement;
|
|
12
|
-
/**
|
|
13
|
-
* The value of the component.
|
|
14
|
-
* @default ""
|
|
15
|
-
*/
|
|
16
|
-
plannerProps: PlannerProps;
|
|
17
13
|
/**
|
|
18
14
|
* Custom style of the component.
|
|
19
15
|
* @default ""
|
|
@@ -50,6 +46,11 @@ export declare class KupPlanner {
|
|
|
50
46
|
* @default null
|
|
51
47
|
*/
|
|
52
48
|
detailHeight: number;
|
|
49
|
+
/**
|
|
50
|
+
* Column containing icon name to show, for detail
|
|
51
|
+
* @default null
|
|
52
|
+
*/
|
|
53
|
+
detailIconCol: string;
|
|
53
54
|
/**
|
|
54
55
|
* Column containing unique detail identifier
|
|
55
56
|
* @default null
|
|
@@ -61,7 +62,7 @@ export declare class KupPlanner {
|
|
|
61
62
|
*/
|
|
62
63
|
detailNameCol: string;
|
|
63
64
|
/**
|
|
64
|
-
* Columns containing
|
|
65
|
+
* Columns containing forecast detail duration, from (firstDate) to (secondDate)
|
|
65
66
|
* @default null
|
|
66
67
|
*/
|
|
67
68
|
detailPrevDates: string[];
|
|
@@ -95,6 +96,11 @@ export declare class KupPlanner {
|
|
|
95
96
|
* @default null
|
|
96
97
|
*/
|
|
97
98
|
phaseDates: string[];
|
|
99
|
+
/**
|
|
100
|
+
* Column containing icon name to show, for phase
|
|
101
|
+
* @default null
|
|
102
|
+
*/
|
|
103
|
+
phaseIconCol: string;
|
|
98
104
|
/**
|
|
99
105
|
* Column containing unique phase identifier
|
|
100
106
|
* @default null
|
|
@@ -130,6 +136,11 @@ export declare class KupPlanner {
|
|
|
130
136
|
* @default null
|
|
131
137
|
*/
|
|
132
138
|
taskHeight: number;
|
|
139
|
+
/**
|
|
140
|
+
* Column containing icon name to show, for task
|
|
141
|
+
* @default null
|
|
142
|
+
*/
|
|
143
|
+
taskIconCol: string;
|
|
133
144
|
/**
|
|
134
145
|
* Column containing unique task identifier
|
|
135
146
|
* @default null
|
|
@@ -150,11 +161,20 @@ export declare class KupPlanner {
|
|
|
150
161
|
* @default null
|
|
151
162
|
*/
|
|
152
163
|
titleMess: string;
|
|
164
|
+
/**
|
|
165
|
+
* The value of the component.
|
|
166
|
+
* @default ""
|
|
167
|
+
*/
|
|
168
|
+
plannerProps: PlannerProps;
|
|
169
|
+
dataChanged(): void;
|
|
170
|
+
showSecondaryDatesChanged(): void;
|
|
153
171
|
kupClick: EventEmitter<KupPlannerEventPayload>;
|
|
154
|
-
onKupClick(event: GanttRow, taskAction?: KupPlannerTaskAction): void;
|
|
155
172
|
kupDateChange: EventEmitter<KupPlannerEventPayload>;
|
|
156
|
-
onKupDateChange(event: GanttRow, taskAction?: KupPlannerTaskAction): void;
|
|
157
173
|
kupReady: EventEmitter<KupPlannerEventPayload>;
|
|
174
|
+
/**
|
|
175
|
+
* Generic right click event on planner.
|
|
176
|
+
*/
|
|
177
|
+
kupContextMenu: EventEmitter<KupPlannerClickEventPayload>;
|
|
158
178
|
/**
|
|
159
179
|
* Used to retrieve component's props values.
|
|
160
180
|
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
@@ -176,12 +196,17 @@ export declare class KupPlanner {
|
|
|
176
196
|
* @param data - Matrix which contains project phases
|
|
177
197
|
*/
|
|
178
198
|
addPhases(taskId: string, data: KupDataDataset): Promise<void>;
|
|
179
|
-
handleOnClick(nativeEvent: KupPlannerGanttTask | KupPlannerPhase | KupPlannerDetail): void;
|
|
180
|
-
handleOnDateChange(nativeEvent: KupPlannerGanttTask | KupPlannerPhase | KupPlannerDetail): void;
|
|
181
199
|
componentWillLoad(): void;
|
|
182
200
|
componentDidLoad(): void;
|
|
183
201
|
componentWillRender(): void;
|
|
184
202
|
componentDidRender(): void;
|
|
203
|
+
onKupClick(event: GanttRow, taskAction?: KupPlannerTaskAction): void;
|
|
204
|
+
onKupContextMenu(event: React.MouseEvent<Element, MouseEvent>, ganttRow: GanttRow, taskAction?: KupPlannerTaskAction): void;
|
|
205
|
+
onKupDateChange(event: GanttRow, taskAction?: KupPlannerTaskAction): void;
|
|
206
|
+
handleOnClick(nativeEvent: KupPlannerGanttTask | KupPlannerPhase | KupPlannerDetail): void;
|
|
207
|
+
handleOnContextMenu(event: React.MouseEvent<Element, MouseEvent>, row: KupPlannerGanttTask | KupPlannerPhase | KupPlannerDetail): void;
|
|
208
|
+
handleOnSetDoubleView(checked: boolean): void;
|
|
209
|
+
handleOnDateChange(nativeEvent: KupPlannerGanttTask | KupPlannerPhase | KupPlannerDetail): void;
|
|
185
210
|
render(): any;
|
|
186
211
|
disconnectedCallback(): void;
|
|
187
212
|
}
|
|
@@ -8,6 +8,7 @@ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
|
8
8
|
import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
|
|
9
9
|
import { KupDataColumn, KupDataDataset, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
10
10
|
export declare class KupTree {
|
|
11
|
+
#private;
|
|
11
12
|
/**
|
|
12
13
|
* References the root HTML element of the component (<kup-tree>).
|
|
13
14
|
*/
|
|
@@ -153,10 +154,6 @@ export declare class KupTree {
|
|
|
153
154
|
* Defines the current totals options.
|
|
154
155
|
*/
|
|
155
156
|
totals: TotalsMap;
|
|
156
|
-
/**
|
|
157
|
-
* Instance of the KupManager class.
|
|
158
|
-
*/
|
|
159
|
-
private kupManager;
|
|
160
157
|
/**
|
|
161
158
|
* Reference to the column menu card.
|
|
162
159
|
*/
|
|
@@ -298,7 +295,6 @@ export declare class KupTree {
|
|
|
298
295
|
private onTotalMenuOpen;
|
|
299
296
|
private getEventDetails;
|
|
300
297
|
private contextMenuHandler;
|
|
301
|
-
private getEventPath;
|
|
302
298
|
hdlTreeNodeClick(e: MouseEvent, treeNodeData: KupTreeNode, treeNodePath: string): void;
|
|
303
299
|
hdlTreeNodeExpanderClick(treeNodeData: KupTreeNode, treeNodePath: string, ctrlKey: boolean): void;
|
|
304
300
|
private hasTotals;
|
|
@@ -43,7 +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
|
+
import { KupPlannerClickEventPayload, KupPlannerEventPayload, KupPlannerPhase } from "./components/kup-planner/kup-planner-declarations";
|
|
47
47
|
import { TaskType } from "@sme.up/gantt-component/dist/types/public-types";
|
|
48
48
|
import { KupQlikGrid, QlikServer } from "./components/kup-qlik/kup-qlik-declarations";
|
|
49
49
|
import { KupRadioChangeEventPayload, KupRadioData } from "./components/kup-radio/kup-radio-declarations";
|
|
@@ -90,7 +90,7 @@ export { KupImageListEventPayload } from "./components/kup-image-list/kup-image-
|
|
|
90
90
|
export { KupLazyRender } from "./components/kup-lazy/kup-lazy-declarations";
|
|
91
91
|
export { KupNavBarStyling } from "./components/kup-nav-bar/kup-nav-bar-declarations";
|
|
92
92
|
export { KupNumericPickerEventPayload } from "./components/kup-numeric-picker/kup-numeric-picker-declarations";
|
|
93
|
-
export { KupPlannerEventPayload, KupPlannerPhase } from "./components/kup-planner/kup-planner-declarations";
|
|
93
|
+
export { KupPlannerClickEventPayload, KupPlannerEventPayload, KupPlannerPhase } from "./components/kup-planner/kup-planner-declarations";
|
|
94
94
|
export { TaskType } from "@sme.up/gantt-component/dist/types/public-types";
|
|
95
95
|
export { KupQlikGrid, QlikServer } from "./components/kup-qlik/kup-qlik-declarations";
|
|
96
96
|
export { KupRadioChangeEventPayload, KupRadioData } from "./components/kup-radio/kup-radio-declarations";
|
|
@@ -2479,6 +2479,11 @@ export namespace Components {
|
|
|
2479
2479
|
* @default null
|
|
2480
2480
|
*/
|
|
2481
2481
|
"detailHeight": number;
|
|
2482
|
+
/**
|
|
2483
|
+
* Column containing icon name to show, for detail
|
|
2484
|
+
* @default null
|
|
2485
|
+
*/
|
|
2486
|
+
"detailIconCol": string;
|
|
2482
2487
|
/**
|
|
2483
2488
|
* Column containing unique detail identifier
|
|
2484
2489
|
* @default null
|
|
@@ -2490,7 +2495,7 @@ export namespace Components {
|
|
|
2490
2495
|
*/
|
|
2491
2496
|
"detailNameCol": string;
|
|
2492
2497
|
/**
|
|
2493
|
-
* Columns containing
|
|
2498
|
+
* Columns containing forecast detail duration, from (firstDate) to (secondDate)
|
|
2494
2499
|
* @default null
|
|
2495
2500
|
*/
|
|
2496
2501
|
"detailPrevDates": string[];
|
|
@@ -2530,6 +2535,11 @@ export namespace Components {
|
|
|
2530
2535
|
* @default null
|
|
2531
2536
|
*/
|
|
2532
2537
|
"phaseDates": string[];
|
|
2538
|
+
/**
|
|
2539
|
+
* Column containing icon name to show, for phase
|
|
2540
|
+
* @default null
|
|
2541
|
+
*/
|
|
2542
|
+
"phaseIconCol": string;
|
|
2533
2543
|
/**
|
|
2534
2544
|
* Column containing unique phase identifier
|
|
2535
2545
|
* @default null
|
|
@@ -2574,6 +2584,11 @@ export namespace Components {
|
|
|
2574
2584
|
* @default null
|
|
2575
2585
|
*/
|
|
2576
2586
|
"taskHeight": number;
|
|
2587
|
+
/**
|
|
2588
|
+
* Column containing icon name to show, for task
|
|
2589
|
+
* @default null
|
|
2590
|
+
*/
|
|
2591
|
+
"taskIconCol": string;
|
|
2577
2592
|
/**
|
|
2578
2593
|
* Column containing unique task identifier
|
|
2579
2594
|
* @default null
|
|
@@ -5784,6 +5799,11 @@ declare namespace LocalJSX {
|
|
|
5784
5799
|
* @default null
|
|
5785
5800
|
*/
|
|
5786
5801
|
"detailHeight"?: number;
|
|
5802
|
+
/**
|
|
5803
|
+
* Column containing icon name to show, for detail
|
|
5804
|
+
* @default null
|
|
5805
|
+
*/
|
|
5806
|
+
"detailIconCol"?: string;
|
|
5787
5807
|
/**
|
|
5788
5808
|
* Column containing unique detail identifier
|
|
5789
5809
|
* @default null
|
|
@@ -5795,7 +5815,7 @@ declare namespace LocalJSX {
|
|
|
5795
5815
|
*/
|
|
5796
5816
|
"detailNameCol"?: string;
|
|
5797
5817
|
/**
|
|
5798
|
-
* Columns containing
|
|
5818
|
+
* Columns containing forecast detail duration, from (firstDate) to (secondDate)
|
|
5799
5819
|
* @default null
|
|
5800
5820
|
*/
|
|
5801
5821
|
"detailPrevDates"?: string[];
|
|
@@ -5810,6 +5830,10 @@ declare namespace LocalJSX {
|
|
|
5810
5830
|
*/
|
|
5811
5831
|
"maxWidth"?: string;
|
|
5812
5832
|
"onKup-planner-click"?: (event: KupPlannerCustomEvent<KupPlannerEventPayload>) => void;
|
|
5833
|
+
/**
|
|
5834
|
+
* Generic right click event on planner.
|
|
5835
|
+
*/
|
|
5836
|
+
"onKup-planner-contextmenu"?: (event: KupPlannerCustomEvent<KupPlannerClickEventPayload>) => void;
|
|
5813
5837
|
"onKup-planner-datechange"?: (event: KupPlannerCustomEvent<KupPlannerEventPayload>) => void;
|
|
5814
5838
|
"onKup-planner-ready"?: (event: KupPlannerCustomEvent<KupPlannerEventPayload>) => void;
|
|
5815
5839
|
/**
|
|
@@ -5832,6 +5856,11 @@ declare namespace LocalJSX {
|
|
|
5832
5856
|
* @default null
|
|
5833
5857
|
*/
|
|
5834
5858
|
"phaseDates"?: string[];
|
|
5859
|
+
/**
|
|
5860
|
+
* Column containing icon name to show, for phase
|
|
5861
|
+
* @default null
|
|
5862
|
+
*/
|
|
5863
|
+
"phaseIconCol"?: string;
|
|
5835
5864
|
/**
|
|
5836
5865
|
* Column containing unique phase identifier
|
|
5837
5866
|
* @default null
|
|
@@ -5867,6 +5896,11 @@ declare namespace LocalJSX {
|
|
|
5867
5896
|
* @default null
|
|
5868
5897
|
*/
|
|
5869
5898
|
"taskHeight"?: number;
|
|
5899
|
+
/**
|
|
5900
|
+
* Column containing icon name to show, for task
|
|
5901
|
+
* @default null
|
|
5902
|
+
*/
|
|
5903
|
+
"taskIconCol"?: string;
|
|
5870
5904
|
/**
|
|
5871
5905
|
* Column containing unique task identifier
|
|
5872
5906
|
* @default null
|
|
@@ -55,6 +55,7 @@ export interface KupManager {
|
|
|
55
55
|
toggleMagicBox: () => void;
|
|
56
56
|
setLibraryLocalization: (locale: KupDatesLocales) => void;
|
|
57
57
|
addClickCallback: (cb: KupManagerClickCb, async?: boolean) => void;
|
|
58
|
+
getEventPath: (currentEl: unknown, rootElement: HTMLElement) => HTMLElement[];
|
|
58
59
|
removeClickCallback: (cb: KupManagerClickCb) => void;
|
|
59
60
|
rasterize: (el: HTMLElement, options?: Partial<Options>) => Promise<HTMLCanvasElement>;
|
|
60
61
|
}
|
|
@@ -64,6 +64,13 @@ export declare class KupManager {
|
|
|
64
64
|
* @param {boolean} async - When true, the callback will be added asynchrounously to prevent instant firing if it was added through a click event.
|
|
65
65
|
*/
|
|
66
66
|
addClickCallback(cb: KupManagerClickCb, async?: boolean): void;
|
|
67
|
+
/**
|
|
68
|
+
* Retrives event path from event.target
|
|
69
|
+
* @param currentEl event.target
|
|
70
|
+
* @param rootElement rootElement of component
|
|
71
|
+
* @returns
|
|
72
|
+
*/
|
|
73
|
+
getEventPath(currentEl: unknown, rootElement: HTMLElement): HTMLElement[];
|
|
67
74
|
/**
|
|
68
75
|
* Rasterizes an HTMLElement, transforming into a canvas.
|
|
69
76
|
* @param {HTMLElement} el - Element to rasterize.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v8.0.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"smeup",
|
|
6
6
|
"KetchUP",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"build": "npm run build:setup && stencil build --docs",
|
|
32
32
|
"start": "npm run build:setup && stencil build --dev --watch --serve",
|
|
33
33
|
"start--es5": "npm run build:setup && stencil build --dev --watch --serve --es5",
|
|
34
|
-
"test:spec": "npm run build:setup && stencil test --spec",
|
|
34
|
+
"test:spec": "rimraf target && npm run build:setup && stencil test --spec",
|
|
35
|
+
"test:speccov": "rimraf target && npm run build:setup && stencil test --spec --coverage",
|
|
35
36
|
"test:e2e": "npm run build:setup && stencil test --e2e",
|
|
36
37
|
"test": "npm run build:setup && stencil test --spec --e2e",
|
|
37
38
|
"test.watch": "npm run build:setup && stencil test --spec --e2e --watchAll",
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"@material/form-field": "^14.0.0",
|
|
48
49
|
"@material/ripple": "^14.0.0",
|
|
49
50
|
"@material/textfield": "^14.0.0",
|
|
50
|
-
"@sme.up/gantt-component": "^1.3.
|
|
51
|
+
"@sme.up/gantt-component": "^1.3.25",
|
|
51
52
|
"d3-shape": "^3.1.0",
|
|
52
53
|
"dayjs": "^1.11.1",
|
|
53
54
|
"echarts": "^5.3.2",
|
|
@@ -63,22 +64,9 @@
|
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@stencil/core": "^3.2.0",
|
|
65
66
|
"@stencil/sass": "^3.0.0",
|
|
66
|
-
"@stencil/react-output-target": "0.
|
|
67
|
-
"@types/d3-shape": "^3.0.2",
|
|
68
|
-
"@types/geojson": "^7946.0.8",
|
|
69
|
-
"@types/jest": "^26.0.24",
|
|
70
|
-
"@types/jest-cli": "^24.3.0",
|
|
71
|
-
"@types/node": "^14.5.0",
|
|
72
|
-
"@types/numeral": "^2.0.2",
|
|
73
|
-
"@types/puppeteer": "^5.4.3",
|
|
74
|
-
"@types/react": "^18.0.28",
|
|
75
|
-
"@types/react-dom": "^18.0.10",
|
|
76
|
-
"jest": "^26.6.3",
|
|
77
|
-
"jest-cli": "^26.6.3",
|
|
78
|
-
"jest-environment-node": "^26.6.2",
|
|
79
|
-
"puppeteer": "^13.5.1",
|
|
67
|
+
"@stencil/react-output-target": "0.5.0",
|
|
80
68
|
"rimraf": "^3.0.2",
|
|
81
|
-
"sass": "^1.
|
|
69
|
+
"sass": "^1.60.0"
|
|
82
70
|
},
|
|
83
71
|
"repository": {
|
|
84
72
|
"type": "git",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,f as s,h as e,H as o,g as h}from"./p-9dcfbb1e.js";import{k as n,g as r,s as a,c}from"./p-4fd6c34c.js";var d;!function(t){t.buttonData="Props of the button (when isButton is set to true).",t.isButton="The component will be rendered as a button, which opens the link associated to the iframe in another tab when clicked.",t.src="The address the iframe should be referencing to."}(d||(d={}));const p=class{constructor(s){t(this,s),this.kupIframeError=i(this,"kup-iframe-error",6),this.kupIframeLoad=i(this,"kup-iframe-load",6),this.kupManager=n(),this.buttonData={},this.isButton=!1,this.src=void 0}onKupIframeError(){this.kupIframeError.emit({comp:this,id:this.rootElement.id})}onKupIframeLoad(){this.kupIframeLoad.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,d,t)}async refresh(){s(this)}async setProps(t){a(this,d,t)}openInNew(){window.open(this.src,"_blank")}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){if(null!=this.src&&""!==this.src)return this.buttonData.icon||(this.buttonData.icon="open_in_new"),this.buttonData.label||(this.buttonData.label="Open in new tab"),this.isButton?e(o,{"is-button":!0},e("kup-button",Object.assign({},this.buttonData,{"onkup-button-click":()=>this.openInNew()}))):e(o,{"is-iframe":!0},e("iframe",{onError:this.onKupIframeError.bind(this),onLoad:this.onKupIframeLoad.bind(this),src:this.src}));this.kupManager.debug.logMessage(this,"Resource undefined, not rendering!",c.WARNING)}get rootElement(){return h(this)}};p.style="iframe{box-sizing:border-box;height:100%;width:100%}:host([is-iframe]){box-sizing:border-box;display:block;height:100%;width:100%}";export{p as kup_iframe}
|