@sme.up/ketchup 6.6.0 → 6.8.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 (211) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-a531feb2.js → f-button-229c63fd.js} +2 -2
  3. package/dist/cjs/{f-cell-75cb7933.js → f-cell-dd006395.js} +22 -22
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-9508a2e4.js → f-chip-f2c369fd.js} +3 -3
  6. package/dist/cjs/{f-image-c21cc616.js → f-image-847a6ddf.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-2b72d7e8.js → f-paginator-utils-cedc4b3e.js} +3 -3
  8. package/dist/cjs/{f-text-field-a5b2bd0e.js → f-text-field-fe85187d.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 +7 -30
  12. package/dist/cjs/{kup-autocomplete_25.cjs.entry.js → kup-autocomplete_26.cjs.entry.js} +3925 -4288
  13. package/dist/cjs/kup-box.cjs.entry.js +33 -113
  14. package/dist/cjs/kup-calendar.cjs.entry.js +10 -34
  15. package/dist/cjs/kup-cell.cjs.entry.js +10 -29
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +10 -9
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +7 -35
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +10 -32
  19. package/dist/cjs/kup-drawer.cjs.entry.js +4 -19
  20. package/dist/cjs/kup-echart.cjs.entry.js +16 -77
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +12 -48
  22. package/dist/cjs/kup-iframe.cjs.entry.js +5 -17
  23. package/dist/cjs/kup-image-list.cjs.entry.js +16 -34
  24. package/dist/cjs/kup-lazy.cjs.entry.js +10 -37
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +6 -25
  26. package/dist/cjs/{kup-manager-8e67afec.js → kup-manager-c53468cd.js} +82 -7
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -16
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +14 -57
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +9 -31
  30. package/dist/cjs/kup-probe.cjs.entry.js +13 -33
  31. package/dist/cjs/kup-qlik.cjs.entry.js +6 -60
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +7 -38
  33. package/dist/cjs/loader.cjs.js +3 -3
  34. package/dist/collection/assets/box.js +9 -6
  35. package/dist/collection/collection-manifest.json +3 -3
  36. package/dist/collection/components/kup-accordion/kup-accordion.js +243 -261
  37. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +560 -594
  38. package/dist/collection/components/kup-badge/kup-badge.js +179 -189
  39. package/dist/collection/components/kup-box/kup-box.js +911 -1010
  40. package/dist/collection/components/kup-button/kup-button.js +382 -428
  41. package/dist/collection/components/kup-button-list/kup-button-list.js +254 -278
  42. package/dist/collection/components/kup-calendar/kup-calendar.js +306 -329
  43. package/dist/collection/components/kup-card/box/kup-card-box.js +10 -24
  44. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -2
  45. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
  46. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
  47. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  48. package/dist/collection/components/kup-card/built-in/kup-card-form.js +11 -0
  49. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
  50. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  51. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  52. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  53. package/dist/collection/components/kup-card/kup-card.css +118 -12
  54. package/dist/collection/components/kup-card/kup-card.js +394 -385
  55. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  56. package/dist/collection/components/kup-card/standard/kup-card-standard.js +98 -278
  57. package/dist/collection/components/kup-cell/kup-cell.js +224 -238
  58. package/dist/collection/components/kup-chart/kup-chart.js +562 -586
  59. package/dist/collection/components/kup-checkbox/kup-checkbox.js +278 -304
  60. package/dist/collection/components/kup-chip/kup-chip.js +243 -250
  61. package/dist/collection/components/kup-color-picker/kup-color-picker.js +278 -299
  62. package/dist/collection/components/kup-combobox/kup-combobox.js +467 -482
  63. package/dist/collection/components/kup-dash/kup-dash.js +112 -172
  64. package/dist/collection/components/kup-dash-list/kup-dash-list.js +218 -220
  65. package/dist/collection/components/kup-dashboard/kup-dashboard.js +200 -229
  66. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
  67. package/dist/collection/components/kup-data-table/kup-data-table.css +9 -0
  68. package/dist/collection/components/kup-data-table/kup-data-table.js +4700 -4452
  69. package/dist/collection/components/kup-date-picker/kup-date-picker.js +415 -429
  70. package/dist/collection/components/kup-drawer/kup-drawer.js +246 -253
  71. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +486 -527
  72. package/dist/collection/components/kup-echart/kup-echart.js +450 -498
  73. package/dist/collection/components/kup-family-tree/kup-family-tree.js +416 -465
  74. package/dist/collection/components/kup-form/kup-form.js +226 -248
  75. package/dist/collection/components/kup-gauge/kup-gauge.js +460 -521
  76. package/dist/collection/components/kup-grid/kup-grid.js +159 -172
  77. package/dist/collection/components/kup-iframe/kup-iframe.js +184 -188
  78. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  79. package/dist/collection/components/kup-image/kup-image.js +305 -340
  80. package/dist/collection/components/kup-image-list/kup-image-list.js +300 -311
  81. package/dist/collection/components/kup-lazy/kup-lazy.js +261 -288
  82. package/dist/collection/components/kup-list/kup-list.js +546 -572
  83. package/dist/collection/components/kup-magic-box/kup-magic-box.js +148 -167
  84. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +192 -198
  85. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +501 -532
  86. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +261 -271
  87. package/dist/collection/components/kup-probe/kup-probe.js +98 -114
  88. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +240 -276
  89. package/dist/collection/components/kup-qlik/kup-qlik.js +182 -228
  90. package/dist/collection/components/kup-radio/kup-radio.js +261 -289
  91. package/dist/collection/components/kup-rating/kup-rating.js +212 -224
  92. package/dist/collection/components/kup-snackbar/kup-snackbar.js +252 -280
  93. package/dist/collection/components/kup-spinner/kup-spinner.js +277 -308
  94. package/dist/collection/components/kup-switch/kup-switch.js +258 -280
  95. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +268 -247
  96. package/dist/collection/components/kup-text-field/kup-text-field.js +816 -920
  97. package/dist/collection/components/kup-time-picker/kup-time-picker.js +472 -493
  98. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  99. package/dist/collection/components/kup-tree/kup-tree.js +1107 -1205
  100. package/dist/collection/f-components/f-button/f-button.js +11 -20
  101. package/dist/collection/f-components/f-cell/f-cell.js +20 -22
  102. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  103. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  104. package/dist/collection/f-components/f-image/f-image.js +1 -3
  105. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  106. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  107. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  108. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  109. package/dist/collection/managers/kup-language/kup-language-declarations.js +6 -0
  110. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  111. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  112. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  113. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  114. package/dist/esm/{f-button-15719ec1.js → f-button-d1aba968.js} +2 -2
  115. package/dist/esm/{f-cell-692c37bf.js → f-cell-646406bb.js} +22 -22
  116. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  117. package/dist/esm/{f-chip-abab04bf.js → f-chip-d94e9e81.js} +3 -3
  118. package/dist/esm/{f-image-98783644.js → f-image-57c88302.js} +2 -2
  119. package/dist/esm/{f-paginator-utils-d12ee737.js → f-paginator-utils-2c865e9a.js} +3 -3
  120. package/dist/esm/{f-text-field-282025dd.js → f-text-field-b0a1fea6.js} +2 -2
  121. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  122. package/dist/esm/ketchup.js +3 -3
  123. package/dist/esm/kup-accordion.entry.js +7 -30
  124. package/dist/esm/{kup-autocomplete_25.entry.js → kup-autocomplete_26.entry.js} +3925 -4289
  125. package/dist/esm/kup-box.entry.js +33 -113
  126. package/dist/esm/kup-calendar.entry.js +10 -34
  127. package/dist/esm/kup-cell.entry.js +10 -29
  128. package/dist/esm/kup-dash-list.entry.js +10 -9
  129. package/dist/esm/kup-dash_2.entry.js +7 -35
  130. package/dist/esm/kup-dashboard.entry.js +10 -32
  131. package/dist/esm/kup-drawer.entry.js +4 -19
  132. package/dist/esm/kup-echart.entry.js +16 -77
  133. package/dist/esm/kup-family-tree.entry.js +12 -48
  134. package/dist/esm/kup-iframe.entry.js +5 -17
  135. package/dist/esm/kup-image-list.entry.js +16 -34
  136. package/dist/esm/kup-lazy.entry.js +10 -37
  137. package/dist/esm/kup-magic-box.entry.js +6 -25
  138. package/dist/esm/{kup-manager-abbae73e.js → kup-manager-c0fbb180.js} +83 -8
  139. package/dist/esm/kup-nav-bar.entry.js +4 -16
  140. package/dist/esm/kup-numeric-picker.entry.js +14 -57
  141. package/dist/esm/kup-photo-frame.entry.js +9 -31
  142. package/dist/esm/kup-probe.entry.js +13 -33
  143. package/dist/esm/kup-qlik.entry.js +6 -60
  144. package/dist/esm/kup-snackbar.entry.js +7 -38
  145. package/dist/esm/loader.js +3 -3
  146. package/dist/esm/polyfills/css-shim.js +1 -1
  147. package/dist/ketchup/ketchup.esm.js +1 -1
  148. package/dist/ketchup/{p-eeadd688.entry.js → p-1914969e.entry.js} +1 -1
  149. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  150. package/dist/ketchup/{p-a4a30e0e.entry.js → p-250118e3.entry.js} +1 -1
  151. package/dist/ketchup/{p-ccef2553.entry.js → p-30766296.entry.js} +1 -1
  152. package/dist/ketchup/{p-5933aa02.entry.js → p-351cecba.entry.js} +1 -1
  153. package/dist/ketchup/p-35e16ea2.entry.js +1 -0
  154. package/dist/ketchup/{p-e6ebdb80.js → p-395675b8.js} +1 -1
  155. package/dist/ketchup/p-3cf97e3a.js +1 -0
  156. package/dist/ketchup/p-4fdb684f.js +2 -0
  157. package/dist/ketchup/{p-9419919c.entry.js → p-596bdc10.entry.js} +1 -1
  158. package/dist/ketchup/{p-6f3040fb.js → p-61ff1761.js} +1 -1
  159. package/dist/ketchup/p-72d4fa26.entry.js +1 -0
  160. package/dist/ketchup/{p-fd930a34.entry.js → p-738685f9.entry.js} +1 -1
  161. package/dist/ketchup/{p-f6409c42.entry.js → p-7c8c5444.entry.js} +1 -1
  162. package/dist/ketchup/p-86154e2b.js +1 -0
  163. package/dist/ketchup/{p-7e16265d.entry.js → p-9214ef33.entry.js} +1 -1
  164. package/dist/ketchup/{p-62f3ec78.entry.js → p-980ed953.entry.js} +1 -1
  165. package/dist/ketchup/p-991bd70d.entry.js +1 -0
  166. package/dist/ketchup/{p-7d37ea62.entry.js → p-a1fe329f.entry.js} +1 -1
  167. package/dist/ketchup/p-a740352c.js +30 -0
  168. package/dist/ketchup/{p-62421bcf.js → p-a992cf87.js} +1 -1
  169. package/dist/ketchup/{p-3760a159.entry.js → p-b1da1ba7.entry.js} +2 -2
  170. package/dist/ketchup/{p-5ea2a1ff.entry.js → p-cee3635a.entry.js} +1 -1
  171. package/dist/ketchup/p-d05ed931.entry.js +9 -0
  172. package/dist/ketchup/{p-a450d60a.entry.js → p-d422151a.entry.js} +2 -2
  173. package/dist/ketchup/p-e6f19333.entry.js +1 -0
  174. package/dist/ketchup/{p-1ef5d16d.entry.js → p-eb10958a.entry.js} +1 -1
  175. package/dist/ketchup/{p-20221a50.js → p-ecac6269.js} +1 -1
  176. package/dist/ketchup/p-f43b445e.entry.js +1 -0
  177. package/dist/ketchup/{p-725c6268.entry.js → p-fa37e92e.entry.js} +1 -1
  178. package/dist/loader/package.json +1 -0
  179. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  180. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -2
  181. package/dist/types/components/kup-card/built-in/kup-card-form.d.ts +3 -0
  182. package/dist/types/components/kup-card/kup-card-declarations.d.ts +11 -1
  183. package/dist/types/components/kup-card/kup-card.d.ts +5 -0
  184. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  185. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +9 -0
  186. package/dist/types/components/kup-data-table/kup-data-table.d.ts +54 -201
  187. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  188. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  189. package/dist/types/components/kup-tree/kup-tree.d.ts +0 -1
  190. package/dist/types/components.d.ts +78 -2
  191. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  192. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +7 -1
  193. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  194. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  195. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +1 -0
  196. package/dist/types/stencil-public-runtime.d.ts +20 -4
  197. package/package.json +2 -2
  198. package/CHANGELOG.md +0 -5
  199. package/dist/cjs/kup-form.cjs.entry.js +0 -486
  200. package/dist/esm/kup-form.entry.js +0 -482
  201. package/dist/ketchup/p-1d2dea0a.entry.js +0 -1
  202. package/dist/ketchup/p-27538d6f.entry.js +0 -1
  203. package/dist/ketchup/p-29d72040.entry.js +0 -1
  204. package/dist/ketchup/p-3e74e1ed.js +0 -1
  205. package/dist/ketchup/p-680a8cb4.entry.js +0 -9
  206. package/dist/ketchup/p-6946b614.entry.js +0 -1
  207. package/dist/ketchup/p-b0b3989b.js +0 -2
  208. package/dist/ketchup/p-c05f2638.js +0 -30
  209. package/dist/ketchup/p-d7a92197.entry.js +0 -1
  210. package/dist/ketchup/p-d8af7ba6.entry.js +0 -1
  211. package/dist/ketchup/p-e07a10fb.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';
@@ -24,50 +29,6 @@ export class KupFamilyTree {
24
29
  constructor() {
25
30
  _KupFamilyTree_instances.add(this);
26
31
  /*-------------------------------------------------*/
27
- /* P r o p s */
28
- /*-------------------------------------------------*/
29
- /**
30
- * The component will autofit everytime a node is expanded.
31
- * @default true
32
- */
33
- this.autofitOnExpand = true;
34
- /**
35
- * The component's initial render will fit the container by invoking the runAutofit method.
36
- * @default true
37
- */
38
- this.autofitOnLoad = true;
39
- /**
40
- * Used to render the family tree boxes as kup-cards (through kup-box).
41
- * @default null
42
- */
43
- this.cardData = null;
44
- /**
45
- * Nodes can be expanded/collapsed.
46
- * @default true
47
- */
48
- this.collapsible = true;
49
- /**
50
- * Custom style of the component.
51
- * @default ""
52
- * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
53
- */
54
- this.customStyle = '';
55
- /**
56
- * Actual data of the component.
57
- * @default null
58
- */
59
- this.data = null;
60
- /**
61
- * Layout of the boxes.
62
- * @default null
63
- */
64
- this.layout = null;
65
- /**
66
- * Child nodes that have no children are arranged vertically.
67
- * @default false
68
- */
69
- this.stackedLeaves = false;
70
- /*-------------------------------------------------*/
71
32
  /* I n t e r n a l V a r i a b l e s */
72
33
  /*-------------------------------------------------*/
73
34
  _KupFamilyTree_clickTimeout.set(this, []);
@@ -86,6 +47,14 @@ export class KupFamilyTree {
86
47
  });
87
48
  _KupFamilyTree_shouldAutofit.set(this, false);
88
49
  _KupFamilyTree_wrapperEl.set(this, null);
50
+ this.autofitOnExpand = true;
51
+ this.autofitOnLoad = true;
52
+ this.cardData = null;
53
+ this.collapsible = true;
54
+ this.customStyle = '';
55
+ this.data = null;
56
+ this.layout = null;
57
+ this.stackedLeaves = false;
89
58
  }
90
59
  /*-------------------------------------------------*/
91
60
  /* P u b l i c M e t h o d s */
@@ -185,9 +154,7 @@ export class KupFamilyTree {
185
154
  __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_startPanning).call(this, e);
186
155
  }, onWheel: (e) => {
187
156
  __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_zoomTree).call(this, e);
