ods-component-lib 1.18.220 → 1.18.222
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/components/filter/OdsFilterPlus.d.ts +2 -2
- package/dist/index.js +12 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -25,5 +25,5 @@ export interface FilterProps {
|
|
|
25
25
|
onFinishFailed?: () => void;
|
|
26
26
|
onClickClear?: () => void;
|
|
27
27
|
}
|
|
28
|
-
declare const
|
|
29
|
-
export default
|
|
28
|
+
declare const OdsFilterPlus: (props: PropsWithChildren<FilterProps>) => React.JSX.Element;
|
|
29
|
+
export default OdsFilterPlus;
|
package/dist/index.js
CHANGED
|
@@ -1917,7 +1917,7 @@ var OdsFilter = function OdsFilter(props) {
|
|
|
1917
1917
|
}, props.buttonApplyName)))))));
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
|
-
var _templateObject$q, _templateObject2$2, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1;
|
|
1920
|
+
var _templateObject$q, _templateObject2$2, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17, _templateObject18;
|
|
1921
1921
|
var useStyles$1 = antdStyle.createStyles(function (_ref, props) {
|
|
1922
1922
|
var css = _ref.css,
|
|
1923
1923
|
cx = _ref.cx,
|
|
@@ -1933,10 +1933,10 @@ var useStyles$1 = antdStyle.createStyles(function (_ref, props) {
|
|
|
1933
1933
|
filterTopActions: cx(flex, css(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n justify-content: flex-end;\n gap: ", "px;\n "])), token.sizeSM)),
|
|
1934
1934
|
filterBodyWrapper: cx(grid, css(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n transition: grid-template-rows 0.3s;\n grid-template-rows: ", ";\n "])), props.open ? "1fr" : "0fr")),
|
|
1935
1935
|
filterBody: cx(css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n width: 100%;\n "])))),
|
|
1936
|
-
filterActionButtonsWrapper: cx(
|
|
1937
|
-
filterActionButtons: cx(flex, css(
|
|
1938
|
-
filterTagsWrapper: cx(flex, css(
|
|
1939
|
-
filterInlineDisplayWrapper: props.isDisplayInline ? cx("
|
|
1936
|
+
filterActionButtonsWrapper: cx(flex, css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n justify-content: flex-end;\n margin-top: 16px;\n "])))),
|
|
1937
|
+
filterActionButtons: cx(flex, css(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n justify-content: flex-end;\n gap: ", "px;\n align-items: flex-end;\n "])), token.sizeSM)),
|
|
1938
|
+
filterTagsWrapper: cx(flex, css(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n align-items: center;\n justify-content: center;\n width: 85%;\n max-width: 85%;\n min-width: 85%;\n transition: opacity 0.3s;\n opacity: ", ";\n "])), props.open ? 0 : 1)),
|
|
1939
|
+
filterInlineDisplayWrapper: props.isDisplayInline ? cx(css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: 1fr auto;\n width: 100%;\n "])))) : "",
|
|
1940
1940
|
toggleButton: cx(flex),
|
|
1941
1941
|
clearButton: cx(flex)
|
|
1942
1942
|
};
|
|
@@ -1946,21 +1946,21 @@ var useAdvancedFilterButtonStyles$1 = antdStyle.createStyles(function (_ref2, pr
|
|
|
1946
1946
|
cx = _ref2.cx,
|
|
1947
1947
|
token = _ref2.token;
|
|
1948
1948
|
return {
|
|
1949
|
-
advancedFilterButton: cx(
|
|
1950
|
-
advancedFilterRowWrapper: cx(
|
|
1951
|
-
advancedFilterRow: cx(css(
|
|
1949
|
+
advancedFilterButton: cx(css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n color: ", ";\n align-items: center;\n justify-content: center;\n padding-left: ", "px;\n padding-right: ", "px;\n "])), token.colorPrimary, token.padding, token.padding)),
|
|
1950
|
+
advancedFilterRowWrapper: cx(css(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n margin-top: 16px;\n margin-bottom: 16px;\n display: grid;\n transition: grid-template-rows 0.3s;\n grid-template-rows: ", ";\n "])), props.open ? "1fr" : "0fr")),
|
|
1951
|
+
advancedFilterRow: cx(css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n display: grid;\n overflow: hidden;\n width: 100%;\n "]))))
|
|
1952
1952
|
};
|
|
1953
1953
|
});
|
|
1954
1954
|
var useFilterTagsStyles$1 = antdStyle.createStyles(function (_ref3) {
|
|
1955
1955
|
var css = _ref3.css,
|
|
1956
1956
|
token = _ref3.token;
|
|
1957
1957
|
return {
|
|
1958
|
-
menu: css(
|
|
1958
|
+
menu: css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 0;\n gap: ", "px;\n position: relative;\n\n &::after,\n &::before {\n display: none;\n }\n\n &.ant-menu-light.ant-menu-horizontal {\n & > .ant-menu-item {\n cursor: default;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n top: unset;\n }\n\n & > .ant-menu-submenu {\n &:hover {\n &::after {\n display: none;\n }\n }\n }\n }\n\n &.ant-menu-light.ant-menu-horizontal > .ant-menu-submenu-selected::after {\n display: none;\n }\n\n &.ant-menu-light.ant-menu-horizontal > .ant-menu-item::after,\n &.ant-menu-light.ant-menu-horizontal > .ant-menu-item:hover::after {\n display: none;\n }\n\n &.ant-menu-light.ant-menu-horizontal\n > .ant-menu-submenu\n &.ant-menu-light.ant-menu-horizontal\n > .ant-menu-item::after {\n display: none;\n }\n "])), token.sizeXS)
|
|
1959
1959
|
};
|
|
1960
1960
|
});
|
|
1961
1961
|
|
|
1962
1962
|
var Title$1 = antd.Typography.Title;
|
|
1963
|
-
var
|
|
1963
|
+
var OdsFilterPlus = function OdsFilterPlus(props) {
|
|
1964
1964
|
var _props$filterRow, _props$filterRow2;
|
|
1965
1965
|
var _props$isAdvancedSear = props.isAdvancedSearchEnabled,
|
|
1966
1966
|
isAdvancedSearchEnabled = _props$isAdvancedSear === void 0 ? true : _props$isAdvancedSear;
|
|
@@ -2117,9 +2117,7 @@ var OdsFilter$1 = function OdsFilter(props) {
|
|
|
2117
2117
|
lg: 4
|
|
2118
2118
|
}, filterRow.colSize || defaultColSize({
|
|
2119
2119
|
isDisplayInline: isDisplayInline
|
|
2120
|
-
}),
|
|
2121
|
-
className: tab.children.length > 6 ? "mb-4" : ""
|
|
2122
|
-
}), filterRow.element);
|
|
2120
|
+
})), filterRow.element);
|
|
2123
2121
|
})) : null;
|
|
2124
2122
|
}));
|
|
2125
2123
|
};
|
|
@@ -38449,7 +38447,7 @@ exports.OdsDropdownButton = OdsDropdownButton;
|
|
|
38449
38447
|
exports.OdsFileUpload = OdsFileUpload;
|
|
38450
38448
|
exports.OdsFileUploadv2 = OdsFileUploadv2;
|
|
38451
38449
|
exports.OdsFilter = OdsFilter;
|
|
38452
|
-
exports.OdsFilterPlus =
|
|
38450
|
+
exports.OdsFilterPlus = OdsFilterPlus;
|
|
38453
38451
|
exports.OdsFilterTagView = OdsFilterTagView;
|
|
38454
38452
|
exports.OdsImage = OdsImage;
|
|
38455
38453
|
exports.OdsInlineEditDataGrid = OdsInlineEditDataGrid;
|