@devgateway/dvz-ui-react 1.6.20 → 1.7.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.
- package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/_virtual/debounce.js +1 -0
- package/dist/cjs/embeddable/big-filter/BigNumberGroup.js +1 -0
- package/dist/cjs/embeddable/big-filter/BigNumberItem.js +1 -0
- package/dist/cjs/embeddable/big-filter/DataProvider.js +1 -0
- package/dist/cjs/embeddable/big-filter/index.js +1 -0
- package/dist/cjs/embeddable/big-number/index.js +1 -1
- package/dist/cjs/embeddable/big-number-trend/Alternative.js +1 -0
- package/dist/cjs/embeddable/big-number-trend/Classic.js +1 -0
- package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
- package/dist/cjs/embeddable/chart/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/Line.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/index.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 -1
- 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/ProjectedContainer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Utils.js +1 -1
- package/dist/cjs/embeddable/d3Map/ZoomControl.js +1 -1
- package/dist/cjs/embeddable/d3Map/index.js +1 -1
- package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
- package/dist/cjs/embeddable/data/D3MapDataConsumer.js +1 -0
- package/dist/cjs/embeddable/data/D3MapDataProvider.js +1 -0
- package/dist/cjs/embeddable/data/DataContext.js +1 -1
- package/dist/cjs/embeddable/data/DataProvider.js +1 -1
- package/dist/cjs/embeddable/data-paragraph/index.js +1 -0
- package/dist/cjs/embeddable/download/dom-to-image.js +2 -2
- package/dist/cjs/embeddable/download/index.js +5 -5
- package/dist/cjs/embeddable/filter/index.js +1 -1
- package/dist/cjs/embeddable/grouped-bars/GroupedBars.js +1 -0
- package/dist/cjs/embeddable/grouped-bars/index.js +1 -0
- package/dist/cjs/embeddable/index.js +1 -1
- package/dist/cjs/embeddable/posts-filter/CategoricalFilter.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/utils/common.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/layout/Customizer.js +1 -1
- package/dist/cjs/layout/SearchControl.js +1 -1
- package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +1 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +8 -0
- package/dist/esm/_virtual/debounce.js +7 -0
- package/dist/esm/embeddable/big-filter/BigNumberGroup.js +129 -0
- package/dist/esm/embeddable/big-filter/BigNumberItem.js +107 -0
- package/dist/esm/embeddable/big-filter/DataProvider.js +53 -0
- package/dist/esm/embeddable/big-filter/index.js +130 -0
- package/dist/esm/embeddable/big-number/index.js +154 -102
- package/dist/esm/embeddable/big-number-trend/Alternative.js +227 -0
- package/dist/esm/embeddable/big-number-trend/Classic.js +190 -0
- package/dist/esm/embeddable/big-number-trend/index.js +12 -147
- package/dist/esm/embeddable/chart/Bar.js +450 -395
- package/dist/esm/embeddable/chart/Line.js +216 -184
- package/dist/esm/embeddable/chart/data/Bar.js +16 -18
- package/dist/esm/embeddable/chart/data/Line.js +27 -24
- package/dist/esm/embeddable/chart/data/Utils.js +3 -1
- package/dist/esm/embeddable/chart/index.js +168 -162
- package/dist/esm/embeddable/d3Map/BaseLayer.js +25 -28
- package/dist/esm/embeddable/d3Map/BreaksStyles.js +17 -10
- package/dist/esm/embeddable/d3Map/DataLayer.js +290 -289
- package/dist/esm/embeddable/d3Map/FlowLayer.js +122 -136
- package/dist/esm/embeddable/d3Map/GradientColors.js +27 -20
- package/dist/esm/embeddable/d3Map/LatLongLayer.js +62 -62
- package/dist/esm/embeddable/d3Map/Layer.js +31 -27
- package/dist/esm/embeddable/d3Map/Legends.js +204 -190
- package/dist/esm/embeddable/d3Map/ProjectedContainer.js +1 -3
- package/dist/esm/embeddable/d3Map/Utils.js +12 -8
- package/dist/esm/embeddable/d3Map/ZoomControl.js +41 -41
- package/dist/esm/embeddable/d3Map/index.js +135 -117
- package/dist/esm/embeddable/data/CategoriesProvider.js +39 -26
- package/dist/esm/embeddable/data/D3MapDataConsumer.js +7 -0
- package/dist/esm/embeddable/data/D3MapDataProvider.js +83 -0
- package/dist/esm/embeddable/data/DataContext.js +2 -2
- package/dist/esm/embeddable/data/DataProvider.js +124 -55
- package/dist/esm/embeddable/data-paragraph/index.js +168 -0
- package/dist/esm/embeddable/download/dom-to-image.js +163 -148
- package/dist/esm/embeddable/download/index.js +102 -76
- package/dist/esm/embeddable/filter/index.js +335 -298
- package/dist/esm/embeddable/grouped-bars/GroupedBars.js +549 -0
- package/dist/esm/embeddable/grouped-bars/index.js +16 -0
- package/dist/esm/embeddable/index.js +33 -30
- package/dist/esm/embeddable/posts-filter/CategoricalFilter.js +18 -18
- package/dist/esm/embeddable/reducers/data-api.js +39 -35
- package/dist/esm/embeddable/reducers/data.js +141 -182
- package/dist/esm/embeddable/utils/common.js +3 -3
- package/dist/esm/index.js +111 -94
- package/dist/esm/layout/Customizer.js +10 -9
- package/dist/esm/layout/SearchControl.js +103 -113
- package/dist/esm/layout/containers/SlugPostContainer.js +1 -1
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +16 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +60 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +28 -0
- package/dist/esm/styles.css +1 -1
- package/dist/types/embeddable/big-filter/BigNumberGroup.d.ts +3 -0
- package/dist/types/embeddable/big-filter/BigNumberItem.d.ts +2 -0
- package/dist/types/embeddable/big-filter/DataProvider.d.ts +7 -0
- package/dist/types/embeddable/big-filter/index.d.ts +5 -0
- package/dist/types/embeddable/big-number-trend/Alternative.d.ts +5 -0
- package/dist/types/embeddable/big-number-trend/Classic.d.ts +5 -0
- package/dist/types/embeddable/big-number-trend/index.d.ts +2 -4
- package/dist/types/embeddable/chart/Bar.d.ts +3 -0
- package/dist/types/embeddable/chart/Line.d.ts +6 -0
- package/dist/types/embeddable/d3Map/GradientColors.d.ts +6 -2
- package/dist/types/embeddable/d3Map/Layer.d.ts +1 -1
- package/dist/types/embeddable/d3Map/Utils.d.ts +1 -1
- package/dist/types/embeddable/data/D3MapDataProvider.d.ts +7 -0
- package/dist/types/embeddable/data/index.d.ts +6 -0
- package/dist/types/embeddable/data-paragraph/index.d.ts +5 -0
- package/dist/types/embeddable/filter/index.d.ts +13 -1
- package/dist/types/embeddable/grouped-bars/GroupedBars.d.ts +5 -0
- package/dist/types/embeddable/grouped-bars/index.d.ts +3 -0
- package/dist/types/embeddable/reducers/data-api.d.ts +5 -0
- package/dist/types/embeddable/reducers/data.d.ts +16 -9
- package/dist/types/embeddable/utils/index.d.ts +1 -0
- package/dist/types/embeddable/utils/parseUtils.d.ts +0 -6
- package/dist/types/index.d.ts +6 -0
- package/dist/types/layout/Customizer.d.ts +1 -0
- package/dist/types/layout/containers/PageContainer.d.ts +8 -0
- package/dist/types/layout/containers/PostContainer.d.ts +0 -0
- package/dist/types/layout/index.d.ts +1 -0
- package/dist/types/utils/Logger.d.ts +1 -0
- package/package.json +3 -2
- /package/dist/types/embeddable/data/{DataConsumerMap.d.ts → D3MapDataConsumer.d.ts} +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -1,104 +1,121 @@
|
|
|
1
|
-
import { components as
|
|
2
|
-
import { Config as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { CustomizerWrapper as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { withTracker as
|
|
24
|
-
import { clearInternalTrafficCookie as
|
|
25
|
-
import { default as
|
|
26
|
-
import { store as
|
|
27
|
-
import { useAppDispatch as
|
|
28
|
-
import { UPDATE as
|
|
29
|
-
import { combineReducers as
|
|
1
|
+
import { components as i, customizer as l, getComponentByNameIgnoreCase as d, reducers as x } from "./embeddable/index.js";
|
|
2
|
+
import { Config as c } from "./conf/index.js";
|
|
3
|
+
import { default as C } from "./layout/ResponsiveContainer.js";
|
|
4
|
+
import { default as P } from "./layout/ScrollTop.js";
|
|
5
|
+
import { default as h } from "./layout/containers/PreviewPageContainer.js";
|
|
6
|
+
import { default as I } from "./layout/containers/PreviewTypeContainer.js";
|
|
7
|
+
import { default as A } from "./layout/containers/SlugContainer.js";
|
|
8
|
+
import { default as D } from "./layout/containers/SlugPostContainer.js";
|
|
9
|
+
import { CustomizerWrapper as k } from "./layout/Customizer.js";
|
|
10
|
+
import { default as E } from "./layout/Layout.js";
|
|
11
|
+
import { default as L } from "./layout/PreviewComponent.js";
|
|
12
|
+
import { default as N } from "./layout/Favicon.js";
|
|
13
|
+
import { default as b } from "./layout/SSRFavicon.js";
|
|
14
|
+
import { default as z } from "./layout/Loading.js";
|
|
15
|
+
import { default as K } from "./layout/CustomSemanticSearch.js";
|
|
16
|
+
import { default as J } from "./layout/Header.js";
|
|
17
|
+
import { default as Y } from "./layout/SearchControl.js";
|
|
18
|
+
import { default as j } from "./layout/LangSwitcher.js";
|
|
19
|
+
import { default as G } from "./layout/Footer.js";
|
|
20
|
+
import { default as X } from "./layout/ClassicHeader.js";
|
|
21
|
+
import { default as $ } from "./layout/FlexWrapDetector.js";
|
|
22
|
+
import { default as re } from "./layout/FloatingMenuHeader.js";
|
|
23
|
+
import { withTracker as te } from "./tracker/withGoogleAnalytics.js";
|
|
24
|
+
import { clearInternalTrafficCookie as fe, isInternalTrafficEnabled as se, setInternalTrafficCookie as pe, validateToken as me } from "./tracker/internalTrafficUtils.js";
|
|
25
|
+
import { default as ie } from "./tracker/InternalTrafficToggle.js";
|
|
26
|
+
import { store as de } from "./redux/store.js";
|
|
27
|
+
import { useAppDispatch as ue, useAppSelector as ce } from "./redux/hooks.js";
|
|
28
|
+
import { UPDATE as Ce, initialState as ge, intlReducer as Pe, updateIntl as Se } from "./lib/react-intl-redux/index.js";
|
|
29
|
+
import { combineReducers as ve } from "./lib/redux-immutable/index.js";
|
|
30
30
|
import * as e from "./translations/en.json.js";
|
|
31
31
|
import * as r from "./translations/fr.json.js";
|
|
32
32
|
import * as o from "./translations/af.json.js";
|
|
33
33
|
import * as t from "./translations/am.json.js";
|
|
34
|
-
import { COUNTRY_OPTIONS as
|
|
35
|
-
import { decodeHtmlEntitiesToHtml as
|
|
36
|
-
import { Media as
|
|
37
|
-
import { getUnhandledProps as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
34
|
+
import { COUNTRY_OPTIONS as ye } from "./countries.js";
|
|
35
|
+
import { decodeHtmlEntitiesToHtml as He, decodeHtmlEntitiesToText as De, stringToArray as Re, toBoolean as ke, toNumber as we, uriStringToArray as Ee } from "./utils/data.js";
|
|
36
|
+
import { Media as Le, MediaContextProvider as Me, mediaStyle as Ne } from "./utils/AppMedia.js";
|
|
37
|
+
import { getUnhandledProps as be, htmlImageProps as Ue, htmlInputAttrs as ze, htmlInputEvents as Be, htmlInputProps as Ke, partitionHTMLProps as We, useKeyOnly as Je, useValueAndKey as Ve } from "./utils/semanticUtils.js";
|
|
38
|
+
import { default as _e } from "./embeddable/data/DataConsumer.js";
|
|
39
|
+
import { default as qe } from "./embeddable/data/DataProvider.js";
|
|
40
|
+
import { CategoriesContext as Qe, DataContext as Xe, PostsContext as Ze } from "./embeddable/data/DataContext.js";
|
|
41
|
+
import "react/jsx-runtime";
|
|
42
|
+
import "react";
|
|
43
|
+
import "./embeddable/data/CategoriesProvider.js";
|
|
44
|
+
import { compareJsonProps as er, decode as rr, parse as or } from "./embeddable/utils/parseUtils.js";
|
|
45
|
+
import * as p from "./embeddable/reducers/data.js";
|
|
46
|
+
import { default as ar } from "./lib/react-intl-redux/providers/Provider.js";
|
|
47
|
+
import { default as sr } from "./lib/react-intl-redux/providers/IntlProvider.js";
|
|
40
48
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
49
|
+
ye as COUNTRY_OPTIONS,
|
|
50
|
+
Qe as CategoriesContext,
|
|
51
|
+
X as ClassicHeader,
|
|
52
|
+
c as Config,
|
|
53
|
+
K as CustomSemanticSearch,
|
|
54
|
+
k as CustomizerWrapper,
|
|
55
|
+
_e as DataConsumer,
|
|
56
|
+
Xe as DataContext,
|
|
57
|
+
qe as DataProvider,
|
|
58
|
+
N as Favicon,
|
|
59
|
+
$ as FlexWrapDetector,
|
|
60
|
+
re as FloatingMenuHeader,
|
|
61
|
+
G as Footer,
|
|
62
|
+
J as Header,
|
|
63
|
+
ie as InternalTrafficToggle,
|
|
64
|
+
sr as IntlProvider,
|
|
65
|
+
j as LangSwitcher,
|
|
66
|
+
z as Loading,
|
|
67
|
+
Le as Media,
|
|
68
|
+
Me as MediaContextProvider,
|
|
69
|
+
Ze as PostsContext,
|
|
70
|
+
L as PreviewComponent,
|
|
71
|
+
h as PreviewPageContainer,
|
|
72
|
+
I as PreviewTypeContainer,
|
|
73
|
+
ar as Provider,
|
|
74
|
+
C as ResponsiveContainer,
|
|
75
|
+
E as RootLayout,
|
|
76
|
+
b as SSRFavicon,
|
|
77
|
+
P as ScrollToTop,
|
|
78
|
+
Y as SearchControl,
|
|
79
|
+
A as SlugContainer,
|
|
80
|
+
D as SlugPostContainer,
|
|
81
|
+
Ce as UPDATE,
|
|
69
82
|
o as afrikaansTranslations,
|
|
70
83
|
t as amharicTranslations,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
fe as clearInternalTrafficCookie,
|
|
85
|
+
ve as combineReducers,
|
|
86
|
+
er as compareJsonProps,
|
|
87
|
+
i as components,
|
|
88
|
+
l as customizer,
|
|
89
|
+
rr as decode,
|
|
90
|
+
He as decodeHtmlEntitiesToHtml,
|
|
91
|
+
De as decodeHtmlEntitiesToText,
|
|
77
92
|
e as englishTranslations,
|
|
78
93
|
r as frenchTranslations,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
d as getComponentByNameIgnoreCase,
|
|
95
|
+
be as getUnhandledProps,
|
|
96
|
+
Ue as htmlImageProps,
|
|
97
|
+
ze as htmlInputAttrs,
|
|
98
|
+
Be as htmlInputEvents,
|
|
99
|
+
Ke as htmlInputProps,
|
|
100
|
+
ge as initialState,
|
|
101
|
+
Pe as intlReducer,
|
|
102
|
+
se as isInternalTrafficEnabled,
|
|
103
|
+
Ne as mediaStyle,
|
|
104
|
+
or as parse,
|
|
105
|
+
We as partitionHTMLProps,
|
|
106
|
+
p as reducer,
|
|
107
|
+
x as reducers,
|
|
108
|
+
pe as setInternalTrafficCookie,
|
|
109
|
+
de as store,
|
|
110
|
+
Re as stringToArray,
|
|
111
|
+
ke as toBoolean,
|
|
112
|
+
we as toNumber,
|
|
113
|
+
Se as updateIntl,
|
|
114
|
+
Ee as uriStringToArray,
|
|
115
|
+
ue as useAppDispatch,
|
|
116
|
+
ce as useAppSelector,
|
|
117
|
+
Je as useKeyOnly,
|
|
118
|
+
Ve as useValueAndKey,
|
|
119
|
+
me as validateToken,
|
|
120
|
+
te as withTracker
|
|
104
121
|
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import i, { useState as c, useRef as
|
|
1
|
+
import i, { useState as c, useRef as l, useEffect as p } from "react";
|
|
2
2
|
const o = {
|
|
3
3
|
blogname: "name",
|
|
4
4
|
custom_logo: "site_logo"
|
|
5
|
-
}, d = (
|
|
6
|
-
const [m, u] = c(
|
|
5
|
+
}, d = (s) => {
|
|
6
|
+
const [m, u] = c(s.settings), n = l({}), a = (r) => {
|
|
7
7
|
const e = r.data;
|
|
8
8
|
if (e.messageType && e.messageType === "partial-update") {
|
|
9
|
-
const t =
|
|
10
|
-
o[e.property] ? t[o[e.property]] = e.value : e.property.indexOf("menu") > -1 && (t.menu_settings || (t.menu_settings = {}), t.menu_settings[e.property] = e.value),
|
|
9
|
+
const t = n.current;
|
|
10
|
+
o[e.property] ? t[o[e.property]] = e.value : e.property.indexOf("menu") > -1 && (t.menu_settings || (t.menu_settings = {}), t.menu_settings[e.property] = e.value), n.current = t, u({ ...n.current, random: Math.random() });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
return
|
|
13
|
+
return p(() => (window.addEventListener("message", a, !1), () => {
|
|
14
14
|
window.removeEventListener("message", a);
|
|
15
|
-
}), []), i.Children.map(
|
|
16
|
-
...
|
|
15
|
+
}), []), i.Children.map(s.children, (r, e) => i.cloneElement(r, {
|
|
16
|
+
...s,
|
|
17
17
|
settings: { ...m },
|
|
18
18
|
key: `customizer-child-${e}`
|
|
19
19
|
}));
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
d as CustomizerWrapper
|
|
22
|
+
d as CustomizerWrapper,
|
|
23
|
+
d as default
|
|
23
24
|
};
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { utils as x, SearchProvider as
|
|
4
|
-
import
|
|
5
|
-
import { createPortal as
|
|
1
|
+
import { jsx as t, jsxs as S, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v, useEffect as w, useContext as _, useRef as E } from "react";
|
|
3
|
+
import { utils as x, SearchProvider as T, SearchContext as b } from "@devgateway/wp-react-lib";
|
|
4
|
+
import z from "./CustomSemanticSearch.js";
|
|
5
|
+
import { createPortal as P } from "react-dom";
|
|
6
6
|
import { Icon as F } from "semantic-ui-react";
|
|
7
|
-
import { injectIntl as
|
|
8
|
-
const
|
|
9
|
-
if (!
|
|
7
|
+
import { injectIntl as I, IntlProvider as j } from "react-intl";
|
|
8
|
+
const C = (n, s) => {
|
|
9
|
+
if (!n || !s) return n || "";
|
|
10
10
|
const o = new RegExp(`(${s})`, "gi");
|
|
11
|
-
return
|
|
12
|
-
},
|
|
11
|
+
return n.replace(o, "<strong>$1</strong>");
|
|
12
|
+
}, N = I(
|
|
13
13
|
({
|
|
14
|
-
ID:
|
|
14
|
+
ID: n,
|
|
15
15
|
title: s,
|
|
16
16
|
slug: o,
|
|
17
17
|
parent_title: i,
|
|
18
18
|
parent_slug: e,
|
|
19
|
-
parent_link:
|
|
19
|
+
parent_link: r,
|
|
20
20
|
extract: a,
|
|
21
|
-
type:
|
|
22
|
-
link:
|
|
23
|
-
terms:
|
|
21
|
+
type: l,
|
|
22
|
+
link: d,
|
|
23
|
+
terms: y,
|
|
24
24
|
subtype: p,
|
|
25
|
-
bread_crumbs:
|
|
26
|
-
metadata:
|
|
27
|
-
intl: { locale:
|
|
25
|
+
bread_crumbs: u = [],
|
|
26
|
+
metadata: c,
|
|
27
|
+
intl: { locale: m },
|
|
28
28
|
searchTerm: g
|
|
29
29
|
// Added searchTerm prop
|
|
30
30
|
}) => {
|
|
31
|
-
let
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const
|
|
31
|
+
let h = r ? x.replaceLink(r, m) + `#${o}` : x.replaceLink(d, m);
|
|
32
|
+
const f = c == null ? void 0 : c.redirect_url;
|
|
33
|
+
h = f ? f + `#${o}` : h;
|
|
34
|
+
const M = C(String(s), g), R = C(a, g);
|
|
35
35
|
return /* @__PURE__ */ t(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
className: "search-results-wrapper searching-results",
|
|
39
39
|
style: { display: "flex", flexDirection: "column" },
|
|
40
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ S(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
className: "has-standard-12-font-size",
|
|
44
|
-
onClick: (
|
|
44
|
+
onClick: (q) => document.location.href = h,
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ t(
|
|
47
47
|
"h5",
|
|
48
48
|
{
|
|
49
49
|
className: "breadcrumbs-search",
|
|
50
50
|
dangerouslySetInnerHTML: {
|
|
51
|
-
__html:
|
|
51
|
+
__html: u && u.length > 0 ? C(u.join(" / "), g) : ""
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
),
|
|
@@ -57,7 +57,7 @@ const I = (r, s) => {
|
|
|
57
57
|
{
|
|
58
58
|
className: "search-title",
|
|
59
59
|
dangerouslySetInnerHTML: {
|
|
60
|
-
__html:
|
|
60
|
+
__html: M
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
) }),
|
|
@@ -66,7 +66,7 @@ const I = (r, s) => {
|
|
|
66
66
|
{
|
|
67
67
|
className: "search-content",
|
|
68
68
|
dangerouslySetInnerHTML: {
|
|
69
|
-
__html: x.replaceHTMLinks(
|
|
69
|
+
__html: x.replaceHTMLinks(R, m)
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
)
|
|
@@ -76,193 +76,183 @@ const I = (r, s) => {
|
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
|
-
), k = ({ results:
|
|
80
|
-
const
|
|
81
|
-
return s && s["x-wp-totalpages"], /* @__PURE__ */
|
|
79
|
+
), k = ({ results: n, meta: s, perPage: o, intl: i, searchTerm: e }) => {
|
|
80
|
+
const r = s ? s["x-wp-total"] : 0;
|
|
81
|
+
return s && s["x-wp-totalpages"], /* @__PURE__ */ S("div", { id: "float-results-container", children: [
|
|
82
82
|
/* @__PURE__ */ t("span", { className: "float-results-header", children: i.formatMessage(
|
|
83
83
|
{
|
|
84
84
|
id: "search.results.summary",
|
|
85
85
|
defaultMessage: "{count} of {total} Results"
|
|
86
86
|
},
|
|
87
|
-
{ count:
|
|
87
|
+
{ count: r < o ? r : o, total: r }
|
|
88
88
|
) }),
|
|
89
|
-
|
|
89
|
+
n.map((a) => /* @__PURE__ */ t(N, { ...a, searchTerm: e }, a.ID))
|
|
90
90
|
] });
|
|
91
91
|
}, D = ({
|
|
92
|
-
onSearch:
|
|
92
|
+
onSearch: n,
|
|
93
93
|
perPage: s,
|
|
94
94
|
loading: o,
|
|
95
95
|
results: i,
|
|
96
96
|
meta: e,
|
|
97
|
-
intl:
|
|
97
|
+
intl: r,
|
|
98
|
+
searchTerm: a
|
|
98
99
|
}) => (e && e["x-wp-total"], e && e["x-wp-totalpages"], /* @__PURE__ */ t(
|
|
99
100
|
"input",
|
|
100
101
|
{
|
|
101
|
-
placeholder:
|
|
102
|
+
placeholder: r.formatMessage({
|
|
102
103
|
id: "search.placeholder",
|
|
103
104
|
defaultMessage: "Search..."
|
|
104
105
|
}),
|
|
105
106
|
type: "text",
|
|
106
107
|
className: "input search",
|
|
107
108
|
name: "search",
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
value: a,
|
|
110
|
+
onChange: (l) => {
|
|
111
|
+
n(l.target.value);
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
|
-
)),
|
|
113
|
-
onSearch:
|
|
114
|
+
)), H = ({
|
|
115
|
+
onSearch: n,
|
|
114
116
|
onSetSelected: s,
|
|
115
117
|
perPage: o,
|
|
116
118
|
loading: i,
|
|
117
119
|
results: e,
|
|
118
|
-
meta:
|
|
120
|
+
meta: r,
|
|
119
121
|
locale: a,
|
|
120
|
-
intl:
|
|
121
|
-
searchTerm:
|
|
122
|
+
intl: l,
|
|
123
|
+
searchTerm: d,
|
|
122
124
|
// Added search from SearchConsumer
|
|
123
|
-
selected:
|
|
125
|
+
selected: y
|
|
124
126
|
// Added selected prop to track menu selection
|
|
125
127
|
}) => {
|
|
126
|
-
const [p,
|
|
127
|
-
|
|
128
|
-
}, g = () => {
|
|
129
|
-
const c = document.getElementsByClassName("has-child-items");
|
|
130
|
-
for (let u = 0; u < c.length; u++) {
|
|
131
|
-
const v = c[u].getElementsByTagName("span");
|
|
132
|
-
v.length > 0 && v[0].addEventListener("mouseover", f);
|
|
133
|
-
}
|
|
134
|
-
}, S = () => {
|
|
135
|
-
const c = document.getElementsByClassName("has-child-items");
|
|
136
|
-
for (let u = 0; u < c.length; u++) {
|
|
137
|
-
const v = c[u].getElementsByTagName("span");
|
|
138
|
-
v.length > 0 && v[0].removeEventListener("mouseover", f);
|
|
139
|
-
}
|
|
128
|
+
const [p, u] = v(!1), c = E(null), m = () => {
|
|
129
|
+
u(!1);
|
|
140
130
|
};
|
|
141
|
-
return
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
return
|
|
146
|
-
|
|
131
|
+
return w(() => {
|
|
132
|
+
const h = document.createElement("div");
|
|
133
|
+
h.setAttribute("id", "float-input-container"), h.setAttribute("class", "input container"), h.style.display = "none";
|
|
134
|
+
const f = document.getElementById("root");
|
|
135
|
+
return f && (f.appendChild(h), c.current = h), () => {
|
|
136
|
+
c.current && c.current.parentNode && c.current.parentNode.removeChild(c.current);
|
|
147
137
|
};
|
|
148
|
-
}, []),
|
|
149
|
-
|
|
150
|
-
}, [p]), /* @__PURE__ */
|
|
138
|
+
}, []), w(() => {
|
|
139
|
+
c.current && (c.current.style.display = p ? "block" : "none");
|
|
140
|
+
}, [p]), /* @__PURE__ */ S(L, { children: [
|
|
151
141
|
/* @__PURE__ */ t(
|
|
152
142
|
"div",
|
|
153
143
|
{
|
|
154
144
|
id: "ui-float-search",
|
|
155
145
|
className: "ui float-search",
|
|
156
146
|
onMouseOver: () => {
|
|
157
|
-
|
|
147
|
+
u(!0);
|
|
158
148
|
},
|
|
159
149
|
children: /* @__PURE__ */ t(F, { name: "search", size: "small" })
|
|
160
150
|
}
|
|
161
151
|
),
|
|
162
|
-
|
|
163
|
-
p ? /* @__PURE__ */
|
|
152
|
+
c.current && P(
|
|
153
|
+
p ? /* @__PURE__ */ S("div", { onMouseLeave: m, children: [
|
|
164
154
|
/* @__PURE__ */ t("div", { className: "float-search-container", children: /* @__PURE__ */ t(
|
|
165
155
|
D,
|
|
166
156
|
{
|
|
167
|
-
onSearch:
|
|
157
|
+
onSearch: n,
|
|
168
158
|
perPage: o,
|
|
169
159
|
loading: i,
|
|
170
160
|
results: e,
|
|
171
|
-
meta:
|
|
172
|
-
intl:
|
|
173
|
-
searchTerm:
|
|
161
|
+
meta: r,
|
|
162
|
+
intl: l,
|
|
163
|
+
searchTerm: d
|
|
174
164
|
}
|
|
175
165
|
) }),
|
|
176
166
|
e && e.length > 0 && /* @__PURE__ */ t(j, { locale: a, children: /* @__PURE__ */ t(
|
|
177
167
|
k,
|
|
178
168
|
{
|
|
179
169
|
results: e,
|
|
180
|
-
meta:
|
|
170
|
+
meta: r,
|
|
181
171
|
perPage: o,
|
|
182
|
-
intl:
|
|
183
|
-
searchTerm:
|
|
172
|
+
intl: l,
|
|
173
|
+
searchTerm: d
|
|
184
174
|
}
|
|
185
175
|
) })
|
|
186
176
|
] }) : null,
|
|
187
|
-
|
|
177
|
+
c.current
|
|
188
178
|
)
|
|
189
179
|
] });
|
|
190
|
-
},
|
|
191
|
-
const a = e ? e["x-wp-total"] : 0,
|
|
192
|
-
|
|
193
|
-
const
|
|
194
|
-
|
|
180
|
+
}, $ = ({ onSearch: n, perPage: s, loading: o, results: i, meta: e, intl: r }) => {
|
|
181
|
+
const a = e ? e["x-wp-total"] : 0, l = e ? e["x-wp-totalpages"] : 0, [d, y] = v("");
|
|
182
|
+
w(() => {
|
|
183
|
+
const u = setTimeout(() => {
|
|
184
|
+
n(d);
|
|
195
185
|
}, 300);
|
|
196
|
-
return () => clearTimeout(
|
|
197
|
-
}, [
|
|
198
|
-
const p = (
|
|
186
|
+
return () => clearTimeout(u);
|
|
187
|
+
}, [d]);
|
|
188
|
+
const p = (u) => /* @__PURE__ */ t(N, { ...u, searchTerm: d });
|
|
199
189
|
return /* @__PURE__ */ t(
|
|
200
|
-
|
|
190
|
+
z,
|
|
201
191
|
{
|
|
202
|
-
value:
|
|
192
|
+
value: d,
|
|
203
193
|
loading: o,
|
|
204
|
-
placeholder:
|
|
194
|
+
placeholder: r.formatMessage({
|
|
205
195
|
id: "search.placeholder",
|
|
206
196
|
defaultMessage: "Search..."
|
|
207
197
|
}),
|
|
208
|
-
onResultSelect: (
|
|
198
|
+
onResultSelect: (u, c) => null,
|
|
209
199
|
total: a,
|
|
210
200
|
perPage: s,
|
|
211
|
-
totalPages:
|
|
212
|
-
onSearchChange: (
|
|
213
|
-
|
|
201
|
+
totalPages: l,
|
|
202
|
+
onSearchChange: (u, c) => {
|
|
203
|
+
y(c.value);
|
|
214
204
|
},
|
|
215
205
|
resultRenderer: p,
|
|
216
206
|
results: i,
|
|
217
207
|
showNoResults: !1,
|
|
218
|
-
intl:
|
|
219
|
-
searchTerm:
|
|
208
|
+
intl: r,
|
|
209
|
+
searchTerm: d
|
|
220
210
|
}
|
|
221
211
|
);
|
|
222
|
-
},
|
|
223
|
-
const { intl: s, onSetSelected: o } =
|
|
224
|
-
return
|
|
225
|
-
const
|
|
212
|
+
}, U = I((n) => {
|
|
213
|
+
const { intl: s, onSetSelected: o } = n, [i, e] = v(""), [r, a] = v(!1);
|
|
214
|
+
return w(() => {
|
|
215
|
+
const l = () => {
|
|
226
216
|
a(window.innerWidth <= 1365);
|
|
227
217
|
};
|
|
228
|
-
return
|
|
229
|
-
}, []), /* @__PURE__ */ t(
|
|
218
|
+
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
219
|
+
}, []), /* @__PURE__ */ t(T, { search: i, perPage: 5, locale: s.locale, children: /* @__PURE__ */ t(
|
|
230
220
|
A,
|
|
231
221
|
{
|
|
232
|
-
...
|
|
222
|
+
...n,
|
|
233
223
|
onSetSelected: o,
|
|
234
224
|
setQuery: e,
|
|
235
225
|
query: i,
|
|
236
|
-
isSmallScreen:
|
|
226
|
+
isSmallScreen: r,
|
|
237
227
|
intl: s
|
|
238
228
|
}
|
|
239
229
|
) });
|
|
240
|
-
}), A = ({ onSetSelected:
|
|
241
|
-
const
|
|
230
|
+
}), A = ({ onSetSelected: n, selected: s, setQuery: o, query: i, isSmallScreen: e, intl: r, ...a }) => {
|
|
231
|
+
const l = _(b);
|
|
242
232
|
return a.settings.react_search_type === "floating" || e ? /* @__PURE__ */ t(
|
|
243
|
-
|
|
233
|
+
H,
|
|
244
234
|
{
|
|
245
|
-
onSetSelected:
|
|
235
|
+
onSetSelected: n,
|
|
246
236
|
selected: s,
|
|
247
237
|
onSearch: o,
|
|
248
238
|
perPage: 5,
|
|
249
|
-
intl:
|
|
239
|
+
intl: r,
|
|
250
240
|
...a,
|
|
251
|
-
...
|
|
241
|
+
...l,
|
|
252
242
|
searchTerm: i
|
|
253
243
|
}
|
|
254
244
|
) : /* @__PURE__ */ t(
|
|
255
|
-
|
|
245
|
+
$,
|
|
256
246
|
{
|
|
257
|
-
onSetSelected:
|
|
247
|
+
onSetSelected: n,
|
|
258
248
|
onSearch: o,
|
|
259
249
|
perPage: 5,
|
|
260
|
-
intl:
|
|
250
|
+
intl: r,
|
|
261
251
|
...a,
|
|
262
|
-
...
|
|
252
|
+
...l
|
|
263
253
|
}
|
|
264
254
|
);
|
|
265
255
|
};
|
|
266
256
|
export {
|
|
267
|
-
|
|
257
|
+
U as default
|
|
268
258
|
};
|
|
@@ -7,10 +7,10 @@ const v = ({ header: e, footer: t, posts: r } = {}) => {
|
|
|
7
7
|
return r ? /* @__PURE__ */ o(s, { header: e, footer: t, children: /* @__PURE__ */ o(i, { posts: typeof r == "object" ? [r] : r }) }) : (console.log("SlugPostContainer falling back to PostProvider"), /* @__PURE__ */ o(
|
|
8
8
|
u,
|
|
9
9
|
{
|
|
10
|
+
type: a,
|
|
10
11
|
slug: n,
|
|
11
12
|
store: n,
|
|
12
13
|
locale: l,
|
|
13
|
-
type: a,
|
|
14
14
|
year: c,
|
|
15
15
|
month: d,
|
|
16
16
|
day: m,
|