barsa-develop-components 1.0.396 → 1.0.398
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/esm2020/lib/card-header-kpi/card-header-kpi.component.mjs +11 -6
- package/esm2020/lib/form-report-view/form-report-view.component.mjs +4 -4
- package/esm2020/lib/models/form-report-view-setting.mjs +1 -1
- package/fesm2015/barsa-develop-components.mjs +15 -8
- package/fesm2015/barsa-develop-components.mjs.map +1 -1
- package/fesm2020/barsa-develop-components.mjs +13 -8
- package/fesm2020/barsa-develop-components.mjs.map +1 -1
- package/lib/form-report-view/form-report-view.component.d.ts +1 -0
- package/lib/models/form-report-view-setting.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1833,12 +1833,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
|
1833
1833
|
|
|
1834
1834
|
class CardHeaderKpiComponent extends CardHeaderLogoTitleSubtitleComponent {
|
|
1835
1835
|
ngOnInit() {
|
|
1836
|
-
const parentField = this.parameters.InheritanceInfo
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1836
|
+
const parentField = this.parameters.InheritanceInfo?.ParentFieldName;
|
|
1837
|
+
if (parentField) {
|
|
1838
|
+
const val = this.parameters[parentField];
|
|
1839
|
+
if (val) {
|
|
1840
|
+
Object.keys(val).forEach((c) => {
|
|
1841
|
+
if (!c.startsWith('$') && c !== 'Id') {
|
|
1842
|
+
this.parameters[c] = val[c];
|
|
1843
|
+
}
|
|
1844
|
+
});
|
|
1840
1845
|
}
|
|
1841
|
-
}
|
|
1846
|
+
}
|
|
1842
1847
|
super.ngOnInit();
|
|
1843
1848
|
const parameters = this.parameters;
|
|
1844
1849
|
if (parameters != null) {
|
|
@@ -3341,7 +3346,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
|
3341
3346
|
class FormReportViewComponent extends ReportViewBaseComponent {
|
|
3342
3347
|
ngOnInit() {
|
|
3343
3348
|
super.ngOnInit();
|
|
3344
|
-
const x = BarsaApi.Bw.RunBlMethod('GetSerializeFormSetting', this.typeViewId);
|
|
3349
|
+
const x = BarsaApi.Bw.RunBlMethod('GetSerializeFormSetting', this.parameters?.MetaTypeDefValue.Id || this.typeViewId);
|
|
3345
3350
|
this.formSettingItem = BarsaApi.Ext.decode(x);
|
|
3346
3351
|
}
|
|
3347
3352
|
_trackByRow(index, row) {
|
|
@@ -3349,10 +3354,10 @@ class FormReportViewComponent extends ReportViewBaseComponent {
|
|
|
3349
3354
|
}
|
|
3350
3355
|
}
|
|
3351
3356
|
FormReportViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormReportViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3352
|
-
FormReportViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: FormReportViewComponent, selector: "bdc-form-report-view", viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["containerRef"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"moDataList?.length; else empty\">\n <ng-container *ngFor=\"let mo of moDataList; let index = index; let last = last; trackBy: _trackByRow\">\n <bdc-form-report-view-item\n [setting]=\"viewSetting\"\n [formSetting]=\"formSettingItem\"\n [fieldDict]=\"fieldDict\"\n [typeDefId]=\"typeDefId\"\n [columnsCount]=\"columnsCount\"\n [moDataList]=\"moDataList\"\n [UlvMainCtrlr]=\"UlvMainCtrlr\"\n [index]=\"index\"\n [mo]=\"mo\"\n [rtl]=\"rtl\"\n (editFormPanelSave)=\"onEditFormPanelSave($event)\"\n (editFormPanelCancel)=\"onEditFormPanelCancel(mo)\"\n >\n </bdc-form-report-view-item>\n </ng-container>\n</ng-container>\n\n<ng-template #empty>\n <bsu-no-data></bsu-no-data>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;row-gap:.825rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.NoDataComponent, selector: "bsu-no-data", inputs: ["simple"] }, { kind: "component", type: FormReportViewItemComponent, selector: "bdc-form-report-view-item", inputs: ["mo", "UlvMainCtrlr", "fieldDict"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3357
|
+
FormReportViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: FormReportViewComponent, selector: "bdc-form-report-view", viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["containerRef"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"moDataList?.length; else empty\">\n <ng-container *ngFor=\"let mo of moDataList; let index = index; let last = last; trackBy: _trackByRow\">\n <bdc-form-report-view-item\n [setting]=\"viewSetting\"\n [formSetting]=\"formSettingItem\"\n [fieldDict]=\"fieldDict\"\n [typeDefId]=\"typeDefId\"\n [columnsCount]=\"columnsCount\"\n [allColumns]=\"allColumns\"\n [columns]=\"columns\"\n [moDataList]=\"moDataList\"\n [UlvMainCtrlr]=\"UlvMainCtrlr\"\n [index]=\"index\"\n [mo]=\"mo\"\n [rtl]=\"rtl\"\n (editFormPanelSave)=\"onEditFormPanelSave($event)\"\n (editFormPanelCancel)=\"onEditFormPanelCancel(mo)\"\n >\n </bdc-form-report-view-item>\n </ng-container>\n</ng-container>\n\n<ng-template #empty>\n <bsu-no-data></bsu-no-data>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;row-gap:.825rem;margin-bottom:1rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.NoDataComponent, selector: "bsu-no-data", inputs: ["simple"] }, { kind: "component", type: FormReportViewItemComponent, selector: "bdc-form-report-view-item", inputs: ["mo", "UlvMainCtrlr", "fieldDict"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3353
3358
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormReportViewComponent, decorators: [{
|
|
3354
3359
|
type: Component,
|
|
3355
|
-
args: [{ selector: 'bdc-form-report-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"moDataList?.length; else empty\">\n <ng-container *ngFor=\"let mo of moDataList; let index = index; let last = last; trackBy: _trackByRow\">\n <bdc-form-report-view-item\n [setting]=\"viewSetting\"\n [formSetting]=\"formSettingItem\"\n [fieldDict]=\"fieldDict\"\n [typeDefId]=\"typeDefId\"\n [columnsCount]=\"columnsCount\"\n [moDataList]=\"moDataList\"\n [UlvMainCtrlr]=\"UlvMainCtrlr\"\n [index]=\"index\"\n [mo]=\"mo\"\n [rtl]=\"rtl\"\n (editFormPanelSave)=\"onEditFormPanelSave($event)\"\n (editFormPanelCancel)=\"onEditFormPanelCancel(mo)\"\n >\n </bdc-form-report-view-item>\n </ng-container>\n</ng-container>\n\n<ng-template #empty>\n <bsu-no-data></bsu-no-data>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;row-gap:.825rem}\n"] }]
|
|
3360
|
+
args: [{ selector: 'bdc-form-report-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"moDataList?.length; else empty\">\n <ng-container *ngFor=\"let mo of moDataList; let index = index; let last = last; trackBy: _trackByRow\">\n <bdc-form-report-view-item\n [setting]=\"viewSetting\"\n [formSetting]=\"formSettingItem\"\n [fieldDict]=\"fieldDict\"\n [typeDefId]=\"typeDefId\"\n [columnsCount]=\"columnsCount\"\n [allColumns]=\"allColumns\"\n [columns]=\"columns\"\n [moDataList]=\"moDataList\"\n [UlvMainCtrlr]=\"UlvMainCtrlr\"\n [index]=\"index\"\n [mo]=\"mo\"\n [rtl]=\"rtl\"\n (editFormPanelSave)=\"onEditFormPanelSave($event)\"\n (editFormPanelCancel)=\"onEditFormPanelCancel(mo)\"\n >\n </bdc-form-report-view-item>\n </ng-container>\n</ng-container>\n\n<ng-template #empty>\n <bsu-no-data></bsu-no-data>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;row-gap:.825rem;margin-bottom:1rem}\n"] }]
|
|
3356
3361
|
}], propDecorators: { containerRef: [{
|
|
3357
3362
|
type: ViewChild,
|
|
3358
3363
|
args: ['containerRef', { static: true, read: ViewContainerRef }]
|