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.
@@ -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 i8 from 'ngx-mat-select-search';
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$1 from '@angular/cdk/drag-drop';
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.searchFlag = true;
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
- onSearchInputChange(value) {
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
- onChange(event) {
2551
- if (event) {
2552
- this.searchFlag = false;
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
- // Method to handle when the mat-select is opened
2578
- onMatSelectOpen(select) {
2579
- this.selectElem = select;
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
- const enactive = this.scrumble(onlyActive);
2626
- // const endescription = this.scrumble(includeDescription);
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) {
@@ -2641,21 +2641,29 @@ class MaterialSelectComponent extends MaterialComponent {
2641
2641
  const baseApiUrl = baseUrlMapping[hostname] || null;
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
  if (response && response.code === 200) {
2644
- this.totalPages = response?.data?.totalPages;
2645
2644
  if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
2646
- const transformedData = this.transformResponseData(response.data.dataSource);
2647
- // Process the transformed data
2645
+ this.totalPages = response?.data?.totalPages;
2646
+ const data = response.data.dataSource;
2647
+ const transformedData = this.transformResponseData(data);
2648
+ this.filteredOptionsLength = transformedData.length;
2649
+ // Update filteredOptions with transformedData
2648
2650
  this.filteredOptions = Promise.resolve(transformedData.map(item => ({
2649
2651
  label: item.label,
2650
2652
  value: item.value,
2651
2653
  date: item.date
2652
2654
  })));
2653
- }
2654
- setTimeout(() => {
2655
+ this.searching = false;
2656
+ // Update filteredOptions with transformedData
2657
+ // this.filteredOptions = this.filteredOptions.then(existingOptions => {
2658
+ // const newOptions = transformedData.map(item => ({
2659
+ // label: item.label,
2660
+ // value: item.value,
2661
+ // date: item.date
2662
+ // }));
2663
+ // return existingOptions.concat(newOptions);
2664
+ // });
2655
2665
  this.productsloadingFlag = true;
2656
- }, 1000);
2657
- console.log('productsloadingFlag', this.productsloadingFlag);
2658
- console.log('totalPage=>', this.totalPages);
2666
+ }
2659
2667
  }
2660
2668
  });
2661
2669
  }
@@ -2696,35 +2704,49 @@ class MaterialSelectComponent extends MaterialComponent {
2696
2704
  this.instance.triggerUpdate();
2697
2705
  }
2698
2706
  onClearAll() {
2699
- if (this.searchFlag) {
2700
- if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
2701
- this.loadData(1, 20, '');
2702
- }
2707
+ if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
2708
+ this.pageNumber = 1;
2709
+ this.pageSize = 20;
2710
+ this.searchQuery = '';
2711
+ this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
2703
2712
  }
2704
2713
  }
2705
2714
  ngAfterViewInit() {
2706
- this.selectElem.openedChange.subscribe((isOpen) => {
2707
- if (isOpen) {
2708
- this.searchFlag = false;
2709
- if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
2710
- this.loadData(1, 20, '');
2715
+ if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
2716
+ this.selectElem.openedChange.subscribe((isOpen) => {
2717
+ if (isOpen) {
2718
+ this.pageNumber = 1;
2719
+ this.pageSize = 20;
2720
+ this.searchQuery = '';
2721
+ this.searching = true;
2722
+ this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
2723
+ this.registerPanelScrollEvent(this.selectElem);
2711
2724
  }
2712
- }
2713
- else {
2714
- this.searchFlag = false;
2715
- }
2716
- });
2725
+ else {
2726
+ this.removePanelScrollEvent();
2727
+ console.log('closed');
2728
+ }
2729
+ });
2730
+ }
2731
+ }
2732
+ removePanelScrollEvent() {
2733
+ // Remove the scroll event listener
2734
+ if (this.currentPanelElement) {
2735
+ this.currentPanelElement.removeEventListener('scroll', this.onScroll.bind(this));
2736
+ this.currentPanelElement = null;
2737
+ }
2717
2738
  }
