@sme.up/ketchup 6.6.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 (192) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-a531feb2.js → f-button-bf76ab95.js} +2 -2
  3. package/dist/cjs/{f-cell-75cb7933.js → f-cell-b7a1524a.js} +21 -21
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-9508a2e4.js → f-chip-a5e100b1.js} +3 -3
  6. package/dist/cjs/{f-image-c21cc616.js → f-image-d80a2749.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-2b72d7e8.js → f-paginator-utils-c70812fe.js} +3 -3
  8. package/dist/cjs/{f-text-field-a5b2bd0e.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 +206 -57
  13. package/dist/cjs/kup-box.cjs.entry.js +11 -10
  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 +4 -4
  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 +8 -8
  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-8e67afec.js → kup-manager-0e38bf48.js} +16 -6
  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/collection-manifest.json +3 -3
  37. package/dist/collection/components/kup-accordion/kup-accordion.js +239 -234
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +545 -530
  39. package/dist/collection/components/kup-badge/kup-badge.js +176 -170
  40. package/dist/collection/components/kup-box/kup-box.js +889 -907
  41. package/dist/collection/components/kup-button/kup-button.js +379 -370
  42. package/dist/collection/components/kup-button-list/kup-button-list.js +251 -240
  43. package/dist/collection/components/kup-calendar/kup-calendar.js +301 -300
  44. package/dist/collection/components/kup-card/box/kup-card-box.js +7 -24
  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-numeric.js +9 -44
  49. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  50. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  51. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  52. package/dist/collection/components/kup-card/kup-card.css +40 -0
  53. package/dist/collection/components/kup-card/kup-card.js +348 -340
  54. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  55. package/dist/collection/components/kup-card/standard/kup-card-standard.js +98 -278
  56. package/dist/collection/components/kup-cell/kup-cell.js +221 -216
  57. package/dist/collection/components/kup-chart/kup-chart.js +547 -537
  58. package/dist/collection/components/kup-checkbox/kup-checkbox.js +275 -266
  59. package/dist/collection/components/kup-chip/kup-chip.js +240 -231
  60. package/dist/collection/components/kup-color-picker/kup-color-picker.js +274 -264
  61. package/dist/collection/components/kup-combobox/kup-combobox.js +457 -440
  62. package/dist/collection/components/kup-dash/kup-dash.js +110 -158
  63. package/dist/collection/components/kup-dash-list/kup-dash-list.js +210 -213
  64. package/dist/collection/components/kup-dashboard/kup-dashboard.js +196 -203
  65. package/dist/collection/components/kup-data-table/kup-data-table.js +1917 -1830
  66. package/dist/collection/components/kup-date-picker/kup-date-picker.js +408 -394
  67. package/dist/collection/components/kup-drawer/kup-drawer.js +244 -236
  68. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +474 -464
  69. package/dist/collection/components/kup-echart/kup-echart.js +436 -423
  70. package/dist/collection/components/kup-family-tree/kup-family-tree.js +408 -421
  71. package/dist/collection/components/kup-form/kup-form.js +223 -225
  72. package/dist/collection/components/kup-gauge/kup-gauge.js +445 -445
  73. package/dist/collection/components/kup-grid/kup-grid.js +156 -153
  74. package/dist/collection/components/kup-iframe/kup-iframe.js +181 -173
  75. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  76. package/dist/collection/components/kup-image/kup-image.js +300 -295
  77. package/dist/collection/components/kup-image-list/kup-image-list.js +292 -285
  78. package/dist/collection/components/kup-lazy/kup-lazy.js +253 -253
  79. package/dist/collection/components/kup-list/kup-list.js +541 -504
  80. package/dist/collection/components/kup-magic-box/kup-magic-box.js +145 -145
  81. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +190 -184
  82. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +490 -478
  83. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +254 -242
  84. package/dist/collection/components/kup-probe/kup-probe.js +87 -83
  85. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +237 -241
  86. package/dist/collection/components/kup-qlik/kup-qlik.js +178 -170
  87. package/dist/collection/components/kup-radio/kup-radio.js +258 -255
  88. package/dist/collection/components/kup-rating/kup-rating.js +208 -197
  89. package/dist/collection/components/kup-snackbar/kup-snackbar.js +249 -246
  90. package/dist/collection/components/kup-spinner/kup-spinner.js +274 -269
  91. package/dist/collection/components/kup-switch/kup-switch.js +255 -246
  92. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +265 -224
  93. package/dist/collection/components/kup-text-field/kup-text-field.js +814 -805
  94. package/dist/collection/components/kup-time-picker/kup-time-picker.js +464 -450
  95. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  96. package/dist/collection/components/kup-tree/kup-tree.js +1068 -1076
  97. package/dist/collection/f-components/f-button/f-button.js +11 -20
  98. package/dist/collection/f-components/f-cell/f-cell.js +19 -21
  99. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  100. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  101. package/dist/collection/f-components/f-image/f-image.js +1 -3
  102. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  103. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  104. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  105. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  106. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  107. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  108. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  109. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  110. package/dist/esm/{f-button-15719ec1.js → f-button-e79f7594.js} +2 -2
  111. package/dist/esm/{f-cell-692c37bf.js → f-cell-9400374e.js} +21 -21
  112. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  113. package/dist/esm/{f-chip-abab04bf.js → f-chip-bf740287.js} +3 -3
  114. package/dist/esm/{f-image-98783644.js → f-image-ab3dc8cb.js} +2 -2
  115. package/dist/esm/{f-paginator-utils-d12ee737.js → f-paginator-utils-6909e43b.js} +3 -3
  116. package/dist/esm/{f-text-field-282025dd.js → f-text-field-4841dfea.js} +2 -2
  117. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  118. package/dist/esm/ketchup.js +3 -3
  119. package/dist/esm/kup-accordion.entry.js +3 -3
  120. package/dist/esm/kup-autocomplete_25.entry.js +206 -57
  121. package/dist/esm/kup-box.entry.js +11 -10
  122. package/dist/esm/kup-calendar.entry.js +5 -5
  123. package/dist/esm/kup-cell.entry.js +7 -7
  124. package/dist/esm/kup-dash-list.entry.js +2 -2
  125. package/dist/esm/kup-dash_2.entry.js +2 -2
  126. package/dist/esm/kup-dashboard.entry.js +6 -6
  127. package/dist/esm/kup-drawer.entry.js +2 -2
  128. package/dist/esm/kup-echart.entry.js +2 -2
  129. package/dist/esm/kup-family-tree.entry.js +4 -4
  130. package/dist/esm/kup-form.entry.js +8 -8
  131. package/dist/esm/kup-iframe.entry.js +2 -2
  132. package/dist/esm/kup-image-list.entry.js +8 -8
  133. package/dist/esm/kup-lazy.entry.js +2 -2
  134. package/dist/esm/kup-magic-box.entry.js +3 -3
  135. package/dist/esm/{kup-manager-abbae73e.js → kup-manager-c54e6df5.js} +16 -6
  136. package/dist/esm/kup-nav-bar.entry.js +2 -2
  137. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  138. package/dist/esm/kup-photo-frame.entry.js +2 -2
  139. package/dist/esm/kup-probe.entry.js +2 -2
  140. package/dist/esm/kup-qlik.entry.js +2 -2
  141. package/dist/esm/kup-snackbar.entry.js +4 -4
  142. package/dist/esm/loader.js +3 -3
  143. package/dist/esm/polyfills/css-shim.js +1 -1
  144. package/dist/ketchup/ketchup.esm.js +1 -1
  145. package/dist/ketchup/{p-5933aa02.entry.js → p-182b869e.entry.js} +1 -1
  146. package/dist/ketchup/{p-c05f2638.js → p-1dfd2a51.js} +1 -1
  147. package/dist/ketchup/{p-62f3ec78.entry.js → p-1f5c7f21.entry.js} +1 -1
  148. package/dist/ketchup/p-22ec1ba0.entry.js +9 -0
  149. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  150. package/dist/ketchup/{p-62421bcf.js → p-25bf0cb6.js} +1 -1
  151. package/dist/ketchup/{p-6946b614.entry.js → p-260ff835.entry.js} +1 -1
  152. package/dist/ketchup/{p-ccef2553.entry.js → p-2e184b57.entry.js} +1 -1
  153. package/dist/ketchup/{p-eeadd688.entry.js → p-30a63b85.entry.js} +1 -1
  154. package/dist/ketchup/{p-3760a159.entry.js → p-313e376b.entry.js} +1 -1
  155. package/dist/ketchup/{p-7e16265d.entry.js → p-41620707.entry.js} +1 -1
  156. package/dist/ketchup/{p-5ea2a1ff.entry.js → p-4a0ccf18.entry.js} +1 -1
  157. package/dist/ketchup/{p-6f3040fb.js → p-4f0d3062.js} +1 -1
  158. package/dist/ketchup/p-4fdb684f.js +2 -0
  159. package/dist/ketchup/{p-27538d6f.entry.js → p-53d3ae80.entry.js} +1 -1
  160. package/dist/ketchup/{p-20221a50.js → p-5bea2971.js} +1 -1
  161. package/dist/ketchup/{p-1ef5d16d.entry.js → p-60fa0ccf.entry.js} +1 -1
  162. package/dist/ketchup/p-6333388c.js +1 -0
  163. package/dist/ketchup/{p-725c6268.entry.js → p-6bd57787.entry.js} +1 -1
  164. package/dist/ketchup/p-758d03f4.entry.js +1 -0
  165. package/dist/ketchup/{p-9419919c.entry.js → p-7e7b6127.entry.js} +1 -1
  166. package/dist/ketchup/p-8386e3db.entry.js +1 -0
  167. package/dist/ketchup/{p-a4a30e0e.entry.js → p-859163c2.entry.js} +1 -1
  168. package/dist/ketchup/{p-a450d60a.entry.js → p-8e1fa7a8.entry.js} +1 -1
  169. package/dist/ketchup/{p-29d72040.entry.js → p-90860d9e.entry.js} +1 -1
  170. package/dist/ketchup/{p-d8af7ba6.entry.js → p-b7fdc7aa.entry.js} +1 -1
  171. package/dist/ketchup/{p-7d37ea62.entry.js → p-bffaef6e.entry.js} +1 -1
  172. package/dist/ketchup/{p-3e74e1ed.js → p-c35c5e05.js} +1 -1
  173. package/dist/ketchup/{p-e6ebdb80.js → p-e1d0ea71.js} +1 -1
  174. package/dist/ketchup/{p-fd930a34.entry.js → p-f9d5e553.entry.js} +1 -1
  175. package/dist/ketchup/{p-f6409c42.entry.js → p-fb4d772a.entry.js} +1 -1
  176. package/dist/loader/package.json +1 -0
  177. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  178. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  179. package/dist/types/components/kup-data-table/kup-data-table.d.ts +15 -1
  180. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  181. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  182. package/dist/types/components.d.ts +23 -0
  183. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  184. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  185. package/dist/types/stencil-public-runtime.d.ts +15 -4
  186. package/package.json +1 -1
  187. package/CHANGELOG.md +0 -5
  188. package/dist/ketchup/p-1d2dea0a.entry.js +0 -1
  189. package/dist/ketchup/p-680a8cb4.entry.js +0 -9
  190. package/dist/ketchup/p-b0b3989b.js +0 -2
  191. package/dist/ketchup/p-d7a92197.entry.js +0 -1
  192. 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';
