@sme.up/ketchup 4.2.0-SNAPSHOT → 5.1.0-SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -3
- package/dist/cjs/{cell-utils-1d44a3f0.js → cell-utils-9b1d6563.js} +4 -4
- package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
- package/dist/cjs/{f-button-a5788453.js → f-button-02a7cde4.js} +2 -2
- package/dist/cjs/{f-cell-eba6f39e.js → f-cell-4d1450a8.js} +62 -48
- package/dist/cjs/f-chip-a50b9f00.js +130 -0
- package/dist/cjs/{f-image-e03842eb.js → f-image-db55ac49.js} +3 -3
- package/dist/cjs/{index-0416afab.js → index-ab119fad.js} +23 -0
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -7
- package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +5759 -4805
- package/dist/cjs/kup-calendar.cjs.entry.js +626 -359
- package/dist/cjs/kup-cell.cjs.entry.js +15 -13
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +8 -7
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +93039 -0
- package/dist/cjs/kup-field.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-lazy.cjs.entry.js +22 -5
- package/dist/cjs/kup-magic-box.cjs.entry.js +95 -42
- package/dist/cjs/{kup-manager-75f1a2cd.js → kup-manager-5877b2ee.js} +3395 -737
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tslib.es6-4360c099.js → tslib.es6-0ee02c67.js} +13 -0
- package/dist/cjs/utils-1b5c8c70.js +482 -0
- package/dist/collection/assets/calendar.js +46 -1
- package/dist/collection/assets/card.js +15 -15
- package/dist/collection/assets/data-table.js +18 -6
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/kupdata.js +937 -0
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/kup-accordion/kup-accordion.css +0 -1
- package/dist/collection/components/kup-accordion/kup-accordion.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +148 -52
- package/dist/collection/components/kup-badge/kup-badge.js +2 -2
- package/dist/collection/components/kup-box/kup-box.js +31 -17
- package/dist/collection/components/kup-button/kup-button.js +2 -2
- package/dist/collection/components/kup-button-list/kup-button-list.js +26 -8
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +14 -8
- package/dist/collection/components/kup-calendar/kup-calendar.css +2 -2
- package/dist/collection/components/kup-calendar/kup-calendar.js +185 -315
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +38 -0
- package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +458 -0
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +321 -0
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +167 -0
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +1 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +2 -2
- package/dist/collection/components/kup-card/free/kup-card-free.js +22 -0
- package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
- package/dist/collection/components/kup-card/kup-card.css +793 -8
- package/dist/collection/components/kup-card/kup-card.js +75 -15
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +1 -1
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +18 -5
- package/dist/collection/components/kup-cell/kup-cell.js +15 -13
- package/dist/collection/components/kup-chart/kup-chart-builder.js +3 -4
- package/dist/collection/components/kup-chart/kup-chart.js +7 -7
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.css +1 -0
- package/dist/collection/components/kup-chip/kup-chip.js +51 -92
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +1 -265
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +93 -48
- package/dist/collection/components/kup-combobox/kup-combobox.js +148 -115
- package/dist/collection/components/kup-dash/kup-dash.js +1 -1
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +5 -5
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +28 -56
- package/dist/collection/components/kup-data-table/kup-data-table.css +4 -38
- package/dist/collection/components/kup-data-table/kup-data-table.js +366 -168
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +0 -82
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +41 -312
- package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
- package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
- package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
- package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
- package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
- package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
- package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
- package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
- package/dist/collection/components/kup-echart/kup-echart.css +13 -0
- package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
- package/dist/collection/components/kup-field/kup-field.js +2 -2
- package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
- package/dist/collection/components/kup-grid/kup-grid.css +2 -2
- package/dist/collection/components/kup-grid/kup-grid.js +6 -5
- package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
- package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
- package/dist/collection/components/kup-image/kup-image.js +3 -3
- package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
- package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
- package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
- package/dist/collection/components/kup-list/kup-list.css +3 -0
- package/dist/collection/components/kup-list/kup-list.js +219 -288
- package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-radio/kup-radio.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
- package/dist/collection/components/kup-state/mock-store.js +1 -1
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
- package/dist/collection/components/kup-text-field/kup-text-field.css +3 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +1 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +57 -244
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
- package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
- package/dist/collection/components/kup-tree/kup-tree.css +2 -0
- package/dist/collection/components/kup-tree/kup-tree.js +145 -70
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
- package/dist/collection/f-components/f-cell/f-cell.js +53 -39
- package/dist/collection/f-components/f-chip/f-chip.js +76 -87
- package/dist/collection/f-components/f-image/f-image.js +2 -2
- package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
- package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
- package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
- package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
- package/dist/collection/managers/kup-data/kup-data.js +382 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
- package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
- package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
- package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
- package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
- package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
- package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
- package/dist/collection/managers/kup-math/kup-math.js +151 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -1
- package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
- package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
- package/dist/collection/types/GenericTypes.js +48 -1
- package/dist/collection/utils/cell-utils.js +3 -4
- package/dist/collection/utils/filters/filters-column-menu.js +7 -7
- package/dist/collection/utils/filters/filters-rows.js +2 -2
- package/dist/collection/utils/filters/filters-tree-items.js +12 -12
- package/dist/collection/utils/filters/filters.js +3 -2
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
- package/dist/collection/utils/utils.js +4 -4
- package/dist/esm/{cell-utils-9a2914fc.js → cell-utils-571978d6.js} +4 -4
- package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
- package/dist/esm/{f-button-55a9ed88.js → f-button-b3011cc2.js} +2 -2
- package/dist/esm/{f-cell-ac520cb2.js → f-cell-b88b2731.js} +62 -48
- package/dist/esm/f-chip-a52489ec.js +128 -0
- package/dist/esm/{f-image-70ca9dfe.js → f-image-5e5ed7e2.js} +3 -3
- package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +7 -7
- package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +5570 -4615
- package/dist/esm/kup-calendar.entry.js +626 -359
- package/dist/esm/kup-cell.entry.js +15 -13
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +8 -7
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +93035 -0
- package/dist/esm/kup-field.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-lazy.entry.js +22 -5
- package/dist/esm/kup-magic-box.entry.js +95 -42
- package/dist/esm/{kup-manager-bba32828.js → kup-manager-1f76a3ef.js} +3391 -737
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
- package/dist/esm/utils-93ae800f.js +461 -0
- package/dist/ketchup/assets/maps/africa.json +6116 -0
- package/dist/ketchup/assets/maps/america.json +5416 -0
- package/dist/ketchup/assets/maps/asia.json +6053 -0
- package/dist/ketchup/assets/maps/europe.json +5051 -0
- package/dist/ketchup/assets/maps/italy.json +3562 -0
- package/dist/ketchup/assets/maps/oceania.json +1069 -0
- package/dist/ketchup/assets/maps/world.json +23685 -0
- package/dist/ketchup/assets/svg/science.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-74259992.entry.js → p-088a886c.entry.js} +1 -1
- package/dist/ketchup/p-135cabdc.entry.js +1 -0
- package/dist/ketchup/p-1c1e830f.entry.js +1 -0
- package/dist/ketchup/{p-69a705ae.entry.js → p-29208220.entry.js} +1 -1
- package/dist/ketchup/{p-62208488.entry.js → p-2b9f2019.entry.js} +1 -1
- package/dist/ketchup/p-52d0582a.js +1 -0
- package/dist/ketchup/p-554bd5f0.entry.js +39 -0
- package/dist/ketchup/{p-06c209a5.js → p-5f52e313.js} +1 -1
- package/dist/ketchup/{p-e90934b5.entry.js → p-65449480.entry.js} +1 -1
- package/dist/ketchup/p-79cf3874.entry.js +1 -0
- package/dist/ketchup/p-7a85cda4.js +1 -0
- package/dist/ketchup/p-84cce555.entry.js +27 -0
- package/dist/ketchup/p-8c44c3b9.js +135 -0
- package/dist/ketchup/{p-ff7d590e.entry.js → p-9d49cdb2.entry.js} +1 -1
- package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
- package/dist/ketchup/{p-40df35de.entry.js → p-a2b6672e.entry.js} +1 -1
- package/dist/ketchup/{p-5faf7715.entry.js → p-a4be630b.entry.js} +1 -1
- package/dist/ketchup/p-c072b270.js +1 -0
- package/dist/ketchup/{p-daf03877.entry.js → p-c648972c.entry.js} +1 -1
- package/dist/ketchup/{p-03ae1be9.entry.js → p-d67d39c0.entry.js} +1 -1
- package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
- package/dist/ketchup/{p-52038ccb.js → p-da387e0e.js} +1 -1
- package/dist/ketchup/p-e5c9ec9e.js +1 -0
- package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
- package/dist/ketchup/p-ef539eda.js +9 -0
- package/dist/ketchup/p-f316234c.entry.js +143 -0
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
- package/dist/types/components/kup-box/kup-box.d.ts +4 -4
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
- package/dist/types/components/kup-card/built-in/kup-card-calendar.d.ts +2 -0
- package/dist/types/components/kup-card/built-in/kup-card-clock.d.ts +2 -0
- package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +14 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +100 -1
- package/dist/types/components/kup-card/kup-card.d.ts +12 -5
- package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
- package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
- package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -109
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +50 -29
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +0 -10
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
- package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
- package/dist/types/components/kup-list/kup-list.d.ts +4 -35
- package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +2 -9
- package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
- package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
- package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
- package/dist/types/components.d.ts +307 -188
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
- package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
- package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
- package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
- package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
- package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
- package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
- package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
- package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
- package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
- package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
- package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
- package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/types/GenericTypes.d.ts +53 -6
- package/dist/types/utils/cell-utils.d.ts +7 -6
- package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
- package/dist/types/utils/filters/filters-rows.d.ts +10 -10
- package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
- package/dist/types/utils/helpers.d.ts +2 -2
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
- package/dist/types/utils/utils.d.ts +4 -2
- package/package.json +31 -26
- package/dist/cjs/f-chip-ce69b7d2.js +0 -141
- package/dist/cjs/utils-b3ec89fe.js +0 -1550
- package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
- package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
- package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
- package/dist/esm/f-chip-babf1740.js +0 -139
- package/dist/esm/utils-cfcbe33f.js +0 -1526
- package/dist/ketchup/p-1ce9a037.js +0 -1
- package/dist/ketchup/p-1e2c3497.js +0 -1
- package/dist/ketchup/p-4748be4b.js +0 -8
- package/dist/ketchup/p-5db41fae.entry.js +0 -45
- package/dist/ketchup/p-6cc8264d.entry.js +0 -1
- package/dist/ketchup/p-756aa8b1.entry.js +0 -1
- package/dist/ketchup/p-9d02a676.js +0 -134
- package/dist/ketchup/p-a7687c0e.entry.js +0 -27
- package/dist/ketchup/p-d58dbf0e.js +0 -1
- package/dist/ketchup/p-d6ce1ac6.entry.js +0 -1
- package/dist/ketchup/p-ea387b49.entry.js +0 -1
- package/dist/ketchup/p-f6bff949.js +0 -1
- package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
- package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, getAssetPath, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
|
|
2
2
|
import { TotalLabel, TotalMode, } from './../kup-data-table/kup-data-table-declarations';
|
|
3
|
-
import { KupTreeProps,
|
|
3
|
+
import { KupTreeProps, treeMainColumnName, KupTreeExpansionMode, } from './kup-tree-declarations';
|
|
4
4
|
import { MDCRipple } from '@material/ripple';
|
|
5
|
-
import { kupManagerInstance, } from '../../
|
|
5
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
6
6
|
import { calcTotals, normalizeRows, } from '../kup-data-table/kup-data-table-helper';
|
|
7
7
|
import { KupTreeState } from './kup-tree-state';
|
|
8
8
|
import { setTooltip, unsetTooltip } from '../../utils/helpers';
|
|
@@ -12,13 +12,14 @@ import { KupColumnMenu } from '../../utils/kup-column-menu/kup-column-menu';
|
|
|
12
12
|
import { FiltersColumnMenu } from '../../utils/filters/filters-column-menu';
|
|
13
13
|
import { KupGlobalFilterMode, } from '../../utils/filters/filters-declarations';
|
|
14
14
|
import { FiltersTreeItems } from '../../utils/filters/filters-tree-items';
|
|
15
|
-
import { kupDynamicPositionAttribute, } from '../../
|
|
16
|
-
import { KupLanguageGeneric, KupLanguageSearch, KupLanguageTotals, } from '../../
|
|
15
|
+
import { kupDynamicPositionAttribute, } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
16
|
+
import { KupLanguageGeneric, KupLanguageSearch, KupLanguageTotals, } from '../../managers/kup-language/kup-language-declarations';
|
|
17
17
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
18
|
-
import { KupThemeIconValues } from '../../
|
|
19
|
-
import { KupPointerEventTypes } from '../../
|
|
18
|
+
import { KupThemeIconValues } from '../../managers/kup-theme/kup-theme-declarations';
|
|
19
|
+
import { KupPointerEventTypes } from '../../managers/kup-interact/kup-interact-declarations';
|
|
20
20
|
import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
|
|
21
21
|
import { FCell } from '../../f-components/f-cell/f-cell';
|
|
22
|
+
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
22
23
|
export class KupTree {
|
|
23
24
|
constructor() {
|
|
24
25
|
/*-------------------------------------------------*/
|
|
@@ -253,6 +254,9 @@ export class KupTree {
|
|
|
253
254
|
/* W a t c h e r s */
|
|
254
255
|
/*-------------------------------------------------*/
|
|
255
256
|
enrichDataWhenChanged(newData, oldData) {
|
|
257
|
+
if (!newData) {
|
|
258
|
+
newData = [];
|
|
259
|
+
}
|
|
256
260
|
if (newData !== oldData) {
|
|
257
261
|
this.refreshStructureState();
|
|
258
262
|
}
|
|
@@ -299,7 +303,7 @@ export class KupTree {
|
|
|
299
303
|
async collapseAll() {
|
|
300
304
|
if (!this.useDynamicExpansion) {
|
|
301
305
|
for (let index = 0; index < this.data.length; index++) {
|
|
302
|
-
this.data[index]
|
|
306
|
+
this.data[index].isExpanded = false;
|
|
303
307
|
this.handleChildren(this.data[index], false);
|
|
304
308
|
}
|
|
305
309
|
}
|
|
@@ -318,7 +322,7 @@ export class KupTree {
|
|
|
318
322
|
async expandAll() {
|
|
319
323
|
if (!this.useDynamicExpansion) {
|
|
320
324
|
for (let index = 0; index < this.data.length; index++) {
|
|
321
|
-
this.data[index]
|
|
325
|
+
this.data[index].isExpanded = true;
|
|
322
326
|
this.handleChildren(this.data[index], true);
|
|
323
327
|
}
|
|
324
328
|
}
|
|
@@ -339,6 +343,19 @@ export class KupTree {
|
|
|
339
343
|
async getProps(descriptions) {
|
|
340
344
|
return getProps(this, KupTreeProps, descriptions);
|
|
341
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* Hides the given column.
|
|
348
|
+
* @param {KupDataColumn} column - Column to hide.
|
|
349
|
+
*/
|
|
350
|
+
async hideColumn(column) {
|
|
351
|
+
this.kupManager.data.column.hide(this.columns, [column.name]);
|
|
352
|
+
this.kupColumnRemove.emit({
|
|
353
|
+
comp: this,
|
|
354
|
+
id: this.rootElement.id,
|
|
355
|
+
column: column,
|
|
356
|
+
});
|
|
357
|
+
this.refresh();
|
|
358
|
+
}
|
|
342
359
|
/**
|
|
343
360
|
* Opens the column menu of the given column.
|
|
344
361
|
* @param {string} column - Name of the column.
|
|
@@ -474,10 +491,10 @@ export class KupTree {
|
|
|
474
491
|
}
|
|
475
492
|
}
|
|
476
493
|
expandCollapseNode(treeNode, expandNode = false) {
|
|
477
|
-
this.filtersTreeItemsInstance.expandCollapseNode(treeNode, expandNode
|
|
494
|
+
this.filtersTreeItemsInstance.expandCollapseNode(treeNode, expandNode);
|
|
478
495
|
}
|
|
479
496
|
expandCollapseAllNodes(treeNode, expandNode = false) {
|
|
480
|
-
this.filtersTreeItemsInstance.expandCollapseAllNodes(treeNode, expandNode
|
|
497
|
+
this.filtersTreeItemsInstance.expandCollapseAllNodes(treeNode, expandNode);
|
|
481
498
|
}
|
|
482
499
|
getColumns() {
|
|
483
500
|
return this.columns ? this.columns : [{ title: '', name: '' }];
|
|
@@ -640,13 +657,12 @@ export class KupTree {
|
|
|
640
657
|
// There are already children set in this TreeNode -> expand or collapse node and emit appropriate event
|
|
641
658
|
if (treeNodeData.children && treeNodeData.children.length) {
|
|
642
659
|
// Updates expanded state and force rerender
|
|
643
|
-
treeNodeData
|
|
644
|
-
!treeNodeData[treeExpandedPropName];
|
|
660
|
+
treeNodeData.isExpanded = !treeNodeData.isExpanded;
|
|
645
661
|
if (ctrlKey) {
|
|
646
|
-
this.handleChildren(treeNodeData, treeNodeData
|
|
662
|
+
this.handleChildren(treeNodeData, treeNodeData.isExpanded);
|
|
647
663
|
}
|
|
648
664
|
this.refresh();
|
|
649
|
-
if (treeNodeData
|
|
665
|
+
if (treeNodeData.isExpanded) {
|
|
650
666
|
// TreeNode is now expanded -> Fires expanded event
|
|
651
667
|
this.kupTreeNodeExpand.emit({
|
|
652
668
|
comp: this,
|
|
@@ -684,8 +700,7 @@ export class KupTree {
|
|
|
684
700
|
.then((childrenTreeNodes) => {
|
|
685
701
|
// Children returned successfully
|
|
686
702
|
treeNodeData.children = childrenTreeNodes;
|
|
687
|
-
treeNodeData
|
|
688
|
-
!treeNodeData[treeExpandedPropName];
|
|
703
|
+
treeNodeData.isExpanded = !treeNodeData.isExpanded;
|
|
689
704
|
this.refresh();
|
|
690
705
|
// TreeNode is now expanded -> Fires expanded event
|
|
691
706
|
this.kupTreeNodeExpand.emit({
|
|
@@ -711,8 +726,7 @@ export class KupTree {
|
|
|
711
726
|
usesDynamicExpansion: true,
|
|
712
727
|
dynamicExpansionRequireChildren: true,
|
|
713
728
|
});
|
|
714
|
-
treeNodeData
|
|
715
|
-
!treeNodeData[treeExpandedPropName];
|
|
729
|
+
treeNodeData.isExpanded = !treeNodeData.isExpanded;
|
|
716
730
|
}
|
|
717
731
|
}
|
|
718
732
|
}
|
|
@@ -724,7 +738,7 @@ export class KupTree {
|
|
|
724
738
|
for (let index = 0; index < TreeNode.children.length; index++) {
|
|
725
739
|
let node = TreeNode.children[index];
|
|
726
740
|
if (!node.disabled) {
|
|
727
|
-
node
|
|
741
|
+
node.isExpanded = expand;
|
|
728
742
|
if (node.children) {
|
|
729
743
|
this.handleChildren(node, expand);
|
|
730
744
|
}
|
|
@@ -767,7 +781,7 @@ export class KupTree {
|
|
|
767
781
|
return this.data ? this.data : [];
|
|
768
782
|
}
|
|
769
783
|
filterNodes() {
|
|
770
|
-
let items = this.filtersTreeItemsInstance.filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns(),
|
|
784
|
+
let items = this.filtersTreeItemsInstance.filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns(), this.filtersColumnMenuInstance);
|
|
771
785
|
this.visibleNodes = this.calculateVisibleNodes(items);
|
|
772
786
|
}
|
|
773
787
|
calculateVisibleNodes(items) {
|
|
@@ -784,6 +798,14 @@ export class KupTree {
|
|
|
784
798
|
}
|
|
785
799
|
refreshStructureState() {
|
|
786
800
|
if (this.data) {
|
|
801
|
+
if (this.data.columns) {
|
|
802
|
+
this.kupManager.debug.logMessage(this, 'Detected KupDataDataset: setting up tree as grid.', KupDebugCategory.WARNING);
|
|
803
|
+
const data = this.data;
|
|
804
|
+
this.columns = data.columns;
|
|
805
|
+
this.data = this.kupManager.data.row.toNode(data);
|
|
806
|
+
this.showColumns = true;
|
|
807
|
+
this.showHeader = true;
|
|
808
|
+
}
|
|
787
809
|
// When the nodes must be expanded upon loading and the tree is not using a dynamicExpansion (and the current TreeNode is not disabled)
|
|
788
810
|
// the default value of the treeExpandedPropName is set to true
|
|
789
811
|
this.data.forEach((rootNode) => {
|
|
@@ -923,11 +945,11 @@ export class KupTree {
|
|
|
923
945
|
return (h("span", { class: styleClass, ref: (el) => this.contentRefs.push(el), title: this.preventXScroll ? content : null }, contentSlices));
|
|
924
946
|
}
|
|
925
947
|
/**
|
|
926
|
-
* Given a
|
|
927
|
-
* @param treeNodeData - The
|
|
928
|
-
* @param treeNodePath - A string containing the comma(,) separated indexes of the
|
|
929
|
-
* sorted from left to right, to access the current
|
|
930
|
-
* @param treeNodeDepth - An integer to keep track of the depth level of the current
|
|
948
|
+
* Given a KupTreeNode, reads through its data then composes and returns its JSX object.
|
|
949
|
+
* @param treeNodeData - The KupTreeNode object to parse.
|
|
950
|
+
* @param treeNodePath - A string containing the comma(,) separated indexes of the KupTreeNodes to use,
|
|
951
|
+
* sorted from left to right, to access the current KupTreeNode starting from the data prop children object.
|
|
952
|
+
* @param treeNodeDepth - An integer to keep track of the depth level of the current KupTreeNode. Used for indentation.
|
|
931
953
|
* @returns The the JSX created from the current tree node.
|
|
932
954
|
*/
|
|
933
955
|
renderTreeNode(treeNodeData, treeNodePath, treeNodeDepth = 0) {
|
|
@@ -949,7 +971,7 @@ export class KupTree {
|
|
|
949
971
|
if (this.asAccordion && treeNodeDepth === 0) {
|
|
950
972
|
expandClass += ` ${KupThemeIconValues.DROPDOWN.replace('--', '')}`;
|
|
951
973
|
}
|
|
952
|
-
else if (treeNodeData
|
|
974
|
+
else if (treeNodeData.isExpanded) {
|
|
953
975
|
expandClass += ` ${KupThemeIconValues.EXPANDED.replace('--', '')}`;
|
|
954
976
|
}
|
|
955
977
|
else {
|
|
@@ -983,12 +1005,11 @@ export class KupTree {
|
|
|
983
1005
|
}
|
|
984
1006
|
// Composes additional options for the tree node element
|
|
985
1007
|
let treeNodeOptions = {};
|
|
986
|
-
if (treeNodeData.hasOwnProperty(
|
|
987
|
-
treeNodeData
|
|
1008
|
+
if (treeNodeData.hasOwnProperty('isExpanded') &&
|
|
1009
|
+
treeNodeData.isExpanded &&
|
|
988
1010
|
hasExpandIcon) {
|
|
989
1011
|
// If the node is expanded it has this attribute set to if this node is expanded or not.
|
|
990
|
-
treeNodeOptions['data-is-expanded'] =
|
|
991
|
-
treeNodeData[treeExpandedPropName];
|
|
1012
|
+
treeNodeOptions['data-is-expanded'] = treeNodeData.isExpanded;
|
|
992
1013
|
}
|
|
993
1014
|
// When can be expanded OR selected
|
|
994
1015
|
if (!treeNodeData.disabled) {
|
|
@@ -1004,21 +1025,26 @@ export class KupTree {
|
|
|
1004
1025
|
// Renders all the cells
|
|
1005
1026
|
for (let j = 0; j < visibleCols.length; j++) {
|
|
1006
1027
|
const column = visibleCols[j];
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
h(
|
|
1028
|
+
if (treeNodeData.cells && treeNodeData.cells[column.name]) {
|
|
1029
|
+
const cell = treeNodeData.cells[column.name]
|
|
1030
|
+
? treeNodeData.cells[column.name]
|
|
1031
|
+
: null;
|
|
1032
|
+
const cellProps = {
|
|
1033
|
+
cell: cell,
|
|
1034
|
+
column: column,
|
|
1035
|
+
component: this,
|
|
1036
|
+
density: this.density,
|
|
1037
|
+
editable: this.editableData,
|
|
1038
|
+
renderKup: true,
|
|
1039
|
+
row: treeNodeData,
|
|
1040
|
+
setSizes: true,
|
|
1041
|
+
};
|
|
1042
|
+
treeNodeCells.push(h("td", { class: `grid-cell` },
|
|
1043
|
+
h(FCell, Object.assign({}, cellProps))));
|
|
1044
|
+
}
|
|
1045
|
+
else {
|
|
1046
|
+
treeNodeCells.push(h("td", { class: `grid-cell` }));
|
|
1047
|
+
}
|
|
1022
1048
|
}
|
|
1023
1049
|
}
|
|
1024
1050
|
const _hasTooltip = !this.kupManager.objects.isEmptyKupObj(treeNodeData.obj);
|
|
@@ -1262,13 +1288,13 @@ export class KupTree {
|
|
|
1262
1288
|
}
|
|
1263
1289
|
}
|
|
1264
1290
|
/**
|
|
1265
|
-
* Given a
|
|
1266
|
-
* and its children nodes, composing an array of JSX
|
|
1267
|
-
* @param treeNodeData - The
|
|
1268
|
-
* @param treeNodePath - A string containing the comma(,) separated indexes of the
|
|
1269
|
-
* sorted from left to right, to access the current
|
|
1270
|
-
* @param treeNodeDepth - An integer to keep track of the depth level of the current
|
|
1271
|
-
* @returns An array of JSX
|
|
1291
|
+
* Given a KupTreeNode, reads through its data to compose and return the KupTreeNodes of the root of this KupTreeNode
|
|
1292
|
+
* and its children nodes, composing an array of JSX KupTreeNodes.
|
|
1293
|
+
* @param treeNodeData - The KupTreeNode object to parse.
|
|
1294
|
+
* @param treeNodePath - A string containing the comma(,) separated indexes of the KupTreeNodes to use,
|
|
1295
|
+
* sorted from left to right, to access the current KupTreeNode starting from the data prop children object.
|
|
1296
|
+
* @param treeNodeDepth - An integer to keep track of the depth level of the current KupTreeNode. Used for indentation.
|
|
1297
|
+
* @returns An array of JSX KupTreeNodes created from the given treeNodeData.
|
|
1272
1298
|
*/
|
|
1273
1299
|
renderTree(treeNodeData, treeNodePath, treeNodeDepth = 0) {
|
|
1274
1300
|
let treeNodes = [];
|
|
@@ -1279,7 +1305,7 @@ export class KupTree {
|
|
|
1279
1305
|
if (treeNodeData.expandable &&
|
|
1280
1306
|
treeNodeData.children &&
|
|
1281
1307
|
treeNodeData.children.length &&
|
|
1282
|
-
treeNodeData
|
|
1308
|
+
treeNodeData.isExpanded) {
|
|
1283
1309
|
for (let i = 0; i < treeNodeData.children.length; i++) {
|
|
1284
1310
|
treeNodes = treeNodes.concat(this.renderTree(treeNodeData.children[i], treeNodePath + ',' + i, treeNodeDepth + 1));
|
|
1285
1311
|
}
|
|
@@ -1496,14 +1522,14 @@ export class KupTree {
|
|
|
1496
1522
|
},
|
|
1497
1523
|
"columns": {
|
|
1498
1524
|
"type": "unknown",
|
|
1499
|
-
"mutable":
|
|
1525
|
+
"mutable": true,
|
|
1500
1526
|
"complexType": {
|
|
1501
|
-
"original": "
|
|
1502
|
-
"resolved": "
|
|
1527
|
+
"original": "KupDataColumn[]",
|
|
1528
|
+
"resolved": "KupDataColumn[]",
|
|
1503
1529
|
"references": {
|
|
1504
|
-
"
|
|
1530
|
+
"KupDataColumn": {
|
|
1505
1531
|
"location": "import",
|
|
1506
|
-
"path": "
|
|
1532
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
1507
1533
|
}
|
|
1508
1534
|
}
|
|
1509
1535
|
},
|
|
@@ -1540,12 +1566,12 @@ export class KupTree {
|
|
|
1540
1566
|
},
|
|
1541
1567
|
"data": {
|
|
1542
1568
|
"type": "unknown",
|
|
1543
|
-
"mutable":
|
|
1569
|
+
"mutable": true,
|
|
1544
1570
|
"complexType": {
|
|
1545
|
-
"original": "
|
|
1546
|
-
"resolved": "
|
|
1571
|
+
"original": "KupTreeNode[]",
|
|
1572
|
+
"resolved": "KupTreeNode[]",
|
|
1547
1573
|
"references": {
|
|
1548
|
-
"
|
|
1574
|
+
"KupTreeNode": {
|
|
1549
1575
|
"location": "import",
|
|
1550
1576
|
"path": "./kup-tree-declarations"
|
|
1551
1577
|
}
|
|
@@ -1586,10 +1612,10 @@ export class KupTree {
|
|
|
1586
1612
|
"type": "unknown",
|
|
1587
1613
|
"mutable": false,
|
|
1588
1614
|
"complexType": {
|
|
1589
|
-
"original": "(\n treeNodeToExpand:
|
|
1590
|
-
"resolved": "(treeNodeToExpand:
|
|
1615
|
+
"original": "(\n treeNodeToExpand: KupTreeNode,\n treeNodePath: TreeNodePath\n ) => Promise<KupTreeNode[]> | undefined",
|
|
1616
|
+
"resolved": "(treeNodeToExpand: KupTreeNode, treeNodePath: TreeNodePath) => Promise<KupTreeNode[]>",
|
|
1591
1617
|
"references": {
|
|
1592
|
-
"
|
|
1618
|
+
"KupTreeNode": {
|
|
1593
1619
|
"location": "import",
|
|
1594
1620
|
"path": "./kup-tree-declarations"
|
|
1595
1621
|
},
|
|
@@ -1877,7 +1903,7 @@ export class KupTree {
|
|
|
1877
1903
|
},
|
|
1878
1904
|
"showColumns": {
|
|
1879
1905
|
"type": "boolean",
|
|
1880
|
-
"mutable":
|
|
1906
|
+
"mutable": true,
|
|
1881
1907
|
"complexType": {
|
|
1882
1908
|
"original": "boolean",
|
|
1883
1909
|
"resolved": "boolean",
|
|
@@ -1931,7 +1957,7 @@ export class KupTree {
|
|
|
1931
1957
|
},
|
|
1932
1958
|
"showHeader": {
|
|
1933
1959
|
"type": "boolean",
|
|
1934
|
-
"mutable":
|
|
1960
|
+
"mutable": true,
|
|
1935
1961
|
"complexType": {
|
|
1936
1962
|
"original": "boolean",
|
|
1937
1963
|
"resolved": "boolean",
|
|
@@ -2133,7 +2159,7 @@ export class KupTree {
|
|
|
2133
2159
|
"composed": true,
|
|
2134
2160
|
"docs": {
|
|
2135
2161
|
"tags": [],
|
|
2136
|
-
"text": "Fired when a
|
|
2162
|
+
"text": "Fired when a KupTreeNode gets collapsed (closed)."
|
|
2137
2163
|
},
|
|
2138
2164
|
"complexType": {
|
|
2139
2165
|
"original": "KupTreeNodeCollapseEventPayload",
|
|
@@ -2163,13 +2189,13 @@ export class KupTree {
|
|
|
2163
2189
|
"text": "{TreeNodePath} treeNodePath - The array of indexes to retrieve the current treeNode inside the data prop."
|
|
2164
2190
|
}, {
|
|
2165
2191
|
"name": "property",
|
|
2166
|
-
"text": "{
|
|
2192
|
+
"text": "{KupTreeNode} treeNode - Reference to the KupTreeNode data object which is being expanded (passed through the data prop)."
|
|
2167
2193
|
}, {
|
|
2168
2194
|
"name": "property",
|
|
2169
2195
|
"text": "{boolean} usesDynamicExpansion - Flag to notify that the component is running in dynamicExpansion mode."
|
|
2170
2196
|
}, {
|
|
2171
2197
|
"name": "property",
|
|
2172
|
-
"text": "{boolean} dynamicExpansionRequireChildren - Flag to notify that the current dynamicExpansion event\nrequires the parent component to add
|
|
2198
|
+
"text": "{boolean} dynamicExpansionRequireChildren - Flag to notify that the current dynamicExpansion event\nrequires the parent component to add KupTreeNode children to the given KupTreeNode."
|
|
2173
2199
|
}, {
|
|
2174
2200
|
"name": "see",
|
|
2175
2201
|
"text": "useDynamicExpansion *"
|
|
@@ -2352,6 +2378,26 @@ export class KupTree {
|
|
|
2352
2378
|
}
|
|
2353
2379
|
}
|
|
2354
2380
|
}
|
|
2381
|
+
}, {
|
|
2382
|
+
"method": "kupColumnRemove",
|
|
2383
|
+
"name": "kup-tree-columnremove",
|
|
2384
|
+
"bubbles": true,
|
|
2385
|
+
"cancelable": false,
|
|
2386
|
+
"composed": true,
|
|
2387
|
+
"docs": {
|
|
2388
|
+
"tags": [],
|
|
2389
|
+
"text": "Event fired when columns are removed (set to hidden)."
|
|
2390
|
+
},
|
|
2391
|
+
"complexType": {
|
|
2392
|
+
"original": "KupTreeColumnRemoveEventPayload",
|
|
2393
|
+
"resolved": "KupTreeColumnRemoveEventPayload",
|
|
2394
|
+
"references": {
|
|
2395
|
+
"KupTreeColumnRemoveEventPayload": {
|
|
2396
|
+
"location": "import",
|
|
2397
|
+
"path": "./kup-tree-declarations"
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2355
2401
|
}]; }
|
|
2356
2402
|
static get methods() { return {
|
|
2357
2403
|
"isEmpty": {
|
|
@@ -2450,6 +2496,35 @@ export class KupTree {
|
|
|
2450
2496
|
}]
|
|
2451
2497
|
}
|
|
2452
2498
|
},
|
|
2499
|
+
"hideColumn": {
|
|
2500
|
+
"complexType": {
|
|
2501
|
+
"signature": "(column: KupDataColumn) => Promise<void>",
|
|
2502
|
+
"parameters": [{
|
|
2503
|
+
"tags": [{
|
|
2504
|
+
"name": "param",
|
|
2505
|
+
"text": "column - Column to hide."
|
|
2506
|
+
}],
|
|
2507
|
+
"text": "- Column to hide."
|
|
2508
|
+
}],
|
|
2509
|
+
"references": {
|
|
2510
|
+
"Promise": {
|
|
2511
|
+
"location": "global"
|
|
2512
|
+
},
|
|
2513
|
+
"KupDataColumn": {
|
|
2514
|
+
"location": "import",
|
|
2515
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
2516
|
+
}
|
|
2517
|
+
},
|
|
2518
|
+
"return": "Promise<void>"
|
|
2519
|
+
},
|
|
2520
|
+
"docs": {
|
|
2521
|
+
"text": "Hides the given column.",
|
|
2522
|
+
"tags": [{
|
|
2523
|
+
"name": "param",
|
|
2524
|
+
"text": "column - Column to hide."
|
|
2525
|
+
}]
|
|
2526
|
+
}
|
|
2527
|
+
},
|
|
2453
2528
|
"openColumnMenu": {
|
|
2454
2529
|
"complexType": {
|
|
2455
2530
|
"signature": "(column: string) => Promise<void>",
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { KupTagNames, } from '../../types/GenericTypes';
|
|
2
|
+
export const autoAlignComps = [KupTagNames.DATA_TABLE, KupTagNames.TREE];
|
|
2
3
|
/**
|
|
3
4
|
* Supported cell events.
|
|
4
5
|
*/
|
|
5
6
|
export var FCellEvents;
|
|
6
7
|
(function (FCellEvents) {
|
|
7
8
|
FCellEvents["CLICK"] = "kup-cell-click";
|
|
9
|
+
FCellEvents["ICON_CLICK"] = "kup-cell-iconclick";
|
|
8
10
|
FCellEvents["INPUT"] = "kup-cell-input";
|
|
9
11
|
FCellEvents["UPDATE"] = "kup-cell-update";
|
|
10
12
|
})(FCellEvents || (FCellEvents = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KupTagNames } from '../../types/GenericTypes';
|
|
1
2
|
import { autoAlignComps, editableTypes, FCellClasses, FCellEvents, FCellShapes, FCellTypes, kupTypes, } from './f-cell-declarations';
|
|
2
3
|
import { h } from '@stencil/core';
|
|
3
4
|
import { getCellValueForDisplay } from '../../utils/cell-utils';
|
|
@@ -6,7 +7,7 @@ import { FTextField } from '../f-text-field/f-text-field';
|
|
|
6
7
|
import { stringToNumber } from '../../utils/utils';
|
|
7
8
|
import { FImage } from '../f-image/f-image';
|
|
8
9
|
import { FChip } from '../f-chip/f-chip';
|
|
9
|
-
import { KupThemeColorValues } from '../../
|
|
10
|
+
import { KupThemeColorValues } from '../../managers/kup-theme/kup-theme-declarations';
|
|
10
11
|
const dom = document.documentElement;
|
|
11
12
|
/*-------------------------------------------------*/
|
|
12
13
|
/* C o m p o n e n t */
|
|
@@ -129,7 +130,7 @@ function setCellSize(cellType, subcomponentProps, cell, props) {
|
|
|
129
130
|
break;
|
|
130
131
|
case FCellTypes.IMAGE:
|
|
131
132
|
if (props.component.rootElement.tagName ===
|
|
132
|
-
|
|
133
|
+
KupTagNames.BOX) {
|
|
133
134
|
if (!subcomponentProps.sizeY) {
|
|
134
135
|
subcomponentProps.sizeY = 'auto';
|
|
135
136
|
}
|
|
@@ -200,16 +201,17 @@ function setCellSizeKup(cellType, subcomponentProps, cell) {
|
|
|
200
201
|
function setEditableCell(cellType, classObj, cell, column, props) {
|
|
201
202
|
switch (cellType) {
|
|
202
203
|
case FCellTypes.AUTOCOMPLETE:
|
|
203
|
-
return (h("kup-autocomplete", Object.assign({}, cell.data, { class: "kup-full-width", "onkup-autocomplete-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
|
|
204
|
+
return (h("kup-autocomplete", Object.assign({}, cell.data, { class: "kup-full-width", "onkup-autocomplete-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
|
|
204
205
|
case FCellTypes.CHECKBOX:
|
|
205
|
-
if (autoAlignComps.includes(props.component.rootElement
|
|
206
|
+
if (autoAlignComps.includes(props.component.rootElement
|
|
207
|
+
.tagName)) {
|
|
206
208
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
207
209
|
}
|
|
208
210
|
return (h(FCheckbox, Object.assign({}, cell.data, { onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
209
211
|
case FCellTypes.COLOR_PICKER:
|
|
210
|
-
return (h("kup-color-picker", Object.assign({}, cell.data, { disabled: false, "onkup-colorpicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
212
|
+
return (h("kup-color-picker", Object.assign({}, cell.data, { class: "kup-full-width", disabled: false, "onkup-colorpicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
211
213
|
case FCellTypes.COMBOBOX:
|
|
212
|
-
return (h("kup-combobox", Object.assign({}, cell.data, { class: "kup-full-width", "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
|
|
214
|
+
return (h("kup-combobox", Object.assign({}, cell.data, { class: "kup-full-width", "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
|
|
213
215
|
case FCellTypes.DATE:
|
|
214
216
|
return (h("kup-date-picker", Object.assign({ initialValue: cell.value }, cell.data, { class: "kup-full-width", "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
|
|
215
217
|
case FCellTypes.RATING:
|
|
@@ -217,10 +219,11 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
217
219
|
case FCellTypes.TIME:
|
|
218
220
|
return (h("kup-time-picker", Object.assign({ initialValue: cell.value }, cell.data, { class: "kup-full-width", "onkup-timepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-timepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
|
|
219
221
|
case FCellTypes.NUMBER:
|
|
222
|
+
classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
220
223
|
case FCellTypes.STRING:
|
|
221
224
|
return (h(FTextField, Object.assign({}, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, fullWidth: true, inputType: cellType === FCellTypes.NUMBER ? 'number' : null, value: cellType === FCellTypes.NUMBER
|
|
222
225
|
? stringToNumber(cell.value).toString()
|
|
223
|
-
: cell.value, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
|
|
226
|
+
: cell.value, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
|
|
224
227
|
}
|
|
225
228
|
}
|
|
226
229
|
function setCell(cellType, subcomponentProps, content, classObj, cell, column, props) {
|
|
@@ -236,7 +239,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
236
239
|
}
|
|
237
240
|
return content;
|
|
238
241
|
case FCellTypes.CHECKBOX:
|
|
239
|
-
if (autoAlignComps.includes(props.component.rootElement
|
|
242
|
+
if (autoAlignComps.includes(props.component.rootElement
|
|
243
|
+
.tagName)) {
|
|
240
244
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
241
245
|
}
|
|
242
246
|
return (h(FImage, { resource: subcomponentProps.checked
|
|
@@ -246,7 +250,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
246
250
|
return h("div", { innerHTML: cell.value });
|
|
247
251
|
case FCellTypes.ICON:
|
|
248
252
|
case FCellTypes.IMAGE:
|
|
249
|
-
if (autoAlignComps.includes(props.component.rootElement
|
|
253
|
+
if (autoAlignComps.includes(props.component.rootElement
|
|
254
|
+
.tagName)) {
|
|
250
255
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
251
256
|
}
|
|
252
257
|
if (subcomponentProps.badgeData) {
|
|
@@ -262,7 +267,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
262
267
|
if (cellValueNumber < 0) {
|
|
263
268
|
classObj[FCellClasses.TEXT_DANGER] = true;
|
|
264
269
|
}
|
|
265
|
-
if (autoAlignComps.includes(props.component.rootElement
|
|
270
|
+
if (autoAlignComps.includes(props.component.rootElement
|
|
271
|
+
.tagName)) {
|
|
266
272
|
classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
267
273
|
}
|
|
268
274
|
return h("div", { class: "f-cell__text" }, cellValue);
|
|
@@ -281,17 +287,20 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
281
287
|
else {
|
|
282
288
|
const barStyle = {
|
|
283
289
|
height: subcomponentProps.sizeY,
|
|
290
|
+
width: '100%',
|
|
284
291
|
};
|
|
285
292
|
return (h("div", { style: barStyle },
|
|
286
293
|
h(FImage, Object.assign({}, subcomponentProps))));
|
|
287
294
|
}
|
|
288
295
|
case FCellTypes.BUTTON:
|
|
289
|
-
if (autoAlignComps.includes(props.component.rootElement
|
|
296
|
+
if (autoAlignComps.includes(props.component.rootElement
|
|
297
|
+
.tagName)) {
|
|
290
298
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
291
299
|
}
|
|
292
300
|
return (h("kup-button", Object.assign({}, subcomponentProps, { "onkup-button-click": (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
|
|
293
301
|
case FCellTypes.BUTTON_LIST:
|
|
294
|
-
if (autoAlignComps.includes(props.component.rootElement
|
|
302
|
+
if (autoAlignComps.includes(props.component.rootElement
|
|
303
|
+
.tagName)) {
|
|
295
304
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
296
305
|
}
|
|
297
306
|
subcomponentProps['data-storage'] = {
|
|
@@ -301,21 +310,23 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
301
310
|
};
|
|
302
311
|
return h("kup-button-list", Object.assign({}, subcomponentProps));
|
|
303
312
|
case FCellTypes.CHART:
|
|
304
|
-
if (autoAlignComps.includes(props.component.rootElement
|
|
313
|
+
if (autoAlignComps.includes(props.component.rootElement
|
|
314
|
+
.tagName)) {
|
|
305
315
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
306
316
|
}
|
|
307
317
|
return h("kup-chart", Object.assign({}, subcomponentProps));
|
|
308
318
|
case FCellTypes.CHIP:
|
|
309
319
|
return h(FChip, Object.assign({}, subcomponentProps));
|
|
310
320
|
case FCellTypes.COLOR_PICKER:
|
|
311
|
-
return (h("kup-color-picker", Object.assign({}, subcomponentProps, { disabled: true })));
|
|
321
|
+
return (h("kup-color-picker", Object.assign({}, subcomponentProps, { class: "kup-full-width", disabled: true })));
|
|
312
322
|
case FCellTypes.GAUGE:
|
|
313
323
|
return (h("kup-gauge", Object.assign({ value: stringToNumber(cell.value), "width-component": "280px" }, subcomponentProps)));
|
|
314
324
|
case FCellTypes.KNOB:
|
|
315
325
|
case FCellTypes.PROGRESS_BAR:
|
|
316
326
|
return h("kup-progress-bar", Object.assign({}, subcomponentProps));
|
|
317
327
|
case FCellTypes.RADIO:
|
|
318
|
-
if (autoAlignComps.includes(props.component.rootElement
|
|
328
|
+
if (autoAlignComps.includes(props.component.rootElement
|
|
329
|
+
.tagName)) {
|
|
319
330
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
320
331
|
}
|
|
321
332
|
subcomponentProps['disabled'] = row.readOnly;
|
|
@@ -421,33 +432,36 @@ function cellEvent(e, props, cellType, cellEventName) {
|
|
|
421
432
|
let value = isInputEvent
|
|
422
433
|
? e.target.value
|
|
423
434
|
: e.detail.value;
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
cell.data
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
cell.data
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
cell.obj
|
|
435
|
+
if (cellEventName === FCellEvents.UPDATE) {
|
|
436
|
+
switch (cellType) {
|
|
437
|
+
case FCellTypes.AUTOCOMPLETE:
|
|
438
|
+
case FCellTypes.COMBOBOX:
|
|
439
|
+
case FCellTypes.DATE:
|
|
440
|
+
case FCellTypes.TIME:
|
|
441
|
+
if (cell.data) {
|
|
442
|
+
cell.data['initialValue'] = value;
|
|
443
|
+
}
|
|
444
|
+
break;
|
|
445
|
+
case FCellTypes.CHECKBOX:
|
|
446
|
+
value = value === 'on' ? '0' : '1';
|
|
447
|
+
if (cell.data) {
|
|
448
|
+
cell.data.checked =
|
|
449
|
+
value === '0' ? false : true;
|
|
450
|
+
}
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
if (cell.obj) {
|
|
454
|
+
cell.obj.k = value.toString();
|
|
455
|
+
}
|
|
456
|
+
cell.value = value.toString();
|
|
457
|
+
cell.displayedValue = null;
|
|
458
|
+
cell.displayedValue = getCellValueForDisplay(column, cell);
|
|
443
459
|
}
|
|
444
|
-
cell.value = value;
|
|
445
|
-
cell.displayedValue = null;
|
|
446
|
-
cell.displayedValue = getCellValueForDisplay(column, cell);
|
|
447
460
|
if (comp && comp.rootElement) {
|
|
448
|
-
const
|
|
461
|
+
const cellEvent = new CustomEvent(cellEventName, {
|
|
449
462
|
bubbles: true,
|
|
450
463
|
cancelable: true,
|
|
464
|
+
composed: true,
|
|
451
465
|
detail: {
|
|
452
466
|
comp: comp,
|
|
453
467
|
id: comp.rootElement.id,
|
|
@@ -458,7 +472,7 @@ function cellEvent(e, props, cellType, cellEventName) {
|
|
|
458
472
|
type: cellType,
|
|
459
473
|
},
|
|
460
474
|
});
|
|
461
|
-
comp.rootElement.dispatchEvent(
|
|
475
|
+
comp.rootElement.dispatchEvent(cellEvent);
|
|
462
476
|
try {
|
|
463
477
|
comp.refresh();
|
|
464
478
|
}
|