@sme.up/ketchup 7.4.2 → 7.5.0-SNAPSHOT

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 (134) hide show
  1. package/dist/cjs/{f-button-daddd700.js → f-button-a508a0a1.js} +2 -2
  2. package/dist/cjs/{f-cell-3682fad4.js → f-cell-52d724f5.js} +6 -6
  3. package/dist/cjs/{f-checkbox-593f72c3.js → f-checkbox-1148e791.js} +1 -1
  4. package/dist/cjs/{f-chip-9d540d94.js → f-chip-cbb70aed.js} +3 -3
  5. package/dist/cjs/{f-image-7b42d149.js → f-image-510563ed.js} +5 -5
  6. package/dist/cjs/{f-paginator-utils-1baeba0f.js → f-paginator-utils-ff531caa.js} +3 -3
  7. package/dist/cjs/{f-text-field-a6ed2d22.js → f-text-field-d17e5aa0.js} +2 -2
  8. package/dist/cjs/{index-74433248.js → index-1f177abc.js} +0 -3
  9. package/dist/cjs/ketchup.cjs.js +2 -2
  10. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +20 -14
  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 +7 -7
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -9
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +5 -5
  21. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  25. package/dist/cjs/{kup-manager-10351449.js → kup-manager-9e1680dd.js} +4 -1
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-planner.cjs.entry.js +114 -54
  30. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/collection/collection-manifest.json +1 -1
  35. package/dist/collection/components/kup-card/kup-card.css +4 -8
  36. package/dist/collection/components/kup-dashboard/kup-dashboard.js +0 -3
  37. package/dist/collection/components/kup-data-table/kup-data-table.css +3 -6
  38. package/dist/collection/components/kup-data-table/kup-data-table.js +1 -4
  39. package/dist/collection/components/kup-family-tree/kup-family-tree.css +2 -2
  40. package/dist/collection/components/kup-image/kup-image.js +28 -0
  41. package/dist/collection/components/kup-list/kup-list.css +1 -1
  42. package/dist/collection/components/kup-planner/kup-planner-declarations.js +4 -2
  43. package/dist/collection/components/kup-planner/kup-planner.css +5 -0
  44. package/dist/collection/components/kup-planner/kup-planner.js +65 -13
  45. package/dist/collection/components/kup-qlik/kup-qlik.css +4 -8
  46. package/dist/collection/components/kup-spinner/kup-spinner.css +2 -4
  47. package/dist/collection/f-components/f-image/f-image.js +3 -3
  48. package/dist/collection/managers/kup-data/kup-data-column-helper.js +1 -0
  49. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  50. package/dist/collection/types/GenericTypes.js +1 -0
  51. package/dist/components/kup-autocomplete2.js +17 -8
  52. package/dist/components/kup-dashboard.js +0 -3
  53. package/dist/components/kup-family-tree.js +1 -1
  54. package/dist/components/kup-planner.js +109 -53
  55. package/dist/components/kup-qlik.js +1 -1
  56. package/dist/esm/{f-button-8d15b5a0.js → f-button-b7f77b26.js} +2 -2
  57. package/dist/esm/{f-cell-7b706e57.js → f-cell-dc3beffe.js} +6 -6
  58. package/dist/esm/{f-checkbox-ec85b437.js → f-checkbox-9b3f5f5b.js} +1 -1
  59. package/dist/esm/{f-chip-c671fe90.js → f-chip-0a678211.js} +3 -3
  60. package/dist/esm/{f-image-21451b15.js → f-image-f84dbd7c.js} +5 -5
  61. package/dist/esm/{f-paginator-utils-92bbf277.js → f-paginator-utils-52902bd6.js} +3 -3
  62. package/dist/esm/{f-text-field-0bb2d109.js → f-text-field-7dd143be.js} +2 -2
  63. package/dist/esm/{index-b326ffc9.js → index-8bd38435.js} +1 -3
  64. package/dist/esm/ketchup.js +3 -3
  65. package/dist/esm/kup-accordion.entry.js +3 -3
  66. package/dist/esm/kup-autocomplete_27.entry.js +20 -14
  67. package/dist/esm/kup-box.entry.js +10 -10
  68. package/dist/esm/kup-calendar.entry.js +5 -5
  69. package/dist/esm/kup-cell.entry.js +7 -7
  70. package/dist/esm/kup-dash-list.entry.js +2 -2
  71. package/dist/esm/kup-dash_2.entry.js +2 -2
  72. package/dist/esm/kup-dashboard.entry.js +6 -9
  73. package/dist/esm/kup-drawer.entry.js +2 -2
  74. package/dist/esm/kup-echart.entry.js +2 -2
  75. package/dist/esm/kup-family-tree.entry.js +5 -5
  76. package/dist/esm/kup-iframe.entry.js +2 -2
  77. package/dist/esm/kup-image-list.entry.js +8 -8
  78. package/dist/esm/kup-lazy.entry.js +2 -2
  79. package/dist/esm/kup-magic-box.entry.js +3 -3
  80. package/dist/esm/{kup-manager-6145d980.js → kup-manager-a5ab58a0.js} +4 -1
  81. package/dist/esm/kup-nav-bar.entry.js +2 -2
  82. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  83. package/dist/esm/kup-photo-frame.entry.js +2 -2
  84. package/dist/esm/kup-planner.entry.js +114 -54
  85. package/dist/esm/kup-probe.entry.js +2 -2
  86. package/dist/esm/kup-qlik.entry.js +3 -3
  87. package/dist/esm/kup-snackbar.entry.js +4 -4
  88. package/dist/esm/loader.js +3 -3
  89. package/dist/ketchup/ketchup.esm.js +1 -1
  90. package/dist/ketchup/{p-89ac80c1.entry.js → p-00fc0f80.entry.js} +1 -1
  91. package/dist/ketchup/{p-c222d070.entry.js → p-166257d0.entry.js} +1 -1
  92. package/dist/ketchup/{p-ea16ddc0.js → p-28efed63.js} +1 -1
  93. package/dist/ketchup/{p-281cff81.entry.js → p-3ae1409f.entry.js} +1 -1
  94. package/dist/ketchup/p-4fd6c34c.js +30 -0
  95. package/dist/ketchup/{p-2915a66a.entry.js → p-6022c951.entry.js} +1 -1
  96. package/dist/ketchup/{p-826c91d7.js → p-69f3b9da.js} +1 -1
  97. package/dist/ketchup/p-7040cab7.entry.js +1 -0
  98. package/dist/ketchup/{p-7cfdce27.js → p-7065b172.js} +1 -1
  99. package/dist/ketchup/p-71cb80ac.entry.js +9 -0
  100. package/dist/ketchup/{p-da37c417.entry.js → p-78d1fc60.entry.js} +1 -1
  101. package/dist/ketchup/{p-32517a99.entry.js → p-871cfe60.entry.js} +1 -1
  102. package/dist/ketchup/{p-e83e70e2.entry.js → p-8d0e6825.entry.js} +1 -1
  103. package/dist/ketchup/{p-4d039705.entry.js → p-98ff4101.entry.js} +1 -1
  104. package/dist/ketchup/{p-439ac105.entry.js → p-9ae47a0d.entry.js} +1 -1
  105. package/dist/ketchup/{p-d4ece435.js → p-9dcfbb1e.js} +2 -2
  106. package/dist/ketchup/{p-c26975bf.js → p-9f9b6656.js} +1 -1
  107. package/dist/ketchup/{p-e4975ffa.entry.js → p-a122b8d3.entry.js} +1 -1
  108. package/dist/ketchup/{p-a641780a.entry.js → p-a32cc181.entry.js} +1 -1
  109. package/dist/ketchup/{p-0c1cbf8b.entry.js → p-beb0907a.entry.js} +1 -1
  110. package/dist/ketchup/{p-ae4fffe0.js → p-c5c6a2fb.js} +1 -1
  111. package/dist/ketchup/{p-1242366a.entry.js → p-c797ab39.entry.js} +1 -1
  112. package/dist/ketchup/p-d1e3573f.js +1 -0
  113. package/dist/ketchup/{p-2a2dc2a8.entry.js → p-d2670436.entry.js} +1 -1
  114. package/dist/ketchup/{p-0c9b7c80.entry.js → p-d315f7fa.entry.js} +1 -1
  115. package/dist/ketchup/{p-d87fb5ff.entry.js → p-d711e9ae.entry.js} +1 -1
  116. package/dist/ketchup/{p-c4d9e3e2.js → p-de34eb56.js} +1 -1
  117. package/dist/ketchup/{p-76bf53df.entry.js → p-e92d1972.entry.js} +1 -1
  118. package/dist/ketchup/p-efb80719.entry.js +1 -0
  119. package/dist/ketchup/p-f158836b.entry.js +39 -0
  120. package/dist/ketchup/p-f69a6d89.entry.js +10 -0
  121. package/dist/types/components/kup-image/kup-image.d.ts +2 -0
  122. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +4 -2
  123. package/dist/types/components/kup-planner/kup-planner.d.ts +2 -2
  124. package/dist/types/components.d.ts +1 -0
  125. package/dist/types/f-components/f-image/f-image-declarations.d.ts +1 -0
  126. package/dist/types/types/GenericTypes.d.ts +1 -0
  127. package/package.json +5 -5
  128. package/dist/ketchup/p-02a26d59.entry.js +0 -9
  129. package/dist/ketchup/p-462475ac.entry.js +0 -10
  130. package/dist/ketchup/p-5292ef67.js +0 -30
  131. package/dist/ketchup/p-849ad5d8.entry.js +0 -1
  132. package/dist/ketchup/p-9f00ad0f.js +0 -1
  133. package/dist/ketchup/p-be61dd36.entry.js +0 -39
  134. package/dist/ketchup/p-c022824e.entry.js +0 -1
