@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
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const kupManager = require('./kup-manager-5877b2ee.js');
|
|
4
|
+
|
|
5
|
+
const dom = document.documentElement;
|
|
6
|
+
exports.DateTimeFormatOptionsMonth = void 0;
|
|
7
|
+
(function (DateTimeFormatOptionsMonth) {
|
|
8
|
+
DateTimeFormatOptionsMonth["NUMERIC"] = "numeric";
|
|
9
|
+
DateTimeFormatOptionsMonth["DIGIT2"] = "2-digit";
|
|
10
|
+
DateTimeFormatOptionsMonth["LONG"] = "long";
|
|
11
|
+
DateTimeFormatOptionsMonth["SHORT"] = "short";
|
|
12
|
+
DateTimeFormatOptionsMonth["NARROW"] = "narrow";
|
|
13
|
+
})(exports.DateTimeFormatOptionsMonth || (exports.DateTimeFormatOptionsMonth = {}));
|
|
14
|
+
function identify(array) {
|
|
15
|
+
if (array) {
|
|
16
|
+
for (let i = 0; i < array.length; i++) {
|
|
17
|
+
array[i].id = i.toString();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function getSeparator(locale, separatorType) {
|
|
22
|
+
const numberWithGroupAndDecimalSeparator = 1000.1;
|
|
23
|
+
return Intl.NumberFormat(locale)
|
|
24
|
+
.formatToParts(numberWithGroupAndDecimalSeparator)
|
|
25
|
+
.find((part) => part.type === separatorType).value;
|
|
26
|
+
}
|
|
27
|
+
function getCurrentTimeFormatFromBrowserLocale(manageSeconds) {
|
|
28
|
+
const options = {
|
|
29
|
+
hour: '2-digit',
|
|
30
|
+
minute: '2-digit',
|
|
31
|
+
hour12: false,
|
|
32
|
+
};
|
|
33
|
+
if (manageSeconds == true) {
|
|
34
|
+
options.second = '2-digit';
|
|
35
|
+
}
|
|
36
|
+
const formatObj = new Intl.DateTimeFormat(dom.ketchup.dates.getLocale() + '-u-hc-h23', options).formatToParts(new Date());
|
|
37
|
+
let timeFormat = formatObj
|
|
38
|
+
.map((obj) => {
|
|
39
|
+
switch (obj.type) {
|
|
40
|
+
case 'hour':
|
|
41
|
+
return 'HH';
|
|
42
|
+
case 'minute':
|
|
43
|
+
return 'mm';
|
|
44
|
+
case 'second':
|
|
45
|
+
return 'ss';
|
|
46
|
+
default:
|
|
47
|
+
return obj.value;
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
.join('');
|
|
51
|
+
return timeFormat;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if an object is undefined, null or empty
|
|
55
|
+
* @param obj the object to check
|
|
56
|
+
* @returns true or false
|
|
57
|
+
*/
|
|
58
|
+
function isEmpty(obj) {
|
|
59
|
+
return (!obj ||
|
|
60
|
+
obj === null ||
|
|
61
|
+
(Object.keys(obj).length === 0 && obj.constructor === Object));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @param value number as string, formatted by actual browser locale
|
|
65
|
+
* @param type - type of number for calculate suffix
|
|
66
|
+
* @returns true if number string in input is a valid number
|
|
67
|
+
*/
|
|
68
|
+
function isValidFormattedStringNumber(value, type) {
|
|
69
|
+
if (value == null || value.trim() == '') {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
let tmpStr = formattedStringToUnformattedStringNumber(value, type);
|
|
73
|
+
if (isNumber(tmpStr)) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
function isNumber(value) {
|
|
79
|
+
//return typeof value === 'number';
|
|
80
|
+
return !isNaN(value);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
|
|
84
|
+
* @returns number
|
|
85
|
+
**/
|
|
86
|
+
function stringToNumber(input) {
|
|
87
|
+
if (!input || input == null || input.trim() == '') {
|
|
88
|
+
input = '0';
|
|
89
|
+
}
|
|
90
|
+
return dom.ketchup.math.numberify(input);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @param input number
|
|
94
|
+
* @param decimals number of significant decimal digits for output
|
|
95
|
+
* @returns number as string, formatted by actual browser locale
|
|
96
|
+
**/
|
|
97
|
+
function numberToString(input, decimals) {
|
|
98
|
+
if (input == null) {
|
|
99
|
+
return '';
|
|
100
|
+
}
|
|
101
|
+
return _numberToString(input, decimals, dom.ketchup.dates.getLocale(), true);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @param type - type of number for calculate suffix
|
|
105
|
+
* @returns suffix for number, by type
|
|
106
|
+
**/
|
|
107
|
+
function getNumericValueSuffixByType(type) {
|
|
108
|
+
type = type.toUpperCase();
|
|
109
|
+
let nstr = '';
|
|
110
|
+
if (type == 'P') {
|
|
111
|
+
nstr = ' %';
|
|
112
|
+
}
|
|
113
|
+
else if (type == 'VE') {
|
|
114
|
+
nstr = ' €';
|
|
115
|
+
}
|
|
116
|
+
else if (type == 'VL') {
|
|
117
|
+
nstr = ' £';
|
|
118
|
+
}
|
|
119
|
+
else if (type == 'VV') {
|
|
120
|
+
nstr = ' $';
|
|
121
|
+
}
|
|
122
|
+
return nstr;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @param input number
|
|
126
|
+
* @param decimals number of significant decimal digits for output
|
|
127
|
+
* @param type - type of number for calculate suffix
|
|
128
|
+
* @returns number as string, formatted by actual browser locale, with suffix by type
|
|
129
|
+
**/
|
|
130
|
+
function numberToFormattedStringNumber(input, decimals, type) {
|
|
131
|
+
if (input == null || isNaN(input)) {
|
|
132
|
+
return '';
|
|
133
|
+
}
|
|
134
|
+
let nstr = numberToString(input, decimals);
|
|
135
|
+
nstr = nstr + getNumericValueSuffixByType(type);
|
|
136
|
+
return nstr;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
|
|
140
|
+
* @param decimals number of significant decimal digits for output
|
|
141
|
+
* @param type - type of number for calculate suffix
|
|
142
|
+
* @returns number as string, formatted by actual browser locale, with suffix by type
|
|
143
|
+
**/
|
|
144
|
+
function unformattedStringToFormattedStringNumber(input, decimals, type) {
|
|
145
|
+
return numberToFormattedStringNumber(stringToNumber(input), decimals, type);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @param input number as string, formatted by actual browser locale
|
|
149
|
+
* @param type - type of number for calculate suffix
|
|
150
|
+
* @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
|
|
151
|
+
**/
|
|
152
|
+
function formattedStringToUnformattedStringNumber(input, type) {
|
|
153
|
+
return numberStringToNumberString(input, type, getDecimalSeparator(dom.ketchup.dates.getLocale()));
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers), with group separator
|
|
157
|
+
* @param type - type of number for calculate suffix
|
|
158
|
+
* @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
|
|
159
|
+
**/
|
|
160
|
+
function unformattedStringNumberToNumber(input, type) {
|
|
161
|
+
return numberStringToNumberString(input, type, '.');
|
|
162
|
+
}
|
|
163
|
+
function numberStringToNumberString(input, type, decFmt) {
|
|
164
|
+
if (input == null || input.trim() == '') {
|
|
165
|
+
return '';
|
|
166
|
+
}
|
|
167
|
+
let originalInputValue = input;
|
|
168
|
+
let suffix = getNumericValueSuffixByType(type);
|
|
169
|
+
if (suffix != '') {
|
|
170
|
+
input = input.replace(suffix, '');
|
|
171
|
+
}
|
|
172
|
+
let regExpr = null;
|
|
173
|
+
if (decFmt == '.') {
|
|
174
|
+
regExpr = /,/g;
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
regExpr = /\./g;
|
|
178
|
+
}
|
|
179
|
+
input = input.replace(regExpr, '');
|
|
180
|
+
if (decFmt != '.') {
|
|
181
|
+
input = input.replace(/,/g, '.');
|
|
182
|
+
}
|
|
183
|
+
if (dom.ketchup.math.numberify(input) == null ||
|
|
184
|
+
isNaN(dom.ketchup.math.numberify(input))) {
|
|
185
|
+
return originalInputValue;
|
|
186
|
+
}
|
|
187
|
+
let unf = stringToNumber(input);
|
|
188
|
+
return _numberToString(unf, -1, 'en-US', false);
|
|
189
|
+
}
|
|
190
|
+
function getDecimalSeparator(locale) {
|
|
191
|
+
return getSeparator(locale, 'decimal');
|
|
192
|
+
}
|
|
193
|
+
function countDecimals(value) {
|
|
194
|
+
if (Math.floor(value) === value)
|
|
195
|
+
return 0;
|
|
196
|
+
let stringValue = value.toString().split('.')[1];
|
|
197
|
+
if (stringValue) {
|
|
198
|
+
return stringValue.length ? stringValue.length : 0;
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
return 0;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function _numberToString(input, decimals, locale, useGrouping) {
|
|
205
|
+
if (input == null) {
|
|
206
|
+
input = 0;
|
|
207
|
+
}
|
|
208
|
+
if (decimals == null || decimals == -1) {
|
|
209
|
+
decimals = countDecimals(input);
|
|
210
|
+
}
|
|
211
|
+
let n = Number(input);
|
|
212
|
+
let f = decimals > -1
|
|
213
|
+
? {
|
|
214
|
+
minimumFractionDigits: decimals,
|
|
215
|
+
maximumFractionDigits: decimals,
|
|
216
|
+
useGrouping: useGrouping,
|
|
217
|
+
}
|
|
218
|
+
: { useGrouping: useGrouping };
|
|
219
|
+
return n.toLocaleString(locale, f);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @param time time as Date object
|
|
223
|
+
* @param manageSeconds flag to set seconds managing
|
|
224
|
+
* @return time as string, formatted
|
|
225
|
+
**/
|
|
226
|
+
function formatTime(time, manageSeconds) {
|
|
227
|
+
const options = {
|
|
228
|
+
hour: '2-digit',
|
|
229
|
+
minute: '2-digit',
|
|
230
|
+
hour12: false,
|
|
231
|
+
};
|
|
232
|
+
if (manageSeconds == true) {
|
|
233
|
+
options.second = '2-digit';
|
|
234
|
+
}
|
|
235
|
+
return time.toLocaleTimeString(dom.ketchup.dates.getLocale() + '-u-hc-h23', options);
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @param value time string, formatted by actual browser locale
|
|
239
|
+
* @returns true if time string in input is a valid time
|
|
240
|
+
*/
|
|
241
|
+
function isValidFormattedStringTime(value, manageSeconds) {
|
|
242
|
+
let format = getCurrentTimeFormatFromBrowserLocale(manageSeconds);
|
|
243
|
+
return dom.ketchup.dates.isValid(value, format, true);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* @param value date/time as string, formatted by actual browser locale
|
|
247
|
+
* @returns date/time as string, formatted ISO
|
|
248
|
+
**/
|
|
249
|
+
function formattedStringToDefaultUnformattedStringTimestamp(value) {
|
|
250
|
+
return formattedStringToCustomUnformattedStringTime(value, kupManager.KupDatesFormats.ISO_DATE_TIME, true);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @param value time as string, formatted by actual browser locale
|
|
254
|
+
* @param outputFormat time format to return
|
|
255
|
+
* @param manageSeconds flag to set seconds managing
|
|
256
|
+
* @returns time as string, formatted
|
|
257
|
+
**/
|
|
258
|
+
function formattedStringToCustomUnformattedStringTime(value, outputFormat, manageSeconds) {
|
|
259
|
+
let inputFormat = getCurrentTimeFormatFromBrowserLocale(manageSeconds);
|
|
260
|
+
if (dom.ketchup.dates.isValid(value, inputFormat)) {
|
|
261
|
+
return dom.ketchup.dates.format(dom.ketchup.dates.normalize(value, kupManager.KupDatesNormalize.TIME), outputFormat);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
return '';
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* @param value time as string, formatted ISO
|
|
269
|
+
* @param manageSeconds flag to set seconds managing
|
|
270
|
+
* @param valueTimeFormat time format (default ISO)
|
|
271
|
+
* @param customedFormat time format from smeupObject
|
|
272
|
+
* @returns time as string, formatted by actual browser locale
|
|
273
|
+
**/
|
|
274
|
+
function unformattedStringToFormattedStringTime(value, manageSeconds, customedFormat) {
|
|
275
|
+
const options = {
|
|
276
|
+
hour: '2-digit',
|
|
277
|
+
minute: '2-digit',
|
|
278
|
+
hour12: false,
|
|
279
|
+
};
|
|
280
|
+
if (manageSeconds == true) {
|
|
281
|
+
options.second = '2-digit';
|
|
282
|
+
}
|
|
283
|
+
let date = dom.ketchup.dates.toDate(dom.ketchup.dates.normalize(value, kupManager.KupDatesNormalize.TIME));
|
|
284
|
+
return formatByCustomedOutputTimeFormat(value, date, options, customedFormat);
|
|
285
|
+
}
|
|
286
|
+
function formatByCustomedOutputTimeFormat(valueStr, date, options, customedFormat) {
|
|
287
|
+
if (customedFormat == null) {
|
|
288
|
+
return date.toLocaleTimeString(dom.ketchup.dates.getLocale() + '-u-hc-h23', options);
|
|
289
|
+
}
|
|
290
|
+
switch (customedFormat) {
|
|
291
|
+
case 'I13': {
|
|
292
|
+
//hh:mm
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
case 'I12': {
|
|
296
|
+
//hh:mm:ss
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
case 'I11': {
|
|
300
|
+
//???
|
|
301
|
+
//hh:dddd
|
|
302
|
+
//return moment(date).format('HH:DDDD');
|
|
303
|
+
return valueStr;
|
|
304
|
+
}
|
|
305
|
+
case 'I14': {
|
|
306
|
+
//???
|
|
307
|
+
//sssss
|
|
308
|
+
//return moment(date).format('SSSSS');
|
|
309
|
+
return valueStr;
|
|
310
|
+
}
|
|
311
|
+
case 'I1H': {
|
|
312
|
+
//???
|
|
313
|
+
//Ora,Cen/Min HH,xx
|
|
314
|
+
return valueStr;
|
|
315
|
+
}
|
|
316
|
+
case 'I1M': {
|
|
317
|
+
//???
|
|
318
|
+
//Min,Cen/Sec MMMM,xx
|
|
319
|
+
return valueStr;
|
|
320
|
+
}
|
|
321
|
+
case 'I21': {
|
|
322
|
+
//???
|
|
323
|
+
//Giorni,(4 decim)
|
|
324
|
+
return valueStr;
|
|
325
|
+
}
|
|
326
|
+
case 'I22': {
|
|
327
|
+
//???
|
|
328
|
+
//Ore,(4 decim)
|
|
329
|
+
return valueStr;
|
|
330
|
+
}
|
|
331
|
+
case 'I23': {
|
|
332
|
+
//???
|
|
333
|
+
//Minuti,(4 decim)
|
|
334
|
+
return valueStr;
|
|
335
|
+
}
|
|
336
|
+
case 'I24': {
|
|
337
|
+
//???
|
|
338
|
+
//Secondi
|
|
339
|
+
return valueStr;
|
|
340
|
+
}
|
|
341
|
+
case 'I2H': {
|
|
342
|
+
//???
|
|
343
|
+
//Ora,Cen/Min HHHH,xx
|
|
344
|
+
return valueStr;
|
|
345
|
+
}
|
|
346
|
+
case 'I2D': {
|
|
347
|
+
//???
|
|
348
|
+
//Ore Minuti Secondi HHMMS
|
|
349
|
+
return valueStr;
|
|
350
|
+
}
|
|
351
|
+
case 'I2M': {
|
|
352
|
+
//???
|
|
353
|
+
//Min,Cen/Sec MMMM,xx
|
|
354
|
+
return valueStr;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return date.toLocaleTimeString(dom.ketchup.dates.getLocale() + '-u-hc-h23', options);
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* @param value date/time as string, formatted ISO
|
|
361
|
+
* @param valueDateFormat date/time format (default ISO)
|
|
362
|
+
* @returns date/time as string, formatted by actual browser locale
|
|
363
|
+
**/
|
|
364
|
+
function unformattedStringToFormattedStringTimestamp(value) {
|
|
365
|
+
const options = {
|
|
366
|
+
day: '2-digit',
|
|
367
|
+
month: '2-digit',
|
|
368
|
+
year: 'numeric',
|
|
369
|
+
hour: '2-digit',
|
|
370
|
+
minute: '2-digit',
|
|
371
|
+
second: '2-digit',
|
|
372
|
+
hour12: false,
|
|
373
|
+
};
|
|
374
|
+
let date = dom.ketchup.dates.toDate(dom.ketchup.dates.normalize(value, kupManager.KupDatesNormalize.TIMESTAMP));
|
|
375
|
+
return date.toLocaleString(dom.ketchup.dates.getLocale() + '-u-hc-h23', options);
|
|
376
|
+
}
|
|
377
|
+
function getMonthAsStringByLocale(month, format) {
|
|
378
|
+
if (month == null) {
|
|
379
|
+
return '';
|
|
380
|
+
}
|
|
381
|
+
const dateTmp = new Date();
|
|
382
|
+
dateTmp.setDate(1);
|
|
383
|
+
dateTmp.setMonth(month - 1);
|
|
384
|
+
const options = {
|
|
385
|
+
month: format,
|
|
386
|
+
};
|
|
387
|
+
const dateTimeFormat = new Intl.DateTimeFormat(dom.ketchup.dates.getLocale(), options);
|
|
388
|
+
return dateTimeFormat.format(dateTmp);
|
|
389
|
+
}
|
|
390
|
+
function getMonthsAsStringByLocale(format) {
|
|
391
|
+
if (format == null || format.trim() == '') {
|
|
392
|
+
format = exports.DateTimeFormatOptionsMonth.LONG;
|
|
393
|
+
}
|
|
394
|
+
var months = [];
|
|
395
|
+
for (var i = 0; i < 12; i++) {
|
|
396
|
+
months[i] = getMonthAsStringByLocale(i + 1, format);
|
|
397
|
+
}
|
|
398
|
+
return months;
|
|
399
|
+
}
|
|
400
|
+
function deepEqual(object1, object2) {
|
|
401
|
+
if (!(isObject(object1) && isObject(object2))) {
|
|
402
|
+
return object1 === object2;
|
|
403
|
+
}
|
|
404
|
+
const keys1 = Object.keys(object1);
|
|
405
|
+
const keys2 = Object.keys(object2);
|
|
406
|
+
if (keys1.length !== keys2.length) {
|
|
407
|
+
return false;
|
|
408
|
+
}
|
|
409
|
+
for (const key of keys1) {
|
|
410
|
+
const val1 = object1[key];
|
|
411
|
+
const val2 = object2[key];
|
|
412
|
+
const areObjects = isObject(val1) && isObject(val2);
|
|
413
|
+
if ((areObjects && !deepEqual(val1, val2)) ||
|
|
414
|
+
(!areObjects && val1 !== val2)) {
|
|
415
|
+
return false;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return true;
|
|
419
|
+
}
|
|
420
|
+
function isObject(object) {
|
|
421
|
+
return object != null && typeof object === 'object';
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Used to retrieve component's props values.
|
|
425
|
+
* @param {any} comp - Component calling this function.
|
|
426
|
+
* @param {GenericObject} list - Prop list, specific for each component.
|
|
427
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
428
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
429
|
+
*/
|
|
430
|
+
function getProps(comp, list, descriptions) {
|
|
431
|
+
let props = {};
|
|
432
|
+
if (descriptions) {
|
|
433
|
+
props = list;
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
for (const key in list) {
|
|
437
|
+
if (Object.prototype.hasOwnProperty.call(list, key)) {
|
|
438
|
+
props[key] = comp[key];
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return props;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Sets the props to the component.
|
|
446
|
+
* @param {any} comp - Component calling this function.
|
|
447
|
+
* @param {GenericObject} list - Prop list, specific for each component.
|
|
448
|
+
* @param {GenericObject} props - Prop to be set.
|
|
449
|
+
*/
|
|
450
|
+
function setProps(comp, list, props) {
|
|
451
|
+
for (const key in props) {
|
|
452
|
+
// If key is a custom prop it will be set on the component (i.e.: "data", "customStyle", ecc.)
|
|
453
|
+
if (list[key]) {
|
|
454
|
+
comp[key] = props[key];
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
// Otherwise, it will be set on its HTML element (i.e.: "id", "style", ecc.)
|
|
458
|
+
comp.rootElement[key] = props[key];
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
exports.deepEqual = deepEqual;
|
|
464
|
+
exports.formatTime = formatTime;
|
|
465
|
+
exports.formattedStringToCustomUnformattedStringTime = formattedStringToCustomUnformattedStringTime;
|
|
466
|
+
exports.formattedStringToDefaultUnformattedStringTimestamp = formattedStringToDefaultUnformattedStringTimestamp;
|
|
467
|
+
exports.formattedStringToUnformattedStringNumber = formattedStringToUnformattedStringNumber;
|
|
468
|
+
exports.getDecimalSeparator = getDecimalSeparator;
|
|
469
|
+
exports.getMonthsAsStringByLocale = getMonthsAsStringByLocale;
|
|
470
|
+
exports.getProps = getProps;
|
|
471
|
+
exports.identify = identify;
|
|
472
|
+
exports.isEmpty = isEmpty;
|
|
473
|
+
exports.isNumber = isNumber;
|
|
474
|
+
exports.isValidFormattedStringNumber = isValidFormattedStringNumber;
|
|
475
|
+
exports.isValidFormattedStringTime = isValidFormattedStringTime;
|
|
476
|
+
exports.numberToFormattedStringNumber = numberToFormattedStringNumber;
|
|
477
|
+
exports.setProps = setProps;
|
|
478
|
+
exports.stringToNumber = stringToNumber;
|
|
479
|
+
exports.unformattedStringNumberToNumber = unformattedStringNumberToNumber;
|
|
480
|
+
exports.unformattedStringToFormattedStringNumber = unformattedStringToFormattedStringNumber;
|
|
481
|
+
exports.unformattedStringToFormattedStringTime = unformattedStringToFormattedStringTime;
|
|
482
|
+
exports.unformattedStringToFormattedStringTimestamp = unformattedStringToFormattedStringTimestamp;
|
|
@@ -168,7 +168,52 @@ const callback = (e) => {
|
|
|
168
168
|
const calendars = document.querySelectorAll('kup-calendar');
|
|
169
169
|
for (let index = 0; index < calendars.length; index++) {
|
|
170
170
|
const calendar = calendars[index];
|
|
171
|
-
calendar.data = { ...data };
|
|
171
|
+
calendar.data = { columns: [...data.columns], rows: data.rows };
|
|
172
|
+
const dateCol = calendar.data.columns.find((col) => col.name === 'date');
|
|
173
|
+
const descrCol = calendar.data.columns.find((col) => col.name === 'descr');
|
|
174
|
+
const endCol = calendar.data.columns.find((col) => col.name === 'end');
|
|
175
|
+
const iconCol = calendar.data.columns.find((col) => col.name === 'icon');
|
|
176
|
+
const imageCol = calendar.data.columns.find((col) => col.name === 'image');
|
|
177
|
+
const startCol = calendar.data.columns.find((col) => col.name === 'start');
|
|
178
|
+
const styleCol = calendar.data.columns.find((col) => col.name === 'style');
|
|
179
|
+
calendar.data.columns[calendar.data.columns.indexOf(dateCol)] = {
|
|
180
|
+
...dateCol,
|
|
181
|
+
calendarOption: 'date',
|
|
182
|
+
};
|
|
183
|
+
calendar.data.columns[calendar.data.columns.indexOf(descrCol)] = {
|
|
184
|
+
...descrCol,
|
|
185
|
+
calendarOption: 'descr',
|
|
186
|
+
};
|
|
187
|
+
switch (calendar.id) {
|
|
188
|
+
case 'week-view':
|
|
189
|
+
calendar.data.columns[calendar.data.columns.indexOf(endCol)] = {
|
|
190
|
+
...endCol,
|
|
191
|
+
calendarOption: 'end',
|
|
192
|
+
};
|
|
193
|
+
calendar.data.columns[calendar.data.columns.indexOf(startCol)] = {
|
|
194
|
+
...startCol,
|
|
195
|
+
calendarOption: 'start',
|
|
196
|
+
};
|
|
197
|
+
break;
|
|
198
|
+
case 'with-icon':
|
|
199
|
+
calendar.data.columns[calendar.data.columns.indexOf(iconCol)] = {
|
|
200
|
+
...iconCol,
|
|
201
|
+
calendarOption: 'icon',
|
|
202
|
+
};
|
|
203
|
+
break;
|
|
204
|
+
case 'with-images':
|
|
205
|
+
calendar.data.columns[calendar.data.columns.indexOf(imageCol)] = {
|
|
206
|
+
...imageCol,
|
|
207
|
+
calendarOption: 'image',
|
|
208
|
+
};
|
|
209
|
+
break;
|
|
210
|
+
case 'with-style':
|
|
211
|
+
calendar.data.columns[calendar.data.columns.indexOf(styleCol)] = {
|
|
212
|
+
...styleCol,
|
|
213
|
+
calendarOption: 'style',
|
|
214
|
+
};
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
172
217
|
calendar.addEventListener('kup-calendar-dateclick', callback);
|
|
173
218
|
calendar.addEventListener('kup-calendar-eventclick', callback);
|
|
174
219
|
calendar.addEventListener('kup-calendar-eventdrop', callback);
|
|
@@ -325,16 +325,16 @@ for (let index = 0; index < cards.length; index++) {
|
|
|
325
325
|
{
|
|
326
326
|
data: [
|
|
327
327
|
{
|
|
328
|
-
value: '1_chip',
|
|
329
|
-
icon: 'filter_1',
|
|
330
|
-
label: 'First chip',
|
|
331
328
|
checked: false,
|
|
329
|
+
icon: 'filter_1',
|
|
330
|
+
id: '1_chip',
|
|
331
|
+
value: 'First chip',
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
|
-
value: '2_chip',
|
|
335
|
-
icon: 'filter_2',
|
|
336
|
-
label: 'Second chip',
|
|
337
334
|
checked: true,
|
|
335
|
+
icon: 'filter_2',
|
|
336
|
+
id: '2_chip',
|
|
337
|
+
value: 'Second chip',
|
|
338
338
|
},
|
|
339
339
|
],
|
|
340
340
|
},
|
|
@@ -2711,15 +2711,15 @@ for (let index = 0; index < cards.length; index++) {
|
|
|
2711
2711
|
val = this.tag.getAttribute(prefix + key);
|
|
2712
2712
|
if (val === undefined || val === null) {
|
|
2713
2713
|
val = UNSET_OPTION;
|
|
2714
|
-
} else if (val.
|
|
2715
|
-
val = val.
|
|
2714
|
+
} else if (val.substring(0, 1) === '[') {
|
|
2715
|
+
val = val.substring(1, val.length - 1).split(',');
|
|
2716
2716
|
for (i = val.length; i--; ) {
|
|
2717
2717
|
val[i] = normalizeValue(
|
|
2718
2718
|
val[i].replace(/(^\s*)|(\s*$)/g, '')
|
|
2719
2719
|
);
|
|
2720
2720
|
}
|
|
2721
|
-
} else if (val.
|
|
2722
|
-
pairs = val.
|
|
2721
|
+
} else if (val.substring(0, 1) === '{') {
|
|
2722
|
+
pairs = val.substring(1, val.length - 1).split(',');
|
|
2723
2723
|
val = {};
|
|
2724
2724
|
for (i = pairs.length; i--; ) {
|
|
2725
2725
|
keyval = pairs[i].split(':', 2);
|
|
@@ -4288,8 +4288,8 @@ for (let index = 0; index < cards.length; index++) {
|
|
|
4288
4288
|
getCurrentRegionFields: function () {
|
|
4289
4289
|
var currentRegion = this.currentRegion;
|
|
4290
4290
|
return {
|
|
4291
|
-
fieldkey: currentRegion.
|
|
4292
|
-
value: this.values[currentRegion.
|
|
4291
|
+
fieldkey: currentRegion.substring(0, 1),
|
|
4292
|
+
value: this.values[currentRegion.substring(1)],
|
|
4293
4293
|
region: currentRegion,
|
|
4294
4294
|
};
|
|
4295
4295
|
},
|
|
@@ -4299,10 +4299,10 @@ for (let index = 0; index < cards.length; index++) {
|
|
|
4299
4299
|
shapeid = this.valueShapes[currentRegion],
|
|
4300
4300
|
shape;
|
|
4301
4301
|
delete this.shapes[shapeid];
|
|
4302
|
-
switch (currentRegion.
|
|
4302
|
+
switch (currentRegion.substring(0, 1)) {
|
|
4303
4303
|
case 'r':
|
|
4304
4304
|
shape = this.renderRange(
|
|
4305
|
-
currentRegion.
|
|
4305
|
+
currentRegion.substring(1),
|
|
4306
4306
|
highlight
|
|
4307
4307
|
);
|
|
4308
4308
|
break;
|
|
@@ -5577,7 +5577,7 @@ for (let index = 0; index < cards.length; index++) {
|
|
|
5577
5577
|
},
|
|
5578
5578
|
|
|
5579
5579
|
getShapeAt: function (el, x, y) {
|
|
5580
|
-
var shapeid = el.id.
|
|
5580
|
+
var shapeid = el.id.substring(8);
|
|
5581
5581
|
return shapeid;
|
|
5582
5582
|
},
|
|
5583
5583
|
|
|
@@ -8,10 +8,21 @@ document.addEventListener('kup-cell-update', (e) => {
|
|
|
8
8
|
};
|
|
9
9
|
e.target.refresh();
|
|
10
10
|
});
|
|
11
|
+
document.addEventListener('kup-cell-input', (e) => {
|
|
12
|
+
console.log(e);
|
|
13
|
+
});
|
|
14
|
+
document.addEventListener('kup-cell-click', (e) => {
|
|
15
|
+
console.log(e);
|
|
16
|
+
});
|
|
17
|
+
document.addEventListener('kup-cell-iconclick', (e) => {
|
|
18
|
+
console.log(e);
|
|
19
|
+
});
|
|
11
20
|
document.addEventListener('kup-datatable-rowactionclick', (e) =>
|
|
12
21
|
console.log(e)
|
|
13
22
|
);
|
|
14
23
|
document.addEventListener('kupColumnMenuActive', (e) => console.log(e));
|
|
24
|
+
document.addEventListener('kup-datatable-columnmove', (e) => console.log(e));
|
|
25
|
+
document.addEventListener('kup-datatable-columnremove', (e) => console.log(e));
|
|
15
26
|
document.addEventListener('kup-datatable-dblclick', (e) => console.log(e));
|
|
16
27
|
document.addEventListener('kup-datatable-contextmenu', (e) => console.log(e));
|
|
17
28
|
document.addEventListener('kup-datatable-click', (e) => console.log(e));
|
|
@@ -346,13 +357,13 @@ const completeData = {
|
|
|
346
357
|
data: {
|
|
347
358
|
data: [
|
|
348
359
|
{
|
|
349
|
-
|
|
350
|
-
|
|
360
|
+
id: 'text',
|
|
361
|
+
value: 'Text only',
|
|
351
362
|
},
|
|
352
363
|
{
|
|
353
|
-
value: 'icon',
|
|
354
364
|
icon: 'widgets',
|
|
355
|
-
|
|
365
|
+
id: 'icon',
|
|
366
|
+
value: 'With icon',
|
|
356
367
|
},
|
|
357
368
|
],
|
|
358
369
|
},
|
|
@@ -552,6 +563,7 @@ const completeData = {
|
|
|
552
563
|
value: '10',
|
|
553
564
|
},
|
|
554
565
|
RATING: {
|
|
566
|
+
isEditable: true,
|
|
555
567
|
data: {
|
|
556
568
|
value: '5',
|
|
557
569
|
maxValue: 10,
|
|
@@ -124255,10 +124267,10 @@ const jlObjectsTestData = {
|
|
|
124255
124267
|
data: {
|
|
124256
124268
|
data: [
|
|
124257
124269
|
{
|
|
124258
|
-
|
|
124270
|
+
value: 'Federico Robertozzi',
|
|
124259
124271
|
},
|
|
124260
124272
|
{
|
|
124261
|
-
|
|
124273
|
+
value: 'Parodonte Frascati',
|
|
124262
124274
|
},
|
|
124263
124275
|
],
|
|
124264
124276
|
},
|
|
@@ -90,6 +90,10 @@ components.data = [
|
|
|
90
90
|
text: 'Dropdown button',
|
|
91
91
|
value: 'dropdown-button.html',
|
|
92
92
|
},
|
|
93
|
+
{
|
|
94
|
+
text: 'Echart',
|
|
95
|
+
value: 'echart.html',
|
|
96
|
+
},
|
|
93
97
|
{
|
|
94
98
|
text: 'Gauge',
|
|
95
99
|
value: 'gauge.html',
|
|
@@ -98,6 +102,10 @@ components.data = [
|
|
|
98
102
|
text: 'Image',
|
|
99
103
|
value: 'image.html',
|
|
100
104
|
},
|
|
105
|
+
{
|
|
106
|
+
text: 'KupData',
|
|
107
|
+
value: 'kupdata.html',
|
|
108
|
+
},
|
|
101
109
|
{
|
|
102
110
|
text: 'Layout',
|
|
103
111
|
value: 'layout.html',
|