@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
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { VNode } from '../../stencil-public-runtime';
|
|
2
|
+
import type { Cell, Column, Row } from '../../components/kup-data-table/kup-data-table-declarations';
|
|
3
|
+
import type { FComponent, KupEventPayload } from '../../types/GenericTypes';
|
|
4
|
+
export declare const autoAlignComps: string[];
|
|
5
|
+
/**
|
|
6
|
+
* Props of the f-cell component.
|
|
7
|
+
*/
|
|
8
|
+
export interface FCellProps extends FComponent {
|
|
9
|
+
cell?: Cell;
|
|
10
|
+
column?: Column;
|
|
11
|
+
component?: unknown;
|
|
12
|
+
density?: FCellPadding;
|
|
13
|
+
editable?: boolean;
|
|
14
|
+
indents?: VNode[];
|
|
15
|
+
previousValue?: string;
|
|
16
|
+
renderKup?: boolean;
|
|
17
|
+
row?: Row;
|
|
18
|
+
setSizes?: boolean;
|
|
19
|
+
shape?: FCellShapes;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Information about the cell, displayed before the content.
|
|
23
|
+
*/
|
|
24
|
+
export interface FCellInfo {
|
|
25
|
+
color?: string;
|
|
26
|
+
icon?: string;
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Supported cell events.
|
|
31
|
+
*/
|
|
32
|
+
export declare enum FCellEvents {
|
|
33
|
+
CLICK = "kup-cell-click",
|
|
34
|
+
INPUT = "kup-cell-input",
|
|
35
|
+
UPDATE = "kup-cell-update"
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Supported cell padding.
|
|
39
|
+
*/
|
|
40
|
+
export declare enum FCellPadding {
|
|
41
|
+
DENSE = "dense",
|
|
42
|
+
MEDIUM = "medium",
|
|
43
|
+
NONE = "",
|
|
44
|
+
WIDE = "wide"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Supported cell CSS classes.
|
|
48
|
+
*/
|
|
49
|
+
export declare enum FCellClasses {
|
|
50
|
+
BG_DANGER = "danger-bg",
|
|
51
|
+
BG_GREEN = "green-bg",
|
|
52
|
+
BG_GREY = "grey-bg",
|
|
53
|
+
BG_ORANGE = "orange-bg",
|
|
54
|
+
BG_PURPLE = "purple-bg",
|
|
55
|
+
BG_SUCCESS = "success-bg",
|
|
56
|
+
BG_TEAL = "teal-bg",
|
|
57
|
+
BG_WARNING = "warning-bg",
|
|
58
|
+
C_BG_DANGER = "c-danger-bg",
|
|
59
|
+
C_BG_GREEN = "c-green-bg",
|
|
60
|
+
C_BG_GREY = "c-grey-bg",
|
|
61
|
+
C_BG_ORANGE = "c-orange-bg",
|
|
62
|
+
C_BG_PURPLE = "c-purple-bg",
|
|
63
|
+
C_BG_SUCCESS = "c-success-bg",
|
|
64
|
+
C_BG_TEAL = "c-teal-bg",
|
|
65
|
+
C_BG_WARNING = "c-warning-bg",
|
|
66
|
+
C_CENTERED = "c-centered",
|
|
67
|
+
C_FITTED = "c-fitted",
|
|
68
|
+
C_PADDED = "c-padded",
|
|
69
|
+
C_PADDED_HOR = "c-padded-hor",
|
|
70
|
+
C_PADDED_VER = "c-padded-ver",
|
|
71
|
+
C_ROUND = "c-round",
|
|
72
|
+
C_RIGHT_ALIGNED = "c-right-aligned",
|
|
73
|
+
C_SHAPED = "c-shaped",
|
|
74
|
+
C_TEXT_VERTICAL = "c-vertical-text",
|
|
75
|
+
CLICKABLE = "clickable",
|
|
76
|
+
HOVER_DISPLAY = "display-on-hover",
|
|
77
|
+
HOVER_EXPAND = "expand-on-hover",
|
|
78
|
+
HOVER_REDUCE = "reduce-on-hover",
|
|
79
|
+
INDICATOR_TOPRIGHT = "top-right-indicator",
|
|
80
|
+
LINK = "link",
|
|
81
|
+
MONOSPACE = "monospace",
|
|
82
|
+
OBJ = "obj",
|
|
83
|
+
SHAPED = "shaped",
|
|
84
|
+
TEXT_DANGER = "danger-text",
|
|
85
|
+
TEXT_INFO = "info-text",
|
|
86
|
+
TEXT_PRIMARY = "primary-text",
|
|
87
|
+
TEXT_PURPLE = "purple-text",
|
|
88
|
+
TEXT_SECONDARY = "secondary-text",
|
|
89
|
+
TEXT_STRONG = "strong-text",
|
|
90
|
+
TEXT_SUCCESS = "success-text",
|
|
91
|
+
TEXT_WARNING = "warning-text",
|
|
92
|
+
UNDERLINED = "underlined"
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Supported cell shapes.
|
|
96
|
+
*/
|
|
97
|
+
export declare enum FCellShapes {
|
|
98
|
+
AUTOCOMPLETE = "ACP",
|
|
99
|
+
BUTTON_LIST = "BTN",
|
|
100
|
+
CHART = "GRA",
|
|
101
|
+
CHECKBOX = "CHK",
|
|
102
|
+
CHIP = "CHI",
|
|
103
|
+
COLOR_PICKER = "CLP",
|
|
104
|
+
COMBOBOX = "CMB",
|
|
105
|
+
EDITOR = "EDT",
|
|
106
|
+
GAUGE = "GAU",
|
|
107
|
+
IMAGE = "IMG",
|
|
108
|
+
KNOB = "KNB",
|
|
109
|
+
PROGRESS_BAR = "PGB",
|
|
110
|
+
RADIO = "RAD",
|
|
111
|
+
RATING = "RTG",
|
|
112
|
+
TEXT_FIELD = "ITX"
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Supported cell types.
|
|
116
|
+
*/
|
|
117
|
+
export declare enum FCellTypes {
|
|
118
|
+
AUTOCOMPLETE = "autocomplete",
|
|
119
|
+
BAR = "bar",
|
|
120
|
+
BUTTON = "button",
|
|
121
|
+
BUTTON_LIST = "button-list",
|
|
122
|
+
CHART = "chart",
|
|
123
|
+
CHECKBOX = "checkbox",
|
|
124
|
+
CHIP = "chips",
|
|
125
|
+
COLOR_PICKER = "color-picker",
|
|
126
|
+
COMBOBOX = "combobox",
|
|
127
|
+
DATE = "date",
|
|
128
|
+
DATETIME = "datetime",
|
|
129
|
+
EDITOR = "editor",
|
|
130
|
+
GAUGE = "gauge",
|
|
131
|
+
ICON = "icon",
|
|
132
|
+
IMAGE = "image",
|
|
133
|
+
KNOB = "knob",
|
|
134
|
+
LINK = "link",
|
|
135
|
+
NUMBER = "number",
|
|
136
|
+
PROGRESS_BAR = "progress-bar",
|
|
137
|
+
RADIO = "radio",
|
|
138
|
+
RATING = "rating",
|
|
139
|
+
STRING = "string",
|
|
140
|
+
TIME = "time"
|
|
141
|
+
}
|
|
142
|
+
export declare const editableTypes: FCellTypes[];
|
|
143
|
+
export declare const kupTypes: FCellTypes[];
|
|
144
|
+
/**
|
|
145
|
+
* Payload of the event fired when a cell is updated.
|
|
146
|
+
*/
|
|
147
|
+
export interface FCellEventPayload extends KupEventPayload {
|
|
148
|
+
cell: Cell;
|
|
149
|
+
column: Column;
|
|
150
|
+
event: CustomEvent | InputEvent;
|
|
151
|
+
row: Row;
|
|
152
|
+
type: FCellTypes;
|
|
153
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Instantiates Material Design text field component.
|
|
3
|
-
* @param el - Must be the f-component wrapper (.f-text-field
|
|
3
|
+
* @param el - Must be the f-component wrapper (.f-text-field)
|
|
4
4
|
* @see https://material-components.github.io/material-components-web-catalog/#/component/text-field
|
|
5
5
|
*/
|
|
6
6
|
export declare function FTextFieldMDC(el: HTMLElement): void;
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import { Cell, Column, SortMode } from '../components/kup-data-table/kup-data-table-declarations';
|
|
2
|
-
import { BoxObject } from '../components/kup-box/kup-box-declarations';
|
|
3
2
|
import { ValueDisplayedValue } from './filters/filters-declarations';
|
|
4
|
-
export declare function getShape(cell: Cell, boxObject?: BoxObject): string;
|
|
5
|
-
export declare function getValue(cell: Cell, boxObject: BoxObject): string;
|
|
6
|
-
export declare function getFromConfig(cell: Cell, boxObject: BoxObject, propName: string): any;
|
|
7
|
-
export declare function isProgressBar(cell: Cell, boxObject: BoxObject): boolean;
|
|
8
|
-
export declare function isChip(cell: Cell, boxObject: BoxObject): boolean;
|
|
9
|
-
export declare function isImage(cell: Cell, boxObject: BoxObject): boolean;
|
|
10
|
-
export declare function isCombo(cell: Cell, boxObject: BoxObject): boolean;
|
|
11
|
-
export declare function isAutocomplete(cell: Cell, boxObject: BoxObject): boolean;
|
|
12
|
-
export declare function isInputText(cell: Cell, boxObject: BoxObject): boolean;
|
|
13
|
-
export declare function isEditor(cell: Cell, boxObject: BoxObject): boolean;
|
|
14
|
-
export declare function isRating(cell: Cell, boxObject: BoxObject): boolean;
|
|
15
|
-
export declare function isColor(cell: Cell, boxObject: BoxObject): boolean;
|
|
16
|
-
export declare function isChart(cell: Cell, boxObject: BoxObject): boolean;
|
|
17
|
-
export declare function isRadio(cell: Cell, boxObject: BoxObject): boolean;
|
|
18
|
-
export declare function isGauge(cell: Cell, boxObject: BoxObject): boolean;
|
|
19
|
-
export declare function isKnob(cell: Cell, boxObject: BoxObject): boolean;
|
|
20
|
-
export declare function isButtonList(cell: Cell): boolean;
|
|
21
|
-
export declare function getCellType(cell: Cell): "string" | "number" | "date" | "button" | "link" | "time" | "image" | "btn" | "bar" | "chart" | "checkbox" | "color-picker" | "gauge" | "knob" | "icon" | "progress-bar" | "radio" | "rating" | "chips" | "datetime" | "text-field";
|
|
22
3
|
export declare function getCellValueForDisplay(column: Column, cell: Cell): string;
|
|
23
4
|
export declare function getValueForDisplay2(values: ValueDisplayedValue, column?: Column): string;
|
|
24
5
|
export declare function formatToNumber(cell: Cell): number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { KupCardData } from '../../components/kup-card/kup-card-declarations';
|
|
2
2
|
import type { GenericObject } from '../../types/GenericTypes';
|
|
3
3
|
import type { KupDataTable } from '../../components/kup-data-table/kup-data-table';
|
|
4
|
+
import type { KupManagerClickCb } from '../kup-manager/kup-manager-declarations';
|
|
4
5
|
import type { KupTooltip } from '../../components/kup-tooltip/kup-tooltip';
|
|
5
6
|
import type { KupTree } from '../../components/kup-tree/kup-tree';
|
|
6
7
|
import type { Column } from '../../components/kup-data-table/kup-data-table-declarations';
|
|
@@ -12,6 +13,7 @@ import { FiltersRows } from '../filters/filters-rows';
|
|
|
12
13
|
* @module KupColumnMenu
|
|
13
14
|
*/
|
|
14
15
|
export declare class KupColumnMenu {
|
|
16
|
+
clickCb: KupManagerClickCb;
|
|
15
17
|
filtersColumnMenuInstance: FiltersColumnMenu;
|
|
16
18
|
filtersRowsInstance: FiltersRows;
|
|
17
19
|
/**
|
|
@@ -5,29 +5,34 @@ import 'dayjs/locale/it';
|
|
|
5
5
|
import 'dayjs/locale/pl';
|
|
6
6
|
import 'dayjs/locale/ru';
|
|
7
7
|
import 'dayjs/locale/zh';
|
|
8
|
-
import { KupDatesNormalize } from './kup-dates-declarations';
|
|
8
|
+
import { KupDatesLocales, KupDatesNormalize } from './kup-dates-declarations';
|
|
9
9
|
/**
|
|
10
10
|
* Handles operations and formatting of dates.
|
|
11
11
|
* @module KupDates
|
|
12
12
|
*/
|
|
13
13
|
export declare class KupDates {
|
|
14
14
|
dayjs: Function;
|
|
15
|
-
locale:
|
|
15
|
+
locale: KupDatesLocales;
|
|
16
16
|
/**
|
|
17
17
|
* Initializes KupDates.
|
|
18
18
|
*/
|
|
19
|
-
constructor(locale?:
|
|
19
|
+
constructor(locale?: KupDatesLocales);
|
|
20
20
|
/**
|
|
21
21
|
* Sets the locale from the browser or from a given argument.
|
|
22
22
|
* @returns {string} Locale string.
|
|
23
23
|
* @see https://github.com/iamkun/dayjs/issues/732
|
|
24
24
|
*/
|
|
25
|
-
setLocale(locale?:
|
|
25
|
+
setLocale(locale?: KupDatesLocales): string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @returns the current locale
|
|
29
29
|
*/
|
|
30
30
|
getLocale(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the available locales.
|
|
33
|
+
* @returns {Array<KupDatesLocales>} Array of locales' names.
|
|
34
|
+
*/
|
|
35
|
+
getLocales(): Array<KupDatesLocales>;
|
|
31
36
|
/**
|
|
32
37
|
* Formats the given date.
|
|
33
38
|
* @param {dayjs.ConfigType} input - Date to be formatted.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GenericObject } from '../../types/GenericTypes';
|
|
2
2
|
import { KupDebugCategory, KupDebugLog } from './kup-debug-declarations';
|
|
3
3
|
/**
|
|
4
|
-
* Debugging suite, used to log messages and statuses from the
|
|
4
|
+
* Debugging suite, used to log messages and statuses from the Ketchup components.
|
|
5
5
|
* @module KupDebug
|
|
6
6
|
*/
|
|
7
7
|
export declare class KupDebug {
|
|
@@ -18,7 +18,7 @@ export declare type KupDynamicPositionAnchor = HTMLElement | KupDynamicPositionC
|
|
|
18
18
|
* Fixed position element.
|
|
19
19
|
*/
|
|
20
20
|
export interface KupDynamicPositionElement extends HTMLElement {
|
|
21
|
-
kupDynamicPosition
|
|
21
|
+
kupDynamicPosition?: {
|
|
22
22
|
anchor: KupDynamicPositionAnchor;
|
|
23
23
|
detach: boolean;
|
|
24
24
|
margin: number;
|
|
@@ -29,9 +29,9 @@ export declare class KupDynamicPosition {
|
|
|
29
29
|
/**
|
|
30
30
|
* Changes the anchor point of the given element.
|
|
31
31
|
* @param {KupDynamicPositionElement} elements - Dynamically positioned element previously registered.
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {KupDynamicPositionAnchor} anchorEl - New anchor point.
|
|
33
33
|
*/
|
|
34
|
-
changeAnchor(el: KupDynamicPositionElement, anchorEl:
|
|
34
|
+
changeAnchor(el: KupDynamicPositionElement, anchorEl: KupDynamicPositionAnchor): void;
|
|
35
35
|
/**
|
|
36
36
|
* Removes the element from dynamic position management.
|
|
37
37
|
* @param {KupDynamicPositionElement[]} elements - Elements to remove from the managed elements set.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { DropEvent, InteractEvent } from '@interactjs/types/index';
|
|
2
|
+
import type { ResizeEvent } from '@interactjs/actions/resize/plugin';
|
|
3
|
+
import { KupBoxRow } from '../../components/kup-box/kup-box-declarations';
|
|
4
|
+
import { Cell, Column, Row } from '../../components/kup-data-table/kup-data-table-declarations';
|
|
5
|
+
/**
|
|
6
|
+
* HTML Attribute attached to dialogs.
|
|
7
|
+
* Referenced by kup-theme.css
|
|
8
|
+
*/
|
|
9
|
+
export declare const kupDialogAttribute = "kup-dialog";
|
|
10
|
+
/**
|
|
11
|
+
* CSS class attached to resizable dialogs.
|
|
12
|
+
* Referenced by kup-theme.css
|
|
13
|
+
*/
|
|
14
|
+
export declare const kupDialogResizableClass = "kup-resizable";
|
|
15
|
+
/**
|
|
16
|
+
* Drag & drop variables.
|
|
17
|
+
*/
|
|
18
|
+
export declare const kupDropEvent: string;
|
|
19
|
+
export declare const kupDragActiveAttr: string;
|
|
20
|
+
export declare const kupDragOverAttr: string;
|
|
21
|
+
export declare const kupDraggableAttr: string;
|
|
22
|
+
export declare const kupDraggableCellAttr: string;
|
|
23
|
+
export declare const kupDraggableColumnAttr: string;
|
|
24
|
+
export declare const kupDraggableRowAttr: string;
|
|
25
|
+
/**
|
|
26
|
+
* Interface for drag & drop elements.
|
|
27
|
+
*/
|
|
28
|
+
export interface KupDraggableElement extends HTMLElement {
|
|
29
|
+
kupDragDrop: KupDraggablePayload;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Drag and drop data transfer.
|
|
33
|
+
*/
|
|
34
|
+
export interface KupDraggablePayload extends KupDropEventSource {
|
|
35
|
+
ghostImage?: HTMLElement;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Available effects fro dragging.
|
|
39
|
+
*/
|
|
40
|
+
export declare enum KupDragEffect {
|
|
41
|
+
BADGE = "badge",
|
|
42
|
+
CLONE = "clone",
|
|
43
|
+
MOVE = "move",
|
|
44
|
+
NONE = "none"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Supported types of pointer events.
|
|
48
|
+
*/
|
|
49
|
+
export declare enum KupPointerEventTypes {
|
|
50
|
+
DOUBLETAP = "doubletap",
|
|
51
|
+
HOLD = "hold",
|
|
52
|
+
TAP = "tap"
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Additional callbacks to be made when the related drag event fires.
|
|
56
|
+
*/
|
|
57
|
+
export interface KupDragCallbacks {
|
|
58
|
+
end?: (e?: InteractEvent) => void;
|
|
59
|
+
move?: (e?: InteractEvent) => void;
|
|
60
|
+
start?: (e?: InteractEvent) => void;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Additional callbacks to be made when the related drop event fires.
|
|
64
|
+
*/
|
|
65
|
+
export interface KupDropCallbacks {
|
|
66
|
+
drop?: (e?: DropEvent) => void;
|
|
67
|
+
enter?: (e?: DropEvent) => void;
|
|
68
|
+
leave?: (e?: DropEvent) => void;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Additional callbacks to be made when the related resize event fires.
|
|
72
|
+
*/
|
|
73
|
+
export interface KupResizeCallbacks {
|
|
74
|
+
move?: (e?: ResizeEvent) => void;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Defines the additional data of the drag event.
|
|
78
|
+
*/
|
|
79
|
+
export declare type KupDragDataTransferCallback = (e?: InteractEvent) => KupDropEventSource;
|
|
80
|
+
export interface KupDragEventData {
|
|
81
|
+
callback?: KupDragDataTransferCallback;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Defines the additional data of the drop event.
|
|
85
|
+
*/
|
|
86
|
+
export declare type KupDropDataTransferCallback = (e?: DropEvent) => KupDropEventTarget;
|
|
87
|
+
export interface KupDropEventData {
|
|
88
|
+
callback?: KupDropDataTransferCallback;
|
|
89
|
+
dispatcher: HTMLElement;
|
|
90
|
+
type: KupDropEventTypes;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Supported types of drop event.
|
|
94
|
+
*/
|
|
95
|
+
export declare enum KupDropEventTypes {
|
|
96
|
+
BOX = "text/kup-box-drag",
|
|
97
|
+
DATATABLE = "text/kup-data-table-row-drag",
|
|
98
|
+
MAGICBOX = "text/kup-magic-box-drag"
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Drop event payload.
|
|
102
|
+
*/
|
|
103
|
+
export interface KupDropEventPayload {
|
|
104
|
+
dataType: KupDropEventTypes;
|
|
105
|
+
sourceElement: KupDropEventSource;
|
|
106
|
+
targetElement: KupDropEventTarget;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Source of the drop event payload.
|
|
110
|
+
*/
|
|
111
|
+
export interface KupDropEventSource {
|
|
112
|
+
cell?: Cell;
|
|
113
|
+
column?: Column;
|
|
114
|
+
id?: string;
|
|
115
|
+
multiple?: boolean;
|
|
116
|
+
row?: Row | KupBoxRow;
|
|
117
|
+
selectedRows?: Row[] | KupBoxRow[];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Target of the drop event payload.
|
|
121
|
+
*/
|
|
122
|
+
export interface KupDropEventTarget {
|
|
123
|
+
id?: string;
|
|
124
|
+
row?: Row | KupBoxRow;
|
|
125
|
+
cell?: Cell;
|
|
126
|
+
column?: Column;
|
|
127
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { Interaction } from '@interactjs/core/Interaction';
|
|
2
|
+
import type { ActionMap } from '@interactjs/core/scope';
|
|
3
|
+
import type { DraggableOptions, DropzoneOptions, ListenersArg, Point, RectResolvable, ResizableOptions } from '@interactjs/types/index';
|
|
4
|
+
import { KupDragCallbacks, KupDragEffect, KupDragEventData, KupDropCallbacks, KupDropEventData, KupPointerEventTypes, KupResizeCallbacks } from './kup-interact-declarations';
|
|
5
|
+
/**
|
|
6
|
+
* This class handles elements as dialogs, making them resizable and movable.
|
|
7
|
+
* @module KupInteract
|
|
8
|
+
*/
|
|
9
|
+
export declare class KupInteract {
|
|
10
|
+
container: HTMLElement;
|
|
11
|
+
managedElements: Set<HTMLElement>;
|
|
12
|
+
restrictContainer: RectResolvable<[
|
|
13
|
+
number,
|
|
14
|
+
number,
|
|
15
|
+
Interaction<keyof ActionMap>
|
|
16
|
+
]>;
|
|
17
|
+
zIndex: number;
|
|
18
|
+
/**
|
|
19
|
+
* Initializes KupInteract.
|
|
20
|
+
* @param {number} zIndex - The starting z-index assigned to dialogs.
|
|
21
|
+
* @param {RectResolvable<[number, number, Interaction<keyof ActionMap>]>} restrictContainer - The container setting the restriction's boundary.
|
|
22
|
+
*/
|
|
23
|
+
constructor(zIndex?: number, restrictContainer?: RectResolvable<[
|
|
24
|
+
number,
|
|
25
|
+
number,
|
|
26
|
+
Interaction<keyof ActionMap>
|
|
27
|
+
]>);
|
|
28
|
+
/**
|
|
29
|
+
* Sets up a new draggable element.
|
|
30
|
+
* @param {HTMLElement} el - The draggable element.
|
|
31
|
+
* @param {Partial<DraggableOptions>} options - Options of the draggable element.
|
|
32
|
+
* @param {KupDragEventData} eventData - Property used to transfer data for the drop event. The callback is used to return information of the starting item - such as cell, column and row info.
|
|
33
|
+
* @param {KupDragEffect} effect - Visual effect of the drag action.
|
|
34
|
+
* @param {KupDragCallbacks} callbacks - Additional callbacks to invoke.
|
|
35
|
+
* @see https://interactjs.io/docs/action-options/ For more options
|
|
36
|
+
*/
|
|
37
|
+
draggable(el: HTMLElement, options?: Partial<DraggableOptions>, eventData?: KupDragEventData, effect?: KupDragEffect, callbacks?: KupDragCallbacks): void;
|
|
38
|
+
/**
|
|
39
|
+
* Sets up a new dropzone.
|
|
40
|
+
* @param {HTMLElement} el - The dropzone element.
|
|
41
|
+
* @param {DropzoneOptions} options - Options of the dropzone.
|
|
42
|
+
* @param {KupDropEventData} eventData - Argument used to transfer data for the drop event. The callback is used to return information of the receiving item - such as cell, column and row info.
|
|
43
|
+
* @param {KupDropCallbacks} callbacks - Additional callbacks to invoke.
|
|
44
|
+
* @see https://interactjs.io/docs/action-options/ For more options
|
|
45
|
+
*/
|
|
46
|
+
dropzone(el: HTMLElement, options?: DropzoneOptions, eventData?: KupDropEventData, callbacks?: KupDropCallbacks): void;
|
|
47
|
+
/**
|
|
48
|
+
* Sets up a new resizable element.
|
|
49
|
+
* @param {HTMLElement} el - The resizable element.
|
|
50
|
+
* @param {Partial<ResizableOptions>} options - Options of the resize action.
|
|
51
|
+
* @param {KupResizeCallbacks} callbacks - Additional callbacks to invoke.
|
|
52
|
+
* @param {boolean} moveOnResize - When true, the element will be moved when resizing in order to keep its position.
|
|
53
|
+
* @see https://interactjs.io/docs/action-options/ For more options
|
|
54
|
+
*/
|
|
55
|
+
resizable(el: HTMLElement, options?: Partial<ResizableOptions>, callbacks?: KupResizeCallbacks, moveOnResize?: boolean): void;
|
|
56
|
+
/**
|
|
57
|
+
* Adds a new interact.js event listener to the given argument.
|
|
58
|
+
* @param {HTMLElement} el - The element on which the event listener will be added.
|
|
59
|
+
* @param {KupPointerEventTypes} event - Supported events.
|
|
60
|
+
* @param {KupResizeCallbacks} callback - Callback to invoke when the event fires.
|
|
61
|
+
*/
|
|
62
|
+
on(el: HTMLElement, event: KupPointerEventTypes, callback: ListenersArg): void;
|
|
63
|
+
/**
|
|
64
|
+
* This method checks whether the element is breaking the viewport boundaries.
|
|
65
|
+
* @param {HTMLElement} el - Element to check.
|
|
66
|
+
* @param {string} oldTransform - Previously set transform, used to rollback in case element breaks viewport boundaries.
|
|
67
|
+
* @param {Point} delta - X and Y delta values of the last movement.
|
|
68
|
+
*/
|
|
69
|
+
isInViewport(el: HTMLElement, oldTransform: string, delta: Point): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* This method treats the given element as a dialog, by activating moving-on-drag and, optionally, its resize.
|
|
72
|
+
* @param {HTMLElement} el - Dialog element.
|
|
73
|
+
* @param {HTMLElement} handleEl - Element that must be dragged in order to trigger movement. When not provided, dragging anywhere on "el" will move it.
|
|
74
|
+
* @param {boolean} unresizable - When true, the dialog can't be resized.
|
|
75
|
+
* @param {RectResolvable<[number, number, Interaction<keyof ActionMap>]>} restrictContainer - When present, it will set the constraint of "el": it can't be moved outside this container.
|
|
76
|
+
*/
|
|
77
|
+
dialogify(el: HTMLElement, handleEl?: HTMLElement, unresizable?: boolean, restrictContainer?: RectResolvable<[
|
|
78
|
+
number,
|
|
79
|
+
number,
|
|
80
|
+
Interaction<keyof ActionMap>
|
|
81
|
+
]>): void;
|
|
82
|
+
/**
|
|
83
|
+
* Removes the elements from the MoveOnDrag class watchlist.
|
|
84
|
+
* @param {HTMLElement[]} elements - Elements to remove.
|
|
85
|
+
*/
|
|
86
|
+
unregister(elements: HTMLElement[]): void;
|
|
87
|
+
/**
|
|
88
|
+
* Returns whether an element was previously registered or not.
|
|
89
|
+
* @param {HTMLElement} el - Element to test.
|
|
90
|
+
* @returns {boolean} True if the element was registered.
|
|
91
|
+
*/
|
|
92
|
+
isRegistered(el: HTMLElement): boolean;
|
|
93
|
+
}
|
|
@@ -67,6 +67,7 @@ export declare enum KupLanguageDebug {
|
|
|
67
67
|
DL_PROPS = "debugDLProps",
|
|
68
68
|
DL_PROPS_COMP = "debugDLPropsComp",
|
|
69
69
|
LANGUAGE_CHANGER = "debugLanguageChanger",
|
|
70
|
+
LOCALE_CHANGER = "debugLocaleChanger",
|
|
70
71
|
LOG_LIMIT = "debugLogLimit",
|
|
71
72
|
MAGIC_BOX = "debugMagicBox",
|
|
72
73
|
OFF = "debugOff",
|
|
@@ -104,6 +105,7 @@ export declare enum KupLanguageGeneric {
|
|
|
104
105
|
EDITABLE = "genericEditable",
|
|
105
106
|
EDITABLE_FIELD = "genericEditableField",
|
|
106
107
|
EMPTY_DATA = "genericEmptyData",
|
|
108
|
+
EMPTY_OBJECT = "genericEmptyObject",
|
|
107
109
|
EXPAND = "genericExpand",
|
|
108
110
|
EXPERIMENTAL_FEAT = "genericExperimentalFeat",
|
|
109
111
|
FILTERS = "genericFilters",
|
|
@@ -23,7 +23,7 @@ export declare class KupLanguage {
|
|
|
23
23
|
*/
|
|
24
24
|
translate(key: KupLanguageKey, language?: string): string;
|
|
25
25
|
/**
|
|
26
|
-
* Changes the current
|
|
26
|
+
* Changes the current Ketchup language to the one provided. If the language argument contains a "_", a combo of language and variant will be assumed.
|
|
27
27
|
* @param {string} language - The new language. If not present in this.list, this function will keep the previous language.
|
|
28
28
|
*/
|
|
29
29
|
set(language: string): void;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { Interaction } from '@interactjs/core/Interaction';
|
|
2
|
+
import type { ActionMap } from '@interactjs/core/scope';
|
|
3
|
+
import type { RectResolvable } from '@interactjs/types/index';
|
|
1
4
|
import type { KupDates } from '../kup-dates/kup-dates';
|
|
2
5
|
import type { KupDebug } from '../kup-debug/kup-debug';
|
|
3
|
-
import type { KupDialog } from '../kup-dialog/kup-dialog';
|
|
4
6
|
import type { KupDynamicPosition } from '../kup-dynamic-position/kup-dynamic-position';
|
|
7
|
+
import type { KupInteract } from '../kup-interact/kup-interact';
|
|
5
8
|
import type { KupLanguage } from '../kup-language/kup-language';
|
|
6
9
|
import type { KupLanguageJSON } from '../kup-language/kup-language-declarations';
|
|
7
10
|
import type { KupObjects } from '../kup-objects/kup-objects';
|
|
@@ -11,8 +14,10 @@ import type { KupTheme } from '../kup-theme/kup-theme';
|
|
|
11
14
|
import type { KupThemeJSON } from '../kup-theme/kup-theme-declarations';
|
|
12
15
|
import type { KupToolbar } from '../kup-toolbar/kup-toolbar';
|
|
13
16
|
import type { ResizeObserver } from 'resize-observer';
|
|
17
|
+
import { KupDatesLocales } from '../kup-dates/kup-dates-declarations';
|
|
18
|
+
import { KupSearch } from '../kup-search/kup-search';
|
|
14
19
|
/**
|
|
15
|
-
* Interface used to define the HTML element with
|
|
20
|
+
* Interface used to define the HTML element with Ketchup specific properties.
|
|
16
21
|
*/
|
|
17
22
|
export interface KupDom extends HTMLHtmlElement {
|
|
18
23
|
ketchup: KupManager;
|
|
@@ -24,36 +29,46 @@ export interface KupDom extends HTMLHtmlElement {
|
|
|
24
29
|
export interface KupManager {
|
|
25
30
|
dates: KupDates;
|
|
26
31
|
debug: KupDebug;
|
|
27
|
-
dialog: KupDialog;
|
|
28
32
|
dynamicPosition: KupDynamicPosition;
|
|
33
|
+
interact: KupInteract;
|
|
29
34
|
language: KupLanguage;
|
|
30
35
|
magicBox: HTMLKupMagicBoxElement;
|
|
31
36
|
objects: KupObjects;
|
|
32
37
|
overrides?: KupManagerInitialization;
|
|
33
38
|
resize: ResizeObserver;
|
|
34
39
|
scrollOnHover: KupScrollOnHover;
|
|
40
|
+
search: KupSearch;
|
|
35
41
|
theme: KupTheme;
|
|
36
42
|
toolbar: KupToolbar;
|
|
37
43
|
utilities: KupManagerUtilities;
|
|
38
44
|
showMagicBox: () => void;
|
|
39
45
|
hideMagicBox: () => void;
|
|
40
46
|
toggleMagicBox: () => void;
|
|
41
|
-
setLibraryLocalization: (locale:
|
|
47
|
+
setLibraryLocalization: (locale: KupDatesLocales) => void;
|
|
48
|
+
addClickCallback: (cb: KupManagerClickCb, async?: boolean) => void;
|
|
49
|
+
removeClickCallback: (cb: KupManagerClickCb) => void;
|
|
42
50
|
}
|
|
43
51
|
/**
|
|
44
52
|
* Interface for the KupManager utilities.
|
|
45
53
|
*/
|
|
46
54
|
export interface KupManagerUtilities {
|
|
47
|
-
|
|
55
|
+
clickCallbacks?: Set<KupManagerClickCb>;
|
|
48
56
|
lastPointerDownString?: string;
|
|
49
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Interface to declare callbacks automatically invoked on pointer down events.
|
|
60
|
+
*/
|
|
61
|
+
export interface KupManagerClickCb {
|
|
62
|
+
cb: () => unknown;
|
|
63
|
+
el?: HTMLElement;
|
|
64
|
+
}
|
|
50
65
|
/**
|
|
51
66
|
* Interface for the KupManager override settings.
|
|
52
67
|
*/
|
|
53
68
|
export interface KupManagerInitialization {
|
|
54
69
|
dates?: KupManagerDatesSettings;
|
|
55
70
|
debug?: KupManagerDebugSettings;
|
|
56
|
-
|
|
71
|
+
interact?: KupManagerInteractSettings;
|
|
57
72
|
language?: KupManagerLanguageSettings;
|
|
58
73
|
objects?: KupManagerObjectsSettings;
|
|
59
74
|
scrollOnHover?: KupManagerScrollOnHoverSettings;
|
|
@@ -63,7 +78,7 @@ export interface KupManagerInitialization {
|
|
|
63
78
|
* KupDates initialization settings.
|
|
64
79
|
*/
|
|
65
80
|
export interface KupManagerDatesSettings {
|
|
66
|
-
locale?:
|
|
81
|
+
locale?: KupDatesLocales;
|
|
67
82
|
}
|
|
68
83
|
/**
|
|
69
84
|
* KupDebug initialization settings.
|
|
@@ -76,7 +91,12 @@ export interface KupManagerDebugSettings {
|
|
|
76
91
|
/**
|
|
77
92
|
* KupDialog initialization settings.
|
|
78
93
|
*/
|
|
79
|
-
export interface
|
|
94
|
+
export interface KupManagerInteractSettings {
|
|
95
|
+
restrictContainer?: RectResolvable<[
|
|
96
|
+
number,
|
|
97
|
+
number,
|
|
98
|
+
Interaction<keyof ActionMap>
|
|
99
|
+
]>;
|
|
80
100
|
zIndex?: number;
|
|
81
101
|
}
|
|
82
102
|
/**
|