@@ -185,9 +190,7 @@ export class KupFamilyTree {
185
190
  __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_startPanning).call(this, e);
186
191
  }, onWheel: (e) => {
187
192
  __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))));
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))));
191
194
  }
192
195
  disconnectedCallback() {
193
196
  __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.unregister(this);
@@ -195,398 +198,408 @@ export class KupFamilyTree {
195
198
  }
196
199
  static get is() { return "kup-family-tree"; }
197
200
  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": {}
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"
233
233
  },
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."
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"
242
254
  },
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"
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
+ }
257
266
  }
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."
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"
287
278
  },
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": {}
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"
299
299
  },
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."
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": "''"
311
323
  },
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"
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
+ }
326
335
  }
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."
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"
337
347
  },
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"
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
+ }
350
359
  }
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": ""
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"
397
373
  },
398
- "complexType": {
399
- "original": "KupFamilyTreeEventPayload",
400
- "resolved": "KupFamilyTreeEventPayload",
401
- "references": {
402
- "KupFamilyTreeEventPayload": {
403
- "location": "import",
404
- "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
+ }
405
416
  }
406
417
  }
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"
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
+ }
425
436
  }
426
437
  }
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"
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
+ }
445
456
  }
446
457
  }
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"
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
+ }
460
477
  },
