ngx-render-material-forms 1.2.7 → 1.2.9
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/select/select.component.mjs +82 -61
- package/fesm2015/ngx-render-material-forms.js +79 -59
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +79 -59
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/select/select.component.d.ts +6 -5
- package/package.json +1 -1
|
@@ -81,14 +81,14 @@ import RadioComponent from 'formiojs/components/radio/Radio.js';
|
|
|
81
81
|
import SelectBoxesComponent from 'formiojs/components/selectboxes/SelectBoxes.js';
|
|
82
82
|
import SelectComponent from 'formiojs/components/select/Select.js';
|
|
83
83
|
import { Subject } from 'rxjs';
|
|
84
|
-
import { debounceTime, distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
84
|
+
import { debounceTime, tap, distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
85
85
|
import * as CryptoJS from 'crypto-js';
|
|
86
86
|
import { isNullOrUndefined } from 'util';
|
|
87
|
-
import * as
|
|
87
|
+
import * as i9 from 'ngx-mat-select-search';
|
|
88
88
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
89
89
|
import WellComponent from 'formiojs/components/well/Well.js';
|
|
90
90
|
import DataGridComponent from 'formiojs/components/datagrid/DataGrid.js';
|
|
91
|
-
import * as i8
|
|
91
|
+
import * as i8 from '@angular/cdk/drag-drop';
|
|
92
92
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
93
93
|
import EditGridComponent from 'formiojs/components/editgrid/EditGrid.js';
|
|
94
94
|
import Components$2 from 'formiojs/components/Components';
|
|
@@ -2538,18 +2538,20 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2538
2538
|
this.holy = '';
|
|
2539
2539
|
this.grail = '';
|
|
2540
2540
|
this.productsloadingFlag = false;
|
|
2541
|
-
this.
|
|
2541
|
+
this.searching = false;
|
|
2542
|
+
// Variable to hold the reference to the current panel element
|
|
2543
|
+
this.currentPanelElement = null;
|
|
2542
2544
|
this.holy = CryptoJS.enc.Base64.parse('8F/2+T2NXqUBQERR12R4sw==');
|
|
2543
2545
|
this.grail = CryptoJS.enc.Base64.parse('yE0CgQbYzK5wqeoKTVzhOQ==');
|
|
2544
2546
|
}
|
|
2545
|
-
|
|
2546
|
-
if (value === '') {
|
|
2547
|
+
onInputChange(event) {
|
|
2548
|
+
if (this.instance.component.key.toLowerCase() === 'vendorproductid' && event.target.value === '') {
|
|
2547
2549
|
this.onClearAll();
|
|
2548
2550
|
}
|
|
2549
2551
|
}
|
|
2550
|
-
|
|
2551
|
-
if (
|
|
2552
|
-
this.
|
|
2552
|
+
clearProducts() {
|
|
2553
|
+
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2554
|
+
this.onClearAll();
|
|
2553
2555
|
}
|
|
2554
2556
|
}
|
|
2555
2557
|
scrumble(msg) {
|
|
@@ -2574,28 +2576,23 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2574
2576
|
padding: CryptoJS.pad.Pkcs7
|
|
2575
2577
|
});
|
|
2576
2578
|
}
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
this.
|
|
2580
|
-
this.registerPanelScrollEvent();
|
|
2581
|
-
}
|
|
2582
|
-
registerPanelScrollEvent() {
|
|
2583
|
-
if (this.selectElem) {
|
|
2584
|
-
this.selectElem.panel.nativeElement.addEventListener('scroll', this.onScroll.bind(this));
|
|
2585
|
-
}
|
|
2579
|
+
registerPanelScrollEvent(selectElem) {
|
|
2580
|
+
const panelElement = selectElem.panel.nativeElement;
|
|
2581
|
+
panelElement.addEventListener('scroll', this.onScroll.bind(this));
|
|
2586
2582
|
}
|
|
2587
2583
|
onScroll(event) {
|
|
2588
2584
|
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2589
2585
|
const scrollElement = event.target;
|
|
2590
2586
|
const trackHeight = scrollElement.scrollHeight - scrollElement.offsetHeight;
|
|
2591
|
-
console.log('productsloadingFlagScroll=>', this.productsloadingFlag);
|
|
2592
2587
|
if (this.productsloadingFlag && Math.floor(scrollElement.scrollTop / trackHeight * 100) > 50) {
|
|
2593
2588
|
this.productsloadingFlag = false;
|
|
2594
2589
|
if (this.pageNumber < this.totalPages) {
|
|
2595
2590
|
this.pageNumber = this.pageNumber + 1;
|
|
2596
|
-
console.log('this.pageNumber', this.pageNumber, this.totalPages);
|
|
2597
2591
|
this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
|
|
2598
2592
|
}
|
|
2593
|
+
else {
|
|
2594
|
+
this.productsloadingFlag = true;
|
|
2595
|
+
}
|
|
2599
2596
|
}
|
|
2600
2597
|
}
|
|
2601
2598
|
}
|
|
@@ -2622,8 +2619,11 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2622
2619
|
const enpageNumber = this.scrumble(pageNumber);
|
|
2623
2620
|
const enpageSize = this.scrumble(pageSize);
|
|
2624
2621
|
const ensearchQuery = this.scrumble(searchQuery);
|
|
2625
|
-
|
|
2626
|
-
//
|
|
2622
|
+
let enactive = this.scrumble(false);
|
|
2623
|
+
//Check if enactive is undefined, null, or blank
|
|
2624
|
+
if (enactive === undefined || enactive === null || enactive === '') {
|
|
2625
|
+
enactive = this.scrumble(true); // Set default value to true
|
|
2626
|
+
}
|
|
2627
2627
|
// Scrumble and handle the includeDescription parameter
|
|
2628
2628
|
let endescription = this.scrumble(includeDescription);
|
|
2629
2629
|
if (!endescription) {
|
|
@@ -2642,21 +2642,29 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2642
2642
|
this.http.get(`${baseApiUrl}/api/VendorFormBuilder/GetVendorProducts?vendorId=${envendorId}&pageNumber=${enpageNumber}&pageSize=${enpageSize}&search=${ensearchQuery}&onlyActive=${enactive}&includeDescription=${endescription}`, { headers }).subscribe(response => {
|
|
2643
2643
|
var _a;
|
|
2644
2644
|
if (response && response.code === 200) {
|
|
2645
|
-
this.totalPages = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.totalPages;
|
|
2646
2645
|
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2647
|
-
|
|
2648
|
-
|
|
2646
|
+
this.totalPages = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.totalPages;
|
|
2647
|
+
const data = response.data.dataSource;
|
|
2648
|
+
const transformedData = this.transformResponseData(data);
|
|
2649
|
+
this.filteredOptionsLength = transformedData.length;
|
|
2650
|
+
// Update filteredOptions with transformedData
|
|
2649
2651
|
this.filteredOptions = Promise.resolve(transformedData.map(item => ({
|
|
2650
2652
|
label: item.label,
|
|
2651
2653
|
value: item.value,
|
|
2652
2654
|
date: item.date
|
|
2653
2655
|
})));
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
+
this.searching = false;
|
|
2657
|
+
// Update filteredOptions with transformedData
|
|
2658
|
+
// this.filteredOptions = this.filteredOptions.then(existingOptions => {
|
|
2659
|
+
// const newOptions = transformedData.map(item => ({
|
|
2660
|
+
// label: item.label,
|
|
2661
|
+
// value: item.value,
|
|
2662
|
+
// date: item.date
|
|
2663
|
+
// }));
|
|
2664
|
+
// return existingOptions.concat(newOptions);
|
|
2665
|
+
// });
|
|
2656
2666
|
this.productsloadingFlag = true;
|
|
2657
|
-
}
|
|
2658
|
-
console.log('productsloadingFlag', this.productsloadingFlag);
|
|
2659
|
-
console.log('totalPage=>', this.totalPages);
|
|
2667
|
+
}
|
|
2660
2668
|
}
|
|
2661
2669
|
});
|
|
2662
2670
|
}
|
|
@@ -2697,35 +2705,49 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2697
2705
|
this.instance.triggerUpdate();
|
|
2698
2706
|
}
|
|
2699
2707
|
onClearAll() {
|
|
2700
|
-
if (this.
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2708
|
+
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2709
|
+
this.pageNumber = 1;
|
|
2710
|
+
this.pageSize = 20;
|
|
2711
|
+
this.searchQuery = '';
|
|
2712
|
+
this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
|
|
2704
2713
|
}
|
|
2705
2714
|
}
|
|
2706
2715
|
ngAfterViewInit() {
|
|
2707
|
-
this.
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
this.
|
|
2716
|
+
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2717
|
+
this.selectElem.openedChange.subscribe((isOpen) => {
|
|
2718
|
+
if (isOpen) {
|
|
2719
|
+
this.pageNumber = 1;
|
|
2720
|
+
this.pageSize = 20;
|
|
2721
|
+
this.searchQuery = '';
|
|
2722
|
+
this.searching = true;
|
|
2723
|
+
this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
|
|
2724
|
+
this.registerPanelScrollEvent(this.selectElem);
|
|
2712
2725
|
}
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2726
|
+
else {
|
|
2727
|
+
this.removePanelScrollEvent();
|
|
2728
|
+
console.log('closed');
|
|
2729
|
+
}
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2733
|
+
removePanelScrollEvent() {
|
|
2734
|
+
// Remove the scroll event listener
|
|
2735
|
+
if (this.currentPanelElement) {
|
|
2736
|
+
this.currentPanelElement.removeEventListener('scroll', this.onScroll.bind(this));
|
|
2737
|
+
this.currentPanelElement = null;
|
|
2738
|
+
}
|
|
2718
2739
|
}
|
|
2719
2740
|
ngOnInit() {
|
|
2720
2741
|
/*new logic */
|
|
2721
2742
|
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2722
2743
|
this.websiteMultiFilterCtrl.valueChanges
|
|
2723
2744
|
.pipe(debounceTime(1000), // Time in milliseconds between key events
|
|
2724
|
-
distinctUntilChanged(), takeUntil(this._onDestroy))
|
|
2745
|
+
tap(() => this.searching = true), distinctUntilChanged(), takeUntil(this._onDestroy))
|
|
2725
2746
|
.subscribe((searchQuery) => {
|
|
2726
2747
|
if (searchQuery != '') {
|
|
2727
|
-
this.
|
|
2728
|
-
this.
|
|
2748
|
+
this.pageNumber = 1;
|
|
2749
|
+
this.pageSize = 20;
|
|
2750
|
+
this.loadData(this.pageNumber, this.pageSize, searchQuery);
|
|
2729
2751
|
}
|
|
2730
2752
|
});
|
|
2731
2753
|
}
|
|
@@ -2766,20 +2788,19 @@ MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
2766
2788
|
[multiple]="instance.component.multiple"
|
|
2767
2789
|
[formControl]="control"
|
|
2768
2790
|
[placeholder]="instance.component.placeholder"
|
|
2769
|
-
(selectionChange)="onChange(
|
|
2791
|
+
(selectionChange)="onChange()"
|
|
2770
2792
|
[compareWith]="compareObjects"
|
|
2771
2793
|
#productSelect
|
|
2772
|
-
(openedChange)="onMatSelectOpen($event ? selectElem : null)"
|
|
2773
2794
|
>
|
|
2774
|
-
|
|
2775
2795
|
<mat-option>
|
|
2776
|
-
<ngx-mat-select-search (
|
|
2796
|
+
<ngx-mat-select-search [searching]="instance.component.key.toLowerCase() === 'vendorproductid' ? searching : false" (input)="onInputChange($event)" placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl">
|
|
2797
|
+
<mat-icon ngxMatSelectSearchClear (click)="clearProducts()">close</mat-icon>
|
|
2798
|
+
</ngx-mat-select-search>
|
|
2777
2799
|
</mat-option>
|
|
2778
2800
|
|
|
2779
2801
|
<mat-option *ngFor="let option of filteredOptions | async" [value]="option.value" class="virtual-full-view">
|
|
2780
2802
|
<span [innerHTML]="option.label"></span>
|
|
2781
2803
|
</mat-option>
|
|
2782
|
-
|
|
2783
2804
|
<mat-option *ngIf="!filteredOptionsLength" disabled>
|
|
2784
2805
|
<span>Nothing was found</span>
|
|
2785
2806
|
</mat-option>
|
|
@@ -2791,7 +2812,7 @@ MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
2791
2812
|
<mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
|
|
2792
2813
|
</mat-form-field>
|
|
2793
2814
|
</ng-template>
|
|
2794
|
-
`, isInline: true, styles: [".example-viewport{height:200px}.product-picker{overflow-x:hidden}.virtual-full-view{height:auto!important;white-space:normal!important;line-height:1.4!important;text-overflow:initial!important;min-height:48px!important;overflow:visible!important;overflow:initial!important;padding-top:10px!important;padding-bottom:10px!important}::ng-deep .product-picker .cdk-virtual-scroll-content-wrapper{width:100%!important}.virtual-full-view .mat-pseudo-checkbox{align-self:top!important}\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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "component", type: i4$3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type:
|
|
2815
|
+
`, isInline: true, styles: [".example-viewport{height:200px}.product-picker{overflow-x:hidden}.virtual-full-view{height:auto!important;white-space:normal!important;line-height:1.4!important;text-overflow:initial!important;min-height:48px!important;overflow:visible!important;overflow:initial!important;padding-top:10px!important;padding-bottom:10px!important}::ng-deep .product-picker .cdk-virtual-scroll-content-wrapper{width:100%!important}.virtual-full-view .mat-pseudo-checkbox{align-self:top!important}\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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "component", type: i4$3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { 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: i9.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "indexAndLengthScreenReaderText", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toogleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "directive", type: i9.MatSelectSearchClearDirective, selector: "[ngxMatSelectSearchClear]" }, { 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"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
2795
2816
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectComponent, decorators: [{
|
|
2796
2817
|
type: Component,
|
|
2797
2818
|
args: [{ selector: 'mat-formio-select', template: `
|
|
@@ -2810,20 +2831,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
2810
2831
|
[multiple]="instance.component.multiple"
|
|
2811
2832
|
[formControl]="control"
|
|
2812
2833
|
[placeholder]="instance.component.placeholder"
|
|
2813
|
-
(selectionChange)="onChange(
|
|
2834
|
+
(selectionChange)="onChange()"
|
|
2814
2835
|
[compareWith]="compareObjects"
|
|
2815
2836
|
#productSelect
|
|
2816
|
-
(openedChange)="onMatSelectOpen($event ? selectElem : null)"
|
|
2817
2837
|
>
|
|
2818
|
-
|
|
2819
2838
|
<mat-option>
|
|
2820
|
-
<ngx-mat-select-search (
|
|
2839
|
+
<ngx-mat-select-search [searching]="instance.component.key.toLowerCase() === 'vendorproductid' ? searching : false" (input)="onInputChange($event)" placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl">
|
|
2840
|
+
<mat-icon ngxMatSelectSearchClear (click)="clearProducts()">close</mat-icon>
|
|
2841
|
+
</ngx-mat-select-search>
|
|
2821
2842
|
</mat-option>
|
|
2822
2843
|
|
|
2823
2844
|
<mat-option *ngFor="let option of filteredOptions | async" [value]="option.value" class="virtual-full-view">
|
|
2824
2845
|
<span [innerHTML]="option.label"></span>
|
|
2825
2846
|
</mat-option>
|
|
2826
|
-
|
|
2827
2847
|
<mat-option *ngIf="!filteredOptionsLength" disabled>
|
|
2828
2848
|
<span>Nothing was found</span>
|
|
2829
2849
|
</mat-option>
|
|
@@ -3060,7 +3080,7 @@ MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
|
3060
3080
|
<span [instance]="instance" matFormioLabel></span>
|
|
3061
3081
|
</mat-card-title>
|
|
3062
3082
|
</ng-template>
|
|
3063
|
-
`, 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: i2$1.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: i4$7.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$7.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$7.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$7.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i4$7.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$7.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$7.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$7.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i4$7.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$7.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: i8
|
|
3083
|
+
`, 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: i2$1.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: i4$7.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$7.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$7.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$7.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i4$7.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$7.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$7.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$7.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i4$7.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$7.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: i8.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: i8.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: i8.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"] }] });
|
|
3064
3084
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDataGridComponent, decorators: [{
|
|
3065
3085
|
type: Component,
|
|
3066
3086
|
args: [{ selector: 'mat-formio-datagrid', template: `
|