@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
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupDataTable_instances, _KupDataTable_checkUpdateState, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_originalDataLoaded, _KupDataTable_originalDataLoadedMaxId, _KupDataTable_insertedRowIds, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_lastPointerDetails, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_actionsCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_dropDownActionCardAnchor, _KupDataTable_insertCount, _KupDataTable_lastFocusedColumn, _KupDataTable_lastFocusedCell, _KupDataTable_lastFocusedRow, _KupDataTable_maxRowsPerPage, _KupDataTable_readyPromise, _KupDataTable_readyResolve, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, _KupDataTable_insertNewColumnInVisibleColumnsList, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable__getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_dropDownActions, _KupDataTable_createDropDownActionsCard, _KupDataTable_clearSearchActionsCard, _KupDataTable_filterRowActionsCard, _KupDataTable_closeRowActionsCard, _KupDataTable_closeColumnMenuCard, _KupDataTable_prepareDataForActionsCard, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_getEventDetailsForCurrentSelection, _KupDataTable_getSourceElementCoordsForCurrentSelection, _KupDataTable_clickHandler, _KupDataTable_cellActionsMenuHandler, _KupDataTable_contextMenuHandler, _KupDataTable_tooltipRequestHandler, _KupDataTable_contextMenuHandlerDetailsManager, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_copyCellValueInColumnHandler, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_setCellEditability, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_horNav, _KupDataTable_verNav, _KupDataTable_onKupKeyDown, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_handleUpdateClick, _KupDataTable_onBlurHandler, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel, _KupDataTable_renderCommandButton, _KupDataTable_handleChipsContextMenu, _KupDataTable_renderCommandDropDownButton, _KupDataTable_renderUpdateButtons;
|
|
17
|
+
var _KupDataTable_instances, _KupDataTable_checkUpdateState, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_originalDataLoaded, _KupDataTable_originalDataLoadedMaxId, _KupDataTable_beforeTotalMatrixData, _KupDataTable_beforeTotalMatrixGroups, _KupDataTable_beforeTotalMatrixTotals, _KupDataTable_beforeTotalMatrixVisibleColumns, _KupDataTable_insertedRowIds, _KupDataTable_modifiedRowsIds, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_lastPointerDetails, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_actionsCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_dropDownActionCardAnchor, _KupDataTable_insertCount, _KupDataTable_lastFocusedColumn, _KupDataTable_lastFocusedCell, _KupDataTable_lastFocusedRow, _KupDataTable_maxRowsPerPage, _KupDataTable_readyPromise, _KupDataTable_readyResolve, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, _KupDataTable_insertNewColumnInVisibleColumnsList, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable__getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchBackFromTotalsMatrix, _KupDataTable_switchToTotalsMatrix, _KupDataTable_findGroupsAtLevel, _KupDataTable_getGroupElementsBefore, _KupDataTable_buildTotalTitle, _KupDataTable_promoteTotals, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_dropDownActions, _KupDataTable_createDropDownActionsCard, _KupDataTable_clearSearchActionsCard, _KupDataTable_filterRowActionsCard, _KupDataTable_closeRowActionsCard, _KupDataTable_closeColumnMenuCard, _KupDataTable_prepareDataForActionsCard, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_getEventDetailsForCurrentSelection, _KupDataTable_getSourceElementCoordsForCurrentSelection, _KupDataTable_clickHandler, _KupDataTable_cellActionsMenuHandler, _KupDataTable_contextMenuHandler, _KupDataTable_tooltipRequestHandler, _KupDataTable_contextMenuHandlerDetailsManager, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_copyCellValueInColumnHandler, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_setCellEditability, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_horNav, _KupDataTable_verNav, _KupDataTable_onKupKeyDown, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_handleUpdateClick, _KupDataTable_onBlurHandler, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderBackFromTotalsMatrix, _KupDataTable_renderGridPanel, _KupDataTable_renderCommandButton, _KupDataTable_handleChipsContextMenu, _KupDataTable_renderCommandDropDownButton, _KupDataTable_renderOtherButtons, _KupDataTable_renderUpdateButtons, _KupDataTable_createDeletePayload, _KupDataTable_isRowInserted, _KupDataTable_isRowModified, _KupDataTable_arraysContainSameElements;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
19
|
import { FixedCellsClasses, FixedCellsCSSVarsBase, GroupLabelDisplayMode, LoadMoreMode, PaginatorPos, ShowGrid, SortMode, TotalMode, TotalLabel, KupDataTableProps, fieldColumn, iconColumn, keyColumn, SelectionMode, DataTableAreasEnum, TypesToDuplicate, } from "./kup-data-table-declarations";
|
|
20
20
|
import { getColumnByName, getValueForDisplay, isNegativeNumber, } from "../../utils/cell-utils";
|
|
@@ -84,10 +84,21 @@ export class KupDataTable {
|
|
|
84
84
|
* contains the id greater value in #originalDataLoaded
|
|
85
85
|
*/
|
|
86
86
|
_KupDataTable_originalDataLoadedMaxId.set(this, void 0);
|
|
87
|
+
/**
|
|
88
|
+
* variables keeping track of the matrix properties before the totals view
|
|
89
|
+
*/
|
|
90
|
+
_KupDataTable_beforeTotalMatrixData.set(this, undefined);
|
|
91
|
+
_KupDataTable_beforeTotalMatrixGroups.set(this, undefined);
|
|
92
|
+
_KupDataTable_beforeTotalMatrixTotals.set(this, undefined);
|
|
93
|
+
_KupDataTable_beforeTotalMatrixVisibleColumns.set(this, undefined);
|
|
87
94
|
/**
|
|
88
95
|
* contains the id greater value in #originalDataLoaded
|
|
89
96
|
*/
|
|
90
97
|
_KupDataTable_insertedRowIds.set(this, []);
|
|
98
|
+
/**
|
|
99
|
+
* contains the id greater value in #originalDataLoaded
|
|
100
|
+
*/
|
|
101
|
+
_KupDataTable_modifiedRowsIds.set(this, []);
|
|
91
102
|
/**
|
|
92
103
|
* Reference to the working area of the table. This is the below-wrapper reference.
|
|
93
104
|
*/
|
|
@@ -230,11 +241,12 @@ export class KupDataTable {
|
|
|
230
241
|
}
|
|
231
242
|
});
|
|
232
243
|
_KupDataTable_handleUpdateClick.set(this, (command) => {
|
|
244
|
+
var _a, _b;
|
|
233
245
|
this.kupUpdate.emit({
|
|
234
246
|
comp: this,
|
|
235
247
|
id: this.rootElement.id,
|
|
236
|
-
originalData: __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f"),
|
|
237
|
-
updatedData: getDiffData(__classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f"), this.data, true),
|
|
248
|
+
originalData: (_a = __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f")) !== null && _a !== void 0 ? _a : this.data,
|
|
249
|
+
updatedData: getDiffData((_b = __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f")) !== null && _b !== void 0 ? _b : this.data, this.data, true, __classPrivateFieldGet(this, _KupDataTable_insertedRowIds, "f")),
|
|
238
250
|
command: command,
|
|
239
251
|
});
|
|
240
252
|
});
|
|
@@ -338,6 +350,7 @@ export class KupDataTable {
|
|
|
338
350
|
this.openedTotalMenu = null;
|
|
339
351
|
this.openedCustomSettings = false;
|
|
340
352
|
this.fontsize = 'small';
|
|
353
|
+
this.totalsMatrixView = false;
|
|
341
354
|
}
|
|
342
355
|
initWithPersistedState() {
|
|
343
356
|
if (this.store && this.stateId) {
|
|
@@ -433,6 +446,7 @@ export class KupDataTable {
|
|
|
433
446
|
? SelectionMode.MULTIPLE_CHECKBOX
|
|
434
447
|
: this.selection;
|
|
435
448
|
__classPrivateFieldSet(this, _KupDataTable_insertedRowIds, [], "f");
|
|
449
|
+
__classPrivateFieldSet(this, _KupDataTable_modifiedRowsIds, [], "f");
|
|
436
450
|
__classPrivateFieldSet(this, _KupDataTable_originalDataLoadedMaxId, ((_c = __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f").rows) === null || _c === void 0 ? void 0 : _c.length) > 0
|
|
437
451
|
? Math.max(...__classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f").rows.map((r) => parseInt(r.id)))
|
|
438
452
|
: -1, "f");
|
|
@@ -752,7 +766,7 @@ export class KupDataTable {
|
|
|
752
766
|
});
|
|
753
767
|
});
|
|
754
768
|
__classPrivateFieldGet(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-event', (e) => {
|
|
755
|
-
__classPrivateFieldGet(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this);
|
|
769
|
+
__classPrivateFieldGet(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this, columnName);
|
|
756
770
|
this.kupDataTableColumnMenu.emit({
|
|
757
771
|
comp: this,
|
|
758
772
|
id: this.rootElement.id,
|
|
@@ -996,6 +1010,11 @@ export class KupDataTable {
|
|
|
996
1010
|
}
|
|
997
1011
|
}
|
|
998
1012
|
}
|
|
1013
|
+
async toggleTotalsMatrix(columnName, calculateTotals) {
|
|
1014
|
+
calculateTotals === true
|
|
1015
|
+
? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_switchToTotalsMatrix).call(this, columnName)
|
|
1016
|
+
: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_switchBackFromTotalsMatrix).call(this);
|
|
1017
|
+
}
|
|
999
1018
|
//---- Lifecycle hooks ----
|
|
1000
1019
|
connectedCallback() {
|
|
1001
1020
|
__classPrivateFieldSet(this, _KupDataTable_readyPromise, new Promise((resolve) => {
|
|
@@ -1387,8 +1406,13 @@ export class KupDataTable {
|
|
|
1387
1406
|
grid = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderGridPanel).call(this);
|
|
1388
1407
|
transpose = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderTransposeSwitch).call(this);
|
|
1389
1408
|
if (this.totals && this.groups.length > 0) {
|
|
1409
|
+
// From original matrix to totalsMatrix
|
|
1390
1410
|
totalsMatrix = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderTotalsMatrix).call(this);
|
|
1391
1411
|
}
|
|
1412
|
+
if (this.totalsMatrixView) {
|
|
1413
|
+
// From totals matrix to original
|
|
1414
|
+
totalsMatrix = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderBackFromTotalsMatrix).call(this);
|
|
1415
|
+
}
|
|
1392
1416
|
}
|
|
1393
1417
|
return (h("kup-card", { customStyle: "::slotted(kup-switch) { width: max-content !important; } ::slotted(*) { margin: auto !important; } ::slotted(.customize-element) { margin: auto !important; padding: 0 1em 1em 1em !important; width: max-content !important; } ::slotted(.customize-element):nth-child(1) { padding-top: 1em !important; }", isMenu: true, layoutFamily: KupCardFamily.FREE, ref: (el) => {
|
|
1394
1418
|
__classPrivateFieldSet(this, _KupDataTable_customizeTopPanelRef, el, "f");
|
|
@@ -1441,7 +1465,7 @@ export class KupDataTable {
|
|
|
1441
1465
|
__classPrivateFieldSet(this, _KupDataTable_sizedColumns, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
1442
1466
|
let rows = null;
|
|
1443
1467
|
if (__classPrivateFieldGet(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
1444
|
-
rows = (h("tr", { key: '
|
|
1468
|
+
rows = (h("tr", { key: 'f756c110837ac07883be514318b398066cdc3840', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '60bb274da01b04591b72c739b4a16c43700e0dce', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
1445
1469
|
}
|
|
1446
1470
|
else {
|
|
1447
1471
|
rows = [];
|
|
@@ -1517,7 +1541,7 @@ export class KupDataTable {
|
|
|
1517
1541
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
|
|
1518
1542
|
});
|
|
1519
1543
|
}
|
|
1520
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
1544
|
+
groupChips = h(FChip, Object.assign({ key: 'f97dd630bea3bd273b870b0db7bcd6da75b7bda6' }, props));
|
|
1521
1545
|
}
|
|
1522
1546
|
}
|
|
1523
1547
|
const tableClass = {
|
|
@@ -1549,7 +1573,7 @@ export class KupDataTable {
|
|
|
1549
1573
|
if (this.headerIsPersistent &&
|
|
1550
1574
|
this.tableHeight === undefined &&
|
|
1551
1575
|
this.tableWidth === undefined) {
|
|
1552
|
-
stickyEl = (h("sticky-header", { key: '
|
|
1576
|
+
stickyEl = (h("sticky-header", { key: '0662d9ee62e82826c4ac0f3b177a65e5be681b09', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '2c2a444728fb55d1cf75fc1cf9355a190b5adc6d' }, h("tr-sticky", { key: '76635d27d299a0fbcaf2b4d8ba23dfe2ced0a57f' }, stickyHeader))));
|
|
1553
1577
|
}
|
|
1554
1578
|
let belowClass = 'below-wrapper';
|
|
1555
1579
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -1595,12 +1619,16 @@ export class KupDataTable {
|
|
|
1595
1619
|
const useGlobalFilter = !this.legacyLook &&
|
|
1596
1620
|
(this.globalFilter ||
|
|
1597
1621
|
this.getRows().length > __classPrivateFieldGet(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
1598
|
-
const compCreated = (h(Host, { key: '
|
|
1622
|
+
const compCreated = (h(Host, { key: '668806149ffdece2873c90423fc8230f1774d18d', "onKup-drop": (e) => {
|
|
1599
1623
|
this.kupDataTableDrop.emit(e.detail);
|
|
1600
1624
|
}, "onKup-cell-input": (e) => {
|
|
1601
1625
|
autoselectOnAction(e);
|
|
1602
1626
|
this.kupDataTableCellInput.emit(e.detail);
|
|
1603
|
-
|
|
1627
|
+
__classPrivateFieldGet(this, _KupDataTable_modifiedRowsIds, "f").push(e.detail.row.id);
|
|
1628
|
+
}, "onKup-cell-update": (e) => {
|
|
1629
|
+
autoselectOnAction(e);
|
|
1630
|
+
__classPrivateFieldGet(this, _KupDataTable_modifiedRowsIds, "f").push(e.detail.row.id);
|
|
1631
|
+
}, "onKup-cell-blur": __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onBlurHandler), "onKup-cell-click": (e) => {
|
|
1604
1632
|
this.kupDataTableCellClick.emit(e.detail);
|
|
1605
1633
|
}, "onKup-cell-iconclick": (e) => {
|
|
1606
1634
|
this.kupDataTableCellIconClick.emit(e.detail);
|
|
@@ -1610,11 +1638,11 @@ export class KupDataTable {
|
|
|
1610
1638
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
1611
1639
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
1612
1640
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
1613
|
-
} }, h("style", { key: '
|
|
1641
|
+
} }, h("style", { key: 'b4f670a84ca9e6c048145c18b66c95c0c8d94bf2' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), h("div", { key: '10ad3ac25486699a1b2f4a72ef9a55df6923c09d', id: componentWrapperId, class: wrapClass }, h("div", { key: 'af5425d020f6aace2de2097b1640352af4c23474', class: "group-wrapper" }, groupChips), h("div", { key: 'c3719eb37a42275d12a14cdd9f17d4aa089a644b', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
1614
1642
|
const t = event.target;
|
|
1615
1643
|
window.clearTimeout(__classPrivateFieldGet(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
1616
1644
|
__classPrivateFieldSet(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
1617
|
-
} }))) : null, paginatorTop && (h("div", { key: '
|
|
1645
|
+
} }))) : null, paginatorTop && (h("div", { key: 'e01912dae8c3547a51c34f1215a81139b81c0efc', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
|
|
1618
1646
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
1619
1647
|
this.kupSave.emit({
|
|
1620
1648
|
comp: this,
|
|
@@ -1664,9 +1692,9 @@ export class KupDataTable {
|
|
|
1664
1692
|
this.data.rows.unshift(row);
|
|
1665
1693
|
await this.refresh(true);
|
|
1666
1694
|
}
|
|
1667
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
1695
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '4e3b3890fc29bc744b945cb12aff638259bf070a', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
1668
1696
|
? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
1669
|
-
: null), h("div", { key: '
|
|
1697
|
+
: null), h("div", { key: '13e409dd5151019d4241f5c715fac71f45f8b2d9', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
1670
1698
|
? [
|
|
1671
1699
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
1672
1700
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -1675,7 +1703,7 @@ export class KupDataTable {
|
|
|
1675
1703
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
1676
1704
|
this.renderCustomizePanel(),
|
|
1677
1705
|
]
|
|
1678
|
-
: null, h("table", { key: '
|
|
1706
|
+
: null, h("table", { key: '9dbaa5b996c7be9610cfc86f4fec1fe8f51bc088', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
1679
1707
|
ev.stopPropagation();
|
|
1680
1708
|
}, onPointerDown: (e) => {
|
|
1681
1709
|
__classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -1683,7 +1711,7 @@ export class KupDataTable {
|
|
|
1683
1711
|
__classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
1684
1712
|
}, onContextMenu: (e) => {
|
|
1685
1713
|
e.preventDefault();
|
|
1686
|
-
} }, h("thead", { key: '
|
|
1714
|
+
} }, h("thead", { key: '33ec409789766dea9659e28f214d0ec90898d64c', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '50d184585969f3626e86612213421f3fcc2f1212' }, header)), h("tbody", { key: '9eaadffb972a9332c77ba8c0f382d84b4b20e9fd' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
1687
1715
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
1688
1716
|
return compCreated;
|
|
1689
1717
|
}
|
|
@@ -3024,7 +3052,8 @@ export class KupDataTable {
|
|
|
3024
3052
|
"groupState": {},
|
|
3025
3053
|
"openedTotalMenu": {},
|
|
3026
3054
|
"openedCustomSettings": {},
|
|
3027
|
-
"fontsize": {}
|
|
3055
|
+
"fontsize": {},
|
|
3056
|
+
"totalsMatrixView": {}
|
|
3028
3057
|
};
|
|
3029
3058
|
}
|
|
3030
3059
|
static get events() {
|
|
@@ -4296,6 +4325,31 @@ export class KupDataTable {
|
|
|
4296
4325
|
}]
|
|
4297
4326
|
}
|
|
4298
4327
|
},
|
|
4328
|
+
"toggleTotalsMatrix": {
|
|
4329
|
+
"complexType": {
|
|
4330
|
+
"signature": "(columnName?: string, calculateTotals?: boolean) => Promise<void>",
|
|
4331
|
+
"parameters": [{
|
|
4332
|
+
"name": "columnName",
|
|
4333
|
+
"type": "string",
|
|
4334
|
+
"docs": ""
|
|
4335
|
+
}, {
|
|
4336
|
+
"name": "calculateTotals",
|
|
4337
|
+
"type": "boolean",
|
|
4338
|
+
"docs": ""
|
|
4339
|
+
}],
|
|
4340
|
+
"references": {
|
|
4341
|
+
"Promise": {
|
|
4342
|
+
"location": "global",
|
|
4343
|
+
"id": "global::Promise"
|
|
4344
|
+
}
|
|
4345
|
+
},
|
|
4346
|
+
"return": "Promise<void>"
|
|
4347
|
+
},
|
|
4348
|
+
"docs": {
|
|
4349
|
+
"text": "",
|
|
4350
|
+
"tags": []
|
|
4351
|
+
}
|
|
4352
|
+
},
|
|
4299
4353
|
"getInternalState": {
|
|
4300
4354
|
"complexType": {
|
|
4301
4355
|
"signature": "() => Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>",
|
|
@@ -4442,7 +4496,7 @@ export class KupDataTable {
|
|
|
4442
4496
|
}];
|
|
4443
4497
|
}
|
|
4444
4498
|
}
|
|
4445
|
-
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_originalDataLoaded = new WeakMap(), _KupDataTable_originalDataLoadedMaxId = new WeakMap(), _KupDataTable_insertedRowIds = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_lastPointerDetails = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_actionsCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_dropDownActionCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_lastFocusedColumn = new WeakMap(), _KupDataTable_lastFocusedCell = new WeakMap(), _KupDataTable_lastFocusedRow = new WeakMap(), _KupDataTable_maxRowsPerPage = new WeakMap(), _KupDataTable_readyPromise = new WeakMap(), _KupDataTable_readyResolve = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_horNav = new WeakMap(), _KupDataTable_verNav = new WeakMap(), _KupDataTable_onKupKeyDown = new WeakMap(), _KupDataTable_handleUpdateClick = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_checkUpdateState = function _KupDataTable_checkUpdateState() {
|
|
4499
|
+
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_originalDataLoaded = new WeakMap(), _KupDataTable_originalDataLoadedMaxId = new WeakMap(), _KupDataTable_beforeTotalMatrixData = new WeakMap(), _KupDataTable_beforeTotalMatrixGroups = new WeakMap(), _KupDataTable_beforeTotalMatrixTotals = new WeakMap(), _KupDataTable_beforeTotalMatrixVisibleColumns = new WeakMap(), _KupDataTable_insertedRowIds = new WeakMap(), _KupDataTable_modifiedRowsIds = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_lastPointerDetails = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_actionsCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_dropDownActionCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_lastFocusedColumn = new WeakMap(), _KupDataTable_lastFocusedCell = new WeakMap(), _KupDataTable_lastFocusedRow = new WeakMap(), _KupDataTable_maxRowsPerPage = new WeakMap(), _KupDataTable_readyPromise = new WeakMap(), _KupDataTable_readyResolve = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_horNav = new WeakMap(), _KupDataTable_verNav = new WeakMap(), _KupDataTable_onKupKeyDown = new WeakMap(), _KupDataTable_handleUpdateClick = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_checkUpdateState = function _KupDataTable_checkUpdateState() {
|
|
4446
4500
|
let somethingChanged = false;
|
|
4447
4501
|
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
|
|
4448
4502
|
this.state.filters = Object.assign({}, this.filters);
|
|
@@ -4695,127 +4749,190 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4695
4749
|
if (this.data.columns.length > 0) {
|
|
4696
4750
|
this.data = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this, this.data.columns[0].name);
|
|
4697
4751
|
}
|
|
4698
|
-
},
|
|
4699
|
-
|
|
4752
|
+
}, _KupDataTable_switchBackFromTotalsMatrix = function _KupDataTable_switchBackFromTotalsMatrix() {
|
|
4753
|
+
this.groups = __classPrivateFieldGet(this, _KupDataTable_beforeTotalMatrixGroups, "f");
|
|
4754
|
+
this.data = __classPrivateFieldGet(this, _KupDataTable_beforeTotalMatrixData, "f");
|
|
4755
|
+
this.totals = __classPrivateFieldGet(this, _KupDataTable_beforeTotalMatrixTotals, "f");
|
|
4756
|
+
this.visibleColumns = __classPrivateFieldGet(this, _KupDataTable_beforeTotalMatrixVisibleColumns, "f");
|
|
4757
|
+
__classPrivateFieldSet(this, _KupDataTable_beforeTotalMatrixData, undefined, "f");
|
|
4758
|
+
__classPrivateFieldSet(this, _KupDataTable_beforeTotalMatrixGroups, undefined, "f");
|
|
4759
|
+
__classPrivateFieldSet(this, _KupDataTable_beforeTotalMatrixTotals, undefined, "f");
|
|
4760
|
+
__classPrivateFieldSet(this, _KupDataTable_beforeTotalMatrixVisibleColumns, undefined, "f");
|
|
4761
|
+
this.totalsMatrixView = false;
|
|
4762
|
+
}, _KupDataTable_switchToTotalsMatrix = function _KupDataTable_switchToTotalsMatrix(columnName) {
|
|
4763
|
+
const groupColName = columnName !== null && columnName !== void 0 ? columnName : this.groups[0].column;
|
|
4764
|
+
const totalsColumns = Object.keys(this.totals);
|
|
4765
|
+
__classPrivateFieldSet(this, _KupDataTable_beforeTotalMatrixData, this.data, "f");
|
|
4766
|
+
__classPrivateFieldSet(this, _KupDataTable_beforeTotalMatrixGroups, this.groups, "f");
|
|
4767
|
+
__classPrivateFieldSet(this, _KupDataTable_beforeTotalMatrixTotals, this.totals, "f");
|
|
4768
|
+
__classPrivateFieldSet(this, _KupDataTable_beforeTotalMatrixVisibleColumns, this.visibleColumns, "f");
|
|
4769
|
+
if (__classPrivateFieldGet(this, _KupDataTable_rows, "f").length === 0 ||
|
|
4770
|
+
!__classPrivateFieldGet(this, _KupDataTable_rows, "f")[0].group ||
|
|
4771
|
+
(totalsColumns === null || totalsColumns === void 0 ? void 0 : totalsColumns.length) === 0 ||
|
|
4772
|
+
!groupColName)
|
|
4700
4773
|
return;
|
|
4701
|
-
//
|
|
4774
|
+
// ---------------------------
|
|
4775
|
+
// Build the matrix data object
|
|
4776
|
+
// ---------------------------
|
|
4702
4777
|
const totalsMatrixData = {};
|
|
4703
|
-
|
|
4704
|
-
//
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4778
|
+
const groupsToInsert = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getGroupElementsBefore).call(this, this.groups, groupColName);
|
|
4779
|
+
// 1. Compute column IDs in correct order
|
|
4780
|
+
const columnIds = [
|
|
4781
|
+
...groupsToInsert.map((group) => group.column),
|
|
4782
|
+
...[columnName],
|
|
4783
|
+
...Object.keys(this.totals),
|
|
4784
|
+
];
|
|
4785
|
+
// 2. Optimize lookup of columns by building a Map
|
|
4786
|
+
const columnMap = new Map(this.data.columns.map((col) => [col.name, col]));
|
|
4787
|
+
// 3. Build matrix columns
|
|
4788
|
+
totalsMatrixData.columns = columnIds
|
|
4789
|
+
.map((id) => columnMap.get(id))
|
|
4790
|
+
.filter((col) => !!col) // ensure defined
|
|
4791
|
+
.map((col) => {
|
|
4792
|
+
const currentColumn = Object.assign({}, col);
|
|
4793
|
+
const totalMode = this.totals[currentColumn.name];
|
|
4794
|
+
if (totalMode) {
|
|
4795
|
+
currentColumn.title = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_buildTotalTitle).call(this, currentColumn.title, totalMode);
|
|
4796
|
+
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
|
|
4797
|
+
}
|
|
4798
|
+
return currentColumn;
|
|
4711
4799
|
});
|
|
4712
|
-
//
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4800
|
+
// 4. Build matrix rows
|
|
4801
|
+
if (!groupsToInsert || groupsToInsert.length === 0) {
|
|
4802
|
+
totalsMatrixData.rows = __classPrivateFieldGet(this, _KupDataTable_rows, "f").map((row, index) => {
|
|
4803
|
+
const cells = {};
|
|
4804
|
+
columnIds.forEach((id) => {
|
|
4805
|
+
let totalValue;
|
|
4806
|
+
if ((columnName === id ||
|
|
4807
|
+
groupsToInsert
|
|
4808
|
+
.map((group) => group.column)
|
|
4809
|
+
.includes(id)) &&
|
|
4810
|
+
row.group.id) {
|
|
4811
|
+
// ID is contained in the column of the group levels before the one clicked
|
|
4812
|
+
// ID equals the column relative to the group the user clicked
|
|
4813
|
+
// - Returns the value of the group - row headers
|
|
4814
|
+
totalValue = row.group.id;
|
|
4815
|
+
}
|
|
4816
|
+
else if (row.group.totals[id] &&
|
|
4817
|
+
Object.keys(this.totals).includes(id)) {
|
|
4818
|
+
// The column id is contained in the totals columns
|
|
4819
|
+
// and the total exists
|
|
4820
|
+
totalValue = row.group.totals[id];
|
|
4821
|
+
}
|
|
4822
|
+
else {
|
|
4823
|
+
// Default with an empty value because '---' breaks the totals
|
|
4824
|
+
totalValue = '';
|
|
4825
|
+
}
|
|
4826
|
+
if (__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").dates.isIsoDate(totalValue)) {
|
|
4827
|
+
totalValue = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
|
|
4828
|
+
}
|
|
4829
|
+
cells[id] = { value: String(totalValue) };
|
|
4830
|
+
});
|
|
4831
|
+
return {
|
|
4832
|
+
id: String(index),
|
|
4833
|
+
cells,
|
|
4834
|
+
};
|
|
4835
|
+
});
|
|
4836
|
+
}
|
|
4837
|
+
else {
|
|
4838
|
+
totalsMatrixData.rows = [];
|
|
4839
|
+
for (const row of __classPrivateFieldGet(this, _KupDataTable_rows, "f")) {
|
|
4840
|
+
const foundGroups = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_findGroupsAtLevel).call(this, row.group, columnName);
|
|
4841
|
+
if (foundGroups) {
|
|
4842
|
+
for (const g of foundGroups) {
|
|
4843
|
+
if (g === null || g === void 0 ? void 0 : g.totals) {
|
|
4844
|
+
const utilityRow = g.children[0];
|
|
4845
|
+
for (const [key, value] of Object.entries(g.totals)) {
|
|
4846
|
+
let cellValue = value;
|
|
4847
|
+
if (__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").dates.isIsoDate(cellValue)) {
|
|
4848
|
+
cellValue =
|
|
4849
|
+
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").dates.format(cellValue);
|
|
4850
|
+
}
|
|
4851
|
+
utilityRow.cells[key].value = String(cellValue);
|
|
4852
|
+
utilityRow.cells[key].obj.k = String(cellValue);
|
|
4853
|
+
utilityRow.cells[key].displayedValue =
|
|
4854
|
+
String(cellValue);
|
|
4737
4855
|
}
|
|
4856
|
+
totalsMatrixData.rows.push(utilityRow);
|
|
4738
4857
|
}
|
|
4739
|
-
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
|
|
4740
4858
|
}
|
|
4741
|
-
totalsMatrixColumns.push(currentColumn);
|
|
4742
|
-
}
|
|
4743
|
-
});
|
|
4744
|
-
});
|
|
4745
|
-
// set columns
|
|
4746
|
-
totalsMatrixData.columns = totalsMatrixColumns;
|
|
4747
|
-
// calc rows
|
|
4748
|
-
const totalsMatrixRows = [];
|
|
4749
|
-
let index = 0;
|
|
4750
|
-
__classPrivateFieldGet(this, _KupDataTable_rows, "f").forEach((row) => {
|
|
4751
|
-
const cells = {};
|
|
4752
|
-
ids.forEach((id) => {
|
|
4753
|
-
let totalValue = row.group.totals[id];
|
|
4754
|
-
if (!totalValue) {
|
|
4755
|
-
totalValue = row.group.id;
|
|
4756
|
-
}
|
|
4757
|
-
if (__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").dates.isIsoDate(totalValue)) {
|
|
4758
|
-
totalValue = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
|
|
4759
4859
|
}
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4860
|
+
}
|
|
4861
|
+
}
|
|
4862
|
+
// ---------------------------
|
|
4863
|
+
// Finalize matrix
|
|
4864
|
+
// ---------------------------
|
|
4865
|
+
this.totalsMatrixView = true;
|
|
4866
|
+
this.groups = groupsToInsert;
|
|
4867
|
+
this.data = Object.assign({}, totalsMatrixData); // update dataset
|
|
4868
|
+
this.totals = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_promoteTotals).call(this, this.totals); // promote totals
|
|
4869
|
+
this.visibleColumns = columnIds;
|
|
4870
|
+
}, _KupDataTable_findGroupsAtLevel = function _KupDataTable_findGroupsAtLevel(group, columnName) {
|
|
4871
|
+
let results = [];
|
|
4872
|
+
if (!group || !Array.isArray(group.children)) {
|
|
4873
|
+
return results;
|
|
4874
|
+
}
|
|
4875
|
+
// check if any child group matches the columnName
|
|
4876
|
+
const hasMatch = group.children.some((child) => { var _a; return ((_a = child.group) === null || _a === void 0 ? void 0 : _a.column) === columnName; });
|
|
4877
|
+
if (hasMatch) {
|
|
4878
|
+
// collect all sibling groups at this level
|
|
4879
|
+
results.push(...group.children.map((child) => child.group));
|
|
4880
|
+
}
|
|
4881
|
+
else {
|
|
4882
|
+
// traverse children
|
|
4883
|
+
for (const child of group.children) {
|
|
4884
|
+
results.push(...__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_findGroupsAtLevel).call(this, child.group, columnName));
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
return results;
|
|
4888
|
+
}, _KupDataTable_getGroupElementsBefore = function _KupDataTable_getGroupElementsBefore(arr, target) {
|
|
4889
|
+
const index = arr.findIndex((obj) => obj.column === target);
|
|
4890
|
+
if (index <= 0) {
|
|
4891
|
+
return []; // not found or at index 0
|
|
4892
|
+
}
|
|
4893
|
+
return arr.slice(0, index);
|
|
4894
|
+
}, _KupDataTable_buildTotalTitle = function _KupDataTable_buildTotalTitle(originalTitle, totalMode) {
|
|
4895
|
+
if (totalMode.startsWith(TotalMode.MATH)) {
|
|
4896
|
+
return `${TotalLabel[TotalMode.MATH]} ${originalTitle}`;
|
|
4897
|
+
}
|
|
4898
|
+
const totalModeKey = Object.keys(TotalMode).find((key) => TotalMode[key] === totalMode);
|
|
4899
|
+
const label = totalModeKey ? TotalLabel[totalModeKey] : totalMode;
|
|
4900
|
+
return `${label} ${originalTitle}`;
|
|
4901
|
+
}, _KupDataTable_promoteTotals = function _KupDataTable_promoteTotals(totals) {
|
|
4902
|
+
const updated = {};
|
|
4903
|
+
for (const [key, mode] of Object.entries(totals)) {
|
|
4904
|
+
switch (mode) {
|
|
4782
4905
|
case TotalMode.DISTINCT:
|
|
4783
|
-
|
|
4906
|
+
updated[key] = TotalMode.COUNT;
|
|
4784
4907
|
break;
|
|
4785
4908
|
case TotalMode.COUNT:
|
|
4786
|
-
|
|
4909
|
+
updated[key] = TotalMode.SUM;
|
|
4787
4910
|
break;
|
|
4788
4911
|
default:
|
|
4789
|
-
|
|
4912
|
+
updated[key] = mode;
|
|
4790
4913
|
break;
|
|
4791
4914
|
}
|
|
4792
|
-
}
|
|
4793
|
-
|
|
4794
|
-
this.totals = Object.assign({}, updatedTotals);
|
|
4915
|
+
}
|
|
4916
|
+
return updated;
|
|
4795
4917
|
}, _KupDataTable_setObjForTotalsMatrix = function _KupDataTable_setObjForTotalsMatrix(column, totals) {
|
|
4918
|
+
var _a;
|
|
4796
4919
|
const obj = column.obj;
|
|
4797
4920
|
const totalMode = totals[column.name];
|
|
4921
|
+
// Date columns: keep MAX/MIN modes
|
|
4798
4922
|
if (__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.isDate(obj)) {
|
|
4799
|
-
|
|
4800
|
-
if (totalMode === TotalMode.MAX || totalMode === TotalMode.MIN) {
|
|
4923
|
+
if (totalMode === TotalMode.MAX || totalMode === TotalMode.MIN)
|
|
4801
4924
|
return;
|
|
4802
|
-
}
|
|
4803
4925
|
}
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
}
|
|
4926
|
+
// Percentage numbers: keep COUNT/DISTINCT modes
|
|
4927
|
+
if (__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.isNumber(obj) &&
|
|
4928
|
+
((_a = obj.p) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'P') {
|
|
4929
|
+
if (totalMode === TotalMode.COUNT ||
|
|
4930
|
+
totalMode === TotalMode.DISTINCT) {
|
|
4931
|
+
return;
|
|
4811
4932
|
}
|
|
4812
4933
|
}
|
|
4813
|
-
// force
|
|
4814
|
-
column.obj = {
|
|
4815
|
-
t: 'NR',
|
|
4816
|
-
p: '',
|
|
4817
|
-
k: '',
|
|
4818
|
-
};
|
|
4934
|
+
// Default: force numeric
|
|
4935
|
+
column.obj = { t: 'NR', p: '', k: '' };
|
|
4819
4936
|
if (column.icon) {
|
|
4820
4937
|
delete column.icon;
|
|
4821
4938
|
}
|
|
@@ -4893,7 +5010,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4893
5010
|
}, _KupDataTable_didLoadInteractables = function _KupDataTable_didLoadInteractables() {
|
|
4894
5011
|
__classPrivateFieldGet(this, _KupDataTable_interactableTouch, "f").push(__classPrivateFieldGet(this, _KupDataTable_tableRef, "f"));
|
|
4895
5012
|
const tapCb = (e) => {
|
|
4896
|
-
var _a, _b, _c, _d;
|
|
5013
|
+
var _a, _b, _c, _d, _e;
|
|
4897
5014
|
if (__classPrivateFieldGet(this, _KupDataTable_hold, "f")) {
|
|
4898
5015
|
__classPrivateFieldSet(this, _KupDataTable_hold, false, "f");
|
|
4899
5016
|
return;
|
|
@@ -4912,7 +5029,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4912
5029
|
const details = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
4913
5030
|
// in case a cell action icon is clicked
|
|
4914
5031
|
if (((_b = (_a = details === null || details === void 0 ? void 0 : details.cell) === null || _a === void 0 ? void 0 : _a.obj) === null || _b === void 0 ? void 0 : _b.t) !== 'J4' &&
|
|
4915
|
-
((_d = (_c = details === null || details === void 0 ? void 0 : details.cell) === null || _c === void 0 ? void 0 : _c.obj) === null || _d === void 0 ? void 0 : _d.p) !== 'ICO'
|
|
5032
|
+
((_d = (_c = details === null || details === void 0 ? void 0 : details.cell) === null || _c === void 0 ? void 0 : _c.obj) === null || _d === void 0 ? void 0 : _d.p) !== 'ICO' &&
|
|
5033
|
+
((_e = details === null || details === void 0 ? void 0 : details.cell) === null || _e === void 0 ? void 0 : _e.shape) !== FCellShapes.ICON) {
|
|
4916
5034
|
break;
|
|
4917
5035
|
}
|
|
4918
5036
|
}
|
|
@@ -6800,7 +6918,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6800
6918
|
const rowActions = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").data.row.buildRowActions(row, this.getVisibleColumns({ includeCodVer: true }), this.rowActions, (_b = this.commands) !== null && _b !== void 0 ? _b : []);
|
|
6801
6919
|
if (__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").data.action.checkEveryActionHasOnlyIcon(rowActions) ||
|
|
6802
6920
|
(rowActions.length === 1 && rowActions[0].icon)) {
|
|
6803
|
-
rowActions.forEach((action
|
|
6921
|
+
rowActions.forEach((action) => {
|
|
6804
6922
|
var _a;
|
|
6805
6923
|
const imageProp = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").data.action.buildImageProp(action.icon, action.text || ((_a = action.column) === null || _a === void 0 ? void 0 : _a.title) || '', 'action', () => {
|
|
6806
6924
|
this.kupRowActionItemClick.emit({
|
|
@@ -6810,7 +6928,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6810
6928
|
obj: action.obj,
|
|
6811
6929
|
cell: action.cell,
|
|
6812
6930
|
type: action.type,
|
|
6813
|
-
index: index,
|
|
6931
|
+
index: action.index,
|
|
6814
6932
|
column: action.column,
|
|
6815
6933
|
});
|
|
6816
6934
|
});
|
|
@@ -6913,6 +7031,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6913
7031
|
__classPrivateFieldGet(this, _KupDataTable_renderedRows, "f").push(row);
|
|
6914
7032
|
const rowClass = {
|
|
6915
7033
|
selected: this.selectedRows.includes(row),
|
|
7034
|
+
inserted: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_isRowInserted).call(this, row.id),
|
|
7035
|
+
modified: !__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_isRowInserted).call(this, row.id) && __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_isRowModified).call(this, row.id),
|
|
6916
7036
|
};
|
|
6917
7037
|
if (row.cssClass) {
|
|
6918
7038
|
rowClass[row.cssClass] = true;
|
|
@@ -7128,7 +7248,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
7128
7248
|
return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE) +
|
|
7129
7249
|
' (' +
|
|
7130
7250
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
|
|
7131
|
-
')', label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () =>
|
|
7251
|
+
')', label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () => this.toggleTotalsMatrix() })));
|
|
7252
|
+
}, _KupDataTable_renderBackFromTotalsMatrix = function _KupDataTable_renderBackFromTotalsMatrix() {
|
|
7253
|
+
return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.BACK_TO_ORIGINAL_TABLE) +
|
|
7254
|
+
' (' +
|
|
7255
|
+
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
|
|
7256
|
+
')', label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.BACK_TO_ORIGINAL_TABLE), icon: "exposure", "onkup-button-click": () => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_switchBackFromTotalsMatrix).call(this) })));
|
|
7132
7257
|
}, _KupDataTable_renderGridPanel = function _KupDataTable_renderGridPanel() {
|
|
7133
7258
|
const listItems = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, __classPrivateFieldGet(this, _KupDataTable_GRID_CODES, "f"), __classPrivateFieldGet(this, _KupDataTable_GRID_ICONS, "f"), this.showGrid);
|
|
7134
7259
|
const listData = { data: listItems, showIcons: true };
|
|
@@ -7176,18 +7301,39 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
7176
7301
|
return (h("kup-dropdown-button", Object.assign({}, commandObj.data, { styling: styling, sizing: KupComponentSizing.MEDIUM, label: commandObj.value, data: data, "onkup-dropdownbutton-itemclick": (e) => {
|
|
7177
7302
|
__classPrivateFieldGet(this, _KupDataTable_handleUpdateClick, "f").call(this, e.detail.node);
|
|
7178
7303
|
} })));
|
|
7304
|
+
}, _KupDataTable_renderOtherButtons = function _KupDataTable_renderOtherButtons() {
|
|
7305
|
+
const styling = FButtonStyling.FLAT;
|
|
7306
|
+
const addCommands = () => {
|
|
7307
|
+
var _a, _b, _c;
|
|
7308
|
+
(_c = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.setup) === null || _b === void 0 ? void 0 : _b.otherCommands) === null || _c === void 0 ? void 0 : _c.forEach((commandObj) => {
|
|
7309
|
+
commandButtons.push((commandObj === null || commandObj === void 0 ? void 0 : commandObj.children) && (commandObj === null || commandObj === void 0 ? void 0 : commandObj.children.length) > 0
|
|
7310
|
+
? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderCommandDropDownButton).call(this, commandObj, styling)
|
|
7311
|
+
: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderCommandButton).call(this, commandObj, styling));
|
|
7312
|
+
});
|
|
7313
|
+
};
|
|
7314
|
+
let commandButtons = [];
|
|
7315
|
+
addCommands();
|
|
7316
|
+
return (!!commandButtons.length && (h("div", { class: "commands" }, commandButtons)));
|
|
7179
7317
|
}, _KupDataTable_renderUpdateButtons = function _KupDataTable_renderUpdateButtons() {
|
|
7180
7318
|
const styling = FButtonStyling.FLAT;
|
|
7181
7319
|
const createRowWithInputFields = () => {
|
|
7182
7320
|
var _a;
|
|
7183
|
-
|
|
7184
|
-
(_a =
|
|
7185
|
-
var _a;
|
|
7186
|
-
|
|
7187
|
-
shape: (_a = c.shape) !== null && _a !== void 0 ? _a : FCellShapes.
|
|
7321
|
+
const row = { cells: {} };
|
|
7322
|
+
(_a = this.data) === null || _a === void 0 ? void 0 : _a.columns.forEach((c) => {
|
|
7323
|
+
var _a, _b;
|
|
7324
|
+
const cell = {
|
|
7325
|
+
shape: (_a = c.shape) !== null && _a !== void 0 ? _a : FCellShapes.TEXT_FIELD,
|
|
7188
7326
|
obj: Object.assign({}, c.obj),
|
|
7189
|
-
isEditable: true,
|
|
7327
|
+
isEditable: (_b = c.isEditable) !== null && _b !== void 0 ? _b : true,
|
|
7328
|
+
data: {},
|
|
7190
7329
|
};
|
|
7330
|
+
if (c['length'] && c['maxLength']) {
|
|
7331
|
+
cell.data = {
|
|
7332
|
+
size: c['length'],
|
|
7333
|
+
maxLength: c['maxLength'],
|
|
7334
|
+
};
|
|
7335
|
+
}
|
|
7336
|
+
row.cells[c.name] = cell;
|
|
7191
7337
|
});
|
|
7192
7338
|
return row;
|
|
7193
7339
|
};
|
|
@@ -7248,7 +7394,24 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
7248
7394
|
enabled: operationList === null || operationList === void 0 ? void 0 : operationList.delete,
|
|
7249
7395
|
icon: 'minus',
|
|
7250
7396
|
title: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ROW_DELETE),
|
|
7251
|
-
onClickHandler: () =>
|
|
7397
|
+
onClickHandler: () => {
|
|
7398
|
+
const selectedRowsIds = this.selectedRows.map((row) => row.id);
|
|
7399
|
+
const insertedRowsIds = __classPrivateFieldGet(this, _KupDataTable_insertedRowIds, "f");
|
|
7400
|
+
if (__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_arraysContainSameElements).call(this, selectedRowsIds, insertedRowsIds)) {
|
|
7401
|
+
//If the only rows to delete are the ones inserted by the user
|
|
7402
|
+
//AND NOT CONFIRMED, avoid calling the update
|
|
7403
|
+
this.deleteRows(selectedRowsIds);
|
|
7404
|
+
}
|
|
7405
|
+
else {
|
|
7406
|
+
this.kupUpdate.emit({
|
|
7407
|
+
comp: this,
|
|
7408
|
+
id: this.rootElement.id,
|
|
7409
|
+
originalData: __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f"),
|
|
7410
|
+
updatedData: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_createDeletePayload).call(this),
|
|
7411
|
+
command: undefined,
|
|
7412
|
+
});
|
|
7413
|
+
}
|
|
7414
|
+
},
|
|
7252
7415
|
},
|
|
7253
7416
|
};
|
|
7254
7417
|
Object.values(operations)
|
|
@@ -7262,4 +7425,18 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
7262
7425
|
addCommands();
|
|
7263
7426
|
addOperations();
|
|
7264
7427
|
return (!!commandButtons.length && (h("div", { class: "commands" }, commandButtons)));
|
|
7428
|
+
}, _KupDataTable_createDeletePayload = function _KupDataTable_createDeletePayload() {
|
|
7429
|
+
const idsToRemove = this.selectedRows.map((item) => item.id);
|
|
7430
|
+
const newRows = __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f").rows.filter((row) => !idsToRemove.includes(row.id));
|
|
7431
|
+
return getDiffData(__classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f"), Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupDataTable_originalDataLoaded, "f")), { rows: newRows }), true);
|
|
7432
|
+
}, _KupDataTable_isRowInserted = function _KupDataTable_isRowInserted(rowId) {
|
|
7433
|
+
return __classPrivateFieldGet(this, _KupDataTable_insertedRowIds, "f").includes(rowId);
|
|
7434
|
+
}, _KupDataTable_isRowModified = function _KupDataTable_isRowModified(rowId) {
|
|
7435
|
+
return __classPrivateFieldGet(this, _KupDataTable_modifiedRowsIds, "f").includes(rowId);
|
|
7436
|
+
}, _KupDataTable_arraysContainSameElements = function _KupDataTable_arraysContainSameElements(arr1, arr2) {
|
|
7437
|
+
if (arr1.length !== arr2.length)
|
|
7438
|
+
return false;
|
|
7439
|
+
const sorted1 = [...arr1].sort();
|
|
7440
|
+
const sorted2 = [...arr2].sort();
|
|
7441
|
+
return sorted1.every((val, index) => val === sorted2[index]);
|
|
7265
7442
|
};
|