@devgateway/dvz-ui-react 1.0.7 → 1.1.1

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.
Files changed (212) hide show
  1. package/dist/cjs/embeddable/agree-and-download/index.js +1 -1
  2. package/dist/cjs/embeddable/big-number/index.js +1 -1
  3. package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
  4. package/dist/cjs/embeddable/body/Background.js +1 -1
  5. package/dist/cjs/embeddable/body/Blood.js +1 -1
  6. package/dist/cjs/embeddable/body/Bounds.js +1 -1
  7. package/dist/cjs/embeddable/body/Brain.js +1 -1
  8. package/dist/cjs/embeddable/body/Ectopic.js +1 -1
  9. package/dist/cjs/embeddable/body/Erectile.js +1 -1
  10. package/dist/cjs/embeddable/body/Eyes.js +1 -1
  11. package/dist/cjs/embeddable/body/Head.js +1 -1
  12. package/dist/cjs/embeddable/body/Heart.js +1 -1
  13. package/dist/cjs/embeddable/body/Liver.js +1 -1
  14. package/dist/cjs/embeddable/body/Lungs.js +1 -1
  15. package/dist/cjs/embeddable/body/Stomach.js +1 -1
  16. package/dist/cjs/embeddable/body/index.js +1 -1
  17. package/dist/cjs/embeddable/chart/Bar.js +1 -1
  18. package/dist/cjs/embeddable/chart/CSVDataFrame.js +1 -1
  19. package/dist/cjs/embeddable/chart/Legends.js +1 -1
  20. package/dist/cjs/embeddable/chart/Line.js +1 -1
  21. package/dist/cjs/embeddable/chart/LineLayer.js +1 -1
  22. package/dist/cjs/embeddable/chart/Messages.js +2 -2
  23. package/dist/cjs/embeddable/chart/Pie.js +1 -1
  24. package/dist/cjs/embeddable/chart/Radar.js +1 -1
  25. package/dist/cjs/embeddable/chart/Tooltip.js +1 -1
  26. package/dist/cjs/embeddable/chart/colors/CategoricalColors.js +1 -1
  27. package/dist/cjs/embeddable/chart/colors/ColorProvider.js +1 -1
  28. package/dist/cjs/embeddable/chart/colors/Colors.js +1 -1
  29. package/dist/cjs/embeddable/chart/colors/ManualColors.js +1 -1
  30. package/dist/cjs/embeddable/chart/colors/PlainColor.js +1 -1
  31. package/dist/cjs/embeddable/chart/colors/SequentialColors.js +1 -1
  32. package/dist/cjs/embeddable/chart/colors/SystemColors.js +1 -1
  33. package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
  34. package/dist/cjs/embeddable/chart/data/Line.js +1 -1
  35. package/dist/cjs/embeddable/chart/data/Utils.js +1 -1
  36. package/dist/cjs/embeddable/chart/data/index.js +1 -1
  37. package/dist/cjs/embeddable/chart/index.js +1 -1
  38. package/dist/cjs/embeddable/child-page-menu/index.js +1 -1
  39. package/dist/cjs/embeddable/common/Messages.js +2 -2
  40. package/dist/cjs/embeddable/common/colors/CategoricalColors.js +1 -1
  41. package/dist/cjs/embeddable/common/colors/ColorProvider.js +1 -1
  42. package/dist/cjs/embeddable/common/colors/Colors.js +1 -1
  43. package/dist/cjs/embeddable/common/colors/ManualColors.js +1 -1
  44. package/dist/cjs/embeddable/common/colors/PlainColor.js +1 -1
  45. package/dist/cjs/embeddable/common/colors/SequentialColors.js +1 -1
  46. package/dist/cjs/embeddable/common/colors/SystemColors.js +1 -1
  47. package/dist/cjs/embeddable/connected-templates/PostContent.js +1 -1
  48. package/dist/cjs/embeddable/connected-templates/PostIntro.js +1 -1
  49. package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
  50. package/dist/cjs/embeddable/d3Map/BreaksStyles.js +1 -1
  51. package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
  52. package/dist/cjs/embeddable/d3Map/FlowLayer.js +1 -1
  53. package/dist/cjs/embeddable/d3Map/GradientColors.js +1 -0
  54. package/dist/cjs/embeddable/d3Map/LatLongLayer.js +1 -1
  55. package/dist/cjs/embeddable/d3Map/Layer.js +1 -1
  56. package/dist/cjs/embeddable/d3Map/Legends.js +1 -1
  57. package/dist/cjs/embeddable/d3Map/Map.js +1 -1
  58. package/dist/cjs/embeddable/d3Map/ProjectedContainer.js +1 -1
  59. package/dist/cjs/embeddable/d3Map/Utils.js +1 -0
  60. package/dist/cjs/embeddable/d3Map/ZoomControl.js +1 -1
  61. package/dist/cjs/embeddable/d3Map/index.js +1 -1
  62. package/dist/cjs/embeddable/data/CategoriesConsumer.js +1 -1
  63. package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
  64. package/dist/cjs/embeddable/data/DataConsumer.js +1 -1
  65. package/dist/cjs/embeddable/data/DataProvider.js +1 -1
  66. package/dist/cjs/embeddable/datalabel/index.js +1 -1
  67. package/dist/cjs/embeddable/download/index.js +2 -2
  68. package/dist/cjs/embeddable/downloadPDF/index.js +1 -1
  69. package/dist/cjs/embeddable/featuredtabs/index.js +1 -1
  70. package/dist/cjs/embeddable/filter/index.js +1 -1
  71. package/dist/cjs/embeddable/filter-reset-button/index.js +1 -1
  72. package/dist/cjs/embeddable/filters-apply-button/index.js +1 -1
  73. package/dist/cjs/embeddable/index.js +1 -1
  74. package/dist/cjs/embeddable/inlinelist/index.js +1 -1
  75. package/dist/cjs/embeddable/map/MapCSVDataFrame.js +1 -1
  76. package/dist/cjs/embeddable/map/MapDataFrame.js +1 -1
  77. package/dist/cjs/embeddable/map/index.js +2 -2
  78. package/dist/cjs/embeddable/map/legend.js +1 -1
  79. package/dist/cjs/embeddable/map/map.js +3 -3
  80. package/dist/cjs/embeddable/measures/index.js +1 -1
  81. package/dist/cjs/embeddable/menu/index.js +2 -2
  82. package/dist/cjs/embeddable/new-time-line/index.js +1 -1
  83. package/dist/cjs/embeddable/new-time-line/timeline.js +1 -1
  84. package/dist/cjs/embeddable/newsletter/index.js +1 -1
  85. package/dist/cjs/embeddable/pagegallery/index.js +1 -1
  86. package/dist/cjs/embeddable/pagemodules/FloatingNavigator.js +1 -1
  87. package/dist/cjs/embeddable/pagemodules/index.js +1 -1
  88. package/dist/cjs/embeddable/parallax/index.js +1 -1
  89. package/dist/cjs/embeddable/posts-with-filters/Post.js +1 -0
  90. package/dist/cjs/embeddable/posts-with-filters/index.js +1 -0
  91. package/dist/cjs/embeddable/posts-with-filters/utils.js +1 -0
  92. package/dist/cjs/embeddable/postscarousel/index.js +1 -1
  93. package/dist/cjs/embeddable/reducers/data-api.js +1 -1
  94. package/dist/cjs/embeddable/reducers/data.js +1 -1
  95. package/dist/cjs/embeddable/references/Reference.js +1 -1
  96. package/dist/cjs/embeddable/references/ReferencesList.js +1 -1
  97. package/dist/cjs/embeddable/sankeychart/Sankey.js +1 -1
  98. package/dist/cjs/embeddable/sankeychart/index.js +1 -1
  99. package/dist/cjs/embeddable/showcase/index.js +1 -1
  100. package/dist/cjs/embeddable/superset-chart/index.js +1 -1
  101. package/dist/cjs/embeddable/superset-dashboard/index.js +1 -1
  102. package/dist/cjs/embeddable/tabbedposts/index.js +1 -1
  103. package/dist/cjs/embeddable/time-line/desktop.js +1 -1
  104. package/dist/cjs/embeddable/time-line/index.js +1 -1
  105. package/dist/cjs/embeddable/time-line/mobile.js +1 -1
  106. package/dist/cjs/embeddable/tooltip/index.js +1 -1
  107. package/dist/cjs/embeddable/vertical-featuredtabs/index.js +2 -2
  108. package/dist/cjs/embeddable/wrapped/index.js +1 -1
  109. package/dist/cjs/index.js +1 -1
  110. package/dist/cjs/layout/CustomSemanticSearch.js +1 -1
  111. package/dist/cjs/layout/FlexWrapDetector.js +1 -1
  112. package/dist/cjs/layout/Footer.js +1 -1
  113. package/dist/cjs/layout/Header.js +2 -2
  114. package/dist/cjs/layout/LangSwitcher.js +1 -1
  115. package/dist/cjs/layout/ResponsiveContainer.js +1 -1
  116. package/dist/cjs/layout/ScrollTop.js +1 -1
  117. package/dist/cjs/layout/SearchControl.js +1 -1
  118. package/dist/cjs/layout/TopNavigator.js +1 -1
  119. package/dist/cjs/layout/containers/PreviewPageContainer.js +1 -1
  120. package/dist/cjs/layout/containers/PreviewTypeContainer.js +1 -1
  121. package/dist/cjs/layout/containers/SlugContainer.js +1 -1
  122. package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
  123. package/dist/cjs/layout/index.js +1 -1
  124. package/dist/cjs/lib/hooks/screen-orientation.js +1 -0
  125. package/dist/cjs/lib/hooks/window-dimensions.js +1 -1
  126. package/dist/cjs/lib/react-intl-redux/index.js +1 -1
  127. package/dist/cjs/lib/react-intl-redux/providers/IntlProvider.js +1 -1
  128. package/dist/cjs/lib/react-intl-redux/providers/Provider.js +1 -1
  129. package/dist/cjs/redux/reducer.js +1 -1
  130. package/dist/cjs/redux/store.js +1 -1
  131. package/dist/cjs/styles.css +1 -1
  132. package/dist/cjs/translations/af.json.js +1 -1
  133. package/dist/cjs/utils/data.js +1 -0
  134. package/dist/cjs/utils/deviceType.js +1 -1
  135. package/dist/esm/embeddable/big-number/index.js +82 -74
  136. package/dist/esm/embeddable/big-number-trend/index.js +117 -97
  137. package/dist/esm/embeddable/chart/Bar.js +235 -224
  138. package/dist/esm/embeddable/chart/Line.js +261 -252
  139. package/dist/esm/embeddable/chart/Tooltip.js +19 -17
  140. package/dist/esm/embeddable/chart/colors/ManualColors.js +19 -19
  141. package/dist/esm/embeddable/chart/data/Bar.js +179 -180
  142. package/dist/esm/embeddable/chart/data/Line.js +146 -193
  143. package/dist/esm/embeddable/chart/data/Utils.js +39 -23
  144. package/dist/esm/embeddable/chart/index.js +323 -316
  145. package/dist/esm/embeddable/d3Map/BaseLayer.js +38 -45
  146. package/dist/esm/embeddable/d3Map/DataLayer.js +418 -204
  147. package/dist/esm/embeddable/d3Map/FlowLayer.js +113 -115
  148. package/dist/esm/embeddable/d3Map/GradientColors.js +155 -0
  149. package/dist/esm/embeddable/d3Map/LatLongLayer.js +132 -104
  150. package/dist/esm/embeddable/d3Map/Layer.js +31 -31
  151. package/dist/esm/embeddable/d3Map/Legends.js +274 -162
  152. package/dist/esm/embeddable/d3Map/Map.js +14 -14
  153. package/dist/esm/embeddable/d3Map/ProjectedContainer.js +16 -15
  154. package/dist/esm/embeddable/d3Map/Utils.js +11 -0
  155. package/dist/esm/embeddable/d3Map/ZoomControl.js +83 -55
  156. package/dist/esm/embeddable/d3Map/index.js +116 -83
  157. package/dist/esm/embeddable/data/CategoriesProvider.js +38 -33
  158. package/dist/esm/embeddable/data/DataProvider.js +87 -79
  159. package/dist/esm/embeddable/filter/index.js +227 -233
  160. package/dist/esm/embeddable/filter-reset-button/index.js +38 -26
  161. package/dist/esm/embeddable/filters-apply-button/index.js +36 -28
  162. package/dist/esm/embeddable/index.js +15 -14
  163. package/dist/esm/embeddable/inlinelist/index.js +64 -61
  164. package/dist/esm/embeddable/map/index.js +157 -148
  165. package/dist/esm/embeddable/measures/index.js +3 -3
  166. package/dist/esm/embeddable/menu/index.js +8 -8
  167. package/dist/esm/embeddable/new-time-line/timeline.js +11 -11
  168. package/dist/esm/embeddable/pagegallery/index.js +11 -11
  169. package/dist/esm/embeddable/pagemodules/index.js +48 -49
  170. package/dist/esm/embeddable/parallax/index.js +30 -25
  171. package/dist/esm/embeddable/posts-with-filters/Post.js +26 -0
  172. package/dist/esm/embeddable/posts-with-filters/index.js +205 -0
  173. package/dist/esm/embeddable/posts-with-filters/utils.js +8 -0
  174. package/dist/esm/embeddable/reducers/data-api.js +27 -13
  175. package/dist/esm/embeddable/reducers/data.js +106 -94
  176. package/dist/esm/embeddable/references/ReferencesList.js +34 -33
  177. package/dist/esm/embeddable/superset-chart/index.js +12 -13
  178. package/dist/esm/embeddable/superset-dashboard/index.js +3 -4
  179. package/dist/esm/embeddable/tabbedposts/index.js +21 -23
  180. package/dist/esm/embeddable/time-line/index.js +14 -11
  181. package/dist/esm/embeddable/time-line/mobile.js +204 -206
  182. package/dist/esm/lib/hooks/screen-orientation.js +25 -0
  183. package/dist/esm/lib/hooks/window-dimensions.js +7 -7
  184. package/dist/esm/styles.css +1 -1
  185. package/dist/esm/utils/data.js +11 -0
  186. package/dist/types/embeddable/chart/Line.d.ts +4 -0
  187. package/dist/types/embeddable/chart/data/Line.d.ts +2 -2
  188. package/dist/types/embeddable/chart/index.d.ts +3 -1
  189. package/dist/types/embeddable/d3Map/GradientColors.d.ts +17 -0
  190. package/dist/types/embeddable/d3Map/Layer.d.ts +1 -0
  191. package/dist/types/embeddable/d3Map/Legends.d.ts +4 -2
  192. package/dist/types/embeddable/d3Map/Utils.d.ts +1 -0
  193. package/dist/types/embeddable/d3Map/ZoomControl.d.ts +11 -7
  194. package/dist/types/embeddable/data/CategoriesProvider.d.ts +6 -2
  195. package/dist/types/embeddable/inlinelist/index.d.ts +1 -8
  196. package/dist/types/embeddable/measures/index.d.ts +1 -1
  197. package/dist/types/embeddable/menu/index.d.ts +0 -10
  198. package/dist/types/embeddable/pagegallery/index.d.ts +0 -4
  199. package/dist/types/embeddable/pagemodules/index.d.ts +1 -1
  200. package/dist/types/embeddable/parallax/index.d.ts +1 -16
  201. package/dist/types/embeddable/posts-with-filters/Post.d.ts +3 -0
  202. package/dist/types/embeddable/posts-with-filters/index.d.ts +21 -0
  203. package/dist/types/embeddable/posts-with-filters/utils.d.ts +6 -0
  204. package/dist/types/embeddable/postscarousel/index.d.ts +1 -1
  205. package/dist/types/embeddable/reducers/data-api.d.ts +9 -18
  206. package/dist/types/embeddable/reducers/data.d.ts +32 -31
  207. package/dist/types/embeddable/references/ReferencesList.d.ts +2 -1
  208. package/dist/types/lib/hooks/resize-observer.d.ts +4 -0
  209. package/dist/types/lib/hooks/screen-orientation.d.ts +18 -0
  210. package/dist/types/utils/data.d.ts +5 -0
  211. package/package.json +3 -2
  212. package/dist/types/embeddable/index.d.ts +0 -161
