@true-engineering/true-react-common-ui-kit 3.48.0 → 3.49.0
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/README.md +8 -0
- package/dist/components/FiltersPane/types.d.ts +15 -5
- package/dist/true-react-common-ui-kit.js +19 -17
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +19 -17
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +19 -17
- package/src/components/FiltersPane/types.ts +23 -5
|
@@ -19048,7 +19048,7 @@
|
|
|
19048
19048
|
if (trueReactPlatformHelpers.isEmpty(value)) {
|
|
19049
19049
|
return /* @__PURE__ */ jsx(Fragment, {});
|
|
19050
19050
|
}
|
|
19051
|
-
if (filter.getSelectedValueView
|
|
19051
|
+
if (trueReactPlatformHelpers.isNotEmpty(filter.getSelectedValueView)) {
|
|
19052
19052
|
return /* @__PURE__ */ jsx("span", {
|
|
19053
19053
|
className: classes.text,
|
|
19054
19054
|
children: filter.getSelectedValueView(value)
|
|
@@ -19117,22 +19117,6 @@
|
|
|
19117
19117
|
children: intervals.join(" ")
|
|
19118
19118
|
});
|
|
19119
19119
|
}
|
|
19120
|
-
if (isMultiple) {
|
|
19121
|
-
return /* @__PURE__ */ jsx(Fragment, {
|
|
19122
|
-
children: Array.isArray(value) && value.length > 0 && /* @__PURE__ */ jsxs(Fragment, {
|
|
19123
|
-
children: [
|
|
19124
|
-
/* @__PURE__ */ jsx("span", {
|
|
19125
|
-
className: classes.text,
|
|
19126
|
-
children: displayValue(value[0])
|
|
19127
|
-
}),
|
|
19128
|
-
/* @__PURE__ */ jsx("span", {
|
|
19129
|
-
className: classes.count,
|
|
19130
|
-
children: value.length > 1 && " (+".concat(value.length - 1, ")")
|
|
19131
|
-
})
|
|
19132
|
-
]
|
|
19133
|
-
})
|
|
19134
|
-
});
|
|
19135
|
-
}
|
|
19136
19120
|
if (isDate) {
|
|
19137
19121
|
var from = value.from, to = value.to, periodType = value.periodType, label = value.label;
|
|
19138
19122
|
var hasFrom = from !== void 0 && from !== null;
|
|
@@ -19163,6 +19147,24 @@
|
|
|
19163
19147
|
children: range.join(" ")
|
|
19164
19148
|
});
|
|
19165
19149
|
}
|
|
19150
|
+
if (isMultiple) {
|
|
19151
|
+
var _filter_getSelectedValue;
|
|
19152
|
+
var convertValue = (_filter_getSelectedValue = filter.getSelectedValue) !== null && _filter_getSelectedValue !== void 0 ? _filter_getSelectedValue : displayValue;
|
|
19153
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
19154
|
+
children: Array.isArray(value) && value.length > 0 && /* @__PURE__ */ jsxs(Fragment, {
|
|
19155
|
+
children: [
|
|
19156
|
+
/* @__PURE__ */ jsx("span", {
|
|
19157
|
+
className: classes.text,
|
|
19158
|
+
children: convertValue(value[0])
|
|
19159
|
+
}),
|
|
19160
|
+
/* @__PURE__ */ jsx("span", {
|
|
19161
|
+
className: classes.count,
|
|
19162
|
+
children: value.length > 1 && " (+".concat(value.length - 1, ")")
|
|
19163
|
+
})
|
|
19164
|
+
]
|
|
19165
|
+
})
|
|
19166
|
+
});
|
|
19167
|
+
}
|
|
19166
19168
|
if (isRange && Array.isArray(value)) {
|
|
19167
19169
|
var rangeValue = value;
|
|
19168
19170
|
var rangeValueFrom = rangeValue[0];
|