@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
|
@@ -1,81 +1,79 @@
|
|
|
1
1
|
import { jsxs as v, jsx as a, Fragment as J } from "react/jsx-runtime";
|
|
2
|
-
import { useState as k, useEffect as
|
|
3
|
-
import { injectIntl as
|
|
4
|
-
import { ResponsiveLine as
|
|
5
|
-
import
|
|
6
|
-
import { area as
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import
|
|
2
|
+
import { useState as k, useEffect as rt, Fragment as nt } from "react";
|
|
3
|
+
import { injectIntl as st } from "react-intl";
|
|
4
|
+
import { ResponsiveLine as lt } from "@nivo/line";
|
|
5
|
+
import it from "./Tooltip.js";
|
|
6
|
+
import { area as ct, line as ot } from "d3-shape";
|
|
7
|
+
import { useTheme as dt } from "@nivo/theming";
|
|
8
|
+
import mt from "../../layout/FlexWrapDetector.js";
|
|
9
9
|
import P from "../../utils/deviceType.js";
|
|
10
|
-
const
|
|
10
|
+
const ht = "#66676d", K = "#f0f0f1", ft = ["mobile", "tablet", "midTablet"].includes(P()), pe = P() === "mobile", xe = ["tablet", "midTablet"].includes(P()), ut = (d, x) => {
|
|
11
11
|
const N = document.createElement("canvas").getContext("2d");
|
|
12
|
-
return N.font = x, N.measureText(
|
|
13
|
-
},
|
|
14
|
-
editing:
|
|
12
|
+
return N.font = x, N.measureText(d).width;
|
|
13
|
+
}, pt = ({
|
|
14
|
+
editing: d,
|
|
15
15
|
previewMode: x,
|
|
16
16
|
app: V,
|
|
17
17
|
legends: N,
|
|
18
18
|
tooltip: $,
|
|
19
19
|
tooltipEnabled: ye,
|
|
20
|
-
options:
|
|
20
|
+
options: m,
|
|
21
21
|
intl: I,
|
|
22
22
|
groupMode: Z,
|
|
23
|
-
reverse:
|
|
23
|
+
reverse: xt,
|
|
24
24
|
marginLeft: be,
|
|
25
25
|
lineLabelPosition: ge,
|
|
26
26
|
marginTop: q,
|
|
27
27
|
marginRight: ve,
|
|
28
28
|
marginBottom: Q,
|
|
29
29
|
format: E,
|
|
30
|
-
colors:
|
|
30
|
+
colors: yt,
|
|
31
31
|
offsetY: Ne,
|
|
32
32
|
height: Ee,
|
|
33
33
|
showLegends: X,
|
|
34
34
|
legendPosition: p,
|
|
35
35
|
tickRotation: y,
|
|
36
|
-
offsetText:
|
|
37
|
-
tickColor:
|
|
36
|
+
offsetText: w,
|
|
37
|
+
tickColor: B,
|
|
38
38
|
legendLabel: C,
|
|
39
39
|
xLabelColor: O,
|
|
40
40
|
colorGenerator: ee,
|
|
41
|
-
legendCheckBack:
|
|
41
|
+
legendCheckBack: A,
|
|
42
42
|
legendLabelBack: Oe,
|
|
43
43
|
legendLabelColor: te,
|
|
44
44
|
highlightXAxisLine: Te,
|
|
45
|
-
showTickLine:
|
|
45
|
+
showTickLine: S,
|
|
46
46
|
showRightAxis: De,
|
|
47
|
-
valueScale:
|
|
47
|
+
valueScale: bt,
|
|
48
48
|
enableArea: Me,
|
|
49
49
|
areaShadingCriteria: ae,
|
|
50
50
|
areaLowerBound: re,
|
|
51
51
|
areaUpperBound: ne,
|
|
52
52
|
showPoints: ke,
|
|
53
53
|
maxValue: $e,
|
|
54
|
-
fixedMinValue:
|
|
55
|
-
fixedMaxValue:
|
|
54
|
+
fixedMinValue: H,
|
|
55
|
+
fixedMaxValue: R,
|
|
56
56
|
offsetBottom: Ie,
|
|
57
|
-
yAxisTickValues:
|
|
58
|
-
enableGridY:
|
|
57
|
+
yAxisTickValues: Le,
|
|
58
|
+
enableGridY: Fe,
|
|
59
59
|
enableGridX: We,
|
|
60
|
-
overrideTickColor:
|
|
60
|
+
overrideTickColor: U,
|
|
61
61
|
offsetRight: ze,
|
|
62
62
|
selectedMeasures: _e,
|
|
63
63
|
tooltipEnableMarkdown: je,
|
|
64
64
|
minMaxClamp: we,
|
|
65
65
|
reverseLegend: Be,
|
|
66
|
-
customAxisFormat:
|
|
66
|
+
customAxisFormat: L,
|
|
67
67
|
mobileCustomization: Ae,
|
|
68
|
-
lineCurve:
|
|
69
|
-
customLabels:
|
|
68
|
+
lineCurve: Se,
|
|
69
|
+
customLabels: G
|
|
70
70
|
}) => {
|
|
71
71
|
var he, fe, ue;
|
|
72
|
-
const s = JSON.parse(decodeURIComponent(Ae)),
|
|
72
|
+
const s = JSON.parse(decodeURIComponent(Ae)), se = ft && ((s == null ? void 0 : s.showCustomization) ?? !1), F = se && x !== "Desktop", W = !d && se, [le, He] = k(50), [Re, Ue] = k(q), [gt, ie] = k(0), [Ge, Ye] = k(Q), [T, Je] = k([]), z = m.data.map((e) => ({
|
|
73
73
|
id: e.id,
|
|
74
|
-
label:
|
|
74
|
+
label: G && G[e.id] ? G[e.id] : e.label || e.id,
|
|
75
75
|
color: ee.getColor(e.id, e)
|
|
76
|
-
}))
|
|
77
|
-
console.log(se);
|
|
78
|
-
const oe = () => (Be && z.reverse(), /* @__PURE__ */ a(J, { children: X && z.map((e, t) => /* @__PURE__ */ v("div", { className: "legend item", onClick: () => Pe(e.id), children: [
|
|
76
|
+
})), ce = () => (Be && z.reverse(), /* @__PURE__ */ a(J, { children: X && z.map((e, t) => /* @__PURE__ */ v("div", { className: "legend item", onClick: () => Ve(e.id), children: [
|
|
79
77
|
/* @__PURE__ */ a(
|
|
80
78
|
"input",
|
|
81
79
|
{
|
|
@@ -84,7 +82,7 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
84
82
|
checked: T.length === 0 || !T.includes(e.id),
|
|
85
83
|
readOnly: !0,
|
|
86
84
|
style: {
|
|
87
|
-
backgroundColor:
|
|
85
|
+
backgroundColor: A === !0 ? e.color : "none",
|
|
88
86
|
color: te
|
|
89
87
|
}
|
|
90
88
|
}
|
|
@@ -92,9 +90,9 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
92
90
|
/* @__PURE__ */ a(
|
|
93
91
|
"span",
|
|
94
92
|
{
|
|
95
|
-
className:
|
|
93
|
+
className: A === !0 ? "checkmark-with-bg" : "checkmark",
|
|
96
94
|
style: {
|
|
97
|
-
backgroundColor:
|
|
95
|
+
backgroundColor: A === !0 ? e.color : "transparent"
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
),
|
|
@@ -109,50 +107,50 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
109
107
|
}
|
|
110
108
|
)
|
|
111
109
|
] }, t)) }));
|
|
112
|
-
|
|
110
|
+
rt(() => {
|
|
113
111
|
(() => {
|
|
114
112
|
const r = 5 * Math.max(z.length - 5, 0);
|
|
115
|
-
|
|
113
|
+
He(r);
|
|
116
114
|
})();
|
|
117
115
|
}, [z]);
|
|
118
|
-
const
|
|
119
|
-
bottom: `-${
|
|
120
|
-
},
|
|
121
|
-
bottom: `-${
|
|
116
|
+
const Ke = {
|
|
117
|
+
bottom: `-${le}px`
|
|
118
|
+
}, Pe = {
|
|
119
|
+
bottom: `-${le}px`,
|
|
122
120
|
gap: "0px",
|
|
123
121
|
top: "0px"
|
|
124
|
-
},
|
|
122
|
+
}, _ = (e) => T.length ? e.filter((t) => T.indexOf(t.id) === -1) : e, Ve = (e) => {
|
|
125
123
|
const t = T.slice();
|
|
126
124
|
if (t.indexOf(e) > -1) {
|
|
127
125
|
const r = t.indexOf(e);
|
|
128
126
|
t.splice(r, 1);
|
|
129
127
|
} else
|
|
130
128
|
t.push(e);
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
const t = Object.assign({}, e), r =
|
|
134
|
-
(
|
|
129
|
+
Je(t);
|
|
130
|
+
}, Ze = (e) => {
|
|
131
|
+
const t = Object.assign({}, e), r = dt();
|
|
132
|
+
(F || W) && de.includes(String(t.value)) && (t.value = "");
|
|
135
133
|
let l = [], n = "";
|
|
136
|
-
if (
|
|
134
|
+
if (F || W) {
|
|
137
135
|
const c = String(t.value).split(" ");
|
|
138
136
|
let o = 25;
|
|
139
|
-
|
|
137
|
+
d && x === "Mobile" || pe && !d ? o = (s == null ? void 0 : s.mobileMaxTickLength) ?? 25 : d && x === "Tablet" || xe && !d ? o = (s == null ? void 0 : s.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !d && (o = 15), c.forEach((b) => {
|
|
140
138
|
n.length + String(b).length <= o ? n += (n ? " " : "") + b : (l.push(n), n = b);
|
|
141
139
|
}), n && l.push(n);
|
|
142
140
|
} else
|
|
143
141
|
l = [t.value];
|
|
144
142
|
let i = 12;
|
|
145
|
-
return
|
|
146
|
-
|
|
143
|
+
return d && x === "Mobile" || pe && !d ? i = (s == null ? void 0 : s.mobileYAxisLineHeight) ?? 12 : (d && x === "Tablet" || xe && !d) && (i = (s == null ? void 0 : s.tabletYAxisLineHeight) ?? 12), ut(t.value, "12px Roboto") + 15, y > 0 && y < 180 ? /* @__PURE__ */ v("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
|
|
144
|
+
S && /* @__PURE__ */ a(
|
|
147
145
|
"line",
|
|
148
146
|
{
|
|
149
|
-
stroke:
|
|
147
|
+
stroke: U ? B : K,
|
|
150
148
|
strokeWidth: 1.5,
|
|
151
149
|
y1: -32,
|
|
152
150
|
y2: -12
|
|
153
151
|
}
|
|
154
152
|
),
|
|
155
|
-
/* @__PURE__ */ a("g", { transform: `translate(0, ${e.y +
|
|
153
|
+
/* @__PURE__ */ a("g", { transform: `translate(0, ${e.y + w})`, children: l.map((c, o) => /* @__PURE__ */ a(
|
|
156
154
|
"text",
|
|
157
155
|
{
|
|
158
156
|
transform: `rotate(${y})`,
|
|
@@ -163,23 +161,23 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
163
161
|
...r.axis.ticks.text,
|
|
164
162
|
fill: O === "null" ? "black" : O,
|
|
165
163
|
fontSize: "12px",
|
|
166
|
-
fontFamily: "
|
|
164
|
+
fontFamily: "sans-serif"
|
|
167
165
|
},
|
|
168
166
|
children: c
|
|
169
167
|
},
|
|
170
168
|
c
|
|
171
169
|
)) })
|
|
172
170
|
] }) : y > 180 && y < 360 ? /* @__PURE__ */ v("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
|
|
173
|
-
|
|
171
|
+
S && /* @__PURE__ */ a(
|
|
174
172
|
"line",
|
|
175
173
|
{
|
|
176
|
-
stroke:
|
|
174
|
+
stroke: U ? B : K,
|
|
177
175
|
strokeWidth: 1.5,
|
|
178
176
|
y1: -32,
|
|
179
177
|
y2: -12
|
|
180
178
|
}
|
|
181
179
|
),
|
|
182
|
-
/* @__PURE__ */ a("g", { transform: `translate(0, ${e.y +
|
|
180
|
+
/* @__PURE__ */ a("g", { transform: `translate(0, ${e.y + w})`, children: /* @__PURE__ */ a(
|
|
183
181
|
"text",
|
|
184
182
|
{
|
|
185
183
|
transform: `rotate(${y})`,
|
|
@@ -194,16 +192,16 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
194
192
|
}
|
|
195
193
|
) })
|
|
196
194
|
] }) : /* @__PURE__ */ v("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
|
|
197
|
-
|
|
195
|
+
S && /* @__PURE__ */ a(
|
|
198
196
|
"line",
|
|
199
197
|
{
|
|
200
|
-
stroke:
|
|
198
|
+
stroke: U ? B : K,
|
|
201
199
|
strokeWidth: 1.5,
|
|
202
200
|
y1: -32,
|
|
203
201
|
y2: -12
|
|
204
202
|
}
|
|
205
203
|
),
|
|
206
|
-
/* @__PURE__ */ a("g", { transform: `translate(0, ${e.y +
|
|
204
|
+
/* @__PURE__ */ a("g", { transform: `translate(0, ${e.y + w})`, children: l.map((c, o) => /* @__PURE__ */ a(
|
|
207
205
|
"text",
|
|
208
206
|
{
|
|
209
207
|
transform: `rotate(${y})`,
|
|
@@ -214,52 +212,52 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
214
212
|
...r.axis.ticks.text,
|
|
215
213
|
fill: O === "null" ? "black" : O,
|
|
216
214
|
fontSize: "12px",
|
|
217
|
-
fontFamily: "
|
|
215
|
+
fontFamily: "sans-serif"
|
|
218
216
|
},
|
|
219
217
|
children: c
|
|
220
218
|
},
|
|
221
219
|
c
|
|
222
220
|
)) })
|
|
223
221
|
] });
|
|
224
|
-
},
|
|
222
|
+
}, qe = ({ series: e, xScale: t, yScale: r, innerHeight: l }) => {
|
|
225
223
|
const n = e && e.length > 0 ? e[0].color : "#3daff7", i = [];
|
|
226
224
|
e[0] && e[0].data.forEach((u) => {
|
|
227
|
-
V == "csv" ?
|
|
225
|
+
V == "csv" ? m.keys.forEach((g) => {
|
|
228
226
|
i.push({ measure: g, min: u.data.variables[g] });
|
|
229
227
|
}) : _e.forEach((g) => {
|
|
230
228
|
i.push({ measure: g, min: u.data.variables[g] });
|
|
231
229
|
});
|
|
232
230
|
});
|
|
233
|
-
const c = i.sort((u, g) => u.min - g.min), o = ae == "CUSTOM_BETWEEN_TWO_LINES" && re ? re : c[0].measure, b = ae == "CUSTOM_BETWEEN_TWO_LINES" && ne ? ne : c[c.length - 1].measure,
|
|
231
|
+
const c = i.sort((u, g) => u.min - g.min), o = ae == "CUSTOM_BETWEEN_TWO_LINES" && re ? re : c[0].measure, b = ae == "CUSTOM_BETWEEN_TWO_LINES" && ne ? ne : c[c.length - 1].measure, at = ct().x((u) => t(u.data.x)).y0((u) => r(u.data.variables[o])).y1((u) => r(u.data.variables[b]));
|
|
234
232
|
return /* @__PURE__ */ a(J, { children: e && e[0] && /* @__PURE__ */ a(
|
|
235
233
|
"path",
|
|
236
234
|
{
|
|
237
|
-
d:
|
|
235
|
+
d: at(e[0].data),
|
|
238
236
|
fill: n,
|
|
239
237
|
fillOpacity: 0.4
|
|
240
238
|
}
|
|
241
239
|
) });
|
|
242
|
-
},
|
|
243
|
-
const i = [0, n], c =
|
|
244
|
-
return /* @__PURE__ */ a(
|
|
240
|
+
}, Qe = ({ series: e, xScale: t, yScale: r, innerHeight: l, innerWidth: n }) => {
|
|
241
|
+
const i = [0, n], c = ot().x((o, b) => b === 0 ? -10 : o).y((o) => r(0));
|
|
242
|
+
return /* @__PURE__ */ a(nt, { children: /* @__PURE__ */ a(
|
|
245
243
|
"path",
|
|
246
244
|
{
|
|
247
245
|
d: c(i),
|
|
248
246
|
fill: "none",
|
|
249
|
-
stroke:
|
|
247
|
+
stroke: ht,
|
|
250
248
|
style: { pointerEvents: "none", strokeDasharray: "4 4" }
|
|
251
249
|
}
|
|
252
250
|
) });
|
|
253
251
|
}, D = ["grid", "axes", "lines", "legends"];
|
|
254
|
-
Me && D.push(
|
|
252
|
+
Me && D.push(qe), ke && (D.push("points"), D.push("mesh")), Te && D.push(Qe);
|
|
255
253
|
let M = [];
|
|
256
|
-
|
|
254
|
+
_(m.data).forEach((e) => {
|
|
257
255
|
e.data && (M = [...M, ...e.data.map((t) => t.y)]);
|
|
258
256
|
});
|
|
259
|
-
const
|
|
257
|
+
const Xe = () => {
|
|
260
258
|
if (Z === "stacked") {
|
|
261
259
|
const e = [];
|
|
262
|
-
|
|
260
|
+
_(m.data).forEach((l) => {
|
|
263
261
|
e.push(...l.data);
|
|
264
262
|
});
|
|
265
263
|
const r = [];
|
|
@@ -275,34 +273,35 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
275
273
|
return f = f < 0 ? f * 0.9 : f * 1.1, h = h > 0 ? h * 0.9 : h * 1.1, { min: h, max: f };
|
|
276
274
|
};
|
|
277
275
|
let h = "auto", f = "auto";
|
|
278
|
-
const
|
|
279
|
-
$e == "fixed" ? (h =
|
|
280
|
-
const
|
|
281
|
-
top:
|
|
276
|
+
const j = Xe();
|
|
277
|
+
$e == "fixed" ? (h = H != null && H != "" ? H : j.min, f = R != null && R != "" ? R : j.max) : (h = j.min, f = j.max);
|
|
278
|
+
const oe = () => /* @__PURE__ */ a(J, { children: X && C && /* @__PURE__ */ a("div", { className: "legend item", children: /* @__PURE__ */ a("label", { className: "legend-title", children: C }) }) }), Ce = {
|
|
279
|
+
top: Re,
|
|
282
280
|
right: ve,
|
|
283
|
-
bottom:
|
|
281
|
+
bottom: Ge,
|
|
284
282
|
left: be
|
|
285
283
|
};
|
|
286
|
-
let Y = parseInt(
|
|
287
|
-
const
|
|
284
|
+
let Y = parseInt(Le);
|
|
285
|
+
const et = m.data && ((fe = (he = m.data) == null ? void 0 : he.filter((e) => {
|
|
288
286
|
var t;
|
|
289
287
|
return ((t = e == null ? void 0 : e.data) == null ? void 0 : t.length) > 0;
|
|
290
288
|
})) == null ? void 0 : fe.length), de = [];
|
|
291
|
-
if (
|
|
289
|
+
if (F || W) {
|
|
292
290
|
Y = Number.parseInt(s.yAxisTickValues);
|
|
293
291
|
const e = new Map(Object.entries(((ue = s == null ? void 0 : s.labels) == null ? void 0 : ue.xAxis) ?? {}));
|
|
294
292
|
for (const [t, r] of e)
|
|
295
293
|
r || de.push(t);
|
|
296
294
|
}
|
|
297
|
-
|
|
298
|
-
|
|
295
|
+
const me = _(m.data), tt = ["grid", "axes", "legends"];
|
|
296
|
+
if (m != null && m.data && et > 0) {
|
|
297
|
+
let e = _(m.data);
|
|
299
298
|
return /* @__PURE__ */ v("div", { style: { height: Ee }, children: [
|
|
300
299
|
/* @__PURE__ */ a(
|
|
301
|
-
|
|
300
|
+
lt,
|
|
302
301
|
{
|
|
303
|
-
curve:
|
|
304
|
-
data:
|
|
305
|
-
margin:
|
|
302
|
+
curve: Se,
|
|
303
|
+
data: me,
|
|
304
|
+
margin: Ce,
|
|
306
305
|
xScale: { type: "point" },
|
|
307
306
|
yScale: {
|
|
308
307
|
type: "linear",
|
|
@@ -312,7 +311,7 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
312
311
|
reverse: !1,
|
|
313
312
|
clamp: we
|
|
314
313
|
},
|
|
315
|
-
layers: D,
|
|
314
|
+
layers: me.length === 0 ? tt : D,
|
|
316
315
|
axisTop: null,
|
|
317
316
|
axisRight: De ? {
|
|
318
317
|
tickSize: 5,
|
|
@@ -323,7 +322,7 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
323
322
|
legendPosition: "middle",
|
|
324
323
|
legendOffset: parseInt(ze),
|
|
325
324
|
format: (t) => {
|
|
326
|
-
const r =
|
|
325
|
+
const r = L || E;
|
|
327
326
|
return I.formatNumber(
|
|
328
327
|
r.style === "percent" ? t / 100 : t,
|
|
329
328
|
{
|
|
@@ -332,7 +331,7 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
332
331
|
);
|
|
333
332
|
}
|
|
334
333
|
} : null,
|
|
335
|
-
enableGridY:
|
|
334
|
+
enableGridY: Fe,
|
|
336
335
|
enableGridX: We,
|
|
337
336
|
enablePointLabel: ge === "top",
|
|
338
337
|
pointLabel: (t) => I.formatNumber(
|
|
@@ -341,8 +340,8 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
341
340
|
),
|
|
342
341
|
lineWidth: 3,
|
|
343
342
|
colors: (t) => ee.getColor(t.id, t),
|
|
344
|
-
axisBottom: (
|
|
345
|
-
renderTick:
|
|
343
|
+
axisBottom: (F || W) && (s == null ? void 0 : s.xAxisDisabled) === !0 ? null : {
|
|
344
|
+
renderTick: Ze,
|
|
346
345
|
legend: N.bottom,
|
|
347
346
|
legendPosition: "middle",
|
|
348
347
|
legendOffset: Number.parseInt(Ie)
|
|
@@ -356,7 +355,7 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
356
355
|
legendPosition: "middle",
|
|
357
356
|
legendOffset: Number.parseInt(Ne),
|
|
358
357
|
format: (t) => {
|
|
359
|
-
const r =
|
|
358
|
+
const r = L || E;
|
|
360
359
|
return I.formatNumber(
|
|
361
360
|
r.style === "percent" ? t / 100 : t,
|
|
362
361
|
{
|
|
@@ -366,7 +365,7 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
366
365
|
}
|
|
367
366
|
},
|
|
368
367
|
tooltip: (t) => ye && $ && $.trim().length > 0 ? /* @__PURE__ */ a(
|
|
369
|
-
|
|
368
|
+
it,
|
|
370
369
|
{
|
|
371
370
|
intl: I,
|
|
372
371
|
format: E,
|
|
@@ -387,15 +386,15 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
387
386
|
{
|
|
388
387
|
className: `legends container has-standard-12-font-size ${p}`,
|
|
389
388
|
children: /* @__PURE__ */ v("div", { className: "legend-sections", children: [
|
|
390
|
-
/* @__PURE__ */ a("div", { className: "title-section", children:
|
|
389
|
+
/* @__PURE__ */ a("div", { className: "title-section", children: oe() }),
|
|
391
390
|
/* @__PURE__ */ a(
|
|
392
|
-
|
|
391
|
+
mt,
|
|
393
392
|
{
|
|
394
393
|
onWrapChange: (t) => {
|
|
395
|
-
p === "top" ? (
|
|
394
|
+
p === "top" ? (Ue(q + t / 2 * 40), ie(t)) : (Ye(Q + t / 2 * 25), ie(t));
|
|
396
395
|
},
|
|
397
396
|
className: "legends container has-standard-12-font-size items-section",
|
|
398
|
-
children:
|
|
397
|
+
children: ce()
|
|
399
398
|
}
|
|
400
399
|
)
|
|
401
400
|
] })
|
|
@@ -405,17 +404,17 @@ const mt = "#66676d", K = "#f0f0f1", dt = ["mobile", "tablet", "midTablet"].incl
|
|
|
405
404
|
"div",
|
|
406
405
|
{
|
|
407
406
|
className: `legends container has-standard-12-font-size ${p}`,
|
|
408
|
-
style: p === "right" ?
|
|
407
|
+
style: p === "right" ? Ke : Pe,
|
|
409
408
|
children: [
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
oe(),
|
|
410
|
+
ce()
|
|
412
411
|
]
|
|
413
412
|
}
|
|
414
413
|
)
|
|
415
414
|
] });
|
|
416
415
|
}
|
|
417
416
|
return /* @__PURE__ */ a("div", {});
|
|
418
|
-
},
|
|
417
|
+
}, It = st(pt);
|
|
419
418
|
export {
|
|
420
|
-
|
|
419
|
+
It as default
|
|
421
420
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { isSequentialColorScheme as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
class
|
|
1
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import S from "./SystemColors.js";
|
|
4
|
+
import x from "./PlainColor.js";
|
|
5
|
+
import b from "./ManualColors.js";
|
|
6
|
+
import { isSequentialColorScheme as g, isCategoricalColorScheme as v } from "@nivo/colors";
|
|
7
|
+
import M from "./SequentialColors.js";
|
|
8
|
+
import q from "./CategoricalColors.js";
|
|
9
|
+
class z extends a.Component {
|
|
10
10
|
constructor(l) {
|
|
11
11
|
super(l);
|
|
12
12
|
}
|
|
@@ -14,56 +14,59 @@ class _ extends i.Component {
|
|
|
14
14
|
const {
|
|
15
15
|
app: l,
|
|
16
16
|
type: n,
|
|
17
|
-
colorBy:
|
|
17
|
+
colorBy: s,
|
|
18
18
|
scheme: o,
|
|
19
|
-
barColor:
|
|
20
|
-
manualColors:
|
|
19
|
+
barColor: C,
|
|
20
|
+
manualColors: d,
|
|
21
21
|
locale: m,
|
|
22
|
-
overallLabel:
|
|
23
|
-
customLabels:
|
|
24
|
-
options:
|
|
22
|
+
overallLabel: u,
|
|
23
|
+
customLabels: h,
|
|
24
|
+
options: p
|
|
25
25
|
} = this.props;
|
|
26
26
|
let e;
|
|
27
|
-
|
|
27
|
+
const { data: r, keys: t, indexBy: i, dimensionsMetadata: c, measuresMetadata: f } = this.props.options;
|
|
28
|
+
return r ? (o === "system" ? e = new S(
|
|
28
29
|
l,
|
|
29
30
|
n,
|
|
30
|
-
|
|
31
|
+
s,
|
|
31
32
|
o,
|
|
32
33
|
r,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
p,
|
|
34
|
+
t,
|
|
35
|
+
i,
|
|
36
36
|
c,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
f,
|
|
38
|
+
m,
|
|
39
|
+
p
|
|
40
|
+
) : o === "plain_color" ? e = new x(C) : o == "manual" ? e = new b(
|
|
39
41
|
l,
|
|
40
42
|
n,
|
|
41
|
-
|
|
43
|
+
s,
|
|
42
44
|
o,
|
|
43
45
|
r,
|
|
44
|
-
p,
|
|
45
46
|
c,
|
|
46
|
-
|
|
47
|
-
a,
|
|
48
|
-
C,
|
|
49
|
-
m,
|
|
50
|
-
d,
|
|
51
|
-
u
|
|
52
|
-
) : (b(o) && (e = new v(
|
|
47
|
+
f,
|
|
53
48
|
t,
|
|
49
|
+
i,
|
|
50
|
+
d,
|
|
51
|
+
m,
|
|
52
|
+
u,
|
|
53
|
+
h,
|
|
54
|
+
p
|
|
55
|
+
) : (g(o) && (e = new M(
|
|
56
|
+
s,
|
|
54
57
|
o,
|
|
55
58
|
r,
|
|
56
|
-
s,
|
|
57
|
-
a
|
|
58
|
-
)), g(o) && (e = new M(
|
|
59
59
|
t,
|
|
60
|
+
i
|
|
61
|
+
)), v(o) && (e = new q(
|
|
62
|
+
s,
|
|
60
63
|
o,
|
|
61
64
|
r,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
))), /* @__PURE__ */
|
|
65
|
+
t,
|
|
66
|
+
i
|
|
67
|
+
))), /* @__PURE__ */ w("div", { children: a.Children.map(
|
|
65
68
|
this.props.children,
|
|
66
|
-
(
|
|
69
|
+
(y) => a.cloneElement(y, {
|
|
67
70
|
...this.props,
|
|
68
71
|
colorGenerator: e
|
|
69
72
|
})
|
|
@@ -71,5 +74,5 @@ class _ extends i.Component {
|
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
export {
|
|
74
|
-
|
|
77
|
+
z as default
|
|
75
78
|
};
|