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