@sme.up/ketchup 10.3.6 → 10.3.8
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-e5ff9c98.js → f-cell-9a77e09a.js} +24 -19
- package/dist/cjs/{f-chip-f35c1b42.js → f-chip-f1b14141.js} +1 -1
- package/dist/cjs/{f-object-field-04065abd.js → f-object-field-7c1ea180.js} +2 -2
- package/dist/cjs/{f-paginator-utils-3ada5c71.js → f-paginator-utils-49cf707b.js} +9 -7
- package/dist/cjs/{f-text-field-0eda27cd.js → f-text-field-f5b2163a.js} +2 -5
- 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_30.cjs.entry.js +229 -106
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +15 -8
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +37 -19
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-0b79fb90.js → kup-data-table-helper-63e5d7a2.js} +8 -4
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +48 -6
- 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 +26 -26
- 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-input-panel.cjs.entry.js +169 -29
- 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-5cdad0f5.js → kup-manager-15f30f03.js} +7 -11
- 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 +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/echart.js +343 -169
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -2
- package/dist/collection/components/kup-calendar/kup-calendar.js +8 -4
- package/dist/collection/components/kup-chip/kup-chip-declarations.js +6 -1
- package/dist/collection/components/kup-chip/kup-chip.js +57 -57
- package/dist/collection/components/kup-combobox/kup-combobox.js +4 -2
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +5 -1
- package/dist/collection/components/kup-data-table/kup-data-table.css +21 -4
- package/dist/collection/components/kup-data-table/kup-data-table.js +90 -23
- package/dist/collection/components/kup-echart/kup-echart.js +47 -5
- package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +3 -1
- package/dist/collection/components/kup-file-upload/kup-file-upload.css +13 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +215 -25
- 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 +183 -23
- 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/custom-task-list-table.js +30 -12
- 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.css +1 -0
- 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 +2 -2
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +13 -7
- package/dist/collection/f-components/f-chip/f-chip.js +1 -1
- package/dist/collection/f-components/f-label/f-label.js +4 -7
- package/dist/collection/f-components/f-paginator/f-paginator.js +1 -1
- package/dist/collection/f-components/f-radio/f-radio.js +3 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -4
- package/dist/collection/utils/cell-utils.js +2 -7
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- 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 +15 -8
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- 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-custom-task-list-table.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- 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 +2 -2
- 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 +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- 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 +3 -3
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +167 -27
- package/dist/components/kup-lazy.js +13 -13
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +7 -7
- package/dist/components/kup-nav-bar.js +3 -3
- package/dist/components/kup-numeric-picker.js +3 -3
- package/dist/components/kup-object-field.js +3 -3
- package/dist/components/kup-pdf.js +3 -3
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +18 -18
- package/dist/components/kup-probe.js +3 -3
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +3 -3
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +3 -3
- 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 +3 -3
- package/dist/components/kup-typography-list.js +3 -3
- package/dist/components/kup-typography.js +4 -4
- package/dist/components/kup-vertical-scroll.js +1 -1
- package/dist/components/{p-ae3013bd.js → p-0886650d.js} +2 -2
- package/dist/components/{p-daa07bb7.js → p-168b2e98.js} +2 -2
- package/dist/components/{p-5e31c839.js → p-46440124.js} +2 -2
- package/dist/components/{p-af0a6cfe.js → p-47eafd24.js} +2 -2
- package/dist/components/{p-33cf89e0.js → p-57069e5c.js} +1 -1
- package/dist/components/{p-c061deb1.js → p-5aea1707.js} +279 -135
- package/dist/components/{p-28774fba.js → p-73b82fab.js} +4 -4
- package/dist/components/{p-5db0bb55.js → p-75cc2a0e.js} +4 -4
- package/dist/components/{p-57a120a5.js → p-78086e86.js} +1 -1
- package/dist/components/{p-46ec5845.js → p-7b80651f.js} +1 -1
- package/dist/components/{p-34ed7a73.js → p-7fa7072d.js} +2 -2
- package/dist/components/{p-edac29ad.js → p-91cbfbb1.js} +2 -2
- package/dist/components/{p-b87bd975.js → p-96d517a7.js} +5 -5
- package/dist/components/{p-5579a90c.js → p-a52b0e92.js} +30 -12
- package/dist/components/{p-394a36af.js → p-bba3ee8c.js} +3 -3
- package/dist/components/{p-b45eb398.js → p-d5573b9a.js} +14 -14
- package/dist/components/{p-28f24feb.js → p-dbfe7218.js} +16 -16
- package/dist/components/{p-398198d3.js → p-e74c4841.js} +49 -7
- package/dist/components/{p-7aa9d49d.js → p-f0de2fa5.js} +8 -8
- package/dist/components/{p-d3a8c2ba.js → p-f836c3ed.js} +2 -2
- package/dist/components/{p-df77b97b.js → p-fbaf1165.js} +7 -11
- package/dist/esm/{f-cell-d72f5a9c.js → f-cell-0a43dfd3.js} +24 -19
- package/dist/esm/{f-chip-663db488.js → f-chip-d5f27ee2.js} +1 -1
- package/dist/esm/{f-object-field-afe7604f.js → f-object-field-6f759bf9.js} +2 -2
- package/dist/esm/{f-paginator-utils-b6924c55.js → f-paginator-utils-6d124369.js} +9 -7
- package/dist/esm/{f-text-field-40f1ad00.js → f-text-field-86dd8534.js} +2 -5
- 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_30.entry.js +229 -106
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +15 -8
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-custom-task-list-header_4.entry.js +37 -19
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-8f020338.js → kup-data-table-helper-7d5e4260.js} +8 -4
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +48 -6
- 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 +26 -26
- 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-input-panel.entry.js +169 -29
- package/dist/esm/kup-lazy.entry.js +12 -12
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/{kup-manager-b367be3b.js → kup-manager-2b06d829.js} +7 -11
- 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 +3 -3
- 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-b9350213.entry.js → p-00963efe.entry.js} +1 -1
- package/dist/ketchup/{p-62edfd5a.entry.js → p-045e7306.entry.js} +1 -1
- package/dist/ketchup/{p-8bc2888a.entry.js → p-0a93321f.entry.js} +1 -1
- package/dist/ketchup/{p-c0928fec.entry.js → p-1015f35b.entry.js} +1 -1
- package/dist/ketchup/{p-0666ba27.entry.js → p-179d9c32.entry.js} +2 -2
- package/dist/ketchup/{p-75deebdb.entry.js → p-17f69e68.entry.js} +1 -1
- package/dist/ketchup/{p-d49f1a0d.js → p-2bb6c663.js} +1 -1
- package/dist/ketchup/{p-ebf955a8.entry.js → p-2f626d6c.entry.js} +1 -1
- package/dist/ketchup/{p-9ff4c3e5.entry.js → p-39472246.entry.js} +1 -1
- package/dist/ketchup/{p-9c13c092.entry.js → p-3f7fec03.entry.js} +1 -1
- package/dist/ketchup/{p-26206b66.entry.js → p-425fab24.entry.js} +1 -1
- package/dist/ketchup/{p-51cc836a.js → p-43246def.js} +1 -1
- package/dist/ketchup/{p-4af4b7d3.entry.js → p-4c8480a1.entry.js} +1 -1
- package/dist/ketchup/p-4d3ae43b.entry.js +8 -0
- package/dist/ketchup/{p-941beedb.entry.js → p-4f380f49.entry.js} +1 -1
- package/dist/ketchup/p-514a0dfd.js +1 -0
- package/dist/ketchup/p-5f35bc3e.js +1 -0
- package/dist/ketchup/{p-d696e519.js → p-62b0efc0.js} +1 -1
- package/dist/ketchup/p-68929471.entry.js +1 -0
- package/dist/ketchup/{p-17b25b3d.entry.js → p-74035126.entry.js} +1 -1
- package/dist/ketchup/{p-c2531d28.entry.js → p-8a95b2a0.entry.js} +1 -1
- package/dist/ketchup/{p-ec1129bf.entry.js → p-9432bc02.entry.js} +1 -1
- package/dist/ketchup/{p-5bf264dd.entry.js → p-98fb85e5.entry.js} +1 -1
- package/dist/ketchup/p-a186678f.js +1 -0
- package/dist/ketchup/{p-4c8edfb1.entry.js → p-a301cd89.entry.js} +1 -1
- package/dist/ketchup/p-a34c1e3c.entry.js +1 -0
- package/dist/ketchup/p-b1371652.js +1 -0
- package/dist/ketchup/{p-fac09a35.entry.js → p-b1a9f499.entry.js} +1 -1
- package/dist/ketchup/{p-928adf93.entry.js → p-b5575d63.entry.js} +1 -1
- package/dist/ketchup/{p-4735c623.entry.js → p-beacc7fd.entry.js} +1 -1
- package/dist/ketchup/{p-6e6d3296.entry.js → p-bf5abe49.entry.js} +1 -1
- package/dist/ketchup/{p-b0550f15.entry.js → p-d022b77e.entry.js} +2 -2
- package/dist/ketchup/{p-32ced542.entry.js → p-d83f2153.entry.js} +1 -1
- package/dist/ketchup/{p-26a20d81.entry.js → p-e5022c5b.entry.js} +1 -1
- package/dist/ketchup/{p-def6d8b4.entry.js → p-e5f2da82.entry.js} +1 -1
- package/dist/ketchup/{p-f2bfb53c.entry.js → p-e6cad40c.entry.js} +1 -1
- package/dist/ketchup/{p-6b185239.entry.js → p-f9c3699f.entry.js} +1 -1
- package/dist/ketchup/p-f9d6a629.entry.js +16 -0
- package/dist/ketchup/{p-006b5782.entry.js → p-fd855732.entry.js} +1 -1
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +5 -1
- package/dist/types/components/kup-chip/kup-chip.d.ts +15 -15
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +4 -1
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -1
- package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +6 -1
- package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +38 -5
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +2 -1
- package/dist/types/components.d.ts +65 -11
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
- package/dist/types/utils/cell-utils.d.ts +3 -1
- package/package.json +4 -1
- package/dist/ketchup/p-058def11.entry.js +0 -1
- package/dist/ketchup/p-29c07479.entry.js +0 -8
- package/dist/ketchup/p-2e012afe.js +0 -1
- package/dist/ketchup/p-43bfca60.entry.js +0 -16
- package/dist/ketchup/p-8be7a37f.js +0 -1
- package/dist/ketchup/p-b39c7a22.js +0 -1
- package/dist/ketchup/p-c109ce22.js +0 -1
- package/dist/ketchup/p-eb771c1b.entry.js +0 -1
|
@@ -6,7 +6,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
7
|
};
|
|
8
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";
|
|
9
|
+
import { forceUpdate, Host, h, Fragment, } from "@stencil/core";
|
|
10
10
|
import { kupManagerInstance } from "../../managers/kup-manager/kup-manager";
|
|
11
11
|
import { getProps, setProps } from "../../utils/utils";
|
|
12
12
|
import { KupFileUploadProps, } from "./kup-file-upload-declarations";
|
|
@@ -38,18 +38,42 @@ export class KupFileUpload {
|
|
|
38
38
|
],
|
|
39
39
|
]));
|
|
40
40
|
this.customStyle = '';
|
|
41
|
-
this.
|
|
41
|
+
this.pathString = null;
|
|
42
|
+
this.FupMul = 'false';
|
|
43
|
+
this.FupAut = 'false';
|
|
44
|
+
this.FupDir = null;
|
|
45
|
+
this.FupAty = null;
|
|
46
|
+
this.error = undefined;
|
|
42
47
|
this.inputRef = undefined;
|
|
43
|
-
this.
|
|
48
|
+
this.tempFiles = [];
|
|
49
|
+
this.pathFiles = [];
|
|
44
50
|
this.uploadSuccess = false;
|
|
45
51
|
this.showSpinner = false;
|
|
52
|
+
this.multiUpload = false;
|
|
53
|
+
this.autoUpload = false;
|
|
54
|
+
this.acceptedFiles = null;
|
|
46
55
|
}
|
|
47
56
|
//#endregion
|
|
48
57
|
//#region WATCHERS
|
|
49
58
|
/*-------------------------------------------------*/
|
|
50
59
|
/* W a t c h e r s */
|
|
51
60
|
/*-------------------------------------------------*/
|
|
52
|
-
onDataChanged() {
|
|
61
|
+
onDataChanged() {
|
|
62
|
+
var _a;
|
|
63
|
+
this.uploadSuccess = false;
|
|
64
|
+
__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
|
|
65
|
+
this.pathFiles = ((_a = this.pathString) === null || _a === void 0 ? void 0 : _a.split(';')) || [];
|
|
66
|
+
}
|
|
67
|
+
onFupMulChanged() {
|
|
68
|
+
this.multiUpload = this.FupMul === 'true';
|
|
69
|
+
}
|
|
70
|
+
onFupAutChanged() {
|
|
71
|
+
this.autoUpload = this.FupAut === 'true';
|
|
72
|
+
}
|
|
73
|
+
onFupFupAtyChanged() {
|
|
74
|
+
var _a;
|
|
75
|
+
this.acceptedFiles = (_a = this.FupAty) === null || _a === void 0 ? void 0 : _a.split('|').map((ext) => `.${ext}`);
|
|
76
|
+
}
|
|
53
77
|
//#endregion
|
|
54
78
|
//#region PUBLIC METHODS
|
|
55
79
|
/*-------------------------------------------------*/
|
|
@@ -80,11 +104,19 @@ export class KupFileUpload {
|
|
|
80
104
|
* Sets upload has been successfull to show success message.
|
|
81
105
|
* @param {boolean} success - Boolean to set if upload has been successfull.
|
|
82
106
|
*/
|
|
83
|
-
async setSuccess(success) {
|
|
107
|
+
async setSuccess(success, pathFiles) {
|
|
84
108
|
this.setLoading(false);
|
|
85
|
-
if (success) {
|
|
109
|
+
if (success && pathFiles) {
|
|
86
110
|
__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
|
|
87
111
|
this.uploadSuccess = success;
|
|
112
|
+
this.pathFiles = this.multiUpload
|
|
113
|
+
? [...this.pathFiles, ...pathFiles.split(';')]
|
|
114
|
+
: [pathFiles.split(';')[0]];
|
|
115
|
+
this.kupChange.emit({
|
|
116
|
+
comp: this,
|
|
117
|
+
id: this.rootElement.id,
|
|
118
|
+
value: this.pathFiles.join(';'),
|
|
119
|
+
});
|
|
88
120
|
}
|
|
89
121
|
}
|
|
90
122
|
/**
|
|
@@ -100,9 +132,13 @@ export class KupFileUpload {
|
|
|
100
132
|
/* L i f e c y c l e H o o k s */
|
|
101
133
|
/*-------------------------------------------------*/
|
|
102
134
|
componentWillLoad() {
|
|
135
|
+
var _a;
|
|
103
136
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logLoad(this, false);
|
|
104
137
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.register(this);
|
|
105
138
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.register(this);
|
|
139
|
+
this.multiUpload = this.FupMul === 'true';
|
|
140
|
+
this.autoUpload = this.FupAut === 'true';
|
|
141
|
+
this.acceptedFiles = (_a = this.FupAty) === null || _a === void 0 ? void 0 : _a.split('|').map((ext) => `.${ext}`);
|
|
106
142
|
}
|
|
107
143
|
componentDidLoad() {
|
|
108
144
|
this.kupReady.emit({ comp: this, id: this.rootElement.id });
|
|
@@ -115,10 +151,11 @@ export class KupFileUpload {
|
|
|
115
151
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logRender(this, true);
|
|
116
152
|
}
|
|
117
153
|
render() {
|
|
118
|
-
|
|
154
|
+
var _a;
|
|
155
|
+
return (h(Host, { key: 'f08391eac6f841cb117304af6a09ae63ff92549b' }, h("style", { key: 'acc0df4a07fdd65f35182769077763a9643f34b0' }, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '11e1fb63a9949c804f9b41236c218b80eef965a1', id: componentWrapperId }, h("div", { key: '8cf8270d6e066bc361feda602a82ac97657853a4', class: {
|
|
119
156
|
'file-upload': true,
|
|
120
157
|
'file-upload-spinner': this.showSpinner,
|
|
121
|
-
}, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragOver: (event) => event.preventDefault() }, h("input", { key: '
|
|
158
|
+
}, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragOver: (event) => event.preventDefault() }, h("input", { key: 'a34748d05872c863c0f96ef5a8e4fa36f549f1ae', type: "file", ref: (el) => (this.inputRef = el), onChange: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileChange).bind(this), multiple: this.multiUpload, accept: (_a = this.acceptedFiles) === null || _a === void 0 ? void 0 : _a.join(','), hidden: true }), h("div", { key: 'cc13058c673bc816ff51e8278b187c87a1ef4467', class: "file-upload__buttons" }, h(FButton, { key: 'b54e4ff41658b67e1700b2d4c06885ea37ae3004', icon: "upload", label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.CHOOSE), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleClick).bind(this) }), !this.autoUpload && (h(Fragment, { key: 'd2df1fc3e94dc20573226456a5131599140817d3' }, h(FButton, { key: '6b05c656c460218841c85e4f07dde8965f47c36e', icon: "save", disabled: !this.tempFiles.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: '70ac6c463966d7e0fd2f69a59a648334587d46ef', icon: "clear", disabled: !this.tempFiles.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.error && (h("div", { key: '90c46db7caa99ba8460b0b925135ef1c9223e3e8', class: "file-upload__error" }, h("span", { key: '5a50f58e4d6e6cd87ac3074d48c849fc54716de5', class: "mdc-error-message" }, this.error))), this.uploadSuccess ? (h("span", null, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageUpload.SUCCESS))) : (h("div", { class: "file-upload__list" }, this.tempFiles.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), placeholderResource: "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.pathFiles.length ? (h("div", { class: "file-upload__list" }, this.pathFiles.map((path, i) => (h("span", { class: "file-upload__list__item" }, h("span", null, i + 1, ". ", path)))))) : null, this.showSpinner && (h("div", { key: '4cf819053c80ffaff9225fa351e9c1c3f37791b6', class: "file-upload__spinner-container" }, h("kup-spinner", { key: '3e1c322698976c8243fd6e9aefc678727056f8ea', active: true, layout: 14, dimensions: "7px" })))))));
|
|
122
159
|
}
|
|
123
160
|
disconnectedCallback() {
|
|
124
161
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.unregister(this);
|
|
@@ -162,12 +199,96 @@ export class KupFileUpload {
|
|
|
162
199
|
"reflect": false,
|
|
163
200
|
"defaultValue": "''"
|
|
164
201
|
},
|
|
165
|
-
"
|
|
166
|
-
"type": "
|
|
202
|
+
"pathString": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"mutable": false,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "string",
|
|
207
|
+
"resolved": "string",
|
|
208
|
+
"references": {}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [{
|
|
214
|
+
"name": "default",
|
|
215
|
+
"text": "null"
|
|
216
|
+
}],
|
|
217
|
+
"text": "The initial filepaths"
|
|
218
|
+
},
|
|
219
|
+
"attribute": "path-string",
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"defaultValue": "null"
|
|
222
|
+
},
|
|
223
|
+
"FupMul": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"mutable": false,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "string",
|
|
228
|
+
"resolved": "string",
|
|
229
|
+
"references": {}
|
|
230
|
+
},
|
|
231
|
+
"required": false,
|
|
232
|
+
"optional": false,
|
|
233
|
+
"docs": {
|
|
234
|
+
"tags": [{
|
|
235
|
+
"name": "default",
|
|
236
|
+
"text": "'false'"
|
|
237
|
+
}],
|
|
238
|
+
"text": "Sets the multiple upload"
|
|
239
|
+
},
|
|
240
|
+
"attribute": "fup-mul",
|
|
241
|
+
"reflect": false,
|
|
242
|
+
"defaultValue": "'false'"
|
|
243
|
+
},
|
|
244
|
+
"FupAut": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "string",
|
|
249
|
+
"resolved": "string",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [{
|
|
256
|
+
"name": "default",
|
|
257
|
+
"text": "'false'"
|
|
258
|
+
}],
|
|
259
|
+
"text": "Sets the auto upload of select file"
|
|
260
|
+
},
|
|
261
|
+
"attribute": "fup-aut",
|
|
262
|
+
"reflect": false,
|
|
263
|
+
"defaultValue": "'false'"
|
|
264
|
+
},
|
|
265
|
+
"FupDir": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"mutable": false,
|
|
268
|
+
"complexType": {
|
|
269
|
+
"original": "string",
|
|
270
|
+
"resolved": "string",
|
|
271
|
+
"references": {}
|
|
272
|
+
},
|
|
273
|
+
"required": false,
|
|
274
|
+
"optional": false,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [{
|
|
277
|
+
"name": "default",
|
|
278
|
+
"text": "null"
|
|
279
|
+
}],
|
|
280
|
+
"text": "Sets the custom dir to upload files"
|
|
281
|
+
},
|
|
282
|
+
"attribute": "fup-dir",
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"defaultValue": "null"
|
|
285
|
+
},
|
|
286
|
+
"FupAty": {
|
|
287
|
+
"type": "string",
|
|
167
288
|
"mutable": false,
|
|
168
289
|
"complexType": {
|
|
169
|
-
"original": "
|
|
170
|
-
"resolved": "
|
|
290
|
+
"original": "string",
|
|
291
|
+
"resolved": "string",
|
|
171
292
|
"references": {}
|
|
172
293
|
},
|
|
173
294
|
"required": false,
|
|
@@ -177,20 +298,45 @@ export class KupFileUpload {
|
|
|
177
298
|
"name": "default",
|
|
178
299
|
"text": "null"
|
|
179
300
|
}],
|
|
180
|
-
"text": "
|
|
301
|
+
"text": "Sets the accepted extensions"
|
|
181
302
|
},
|
|
182
|
-
"attribute": "
|
|
303
|
+
"attribute": "fup-aty",
|
|
183
304
|
"reflect": false,
|
|
184
305
|
"defaultValue": "null"
|
|
306
|
+
},
|
|
307
|
+
"error": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "string",
|
|
312
|
+
"resolved": "string",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": false,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [{
|
|
319
|
+
"name": "default",
|
|
320
|
+
"text": "'false'"
|
|
321
|
+
}],
|
|
322
|
+
"text": "Error string to render in component"
|
|
323
|
+
},
|
|
324
|
+
"attribute": "error",
|
|
325
|
+
"reflect": false,
|
|
326
|
+
"defaultValue": "undefined"
|
|
185
327
|
}
|
|
186
328
|
};
|
|
187
329
|
}
|
|
188
330
|
static get states() {
|
|
189
331
|
return {
|
|
190
332
|
"inputRef": {},
|
|
191
|
-
"
|
|
333
|
+
"tempFiles": {},
|
|
334
|
+
"pathFiles": {},
|
|
192
335
|
"uploadSuccess": {},
|
|
193
|
-
"showSpinner": {}
|
|
336
|
+
"showSpinner": {},
|
|
337
|
+
"multiUpload": {},
|
|
338
|
+
"autoUpload": {},
|
|
339
|
+
"acceptedFiles": {}
|
|
194
340
|
};
|
|
195
341
|
}
|
|
196
342
|
static get events() {
|
|
@@ -236,6 +382,27 @@ export class KupFileUpload {
|
|
|
236
382
|
}
|
|
237
383
|
}
|
|
238
384
|
}
|
|
385
|
+
}, {
|
|
386
|
+
"method": "kupChange",
|
|
387
|
+
"name": "kup-file-upload-change",
|
|
388
|
+
"bubbles": true,
|
|
389
|
+
"cancelable": false,
|
|
390
|
+
"composed": true,
|
|
391
|
+
"docs": {
|
|
392
|
+
"tags": [],
|
|
393
|
+
"text": ""
|
|
394
|
+
},
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "KupFileUploadChangeEventPayload",
|
|
397
|
+
"resolved": "KupFileUploadChangeEventPayload",
|
|
398
|
+
"references": {
|
|
399
|
+
"KupFileUploadChangeEventPayload": {
|
|
400
|
+
"location": "import",
|
|
401
|
+
"path": "./kup-file-upload-declarations",
|
|
402
|
+
"id": "src/components/kup-file-upload/kup-file-upload-declarations.ts::KupFileUploadChangeEventPayload"
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
239
406
|
}];
|
|
240
407
|
}
|
|
241
408
|
static get methods() {
|
|
@@ -320,11 +487,15 @@ export class KupFileUpload {
|
|
|
320
487
|
},
|
|
321
488
|
"setSuccess": {
|
|
322
489
|
"complexType": {
|
|
323
|
-
"signature": "(success: boolean) => Promise<void>",
|
|
490
|
+
"signature": "(success: boolean, pathFiles: string) => Promise<void>",
|
|
324
491
|
"parameters": [{
|
|
325
492
|
"name": "success",
|
|
326
493
|
"type": "boolean",
|
|
327
494
|
"docs": "- Boolean to set if upload has been successfull."
|
|
495
|
+
}, {
|
|
496
|
+
"name": "pathFiles",
|
|
497
|
+
"type": "string",
|
|
498
|
+
"docs": ""
|
|
328
499
|
}],
|
|
329
500
|
"references": {
|
|
330
501
|
"Promise": {
|
|
@@ -371,8 +542,17 @@ export class KupFileUpload {
|
|
|
371
542
|
static get elementRef() { return "rootElement"; }
|
|
372
543
|
static get watchers() {
|
|
373
544
|
return [{
|
|
374
|
-
"propName": "
|
|
545
|
+
"propName": "pathString",
|
|
375
546
|
"methodName": "onDataChanged"
|
|
547
|
+
}, {
|
|
548
|
+
"propName": "FupMul",
|
|
549
|
+
"methodName": "onFupMulChanged"
|
|
550
|
+
}, {
|
|
551
|
+
"propName": "FupAut",
|
|
552
|
+
"methodName": "onFupAutChanged"
|
|
553
|
+
}, {
|
|
554
|
+
"propName": "FupAty",
|
|
555
|
+
"methodName": "onFupFupAtyChanged"
|
|
376
556
|
}];
|
|
377
557
|
}
|
|
378
558
|
}
|
|
@@ -380,12 +560,22 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
|
|
|
380
560
|
this.inputRef.click();
|
|
381
561
|
}, _KupFileUpload_handleFileChange = function _KupFileUpload_handleFileChange(event) {
|
|
382
562
|
this.uploadSuccess = false;
|
|
563
|
+
this.error = '';
|
|
383
564
|
const newFiles = Array.from(event.target.files);
|
|
384
|
-
this.
|
|
565
|
+
this.tempFiles = [...this.tempFiles, ...newFiles];
|
|
566
|
+
this.inputRef.value = '';
|
|
567
|
+
if (this.autoUpload) {
|
|
568
|
+
this.kupUpload.emit({
|
|
569
|
+
comp: this,
|
|
570
|
+
id: this.rootElement.id,
|
|
571
|
+
files: this.tempFiles,
|
|
572
|
+
});
|
|
573
|
+
this.setLoading(true);
|
|
574
|
+
}
|
|
385
575
|
}, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
|
|
386
|
-
this.
|
|
387
|
-
...this.
|
|
388
|
-
...this.
|
|
576
|
+
this.tempFiles = [
|
|
577
|
+
...this.tempFiles.splice(0, index),
|
|
578
|
+
...this.tempFiles.splice(index + 1),
|
|
389
579
|
];
|
|
390
580
|
}, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
|
|
391
581
|
event.preventDefault();
|
|
@@ -393,10 +583,10 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
|
|
|
393
583
|
const droppedFiles = event.dataTransfer.files;
|
|
394
584
|
if (droppedFiles.length > 0) {
|
|
395
585
|
const newFiles = Array.from(droppedFiles);
|
|
396
|
-
this.
|
|
586
|
+
this.tempFiles = [...this.tempFiles, ...newFiles];
|
|
397
587
|
}
|
|
398
588
|
}, _KupFileUpload_handleCancel = function _KupFileUpload_handleCancel() {
|
|
399
|
-
this.
|
|
589
|
+
this.tempFiles = [];
|
|
400
590
|
}, _KupFileUpload_getPreview = function _KupFileUpload_getPreview(file) {
|
|
401
591
|
const previewIcon = __classPrivateFieldGet(this, _KupFileUpload_previewMap, "f").get(file.type);
|
|
402
592
|
if (!previewIcon) {
|
|
@@ -418,7 +608,7 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
|
|
|
418
608
|
this.kupUpload.emit({
|
|
419
609
|
comp: this,
|
|
420
610
|
id: this.rootElement.id,
|
|
421
|
-
files: this.
|
|
611
|
+
files: this.tempFiles,
|
|
422
612
|
});
|
|
423
613
|
this.setLoading(true);
|
|
424
614
|
};
|
|
@@ -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: '103de9b30f44f7958a691e5dccc8698e49ca76cf' }, 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: 'cdaa7ff6add189834cc6f570d2a7cd032d3a0b3c' }, h("style", { key: 'd9eff3af01d39df16086be74e2c893b64f861e52' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'd4dd031f9dac773296738ebfe27510be56af8e5a', 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: 'd4c059a573d252c5809a77375222a78bcdee56bc' }, h("style", { key: '46ea04367aae5ad0602ab6f84dc0cb904b14e091' }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '3d2ad3be208bd0cb850e66113155b70ace70983c', id: componentWrapperId }, h("div", { key: '075017b3ef686bfc5d6cee4035c3b053c11d67af', 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);
|
|
@@ -205,14 +205,14 @@ export class KupImageList {
|
|
|
205
205
|
}
|
|
206
206
|
const imlClass = 'image-list' +
|
|
207
207
|
(this.showFullDescription ? ' full-description' : '');
|
|
208
|
-
return (h(Host, { key: '
|
|
208
|
+
return (h(Host, { key: '4a3c80748fec9b98c9268077893643042b2c4ade' }, h("style", { key: '5fbc10ef98292d3cc1919d26cf64baa1286611e4' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '52254d30b66446960be0db63fdf486420d35a7ce', id: componentWrapperId, ref: (el) => {
|
|
209
209
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
210
|
-
} }, h("div", { key: '
|
|
210
|
+
} }, h("div", { key: '68cb3d98496d6314556ad5d777e6a67543a14ff3', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
211
211
|
? 'navigation-bar__wrapper--active'
|
|
212
212
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
213
213
|
this.navigationBarToggled =
|
|
214
214
|
!this.navigationBarToggled;
|
|
215
|
-
} }, 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), this.leadingLabel && (h("div", { key: '
|
|
215
|
+
} }, 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), this.leadingLabel && (h("div", { key: '4b808d9230730a0eb49c5eca46a8130eda1c0f51', class: "mdc-text-field__label-container" }, h("label", { key: 'c1fcdb83116da8e7591091fcb97ea6c4ecb19a27', class: "mdc-label" }, this.leadingLabel))), h("div", { key: 'f0b462e13602be5a3a8c00ffd993fd9c8b02476a', class: imlClass, style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
216
216
|
}
|
|
217
217
|
disconnectedCallback() {
|
|
218
218
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|