@@ -50,7 +50,7 @@
50
50
  display: flex;
51
51
  flex-direction: column;
52
52
  height: 0;
53
- transform: translateX(calc( ( var(--kup_familytree_item_width) + (var(--kup_familytree_item_h_padding) * 2) ) / 2 )) translateY(calc( 0px - ( var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * (var(--kup_familytree_item_v_padding) * 2) ) ));
53
+ transform: translateX(calc((var(--kup_familytree_item_width) + var(--kup_familytree_item_h_padding) * 2) / 2)) translateY(calc(0px - (var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)));
54
54
  }
55
55
  .family-tree__node__staff__item {
56
56
  padding: var(--kup_familytree_item_v_padding);
@@ -74,7 +74,7 @@
74
74
  height: calc(var(--kup_familytree_item_height) / 2);
75
75
  }
76
76
  .family-tree__line--staff {
77
- height: calc( var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * (var(--kup_familytree_item_v_padding) * 2) );
77
+ height: calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2);
78
78
  }
79
79
  .family-tree__line--right {
80
80
  border-right: 2px solid var(--kup_familytree_lines_color);
@@ -34,6 +34,13 @@ export class KupImage {
34
34
  el: e.target,
35
35
  });
36
36
  }
37
+ onKupLoad(e) {
38
+ this.kupLoad.emit({
39
+ comp: this,
40
+ id: this.rootElement.id,
41
+ el: e.target,
42
+ });
43
+ }
37
44
  /*-------------------------------------------------*/
38
45
  /* P u b l i c M e t h o d s */
39
46
  /*-------------------------------------------------*/
@@ -113,6 +120,7 @@ export class KupImage {
113
120
  sizeX: this.sizeX,
114
121
  sizeY: this.sizeY,
115
122
  onClick: (e) => this.onKupClick(e),
123
+ onLoad: (e) => this.onKupLoad(e),
116
124
  };
117
125
  let elStyle = {
118
126
  height: props.sizeY,
@@ -376,6 +384,26 @@ export class KupImage {
376
384
  }
377
385
  }
378
386
  }
387
+ }, {
388
+ "method": "kupLoad",
389
+ "name": "kup-image-load",
390
+ "bubbles": true,
391
+ "cancelable": false,
392
+ "composed": true,
393
+ "docs": {
394
+ "tags": [],
395
+ "text": ""
396
+ },
397
+ "complexType": {
398
+ "original": "KupImageClickEventPayload",
399
+ "resolved": "KupImageClickEventPayload",
400
+ "references": {
401
+ "KupImageClickEventPayload": {
402
+ "location": "import",
403
+ "path": "./kup-image-declarations"
404
+ }
405
+ }
406
+ }
379
407
  }];
380
408
  }
381
409
  static get methods() {
@@ -72,7 +72,7 @@
72
72
  -ms-flex-pack: start;
73
73
  justify-content: flex-start;
74
74
  padding-left: var(--kup_list_item_padding_left);
75
- padding-right: calc( var(--kup_list_item_padding_left) + var(--kup_list_item_expand_padding, 0px) );
75
+ padding-right: calc(var(--kup_list_item_padding_left) + var(--kup_list_item_expand_padding, 0px));
76
76
  overflow: hidden;
77
77
  outline: none;
78
78
  transition: background-color var(--kup_list_transition), color var(--kup_list_transition);
@@ -34,8 +34,10 @@ export var KupPlannerProps;
34
34
  })(KupPlannerProps || (KupPlannerProps = {}));
