@pepperi-addons/ngx-lib 0.3.15-loader.16 → 0.3.15-loader.19

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.
@@ -3248,11 +3248,18 @@
3248
3248
  PepDynamicFieldGeneratorComponent.prototype.createControlDynamically = function () {
3249
3249
  if (this._controlContainer) {
3250
3250
  var factory = this.getComponentFactory();
3251
- var componentRef = this._controlContainer.createComponent(factory);
3252
- this._containerRef = componentRef.instance;
3253
- if (this._resolvedComponent) {
3254
- this.setControlVariables();
3251
+ if (factory) {
3252
+ var componentRef = this._controlContainer.createComponent(factory);
3253
+ this._containerRef = componentRef.instance;
3254
+ this.setBaseProperties();
3255
+ this.setControlProperties();
3256
+ this.setAdditionalProperties();
3255
3257
  }
3258
+ else {
3259
+ console.log('no fctory for comp type - ', this._field.controlType);
3260
+ }
3261
+ //if (this._resolvedComponent) {
3262
+ // }
3256
3263
  // this.pepList = componentRef.instance;
3257
3264
  }
3258
3265
  else {
@@ -3320,9 +3327,17 @@
3320
3327
  return this._resolver.resolveComponentFactory(PepInternalCaruselComponent);
3321
3328
  }
3322
3329
  };
3323
- PepDynamicFieldGeneratorComponent.prototype.setControlVariables = function () {
3330
+ PepDynamicFieldGeneratorComponent.prototype.setBaseProperties = function () {
3331
+ switch (this._field.controlType) {
3332
+ case 'textbox':
3333
+ this._containerRef.form = this.form;
3334
+ this._containerRef.showTitle = this.showTitle;
3335
+ this._containerRef.layoutType = this.layoutType;
3336
+ break;
3337
+ }
3338
+ };
3339
+ PepDynamicFieldGeneratorComponent.prototype.setControlProperties = function () {
3324
3340
  var _this = this;
3325
- this._containerRef.form = this.form;
3326
3341
  // debugger;
3327
3342
  /*Object.entries(this._field).forEach((prop: [string, any]) => {
3328
3343
  console.log('prop', prop);
@@ -3337,14 +3352,16 @@
3337
3352
  }
3338
3353
  });
3339
3354
  };
3355
+ PepDynamicFieldGeneratorComponent.prototype.setAdditionalProperties = function () {
3356
+ };
3340
3357
  return PepDynamicFieldGeneratorComponent;
3341
3358
  }());
3342
3359
  PepDynamicFieldGeneratorComponent.decorators = [
3343
3360
  { type: core.Component, args: [{
3344
3361
  selector: 'pep-dynamic-field-generator',
3345
- template: "<ng-container [formGroup]=\"form\">\n <ng-container #controlContainer></ng-container>\n</ng-container>",
3362
+ template: "<ng-container [formGroup]=\"form\">\n <div #controlContainer></div>\n</ng-container>",
3346
3363
  changeDetection: core.ChangeDetectionStrategy.OnPush,
3347
- styles: [""]
3364
+ styles: [":host{width:100%;height:100%}"]
3348
3365
  },] }
3349
3366
  ];
3350
3367
  PepDynamicFieldGeneratorComponent.ctorParameters = function () { return [