@sme.up/ketchup 6.0.0 → 6.2.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/dist/cjs/{cell-utils-a78d6fac.js → cell-utils-fe64a28c.js} +2 -2
- package/dist/cjs/{f-button-ac179257.js → f-button-5b69d882.js} +4 -4
- package/dist/cjs/f-cell-3a740c48.js +418 -0
- package/dist/cjs/f-checkbox-57443ca3.js +29 -0
- package/dist/cjs/{f-chip-b00897d7.js → f-chip-02e83f82.js} +3 -3
- package/dist/cjs/{f-image-89f25556.js → f-image-2a61ece2.js} +2 -2
- package/dist/cjs/{f-paginator-utils-8fa501b3.js → f-paginator-utils-09126bdd.js} +5 -5
- package/dist/cjs/{f-text-field-e1e45ade.js → f-text-field-9ee20a67.js} +3 -3
- package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
- package/dist/cjs/kup-autocomplete_25.cjs.entry.js +209 -193
- package/dist/cjs/kup-box.cjs.entry.js +1306 -0
- package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
- package/dist/cjs/kup-cell.cjs.entry.js +10 -9
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
- package/dist/cjs/{kup-form-editor.cjs.entry.js → kup-dashboard.cjs.entry.js} +123 -148
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/{kup-box_2.cjs.entry.js → kup-echart.cjs.entry.js} +53 -1338
- package/dist/cjs/kup-family-tree.cjs.entry.js +410 -0
- package/dist/cjs/kup-form.cjs.entry.js +480 -0
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-image-list.cjs.entry.js +73 -11
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
- package/dist/cjs/{kup-manager-7a941909.js → kup-manager-02acbb37.js} +407 -7
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
- 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 +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-6287d878.js → utils-4b208b48.js} +1 -1
- package/dist/collection/assets/dashboard.js +113 -0
- package/dist/collection/assets/data-table.js +15 -0
- package/dist/collection/assets/family-tree.js +2437 -0
- package/dist/collection/assets/form.js +433 -0
- package/dist/collection/assets/grid.js +17 -0
- package/dist/collection/assets/index.js +14 -6
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +135 -129
- package/dist/collection/components/kup-box/kup-box.js +13 -2
- package/dist/collection/components/kup-button/kup-button.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +16 -13
- package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
- package/dist/collection/components/{kup-form-editor/kup-form-editor.css → kup-dashboard/kup-dashboard.css} +7 -6
- package/dist/collection/components/{kup-form-editor/kup-form-editor.js → kup-dashboard/kup-dashboard.js} +148 -149
- package/dist/collection/components/kup-data-table/kup-data-table.js +7 -6
- package/dist/collection/components/kup-drawer/kup-drawer.css +5 -8
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +12 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +101 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +666 -0
- package/dist/collection/components/kup-form/kup-form-declarations.js +25 -0
- package/dist/collection/components/kup-form/kup-form.css +99 -0
- package/dist/collection/components/kup-form/kup-form.js +647 -0
- package/dist/collection/components/kup-grid/kup-grid.js +1 -4
- package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +0 -6
- package/dist/collection/components/kup-image-list/kup-image-list.js +113 -1
- package/dist/collection/components/kup-lazy/kup-lazy.css +13 -6
- package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +13 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +0 -6
- package/dist/collection/components/kup-tree/kup-tree.js +10 -4
- package/dist/collection/f-components/f-button/f-button.js +2 -2
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
- package/dist/collection/f-components/f-cell/f-cell.js +34 -114
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +69 -0
- package/dist/collection/managers/kup-data/kup-data.js +109 -1
- package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -0
- package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +20 -3
- package/dist/collection/types/GenericTypes.js +3 -2
- package/dist/esm/{cell-utils-964da6b5.js → cell-utils-cb5d4149.js} +2 -2
- package/dist/esm/{f-button-871a544b.js → f-button-fd44ef70.js} +4 -4
- package/dist/esm/{f-cell-521ef17a.js → f-cell-7b159a22.js} +48 -283
- package/dist/esm/f-checkbox-c51c4a75.js +27 -0
- package/dist/esm/{f-chip-1dda722f.js → f-chip-c2e4c522.js} +3 -3
- package/dist/esm/{f-image-c468d8ae.js → f-image-2ab4b9aa.js} +2 -2
- package/dist/esm/{f-paginator-utils-7dff8ff0.js → f-paginator-utils-ef537d82.js} +5 -5
- package/dist/esm/{f-text-field-d6c61c73.js → f-text-field-41c575eb.js} +3 -3
- package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +4 -4
- package/dist/esm/kup-autocomplete_25.entry.js +199 -183
- package/dist/esm/kup-box.entry.js +1302 -0
- package/dist/esm/kup-calendar.entry.js +7 -7
- package/dist/esm/kup-cell.entry.js +9 -8
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +4 -7
- package/dist/esm/{kup-form-editor.entry.js → kup-dashboard.entry.js} +123 -148
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/{kup-box_2.entry.js → kup-echart.entry.js} +54 -1338
- package/dist/esm/kup-family-tree.entry.js +406 -0
- package/dist/esm/kup-form.entry.js +476 -0
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-image-list.entry.js +72 -10
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/{kup-manager-58b075b4.js → kup-manager-22a475e6.js} +404 -8
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +5 -5
- 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 +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-d7e4b3c2.js → utils-2c1f4122.js} +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-06c6cc68.js +1 -0
- package/dist/ketchup/{p-3c11e615.entry.js → p-0dacd4bc.entry.js} +1 -1
- package/dist/ketchup/{p-fac1a08b.entry.js → p-1959f835.entry.js} +1 -1
- package/dist/ketchup/p-1c44dc62.entry.js +1 -0
- package/dist/ketchup/{p-f09f2f98.entry.js → p-264b1b19.entry.js} +1 -1
- package/dist/ketchup/p-38d7584e.js +1 -0
- package/dist/ketchup/{p-f71a1675.entry.js → p-42080355.entry.js} +1 -1
- package/dist/ketchup/p-4bc9f98b.entry.js +1 -0
- package/dist/ketchup/p-578583db.entry.js +1 -0
- package/dist/ketchup/p-5866d507.entry.js +1 -0
- package/dist/ketchup/p-61059e9d.entry.js +9 -0
- package/dist/ketchup/{p-a615a92b.entry.js → p-664be494.entry.js} +1 -1
- package/dist/ketchup/{p-d2ee56dd.entry.js → p-67cd575d.entry.js} +1 -1
- package/dist/ketchup/{p-e0035c58.js → p-682a367a.js} +1 -1
- package/dist/ketchup/p-6ccf7eb2.entry.js +1 -0
- package/dist/ketchup/p-7230ab97.entry.js +1 -0
- package/dist/ketchup/p-752b4cef.entry.js +1 -0
- package/dist/ketchup/{p-954cc340.entry.js → p-7de3e7ac.entry.js} +1 -1
- package/dist/ketchup/p-928c5c36.js +1 -0
- package/dist/ketchup/{p-6dff70f8.entry.js → p-9b36497d.entry.js} +1 -1
- package/dist/ketchup/{p-99e0d768.entry.js → p-b982d137.entry.js} +1 -1
- package/dist/ketchup/{p-8cdf61a4.js → p-c0219e5e.js} +1 -1
- package/dist/ketchup/p-c55fd0a7.entry.js +1 -0
- package/dist/ketchup/p-cd5cfa7c.js +1 -0
- package/dist/ketchup/p-d154b3a0.entry.js +1 -0
- package/dist/ketchup/p-d2affb6f.entry.js +27 -0
- package/dist/ketchup/p-d3b542b3.js +2 -0
- package/dist/ketchup/{p-7454cb92.js → p-d6c12c6c.js} +1 -1
- package/dist/ketchup/p-da0eab60.entry.js +1 -0
- package/dist/ketchup/{p-7eff4eee.js → p-dc62a30f.js} +1 -1
- package/dist/ketchup/p-e9366aaf.entry.js +39 -0
- package/dist/ketchup/{p-44ec4f03.js → p-edae3076.js} +1 -1
- package/dist/ketchup/p-fc2b1229.js +30 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
- package/dist/types/components/{kup-form-editor/kup-form-editor-declarations.d.ts → kup-dashboard/kup-dashboard-declarations.d.ts} +9 -27
- package/dist/types/components/{kup-form-editor/kup-form-editor.d.ts → kup-dashboard/kup-dashboard.d.ts} +12 -9
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +33 -0
- package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +61 -0
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +60 -0
- package/dist/types/components/kup-form/kup-form.d.ts +63 -0
- package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +17 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +2 -0
- package/dist/types/components.d.ts +460 -241
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +8 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +15 -1
- package/dist/types/managers/kup-data/kup-data.d.ts +7 -1
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -1
- package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/types/GenericTypes.d.ts +3 -2
- package/package.json +2 -2
- package/dist/cjs/f-cell-69294bca.js +0 -653
- package/dist/cjs/kup-field.cjs.entry.js +0 -241
- package/dist/collection/assets/form-editor.js +0 -338
- package/dist/collection/components/kup-field/kup-field-declarations.js +0 -15
- package/dist/collection/components/kup-field/kup-field.css +0 -48
- package/dist/collection/components/kup-field/kup-field.js +0 -514
- package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +0 -23
- package/dist/esm/kup-field.entry.js +0 -237
- package/dist/ketchup/p-1ae66cc5.js +0 -1
- package/dist/ketchup/p-34b74425.js +0 -1
- package/dist/ketchup/p-4ffbc3ff.js +0 -1
- package/dist/ketchup/p-5264a3e6.entry.js +0 -1
- package/dist/ketchup/p-65974e48.entry.js +0 -1
- package/dist/ketchup/p-65b46587.entry.js +0 -40
- package/dist/ketchup/p-80968627.entry.js +0 -1
- package/dist/ketchup/p-a0f6e25c.entry.js +0 -1
- package/dist/ketchup/p-aca0e54b.js +0 -30
- package/dist/ketchup/p-b8939a8b.entry.js +0 -1
- package/dist/ketchup/p-bfc3bac7.js +0 -1
- package/dist/ketchup/p-c5ce8951.entry.js +0 -1
- package/dist/ketchup/p-cad1e097.entry.js +0 -9
- package/dist/ketchup/p-db71436b.entry.js +0 -27
- package/dist/ketchup/p-e1039cf2.entry.js +0 -1
- package/dist/ketchup/p-ea10176c.entry.js +0 -1
- package/dist/types/components/kup-field/kup-field-declarations.d.ts +0 -25
- package/dist/types/components/kup-field/kup-field.d.ts +0 -90
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Component, Element, forceUpdate, h, Host, Method, Prop, State, Event, Watch, } from '@stencil/core';
|
|
2
2
|
import { FButton } from '../../f-components/f-button/f-button';
|
|
3
|
+
import { FCheckbox } from '../../f-components/f-checkbox/f-checkbox';
|
|
4
|
+
import { FTextField } from '../../f-components/f-text-field/f-text-field';
|
|
5
|
+
import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
|
|
3
6
|
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
4
7
|
import { KupDragEffect } from '../../managers/kup-interact/kup-interact-declarations';
|
|
5
|
-
import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
|
|
8
|
+
import { KupLanguageDashboard, KupLanguageGeneric, } from '../../managers/kup-language/kup-language-declarations';
|
|
6
9
|
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
7
10
|
import { getProps, setProps } from '../../utils/utils';
|
|
8
11
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
9
|
-
import {
|
|
10
|
-
export class
|
|
12
|
+
import { KupDashboardProps, } from './kup-dashboard-declarations';
|
|
13
|
+
export class KupDashboard {
|
|
11
14
|
constructor() {
|
|
12
15
|
/*-------------------------------------------------*/
|
|
13
16
|
/* S t a t e s */
|
|
@@ -27,9 +30,14 @@ export class KupFormEditor {
|
|
|
27
30
|
this.customStyle = '';
|
|
28
31
|
/**
|
|
29
32
|
* The data of the component.
|
|
30
|
-
* @default
|
|
33
|
+
* @default null
|
|
31
34
|
*/
|
|
32
35
|
this.data = null;
|
|
36
|
+
/**
|
|
37
|
+
* Enable drag & drop of the section.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
this.enableDesign = false;
|
|
33
41
|
/*-------------------------------------------------*/
|
|
34
42
|
/* I n t e r n a l V a r i a b l e s */
|
|
35
43
|
/*-------------------------------------------------*/
|
|
@@ -37,10 +45,6 @@ export class KupFormEditor {
|
|
|
37
45
|
* Instance of the KupManager class.
|
|
38
46
|
*/
|
|
39
47
|
this.kupManager = kupManagerInstance();
|
|
40
|
-
/**
|
|
41
|
-
* Draggable type of Form (Components or Sections).
|
|
42
|
-
*/
|
|
43
|
-
this.dragType = KupFormEditorDragTypes.Components;
|
|
44
48
|
/**
|
|
45
49
|
* Internal data of the component.
|
|
46
50
|
*/
|
|
@@ -72,7 +76,7 @@ export class KupFormEditor {
|
|
|
72
76
|
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
73
77
|
*/
|
|
74
78
|
async getProps(descriptions) {
|
|
75
|
-
return getProps(this,
|
|
79
|
+
return getProps(this, KupDashboardProps, descriptions);
|
|
76
80
|
}
|
|
77
81
|
/**
|
|
78
82
|
* This method is used to trigger a new render of the component.
|
|
@@ -85,15 +89,21 @@ export class KupFormEditor {
|
|
|
85
89
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
86
90
|
*/
|
|
87
91
|
async setProps(props) {
|
|
88
|
-
setProps(this,
|
|
92
|
+
setProps(this, KupDashboardProps, props);
|
|
89
93
|
}
|
|
90
94
|
/*-------------------------------------------------*/
|
|
91
95
|
/* P r i v a t e M e t h o d s */
|
|
92
96
|
/*-------------------------------------------------*/
|
|
97
|
+
buildGuid() {
|
|
98
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
99
|
+
var r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
100
|
+
return v.toString(16);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
93
103
|
buildHeader() {
|
|
94
104
|
const clearButtonProp = {
|
|
95
105
|
icon: 'cancel',
|
|
96
|
-
label:
|
|
106
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.RESET),
|
|
97
107
|
secondary: true,
|
|
98
108
|
onClick: () => {
|
|
99
109
|
this.resetData();
|
|
@@ -101,41 +111,24 @@ export class KupFormEditor {
|
|
|
101
111
|
};
|
|
102
112
|
const saveButtonProp = {
|
|
103
113
|
icon: 'save',
|
|
104
|
-
label:
|
|
114
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.SAVE),
|
|
105
115
|
onClick: () => this.onKupSave(),
|
|
106
116
|
};
|
|
107
|
-
const selRadioProp = [
|
|
108
|
-
{
|
|
109
|
-
label: KupFormEditorLabels.Components,
|
|
110
|
-
value: KupFormEditorDragTypes.Components,
|
|
111
|
-
checked: this.dragType == KupFormEditorDragTypes.Components,
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
label: KupFormEditorLabels.Sections,
|
|
115
|
-
value: KupFormEditorDragTypes.Sections,
|
|
116
|
-
checked: this.dragType == KupFormEditorDragTypes.Sections,
|
|
117
|
-
},
|
|
118
|
-
];
|
|
119
117
|
return (h("div", { class: "header" },
|
|
120
|
-
h(
|
|
121
|
-
|
|
122
|
-
.value;
|
|
123
|
-
this.resetData(this.internalData);
|
|
124
|
-
} }),
|
|
125
|
-
h(FButton, Object.assign({}, clearButtonProp)),
|
|
126
|
-
h(FButton, Object.assign({}, saveButtonProp))));
|
|
118
|
+
this.enableDesign ? (h(FButton, Object.assign({}, clearButtonProp))) : undefined,
|
|
119
|
+
this.enableDesign ? (h(FButton, Object.assign({}, saveButtonProp))) : undefined));
|
|
127
120
|
}
|
|
128
121
|
buildForm(form, parent) {
|
|
129
122
|
const classes = {
|
|
130
123
|
form: true,
|
|
131
124
|
'layout-column': form && form.layout == 'column',
|
|
132
125
|
'layout-row': form && form.layout == 'row',
|
|
133
|
-
'form-dropzone':
|
|
134
|
-
|
|
126
|
+
'form-dropzone': this.enableDesign &&
|
|
127
|
+
form &&
|
|
135
128
|
form.sections != null &&
|
|
136
129
|
form.sections.length > 0,
|
|
137
130
|
};
|
|
138
|
-
return form ? (h("div", { class: classes, ref: (el) => {
|
|
131
|
+
return form ? (h("div", { class: classes, style: this.getGridStyle(form), ref: (el) => {
|
|
139
132
|
if (!el)
|
|
140
133
|
return;
|
|
141
134
|
const kel = el;
|
|
@@ -143,6 +136,14 @@ export class KupFormEditor {
|
|
|
143
136
|
} }, form.sections.map((section) => this.buildSection(section, form)))) : (h("div", null, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
|
|
144
137
|
}
|
|
145
138
|
buildSectionHeader(section, parent) {
|
|
139
|
+
const dimTextFieldProp = {
|
|
140
|
+
value: section.dim,
|
|
141
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.DIMENSION),
|
|
142
|
+
onChange: (e) => {
|
|
143
|
+
const { target } = e;
|
|
144
|
+
section.dim = target.value;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
146
147
|
const addButtonProp = {
|
|
147
148
|
icon: 'add',
|
|
148
149
|
slim: true,
|
|
@@ -154,12 +155,7 @@ export class KupFormEditor {
|
|
|
154
155
|
id: section.id + (section.sections.length + 1),
|
|
155
156
|
loaded: section.loaded,
|
|
156
157
|
layout: section.layout,
|
|
157
|
-
components: [],
|
|
158
158
|
};
|
|
159
|
-
if (section.components) {
|
|
160
|
-
section.components.forEach((x) => newSec.components.push(x));
|
|
161
|
-
section.components.splice(0);
|
|
162
|
-
}
|
|
163
159
|
section.sections.push(newSec);
|
|
164
160
|
this.resetData(this.internalData);
|
|
165
161
|
},
|
|
@@ -174,97 +170,66 @@ export class KupFormEditor {
|
|
|
174
170
|
this.resetData(this.internalData);
|
|
175
171
|
},
|
|
176
172
|
};
|
|
173
|
+
const loadedCheckBoxProp = {
|
|
174
|
+
checked: section.loaded,
|
|
175
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.LOADED),
|
|
176
|
+
onChange: () => {
|
|
177
|
+
section.loaded = !section.loaded;
|
|
178
|
+
this.refresh();
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
const columnCheckBoxProp = {
|
|
182
|
+
checked: section.layout == 'column',
|
|
183
|
+
label: this.kupManager.language.translate(KupLanguageDashboard.VERTICAL),
|
|
184
|
+
onChange: () => {
|
|
185
|
+
section.layout = section.layout == 'column' ? 'row' : 'column';
|
|
186
|
+
this.refresh();
|
|
187
|
+
},
|
|
188
|
+
};
|
|
177
189
|
return (h("div", { class: "section-header" },
|
|
178
190
|
h("div", null,
|
|
179
191
|
section.id,
|
|
180
|
-
|
|
181
|
-
section.dim ? '(' + section.dim + ')' : undefined,
|
|
182
|
-
" -",
|
|
183
|
-
' ',
|
|
192
|
+
" - ",
|
|
184
193
|
section.layout),
|
|
185
194
|
h("div", null,
|
|
186
195
|
h("div", { class: "section-header-actions" },
|
|
187
|
-
h(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
h("kup-switch", { checked: section.layout == 'column', label: KupFormEditorLabels.Column, "onKup-switch-change": (ev) => {
|
|
191
|
-
section.layout =
|
|
192
|
-
ev.detail.value == 'on' ? 'column' : 'row';
|
|
193
|
-
this.resetData(this.internalData);
|
|
194
|
-
} }),
|
|
196
|
+
h(FTextField, Object.assign({}, dimTextFieldProp)),
|
|
197
|
+
h(FCheckbox, Object.assign({}, loadedCheckBoxProp)),
|
|
198
|
+
h(FCheckbox, Object.assign({}, columnCheckBoxProp)),
|
|
195
199
|
h(FButton, Object.assign({}, addButtonProp)),
|
|
196
|
-
h(FButton, Object.assign({}, removeButtonProp))
|
|
197
|
-
section.components && section.components.length > 0 ? (h("kup-image", { resource: "widgets", sizeX: "24px", sizeY: "24px" })) : undefined))));
|
|
200
|
+
h(FButton, Object.assign({}, removeButtonProp))))));
|
|
198
201
|
}
|
|
199
202
|
buildSection(section, parent) {
|
|
200
203
|
const classes = {
|
|
201
204
|
section: true,
|
|
202
|
-
'section-draggable': this.
|
|
203
|
-
'section-dropzone':
|
|
204
|
-
section.sections.length == 0 ||
|
|
205
|
-
this.dragType == KupFormEditorDragTypes.Sections,
|
|
205
|
+
'section-draggable': this.enableDesign,
|
|
206
|
+
'section-dropzone': this.enableDesign,
|
|
206
207
|
};
|
|
207
208
|
const bodyClasses = {
|
|
208
209
|
'section-body': true,
|
|
209
210
|
'layout-column': section && section.layout == 'column',
|
|
210
211
|
'layout-row': section && section.layout == 'row',
|
|
211
212
|
};
|
|
212
|
-
let bodyStyles = {};
|
|
213
|
-
if (section.sections) {
|
|
214
|
-
let gridTemplate = '';
|
|
215
|
-
section.sections.forEach((childSection) => {
|
|
216
|
-
if (!childSection.dim)
|
|
217
|
-
gridTemplate += ' 1fr';
|
|
218
|
-
else
|
|
219
|
-
gridTemplate +=
|
|
220
|
-
childSection.dim.indexOf('%') < 0
|
|
221
|
-
? ' ' + childSection.dim + 'px'
|
|
222
|
-
: ' ' + childSection.dim;
|
|
223
|
-
});
|
|
224
|
-
if (section.layout == 'column')
|
|
225
|
-
bodyStyles['gridTemplateRows'] = gridTemplate;
|
|
226
|
-
if (section.layout == 'row')
|
|
227
|
-
bodyStyles['gridTemplateColumns'] = gridTemplate;
|
|
228
|
-
}
|
|
229
213
|
return (h("div", { class: classes, ref: (el) => {
|
|
230
214
|
if (!el)
|
|
231
215
|
return;
|
|
232
216
|
const kel = el;
|
|
233
217
|
kel.kupData = { parent: parent, section: section };
|
|
234
218
|
} },
|
|
235
|
-
this.
|
|
219
|
+
this.enableDesign
|
|
236
220
|
? this.buildSectionHeader(section, parent)
|
|
237
221
|
: undefined,
|
|
238
|
-
h("div", { class: bodyClasses, style:
|
|
239
|
-
this.
|
|
240
|
-
section.
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
return;
|
|
244
|
-
const kel = el;
|
|
245
|
-
kel.kupData = {
|
|
246
|
-
section: section,
|
|
247
|
-
componnent: component,
|
|
248
|
-
};
|
|
249
|
-
} },
|
|
250
|
-
component.id,
|
|
251
|
-
" - ",
|
|
252
|
-
component.type,
|
|
253
|
-
h("kup-switch", { checked: component.loaded, label: KupFormEditorLabels.Loaded, "onKup-switch-change": (ev) => {
|
|
254
|
-
component.loaded =
|
|
255
|
-
ev.detail.value == 'on';
|
|
256
|
-
} }))))
|
|
257
|
-
: undefined,
|
|
258
|
-
section.sections
|
|
222
|
+
h("div", { class: bodyClasses, style: this.getGridStyle(section) },
|
|
223
|
+
!this.enableDesign &&
|
|
224
|
+
section.loaded &&
|
|
225
|
+
(!section.sections || section.sections.length == 0) ? (h("slot", { name: section.id })) : undefined,
|
|
226
|
+
section.sections && (section.loaded || this.enableDesign)
|
|
259
227
|
? section.sections.map((childSection) => this.buildSection(childSection, section))
|
|
260
228
|
: undefined)));
|
|
261
229
|
}
|
|
262
230
|
didRenderInteractables() {
|
|
263
231
|
try {
|
|
264
232
|
const items = [];
|
|
265
|
-
this.rootElement.shadowRoot
|
|
266
|
-
.querySelectorAll('.component-draggable')
|
|
267
|
-
.forEach((x) => items.push(x));
|
|
268
233
|
this.rootElement.shadowRoot
|
|
269
234
|
.querySelectorAll('.section-draggable')
|
|
270
235
|
.forEach((x) => items.push(x));
|
|
@@ -286,7 +251,6 @@ export class KupFormEditor {
|
|
|
286
251
|
items.forEach((item) => {
|
|
287
252
|
this.kupManager.interact.dropzone(item, null, null, {
|
|
288
253
|
drop: (ev) => {
|
|
289
|
-
ev.currentTarget.appendChild(ev.relatedTarget);
|
|
290
254
|
this.dropped(ev.currentTarget, ev.relatedTarget);
|
|
291
255
|
},
|
|
292
256
|
});
|
|
@@ -297,44 +261,51 @@ export class KupFormEditor {
|
|
|
297
261
|
}
|
|
298
262
|
}
|
|
299
263
|
dropped(parent, child) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
264
|
+
const idx = child.kupData.parent.sections.indexOf(child.kupData.section);
|
|
265
|
+
child.kupData.parent.sections.splice(idx, 1);
|
|
266
|
+
if (parent.kupData.form) {
|
|
267
|
+
// form is the target of drop.
|
|
268
|
+
if (!parent.kupData.form.sections)
|
|
269
|
+
parent.kupData.form.sections = [];
|
|
270
|
+
parent.kupData.form.sections.push(child.kupData.section);
|
|
271
|
+
child.kupData.parent = parent.kupData.form;
|
|
305
272
|
}
|
|
306
|
-
else if (
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
//
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
273
|
+
else if (parent.kupData.section) {
|
|
274
|
+
// section is the target of drop.
|
|
275
|
+
if (!parent.kupData.section.sections ||
|
|
276
|
+
parent.kupData.section.sections.length == 0) {
|
|
277
|
+
// if the section target of drop doesn't contains other sections, i create a wrapper that will contain target section and dragged section.
|
|
278
|
+
const newSec = JSON.parse(JSON.stringify(parent.kupData.section));
|
|
279
|
+
newSec.dim = null;
|
|
280
|
+
child.kupData.section.dim = null;
|
|
281
|
+
parent.kupData.section.id = this.buildGuid();
|
|
282
|
+
parent.kupData.section.sections = [];
|
|
283
|
+
parent.kupData.section.sections.push(newSec);
|
|
315
284
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
285
|
+
parent.kupData.section.sections.push(child.kupData.section);
|
|
286
|
+
child.kupData.parent = parent.kupData.section;
|
|
287
|
+
}
|
|
288
|
+
this.resetData(this.internalData);
|
|
289
|
+
}
|
|
290
|
+
getGridStyle(entity) {
|
|
291
|
+
let bodyStyles = {};
|
|
292
|
+
if (!this.enableDesign && entity.sections) {
|
|
293
|
+
let gridTemplate = '';
|
|
294
|
+
entity.sections.forEach((childSection) => {
|
|
295
|
+
if (!childSection.dim)
|
|
296
|
+
gridTemplate += ' 1fr';
|
|
297
|
+
else
|
|
298
|
+
gridTemplate +=
|
|
299
|
+
childSection.dim.indexOf('%') < 0
|
|
300
|
+
? ' ' + childSection.dim + 'px'
|
|
301
|
+
: ' ' + childSection.dim;
|
|
302
|
+
});
|
|
303
|
+
if (entity.layout == 'column')
|
|
304
|
+
bodyStyles['gridTemplateRows'] = gridTemplate;
|
|
305
|
+
if (entity.layout == 'row')
|
|
306
|
+
bodyStyles['gridTemplateColumns'] = gridTemplate;
|
|
337
307
|
}
|
|
308
|
+
return bodyStyles;
|
|
338
309
|
}
|
|
339
310
|
resetData(form = null) {
|
|
340
311
|
if (form)
|
|
@@ -349,7 +320,6 @@ export class KupFormEditor {
|
|
|
349
320
|
}, 250);
|
|
350
321
|
}
|
|
351
322
|
unregisterInteractables() {
|
|
352
|
-
this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll('.component-draggable')));
|
|
353
323
|
this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll('.section-dropzone')));
|
|
354
324
|
this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll('.section-draggable')));
|
|
355
325
|
this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll('.form-dropzone')));
|
|
@@ -377,6 +347,14 @@ export class KupFormEditor {
|
|
|
377
347
|
}
|
|
378
348
|
componentDidRender() {
|
|
379
349
|
this.kupManager.debug.logRender(this, true);
|
|
350
|
+
const root = this.rootElement.shadowRoot;
|
|
351
|
+
if (root) {
|
|
352
|
+
const fields = root.querySelectorAll('.f-text-field');
|
|
353
|
+
if (fields)
|
|
354
|
+
fields.forEach((f) => {
|
|
355
|
+
FTextFieldMDC(f);
|
|
356
|
+
});
|
|
357
|
+
}
|
|
380
358
|
this.didRenderInteractables();
|
|
381
359
|
}
|
|
382
360
|
render() {
|
|
@@ -392,13 +370,13 @@ export class KupFormEditor {
|
|
|
392
370
|
this.kupManager.language.unregister(this);
|
|
393
371
|
this.kupManager.theme.unregister(this);
|
|
394
372
|
}
|
|
395
|
-
static get is() { return "kup-
|
|
373
|
+
static get is() { return "kup-dashboard"; }
|
|
396
374
|
static get encapsulation() { return "shadow"; }
|
|
397
375
|
static get originalStyleUrls() { return {
|
|
398
|
-
"$": ["kup-
|
|
376
|
+
"$": ["kup-dashboard.scss"]
|
|
399
377
|
}; }
|
|
400
378
|
static get styleUrls() { return {
|
|
401
|
-
"$": ["kup-
|
|
379
|
+
"$": ["kup-dashboard.css"]
|
|
402
380
|
}; }
|
|
403
381
|
static get properties() { return {
|
|
404
382
|
"customStyle": {
|
|
@@ -429,12 +407,12 @@ export class KupFormEditor {
|
|
|
429
407
|
"type": "unknown",
|
|
430
408
|
"mutable": false,
|
|
431
409
|
"complexType": {
|
|
432
|
-
"original": "
|
|
433
|
-
"resolved": "
|
|
410
|
+
"original": "KupDataDashboard",
|
|
411
|
+
"resolved": "KupDataDashboard",
|
|
434
412
|
"references": {
|
|
435
|
-
"
|
|
413
|
+
"KupDataDashboard": {
|
|
436
414
|
"location": "import",
|
|
437
|
-
"path": "./kup-
|
|
415
|
+
"path": "./kup-dashboard-declarations"
|
|
438
416
|
}
|
|
439
417
|
}
|
|
440
418
|
},
|
|
@@ -443,11 +421,32 @@ export class KupFormEditor {
|
|
|
443
421
|
"docs": {
|
|
444
422
|
"tags": [{
|
|
445
423
|
"name": "default",
|
|
446
|
-
"text": "
|
|
424
|
+
"text": "null"
|
|
447
425
|
}],
|
|
448
426
|
"text": "The data of the component."
|
|
449
427
|
},
|
|
450
428
|
"defaultValue": "null"
|
|
429
|
+
},
|
|
430
|
+
"enableDesign": {
|
|
431
|
+
"type": "boolean",
|
|
432
|
+
"mutable": false,
|
|
433
|
+
"complexType": {
|
|
434
|
+
"original": "boolean",
|
|
435
|
+
"resolved": "boolean",
|
|
436
|
+
"references": {}
|
|
437
|
+
},
|
|
438
|
+
"required": false,
|
|
439
|
+
"optional": false,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [{
|
|
442
|
+
"name": "default",
|
|
443
|
+
"text": "false"
|
|
444
|
+
}],
|
|
445
|
+
"text": "Enable drag & drop of the section."
|
|
446
|
+
},
|
|
447
|
+
"attribute": "enable-design",
|
|
448
|
+
"reflect": false,
|
|
449
|
+
"defaultValue": "false"
|
|
451
450
|
}
|
|
452
451
|
}; }
|
|
453
452
|
static get states() { return {
|
|
@@ -455,7 +454,7 @@ export class KupFormEditor {
|
|
|
455
454
|
}; }
|
|
456
455
|
static get events() { return [{
|
|
457
456
|
"method": "kupSave",
|
|
458
|
-
"name": "kup-
|
|
457
|
+
"name": "kup-dashboard-save",
|
|
459
458
|
"bubbles": true,
|
|
460
459
|
"cancelable": false,
|
|
461
460
|
"composed": true,
|
|
@@ -464,12 +463,12 @@ export class KupFormEditor {
|
|
|
464
463
|
"text": ""
|
|
465
464
|
},
|
|
466
465
|
"complexType": {
|
|
467
|
-
"original": "
|
|
468
|
-
"resolved": "
|
|
466
|
+
"original": "KupDashboardEventPayload",
|
|
467
|
+
"resolved": "KupDashboardEventPayload",
|
|
469
468
|
"references": {
|
|
470
|
-
"
|
|
469
|
+
"KupDashboardEventPayload": {
|
|
471
470
|
"location": "import",
|
|
472
|
-
"path": "./kup-
|
|
471
|
+
"path": "./kup-dashboard-declarations"
|
|
473
472
|
}
|
|
474
473
|
}
|
|
475
474
|
}
|
|
@@ -3338,20 +3338,21 @@ export class KupDataTable {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
let groupChips = null;
|
|
3340
3340
|
if (this.isGrouping()) {
|
|
3341
|
-
const chipsData =
|
|
3341
|
+
const chipsData = [];
|
|
3342
|
+
for (let index = 0; index < this.groups.length; index++) {
|
|
3343
|
+
const group = this.groups[index];
|
|
3342
3344
|
const column = getColumnByName(this.getColumns(), group.column);
|
|
3343
3345
|
if (column) {
|
|
3344
|
-
|
|
3346
|
+
chipsData.push({
|
|
3345
3347
|
value: column.title,
|
|
3346
3348
|
id: column.name,
|
|
3347
3349
|
checked: true,
|
|
3348
|
-
};
|
|
3349
|
-
return a;
|
|
3350
|
+
});
|
|
3350
3351
|
}
|
|
3351
3352
|
else {
|
|
3352
|
-
|
|
3353
|
+
this.kupManager.debug.logMessage(this, "Grouped for a non-existent column! (" + group.column + ")", KupDebugCategory.WARNING);
|
|
3353
3354
|
}
|
|
3354
|
-
}
|
|
3355
|
+
}
|
|
3355
3356
|
if (chipsData.length > 0) {
|
|
3356
3357
|
const props = {
|
|
3357
3358
|
data: chipsData,
|
|
@@ -37,15 +37,13 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.backdrop {
|
|
40
|
+
background: var(--kup_drawer_backdrop);
|
|
41
|
+
display: none;
|
|
42
|
+
height: 100%;
|
|
43
|
+
left: 0;
|
|
40
44
|
position: fixed;
|
|
41
45
|
top: 0;
|
|
42
|
-
left: 0;
|
|
43
46
|
width: 100%;
|
|
44
|
-
height: 100%;
|
|
45
|
-
background: var(--kup_drawer_backdrop);
|
|
46
|
-
opacity: 0;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
transition: opacity var(--kup_drawer_transition) ease-in;
|
|
49
47
|
z-index: var(--kup-drawer-zindex);
|
|
50
48
|
}
|
|
51
49
|
|
|
@@ -87,8 +85,7 @@
|
|
|
87
85
|
left: 0;
|
|
88
86
|
}
|
|
89
87
|
:host([kup-opened]) .backdrop {
|
|
90
|
-
|
|
91
|
-
pointer-events: all;
|
|
88
|
+
display: block;
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
/*-------------------------------------------------*/
|
|
@@ -326,6 +326,7 @@ export class KupDropdownButton {
|
|
|
326
326
|
? true
|
|
327
327
|
: false,
|
|
328
328
|
styling: this.styling ? this.styling : FButtonStyling.RAISED,
|
|
329
|
+
title: this.rootElement.title,
|
|
329
330
|
};
|
|
330
331
|
if (!this.dropdownOnly) {
|
|
331
332
|
buttons.push(h(FButton, Object.assign({}, props, { icon: this.icon ? this.icon : null, label: this.label ? this.label : null, trailingIcon: this.trailingIcon ? true : false, wrapperClass: "dropdown-button__primary-action", onClick: () => this.onKupClick(), onBlur: () => this.onKupBlur(), onFocus: () => this.onKupFocus() })));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props of the kup-family-tree component.
|
|
3
|
+
* Used to export every prop in an object.
|
|
4
|
+
*/
|
|
5
|
+
export var KupFamilyTreeProps;
|
|
6
|
+
(function (KupFamilyTreeProps) {
|
|
7
|
+
KupFamilyTreeProps["autofit"] = "The component's initial render will fit the container.";
|
|
8
|
+
KupFamilyTreeProps["collapsible"] = "Nodes can be expanded/collapsed.";
|
|
9
|
+
KupFamilyTreeProps["customStyle"] = "Custom style of the component.";
|
|
10
|
+
KupFamilyTreeProps["data"] = "Actual data of the component";
|
|
11
|
+
KupFamilyTreeProps["layout"] = "Layout of the boxes.";
|
|
12
|
+
})(KupFamilyTreeProps || (KupFamilyTreeProps = {}));
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* //TODO: Handle height properly once understood whether to use kup-box or not
|
|
3
|
+
* @prop --kup-familytree-item-background-color: Sets the background color of the items.
|
|
4
|
+
* @prop --kup-familytree-item-color: Sets the color of the items.
|
|
5
|
+
* @prop --kup-familytree-item-height: Sets the height of the items.
|
|
6
|
+
* @prop --kup-familytree-item-h-padding: Sets the horizontal padding of items.
|
|
7
|
+
* @prop --kup-familytree-item-v-padding: Sets the vertical padding of items.
|
|
8
|
+
* @prop --kup-familytree-item-width: Sets the width of the items.
|
|
9
|
+
* @prop --kup-familytree-lines-color: Sets the color of the lines.
|
|
10
|
+
*/
|
|
11
|
+
:host {
|
|
12
|
+
--kup_familytree_item_background_color: var(
|
|
13
|
+
--kup-familytree-item-background-color,
|
|
14
|
+
var(--kup-primary-color)
|
|
15
|
+
);
|
|
16
|
+
--kup_familytree_item_color: var(
|
|
17
|
+
--kup-familytree-item-color,
|
|
18
|
+
var(--kup-text-on-primary-color)
|
|
19
|
+
);
|
|
20
|
+
--kup_familytree_item_height: var(--kup-familytree-item-height, 40px);
|
|
21
|
+
--kup_familytree_item_h_padding: var(--kup-familytree-item-h-padding, 8px);
|
|
22
|
+
--kup_familytree_item_v_padding: var(--kup-familytree-item-v-padding, 10px);
|
|
23
|
+
--kup_familytree_item_width: var(--kup-familytree-item-width, 120px);
|
|
24
|
+
--kup_familytree_lines_color: var(
|
|
25
|
+
--kup-familytree-lines-color,
|
|
26
|
+
var(--kup-border-color)
|
|
27
|
+
);
|
|
28
|
+
display: block;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.family-tree {
|
|
33
|
+
display: flex;
|
|
34
|
+
transform: scale(var(--kup_familytree_scale, 1));
|
|
35
|
+
transform-origin: 0px 0px;
|
|
36
|
+
}
|
|
37
|
+
.family-tree__node {
|
|
38
|
+
border-collapse: collapse;
|
|
39
|
+
margin: auto;
|
|
40
|
+
}
|
|
41
|
+
.family-tree__node__staff {
|
|
42
|
+
align-items: center;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
height: 0;
|
|
46
|
+
transform: translateX(calc( ( var(--kup_familytree_item_width) + (var(--kup_familytree_item_h_padding) * 2) ) / 2 )) translateY(calc( 0px - ( var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) ) ));
|
|
47
|
+
}
|
|
48
|
+
.family-tree__node__staff__item {
|
|
49
|
+
padding: var(--kup_familytree_item_v_padding);
|
|
50
|
+
text-align: left;
|
|
51
|
+
}
|
|
52
|
+
.family-tree__node__staff__item:before {
|
|
53
|
+
border-top: 2px solid var(--kup_familytree_lines_color);
|
|
54
|
+
content: "";
|
|
55
|
+
position: absolute;
|
|
56
|
+
transform: translateX(calc(100% + 2px)) translateY(calc(var(--kup_familytree_item_height) / 2));
|
|
57
|
+
width: var(--kup_familytree_item_h_padding);
|
|
58
|
+
}
|
|
59
|
+
.family-tree__node td {
|
|
60
|
+
vertical-align: top;
|
|
61
|
+
padding: 0;
|
|
62
|
+
}
|
|
63
|
+
.family-tree__line--left {
|
|
64
|
+
border-left: 2px solid var(--kup_familytree_lines_color);
|
|
65
|
+
}
|
|
66
|
+
.family-tree__line--placeholder {
|
|
67
|
+
height: calc(var(--kup_familytree_item_height) / 2);
|
|
68
|
+
}
|
|
69
|
+
.family-tree__line--staff {
|
|
70
|
+
height: calc( var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) );
|
|
71
|
+
}
|
|
72
|
+
.family-tree__line--right {
|
|
73
|
+
border-right: 2px solid var(--kup_familytree_lines_color);
|
|
74
|
+
}
|
|
75
|
+
.family-tree__line--top {
|
|
76
|
+
border-top: 2px solid var(--kup_familytree_lines_color);
|
|
77
|
+
}
|
|
78
|
+
.family-tree__line--vertical {
|
|
79
|
+
background-color: var(--kup_familytree_lines_color);
|
|
80
|
+
margin-left: auto;
|
|
81
|
+
margin-right: auto;
|
|
82
|
+
width: 2px;
|
|
83
|
+
}
|
|
84
|
+
.family-tree__item {
|
|
85
|
+
display: flex;
|
|
86
|
+
}
|
|
87
|
+
.family-tree__item__wrapper {
|
|
88
|
+
margin: auto;
|
|
89
|
+
}
|
|
90
|
+
.family-tree__item__wrapper kup-box {
|
|
91
|
+
margin: 0 auto;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
padding: 0 18px;
|
|
94
|
+
width: var(--kup_familytree_item_width);
|
|
95
|
+
z-index: 1;
|
|
96
|
+
}
|
|
97
|
+
.family-tree__item__wrapper .f-button {
|
|
98
|
+
width: fit-content;
|
|
99
|
+
margin-left: auto;
|
|
100
|
+
margin-right: auto;
|
|
101
|
+
}
|