@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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"./components/kup-card/kup-card.js",
|
|
4
4
|
"./components/kup-badge/kup-badge.js",
|
|
5
5
|
"./components/kup-tooltip/kup-tooltip.js",
|
|
6
|
+
"./components/kup-text-field/kup-text-field.js",
|
|
6
7
|
"./components/kup-chart/kup-chart.js",
|
|
7
8
|
"./components/kup-data-table/kup-data-table.js",
|
|
8
9
|
"./components/kup-tree/kup-tree.js",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"./components/kup-date-picker/kup-date-picker.js",
|
|
23
24
|
"./components/kup-drawer/kup-drawer.js",
|
|
24
25
|
"./components/kup-dropdown-button/kup-dropdown-button.js",
|
|
26
|
+
"./components/kup-echart/kup-echart.js",
|
|
25
27
|
"./components/kup-field/kup-field.js",
|
|
26
28
|
"./components/kup-gauge/kup-gauge.js",
|
|
27
29
|
"./components/kup-grid/kup-grid.js",
|
|
@@ -32,7 +34,6 @@
|
|
|
32
34
|
"./components/kup-list/kup-list.js",
|
|
33
35
|
"./components/kup-magic-box/kup-magic-box.js",
|
|
34
36
|
"./components/kup-nav-bar/kup-nav-bar.js",
|
|
35
|
-
"./components/kup-paginator/kup-paginator.js",
|
|
36
37
|
"./components/kup-probe/kup-probe.js",
|
|
37
38
|
"./components/kup-progress-bar/kup-progress-bar.js",
|
|
38
39
|
"./components/kup-qlik/kup-qlik.js",
|
|
@@ -41,13 +42,12 @@
|
|
|
41
42
|
"./components/kup-spinner/kup-spinner.js",
|
|
42
43
|
"./components/kup-switch/kup-switch.js",
|
|
43
44
|
"./components/kup-tab-bar/kup-tab-bar.js",
|
|
44
|
-
"./components/kup-text-field/kup-text-field.js",
|
|
45
45
|
"./components/kup-time-picker/kup-time-picker.js"
|
|
46
46
|
],
|
|
47
47
|
"compiler": {
|
|
48
48
|
"name": "@stencil/core",
|
|
49
|
-
"version": "2.
|
|
50
|
-
"typescriptVersion": "4.
|
|
49
|
+
"version": "2.14.0",
|
|
50
|
+
"typescriptVersion": "4.5.4"
|
|
51
51
|
},
|
|
52
52
|
"collections": [],
|
|
53
53
|
"bundles": []
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
|
|
2
2
|
import { MDCRipple } from '@material/ripple';
|
|
3
|
-
import { kupManagerInstance, } from '../../
|
|
3
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
4
4
|
import { getProps, setProps } from '../../utils/utils';
|
|
5
5
|
import { KupAccordionProps, } from './kup-accordion-declarations';
|
|
6
6
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
7
7
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
8
|
-
import { KupThemeColorValues, KupThemeIconValues, } from '../../
|
|
8
|
+
import { KupThemeColorValues, KupThemeIconValues, } from '../../managers/kup-theme/kup-theme-declarations';
|
|
9
9
|
export class KupAccordion {
|
|
10
10
|
constructor() {
|
|
11
11
|
/*-------------------------------------------------*/
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export var KupAutocompleteProps;
|
|
6
6
|
(function (KupAutocompleteProps) {
|
|
7
|
+
KupAutocompleteProps["allowInconsistentValues"] = "When true, the autocomplete fires the change event even when the value typed isn't included in the autocomplete list.";
|
|
7
8
|
KupAutocompleteProps["customStyle"] = "Custom style of the component.";
|
|
8
9
|
KupAutocompleteProps["data"] = "Props of the sub-components.";
|
|
9
10
|
KupAutocompleteProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
|
|
10
11
|
KupAutocompleteProps["displayMode"] = "Sets how to show the selected item value. Suported values: \"code\", \"description\", \"both\".";
|
|
11
12
|
KupAutocompleteProps["initialValue"] = "Sets the initial value of the component.";
|
|
13
|
+
KupAutocompleteProps["inputDelay"] = "Input event emission delay in milliseconds.";
|
|
12
14
|
KupAutocompleteProps["minimumChars"] = "The minimum number of chars to trigger the autocomplete.";
|
|
13
15
|
KupAutocompleteProps["selectMode"] = "Sets how to return the selected item value. Suported values: \"code\", \"description\", \"both\".";
|
|
14
16
|
KupAutocompleteProps["serverHandledFilter"] = "When true, the items filter is managed server side, otherwise items filter is done client side.";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop, State, } from '@stencil/core';
|
|
2
|
-
import { kupManagerInstance, } from '../../
|
|
2
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
3
3
|
import { FTextField } from '../../f-components/f-text-field/f-text-field';
|
|
4
4
|
import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
|
|
5
5
|
import { KupAutocompleteProps, } from './kup-autocomplete-declarations';
|
|
6
6
|
import { ItemsDisplayMode, } from '../kup-list/kup-list-declarations';
|
|
7
7
|
import { consistencyCheck } from '../kup-list/kup-list-helper';
|
|
8
|
-
import { KupThemeIconValues } from '../../
|
|
8
|
+
import { KupThemeIconValues } from '../../managers/kup-theme/kup-theme-declarations';
|
|
9
9
|
import { getProps, setProps } from '../../utils/utils';
|
|
10
10
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
11
|
-
import { KupDynamicPositionPlacement } from '../../
|
|
11
|
+
import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
12
12
|
export class KupAutocomplete {
|
|
13
13
|
constructor() {
|
|
14
14
|
/*-------------------------------------------------*/
|
|
@@ -19,6 +19,11 @@ export class KupAutocomplete {
|
|
|
19
19
|
/*-------------------------------------------------*/
|
|
20
20
|
/* P r o p s */
|
|
21
21
|
/*-------------------------------------------------*/
|
|
22
|
+
/**
|
|
23
|
+
* When true, the autocomplete fires the change event even when the value typed isn't included in the autocomplete list.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
this.allowInconsistentValues = false;
|
|
22
27
|
/**
|
|
23
28
|
* Custom style of the component.
|
|
24
29
|
* @default ""
|
|
@@ -27,34 +32,47 @@ export class KupAutocomplete {
|
|
|
27
32
|
this.customStyle = '';
|
|
28
33
|
/**
|
|
29
34
|
* Props of the sub-components.
|
|
35
|
+
* @default undefined
|
|
30
36
|
*/
|
|
31
37
|
this.data = undefined;
|
|
32
38
|
/**
|
|
33
39
|
* Defaults at false. When set to true, the component is disabled.
|
|
40
|
+
* @default false
|
|
34
41
|
*/
|
|
35
42
|
this.disabled = false;
|
|
36
43
|
/**
|
|
37
44
|
* Sets how to show the selected item value. Suported values: "code", "description", "both".
|
|
45
|
+
* @default ItemsDisplayMode.DESCRIPTION
|
|
38
46
|
*/
|
|
39
47
|
this.displayMode = ItemsDisplayMode.DESCRIPTION;
|
|
40
48
|
/**
|
|
41
49
|
* Sets the initial value of the component.
|
|
50
|
+
* @default ""
|
|
42
51
|
*/
|
|
43
52
|
this.initialValue = '';
|
|
53
|
+
/**
|
|
54
|
+
* Input event emission delay in milliseconds.
|
|
55
|
+
* @default 300
|
|
56
|
+
*/
|
|
57
|
+
this.inputDelay = 300;
|
|
44
58
|
/**
|
|
45
59
|
* The minimum number of chars to trigger the autocomplete
|
|
60
|
+
* @default 1
|
|
46
61
|
*/
|
|
47
62
|
this.minimumChars = 1;
|
|
48
63
|
/**
|
|
49
64
|
* Sets how to return the selected item value. Suported values: "code", "description", "both".
|
|
65
|
+
* @default ItemsDisplayMode.CODE
|
|
50
66
|
*/
|
|
51
67
|
this.selectMode = ItemsDisplayMode.CODE;
|
|
52
68
|
/**
|
|
53
69
|
* When true, the items filter is managed server side, otherwise items filter is done client side.
|
|
70
|
+
* @default false
|
|
54
71
|
*/
|
|
55
72
|
this.serverHandledFilter = false;
|
|
56
73
|
/**
|
|
57
74
|
* When true shows the drop-down icon, for open list.
|
|
75
|
+
* @default true
|
|
58
76
|
*/
|
|
59
77
|
this.showDropDownIcon = true;
|
|
60
78
|
/*-------------------------------------------------*/
|
|
@@ -71,57 +89,60 @@ export class KupAutocomplete {
|
|
|
71
89
|
this.textfieldEl = undefined;
|
|
72
90
|
this.clickCb = null;
|
|
73
91
|
}
|
|
74
|
-
onKupBlur(
|
|
75
|
-
const { target } = e;
|
|
92
|
+
onKupBlur() {
|
|
76
93
|
this.kupBlur.emit({
|
|
77
94
|
comp: this,
|
|
78
95
|
id: this.rootElement.id,
|
|
79
|
-
value:
|
|
96
|
+
value: this.value,
|
|
97
|
+
inputValue: this.textfieldEl.value,
|
|
80
98
|
});
|
|
81
99
|
}
|
|
82
|
-
onKupChange(
|
|
100
|
+
onKupChange(value) {
|
|
83
101
|
this.doConsistencyCheck = true;
|
|
84
|
-
this.consistencyCheck(undefined,
|
|
85
|
-
this.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
102
|
+
const ret = this.consistencyCheck(undefined, value);
|
|
103
|
+
if (ret.exists || this.allowInconsistentValues) {
|
|
104
|
+
this.kupChange.emit({
|
|
105
|
+
comp: this,
|
|
106
|
+
id: this.rootElement.id,
|
|
107
|
+
value: this.value,
|
|
108
|
+
inputValue: this.textfieldEl.value,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
90
111
|
}
|
|
91
|
-
onKupClick(
|
|
92
|
-
const { target } = e;
|
|
112
|
+
onKupClick() {
|
|
93
113
|
this.kupClick.emit({
|
|
94
114
|
comp: this,
|
|
95
115
|
id: this.rootElement.id,
|
|
96
|
-
value:
|
|
116
|
+
value: this.value,
|
|
117
|
+
inputValue: this.textfieldEl.value,
|
|
97
118
|
});
|
|
98
119
|
}
|
|
99
|
-
onKupFocus(
|
|
100
|
-
const { target } = e;
|
|
120
|
+
onKupFocus() {
|
|
101
121
|
this.kupFocus.emit({
|
|
102
122
|
comp: this,
|
|
103
123
|
id: this.rootElement.id,
|
|
104
|
-
value:
|
|
124
|
+
value: this.value,
|
|
125
|
+
inputValue: this.textfieldEl.value,
|
|
105
126
|
});
|
|
106
127
|
}
|
|
107
|
-
onKupInput(
|
|
128
|
+
onKupInput() {
|
|
108
129
|
this.doConsistencyCheck = true;
|
|
109
|
-
this.consistencyCheck(undefined,
|
|
130
|
+
this.consistencyCheck(undefined, this.textfieldEl.value);
|
|
110
131
|
if (this.openList(false)) {
|
|
111
132
|
if (this.listEl != null && !this.serverHandledFilter) {
|
|
112
|
-
this.listEl.
|
|
133
|
+
this.listEl.filter = this.displayedValue;
|
|
113
134
|
}
|
|
114
135
|
}
|
|
115
|
-
if (
|
|
136
|
+
if (this.textfieldEl.value.length >= this.minimumChars) {
|
|
116
137
|
this.kupInput.emit({
|
|
117
138
|
comp: this,
|
|
118
139
|
id: this.rootElement.id,
|
|
119
140
|
value: this.value,
|
|
141
|
+
inputValue: this.textfieldEl.value,
|
|
120
142
|
});
|
|
121
143
|
}
|
|
122
144
|
}
|
|
123
|
-
onKupIconClick(
|
|
124
|
-
const { target } = event;
|
|
145
|
+
onKupIconClick() {
|
|
125
146
|
if (this.textfieldWrapper.classList.contains('toggled')) {
|
|
126
147
|
this.closeList();
|
|
127
148
|
}
|
|
@@ -131,25 +152,22 @@ export class KupAutocomplete {
|
|
|
131
152
|
this.kupIconClick.emit({
|
|
132
153
|
comp: this,
|
|
133
154
|
id: this.rootElement.id,
|
|
134
|
-
value:
|
|
155
|
+
value: this.value,
|
|
156
|
+
inputValue: this.textfieldEl.value,
|
|
157
|
+
open: this.textfieldWrapper.classList.contains('toggled'),
|
|
135
158
|
});
|
|
136
159
|
}
|
|
137
160
|
onKupItemClick(e) {
|
|
138
|
-
this.
|
|
139
|
-
this.consistencyCheck(e);
|
|
161
|
+
this.onKupChange(e.detail.selected.value);
|
|
140
162
|
this.closeList();
|
|
141
163
|
if (this.textfieldEl) {
|
|
142
164
|
this.textfieldEl.focus();
|
|
143
165
|
}
|
|
144
|
-
this.kupChange.emit({
|
|
145
|
-
comp: this,
|
|
146
|
-
id: this.rootElement.id,
|
|
147
|
-
value: this.value,
|
|
148
|
-
});
|
|
149
166
|
this.kupItemClick.emit({
|
|
150
167
|
comp: this,
|
|
151
168
|
id: this.rootElement.id,
|
|
152
169
|
value: this.value,
|
|
170
|
+
inputValue: this.textfieldEl.value,
|
|
153
171
|
});
|
|
154
172
|
}
|
|
155
173
|
/*-------------------------------------------------*/
|
|
@@ -242,7 +260,6 @@ export class KupAutocomplete {
|
|
|
242
260
|
* @param {string} value - Value of the component.
|
|
243
261
|
*/
|
|
244
262
|
async setValue(value) {
|
|
245
|
-
this.value = value;
|
|
246
263
|
this.doConsistencyCheck = true;
|
|
247
264
|
this.consistencyCheck(undefined, value);
|
|
248
265
|
}
|
|
@@ -250,7 +267,8 @@ export class KupAutocomplete {
|
|
|
250
267
|
/* P r i v a t e M e t h o d s */
|
|
251
268
|
/*-------------------------------------------------*/
|
|
252
269
|
openList(forceOpen) {
|
|
253
|
-
if (forceOpen != true &&
|
|
270
|
+
if (forceOpen != true &&
|
|
271
|
+
this.textfieldEl.value.length < this.minimumChars) {
|
|
254
272
|
this.closeList();
|
|
255
273
|
return false;
|
|
256
274
|
}
|
|
@@ -291,12 +309,21 @@ export class KupAutocomplete {
|
|
|
291
309
|
return;
|
|
292
310
|
}
|
|
293
311
|
this.doConsistencyCheck = false;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
this.listEl
|
|
312
|
+
const ret = consistencyCheck(valueIn, this.data['kup-list'], this.listEl, this.selectMode, this.displayMode, e);
|
|
313
|
+
if (ret.exists || this.allowInconsistentValues) {
|
|
314
|
+
this.value = ret.value;
|
|
315
|
+
this.displayedValue = ret.displayedValue;
|
|
316
|
+
if (this.listEl != null && !this.serverHandledFilter) {
|
|
317
|
+
this.listEl.filter = this.displayedValue;
|
|
318
|
+
}
|
|
299
319
|
}
|
|
320
|
+
else {
|
|
321
|
+
this.displayedValue = valueIn;
|
|
322
|
+
if (this.listEl != null && !this.serverHandledFilter) {
|
|
323
|
+
this.listEl.filter = valueIn;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return ret;
|
|
300
327
|
}
|
|
301
328
|
prepList() {
|
|
302
329
|
return (h("kup-list", Object.assign({ displayMode: this.displayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (this.listEl = el) })));
|
|
@@ -343,7 +370,10 @@ export class KupAutocomplete {
|
|
|
343
370
|
h("div", { id: componentWrapperId, style: this.elStyle },
|
|
344
371
|
h(FTextField, Object.assign({}, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, icon: this.showDropDownIcon
|
|
345
372
|
? KupThemeIconValues.DROPDOWN
|
|
346
|
-
: null, trailingIcon: true, value: this.displayedValue, onBlur: (
|
|
373
|
+
: null, trailingIcon: true, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
374
|
+
window.clearTimeout(this.inputTimeout);
|
|
375
|
+
this.inputTimeout = window.setTimeout(() => this.onKupInput(), this.inputDelay);
|
|
376
|
+
}, onIconClick: () => this.onKupIconClick() }), this.prepList()))));
|
|
347
377
|
}
|
|
348
378
|
disconnectedCallback() {
|
|
349
379
|
if (this.listEl) {
|
|
@@ -361,6 +391,27 @@ export class KupAutocomplete {
|
|
|
361
391
|
"$": ["kup-autocomplete.css"]
|
|
362
392
|
}; }
|
|
363
393
|
static get properties() { return {
|
|
394
|
+
"allowInconsistentValues": {
|
|
395
|
+
"type": "boolean",
|
|
396
|
+
"mutable": false,
|
|
397
|
+
"complexType": {
|
|
398
|
+
"original": "boolean",
|
|
399
|
+
"resolved": "boolean",
|
|
400
|
+
"references": {}
|
|
401
|
+
},
|
|
402
|
+
"required": false,
|
|
403
|
+
"optional": false,
|
|
404
|
+
"docs": {
|
|
405
|
+
"tags": [{
|
|
406
|
+
"name": "default",
|
|
407
|
+
"text": "false"
|
|
408
|
+
}],
|
|
409
|
+
"text": "When true, the autocomplete fires the change event even when the value typed isn't included in the autocomplete list."
|
|
410
|
+
},
|
|
411
|
+
"attribute": "allow-inconsistent-values",
|
|
412
|
+
"reflect": false,
|
|
413
|
+
"defaultValue": "false"
|
|
414
|
+
},
|
|
364
415
|
"customStyle": {
|
|
365
416
|
"type": "string",
|
|
366
417
|
"mutable": false,
|
|
@@ -400,7 +451,10 @@ export class KupAutocomplete {
|
|
|
400
451
|
"required": false,
|
|
401
452
|
"optional": false,
|
|
402
453
|
"docs": {
|
|
403
|
-
"tags": [
|
|
454
|
+
"tags": [{
|
|
455
|
+
"name": "default",
|
|
456
|
+
"text": "undefined"
|
|
457
|
+
}],
|
|
404
458
|
"text": "Props of the sub-components."
|
|
405
459
|
},
|
|
406
460
|
"defaultValue": "undefined"
|
|
@@ -416,7 +470,10 @@ export class KupAutocomplete {
|
|
|
416
470
|
"required": false,
|
|
417
471
|
"optional": false,
|
|
418
472
|
"docs": {
|
|
419
|
-
"tags": [
|
|
473
|
+
"tags": [{
|
|
474
|
+
"name": "default",
|
|
475
|
+
"text": "false"
|
|
476
|
+
}],
|
|
420
477
|
"text": "Defaults at false. When set to true, the component is disabled."
|
|
421
478
|
},
|
|
422
479
|
"attribute": "disabled",
|
|
@@ -439,7 +496,10 @@ export class KupAutocomplete {
|
|
|
439
496
|
"required": false,
|
|
440
497
|
"optional": false,
|
|
441
498
|
"docs": {
|
|
442
|
-
"tags": [
|
|
499
|
+
"tags": [{
|
|
500
|
+
"name": "default",
|
|
501
|
+
"text": "ItemsDisplayMode.DESCRIPTION"
|
|
502
|
+
}],
|
|
443
503
|
"text": "Sets how to show the selected item value. Suported values: \"code\", \"description\", \"both\"."
|
|
444
504
|
},
|
|
445
505
|
"attribute": "display-mode",
|
|
@@ -457,13 +517,37 @@ export class KupAutocomplete {
|
|
|
457
517
|
"required": false,
|
|
458
518
|
"optional": false,
|
|
459
519
|
"docs": {
|
|
460
|
-
"tags": [
|
|
520
|
+
"tags": [{
|
|
521
|
+
"name": "default",
|
|
522
|
+
"text": "\"\""
|
|
523
|
+
}],
|
|
461
524
|
"text": "Sets the initial value of the component."
|
|
462
525
|
},
|
|
463
526
|
"attribute": "initial-value",
|
|
464
527
|
"reflect": false,
|
|
465
528
|
"defaultValue": "''"
|
|
466
529
|
},
|
|
530
|
+
"inputDelay": {
|
|
531
|
+
"type": "number",
|
|
532
|
+
"mutable": false,
|
|
533
|
+
"complexType": {
|
|
534
|
+
"original": "number",
|
|
535
|
+
"resolved": "number",
|
|
536
|
+
"references": {}
|
|
537
|
+
},
|
|
538
|
+
"required": false,
|
|
539
|
+
"optional": false,
|
|
540
|
+
"docs": {
|
|
541
|
+
"tags": [{
|
|
542
|
+
"name": "default",
|
|
543
|
+
"text": "300"
|
|
544
|
+
}],
|
|
545
|
+
"text": "Input event emission delay in milliseconds."
|
|
546
|
+
},
|
|
547
|
+
"attribute": "input-delay",
|
|
548
|
+
"reflect": false,
|
|
549
|
+
"defaultValue": "300"
|
|
550
|
+
},
|
|
467
551
|
"minimumChars": {
|
|
468
552
|
"type": "number",
|
|
469
553
|
"mutable": false,
|
|
@@ -475,7 +559,10 @@ export class KupAutocomplete {
|
|
|
475
559
|
"required": false,
|
|
476
560
|
"optional": false,
|
|
477
561
|
"docs": {
|
|
478
|
-
"tags": [
|
|
562
|
+
"tags": [{
|
|
563
|
+
"name": "default",
|
|
564
|
+
"text": "1"
|
|
565
|
+
}],
|
|
479
566
|
"text": "The minimum number of chars to trigger the autocomplete"
|
|
480
567
|
},
|
|
481
568
|
"attribute": "minimum-chars",
|
|
@@ -498,7 +585,10 @@ export class KupAutocomplete {
|
|
|
498
585
|
"required": false,
|
|
499
586
|
"optional": false,
|
|
500
587
|
"docs": {
|
|
501
|
-
"tags": [
|
|
588
|
+
"tags": [{
|
|
589
|
+
"name": "default",
|
|
590
|
+
"text": "ItemsDisplayMode.CODE"
|
|
591
|
+
}],
|
|
502
592
|
"text": "Sets how to return the selected item value. Suported values: \"code\", \"description\", \"both\"."
|
|
503
593
|
},
|
|
504
594
|
"attribute": "select-mode",
|
|
@@ -516,7 +606,10 @@ export class KupAutocomplete {
|
|
|
516
606
|
"required": false,
|
|
517
607
|
"optional": false,
|
|
518
608
|
"docs": {
|
|
519
|
-
"tags": [
|
|
609
|
+
"tags": [{
|
|
610
|
+
"name": "default",
|
|
611
|
+
"text": "false"
|
|
612
|
+
}],
|
|
520
613
|
"text": "When true, the items filter is managed server side, otherwise items filter is done client side."
|
|
521
614
|
},
|
|
522
615
|
"attribute": "server-handled-filter",
|
|
@@ -534,7 +627,10 @@ export class KupAutocomplete {
|
|
|
534
627
|
"required": false,
|
|
535
628
|
"optional": false,
|
|
536
629
|
"docs": {
|
|
537
|
-
"tags": [
|
|
630
|
+
"tags": [{
|
|
631
|
+
"name": "default",
|
|
632
|
+
"text": "true"
|
|
633
|
+
}],
|
|
538
634
|
"text": "When true shows the drop-down icon, for open list."
|
|
539
635
|
},
|
|
540
636
|
"attribute": "show-drop-down-icon",
|
|
@@ -657,10 +753,10 @@ export class KupAutocomplete {
|
|
|
657
753
|
"text": ""
|
|
658
754
|
},
|
|
659
755
|
"complexType": {
|
|
660
|
-
"original": "
|
|
661
|
-
"resolved": "
|
|
756
|
+
"original": "KupAutocompleteIconClickEventPayload",
|
|
757
|
+
"resolved": "KupAutocompleteIconClickEventPayload",
|
|
662
758
|
"references": {
|
|
663
|
-
"
|
|
759
|
+
"KupAutocompleteIconClickEventPayload": {
|
|
664
760
|
"location": "import",
|
|
665
761
|
"path": "./kup-autocomplete-declarations"
|
|
666
762
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
|
|
2
2
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
3
|
-
import { kupManagerInstance, } from '../../
|
|
4
|
-
import { KupThemeColorValues } from '../../
|
|
3
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
4
|
+
import { KupThemeColorValues } from '../../managers/kup-theme/kup-theme-declarations';
|
|
5
5
|
import { getProps, setProps } from '../../utils/utils';
|
|
6
6
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
7
7
|
import { KupBadgeProps } from './kup-badge-declarations';
|
|
@@ -3,19 +3,21 @@ import { SortMode, } from '../kup-data-table/kup-data-table-declarations';
|
|
|
3
3
|
import { KupBoxProps, } from './kup-box-declarations';
|
|
4
4
|
import { getColumnByName } from '../../utils/cell-utils';
|
|
5
5
|
import { filterRows, sortRows, paginateRows, } from '../kup-data-table/kup-data-table-helper';
|
|
6
|
-
import {
|
|
7
|
-
import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
|
|
6
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
8
7
|
import { KupBoxState } from './kup-box-state';
|
|
9
8
|
import { setTooltip, unsetTooltip } from '../../utils/helpers';
|
|
10
9
|
import { deepEqual, getProps, identify, setProps } from '../../utils/utils';
|
|
11
10
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
12
11
|
import { FChip } from '../../f-components/f-chip/f-chip';
|
|
13
|
-
import { KupDebugCategory } from '../../
|
|
14
|
-
import { KupLanguageGeneric, KupLanguageSearch, } from '../../
|
|
12
|
+
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
13
|
+
import { KupLanguageGeneric, KupLanguageSearch, } from '../../managers/kup-language/kup-language-declarations';
|
|
15
14
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
16
|
-
import { KupThemeIconValues } from '../../
|
|
17
|
-
import { KupDragEffect, kupDraggableCellAttr, KupDropEventTypes, KupPointerEventTypes, } from '../../
|
|
15
|
+
import { KupThemeIconValues } from '../../managers/kup-theme/kup-theme-declarations';
|
|
16
|
+
import { KupDragEffect, kupDraggableCellAttr, KupDropEventTypes, KupPointerEventTypes, } from '../../managers/kup-interact/kup-interact-declarations';
|
|
18
17
|
import { FCell } from '../../f-components/f-cell/f-cell';
|
|
18
|
+
import { FPaginator } from '../../f-components/f-paginator/f-paginator';
|
|
19
|
+
import { FPaginatorMode } from '../../f-components/f-paginator/f-paginator-declarations';
|
|
20
|
+
import { pageChange, rowsPerPageChange, } from '../../f-components/f-paginator/f-paginator-utils';
|
|
19
21
|
export class KupBox {
|
|
20
22
|
constructor() {
|
|
21
23
|
/*-------------------------------------------------*/
|
|
@@ -564,12 +566,18 @@ export class KupBox {
|
|
|
564
566
|
}
|
|
565
567
|
this.rowActionMenuOpened = null;
|
|
566
568
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
+
handlePageChange(pageNumber) {
|
|
570
|
+
const newPage = pageChange(pageNumber, this.filteredRows.length, this.currentRowsPerPage);
|
|
571
|
+
if (newPage) {
|
|
572
|
+
this.currentPage = newPage;
|
|
573
|
+
}
|
|
569
574
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
575
|
+
handleRowsPerPageChange(rowsNumber) {
|
|
576
|
+
const newRows = rowsPerPageChange(rowsNumber, this.filteredRows.length);
|
|
577
|
+
if (newRows) {
|
|
578
|
+
this.currentRowsPerPage = newRows;
|
|
579
|
+
this.adjustPaginator();
|
|
580
|
+
}
|
|
573
581
|
}
|
|
574
582
|
adjustPaginator() {
|
|
575
583
|
const numberOfRows = this.rows.length;
|
|
@@ -1028,9 +1036,8 @@ export class KupBox {
|
|
|
1028
1036
|
};
|
|
1029
1037
|
for (let index = 0; index < sortingKey.length; index++) {
|
|
1030
1038
|
props.data.push({
|
|
1031
|
-
checked: false,
|
|
1032
|
-
label: sortingKey[index],
|
|
1033
1039
|
value: sortingKey[index],
|
|
1040
|
+
id: sortingKey[index],
|
|
1034
1041
|
});
|
|
1035
1042
|
}
|
|
1036
1043
|
kanbanJSX.push(h("div", { class: "kanban-section" },
|
|
@@ -1158,6 +1165,11 @@ export class KupBox {
|
|
|
1158
1165
|
else if (this.pageSize) {
|
|
1159
1166
|
this.currentRowsPerPage = this.pageSize;
|
|
1160
1167
|
}
|
|
1168
|
+
if (this.data &&
|
|
1169
|
+
this.data.rows &&
|
|
1170
|
+
this.currentRowsPerPage > this.data.rows.length) {
|
|
1171
|
+
this.currentRowsPerPage = this.data.rows.length;
|
|
1172
|
+
}
|
|
1161
1173
|
this.kupManager.language.register(this);
|
|
1162
1174
|
this.kupManager.theme.register(this);
|
|
1163
1175
|
this.onDataChanged();
|
|
@@ -1227,7 +1239,9 @@ export class KupBox {
|
|
|
1227
1239
|
}
|
|
1228
1240
|
let paginator = null;
|
|
1229
1241
|
if (this.pagination) {
|
|
1230
|
-
paginator = (h(
|
|
1242
|
+
paginator = (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.filteredRows.length, mode: FPaginatorMode.SIMPLE, perPage: this.currentRowsPerPage
|
|
1243
|
+
? this.currentRowsPerPage
|
|
1244
|
+
: this.pageSize, onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
|
|
1231
1245
|
}
|
|
1232
1246
|
let boxContent = null;
|
|
1233
1247
|
let containerStyle = {};
|
|
@@ -2148,7 +2162,7 @@ export class KupBox {
|
|
|
2148
2162
|
},
|
|
2149
2163
|
"loadRowActions": {
|
|
2150
2164
|
"complexType": {
|
|
2151
|
-
"signature": "(row: KupBoxRow, actions:
|
|
2165
|
+
"signature": "(row: KupBoxRow, actions: KupDataRowAction[]) => Promise<void>",
|
|
2152
2166
|
"parameters": [{
|
|
2153
2167
|
"tags": [],
|
|
2154
2168
|
"text": ""
|
|
@@ -2164,9 +2178,9 @@ export class KupBox {
|
|
|
2164
2178
|
"location": "import",
|
|
2165
2179
|
"path": "./kup-box-declarations"
|
|
2166
2180
|
},
|
|
2167
|
-
"
|
|
2181
|
+
"KupDataRowAction": {
|
|
2168
2182
|
"location": "import",
|
|
2169
|
-
"path": "
|
|
2183
|
+
"path": "../../managers/kup-data/kup-data-declarations"
|
|
2170
2184
|
}
|
|
2171
2185
|
},
|
|
2172
2186
|
"return": "Promise<void>"
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { FButton } from '../../f-components/f-button/f-button';
|
|
4
4
|
import { FButtonStyling, } from '../../f-components/f-button/f-button-declarations';
|
|
5
5
|
import { KupButtonProps, } from './kup-button-declarations';
|
|
6
|
-
import { KupDebugCategory } from '../../
|
|
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 KupButton {
|