35
35
  export var KupPlannerTaskAction;
36
36
  (function (KupPlannerTaskAction) {
37
- KupPlannerTaskAction["onOpening"] = "onOpening";
38
- KupPlannerTaskAction["onClosing"] = "onClosing";
37
+ KupPlannerTaskAction["onTaskOpening"] = "onTaskOpening";
38
+ KupPlannerTaskAction["onTaskClosing"] = "onTaskClosing";
39
+ KupPlannerTaskAction["onClick"] = "onClick";
40
+ KupPlannerTaskAction["onResize"] = "onResize";
39
41
  })(KupPlannerTaskAction || (KupPlannerTaskAction = {}));
40
42
  export var KupPlannerGanttRowType;
41
43
  (function (KupPlannerGanttRowType) {
@@ -484,4 +484,9 @@
484
484
  }
485
485
  :host {
486
486
  display: block;
487
+ }
488
+
489
+ .filter {
490
+ margin: 12px 10px 12px 0;
491
+ padding: 0 10px;
487
492
  }
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
14
14
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
15
15
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16
16
  };
17
- var _KupPlanner_instances, _KupPlanner_kupManager, _KupPlanner_rootPlanner, _KupPlanner_lastOnChangeReceived, _KupPlanner_renderReactPlannerElement, _KupPlanner_toTasks, _KupPlanner_toDetails, _KupPlanner_getTask, _KupPlanner_removePhases, _KupPlanner_handleOnClickOnTask, _KupPlanner_handleOnClickOnPhase, _KupPlanner_handleOnClickOnDetail, _KupPlanner_emitOnChangeEventsReceived;
17
+ var _KupPlanner_instances, _KupPlanner_kupManager, _KupPlanner_rootPlanner, _KupPlanner_lastOnChangeReceived, _KupPlanner_renderReactPlannerElement, _KupPlanner_toTasks, _KupPlanner_toDetails, _KupPlanner_getTask, _KupPlanner_removePhases, _KupPlanner_handleOnClickOnTask, _KupPlanner_handleOnClickOnPhase, _KupPlanner_handleOnClickOnDetail, _KupPlanner_emitOnChangeEventsReceived, _KupPlanner_onFilter;
18
18
  import { forceUpdate, h, Host, } from '@stencil/core';
19
19
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
20
20
  import { defaultStylingOptions, KupPlannerLastOnChangeReceived, KupPlannerProps, KupPlannerTaskAction, KupPlannerGanttRowType, } from './kup-planner-declarations';
@@ -25,6 +25,10 @@ import React from 'react';
25
25
  import { Planner, } from '@sme.up/gantt-component';
26
26
  import { getCellValueForDisplay } from '../../utils/cell-utils';
27
27
  import { getValuesToShow, isAtLeastOneDateValid, sanitizeAllDates, } from './kup-planner-helper';
28
+ import { FTextField } from '../../f-components/f-text-field/f-text-field';
29
+ import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
30
+ import { KupThemeIconValues } from '../../managers/kup-theme/kup-theme-declarations';
31
+ import { KupLanguageSearch } from '../../managers/kup-language/kup-language-declarations';
28
32
  export class KupPlanner {
29
33
  constructor() {
30
34
  _KupPlanner_instances.add(this);
@@ -71,11 +75,12 @@ export class KupPlanner {
71
75
  taskAction: taskAction,
72
76
  });
73
77
  }
74
- onKupDateChange(event) {
78
+ onKupDateChange(event, taskAction) {
75
79
  this.kupDateChange.emit({
76
80
  comp: this,
77
81
  id: this.rootElement.id,
78
82
  value: event,
83
+ taskAction: taskAction,
79
84
  });
80
85
  }
81
86
  /*-------------------------------------------------*/
@@ -141,32 +146,34 @@ export class KupPlanner {
141
146
  this.plannerProps = Object.assign({}, this.plannerProps);
142
147
  }
143
148
  handleOnClick(nativeEvent) {
144
- console.log('handleOnClick', nativeEvent);
149
+ console.log('kup-planner.handleOnClick', nativeEvent);
145
150
  switch (nativeEvent.rowType) {
146
151
  case KupPlannerGanttRowType.TASK:
147
152
  const taskAction = nativeEvent.phases
148
- ? KupPlannerTaskAction.onClosing
149
- : KupPlannerTaskAction.onOpening;
153
+ ? KupPlannerTaskAction.onTaskClosing
154
+ : KupPlannerTaskAction.onTaskOpening;
150
155
  if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnTask).call(this, nativeEvent)) {
151
156
  this.onKupClick(nativeEvent, taskAction);
152
157
  }
153
158
  break;
154
159
  case KupPlannerGanttRowType.PHASE:
155
160
  if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnPhase).call(this)) {
156
- this.onKupClick(nativeEvent);
161
+ this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
157
162
  }
158
163
  break;
159
164
  case KupPlannerGanttRowType.DETAIL:
160
165
  if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnDetail).call(this)) {
161
- this.onKupClick(nativeEvent);
166
+ this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
162
167
  }
163
168
  break;
164
169
  }
165
170
  }
166
171
  handleOnDateChange(nativeEvent) {
167
172
  if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_emitOnChangeEventsReceived).call(this, nativeEvent)) {
168
- console.log('handleOnDateChange', nativeEvent);
169
- this.onKupDateChange(nativeEvent);
173
+ if (nativeEvent.rowType != KupPlannerGanttRowType.DETAIL) {
174
+ console.log('kup-planner.handleOnDateChange', nativeEvent);
175
+ this.onKupDateChange(nativeEvent, KupPlannerTaskAction.onResize);
176
+ }
170
177
  }
171
178
  }