2718
2739
  ngOnInit() {
2719
2740
  /*new logic */
2720
2741
  if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
2721
2742
  this.websiteMultiFilterCtrl.valueChanges
2722
2743
  .pipe(debounceTime(1000), // Time in milliseconds between key events
2723
- distinctUntilChanged(), takeUntil(this._onDestroy))
2744
+ tap(() => this.searching = true), distinctUntilChanged(), takeUntil(this._onDestroy))
2724
2745
  .subscribe((searchQuery) => {
2725
2746
  if (searchQuery != '') {
2726
- this.searchFlag = true;
2727
- this.loadData(1, 20, searchQuery);
2747
+ this.pageNumber = 1;
2748
+ this.pageSize = 20;
2749
+ this.loadData(this.pageNumber, this.pageSize, searchQuery);
2728
2750
  }
2729
2751
  });
2730
2752
  }
@@ -2765,20 +2787,19 @@ MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
2765
2787
  [multiple]="instance.component.multiple"
2766
2788
  [formControl]="control"
2767
2789
  [placeholder]="instance.component.placeholder"
2768
- (selectionChange)="onChange($event)"
2790
+ (selectionChange)="onChange()"
2769
2791
  [compareWith]="compareObjects"
2770
2792
  #productSelect
2771
- (openedChange)="onMatSelectOpen($event ? selectElem : null)"
2772
2793
  >
2773
-
2774
2794
  <mat-option>
2775
- <ngx-mat-select-search (ngModelChange)="onSearchInputChange($event)" placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
2795
+ <ngx-mat-select-search [searching]="instance.component.key.toLowerCase() === 'vendorproductid' ? searching : false" (input)="onInputChange($event)" placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl">
2796
+ <mat-icon ngxMatSelectSearchClear (click)="clearProducts()">close</mat-icon>
2797
+ </ngx-mat-select-search>
2776
2798
  </mat-option>
2777
2799
 
2778
2800
  <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value" class="virtual-full-view">
2779
2801
  <span [innerHTML]="option.label"></span>
2780
2802
  </mat-option>
2781
-
2782
2803
  <mat-option *ngIf="!filteredOptionsLength" disabled>
2783
2804
  <span>Nothing was found</span>
2784
2805
  </mat-option>
@@ -2790,7 +2811,7 @@ MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
2790
2811
  <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2791
2812
  </mat-form-field>
2792
2813
  </ng-template>
2793
- `, 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: i8.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: "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" }] });
2814
+ `, 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" }] });
2794
2815
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectComponent, decorators: [{
2795
2816
  type: Component,
2796
2817
  args: [{ selector: 'mat-formio-select', template: `
@@ -2809,20 +2830,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
2809
2830
  [multiple]="instance.component.multiple"
2810
2831
  [formControl]="control"
2811
2832
  [placeholder]="instance.component.placeholder"
2812
- (selectionChange)="onChange($event)"
2833
+ (selectionChange)="onChange()"
2813
2834
  [compareWith]="compareObjects"
2814
2835
  #productSelect
2815
- (openedChange)="onMatSelectOpen($event ? selectElem : null)"
2816
2836
  >
2817
-
2818
2837
  <mat-option>
2819
- <ngx-mat-select-search (ngModelChange)="onSearchInputChange($event)" placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
2838
+ <ngx-mat-select-search [searching]="instance.component.key.toLowerCase() === 'vendorproductid' ? searching : false" (input)="onInputChange($event)" placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl">
2839
+ <mat-icon ngxMatSelectSearchClear (click)="clearProducts()">close</mat-icon>
2840
+ </ngx-mat-select-search>
2820
2841
  </mat-option>
2821
2842
 
2822
2843
  <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value" class="virtual-full-view">
2823
2844
  <span [innerHTML]="option.label"></span>
2824
2845
  </mat-option>
2825
-
2826
2846
  <mat-option *ngIf="!filteredOptionsLength" disabled>
2827
2847
  <span>Nothing was found</span>
2828
2848
  </mat-option>
@@ -3059,7 +3079,7 @@ MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
3059
3079
  <span [instance]="instance" matFormioLabel></span>
3060
3080
  </mat-card-title>
3061
3081
  </ng-template>
3062
- `, 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$1.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$1.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$1.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"] }] });
3082
+ `, 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"] }] });
3063
3083
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDataGridComponent, decorators: [{
3064
3084
  type: Component,
3065
3085
  args: [{ selector: 'mat-formio-datagrid', template: `