@sme.up/ketchup 9.6.2 → 9.6.3
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-4c346ca8.js → f-button-9a0eba42.js} +2 -2
- package/dist/cjs/{f-cell-8f3d12fd.js → f-cell-1ad41071.js} +51 -9
- package/dist/cjs/{f-checkbox-bfa92ebe.js → f-checkbox-1fa28e76.js} +1 -1
- package/dist/cjs/{f-chip-a6c800be.js → f-chip-48851b4f.js} +3 -3
- package/dist/cjs/{f-image-40476fa6.js → f-image-541e5f4d.js} +2 -2
- package/dist/cjs/{f-paginator-utils-c652ceaa.js → f-paginator-utils-8ff2a9b4.js} +7 -4
- package/dist/cjs/{f-text-field-1f77ef23.js → f-text-field-ac5d6497.js} +2 -2
- package/dist/cjs/{index-db0a6be6.js → index-958d0399.js} +21 -26
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +47 -46
- package/dist/cjs/kup-box.cjs.entry.js +60 -20
- package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
- package/dist/cjs/kup-card-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-cell.cjs.entry.js +10 -10
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
- package/dist/cjs/kup-dashboard.cjs.entry.js +8 -8
- package/dist/cjs/{kup-dates-4aa560f0.js → kup-dates-b7d53b4d.js} +25 -8
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/kup-echart.cjs.entry.js +4 -4
- package/dist/cjs/kup-editor.cjs.entry.js +3 -3
- package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
- package/dist/cjs/kup-gantt_10.cjs.entry.js +20 -14
- package/dist/cjs/kup-grid.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-image-list.cjs.entry.js +138 -50
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
- package/dist/cjs/{kup-manager-08f1585b.js → kup-manager-26a9154b.js} +631 -33
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
- package/dist/cjs/{kup-planner-renderer-helper-f0c869d7.js → kup-planner-renderer-helper-680bbd5a.js} +3 -23
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +13 -6
- package/dist/cjs/kup-planner.cjs.entry.js +12 -6
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +4 -4
- package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/data-table.js +7 -2
- package/dist/collection/assets/image-list.js +20 -0
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/assets/planner-example-6.js +983 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/kup-accordion/kup-accordion.css +128 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +128 -0
- package/dist/collection/components/kup-badge/kup-badge.css +128 -0
- package/dist/collection/components/kup-box/kup-box.css +128 -0
- package/dist/collection/components/kup-box/kup-box.js +49 -9
- package/dist/collection/components/kup-button/kup-button.css +128 -0
- package/dist/collection/components/kup-button-list/kup-button-list.css +128 -0
- package/dist/collection/components/kup-calendar/kup-calendar.css +128 -0
- package/dist/collection/components/kup-card/kup-card.css +128 -0
- package/dist/collection/components/kup-card-list/kup-card-list.css +128 -0
- package/dist/collection/components/kup-cell/kup-cell.css +128 -0
- package/dist/collection/components/kup-chart/kup-chart.css +128 -0
- package/dist/collection/components/kup-checkbox/kup-checkbox.css +128 -0
- package/dist/collection/components/kup-chip/kup-chip.css +128 -0
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +128 -0
- package/dist/collection/components/kup-combobox/kup-combobox.css +128 -0
- package/dist/collection/components/kup-dashboard/kup-dashboard.css +128 -0
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +133 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +28 -9
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +128 -0
- package/dist/collection/components/kup-dialog/kup-dialog.css +128 -0
- package/dist/collection/components/kup-drawer/kup-drawer.css +128 -0
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +128 -0
- package/dist/collection/components/kup-echart/kup-echart.css +128 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +128 -0
- package/dist/collection/components/kup-form/kup-form.css +128 -0
- package/dist/collection/components/kup-gauge/kup-gauge.css +128 -0
- package/dist/collection/components/kup-grid/kup-grid.css +128 -0
- package/dist/collection/components/kup-iframe/kup-iframe.css +128 -0
- package/dist/collection/components/kup-image/kup-image.css +128 -0
- package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +2 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +158 -18
- package/dist/collection/components/kup-image-list/kup-image-list.js +175 -46
- package/dist/collection/components/kup-lazy/kup-lazy.css +128 -0
- package/dist/collection/components/kup-list/kup-list.css +128 -0
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +128 -0
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +128 -0
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +128 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +128 -0
- package/dist/collection/components/kup-planner/kup-planner.css +128 -0
- package/dist/collection/components/kup-planner/kup-planner.js +7 -1
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +128 -0
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +29 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +2 -22
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +37 -4
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +128 -0
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +128 -0
- package/dist/collection/components/kup-qlik/kup-qlik.css +128 -0
- package/dist/collection/components/kup-radio/kup-radio.css +128 -0
- package/dist/collection/components/kup-rating/kup-rating.css +128 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +128 -0
- package/dist/collection/components/kup-spinner/kup-spinner.css +128 -0
- package/dist/collection/components/kup-switch/kup-switch.css +128 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +128 -0
- package/dist/collection/components/kup-text-field/kup-text-field.css +128 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +128 -0
- package/dist/collection/components/kup-tree/kup-tree.css +128 -0
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
- package/dist/collection/f-components/f-cell/f-cell.js +44 -2
- package/dist/collection/f-components/f-paginator/f-paginator.js +3 -0
- package/dist/collection/managers/kup-dates/kup-dates.js +18 -8
- package/dist/collection/managers/kup-interact/kup-interact.js +7 -0
- package/dist/collection/utils/cell-utils.js +2 -2
- package/dist/components/custom-task-list-header.js +1 -1
- package/dist/components/custom-task-list-table.js +1 -1
- package/dist/components/kup-accordion.js +1 -1
- package/dist/components/kup-autocomplete2.js +85 -38
- package/dist/components/kup-box2.js +50 -10
- package/dist/components/kup-calendar.js +1 -1
- package/dist/components/kup-card-list.js +1 -1
- package/dist/components/kup-cell.js +1 -1
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-dates.js +25 -8
- package/dist/components/kup-drawer.js +1 -1
- package/dist/components/kup-echart2.js +1 -1
- package/dist/components/kup-family-tree.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +2 -2
- package/dist/components/kup-gantt2.js +11 -4
- package/dist/components/kup-grid-renderer2.js +1 -1
- package/dist/components/kup-grid2.js +1 -1
- package/dist/components/kup-horizontal-scroll2.js +1 -1
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +132 -42
- package/dist/components/kup-lazy.js +1 -1
- package/dist/components/kup-magic-box.js +1 -1
- package/dist/components/kup-manager.js +629 -31
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-photo-frame.js +1 -1
- package/dist/components/kup-planner-renderer-helper.js +2 -22
- package/dist/components/kup-planner-renderer2.js +12 -4
- package/dist/components/kup-planner.js +8 -2
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-standard-tooltip2.js +1 -1
- package/dist/components/kup-switcher2.js +1 -1
- package/dist/components/kup-task-list-header2.js +1 -1
- package/dist/components/kup-task-list-table2.js +2 -2
- package/dist/components/kup-task-list2.js +1 -1
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +1 -1
- package/dist/esm/{f-button-90a7ea86.js → f-button-45d690a5.js} +2 -2
- package/dist/esm/{f-cell-fdd338c5.js → f-cell-63db06db.js} +51 -9
- package/dist/esm/{f-checkbox-fdf27ce9.js → f-checkbox-ddb6234e.js} +1 -1
- package/dist/esm/{f-chip-4e6341a6.js → f-chip-f1ab6c5e.js} +3 -3
- package/dist/esm/{f-image-5210f0b3.js → f-image-8b382cc5.js} +2 -2
- package/dist/esm/{f-paginator-utils-3f179999.js → f-paginator-utils-ae563cd5.js} +7 -4
- package/dist/esm/{f-text-field-8429a853.js → f-text-field-b5fcb598.js} +2 -2
- package/dist/esm/{index-bbef9f2a.js → index-460631fd.js} +21 -26
- package/dist/esm/index.js +3 -3
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +47 -46
- package/dist/esm/kup-box.entry.js +60 -20
- package/dist/esm/kup-calendar.entry.js +7 -7
- package/dist/esm/kup-card-list.entry.js +4 -4
- package/dist/esm/kup-cell.entry.js +10 -10
- package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
- package/dist/esm/kup-dashboard.entry.js +8 -8
- package/dist/esm/{kup-dates-172954df.js → kup-dates-4ad48be7.js} +25 -8
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/kup-echart.entry.js +4 -4
- package/dist/esm/kup-editor.entry.js +3 -3
- package/dist/esm/kup-family-tree.entry.js +6 -6
- package/dist/esm/kup-gantt_10.entry.js +20 -14
- package/dist/esm/kup-grid.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-image-list.entry.js +138 -50
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +5 -5
- package/dist/esm/{kup-manager-8b39f876.js → kup-manager-cdb4f21a.js} +631 -33
- package/dist/esm/kup-nav-bar.entry.js +4 -4
- package/dist/esm/kup-numeric-picker.entry.js +5 -5
- package/dist/esm/kup-photo-frame.entry.js +4 -4
- package/dist/esm/{kup-planner-renderer-helper-5d97e075.js → kup-planner-renderer-helper-da0518be.js} +3 -23
- package/dist/esm/kup-planner-renderer.entry.js +13 -6
- package/dist/esm/kup-planner.entry.js +12 -6
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +4 -4
- package/dist/esm/kup-snackbar.entry.js +6 -6
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-090e5097.entry.js +1 -0
- package/dist/ketchup/p-1474852d.entry.js +1 -0
- package/dist/ketchup/{p-ee30e274.entry.js → p-157f0e89.entry.js} +1 -1
- package/dist/ketchup/p-1cd48eea.entry.js +1 -0
- package/dist/ketchup/p-21351b19.entry.js +1 -0
- package/dist/ketchup/p-2b40d9b9.entry.js +1 -0
- package/dist/ketchup/p-31c0cfc0.entry.js +1 -0
- package/dist/ketchup/p-41e8402e.entry.js +1 -0
- package/dist/ketchup/p-47040db6.js +2 -0
- package/dist/ketchup/{p-82694fad.entry.js → p-4c100286.entry.js} +1 -1
- package/dist/ketchup/p-4dfc5927.entry.js +1 -0
- package/dist/ketchup/{p-35d503e2.js → p-590c34bc.js} +1 -1
- package/dist/ketchup/p-5c79cb74.js +1 -0
- package/dist/ketchup/p-670354ef.entry.js +1 -0
- package/dist/ketchup/p-837bd0a6.entry.js +1 -0
- package/dist/ketchup/p-935f58fc.js +1 -0
- package/dist/ketchup/{p-2778f948.js → p-9852b1e9.js} +1 -1
- package/dist/ketchup/p-9a856951.js +28 -0
- package/dist/ketchup/{p-86f9b0d9.js → p-a5074ce4.js} +1 -1
- package/dist/ketchup/p-ad6a3c2a.entry.js +1 -0
- package/dist/ketchup/p-b6a21b6a.entry.js +1 -0
- package/dist/ketchup/{p-5e16c9d3.js → p-ba0f28b7.js} +1 -1
- package/dist/ketchup/{p-f9766625.js → p-bedabdb5.js} +1 -1
- package/dist/ketchup/p-c6b34763.entry.js +1 -0
- package/dist/ketchup/p-ca42a421.entry.js +16 -0
- package/dist/ketchup/{p-4eb70dd2.entry.js → p-ca8a1f53.entry.js} +4 -4
- package/dist/ketchup/p-cbe42afd.entry.js +1 -0
- package/dist/ketchup/p-cc7352a8.entry.js +1 -0
- package/dist/ketchup/{p-c089b961.js → p-d50515f7.js} +1 -1
- package/dist/ketchup/p-d608f866.entry.js +1 -0
- package/dist/ketchup/p-d839ce21.entry.js +9 -0
- package/dist/ketchup/p-d9284d98.entry.js +1 -0
- package/dist/ketchup/p-e0a1fbe7.entry.js +1 -0
- package/dist/ketchup/p-e0c10de2.entry.js +1 -0
- package/dist/ketchup/{p-dc18691c.js → p-e2bf2bb6.js} +1 -1
- package/dist/ketchup/{p-4c20fefd.entry.js → p-e508b2fd.entry.js} +1 -1
- package/dist/ketchup/p-ec4050e1.entry.js +1 -0
- package/dist/types/components/kup-box/kup-box.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
- package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +19 -4
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +13 -11
- package/dist/types/components/kup-planner/kup-planner.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +4 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +6 -0
- package/dist/types/components.d.ts +44 -8
- package/dist/types/f-components/f-image/f-image-declarations.d.ts +3 -4
- package/dist/types/managers/kup-dates/kup-dates.d.ts +2 -2
- package/dist/types/managers/kup-interact/kup-interact.d.ts +5 -0
- package/package.json +1 -1
- package/dist/ketchup/p-02820c2b.entry.js +0 -1
- package/dist/ketchup/p-09d853c3.entry.js +0 -1
- package/dist/ketchup/p-14e1a36b.entry.js +0 -1
- package/dist/ketchup/p-1936c6cd.entry.js +0 -1
- package/dist/ketchup/p-1ad7fea0.js +0 -2
- package/dist/ketchup/p-318c9ecd.entry.js +0 -1
- package/dist/ketchup/p-35dce86e.entry.js +0 -1
- package/dist/ketchup/p-3c9ac0fd.entry.js +0 -1
- package/dist/ketchup/p-5739cdc2.entry.js +0 -1
- package/dist/ketchup/p-5ab3a88a.entry.js +0 -1
- package/dist/ketchup/p-6780a391.js +0 -1
- package/dist/ketchup/p-67930d7c.entry.js +0 -1
- package/dist/ketchup/p-6953f769.entry.js +0 -1
- package/dist/ketchup/p-7d2fd8bd.entry.js +0 -1
- package/dist/ketchup/p-8257141a.entry.js +0 -1
- package/dist/ketchup/p-8ea68d14.entry.js +0 -1
- package/dist/ketchup/p-98c72335.entry.js +0 -1
- package/dist/ketchup/p-ab8cac45.entry.js +0 -1
- package/dist/ketchup/p-b5d3c24d.entry.js +0 -1
- package/dist/ketchup/p-cdb24584.entry.js +0 -1
- package/dist/ketchup/p-d466d6d1.entry.js +0 -1
- package/dist/ketchup/p-de07d17e.js +0 -1
- package/dist/ketchup/p-df450df9.entry.js +0 -16
- package/dist/ketchup/p-f31530fc.js +0 -28
- package/dist/ketchup/p-f353805e.entry.js +0 -1
- package/dist/ketchup/p-f515308d.entry.js +0 -9
|
@@ -1,3 +1,131 @@
|
|
|
1
|
+
.kup-body-compact-01 {
|
|
2
|
+
font-family: var(--kup-font-family);
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 18px;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
letter-spacing: 0.16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.kup-body-01 {
|
|
10
|
+
font-family: var(--kup-font-family);
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
letter-spacing: 0.16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.kup-code-01 {
|
|
18
|
+
font-family: var(--kup-font-family-monospace);
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
line-height: 16px;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
letter-spacing: 0.32px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.kup-label-01 {
|
|
26
|
+
font-family: var(--kup-font-family);
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
line-height: 16px;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
letter-spacing: 0.32px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.kup-caption-02 {
|
|
34
|
+
font-family: var(--kup-font-family);
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
line-height: 15px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
letter-spacing: 1px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.kup-caption-01 {
|
|
42
|
+
font-family: var(--kup-font-family);
|
|
43
|
+
font-size: 10px;
|
|
44
|
+
line-height: 13px;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
letter-spacing: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.kup-small-label-01 {
|
|
50
|
+
font-family: var(--kup-font-family);
|
|
51
|
+
font-size: 6px;
|
|
52
|
+
line-height: 9px;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
letter-spacing: 1px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.kup-heading-compact-01 {
|
|
58
|
+
font-family: var(--kup-font-family);
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
line-height: 18px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
letter-spacing: 0.16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.kup-heading-01 {
|
|
66
|
+
font-family: var(--kup-font-family);
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
letter-spacing: 0.16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kup-heading-02 {
|
|
74
|
+
font-family: var(--kup-font-family);
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
line-height: 24px;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
letter-spacing: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.kup-heading-03 {
|
|
82
|
+
font-family: var(--kup-font-family);
|
|
83
|
+
font-size: 20px;
|
|
84
|
+
line-height: 28px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
letter-spacing: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.kup-heading-04 {
|
|
90
|
+
font-family: var(--kup-font-family);
|
|
91
|
+
font-size: 28px;
|
|
92
|
+
line-height: 36px;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
letter-spacing: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.kup-heading-05 {
|
|
98
|
+
font-family: var(--kup-font-family);
|
|
99
|
+
font-size: 32px;
|
|
100
|
+
line-height: 40px;
|
|
101
|
+
font-weight: 300;
|
|
102
|
+
letter-spacing: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.kup-heading-06 {
|
|
106
|
+
font-family: var(--kup-font-family);
|
|
107
|
+
font-size: 42px;
|
|
108
|
+
line-height: 50px;
|
|
109
|
+
font-weight: 300;
|
|
110
|
+
letter-spacing: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.kup-heading-07 {
|
|
114
|
+
font-family: var(--kup-font-family);
|
|
115
|
+
font-size: 54px;
|
|
116
|
+
line-height: 64px;
|
|
117
|
+
font-weight: 300;
|
|
118
|
+
letter-spacing: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.kup-heading-08 {
|
|
122
|
+
font-family: var(--kup-font-family);
|
|
123
|
+
font-size: 54px;
|
|
124
|
+
line-height: 64px;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
letter-spacing: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
1
129
|
/**
|
|
2
130
|
* @prop --kup-imagelist-background-color: Sets the background color of the component.
|
|
3
131
|
* @prop --kup-imagelist-columns: Sets the number of columns of the grid.
|
|
@@ -20,11 +148,13 @@
|
|
|
20
148
|
);
|
|
21
149
|
--kup_imagelist_columns: var(--kup-imagelist-columns, 4);
|
|
22
150
|
--kup_imagelist_grid_gap: var(--kup-imagelist-grid-gap, 0.5em);
|
|
23
|
-
--
|
|
24
|
-
|
|
151
|
+
--kup_imagelist_image_min_height: var(
|
|
152
|
+
--kup-imagelist-image-min-height,
|
|
153
|
+
var(--kup-space-09)
|
|
154
|
+
);
|
|
25
155
|
--kup_imagelist_item_border_radius: var(
|
|
26
156
|
--kup-imagelist-item-border-radius,
|
|
27
|
-
|
|
157
|
+
var(--kup-radius-00)
|
|
28
158
|
);
|
|
29
159
|
--kup_imagelist_item_height: var(--kup-imagelist-item-height, auto);
|
|
30
160
|
--kup_imagelist_item_padding: var(--kup-imagelist-item-padding, 0);
|
|
@@ -47,7 +177,11 @@
|
|
|
47
177
|
);
|
|
48
178
|
--kup_imagelist_text_color: var(
|
|
49
179
|
--kup-imagelist-text-color,
|
|
50
|
-
var(--kup-
|
|
180
|
+
var(--kup-gray-color-70)
|
|
181
|
+
);
|
|
182
|
+
--kup_imagelist_item_background_color: var(
|
|
183
|
+
--kup-imagelist-item-background-color,
|
|
184
|
+
var(--kup-gray-color-10)
|
|
51
185
|
);
|
|
52
186
|
display: block;
|
|
53
187
|
}
|
|
@@ -88,14 +222,15 @@
|
|
|
88
222
|
margin: 0;
|
|
89
223
|
}
|
|
90
224
|
.navigation-bar__title__label {
|
|
91
|
-
font-size: 1.2em;
|
|
92
|
-
font-weight: bold;
|
|
93
|
-
letter-spacing: 0.12em;
|
|
94
225
|
overflow: hidden;
|
|
95
|
-
padding: 0 0.5em;
|
|
96
226
|
text-overflow: ellipsis;
|
|
97
227
|
text-transform: uppercase;
|
|
98
228
|
white-space: nowrap;
|
|
229
|
+
font-family: var(--kup-font-family);
|
|
230
|
+
font-size: 14px;
|
|
231
|
+
line-height: 18px;
|
|
232
|
+
font-weight: 400;
|
|
233
|
+
letter-spacing: 0.16px;
|
|
99
234
|
}
|
|
100
235
|
|
|
101
236
|
.image-list {
|
|
@@ -105,37 +240,42 @@
|
|
|
105
240
|
grid-template-columns: repeat(var(--kup_imagelist_columns, 4), minmax(0px, 1fr));
|
|
106
241
|
margin-top: 1em;
|
|
107
242
|
width: 100%;
|
|
243
|
+
grid-auto-flow: row;
|
|
108
244
|
}
|
|
109
245
|
.image-list .f-cell {
|
|
110
246
|
height: 100%;
|
|
111
247
|
width: 100%;
|
|
112
248
|
}
|
|
249
|
+
.image-list .f-cell .f-cell__content .image-list__wrapper {
|
|
250
|
+
padding: var(--kup-space-03) var(--kup-space-02);
|
|
251
|
+
}
|
|
113
252
|
.image-list__item {
|
|
253
|
+
background-color: var(--kup_imagelist_item_background_color);
|
|
114
254
|
border-radius: var(--kup_imagelist_item_border_radius);
|
|
115
255
|
cursor: pointer;
|
|
116
256
|
height: var(--kup_imagelist_item_height);
|
|
117
257
|
padding: var(--kup_imagelist_item_padding);
|
|
118
258
|
width: var(--kup_imagelist_item_width);
|
|
119
259
|
}
|
|
260
|
+
.image-list__item:hover {
|
|
261
|
+
background-color: var(--kup-gray-color-20);
|
|
262
|
+
}
|
|
120
263
|
.image-list__image.f-image {
|
|
121
|
-
margin: var(--
|
|
264
|
+
margin-bottom: var(--kup-space-03);
|
|
122
265
|
}
|
|
123
266
|
.image-list__image.f-image .f-image__icon {
|
|
124
267
|
min-height: var(--kup_imagelist_image_min_height);
|
|
125
268
|
}
|
|
126
269
|
.image-list__label {
|
|
127
|
-
color: var(--kup_imagelist_text_color);
|
|
128
|
-
letter-spacing: 0.12em;
|
|
129
|
-
margin: var(--kup_imagelist_label_margin);
|
|
130
270
|
overflow: hidden;
|
|
131
271
|
text-align: center;
|
|
132
272
|
text-overflow: ellipsis;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
273
|
+
white-space: nowrap;
|
|
274
|
+
font-family: var(--kup-font-family);
|
|
275
|
+
font-size: 12px;
|
|
276
|
+
line-height: 16px;
|
|
277
|
+
font-weight: 400;
|
|
278
|
+
letter-spacing: 0.32px;
|
|
139
279
|
}
|
|
140
280
|
|
|
141
281
|
/*-------------------------------------------------*/
|
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupImageList_instances, _KupImageList_clickTimeout, _KupImageList_kupManager, _KupImageList_backProps, _KupImageList_topProps, _KupImageList_createItem, _KupImageList_createList;
|
|
17
|
+
var _KupImageList_instances, _KupImageList_clickTimeout, _KupImageList_kupManager, _KupImageList_backProps, _KupImageList_topProps, _KupImageList_el, _KupImageList_hold, _KupImageList_interactableTouch, _KupImageList_createItem, _KupImageList_createList, _KupImageList_getEventDetails, _KupImageList_clickHandler, _KupImageList_contextMenuHandler, _KupImageList_dblClickHandler, _KupImageList_didLoadInteractables;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
19
|
import { MDCRipple } from "@material/ripple";
|
|
20
20
|
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
@@ -26,8 +26,9 @@ import { FButton } from "../../f-components/f-button/f-button";
|
|
|
26
26
|
import { FButtonStyling, } from "../../f-components/f-button/f-button-declarations";
|
|
27
27
|
import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
|
|
28
28
|
import { FCell } from "../../f-components/f-cell/f-cell";
|
|
29
|
-
import { FCellPadding } from "../../f-components/f-cell/f-cell-declarations";
|
|
29
|
+
import { FCellPadding, } from "../../f-components/f-cell/f-cell-declarations";
|
|
30
30
|
import { KupImageListState } from "./kup-image-list-state";
|
|
31
|
+
import { KupPointerEventTypes } from "../../managers/kup-interact/kup-interact-declarations";
|
|
31
32
|
export class KupImageList {
|
|
32
33
|
constructor() {
|
|
33
34
|
_KupImageList_instances.add(this);
|
|
@@ -41,7 +42,6 @@ export class KupImageList {
|
|
|
41
42
|
/**
|
|
42
43
|
* Instance of the KupManager class.
|
|
43
44
|
*/
|
|
44
|
-
this.kupManager = kupManagerInstance();
|
|
45
45
|
_KupImageList_clickTimeout.set(this, []);
|
|
46
46
|
_KupImageList_kupManager.set(this, kupManagerInstance());
|
|
47
47
|
_KupImageList_backProps.set(this, {
|
|
@@ -64,11 +64,16 @@ export class KupImageList {
|
|
|
64
64
|
styling: FButtonStyling.FLAT,
|
|
65
65
|
wrapperClass: 'navigation-bar__top',
|
|
66
66
|
});
|
|
67
|
+
_KupImageList_el.set(this, void 0);
|
|
68
|
+
_KupImageList_hold.set(this, false);
|
|
69
|
+
_KupImageList_interactableTouch.set(this, []);
|
|
67
70
|
this.currentNode = null;
|
|
68
71
|
this.navigationBarToggled = false;
|
|
72
|
+
this.columns = 4;
|
|
69
73
|
this.customStyle = '';
|
|
70
74
|
this.data = [];
|
|
71
75
|
this.ripple = true;
|
|
76
|
+
this.rows = null;
|
|
72
77
|
this.selectedNode = [];
|
|
73
78
|
this.stateId = '';
|
|
74
79
|
this.store = undefined;
|
|
@@ -78,7 +83,7 @@ export class KupImageList {
|
|
|
78
83
|
const state = this.store.getState(this.stateId);
|
|
79
84
|
if (state != null) {
|
|
80
85
|
this.currentNode =
|
|
81
|
-
this.
|
|
86
|
+
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").data.node.findByStrTreeNodePath(this.data, state.selectedTreeNodePath);
|
|
82
87
|
}
|
|
83
88
|
}
|
|
84
89
|
}
|
|
@@ -86,7 +91,7 @@ export class KupImageList {
|
|
|
86
91
|
if (this.store && this.stateId) {
|
|
87
92
|
let somethingChanged = false;
|
|
88
93
|
let cNodeRowId = this.currentNode ? this.currentNode.id : '';
|
|
89
|
-
if (!this.
|
|
94
|
+
if (!__classPrivateFieldGet(this, _KupImageList_kupManager, "f").objects.deepEqual(this.state.selectedTreeNodePath, cNodeRowId)) {
|
|
90
95
|
this.state.selectedTreeNodePath = cNodeRowId;
|
|
91
96
|
somethingChanged = true;
|
|
92
97
|
}
|
|
@@ -99,35 +104,6 @@ export class KupImageList {
|
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
|
-
onKupClick(node) {
|
|
103
|
-
if (node.children && node.children.length > 0) {
|
|
104
|
-
this.currentNode = node;
|
|
105
|
-
}
|
|
106
|
-
this.kupClick.emit({
|
|
107
|
-
comp: this,
|
|
108
|
-
id: this.rootElement.id,
|
|
109
|
-
node: node,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
onKupContextMenu(e, node) {
|
|
113
|
-
e.preventDefault();
|
|
114
|
-
this.kupContextMenu.emit({
|
|
115
|
-
comp: this,
|
|
116
|
-
id: this.rootElement.id,
|
|
117
|
-
node: node,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
onKupDblClick(node) {
|
|
121
|
-
for (let index = 0; index < __classPrivateFieldGet(this, _KupImageList_clickTimeout, "f").length; index++) {
|
|
122
|
-
clearTimeout(__classPrivateFieldGet(this, _KupImageList_clickTimeout, "f")[index]);
|
|
123
|
-
}
|
|
124
|
-
__classPrivateFieldSet(this, _KupImageList_clickTimeout, [], "f");
|
|
125
|
-
this.kupDblClick.emit({
|
|
126
|
-
comp: this,
|
|
127
|
-
id: this.rootElement.id,
|
|
128
|
-
node: node,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
107
|
/*-------------------------------------------------*/
|
|
132
108
|
/* W a t c h e r s */
|
|
133
109
|
/*-------------------------------------------------*/
|
|
@@ -135,7 +111,7 @@ export class KupImageList {
|
|
|
135
111
|
if (!newData || newData.length == 0) {
|
|
136
112
|
return;
|
|
137
113
|
}
|
|
138
|
-
this.currentNode = this.
|
|
114
|
+
this.currentNode = __classPrivateFieldGet(this, _KupImageList_kupManager, "f").data.node.find(this.data, newData);
|
|
139
115
|
}
|
|
140
116
|
/*-------------------------------------------------*/
|
|
141
117
|
/* P u b l i c M e t h o d s */
|
|
@@ -170,6 +146,7 @@ export class KupImageList {
|
|
|
170
146
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.register(this);
|
|
171
147
|
}
|
|
172
148
|
componentDidLoad() {
|
|
149
|
+
__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_didLoadInteractables).call(this);
|
|
173
150
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").debug.logLoad(this, true);
|
|
174
151
|
}
|
|
175
152
|
componentWillRender() {
|
|
@@ -192,14 +169,28 @@ export class KupImageList {
|
|
|
192
169
|
}
|
|
193
170
|
render() {
|
|
194
171
|
const hasNavigation = !!this.currentNode;
|
|
195
|
-
|
|
172
|
+
const gridColumnsStyle = {
|
|
173
|
+
'grid-template-columns': `repeat(${this.columns}, minmax(0px, 1fr))`,
|
|
174
|
+
};
|
|
175
|
+
let combinedGridStyle = Object.assign({}, gridColumnsStyle);
|
|
176
|
+
if (this.rows != null && this.rows > 0) {
|
|
177
|
+
const gridRowsStyle = {
|
|
178
|
+
'grid-template-rows': `repeat(${this.rows}, minmax(0px, 1fr))`,
|
|
179
|
+
'grid-auto-flow': `column`,
|
|
180
|
+
};
|
|
181
|
+
combinedGridStyle = Object.assign(Object.assign({}, combinedGridStyle), gridRowsStyle);
|
|
182
|
+
}
|
|
183
|
+
return (h(Host, { key: '86c391c4a1e0c507dc0c07971aa90e6f7091bc95' }, h("style", { key: '99f966c6cd10aac991c99b4badca0a6cff1dbf5b' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'e4eaa257a47cabcb34a412f56d736cd77fbc97af', id: componentWrapperId, ref: (el) => {
|
|
184
|
+
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
185
|
+
} }, h("div", { key: '48ff34cbb307b0ab49ca3b8ed240f0510e674e93', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
196
186
|
? 'navigation-bar__wrapper--active'
|
|
197
187
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
198
188
|
this.navigationBarToggled =
|
|
199
189
|
!this.navigationBarToggled;
|
|
200
|
-
} }, h(FImage, { fit: true, resource: this.currentNode.icon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '
|
|
190
|
+
} }, h(FImage, { fit: true, resource: this.currentNode.icon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '97ac20f9d893c131c03adc953e78435bb062f137', class: "image-list", style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
201
191
|
}
|
|
202
192
|
disconnectedCallback() {
|
|
193
|
+
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|
|
203
194
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.unregister(this);
|
|
204
195
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.unregister(this);
|
|
205
196
|
}
|
|
@@ -217,6 +208,27 @@ export class KupImageList {
|
|
|
217
208
|
}
|
|
218
209
|
static get properties() {
|
|
219
210
|
return {
|
|
211
|
+
"columns": {
|
|
212
|
+
"type": "number",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "number",
|
|
216
|
+
"resolved": "number",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [{
|
|
223
|
+
"name": "default",
|
|
224
|
+
"text": "4"
|
|
225
|
+
}],
|
|
226
|
+
"text": "Number of columns to display in the grid layout."
|
|
227
|
+
},
|
|
228
|
+
"attribute": "columns",
|
|
229
|
+
"reflect": false,
|
|
230
|
+
"defaultValue": "4"
|
|
231
|
+
},
|
|
220
232
|
"customStyle": {
|
|
221
233
|
"type": "string",
|
|
222
234
|
"mutable": false,
|
|
@@ -245,13 +257,13 @@ export class KupImageList {
|
|
|
245
257
|
"type": "unknown",
|
|
246
258
|
"mutable": false,
|
|
247
259
|
"complexType": {
|
|
248
|
-
"original": "
|
|
249
|
-
"resolved": "
|
|
260
|
+
"original": "KupImageListDataNode[]",
|
|
261
|
+
"resolved": "KupImageListDataNode[]",
|
|
250
262
|
"references": {
|
|
251
|
-
"
|
|
263
|
+
"KupImageListDataNode": {
|
|
252
264
|
"location": "import",
|
|
253
|
-
"path": "
|
|
254
|
-
"id": "src/
|
|
265
|
+
"path": "./kup-image-list-declarations",
|
|
266
|
+
"id": "src/components/kup-image-list/kup-image-list-declarations.ts::KupImageListDataNode"
|
|
255
267
|
}
|
|
256
268
|
}
|
|
257
269
|
},
|
|
@@ -287,6 +299,27 @@ export class KupImageList {
|
|
|
287
299
|
"reflect": false,
|
|
288
300
|
"defaultValue": "true"
|
|
289
301
|
},
|
|
302
|
+
"rows": {
|
|
303
|
+
"type": "number",
|
|
304
|
+
"mutable": false,
|
|
305
|
+
"complexType": {
|
|
306
|
+
"original": "number",
|
|
307
|
+
"resolved": "number",
|
|
308
|
+
"references": {}
|
|
309
|
+
},
|
|
310
|
+
"required": false,
|
|
311
|
+
"optional": false,
|
|
312
|
+
"docs": {
|
|
313
|
+
"tags": [{
|
|
314
|
+
"name": "default",
|
|
315
|
+
"text": "null"
|
|
316
|
+
}],
|
|
317
|
+
"text": "Number of rows to display in the grid layout."
|
|
318
|
+
},
|
|
319
|
+
"attribute": "rows",
|
|
320
|
+
"reflect": false,
|
|
321
|
+
"defaultValue": "null"
|
|
322
|
+
},
|
|
290
323
|
"selectedNode": {
|
|
291
324
|
"type": "unknown",
|
|
292
325
|
"mutable": false,
|
|
@@ -512,12 +545,13 @@ export class KupImageList {
|
|
|
512
545
|
}];
|
|
513
546
|
}
|
|
514
547
|
}
|
|
515
|
-
_KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakMap(), _KupImageList_backProps = new WeakMap(), _KupImageList_topProps = new WeakMap(), _KupImageList_instances = new WeakSet(), _KupImageList_createItem = function _KupImageList_createItem(node) {
|
|
548
|
+
_KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakMap(), _KupImageList_backProps = new WeakMap(), _KupImageList_topProps = new WeakMap(), _KupImageList_el = new WeakMap(), _KupImageList_hold = new WeakMap(), _KupImageList_interactableTouch = new WeakMap(), _KupImageList_instances = new WeakSet(), _KupImageList_createItem = function _KupImageList_createItem(node) {
|
|
516
549
|
const props = {
|
|
517
550
|
fit: true,
|
|
518
551
|
resource: node.icon,
|
|
519
552
|
title: node.title,
|
|
520
553
|
wrapperClass: 'image-list__image',
|
|
554
|
+
badgeData: node.badgeData,
|
|
521
555
|
};
|
|
522
556
|
const image = h(FImage, Object.assign({}, props));
|
|
523
557
|
const label = h("div", { class: "image-list__label" }, node.value);
|
|
@@ -531,10 +565,105 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
531
565
|
'image-list__item': true,
|
|
532
566
|
'mdc-ripple-surface': this.ripple ? true : false,
|
|
533
567
|
};
|
|
534
|
-
const item = (h("div", {
|
|
535
|
-
|
|
536
|
-
},
|
|
568
|
+
const item = (h("div", { onContextMenu: (e) => {
|
|
569
|
+
e.preventDefault();
|
|
570
|
+
}, class: classObj }, __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createItem).call(this, node)));
|
|
537
571
|
nodes.push(item);
|
|
538
572
|
}
|
|
539
573
|
return nodes;
|
|
574
|
+
}, _KupImageList_getEventDetails = function _KupImageList_getEventDetails(path, e) {
|
|
575
|
+
let cellProps;
|
|
576
|
+
if (path) {
|
|
577
|
+
for (let i = path.length - 1; i >= 0; i--) {
|
|
578
|
+
let p = path[i];
|
|
579
|
+
if (!p.tagName) {
|
|
580
|
+
continue;
|
|
581
|
+
}
|
|
582
|
+
if (p.classList.contains('f-cell')) {
|
|
583
|
+
cellProps = p['kup-get-cell-props']();
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
return {
|
|
588
|
+
cell: cellProps === null || cellProps === void 0 ? void 0 : cellProps.cell,
|
|
589
|
+
column: cellProps === null || cellProps === void 0 ? void 0 : cellProps.column,
|
|
590
|
+
originalEvent: e,
|
|
591
|
+
row: cellProps === null || cellProps === void 0 ? void 0 : cellProps.row,
|
|
592
|
+
};
|
|
593
|
+
}, _KupImageList_clickHandler = function _KupImageList_clickHandler(e) {
|
|
594
|
+
const details = __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_getEventDetails).call(this, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
595
|
+
return details;
|
|
596
|
+
}, _KupImageList_contextMenuHandler = function _KupImageList_contextMenuHandler(e) {
|
|
597
|
+
const details = __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_getEventDetails).call(this, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
598
|
+
return details;
|
|
599
|
+
}, _KupImageList_dblClickHandler = function _KupImageList_dblClickHandler(e) {
|
|
600
|
+
const details = __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_getEventDetails).call(this, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
601
|
+
return details;
|
|
602
|
+
}, _KupImageList_didLoadInteractables = function _KupImageList_didLoadInteractables() {
|
|
603
|
+
__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f").push(__classPrivateFieldGet(this, _KupImageList_el, "f"));
|
|
604
|
+
const tapCb = (e) => {
|
|
605
|
+
if (__classPrivateFieldGet(this, _KupImageList_hold, "f")) {
|
|
606
|
+
__classPrivateFieldSet(this, _KupImageList_hold, false, "f");
|
|
607
|
+
return;
|
|
608
|
+
}
|
|
609
|
+
switch (e.button) {
|
|
610
|
+
// left click
|
|
611
|
+
case 0:
|
|
612
|
+
// Note: event must be cloned
|
|
613
|
+
// otherwise inside setTimeout will be exiting the Shadow DOM scope(causing loss of information, including target).
|
|
614
|
+
const clone = {};
|
|
615
|
+
for (const key in e) {
|
|
616
|
+
clone[key] = e[key];
|
|
617
|
+
}
|
|
618
|
+
__classPrivateFieldGet(this, _KupImageList_clickTimeout, "f").push(setTimeout(() => {
|
|
619
|
+
const details = __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_clickHandler).call(this, clone);
|
|
620
|
+
const node = details.row;
|
|
621
|
+
if (node.children && node.children.length > 0) {
|
|
622
|
+
this.currentNode = node;
|
|
623
|
+
}
|
|
624
|
+
this.kupClick.emit({
|
|
625
|
+
comp: this,
|
|
626
|
+
id: this.rootElement.id,
|
|
627
|
+
details,
|
|
628
|
+
});
|
|
629
|
+
}, 300));
|
|
630
|
+
break;
|
|
631
|
+
// right click
|
|
632
|
+
case 2:
|
|
633
|
+
this.kupContextMenu.emit({
|
|
634
|
+
comp: this,
|
|
635
|
+
id: this.rootElement.id,
|
|
636
|
+
details: __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_contextMenuHandler).call(this, e),
|
|
637
|
+
});
|
|
638
|
+
break;
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
const doubletapCb = (e) => {
|
|
642
|
+
switch (e.button) {
|
|
643
|
+
// left click
|
|
644
|
+
case 0:
|
|
645
|
+
for (let index = 0; index < __classPrivateFieldGet(this, _KupImageList_clickTimeout, "f").length; index++) {
|
|
646
|
+
clearTimeout(__classPrivateFieldGet(this, _KupImageList_clickTimeout, "f")[index]);
|
|
647
|
+
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").debug.logMessage(this, 'Cleared clickHandler timeout(' +
|
|
648
|
+
__classPrivateFieldGet(this, _KupImageList_clickTimeout, "f")[index] +
|
|
649
|
+
').');
|
|
650
|
+
}
|
|
651
|
+
__classPrivateFieldSet(this, _KupImageList_clickTimeout, [], "f");
|
|
652
|
+
this.kupDblClick.emit({
|
|
653
|
+
comp: this,
|
|
654
|
+
id: this.rootElement.id,
|
|
655
|
+
details: __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_dblClickHandler).call(this, e),
|
|
656
|
+
});
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
const holdCb = (e) => {
|
|
661
|
+
if (e.pointerType === 'pen' || e.pointerType === 'touch') {
|
|
662
|
+
__classPrivateFieldSet(this, _KupImageList_hold, true, "f");
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupImageList_el, "f"), KupPointerEventTypes.HOLD, holdCb);
|
|
666
|
+
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupImageList_el, "f"), KupPointerEventTypes.TAP, tapCb);
|
|
667
|
+
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupImageList_el, "f"), KupPointerEventTypes.DOUBLETAP, doubletapCb);
|
|
668
|
+
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupImageList_el, "f"), KupPointerEventTypes.HOLD, holdCb);
|
|
540
669
|
};
|