@sme.up/ketchup 4.3.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-dc0884a3.js → cell-utils-9b1d6563.js} +4 -4
- package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
- package/dist/cjs/{f-button-2ba74fb5.js → f-button-02a7cde4.js} +2 -2
- package/dist/cjs/{f-cell-fe60a08d.js → f-cell-4d1450a8.js} +38 -28
- package/dist/cjs/f-chip-a50b9f00.js +130 -0
- package/dist/cjs/{f-image-d3bd4e08.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} +4636 -4073
- 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-1a2688ca.js → kup-manager-5877b2ee.js} +3392 -753
- 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/{builtin → built-in}/kup-card-calendar.js +1 -1
- package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-clock.js +32 -32
- 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 +11 -2
- package/dist/collection/components/kup-card/kup-card-declarations.js +14 -14
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
- package/dist/collection/components/kup-card/kup-card.css +423 -137
- package/dist/collection/components/kup-card/kup-card.js +62 -11
- 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 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +345 -158
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -5
- 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 +2 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -5
- 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 +29 -19
- 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 -0
- 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-8f512ea9.js → cell-utils-571978d6.js} +4 -4
- package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
- package/dist/esm/{f-button-30dbcaa9.js → f-button-b3011cc2.js} +2 -2
- package/dist/esm/{f-cell-95c186c6.js → f-cell-b88b2731.js} +38 -28
- package/dist/esm/f-chip-a52489ec.js +128 -0
- package/dist/esm/{f-image-3bc8b24f.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} +4420 -3856
- 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-7fc234da.js → kup-manager-1f76a3ef.js} +3388 -753
- 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-a878016f.entry.js → p-088a886c.entry.js} +1 -1
- package/dist/ketchup/p-135cabdc.entry.js +1 -0
- package/dist/ketchup/{p-1c6178e4.entry.js → p-1c1e830f.entry.js} +1 -1
- package/dist/ketchup/{p-62816d0b.entry.js → p-29208220.entry.js} +1 -1
- package/dist/ketchup/{p-ca0ca27f.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-de83f2f6.js → p-5f52e313.js} +1 -1
- package/dist/ketchup/{p-ccda584a.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-65adc15b.entry.js → p-9d49cdb2.entry.js} +1 -1
- package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
- package/dist/ketchup/{p-dbb6998b.entry.js → p-a2b6672e.entry.js} +1 -1
- package/dist/ketchup/{p-a378ba56.entry.js → p-a4be630b.entry.js} +1 -1
- package/dist/ketchup/p-c072b270.js +1 -0
- package/dist/ketchup/{p-1baf1205.entry.js → p-c648972c.entry.js} +1 -1
- package/dist/ketchup/{p-af4a6191.entry.js → p-d67d39c0.entry.js} +1 -1
- package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
- package/dist/ketchup/{p-44375e49.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/{builtin → built-in}/kup-card-calendar.d.ts +0 -0
- package/dist/types/components/kup-card/{builtin → built-in}/kup-card-clock.d.ts +0 -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 +7 -1
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +46 -21
- package/dist/types/components/kup-card/kup-card.d.ts +9 -2
- 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 -104
- 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 +49 -27
- 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-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 +305 -186
- 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-90d95d22.js +0 -141
- package/dist/cjs/utils-0cc466b9.js +0 -1492
- package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +0 -20
- 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-c0e9c0ff.js +0 -139
- package/dist/esm/utils-6c73709d.js +0 -1470
- package/dist/ketchup/p-15321eae.js +0 -1
- package/dist/ketchup/p-5a5f2a53.js +0 -1
- package/dist/ketchup/p-61faaa38.js +0 -8
- package/dist/ketchup/p-7e23ea7c.entry.js +0 -1
- package/dist/ketchup/p-9d02a676.js +0 -134
- package/dist/ketchup/p-a96e6e32.entry.js +0 -1
- package/dist/ketchup/p-ad32821e.entry.js +0 -1
- package/dist/ketchup/p-c18c7bb0.entry.js +0 -27
- package/dist/ketchup/p-d4aa4922.js +0 -1
- package/dist/ketchup/p-ec3a3db9.js +0 -1
- package/dist/ketchup/p-ecccb3a4.entry.js +0 -45
- package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +0 -14
- 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
|
@@ -69,6 +69,9 @@ export declare class KupCard {
|
|
|
69
69
|
* Prevents multiple scaling callbacks when the card is scalable.
|
|
70
70
|
*/
|
|
71
71
|
private scalingActive;
|
|
72
|
+
private componentWrapper;
|
|
73
|
+
private colorPicker;
|
|
74
|
+
private firstColorPickerChange;
|
|
72
75
|
/**
|
|
73
76
|
* Triggered when the card is clicked.
|
|
74
77
|
*/
|
|
@@ -122,10 +125,14 @@ export declare class KupCard {
|
|
|
122
125
|
*/
|
|
123
126
|
getLayout(): VNode;
|
|
124
127
|
/**
|
|
125
|
-
* This method
|
|
126
|
-
* It will
|
|
128
|
+
* This method is invoked by the layout manager when the layout family is dialog.
|
|
129
|
+
* It will "dialogify" the card.
|
|
127
130
|
*/
|
|
128
131
|
dialog(): void;
|
|
132
|
+
/**
|
|
133
|
+
* This method is invoked by the layout manager when the layout family is built-in.
|
|
134
|
+
*/
|
|
135
|
+
builtIn(): void;
|
|
129
136
|
/**
|
|
130
137
|
* This method will trigger whenever the card's render() hook occurs or when the size changes (through KupManager), in order to manage the more complex layout families.
|
|
131
138
|
* It will also update any dynamic color handled by the selected layout.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenericObject } from '../../types/GenericTypes';
|
|
2
|
-
import { Cell } from '../kup-data-table/kup-data-table-declarations';
|
|
3
2
|
import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
|
|
3
|
+
import { KupDataCell } from '../../managers/kup-data/kup-data-declarations';
|
|
4
4
|
export declare class KupCell {
|
|
5
5
|
/**
|
|
6
6
|
* References the root HTML element of the component (<kup-text-field>).
|
|
@@ -16,7 +16,7 @@ export declare class KupCell {
|
|
|
16
16
|
* The data of the cell.
|
|
17
17
|
* @default false
|
|
18
18
|
*/
|
|
19
|
-
data:
|
|
19
|
+
data: KupDataCell;
|
|
20
20
|
/**
|
|
21
21
|
* The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.
|
|
22
22
|
*/
|
|
@@ -62,6 +62,6 @@ export declare class KupCell {
|
|
|
62
62
|
componentDidLoad(): void;
|
|
63
63
|
componentWillRender(): void;
|
|
64
64
|
componentDidRender(): void;
|
|
65
|
-
disconnectedCallback(): void;
|
|
66
65
|
render(): any;
|
|
66
|
+
disconnectedCallback(): void;
|
|
67
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getSerieDecode(serie: string, series:
|
|
3
|
-
export declare const convertColumns: (data:
|
|
1
|
+
import { KupDataColumn, KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
|
|
2
|
+
export declare function getSerieDecode(serie: string, series: KupDataColumn[]): string;
|
|
3
|
+
export declare const convertColumns: (data: KupDataDataset, { series, axis }: {
|
|
4
4
|
series: any;
|
|
5
5
|
axis: any;
|
|
6
|
-
}) =>
|
|
7
|
-
export declare const convertRows: (data: any, columns:
|
|
6
|
+
}) => KupDataColumn[];
|
|
7
|
+
export declare const convertRows: (data: any, columns: KupDataColumn[], showMarks: boolean) => any[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { KupDataColumn, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
|
|
1
2
|
import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
2
|
-
import { Column, Row } from '../kup-data-table/kup-data-table-declarations';
|
|
3
3
|
/**
|
|
4
4
|
* Props of the kup-card component.
|
|
5
5
|
* Used to export every prop in an object.
|
|
@@ -55,8 +55,8 @@ export interface ChartAxisViewWindow {
|
|
|
55
55
|
}
|
|
56
56
|
export interface KupChartClickEvent extends KupEventPayload {
|
|
57
57
|
datetime?: string;
|
|
58
|
-
column?:
|
|
59
|
-
row?:
|
|
58
|
+
column?: KupDataColumn;
|
|
59
|
+
row?: KupDataRow;
|
|
60
60
|
rowindex?: number;
|
|
61
61
|
colindex?: number;
|
|
62
62
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { ChartType, ChartAspect, ChartAxis, ChartOfflineMode, ChartSerie, ChartTitle, KupChartClickEvent, KupChartTrendlines, KupChartSort } from './kup-chart-declarations';
|
|
3
|
-
import { DataTable } from '../kup-data-table/kup-data-table-declarations';
|
|
4
3
|
import { GenericObject } from '../../types/GenericTypes';
|
|
4
|
+
import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
|
|
5
5
|
export declare class KupChart {
|
|
6
6
|
/**
|
|
7
7
|
* References the root HTML element of the component (<kup-chart>).
|
|
@@ -37,7 +37,7 @@ export declare class KupChart {
|
|
|
37
37
|
* The actual data of the chart.
|
|
38
38
|
* @default undefined
|
|
39
39
|
*/
|
|
40
|
-
data:
|
|
40
|
+
data: KupDataDataset;
|
|
41
41
|
/**
|
|
42
42
|
* Customize the hAxis.
|
|
43
43
|
* @default undefined
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
|
|
2
|
+
import { KupEventPayload } from '../../types/GenericTypes';
|
|
2
3
|
/**
|
|
3
4
|
* Props of the kup-chip component.
|
|
4
5
|
* Used to export every prop in an object.
|
|
@@ -8,7 +9,9 @@ export declare enum KupChipProps {
|
|
|
8
9
|
data = "List of elements.",
|
|
9
10
|
type = "The type of chip. Available types: input, filter, choice or empty for default."
|
|
10
11
|
}
|
|
12
|
+
export interface KupChipNode extends KupDataNode {
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
}
|
|
11
15
|
export interface KupChipEventPayload extends KupEventPayload {
|
|
12
|
-
|
|
13
|
-
value: string;
|
|
16
|
+
chip: KupChipNode;
|
|
14
17
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import { KupChipEventPayload } from './kup-chip-declarations';
|
|
2
|
+
import { FChipType } from '../../f-components/f-chip/f-chip-declarations';
|
|
3
|
+
import { KupChipEventPayload, KupChipNode } from './kup-chip-declarations';
|
|
4
4
|
import { GenericObject } from '../../types/GenericTypes';
|
|
5
|
-
import {
|
|
5
|
+
import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
|
|
6
6
|
export declare class KupChip {
|
|
7
7
|
/**
|
|
8
8
|
* References the root HTML element of the component (<kup-chip>).
|
|
@@ -18,12 +18,7 @@ export declare class KupChip {
|
|
|
18
18
|
* List of elements.
|
|
19
19
|
* @default []
|
|
20
20
|
*/
|
|
21
|
-
data:
|
|
22
|
-
/**
|
|
23
|
-
* List of elements.
|
|
24
|
-
* @default []
|
|
25
|
-
*/
|
|
26
|
-
dataNew: TreeNode[];
|
|
21
|
+
data: KupChipNode[];
|
|
27
22
|
/**
|
|
28
23
|
* The type of chip. Available types: input, filter, choice or empty for default.
|
|
29
24
|
* @default FChipType.STANDARD
|
|
@@ -49,10 +44,11 @@ export declare class KupChip {
|
|
|
49
44
|
* Triggered when the removal icon on input chips is clicked.
|
|
50
45
|
*/
|
|
51
46
|
kupIconClick: EventEmitter<KupChipEventPayload>;
|
|
52
|
-
onKupBlur(
|
|
53
|
-
onKupClick(
|
|
54
|
-
onKupFocus(
|
|
55
|
-
onKupIconClick(
|
|
47
|
+
onKupBlur(chip: KupChipNode): void;
|
|
48
|
+
onKupClick(chip: KupChipNode): void;
|
|
49
|
+
onKupFocus(chip: KupChipNode): void;
|
|
50
|
+
onKupIconClick(chip: KupChipNode): void;
|
|
51
|
+
checkDataset(newData: KupChipNode[] | KupDataDataset): void;
|
|
56
52
|
/**
|
|
57
53
|
* Used to retrieve component's props values.
|
|
58
54
|
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { KupManager } from '../../
|
|
2
|
+
import { KupManager } from '../../managers/kup-manager/kup-manager';
|
|
3
3
|
import type { GenericObject } from '../../types/GenericTypes';
|
|
4
4
|
import { KupColorPickerEventPayload } from './kup-color-picker-declarations';
|
|
5
5
|
export declare class KupColorPicker {
|
|
@@ -39,10 +39,10 @@ export declare class KupColorPicker {
|
|
|
39
39
|
* Instance of the KupManager class.
|
|
40
40
|
*/
|
|
41
41
|
kupManager: KupManager;
|
|
42
|
-
private
|
|
42
|
+
private card;
|
|
43
|
+
private clickCb;
|
|
43
44
|
private picker;
|
|
44
45
|
private textfieldEl;
|
|
45
|
-
private clickCb;
|
|
46
46
|
kupChange: EventEmitter<KupColorPickerEventPayload>;
|
|
47
47
|
/**
|
|
48
48
|
* Used to retrieve component's props values.
|
|
@@ -74,6 +74,10 @@ export declare class KupColorPicker {
|
|
|
74
74
|
*/
|
|
75
75
|
refresh(): Promise<void>;
|
|
76
76
|
private setHexValue;
|
|
77
|
+
private createCard;
|
|
78
|
+
private openPicker;
|
|
79
|
+
closePicker(): void;
|
|
80
|
+
isPickerOpened(): boolean;
|
|
77
81
|
private prepTextField;
|
|
78
82
|
componentWillLoad(): void;
|
|
79
83
|
componentDidLoad(): void;
|
|
@@ -15,4 +15,8 @@ export declare enum KupComboboxProps {
|
|
|
15
15
|
}
|
|
16
16
|
export interface KupComboboxEventPayload extends KupEventPayload {
|
|
17
17
|
value: any;
|
|
18
|
+
inputValue: any;
|
|
19
|
+
}
|
|
20
|
+
export interface KupComboboxIconClickEventPayload extends KupComboboxEventPayload {
|
|
21
|
+
open: boolean;
|
|
18
22
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import type { GenericObject } from '../../types/GenericTypes';
|
|
3
|
-
import { ItemsDisplayMode } from '../kup-list/kup-list-declarations';
|
|
4
|
-
import { KupComboboxEventPayload } from './kup-combobox-declarations';
|
|
3
|
+
import { ItemsDisplayMode, KupListEventPayload } from '../kup-list/kup-list-declarations';
|
|
4
|
+
import { KupComboboxEventPayload, KupComboboxIconClickEventPayload } from './kup-combobox-declarations';
|
|
5
5
|
export declare class KupCombobox {
|
|
6
|
+
#private;
|
|
6
7
|
rootElement: HTMLElement;
|
|
7
8
|
displayedValue: string;
|
|
8
9
|
value: string;
|
|
@@ -40,39 +41,21 @@ export declare class KupCombobox {
|
|
|
40
41
|
* When true shows the drop-down icon, for open list.
|
|
41
42
|
*/
|
|
42
43
|
showDropDownIcon: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Instance of the KupManager class.
|
|
45
|
-
*/
|
|
46
|
-
private kupManager;
|
|
47
|
-
private elStyle;
|
|
48
|
-
private listEl;
|
|
49
|
-
private textfieldWrapper;
|
|
50
|
-
private textfieldEl;
|
|
51
|
-
private clickCb;
|
|
52
44
|
kupBlur: EventEmitter<KupComboboxEventPayload>;
|
|
53
45
|
kupChange: EventEmitter<KupComboboxEventPayload>;
|
|
54
46
|
kupClick: EventEmitter<KupComboboxEventPayload>;
|
|
55
47
|
kupFocus: EventEmitter<KupComboboxEventPayload>;
|
|
56
48
|
kupInput: EventEmitter<KupComboboxEventPayload>;
|
|
57
|
-
kupIconClick: EventEmitter<
|
|
49
|
+
kupIconClick: EventEmitter<KupComboboxIconClickEventPayload>;
|
|
58
50
|
kupItemClick: EventEmitter<KupComboboxEventPayload>;
|
|
59
51
|
onKupBlur(): void;
|
|
60
|
-
onKupChange(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
target: HTMLInputElement;
|
|
68
|
-
}): void;
|
|
69
|
-
onKupInput(e: UIEvent & {
|
|
70
|
-
target: HTMLInputElement;
|
|
71
|
-
}): void;
|
|
72
|
-
onKupIconClick(event: UIEvent & {
|
|
73
|
-
target: HTMLInputElement;
|
|
74
|
-
}): void;
|
|
75
|
-
onKupItemClick(e: CustomEvent): void;
|
|
52
|
+
onKupChange(value: string): void;
|
|
53
|
+
onKupClick(): void;
|
|
54
|
+
onKupFocus(): void;
|
|
55
|
+
onKupInput(): void;
|
|
56
|
+
onKupIconClick(): void;
|
|
57
|
+
onKupItemClick(e: CustomEvent<KupListEventPayload>): void;
|
|
58
|
+
initialValueChange(newValue: string): void;
|
|
76
59
|
listenKeydown(e: KeyboardEvent): void;
|
|
77
60
|
/**
|
|
78
61
|
* Used to retrieve component's props values.
|
|
@@ -103,11 +86,6 @@ export declare class KupCombobox {
|
|
|
103
86
|
* @param {string} value - Value to be set.
|
|
104
87
|
*/
|
|
105
88
|
setValue(value: string): Promise<void>;
|
|
106
|
-
openList(): void;
|
|
107
|
-
closeList(): void;
|
|
108
|
-
isListOpened(): boolean;
|
|
109
|
-
consistencyCheck(e?: CustomEvent, valueIn?: string): void;
|
|
110
|
-
prepList(): any;
|
|
111
89
|
componentWillLoad(): void;
|
|
112
90
|
componentDidLoad(): void;
|
|
113
91
|
componentWillRender(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
|
|
3
3
|
export declare class KupDashList {
|
|
4
4
|
layout: string;
|
|
5
5
|
fontsize: string;
|
|
@@ -10,7 +10,7 @@ export declare class KupDashList {
|
|
|
10
10
|
iconColor: Array<any>;
|
|
11
11
|
valueColor: Array<any>;
|
|
12
12
|
textColor: Array<any>;
|
|
13
|
-
data:
|
|
13
|
+
data: KupDataDataset;
|
|
14
14
|
/**
|
|
15
15
|
* Instance of the KupManager class.
|
|
16
16
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { KupObj } from '../../utils/kup-objects/kup-objects-declarations';
|
|
1
|
+
import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
2
|
+
import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
|
|
4
3
|
import { KupCardEventPayload } from '../kup-card/kup-card-declarations';
|
|
4
|
+
import { KupDataCell, KupDataColumn, KupDataRow, KupDataRowAction } from '../../managers/kup-data/kup-data-declarations';
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-data-table component.
|
|
7
7
|
* Used to export every prop in an object.
|
|
@@ -15,8 +15,10 @@ export declare enum KupDataTableProps {
|
|
|
15
15
|
dropEnabled = "Enables drop.",
|
|
16
16
|
editableData = "When set to true, editable cells will be rendered using input components.",
|
|
17
17
|
emptyDataLabel = "Defines the label to show when the table is empty.",
|
|
18
|
-
|
|
18
|
+
enableColumnsFormula = "Enables the choice to set formulas on columns by dragging them into different columns.",
|
|
19
|
+
enableMergeColumns = "Enables the merging of columns by dragging them into different columns.",
|
|
19
20
|
enableExtraColumns = "Enables adding extra columns.",
|
|
21
|
+
enableSortableColumns = "Enables the sorting of columns by dragging them into different columns.",
|
|
20
22
|
expandGroups = "Expands groups when set to true.",
|
|
21
23
|
filters = "List of filters set by the user.",
|
|
22
24
|
fixedColumns = "Fixes the given number of columns so that they stay visible when horizontally scrolling the data-table. If grouping is active or the value of the prop is <= 0, this prop will have no effect. Can be combined with fixedRows.",
|
|
@@ -62,99 +64,35 @@ export declare enum KupDataTableProps {
|
|
|
62
64
|
tooltipEnabled = "Enable show tooltip",
|
|
63
65
|
totals = "Defines the current totals options."
|
|
64
66
|
}
|
|
65
|
-
export interface
|
|
66
|
-
columns?:
|
|
67
|
-
rows?:
|
|
68
|
-
}
|
|
69
|
-
export interface CellData {
|
|
70
|
-
[index: string]: any;
|
|
71
|
-
}
|
|
72
|
-
export interface Cell {
|
|
73
|
-
value: string;
|
|
74
|
-
cardID?: number;
|
|
75
|
-
cssClass?: string;
|
|
76
|
-
data?: CellData;
|
|
77
|
-
displayedValue?: string;
|
|
78
|
-
icon?: string;
|
|
79
|
-
info?: FCellInfo;
|
|
80
|
-
isEditable?: boolean;
|
|
81
|
-
obj?: KupObj;
|
|
82
|
-
shape?: FCellShapes;
|
|
83
|
-
span?: KupDatatableCellSpan;
|
|
84
|
-
style?: GenericMap;
|
|
85
|
-
styleContent?: GenericMap;
|
|
86
|
-
title?: string;
|
|
87
|
-
}
|
|
88
|
-
export interface KupDatatableCellSpan {
|
|
89
|
-
col: number;
|
|
90
|
-
row: number;
|
|
91
|
-
}
|
|
92
|
-
export interface CellsHolder {
|
|
93
|
-
[index: string]: Cell;
|
|
94
|
-
}
|
|
95
|
-
export interface Column {
|
|
96
|
-
name: string;
|
|
97
|
-
title: string;
|
|
98
|
-
size?: string;
|
|
99
|
-
visible?: boolean;
|
|
100
|
-
hideValuesRepetitions?: boolean;
|
|
101
|
-
obj?: {
|
|
102
|
-
t: string;
|
|
103
|
-
p: string;
|
|
104
|
-
k: string;
|
|
105
|
-
};
|
|
106
|
-
objs?: KupObj[];
|
|
107
|
-
shape?: FCellShapes;
|
|
108
|
-
decimals?: number;
|
|
109
|
-
icon?: string;
|
|
110
|
-
formula?: string;
|
|
111
|
-
valuesForFilter?: string[];
|
|
112
|
-
isKey?: boolean;
|
|
113
|
-
children?: ColumnChild[];
|
|
114
|
-
cssClass?: string;
|
|
115
|
-
style?: GenericMap;
|
|
67
|
+
export interface KupDataTableDataset {
|
|
68
|
+
columns?: KupDataColumn[];
|
|
69
|
+
rows?: KupDataTableRow[];
|
|
116
70
|
}
|
|
117
|
-
export interface
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
t: string;
|
|
121
|
-
p: string;
|
|
122
|
-
k: string;
|
|
123
|
-
};
|
|
124
|
-
icon?: string;
|
|
125
|
-
}
|
|
126
|
-
export interface Row extends Identifiable {
|
|
127
|
-
cells: CellsHolder;
|
|
128
|
-
actions?: Array<RowAction>;
|
|
129
|
-
group?: RowGroup;
|
|
130
|
-
readOnly?: boolean;
|
|
131
|
-
cssClass?: string;
|
|
132
|
-
name?: string;
|
|
71
|
+
export interface KupDataTableRow extends KupDataRow {
|
|
72
|
+
cells?: KupDataTableRowCells;
|
|
73
|
+
group?: KupDataTableRowGroup;
|
|
133
74
|
unselectable?: boolean;
|
|
134
75
|
}
|
|
135
|
-
export interface
|
|
136
|
-
|
|
137
|
-
parent: Row;
|
|
76
|
+
export interface KupDataTableRowGroup {
|
|
77
|
+
children: Array<KupDataTableRow>;
|
|
138
78
|
column: string;
|
|
139
79
|
columnLabel: string;
|
|
140
80
|
expanded: boolean;
|
|
81
|
+
id: string;
|
|
141
82
|
label: string;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
p: string;
|
|
146
|
-
k: string;
|
|
147
|
-
};
|
|
148
|
-
totals: {
|
|
149
|
-
[index: string]: any;
|
|
150
|
-
};
|
|
83
|
+
obj: KupObj;
|
|
84
|
+
parent: KupDataTableRow;
|
|
85
|
+
totals: GenericObject;
|
|
151
86
|
}
|
|
152
|
-
export interface
|
|
153
|
-
|
|
154
|
-
rows?: Array<Row>;
|
|
87
|
+
export interface KupDataTableRowCells {
|
|
88
|
+
[index: string]: KupDataTableCell;
|
|
155
89
|
}
|
|
156
|
-
export interface
|
|
157
|
-
|
|
90
|
+
export interface KupDataTableCell extends KupDataCell {
|
|
91
|
+
span?: KupDataTableCellSpan;
|
|
92
|
+
}
|
|
93
|
+
export interface KupDataTableCellSpan {
|
|
94
|
+
col: number;
|
|
95
|
+
row: number;
|
|
158
96
|
}
|
|
159
97
|
export interface SortObject {
|
|
160
98
|
column: string;
|
|
@@ -196,10 +134,6 @@ export interface GroupObject {
|
|
|
196
134
|
column: string;
|
|
197
135
|
visible: boolean;
|
|
198
136
|
}
|
|
199
|
-
export interface RowAction {
|
|
200
|
-
text: string;
|
|
201
|
-
icon: string;
|
|
202
|
-
}
|
|
203
137
|
export declare enum ShowGrid {
|
|
204
138
|
NONE = "None",
|
|
205
139
|
ROW = "Row",
|
|
@@ -246,11 +180,11 @@ export declare const totalMenuOpenID = "TOMEOPID";
|
|
|
246
180
|
*/
|
|
247
181
|
export interface KupDatatableEventHandlerDetails {
|
|
248
182
|
area: string;
|
|
249
|
-
cell:
|
|
250
|
-
column:
|
|
183
|
+
cell: KupDataTableCell;
|
|
184
|
+
column: KupDataColumn;
|
|
251
185
|
filterRemove: HTMLElement;
|
|
252
186
|
isGroupRow: boolean;
|
|
253
|
-
row:
|
|
187
|
+
row: KupDataRow;
|
|
254
188
|
td: HTMLElement;
|
|
255
189
|
textfield: HTMLElement;
|
|
256
190
|
th: HTMLElement;
|
|
@@ -269,16 +203,23 @@ export declare enum SelectionMode {
|
|
|
269
203
|
NONE = "none"
|
|
270
204
|
}
|
|
271
205
|
export interface KupDatatableAutoRowSelectEventPayload extends KupEventPayload {
|
|
272
|
-
selectedRow:
|
|
206
|
+
selectedRow: KupDataRow;
|
|
273
207
|
}
|
|
274
208
|
export interface KupDatatableRowSelectedEventPayload extends KupEventPayload {
|
|
275
|
-
selectedRows: Array<
|
|
276
|
-
clickedRow:
|
|
209
|
+
selectedRows: Array<KupDataRow>;
|
|
210
|
+
clickedRow: KupDataRow;
|
|
277
211
|
clickedColumn: string;
|
|
278
212
|
}
|
|
279
213
|
export interface KupDatatableClickEventPayload extends KupEventPayload {
|
|
280
214
|
details: KupDatatableEventHandlerDetails;
|
|
281
215
|
}
|
|
216
|
+
export interface KupDatatableColumnMoveEventPayload extends KupEventPayload {
|
|
217
|
+
sourceColumn: KupDataColumn;
|
|
218
|
+
targetColumn: KupDataColumn;
|
|
219
|
+
}
|
|
220
|
+
export interface KupDatatableColumnRemoveEventPayload extends KupEventPayload {
|
|
221
|
+
column: KupDataColumn;
|
|
222
|
+
}
|
|
282
223
|
export interface KupDatatableColumnMenuEventPayload extends KupEventPayload {
|
|
283
224
|
card: HTMLKupCardElement;
|
|
284
225
|
event: CustomEvent<KupCardEventPayload | KupEventPayload>;
|
|
@@ -286,18 +227,18 @@ export interface KupDatatableColumnMenuEventPayload extends KupEventPayload {
|
|
|
286
227
|
}
|
|
287
228
|
export interface KupDatatableOptionClickEventPayload extends KupEventPayload {
|
|
288
229
|
column: string;
|
|
289
|
-
row:
|
|
230
|
+
row: KupDataRow;
|
|
290
231
|
}
|
|
291
232
|
export interface KupDatatableRowActionClickEventPayload extends KupEventPayload {
|
|
292
233
|
type: 'default' | 'variable' | 'expander';
|
|
293
|
-
row:
|
|
294
|
-
action?:
|
|
234
|
+
row: KupDataRow;
|
|
235
|
+
action?: KupDataRowAction;
|
|
295
236
|
index?: number;
|
|
296
237
|
}
|
|
297
238
|
export interface KupDataTableCellButtonClickEventPayload extends KupEventPayload {
|
|
298
|
-
cell:
|
|
299
|
-
column:
|
|
300
|
-
row:
|
|
239
|
+
cell: KupDataTableCell;
|
|
240
|
+
column: KupDataColumn;
|
|
241
|
+
row: KupDataRow;
|
|
301
242
|
}
|
|
302
243
|
export interface KupDatatableLoadMoreClickEventPayload extends KupEventPayload {
|
|
303
244
|
loadItems: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SortObject, GroupObject, TotalMode, TotalsMap, KupDataTableRow } from './kup-data-table-declarations';
|
|
2
2
|
import { GenericFilter } from '../../utils/filters/filters-declarations';
|
|
3
3
|
import { FiltersColumnMenu } from '../../utils/filters/filters-column-menu';
|
|
4
4
|
import { FiltersRows } from '../../utils/filters/filters-rows';
|
|
5
|
-
|
|
5
|
+
import { KupDataColumn } from '../../managers/kup-data/kup-data-declarations';
|
|
6
|
+
export declare function sortRows(rows?: Array<KupDataTableRow>, sort?: Array<SortObject>): Array<KupDataTableRow>;
|
|
6
7
|
/**
|
|
7
8
|
* Filters the rows data of a data-table component according to the parameters
|
|
8
9
|
*
|
|
@@ -13,16 +14,12 @@ export declare function sortRows(rows?: Array<Row>, sort?: Array<SortObject>): A
|
|
|
13
14
|
* @todo This function can be improved in its speed by a refactor in which from two different cycles of execution for
|
|
14
15
|
* single filters and global filter, all controls on a single column are done in a single cycle.
|
|
15
16
|
*/
|
|
16
|
-
export declare function filterRows(rows?: Array<
|
|
17
|
-
export declare function groupRows(columns?:
|
|
18
|
-
export declare function
|
|
19
|
-
|
|
20
|
-
}): number;
|
|
21
|
-
export declare function evaluateString(f: string): any;
|
|
22
|
-
export declare function normalizeRows(columns: Array<Column>, rows: Array<Row>): Array<Row>;
|
|
23
|
-
export declare function calcTotals(rows?: Array<Row>, totals?: {
|
|
17
|
+
export declare function filterRows(rows?: Array<KupDataTableRow>, filters?: GenericFilter, globalFilter?: string, columns?: KupDataColumn[], columnFilters?: FiltersColumnMenu, filtersRows?: FiltersRows): Array<KupDataTableRow>;
|
|
18
|
+
export declare function groupRows(columns?: KupDataColumn[], rows?: KupDataTableRow[], groups?: GroupObject[], totals?: TotalsMap): Array<KupDataTableRow>;
|
|
19
|
+
export declare function normalizeRows(columns: Array<KupDataColumn>, rows: Array<KupDataTableRow>): Array<KupDataTableRow>;
|
|
20
|
+
export declare function calcTotals(rows?: Array<KupDataTableRow>, totals?: {
|
|
24
21
|
[index: string]: TotalMode;
|
|
25
22
|
}): {
|
|
26
23
|
[index: string]: number;
|
|
27
24
|
};
|
|
28
|
-
export declare function paginateRows(rows:
|
|
25
|
+
export declare function paginateRows(rows: KupDataTableRow[], currentPage: number, rowsPerPage: number, areGrouped: boolean): KupDataTableRow[];
|