@pepperi-addons/ngx-lib 0.2.51-beta.13 → 0.2.51-beta.17
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 +26 -11
- package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib.umd.js +5 -1
- package/bundles/pepperi-addons-ngx-lib.umd.js.map +1 -1
- package/core/common/model/wapi.model.d.ts +1 -0
- package/core/customization/customization.model.d.ts +1 -0
- package/esm2015/core/common/model/wapi.model.js +1 -1
- package/esm2015/core/customization/customization.model.js +5 -1
- package/esm2015/form/form.component.js +12 -7
- package/esm2015/form/internal-carusel.component.js +12 -6
- package/fesm2015/pepperi-addons-ngx-lib-form.js +22 -11
- package/fesm2015/pepperi-addons-ngx-lib-form.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib.js +4 -0
- package/fesm2015/pepperi-addons-ngx-lib.js.map +1 -1
- package/form/internal-carusel.component.d.ts +3 -1
- package/form/pepperi-addons-ngx-lib-form.metadata.json +1 -1
- package/package.json +1 -1
- package/pepperi-addons-ngx-lib.metadata.json +1 -1
|
@@ -860,6 +860,10 @@
|
|
|
860
860
|
fieldFormattedValue =
|
|
861
861
|
fieldFormattedValue === '0' ? '' : fieldFormattedValue;
|
|
862
862
|
}
|
|
863
|
+
// Fix for the internal carusel component (just do a change for refresh the view).
|
|
864
|
+
if (field.controlType === 'internalCarusel') {
|
|
865
|
+
fieldFormattedValue = new Date().getTime();
|
|
866
|
+
}
|
|
863
867
|
return fieldFormattedValue;
|
|
864
868
|
};
|
|
865
869
|
PepFormComponent.prototype.toControlGroup = function (fields) {
|
|
@@ -1151,9 +1155,8 @@
|
|
|
1151
1155
|
try {
|
|
1152
1156
|
for (var _e = __values(this.fields), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
1153
1157
|
var currentField = _f.value;
|
|
1154
|
-
// Add all fields except 'internalPage'
|
|
1155
|
-
if (currentField.controlType !== 'internalPage'
|
|
1156
|
-
currentField.controlType !== 'internalCarusel') {
|
|
1158
|
+
// Add all fields except 'internalPage' (for children).
|
|
1159
|
+
if (currentField.controlType !== 'internalPage') {
|
|
1157
1160
|
fields.push(currentField);
|
|
1158
1161
|
}
|
|
1159
1162
|
if (!currentField.readonly) {
|
|
@@ -1175,8 +1178,7 @@
|
|
|
1175
1178
|
// Update form values if changed by calculated fields.
|
|
1176
1179
|
for (var _g = __values(this.fields), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
1177
1180
|
var currentField = _h.value;
|
|
1178
|
-
if (currentField.controlType !== 'internalPage'
|
|
1179
|
-
currentField.controlType !== 'internalCarusel') {
|
|
1181
|
+
if (currentField.controlType !== 'internalPage') {
|
|
1180
1182
|
if (currentField.groupFields &&
|
|
1181
1183
|
currentField.groupFields.length > 0) {
|
|
1182
1184
|
try {
|
|
@@ -1260,6 +1262,9 @@
|
|
|
1260
1262
|
});
|
|
1261
1263
|
}
|
|
1262
1264
|
}
|
|
1265
|
+
else if (customField instanceof ngxLib.PepInternalCaruselField) {
|
|
1266
|
+
options.pageInfo = updatedField.UIPageInfo;
|
|
1267
|
+
}
|
|
1263
1268
|
customField.update(options);
|
|
1264
1269
|
};
|
|
1265
1270
|
PepFormComponent.prototype.updateForm = function () {
|
|
@@ -1269,7 +1274,7 @@
|
|
|
1269
1274
|
var e_8, _e;
|
|
1270
1275
|
var customField = this_1.fields.filter(function (f) { return f.key === currentField.ApiName; })[0];
|
|
1271
1276
|
// Update all fields except 'internalPage' type (for children).
|
|
1272
|
-
if (customField &&
|
|
1277
|
+
if (customField && customField.controlType !== 'internalPage') {
|
|
1273
1278
|
this_1.updateField(customField, currentField);
|
|
1274
1279
|
// Update the group fields.
|
|
1275
1280
|
if (customField.controlType === 'address' &&
|
|
@@ -3058,6 +3063,21 @@
|
|
|
3058
3063
|
this.nextDisabled = false;
|
|
3059
3064
|
this.PepScreenSizeType = ngxLib.PepScreenSizeType;
|
|
3060
3065
|
}
|
|
3066
|
+
Object.defineProperty(PepInternalCaruselComponent.prototype, "field", {
|
|
3067
|
+
get: function () {
|
|
3068
|
+
return this._field;
|
|
3069
|
+
},
|
|
3070
|
+
set: function (value) {
|
|
3071
|
+
this._field = value;
|
|
3072
|
+
var caruselField = this._field;
|
|
3073
|
+
if (caruselField && caruselField.pageInfo) {
|
|
3074
|
+
this.layout = caruselField.pageInfo.UIControl;
|
|
3075
|
+
this.items = caruselField.pageInfo.Rows;
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3078
|
+
enumerable: false,
|
|
3079
|
+
configurable: true
|
|
3080
|
+
});
|
|
3061
3081
|
Object.defineProperty(PepInternalCaruselComponent.prototype, "items", {
|
|
3062
3082
|
get: function () {
|
|
3063
3083
|
return this._items;
|
|
@@ -3070,11 +3090,6 @@
|
|
|
3070
3090
|
configurable: true
|
|
3071
3091
|
});
|
|
3072
3092
|
PepInternalCaruselComponent.prototype.ngOnInit = function () {
|
|
3073
|
-
var caruselField = this.field;
|
|
3074
|
-
if (caruselField) {
|
|
3075
|
-
this.layout = caruselField.pageInfo.UIControl;
|
|
3076
|
-
this.items = caruselField.pageInfo.Rows;
|
|
3077
|
-
}
|
|
3078
3093
|
};
|
|
3079
3094
|
PepInternalCaruselComponent.prototype.ngAfterViewInit = function () {
|
|
3080
3095
|
var _this = this;
|