@pepperi-addons/ngx-lib 0.3.15-loader.13 → 0.3.15-loader.16
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.
- package/bundles/pepperi-addons-ngx-lib-form.umd.js +30 -3
- package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +1 -1
- package/esm2015/form/dynamic-field-generator.component.js +31 -4
- package/fesm2015/pepperi-addons-ngx-lib-form.js +30 -3
- package/fesm2015/pepperi-addons-ngx-lib-form.js.map +1 -1
- package/form/dynamic-field-generator.component.d.ts +1 -0
- package/form/pepperi-addons-ngx-lib-form.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3250,7 +3250,9 @@
|
|
|
3250
3250
|
var factory = this.getComponentFactory();
|
|
3251
3251
|
var componentRef = this._controlContainer.createComponent(factory);
|
|
3252
3252
|
this._containerRef = componentRef.instance;
|
|
3253
|
-
this.
|
|
3253
|
+
if (this._resolvedComponent) {
|
|
3254
|
+
this.setControlVariables();
|
|
3255
|
+
}
|
|
3254
3256
|
// this.pepList = componentRef.instance;
|
|
3255
3257
|
}
|
|
3256
3258
|
else {
|
|
@@ -3260,52 +3262,77 @@
|
|
|
3260
3262
|
PepDynamicFieldGeneratorComponent.prototype.getComponentFactory = function () {
|
|
3261
3263
|
switch (this._field.controlType) {
|
|
3262
3264
|
case 'address':
|
|
3265
|
+
this._resolvedComponent = address.PepAddressComponent;
|
|
3263
3266
|
return this._resolver.resolveComponentFactory(address.PepAddressComponent);
|
|
3264
3267
|
case 'attachment':
|
|
3268
|
+
this._resolvedComponent = attachment.PepAttachmentComponent;
|
|
3265
3269
|
return this._resolver.resolveComponentFactory(attachment.PepAttachmentComponent);
|
|
3266
3270
|
case 'checkbox':
|
|
3271
|
+
this._resolvedComponent = checkbox.PepCheckboxComponent;
|
|
3267
3272
|
return this._resolver.resolveComponentFactory(checkbox.PepCheckboxComponent);
|
|
3268
3273
|
case 'date':
|
|
3274
|
+
this._resolvedComponent = date.PepDateComponent;
|
|
3269
3275
|
return this._resolver.resolveComponentFactory(date.PepDateComponent);
|
|
3270
3276
|
case 'image':
|
|
3277
|
+
this._resolvedComponent = image.PepImageComponent;
|
|
3271
3278
|
return this._resolver.resolveComponentFactory(image.PepImageComponent);
|
|
3272
3279
|
case 'images':
|
|
3280
|
+
this._resolvedComponent = imagesFilmstrip.PepImagesFilmstripComponent;
|
|
3273
3281
|
return this._resolver.resolveComponentFactory(imagesFilmstrip.PepImagesFilmstripComponent);
|
|
3274
3282
|
case 'qs':
|
|
3283
|
+
this._resolvedComponent = quantitySelector.PepQuantitySelectorComponent;
|
|
3275
3284
|
return this._resolver.resolveComponentFactory(quantitySelector.PepQuantitySelectorComponent);
|
|
3276
3285
|
case 'richhtmltextarea':
|
|
3286
|
+
this._resolvedComponent = richHtmlTextarea.PepRichHtmlTextareaComponent;
|
|
3277
3287
|
return this._resolver.resolveComponentFactory(richHtmlTextarea.PepRichHtmlTextareaComponent);
|
|
3278
3288
|
case 'select':
|
|
3289
|
+
this._resolvedComponent = select.PepSelectComponent;
|
|
3279
3290
|
return this._resolver.resolveComponentFactory(select.PepSelectComponent);
|
|
3280
3291
|
case 'separator':
|
|
3292
|
+
this._resolvedComponent = separator.PepSeparatorComponent;
|
|
3281
3293
|
return this._resolver.resolveComponentFactory(separator.PepSeparatorComponent);
|
|
3282
3294
|
/*case 'signature':
|
|
3295
|
+
this._resolvedComponent = PepSignatureComponent;
|
|
3283
3296
|
return this._resolver.resolveComponentFactory(PepSignatureComponent); */
|
|
3284
3297
|
case 'textarea':
|
|
3298
|
+
this._resolvedComponent = textarea.PepTextareaComponent;
|
|
3285
3299
|
return this._resolver.resolveComponentFactory(textarea.PepTextareaComponent);
|
|
3286
3300
|
case 'textbox':
|
|
3301
|
+
this._resolvedComponent = textbox.PepTextboxComponent;
|
|
3287
3302
|
return this._resolver.resolveComponentFactory(textbox.PepTextboxComponent);
|
|
3288
3303
|
case 'link':
|
|
3304
|
+
this._resolvedComponent = link.PepLinkComponent;
|
|
3289
3305
|
return this._resolver.resolveComponentFactory(link.PepLinkComponent);
|
|
3290
3306
|
case 'indicators':
|
|
3307
|
+
this._resolvedComponent = PepIndicatorsComponent;
|
|
3291
3308
|
return this._resolver.resolveComponentFactory(PepIndicatorsComponent);
|
|
3292
3309
|
case 'button':
|
|
3310
|
+
this._resolvedComponent = PepInternalButtonComponent;
|
|
3293
3311
|
return this._resolver.resolveComponentFactory(PepInternalButtonComponent);
|
|
3294
3312
|
case 'menu':
|
|
3313
|
+
this._resolvedComponent = PepInternalMenuComponent;
|
|
3295
3314
|
return this._resolver.resolveComponentFactory(PepInternalMenuComponent);
|
|
3296
3315
|
case 'internalPage':
|
|
3316
|
+
this._resolvedComponent = PepInternalPageComponent;
|
|
3297
3317
|
return this._resolver.resolveComponentFactory(PepInternalPageComponent);
|
|
3298
3318
|
case 'internalCarusel':
|
|
3319
|
+
this._resolvedComponent = PepInternalCaruselComponent;
|
|
3299
3320
|
return this._resolver.resolveComponentFactory(PepInternalCaruselComponent);
|
|
3300
3321
|
}
|
|
3301
3322
|
};
|
|
3302
3323
|
PepDynamicFieldGeneratorComponent.prototype.setControlVariables = function () {
|
|
3303
3324
|
var _this = this;
|
|
3304
3325
|
this._containerRef.form = this.form;
|
|
3305
|
-
debugger;
|
|
3326
|
+
// debugger;
|
|
3327
|
+
/*Object.entries(this._field).forEach((prop: [string, any]) => {
|
|
3328
|
+
console.log('prop', prop);
|
|
3329
|
+
if (prop[1] !== undefined && this.hasProperty(this._resolvedComponent.propDecorators, prop[0])) {
|
|
3330
|
+
this._containerRef[prop[0]] = prop[1];
|
|
3331
|
+
}
|
|
3332
|
+
}) */
|
|
3306
3333
|
Object.entries(this._field).forEach(function (prop) {
|
|
3307
3334
|
console.log('prop', prop);
|
|
3308
|
-
if (_this.hasProperty(
|
|
3335
|
+
if (prop[1] !== undefined && _this.hasProperty(_this._containerRef, prop[0])) {
|
|
3309
3336
|
_this._containerRef[prop[0]] = prop[1];
|
|
3310
3337
|
}
|
|
3311
3338
|
});
|