@sme.up/ketchup 10.3.7 → 10.3.9
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-bfafefb3.js → f-button-c084046d.js} +1 -1
- package/dist/cjs/{f-cell-5c1b2c66.js → f-cell-2e939ef8.js} +15 -14
- package/dist/cjs/{f-checkbox-aaa6d45c.js → f-checkbox-e59d6bda.js} +3 -3
- package/dist/cjs/{f-chip-b4aebf7c.js → f-chip-b0b4b0d9.js} +2 -2
- package/dist/cjs/{f-image-db10b066.js → f-image-7457eb26.js} +18 -15
- package/dist/cjs/{f-object-field-62195164.js → f-object-field-db5613ef.js} +3 -3
- package/dist/cjs/{f-paginator-utils-54bc1b31.js → f-paginator-utils-2fcf4642.js} +2 -2
- package/dist/cjs/{f-text-field-03e975ad.js → f-text-field-ee6120c5.js} +60 -3
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +527 -229
- package/dist/cjs/kup-box.cjs.entry.js +10 -10
- package/dist/cjs/kup-calendar.cjs.entry.js +12 -8
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +8 -8
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +37 -19
- package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
- package/dist/cjs/{kup-data-table-helper-72dc3004.js → kup-data-table-helper-0705294e.js} +6 -2
- 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 +3 -3
- 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 +6 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +80 -25
- package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
- package/dist/cjs/{kup-manager-bb0a1490.js → kup-manager-0ce9fd30.js} +19 -7
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-object-field.cjs.entry.js +6 -6
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +8 -4
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +5 -2
- 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-data-table/kup-data-table-helper.js +5 -1
- package/dist/collection/components/kup-data-table/kup-data-table.css +14 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +305 -128
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -8
- package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +3 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.css +9 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +135 -27
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-htm/kup-htm.css +0 -3
- package/dist/collection/components/kup-htm/kup-htm.js +4 -1
- package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +9 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +90 -16
- 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-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -4
- 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 +5 -1
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
- package/dist/collection/f-components/f-chip/f-chip.js +1 -1
- package/dist/collection/f-components/f-image/f-image.js +18 -15
- package/dist/collection/f-components/f-label/f-label.js +4 -7
- package/dist/collection/f-components/f-text-field/f-text-field.js +55 -1
- package/dist/collection/managers/kup-data/kup-data.js +4 -3
- package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
- package/dist/collection/utils/cell-utils.js +1 -1
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +2 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +57 -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 +10 -6
- 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 +7 -4
- 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 +76 -20
- 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-9c59685c.js → p-23d0f0c7.js} +2 -2
- package/dist/components/{p-0448c650.js → p-2670bfd5.js} +14 -14
- package/dist/components/{p-072ba014.js → p-5b1056e4.js} +8 -8
- package/dist/components/{p-57069e5c.js → p-767fcf91.js} +1 -1
- package/dist/components/{p-66800070.js → p-7e706919.js} +623 -252
- package/dist/components/{p-970526a0.js → p-85852162.js} +19 -7
- package/dist/components/{p-eee85021.js → p-89b9a949.js} +2 -2
- package/dist/components/{p-47eafd24.js → p-9a502c5d.js} +2 -2
- package/dist/components/{p-bba3ee8c.js → p-9a617844.js} +3 -3
- package/dist/components/{p-73b82fab.js → p-9d13f3da.js} +4 -4
- package/dist/components/{p-5579a90c.js → p-a52b0e92.js} +30 -12
- package/dist/components/{p-f836c3ed.js → p-aa882232.js} +2 -2
- package/dist/components/{p-a70b7f3e.js → p-b057cba1.js} +2 -2
- package/dist/components/{p-78086e86.js → p-bbb25c58.js} +1 -1
- package/dist/components/{p-96d517a7.js → p-bdecbc93.js} +5 -5
- package/dist/components/{p-7fa7072d.js → p-cbc6b3d5.js} +2 -2
- package/dist/components/{p-a6da9edf.js → p-cde4d6c3.js} +4 -4
- package/dist/components/{p-e8d7edaf.js → p-d9bec7c8.js} +2 -2
- package/dist/components/{p-7b80651f.js → p-dc1ce1b4.js} +1 -1
- package/dist/components/{p-a266fbc3.js → p-e72fb07b.js} +2 -2
- package/dist/components/{p-09e09e43.js → p-f9afe0c9.js} +16 -16
- package/dist/esm/{f-button-3c8f4506.js → f-button-6298565d.js} +1 -1
- package/dist/esm/{f-cell-3f9d4de0.js → f-cell-b3f0782c.js} +15 -14
- package/dist/esm/{f-checkbox-5cdd1cad.js → f-checkbox-191ec2e7.js} +3 -3
- package/dist/esm/{f-chip-28fde4c9.js → f-chip-3ed440ef.js} +2 -2
- package/dist/esm/{f-image-a2ecd7c3.js → f-image-96ea1421.js} +18 -15
- package/dist/esm/{f-object-field-24f67438.js → f-object-field-23935da4.js} +3 -3
- package/dist/esm/{f-paginator-utils-3e2a0dcd.js → f-paginator-utils-a9d5c2d3.js} +2 -2
- package/dist/esm/{f-text-field-f64cc53e.js → f-text-field-4934ff74.js} +60 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-activity-timeline.entry.js +3 -3
- package/dist/esm/kup-autocomplete_30.entry.js +527 -229
- package/dist/esm/kup-box.entry.js +10 -10
- package/dist/esm/kup-calendar.entry.js +12 -8
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +8 -8
- package/dist/esm/kup-custom-task-list-header_4.entry.js +37 -19
- package/dist/esm/kup-dashboard.entry.js +5 -5
- package/dist/esm/{kup-data-table-helper-edbee21a.js → kup-data-table-helper-de9421a0.js} +6 -2
- 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 +3 -3
- 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 +6 -3
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +80 -25
- package/dist/esm/kup-lazy.entry.js +12 -12
- package/dist/esm/kup-magic-box.entry.js +5 -5
- package/dist/esm/{kup-manager-7acd779a.js → kup-manager-5c23bae7.js} +19 -7
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-object-field.entry.js +6 -6
- 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 +4 -4
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- 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 +4 -4
- 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-d7bfb6da.entry.js → p-001755a5.entry.js} +1 -1
- package/dist/ketchup/{p-c38d19f9.js → p-02e22635.js} +1 -1
- package/dist/ketchup/p-03d049e3.js +21 -0
- package/dist/ketchup/p-0bb6bfb4.entry.js +1 -0
- package/dist/ketchup/{p-ee752492.entry.js → p-137158e4.entry.js} +1 -1
- package/dist/ketchup/{p-0f3e905b.entry.js → p-143617b6.entry.js} +1 -1
- package/dist/ketchup/{p-98865092.entry.js → p-27f26f4b.entry.js} +1 -1
- package/dist/ketchup/{p-ab5dcfce.entry.js → p-29af64ff.entry.js} +1 -1
- package/dist/ketchup/{p-5c538668.entry.js → p-33a6e698.entry.js} +1 -1
- package/dist/ketchup/{p-00e3a2c7.entry.js → p-424c2f64.entry.js} +1 -1
- package/dist/ketchup/{p-0f78bd11.entry.js → p-4632e407.entry.js} +2 -2
- package/dist/ketchup/{p-001bf9b3.entry.js → p-6741f3f6.entry.js} +1 -1
- package/dist/ketchup/p-687b7642.entry.js +8 -0
- package/dist/ketchup/{p-0a4869d8.entry.js → p-68835d71.entry.js} +1 -1
- package/dist/ketchup/{p-5cdbe34b.entry.js → p-6c1e1780.entry.js} +1 -1
- package/dist/ketchup/{p-05da127e.entry.js → p-6ce64af5.entry.js} +1 -1
- package/dist/ketchup/{p-864d384f.entry.js → p-7775e947.entry.js} +1 -1
- package/dist/ketchup/p-7d25580b.entry.js +1 -0
- package/dist/ketchup/p-95346c81.js +1 -0
- package/dist/ketchup/p-a3394095.js +1 -0
- package/dist/ketchup/{p-a5589352.entry.js → p-a76b0d93.entry.js} +1 -1
- package/dist/ketchup/{p-cb4c3ec6.entry.js → p-ae1f69c7.entry.js} +1 -1
- package/dist/ketchup/{p-92d5502a.entry.js → p-b47dc6ac.entry.js} +1 -1
- package/dist/ketchup/{p-4e8d34ad.entry.js → p-b509455c.entry.js} +1 -1
- package/dist/ketchup/{p-bbdc671b.entry.js → p-b67d94a0.entry.js} +1 -1
- package/dist/ketchup/{p-d643a6b0.entry.js → p-bc75c526.entry.js} +1 -1
- package/dist/ketchup/p-c3eca951.entry.js +16 -0
- package/dist/ketchup/{p-f446a5dd.entry.js → p-cc9d71a7.entry.js} +1 -1
- package/dist/ketchup/p-cc9db65d.js +1 -0
- package/dist/ketchup/p-cf5e1d07.js +1 -0
- package/dist/ketchup/{p-e3098793.js → p-da273b4d.js} +1 -1
- package/dist/ketchup/p-da5d5eea.js +1 -0
- package/dist/ketchup/p-dba5100a.entry.js +1 -0
- package/dist/ketchup/{p-ebcf33a3.entry.js → p-dc425c68.entry.js} +1 -1
- package/dist/ketchup/p-e18d9110.entry.js +1 -0
- package/dist/ketchup/{p-9432bc02.entry.js → p-e755042e.entry.js} +1 -1
- package/dist/ketchup/{p-91184407.entry.js → p-ec66f939.entry.js} +1 -1
- package/dist/ketchup/{p-60c3a948.entry.js → p-ece991ba.entry.js} +1 -1
- package/dist/ketchup/{p-9f9428d1.js → p-ef3112d4.js} +1 -1
- package/dist/ketchup/{p-9667a3f6.entry.js → p-f3319227.entry.js} +1 -1
- package/dist/ketchup/{p-6429a3bc.entry.js → p-f7da2ca7.entry.js} +1 -1
- package/dist/ketchup/{p-c4224227.js → p-ff735e62.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 +3 -0
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +2 -0
- package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +4 -1
- package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +11 -2
- package/dist/types/components/kup-htm/kup-htm.d.ts +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components.d.ts +33 -2
- package/dist/types/f-components/f-cell/f-cell.d.ts +5 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +3 -1
- package/dist/types/utils/cell-utils.d.ts +1 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +3 -1
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +3 -2
- package/package.json +1 -1
- package/dist/ketchup/p-003617f2.entry.js +0 -1
- package/dist/ketchup/p-216b5deb.js +0 -1
- package/dist/ketchup/p-3823781f.entry.js +0 -1
- package/dist/ketchup/p-39ab2443.entry.js +0 -1
- package/dist/ketchup/p-3cab6420.js +0 -1
- package/dist/ketchup/p-561db8b0.entry.js +0 -1
- package/dist/ketchup/p-607b56b3.entry.js +0 -8
- package/dist/ketchup/p-84a053a8.js +0 -21
- package/dist/ketchup/p-90345661.entry.js +0 -16
- package/dist/ketchup/p-b7b54a12.js +0 -1
- package/dist/ketchup/p-c00b4f52.js +0 -1
- package/dist/ketchup/p-ebcd12d5.js +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
2
|
-
import { KupComponentSizing, } from "../../types/GenericTypes";
|
|
3
|
-
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
4
|
-
import { KupDatePickerProps, } from "./kup-date-picker-declarations";
|
|
5
|
-
import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
|
|
6
|
-
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
7
|
-
import { KupDatesFormats } from "../../managers/kup-dates/kup-dates-declarations";
|
|
8
2
|
import { FTextField } from "../../f-components/f-text-field/f-text-field";
|
|
9
3
|
import { FTextFieldMDC } from "../../f-components/f-text-field/f-text-field-mdc";
|
|
4
|
+
import { KupDatesFormats } from "../../managers/kup-dates/kup-dates-declarations";
|
|
5
|
+
import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
|
|
10
6
|
import { KupDynamicPositionPlacement } from "../../managers/kup-dynamic-position/kup-dynamic-position-declarations";
|
|
11
|
-
import {
|
|
7
|
+
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
8
|
+
import { KupComponentSizing, } from "../../types/GenericTypes";
|
|
12
9
|
import { getProps } from "../../utils/utils";
|
|
10
|
+
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
11
|
+
import { KupCardFamily, } from "../kup-card/kup-card-declarations";
|
|
12
|
+
import { KupDatePickerProps, } from "./kup-date-picker-declarations";
|
|
13
13
|
export class KupDatePicker {
|
|
14
14
|
constructor() {
|
|
15
15
|
/*-------------------------------------------------*/
|
|
@@ -395,7 +395,7 @@ export class KupDatePicker {
|
|
|
395
395
|
showPreviousNextMonthDays: this.showPreviousNextMonthDays,
|
|
396
396
|
},
|
|
397
397
|
};
|
|
398
|
-
return (h(Host, { key: '
|
|
398
|
+
return (h(Host, { key: '827b64b4e81a6238bd45388c3f5234a29685ce74' }, h("style", { key: '4bb32836db6bd0e39579f52abbd5b29cef9d2bf6' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'f8549d32cf3813544c56ad90f7b6e619dd131a53', id: componentWrapperId }, h(FTextField, Object.assign({ key: 'b561786c364f4f27b5edba3746202a8a6d5301b3' }, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, maxLength: (_a = textfieldData.maxLength) !== null && _a !== void 0 ? _a : 10, size: 10, id: this.rootElement.id + '_text-field', value: this.getDateForOutput(), onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), h("div", { key: '136e15a45145ed9160a7da70ec0444ff417ec0c7', id: this.rootElement.id + '_card', class: "kup-date-picker-card" }, h("kup-card", { key: '5dd13a969e65cd4a6b4ebc9ea96019904ab7ffd6', ref: (el) => (this.pickerContainerEl = el), data: cardData, layoutFamily: KupCardFamily.BUILT_IN, sizeX: "300px", sizeY: "auto", isMenu: true, "onkup-card-click": (ev) => {
|
|
399
399
|
if (ev.detail.value != null &&
|
|
400
400
|
ev.detail.value != '')
|
|
401
401
|
this.onKupDatePickerItemClick(ev.detail.value);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export var KupFileUploadProps;
|
|
2
2
|
(function (KupFileUploadProps) {
|
|
3
3
|
KupFileUploadProps["customStyle"] = "Custom style of the component.";
|
|
4
|
+
KupFileUploadProps["error"] = "Error string to render in component";
|
|
4
5
|
KupFileUploadProps["pathString"] = "The initial filepaths.";
|
|
5
6
|
KupFileUploadProps["FupMul"] = "Sets the multiple upload.";
|
|
6
7
|
KupFileUploadProps["FupAut"] = "Sets the auto upload of select file";
|
|
8
|
+
KupFileUploadProps["FupDir"] = "Sets the custom dir to upload files";
|
|
9
|
+
KupFileUploadProps["FupAty"] = "Sets the accepted extensions";
|
|
7
10
|
})(KupFileUploadProps || (KupFileUploadProps = {}));
|
|
@@ -151,6 +151,15 @@
|
|
|
151
151
|
padding: 1em;
|
|
152
152
|
position: relative;
|
|
153
153
|
}
|
|
154
|
+
:host .file-upload__invalid {
|
|
155
|
+
border-color: var(--kup-danger-color, #d32f2f);
|
|
156
|
+
background: rgba(211, 47, 47, 0.06);
|
|
157
|
+
box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15) inset;
|
|
158
|
+
cursor: not-allowed;
|
|
159
|
+
}
|
|
160
|
+
:host .file-upload__invalid * {
|
|
161
|
+
opacity: 0.95;
|
|
162
|
+
}
|
|
154
163
|
:host .file-upload__buttons {
|
|
155
164
|
display: flex;
|
|
156
165
|
gap: 1em;
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
6
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
7
|
};
|
|
8
|
-
var _KupFileUpload_instances, _KupFileUpload_kupManager, _KupFileUpload_previewMap, _KupFileUpload_handleClick, _KupFileUpload_handleFileChange, _KupFileUpload_handleFileRemove,
|
|
8
|
+
var _KupFileUpload_instances, _KupFileUpload_kupManager, _KupFileUpload_previewMap, _KupFileUpload_handleClick, _KupFileUpload_handleFileChange, _KupFileUpload_handleDrop, _KupFileUpload_handleFileRemove, _KupFileUpload_processFiles, _KupFileUpload_handleCancel, _KupFileUpload_getPreview, _KupFileUpload_trimFileName, _KupFileUpload_uploadClick, _KupFileUpload_getUniqueFiles, _KupFileUpload_isValidDraggedItems, _KupFileUpload_areValidFiles, _KupFileUpload_isValidFile, _KupFileUpload_getFileExtension;
|
|
9
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";
|
|
@@ -42,25 +42,32 @@ export class KupFileUpload {
|
|
|
42
42
|
this.FupMul = 'false';
|
|
43
43
|
this.FupAut = 'false';
|
|
44
44
|
this.FupDir = null;
|
|
45
|
+
this.FupAty = null;
|
|
45
46
|
this.error = undefined;
|
|
46
47
|
this.inputRef = undefined;
|
|
47
48
|
this.tempFiles = [];
|
|
48
49
|
this.pathFiles = [];
|
|
49
|
-
this.uploadSuccess = false;
|
|
50
50
|
this.showSpinner = false;
|
|
51
51
|
this.multiUpload = false;
|
|
52
52
|
this.autoUpload = false;
|
|
53
|
+
this.acceptedFiles = null;
|
|
54
|
+
this.isValidDropFiles = true;
|
|
55
|
+
this.fupError = null;
|
|
53
56
|
}
|
|
54
57
|
//#endregion
|
|
55
58
|
//#region WATCHERS
|
|
56
59
|
/*-------------------------------------------------*/
|
|
57
60
|
/* W a t c h e r s */
|
|
58
61
|
/*-------------------------------------------------*/
|
|
62
|
+
onErrorChange() {
|
|
63
|
+
this.fupError = this.error;
|
|
64
|
+
}
|
|
59
65
|
onDataChanged() {
|
|
60
66
|
var _a;
|
|
61
|
-
this.
|
|
67
|
+
this.fupError = '';
|
|
62
68
|
__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
|
|
63
|
-
this.pathFiles =
|
|
69
|
+
this.pathFiles =
|
|
70
|
+
((_a = this.pathString) === null || _a === void 0 ? void 0 : _a.split(';').filter((path) => path.trim())) || [];
|
|
64
71
|
}
|
|
65
72
|
onFupMulChanged() {
|
|
66
73
|
this.multiUpload = this.FupMul === 'true';
|
|
@@ -68,6 +75,10 @@ export class KupFileUpload {
|
|
|
68
75
|
onFupAutChanged() {
|
|
69
76
|
this.autoUpload = this.FupAut === 'true';
|
|
70
77
|
}
|
|
78
|
+
onFupFupAtyChanged() {
|
|
79
|
+
var _a;
|
|
80
|
+
this.acceptedFiles = (_a = this.FupAty) === null || _a === void 0 ? void 0 : _a.split('|').map((ext) => `.${ext}`);
|
|
81
|
+
}
|
|
71
82
|
//#endregion
|
|
72
83
|
//#region PUBLIC METHODS
|
|
73
84
|
/*-------------------------------------------------*/
|
|
@@ -102,7 +113,6 @@ export class KupFileUpload {
|
|
|
102
113
|
this.setLoading(false);
|
|
103
114
|
if (success && pathFiles) {
|
|
104
115
|
__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
|
|
105
|
-
this.uploadSuccess = success;
|
|
106
116
|
this.pathFiles = this.multiUpload
|
|
107
117
|
? [...this.pathFiles, ...pathFiles.split(';')]
|
|
108
118
|
: [pathFiles.split(';')[0]];
|
|
@@ -126,11 +136,13 @@ export class KupFileUpload {
|
|
|
126
136
|
/* L i f e c y c l e H o o k s */
|
|
127
137
|
/*-------------------------------------------------*/
|
|
128
138
|
componentWillLoad() {
|
|
139
|
+
var _a;
|
|
129
140
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logLoad(this, false);
|
|
130
141
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.register(this);
|
|
131
142
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.register(this);
|
|
132
143
|
this.multiUpload = this.FupMul === 'true';
|
|
133
144
|
this.autoUpload = this.FupAut === 'true';
|
|
145
|
+
this.acceptedFiles = (_a = this.FupAty) === null || _a === void 0 ? void 0 : _a.split('|').map((ext) => `.${ext}`);
|
|
134
146
|
}
|
|
135
147
|
componentDidLoad() {
|
|
136
148
|
this.kupReady.emit({ comp: this, id: this.rootElement.id });
|
|
@@ -143,10 +155,16 @@ export class KupFileUpload {
|
|
|
143
155
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logRender(this, true);
|
|
144
156
|
}
|
|
145
157
|
render() {
|
|
146
|
-
|
|
158
|
+
var _a;
|
|
159
|
+
return (h(Host, { key: 'e82c20508f86798008b2e961f2cef347ea19908f' }, h("style", { key: 'f9549e18810a5d38d300c167142d41e783d9e80d' }, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '09d2ae3e36a7e871aba975ccbb745472cb63652f', id: componentWrapperId }, h("div", { key: 'c2b798c7bf6cababc587990b710515060bb2e2a8', class: {
|
|
147
160
|
'file-upload': true,
|
|
148
161
|
'file-upload-spinner': this.showSpinner,
|
|
149
|
-
|
|
162
|
+
'file-upload__invalid': !this.isValidDropFiles,
|
|
163
|
+
}, onDragOver: (event) => {
|
|
164
|
+
var _a;
|
|
165
|
+
event.preventDefault();
|
|
166
|
+
this.isValidDropFiles = __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_isValidDraggedItems).call(this, (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.items);
|
|
167
|
+
}, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragLeave: () => (this.isValidDropFiles = true), onDragEnd: () => (this.isValidDropFiles = true) }, h("input", { key: 'a79897d0ea5885a55a71f04ce39bbd4791e1462d', 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: '856a74817a14d88844efb2b9ad765e8d7223d547', class: "file-upload__buttons" }, h(FButton, { key: '1eb230b6313b6fb9e65f178b9e4edd0592e87e20', 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: 'df73268c675f6bf4ce81cd44c80a01305adf2f97' }, h(FButton, { key: '821b641f32a70972892b624d8ac55a9e38faaa14', 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: 'f8f969b3eb16bd86dcd4826b3c3f46f8f8551b8f', 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.fupError && (h("div", { key: '2b760c793e980290ffb0847f46d0d5fb0abfac73', class: "file-upload__error" }, h("span", { key: '4c1a2cd135f330cf0dbda3f4da6dca78a5a298d4', class: "mdc-error-message" }, this.fupError))), h("div", { key: 'a034a8a57062eba3445e29168f740b867d5085a7', 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: 'cda18a34e433799f62f0026f4b38af748d39d2d7', class: "file-upload__spinner-container" }, h("kup-spinner", { key: 'cb010ba98b016941a087af4b250be33f675ac3fa', active: true, layout: 14, dimensions: "7px" })))))));
|
|
150
168
|
}
|
|
151
169
|
disconnectedCallback() {
|
|
152
170
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.unregister(this);
|
|
@@ -274,6 +292,27 @@ export class KupFileUpload {
|
|
|
274
292
|
"reflect": false,
|
|
275
293
|
"defaultValue": "null"
|
|
276
294
|
},
|
|
295
|
+
"FupAty": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "string",
|
|
300
|
+
"resolved": "string",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": false,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [{
|
|
307
|
+
"name": "default",
|
|
308
|
+
"text": "null"
|
|
309
|
+
}],
|
|
310
|
+
"text": "Sets the accepted extensions"
|
|
311
|
+
},
|
|
312
|
+
"attribute": "fup-aty",
|
|
313
|
+
"reflect": false,
|
|
314
|
+
"defaultValue": "null"
|
|
315
|
+
},
|
|
277
316
|
"error": {
|
|
278
317
|
"type": "string",
|
|
279
318
|
"mutable": false,
|
|
@@ -287,7 +326,7 @@ export class KupFileUpload {
|
|
|
287
326
|
"docs": {
|
|
288
327
|
"tags": [{
|
|
289
328
|
"name": "default",
|
|
290
|
-
"text": "'
|
|
329
|
+
"text": "'undefined'"
|
|
291
330
|
}],
|
|
292
331
|
"text": "Error string to render in component"
|
|
293
332
|
},
|
|
@@ -302,10 +341,12 @@ export class KupFileUpload {
|
|
|
302
341
|
"inputRef": {},
|
|
303
342
|
"tempFiles": {},
|
|
304
343
|
"pathFiles": {},
|
|
305
|
-
"uploadSuccess": {},
|
|
306
344
|
"showSpinner": {},
|
|
307
345
|
"multiUpload": {},
|
|
308
|
-
"autoUpload": {}
|
|
346
|
+
"autoUpload": {},
|
|
347
|
+
"acceptedFiles": {},
|
|
348
|
+
"isValidDropFiles": {},
|
|
349
|
+
"fupError": {}
|
|
309
350
|
};
|
|
310
351
|
}
|
|
311
352
|
static get events() {
|
|
@@ -511,6 +552,9 @@ export class KupFileUpload {
|
|
|
511
552
|
static get elementRef() { return "rootElement"; }
|
|
512
553
|
static get watchers() {
|
|
513
554
|
return [{
|
|
555
|
+
"propName": "error",
|
|
556
|
+
"methodName": "onErrorChange"
|
|
557
|
+
}, {
|
|
514
558
|
"propName": "pathString",
|
|
515
559
|
"methodName": "onDataChanged"
|
|
516
560
|
}, {
|
|
@@ -519,17 +563,49 @@ export class KupFileUpload {
|
|
|
519
563
|
}, {
|
|
520
564
|
"propName": "FupAut",
|
|
521
565
|
"methodName": "onFupAutChanged"
|
|
566
|
+
}, {
|
|
567
|
+
"propName": "FupAty",
|
|
568
|
+
"methodName": "onFupFupAtyChanged"
|
|
522
569
|
}];
|
|
523
570
|
}
|
|
524
571
|
}
|
|
525
572
|
_KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakMap(), _KupFileUpload_instances = new WeakSet(), _KupFileUpload_handleClick = function _KupFileUpload_handleClick() {
|
|
526
573
|
this.inputRef.click();
|
|
527
574
|
}, _KupFileUpload_handleFileChange = function _KupFileUpload_handleFileChange(event) {
|
|
528
|
-
this.
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
575
|
+
this.fupError = '';
|
|
576
|
+
const newFiles = Array.from(event.target.files) || [];
|
|
577
|
+
if (!this.multiUpload && newFiles.length > 1) {
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
532
580
|
this.inputRef.value = '';
|
|
581
|
+
__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_processFiles).call(this, newFiles);
|
|
582
|
+
}, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
|
|
583
|
+
event.preventDefault();
|
|
584
|
+
this.fupError = '';
|
|
585
|
+
this.isValidDropFiles = true;
|
|
586
|
+
const droppedFiles = event.dataTransfer.files;
|
|
587
|
+
if ((droppedFiles === null || droppedFiles === void 0 ? void 0 : droppedFiles.length) <= 0) {
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
if (!this.multiUpload && droppedFiles.length > 1) {
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
const newFiles = Array.from(droppedFiles);
|
|
594
|
+
__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_processFiles).call(this, newFiles);
|
|
595
|
+
}, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
|
|
596
|
+
this.tempFiles = [
|
|
597
|
+
...this.tempFiles.splice(0, index),
|
|
598
|
+
...this.tempFiles.splice(index + 1),
|
|
599
|
+
];
|
|
600
|
+
}, _KupFileUpload_processFiles = function _KupFileUpload_processFiles(newFiles) {
|
|
601
|
+
if (!__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_areValidFiles).call(this, newFiles)) {
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
this.tempFiles = this.multiUpload
|
|
605
|
+
? // Add new files
|
|
606
|
+
__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_getUniqueFiles).call(this, [...this.tempFiles, ...newFiles])
|
|
607
|
+
: // Reset files
|
|
608
|
+
newFiles;
|
|
533
609
|
if (this.autoUpload) {
|
|
534
610
|
this.kupUpload.emit({
|
|
535
611
|
comp: this,
|
|
@@ -538,19 +614,6 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
|
|
|
538
614
|
});
|
|
539
615
|
this.setLoading(true);
|
|
540
616
|
}
|
|
541
|
-
}, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
|
|
542
|
-
this.tempFiles = [
|
|
543
|
-
...this.tempFiles.splice(0, index),
|
|
544
|
-
...this.tempFiles.splice(index + 1),
|
|
545
|
-
];
|
|
546
|
-
}, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
|
|
547
|
-
event.preventDefault();
|
|
548
|
-
this.uploadSuccess = false;
|
|
549
|
-
const droppedFiles = event.dataTransfer.files;
|
|
550
|
-
if (droppedFiles.length > 0) {
|
|
551
|
-
const newFiles = Array.from(droppedFiles);
|
|
552
|
-
this.tempFiles = [...this.tempFiles, ...newFiles];
|
|
553
|
-
}
|
|
554
617
|
}, _KupFileUpload_handleCancel = function _KupFileUpload_handleCancel() {
|
|
555
618
|
this.tempFiles = [];
|
|
556
619
|
}, _KupFileUpload_getPreview = function _KupFileUpload_getPreview(file) {
|
|
@@ -577,4 +640,49 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
|
|
|
577
640
|
files: this.tempFiles,
|
|
578
641
|
});
|
|
579
642
|
this.setLoading(true);
|
|
643
|
+
}, _KupFileUpload_getUniqueFiles = function _KupFileUpload_getUniqueFiles(files) {
|
|
644
|
+
const uniqueFiles = files.reduce((map, file) => {
|
|
645
|
+
const key = `${file.name}-${file.size}-${file.lastModified}`;
|
|
646
|
+
map.set(key, file);
|
|
647
|
+
return map;
|
|
648
|
+
}, new Map());
|
|
649
|
+
return Array.from(uniqueFiles.values());
|
|
650
|
+
}, _KupFileUpload_isValidDraggedItems = function _KupFileUpload_isValidDraggedItems(items) {
|
|
651
|
+
if (!(items === null || items === void 0 ? void 0 : items.length) || (!this.multiUpload && items.length > 1)) {
|
|
652
|
+
return false;
|
|
653
|
+
}
|
|
654
|
+
for (const item of Array.from(items)) {
|
|
655
|
+
if (item.kind != 'file') {
|
|
656
|
+
return false;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
return true;
|
|
660
|
+
}, _KupFileUpload_areValidFiles = function _KupFileUpload_areValidFiles(files) {
|
|
661
|
+
if (!(files === null || files === void 0 ? void 0 : files.length)) {
|
|
662
|
+
return false;
|
|
663
|
+
}
|
|
664
|
+
for (const file of files) {
|
|
665
|
+
if (!__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_isValidFile).call(this, file)) {
|
|
666
|
+
return false;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
return true;
|
|
670
|
+
}, _KupFileUpload_isValidFile = function _KupFileUpload_isValidFile(file) {
|
|
671
|
+
var _a;
|
|
672
|
+
if (!((_a = this.acceptedFiles) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
673
|
+
return true;
|
|
674
|
+
}
|
|
675
|
+
// Check extensions
|
|
676
|
+
const fileExtension = __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_getFileExtension).call(this, file.name);
|
|
677
|
+
const isValid = fileExtension
|
|
678
|
+
? this.acceptedFiles.includes(fileExtension)
|
|
679
|
+
: false;
|
|
680
|
+
if (!isValid) {
|
|
681
|
+
// Set extension error
|
|
682
|
+
this.fupError = __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageUpload.INVALID_EXTENSION);
|
|
683
|
+
}
|
|
684
|
+
return isValid;
|
|
685
|
+
}, _KupFileUpload_getFileExtension = function _KupFileUpload_getFileExtension(fileName) {
|
|
686
|
+
const dotIndex = fileName.lastIndexOf('.');
|
|
687
|
+
return dotIndex >= 0 ? fileName.substring(dotIndex).toLowerCase() : '';
|
|
580
688
|
};
|
|
@@ -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: 'e6e94006b6a608e301373fdb7a4ca02665b2d844' }, 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: 'c6fb5b3851606811f0c1cab66ce83f00c3073cd7' }, h("style", { key: '7451643bd2809dd41742977dc0c8ffaf2d29017c' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'f68f672b0a6f03a01577a5120e8f3e74385a0373', id: componentWrapperId }, formContent)));
|
|
423
423
|
}
|
|
424
424
|
disconnectedCallback() {
|
|
425
425
|
this.kupManager.language.unregister(this);
|
|
@@ -19,6 +19,9 @@ export class KupHTM {
|
|
|
19
19
|
/* I n t e r n a l V a r i a b l e s */
|
|
20
20
|
/*-------------------------------------------------*/
|
|
21
21
|
_KupHTM_kupManager.set(this, kupManagerInstance());
|
|
22
|
+
this.openInNewTab = (url) => {
|
|
23
|
+
window.open(url, '_blank', 'noopener,noreferrer');
|
|
24
|
+
};
|
|
22
25
|
this.data = undefined;
|
|
23
26
|
}
|
|
24
27
|
/*-------------------------------------------------*/
|
|
@@ -69,7 +72,7 @@ export class KupHTM {
|
|
|
69
72
|
render() {
|
|
70
73
|
var _a;
|
|
71
74
|
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: '
|
|
75
|
+
return (h(Host, { key: '7e74bdbde1456c74a177350f6d0dc68da4e15b23' }, h("style", { key: 'e284b80b52c6ff7c47e908fdcf4a8631428acd29' }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '79e75e97a2e72abf83c6efb3564dd36e6c8605ad', id: componentWrapperId }, h("div", { key: '37d4acd00efe5cda11ef5d0572d391ff278fd4c7', class: `kup-htm ${isLink ? 'is-link' : ''}` }, isLink ? (h(Fragment, null, h("kup-button", { label: __classPrivateFieldGet(this, _KupHTM_kupManager, "f").language.translate(KupLanguageGeneric.OPEN_IN_NEW_TAB), sizing: 'small', class: 'kup-secondary', icon: "open-in-new", styling: 'flat', trailingIcon: true, onClick: () => this.openInNewTab(this.data.value) }), h("iframe", { src: this.data.value, frameBorder: "0" }))) : (h("div", { innerHTML: this.data.value }))))));
|
|
73
76
|
}
|
|
74
77
|
disconnectedCallback() {
|
|
75
78
|
__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: 'd3dd048c9d3557174d5feb3b6ba6203ea5ecafe7' }, h("style", { key: '8178c806d90f4852441e8b18743bfd0f6836d6ef' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd349af3c953aa70469c19f3868e5e850374996a0', id: componentWrapperId, ref: (el) => {
|
|
209
209
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
210
|
-
} }, h("div", { key: '
|
|
210
|
+
} }, h("div", { key: '5501f3c1eb46fa4e856248c1e876de729a68195a', 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: 'e3a0c1acb410e52590a0309b9d1863ab75d2a6b5', class: "mdc-text-field__label-container" }, h("label", { key: 'a182435d28cf9ae405f61fda93794c5d81a5ed3e', class: "mdc-label" }, this.leadingLabel))), h("div", { key: '5df777d415c2ae7eeb95f22ce229614948b9a4c7', 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"));
|
|
@@ -8,6 +8,7 @@ export var KupInputPanelProps;
|
|
|
8
8
|
KupInputPanelProps["customStyle"] = "Custom style of the component.";
|
|
9
9
|
KupInputPanelProps["data"] = "Actual data of the input panel.";
|
|
10
10
|
KupInputPanelProps["hiddenSubmitButton"] = "Creates a hidden submit button in order to submit the form with enter.";
|
|
11
|
+
KupInputPanelProps["commandBarPosition"] = "Manage the position of the command bar (submit button and other commands).";
|
|
11
12
|
KupInputPanelProps["submitCb"] = "Sets the callback function on submit form";
|
|
12
13
|
KupInputPanelProps["optionsHandler"] = "Sets the callback function to recieve options";
|
|
13
14
|
KupInputPanelProps["buttonPosition"] = "Manage the position of the buttons related to the input panel content. It is an enumeration";
|