@po-ui/ng-components 5.13.0 → 5.13.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.
- package/bundles/po-ui-ng-components.umd.js +4 -3
- package/bundles/po-ui-ng-components.umd.js.map +1 -1
- package/esm2015/lib/components/po-calendar/po-calendar-base.component.js +2 -2
- package/esm2015/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.js +3 -2
- package/esm2015/lib/components/po-page/po-page-action.interface.js +1 -1
- package/esm2015/lib/services/po-date/po-date.service.js +1 -1
- package/fesm2015/po-ui-ng-components.js +3 -2
- package/fesm2015/po-ui-ng-components.js.map +1 -1
- package/lib/components/po-page/po-page-action.interface.d.ts +2 -0
- package/lib/services/po-date/po-date.service.d.ts +1 -1
- package/package.json +4 -4
- package/po-ui-ng-components-5.13.1.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/po-ui-ng-components-5.13.0.tgz +0 -0
|
@@ -3842,7 +3842,7 @@
|
|
|
3842
3842
|
PoCalendarBaseComponent.prototype.setActivateDate = function (date) {
|
|
3843
3843
|
var activateDate = date ? date : this.verifyActivateDate();
|
|
3844
3844
|
if (this.isRange) {
|
|
3845
|
-
var checkedStart = new Date(activateDate);
|
|
3845
|
+
var checkedStart = typeof activateDate === 'string' ? this.poDate.convertIsoToDate(activateDate) : new Date(activateDate);
|
|
3846
3846
|
var checkedEnd = new Date(new Date(checkedStart).setMonth(checkedStart.getMonth() + 1));
|
|
3847
3847
|
this.activateDate = { start: checkedStart, end: checkedEnd };
|
|
3848
3848
|
}
|
|
@@ -27875,16 +27875,17 @@
|
|
|
27875
27875
|
};
|
|
27876
27876
|
PoDynamicFormFieldsComponent.prototype.onChangeField = function (visibleField, objectValue) {
|
|
27877
27877
|
return __awaiter(this, void 0, void 0, function () {
|
|
27878
|
-
var property, isChangedValueField, _b, changedField, changedFieldIndex;
|
|
27878
|
+
var property, isBooleanType, isChangedValueField, _b, changedField, changedFieldIndex;
|
|
27879
27879
|
return __generator(this, function (_c) {
|
|
27880
27880
|
switch (_c.label) {
|
|
27881
27881
|
case 0:
|
|
27882
27882
|
property = visibleField.property;
|
|
27883
|
+
isBooleanType = visibleField.type === 'boolean';
|
|
27883
27884
|
isChangedValueField = this.previousValue[property] !== this.value[property];
|
|
27884
27885
|
if (visibleField.optionsService) {
|
|
27885
27886
|
this.objectValue.emit(objectValue);
|
|
27886
27887
|
}
|
|
27887
|
-
if (!(this.form.touched && isChangedValueField)) return [3 /*break*/, 3];
|
|
27888
|
+
if (!((this.form.touched || isBooleanType) && isChangedValueField)) return [3 /*break*/, 3];
|
|
27888
27889
|
_b = this.getField(property), changedField = _b.changedField, changedFieldIndex = _b.changedFieldIndex;
|
|
27889
27890
|
if (!changedField.validate) return [3 /*break*/, 2];
|
|
27890
27891
|
return [4 /*yield*/, this.validateField(changedField, changedFieldIndex, visibleField)];
|