ngx-render-material-forms 1.5.9 → 1.6.1

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.
@@ -79,12 +79,13 @@ import SignatureComponent from 'formiojs/components/signature/Signature.js';
79
79
  import SurveyComponent from 'formiojs/components/survey/Survey.js';
80
80
  import RadioComponent from 'formiojs/components/radio/Radio.js';
81
81
  import SelectBoxesComponent from 'formiojs/components/selectboxes/SelectBoxes.js';
82
+ import { __awaiter } from 'tslib';
82
83
  import SelectComponent from 'formiojs/components/select/Select.js';
83
- import { Subject } from 'rxjs';
84
+ import { BehaviorSubject, Subject } from 'rxjs';
84
85
  import { debounceTime, distinctUntilChanged, takeUntil } from 'rxjs/operators';
85
86
  import * as CryptoJS from 'crypto-js';
86
87
  import { isNullOrUndefined } from 'util';
87
- import * as i9 from 'ngx-mat-select-search';
88
+ import * as i10 from 'ngx-mat-select-search';
88
89
  import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
89
90
  import WellComponent from 'formiojs/components/well/Well.js';
90
91
  import DataGridComponent from 'formiojs/components/datagrid/DataGrid.js';
@@ -2543,12 +2544,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
2543
2544
  }] });
2544
2545
  SelectBoxesComponent.MaterialComponent = MaterialSelectBoxesComponent;
2545
2546
 
