@sme.up/ketchup 6.5.0 → 6.7.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 (209) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-4e2a0bb6.js → f-button-bf76ab95.js} +2 -2
  3. package/dist/cjs/{f-cell-1fc8a8b6.js → f-cell-b7a1524a.js} +25 -23
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-7867f17b.js → f-chip-a5e100b1.js} +3 -3
  6. package/dist/cjs/{f-image-6b7a6168.js → f-image-d80a2749.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-b7712403.js → f-paginator-utils-c70812fe.js} +3 -5
  8. package/dist/cjs/{f-text-field-153e827c.js → f-text-field-48b8bb16.js} +2 -2
  9. package/dist/cjs/{index-31125378.js → index-ffdb46f6.js} +423 -252
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +433 -163
  13. package/dist/cjs/kup-box.cjs.entry.js +27 -16
  14. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +19 -7
  22. package/dist/cjs/kup-form.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-image-list.cjs.entry.js +9 -9
  25. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  27. package/dist/cjs/{kup-manager-cfe2f36e.js → kup-manager-0e38bf48.js} +39 -26
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/collection/assets/box.js +9 -6
  36. package/dist/collection/assets/card.js +12 -2
  37. package/dist/collection/collection-manifest.json +3 -3
  38. package/dist/collection/components/kup-accordion/kup-accordion.js +239 -234
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +545 -530
  40. package/dist/collection/components/kup-badge/kup-badge.js +176 -170
  41. package/dist/collection/components/kup-box/kup-box.js +907 -913
  42. package/dist/collection/components/kup-button/kup-button.css +1 -0
  43. package/dist/collection/components/kup-button/kup-button.js +379 -370
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +251 -240
  45. package/dist/collection/components/kup-calendar/kup-calendar.js +301 -300
  46. package/dist/collection/components/kup-card/box/kup-card-box.js +115 -0
  47. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
  48. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
  49. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  50. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
  51. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  52. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  53. package/dist/collection/components/kup-card/kup-card-declarations.js +2 -0
  54. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  55. package/dist/collection/components/kup-card/kup-card.css +140 -20
  56. package/dist/collection/components/kup-card/kup-card.js +352 -340
  57. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  58. package/dist/collection/components/kup-card/standard/kup-card-standard.js +96 -304
  59. package/dist/collection/components/kup-cell/kup-cell.js +221 -216
  60. package/dist/collection/components/kup-chart/kup-chart.js +547 -537
  61. package/dist/collection/components/kup-checkbox/kup-checkbox.js +275 -266
  62. package/dist/collection/components/kup-chip/kup-chip.js +240 -231
  63. package/dist/collection/components/kup-color-picker/kup-color-picker.js +274 -264
  64. package/dist/collection/components/kup-combobox/kup-combobox.js +458 -440
  65. package/dist/collection/components/kup-dash/kup-dash.js +110 -158
  66. package/dist/collection/components/kup-dash-list/kup-dash-list.js +210 -213
  67. package/dist/collection/components/kup-dashboard/kup-dashboard.js +196 -203
  68. package/dist/collection/components/kup-data-table/kup-data-table.js +1932 -1838
  69. package/dist/collection/components/kup-date-picker/kup-date-picker.js +408 -394
  70. package/dist/collection/components/kup-drawer/kup-drawer.js +244 -236
  71. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +474 -464
  72. package/dist/collection/components/kup-echart/kup-echart.js +436 -423
  73. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +1 -0
  74. package/dist/collection/components/kup-family-tree/kup-family-tree.js +420 -398
  75. package/dist/collection/components/kup-form/kup-form.js +223 -225
  76. package/dist/collection/components/kup-gauge/kup-gauge.js +445 -445
  77. package/dist/collection/components/kup-grid/kup-grid.js +156 -153
  78. package/dist/collection/components/kup-iframe/kup-iframe.js +181 -173
  79. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  80. package/dist/collection/components/kup-image/kup-image.js +300 -295
  81. package/dist/collection/components/kup-image-list/kup-image-list.js +292 -285
  82. package/dist/collection/components/kup-lazy/kup-lazy.js +253 -253
  83. package/dist/collection/components/kup-list/kup-list.js +541 -504
  84. package/dist/collection/components/kup-magic-box/kup-magic-box.js +145 -145
  85. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +190 -184
  86. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +490 -478
  87. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +254 -242
  88. package/dist/collection/components/kup-probe/kup-probe.js +87 -83
  89. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +237 -241
  90. package/dist/collection/components/kup-qlik/kup-qlik.js +178 -170
  91. package/dist/collection/components/kup-radio/kup-radio.js +258 -255
  92. package/dist/collection/components/kup-rating/kup-rating.js +208 -197
  93. package/dist/collection/components/kup-snackbar/kup-snackbar.js +249 -246
  94. package/dist/collection/components/kup-spinner/kup-spinner.js +274 -269
  95. package/dist/collection/components/kup-switch/kup-switch.js +255 -246
  96. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +265 -224
  97. package/dist/collection/components/kup-text-field/kup-text-field.js +814 -805
  98. package/dist/collection/components/kup-time-picker/kup-time-picker.js +464 -450
  99. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -2
  100. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  101. package/dist/collection/components/kup-tree/kup-tree.js +1134 -1133
  102. package/dist/collection/f-components/f-button/f-button.js +11 -20
  103. package/dist/collection/f-components/f-cell/f-cell.js +23 -23
  104. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  105. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  106. package/dist/collection/f-components/f-image/f-image.js +1 -3
  107. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  108. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  109. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  110. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  111. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  112. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  113. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  114. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  115. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  116. package/dist/esm/{f-button-a24e43dd.js → f-button-e79f7594.js} +2 -2
  117. package/dist/esm/{f-cell-ebbb0c06.js → f-cell-9400374e.js} +25 -23
  118. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  119. package/dist/esm/{f-chip-e2c38ba8.js → f-chip-bf740287.js} +3 -3
  120. package/dist/esm/{f-image-7e02e88f.js → f-image-ab3dc8cb.js} +2 -2
  121. package/dist/esm/{f-paginator-utils-e6d2638f.js → f-paginator-utils-6909e43b.js} +3 -5
  122. package/dist/esm/{f-text-field-8438a278.js → f-text-field-4841dfea.js} +2 -2
  123. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  124. package/dist/esm/ketchup.js +3 -3
  125. package/dist/esm/kup-accordion.entry.js +3 -3
  126. package/dist/esm/kup-autocomplete_25.entry.js +433 -163
  127. package/dist/esm/kup-box.entry.js +27 -16
  128. package/dist/esm/kup-calendar.entry.js +5 -5
  129. package/dist/esm/kup-cell.entry.js +7 -7
  130. package/dist/esm/kup-dash-list.entry.js +2 -2
  131. package/dist/esm/kup-dash_2.entry.js +2 -2
  132. package/dist/esm/kup-dashboard.entry.js +6 -6
  133. package/dist/esm/kup-drawer.entry.js +2 -2
  134. package/dist/esm/kup-echart.entry.js +2 -2
  135. package/dist/esm/kup-family-tree.entry.js +19 -7
  136. package/dist/esm/kup-form.entry.js +8 -8
  137. package/dist/esm/kup-iframe.entry.js +2 -2
  138. package/dist/esm/kup-image-list.entry.js +9 -9
  139. package/dist/esm/kup-lazy.entry.js +2 -2
  140. package/dist/esm/kup-magic-box.entry.js +3 -3
  141. package/dist/esm/{kup-manager-7c27e90e.js → kup-manager-c54e6df5.js} +22 -9
  142. package/dist/esm/kup-nav-bar.entry.js +2 -2
  143. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  144. package/dist/esm/kup-photo-frame.entry.js +2 -2
  145. package/dist/esm/kup-probe.entry.js +2 -2
  146. package/dist/esm/kup-qlik.entry.js +2 -2
  147. package/dist/esm/kup-snackbar.entry.js +4 -4
  148. package/dist/esm/loader.js +3 -3
  149. package/dist/esm/polyfills/css-shim.js +1 -1
  150. package/dist/ketchup/ketchup.esm.js +1 -1
  151. package/dist/ketchup/{p-191096ff.entry.js → p-182b869e.entry.js} +1 -1
  152. package/dist/ketchup/p-1dfd2a51.js +30 -0
  153. package/dist/ketchup/{p-b502b91b.entry.js → p-1f5c7f21.entry.js} +1 -1
  154. package/dist/ketchup/p-22ec1ba0.entry.js +9 -0
  155. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  156. package/dist/ketchup/{p-26acb448.js → p-25bf0cb6.js} +1 -1
  157. package/dist/ketchup/{p-601a50db.entry.js → p-260ff835.entry.js} +1 -1
  158. package/dist/ketchup/{p-5a703573.entry.js → p-2e184b57.entry.js} +1 -1
  159. package/dist/ketchup/{p-45415b72.entry.js → p-30a63b85.entry.js} +1 -1
  160. package/dist/ketchup/{p-cc663bad.entry.js → p-313e376b.entry.js} +1 -1
  161. package/dist/ketchup/{p-e0ed3fd7.entry.js → p-41620707.entry.js} +1 -1
  162. package/dist/ketchup/{p-25875aa1.entry.js → p-4a0ccf18.entry.js} +1 -1
  163. package/dist/ketchup/{p-3decc8e4.js → p-4f0d3062.js} +1 -1
  164. package/dist/ketchup/p-4fdb684f.js +2 -0
  165. package/dist/ketchup/{p-52590a90.entry.js → p-53d3ae80.entry.js} +1 -1
  166. package/dist/ketchup/{p-92595296.js → p-5bea2971.js} +1 -1
  167. package/dist/ketchup/{p-a782ebd1.entry.js → p-60fa0ccf.entry.js} +1 -1
  168. package/dist/ketchup/p-6333388c.js +1 -0
  169. package/dist/ketchup/{p-2003a841.entry.js → p-6bd57787.entry.js} +1 -1
  170. package/dist/ketchup/p-758d03f4.entry.js +1 -0
  171. package/dist/ketchup/{p-2f009c42.entry.js → p-7e7b6127.entry.js} +1 -1
  172. package/dist/ketchup/p-8386e3db.entry.js +1 -0
  173. package/dist/ketchup/{p-23111c8d.entry.js → p-859163c2.entry.js} +1 -1
  174. package/dist/ketchup/{p-97f28bbd.entry.js → p-8e1fa7a8.entry.js} +6 -6
  175. package/dist/ketchup/{p-ca98059c.entry.js → p-90860d9e.entry.js} +1 -1
  176. package/dist/ketchup/{p-b131b257.entry.js → p-b7fdc7aa.entry.js} +1 -1
  177. package/dist/ketchup/{p-3138cabb.entry.js → p-bffaef6e.entry.js} +1 -1
  178. package/dist/ketchup/p-c35c5e05.js +1 -0
  179. package/dist/ketchup/{p-1468bf09.js → p-e1d0ea71.js} +1 -1
  180. package/dist/ketchup/p-f9d5e553.entry.js +1 -0
  181. package/dist/ketchup/{p-69dd11da.entry.js → p-fb4d772a.entry.js} +1 -1
  182. package/dist/loader/package.json +1 -0
  183. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  184. package/dist/types/components/kup-card/box/kup-card-box.d.ts +26 -0
  185. package/dist/types/components/kup-card/kup-card-declarations.d.ts +2 -0
  186. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  187. package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +0 -6
  188. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -1
  189. package/dist/types/components/kup-data-table/kup-data-table.d.ts +15 -1
  190. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +1 -0
  191. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +5 -0
  192. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  193. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  194. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +0 -4
  195. package/dist/types/components/kup-tree/kup-tree.d.ts +18 -12
  196. package/dist/types/components.d.ts +43 -16
  197. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  198. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  199. package/dist/types/stencil-public-runtime.d.ts +15 -4
  200. package/package.json +3 -2
  201. package/CHANGELOG.md +0 -5
  202. package/dist/ketchup/p-753c82d8.js +0 -1
  203. package/dist/ketchup/p-77600efd.entry.js +0 -9
  204. package/dist/ketchup/p-88722265.js +0 -1
  205. package/dist/ketchup/p-9027e5ac.js +0 -30
  206. package/dist/ketchup/p-aa564df8.entry.js +0 -1
  207. package/dist/ketchup/p-b0b3989b.js +0 -2
  208. package/dist/ketchup/p-b238f9ea.entry.js +0 -1
  209. package/dist/ketchup/p-b4f85d34.entry.js +0 -1
