@sme.up/ketchup 4.0.0 → 4.2.0
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 +3 -3
- package/dist/cjs/cell-utils-dc0884a3.js +168 -0
- package/dist/cjs/f-button-2ba74fb5.js +105 -0
- package/dist/cjs/f-cell-fe60a08d.js +731 -0
- package/dist/cjs/f-chip-90d95d22.js +141 -0
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-d3bd4e08.js} +4 -5
- package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +6 -8
- package/dist/cjs/{kup-autocomplete_29.cjs.entry.js → kup-autocomplete_28.cjs.entry.js} +2580 -3060
- package/dist/cjs/kup-calendar.cjs.entry.js +30 -30
- package/dist/cjs/kup-cell.cjs.entry.js +201 -0
- package/dist/cjs/kup-dash-list.cjs.entry.js +15 -7
- package/dist/cjs/kup-dash_2.cjs.entry.js +104 -62
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -6
- package/dist/cjs/kup-field.cjs.entry.js +3 -5
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -6
- package/dist/cjs/kup-magic-box.cjs.entry.js +21 -31
- package/dist/cjs/kup-manager-1a2688ca.js +5813 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -6
- package/dist/cjs/kup-probe.cjs.entry.js +3 -4
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +152 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-2af73538.js → utils-0cc466b9.js} +17 -83
- package/dist/collection/assets/cell.js +51 -0
- package/dist/collection/assets/data-table.js +518 -1
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/snackbar.js +32 -0
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/kup-accordion/kup-accordion.css +0 -213
- package/dist/collection/components/kup-accordion/kup-accordion.js +15 -16
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +5 -2381
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +83 -111
- package/dist/collection/components/kup-badge/kup-badge.css +1 -35
- package/dist/collection/components/kup-badge/kup-badge.js +13 -14
- package/dist/collection/components/kup-box/kup-box.css +47 -780
- package/dist/collection/components/kup-box/kup-box.js +240 -366
- package/dist/collection/components/kup-button/kup-button.css +0 -333
- package/dist/collection/components/kup-button/kup-button.js +27 -28
- package/dist/collection/components/kup-button-list/kup-button-list.css +0 -332
- package/dist/collection/components/kup-button-list/kup-button-list.js +19 -20
- package/dist/collection/components/kup-calendar/kup-calendar.css +0 -517
- package/dist/collection/components/kup-calendar/kup-calendar.js +47 -45
- package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +20 -0
- package/dist/collection/components/kup-card/builtin/kup-card-calendar.js +458 -0
- package/dist/collection/components/kup-card/builtin/kup-card-clock.js +321 -0
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +18 -0
- package/dist/collection/components/kup-card/free/kup-card-free.js +13 -0
- package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
- package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
- package/dist/collection/components/kup-card/kup-card.css +615 -185
- package/dist/collection/components/kup-card/kup-card.js +94 -34
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +75 -0
- package/dist/collection/components/kup-cell/kup-cell-declarations.js +11 -0
- package/dist/collection/components/kup-cell/kup-cell.css +20 -0
- package/dist/collection/components/kup-cell/kup-cell.js +413 -0
- package/dist/collection/components/kup-chart/kup-chart.js +41 -42
- package/dist/collection/components/kup-checkbox/kup-checkbox.css +0 -214
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +19 -20
- package/dist/collection/components/kup-chip/kup-chip.css +0 -217
- package/dist/collection/components/kup-chip/kup-chip.js +15 -16
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +7 -2380
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +41 -41
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.css +5 -2381
- package/dist/collection/components/kup-combobox/kup-combobox.js +68 -28
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +13 -4
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
- package/dist/collection/components/kup-data-table/kup-data-table.css +118 -3232
- package/dist/collection/components/kup-data-table/kup-data-table.js +589 -1089
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +1 -85
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +92 -395
- package/dist/collection/components/kup-drawer/kup-drawer.js +9 -10
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +12 -340
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +56 -45
- package/dist/collection/components/kup-field/kup-field.js +21 -22
- package/dist/collection/components/kup-gauge/kup-gauge.js +17 -18
- package/dist/collection/components/kup-grid/kup-grid.css +2 -1
- package/dist/collection/components/kup-grid/kup-grid.js +13 -14
- package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
- package/dist/collection/components/kup-image/assets/svg/ketchup.svg +74 -0
- package/dist/collection/components/kup-image/assets/svg/smeup.svg +59 -0
- package/dist/collection/components/kup-image/kup-image.css +0 -32
- package/dist/collection/components/kup-image/kup-image.js +25 -26
- package/dist/collection/components/kup-lazy/kup-lazy.js +17 -18
- package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
- package/dist/collection/components/kup-list/kup-list.css +4 -260
- package/dist/collection/components/kup-list/kup-list.js +39 -49
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +13 -39
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +29 -38
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +11 -12
- package/dist/collection/components/kup-paginator/kup-paginator.css +0 -332
- package/dist/collection/components/kup-paginator/kup-paginator.js +44 -12
- package/dist/collection/components/kup-probe/kup-probe.js +9 -9
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +21 -22
- package/dist/collection/components/kup-radio/kup-radio.js +17 -18
- package/dist/collection/components/kup-rating/kup-rating.js +15 -16
- package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +13 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +75 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +390 -0
- package/dist/collection/components/kup-spinner/kup-spinner.js +23 -24
- package/dist/collection/components/kup-switch/kup-switch.css +0 -156
- package/dist/collection/components/kup-switch/kup-switch.js +17 -18
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +0 -199
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +13 -14
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.css +4 -2371
- package/dist/collection/components/kup-text-field/kup-text-field.js +77 -51
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +7 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +97 -317
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +24 -14
- package/dist/collection/components/kup-tree/kup-tree.css +27 -371
- package/dist/collection/components/kup-tree/kup-tree.js +163 -383
- package/dist/collection/f-components/f-button/f-button.js +4 -2
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +143 -0
- package/dist/collection/f-components/f-cell/f-cell.js +471 -0
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
- package/dist/collection/f-components/f-chip/f-chip.js +2 -2
- package/dist/collection/f-components/f-image/f-image.js +2 -3
- package/dist/collection/f-components/f-switch/f-switch.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +25 -21
- package/dist/collection/utils/cell-utils.js +18 -222
- package/dist/collection/utils/filters/filters.js +31 -37
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +15 -3
- package/dist/collection/utils/kup-dates/kup-dates.js +14 -2
- package/dist/collection/utils/kup-debug/kup-debug-browser-utils.js +3 -3
- package/dist/collection/utils/kup-debug/kup-debug.js +57 -29
- package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +5 -7
- package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
- package/dist/collection/utils/kup-interact/kup-interact.js +379 -0
- package/dist/collection/utils/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/utils/kup-language/kup-language.js +1 -1
- package/dist/collection/utils/kup-manager/kup-manager.js +47 -10
- package/dist/collection/utils/kup-objects/kup-objects.js +9 -33
- package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
- package/dist/collection/utils/kup-search/kup-search-declarations.js +1 -0
- package/dist/collection/utils/kup-search/kup-search.js +75 -0
- package/dist/collection/utils/kup-theme/kup-theme-declarations.js +1 -0
- package/dist/collection/utils/kup-theme/kup-theme.js +4 -3
- package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
- package/dist/collection/utils/utils.js +15 -23
- package/dist/esm/cell-utils-8f512ea9.js +160 -0
- package/dist/esm/f-button-30dbcaa9.js +103 -0
- package/dist/esm/f-cell-95c186c6.js +727 -0
- package/dist/esm/f-chip-c0e9c0ff.js +139 -0
- package/dist/esm/{f-image-68b34fab.js → f-image-3bc8b24f.js} +4 -5
- package/dist/esm/{index-bf2824a6.js → index-e0e67c23.js} +74 -65
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +6 -8
- package/dist/esm/{kup-autocomplete_29.entry.js → kup-autocomplete_28.entry.js} +2379 -2858
- package/dist/esm/kup-calendar.entry.js +10 -10
- package/dist/esm/kup-cell.entry.js +197 -0
- package/dist/esm/kup-dash-list.entry.js +15 -7
- package/dist/esm/kup-dash_2.entry.js +104 -62
- package/dist/esm/kup-drawer.entry.js +4 -6
- package/dist/esm/kup-field.entry.js +3 -5
- package/dist/esm/kup-iframe.entry.js +3 -4
- package/dist/esm/kup-lazy.entry.js +4 -6
- package/dist/esm/kup-magic-box.entry.js +21 -31
- package/dist/esm/kup-manager-7fc234da.js +5800 -0
- package/dist/esm/kup-nav-bar.entry.js +4 -6
- package/dist/esm/kup-probe.entry.js +3 -4
- package/dist/esm/kup-qlik.entry.js +2 -3
- package/dist/esm/kup-snackbar.entry.js +148 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-13dd007a.js → utils-6c73709d.js} +15 -78
- package/dist/ketchup/assets/svg/ketchup.svg +74 -0
- package/dist/ketchup/assets/svg/smeup.svg +59 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-15321eae.js +1 -0
- package/dist/ketchup/p-1baf1205.entry.js +1 -0
- package/dist/ketchup/p-1c6178e4.entry.js +1 -0
- package/dist/ketchup/p-44375e49.js +1 -0
- package/dist/ketchup/p-4dcdbd31.entry.js +45 -0
- package/dist/ketchup/p-5a5f2a53.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-61faaa38.js} +2 -2
- package/dist/ketchup/p-62816d0b.entry.js +1 -0
- package/dist/ketchup/p-65adc15b.entry.js +1 -0
- package/dist/ketchup/p-7e23ea7c.entry.js +1 -0
- package/dist/ketchup/p-a378ba56.entry.js +1 -0
- package/dist/ketchup/p-a878016f.entry.js +1 -0
- package/dist/ketchup/p-a96e6e32.entry.js +1 -0
- package/dist/ketchup/p-ad32821e.entry.js +1 -0
- package/dist/ketchup/p-af4a6191.entry.js +1 -0
- package/dist/ketchup/p-c18c7bb0.entry.js +27 -0
- package/dist/ketchup/p-ca0ca27f.entry.js +1 -0
- package/dist/ketchup/p-cb5f4994.js +1 -0
- package/dist/ketchup/p-ccda584a.entry.js +1 -0
- package/dist/ketchup/p-d4aa4922.js +1 -0
- package/dist/ketchup/p-dbb6998b.entry.js +1 -0
- package/dist/ketchup/p-de83f2f6.js +1 -0
- package/dist/ketchup/p-ec3a3db9.js +1 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -6
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -13
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +13 -4
- package/dist/types/components/kup-box/kup-box.d.ts +13 -6
- package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +14 -0
- package/dist/types/components/kup-card/builtin/kup-card-calendar.d.ts +2 -0
- package/dist/types/components/kup-card/builtin/kup-card-clock.d.ts +2 -0
- package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +8 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +74 -0
- package/dist/types/components/kup-card/kup-card.d.ts +12 -3
- package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +6 -0
- package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +10 -0
- package/dist/types/components/kup-cell/kup-cell.d.ts +67 -0
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +1 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -2
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +4 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +20 -36
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -15
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +33 -83
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -23
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -4
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
- package/dist/types/components/kup-list/kup-list.d.ts +2 -3
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
- package/dist/types/components/kup-paginator/kup-paginator.d.ts +6 -0
- package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +12 -0
- package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +79 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +2 -1
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +10 -20
- package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +1 -0
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
- package/dist/types/components/kup-tree/kup-tree.d.ts +12 -23
- package/dist/types/components.d.ts +348 -176
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +153 -0
- package/dist/types/f-components/f-cell/f-cell.d.ts +3 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/f-components/f-text-field/f-text-field-mdc.d.ts +1 -1
- package/dist/types/utils/cell-utils.d.ts +0 -19
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -0
- package/dist/types/utils/kup-dates/kup-dates.d.ts +9 -4
- package/dist/types/utils/kup-debug/kup-debug.d.ts +1 -1
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
- package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
- package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
- package/dist/types/utils/kup-language/kup-language-declarations.d.ts +2 -0
- package/dist/types/utils/kup-language/kup-language.d.ts +1 -1
- package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +28 -8
- package/dist/types/utils/kup-manager/kup-manager.d.ts +18 -5
- package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
- package/dist/types/utils/kup-search/kup-search-declarations.d.ts +7 -0
- package/dist/types/utils/kup-search/kup-search.d.ts +20 -0
- package/dist/types/utils/kup-theme/kup-theme-declarations.d.ts +2 -0
- package/dist/types/utils/kup-theme/kup-theme.d.ts +2 -2
- package/dist/types/utils/utils.d.ts +0 -1
- package/package.json +4 -6
- package/dist/cjs/cell-utils-1f89a299.js +0 -1527
- package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
- package/dist/cjs/f-chip-2d58c8f7.js +0 -239
- package/dist/cjs/kup-grid.cjs.entry.js +0 -130
- package/dist/cjs/kup-manager-59ad8bdc.js +0 -4845
- package/dist/cjs/kup-objects-59ea949c.js +0 -717
- package/dist/collection/assets/images/drag-multiple.js +0 -1
- package/dist/collection/components/kup-editor/kup-editor.css +0 -5
- package/dist/collection/components/kup-editor/kup-editor.js +0 -59
- package/dist/collection/components/kup-layout/kup-layout.css +0 -53
- package/dist/collection/components/kup-layout/kup-layout.js +0 -156
- package/dist/collection/utils/drag-and-drop.js +0 -109
- package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
- package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
- package/dist/esm/cell-utils-cb612463.js +0 -1510
- package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
- package/dist/esm/f-chip-125d5dd6.js +0 -236
- package/dist/esm/kup-grid.entry.js +0 -126
- package/dist/esm/kup-manager-e7d7b353.js +0 -4842
- package/dist/esm/kup-objects-d38d2fa2.js +0 -711
- package/dist/ketchup/p-00fe1e3e.js +0 -1
- package/dist/ketchup/p-0320e24e.entry.js +0 -1
- package/dist/ketchup/p-08c7a092.js +0 -1
- package/dist/ketchup/p-1165f4ea.entry.js +0 -1
- package/dist/ketchup/p-170d3cba.js +0 -1
- package/dist/ketchup/p-18cb3ba3.js +0 -1
- package/dist/ketchup/p-23541a97.entry.js +0 -45
- package/dist/ketchup/p-64ea7e37.entry.js +0 -1
- package/dist/ketchup/p-7896031c.entry.js +0 -1
- package/dist/ketchup/p-876da4c2.entry.js +0 -1
- package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
- package/dist/ketchup/p-940ab57a.entry.js +0 -1
- package/dist/ketchup/p-9c858a38.entry.js +0 -1
- package/dist/ketchup/p-a12a5690.entry.js +0 -1
- package/dist/ketchup/p-a5424073.js +0 -1
- package/dist/ketchup/p-b0724035.entry.js +0 -1
- package/dist/ketchup/p-b14e77f0.js +0 -1
- package/dist/ketchup/p-d24cfdea.entry.js +0 -1
- package/dist/ketchup/p-ee89966f.entry.js +0 -27
- package/dist/ketchup/p-fcd2fd8f.js +0 -1
- package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
- package/dist/types/assets/images/drag-multiple.d.ts +0 -1
- package/dist/types/components/kup-editor/kup-editor.d.ts +0 -16
- package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
- package/dist/types/utils/drag-and-drop.d.ts +0 -53
- package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
- package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
|
@@ -4,7 +4,6 @@ import { KupEventPayload } from '../../types/GenericTypes';
|
|
|
4
4
|
* Used to export every prop in an object.
|
|
5
5
|
*/
|
|
6
6
|
export declare enum KupAutocompleteProps {
|
|
7
|
-
callBackOnFilterUpdate = "Function that can be invoked when the filter is updated, but only if in serverHandledFilter mode. It returns the items filtered.",
|
|
8
7
|
customStyle = "Custom style of the component.",
|
|
9
8
|
data = "Props of the sub-components.",
|
|
10
9
|
disabled = "Defaults at false. When set to true, the component is disabled.",
|
|
@@ -12,7 +11,8 @@ export declare enum KupAutocompleteProps {
|
|
|
12
11
|
initialValue = "Sets the initial value of the component.",
|
|
13
12
|
minimumChars = "The minimum number of chars to trigger the autocomplete.",
|
|
14
13
|
selectMode = "Sets how to return the selected item value. Suported values: \"code\", \"description\", \"both\".",
|
|
15
|
-
serverHandledFilter = "When true,
|
|
14
|
+
serverHandledFilter = "When true, the items filter is managed server side, otherwise items filter is done client side.",
|
|
15
|
+
showDropDownIcon = "When true shows the drop-down icon, for open list."
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* The available display modes for the autocomplete component.
|
|
@@ -25,7 +25,3 @@ export declare enum KupAutocompleteDisplayMode {
|
|
|
25
25
|
export interface KupAutocompleteEventPayload extends KupEventPayload {
|
|
26
26
|
value: any;
|
|
27
27
|
}
|
|
28
|
-
export interface kupAutocompleteFilterChangedEventPayload extends KupEventPayload {
|
|
29
|
-
filter: string;
|
|
30
|
-
matchesMinimumCharsRequired: boolean;
|
|
31
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { GenericObject } from '../../types/GenericTypes';
|
|
3
|
-
import { KupAutocompleteEventPayload
|
|
3
|
+
import { KupAutocompleteEventPayload } from './kup-autocomplete-declarations';
|
|
4
4
|
import { ItemsDisplayMode } from '../kup-list/kup-list-declarations';
|
|
5
5
|
export declare class KupAutocomplete {
|
|
6
6
|
/**
|
|
@@ -9,14 +9,6 @@ export declare class KupAutocomplete {
|
|
|
9
9
|
rootElement: HTMLElement;
|
|
10
10
|
displayedValue: string;
|
|
11
11
|
value: string;
|
|
12
|
-
/**
|
|
13
|
-
* Function that can be invoked when the filter is updated, but only if in serverHandledFilter mode. It returns the items filtered.
|
|
14
|
-
*/
|
|
15
|
-
callBackOnFilterUpdate: (detail: {
|
|
16
|
-
filter: string;
|
|
17
|
-
matchesMinimumCharsRequired: boolean;
|
|
18
|
-
el: EventTarget;
|
|
19
|
-
}) => Promise<any[]> | undefined;
|
|
20
12
|
/**
|
|
21
13
|
* Custom style of the component.
|
|
22
14
|
* @default ""
|
|
@@ -48,10 +40,13 @@ export declare class KupAutocomplete {
|
|
|
48
40
|
*/
|
|
49
41
|
selectMode: ItemsDisplayMode;
|
|
50
42
|
/**
|
|
51
|
-
* When true,
|
|
52
|
-
* Also the component builtin filter will be disabled.
|
|
43
|
+
* When true, the items filter is managed server side, otherwise items filter is done client side.
|
|
53
44
|
*/
|
|
54
45
|
serverHandledFilter: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* When true shows the drop-down icon, for open list.
|
|
48
|
+
*/
|
|
49
|
+
showDropDownIcon: boolean;
|
|
55
50
|
private doConsistencyCheck;
|
|
56
51
|
private elStyle;
|
|
57
52
|
private listEl;
|
|
@@ -61,6 +56,7 @@ export declare class KupAutocomplete {
|
|
|
61
56
|
private kupManager;
|
|
62
57
|
private textfieldWrapper;
|
|
63
58
|
private textfieldEl;
|
|
59
|
+
private clickCb;
|
|
64
60
|
kupBlur: EventEmitter<KupAutocompleteEventPayload>;
|
|
65
61
|
kupChange: EventEmitter<KupAutocompleteEventPayload>;
|
|
66
62
|
kupClick: EventEmitter<KupAutocompleteEventPayload>;
|
|
@@ -68,7 +64,6 @@ export declare class KupAutocomplete {
|
|
|
68
64
|
kupInput: EventEmitter<KupAutocompleteEventPayload>;
|
|
69
65
|
kupIconClick: EventEmitter<KupAutocompleteEventPayload>;
|
|
70
66
|
kupItemClick: EventEmitter<KupAutocompleteEventPayload>;
|
|
71
|
-
kupFilterChanged: EventEmitter<kupAutocompleteFilterChangedEventPayload>;
|
|
72
67
|
onKupBlur(e: UIEvent & {
|
|
73
68
|
target: HTMLInputElement;
|
|
74
69
|
}): void;
|
|
@@ -118,7 +113,6 @@ export declare class KupAutocomplete {
|
|
|
118
113
|
* @param {string} value - Value of the component.
|
|
119
114
|
*/
|
|
120
115
|
setValue(value: string): Promise<void>;
|
|
121
|
-
private handleFilterChange;
|
|
122
116
|
private openList;
|
|
123
117
|
private closeList;
|
|
124
118
|
private isListOpened;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Cell, Column, RowAction } from '../kup-data-table/kup-data-table-declarations';
|
|
2
2
|
import { KupBadge } from '../kup-badge/kup-badge';
|
|
3
|
-
import {
|
|
3
|
+
import { Identifiable, KupEventPayload } from '../../types/GenericTypes';
|
|
4
|
+
import { FCellShapes } from '../../f-components/f-cell/f-cell-declarations';
|
|
4
5
|
/**
|
|
5
6
|
* Props of the kup-box component.
|
|
6
7
|
* Used to export every prop in an object.
|
|
@@ -65,12 +66,11 @@ export interface Section {
|
|
|
65
66
|
collapsible?: boolean;
|
|
66
67
|
columns?: number;
|
|
67
68
|
title?: string;
|
|
68
|
-
cssClass?: string;
|
|
69
69
|
}
|
|
70
70
|
export interface BoxObject {
|
|
71
71
|
column?: string;
|
|
72
72
|
value?: string;
|
|
73
|
-
shape?:
|
|
73
|
+
shape?: FCellShapes;
|
|
74
74
|
config?: any;
|
|
75
75
|
}
|
|
76
76
|
export interface CollapsedSectionsState {
|
|
@@ -86,6 +86,15 @@ export interface KupBoxKanban {
|
|
|
86
86
|
labels?: Array<Array<string>>;
|
|
87
87
|
size?: string;
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Contains all the data of an event.
|
|
91
|
+
*/
|
|
92
|
+
export interface KupBoxEventHandlerDetails {
|
|
93
|
+
boxObject: HTMLElement;
|
|
94
|
+
cell: Cell;
|
|
95
|
+
column: Column;
|
|
96
|
+
row: KupBoxRow;
|
|
97
|
+
}
|
|
89
98
|
export interface KupBoxClickEventPayload extends KupEventPayload {
|
|
90
99
|
row: KupBoxRow;
|
|
91
100
|
column?: string;
|
|
@@ -102,5 +111,5 @@ export interface KupBoxRowActionClickEventPayload extends KupEventPayload {
|
|
|
102
111
|
index: number;
|
|
103
112
|
}
|
|
104
113
|
export interface KupBoxContextMenuEventPayload extends KupEventPayload {
|
|
105
|
-
details:
|
|
114
|
+
details: KupBoxEventHandlerDetails;
|
|
106
115
|
}
|
|
@@ -56,6 +56,11 @@ export declare class KupBox {
|
|
|
56
56
|
* @default false
|
|
57
57
|
*/
|
|
58
58
|
dropOnSection: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* When set to true, editable cells will be rendered using input components.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
editableData: boolean;
|
|
59
64
|
/**
|
|
60
65
|
* If enabled, a button to load / display the row actions
|
|
61
66
|
* will be displayed on the right of every box
|
|
@@ -175,7 +180,12 @@ export declare class KupBox {
|
|
|
175
180
|
private tooltip;
|
|
176
181
|
private globalFilterTimeout;
|
|
177
182
|
private boxContainer;
|
|
178
|
-
private
|
|
183
|
+
private sectionRef;
|
|
184
|
+
private rowsRefs;
|
|
185
|
+
private hold;
|
|
186
|
+
private interactableDrag;
|
|
187
|
+
private interactableDrop;
|
|
188
|
+
private interactableTouch;
|
|
179
189
|
/**
|
|
180
190
|
* Triggered when a box is clicked
|
|
181
191
|
*/
|
|
@@ -249,10 +259,6 @@ export declare class KupBox {
|
|
|
249
259
|
private toggleSectionExpand;
|
|
250
260
|
private onRowAction;
|
|
251
261
|
private onRowActionClick;
|
|
252
|
-
private onSectionDragOver;
|
|
253
|
-
private onSectionDragLeave;
|
|
254
|
-
private addMultiSelectDragImageToEvent;
|
|
255
|
-
private searchParentWithClass;
|
|
256
262
|
/**
|
|
257
263
|
* see onDocumentClick in kup-combo
|
|
258
264
|
*/
|
|
@@ -264,7 +270,6 @@ export declare class KupBox {
|
|
|
264
270
|
private renderRow;
|
|
265
271
|
private renderSection;
|
|
266
272
|
private renderBoxObject;
|
|
267
|
-
private getIconPath;
|
|
268
273
|
/**
|
|
269
274
|
* Prepares the kanban sections by sorting the boxlist's data.
|
|
270
275
|
* @returns {{jsx: VNode[], style: { [index: string]: string }}} jsx contains the virtual nodes of the Kanban sections, style contains the grid CSS settings.
|
|
@@ -276,6 +281,8 @@ export declare class KupBox {
|
|
|
276
281
|
};
|
|
277
282
|
};
|
|
278
283
|
renderTooltip(): any;
|
|
284
|
+
didLoadInteractables(): void;
|
|
285
|
+
didRenderInteractables(): void;
|
|
279
286
|
componentWillLoad(): void;
|
|
280
287
|
componentDidLoad(): void;
|
|
281
288
|
componentWillRender(): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VNode } from '../../../stencil-public-runtime';
|
|
2
|
+
import { KupCard } from '../kup-card';
|
|
3
|
+
/**
|
|
4
|
+
* 1st builtin card layout, calendar view.
|
|
5
|
+
* @param {KupCard} component - Card component.
|
|
6
|
+
* @returns {VNode} 1st builtin layout virtual node.
|
|
7
|
+
*/
|
|
8
|
+
export declare function create1(component: KupCard): VNode;
|
|
9
|
+
/**
|
|
10
|
+
* 2st builtin card layout, time view.
|
|
11
|
+
* @param {KupCard} component - Card component.
|
|
12
|
+
* @returns {VNode} 2st builtin layout virtual node.
|
|
13
|
+
*/
|
|
14
|
+
export declare function create2(component: KupCard): VNode;
|
|
@@ -30,3 +30,9 @@ export declare function create4(component: KupCard): VNode;
|
|
|
30
30
|
* @returns {VNode} 1st standard layout virtual node.
|
|
31
31
|
*/
|
|
32
32
|
export declare function create5(component: KupCard): VNode;
|
|
33
|
+
/**
|
|
34
|
+
* 6th dialog card layout, a datatable or a spinner in its place.
|
|
35
|
+
* @param {KupCard} component - Card component.
|
|
36
|
+
* @returns {VNode} 1st standard layout virtual node.
|
|
37
|
+
*/
|
|
38
|
+
export declare function create6(component: KupCard): VNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VNode } from '../../../stencil-public-runtime';
|
|
2
|
+
import type { KupCard } from '../kup-card';
|
|
3
|
+
/**
|
|
4
|
+
* 1st free card layout, only slots.
|
|
5
|
+
* @param {KupCard} component - Card component.
|
|
6
|
+
* @returns {VNode} 1st standard layout virtual node.
|
|
7
|
+
*/
|
|
8
|
+
export declare function create1(component: KupCard): VNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
2
2
|
import { KupObj } from '../../utils/kup-objects/kup-objects-declarations';
|
|
3
|
+
import { SourceEvent } from '../kup-date-picker/kup-date-picker-declarations';
|
|
3
4
|
/**
|
|
4
5
|
* Props of the kup-card component.
|
|
5
6
|
* Used to export every prop in an object.
|
|
@@ -14,6 +15,69 @@ export declare enum KupCardProps {
|
|
|
14
15
|
sizeX = "The width of the card, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).",
|
|
15
16
|
sizeY = "The height of the card, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.)."
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Options prop of the kup-card calendar builtin.
|
|
20
|
+
*/
|
|
21
|
+
export interface KupCardBuiltinCalendarOptions {
|
|
22
|
+
initialValue?: string | KupObj;
|
|
23
|
+
firstDayIndex?: number;
|
|
24
|
+
resetStatus: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Data prop of the element kup-card calendar builtin.
|
|
28
|
+
*/
|
|
29
|
+
export interface KupCardBuiltinCalendarData {
|
|
30
|
+
value?: Date;
|
|
31
|
+
firstDayIndex?: number;
|
|
32
|
+
calendarView?: SourceEvent;
|
|
33
|
+
day?: number;
|
|
34
|
+
month?: number;
|
|
35
|
+
year?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Html element of kup-card calendar builtin.
|
|
39
|
+
*/
|
|
40
|
+
export interface KupCardBuiltinCalendar extends HTMLElement {
|
|
41
|
+
kupData: KupCardBuiltinCalendarData;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Options prop of the kup-card clock builtin.
|
|
45
|
+
*/
|
|
46
|
+
export interface KupCardBuiltinClockOptions {
|
|
47
|
+
initialValue?: string | KupObj;
|
|
48
|
+
manageSeconds?: boolean;
|
|
49
|
+
hoursActive?: boolean;
|
|
50
|
+
minutesActive?: boolean;
|
|
51
|
+
secondsActive?: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Element ids for kup-card clock builtin.
|
|
55
|
+
*/
|
|
56
|
+
export declare enum KupCardBuiltinClockElements {
|
|
57
|
+
CLOCK = "clockEl",
|
|
58
|
+
HOURS = "hoursEl",
|
|
59
|
+
MINUTES = "minutesEl",
|
|
60
|
+
SECONDS = "secondsEl",
|
|
61
|
+
HOURSCIRCLE = "hoursCircleEl",
|
|
62
|
+
MINUTESCIRCLE = "minutesCircleEl",
|
|
63
|
+
SECONDSCIRCLE = "secondsCircleEl"
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Data prop of the element kup-card clock builtin.
|
|
67
|
+
*/
|
|
68
|
+
export interface KupCardBuiltinClockData {
|
|
69
|
+
value?: string;
|
|
70
|
+
manageSeconds?: boolean;
|
|
71
|
+
hoursActive?: boolean;
|
|
72
|
+
minutesActive?: boolean;
|
|
73
|
+
secondsActive?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Html element of kup-card clock builtin.
|
|
77
|
+
*/
|
|
78
|
+
export interface KupCardBuiltinClock extends HTMLElement {
|
|
79
|
+
kupData: KupCardBuiltinClockData;
|
|
80
|
+
}
|
|
17
81
|
/**
|
|
18
82
|
* Data prop of the kup-card component.
|
|
19
83
|
*/
|
|
@@ -30,6 +94,7 @@ export interface KupCardData {
|
|
|
30
94
|
image?: GenericObject[];
|
|
31
95
|
list?: GenericObject[];
|
|
32
96
|
object?: KupObj[];
|
|
97
|
+
options?: KupCardBuiltinCalendarOptions | KupCardBuiltinClockOptions;
|
|
33
98
|
progressbar?: GenericObject[];
|
|
34
99
|
switch?: GenericObject[];
|
|
35
100
|
tabbar?: GenericObject[];
|
|
@@ -41,13 +106,18 @@ export interface KupCardData {
|
|
|
41
106
|
/**
|
|
42
107
|
* Layout families of the kup-card component.
|
|
43
108
|
* @enum {string}
|
|
109
|
+
* @property {string} BUILTIN - Cards belonging to this family will created automatically by library.
|
|
44
110
|
* @property {string} COLLAPSIBLE - Cards belonging to this family will display an area usable to expand the content of the card.
|
|
111
|
+
* @property {string} DIALOG - Cards belonging to this family will be movable and usually closable.
|
|
112
|
+
* @property {string} FREE - This family of card will only receive slots, usually already arranged from the outside style.
|
|
45
113
|
* @property {string} SCALABLE - Content will fit its container, resizing itself automatically.
|
|
46
114
|
* @property {string} STANDARD - Stndard layouts.
|
|
47
115
|
*/
|
|
48
116
|
export declare enum KupCardFamily {
|
|
117
|
+
BUILTIN = "builtin",
|
|
49
118
|
COLLAPSIBLE = "collapsible",
|
|
50
119
|
DIALOG = "dialog",
|
|
120
|
+
FREE = "free",
|
|
51
121
|
SCALABLE = "scalable",
|
|
52
122
|
STANDARD = "standard"
|
|
53
123
|
}
|
|
@@ -69,6 +139,7 @@ export declare enum KupCardIds {
|
|
|
69
139
|
* Recurring CSS classes.
|
|
70
140
|
*/
|
|
71
141
|
export declare enum KupCardCSSClasses {
|
|
142
|
+
BUILTIN_CARD = "builtin-card",
|
|
72
143
|
CARD_VIEW = "card-view",
|
|
73
144
|
CLICKABLE_LINK = "clickable-link",
|
|
74
145
|
COLLAPSIBLE_ACTIVE = "collapsible-active",
|
|
@@ -96,6 +167,9 @@ export declare enum KupCardSubEvents {
|
|
|
96
167
|
TABBAR_CLICK = "kup-tabbar-click",
|
|
97
168
|
TREE_NODESELECTED = "kup-tree-nodeselected"
|
|
98
169
|
}
|
|
170
|
+
export interface KupCardClickPayload extends KupEventPayload {
|
|
171
|
+
value: string;
|
|
172
|
+
}
|
|
99
173
|
export interface KupCardEventPayload extends KupEventPayload {
|
|
100
174
|
event: any;
|
|
101
175
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, VNode } from '../../stencil-public-runtime';
|
|
2
2
|
import type { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
3
|
-
import { KupCardData, KupCardFamily, KupCardEventPayload } from './kup-card-declarations';
|
|
3
|
+
import { KupCardData, KupCardFamily, KupCardEventPayload, KupCardClickPayload } from './kup-card-declarations';
|
|
4
4
|
export declare class KupCard {
|
|
5
5
|
/**
|
|
6
6
|
* References the root HTML element of the component (<kup-card>).
|
|
@@ -72,12 +72,21 @@ export declare class KupCard {
|
|
|
72
72
|
/**
|
|
73
73
|
* Triggered when the card is clicked.
|
|
74
74
|
*/
|
|
75
|
-
kupClick: EventEmitter<
|
|
75
|
+
kupClick: EventEmitter<KupCardClickPayload>;
|
|
76
|
+
/**
|
|
77
|
+
* Triggered when a dialog card is closed with the "X".
|
|
78
|
+
*/
|
|
79
|
+
kupClose: EventEmitter<KupEventPayload>;
|
|
76
80
|
/**
|
|
77
81
|
* Triggered when a sub-component of the card emits an event.
|
|
78
82
|
*/
|
|
79
83
|
kupEvent: EventEmitter<KupCardEventPayload>;
|
|
80
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Triggered when the component is ready.
|
|
86
|
+
*/
|
|
87
|
+
kupReady: EventEmitter<KupEventPayload>;
|
|
88
|
+
onKupClick(id: string, value: string): void;
|
|
89
|
+
onKupClose(id: string): void;
|
|
81
90
|
onKupEvent(e: CustomEvent): void;
|
|
82
91
|
/**
|
|
83
92
|
* Used to retrieve component's props values.
|
|
@@ -84,3 +84,9 @@ export declare function create13(component: KupCard): VNode;
|
|
|
84
84
|
* @returns {VNode} 14th standard layout virtual node.
|
|
85
85
|
*/
|
|
86
86
|
export declare function create14(component: KupCard): VNode;
|
|
87
|
+
/**
|
|
88
|
+
* 15th standard card layout, it can be used as a tooltip.
|
|
89
|
+
* @param {KupCard} component - Card component.
|
|
90
|
+
* @returns {VNode} 15th standard layout virtual node.
|
|
91
|
+
*/
|
|
92
|
+
export declare function create15(component: KupCard): VNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props of the kup-cell component.
|
|
3
|
+
* Used to export every prop in an object.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum KupCellProps {
|
|
6
|
+
customStyle = "Custom style of the component.",
|
|
7
|
+
data = "The data of the cell.",
|
|
8
|
+
density = "The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.",
|
|
9
|
+
dragEnabled = "When set to true, the component is draggable."
|
|
10
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { GenericObject } from '../../types/GenericTypes';
|
|
2
|
+
import { Cell } from '../kup-data-table/kup-data-table-declarations';
|
|
3
|
+
import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
|
|
4
|
+
export declare class KupCell {
|
|
5
|
+
/**
|
|
6
|
+
* References the root HTML element of the component (<kup-text-field>).
|
|
7
|
+
*/
|
|
8
|
+
rootElement: HTMLElement;
|
|
9
|
+
/**
|
|
10
|
+
* Custom style of the component.
|
|
11
|
+
* @default ""
|
|
12
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
13
|
+
*/
|
|
14
|
+
customStyle: string;
|
|
15
|
+
/**
|
|
16
|
+
* The data of the cell.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
data: Cell;
|
|
20
|
+
/**
|
|
21
|
+
* The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.
|
|
22
|
+
*/
|
|
23
|
+
density: FCellPadding;
|
|
24
|
+
/**
|
|
25
|
+
* When set to true, the component is draggable.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
dragEnabled: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Instance of the KupManager class.
|
|
31
|
+
*/
|
|
32
|
+
private kupManager;
|
|
33
|
+
/**
|
|
34
|
+
* Adds the given CSS classes to the cell's data.
|
|
35
|
+
* @param {string[]} classes - Array of CSS classes.
|
|
36
|
+
*/
|
|
37
|
+
addCssClasses(classes?: string[]): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Used to retrieve component's props values.
|
|
40
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
41
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
42
|
+
*/
|
|
43
|
+
getProps(descriptions?: boolean): Promise<GenericObject>;
|
|
44
|
+
/**
|
|
45
|
+
* This method is used to trigger a new render of the component.
|
|
46
|
+
*/
|
|
47
|
+
refresh(): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Removes the given CSS classes from the cell's data.
|
|
50
|
+
* @param {string[]} classes - Array of CSS classes.
|
|
51
|
+
*/
|
|
52
|
+
removeCssClasses(classes?: string[]): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Sets the props to the component.
|
|
55
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
56
|
+
*/
|
|
57
|
+
setProps(props: GenericObject): Promise<void>;
|
|
58
|
+
private didRenderInteractables;
|
|
59
|
+
private generateColumn;
|
|
60
|
+
private generateRow;
|
|
61
|
+
componentWillLoad(): void;
|
|
62
|
+
componentDidLoad(): void;
|
|
63
|
+
componentWillRender(): void;
|
|
64
|
+
componentDidRender(): void;
|
|
65
|
+
disconnectedCallback(): void;
|
|
66
|
+
render(): any;
|
|
67
|
+
}
|
|
@@ -40,9 +40,9 @@ export declare class KupColorPicker {
|
|
|
40
40
|
*/
|
|
41
41
|
kupManager: KupManager;
|
|
42
42
|
private anchorEl;
|
|
43
|
-
dropdownEl: HTMLElement;
|
|
44
43
|
private picker;
|
|
45
44
|
private textfieldEl;
|
|
45
|
+
private clickCb;
|
|
46
46
|
kupChange: EventEmitter<KupColorPickerEventPayload>;
|
|
47
47
|
/**
|
|
48
48
|
* Used to retrieve component's props values.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KupEventPayload } from
|
|
1
|
+
import { KupEventPayload } from '../../types/GenericTypes';
|
|
2
2
|
/**
|
|
3
3
|
* Props of the kup-combobox component.
|
|
4
4
|
* Used to export every prop in an object.
|
|
@@ -10,7 +10,8 @@ export declare enum KupComboboxProps {
|
|
|
10
10
|
displayMode = "Sets how to show the selected item value. Suported values: \"code\", \"description\", \"both\".",
|
|
11
11
|
initialValue = "Sets the initial value of the component",
|
|
12
12
|
isSelect = "Lets the combobox behave as a select element.",
|
|
13
|
-
selectMode = "Sets how to return the selected item value. Suported values: \"code\", \"description\", \"both\"."
|
|
13
|
+
selectMode = "Sets how to return the selected item value. Suported values: \"code\", \"description\", \"both\".",
|
|
14
|
+
showDropDownIcon = "When true shows the drop-down icon, for open list."
|
|
14
15
|
}
|
|
15
16
|
export interface KupComboboxEventPayload extends KupEventPayload {
|
|
16
17
|
value: any;
|
|
@@ -36,6 +36,10 @@ export declare class KupCombobox {
|
|
|
36
36
|
* Sets how to return the selected item value. Suported values: "code", "description", "both".
|
|
37
37
|
*/
|
|
38
38
|
selectMode: ItemsDisplayMode;
|
|
39
|
+
/**
|
|
40
|
+
* When true shows the drop-down icon, for open list.
|
|
41
|
+
*/
|
|
42
|
+
showDropDownIcon: boolean;
|
|
39
43
|
/**
|
|
40
44
|
* Instance of the KupManager class.
|
|
41
45
|
*/
|
|
@@ -44,6 +48,7 @@ export declare class KupCombobox {
|
|
|
44
48
|
private listEl;
|
|
45
49
|
private textfieldWrapper;
|
|
46
50
|
private textfieldEl;
|
|
51
|
+
private clickCb;
|
|
47
52
|
kupBlur: EventEmitter<KupComboboxEventPayload>;
|
|
48
53
|
kupChange: EventEmitter<KupComboboxEventPayload>;
|
|
49
54
|
kupClick: EventEmitter<KupComboboxEventPayload>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FCellInfo, FCellShapes } from '../../f-components/f-cell/f-cell-declarations';
|
|
1
2
|
import { Identifiable, KupEventPayload } from '../../types/GenericTypes';
|
|
2
3
|
import { KupObj } from '../../utils/kup-objects/kup-objects-declarations';
|
|
3
4
|
import { KupCardEventPayload } from '../kup-card/kup-card-declarations';
|
|
@@ -6,6 +7,7 @@ import { KupCardEventPayload } from '../kup-card/kup-card-declarations';
|
|
|
6
7
|
* Used to export every prop in an object.
|
|
7
8
|
*/
|
|
8
9
|
export declare enum KupDataTableProps {
|
|
10
|
+
autoFillMissingCells = "When true and when a row is missing some columns, the missing cells will be autogenerated.",
|
|
9
11
|
customStyle = "Custom style of the component.",
|
|
10
12
|
data = "The data of the table.",
|
|
11
13
|
density = "The density of the rows, defaults at 'medium' and can be also set to 'large' or 'small'.",
|
|
@@ -35,6 +37,7 @@ export declare enum KupDataTableProps {
|
|
|
35
37
|
pageSelected = "Current selected page set on component load",
|
|
36
38
|
paginatorPos = "Sets the position of the paginator. Available positions: top, bottom or both.",
|
|
37
39
|
removableColumns = "Sets the possibility to remove the selected column.",
|
|
40
|
+
resizableColumns = "Gives the possibility to resize columns by dragging on their right edge.",
|
|
38
41
|
rowActions = "Sets the actions of the rows.",
|
|
39
42
|
rowsPerPage = "Sets the number of rows per page to display.",
|
|
40
43
|
scrollOnHover = "Activates the scroll on hover function.",
|
|
@@ -73,27 +76,18 @@ export interface Cell {
|
|
|
73
76
|
data?: CellData;
|
|
74
77
|
displayedValue?: string;
|
|
75
78
|
icon?: string;
|
|
76
|
-
info?:
|
|
79
|
+
info?: FCellInfo;
|
|
77
80
|
isEditable?: boolean;
|
|
78
|
-
obj?:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
k: string;
|
|
82
|
-
};
|
|
83
|
-
shape?: string;
|
|
81
|
+
obj?: KupObj;
|
|
82
|
+
shape?: FCellShapes;
|
|
83
|
+
span?: KupDatatableCellSpan;
|
|
84
84
|
style?: GenericMap;
|
|
85
|
+
styleContent?: GenericMap;
|
|
85
86
|
title?: string;
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
* @export
|
|
91
|
-
* @interface KupCellInfo
|
|
92
|
-
*/
|
|
93
|
-
export interface KupCellInfo {
|
|
94
|
-
color?: string;
|
|
95
|
-
icon?: string;
|
|
96
|
-
message: string;
|
|
88
|
+
export interface KupDatatableCellSpan {
|
|
89
|
+
col: number;
|
|
90
|
+
row: number;
|
|
97
91
|
}
|
|
98
92
|
export interface CellsHolder {
|
|
99
93
|
[index: string]: Cell;
|
|
@@ -103,7 +97,6 @@ export interface Column {
|
|
|
103
97
|
title: string;
|
|
104
98
|
size?: string;
|
|
105
99
|
visible?: boolean;
|
|
106
|
-
clickable?: boolean;
|
|
107
100
|
hideValuesRepetitions?: boolean;
|
|
108
101
|
obj?: {
|
|
109
102
|
t: string;
|
|
@@ -111,13 +104,15 @@ export interface Column {
|
|
|
111
104
|
k: string;
|
|
112
105
|
};
|
|
113
106
|
objs?: KupObj[];
|
|
114
|
-
shape?:
|
|
107
|
+
shape?: FCellShapes;
|
|
115
108
|
decimals?: number;
|
|
116
109
|
icon?: string;
|
|
117
110
|
formula?: string;
|
|
118
111
|
valuesForFilter?: string[];
|
|
119
112
|
isKey?: boolean;
|
|
120
113
|
children?: ColumnChild[];
|
|
114
|
+
cssClass?: string;
|
|
115
|
+
style?: GenericMap;
|
|
121
116
|
}
|
|
122
117
|
export interface ColumnChild {
|
|
123
118
|
name: string;
|
|
@@ -249,17 +244,17 @@ export declare const totalMenuOpenID = "TOMEOPID";
|
|
|
249
244
|
/**
|
|
250
245
|
* Contains all the data of an event.
|
|
251
246
|
*/
|
|
252
|
-
export interface
|
|
247
|
+
export interface KupDatatableEventHandlerDetails {
|
|
253
248
|
area: string;
|
|
254
249
|
cell: Cell;
|
|
255
250
|
column: Column;
|
|
256
|
-
filterRemove:
|
|
251
|
+
filterRemove: HTMLElement;
|
|
257
252
|
isGroupRow: boolean;
|
|
258
253
|
row: Row;
|
|
259
|
-
td:
|
|
254
|
+
td: HTMLElement;
|
|
260
255
|
textfield: HTMLElement;
|
|
261
|
-
th:
|
|
262
|
-
tr:
|
|
256
|
+
th: HTMLElement;
|
|
257
|
+
tr: HTMLElement;
|
|
263
258
|
}
|
|
264
259
|
/**
|
|
265
260
|
* Constants for mocked/premade columns created by data mutations.
|
|
@@ -281,14 +276,8 @@ export interface KupDatatableRowSelectedEventPayload extends KupEventPayload {
|
|
|
281
276
|
clickedRow: Row;
|
|
282
277
|
clickedColumn: string;
|
|
283
278
|
}
|
|
284
|
-
export interface KupDatatableCellUpdateEventPayload extends KupEventPayload {
|
|
285
|
-
cell: Cell;
|
|
286
|
-
column: Column;
|
|
287
|
-
row: Row;
|
|
288
|
-
event: any;
|
|
289
|
-
}
|
|
290
279
|
export interface KupDatatableClickEventPayload extends KupEventPayload {
|
|
291
|
-
details:
|
|
280
|
+
details: KupDatatableEventHandlerDetails;
|
|
292
281
|
}
|
|
293
282
|
export interface KupDatatableColumnMenuEventPayload extends KupEventPayload {
|
|
294
283
|
card: HTMLKupCardElement;
|
|
@@ -310,11 +299,6 @@ export interface KupDataTableCellButtonClickEventPayload extends KupEventPayload
|
|
|
310
299
|
column: Column;
|
|
311
300
|
row: Row;
|
|
312
301
|
}
|
|
313
|
-
export interface KupDataTableCellTextFieldInputEventPayload extends KupEventPayload {
|
|
314
|
-
cell: Cell;
|
|
315
|
-
column: Column;
|
|
316
|
-
row: Row;
|
|
317
|
-
}
|
|
318
302
|
export interface KupDatatableLoadMoreClickEventPayload extends KupEventPayload {
|
|
319
303
|
loadItems: number;
|
|
320
304
|
}
|