ngx-render-material-forms 1.6.2 → 1.6.4
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/components/common.service.mjs +5 -1
- package/esm2020/lib/components/datagrid/datagrid.component.mjs +35 -18
- package/esm2020/lib/components/select/select.component.mjs +24 -35
- package/fesm2015/ngx-render-material-forms.js +56 -45
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +53 -44
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/common.service.d.ts +1 -0
- package/lib/components/datagrid/datagrid.component.d.ts +5 -1
- package/lib/components/select/select.component.d.ts +1 -1
- package/package.json +11 -11
|
@@ -27,7 +27,7 @@ import * as i4 from '@angular/material/card';
|
|
|
27
27
|
import { MatCardModule } from '@angular/material/card';
|
|
28
28
|
import * as i2$2 from '@angular/material/tabs';
|
|
29
29
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
30
|
-
import * as
|
|
30
|
+
import * as i5$3 from '@angular/material/table';
|
|
31
31
|
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
32
32
|
import * as i5$2 from '@angular/material/datepicker';
|
|
33
33
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
@@ -89,7 +89,7 @@ import * as i10 from 'ngx-mat-select-search';
|
|
|
89
89
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
90
90
|
import WellComponent from 'formiojs/components/well/Well.js';
|
|
91
91
|
import DataGridComponent from 'formiojs/components/datagrid/DataGrid.js';
|
|
92
|
-
import * as
|
|
92
|
+
import * as i9 from '@angular/cdk/drag-drop';
|
|
93
93
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
94
94
|
import EditGridComponent from 'formiojs/components/editgrid/EditGrid.js';
|
|
95
95
|
import Components$2 from 'formiojs/components/Components';
|
|
@@ -2637,6 +2637,10 @@ class CommonService {
|
|
|
2637
2637
|
getDropDownFlag() {
|
|
2638
2638
|
return this.setFlag.getValue();
|
|
2639
2639
|
}
|
|
2640
|
+
checkIsAttributeTrue(newProductPickerFlag, attributeName) {
|
|
2641
|
+
return newProductPickerFlag && Object.keys(newProductPickerFlag).some(key => key.toLocaleLowerCase() === attributeName.toLowerCase() &&
|
|
2642
|
+
newProductPickerFlag[key].toLowerCase() === "true");
|
|
2643
|
+
}
|
|
2640
2644
|
}
|
|
2641
2645
|
CommonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: CommonService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2642
2646
|
CommonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: CommonService, providedIn: 'root' });
|
|
@@ -2668,6 +2672,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2668
2672
|
this.searching = false;
|
|
2669
2673
|
this.productList = [];
|
|
2670
2674
|
this.selectedValue = '';
|
|
2675
|
+
this.searchItem = "";
|
|
2671
2676
|
// Variable to hold the reference to the current panel element
|
|
2672
2677
|
this.currentPanelElement = null;
|
|
2673
2678
|
this.openCounter = 1;
|
|
@@ -2688,6 +2693,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2688
2693
|
clearProducts() {
|
|
2689
2694
|
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2690
2695
|
this.onClearAll();
|
|
2696
|
+
this.searchItem = "";
|
|
2691
2697
|
}
|
|
2692
2698
|
}
|
|
2693
2699
|
scrumble(msg) {
|
|
@@ -2896,9 +2902,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2896
2902
|
// If the object doesn't exist, add it to the array
|
|
2897
2903
|
finalParams.push({ key: 'dataValue', value: value });
|
|
2898
2904
|
}
|
|
2899
|
-
console.log('360=>', apiEndPoint, finalParams);
|
|
2900
2905
|
this.commonService.initializeApiPath(apiEndPoint, finalParams).subscribe(response => {
|
|
2901
|
-
console.log('response361=>', response);
|
|
2902
2906
|
if (response && response.code === 200) {
|
|
2903
2907
|
this.secondDropdownItems = response.data;
|
|
2904
2908
|
this.commonService.setDropdownItems(this.secondDropdownItems);
|
|
@@ -2907,30 +2911,19 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2907
2911
|
}
|
|
2908
2912
|
}
|
|
2909
2913
|
ngAfterViewInit() {
|
|
2910
|
-
let i = 0;
|
|
2911
|
-
// console.log('this.instance=>', this.instance)
|
|
2912
|
-
// const newProductPickerFlag = this.instance?.component?.attributes;
|
|
2913
|
-
// let checkInvokeFromLibrary = this.checkIsAttributeTrue(newProductPickerFlag, "invokeFromLibrary")
|
|
2914
|
-
// const firstLevel = (this.getVendorRefList(this.instance) && checkInvokeFromLibrary);
|
|
2915
|
-
// if (firstLevel) {
|
|
2916
|
-
// this.selectElem.valueChange.subscribe(res => {
|
|
2917
|
-
// this.commonService.setDropDownFlag(true);
|
|
2918
|
-
// console.log('376=>', res)
|
|
2919
|
-
// this.updateSecondDropdown(res);
|
|
2920
|
-
// });
|
|
2921
|
-
// }
|
|
2922
2914
|
this.selectElem.openedChange.subscribe((isOpen) => __awaiter(this, void 0, void 0, function* () {
|
|
2923
2915
|
var _a, _b, _c;
|
|
2916
|
+
let i = 0;
|
|
2924
2917
|
if (isOpen) {
|
|
2925
|
-
console.log('this.instance=>', this.instance);
|
|
2926
2918
|
const newProductPickerFlag = (_b = (_a = this.instance) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.attributes;
|
|
2927
|
-
let checkInvokeFromLibrary = this.checkIsAttributeTrue(newProductPickerFlag, "invokeFromLibrary");
|
|
2919
|
+
let checkInvokeFromLibrary = this.commonService.checkIsAttributeTrue(newProductPickerFlag, "invokeFromLibrary");
|
|
2928
2920
|
const firstLevel = (this.getVendorRefList(this.instance) && checkInvokeFromLibrary);
|
|
2929
2921
|
if (firstLevel) {
|
|
2930
2922
|
this.selectElem.valueChange.subscribe(res => {
|
|
2931
2923
|
this.commonService.setDropDownFlag(true);
|
|
2932
|
-
|
|
2933
|
-
|
|
2924
|
+
if (i === 0) {
|
|
2925
|
+
this.updateSecondDropdown(res);
|
|
2926
|
+
}
|
|
2934
2927
|
i++;
|
|
2935
2928
|
});
|
|
2936
2929
|
}
|
|
@@ -2942,12 +2935,9 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2942
2935
|
this.storeDependentItems.push({ label: renderElement['text'], value: this.commonService.onlyNumbers(renderElement['value']) ? renderElement['value'] + ' ' : renderElement['value'] });
|
|
2943
2936
|
});
|
|
2944
2937
|
}
|
|
2945
|
-
console.log('410=>', this.commonService.getDropDownFlag(), this.instance);
|
|
2946
2938
|
if (!this.commonService.getDropDownFlag()) {
|
|
2947
2939
|
this.storeDependentItems = this.instance.component.data.values;
|
|
2948
|
-
console.log('396=>', this.storeDependentItems);
|
|
2949
2940
|
}
|
|
2950
|
-
console.log('this.storeDependentItems=>', this.storeDependentItems);
|
|
2951
2941
|
this.filteredOptions = Promise.resolve(this.storeDependentItems);
|
|
2952
2942
|
this.selectOptions = Promise.resolve(this.storeDependentItems);
|
|
2953
2943
|
this.selectOptions.then(result => {
|
|
@@ -2958,11 +2948,17 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2958
2948
|
}));
|
|
2959
2949
|
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2960
2950
|
this.selectElem.openedChange.subscribe((isOpen) => {
|
|
2961
|
-
var _a;
|
|
2951
|
+
var _a, _b;
|
|
2962
2952
|
if (isOpen) {
|
|
2963
2953
|
this.pageNumber = 1;
|
|
2964
2954
|
this.pageSize = 20;
|
|
2965
|
-
this.searchQuery
|
|
2955
|
+
if (((_a = this.searchQuery) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
2956
|
+
if (((_b = this.searchItem) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
2957
|
+
this.websiteMultiFilterCtrl.setValue(this.searchItem);
|
|
2958
|
+
this.ref.detectChanges();
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
// this.searchQuery = '';
|
|
2966
2962
|
this.searching = false;
|
|
2967
2963
|
//this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
|
|
2968
2964
|
this.registerPanelScrollEvent(this.selectElem);
|
|
@@ -2970,14 +2966,14 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2970
2966
|
else {
|
|
2971
2967
|
this.removePanelScrollEvent();
|
|
2972
2968
|
this.searching = false;
|
|
2973
|
-
this.selectedValue = this.getValue();
|
|
2974
|
-
if (
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
}
|
|
2969
|
+
// this.selectedValue = this.getValue();
|
|
2970
|
+
// if (this.selectedValue?.toString().length == 0) {
|
|
2971
|
+
// this.productList = [];
|
|
2972
|
+
// this.pageNumber = 1;
|
|
2973
|
+
// this.pageSize = 20;
|
|
2974
|
+
// this.searchQuery = '';
|
|
2975
|
+
// this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
|
|
2976
|
+
// }
|
|
2981
2977
|
}
|
|
2982
2978
|
});
|
|
2983
2979
|
}
|
|
@@ -3003,6 +2999,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
3003
2999
|
this.productList = [];
|
|
3004
3000
|
this.searching = true;
|
|
3005
3001
|
this.searchQuery = searchQuery;
|
|
3002
|
+
this.searchItem = searchQuery;
|
|
3006
3003
|
this.loadData(this.pageNumber, this.pageSize, searchQuery);
|
|
3007
3004
|
}
|
|
3008
3005
|
});
|
|
@@ -3068,10 +3065,6 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
3068
3065
|
compareObjects(o1, o2) {
|
|
3069
3066
|
return _.isEqual(o1, o2);
|
|
3070
3067
|
}
|
|
3071
|
-
checkIsAttributeTrue(newProductPickerFlag, attributeName) {
|
|
3072
|
-
return newProductPickerFlag && Object.keys(newProductPickerFlag).some(key => key.toLocaleLowerCase() === attributeName.toLowerCase() &&
|
|
3073
|
-
newProductPickerFlag[key].toLowerCase() === "true");
|
|
3074
|
-
}
|
|
3075
3068
|
}
|
|
3076
3069
|
MaterialSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.HttpClient }, { token: CommonService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3077
3070
|
MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSelectComponent, selector: "mat-formio-select", viewQueries: [{ propertyName: "multiSelect", first: true, predicate: ["multiSelect"], descendants: true, static: true }, { propertyName: "selectElem", first: true, predicate: ["productSelect"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -3230,19 +3223,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
3230
3223
|
} });
|
|
3231
3224
|
|
|
3232
3225
|
class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
3233
|
-
constructor(element, ref, dialog) {
|
|
3226
|
+
constructor(element, ref, dialog, commonService) {
|
|
3234
3227
|
super(element, ref);
|
|
3235
3228
|
this.element = element;
|
|
3236
3229
|
this.ref = ref;
|
|
3237
3230
|
this.dialog = dialog;
|
|
3231
|
+
this.commonService = commonService;
|
|
3238
3232
|
this.dataSource = new MatTableDataSource();
|
|
3233
|
+
this.checkSubmissionStatus = false;
|
|
3234
|
+
this.showDataGrid = true;
|
|
3239
3235
|
}
|
|
3240
3236
|
getColumnLabel(column) {
|
|
3241
3237
|
return column.label || column.key;
|
|
3242
3238
|
}
|
|
3243
3239
|
setInstance(instance) {
|
|
3240
|
+
var _a;
|
|
3241
|
+
const checkAttribute = (_a = instance === null || instance === void 0 ? void 0 : instance.component) === null || _a === void 0 ? void 0 : _a.attributes;
|
|
3242
|
+
this.checkSubmissionStatus = this.commonService.checkIsAttributeTrue(checkAttribute, 'isProductSubmitAllowed');
|
|
3244
3243
|
super.setInstance(instance);
|
|
3245
|
-
this.
|
|
3244
|
+
if (this.checkSubmissionStatus) {
|
|
3245
|
+
this.showDataGrid = false;
|
|
3246
|
+
this.dataSource.data = [];
|
|
3247
|
+
}
|
|
3248
|
+
else {
|
|
3249
|
+
this.showDataGrid = true;
|
|
3250
|
+
this.dataSource.data = instance.dataValue;
|
|
3251
|
+
}
|
|
3246
3252
|
this.columns = {};
|
|
3247
3253
|
this.displayedColumns = [];
|
|
3248
3254
|
this.formColumns = [];
|
|
@@ -3271,6 +3277,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3271
3277
|
};
|
|
3272
3278
|
}
|
|
3273
3279
|
addAnother() {
|
|
3280
|
+
this.showDataGrid = true;
|
|
3274
3281
|
this.checkRowsNumber();
|
|
3275
3282
|
this.instance.addRow();
|
|
3276
3283
|
if (this.dataSource.data.length < this.instance.rows.length) {
|
|
@@ -3287,7 +3294,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3287
3294
|
var _a, _b;
|
|
3288
3295
|
let message = 'Are you sure you want to delete this product?';
|
|
3289
3296
|
let showButton = true;
|
|
3290
|
-
if (((_b = (_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length) === 1) {
|
|
3297
|
+
if (((_b = (_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length) === 1 && !this.checkSubmissionStatus) {
|
|
3291
3298
|
message = 'Please select at least one product.';
|
|
3292
3299
|
showButton = false;
|
|
3293
3300
|
}
|
|
@@ -3298,7 +3305,11 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3298
3305
|
data: { message: message, buttonStatus: showButton }
|
|
3299
3306
|
});
|
|
3300
3307
|
dialogRef.afterClosed().subscribe(result => {
|
|
3308
|
+
var _a, _b;
|
|
3301
3309
|
if (result) {
|
|
3310
|
+
if (((_b = (_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length) === 1 && this.checkSubmissionStatus) {
|
|
3311
|
+
this.showDataGrid = false;
|
|
3312
|
+
}
|
|
3302
3313
|
// User confirmed, proceed with deletion
|
|
3303
3314
|
this.instance.removeRow(index);
|
|
3304
3315
|
this.dataSource.data.splice(index, 1);
|
|
@@ -3328,7 +3339,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3328
3339
|
super.setValue(value);
|
|
3329
3340
|
}
|
|
3330
3341
|
}
|
|
3331
|
-
MaterialDataGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDataGridComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$2.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
3342
|
+
MaterialDataGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDataGridComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$2.MatDialog }, { token: CommonService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3332
3343
|
MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialDataGridComponent, selector: "mat-formio-datagrid", usesInheritance: true, ngImport: i0, template: `
|
|
3333
3344
|
<mat-formio-form-field [instance]="instance"
|
|
3334
3345
|
[componentTemplate]="componentTemplate"
|
|
@@ -3339,7 +3350,7 @@ MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
|
3339
3350
|
<ng-container *ngIf="hasLabel">
|
|
3340
3351
|
<ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
|
|
3341
3352
|
</ng-container>
|
|
3342
|
-
<mat-card-content>
|
|
3353
|
+
<mat-card-content *ngIf="showDataGrid">
|
|
3343
3354
|
<mat-card-actions
|
|
3344
3355
|
*ngIf="instance.hasAddButton() && (instance.component.addAnotherPosition === 'both' || instance.component.addAnotherPosition === 'top')">
|
|
3345
3356
|
<button mat-raised-button color="primary" (click)="addAnother()">
|
|
@@ -3400,7 +3411,7 @@ MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
|
3400
3411
|
<span [instance]="instance" matFormioLabel></span>
|
|
3401
3412
|
</mat-card-title>
|
|
3402
3413
|
</ng-template>
|
|
3403
|
-
`, isInline: true, styles: [".datagrid-row{height:auto}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type:
|
|
3414
|
+
`, isInline: true, styles: [".datagrid-row{height:auto}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i5$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type: i4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "directive", type: i4.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { kind: "directive", type: i4.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i4.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i9.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
|
|
3404
3415
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDataGridComponent, decorators: [{
|
|
3405
3416
|
type: Component,
|
|
3406
3417
|
args: [{ selector: 'mat-formio-datagrid', template: `
|
|
@@ -3413,7 +3424,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
3413
3424
|
<ng-container *ngIf="hasLabel">
|
|
3414
3425
|
<ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
|
|
3415
3426
|
</ng-container>
|
|
3416
|
-
<mat-card-content>
|
|
3427
|
+
<mat-card-content *ngIf="showDataGrid">
|
|
3417
3428
|
<mat-card-actions
|
|
3418
3429
|
*ngIf="instance.hasAddButton() && (instance.component.addAnotherPosition === 'both' || instance.component.addAnotherPosition === 'top')">
|
|
3419
3430
|
<button mat-raised-button color="primary" (click)="addAnother()">
|
|
@@ -3475,7 +3486,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
3475
3486
|
</mat-card-title>
|
|
3476
3487
|
</ng-template>
|
|
3477
3488
|
`, styles: [".datagrid-row{height:auto}\n"] }]
|
|
3478
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$2.MatDialog }]; } });
|
|
3489
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$2.MatDialog }, { type: CommonService }]; } });
|
|
3479
3490
|
DataGridComponent.MaterialComponent = MaterialDataGridComponent;
|
|
3480
3491
|
|
|
3481
3492
|
var EditRowState;
|