@@ -1,41 +1,53 @@
1
- import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
- import g from "react";
3
- import { connect as F } from "react-redux";
4
- import { Container as I, Icon as h } from "semantic-ui-react";
5
- import { cleanFilter as N } from "../reducers/data.js";
6
- const b = (t) => {
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": n,
11
- onClean: c,
12
- "data-app": d = "csv",
13
- "data-reset-label": u = "Reset All Filters"
14
- } = t, m = g.useMemo(() => Object.keys(e).some((i) => {
15
- const a = e[i], l = (r[i] || []).filter((s) => s !== Number.MIN_SAFE_INTEGER);
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 p = a.length !== l.length && !a.every((s) => l.includes(s));
21
- return console.log("res", p), p;
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__ */ f(I, { fluid: !0, className: `data-filters-reset ignore ${m ? "" : "disabled"}`, onClick: (i) => c({ app: d, group: n }), children: [
24
- /* @__PURE__ */ o("span", { children: u }),
25
- /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(h, { name: "undo alternate", className: "custom-undo-icon" }) })
26
- ] });
27
- }, C = (t, r) => {
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": n = "csv"
41
+ "data-app": t = "csv"
31
42
  } = r;
32
43
  return {
33
- appliedFilters: t.getIn(["data", "filters", n, e]) ? t.getIn(["data", "filters", n, e]).toJS() : {},
34
- initialFilters: t.getIn(["data", "filters", "initial", n, e]) ? t.getIn(["data", "filters", "initial", n, e]).toJS() : {}
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
- }, E = {
37
- onClean: N
38
- }, v = F(C, E)(b);
47
+ }, y = {
48
+ onClean: A,
49
+ onApply: b
50
+ }, M = I(E, y)(C);
39
51
  export {
40
- v as default
52
+ M as default
41
53
  };
