@sme.up/ketchup 11.0.0-SNAPSHOT-20250204102909 → 11.0.0-SNAPSHOT-20250204113836
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-cell-f0ab65b9.js → f-cell-bc053135.js} +6 -4
- package/dist/cjs/{f-chip-35f8c5a9.js → f-chip-a913f6db.js} +1 -1
- package/dist/cjs/{f-object-field-5fc4341f.js → f-object-field-eabecff2.js} +2 -2
- package/dist/cjs/{f-paginator-utils-0c423047.js → f-paginator-utils-de023500.js} +1 -1
- package/dist/cjs/{f-text-field-cb62a970.js → f-text-field-8a765845.js} +1 -1
- package/dist/cjs/index-e8aa3c73.js +2 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_29.cjs.entry.js} +1071 -876
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +12 -7
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-675f75cd.js → kup-data-table-helper-1da4e593.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-input-panel.cjs.entry.js +7 -7
- package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
- package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
- package/dist/cjs/{kup-manager-80148a95.js → kup-manager-3b86b8d0.js} +25 -2
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-object-field.cjs.entry.js +4 -4
- package/dist/cjs/kup-pdf.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +3 -3
- 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 +2 -2
- package/dist/cjs/kup-txt.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/kup-cell/kup-cell.js +27 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +23 -10
- package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +5 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.css +203 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +423 -0
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-htm/kup-htm.js +1 -1
- package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +2 -2
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
- package/dist/collection/components/kup-object-field/kup-object-field.js +1 -1
- package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
- package/dist/collection/components/kup-planner/kup-planner.js +1 -1
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
- 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.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/components/kup-txt/kup-txt.js +1 -1
- package/dist/collection/components/kup-typography/kup-typography.js +1 -1
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -0
- package/dist/collection/f-components/f-cell/f-cell.js +2 -0
- package/dist/collection/managers/kup-data/kup-data.js +2 -0
- package/dist/collection/managers/kup-language/kup-language-declarations.js +9 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +2 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +21 -16
- package/dist/components/kup-activity-timeline.js +21 -16
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +21 -16
- package/dist/components/kup-card-list.js +22 -17
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +28 -18
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-custom-task-list-header.js +1 -1
- package/dist/components/kup-dashboard.js +21 -16
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +21 -16
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +23 -18
- package/dist/components/kup-file-upload.d.ts +11 -0
- package/dist/components/kup-file-upload.js +6 -0
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gantt-calendar.js +1 -1
- package/dist/components/kup-gantt.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid-renderer.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-horizontal-scroll.js +1 -1
- package/dist/components/kup-htm.js +22 -17
- package/dist/components/kup-iframe.js +21 -16
- package/dist/components/kup-image-list.js +24 -19
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +25 -20
- package/dist/components/kup-lazy.js +32 -27
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +28 -23
- package/dist/components/kup-nav-bar.js +22 -17
- package/dist/components/kup-numeric-picker.js +22 -17
- package/dist/components/kup-object-field.js +22 -17
- package/dist/components/kup-pdf.js +22 -17
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +39 -34
- package/dist/components/kup-probe.js +22 -17
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +22 -17
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +22 -17
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-standard-tooltip.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-switcher.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-task-gantt.js +1 -1
- package/dist/components/kup-task-list-header.js +1 -1
- package/dist/components/kup-task-list-table.js +1 -1
- package/dist/components/kup-task-list.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tooltip.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +22 -17
- package/dist/components/kup-typography-list.js +22 -17
- package/dist/components/kup-typography.js +22 -17
- package/dist/components/kup-vertical-scroll.js +1 -1
- package/dist/components/{p-a37e6312.js → p-00fe03b5.js} +7 -7
- package/dist/components/{p-d9d60a18.js → p-010ce0fe.js} +13 -13
- package/dist/components/{p-b57801f3.js → p-22538c02.js} +15 -15
- package/dist/components/{p-63ddd73a.js → p-2865ea51.js} +4 -4
- package/dist/components/{p-fb9ca494.js → p-443b5e15.js} +1 -1
- package/dist/components/{p-f3104d30.js → p-5b63178f.js} +21 -16
- package/dist/components/{p-74dce0e5.js → p-6924a70f.js} +2 -2
- package/dist/components/{p-23d7e632.js → p-7646ccdd.js} +2 -2
- package/dist/components/{p-5fa3e60f.js → p-8204c90e.js} +1 -1
- package/dist/components/{p-00a46ffd.js → p-8f77f6d8.js} +21 -16
- package/dist/components/{p-3aff545d.js → p-98aafbf3.js} +26 -3
- package/dist/components/{p-3bde4660.js → p-9e0b916d.js} +1 -1
- package/dist/components/{p-d7931d3a.js → p-a0a94cd3.js} +21 -16
- package/dist/components/{p-000af163.js → p-c528b477.js} +5 -5
- package/dist/components/{p-1f13e420.js → p-cb58e44a.js} +1 -1
- package/dist/components/{p-52d321c0.js → p-d339381c.js} +21 -16
- package/dist/components/{p-15078d74.js → p-dd07188b.js} +1089 -589
- package/dist/components/{p-cd2db6f6.js → p-e4277d58.js} +3 -3
- package/dist/components/{p-20771aa1.js → p-ec1762ee.js} +2 -2
- package/dist/components/{p-0d3f38e3.js → p-fd8fe6d0.js} +2 -2
- package/dist/esm/{f-cell-fa00b8ef.js → f-cell-2b1c1919.js} +6 -4
- package/dist/esm/{f-chip-05355daa.js → f-chip-b42af349.js} +1 -1
- package/dist/esm/{f-object-field-c9d54642.js → f-object-field-2bfc470c.js} +2 -2
- package/dist/esm/{f-paginator-utils-bf93d7d4.js → f-paginator-utils-541bc197.js} +1 -1
- package/dist/esm/{f-text-field-b75996bd.js → f-text-field-04f701fb.js} +1 -1
- package/dist/esm/index-c9246a86.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_29.entry.js} +1071 -877
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +12 -7
- package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-e3846302.js → kup-data-table-helper-0dbc3495.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-gantt_10.entry.js +23 -23
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-input-panel.entry.js +7 -7
- package/dist/esm/kup-lazy.entry.js +12 -12
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/{kup-manager-2d8f4f18.js → kup-manager-89189705.js} +26 -3
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-object-field.entry.js +4 -4
- package/dist/esm/kup-pdf.entry.js +2 -2
- package/dist/esm/kup-planner-renderer.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +3 -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 +2 -2
- package/dist/esm/kup-txt.entry.js +2 -2
- package/dist/esm/kup-typography-list.entry.js +2 -2
- package/dist/esm/kup-typography.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-36d3870e.entry.js → p-069fe9e1.entry.js} +1 -1
- package/dist/ketchup/p-0dd57f34.js +1 -0
- package/dist/ketchup/{p-72e25927.entry.js → p-0e644cb7.entry.js} +1 -1
- package/dist/ketchup/{p-6b76cc4c.entry.js → p-0ea4179b.entry.js} +1 -1
- package/dist/ketchup/{p-fe9db498.js → p-15491541.js} +1 -1
- package/dist/ketchup/{p-04915720.js → p-285c28ae.js} +1 -1
- package/dist/ketchup/{p-cbe1e4a5.entry.js → p-2e789d5f.entry.js} +1 -1
- package/dist/ketchup/{p-960b5246.entry.js → p-43159582.entry.js} +1 -1
- package/dist/ketchup/{p-b0f1b21d.entry.js → p-47545e56.entry.js} +1 -1
- package/dist/ketchup/{p-4d899ee9.entry.js → p-4b1eb87d.entry.js} +1 -1
- package/dist/ketchup/{p-31304076.entry.js → p-4ceb2da3.entry.js} +1 -1
- package/dist/ketchup/{p-b75e663b.entry.js → p-54a54f0d.entry.js} +1 -1
- package/dist/ketchup/{p-4da163e9.entry.js → p-595f3fd8.entry.js} +1 -1
- package/dist/ketchup/{p-85cbe3fc.entry.js → p-5a015f10.entry.js} +1 -1
- package/dist/ketchup/{p-b9dd4ebe.entry.js → p-5a345165.entry.js} +1 -1
- package/dist/ketchup/{p-b2cb221e.js → p-5d7a9987.js} +1 -1
- package/dist/ketchup/{p-ed90bf43.entry.js → p-6b11fc72.entry.js} +1 -1
- package/dist/ketchup/{p-a74fe69d.entry.js → p-6b771a9b.entry.js} +1 -1
- package/dist/ketchup/{p-bb757c4b.entry.js → p-7819480d.entry.js} +1 -1
- package/dist/ketchup/p-86f75374.entry.js +1 -0
- package/dist/ketchup/{p-66ccba95.entry.js → p-8afe1504.entry.js} +1 -1
- package/dist/ketchup/{p-ab8b13ac.entry.js → p-8bc2f0b6.entry.js} +1 -1
- package/dist/ketchup/p-98797821.entry.js +1 -0
- package/dist/ketchup/{p-a7123dc1.entry.js → p-9f51f081.entry.js} +1 -1
- package/dist/ketchup/p-a00e1a17.entry.js +9 -0
- package/dist/ketchup/{p-b84093fc.entry.js → p-a50b3050.entry.js} +1 -1
- package/dist/ketchup/{p-a8a3291d.entry.js → p-af7c5f4d.entry.js} +2 -2
- package/dist/ketchup/{p-317b3e3a.entry.js → p-b59ba2e0.entry.js} +1 -1
- package/dist/ketchup/{p-1d9a31fc.entry.js → p-c1b293a7.entry.js} +1 -1
- package/dist/ketchup/{p-bfe12bd6.entry.js → p-ccb2296a.entry.js} +1 -1
- package/dist/ketchup/{p-cb88c213.entry.js → p-d1389486.entry.js} +1 -1
- package/dist/ketchup/{p-72c85164.entry.js → p-d47f322d.entry.js} +1 -1
- package/dist/ketchup/{p-479ef0dc.entry.js → p-dd65ab87.entry.js} +2 -2
- package/dist/ketchup/{p-714609da.entry.js → p-e1683cf1.entry.js} +1 -1
- package/dist/ketchup/p-e202be52.js +1 -0
- package/dist/ketchup/p-e527cae5.entry.js +1 -0
- package/dist/ketchup/{p-bdfde4e7.entry.js → p-f0c7071a.entry.js} +1 -1
- package/dist/ketchup/p-f51f2af6.js +21 -0
- package/dist/ketchup/{p-162a169f.entry.js → p-f5e50e78.entry.js} +1 -1
- package/dist/ketchup/p-fc645b13.js +1 -0
- package/dist/types/components/kup-cell/kup-cell.d.ts +3 -0
- package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +8 -0
- package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +62 -0
- package/dist/types/components.d.ts +85 -0
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +2 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +10 -2
- package/dist/types/types/GenericTypes.d.ts +2 -1
- package/package.json +1 -1
- package/dist/ketchup/p-0f25c7c6.js +0 -21
- package/dist/ketchup/p-3d927559.entry.js +0 -1
- package/dist/ketchup/p-51d6eb71.js +0 -1
- package/dist/ketchup/p-64e7493c.js +0 -1
- package/dist/ketchup/p-7fff3f5f.entry.js +0 -1
- package/dist/ketchup/p-c7caa9ab.entry.js +0 -1
- package/dist/ketchup/p-d27a5f1f.js +0 -1
- package/dist/ketchup/p-de8b7f56.entry.js +0 -9
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
.kup-body-compact-01 {
|
|
2
|
+
font-family: var(--kup-font-family);
|
|
3
|
+
font-size: var(--kup-body-compact-01-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: var(--kup-body-01-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
|
+
|
|
129
|
+
:host {
|
|
130
|
+
--kup_upload_icon_color: var(--kup-upload-icon-color, var(--kup-icon-color));
|
|
131
|
+
--kup_upload_border_color: var(
|
|
132
|
+
--kup-upload-border-color,
|
|
133
|
+
var(--kup-gray-color-30)
|
|
134
|
+
);
|
|
135
|
+
flex: 1;
|
|
136
|
+
}
|
|
137
|
+
:host .file-upload-spinner > * {
|
|
138
|
+
opacity: 0.6;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
:host .file-upload-spinner > file-upload__spinner-container {
|
|
142
|
+
opacity: 1;
|
|
143
|
+
}
|
|
144
|
+
:host .file-upload {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
gap: 1em;
|
|
148
|
+
border: 2px dashed var(--kup_upload_border_color);
|
|
149
|
+
border-radius: 4px;
|
|
150
|
+
padding: 1em;
|
|
151
|
+
position: relative;
|
|
152
|
+
}
|
|
153
|
+
:host .file-upload__buttons {
|
|
154
|
+
display: flex;
|
|
155
|
+
gap: 1em;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
}
|
|
159
|
+
:host .file-upload__buttons .spinner {
|
|
160
|
+
height: 48px;
|
|
161
|
+
margin: auto;
|
|
162
|
+
width: 48px;
|
|
163
|
+
}
|
|
164
|
+
:host .file-upload__list {
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
gap: 1em;
|
|
168
|
+
}
|
|
169
|
+
:host .file-upload__list__item {
|
|
170
|
+
display: flex;
|
|
171
|
+
gap: 1em;
|
|
172
|
+
align-items: center;
|
|
173
|
+
}
|
|
174
|
+
:host .file-upload__list__item__preview {
|
|
175
|
+
height: 3em;
|
|
176
|
+
width: 3em;
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
}
|
|
180
|
+
:host .file-upload__list__item__desc {
|
|
181
|
+
width: 14em;
|
|
182
|
+
}
|
|
183
|
+
:host .file-upload__list__item__clear {
|
|
184
|
+
background-color: var(--kup_upload_icon_color);
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
height: 16px;
|
|
187
|
+
width: 16px;
|
|
188
|
+
min-width: 16px;
|
|
189
|
+
min-height: 16px;
|
|
190
|
+
outline: none;
|
|
191
|
+
pointer-events: all;
|
|
192
|
+
-webkit-mask: var(--kup-clear-icon);
|
|
193
|
+
mask: var(--kup-clear-icon);
|
|
194
|
+
}
|
|
195
|
+
:host .file-upload__list__item__clear:hover {
|
|
196
|
+
background-color: var(--kup-danger-color-60);
|
|
197
|
+
}
|
|
198
|
+
:host .file-upload__spinner-container {
|
|
199
|
+
height: calc(100% - 2em);
|
|
200
|
+
width: 20%;
|
|
201
|
+
position: absolute;
|
|
202
|
+
left: 40%;
|
|
203
|
+
}
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f)
|
|
3
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var _KupFileUpload_instances, _KupFileUpload_kupManager, _KupFileUpload_previewMap, _KupFileUpload_handleClick, _KupFileUpload_handleFileChange, _KupFileUpload_handleFileRemove, _KupFileUpload_handleDrop, _KupFileUpload_handleCancel, _KupFileUpload_getPreview, _KupFileUpload_trimFileName, _KupFileUpload_uploadClick;
|
|
9
|
+
import { forceUpdate, Host, h, } from "@stencil/core";
|
|
10
|
+
import { kupManagerInstance } from "../../managers/kup-manager/kup-manager";
|
|
11
|
+
import { getProps, setProps } from "../../utils/utils";
|
|
12
|
+
import { KupFileUploadProps, } from "./kup-file-upload-declarations";
|
|
13
|
+
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
14
|
+
import { FButton } from "../../f-components/f-button/f-button";
|
|
15
|
+
import { KupLanguageGeneric, KupLanguageUpload, } from "../../managers/kup-language/kup-language-declarations";
|
|
16
|
+
import { FButtonStyling } from "../../f-components/f-button/f-button-declarations";
|
|
17
|
+
import { FImage } from "../../f-components/f-image/f-image";
|
|
18
|
+
export class KupFileUpload {
|
|
19
|
+
constructor() {
|
|
20
|
+
_KupFileUpload_instances.add(this);
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region VARIABLES
|
|
23
|
+
/*-------------------------------------------------*/
|
|
24
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
25
|
+
/*-------------------------------------------------*/
|
|
26
|
+
_KupFileUpload_kupManager.set(this, kupManagerInstance());
|
|
27
|
+
_KupFileUpload_previewMap.set(this, new Map([
|
|
28
|
+
['application/pdf', 'file-pdf'],
|
|
29
|
+
['application/vnd.ms-excel', 'file-excel'],
|
|
30
|
+
[
|
|
31
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
32
|
+
'file-excel',
|
|
33
|
+
],
|
|
34
|
+
['application/msword', 'file-word'],
|
|
35
|
+
[
|
|
36
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
37
|
+
'file-word',
|
|
38
|
+
],
|
|
39
|
+
]));
|
|
40
|
+
this.customStyle = '';
|
|
41
|
+
this.data = null;
|
|
42
|
+
this.inputRef = undefined;
|
|
43
|
+
this.files = [];
|
|
44
|
+
this.uploadSuccess = false;
|
|
45
|
+
this.showSpinner = false;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region WATCHERS
|
|
49
|
+
/*-------------------------------------------------*/
|
|
50
|
+
/* W a t c h e r s */
|
|
51
|
+
/*-------------------------------------------------*/
|
|
52
|
+
onDataChanged() { }
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region PUBLIC METHODS
|
|
55
|
+
/*-------------------------------------------------*/
|
|
56
|
+
/* P u b l i c M e t h o d s */
|
|
57
|
+
/*-------------------------------------------------*/
|
|
58
|
+
/**
|
|
59
|
+
* Used to retrieve component's props values.
|
|
60
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
61
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
62
|
+
*/
|
|
63
|
+
async getProps(descriptions) {
|
|
64
|
+
return getProps(this, KupFileUploadProps, descriptions);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* This method is used to trigger a new render of the component.
|
|
68
|
+
*/
|
|
69
|
+
async refresh() {
|
|
70
|
+
forceUpdate(this);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Sets the props to the component.
|
|
74
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
75
|
+
*/
|
|
76
|
+
async setProps(props) {
|
|
77
|
+
setProps(this, KupFileUploadProps, props);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Sets upload has been successfull to show success message.
|
|
81
|
+
* @param {boolean} success - Boolean to set if upload has been successfull.
|
|
82
|
+
*/
|
|
83
|
+
async setSuccess(success) {
|
|
84
|
+
this.setLoading(false);
|
|
85
|
+
if (success) {
|
|
86
|
+
__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
|
|
87
|
+
this.uploadSuccess = success;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Sets to show spinner during upload.
|
|
92
|
+
* @param {boolean} loading - Boolean to set if is loading.
|
|
93
|
+
*/
|
|
94
|
+
async setLoading(loading) {
|
|
95
|
+
this.showSpinner = loading;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region LIFECYCLE HOOKS
|
|
99
|
+
/*-------------------------------------------------*/
|
|
100
|
+
/* L i f e c y c l e H o o k s */
|
|
101
|
+
/*-------------------------------------------------*/
|
|
102
|
+
componentWillLoad() {
|
|
103
|
+
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logLoad(this, false);
|
|
104
|
+
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.register(this);
|
|
105
|
+
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.register(this);
|
|
106
|
+
}
|
|
107
|
+
componentDidLoad() {
|
|
108
|
+
this.kupReady.emit({ comp: this, id: this.rootElement.id });
|
|
109
|
+
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logLoad(this, true);
|
|
110
|
+
}
|
|
111
|
+
componentWillRender() {
|
|
112
|
+
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logRender(this, false);
|
|
113
|
+
}
|
|
114
|
+
componentDidRender() {
|
|
115
|
+
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logRender(this, true);
|
|
116
|
+
}
|
|
117
|
+
render() {
|
|
118
|
+
return (h(Host, { key: 'fe4bf368d35a09d537000b666c22b8a796e841d8' }, h("style", { key: '7f795ecba5c7187f2752051561545a27fdb4eb76' }, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '6f998101815936c02246f56816f03e9d43c3ce8d', id: componentWrapperId }, h("div", { key: 'aa518134c9ae9a1a3645e811c75b39da73c544b3', class: {
|
|
119
|
+
'file-upload': true,
|
|
120
|
+
'file-upload-spinner': this.showSpinner,
|
|
121
|
+
}, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragOver: (event) => event.preventDefault() }, h("input", { key: 'ed848e17a8e40fec4b5c119a316ab5a6c09c9085', type: "file", ref: (el) => (this.inputRef = el), onChange: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileChange).bind(this), multiple: true, hidden: true }), h("div", { key: 'c713ff2f83975080221437cca9ead4534dd4ef9b', class: "file-upload__buttons" }, h(FButton, { key: 'bad9df6fe8d6f45fc414b3c25559333e887d3273', icon: "upload", label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.CHOOSE), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleClick).bind(this) }), h(FButton, { key: '3966f24556bce210cc2e84b0b34153ff7feb182c', icon: "save", disabled: !this.files.length, label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.UPLOAD), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_uploadClick).bind(this), styling: FButtonStyling.FLAT }), h(FButton, { key: '4c538a64d604496d0d65a1c9dc3bb88ddc92df19', icon: "clear", disabled: !this.files.length, label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.ABORT), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).bind(this), styling: FButtonStyling.FLAT })), this.uploadSuccess ? (h("span", null, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageUpload.SUCCESS))) : (h("div", { class: "file-upload__list" }, this.files.map((file, i) => (h("div", { class: "file-upload__list__item" }, h("div", { class: "file-upload__list__item__preview" }, h(FImage, { resource: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_getPreview).call(this, file) })), h("span", { class: "file-upload__list__item__desc", title: file.name }, __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_trimFileName).call(this, file.name)), h("span", { class: "file-upload__list__item__clear", onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileRemove).bind(this, i) })))))), this.showSpinner && (h("div", { key: '54782b7a4ceb1a4626255256d4832ed24be43e36', class: "file-upload__spinner-container" }, h("kup-spinner", { key: '7da8a612be8f0a9a01e96308c7492650677f7b55', active: true, layout: 14, dimensions: "7px" })))))));
|
|
122
|
+
}
|
|
123
|
+
disconnectedCallback() {
|
|
124
|
+
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.unregister(this);
|
|
125
|
+
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.unregister(this);
|
|
126
|
+
}
|
|
127
|
+
static get is() { return "kup-file-upload"; }
|
|
128
|
+
static get encapsulation() { return "shadow"; }
|
|
129
|
+
static get originalStyleUrls() {
|
|
130
|
+
return {
|
|
131
|
+
"$": ["kup-file-upload.scss"]
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
static get styleUrls() {
|
|
135
|
+
return {
|
|
136
|
+
"$": ["kup-file-upload.css"]
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
static get properties() {
|
|
140
|
+
return {
|
|
141
|
+
"customStyle": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "string",
|
|
146
|
+
"resolved": "string",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [{
|
|
153
|
+
"name": "default",
|
|
154
|
+
"text": "\"\""
|
|
155
|
+
}, {
|
|
156
|
+
"name": "see",
|
|
157
|
+
"text": "https://smeup.github.io/ketchup/#/customization"
|
|
158
|
+
}],
|
|
159
|
+
"text": "Custom style of the component."
|
|
160
|
+
},
|
|
161
|
+
"attribute": "custom-style",
|
|
162
|
+
"reflect": false,
|
|
163
|
+
"defaultValue": "''"
|
|
164
|
+
},
|
|
165
|
+
"data": {
|
|
166
|
+
"type": "any",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "any",
|
|
170
|
+
"resolved": "any",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [{
|
|
177
|
+
"name": "default",
|
|
178
|
+
"text": "null"
|
|
179
|
+
}],
|
|
180
|
+
"text": "Actual data of the input field."
|
|
181
|
+
},
|
|
182
|
+
"attribute": "data",
|
|
183
|
+
"reflect": false,
|
|
184
|
+
"defaultValue": "null"
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
static get states() {
|
|
189
|
+
return {
|
|
190
|
+
"inputRef": {},
|
|
191
|
+
"files": {},
|
|
192
|
+
"uploadSuccess": {},
|
|
193
|
+
"showSpinner": {}
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
static get events() {
|
|
197
|
+
return [{
|
|
198
|
+
"method": "kupReady",
|
|
199
|
+
"name": "kup-file-upload-ready",
|
|
200
|
+
"bubbles": true,
|
|
201
|
+
"cancelable": false,
|
|
202
|
+
"composed": true,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "When component load is complete"
|
|
206
|
+
},
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "KupEventPayload",
|
|
209
|
+
"resolved": "KupEventPayload",
|
|
210
|
+
"references": {
|
|
211
|
+
"KupEventPayload": {
|
|
212
|
+
"location": "import",
|
|
213
|
+
"path": "../../types/GenericTypes",
|
|
214
|
+
"id": "src/types/GenericTypes.ts::KupEventPayload"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
"method": "kupUpload",
|
|
220
|
+
"name": "kup-file-upload-upload",
|
|
221
|
+
"bubbles": true,
|
|
222
|
+
"cancelable": false,
|
|
223
|
+
"composed": true,
|
|
224
|
+
"docs": {
|
|
225
|
+
"tags": [],
|
|
226
|
+
"text": ""
|
|
227
|
+
},
|
|
228
|
+
"complexType": {
|
|
229
|
+
"original": "KupFileUploadEventPayload",
|
|
230
|
+
"resolved": "KupFileUploadEventPayload",
|
|
231
|
+
"references": {
|
|
232
|
+
"KupFileUploadEventPayload": {
|
|
233
|
+
"location": "import",
|
|
234
|
+
"path": "./kup-file-upload-declarations",
|
|
235
|
+
"id": "src/components/kup-file-upload/kup-file-upload-declarations.ts::KupFileUploadEventPayload"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}];
|
|
240
|
+
}
|
|
241
|
+
static get methods() {
|
|
242
|
+
return {
|
|
243
|
+
"getProps": {
|
|
244
|
+
"complexType": {
|
|
245
|
+
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
246
|
+
"parameters": [{
|
|
247
|
+
"name": "descriptions",
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"docs": "- When provided and true, the result will be the list of props with their description."
|
|
250
|
+
}],
|
|
251
|
+
"references": {
|
|
252
|
+
"Promise": {
|
|
253
|
+
"location": "global",
|
|
254
|
+
"id": "global::Promise"
|
|
255
|
+
},
|
|
256
|
+
"GenericObject": {
|
|
257
|
+
"location": "import",
|
|
258
|
+
"path": "../../types/GenericTypes",
|
|
259
|
+
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"return": "Promise<GenericObject>"
|
|
263
|
+
},
|
|
264
|
+
"docs": {
|
|
265
|
+
"text": "Used to retrieve component's props values.",
|
|
266
|
+
"tags": [{
|
|
267
|
+
"name": "param",
|
|
268
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
269
|
+
}, {
|
|
270
|
+
"name": "returns",
|
|
271
|
+
"text": "List of props as object, each key will be a prop."
|
|
272
|
+
}]
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"refresh": {
|
|
276
|
+
"complexType": {
|
|
277
|
+
"signature": "() => Promise<void>",
|
|
278
|
+
"parameters": [],
|
|
279
|
+
"references": {
|
|
280
|
+
"Promise": {
|
|
281
|
+
"location": "global",
|
|
282
|
+
"id": "global::Promise"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"return": "Promise<void>"
|
|
286
|
+
},
|
|
287
|
+
"docs": {
|
|
288
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
289
|
+
"tags": []
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"setProps": {
|
|
293
|
+
"complexType": {
|
|
294
|
+
"signature": "(props: GenericObject) => Promise<void>",
|
|
295
|
+
"parameters": [{
|
|
296
|
+
"name": "props",
|
|
297
|
+
"type": "GenericObject",
|
|
298
|
+
"docs": "- Object containing props that will be set to the component."
|
|
299
|
+
}],
|
|
300
|
+
"references": {
|
|
301
|
+
"Promise": {
|
|
302
|
+
"location": "global",
|
|
303
|
+
"id": "global::Promise"
|
|
304
|
+
},
|
|
305
|
+
"GenericObject": {
|
|
306
|
+
"location": "import",
|
|
307
|
+
"path": "../../types/GenericTypes",
|
|
308
|
+
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"return": "Promise<void>"
|
|
312
|
+
},
|
|
313
|
+
"docs": {
|
|
314
|
+
"text": "Sets the props to the component.",
|
|
315
|
+
"tags": [{
|
|
316
|
+
"name": "param",
|
|
317
|
+
"text": "props - Object containing props that will be set to the component."
|
|
318
|
+
}]
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"setSuccess": {
|
|
322
|
+
"complexType": {
|
|
323
|
+
"signature": "(success: boolean) => Promise<void>",
|
|
324
|
+
"parameters": [{
|
|
325
|
+
"name": "success",
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"docs": "- Boolean to set if upload has been successfull."
|
|
328
|
+
}],
|
|
329
|
+
"references": {
|
|
330
|
+
"Promise": {
|
|
331
|
+
"location": "global",
|
|
332
|
+
"id": "global::Promise"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"return": "Promise<void>"
|
|
336
|
+
},
|
|
337
|
+
"docs": {
|
|
338
|
+
"text": "Sets upload has been successfull to show success message.",
|
|
339
|
+
"tags": [{
|
|
340
|
+
"name": "param",
|
|
341
|
+
"text": "success - Boolean to set if upload has been successfull."
|
|
342
|
+
}]
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"setLoading": {
|
|
346
|
+
"complexType": {
|
|
347
|
+
"signature": "(loading: boolean) => Promise<void>",
|
|
348
|
+
"parameters": [{
|
|
349
|
+
"name": "loading",
|
|
350
|
+
"type": "boolean",
|
|
351
|
+
"docs": "- Boolean to set if is loading."
|
|
352
|
+
}],
|
|
353
|
+
"references": {
|
|
354
|
+
"Promise": {
|
|
355
|
+
"location": "global",
|
|
356
|
+
"id": "global::Promise"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"return": "Promise<void>"
|
|
360
|
+
},
|
|
361
|
+
"docs": {
|
|
362
|
+
"text": "Sets to show spinner during upload.",
|
|
363
|
+
"tags": [{
|
|
364
|
+
"name": "param",
|
|
365
|
+
"text": "loading - Boolean to set if is loading."
|
|
366
|
+
}]
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
static get elementRef() { return "rootElement"; }
|
|
372
|
+
static get watchers() {
|
|
373
|
+
return [{
|
|
374
|
+
"propName": "data",
|
|
375
|
+
"methodName": "onDataChanged"
|
|
376
|
+
}];
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
_KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakMap(), _KupFileUpload_instances = new WeakSet(), _KupFileUpload_handleClick = function _KupFileUpload_handleClick() {
|
|
380
|
+
this.inputRef.click();
|
|
381
|
+
}, _KupFileUpload_handleFileChange = function _KupFileUpload_handleFileChange(event) {
|
|
382
|
+
this.uploadSuccess = false;
|
|
383
|
+
const newFiles = Array.from(event.target.files);
|
|
384
|
+
this.files = [...this.files, ...newFiles];
|
|
385
|
+
}, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
|
|
386
|
+
this.files = [
|
|
387
|
+
...this.files.splice(0, index),
|
|
388
|
+
...this.files.splice(index + 1),
|
|
389
|
+
];
|
|
390
|
+
}, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
|
|
391
|
+
event.preventDefault();
|
|
392
|
+
const droppedFiles = event.dataTransfer.files;
|
|
393
|
+
if (droppedFiles.length > 0) {
|
|
394
|
+
const newFiles = Array.from(droppedFiles);
|
|
395
|
+
this.files = [...this.files, ...newFiles];
|
|
396
|
+
}
|
|
397
|
+
}, _KupFileUpload_handleCancel = function _KupFileUpload_handleCancel() {
|
|
398
|
+
this.files = [];
|
|
399
|
+
}, _KupFileUpload_getPreview = function _KupFileUpload_getPreview(file) {
|
|
400
|
+
const previewIcon = __classPrivateFieldGet(this, _KupFileUpload_previewMap, "f").get(file.type);
|
|
401
|
+
if (!previewIcon) {
|
|
402
|
+
if (/^image\/.*/g.test(file.type)) {
|
|
403
|
+
return URL.createObjectURL(file);
|
|
404
|
+
}
|
|
405
|
+
if (/^video\/.*/g.test(file.type)) {
|
|
406
|
+
return 'video';
|
|
407
|
+
}
|
|
408
|
+
return 'file';
|
|
409
|
+
}
|
|
410
|
+
return previewIcon;
|
|
411
|
+
}, _KupFileUpload_trimFileName = function _KupFileUpload_trimFileName(fileName) {
|
|
412
|
+
return (fileName === null || fileName === void 0 ? void 0 : fileName.length) > 20
|
|
413
|
+
? fileName.slice(0, 9) + '...' + fileName.slice(-10)
|
|
414
|
+
: fileName;
|
|
415
|
+
}, _KupFileUpload_uploadClick = function _KupFileUpload_uploadClick(e) {
|
|
416
|
+
e.stopPropagation();
|
|
417
|
+
this.kupUpload.emit({
|
|
418
|
+
comp: this,
|
|
419
|
+
id: this.rootElement.id,
|
|
420
|
+
files: this.files,
|
|
421
|
+
});
|
|
422
|
+
this.setLoading(true);
|
|
423
|
+
};
|
|
@@ -408,7 +408,7 @@ export class KupForm {
|
|
|
408
408
|
render() {
|
|
409
409
|
let formContent = null;
|
|
410
410
|
if (this.data.rows.length === 0) {
|
|
411
|
-
formContent = (h("p", { key: '
|
|
411
|
+
formContent = (h("p", { key: 'f749de74f0497b4be1fb554de9e3c9cb1464f16d' }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
|
|
412
412
|
}
|
|
413
413
|
else {
|
|
414
414
|
const rows = this.data.rows;
|
|
@@ -419,7 +419,7 @@ export class KupForm {
|
|
|
419
419
|
formContent.push(this.renderRow(rows[cnt++]));
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
return (h(Host, { key: '
|
|
422
|
+
return (h(Host, { key: 'f32e3c7318dd06b37dda2c66fc35188671fd5c2b' }, h("style", { key: 'bda0f827c81efc66666670b3da38b699921855cf' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '07ba4ba3f36154ee5457b340993f3fd54b202b30', id: componentWrapperId }, formContent)));
|
|
423
423
|
}
|
|
424
424
|
disconnectedCallback() {
|
|
425
425
|
this.kupManager.language.unregister(this);
|
|
@@ -69,7 +69,7 @@ export class KupHTM {
|
|
|
69
69
|
render() {
|
|
70
70
|
var _a;
|
|
71
71
|
const isLink = __classPrivateFieldGet(this, _KupHTM_instances, "m", _KupHTM_isObjectCompatibleWithHTM).call(this, (_a = this === null || this === void 0 ? void 0 : this.data) === null || _a === void 0 ? void 0 : _a.obj);
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '128d8986f162aa072d5b81db7f3f070115b19fa0' }, h("style", { key: 'aa84ccbba625c205995fddf63dd0af6da98c1fc5' }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '800b7ab6281db49fefe696b606eef763c7314d4d', id: componentWrapperId }, h("div", { key: '56e9a84d1ad20f5717d5192f1181e131208757e3', class: `kup-htm ${isLink ? 'is-link' : ''}` }, isLink ? (h(Fragment, null, h("a", { href: this.data.value, target: "_blank", rel: "noopener noreferrer" }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").language.translate(KupLanguageGeneric.OPEN_IN_NEW_TAB)), h("iframe", { src: this.data.value, frameBorder: "0" }))) : (h("div", { innerHTML: this.data.value }))))));
|
|
73
73
|
}
|
|
74
74
|
disconnectedCallback() {
|
|
75
75
|
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.unregister(this);
|
|
@@ -204,14 +204,14 @@ export class KupImageList {
|
|
|
204
204
|
}
|
|
205
205
|
const imlClass = 'image-list' +
|
|
206
206
|
(this.showFullDescription ? ' full-description' : '');
|
|
207
|
-
return (h(Host, { key: '
|
|
207
|
+
return (h(Host, { key: '35d589835d3ca78cf53bf059854faeea30efbc62' }, h("style", { key: '532694ef590fd4cb34182b21bef85477a44cd848' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'bc337ab92bfc3c021aa218693cfb5d329b1650a3', id: componentWrapperId, ref: (el) => {
|
|
208
208
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
209
|
-
} }, h("div", { key: '
|
|
209
|
+
} }, h("div", { key: 'd5040fd4cfcc78cc1604d8f34979379e2dfc003b', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
210
210
|
? 'navigation-bar__wrapper--active'
|
|
211
211
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
212
212
|
this.navigationBarToggled =
|
|
213
213
|
!this.navigationBarToggled;
|
|
214
|
-
} }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, 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: '
|
|
214
|
+
} }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, 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: '296dbe1d4afbcf96e9a2465757051944a132ba96', class: imlClass, style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
215
215
|
}
|
|
216
216
|
disconnectedCallback() {
|
|
217
217
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|