@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,6 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h,
|
|
2
|
-
import { k as kupManagerInstance } from './kup-manager-
|
|
3
|
-
import './
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, f as forceUpdate, H as Host } from './index-e0e67c23.js';
|
|
2
|
+
import { k as kupManagerInstance, f as KupDebugCategory } from './kup-manager-7fc234da.js';
|
|
3
|
+
import { g as getProps, s as setProps } from './utils-6c73709d.js';
|
|
4
|
+
import { c as componentWrapperId } from './GenericVariables-6dfdd433.js';
|
|
4
5
|
|
|
5
6
|
const kupDashCss = "#dash{color:var(--kup-text-color);font-size:2vw;display:flex;align-items:center;justify-content:center;position:relative;text-align:center;position:relative;word-break:normal}#dash.with-dyn{cursor:pointer}#dash #content .icon{margin:auto;font-size:90%}#dash #content.layout-1,#dash #content.layout-3{text-align:center}#dash #content.layout-1 .descr,#dash #content.layout-3 .descr{font-size:70%;width:100%}#dash #content.layout-1 .value,#dash #content.layout-3 .value{font-size:220%}#dash #content.layout-2>div{display:flex}#dash #content.layout-2>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-2>div .value-int{font-size:250%}#dash #content.layout-2>div .value-dec,#dash #content.layout-2>div .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-2>div .value-dec{margin-left:2%}#dash #content.layout-2>div .unit{margin-left:4%}#dash #content.layout-4>div{display:grid;grid-template-columns:2fr 5fr}#dash #content.layout-4>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-4>div .value-and-unit{display:flex}#dash #content.layout-4>div .value-and-unit .value-int{font-size:250%}#dash #content.layout-4>div .value-and-unit .value-dec,#dash #content.layout-4>div .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-4>div .value-and-unit .value-dec{margin-left:2%}#dash #content.layout-4>div .value-and-unit .unit{margin-left:4%}#dash #content.layout-4>div .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}#dash #content.layout-5>div,#dash #content.layout-7>div{display:flex}#dash #content.layout-5>div .icon,#dash #content.layout-7>div .icon{font-size:150%;margin:auto;margin-left:10%}#dash #content.layout-5>div .value,#dash #content.layout-7>div .value{font-size:200%}#dash #content.layout-5>div .descr,#dash #content.layout-7>div .descr{text-align:right;font-size:65%;width:100%;min-width:max-content}#dash #content.layout-6>div{display:flex;justify-content:space-between}#dash #content.layout-6>div .icon{font-size:150%;margin-right:10%}#dash #content.layout-6>div .value{font-size:220%;text-align:right}#dash #content.layout-6>div .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}#dash #content.layout-8>div{display:flex;align-items:center}#dash #content.layout-8>div .icon{margin-right:4%;font-size:75%}#dash #content.layout-8>div .value{margin:0 10%;font-size:250%}#dash #content.layout-8>div .descr{font-size:60%;text-align:left}";
|
|
6
7
|
|
|
@@ -83,81 +84,122 @@ let KupDash = class {
|
|
|
83
84
|
};
|
|
84
85
|
KupDash.style = kupDashCss;
|
|
85
86
|
|
|
86
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Props of the kup-grid component.
|
|
89
|
+
* Used to export every prop in an object.
|
|
90
|
+
*/
|
|
91
|
+
var KupGridProps;
|
|
92
|
+
(function (KupGridProps) {
|
|
93
|
+
KupGridProps["columns"] = "The number of columns displayed by the grid, the default behavior is 12.";
|
|
94
|
+
KupGridProps["customStyle"] = "Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization";
|
|
95
|
+
KupGridProps["singleLine"] = "When set to true, forces the content on a single line.";
|
|
96
|
+
})(KupGridProps || (KupGridProps = {}));
|
|
87
97
|
|
|
88
|
-
|
|
98
|
+
const kupGridCss = ":host{--kup_grid_font_size:var(--kup-grid-font-size, var(--kup-font-size));--kup_grid_gap:var(--kup-grid-gap, 24px);--kup_grid_gap_mobile:var(--kup-grid-gap-mobile, 16px);--kup_grid_padding:var(--kup-grid-padding, 24px);font-size:var(--kup_grid_font_size);height:100%;width:100%}#kup-component{height:100%;width:100%}.layout-grid{box-sizing:border-box;margin:0px auto;padding:var(--kup_grid_padding)}.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap);grid-template-columns:repeat(var(--kup_grid_columns, 12), minmax(0px, 1fr))}.layout-grid .layout-grid__inner .layout-grid__cell{box-sizing:border-box;display:flex;justify-content:center;margin:0px;width:auto}.layout-grid__cell--span-1{grid-column-end:span 1}.layout-grid__cell--span-2{grid-column-end:span 2}.layout-grid__cell--span-3{grid-column-end:span 3}.layout-grid__cell--span-4{grid-column-end:span 4}.layout-grid__cell--span-5{grid-column-end:span 5}.layout-grid__cell--span-6{grid-column-end:span 6}.layout-grid__cell--span-7{grid-column-end:span 7}.layout-grid__cell--span-8{grid-column-end:span 8}.layout-grid__cell--span-9{grid-column-end:span 9}.layout-grid__cell--span-10{grid-column-end:span 10}.layout-grid__cell--span-11{grid-column-end:span 11}.layout-grid__cell--span-12{grid-column-end:span 12}.layout-grid__cell--span-13{grid-column-end:span 13}.layout-grid__cell--span-14{grid-column-end:span 14}.layout-grid__cell--span-15{grid-column-end:span 15}.layout-grid__cell--span-16{grid-column-end:span 16}.layout-grid__cell--span-17{grid-column-end:span 17}.layout-grid__cell--span-18{grid-column-end:span 18}.layout-grid__cell--span-19{grid-column-end:span 19}.layout-grid__cell--span-20{grid-column-end:span 20}.layout-grid__cell--span-21{grid-column-end:span 21}.layout-grid__cell--span-22{grid-column-end:span 22}.layout-grid__cell--span-23{grid-column-end:span 23}.layout-grid__cell--span-24{grid-column-end:span 24}.flex-layout,.flex-layout__inner{height:100%;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap}.flex-layout__inner{width:auto}.flex-layout__inner *{display:block;margin:0 1.5em}.flex-layout__inner .flex-layout__cell{display:flex}.flex-layout__inner .flex-layout__cell *{justify-content:center;margin:auto}@media (min-width: 600px) and (max-width: 839px){.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap_mobile);grid-template-columns:repeat(8, minmax(0px, 1fr))}}@media (max-width: 599px){.layout-grid .layout-grid__inner{display:grid;margin:0px;grid-gap:var(--kup_grid_gap_mobile);grid-template-columns:repeat(4, minmax(0px, 1fr))}}:host(.kup-full-width) .flex-layout__inner{width:100%}:host(.kup-full-width) .flex-layout__inner *{margin:auto}";
|
|
99
|
+
|
|
100
|
+
let KupGrid = class {
|
|
89
101
|
constructor(hostRef) {
|
|
90
102
|
registerInstance(this, hostRef);
|
|
103
|
+
/*-------------------------------------------------*/
|
|
104
|
+
/* P r o p s */
|
|
105
|
+
/*-------------------------------------------------*/
|
|
91
106
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* If this is greater than 1, then the horizontal prop will have no effect.
|
|
107
|
+
* The number of columns displayed by the grid, the default behavior is 12.
|
|
108
|
+
* @default 12
|
|
95
109
|
*/
|
|
96
|
-
this.
|
|
110
|
+
this.columns = 12;
|
|
97
111
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* See SCSS file for more details.
|
|
112
|
+
* Custom style of the component.
|
|
113
|
+
* @default ""
|
|
114
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
102
115
|
*/
|
|
103
|
-
this.
|
|
116
|
+
this.customStyle = '';
|
|
104
117
|
/**
|
|
105
|
-
* When true, the
|
|
118
|
+
* When set to true, forces the content on a single line.
|
|
119
|
+
* @default false
|
|
106
120
|
*/
|
|
107
|
-
this.
|
|
121
|
+
this.singleLine = false;
|
|
122
|
+
/*-------------------------------------------------*/
|
|
123
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
124
|
+
/*-------------------------------------------------*/
|
|
108
125
|
/**
|
|
109
|
-
*
|
|
110
|
-
* It does not work when columnsNumber is greater then 1.
|
|
126
|
+
* Instance of the KupManager class.
|
|
111
127
|
*/
|
|
112
|
-
this.
|
|
128
|
+
this.kupManager = kupManagerInstance();
|
|
129
|
+
}
|
|
130
|
+
/*-------------------------------------------------*/
|
|
131
|
+
/* P u b l i c M e t h o d s */
|
|
132
|
+
/*-------------------------------------------------*/
|
|
133
|
+
/**
|
|
134
|
+
* Used to retrieve component's props values.
|
|
135
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
136
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
137
|
+
*/
|
|
138
|
+
async getProps(descriptions) {
|
|
139
|
+
return getProps(this, KupGridProps, descriptions);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* This method is used to trigger a new render of the component.
|
|
143
|
+
*/
|
|
144
|
+
async refresh() {
|
|
145
|
+
forceUpdate(this);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Sets the props to the component.
|
|
149
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
150
|
+
*/
|
|
151
|
+
async setProps(props) {
|
|
152
|
+
setProps(this, KupGridProps, props);
|
|
153
|
+
}
|
|
154
|
+
/*-------------------------------------------------*/
|
|
155
|
+
/* L i f e c y c l e H o o k s */
|
|
156
|
+
/*-------------------------------------------------*/
|
|
157
|
+
componentWillLoad() {
|
|
158
|
+
this.kupManager.debug.logLoad(this, false);
|
|
159
|
+
this.kupManager.theme.register(this);
|
|
160
|
+
}
|
|
161
|
+
componentDidLoad() {
|
|
162
|
+
this.kupManager.debug.logLoad(this, true);
|
|
163
|
+
}
|
|
164
|
+
componentWillRender() {
|
|
165
|
+
this.kupManager.debug.logRender(this, false);
|
|
166
|
+
}
|
|
167
|
+
componentDidRender() {
|
|
168
|
+
this.kupManager.debug.logRender(this, true);
|
|
113
169
|
}
|
|
114
170
|
render() {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (this.horizontal) {
|
|
120
|
-
classLayout = {
|
|
121
|
-
['horizontal']: true,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
//fillspace class
|
|
126
|
-
//let allSpace = null;
|
|
127
|
-
if (this.fillSpace) {
|
|
128
|
-
classLayout = {
|
|
129
|
-
['fill-space']: true,
|
|
130
|
-
};
|
|
171
|
+
const slots = this.rootElement.children;
|
|
172
|
+
if (!slots || slots.length === 0) {
|
|
173
|
+
this.kupManager.debug.logMessage(this, 'Missing slots, not rendering!', KupDebugCategory.WARNING);
|
|
174
|
+
return;
|
|
131
175
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
176
|
+
const content = [];
|
|
177
|
+
for (let i = 0; i < slots.length; i++) {
|
|
178
|
+
let el = null;
|
|
179
|
+
if (this.singleLine) {
|
|
180
|
+
el = h("slot", { name: `${i}` });
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
let span = 1;
|
|
184
|
+
if (slots[i]['span']) {
|
|
185
|
+
span = slots[i]['span'];
|
|
186
|
+
}
|
|
187
|
+
el = (h("div", { class: `layout-grid__cell layout-grid__cell--span-${span}` }, h("slot", { name: `${i}` })));
|
|
188
|
+
}
|
|
189
|
+
content.push(el);
|
|
145
190
|
}
|
|
146
|
-
|
|
147
|
-
this.
|
|
148
|
-
classLayout = {
|
|
149
|
-
['vertical']: true,
|
|
191
|
+
const style = {
|
|
192
|
+
['--kup_grid_columns']: this.columns,
|
|
150
193
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
return (h(Host, { class: classLayout, style: layoutStyle }, h("slot", null)));
|
|
194
|
+
return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: this.singleLine ? 'flex-layout' : 'layout-grid' }, h("div", { class: this.singleLine
|
|
195
|
+
? 'flex-layout__inner'
|
|
196
|
+
: 'layout-grid__inner' }, content)))));
|
|
197
|
+
}
|
|
198
|
+
disconnectedCallback() {
|
|
199
|
+
this.kupManager.theme.unregister(this);
|
|
159
200
|
}
|
|
201
|
+
get rootElement() { return getElement(this); }
|
|
160
202
|
};
|
|
161
|
-
|
|
203
|
+
KupGrid.style = kupGridCss;
|
|
162
204
|
|
|
163
|
-
export { KupDash as kup_dash,
|
|
205
|
+
export { KupDash as kup_dash, KupGrid as kup_grid };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host,
|
|
2
|
-
import { k as kupManagerInstance } from './kup-manager-
|
|
3
|
-
import { g as getProps, s as setProps } from './utils-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-e0e67c23.js';
|
|
2
|
+
import { k as kupManagerInstance } from './kup-manager-7fc234da.js';
|
|
3
|
+
import { g as getProps, s as setProps } from './utils-6c73709d.js';
|
|
4
4
|
import { c as componentWrapperId } from './GenericVariables-6dfdd433.js';
|
|
5
|
-
import './kup-objects-d38d2fa2.js';
|
|
6
5
|
|
|
7
6
|
const drawerClass = 'drawer';
|
|
8
7
|
/**
|
|
@@ -141,8 +140,7 @@ let KupDrawer = class {
|
|
|
141
140
|
this.kupManager.debug.logRender(this, true);
|
|
142
141
|
}
|
|
143
142
|
render() {
|
|
144
|
-
|
|
145
|
-
return (h(Host, { "kup-opened": this.opened }, customStyle ? h("style", null, customStyle) : null, h("div", { class: "backdrop", onPointerDown: () => this.close() }), h("div", { id: componentWrapperId }, h("div", { class: drawerClass }, this.content()))));
|
|
143
|
+
return (h(Host, { "kup-opened": this.opened }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { class: "backdrop", onPointerDown: () => this.close() }), h("div", { id: componentWrapperId }, h("div", { class: drawerClass }, this.content()))));
|
|
146
144
|
}
|
|
147
145
|
disconnectedCallback() {
|
|
148
146
|
this.kupManager.theme.unregister(this);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host,
|
|
2
|
-
import { k as kupManagerInstance,
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-e0e67c23.js';
|
|
2
|
+
import { k as kupManagerInstance, f as KupDebugCategory } from './kup-manager-7fc234da.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-6dfdd433.js';
|
|
4
|
-
import './kup-objects-d38d2fa2.js';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Props of the kup-field component.
|
|
@@ -226,8 +225,7 @@ let KupField = class {
|
|
|
226
225
|
if ((submitIsRight || submitIsBottom) && submit) {
|
|
227
226
|
toRender.push(submit);
|
|
228
227
|
}
|
|
229
|
-
|
|
230
|
-
return (h(Host, null, customStyle ? h("style", null, customStyle) : null, h("div", { id: componentWrapperId, class: wrapperClass }, toRender)));
|
|
228
|
+
return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, class: wrapperClass }, toRender)));
|
|
231
229
|
}
|
|
232
230
|
disconnectedCallback() {
|
|
233
231
|
this.kupManager.theme.unregister(this);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host,
|
|
2
|
-
import { k as kupManagerInstance,
|
|
3
|
-
import { g as getProps, s as setProps } from './utils-
|
|
4
|
-
import './kup-objects-d38d2fa2.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-e0e67c23.js';
|
|
2
|
+
import { k as kupManagerInstance, f as KupDebugCategory } from './kup-manager-7fc234da.js';
|
|
3
|
+
import { g as getProps, s as setProps } from './utils-6c73709d.js';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Props of the kup-iframe component.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host,
|
|
2
|
-
import { k as kupManagerInstance } from './kup-manager-
|
|
3
|
-
import { g as getProps, s as setProps } from './utils-
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-e0e67c23.js';
|
|
2
|
+
import { k as kupManagerInstance } from './kup-manager-7fc234da.js';
|
|
3
|
+
import { g as getProps, s as setProps } from './utils-6c73709d.js';
|
|
4
4
|
import { c as componentWrapperId } from './GenericVariables-6dfdd433.js';
|
|
5
|
-
import './kup-objects-d38d2fa2.js';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Props of the kup-lazy component.
|
|
@@ -193,8 +192,7 @@ let KupLazy = class {
|
|
|
193
192
|
content = resource;
|
|
194
193
|
className += ' kup-to-be-loaded';
|
|
195
194
|
}
|
|
196
|
-
|
|
197
|
-
return (h(Host, { class: className }, customStyle ? h("style", null, customStyle) : null, h("div", { id: componentWrapperId }, content)));
|
|
195
|
+
return (h(Host, { class: className }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, content)));
|
|
198
196
|
}
|
|
199
197
|
disconnectedCallback() {
|
|
200
198
|
this.kupManager.theme.unregister(this);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host,
|
|
2
|
-
import {
|
|
3
|
-
import { k as kupManagerInstance, d as KupLanguageGeneric, a as KupDebugCategory, c as KupThemeColorValues } from './kup-manager-e7d7b353.js';
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-e0e67c23.js';
|
|
2
|
+
import { k as kupManagerInstance, g as KupLanguageGeneric, f as KupDebugCategory, L as kupDropEvent, y as kupDraggableColumnAttr, M as kupDraggableRowAttr, l as KupDropEventTypes, b as KupThemeColorValues } from './kup-manager-7fc234da.js';
|
|
4
3
|
import { F as FButtonStyling } from './f-button-declarations-fd4965d1.js';
|
|
5
|
-
import { F as FImage } from './f-image-
|
|
6
|
-
import { g as getProps, s as setProps } from './utils-
|
|
4
|
+
import { F as FImage } from './f-image-3bc8b24f.js';
|
|
5
|
+
import { g as getProps, s as setProps } from './utils-6c73709d.js';
|
|
7
6
|
import { c as componentWrapperId } from './GenericVariables-6dfdd433.js';
|
|
8
|
-
import './kup-objects-d38d2fa2.js';
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
* Props of the kup-magic-box component.
|
|
@@ -27,7 +25,7 @@ var MagicBoxDisplay;
|
|
|
27
25
|
MagicBoxDisplay["JSON"] = "JSON";
|
|
28
26
|
})(MagicBoxDisplay || (MagicBoxDisplay = {}));
|
|
29
27
|
|
|
30
|
-
const kupMagicBoxCss = "
|
|
28
|
+
const kupMagicBoxCss = ":host{background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:300px;min-width:700px;width:700px}#kup-component,.magic-box-wrapper{height:100%;width:100%}.magic-box-wrapper{border:3px dashed var(--kup-border-color);box-sizing:border-box;display:flex;flex-direction:column}.actions{align-items:center;background-color:var(--kup-title-background-color);display:inline-flex;height:52px;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.actions kup-button{margin:0.5em}.actions #comp-switcher{margin:auto 0}.actions #close-dialog{position:absolute;margin:0;top:0;right:0;background-color:var(--kup-title-background-color)}.content{box-sizing:border-box;height:100%;margin-top:52px;overflow:auto;transition:background-color 125ms ease}.empty{flex-direction:column;display:flex;text-align:center;justify-content:center;height:100%;width:100%;opacity:0.5;transition:opacity 0.25s ease-out}.empty .f-image{margin:0}.json{font-family:var(--kup-font-family-monospace);margin:0}[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}";
|
|
31
29
|
|
|
32
30
|
let KupMagicBox = class {
|
|
33
31
|
constructor(hostRef) {
|
|
@@ -65,6 +63,7 @@ let KupMagicBox = class {
|
|
|
65
63
|
* Element which enables the drag on move feature.
|
|
66
64
|
*/
|
|
67
65
|
this.dragHandler = null;
|
|
66
|
+
this.wrapperRef = null;
|
|
68
67
|
}
|
|
69
68
|
/*-------------------------------------------------*/
|
|
70
69
|
/* P u b l i c M e t h o d s */
|
|
@@ -173,6 +172,7 @@ let KupMagicBox = class {
|
|
|
173
172
|
break;
|
|
174
173
|
case MagicBoxDisplay.DATATABLE:
|
|
175
174
|
props['data'] = this.data;
|
|
175
|
+
props['autoFillMissingCells'] = true;
|
|
176
176
|
content.push(h("kup-data-table", Object.assign({}, props)));
|
|
177
177
|
break;
|
|
178
178
|
case MagicBoxDisplay.JSON:
|
|
@@ -233,10 +233,16 @@ let KupMagicBox = class {
|
|
|
233
233
|
this.kupManager.theme.register(this);
|
|
234
234
|
}
|
|
235
235
|
componentDidLoad() {
|
|
236
|
-
this.rootElement.addEventListener(
|
|
236
|
+
this.rootElement.addEventListener(kupDropEvent, (e) => this.updateData(e));
|
|
237
237
|
this.dragHandler =
|
|
238
238
|
this.rootElement.shadowRoot.querySelector('#drag-handle');
|
|
239
|
-
this.kupManager.
|
|
239
|
+
this.kupManager.interact.dialogify(this.rootElement, this.dragHandler);
|
|
240
|
+
this.kupManager.interact.dropzone(this.wrapperRef, {
|
|
241
|
+
accept: `[${kupDraggableColumnAttr}],[${kupDraggableRowAttr}]`,
|
|
242
|
+
}, {
|
|
243
|
+
dispatcher: this.rootElement,
|
|
244
|
+
type: KupDropEventTypes.MAGICBOX,
|
|
245
|
+
});
|
|
240
246
|
this.kupManager.debug.logLoad(this, true);
|
|
241
247
|
}
|
|
242
248
|
componentWillRender() {
|
|
@@ -246,33 +252,17 @@ let KupMagicBox = class {
|
|
|
246
252
|
this.kupManager.debug.logRender(this, true);
|
|
247
253
|
}
|
|
248
254
|
render() {
|
|
249
|
-
|
|
250
|
-
// Had to define leave and over, otherwise drop wasn't working.
|
|
251
|
-
onDragLeave: () => { },
|
|
252
|
-
onDragOver: () => {
|
|
253
|
-
return true;
|
|
254
|
-
},
|
|
255
|
-
onDrop: () => {
|
|
256
|
-
return KupDataTableRowDragType;
|
|
257
|
-
},
|
|
258
|
-
};
|
|
259
|
-
const customStyle = this.kupManager.theme.setCustomStyle(this.rootElement);
|
|
260
|
-
return (h(Host, null, customStyle ? h("style", null, customStyle) : null, h("div", { id: componentWrapperId }, h("div", Object.assign({ class: "magic-box-wrapper" }, setKetchupDroppable(handlers, [
|
|
261
|
-
KupDataTableRowDragType,
|
|
262
|
-
KupDataTableColumnDragType,
|
|
263
|
-
], this.rootElement, {
|
|
264
|
-
row: null,
|
|
265
|
-
cell: null,
|
|
266
|
-
column: null,
|
|
267
|
-
id: this.rootElement.id,
|
|
268
|
-
})), h("div", { class: "actions", id: "drag-handle" }, h("kup-combobox", Object.assign({}, this.comboboxProps())), h("kup-button", { styling: FButtonStyling.FLAT, icon: "delete", label: "Reset", "onkup-button-click": () => {
|
|
255
|
+
return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: "magic-box-wrapper" }, h("div", { class: "actions", id: "drag-handle" }, h("kup-combobox", Object.assign({}, this.comboboxProps())), h("kup-button", { styling: FButtonStyling.FLAT, icon: "delete", label: "Reset", "onkup-button-click": () => {
|
|
269
256
|
this.data = null;
|
|
270
257
|
} }), h("kup-button", { id: "close-dialog", customStyle: `:host{${KupThemeColorValues.PRIMARY}: var(${KupThemeColorValues.TITLE});}`, icon: "clear", "onkup-button-click": () => {
|
|
271
258
|
this.kupManager.hideMagicBox();
|
|
272
|
-
} })), h("div", { class: "content" }, this.setContent())))));
|
|
259
|
+
} })), h("div", { class: "content", ref: (el) => (this.wrapperRef = el) }, this.setContent())))));
|
|
273
260
|
}
|
|
274
261
|
disconnectedCallback() {
|
|
275
|
-
this.kupManager.
|
|
262
|
+
this.kupManager.interact.unregister([
|
|
263
|
+
this.rootElement,
|
|
264
|
+
this.wrapperRef,
|
|
265
|
+
]);
|
|
276
266
|
this.kupManager.language.unregister(this);
|
|
277
267
|
this.kupManager.theme.unregister(this);
|
|
278
268
|
}
|