@evergis/react 4.0.87 → 4.0.89
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/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +17 -5
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9171,11 +9171,12 @@ const HeaderLayerIcon = ({ noFeature }) => {
|
|
|
9171
9171
|
};
|
|
9172
9172
|
|
|
9173
9173
|
const FeatureCardDefaultHeader = ({ noFeature }) => {
|
|
9174
|
+
const { themeName: pageThemeName } = useGlobalContext();
|
|
9174
9175
|
const { config } = useWidgetConfig(exports.WidgetType.FeatureCard);
|
|
9175
9176
|
const { header } = config || {};
|
|
9176
9177
|
const { options } = header || {};
|
|
9177
9178
|
const { themeName, withPadding, column, height, overlay } = options || {};
|
|
9178
|
-
return (jsxRuntime.jsx(DefaultHeaderWrapper, { withPadding: withPadding, height: height, "$noFeature": noFeature, children: jsxRuntime.jsx(
|
|
9179
|
+
return (jsxRuntime.jsx(uilibGl.ThemeProvider, { theme: getThemeByName(themeName ?? pageThemeName), children: jsxRuntime.jsx(DefaultHeaderWrapper, { withPadding: withPadding, height: height, "$noFeature": noFeature, children: jsxRuntime.jsx(Header, { "$overlay": overlay, "$isRow": !column, "$noFeature": noFeature, children: jsxRuntime.jsxs(HeaderFrontView, { isDefault: !column, children: [jsxRuntime.jsxs(HeaderContainer, { children: [jsxRuntime.jsx(HeaderLayerIcon, { noFeature: noFeature }), jsxRuntime.jsx(HeaderTitle, { noFeature: noFeature })] }), jsxRuntime.jsx(FeatureCardButtons, {})] }) }) }) }));
|
|
9179
9180
|
};
|
|
9180
9181
|
|
|
9181
9182
|
const ImageContainerButton = styled(uilibGl.FlatButton) `
|
|
@@ -10179,7 +10180,7 @@ const BottomBlurHeaderMixin = styled.css `
|
|
|
10179
10180
|
}
|
|
10180
10181
|
|
|
10181
10182
|
${HeaderFrontView} {
|
|
10182
|
-
z-index:
|
|
10183
|
+
z-index: 100;
|
|
10183
10184
|
}
|
|
10184
10185
|
`;
|
|
10185
10186
|
const BackgroundHeaderWrapper = styled.div `
|
|
@@ -10218,7 +10219,7 @@ const FeatureCardBackgroundHeader = () => {
|
|
|
10218
10219
|
const { options } = header || {};
|
|
10219
10220
|
const { fontColor, bgColor, height, overlay, bigIcon, withPadding, bottomBlur, themeName, column } = options || {};
|
|
10220
10221
|
const renderElement = useHeaderRender(header);
|
|
10221
|
-
return (jsxRuntime.jsx(BackgroundHeaderWrapper, { "$fontColor": fontColor, "$bgColor": bgColor, "$height": height, "$bigIcon": bigIcon, "$withPadding": withPadding, "$bottomBlur": bottomBlur, children: jsxRuntime.
|
|
10222
|
+
return (jsxRuntime.jsx(uilibGl.ThemeProvider, { theme: getThemeByName(themeName ?? pageThemeName), children: jsxRuntime.jsx(BackgroundHeaderWrapper, { "$fontColor": fontColor, "$bgColor": bgColor, "$height": height, "$bigIcon": bigIcon, "$withPadding": withPadding, "$bottomBlur": bottomBlur, children: jsxRuntime.jsxs(Header, { "$overlay": overlay, "$isRow": !column, children: [jsxRuntime.jsxs(HeaderFrontView, { children: [jsxRuntime.jsxs(HeaderContainer, { column: column, children: [jsxRuntime.jsx(HeaderLayerIcon, {}), jsxRuntime.jsx(FeatureCardTitle, { title: renderElement({
|
|
10222
10223
|
id: "title",
|
|
10223
10224
|
wrap: false,
|
|
10224
10225
|
}), description: renderElement({
|
|
@@ -10239,7 +10240,7 @@ const FeatureCardSlideshowHeader = () => {
|
|
|
10239
10240
|
const { options } = header || {};
|
|
10240
10241
|
const { height, fontColor, withPadding, themeName, column, overlay } = options || {};
|
|
10241
10242
|
const renderElement = useHeaderRender(header);
|
|
10242
|
-
return (jsxRuntime.jsx(SlideshowHeaderWrapper, { fontColor: fontColor, withPadding: withPadding, height: height, big: true, children: jsxRuntime.
|
|
10243
|
+
return (jsxRuntime.jsx(uilibGl.ThemeProvider, { theme: getThemeByName(themeName), children: jsxRuntime.jsx(SlideshowHeaderWrapper, { fontColor: fontColor, withPadding: withPadding, height: height, big: true, children: jsxRuntime.jsxs(Header, { "$overlay": overlay, "$isRow": !column, children: [jsxRuntime.jsxs(HeaderFrontView, { children: [jsxRuntime.jsxs(HeaderContainer, { column: column, children: [jsxRuntime.jsx(HeaderLayerIcon, {}), jsxRuntime.jsx(FeatureCardTitle, { title: renderElement({
|
|
10243
10244
|
id: "title",
|
|
10244
10245
|
wrap: false,
|
|
10245
10246
|
}), description: renderElement({
|
|
@@ -12854,7 +12855,18 @@ const useDataSources = ({ type: widgetType, config, attributes, filters, layerPa
|
|
|
12854
12855
|
if (!diffFilterNames.length)
|
|
12855
12856
|
return;
|
|
12856
12857
|
const filteredDataSources = configDataSources?.filter(({ parameters = {}, query }) => lodash.isNil(query) ||
|
|
12857
|
-
diffFilterNames.some(diffFilterName =>
|
|
12858
|
+
diffFilterNames.some(diffFilterName => {
|
|
12859
|
+
// Плейсхолдер параметра может ссылаться на фильтр целиком (`%name`)
|
|
12860
|
+
// либо на его свойство — уровень tree-фильтра или границу range
|
|
12861
|
+
// (`%name.lN`, `%name.min`, `%name.max`). Граница `.` обязательна,
|
|
12862
|
+
// иначе `%name` ложно матчит `%name2.l1`.
|
|
12863
|
+
const placeholder = `${FILTER_PREFIX}${diffFilterName}`;
|
|
12864
|
+
return Object.keys(parameters).some(paramName => {
|
|
12865
|
+
const paramValue = parameters[paramName];
|
|
12866
|
+
return (typeof paramValue === "string" &&
|
|
12867
|
+
(paramValue === placeholder || paramValue.startsWith(`${placeholder}.`)));
|
|
12868
|
+
});
|
|
12869
|
+
}));
|
|
12858
12870
|
if (!filteredDataSources?.length) {
|
|
12859
12871
|
return;
|
|
12860
12872
|
}
|