kui-crm 0.0.69 → 0.0.71
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/cjs/index.js +11 -0
- package/cjs/index.js.map +1 -1
- package/index.d.ts +14 -3
- package/index.js +11 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +12 -2
- package/utils/cjs/index.js +11 -0
- package/utils/cjs/index.js.map +1 -1
- package/utils/index.d.ts +2 -1
- package/utils/index.js +11 -1
- package/utils/index.js.map +1 -1
package/cjs/index.js
CHANGED
|
@@ -2789,6 +2789,16 @@ var phoneWithConditionSchema = function (condition) {
|
|
|
2789
2789
|
})
|
|
2790
2790
|
.nullable();
|
|
2791
2791
|
};
|
|
2792
|
+
var fieldWithConditionSchema = function (condition) {
|
|
2793
|
+
return yup__namespace
|
|
2794
|
+
.string()
|
|
2795
|
+
.nullable()
|
|
2796
|
+
.when(condition, {
|
|
2797
|
+
is: function (value) { return value === "true"; },
|
|
2798
|
+
then: function (rule) { return rule.required(defaultRequiredMessage); },
|
|
2799
|
+
})
|
|
2800
|
+
.nullable();
|
|
2801
|
+
};
|
|
2792
2802
|
var phoneNonRequiredSchema = function (name) {
|
|
2793
2803
|
return yup__namespace
|
|
2794
2804
|
.object({ phoneNumber: yup__namespace.string().nullable() })
|
|
@@ -3194,6 +3204,7 @@ exports.apartmentFields = apartmentFields;
|
|
|
3194
3204
|
exports.authFlag = authFlag;
|
|
3195
3205
|
exports.csrfTokenKey = csrfTokenKey;
|
|
3196
3206
|
exports.defaultRequiredMessage = defaultRequiredMessage;
|
|
3207
|
+
exports.fieldWithConditionSchema = fieldWithConditionSchema;
|
|
3197
3208
|
exports.genderMatches = genderMatches;
|
|
3198
3209
|
exports.getFillingInfoFields = getFillingInfoFields;
|
|
3199
3210
|
exports.getMeterFeaturesFieldsSchema = getMeterFeaturesFieldsSchema;
|