172
179
  componentWillLoad() {
@@ -178,11 +185,18 @@ export class KupPlanner {
178
185
  if (details && details.length == 0) {
179
186
  details = undefined;
180
187
  }
188
+ const mainFilter = this.rootElement.shadowRoot.querySelector('#main-filter');
189
+ FTextFieldMDC(mainFilter);
190
+ const secondaryFilter = this.rootElement.shadowRoot.querySelector('#secondary-filter');
191
+ if (details) {
192
+ FTextFieldMDC(secondaryFilter);
193
+ }
181
194
  this.plannerProps = {
182
195
  mainGantt: {
183
196
  title: this.titleMess,
184
197
  items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toTasks).call(this, this.data),
185
198
  stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
199
+ filter: mainFilter,
186
200
  hideLabel: true,
187
201
  ganttHeight: this.taskHeight,
188
202
  showSecondaryDates: this.showSecondaryDates,
@@ -194,6 +208,7 @@ export class KupPlanner {
194
208
  title: '',
195
209
  items: details,
196
210
  stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
211
+ filter: secondaryFilter,
197
212
  hideLabel: true,
198
213
  ganttHeight: this.detailHeight,
199
214
  onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
@@ -201,7 +216,6 @@ export class KupPlanner {
201
216
  }
202
217
  : undefined,
203
218
  };
204
- console.log('kup-planner.tsx componentDidLoad plannerProps', this.plannerProps);
205
219
  __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_renderReactPlannerElement).call(this);
206
220
  this.kupReady.emit({
207
221
  comp: this,
@@ -217,8 +231,17 @@ export class KupPlanner {
217
231
  __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logRender(this, true);
218
232
  }
219
233
  render() {
234
+ var _a;
220
235
  //console.log('kup-planner.tsx render');
221
- return (h(Host, null, h("div", { id: componentWrapperId, style: { maxWidth: this.maxWidth } })));
236
+ return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: { maxWidth: this.maxWidth } }), h(FTextField, { icon: KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
237
+ if (e.key === 'Enter') {
238
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e);
239
+ }
240
+ }, wrapperClass: "filter" }), ((_a = this.detailData) === null || _a === void 0 ? void 0 : _a.rows) && this.detailData.rows.length > 0 ? (h(FTextField, { icon: KupThemeIconValues.SEARCH, id: "secondary-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
241
+ if (e.key === 'Enter') {
242
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e, true);
243
+ }
244
+ }, wrapperClass: "filter" })) : null));
222
245
  }
223
246
  disconnectedCallback() {
224
247
  __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.unregister(this);
@@ -1008,6 +1031,7 @@ _KupPlanner_kupManager = new WeakMap(), _KupPlanner_rootPlanner = new WeakMap(),
1008
1031
  data.rows
1009
1032
  .filter((row) => isAtLeastOneDateValid(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]))
1010
1033
  .forEach((row) => {
1034
+ var _a, _b;
1011
1035
  const detailId = row.cells[this.detailIdCol].value;
1012
1036
  const detailNameId = row.cells[this.detailNameCol].value;
1013
1037
  const datesSanitized = sanitizeAllDates(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]);
@@ -1028,10 +1052,10 @@ _KupPlanner_kupManager = new WeakMap(), _KupPlanner_rootPlanner = new WeakMap(),
1028
1052
  startDate: datesSanitized.dateValues[0],
1029
1053
  endDate: datesSanitized.dateValues[1],
1030
1054
  color: this.detailColorCol
1031
- ? row.cells[this.detailColorCol].value
1055
+ ? (_a = row.cells[this.detailColorCol].value) !== null && _a !== void 0 ? _a : '#D9D9D8'
1032
1056
  : '#D9D9D8',
1033
1057
  selectedColor: this.detailColorCol
1034
- ? row.cells[this.detailColorCol].value
1058
+ ? (_b = row.cells[this.detailColorCol].value) !== null && _b !== void 0 ? _b : '#D9D9D8'
1035
1059
  : '#D9D9D8',
1036
1060
  });
1037
1061
  });
@@ -1067,4 +1091,32 @@ _KupPlanner_kupManager = new WeakMap(), _KupPlanner_rootPlanner = new WeakMap(),
1067
1091
  emitEvent = true;
1068
1092
  }
1069
1093
  return emitEvent;
1094
+ }, _KupPlanner_onFilter = function _KupPlanner_onFilter(e, isDetail) {
1095
+ const tempData = {
1096
+ columns: this.data.columns,
1097
+ rows: [],
1098
+ };
1099
+ const value = e.target.value;
1100
+ const data = isDetail ? this.detailData : this.data;
1101
+ for (let index = 0; index < data.rows.length; index++) {
1102
+ const row = data.rows[index];
1103
+ const valuesToShow = isDetail
1104
+ ? getValuesToShow(row, this.detailIdCol, this.detailNameCol, data.columns, this.detailColumns)
1105
+ : getValuesToShow(row, this.taskIdCol, this.taskNameCol, data.columns, this.taskColumns);
1106
+ for (let index = 0; index < valuesToShow.length; index++) {
1107
+ const valueToShow = valuesToShow[index];
1108
+ if (valueToShow.toLowerCase().indexOf(value.toLowerCase()) > -1) {
1109
+ tempData.rows.push(row);
1110
+ break;
1111
+ }
1112
+ }
1113
+ }
1114
+ const newGantt = isDetail
1115
+ ? {
1116
+ secondaryGantt: Object.assign(Object.assign({}, this.plannerProps.secondaryGantt), { items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toDetails).call(this, tempData) }),
1117
+ }
1118
+ : {
1119
+ mainGantt: Object.assign(Object.assign({}, this.plannerProps.mainGantt), { items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toTasks).call(this, tempData) }),
1120
+ };
1121
+ this.plannerProps = Object.assign(Object.assign({}, this.plannerProps), newGantt);
1070
1122
  };
@@ -10,7 +10,6 @@
10
10
  .kup-qlik-container {
11
11
  width: 576px;
12
12
  }