@@ -1,40 +1,48 @@
1
- import { jsxs as I, jsx as r } from "react/jsx-runtime";
2
- import { useState as d, useEffect as f } from "react";
3
- import { connect as b } from "react-redux";
4
- import { Container as F, Icon as E } from "semantic-ui-react";
5
- import { applyFilter as S } from "../reducers/data.js";
6
- const A = (t) => {
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": g = "Apply",
13
- filters: i,
14
- initialFilters: u,
15
- apply: n
16
- } = t, [s, o] = d(!1), [p, y] = d(u);
17
- return console.log(n), f(() => {
18
- Object.keys(p).forEach((c) => {
19
- p[c].length != i[c].filter((h) => h != Number.MIN_SAFE_INTEGER).length && o(!0);
20
- }), y(i);
21
- }, [i]), f(() => {
22
- n != null && o(!1);
23
- }, [n]), /* @__PURE__ */ I(
24
- F,
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 ${s ? "" : "disabled"} ${l ? "editing" : ""}`,
28
- onClick: () => {
29
- s && a({ app: m, group: e });
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__ */ r("span", { children: g }),
33
- /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(E, { name: "chevron circle right", className: "custom-apply-icon" }) })
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
- }, N = (t, l) => {
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
- }, x = {
48
- onApply: S
49
- }, T = b(N, x)(A);
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")), T = e(() => import("./inlinelist/index.js")), N = e(() => import("./agree-and-download/index.js")), P = e(() => import("./downloadPDF/index.js")), D = e(() => import("./map/index.js")), F = 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")), z = e(() => import("./wrapped/index.js")), G = e(() => import("./sankeychart/index.js")), V = e(() => import("./datalabel/index.js")), E = e(() => import("./body/index.js")), W = 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")), m = {
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: T,
16
+ inlineList: F,
17
17
  download: d,
18
- downloadPdf: P,
19
- map: D,
20
- dataFiltersReset: F,
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: z,
33
- sankeyChart: G,
34
- dataLabel: V,
32
+ wrapped: W,
33
+ sankeyChart: z,
34
+ dataLabel: G,
35
35
  body: E,
36
- supersetChart: W,
36
+ supersetChart: V,
37
37
  supersetDashboard: q,
38
- agreeAndDownload: N,
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
- }, Y = (r) => {
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
- }, Z = { data: c, embeddable: p, ...s.getReducers() };
71
+ }, _ = { data: c, embeddable: p, ...s.getReducers() };
71
72
  export {
72
73
  m as components,
73
74
  s as customizer,
74
- Y as getComponentByNameIgnoreCase,
75
- Z as reducers
75
+ Z as getComponentByNameIgnoreCase,
76
+ _ as reducers
76
77
  };
@@ -1,103 +1,106 @@
1
- import { jsx as e, jsxs as i, Fragment as T } from "react/jsx-runtime";
2
- import v, { useState as p, useEffect as x } from "react";
3
- import { Container as h, Grid as y, Label as R } from "semantic-ui-react";
4
- import { PostProvider as _, PostConsumer as M, MediaProvider as S, MediaConsumer as B, PostIcon as L, utils as N } from "@devgateway/wp-react-lib";
5
- import j from "../connected-templates/PostIntro.js";
6
- import { useParams as E } from "react-router";
7
- import k from "../connected-templates/PostContent.js";
8
- const H = v.forwardRef((m, C) => {
9
- const { posts: c, showIcons: l, showContentToggle: g, contentToggleHPosition: b, locale: u } = m, [r, f] = p({}), n = C;
10
- x(() => {
11
- window.setTimeout(() => {
12
- if (window.location.hash) {
13
- const t = document.getElementById(window.location.hash.substring(1));
14
- t && t.scrollIntoView({ behavior: "auto", block: "start" });
15
- }
16
- }, 0);
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 w = (t) => {
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
- }, a = (t) => {
22
- const o = r[t] ?? !1, s = o ? "Read less" : "Read more";
23
- return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { style: { position: "relative", left: b + "%" }, children: /* @__PURE__ */ e("a", { className: "link", onClick: () => {
24
- n != null && n.current && o && (n.current.scrollIntoView({ behavior: "smooth", block: "start" }), n.current.scrollTop = 0), f({ ...r, [t]: !o });
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
- }, P = (t) => {
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(y, { children: [
34
- l && /* @__PURE__ */ i(y.Column, { textAlign: "center", width: 1, children: [
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
- S,
40
+ M,
38
41
  {
39
42
  id: t.meta_fields && t.meta_fields.icon ? t.meta_fields.icon[0] : null,
40
- children: /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(L, { as: R }) })
43
+ children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(B, { as: v }) })
41
44
  }
42
45
  )
43
46
  ] }),
44
- /* @__PURE__ */ i(y.Column, { width: l ? 15 : 16, children: [
45
- d(t) && /* @__PURE__ */ e(j, { as: h, fluid: !0, post: t, ref: n }),
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
- k,
50
+ C,
48
51
  {
49
- post: { content: { rendered: w(t) } },
52
+ post: { content: { rendered: a(t) } },
50
53
  style: { clear: "both", display: "block" }
51
54
  }
52
55
  ),
53
- P(t) && /* @__PURE__ */ i(h, { children: [
54
- g && /* @__PURE__ */ i(T, { children: [
55
- !r[t.slug] && a(t.slug),
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
- k,
60
+ C,
58
61
  {
59
- post: { content: { rendered: w(t) } },
62
+ post: { content: { rendered: a(t) } },
60
63
  style: {
61
64
  clear: "both",
62
- display: r[t.slug] ? "block" : "none"
65
+ display: n[t.slug] ? "block" : "none"
63
66
  }
64
67
  }
65
68
  ),
66
- r[t.slug] && a(t.slug)
69
+ n[t.slug] && f(t.slug)
67
70
  ] }),
68
- !g && /* @__PURE__ */ e("a", { href: N.replaceLink(t.link, u), className: "link", children: "Read More" })
71
+ !l && /* @__PURE__ */ e("a", { href: L.replaceLink(t.link, y), className: "link", children: "Read More" })
69
72
  ] })
70
73
  ] })
71
74
  ] })) });
72
- }), D = (m) => {
73
- const [C, c] = p(Math.random() * 99998 + 1), { locale: l } = E(), {
74
- "data-width": g,
75
- "data-height": b,
76
- "data-type": u,
77
- "data-taxonomy": r,
78
- "data-categories": f,
79
- "data-items": n,
80
- "data-color": w,
81
- "data-show-post-icons": a,
82
- "data-show-content-toggle": d,
83
- "data-content-toggle-h-position": P,
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: t,
86
- editing: o,
87
- component: s,
88
- unique: I
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: u,
96
+ type: n,
94
97
  locale: l,
95
- taxonomy: r,
96
- categories: f,
97
- store: "inline_list_" + t + "_" + I,
98
+ taxonomy: u,
99
+ categories: r,
100
+ store: "inline_list_" + o + "_" + b,
98
101
  page: 1,
99
- perPage: n,
100
- children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(H, { locale: l ?? "en", showIcons: a === "true", showContentToggle: d === "true", contentToggleHPosition: P }) })
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
  };