@@ -1,16 +1,21 @@
1
1
  var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2
+ if (kind === "a" && !f)
3
+ throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
5
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
6
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
7
  };
6
8
  var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
- if (kind === "m") throw new TypeError("Private method is not writable");
8
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
9
+ if (kind === "m")
10
+ throw new TypeError("Private method is not writable");
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a setter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
15
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
16
  };
12
17
  var _KupFamilyTree_instances, _KupFamilyTree_clickTimeout, _KupFamilyTree_hold, _KupFamilyTree_currentPanX, _KupFamilyTree_currentPanY, _KupFamilyTree_interactableTouch, _KupFamilyTree_kupManager, _KupFamilyTree_moveCb, _KupFamilyTree_shouldAutofit, _KupFamilyTree_wrapperEl, _KupFamilyTree_buildChildLine, _KupFamilyTree_buildNode, _KupFamilyTree_buildNodeLayout, _KupFamilyTree_buildNodeLayout1, _KupFamilyTree_buildNodeLayout2, _KupFamilyTree_buildNodes, _KupFamilyTree_createTree, _KupFamilyTree_isBoxLayout, _KupFamilyTree_startPanning, _KupFamilyTree_getEventPath, _KupFamilyTree_getEventDetails, _KupFamilyTree_clickHandler, _KupFamilyTree_contextMenuHandler, _KupFamilyTree_dblClickHandler, _KupFamilyTree_didLoadInteractables, _KupFamilyTree_zoomTree;
