@evergis/react 2.0.70 → 2.0.73
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/dist/core/classification/types.d.ts +2 -2
- package/dist/react.cjs.development.js +9 -6
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +9 -6
- package/dist/react.esm.js.map +1 -1
- package/package.json +10 -10
package/dist/react.esm.js
CHANGED
|
@@ -963,30 +963,33 @@ const unClassify = symbol => Object.entries(symbol).reduce((flatSymbol, _ref) =>
|
|
|
963
963
|
}, {});
|
|
964
964
|
|
|
965
965
|
const printRangeClass = (value, index) => {
|
|
966
|
-
|
|
966
|
+
var _value$attribute, _value$attribute2;
|
|
967
|
+
|
|
968
|
+
const isDouble = Boolean(((_value$attribute = value.attribute) == null ? void 0 : _value$attribute.type) === 'Double');
|
|
969
|
+
const isDate = Boolean(((_value$attribute2 = value.attribute) == null ? void 0 : _value$attribute2.type) === 'DateTime');
|
|
967
970
|
const {
|
|
968
971
|
from,
|
|
969
972
|
to
|
|
970
|
-
} = getRangeValues(value, isDouble, index);
|
|
973
|
+
} = getRangeValues(value, isDouble, isDate, index);
|
|
971
974
|
|
|
972
975
|
if (from === null) {
|
|
973
|
-
return to + "
|
|
976
|
+
return to + " " + (isDate ? 'и до' : 'и менее');
|
|
974
977
|
}
|
|
975
978
|
|
|
976
979
|
if (to === null) {
|
|
977
|
-
return "
|
|
980
|
+
return (isDate ? 'после' : 'более') + " " + from;
|
|
978
981
|
}
|
|
979
982
|
|
|
980
983
|
return from === to ? "" + from : from + " - " + to;
|
|
981
984
|
};
|
|
982
985
|
|
|
983
|
-
function getRangeValues(_ref, isDouble, index) {
|
|
986
|
+
function getRangeValues(_ref, isDouble, isDate, index) {
|
|
984
987
|
let {
|
|
985
988
|
from,
|
|
986
989
|
to
|
|
987
990
|
} = _ref;
|
|
988
991
|
return {
|
|
989
|
-
from: from !== null && index !== 0 ? isDouble ? +from : +from + 1 : from,
|
|
992
|
+
from: from !== null && index !== 0 ? isDate ? from : isDouble ? +from : +from + 1 : from,
|
|
990
993
|
to
|
|
991
994
|
};
|
|
992
995
|
}
|