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