461
- "KupFamilyTreeNode": {
462
- "location": "import",
463
- "path": "./kup-family-tree-declarations"
464
- }
478
+ "return": "Promise<void>"
465
479
  },
466
- "return": "Promise<void>"
480
+ "docs": {
481
+ "text": "Collapses all nodes.",
482
+ "tags": []
483
+ }
467
484
  },
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"
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
+ }
483
500
  },
484
- "KupFamilyTreeNode": {
485
- "location": "import",
486
- "path": "./kup-family-tree-declarations"
487
- }
501
+ "return": "Promise<void>"
488
502
  },
489
- "return": "Promise<void>"
503
+ "docs": {
504
+ "text": "Expands all nodes.",
505
+ "tags": []
506
+ }
490
507
  },
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"
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
+ }
509
526
  },
510
- "GenericObject": {
511
- "location": "import",
512
- "path": "../../types/GenericTypes"
513
- }
527
+ "return": "Promise<GenericObject>"
514
528
  },
515
- "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
+ }
516
539
  },
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
- }
540
+ "refresh": {
541
+ "complexType": {
542
+ "signature": "() => Promise<void>",
543
+ "parameters": [],
544
+ "references": {
545
+ "Promise": {
546
+ "location": "global"
547
+ }
548
+ },
549
+ "return": "Promise<void>"
536
550
  },
537
- "return": "Promise<void>"
551
+ "docs": {
552
+ "text": "This method is used to trigger a new render of the component.",
553
+ "tags": []
554
+ }
538
555
  },
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
- }
556
+ "runAutofit": {
557
+ "complexType": {
558
+ "signature": "() => Promise<void>",
559
+ "parameters": [],
560
+ "references": {
561
+ "Promise": {
562
+ "location": "global"
563
+ }
564
+ },
565
+ "return": "Promise<void>"
552
566
  },
553
- "return": "Promise<void>"
567
+ "docs": {
568
+ "text": "This method causes the component to autofit its container's width.",
569
+ "tags": []
570
+ }
554
571
  },
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"
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
+ }
573
590
  },