188
- } },
189
- h("style", null, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)),
190
- h("div", { id: componentWrapperId }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_createTree).call(this))));
157
+ } }, 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))));
191
158
  }
192
159
  disconnectedCallback() {
193
160
  __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.unregister(this);
@@ -195,398 +162,408 @@ export class KupFamilyTree {
195
162
  }
196
163
  static get is() { return "kup-family-tree"; }
197
164
  static get encapsulation() { return "shadow"; }
198
- static get originalStyleUrls() { return {
199
- "$": ["kup-family-tree.scss"]
200
- }; }
201
- static get styleUrls() { return {
202
- "$": ["kup-family-tree.css"]
203
- }; }
204
- static get properties() { return {
205
- "autofitOnExpand": {
206
- "type": "boolean",
207
- "mutable": false,
208
- "complexType": {
209
- "original": "boolean",
210
- "resolved": "boolean",
211
- "references": {}
212
- },
213
- "required": false,
214
- "optional": false,
215
- "docs": {
216
- "tags": [{
217
- "name": "default",
218
- "text": "true"
219
- }],
220
- "text": "The component will autofit everytime a node is expanded."
221
- },
222
- "attribute": "autofit-on-expand",
223
- "reflect": false,
224
- "defaultValue": "true"
225
- },
226
- "autofitOnLoad": {
227
- "type": "boolean",
228
- "mutable": false,
229
- "complexType": {
230
- "original": "boolean",
231
- "resolved": "boolean",
232
- "references": {}
165
+ static get originalStyleUrls() {
166
+ return {
167
+ "$": ["kup-family-tree.scss"]
168
+ };
169
+ }
170
+ static get styleUrls() {
171
+ return {
172
+ "$": ["kup-family-tree.css"]
173
+ };
174
+ }
175
+ static get properties() {
176
+ return {
177
+ "autofitOnExpand": {
178
+ "type": "boolean",
179
+ "mutable": false,
180
+ "complexType": {
181
+ "original": "boolean",
182
+ "resolved": "boolean",
183
+ "references": {}
184
+ },
185
+ "required": false,
186
+ "optional": false,
187
+ "docs": {
188
+ "tags": [{
189
+ "name": "default",
190
+ "text": "true"
191
+ }],
192
+ "text": "The component will autofit everytime a node is expanded."
193
+ },
194
+ "attribute": "autofit-on-expand",
195
+ "reflect": false,
196
+ "defaultValue": "true"
233
197
  },
234
- "required": false,
235
- "optional": false,
236
- "docs": {
237
- "tags": [{
238
- "name": "default",
239
- "text": "true"
240
- }],
241
- "text": "The component's initial render will fit the container by invoking the runAutofit method."
198
+ "autofitOnLoad": {
199
+ "type": "boolean",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "boolean",
203
+ "resolved": "boolean",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [{
210
+ "name": "default",
211
+ "text": "true"
212
+ }],
213
+ "text": "The component's initial render will fit the container by invoking the runAutofit method."
214
+ },
215
+ "attribute": "autofit-on-load",
216
+ "reflect": false,
217
+ "defaultValue": "true"
242
218
  },
243
- "attribute": "autofit-on-load",
244
- "reflect": false,
245
- "defaultValue": "true"
246
- },
247
- "cardData": {
248
- "type": "unknown",
249
- "mutable": false,
250
- "complexType": {
251
- "original": "GenericObject",
252
- "resolved": "GenericObject",
253
- "references": {
254
- "GenericObject": {
255
- "location": "import",
256
- "path": "../../types/GenericTypes"
219
+ "cardData": {
220
+ "type": "unknown",
221
+ "mutable": false,
222
+ "complexType": {
223
+ "original": "GenericObject",
224
+ "resolved": "GenericObject",
225
+ "references": {
226
+ "GenericObject": {
227
+ "location": "import",
228
+ "path": "../../types/GenericTypes"
229
+ }
257
230
  }
258
- }
259
- },
260
- "required": false,
261
- "optional": false,
262
- "docs": {
263
- "tags": [{
264
- "name": "default",
265
- "text": "null"
266
- }],
267
- "text": "Used to render the family tree boxes as kup-cards (through kup-box)."
268
- },
269
- "defaultValue": "null"
270
- },
271
- "collapsible": {
272
- "type": "boolean",
273
- "mutable": false,
274
- "complexType": {
275
- "original": "boolean",
276
- "resolved": "boolean",
277
- "references": {}
278
- },
279
- "required": false,
280
- "optional": false,
281
- "docs": {
282
- "tags": [{
283
- "name": "default",
284
- "text": "true"
285
- }],
286
- "text": "Nodes can be expanded/collapsed."
231
+ },
232
+ "required": false,
233
+ "optional": false,
234
+ "docs": {
235
+ "tags": [{
236
+ "name": "default",
237
+ "text": "null"
238
+ }],
239
+ "text": "Used to render the family tree boxes as kup-cards (through kup-box)."
240
+ },
241
+ "defaultValue": "null"
287
242
  },
288
- "attribute": "collapsible",
289
- "reflect": false,
290
- "defaultValue": "true"
291
- },
292
- "customStyle": {
293
- "type": "string",
294
- "mutable": false,
295
- "complexType": {
296
- "original": "string",
297
- "resolved": "string",
298
- "references": {}
243
+ "collapsible": {
244
+ "type": "boolean",
245
+ "mutable": false,
246
+ "complexType": {
247
+ "original": "boolean",
248
+ "resolved": "boolean",
249
+ "references": {}
250
+ },
251
+ "required": false,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [{
255
+ "name": "default",
256
+ "text": "true"
257
+ }],
258
+ "text": "Nodes can be expanded/collapsed."
259
+ },
260
+ "attribute": "collapsible",
261
+ "reflect": false,
262
+ "defaultValue": "true"
299
263
  },
300
- "required": false,
301
- "optional": false,
302
- "docs": {
303
- "tags": [{
304
- "name": "default",
305
- "text": "\"\""
306
- }, {
307
- "name": "see",
308
- "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
309
- }],
310
- "text": "Custom style of the component."
264
+ "customStyle": {
265
+ "type": "string",
266
+ "mutable": false,
267
+ "complexType": {
268
+ "original": "string",
269
+ "resolved": "string",
270
+ "references": {}
271
+ },
272
+ "required": false,
273
+ "optional": false,
274
+ "docs": {
275
+ "tags": [{
276
+ "name": "default",
277
+ "text": "\"\""
278
+ }, {
279
+ "name": "see",
280
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
281
+ }],
282
+ "text": "Custom style of the component."
283
+ },
284
+ "attribute": "custom-style",
285
+ "reflect": false,
286
+ "defaultValue": "''"
311
287
  },
312
- "attribute": "custom-style",
313
- "reflect": false,
314
- "defaultValue": "''"
315
- },
316
- "data": {
317
- "type": "unknown",
318
- "mutable": false,
319
- "complexType": {
320
- "original": "KupFamilyTreeData",
321
- "resolved": "KupFamilyTreeData",
322
- "references": {
323
- "KupFamilyTreeData": {
324
- "location": "import",
325
- "path": "./kup-family-tree-declarations"
288
+ "data": {
289
+ "type": "unknown",
290
+ "mutable": false,
291
+ "complexType": {
292
+ "original": "KupFamilyTreeData",
293
+ "resolved": "KupFamilyTreeData",
294
+ "references": {
295
+ "KupFamilyTreeData": {
296
+ "location": "import",
297
+ "path": "./kup-family-tree-declarations"
298
+ }
326
299
  }
327
- }
328
- },
329
- "required": false,
330
- "optional": false,
331
- "docs": {
332
- "tags": [{
333
- "name": "default",
334
- "text": "null"
335
- }],
336
- "text": "Actual data of the component."
300
+ },
301
+ "required": false,
302
+ "optional": false,
303
+ "docs": {
304
+ "tags": [{
305
+ "name": "default",
306
+ "text": "null"
307
+ }],
308
+ "text": "Actual data of the component."
309
+ },
310
+ "defaultValue": "null"
337
311
  },
338
- "defaultValue": "null"
339
- },
340
- "layout": {
341
- "type": "number",
342
- "mutable": false,
343
- "complexType": {
344
- "original": "KupFamilyTreeLayout",
345
- "resolved": "KupBoxLayout | number",
346
- "references": {
347
- "KupFamilyTreeLayout": {
348
- "location": "import",
349
- "path": "./kup-family-tree-declarations"
312
+ "layout": {
313
+ "type": "number",
314
+ "mutable": false,
315
+ "complexType": {
316
+ "original": "KupFamilyTreeLayout",
317
+ "resolved": "KupBoxLayout | number",
318
+ "references": {
319
+ "KupFamilyTreeLayout": {
320
+ "location": "import",
321
+ "path": "./kup-family-tree-declarations"
322
+ }
350
323
  }
351
- }
352
- },
353
- "required": false,
354
- "optional": false,
355
- "docs": {
356
- "tags": [{
357
- "name": "default",
358
- "text": "null"
359
- }],
360
- "text": "Layout of the boxes."
361
- },
362
- "attribute": "layout",
363
- "reflect": false,
364
- "defaultValue": "null"
365
- },
366
- "stackedLeaves": {
367
- "type": "boolean",
368
- "mutable": false,
369
- "complexType": {
370
- "original": "boolean",
371
- "resolved": "boolean",
372
- "references": {}
373
- },
374
- "required": false,
375
- "optional": false,
376
- "docs": {
377
- "tags": [{
378
- "name": "default",
379
- "text": "false"
380
- }],
381
- "text": "Child nodes that have no children are arranged vertically."
382
- },
383
- "attribute": "stacked-leaves",
384
- "reflect": false,
385
- "defaultValue": "false"
386
- }
387
- }; }
388
- static get events() { return [{
389
- "method": "kupClick",
390
- "name": "kup-familytree-click",
391
- "bubbles": true,
392
- "cancelable": false,
393
- "composed": true,
394
- "docs": {
395
- "tags": [],
396
- "text": ""
324
+ },
325
+ "required": false,
326
+ "optional": false,
327
+ "docs": {
328
+ "tags": [{
329
+ "name": "default",
330
+ "text": "null"
331
+ }],
332
+ "text": "Layout of the boxes."
333
+ },
334
+ "attribute": "layout",
335
+ "reflect": false,
336
+ "defaultValue": "null"
397
337
  },
398
- "complexType": {
399
- "original": "KupFamilyTreeEventPayload",
400
- "resolved": "KupFamilyTreeEventPayload",
401
- "references": {
402
- "KupFamilyTreeEventPayload": {
403
- "location": "import",
404
- "path": "./kup-family-tree-declarations"
338
+ "stackedLeaves": {
339
+ "type": "boolean",
340
+ "mutable": false,
341
+ "complexType": {
342
+ "original": "boolean",
343
+ "resolved": "boolean",
344
+ "references": {}
345
+ },
346
+ "required": false,
347
+ "optional": false,
348
+ "docs": {
349
+ "tags": [{
350
+ "name": "default",
351
+ "text": "false"
352
+ }],
353
+ "text": "Child nodes that have no children are arranged vertically."
354
+ },
355
+ "attribute": "stacked-leaves",
356
+ "reflect": false,
357
+ "defaultValue": "false"
358
+ }
359
+ };
360
+ }
361
+ static get events() {
362
+ return [{
363
+ "method": "kupClick",
364
+ "name": "kup-familytree-click",
365
+ "bubbles": true,
366
+ "cancelable": false,
367
+ "composed": true,
368
+ "docs": {
369
+ "tags": [],
370
+ "text": ""
371
+ },
372
+ "complexType": {
373
+ "original": "KupFamilyTreeEventPayload",
374
+ "resolved": "KupFamilyTreeEventPayload",
375
+ "references": {
376
+ "KupFamilyTreeEventPayload": {
377
+ "location": "import",
378
+ "path": "./kup-family-tree-declarations"
379
+ }
405
380
  }
406
381
  }
407
- }
408
- }, {
409
- "method": "kupContextMenu",
410
- "name": "kup-familytree-contextmenu",
411
- "bubbles": true,
412
- "cancelable": false,
413
- "composed": true,
414
- "docs": {
415
- "tags": [],
416
- "text": ""
417
- },
418
- "complexType": {
419
- "original": "KupFamilyTreeEventPayload",
420
- "resolved": "KupFamilyTreeEventPayload",
421
- "references": {
422
- "KupFamilyTreeEventPayload": {
423
- "location": "import",
424
- "path": "./kup-family-tree-declarations"
382
+ }, {
383
+ "method": "kupContextMenu",
384
+ "name": "kup-familytree-contextmenu",
385
+ "bubbles": true,
386
+ "cancelable": false,
387
+ "composed": true,
388
+ "docs": {
389
+ "tags": [],
390
+ "text": ""
391
+ },
392
+ "complexType": {
393
+ "original": "KupFamilyTreeEventPayload",
394
+ "resolved": "KupFamilyTreeEventPayload",
395
+ "references": {
396
+ "KupFamilyTreeEventPayload": {
397
+ "location": "import",
398
+ "path": "./kup-family-tree-declarations"
399
+ }
425
400
  }
426
401
  }
427
- }
428
- }, {
429
- "method": "kupDblClick",
430
- "name": "kup-familytree-dblclick",
431
- "bubbles": true,
432
- "cancelable": false,
433
- "composed": true,
434
- "docs": {
435
- "tags": [],
436
- "text": ""
437
- },
438
- "complexType": {
439
- "original": "KupFamilyTreeEventPayload",
440
- "resolved": "KupFamilyTreeEventPayload",
441
- "references": {
442
- "KupFamilyTreeEventPayload": {
443
- "location": "import",
444
- "path": "./kup-family-tree-declarations"
402
+ }, {
403
+ "method": "kupDblClick",
404
+ "name": "kup-familytree-dblclick",
405
+ "bubbles": true,
406
+ "cancelable": false,
407
+ "composed": true,
408
+ "docs": {
409
+ "tags": [],
410
+ "text": ""
411
+ },
412
+ "complexType": {
413
+ "original": "KupFamilyTreeEventPayload",
414
+ "resolved": "KupFamilyTreeEventPayload",
415
+ "references": {
416
+ "KupFamilyTreeEventPayload": {
417
+ "location": "import",
418
+ "path": "./kup-family-tree-declarations"
419
+ }
445
420
  }
446
421
  }
447
- }
448
- }]; }
449
- static get methods() { return {
450
- "collapseAll": {
451
- "complexType": {
452
- "signature": "(nodes?: KupFamilyTreeNode[]) => Promise<void>",
453
- "parameters": [{
454
- "tags": [],
455
- "text": ""
456
- }],
457
- "references": {
458
- "Promise": {
459
- "location": "global"
422
+ }];
423
+ }
424
+ static get methods() {
425
+ return {
426
+ "collapseAll": {
427
+ "complexType": {
428
+ "signature": "(nodes?: KupFamilyTreeNode[]) => Promise<void>",
429
+ "parameters": [{
430
+ "tags": [],
431
+ "text": ""
432
+ }],
433
+ "references": {
434
+ "Promise": {
435
+ "location": "global"
436
+ },
437
+ "KupFamilyTreeNode": {
438
+ "location": "import",
439
+ "path": "./kup-family-tree-declarations"
440
+ }
460
441
  },
461
- "KupFamilyTreeNode": {
462
- "location": "import",
463
- "path": "./kup-family-tree-declarations"
464
- }
442
+ "return": "Promise<void>"
465
443
  },
466
- "return": "Promise<void>"
444
+ "docs": {
445
+ "text": "Collapses all nodes.",
446
+ "tags": []
447
+ }
467
448
  },
468
- "docs": {
469
- "text": "Collapses all nodes.",
470
- "tags": []
471
- }
472
- },
473
- "expandAll": {
474
- "complexType": {
475
- "signature": "(nodes?: KupFamilyTreeNode[]) => Promise<void>",
476
- "parameters": [{
477
- "tags": [],
478
- "text": ""
479
- }],
480
- "references": {
481
- "Promise": {
482
- "location": "global"
449
+ "expandAll": {
450
+ "complexType": {
451
+ "signature": "(nodes?: KupFamilyTreeNode[]) => Promise<void>",
452
+ "parameters": [{
453
+ "tags": [],
454
+ "text": ""
455
+ }],
456
+ "references": {
457
+ "Promise": {
458
+ "location": "global"
459
+ },
460
+ "KupFamilyTreeNode": {
461
+ "location": "import",
462
+ "path": "./kup-family-tree-declarations"
463
+ }
483
464
  },
484
- "KupFamilyTreeNode": {
485
- "location": "import",
486
- "path": "./kup-family-tree-declarations"
487
- }
465
+ "return": "Promise<void>"
488
466
  },
489
- "return": "Promise<void>"
467
+ "docs": {
468
+ "text": "Expands all nodes.",
469
+ "tags": []
470
+ }
490
471
  },
491
- "docs": {
492
- "text": "Expands all nodes.",
493
- "tags": []
494
- }
495
- },
496
- "getProps": {
497
- "complexType": {
498
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
499
- "parameters": [{
500
- "tags": [{
501
- "name": "param",
502
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
503
- }],
504
- "text": "- When provided and true, the result will be the list of props with their description."
505
- }],
506
- "references": {
507
- "Promise": {
508
- "location": "global"
472
+ "getProps": {
473
+ "complexType": {
474
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
475
+ "parameters": [{
476
+ "tags": [{
477
+ "name": "param",
478
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
479
+ }],
480
+ "text": "- When provided and true, the result will be the list of props with their description."
481
+ }],
482
+ "references": {
483
+ "Promise": {
484
+ "location": "global"
485
+ },
486
+ "GenericObject": {
487
+ "location": "import",
488
+ "path": "../../types/GenericTypes"
489
+ }
509
490
  },
510
- "GenericObject": {
511
- "location": "import",
512
- "path": "../../types/GenericTypes"
513
- }
491
+ "return": "Promise<GenericObject>"
514
492
  },
515
- "return": "Promise<GenericObject>"
493
+ "docs": {
494
+ "text": "Used to retrieve component's props values.",
495
+ "tags": [{
496
+ "name": "param",
497
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
498
+ }, {
499
+ "name": "returns",
500
+ "text": "List of props as object, each key will be a prop."
501
+ }]
502
+ }
516
503
  },
517
- "docs": {
518
- "text": "Used to retrieve component's props values.",
519
- "tags": [{
520
- "name": "param",
521
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
522
- }, {
523
- "name": "returns",
524
- "text": "List of props as object, each key will be a prop."
525
- }]
526
- }
527
- },
528
- "refresh": {
529
- "complexType": {
530
- "signature": "() => Promise<void>",
531
- "parameters": [],
532
- "references": {
533
- "Promise": {
534
- "location": "global"
535
- }
504
+ "refresh": {
505
+ "complexType": {
506
+ "signature": "() => Promise<void>",
507
+ "parameters": [],
508
+ "references": {
509
+ "Promise": {
510
+ "location": "global"
511
+ }
512
+ },
513
+ "return": "Promise<void>"
536
514
  },
537
- "return": "Promise<void>"
515
+ "docs": {
516
+ "text": "This method is used to trigger a new render of the component.",
517
+ "tags": []
518
+ }
538
519
  },
539
- "docs": {
540
- "text": "This method is used to trigger a new render of the component.",
541
- "tags": []
542
- }
543
- },
544
- "runAutofit": {
545
- "complexType": {
546
- "signature": "() => Promise<void>",
547
- "parameters": [],
548
- "references": {
549
- "Promise": {
550
- "location": "global"
551
- }
520
+ "runAutofit": {
521
+ "complexType": {
522
+ "signature": "() => Promise<void>",
523
+ "parameters": [],
524
+ "references": {
525
+ "Promise": {
526
+ "location": "global"
527
+ }
528
+ },
529
+ "return": "Promise<void>"
552
530
  },
553
- "return": "Promise<void>"
531
+ "docs": {
532
+ "text": "This method causes the component to autofit its container's width.",
533
+ "tags": []
534
+ }
554
535
  },
555
- "docs": {
556
- "text": "This method causes the component to autofit its container's width.",
557
- "tags": []
558
- }
559
- },
560
- "setProps": {
561
- "complexType": {
562
- "signature": "(props: GenericObject) => Promise<void>",
563
- "parameters": [{
564
- "tags": [{
565
- "name": "param",
566
- "text": "props - Object containing props that will be set to the component."
567
- }],
568
- "text": "- Object containing props that will be set to the component."
569
- }],
570
- "references": {
571
- "Promise": {
572
- "location": "global"
536
+ "setProps": {
537
+ "complexType": {
538
+ "signature": "(props: GenericObject) => Promise<void>",
539
+ "parameters": [{
540
+ "tags": [{
541
+ "name": "param",
542
+ "text": "props - Object containing props that will be set to the component."
543
+ }],
544
+ "text": "- Object containing props that will be set to the component."
545
+ }],
546
+ "references": {
547
+ "Promise": {
548
+ "location": "global"
549
+ },
550
+ "GenericObject": {
551
+ "location": "import",
552
+ "path": "../../types/GenericTypes"
553
+ }
573
554
  },
574
- "GenericObject": {
575
- "location": "import",
576
- "path": "../../types/GenericTypes"
577
- }
555
+ "return": "Promise<void>"
578
556
  },
579
- "return": "Promise<void>"
580
- },
581
- "docs": {
582
- "text": "Sets the props to the component.",
583
- "tags": [{
584
- "name": "param",
585
- "text": "props - Object containing props that will be set to the component."
586
- }]
557
+ "docs": {
558
+ "text": "Sets the props to the component.",
559
+ "tags": [{
560
+ "name": "param",
561
+ "text": "props - Object containing props that will be set to the component."
562
+ }]
563
+ }
587
564
  }
588
- }
589
- }; }
565
+ };
566
+ }
590
567
  static get elementRef() { return "rootElement"; }
591
568
  }
592
569
  _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) {
@@ -595,14 +572,12 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
595
572
  'family-tree__line': true,
596
573
  'family-tree__line--right': !first,
597
574
  'family-tree__line--top': !first,
598
- } },
599
- h("div", { class: 'family-tree__line--placeholder' })));
575
+ } }, h("div", { class: 'family-tree__line--placeholder' })));
600
576
  content.push(h("td", { class: {
601
577
  'family-tree__line': true,
602
578
  'family-tree__line--left': first,
603
579
  'family-tree__line--top': (first && !alone) || (moreTwo && !last),
604
- } },
605
- h("div", { class: 'family-tree__line--placeholder' })));
580
+ } }, h("div", { class: 'family-tree__line--placeholder' })));
606
581
  return content;
607
582
  }, _KupFamilyTree_buildNode = function _KupFamilyTree_buildNode(node) {
608
583
  var _a;
@@ -668,14 +643,11 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
668
643
  if (__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_isBoxLayout).call(this, layout)) {
669
644
  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 }));
670
645
  }
671
- const box = (h("div", { class: 'family-tree__item' },
672
- h("div", { class: 'family-tree__item__wrapper' },
673
- __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_isBoxLayout).call(this, layout)
674
- ? kupBox
675
- : __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodeLayout).call(this, node, layout),
676
- this.collapsible &&
677
- node.children &&
678
- node.children.length > 0 ? (h(FButton, Object.assign({}, expandButtonProps))) : undefined)));
646
+ 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)
647
+ ? kupBox
648
+ : __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodeLayout).call(this, node, layout), this.collapsible &&
649
+ node.children &&
650
+ node.children.length > 0 ? (h(FButton, Object.assign({}, expandButtonProps))) : undefined)));
679
651
  const staffStyle = {
680
652
  ['--kup_familytree_staffchildren']: (staffChildren === null || staffChildren === void 0 ? void 0 : staffChildren.length.toString()) || '0',
681
653
  };
@@ -685,37 +657,23 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
685
657
  'family-tree__node--stacked': this.stackedLeaves &&
686
658
  !node.isStaff &&
687
659
  (!node.children || node.children.length == 0),
688
- } },
689
- h("tr", null,
690
- h("td", { "data-row": node, colSpan: span1 }, box)),
691
- h("tr", null,
692
- h("td", { colSpan: span1 },
693
- h("div", { class: styleVLine }))),
694
- staffChildren
695
- ? [
696
- h("tr", null,
697
- h("td", { colSpan: span1 },
698
- h("div", { class: Object.assign(Object.assign({}, styleVLine), { 'family-tree__line--staff': true }), style: staffStyle }),
699
- h("div", { class: "family-tree__node__staff", style: staffStyle }, staffChildren.map((inode) => [
700
- h("div", { class: "family-tree__node__staff__item" }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)),
701
- ])))),
702
- ]
703
- : null,
704
- staffChildren && children
705
- ? [
706
- h("tr", null,
707
- h("td", { colSpan: span1 },
708
- h("div", { class: styleVLine }))),
709
- ]
710
- : null,
711
- children
712
- ? [
713
- h("tr", null, stacked ? (h("td", { colSpan: span1 },
714
- h("div", { class: styleVLine }))) : (children.map((inode) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildChildLine).call(this, children.indexOf(inode) == 0, children.indexOf(inode) ==
715
- children.length - 1, children.length == 1, children.length > 2)))),
716
- 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)))))),
717
- ]
718
- : undefined));
660
+ } }, h("tr", null, h("td", { "data-row": node, colSpan: span1 }, box)), h("tr", null, h("td", { colSpan: span1 }, h("div", { class: styleVLine }))), staffChildren
661
+ ? [
662
+ 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) => [
663
+ h("div", { class: "family-tree__node__staff__item" }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, inode)),
664
+ ])))),
665
+ ]
666
+ : null, staffChildren && children
667
+ ? [
668
+ h("tr", null, h("td", { colSpan: span1 }, h("div", { class: styleVLine }))),
669
+ ]
670
+ : null, children
671
+ ? [
672
+ 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) ==
673
+ children.length - 1, children.length == 1, children.length > 2)))),
674
+ 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)))))),
675
+ ]
676
+ : undefined));
719
677
  }, _KupFamilyTree_buildNodeLayout = function _KupFamilyTree_buildNodeLayout(node, layout) {
720
678
  switch (layout) {
721
679
  case 2:
@@ -724,16 +682,9 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
724
682
  return __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodeLayout1).call(this, node);
725
683
  }
