@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
|
@@ -54,7 +54,12 @@ export declare enum KupLanguageColumn {
|
|
|
54
54
|
ADD = "columnAdd",
|
|
55
55
|
ADD_DESCRIPTION = "columnAddDescription",
|
|
56
56
|
COLUMNS = "columnColumns",
|
|
57
|
-
HIDE = "columnHide"
|
|
57
|
+
HIDE = "columnHide",
|
|
58
|
+
MERGE = "columnMerge",
|
|
59
|
+
NO_FORMULA = "columnNoFormula",
|
|
60
|
+
NON_NUMERICAL = "columnNonNumerical",
|
|
61
|
+
NON_NUMERICAL_IN_TABLE = "columnNonNumericalInTable",
|
|
62
|
+
SWAP = "columnSwap"
|
|
58
63
|
}
|
|
59
64
|
/**
|
|
60
65
|
* Debug widget decodes.
|
|
@@ -114,8 +119,10 @@ export declare enum KupLanguageGeneric {
|
|
|
114
119
|
LAYOUT_NYI = "genericLayoutNotYetImplemented",
|
|
115
120
|
LIST = "genericList",
|
|
116
121
|
LOAD_MORE = "genericLoadMoreData",
|
|
122
|
+
MERGE = "genericMerge",
|
|
117
123
|
MENU = "genericMenu",
|
|
118
124
|
MONTH = "genericMonth",
|
|
125
|
+
MOVE = "genericMove",
|
|
119
126
|
NEXT = "genericNext",
|
|
120
127
|
OPEN_NAVIGATION_MENU = "genericOpenNavigationMenu",
|
|
121
128
|
OPEN_IN_NEW_TAB = "genericOpenInNewTab",
|
|
@@ -127,6 +134,7 @@ export declare enum KupLanguageGeneric {
|
|
|
127
134
|
SHOW_ROW_OPTIONS = "genericShowRowOptions",
|
|
128
135
|
SHOW_TOOLTIP_INFO = "genericShowTooltipInfo",
|
|
129
136
|
SORT_BY = "genericSortBy",
|
|
137
|
+
SWAP = "genericSwap",
|
|
130
138
|
TOGGLE = "genericToggle",
|
|
131
139
|
TODAY = "genericToday",
|
|
132
140
|
TOTALS_TABLE = "genericTotalsTable",
|
|
@@ -189,9 +197,11 @@ export declare enum KupLanguageTotals {
|
|
|
189
197
|
CALCULATE = "totalsCalculate",
|
|
190
198
|
CANCEL = "totalsCancel",
|
|
191
199
|
COUNT = "totalsCount",
|
|
200
|
+
DIFFERENCE = "totalsDifference",
|
|
192
201
|
DISTINCT = "totalsDistinct",
|
|
193
202
|
FORMULA = "totalsFormula",
|
|
194
203
|
MAXIMUM = "totalsMaximum",
|
|
195
204
|
MINIMUM = "totalsMinimum",
|
|
205
|
+
PRODUCT = "totalsProduct",
|
|
196
206
|
SUM = "totalsSum"
|
|
197
207
|
}
|
|
@@ -34,17 +34,17 @@ export declare class KupLanguage {
|
|
|
34
34
|
*/
|
|
35
35
|
decodeLanguage(language: string): KupLanguageDecode;
|
|
36
36
|
/**
|
|
37
|
-
* Gets the name of available languages.
|
|
37
|
+
* Gets the name of available languages and variants.
|
|
38
38
|
* @returns {Array<string>} Array of languages' names.
|
|
39
39
|
*/
|
|
40
40
|
getLanguages(): Array<string>;
|
|
41
41
|
/**
|
|
42
|
-
* Registers a KupComponent in KupLanguage, in order to be
|
|
42
|
+
* Registers a KupComponent in KupLanguage, in order to be automatically refreshed whenever the language changes.
|
|
43
43
|
* @param {any} component - The component calling this function.
|
|
44
44
|
*/
|
|
45
45
|
register(component: any): void;
|
|
46
46
|
/**
|
|
47
|
-
* Unregisters a KupComponent, so it won't be
|
|
47
|
+
* Unregisters a KupComponent, so it won't be refreshed when the language changes.
|
|
48
48
|
*
|
|
49
49
|
* @param {any} component - The component calling this function.
|
|
50
50
|
*/
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import type { Interaction } from '@interactjs/core/Interaction';
|
|
2
2
|
import type { ActionMap } from '@interactjs/core/scope';
|
|
3
3
|
import type { RectResolvable } from '@interactjs/types/index';
|
|
4
|
+
import type { KupData } from '../kup-data/kup-data';
|
|
4
5
|
import type { KupDates } from '../kup-dates/kup-dates';
|
|
6
|
+
import type { KupDatesLocales } from '../kup-dates/kup-dates-declarations';
|
|
5
7
|
import type { KupDebug } from '../kup-debug/kup-debug';
|
|
6
8
|
import type { KupDynamicPosition } from '../kup-dynamic-position/kup-dynamic-position';
|
|
7
9
|
import type { KupInteract } from '../kup-interact/kup-interact';
|
|
8
10
|
import type { KupLanguage } from '../kup-language/kup-language';
|
|
9
11
|
import type { KupLanguageJSON } from '../kup-language/kup-language-declarations';
|
|
12
|
+
import type { KupMath } from '../kup-math/kup-math';
|
|
10
13
|
import type { KupObjects } from '../kup-objects/kup-objects';
|
|
11
14
|
import type { KupObjectsJSON } from '../kup-objects/kup-objects-declarations';
|
|
12
15
|
import type { KupScrollOnHover } from '../kup-scroll-on-hover/kup-scroll-on-hover';
|
|
16
|
+
import type { KupSearch } from '../kup-search/kup-search';
|
|
13
17
|
import type { KupTheme } from '../kup-theme/kup-theme';
|
|
14
18
|
import type { KupThemeJSON } from '../kup-theme/kup-theme-declarations';
|
|
15
19
|
import type { KupToolbar } from '../kup-toolbar/kup-toolbar';
|
|
16
20
|
import type { ResizeObserver } from 'resize-observer';
|
|
17
|
-
import {
|
|
18
|
-
import { KupSearch } from '../kup-search/kup-search';
|
|
21
|
+
import { KupMathLocales } from '../kup-math/kup-math-declarations';
|
|
19
22
|
/**
|
|
20
23
|
* Interface used to define the HTML element with Ketchup specific properties.
|
|
21
24
|
*/
|
|
@@ -27,12 +30,14 @@ export interface KupDom extends HTMLHtmlElement {
|
|
|
27
30
|
* Interface for the KupManager class
|
|
28
31
|
*/
|
|
29
32
|
export interface KupManager {
|
|
33
|
+
data: KupData;
|
|
30
34
|
dates: KupDates;
|
|
31
35
|
debug: KupDebug;
|
|
32
36
|
dynamicPosition: KupDynamicPosition;
|
|
33
37
|
interact: KupInteract;
|
|
34
38
|
language: KupLanguage;
|
|
35
39
|
magicBox: HTMLKupMagicBoxElement;
|
|
40
|
+
math: KupMath;
|
|
36
41
|
objects: KupObjects;
|
|
37
42
|
overrides?: KupManagerInitialization;
|
|
38
43
|
resize: ResizeObserver;
|
|
@@ -66,10 +71,12 @@ export interface KupManagerClickCb {
|
|
|
66
71
|
* Interface for the KupManager override settings.
|
|
67
72
|
*/
|
|
68
73
|
export interface KupManagerInitialization {
|
|
74
|
+
autoSetLocalization?: boolean;
|
|
69
75
|
dates?: KupManagerDatesSettings;
|
|
70
76
|
debug?: KupManagerDebugSettings;
|
|
71
77
|
interact?: KupManagerInteractSettings;
|
|
72
78
|
language?: KupManagerLanguageSettings;
|
|
79
|
+
math?: KupManagerMathSettings;
|
|
73
80
|
objects?: KupManagerObjectsSettings;
|
|
74
81
|
scrollOnHover?: KupManagerScrollOnHoverSettings;
|
|
75
82
|
theme?: KupManagerThemeSettings;
|
|
@@ -106,6 +113,12 @@ export interface KupManagerLanguageSettings {
|
|
|
106
113
|
list?: KupLanguageJSON;
|
|
107
114
|
name?: string;
|
|
108
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* KupMath initialization settings.
|
|
118
|
+
*/
|
|
119
|
+
export interface KupManagerMathSettings {
|
|
120
|
+
locale?: KupMathLocales;
|
|
121
|
+
}
|
|
109
122
|
/**
|
|
110
123
|
* KupObjects initialization settings.
|
|
111
124
|
*/
|
|
@@ -126,3 +139,9 @@ export interface KupManagerThemeSettings {
|
|
|
126
139
|
list?: KupThemeJSON;
|
|
127
140
|
name?: string;
|
|
128
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* KupTheme initialization settings.
|
|
144
|
+
*/
|
|
145
|
+
export interface KupManagerStringFinderPayload {
|
|
146
|
+
string: string;
|
|
147
|
+
}
|
|
@@ -8,20 +8,24 @@ import { KupScrollOnHover } from '../kup-scroll-on-hover/kup-scroll-on-hover';
|
|
|
8
8
|
import { KupTheme } from '../kup-theme/kup-theme';
|
|
9
9
|
import { KupToolbar } from '../kup-toolbar/kup-toolbar';
|
|
10
10
|
import { ResizeObserver } from 'resize-observer';
|
|
11
|
+
import { KupData } from '../kup-data/kup-data';
|
|
11
12
|
import { KupDates } from '../kup-dates/kup-dates';
|
|
12
13
|
import { KupDatesLocales } from '../kup-dates/kup-dates-declarations';
|
|
13
14
|
import { KupSearch } from '../kup-search/kup-search';
|
|
15
|
+
import { KupMath } from '../kup-math/kup-math';
|
|
14
16
|
/**
|
|
15
17
|
* This class controls every other Ketchup utility suite.
|
|
16
18
|
* @module KupManager
|
|
17
19
|
*/
|
|
18
20
|
export declare class KupManager {
|
|
21
|
+
data: KupData;
|
|
19
22
|
dates: KupDates;
|
|
20
23
|
debug: KupDebug;
|
|
21
24
|
dynamicPosition: KupDynamicPosition;
|
|
22
25
|
interact: KupInteract;
|
|
23
26
|
language: KupLanguage;
|
|
24
27
|
magicBox: HTMLKupMagicBoxElement;
|
|
28
|
+
math: KupMath;
|
|
25
29
|
objects: KupObjects;
|
|
26
30
|
overrides?: KupManagerInitialization;
|
|
27
31
|
resize: ResizeObserver;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface related to the formulas factory function.
|
|
3
|
+
*/
|
|
4
|
+
export interface KupMathFormulas {
|
|
5
|
+
custom: (formula: string, row: {
|
|
6
|
+
[index: string]: number;
|
|
7
|
+
}) => number;
|
|
8
|
+
normalDistribution: (average: number, variance: number, x: number) => number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Locales available for KupMath.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum KupMathLocales {
|
|
14
|
+
cn = "chs",
|
|
15
|
+
en = "en",
|
|
16
|
+
es = "es",
|
|
17
|
+
it = "it",
|
|
18
|
+
fr = "fr",
|
|
19
|
+
pl = "pl",
|
|
20
|
+
ru = "ru"
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Takes a mathematical formula as string in input, with column names between brackets, and returns the result as a number.
|
|
3
|
+
* @param {string} formula - Mathematical operation (i.e.: ([COL1] - [COL2]) * 100 / [COL3]).
|
|
4
|
+
* @param {{ [index: string]: number }} row - Object containing column names as indexes and the related values as keys.
|
|
5
|
+
* @returns {number} Result of the formula.
|
|
6
|
+
*/
|
|
7
|
+
export declare function customFormula(formula: string, row: {
|
|
8
|
+
[index: string]: number;
|
|
9
|
+
}): number;
|
|
10
|
+
/**
|
|
11
|
+
* Calculates a single Y point of a normal distribution.
|
|
12
|
+
* @param {number} average - Average.
|
|
13
|
+
* @param {number} variance - Variance.
|
|
14
|
+
* @param {number} x - X coordinate.
|
|
15
|
+
* @returns {number} Result.
|
|
16
|
+
*/
|
|
17
|
+
export declare function normalDistributionFormula(average: number, variance: number, x: number): number;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import numeral from 'numeral';
|
|
2
|
+
import 'numeral/locales/chs';
|
|
3
|
+
import 'numeral/locales/es';
|
|
4
|
+
import 'numeral/locales/fr';
|
|
5
|
+
import 'numeral/locales/it';
|
|
6
|
+
import 'numeral/locales/pl';
|
|
7
|
+
import 'numeral/locales/ru';
|
|
8
|
+
import { KupComponent } from '../../types/GenericTypes';
|
|
9
|
+
import { KupMathFormulas, KupMathLocales } from './kup-math-declarations';
|
|
10
|
+
/**
|
|
11
|
+
* Handles mathematical operations and number formatting/conversion.
|
|
12
|
+
* @module KupMath
|
|
13
|
+
*/
|
|
14
|
+
export declare class KupMath {
|
|
15
|
+
formulas: KupMathFormulas;
|
|
16
|
+
locale: KupMathLocales;
|
|
17
|
+
managedComponents: Set<KupComponent>;
|
|
18
|
+
numeral: typeof numeral;
|
|
19
|
+
/**
|
|
20
|
+
* Initializes KupMath.
|
|
21
|
+
*/
|
|
22
|
+
constructor(locale?: KupMathLocales);
|
|
23
|
+
/**
|
|
24
|
+
* Sets the locale of the numeral instance.
|
|
25
|
+
* @param {KupMathLocales} locale - Numeraljs locale string.
|
|
26
|
+
*/
|
|
27
|
+
setLocale(locale: KupMathLocales): void;
|
|
28
|
+
/**
|
|
29
|
+
* Calculates the normal distribution on a set of values.
|
|
30
|
+
* @param {string[] | number[] | String[]} values - Array of values.
|
|
31
|
+
* @param {number} precision - Number of iterations to run (points). When not specified, defaults to 201.
|
|
32
|
+
* @returns {number[][]} Returns an array of arrays containing numbers, which are the representation of the calculated normal distribution.
|
|
33
|
+
*/
|
|
34
|
+
normalDistribution(values: string[] | number[] | String[], precision?: number): number[][];
|
|
35
|
+
/**
|
|
36
|
+
* Formats the input number with the specified format of the currently set locale.
|
|
37
|
+
* @param {string | String | number} input - Input number which will be automatically "numberified".
|
|
38
|
+
* @param {string} format - Desired format. Defaults to '0,0.0' (i.e.: 2,000,000.51).
|
|
39
|
+
* @returns {string} Formatted number.
|
|
40
|
+
*/
|
|
41
|
+
format(input: string | String | number, format?: string): string;
|
|
42
|
+
/**
|
|
43
|
+
* Returns a number from a non-specified input type between string, number, or String.
|
|
44
|
+
* @param {string | String | number} input - Input value to numberify.
|
|
45
|
+
* @param {boolean} inputIsLocalized - Numberifies assuming the input string is in the current KupMath locale's format.
|
|
46
|
+
* @returns {number} Resulting number or NaN (when not a number).
|
|
47
|
+
*/
|
|
48
|
+
numberify(input: string | String | number, inputIsLocalized?: boolean): number;
|
|
49
|
+
/**
|
|
50
|
+
* Registers a KupComponent in KupMath, in order to be properly handled whenever the locale changes.
|
|
51
|
+
* @param {any} component - The Ketchup component to be registered.
|
|
52
|
+
*/
|
|
53
|
+
register(component: any): void;
|
|
54
|
+
/**
|
|
55
|
+
* Unregisters a KupComponent, so it won't be refreshed when the locale changes.
|
|
56
|
+
*
|
|
57
|
+
* @param {any} component - The component calling this function.
|
|
58
|
+
*/
|
|
59
|
+
unregister(component: any): void;
|
|
60
|
+
}
|
|
File without changes
|
|
@@ -161,6 +161,12 @@ export declare class KupObjects {
|
|
|
161
161
|
* @returns {boolean} True when the object is null or empty.
|
|
162
162
|
*/
|
|
163
163
|
isEmptyKupObj(obj: KupObj): boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Checks whether the arguments have the same object or not.
|
|
166
|
+
* @param {KupObj[]} objs - Array of KupObj.
|
|
167
|
+
* @returns {boolean} True when it's the same object.
|
|
168
|
+
*/
|
|
169
|
+
isSameKupObj(objs: KupObj[]): boolean;
|
|
164
170
|
/**
|
|
165
171
|
* Parses a date depending on the object's type.
|
|
166
172
|
* @param {KupObj} obj - Object to check.
|
package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,44 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GenericObject, KupTagNames } from '../../types/GenericTypes';
|
|
2
2
|
/**
|
|
3
3
|
* Variable used to fetch the MASTER customStyle (used in every component).
|
|
4
4
|
*/
|
|
5
5
|
export declare const masterCustomStyle = "MASTER";
|
|
6
|
+
/**
|
|
7
|
+
* Components using the FButton functional component.
|
|
8
|
+
*/
|
|
9
|
+
export declare const fButtonUsers: KupTagNames[];
|
|
10
|
+
/**
|
|
11
|
+
* Components using the FCell functional component.
|
|
12
|
+
*/
|
|
13
|
+
export declare const fCellUsers: KupTagNames[];
|
|
14
|
+
/**
|
|
15
|
+
* Components using the FCheckbox functional component.
|
|
16
|
+
*/
|
|
17
|
+
export declare const fCheckboxUsers: KupTagNames[];
|
|
18
|
+
/**
|
|
19
|
+
* Components using the FChip functional component.
|
|
20
|
+
*/
|
|
21
|
+
export declare const fChipUsers: KupTagNames[];
|
|
22
|
+
/**
|
|
23
|
+
* Components using the FImage functional component.
|
|
24
|
+
*/
|
|
25
|
+
export declare const fImageUsers: KupTagNames[];
|
|
26
|
+
/**
|
|
27
|
+
* Components using the FPaginator functional component.
|
|
28
|
+
*/
|
|
29
|
+
export declare const fPaginatorUsers: KupTagNames[];
|
|
30
|
+
/**
|
|
31
|
+
* Components using the FSwitch functional component.
|
|
32
|
+
*/
|
|
33
|
+
export declare const fSwitchUsers: KupTagNames[];
|
|
34
|
+
/**
|
|
35
|
+
* Components using the FTextField functional component.
|
|
36
|
+
*/
|
|
37
|
+
export declare const fTextFieldUsers: KupTagNames[];
|
|
38
|
+
/**
|
|
39
|
+
* Components using the MDC ripple effect.
|
|
40
|
+
*/
|
|
41
|
+
export declare const rippleUsers: KupTagNames[];
|
|
6
42
|
/**
|
|
7
43
|
* Interface of the themes JSON.
|
|
8
44
|
*/
|
|
@@ -14,43 +14,43 @@ export declare class KupTheme {
|
|
|
14
14
|
* Initializes KupTheme.
|
|
15
15
|
*/
|
|
16
16
|
constructor(list?: KupThemeJSON, name?: string);
|
|
17
|
-
/**
|
|
18
|
-
* Sets the theme using this.name or the function's argument.
|
|
19
|
-
* @param {string} name - When present, this theme will be set.
|
|
20
|
-
*/
|
|
21
|
-
set(name?: string, list?: KupThemeJSON): void;
|
|
22
|
-
/**
|
|
23
|
-
* Gets the name of available themes (filters out themes named "test").
|
|
24
|
-
* @returns {Array<string>} Array of themes' names.
|
|
25
|
-
*/
|
|
26
|
-
getThemes(): Array<string>;
|
|
27
17
|
/**
|
|
28
18
|
* Sets the CSS variables of the theme.
|
|
29
19
|
*/
|
|
30
|
-
imports
|
|
20
|
+
private imports;
|
|
31
21
|
/**
|
|
32
22
|
* Sets the CSS variables of the theme.
|
|
33
23
|
*/
|
|
34
|
-
cssVariables
|
|
24
|
+
private cssVariables;
|
|
35
25
|
/**
|
|
36
26
|
* Sets the icon variables of the theme.
|
|
37
27
|
*/
|
|
38
|
-
icons
|
|
28
|
+
private icons;
|
|
39
29
|
/**
|
|
40
30
|
* Refreshed managed components to apply theme customStyles.
|
|
41
31
|
*/
|
|
42
|
-
customStyle
|
|
32
|
+
private customStyle;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the theme using this.name or the function's argument.
|
|
35
|
+
* @param {string} name - When present, this theme will be set.
|
|
36
|
+
*/
|
|
37
|
+
set(name?: string, list?: KupThemeJSON): void;
|
|
38
|
+
/**
|
|
39
|
+
* Gets the name of available themes.
|
|
40
|
+
* @returns {Array<string>} Array of themes' names.
|
|
41
|
+
*/
|
|
42
|
+
getThemes(): Array<string>;
|
|
43
43
|
/**
|
|
44
44
|
* This method will just refresh the current theme.
|
|
45
45
|
*/
|
|
46
46
|
refresh(): void;
|
|
47
47
|
/**
|
|
48
|
-
* Registers a KupComponent in KupTheme, in order to be properly
|
|
48
|
+
* Registers a KupComponent in KupTheme, in order to be properly refreshed whenever the theme changes.
|
|
49
49
|
* @param {any} comp - The component calling this function.
|
|
50
50
|
*/
|
|
51
51
|
register(comp: any): void;
|
|
52
52
|
/**
|
|
53
|
-
* Unregisters a KupComponent, so it won't be
|
|
53
|
+
* Unregisters a KupComponent, so it won't be refreshed when the theme changes.
|
|
54
54
|
* @param {any} comp - The component calling this function.
|
|
55
55
|
*/
|
|
56
56
|
unregister(comp: any): void;
|
|
@@ -73,12 +73,12 @@ export declare class KupTheme {
|
|
|
73
73
|
*/
|
|
74
74
|
randomColor(brightness: number): string;
|
|
75
75
|
/**
|
|
76
|
-
* Sets a random theme between those specified in this.list (excludes "print" and "test").
|
|
76
|
+
* Sets a random theme between those specified in this.list (excludes "print" and "test") and different from the currently used one.
|
|
77
77
|
*/
|
|
78
78
|
randomTheme(): void;
|
|
79
79
|
/**
|
|
80
|
-
* Returns HEX, RGB and RGB values from a given color.
|
|
81
|
-
* @param {string} color -
|
|
80
|
+
* Returns HEX, RGB, HSL, HSL values and RGB values from a given color.
|
|
81
|
+
* @param {string} color - Input color.
|
|
82
82
|
* @returns {KupThemeColor} Object of color values: hexColor ("#ffffff"), hslColor ("hsl(255,100%,100%)"), hslValues ("255,100%,100%"), rgbColor ("rgb(255,255,255)") and rgbValues ("255,255,255").
|
|
83
83
|
*/
|
|
84
84
|
colorCheck(color: string): KupThemeColor;
|
|
File without changes
|
|
File without changes
|
|
@@ -666,7 +666,7 @@ export declare namespace JSXBase {
|
|
|
666
666
|
use: JSXBase.SVGAttributes;
|
|
667
667
|
view: JSXBase.SVGAttributes;
|
|
668
668
|
}
|
|
669
|
-
interface SlotAttributes {
|
|
669
|
+
interface SlotAttributes extends JSXAttributes {
|
|
670
670
|
name?: string;
|
|
671
671
|
slot?: string;
|
|
672
672
|
onSlotchange?: (event: Event) => void;
|
|
@@ -1427,9 +1427,7 @@ export declare namespace JSXBase {
|
|
|
1427
1427
|
z?: number | string;
|
|
1428
1428
|
zoomAndPan?: string;
|
|
1429
1429
|
}
|
|
1430
|
-
interface DOMAttributes<T
|
|
1431
|
-
key?: string | number;
|
|
1432
|
-
ref?: (elm?: T) => void;
|
|
1430
|
+
interface DOMAttributes<T> extends JSXAttributes<T> {
|
|
1433
1431
|
slot?: string;
|
|
1434
1432
|
part?: string;
|
|
1435
1433
|
exportparts?: string;
|
|
@@ -1550,6 +1548,10 @@ export declare namespace JSXBase {
|
|
|
1550
1548
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1551
1549
|
}
|
|
1552
1550
|
}
|
|
1551
|
+
export interface JSXAttributes<T = Element> {
|
|
1552
|
+
key?: string | number;
|
|
1553
|
+
ref?: (elm?: T) => void;
|
|
1554
|
+
}
|
|
1553
1555
|
export interface CustomElementsDefineOptions {
|
|
1554
1556
|
exclude?: string[];
|
|
1555
1557
|
resourcesUrl?: string;
|
|
@@ -37,16 +37,16 @@ export interface FComponent {
|
|
|
37
37
|
wrapperClass?: string;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* Generic
|
|
40
|
+
* Generic map.
|
|
41
41
|
*/
|
|
42
|
-
export interface
|
|
43
|
-
[index: string]:
|
|
42
|
+
export interface GenericMap {
|
|
43
|
+
[index: string]: string;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Generic object.
|
|
47
47
|
*/
|
|
48
|
-
export interface
|
|
49
|
-
|
|
48
|
+
export interface GenericObject {
|
|
49
|
+
[index: string]: any;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Generic payload of a kup event.
|
|
@@ -55,3 +55,50 @@ export interface KupEventPayload {
|
|
|
55
55
|
comp: any;
|
|
56
56
|
id: string;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Ketchup elements tag names.
|
|
60
|
+
*/
|
|
61
|
+
export declare enum KupTagNames {
|
|
62
|
+
ACCORDION = "KUP-ACCORDION",
|
|
63
|
+
AUTOCOMPLETE = "KUP-AUTOCOMPLETE",
|
|
64
|
+
BADGE = "KUP-BADGE",
|
|
65
|
+
BOX = "KUP-BOX",
|
|
66
|
+
BUTTON = "KUP-BUTTON",
|
|
67
|
+
BUTTON_LIST = "KUP-BUTTON-LIST",
|
|
68
|
+
CALENDAR = "KUP-CALENDAR",
|
|
69
|
+
CARD = "KUP-CARD",
|
|
70
|
+
CELL = "KUP-CELL",
|
|
71
|
+
CHART = "KUP-CHART",
|
|
72
|
+
CHECKBOX = "KUP-CHECKBOX",
|
|
73
|
+
CHIP = "KUP-CHIP",
|
|
74
|
+
COLOR_PICKER = "KUP-COLOR-PICKER",
|
|
75
|
+
COMBOBOX = "KUP-COMBOBOX",
|
|
76
|
+
DASH = "KUP-DASH",
|
|
77
|
+
DASH_LIST = "KUP-DASH-LIST",
|
|
78
|
+
DATA_TABLE = "KUP-DATA-TABLE",
|
|
79
|
+
DATE_PICKER = "KUP-DATE-PICKER",
|
|
80
|
+
DRAWER = "KUP-DRAWER",
|
|
81
|
+
DROPDOWN_BUTTON = "KUP-DROPDOWN-BUTTON",
|
|
82
|
+
FIELD = "KUP-FIELD",
|
|
83
|
+
GAUGE = "KUP-GAUGE",
|
|
84
|
+
GRID = "KUP-GRID",
|
|
85
|
+
IFRAME = "KUP-IFRAME",
|
|
86
|
+
IMAGE = "KUP-IMAGE",
|
|
87
|
+
LAZY = "KUP-LAZY",
|
|
88
|
+
LIST = "KUP-LIST",
|
|
89
|
+
MAGIC_BOX = "KUP-MAGIC-BOX",
|
|
90
|
+
NAV_BAR = "KUP-NAV-BAR",
|
|
91
|
+
PROBE = "KUP-PROBE",
|
|
92
|
+
PROGRESS_BAR = "KUP-PROGRESS-BAR",
|
|
93
|
+
QLIK = "KUP-QLIK",
|
|
94
|
+
RADIO = "KUP-RADIO",
|
|
95
|
+
RATING = "KUP-RATING",
|
|
96
|
+
SNACKBAR = "KUP-SNACKBAR",
|
|
97
|
+
SPINNER = "KUP-SPINNER",
|
|
98
|
+
SWITCH = "KUP-SWITCH",
|
|
99
|
+
TAB_BAR = "KUP-TAB-BAR",
|
|
100
|
+
TEXT_FIELD = "KUP-TEXT-FIELD",
|
|
101
|
+
TIME_PICKER = "KUP-TIME-PICKER",
|
|
102
|
+
TOOLTIP = "KUP-TOOLTIP",
|
|
103
|
+
TREE = "KUP-TREE"
|
|
104
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SortMode } from '../components/kup-data-table/kup-data-table-declarations';
|
|
2
2
|
import { ValueDisplayedValue } from './filters/filters-declarations';
|
|
3
|
-
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
3
|
+
import { KupDataCell, KupDataColumn } from '../managers/kup-data/kup-data-declarations';
|
|
4
|
+
export declare function getCellValueForDisplay(column: KupDataColumn, cell: KupDataCell): string;
|
|
5
|
+
export declare function getValueForDisplay2(values: ValueDisplayedValue, column?: KupDataColumn): string;
|
|
6
|
+
export declare function formatToNumber(cell: KupDataCell): number;
|
|
6
7
|
export declare function getValueForDisplay(value: any, obj: any, decimals: number): string;
|
|
7
|
-
export declare function getColumnByName(columns:
|
|
8
|
-
export declare function compareCell(cell1:
|
|
8
|
+
export declare function getColumnByName(columns: KupDataColumn[], name: string): KupDataColumn;
|
|
9
|
+
export declare function compareCell(cell1: KupDataCell, cell2: KupDataCell, sortMode: SortMode): number;
|
|
9
10
|
export declare function compareValues(obj1: any, value1: any, obj2: any, value2: any, sortMode: SortMode): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { KupDataColumn } from '../../managers/kup-data/kup-data-declarations';
|
|
2
2
|
import { Filters } from './filters';
|
|
3
3
|
import { FilterInterval, GenericFilter, ValueDisplayedValue } from './filters-declarations';
|
|
4
4
|
/**
|
|
@@ -10,14 +10,14 @@ export declare class FiltersColumnMenu extends Filters {
|
|
|
10
10
|
/**
|
|
11
11
|
* Gets the value of the filter prop.
|
|
12
12
|
* @param {GenericFilter} filters - Filters of the component.
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {string} column - Name of the column.
|
|
14
14
|
* @returns {string} Value of the filter.
|
|
15
15
|
*/
|
|
16
16
|
getTextFilterValue(filters: GenericFilter, column: string): string;
|
|
17
17
|
/**
|
|
18
18
|
* Gets the value of the filter prop, set temporarly.
|
|
19
19
|
* @param {GenericFilter} filters - Filters of the component.
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {string} column - Name of the column.
|
|
21
21
|
* @returns {string} Value of the filter.
|
|
22
22
|
*/
|
|
23
23
|
getTextFilterValueTmp(filters: GenericFilter, column: string): string;
|
|
@@ -25,39 +25,39 @@ export declare class FiltersColumnMenu extends Filters {
|
|
|
25
25
|
/**
|
|
26
26
|
* Returns whether a column has filters or not.
|
|
27
27
|
* @param {GenericFilter} filters - Filters of the component.
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {KupDataColumn} column - Name of the column.
|
|
29
29
|
* @returns {boolean} True when a given column has filters.
|
|
30
30
|
*/
|
|
31
|
-
hasFiltersForColumn(filters: GenericFilter, column:
|
|
31
|
+
hasFiltersForColumn(filters: GenericFilter, column: KupDataColumn): boolean;
|
|
32
32
|
/**
|
|
33
33
|
* Returns whether a column has filters or not.
|
|
34
34
|
* @param {GenericFilter} filters - Filters of the component.
|
|
35
|
-
* @param {
|
|
35
|
+
* @param {KupDataColumn} column - Name of the column.
|
|
36
36
|
* @returns {boolean} True when a given column has filters.
|
|
37
37
|
*/
|
|
38
|
-
hasFiltersForColumnTmp(filters: GenericFilter, column:
|
|
38
|
+
hasFiltersForColumnTmp(filters: GenericFilter, column: KupDataColumn): boolean;
|
|
39
39
|
/**
|
|
40
40
|
* Returns whether a column has filters or not.
|
|
41
41
|
* @param {GenericFilter} filters - Filters of the component.
|
|
42
|
-
* @param {
|
|
42
|
+
* @param {KupDataColumn} column - Name of the column.
|
|
43
43
|
* @returns {boolean} True when a given column has filters.
|
|
44
44
|
*/
|
|
45
45
|
private _hasFiltersForColumn;
|
|
46
46
|
/**
|
|
47
47
|
* Returns the values of column menu's checkboxes.
|
|
48
48
|
* @param {GenericFilter} filters - Filters of the component.
|
|
49
|
-
* @param {
|
|
49
|
+
* @param {string} column - Name of the column.
|
|
50
50
|
* @returns {Array<string>} Array of checkboxes values.
|
|
51
51
|
*/
|
|
52
52
|
getCheckBoxFilterValues(filters: GenericFilter, column: string): ValueDisplayedValue[];
|
|
53
53
|
/**
|
|
54
54
|
* Returns whether a text field should be a date or time picker.
|
|
55
55
|
* @param {GenericFilter} filters - Filters of the component.
|
|
56
|
-
* @param {
|
|
56
|
+
* @param {KupDataColumn} column - Name of the column.
|
|
57
57
|
* @returns {boolean} True when the text field is a date or time picker.
|
|
58
58
|
*/
|
|
59
|
-
hasIntervalTextFieldFilterValues(filters: GenericFilter, column:
|
|
60
|
-
hasIntervalTextFieldFilterValuesTmp(filters: GenericFilter, column:
|
|
59
|
+
hasIntervalTextFieldFilterValues(filters: GenericFilter, column: KupDataColumn): boolean;
|
|
60
|
+
hasIntervalTextFieldFilterValuesTmp(filters: GenericFilter, column: KupDataColumn): boolean;
|
|
61
61
|
private _hasIntervalTextFieldFilterValues;
|
|
62
62
|
/**
|
|
63
63
|
* Triggers when a new filter checkbox becomes checked.
|
|
@@ -73,9 +73,9 @@ export declare class FiltersColumnMenu extends Filters {
|
|
|
73
73
|
* @param {string} remFilter - Removed filter.
|
|
74
74
|
*/
|
|
75
75
|
removeCheckboxFilter(filters: GenericFilter, column: string, remFilter: string): void;
|
|
76
|
-
isColumnFiltrableByInterval(column:
|
|
77
|
-
getIntervalTextFieldFilterValues(filters: GenericFilter, column:
|
|
78
|
-
getIntervalTextFieldFilterValuesTmp(filters: GenericFilter, column:
|
|
76
|
+
isColumnFiltrableByInterval(column: KupDataColumn): boolean;
|
|
77
|
+
getIntervalTextFieldFilterValues(filters: GenericFilter, column: KupDataColumn): Array<string>;
|
|
78
|
+
getIntervalTextFieldFilterValuesTmp(filters: GenericFilter, column: KupDataColumn): Array<string>;
|
|
79
79
|
private _getIntervalTextFieldFilterValues;
|
|
80
80
|
getIntervalTextFieldFilterValue(filters: GenericFilter, column: string, index: FilterInterval): string;
|
|
81
81
|
getIntervalTextFieldFilterValueTmp(filters: GenericFilter, column: string, index: FilterInterval): string;
|
|
@@ -86,7 +86,7 @@ export declare class FiltersColumnMenu extends Filters {
|
|
|
86
86
|
private _setIntervalTextFieldFilterValue;
|
|
87
87
|
saveTextualFilters(filters: GenericFilter, column: string): void;
|
|
88
88
|
resetTextualFilters(filters: GenericFilter, column: string): void;
|
|
89
|
-
getFilterValueForTooltip(filters: GenericFilter, column:
|
|
89
|
+
getFilterValueForTooltip(filters: GenericFilter, column: KupDataColumn): string;
|
|
90
90
|
/**
|
|
91
91
|
* Triggers when a filter must be removed, for column.
|
|
92
92
|
* @param {GenericFilter} filters - Filters of the component.
|