@sme.up/ketchup 4.3.0-SNAPSHOT → 5.1.0-SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -3
- package/dist/cjs/{cell-utils-dc0884a3.js → cell-utils-9b1d6563.js} +4 -4
- package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
- package/dist/cjs/{f-button-2ba74fb5.js → f-button-02a7cde4.js} +2 -2
- package/dist/cjs/{f-cell-fe60a08d.js → f-cell-4d1450a8.js} +38 -28
- package/dist/cjs/f-chip-a50b9f00.js +130 -0
- package/dist/cjs/{f-image-d3bd4e08.js → f-image-db55ac49.js} +3 -3
- package/dist/cjs/{index-0416afab.js → index-ab119fad.js} +23 -0
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -7
- package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +4636 -4073
- package/dist/cjs/kup-calendar.cjs.entry.js +626 -359
- package/dist/cjs/kup-cell.cjs.entry.js +15 -13
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +8 -7
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +93039 -0
- package/dist/cjs/kup-field.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-lazy.cjs.entry.js +22 -5
- package/dist/cjs/kup-magic-box.cjs.entry.js +95 -42
- package/dist/cjs/{kup-manager-1a2688ca.js → kup-manager-5877b2ee.js} +3392 -753
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tslib.es6-4360c099.js → tslib.es6-0ee02c67.js} +13 -0
- package/dist/cjs/utils-1b5c8c70.js +482 -0
- package/dist/collection/assets/calendar.js +46 -1
- package/dist/collection/assets/card.js +15 -15
- package/dist/collection/assets/data-table.js +18 -6
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/kupdata.js +937 -0
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/kup-accordion/kup-accordion.css +0 -1
- package/dist/collection/components/kup-accordion/kup-accordion.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +148 -52
- package/dist/collection/components/kup-badge/kup-badge.js +2 -2
- package/dist/collection/components/kup-box/kup-box.js +31 -17
- package/dist/collection/components/kup-button/kup-button.js +2 -2
- package/dist/collection/components/kup-button-list/kup-button-list.js +26 -8
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +14 -8
- package/dist/collection/components/kup-calendar/kup-calendar.css +2 -2
- package/dist/collection/components/kup-calendar/kup-calendar.js +185 -315
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +38 -0
- package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-calendar.js +1 -1
- package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-clock.js +32 -32
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +167 -0
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +1 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +2 -2
- package/dist/collection/components/kup-card/free/kup-card-free.js +11 -2
- package/dist/collection/components/kup-card/kup-card-declarations.js +14 -14
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
- package/dist/collection/components/kup-card/kup-card.css +423 -137
- package/dist/collection/components/kup-card/kup-card.js +62 -11
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +1 -1
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +18 -5
- package/dist/collection/components/kup-cell/kup-cell.js +15 -13
- package/dist/collection/components/kup-chart/kup-chart-builder.js +3 -4
- package/dist/collection/components/kup-chart/kup-chart.js +7 -7
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.css +1 -0
- package/dist/collection/components/kup-chip/kup-chip.js +51 -92
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +1 -265
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +93 -48
- package/dist/collection/components/kup-combobox/kup-combobox.js +148 -115
- package/dist/collection/components/kup-dash/kup-dash.js +1 -1
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +5 -5
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +28 -56
- package/dist/collection/components/kup-data-table/kup-data-table.css +4 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +345 -158
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -5
- package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
- package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
- package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
- package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
- package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
- package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
- package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
- package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
- package/dist/collection/components/kup-echart/kup-echart.css +13 -0
- package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
- package/dist/collection/components/kup-field/kup-field.js +2 -2
- package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
- package/dist/collection/components/kup-grid/kup-grid.css +2 -2
- package/dist/collection/components/kup-grid/kup-grid.js +6 -5
- package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
- package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
- package/dist/collection/components/kup-image/kup-image.js +3 -3
- package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
- package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
- package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
- package/dist/collection/components/kup-list/kup-list.css +3 -0
- package/dist/collection/components/kup-list/kup-list.js +219 -288
- package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-radio/kup-radio.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
- package/dist/collection/components/kup-state/mock-store.js +1 -1
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
- package/dist/collection/components/kup-text-field/kup-text-field.css +2 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -5
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
- package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
- package/dist/collection/components/kup-tree/kup-tree.css +2 -0
- package/dist/collection/components/kup-tree/kup-tree.js +145 -70
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
- package/dist/collection/f-components/f-cell/f-cell.js +29 -19
- package/dist/collection/f-components/f-chip/f-chip.js +76 -87
- package/dist/collection/f-components/f-image/f-image.js +2 -2
- package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
- package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
- package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
- package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
- package/dist/collection/managers/kup-data/kup-data.js +382 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
- package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
- package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
- package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
- package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
- package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
- package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
- package/dist/collection/managers/kup-math/kup-math.js +151 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -0
- package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
- package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
- package/dist/collection/types/GenericTypes.js +48 -1
- package/dist/collection/utils/cell-utils.js +3 -4
- package/dist/collection/utils/filters/filters-column-menu.js +7 -7
- package/dist/collection/utils/filters/filters-rows.js +2 -2
- package/dist/collection/utils/filters/filters-tree-items.js +12 -12
- package/dist/collection/utils/filters/filters.js +3 -2
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
- package/dist/collection/utils/utils.js +4 -4
- package/dist/esm/{cell-utils-8f512ea9.js → cell-utils-571978d6.js} +4 -4
- package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
- package/dist/esm/{f-button-30dbcaa9.js → f-button-b3011cc2.js} +2 -2
- package/dist/esm/{f-cell-95c186c6.js → f-cell-b88b2731.js} +38 -28
- package/dist/esm/f-chip-a52489ec.js +128 -0
- package/dist/esm/{f-image-3bc8b24f.js → f-image-5e5ed7e2.js} +3 -3
- package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +7 -7
- package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +4420 -3856
- package/dist/esm/kup-calendar.entry.js +626 -359
- package/dist/esm/kup-cell.entry.js +15 -13
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +8 -7
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +93035 -0
- package/dist/esm/kup-field.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-lazy.entry.js +22 -5
- package/dist/esm/kup-magic-box.entry.js +95 -42
- package/dist/esm/{kup-manager-7fc234da.js → kup-manager-1f76a3ef.js} +3388 -753
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
- package/dist/esm/utils-93ae800f.js +461 -0
- package/dist/ketchup/assets/maps/africa.json +6116 -0
- package/dist/ketchup/assets/maps/america.json +5416 -0
- package/dist/ketchup/assets/maps/asia.json +6053 -0
- package/dist/ketchup/assets/maps/europe.json +5051 -0
- package/dist/ketchup/assets/maps/italy.json +3562 -0
- package/dist/ketchup/assets/maps/oceania.json +1069 -0
- package/dist/ketchup/assets/maps/world.json +23685 -0
- package/dist/ketchup/assets/svg/science.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-a878016f.entry.js → p-088a886c.entry.js} +1 -1
- package/dist/ketchup/p-135cabdc.entry.js +1 -0
- package/dist/ketchup/{p-1c6178e4.entry.js → p-1c1e830f.entry.js} +1 -1
- package/dist/ketchup/{p-62816d0b.entry.js → p-29208220.entry.js} +1 -1
- package/dist/ketchup/{p-ca0ca27f.entry.js → p-2b9f2019.entry.js} +1 -1
- package/dist/ketchup/p-52d0582a.js +1 -0
- package/dist/ketchup/p-554bd5f0.entry.js +39 -0
- package/dist/ketchup/{p-de83f2f6.js → p-5f52e313.js} +1 -1
- package/dist/ketchup/{p-ccda584a.entry.js → p-65449480.entry.js} +1 -1
- package/dist/ketchup/p-79cf3874.entry.js +1 -0
- package/dist/ketchup/p-7a85cda4.js +1 -0
- package/dist/ketchup/p-84cce555.entry.js +27 -0
- package/dist/ketchup/p-8c44c3b9.js +135 -0
- package/dist/ketchup/{p-65adc15b.entry.js → p-9d49cdb2.entry.js} +1 -1
- package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
- package/dist/ketchup/{p-dbb6998b.entry.js → p-a2b6672e.entry.js} +1 -1
- package/dist/ketchup/{p-a378ba56.entry.js → p-a4be630b.entry.js} +1 -1
- package/dist/ketchup/p-c072b270.js +1 -0
- package/dist/ketchup/{p-1baf1205.entry.js → p-c648972c.entry.js} +1 -1
- package/dist/ketchup/{p-af4a6191.entry.js → p-d67d39c0.entry.js} +1 -1
- package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
- package/dist/ketchup/{p-44375e49.js → p-da387e0e.js} +1 -1
- package/dist/ketchup/p-e5c9ec9e.js +1 -0
- package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
- package/dist/ketchup/p-ef539eda.js +9 -0
- package/dist/ketchup/p-f316234c.entry.js +143 -0
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
- package/dist/types/components/kup-box/kup-box.d.ts +4 -4
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
- package/dist/types/components/kup-card/{builtin → built-in}/kup-card-calendar.d.ts +0 -0
- package/dist/types/components/kup-card/{builtin → built-in}/kup-card-clock.d.ts +0 -0
- package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +7 -1
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +46 -21
- package/dist/types/components/kup-card/kup-card.d.ts +9 -2
- package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
- package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
- package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -104
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +49 -27
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
- package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
- package/dist/types/components/kup-list/kup-list.d.ts +4 -35
- package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
- package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
- package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
- package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
- package/dist/types/components.d.ts +305 -186
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
- package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
- package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
- package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
- package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
- package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
- package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
- package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
- package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
- package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
- package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
- package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
- package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/types/GenericTypes.d.ts +53 -6
- package/dist/types/utils/cell-utils.d.ts +7 -6
- package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
- package/dist/types/utils/filters/filters-rows.d.ts +10 -10
- package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
- package/dist/types/utils/helpers.d.ts +2 -2
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
- package/dist/types/utils/utils.d.ts +4 -2
- package/package.json +31 -26
- package/dist/cjs/f-chip-90d95d22.js +0 -141
- package/dist/cjs/utils-0cc466b9.js +0 -1492
- package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +0 -20
- package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
- package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
- package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
- package/dist/esm/f-chip-c0e9c0ff.js +0 -139
- package/dist/esm/utils-6c73709d.js +0 -1470
- package/dist/ketchup/p-15321eae.js +0 -1
- package/dist/ketchup/p-5a5f2a53.js +0 -1
- package/dist/ketchup/p-61faaa38.js +0 -8
- package/dist/ketchup/p-7e23ea7c.entry.js +0 -1
- package/dist/ketchup/p-9d02a676.js +0 -134
- package/dist/ketchup/p-a96e6e32.entry.js +0 -1
- package/dist/ketchup/p-ad32821e.entry.js +0 -1
- package/dist/ketchup/p-c18c7bb0.entry.js +0 -27
- package/dist/ketchup/p-d4aa4922.js +0 -1
- package/dist/ketchup/p-ec3a3db9.js +0 -1
- package/dist/ketchup/p-ecccb3a4.entry.js +0 -45
- package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +0 -14
- package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
- package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { h } from '@stencil/core';
|
|
2
|
-
import { KupCardCSSClasses } from '../kup-card-declarations';
|
|
3
|
-
import { prepareCalendar } from './kup-card-calendar';
|
|
4
|
-
import { prepareClock } from './kup-card-clock';
|
|
5
|
-
/**
|
|
6
|
-
* 1st builtin card layout, calendar view.
|
|
7
|
-
* @param {KupCard} component - Card component.
|
|
8
|
-
* @returns {VNode} 1st builtin layout virtual node.
|
|
9
|
-
*/
|
|
10
|
-
export function create1(component) {
|
|
11
|
-
return (h("div", { class: `builtin-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILTIN_CARD}` }, prepareCalendar(component)));
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 2st builtin card layout, time view.
|
|
15
|
-
* @param {KupCard} component - Card component.
|
|
16
|
-
* @returns {VNode} 2st builtin layout virtual node.
|
|
17
|
-
*/
|
|
18
|
-
export function create2(component) {
|
|
19
|
-
return (h("div", { class: `builtin-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILTIN_CARD}` }, prepareClock(component)));
|
|
20
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
#kup-component {
|
|
6
|
-
margin: 0.5em 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-wrap: wrap;
|
|
9
|
-
}
|
|
10
|
-
#kup-component .align-right {
|
|
11
|
-
margin-right: 0.5em;
|
|
12
|
-
}
|
|
13
|
-
#kup-component .align-left,
|
|
14
|
-
#kup-component .align-right {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
}
|
|
18
|
-
#kup-component .prev-page,
|
|
19
|
-
#kup-component .next-page {
|
|
20
|
-
margin: 0 0.25em;
|
|
21
|
-
}
|
|
22
|
-
#kup-component .prev-page {
|
|
23
|
-
float: left;
|
|
24
|
-
}
|
|
25
|
-
#kup-component .next-page {
|
|
26
|
-
float: right;
|
|
27
|
-
}
|
|
28
|
-
#kup-component kup-combobox {
|
|
29
|
-
display: inline-block;
|
|
30
|
-
margin: 0 0.25em;
|
|
31
|
-
z-index: 0;
|
|
32
|
-
}
|
|
33
|
-
#kup-component kup-combobox.page-selector {
|
|
34
|
-
width: 100px;
|
|
35
|
-
}
|
|
36
|
-
#kup-component kup-combobox.rows-selector {
|
|
37
|
-
width: 150px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([mode=simple]) #paginator .align-left .prev-page,
|
|
41
|
-
:host([mode=simple]) #paginator .align-left .next-page {
|
|
42
|
-
display: none;
|
|
43
|
-
}
|
|
44
|
-
:host([mode=simple]) #paginator .align-right {
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
|
|
2
|
-
import { PaginatorMode, } from './kup-paginator-declarations';
|
|
3
|
-
import { isNumber } from '../../utils/utils';
|
|
4
|
-
import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
|
|
5
|
-
import { FButton } from '../../f-components/f-button/f-button';
|
|
6
|
-
import { KupLanguagePage, KupLanguageRow, } from '../../utils/kup-language/kup-language-declarations';
|
|
7
|
-
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
8
|
-
export class KupPaginator {
|
|
9
|
-
constructor() {
|
|
10
|
-
/**
|
|
11
|
-
* Custom style of the component.
|
|
12
|
-
* @default ""
|
|
13
|
-
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
14
|
-
*/
|
|
15
|
-
this.customStyle = '';
|
|
16
|
-
this.currentPage = 1;
|
|
17
|
-
this.max = 0;
|
|
18
|
-
this.mode = PaginatorMode.FULL;
|
|
19
|
-
this.perPage = 10;
|
|
20
|
-
this.selectedPerPage = 10;
|
|
21
|
-
this.comboPageSelectorEl = undefined;
|
|
22
|
-
this.comboRowsSelectorEl = undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Instance of the KupManager class.
|
|
25
|
-
*/
|
|
26
|
-
this.kupManager = kupManagerInstance();
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* This method is used to trigger a new render of the component.
|
|
30
|
-
*/
|
|
31
|
-
async refresh() {
|
|
32
|
-
forceUpdate(this);
|
|
33
|
-
}
|
|
34
|
-
isPrevPageDisabled() {
|
|
35
|
-
return this.currentPage == 1;
|
|
36
|
-
}
|
|
37
|
-
isNextPageDisabled() {
|
|
38
|
-
return this.currentPage * this.selectedPerPage >= this.max;
|
|
39
|
-
}
|
|
40
|
-
onPageChange(event) {
|
|
41
|
-
event.stopPropagation();
|
|
42
|
-
if (event.detail.value) {
|
|
43
|
-
if (isNumber(event.detail.value)) {
|
|
44
|
-
const numberOfPages = Math.ceil(this.max / this.selectedPerPage);
|
|
45
|
-
let tmpNewPage = event.detail.value;
|
|
46
|
-
if (tmpNewPage > numberOfPages) {
|
|
47
|
-
tmpNewPage = numberOfPages;
|
|
48
|
-
}
|
|
49
|
-
if (tmpNewPage < 1) {
|
|
50
|
-
tmpNewPage = 1;
|
|
51
|
-
}
|
|
52
|
-
this.kupPaginatorPageChanged.emit({
|
|
53
|
-
newPage: tmpNewPage,
|
|
54
|
-
id: this.rootElement.id,
|
|
55
|
-
comp: this,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
onPrevPage() {
|
|
61
|
-
if (this.isPrevPageDisabled()) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
// fire next page event
|
|
65
|
-
this.kupPaginatorPageChanged.emit({
|
|
66
|
-
newPage: this.currentPage - 1,
|
|
67
|
-
id: this.rootElement.id,
|
|
68
|
-
comp: this,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
onNextPage() {
|
|
72
|
-
if (this.isNextPageDisabled()) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
// fire next page event
|
|
76
|
-
this.kupPaginatorPageChanged.emit({
|
|
77
|
-
newPage: this.currentPage + 1,
|
|
78
|
-
id: this.rootElement.id,
|
|
79
|
-
comp: this,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
onRowsPerPage(event) {
|
|
83
|
-
event.stopPropagation();
|
|
84
|
-
if (event.detail.value) {
|
|
85
|
-
if (isNumber(event.detail.value)) {
|
|
86
|
-
let tmpRowsPerPage = event.detail.value;
|
|
87
|
-
if (tmpRowsPerPage > this.max) {
|
|
88
|
-
tmpRowsPerPage = this.max;
|
|
89
|
-
}
|
|
90
|
-
if (tmpRowsPerPage < 1) {
|
|
91
|
-
tmpRowsPerPage = 1;
|
|
92
|
-
}
|
|
93
|
-
this.kupRowsPerPageChanged.emit({
|
|
94
|
-
newRowsPerPage: tmpRowsPerPage,
|
|
95
|
-
id: this.rootElement.id,
|
|
96
|
-
comp: this,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
// render functions
|
|
102
|
-
getGoToPageItems(maxNumberOfPage) {
|
|
103
|
-
const goToPageItems = [];
|
|
104
|
-
for (let i = 1; i <= maxNumberOfPage; i++) {
|
|
105
|
-
let selected = i == this.currentPage;
|
|
106
|
-
goToPageItems.push({
|
|
107
|
-
text: i.toString(),
|
|
108
|
-
value: i.toString(),
|
|
109
|
-
selected: selected,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
return goToPageItems;
|
|
113
|
-
}
|
|
114
|
-
getRowsPerPageItems() {
|
|
115
|
-
const rowsPerPageItems = [];
|
|
116
|
-
/*if (this.currentPage !== this.max) {*/
|
|
117
|
-
let i = this.selectedPerPage;
|
|
118
|
-
if (i === 0) {
|
|
119
|
-
return rowsPerPageItems;
|
|
120
|
-
}
|
|
121
|
-
while (i < this.max) {
|
|
122
|
-
let selected = i == this.selectedPerPage;
|
|
123
|
-
rowsPerPageItems.push({
|
|
124
|
-
text: i.toString(),
|
|
125
|
-
value: i.toString(),
|
|
126
|
-
selected: selected,
|
|
127
|
-
});
|
|
128
|
-
i = i * 2;
|
|
129
|
-
}
|
|
130
|
-
let selected = this.max == this.selectedPerPage;
|
|
131
|
-
// adding 'max' option
|
|
132
|
-
rowsPerPageItems.push({
|
|
133
|
-
text: this.max,
|
|
134
|
-
value: this.max,
|
|
135
|
-
selected: selected,
|
|
136
|
-
});
|
|
137
|
-
/*} else {
|
|
138
|
-
rowsPerPageItems.push({
|
|
139
|
-
text: this.perPage,
|
|
140
|
-
value: this.perPage,
|
|
141
|
-
selected: true,
|
|
142
|
-
});
|
|
143
|
-
}*/
|
|
144
|
-
return rowsPerPageItems;
|
|
145
|
-
}
|
|
146
|
-
//---- Lifecycle hooks ----
|
|
147
|
-
componentWillLoad() {
|
|
148
|
-
this.kupManager.debug.logLoad(this, false);
|
|
149
|
-
this.kupManager.language.register(this);
|
|
150
|
-
this.selectedPerPage = this.perPage;
|
|
151
|
-
}
|
|
152
|
-
componentDidLoad() {
|
|
153
|
-
this.kupManager.debug.logLoad(this, true);
|
|
154
|
-
}
|
|
155
|
-
componentWillRender() {
|
|
156
|
-
this.kupManager.debug.logRender(this, false);
|
|
157
|
-
}
|
|
158
|
-
componentDidRender() {
|
|
159
|
-
if (this.comboPageSelectorEl) {
|
|
160
|
-
this.comboPageSelectorEl.setValue(this.currentPage.toString());
|
|
161
|
-
}
|
|
162
|
-
if (this.comboRowsSelectorEl) {
|
|
163
|
-
this.comboRowsSelectorEl.setValue(this.selectedPerPage.toString());
|
|
164
|
-
}
|
|
165
|
-
this.kupManager.debug.logRender(this, true);
|
|
166
|
-
}
|
|
167
|
-
render() {
|
|
168
|
-
const maxNumberOfPage = Math.ceil(this.max / this.selectedPerPage);
|
|
169
|
-
const goToPageItems = this.getGoToPageItems(maxNumberOfPage);
|
|
170
|
-
const rowsPerPageItems = this.getRowsPerPageItems();
|
|
171
|
-
let textfieldDataPage = {
|
|
172
|
-
label: this.kupManager.language.translate(KupLanguagePage.PAGE),
|
|
173
|
-
helper: this.kupManager.language.translate(KupLanguagePage.TOTAL) +
|
|
174
|
-
`: ${maxNumberOfPage}`,
|
|
175
|
-
helperWhenFocused: true,
|
|
176
|
-
};
|
|
177
|
-
let listDataPage = {
|
|
178
|
-
data: goToPageItems,
|
|
179
|
-
selectable: true,
|
|
180
|
-
};
|
|
181
|
-
let textfieldDataRows = {
|
|
182
|
-
label: this.kupManager.language.translate(KupLanguageRow.ROWS) +
|
|
183
|
-
' / ' +
|
|
184
|
-
this.kupManager.language.translate(KupLanguagePage.PAGE),
|
|
185
|
-
helper: this.kupManager.language.translate(KupLanguageRow.TOTAL) +
|
|
186
|
-
`: ${this.max}`,
|
|
187
|
-
helperWhenFocused: true,
|
|
188
|
-
};
|
|
189
|
-
let listDataRows = {
|
|
190
|
-
data: rowsPerPageItems,
|
|
191
|
-
selectable: true,
|
|
192
|
-
};
|
|
193
|
-
let dataPageSelector = {
|
|
194
|
-
'kup-list': listDataPage,
|
|
195
|
-
'kup-text-field': textfieldDataPage,
|
|
196
|
-
};
|
|
197
|
-
let dataRowsSelector = {
|
|
198
|
-
'kup-list': listDataRows,
|
|
199
|
-
'kup-text-field': textfieldDataRows,
|
|
200
|
-
};
|
|
201
|
-
let compCreated = (h(Host, null,
|
|
202
|
-
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
203
|
-
h("div", { id: componentWrapperId },
|
|
204
|
-
h("div", { class: "align-left" },
|
|
205
|
-
h("div", { class: "nav-section" },
|
|
206
|
-
h(FButton, { icon: "chevron_left", disabled: this.isPrevPageDisabled(), wrapperClass: "prev-page", onClick: () => this.onPrevPage() }),
|
|
207
|
-
h("kup-combobox", { class: "page-selector", data: dataPageSelector, initialValue: this.currentPage.toString(), "onkup-combobox-itemclick": (e) => this.onPageChange(e), "onkup-combobox-textfieldsubmit": (e) => this.onPageChange(e), "onkup-combobox-blur": (e) => this.onPageChange(e), ref: (el) => (this.comboPageSelectorEl = el) }),
|
|
208
|
-
h(FButton, { icon: "chevron_right", disabled: this.isNextPageDisabled(), wrapperClass: "next-page", onClick: () => this.onNextPage() })),
|
|
209
|
-
h("div", { class: "tot-section" },
|
|
210
|
-
h("slot", { name: "more-results" }),
|
|
211
|
-
h("kup-combobox", { class: "rows-selector", data: dataRowsSelector, initialValue: this.perPage.toString(), "onkup-combobox-itemclick": (e) => this.onRowsPerPage(e), "onkup-combobox-textfieldsubmit": (e) => this.onRowsPerPage(e), "onkup-combobox-blur": (e) => this.onRowsPerPage(e), ref: (el) => (this.comboRowsSelectorEl = el) }),
|
|
212
|
-
h("slot", { name: "right" }))),
|
|
213
|
-
h("div", { class: "align-left" }))));
|
|
214
|
-
return compCreated;
|
|
215
|
-
}
|
|
216
|
-
disconnectedCallback() {
|
|
217
|
-
this.kupManager.language.unregister(this);
|
|
218
|
-
}
|
|
219
|
-
static get is() { return "kup-paginator"; }
|
|
220
|
-
static get encapsulation() { return "shadow"; }
|
|
221
|
-
static get originalStyleUrls() { return {
|
|
222
|
-
"$": ["kup-paginator.scss"]
|
|
223
|
-
}; }
|
|
224
|
-
static get styleUrls() { return {
|
|
225
|
-
"$": ["kup-paginator.css"]
|
|
226
|
-
}; }
|
|
227
|
-
static get properties() { return {
|
|
228
|
-
"customStyle": {
|
|
229
|
-
"type": "string",
|
|
230
|
-
"mutable": false,
|
|
231
|
-
"complexType": {
|
|
232
|
-
"original": "string",
|
|
233
|
-
"resolved": "string",
|
|
234
|
-
"references": {}
|
|
235
|
-
},
|
|
236
|
-
"required": false,
|
|
237
|
-
"optional": false,
|
|
238
|
-
"docs": {
|
|
239
|
-
"tags": [{
|
|
240
|
-
"name": "default",
|
|
241
|
-
"text": "\"\""
|
|
242
|
-
}, {
|
|
243
|
-
"name": "see",
|
|
244
|
-
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
245
|
-
}],
|
|
246
|
-
"text": "Custom style of the component."
|
|
247
|
-
},
|
|
248
|
-
"attribute": "custom-style",
|
|
249
|
-
"reflect": false,
|
|
250
|
-
"defaultValue": "''"
|
|
251
|
-
},
|
|
252
|
-
"currentPage": {
|
|
253
|
-
"type": "number",
|
|
254
|
-
"mutable": false,
|
|
255
|
-
"complexType": {
|
|
256
|
-
"original": "number",
|
|
257
|
-
"resolved": "number",
|
|
258
|
-
"references": {}
|
|
259
|
-
},
|
|
260
|
-
"required": false,
|
|
261
|
-
"optional": false,
|
|
262
|
-
"docs": {
|
|
263
|
-
"tags": [],
|
|
264
|
-
"text": ""
|
|
265
|
-
},
|
|
266
|
-
"attribute": "current-page",
|
|
267
|
-
"reflect": false,
|
|
268
|
-
"defaultValue": "1"
|
|
269
|
-
},
|
|
270
|
-
"max": {
|
|
271
|
-
"type": "number",
|
|
272
|
-
"mutable": false,
|
|
273
|
-
"complexType": {
|
|
274
|
-
"original": "number",
|
|
275
|
-
"resolved": "number",
|
|
276
|
-
"references": {}
|
|
277
|
-
},
|
|
278
|
-
"required": false,
|
|
279
|
-
"optional": false,
|
|
280
|
-
"docs": {
|
|
281
|
-
"tags": [],
|
|
282
|
-
"text": ""
|
|
283
|
-
},
|
|
284
|
-
"attribute": "max",
|
|
285
|
-
"reflect": false,
|
|
286
|
-
"defaultValue": "0"
|
|
287
|
-
},
|
|
288
|
-
"mode": {
|
|
289
|
-
"type": "string",
|
|
290
|
-
"mutable": false,
|
|
291
|
-
"complexType": {
|
|
292
|
-
"original": "PaginatorMode",
|
|
293
|
-
"resolved": "PaginatorMode.FULL | PaginatorMode.SIMPLE",
|
|
294
|
-
"references": {
|
|
295
|
-
"PaginatorMode": {
|
|
296
|
-
"location": "import",
|
|
297
|
-
"path": "./kup-paginator-declarations"
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
"required": false,
|
|
302
|
-
"optional": false,
|
|
303
|
-
"docs": {
|
|
304
|
-
"tags": [],
|
|
305
|
-
"text": ""
|
|
306
|
-
},
|
|
307
|
-
"attribute": "mode",
|
|
308
|
-
"reflect": false,
|
|
309
|
-
"defaultValue": "PaginatorMode.FULL"
|
|
310
|
-
},
|
|
311
|
-
"perPage": {
|
|
312
|
-
"type": "number",
|
|
313
|
-
"mutable": false,
|
|
314
|
-
"complexType": {
|
|
315
|
-
"original": "number",
|
|
316
|
-
"resolved": "number",
|
|
317
|
-
"references": {}
|
|
318
|
-
},
|
|
319
|
-
"required": false,
|
|
320
|
-
"optional": false,
|
|
321
|
-
"docs": {
|
|
322
|
-
"tags": [],
|
|
323
|
-
"text": ""
|
|
324
|
-
},
|
|
325
|
-
"attribute": "per-page",
|
|
326
|
-
"reflect": false,
|
|
327
|
-
"defaultValue": "10"
|
|
328
|
-
},
|
|
329
|
-
"selectedPerPage": {
|
|
330
|
-
"type": "number",
|
|
331
|
-
"mutable": true,
|
|
332
|
-
"complexType": {
|
|
333
|
-
"original": "number",
|
|
334
|
-
"resolved": "number",
|
|
335
|
-
"references": {}
|
|
336
|
-
},
|
|
337
|
-
"required": false,
|
|
338
|
-
"optional": false,
|
|
339
|
-
"docs": {
|
|
340
|
-
"tags": [],
|
|
341
|
-
"text": ""
|
|
342
|
-
},
|
|
343
|
-
"attribute": "selected-per-page",
|
|
344
|
-
"reflect": false,
|
|
345
|
-
"defaultValue": "10"
|
|
346
|
-
}
|
|
347
|
-
}; }
|
|
348
|
-
static get events() { return [{
|
|
349
|
-
"method": "kupPaginatorPageChanged",
|
|
350
|
-
"name": "kup-paginator-pagechanged",
|
|
351
|
-
"bubbles": true,
|
|
352
|
-
"cancelable": false,
|
|
353
|
-
"composed": true,
|
|
354
|
-
"docs": {
|
|
355
|
-
"tags": [],
|
|
356
|
-
"text": "When the current page change"
|
|
357
|
-
},
|
|
358
|
-
"complexType": {
|
|
359
|
-
"original": "KupPaginatorPageChangedEventPayload",
|
|
360
|
-
"resolved": "KupPaginatorPageChangedEventPayload",
|
|
361
|
-
"references": {
|
|
362
|
-
"KupPaginatorPageChangedEventPayload": {
|
|
363
|
-
"location": "import",
|
|
364
|
-
"path": "./kup-paginator-declarations"
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}, {
|
|
369
|
-
"method": "kupRowsPerPageChanged",
|
|
370
|
-
"name": "kup-paginator-rowsperpagechanged",
|
|
371
|
-
"bubbles": true,
|
|
372
|
-
"cancelable": false,
|
|
373
|
-
"composed": true,
|
|
374
|
-
"docs": {
|
|
375
|
-
"tags": [],
|
|
376
|
-
"text": "When the rows per page change"
|
|
377
|
-
},
|
|
378
|
-
"complexType": {
|
|
379
|
-
"original": "KupPaginatorRowsPerPageChangedEventPayload",
|
|
380
|
-
"resolved": "KupPaginatorRowsPerPageChangedEventPayload",
|
|
381
|
-
"references": {
|
|
382
|
-
"KupPaginatorRowsPerPageChangedEventPayload": {
|
|
383
|
-
"location": "import",
|
|
384
|
-
"path": "./kup-paginator-declarations"
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}]; }
|
|
389
|
-
static get methods() { return {
|
|
390
|
-
"refresh": {
|
|
391
|
-
"complexType": {
|
|
392
|
-
"signature": "() => Promise<void>",
|
|
393
|
-
"parameters": [],
|
|
394
|
-
"references": {
|
|
395
|
-
"Promise": {
|
|
396
|
-
"location": "global"
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
"return": "Promise<void>"
|
|
400
|
-
},
|
|
401
|
-
"docs": {
|
|
402
|
-
"text": "This method is used to trigger a new render of the component.",
|
|
403
|
-
"tags": []
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}; }
|
|
407
|
-
static get elementRef() { return "rootElement"; }
|
|
408
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { h } from './index-e0e67c23.js';
|
|
2
|
-
import { F as FImage } from './f-image-3bc8b24f.js';
|
|
3
|
-
import { a as KupThemeIconValues, f as KupDebugCategory, b as KupThemeColorValues } from './kup-manager-7fc234da.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Types of the f-chip component.
|
|
7
|
-
* @enum {string}
|
|
8
|
-
* @property {string} CHOICE - Only 1 chip may be selected at a time.
|
|
9
|
-
* @property {string} FILTER - Multiple chips may be selected at a time.
|
|
10
|
-
* @property {string} INPUT - Chips can be deleted by clicking on the rightmost icon.
|
|
11
|
-
* @property {string} STANDARD - Standard chip set.
|
|
12
|
-
*/
|
|
13
|
-
var FChipType;
|
|
14
|
-
(function (FChipType) {
|
|
15
|
-
FChipType["CHOICE"] = "choice";
|
|
16
|
-
FChipType["FILTER"] = "filter";
|
|
17
|
-
FChipType["INPUT"] = "input";
|
|
18
|
-
FChipType["STANDARD"] = "standard";
|
|
19
|
-
})(FChipType || (FChipType = {}));
|
|
20
|
-
|
|
21
|
-
const dom = document.documentElement;
|
|
22
|
-
/*-------------------------------------------------*/
|
|
23
|
-
/* C o m p o n e n t */
|
|
24
|
-
/*-------------------------------------------------*/
|
|
25
|
-
const FChip = (props) => {
|
|
26
|
-
if (!props.type) {
|
|
27
|
-
props.type = FChipType.STANDARD;
|
|
28
|
-
}
|
|
29
|
-
const isChoice = props.type.toLowerCase() === FChipType.CHOICE;
|
|
30
|
-
const isFilter = props.type.toLowerCase() === FChipType.FILTER;
|
|
31
|
-
const isInput = props.type.toLowerCase() === FChipType.INPUT;
|
|
32
|
-
const classObj = {
|
|
33
|
-
'chip-set': true,
|
|
34
|
-
'chip-set--choice': isChoice ? true : false,
|
|
35
|
-
'chip-set--filter': isFilter ? true : false,
|
|
36
|
-
'chip-set--input': isInput ? true : false,
|
|
37
|
-
};
|
|
38
|
-
return (h("div", Object.assign({ class: `f-chip ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
|
|
39
|
-
h("div", { class: classObj, role: "grid" }, createChipList(props, isChoice, isFilter, isInput))));
|
|
40
|
-
};
|
|
41
|
-
/*-------------------------------------------------*/
|
|
42
|
-
/* M e t h o d s */
|
|
43
|
-
/*-------------------------------------------------*/
|
|
44
|
-
function createChipList(props, isChoice, isFilter, isInput) {
|
|
45
|
-
const chipList = [];
|
|
46
|
-
let chipEl;
|
|
47
|
-
if (props.dataNew && props.dataNew.length > 0) {
|
|
48
|
-
props.data = treeNode2Data(props.dataNew);
|
|
49
|
-
}
|
|
50
|
-
for (let i = 0; props.data && i < props.data.length; i++) {
|
|
51
|
-
// could happen due to functions that change the data (such as transposition, etc)
|
|
52
|
-
if (!props.data[i]) {
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
let componentClass = 'chip';
|
|
56
|
-
let iconEl = [];
|
|
57
|
-
let iconClass = 'chip__icon chip__icon--leading';
|
|
58
|
-
if (isFilter || isChoice) {
|
|
59
|
-
if (props.data[i].checked) {
|
|
60
|
-
componentClass += ' chip--selected';
|
|
61
|
-
if (isFilter) {
|
|
62
|
-
iconClass += ' chip__icon--leading-hidden';
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
if (props.data[i].icon) {
|
|
67
|
-
const p = {
|
|
68
|
-
color: isChoice && props.data[i].checked
|
|
69
|
-
? `var(${KupThemeColorValues.PRIMARY})`
|
|
70
|
-
: `var(${KupThemeColorValues.TEXT})`,
|
|
71
|
-
resource: props.data[i].icon,
|
|
72
|
-
sizeX: '18px',
|
|
73
|
-
sizeY: '18px',
|
|
74
|
-
wrapperClass: iconClass,
|
|
75
|
-
};
|
|
76
|
-
iconEl.push(h(FImage, Object.assign({}, p)));
|
|
77
|
-
}
|
|
78
|
-
if (isFilter) {
|
|
79
|
-
iconEl.push(h("span", { class: "chip__checkmark" },
|
|
80
|
-
h("svg", { class: "chip__checkmark-svg", viewBox: "-2 -3 30 30" },
|
|
81
|
-
h("path", { class: "chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))));
|
|
82
|
-
}
|
|
83
|
-
chipEl = (h("div", { class: componentClass, "data-value": props.data[i].value, onClick: props.onClick && props.onClick[i] ? props.onClick[i] : null, role: "row" },
|
|
84
|
-
iconEl,
|
|
85
|
-
h("span", { role: "gridcell" },
|
|
86
|
-
h("span", { role: "button", tabindex: i, class: "chip__primary-action",
|
|
87
|
-
// @ts-ignore
|
|
88
|
-
value: props.data[i].value, checked: props.data[i].checked, onBlur: props.onBlur && props.onBlur[i]
|
|
89
|
-
? props.onBlur[i]
|
|
90
|
-
: null, onFocus: props.onFocus && props.onFocus[i]
|
|
91
|
-
? props.onFocus[i]
|
|
92
|
-
: null },
|
|
93
|
-
h("span", { class: "chip__text" }, props.data[i].label))),
|
|
94
|
-
isInput ? (h("span", { role: "gridcell" },
|
|
95
|
-
h("span", { tabindex: "-1", class: `kup-icon chip__icon ${KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onIconClick && props.onIconClick[i]
|
|
96
|
-
? props.onIconClick[i]
|
|
97
|
-
: null }))) : undefined));
|
|
98
|
-
chipList.push(chipEl);
|
|
99
|
-
}
|
|
100
|
-
return chipList;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* This function converts TreeNode[] to FChipData[]. This is valid until FChipData is removed.
|
|
104
|
-
*
|
|
105
|
-
* @return {FChipData} Array of FChipData.
|
|
106
|
-
*/
|
|
107
|
-
function treeNode2Data(dataNew) {
|
|
108
|
-
function children(TreeNode) {
|
|
109
|
-
for (let index = 0; index < TreeNode.children.length; index++) {
|
|
110
|
-
const node = TreeNode.children[index];
|
|
111
|
-
data.push({
|
|
112
|
-
icon: TreeNode.children[index].icon,
|
|
113
|
-
label: TreeNode.children[index].value,
|
|
114
|
-
obj: TreeNode.children[index].obj,
|
|
115
|
-
value: TreeNode.children[index].id,
|
|
116
|
-
});
|
|
117
|
-
if (node.children) {
|
|
118
|
-
children(node);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
const data = [];
|
|
123
|
-
for (let index = 0; index < dataNew.length; index++) {
|
|
124
|
-
const node = dataNew[index];
|
|
125
|
-
data.push({
|
|
126
|
-
icon: node.icon,
|
|
127
|
-
label: node.value,
|
|
128
|
-
obj: node.obj,
|
|
129
|
-
value: node.id,
|
|
130
|
-
});
|
|
131
|
-
if (node.children) {
|
|
132
|
-
children(dataNew[index]);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
dom.ketchup.debug.logMessage('f-chip', 'Chip data was deducted from a TreeNode[] structure (experimental feature).', KupDebugCategory.WARNING);
|
|
136
|
-
return data;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export { FChip as F, FChipType as a };
|