@sme.up/ketchup 4.2.0-SNAPSHOT → 5.1.0-SNAPSHOT
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/README.md +107 -3
- package/dist/cjs/{cell-utils-1d44a3f0.js → cell-utils-9b1d6563.js} +4 -4
- package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
- package/dist/cjs/{f-button-a5788453.js → f-button-02a7cde4.js} +2 -2
- package/dist/cjs/{f-cell-eba6f39e.js → f-cell-4d1450a8.js} +62 -48
- package/dist/cjs/f-chip-a50b9f00.js +130 -0
- package/dist/cjs/{f-image-e03842eb.js → f-image-db55ac49.js} +3 -3
- package/dist/cjs/{index-0416afab.js → index-ab119fad.js} +23 -0
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -7
- package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +5759 -4805
- package/dist/cjs/kup-calendar.cjs.entry.js +626 -359
- package/dist/cjs/kup-cell.cjs.entry.js +15 -13
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +8 -7
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +93039 -0
- package/dist/cjs/kup-field.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-lazy.cjs.entry.js +22 -5
- package/dist/cjs/kup-magic-box.cjs.entry.js +95 -42
- package/dist/cjs/{kup-manager-75f1a2cd.js → kup-manager-5877b2ee.js} +3395 -737
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tslib.es6-4360c099.js → tslib.es6-0ee02c67.js} +13 -0
- package/dist/cjs/utils-1b5c8c70.js +482 -0
- package/dist/collection/assets/calendar.js +46 -1
- package/dist/collection/assets/card.js +15 -15
- package/dist/collection/assets/data-table.js +18 -6
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/kupdata.js +937 -0
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/kup-accordion/kup-accordion.css +0 -1
- package/dist/collection/components/kup-accordion/kup-accordion.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +148 -52
- package/dist/collection/components/kup-badge/kup-badge.js +2 -2
- package/dist/collection/components/kup-box/kup-box.js +31 -17
- package/dist/collection/components/kup-button/kup-button.js +2 -2
- package/dist/collection/components/kup-button-list/kup-button-list.js +26 -8
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +14 -8
- package/dist/collection/components/kup-calendar/kup-calendar.css +2 -2
- package/dist/collection/components/kup-calendar/kup-calendar.js +185 -315
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +38 -0
- package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +458 -0
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +321 -0
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +167 -0
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +1 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +2 -2
- package/dist/collection/components/kup-card/free/kup-card-free.js +22 -0
- package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
- package/dist/collection/components/kup-card/kup-card.css +793 -8
- package/dist/collection/components/kup-card/kup-card.js +75 -15
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +1 -1
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +18 -5
- package/dist/collection/components/kup-cell/kup-cell.js +15 -13
- package/dist/collection/components/kup-chart/kup-chart-builder.js +3 -4
- package/dist/collection/components/kup-chart/kup-chart.js +7 -7
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.css +1 -0
- package/dist/collection/components/kup-chip/kup-chip.js +51 -92
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +1 -265
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +93 -48
- package/dist/collection/components/kup-combobox/kup-combobox.js +148 -115
- package/dist/collection/components/kup-dash/kup-dash.js +1 -1
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +5 -5
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +28 -56
- package/dist/collection/components/kup-data-table/kup-data-table.css +4 -38
- package/dist/collection/components/kup-data-table/kup-data-table.js +366 -168
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +0 -82
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +41 -312
- package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
- package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
- package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
- package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
- package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
- package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
- package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
- package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
- package/dist/collection/components/kup-echart/kup-echart.css +13 -0
- package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
- package/dist/collection/components/kup-field/kup-field.js +2 -2
- package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
- package/dist/collection/components/kup-grid/kup-grid.css +2 -2
- package/dist/collection/components/kup-grid/kup-grid.js +6 -5
- package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
- package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
- package/dist/collection/components/kup-image/kup-image.js +3 -3
- package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
- package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
- package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
- package/dist/collection/components/kup-list/kup-list.css +3 -0
- package/dist/collection/components/kup-list/kup-list.js +219 -288
- package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- 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-radio/kup-radio.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 +1 -1
- package/dist/collection/components/kup-state/mock-store.js +1 -1
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
- package/dist/collection/components/kup-text-field/kup-text-field.css +3 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +1 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +57 -244
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
- package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
- package/dist/collection/components/kup-tree/kup-tree.css +2 -0
- package/dist/collection/components/kup-tree/kup-tree.js +145 -70
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
- package/dist/collection/f-components/f-cell/f-cell.js +53 -39
- package/dist/collection/f-components/f-chip/f-chip.js +76 -87
- package/dist/collection/f-components/f-image/f-image.js +2 -2
- package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
- package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
- package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
- package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
- package/dist/collection/managers/kup-data/kup-data.js +382 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
- package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
- package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
- package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
- package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
- package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
- package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
- package/dist/collection/managers/kup-math/kup-math.js +151 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -1
- package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
- package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
- package/dist/collection/types/GenericTypes.js +48 -1
- package/dist/collection/utils/cell-utils.js +3 -4
- package/dist/collection/utils/filters/filters-column-menu.js +7 -7
- package/dist/collection/utils/filters/filters-rows.js +2 -2
- package/dist/collection/utils/filters/filters-tree-items.js +12 -12
- package/dist/collection/utils/filters/filters.js +3 -2
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
- package/dist/collection/utils/utils.js +4 -4
- package/dist/esm/{cell-utils-9a2914fc.js → cell-utils-571978d6.js} +4 -4
- package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
- package/dist/esm/{f-button-55a9ed88.js → f-button-b3011cc2.js} +2 -2
- package/dist/esm/{f-cell-ac520cb2.js → f-cell-b88b2731.js} +62 -48
- package/dist/esm/f-chip-a52489ec.js +128 -0
- package/dist/esm/{f-image-70ca9dfe.js → f-image-5e5ed7e2.js} +3 -3
- package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +7 -7
- package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +5570 -4615
- package/dist/esm/kup-calendar.entry.js +626 -359
- package/dist/esm/kup-cell.entry.js +15 -13
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +8 -7
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +93035 -0
- package/dist/esm/kup-field.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-lazy.entry.js +22 -5
- package/dist/esm/kup-magic-box.entry.js +95 -42
- package/dist/esm/{kup-manager-bba32828.js → kup-manager-1f76a3ef.js} +3391 -737
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
- package/dist/esm/utils-93ae800f.js +461 -0
- package/dist/ketchup/assets/maps/africa.json +6116 -0
- package/dist/ketchup/assets/maps/america.json +5416 -0
- package/dist/ketchup/assets/maps/asia.json +6053 -0
- package/dist/ketchup/assets/maps/europe.json +5051 -0
- package/dist/ketchup/assets/maps/italy.json +3562 -0
- package/dist/ketchup/assets/maps/oceania.json +1069 -0
- package/dist/ketchup/assets/maps/world.json +23685 -0
- package/dist/ketchup/assets/svg/science.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-74259992.entry.js → p-088a886c.entry.js} +1 -1
- package/dist/ketchup/p-135cabdc.entry.js +1 -0
- package/dist/ketchup/p-1c1e830f.entry.js +1 -0
- package/dist/ketchup/{p-69a705ae.entry.js → p-29208220.entry.js} +1 -1
- package/dist/ketchup/{p-62208488.entry.js → p-2b9f2019.entry.js} +1 -1
- package/dist/ketchup/p-52d0582a.js +1 -0
- package/dist/ketchup/p-554bd5f0.entry.js +39 -0
- package/dist/ketchup/{p-06c209a5.js → p-5f52e313.js} +1 -1
- package/dist/ketchup/{p-e90934b5.entry.js → p-65449480.entry.js} +1 -1
- package/dist/ketchup/p-79cf3874.entry.js +1 -0
- package/dist/ketchup/p-7a85cda4.js +1 -0
- package/dist/ketchup/p-84cce555.entry.js +27 -0
- package/dist/ketchup/p-8c44c3b9.js +135 -0
- package/dist/ketchup/{p-ff7d590e.entry.js → p-9d49cdb2.entry.js} +1 -1
- package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
- package/dist/ketchup/{p-40df35de.entry.js → p-a2b6672e.entry.js} +1 -1
- package/dist/ketchup/{p-5faf7715.entry.js → p-a4be630b.entry.js} +1 -1
- package/dist/ketchup/p-c072b270.js +1 -0
- package/dist/ketchup/{p-daf03877.entry.js → p-c648972c.entry.js} +1 -1
- package/dist/ketchup/{p-03ae1be9.entry.js → p-d67d39c0.entry.js} +1 -1
- package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
- package/dist/ketchup/{p-52038ccb.js → p-da387e0e.js} +1 -1
- package/dist/ketchup/p-e5c9ec9e.js +1 -0
- package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
- package/dist/ketchup/p-ef539eda.js +9 -0
- package/dist/ketchup/p-f316234c.entry.js +143 -0
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
- package/dist/types/components/kup-box/kup-box.d.ts +4 -4
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
- package/dist/types/components/kup-card/built-in/kup-card-calendar.d.ts +2 -0
- package/dist/types/components/kup-card/built-in/kup-card-clock.d.ts +2 -0
- package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +14 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +100 -1
- package/dist/types/components/kup-card/kup-card.d.ts +12 -5
- package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
- package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
- package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -109
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +50 -29
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +0 -10
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
- package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
- package/dist/types/components/kup-list/kup-list.d.ts +4 -35
- package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +2 -9
- package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
- package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
- package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
- package/dist/types/components.d.ts +307 -188
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
- package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
- package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
- package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
- package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
- package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
- package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
- package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
- package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
- package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
- package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
- package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
- package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/types/GenericTypes.d.ts +53 -6
- package/dist/types/utils/cell-utils.d.ts +7 -6
- package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
- package/dist/types/utils/filters/filters-rows.d.ts +10 -10
- package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
- package/dist/types/utils/helpers.d.ts +2 -2
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
- package/dist/types/utils/utils.d.ts +4 -2
- package/package.json +31 -26
- package/dist/cjs/f-chip-ce69b7d2.js +0 -141
- package/dist/cjs/utils-b3ec89fe.js +0 -1550
- package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
- package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
- package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
- package/dist/esm/f-chip-babf1740.js +0 -139
- package/dist/esm/utils-cfcbe33f.js +0 -1526
- package/dist/ketchup/p-1ce9a037.js +0 -1
- package/dist/ketchup/p-1e2c3497.js +0 -1
- package/dist/ketchup/p-4748be4b.js +0 -8
- package/dist/ketchup/p-5db41fae.entry.js +0 -45
- package/dist/ketchup/p-6cc8264d.entry.js +0 -1
- package/dist/ketchup/p-756aa8b1.entry.js +0 -1
- package/dist/ketchup/p-9d02a676.js +0 -134
- package/dist/ketchup/p-a7687c0e.entry.js +0 -27
- package/dist/ketchup/p-d58dbf0e.js +0 -1
- package/dist/ketchup/p-d6ce1ac6.entry.js +0 -1
- package/dist/ketchup/p-ea387b49.entry.js +0 -1
- package/dist/ketchup/p-f6bff949.js +0 -1
- package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
- package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
|
@@ -4,7 +4,7 @@ import { getColumnByName } from '../../utils/cell-utils';
|
|
|
4
4
|
import { calcTotals, normalizeRows, filterRows, groupRows, paginateRows, sortRows, } from './kup-data-table-helper';
|
|
5
5
|
import { numberToFormattedStringNumber, identify, deepEqual, getProps, setProps, } from '../../utils/utils';
|
|
6
6
|
import { ItemsDisplayMode, } from '../kup-list/kup-list-declarations';
|
|
7
|
-
import { kupManagerInstance, } from '../../
|
|
7
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
8
8
|
import { KupDataTableState } from './kup-data-table-state';
|
|
9
9
|
import { setTooltip, unsetTooltip } from '../../utils/helpers';
|
|
10
10
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
@@ -12,26 +12,25 @@ import { FTextField } from '../../f-components/f-text-field/f-text-field';
|
|
|
12
12
|
import { FChip } from '../../f-components/f-chip/f-chip';
|
|
13
13
|
import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
|
|
14
14
|
import { FChipType, } from '../../f-components/f-chip/f-chip-declarations';
|
|
15
|
-
import { FButtonStyling } from '../../f-components/f-button/f-button-declarations';
|
|
16
15
|
import { FCheckbox } from '../../f-components/f-checkbox/f-checkbox';
|
|
17
16
|
import { KupColumnMenu } from '../../utils/kup-column-menu/kup-column-menu';
|
|
18
17
|
import { FiltersColumnMenu } from '../../utils/filters/filters-column-menu';
|
|
19
18
|
import { FiltersRows } from '../../utils/filters/filters-rows';
|
|
20
|
-
import { kupDynamicPositionAttribute, KupDynamicPositionPlacement, } from '../../
|
|
19
|
+
import { kupDynamicPositionAttribute, KupDynamicPositionPlacement, } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
21
20
|
import { KupCardFamily, } from '../kup-card/kup-card-declarations';
|
|
22
|
-
import { KupDebugCategory } from '../../
|
|
23
|
-
import { KupLanguageDensity, KupLanguageFontsize, KupLanguageGeneric, KupLanguageGrid, KupLanguageRow, KupLanguageSearch, KupLanguageTotals, } from '../../
|
|
24
|
-
import { KupThemeColorValues, KupThemeIconValues, } from '../../
|
|
21
|
+
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
22
|
+
import { KupLanguageDensity, KupLanguageFontsize, KupLanguageGeneric, KupLanguageGrid, KupLanguageRow, KupLanguageSearch, KupLanguageTotals, } from '../../managers/kup-language/kup-language-declarations';
|
|
23
|
+
import { KupThemeColorValues, KupThemeIconValues, } from '../../managers/kup-theme/kup-theme-declarations';
|
|
25
24
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
26
|
-
import { KupDatesFormats } from '../../
|
|
27
|
-
import { kupDragActiveAttr, KupDragEffect, kupDraggableCellAttr, kupDraggableColumnAttr, KupDropEventTypes, KupPointerEventTypes, } from '../../
|
|
25
|
+
import { KupDatesFormats } from '../../managers/kup-dates/kup-dates-declarations';
|
|
26
|
+
import { kupDragActiveAttr, KupDragEffect, kupDraggableCellAttr, kupDraggableColumnAttr, KupDropEventTypes, KupPointerEventTypes, } from '../../managers/kup-interact/kup-interact-declarations';
|
|
28
27
|
import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
|
|
29
28
|
import { FCell } from '../../f-components/f-cell/f-cell';
|
|
29
|
+
import { FPaginator } from '../../f-components/f-paginator/f-paginator';
|
|
30
|
+
import { pageChange, rowsPerPageChange, } from '../../f-components/f-paginator/f-paginator-utils';
|
|
31
|
+
import { KupDataNewColumnTypes, } from '../../managers/kup-data/kup-data-declarations';
|
|
30
32
|
export class KupDataTable {
|
|
31
33
|
constructor() {
|
|
32
|
-
//////////////////////////////
|
|
33
|
-
// Begin state stuff
|
|
34
|
-
//////////////////////////////
|
|
35
34
|
this.stateId = '';
|
|
36
35
|
this.state = new KupDataTableState();
|
|
37
36
|
/**
|
|
@@ -64,10 +63,20 @@ export class KupDataTable {
|
|
|
64
63
|
* Defines the label to show when the table is empty.
|
|
65
64
|
*/
|
|
66
65
|
this.emptyDataLabel = null;
|
|
66
|
+
/**
|
|
67
|
+
* Enables the choice to set formulas on columns by dragging them into different columns.
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
this.enableColumnsFormula = true;
|
|
67
71
|
/**
|
|
68
72
|
* Enables the extracolumns add buttons.
|
|
69
73
|
*/
|
|
70
74
|
this.enableExtraColumns = true;
|
|
75
|
+
/**
|
|
76
|
+
* Enables the merging of columns by dragging them into different columns.
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
this.enableMergeColumns = true;
|
|
71
80
|
/**
|
|
72
81
|
* Enables the sorting of columns by dragging them into different columns.
|
|
73
82
|
*/
|
|
@@ -256,11 +265,6 @@ export class KupDataTable {
|
|
|
256
265
|
this.openedTotalMenu = null;
|
|
257
266
|
this.openedCustomSettings = false;
|
|
258
267
|
this.fontsize = 'medium';
|
|
259
|
-
/**
|
|
260
|
-
* This is a flag to be used for the draggable columns to force rerender
|
|
261
|
-
* by changing the internal state.
|
|
262
|
-
*/
|
|
263
|
-
this.triggerColumnSortRerender = false;
|
|
264
268
|
this.rowsLength = 0;
|
|
265
269
|
this.paginatedRowsLength = 0;
|
|
266
270
|
/**
|
|
@@ -296,14 +300,12 @@ export class KupDataTable {
|
|
|
296
300
|
this.removeDropareaRef = null;
|
|
297
301
|
this.groupsDropareaRef = null;
|
|
298
302
|
this.clickCb = null;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
*/
|
|
303
|
+
this.clickCbCustomPanel = null;
|
|
304
|
+
this.clickCbDropCard = null;
|
|
302
305
|
this.detailCard = null;
|
|
303
|
-
/**
|
|
304
|
-
* Reference to the column menu card.
|
|
305
|
-
*/
|
|
306
306
|
this.columnMenuCard = null;
|
|
307
|
+
this.columnDropCard = null;
|
|
308
|
+
this.columnDropCardAnchor = null;
|
|
307
309
|
this.stickyHeaderPosition = () => {
|
|
308
310
|
if (this.tableRef) {
|
|
309
311
|
if (this.tableIntersecting) {
|
|
@@ -603,6 +605,33 @@ export class KupDataTable {
|
|
|
603
605
|
async getProps(descriptions) {
|
|
604
606
|
return getProps(this, KupDataTableProps, descriptions);
|
|
605
607
|
}
|
|
608
|
+
/**
|
|
609
|
+
* Hides the given column.
|
|
610
|
+
* @param {KupDataColumn} column - Column to hide.
|
|
611
|
+
*/
|
|
612
|
+
async hideColumn(column) {
|
|
613
|
+
this.kupManager.data.column.hide(this.data, [column.name]);
|
|
614
|
+
this.kupColumnRemove.emit({
|
|
615
|
+
comp: this,
|
|
616
|
+
id: this.rootElement.id,
|
|
617
|
+
column: column,
|
|
618
|
+
});
|
|
619
|
+
this.refresh();
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Invokes the KupData API for column creation, then refreshes the component in case no errors were catched.
|
|
623
|
+
* @param {KupDataNewColumnTypes} type - Type of the column creation.
|
|
624
|
+
* @param {KupDataNewColumnOptions} options - Options of the creation.
|
|
625
|
+
* @returns {string|KupDataColumn} Returns the new column created or a string containing the error message if something went wrong.
|
|
626
|
+
*/
|
|
627
|
+
async newColumn(type, options) {
|
|
628
|
+
const result = this.kupManager.data.column.new(this.data, type, options);
|
|
629
|
+
const error = !!(typeof result === 'string' || result instanceof String);
|
|
630
|
+
if (!error) {
|
|
631
|
+
this.refresh();
|
|
632
|
+
}
|
|
633
|
+
return result;
|
|
634
|
+
}
|
|
606
635
|
/**
|
|
607
636
|
* Opens the column menu of the given column.
|
|
608
637
|
* @param {string} column - Name of the column.
|
|
@@ -718,6 +747,57 @@ export class KupDataTable {
|
|
|
718
747
|
});
|
|
719
748
|
}
|
|
720
749
|
}
|
|
750
|
+
closeDropCard() {
|
|
751
|
+
this.kupManager.dynamicPosition.stop(this.columnDropCard);
|
|
752
|
+
this.kupManager.removeClickCallback(this.clickCbDropCard);
|
|
753
|
+
this.columnDropCard.remove();
|
|
754
|
+
this.columnDropCard = null;
|
|
755
|
+
}
|
|
756
|
+
createDropCard(starter, receiving) {
|
|
757
|
+
if (this.columnDropCard) {
|
|
758
|
+
this.closeDropCard();
|
|
759
|
+
}
|
|
760
|
+
this.columnDropCard = document.createElement('kup-card');
|
|
761
|
+
this.columnDropCard.data = {
|
|
762
|
+
options: {
|
|
763
|
+
data: this.data,
|
|
764
|
+
enableFormula: this.enableColumnsFormula,
|
|
765
|
+
enableMerge: this.enableMergeColumns,
|
|
766
|
+
enableMove: this.enableSortableColumns,
|
|
767
|
+
receivingColumn: receiving,
|
|
768
|
+
starterColumn: starter,
|
|
769
|
+
formulaCb: () => {
|
|
770
|
+
this.closeDropCard();
|
|
771
|
+
this.refresh();
|
|
772
|
+
},
|
|
773
|
+
mergeCb: () => {
|
|
774
|
+
this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
|
|
775
|
+
columns: [receiving.name, starter.name],
|
|
776
|
+
});
|
|
777
|
+
this.closeDropCard();
|
|
778
|
+
},
|
|
779
|
+
moveCb: () => {
|
|
780
|
+
this.handleColumnSort(receiving, starter);
|
|
781
|
+
this.closeDropCard();
|
|
782
|
+
},
|
|
783
|
+
},
|
|
784
|
+
};
|
|
785
|
+
this.columnDropCard.layoutFamily = KupCardFamily.BUILT_IN;
|
|
786
|
+
this.columnDropCard.layoutNumber = 3;
|
|
787
|
+
this.columnDropCard.isMenu = true;
|
|
788
|
+
this.columnDropCard.sizeX = '280px';
|
|
789
|
+
this.columnDropCard.sizeY = 'auto';
|
|
790
|
+
this.kupManager.dynamicPosition.register(this.columnDropCard, this.columnDropCardAnchor, 0, KupDynamicPositionPlacement.AUTO, true);
|
|
791
|
+
this.kupManager.dynamicPosition.start(this.columnDropCard);
|
|
792
|
+
this.clickCbDropCard = {
|
|
793
|
+
cb: () => {
|
|
794
|
+
this.closeDropCard();
|
|
795
|
+
},
|
|
796
|
+
el: this.columnDropCard,
|
|
797
|
+
};
|
|
798
|
+
this.kupManager.addClickCallback(this.clickCbDropCard, true);
|
|
799
|
+
this.columnDropCard.menuVisible = true;
|
|
800
|
+
}
|
|
721
801
|
calculateData() {
|
|
722
802
|
if (!this.transpose) {
|
|
723
803
|
// restore
|
|
@@ -734,7 +814,7 @@ export class KupDataTable {
|
|
|
734
814
|
// transpose
|
|
735
815
|
this.originalData = Object.assign({}, this.data);
|
|
736
816
|
if (this.data.columns.length > 0) {
|
|
737
|
-
this.data = this.getTransposedData(this.data.columns[0]);
|
|
817
|
+
this.data = this.getTransposedData(this.data.columns[0].name);
|
|
738
818
|
}
|
|
739
819
|
}
|
|
740
820
|
switchToTotalsMatrix() {
|
|
@@ -867,85 +947,10 @@ export class KupDataTable {
|
|
|
867
947
|
}
|
|
868
948
|
}
|
|
869
949
|
getTransposedData(column) {
|
|
870
|
-
const transposedData = {};
|
|
871
|
-
// TODO manage better the filters, this is just a fix in order to release the function
|
|
872
950
|
if (column) {
|
|
873
951
|
this.filters = {};
|
|
874
952
|
}
|
|
875
|
-
|
|
876
|
-
const columns = [];
|
|
877
|
-
// first item
|
|
878
|
-
let firstHead = null;
|
|
879
|
-
if (column) {
|
|
880
|
-
firstHead = column;
|
|
881
|
-
columns.push(firstHead);
|
|
882
|
-
this.data.rows.forEach((row) => {
|
|
883
|
-
columns.push(this.getColumnFromCell(row.cells[firstHead.name], row.id));
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
else {
|
|
887
|
-
firstHead = { name: fieldColumn.toUpperCase(), title: fieldColumn };
|
|
888
|
-
columns.push(firstHead);
|
|
889
|
-
for (let index = 0; index < this.data.rows.length; index++) {
|
|
890
|
-
columns.push({
|
|
891
|
-
name: this.data.rows[index].id,
|
|
892
|
-
title: '#' + index,
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
// fill columns with the cells in the first original column
|
|
897
|
-
// set columns
|
|
898
|
-
transposedData.columns = columns;
|
|
899
|
-
// calc rows
|
|
900
|
-
const rows = [];
|
|
901
|
-
for (let index = column ? 1 : 0; index < this.data.columns.length; index++) {
|
|
902
|
-
const oldColumn = this.data.columns[index];
|
|
903
|
-
const cells = {};
|
|
904
|
-
// set first cell from previous columns
|
|
905
|
-
// TODO set obj? like this --> obj: oldColumn.obj
|
|
906
|
-
cells[firstHead.name] = {
|
|
907
|
-
value: oldColumn.title,
|
|
908
|
-
};
|
|
909
|
-
for (let index = 1; index < transposedData.columns.length; index++) {
|
|
910
|
-
const newColumn = transposedData.columns[index];
|
|
911
|
-
const oldRow = this.data.rows[index - 1];
|
|
912
|
-
const cellName = column ? newColumn.name : oldRow.id;
|
|
913
|
-
cells[cellName] = oldRow.cells[oldColumn.name];
|
|
914
|
-
if (oldColumn.icon && !cells[cellName].icon) {
|
|
915
|
-
cells[cellName].icon = oldColumn.icon;
|
|
916
|
-
}
|
|
917
|
-
if (oldColumn.shape && !cells[cellName].shape) {
|
|
918
|
-
cells[cellName].shape = oldColumn.shape;
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
// If a record is key and no column argument is provided, it will be placed on top
|
|
922
|
-
if (!column && oldColumn.isKey) {
|
|
923
|
-
rows.unshift({
|
|
924
|
-
id: String(index),
|
|
925
|
-
cells,
|
|
926
|
-
name: oldColumn.name,
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
else {
|
|
930
|
-
rows.push({
|
|
931
|
-
id: String(index),
|
|
932
|
-
cells,
|
|
933
|
-
name: oldColumn.name,
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
// set rows
|
|
938
|
-
transposedData.rows = rows;
|
|
939
|
-
// return
|
|
940
|
-
return transposedData;
|
|
941
|
-
}
|
|
942
|
-
getColumnFromCell(cell, id) {
|
|
943
|
-
const title = cell.displayedValue ? cell.displayedValue : cell.value;
|
|
944
|
-
// TODO set obj? like this --> obj: cell.obj
|
|
945
|
-
return {
|
|
946
|
-
name: cell.value + '_' + id,
|
|
947
|
-
title,
|
|
948
|
-
};
|
|
953
|
+
return this.kupManager.data.transpose(this.data, column);
|
|
949
954
|
}
|
|
950
955
|
updateStickyHeaderSize() {
|
|
951
956
|
const navBar = document.querySelectorAll('.header')[0];
|
|
@@ -1108,13 +1113,15 @@ export class KupDataTable {
|
|
|
1108
1113
|
drop: (e) => {
|
|
1109
1114
|
const draggedTh = e.relatedTarget;
|
|
1110
1115
|
const deleted = getColumnByName(this.getColumns(), draggedTh.dataset.column);
|
|
1111
|
-
this.
|
|
1116
|
+
this.hideColumn(deleted);
|
|
1112
1117
|
this.tableRef.removeAttribute(kupDragActiveAttr);
|
|
1113
1118
|
},
|
|
1114
1119
|
});
|
|
1115
1120
|
}
|
|
1116
1121
|
}
|
|
1117
|
-
if (this.enableSortableColumns
|
|
1122
|
+
if (this.enableSortableColumns ||
|
|
1123
|
+
this.enableMergeColumns ||
|
|
1124
|
+
this.enableColumnsFormula) {
|
|
1118
1125
|
const dataCb = (e) => {
|
|
1119
1126
|
const draggable = e.target;
|
|
1120
1127
|
return {
|
|
@@ -1128,11 +1135,28 @@ export class KupDataTable {
|
|
|
1128
1135
|
};
|
|
1129
1136
|
};
|
|
1130
1137
|
const dropCb = (e) => {
|
|
1138
|
+
const onlyMerge = !!(!this.enableSortableColumns &&
|
|
1139
|
+
!this.enableColumnsFormula &&
|
|
1140
|
+
this.enableMergeColumns);
|
|
1141
|
+
const onlySort = !!(this.enableSortableColumns &&
|
|
1142
|
+
!this.enableColumnsFormula &&
|
|
1143
|
+
!this.enableMergeColumns);
|
|
1131
1144
|
const draggable = e.relatedTarget;
|
|
1132
|
-
const
|
|
1145
|
+
const starter = draggable.kupDragDrop.column;
|
|
1133
1146
|
const receiving = getColumnByName(this.getColumns(), e.target.dataset.column);
|
|
1134
|
-
|
|
1135
|
-
|
|
1147
|
+
this.columnDropCardAnchor = e.target;
|
|
1148
|
+
if (receiving && starter) {
|
|
1149
|
+
if (onlySort) {
|
|
1150
|
+
this.handleColumnSort(receiving, starter);
|
|
1151
|
+
}
|
|
1152
|
+
else if (onlyMerge) {
|
|
1153
|
+
this.newColumn(KupDataNewColumnTypes.CONCATENATE, {
|
|
1154
|
+
columns: [receiving.name, starter.name],
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
else {
|
|
1158
|
+
this.createDropCard(starter, receiving);
|
|
1159
|
+
}
|
|
1136
1160
|
}
|
|
1137
1161
|
this.tableRef.removeAttribute(kupDragActiveAttr);
|
|
1138
1162
|
};
|
|
@@ -1288,11 +1312,9 @@ export class KupDataTable {
|
|
|
1288
1312
|
}
|
|
1289
1313
|
}
|
|
1290
1314
|
customizePanelPosition() {
|
|
1291
|
-
if (this.customizeTopButtonRef
|
|
1292
|
-
this.kupManager.dynamicPosition.
|
|
1293
|
-
|
|
1294
|
-
if (this.customizeBottomButtonRef) {
|
|
1295
|
-
this.kupManager.dynamicPosition.register(this.customizeBottomPanelRef, this.customizeBottomButtonRef);
|
|
1315
|
+
if (this.customizeTopButtonRef &&
|
|
1316
|
+
!this.kupManager.dynamicPosition.isRegistered(this.customizeTopPanelRef)) {
|
|
1317
|
+
this.kupManager.dynamicPosition.register(this.customizeTopPanelRef, this.customizeTopButtonRef, 0, KupDynamicPositionPlacement.BOTTOM, true);
|
|
1296
1318
|
}
|
|
1297
1319
|
}
|
|
1298
1320
|
rowsPointLength() {
|
|
@@ -1424,7 +1446,9 @@ export class KupDataTable {
|
|
|
1424
1446
|
getEventPath(e) {
|
|
1425
1447
|
let path = [];
|
|
1426
1448
|
let currentEl = e.target;
|
|
1427
|
-
while (currentEl
|
|
1449
|
+
while (currentEl &&
|
|
1450
|
+
currentEl !== this.rootElement &&
|
|
1451
|
+
currentEl !== document.body) {
|
|
1428
1452
|
path.push(currentEl);
|
|
1429
1453
|
currentEl = currentEl.parentNode
|
|
1430
1454
|
? currentEl.parentNode
|
|
@@ -1466,7 +1490,7 @@ export class KupDataTable {
|
|
|
1466
1490
|
}
|
|
1467
1491
|
/**
|
|
1468
1492
|
* Opens a card containing the detail of the given row.
|
|
1469
|
-
* @param {
|
|
1493
|
+
* @param {KupDataTableRow} row - Row for which the detail was requested.
|
|
1470
1494
|
* @param {number} x - Initial x coordinates of the card.
|
|
1471
1495
|
* @param {number} y - Initial y coordinates of the card.
|
|
1472
1496
|
* @private
|
|
@@ -1533,7 +1557,7 @@ export class KupDataTable {
|
|
|
1533
1557
|
// Setting up icons
|
|
1534
1558
|
let keyCell = null;
|
|
1535
1559
|
for (let index = 0; index < rows.length; index++) {
|
|
1536
|
-
const column = this.data.columns.find((x) => x.name === rows[index].
|
|
1560
|
+
const column = this.data.columns.find((x) => x.name === rows[index].transposedColumnName);
|
|
1537
1561
|
if (!column) {
|
|
1538
1562
|
this.kupManager.debug.logMessage(this, 'Column not found on row name (' + column + ')!', KupDebugCategory.WARNING);
|
|
1539
1563
|
return;
|
|
@@ -1929,6 +1953,7 @@ export class KupDataTable {
|
|
|
1929
1953
|
const numberOfPages = Math.ceil(numberOfRows / this.currentRowsPerPage);
|
|
1930
1954
|
if (this.currentPage > numberOfPages) {
|
|
1931
1955
|
// reset page
|
|
1956
|
+
this.currentPage = 1;
|
|
1932
1957
|
this.resetCurrentPage();
|
|
1933
1958
|
}
|
|
1934
1959
|
}
|
|
@@ -2067,12 +2092,18 @@ export class KupDataTable {
|
|
|
2067
2092
|
this.globalFilterValue = '';
|
|
2068
2093
|
}
|
|
2069
2094
|
}
|
|
2070
|
-
|
|
2071
|
-
|
|
2095
|
+
handlePageChange(pageNumber) {
|
|
2096
|
+
const newPage = pageChange(pageNumber, this.rowsLength, this.currentRowsPerPage);
|
|
2097
|
+
if (newPage) {
|
|
2098
|
+
this.currentPage = newPage;
|
|
2099
|
+
}
|
|
2072
2100
|
}
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2101
|
+
handleRowsPerPageChange(rowsNumber) {
|
|
2102
|
+
const newRows = rowsPerPageChange(rowsNumber, this.rowsLength);
|
|
2103
|
+
if (newRows) {
|
|
2104
|
+
this.currentRowsPerPage = newRows;
|
|
2105
|
+
this.adjustPaginator();
|
|
2106
|
+
}
|
|
2076
2107
|
}
|
|
2077
2108
|
onRowClick(row, td, emitEvent) {
|
|
2078
2109
|
// selecting row
|
|
@@ -2101,7 +2132,9 @@ export class KupDataTable {
|
|
|
2101
2132
|
// find clicked column
|
|
2102
2133
|
const clickedColumn = td.dataset.column;
|
|
2103
2134
|
// selecting clicked column
|
|
2104
|
-
if (
|
|
2135
|
+
if (!row.unselectable &&
|
|
2136
|
+
this.selection !== SelectionMode.NONE &&
|
|
2137
|
+
clickedColumn) {
|
|
2105
2138
|
this.deselectColumn(this.selectedColumn);
|
|
2106
2139
|
this.selectedColumn = clickedColumn;
|
|
2107
2140
|
this.selectColumn(this.selectedColumn);
|
|
@@ -2340,6 +2373,12 @@ export class KupDataTable {
|
|
|
2340
2373
|
col.title === sortedColumn.title);
|
|
2341
2374
|
// Moves the sortedColumn into the correct position
|
|
2342
2375
|
if (this.sortableColumnsMutateData) {
|
|
2376
|
+
this.kupColumnMove.emit({
|
|
2377
|
+
comp: this,
|
|
2378
|
+
id: this.rootElement.id,
|
|
2379
|
+
sourceColumn: this.data.columns[sortedColIndex],
|
|
2380
|
+
targetColumn: this.data.columns[receivingColIndex],
|
|
2381
|
+
});
|
|
2343
2382
|
this.moveSortedColumns(this.data.columns, receivingColIndex, sortedColIndex);
|
|
2344
2383
|
}
|
|
2345
2384
|
}
|
|
@@ -2352,7 +2391,7 @@ export class KupDataTable {
|
|
|
2352
2391
|
moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
|
|
2353
2392
|
const remove = columns.splice(sortedColumnIndex, 1);
|
|
2354
2393
|
columns.splice(receivingColumnIndex, 0, remove[0]);
|
|
2355
|
-
this.
|
|
2394
|
+
this.refresh();
|
|
2356
2395
|
}
|
|
2357
2396
|
async defaultSortingFunction(columns, receivingColumnIndex, sortedColumnIndex, useNewObject = false) {
|
|
2358
2397
|
const toSort = !useNewObject ? columns : [...columns];
|
|
@@ -2467,7 +2506,7 @@ export class KupDataTable {
|
|
|
2467
2506
|
}
|
|
2468
2507
|
}
|
|
2469
2508
|
}
|
|
2470
|
-
return (h("th", { ref: (el) => this.thRefs.push(el), "data-cell": column, "data-column": column.name, class: columnClass, style: thStyle },
|
|
2509
|
+
return (h("th", { ref: (el) => this.thRefs.push(el), "data-cell": column, "data-column": column.name, class: columnClass, style: thStyle, title: column.name },
|
|
2471
2510
|
h("div", { class: "header-cell__content" },
|
|
2472
2511
|
h("span", { class: "header-cell__title" }, this.applyLineBreaks(column.title)),
|
|
2473
2512
|
h("span", { class: "header-cell__icons" },
|
|
@@ -3026,11 +3065,6 @@ export class KupDataTable {
|
|
|
3026
3065
|
return h(FImage, Object.assign({}, props));
|
|
3027
3066
|
});
|
|
3028
3067
|
}
|
|
3029
|
-
renderLoadMoreButton(isSlotted = true) {
|
|
3030
|
-
return (h("kup-button", { styling: FButtonStyling.FLAT, class: "load-more-button", label: this.kupManager.language.translate(KupLanguageGeneric.LOAD_MORE), icon: "plus", slot: isSlotted ? 'more-results' : null, "onkup-button-click": () => {
|
|
3031
|
-
this.onLoadMoreClick();
|
|
3032
|
-
} }));
|
|
3033
|
-
}
|
|
3034
3068
|
onCustomSettingsClick() {
|
|
3035
3069
|
if (!this.openedCustomSettings) {
|
|
3036
3070
|
this.openCustomSettings();
|
|
@@ -3040,26 +3074,39 @@ export class KupDataTable {
|
|
|
3040
3074
|
}
|
|
3041
3075
|
}
|
|
3042
3076
|
openCustomSettings() {
|
|
3043
|
-
this.customizeTopPanelRef.
|
|
3077
|
+
this.customizeTopPanelRef.menuVisible = true;
|
|
3044
3078
|
this.customizeTopButtonRef.classList.add('toggled');
|
|
3045
3079
|
this.kupManager.dynamicPosition.start(this.customizeTopPanelRef);
|
|
3046
3080
|
this.openedCustomSettings = true;
|
|
3081
|
+
if (!this.clickCbCustomPanel) {
|
|
3082
|
+
this.clickCbCustomPanel = {
|
|
3083
|
+
cb: () => {
|
|
3084
|
+
this.closeCustomSettings();
|
|
3085
|
+
},
|
|
3086
|
+
el: this.customizeTopPanelRef,
|
|
3087
|
+
};
|
|
3088
|
+
}
|
|
3089
|
+
this.kupManager.addClickCallback(this.clickCbCustomPanel, true);
|
|
3047
3090
|
}
|
|
3048
3091
|
closeCustomSettings() {
|
|
3049
3092
|
this.customizeTopButtonRef.classList.remove('toggled');
|
|
3050
3093
|
if (this.customizeTopPanelRef == null) {
|
|
3051
3094
|
return;
|
|
3052
3095
|
}
|
|
3053
|
-
this.customizeTopPanelRef.
|
|
3054
|
-
this.kupManager.dynamicPosition.stop(this.customizeTopPanelRef);
|
|
3096
|
+
this.customizeTopPanelRef.menuVisible = false;
|
|
3055
3097
|
this.openedCustomSettings = false;
|
|
3098
|
+
this.kupManager.removeClickCallback(this.clickCbCustomPanel);
|
|
3056
3099
|
}
|
|
3057
3100
|
renderPaginator(top) {
|
|
3058
3101
|
return (h("div", { class: "paginator-wrapper" },
|
|
3059
|
-
h("div", { class: "paginator-tabs" },
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3102
|
+
h("div", { class: "paginator-tabs" }, !this.lazyLoadRows &&
|
|
3103
|
+
this.rowsLength > this.rowsPerPage ? (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.rowsLength, perPage: this.currentRowsPerPage
|
|
3104
|
+
? this.currentRowsPerPage
|
|
3105
|
+
: this.rowsPerPage, onLoadMore: this.showLoadMore
|
|
3106
|
+
? () => {
|
|
3107
|
+
this.onLoadMoreClick();
|
|
3108
|
+
}
|
|
3109
|
+
: null, onNextPage: () => this.handlePageChange(this.currentPage + 1), onPrevPage: () => this.handlePageChange(this.currentPage - 1), onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) })) : null)));
|
|
3063
3110
|
}
|
|
3064
3111
|
renderCustomizePanel() {
|
|
3065
3112
|
let density = undefined;
|
|
@@ -3076,9 +3123,9 @@ export class KupDataTable {
|
|
|
3076
3123
|
totalsMatrix = this.renderTotalsMatrix();
|
|
3077
3124
|
}
|
|
3078
3125
|
}
|
|
3079
|
-
return (h("
|
|
3126
|
+
return (h("kup-card", { customStyle: "::slotted(kup-switch) { width: max-content !important; } ::slotted(*) { margin: auto !important; } ::slotted(.customize-element) { margin: auto !important; padding: 0 1em 1em 1em !important; width: max-content !important; } ::slotted(.customize-element):nth-child(1) { padding-top: 1em !important; }", isMenu: true, layoutFamily: KupCardFamily.FREE, ref: (el) => {
|
|
3080
3127
|
this.customizeTopPanelRef = el;
|
|
3081
|
-
} },
|
|
3128
|
+
}, sizeX: "360px", sizeY: "300px" },
|
|
3082
3129
|
density,
|
|
3083
3130
|
grid,
|
|
3084
3131
|
fontsize,
|
|
@@ -3115,16 +3162,6 @@ export class KupDataTable {
|
|
|
3115
3162
|
+this.kupManager.dynamicPosition.stop(this.dropareaRef);
|
|
3116
3163
|
}
|
|
3117
3164
|
}
|
|
3118
|
-
handleColumnRemove(column2remove) {
|
|
3119
|
-
// Get sorted column current position
|
|
3120
|
-
this.getVisibleColumns();
|
|
3121
|
-
const columnX = this.getVisibleColumns().find((col) => col.name === column2remove.name &&
|
|
3122
|
-
col.title === column2remove.title);
|
|
3123
|
-
if (columnX) {
|
|
3124
|
-
columnX.visible = false;
|
|
3125
|
-
this.triggerColumnSortRerender = !this.triggerColumnSortRerender;
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
3165
|
handleColumnGroup(column2group) {
|
|
3129
3166
|
// Get sorted column current position
|
|
3130
3167
|
this.getVisibleColumns();
|
|
@@ -3141,8 +3178,7 @@ export class KupDataTable {
|
|
|
3141
3178
|
if (!found) {
|
|
3142
3179
|
this.groups.push({ column: columnX.name, visible: true });
|
|
3143
3180
|
this.groups = [...this.groups];
|
|
3144
|
-
this.
|
|
3145
|
-
!this.triggerColumnSortRerender;
|
|
3181
|
+
this.refresh();
|
|
3146
3182
|
}
|
|
3147
3183
|
}
|
|
3148
3184
|
}
|
|
@@ -3365,8 +3401,8 @@ export class KupDataTable {
|
|
|
3365
3401
|
const column = getColumnByName(this.getColumns(), group.column);
|
|
3366
3402
|
if (column) {
|
|
3367
3403
|
const a = {
|
|
3368
|
-
|
|
3369
|
-
|
|
3404
|
+
value: column.title,
|
|
3405
|
+
id: column.name,
|
|
3370
3406
|
checked: true,
|
|
3371
3407
|
};
|
|
3372
3408
|
return a;
|
|
@@ -3480,6 +3516,9 @@ export class KupDataTable {
|
|
|
3480
3516
|
if (dynamicPositionElements.length > 0) {
|
|
3481
3517
|
this.kupManager.dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
|
|
3482
3518
|
}
|
|
3519
|
+
if (this.customizeTopPanelRef) {
|
|
3520
|
+
this.customizeTopPanelRef.remove();
|
|
3521
|
+
}
|
|
3483
3522
|
if (this.columnMenuCard) {
|
|
3484
3523
|
this.columnMenuCard.remove();
|
|
3485
3524
|
}
|
|
@@ -3577,12 +3616,12 @@ export class KupDataTable {
|
|
|
3577
3616
|
},
|
|
3578
3617
|
"data": {
|
|
3579
3618
|
"type": "unknown",
|
|
3580
|
-
"mutable":
|
|
3619
|
+
"mutable": true,
|
|
3581
3620
|
"complexType": {
|
|
3582
|
-
"original": "
|
|
3583
|
-
"resolved": "
|
|
3621
|
+
"original": "KupDataTableDataset",
|
|
3622
|
+
"resolved": "KupDataTableDataset",
|
|
3584
3623
|
"references": {
|
|
3585
|
-
"
|
|
3624
|
+
"KupDataTableDataset": {
|
|
3586
3625
|
"location": "import",
|
|
3587
3626
|
"path": "./kup-data-table-declarations"
|
|
3588
3627
|
}
|
|
@@ -3620,7 +3659,7 @@ export class KupDataTable {
|
|
|
3620
3659
|
},
|
|
3621
3660
|
"dragEnabled": {
|
|
3622
3661
|
"type": "boolean",
|
|
3623
|
-
"mutable":
|
|
3662
|
+
"mutable": true,
|
|
3624
3663
|
"complexType": {
|
|
3625
3664
|
"original": "boolean",
|
|
3626
3665
|
"resolved": "boolean",
|
|
@@ -3656,7 +3695,7 @@ export class KupDataTable {
|
|
|
3656
3695
|
},
|
|
3657
3696
|
"editableData": {
|
|
3658
3697
|
"type": "boolean",
|
|
3659
|
-
"mutable":
|
|
3698
|
+
"mutable": true,
|
|
3660
3699
|
"complexType": {
|
|
3661
3700
|
"original": "boolean",
|
|
3662
3701
|
"resolved": "boolean",
|
|
@@ -3693,6 +3732,27 @@ export class KupDataTable {
|
|
|
3693
3732
|
"reflect": false,
|
|
3694
3733
|
"defaultValue": "null"
|
|
3695
3734
|
},
|
|
3735
|
+
"enableColumnsFormula": {
|
|
3736
|
+
"type": "boolean",
|
|
3737
|
+
"mutable": false,
|
|
3738
|
+
"complexType": {
|
|
3739
|
+
"original": "boolean",
|
|
3740
|
+
"resolved": "boolean",
|
|
3741
|
+
"references": {}
|
|
3742
|
+
},
|
|
3743
|
+
"required": false,
|
|
3744
|
+
"optional": false,
|
|
3745
|
+
"docs": {
|
|
3746
|
+
"tags": [{
|
|
3747
|
+
"name": "default",
|
|
3748
|
+
"text": "true"
|
|
3749
|
+
}],
|
|
3750
|
+
"text": "Enables the choice to set formulas on columns by dragging them into different columns."
|
|
3751
|
+
},
|
|
3752
|
+
"attribute": "enable-columns-formula",
|
|
3753
|
+
"reflect": false,
|
|
3754
|
+
"defaultValue": "true"
|
|
3755
|
+
},
|
|
3696
3756
|
"enableExtraColumns": {
|
|
3697
3757
|
"type": "boolean",
|
|
3698
3758
|
"mutable": false,
|
|
@@ -3711,6 +3771,27 @@ export class KupDataTable {
|
|
|
3711
3771
|
"reflect": false,
|
|
3712
3772
|
"defaultValue": "true"
|
|
3713
3773
|
},
|
|
3774
|
+
"enableMergeColumns": {
|
|
3775
|
+
"type": "boolean",
|
|
3776
|
+
"mutable": false,
|
|
3777
|
+
"complexType": {
|
|
3778
|
+
"original": "boolean",
|
|
3779
|
+
"resolved": "boolean",
|
|
3780
|
+
"references": {}
|
|
3781
|
+
},
|
|
3782
|
+
"required": false,
|
|
3783
|
+
"optional": false,
|
|
3784
|
+
"docs": {
|
|
3785
|
+
"tags": [{
|
|
3786
|
+
"name": "default",
|
|
3787
|
+
"text": "true"
|
|
3788
|
+
}],
|
|
3789
|
+
"text": "Enables the merging of columns by dragging them into different columns."
|
|
3790
|
+
},
|
|
3791
|
+
"attribute": "enable-merge-columns",
|
|
3792
|
+
"reflect": false,
|
|
3793
|
+
"defaultValue": "true"
|
|
3794
|
+
},
|
|
3714
3795
|
"enableSortableColumns": {
|
|
3715
3796
|
"type": "boolean",
|
|
3716
3797
|
"mutable": false,
|
|
@@ -4138,15 +4219,15 @@ export class KupDataTable {
|
|
|
4138
4219
|
"type": "unknown",
|
|
4139
4220
|
"mutable": false,
|
|
4140
4221
|
"complexType": {
|
|
4141
|
-
"original": "Array<
|
|
4142
|
-
"resolved": "
|
|
4222
|
+
"original": "Array<KupDataRowAction>",
|
|
4223
|
+
"resolved": "KupDataRowAction[]",
|
|
4143
4224
|
"references": {
|
|
4144
4225
|
"Array": {
|
|
4145
4226
|
"location": "global"
|
|
4146
4227
|
},
|
|
4147
|
-
"
|
|
4228
|
+
"KupDataRowAction": {
|
|
4148
4229
|
"location": "import",
|
|
4149
|
-
"path": "
|
|
4230
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
4150
4231
|
}
|
|
4151
4232
|
}
|
|
4152
4233
|
},
|
|
@@ -4572,7 +4653,7 @@ export class KupDataTable {
|
|
|
4572
4653
|
},
|
|
4573
4654
|
"transpose": {
|
|
4574
4655
|
"type": "boolean",
|
|
4575
|
-
"mutable":
|
|
4656
|
+
"mutable": true,
|
|
4576
4657
|
"complexType": {
|
|
4577
4658
|
"original": "boolean",
|
|
4578
4659
|
"resolved": "boolean",
|
|
@@ -4599,8 +4680,7 @@ export class KupDataTable {
|
|
|
4599
4680
|
"groupState": {},
|
|
4600
4681
|
"openedTotalMenu": {},
|
|
4601
4682
|
"openedCustomSettings": {},
|
|
4602
|
-
"fontsize": {}
|
|
4603
|
-
"triggerColumnSortRerender": {}
|
|
4683
|
+
"fontsize": {}
|
|
4604
4684
|
}; }
|
|
4605
4685
|
static get events() { return [{
|
|
4606
4686
|
"method": "kupDidUnload",
|
|
@@ -4822,6 +4902,46 @@ export class KupDataTable {
|
|
|
4822
4902
|
}
|
|
4823
4903
|
}
|
|
4824
4904
|
}
|
|
4905
|
+
}, {
|
|
4906
|
+
"method": "kupColumnMove",
|
|
4907
|
+
"name": "kup-datatable-columnmove",
|
|
4908
|
+
"bubbles": true,
|
|
4909
|
+
"cancelable": false,
|
|
4910
|
+
"composed": true,
|
|
4911
|
+
"docs": {
|
|
4912
|
+
"tags": [],
|
|
4913
|
+
"text": "Event fired when columns are moved (sorted)."
|
|
4914
|
+
},
|
|
4915
|
+
"complexType": {
|
|
4916
|
+
"original": "KupDatatableColumnMoveEventPayload",
|
|
4917
|
+
"resolved": "KupDatatableColumnMoveEventPayload",
|
|
4918
|
+
"references": {
|
|
4919
|
+
"KupDatatableColumnMoveEventPayload": {
|
|
4920
|
+
"location": "import",
|
|
4921
|
+
"path": "./kup-data-table-declarations"
|
|
4922
|
+
}
|
|
4923
|
+
}
|
|
4924
|
+
}
|
|
4925
|
+
}, {
|
|
4926
|
+
"method": "kupColumnRemove",
|
|
4927
|
+
"name": "kup-datatable-columnremove",
|
|
4928
|
+
"bubbles": true,
|
|
4929
|
+
"cancelable": false,
|
|
4930
|
+
"composed": true,
|
|
4931
|
+
"docs": {
|
|
4932
|
+
"tags": [],
|
|
4933
|
+
"text": "Event fired when columns are removed (set to hidden)."
|
|
4934
|
+
},
|
|
4935
|
+
"complexType": {
|
|
4936
|
+
"original": "KupDatatableColumnRemoveEventPayload",
|
|
4937
|
+
"resolved": "KupDatatableColumnRemoveEventPayload",
|
|
4938
|
+
"references": {
|
|
4939
|
+
"KupDatatableColumnRemoveEventPayload": {
|
|
4940
|
+
"location": "import",
|
|
4941
|
+
"path": "./kup-data-table-declarations"
|
|
4942
|
+
}
|
|
4943
|
+
}
|
|
4944
|
+
}
|
|
4825
4945
|
}]; }
|
|
4826
4946
|
static get methods() { return {
|
|
4827
4947
|
"closeColumnMenu": {
|
|
@@ -4904,6 +5024,84 @@ export class KupDataTable {
|
|
|
4904
5024
|
}]
|
|
4905
5025
|
}
|
|
4906
5026
|
},
|
|
5027
|
+
"hideColumn": {
|
|
5028
|
+
"complexType": {
|
|
5029
|
+
"signature": "(column: KupDataColumn) => Promise<void>",
|
|
5030
|
+
"parameters": [{
|
|
5031
|
+
"tags": [{
|
|
5032
|
+
"name": "param",
|
|
5033
|
+
"text": "column - Column to hide."
|
|
5034
|
+
}],
|
|
5035
|
+
"text": "- Column to hide."
|
|
5036
|
+
}],
|
|
5037
|
+
"references": {
|
|
5038
|
+
"Promise": {
|
|
5039
|
+
"location": "global"
|
|
5040
|
+
},
|
|
5041
|
+
"KupDataColumn": {
|
|
5042
|
+
"location": "import",
|
|
5043
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
5044
|
+
}
|
|
5045
|
+
},
|
|
5046
|
+
"return": "Promise<void>"
|
|
5047
|
+
},
|
|
5048
|
+
"docs": {
|
|
5049
|
+
"text": "Hides the given column.",
|
|
5050
|
+
"tags": [{
|
|
5051
|
+
"name": "param",
|
|
5052
|
+
"text": "column - Column to hide."
|
|
5053
|
+
}]
|
|
5054
|
+
}
|
|
5055
|
+
},
|
|
5056
|
+
"newColumn": {
|
|
5057
|
+
"complexType": {
|
|
5058
|
+
"signature": "(type: KupDataNewColumnTypes, options: KupDataNewColumnOptions) => Promise<string | KupDataColumn>",
|
|
5059
|
+
"parameters": [{
|
|
5060
|
+
"tags": [{
|
|
5061
|
+
"name": "param",
|
|
5062
|
+
"text": "type - Type of the column creation."
|
|
5063
|
+
}],
|
|
5064
|
+
"text": "- Type of the column creation."
|
|
5065
|
+
}, {
|
|
5066
|
+
"tags": [{
|
|
5067
|
+
"name": "param",
|
|
5068
|
+
"text": "options - Options of the creation."
|
|
5069
|
+
}],
|
|
5070
|
+
"text": "- Options of the creation."
|
|
5071
|
+
}],
|
|
5072
|
+
"references": {
|
|
5073
|
+
"Promise": {
|
|
5074
|
+
"location": "global"
|
|
5075
|
+
},
|
|
5076
|
+
"KupDataColumn": {
|
|
5077
|
+
"location": "import",
|
|
5078
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
5079
|
+
},
|
|
5080
|
+
"KupDataNewColumnTypes": {
|
|
5081
|
+
"location": "import",
|
|
5082
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
5083
|
+
},
|
|
5084
|
+
"KupDataNewColumnOptions": {
|
|
5085
|
+
"location": "import",
|
|
5086
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
5087
|
+
}
|
|
5088
|
+
},
|
|
5089
|
+
"return": "Promise<string | KupDataColumn>"
|
|
5090
|
+
},
|
|
5091
|
+
"docs": {
|
|
5092
|
+
"text": "Invokes the KupData API for column creation, then refreshes the component in case no errors were catched.",
|
|
5093
|
+
"tags": [{
|
|
5094
|
+
"name": "param",
|
|
5095
|
+
"text": "type - Type of the column creation."
|
|
5096
|
+
}, {
|
|
5097
|
+
"name": "param",
|
|
5098
|
+
"text": "options - Options of the creation."
|
|
5099
|
+
}, {
|
|
5100
|
+
"name": "returns",
|
|
5101
|
+
"text": "Returns the new column created or a string containing the error message if something went wrong."
|
|
5102
|
+
}]
|
|
5103
|
+
}
|
|
5104
|
+
},
|
|
4907
5105
|
"openColumnMenu": {
|
|
4908
5106
|
"complexType": {
|
|
4909
5107
|
"signature": "(column: string) => Promise<void>",
|
|
@@ -5071,7 +5269,7 @@ export class KupDataTable {
|
|
|
5071
5269
|
},
|
|
5072
5270
|
"getInternalState": {
|
|
5073
5271
|
"complexType": {
|
|
5074
|
-
"signature": "() => Promise<{ groups: GroupObject[]; filters: GenericFilter; data:
|
|
5272
|
+
"signature": "() => Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>",
|
|
5075
5273
|
"parameters": [],
|
|
5076
5274
|
"references": {
|
|
5077
5275
|
"Promise": {
|
|
@@ -5085,12 +5283,12 @@ export class KupDataTable {
|
|
|
5085
5283
|
"location": "import",
|
|
5086
5284
|
"path": "../../utils/filters/filters-declarations"
|
|
5087
5285
|
},
|
|
5088
|
-
"
|
|
5286
|
+
"KupDataTableDataset": {
|
|
5089
5287
|
"location": "import",
|
|
5090
5288
|
"path": "./kup-data-table-declarations"
|
|
5091
5289
|
}
|
|
5092
5290
|
},
|
|
5093
|
-
"return": "Promise<{ groups: GroupObject[]; filters: GenericFilter; data:
|
|
5291
|
+
"return": "Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>"
|
|
5094
5292
|
},
|
|
5095
5293
|
"docs": {
|
|
5096
5294
|
"text": "",
|
|
@@ -5099,7 +5297,7 @@ export class KupDataTable {
|
|
|
5099
5297
|
},
|
|
5100
5298
|
"defaultSortingFunction": {
|
|
5101
5299
|
"complexType": {
|
|
5102
|
-
"signature": "(columns:
|
|
5300
|
+
"signature": "(columns: KupDataColumn[], receivingColumnIndex: number, sortedColumnIndex: number, useNewObject?: boolean) => Promise<KupDataColumn[]>",
|
|
5103
5301
|
"parameters": [{
|
|
5104
5302
|
"tags": [],
|
|
5105
5303
|
"text": ""
|
|
@@ -5117,12 +5315,12 @@ export class KupDataTable {
|
|
|
5117
5315
|
"Promise": {
|
|
5118
5316
|
"location": "global"
|
|
5119
5317
|
},
|
|
5120
|
-
"
|
|
5318
|
+
"KupDataColumn": {
|
|
5121
5319
|
"location": "import",
|
|
5122
|
-
"path": "
|
|
5320
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
5123
5321
|
}
|
|
5124
5322
|
},
|
|
5125
|
-
"return": "Promise<
|
|
5323
|
+
"return": "Promise<KupDataColumn[]>"
|
|
5126
5324
|
},
|
|
5127
5325
|
"docs": {
|
|
5128
5326
|
"text": "",
|