@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,23 +1,21 @@
|
|
|
1
|
-
import { Component, Element, Event, forceUpdate,
|
|
1
|
+
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
|
|
2
2
|
import { SortMode, } from '../kup-data-table/kup-data-table-declarations';
|
|
3
3
|
import { KupBoxProps, } from './kup-box-declarations';
|
|
4
|
-
import {
|
|
4
|
+
import { getColumnByName } from '../../utils/cell-utils';
|
|
5
5
|
import { filterRows, sortRows, paginateRows, } from '../kup-data-table/kup-data-table-helper';
|
|
6
|
-
import { setDragEffectAllowed, setKetchupDraggable, setKetchupDroppable, } from '../../utils/drag-and-drop';
|
|
7
|
-
const KupBoxDragType = 'text/kup-box-drag';
|
|
8
|
-
import { dragMultipleImg } from '../../assets/images/drag-multiple';
|
|
9
6
|
import { PaginatorMode } from '../kup-paginator/kup-paginator-declarations';
|
|
10
7
|
import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
|
|
11
8
|
import { KupBoxState } from './kup-box-state';
|
|
12
9
|
import { setTooltip, unsetTooltip } from '../../utils/helpers';
|
|
13
|
-
import { deepEqual, getProps, identify, setProps
|
|
10
|
+
import { deepEqual, getProps, identify, setProps } from '../../utils/utils';
|
|
14
11
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
15
|
-
import { FButton } from '../../f-components/f-button/f-button';
|
|
16
12
|
import { FChip } from '../../f-components/f-chip/f-chip';
|
|
17
13
|
import { KupDebugCategory } from '../../utils/kup-debug/kup-debug-declarations';
|
|
18
14
|
import { KupLanguageGeneric, KupLanguageSearch, } from '../../utils/kup-language/kup-language-declarations';
|
|
19
15
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
20
16
|
import { KupThemeIconValues } from '../../utils/kup-theme/kup-theme-declarations';
|
|
17
|
+
import { KupDragEffect, kupDraggableCellAttr, KupDropEventTypes, KupPointerEventTypes, } from '../../utils/kup-interact/kup-interact-declarations';
|
|
18
|
+
import { FCell } from '../../f-components/f-cell/f-cell';
|
|
21
19
|
export class KupBox {
|
|
22
20
|
constructor() {
|
|
23
21
|
/*-------------------------------------------------*/
|
|
@@ -67,6 +65,11 @@ export class KupBox {
|
|
|
67
65
|
* @default false
|
|
68
66
|
*/
|
|
69
67
|
this.dropOnSection = false;
|
|
68
|
+
/**
|
|
69
|
+
* When set to true, editable cells will be rendered using input components.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
this.editableData = false;
|
|
70
73
|
/**
|
|
71
74
|
* If enabled, a button to load / display the row actions
|
|
72
75
|
* will be displayed on the right of every box
|
|
@@ -149,7 +152,12 @@ export class KupBox {
|
|
|
149
152
|
this.visibleColumns = [];
|
|
150
153
|
this.rows = [];
|
|
151
154
|
this.filteredRows = [];
|
|
152
|
-
this.
|
|
155
|
+
this.sectionRef = null;
|
|
156
|
+
this.rowsRefs = [];
|
|
157
|
+
this.hold = false;
|
|
158
|
+
this.interactableDrag = [];
|
|
159
|
+
this.interactableDrop = [];
|
|
160
|
+
this.interactableTouch = [];
|
|
153
161
|
}
|
|
154
162
|
initWithPersistedState() {
|
|
155
163
|
if (this.store && this.stateId) {
|
|
@@ -377,14 +385,18 @@ export class KupBox {
|
|
|
377
385
|
}
|
|
378
386
|
}
|
|
379
387
|
getEventDetails(el) {
|
|
380
|
-
|
|
388
|
+
let boxObject = null;
|
|
381
389
|
let cell = null;
|
|
382
390
|
let row = null;
|
|
383
391
|
let column = null;
|
|
392
|
+
if (el) {
|
|
393
|
+
boxObject =
|
|
394
|
+
el.closest('.box-object') || el.querySelector('.box-object');
|
|
395
|
+
}
|
|
384
396
|
if (boxObject) {
|
|
385
397
|
cell = boxObject['data-cell'];
|
|
386
398
|
row = boxObject['data-row'];
|
|
387
|
-
column = boxObject
|
|
399
|
+
column = getColumnByName(this.visibleColumns, boxObject.dataset.column);
|
|
388
400
|
}
|
|
389
401
|
return {
|
|
390
402
|
boxObject: boxObject ? boxObject : null,
|
|
@@ -395,16 +407,10 @@ export class KupBox {
|
|
|
395
407
|
}
|
|
396
408
|
contextMenuHandler(e) {
|
|
397
409
|
const details = this.getEventDetails(e.target);
|
|
398
|
-
this.kupBoxContextMenu.emit({
|
|
399
|
-
comp: this,
|
|
400
|
-
id: this.rootElement.id,
|
|
401
|
-
details: details,
|
|
402
|
-
});
|
|
403
410
|
if (this.showTooltipOnRightClick && details.boxObject && details.cell) {
|
|
404
|
-
e.
|
|
405
|
-
setTooltip(e, details.row.id, details.column, details.cell, this.tooltip);
|
|
406
|
-
return;
|
|
411
|
+
setTooltip(e, details.row.id, details.column.name, details.cell, this.tooltip);
|
|
407
412
|
}
|
|
413
|
+
return details;
|
|
408
414
|
}
|
|
409
415
|
/**
|
|
410
416
|
* Checks if the element is the svg that opens the "row actions menu"
|
|
@@ -539,35 +545,6 @@ export class KupBox {
|
|
|
539
545
|
index,
|
|
540
546
|
});
|
|
541
547
|
}
|
|
542
|
-
// when the dragged box is over the drop section (fired on the drop target)
|
|
543
|
-
onSectionDragOver(event) {
|
|
544
|
-
event.preventDefault();
|
|
545
|
-
let target = event.target;
|
|
546
|
-
this.searchParentWithClass(target, 'box-component').classList.add('component-dropover');
|
|
547
|
-
}
|
|
548
|
-
// when the dragged box leaves the drop section (fired on the drop target)
|
|
549
|
-
onSectionDragLeave(event) {
|
|
550
|
-
let target = event.target;
|
|
551
|
-
this.searchParentWithClass(target, 'box-component').classList.remove('component-dropover');
|
|
552
|
-
}
|
|
553
|
-
addMultiSelectDragImageToEvent(event) {
|
|
554
|
-
var dragImage = document.createElement('img');
|
|
555
|
-
dragImage.src = dragMultipleImg;
|
|
556
|
-
event.dataTransfer.setDragImage(dragImage, 0, 0);
|
|
557
|
-
}
|
|
558
|
-
searchParentWithClass(target, cssClass) {
|
|
559
|
-
// searching parent until class is reached
|
|
560
|
-
let element = target;
|
|
561
|
-
let classList = element.classList;
|
|
562
|
-
while (!classList.contains(cssClass)) {
|
|
563
|
-
element = element.parentElement;
|
|
564
|
-
if (element === null) {
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
classList = element.classList;
|
|
568
|
-
}
|
|
569
|
-
return element;
|
|
570
|
-
}
|
|
571
548
|
/**
|
|
572
549
|
* see onDocumentClick in kup-combo
|
|
573
550
|
*/
|
|
@@ -807,59 +784,17 @@ export class KupBox {
|
|
|
807
784
|
? `centered ${badge['className']}`
|
|
808
785
|
: 'centered', imageData: badge.imageData })));
|
|
809
786
|
}
|
|
810
|
-
let dragHandler = null;
|
|
811
|
-
if (this.dragEnabled) {
|
|
812
|
-
dragHandler = h("span", { class: "box-drag-handler mdi mdi-drag" });
|
|
813
|
-
}
|
|
814
787
|
const boxClass = {
|
|
815
788
|
box: true,
|
|
816
789
|
draggable: this.dragEnabled,
|
|
817
790
|
selected: this.showSelection && isSelected,
|
|
818
791
|
column: !horizontal,
|
|
819
792
|
};
|
|
820
|
-
const dragHandlers = {
|
|
821
|
-
onDragStart: (e) => {
|
|
822
|
-
// Sets the type of drag
|
|
823
|
-
setDragEffectAllowed(e, 'move');
|
|
824
|
-
if (this.multiSelection) {
|
|
825
|
-
this.addMultiSelectDragImageToEvent(e);
|
|
826
|
-
}
|
|
827
|
-
this.searchParentWithClass(e.target, 'box').classList.add('item-dragged');
|
|
828
|
-
},
|
|
829
|
-
onDragEnd: (e) => {
|
|
830
|
-
this.searchParentWithClass(e.target, 'box').classList.remove('item-dragged');
|
|
831
|
-
},
|
|
832
|
-
};
|
|
833
|
-
const dropHandlers = {
|
|
834
|
-
onDragOver: (e) => {
|
|
835
|
-
this.searchParentWithClass(e.target, 'box').classList.add('item-dropover');
|
|
836
|
-
return true;
|
|
837
|
-
},
|
|
838
|
-
onDragLeave: (e) => {
|
|
839
|
-
this.searchParentWithClass(e.target, 'box').classList.remove('item-dropover');
|
|
840
|
-
},
|
|
841
|
-
onDrop: (e) => {
|
|
842
|
-
this.searchParentWithClass(e.target, 'box').classList.remove('item-dropover');
|
|
843
|
-
return KupBoxDragType;
|
|
844
|
-
},
|
|
845
|
-
};
|
|
846
793
|
return (h("div", { class: "box-wrapper" },
|
|
847
|
-
h("div",
|
|
848
|
-
? setKetchupDraggable(dragHandlers, {
|
|
849
|
-
[KupBoxDragType]: row,
|
|
850
|
-
'kup-drag-source-element': {
|
|
851
|
-
id: this.rootElement.id,
|
|
852
|
-
row,
|
|
853
|
-
selectedRows: this.selectedRows,
|
|
854
|
-
},
|
|
855
|
-
})
|
|
856
|
-
: {}), (this.dropEnabled
|
|
857
|
-
? setKetchupDroppable(dropHandlers, [KupBoxDragType], this.rootElement, { row, id: this.rootElement.id })
|
|
858
|
-
: {})),
|
|
794
|
+
h("div", { class: boxClass, onClick: (e) => this.onBoxClick(e, row), ref: (el) => this.rowsRefs.push(el) },
|
|
859
795
|
multiSel,
|
|
860
796
|
boxContent,
|
|
861
|
-
badges,
|
|
862
|
-
dragHandler),
|
|
797
|
+
badges),
|
|
863
798
|
rowObject));
|
|
864
799
|
}
|
|
865
800
|
renderSection(section, parent, row, visibleColumns) {
|
|
@@ -889,14 +824,11 @@ export class KupBox {
|
|
|
889
824
|
boxObject: content[cnt++],
|
|
890
825
|
row,
|
|
891
826
|
visibleColumns,
|
|
892
|
-
}));
|
|
827
|
+
}, true));
|
|
893
828
|
}
|
|
894
829
|
}
|
|
895
830
|
else if (visibleColumns.length > 0) {
|
|
896
|
-
// getting first column
|
|
897
831
|
const column = visibleColumns[0];
|
|
898
|
-
// removing first column
|
|
899
|
-
visibleColumns.splice(0, 1);
|
|
900
832
|
sectionContent = this.renderBoxObject({
|
|
901
833
|
boxObject: { column: column.name },
|
|
902
834
|
row,
|
|
@@ -913,12 +845,6 @@ export class KupBox {
|
|
|
913
845
|
titled: !!section.title,
|
|
914
846
|
'last-child': !section.sections || section.sections.length === 0,
|
|
915
847
|
};
|
|
916
|
-
if (section.cssClass) {
|
|
917
|
-
var classes = section.cssClass.split(' ');
|
|
918
|
-
for (let index = 0; index < classes.length; index++) {
|
|
919
|
-
sectionClass[classes[index]] = true;
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
848
|
const sectionStyle = section.style || {};
|
|
923
849
|
if (section.dim && parent) {
|
|
924
850
|
sectionStyle.flex = `0 0 ${section.dim}`;
|
|
@@ -957,7 +883,7 @@ export class KupBox {
|
|
|
957
883
|
} },
|
|
958
884
|
h("div", { class: "header-content" },
|
|
959
885
|
h("span", null, headerTitle),
|
|
960
|
-
h(
|
|
886
|
+
h(FImage, { resource: `${KupThemeIconValues.DROPDOWN}`, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: sectionExpanded ? 'toggled' : '' })))));
|
|
961
887
|
}
|
|
962
888
|
else {
|
|
963
889
|
const title = section.title ? h("h3", null, section.title) : null;
|
|
@@ -967,164 +893,29 @@ export class KupBox {
|
|
|
967
893
|
}
|
|
968
894
|
return sectionContainer;
|
|
969
895
|
}
|
|
970
|
-
renderBoxObject({ boxObject, row, visibleColumns, }) {
|
|
971
|
-
|
|
896
|
+
renderBoxObject({ boxObject, row, visibleColumns, }, fromSection) {
|
|
897
|
+
const classObj = {
|
|
972
898
|
'box-object': true,
|
|
973
899
|
};
|
|
974
|
-
|
|
975
|
-
let boContentIcon = null;
|
|
976
|
-
let boStyle = {};
|
|
977
|
-
//let boInnerHTML = null;
|
|
978
|
-
let cell = null;
|
|
900
|
+
const boStyle = {};
|
|
979
901
|
let column = null;
|
|
980
|
-
let
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
column
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
// removing column from visibleColumns
|
|
987
|
-
let index = -1;
|
|
988
|
-
for (let i = 0; i < visibleColumns.length; i++) {
|
|
989
|
-
const c = visibleColumns[i];
|
|
990
|
-
if (c.name === boxObject.column) {
|
|
991
|
-
index = i;
|
|
992
|
-
break;
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
if (index >= 0) {
|
|
996
|
-
column = visibleColumns[index];
|
|
997
|
-
visibleColumns.splice(index, 1);
|
|
998
|
-
}
|
|
999
|
-
if (cell.style) {
|
|
1000
|
-
boStyle = Object.assign({}, cell.style);
|
|
1001
|
-
}
|
|
1002
|
-
if (cell.cssClass) {
|
|
1003
|
-
classObj[cell.cssClass] = true;
|
|
1004
|
-
}
|
|
1005
|
-
let props = Object.assign({}, cell.data);
|
|
1006
|
-
if (this.kupManager.objects.isButton(cell.obj)) {
|
|
1007
|
-
if (props) {
|
|
1008
|
-
boContent = (h(FButton, Object.assign({ class: "cell-button" }, props)));
|
|
1009
|
-
}
|
|
1010
|
-
else {
|
|
1011
|
-
boContent = undefined;
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
else if (isChart(cell, boxObject)) {
|
|
1015
|
-
if (props) {
|
|
1016
|
-
boContent = h("kup-chart", Object.assign({ class: "cell-chart" }, props));
|
|
1017
|
-
}
|
|
1018
|
-
else {
|
|
1019
|
-
boContent = undefined;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
else if (this.kupManager.objects.isCheckbox(cell.obj)) {
|
|
1023
|
-
if (props) {
|
|
1024
|
-
props['disabled'] = row;
|
|
1025
|
-
}
|
|
1026
|
-
else {
|
|
1027
|
-
props = { disabled: row };
|
|
1028
|
-
}
|
|
1029
|
-
boContent = (h("kup-checkbox", Object.assign({ class: "cell-checkbox" }, props)));
|
|
1030
|
-
}
|
|
1031
|
-
else if (isEditor(cell, boxObject)) {
|
|
1032
|
-
boContent = h("kup-editor", { text: cell.value });
|
|
1033
|
-
}
|
|
1034
|
-
else if (this.kupManager.objects.isIcon(cell.obj)) {
|
|
1035
|
-
if (props) {
|
|
1036
|
-
if (!props.sizeX) {
|
|
1037
|
-
props['sizeX'] = '18px';
|
|
1038
|
-
}
|
|
1039
|
-
if (!props.sizeY) {
|
|
1040
|
-
props['sizeY'] = '18px';
|
|
1041
|
-
}
|
|
1042
|
-
boContent = (h(FImage, Object.assign({ wrapperClass: "cell-icon" }, props)));
|
|
1043
|
-
}
|
|
1044
|
-
else {
|
|
1045
|
-
boContent = undefined;
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
else if (isImage(cell, boxObject)) {
|
|
1049
|
-
if (props) {
|
|
1050
|
-
if (!props.sizeY) {
|
|
1051
|
-
props['sizeY'] = 'auto';
|
|
1052
|
-
}
|
|
1053
|
-
if (props.fit === undefined) {
|
|
1054
|
-
props.fit = true;
|
|
1055
|
-
}
|
|
1056
|
-
if (props.badgeData) {
|
|
1057
|
-
classObj['has-padding'] = true;
|
|
1058
|
-
}
|
|
1059
|
-
boContent = (h(FImage, Object.assign({ wrapperClass: "cell-image" }, props)));
|
|
1060
|
-
}
|
|
1061
|
-
else {
|
|
1062
|
-
boContent = undefined;
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
else if (this.kupManager.objects.isPassword(cell.obj)) {
|
|
1066
|
-
boContent = (h("kup-text-field", { "input-type": "password", "initial-value": cell.value, disabled: true }));
|
|
1067
|
-
}
|
|
1068
|
-
else if (isProgressBar(cell, boxObject)) {
|
|
1069
|
-
if (props) {
|
|
1070
|
-
boContent = (h("kup-progress-bar", Object.assign({ class: "cell-progress-bar" }, props)));
|
|
1071
|
-
}
|
|
1072
|
-
else {
|
|
1073
|
-
boContent = undefined;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
else if (isRadio(cell, boxObject)) {
|
|
1077
|
-
if (props) {
|
|
1078
|
-
props['disabled'] = true;
|
|
1079
|
-
boContent = (h("kup-radio", Object.assign({ class: "cell-radio" }, props)));
|
|
1080
|
-
}
|
|
1081
|
-
else {
|
|
1082
|
-
boContent = undefined;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
else if (isGauge(cell, boxObject)) {
|
|
1086
|
-
if (props) {
|
|
1087
|
-
boContent = (h("kup-gauge", Object.assign({ value: stringToNumber(cell.value), "width-component": "100%" }, props)));
|
|
1088
|
-
}
|
|
1089
|
-
else {
|
|
1090
|
-
boContent = undefined;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
else if (isKnob(cell, boxObject)) {
|
|
1094
|
-
if (props) {
|
|
1095
|
-
boContent = (h("kup-progress-bar", Object.assign({ class: "cell-progress-bar", value: stringToNumber(cell.value) }, props)));
|
|
1096
|
-
}
|
|
1097
|
-
else {
|
|
1098
|
-
boContent = undefined;
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
else if (this.kupManager.objects.isLink(cell.obj)) {
|
|
1102
|
-
boContent = (h("a", { class: "cell-link", href: cell.obj.k, target: "_blank" }, cell.value));
|
|
1103
|
-
}
|
|
1104
|
-
else {
|
|
1105
|
-
boContent = getCellValueForDisplay(column, cell);
|
|
1106
|
-
if ((column && column.icon) || cell.icon) {
|
|
1107
|
-
let svg = '';
|
|
1108
|
-
if (cell.icon) {
|
|
1109
|
-
svg = cell.icon;
|
|
1110
|
-
}
|
|
1111
|
-
else {
|
|
1112
|
-
svg = column.icon;
|
|
1113
|
-
}
|
|
1114
|
-
svg = this.getIconPath(svg);
|
|
1115
|
-
const iconStyle = {
|
|
1116
|
-
mask: svg,
|
|
1117
|
-
webkitMask: svg,
|
|
1118
|
-
};
|
|
1119
|
-
boContentIcon = (h("span", { style: iconStyle, class: "kup-icon obj-icon" }));
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
902
|
+
let index = -1;
|
|
903
|
+
for (let i = 0; i < visibleColumns.length; i++) {
|
|
904
|
+
const c = visibleColumns[i];
|
|
905
|
+
if (c.name === boxObject.column) {
|
|
906
|
+
index = i;
|
|
907
|
+
break;
|
|
1122
908
|
}
|
|
1123
909
|
}
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
910
|
+
if (index >= 0) {
|
|
911
|
+
column = visibleColumns[index];
|
|
912
|
+
visibleColumns.splice(index, 1);
|
|
913
|
+
}
|
|
914
|
+
else if (fromSection) {
|
|
915
|
+
column = this.data.columns.find((x) => x.name === boxObject.column);
|
|
1127
916
|
}
|
|
917
|
+
const cell = row.cells[boxObject.column];
|
|
918
|
+
let _hasTooltip = false;
|
|
1128
919
|
let title = undefined;
|
|
1129
920
|
if (_hasTooltip) {
|
|
1130
921
|
classObj['is-obj'] = true;
|
|
@@ -1151,33 +942,17 @@ export class KupBox {
|
|
|
1151
942
|
};
|
|
1152
943
|
}
|
|
1153
944
|
}
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
svg = `url('${getAssetPath(`./assets/svg/${icon}.svg`)}') no-repeat center`;
|
|
1169
|
-
if (!this.iconPaths) {
|
|
1170
|
-
this.iconPaths = [
|
|
1171
|
-
{
|
|
1172
|
-
icon: icon,
|
|
1173
|
-
path: svg,
|
|
1174
|
-
},
|
|
1175
|
-
];
|
|
1176
|
-
}
|
|
1177
|
-
else {
|
|
1178
|
-
this.iconPaths.push({ icon: icon, path: svg });
|
|
1179
|
-
}
|
|
1180
|
-
return svg;
|
|
945
|
+
const cellProps = {
|
|
946
|
+
cell: cell,
|
|
947
|
+
column: column,
|
|
948
|
+
component: this,
|
|
949
|
+
editable: this.editableData,
|
|
950
|
+
renderKup: true,
|
|
951
|
+
row: row,
|
|
952
|
+
setSizes: true,
|
|
953
|
+
shape: boxObject.shape,
|
|
954
|
+
};
|
|
955
|
+
return (h("div", Object.assign({ "data-cell": cell, "data-row": row, "data-column": boxObject.column, class: classObj, style: boStyle, title: title }, tipEvents), cell && column ? (h(FCell, Object.assign({}, cellProps))) : (h("span", null, boxObject.value))));
|
|
1181
956
|
}
|
|
1182
957
|
/**
|
|
1183
958
|
* Prepares the kanban sections by sorting the boxlist's data.
|
|
@@ -1279,6 +1054,99 @@ export class KupBox {
|
|
|
1279
1054
|
? 0
|
|
1280
1055
|
: this.tooltipLoadTimeout, detailTimeout: this.tooltipDetailTimeout, ref: (el) => (this.tooltip = el) }));
|
|
1281
1056
|
}
|
|
1057
|
+
didLoadInteractables() {
|
|
1058
|
+
this.interactableTouch.push(this.boxContainer);
|
|
1059
|
+
const tapCb = (e) => {
|
|
1060
|
+
if (this.hold) {
|
|
1061
|
+
this.hold = false;
|
|
1062
|
+
return;
|
|
1063
|
+
}
|
|
1064
|
+
switch (e.button) {
|
|
1065
|
+
// right click
|
|
1066
|
+
case 2:
|
|
1067
|
+
this.kupBoxContextMenu.emit({
|
|
1068
|
+
comp: this,
|
|
1069
|
+
id: this.rootElement.id,
|
|
1070
|
+
details: this.contextMenuHandler(e),
|
|
1071
|
+
});
|
|
1072
|
+
break;
|
|
1073
|
+
}
|
|
1074
|
+
};
|
|
1075
|
+
const holdCb = (e) => {
|
|
1076
|
+
if (e.pointerType === 'pen' || e.pointerType === 'touch') {
|
|
1077
|
+
this.hold = true;
|
|
1078
|
+
this.kupBoxContextMenu.emit({
|
|
1079
|
+
comp: this,
|
|
1080
|
+
id: this.rootElement.id,
|
|
1081
|
+
details: this.contextMenuHandler(e),
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
this.kupManager.interact.on(this.boxContainer, KupPointerEventTypes.TAP, tapCb);
|
|
1086
|
+
this.kupManager.interact.on(this.boxContainer, KupPointerEventTypes.HOLD, holdCb);
|
|
1087
|
+
}
|
|
1088
|
+
didRenderInteractables() {
|
|
1089
|
+
if (this.dragEnabled) {
|
|
1090
|
+
for (let index = 0; index < this.rowsRefs.length; index++) {
|
|
1091
|
+
const row = this.rowsRefs[index];
|
|
1092
|
+
const dataCb = () => {
|
|
1093
|
+
const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
|
|
1094
|
+
return {
|
|
1095
|
+
cell: cellEl['data-cell'],
|
|
1096
|
+
column: getColumnByName(this.visibleColumns, cellEl.dataset.column),
|
|
1097
|
+
id: this.rootElement.id,
|
|
1098
|
+
multiple: this.multiSelection,
|
|
1099
|
+
row: cellEl['data-row'],
|
|
1100
|
+
selectedRows: this.selectedRows,
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
if (row && !this.interactableDrag.includes(row)) {
|
|
1104
|
+
this.interactableDrag.push(row);
|
|
1105
|
+
this.kupManager.interact.draggable(row, {
|
|
1106
|
+
allowFrom: '.box-object',
|
|
1107
|
+
cursorChecker() {
|
|
1108
|
+
return null;
|
|
1109
|
+
},
|
|
1110
|
+
}, {
|
|
1111
|
+
callback: dataCb,
|
|
1112
|
+
}, KupDragEffect.BADGE);
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
if (this.dropEnabled) {
|
|
1117
|
+
const dataCb = () => {
|
|
1118
|
+
const receivingDetails = this.getEventDetails(this.rootElement.shadowRoot.querySelector('.box:hover'));
|
|
1119
|
+
return {
|
|
1120
|
+
cell: receivingDetails.cell,
|
|
1121
|
+
column: receivingDetails.column,
|
|
1122
|
+
id: this.rootElement.id,
|
|
1123
|
+
row: receivingDetails.row,
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
if (!this.interactableDrop.includes(this.sectionRef)) {
|
|
1127
|
+
this.interactableDrop.push(this.sectionRef);
|
|
1128
|
+
this.kupManager.interact.dropzone(this.sectionRef, {
|
|
1129
|
+
accept: `[${kupDraggableCellAttr}]`,
|
|
1130
|
+
}, {
|
|
1131
|
+
dispatcher: this.rootElement,
|
|
1132
|
+
type: KupDropEventTypes.BOX,
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
for (let index = 0; index < this.rowsRefs.length; index++) {
|
|
1136
|
+
const row = this.rowsRefs[index];
|
|
1137
|
+
if (row && !this.interactableDrop.includes(row)) {
|
|
1138
|
+
this.interactableDrop.push(row);
|
|
1139
|
+
this.kupManager.interact.dropzone(row, {
|
|
1140
|
+
accept: `[${kupDraggableCellAttr}]`,
|
|
1141
|
+
}, {
|
|
1142
|
+
callback: dataCb,
|
|
1143
|
+
dispatcher: this.rootElement,
|
|
1144
|
+
type: KupDropEventTypes.BOX,
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1282
1150
|
/*-------------------------------------------------*/
|
|
1283
1151
|
/* L i f e c y c l e H o o k s */
|
|
1284
1152
|
/*-------------------------------------------------*/
|
|
@@ -1307,6 +1175,7 @@ export class KupBox {
|
|
|
1307
1175
|
return selectedIds.indexOf(r.id) >= 0;
|
|
1308
1176
|
});
|
|
1309
1177
|
}
|
|
1178
|
+
this.didLoadInteractables();
|
|
1310
1179
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
1311
1180
|
this.kupManager.debug.logLoad(this, true);
|
|
1312
1181
|
}
|
|
@@ -1316,6 +1185,7 @@ export class KupBox {
|
|
|
1316
1185
|
componentDidRender() {
|
|
1317
1186
|
this.checkScrollOnHover();
|
|
1318
1187
|
this.persistState();
|
|
1188
|
+
this.didRenderInteractables();
|
|
1319
1189
|
this.kupManager.debug.logRender(this, true);
|
|
1320
1190
|
}
|
|
1321
1191
|
render() {
|
|
@@ -1383,34 +1253,16 @@ export class KupBox {
|
|
|
1383
1253
|
}
|
|
1384
1254
|
}
|
|
1385
1255
|
const tooltip = this.renderTooltip();
|
|
1386
|
-
const dropHandlers = {
|
|
1387
|
-
onDragOver: (e) => {
|
|
1388
|
-
if (!(e.target instanceof HTMLElement)) {
|
|
1389
|
-
return false;
|
|
1390
|
-
}
|
|
1391
|
-
this.onSectionDragOver(e);
|
|
1392
|
-
return true;
|
|
1393
|
-
},
|
|
1394
|
-
onDragLeave: (e) => {
|
|
1395
|
-
this.onSectionDragLeave(e);
|
|
1396
|
-
},
|
|
1397
|
-
onDrop: (e) => {
|
|
1398
|
-
this.searchParentWithClass(e.target, 'box-component').classList.remove('component-dropover');
|
|
1399
|
-
return KupBoxDragType;
|
|
1400
|
-
},
|
|
1401
|
-
};
|
|
1402
|
-
const customStyle = this.kupManager.theme.setCustomStyle(this.rootElement);
|
|
1403
1256
|
return (h(Host, null,
|
|
1404
|
-
|
|
1257
|
+
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
1405
1258
|
h("div", { id: componentWrapperId },
|
|
1406
|
-
h("div",
|
|
1407
|
-
(this.dropOnSection || !this.getRows().length)
|
|
1408
|
-
? setKetchupDroppable(dropHandlers, [KupBoxDragType], this.rootElement, { row: null, id: this.rootElement.id })
|
|
1409
|
-
: {}), { onContextMenu: (e) => this.contextMenuHandler(e) }),
|
|
1259
|
+
h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) },
|
|
1410
1260
|
sortPanel,
|
|
1411
1261
|
filterPanel,
|
|
1412
1262
|
paginator,
|
|
1413
|
-
h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle,
|
|
1263
|
+
h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
|
|
1264
|
+
e.preventDefault();
|
|
1265
|
+
}, onMouseLeave: (ev) => {
|
|
1414
1266
|
ev.stopPropagation();
|
|
1415
1267
|
unsetTooltip(this.tooltip);
|
|
1416
1268
|
}, ref: (el) => (this.boxContainer =
|
|
@@ -1418,6 +1270,7 @@ export class KupBox {
|
|
|
1418
1270
|
tooltip))));
|
|
1419
1271
|
}
|
|
1420
1272
|
disconnectedCallback() {
|
|
1273
|
+
this.kupManager.interact.unregister(this.interactableDrag.concat(this.interactableDrop));
|
|
1421
1274
|
this.kupManager.language.unregister(this);
|
|
1422
1275
|
this.kupManager.theme.unregister(this);
|
|
1423
1276
|
if (this.scrollOnHover) {
|
|
@@ -1453,8 +1306,8 @@ export class KupBox {
|
|
|
1453
1306
|
"optional": false,
|
|
1454
1307
|
"docs": {
|
|
1455
1308
|
"tags": [{
|
|
1456
|
-
"
|
|
1457
|
-
"
|
|
1309
|
+
"name": "default",
|
|
1310
|
+
"text": "null"
|
|
1458
1311
|
}],
|
|
1459
1312
|
"text": "Data of the card linked to the box when the latter's layout must be a premade template."
|
|
1460
1313
|
},
|
|
@@ -1472,8 +1325,8 @@ export class KupBox {
|
|
|
1472
1325
|
"optional": false,
|
|
1473
1326
|
"docs": {
|
|
1474
1327
|
"tags": [{
|
|
1475
|
-
"
|
|
1476
|
-
"
|
|
1328
|
+
"name": "default",
|
|
1329
|
+
"text": "1"
|
|
1477
1330
|
}],
|
|
1478
1331
|
"text": "Number of columns"
|
|
1479
1332
|
},
|
|
@@ -1493,11 +1346,11 @@ export class KupBox {
|
|
|
1493
1346
|
"optional": false,
|
|
1494
1347
|
"docs": {
|
|
1495
1348
|
"tags": [{
|
|
1496
|
-
"
|
|
1497
|
-
"
|
|
1349
|
+
"name": "default",
|
|
1350
|
+
"text": "\"\""
|
|
1498
1351
|
}, {
|
|
1499
|
-
"
|
|
1500
|
-
"
|
|
1352
|
+
"name": "see",
|
|
1353
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
1501
1354
|
}],
|
|
1502
1355
|
"text": "Custom style of the component."
|
|
1503
1356
|
},
|
|
@@ -1522,8 +1375,8 @@ export class KupBox {
|
|
|
1522
1375
|
"optional": false,
|
|
1523
1376
|
"docs": {
|
|
1524
1377
|
"tags": [{
|
|
1525
|
-
"
|
|
1526
|
-
"
|
|
1378
|
+
"name": "default",
|
|
1379
|
+
"text": "null"
|
|
1527
1380
|
}],
|
|
1528
1381
|
"text": "Actual data of the box."
|
|
1529
1382
|
},
|
|
@@ -1541,8 +1394,8 @@ export class KupBox {
|
|
|
1541
1394
|
"optional": false,
|
|
1542
1395
|
"docs": {
|
|
1543
1396
|
"tags": [{
|
|
1544
|
-
"
|
|
1545
|
-
"
|
|
1397
|
+
"name": "default",
|
|
1398
|
+
"text": "false"
|
|
1546
1399
|
}],
|
|
1547
1400
|
"text": "Enable dragging"
|
|
1548
1401
|
},
|
|
@@ -1562,8 +1415,8 @@ export class KupBox {
|
|
|
1562
1415
|
"optional": false,
|
|
1563
1416
|
"docs": {
|
|
1564
1417
|
"tags": [{
|
|
1565
|
-
"
|
|
1566
|
-
"
|
|
1418
|
+
"name": "default",
|
|
1419
|
+
"text": "false"
|
|
1567
1420
|
}],
|
|
1568
1421
|
"text": "Enable dropping"
|
|
1569
1422
|
},
|
|
@@ -1583,8 +1436,8 @@ export class KupBox {
|
|
|
1583
1436
|
"optional": false,
|
|
1584
1437
|
"docs": {
|
|
1585
1438
|
"tags": [{
|
|
1586
|
-
"
|
|
1587
|
-
"
|
|
1439
|
+
"name": "default",
|
|
1440
|
+
"text": "false"
|
|
1588
1441
|
}],
|
|
1589
1442
|
"text": "Drop can be done in section"
|
|
1590
1443
|
},
|
|
@@ -1592,6 +1445,27 @@ export class KupBox {
|
|
|
1592
1445
|
"reflect": false,
|
|
1593
1446
|
"defaultValue": "false"
|
|
1594
1447
|
},
|
|
1448
|
+
"editableData": {
|
|
1449
|
+
"type": "boolean",
|
|
1450
|
+
"mutable": false,
|
|
1451
|
+
"complexType": {
|
|
1452
|
+
"original": "boolean",
|
|
1453
|
+
"resolved": "boolean",
|
|
1454
|
+
"references": {}
|
|
1455
|
+
},
|
|
1456
|
+
"required": false,
|
|
1457
|
+
"optional": false,
|
|
1458
|
+
"docs": {
|
|
1459
|
+
"tags": [{
|
|
1460
|
+
"name": "default",
|
|
1461
|
+
"text": "false"
|
|
1462
|
+
}],
|
|
1463
|
+
"text": "When set to true, editable cells will be rendered using input components."
|
|
1464
|
+
},
|
|
1465
|
+
"attribute": "editable-data",
|
|
1466
|
+
"reflect": false,
|
|
1467
|
+
"defaultValue": "false"
|
|
1468
|
+
},
|
|
1595
1469
|
"enableRowActions": {
|
|
1596
1470
|
"type": "boolean",
|
|
1597
1471
|
"mutable": false,
|
|
@@ -1604,8 +1478,8 @@ export class KupBox {
|
|
|
1604
1478
|
"optional": false,
|
|
1605
1479
|
"docs": {
|
|
1606
1480
|
"tags": [{
|
|
1607
|
-
"
|
|
1608
|
-
"
|
|
1481
|
+
"name": "default",
|
|
1482
|
+
"text": "false"
|
|
1609
1483
|
}],
|
|
1610
1484
|
"text": "If enabled, a button to load / display the row actions\nwill be displayed on the right of every box"
|
|
1611
1485
|
},
|
|
@@ -1625,8 +1499,8 @@ export class KupBox {
|
|
|
1625
1499
|
"optional": false,
|
|
1626
1500
|
"docs": {
|
|
1627
1501
|
"tags": [{
|
|
1628
|
-
"
|
|
1629
|
-
"
|
|
1502
|
+
"name": "default",
|
|
1503
|
+
"text": "false"
|
|
1630
1504
|
}],
|
|
1631
1505
|
"text": "When set to true it activates the global filter."
|
|
1632
1506
|
},
|
|
@@ -1646,8 +1520,8 @@ export class KupBox {
|
|
|
1646
1520
|
"optional": false,
|
|
1647
1521
|
"docs": {
|
|
1648
1522
|
"tags": [{
|
|
1649
|
-
"
|
|
1650
|
-
"
|
|
1523
|
+
"name": "default",
|
|
1524
|
+
"text": "\"\""
|
|
1651
1525
|
}],
|
|
1652
1526
|
"text": "The value of the global filter."
|
|
1653
1527
|
},
|
|
@@ -1672,8 +1546,8 @@ export class KupBox {
|
|
|
1672
1546
|
"optional": false,
|
|
1673
1547
|
"docs": {
|
|
1674
1548
|
"tags": [{
|
|
1675
|
-
"
|
|
1676
|
-
"
|
|
1549
|
+
"name": "default",
|
|
1550
|
+
"text": "null"
|
|
1677
1551
|
}],
|
|
1678
1552
|
"text": "Displays the boxlist as a Kanban."
|
|
1679
1553
|
},
|
|
@@ -1696,8 +1570,8 @@ export class KupBox {
|
|
|
1696
1570
|
"optional": false,
|
|
1697
1571
|
"docs": {
|
|
1698
1572
|
"tags": [{
|
|
1699
|
-
"
|
|
1700
|
-
"
|
|
1573
|
+
"name": "default",
|
|
1574
|
+
"text": "undefined"
|
|
1701
1575
|
}],
|
|
1702
1576
|
"text": "How the field will be displayed. If not present, a default one will be created."
|
|
1703
1577
|
}
|
|
@@ -1714,8 +1588,8 @@ export class KupBox {
|
|
|
1714
1588
|
"optional": false,
|
|
1715
1589
|
"docs": {
|
|
1716
1590
|
"tags": [{
|
|
1717
|
-
"
|
|
1718
|
-
"
|
|
1591
|
+
"name": "default",
|
|
1592
|
+
"text": "false"
|
|
1719
1593
|
}],
|
|
1720
1594
|
"text": "Enable multi selection"
|
|
1721
1595
|
},
|
|
@@ -1735,8 +1609,8 @@ export class KupBox {
|
|
|
1735
1609
|
"optional": false,
|
|
1736
1610
|
"docs": {
|
|
1737
1611
|
"tags": [{
|
|
1738
|
-
"
|
|
1739
|
-
"
|
|
1612
|
+
"name": "default",
|
|
1613
|
+
"text": "1"
|
|
1740
1614
|
}],
|
|
1741
1615
|
"text": "Current page number"
|
|
1742
1616
|
},
|
|
@@ -1756,8 +1630,8 @@ export class KupBox {
|
|
|
1756
1630
|
"optional": false,
|
|
1757
1631
|
"docs": {
|
|
1758
1632
|
"tags": [{
|
|
1759
|
-
"
|
|
1760
|
-
"
|
|
1633
|
+
"name": "default",
|
|
1634
|
+
"text": "10"
|
|
1761
1635
|
}],
|
|
1762
1636
|
"text": "Number of boxes per page"
|
|
1763
1637
|
},
|
|
@@ -1777,8 +1651,8 @@ export class KupBox {
|
|
|
1777
1651
|
"optional": false,
|
|
1778
1652
|
"docs": {
|
|
1779
1653
|
"tags": [{
|
|
1780
|
-
"
|
|
1781
|
-
"
|
|
1654
|
+
"name": "default",
|
|
1655
|
+
"text": "false"
|
|
1782
1656
|
}],
|
|
1783
1657
|
"text": "Enables pagination"
|
|
1784
1658
|
},
|
|
@@ -1798,8 +1672,8 @@ export class KupBox {
|
|
|
1798
1672
|
"optional": false,
|
|
1799
1673
|
"docs": {
|
|
1800
1674
|
"tags": [{
|
|
1801
|
-
"
|
|
1802
|
-
"
|
|
1675
|
+
"name": "default",
|
|
1676
|
+
"text": "undefined"
|
|
1803
1677
|
}],
|
|
1804
1678
|
"text": "Number of current rows per page"
|
|
1805
1679
|
},
|
|
@@ -1818,8 +1692,8 @@ export class KupBox {
|
|
|
1818
1692
|
"optional": false,
|
|
1819
1693
|
"docs": {
|
|
1820
1694
|
"tags": [{
|
|
1821
|
-
"
|
|
1822
|
-
"
|
|
1695
|
+
"name": "default",
|
|
1696
|
+
"text": "false"
|
|
1823
1697
|
}],
|
|
1824
1698
|
"text": "Activates the scroll on hover function."
|
|
1825
1699
|
},
|
|
@@ -1839,8 +1713,8 @@ export class KupBox {
|
|
|
1839
1713
|
"optional": false,
|
|
1840
1714
|
"docs": {
|
|
1841
1715
|
"tags": [{
|
|
1842
|
-
"
|
|
1843
|
-
"
|
|
1716
|
+
"name": "default",
|
|
1717
|
+
"text": "undefined"
|
|
1844
1718
|
}],
|
|
1845
1719
|
"text": "Automatically selects the box at the specified index"
|
|
1846
1720
|
},
|
|
@@ -1859,8 +1733,8 @@ export class KupBox {
|
|
|
1859
1733
|
"optional": false,
|
|
1860
1734
|
"docs": {
|
|
1861
1735
|
"tags": [{
|
|
1862
|
-
"
|
|
1863
|
-
"
|
|
1736
|
+
"name": "default",
|
|
1737
|
+
"text": "undefined"
|
|
1864
1738
|
}],
|
|
1865
1739
|
"text": "Multiple selection"
|
|
1866
1740
|
},
|
|
@@ -1879,8 +1753,8 @@ export class KupBox {
|
|
|
1879
1753
|
"optional": false,
|
|
1880
1754
|
"docs": {
|
|
1881
1755
|
"tags": [{
|
|
1882
|
-
"
|
|
1883
|
-
"
|
|
1756
|
+
"name": "default",
|
|
1757
|
+
"text": "true"
|
|
1884
1758
|
}],
|
|
1885
1759
|
"text": "If enabled, highlights the selected box/boxes"
|
|
1886
1760
|
},
|
|
@@ -1900,8 +1774,8 @@ export class KupBox {
|
|
|
1900
1774
|
"optional": false,
|
|
1901
1775
|
"docs": {
|
|
1902
1776
|
"tags": [{
|
|
1903
|
-
"
|
|
1904
|
-
"
|
|
1777
|
+
"name": "default",
|
|
1778
|
+
"text": "true"
|
|
1905
1779
|
}],
|
|
1906
1780
|
"text": "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver."
|
|
1907
1781
|
},
|
|
@@ -1921,8 +1795,8 @@ export class KupBox {
|
|
|
1921
1795
|
"optional": false,
|
|
1922
1796
|
"docs": {
|
|
1923
1797
|
"tags": [{
|
|
1924
|
-
"
|
|
1925
|
-
"
|
|
1798
|
+
"name": "default",
|
|
1799
|
+
"text": "undefined"
|
|
1926
1800
|
}],
|
|
1927
1801
|
"text": "If sorting is enabled, specifies which column to sort"
|
|
1928
1802
|
},
|
|
@@ -1941,8 +1815,8 @@ export class KupBox {
|
|
|
1941
1815
|
"optional": false,
|
|
1942
1816
|
"docs": {
|
|
1943
1817
|
"tags": [{
|
|
1944
|
-
"
|
|
1945
|
-
"
|
|
1818
|
+
"name": "default",
|
|
1819
|
+
"text": "false"
|
|
1946
1820
|
}],
|
|
1947
1821
|
"text": "Enable sorting"
|
|
1948
1822
|
},
|
|
@@ -2000,8 +1874,8 @@ export class KupBox {
|
|
|
2000
1874
|
"optional": false,
|
|
2001
1875
|
"docs": {
|
|
2002
1876
|
"tags": [{
|
|
2003
|
-
"
|
|
2004
|
-
"
|
|
1877
|
+
"name": "default",
|
|
1878
|
+
"text": "false"
|
|
2005
1879
|
}],
|
|
2006
1880
|
"text": "Disable swipe"
|
|
2007
1881
|
},
|
|
@@ -2021,8 +1895,8 @@ export class KupBox {
|
|
|
2021
1895
|
"optional": false,
|
|
2022
1896
|
"docs": {
|
|
2023
1897
|
"tags": [{
|
|
2024
|
-
"
|
|
2025
|
-
"
|
|
1898
|
+
"name": "default",
|
|
1899
|
+
"text": "undefined"
|
|
2026
1900
|
}],
|
|
2027
1901
|
"text": "Defines the timeout for tooltip detail"
|
|
2028
1902
|
},
|
|
@@ -2041,8 +1915,8 @@ export class KupBox {
|
|
|
2041
1915
|
"optional": false,
|
|
2042
1916
|
"docs": {
|
|
2043
1917
|
"tags": [{
|
|
2044
|
-
"
|
|
2045
|
-
"
|
|
1918
|
+
"name": "default",
|
|
1919
|
+
"text": "true"
|
|
2046
1920
|
}],
|
|
2047
1921
|
"text": "Enable show tooltip"
|
|
2048
1922
|
},
|
|
@@ -2062,8 +1936,8 @@ export class KupBox {
|
|
|
2062
1936
|
"optional": false,
|
|
2063
1937
|
"docs": {
|
|
2064
1938
|
"tags": [{
|
|
2065
|
-
"
|
|
2066
|
-
"
|
|
1939
|
+
"name": "default",
|
|
1940
|
+
"text": "undefined"
|
|
2067
1941
|
}],
|
|
2068
1942
|
"text": "Defines the timeout for tooltip load"
|
|
2069
1943
|
},
|
|
@@ -2245,8 +2119,8 @@ export class KupBox {
|
|
|
2245
2119
|
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
2246
2120
|
"parameters": [{
|
|
2247
2121
|
"tags": [{
|
|
2248
|
-
"
|
|
2249
|
-
"
|
|
2122
|
+
"name": "param",
|
|
2123
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
2250
2124
|
}],
|
|
2251
2125
|
"text": "- When provided and true, the result will be the list of props with their description."
|
|
2252
2126
|
}],
|
|
@@ -2323,8 +2197,8 @@ export class KupBox {
|
|
|
2323
2197
|
"signature": "(props: GenericObject) => Promise<void>",
|
|
2324
2198
|
"parameters": [{
|
|
2325
2199
|
"tags": [{
|
|
2326
|
-
"
|
|
2327
|
-
"
|
|
2200
|
+
"name": "param",
|
|
2201
|
+
"text": "props - Object containing props that will be set to the component."
|
|
2328
2202
|
}],
|
|
2329
2203
|
"text": "- Object containing props that will be set to the component."
|
|
2330
2204
|
}],
|