@sme.up/ketchup 4.0.0 → 4.2.0-SNAPSHOT
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-1d44a3f0.js +168 -0
- package/dist/cjs/f-button-a5788453.js +105 -0
- package/dist/cjs/f-cell-eba6f39e.js +727 -0
- package/dist/cjs/f-chip-ce69b7d2.js +141 -0
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-e03842eb.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} +1678 -2558
- 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-75f1a2cd.js +5794 -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-b3ec89fe.js} +18 -26
- package/dist/collection/assets/cell.js +51 -0
- package/dist/collection/assets/data-table.js +518 -45
- 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/dialog/kup-card-dialog.js +18 -0
- package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
- package/dist/collection/components/kup-card/kup-card.css +147 -216
- package/dist/collection/components/kup-card/kup-card.js +80 -29
- 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 +3 -1
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.css +127 -3203
- package/dist/collection/components/kup-data-table/kup-data-table.js +568 -1085
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +6 -8
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +77 -106
- 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 +3 -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 +6 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +55 -85
- 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 +158 -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 +467 -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 +76 -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-9a2914fc.js +160 -0
- package/dist/esm/f-button-55a9ed88.js +103 -0
- package/dist/esm/f-cell-ac520cb2.js +723 -0
- package/dist/esm/f-chip-babf1740.js +139 -0
- package/dist/esm/{f-image-68b34fab.js → f-image-70ca9dfe.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} +1451 -2330
- 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-bba32828.js +5781 -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-cfcbe33f.js} +16 -23
- 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-03ae1be9.entry.js +1 -0
- package/dist/ketchup/p-06c209a5.js +1 -0
- package/dist/ketchup/p-1ce9a037.js +1 -0
- package/dist/ketchup/p-1e2c3497.js +1 -0
- package/dist/ketchup/p-40df35de.entry.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-4748be4b.js} +2 -2
- package/dist/ketchup/p-52038ccb.js +1 -0
- package/dist/ketchup/p-5db41fae.entry.js +45 -0
- package/dist/ketchup/p-5faf7715.entry.js +1 -0
- package/dist/ketchup/p-62208488.entry.js +1 -0
- package/dist/ketchup/p-69a705ae.entry.js +1 -0
- package/dist/ketchup/p-6cc8264d.entry.js +1 -0
- package/dist/ketchup/p-74259992.entry.js +1 -0
- package/dist/ketchup/p-756aa8b1.entry.js +1 -0
- package/dist/ketchup/p-a7687c0e.entry.js +27 -0
- package/dist/ketchup/p-cb5f4994.js +1 -0
- package/dist/ketchup/p-d58dbf0e.js +1 -0
- package/dist/ketchup/p-d6ce1ac6.entry.js +1 -0
- package/dist/ketchup/p-daf03877.entry.js +1 -0
- package/dist/ketchup/p-e90934b5.entry.js +1 -0
- package/dist/ketchup/p-ea387b49.entry.js +1 -0
- package/dist/ketchup/p-f6bff949.js +1 -0
- package/dist/ketchup/p-ff7d590e.entry.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/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/kup-card.d.ts +9 -0
- 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 +21 -32
- 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-state.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +32 -81
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +12 -14
- 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 +8 -11
- 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 +346 -174
- 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
|
@@ -675,3 +675,78 @@ export function create14(component) {
|
|
|
675
675
|
: null),
|
|
676
676
|
h("div", { class: "sub-switch" }, switchesIds.includes(KupColumnMenuIds.SWITCH_KEY) ? (h("kup-switch", Object.assign({}, switchArray.find((x) => x.id === KupColumnMenuIds.SWITCH_KEY)))) : null))) : null)));
|
|
677
677
|
}
|
|
678
|
+
/**
|
|
679
|
+
* 15th standard card layout, it can be used as a tooltip.
|
|
680
|
+
* @param {KupCard} component - Card component.
|
|
681
|
+
* @returns {VNode} 15th standard layout virtual node.
|
|
682
|
+
*/
|
|
683
|
+
export function create15(component) {
|
|
684
|
+
const buttonArray = component.data['button']
|
|
685
|
+
? component.data['button']
|
|
686
|
+
: [];
|
|
687
|
+
const imageArray = component.data['image']
|
|
688
|
+
? component.data['image']
|
|
689
|
+
: [];
|
|
690
|
+
const textArray = component.data['text']
|
|
691
|
+
? component.data['text']
|
|
692
|
+
: [];
|
|
693
|
+
const treeArray = component.data['tree']
|
|
694
|
+
? component.data['tree']
|
|
695
|
+
: [];
|
|
696
|
+
// Setting up currently visible view.
|
|
697
|
+
const viewIndex = 1;
|
|
698
|
+
const sectionOneArray = textArray.slice(0, 5);
|
|
699
|
+
// Setting up section 2
|
|
700
|
+
const sectionTwoArray = textArray.slice(5);
|
|
701
|
+
const sectionTwoDetails = [];
|
|
702
|
+
const labels = [];
|
|
703
|
+
const values = [];
|
|
704
|
+
for (let index = 0; index < sectionTwoArray.length; index++) {
|
|
705
|
+
if (index % 2 === 0) {
|
|
706
|
+
labels.push(sectionTwoArray[index]);
|
|
707
|
+
}
|
|
708
|
+
else {
|
|
709
|
+
values.push(sectionTwoArray[index]);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
for (let index = 0; index < labels.length; index++) {
|
|
713
|
+
sectionTwoDetails.push(h("div", { class: "detail-row" },
|
|
714
|
+
h("div", { class: "detail-row__label ellipsis" }, labels[index]),
|
|
715
|
+
h("div", { class: "detail-row__value ellipsis" }, values[index])));
|
|
716
|
+
}
|
|
717
|
+
// Setting up buttons.
|
|
718
|
+
const buttonsIds = [];
|
|
719
|
+
for (let index = 0; index < buttonArray.length; index++) {
|
|
720
|
+
const button = buttonArray[index];
|
|
721
|
+
if (button['id']) {
|
|
722
|
+
buttonsIds.push(button['id']);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
return (h("div", { class: `standard-layout-${component.layoutNumber}` },
|
|
726
|
+
h("div", { class: "section-1" },
|
|
727
|
+
imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" },
|
|
728
|
+
h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))),
|
|
729
|
+
h("div", { class: "sub-1" },
|
|
730
|
+
textArray[0] ? (h("div", { class: "title" },
|
|
731
|
+
h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]),
|
|
732
|
+
buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
733
|
+
KupColumnMenuIds.BUTTON_OPEN_IN_NEW)))) : null,
|
|
734
|
+
buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
735
|
+
KupColumnMenuIds.BUTTON_SEARCH)))) : null)) : null,
|
|
736
|
+
sectionOneArray[1] && sectionOneArray[2] ? (h("div", { class: "info" },
|
|
737
|
+
h("span", { class: "label" }, sectionOneArray[1]),
|
|
738
|
+
h("span", { class: "value" }, sectionOneArray[2]))) : null,
|
|
739
|
+
sectionOneArray[3] && sectionOneArray[4] ? (h("div", { class: "info" },
|
|
740
|
+
h("span", { class: "label" }, sectionOneArray[3]),
|
|
741
|
+
h("span", { class: "value" }, sectionOneArray[4]))) : null)),
|
|
742
|
+
h("div", { class: "section-2" },
|
|
743
|
+
h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${KupCardCSSClasses.VISIBLE}` },
|
|
744
|
+
h("div", { class: "info" }, sectionTwoDetails.length > 0
|
|
745
|
+
? sectionTwoDetails
|
|
746
|
+
: null)),
|
|
747
|
+
h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex + 1}` },
|
|
748
|
+
h("kup-tree", Object.assign({ class: "kup-full-width" }, treeArray[0])))),
|
|
749
|
+
buttonArray.length > 0 ? (h("div", { class: "section-3" },
|
|
750
|
+
compList(buttonArray.slice(0, 4), 'button'),
|
|
751
|
+
h("kup-button", { id: "view-selector", icon: "menu" }))) : null));
|
|
752
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props of the kup-cell component.
|
|
3
|
+
* Used to export every prop in an object.
|
|
4
|
+
*/
|
|
5
|
+
export var KupCellProps;
|
|
6
|
+
(function (KupCellProps) {
|
|
7
|
+
KupCellProps["customStyle"] = "Custom style of the component.";
|
|
8
|
+
KupCellProps["data"] = "The data of the cell.";
|
|
9
|
+
KupCellProps["density"] = "The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.";
|
|
10
|
+
KupCellProps["dragEnabled"] = "When set to true, the component is draggable.";
|
|
11
|
+
})(KupCellProps || (KupCellProps = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --kup-cell-background: Sets the background of the cell.
|
|
3
|
+
* @prop --kup-cell-font-family: Sets the font family of the cell.
|
|
4
|
+
* @prop --kup-cell-font-family-monospace: Sets the monospace font family of the cell (for numbers).
|
|
5
|
+
* @prop --kup-cell-font-size: Sets the font size of the cell.
|
|
6
|
+
* @prop --kup-cell-text-color: Sets the text color of the cell.
|
|
7
|
+
*
|
|
8
|
+
* NOTE: These variables are defined in the "kup-theme.css" file, because they must work even without the kup component (it's a functional component)
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
:host {
|
|
12
|
+
display: block;
|
|
13
|
+
height: 100%;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#kup-component {
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { Component, Element, forceUpdate, h, Host, Method, Prop, } from '@stencil/core';
|
|
2
|
+
import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
|
|
3
|
+
import { getProps, setProps } from '../../utils/utils';
|
|
4
|
+
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
5
|
+
import { KupCellProps } from './kup-cell-declarations';
|
|
6
|
+
import { FCell } from '../../f-components/f-cell/f-cell';
|
|
7
|
+
import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
|
|
8
|
+
import { KupDragEffect, } from '../../utils/kup-interact/kup-interact-declarations';
|
|
9
|
+
import { KupLanguageGeneric } from '../../utils/kup-language/kup-language-declarations';
|
|
10
|
+
export class KupCell {
|
|
11
|
+
constructor() {
|
|
12
|
+
/*-------------------------------------------------*/
|
|
13
|
+
/* P r o p s */
|
|
14
|
+
/*-------------------------------------------------*/
|
|
15
|
+
/**
|
|
16
|
+
* Custom style of the component.
|
|
17
|
+
* @default ""
|
|
18
|
+
* @see https://ketchup.smeup.com/ketchup-showcase/#/customization
|
|
19
|
+
*/
|
|
20
|
+
this.customStyle = '';
|
|
21
|
+
/**
|
|
22
|
+
* The data of the cell.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
this.data = null;
|
|
26
|
+
/**
|
|
27
|
+
* The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.
|
|
28
|
+
*/
|
|
29
|
+
this.density = FCellPadding.NONE;
|
|
30
|
+
/**
|
|
31
|
+
* When set to true, the component is draggable.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
this.dragEnabled = false;
|
|
35
|
+
/*-------------------------------------------------*/
|
|
36
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
37
|
+
/*-------------------------------------------------*/
|
|
38
|
+
/**
|
|
39
|
+
* Instance of the KupManager class.
|
|
40
|
+
*/
|
|
41
|
+
this.kupManager = kupManagerInstance();
|
|
42
|
+
}
|
|
43
|
+
/*-------------------------------------------------*/
|
|
44
|
+
/* P u b l i c M e t h o d s */
|
|
45
|
+
/*-------------------------------------------------*/
|
|
46
|
+
/**
|
|
47
|
+
* Adds the given CSS classes to the cell's data.
|
|
48
|
+
* @param {string[]} classes - Array of CSS classes.
|
|
49
|
+
*/
|
|
50
|
+
async addCssClasses(classes) {
|
|
51
|
+
if (!this.data.cssClass) {
|
|
52
|
+
this.data.cssClass = '';
|
|
53
|
+
}
|
|
54
|
+
if (classes) {
|
|
55
|
+
for (let index = 0; index < classes.length; index++) {
|
|
56
|
+
const cssClass = classes[index];
|
|
57
|
+
if (this.data.cssClass.indexOf(cssClass) < 0) {
|
|
58
|
+
this.data.cssClass += ` ${cssClass}`;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
this.refresh();
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Used to retrieve component's props values.
|
|
66
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
67
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
68
|
+
*/
|
|
69
|
+
async getProps(descriptions) {
|
|
70
|
+
return getProps(this, KupCellProps, descriptions);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* This method is used to trigger a new render of the component.
|
|
74
|
+
*/
|
|
75
|
+
async refresh() {
|
|
76
|
+
forceUpdate(this);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Removes the given CSS classes from the cell's data.
|
|
80
|
+
* @param {string[]} classes - Array of CSS classes.
|
|
81
|
+
*/
|
|
82
|
+
async removeCssClasses(classes) {
|
|
83
|
+
if (!this.data.cssClass) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (classes) {
|
|
87
|
+
for (let index = 0; index < classes.length; index++) {
|
|
88
|
+
const cssClass = classes[index];
|
|
89
|
+
if (this.data.cssClass.indexOf(cssClass) > 0) {
|
|
90
|
+
this.data.cssClass = this.data.cssClass.replace(new RegExp(cssClass, 'g'), '');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
this.refresh();
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Sets the props to the component.
|
|
98
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
99
|
+
*/
|
|
100
|
+
async setProps(props) {
|
|
101
|
+
setProps(this, KupCellProps, props);
|
|
102
|
+
}
|
|
103
|
+
/*-------------------------------------------------*/
|
|
104
|
+
/* P r i v a t e M e t h o d s */
|
|
105
|
+
/*-------------------------------------------------*/
|
|
106
|
+
didRenderInteractables() {
|
|
107
|
+
if (this.dragEnabled) {
|
|
108
|
+
const dataCb = () => {
|
|
109
|
+
return {
|
|
110
|
+
cell: this.data,
|
|
111
|
+
column: this.generateColumn(),
|
|
112
|
+
id: this.rootElement.id,
|
|
113
|
+
multiple: false,
|
|
114
|
+
row: this.generateRow(),
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
this.kupManager.interact.draggable(this.rootElement.shadowRoot.querySelector('#' + componentWrapperId), {
|
|
118
|
+
cursorChecker() {
|
|
119
|
+
return null;
|
|
120
|
+
},
|
|
121
|
+
}, {
|
|
122
|
+
callback: dataCb,
|
|
123
|
+
}, KupDragEffect.BADGE);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
generateColumn() {
|
|
127
|
+
const colname = this.data && this.data.obj && this.data.obj.t
|
|
128
|
+
? this.data.obj.t + '|' + this.data.obj.p
|
|
129
|
+
: 'KUPCELL';
|
|
130
|
+
const coltitle = this.data && this.data.obj && this.data.obj.t
|
|
131
|
+
? this.data.obj.t + '|' + this.data.obj.p
|
|
132
|
+
: this.kupManager.language.translate(KupLanguageGeneric.EMPTY_OBJECT);
|
|
133
|
+
return {
|
|
134
|
+
name: colname,
|
|
135
|
+
title: coltitle,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
generateRow() {
|
|
139
|
+
const col = this.generateColumn();
|
|
140
|
+
const row = { cells: {} };
|
|
141
|
+
row.cells[col.name] = this.data;
|
|
142
|
+
return row;
|
|
143
|
+
}
|
|
144
|
+
/*-------------------------------------------------*/
|
|
145
|
+
/* L i f e c y c l e H o o k s */
|
|
146
|
+
/*-------------------------------------------------*/
|
|
147
|
+
componentWillLoad() {
|
|
148
|
+
this.kupManager.debug.logLoad(this, false);
|
|
149
|
+
this.kupManager.language.register(this);
|
|
150
|
+
this.kupManager.theme.register(this);
|
|
151
|
+
}
|
|
152
|
+
componentDidLoad() {
|
|
153
|
+
this.kupManager.debug.logLoad(this, true);
|
|
154
|
+
}
|
|
155
|
+
componentWillRender() {
|
|
156
|
+
this.kupManager.debug.logRender(this, false);
|
|
157
|
+
}
|
|
158
|
+
componentDidRender() {
|
|
159
|
+
this.didRenderInteractables();
|
|
160
|
+
this.kupManager.debug.logRender(this, true);
|
|
161
|
+
}
|
|
162
|
+
disconnectedCallback() {
|
|
163
|
+
this.kupManager.language.unregister(this);
|
|
164
|
+
this.kupManager.theme.unregister(this);
|
|
165
|
+
}
|
|
166
|
+
render() {
|
|
167
|
+
const props = {
|
|
168
|
+
cell: this.data,
|
|
169
|
+
column: this.generateColumn(),
|
|
170
|
+
component: this,
|
|
171
|
+
density: this.density,
|
|
172
|
+
editable: this.data.isEditable,
|
|
173
|
+
renderKup: true,
|
|
174
|
+
row: this.generateRow(),
|
|
175
|
+
};
|
|
176
|
+
return (h(Host, null,
|
|
177
|
+
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
178
|
+
h("div", { id: componentWrapperId },
|
|
179
|
+
h(FCell, Object.assign({}, props)))));
|
|
180
|
+
}
|
|
181
|
+
static get is() { return "kup-cell"; }
|
|
182
|
+
static get encapsulation() { return "shadow"; }
|
|
183
|
+
static get originalStyleUrls() { return {
|
|
184
|
+
"$": ["kup-cell.scss"]
|
|
185
|
+
}; }
|
|
186
|
+
static get styleUrls() { return {
|
|
187
|
+
"$": ["kup-cell.css"]
|
|
188
|
+
}; }
|
|
189
|
+
static get properties() { return {
|
|
190
|
+
"customStyle": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "string",
|
|
195
|
+
"resolved": "string",
|
|
196
|
+
"references": {}
|
|
197
|
+
},
|
|
198
|
+
"required": false,
|
|
199
|
+
"optional": false,
|
|
200
|
+
"docs": {
|
|
201
|
+
"tags": [{
|
|
202
|
+
"name": "default",
|
|
203
|
+
"text": "\"\""
|
|
204
|
+
}, {
|
|
205
|
+
"name": "see",
|
|
206
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
207
|
+
}],
|
|
208
|
+
"text": "Custom style of the component."
|
|
209
|
+
},
|
|
210
|
+
"attribute": "custom-style",
|
|
211
|
+
"reflect": false,
|
|
212
|
+
"defaultValue": "''"
|
|
213
|
+
},
|
|
214
|
+
"data": {
|
|
215
|
+
"type": "unknown",
|
|
216
|
+
"mutable": false,
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "Cell",
|
|
219
|
+
"resolved": "Cell",
|
|
220
|
+
"references": {
|
|
221
|
+
"Cell": {
|
|
222
|
+
"location": "import",
|
|
223
|
+
"path": "../kup-data-table/kup-data-table-declarations"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"required": false,
|
|
228
|
+
"optional": false,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [{
|
|
231
|
+
"name": "default",
|
|
232
|
+
"text": "false"
|
|
233
|
+
}],
|
|
234
|
+
"text": "The data of the cell."
|
|
235
|
+
},
|
|
236
|
+
"defaultValue": "null"
|
|
237
|
+
},
|
|
238
|
+
"density": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "FCellPadding",
|
|
243
|
+
"resolved": "FCellPadding.DENSE | FCellPadding.MEDIUM | FCellPadding.NONE | FCellPadding.WIDE",
|
|
244
|
+
"references": {
|
|
245
|
+
"FCellPadding": {
|
|
246
|
+
"location": "import",
|
|
247
|
+
"path": "../../f-components/f-cell/f-cell-declarations"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"required": false,
|
|
252
|
+
"optional": false,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": "The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'."
|
|
256
|
+
},
|
|
257
|
+
"attribute": "density",
|
|
258
|
+
"reflect": false,
|
|
259
|
+
"defaultValue": "FCellPadding.NONE"
|
|
260
|
+
},
|
|
261
|
+
"dragEnabled": {
|
|
262
|
+
"type": "boolean",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "boolean",
|
|
266
|
+
"resolved": "boolean",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [{
|
|
273
|
+
"name": "default",
|
|
274
|
+
"text": "false"
|
|
275
|
+
}],
|
|
276
|
+
"text": "When set to true, the component is draggable."
|
|
277
|
+
},
|
|
278
|
+
"attribute": "drag-enabled",
|
|
279
|
+
"reflect": false,
|
|
280
|
+
"defaultValue": "false"
|
|
281
|
+
}
|
|
282
|
+
}; }
|
|
283
|
+
static get methods() { return {
|
|
284
|
+
"addCssClasses": {
|
|
285
|
+
"complexType": {
|
|
286
|
+
"signature": "(classes?: string[]) => Promise<void>",
|
|
287
|
+
"parameters": [{
|
|
288
|
+
"tags": [{
|
|
289
|
+
"name": "param",
|
|
290
|
+
"text": "classes - Array of CSS classes."
|
|
291
|
+
}],
|
|
292
|
+
"text": "- Array of CSS classes."
|
|
293
|
+
}],
|
|
294
|
+
"references": {
|
|
295
|
+
"Promise": {
|
|
296
|
+
"location": "global"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"return": "Promise<void>"
|
|
300
|
+
},
|
|
301
|
+
"docs": {
|
|
302
|
+
"text": "Adds the given CSS classes to the cell's data.",
|
|
303
|
+
"tags": [{
|
|
304
|
+
"name": "param",
|
|
305
|
+
"text": "classes - Array of CSS classes."
|
|
306
|
+
}]
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"getProps": {
|
|
310
|
+
"complexType": {
|
|
311
|
+
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
312
|
+
"parameters": [{
|
|
313
|
+
"tags": [{
|
|
314
|
+
"name": "param",
|
|
315
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
316
|
+
}],
|
|
317
|
+
"text": "- When provided and true, the result will be the list of props with their description."
|
|
318
|
+
}],
|
|
319
|
+
"references": {
|
|
320
|
+
"Promise": {
|
|
321
|
+
"location": "global"
|
|
322
|
+
},
|
|
323
|
+
"GenericObject": {
|
|
324
|
+
"location": "import",
|
|
325
|
+
"path": "../../types/GenericTypes"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"return": "Promise<GenericObject>"
|
|
329
|
+
},
|
|
330
|
+
"docs": {
|
|
331
|
+
"text": "Used to retrieve component's props values.",
|
|
332
|
+
"tags": [{
|
|
333
|
+
"name": "param",
|
|
334
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
335
|
+
}, {
|
|
336
|
+
"name": "returns",
|
|
337
|
+
"text": "List of props as object, each key will be a prop."
|
|
338
|
+
}]
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"refresh": {
|
|
342
|
+
"complexType": {
|
|
343
|
+
"signature": "() => Promise<void>",
|
|
344
|
+
"parameters": [],
|
|
345
|
+
"references": {
|
|
346
|
+
"Promise": {
|
|
347
|
+
"location": "global"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"return": "Promise<void>"
|
|
351
|
+
},
|
|
352
|
+
"docs": {
|
|
353
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
354
|
+
"tags": []
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"removeCssClasses": {
|
|
358
|
+
"complexType": {
|
|
359
|
+
"signature": "(classes?: string[]) => Promise<void>",
|
|
360
|
+
"parameters": [{
|
|
361
|
+
"tags": [{
|
|
362
|
+
"name": "param",
|
|
363
|
+
"text": "classes - Array of CSS classes."
|
|
364
|
+
}],
|
|
365
|
+
"text": "- Array of CSS classes."
|
|
366
|
+
}],
|
|
367
|
+
"references": {
|
|
368
|
+
"Promise": {
|
|
369
|
+
"location": "global"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"return": "Promise<void>"
|
|
373
|
+
},
|
|
374
|
+
"docs": {
|
|
375
|
+
"text": "Removes the given CSS classes from the cell's data.",
|
|
376
|
+
"tags": [{
|
|
377
|
+
"name": "param",
|
|
378
|
+
"text": "classes - Array of CSS classes."
|
|
379
|
+
}]
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"setProps": {
|
|
383
|
+
"complexType": {
|
|
384
|
+
"signature": "(props: GenericObject) => Promise<void>",
|
|
385
|
+
"parameters": [{
|
|
386
|
+
"tags": [{
|
|
387
|
+
"name": "param",
|
|
388
|
+
"text": "props - Object containing props that will be set to the component."
|
|
389
|
+
}],
|
|
390
|
+
"text": "- Object containing props that will be set to the component."
|
|
391
|
+
}],
|
|
392
|
+
"references": {
|
|
393
|
+
"Promise": {
|
|
394
|
+
"location": "global"
|
|
395
|
+
},
|
|
396
|
+
"GenericObject": {
|
|
397
|
+
"location": "import",
|
|
398
|
+
"path": "../../types/GenericTypes"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"return": "Promise<void>"
|
|
402
|
+
},
|
|
403
|
+
"docs": {
|
|
404
|
+
"text": "Sets the props to the component.",
|
|
405
|
+
"tags": [{
|
|
406
|
+
"name": "param",
|
|
407
|
+
"text": "props - Object containing props that will be set to the component."
|
|
408
|
+
}]
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}; }
|
|
412
|
+
static get elementRef() { return "rootElement"; }
|
|
413
|
+
}
|