2547
+ class CommonService {
2548
+ constructor(http) {
2549
+ this.http = http;
2550
+ this.dropdownItemsSubject = new BehaviorSubject([]);
2551
+ this.dropdownItems$ = this.dropdownItemsSubject.asObservable();
2552
+ this.setFlag = new BehaviorSubject(false); // Initialize with false
2553
+ this.dropdownflag$ = this.setFlag.asObservable(); // Observable that emits the boolean value
2554
+ this.paramsData = JSON.parse(localStorage.getItem('productPickerParams'));
2555
+ this.currentUser = JSON.parse(localStorage.getItem('currentUser'));
2556
+ }
2557
+ getBaseApiUrl() {
2558
+ const baseUrlMapping = {
2559
+ 'localhost': 'http://localhost:58504',
2560
+ 'lincoln.vartopia.com': 'https://lincoln-api.vartopia.com',
2561
+ 'stage.vartopia.com': 'https://stage-api.vartopia.com',
2562
+ 'my.vartopia.com': 'https://reagan-api.vartopia.com',
2563
+ 'jackson.vartopia.com': 'https://jackson-api.vartopia.com'
2564
+ };
2565
+ // Get the current hostname
2566
+ const hostname = window.location.hostname;
2567
+ return baseUrlMapping[hostname] || null;
2568
+ }
2569
+ /* Intialization of api path and queryparams */
2570
+ initializeApiPath(getUrl, queryParams) {
2571
+ if (queryParams === null || queryParams === void 0 ? void 0 : queryParams.length) {
2572
+ const changeToObject = this.convertToObject(queryParams);
2573
+ if (Object.keys(changeToObject).length) {
2574
+ const queryString = this.convertToQueryString(changeToObject);
2575
+ const baseApiUrl = this.getBaseApiUrl();
2576
+ var apiUrl = `${baseApiUrl}/api/` + getUrl;
2577
+ apiUrl += '?' + queryString;
2578
+ return this.http.get(apiUrl);
2579
+ }
2580
+ }
2581
+ }
2582
+ /* Functon for convert array to object */
2583
+ convertToObject(queryParams) {
2584
+ if (queryParams.length) {
2585
+ var obj = {};
2586
+ queryParams.forEach(function (item) {
2587
+ obj[item.key] = item.value;
2588
+ });
2589
+ return obj;
2590
+ }
2591
+ }
2592
+ /* Append key and value to query string */
2593
+ convertToQueryString(queryParams) {
2594
+ const queryString = Object.keys(queryParams)
2595
+ .map(key => {
2596
+ if (queryParams[key] !== '' && queryParams[key] !== null) {
2597
+ return encodeURIComponent(key) + '=' + encodeURIComponent(queryParams[key]);
2598
+ }
2599
+ else {
2600
+ if (queryParams.hasOwnProperty('search')) {
2601
+ return encodeURIComponent(key) + '=' + encodeURIComponent(queryParams[key]);
2602
+ }
2603
+ }
2604
+ })
2605
+ .join('&');
2606
+ return queryString;
2607
+ }
2608
+ listProductCategory() {
2609
+ const vendorId = this.getValueByKey(this.paramsData, 'vendorId');
2610
+ const baseApiUrl = this.getBaseApiUrl();
2611
+ return this.http.get(`${baseApiUrl}/api/VendorFormBuilder/GetProductsCategory?vendorId=${vendorId}`);
2612
+ }
2613
+ // Function to get value by key from the array
2614
+ getValueByKey(data, key) {
2615
+ if (!data || data.length === 0) {
2616
+ return null; // Return null if data is empty or undefined
2617
+ }
2618
+ const item = data.find(kv => kv.key.toLowerCase() === key.toLowerCase());
2619
+ return item ? item.value : null;
2620
+ }
2621
+ /* Function for verify numbers and numbers with comma seperated values */
2622
+ onlyNumbers(str) {
2623
+ if (str) {
2624
+ return /^[0-9.,]+$/.test(str);
2625
+ }
2626
+ }
2627
+ /* End */
2628
+ setDropdownItems(items) {
2629
+ this.dropdownItemsSubject.next(items);
2630
+ }
2631
+ getDropdownItems() {
2632
+ return this.dropdownItemsSubject.getValue();
2633
+ }
2634
+ setDropDownFlag(flag) {
2635
+ this.setFlag.next(flag);
2636
+ }
2637
+ getDropDownFlag() {
2638
+ return this.setFlag.getValue();
2639
+ }
2640
+ }
2641
+ 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
+ CommonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: CommonService, providedIn: 'root' });
2643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: CommonService, decorators: [{
2644
+ type: Injectable,
2645
+ args: [{
2646
+ providedIn: 'root'
2647
+ }]
2648
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
2649
+
2546
2650
  class MaterialSelectComponent extends MaterialComponent {
2547
- constructor(element, ref, http) {
2651
+ constructor(element, ref, http, commonService) {
2548
2652
  super(element, ref);
2549
2653
  this.element = element;
2550
2654
  this.ref = ref;
2551
2655
  this.http = http;
2656
+ this.commonService = commonService;
2552
2657
  this.websiteMultiCtrl = new FormControl();
2553
2658
  this.websiteMultiFilterCtrl = new FormControl();
2554
2659
  this._onDestroy = new Subject();
@@ -2563,10 +2668,15 @@ class MaterialSelectComponent extends MaterialComponent {
2563
2668
  this.searching = false;
2564
2669
  this.productList = [];
2565
2670
  this.selectedValue = '';
2566
- this.searchItem = "";
2567
2671
  // Variable to hold the reference to the current panel element
2568
2672
  this.currentPanelElement = null;
2569
2673
  this.openCounter = 1;
2674
+ this.firstDropdownItems = [];
2675
+ this.secondDropdownItems = [];
2676
+ this.storeValue = [];
2677
+ this.storeDependentItems = [];
2678
+ this.executionFlag = false;
2679
+ this.apiCounter = 0;
2570
2680
  this.holy = CryptoJS.enc.Base64.parse('8F/2+T2NXqUBQERR12R4sw==');
2571
2681
  this.grail = CryptoJS.enc.Base64.parse('yE0CgQbYzK5wqeoKTVzhOQ==');
2572
2682
  }
@@ -2578,7 +2688,6 @@ class MaterialSelectComponent extends MaterialComponent {
2578
2688
  clearProducts() {
2579
2689
  if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
2580
2690
  this.onClearAll();
2581
- this.searchItem = "";
2582
2691
  }
2583
2692
  }
2584
2693
  scrumble(msg) {
@@ -2774,20 +2883,67 @@ class MaterialSelectComponent extends MaterialComponent {
2774
2883
  this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
2775
2884
  }
2776
2885
  }
2886
+ updateSecondDropdown(value) {
2887
+ const apiEndPoint = 'ManageVendors/GetReferenceDataItemsByVendorIdAndDataValue';
2888
+ let finalParams = JSON.parse(localStorage.getItem('cascadingDropdownsParams'));
2889
+ if (Array.isArray(finalParams)) {
2890
+ const index = finalParams.findIndex(param => param.key === 'dataValue');
2891
+ if (index !== -1) {
2892
+ // If the object exists, update its value
2893
+ finalParams[index].value = value;
2894
+ }
2895
+ else {
2896
+ // If the object doesn't exist, add it to the array
2897
+ finalParams.push({ key: 'dataValue', value: value });
2898
+ }
2899
+ this.commonService.initializeApiPath(apiEndPoint, finalParams).subscribe(response => {
2900
+ if (response && response.code === 200) {
2901
+ this.secondDropdownItems = response.data;
2902
+ this.commonService.setDropdownItems(this.secondDropdownItems);
2903
+ }
2904
+ });
2905
+ }
2906
+ }
2777
2907
  ngAfterViewInit() {
2908
+ var _a, _b;
2909
+ const newProductPickerFlag = (_b = (_a = this.instance) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.attributes;
2910
+ let checkInvokeFromLibrary = this.checkIsAttributeTrue(newProductPickerFlag, "invokeFromLibrary");
2911
+ const firstLevel = (this.getVendorRefList(this.instance) && checkInvokeFromLibrary);
2912
+ if (firstLevel) {
2913
+ this.selectElem.valueChange.subscribe(res => {
2914
+ this.commonService.setDropDownFlag(true);
2915
+ this.updateSecondDropdown(res);
2916
+ });
2917
+ }
2918
+ this.selectElem.openedChange.subscribe((isOpen) => __awaiter(this, void 0, void 0, function* () {
2919
+ var _c;
2920
+ if (isOpen) {
2921
+ if (this.checkVendorRefItems(this.instance) && checkInvokeFromLibrary) {
2922
+ this.storeDependentItems = [];
2923
+ this.secondDropdownItems = this.commonService.getDropdownItems();
2924
+ if ((_c = this.secondDropdownItems) === null || _c === void 0 ? void 0 : _c.length) {
2925
+ this.secondDropdownItems.forEach((renderElement, index, array) => {
2926
+ this.storeDependentItems.push({ label: renderElement['text'], value: this.commonService.onlyNumbers(renderElement['value']) ? renderElement['value'] + ' ' : renderElement['value'] });
2927
+ });
2928
+ }
2929
+ if (!this.commonService.getDropDownFlag()) {
2930
+ this.storeDependentItems = this.instance.component.data.values;
2931
+ }
2932
+ this.filteredOptions = Promise.resolve(this.storeDependentItems);
2933
+ this.selectOptions = Promise.resolve(this.storeDependentItems);
2934
+ this.selectOptions.then(result => {
2935
+ this.filteredOptionsLength = result.length;
2936
+ });
2937
+ }
2938
+ }
2939
+ }));
2778
2940
  if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
2779
2941
  this.selectElem.openedChange.subscribe((isOpen) => {
2780
- var _a, _b;
2942
+ var _a;
2781
2943
  if (isOpen) {
2782
2944
  this.pageNumber = 1;
2783
2945
  this.pageSize = 20;
2784
- if (((_a = this.searchQuery) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2785
- if (((_b = this.searchItem) === null || _b === void 0 ? void 0 : _b.length) > 0) {
2786
- this.websiteMultiFilterCtrl.setValue(this.searchItem);
2787
- this.ref.detectChanges();
2788
- }
2789
- }
2790
- // this.searchQuery = '';
2946
+ this.searchQuery = '';
2791
2947
  this.searching = false;
2792
2948
  //this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
2793
2949
  this.registerPanelScrollEvent(this.selectElem);
@@ -2795,14 +2951,14 @@ class MaterialSelectComponent extends MaterialComponent {
2795
2951
  else {
2796
2952
  this.removePanelScrollEvent();
2797
2953
  this.searching = false;
2798
- // this.selectedValue = this.getValue();
2799
- // if (this.selectedValue?.toString().length == 0) {
2800
- // this.productList = [];
2801
- // this.pageNumber = 1;
2802
- // this.pageSize = 20;
2803
- // this.searchQuery = '';
2804
- // this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
2805
- // }
2954
+ this.selectedValue = this.getValue();
2955
+ if (((_a = this.selectedValue) === null || _a === void 0 ? void 0 : _a.toString().length) == 0) {
2956
+ this.productList = [];
2957
+ this.pageNumber = 1;
2958
+ this.pageSize = 20;
2959
+ this.searchQuery = '';
2960
+ this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
2961
+ }
2806
2962
  }
2807
2963
  });
2808
2964
  }
@@ -2828,7 +2984,6 @@ class MaterialSelectComponent extends MaterialComponent {
2828
2984
  this.productList = [];
2829
2985
  this.searching = true;
2830
2986
  this.searchQuery = searchQuery;
2831
- this.searchItem = searchQuery;
2832
2987
  this.loadData(this.pageNumber, this.pageSize, searchQuery);
2833
2988
  }
2834
2989
  });
@@ -2849,6 +3004,22 @@ class MaterialSelectComponent extends MaterialComponent {
2849
3004
  });
2850
3005
  this.filteredOptions = this.selectOptions;
2851
3006
  }
3007
+ onSelectionChange(event, submitData, attributes) {
3008
+ }
3009
+ checkVendorRefItems(instance) {
3010
+ var _a;
3011
+ const selectValues = instance.component['selectValues'];
3012
+ const dataUrl = (_a = instance.component['data']) === null || _a === void 0 ? void 0 : _a.url;
3013
+ const isSelectValuesValid = selectValues != null && selectValues !== '' && selectValues !== undefined;
3014
+ const isDataUrlInvalid = dataUrl == null || dataUrl === '' || dataUrl === undefined;
3015
+ return isSelectValuesValid && isDataUrlInvalid;
3016
+ }
3017
+ getVendorRefList(instance) {
3018
+ var _a;
3019
+ const dataUrl = (_a = instance.component['data']) === null || _a === void 0 ? void 0 : _a.url;
3020
+ const isSelectValuesValid = dataUrl != null && dataUrl !== '' && dataUrl !== undefined;
3021
+ return isSelectValuesValid;
3022
+ }
2852
3023
  isError() {
2853
3024
  if (this.instance.error) {
2854
3025
  this.control.setErrors(this.instance.component.validate);
@@ -2878,8 +3049,12 @@ class MaterialSelectComponent extends MaterialComponent {
2878
3049
  compareObjects(o1, o2) {
2879
3050
  return _.isEqual(o1, o2);
2880
3051
  }
3052
+ checkIsAttributeTrue(newProductPickerFlag, attributeName) {
3053
+ return newProductPickerFlag && Object.keys(newProductPickerFlag).some(key => key.toLocaleLowerCase() === attributeName.toLowerCase() &&
3054
+ newProductPickerFlag[key].toLowerCase() === "true");
3055
+ }
2881
3056
  }
2882
- 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 }], target: i0.ɵɵFactoryTarget.Component });
3057
+ 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 });
2883
3058
  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: `
2884
3059
  <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2885
3060
  <ng-template #componentTemplate let-hasLabel>
@@ -2920,7 +3095,7 @@ MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
2920
3095
  <mat-error *ngIf="isError()" >{{ getErrorMessage() }}</mat-error>
2921
3096
  </mat-form-field>
2922
3097
  </ng-template>
2923
- `, 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" }] });
3098
+ `, 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: i10.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: i10.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" }] });
2924
3099
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectComponent, decorators: [{
2925
3100
  type: Component,
2926
3101
  args: [{ selector: 'mat-formio-select', template: `
@@ -2964,7 +3139,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
2964
3139
  </mat-form-field>
2965
3140
  </ng-template>
2966
3141
  `, 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"] }]
2967
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.HttpClient }]; }, propDecorators: { multiSelect: [{
3142
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.HttpClient }, { type: CommonService }]; }, propDecorators: { multiSelect: [{
2968
3143
  type: ViewChild,
2969
3144
  args: ['multiSelect', { static: true }]
2970
3145
  }], selectElem: [{