@devgateway/dvz-ui-react 1.0.7 → 1.1.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/dist/cjs/embeddable/agree-and-download/index.js +1 -1
- package/dist/cjs/embeddable/big-number/index.js +1 -1
- package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
- package/dist/cjs/embeddable/body/Background.js +1 -1
- package/dist/cjs/embeddable/body/Blood.js +1 -1
- package/dist/cjs/embeddable/body/Bounds.js +1 -1
- package/dist/cjs/embeddable/body/Brain.js +1 -1
- package/dist/cjs/embeddable/body/Ectopic.js +1 -1
- package/dist/cjs/embeddable/body/Erectile.js +1 -1
- package/dist/cjs/embeddable/body/Eyes.js +1 -1
- package/dist/cjs/embeddable/body/Head.js +1 -1
- package/dist/cjs/embeddable/body/Heart.js +1 -1
- package/dist/cjs/embeddable/body/Liver.js +1 -1
- package/dist/cjs/embeddable/body/Lungs.js +1 -1
- package/dist/cjs/embeddable/body/Stomach.js +1 -1
- package/dist/cjs/embeddable/body/index.js +1 -1
- package/dist/cjs/embeddable/chart/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/CSVDataFrame.js +1 -1
- package/dist/cjs/embeddable/chart/Legends.js +1 -1
- package/dist/cjs/embeddable/chart/Line.js +1 -1
- package/dist/cjs/embeddable/chart/LineLayer.js +1 -1
- package/dist/cjs/embeddable/chart/Messages.js +2 -2
- package/dist/cjs/embeddable/chart/Pie.js +1 -1
- package/dist/cjs/embeddable/chart/Radar.js +1 -1
- package/dist/cjs/embeddable/chart/Tooltip.js +1 -1
- package/dist/cjs/embeddable/chart/colors/CategoricalColors.js +1 -1
- package/dist/cjs/embeddable/chart/colors/ColorProvider.js +1 -1
- package/dist/cjs/embeddable/chart/colors/Colors.js +1 -1
- package/dist/cjs/embeddable/chart/colors/ManualColors.js +1 -1
- package/dist/cjs/embeddable/chart/colors/PlainColor.js +1 -1
- package/dist/cjs/embeddable/chart/colors/SequentialColors.js +1 -1
- package/dist/cjs/embeddable/chart/colors/SystemColors.js +1 -1
- package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/data/Line.js +1 -1
- package/dist/cjs/embeddable/chart/data/Utils.js +1 -1
- package/dist/cjs/embeddable/chart/data/index.js +1 -1
- package/dist/cjs/embeddable/chart/index.js +1 -1
- package/dist/cjs/embeddable/child-page-menu/index.js +1 -1
- package/dist/cjs/embeddable/common/Messages.js +2 -2
- package/dist/cjs/embeddable/common/colors/CategoricalColors.js +1 -1
- package/dist/cjs/embeddable/common/colors/ColorProvider.js +1 -1
- package/dist/cjs/embeddable/common/colors/Colors.js +1 -1
- package/dist/cjs/embeddable/common/colors/ManualColors.js +1 -1
- package/dist/cjs/embeddable/common/colors/PlainColor.js +1 -1
- package/dist/cjs/embeddable/common/colors/SequentialColors.js +1 -1
- package/dist/cjs/embeddable/common/colors/SystemColors.js +1 -1
- package/dist/cjs/embeddable/connected-templates/PostContent.js +1 -1
- package/dist/cjs/embeddable/connected-templates/PostIntro.js +1 -1
- package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/BreaksStyles.js +1 -1
- package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/FlowLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/GradientColors.js +1 -0
- package/dist/cjs/embeddable/d3Map/LatLongLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Layer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Legends.js +1 -1
- package/dist/cjs/embeddable/d3Map/Map.js +1 -1
- package/dist/cjs/embeddable/d3Map/ProjectedContainer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Utils.js +1 -0
- package/dist/cjs/embeddable/d3Map/ZoomControl.js +1 -1
- package/dist/cjs/embeddable/d3Map/index.js +1 -1
- package/dist/cjs/embeddable/data/CategoriesConsumer.js +1 -1
- package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
- package/dist/cjs/embeddable/data/DataConsumer.js +1 -1
- package/dist/cjs/embeddable/data/DataProvider.js +1 -1
- package/dist/cjs/embeddable/datalabel/index.js +1 -1
- package/dist/cjs/embeddable/download/index.js +2 -2
- package/dist/cjs/embeddable/downloadPDF/index.js +1 -1
- package/dist/cjs/embeddable/featuredtabs/index.js +1 -1
- package/dist/cjs/embeddable/filter/index.js +1 -1
- package/dist/cjs/embeddable/filter-reset-button/index.js +1 -1
- package/dist/cjs/embeddable/filters-apply-button/index.js +1 -1
- package/dist/cjs/embeddable/index.js +1 -1
- package/dist/cjs/embeddable/inlinelist/index.js +1 -1
- package/dist/cjs/embeddable/map/MapCSVDataFrame.js +1 -1
- package/dist/cjs/embeddable/map/MapDataFrame.js +1 -1
- package/dist/cjs/embeddable/map/index.js +2 -2
- package/dist/cjs/embeddable/map/legend.js +1 -1
- package/dist/cjs/embeddable/map/map.js +3 -3
- package/dist/cjs/embeddable/measures/index.js +1 -1
- package/dist/cjs/embeddable/menu/index.js +2 -2
- package/dist/cjs/embeddable/new-time-line/index.js +1 -1
- package/dist/cjs/embeddable/new-time-line/timeline.js +1 -1
- package/dist/cjs/embeddable/newsletter/index.js +1 -1
- package/dist/cjs/embeddable/pagegallery/index.js +1 -1
- package/dist/cjs/embeddable/pagemodules/FloatingNavigator.js +1 -1
- package/dist/cjs/embeddable/pagemodules/index.js +1 -1
- package/dist/cjs/embeddable/parallax/index.js +1 -1
- package/dist/cjs/embeddable/posts-with-filters/Post.js +1 -0
- package/dist/cjs/embeddable/posts-with-filters/index.js +1 -0
- package/dist/cjs/embeddable/posts-with-filters/utils.js +1 -0
- package/dist/cjs/embeddable/postscarousel/index.js +1 -1
- package/dist/cjs/embeddable/reducers/data-api.js +1 -1
- package/dist/cjs/embeddable/reducers/data.js +1 -1
- package/dist/cjs/embeddable/references/Reference.js +1 -1
- package/dist/cjs/embeddable/references/ReferencesList.js +1 -1
- package/dist/cjs/embeddable/sankeychart/Sankey.js +1 -1
- package/dist/cjs/embeddable/sankeychart/index.js +1 -1
- package/dist/cjs/embeddable/showcase/index.js +1 -1
- package/dist/cjs/embeddable/superset-chart/index.js +1 -1
- package/dist/cjs/embeddable/superset-dashboard/index.js +1 -1
- package/dist/cjs/embeddable/tabbedposts/index.js +1 -1
- package/dist/cjs/embeddable/time-line/desktop.js +1 -1
- package/dist/cjs/embeddable/time-line/index.js +1 -1
- package/dist/cjs/embeddable/time-line/mobile.js +1 -1
- package/dist/cjs/embeddable/tooltip/index.js +1 -1
- package/dist/cjs/embeddable/vertical-featuredtabs/index.js +2 -2
- package/dist/cjs/embeddable/wrapped/index.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/layout/CustomSemanticSearch.js +1 -1
- package/dist/cjs/layout/FlexWrapDetector.js +1 -1
- package/dist/cjs/layout/Footer.js +1 -1
- package/dist/cjs/layout/Header.js +2 -2
- package/dist/cjs/layout/LangSwitcher.js +1 -1
- package/dist/cjs/layout/ResponsiveContainer.js +1 -1
- package/dist/cjs/layout/ScrollTop.js +1 -1
- package/dist/cjs/layout/SearchControl.js +1 -1
- package/dist/cjs/layout/TopNavigator.js +1 -1
- package/dist/cjs/layout/containers/PreviewPageContainer.js +1 -1
- package/dist/cjs/layout/containers/PreviewTypeContainer.js +1 -1
- package/dist/cjs/layout/containers/SlugContainer.js +1 -1
- package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
- package/dist/cjs/layout/index.js +1 -1
- package/dist/cjs/lib/hooks/screen-orientation.js +1 -0
- package/dist/cjs/lib/hooks/window-dimensions.js +1 -1
- package/dist/cjs/lib/react-intl-redux/index.js +1 -1
- package/dist/cjs/lib/react-intl-redux/providers/IntlProvider.js +1 -1
- package/dist/cjs/lib/react-intl-redux/providers/Provider.js +1 -1
- package/dist/cjs/redux/reducer.js +1 -1
- package/dist/cjs/redux/store.js +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/cjs/translations/af.json.js +1 -1
- package/dist/cjs/utils/data.js +1 -0
- package/dist/cjs/utils/deviceType.js +1 -1
- package/dist/esm/embeddable/big-number/index.js +82 -74
- package/dist/esm/embeddable/big-number-trend/index.js +117 -97
- package/dist/esm/embeddable/chart/Bar.js +235 -224
- package/dist/esm/embeddable/chart/Line.js +261 -252
- package/dist/esm/embeddable/chart/Tooltip.js +19 -17
- package/dist/esm/embeddable/chart/colors/ManualColors.js +19 -19
- package/dist/esm/embeddable/chart/data/Bar.js +179 -180
- package/dist/esm/embeddable/chart/data/Line.js +146 -193
- package/dist/esm/embeddable/chart/data/Utils.js +39 -23
- package/dist/esm/embeddable/chart/index.js +323 -316
- package/dist/esm/embeddable/d3Map/BaseLayer.js +38 -45
- package/dist/esm/embeddable/d3Map/DataLayer.js +418 -204
- package/dist/esm/embeddable/d3Map/FlowLayer.js +113 -115
- package/dist/esm/embeddable/d3Map/GradientColors.js +155 -0
- package/dist/esm/embeddable/d3Map/LatLongLayer.js +132 -104
- package/dist/esm/embeddable/d3Map/Layer.js +31 -31
- package/dist/esm/embeddable/d3Map/Legends.js +274 -162
- package/dist/esm/embeddable/d3Map/Map.js +14 -14
- package/dist/esm/embeddable/d3Map/ProjectedContainer.js +16 -15
- package/dist/esm/embeddable/d3Map/Utils.js +11 -0
- package/dist/esm/embeddable/d3Map/ZoomControl.js +83 -55
- package/dist/esm/embeddable/d3Map/index.js +116 -83
- package/dist/esm/embeddable/data/CategoriesProvider.js +38 -33
- package/dist/esm/embeddable/data/DataProvider.js +87 -79
- package/dist/esm/embeddable/filter/index.js +227 -233
- package/dist/esm/embeddable/filter-reset-button/index.js +38 -26
- package/dist/esm/embeddable/filters-apply-button/index.js +36 -28
- package/dist/esm/embeddable/index.js +15 -14
- package/dist/esm/embeddable/inlinelist/index.js +64 -61
- package/dist/esm/embeddable/map/index.js +157 -148
- package/dist/esm/embeddable/measures/index.js +3 -3
- package/dist/esm/embeddable/menu/index.js +8 -8
- package/dist/esm/embeddable/new-time-line/timeline.js +11 -11
- package/dist/esm/embeddable/pagegallery/index.js +11 -11
- package/dist/esm/embeddable/pagemodules/index.js +48 -49
- package/dist/esm/embeddable/parallax/index.js +30 -25
- package/dist/esm/embeddable/posts-with-filters/Post.js +26 -0
- package/dist/esm/embeddable/posts-with-filters/index.js +205 -0
- package/dist/esm/embeddable/posts-with-filters/utils.js +8 -0
- package/dist/esm/embeddable/reducers/data-api.js +27 -13
- package/dist/esm/embeddable/reducers/data.js +106 -94
- package/dist/esm/embeddable/references/ReferencesList.js +34 -33
- package/dist/esm/embeddable/superset-chart/index.js +12 -13
- package/dist/esm/embeddable/superset-dashboard/index.js +3 -4
- package/dist/esm/embeddable/tabbedposts/index.js +21 -23
- package/dist/esm/embeddable/time-line/index.js +14 -11
- package/dist/esm/embeddable/time-line/mobile.js +204 -206
- package/dist/esm/lib/hooks/screen-orientation.js +25 -0
- package/dist/esm/lib/hooks/window-dimensions.js +7 -7
- package/dist/esm/styles.css +1 -1
- package/dist/esm/utils/data.js +11 -0
- package/dist/types/embeddable/chart/Line.d.ts +4 -0
- package/dist/types/embeddable/chart/data/Line.d.ts +2 -2
- package/dist/types/embeddable/chart/index.d.ts +3 -1
- package/dist/types/embeddable/d3Map/GradientColors.d.ts +17 -0
- package/dist/types/embeddable/d3Map/Layer.d.ts +1 -0
- package/dist/types/embeddable/d3Map/Legends.d.ts +4 -2
- package/dist/types/embeddable/d3Map/Utils.d.ts +1 -0
- package/dist/types/embeddable/d3Map/ZoomControl.d.ts +11 -7
- package/dist/types/embeddable/data/CategoriesProvider.d.ts +6 -2
- package/dist/types/embeddable/inlinelist/index.d.ts +1 -8
- package/dist/types/embeddable/measures/index.d.ts +1 -1
- package/dist/types/embeddable/menu/index.d.ts +0 -10
- package/dist/types/embeddable/pagegallery/index.d.ts +0 -4
- package/dist/types/embeddable/pagemodules/index.d.ts +1 -1
- package/dist/types/embeddable/parallax/index.d.ts +1 -16
- package/dist/types/embeddable/posts-with-filters/Post.d.ts +3 -0
- package/dist/types/embeddable/posts-with-filters/index.d.ts +21 -0
- package/dist/types/embeddable/posts-with-filters/utils.d.ts +6 -0
- package/dist/types/embeddable/postscarousel/index.d.ts +1 -1
- package/dist/types/embeddable/reducers/data-api.d.ts +9 -18
- package/dist/types/embeddable/reducers/data.d.ts +32 -31
- package/dist/types/embeddable/references/ReferencesList.d.ts +2 -1
- package/dist/types/lib/hooks/resize-observer.d.ts +4 -0
- package/dist/types/lib/hooks/screen-orientation.d.ts +18 -0
- package/dist/types/utils/data.d.ts +5 -0
- package/package.json +3 -2
- package/dist/types/embeddable/index.d.ts +0 -161
|
@@ -1,41 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { connect as
|
|
4
|
-
import { Container as
|
|
5
|
-
import { cleanFilter as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as g, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import F from "react";
|
|
3
|
+
import { connect as I } from "react-redux";
|
|
4
|
+
import { Container as h, Icon as N } from "semantic-ui-react";
|
|
5
|
+
import { applyFilter as b, cleanFilter as A } from "../reducers/data.js";
|
|
6
|
+
const C = (n) => {
|
|
7
7
|
const {
|
|
8
8
|
appliedFilters: r,
|
|
9
9
|
initialFilters: e,
|
|
10
|
-
"data-group":
|
|
11
|
-
onClean:
|
|
12
|
-
|
|
13
|
-
"data-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
"data-group": t,
|
|
11
|
+
onClean: d,
|
|
12
|
+
onApply: u,
|
|
13
|
+
"data-app": p = "csv",
|
|
14
|
+
"data-reset-label": m = "Reset All Filters"
|
|
15
|
+
} = n, f = F.useMemo(() => Object.keys(e).some((i) => {
|
|
16
|
+
const a = e[i], l = (r[i] || []).filter((o) => o !== Number.MIN_SAFE_INTEGER);
|
|
16
17
|
if (l.length === 0)
|
|
17
18
|
return !1;
|
|
18
19
|
if (a.length === 1 && a[0] === Number.MIN_SAFE_INTEGER && l.length > 0)
|
|
19
20
|
return !0;
|
|
20
|
-
const
|
|
21
|
-
return console.log("res",
|
|
21
|
+
const c = a.length !== l.length && !a.every((o) => l.includes(o));
|
|
22
|
+
return console.log("res", c), c;
|
|
22
23
|
}), [e, r]);
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
return /* @__PURE__ */ g(
|
|
25
|
+
h,
|
|
26
|
+
{
|
|
27
|
+
fluid: !0,
|
|
28
|
+
className: `data-filters-reset ignore ${f ? "" : "disabled"}`,
|
|
29
|
+
onClick: (i) => {
|
|
30
|
+
d({ app: p, group: t }), u({ app: p, group: t });
|
|
31
|
+
},
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ s("span", { children: m }),
|
|
34
|
+
/* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(N, { name: "undo alternate", className: "custom-undo-icon" }) })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}, E = (n, r) => {
|
|
28
39
|
const {
|
|
29
40
|
"data-group": e,
|
|
30
|
-
"data-app":
|
|
41
|
+
"data-app": t = "csv"
|
|
31
42
|
} = r;
|
|
32
43
|
return {
|
|
33
|
-
appliedFilters:
|
|
34
|
-
initialFilters:
|
|
44
|
+
appliedFilters: n.getIn(["data", "filters", t, e]) ? n.getIn(["data", "filters", t, e]).toJS() : {},
|
|
45
|
+
initialFilters: n.getIn(["data", "filters", "initial", t, e]) ? n.getIn(["data", "filters", "initial", t, e]).toJS() : {}
|
|
35
46
|
};
|
|
36
|
-
},
|
|
37
|
-
onClean:
|
|
38
|
-
|
|
47
|
+
}, y = {
|
|
48
|
+
onClean: A,
|
|
49
|
+
onApply: b
|
|
50
|
+
}, M = I(E, y)(C);
|
|
39
51
|
export {
|
|
40
|
-
|
|
52
|
+
M as default
|
|
41
53
|
};
|
|
@@ -1,40 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { connect as
|
|
4
|
-
import { Container as
|
|
5
|
-
import { applyFilter as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as S, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useEffect as u } from "react";
|
|
3
|
+
import { connect as x } from "react-redux";
|
|
4
|
+
import { Container as A, Icon as F } from "semantic-ui-react";
|
|
5
|
+
import { applyFilter as v } from "../reducers/data.js";
|
|
6
|
+
const j = (t) => {
|
|
7
7
|
const {
|
|
8
8
|
editing: l = !1,
|
|
9
9
|
"data-group": e,
|
|
10
10
|
onApply: a,
|
|
11
11
|
"data-app": m = "csv",
|
|
12
|
-
"data-label":
|
|
13
|
-
filters:
|
|
14
|
-
initialFilters:
|
|
15
|
-
apply:
|
|
16
|
-
} = t, [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
"data-label": h = "Apply",
|
|
13
|
+
filters: o,
|
|
14
|
+
initialFilters: y,
|
|
15
|
+
apply: c
|
|
16
|
+
} = t, [f, d] = g(!1), [I, b] = g(y), C = (n, p) => {
|
|
17
|
+
for (let i in p) {
|
|
18
|
+
if (n[i].length !== p[i].length)
|
|
19
|
+
return !0;
|
|
20
|
+
for (let r = 0; r < n[i].length; r++)
|
|
21
|
+
if (n[i][r] !== p[i][r])
|
|
22
|
+
return !0;
|
|
23
|
+
}
|
|
24
|
+
return !1;
|
|
25
|
+
};
|
|
26
|
+
return u(() => {
|
|
27
|
+
const n = C(o, I);
|
|
28
|
+
n && d(n), b(o);
|
|
29
|
+
}, [o]), u(() => {
|
|
30
|
+
c != null && d(!1);
|
|
31
|
+
}, [c]), /* @__PURE__ */ S(
|
|
32
|
+
A,
|
|
25
33
|
{
|
|
26
34
|
fluid: !0,
|
|
27
|
-
className: `data-filters-apply ignore ${
|
|
28
|
-
onClick: () => {
|
|
29
|
-
|
|
35
|
+
className: `data-filters-apply ignore ${f ? "" : "disabled"} ${l ? "editing" : ""}`,
|
|
36
|
+
onClick: (n) => {
|
|
37
|
+
f && a({ app: m, group: e });
|
|
30
38
|
},
|
|
31
39
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ s("span", { children: h }),
|
|
41
|
+
/* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(F, { name: "chevron circle right", className: "custom-apply-icon" }) })
|
|
34
42
|
]
|
|
35
43
|
}
|
|
36
44
|
);
|
|
37
|
-
},
|
|
45
|
+
}, k = (t, l) => {
|
|
38
46
|
const {
|
|
39
47
|
"data-group": e,
|
|
40
48
|
"data-app": a = "csv"
|
|
@@ -44,9 +52,9 @@ const A = (t) => {
|
|
|
44
52
|
filters: t.getIn(["data", "filters", a, e]) ? t.getIn(["data", "filters", a, e]).toJS() : {},
|
|
45
53
|
initialFilters: t.getIn(["data", "filters", "initial", a, e]) ? t.getIn(["data", "filters", "initial", a, e]).toJS() : {}
|
|
46
54
|
};
|
|
47
|
-
},
|
|
48
|
-
onApply:
|
|
49
|
-
}, T =
|
|
55
|
+
}, E = {
|
|
56
|
+
onApply: v
|
|
57
|
+
}, T = x(k, E)(j);
|
|
50
58
|
export {
|
|
51
59
|
T as default
|
|
52
60
|
};
|
|
@@ -2,7 +2,7 @@ import a, { lazy as e } from "react";
|
|
|
2
2
|
import c from "./reducers/data.js";
|
|
3
3
|
import p from "./reducers/embeddable.js";
|
|
4
4
|
import { injectIntl as i } from "react-intl";
|
|
5
|
-
const l = e(() => import("./pagegallery/index.js")), d = e(() => import("./download/index.js")), u = e(() => import("./postscarousel/index.js")), b = e(() => import("./chart/index.js")), C = e(() => import("./filter/index.js")), g = e(() => import("./showcase/index.js")), f = e(() => import("./newsletter/index.js")), w = e(() => import("./tabbedposts/index.js")), y = e(() => import("./pagemodules/index.js")), L = e(() => import("./featuredtabs/index.js")), h = e(() => import("./vertical-featuredtabs/index.js")),
|
|
5
|
+
const l = e(() => import("./pagegallery/index.js")), d = e(() => import("./download/index.js")), u = e(() => import("./postscarousel/index.js")), b = e(() => import("./chart/index.js")), C = e(() => import("./filter/index.js")), g = e(() => import("./showcase/index.js")), f = e(() => import("./newsletter/index.js")), w = e(() => import("./tabbedposts/index.js")), y = e(() => import("./pagemodules/index.js")), L = e(() => import("./featuredtabs/index.js")), h = e(() => import("./vertical-featuredtabs/index.js")), F = e(() => import("./inlinelist/index.js")), P = e(() => import("./agree-and-download/index.js")), T = e(() => import("./downloadPDF/index.js")), N = e(() => import("./map/index.js")), D = e(() => import("./filter-reset-button/index.js")), M = e(() => import("./filters-apply-button/index.js")), k = e(() => import("./tooltip/index.js")), R = e(() => import("./references/ReferencesList.js")), B = e(() => import("./references/Reference.js")), j = e(() => import("./time-line/index.js")), A = e(() => import("./new-time-line/index.js")), I = e(() => import("./measures/index.js")), O = e(() => import("./menu/index.js")), S = e(() => import("./child-page-menu/index.js")), v = e(() => import("./d3Map/index.js")), x = e(() => import("./parallax/index.js")), W = e(() => import("./wrapped/index.js")), z = e(() => import("./sankeychart/index.js")), G = e(() => import("./datalabel/index.js")), E = e(() => import("./body/index.js")), V = e(() => import("./superset-chart/index.js")), q = e(() => import("./superset-dashboard/index.js")), H = e(() => import("./big-number/index.js")), J = e(() => import("./big-number-trend/index.js")), K = e(() => import("./posts-with-filters/index.js")), m = {
|
|
6
6
|
pageGallery: l,
|
|
7
7
|
postsCarousel: u,
|
|
8
8
|
chart: b,
|
|
@@ -13,11 +13,11 @@ const l = e(() => import("./pagegallery/index.js")), d = e(() => import("./downl
|
|
|
13
13
|
pageModules: y,
|
|
14
14
|
featuredTabs: L,
|
|
15
15
|
verticalTabs: h,
|
|
16
|
-
inlineList:
|
|
16
|
+
inlineList: F,
|
|
17
17
|
download: d,
|
|
18
|
-
downloadPdf:
|
|
19
|
-
map:
|
|
20
|
-
dataFiltersReset:
|
|
18
|
+
downloadPdf: T,
|
|
19
|
+
map: N,
|
|
20
|
+
dataFiltersReset: D,
|
|
21
21
|
dataFiltersApply: M,
|
|
22
22
|
tooltip: k,
|
|
23
23
|
references: R,
|
|
@@ -29,15 +29,16 @@ const l = e(() => import("./pagegallery/index.js")), d = e(() => import("./downl
|
|
|
29
29
|
childPagesMenu: S,
|
|
30
30
|
newMap: v,
|
|
31
31
|
parallaxContainer: x,
|
|
32
|
-
wrapped:
|
|
33
|
-
sankeyChart:
|
|
34
|
-
dataLabel:
|
|
32
|
+
wrapped: W,
|
|
33
|
+
sankeyChart: z,
|
|
34
|
+
dataLabel: G,
|
|
35
35
|
body: E,
|
|
36
|
-
supersetChart:
|
|
36
|
+
supersetChart: V,
|
|
37
37
|
supersetDashboard: q,
|
|
38
|
-
agreeAndDownload:
|
|
38
|
+
agreeAndDownload: P,
|
|
39
39
|
bigNumber: H,
|
|
40
40
|
bigNumberTrend: J,
|
|
41
|
+
postsWithFilters: K,
|
|
41
42
|
redirect: () => null
|
|
42
43
|
}, s = {
|
|
43
44
|
components: {},
|
|
@@ -59,7 +60,7 @@ const l = e(() => import("./pagegallery/index.js")), d = e(() => import("./downl
|
|
|
59
60
|
s.reducers[o] = t;
|
|
60
61
|
},
|
|
61
62
|
getReducers: () => s.reducers
|
|
62
|
-
},
|
|
63
|
+
}, Z = (r) => {
|
|
63
64
|
const o = Object.keys(m).find((n) => n.toLowerCase() === r.toLowerCase());
|
|
64
65
|
if (o) {
|
|
65
66
|
const n = m[o];
|
|
@@ -67,10 +68,10 @@ const l = e(() => import("./pagegallery/index.js")), d = e(() => import("./downl
|
|
|
67
68
|
}
|
|
68
69
|
const t = s.getComponentByNameIgnoreCase(r);
|
|
69
70
|
return t ? a.memo(i(t)) : null;
|
|
70
|
-
},
|
|
71
|
+
}, _ = { data: c, embeddable: p, ...s.getReducers() };
|
|
71
72
|
export {
|
|
72
73
|
m as components,
|
|
73
74
|
s as customizer,
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
Z as getComponentByNameIgnoreCase,
|
|
76
|
+
_ as reducers
|
|
76
77
|
};
|
|
@@ -1,103 +1,106 @@
|
|
|
1
|
-
import { jsx as e, jsxs as i, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { Container as h, Grid as
|
|
4
|
-
import { PostProvider as
|
|
5
|
-
import
|
|
6
|
-
import { useParams as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
const { posts: c, showIcons:
|
|
10
|
-
|
|
11
|
-
window.setTimeout(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import I, { useState as T, useEffect as R } from "react";
|
|
3
|
+
import { Container as h, Grid as P, Label as v } from "semantic-ui-react";
|
|
4
|
+
import { PostProvider as x, PostConsumer as _, MediaProvider as M, MediaConsumer as S, PostIcon as B, utils as L } from "@devgateway/wp-react-lib";
|
|
5
|
+
import N from "../connected-templates/PostIntro.js";
|
|
6
|
+
import { useParams as j } from "react-router";
|
|
7
|
+
import C from "../connected-templates/PostContent.js";
|
|
8
|
+
const E = (m) => {
|
|
9
|
+
const { posts: c, showIcons: g, showContentToggle: l, contentToggleHPosition: p, locale: y } = m, [n, u] = T({}), r = I.createRef();
|
|
10
|
+
R(() => {
|
|
11
|
+
window.setTimeout(
|
|
12
|
+
() => {
|
|
13
|
+
if (window.location.hash) {
|
|
14
|
+
const t = document.getElementById(window.location.hash.substr(1));
|
|
15
|
+
t && t.scrollIntoView({ behavior: "auto", block: "start" });
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
0
|
|
19
|
+
);
|
|
17
20
|
}, [c]);
|
|
18
|
-
const
|
|
21
|
+
const a = (t) => {
|
|
19
22
|
const o = t.content ? t.content.rendered.split("<!--more-->") : [];
|
|
20
23
|
return o.length > 1 ? o[1] : o[0];
|
|
21
|
-
},
|
|
22
|
-
const o =
|
|
23
|
-
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { style: { position: "relative", left:
|
|
24
|
-
|
|
24
|
+
}, f = (t) => {
|
|
25
|
+
const o = n[t] || !1, s = o ? "Read less" : "Read more";
|
|
26
|
+
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { style: { position: "relative", left: p + "%" }, children: /* @__PURE__ */ e("a", { className: "link", onClick: () => {
|
|
27
|
+
r.current && o && (r.current.scrollIntoView({ behavior: "smooth", block: "start" }), r.current.scrollTop = 0), u({ ...n, [t]: !o });
|
|
25
28
|
}, children: s }) }) });
|
|
26
29
|
}, d = (t) => {
|
|
27
30
|
const o = t.content ? t.content.rendered.split("<!--more-->") : [], s = o.length > 1 ? o[0] : null;
|
|
28
31
|
return s ? s.trim() : null;
|
|
29
|
-
},
|
|
32
|
+
}, w = (t) => {
|
|
30
33
|
const o = t.content ? t.content.rendered.split("<!--more-->") : [];
|
|
31
34
|
return o.length > 1 && o[1].trim().length > 0;
|
|
32
35
|
};
|
|
33
|
-
return /* @__PURE__ */ e(h, { fluid: !0, className: "inline list", children: c && c.map((t) => /* @__PURE__ */ i(
|
|
34
|
-
|
|
36
|
+
return /* @__PURE__ */ e(h, { fluid: !0, className: "inline list", children: c && c.map((t) => /* @__PURE__ */ i(P, { children: [
|
|
37
|
+
g && /* @__PURE__ */ i(P.Column, { textAlign: "center", width: 1, children: [
|
|
35
38
|
/* @__PURE__ */ e("a", { id: t.slug }),
|
|
36
39
|
/* @__PURE__ */ e(
|
|
37
|
-
|
|
40
|
+
M,
|
|
38
41
|
{
|
|
39
42
|
id: t.meta_fields && t.meta_fields.icon ? t.meta_fields.icon[0] : null,
|
|
40
|
-
children: /* @__PURE__ */ e(
|
|
43
|
+
children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(B, { as: v }) })
|
|
41
44
|
}
|
|
42
45
|
)
|
|
43
46
|
] }),
|
|
44
|
-
/* @__PURE__ */ i(
|
|
45
|
-
d(t) && /* @__PURE__ */ e(
|
|
47
|
+
/* @__PURE__ */ i(P.Column, { width: g ? 15 : 16, children: [
|
|
48
|
+
d(t) && /* @__PURE__ */ e(N, { as: h, fluid: !0, post: t, ref: r }),
|
|
46
49
|
!d(t) && /* @__PURE__ */ e(
|
|
47
|
-
|
|
50
|
+
C,
|
|
48
51
|
{
|
|
49
|
-
post: { content: { rendered:
|
|
52
|
+
post: { content: { rendered: a(t) } },
|
|
50
53
|
style: { clear: "both", display: "block" }
|
|
51
54
|
}
|
|
52
55
|
),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
!
|
|
56
|
+
w(t) && /* @__PURE__ */ i(h, { children: [
|
|
57
|
+
l && /* @__PURE__ */ i(k, { children: [
|
|
58
|
+
!n[t.slug] && f(t.slug),
|
|
56
59
|
/* @__PURE__ */ e(
|
|
57
|
-
|
|
60
|
+
C,
|
|
58
61
|
{
|
|
59
|
-
post: { content: { rendered:
|
|
62
|
+
post: { content: { rendered: a(t) } },
|
|
60
63
|
style: {
|
|
61
64
|
clear: "both",
|
|
62
|
-
display:
|
|
65
|
+
display: n[t.slug] ? "block" : "none"
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
),
|
|
66
|
-
|
|
69
|
+
n[t.slug] && f(t.slug)
|
|
67
70
|
] }),
|
|
68
|
-
!
|
|
71
|
+
!l && /* @__PURE__ */ e("a", { href: L.replaceLink(t.link, y), className: "link", children: "Read More" })
|
|
69
72
|
] })
|
|
70
73
|
] })
|
|
71
74
|
] })) });
|
|
72
|
-
}
|
|
73
|
-
const [
|
|
74
|
-
"data-width":
|
|
75
|
-
"data-height":
|
|
76
|
-
"data-type":
|
|
77
|
-
"data-taxonomy":
|
|
78
|
-
"data-categories":
|
|
79
|
-
"data-items":
|
|
80
|
-
"data-color":
|
|
81
|
-
"data-show-post-icons":
|
|
82
|
-
"data-show-content-toggle":
|
|
83
|
-
"data-content-toggle-h-position":
|
|
75
|
+
}, D = (m) => {
|
|
76
|
+
const [c, g] = T(Math.random() * 99998 + 1), { locale: l } = j(), {
|
|
77
|
+
"data-width": p,
|
|
78
|
+
"data-height": y,
|
|
79
|
+
"data-type": n,
|
|
80
|
+
"data-taxonomy": u,
|
|
81
|
+
"data-categories": r,
|
|
82
|
+
"data-items": a,
|
|
83
|
+
"data-color": f,
|
|
84
|
+
"data-show-post-icons": d,
|
|
85
|
+
"data-show-content-toggle": w,
|
|
86
|
+
"data-content-toggle-h-position": t,
|
|
84
87
|
//horizontal position
|
|
85
|
-
parent:
|
|
86
|
-
editing:
|
|
87
|
-
component:
|
|
88
|
-
unique:
|
|
88
|
+
parent: o,
|
|
89
|
+
editing: s,
|
|
90
|
+
component: H,
|
|
91
|
+
unique: b
|
|
89
92
|
} = m;
|
|
90
93
|
return /* @__PURE__ */ e(h, { fluid: !0, children: /* @__PURE__ */ e(
|
|
91
|
-
|
|
94
|
+
x,
|
|
92
95
|
{
|
|
93
|
-
type:
|
|
96
|
+
type: n,
|
|
94
97
|
locale: l,
|
|
95
|
-
taxonomy:
|
|
96
|
-
categories:
|
|
97
|
-
store: "inline_list_" +
|
|
98
|
+
taxonomy: u,
|
|
99
|
+
categories: r,
|
|
100
|
+
store: "inline_list_" + o + "_" + b,
|
|
98
101
|
page: 1,
|
|
99
|
-
perPage:
|
|
100
|
-
children: /* @__PURE__ */ e(
|
|
102
|
+
perPage: a,
|
|
103
|
+
children: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(E, { locale: l ?? "en", showIcons: d === "true", showContentToggle: w === "true", contentToggleHPosition: t }) })
|
|
101
104
|
}
|
|
102
105
|
) });
|
|
103
106
|
};
|