@stemy/ngx-dynamic-form 10.2.30 → 10.2.31

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.
@@ -568,9 +568,10 @@
568
568
 
569
569
  var DynamicFormService = /** @class */ (function (_super) {
570
570
  __extends(DynamicFormService, _super);
571
- function DynamicFormService(cs, vs, openApi) {
571
+ function DynamicFormService(cs, vs, openApi, injector) {
572
572
  var _this = _super.call(this, cs, vs) || this;
573
573
  _this.openApi = openApi;
574
+ _this.injector = injector;
574
575
  _this.onDetectChanges = new core$1.EventEmitter();
575
576
  return _this;
576
577
  }
@@ -777,6 +778,7 @@
777
778
  DynamicFormService.prototype.getFormModelForSchema = function (name, customizeModel) {
778
779
  return __awaiter(this, void 0, void 0, function () {
779
780
  var _c, customizeModels;
781
+ var _this = this;
780
782
  return __generator(this, function (_d) {
781
783
  switch (_d.label) {
782
784
  case 0:
@@ -789,7 +791,7 @@
789
791
  var model = new modelType(config);
790
792
  if (!ngxUtils.ObjectUtils.isFunction(customizeModel))
791
793
  return [model];
792
- var res = customizeModel(property, schema, model, config);
794
+ var res = customizeModel(property, schema, model, config, _this.injector);
793
795
  return Array.isArray(res) ? res : [res];
794
796
  };
795
797
  return [2 /*return*/, this.getFormModelForSchemaDef(this.schemas[name], customizeModels)];
@@ -1086,7 +1088,8 @@
1086
1088
  DynamicFormService.ctorParameters = function () { return [
1087
1089
  { type: core.DynamicFormComponentService },
1088
1090
  { type: core.DynamicFormValidationService },
1089
- { type: ngxUtils.OpenApiService }
1091
+ { type: ngxUtils.OpenApiService, decorators: [{ type: core$1.Inject, args: [ngxUtils.OpenApiService,] }] },
1092
+ { type: core$1.Injector, decorators: [{ type: core$1.Inject, args: [core$1.Injector,] }] }
1090
1093
  ]; };
1091
1094
 
1092
1095
  var AsyncSubmitDirective = /** @class */ (function () {