@sme.up/ketchup 7.4.2 → 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.
Files changed (160) hide show
  1. package/dist/cjs/{component-72a5b626.js → component-85c2bd4d.js} +1 -1
  2. package/dist/cjs/{f-button-daddd700.js → f-button-49b2c37c.js} +1 -1
  3. package/dist/cjs/{f-cell-3682fad4.js → f-cell-9a6bc55c.js} +4 -4
  4. package/dist/cjs/{f-chip-9d540d94.js → f-chip-dee84122.js} +2 -2
  5. package/dist/cjs/{f-image-7b42d149.js → f-image-27f965ff.js} +4 -4
  6. package/dist/cjs/{f-paginator-utils-1baeba0f.js → f-paginator-utils-4a30189d.js} +2 -2
  7. package/dist/cjs/{f-text-field-a6ed2d22.js → f-text-field-04a663b4.js} +1 -1
  8. package/dist/cjs/{f-text-field-mdc-85997738.js → f-text-field-mdc-0e22f3e3.js} +2 -2
  9. package/dist/cjs/ketchup.cjs.js +2 -2
  10. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +814 -819
  12. package/dist/cjs/kup-box.cjs.entry.js +10 -10
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +7 -10
  18. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-echart.cjs.entry.js +25 -8
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +8 -19
  21. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  25. package/dist/cjs/{kup-manager-10351449.js → kup-manager-2ff5d258.js} +80 -1
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-planner.cjs.entry.js +1127 -218
  30. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/cjs/{tslib.es6-0ee02c67.js → tslib.es6-386654de.js} +9 -5
  35. package/dist/collection/collection-manifest.json +1 -1
  36. package/dist/collection/components/kup-card/kup-card.css +4 -8
  37. package/dist/collection/components/kup-chip/kup-chip.js +4 -3
  38. package/dist/collection/components/kup-dashboard/kup-dashboard.js +0 -3
  39. package/dist/collection/components/kup-data-table/kup-data-table.css +3 -6
  40. package/dist/collection/components/kup-data-table/kup-data-table.js +6 -20
  41. package/dist/collection/components/kup-echart/kup-echart-declarations.js +2 -0
  42. package/dist/collection/components/kup-echart/kup-echart.js +23 -8
  43. package/dist/collection/components/kup-family-tree/kup-family-tree.css +2 -2
  44. package/dist/collection/components/kup-family-tree/kup-family-tree.js +4 -15
  45. package/dist/collection/components/kup-image/kup-image.js +28 -0
  46. package/dist/collection/components/kup-list/kup-list.css +1 -1
  47. package/dist/collection/components/kup-planner/kup-planner-declarations.js +5 -2
  48. package/dist/collection/components/kup-planner/kup-planner.css +6 -3
  49. package/dist/collection/components/kup-planner/kup-planner.js +347 -65
  50. package/dist/collection/components/kup-qlik/kup-qlik.css +4 -8
  51. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -3
  52. package/dist/collection/components/kup-spinner/kup-spinner.css +2 -4
  53. package/dist/collection/components/kup-tree/kup-tree.js +66 -67
  54. package/dist/collection/f-components/f-image/f-image.js +3 -3
  55. package/dist/collection/managers/kup-data/kup-data-column-helper.js +1 -0
  56. package/dist/collection/managers/kup-manager/kup-manager.js +18 -0
  57. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  58. package/dist/collection/types/GenericTypes.js +1 -0
  59. package/dist/components/kup-autocomplete2.js +228 -151
  60. package/dist/components/kup-dashboard.js +0 -3
  61. package/dist/components/kup-echart2.js +24 -7
  62. package/dist/components/kup-family-tree.js +5 -16
  63. package/dist/components/kup-planner.js +1127 -219
  64. package/dist/components/kup-progress-bar.js +1 -1
  65. package/dist/components/kup-qlik.js +1 -1
  66. package/dist/components/kup-radio.js +1 -1
  67. package/dist/components/kup-rating.js +1 -1
  68. package/dist/components/kup-snackbar.js +1 -1
  69. package/dist/components/kup-spinner.js +1 -1
  70. package/dist/components/kup-switch.js +1 -1
  71. package/dist/components/kup-tab-bar.js +1 -1
  72. package/dist/components/kup-text-field.js +1 -1
  73. package/dist/components/kup-time-picker.js +1 -1
  74. package/dist/components/kup-tree.js +1 -1
  75. package/dist/esm/{component-b1bedf1d.js → component-120651a0.js} +1 -1
  76. package/dist/esm/{f-button-8d15b5a0.js → f-button-744cf1f6.js} +1 -1
  77. package/dist/esm/{f-cell-7b706e57.js → f-cell-b319c869.js} +4 -4
  78. package/dist/esm/{f-chip-c671fe90.js → f-chip-7e3e4180.js} +2 -2
  79. package/dist/esm/{f-image-21451b15.js → f-image-098c26ce.js} +4 -4
  80. package/dist/esm/{f-paginator-utils-92bbf277.js → f-paginator-utils-674cb2ae.js} +2 -2
  81. package/dist/esm/{f-text-field-0bb2d109.js → f-text-field-c38ef113.js} +1 -1
  82. package/dist/esm/{f-text-field-mdc-d42d3f9e.js → f-text-field-mdc-cee583ea.js} +2 -2
  83. package/dist/esm/ketchup.js +2 -2
  84. package/dist/esm/kup-accordion.entry.js +4 -4
  85. package/dist/esm/kup-autocomplete_27.entry.js +814 -819
  86. package/dist/esm/kup-box.entry.js +10 -10
  87. package/dist/esm/kup-calendar.entry.js +5 -5
  88. package/dist/esm/kup-cell.entry.js +5 -5
  89. package/dist/esm/kup-dash-list.entry.js +1 -1
  90. package/dist/esm/kup-dash_2.entry.js +1 -1
  91. package/dist/esm/kup-dashboard.entry.js +7 -10
  92. package/dist/esm/kup-drawer.entry.js +1 -1
  93. package/dist/esm/kup-echart.entry.js +25 -8
  94. package/dist/esm/kup-family-tree.entry.js +8 -19
  95. package/dist/esm/kup-iframe.entry.js +1 -1
  96. package/dist/esm/kup-image-list.entry.js +8 -8
  97. package/dist/esm/kup-lazy.entry.js +1 -1
  98. package/dist/esm/kup-magic-box.entry.js +2 -2
  99. package/dist/esm/{kup-manager-6145d980.js → kup-manager-b41eb2a8.js} +80 -2
  100. package/dist/esm/kup-nav-bar.entry.js +1 -1
  101. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  102. package/dist/esm/kup-photo-frame.entry.js +1 -1
  103. package/dist/esm/kup-planner.entry.js +1128 -219
  104. package/dist/esm/kup-probe.entry.js +1 -1
  105. package/dist/esm/kup-qlik.entry.js +2 -2
  106. package/dist/esm/kup-snackbar.entry.js +4 -4
  107. package/dist/esm/loader.js +2 -2
  108. package/dist/esm/{tslib.es6-3eea2234.js → tslib.es6-8c2af864.js} +9 -5
  109. package/dist/ketchup/ketchup.esm.js +1 -1
  110. package/dist/ketchup/{p-439ac105.entry.js → p-0b0b61cb.entry.js} +1 -1
  111. package/dist/ketchup/p-0b91f5f8.entry.js +1 -0
  112. package/dist/ketchup/{p-81605f08.js → p-10d84b1b.js} +1 -1
  113. package/dist/ketchup/{p-a203f78b.js → p-27a56c87.js} +1 -1
  114. package/dist/ketchup/{p-32517a99.entry.js → p-395e1960.entry.js} +1 -1
  115. package/dist/ketchup/{p-76bf53df.entry.js → p-3b41aca7.entry.js} +1 -1
  116. package/dist/ketchup/{p-4d039705.entry.js → p-3efe7f43.entry.js} +1 -1
  117. package/dist/ketchup/{p-a641780a.entry.js → p-4325d965.entry.js} +1 -1
  118. package/dist/ketchup/{p-2915a66a.entry.js → p-4ae2ca6f.entry.js} +1 -1
  119. package/dist/ketchup/{p-e4975ffa.entry.js → p-5ce2b4fc.entry.js} +1 -1
  120. package/dist/ketchup/p-5d398e42.js +1 -0
  121. package/dist/ketchup/{p-7cfdce27.js → p-77e3d537.js} +1 -1
  122. package/dist/ketchup/p-7f59211b.js +1 -0
  123. package/dist/ketchup/p-940a5feb.js +30 -0
  124. package/dist/ketchup/{p-826c91d7.js → p-9700eb32.js} +1 -1
  125. package/dist/ketchup/p-a7e19620.entry.js +39 -0
  126. package/dist/ketchup/p-a877a87b.entry.js +9 -0
  127. package/dist/ketchup/p-a9b7533b.entry.js +25 -0
  128. package/dist/ketchup/{p-89ac80c1.entry.js → p-af82131e.entry.js} +1 -1
  129. package/dist/ketchup/{p-da37c417.entry.js → p-b032f47d.entry.js} +1 -1
  130. package/dist/ketchup/{p-0c1cbf8b.entry.js → p-b244f5ca.entry.js} +1 -1
  131. package/dist/ketchup/{p-2a2dc2a8.entry.js → p-bb17c1ba.entry.js} +1 -1
  132. package/dist/ketchup/{p-0c9b7c80.entry.js → p-bd42562d.entry.js} +1 -1
  133. package/dist/ketchup/{p-849ad5d8.entry.js → p-c8b7790a.entry.js} +1 -1
  134. package/dist/ketchup/{p-c022824e.entry.js → p-c968e93d.entry.js} +1 -1
  135. package/dist/ketchup/{p-1242366a.entry.js → p-d739710a.entry.js} +1 -1
  136. package/dist/ketchup/{p-ae4fffe0.js → p-d98fdb9b.js} +1 -1
  137. package/dist/ketchup/{p-c222d070.entry.js → p-da891093.entry.js} +1 -1
  138. package/dist/ketchup/{p-281cff81.entry.js → p-df316daf.entry.js} +1 -1
  139. package/dist/ketchup/{p-d87fb5ff.entry.js → p-e02b5141.entry.js} +1 -1
  140. package/dist/ketchup/{p-ea16ddc0.js → p-e714f4dc.js} +1 -1
  141. package/dist/ketchup/{p-c4d9e3e2.js → p-ef614656.js} +1 -1
  142. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -0
  143. package/dist/types/components/kup-image/kup-image.d.ts +2 -0
  144. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +18 -3
  145. package/dist/types/components/kup-planner/kup-planner.d.ts +36 -11
  146. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -5
  147. package/dist/types/components.d.ts +39 -4
  148. package/dist/types/f-components/f-image/f-image-declarations.d.ts +1 -0
  149. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
  150. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +1 -0
  151. package/dist/types/managers/kup-manager/kup-manager.d.ts +7 -0
  152. package/dist/types/types/GenericTypes.d.ts +1 -0
  153. package/package.json +8 -20
  154. package/dist/ketchup/p-02a26d59.entry.js +0 -9
  155. package/dist/ketchup/p-462475ac.entry.js +0 -10
  156. package/dist/ketchup/p-5292ef67.js +0 -30
  157. package/dist/ketchup/p-79b0730b.js +0 -15
  158. package/dist/ketchup/p-9f00ad0f.js +0 -1
  159. package/dist/ketchup/p-be61dd36.entry.js +0 -39
  160. package/dist/ketchup/p-e83e70e2.entry.js +0 -1
