sccoreui 6.2.30 → 6.2.31
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.
|
@@ -55,7 +55,7 @@ const Conditions = (props) => {
|
|
|
55
55
|
return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { disabled: !condition, className: "border-noround-left col-4 focus:shadow-none lh-44 h-44 flex align-items-center pl-3", value: value, placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_Input) ? filterModelText.elementThreePlaceHolder_Input : "Enter", onChange: (event) => handleDynamicFieldState(event.target.value) }));
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
58
|
-
return ((0, jsx_runtime_1.jsx)(chips_1.Chips, { value: value, disabled: !condition, className: "table_filters_1 border-noround-left col-4 focus:shadow-none lh-44 h-44 chip_comp flex align-items-center", onChange: (e) => handleDynamicFieldState(e.target.value), placeholder: "Enter", separator: "," }));
|
|
58
|
+
return ((0, jsx_runtime_1.jsx)(chips_1.Chips, { value: value, type: '', disabled: !condition, className: "table_filters_1 border-noround-left col-4 focus:shadow-none lh-44 h-44 chip_comp flex align-items-center", onChange: (e) => handleDynamicFieldState(e.target.value), placeholder: "Enter", separator: "," }));
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
case Types_1.FilterDataType.DECIMAL:
|
|
@@ -74,6 +74,9 @@ const Conditions = (props) => {
|
|
|
74
74
|
if (condition === Types_1.FilteredConditionTypes.IS_BETWEEN || condition === Types_1.FilteredConditionTypes.IS_NOT_BETWEEN) {
|
|
75
75
|
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "border-noround-left p-0 col-4 mx-0 focus:shadow-none lh-44 h-44 flex" }, { children: [(0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, { disabled: !condition, min: 0, useGrouping: false, max: ((_a = selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnName) === null || _a === void 0 ? void 0 : _a.dataType) === Types_1.FilterDataType.PERCENT ? 99.999 : Infinity, maxFractionDigits: ((_b = selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnName) === null || _b === void 0 ? void 0 : _b.dataType) === Types_1.FilterDataType.INTEGER ? 0 : 2, inputClassName: "mx-0 w-full lh-44 h-44", className: ` w-7ren border-noround-left lh-44 h-44 border-noround-right dropdown-focus-none ${Array.isArray(value) && value.length == 2 ? (value[0] > value[1] ? "p-invalid" : "") : ""}`, value: Array.isArray(value) ? value[0] : null, placeholder: "Min", onChange: (event) => handleChange1(event.value) }), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, { disabled: !condition || !(Array.isArray(value) && value[0]), min: 0, useGrouping: false, max: ((_c = selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnName) === null || _c === void 0 ? void 0 : _c.dataType) === Types_1.FilterDataType.PERCENT ? 99.999 : Infinity, maxFractionDigits: ((_d = selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnName) === null || _d === void 0 ? void 0 : _d.dataType) === Types_1.FilterDataType.INTEGER ? 0 : 2, inputClassName: "mx-0 w-full lh-44 h-44", className: `w-7ren border-noround-left lh-44 h-44 dropdown-focus-none ${Array.isArray(value) && value.length == 2 ? (value[0] > value[1] ? "p-invalid" : "") : ""}`, value: Array.isArray(value) ? value[1] : null, placeholder: "Max", onChange: (event) => { handleChange2(event.value); } })] })));
|
|
76
76
|
}
|
|
77
|
+
else if (condition === Types_1.FilteredConditionTypes.IS_ANY_OF || condition === Types_1.FilteredConditionTypes.IS_NONE_OF) {
|
|
78
|
+
return ((0, jsx_runtime_1.jsx)(chips_1.Chips, { value: value, type: '', keyfilter: "money", disabled: !condition, className: "table_filters_1 border-noround-left col-4 focus:shadow-none lh-44 h-44 chip_comp flex align-items-center", onChange: (e) => handleDynamicFieldState(e.target.value), placeholder: "Enter", separator: "," }));
|
|
79
|
+
}
|
|
77
80
|
else {
|
|
78
81
|
return ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, { value: value, useGrouping: false, min: 0, maxFractionDigits: ((_e = selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnName) === null || _e === void 0 ? void 0 : _e.dataType) === Types_1.FilterDataType.INTEGER ? 0 : 2, max: ((_f = selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnName) === null || _f === void 0 ? void 0 : _f.dataType) === Types_1.FilterDataType.PERCENT ? 99.999 : Infinity, disabled: !condition, placeholder: "Enter", inputClassName: "mx-0 w-full lh-44 h-44", className: "border-noround-left p-0 col-4 mx-0 focus:shadow-none lh-44 h-44", onChange: (event) => handleDynamicFieldState(event.value) }));
|
|
79
82
|
}
|