13
-
14
13
  .kup-qlik-row > .qvobject {
15
14
  flex: 0 0 auto;
16
15
  min-width: 100px;
@@ -21,7 +20,6 @@
21
20
  .kup-qlik-container {
22
21
  width: 768px;
23
22
  }
24
-
25
23
  .kup-qlik-row > .qvobject {
26
24
  flex: 0 0 auto;
27
25
  min-width: 100px;
@@ -32,7 +30,6 @@
32
30
  .kup-qlik-container {
33
31
  width: 992px;
34
32
  }
35
-
36
33
  .kup-qlik-row > .qvobject {
37
34
  flex: 0 0 auto;
38
35
  min-width: 100px;
@@ -43,7 +40,6 @@
43
40
  .kup-qlik-container {
44
41
  width: 1200px;
45
42
  }
46
-
47
43
  .kup-qlik-row > .qvobject {
48
44
  flex: 0 0 auto;
49
45
  min-width: 100px;
@@ -61,16 +57,16 @@
61
57
  height: var(--lyo_obj-height);
62
58
  }
63
59
  .kup-qlik-row .size-S {
64
- height: calc(var(--lyo_obj-height)/2);
60
+ height: calc(var(--lyo_obj-height) / 2);
65
61
  }
66
62
  .kup-qlik-row .size-XS {
67
- height: calc(var(--lyo_obj-height)/3);
63
+ height: calc(var(--lyo_obj-height) / 3);
68
64
  }
69
65
  .kup-qlik-row .size-L {
70
- height: calc(var(--lyo_obj-height)*2);
66
+ height: calc(var(--lyo_obj-height) * 2);
71
67
  }
72
68
  .kup-qlik-row .size-XL {
73
- height: calc(var(--lyo_obj-height)*3);
69
+ height: calc(var(--lyo_obj-height) * 3);
74
70
  }
75
71
  .kup-qlik-row .bordered {
76
72
  border: 1px solid var(--kup-border-color, #969696);
@@ -779,8 +779,7 @@
779
779
  @keyframes sk-spinner-bar-v1 {
780
780
  from {
781
781
  left: -25%;
782
- background: var(--kup-spinner-color);
783
- /* fallback */
782
+ background: var(--kup-spinner-color); /* fallback */
784
783
  background: linear-gradient(to left, var(--kup-spinner-color) 0, rgba(255, 255, 255, 0) 100%);
785
784
  }
786
785
  50% {
@@ -788,8 +787,7 @@
788
787
  }
789
788
  to {
790
789
  left: -25%;
791
- background: var(--kup-spinner-color);
792
- /* fallback */
790
+ background: var(--kup-spinner-color); /* fallback */
793
791
  background: linear-gradient(to right, var(--kup-spinner-color) 0, rgba(255, 255, 255, 0) 100%);
794
792
  }
795
793
  }
@@ -15,7 +15,7 @@ export const FImage = (props) => {
15
15
  '--kup_image_height': props.sizeY ? props.sizeY : 'auto',
16
16
  '--kup_image_width': props.sizeX ? props.sizeX : '100%',
17
17
  };
18
- el = createImage(props.resource);
18
+ el = createImage(props);
19
19
  }
20
20
  else {
21
21
  style = {
@@ -64,8 +64,8 @@ function createIcon(props) {
64
64
  }
65
65
  return h("div", { class: classObj, style: style });
66
66
  }
67
- function createImage(resource) {
68
- return h("img", { src: resource });
67
+ function createImage(props) {
68
+ return h("img", { onLoad: props.onLoad, src: props.resource });
69
69
  }
70
70
  function createBar(data) {
71
71
  const steps = [];
@@ -104,6 +104,7 @@ function newColumnFromConcatenate(dataset, columns, separator) {
104
104
  const message = 'The product of these columns in the same order already exists!(' +
105
105
  columns.toString() +
106
106
  ')';
107
+ col.visible = true;
107
108
  dom.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
108
109
  return message;
109
110
  }
@@ -112,6 +112,7 @@ export const fTextFieldUsers = [
112
112
  KupTagNames.DATE_PICKER,
113
113
  KupTagNames.FORM,
114
114
  KupTagNames.NUMERIC_PICKER,
115
+ KupTagNames.PLANNER,
115
116
  KupTagNames.TEXT_FIELD,
116
117
  KupTagNames.TIME_PICKER,
117
118
  KupTagNames.TREE,
@@ -37,6 +37,7 @@ export var KupTagNames;
37
37
  KupTagNames["MAGIC_BOX"] = "KUP-MAGIC-BOX";
38
38
  KupTagNames["NAV_BAR"] = "KUP-NAV-BAR";
39
39
  KupTagNames["NUMERIC_PICKER"] = "KUP-NUMERIC-PICKER";
40
+ KupTagNames["PLANNER"] = "KUP-PLANNER";
40
41
  KupTagNames["PROBE"] = "KUP-PROBE";
41
42
  KupTagNames["PROGRESS_BAR"] = "KUP-PROGRESS-BAR";
42
43
  KupTagNames["QLIK"] = "KUP-QLIK";
@@ -5573,6 +5573,7 @@ var KupTagNames;
5573
5573
  KupTagNames["MAGIC_BOX"] = "KUP-MAGIC-BOX";
5574
5574
  KupTagNames["NAV_BAR"] = "KUP-NAV-BAR";
5575
5575
  KupTagNames["NUMERIC_PICKER"] = "KUP-NUMERIC-PICKER";
5576
+ KupTagNames["PLANNER"] = "KUP-PLANNER";
5576
5577
  KupTagNames["PROBE"] = "KUP-PROBE";
5577
5578
  KupTagNames["PROGRESS_BAR"] = "KUP-PROGRESS-BAR";
5578
5579
  KupTagNames["QLIK"] = "KUP-QLIK";
@@ -5701,6 +5702,7 @@ const fTextFieldUsers = [
5701
5702
  KupTagNames.DATE_PICKER,
5702
5703
  KupTagNames.FORM,
5703
5704
  KupTagNames.NUMERIC_PICKER,
5705
+ KupTagNames.PLANNER,
5704
5706
  KupTagNames.TEXT_FIELD,
5705
5707
  KupTagNames.TIME_PICKER,
5706
5708
  KupTagNames.TREE,
@@ -8115,6 +8117,7 @@ function newColumnFromConcatenate(dataset, columns, separator) {
8115
8117
  const message = 'The product of these columns in the same order already exists!(' +
8116
8118
  columns.toString() +
8117
8119
  ')';
8120
+ col.visible = true;
8118
8121
  dom$l.ketchup.debug.logMessage('kup-data', message, KupDebugCategory.WARNING);
8119
8122
  return message;
8120
8123
  }
@@ -19356,7 +19359,7 @@ const FImage = (props) => {
19356
19359
  '--kup_image_height': props.sizeY ? props.sizeY : 'auto',
19357
19360
  '--kup_image_width': props.sizeX ? props.sizeX : '100%',
19358
19361
  };
19359
- el = createImage(props.resource);
19362
+ el = createImage(props);
19360
19363
  }
19361
19364
  else {
19362
19365
  style = {
@@ -19407,8 +19410,8 @@ function createIcon(props) {
19407
19410
  }
19408
19411
  return h("div", { class: classObj, style: style });
19409
19412
  }
19410
- function createImage(resource) {
19411
- return h("img", { src: resource });
19413
+ function createImage(props) {
19414
+ return h("img", { onLoad: props.onLoad, src: props.resource });
19412
19415
  }
19413
19416
  function createBar(data) {
19414
19417
  const steps = [];
@@ -35218,7 +35221,7 @@ function defineCustomElement$i() {
35218
35221
  } });
35219
35222
  }
35220
35223
 
35221
- const kupListCss = ":host{--kup_list_background:var(\n --kup-list-background,\n var(--kup-background-color)\n );--kup_list_color:var(--kup-list-color, var(--kup-text-color));--kup_list_font_family:var(--kup-list-font-family, var(--kup-font-family));--kup_list_font_size:var(--kup-list-font-size, var(--kup-font-size));--kup_list_font_weight:var(--kup-list-font-weight, 400);--kup_list_group_item_height:var(--kup-list-group-item-height, 3em);--kup_list_item_height:var(--kup-list-item-height, 2.5em);--kup_list_item_padding_left:var(--kup-list-item-padding, 0.75em);--kup_list_item_padding_right:var(--kup-list-item-padding, 0.75em);--kup_list_max_height_as_menu:var(--kup-list-max-height-as-menu, 33vh);--kup_list_primary_color:var(\n --kup-list-primary-color,\n var(--kup-primary-color)\n );--kup_list_primary_color_rgb:var(\n --kup-list-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_list_separator_color:var(\n --kup-list-separator-color,\n rgba(var(--kup-text-color-rgb), 0.25)\n );--kup_list_transition:var(--kup-list-transition, 120ms);display:block;font-family:var(--kup_list_font_family);font-size:var(--kup_list_font_size);outline:none}.list{background:var(--kup_list_background);color:var(--kup_list_color);font-weight:var(--kup_list_font_weight);letter-spacing:0.009375em;line-height:1.5em;list-style-type:none;margin:0;padding:0.5em 0;text-decoration:inherit;text-transform:inherit}.list--empty{padding:0}.list .list-item{display:-ms-flexbox;display:flex;height:var(--kup_list_item_height);position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;padding-left:var(--kup_list_item_padding_left);padding-right:calc( var(--kup_list_item_padding_left) + var(--kup_list_item_expand_padding, 0px) );overflow:hidden;outline:none;transition:background-color var(--kup_list_transition), color var(--kup_list_transition)}.list .list-item[role=checkbox],.list .list-item[role=radio]{height:var(--kup_list_group_item_height)}.list .list-item.list-item--activated,.list .list-item.list-item--activated .list-item__graphic,.list .list-item.list-item--selected,.list .list-item.list-item--selected .list-item__graphic{background-color:rgba(var(--kup_list_primary_color_rgb), 0.175);color:var(--kup_list_primary_color)}.list .list-item .list-item__text{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.list .list-item .list-item__primary-text{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-top:0;line-height:normal;margin-bottom:-1.5em;display:block}.list .list-item .list-item__primary-text:before{display:inline-block;width:0;height:1.5em;content:\"\";vertical-align:0}.list .list-item .list-item__primary-text:after{display:inline-block;width:0;height:2em;content:\"\";vertical-align:-2em}.list .list-item .list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-o-text-overflow:ellipsis;-webkit-font-smoothing:antialiased;display:block;font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em;text-decoration:inherit;text-transform:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-top:0;line-height:normal;color:var(--kup_list_color);opacity:0.75}.list .list-item .kup-icon{margin:0;margin-right:0.75em}.list .list-item kup-checkbox{margin:0}.list .list-divider{background-color:var(--kup_list_separator_color);height:1px;padding:0;background-clip:content-box}.list.list--two-line .list-item{height:3.6em}.list.list--two-line .list-item__text{-ms-flex-item-align:start;align-self:flex-start}.list:not(.list--non-interactive)>:not(.list-item--disabled).list-item{cursor:pointer}.list:not(.list--non-interactive)>:not(.list-item--disabled).list-item label{cursor:pointer}.list:not(.list--non-interactive) .list-item:not(.list-item--selected):hover,.list:not(.list--non-interactive) .list-item:not(.list-item--selected).list-item--focused{background-color:var(--kup-hover-background-color);color:var(--kup-hover-color)}.list.text-hidden .list-item__text{display:none}.kup-menu{animation:fade-in 0.25s ease-out;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;max-height:var(--kup_list_max_height_as_menu);overflow:auto;position:relative;transform:none;transform-origin:unset;transition:height 0.2s;user-select:none;will-change:unset}.kup-menu.visible{display:block}.kup-menu .list-item__text{user-select:none}:host([nested-list]){--kup_list_item_expand_padding:1.5em;max-width:250px}:host([nested-list]) .kup-menu{max-height:unset;overflow:visible}:host([nested-list]) kup-list{display:none;left:100%;position:absolute;top:0}:host([nested-list]) .list-item{overflow:visible}:host([nested-list]) .list-item__expand-icon{position:absolute;right:0}:host([nested-list]) .list-item:hover kup-list{display:block}:host(.kup-paddingless) .list{padding:0}:host(.kup-danger){--kup-list-primary-color:var(--kup-danger-color);--kup-list-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-list-primary-color:var(--kup-info-color);--kup-list-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-list-primary-color:var(--kup-secondary-color);--kup-list-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-list-primary-color:var(--kup-success-color);--kup-list-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-list-primary-color:var(--kup-warning-color);--kup-list-primary-color-rgb:var(--kup-warning-color-rgb)}";
35224
+ const kupListCss = ":host{--kup_list_background:var(\n --kup-list-background,\n var(--kup-background-color)\n );--kup_list_color:var(--kup-list-color, var(--kup-text-color));--kup_list_font_family:var(--kup-list-font-family, var(--kup-font-family));--kup_list_font_size:var(--kup-list-font-size, var(--kup-font-size));--kup_list_font_weight:var(--kup-list-font-weight, 400);--kup_list_group_item_height:var(--kup-list-group-item-height, 3em);--kup_list_item_height:var(--kup-list-item-height, 2.5em);--kup_list_item_padding_left:var(--kup-list-item-padding, 0.75em);--kup_list_item_padding_right:var(--kup-list-item-padding, 0.75em);--kup_list_max_height_as_menu:var(--kup-list-max-height-as-menu, 33vh);--kup_list_primary_color:var(\n --kup-list-primary-color,\n var(--kup-primary-color)\n );--kup_list_primary_color_rgb:var(\n --kup-list-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_list_separator_color:var(\n --kup-list-separator-color,\n rgba(var(--kup-text-color-rgb), 0.25)\n );--kup_list_transition:var(--kup-list-transition, 120ms);display:block;font-family:var(--kup_list_font_family);font-size:var(--kup_list_font_size);outline:none}.list{background:var(--kup_list_background);color:var(--kup_list_color);font-weight:var(--kup_list_font_weight);letter-spacing:0.009375em;line-height:1.5em;list-style-type:none;margin:0;padding:0.5em 0;text-decoration:inherit;text-transform:inherit}.list--empty{padding:0}.list .list-item{display:-ms-flexbox;display:flex;height:var(--kup_list_item_height);position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;padding-left:var(--kup_list_item_padding_left);padding-right:calc(var(--kup_list_item_padding_left) + var(--kup_list_item_expand_padding, 0px));overflow:hidden;outline:none;transition:background-color var(--kup_list_transition), color var(--kup_list_transition)}.list .list-item[role=checkbox],.list .list-item[role=radio]{height:var(--kup_list_group_item_height)}.list .list-item.list-item--activated,.list .list-item.list-item--activated .list-item__graphic,.list .list-item.list-item--selected,.list .list-item.list-item--selected .list-item__graphic{background-color:rgba(var(--kup_list_primary_color_rgb), 0.175);color:var(--kup_list_primary_color)}.list .list-item .list-item__text{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.list .list-item .list-item__primary-text{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-top:0;line-height:normal;margin-bottom:-1.5em;display:block}.list .list-item .list-item__primary-text:before{display:inline-block;width:0;height:1.5em;content:\"\";vertical-align:0}.list .list-item .list-item__primary-text:after{display:inline-block;width:0;height:2em;content:\"\";vertical-align:-2em}.list .list-item .list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-o-text-overflow:ellipsis;-webkit-font-smoothing:antialiased;display:block;font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em;text-decoration:inherit;text-transform:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-top:0;line-height:normal;color:var(--kup_list_color);opacity:0.75}.list .list-item .kup-icon{margin:0;margin-right:0.75em}.list .list-item kup-checkbox{margin:0}.list .list-divider{background-color:var(--kup_list_separator_color);height:1px;padding:0;background-clip:content-box}.list.list--two-line .list-item{height:3.6em}.list.list--two-line .list-item__text{-ms-flex-item-align:start;align-self:flex-start}.list:not(.list--non-interactive)>:not(.list-item--disabled).list-item{cursor:pointer}.list:not(.list--non-interactive)>:not(.list-item--disabled).list-item label{cursor:pointer}.list:not(.list--non-interactive) .list-item:not(.list-item--selected):hover,.list:not(.list--non-interactive) .list-item:not(.list-item--selected).list-item--focused{background-color:var(--kup-hover-background-color);color:var(--kup-hover-color)}.list.text-hidden .list-item__text{display:none}.kup-menu{animation:fade-in 0.25s ease-out;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;max-height:var(--kup_list_max_height_as_menu);overflow:auto;position:relative;transform:none;transform-origin:unset;transition:height 0.2s;user-select:none;will-change:unset}.kup-menu.visible{display:block}.kup-menu .list-item__text{user-select:none}:host([nested-list]){--kup_list_item_expand_padding:1.5em;max-width:250px}:host([nested-list]) .kup-menu{max-height:unset;overflow:visible}:host([nested-list]) kup-list{display:none;left:100%;position:absolute;top:0}:host([nested-list]) .list-item{overflow:visible}:host([nested-list]) .list-item__expand-icon{position:absolute;right:0}:host([nested-list]) .list-item:hover kup-list{display:block}:host(.kup-paddingless) .list{padding:0}:host(.kup-danger){--kup-list-primary-color:var(--kup-danger-color);--kup-list-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-list-primary-color:var(--kup-info-color);--kup-list-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-list-primary-color:var(--kup-secondary-color);--kup-list-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-list-primary-color:var(--kup-success-color);--kup-list-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-list-primary-color:var(--kup-warning-color);--kup-list-primary-color-rgb:var(--kup-warning-color-rgb)}";
35222
35225
 
35223
35226
  var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
35224
35227
  if (kind === "a" && !f)
@@ -35805,6 +35808,7 @@ const KupImage = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
35805
35808
  this.__registerHost();
35806
35809
  this.__attachShadow();
35807
35810
  this.kupClick = createEvent(this, "kup-image-click", 6);
35811
+ this.kupLoad = createEvent(this, "kup-image-load", 6);
35808
35812
  /**
35809
35813
  * True when the resource is an URL.
35810
35814
  */
@@ -35830,6 +35834,13 @@ const KupImage = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
35830
35834
  el: e.target,
35831
35835
  });
35832
35836
  }
35837
+ onKupLoad(e) {
35838
+ this.kupLoad.emit({
35839
+ comp: this,
35840
+ id: this.rootElement.id,
35841
+ el: e.target,
35842
+ });
35843
+ }
35833
35844
  /*-------------------------------------------------*/
35834
35845
  /* P u b l i c M e t h o d s */
35835
35846
  /*-------------------------------------------------*/
@@ -35909,6 +35920,7 @@ const KupImage = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
35909
35920
  sizeX: this.sizeX,
35910
35921
  sizeY: this.sizeY,
35911
35922
  onClick: (e) => this.onKupClick(e),
35923
+ onLoad: (e) => this.onKupLoad(e),
35912
35924
  };
35913
35925
  let elStyle = {
35914
35926
  height: props.sizeY,
@@ -39064,10 +39076,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$
39064
39076
  */
39065
39077
  async newColumn(type, options) {
39066
39078
  const result = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.new(this.data, type, options);
39067
- const error = !!(typeof result === 'string' || result instanceof String);
39068
- if (!error) {
39069
- this.refresh();
39070
- }
39079
+ this.refresh();
39071
39080
  return result;
39072
39081
  }
39073
39082
  /**
@@ -211,9 +211,6 @@ const KupDashboard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
211
211
  break;
212
212
  }
213
213
  }
214
- //console.log(
215
- // `pointer: ${pointerX}:${pointerY} - vertical: ${vertical} - index: ${idx}`
216
- //);
217
214
  return idx;
218
215
  }
219
216
  didRenderInteractables() {
@@ -18,7 +18,7 @@ var KupFamilyTreeProps;
18
18
  KupFamilyTreeProps["stackedLeaves"] = "Child nodes that have no children are arranged vertically.";
19
19
  })(KupFamilyTreeProps || (KupFamilyTreeProps = {}));
20
20
 
21
- const kupFamilyTreeCss = ":host{--kup_familytree_item_background_color:var(\n --kup-familytree-item-background-color,\n var(--kup-background-color)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_height:var(--kup-familytree-item-height, 80px);--kup_familytree_item_h_padding:var(--kup-familytree-item-h-padding, 8px);--kup_familytree_item_v_padding:var(--kup-familytree-item-v-padding, 10px);--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-color)\n );display:block;overflow:hidden}.family-tree{cursor:grab;display:flex;transform:scale(var(--kup_familytree_scale, 1));transform-origin:0px 0px}.family-tree--dragging{cursor:grabbing}.family-tree__node{border-collapse:collapse;margin:auto}.family-tree__node--stacked{margin-bottom:4px}.family-tree__node__staff{align-items:center;display:flex;flex-direction:column;height:0;transform:translateX(calc( ( var(--kup_familytree_item_width) + (var(--kup_familytree_item_h_padding) * 2) ) / 2 )) translateY(calc( 0px - ( var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * (var(--kup_familytree_item_v_padding) * 2) ) ))}.family-tree__node__staff__item{padding:var(--kup_familytree_item_v_padding);text-align:left}.family-tree__node__staff__item:before{border-top:2px solid var(--kup_familytree_lines_color);content:\"\";position:absolute;transform:translateX(calc(100% + 2px)) translateY(calc(var(--kup_familytree_item_height) / 2));width:var(--kup_familytree_item_h_padding)}.family-tree__node td{vertical-align:top;padding:0}.family-tree__line--left{border-left:2px solid var(--kup_familytree_lines_color)}.family-tree__line--placeholder{height:calc(var(--kup_familytree_item_height) / 2)}.family-tree__line--staff{height:calc( var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * (var(--kup_familytree_item_v_padding) * 2) )}.family-tree__line--right{border-right:2px solid var(--kup_familytree_lines_color)}.family-tree__line--top{border-top:2px solid var(--kup_familytree_lines_color)}.family-tree__line--vertical{background-color:var(--kup_familytree_lines_color);margin-left:auto;margin-right:auto;width:2px}.family-tree__item{display:flex}.family-tree__item__wrapper{margin:auto}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 18px;width:var(--kup_familytree_item_width);z-index:1}.family-tree__item__wrapper .f-button{--kup-button-primary-color:var(--kup-text-color);--kup-button-primary-color-rgb:var(--kup-text-color-rgb);--kup-button-primary-color-h:var(--kup-text-color-h);--kup-button-primary-color-s:var(--kup-text-color-s);--kup-button-primary-color-l:var(--kup-text-color-l);margin:0 auto;width:max-content}.family-tree__item__wrapper .f-button button{height:32px;width:32px}.family-tree__item__layout{background-color:var(--kup_familytree_item_background_color);border:1px solid var(--kup_familytree_lines_color);border-radius:8px;box-sizing:border-box;display:flex;height:var(--kup_familytree_item_height);margin:0 18px;width:var(--kup_familytree_item_width)}.family-tree__item__layout--1{justify-content:center;color:var(--kup_familytree_item_color)}.family-tree__item__layout--1>.family-tree__item__layout__text__title{margin-top:auto;margin-bottom:auto}.family-tree__item__layout--2{background-color:var(--kup_familytree_item_background_color);justify-content:flex-start}.family-tree__item__layout__color{background-color:var(--kup-secondary-color);border-bottom-left-radius:8px;border-top-left-radius:8px;height:100%;width:10px}.family-tree__item__layout__image{display:flex;margin:auto 10px}.family-tree__item__layout__image img{border-radius:50px;object-fit:cover}.family-tree__item__layout__text{display:flex;flex-direction:column;justify-content:center}.family-tree__item__layout__text__title{font-size:18px;margin-bottom:5px}.family-tree__item__layout__text__subtitle{font-size:14px}.family-tree__item__layout__text__title,.family-tree__item__layout__text__subtitle{max-width:calc(var(--kup_familytree_item_width) - 30%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
21
+ const kupFamilyTreeCss = ":host{--kup_familytree_item_background_color:var(\n --kup-familytree-item-background-color,\n var(--kup-background-color)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_height:var(--kup-familytree-item-height, 80px);--kup_familytree_item_h_padding:var(--kup-familytree-item-h-padding, 8px);--kup_familytree_item_v_padding:var(--kup-familytree-item-v-padding, 10px);--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-color)\n );display:block;overflow:hidden}.family-tree{cursor:grab;display:flex;transform:scale(var(--kup_familytree_scale, 1));transform-origin:0px 0px}.family-tree--dragging{cursor:grabbing}.family-tree__node{border-collapse:collapse;margin:auto}.family-tree__node--stacked{margin-bottom:4px}.family-tree__node__staff{align-items:center;display:flex;flex-direction:column;height:0;transform:translateX(calc((var(--kup_familytree_item_width) + var(--kup_familytree_item_h_padding) * 2) / 2)) translateY(calc(0px - (var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)))}.family-tree__node__staff__item{padding:var(--kup_familytree_item_v_padding);text-align:left}.family-tree__node__staff__item:before{border-top:2px solid var(--kup_familytree_lines_color);content:\"\";position:absolute;transform:translateX(calc(100% + 2px)) translateY(calc(var(--kup_familytree_item_height) / 2));width:var(--kup_familytree_item_h_padding)}.family-tree__node td{vertical-align:top;padding:0}.family-tree__line--left{border-left:2px solid var(--kup_familytree_lines_color)}.family-tree__line--placeholder{height:calc(var(--kup_familytree_item_height) / 2)}.family-tree__line--staff{height:calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)}.family-tree__line--right{border-right:2px solid var(--kup_familytree_lines_color)}.family-tree__line--top{border-top:2px solid var(--kup_familytree_lines_color)}.family-tree__line--vertical{background-color:var(--kup_familytree_lines_color);margin-left:auto;margin-right:auto;width:2px}.family-tree__item{display:flex}.family-tree__item__wrapper{margin:auto}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 18px;width:var(--kup_familytree_item_width);z-index:1}.family-tree__item__wrapper .f-button{--kup-button-primary-color:var(--kup-text-color);--kup-button-primary-color-rgb:var(--kup-text-color-rgb);--kup-button-primary-color-h:var(--kup-text-color-h);--kup-button-primary-color-s:var(--kup-text-color-s);--kup-button-primary-color-l:var(--kup-text-color-l);margin:0 auto;width:max-content}.family-tree__item__wrapper .f-button button{height:32px;width:32px}.family-tree__item__layout{background-color:var(--kup_familytree_item_background_color);border:1px solid var(--kup_familytree_lines_color);border-radius:8px;box-sizing:border-box;display:flex;height:var(--kup_familytree_item_height);margin:0 18px;width:var(--kup_familytree_item_width)}.family-tree__item__layout--1{justify-content:center;color:var(--kup_familytree_item_color)}.family-tree__item__layout--1>.family-tree__item__layout__text__title{margin-top:auto;margin-bottom:auto}.family-tree__item__layout--2{background-color:var(--kup_familytree_item_background_color);justify-content:flex-start}.family-tree__item__layout__color{background-color:var(--kup-secondary-color);border-bottom-left-radius:8px;border-top-left-radius:8px;height:100%;width:10px}.family-tree__item__layout__image{display:flex;margin:auto 10px}.family-tree__item__layout__image img{border-radius:50px;object-fit:cover}.family-tree__item__layout__text{display:flex;flex-direction:column;justify-content:center}.family-tree__item__layout__text__title{font-size:18px;margin-bottom:5px}.family-tree__item__layout__text__subtitle{font-size:14px}.family-tree__item__layout__text__title,.family-tree__item__layout__text__subtitle{max-width:calc(var(--kup_familytree_item_width) - 30%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
22
22
 
23
23
  var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
24
24
  if (kind === "a" && !f)