@@ -1 +1 @@
1
- import{h as c}from"./p-d4ece435.js";import{F as i}from"./p-9f00ad0f.js";import{K as e,l as s,b as n}from"./p-5292ef67.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
+ 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}
@@ -43,7 +43,9 @@ export declare enum KupEchartMaps {
43
43
  WORLD = "world"
44
44
  }
45
45
  export declare enum KupEchartTypes {
46
+ AREA = "Area",
46
47
  BAR = "Bar",
48
+ HBAR = "HBar",
47
49
  GAUSSIAN = "Gaussian",
48
50
  LINE = "Line",
49
51
  MAP = "Map",
@@ -72,6 +72,8 @@ export declare class KupImage {
72
72
  private kupManager;
73
73
  kupClick: EventEmitter<KupImageClickEventPayload>;
74
74
  onKupClick(e: Event): void;
75
+ kupLoad: EventEmitter<KupImageClickEventPayload>;
76
+ onKupLoad(e: Event): void;
75
77
  /**
76
78
  * Used to retrieve component's props values.
77
79
  * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
@@ -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.
@@ -37,13 +39,25 @@ export declare enum KupPlannerProps {
37
39
  titleMess = "Message displayed on top"
38
40
  }
39
41
  export declare enum KupPlannerTaskAction {
40
- onOpening = "onOpening",
41
- onClosing = "onClosing"
42
+ onTaskOpening = "onTaskOpening",
43
+ onTaskClosing = "onTaskClosing",
44
+ onClick = "onClick",
45
+ onResize = "onResize",
46
+ onRightClick = "onRightClick"
42
47
  }
43
48
  export interface KupPlannerEventPayload extends KupEventPayload {
44
49
  value: GanttRow;
45
50
  taskAction?: KupPlannerTaskAction;
46
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
+ }
47
61
  export declare enum KupPlannerGanttRowType {
48
62
  TASK = "task",
49
63
  PHASE = "phase",
@@ -56,6 +70,7 @@ export interface KupPlannerGanttTask extends GanttTask {
56
70
  }
57
71
  export interface KupPlannerDetail extends Detail {
58
72
  rowType: KupPlannerGanttRowType;
73
+ detailRow: KupDataRow;
59
74
  }
60
75
  export interface KupPlannerPhase extends Phase {
61
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 fForecast detail duration, from (firstDate) to (secondDate)
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): 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: GanttRow): 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 fForecast detail duration, from (firstDate) to (secondDate)
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
@@ -5483,6 +5498,7 @@ declare namespace LocalJSX {
5483
5498
  */
5484
5499
  "isCanvas"?: boolean;
5485
5500
  "onKup-image-click"?: (event: KupImageCustomEvent<KupImageClickEventPayload>) => void;
5501
+ "onKup-image-load"?: (event: KupImageCustomEvent<KupImageClickEventPayload>) => void;
5486
5502
  /**
5487
5503
  * The resource used to fetch the image.
5488
5504
  * @default null
@@ -5783,6 +5799,11 @@ declare namespace LocalJSX {
5783
5799
  * @default null
5784
5800
  */
5785
5801
  "detailHeight"?: number;
5802
+ /**
5803
+ * Column containing icon name to show, for detail
5804
+ * @default null
5805
+ */
5806
+ "detailIconCol"?: string;
5786
5807
  /**
5787
5808
  * Column containing unique detail identifier
5788
5809
  * @default null
@@ -5794,7 +5815,7 @@ declare namespace LocalJSX {
5794
5815
  */
5795
5816
  "detailNameCol"?: string;
5796
5817
  /**
5797
- * Columns containing fForecast detail duration, from (firstDate) to (secondDate)
5818
+ * Columns containing forecast detail duration, from (firstDate) to (secondDate)
5798
5819
  * @default null
5799
5820
  */
5800
5821
  "detailPrevDates"?: string[];
@@ -5809,6 +5830,10 @@ declare namespace LocalJSX {
5809
5830
  */
5810
5831
  "maxWidth"?: string;
5811
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;
5812
5837
  "onKup-planner-datechange"?: (event: KupPlannerCustomEvent<KupPlannerEventPayload>) => void;
5813
5838
  "onKup-planner-ready"?: (event: KupPlannerCustomEvent<KupPlannerEventPayload>) => void;
5814
5839
  /**
@@ -5831,6 +5856,11 @@ declare namespace LocalJSX {
5831
5856
  * @default null
5832
5857
  */
5833
5858
  "phaseDates"?: string[];
5859
+ /**
5860
+ * Column containing icon name to show, for phase
5861
+ * @default null
5862
+ */
5863
+ "phaseIconCol"?: string;
5834
5864
  /**
5835
5865
  * Column containing unique phase identifier
5836
5866
  * @default null
@@ -5866,6 +5896,11 @@ declare namespace LocalJSX {
5866
5896
  * @default null
5867
5897
  */
5868
5898
  "taskHeight"?: number;
5899
+ /**
5900
+ * Column containing icon name to show, for task
5901
+ * @default null
5902
+ */
5903
+ "taskIconCol"?: string;
5869
5904
  /**
5870
5905
  * Column containing unique task identifier
5871
5906
  * @default null
@@ -12,6 +12,7 @@ export interface FImageProps extends FComponent {
12
12
  sizeX?: string;
13
13
  sizeY?: string;
14
14
  onClick?: (event: MouseEvent) => void;
15
+ onLoad?: (event: Event) => void;
15
16
  }
16
17
  /**
17
18
  * The object of a single step of CSS when the f-image is in CSS-drawing mode.
@@ -15,7 +15,7 @@ export interface KupLanguageJSON {
15
15
  */
16
16
  export interface KupLanguageElement {
17
17
  keys: GenericObject;
18
- variants: {
18
+ variants?: {
19
19
  keys: GenericObject;
20
20
  };
21
21
  }
@@ -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.
@@ -93,6 +93,7 @@ export declare enum KupTagNames {
93
93
  MAGIC_BOX = "KUP-MAGIC-BOX",
94
94
  NAV_BAR = "KUP-NAV-BAR",
95
95
  NUMERIC_PICKER = "KUP-NUMERIC-PICKER",
96
+ PLANNER = "KUP-PLANNER",
96
97
  PROBE = "KUP-PROBE",
97
98
  PROGRESS_BAR = "KUP-PROGRESS-BAR",
98
99
  QLIK = "KUP-QLIK",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup",
3
- "version": "7.4.2",
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.20",
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",
@@ -61,24 +62,11 @@
61
62
  "vanilla-picker": "^2.12.1"
62
63
  },
63
64
  "devDependencies": {
64
- "@stencil/core": "^3.1.0",
65
- "@stencil/sass": "^1.4.1",
66
- "@stencil/react-output-target": "0.3.1",
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",
65
+ "@stencil/core": "^3.2.0",
66
+ "@stencil/sass": "^3.0.0",
67
+ "@stencil/react-output-target": "0.5.0",
80
68
  "rimraf": "^3.0.2",
81
- "sass": "^1.50.1"
69
+ "sass": "^1.60.0"
82
70
  },
83
71
  "repository": {
84
72
  "type": "git",