@sme.up/ketchup 6.2.0 → 6.3.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/{f-button-5b69d882.js → f-button-94cb5f35.js} +2 -2
- package/dist/cjs/{f-cell-3a740c48.js → f-cell-76830a0d.js} +12 -14
- package/dist/cjs/{f-checkbox-57443ca3.js → f-checkbox-cd977193.js} +1 -1
- package/dist/cjs/{f-chip-02e83f82.js → f-chip-68d45fd3.js} +3 -3
- package/dist/cjs/{f-image-2a61ece2.js → f-image-0e71df7e.js} +2 -2
- package/dist/cjs/{f-paginator-utils-09126bdd.js → f-paginator-utils-46689c0a.js} +80 -403
- package/dist/cjs/{f-text-field-9ee20a67.js → f-text-field-b4229cef.js} +11 -3
- package/dist/cjs/{index-06b131ea.js → index-31125378.js} +9 -4
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -6
- package/dist/cjs/kup-autocomplete_25.cjs.entry.js +116 -111
- package/dist/cjs/kup-box.cjs.entry.js +15 -17
- package/dist/cjs/kup-calendar.cjs.entry.js +9 -11
- package/dist/cjs/kup-cell.cjs.entry.js +9 -11
- package/dist/cjs/kup-dash-list.cjs.entry.js +5 -7
- package/dist/cjs/kup-dash_2.cjs.entry.js +4 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +76 -17
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -5
- package/dist/cjs/kup-echart.cjs.entry.js +17 -19
- package/dist/cjs/kup-family-tree.cjs.entry.js +140 -64
- package/dist/cjs/kup-form.cjs.entry.js +10 -12
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -5
- package/dist/cjs/kup-image-list.cjs.entry.js +10 -12
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -5
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -6
- package/dist/cjs/{kup-manager-02acbb37.js → kup-manager-7c514a30.js} +1400 -369
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -5
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -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 +6 -7
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/assets/dashboard.js +48 -0
- package/dist/collection/assets/family-tree.js +236 -19
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/assets/kupinteract.js +68 -0
- package/dist/collection/collection-manifest.json +5 -5
- package/dist/collection/components/kup-dashboard/kup-dashboard.css +7 -0
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +67 -7
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +42 -30
- package/dist/collection/components/kup-echart/kup-echart.js +9 -9
- package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +3 -1
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +79 -9
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +253 -65
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +9 -1
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +48 -15
- package/dist/collection/managers/kup-data/kup-data.js +5 -5
- package/dist/collection/managers/kup-interact/kup-interact.js +3 -5
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +2 -0
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +131 -45
- package/dist/collection/utils/filters/filters-rows.js +4 -23
- package/dist/collection/utils/filters/filters-tree-items.js +2 -1
- package/dist/esm/{f-button-fd44ef70.js → f-button-cd948e50.js} +2 -2
- package/dist/esm/{f-cell-7b159a22.js → f-cell-474dd282.js} +6 -8
- package/dist/esm/{f-checkbox-c51c4a75.js → f-checkbox-e06cf07b.js} +1 -1
- package/dist/esm/{f-chip-c2e4c522.js → f-chip-d6f2eb94.js} +3 -3
- package/dist/esm/{f-image-2ab4b9aa.js → f-image-914a03ef.js} +2 -2
- package/dist/esm/{f-paginator-utils-ef537d82.js → f-paginator-utils-a4a52732.js} +44 -366
- package/dist/esm/{f-text-field-41c575eb.js → f-text-field-76341fe3.js} +11 -3
- package/dist/esm/{index-ad6ab214.js → index-e41330a5.js} +9 -4
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +3 -4
- package/dist/esm/kup-autocomplete_25.entry.js +17 -12
- package/dist/esm/kup-box.entry.js +9 -11
- package/dist/esm/kup-calendar.entry.js +5 -7
- package/dist/esm/kup-cell.entry.js +7 -9
- package/dist/esm/kup-dash-list.entry.js +2 -4
- package/dist/esm/kup-dash_2.entry.js +2 -3
- package/dist/esm/kup-dashboard.entry.js +74 -15
- package/dist/esm/kup-drawer.entry.js +2 -3
- package/dist/esm/kup-echart.entry.js +11 -13
- package/dist/esm/kup-family-tree.entry.js +138 -62
- package/dist/esm/kup-form.entry.js +7 -9
- package/dist/esm/kup-iframe.entry.js +2 -3
- package/dist/esm/kup-image-list.entry.js +8 -10
- package/dist/esm/kup-lazy.entry.js +2 -3
- package/dist/esm/kup-magic-box.entry.js +3 -4
- package/dist/esm/{kup-manager-22a475e6.js → kup-manager-86f440c7.js} +1379 -370
- package/dist/esm/kup-nav-bar.entry.js +2 -3
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -3
- 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 -5
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-00e1133d.entry.js +9 -0
- package/dist/ketchup/p-066f344a.entry.js +1 -0
- package/dist/ketchup/p-0c6e0647.entry.js +1 -0
- package/dist/ketchup/p-151f7c17.entry.js +27 -0
- package/dist/ketchup/p-1e9c03b0.entry.js +1 -0
- package/dist/ketchup/{p-fc2b1229.js → p-21ea11cb.js} +3 -3
- package/dist/ketchup/{p-1959f835.entry.js → p-2f4e6c50.entry.js} +1 -1
- package/dist/ketchup/p-3586f59c.js +1 -0
- package/dist/ketchup/p-359fd90d.entry.js +1 -0
- package/dist/ketchup/{p-38d7584e.js → p-389fd0bf.js} +1 -1
- package/dist/ketchup/{p-cd5cfa7c.js → p-5552f156.js} +1 -1
- package/dist/ketchup/{p-264b1b19.entry.js → p-77aff9c1.entry.js} +1 -1
- package/dist/ketchup/{p-e9366aaf.entry.js → p-7cfdf53c.entry.js} +4 -4
- package/dist/ketchup/p-853a5178.entry.js +1 -0
- package/dist/ketchup/{p-edae3076.js → p-8673bd4e.js} +1 -1
- package/dist/ketchup/p-8b55b786.entry.js +1 -0
- package/dist/ketchup/p-95f5834b.entry.js +1 -0
- package/dist/ketchup/p-a2c595c4.js +1 -0
- package/dist/ketchup/p-ae91f27e.entry.js +1 -0
- package/dist/ketchup/{p-928c5c36.js → p-af664379.js} +1 -1
- package/dist/ketchup/p-b0b3989b.js +2 -0
- package/dist/ketchup/p-b3b65a61.entry.js +1 -0
- package/dist/ketchup/p-bc306a53.entry.js +1 -0
- package/dist/ketchup/{p-42080355.entry.js → p-c3783b77.entry.js} +1 -1
- package/dist/ketchup/{p-dc62a30f.js → p-cd4fc3fb.js} +1 -1
- package/dist/ketchup/p-cee76b14.entry.js +1 -0
- package/dist/ketchup/p-cfaea29b.entry.js +1 -0
- package/dist/ketchup/p-d2f51e7b.entry.js +1 -0
- package/dist/ketchup/p-df8e6a4d.entry.js +1 -0
- package/dist/ketchup/p-e60a1170.entry.js +1 -0
- package/dist/ketchup/p-e9a1ba04.entry.js +1 -0
- package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +6 -1
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +7 -3
- package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +26 -5
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components.d.ts +49 -7
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +13 -6
- package/dist/types/managers/kup-data/kup-data.d.ts +2 -1
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +9 -1
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +7 -5
- package/dist/types/utils/filters/filters-rows.d.ts +0 -2
- package/package.json +2 -2
- package/dist/cjs/cell-utils-fe64a28c.js +0 -168
- package/dist/cjs/utils-4b208b48.js +0 -447
- package/dist/esm/cell-utils-cb5d4149.js +0 -160
- package/dist/esm/utils-2c1f4122.js +0 -428
- package/dist/ketchup/p-06c6cc68.js +0 -1
- package/dist/ketchup/p-0dacd4bc.entry.js +0 -1
- package/dist/ketchup/p-1c44dc62.entry.js +0 -1
- package/dist/ketchup/p-4bc9f98b.entry.js +0 -1
- package/dist/ketchup/p-578583db.entry.js +0 -1
- package/dist/ketchup/p-5866d507.entry.js +0 -1
- package/dist/ketchup/p-61059e9d.entry.js +0 -9
- package/dist/ketchup/p-664be494.entry.js +0 -1
- package/dist/ketchup/p-67cd575d.entry.js +0 -1
- package/dist/ketchup/p-682a367a.js +0 -1
- package/dist/ketchup/p-6ccf7eb2.entry.js +0 -1
- package/dist/ketchup/p-7230ab97.entry.js +0 -1
- package/dist/ketchup/p-752b4cef.entry.js +0 -1
- package/dist/ketchup/p-7de3e7ac.entry.js +0 -1
- package/dist/ketchup/p-9b36497d.entry.js +0 -1
- package/dist/ketchup/p-b982d137.entry.js +0 -1
- package/dist/ketchup/p-c0219e5e.js +0 -1
- package/dist/ketchup/p-c55fd0a7.entry.js +0 -1
- package/dist/ketchup/p-d154b3a0.entry.js +0 -1
- package/dist/ketchup/p-d2affb6f.entry.js +0 -27
- package/dist/ketchup/p-d3b542b3.js +0 -2
- package/dist/ketchup/p-d6c12c6c.js +0 -1
- package/dist/ketchup/p-da0eab60.entry.js +0 -1
|
@@ -13,7 +13,7 @@ const dataStaff = {
|
|
|
13
13
|
children: [],
|
|
14
14
|
disabled: false,
|
|
15
15
|
expandable: false,
|
|
16
|
-
icon: '
|
|
16
|
+
icon: 'favorite',
|
|
17
17
|
isExpanded: false,
|
|
18
18
|
obj: {
|
|
19
19
|
k: 'LOCEXD',
|
|
@@ -30,7 +30,7 @@ const dataStaff = {
|
|
|
30
30
|
children: [],
|
|
31
31
|
disabled: false,
|
|
32
32
|
expandable: false,
|
|
33
|
-
icon: '
|
|
33
|
+
icon: 'favorite',
|
|
34
34
|
isExpanded: false,
|
|
35
35
|
obj: {
|
|
36
36
|
k: 'LOCEXD',
|
|
@@ -46,7 +46,7 @@ const dataStaff = {
|
|
|
46
46
|
],
|
|
47
47
|
disabled: false,
|
|
48
48
|
expandable: false,
|
|
49
|
-
icon: '
|
|
49
|
+
icon: 'favorite',
|
|
50
50
|
id: 'LOCEXD',
|
|
51
51
|
isExpanded: false,
|
|
52
52
|
obj: {
|
|
@@ -83,7 +83,7 @@ const dataStaff = {
|
|
|
83
83
|
children: [],
|
|
84
84
|
disabled: false,
|
|
85
85
|
expandable: false,
|
|
86
|
-
icon: '
|
|
86
|
+
icon: 'favorite',
|
|
87
87
|
isExpanded: false,
|
|
88
88
|
obj: {
|
|
89
89
|
k: 'LOCEXD',
|
|
@@ -100,7 +100,7 @@ const dataStaff = {
|
|
|
100
100
|
children: [],
|
|
101
101
|
disabled: false,
|
|
102
102
|
expandable: false,
|
|
103
|
-
icon: '
|
|
103
|
+
icon: 'favorite',
|
|
104
104
|
isExpanded: false,
|
|
105
105
|
obj: {
|
|
106
106
|
k: 'LOCEXD',
|
|
@@ -116,7 +116,7 @@ const dataStaff = {
|
|
|
116
116
|
],
|
|
117
117
|
disabled: false,
|
|
118
118
|
expandable: false,
|
|
119
|
-
icon: '
|
|
119
|
+
icon: 'favorite',
|
|
120
120
|
isExpanded: false,
|
|
121
121
|
obj: {
|
|
122
122
|
k: 'LOCEXD',
|
|
@@ -132,7 +132,7 @@ const dataStaff = {
|
|
|
132
132
|
children: [],
|
|
133
133
|
disabled: false,
|
|
134
134
|
expandable: false,
|
|
135
|
-
icon: '
|
|
135
|
+
icon: 'favorite',
|
|
136
136
|
id: 'LOCTML',
|
|
137
137
|
isExpanded: false,
|
|
138
138
|
obj: {
|
|
@@ -149,7 +149,7 @@ const dataStaff = {
|
|
|
149
149
|
children: [],
|
|
150
150
|
disabled: false,
|
|
151
151
|
expandable: false,
|
|
152
|
-
icon: '
|
|
152
|
+
icon: 'favorite',
|
|
153
153
|
isExpanded: false,
|
|
154
154
|
obj: {
|
|
155
155
|
k: 'LOCEXD',
|
|
@@ -166,7 +166,7 @@ const dataStaff = {
|
|
|
166
166
|
children: [],
|
|
167
167
|
disabled: false,
|
|
168
168
|
expandable: false,
|
|
169
|
-
icon: '
|
|
169
|
+
icon: 'favorite',
|
|
170
170
|
isExpanded: false,
|
|
171
171
|
obj: {
|
|
172
172
|
k: 'LOCEXD',
|
|
@@ -183,7 +183,7 @@ const dataStaff = {
|
|
|
183
183
|
children: [],
|
|
184
184
|
disabled: false,
|
|
185
185
|
expandable: false,
|
|
186
|
-
icon: '
|
|
186
|
+
icon: 'favorite',
|
|
187
187
|
isExpanded: false,
|
|
188
188
|
obj: {
|
|
189
189
|
k: 'LOCEXD',
|
|
@@ -216,7 +216,7 @@ const dataStaff = {
|
|
|
216
216
|
children: [],
|
|
217
217
|
disabled: false,
|
|
218
218
|
expandable: false,
|
|
219
|
-
icon: '
|
|
219
|
+
icon: 'favorite',
|
|
220
220
|
isExpanded: false,
|
|
221
221
|
obj: {
|
|
222
222
|
k: 'LOCEXD',
|
|
@@ -233,7 +233,7 @@ const dataStaff = {
|
|
|
233
233
|
children: [],
|
|
234
234
|
disabled: false,
|
|
235
235
|
expandable: false,
|
|
236
|
-
icon: '
|
|
236
|
+
icon: 'favorite',
|
|
237
237
|
isExpanded: false,
|
|
238
238
|
obj: {
|
|
239
239
|
k: 'LOCEXD',
|
|
@@ -270,7 +270,7 @@ const dataStaff = {
|
|
|
270
270
|
children: [],
|
|
271
271
|
disabled: false,
|
|
272
272
|
expandable: false,
|
|
273
|
-
icon: '
|
|
273
|
+
icon: 'favorite',
|
|
274
274
|
id: 'LOCTML',
|
|
275
275
|
isExpanded: false,
|
|
276
276
|
obj: {
|
|
@@ -287,7 +287,7 @@ const dataStaff = {
|
|
|
287
287
|
children: [],
|
|
288
288
|
disabled: false,
|
|
289
289
|
expandable: false,
|
|
290
|
-
icon: '
|
|
290
|
+
icon: 'favorite',
|
|
291
291
|
isExpanded: false,
|
|
292
292
|
obj: {
|
|
293
293
|
k: 'LOCEXD',
|
|
@@ -304,7 +304,7 @@ const dataStaff = {
|
|
|
304
304
|
children: [],
|
|
305
305
|
disabled: false,
|
|
306
306
|
expandable: false,
|
|
307
|
-
icon: '
|
|
307
|
+
icon: 'favorite',
|
|
308
308
|
isExpanded: false,
|
|
309
309
|
obj: {
|
|
310
310
|
k: 'LOCEXD',
|
|
@@ -321,7 +321,7 @@ const dataStaff = {
|
|
|
321
321
|
children: [],
|
|
322
322
|
disabled: false,
|
|
323
323
|
expandable: false,
|
|
324
|
-
icon: '
|
|
324
|
+
icon: 'favorite',
|
|
325
325
|
isExpanded: false,
|
|
326
326
|
obj: {
|
|
327
327
|
k: 'LOCTML',
|
|
@@ -369,7 +369,7 @@ const dataStaff = {
|
|
|
369
369
|
children: [],
|
|
370
370
|
disabled: false,
|
|
371
371
|
expandable: false,
|
|
372
|
-
icon: '
|
|
372
|
+
icon: 'favorite',
|
|
373
373
|
isExpanded: false,
|
|
374
374
|
obj: {
|
|
375
375
|
k: 'LOCEXD',
|
|
@@ -386,7 +386,7 @@ const dataStaff = {
|
|
|
386
386
|
children: [],
|
|
387
387
|
disabled: false,
|
|
388
388
|
expandable: false,
|
|
389
|
-
icon: '
|
|
389
|
+
icon: 'favorite',
|
|
390
390
|
isExpanded: false,
|
|
391
391
|
obj: {
|
|
392
392
|
k: 'LOCEXD',
|
|
@@ -419,7 +419,7 @@ const dataStaff = {
|
|
|
419
419
|
],
|
|
420
420
|
disabled: false,
|
|
421
421
|
expandable: true,
|
|
422
|
-
icon: '
|
|
422
|
+
icon: 'account',
|
|
423
423
|
id: 'D0',
|
|
424
424
|
isExpanded: false,
|
|
425
425
|
obj: {
|
|
@@ -2385,6 +2385,218 @@ const dataLayout = {
|
|
|
2385
2385
|
],
|
|
2386
2386
|
};
|
|
2387
2387
|
|
|
2388
|
+
const dataStacked = {
|
|
2389
|
+
columns: [],
|
|
2390
|
+
rows: [
|
|
2391
|
+
{
|
|
2392
|
+
children: [
|
|
2393
|
+
{
|
|
2394
|
+
children: [
|
|
2395
|
+
{
|
|
2396
|
+
children: [
|
|
2397
|
+
{
|
|
2398
|
+
disabled: false,
|
|
2399
|
+
expandable: false,
|
|
2400
|
+
icon: 'favorite',
|
|
2401
|
+
id: 'LOCEXD',
|
|
2402
|
+
isExpanded: false,
|
|
2403
|
+
obj: {
|
|
2404
|
+
k: 'LOCEXD',
|
|
2405
|
+
p: 'B£AMO',
|
|
2406
|
+
t: 'TA',
|
|
2407
|
+
},
|
|
2408
|
+
options: true,
|
|
2409
|
+
style: {},
|
|
2410
|
+
value: 'Scheda oggetto',
|
|
2411
|
+
visible: true,
|
|
2412
|
+
},
|
|
2413
|
+
],
|
|
2414
|
+
disabled: false,
|
|
2415
|
+
expandable: true,
|
|
2416
|
+
icon: 'table-large',
|
|
2417
|
+
id: 'FOS',
|
|
2418
|
+
isExpanded: true,
|
|
2419
|
+
obj: {
|
|
2420
|
+
k: 'FOS',
|
|
2421
|
+
p: 'BRE',
|
|
2422
|
+
t: 'TA',
|
|
2423
|
+
},
|
|
2424
|
+
options: true,
|
|
2425
|
+
style: {},
|
|
2426
|
+
value: 'FOR Debiti operaz. societ.',
|
|
2427
|
+
visible: true,
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
children: [
|
|
2431
|
+
{
|
|
2432
|
+
disabled: false,
|
|
2433
|
+
expandable: false,
|
|
2434
|
+
icon: 'favorite',
|
|
2435
|
+
isExpanded: false,
|
|
2436
|
+
obj: {
|
|
2437
|
+
k: 'LOCEXD',
|
|
2438
|
+
p: 'B£AMO',
|
|
2439
|
+
t: 'TA',
|
|
2440
|
+
},
|
|
2441
|
+
options: true,
|
|
2442
|
+
style: {},
|
|
2443
|
+
value: 'Scheda oggetto',
|
|
2444
|
+
visible: true,
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
children: [],
|
|
2448
|
+
disabled: false,
|
|
2449
|
+
expandable: false,
|
|
2450
|
+
icon: 'favorite',
|
|
2451
|
+
id: 'LOCTML',
|
|
2452
|
+
isExpanded: false,
|
|
2453
|
+
obj: {
|
|
2454
|
+
k: 'LOCTML',
|
|
2455
|
+
p: 'B£AMO',
|
|
2456
|
+
t: 'TA',
|
|
2457
|
+
},
|
|
2458
|
+
options: true,
|
|
2459
|
+
style: {},
|
|
2460
|
+
value: 'Timeline',
|
|
2461
|
+
visible: true,
|
|
2462
|
+
},
|
|
2463
|
+
],
|
|
2464
|
+
disabled: false,
|
|
2465
|
+
expandable: true,
|
|
2466
|
+
icon: 'table-large',
|
|
2467
|
+
id: 'FOS',
|
|
2468
|
+
isExpanded: true,
|
|
2469
|
+
obj: {
|
|
2470
|
+
k: 'FOS',
|
|
2471
|
+
p: 'BRE',
|
|
2472
|
+
t: 'TA',
|
|
2473
|
+
},
|
|
2474
|
+
options: true,
|
|
2475
|
+
style: {},
|
|
2476
|
+
value: 'FOR Debiti operaz. societ.',
|
|
2477
|
+
visible: true,
|
|
2478
|
+
},
|
|
2479
|
+
{
|
|
2480
|
+
children: [],
|
|
2481
|
+
disabled: false,
|
|
2482
|
+
expandable: false,
|
|
2483
|
+
icon: 'table-large',
|
|
2484
|
+
id: 'AGE',
|
|
2485
|
+
isExpanded: false,
|
|
2486
|
+
isWeird: true,
|
|
2487
|
+
obj: {
|
|
2488
|
+
k: 'AGE',
|
|
2489
|
+
p: 'BRE',
|
|
2490
|
+
t: 'TA',
|
|
2491
|
+
},
|
|
2492
|
+
options: true,
|
|
2493
|
+
style: {},
|
|
2494
|
+
value: 'Agente',
|
|
2495
|
+
visible: true,
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
children: [
|
|
2499
|
+
{
|
|
2500
|
+
children: [],
|
|
2501
|
+
disabled: false,
|
|
2502
|
+
expandable: false,
|
|
2503
|
+
icon: 'favorite',
|
|
2504
|
+
id: 'LOCTML',
|
|
2505
|
+
isExpanded: false,
|
|
2506
|
+
obj: {
|
|
2507
|
+
k: 'LOCTML',
|
|
2508
|
+
p: 'B£AMO',
|
|
2509
|
+
t: 'TA',
|
|
2510
|
+
},
|
|
2511
|
+
options: true,
|
|
2512
|
+
style: {},
|
|
2513
|
+
value: 'Timeline',
|
|
2514
|
+
visible: true,
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
children: [],
|
|
2518
|
+
disabled: false,
|
|
2519
|
+
expandable: false,
|
|
2520
|
+
icon: 'favorite',
|
|
2521
|
+
isExpanded: false,
|
|
2522
|
+
obj: {
|
|
2523
|
+
k: 'LOCTML',
|
|
2524
|
+
p: 'B£AMO',
|
|
2525
|
+
t: 'TA',
|
|
2526
|
+
},
|
|
2527
|
+
options: true,
|
|
2528
|
+
style: {},
|
|
2529
|
+
value: 'Timeline',
|
|
2530
|
+
visible: true,
|
|
2531
|
+
},
|
|
2532
|
+
],
|
|
2533
|
+
disabled: false,
|
|
2534
|
+
expandable: true,
|
|
2535
|
+
icon: 'table-large',
|
|
2536
|
+
id: 'BAN',
|
|
2537
|
+
isExpanded: true,
|
|
2538
|
+
obj: {
|
|
2539
|
+
k: 'BAN',
|
|
2540
|
+
p: 'BRE',
|
|
2541
|
+
t: 'TA',
|
|
2542
|
+
},
|
|
2543
|
+
options: true,
|
|
2544
|
+
style: {},
|
|
2545
|
+
value: 'Banche',
|
|
2546
|
+
visible: true,
|
|
2547
|
+
},
|
|
2548
|
+
],
|
|
2549
|
+
disabled: false,
|
|
2550
|
+
expandable: true,
|
|
2551
|
+
icon: 'table-large',
|
|
2552
|
+
id: '03',
|
|
2553
|
+
isExpanded: true,
|
|
2554
|
+
obj: {
|
|
2555
|
+
k: '03',
|
|
2556
|
+
p: 'V§R',
|
|
2557
|
+
t: 'TA',
|
|
2558
|
+
},
|
|
2559
|
+
options: true,
|
|
2560
|
+
style: {},
|
|
2561
|
+
value: 'Lombardia',
|
|
2562
|
+
visible: true,
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
children: [],
|
|
2566
|
+
disabled: false,
|
|
2567
|
+
expandable: false,
|
|
2568
|
+
icon: 'table-large',
|
|
2569
|
+
id: '14',
|
|
2570
|
+
isExpanded: false,
|
|
2571
|
+
obj: {
|
|
2572
|
+
k: '14',
|
|
2573
|
+
p: 'V§R',
|
|
2574
|
+
t: 'TA',
|
|
2575
|
+
},
|
|
2576
|
+
options: true,
|
|
2577
|
+
style: {},
|
|
2578
|
+
value: 'Molise',
|
|
2579
|
+
visible: true,
|
|
2580
|
+
},
|
|
2581
|
+
],
|
|
2582
|
+
disabled: false,
|
|
2583
|
+
expandable: true,
|
|
2584
|
+
icon: 'favorite',
|
|
2585
|
+
id: 'D0',
|
|
2586
|
+
isExpanded: true,
|
|
2587
|
+
obj: {
|
|
2588
|
+
k: 'D0',
|
|
2589
|
+
p: 'B£A',
|
|
2590
|
+
t: 'TA',
|
|
2591
|
+
},
|
|
2592
|
+
options: true,
|
|
2593
|
+
style: {},
|
|
2594
|
+
value: 'AcosUP Costi Avanzati',
|
|
2595
|
+
visible: true,
|
|
2596
|
+
},
|
|
2597
|
+
],
|
|
2598
|
+
};
|
|
2599
|
+
|
|
2388
2600
|
const layout = {
|
|
2389
2601
|
horizontal: true,
|
|
2390
2602
|
sections: [
|
|
@@ -2422,9 +2634,14 @@ const layout = {
|
|
|
2422
2634
|
|
|
2423
2635
|
const familyTreeLayout = document.getElementById('layout');
|
|
2424
2636
|
const familyTreeStaff = document.getElementById('staff');
|
|
2637
|
+
const familyTreeStacked = document.getElementById('stacked');
|
|
2425
2638
|
familyTreeLayout.data = dataLayout;
|
|
2426
2639
|
familyTreeLayout.layout = layout;
|
|
2427
2640
|
familyTreeStaff.data = dataStaff;
|
|
2641
|
+
familyTreeStaff.layout = 2;
|
|
2642
|
+
familyTreeStacked.data = dataStacked;
|
|
2643
|
+
familyTreeStacked.collapsible = false;
|
|
2644
|
+
familyTreeStacked.stackedLeaves = true;
|
|
2428
2645
|
|
|
2429
2646
|
document.addEventListener('kup-familytree-click', (e) => {
|
|
2430
2647
|
console.log(e);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const items = document.querySelectorAll('.item');
|
|
2
|
+
const wrapper = document.querySelector('#wrapper');
|
|
3
|
+
|
|
4
|
+
const initialize = () => {
|
|
5
|
+
kupManager.interact.dropzone(
|
|
6
|
+
wrapper,
|
|
7
|
+
null,
|
|
8
|
+
{
|
|
9
|
+
dispatcher: wrapper,
|
|
10
|
+
type: 'text/generic',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
drop: (e) => {
|
|
14
|
+
let delta = null;
|
|
15
|
+
let el = null;
|
|
16
|
+
items.forEach((item) => {
|
|
17
|
+
const rect = item.getBoundingClientRect();
|
|
18
|
+
let tempDelta = e.dragEvent.client.y - rect.y;
|
|
19
|
+
if (tempDelta < 0) {
|
|
20
|
+
tempDelta = tempDelta * -1;
|
|
21
|
+
}
|
|
22
|
+
if (delta === null || tempDelta < delta) {
|
|
23
|
+
delta = tempDelta;
|
|
24
|
+
el = item;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
if (!el || e.relatedTarget === el) {
|
|
28
|
+
console.log('Not moved.');
|
|
29
|
+
} else {
|
|
30
|
+
console.log(
|
|
31
|
+
'Moved to position ' + el.id + '. (delta ' + delta + ')'
|
|
32
|
+
);
|
|
33
|
+
e.relatedTarget.remove();
|
|
34
|
+
wrapper.insertBefore(e.relatedTarget, el);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
for (let index = 0; index < items.length; index++) {
|
|
40
|
+
const item = items[index];
|
|
41
|
+
const randomColor = kupManager.theme.randomColor(50);
|
|
42
|
+
item.style.backgroundColor = randomColor;
|
|
43
|
+
item.style.color = kupManager.theme.colorContrast(randomColor);
|
|
44
|
+
const handleEl = item.querySelector('.handle');
|
|
45
|
+
kupManager.interact.draggable(
|
|
46
|
+
item,
|
|
47
|
+
{
|
|
48
|
+
allowFrom: handleEl ? handleEl : null,
|
|
49
|
+
},
|
|
50
|
+
null,
|
|
51
|
+
'clone',
|
|
52
|
+
{
|
|
53
|
+
end: () => {
|
|
54
|
+
kupManager.scrollOnHover.stop(wrapper);
|
|
55
|
+
kupManager.scrollOnHover.unregister(wrapper);
|
|
56
|
+
},
|
|
57
|
+
start: () => {
|
|
58
|
+
kupManager.scrollOnHover.register(wrapper, true, {
|
|
59
|
+
back: 0.3,
|
|
60
|
+
forward: 0.7,
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
document.addEventListener('kup-manager-ready', initialize);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
+
"./components/kup-text-field/kup-text-field.js",
|
|
4
|
+
"./components/kup-chart/kup-chart.js",
|
|
5
|
+
"./components/kup-tree/kup-tree.js",
|
|
6
|
+
"./components/kup-data-table/kup-data-table.js",
|
|
3
7
|
"./components/kup-card/kup-card.js",
|
|
4
8
|
"./components/kup-badge/kup-badge.js",
|
|
5
9
|
"./components/kup-accordion/kup-accordion.js",
|
|
6
10
|
"./components/kup-autocomplete/kup-autocomplete.js",
|
|
7
|
-
"./components/kup-chart/kup-chart.js",
|
|
8
|
-
"./components/kup-tree/kup-tree.js",
|
|
9
|
-
"./components/kup-text-field/kup-text-field.js",
|
|
10
|
-
"./components/kup-data-table/kup-data-table.js",
|
|
11
11
|
"./components/kup-box/kup-box.js",
|
|
12
12
|
"./components/kup-button/kup-button.js",
|
|
13
13
|
"./components/kup-button-list/kup-button-list.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"compiler": {
|
|
52
52
|
"name": "@stencil/core",
|
|
53
|
-
"version": "2.17.
|
|
53
|
+
"version": "2.17.3",
|
|
54
54
|
"typescriptVersion": "4.5.4"
|
|
55
55
|
},
|
|
56
56
|
"collections": [],
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
padding: 1em;
|
|
26
26
|
grid-gap: 0.5em;
|
|
27
27
|
border: 1px solid var(--kup-primary-color);
|
|
28
|
+
height: auto;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.section {
|
|
@@ -64,6 +65,12 @@
|
|
|
64
65
|
padding: 1em;
|
|
65
66
|
}
|
|
66
67
|
|
|
68
|
+
.section-placeholder {
|
|
69
|
+
background-color: rgba(var(--kup-secondary-color-rgb), 0.5);
|
|
70
|
+
min-height: 1em;
|
|
71
|
+
min-width: 1em;
|
|
72
|
+
}
|
|
73
|
+
|
|
67
74
|
.component {
|
|
68
75
|
height: fit-content;
|
|
69
76
|
padding: 1em;
|
|
@@ -142,6 +142,7 @@ export class KupDashboard {
|
|
|
142
142
|
onChange: (e) => {
|
|
143
143
|
const { target } = e;
|
|
144
144
|
section.dim = target.value;
|
|
145
|
+
this.refresh();
|
|
145
146
|
},
|
|
146
147
|
};
|
|
147
148
|
const addButtonProp = {
|
|
@@ -227,6 +228,25 @@ export class KupDashboard {
|
|
|
227
228
|
? section.sections.map((childSection) => this.buildSection(childSection, section))
|
|
228
229
|
: undefined)));
|
|
229
230
|
}
|
|
231
|
+
calcSectionPosition(pointerY, pointerX, vertical, sectionCount, elements) {
|
|
232
|
+
let idx = sectionCount;
|
|
233
|
+
for (let index = 0; index < elements.length; index++) {
|
|
234
|
+
const element = elements[index];
|
|
235
|
+
const srect = element.getBoundingClientRect();
|
|
236
|
+
if (vertical && pointerY < srect.y) {
|
|
237
|
+
idx = index;
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
else if (!vertical && pointerX < srect.x) {
|
|
241
|
+
idx = index;
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
//console.log(
|
|
246
|
+
// `pointer: ${pointerX}:${pointerY} - vertical: ${vertical} - index: ${idx}`
|
|
247
|
+
//);
|
|
248
|
+
return idx;
|
|
249
|
+
}
|
|
230
250
|
didRenderInteractables() {
|
|
231
251
|
try {
|
|
232
252
|
const items = [];
|
|
@@ -249,9 +269,17 @@ export class KupDashboard {
|
|
|
249
269
|
.querySelectorAll('.form-dropzone')
|
|
250
270
|
.forEach((x) => items.push(x));
|
|
251
271
|
items.forEach((item) => {
|
|
252
|
-
this.kupManager.interact.dropzone(item,
|
|
272
|
+
this.kupManager.interact.dropzone(item, {
|
|
273
|
+
ondropdeactivate: () => {
|
|
274
|
+
this.removeSectionPlaceHolder();
|
|
275
|
+
},
|
|
276
|
+
ondropmove: (ev) => {
|
|
277
|
+
this.removeSectionPlaceHolder();
|
|
278
|
+
this.dragEnter(ev.dragEvent.clientY, ev.dragEvent.clientX, ev.currentTarget);
|
|
279
|
+
},
|
|
280
|
+
}, null, {
|
|
253
281
|
drop: (ev) => {
|
|
254
|
-
this.dropped(ev.currentTarget, ev.relatedTarget);
|
|
282
|
+
this.dropped(ev, ev.currentTarget, ev.relatedTarget);
|
|
255
283
|
},
|
|
256
284
|
});
|
|
257
285
|
});
|
|
@@ -260,14 +288,33 @@ export class KupDashboard {
|
|
|
260
288
|
this.kupManager.debug.logMessage(this, error, KupDebugCategory.ERROR);
|
|
261
289
|
}
|
|
262
290
|
}
|
|
263
|
-
|
|
291
|
+
dragEnter(clientY, clientX, parent) {
|
|
292
|
+
if (parent.kupData.form) {
|
|
293
|
+
// form is the target of drop.
|
|
294
|
+
// calculate a new position for the section.
|
|
295
|
+
const nidx = this.calcSectionPosition(clientY, clientX, parent.kupData.form.layout == 'column', parent.kupData.form.sections.length, parent.children);
|
|
296
|
+
// set placeholder into target area.
|
|
297
|
+
this.setSectionPlaceHolder(parent, nidx);
|
|
298
|
+
}
|
|
299
|
+
else if (parent.kupData.section) {
|
|
300
|
+
// section is the target of drop.
|
|
301
|
+
// calculate a new position for the section.
|
|
302
|
+
const nidx = this.calcSectionPosition(clientY, clientX, parent.kupData.section.layout == 'column', parent.kupData.section.sections.length, parent.lastElementChild.children);
|
|
303
|
+
// set placeholder into target area.
|
|
304
|
+
this.setSectionPlaceHolder(parent.lastElementChild, nidx);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
dropped(event, parent, child) {
|
|
264
308
|
const idx = child.kupData.parent.sections.indexOf(child.kupData.section);
|
|
265
309
|
child.kupData.parent.sections.splice(idx, 1);
|
|
266
310
|
if (parent.kupData.form) {
|
|
267
311
|
// form is the target of drop.
|
|
268
312
|
if (!parent.kupData.form.sections)
|
|
269
313
|
parent.kupData.form.sections = [];
|
|
270
|
-
|
|
314
|
+
// calculate a new position for the section.
|
|
315
|
+
const nidx = this.calcSectionPosition(event.dragEvent.clientY, event.dragEvent.clientX, parent.kupData.form.layout == 'column', parent.kupData.form.sections.length, parent.children);
|
|
316
|
+
// set the section in 'nidx' position.
|
|
317
|
+
parent.kupData.form.sections.splice(nidx, 0, child.kupData.section);
|
|
271
318
|
child.kupData.parent = parent.kupData.form;
|
|
272
319
|
}
|
|
273
320
|
else if (parent.kupData.section) {
|
|
@@ -282,17 +329,20 @@ export class KupDashboard {
|
|
|
282
329
|
parent.kupData.section.sections = [];
|
|
283
330
|
parent.kupData.section.sections.push(newSec);
|
|
284
331
|
}
|
|
285
|
-
|
|
332
|
+
// calculate a new position for the section.
|
|
333
|
+
const nidx = this.calcSectionPosition(event.dragEvent.clientY, event.dragEvent.clientX, parent.kupData.section.layout == 'column', parent.kupData.section.sections.length, parent.lastElementChild.children);
|
|
334
|
+
// set the section in 'nidx' position.
|
|
335
|
+
parent.kupData.section.sections.splice(nidx, 0, child.kupData.section);
|
|
286
336
|
child.kupData.parent = parent.kupData.section;
|
|
287
337
|
}
|
|
288
338
|
this.resetData(this.internalData);
|
|
289
339
|
}
|
|
290
340
|
getGridStyle(entity) {
|
|
291
341
|
let bodyStyles = {};
|
|
292
|
-
if (
|
|
342
|
+
if (entity.sections) {
|
|
293
343
|
let gridTemplate = '';
|
|
294
344
|
entity.sections.forEach((childSection) => {
|
|
295
|
-
if (!childSection.dim)
|
|
345
|
+
if (this.enableDesign || !childSection.dim)
|
|
296
346
|
gridTemplate += ' 1fr';
|
|
297
347
|
else
|
|
298
348
|
gridTemplate +=
|
|
@@ -307,6 +357,16 @@ export class KupDashboard {
|
|
|
307
357
|
}
|
|
308
358
|
return bodyStyles;
|
|
309
359
|
}
|
|
360
|
+
setSectionPlaceHolder(element, index) {
|
|
361
|
+
const ph = document.createElement('div');
|
|
362
|
+
ph.className = 'section-placeholder';
|
|
363
|
+
element.insertBefore(ph, element.childNodes[index]);
|
|
364
|
+
}
|
|
365
|
+
removeSectionPlaceHolder() {
|
|
366
|
+
const ph = this.rootElement.shadowRoot.querySelector('.section-placeholder');
|
|
367
|
+
if (ph)
|
|
368
|
+
ph.parentElement.removeChild(ph);
|
|
369
|
+
}
|
|
310
370
|
resetData(form = null) {
|
|
311
371
|
if (form)
|
|
312
372
|
this.internalDataBackup = form;
|