726
684
  }, _KupFamilyTree_buildNodeLayout1 = function _KupFamilyTree_buildNodeLayout1(node) {
727
- return (h("div", { class: `family-tree__item__layout family-tree__item__layout--1` },
728
- h("div", { class: 'family-tree__item__layout__text__title' }, node.value)));
685
+ return (h("div", { class: `family-tree__item__layout family-tree__item__layout--1` }, h("div", { class: 'family-tree__item__layout__text__title' }, node.value)));
729
686
  }, _KupFamilyTree_buildNodeLayout2 = function _KupFamilyTree_buildNodeLayout2(node) {
730
- return (h("div", { class: `family-tree__item__layout family-tree__item__layout--2` },
731
- h("div", { class: 'family-tree__item__layout__color' }),
732
- h("div", { class: 'family-tree__item__layout__image' },
733
- h(FImage, { resource: node.icon, sizeX: "48px", sizeY: "48px" })),
734
- h("div", { class: 'family-tree__item__layout__text' },
735
- h("div", { class: 'family-tree__item__layout__text__title' }, node.value),
736
- node.title ? (h("div", { class: 'family-tree__item__layout__text__subtitle' }, node.title)) : null)));
687
+ 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)));
737
688
  }, _KupFamilyTree_buildNodes = function _KupFamilyTree_buildNodes(nodes) {
738
689
  return nodes.map((node) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, node));
739
690
  }, _KupFamilyTree_createTree = function _KupFamilyTree_createTree() {