574
- "GenericObject": {
575
- "location": "import",
576
- "path": "../../types/GenericTypes"
577
- }
591
+ "return": "Promise<void>"
578
592
  },
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
- }]
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
+ }
587
600
  }
588
- }
589
- }; }
601
+ };
602
+ }
590
603
  static get elementRef() { return "rootElement"; }
591
604
  }
592
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) {
@@ -595,14 +608,12 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
595
608
  'family-tree__line': true,
596
609
  'family-tree__line--right': !first,
597
610
  'family-tree__line--top': !first,
598
- } },
599
- h("div", { class: 'family-tree__line--placeholder' })));
611
+ } }, h("div", { class: 'family-tree__line--placeholder' })));
600
612
  content.push(h("td", { class: {
601
613
  'family-tree__line': true,
602
614
  'family-tree__line--left': first,
603
615
  'family-tree__line--top': (first && !alone) || (moreTwo && !last),
604
- } },
605
- h("div", { class: 'family-tree__line--placeholder' })));
616
+ } }, h("div", { class: 'family-tree__line--placeholder' })));
606
617
  return content;
607
618
  }, _KupFamilyTree_buildNode = function _KupFamilyTree_buildNode(node) {
608
619
  var _a;
@@ -668,14 +679,11 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
668
679
  if (__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_isBoxLayout).call(this, layout)) {
669
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 }));
670
681
  }
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)));
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)));
679
687
  const staffStyle = {
680
688
  ['--kup_familytree_staffchildren']: (staffChildren === null || staffChildren === void 0 ? void 0 : staffChildren.length.toString()) || '0',
681
689
  };
@@ -685,37 +693,23 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
685
693
  'family-tree__node--stacked': this.stackedLeaves &&
686
694
  !node.isStaff &&
687
695
  (!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));
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));
719
713
  }, _KupFamilyTree_buildNodeLayout = function _KupFamilyTree_buildNodeLayout(node, layout) {
720
714
  switch (layout) {
721
715
  case 2:
@@ -724,16 +718,9 @@ _KupFamilyTree_clickTimeout = new WeakMap(), _KupFamilyTree_hold = new WeakMap()
724
718
  return __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNodeLayout1).call(this, node);
725
719
  }
726
720
  }, _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)));
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)));
729
722
  }, _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)));
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)));
737
724
  }, _KupFamilyTree_buildNodes = function _KupFamilyTree_buildNodes(nodes) {
738
725
  return nodes.map((node) => __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_buildNode).call(this, node));
739
726
  }, _KupFamilyTree_createTree = function _KupFamilyTree_createTree() {