@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
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
|
|
2
2
|
import { MDCRipple } from '@material/ripple';
|
|
3
|
-
import * as
|
|
3
|
+
import * as builtInLayouts from './built-in/kup-card-built-in';
|
|
4
4
|
import * as collapsibleLayouts from './collapsible/kup-card-collapsible';
|
|
5
5
|
import * as dialogLayouts from './dialog/kup-card-dialog';
|
|
6
6
|
import * as freeLayouts from './free/kup-card-free';
|
|
7
7
|
import * as scalableLayouts from './scalable/kup-card-scalable';
|
|
8
8
|
import * as standardLayouts from './standard/kup-card-standard';
|
|
9
|
-
import
|
|
9
|
+
import Picker from 'vanilla-picker';
|
|
10
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
10
11
|
import { KupCardFamily, KupCardCSSClasses, KupCardIds, KupCardProps, } from './kup-card-declarations';
|
|
11
12
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
12
|
-
import { KupDebugCategory } from '../../
|
|
13
|
-
import { KupLanguageGeneric } from '../../
|
|
13
|
+
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
14
|
+
import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
|
|
14
15
|
import { layoutSpecificEvents } from './kup-card-helper';
|
|
15
16
|
import { getProps, setProps } from '../../utils/utils';
|
|
16
17
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
@@ -80,6 +81,9 @@ export class KupCard {
|
|
|
80
81
|
* Prevents multiple scaling callbacks when the card is scalable.
|
|
81
82
|
*/
|
|
82
83
|
this.scalingActive = false;
|
|
84
|
+
this.componentWrapper = null;
|
|
85
|
+
this.colorPicker = null;
|
|
86
|
+
this.firstColorPickerChange = null;
|
|
83
87
|
}
|
|
84
88
|
onKupClick(id, value) {
|
|
85
89
|
this.kupClick.emit({
|
|
@@ -192,8 +196,8 @@ export class KupCard {
|
|
|
192
196
|
const method = 'create' + this.layoutNumber;
|
|
193
197
|
try {
|
|
194
198
|
switch (family) {
|
|
195
|
-
case KupCardFamily.
|
|
196
|
-
return
|
|
199
|
+
case KupCardFamily.BUILT_IN: {
|
|
200
|
+
return builtInLayouts[method](this);
|
|
197
201
|
}
|
|
198
202
|
case KupCardFamily.COLLAPSIBLE: {
|
|
199
203
|
return collapsibleLayouts[method](this);
|
|
@@ -223,8 +227,8 @@ export class KupCard {
|
|
|
223
227
|
}
|
|
224
228
|
}
|
|
225
229
|
/**
|
|
226
|
-
* This method
|
|
227
|
-
* It will
|
|
230
|
+
* This method is invoked by the layout manager when the layout family is dialog.
|
|
231
|
+
* It will "dialogify" the card.
|
|
228
232
|
*/
|
|
229
233
|
dialog() {
|
|
230
234
|
const root = this.rootElement.shadowRoot;
|
|
@@ -237,13 +241,54 @@ export class KupCard {
|
|
|
237
241
|
}
|
|
238
242
|
}
|
|
239
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* This method is invoked by the layout manager when the layout family is built-in.
|
|
246
|
+
*/
|
|
247
|
+
builtIn() {
|
|
248
|
+
const root = this.rootElement.shadowRoot;
|
|
249
|
+
if (root) {
|
|
250
|
+
const builtinLayout = root.querySelector('.' + KupCardCSSClasses.BUILT_IN_CARD);
|
|
251
|
+
switch (this.layoutNumber) {
|
|
252
|
+
case 4:
|
|
253
|
+
const colorPickerOptions = this.data && this.data.options
|
|
254
|
+
? this.data.options
|
|
255
|
+
: null;
|
|
256
|
+
const color = colorPickerOptions
|
|
257
|
+
? colorPickerOptions.initialValue
|
|
258
|
+
: null;
|
|
259
|
+
this.firstColorPickerChange = true;
|
|
260
|
+
if (!this.colorPicker) {
|
|
261
|
+
this.colorPicker = new Picker({
|
|
262
|
+
alpha: false,
|
|
263
|
+
color: color,
|
|
264
|
+
parent: builtinLayout,
|
|
265
|
+
popup: false,
|
|
266
|
+
onChange: colorPickerOptions &&
|
|
267
|
+
colorPickerOptions.changeCb
|
|
268
|
+
? (color) => {
|
|
269
|
+
if (!this.firstColorPickerChange) {
|
|
270
|
+
colorPickerOptions.changeCb(color);
|
|
271
|
+
}
|
|
272
|
+
this.firstColorPickerChange = false;
|
|
273
|
+
}
|
|
274
|
+
: null,
|
|
275
|
+
});
|
|
276
|
+
if (colorPickerOptions &&
|
|
277
|
+
colorPickerOptions.creationCb) {
|
|
278
|
+
colorPickerOptions.creationCb(this.colorPicker);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
240
285
|
/**
|
|
241
286
|
* This method will trigger whenever the card's render() hook occurs or when the size changes (through KupManager), in order to manage the more complex layout families.
|
|
242
287
|
* It will also update any dynamic color handled by the selected layout.
|
|
243
288
|
*/
|
|
244
289
|
layoutManager() {
|
|
245
290
|
const root = this.rootElement.shadowRoot;
|
|
246
|
-
if (
|
|
291
|
+
if (this.componentWrapper) {
|
|
247
292
|
const family = this.layoutFamily.toLowerCase();
|
|
248
293
|
const dynColors = root.querySelectorAll('.dyn-color');
|
|
249
294
|
for (let index = 0; index < dynColors.length; index++) {
|
|
@@ -257,6 +302,9 @@ export class KupCard {
|
|
|
257
302
|
case KupCardFamily.DIALOG:
|
|
258
303
|
this.dialog();
|
|
259
304
|
break;
|
|
305
|
+
case KupCardFamily.BUILT_IN:
|
|
306
|
+
this.builtIn();
|
|
307
|
+
break;
|
|
260
308
|
case KupCardFamily.SCALABLE:
|
|
261
309
|
if (!this.scalingActive) {
|
|
262
310
|
this.scalable();
|
|
@@ -281,6 +329,7 @@ export class KupCard {
|
|
|
281
329
|
root.addEventListener('kup-chip-blur', this.cardEvent);
|
|
282
330
|
root.addEventListener('kup-chip-click', this.cardEvent);
|
|
283
331
|
root.addEventListener('kup-chip-iconclick', this.cardEvent);
|
|
332
|
+
root.addEventListener('kup-combobox-change', this.cardEvent);
|
|
284
333
|
root.addEventListener('kup-combobox-itemclick', this.cardEvent);
|
|
285
334
|
root.addEventListener('kup-datatable-cellupdate', this.cardEvent);
|
|
286
335
|
root.addEventListener('kup-datatable-rowselected', this.cardEvent);
|
|
@@ -288,10 +337,12 @@ export class KupCard {
|
|
|
288
337
|
root.addEventListener('kup-datepicker-input', this.cardEvent);
|
|
289
338
|
root.addEventListener('kup-datepicker-itemclick', this.cardEvent);
|
|
290
339
|
root.addEventListener('kup-datepicker-textfieldsubmit', this.cardEvent);
|
|
340
|
+
root.addEventListener('kup-dropdownbutton-itemclick', this.cardEvent);
|
|
291
341
|
root.addEventListener('kup-list-click', this.cardEvent);
|
|
292
342
|
root.addEventListener('kup-switch-change', this.cardEvent);
|
|
293
343
|
root.addEventListener('kup-tabbar-click', this.cardEvent);
|
|
294
344
|
root.addEventListener('kup-textfield-cleariconclick', this.cardEvent);
|
|
345
|
+
root.addEventListener('kup-textfield-change', this.cardEvent);
|
|
295
346
|
root.addEventListener('kup-textfield-input', this.cardEvent);
|
|
296
347
|
root.addEventListener('kup-textfield-submit', this.cardEvent);
|
|
297
348
|
root.addEventListener('kup-timepicker-cleariconclick', this.cardEvent);
|
|
@@ -407,7 +458,7 @@ export class KupCard {
|
|
|
407
458
|
};
|
|
408
459
|
return (h(Host, { style: style },
|
|
409
460
|
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
410
|
-
h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null) }, this.getLayout())));
|
|
461
|
+
h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null), ref: (el) => (this.componentWrapper = el) }, this.getLayout())));
|
|
411
462
|
}
|
|
412
463
|
disconnectedCallback() {
|
|
413
464
|
this.kupManager.interact.unregister([this.rootElement]);
|
|
@@ -498,7 +549,7 @@ export class KupCard {
|
|
|
498
549
|
"mutable": false,
|
|
499
550
|
"complexType": {
|
|
500
551
|
"original": "KupCardFamily",
|
|
501
|
-
"resolved": "KupCardFamily.
|
|
552
|
+
"resolved": "KupCardFamily.BUILT_IN | KupCardFamily.COLLAPSIBLE | KupCardFamily.DIALOG | KupCardFamily.FREE | KupCardFamily.SCALABLE | KupCardFamily.STANDARD",
|
|
502
553
|
"references": {
|
|
503
554
|
"KupCardFamily": {
|
|
504
555
|
"location": "import",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
import { FImage } from '../../../f-components/f-image/f-image';
|
|
3
|
-
import { KupThemeColorValues } from '../../../
|
|
3
|
+
import { KupThemeColorValues } from '../../../managers/kup-theme/kup-theme-declarations';
|
|
4
4
|
const dom = document.documentElement;
|
|
5
5
|
/**
|
|
6
6
|
* 1st scalable card layout, column of 2 texts.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
import { FImage } from '../../../f-components/f-image/f-image';
|
|
3
3
|
import { compList } from '../kup-card-helper';
|
|
4
|
-
import { KupLanguageColumn, KupLanguageGeneric, } from '../../../
|
|
4
|
+
import { KupLanguageColumn, KupLanguageGeneric, } from '../../../managers/kup-language/kup-language-declarations';
|
|
5
5
|
import { FChipType } from '../../../f-components/f-chip/f-chip-declarations';
|
|
6
6
|
import { KupCardCSSClasses, KupCardIds } from '../kup-card-declarations';
|
|
7
7
|
import { KupColumnMenuIds } from '../../../utils/kup-column-menu/kup-column-menu-declarations';
|
|
8
|
-
import { KupThemeColorValues } from '../../../
|
|
8
|
+
import { KupThemeColorValues } from '../../../managers/kup-theme/kup-theme-declarations';
|
|
9
9
|
/**
|
|
10
10
|
* 1st standard card layout, inspired by Material Design.
|
|
11
11
|
* @param {KupCard} component - Card component.
|
|
@@ -614,6 +614,14 @@ export function create14(component) {
|
|
|
614
614
|
switchesIds.push(switchEl['id']);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
+
// Setting up text fields.
|
|
618
|
+
const textfieldsIds = [];
|
|
619
|
+
for (let index = 0; index < textfieldArray.length; index++) {
|
|
620
|
+
const textfield = textfieldArray[index];
|
|
621
|
+
if (textfield['id']) {
|
|
622
|
+
textfieldsIds.push(textfield['id']);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
617
625
|
return (h("div", { class: `standard-layout-${component.layoutNumber} ` },
|
|
618
626
|
objectArray[0] ? (h("div", { class: "section-1" },
|
|
619
627
|
imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" },
|
|
@@ -646,9 +654,12 @@ export function create14(component) {
|
|
|
646
654
|
datepickerArray.length > 0
|
|
647
655
|
? compList(datepickerArray, 'datepicker')
|
|
648
656
|
: null,
|
|
649
|
-
textfieldArray.
|
|
650
|
-
|
|
651
|
-
|
|
657
|
+
textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FILTER) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
|
|
658
|
+
KupColumnMenuIds.TEXTFIELD_FILTER)))) : null,
|
|
659
|
+
textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FROM) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
|
|
660
|
+
KupColumnMenuIds.TEXTFIELD_FROM)))) : null,
|
|
661
|
+
textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_TO) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
|
|
662
|
+
KupColumnMenuIds.TEXTFIELD_TO)))) : null,
|
|
652
663
|
timepickerArray.length > 0
|
|
653
664
|
? compList(timepickerArray, 'timepicker')
|
|
654
665
|
: null),
|
|
@@ -661,6 +672,8 @@ export function create14(component) {
|
|
|
661
672
|
KupColumnMenuIds.BUTTON_REMOVE)))) : null,
|
|
662
673
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
663
674
|
KupColumnMenuIds.BUTTON_GROUP)))) : null),
|
|
675
|
+
h("div", { class: "sub-formula" }, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FORMULA) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
|
|
676
|
+
KupColumnMenuIds.TEXTFIELD_FORMULA)))) : null),
|
|
664
677
|
h("div", { class: "sub-chip" },
|
|
665
678
|
chipArray[0] ? (h("kup-chip", Object.assign({}, chipArray[0], { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST }))) : (h("kup-chip", { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST })),
|
|
666
679
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_APPLY) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component, Element, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
|
|
2
|
-
import { kupManagerInstance, } from '../../
|
|
2
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
3
3
|
import { getProps, setProps } from '../../utils/utils';
|
|
4
4
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
5
5
|
import { KupCellProps } from './kup-cell-declarations';
|
|
6
6
|
import { FCell } from '../../f-components/f-cell/f-cell';
|
|
7
7
|
import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
|
|
8
|
-
import { KupDragEffect, } from '../../
|
|
9
|
-
import { KupLanguageGeneric } from '../../
|
|
8
|
+
import { KupDragEffect, } from '../../managers/kup-interact/kup-interact-declarations';
|
|
9
|
+
import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
|
|
10
10
|
export class KupCell {
|
|
11
11
|
constructor() {
|
|
12
12
|
/*-------------------------------------------------*/
|
|
@@ -125,10 +125,10 @@ export class KupCell {
|
|
|
125
125
|
}
|
|
126
126
|
generateColumn() {
|
|
127
127
|
const colname = this.data && this.data.obj && this.data.obj.t
|
|
128
|
-
? this.data.obj.t + '
|
|
128
|
+
? this.data.obj.t + ';' + this.data.obj.p
|
|
129
129
|
: 'KUPCELL';
|
|
130
130
|
const coltitle = this.data && this.data.obj && this.data.obj.t
|
|
131
|
-
? this.data.obj.t + '
|
|
131
|
+
? this.data.obj.t + ';' + this.data.obj.p
|
|
132
132
|
: this.kupManager.language.translate(KupLanguageGeneric.EMPTY_OBJECT);
|
|
133
133
|
return {
|
|
134
134
|
name: colname,
|
|
@@ -145,6 +145,7 @@ export class KupCell {
|
|
|
145
145
|
/* L i f e c y c l e H o o k s */
|
|
146
146
|
/*-------------------------------------------------*/
|
|
147
147
|
componentWillLoad() {
|
|
148
|
+
this.kupManager.dates.register(this);
|
|
148
149
|
this.kupManager.debug.logLoad(this, false);
|
|
149
150
|
this.kupManager.language.register(this);
|
|
150
151
|
this.kupManager.theme.register(this);
|
|
@@ -159,10 +160,6 @@ export class KupCell {
|
|
|
159
160
|
this.didRenderInteractables();
|
|
160
161
|
this.kupManager.debug.logRender(this, true);
|
|
161
162
|
}
|
|
162
|
-
disconnectedCallback() {
|
|
163
|
-
this.kupManager.language.unregister(this);
|
|
164
|
-
this.kupManager.theme.unregister(this);
|
|
165
|
-
}
|
|
166
163
|
render() {
|
|
167
164
|
const props = {
|
|
168
165
|
cell: this.data,
|
|
@@ -178,6 +175,11 @@ export class KupCell {
|
|
|
178
175
|
h("div", { id: componentWrapperId },
|
|
179
176
|
h(FCell, Object.assign({}, props)))));
|
|
180
177
|
}
|
|
178
|
+
disconnectedCallback() {
|
|
179
|
+
this.kupManager.dates.unregister(this);
|
|
180
|
+
this.kupManager.language.unregister(this);
|
|
181
|
+
this.kupManager.theme.unregister(this);
|
|
182
|
+
}
|
|
181
183
|
static get is() { return "kup-cell"; }
|
|
182
184
|
static get encapsulation() { return "shadow"; }
|
|
183
185
|
static get originalStyleUrls() { return {
|
|
@@ -215,12 +217,12 @@ export class KupCell {
|
|
|
215
217
|
"type": "unknown",
|
|
216
218
|
"mutable": false,
|
|
217
219
|
"complexType": {
|
|
218
|
-
"original": "
|
|
219
|
-
"resolved": "
|
|
220
|
+
"original": "KupDataCell",
|
|
221
|
+
"resolved": "KupDataCell",
|
|
220
222
|
"references": {
|
|
221
|
-
"
|
|
223
|
+
"KupDataCell": {
|
|
222
224
|
"location": "import",
|
|
223
|
-
"path": "
|
|
225
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
224
226
|
}
|
|
225
227
|
}
|
|
226
228
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { formatToNumber } from '../../utils/cell-utils';
|
|
2
2
|
import { getColumnByName } from '../../utils/cell-utils';
|
|
3
|
-
import { KupObjects } from '../../
|
|
4
|
-
import { KupDates } from '../../
|
|
5
|
-
import { KupDatesNormalize } from '../../
|
|
3
|
+
import { KupObjects } from '../../managers/kup-objects/kup-objects';
|
|
4
|
+
import { KupDates } from '../../managers/kup-dates/kup-dates';
|
|
5
|
+
import { KupDatesNormalize } from '../../managers/kup-dates/kup-dates-declarations';
|
|
6
6
|
export function getSerieDecode(serie, series) {
|
|
7
7
|
if (serie == null || series == null) {
|
|
8
8
|
return null;
|
|
@@ -36,7 +36,6 @@ export const convertColumns = (data, { series, axis }) => {
|
|
|
36
36
|
return columns;
|
|
37
37
|
};
|
|
38
38
|
export const convertRows = (data, columns, showMarks) => {
|
|
39
|
-
const kupObjects = new KupObjects();
|
|
40
39
|
if (!data) {
|
|
41
40
|
return [];
|
|
42
41
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, Watch, } from '@stencil/core';
|
|
2
2
|
import { ChartType, ChartAspect, KupChartProps, } from './kup-chart-declarations';
|
|
3
3
|
import { convertColumns, convertRows, getSerieDecode, } from './kup-chart-builder';
|
|
4
|
-
import { kupManagerInstance, } from '../../
|
|
4
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
5
5
|
import { getProps, identify, setProps } from '../../utils/utils';
|
|
6
6
|
import { getColumnByName } from '../../utils/cell-utils';
|
|
7
|
-
import { KupDebugCategory } from '../../
|
|
8
|
-
import { KupThemeColorValues } from '../../
|
|
7
|
+
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
8
|
+
import { KupThemeColorValues } from '../../managers/kup-theme/kup-theme-declarations';
|
|
9
9
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
10
10
|
export class KupChart {
|
|
11
11
|
constructor() {
|
|
@@ -636,12 +636,12 @@ export class KupChart {
|
|
|
636
636
|
"type": "unknown",
|
|
637
637
|
"mutable": false,
|
|
638
638
|
"complexType": {
|
|
639
|
-
"original": "
|
|
640
|
-
"resolved": "
|
|
639
|
+
"original": "KupDataDataset",
|
|
640
|
+
"resolved": "KupDataDataset",
|
|
641
641
|
"references": {
|
|
642
|
-
"
|
|
642
|
+
"KupDataDataset": {
|
|
643
643
|
"location": "import",
|
|
644
|
-
"path": "
|
|
644
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, } from '@stencil/core';
|
|
2
|
-
import { kupManagerInstance, } from '../../
|
|
2
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
3
3
|
import { FCheckbox } from '../../f-components/f-checkbox/f-checkbox';
|
|
4
4
|
import { KupCheckboxProps, } from './kup-checkbox-declarations';
|
|
5
5
|
import { getProps, setProps } from '../../utils/utils';
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* @prop --kup-chip-font-size: Sets font size of the chips.
|
|
8
8
|
* @prop --kup-chip-font-weight: Sets font weight of the chips.
|
|
9
9
|
* @prop --kup-chip-height: Sets height of the chips.
|
|
10
|
+
* @prop --kup-chip-indent-multiplier: Sets the indentation multiplier for children chips.
|
|
10
11
|
* @prop --kup-chip-margin: Sets margin of the chips.
|
|
11
12
|
* @prop --kup-chip-padding: Sets padding of the chips.
|
|
12
13
|
* @prop --kup-chip-primary-color: Sets primary color of the component.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
|
|
2
|
-
import { kupManagerInstance, } from '../../
|
|
1
|
+
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, Watch, } from '@stencil/core';
|
|
2
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
3
3
|
import { FChip } from '../../f-components/f-chip/f-chip';
|
|
4
4
|
import { FChipType, } from '../../f-components/f-chip/f-chip-declarations';
|
|
5
|
-
import { KupChipProps } from './kup-chip-declarations';
|
|
6
|
-
import { KupDebugCategory } from '../../
|
|
5
|
+
import { KupChipProps, } from './kup-chip-declarations';
|
|
6
|
+
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
7
7
|
import { getProps, setProps } from '../../utils/utils';
|
|
8
8
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
9
9
|
export class KupChip {
|
|
@@ -22,11 +22,6 @@ export class KupChip {
|
|
|
22
22
|
* @default []
|
|
23
23
|
*/
|
|
24
24
|
this.data = [];
|
|
25
|
-
/**
|
|
26
|
-
* List of elements.
|
|
27
|
-
* @default []
|
|
28
|
-
*/
|
|
29
|
-
this.dataNew = [];
|
|
30
25
|
/**
|
|
31
26
|
* The type of chip. Available types: input, filter, choice or empty for default.
|
|
32
27
|
* @default FChipType.STANDARD
|
|
@@ -40,79 +35,56 @@ export class KupChip {
|
|
|
40
35
|
*/
|
|
41
36
|
this.kupManager = kupManagerInstance();
|
|
42
37
|
}
|
|
43
|
-
onKupBlur(
|
|
44
|
-
let obj = null;
|
|
45
|
-
let value = null;
|
|
46
|
-
if (this.data[i]) {
|
|
47
|
-
obj = this.data[i].obj;
|
|
48
|
-
value = this.data[i].value;
|
|
49
|
-
}
|
|
38
|
+
onKupBlur(chip) {
|
|
50
39
|
this.kupBlur.emit({
|
|
51
40
|
comp: this,
|
|
52
41
|
id: this.rootElement.id,
|
|
53
|
-
|
|
54
|
-
value: value,
|
|
42
|
+
chip: chip,
|
|
55
43
|
});
|
|
56
44
|
}
|
|
57
|
-
onKupClick(
|
|
45
|
+
onKupClick(chip) {
|
|
58
46
|
const isChoice = this.type.toLowerCase() === FChipType.CHOICE;
|
|
59
47
|
const isFilter = this.type.toLowerCase() === FChipType.FILTER;
|
|
60
|
-
let obj = null;
|
|
61
|
-
let value = null;
|
|
62
|
-
if (this.data[i]) {
|
|
63
|
-
obj = this.data[i].obj;
|
|
64
|
-
value = this.data[i].value;
|
|
65
|
-
}
|
|
66
48
|
if (isChoice) {
|
|
67
|
-
|
|
68
|
-
if (j !== i && this.data[j].checked) {
|
|
69
|
-
this.data[j].checked = false;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
49
|
+
this.kupManager.data.node.setProperties(this.data, { checked: false }, true, [chip]);
|
|
72
50
|
}
|
|
73
51
|
if (isChoice || isFilter) {
|
|
74
|
-
|
|
75
|
-
this.data[i].checked = false;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
this.data[i].checked = true;
|
|
79
|
-
}
|
|
80
|
-
let newData = [...this.data];
|
|
81
|
-
this.data = newData;
|
|
52
|
+
chip.checked = chip.checked ? false : true;
|
|
82
53
|
}
|
|
83
54
|
this.kupClick.emit({
|
|
84
55
|
comp: this,
|
|
85
56
|
id: this.rootElement.id,
|
|
86
|
-
|
|
87
|
-
value: value,
|
|
57
|
+
chip: chip,
|
|
88
58
|
});
|
|
59
|
+
this.refresh();
|
|
89
60
|
}
|
|
90
|
-
onKupFocus(
|
|
91
|
-
let value = null;
|
|
92
|
-
if (this.data[i]) {
|
|
93
|
-
value = this.data[i].value;
|
|
94
|
-
}
|
|
61
|
+
onKupFocus(chip) {
|
|
95
62
|
this.kupFocus.emit({
|
|
96
63
|
comp: this,
|
|
97
64
|
id: this.rootElement.id,
|
|
98
|
-
|
|
99
|
-
value: value,
|
|
65
|
+
chip: chip,
|
|
100
66
|
});
|
|
101
67
|
}
|
|
102
|
-
onKupIconClick(
|
|
103
|
-
let value = null;
|
|
104
|
-
if (this.data[i]) {
|
|
105
|
-
value = this.data[i].value;
|
|
106
|
-
}
|
|
107
|
-
this.data.splice(i, 1);
|
|
108
|
-
let newData = [...this.data];
|
|
109
|
-
this.data = newData;
|
|
68
|
+
onKupIconClick(chip) {
|
|
110
69
|
this.kupIconClick.emit({
|
|
111
70
|
comp: this,
|
|
112
71
|
id: this.rootElement.id,
|
|
113
|
-
|
|
114
|
-
value: value,
|
|
72
|
+
chip: this.kupManager.data.node.remove(this.data, chip),
|
|
115
73
|
});
|
|
74
|
+
this.refresh();
|
|
75
|
+
}
|
|
76
|
+
/*-------------------------------------------------*/
|
|
77
|
+
/* W a t c h e r s */
|
|
78
|
+
/*-------------------------------------------------*/
|
|
79
|
+
checkDataset(newData) {
|
|
80
|
+
if (!newData) {
|
|
81
|
+
newData = [];
|
|
82
|
+
}
|
|
83
|
+
if (newData.columns) {
|
|
84
|
+
this.kupManager.debug.logMessage(this, 'Detected KupDataDataset: converting rows to nodes.', KupDebugCategory.WARNING);
|
|
85
|
+
const data = this.data;
|
|
86
|
+
this.data = this.kupManager.data.row.toNode(data);
|
|
87
|
+
}
|
|
116
88
|
}
|
|
117
89
|
/*-------------------------------------------------*/
|
|
118
90
|
/* P u b l i c M e t h o d s */
|
|
@@ -144,6 +116,7 @@ export class KupChip {
|
|
|
144
116
|
componentWillLoad() {
|
|
145
117
|
this.kupManager.debug.logLoad(this, false);
|
|
146
118
|
this.kupManager.theme.register(this);
|
|
119
|
+
this.checkDataset(this.data);
|
|
147
120
|
}
|
|
148
121
|
componentDidLoad() {
|
|
149
122
|
this.kupManager.debug.logLoad(this, true);
|
|
@@ -178,12 +151,12 @@ export class KupChip {
|
|
|
178
151
|
? true
|
|
179
152
|
: false,
|
|
180
153
|
data: this.data,
|
|
181
|
-
dataNew: this.dataNew,
|
|
182
154
|
info: this.rootElement.classList.contains('kup-info')
|
|
183
155
|
? true
|
|
184
156
|
: false,
|
|
185
157
|
onBlur: [],
|
|
186
158
|
onClick: [],
|
|
159
|
+
onExpansionClick: [],
|
|
187
160
|
onFocus: [],
|
|
188
161
|
onIconClick: [],
|
|
189
162
|
secondary: this.rootElement.classList.contains('kup-secondary')
|
|
@@ -198,13 +171,19 @@ export class KupChip {
|
|
|
198
171
|
: false,
|
|
199
172
|
};
|
|
200
173
|
for (let j = 0; j < this.data.length; j++) {
|
|
201
|
-
props.onBlur.push(() => this.onKupBlur(
|
|
202
|
-
props.onClick.push(() => this.onKupClick(
|
|
203
|
-
props.
|
|
204
|
-
|
|
174
|
+
props.onBlur.push((chip) => this.onKupBlur(chip));
|
|
175
|
+
props.onClick.push((chip) => this.onKupClick(chip));
|
|
176
|
+
props.onExpansionClick.push((chip, e) => {
|
|
177
|
+
chip.isExpanded = !chip.isExpanded ? true : false;
|
|
178
|
+
if (e.ctrlKey && chip.children && chip.children.length > 0) {
|
|
179
|
+
this.kupManager.data.node.setProperties(chip.children, { isExpanded: chip.isExpanded }, true);
|
|
180
|
+
}
|
|
181
|
+
this.refresh();
|
|
182
|
+
});
|
|
183
|
+
props.onFocus.push((chip) => this.onKupFocus(chip));
|
|
184
|
+
props.onIconClick.push((chip) => this.onKupIconClick(chip));
|
|
205
185
|
}
|
|
206
|
-
if (
|
|
207
|
-
(!this.dataNew || this.dataNew.length === 0)) {
|
|
186
|
+
if (!this.data || this.data.length === 0) {
|
|
208
187
|
return;
|
|
209
188
|
}
|
|
210
189
|
return (h(Host, null,
|
|
@@ -252,36 +231,12 @@ export class KupChip {
|
|
|
252
231
|
"type": "unknown",
|
|
253
232
|
"mutable": true,
|
|
254
233
|
"complexType": {
|
|
255
|
-
"original": "
|
|
256
|
-
"resolved": "
|
|
257
|
-
"references": {
|
|
258
|
-
"FChipData": {
|
|
259
|
-
"location": "import",
|
|
260
|
-
"path": "../../f-components/f-chip/f-chip-declarations"
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"required": false,
|
|
265
|
-
"optional": false,
|
|
266
|
-
"docs": {
|
|
267
|
-
"tags": [{
|
|
268
|
-
"name": "default",
|
|
269
|
-
"text": "[]"
|
|
270
|
-
}],
|
|
271
|
-
"text": "List of elements."
|
|
272
|
-
},
|
|
273
|
-
"defaultValue": "[]"
|
|
274
|
-
},
|
|
275
|
-
"dataNew": {
|
|
276
|
-
"type": "unknown",
|
|
277
|
-
"mutable": true,
|
|
278
|
-
"complexType": {
|
|
279
|
-
"original": "TreeNode[]",
|
|
280
|
-
"resolved": "TreeNode[]",
|
|
234
|
+
"original": "KupChipNode[]",
|
|
235
|
+
"resolved": "KupChipNode[]",
|
|
281
236
|
"references": {
|
|
282
|
-
"
|
|
237
|
+
"KupChipNode": {
|
|
283
238
|
"location": "import",
|
|
284
|
-
"path": "
|
|
239
|
+
"path": "./kup-chip-declarations"
|
|
285
240
|
}
|
|
286
241
|
}
|
|
287
242
|
},
|
|
@@ -484,4 +439,8 @@ export class KupChip {
|
|
|
484
439
|
}
|
|
485
440
|
}; }
|
|
486
441
|
static get elementRef() { return "rootElement"; }
|
|
442
|
+
static get watchers() { return [{
|
|
443
|
+
"propName": "data",
|
|
444
|
+
"methodName": "checkDataset"
|
|
445
|
+
}]; }
|
|
487
446
|
}
|