@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
|
@@ -0,0 +1,937 @@
|
|
|
1
|
+
const inputTable = document.querySelector('#input-table');
|
|
2
|
+
const outputTable = document.querySelector('#output-table');
|
|
3
|
+
outputTable.autoFillMissingCells = true;
|
|
4
|
+
const props = {
|
|
5
|
+
autoFillMissingCells: false,
|
|
6
|
+
customStyle: '',
|
|
7
|
+
data: {
|
|
8
|
+
columns: [
|
|
9
|
+
{
|
|
10
|
+
isKey: false,
|
|
11
|
+
name: 'COL',
|
|
12
|
+
obj: {
|
|
13
|
+
k: '',
|
|
14
|
+
p: 'COL',
|
|
15
|
+
t: 'CN',
|
|
16
|
+
},
|
|
17
|
+
title: 'Collaboratore',
|
|
18
|
+
tooltip: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
decimals: 0,
|
|
22
|
+
isKey: false,
|
|
23
|
+
name: 'ETA',
|
|
24
|
+
obj: {
|
|
25
|
+
k: '',
|
|
26
|
+
p: '',
|
|
27
|
+
t: 'NR',
|
|
28
|
+
},
|
|
29
|
+
title: 'Età',
|
|
30
|
+
tooltip: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
decimals: 0,
|
|
34
|
+
isKey: false,
|
|
35
|
+
name: 'BIRTH',
|
|
36
|
+
obj: {
|
|
37
|
+
k: '',
|
|
38
|
+
p: '',
|
|
39
|
+
t: 'D8',
|
|
40
|
+
},
|
|
41
|
+
title: 'Anno di nascita',
|
|
42
|
+
tooltip: true,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
rows: [
|
|
46
|
+
{
|
|
47
|
+
cells: {
|
|
48
|
+
COL: {
|
|
49
|
+
cssClass: 'strong-text top-right-indicator',
|
|
50
|
+
isEditable: false,
|
|
51
|
+
obj: {
|
|
52
|
+
k: 'Marco Rosasi',
|
|
53
|
+
p: 'COL',
|
|
54
|
+
t: 'CN',
|
|
55
|
+
},
|
|
56
|
+
value: 'Marco Rosasi',
|
|
57
|
+
},
|
|
58
|
+
ETA: {
|
|
59
|
+
cssClass: ' top-right-indicator',
|
|
60
|
+
isEditable: false,
|
|
61
|
+
obj: {
|
|
62
|
+
k: '43',
|
|
63
|
+
p: '',
|
|
64
|
+
t: 'NR',
|
|
65
|
+
},
|
|
66
|
+
value: '43',
|
|
67
|
+
displayedValue: '43',
|
|
68
|
+
},
|
|
69
|
+
BIRTH: {
|
|
70
|
+
obj: {
|
|
71
|
+
k: '1900-12-12',
|
|
72
|
+
p: '',
|
|
73
|
+
t: 'D8',
|
|
74
|
+
},
|
|
75
|
+
value: '1900-12-12',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
id: '0',
|
|
79
|
+
object: '',
|
|
80
|
+
readOnly: true,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
cells: {
|
|
84
|
+
COL: {
|
|
85
|
+
cssClass: 'strong-text top-right-indicator',
|
|
86
|
+
isEditable: false,
|
|
87
|
+
obj: {
|
|
88
|
+
k: 'Alessandro Manzoni',
|
|
89
|
+
p: 'COL',
|
|
90
|
+
t: 'CN',
|
|
91
|
+
},
|
|
92
|
+
value: 'Alessandro Manzoni',
|
|
93
|
+
},
|
|
94
|
+
ETA: {
|
|
95
|
+
cssClass: ' top-right-indicator',
|
|
96
|
+
isEditable: false,
|
|
97
|
+
obj: {
|
|
98
|
+
k: '69',
|
|
99
|
+
p: '',
|
|
100
|
+
t: 'NR',
|
|
101
|
+
},
|
|
102
|
+
value: '69',
|
|
103
|
+
displayedValue: '69',
|
|
104
|
+
},
|
|
105
|
+
BIRTH: {
|
|
106
|
+
obj: {
|
|
107
|
+
k: '1921-02-01',
|
|
108
|
+
p: '',
|
|
109
|
+
t: 'D8',
|
|
110
|
+
},
|
|
111
|
+
value: '1921-02-01',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
id: '1',
|
|
115
|
+
object: '',
|
|
116
|
+
readOnly: true,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
cells: {
|
|
120
|
+
COL: {
|
|
121
|
+
cssClass: 'strong-text top-right-indicator',
|
|
122
|
+
isEditable: false,
|
|
123
|
+
obj: {
|
|
124
|
+
k: 'Giuseppe Garibaldi',
|
|
125
|
+
p: 'COL',
|
|
126
|
+
t: 'CN',
|
|
127
|
+
},
|
|
128
|
+
value: 'Giuseppe Garibaldi',
|
|
129
|
+
},
|
|
130
|
+
ETA: {
|
|
131
|
+
cssClass: ' top-right-indicator',
|
|
132
|
+
isEditable: false,
|
|
133
|
+
obj: {
|
|
134
|
+
k: '33',
|
|
135
|
+
p: '',
|
|
136
|
+
t: 'NR',
|
|
137
|
+
},
|
|
138
|
+
value: '33',
|
|
139
|
+
displayedValue: '33',
|
|
140
|
+
},
|
|
141
|
+
BIRTH: {
|
|
142
|
+
obj: {
|
|
143
|
+
k: '1932-06-30',
|
|
144
|
+
p: '',
|
|
145
|
+
t: 'D8',
|
|
146
|
+
},
|
|
147
|
+
value: '1932-06-30',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
id: '2',
|
|
151
|
+
object: '',
|
|
152
|
+
readOnly: true,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
cells: {
|
|
156
|
+
COL: {
|
|
157
|
+
cssClass: 'strong-text top-right-indicator',
|
|
158
|
+
isEditable: false,
|
|
159
|
+
obj: {
|
|
160
|
+
k: 'Ugo Foscolo',
|
|
161
|
+
p: 'COL',
|
|
162
|
+
t: 'CN',
|
|
163
|
+
},
|
|
164
|
+
value: 'Ugo Foscolo',
|
|
165
|
+
},
|
|
166
|
+
ETA: {
|
|
167
|
+
cssClass: ' top-right-indicator',
|
|
168
|
+
isEditable: false,
|
|
169
|
+
obj: {
|
|
170
|
+
k: '24',
|
|
171
|
+
p: '',
|
|
172
|
+
t: 'NR',
|
|
173
|
+
},
|
|
174
|
+
value: '24',
|
|
175
|
+
displayedValue: '24',
|
|
176
|
+
},
|
|
177
|
+
BIRTH: {
|
|
178
|
+
obj: {
|
|
179
|
+
k: '2015-01-31',
|
|
180
|
+
p: '',
|
|
181
|
+
t: 'D8',
|
|
182
|
+
},
|
|
183
|
+
value: '2015-01-31',
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
id: '3',
|
|
187
|
+
object: '',
|
|
188
|
+
readOnly: true,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
cells: {
|
|
192
|
+
COL: {
|
|
193
|
+
cssClass: 'strong-text top-right-indicator',
|
|
194
|
+
isEditable: false,
|
|
195
|
+
obj: {
|
|
196
|
+
k: 'Giovanni Pascoli',
|
|
197
|
+
p: 'COL',
|
|
198
|
+
t: 'CN',
|
|
199
|
+
},
|
|
200
|
+
value: 'Giovanni Pascoli',
|
|
201
|
+
},
|
|
202
|
+
ETA: {
|
|
203
|
+
cssClass: ' top-right-indicator',
|
|
204
|
+
isEditable: false,
|
|
205
|
+
obj: {
|
|
206
|
+
k: '59',
|
|
207
|
+
p: '',
|
|
208
|
+
t: 'NR',
|
|
209
|
+
},
|
|
210
|
+
value: '59',
|
|
211
|
+
displayedValue: '59',
|
|
212
|
+
},
|
|
213
|
+
BIRTH: {
|
|
214
|
+
obj: {
|
|
215
|
+
k: '2000-01-01',
|
|
216
|
+
p: '',
|
|
217
|
+
t: 'D8',
|
|
218
|
+
},
|
|
219
|
+
value: '2000-01-01',
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
id: '4',
|
|
223
|
+
object: '',
|
|
224
|
+
readOnly: true,
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
cells: {
|
|
228
|
+
COL: {
|
|
229
|
+
cssClass: 'strong-text top-right-indicator',
|
|
230
|
+
isEditable: false,
|
|
231
|
+
obj: {
|
|
232
|
+
k: 'Dante Alighieri',
|
|
233
|
+
p: 'COL',
|
|
234
|
+
t: 'CN',
|
|
235
|
+
},
|
|
236
|
+
value: 'Dante Alighieri',
|
|
237
|
+
},
|
|
238
|
+
ETA: {
|
|
239
|
+
cssClass: ' top-right-indicator',
|
|
240
|
+
isEditable: false,
|
|
241
|
+
obj: {
|
|
242
|
+
k: '33',
|
|
243
|
+
p: '',
|
|
244
|
+
t: 'NR',
|
|
245
|
+
},
|
|
246
|
+
value: '33',
|
|
247
|
+
displayedValue: '33',
|
|
248
|
+
},
|
|
249
|
+
BIRTH: {
|
|
250
|
+
obj: {
|
|
251
|
+
k: '1999-05-12',
|
|
252
|
+
p: '',
|
|
253
|
+
t: 'D8',
|
|
254
|
+
},
|
|
255
|
+
value: '1999-05-12',
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
id: '5',
|
|
259
|
+
object: '',
|
|
260
|
+
readOnly: true,
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
cells: {
|
|
264
|
+
COL: {
|
|
265
|
+
cssClass: 'strong-text top-right-indicator',
|
|
266
|
+
isEditable: false,
|
|
267
|
+
obj: {
|
|
268
|
+
k: 'Eugenio Montale',
|
|
269
|
+
p: 'COL',
|
|
270
|
+
t: 'CN',
|
|
271
|
+
},
|
|
272
|
+
value: 'Eugenio Montale',
|
|
273
|
+
},
|
|
274
|
+
ETA: {
|
|
275
|
+
cssClass: ' top-right-indicator',
|
|
276
|
+
isEditable: false,
|
|
277
|
+
obj: {
|
|
278
|
+
k: '51',
|
|
279
|
+
p: '',
|
|
280
|
+
t: 'NR',
|
|
281
|
+
},
|
|
282
|
+
value: '51',
|
|
283
|
+
displayedValue: '51',
|
|
284
|
+
},
|
|
285
|
+
BIRTH: {
|
|
286
|
+
obj: {
|
|
287
|
+
k: '1807-08-21',
|
|
288
|
+
p: '',
|
|
289
|
+
t: 'D8',
|
|
290
|
+
},
|
|
291
|
+
value: '1807-08-21',
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
id: '6',
|
|
295
|
+
object: '',
|
|
296
|
+
readOnly: true,
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
cells: {
|
|
300
|
+
COL: {
|
|
301
|
+
cssClass: 'strong-text top-right-indicator',
|
|
302
|
+
isEditable: false,
|
|
303
|
+
obj: {
|
|
304
|
+
k: 'Francesco Petrarca',
|
|
305
|
+
p: 'COL',
|
|
306
|
+
t: 'CN',
|
|
307
|
+
},
|
|
308
|
+
value: 'Francesco Petrarca',
|
|
309
|
+
},
|
|
310
|
+
ETA: {
|
|
311
|
+
cssClass: ' top-right-indicator',
|
|
312
|
+
isEditable: false,
|
|
313
|
+
obj: {
|
|
314
|
+
k: '27',
|
|
315
|
+
p: '',
|
|
316
|
+
t: 'NR',
|
|
317
|
+
},
|
|
318
|
+
value: '27',
|
|
319
|
+
displayedValue: '27',
|
|
320
|
+
},
|
|
321
|
+
BIRTH: {
|
|
322
|
+
obj: {
|
|
323
|
+
k: '1780-10-01',
|
|
324
|
+
p: '',
|
|
325
|
+
t: 'D8',
|
|
326
|
+
},
|
|
327
|
+
value: '1780-10-01',
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
id: '7',
|
|
331
|
+
object: '',
|
|
332
|
+
readOnly: true,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
cells: {
|
|
336
|
+
COL: {
|
|
337
|
+
cssClass: 'strong-text top-right-indicator',
|
|
338
|
+
isEditable: false,
|
|
339
|
+
obj: {
|
|
340
|
+
k: 'Eugenio Montale',
|
|
341
|
+
p: 'COL',
|
|
342
|
+
t: 'CN',
|
|
343
|
+
},
|
|
344
|
+
value: 'Eugenio Montale',
|
|
345
|
+
},
|
|
346
|
+
ETA: {
|
|
347
|
+
cssClass: ' top-right-indicator',
|
|
348
|
+
isEditable: false,
|
|
349
|
+
obj: {
|
|
350
|
+
k: '51',
|
|
351
|
+
p: '',
|
|
352
|
+
t: 'NR',
|
|
353
|
+
},
|
|
354
|
+
value: '51',
|
|
355
|
+
displayedValue: '51',
|
|
356
|
+
},
|
|
357
|
+
BIRTH: {
|
|
358
|
+
obj: {
|
|
359
|
+
k: '2021-03-12',
|
|
360
|
+
p: '',
|
|
361
|
+
t: 'D8',
|
|
362
|
+
},
|
|
363
|
+
value: '2021-03-12',
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
id: '8',
|
|
367
|
+
object: '',
|
|
368
|
+
readOnly: true,
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
cells: {
|
|
372
|
+
COL: {
|
|
373
|
+
cssClass: 'strong-text top-right-indicator',
|
|
374
|
+
isEditable: false,
|
|
375
|
+
obj: {
|
|
376
|
+
k: 'Giuseppe Ungheretti',
|
|
377
|
+
p: 'COL',
|
|
378
|
+
t: 'CN',
|
|
379
|
+
},
|
|
380
|
+
value: 'Giuseppe Ungheretti',
|
|
381
|
+
},
|
|
382
|
+
ETA: {
|
|
383
|
+
cssClass: ' top-right-indicator',
|
|
384
|
+
isEditable: false,
|
|
385
|
+
obj: {
|
|
386
|
+
k: '79',
|
|
387
|
+
p: '',
|
|
388
|
+
t: 'NR',
|
|
389
|
+
},
|
|
390
|
+
value: '79',
|
|
391
|
+
displayedValue: '79',
|
|
392
|
+
},
|
|
393
|
+
BIRTH: {
|
|
394
|
+
obj: {
|
|
395
|
+
k: '1790-11-11',
|
|
396
|
+
p: '',
|
|
397
|
+
t: 'D8',
|
|
398
|
+
},
|
|
399
|
+
value: '1790-11-11',
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
id: '9',
|
|
403
|
+
object: '',
|
|
404
|
+
readOnly: true,
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
cells: {
|
|
408
|
+
COL: {
|
|
409
|
+
cssClass: 'strong-text top-right-indicator',
|
|
410
|
+
isEditable: false,
|
|
411
|
+
obj: {
|
|
412
|
+
k: 'Umberto Saba',
|
|
413
|
+
p: 'COL',
|
|
414
|
+
t: 'CN',
|
|
415
|
+
},
|
|
416
|
+
value: 'Umberto Saba',
|
|
417
|
+
},
|
|
418
|
+
ETA: {
|
|
419
|
+
cssClass: ' top-right-indicator',
|
|
420
|
+
isEditable: false,
|
|
421
|
+
obj: {
|
|
422
|
+
k: '29',
|
|
423
|
+
p: '',
|
|
424
|
+
t: 'NR',
|
|
425
|
+
},
|
|
426
|
+
value: '29',
|
|
427
|
+
displayedValue: '29',
|
|
428
|
+
},
|
|
429
|
+
BIRTH: {
|
|
430
|
+
obj: {
|
|
431
|
+
k: '1990-12-02',
|
|
432
|
+
p: '',
|
|
433
|
+
t: 'D8',
|
|
434
|
+
},
|
|
435
|
+
value: '1990-12-02',
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
id: '10',
|
|
439
|
+
object: '',
|
|
440
|
+
readOnly: true,
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
cells: {
|
|
444
|
+
COL: {
|
|
445
|
+
cssClass: 'strong-text top-right-indicator',
|
|
446
|
+
isEditable: false,
|
|
447
|
+
obj: {
|
|
448
|
+
k: 'Salvatore Quasimodo',
|
|
449
|
+
p: 'COL',
|
|
450
|
+
t: 'CN',
|
|
451
|
+
},
|
|
452
|
+
value: 'Salvatore Quasimodo',
|
|
453
|
+
},
|
|
454
|
+
ETA: {
|
|
455
|
+
cssClass: ' top-right-indicator',
|
|
456
|
+
isEditable: false,
|
|
457
|
+
obj: {
|
|
458
|
+
k: '51',
|
|
459
|
+
p: '',
|
|
460
|
+
t: 'NR',
|
|
461
|
+
},
|
|
462
|
+
value: '51',
|
|
463
|
+
displayedValue: '51',
|
|
464
|
+
},
|
|
465
|
+
BIRTH: {
|
|
466
|
+
obj: {
|
|
467
|
+
k: '1945-03-17',
|
|
468
|
+
p: '',
|
|
469
|
+
t: 'D8',
|
|
470
|
+
},
|
|
471
|
+
value: '1945-03-17',
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
id: '11',
|
|
475
|
+
object: '',
|
|
476
|
+
readOnly: true,
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
cells: {
|
|
480
|
+
COL: {
|
|
481
|
+
cssClass: 'strong-text top-right-indicator',
|
|
482
|
+
isEditable: false,
|
|
483
|
+
obj: {
|
|
484
|
+
k: 'Giacomo Leopardi',
|
|
485
|
+
p: 'COL',
|
|
486
|
+
t: 'CN',
|
|
487
|
+
},
|
|
488
|
+
value: 'Giacomo Leopardi',
|
|
489
|
+
},
|
|
490
|
+
ETA: {
|
|
491
|
+
cssClass: ' top-right-indicator',
|
|
492
|
+
isEditable: false,
|
|
493
|
+
obj: {
|
|
494
|
+
k: '38',
|
|
495
|
+
p: '',
|
|
496
|
+
t: 'NR',
|
|
497
|
+
},
|
|
498
|
+
value: '38',
|
|
499
|
+
displayedValue: '38',
|
|
500
|
+
},
|
|
501
|
+
BIRTH: {
|
|
502
|
+
obj: {
|
|
503
|
+
k: '1968-08-15',
|
|
504
|
+
p: '',
|
|
505
|
+
t: 'D8',
|
|
506
|
+
},
|
|
507
|
+
value: '1968-08-15',
|
|
508
|
+
},
|
|
509
|
+
},
|
|
510
|
+
id: '12',
|
|
511
|
+
object: '',
|
|
512
|
+
readOnly: true,
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
cells: {
|
|
516
|
+
COL: {
|
|
517
|
+
cssClass: 'strong-text top-right-indicator',
|
|
518
|
+
isEditable: false,
|
|
519
|
+
obj: {
|
|
520
|
+
k: 'Piero Angela',
|
|
521
|
+
p: 'COL',
|
|
522
|
+
t: 'CN',
|
|
523
|
+
},
|
|
524
|
+
value: 'Piero Angela',
|
|
525
|
+
},
|
|
526
|
+
ETA: {
|
|
527
|
+
cssClass: ' top-right-indicator',
|
|
528
|
+
isEditable: false,
|
|
529
|
+
obj: {
|
|
530
|
+
k: '99',
|
|
531
|
+
p: '',
|
|
532
|
+
t: 'NR',
|
|
533
|
+
},
|
|
534
|
+
value: '99',
|
|
535
|
+
displayedValue: '99',
|
|
536
|
+
},
|
|
537
|
+
BIRTH: {
|
|
538
|
+
obj: {
|
|
539
|
+
k: '1922-02-24',
|
|
540
|
+
p: '',
|
|
541
|
+
t: 'D8',
|
|
542
|
+
},
|
|
543
|
+
value: '1922-02-24',
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
id: '13',
|
|
547
|
+
object: '',
|
|
548
|
+
readOnly: true,
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
cells: {
|
|
552
|
+
COL: {
|
|
553
|
+
cssClass: 'strong-text top-right-indicator',
|
|
554
|
+
isEditable: false,
|
|
555
|
+
obj: {
|
|
556
|
+
k: 'Giosue Carducci',
|
|
557
|
+
p: 'COL',
|
|
558
|
+
t: 'CN',
|
|
559
|
+
},
|
|
560
|
+
value: 'Giosue Carducci',
|
|
561
|
+
},
|
|
562
|
+
ETA: {
|
|
563
|
+
cssClass: ' top-right-indicator',
|
|
564
|
+
isEditable: false,
|
|
565
|
+
obj: {
|
|
566
|
+
k: '77',
|
|
567
|
+
p: '',
|
|
568
|
+
t: 'NR',
|
|
569
|
+
},
|
|
570
|
+
value: '77',
|
|
571
|
+
displayedValue: '77',
|
|
572
|
+
},
|
|
573
|
+
BIRTH: {
|
|
574
|
+
obj: {
|
|
575
|
+
k: '1850-01-30',
|
|
576
|
+
p: '',
|
|
577
|
+
t: 'D8',
|
|
578
|
+
},
|
|
579
|
+
value: '1850-01-30',
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
id: '14',
|
|
583
|
+
object: '',
|
|
584
|
+
readOnly: true,
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
},
|
|
588
|
+
density: 'dense',
|
|
589
|
+
dragEnabled: false,
|
|
590
|
+
dropEnabled: false,
|
|
591
|
+
editableData: true,
|
|
592
|
+
emptyDataLabel: 'Nessun risultato',
|
|
593
|
+
enableColumnsFormula: true,
|
|
594
|
+
enableMergeColumns: true,
|
|
595
|
+
enableExtraColumns: true,
|
|
596
|
+
enableSortableColumns: true,
|
|
597
|
+
expandGroups: false,
|
|
598
|
+
filters: {},
|
|
599
|
+
fixedColumns: 0,
|
|
600
|
+
fixedRows: 0,
|
|
601
|
+
forceOneLine: true,
|
|
602
|
+
globalFilter: false,
|
|
603
|
+
globalFilterValue: '',
|
|
604
|
+
groupLabelDisplay: 'Both',
|
|
605
|
+
groups: [],
|
|
606
|
+
headerIsPersistent: true,
|
|
607
|
+
isFocusable: false,
|
|
608
|
+
lazyLoadRows: false,
|
|
609
|
+
lineBreakCharacter: '\n',
|
|
610
|
+
loadMoreLimit: 1000,
|
|
611
|
+
loadMoreMode: 'progressive_threshold',
|
|
612
|
+
loadMoreStep: 60,
|
|
613
|
+
pageSelected: -1,
|
|
614
|
+
paginatorPos: 'Top',
|
|
615
|
+
removableColumns: true,
|
|
616
|
+
resizableColumns: true,
|
|
617
|
+
rowsPerPage: 50,
|
|
618
|
+
scrollOnHover: true,
|
|
619
|
+
showCustomization: true,
|
|
620
|
+
showFilters: true,
|
|
621
|
+
showFooter: true,
|
|
622
|
+
showGrid: 'Row',
|
|
623
|
+
showGroups: true,
|
|
624
|
+
showHeader: true,
|
|
625
|
+
showLoadMore: false,
|
|
626
|
+
showTooltipOnRightClick: true,
|
|
627
|
+
sort: [],
|
|
628
|
+
store: {},
|
|
629
|
+
sortableColumnsMutateData: true,
|
|
630
|
+
sortEnabled: true,
|
|
631
|
+
tooltipDetailTimeout: 1,
|
|
632
|
+
tooltipEnabled: true,
|
|
633
|
+
};
|
|
634
|
+
for (const key in props) {
|
|
635
|
+
inputTable[key] = props[key];
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
const newColumns = [
|
|
639
|
+
{
|
|
640
|
+
column: {
|
|
641
|
+
name: '2039',
|
|
642
|
+
title: 'Range 20-39',
|
|
643
|
+
},
|
|
644
|
+
criteria: {
|
|
645
|
+
columns: ['ETA'],
|
|
646
|
+
range: {
|
|
647
|
+
min: 20,
|
|
648
|
+
max: 39,
|
|
649
|
+
},
|
|
650
|
+
},
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
column: {
|
|
654
|
+
name: '4059',
|
|
655
|
+
title: 'Range 40-59',
|
|
656
|
+
},
|
|
657
|
+
criteria: {
|
|
658
|
+
columns: ['ETA'],
|
|
659
|
+
range: {
|
|
660
|
+
min: 40,
|
|
661
|
+
max: 59,
|
|
662
|
+
},
|
|
663
|
+
},
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
column: {
|
|
667
|
+
name: '6099',
|
|
668
|
+
title: 'Range 60-99',
|
|
669
|
+
},
|
|
670
|
+
criteria: {
|
|
671
|
+
columns: ['ETA'],
|
|
672
|
+
range: {
|
|
673
|
+
min: 60,
|
|
674
|
+
max: 99,
|
|
675
|
+
},
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
];
|
|
679
|
+
|
|
680
|
+
const newColumnsString = [
|
|
681
|
+
{
|
|
682
|
+
column: {
|
|
683
|
+
name: 'AC',
|
|
684
|
+
title: 'Range A-C',
|
|
685
|
+
},
|
|
686
|
+
criteria: {
|
|
687
|
+
columns: ['COL'],
|
|
688
|
+
range: {
|
|
689
|
+
min: 'A',
|
|
690
|
+
max: 'C',
|
|
691
|
+
},
|
|
692
|
+
},
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
column: {
|
|
696
|
+
name: 'DP',
|
|
697
|
+
title: 'Range D-P',
|
|
698
|
+
},
|
|
699
|
+
criteria: {
|
|
700
|
+
columns: ['COL'],
|
|
701
|
+
range: {
|
|
702
|
+
min: 'D',
|
|
703
|
+
max: 'P',
|
|
704
|
+
},
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
column: {
|
|
709
|
+
name: 'QZ',
|
|
710
|
+
title: 'Range Q-Z',
|
|
711
|
+
},
|
|
712
|
+
criteria: {
|
|
713
|
+
columns: ['COL'],
|
|
714
|
+
range: {
|
|
715
|
+
min: 'Q',
|
|
716
|
+
max: 'Z',
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
},
|
|
720
|
+
];
|
|
721
|
+
|
|
722
|
+
const newColumnsDate = [
|
|
723
|
+
{
|
|
724
|
+
column: {
|
|
725
|
+
name: '17001900',
|
|
726
|
+
title: 'Range 1700-1900',
|
|
727
|
+
},
|
|
728
|
+
criteria: {
|
|
729
|
+
columns: ['BIRTH'],
|
|
730
|
+
range: {
|
|
731
|
+
min: '1700-01-01',
|
|
732
|
+
max: '1900-12-31',
|
|
733
|
+
},
|
|
734
|
+
},
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
column: {
|
|
738
|
+
name: '19011950',
|
|
739
|
+
title: 'Range 1901-1950',
|
|
740
|
+
},
|
|
741
|
+
criteria: {
|
|
742
|
+
columns: ['BIRTH'],
|
|
743
|
+
range: {
|
|
744
|
+
min: '1901-01-01',
|
|
745
|
+
max: '1950-12-31',
|
|
746
|
+
},
|
|
747
|
+
},
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
column: {
|
|
751
|
+
name: '19512022',
|
|
752
|
+
title: 'Range 1951-2022',
|
|
753
|
+
},
|
|
754
|
+
criteria: {
|
|
755
|
+
columns: ['BIRTH'],
|
|
756
|
+
range: {
|
|
757
|
+
min: '1951-01-01',
|
|
758
|
+
max: '2022-12-31',
|
|
759
|
+
},
|
|
760
|
+
},
|
|
761
|
+
},
|
|
762
|
+
];
|
|
763
|
+
|
|
764
|
+
const resultingColumn = {
|
|
765
|
+
name: '2099',
|
|
766
|
+
title: 'Range 20-99',
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
const resultingColumnString = {
|
|
770
|
+
name: 'AZ',
|
|
771
|
+
title: 'Range A-Z',
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
const resultingColumnDate = {
|
|
775
|
+
name: '17002022',
|
|
776
|
+
title: 'Range 1700-2022',
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
const newButtons = document.querySelectorAll('[label="New"]');
|
|
780
|
+
const replaceButtons = document.querySelectorAll('[label="Replace"]');
|
|
781
|
+
const mergeButtons = document.querySelectorAll('[label="Merge"]');
|
|
782
|
+
const distinctButtons = document.querySelectorAll('[label="Distinct"]');
|
|
783
|
+
const allInOneButtons = document.querySelectorAll('[label="All in one"]');
|
|
784
|
+
const allInOneValuesButtons = document.querySelectorAll(
|
|
785
|
+
'[label="All in one (+ values column)"]'
|
|
786
|
+
);
|
|
787
|
+
const gaussianButtons = document.querySelectorAll('[label="Gaussian"]');
|
|
788
|
+
|
|
789
|
+
const echart = document.querySelector('kup-echart');
|
|
790
|
+
echart.types = ['Gaussian'];
|
|
791
|
+
|
|
792
|
+
newButtons.forEach((but, index) => {
|
|
793
|
+
but.addEventListener('kup-button-click', () => newEvent(index));
|
|
794
|
+
});
|
|
795
|
+
replaceButtons.forEach((but, index) => {
|
|
796
|
+
but.addEventListener('kup-button-click', () => replaceEvent(index));
|
|
797
|
+
});
|
|
798
|
+
mergeButtons.forEach((but, index) => {
|
|
799
|
+
but.addEventListener('kup-button-click', () => mergeEvent(index));
|
|
800
|
+
});
|
|
801
|
+
distinctButtons.forEach((but, index) => {
|
|
802
|
+
but.addEventListener('kup-button-click', () => distinctEvent(index));
|
|
803
|
+
});
|
|
804
|
+
allInOneButtons.forEach((but, index) => {
|
|
805
|
+
but.addEventListener('kup-button-click', () => allInOneEvent(index));
|
|
806
|
+
});
|
|
807
|
+
allInOneValuesButtons.forEach((but, index) => {
|
|
808
|
+
but.addEventListener('kup-button-click', () =>
|
|
809
|
+
allInOneEvent(index, {
|
|
810
|
+
name: 'VALUES',
|
|
811
|
+
title: 'Values',
|
|
812
|
+
})
|
|
813
|
+
);
|
|
814
|
+
});
|
|
815
|
+
gaussianButtons.forEach((but, index) => {
|
|
816
|
+
but.addEventListener('kup-button-click', () => gaussianEvent(index));
|
|
817
|
+
});
|
|
818
|
+
|
|
819
|
+
function newEvent(index) {
|
|
820
|
+
outputTable.data = null;
|
|
821
|
+
const dataset = { ...inputTable.data };
|
|
822
|
+
outputTable.data = kupManager.data.new(
|
|
823
|
+
dataset,
|
|
824
|
+
index === 0
|
|
825
|
+
? newColumns
|
|
826
|
+
: index === 1
|
|
827
|
+
? newColumnsString
|
|
828
|
+
: newColumnsDate
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
function replaceEvent(index) {
|
|
833
|
+
newEvent(index);
|
|
834
|
+
const newDataset = { ...outputTable.data };
|
|
835
|
+
if (index === 0) {
|
|
836
|
+
kupManager.data.cell.replace(newDataset, { value: 'From 20 to 39' }, [
|
|
837
|
+
'2039',
|
|
838
|
+
]);
|
|
839
|
+
kupManager.data.cell.replace(newDataset, { value: 'From 40 to 59' }, [
|
|
840
|
+
'4059',
|
|
841
|
+
]);
|
|
842
|
+
kupManager.data.cell.replace(newDataset, { value: 'From 60 to 99' }, [
|
|
843
|
+
'6099',
|
|
844
|
+
]);
|
|
845
|
+
} else if (index === 1) {
|
|
846
|
+
kupManager.data.cell.replace(newDataset, { value: 'From A to C' }, [
|
|
847
|
+
'AC',
|
|
848
|
+
]);
|
|
849
|
+
kupManager.data.cell.replace(newDataset, { value: 'From D to P' }, [
|
|
850
|
+
'DP',
|
|
851
|
+
]);
|
|
852
|
+
kupManager.data.cell.replace(newDataset, { value: 'From Q to Z' }, [
|
|
853
|
+
'QZ',
|
|
854
|
+
]);
|
|
855
|
+
} else if (index === 2) {
|
|
856
|
+
kupManager.data.cell.replace(
|
|
857
|
+
newDataset,
|
|
858
|
+
{ value: 'From 1700 to 1900' },
|
|
859
|
+
['17001900']
|
|
860
|
+
);
|
|
861
|
+
kupManager.data.cell.replace(
|
|
862
|
+
newDataset,
|
|
863
|
+
{ value: 'From 1901 to 1950' },
|
|
864
|
+
['19011950']
|
|
865
|
+
);
|
|
866
|
+
kupManager.data.cell.replace(
|
|
867
|
+
newDataset,
|
|
868
|
+
{ value: 'From 1951 to 2022' },
|
|
869
|
+
['19512022']
|
|
870
|
+
);
|
|
871
|
+
}
|
|
872
|
+
outputTable.data = newDataset;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
function mergeEvent(index) {
|
|
876
|
+
replaceEvent(index);
|
|
877
|
+
const newDataset = { ...outputTable.data };
|
|
878
|
+
if (index === 0) {
|
|
879
|
+
kupManager.data.column.new(newDataset, 'merge', {
|
|
880
|
+
columns: ['2039', '4059', '6099'],
|
|
881
|
+
newColumn: resultingColumn,
|
|
882
|
+
});
|
|
883
|
+
} else if (index === 1) {
|
|
884
|
+
kupManager.data.column.new(newDataset, 'merge', {
|
|
885
|
+
columns: ['AC', 'DP', 'QZ'],
|
|
886
|
+
newColumn: resultingColumnString,
|
|
887
|
+
});
|
|
888
|
+
} else if (index === 2) {
|
|
889
|
+
kupManager.data.column.new(newDataset, 'merge', {
|
|
890
|
+
columns: ['17001900', '19011950', '19512022'],
|
|
891
|
+
newColumn: resultingColumnDate,
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
outputTable.data = newDataset;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
function distinctEvent(index) {
|
|
898
|
+
mergeEvent(index);
|
|
899
|
+
const newDataset = kupManager.data.distinct({
|
|
900
|
+
...outputTable.data,
|
|
901
|
+
});
|
|
902
|
+
outputTable.data = newDataset;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
function allInOneEvent(index, titleColumn) {
|
|
906
|
+
outputTable.data = null;
|
|
907
|
+
const dataset = { ...inputTable.data };
|
|
908
|
+
let newDataset;
|
|
909
|
+
if (index === 0) {
|
|
910
|
+
newDataset = kupManager.data.rangedDistinct(
|
|
911
|
+
dataset,
|
|
912
|
+
newColumns,
|
|
913
|
+
resultingColumn,
|
|
914
|
+
titleColumn
|
|
915
|
+
);
|
|
916
|
+
} else if (index === 1) {
|
|
917
|
+
newDataset = kupManager.data.rangedDistinct(
|
|
918
|
+
dataset,
|
|
919
|
+
newColumnsString,
|
|
920
|
+
resultingColumnString,
|
|
921
|
+
titleColumn
|
|
922
|
+
);
|
|
923
|
+
} else if (index === 2) {
|
|
924
|
+
newDataset = kupManager.data.rangedDistinct(
|
|
925
|
+
dataset,
|
|
926
|
+
newColumnsDate,
|
|
927
|
+
resultingColumnDate,
|
|
928
|
+
titleColumn
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
outputTable.data = newDataset;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
function gaussianEvent(index) {
|
|
935
|
+
distinctEvent(index);
|
|
936
|
+
echart.data = outputTable.data;
|
|
937
|
+
}
|