@devgateway/dvz-ui-react 1.4.0 → 1.5.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/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/_virtual/_nodeUtil.js +1 -0
- package/dist/cjs/_virtual/isBuffer.js +1 -0
- package/dist/cjs/_virtual/isEqual.js +1 -0
- package/dist/cjs/embeddable/big-number-trend/index.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/Line.js +1 -1
- package/dist/cjs/embeddable/chart/colors/ColorProvider.js +1 -1
- package/dist/cjs/embeddable/chart/colors/ManualColors.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/d3Map/BaseLayer.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/data/DataContext.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/filtered-posts/NoData.js +11 -0
- package/dist/cjs/embeddable/filtered-posts/index.js +1 -0
- package/dist/cjs/embeddable/index.js +1 -1
- package/dist/cjs/embeddable/inlinelist/index.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/map.js +4 -4
- 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/posts-filter/PostsFilterDropdown.js +1 -0
- package/dist/cjs/embeddable/posts-filter/index.js +1 -0
- package/dist/cjs/embeddable/posts-filters-reset-button/index.js +1 -0
- package/dist/cjs/embeddable/posts-pagination/index.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/showcase/index.js +1 -1
- package/dist/cjs/embeddable/time-line/desktop.js +1 -1
- package/dist/cjs/embeddable/time-line/mobile.js +1 -1
- package/dist/cjs/embeddable/vertical-featuredtabs/index.js +2 -2
- package/dist/cjs/layout/ClassicHeader.js +1 -1
- package/dist/cjs/layout/CustomSemanticSearch.js +1 -1
- package/dist/cjs/layout/Header.js +3 -3
- package/dist/cjs/layout/Layout.js +1 -1
- package/dist/cjs/layout/SearchControl.js +1 -1
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js +1 -0
- 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/_Uint8Array.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.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/_baseIsArguments.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.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/_getAllKeys.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.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/_getSymbols.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.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/_overArg.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/_setCacheAdd.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.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/isTypedArray.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js +1 -0
- package/dist/cjs/node_modules/.pnpm/pure-react-carousel@1.32.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/pure-react-carousel/dist/react-carousel.es.css +1 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/cjs/translations/am.json.js +1 -0
- package/dist/cjs/utils/data.js +1 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +8 -0
- package/dist/esm/_virtual/_nodeUtil.js +4 -0
- package/dist/esm/_virtual/isBuffer.js +4 -0
- package/dist/esm/_virtual/isEqual.js +7 -0
- package/dist/esm/embeddable/big-number-trend/index.js +36 -36
- package/dist/esm/embeddable/body/index.js +141 -95
- package/dist/esm/embeddable/chart/Bar.js +390 -382
- package/dist/esm/embeddable/chart/Line.js +101 -102
- package/dist/esm/embeddable/chart/colors/ColorProvider.js +42 -39
- package/dist/esm/embeddable/chart/colors/ManualColors.js +40 -29
- package/dist/esm/embeddable/chart/colors/SystemColors.js +28 -17
- package/dist/esm/embeddable/chart/data/Bar.js +112 -114
- package/dist/esm/embeddable/chart/data/Line.js +126 -126
- package/dist/esm/embeddable/chart/data/Utils.js +32 -26
- package/dist/esm/embeddable/d3Map/BaseLayer.js +3 -8
- package/dist/esm/embeddable/d3Map/DataLayer.js +2 -9
- package/dist/esm/embeddable/d3Map/FlowLayer.js +12 -15
- package/dist/esm/embeddable/data/DataContext.js +1 -0
- package/dist/esm/embeddable/featuredtabs/index.js +128 -124
- package/dist/esm/embeddable/filter/index.js +207 -206
- package/dist/esm/embeddable/filtered-posts/NoData.js +31 -0
- package/dist/esm/embeddable/filtered-posts/index.js +123 -0
- package/dist/esm/embeddable/index.js +34 -31
- package/dist/esm/embeddable/inlinelist/index.js +82 -70
- package/dist/esm/embeddable/map/MapDataFrame.js +17 -14
- package/dist/esm/embeddable/map/index.js +180 -169
- package/dist/esm/embeddable/map/map.js +520 -437
- package/dist/esm/embeddable/new-time-line/index.js +9 -8
- package/dist/esm/embeddable/new-time-line/timeline.js +3 -2
- package/dist/esm/embeddable/posts-filter/PostsFilterDropdown.js +190 -0
- package/dist/esm/embeddable/posts-filter/index.js +215 -0
- package/dist/esm/embeddable/posts-filters-reset-button/index.js +33 -0
- package/dist/esm/embeddable/posts-pagination/index.js +69 -0
- package/dist/esm/embeddable/postscarousel/index.js +12 -11
- package/dist/esm/embeddable/reducers/data-api.js +40 -25
- package/dist/esm/embeddable/reducers/data.js +180 -99
- package/dist/esm/embeddable/showcase/index.js +1 -1
- package/dist/esm/embeddable/time-line/desktop.js +3 -2
- package/dist/esm/embeddable/time-line/mobile.js +140 -162
- package/dist/esm/embeddable/vertical-featuredtabs/index.js +177 -168
- package/dist/esm/layout/ClassicHeader.js +62 -62
- package/dist/esm/layout/CustomSemanticSearch.js +40 -102
- package/dist/esm/layout/Header.js +152 -144
- package/dist/esm/layout/Layout.js +4 -3
- package/dist/esm/layout/SearchControl.js +130 -113
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +22 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +22 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +22 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js +18 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js +20 -0
- 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/_Uint8Array.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js +16 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js +26 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +17 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js +16 -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/_baseIsArguments.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js +38 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +22 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js +17 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js +20 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js +46 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js +51 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js +42 -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/_getAllKeys.js +16 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js +16 -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/_getSymbols.js +16 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js +33 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +19 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +17 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +18 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +20 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js +19 -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/_overArg.js +14 -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/_setCacheAdd.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js +23 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +23 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js +16 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +10 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +18 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js +13 -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/isTypedArray.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js +16 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js +12 -0
- package/dist/esm/node_modules/.pnpm/pure-react-carousel@1.32.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/pure-react-carousel/dist/react-carousel.es.css +1 -0
- package/dist/esm/styles.css +1 -1
- package/dist/esm/translations/am.json.js +46 -0
- package/dist/esm/utils/data.js +4 -9
- package/dist/types/dvz-ui/src/countries.d.ts +7 -0
- package/dist/types/dvz-ui/src/embeddable/chart/colors/ManualColors.d.ts +1 -1
- package/dist/types/dvz-ui/src/embeddable/chart/colors/SystemColors.d.ts +1 -1
- package/dist/types/dvz-ui/src/embeddable/data/DataContext.d.ts +1 -0
- package/dist/types/dvz-ui/src/embeddable/featuredtabs/index.d.ts +1 -0
- package/dist/types/dvz-ui/src/embeddable/filtered-posts/NoData.d.ts +7 -0
- package/dist/types/dvz-ui/src/embeddable/filtered-posts/index.d.ts +21 -0
- package/dist/types/dvz-ui/src/embeddable/inlinelist/index.d.ts +2 -0
- package/dist/types/dvz-ui/src/embeddable/map/MapDataFrame.d.ts +1 -6
- package/dist/types/dvz-ui/src/embeddable/map/map.d.ts +1 -0
- package/dist/types/dvz-ui/src/embeddable/posts-filter/PostsFilterDropdown.d.ts +21 -0
- package/dist/types/dvz-ui/src/embeddable/posts-filter/index.d.ts +25 -0
- package/dist/types/dvz-ui/src/embeddable/posts-filters-reset-button/index.d.ts +3 -0
- package/dist/types/dvz-ui/src/embeddable/posts-pagination/index.d.ts +10 -0
- package/dist/types/dvz-ui/src/embeddable/reducers/data-api.d.ts +11 -0
- package/dist/types/dvz-ui/src/embeddable/reducers/post-reducer.d.ts +158 -0
- package/dist/types/dvz-ui/src/embeddable/vertical-featuredtabs/index.d.ts +1 -0
- package/dist/types/dvz-ui/src/layout/Header.d.ts +2 -2
- package/dist/types/dvz-ui/src/translations/am.json.d.ts +39 -0
- package/package.json +3 -3
- package/dist/cjs/embeddable/posts-with-filters/DropDownFilter.js +0 -1
- package/dist/cjs/embeddable/posts-with-filters/Post.js +0 -1
- package/dist/cjs/embeddable/posts-with-filters/index.js +0 -1
- package/dist/esm/embeddable/posts-with-filters/DropDownFilter.js +0 -25
- package/dist/esm/embeddable/posts-with-filters/Post.js +0 -51
- package/dist/esm/embeddable/posts-with-filters/index.js +0 -206
- package/dist/types/dvz-ui/src/embeddable/posts-with-filters/DropDownFilter.d.ts +0 -4
- package/dist/types/dvz-ui/src/embeddable/posts-with-filters/Post.d.ts +0 -5
- package/dist/types/dvz-ui/src/embeddable/posts-with-filters/index.d.ts +0 -21
- /package/dist/cjs/{utils/countries.js → countries.js} +0 -0
- /package/dist/cjs/embeddable/{posts-with-filters → filtered-posts}/utils.js +0 -0
- /package/dist/esm/{utils/countries.js → countries.js} +0 -0
- /package/dist/esm/embeddable/{posts-with-filters → filtered-posts}/utils.js +0 -0
- /package/dist/types/dvz-ui/src/embeddable/{posts-with-filters → filtered-posts}/utils.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DropdownProps } from 'semantic-ui-react';
|
|
3
|
+
export interface PostFilterDropdownProps extends DropdownProps {
|
|
4
|
+
allLabel?: string;
|
|
5
|
+
noneLabel?: string;
|
|
6
|
+
group: string;
|
|
7
|
+
useSingleColumn?: boolean;
|
|
8
|
+
enableTextSearch?: boolean;
|
|
9
|
+
filterType?: string;
|
|
10
|
+
showNoDataOption?: boolean;
|
|
11
|
+
allNoneSameBehaviour?: boolean;
|
|
12
|
+
closeOnSelect?: boolean;
|
|
13
|
+
autoApply?: boolean;
|
|
14
|
+
alphabeticalSort?: boolean;
|
|
15
|
+
ascOrder?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
taxonomy?: string;
|
|
18
|
+
type?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const PostsFilterDropdown: (props: PostFilterDropdownProps) => React.JSX.Element;
|
|
21
|
+
export default PostsFilterDropdown;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface PostsFilterProps {
|
|
3
|
+
"data-alphabetical-sort": boolean | string;
|
|
4
|
+
"data-asc-order": boolean | string;
|
|
5
|
+
"data-group": string;
|
|
6
|
+
"data-placeholder"?: string;
|
|
7
|
+
"data-all-label"?: string;
|
|
8
|
+
"data-none-label"?: string;
|
|
9
|
+
"data-use-single-column"?: boolean | string;
|
|
10
|
+
"data-enable-text-search"?: boolean | string;
|
|
11
|
+
"data-filter-type"?: string;
|
|
12
|
+
"data-show-no-data-option"?: boolean | string;
|
|
13
|
+
"data-close-on-select"?: boolean | string;
|
|
14
|
+
"data-all-none-same-behaviour"?: boolean | string;
|
|
15
|
+
"data-auto-apply"?: boolean | string;
|
|
16
|
+
"data-taxonomy"?: string;
|
|
17
|
+
"data-categories"?: string;
|
|
18
|
+
"data-is-country-filter"?: boolean | string;
|
|
19
|
+
"data-is-year-filter"?: boolean | string;
|
|
20
|
+
"data-selected-year"?: number | string;
|
|
21
|
+
"data-type"?: string;
|
|
22
|
+
"data-sort-first-by"?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const PostsFilter: (props: PostsFilterProps) => React.JSX.Element;
|
|
25
|
+
export default PostsFilter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl';
|
|
3
|
+
interface PostsPaginationProps extends WrappedComponentProps {
|
|
4
|
+
"data-group": string;
|
|
5
|
+
"data-number-of-items-per-page": number;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.FC<import('react-intl').WithIntlProps<PostsPaginationProps>> & {
|
|
8
|
+
WrappedComponent: React.ComponentType<PostsPaginationProps>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -7,3 +7,14 @@ export function getData({ source, app, params }: {
|
|
|
7
7
|
app: any;
|
|
8
8
|
params: any;
|
|
9
9
|
}): any;
|
|
10
|
+
export function getCustomPosts({ postType, taxonomy, category, taxonomyFilters, before, perPage, page, locale, after }: {
|
|
11
|
+
postType: any;
|
|
12
|
+
taxonomy: any;
|
|
13
|
+
category: any;
|
|
14
|
+
taxonomyFilters: any;
|
|
15
|
+
before: any;
|
|
16
|
+
perPage: any;
|
|
17
|
+
page: any;
|
|
18
|
+
locale: any;
|
|
19
|
+
after: any;
|
|
20
|
+
}): Promise<unknown>;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
interface PostsState {
|
|
2
|
+
posts?: any;
|
|
3
|
+
group: string | null;
|
|
4
|
+
postsFilters: {
|
|
5
|
+
countryFilter: string | null;
|
|
6
|
+
yearFilter: string | null;
|
|
7
|
+
categoryFilter: string | null;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface GetCustomPostsQueryArgs {
|
|
11
|
+
postType?: string;
|
|
12
|
+
taxonomy?: string;
|
|
13
|
+
category?: string;
|
|
14
|
+
before?: Date;
|
|
15
|
+
perPage?: number;
|
|
16
|
+
page?: number;
|
|
17
|
+
locale?: string;
|
|
18
|
+
after?: Date;
|
|
19
|
+
}
|
|
20
|
+
export declare const postsApi: import('@reduxjs/toolkit/query').Api<import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, {
|
|
21
|
+
getCustomPosts: import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>;
|
|
22
|
+
}, "postsApi", never, typeof import('@reduxjs/toolkit/query').coreModuleName | typeof import('@reduxjs/toolkit/query/react').reactHooksModuleName>;
|
|
23
|
+
export declare const useGetCustomPostsQuery: <R extends Record<string, any> = import('@reduxjs/toolkit/query').TSHelpersId<(Omit<{
|
|
24
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
25
|
+
originalArgs?: undefined | undefined;
|
|
26
|
+
data?: undefined | undefined;
|
|
27
|
+
error?: undefined | undefined;
|
|
28
|
+
requestId?: undefined | undefined;
|
|
29
|
+
endpointName?: string | undefined;
|
|
30
|
+
startedTimeStamp?: undefined | undefined;
|
|
31
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
currentData?: any;
|
|
34
|
+
isUninitialized: false;
|
|
35
|
+
isLoading: false;
|
|
36
|
+
isFetching: false;
|
|
37
|
+
isSuccess: false;
|
|
38
|
+
isError: false;
|
|
39
|
+
}, "isUninitialized"> & {
|
|
40
|
+
isUninitialized: true;
|
|
41
|
+
}) | import('@reduxjs/toolkit/query').TSHelpersOverride<import('@reduxjs/toolkit/query').QuerySubState<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>> & {
|
|
42
|
+
currentData?: any;
|
|
43
|
+
isUninitialized: false;
|
|
44
|
+
isLoading: false;
|
|
45
|
+
isFetching: false;
|
|
46
|
+
isSuccess: false;
|
|
47
|
+
isError: false;
|
|
48
|
+
}, {
|
|
49
|
+
isLoading: true;
|
|
50
|
+
isFetching: boolean;
|
|
51
|
+
data: undefined;
|
|
52
|
+
} | ({
|
|
53
|
+
isSuccess: true;
|
|
54
|
+
isFetching: true;
|
|
55
|
+
error: undefined;
|
|
56
|
+
} & Required<Pick<import('@reduxjs/toolkit/query').QuerySubState<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>> & {
|
|
57
|
+
currentData?: any;
|
|
58
|
+
isUninitialized: false;
|
|
59
|
+
isLoading: false;
|
|
60
|
+
isFetching: false;
|
|
61
|
+
isSuccess: false;
|
|
62
|
+
isError: false;
|
|
63
|
+
}, "data" | "fulfilledTimeStamp">>) | ({
|
|
64
|
+
isSuccess: true;
|
|
65
|
+
isFetching: false;
|
|
66
|
+
error: undefined;
|
|
67
|
+
} & Required<Pick<import('@reduxjs/toolkit/query').QuerySubState<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>> & {
|
|
68
|
+
currentData?: any;
|
|
69
|
+
isUninitialized: false;
|
|
70
|
+
isLoading: false;
|
|
71
|
+
isFetching: false;
|
|
72
|
+
isSuccess: false;
|
|
73
|
+
isError: false;
|
|
74
|
+
}, "data" | "fulfilledTimeStamp" | "currentData">>) | ({
|
|
75
|
+
isError: true;
|
|
76
|
+
} & Required<Pick<import('@reduxjs/toolkit/query').QuerySubState<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>> & {
|
|
77
|
+
currentData?: any;
|
|
78
|
+
isUninitialized: false;
|
|
79
|
+
isLoading: false;
|
|
80
|
+
isFetching: false;
|
|
81
|
+
isSuccess: false;
|
|
82
|
+
isError: false;
|
|
83
|
+
}, "error">>)>> & {
|
|
84
|
+
status: import('@reduxjs/toolkit/query').QueryStatus;
|
|
85
|
+
}>(arg: GetCustomPostsQueryArgs | typeof import('@reduxjs/toolkit/query').skipToken, options?: (import('@reduxjs/toolkit/query').SubscriptionOptions & {
|
|
86
|
+
skip?: boolean;
|
|
87
|
+
refetchOnMountOrArgChange?: boolean | number;
|
|
88
|
+
} & {
|
|
89
|
+
skip?: boolean;
|
|
90
|
+
selectFromResult?: ((state: import('@reduxjs/toolkit/query').TSHelpersId<(Omit<{
|
|
91
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
92
|
+
originalArgs?: undefined | undefined;
|
|
93
|
+
data?: undefined | undefined;
|
|
94
|
+
error?: undefined | undefined;
|
|
95
|
+
requestId?: undefined | undefined;
|
|
96
|
+
endpointName?: string | undefined;
|
|
97
|
+
startedTimeStamp?: undefined | undefined;
|
|
98
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
99
|
+
} & {
|
|
100
|
+
currentData?: any;
|
|
101
|
+
isUninitialized: false;
|
|
102
|
+
isLoading: false;
|
|
103
|
+
isFetching: false;
|
|
104
|
+
isSuccess: false;
|
|
105
|
+
isError: false;
|
|
106
|
+
}, "isUninitialized"> & {
|
|
107
|
+
isUninitialized: true;
|
|
108
|
+
}) | import('@reduxjs/toolkit/query').TSHelpersOverride<import('@reduxjs/toolkit/query').QuerySubState<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>> & {
|
|
109
|
+
currentData?: any;
|
|
110
|
+
isUninitialized: false;
|
|
111
|
+
isLoading: false;
|
|
112
|
+
isFetching: false;
|
|
113
|
+
isSuccess: false;
|
|
114
|
+
isError: false;
|
|
115
|
+
}, {
|
|
116
|
+
isLoading: true;
|
|
117
|
+
isFetching: boolean;
|
|
118
|
+
data: undefined;
|
|
119
|
+
} | ({
|
|
120
|
+
isSuccess: true;
|
|
121
|
+
isFetching: true;
|
|
122
|
+
error: undefined;
|
|
123
|
+
} & Required<Pick<import('@reduxjs/toolkit/query').QuerySubState<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>> & {
|
|
124
|
+
currentData?: any;
|
|
125
|
+
isUninitialized: false;
|
|
126
|
+
isLoading: false;
|
|
127
|
+
isFetching: false;
|
|
128
|
+
isSuccess: false;
|
|
129
|
+
isError: false;
|
|
130
|
+
}, "data" | "fulfilledTimeStamp">>) | ({
|
|
131
|
+
isSuccess: true;
|
|
132
|
+
isFetching: false;
|
|
133
|
+
error: undefined;
|
|
134
|
+
} & Required<Pick<import('@reduxjs/toolkit/query').QuerySubState<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>> & {
|
|
135
|
+
currentData?: any;
|
|
136
|
+
isUninitialized: false;
|
|
137
|
+
isLoading: false;
|
|
138
|
+
isFetching: false;
|
|
139
|
+
isSuccess: false;
|
|
140
|
+
isError: false;
|
|
141
|
+
}, "data" | "fulfilledTimeStamp" | "currentData">>) | ({
|
|
142
|
+
isError: true;
|
|
143
|
+
} & Required<Pick<import('@reduxjs/toolkit/query').QuerySubState<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>> & {
|
|
144
|
+
currentData?: any;
|
|
145
|
+
isUninitialized: false;
|
|
146
|
+
isLoading: false;
|
|
147
|
+
isFetching: false;
|
|
148
|
+
isSuccess: false;
|
|
149
|
+
isError: false;
|
|
150
|
+
}, "error">>)>> & {
|
|
151
|
+
status: import('@reduxjs/toolkit/query').QueryStatus;
|
|
152
|
+
}) => R) | undefined;
|
|
153
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
154
|
+
refetch: () => import('@reduxjs/toolkit/query').QueryActionCreatorResult<import('@reduxjs/toolkit/query').QueryDefinition<GetCustomPostsQueryArgs, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, any, "postsApi", any>>;
|
|
155
|
+
};
|
|
156
|
+
export declare const setPostsFilter: import('@reduxjs/toolkit').ActionCreatorWithPayload<PostsState, "postsReducer/setPostsFilter">, setInitialPostsFilter: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "postsReducer/setInitialPostsFilter">;
|
|
157
|
+
declare const _default: import('redux').Reducer<PostsState>;
|
|
158
|
+
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
declare const _default: React.FC<import('react-intl').WithIntlProps<{
|
|
3
3
|
intl: any;
|
|
4
|
-
settings
|
|
4
|
+
settings: any;
|
|
5
5
|
}>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<{
|
|
7
7
|
intl: any;
|
|
8
|
-
settings
|
|
8
|
+
settings: any;
|
|
9
9
|
}>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"search.placeholder": "ፈልግ...",
|
|
3
|
+
"search.results.summary": "{count} የ {total} ውጤቶች",
|
|
4
|
+
"oropharyngeal.cancer": "የጉሮሮ ካንሰር",
|
|
5
|
+
"laryngeal.cancer": "የአየር ቧንቧ ካንሰር",
|
|
6
|
+
"oesophageal.cancer": "የምግብ ቧንቧ ካንሰር",
|
|
7
|
+
"tracheal.bronchial.lung.cancer": "የቀሰብ፣ የቀሳቢ እና የሳንባ ካንሰር",
|
|
8
|
+
"acute.myeloid.leukaemia": "የደም ካንሰር",
|
|
9
|
+
"stomach.cancer": "የጨጓራ ካንሰር",
|
|
10
|
+
"liver.cancer": "የጉበት ካንሰር",
|
|
11
|
+
"pancreatic.cancer": "የቆሽት ካንሰር",
|
|
12
|
+
"colorectal.cancer": "የአንጀት ካንሰር",
|
|
13
|
+
"kidney.cancer": "የኩላሊት ካንሰር",
|
|
14
|
+
"bladder.cancer": "የፊኛ ካንሰር",
|
|
15
|
+
"cervical.cancer": "የማህጸን ካንሰር (ሴቶች ብቻ)",
|
|
16
|
+
"stroke": "ስትሮክ",
|
|
17
|
+
"blindness.decreased.eyesight": "የአይን መታወር፣ የማየት ችሎታ መቀነስ",
|
|
18
|
+
"periodontitis": "የድድ በሽታ",
|
|
19
|
+
"aortic.aneurysm": "ኦርቲክ አኑኢሪዜም",
|
|
20
|
+
"heart.disease": "የልብ በሽታ",
|
|
21
|
+
"pneumonia": "የሳንባ ምች በሽታ",
|
|
22
|
+
"atherosclerotic.peripheral.vascular.disease": "የደም ስር መጥበብ በሽታ",
|
|
23
|
+
"copd": "የሳንባ በሽታ",
|
|
24
|
+
"tuberculosis": "የሳንባ ነቀርሳ",
|
|
25
|
+
"asthma": "አስም",
|
|
26
|
+
"diabetes": "የስኳር በሽታ",
|
|
27
|
+
"hip.fractures": "የዳሌ አጥንት መሰንጠቅ",
|
|
28
|
+
"rheumatoid.arthritis": "የሪህ በሽታ",
|
|
29
|
+
"impaired.immune.function": "በሽታ የመከላከል አቅም መቀነስ",
|
|
30
|
+
"erectile.dysfunction": "የብልት ችግር (ወንዶች ብቻ)",
|
|
31
|
+
"ectopic.pregnancy": "ከማህጸን ውጭ የሚፈጠር እርግዝና (ሴቶች ብቻ)",
|
|
32
|
+
"reduced.fertility.women": "የወላድነት መቀነስ (ሴቶች ብቻ)",
|
|
33
|
+
"reduced.fertility.men": "የወላድነት መቀነስ (ወንዶች ብቻ)",
|
|
34
|
+
"ailments.title": "የካንሰር በሽታዎች",
|
|
35
|
+
"ailments.otherConditions": "ሌሎች የጤና ችግሮች"
|
|
36
|
+
}
|
|
37
|
+
;
|
|
38
|
+
|
|
39
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devgateway/dvz-ui-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"react-is": "^18.3.1",
|
|
70
70
|
"react-markdown": "^10.1.0",
|
|
71
71
|
"react-redux": "~9.2.0",
|
|
72
|
-
"react-router": "~7.
|
|
72
|
+
"react-router": "~7.9.4",
|
|
73
73
|
"redux": "^5.0.1",
|
|
74
74
|
"redux-thunk": "^3.1.0",
|
|
75
75
|
"rehype-raw": "^7.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"string-template": "^1.0.0",
|
|
80
80
|
"topojson-client": "^3.1.0",
|
|
81
81
|
"uuid": "^11.1.0",
|
|
82
|
-
"@devgateway/wp-react-lib": "0.5.
|
|
82
|
+
"@devgateway/wp-react-lib": "0.5.1"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@eslint/js": "^9.37.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),u=require("semantic-ui-react"),r=n=>{const{options:t,onChange:e}=n,i=[{key:"all",value:"all",text:"All"},...t||[]],s=(o,l)=>{e&&(l.value==="all"?e(o,{...l,value:void 0}):e(o,l))};return a.jsx(u.Dropdown,{...n,options:i,onChange:s})};exports.default=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react"),m=require("semantic-ui-react"),h=require("date-fns"),l=require("../../utils/data.js"),c=require("@devgateway/wp-react-lib"),g=require("react-intl"),x=i=>{const{isPostHovered:t}=i;return e.jsx("div",{className:"post-image",children:e.jsx("img",{loading:"lazy",className:`${t?"highlighted":""}`,src:i.media&&i.media.guid?i.media.guid.rendered:null,alt:i.media&&i.media.alt_text||""})})},j=i=>{var n,d,o,r;const{post:t}=i,[a,s]=u.useState(!1);return e.jsxs("div",{className:"post-card",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[e.jsx("a",{href:t.link,target:"_blank",children:e.jsx(c.MediaProvider,{id:t.featured_media,children:e.jsx(c.MediaConsumer,{children:e.jsx(x,{isPostHovered:a})})})}),e.jsxs("div",{className:"post-content",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[e.jsx("div",{className:"publication-date",children:h.format(new Date(t.date),"MMM dd, yyyy")}),e.jsx("a",{href:t.link,target:"_blank",children:e.jsx("h2",{className:`publication-title ${a?"highlighted":""}`,children:l.decodeHtmlEntitiesToText(((n=t.title)==null?void 0:n.rendered)||((d=t.yoast_head_json)==null?void 0:d.title)||"Publication Title")})}),e.jsx("p",{className:"publication-description",dangerouslySetInnerHTML:{__html:l.decodeHtmlEntitiesToHtml(((o=t.yoast_head_json)==null?void 0:o.og_description)||((r=t.excerpt)==null?void 0:r.rendered)||"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.")}}),e.jsx("a",{href:t.link,children:e.jsx(m.Button,{className:`read-more-button ${a?"highlighted":""}`,children:"Read more"})})]})]},t.id)},v=g.injectIntl(j);exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),p=require("react"),A=require("@devgateway/wp-react-lib"),x=require("semantic-ui-react"),W=require("./Post.js"),E=require("./utils.js"),d=require("../../utils/data.js"),V=require("./DropDownFilter.js"),K=P=>{const{posts:o,meta:i,showPaginationOptions:j,currentPage:h,setCurrentPage:S,countryCategory:F,height:r}=P,y=d.toNumber(F),v=Array.isArray(o)?o.filter(s=>s.categories.includes(y)):[],g=Array.isArray(o)?o.filter(s=>!s.categories.includes(y)):[],n=[...v,...g],l=i&&i["x-wp-totalpages"]?i["x-wp-totalpages"]:1;return e.jsxs("div",{children:[e.jsx("div",{className:"posts-grid",children:n==null?void 0:n.map(s=>e.jsx(W.default,{post:s},s.id))}),j&&e.jsxs("div",{className:"pagination-section",children:[e.jsxs("div",{className:"pagination-info",children:["Page ",e.jsx("span",{className:"current-page",children:h})," of ",l]}),e.jsx(x.Pagination,{activePage:h,totalPages:l,onPageChange:(s,{activePage:c})=>S(c),prevItem:{content:e.jsx(x.Icon,{name:"angle left"}),icon:!0},nextItem:{content:e.jsx(x.Icon,{name:"angle right"}),icon:!0},firstItem:null,lastItem:null})]})]})},M=P=>{const{categories:o,selectedCategory:i,setSelectedCategory:j,selectedYear:h,setSelectedYear:S,onResetFilters:F,showCategoryFilter:r,categoryPlaceholder:y,showDateFilter:v,categoriesToBeShown:g,setCurrentPage:n,showCountryFilter:l,countryPlaceholder:s,countryCategory:c,selectedCountry:N,setSelectedCountry:C}=P,[I,Y]=p.useState([]);p.useEffect(()=>{const t=async()=>{const O=(await A.getYearRange()).data.map(b=>({key:b,value:b,text:`Year ${b}`}));Y(O)};return t(),()=>{t()}},[]);const f=o&&g?o.filter(t=>g.includes(t.id)):[],D=o&&c?o.filter(t=>t.parent===parseInt(c)):[];return e.jsx("div",{children:e.jsxs("div",{children:[l&&e.jsx(V.default,{options:D.map(t=>({key:t.id,value:t.id,text:t.name})),placeholder:s,value:N,onChange:(t,{value:a})=>{C(a),n(1)}}),v&&e.jsx(V.default,{options:I,placeholder:"Select Year",value:h,onChange:(t,{value:a})=>{S(a),n(1)},multiple:!1,searchable:!0,showAllNone:!1,closeOnSelect:!0}),r&&e.jsx(V.default,{options:f?f.map(t=>({key:t.id,value:t.id,text:t.name})):[],placeholder:y||"All Countries",value:i,onChange:(t,{value:a})=>{j(a),n(1)},multiple:!1,searchable:!1,showAllNone:!1,closeOnSelect:!0}),e.jsxs(x.Container,{className:`data-filters-reset ignore ${i||h||N?"":"disabled"}`,onClick:F,children:[e.jsx("span",{children:"Reset Filters"}),e.jsx("span",{children:e.jsx(x.Icon,{name:"undo alternate",className:"custom-undo-icon"})})]})]})})},U=P=>{const{"data-height":o,"data-show-pagination":i,"data-show-posts-per-page":j,"data-show-filters":h,"data-show-date-filter":S,"data-show-category-filter":F,"data-categories":r,"data-category-placeholder":y,"data-show-country-filter":v,"data-country-category":g,"data-country-placeholder":n}=P,[l,s]=p.useState(null),[c,N]=p.useState(null),[C,I]=p.useState(null),[Y,f]=p.useState(1),[D,t]=p.useState(0),a=d.toNumber(o),q=d.toBoolean(i),O=d.toNumber(j),b=d.toBoolean(h),B=d.toBoolean(S),R=d.toBoolean(F),k=d.toBoolean(v),T=()=>{s(null),N(null),I(null),f(1),t(u=>u+1)},m=c?E.getStartDateAndEndDateFromYear(c):null;let w=[];try{if(r)if(Array.isArray(r))w=r;else if(typeof r=="string"){const u=decodeURIComponent(r);u&&u!=="undefined"&&(w=JSON.parse(u))}else w=r}catch{w=[]}return console.log(a,"heightValue"),e.jsxs(x.Container,{fluid:!0,className:"container",style:{height:a+"px",minHeight:a+"px"},children:[b&&e.jsx(A.CategoriesProvider,{children:e.jsx(A.CategoriesContext.Consumer,{children:({categories:u})=>e.jsx(M,{showCategoryFilter:R,categoryPlaceholder:y,showDateFilter:B,categories:u||[],categoriesToBeShown:w,selectedCategory:l,setSelectedCategory:s,selectedYear:c,setSelectedYear:N,onResetFilters:T,setCurrentPage:f,showCountryFilter:k,countryPlaceholder:n,countryCategory:g,selectedCountry:C,setSelectedCountry:I})})}),e.jsx(A.PostProvider,{perPage:O||10,store:"posts-with-filters",categories:(C==null?void 0:C.toString())||(l==null?void 0:l.toString())||w.join(","),after:(m==null?void 0:m.startDate)||null,before:(m==null?void 0:m.endDate)||null,page:Y,children:e.jsx(A.PostConsumer,{children:e.jsx(K,{showPaginationOptions:q,currentPage:Y,setCurrentPage:f,countryCategory:g,height:a})})},D)]})};exports.default=U;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { Dropdown as s } from "semantic-ui-react";
|
|
3
|
-
const f = (n) => {
|
|
4
|
-
const {
|
|
5
|
-
options: t,
|
|
6
|
-
onChange: o
|
|
7
|
-
} = n, a = [{
|
|
8
|
-
key: "all",
|
|
9
|
-
value: "all",
|
|
10
|
-
text: "All"
|
|
11
|
-
}, ...t || []];
|
|
12
|
-
return /* @__PURE__ */ i(
|
|
13
|
-
s,
|
|
14
|
-
{
|
|
15
|
-
...n,
|
|
16
|
-
options: a,
|
|
17
|
-
onChange: (e, l) => {
|
|
18
|
-
o && (l.value === "all" ? o(e, { ...l, value: void 0 }) : o(e, l));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
f as default
|
|
25
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as m } from "react";
|
|
3
|
-
import { Button as c } from "semantic-ui-react";
|
|
4
|
-
import { format as u } from "date-fns";
|
|
5
|
-
import { decodeHtmlEntitiesToText as h, decodeHtmlEntitiesToHtml as g } from "../../utils/data.js";
|
|
6
|
-
import { MediaProvider as f, MediaConsumer as p } from "@devgateway/wp-react-lib";
|
|
7
|
-
import { injectIntl as v } from "react-intl";
|
|
8
|
-
const M = (i) => {
|
|
9
|
-
const { isPostHovered: e } = i;
|
|
10
|
-
return /* @__PURE__ */ t("div", { className: "post-image", children: /* @__PURE__ */ t(
|
|
11
|
-
"img",
|
|
12
|
-
{
|
|
13
|
-
loading: "lazy",
|
|
14
|
-
className: `${e ? "highlighted" : ""}`,
|
|
15
|
-
src: i.media && i.media.guid ? i.media.guid.rendered : null,
|
|
16
|
-
alt: i.media && i.media.alt_text || ""
|
|
17
|
-
}
|
|
18
|
-
) });
|
|
19
|
-
}, _ = (i) => {
|
|
20
|
-
var d, n, r, s;
|
|
21
|
-
const { post: e } = i, [a, o] = m(!1);
|
|
22
|
-
return /* @__PURE__ */ l(
|
|
23
|
-
"div",
|
|
24
|
-
{
|
|
25
|
-
className: "post-card",
|
|
26
|
-
onMouseEnter: () => o(!0),
|
|
27
|
-
onMouseLeave: () => o(!1),
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ t("a", { href: e.link, target: "_blank", children: /* @__PURE__ */ t(f, { id: e.featured_media, children: /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(M, { isPostHovered: a }) }) }) }),
|
|
30
|
-
/* @__PURE__ */ l(
|
|
31
|
-
"div",
|
|
32
|
-
{
|
|
33
|
-
className: "post-content",
|
|
34
|
-
onMouseEnter: () => o(!0),
|
|
35
|
-
onMouseLeave: () => o(!1),
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ t("div", { className: "publication-date", children: u(new Date(e.date), "MMM dd, yyyy") }),
|
|
38
|
-
/* @__PURE__ */ t("a", { href: e.link, target: "_blank", children: /* @__PURE__ */ t("h2", { className: `publication-title ${a ? "highlighted" : ""}`, children: h(((d = e.title) == null ? void 0 : d.rendered) || ((n = e.yoast_head_json) == null ? void 0 : n.title) || "Publication Title") }) }),
|
|
39
|
-
/* @__PURE__ */ t("p", { className: "publication-description", dangerouslySetInnerHTML: { __html: g(((r = e.yoast_head_json) == null ? void 0 : r.og_description) || ((s = e.excerpt) == null ? void 0 : s.rendered) || "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.") } }),
|
|
40
|
-
/* @__PURE__ */ t("a", { href: e.link, children: /* @__PURE__ */ t(c, { className: `read-more-button ${a ? "highlighted" : ""}`, children: "Read more" }) })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
e.id
|
|
47
|
-
);
|
|
48
|
-
}, k = v(_);
|
|
49
|
-
export {
|
|
50
|
-
k as default
|
|
51
|
-
};
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { jsxs as w, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as C, useEffect as $ } from "react";
|
|
3
|
-
import { CategoriesProvider as H, CategoriesContext as J, PostProvider as U, PostConsumer as q, getYearRange as z } from "@devgateway/wp-react-lib";
|
|
4
|
-
import { Container as j, Icon as k, Pagination as G } from "semantic-ui-react";
|
|
5
|
-
import L from "./Post.js";
|
|
6
|
-
import { getStartDateAndEndDateFromYear as M } from "./utils.js";
|
|
7
|
-
import { toNumber as B, toBoolean as Y } from "../../utils/data.js";
|
|
8
|
-
import b from "./DropDownFilter.js";
|
|
9
|
-
const Q = (P) => {
|
|
10
|
-
const { posts: a, meta: i, showPaginationOptions: F, currentPage: h, setCurrentPage: S, countryCategory: v, height: s } = P, g = B(v), x = Array.isArray(a) ? a.filter((o) => o.categories.includes(g)) : [], u = Array.isArray(a) ? a.filter((o) => !o.categories.includes(g)) : [], n = [...x, ...u], l = i && i["x-wp-totalpages"] ? i["x-wp-totalpages"] : 1;
|
|
11
|
-
return /* @__PURE__ */ w("div", { children: [
|
|
12
|
-
/* @__PURE__ */ t("div", { className: "posts-grid", children: n == null ? void 0 : n.map((o) => /* @__PURE__ */ t(L, { post: o }, o.id)) }),
|
|
13
|
-
F && /* @__PURE__ */ w("div", { className: "pagination-section", children: [
|
|
14
|
-
/* @__PURE__ */ w("div", { className: "pagination-info", children: [
|
|
15
|
-
"Page ",
|
|
16
|
-
/* @__PURE__ */ t("span", { className: "current-page", children: h }),
|
|
17
|
-
" of ",
|
|
18
|
-
l
|
|
19
|
-
] }),
|
|
20
|
-
/* @__PURE__ */ t(
|
|
21
|
-
G,
|
|
22
|
-
{
|
|
23
|
-
activePage: h,
|
|
24
|
-
totalPages: l,
|
|
25
|
-
onPageChange: (o, { activePage: c }) => S(c),
|
|
26
|
-
prevItem: { content: /* @__PURE__ */ t(k, { name: "angle left" }), icon: !0 },
|
|
27
|
-
nextItem: { content: /* @__PURE__ */ t(k, { name: "angle right" }), icon: !0 },
|
|
28
|
-
firstItem: null,
|
|
29
|
-
lastItem: null
|
|
30
|
-
}
|
|
31
|
-
)
|
|
32
|
-
] })
|
|
33
|
-
] });
|
|
34
|
-
}, X = (P) => {
|
|
35
|
-
const {
|
|
36
|
-
categories: a,
|
|
37
|
-
selectedCategory: i,
|
|
38
|
-
setSelectedCategory: F,
|
|
39
|
-
selectedYear: h,
|
|
40
|
-
setSelectedYear: S,
|
|
41
|
-
onResetFilters: v,
|
|
42
|
-
showCategoryFilter: s,
|
|
43
|
-
categoryPlaceholder: g,
|
|
44
|
-
showDateFilter: x,
|
|
45
|
-
categoriesToBeShown: u,
|
|
46
|
-
setCurrentPage: n,
|
|
47
|
-
showCountryFilter: l,
|
|
48
|
-
countryPlaceholder: o,
|
|
49
|
-
countryCategory: c,
|
|
50
|
-
selectedCountry: N,
|
|
51
|
-
setSelectedCountry: p
|
|
52
|
-
} = P, [D, V] = C([]);
|
|
53
|
-
$(() => {
|
|
54
|
-
const e = async () => {
|
|
55
|
-
const O = (await z()).data.map((A) => ({
|
|
56
|
-
key: A,
|
|
57
|
-
value: A,
|
|
58
|
-
text: `Year ${A}`
|
|
59
|
-
}));
|
|
60
|
-
V(O);
|
|
61
|
-
};
|
|
62
|
-
return e(), () => {
|
|
63
|
-
e();
|
|
64
|
-
};
|
|
65
|
-
}, []);
|
|
66
|
-
const m = a && u ? a.filter((e) => u.includes(e.id)) : [], I = a && c ? a.filter((e) => e.parent === parseInt(c)) : [];
|
|
67
|
-
return /* @__PURE__ */ t("div", { children: /* @__PURE__ */ w("div", { children: [
|
|
68
|
-
l && /* @__PURE__ */ t(
|
|
69
|
-
b,
|
|
70
|
-
{
|
|
71
|
-
options: I.map((e) => ({
|
|
72
|
-
key: e.id,
|
|
73
|
-
value: e.id,
|
|
74
|
-
text: e.name
|
|
75
|
-
})),
|
|
76
|
-
placeholder: o,
|
|
77
|
-
value: N,
|
|
78
|
-
onChange: (e, { value: r }) => {
|
|
79
|
-
p(r), n(1);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
x && /* @__PURE__ */ t(
|
|
84
|
-
b,
|
|
85
|
-
{
|
|
86
|
-
options: D,
|
|
87
|
-
placeholder: "Select Year",
|
|
88
|
-
value: h,
|
|
89
|
-
onChange: (e, { value: r }) => {
|
|
90
|
-
S(r), n(1);
|
|
91
|
-
},
|
|
92
|
-
multiple: !1,
|
|
93
|
-
searchable: !0,
|
|
94
|
-
showAllNone: !1,
|
|
95
|
-
closeOnSelect: !0
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
s && /* @__PURE__ */ t(
|
|
99
|
-
b,
|
|
100
|
-
{
|
|
101
|
-
options: m ? m.map((e) => ({
|
|
102
|
-
key: e.id,
|
|
103
|
-
value: e.id,
|
|
104
|
-
text: e.name
|
|
105
|
-
})) : [],
|
|
106
|
-
placeholder: g || "All Countries",
|
|
107
|
-
value: i,
|
|
108
|
-
onChange: (e, { value: r }) => {
|
|
109
|
-
F(r), n(1);
|
|
110
|
-
},
|
|
111
|
-
multiple: !1,
|
|
112
|
-
searchable: !1,
|
|
113
|
-
showAllNone: !1,
|
|
114
|
-
closeOnSelect: !0
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
/* @__PURE__ */ w(
|
|
118
|
-
j,
|
|
119
|
-
{
|
|
120
|
-
className: `data-filters-reset ignore ${i || h || N ? "" : "disabled"}`,
|
|
121
|
-
onClick: v,
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ t("span", { children: "Reset Filters" }),
|
|
124
|
-
/* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(k, { name: "undo alternate", className: "custom-undo-icon" }) })
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
] }) });
|
|
129
|
-
}, ne = (P) => {
|
|
130
|
-
const {
|
|
131
|
-
"data-height": a,
|
|
132
|
-
"data-show-pagination": i,
|
|
133
|
-
"data-show-posts-per-page": F,
|
|
134
|
-
"data-show-filters": h,
|
|
135
|
-
"data-show-date-filter": S,
|
|
136
|
-
"data-show-category-filter": v,
|
|
137
|
-
"data-categories": s,
|
|
138
|
-
"data-category-placeholder": g,
|
|
139
|
-
"data-show-country-filter": x,
|
|
140
|
-
"data-country-category": u,
|
|
141
|
-
"data-country-placeholder": n
|
|
142
|
-
} = P, [l, o] = C(null), [c, N] = C(null), [p, D] = C(null), [V, m] = C(1), [I, e] = C(0), r = B(a), R = Y(i), O = B(F), A = Y(h), W = Y(S), E = Y(v), K = Y(x), T = () => {
|
|
143
|
-
o(null), N(null), D(null), m(1), e((d) => d + 1);
|
|
144
|
-
}, y = c ? M(c) : null;
|
|
145
|
-
let f = [];
|
|
146
|
-
try {
|
|
147
|
-
if (s)
|
|
148
|
-
if (Array.isArray(s))
|
|
149
|
-
f = s;
|
|
150
|
-
else if (typeof s == "string") {
|
|
151
|
-
const d = decodeURIComponent(s);
|
|
152
|
-
d && d !== "undefined" && (f = JSON.parse(d));
|
|
153
|
-
} else
|
|
154
|
-
f = s;
|
|
155
|
-
} catch {
|
|
156
|
-
f = [];
|
|
157
|
-
}
|
|
158
|
-
return console.log(r, "heightValue"), /* @__PURE__ */ w(j, { fluid: !0, className: "container", style: { height: r + "px", minHeight: r + "px" }, children: [
|
|
159
|
-
A && /* @__PURE__ */ t(H, { children: /* @__PURE__ */ t(J.Consumer, { children: ({ categories: d }) => /* @__PURE__ */ t(
|
|
160
|
-
X,
|
|
161
|
-
{
|
|
162
|
-
showCategoryFilter: E,
|
|
163
|
-
categoryPlaceholder: g,
|
|
164
|
-
showDateFilter: W,
|
|
165
|
-
categories: d || [],
|
|
166
|
-
categoriesToBeShown: f,
|
|
167
|
-
selectedCategory: l,
|
|
168
|
-
setSelectedCategory: o,
|
|
169
|
-
selectedYear: c,
|
|
170
|
-
setSelectedYear: N,
|
|
171
|
-
onResetFilters: T,
|
|
172
|
-
setCurrentPage: m,
|
|
173
|
-
showCountryFilter: K,
|
|
174
|
-
countryPlaceholder: n,
|
|
175
|
-
countryCategory: u,
|
|
176
|
-
selectedCountry: p,
|
|
177
|
-
setSelectedCountry: D
|
|
178
|
-
}
|
|
179
|
-
) }) }),
|
|
180
|
-
/* @__PURE__ */ t(
|
|
181
|
-
U,
|
|
182
|
-
{
|
|
183
|
-
perPage: O || 10,
|
|
184
|
-
store: "posts-with-filters",
|
|
185
|
-
categories: (p == null ? void 0 : p.toString()) || (l == null ? void 0 : l.toString()) || f.join(","),
|
|
186
|
-
after: (y == null ? void 0 : y.startDate) || null,
|
|
187
|
-
before: (y == null ? void 0 : y.endDate) || null,
|
|
188
|
-
page: V,
|
|
189
|
-
children: /* @__PURE__ */ t(q, { children: /* @__PURE__ */ t(
|
|
190
|
-
Q,
|
|
191
|
-
{
|
|
192
|
-
showPaginationOptions: R,
|
|
193
|
-
currentPage: V,
|
|
194
|
-
setCurrentPage: m,
|
|
195
|
-
countryCategory: u,
|
|
196
|
-
height: r
|
|
197
|
-
}
|
|
198
|
-
) })
|
|
199
|
-
},
|
|
200
|
-
I
|
|
201
|
-
)
|
|
202
|
-
] });
|
|
203
|
-
};
|
|
204
|
-
export {
|
|
205
|
-
ne as default
|
|
206
|
-
};
|