Class: ModuleListComponent

La classe diverrà moduleLab

La classe gestisce il motore dell’elaborazione record di uno specifico postType.

Il motore imposta valori di default che possono essere sovrascritt da una configurazione custom attraverso la chiave this.BCD.config.module[‘postType’].list che può essere quindi modificata dalla chiave esterna (proveniente da config_{dominio-cliente}.json) listExternalConfig.

  • All’avvio del componente il sistema (ngOnInit) lancia la funzione MODULE_LIST_list_builder che a sua volta effettua inizializzazione dell’oggetto this.appComponent.BCD.module[this.postType][this.view][this.id] che conterrà tutti i valori di configurazione del motore.
    • mode: 1 [definisce la visualizzazione: list, table, tree, timeline, etc…]

FASE DI MIGRAZIONE

Punti in cui compare la chiamata

Vista principale:
<app-module-list [appComponent]=”this.appComponent” [postType]=”this.appComponent.BCD.liveSession.current.workshop.postType” view=”list”>
A destra per la correlazione:
<app-module-list [appComponent]=”this.appComponent” [postType]=”this.relObj.postType” view=”full” [optionRefinement]=”{post: this.item, for: ‘relateToId’, related: this.relObj, mode: this.formNewEditPostComponent.FORM_NEW_EDIT_POST_get_mode()}”>
Dialog attach
<app-module-list [appComponent]=”this.appComponent” [postType]=”‘attachment'” view=”list” [optionRefinement]=”{mode: ‘attachment’, view: ‘thumbnail’}”>
Dialog attachments
<app-module-list [appComponent]=”this.appComponent” [postType]=”‘attachment'” view=”list” [attachmentsUploadEngine]=”this.options.attachmentsUploadEngine” [optionRefinement]=”{mode: ‘attachments’, view: ‘thumbnail’}”>
LoadUnload
<app-module-list [appComponent]=”this.appComponent” [postType]=”‘thing'” view=”list” [optionRefinement]=”{mode: ‘loadUnload’, view: ‘list’, post: this.item, for: ‘loadUnload’}”>
??? form-post-thumbnail
<app-module-list [appComponent]=”this.appComponent” [postType]=”related.value.postType” view=”full” [optionRefinement]=”{for: ‘relateToAttachments’, related: related.value, mode: ‘uploads’, originalPostType: this.postType}”>
action relate
<app-module-list [appComponent]=”this.appComponent” [postType]=”this.related.postType” view=”full” [optionRefinement]=”{for: ‘relateToIds’, related: this.related, mode: ‘edit’, ids: this.appComponent.BCD.module[this.postType][this.view][this.id].mySelection, originalPostType: this.postType}”>