diff --git a/src/boot/kdk.js b/src/boot/kdk.js index 78c76518..c2ac91f2 100644 --- a/src/boot/kdk.js +++ b/src/boot/kdk.js @@ -62,14 +62,24 @@ export default async ({ app }) => { app.component('KStamp', await kdkCoreUtils.loadComponent('frame/KStamp')) app.component('KPanel', await kdkCoreUtils.loadComponent('frame/KPanel')) app.component('KSpot', await kdkCoreUtils.loadComponent('frame/KSpot')) + app.component('KTextArea', await kdkCoreUtils.loadComponent('frame/KTextArea')) + app.component('KChipsPane', await kdkCoreUtils.loadComponent('frame/KChipsPane')) + app.component('KAvatar', await kdkCoreUtils.loadComponent('frame/KAvatar')) + app.component('KUploader', await kdkCoreUtils.loadComponent('input/KUploader')) app.component('KModal', await kdkCoreUtils.loadComponent('frame/KModal')) app.component('KForm', await kdkCoreUtils.loadComponent('form/KForm')) + app.component('KList', await kdkCoreUtils.loadComponent('collection/Klist')) app.component('KGrid', await kdkCoreUtils.loadComponent('collection/KGrid')) + app.component('KBoard', await kdkCoreUtils.loadComponent('collection/KBoard')) + app.component('KHistory', await kdkCoreUtils.loadComponent('collection/KHistory')) + app.component('KItem', await kdkCoreUtils.loadComponent('collection/KItem')) app.component('KCard', await kdkCoreUtils.loadComponent('collection/KCard')) app.component('KCardSection', await kdkCoreUtils.loadComponent('collection/KCardSection')) + app.component('KMediaBrowser', await kdkCoreUtils.loadComponent('media/KMediaBrowser')) + app.component('KStatisticsChart', await kdkCoreUtils.loadComponent('chart/KStatisticsChart')) app.component('KLocationMap', await kdkCoreUtils.loadComponent('KLocationMap')) - app.component('KList', await kdkCoreUtils.loadComponent('collection/KList')) - app.component('KItem', await kdkCoreUtils.loadComponent('collection/KItem')) + app.component('KLayersPanel', await kdkCoreUtils.loadComponent('KLayersPanel')) + app.component('KColorLegend', await kdkCoreUtils.loadComponent('KColorLegend')) app.component('KPage', await kdkCoreUtils.loadComponent('layout/KPage')) // Register global properties diff --git a/src/components/AlertForm.vue b/src/components/AlertForm.vue index b1be9def..59271188 100644 --- a/src/components/AlertForm.vue +++ b/src/components/AlertForm.vue @@ -50,7 +50,7 @@ - + @@ -357,7 +357,7 @@ export default { }, async created () { // Load the required components - this.$options.components['k-item-field'] = this.$load('form/KItemField') + this.$options.components['KItem-field'] = this.$load('form/KItemField') this.$options.components['k-toggle-field'] = this.$load('form/KToggleField') await this.build() diff --git a/src/components/ArchivedEventCard.vue b/src/components/ArchivedEventCard.vue index fbfbda7e..cb36b45f 100644 --- a/src/components/ArchivedEventCard.vue +++ b/src/components/ArchivedEventCard.vue @@ -15,7 +15,7 @@ --> - - + - + - - - + + - - - - + + + - {{ $t('ArchivedEventCard.NO_PARTICIPANTS_LABEL')}} - + - - + - @@ -93,7 +93,7 @@ {{ $t('ArchivedEventCard.UPDATED_AT_LABEL') }} {{ updatedAt.toLocaleString() }} - + @@ -247,18 +247,6 @@ export default { } } }, - beforeCreate () { - // Load the required components - this.$options.components['k-stamp'] = this.$load('frame/KStamp') - this.$options.components['k-card'] = this.$load('collection/KCard') - this.$options.components['k-card-section'] = this.$load('collection/KCardSection') - this.$options.components['k-panel'] = this.$load('frame/KPanel') - this.$options.components['k-modal'] = this.$load('frame/KModal') - this.$options.components['k-text-area'] = this.$load('frame/KTextArea') - this.$options.components['k-chips-pane'] = this.$load('frame/KChipsPane') - this.$options.components['k-media-browser'] = this.$load('media/KMediaBrowser') - this.$options.components['k-location-map'] = this.$load('KLocationMap') - }, created () { // Required alias for the event logs mixin this.event = this.item diff --git a/src/components/ArchivedEventsActivity.vue b/src/components/ArchivedEventsActivity.vue index 9a739195..04aaeb6c 100644 --- a/src/components/ArchivedEventsActivity.vue +++ b/src/components/ArchivedEventsActivity.vue @@ -1,5 +1,5 @@ - + @@ -16,7 +16,7 @@ Events history: switch append-items on to activate infinite scroll --> - - + - + - + - - + - + diff --git a/src/components/ArchivedPlansActivity.vue b/src/components/ArchivedPlansActivity.vue index 0371f2b0..bda0214a 100644 --- a/src/components/ArchivedPlansActivity.vue +++ b/src/components/ArchivedPlansActivity.vue @@ -1,11 +1,11 @@ - + - - + - + - + diff --git a/src/components/EventTemplatesActivity.vue b/src/components/EventTemplatesActivity.vue index 88aba124..434841e6 100644 --- a/src/components/EventTemplatesActivity.vue +++ b/src/components/EventTemplatesActivity.vue @@ -1,5 +1,5 @@ - + - + diff --git a/src/components/EventsActivity.vue b/src/components/EventsActivity.vue index e430065a..991b4d8a 100644 --- a/src/components/EventsActivity.vue +++ b/src/components/EventsActivity.vue @@ -1,10 +1,10 @@ - + - - + - - + + :height="height" + /> - + diff --git a/src/components/PlanObjectiveItem.vue b/src/components/PlanObjectiveItem.vue index 7b8ab75f..89f209c3 100644 --- a/src/components/PlanObjectiveItem.vue +++ b/src/components/PlanObjectiveItem.vue @@ -5,7 +5,7 @@ - + @@ -14,10 +14,6 @@ import { mixins } from '@kalisio/kdk/core.client' export default { name: 'plan-objective-item', - mixins: [mixins.baseItem], - created () { - // Loads the required components - this.$options.components['k-panel'] = this.$load('frame/KPanel') - } + mixins: [mixins.baseItem] } diff --git a/src/components/PlanObjectivesEditor.vue b/src/components/PlanObjectivesEditor.vue index fd887bc9..18d3491f 100644 --- a/src/components/PlanObjectivesEditor.vue +++ b/src/components/PlanObjectivesEditor.vue @@ -226,13 +226,6 @@ export default { await this.updatePlanObjectives(objectives) } }, - beforeCreate () { - // Load the required components - this.$options.components['k-modal'] = this.$load('frame/KModal') - this.$options.components['k-panel'] = this.$load('frame/KPanel') - this.$options.components['k-list'] = this.$load('collection/KList') - this.$options.components['k-form'] = this.$load('form/KForm') - }, async created () { await this.loadObject() // Extract objectives as we will map it using an in-memory service diff --git a/src/components/PlanTemplateCard.vue b/src/components/PlanTemplateCard.vue index 495d6608..9625f6d7 100644 --- a/src/components/PlanTemplateCard.vue +++ b/src/components/PlanTemplateCard.vue @@ -1,5 +1,5 @@ - @@ -8,7 +8,7 @@ --> - @@ -18,9 +18,9 @@ {{ $t('PlanTemplateCard.NO_OBJECTIVES_LABEL')}} - + - @@ -33,16 +33,16 @@ {{ $t('PlanTemplateCard.NO_COORDINATORS_LABEL')}} - + - - + - + diff --git a/src/components/PlanTemplatesActivity.vue b/src/components/PlanTemplatesActivity.vue index 88b7027a..1f6db6a5 100644 --- a/src/components/PlanTemplatesActivity.vue +++ b/src/components/PlanTemplatesActivity.vue @@ -1,10 +1,10 @@ - + - - + - + - + diff --git a/src/components/PlansActivity.vue b/src/components/PlansActivity.vue index aa3646f7..7139f8cc 100644 --- a/src/components/PlansActivity.vue +++ b/src/components/PlansActivity.vue @@ -1,10 +1,10 @@ - + - - + - + - +