@3kles/kles-material-dynamicforms 1.2.0 → 1.2.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.
@@ -1100,9 +1100,10 @@ var componentMapper = {
1100
1100
  buttonToogleGroup: KlesFormButtonToogleGroupComponent
1101
1101
  };
1102
1102
  var KlesDynamicFieldDirective = /** @class */ (function () {
1103
- function KlesDynamicFieldDirective(resolver, container) {
1103
+ function KlesDynamicFieldDirective(resolver, container, injector) {
1104
1104
  this.resolver = resolver;
1105
1105
  this.container = container;
1106
+ this.injector = injector;
1106
1107
  }
1107
1108
  KlesDynamicFieldDirective.prototype.ngOnDestroy = function () {
1108
1109
  if (this.componentRef)
@@ -1132,16 +1133,10 @@ var KlesDynamicFieldDirective = /** @class */ (function () {
1132
1133
  var options = {
1133
1134
  providers: [
1134
1135
  { provide: MAT_DATE_LOCALE, useValue: this.field.dateOptions.language },
1135
- // {
1136
- // provide: DateAdapter,
1137
- // useClass: this.field.dateOptions.dateAdapter,
1138
- // // deps: [MAT_DATE_LOCALE, this.field.dateOptions.dateAdapterOptions]
1139
- // deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS]
1140
- // },
1141
1136
  { provide: MAT_DATE_FORMATS, useValue: this.field.dateOptions.dateFormat },
1142
1137
  ]
1143
1138
  };
1144
- var injector = Injector.create(options);
1139
+ var injector = Injector.create(options.providers, this.injector);
1145
1140
  this.componentRef = this.container.createComponent(factory, 0, injector);
1146
1141
  }
1147
1142
  else {
@@ -1153,7 +1148,8 @@ var KlesDynamicFieldDirective = /** @class */ (function () {
1153
1148
  };
1154
1149
  KlesDynamicFieldDirective.ctorParameters = function () { return [
1155
1150
  { type: ComponentFactoryResolver },
1156
- { type: ViewContainerRef }
1151
+ { type: ViewContainerRef },
1152
+ { type: Injector }
1157
1153
  ]; };
1158
1154
  __decorate([
1159
1155
  Input()