@sme.up/ketchup 10.3.8 → 10.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-button-bfafefb3.js → f-button-c084046d.js} +1 -1
- package/dist/cjs/{f-cell-9a77e09a.js → f-cell-9c556447.js} +12 -8
- package/dist/cjs/{f-checkbox-aaa6d45c.js → f-checkbox-e59d6bda.js} +3 -3
- package/dist/cjs/{f-chip-f1b14141.js → f-chip-29f981f7.js} +2 -2
- package/dist/cjs/{f-image-db10b066.js → f-image-7457eb26.js} +18 -15
- package/dist/cjs/{f-object-field-7c1ea180.js → f-object-field-ae0e860d.js} +3 -3
- package/dist/cjs/{f-paginator-utils-49cf707b.js → f-paginator-utils-806868eb.js} +2 -2
- package/dist/cjs/{f-text-field-f5b2163a.js → f-text-field-025f9ff3.js} +60 -3
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +448 -219
- package/dist/cjs/kup-box.cjs.entry.js +10 -10
- package/dist/cjs/kup-calendar.cjs.entry.js +6 -6
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +10 -10
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
- package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
- package/dist/cjs/{kup-data-table-helper-63e5d7a2.js → kup-data-table-helper-d3b9b899.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- 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 +23 -23
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +6 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +82 -27
- package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
- package/dist/cjs/{kup-manager-15f30f03.js → kup-manager-dbf73b5f.js} +21 -9
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-object-field.cjs.entry.js +6 -6
- package/dist/cjs/kup-pdf.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +4 -4
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/kup-txt.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kup-accordion/kup-accordion.js +1 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +1 -1
- package/dist/collection/components/kup-badge/kup-badge.js +2 -2
- package/dist/collection/components/kup-button-list/kup-button-list.js +1 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +2 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +5 -2
- package/dist/collection/components/kup-cell/kup-cell.js +2 -2
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.js +2 -2
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +2 -2
- package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +267 -119
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -8
- package/dist/collection/components/kup-dialog/kup-dialog.js +1 -1
- package/dist/collection/components/kup-drawer/kup-drawer.js +2 -2
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -1
- package/dist/collection/components/kup-echart/kup-echart.js +1 -1
- package/dist/collection/components/kup-editor/kup-editor.js +1 -1
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +2 -2
- package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +3 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.css +9 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +101 -27
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-htm/kup-htm.css +0 -3
- package/dist/collection/components/kup-htm/kup-htm.js +4 -1
- package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +9 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +92 -18
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
- package/dist/collection/components/kup-object-field/kup-object-field.js +1 -1
- package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
- package/dist/collection/components/kup-planner/kup-planner.js +1 -1
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -4
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/components/kup-txt/kup-txt.js +1 -1
- package/dist/collection/components/kup-typography/kup-typography.js +2 -2
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +5 -1
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
- package/dist/collection/f-components/f-image/f-image.js +18 -15
- package/dist/collection/f-components/f-text-field/f-text-field.js +55 -1
- package/dist/collection/managers/kup-data/kup-data.js +4 -3
- package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
- package/dist/collection/utils/cell-utils.js +4 -4
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +2 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +59 -7
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +3 -3
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +4 -4
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +4 -4
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-custom-task-list-header.js +1 -1
- package/dist/components/kup-dashboard.js +3 -3
- 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 +4 -4
- 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 +5 -5
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gantt-calendar.js +1 -1
- package/dist/components/kup-gantt.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid-renderer.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-horizontal-scroll.js +1 -1
- package/dist/components/kup-htm.js +7 -4
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +78 -22
- package/dist/components/kup-lazy.js +13 -13
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +7 -7
- package/dist/components/kup-nav-bar.js +3 -3
- package/dist/components/kup-numeric-picker.js +3 -3
- package/dist/components/kup-object-field.js +3 -3
- package/dist/components/kup-pdf.js +3 -3
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +17 -17
- package/dist/components/kup-probe.js +3 -3
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +3 -3
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +3 -3
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-standard-tooltip.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-switcher.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-task-gantt.js +1 -1
- package/dist/components/kup-task-list-header.js +1 -1
- package/dist/components/kup-task-list-table.js +1 -1
- package/dist/components/kup-task-list.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tooltip.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +3 -3
- package/dist/components/kup-typography-list.js +3 -3
- package/dist/components/kup-typography.js +4 -4
- package/dist/components/kup-vertical-scroll.js +1 -1
- package/dist/components/{p-7fa7072d.js → p-0b4e99fd.js} +2 -2
- package/dist/components/{p-d5573b9a.js → p-1bb114b8.js} +13 -13
- package/dist/components/{p-57069e5c.js → p-28f6440c.js} +1 -1
- package/dist/components/{p-f836c3ed.js → p-32c28a10.js} +2 -2
- package/dist/components/{p-7b80651f.js → p-395ac5ac.js} +1 -1
- package/dist/components/{p-75cc2a0e.js → p-3a56a01b.js} +2 -2
- package/dist/components/{p-fbaf1165.js → p-40202dad.js} +21 -9
- package/dist/components/{p-bba3ee8c.js → p-43275b92.js} +3 -3
- package/dist/components/{p-0886650d.js → p-5155623a.js} +2 -2
- package/dist/components/{p-91cbfbb1.js → p-6cc3382e.js} +3 -3
- package/dist/components/{p-73b82fab.js → p-7a243c51.js} +4 -4
- package/dist/components/{p-96d517a7.js → p-86464a43.js} +5 -5
- package/dist/components/{p-47eafd24.js → p-9471f708.js} +2 -2
- package/dist/components/{p-5aea1707.js → p-a1390144.js} +529 -230
- package/dist/components/{p-dbfe7218.js → p-a1ae4c21.js} +15 -15
- package/dist/components/{p-f0de2fa5.js → p-c9135ac0.js} +7 -7
- package/dist/components/{p-78086e86.js → p-ca202cfa.js} +1 -1
- package/dist/components/{p-e74c4841.js → p-e02d95bf.js} +3 -3
- package/dist/components/{p-168b2e98.js → p-f4797086.js} +1 -1
- package/dist/components/{p-46440124.js → p-fdb5e8d3.js} +2 -2
- package/dist/esm/{f-button-3c8f4506.js → f-button-6298565d.js} +1 -1
- package/dist/esm/{f-cell-0a43dfd3.js → f-cell-f31f34a8.js} +12 -8
- package/dist/esm/{f-checkbox-5cdd1cad.js → f-checkbox-191ec2e7.js} +3 -3
- package/dist/esm/{f-chip-d5f27ee2.js → f-chip-9d6113fe.js} +2 -2
- package/dist/esm/{f-image-a2ecd7c3.js → f-image-96ea1421.js} +18 -15
- package/dist/esm/{f-object-field-6f759bf9.js → f-object-field-0c2013c8.js} +3 -3
- package/dist/esm/{f-paginator-utils-6d124369.js → f-paginator-utils-8314bf54.js} +2 -2
- package/dist/esm/{f-text-field-86dd8534.js → f-text-field-371b1b43.js} +60 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-activity-timeline.entry.js +3 -3
- package/dist/esm/kup-autocomplete_30.entry.js +448 -219
- package/dist/esm/kup-box.entry.js +10 -10
- package/dist/esm/kup-calendar.entry.js +6 -6
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +10 -10
- package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
- package/dist/esm/kup-dashboard.entry.js +6 -6
- package/dist/esm/{kup-data-table-helper-7d5e4260.js → kup-data-table-helper-04404034.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +2 -2
- 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 +23 -23
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +6 -3
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +82 -27
- package/dist/esm/kup-lazy.entry.js +12 -12
- package/dist/esm/kup-magic-box.entry.js +5 -5
- package/dist/esm/{kup-manager-2b06d829.js → kup-manager-9ccdaa27.js} +21 -9
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-object-field.entry.js +6 -6
- package/dist/esm/kup-pdf.entry.js +2 -2
- package/dist/esm/kup-planner-renderer.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +4 -4
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/kup-txt.entry.js +2 -2
- package/dist/esm/kup-typography-list.entry.js +2 -2
- package/dist/esm/kup-typography.entry.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-98fb85e5.entry.js → p-01fd9784.entry.js} +1 -1
- package/dist/ketchup/{p-2f626d6c.entry.js → p-17c33bed.entry.js} +1 -1
- package/dist/ketchup/{p-4c8480a1.entry.js → p-26c10598.entry.js} +1 -1
- package/dist/ketchup/{p-045e7306.entry.js → p-3357aa91.entry.js} +1 -1
- package/dist/ketchup/{p-1015f35b.entry.js → p-346b17b4.entry.js} +1 -1
- package/dist/ketchup/{p-e5022c5b.entry.js → p-37d0e9e4.entry.js} +1 -1
- package/dist/ketchup/{p-43246def.js → p-43e37416.js} +1 -1
- package/dist/ketchup/{p-425fab24.entry.js → p-43f50ba7.entry.js} +2 -2
- package/dist/ketchup/{p-3f7fec03.entry.js → p-63dd560e.entry.js} +1 -1
- package/dist/ketchup/{p-f9d6a629.entry.js → p-6766ca18.entry.js} +2 -2
- package/dist/ketchup/{p-b1a9f499.entry.js → p-6a59894e.entry.js} +1 -1
- package/dist/ketchup/{p-179d9c32.entry.js → p-6ae996e1.entry.js} +2 -2
- package/dist/ketchup/p-6bf3ff2f.js +1 -0
- package/dist/ketchup/{p-b1371652.js → p-74c6c382.js} +1 -1
- package/dist/ketchup/{p-bf5abe49.entry.js → p-8655b58a.entry.js} +1 -1
- package/dist/ketchup/p-87d242df.js +1 -0
- package/dist/ketchup/{p-a186678f.js → p-885d0dd0.js} +1 -1
- package/dist/ketchup/{p-8a95b2a0.entry.js → p-8a291991.entry.js} +1 -1
- package/dist/ketchup/{p-b5575d63.entry.js → p-91846c17.entry.js} +1 -1
- package/dist/ketchup/{p-39472246.entry.js → p-9249bf18.entry.js} +1 -1
- package/dist/ketchup/{p-2bb6c663.js → p-93dcbb39.js} +1 -1
- package/dist/ketchup/{p-17f69e68.entry.js → p-99ff9e9c.entry.js} +1 -1
- package/dist/ketchup/{p-4f380f49.entry.js → p-a14160c1.entry.js} +1 -1
- package/dist/ketchup/{p-beacc7fd.entry.js → p-a6a12568.entry.js} +1 -1
- package/dist/ketchup/p-b0c9b55c.entry.js +1 -0
- package/dist/ketchup/{p-74035126.entry.js → p-b6647af5.entry.js} +1 -1
- package/dist/ketchup/p-b780f3c6.entry.js +1 -0
- package/dist/ketchup/{p-d022b77e.entry.js → p-b803bf4b.entry.js} +2 -2
- package/dist/ketchup/{p-d83f2153.entry.js → p-b83c852d.entry.js} +1 -1
- package/dist/ketchup/{p-0a93321f.entry.js → p-be04cb85.entry.js} +1 -1
- package/dist/ketchup/{p-9432bc02.entry.js → p-c1257bb0.entry.js} +1 -1
- package/dist/ketchup/{p-a301cd89.entry.js → p-c8b6b65c.entry.js} +1 -1
- package/dist/ketchup/p-cc9db65d.js +1 -0
- package/dist/ketchup/p-cfe822a5.entry.js +1 -0
- package/dist/ketchup/{p-e6cad40c.entry.js → p-d3baddb1.entry.js} +1 -1
- package/dist/ketchup/p-da6e388e.entry.js +1 -0
- package/dist/ketchup/{p-00963efe.entry.js → p-da6ecaf5.entry.js} +1 -1
- package/dist/ketchup/p-dcb80cbc.entry.js +8 -0
- package/dist/ketchup/p-ecf63f95.entry.js +1 -0
- package/dist/ketchup/{p-9f9428d1.js → p-ef3112d4.js} +1 -1
- package/dist/ketchup/p-f8aefe67.js +21 -0
- package/dist/ketchup/{p-c4224227.js → p-ff735e62.js} +1 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +7 -1
- package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +4 -1
- package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +4 -2
- package/dist/types/components/kup-htm/kup-htm.d.ts +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components.d.ts +41 -4
- package/dist/types/f-components/f-cell/f-cell.d.ts +5 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +3 -1
- package/dist/types/utils/cell-utils.d.ts +1 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +3 -1
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +3 -2
- package/package.json +1 -1
- package/dist/ketchup/p-3cab6420.js +0 -1
- package/dist/ketchup/p-4d3ae43b.entry.js +0 -8
- package/dist/ketchup/p-514a0dfd.js +0 -1
- package/dist/ketchup/p-5f35bc3e.js +0 -1
- package/dist/ketchup/p-62b0efc0.js +0 -21
- package/dist/ketchup/p-68929471.entry.js +0 -1
- package/dist/ketchup/p-a34c1e3c.entry.js +0 -1
- package/dist/ketchup/p-e5f2da82.entry.js +0 -1
- package/dist/ketchup/p-f9c3699f.entry.js +0 -1
- package/dist/ketchup/p-fd855732.entry.js +0 -1
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager$2 = require('./kup-manager-
|
|
7
|
-
const fTextField = require('./f-text-field-
|
|
6
|
+
const kupManager$2 = require('./kup-manager-dbf73b5f.js');
|
|
7
|
+
const fTextField = require('./f-text-field-025f9ff3.js');
|
|
8
8
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-29f981f7.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
|
-
const fImage = require('./f-image-
|
|
12
|
-
const fButton = require('./f-button-
|
|
11
|
+
const fImage = require('./f-image-7457eb26.js');
|
|
12
|
+
const fButton = require('./f-button-c084046d.js');
|
|
13
13
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
14
|
-
const fCell = require('./f-cell-
|
|
14
|
+
const fCell = require('./f-cell-9c556447.js');
|
|
15
15
|
const kupDates = require('./kup-dates-8619368a.js');
|
|
16
16
|
const component = require('./component-a6dd6c14.js');
|
|
17
|
-
const fCheckbox = require('./f-checkbox-
|
|
18
|
-
const kupDataTableHelper = require('./kup-data-table-helper-
|
|
19
|
-
const fPaginatorUtils = require('./f-paginator-utils-
|
|
20
|
-
require('./f-object-field-
|
|
17
|
+
const fCheckbox = require('./f-checkbox-e59d6bda.js');
|
|
18
|
+
const kupDataTableHelper = require('./kup-data-table-helper-d3b9b899.js');
|
|
19
|
+
const fPaginatorUtils = require('./f-paginator-utils-806868eb.js');
|
|
20
|
+
require('./f-object-field-ae0e860d.js');
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Props of the kup-autocomplete component.
|
|
@@ -412,7 +412,7 @@ const KupAutocomplete = class {
|
|
|
412
412
|
};
|
|
413
413
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
414
414
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
415
|
-
return (index.h(index.Host, { key: '
|
|
415
|
+
return (index.h(index.Host, { key: 'fa5c15b68526f7417b380130f67b5b752510b2ee', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$b(this, _KupAutocomplete_elStyle, "f") }, index.h("style", { key: '1d019473982517ce24989f51971e39b1226c3d83' }, __classPrivateFieldGet$b(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'edfa6238ef11bafb0e3a4fa07aafa94e1d4c7c26', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$b(this, _KupAutocomplete_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: '5510f6766e3a9a0013f2c9ebe46b1a08a22f6793' }, props, { icon: this.showDropDownIcon
|
|
416
416
|
? kupManager$2.KupThemeIconValues.SEARCH
|
|
417
417
|
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChangeSubmit(e.target.value, this.kupChange), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
418
418
|
window.clearTimeout(__classPrivateFieldGet$b(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -600,9 +600,9 @@ const KupBadge = class {
|
|
|
600
600
|
if (!this.imageData.color) {
|
|
601
601
|
this.imageData.color = `var(${kupManager$2.KupThemeColorValues.TEXT_ON_PRIMARY})`;
|
|
602
602
|
}
|
|
603
|
-
imageEl = index.h(fImage.FImage, Object.assign({ key: '
|
|
603
|
+
imageEl = index.h(fImage.FImage, Object.assign({ key: 'e6507be50334058832877c6914131606e2b6a93e' }, this.imageData));
|
|
604
604
|
}
|
|
605
|
-
return (index.h(index.Host, { key: '
|
|
605
|
+
return (index.h(index.Host, { key: '7f749206f548fabf6fbdcaf3074c2301c03d84e4' }, index.h("style", { key: '9567843d41df931d7a0ae9547c4c152203dda999' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '922710165738b425920ef64b9a35eed5116f0420', id: GenericVariables.componentWrapperId, class: this.type, onClick: () => this.onKupClick() }, this.text, imageEl)));
|
|
606
606
|
}
|
|
607
607
|
disconnectedCallback() {
|
|
608
608
|
this.kupManager.theme.unregister(this);
|
|
@@ -1128,7 +1128,7 @@ const KupButtonList = class {
|
|
|
1128
1128
|
'button-list--container': true,
|
|
1129
1129
|
'show-selection': this.showSelection && this.selected ? true : false,
|
|
1130
1130
|
};
|
|
1131
|
-
return (index.h(index.Host, { key: '
|
|
1131
|
+
return (index.h(index.Host, { key: '29f208ac7d19d484377451c57fb08947acdec6b1', style: hostStyle }, index.h("style", { key: '92168e3d04597b51e4a237b5bcdf2a2ff2ebf570' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '281dad0f29fb6f95ccd9a135666fad62b2d77999', id: GenericVariables.componentWrapperId }, index.h("div", { key: 'b0b8d53b27f2b44b05b918a365569b72d2474c6b', class: classObj }, buttons))));
|
|
1132
1132
|
}
|
|
1133
1133
|
disconnectedCallback() {
|
|
1134
1134
|
this.kupManager.theme.unregister(this);
|
|
@@ -2762,6 +2762,8 @@ var KupColumnMenuIds;
|
|
|
2762
2762
|
KupColumnMenuIds["SWITCH_KEY"] = "key";
|
|
2763
2763
|
KupColumnMenuIds["TEXTFIELD_FILTER"] = "filter";
|
|
2764
2764
|
KupColumnMenuIds["TEXTFIELD_FORMULA"] = "formula";
|
|
2765
|
+
KupColumnMenuIds["TOTALS_TABLE"] = "totals-table";
|
|
2766
|
+
KupColumnMenuIds["BACK_TO_ORIGINAL_TABLE"] = "back-to-original-table";
|
|
2765
2767
|
})(KupColumnMenuIds || (KupColumnMenuIds = {}));
|
|
2766
2768
|
|
|
2767
2769
|
/**
|
|
@@ -4331,7 +4333,10 @@ function create12(component) {
|
|
|
4331
4333
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (index.h("div", { class: "section-1" },
|
|
4332
4334
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_REMOVE)))) : null,
|
|
4333
4335
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_GROUP)))) : null,
|
|
4334
|
-
buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_ADD_COLUMNS)))) : null
|
|
4336
|
+
buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_ADD_COLUMNS)))) : null,
|
|
4337
|
+
buttonsIds.includes(KupColumnMenuIds.TOTALS_TABLE) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.TOTALS_TABLE)))) : null,
|
|
4338
|
+
buttonsIds.includes(KupColumnMenuIds.BACK_TO_ORIGINAL_TABLE) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
4339
|
+
KupColumnMenuIds.BACK_TO_ORIGINAL_TABLE)))) : null)) : null,
|
|
4335
4340
|
index.h("div", { class: `section-2 ${textfieldArray.length > 0 ||
|
|
4336
4341
|
datepickerArray.length > 0 ||
|
|
4337
4342
|
timepickerArray.length > 0
|
|
@@ -4520,7 +4525,11 @@ function create14(component) {
|
|
|
4520
4525
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
4521
4526
|
KupColumnMenuIds.BUTTON_REMOVE)))) : null,
|
|
4522
4527
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
4523
|
-
KupColumnMenuIds.BUTTON_GROUP)))) : null
|
|
4528
|
+
KupColumnMenuIds.BUTTON_GROUP)))) : null,
|
|
4529
|
+
buttonsIds.includes(KupColumnMenuIds.TOTALS_TABLE) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
4530
|
+
KupColumnMenuIds.TOTALS_TABLE)))) : null,
|
|
4531
|
+
buttonsIds.includes(KupColumnMenuIds.BACK_TO_ORIGINAL_TABLE) ? (index.h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
4532
|
+
KupColumnMenuIds.BACK_TO_ORIGINAL_TABLE)))) : null),
|
|
4524
4533
|
index.h("div", { class: "sub-formula" }, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FORMULA) ? (index.h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
|
|
4525
4534
|
KupColumnMenuIds.TEXTFIELD_FORMULA)))) : null),
|
|
4526
4535
|
index.h("div", { class: "sub-chip" },
|
|
@@ -6924,7 +6933,7 @@ const KupCheckbox = class {
|
|
|
6924
6933
|
onChange: () => this.onKupChange(),
|
|
6925
6934
|
onFocus: () => this.onKupFocus(),
|
|
6926
6935
|
};
|
|
6927
|
-
return (index.h(index.Host, { key: '
|
|
6936
|
+
return (index.h(index.Host, { key: 'b13123a95a739b1b66b17213416b3be2bb957555' }, index.h("style", { key: '70d4f52da169ede2ba4867675d0d180457352c90' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '2a3c7bced3f7792637329b1b7492926ce89e4d01', id: GenericVariables.componentWrapperId }, index.h(fCheckbox.FCheckbox, Object.assign({ key: '1b7966ac780744016aabef991a7b4af20aaf5ba1' }, props)))));
|
|
6928
6937
|
}
|
|
6929
6938
|
disconnectedCallback() {
|
|
6930
6939
|
this.kupManager.theme.unregister(this);
|
|
@@ -7149,7 +7158,7 @@ const KupChip = class {
|
|
|
7149
7158
|
props.onFocus.push((chip) => this.onKupFocus(chip));
|
|
7150
7159
|
props.onIconClick.push((chip) => this.onKupIconClick(chip));
|
|
7151
7160
|
}
|
|
7152
|
-
return (index.h(index.Host, { key: '
|
|
7161
|
+
return (index.h(index.Host, { key: 'a8a0f7b6a2c1f6b0b54e2703508ae9955969038c', "onKup-autocomplete-itemclick": (e) => {
|
|
7153
7162
|
__classPrivateFieldGet$a(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
7154
7163
|
}, "onKup-combobox-itemclick": (e) => {
|
|
7155
7164
|
__classPrivateFieldGet$a(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
@@ -7159,7 +7168,7 @@ const KupChip = class {
|
|
|
7159
7168
|
__classPrivateFieldGet$a(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
7160
7169
|
}, "onKup-textfield-submit": (e) => {
|
|
7161
7170
|
__classPrivateFieldGet$a(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
7162
|
-
} }, index.h("style", { key: '
|
|
7171
|
+
} }, index.h("style", { key: 'ae39d4cd1e1b869f37b82dd25a6eae17a9f4d389' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'dcd69afb67a3f4e55a4a906a0416670ba793c29d', id: GenericVariables.componentWrapperId }, this.label ? (index.h("div", { class: "mdc-text-field__label-container" }, index.h("label", { class: "mdc-label" }, this.label))) : null, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? index.h(fChip.FChip, Object.assign({}, props)) : null, index.h("slot", { key: '0ce91afa00f72b58e4c5096384957cdc312da138', name: "field" }))));
|
|
7163
7172
|
}
|
|
7164
7173
|
disconnectedCallback() {
|
|
7165
7174
|
this.kupManager.theme.unregister(this);
|
|
@@ -7462,7 +7471,7 @@ const KupColorPicker = class {
|
|
|
7462
7471
|
render() {
|
|
7463
7472
|
let widget = null;
|
|
7464
7473
|
if (this.swatchOnly) {
|
|
7465
|
-
widget = (index.h("button", { key: '
|
|
7474
|
+
widget = (index.h("button", { key: '64996130511ebe2b29da7c33947747feecbdf1a2', disabled: this.disabled, class: "color-picker", onClick: () => this.openPicker(), style: {
|
|
7466
7475
|
backgroundColor: this.value,
|
|
7467
7476
|
}, type: "button" }));
|
|
7468
7477
|
}
|
|
@@ -7472,7 +7481,7 @@ const KupColorPicker = class {
|
|
|
7472
7481
|
const style = {
|
|
7473
7482
|
['--kup_colorpicker_thumb_color']: this.value ? this.value : '',
|
|
7474
7483
|
};
|
|
7475
|
-
return (index.h(index.Host, { key: '
|
|
7484
|
+
return (index.h(index.Host, { key: '481d41157376a386d2a2aacce1937ceb43b2c578', style: style }, index.h("style", { key: 'de7c5de27ba8487c6bbb7516b614c63f32796778' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '5f48be435a21f5618cc1df384d7d74108f0fb235', id: GenericVariables.componentWrapperId }, widget)));
|
|
7476
7485
|
}
|
|
7477
7486
|
disconnectedCallback() {
|
|
7478
7487
|
if (this.card) {
|
|
@@ -7844,7 +7853,7 @@ const KupCombobox = class {
|
|
|
7844
7853
|
};
|
|
7845
7854
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
7846
7855
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
7847
|
-
return (index.h(index.Host, { key: '
|
|
7856
|
+
return (index.h(index.Host, { key: '9c90b7b64c819536c358f83e7b6b9d6869afc6aa', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet$9(this, _KupCombobox_elStyle, "f") }, index.h("style", { key: '442f4f51a69ed33f000ff90bbde9d5be17b968bd' }, __classPrivateFieldGet$9(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'b345836554fade42c288f715f020e566409e41e0', id: GenericVariables.componentWrapperId, style: __classPrivateFieldGet$9(this, _KupCombobox_elStyle, "f") }, index.h(fTextField.FTextField, Object.assign({ key: '68cebc484ee2caaa0be83fcf3d52a99d94047ff9' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
7848
7857
|
? kupManager$2.KupThemeIconValues.DROPDOWN
|
|
7849
7858
|
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupIconClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick(), onClearIconClick: () => this.onKupClearIconClick() }))), __classPrivateFieldGet$9(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
7850
7859
|
}
|
|
@@ -8101,8 +8110,37 @@ class KupColumnMenu {
|
|
|
8101
8110
|
title: dom$3.ketchup.language.translate(kupManager$2.KupLanguageGeneric.APPLY),
|
|
8102
8111
|
});
|
|
8103
8112
|
}
|
|
8113
|
+
if (this.isKupDataTable(comp)) {
|
|
8114
|
+
if (comp.totals &&
|
|
8115
|
+
comp.groups &&
|
|
8116
|
+
comp.groups.map((group) => group.column).includes(column.name)) {
|
|
8117
|
+
props.push({
|
|
8118
|
+
className: 'printable',
|
|
8119
|
+
'data-storage': {
|
|
8120
|
+
columnName: column.name,
|
|
8121
|
+
},
|
|
8122
|
+
icon: 'table',
|
|
8123
|
+
id: KupColumnMenuIds.TOTALS_TABLE,
|
|
8124
|
+
title: dom$3.ketchup.language.translate(kupManager$2.KupLanguageGeneric.TOTALS_TABLE),
|
|
8125
|
+
});
|
|
8126
|
+
if (comp.totalsMatrixView) {
|
|
8127
|
+
props.push({
|
|
8128
|
+
className: 'printable',
|
|
8129
|
+
'data-storage': {
|
|
8130
|
+
columnName: column.name,
|
|
8131
|
+
},
|
|
8132
|
+
icon: 'table-large',
|
|
8133
|
+
id: KupColumnMenuIds.BACK_TO_ORIGINAL_TABLE,
|
|
8134
|
+
title: dom$3.ketchup.language.translate(kupManager$2.KupLanguageGeneric.BACK_TO_ORIGINAL_TABLE),
|
|
8135
|
+
});
|
|
8136
|
+
}
|
|
8137
|
+
}
|
|
8138
|
+
}
|
|
8104
8139
|
return props;
|
|
8105
8140
|
}
|
|
8141
|
+
isKupDataTable(comp) {
|
|
8142
|
+
return comp && comp.rowsPerPage;
|
|
8143
|
+
}
|
|
8106
8144
|
/**
|
|
8107
8145
|
* Handles the column menu's checkbox prop.
|
|
8108
8146
|
* @param {KupDataTable | KupTree} comp - Component using the column menu.
|
|
@@ -8176,12 +8214,25 @@ class KupColumnMenu {
|
|
|
8176
8214
|
catch (error) {
|
|
8177
8215
|
dom$3.ketchup.debug.logMessage(this, 'Child column not found (' + child.name + ')!' + error, kupManager$2.KupDebugCategory.ERROR);
|
|
8178
8216
|
}
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8217
|
+
if (childColumn) {
|
|
8218
|
+
if (childColumn.visible) {
|
|
8219
|
+
chipData.push({
|
|
8220
|
+
icon: child.icon ? child.icon : null,
|
|
8221
|
+
value: childColumn.title,
|
|
8222
|
+
obj: child.obj ? child.obj : null,
|
|
8223
|
+
id: childColumn.name,
|
|
8224
|
+
});
|
|
8225
|
+
}
|
|
8226
|
+
// if column is not visible it means it has been removed, do not push anything
|
|
8227
|
+
}
|
|
8228
|
+
else {
|
|
8229
|
+
chipData.push({
|
|
8230
|
+
icon: child.icon ? child.icon : null,
|
|
8231
|
+
value: '*Not found!',
|
|
8232
|
+
obj: child.obj ? child.obj : null,
|
|
8233
|
+
id: '*NOTFND',
|
|
8234
|
+
});
|
|
8235
|
+
}
|
|
8185
8236
|
}
|
|
8186
8237
|
chipProps.dataSet = { initialData: [...chipData] };
|
|
8187
8238
|
chipProps.data = chipData;
|
|
@@ -8421,7 +8472,7 @@ class KupColumnMenu {
|
|
|
8421
8472
|
* @param {CustomEvent} cardEvent - kup-card-event emitted by the column menu.
|
|
8422
8473
|
* @param {KupDataTable | KupTree} comp - Component using the column menu.
|
|
8423
8474
|
*/
|
|
8424
|
-
eventHandlers(cardEvent, comp) {
|
|
8475
|
+
eventHandlers(cardEvent, comp, columnName) {
|
|
8425
8476
|
var _a;
|
|
8426
8477
|
const card = cardEvent.detail.card
|
|
8427
8478
|
? cardEvent.detail.card
|
|
@@ -8519,6 +8570,16 @@ class KupColumnMenu {
|
|
|
8519
8570
|
comp.hideColumn(dataStorage['column']);
|
|
8520
8571
|
});
|
|
8521
8572
|
break;
|
|
8573
|
+
case KupColumnMenuIds.TOTALS_TABLE:
|
|
8574
|
+
comp.closeColumnMenu().then(() => {
|
|
8575
|
+
comp.toggleTotalsMatrix(columnName, true);
|
|
8576
|
+
});
|
|
8577
|
+
break;
|
|
8578
|
+
case KupColumnMenuIds.BACK_TO_ORIGINAL_TABLE:
|
|
8579
|
+
comp.closeColumnMenu().then(() => {
|
|
8580
|
+
comp.toggleTotalsMatrix(columnName, false);
|
|
8581
|
+
});
|
|
8582
|
+
break;
|
|
8522
8583
|
}
|
|
8523
8584
|
break;
|
|
8524
8585
|
case 'kup-checkbox-change':
|
|
@@ -8652,7 +8713,7 @@ var __classPrivateFieldSet$4 = (undefined && undefined.__classPrivateFieldSet) |
|
|
|
8652
8713
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8653
8714
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8654
8715
|
};
|
|
8655
|
-
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_modifiedRowsIds, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_lastPointerDetails, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_actionsCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_dropDownActionCardAnchor, _KupDataTable_insertCount, _KupDataTable_lastFocusedColumn, _KupDataTable_lastFocusedCell, _KupDataTable_lastFocusedRow, _KupDataTable_maxRowsPerPage, _KupDataTable_readyPromise, _KupDataTable_readyResolve, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, _KupDataTable_insertNewColumnInVisibleColumnsList, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable__getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_dropDownActions, _KupDataTable_createDropDownActionsCard, _KupDataTable_clearSearchActionsCard, _KupDataTable_filterRowActionsCard, _KupDataTable_closeRowActionsCard, _KupDataTable_closeColumnMenuCard, _KupDataTable_prepareDataForActionsCard, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_getEventDetailsForCurrentSelection, _KupDataTable_getSourceElementCoordsForCurrentSelection, _KupDataTable_clickHandler, _KupDataTable_cellActionsMenuHandler, _KupDataTable_contextMenuHandler, _KupDataTable_tooltipRequestHandler, _KupDataTable_contextMenuHandlerDetailsManager, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_copyCellValueInColumnHandler, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_setCellEditability, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_horNav, _KupDataTable_verNav, _KupDataTable_onKupKeyDown, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_handleUpdateClick, _KupDataTable_onBlurHandler, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel, _KupDataTable_renderCommandButton, _KupDataTable_handleChipsContextMenu, _KupDataTable_renderCommandDropDownButton, _KupDataTable_renderOtherButtons, _KupDataTable_renderUpdateButtons, _KupDataTable_createDeletePayload, _KupDataTable_isRowInserted, _KupDataTable_isRowModified, _KupDataTable_arraysContainSameElements;
|
|
8716
|
+
var _KupDataTable_instances, _KupDataTable_checkUpdateState, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_originalDataLoaded, _KupDataTable_originalDataLoadedMaxId, _KupDataTable_beforeTotalMatrixData, _KupDataTable_beforeTotalMatrixGroups, _KupDataTable_beforeTotalMatrixTotals, _KupDataTable_beforeTotalMatrixVisibleColumns, _KupDataTable_insertedRowIds, _KupDataTable_modifiedRowsIds, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_lastPointerDetails, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_actionsCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_dropDownActionCardAnchor, _KupDataTable_insertCount, _KupDataTable_lastFocusedColumn, _KupDataTable_lastFocusedCell, _KupDataTable_lastFocusedRow, _KupDataTable_maxRowsPerPage, _KupDataTable_readyPromise, _KupDataTable_readyResolve, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, _KupDataTable_insertNewColumnInVisibleColumnsList, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable__getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchBackFromTotalsMatrix, _KupDataTable_switchToTotalsMatrix, _KupDataTable_findGroupsAtLevel, _KupDataTable_getGroupElementsBefore, _KupDataTable_buildTotalTitle, _KupDataTable_promoteTotals, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_dropDownActions, _KupDataTable_createDropDownActionsCard, _KupDataTable_clearSearchActionsCard, _KupDataTable_filterRowActionsCard, _KupDataTable_closeRowActionsCard, _KupDataTable_closeColumnMenuCard, _KupDataTable_prepareDataForActionsCard, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_getEventDetailsForCurrentSelection, _KupDataTable_getSourceElementCoordsForCurrentSelection, _KupDataTable_clickHandler, _KupDataTable_cellActionsMenuHandler, _KupDataTable_contextMenuHandler, _KupDataTable_tooltipRequestHandler, _KupDataTable_contextMenuHandlerDetailsManager, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_copyCellValueInColumnHandler, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_setCellEditability, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_horNav, _KupDataTable_verNav, _KupDataTable_onKupKeyDown, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_handleUpdateClick, _KupDataTable_onBlurHandler, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderBackFromTotalsMatrix, _KupDataTable_renderGridPanel, _KupDataTable_renderCommandButton, _KupDataTable_handleChipsContextMenu, _KupDataTable_renderCommandDropDownButton, _KupDataTable_renderOtherButtons, _KupDataTable_renderUpdateButtons, _KupDataTable_createDeletePayload, _KupDataTable_isRowInserted, _KupDataTable_isRowModified, _KupDataTable_arraysContainSameElements;
|
|
8656
8717
|
const dom$2 = document.documentElement;
|
|
8657
8718
|
const KupDataTable = class {
|
|
8658
8719
|
constructor(hostRef) {
|
|
@@ -8717,6 +8778,13 @@ const KupDataTable = class {
|
|
|
8717
8778
|
* contains the id greater value in #originalDataLoaded
|
|
8718
8779
|
*/
|
|
8719
8780
|
_KupDataTable_originalDataLoadedMaxId.set(this, void 0);
|
|
8781
|
+
/**
|
|
8782
|
+
* variables keeping track of the matrix properties before the totals view
|
|
8783
|
+
*/
|
|
8784
|
+
_KupDataTable_beforeTotalMatrixData.set(this, undefined);
|
|
8785
|
+
_KupDataTable_beforeTotalMatrixGroups.set(this, undefined);
|
|
8786
|
+
_KupDataTable_beforeTotalMatrixTotals.set(this, undefined);
|
|
8787
|
+
_KupDataTable_beforeTotalMatrixVisibleColumns.set(this, undefined);
|
|
8720
8788
|
/**
|
|
8721
8789
|
* contains the id greater value in #originalDataLoaded
|
|
8722
8790
|
*/
|
|
@@ -8966,6 +9034,7 @@ const KupDataTable = class {
|
|
|
8966
9034
|
this.visibleColumns = undefined;
|
|
8967
9035
|
this.updatableData = false;
|
|
8968
9036
|
this.updateOnClick = false;
|
|
9037
|
+
this.onCellActionBuild = undefined;
|
|
8969
9038
|
this.lazyLoadCells = false;
|
|
8970
9039
|
this.currentPage = 1;
|
|
8971
9040
|
this.currentRowsPerPage = 50;
|
|
@@ -8976,6 +9045,7 @@ const KupDataTable = class {
|
|
|
8976
9045
|
this.openedTotalMenu = null;
|
|
8977
9046
|
this.openedCustomSettings = false;
|
|
8978
9047
|
this.fontsize = 'small';
|
|
9048
|
+
this.totalsMatrixView = false;
|
|
8979
9049
|
}
|
|
8980
9050
|
initWithPersistedState() {
|
|
8981
9051
|
if (this.store && this.stateId) {
|
|
@@ -9391,7 +9461,7 @@ const KupDataTable = class {
|
|
|
9391
9461
|
});
|
|
9392
9462
|
});
|
|
9393
9463
|
__classPrivateFieldGet$8(this, _KupDataTable_columnMenuCard, "f").addEventListener('kup-card-event', (e) => {
|
|
9394
|
-
__classPrivateFieldGet$8(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this);
|
|
9464
|
+
__classPrivateFieldGet$8(this, _KupDataTable_columnMenuInstance, "f").eventHandlers(e, this, columnName);
|
|
9395
9465
|
this.kupDataTableColumnMenu.emit({
|
|
9396
9466
|
comp: this,
|
|
9397
9467
|
id: this.rootElement.id,
|
|
@@ -9635,6 +9705,11 @@ const KupDataTable = class {
|
|
|
9635
9705
|
}
|
|
9636
9706
|
}
|
|
9637
9707
|
}
|
|
9708
|
+
async toggleTotalsMatrix(columnName, calculateTotals) {
|
|
9709
|
+
calculateTotals === true
|
|
9710
|
+
? __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_switchToTotalsMatrix).call(this, columnName)
|
|
9711
|
+
: __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_switchBackFromTotalsMatrix).call(this);
|
|
9712
|
+
}
|
|
9638
9713
|
//---- Lifecycle hooks ----
|
|
9639
9714
|
connectedCallback() {
|
|
9640
9715
|
__classPrivateFieldSet$4(this, _KupDataTable_readyPromise, new Promise((resolve) => {
|
|
@@ -10024,8 +10099,13 @@ const KupDataTable = class {
|
|
|
10024
10099
|
grid = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_renderGridPanel).call(this);
|
|
10025
10100
|
transpose = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_renderTransposeSwitch).call(this);
|
|
10026
10101
|
if (this.totals && this.groups.length > 0) {
|
|
10102
|
+
// From original matrix to totalsMatrix
|
|
10027
10103
|
totalsMatrix = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_renderTotalsMatrix).call(this);
|
|
10028
10104
|
}
|
|
10105
|
+
if (this.totalsMatrixView) {
|
|
10106
|
+
// From totals matrix to original
|
|
10107
|
+
totalsMatrix = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_renderBackFromTotalsMatrix).call(this);
|
|
10108
|
+
}
|
|
10029
10109
|
}
|
|
10030
10110
|
return (index.h("kup-card", { customStyle: "::slotted(kup-switch) { width: max-content !important; } ::slotted(*) { margin: auto !important; } ::slotted(.customize-element) { margin: auto !important; padding: 0 1em 1em 1em !important; width: max-content !important; } ::slotted(.customize-element):nth-child(1) { padding-top: 1em !important; }", isMenu: true, layoutFamily: kupManager$2.KupCardFamily.FREE, ref: (el) => {
|
|
10031
10111
|
__classPrivateFieldSet$4(this, _KupDataTable_customizeTopPanelRef, el, "f");
|
|
@@ -10078,7 +10158,7 @@ const KupDataTable = class {
|
|
|
10078
10158
|
__classPrivateFieldSet$4(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
10079
10159
|
let rows = null;
|
|
10080
10160
|
if (__classPrivateFieldGet$8(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
10081
|
-
rows = (index.h("tr", { key: '
|
|
10161
|
+
rows = (index.h("tr", { key: '87753d8d2c1fa789318e95c2eeadcc7ea0bab9fb', ref: (el) => __classPrivateFieldGet$8(this, _KupDataTable_rowsRefs, "f").push(el) }, index.h("td", { key: '80d4595656ae06acf2195ab5315f236aafa5663d', colSpan: __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
10082
10162
|
}
|
|
10083
10163
|
else {
|
|
10084
10164
|
rows = [];
|
|
@@ -10154,7 +10234,7 @@ const KupDataTable = class {
|
|
|
10154
10234
|
__classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
|
|
10155
10235
|
});
|
|
10156
10236
|
}
|
|
10157
|
-
groupChips = index.h(fChip.FChip, Object.assign({ key: '
|
|
10237
|
+
groupChips = index.h(fChip.FChip, Object.assign({ key: 'f847cccbead5361d9ef4bebf1c34a70f6f36a955' }, props));
|
|
10158
10238
|
}
|
|
10159
10239
|
}
|
|
10160
10240
|
const tableClass = {
|
|
@@ -10186,7 +10266,7 @@ const KupDataTable = class {
|
|
|
10186
10266
|
if (this.headerIsPersistent &&
|
|
10187
10267
|
this.tableHeight === undefined &&
|
|
10188
10268
|
this.tableWidth === undefined) {
|
|
10189
|
-
stickyEl = (index.h("sticky-header", { key: '
|
|
10269
|
+
stickyEl = (index.h("sticky-header", { key: '04a4a924938e6008882c7dd1a8f99a6139ce5968', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$4(this, _KupDataTable_stickyTheadRef, el, "f")) }, index.h("thead-sticky", { key: '49c0fcd58e5b0082fa8205ddf5860e17a6c6516d' }, index.h("tr-sticky", { key: 'f9d3165f00d280e191c86a533199f4c4685c68cb' }, stickyHeader))));
|
|
10190
10270
|
}
|
|
10191
10271
|
let belowClass = 'below-wrapper';
|
|
10192
10272
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -10232,7 +10312,7 @@ const KupDataTable = class {
|
|
|
10232
10312
|
const useGlobalFilter = !this.legacyLook &&
|
|
10233
10313
|
(this.globalFilter ||
|
|
10234
10314
|
this.getRows().length > __classPrivateFieldGet$8(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
10235
|
-
const compCreated = (index.h(index.Host, { key: '
|
|
10315
|
+
const compCreated = (index.h(index.Host, { key: '72ae58a294e5192217b637a3eb0b1315d373bc8a', "onKup-drop": (e) => {
|
|
10236
10316
|
this.kupDataTableDrop.emit(e.detail);
|
|
10237
10317
|
}, "onKup-cell-input": (e) => {
|
|
10238
10318
|
autoselectOnAction(e);
|
|
@@ -10251,11 +10331,11 @@ const KupDataTable = class {
|
|
|
10251
10331
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
10252
10332
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
10253
10333
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
10254
|
-
} }, index.h("style", { key: '
|
|
10334
|
+
} }, index.h("style", { key: '37ed4d42df8103d59d19005e0f7207c7e7526804' }, __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), index.h("div", { key: '29db046b13b96964b8b43a8b6f4113eb1e0e1c0f', id: GenericVariables.componentWrapperId, class: wrapClass }, this.totalsMatrixView && (index.h(fButton.FButton, { key: 'd725a5ce1ba3ecf1eeb83f12e2de3cf6604a6410', icon: "table", label: dom$2.ketchup.language.translate(kupManager$2.KupLanguageGeneric.BACK_TO_ORIGINAL_TABLE), sizing: kupManager$2.KupComponentSizing.SMALL, onClick: () => __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_switchBackFromTotalsMatrix).call(this) })), index.h("div", { key: '46d990c156967b88c48fcc1a9ce755579f8673f1', class: "group-wrapper" }, groupChips), index.h("div", { key: '002ead03b81681dc31cb89ab9557ef39046ccaf5', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (index.h("div", { id: "global-filter" }, index.h(fTextField.FTextField, { fullWidth: true, icon: kupManager$2.KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").language.translate(kupManager$2.KupLanguageSearch.SEARCH), sizing: kupManager$2.KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
10255
10335
|
const t = event.target;
|
|
10256
10336
|
window.clearTimeout(__classPrivateFieldGet$8(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
10257
10337
|
__classPrivateFieldSet$4(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
10258
|
-
} }))) : null, paginatorTop && (index.h("div", { key: '
|
|
10338
|
+
} }))) : null, paginatorTop && (index.h("div", { key: '920f60c70879a781b30441b941d668832a51d467', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
|
|
10259
10339
|
this.selectedRows.length > 0 ? (index.h(fButton.FButton, { icon: "save", onClick: () => {
|
|
10260
10340
|
this.kupSave.emit({
|
|
10261
10341
|
comp: this,
|
|
@@ -10305,9 +10385,9 @@ const KupDataTable = class {
|
|
|
10305
10385
|
this.data.rows.unshift(row);
|
|
10306
10386
|
await this.refresh(true);
|
|
10307
10387
|
}
|
|
10308
|
-
}, sizing: kupManager$2.KupComponentSizing.MEDIUM, styling: fButtonDeclarations.FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), index.h("div", { key: '
|
|
10388
|
+
}, sizing: kupManager$2.KupComponentSizing.MEDIUM, styling: fButtonDeclarations.FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), index.h("div", { key: '3a40eff753f509cd5ec03decc7f46590b5ca8052', class: "droparea", ref: (el) => (__classPrivateFieldSet$4(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
10309
10389
|
? __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
10310
|
-
: null), index.h("div", { key: '
|
|
10390
|
+
: null), index.h("div", { key: 'ff5dcbcee8b42d4c039366060f415218056e500c', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$4(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
10311
10391
|
? [
|
|
10312
10392
|
index.h("div", { class: "settings-trigger", onClick: () => {
|
|
10313
10393
|
__classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -10316,7 +10396,7 @@ const KupDataTable = class {
|
|
|
10316
10396
|
} }, index.h(fImage.FImage, { color: `var(${kupManager$2.KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
10317
10397
|
this.renderCustomizePanel(),
|
|
10318
10398
|
]
|
|
10319
|
-
: null, index.h("table", { key: '
|
|
10399
|
+
: null, index.h("table", { key: '22d42de35519707f2e83a26119b8e5e0e1208510', class: tableClass, ref: (el) => (__classPrivateFieldSet$4(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$8(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
10320
10400
|
ev.stopPropagation();
|
|
10321
10401
|
}, onPointerDown: (e) => {
|
|
10322
10402
|
__classPrivateFieldSet$4(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -10324,7 +10404,7 @@ const KupDataTable = class {
|
|
|
10324
10404
|
__classPrivateFieldSet$4(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
10325
10405
|
}, onContextMenu: (e) => {
|
|
10326
10406
|
e.preventDefault();
|
|
10327
|
-
} }, index.h("thead", { key: '
|
|
10407
|
+
} }, index.h("thead", { key: '4bb48f31c8131a2405cae319110fea34ecfaffd8', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$4(this, _KupDataTable_theadRef, el, "f")) }, index.h("tr", { key: '0e6b53b19db2aba153b2f2cdcddaaa282d29b7d2' }, header)), index.h("tbody", { key: '1cc002d343e93c3964632ddd24cc76fa1797b48a' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
10328
10408
|
__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
10329
10409
|
return compCreated;
|
|
10330
10410
|
}
|
|
@@ -10372,7 +10452,7 @@ const KupDataTable = class {
|
|
|
10372
10452
|
"transpose": ["recalculateData"]
|
|
10373
10453
|
}; }
|
|
10374
10454
|
};
|
|
10375
|
-
_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_modifiedRowsIds = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_lastPointerDetails = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_actionsCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_dropDownActionCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_lastFocusedColumn = new WeakMap(), _KupDataTable_lastFocusedCell = new WeakMap(), _KupDataTable_lastFocusedRow = new WeakMap(), _KupDataTable_maxRowsPerPage = new WeakMap(), _KupDataTable_readyPromise = new WeakMap(), _KupDataTable_readyResolve = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_horNav = new WeakMap(), _KupDataTable_verNav = new WeakMap(), _KupDataTable_onKupKeyDown = new WeakMap(), _KupDataTable_handleUpdateClick = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_checkUpdateState = function _KupDataTable_checkUpdateState() {
|
|
10455
|
+
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_originalDataLoaded = new WeakMap(), _KupDataTable_originalDataLoadedMaxId = new WeakMap(), _KupDataTable_beforeTotalMatrixData = new WeakMap(), _KupDataTable_beforeTotalMatrixGroups = new WeakMap(), _KupDataTable_beforeTotalMatrixTotals = new WeakMap(), _KupDataTable_beforeTotalMatrixVisibleColumns = new WeakMap(), _KupDataTable_insertedRowIds = new WeakMap(), _KupDataTable_modifiedRowsIds = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_lastPointerDetails = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_actionsCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_dropDownActionCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_lastFocusedColumn = new WeakMap(), _KupDataTable_lastFocusedCell = new WeakMap(), _KupDataTable_lastFocusedRow = new WeakMap(), _KupDataTable_maxRowsPerPage = new WeakMap(), _KupDataTable_readyPromise = new WeakMap(), _KupDataTable_readyResolve = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_horNav = new WeakMap(), _KupDataTable_verNav = new WeakMap(), _KupDataTable_onKupKeyDown = new WeakMap(), _KupDataTable_handleUpdateClick = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_checkUpdateState = function _KupDataTable_checkUpdateState() {
|
|
10376
10456
|
let somethingChanged = false;
|
|
10377
10457
|
if (!__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").objects.deepEqual(this.state.filters, this.filters)) {
|
|
10378
10458
|
this.state.filters = Object.assign({}, this.filters);
|
|
@@ -10625,127 +10705,190 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10625
10705
|
if (this.data.columns.length > 0) {
|
|
10626
10706
|
this.data = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_getTransposedData).call(this, this.data.columns[0].name);
|
|
10627
10707
|
}
|
|
10628
|
-
},
|
|
10629
|
-
|
|
10708
|
+
}, _KupDataTable_switchBackFromTotalsMatrix = function _KupDataTable_switchBackFromTotalsMatrix() {
|
|
10709
|
+
this.groups = __classPrivateFieldGet$8(this, _KupDataTable_beforeTotalMatrixGroups, "f");
|
|
10710
|
+
this.data = __classPrivateFieldGet$8(this, _KupDataTable_beforeTotalMatrixData, "f");
|
|
10711
|
+
this.totals = __classPrivateFieldGet$8(this, _KupDataTable_beforeTotalMatrixTotals, "f");
|
|
10712
|
+
this.visibleColumns = __classPrivateFieldGet$8(this, _KupDataTable_beforeTotalMatrixVisibleColumns, "f");
|
|
10713
|
+
__classPrivateFieldSet$4(this, _KupDataTable_beforeTotalMatrixData, undefined, "f");
|
|
10714
|
+
__classPrivateFieldSet$4(this, _KupDataTable_beforeTotalMatrixGroups, undefined, "f");
|
|
10715
|
+
__classPrivateFieldSet$4(this, _KupDataTable_beforeTotalMatrixTotals, undefined, "f");
|
|
10716
|
+
__classPrivateFieldSet$4(this, _KupDataTable_beforeTotalMatrixVisibleColumns, undefined, "f");
|
|
10717
|
+
this.totalsMatrixView = false;
|
|
10718
|
+
}, _KupDataTable_switchToTotalsMatrix = function _KupDataTable_switchToTotalsMatrix(columnName) {
|
|
10719
|
+
const groupColName = columnName !== null && columnName !== void 0 ? columnName : this.groups[0].column;
|
|
10720
|
+
const totalsColumns = Object.keys(this.totals);
|
|
10721
|
+
__classPrivateFieldSet$4(this, _KupDataTable_beforeTotalMatrixData, this.data, "f");
|
|
10722
|
+
__classPrivateFieldSet$4(this, _KupDataTable_beforeTotalMatrixGroups, this.groups, "f");
|
|
10723
|
+
__classPrivateFieldSet$4(this, _KupDataTable_beforeTotalMatrixTotals, this.totals, "f");
|
|
10724
|
+
__classPrivateFieldSet$4(this, _KupDataTable_beforeTotalMatrixVisibleColumns, this.visibleColumns, "f");
|
|
10725
|
+
if (__classPrivateFieldGet$8(this, _KupDataTable_rows, "f").length === 0 ||
|
|
10726
|
+
!__classPrivateFieldGet$8(this, _KupDataTable_rows, "f")[0].group ||
|
|
10727
|
+
(totalsColumns === null || totalsColumns === void 0 ? void 0 : totalsColumns.length) === 0 ||
|
|
10728
|
+
!groupColName)
|
|
10630
10729
|
return;
|
|
10631
|
-
//
|
|
10730
|
+
// ---------------------------
|
|
10731
|
+
// Build the matrix data object
|
|
10732
|
+
// ---------------------------
|
|
10632
10733
|
const totalsMatrixData = {};
|
|
10633
|
-
|
|
10634
|
-
//
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10734
|
+
const groupsToInsert = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_getGroupElementsBefore).call(this, this.groups, groupColName);
|
|
10735
|
+
// 1. Compute column IDs in correct order
|
|
10736
|
+
const columnIds = [
|
|
10737
|
+
...groupsToInsert.map((group) => group.column),
|
|
10738
|
+
...[columnName],
|
|
10739
|
+
...Object.keys(this.totals),
|
|
10740
|
+
];
|
|
10741
|
+
// 2. Optimize lookup of columns by building a Map
|
|
10742
|
+
const columnMap = new Map(this.data.columns.map((col) => [col.name, col]));
|
|
10743
|
+
// 3. Build matrix columns
|
|
10744
|
+
totalsMatrixData.columns = columnIds
|
|
10745
|
+
.map((id) => columnMap.get(id))
|
|
10746
|
+
.filter((col) => !!col) // ensure defined
|
|
10747
|
+
.map((col) => {
|
|
10748
|
+
const currentColumn = Object.assign({}, col);
|
|
10749
|
+
const totalMode = this.totals[currentColumn.name];
|
|
10750
|
+
if (totalMode) {
|
|
10751
|
+
currentColumn.title = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_buildTotalTitle).call(this, currentColumn.title, totalMode);
|
|
10752
|
+
__classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
|
|
10753
|
+
}
|
|
10754
|
+
return currentColumn;
|
|
10641
10755
|
});
|
|
10642
|
-
//
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10756
|
+
// 4. Build matrix rows
|
|
10757
|
+
if (!groupsToInsert || groupsToInsert.length === 0) {
|
|
10758
|
+
totalsMatrixData.rows = __classPrivateFieldGet$8(this, _KupDataTable_rows, "f").map((row, index) => {
|
|
10759
|
+
const cells = {};
|
|
10760
|
+
columnIds.forEach((id) => {
|
|
10761
|
+
let totalValue;
|
|
10762
|
+
if ((columnName === id ||
|
|
10763
|
+
groupsToInsert
|
|
10764
|
+
.map((group) => group.column)
|
|
10765
|
+
.includes(id)) &&
|
|
10766
|
+
row.group.id) {
|
|
10767
|
+
// ID is contained in the column of the group levels before the one clicked
|
|
10768
|
+
// ID equals the column relative to the group the user clicked
|
|
10769
|
+
// - Returns the value of the group - row headers
|
|
10770
|
+
totalValue = row.group.id;
|
|
10771
|
+
}
|
|
10772
|
+
else if (row.group.totals[id] &&
|
|
10773
|
+
Object.keys(this.totals).includes(id)) {
|
|
10774
|
+
// The column id is contained in the totals columns
|
|
10775
|
+
// and the total exists
|
|
10776
|
+
totalValue = row.group.totals[id];
|
|
10777
|
+
}
|
|
10778
|
+
else {
|
|
10779
|
+
// Default with an empty value because '---' breaks the totals
|
|
10780
|
+
totalValue = '';
|
|
10781
|
+
}
|
|
10782
|
+
if (__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").dates.isIsoDate(totalValue)) {
|
|
10783
|
+
totalValue = __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").dates.format(totalValue);
|
|
10784
|
+
}
|
|
10785
|
+
cells[id] = { value: String(totalValue) };
|
|
10786
|
+
});
|
|
10787
|
+
return {
|
|
10788
|
+
id: String(index),
|
|
10789
|
+
cells,
|
|
10790
|
+
};
|
|
10791
|
+
});
|
|
10792
|
+
}
|
|
10793
|
+
else {
|
|
10794
|
+
totalsMatrixData.rows = [];
|
|
10795
|
+
for (const row of __classPrivateFieldGet$8(this, _KupDataTable_rows, "f")) {
|
|
10796
|
+
const foundGroups = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_findGroupsAtLevel).call(this, row.group, columnName);
|
|
10797
|
+
if (foundGroups) {
|
|
10798
|
+
for (const g of foundGroups) {
|
|
10799
|
+
if (g === null || g === void 0 ? void 0 : g.totals) {
|
|
10800
|
+
const utilityRow = g.children[0];
|
|
10801
|
+
for (const [key, value] of Object.entries(g.totals)) {
|
|
10802
|
+
let cellValue = value;
|
|
10803
|
+
if (__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").dates.isIsoDate(cellValue)) {
|
|
10804
|
+
cellValue =
|
|
10805
|
+
__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").dates.format(cellValue);
|
|
10806
|
+
}
|
|
10807
|
+
utilityRow.cells[key].value = String(cellValue);
|
|
10808
|
+
utilityRow.cells[key].obj.k = String(cellValue);
|
|
10809
|
+
utilityRow.cells[key].displayedValue =
|
|
10810
|
+
String(cellValue);
|
|
10667
10811
|
}
|
|
10812
|
+
totalsMatrixData.rows.push(utilityRow);
|
|
10668
10813
|
}
|
|
10669
|
-
__classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_setObjForTotalsMatrix).call(this, currentColumn, this.totals);
|
|
10670
10814
|
}
|
|
10671
|
-
totalsMatrixColumns.push(currentColumn);
|
|
10672
10815
|
}
|
|
10673
|
-
}
|
|
10674
|
-
}
|
|
10675
|
-
//
|
|
10676
|
-
|
|
10677
|
-
//
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
}
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10816
|
+
}
|
|
10817
|
+
}
|
|
10818
|
+
// ---------------------------
|
|
10819
|
+
// Finalize matrix
|
|
10820
|
+
// ---------------------------
|
|
10821
|
+
this.totalsMatrixView = true;
|
|
10822
|
+
this.groups = groupsToInsert;
|
|
10823
|
+
this.data = Object.assign({}, totalsMatrixData); // update dataset
|
|
10824
|
+
this.totals = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_promoteTotals).call(this, this.totals); // promote totals
|
|
10825
|
+
this.visibleColumns = columnIds;
|
|
10826
|
+
}, _KupDataTable_findGroupsAtLevel = function _KupDataTable_findGroupsAtLevel(group, columnName) {
|
|
10827
|
+
let results = [];
|
|
10828
|
+
if (!group || !Array.isArray(group.children)) {
|
|
10829
|
+
return results;
|
|
10830
|
+
}
|
|
10831
|
+
// check if any child group matches the columnName
|
|
10832
|
+
const hasMatch = group.children.some((child) => { var _a; return ((_a = child.group) === null || _a === void 0 ? void 0 : _a.column) === columnName; });
|
|
10833
|
+
if (hasMatch) {
|
|
10834
|
+
// collect all sibling groups at this level
|
|
10835
|
+
results.push(...group.children.map((child) => child.group));
|
|
10836
|
+
}
|
|
10837
|
+
else {
|
|
10838
|
+
// traverse children
|
|
10839
|
+
for (const child of group.children) {
|
|
10840
|
+
results.push(...__classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_findGroupsAtLevel).call(this, child.group, columnName));
|
|
10841
|
+
}
|
|
10842
|
+
}
|
|
10843
|
+
return results;
|
|
10844
|
+
}, _KupDataTable_getGroupElementsBefore = function _KupDataTable_getGroupElementsBefore(arr, target) {
|
|
10845
|
+
const index = arr.findIndex((obj) => obj.column === target);
|
|
10846
|
+
if (index <= 0) {
|
|
10847
|
+
return []; // not found or at index 0
|
|
10848
|
+
}
|
|
10849
|
+
return arr.slice(0, index);
|
|
10850
|
+
}, _KupDataTable_buildTotalTitle = function _KupDataTable_buildTotalTitle(originalTitle, totalMode) {
|
|
10851
|
+
if (totalMode.startsWith(kupManager$2.TotalMode.MATH)) {
|
|
10852
|
+
return `${kupManager$2.TotalLabel[kupManager$2.TotalMode.MATH]} ${originalTitle}`;
|
|
10853
|
+
}
|
|
10854
|
+
const totalModeKey = Object.keys(kupManager$2.TotalMode).find((key) => kupManager$2.TotalMode[key] === totalMode);
|
|
10855
|
+
const label = totalModeKey ? kupManager$2.TotalLabel[totalModeKey] : totalMode;
|
|
10856
|
+
return `${label} ${originalTitle}`;
|
|
10857
|
+
}, _KupDataTable_promoteTotals = function _KupDataTable_promoteTotals(totals) {
|
|
10858
|
+
const updated = {};
|
|
10859
|
+
for (const [key, mode] of Object.entries(totals)) {
|
|
10860
|
+
switch (mode) {
|
|
10712
10861
|
case kupManager$2.TotalMode.DISTINCT:
|
|
10713
|
-
|
|
10862
|
+
updated[key] = kupManager$2.TotalMode.COUNT;
|
|
10714
10863
|
break;
|
|
10715
10864
|
case kupManager$2.TotalMode.COUNT:
|
|
10716
|
-
|
|
10865
|
+
updated[key] = kupManager$2.TotalMode.SUM;
|
|
10717
10866
|
break;
|
|
10718
10867
|
default:
|
|
10719
|
-
|
|
10868
|
+
updated[key] = mode;
|
|
10720
10869
|
break;
|
|
10721
10870
|
}
|
|
10722
|
-
}
|
|
10723
|
-
|
|
10724
|
-
this.totals = Object.assign({}, updatedTotals);
|
|
10871
|
+
}
|
|
10872
|
+
return updated;
|
|
10725
10873
|
}, _KupDataTable_setObjForTotalsMatrix = function _KupDataTable_setObjForTotalsMatrix(column, totals) {
|
|
10874
|
+
var _a;
|
|
10726
10875
|
const obj = column.obj;
|
|
10727
10876
|
const totalMode = totals[column.name];
|
|
10877
|
+
// Date columns: keep MAX/MIN modes
|
|
10728
10878
|
if (__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").objects.isDate(obj)) {
|
|
10729
|
-
|
|
10730
|
-
if (totalMode === kupManager$2.TotalMode.MAX || totalMode === kupManager$2.TotalMode.MIN) {
|
|
10879
|
+
if (totalMode === kupManager$2.TotalMode.MAX || totalMode === kupManager$2.TotalMode.MIN)
|
|
10731
10880
|
return;
|
|
10732
|
-
}
|
|
10733
10881
|
}
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
}
|
|
10882
|
+
// Percentage numbers: keep COUNT/DISTINCT modes
|
|
10883
|
+
if (__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").objects.isNumber(obj) &&
|
|
10884
|
+
((_a = obj.p) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'P') {
|
|
10885
|
+
if (totalMode === kupManager$2.TotalMode.COUNT ||
|
|
10886
|
+
totalMode === kupManager$2.TotalMode.DISTINCT) {
|
|
10887
|
+
return;
|
|
10741
10888
|
}
|
|
10742
10889
|
}
|
|
10743
|
-
// force
|
|
10744
|
-
column.obj = {
|
|
10745
|
-
t: 'NR',
|
|
10746
|
-
p: '',
|
|
10747
|
-
k: '',
|
|
10748
|
-
};
|
|
10890
|
+
// Default: force numeric
|
|
10891
|
+
column.obj = { t: 'NR', p: '', k: '' };
|
|
10749
10892
|
if (column.icon) {
|
|
10750
10893
|
delete column.icon;
|
|
10751
10894
|
}
|
|
@@ -10823,7 +10966,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10823
10966
|
}, _KupDataTable_didLoadInteractables = function _KupDataTable_didLoadInteractables() {
|
|
10824
10967
|
__classPrivateFieldGet$8(this, _KupDataTable_interactableTouch, "f").push(__classPrivateFieldGet$8(this, _KupDataTable_tableRef, "f"));
|
|
10825
10968
|
const tapCb = (e) => {
|
|
10826
|
-
var _a, _b, _c, _d;
|
|
10969
|
+
var _a, _b, _c, _d, _e;
|
|
10827
10970
|
if (__classPrivateFieldGet$8(this, _KupDataTable_hold, "f")) {
|
|
10828
10971
|
__classPrivateFieldSet$4(this, _KupDataTable_hold, false, "f");
|
|
10829
10972
|
return;
|
|
@@ -10842,7 +10985,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
10842
10985
|
const details = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
10843
10986
|
// in case a cell action icon is clicked
|
|
10844
10987
|
if (((_b = (_a = details === null || details === void 0 ? void 0 : details.cell) === null || _a === void 0 ? void 0 : _a.obj) === null || _b === void 0 ? void 0 : _b.t) !== 'J4' &&
|
|
10845
|
-
((_d = (_c = details === null || details === void 0 ? void 0 : details.cell) === null || _c === void 0 ? void 0 : _c.obj) === null || _d === void 0 ? void 0 : _d.p) !== 'ICO'
|
|
10988
|
+
((_d = (_c = details === null || details === void 0 ? void 0 : details.cell) === null || _c === void 0 ? void 0 : _c.obj) === null || _d === void 0 ? void 0 : _d.p) !== 'ICO' &&
|
|
10989
|
+
((_e = details === null || details === void 0 ? void 0 : details.cell) === null || _e === void 0 ? void 0 : _e.shape) !== kupManager$2.FCellShapes.ICON) {
|
|
10846
10990
|
break;
|
|
10847
10991
|
}
|
|
10848
10992
|
}
|
|
@@ -11805,7 +11949,10 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
11805
11949
|
e.stopPropagation();
|
|
11806
11950
|
const details = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
11807
11951
|
if (details.cell) {
|
|
11808
|
-
|
|
11952
|
+
let cellActions = __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").data.cell.buildCellActions(details.row, details.column, (_a = this.commands) !== null && _a !== void 0 ? _a : []);
|
|
11953
|
+
if (this.onCellActionBuild) {
|
|
11954
|
+
cellActions = this.onCellActionBuild(details.row, details.column, cellActions);
|
|
11955
|
+
}
|
|
11809
11956
|
__classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_onRowActionExpanderClick).call(this, e, details.row, cellActions);
|
|
11810
11957
|
}
|
|
11811
11958
|
return details;
|
|
@@ -12724,7 +12871,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12724
12871
|
const rowActions = __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").data.row.buildRowActions(row, this.getVisibleColumns({ includeCodVer: true }), this.rowActions, (_b = this.commands) !== null && _b !== void 0 ? _b : []);
|
|
12725
12872
|
if (__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").data.action.checkEveryActionHasOnlyIcon(rowActions) ||
|
|
12726
12873
|
(rowActions.length === 1 && rowActions[0].icon)) {
|
|
12727
|
-
rowActions.forEach((action
|
|
12874
|
+
rowActions.forEach((action) => {
|
|
12728
12875
|
var _a;
|
|
12729
12876
|
const imageProp = __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").data.action.buildImageProp(action.icon, action.text || ((_a = action.column) === null || _a === void 0 ? void 0 : _a.title) || '', 'action', () => {
|
|
12730
12877
|
this.kupRowActionItemClick.emit({
|
|
@@ -12734,7 +12881,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
12734
12881
|
obj: action.obj,
|
|
12735
12882
|
cell: action.cell,
|
|
12736
12883
|
type: action.type,
|
|
12737
|
-
index: index,
|
|
12884
|
+
index: action.index,
|
|
12738
12885
|
column: action.column,
|
|
12739
12886
|
});
|
|
12740
12887
|
});
|
|
@@ -13053,7 +13200,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
13053
13200
|
return (index.h("div", { class: "customize-element grid-panel" }, index.h("kup-button", { title: __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.TOTALS_TABLE) +
|
|
13054
13201
|
' (' +
|
|
13055
13202
|
__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.EXPERIMENTAL_FEAT) +
|
|
13056
|
-
')', label: __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () =>
|
|
13203
|
+
')', label: __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () => this.toggleTotalsMatrix() })));
|
|
13204
|
+
}, _KupDataTable_renderBackFromTotalsMatrix = function _KupDataTable_renderBackFromTotalsMatrix() {
|
|
13205
|
+
return (index.h("div", { class: "customize-element grid-panel" }, index.h("kup-button", { title: __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.BACK_TO_ORIGINAL_TABLE) +
|
|
13206
|
+
' (' +
|
|
13207
|
+
__classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.EXPERIMENTAL_FEAT) +
|
|
13208
|
+
')', label: __classPrivateFieldGet$8(this, _KupDataTable_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.BACK_TO_ORIGINAL_TABLE), icon: "exposure", "onkup-button-click": () => __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_switchBackFromTotalsMatrix).call(this) })));
|
|
13057
13209
|
}, _KupDataTable_renderGridPanel = function _KupDataTable_renderGridPanel() {
|
|
13058
13210
|
const listItems = __classPrivateFieldGet$8(this, _KupDataTable_instances, "m", _KupDataTable_createListData).call(this, __classPrivateFieldGet$8(this, _KupDataTable_GRID_CODES, "f"), __classPrivateFieldGet$8(this, _KupDataTable_GRID_ICONS, "f"), this.showGrid);
|
|
13059
13211
|
const listData = { data: listItems, showIcons: true };
|
|
@@ -13636,7 +13788,7 @@ const KupDatePicker = class {
|
|
|
13636
13788
|
showPreviousNextMonthDays: this.showPreviousNextMonthDays,
|
|
13637
13789
|
},
|
|
13638
13790
|
};
|
|
13639
|
-
return (index.h(index.Host, { key: '
|
|
13791
|
+
return (index.h(index.Host, { key: '8d42c002e3741126e58a4e8d3702bb6eeb870df2' }, index.h("style", { key: '7905665100ccede71c9e36e4cc5dc2f9f5c677ea' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '8e4a1211b0fe1f8463c91b91e8ab66150e544874', id: GenericVariables.componentWrapperId }, index.h(fTextField.FTextField, Object.assign({ key: 'cdc8022fd3b3c47612cfaf0209ef33cdbd08871b' }, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, maxLength: (_a = textfieldData.maxLength) !== null && _a !== void 0 ? _a : 10, size: 10, id: this.rootElement.id + '_text-field', value: this.getDateForOutput(), onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), index.h("div", { key: 'd05fb6804c31c5db12cc6589ceaae71b68e35837', id: this.rootElement.id + '_card', class: "kup-date-picker-card" }, index.h("kup-card", { key: '533bd99da72d7560c581599f2ebd226742f139df', ref: (el) => (this.pickerContainerEl = el), data: cardData, layoutFamily: kupManager$2.KupCardFamily.BUILT_IN, sizeX: "300px", sizeY: "auto", isMenu: true, "onkup-card-click": (ev) => {
|
|
13640
13792
|
if (ev.detail.value != null &&
|
|
13641
13793
|
ev.detail.value != '')
|
|
13642
13794
|
this.onKupDatePickerItemClick(ev.detail.value);
|
|
@@ -13834,7 +13986,7 @@ const KupDialog = class {
|
|
|
13834
13986
|
if (headerSlot) {
|
|
13835
13987
|
__classPrivateFieldSet$3(this, _KupDialog_header, headerSlot, "f");
|
|
13836
13988
|
}
|
|
13837
|
-
return (index.h(index.Host, { key: '
|
|
13989
|
+
return (index.h(index.Host, { key: 'bf78a83238e4c10d617a59d65e6cc763562fe65b', "fade-in": true, style: style, "data-anchor": ((_a = this.anchor) === null || _a === void 0 ? void 0 : _a.toString()) || 'none' }, index.h("style", { key: 'ef2a40faab3d5511b3a9e0bcfd2c3baf3b6d3d61' }, __classPrivateFieldGet$7(this, _KupDialog_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '4a482bbdedf8773d83345f92550bcdaa160cb7c1', id: GenericVariables.componentWrapperId }, this.header ? (index.h("div", { class: "header", ref: (el) => (__classPrivateFieldSet$3(this, _KupDialog_header, el, "f")) }, this.header.title ? (index.h("div", { class: "header__title" }, this.header.title)) : null, ((_b = this.header.icons) === null || _b === void 0 ? void 0 : _b.close) ? (index.h(fImage.FImage, { onClick: () => this.close(), sizeX: "1.25em", sizeY: "100%", resource: "clear", wrapperClass: "header__close" })) : null)) : headerSlot ? (index.h("slot", { name: "header" })) : null, index.h("div", { key: 'ed0f7ff460826123db6c2a5f630df1618b5addcf', class: "content" }, index.h("slot", { key: '189e714ad36ac331f25f228e7b67d09d20e6de44', name: "content" })))));
|
|
13838
13990
|
}
|
|
13839
13991
|
disconnectedCallback() {
|
|
13840
13992
|
__classPrivateFieldGet$7(this, _KupDialog_instances, "m", _KupDialog_disconnectedCallback).call(this);
|
|
@@ -14253,7 +14405,7 @@ const KupDropdownButton = class {
|
|
|
14253
14405
|
return buttons;
|
|
14254
14406
|
}
|
|
14255
14407
|
render() {
|
|
14256
|
-
return (index.h(index.Host, { key: '
|
|
14408
|
+
return (index.h(index.Host, { key: '3dc2a9e3a2583dedd270ff9207fd2bfc8f3507b2' }, index.h("style", { key: 'dd0618137d00333ac79232e6840b05b9b9d0b00e' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'a139ca30aed3c3c7414d9e51d2511e55e5cc8e45', id: GenericVariables.componentWrapperId }, index.h("div", { key: 'ff18bb9287afd02dc08eed438bbbf0c0b682e143', class: "dropdown-button--wrapper" }, this.renderButtons()), index.h("kup-list", Object.assign({ key: '436791589e771e2e7f0b3f6eb5cff448d5e03618' }, this.data['kup-list'], { displayMode: this.displayMode, isMenu: true, "onKup-list-click": (e) => this.onKupItemClick(e), id: this.rootElement.id + '_list', ref: (el) => (this.listEl = el) })))));
|
|
14257
14409
|
}
|
|
14258
14410
|
disconnectedCallback() {
|
|
14259
14411
|
if (this.listEl) {
|
|
@@ -14269,12 +14421,15 @@ KupDropdownButton.style = KupDropdownButtonStyle0;
|
|
|
14269
14421
|
var KupFileUploadProps;
|
|
14270
14422
|
(function (KupFileUploadProps) {
|
|
14271
14423
|
KupFileUploadProps["customStyle"] = "Custom style of the component.";
|
|
14424
|
+
KupFileUploadProps["error"] = "Error string to render in component";
|
|
14272
14425
|
KupFileUploadProps["pathString"] = "The initial filepaths.";
|
|
14273
14426
|
KupFileUploadProps["FupMul"] = "Sets the multiple upload.";
|
|
14274
14427
|
KupFileUploadProps["FupAut"] = "Sets the auto upload of select file";
|
|
14428
|
+
KupFileUploadProps["FupDir"] = "Sets the custom dir to upload files";
|
|
14429
|
+
KupFileUploadProps["FupAty"] = "Sets the accepted extensions";
|
|
14275
14430
|
})(KupFileUploadProps || (KupFileUploadProps = {}));
|
|
14276
14431
|
|
|
14277
|
-
const kupFileUploadCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_upload_icon_color:var(--kup-upload-icon-color, var(--kup-icon-color));--kup_upload_border_color:var(\n --kup-upload-border-color,\n var(--kup-gray-color-30)\n );flex:1;min-width:360px}:host .file-upload-spinner>*{opacity:0.6;pointer-events:none}:host .file-upload-spinner>file-upload__spinner-container{opacity:1}:host .file-upload{display:flex;flex-direction:column;gap:1em;border:2px dashed var(--kup_upload_border_color);border-radius:4px;padding:1em;position:relative}:host .file-upload__buttons{display:flex;gap:1em;align-items:center;justify-content:center}:host .file-upload__buttons .spinner{height:48px;margin:auto;width:48px}:host .file-upload__error{display:flex;justify-content:center}:host .file-upload__error .mdc-error-message{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px;color:var(--kup-danger-color-60)}:host .file-upload__list{display:flex;flex-direction:column;gap:1em}:host .file-upload__list__item{display:flex;gap:1em;align-items:center}:host .file-upload__list__item__preview{height:3em;width:3em;display:flex;align-items:center}:host .file-upload__list__item__desc{width:14em}:host .file-upload__list__item__clear{background-color:var(--kup_upload_icon_color);cursor:pointer;height:16px;width:16px;min-width:16px;min-height:16px;outline:none;pointer-events:all;-webkit-mask:var(--kup-clear-icon);mask:var(--kup-clear-icon)}:host .file-upload__list__item__clear:hover{background-color:var(--kup-danger-color-60)}:host .file-upload__spinner-container{height:calc(100% - 2em);width:20%;position:absolute;left:40%}";
|
|
14432
|
+
const kupFileUploadCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_upload_icon_color:var(--kup-upload-icon-color, var(--kup-icon-color));--kup_upload_border_color:var(\n --kup-upload-border-color,\n var(--kup-gray-color-30)\n );flex:1;min-width:360px}:host .file-upload-spinner>*{opacity:0.6;pointer-events:none}:host .file-upload-spinner>file-upload__spinner-container{opacity:1}:host .file-upload{display:flex;flex-direction:column;gap:1em;border:2px dashed var(--kup_upload_border_color);border-radius:4px;padding:1em;position:relative}:host .file-upload__invalid{border-color:var(--kup-danger-color, #d32f2f);background:rgba(211, 47, 47, 0.06);box-shadow:0 0 0 2px rgba(211, 47, 47, 0.15) inset;cursor:not-allowed}:host .file-upload__invalid *{opacity:0.95}:host .file-upload__buttons{display:flex;gap:1em;align-items:center;justify-content:center}:host .file-upload__buttons .spinner{height:48px;margin:auto;width:48px}:host .file-upload__error{display:flex;justify-content:center}:host .file-upload__error .mdc-error-message{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px;color:var(--kup-danger-color-60)}:host .file-upload__list{display:flex;flex-direction:column;gap:1em}:host .file-upload__list__item{display:flex;gap:1em;align-items:center}:host .file-upload__list__item__preview{height:3em;width:3em;display:flex;align-items:center}:host .file-upload__list__item__desc{width:14em}:host .file-upload__list__item__clear{background-color:var(--kup_upload_icon_color);cursor:pointer;height:16px;width:16px;min-width:16px;min-height:16px;outline:none;pointer-events:all;-webkit-mask:var(--kup-clear-icon);mask:var(--kup-clear-icon)}:host .file-upload__list__item__clear:hover{background-color:var(--kup-danger-color-60)}:host .file-upload__spinner-container{height:calc(100% - 2em);width:20%;position:absolute;left:40%}";
|
|
14278
14433
|
const KupFileUploadStyle0 = kupFileUploadCss;
|
|
14279
14434
|
|
|
14280
14435
|
var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
@@ -14284,7 +14439,7 @@ var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) |
|
|
|
14284
14439
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14285
14440
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
14286
14441
|
};
|
|
14287
|
-
var _KupFileUpload_instances, _KupFileUpload_kupManager, _KupFileUpload_previewMap, _KupFileUpload_handleClick, _KupFileUpload_handleFileChange, _KupFileUpload_handleFileRemove,
|
|
14442
|
+
var _KupFileUpload_instances, _KupFileUpload_kupManager, _KupFileUpload_previewMap, _KupFileUpload_handleClick, _KupFileUpload_handleFileChange, _KupFileUpload_handleDrop, _KupFileUpload_handleFileRemove, _KupFileUpload_processFiles, _KupFileUpload_handleCancel, _KupFileUpload_getPreview, _KupFileUpload_trimFileName, _KupFileUpload_uploadClick, _KupFileUpload_getUniqueFiles, _KupFileUpload_isValidDraggedItems, _KupFileUpload_areValidFiles, _KupFileUpload_isValidFile, _KupFileUpload_getFileExtension;
|
|
14288
14443
|
const KupFileUpload = class {
|
|
14289
14444
|
constructor(hostRef) {
|
|
14290
14445
|
index.registerInstance(this, hostRef);
|
|
@@ -14321,22 +14476,27 @@ const KupFileUpload = class {
|
|
|
14321
14476
|
this.inputRef = undefined;
|
|
14322
14477
|
this.tempFiles = [];
|
|
14323
14478
|
this.pathFiles = [];
|
|
14324
|
-
this.uploadSuccess = false;
|
|
14325
14479
|
this.showSpinner = false;
|
|
14326
14480
|
this.multiUpload = false;
|
|
14327
14481
|
this.autoUpload = false;
|
|
14328
14482
|
this.acceptedFiles = null;
|
|
14483
|
+
this.isValidDropFiles = true;
|
|
14484
|
+
this.fupError = null;
|
|
14329
14485
|
}
|
|
14330
14486
|
//#endregion
|
|
14331
14487
|
//#region WATCHERS
|
|
14332
14488
|
/*-------------------------------------------------*/
|
|
14333
14489
|
/* W a t c h e r s */
|
|
14334
14490
|
/*-------------------------------------------------*/
|
|
14491
|
+
onErrorChange() {
|
|
14492
|
+
this.fupError = this.error;
|
|
14493
|
+
}
|
|
14335
14494
|
onDataChanged() {
|
|
14336
14495
|
var _a;
|
|
14337
|
-
this.
|
|
14496
|
+
this.fupError = '';
|
|
14338
14497
|
__classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
|
|
14339
|
-
this.pathFiles =
|
|
14498
|
+
this.pathFiles =
|
|
14499
|
+
((_a = this.pathString) === null || _a === void 0 ? void 0 : _a.split(';').filter((path) => path.trim())) || [];
|
|
14340
14500
|
}
|
|
14341
14501
|
onFupMulChanged() {
|
|
14342
14502
|
this.multiUpload = this.FupMul === 'true';
|
|
@@ -14382,7 +14542,6 @@ const KupFileUpload = class {
|
|
|
14382
14542
|
this.setLoading(false);
|
|
14383
14543
|
if (success && pathFiles) {
|
|
14384
14544
|
__classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
|
|
14385
|
-
this.uploadSuccess = success;
|
|
14386
14545
|
this.pathFiles = this.multiUpload
|
|
14387
14546
|
? [...this.pathFiles, ...pathFiles.split(';')]
|
|
14388
14547
|
: [pathFiles.split(';')[0]];
|
|
@@ -14426,10 +14585,15 @@ const KupFileUpload = class {
|
|
|
14426
14585
|
}
|
|
14427
14586
|
render() {
|
|
14428
14587
|
var _a;
|
|
14429
|
-
return (index.h(index.Host, { key: '
|
|
14588
|
+
return (index.h(index.Host, { key: 'c3b65082afeec6a161d36c52cd69e0757a39e4ea' }, index.h("style", { key: '4ee53ee199e2fe3a0a9fd8dbc58ec7f5a93fe6a1' }, __classPrivateFieldGet$6(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '4da5e057ca1f46f0dfa82d94b7e4b8051c52582b', id: GenericVariables.componentWrapperId }, index.h("div", { key: '107356b4cd1ee998ae68718e668fb3371006feed', class: {
|
|
14430
14589
|
'file-upload': true,
|
|
14431
14590
|
'file-upload-spinner': this.showSpinner,
|
|
14432
|
-
|
|
14591
|
+
'file-upload__invalid': !this.isValidDropFiles,
|
|
14592
|
+
}, onDragOver: (event) => {
|
|
14593
|
+
var _a;
|
|
14594
|
+
event.preventDefault();
|
|
14595
|
+
this.isValidDropFiles = __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_isValidDraggedItems).call(this, (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.items);
|
|
14596
|
+
}, onDrop: __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragLeave: () => (this.isValidDropFiles = true), onDragEnd: () => (this.isValidDropFiles = true) }, index.h("input", { key: '3602bbc58cd05500ebe7c8e69f803efae7482747', type: "file", ref: (el) => (this.inputRef = el), onChange: __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileChange).bind(this), multiple: this.multiUpload, accept: (_a = this.acceptedFiles) === null || _a === void 0 ? void 0 : _a.join(','), hidden: true }), index.h("div", { key: '723f9be4c21a5419c478eea549cd183857939e58', class: "file-upload__buttons" }, index.h(fButton.FButton, { key: 'dfda137608012bd18615ba61ec8393eb179016cf', icon: "upload", label: __classPrivateFieldGet$6(this, _KupFileUpload_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.CHOOSE), onClick: __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_handleClick).bind(this) }), !this.autoUpload && (index.h(index.Fragment, { key: '46ecc0ffb37554aa271573ba35ee3bd84aa0debc' }, index.h(fButton.FButton, { key: '567cd1872b3c3e39d63abe2eaf3704f70e021bd0', icon: "save", disabled: !this.tempFiles.length, label: __classPrivateFieldGet$6(this, _KupFileUpload_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.UPLOAD), onClick: __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_uploadClick).bind(this), styling: fButtonDeclarations.FButtonStyling.FLAT }), index.h(fButton.FButton, { key: 'e421e023ca2154a3a2212b05eb9dd80ac0ec525e', icon: "clear", disabled: !this.tempFiles.length, label: __classPrivateFieldGet$6(this, _KupFileUpload_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.ABORT), onClick: __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).bind(this), styling: fButtonDeclarations.FButtonStyling.FLAT })))), this.fupError && (index.h("div", { key: '92fc414f1adae74f53baad9a5cbc662d71dab809', class: "file-upload__error" }, index.h("span", { key: '8b3d9e8a5990788c4992b126703a841c76625527', class: "mdc-error-message" }, this.fupError))), index.h("div", { key: '07b3c3671055fdfca115c2fc10a66b9ed38ca24c', class: "file-upload__list" }, this.tempFiles.map((file, i) => (index.h("div", { class: "file-upload__list__item" }, index.h("div", { class: "file-upload__list__item__preview" }, index.h(fImage.FImage, { resource: __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_getPreview).call(this, file), placeholderResource: "file" })), index.h("span", { class: "file-upload__list__item__desc", title: file.name }, __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_trimFileName).call(this, file.name)), index.h("span", { class: "file-upload__list__item__clear", onClick: __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileRemove).bind(this, i) }))))), this.pathFiles.length ? (index.h("div", { class: "file-upload__list" }, this.pathFiles.map((path, i) => (index.h("span", { class: "file-upload__list__item" }, index.h("span", null, i + 1, ". ", path)))))) : null, this.showSpinner && (index.h("div", { key: 'd564cacdf28c4eb7c62a435fdb681e6c94506203', class: "file-upload__spinner-container" }, index.h("kup-spinner", { key: '720c6b309d8c19acb12d9554e9373d713aabc81d', active: true, layout: 14, dimensions: "7px" })))))));
|
|
14433
14597
|
}
|
|
14434
14598
|
disconnectedCallback() {
|
|
14435
14599
|
__classPrivateFieldGet$6(this, _KupFileUpload_kupManager, "f").language.unregister(this);
|
|
@@ -14437,6 +14601,7 @@ const KupFileUpload = class {
|
|
|
14437
14601
|
}
|
|
14438
14602
|
get rootElement() { return index.getElement(this); }
|
|
14439
14603
|
static get watchers() { return {
|
|
14604
|
+
"error": ["onErrorChange"],
|
|
14440
14605
|
"pathString": ["onDataChanged"],
|
|
14441
14606
|
"FupMul": ["onFupMulChanged"],
|
|
14442
14607
|
"FupAut": ["onFupAutChanged"],
|
|
@@ -14446,11 +14611,40 @@ const KupFileUpload = class {
|
|
|
14446
14611
|
_KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakMap(), _KupFileUpload_instances = new WeakSet(), _KupFileUpload_handleClick = function _KupFileUpload_handleClick() {
|
|
14447
14612
|
this.inputRef.click();
|
|
14448
14613
|
}, _KupFileUpload_handleFileChange = function _KupFileUpload_handleFileChange(event) {
|
|
14449
|
-
this.
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14614
|
+
this.fupError = '';
|
|
14615
|
+
const newFiles = Array.from(event.target.files) || [];
|
|
14616
|
+
if (!this.multiUpload && newFiles.length > 1) {
|
|
14617
|
+
return;
|
|
14618
|
+
}
|
|
14453
14619
|
this.inputRef.value = '';
|
|
14620
|
+
__classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_processFiles).call(this, newFiles);
|
|
14621
|
+
}, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
|
|
14622
|
+
event.preventDefault();
|
|
14623
|
+
this.fupError = '';
|
|
14624
|
+
this.isValidDropFiles = true;
|
|
14625
|
+
const droppedFiles = event.dataTransfer.files;
|
|
14626
|
+
if ((droppedFiles === null || droppedFiles === void 0 ? void 0 : droppedFiles.length) <= 0) {
|
|
14627
|
+
return;
|
|
14628
|
+
}
|
|
14629
|
+
if (!this.multiUpload && droppedFiles.length > 1) {
|
|
14630
|
+
return;
|
|
14631
|
+
}
|
|
14632
|
+
const newFiles = Array.from(droppedFiles);
|
|
14633
|
+
__classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_processFiles).call(this, newFiles);
|
|
14634
|
+
}, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
|
|
14635
|
+
this.tempFiles = [
|
|
14636
|
+
...this.tempFiles.splice(0, index),
|
|
14637
|
+
...this.tempFiles.splice(index + 1),
|
|
14638
|
+
];
|
|
14639
|
+
}, _KupFileUpload_processFiles = function _KupFileUpload_processFiles(newFiles) {
|
|
14640
|
+
if (!__classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_areValidFiles).call(this, newFiles)) {
|
|
14641
|
+
return;
|
|
14642
|
+
}
|
|
14643
|
+
this.tempFiles = this.multiUpload
|
|
14644
|
+
? // Add new files
|
|
14645
|
+
__classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_getUniqueFiles).call(this, [...this.tempFiles, ...newFiles])
|
|
14646
|
+
: // Reset files
|
|
14647
|
+
newFiles;
|
|
14454
14648
|
if (this.autoUpload) {
|
|
14455
14649
|
this.kupUpload.emit({
|
|
14456
14650
|
comp: this,
|
|
@@ -14459,19 +14653,6 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
|
|
|
14459
14653
|
});
|
|
14460
14654
|
this.setLoading(true);
|
|
14461
14655
|
}
|
|
14462
|
-
}, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
|
|
14463
|
-
this.tempFiles = [
|
|
14464
|
-
...this.tempFiles.splice(0, index),
|
|
14465
|
-
...this.tempFiles.splice(index + 1),
|
|
14466
|
-
];
|
|
14467
|
-
}, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
|
|
14468
|
-
event.preventDefault();
|
|
14469
|
-
this.uploadSuccess = false;
|
|
14470
|
-
const droppedFiles = event.dataTransfer.files;
|
|
14471
|
-
if (droppedFiles.length > 0) {
|
|
14472
|
-
const newFiles = Array.from(droppedFiles);
|
|
14473
|
-
this.tempFiles = [...this.tempFiles, ...newFiles];
|
|
14474
|
-
}
|
|
14475
14656
|
}, _KupFileUpload_handleCancel = function _KupFileUpload_handleCancel() {
|
|
14476
14657
|
this.tempFiles = [];
|
|
14477
14658
|
}, _KupFileUpload_getPreview = function _KupFileUpload_getPreview(file) {
|
|
@@ -14498,6 +14679,51 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
|
|
|
14498
14679
|
files: this.tempFiles,
|
|
14499
14680
|
});
|
|
14500
14681
|
this.setLoading(true);
|
|
14682
|
+
}, _KupFileUpload_getUniqueFiles = function _KupFileUpload_getUniqueFiles(files) {
|
|
14683
|
+
const uniqueFiles = files.reduce((map, file) => {
|
|
14684
|
+
const key = `${file.name}-${file.size}-${file.lastModified}`;
|
|
14685
|
+
map.set(key, file);
|
|
14686
|
+
return map;
|
|
14687
|
+
}, new Map());
|
|
14688
|
+
return Array.from(uniqueFiles.values());
|
|
14689
|
+
}, _KupFileUpload_isValidDraggedItems = function _KupFileUpload_isValidDraggedItems(items) {
|
|
14690
|
+
if (!(items === null || items === void 0 ? void 0 : items.length) || (!this.multiUpload && items.length > 1)) {
|
|
14691
|
+
return false;
|
|
14692
|
+
}
|
|
14693
|
+
for (const item of Array.from(items)) {
|
|
14694
|
+
if (item.kind != 'file') {
|
|
14695
|
+
return false;
|
|
14696
|
+
}
|
|
14697
|
+
}
|
|
14698
|
+
return true;
|
|
14699
|
+
}, _KupFileUpload_areValidFiles = function _KupFileUpload_areValidFiles(files) {
|
|
14700
|
+
if (!(files === null || files === void 0 ? void 0 : files.length)) {
|
|
14701
|
+
return false;
|
|
14702
|
+
}
|
|
14703
|
+
for (const file of files) {
|
|
14704
|
+
if (!__classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_isValidFile).call(this, file)) {
|
|
14705
|
+
return false;
|
|
14706
|
+
}
|
|
14707
|
+
}
|
|
14708
|
+
return true;
|
|
14709
|
+
}, _KupFileUpload_isValidFile = function _KupFileUpload_isValidFile(file) {
|
|
14710
|
+
var _a;
|
|
14711
|
+
if (!((_a = this.acceptedFiles) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
14712
|
+
return true;
|
|
14713
|
+
}
|
|
14714
|
+
// Check extensions
|
|
14715
|
+
const fileExtension = __classPrivateFieldGet$6(this, _KupFileUpload_instances, "m", _KupFileUpload_getFileExtension).call(this, file.name);
|
|
14716
|
+
const isValid = fileExtension
|
|
14717
|
+
? this.acceptedFiles.includes(fileExtension)
|
|
14718
|
+
: false;
|
|
14719
|
+
if (!isValid) {
|
|
14720
|
+
// Set extension error
|
|
14721
|
+
this.fupError = __classPrivateFieldGet$6(this, _KupFileUpload_kupManager, "f").language.translate(kupManager$2.KupLanguageUpload.INVALID_EXTENSION);
|
|
14722
|
+
}
|
|
14723
|
+
return isValid;
|
|
14724
|
+
}, _KupFileUpload_getFileExtension = function _KupFileUpload_getFileExtension(fileName) {
|
|
14725
|
+
const dotIndex = fileName.lastIndexOf('.');
|
|
14726
|
+
return dotIndex >= 0 ? fileName.substring(dotIndex).toLowerCase() : '';
|
|
14501
14727
|
};
|
|
14502
14728
|
KupFileUpload.style = KupFileUploadStyle0;
|
|
14503
14729
|
|
|
@@ -14936,7 +15162,7 @@ const KupForm = class {
|
|
|
14936
15162
|
render() {
|
|
14937
15163
|
let formContent = null;
|
|
14938
15164
|
if (this.data.rows.length === 0) {
|
|
14939
|
-
formContent = (index.h("p", { key: '
|
|
15165
|
+
formContent = (index.h("p", { key: 'cbb4869b15c8ffd2dbc77aba5e3a529908e969b5' }, this.kupManager.language.translate(kupManager$2.KupLanguageGeneric.EMPTY_DATA)));
|
|
14940
15166
|
}
|
|
14941
15167
|
else {
|
|
14942
15168
|
const rows = this.data.rows;
|
|
@@ -14947,7 +15173,7 @@ const KupForm = class {
|
|
|
14947
15173
|
formContent.push(this.renderRow(rows[cnt++]));
|
|
14948
15174
|
}
|
|
14949
15175
|
}
|
|
14950
|
-
return (index.h(index.Host, { key: '
|
|
15176
|
+
return (index.h(index.Host, { key: 'fd5818bd7f6d1a109c8a1bc143de3935a5902114' }, index.h("style", { key: '446ef5be1dd88a9bb91ae71fe705b474dbcd2288' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '625544f3b8e3e77d8ddaccbb7e22efbd6c891753', id: GenericVariables.componentWrapperId }, formContent)));
|
|
14951
15177
|
}
|
|
14952
15178
|
disconnectedCallback() {
|
|
14953
15179
|
this.kupManager.language.unregister(this);
|
|
@@ -16613,14 +16839,14 @@ const KupImageList = class {
|
|
|
16613
16839
|
}
|
|
16614
16840
|
const imlClass = 'image-list' +
|
|
16615
16841
|
(this.showFullDescription ? ' full-description' : '');
|
|
16616
|
-
return (index.h(index.Host, { key: '
|
|
16842
|
+
return (index.h(index.Host, { key: '27109500af7261fbde00d3718a6d0cdd18665225' }, index.h("style", { key: 'e8866385ecceac1b0c2275cb625b0026feecbc11' }, __classPrivateFieldGet$5(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'ea29594021b85812cc4f532c82c35bf385986a6c', id: GenericVariables.componentWrapperId, ref: (el) => {
|
|
16617
16843
|
__classPrivateFieldSet$2(this, _KupImageList_el, el, "f");
|
|
16618
|
-
} }, index.h("div", { key: '
|
|
16844
|
+
} }, index.h("div", { key: '4b296849b4d1e3481cbf59a798c5f793a1e262b4', class: "navigation-bar" }, hasNavigation ? (index.h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
16619
16845
|
? 'navigation-bar__wrapper--active'
|
|
16620
16846
|
: ''}` }, index.h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
16621
16847
|
this.navigationBarToggled =
|
|
16622
16848
|
!this.navigationBarToggled;
|
|
16623
|
-
} }, index.h(fImage.FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), index.h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), index.h(fButton.FButton, Object.assign({}, __classPrivateFieldGet$5(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet$5(this, _KupImageList_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.BACK) })), index.h(fButton.FButton, Object.assign({}, __classPrivateFieldGet$5(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet$5(this, _KupImageList_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.TOP) })))) : null), this.leadingLabel && (index.h("div", { key: '
|
|
16849
|
+
} }, index.h(fImage.FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), index.h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), index.h(fButton.FButton, Object.assign({}, __classPrivateFieldGet$5(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet$5(this, _KupImageList_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.BACK) })), index.h(fButton.FButton, Object.assign({}, __classPrivateFieldGet$5(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet$5(this, _KupImageList_kupManager, "f").language.translate(kupManager$2.KupLanguageGeneric.TOP) })))) : null), this.leadingLabel && (index.h("div", { key: '183302047392171c95c8d8ecdd0ce8344ba17490', class: "mdc-text-field__label-container" }, index.h("label", { key: 'c5b7bb7d6470525048d6d282ac846e0efc519096', class: "mdc-label" }, this.leadingLabel))), index.h("div", { key: '0e404e7364ffcbfd5a5ed1d0298d31140480774b', class: imlClass, style: combinedGridStyle }, ...__classPrivateFieldGet$5(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
16624
16850
|
}
|
|
16625
16851
|
disconnectedCallback() {
|
|
16626
16852
|
__classPrivateFieldGet$5(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet$5(this, _KupImageList_interactableTouch, "f"));
|
|
@@ -17505,7 +17731,7 @@ const KupProgressBar = class {
|
|
|
17505
17731
|
? true
|
|
17506
17732
|
: false,
|
|
17507
17733
|
};
|
|
17508
|
-
return (index.h(index.Host, { key: '
|
|
17734
|
+
return (index.h(index.Host, { key: '9c0ae8608168974a0d4ac3b8529c8402444a6260' }, index.h("style", { key: '153d19f7cbc5c506c8f9c58f953f9d87716dae90' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '25393ff8d9c04c32facc6c1ef8ee94a7f606ffc5', id: GenericVariables.componentWrapperId }, index.h(FProgressBar, Object.assign({ key: '84fbf74e65cecd27e04f9ce55ad81d0fc4801029' }, props)))));
|
|
17509
17735
|
}
|
|
17510
17736
|
disconnectedCallback() {
|
|
17511
17737
|
this.kupManager.theme.unregister(this);
|
|
@@ -17766,7 +17992,7 @@ const KupRating = class {
|
|
|
17766
17992
|
: false,
|
|
17767
17993
|
onClick: (i) => this.onKupClick(i),
|
|
17768
17994
|
};
|
|
17769
|
-
return (index.h(index.Host, { key: '
|
|
17995
|
+
return (index.h(index.Host, { key: 'c991a64dbe20d1c2fb5e522c85b748612d227b81' }, index.h("style", { key: '5634ea17f5acff126e439d3620b368b89d214192' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'f77e616bcd6bf725627e3601c05e538f4e54ad55', id: GenericVariables.componentWrapperId }, index.h(fCell.FRating, Object.assign({ key: 'd9fc27fc8b34f1306c2e5faa1ebbbbc30a765f58' }, props)))));
|
|
17770
17996
|
}
|
|
17771
17997
|
disconnectedCallback() {
|
|
17772
17998
|
this.kupManager.theme.unregister(this);
|
|
@@ -17889,59 +18115,59 @@ const KupSpinner = class {
|
|
|
17889
18115
|
spinnerClass = 'spinner-v' + this.layout;
|
|
17890
18116
|
if (this.layout === 7) {
|
|
17891
18117
|
spinnerEl = [
|
|
17892
|
-
index.h("div", { key: '
|
|
17893
|
-
index.h("div", { key: '
|
|
17894
|
-
index.h("div", { key: '
|
|
17895
|
-
index.h("div", { key: '
|
|
17896
|
-
index.h("div", { key: '
|
|
17897
|
-
index.h("div", { key: '
|
|
18118
|
+
index.h("div", { key: 'b07c59930150c75afdec2a64f0b5e6de3ea6a755', class: "sk-spinner-v7-dot" }),
|
|
18119
|
+
index.h("div", { key: 'a544b6683b6fd8566562d83eb49867e100fb63a3', class: "sk-spinner-v7-dot" }),
|
|
18120
|
+
index.h("div", { key: 'f2c42b4781e63bd9524dc997e334eb6a0dd057ae', class: "sk-spinner-v7-dot" }),
|
|
18121
|
+
index.h("div", { key: '8f4a6acedd2d639e380e6c2b3e2c8d4daa39d153', class: "sk-spinner-v7-dot" }),
|
|
18122
|
+
index.h("div", { key: '4f0d94c6e0533016678ccdd03fedc08b9eee3b9b', class: "sk-spinner-v7-dot" }),
|
|
18123
|
+
index.h("div", { key: '5f53783c980524d1ca2ceda5b95bcd3892c8723d', class: "sk-spinner-v7-dot" }),
|
|
17898
18124
|
];
|
|
17899
18125
|
}
|
|
17900
18126
|
if (this.layout === 9) {
|
|
17901
18127
|
spinnerEl = [
|
|
17902
|
-
index.h("div", { key: '
|
|
17903
|
-
index.h("div", { key: '
|
|
18128
|
+
index.h("div", { key: '00feb2f62ab0c835013e613c9114975c2642b255', class: "sk-spinner-v9-bounce1" }),
|
|
18129
|
+
index.h("div", { key: 'eaa614048641b07574d384cf0f53cd5e56484d31', class: "sk-spinner-v9-bounce2" }),
|
|
17904
18130
|
];
|
|
17905
18131
|
}
|
|
17906
18132
|
if (this.layout === 10) {
|
|
17907
18133
|
spinnerEl = [
|
|
17908
|
-
index.h("div", { key: '
|
|
17909
|
-
index.h("div", { key: '
|
|
18134
|
+
index.h("div", { key: '3910d5fb7260723e185de4ff753e5cdc84f0caed', class: "sk-spinner-v10-cube1" }),
|
|
18135
|
+
index.h("div", { key: '8d7a85f42328f9feb68d3838f0e9346c60d5346b', class: "sk-spinner-v10-cube2" }),
|
|
17910
18136
|
];
|
|
17911
18137
|
}
|
|
17912
18138
|
if (this.layout === 12) {
|
|
17913
18139
|
spinnerEl = [
|
|
17914
|
-
index.h("div", { key: '
|
|
17915
|
-
index.h("div", { key: '
|
|
18140
|
+
index.h("div", { key: 'e0376d5b10b25166d8e8c9ff038ffe959e8d8775', class: "sk-spinner-v12-dot1" }),
|
|
18141
|
+
index.h("div", { key: '4379287cd8b28ff132b7f255bba4ad1a71c02285', class: "sk-spinner-v12-dot2" }),
|
|
17916
18142
|
];
|
|
17917
18143
|
}
|
|
17918
18144
|
if (this.layout === 13) {
|
|
17919
18145
|
spinnerEl = [
|
|
17920
|
-
index.h("div", { key: '
|
|
17921
|
-
index.h("div", { key: '
|
|
17922
|
-
index.h("div", { key: '
|
|
17923
|
-
index.h("div", { key: '
|
|
17924
|
-
index.h("div", { key: '
|
|
17925
|
-
index.h("div", { key: '
|
|
17926
|
-
index.h("div", { key: '
|
|
17927
|
-
index.h("div", { key: '
|
|
17928
|
-
index.h("div", { key: '
|
|
18146
|
+
index.h("div", { key: '2060950cecc045eb2e293296a78f886a31edae1a', class: "sk-spinner-v13-cube sk-spinner-v13-cube1" }),
|
|
18147
|
+
index.h("div", { key: 'cd55b1b2af19de5ecd3150f4d652d519175213c4', class: "sk-spinner-v13-cube sk-spinner-v13-cube2" }),
|
|
18148
|
+
index.h("div", { key: '59288f629f621c60deb6091e5b7ba44e63ce9e02', class: "sk-spinner-v13-cube sk-spinner-v13-cube3" }),
|
|
18149
|
+
index.h("div", { key: 'db038dcf1814bab326d95657d9b17f41a68a5802', class: "sk-spinner-v13-cube sk-spinner-v13-cube4" }),
|
|
18150
|
+
index.h("div", { key: '49fdca041058e7077bcd331ab83b74234a211a2f', class: "sk-spinner-v13-cube sk-spinner-v13-cube5" }),
|
|
18151
|
+
index.h("div", { key: '335dff183e8a9f332dfed18237541f11a646359a', class: "sk-spinner-v13-cube sk-spinner-v13-cube6" }),
|
|
18152
|
+
index.h("div", { key: 'bb1c8162a07425aea157cd7b0013ba609a7c1250', class: "sk-spinner-v13-cube sk-spinner-v13-cube7" }),
|
|
18153
|
+
index.h("div", { key: '0de1e98c0524c1d6adc32b5bece645b9c8696df2', class: "sk-spinner-v13-cube sk-spinner-v13-cube8" }),
|
|
18154
|
+
index.h("div", { key: 'f527eec947a83b3184c14e14f6eda0038d942e5c', class: "sk-spinner-v13-cube sk-spinner-v13-cube9" }),
|
|
17929
18155
|
];
|
|
17930
18156
|
}
|
|
17931
18157
|
if (this.layout === 14) {
|
|
17932
18158
|
spinnerEl = [
|
|
17933
|
-
index.h("div", { key: '
|
|
17934
|
-
index.h("div", { key: '
|
|
17935
|
-
index.h("div", { key: '
|
|
17936
|
-
index.h("div", { key: '
|
|
17937
|
-
index.h("div", { key: '
|
|
17938
|
-
index.h("div", { key: '
|
|
17939
|
-
index.h("div", { key: '
|
|
17940
|
-
index.h("div", { key: '
|
|
17941
|
-
index.h("div", { key: '
|
|
17942
|
-
index.h("div", { key: '
|
|
17943
|
-
index.h("div", { key: '
|
|
17944
|
-
index.h("div", { key: '
|
|
18159
|
+
index.h("div", { key: 'babf2d01f5ad444d16b19ff537b9e840d008babc', class: "sk-spinner-v14-circle1 sk-spinner-v14-circle" }),
|
|
18160
|
+
index.h("div", { key: 'a42b35fe11a6f27e9153e93214ef1da88f0dcf14', class: "sk-spinner-v14-circle2 sk-spinner-v14-circle" }),
|
|
18161
|
+
index.h("div", { key: 'e675c37dc3a7af74a0e6fa78e87abfb50cc6f4eb', class: "sk-spinner-v14-circle3 sk-spinner-v14-circle" }),
|
|
18162
|
+
index.h("div", { key: '4ef23493de5fc5ab8fb7049c44e7c0cf5438e8ce', class: "sk-spinner-v14-circle4 sk-spinner-v14-circle" }),
|
|
18163
|
+
index.h("div", { key: 'a6ab521c9577ab998388acf69742c5412ef2b3e2', class: "sk-spinner-v14-circle5 sk-spinner-v14-circle" }),
|
|
18164
|
+
index.h("div", { key: 'cf7fc69a13808e60de0fc1922e781e005cf4dc83', class: "sk-spinner-v14-circle6 sk-spinner-v14-circle" }),
|
|
18165
|
+
index.h("div", { key: 'cefbf120dfb699081d89706687f5e5a65481f34e', class: "sk-spinner-v14-circle7 sk-spinner-v14-circle" }),
|
|
18166
|
+
index.h("div", { key: '62b6c549a94ca98e03c485b5bbd6c73debf9f110', class: "sk-spinner-v14-circle8 sk-spinner-v14-circle" }),
|
|
18167
|
+
index.h("div", { key: 'ac9f8006e0ee93a0f9b909ee11d7f7baf578b258', class: "sk-spinner-v14-circle9 sk-spinner-v14-circle" }),
|
|
18168
|
+
index.h("div", { key: 'c4188bb88ac3fc2195db71e382d993c90609c240', class: "sk-spinner-v14-circle10 sk-spinner-v14-circle" }),
|
|
18169
|
+
index.h("div", { key: '0a865548e8206df605f6533ff44df3661ade53e8', class: "sk-spinner-v14-circle11 sk-spinner-v14-circle" }),
|
|
18170
|
+
index.h("div", { key: 'c402f4f6fc6bac627af15c8a52a10ddc343fc0dd', class: "sk-spinner-v14-circle12 sk-spinner-v14-circle" }),
|
|
17945
18171
|
];
|
|
17946
18172
|
}
|
|
17947
18173
|
}
|
|
@@ -17960,7 +18186,7 @@ const KupSpinner = class {
|
|
|
17960
18186
|
else {
|
|
17961
18187
|
elStyle = Object.assign(Object.assign({}, elStyle), { fontSize: '3px' });
|
|
17962
18188
|
}
|
|
17963
|
-
return (index.h(index.Host, { key: '
|
|
18189
|
+
return (index.h(index.Host, { key: '648d8980632f4148884b9c834ee79c3f61e05f70', style: elStyle }, index.h("style", { key: 'b43d181b52662008864deeb450f182f3fb659f38' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'a565315d267b220f78e4cca3d04755843c7d2616', id: GenericVariables.componentWrapperId, style: elStyle }, index.h("div", { key: '84fad5e7d9ceab51914e3171a55588f9a47e772d', id: "loading-wrapper-master", class: masterClass, style: elStyle }, index.h("div", { key: '8e1d668d5f569718b84f7d5c59e6dfd00697f4de', id: wrapperClass, style: elStyle }, index.h("div", { key: '43fa4acf15d674bdbe8a81b08fb13b538f05032b', class: spinnerClass }, spinnerEl))))));
|
|
17964
18190
|
}
|
|
17965
18191
|
disconnectedCallback() {
|
|
17966
18192
|
this.kupManager.theme.unregister(this);
|
|
@@ -18108,7 +18334,7 @@ const KupSwitch = class {
|
|
|
18108
18334
|
onChange: () => this.onKupChange(),
|
|
18109
18335
|
onFocus: () => this.onKupFocus(),
|
|
18110
18336
|
};
|
|
18111
|
-
return (index.h(index.Host, { key: '
|
|
18337
|
+
return (index.h(index.Host, { key: '5438ddcec87fb29cbeebf6c3c89a36dd390d01df' }, index.h("style", { key: '2208c31d86b07df9fe670bb56a36fea1958666e1' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'f9306e316ff5f4777c5d67a2b7b7e796eb2ab8da', id: GenericVariables.componentWrapperId }, index.h(fCell.FSwitch, Object.assign({ key: '6a21c41e4ed9502969b560edbd99b8b51fe0a05d' }, props)))));
|
|
18112
18338
|
}
|
|
18113
18339
|
disconnectedCallback() {
|
|
18114
18340
|
this.kupManager.theme.unregister(this);
|
|
@@ -18538,6 +18764,7 @@ var KupTextFieldProps;
|
|
|
18538
18764
|
KupTextFieldProps["integers"] = "Number of integers (should be used when inputType is number).";
|
|
18539
18765
|
KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
|
|
18540
18766
|
KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
|
|
18767
|
+
KupTextFieldProps["labelHelper"] = "When set, the label will be accompanied by a helper text displayed on hover.";
|
|
18541
18768
|
KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
|
|
18542
18769
|
KupTextFieldProps["max"] = "The HTML max attribute specifies the maximum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.";
|
|
18543
18770
|
KupTextFieldProps["maxLength"] = "When set, the helper will display a character counter.";
|
|
@@ -18603,6 +18830,7 @@ const KupTextField = class {
|
|
|
18603
18830
|
this.integers = null;
|
|
18604
18831
|
this.isClearable = false;
|
|
18605
18832
|
this.label = null;
|
|
18833
|
+
this.labelHelper = '';
|
|
18606
18834
|
this.lightMode = false;
|
|
18607
18835
|
this.leadingLabel = false;
|
|
18608
18836
|
this.max = null;
|
|
@@ -18840,6 +19068,7 @@ const KupTextField = class {
|
|
|
18840
19068
|
integers: this.integers,
|
|
18841
19069
|
isClearable: this.isClearable,
|
|
18842
19070
|
label: this.label,
|
|
19071
|
+
labelHelper: this.labelHelper,
|
|
18843
19072
|
leadingLabel: this.leadingLabel,
|
|
18844
19073
|
lightMode: this.lightMode,
|
|
18845
19074
|
max: this.max,
|
|
@@ -18880,7 +19109,7 @@ const KupTextField = class {
|
|
|
18880
19109
|
onMinusClick: (e) => this.onKupMinusClick(e),
|
|
18881
19110
|
onPlusClick: (e) => this.onKupPlusClick(e),
|
|
18882
19111
|
};
|
|
18883
|
-
return (index.h(index.Host, { key: '
|
|
19112
|
+
return (index.h(index.Host, { key: '40071a3423f0b7bc9e69dff91af306643fb7a185' }, index.h("style", { key: '9bcc0c7b122867bff027c2ad275932296ff7ebcf' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'c0c3353a2d4e12596a8565e4a990f35eda93f1fb', id: GenericVariables.componentWrapperId }, index.h(fTextField.FTextField, Object.assign({ key: '33605938b1d3bc2b8beb61b30a1a7b0b62296f50' }, props)))));
|
|
18884
19113
|
}
|
|
18885
19114
|
disconnectedCallback() {
|
|
18886
19115
|
this.kupManager.theme.unregister(this);
|
|
@@ -19353,7 +19582,7 @@ const KupTimePicker = class {
|
|
|
19353
19582
|
this.kupManager.debug.logRender(this, true);
|
|
19354
19583
|
}
|
|
19355
19584
|
render() {
|
|
19356
|
-
return (index.h(index.Host, { key: '
|
|
19585
|
+
return (index.h(index.Host, { key: '67da450081ddff74293e645ee1148df0771950d6' }, index.h("style", { key: 'de8606675be524476fc1b3bd17a4ad8f1c3627e3' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'ab35fda2e3ad07008e160e1067568a6be25a0d9a', id: GenericVariables.componentWrapperId }, this.prepTextfield(this.getTimeForOutput()))));
|
|
19357
19586
|
}
|
|
19358
19587
|
disconnectedCallback() {
|
|
19359
19588
|
this.kupManager.dates.unregister(this);
|