@sme.up/ketchup 10.1.0 → 10.2.0
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-c3ae141e.js → f-button-bfafefb3.js} +3 -3
- package/dist/cjs/{f-cell-83ca2b8b.js → f-cell-3ed4ad9e.js} +376 -168
- package/dist/cjs/{f-checkbox-59fb7aa5.js → f-checkbox-aaa6d45c.js} +3 -2
- package/dist/cjs/{f-chip-286f1c8d.js → f-chip-b936dcaf.js} +146 -10
- package/dist/cjs/{f-image-d22b012f.js → f-image-db10b066.js} +1 -1
- package/dist/cjs/{f-object-field-0986026c.js → f-object-field-348fa103.js} +13 -6
- package/dist/cjs/{f-paginator-utils-ee281217.js → f-paginator-utils-f951cc54.js} +15 -6
- package/dist/cjs/{f-text-field-463a6dbe.js → f-text-field-e41f653a.js} +15 -15
- package/dist/cjs/{f-typography-271f5037.js → f-typography-85d8238a.js} +1 -1
- package/dist/cjs/{index-e8aa3c73.js → index-c7d441d8.js} +8 -3
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +43 -23
- package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_29.cjs.entry.js} +2360 -1472
- package/dist/cjs/kup-box.cjs.entry.js +60 -59
- package/dist/cjs/kup-calendar.cjs.entry.js +12 -11
- package/dist/cjs/kup-card-list.cjs.entry.js +3 -3
- package/dist/cjs/kup-cell.cjs.entry.js +17 -12
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +12 -12
- package/dist/cjs/kup-dashboard.cjs.entry.js +7 -7
- package/dist/cjs/{kup-data-table-helper-c7d3445e.js → kup-data-table-helper-adaa11bb.js} +52 -84
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +46 -14
- package/dist/cjs/kup-editor.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +5 -5
- package/dist/cjs/kup-gantt_10.cjs.entry.js +33 -33
- package/dist/cjs/kup-grid.cjs.entry.js +3 -3
- package/dist/cjs/kup-htm.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-image-list.cjs.entry.js +25 -21
- package/dist/cjs/kup-input-panel.cjs.entry.js +102 -73
- package/dist/cjs/kup-lazy.cjs.entry.js +14 -14
- package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
- package/dist/cjs/{kup-manager-f41ad314.js → kup-manager-39bc2be8.js} +425 -246
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
- package/dist/cjs/kup-object-field.cjs.entry.js +7 -7
- package/dist/cjs/kup-pdf.cjs.entry.js +4 -4
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +3 -3
- package/dist/cjs/kup-planner.cjs.entry.js +6 -6
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +4 -4
- package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
- package/dist/cjs/kup-txt.cjs.entry.js +4 -4
- package/dist/cjs/kup-typography-list.cjs.entry.js +5 -5
- package/dist/cjs/kup-typography.cjs.entry.js +115 -15
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/kup-accordion/kup-accordion.css +3 -3
- package/dist/collection/components/kup-activity-timeline/kup-activity-timeline-declarations.js +1 -1
- package/dist/collection/components/kup-activity-timeline/kup-activity-timeline.css +3 -3
- package/dist/collection/components/kup-activity-timeline/kup-activity-timeline.js +37 -17
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +3 -3
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +49 -13
- package/dist/collection/components/kup-badge/kup-badge.css +3 -3
- package/dist/collection/components/kup-box/kup-box.css +3 -3
- package/dist/collection/components/kup-box/kup-box.js +48 -47
- package/dist/collection/components/kup-button/kup-button.css +3 -3
- package/dist/collection/components/kup-button-list/kup-button-list.css +3 -3
- package/dist/collection/components/kup-button-list/kup-button-list.js +23 -3
- package/dist/collection/components/kup-calendar/kup-calendar.css +4 -4
- package/dist/collection/components/kup-calendar/kup-calendar.js +6 -5
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +4 -2
- package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +5 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +78 -1
- package/dist/collection/components/kup-card/kup-card.css +248 -20
- package/dist/collection/components/kup-card/kup-card.js +5 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -8
- package/dist/collection/components/kup-card-list/kup-card-list.css +3 -3
- package/dist/collection/components/kup-cell/kup-cell.css +3 -3
- package/dist/collection/components/kup-cell/kup-cell.js +28 -3
- package/dist/collection/components/kup-chart/kup-chart.css +3 -3
- package/dist/collection/components/kup-checkbox/kup-checkbox.css +3 -3
- package/dist/collection/components/kup-chip/kup-chip.css +21 -7
- package/dist/collection/components/kup-chip/kup-chip.js +104 -33
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +3 -3
- package/dist/collection/components/kup-combobox/kup-combobox.css +3 -3
- package/dist/collection/components/kup-combobox/kup-combobox.js +30 -4
- package/dist/collection/components/kup-dashboard/kup-dashboard.css +3 -3
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +13 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +6 -3
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +2 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +55 -34
- package/dist/collection/components/kup-data-table/kup-data-table.js +707 -232
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +3 -3
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +11 -6
- package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +3 -0
- package/dist/collection/components/kup-dialog/kup-dialog.css +31 -6
- package/dist/collection/components/kup-dialog/kup-dialog.js +169 -11
- package/dist/collection/components/kup-drawer/kup-drawer.css +3 -3
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
- package/dist/collection/components/kup-echart/kup-echart.css +3 -3
- package/dist/collection/components/kup-echart/kup-echart.js +106 -11
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +15 -12
- package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +5 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.css +203 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +424 -0
- package/dist/collection/components/kup-form/kup-form.css +3 -3
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-gauge/kup-gauge.css +3 -3
- package/dist/collection/components/kup-grid/kup-grid.css +3 -3
- package/dist/collection/components/kup-htm/kup-htm.css +3 -3
- package/dist/collection/components/kup-htm/kup-htm.js +1 -1
- package/dist/collection/components/kup-iframe/kup-iframe.css +3 -3
- package/dist/collection/components/kup-image/assets/svg/circle.svg +3 -0
- package/dist/collection/components/kup-image/assets/svg/up.svg +43 -0
- package/dist/collection/components/kup-image/kup-image.css +3 -3
- package/dist/collection/components/kup-image-list/kup-image-list.css +6 -6
- package/dist/collection/components/kup-image-list/kup-image-list.js +15 -11
- package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +13 -4
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +12 -5
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +89 -59
- package/dist/collection/components/kup-lazy/kup-lazy.css +3 -3
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-list/kup-list.css +3 -3
- package/dist/collection/components/kup-list/kup-list.js +59 -13
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +3 -3
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +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.css +3 -3
- 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.css +3 -3
- package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
- package/dist/collection/components/kup-planner/kup-planner.css +3 -3
- 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-header.module.css +3 -3
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +6 -6
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +3 -3
- 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.css +4 -4
- 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.css +3 -3
- 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.css +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.css +3 -3
- 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 +3 -3
- 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.css +3 -3
- 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.css +3 -3
- 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.css +3 -3
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.css +3 -3
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-radio/kup-radio.css +3 -3
- package/dist/collection/components/kup-rating/kup-rating.css +3 -3
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -4
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.css +3 -3
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.css +3 -3
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +9 -7
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +182 -20
- package/dist/collection/components/kup-text-field/kup-text-field.css +3 -3
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +3 -3
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +57 -9
- package/dist/collection/components/kup-toolbar/kup-toolbar.css +9 -12
- package/dist/collection/components/kup-tree/kup-tree.css +24 -13
- package/dist/collection/components/kup-tree/kup-tree.js +93 -45
- package/dist/collection/components/kup-txt/kup-txt.css +3 -3
- package/dist/collection/components/kup-txt/kup-txt.js +1 -1
- package/dist/collection/components/kup-typography/kup-typography.css +3 -3
- package/dist/collection/components/kup-typography/kup-typography.js +198 -28
- package/dist/collection/components/kup-typography-list/kup-typography-list.css +3 -3
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/collection/f-components/f-button/f-button.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +6 -1
- package/dist/collection/f-components/f-cell/f-cell.js +80 -52
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -0
- package/dist/collection/f-components/f-chip/f-chip.js +12 -7
- package/dist/collection/f-components/f-label/f-label-declarations.js +1 -0
- package/dist/collection/f-components/f-label/f-label.js +21 -0
- package/dist/collection/f-components/f-object-field/f-object-field.js +6 -1
- package/dist/collection/f-components/f-paginator/f-paginator.js +10 -2
- package/dist/collection/f-components/f-radio/f-radio.js +17 -6
- package/dist/collection/f-components/f-text-field/f-text-field.js +12 -12
- package/dist/collection/managers/kup-data/kup-data.js +8 -0
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +12 -1
- package/dist/collection/managers/kup-interact/kup-interact.js +43 -22
- package/dist/collection/managers/kup-keys-binding/kup-keys-binding.js +2 -2
- package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -2
- package/dist/collection/managers/kup-manager/kup-manager.js +8 -1
- package/dist/collection/managers/kup-perf-monitoring/kup-perf-monitoring.js +55 -0
- package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning-declarations.js +5 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +3 -0
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +7 -3
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/collection/utils/cell-utils.js +22 -8
- package/dist/collection/utils/filters/filters-column-menu.js +9 -22
- package/dist/collection/utils/filters/filters-declarations.js +1 -1
- package/dist/collection/utils/filters/filters-rows.js +36 -58
- package/dist/collection/utils/filters/filters-tree-items.js +11 -11
- package/dist/collection/utils/filters/filters.js +19 -9
- package/dist/collection/utils/g-cell-style-generator.js +188 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +0 -2
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +10 -10
- package/dist/collection/utils/label-utils.js +58 -0
- package/dist/collection/utils/utils.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/kup-accordion.js +23 -18
- package/dist/components/kup-activity-timeline.js +61 -36
- 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 +29 -23
- package/dist/components/kup-card-list.js +24 -19
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +30 -20
- 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 +23 -18
- 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 +23 -18
- 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 +25 -20
- package/dist/components/kup-file-upload.d.ts +11 -0
- package/dist/components/kup-file-upload.js +6 -0
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gantt-calendar.js +1 -1
- package/dist/components/kup-gantt.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid-renderer.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-horizontal-scroll.js +1 -1
- package/dist/components/kup-htm.js +24 -19
- package/dist/components/kup-iframe.js +23 -18
- package/dist/components/kup-image-list.js +38 -29
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +117 -83
- package/dist/components/kup-lazy.js +34 -29
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +30 -25
- package/dist/components/kup-nav-bar.js +24 -19
- package/dist/components/kup-numeric-picker.js +24 -19
- package/dist/components/kup-object-field.js +23 -18
- package/dist/components/kup-pdf.js +24 -19
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +41 -36
- package/dist/components/kup-probe.js +23 -18
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +24 -19
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +24 -19
- 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 +24 -19
- package/dist/components/kup-typography-list.js +24 -19
- package/dist/components/kup-typography.js +136 -29
- package/dist/components/kup-vertical-scroll.js +1 -1
- package/dist/components/{p-c43d08ab.js → p-0e85ab66.js} +5 -5
- package/dist/components/{p-5f307bf2.js → p-3438f15f.js} +71 -65
- package/dist/components/p-3b4cdace.js +56 -0
- package/dist/components/p-55542b47.js +38 -0
- package/dist/components/{p-0e6c0355.js → p-67ba8cd7.js} +2 -2
- package/dist/components/{p-5517e8e8.js → p-6992b96f.js} +5 -5
- package/dist/components/{p-ea6e4e37.js → p-6bfda249.js} +3 -3
- package/dist/components/{p-ef8026e9.js → p-7d0f1f90.js} +3075 -1532
- package/dist/components/{p-709a51cf.js → p-8472facf.js} +4 -4
- package/dist/components/p-97053b4d.js +45 -0
- package/dist/components/{p-0ac9fd6c.js → p-a0258e6f.js} +69 -29
- package/dist/components/{p-a3f73a90.js → p-b304b91c.js} +423 -246
- package/dist/components/{p-09b28008.js → p-b80494d7.js} +23 -18
- package/dist/components/{p-53e38c4a.js → p-bd3047ee.js} +3 -3
- package/dist/components/{p-4efa19a7.js → p-c325da75.js} +5 -5
- package/dist/components/p-c7c7f760.js +49 -0
- package/dist/components/{p-9da8cd93.js → p-d0e33e04.js} +16 -16
- package/dist/components/{p-c62695d4.js → p-d7136d08.js} +4 -4
- package/dist/components/{p-2fff7268.js → p-de04aef6.js} +17 -17
- package/dist/components/{p-e30483fa.js → p-eb8a2811.js} +22 -17
- package/dist/components/{p-2e5f2e07.js → p-ef8cbd35.js} +6 -1
- package/dist/components/{p-e677dddf.js → p-f2e153e3.js} +7 -7
- package/dist/esm/{f-button-f1040575.js → f-button-3c8f4506.js} +3 -3
- package/dist/esm/{f-cell-82b9ae70.js → f-cell-6576e009.js} +376 -168
- package/dist/esm/{f-checkbox-3ba20ca4.js → f-checkbox-5cdd1cad.js} +3 -2
- package/dist/esm/{f-chip-f98be128.js → f-chip-bb62428a.js} +145 -11
- package/dist/esm/{f-image-9b15e9ac.js → f-image-a2ecd7c3.js} +1 -1
- package/dist/esm/{f-object-field-1a4f54ea.js → f-object-field-b87b6ae6.js} +13 -6
- package/dist/esm/{f-paginator-utils-2fc5cd18.js → f-paginator-utils-04903d74.js} +15 -6
- package/dist/esm/{f-text-field-e766e681.js → f-text-field-9be88e51.js} +15 -15
- package/dist/esm/{f-typography-65229068.js → f-typography-8c914ec6.js} +1 -1
- package/dist/esm/{index-c9246a86.js → index-9b0f4a0d.js} +8 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +4 -4
- package/dist/esm/kup-activity-timeline.entry.js +43 -23
- package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_29.entry.js} +2356 -1469
- package/dist/esm/kup-box.entry.js +60 -59
- package/dist/esm/kup-calendar.entry.js +12 -11
- package/dist/esm/kup-card-list.entry.js +3 -3
- package/dist/esm/kup-cell.entry.js +17 -12
- package/dist/esm/kup-custom-task-list-header_4.entry.js +12 -12
- package/dist/esm/kup-dashboard.entry.js +7 -7
- package/dist/esm/{kup-data-table-helper-e350cc90.js → kup-data-table-helper-13eb7abf.js} +52 -84
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +46 -14
- package/dist/esm/kup-editor.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +5 -5
- package/dist/esm/kup-gantt_10.entry.js +33 -33
- package/dist/esm/kup-grid.entry.js +3 -3
- package/dist/esm/kup-htm.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-image-list.entry.js +25 -21
- package/dist/esm/kup-input-panel.entry.js +102 -73
- package/dist/esm/kup-lazy.entry.js +14 -14
- package/dist/esm/kup-magic-box.entry.js +7 -7
- package/dist/esm/{kup-manager-6c75d73b.js → kup-manager-6aa0a1c7.js} +424 -247
- package/dist/esm/kup-nav-bar.entry.js +4 -4
- package/dist/esm/kup-numeric-picker.entry.js +6 -6
- package/dist/esm/kup-object-field.entry.js +7 -7
- package/dist/esm/kup-pdf.entry.js +4 -4
- package/dist/esm/kup-planner-renderer.entry.js +3 -3
- package/dist/esm/kup-planner.entry.js +6 -6
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +4 -4
- package/dist/esm/kup-snackbar.entry.js +6 -6
- package/dist/esm/kup-txt.entry.js +4 -4
- package/dist/esm/kup-typography-list.entry.js +5 -5
- package/dist/esm/kup-typography.entry.js +115 -15
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/assets/svg/circle.svg +3 -0
- package/dist/ketchup/assets/svg/up.svg +43 -0
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-07f50333.entry.js +1 -0
- package/dist/ketchup/p-0b1e0b48.js +1 -0
- package/dist/ketchup/p-0de49966.entry.js +1 -0
- package/dist/ketchup/{p-93d6f4a9.entry.js → p-100b8ae7.entry.js} +1 -1
- package/dist/ketchup/{p-bc37db5b.entry.js → p-15f192f0.entry.js} +1 -1
- package/dist/ketchup/p-267d1898.js +1 -0
- package/dist/ketchup/p-2d84c26e.entry.js +1 -0
- package/dist/ketchup/p-3cab6420.js +1 -0
- package/dist/ketchup/p-3dbafa20.entry.js +9 -0
- package/dist/ketchup/p-3e42953b.entry.js +1 -0
- package/dist/ketchup/p-42a1f9ec.entry.js +1 -0
- package/dist/ketchup/p-4677cfd1.entry.js +1 -0
- package/dist/ketchup/{p-865ce089.entry.js → p-4ffc1a88.entry.js} +1 -1
- package/dist/ketchup/p-55b0991f.entry.js +1 -0
- package/dist/ketchup/p-58002a23.entry.js +1 -0
- package/dist/ketchup/p-5d9f2d24.entry.js +1 -0
- package/dist/ketchup/p-65b23870.entry.js +1 -0
- package/dist/ketchup/p-6b529a6f.entry.js +16 -0
- package/dist/ketchup/{p-53596bee.entry.js → p-6d628b49.entry.js} +1 -1
- package/dist/ketchup/p-6fc1bb18.entry.js +1 -0
- package/dist/ketchup/{p-b0368f88.js → p-710d0a7d.js} +1 -1
- package/dist/ketchup/p-838d8e97.js +1 -0
- package/dist/ketchup/p-8be42f5c.js +1 -0
- package/dist/ketchup/p-92431583.entry.js +1 -0
- package/dist/ketchup/{p-50b0da0c.entry.js → p-9b907768.entry.js} +1 -1
- package/dist/ketchup/p-9bc02da6.entry.js +1 -0
- package/dist/ketchup/p-9edd90c2.entry.js +1 -0
- package/dist/ketchup/p-9f9428d1.js +1 -0
- package/dist/ketchup/p-a4b6d6c5.js +1 -0
- package/dist/ketchup/p-a597a851.entry.js +1 -0
- package/dist/ketchup/p-b365f2f2.entry.js +1 -0
- package/dist/ketchup/{p-543f99d3.entry.js → p-c2ccbaca.entry.js} +1 -1
- package/dist/ketchup/p-c4224227.js +1 -0
- package/dist/ketchup/{p-60cfddce.js → p-cec0955d.js} +1 -1
- package/dist/ketchup/p-d0554d1f.entry.js +1 -0
- package/dist/ketchup/p-d084b2d4.entry.js +1 -0
- package/dist/ketchup/{p-cdf92c8b.entry.js → p-d8dbf3df.entry.js} +1 -1
- package/dist/ketchup/{p-fe190410.entry.js → p-da44226a.entry.js} +1 -1
- package/dist/ketchup/p-e104cfb7.js +1 -0
- package/dist/ketchup/p-e4fa2cf3.js +21 -0
- package/dist/ketchup/{p-d8ef1613.entry.js → p-e6afa8a6.entry.js} +4 -4
- package/dist/ketchup/{p-54ebe3bd.entry.js → p-f87b7768.entry.js} +1 -1
- package/dist/ketchup/{p-03d1cafc.entry.js → p-f8a027a1.entry.js} +2 -2
- package/dist/ketchup/{p-bdd3e0a4.entry.js → p-fb775526.entry.js} +1 -1
- package/dist/ketchup/{p-2133fdbb.entry.js → p-fdcb43a2.entry.js} +1 -1
- package/dist/types/components/kup-activity-timeline/kup-activity-timeline-declarations.d.ts +2 -2
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +6 -0
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -0
- package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +2 -0
- package/dist/types/components/kup-cell/kup-cell.d.ts +3 -0
- package/dist/types/components/kup-chip/kup-chip.d.ts +16 -5
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +4 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +8 -2
- 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-state.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +36 -1
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +1 -0
- package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +3 -0
- package/dist/types/components/kup-dialog/kup-dialog.d.ts +16 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +15 -0
- package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +8 -0
- package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +62 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +5 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +3 -3
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +2 -1
- package/dist/types/components/kup-list/kup-list.d.ts +4 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +27 -6
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +8 -1
- package/dist/types/components/kup-tree/kup-tree.d.ts +2 -0
- package/dist/types/components/kup-typography/kup-typography.d.ts +30 -5
- package/dist/types/components.d.ts +296 -26
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +7 -3
- package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +2 -1
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +3 -1
- package/dist/types/f-components/f-label/f-label-declarations.d.ts +15 -0
- package/dist/types/f-components/f-label/f-label.d.ts +3 -0
- package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +1 -0
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +20 -1
- package/dist/types/managers/kup-interact/kup-interact.d.ts +7 -3
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +12 -4
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +2 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
- package/dist/types/managers/kup-perf-monitoring/kup-perf-monitoring.d.ts +7 -0
- package/dist/types/managers/kup-perf-tuning/kup-perf-tuning-declarations.d.ts +6 -0
- package/dist/types/types/GenericTypes.d.ts +2 -1
- package/dist/types/utils/cell-utils.d.ts +4 -6
- package/dist/types/utils/filters/filters-rows.d.ts +5 -5
- package/dist/types/utils/filters/filters-tree-items.d.ts +1 -1
- package/dist/types/utils/filters/filters.d.ts +4 -2
- package/dist/types/utils/g-cell-style-generator.d.ts +2 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -3
- package/dist/types/utils/label-utils.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/p-01015d54.js +0 -38
- package/dist/components/p-304eab56.js +0 -49
- package/dist/components/p-76c4c708.js +0 -56
- package/dist/components/p-aec44f8f.js +0 -45
- package/dist/ketchup/p-1206f77c.entry.js +0 -9
- package/dist/ketchup/p-153b7eda.js +0 -1
- package/dist/ketchup/p-2d3a89a0.entry.js +0 -1
- package/dist/ketchup/p-35e17994.entry.js +0 -1
- package/dist/ketchup/p-3f41285f.entry.js +0 -1
- package/dist/ketchup/p-4bbc1e40.entry.js +0 -1
- package/dist/ketchup/p-4c0d6ec5.entry.js +0 -1
- package/dist/ketchup/p-5ee25762.js +0 -1
- package/dist/ketchup/p-60cdaa75.entry.js +0 -1
- package/dist/ketchup/p-60e8333c.entry.js +0 -1
- package/dist/ketchup/p-7585373e.entry.js +0 -1
- package/dist/ketchup/p-792e9244.entry.js +0 -1
- package/dist/ketchup/p-7a36e244.js +0 -1
- package/dist/ketchup/p-7a4f5182.js +0 -1
- package/dist/ketchup/p-7c078bc1.entry.js +0 -1
- package/dist/ketchup/p-7fbb8a80.entry.js +0 -1
- package/dist/ketchup/p-8b97f53e.js +0 -1
- package/dist/ketchup/p-97fe2d0c.entry.js +0 -1
- package/dist/ketchup/p-9b92dd8f.entry.js +0 -1
- package/dist/ketchup/p-a781d278.entry.js +0 -1
- package/dist/ketchup/p-b120abd7.js +0 -1
- package/dist/ketchup/p-c5614700.js +0 -21
- package/dist/ketchup/p-ce31744e.entry.js +0 -1
- package/dist/ketchup/p-d104a456.js +0 -1
- package/dist/ketchup/p-d39c3267.js +0 -1
- package/dist/ketchup/p-e7f6ca6c.entry.js +0 -1
- package/dist/ketchup/p-eb908331.entry.js +0 -1
- package/dist/ketchup/p-f38c2d0e.entry.js +0 -16
- package/dist/ketchup/p-f648a3cb.entry.js +0 -1
- package/dist/ketchup/p-f8c8cc84.js +0 -1
|
@@ -14,10 +14,10 @@ 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_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_lastFocusedRow, _KupDataTable_maxRowsPerPage, _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,
|
|
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_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_renderCommandDropDownButton, _KupDataTable_renderUpdateButtons;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
|
-
import { FixedCellsClasses, FixedCellsCSSVarsBase, GroupLabelDisplayMode, LoadMoreMode, PaginatorPos, ShowGrid, SortMode, TotalMode, TotalLabel, KupDataTableProps, fieldColumn, iconColumn, keyColumn, SelectionMode, DataTableAreasEnum, } from "./kup-data-table-declarations";
|
|
20
|
-
import { getColumnByName, getValueForDisplay } from "../../utils/cell-utils";
|
|
19
|
+
import { FixedCellsClasses, FixedCellsCSSVarsBase, GroupLabelDisplayMode, LoadMoreMode, PaginatorPos, ShowGrid, SortMode, TotalMode, TotalLabel, KupDataTableProps, fieldColumn, iconColumn, keyColumn, SelectionMode, DataTableAreasEnum, TypesToDuplicate, } from "./kup-data-table-declarations";
|
|
20
|
+
import { getColumnByName, getValueForDisplay, isNegativeNumber, } from "../../utils/cell-utils";
|
|
21
21
|
import { calcTotals, normalizeRows, filterRows, groupRows, paginateRows, sortRows, getDiffData, decorateDataTable, } from "./kup-data-table-helper";
|
|
22
22
|
import { KupComponentSizing, } from "../../types/GenericTypes";
|
|
23
23
|
import { identify, getProps, setProps, getRegExpFromString, } from "../../utils/utils";
|
|
@@ -40,7 +40,7 @@ import { KupLanguageDensity, KupLanguageFontsize, KupLanguageGeneric, KupLanguag
|
|
|
40
40
|
import { KupThemeColorValues, KupThemeIconValues, } from "../../managers/kup-theme/kup-theme-declarations";
|
|
41
41
|
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
42
42
|
import { kupDragActiveAttr, KupDragEffect, kupDraggableCellAttr, kupDraggableColumnAttr, KupDropEventTypes, KupPointerEventTypes, } from "../../managers/kup-interact/kup-interact-declarations";
|
|
43
|
-
import { FCellPadding, FCellShapes, } from "../../f-components/f-cell/f-cell-declarations";
|
|
43
|
+
import { FCellClasses, FCellPadding, FCellShapes, } from "../../f-components/f-cell/f-cell-declarations";
|
|
44
44
|
import { FCell } from "../../f-components/f-cell/f-cell";
|
|
45
45
|
import { FPaginator } from "../../f-components/f-paginator/f-paginator";
|
|
46
46
|
import { pageChange, rowsPerPageChange, } from "../../f-components/f-paginator/f-paginator-utils";
|
|
@@ -48,6 +48,8 @@ import { KupDataNewColumnTypes, } from "../../managers/kup-data/kup-data-declara
|
|
|
48
48
|
import { FButton } from "../../f-components/f-button/f-button";
|
|
49
49
|
import { FButtonStyling } from "../../f-components/f-button/f-button-declarations";
|
|
50
50
|
import { KupColumnMenuIds } from "../../utils/kup-column-menu/kup-column-menu-declarations";
|
|
51
|
+
import { KupPerfTuningPriority } from "../../managers/kup-perf-tuning/kup-perf-tuning-declarations";
|
|
52
|
+
const dom = document.documentElement;
|
|
51
53
|
export class KupDataTable {
|
|
52
54
|
constructor() {
|
|
53
55
|
_KupDataTable_instances.add(this);
|
|
@@ -136,8 +138,12 @@ export class KupDataTable {
|
|
|
136
138
|
_KupDataTable_columnDropCardAnchor.set(this, null);
|
|
137
139
|
_KupDataTable_dropDownActionCardAnchor.set(this, null);
|
|
138
140
|
_KupDataTable_insertCount.set(this, 0);
|
|
141
|
+
_KupDataTable_lastFocusedColumn.set(this, null);
|
|
142
|
+
_KupDataTable_lastFocusedCell.set(this, null);
|
|
139
143
|
_KupDataTable_lastFocusedRow.set(this, null);
|
|
140
144
|
_KupDataTable_maxRowsPerPage.set(this, void 0);
|
|
145
|
+
_KupDataTable_readyPromise.set(this, void 0);
|
|
146
|
+
_KupDataTable_readyResolve.set(this, void 0);
|
|
141
147
|
_KupDataTable_BUTTON_CANCEL_ID.set(this, 'cancel');
|
|
142
148
|
_KupDataTable_BUTTON_SUBMIT_ID.set(this, 'submit');
|
|
143
149
|
_KupDataTable_FIELDS_FORM_ID.set(this, 'fieldsForm');
|
|
@@ -145,15 +151,6 @@ export class KupDataTable {
|
|
|
145
151
|
_KupDataTable_MESSAGE_WRAPPER_ID.set(this, 'messageWrapper');
|
|
146
152
|
_KupDataTable_INSERT_PREFIX.set(this, 'insert_');
|
|
147
153
|
_KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER.set(this, 50);
|
|
148
|
-
_KupDataTable_eventBlurNames.set(this, new Map([
|
|
149
|
-
[FCellShapes.AUTOCOMPLETE, 'kup-autocomplete-blur'],
|
|
150
|
-
[FCellShapes.CHIP, 'kup-textfield-blur'],
|
|
151
|
-
[FCellShapes.COMBOBOX, 'kup-combobox-blur'],
|
|
152
|
-
[FCellShapes.DATE, 'kup-datepicker-blur'],
|
|
153
|
-
[FCellShapes.MULTI_AUTOCOMPLETE, 'kup-autocomplete-blur'],
|
|
154
|
-
[FCellShapes.MULTI_COMBOBOX, 'kup-combobox-blur'],
|
|
155
|
-
[FCellShapes.TIME, 'kup-timepicker-blur'],
|
|
156
|
-
]));
|
|
157
154
|
_KupDataTable_stickyHeaderPosition.set(this, () => {
|
|
158
155
|
if (__classPrivateFieldGet(this, _KupDataTable_tableRef, "f")) {
|
|
159
156
|
if (__classPrivateFieldGet(this, _KupDataTable_tableIntersecting, "f")) {
|
|
@@ -170,6 +167,67 @@ export class KupDataTable {
|
|
|
170
167
|
}
|
|
171
168
|
}
|
|
172
169
|
});
|
|
170
|
+
//======== Event Listeners ========
|
|
171
|
+
_KupDataTable_horNav.set(this, (isRight) => {
|
|
172
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f")) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this, true);
|
|
176
|
+
const tr = __classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
177
|
+
const cells = tr.querySelectorAll('.f-cell');
|
|
178
|
+
const oldIndex = Array.from(cells).indexOf(__classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
179
|
+
let newIndex = isRight ? oldIndex + 1 : oldIndex - 1;
|
|
180
|
+
if (newIndex < 0) {
|
|
181
|
+
newIndex = cells.length - 1;
|
|
182
|
+
}
|
|
183
|
+
else if (newIndex >= cells.length) {
|
|
184
|
+
newIndex = 0;
|
|
185
|
+
}
|
|
186
|
+
const focused = cells[newIndex];
|
|
187
|
+
const focusedProps = focused['kup-get-cell-props']();
|
|
188
|
+
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), false);
|
|
189
|
+
__classPrivateFieldSet(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
190
|
+
});
|
|
191
|
+
_KupDataTable_verNav.set(this, (isDown) => {
|
|
192
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f")) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this, true);
|
|
196
|
+
const tr = __classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f").element.closest('tr:not(.group)');
|
|
197
|
+
const cellXIndex = Array.from(tr.querySelectorAll('.f-cell')).indexOf(__classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f").element);
|
|
198
|
+
const rows = tr.parentElement.querySelectorAll('tr:not(.group)');
|
|
199
|
+
const index = Array.from(rows).indexOf(tr);
|
|
200
|
+
let newIndex = isDown ? index + 1 : index - 1;
|
|
201
|
+
if (newIndex < 0) {
|
|
202
|
+
newIndex = rows.length - 1;
|
|
203
|
+
}
|
|
204
|
+
else if (newIndex >= rows.length) {
|
|
205
|
+
newIndex = 0;
|
|
206
|
+
}
|
|
207
|
+
const focusedRow = rows[newIndex];
|
|
208
|
+
const focusedCells = focusedRow.querySelectorAll('.f-cell');
|
|
209
|
+
const focused = focusedCells[cellXIndex];
|
|
210
|
+
const focusedProps = focused['kup-get-cell-props']();
|
|
211
|
+
__classPrivateFieldSet(this, _KupDataTable_lastFocusedCell, focusedProps.cell, "f");
|
|
212
|
+
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, focusedProps.row, focused.closest('td'), false);
|
|
213
|
+
});
|
|
214
|
+
_KupDataTable_onKupKeyDown.set(this, (e) => {
|
|
215
|
+
const isHorizontal = e.key === 'ArrowLeft' || e.key === 'ArrowRight';
|
|
216
|
+
const isVertical = e.key === 'ArrowDown' || e.key === 'ArrowUp';
|
|
217
|
+
// Only for non-editable matrix
|
|
218
|
+
if (!this.editableData && !this.updatableData) {
|
|
219
|
+
// If horizontal navigation, select next/previous column
|
|
220
|
+
if (isHorizontal) {
|
|
221
|
+
e.preventDefault();
|
|
222
|
+
__classPrivateFieldGet(this, _KupDataTable_horNav, "f").call(this, e.key === 'ArrowRight');
|
|
223
|
+
}
|
|
224
|
+
// If vertical navigation, select next/previous row
|
|
225
|
+
if (isVertical) {
|
|
226
|
+
e.preventDefault();
|
|
227
|
+
__classPrivateFieldGet(this, _KupDataTable_verNav, "f").call(this, e.key === 'ArrowDown');
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
});
|
|
173
231
|
_KupDataTable_handleUpdateClick.set(this, (command) => {
|
|
174
232
|
this.kupUpdate.emit({
|
|
175
233
|
comp: this,
|
|
@@ -186,7 +244,12 @@ export class KupDataTable {
|
|
|
186
244
|
'format-color-text',
|
|
187
245
|
'format-font-size-increase',
|
|
188
246
|
]);
|
|
189
|
-
_KupDataTable_DENSITY_DECODES.set(this, [
|
|
247
|
+
_KupDataTable_DENSITY_DECODES.set(this, [
|
|
248
|
+
'Extra_Dense',
|
|
249
|
+
'Dense',
|
|
250
|
+
'Medium',
|
|
251
|
+
'Wide',
|
|
252
|
+
]);
|
|
190
253
|
_KupDataTable_DENSITY_ICONS.set(this, [
|
|
191
254
|
'format-align-justify',
|
|
192
255
|
'reorder-horizontal',
|
|
@@ -205,7 +268,7 @@ export class KupDataTable {
|
|
|
205
268
|
this.autoFillMissingCells = false;
|
|
206
269
|
this.customStyle = '';
|
|
207
270
|
this.data = undefined;
|
|
208
|
-
this.density = FCellPadding.
|
|
271
|
+
this.density = FCellPadding.EXTRA_DENSE;
|
|
209
272
|
this.dragEnabled = false;
|
|
210
273
|
this.dropEnabled = false;
|
|
211
274
|
this.editableData = false;
|
|
@@ -235,23 +298,25 @@ export class KupDataTable {
|
|
|
235
298
|
this.pageSelected = -1;
|
|
236
299
|
this.paginatorPos = PaginatorPos.TOP;
|
|
237
300
|
this.legacyLook = false;
|
|
301
|
+
this.isDashboardMode = false;
|
|
238
302
|
this.removableColumns = false;
|
|
239
303
|
this.resizableColumns = true;
|
|
240
304
|
this.rowActions = undefined;
|
|
241
305
|
this.commands = undefined;
|
|
242
|
-
this.rowsPerPage =
|
|
306
|
+
this.rowsPerPage = 1000;
|
|
243
307
|
this.scrollOnHover = false;
|
|
244
308
|
this.selection = SelectionMode.SINGLE;
|
|
245
309
|
this.showCustomization = true;
|
|
246
310
|
this.showDeleteButton = false;
|
|
247
311
|
this.showHistoryButton = false;
|
|
248
312
|
this.showFilters = true;
|
|
249
|
-
this.showFooter =
|
|
313
|
+
this.showFooter = true;
|
|
250
314
|
this.showGrid = ShowGrid.ROW;
|
|
251
315
|
this.showGroups = false;
|
|
252
316
|
this.showHeader = true;
|
|
253
317
|
this.showLoadMore = false;
|
|
254
318
|
this.showPaginator = true;
|
|
319
|
+
this.hiddenSubmitButton = false;
|
|
255
320
|
this.sort = [];
|
|
256
321
|
this.sortableColumnsMutateData = true;
|
|
257
322
|
this.sortEnabled = true;
|
|
@@ -271,10 +336,11 @@ export class KupDataTable {
|
|
|
271
336
|
this.groupState = {};
|
|
272
337
|
this.openedTotalMenu = null;
|
|
273
338
|
this.openedCustomSettings = false;
|
|
274
|
-
this.fontsize = '
|
|
339
|
+
this.fontsize = 'small';
|
|
275
340
|
}
|
|
276
341
|
initWithPersistedState() {
|
|
277
342
|
if (this.store && this.stateId) {
|
|
343
|
+
this.state.load = true;
|
|
278
344
|
const state = this.store.getState(this.stateId);
|
|
279
345
|
if (state != null) {
|
|
280
346
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
|
|
@@ -299,6 +365,7 @@ export class KupDataTable {
|
|
|
299
365
|
this.showHeader = state.showHeader;
|
|
300
366
|
this.showLoadMore = state.showLoadMore;
|
|
301
367
|
this.showPaginator = state.showPaginator;
|
|
368
|
+
this.hiddenSubmitButton = state.hiddenSubmitButton;
|
|
302
369
|
this.sortEnabled = state.sortEnabled;
|
|
303
370
|
this.sort = [...state.sort];
|
|
304
371
|
this.pageSelected = state.pageSelected;
|
|
@@ -316,134 +383,7 @@ export class KupDataTable {
|
|
|
316
383
|
}
|
|
317
384
|
persistState() {
|
|
318
385
|
if (this.store && this.stateId) {
|
|
319
|
-
let somethingChanged =
|
|
320
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
|
|
321
|
-
this.state.filters = Object.assign({}, this.filters);
|
|
322
|
-
somethingChanged = true;
|
|
323
|
-
}
|
|
324
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groups, this.groups)) {
|
|
325
|
-
this.state.groups = [...this.groups];
|
|
326
|
-
somethingChanged = true;
|
|
327
|
-
}
|
|
328
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sort, this.sort)) {
|
|
329
|
-
this.state.sort = [...this.sort];
|
|
330
|
-
somethingChanged = true;
|
|
331
|
-
}
|
|
332
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.expandGroups, this.expandGroups)) {
|
|
333
|
-
this.state.expandGroups = this.expandGroups;
|
|
334
|
-
somethingChanged = true;
|
|
335
|
-
}
|
|
336
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groupLabelDisplay, this.groupLabelDisplay)) {
|
|
337
|
-
this.state.groupLabelDisplay = this.groupLabelDisplay;
|
|
338
|
-
somethingChanged = true;
|
|
339
|
-
}
|
|
340
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
|
|
341
|
-
this.state.density = this.density;
|
|
342
|
-
somethingChanged = true;
|
|
343
|
-
}
|
|
344
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableExtraColumns, this.enableExtraColumns)) {
|
|
345
|
-
this.state.enableExtraColumns = this.enableExtraColumns;
|
|
346
|
-
somethingChanged = true;
|
|
347
|
-
}
|
|
348
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableSortableColumns, this.enableSortableColumns)) {
|
|
349
|
-
this.state.enableSortableColumns = this.enableSortableColumns;
|
|
350
|
-
somethingChanged = true;
|
|
351
|
-
}
|
|
352
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.forceOneLine, this.forceOneLine)) {
|
|
353
|
-
this.state.forceOneLine = this.forceOneLine;
|
|
354
|
-
somethingChanged = true;
|
|
355
|
-
}
|
|
356
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
|
|
357
|
-
this.state.globalFilter = this.globalFilter;
|
|
358
|
-
somethingChanged = true;
|
|
359
|
-
}
|
|
360
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
361
|
-
this.state.globalFilterValue = this.globalFilterValue;
|
|
362
|
-
somethingChanged = true;
|
|
363
|
-
}
|
|
364
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.headerIsPersistent, this.headerIsPersistent)) {
|
|
365
|
-
this.state.headerIsPersistent = this.headerIsPersistent;
|
|
366
|
-
somethingChanged = true;
|
|
367
|
-
}
|
|
368
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.lazyLoadRows, this.lazyLoadRows)) {
|
|
369
|
-
this.state.lazyLoadRows = this.lazyLoadRows;
|
|
370
|
-
somethingChanged = true;
|
|
371
|
-
}
|
|
372
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
373
|
-
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
374
|
-
somethingChanged = true;
|
|
375
|
-
}
|
|
376
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selection, this.selection)) {
|
|
377
|
-
this.state.selection = this.selection;
|
|
378
|
-
somethingChanged = true;
|
|
379
|
-
}
|
|
380
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
381
|
-
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
382
|
-
somethingChanged = true;
|
|
383
|
-
}
|
|
384
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
|
|
385
|
-
this.state.showFilters = this.showFilters;
|
|
386
|
-
somethingChanged = true;
|
|
387
|
-
}
|
|
388
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showGroups, this.showGroups)) {
|
|
389
|
-
this.state.showGroups = this.showGroups;
|
|
390
|
-
somethingChanged = true;
|
|
391
|
-
}
|
|
392
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showHeader, this.showHeader)) {
|
|
393
|
-
this.state.showHeader = this.showHeader;
|
|
394
|
-
somethingChanged = true;
|
|
395
|
-
}
|
|
396
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
397
|
-
this.state.showLoadMore = this.showLoadMore;
|
|
398
|
-
somethingChanged = true;
|
|
399
|
-
}
|
|
400
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showPaginator, this.showPaginator)) {
|
|
401
|
-
this.state.showPaginator = this.showPaginator;
|
|
402
|
-
somethingChanged = true;
|
|
403
|
-
}
|
|
404
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortEnabled, this.sortEnabled)) {
|
|
405
|
-
this.state.sortEnabled = this.sortEnabled;
|
|
406
|
-
somethingChanged = true;
|
|
407
|
-
}
|
|
408
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortableColumnsMutateData, this.sortableColumnsMutateData)) {
|
|
409
|
-
this.state.sortableColumnsMutateData =
|
|
410
|
-
this.sortableColumnsMutateData;
|
|
411
|
-
somethingChanged = true;
|
|
412
|
-
}
|
|
413
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
414
|
-
this.state.pageSelected = this.currentPage;
|
|
415
|
-
somethingChanged = true;
|
|
416
|
-
}
|
|
417
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dragEnabled, this.dragEnabled)) {
|
|
418
|
-
this.state.dragEnabled = this.dragEnabled;
|
|
419
|
-
somethingChanged = true;
|
|
420
|
-
}
|
|
421
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dropEnabled, this.dropEnabled)) {
|
|
422
|
-
this.state.dropEnabled = this.dropEnabled;
|
|
423
|
-
somethingChanged = true;
|
|
424
|
-
}
|
|
425
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
|
|
426
|
-
this.state.showFooter = this.showFooter;
|
|
427
|
-
somethingChanged = true;
|
|
428
|
-
}
|
|
429
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
|
|
430
|
-
this.state.totals = Object.assign({}, this.totals);
|
|
431
|
-
somethingChanged = true;
|
|
432
|
-
}
|
|
433
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selectRowsById, this.selectedRows.reduce((accumulator, row, currentIndex) => {
|
|
434
|
-
const prefix = currentIndex > 0 ? ';' : '';
|
|
435
|
-
return accumulator + prefix + row.id;
|
|
436
|
-
}, ''))) {
|
|
437
|
-
this.state.selectRowsById = this.selectedRows.reduce((accumulator, row, currentIndex) => {
|
|
438
|
-
const prefix = currentIndex > 0 ? ';' : '';
|
|
439
|
-
return accumulator + prefix + row.id;
|
|
440
|
-
}, '');
|
|
441
|
-
somethingChanged = true;
|
|
442
|
-
}
|
|
443
|
-
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.visibleColumns, this.visibleColumns)) {
|
|
444
|
-
this.state.visibleColumns = [...this.visibleColumns];
|
|
445
|
-
somethingChanged = true;
|
|
446
|
-
}
|
|
386
|
+
let somethingChanged = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_checkUpdateState).call(this);
|
|
447
387
|
if (!this.state.load) {
|
|
448
388
|
this.state.load = true;
|
|
449
389
|
return;
|
|
@@ -501,11 +441,19 @@ export class KupDataTable {
|
|
|
501
441
|
var _a, _b, _c, _d;
|
|
502
442
|
if (((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.length) > 0 && ((_d = (_c = this.data) === null || _c === void 0 ? void 0 : _c.rows) === null || _d === void 0 ? void 0 : _d.length) > 0) {
|
|
503
443
|
const columnsNumber = this.data.columns.length;
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
444
|
+
const perfTuningData = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfTuning.data;
|
|
445
|
+
switch (perfTuningData.priority) {
|
|
446
|
+
case KupPerfTuningPriority.ROWS_PER_PAGE:
|
|
447
|
+
__classPrivateFieldSet(this, _KupDataTable_maxRowsPerPage, perfTuningData.maxRowsPerPage, "f");
|
|
448
|
+
break;
|
|
449
|
+
case KupPerfTuningPriority.CELLS_PER_PAGE:
|
|
450
|
+
const cellsNumber = this.data.rows.reduce((acc, r) => acc + Object.keys(r.cells).length, 0);
|
|
451
|
+
const maxCellsNumberPerPage = perfTuningData.maxCellsPerPage;
|
|
452
|
+
if (cellsNumber > maxCellsNumberPerPage) {
|
|
453
|
+
// Rounds a number up to the nearest multiple of ten.
|
|
454
|
+
__classPrivateFieldSet(this, _KupDataTable_maxRowsPerPage, Math.ceil(maxCellsNumberPerPage / columnsNumber / 10) * 10, "f");
|
|
455
|
+
}
|
|
456
|
+
break;
|
|
509
457
|
}
|
|
510
458
|
if (this.rowsPerPage > __classPrivateFieldGet(this, _KupDataTable_maxRowsPerPage, "f"))
|
|
511
459
|
this.rowsPerPage = __classPrivateFieldGet(this, _KupDataTable_maxRowsPerPage, "f");
|
|
@@ -922,22 +870,20 @@ export class KupDataTable {
|
|
|
922
870
|
* @param {boolean} scrollIntoView - If true, the component will scroll to the first selected row.
|
|
923
871
|
*/
|
|
924
872
|
async setSelectedRows(rowsIdentifiers, emitEvent, scrollIntoView) {
|
|
925
|
-
|
|
873
|
+
let firstRowSelectedId = undefined;
|
|
926
874
|
this.selectedRows = [];
|
|
927
875
|
for (let index = 0; index < rowsIdentifiers.length; index++) {
|
|
928
876
|
const id = rowsIdentifiers[index];
|
|
929
877
|
const row = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id);
|
|
930
878
|
if (row) {
|
|
879
|
+
if (!firstRowSelectedId) {
|
|
880
|
+
firstRowSelectedId = id;
|
|
881
|
+
}
|
|
931
882
|
this.selectedRows.push(row);
|
|
932
883
|
}
|
|
933
884
|
}
|
|
934
|
-
if (scrollIntoView) {
|
|
935
|
-
|
|
936
|
-
const idx = __classPrivateFieldGet(this, _KupDataTable_rows, "f").indexOf(this.selectedRows[0]) - 1;
|
|
937
|
-
if (idx >= 1) {
|
|
938
|
-
(_b = __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f")[idx]) === null || _b === void 0 ? void 0 : _b.scrollIntoView();
|
|
939
|
-
}
|
|
940
|
-
}
|
|
885
|
+
if (scrollIntoView && firstRowSelectedId) {
|
|
886
|
+
this.scrollToRow(firstRowSelectedId);
|
|
941
887
|
}
|
|
942
888
|
if (emitEvent !== false) {
|
|
943
889
|
this.kupRowSelected.emit({
|
|
@@ -949,13 +895,91 @@ export class KupDataTable {
|
|
|
949
895
|
});
|
|
950
896
|
}
|
|
951
897
|
}
|
|
898
|
+
/**
|
|
899
|
+
* This method will scroll the component to rowIdentifier row.
|
|
900
|
+
* @param {string|number} rowIdentifier - Id (dataset) or indexe (rendered rows).
|
|
901
|
+
*/
|
|
902
|
+
async scrollToRow(rowIdentifier) {
|
|
903
|
+
var _a;
|
|
904
|
+
const id = rowIdentifier;
|
|
905
|
+
const row = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getRow).call(this, id);
|
|
906
|
+
if (row) {
|
|
907
|
+
const idx = __classPrivateFieldGet(this, _KupDataTable_rows, "f").indexOf(row) - this.calculateScrollToRowOffset();
|
|
908
|
+
if (idx >= 1) {
|
|
909
|
+
(_a = __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f")[idx]) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* Public method to wait until the component is fully ready.
|
|
915
|
+
*/
|
|
916
|
+
async waitForReady() {
|
|
917
|
+
return __classPrivateFieldGet(this, _KupDataTable_readyPromise, "f");
|
|
918
|
+
}
|
|
952
919
|
/**
|
|
953
920
|
* This method is used to retrieve last focused row or the first if there's no row focused
|
|
954
921
|
*/
|
|
955
922
|
async getLastFocusedRow() {
|
|
956
923
|
return __classPrivateFieldGet(this, _KupDataTable_lastFocusedRow, "f");
|
|
957
924
|
}
|
|
925
|
+
/**
|
|
926
|
+
* This method is used to retrieve last focused cell
|
|
927
|
+
*/
|
|
928
|
+
async getLastFocusedCell() {
|
|
929
|
+
return __classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f");
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* This method is used to retrieve last focused column
|
|
933
|
+
*/
|
|
934
|
+
async getLastFocusedColumn() {
|
|
935
|
+
return __classPrivateFieldGet(this, _KupDataTable_lastFocusedColumn, "f");
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* This method is used to force tooltip request for current focused cell
|
|
939
|
+
*/
|
|
940
|
+
async tooltipRequest() {
|
|
941
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f") && !__classPrivateFieldGet(this, _KupDataTable_lastFocusedColumn, "f")) {
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
this.kupDataTableContextMenu.emit({
|
|
945
|
+
comp: this,
|
|
946
|
+
id: this.rootElement.id,
|
|
947
|
+
details: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_tooltipRequestHandler).call(this),
|
|
948
|
+
});
|
|
949
|
+
}
|
|
950
|
+
//#region LISTENERS
|
|
951
|
+
/*-------------------------------------------------*/
|
|
952
|
+
/* L i s t e n e r s */
|
|
953
|
+
/*-------------------------------------------------*/
|
|
954
|
+
listenEnterKeydown(e) {
|
|
955
|
+
if (this.updatableData && e.key === 'Enter') {
|
|
956
|
+
e.preventDefault();
|
|
957
|
+
e.stopPropagation();
|
|
958
|
+
const bc = this.rootElement.shadowRoot
|
|
959
|
+
.activeElement;
|
|
960
|
+
if (bc) {
|
|
961
|
+
bc.blur();
|
|
962
|
+
__classPrivateFieldGet(this, _KupDataTable_handleUpdateClick, "f").call(this);
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
listenCopyCellValueInColumnListener(e) {
|
|
967
|
+
if (this.updatableData &&
|
|
968
|
+
e.key.toLowerCase() === 'd' &&
|
|
969
|
+
e.ctrlKey === true) {
|
|
970
|
+
const input = this.rootElement.shadowRoot
|
|
971
|
+
.activeElement;
|
|
972
|
+
if (input) {
|
|
973
|
+
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_copyCellValueInColumnHandler).call(this, e, input);
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
958
977
|
//---- Lifecycle hooks ----
|
|
978
|
+
connectedCallback() {
|
|
979
|
+
__classPrivateFieldSet(this, _KupDataTable_readyPromise, new Promise((resolve) => {
|
|
980
|
+
__classPrivateFieldSet(this, _KupDataTable_readyResolve, resolve, "f");
|
|
981
|
+
}), "f");
|
|
982
|
+
}
|
|
959
983
|
componentWillLoad() {
|
|
960
984
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").debug.logLoad(this, false);
|
|
961
985
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.register(this);
|
|
@@ -1002,6 +1026,7 @@ export class KupDataTable {
|
|
|
1002
1026
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").debug.logRender(this, false);
|
|
1003
1027
|
}
|
|
1004
1028
|
componentDidRender() {
|
|
1029
|
+
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.mark('componentDidRender');
|
|
1005
1030
|
// If the component is not connected this method must not be executed
|
|
1006
1031
|
if (!this.rootElement.isConnected) {
|
|
1007
1032
|
return;
|
|
@@ -1013,6 +1038,12 @@ export class KupDataTable {
|
|
|
1013
1038
|
FTextFieldMDC(fs[index]);
|
|
1014
1039
|
}
|
|
1015
1040
|
}
|
|
1041
|
+
requestAnimationFrame(async () => {
|
|
1042
|
+
if (root && __classPrivateFieldGet(this, _KupDataTable_readyResolve, "f")) {
|
|
1043
|
+
__classPrivateFieldGet(this, _KupDataTable_readyResolve, "f").call(this);
|
|
1044
|
+
__classPrivateFieldSet(this, _KupDataTable_readyResolve, null, "f");
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1016
1047
|
if (this.showCustomization) {
|
|
1017
1048
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_customizePanelPosition).call(this);
|
|
1018
1049
|
}
|
|
@@ -1028,14 +1059,14 @@ export class KupDataTable {
|
|
|
1028
1059
|
}
|
|
1029
1060
|
setTimeout(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_updateFixedRowsAndColumnsCssVariables).call(this), 50);
|
|
1030
1061
|
// *** Store
|
|
1031
|
-
|
|
1032
|
-
this.persistState();
|
|
1033
|
-
}
|
|
1062
|
+
this.persistState();
|
|
1034
1063
|
// ***
|
|
1035
1064
|
__classPrivateFieldSet(this, _KupDataTable_oldWidth, this.rootElement.clientWidth, "f");
|
|
1036
1065
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").debug.logRender(this, true);
|
|
1066
|
+
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentDidRender', 'kup-data-table');
|
|
1037
1067
|
}
|
|
1038
1068
|
componentDidLoad() {
|
|
1069
|
+
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.mark('componentDidLoad');
|
|
1039
1070
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_didLoadObservers).call(this);
|
|
1040
1071
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_didLoadEventHandling).call(this);
|
|
1041
1072
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_didLoadInteractables).call(this);
|
|
@@ -1043,6 +1074,7 @@ export class KupDataTable {
|
|
|
1043
1074
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
1044
1075
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").resize.observe(this.rootElement);
|
|
1045
1076
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").debug.logLoad(this, true);
|
|
1077
|
+
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentDidLoad', 'kup-data-table');
|
|
1046
1078
|
}
|
|
1047
1079
|
resetCurrentPage() {
|
|
1048
1080
|
this.currentPage = 1;
|
|
@@ -1173,7 +1205,7 @@ export class KupDataTable {
|
|
|
1173
1205
|
}
|
|
1174
1206
|
const footerCells = this.getVisibleColumns().map((column, columnIndex) => {
|
|
1175
1207
|
var _a;
|
|
1176
|
-
const fixedCellStyle = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, columnIndex
|
|
1208
|
+
const fixedCellStyle = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, columnIndex, 0, extraCells);
|
|
1177
1209
|
let totalMenu = undefined;
|
|
1178
1210
|
let menuLabel = TotalLabel.CALC;
|
|
1179
1211
|
const translation = {
|
|
@@ -1295,14 +1327,17 @@ export class KupDataTable {
|
|
|
1295
1327
|
}
|
|
1296
1328
|
totalMenu = (h("kup-list", { class: `total-menu`, data: listData, id: "totals-menu", "is-menu": true, keyboardNavigation: true, "menu-visible": true, "onkup-list-click": (event) => this.onTotalsChange(event, column), tabindex: 0 }));
|
|
1297
1329
|
}
|
|
1298
|
-
const
|
|
1330
|
+
const totalValue = __classPrivateFieldGet(this, _KupDataTable_footer, "f")[column.name] != null
|
|
1299
1331
|
? getValueForDisplay(__classPrivateFieldGet(this, _KupDataTable_footer, "f")[column.name], column.obj, column.decimals)
|
|
1300
1332
|
: '';
|
|
1333
|
+
const totalsClass = `totals-value ${isNegativeNumber(__classPrivateFieldGet(this, _KupDataTable_footer, "f")[column.name])
|
|
1334
|
+
? FCellClasses.TEXT_DANGER
|
|
1335
|
+
: ''}`;
|
|
1301
1336
|
return (h("td", { "data-column": column.name, class: fixedCellStyle && fixedCellStyle.fixedCellClasses
|
|
1302
1337
|
? fixedCellStyle.fixedCellClasses
|
|
1303
1338
|
: '', style: fixedCellStyle
|
|
1304
1339
|
? fixedCellStyle.fixedCellStyle
|
|
1305
|
-
: null }, totalMenu, h("
|
|
1340
|
+
: null }, totalMenu, h("div", { class: totalsClass, title: translation[menuLabel] }, totalValue)));
|
|
1306
1341
|
});
|
|
1307
1342
|
const footer = (h("tfoot", null, h("tr", null, selectRowCell, actionsCell, footerCells)));
|
|
1308
1343
|
return footer;
|
|
@@ -1347,7 +1382,24 @@ export class KupDataTable {
|
|
|
1347
1382
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_closeCustomSettings).call(this);
|
|
1348
1383
|
} })) : null), totalsMatrix));
|
|
1349
1384
|
}
|
|
1385
|
+
calculateScrollToRowOffset() {
|
|
1386
|
+
let maxNewlines = 0;
|
|
1387
|
+
this.data.columns.forEach((column) => {
|
|
1388
|
+
const newlineCount = (column.title.match(/\n/g) || []).length;
|
|
1389
|
+
maxNewlines = Math.max(maxNewlines, newlineCount);
|
|
1390
|
+
});
|
|
1391
|
+
return maxNewlines + 1;
|
|
1392
|
+
}
|
|
1393
|
+
componentShouldUpdate(_newValue, _oldValue, propName) {
|
|
1394
|
+
switch (propName) {
|
|
1395
|
+
case 'columnMenuAnchor':
|
|
1396
|
+
return false;
|
|
1397
|
+
default:
|
|
1398
|
+
return true;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1350
1401
|
render() {
|
|
1402
|
+
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.mark('componentRender');
|
|
1351
1403
|
__classPrivateFieldSet(this, _KupDataTable_thRefs, [], "f");
|
|
1352
1404
|
__classPrivateFieldSet(this, _KupDataTable_rowsRefs, [], "f");
|
|
1353
1405
|
__classPrivateFieldSet(this, _KupDataTable_renderedRows, [], "f");
|
|
@@ -1359,7 +1411,7 @@ export class KupDataTable {
|
|
|
1359
1411
|
}
|
|
1360
1412
|
let rows = null;
|
|
1361
1413
|
if (__classPrivateFieldGet(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
1362
|
-
rows = (h("tr", { key: '
|
|
1414
|
+
rows = (h("tr", { key: '3fefb7b4f3206c0f4c8c5ea8f79b3c71834552ff', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '5a983fc3f5f7040aada820e727aba3fd21e20462', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
1363
1415
|
}
|
|
1364
1416
|
else {
|
|
1365
1417
|
rows = [];
|
|
@@ -1424,7 +1476,7 @@ export class KupDataTable {
|
|
|
1424
1476
|
for (let i = 0; i < chipsData.length; i++) {
|
|
1425
1477
|
props.onIconClick.push(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_removeGroup).call(this, i));
|
|
1426
1478
|
}
|
|
1427
|
-
groupChips = h(FChip, Object.assign({ key: '
|
|
1479
|
+
groupChips = h(FChip, Object.assign({ key: '4cba4c25819eda0225aedddc814a122467e916d6' }, props));
|
|
1428
1480
|
}
|
|
1429
1481
|
}
|
|
1430
1482
|
const tableClass = {
|
|
@@ -1446,17 +1498,17 @@ export class KupDataTable {
|
|
|
1446
1498
|
tableClass[`density-${this.density}`] = true;
|
|
1447
1499
|
tableClass[`fontsize-${this.fontsize}`] = true;
|
|
1448
1500
|
if (this.tableHeight && this.tableHeight !== '100%') {
|
|
1449
|
-
elStyle = Object.assign(Object.assign({}, elStyle), { maxHeight: this.tableHeight, overflow: 'auto' });
|
|
1501
|
+
elStyle = Object.assign(Object.assign(Object.assign({}, elStyle), { maxHeight: this.tableHeight }), (!this.isDashboardMode ? { overflow: 'auto' } : {}));
|
|
1450
1502
|
}
|
|
1451
1503
|
if (this.tableWidth && this.tableHeight !== '100%') {
|
|
1452
|
-
elStyle = Object.assign(Object.assign({}, elStyle), { width: this.tableWidth, overflow: 'auto' });
|
|
1453
|
-
actionWrapperWidth = Object.assign(Object.assign({}, actionWrapperWidth), { width: this.tableWidth, overflow: 'auto' });
|
|
1504
|
+
elStyle = Object.assign(Object.assign(Object.assign({}, elStyle), { width: this.tableWidth }), (!this.isDashboardMode ? { overflow: 'auto' } : {}));
|
|
1505
|
+
actionWrapperWidth = Object.assign(Object.assign(Object.assign({}, actionWrapperWidth), { width: this.tableWidth }), (!this.isDashboardMode ? { overflow: 'auto' } : {}));
|
|
1454
1506
|
}
|
|
1455
1507
|
let stickyEl = undefined;
|
|
1456
1508
|
if (this.headerIsPersistent &&
|
|
1457
1509
|
this.tableHeight === undefined &&
|
|
1458
1510
|
this.tableWidth === undefined) {
|
|
1459
|
-
stickyEl = (h("sticky-header", { key: '
|
|
1511
|
+
stickyEl = (h("sticky-header", { key: '8a066069e55f0b641a651acdf80a5e07f7bfe61c', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: '8bcc3199698f8d175228b6f94f2bc2465584bdb2' }, h("tr-sticky", { key: '2f403b212d89bf66323e77e6a7d086ba63316476' }, stickyHeader))));
|
|
1460
1512
|
}
|
|
1461
1513
|
let belowClass = 'below-wrapper';
|
|
1462
1514
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -1486,7 +1538,7 @@ export class KupDataTable {
|
|
|
1486
1538
|
(((_a = e.detail.cell) === null || _a === void 0 ? void 0 : _a.shape) === FCellShapes.CHECKBOX ||
|
|
1487
1539
|
((_b = e.detail.cell) === null || _b === void 0 ? void 0 : _b.shape) === FCellShapes.SWITCH)) {
|
|
1488
1540
|
if (this.updateOnClick) {
|
|
1489
|
-
__classPrivateFieldGet(this, _KupDataTable_handleUpdateClick, "f").call(this);
|
|
1541
|
+
__classPrivateFieldGet(this, _KupDataTable_handleUpdateClick, "f").call(this, e.detail.cell);
|
|
1490
1542
|
}
|
|
1491
1543
|
else if ((_d = (_c = e.detail.cell) === null || _c === void 0 ? void 0 : _c.inputSettings) === null || _d === void 0 ? void 0 : _d.checkValueOnExit) {
|
|
1492
1544
|
this.kupCellCheck.emit({
|
|
@@ -1502,7 +1554,7 @@ export class KupDataTable {
|
|
|
1502
1554
|
const useGlobalFilter = !this.legacyLook &&
|
|
1503
1555
|
(this.globalFilter ||
|
|
1504
1556
|
this.getRows().length > __classPrivateFieldGet(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
1505
|
-
const compCreated = (h(Host, { key: '
|
|
1557
|
+
const compCreated = (h(Host, { key: 'd0dae93766bffab07e3b658f578b26bbaf6d734a', "onKup-drop": (e) => {
|
|
1506
1558
|
this.kupDataTableDrop.emit(e.detail);
|
|
1507
1559
|
}, "onKup-cell-input": (e) => {
|
|
1508
1560
|
autoselectOnAction(e);
|
|
@@ -1517,11 +1569,11 @@ export class KupDataTable {
|
|
|
1517
1569
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
1518
1570
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
1519
1571
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
1520
|
-
} }, h("style", { key: '
|
|
1572
|
+
} }, h("style", { key: '141fd050f5961523ff13fa1f41384f2ea50c8aac' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: '42664bbf87261728923f62ccfe0984d9fcf2d69c', id: componentWrapperId, class: wrapClass }, h("div", { key: '648d595d25723624dcd19c155c21660e75bf4582', class: "group-wrapper" }, groupChips), h("div", { key: 'c0505cdd9b8d54005cce1b5240166c80c41263fc', 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) => {
|
|
1521
1573
|
const t = event.target;
|
|
1522
1574
|
window.clearTimeout(__classPrivateFieldGet(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
1523
1575
|
__classPrivateFieldSet(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
1524
|
-
} }))) : null, h("div", { key: '
|
|
1576
|
+
} }))) : null, h("div", { key: 'a36bc85d4a044ba36971f655a9dc7c12f81b2dd5', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
|
|
1525
1577
|
this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
|
|
1526
1578
|
this.kupSave.emit({
|
|
1527
1579
|
comp: this,
|
|
@@ -1571,9 +1623,9 @@ export class KupDataTable {
|
|
|
1571
1623
|
this.data.rows.unshift(row);
|
|
1572
1624
|
await this.refresh(true);
|
|
1573
1625
|
}
|
|
1574
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '
|
|
1626
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '42c4af845508b7c5d7d79ff6ad040f7a75d03485', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
1575
1627
|
? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
1576
|
-
: null), h("div", { key: '
|
|
1628
|
+
: null), h("div", { key: 'efa822fc8f31de6b9ab5f1ca7320231ab99f86a7', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
1577
1629
|
? [
|
|
1578
1630
|
h("div", { class: "settings-trigger", onClick: () => {
|
|
1579
1631
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -1582,7 +1634,7 @@ export class KupDataTable {
|
|
|
1582
1634
|
} }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
1583
1635
|
this.renderCustomizePanel(),
|
|
1584
1636
|
]
|
|
1585
|
-
: null, h("table", { key: '
|
|
1637
|
+
: null, h("table", { key: '3b33abb9f4f87c6697015e38985ecbb5c62142d7', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
1586
1638
|
ev.stopPropagation();
|
|
1587
1639
|
}, onPointerDown: (e) => {
|
|
1588
1640
|
__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");
|
|
@@ -1590,9 +1642,8 @@ export class KupDataTable {
|
|
|
1590
1642
|
__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");
|
|
1591
1643
|
}, onContextMenu: (e) => {
|
|
1592
1644
|
e.preventDefault();
|
|
1593
|
-
} }, h("thead", { key: '
|
|
1594
|
-
|
|
1595
|
-
: null), stickyEl), paginatorBottom)));
|
|
1645
|
+
} }, h("thead", { key: '11d332d763576d69adf27fe8ab2b060e77cdd206', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '51e0ebbde7020a9a211daf7bbbeba8a13a72694f' }, header)), h("tbody", { key: 'cee9d5cbe10415f2f574a904ab5adac85c99bec8' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
1646
|
+
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
1596
1647
|
return compCreated;
|
|
1597
1648
|
}
|
|
1598
1649
|
disconnectedCallback() {
|
|
@@ -1738,7 +1789,7 @@ export class KupDataTable {
|
|
|
1738
1789
|
"mutable": false,
|
|
1739
1790
|
"complexType": {
|
|
1740
1791
|
"original": "FCellPadding",
|
|
1741
|
-
"resolved": "FCellPadding.DENSE | FCellPadding.MEDIUM | FCellPadding.NONE | FCellPadding.WIDE",
|
|
1792
|
+
"resolved": "FCellPadding.DENSE | FCellPadding.EXTRA_DENSE | FCellPadding.MEDIUM | FCellPadding.NONE | FCellPadding.WIDE",
|
|
1742
1793
|
"references": {
|
|
1743
1794
|
"FCellPadding": {
|
|
1744
1795
|
"location": "import",
|
|
@@ -1755,7 +1806,7 @@ export class KupDataTable {
|
|
|
1755
1806
|
},
|
|
1756
1807
|
"attribute": "density",
|
|
1757
1808
|
"reflect": false,
|
|
1758
|
-
"defaultValue": "FCellPadding.
|
|
1809
|
+
"defaultValue": "FCellPadding.EXTRA_DENSE"
|
|
1759
1810
|
},
|
|
1760
1811
|
"dragEnabled": {
|
|
1761
1812
|
"type": "boolean",
|
|
@@ -2351,6 +2402,24 @@ export class KupDataTable {
|
|
|
2351
2402
|
"reflect": true,
|
|
2352
2403
|
"defaultValue": "false"
|
|
2353
2404
|
},
|
|
2405
|
+
"isDashboardMode": {
|
|
2406
|
+
"type": "boolean",
|
|
2407
|
+
"mutable": false,
|
|
2408
|
+
"complexType": {
|
|
2409
|
+
"original": "boolean",
|
|
2410
|
+
"resolved": "boolean",
|
|
2411
|
+
"references": {}
|
|
2412
|
+
},
|
|
2413
|
+
"required": false,
|
|
2414
|
+
"optional": false,
|
|
2415
|
+
"docs": {
|
|
2416
|
+
"tags": [],
|
|
2417
|
+
"text": "When enabled, the table wrapper won't have overflow in order to make the fixed column and footer adapt to the webupjs dsh mode"
|
|
2418
|
+
},
|
|
2419
|
+
"attribute": "is-dashboard-mode",
|
|
2420
|
+
"reflect": true,
|
|
2421
|
+
"defaultValue": "false"
|
|
2422
|
+
},
|
|
2354
2423
|
"removableColumns": {
|
|
2355
2424
|
"type": "boolean",
|
|
2356
2425
|
"mutable": false,
|
|
@@ -2453,7 +2522,7 @@ export class KupDataTable {
|
|
|
2453
2522
|
},
|
|
2454
2523
|
"attribute": "rows-per-page",
|
|
2455
2524
|
"reflect": false,
|
|
2456
|
-
"defaultValue": "
|
|
2525
|
+
"defaultValue": "1000"
|
|
2457
2526
|
},
|
|
2458
2527
|
"scrollOnHover": {
|
|
2459
2528
|
"type": "boolean",
|
|
@@ -2585,7 +2654,7 @@ export class KupDataTable {
|
|
|
2585
2654
|
},
|
|
2586
2655
|
"attribute": "show-footer",
|
|
2587
2656
|
"reflect": false,
|
|
2588
|
-
"defaultValue": "
|
|
2657
|
+
"defaultValue": "true"
|
|
2589
2658
|
},
|
|
2590
2659
|
"showGrid": {
|
|
2591
2660
|
"type": "string",
|
|
@@ -2686,6 +2755,27 @@ export class KupDataTable {
|
|
|
2686
2755
|
"reflect": false,
|
|
2687
2756
|
"defaultValue": "true"
|
|
2688
2757
|
},
|
|
2758
|
+
"hiddenSubmitButton": {
|
|
2759
|
+
"type": "boolean",
|
|
2760
|
+
"mutable": false,
|
|
2761
|
+
"complexType": {
|
|
2762
|
+
"original": "boolean",
|
|
2763
|
+
"resolved": "boolean",
|
|
2764
|
+
"references": {}
|
|
2765
|
+
},
|
|
2766
|
+
"required": false,
|
|
2767
|
+
"optional": false,
|
|
2768
|
+
"docs": {
|
|
2769
|
+
"tags": [{
|
|
2770
|
+
"name": "default",
|
|
2771
|
+
"text": "false"
|
|
2772
|
+
}],
|
|
2773
|
+
"text": "When set to true, the subimt button is hidden"
|
|
2774
|
+
},
|
|
2775
|
+
"attribute": "hidden-submit-button",
|
|
2776
|
+
"reflect": false,
|
|
2777
|
+
"defaultValue": "false"
|
|
2778
|
+
},
|
|
2689
2779
|
"sort": {
|
|
2690
2780
|
"type": "unknown",
|
|
2691
2781
|
"mutable": true,
|
|
@@ -4013,6 +4103,47 @@ export class KupDataTable {
|
|
|
4013
4103
|
}]
|
|
4014
4104
|
}
|
|
4015
4105
|
},
|
|
4106
|
+
"scrollToRow": {
|
|
4107
|
+
"complexType": {
|
|
4108
|
+
"signature": "(rowIdentifier: string | number) => Promise<void>",
|
|
4109
|
+
"parameters": [{
|
|
4110
|
+
"name": "rowIdentifier",
|
|
4111
|
+
"type": "string | number",
|
|
4112
|
+
"docs": "- Id (dataset) or indexe (rendered rows)."
|
|
4113
|
+
}],
|
|
4114
|
+
"references": {
|
|
4115
|
+
"Promise": {
|
|
4116
|
+
"location": "global",
|
|
4117
|
+
"id": "global::Promise"
|
|
4118
|
+
}
|
|
4119
|
+
},
|
|
4120
|
+
"return": "Promise<void>"
|
|
4121
|
+
},
|
|
4122
|
+
"docs": {
|
|
4123
|
+
"text": "This method will scroll the component to rowIdentifier row.",
|
|
4124
|
+
"tags": [{
|
|
4125
|
+
"name": "param",
|
|
4126
|
+
"text": "rowIdentifier - Id (dataset) or indexe (rendered rows)."
|
|
4127
|
+
}]
|
|
4128
|
+
}
|
|
4129
|
+
},
|
|
4130
|
+
"waitForReady": {
|
|
4131
|
+
"complexType": {
|
|
4132
|
+
"signature": "() => Promise<void>",
|
|
4133
|
+
"parameters": [],
|
|
4134
|
+
"references": {
|
|
4135
|
+
"Promise": {
|
|
4136
|
+
"location": "global",
|
|
4137
|
+
"id": "global::Promise"
|
|
4138
|
+
}
|
|
4139
|
+
},
|
|
4140
|
+
"return": "Promise<void>"
|
|
4141
|
+
},
|
|
4142
|
+
"docs": {
|
|
4143
|
+
"text": "Public method to wait until the component is fully ready.",
|
|
4144
|
+
"tags": []
|
|
4145
|
+
}
|
|
4146
|
+
},
|
|
4016
4147
|
"getLastFocusedRow": {
|
|
4017
4148
|
"complexType": {
|
|
4018
4149
|
"signature": "() => Promise<KupDataTableRow>",
|
|
@@ -4035,6 +4166,67 @@ export class KupDataTable {
|
|
|
4035
4166
|
"tags": []
|
|
4036
4167
|
}
|
|
4037
4168
|
},
|
|
4169
|
+
"getLastFocusedCell": {
|
|
4170
|
+
"complexType": {
|
|
4171
|
+
"signature": "() => Promise<KupDataTableCell>",
|
|
4172
|
+
"parameters": [],
|
|
4173
|
+
"references": {
|
|
4174
|
+
"Promise": {
|
|
4175
|
+
"location": "global",
|
|
4176
|
+
"id": "global::Promise"
|
|
4177
|
+
},
|
|
4178
|
+
"KupDataTableCell": {
|
|
4179
|
+
"location": "import",
|
|
4180
|
+
"path": "./kup-data-table-declarations",
|
|
4181
|
+
"id": "src/components/kup-data-table/kup-data-table-declarations.ts::KupDataTableCell"
|
|
4182
|
+
}
|
|
4183
|
+
},
|
|
4184
|
+
"return": "Promise<KupDataTableCell>"
|
|
4185
|
+
},
|
|
4186
|
+
"docs": {
|
|
4187
|
+
"text": "This method is used to retrieve last focused cell",
|
|
4188
|
+
"tags": []
|
|
4189
|
+
}
|
|
4190
|
+
},
|
|
4191
|
+
"getLastFocusedColumn": {
|
|
4192
|
+
"complexType": {
|
|
4193
|
+
"signature": "() => Promise<KupDataColumn>",
|
|
4194
|
+
"parameters": [],
|
|
4195
|
+
"references": {
|
|
4196
|
+
"Promise": {
|
|
4197
|
+
"location": "global",
|
|
4198
|
+
"id": "global::Promise"
|
|
4199
|
+
},
|
|
4200
|
+
"KupDataColumn": {
|
|
4201
|
+
"location": "import",
|
|
4202
|
+
"path": "../../managers/kup-data/kup-data-declarations",
|
|
4203
|
+
"id": "src/managers/kup-data/kup-data-declarations.ts::KupDataColumn"
|
|
4204
|
+
}
|
|
4205
|
+
},
|
|
4206
|
+
"return": "Promise<KupDataColumn>"
|
|
4207
|
+
},
|
|
4208
|
+
"docs": {
|
|
4209
|
+
"text": "This method is used to retrieve last focused column",
|
|
4210
|
+
"tags": []
|
|
4211
|
+
}
|
|
4212
|
+
},
|
|
4213
|
+
"tooltipRequest": {
|
|
4214
|
+
"complexType": {
|
|
4215
|
+
"signature": "() => Promise<void>",
|
|
4216
|
+
"parameters": [],
|
|
4217
|
+
"references": {
|
|
4218
|
+
"Promise": {
|
|
4219
|
+
"location": "global",
|
|
4220
|
+
"id": "global::Promise"
|
|
4221
|
+
}
|
|
4222
|
+
},
|
|
4223
|
+
"return": "Promise<void>"
|
|
4224
|
+
},
|
|
4225
|
+
"docs": {
|
|
4226
|
+
"text": "This method is used to force tooltip request for current focused cell",
|
|
4227
|
+
"tags": []
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4038
4230
|
"getInternalState": {
|
|
4039
4231
|
"complexType": {
|
|
4040
4232
|
"signature": "() => Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>",
|
|
@@ -4162,8 +4354,157 @@ export class KupDataTable {
|
|
|
4162
4354
|
"methodName": "recalculateData"
|
|
4163
4355
|
}];
|
|
4164
4356
|
}
|
|
4357
|
+
static get listeners() {
|
|
4358
|
+
return [{
|
|
4359
|
+
"name": "keydown",
|
|
4360
|
+
"method": "listenEnterKeydown",
|
|
4361
|
+
"target": undefined,
|
|
4362
|
+
"capture": false,
|
|
4363
|
+
"passive": false
|
|
4364
|
+
}, {
|
|
4365
|
+
"name": "keydown",
|
|
4366
|
+
"method": "listenCopyCellValueInColumnListener",
|
|
4367
|
+
"target": undefined,
|
|
4368
|
+
"capture": false,
|
|
4369
|
+
"passive": false
|
|
4370
|
+
}];
|
|
4371
|
+
}
|
|
4165
4372
|
}
|
|
4166
|
-
_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_lastFocusedRow = new WeakMap(), _KupDataTable_maxRowsPerPage = 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(),
|
|
4373
|
+
_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() {
|
|
4374
|
+
let somethingChanged = false;
|
|
4375
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
|
|
4376
|
+
this.state.filters = Object.assign({}, this.filters);
|
|
4377
|
+
somethingChanged = true;
|
|
4378
|
+
}
|
|
4379
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groups, this.groups)) {
|
|
4380
|
+
this.state.groups = [...this.groups];
|
|
4381
|
+
somethingChanged = true;
|
|
4382
|
+
}
|
|
4383
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sort, this.sort)) {
|
|
4384
|
+
this.state.sort = [...this.sort];
|
|
4385
|
+
somethingChanged = true;
|
|
4386
|
+
}
|
|
4387
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.expandGroups, this.expandGroups)) {
|
|
4388
|
+
this.state.expandGroups = this.expandGroups;
|
|
4389
|
+
somethingChanged = true;
|
|
4390
|
+
}
|
|
4391
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.groupLabelDisplay, this.groupLabelDisplay)) {
|
|
4392
|
+
this.state.groupLabelDisplay = this.groupLabelDisplay;
|
|
4393
|
+
somethingChanged = true;
|
|
4394
|
+
}
|
|
4395
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.density, this.density)) {
|
|
4396
|
+
this.state.density = this.density;
|
|
4397
|
+
somethingChanged = true;
|
|
4398
|
+
}
|
|
4399
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableExtraColumns, this.enableExtraColumns)) {
|
|
4400
|
+
this.state.enableExtraColumns = this.enableExtraColumns;
|
|
4401
|
+
somethingChanged = true;
|
|
4402
|
+
}
|
|
4403
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.enableSortableColumns, this.enableSortableColumns)) {
|
|
4404
|
+
this.state.enableSortableColumns = this.enableSortableColumns;
|
|
4405
|
+
somethingChanged = true;
|
|
4406
|
+
}
|
|
4407
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.forceOneLine, this.forceOneLine)) {
|
|
4408
|
+
this.state.forceOneLine = this.forceOneLine;
|
|
4409
|
+
somethingChanged = true;
|
|
4410
|
+
}
|
|
4411
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilter, this.globalFilter)) {
|
|
4412
|
+
this.state.globalFilter = this.globalFilter;
|
|
4413
|
+
somethingChanged = true;
|
|
4414
|
+
}
|
|
4415
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
4416
|
+
this.state.globalFilterValue = this.globalFilterValue;
|
|
4417
|
+
somethingChanged = true;
|
|
4418
|
+
}
|
|
4419
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.headerIsPersistent, this.headerIsPersistent)) {
|
|
4420
|
+
this.state.headerIsPersistent = this.headerIsPersistent;
|
|
4421
|
+
somethingChanged = true;
|
|
4422
|
+
}
|
|
4423
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.lazyLoadRows, this.lazyLoadRows)) {
|
|
4424
|
+
this.state.lazyLoadRows = this.lazyLoadRows;
|
|
4425
|
+
somethingChanged = true;
|
|
4426
|
+
}
|
|
4427
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
4428
|
+
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
4429
|
+
somethingChanged = true;
|
|
4430
|
+
}
|
|
4431
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selection, this.selection)) {
|
|
4432
|
+
this.state.selection = this.selection;
|
|
4433
|
+
somethingChanged = true;
|
|
4434
|
+
}
|
|
4435
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
4436
|
+
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
4437
|
+
somethingChanged = true;
|
|
4438
|
+
}
|
|
4439
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFilters, this.showFilters)) {
|
|
4440
|
+
this.state.showFilters = this.showFilters;
|
|
4441
|
+
somethingChanged = true;
|
|
4442
|
+
}
|
|
4443
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showGroups, this.showGroups)) {
|
|
4444
|
+
this.state.showGroups = this.showGroups;
|
|
4445
|
+
somethingChanged = true;
|
|
4446
|
+
}
|
|
4447
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showHeader, this.showHeader)) {
|
|
4448
|
+
this.state.showHeader = this.showHeader;
|
|
4449
|
+
somethingChanged = true;
|
|
4450
|
+
}
|
|
4451
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
4452
|
+
this.state.showLoadMore = this.showLoadMore;
|
|
4453
|
+
somethingChanged = true;
|
|
4454
|
+
}
|
|
4455
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showPaginator, this.showPaginator)) {
|
|
4456
|
+
this.state.showPaginator = this.showPaginator;
|
|
4457
|
+
somethingChanged = true;
|
|
4458
|
+
}
|
|
4459
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.hiddenSubmitButton, this.hiddenSubmitButton)) {
|
|
4460
|
+
this.state.hiddenSubmitButton = this.hiddenSubmitButton;
|
|
4461
|
+
somethingChanged = true;
|
|
4462
|
+
}
|
|
4463
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortEnabled, this.sortEnabled)) {
|
|
4464
|
+
this.state.sortEnabled = this.sortEnabled;
|
|
4465
|
+
somethingChanged = true;
|
|
4466
|
+
}
|
|
4467
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.sortableColumnsMutateData, this.sortableColumnsMutateData)) {
|
|
4468
|
+
this.state.sortableColumnsMutateData =
|
|
4469
|
+
this.sortableColumnsMutateData;
|
|
4470
|
+
somethingChanged = true;
|
|
4471
|
+
}
|
|
4472
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
4473
|
+
this.state.pageSelected = this.currentPage;
|
|
4474
|
+
somethingChanged = true;
|
|
4475
|
+
}
|
|
4476
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dragEnabled, this.dragEnabled)) {
|
|
4477
|
+
this.state.dragEnabled = this.dragEnabled;
|
|
4478
|
+
somethingChanged = true;
|
|
4479
|
+
}
|
|
4480
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.dropEnabled, this.dropEnabled)) {
|
|
4481
|
+
this.state.dropEnabled = this.dropEnabled;
|
|
4482
|
+
somethingChanged = true;
|
|
4483
|
+
}
|
|
4484
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.showFooter, this.showFooter)) {
|
|
4485
|
+
this.state.showFooter = this.showFooter;
|
|
4486
|
+
somethingChanged = true;
|
|
4487
|
+
}
|
|
4488
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.totals, this.totals)) {
|
|
4489
|
+
this.state.totals = Object.assign({}, this.totals);
|
|
4490
|
+
somethingChanged = true;
|
|
4491
|
+
}
|
|
4492
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.selectRowsById, this.selectedRows.reduce((accumulator, row, currentIndex) => {
|
|
4493
|
+
const prefix = currentIndex > 0 ? ';' : '';
|
|
4494
|
+
return accumulator + prefix + row.id;
|
|
4495
|
+
}, ''))) {
|
|
4496
|
+
this.state.selectRowsById = this.selectedRows.reduce((accumulator, row, currentIndex) => {
|
|
4497
|
+
const prefix = currentIndex > 0 ? ';' : '';
|
|
4498
|
+
return accumulator + prefix + row.id;
|
|
4499
|
+
}, '');
|
|
4500
|
+
somethingChanged = true;
|
|
4501
|
+
}
|
|
4502
|
+
if (!__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.visibleColumns, this.visibleColumns)) {
|
|
4503
|
+
this.state.visibleColumns = [...this.visibleColumns];
|
|
4504
|
+
somethingChanged = true;
|
|
4505
|
+
}
|
|
4506
|
+
return somethingChanged;
|
|
4507
|
+
}, _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
|
|
4167
4508
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet(this, _KupDataTable_columnDropCard, "f"));
|
|
4168
4509
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet(this, _KupDataTable_clickCbDropCard, "f"));
|
|
4169
4510
|
__classPrivateFieldGet(this, _KupDataTable_columnDropCard, "f").remove();
|
|
@@ -4675,7 +5016,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4675
5016
|
const row = (_c = __classPrivateFieldGet(this, _KupDataTable_lastPointerDetails, "f")) === null || _c === void 0 ? void 0 : _c.row;
|
|
4676
5017
|
if (!cell) {
|
|
4677
5018
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").debug.logMessage(this, "Couldn't find cell to retrieve drag informations!", KupDebugCategory.WARNING);
|
|
4678
|
-
return
|
|
5019
|
+
return {
|
|
5020
|
+
id: this.rootElement.id,
|
|
5021
|
+
};
|
|
4679
5022
|
}
|
|
4680
5023
|
return {
|
|
4681
5024
|
cell,
|
|
@@ -4708,7 +5051,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4708
5051
|
const row = (_c = __classPrivateFieldGet(this, _KupDataTable_lastPointerDetails, "f")) === null || _c === void 0 ? void 0 : _c.row;
|
|
4709
5052
|
if (!cell) {
|
|
4710
5053
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").debug.logMessage(this, "Couldn't find cell to retrieve dropzone informations!", KupDebugCategory.WARNING);
|
|
4711
|
-
return
|
|
5054
|
+
return {
|
|
5055
|
+
id: this.rootElement.id,
|
|
5056
|
+
};
|
|
4712
5057
|
}
|
|
4713
5058
|
return {
|
|
4714
5059
|
cell,
|
|
@@ -4789,11 +5134,16 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4789
5134
|
}
|
|
4790
5135
|
}
|
|
4791
5136
|
return count;
|
|
4792
|
-
}, _KupDataTable_resetSelectedRows = function _KupDataTable_resetSelectedRows() {
|
|
5137
|
+
}, _KupDataTable_resetSelectedRows = function _KupDataTable_resetSelectedRows(emit = false) {
|
|
4793
5138
|
if (this.getRows().length === 0)
|
|
4794
5139
|
return;
|
|
4795
5140
|
this.selectedRows = [];
|
|
4796
|
-
|
|
5141
|
+
if (emit) {
|
|
5142
|
+
this.kupResetSelectedRows.emit({
|
|
5143
|
+
comp: this,
|
|
5144
|
+
id: this.rootElement.id,
|
|
5145
|
+
});
|
|
5146
|
+
}
|
|
4797
5147
|
}, _KupDataTable_getSizedColumns = function _KupDataTable_getSizedColumns() {
|
|
4798
5148
|
const columns = this.getColumns();
|
|
4799
5149
|
const sizedColumns = [];
|
|
@@ -4997,19 +5347,32 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4997
5347
|
case 'kup-list-click':
|
|
4998
5348
|
const selectedObjectIndex = e.detail.event.detail.index;
|
|
4999
5349
|
const selectedObject = dropDownActions[selectedObjectIndex];
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5350
|
+
const dispatchSelection = () => {
|
|
5351
|
+
this.kupRowActionItemClick.emit({
|
|
5352
|
+
comp: this,
|
|
5353
|
+
id: this.rootElement.id,
|
|
5354
|
+
row: row,
|
|
5355
|
+
obj: selectedObject.obj,
|
|
5356
|
+
cell: selectedObject.cell,
|
|
5357
|
+
type: selectedObject.type,
|
|
5358
|
+
index: selectedObject.index,
|
|
5359
|
+
column: selectedObject.column,
|
|
5360
|
+
});
|
|
5361
|
+
setTimeout(() => {
|
|
5362
|
+
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_closeRowActionsCard).call(this);
|
|
5363
|
+
}, 0);
|
|
5364
|
+
};
|
|
5365
|
+
const rowId = row.id;
|
|
5366
|
+
if (rowId) {
|
|
5367
|
+
this.setSelectedRows([row.id], true).then(() => {
|
|
5368
|
+
// event should be dispatched
|
|
5369
|
+
dispatchSelection();
|
|
5370
|
+
});
|
|
5371
|
+
}
|
|
5372
|
+
else {
|
|
5373
|
+
// fallback in case the row has no id (should never happen)
|
|
5374
|
+
dispatchSelection();
|
|
5375
|
+
}
|
|
5013
5376
|
}
|
|
5014
5377
|
});
|
|
5015
5378
|
}, _KupDataTable_clearSearchActionsCard = function _KupDataTable_clearSearchActionsCard(card, dropDownActions) {
|
|
@@ -5306,8 +5669,81 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5306
5669
|
th: th ? th : null,
|
|
5307
5670
|
tr: tr ? tr : null,
|
|
5308
5671
|
};
|
|
5672
|
+
}, _KupDataTable_getEventDetailsForCurrentSelection = function _KupDataTable_getEventDetailsForCurrentSelection() {
|
|
5673
|
+
let isHeader, isBody, isFooter, td, textfield, th, tr, filterRemove;
|
|
5674
|
+
isBody =
|
|
5675
|
+
!!__classPrivateFieldGet(this, _KupDataTable_lastFocusedRow, "f") &&
|
|
5676
|
+
!!__classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f") &&
|
|
5677
|
+
!!__classPrivateFieldGet(this, _KupDataTable_lastFocusedColumn, "f");
|
|
5678
|
+
isHeader =
|
|
5679
|
+
!__classPrivateFieldGet(this, _KupDataTable_lastFocusedRow, "f") &&
|
|
5680
|
+
!!__classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f") &&
|
|
5681
|
+
!!__classPrivateFieldGet(this, _KupDataTable_lastFocusedColumn, "f");
|
|
5682
|
+
isFooter =
|
|
5683
|
+
!__classPrivateFieldGet(this, _KupDataTable_lastFocusedRow, "f") &&
|
|
5684
|
+
!__classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f") &&
|
|
5685
|
+
!!__classPrivateFieldGet(this, _KupDataTable_lastFocusedColumn, "f");
|
|
5686
|
+
let cell = null, column = null, isGroupRow = false, row = null;
|
|
5687
|
+
if (isBody) {
|
|
5688
|
+
row = __classPrivateFieldGet(this, _KupDataTable_lastFocusedRow, "f");
|
|
5689
|
+
}
|
|
5690
|
+
if (isHeader || isBody) {
|
|
5691
|
+
cell = __classPrivateFieldGet(this, _KupDataTable_lastFocusedCell, "f");
|
|
5692
|
+
}
|
|
5693
|
+
if (isHeader || isBody || isFooter) {
|
|
5694
|
+
const columnName = __classPrivateFieldGet(this, _KupDataTable_lastFocusedColumn, "f").name;
|
|
5695
|
+
if (columnName) {
|
|
5696
|
+
column = getColumnByName(this.getColumns(), columnName);
|
|
5697
|
+
}
|
|
5698
|
+
}
|
|
5699
|
+
return {
|
|
5700
|
+
area: isHeader
|
|
5701
|
+
? 'header'
|
|
5702
|
+
: isBody
|
|
5703
|
+
? 'body'
|
|
5704
|
+
: isFooter
|
|
5705
|
+
? 'footer'
|
|
5706
|
+
: null,
|
|
5707
|
+
cell: cell ? cell : null,
|
|
5708
|
+
column: column ? column : null,
|
|
5709
|
+
filterRemove: filterRemove ? filterRemove : null,
|
|
5710
|
+
isGroupRow: isGroupRow,
|
|
5711
|
+
originalEvent: undefined,
|
|
5712
|
+
row: row ? row : null,
|
|
5713
|
+
td: td ? td : null,
|
|
5714
|
+
textfield: textfield ? textfield : null,
|
|
5715
|
+
th: th ? th : null,
|
|
5716
|
+
tr: tr ? tr : null,
|
|
5717
|
+
};
|
|
5718
|
+
}, _KupDataTable_getSourceElementCoordsForCurrentSelection = function _KupDataTable_getSourceElementCoordsForCurrentSelection(details) {
|
|
5719
|
+
var _a, _b, _c, _d, _e;
|
|
5720
|
+
let x = 0, y = 0;
|
|
5721
|
+
if (details.area == 'footer') {
|
|
5722
|
+
const elCoords = (_b = (_a = __classPrivateFieldGet(this, _KupDataTable_tableRef, "f")
|
|
5723
|
+
.querySelector(`tfoot tr td[data-column='${details.column.name}']`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) !== null && _b !== void 0 ? _b : {
|
|
5724
|
+
x: 0,
|
|
5725
|
+
y: 0,
|
|
5726
|
+
width: 0,
|
|
5727
|
+
height: 0,
|
|
5728
|
+
};
|
|
5729
|
+
x = elCoords.x + elCoords.width / 2;
|
|
5730
|
+
y = elCoords.y + elCoords.height / 2;
|
|
5731
|
+
}
|
|
5732
|
+
else {
|
|
5733
|
+
const elCoords = (_e = (_d = (_c = details.cell) === null || _c === void 0 ? void 0 : _c.element) === null || _d === void 0 ? void 0 : _d.getBoundingClientRect()) !== null && _e !== void 0 ? _e : {
|
|
5734
|
+
x: 0,
|
|
5735
|
+
y: 0,
|
|
5736
|
+
};
|
|
5737
|
+
x = elCoords.x;
|
|
5738
|
+
y = elCoords.y;
|
|
5739
|
+
}
|
|
5740
|
+
return { x, y };
|
|
5309
5741
|
}, _KupDataTable_clickHandler = function _KupDataTable_clickHandler(e) {
|
|
5310
5742
|
const details = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
5743
|
+
const { cell, column } = details;
|
|
5744
|
+
__classPrivateFieldSet(this, _KupDataTable_lastFocusedCell, cell, "f");
|
|
5745
|
+
__classPrivateFieldSet(this, _KupDataTable_lastFocusedColumn, column, "f");
|
|
5746
|
+
__classPrivateFieldSet(this, _KupDataTable_lastFocusedRow, undefined, "f");
|
|
5311
5747
|
if (details.area === 'header') {
|
|
5312
5748
|
if (details.th && details.column) {
|
|
5313
5749
|
if (details.filterRemove) {
|
|
@@ -5321,6 +5757,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5321
5757
|
}
|
|
5322
5758
|
}
|
|
5323
5759
|
else if (details.area === 'body') {
|
|
5760
|
+
__classPrivateFieldSet(this, _KupDataTable_lastFocusedRow, details.row, "f");
|
|
5324
5761
|
if ((this.isFocusable || e.ctrlKey || e.metaKey) &&
|
|
5325
5762
|
details.tr &&
|
|
5326
5763
|
!details.isGroupRow) {
|
|
@@ -5342,7 +5779,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5342
5779
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onRowClick).call(this, details.row, details.td, true);
|
|
5343
5780
|
return details;
|
|
5344
5781
|
}
|
|
5345
|
-
__classPrivateFieldSet(this, _KupDataTable_lastFocusedRow, details.row, "f");
|
|
5346
5782
|
}
|
|
5347
5783
|
return details;
|
|
5348
5784
|
}, _KupDataTable_cellActionsMenuHandler = function _KupDataTable_cellActionsMenuHandler(e) {
|
|
@@ -5356,15 +5792,27 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5356
5792
|
return details;
|
|
5357
5793
|
}, _KupDataTable_contextMenuHandler = function _KupDataTable_contextMenuHandler(e) {
|
|
5358
5794
|
const details = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
5795
|
+
return __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandlerDetailsManager).call(this, details, {
|
|
5796
|
+
x: e.pageX,
|
|
5797
|
+
y: e.pageY,
|
|
5798
|
+
});
|
|
5799
|
+
}, _KupDataTable_tooltipRequestHandler = function _KupDataTable_tooltipRequestHandler() {
|
|
5800
|
+
const details = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetailsForCurrentSelection).call(this);
|
|
5801
|
+
const elCoords = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getSourceElementCoordsForCurrentSelection).call(this, details);
|
|
5802
|
+
return __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_contextMenuHandlerDetailsManager).call(this, details, {
|
|
5803
|
+
x: elCoords.x,
|
|
5804
|
+
y: elCoords.y,
|
|
5805
|
+
});
|
|
5806
|
+
}, _KupDataTable_contextMenuHandlerDetailsManager = function _KupDataTable_contextMenuHandlerDetailsManager(details, eventCoords) {
|
|
5359
5807
|
if (details.area === DataTableAreasEnum.HEADER) {
|
|
5360
|
-
if (details.
|
|
5808
|
+
if (details.column) {
|
|
5361
5809
|
this.openColumnMenu(details.column.name);
|
|
5362
5810
|
return details;
|
|
5363
5811
|
}
|
|
5364
5812
|
}
|
|
5365
5813
|
else if (details.area === DataTableAreasEnum.FOOTER) {
|
|
5366
|
-
if (details.
|
|
5367
|
-
__classPrivateFieldSet(this, _KupDataTable_totalMenuCoords,
|
|
5814
|
+
if (details.column) {
|
|
5815
|
+
__classPrivateFieldSet(this, _KupDataTable_totalMenuCoords, eventCoords, "f");
|
|
5368
5816
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onTotalMenuOpen).call(this, details.column);
|
|
5369
5817
|
return details;
|
|
5370
5818
|
}
|
|
@@ -5391,7 +5839,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5391
5839
|
__classPrivateFieldSet(this, _KupDataTable_paginatedRows, paginateRows(__classPrivateFieldGet(this, _KupDataTable_rows, "f"), this.currentPage, this.currentRowsPerPage, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)), "f");
|
|
5392
5840
|
__classPrivateFieldSet(this, _KupDataTable_paginatedRowsLength, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_paginatedRowsPointLength).call(this), "f");
|
|
5393
5841
|
}, _KupDataTable_filterRows = function _KupDataTable_filterRows() {
|
|
5394
|
-
__classPrivateFieldSet(this, _KupDataTable_rows, filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns()), "f");
|
|
5842
|
+
__classPrivateFieldSet(this, _KupDataTable_rows, filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns(), undefined, undefined, this.visibleColumns), "f");
|
|
5395
5843
|
__classPrivateFieldSet(this, _KupDataTable_rowsLength, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_rowsPointLength).call(this), "f");
|
|
5396
5844
|
}, _KupDataTable_isGrouping = function _KupDataTable_isGrouping() {
|
|
5397
5845
|
return this.groups && this.groups.length > 0;
|
|
@@ -5405,6 +5853,27 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5405
5853
|
}
|
|
5406
5854
|
}, _KupDataTable_hasTotals = function _KupDataTable_hasTotals() {
|
|
5407
5855
|
return this.totals && Object.keys(this.totals).length > 0;
|
|
5856
|
+
}, _KupDataTable_copyCellValueInColumnHandler = function _KupDataTable_copyCellValueInColumnHandler(e, el) {
|
|
5857
|
+
const details = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(el, this.rootElement));
|
|
5858
|
+
const { cell, column, row } = details;
|
|
5859
|
+
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
5860
|
+
if (!TypesToDuplicate.includes(cellType)) {
|
|
5861
|
+
return;
|
|
5862
|
+
}
|
|
5863
|
+
e.preventDefault();
|
|
5864
|
+
e.stopPropagation();
|
|
5865
|
+
el.blur();
|
|
5866
|
+
const filteredRowIds = __classPrivateFieldGet(this, _KupDataTable_rows, "f").map((row) => row.id);
|
|
5867
|
+
this.data.rows = this.data.rows.map((currRow) => {
|
|
5868
|
+
if (filteredRowIds.includes(currRow.id) && currRow.id !== row.id) {
|
|
5869
|
+
currRow.cells[column.name].value = cell.value;
|
|
5870
|
+
currRow.cells[column.name].obj = cell.obj;
|
|
5871
|
+
currRow.cells[column.name].decode = cell.decode;
|
|
5872
|
+
currRow.cells[column.name].data = cell.data;
|
|
5873
|
+
}
|
|
5874
|
+
return currRow;
|
|
5875
|
+
});
|
|
5876
|
+
this.refresh();
|
|
5408
5877
|
}, _KupDataTable_tableHasAutoWidth = function _KupDataTable_tableHasAutoWidth() {
|
|
5409
5878
|
if (!__classPrivateFieldGet(this, _KupDataTable_sizedColumns, "f")) {
|
|
5410
5879
|
return;
|
|
@@ -5456,6 +5925,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5456
5925
|
row.group.children.forEach((childRow) => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_forceRowGroupExpansion).call(this, childRow));
|
|
5457
5926
|
}
|
|
5458
5927
|
}, _KupDataTable_adjustPaginator = function _KupDataTable_adjustPaginator() {
|
|
5928
|
+
this.computeMaxRowsPerPage();
|
|
5459
5929
|
const numberOfRows = __classPrivateFieldGet(this, _KupDataTable_rowsLength, "f");
|
|
5460
5930
|
// check if current page is valid
|
|
5461
5931
|
const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
|
|
@@ -5491,7 +5961,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5491
5961
|
columnCssIndex <= this.fixedColumns + extraCellsCount;
|
|
5492
5962
|
const validFixedColumnR = this.fixedColumnsR &&
|
|
5493
5963
|
Number.isInteger(this.fixedColumnsR) &&
|
|
5494
|
-
columnCssIndexR
|
|
5964
|
+
columnCssIndexR >=
|
|
5495
5965
|
this.getVisibleColumns().length - this.fixedColumnsR;
|
|
5496
5966
|
const validFixedRowIndex = Number.isInteger(this.fixedRows) &&
|
|
5497
5967
|
rowCssIndex > 0 &&
|
|
@@ -5510,15 +5980,13 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5510
5980
|
'var(' + FixedCellsCSSVarsBase.columns + columnCssIndex + ')';
|
|
5511
5981
|
}
|
|
5512
5982
|
if (validFixedColumnR) {
|
|
5513
|
-
const
|
|
5514
|
-
const progIdx = prog - this.fixedColumnsR;
|
|
5515
|
-
const absIdx = Math.abs(progIdx);
|
|
5983
|
+
const idx = this.getVisibleColumns().length - columnCssIndexR;
|
|
5516
5984
|
fixedCellClasses[FixedCellsClasses.columnsR] = validFixedColumnR;
|
|
5517
5985
|
fixedCellClasses['show-column-separator'] =
|
|
5518
5986
|
ShowGrid.COMPLETE === this.showGrid ||
|
|
5519
5987
|
ShowGrid.COL === this.showGrid;
|
|
5520
5988
|
fixedCellStyle['right'] =
|
|
5521
|
-
'var(' + (FixedCellsCSSVarsBase.columnsR +
|
|
5989
|
+
'var(' + (FixedCellsCSSVarsBase.columnsR + idx) + ')'; // right value assignment must be reversed
|
|
5522
5990
|
}
|
|
5523
5991
|
if (validFixedRowIndex) {
|
|
5524
5992
|
fixedCellClasses[FixedCellsClasses.rows] = !!validFixedRowIndex;
|
|
@@ -5755,7 +6223,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5755
6223
|
}
|
|
5756
6224
|
else {
|
|
5757
6225
|
// deselect all rows
|
|
5758
|
-
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this);
|
|
6226
|
+
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_resetSelectedRows).call(this, true);
|
|
5759
6227
|
}
|
|
5760
6228
|
}, _KupDataTable_openTotalMenu = function _KupDataTable_openTotalMenu(column) {
|
|
5761
6229
|
this.openedTotalMenu = column.name;
|
|
@@ -5936,7 +6404,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5936
6404
|
columnClass['header-cell--is-icon'] = true;
|
|
5937
6405
|
}
|
|
5938
6406
|
// For fixed cells styles and classes
|
|
5939
|
-
const fixedCellStyle = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, columnIndex
|
|
6407
|
+
const fixedCellStyle = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, columnIndex + 1 + extraCells, columnIndex, 0, extraCells);
|
|
5940
6408
|
if (fixedCellStyle) {
|
|
5941
6409
|
columnClass = Object.assign(Object.assign({}, columnClass), fixedCellStyle.fixedCellClasses);
|
|
5942
6410
|
thStyle = Object.assign(Object.assign({}, thStyle), fixedCellStyle.fixedCellStyle);
|
|
@@ -5957,7 +6425,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
5957
6425
|
: {}));
|
|
5958
6426
|
multiSelectColumn = (h("th", { class: selectionStyleAndClass
|
|
5959
6427
|
? selectionStyleAndClass.fixedCellClasses
|
|
5960
|
-
: {}, style: style }, h(
|
|
6428
|
+
: {}, style: style }, h(FCheckbox, { onChange: (e) => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onSelectAll).call(this, e), sizing: KupComponentSizing.EXTRA_SMALL, title: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.SELECTED) +
|
|
5961
6429
|
`: ${this.selectedRows.length},` +
|
|
5962
6430
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageRow.RENDERED) +
|
|
5963
6431
|
`: ${__classPrivateFieldGet(this, _KupDataTable_renderedRows, "f").length}`, checked: this.selectedRows.length > 0 &&
|
|
@@ -6199,9 +6667,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6199
6667
|
let selectRowCell = null;
|
|
6200
6668
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
6201
6669
|
specialExtraCellsCount++;
|
|
6202
|
-
const selectionStyleAndClass = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
|
|
6670
|
+
const selectionStyleAndClass = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, rowCssIndex, specialExtraCellsCount - 1);
|
|
6203
6671
|
const props = {
|
|
6204
6672
|
checked: this.selectedRows.includes(row),
|
|
6673
|
+
sizing: KupComponentSizing.EXTRA_SMALL,
|
|
6205
6674
|
onChange: () => {
|
|
6206
6675
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handleRowSelect).call(this, row);
|
|
6207
6676
|
},
|
|
@@ -6219,7 +6688,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6219
6688
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns)) {
|
|
6220
6689
|
// Increments
|
|
6221
6690
|
specialExtraCellsCount++;
|
|
6222
|
-
const actionsStyleAndClass = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, rowCssIndex, specialExtraCellsCount - 1);
|
|
6691
|
+
const actionsStyleAndClass = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, rowCssIndex, specialExtraCellsCount - 1);
|
|
6223
6692
|
rowActionsCount += ((_a = this.rowActions) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
6224
6693
|
const actionsOnRow = [];
|
|
6225
6694
|
if (row.actions) {
|
|
@@ -6263,7 +6732,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6263
6732
|
}
|
|
6264
6733
|
// Renders plain rows cells
|
|
6265
6734
|
const cells = visibleColumns.map((currentColumn, cellIndex) => {
|
|
6266
|
-
var _a;
|
|
6735
|
+
var _a, _b;
|
|
6267
6736
|
const { name, hideValuesRepetitions } = currentColumn;
|
|
6268
6737
|
const indend = [];
|
|
6269
6738
|
if (cellIndex === 0) {
|
|
@@ -6281,10 +6750,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6281
6750
|
}
|
|
6282
6751
|
}
|
|
6283
6752
|
cell.isEditable = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_setCellEditability).call(this, currentColumn, row, cell);
|
|
6284
|
-
cell.data = Object.assign(Object.assign({}, cell.data), { legacyLook: this.legacyLook
|
|
6753
|
+
cell.data = Object.assign(Object.assign({}, cell.data), { legacyLook: this.legacyLook, sizing: this.density === 'extra_dense'
|
|
6754
|
+
? 'extra-small'
|
|
6755
|
+
: (_a = cell.data) === null || _a === void 0 ? void 0 : _a.sizing });
|
|
6285
6756
|
const fcell = Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").data.cell.buildFCell(cell, currentColumn, row)), { component: this, density: this.density, editable: this.editableData || this.updatableData, indents: indend, previousValue: hideValuesRepetitions && previousRow
|
|
6286
6757
|
? previousRow.cells[name].value
|
|
6287
|
-
: undefined, renderKup: this.lazyLoadCells, cellActionIcon: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").data.cell.hasActionCell(cell, (
|
|
6758
|
+
: undefined, renderKup: this.lazyLoadCells, cellActionIcon: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").data.cell.hasActionCell(cell, (_b = this.commands) !== null && _b !== void 0 ? _b : [])
|
|
6288
6759
|
? {
|
|
6289
6760
|
onClick: (e) => {
|
|
6290
6761
|
this.kupCellActionIconClick.emit({
|
|
@@ -6300,7 +6771,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6300
6771
|
let cellClass = null;
|
|
6301
6772
|
let cellStyle = Object.assign({}, cell.style);
|
|
6302
6773
|
//-- For fixed cells --
|
|
6303
|
-
const fixedStyles = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, cellIndex + 1 + specialExtraCellsCount, cellIndex
|
|
6774
|
+
const fixedStyles = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, cellIndex + 1 + specialExtraCellsCount, cellIndex, rowCssIndex, specialExtraCellsCount);
|
|
6304
6775
|
if (fixedStyles) {
|
|
6305
6776
|
cellStyle = Object.assign(cellStyle ? cellStyle : {}, fixedStyles.fixedCellStyle);
|
|
6306
6777
|
cellClass = Object.assign(Object.assign({}, cellClass), fixedStyles.fixedCellClasses);
|
|
@@ -6330,7 +6801,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6330
6801
|
let eventHandlers = undefined;
|
|
6331
6802
|
let title = undefined;
|
|
6332
6803
|
cellClass = Object.assign({}, cellClass);
|
|
6333
|
-
return (h("td", Object.assign({ title: title, colSpan: cell.span && cell.span.col ? cell.span.col : null, rowSpan: cell.span && cell.span.row ? cell.span.row : null, "data-cell": cell, "data-column": name, "data-row": row, style: cellStyle, class: cellClass }, eventHandlers), jsxCell));
|
|
6804
|
+
return (h("td", Object.assign({ tabIndex: -1, title: title, colSpan: cell.span && cell.span.col ? cell.span.col : null, rowSpan: cell.span && cell.span.row ? cell.span.row : null, "data-cell": cell, "data-column": name, "data-row": row, style: cellStyle, class: cellClass }, eventHandlers), jsxCell));
|
|
6334
6805
|
});
|
|
6335
6806
|
// adding row to rendered rows
|
|
6336
6807
|
__classPrivateFieldGet(this, _KupDataTable_renderedRows, "f").push(row);
|
|
@@ -6381,7 +6852,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6381
6852
|
? () => {
|
|
6382
6853
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onLoadMoreClick).call(this);
|
|
6383
6854
|
}
|
|
6384
|
-
: null, onNextPage: () => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage + 1), onPrevPage: () => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage - 1), onPageChange: (e) => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, e.detail.value), onRowsChange: (e) => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handleRowsPerPageChange).call(this, e.detail.value) })) : null)));
|
|
6855
|
+
: null, onNextPage: () => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage + 1), onPrevPage: () => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, this.currentPage - 1), onPageChange: (e) => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handlePageChange).call(this, e.detail.value), onRowsChange: (e) => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handleRowsPerPageChange).call(this, e.detail.value), showMaxPages: true })) : null)));
|
|
6385
6856
|
}, _KupDataTable_columnRemoveArea = function _KupDataTable_columnRemoveArea() {
|
|
6386
6857
|
return (h("div", { class: "droparea__remove", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_removeDropareaRef, el, "f")) }, h(FImage, { resource: "delete", color: `var(${KupThemeColorValues.DANGER})`, sizeX: "30px", sizeY: "50px" }), h(FImage, { resource: "delete-empty", color: `var(${KupThemeColorValues.DANGER})`, sizeX: "30px", sizeY: "50px" })));
|
|
6387
6858
|
}, _KupDataTable_columnGroupArea = function _KupDataTable_columnGroupArea() {
|
|
@@ -6440,6 +6911,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6440
6911
|
case 'Complete':
|
|
6441
6912
|
value = KupLanguageGrid.COMPLETE;
|
|
6442
6913
|
break;
|
|
6914
|
+
case 'extra_dense':
|
|
6915
|
+
value = KupLanguageDensity.EXTRA_DENSE;
|
|
6916
|
+
break;
|
|
6443
6917
|
case 'dense':
|
|
6444
6918
|
value = KupLanguageDensity.DENSE;
|
|
6445
6919
|
break;
|
|
@@ -6499,12 +6973,13 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6499
6973
|
} })));
|
|
6500
6974
|
}, _KupDataTable_getDensityCodeFromDecode = function _KupDataTable_getDensityCodeFromDecode(decode) {
|
|
6501
6975
|
return __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_transcodeItem).call(this, decode, __classPrivateFieldGet(this, _KupDataTable_DENSITY_DECODES, "f"), [
|
|
6976
|
+
'extra_dense',
|
|
6502
6977
|
'dense',
|
|
6503
6978
|
'medium',
|
|
6504
6979
|
'wide',
|
|
6505
6980
|
]);
|
|
6506
6981
|
}, _KupDataTable_renderDensityPanel = function _KupDataTable_renderDensityPanel() {
|
|
6507
|
-
const listItems = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, ['dense', 'medium', 'wide'], __classPrivateFieldGet(this, _KupDataTable_DENSITY_ICONS, "f"), this.density);
|
|
6982
|
+
const listItems = __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, ['extra_dense', 'dense', 'medium', 'wide'], __classPrivateFieldGet(this, _KupDataTable_DENSITY_ICONS, "f"), this.density);
|
|
6508
6983
|
const listData = { data: listItems, showIcons: true };
|
|
6509
6984
|
const textfieldData = {
|
|
6510
6985
|
trailingIcon: true,
|
|
@@ -6515,6 +6990,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6515
6990
|
let text = null;
|
|
6516
6991
|
switch (this.density) {
|
|
6517
6992
|
//This whole customization panel thingy must be purged, for now -- it's ugly
|
|
6993
|
+
case 'extra_dense':
|
|
6994
|
+
text = KupLanguageDensity.EXTRA_DENSE;
|
|
6995
|
+
break;
|
|
6518
6996
|
case 'dense':
|
|
6519
6997
|
text = KupLanguageDensity.DENSE;
|
|
6520
6998
|
break;
|
|
@@ -6633,12 +7111,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6633
7111
|
this.deleteRows(ids);
|
|
6634
7112
|
};
|
|
6635
7113
|
const addConfirmButton = () => {
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
bc === null || bc === void 0 ? void 0 : bc.blur();
|
|
6640
|
-
__classPrivateFieldGet(this, _KupDataTable_handleUpdateClick, "f").call(this);
|
|
6641
|
-
});
|
|
7114
|
+
if (this.hiddenSubmitButton) {
|
|
7115
|
+
return;
|
|
7116
|
+
}
|
|
6642
7117
|
commandButtons.push(h("kup-button", { styling: styling, icon: "check", "onKup-button-click": () => {
|
|
6643
7118
|
__classPrivateFieldGet(this, _KupDataTable_handleUpdateClick, "f").call(this);
|
|
6644
7119
|
}, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM) }));
|
|
@@ -6678,5 +7153,5 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
6678
7153
|
addConfirmButton();
|
|
6679
7154
|
addCommands();
|
|
6680
7155
|
addOperations();
|
|
6681
|
-
return h("div", { class: "commands" }, commandButtons);
|
|
7156
|
+
return (!!commandButtons.length && (h("div", { class: "commands" }, commandButtons)));
|
|
6682
7157
|
};
|