13
- import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
18
+ import { forceUpdate, h, Host, } from '@stencil/core';
14
19
  import { FButton } from '../../f-components/f-button/f-button';
15
20
  import { FButtonStyling, } from '../../f-components/f-button/f-button-declarations';
16
21
  import { FImage } from '../../f-components/f-image/f-image';
@@ -36,6 +41,11 @@ export class KupFamilyTree {
36
41
  * @default true
37
42
  */
38
43
  this.autofitOnLoad = true;
44
+ /**
45
+ * Used to render the family tree boxes as kup-cards (through kup-box).
46
+ * @default null
47
+ */
48
+ this.cardData = null;
39
49
  /**
40
50
  * Nodes can be expanded/collapsed.
41
51
  * @default true
@@ -180,9 +190,7 @@ export class KupFamilyTree {
180
190
  __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_startPanning).call(this, e);
181
191
  }, onWheel: (e) => {
182
192
  __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_zoomTree).call(this, e);
183
- } },
184
- h("style", null, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)),
185
- h("div", { id: componentWrapperId }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_createTree).call(this))));
193
+ } }, h("style", null, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_createTree).call(this))));
186
194
  }
187
195
  disconnectedCallback() {
188
196
  __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.unregister(this);
@@ -190,374 +198,408 @@ export class KupFamilyTree {
190
198
  }
191
199
  static get is() { return "kup-family-tree"; }
192
200
  static get encapsulation() { return "shadow"; }
193
- static get originalStyleUrls() { return {
194
- "$": ["kup-family-tree.scss"]
195
- }; }
196
- static get styleUrls() { return {
197
- "$": ["kup-family-tree.css"]
198
- }; }
199
- static get properties() { return {
200
- "autofitOnExpand": {
201
- "type": "boolean",
202
- "mutable": false,
203
- "complexType": {
204
- "original": "boolean",
205
- "resolved": "boolean",
206
- "references": {}
207
- },
208
- "required": false,
209
- "optional": false,
210
- "docs": {
211
- "tags": [{
212
- "name": "default",
213
- "text": "true"
214
- }],
215
- "text": "The component will autofit everytime a node is expanded."
216
- },
217
- "attribute": "autofit-on-expand",
218
- "reflect": false,
219
- "defaultValue": "true"
220
- },
221
- "autofitOnLoad": {
222
- "type": "boolean",
223
- "mutable": false,
224
- "complexType": {
225
- "original": "boolean",
226
- "resolved": "boolean",
227
- "references": {}
228
- },
229
- "required": false,
230
- "optional": false,
231
- "docs": {
232
- "tags": [{
233
- "name": "default",
234
- "text": "true"
235
- }],
236
- "text": "The component's initial render will fit the container by invoking the runAutofit method."
201
+ static get originalStyleUrls() {
202
+ return {
203
+ "$": ["kup-family-tree.scss"]
204
+ };
205
+ }
206
+ static get styleUrls() {
207
+ return {
208
+ "$": ["kup-family-tree.css"]
209
+ };
210
+ }
211
+ static get properties() {
212
+ return {
213
+ "autofitOnExpand": {
214
+ "type": "boolean",
215
+ "mutable": false,
216
+ "complexType": {
217
+ "original": "boolean",
218
+ "resolved": "boolean",
219
+ "references": {}
220
+ },
221
+ "required": false,
222
+ "optional": false,
223
+ "docs": {
224
+ "tags": [{
225
+ "name": "default",
226
+ "text": "true"
227
+ }],
228
+ "text": "The component will autofit everytime a node is expanded."
229
+ },
230
+ "attribute": "autofit-on-expand",
231
+ "reflect": false,
232
+ "defaultValue": "true"
237
233
  },
238
- "attribute": "autofit-on-load",
239
- "reflect": false,
240
- "defaultValue": "true"
241
- },
242
- "collapsible": {
243
- "type": "boolean",
244
- "mutable": false,
245
- "complexType": {
246
- "original": "boolean",
247
- "resolved": "boolean",
248
- "references": {}
234
+ "autofitOnLoad": {
235
+ "type": "boolean",
236
+ "mutable": false,
237
+ "complexType": {
238
+ "original": "boolean",
239
+ "resolved": "boolean",
240
+ "references": {}
241
+ },
242
+ "required": false,
243
+ "optional": false,
244
+ "docs": {
245
+ "tags": [{
246
+ "name": "default",
247
+ "text": "true"
248
+ }],
249
+ "text": "The component's initial render will fit the container by invoking the runAutofit method."
250
+ },
251
+ "attribute": "autofit-on-load",
252
+ "reflect": false,
253
+ "defaultValue": "true"
249
254
  },
250
- "required": false,
251
- "optional": false,
252
- "docs": {
253
- "tags": [{
254
- "name": "default",
255
- "text": "true"
256
- }],
257
- "text": "Nodes can be expanded/collapsed."
255
+ "cardData": {
256
+ "type": "unknown",
257
+ "mutable": false,
258
+ "complexType": {
259
+ "original": "GenericObject",
260
+ "resolved": "GenericObject",
261
+ "references": {
262
+ "GenericObject": {
263
+ "location": "import",
264
+ "path": "../../types/GenericTypes"
265
+ }
266
+ }
267
+ },
268
+ "required": false,
269
+ "optional": false,
270
+ "docs": {
271
+ "tags": [{
272
+ "name": "default",
273
+ "text": "null"
274
+ }],
275
+ "text": "Used to render the family tree boxes as kup-cards (through kup-box)."
276
+ },
277
+ "defaultValue": "null"
258
278
  },
259
- "attribute": "collapsible",
260
- "reflect": false,
261
- "defaultValue": "true"
262
- },
263
- "customStyle": {
264
- "type": "string",
265
- "mutable": false,
266
- "complexType": {
267
- "original": "string",
268
- "resolved": "string",
269
- "references": {}
279
+ "collapsible": {
280
+ "type": "boolean",
281
+ "mutable": false,
282
+ "complexType": {
283
+ "original": "boolean",
284
+ "resolved": "boolean",
285
+ "references": {}
286
+ },
287
+ "required": false,
288
+ "optional": false,
289
+ "docs": {
290
+ "tags": [{
291
+ "name": "default",
292
+ "text": "true"
293
+ }],
294
+ "text": "Nodes can be expanded/collapsed."
295
+ },
296
+ "attribute": "collapsible",
297
+ "reflect": false,
298
+ "defaultValue": "true"
270
299
  },
271
- "required": false,
272
- "optional": false,
273
- "docs": {
274
- "tags": [{
275
- "name": "default",
276
- "text": "\"\""
277
- }, {
278
- "name": "see",
279
- "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
280
- }],
281
- "text": "Custom style of the component."
300
+ "customStyle": {
301
+ "type": "string",
302
+ "mutable": false,
303
+ "complexType": {
304
+ "original": "string",
305
+ "resolved": "string",
306
+ "references": {}
307
+ },
308
+ "required": false,
309
+ "optional": false,
310
+ "docs": {
311
+ "tags": [{
312
+ "name": "default",
313
+ "text": "\"\""
314
+ }, {
315
+ "name": "see",
316
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
317
+ }],
318
+ "text": "Custom style of the component."
319
+ },
320
+ "attribute": "custom-style",
321
+ "reflect": false,
322
+ "defaultValue": "''"
282
323
  },
283
- "attribute": "custom-style",
284
- "reflect": false,
285
- "defaultValue": "''"
286
- },
287
- "data": {
288
- "type": "unknown",
289
- "mutable": false,
290
- "complexType": {
291
- "original": "KupFamilyTreeData",
292
- "resolved": "KupFamilyTreeData",
293
- "references": {
294
- "KupFamilyTreeData": {
295
- "location": "import",
296
- "path": "./kup-family-tree-declarations"
324
+ "data": {
325
+ "type": "unknown",
326
+ "mutable": false,
327
+ "complexType": {
328
+ "original": "KupFamilyTreeData",
329
+ "resolved": "KupFamilyTreeData",
330
+ "references": {
331
+ "KupFamilyTreeData": {
332
+ "location": "import",
333
+ "path": "./kup-family-tree-declarations"
334
+ }
297
335
  }
298
- }
299
- },
300
- "required": false,
301
- "optional": false,
302
- "docs": {
303
- "tags": [{
304
- "name": "default",
305
- "text": "null"
306
- }],
307
- "text": "Actual data of the component."
336
+ },
337
+ "required": false,
338
+ "optional": false,
339
+ "docs": {
340
+ "tags": [{
341
+ "name": "default",
342
+ "text": "null"
343
+ }],
344
+ "text": "Actual data of the component."
345
+ },
346
+ "defaultValue": "null"
308
347
  },
309
- "defaultValue": "null"
310
- },
311
- "layout": {
312
- "type": "number",
313
- "mutable": false,
314
- "complexType": {
315
- "original": "KupFamilyTreeLayout",
316
- "resolved": "KupBoxLayout | number",
317
- "references": {
318
- "KupFamilyTreeLayout": {
319
- "location": "import",
320
- "path": "./kup-family-tree-declarations"
348
+ "layout": {
349
+ "type": "number",
350
+ "mutable": false,
351
+ "complexType": {
352
+ "original": "KupFamilyTreeLayout",
353
+ "resolved": "KupBoxLayout | number",
354
+ "references": {
355
+ "KupFamilyTreeLayout": {
356
+ "location": "import",
357
+ "path": "./kup-family-tree-declarations"
358
+ }
321
359
  }
322
- }
323
- },
324
- "required": false,
325
- "optional": false,
326
- "docs": {
327
- "tags": [{
328
- "name": "default",
329
- "text": "null"
330
- }],
331
- "text": "Layout of the boxes."
332
- },
333
- "attribute": "layout",
334
- "reflect": false,
335
- "defaultValue": "null"
336
- },
337
- "stackedLeaves": {
338
- "type": "boolean",
339
- "mutable": false,
340
- "complexType": {
341
- "original": "boolean",
342
- "resolved": "boolean",
343
- "references": {}
344
- },
345
- "required": false,
346
- "optional": false,
347
- "docs": {
348
- "tags": [{
349
- "name": "default",
350
- "text": "false"
351
- }],
352
- "text": "Child nodes that have no children are arranged vertically."
353
- },
354
- "attribute": "stacked-leaves",
355
- "reflect": false,
356
- "defaultValue": "false"
357
- }
358
- }; }
359
- static get events() { return [{
360
- "method": "kupClick",
361
- "name": "kup-familytree-click",
362
- "bubbles": true,
363
- "cancelable": false,
364
- "composed": true,
365
- "docs": {
366
- "tags": [],
367
- "text": ""
360
+ },
361
+ "required": false,
362
+ "optional": false,
363
+ "docs": {
364
+ "tags": [{
365
+ "name": "default",
366
+ "text": "null"
367
+ }],
368
+ "text": "Layout of the boxes."
369
+ },
370
+ "attribute": "layout",
371
+ "reflect": false,
372
+ "defaultValue": "null"
368
373
  },
369
- "complexType": {
370
- "original": "KupFamilyTreeEventPayload",
371
- "resolved": "KupFamilyTreeEventPayload",
372
- "references": {
373
- "KupFamilyTreeEventPayload": {
374
- "location": "import",
375
- "path": "./kup-family-tree-declarations"
374
+ "stackedLeaves": {
375
+ "type": "boolean",
376
+ "mutable": false,
377
+ "complexType": {
378
+ "original": "boolean",
379
+ "resolved": "boolean",
380
+ "references": {}
381
+ },
382
+ "required": false,
383
+ "optional": false,
384
+ "docs": {
385
+ "tags": [{
386
+ "name": "default",
387
+ "text": "false"
388
+ }],
389
+ "text": "Child nodes that have no children are arranged vertically."
390
+ },
391
+ "attribute": "stacked-leaves",
392
+ "reflect": false,
393
+ "defaultValue": "false"
394
+ }
395
+ };
396
+ }
397
+ static get events() {
398
+ return [{
399
+ "method": "kupClick",
400
+ "name": "kup-familytree-click",
401
+ "bubbles": true,
402
+ "cancelable": false,
403
+ "composed": true,
404
+ "docs": {
405
+ "tags": [],
406
+ "text": ""
407
+ },
408
+ "complexType": {
409
+ "original": "KupFamilyTreeEventPayload",
410
+ "resolved": "KupFamilyTreeEventPayload",
411
+ "references": {
412
+ "KupFamilyTreeEventPayload": {
413
+ "location": "import",
414
+ "path": "./kup-family-tree-declarations"
415
+ }
376
416
  }
377
417
  }
378
- }
379
- }, {
380
- "method": "kupContextMenu",
381
- "name": "kup-familytree-contextmenu",
382
- "bubbles": true,
383
- "cancelable": false,
384
- "composed": true,
385
- "docs": {
386
- "tags": [],
387
- "text": ""
388
- },
389
- "complexType": {
390
- "original": "KupFamilyTreeEventPayload",
391
- "resolved": "KupFamilyTreeEventPayload",
392
- "references": {
393
- "KupFamilyTreeEventPayload": {
394
- "location": "import",
395
- "path": "./kup-family-tree-declarations"
418
+ }, {
419
+ "method": "kupContextMenu",
420
+ "name": "kup-familytree-contextmenu",
421
+ "bubbles": true,
422
+ "cancelable": false,
423
+ "composed": true,
424
+ "docs": {
425
+ "tags": [],
426
+ "text": ""
427
+ },
428
+ "complexType": {
429
+ "original": "KupFamilyTreeEventPayload",
430
+ "resolved": "KupFamilyTreeEventPayload",
431
+ "references": {
432
+ "KupFamilyTreeEventPayload": {
433
+ "location": "import",
434
+ "path": "./kup-family-tree-declarations"
435
+ }
396
436
  }
397
437
  }
398
- }
399
- }, {
400
- "method": "kupDblClick",
401
- "name": "kup-familytree-dblclick",
402
- "bubbles": true,
403
- "cancelable": false,
404
- "composed": true,
405
- "docs": {
406
- "tags": [],
407
- "text": ""
408
- },
409
- "complexType": {
410
- "original": "KupFamilyTreeEventPayload",
411
- "resolved": "KupFamilyTreeEventPayload",
412
- "references": {
413
- "KupFamilyTreeEventPayload": {
414
- "location": "import",
415
- "path": "./kup-family-tree-declarations"
438
+ }, {
439
+ "method": "kupDblClick",
440
+ "name": "kup-familytree-dblclick",
441
+ "bubbles": true,
442
+ "cancelable": false,
443
+ "composed": true,
444
+ "docs": {
445
+ "tags": [],
446
+ "text": ""
447
+ },
448
+ "complexType": {
449
+ "original": "KupFamilyTreeEventPayload",
450
+ "resolved": "KupFamilyTreeEventPayload",
451
+ "references": {
452
+ "KupFamilyTreeEventPayload": {
453
+ "location": "import",
454
+ "path": "./kup-family-tree-declarations"
455
+ }
416
456
  }
417
457
  }
418
- }
419
- }]; }
420
- static get methods() { return {
421
- "collapseAll": {
422
- "complexType": {
423
- "signature": "(nodes?: KupFamilyTreeNode[]) => Promise<void>",
424
- "parameters": [{
425
- "tags": [],
426
- "text": ""
427
- }],
428
- "references": {
429
- "Promise": {
430
- "location": "global"
458
+ }];
459
+ }
460
+ static get methods() {
461
+ return {
462
+ "collapseAll": {
463
+ "complexType": {
464
+ "signature": "(nodes?: KupFamilyTreeNode[]) => Promise<void>",
465
+ "parameters": [{
466
+ "tags": [],
467
+ "text": ""
468
+ }],
469
+ "references": {
470
+ "Promise": {
471
+ "location": "global"
472
+ },
473
+ "KupFamilyTreeNode": {
474
+ "location": "import",
475
+ "path": "./kup-family-tree-declarations"
476
+ }
431
477
  },
432
- "KupFamilyTreeNode": {
433
- "location": "import",
434
- "path": "./kup-family-tree-declarations"
435
- }
478
+ "return": "Promise<void>"
436
479
  },
437
- "return": "Promise<void>"
480
+ "docs": {
481
+ "text": "Collapses all nodes.",
482
+ "tags": []
483
+ }
438
484
  },
439
- "docs": {
440
- "text": "Collapses all nodes.",
441
- "tags": []
442
- }
443
- },
444
- "expandAll": {
445
- "complexType": {
446
- "signature": "(nodes?: KupFamilyTreeNode[]) => Promise<void>",
447
- "parameters": [{
448
- "tags": [],
449
- "text": ""
450
- }],
451
- "references": {
452
- "Promise": {
453
- "location": "global"
485
+ "expandAll": {
486
+ "complexType": {
487
+ "signature": "(nodes?: KupFamilyTreeNode[]) => Promise<void>",
488
+ "parameters": [{
489
+ "tags": [],
490
+ "text": ""
491
+ }],
492
+ "references": {
493
+ "Promise": {
494
+ "location": "global"
495
+ },
496
+ "KupFamilyTreeNode": {
497
+ "location": "import",
498
+ "path": "./kup-family-tree-declarations"
499
+ }
454
500
  },
455
- "KupFamilyTreeNode": {
456
- "location": "import",
457
- "path": "./kup-family-tree-declarations"
458
- }
501
+ "return": "Promise<void>"
459
502
  },
460
- "return": "Promise<void>"
503
+ "docs": {
504
+ "text": "Expands all nodes.",
505
+ "tags": []
506
+ }
461
507
  },
462
- "docs": {
463
- "text": "Expands all nodes.",
464
- "tags": []
465
- }
466
- },
467
- "getProps": {
468
- "complexType": {
469
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
470
- "parameters": [{
471
- "tags": [{
472
- "name": "param",
473
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
474
- }],
475
- "text": "- When provided and true, the result will be the list of props with their description."
476
- }],
477
- "references": {
478
- "Promise": {
479
- "location": "global"
508
+ "getProps": {
509
+ "complexType": {
510
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
511
+ "parameters": [{
512
+ "tags": [{
513
+ "name": "param",
514
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
515
+ }],
516
+ "text": "- When provided and true, the result will be the list of props with their description."
517
+ }],
518
+ "references": {
519
+ "Promise": {
520
+ "location": "global"
521
+ },
522
+ "GenericObject": {
523
+ "location": "import",
524
+ "path": "../../types/GenericTypes"
525
+ }
480
526
  },
481
- "GenericObject": {
482
- "location": "import",
483
- "path": "../../types/GenericTypes"
484
- }
527
+ "return": "Promise<GenericObject>"
485
528
  },
486
- "return": "Promise<GenericObject>"
529
+ "docs": {
530
+ "text": "Used to retrieve component's props values.",
531
+ "tags": [{
532
+ "name": "param",
533
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
534
+ }, {
535
+ "name": "returns",
536
+ "text": "List of props as object, each key will be a prop."
537
+ }]
538
+ }
487
539
  },
488
- "docs": {
489
- "text": "Used to retrieve component's props values.",
490
- "tags": [{
491
- "name": "param",
492
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
493
- }, {
494
- "name": "returns",
495
- "text": "List of props as object, each key will be a prop."
496
- }]
497
- }
498
- },
499
- "refresh": {
500
- "complexType": {
501
- "signature": "() => Promise<void>",
502
- "parameters": [],
503
- "references": {
504
- "Promise": {
505
- "location": "global"
506
- }
540
+ "refresh": {
541
+ "complexType": {
542
+ "signature": "() => Promise<void>",
543
+ "parameters": [],
544
+ "references": {
545
+ "Promise": {
546
+ "location": "global"
547
+ }
548
+ },
549
+ "return": "Promise<void>"
507
550
  },
508
- "return": "Promise<void>"
551
+ "docs": {
552
+ "text": "This method is used to trigger a new render of the component.",
553
+ "tags": []
554
+ }
509
555
  },
510
- "docs": {
511
- "text": "This method is used to trigger a new render of the component.",
512
- "tags": []
513
- }
514
- },
515
- "runAutofit": {
516
- "complexType": {
517
- "signature": "() => Promise<void>",
518
- "parameters": [],
519
- "references": {
520
- "Promise": {
521
- "location": "global"
522
- }
556
+ "runAutofit": {
557
+ "complexType": {
558
+ "signature": "() => Promise<void>",
559
+ "parameters": [],
560
+ "references": {
561
+ "Promise": {
562
+ "location": "global"
563
+ }
564
+ },
565
+ "return": "Promise<void>"
523
566
  },
524
- "return": "Promise<void>"
567
+ "docs": {
568
+ "text": "This method causes the component to autofit its container's width.",
569
+ "tags": []
570
+ }
525
571
  },
526
- "docs": {
527
- "text": "This method causes the component to autofit its container's width.",
528
- "tags": []
529
- }
530
- },
531
- "setProps": {
532
- "complexType": {
533
- "signature": "(props: GenericObject) => Promise<void>",
534
- "parameters": [{
535
- "tags": [{
536
- "name": "param",
537
- "text": "props - Object containing props that will be set to the component."
538
- }],
539
- "text": "- Object containing props that will be set to the component."
540
- }],
541
- "references": {
542
- "Promise": {
543
- "location": "global"
572
+ "setProps": {
573
+ "complexType": {
574
+ "signature": "(props: GenericObject) => Promise<void>",
575
+ "parameters": [{
576
+ "tags": [{
577
+ "name": "param",
578
+ "text": "props - Object containing props that will be set to the component."
579
+ }],
580
+ "text": "- Object containing props that will be set to the component."
581
+ }],
582
+ "references": {
583
+ "Promise": {
584
+ "location": "global"
585
+ },
586
+ "GenericObject": {
587
+ "location": "import",
588
+ "path": "../../types/GenericTypes"
589
+ }
544
590
  },
545
- "GenericObject": {
546
- "location": "import",
547
- "path": "../../types/GenericTypes"
548
- }
591
+ "return": "Promise<void>"
549
592
  },
550
- "return": "Promise<void>"
551
- },
552
- "docs": {
553
- "text": "Sets the props to the component.",
554
- "tags": [{
555
- "name": "param",
556
- "text": "props - Object containing props that will be set to the component."
557
- }]
593
+ "docs": {
594
+ "text": "Sets the props to the component.",
595
+ "tags": [{
596
+ "name": "param",
597
+ "text": "props - Object containing props that will be set to the component."
598
+ }]
599
+ }
558
600
  }
559
- }
560
- }; }
601
+ };
602
+ }
561
603
  static get elementRef() { return "rootElement"; }
562
604
  }
563
605
  _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap(), _KupFamilyTree_currentPanX = new WeakMap(), _KupFamilyTree_currentPanY = new WeakMap(), _KupFamilyTree_interactableTouch = new WeakMap(), _KupFamilyTree_kupManager = new WeakMap(), _KupFamilyTree_moveCb = new WeakMap(), _KupFamilyTree_shouldAutofit = new WeakMap(), _KupFamilyTree_wrapperEl = new WeakMap(), _KupFamilyTree_instances = new WeakSet(), _KupFamilyTree_buildChildLine = function _KupFamilyTree_buildChildLine(first, last, alone, moreTwo) {
@@ -566,14 +608,12 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
566
608
  'family-tree__line': true,
567
609
  'family-tree__line--right': !first,
568
610
  'family-tree__line--top': !first,
569
- } },
570
- h("div", { class: 'family-tree__line--placeholder' })));
611
+ } }, h("div", { class: 'family-tree__line--placeholder' })));
571
612
  content.push(h("td", { class: {
572
613
  'family-tree__line': true,
573
614
  'family-tree__line--left': first,
574
615
  'family-tree__line--top': (first && !alone) || (moreTwo && !last),
575
- } },
576
- h("div", { class: 'family-tree__line--placeholder' })));
616
+ } }, h("div", { class: 'family-tree__line--placeholder' })));
577
617
  return content;
578
618
  }, _KupFamilyTree_buildNode = function _KupFamilyTree_buildNode(node) {
579
619
  var _a;
@@ -606,7 +646,7 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
606
646
  };
607
647
  const data = {
608
648
  columns: [
609
- { name: '*TREECOL', title: 'Fake column' },
649
+ { name: '*TREECOL', title: 'Fake column', visible: false },
610
650
  ...this.data.columns,
611
651
  ],
612
652
  rows: [{ cells: Object.assign({ '*TREECOL': node }, node.cells) }],
@@ -635,12 +675,15 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
635
675
  },
636
676
  wrapperClass: 'family-tree__item__expand',
637
677
  };
638
- const box = (h("div", { class: 'family-tree__item' },
639
- h("div", { class: 'family-tree__item__wrapper' },
640
- __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_isBoxLayout).call(this, layout) ? (h("kup-box", { class: "kup-borderless kup-paddingless", customStyle: "#kup-component { background: var(--kup_familytree_item_background_color); border: 2px solid var(--kup_familytree_lines_color); box-sizing: border-box; height: var(--kup_familytree_item_height); padding: 0 var(--kup_familytree_item_h_padding); } #kup-component .box-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: 100%;} #kup-component .f-cell__text { color: var(--kup_familytree_item_color); }", data: data, layout: layout, showSelection: false })) : (__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodeLayout).call(this, node, layout)),
641
- this.collapsible &&
642
- node.children &&
643
- node.children.length > 0 ? (h(FButton, Object.assign({}, expandButtonProps))) : undefined)));
678
+ let kupBox = null;
679
+ if (__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_isBoxLayout).call(this, layout)) {
680
+ kupBox = (h("kup-box", { class: "kup-borderless kup-paddingless", customStyle: "#kup-component { background: var(--kup_familytree_item_background_color); border: 2px solid var(--kup_familytree_lines_color); box-sizing: border-box; height: var(--kup_familytree_item_height); padding: 0 var(--kup_familytree_item_h_padding); } #kup-component .box-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: 100%;} #kup-component .f-cell__text { color: var(--kup_familytree_item_color); }", data: data, cardData: this.cardData, layout: this.cardData ? null : layout, showSelection: false }));
681
+ }
682
+ const box = (h("div", { class: 'family-tree__item' }, h("div", { class: 'family-tree__item__wrapper' }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_isBoxLayout).call(this, layout)
683
+ ? kupBox
684
+ : __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodeLayout).call(this, node, layout), this.collapsible &&
685
+ node.children &&
686
+ node.children.length > 0 ? (h(FButton, Object.assign({}, expandButtonProps))) : undefined)));
644
687
  const staffStyle = {
645
688
  ['--kup_familytree_staffchildren']: (staffChildren === null || staffChildren === void 0 ? void 0 : staffChildren.length.toString()) || '0',
646
689
  };
@@ -650,37 +693,23 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
650
693
  'family-tree__node--stacked': this.stackedLeaves &&
651
694
  !node.isStaff &&
652
695
  (!node.children || node.children.length == 0),
653
- } },
654
- h("tr", null,
655
- h("td", { "data-row": node, colSpan: span1 }, box)),
656
- h("tr", null,
657
- h("td", { colSpan: span1 },
658
- h("div", { class: styleVLine }))),
659
- staffChildren
660
- ? [
661
- h("tr", null,
662
- h("td", { colSpan: span1 },
663
- h("div", { class: Object.assign(Object.assign({}, styleVLine), { 'family-tree__line--staff': true }), style: staffStyle }),
664
- h("div", { class: "family-tree__node__staff", style: staffStyle }, staffChildren.map((inode) => [
665
- h("div", { class: "family-tree__node__staff__item" }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)),
666
- ])))),
667
- ]
668
- : null,
669
- staffChildren && children
670
- ? [
671
- h("tr", null,
672
- h("td", { colSpan: span1 },
673
- h("div", { class: styleVLine }))),
674
- ]
675
- : null,
676
- children
677
- ? [
678
- h("tr", null, stacked ? (h("td", { colSpan: span1 },
679
- h("div", { class: styleVLine }))) : (children.map((inode) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildChildLine).call(this, children.indexOf(inode) == 0, children.indexOf(inode) ==
680
- children.length - 1, children.length == 1, children.length > 2)))),
681
- h("tr", null, stacked ? (h("td", { colSpan: span1 }, children.map((inode) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)))) : (children.map((inode) => (h("td", { colSpan: 2 }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)))))),
682
- ]
683
- : undefined));
696
+ } }, h("tr", null, h("td", { "data-row": node, colSpan: span1 }, box)), h("tr", null, h("td", { colSpan: span1 }, h("div", { class: styleVLine }))), staffChildren
697
+ ? [
698
+ h("tr", null, h("td", { colSpan: span1 }, h("div", { class: Object.assign(Object.assign({}, styleVLine), { 'family-tree__line--staff': true }), style: staffStyle }), h("div", { class: "family-tree__node__staff", style: staffStyle }, staffChildren.map((inode) => [
699
+ h("div", { class: "family-tree__node__staff__item" }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)),
700
+ ])))),
701
+ ]
702
+ : null, staffChildren && children
703
+ ? [
704
+ h("tr", null, h("td", { colSpan: span1 }, h("div", { class: styleVLine }))),
705
+ ]
706
+ : null, children
707
+ ? [
708
+ h("tr", null, stacked ? (h("td", { colSpan: span1 }, h("div", { class: styleVLine }))) : (children.map((inode) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildChildLine).call(this, children.indexOf(inode) == 0, children.indexOf(inode) ==
709
+ children.length - 1, children.length == 1, children.length > 2)))),
710
+ h("tr", null, stacked ? (h("td", { colSpan: span1 }, children.map((inode) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)))) : (children.map((inode) => (h("td", { colSpan: 2 }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)))))),
711
+ ]
712
+ : undefined));
684
713
  }, _KupFamilyTree_buildNodeLayout = function _KupFamilyTree_buildNodeLayout(node, layout) {
685
714
  switch (layout) {
686
715
  case 2:
@@ -689,16 +718,9 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
689
718
  return __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodeLayout1).call(this, node);
690
719
  }
691
720
  }, _KupFamilyTree_buildNodeLayout1 = function _KupFamilyTree_buildNodeLayout1(node) {
692
- return (h("div", { class: `family-tree__item__layout family-tree__item__layout--1` },
693
- h("div", { class: 'family-tree__item__layout__text__title' }, node.value)));
721
+ return (h("div", { class: `family-tree__item__layout family-tree__item__layout--1` }, h("div", { class: 'family-tree__item__layout__text__title' }, node.value)));
694
722
  }, _KupFamilyTree_buildNodeLayout2 = function _KupFamilyTree_buildNodeLayout2(node) {
695
- return (h("div", { class: `family-tree__item__layout family-tree__item__layout--2` },
696
- h("div", { class: 'family-tree__item__layout__color' }),
697
- h("div", { class: 'family-tree__item__layout__image' },
698
- h(FImage, { resource: node.icon, sizeX: "48px", sizeY: "48px" })),
699
- h("div", { class: 'family-tree__item__layout__text' },
700
- h("div", { class: 'family-tree__item__layout__text__title' }, node.value),
701
- node.title ? (h("div", { class: 'family-tree__item__layout__text__subtitle' }, node.title)) : null)));
723
+ return (h("div", { class: `family-tree__item__layout family-tree__item__layout--2` }, h("div", { class: 'family-tree__item__layout__color' }), h("div", { class: 'family-tree__item__layout__image' }, h(FImage, { resource: node.icon, sizeX: "48px", sizeY: "48px" })), h("div", { class: 'family-tree__item__layout__text' }, h("div", { class: 'family-tree__item__layout__text__title' }, node.value), node.title ? (h("div", { class: 'family-tree__item__layout__text__subtitle' }, node.title)) : null)));
702
724
  }, _KupFamilyTree_buildNodes = function _KupFamilyTree_buildNodes(nodes) {
703
725
  return nodes.map((node) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, node));
704
726
  }, _KupFamilyTree_createTree = function _KupFamilyTree_createTree() {
@@ -708,7 +730,7 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
708
730
  }, ref: (el) => (__classPrivateFieldSet(this, _KupFamilyTree_wrapperEl, el, "f")) }, emptyData ? (h("div", null, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))) : (__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodes).call(this, this.data.rows))));
709
731
  }, _KupFamilyTree_isBoxLayout = function _KupFamilyTree_isBoxLayout(layout) {
710
732
  const tmp = layout;
711
- return tmp && tmp.sections && tmp.sections.length > 0;
733
+ return (!!this.cardData || (tmp && tmp.sections && tmp.sections.length > 0));
712
734
  }, _KupFamilyTree_startPanning = function _KupFamilyTree_startPanning(e) {
713
735
  __classPrivateFieldSet(this, _KupFamilyTree_currentPanX, e.clientX, "f");
714
736
  __classPrivateFieldSet(this, _KupFamilyTree_currentPanY, e.clientY, "f");