monkey-front-core 0.0.25 → 0.0.27
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/monkey-front-core.umd.js +21 -1
- package/bundles/monkey-front-core.umd.js.map +1 -1
- package/esm2015/lib/core/utils/validate-utils.js +17 -1
- package/fesm2015/monkey-front-core.js +18 -1
- package/fesm2015/monkey-front-core.js.map +1 -1
- package/lib/core/utils/validate-utils.d.ts +5 -0
- package/monkey-front-core-0.0.27.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.25.tgz +0 -0
|
@@ -1320,6 +1320,25 @@
|
|
|
1320
1320
|
return null;
|
|
1321
1321
|
};
|
|
1322
1322
|
return UnlockRegisterSponsorValidator;
|
|
1323
|
+
}());
|
|
1324
|
+
var DateRangeValidator = /** @class */ (function () {
|
|
1325
|
+
function DateRangeValidator() {
|
|
1326
|
+
}
|
|
1327
|
+
DateRangeValidator.do = function (control) {
|
|
1328
|
+
if (!control.parent || !control) {
|
|
1329
|
+
return null;
|
|
1330
|
+
}
|
|
1331
|
+
var dates = control.parent.get('dates').value;
|
|
1332
|
+
if (dates &&
|
|
1333
|
+
(!MonkeyEcxUtils.persistNullEmptyUndefined(dates.startDate) ||
|
|
1334
|
+
!MonkeyEcxUtils.persistNullEmptyUndefined(dates.endDate))) {
|
|
1335
|
+
return {
|
|
1336
|
+
invalidDateRange: true
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
return null;
|
|
1340
|
+
};
|
|
1341
|
+
return DateRangeValidator;
|
|
1323
1342
|
}());
|
|
1324
1343
|
|
|
1325
1344
|
var validateUtils = /*#__PURE__*/Object.freeze({
|
|
@@ -1335,7 +1354,8 @@
|
|
|
1335
1354
|
CustomDatesStartValidator: CustomDatesStartValidator,
|
|
1336
1355
|
CustomDatesEndValidator: CustomDatesEndValidator,
|
|
1337
1356
|
UnlockRegisterBuyerValidator: UnlockRegisterBuyerValidator,
|
|
1338
|
-
UnlockRegisterSponsorValidator: UnlockRegisterSponsorValidator
|
|
1357
|
+
UnlockRegisterSponsorValidator: UnlockRegisterSponsorValidator,
|
|
1358
|
+
DateRangeValidator: DateRangeValidator
|
|
1339
1359
|
});
|
|
1340
1360
|
|
|
1341
1361
|
/* eslint-disable no-unused-vars */
|