@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
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Row, SortObject,
|
|
2
|
-
import { DropHandlers } from '../../utils/drag-and-drop';
|
|
1
|
+
import { Row, SortObject, GroupObject, TotalMode, TotalsMap, Column } from './kup-data-table-declarations';
|
|
3
2
|
import { GenericFilter } from '../../utils/filters/filters-declarations';
|
|
4
3
|
import { FiltersColumnMenu } from '../../utils/filters/filters-column-menu';
|
|
5
4
|
import { FiltersRows } from '../../utils/filters/filters-rows';
|
|
@@ -27,16 +26,3 @@ export declare function calcTotals(rows?: Array<Row>, totals?: {
|
|
|
27
26
|
[index: string]: number;
|
|
28
27
|
};
|
|
29
28
|
export declare function paginateRows(rows: Row[], currentPage: number, rowsPerPage: number, areGrouped: boolean): Row[];
|
|
30
|
-
/**
|
|
31
|
-
* Given a cell object, determines if the style object has also a border radius
|
|
32
|
-
* @param cell - The cell to check
|
|
33
|
-
* @returns {boolean} - true if borderRadius is present, false otherwise.
|
|
34
|
-
*/
|
|
35
|
-
export declare function styleHasBorderRadius(cell: Cell): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Given a cell object, determines if the style object has also a writing mode
|
|
38
|
-
* @param cell - The cell to check
|
|
39
|
-
* @returns {boolean} - true if writingMode is present, false otherwise.
|
|
40
|
-
*/
|
|
41
|
-
export declare function styleHasWritingMode(cell: Cell): boolean;
|
|
42
|
-
export declare const dropHandlersCell: DropHandlers;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Column, GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, Row, RowAction, ShowGrid, SortObject, TableData, TotalsMap, SelectionMode, KupDatatableAutoRowSelectEventPayload, KupDatatableRowSelectedEventPayload,
|
|
2
|
+
import { Column, GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, Row, RowAction, ShowGrid, SortObject, TableData, TotalsMap, SelectionMode, KupDatatableAutoRowSelectEventPayload, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableLoadMoreClickEventPayload } from './kup-data-table-declarations';
|
|
3
3
|
import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
4
4
|
import { KupDataTableState } from './kup-data-table-state';
|
|
5
5
|
import { KupStore } from '../kup-state/kup-store';
|
|
6
6
|
import { GenericFilter, ValueDisplayedValue } from '../../utils/filters/filters-declarations';
|
|
7
|
+
import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
|
|
7
8
|
export declare class KupDataTable {
|
|
8
9
|
stateId: string;
|
|
9
10
|
store: KupStore;
|
|
@@ -11,6 +12,11 @@ export declare class KupDataTable {
|
|
|
11
12
|
initWithPersistedState(): void;
|
|
12
13
|
persistState(): void;
|
|
13
14
|
rootElement: HTMLElement;
|
|
15
|
+
/**
|
|
16
|
+
* When true and when a row is missing some columns, the missing cells will be autogenerated.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
autoFillMissingCells: boolean;
|
|
14
20
|
/**
|
|
15
21
|
* Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
16
22
|
*/
|
|
@@ -22,7 +28,7 @@ export declare class KupDataTable {
|
|
|
22
28
|
/**
|
|
23
29
|
* The density of the rows, defaults at 'medium' and can be also set to 'large' or 'small'.
|
|
24
30
|
*/
|
|
25
|
-
density:
|
|
31
|
+
density: FCellPadding;
|
|
26
32
|
/**
|
|
27
33
|
* Enables drag.
|
|
28
34
|
*/
|
|
@@ -141,6 +147,10 @@ export declare class KupDataTable {
|
|
|
141
147
|
* Sets the possibility to remove the selected column.
|
|
142
148
|
*/
|
|
143
149
|
removableColumns: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Gives the possibility to resize columns by dragging on their right edge.
|
|
152
|
+
*/
|
|
153
|
+
resizableColumns: boolean;
|
|
144
154
|
/**
|
|
145
155
|
* Sets the actions of the rows.
|
|
146
156
|
*/
|
|
@@ -250,10 +260,6 @@ export declare class KupDataTable {
|
|
|
250
260
|
* name of the column with the opened total menu
|
|
251
261
|
*/
|
|
252
262
|
private openedTotalMenu;
|
|
253
|
-
/**
|
|
254
|
-
* name of the column with the opened group menu
|
|
255
|
-
*/
|
|
256
|
-
private openedGroupMenu;
|
|
257
263
|
private openedCustomSettings;
|
|
258
264
|
private fontsize;
|
|
259
265
|
/**
|
|
@@ -281,32 +287,6 @@ export declare class KupDataTable {
|
|
|
281
287
|
private renderedRows;
|
|
282
288
|
private loadMoreEventCounter;
|
|
283
289
|
private loadMoreEventPreviousQuantity;
|
|
284
|
-
/**
|
|
285
|
-
* Internal not reactive state used to keep track if a column is being dragged.
|
|
286
|
-
* @private
|
|
287
|
-
*/
|
|
288
|
-
private columnsAreBeingDragged;
|
|
289
|
-
/**
|
|
290
|
-
* Attribute to set when a column is being dragged on the whole thead element
|
|
291
|
-
* @const
|
|
292
|
-
* @default 'columns-dragging'
|
|
293
|
-
* @private
|
|
294
|
-
*/
|
|
295
|
-
private dragFlagAttribute;
|
|
296
|
-
/**
|
|
297
|
-
* The string representing the drag over attribute
|
|
298
|
-
* @const
|
|
299
|
-
* @default 'drag-over'
|
|
300
|
-
* @private
|
|
301
|
-
*/
|
|
302
|
-
private dragOverAttribute;
|
|
303
|
-
/**
|
|
304
|
-
* The string representing the drag starter attribute to set onto the element
|
|
305
|
-
* @const
|
|
306
|
-
* @default 'drag-starter'
|
|
307
|
-
* @private
|
|
308
|
-
*/
|
|
309
|
-
private dragStarterAttribute;
|
|
310
290
|
/**
|
|
311
291
|
* Reference for the thead element
|
|
312
292
|
* @private
|
|
@@ -325,23 +305,31 @@ export declare class KupDataTable {
|
|
|
325
305
|
private tableAreaRef;
|
|
326
306
|
private stickyTheadRef;
|
|
327
307
|
private customizeTopButtonRef;
|
|
328
|
-
private customizeBottomButtonRef;
|
|
329
308
|
private customizeTopPanelRef;
|
|
330
|
-
private customizeBottomPanelRef;
|
|
331
309
|
private sizedColumns;
|
|
332
310
|
private intObserver;
|
|
333
311
|
private navBarHeight;
|
|
334
312
|
private theadIntersecting;
|
|
335
313
|
private tableIntersecting;
|
|
336
|
-
private iconPaths;
|
|
337
314
|
private isSafariBrowser;
|
|
338
315
|
private isRestoringState;
|
|
339
316
|
private globalFilterTimeout;
|
|
340
317
|
private totalMenuCoords;
|
|
341
318
|
columnFilterTimeout: number;
|
|
342
319
|
private clickTimeout;
|
|
320
|
+
private thRefs;
|
|
343
321
|
private rowsRefs;
|
|
344
322
|
private oldWidth;
|
|
323
|
+
private hold;
|
|
324
|
+
private interactableDrag;
|
|
325
|
+
private interactableDrop;
|
|
326
|
+
private interactableResize;
|
|
327
|
+
private interactableTouch;
|
|
328
|
+
private dropareaRef;
|
|
329
|
+
private removeDropareaRef;
|
|
330
|
+
private groupsDropareaRef;
|
|
331
|
+
private clickCb;
|
|
332
|
+
private clickCbCustomPanel;
|
|
345
333
|
/**
|
|
346
334
|
* Used to prevent too many resizes callbacks at once.
|
|
347
335
|
*/
|
|
@@ -377,10 +365,6 @@ export declare class KupDataTable {
|
|
|
377
365
|
* When a row is selected
|
|
378
366
|
*/
|
|
379
367
|
kupRowSelected: EventEmitter<KupDatatableRowSelectedEventPayload>;
|
|
380
|
-
/**
|
|
381
|
-
* Emitted when a cell's data has been updated.
|
|
382
|
-
*/
|
|
383
|
-
kupDataTableCellUpdate: EventEmitter<KupDatatableCellUpdateEventPayload>;
|
|
384
368
|
/**
|
|
385
369
|
* Generic click event on data table.
|
|
386
370
|
*/
|
|
@@ -402,8 +386,6 @@ export declare class KupDataTable {
|
|
|
402
386
|
*/
|
|
403
387
|
kupRowActionClick: EventEmitter<KupDatatableRowActionClickEventPayload>;
|
|
404
388
|
kupLoadMoreClick: EventEmitter<KupDatatableLoadMoreClickEventPayload>;
|
|
405
|
-
kupCellButtonClick: EventEmitter<KupDataTableCellButtonClickEventPayload>;
|
|
406
|
-
kupCellTextFieldInput: EventEmitter<KupDataTableCellTextFieldInputEventPayload>;
|
|
407
389
|
/**
|
|
408
390
|
* Closes any opened column menu.
|
|
409
391
|
*/
|
|
@@ -435,6 +417,12 @@ export declare class KupDataTable {
|
|
|
435
417
|
* This method is invoked by KupManager whenever the component changes size.
|
|
436
418
|
*/
|
|
437
419
|
resizeCallback(): Promise<void>;
|
|
420
|
+
/**
|
|
421
|
+
* Sets the focus on an editable table cell.
|
|
422
|
+
* @param {string} column - Name of the column.
|
|
423
|
+
* @param {string} rowId - Id of the row.
|
|
424
|
+
*/
|
|
425
|
+
setFocus(column: string, rowId: string): Promise<void>;
|
|
438
426
|
/**
|
|
439
427
|
* Sets the props to the component.
|
|
440
428
|
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
@@ -455,8 +443,10 @@ export declare class KupDataTable {
|
|
|
455
443
|
private stickyHeaderPosition;
|
|
456
444
|
private updateStickyHeaderSize;
|
|
457
445
|
private setObserver;
|
|
458
|
-
private
|
|
446
|
+
private didLoadInteractables;
|
|
447
|
+
private didRenderInteractables;
|
|
459
448
|
private didLoadObservers;
|
|
449
|
+
private didRenderObservers;
|
|
460
450
|
private didLoadEventHandling;
|
|
461
451
|
private scrollStickyHeader;
|
|
462
452
|
private checkScrollOnHover;
|
|
@@ -469,6 +459,7 @@ export declare class KupDataTable {
|
|
|
469
459
|
componentWillRender(): void;
|
|
470
460
|
componentDidRender(): void;
|
|
471
461
|
componentDidLoad(): void;
|
|
462
|
+
private getEventPath;
|
|
472
463
|
private resetSelectedRows;
|
|
473
464
|
resetCurrentPage(): void;
|
|
474
465
|
getColumns(): Array<Column>;
|
|
@@ -486,13 +477,10 @@ export declare class KupDataTable {
|
|
|
486
477
|
private clickHandler;
|
|
487
478
|
private contextMenuHandler;
|
|
488
479
|
private dblClickHandler;
|
|
489
|
-
private mouseMoveHandler;
|
|
490
|
-
private mouseOutHandler;
|
|
491
480
|
getVisibleColumns(): Array<Column>;
|
|
492
481
|
getGroupByName(column: string): GroupObject;
|
|
493
482
|
getColumnValues(column: Column): ValueDisplayedValue[];
|
|
494
483
|
getRows(): Array<Row>;
|
|
495
|
-
private addMultiSelectDragImageToEvent;
|
|
496
484
|
private initRows;
|
|
497
485
|
private filterRows;
|
|
498
486
|
private isGrouping;
|
|
@@ -521,25 +509,13 @@ export declare class KupDataTable {
|
|
|
521
509
|
private deselectColumn;
|
|
522
510
|
private onDefaultRowActionClick;
|
|
523
511
|
private onRowActionExpanderClick;
|
|
524
|
-
private cellUpdate;
|
|
525
512
|
private handleRowSelect;
|
|
526
513
|
private onRowExpand;
|
|
527
514
|
private onSelectAll;
|
|
528
515
|
private openTotalMenu;
|
|
529
516
|
private closeTotalMenu;
|
|
530
517
|
private closeMenuAndTooltip;
|
|
531
|
-
private isOpenedTotalMenu;
|
|
532
518
|
private isOpenedTotalMenuForColumn;
|
|
533
|
-
private isOpenedGroupMenu;
|
|
534
|
-
private isOpenedGroupMenuForColumn;
|
|
535
|
-
/**
|
|
536
|
-
* Type guard needed to be sure that an object returned from composePath() is an HTMLElement with classes
|
|
537
|
-
* @param node
|
|
538
|
-
*/
|
|
539
|
-
private isHTMLElementFromEventTarget;
|
|
540
|
-
private hasOverlayActions;
|
|
541
|
-
private onHeaderCellContextMenuClose;
|
|
542
|
-
private onJ4btnClicked;
|
|
543
519
|
private groupRows;
|
|
544
520
|
getInternalState(): Promise<{
|
|
545
521
|
groups: GroupObject[];
|
|
@@ -581,24 +557,6 @@ export declare class KupDataTable {
|
|
|
581
557
|
renderFooter(): any;
|
|
582
558
|
private renderRow;
|
|
583
559
|
private renderActions;
|
|
584
|
-
/**
|
|
585
|
-
* FActory function for cells.
|
|
586
|
-
* @param cell - cell object
|
|
587
|
-
* @param column - the cell's column name
|
|
588
|
-
* @param previousRowCellValue - An optional value of the previous cell on the same column. If set and equal to the value of the current cell, makes the value of the current cell go blank.
|
|
589
|
-
* @param cellData - Additional data for the current cell.
|
|
590
|
-
* @param cellData.column - The column object to which the cell belongs.
|
|
591
|
-
* @param cellData.row - The row object to which the cell belongs.
|
|
592
|
-
*/
|
|
593
|
-
private renderCell;
|
|
594
|
-
private getIconPath;
|
|
595
|
-
private getCellType;
|
|
596
|
-
private setLazyKupCell;
|
|
597
|
-
private setCellSize;
|
|
598
|
-
private setCellSizeKup;
|
|
599
|
-
private setEditableCell;
|
|
600
|
-
private setKupCell;
|
|
601
|
-
private setCell;
|
|
602
560
|
private renderLoadMoreButton;
|
|
603
561
|
private onCustomSettingsClick;
|
|
604
562
|
private openCustomSettings;
|
|
@@ -607,13 +565,7 @@ export declare class KupDataTable {
|
|
|
607
565
|
renderCustomizePanel(): any;
|
|
608
566
|
private columnRemoveArea;
|
|
609
567
|
private columnGroupArea;
|
|
610
|
-
private startDynamicPositioning;
|
|
611
|
-
private stopDynamicPositioning;
|
|
612
|
-
private getElementById;
|
|
613
|
-
private getThElement;
|
|
614
568
|
private hideShowColumnDropArea;
|
|
615
|
-
private hideShowColumnRemoveDropArea;
|
|
616
|
-
private hideShowColumnGroupDropArea;
|
|
617
569
|
private handleColumnRemove;
|
|
618
570
|
private handleColumnGroup;
|
|
619
571
|
private transcodeItem;
|
|
@@ -623,10 +575,8 @@ export declare class KupDataTable {
|
|
|
623
575
|
private FONTSIZE_ICONS;
|
|
624
576
|
private getFontSizeCodeFromDecode;
|
|
625
577
|
private renderFontSizePanel;
|
|
626
|
-
private DENSITY_CODES;
|
|
627
578
|
private DENSITY_DECODES;
|
|
628
579
|
private DENSITY_ICONS;
|
|
629
|
-
private getDensityDecodeFromCode;
|
|
630
580
|
private getDensityCodeFromDecode;
|
|
631
581
|
private renderDensityPanel;
|
|
632
582
|
private GRID_CODES;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
|
+
import { EventEmitter, VNode } from '../../stencil-public-runtime';
|
|
2
2
|
import type { GenericObject, KupEventPayload } from '../../types/GenericTypes';
|
|
3
3
|
import { KupDatePickerEventPayload } from './kup-date-picker-declarations';
|
|
4
4
|
export declare class KupDatePicker {
|
|
@@ -36,11 +36,10 @@ export declare class KupDatePicker {
|
|
|
36
36
|
* Instance of the KupManager class.
|
|
37
37
|
*/
|
|
38
38
|
private kupManager;
|
|
39
|
-
private calendarView;
|
|
40
39
|
private textfieldEl;
|
|
41
40
|
private pickerContainerEl;
|
|
42
41
|
private pickerEl;
|
|
43
|
-
private
|
|
42
|
+
private clickCb;
|
|
44
43
|
kupBlur: EventEmitter<KupDatePickerEventPayload>;
|
|
45
44
|
kupChange: EventEmitter<KupDatePickerEventPayload>;
|
|
46
45
|
kupClick: EventEmitter<KupDatePickerEventPayload>;
|
|
@@ -50,16 +49,15 @@ export declare class KupDatePicker {
|
|
|
50
49
|
kupItemClick: EventEmitter<KupDatePickerEventPayload>;
|
|
51
50
|
kupTextFieldSubmit: EventEmitter<KupDatePickerEventPayload>;
|
|
52
51
|
kupClearIconClick: EventEmitter<KupEventPayload>;
|
|
53
|
-
onKupDatePickerItemClick(
|
|
54
|
-
onKupClearIconClick(
|
|
55
|
-
onKupDatePickerMonthYearItemClick(e: MouseEvent, value: string): void;
|
|
52
|
+
onKupDatePickerItemClick(value: string): void;
|
|
53
|
+
onKupClearIconClick(): void;
|
|
56
54
|
onKupBlur(): void;
|
|
57
|
-
onKupChange(e:
|
|
58
|
-
onKupClick(
|
|
59
|
-
onKupFocus(
|
|
60
|
-
onKupInput(e:
|
|
61
|
-
onkupTextFieldSubmit(e:
|
|
62
|
-
onKupIconClick(
|
|
55
|
+
onKupChange(e: InputEvent): void;
|
|
56
|
+
onKupClick(): void;
|
|
57
|
+
onKupFocus(): void;
|
|
58
|
+
onKupInput(e: InputEvent): void;
|
|
59
|
+
onkupTextFieldSubmit(e: KeyboardEvent): void;
|
|
60
|
+
onKupIconClick(): void;
|
|
63
61
|
listenKeyup(e: KeyboardEvent): void;
|
|
64
62
|
watchFirstDayIndex(): void;
|
|
65
63
|
/**
|
|
@@ -90,29 +88,19 @@ export declare class KupDatePicker {
|
|
|
90
88
|
refreshPickerComponentValue(value: string): void;
|
|
91
89
|
setPickerValueSelected(newValue?: string): void;
|
|
92
90
|
getPickerValueSelected(): string;
|
|
93
|
-
setTextFieldInitalValue(value: string): void;
|
|
94
91
|
getValueForPickerComponent(): string;
|
|
95
92
|
openPicker(): void;
|
|
96
93
|
closePicker(): void;
|
|
97
94
|
isPickerOpened(): boolean;
|
|
98
95
|
getTextFieldId(): string;
|
|
99
|
-
|
|
100
|
-
prepTextfield(initialValue: string): any;
|
|
96
|
+
prepTextfield(initialValue: string): VNode;
|
|
101
97
|
getInitEndYear(curYear: number): {
|
|
102
98
|
initYear: number;
|
|
103
99
|
endYear: number;
|
|
104
100
|
};
|
|
105
101
|
isRelatedTargetInThisComponent(e: any): boolean;
|
|
106
102
|
prepDatePicker(): any;
|
|
107
|
-
createCalendar(): any;
|
|
108
|
-
private createDaysCalendar;
|
|
109
|
-
private createMonthsCalendar;
|
|
110
|
-
private createYearsCalendar;
|
|
111
|
-
private changeView;
|
|
112
|
-
private prevPage;
|
|
113
|
-
private nextPage;
|
|
114
103
|
getDateForOutput(): string;
|
|
115
|
-
recalcPosition(): void;
|
|
116
104
|
componentWillLoad(): void;
|
|
117
105
|
componentDidLoad(): void;
|
|
118
106
|
componentWillRender(): void;
|
|
@@ -12,7 +12,7 @@ export declare enum KupListProps {
|
|
|
12
12
|
filter = "Keeps string for filtering elements when filter mode is active",
|
|
13
13
|
hideText = "Hides rows' text, ideally to display a list of icons only.",
|
|
14
14
|
isMenu = "Defines whether the list is a menu or not.",
|
|
15
|
-
keyboardNavigation = "When true, enables items' navigation through keys.
|
|
15
|
+
keyboardNavigation = "When true, enables items' navigation through arrow keys.",
|
|
16
16
|
menuVisible = "Sets the status of the menu, when false it's hidden otherwise it's visible.",
|
|
17
17
|
roleType = "Defines the type of selection. Values accepted: listbox, radiogroup or group.",
|
|
18
18
|
selectable = "Defines whether items are selectable or not.",
|
|
@@ -49,9 +49,8 @@ export declare class KupList {
|
|
|
49
49
|
*/
|
|
50
50
|
isMenu: boolean;
|
|
51
51
|
/**
|
|
52
|
-
* When true, enables items' navigation through keys.
|
|
53
|
-
*
|
|
54
|
-
* @default undefined
|
|
52
|
+
* When true, enables items' navigation through arrow keys.
|
|
53
|
+
* @default true
|
|
55
54
|
*/
|
|
56
55
|
keyboardNavigation: boolean;
|
|
57
56
|
/**
|
|
@@ -29,6 +29,7 @@ export declare class KupMagicBox {
|
|
|
29
29
|
* Element which enables the drag on move feature.
|
|
30
30
|
*/
|
|
31
31
|
private dragHandler;
|
|
32
|
+
private wrapperRef;
|
|
32
33
|
/**
|
|
33
34
|
* Used to retrieve component's props values.
|
|
34
35
|
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
@@ -2,6 +2,12 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
import { KupPaginatorPageChangedEventPayload, KupPaginatorRowsPerPageChangedEventPayload, PaginatorMode } from './kup-paginator-declarations';
|
|
3
3
|
export declare class KupPaginator {
|
|
4
4
|
rootElement: HTMLElement;
|
|
5
|
+
/**
|
|
6
|
+
* Custom style of the component.
|
|
7
|
+
* @default ""
|
|
8
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
9
|
+
*/
|
|
10
|
+
customStyle: string;
|
|
5
11
|
currentPage: number;
|
|
6
12
|
max: number;
|
|
7
13
|
mode: PaginatorMode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const snackbarClass = "snackbar";
|
|
2
|
+
/**
|
|
3
|
+
* Props of the kup-snackbar component.
|
|
4
|
+
* Used to export every prop in an object.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum KupSnackbarProps {
|
|
7
|
+
actionButton = "Set of FButton props to set the action button.",
|
|
8
|
+
closeButton = "When true, the hide button will be displayed.",
|
|
9
|
+
customStyle = "Custom style of the component.",
|
|
10
|
+
text = "Sets the textual content of the snackbar.",
|
|
11
|
+
timeout = "Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds."
|
|
12
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { KupEventPayload } from '../../types/GenericTypes';
|
|
3
|
+
import { GenericObject } from '../../types/GenericTypes';
|
|
4
|
+
import { FButtonProps } from '../../f-components/f-button/f-button-declarations';
|
|
5
|
+
export declare class KupSnackbar {
|
|
6
|
+
/**
|
|
7
|
+
* References the root HTML element of the component (<kup-snackbar>).
|
|
8
|
+
*/
|
|
9
|
+
rootElement: HTMLElement;
|
|
10
|
+
/**
|
|
11
|
+
* The value of the component.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
visible: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Set of FButton props to set the action button.
|
|
17
|
+
* @default null
|
|
18
|
+
*/
|
|
19
|
+
actionButton: FButtonProps;
|
|
20
|
+
/**
|
|
21
|
+
* When true, the hide button will be displayed.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
closeButton: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Custom style of the component.
|
|
27
|
+
* @default ""
|
|
28
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
29
|
+
*/
|
|
30
|
+
customStyle: string;
|
|
31
|
+
/**
|
|
32
|
+
* Sets the textual content of the snackbar.
|
|
33
|
+
* @default ''
|
|
34
|
+
*/
|
|
35
|
+
text: string;
|
|
36
|
+
/**
|
|
37
|
+
* Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds.
|
|
38
|
+
* @default null
|
|
39
|
+
*/
|
|
40
|
+
timeout: number;
|
|
41
|
+
/**
|
|
42
|
+
* Instance of the KupManager class.
|
|
43
|
+
*/
|
|
44
|
+
private kupManager;
|
|
45
|
+
/**
|
|
46
|
+
* Triggered when action button is clicked.
|
|
47
|
+
*/
|
|
48
|
+
kupActionClick: EventEmitter<KupEventPayload>;
|
|
49
|
+
onKupActionClick(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Used to retrieve component's props values.
|
|
52
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
53
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
54
|
+
*/
|
|
55
|
+
getProps(descriptions?: boolean): Promise<GenericObject>;
|
|
56
|
+
/**
|
|
57
|
+
* Hides the snackbar.
|
|
58
|
+
*/
|
|
59
|
+
hide(): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* This method is used to trigger a new render of the component.
|
|
62
|
+
*/
|
|
63
|
+
refresh(): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the props to the component.
|
|
66
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
67
|
+
*/
|
|
68
|
+
setProps(props: GenericObject): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Displays the snackbar.
|
|
71
|
+
*/
|
|
72
|
+
show(): Promise<void>;
|
|
73
|
+
componentWillLoad(): void;
|
|
74
|
+
componentDidLoad(): void;
|
|
75
|
+
componentWillRender(): void;
|
|
76
|
+
componentDidRender(): void;
|
|
77
|
+
render(): any;
|
|
78
|
+
disconnectedCallback(): void;
|
|
79
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KupEventPayload } from
|
|
1
|
+
import { KupEventPayload } from '../../types/GenericTypes';
|
|
2
2
|
/**
|
|
3
3
|
* Props of the kup-text-field component.
|
|
4
4
|
* Used to export every prop in an object.
|
|
@@ -9,6 +9,7 @@ export declare enum KupTextFieldProps {
|
|
|
9
9
|
emitSubmitEventOnEnter = "When the text field is part of the autocomplete component and the list is opened, enter key selects the item and doesn't submit.",
|
|
10
10
|
fullWidth = "When set to true, the component will be rendered at full width.",
|
|
11
11
|
helper = "When set, its content will be shown as a help text below the field.",
|
|
12
|
+
helperEnabled = "When true, the helper will be displayed.",
|
|
12
13
|
helperWhenFocused = "When set, the helper will be shown only when the field is focused.",
|
|
13
14
|
icon = "When set, the text-field will show this icon.",
|
|
14
15
|
initialValue = "Sets the initial value of the component",
|
|
@@ -37,6 +37,11 @@ export declare class KupTextField {
|
|
|
37
37
|
* @default null
|
|
38
38
|
*/
|
|
39
39
|
helper: string;
|
|
40
|
+
/**
|
|
41
|
+
* When true, the helper will be displayed.
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
helperEnabled: boolean;
|
|
40
45
|
/**
|
|
41
46
|
* When set, the helper will be shown only when the field is focused.
|
|
42
47
|
* @default false
|
|
@@ -56,10 +56,10 @@ export declare class KupTimePicker {
|
|
|
56
56
|
private hoursActive;
|
|
57
57
|
private minutesActive;
|
|
58
58
|
private secondsActive;
|
|
59
|
+
private textFieldContainerEl;
|
|
59
60
|
private textfieldEl;
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private pickerOpened;
|
|
61
|
+
private pickerKupEl;
|
|
62
|
+
private clickCb;
|
|
63
63
|
kupBlur: EventEmitter<KupTimePickerEventPayload>;
|
|
64
64
|
kupChange: EventEmitter<KupTimePickerEventPayload>;
|
|
65
65
|
kupClick: EventEmitter<KupTimePickerEventPayload>;
|
|
@@ -70,15 +70,14 @@ export declare class KupTimePicker {
|
|
|
70
70
|
kupTextFieldSubmit: EventEmitter<KupTimePickerEventPayload>;
|
|
71
71
|
kupClearIconClick: EventEmitter<KupEventPayload>;
|
|
72
72
|
onKupTimePickerItemClick(e: CustomEvent, value?: string): void;
|
|
73
|
-
onKupClearIconClick(
|
|
73
|
+
onKupClearIconClick(): void;
|
|
74
74
|
onKupBlur(): void;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
onKupIconClick(e: UIEvent): void;
|
|
75
|
+
onKupChange(e: InputEvent): void;
|
|
76
|
+
onKupClick(): void;
|
|
77
|
+
onKupFocus(): void;
|
|
78
|
+
onKupInput(e: InputEvent): void;
|
|
79
|
+
onKupTextFieldSubmit(e: KeyboardEvent): void;
|
|
80
|
+
onKupIconClick(): void;
|
|
82
81
|
listenKeyup(e: KeyboardEvent): void;
|
|
83
82
|
watchTimeMinutesStep(): void;
|
|
84
83
|
/**
|
|
@@ -112,26 +111,17 @@ export declare class KupTimePicker {
|
|
|
112
111
|
refreshPickerValue(eventDetailValue: string, eventToRaise: EventEmitter): void;
|
|
113
112
|
setPickerValueSelected(newValue?: string): void;
|
|
114
113
|
getPickerValueSelected(): string;
|
|
115
|
-
setTextFieldInitalValue(value: string): void;
|
|
116
114
|
getValueForPickerComponent(): string;
|
|
117
115
|
openPicker(): void;
|
|
118
116
|
closePicker(): void;
|
|
119
117
|
isPickerOpened(): boolean;
|
|
120
118
|
getTextFieldId(): string;
|
|
121
119
|
getPickerElId(): string;
|
|
122
|
-
prepTimeTextfield(): any;
|
|
123
120
|
prepTextfield(initialValue: string): any;
|
|
124
121
|
isRelatedTargetInThisComponent(e: any): boolean;
|
|
125
|
-
private setTimeFromClock;
|
|
126
|
-
private createClock;
|
|
127
|
-
private switchView;
|
|
128
|
-
private setClockViewActive;
|
|
129
|
-
private buildClock;
|
|
130
|
-
private setClockTime;
|
|
131
122
|
prepTimePicker(): any;
|
|
132
123
|
private createTimeListData;
|
|
133
124
|
getTimeForOutput(): string;
|
|
134
|
-
recalcPosition(): void;
|
|
135
125
|
componentWillLoad(): void;
|
|
136
126
|
componentDidLoad(): void;
|
|
137
127
|
componentWillRender(): void;
|
|
@@ -78,14 +78,14 @@ export declare const treeMainColumnName = "TREE_COLUMN";
|
|
|
78
78
|
/**
|
|
79
79
|
* Contains all the data of an event.
|
|
80
80
|
*/
|
|
81
|
-
export interface
|
|
81
|
+
export interface KupTreeEventHandlerDetails {
|
|
82
82
|
area: string;
|
|
83
83
|
cell: Cell;
|
|
84
84
|
column: Column;
|
|
85
85
|
filterRemove: HTMLSpanElement;
|
|
86
86
|
row: Row;
|
|
87
|
-
td:
|
|
88
|
-
th:
|
|
87
|
+
td: HTMLElement;
|
|
88
|
+
th: HTMLElement;
|
|
89
89
|
tr: HTMLTableRowElement;
|
|
90
90
|
}
|
|
91
91
|
export declare enum KupTreeExpansionMode {
|
|
@@ -110,7 +110,7 @@ export interface KupTreeNodeButtonClickEventPayload extends KupTreeNodeCollapseE
|
|
|
110
110
|
auto: boolean;
|
|
111
111
|
}
|
|
112
112
|
export interface KupTreeContextMenuEventPayload extends KupEventPayload {
|
|
113
|
-
details:
|
|
113
|
+
details: KupTreeEventHandlerDetails;
|
|
114
114
|
}
|
|
115
115
|
export interface KupTreeColumnMenuEventPayload extends KupEventPayload {
|
|
116
116
|
card: HTMLKupCardElement;
|