@devgateway/dvz-ui-react 1.3.5 → 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,132 +1,132 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import { ResponsiveBar as
|
|
5
|
-
import { injectIntl as
|
|
6
|
-
import { useTheme as
|
|
7
|
-
import { line as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
editing:
|
|
14
|
-
legends:
|
|
15
|
-
marginLeft:
|
|
16
|
-
marginTop:
|
|
17
|
-
marginRight:
|
|
18
|
-
marginBottom:
|
|
19
|
-
options:
|
|
1
|
+
import { jsx as c, jsxs as p, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
+
import { useState as S, useEffect as Ht, Fragment as He } from "react";
|
|
3
|
+
import Wt from "./Tooltip.js";
|
|
4
|
+
import { ResponsiveBar as Tt } from "@nivo/bar";
|
|
5
|
+
import { injectIntl as _t } from "react-intl";
|
|
6
|
+
import { useTheme as St } from "@nivo/theming";
|
|
7
|
+
import { line as We } from "d3-shape";
|
|
8
|
+
import Te from "./LineLayer.js";
|
|
9
|
+
import be from "papaparse";
|
|
10
|
+
import At from "../../layout/FlexWrapDetector.js";
|
|
11
|
+
import ge from "../../utils/deviceType.js";
|
|
12
|
+
const jt = "middle", Pt = "top", J = "#66676d", _e = "#dddddd", Rt = "none", U = "_Color", Yt = ({
|
|
13
|
+
editing: x,
|
|
14
|
+
legends: R,
|
|
15
|
+
marginLeft: Se,
|
|
16
|
+
marginTop: q,
|
|
17
|
+
marginRight: Ae,
|
|
18
|
+
marginBottom: Q,
|
|
19
|
+
options: u,
|
|
20
20
|
intl: g,
|
|
21
21
|
format: b,
|
|
22
|
-
colors:
|
|
23
|
-
groupMode:
|
|
24
|
-
height:
|
|
22
|
+
colors: $,
|
|
23
|
+
groupMode: F,
|
|
24
|
+
height: je,
|
|
25
25
|
showLegends: G,
|
|
26
|
-
legendPosition:
|
|
27
|
-
tickRotation:
|
|
26
|
+
legendPosition: D,
|
|
27
|
+
tickRotation: E,
|
|
28
28
|
offsetText: ee,
|
|
29
29
|
tickColor: te,
|
|
30
|
-
layout:
|
|
30
|
+
layout: o,
|
|
31
31
|
reverse: H,
|
|
32
|
-
offsetY:
|
|
33
|
-
csvLineLayerData:
|
|
32
|
+
offsetY: Pe,
|
|
33
|
+
csvLineLayerData: ve,
|
|
34
34
|
tooltip: ae,
|
|
35
|
-
lineLayerEnabled:
|
|
36
|
-
overlays:
|
|
37
|
-
maxValue:
|
|
38
|
-
valueScale:
|
|
35
|
+
lineLayerEnabled: ne,
|
|
36
|
+
overlays: W,
|
|
37
|
+
maxValue: re,
|
|
38
|
+
valueScale: Re,
|
|
39
39
|
colorGenerator: v,
|
|
40
40
|
legendLabel: Ne,
|
|
41
|
-
overrideTickColor:
|
|
42
|
-
fixedMinValue:
|
|
43
|
-
fixedMaxValue:
|
|
44
|
-
barPadding:
|
|
41
|
+
overrideTickColor: Ye,
|
|
42
|
+
fixedMinValue: le,
|
|
43
|
+
fixedMaxValue: se,
|
|
44
|
+
barPadding: Ke,
|
|
45
45
|
barLabelPosition: Ie,
|
|
46
|
-
barInnerPadding:
|
|
47
|
-
tooltipEnabled:
|
|
48
|
-
xLabelColor:
|
|
49
|
-
barLabelColor:
|
|
50
|
-
legendCheckBack:
|
|
51
|
-
legendLabelBack:
|
|
52
|
-
legendLabelColor:
|
|
53
|
-
highlightXAxisLine:
|
|
54
|
-
showTickLine:
|
|
55
|
-
showRightAxis:
|
|
56
|
-
offsetRight:
|
|
46
|
+
barInnerPadding: Xe,
|
|
47
|
+
tooltipEnabled: Ce,
|
|
48
|
+
xLabelColor: w,
|
|
49
|
+
barLabelColor: Y,
|
|
50
|
+
legendCheckBack: I,
|
|
51
|
+
legendLabelBack: ie,
|
|
52
|
+
legendLabelColor: ce,
|
|
53
|
+
highlightXAxisLine: Ze,
|
|
54
|
+
showTickLine: A,
|
|
55
|
+
showRightAxis: Je,
|
|
56
|
+
offsetRight: Ue,
|
|
57
57
|
offsetBottom: Le,
|
|
58
|
-
confidenceIntervals:
|
|
59
|
-
showGroupTotal:
|
|
58
|
+
confidenceIntervals: de,
|
|
59
|
+
showGroupTotal: qe,
|
|
60
60
|
groupTotalLabel: ke,
|
|
61
|
-
groupTotalFormat:
|
|
62
|
-
groupTotalMeasure:
|
|
61
|
+
groupTotalFormat: De,
|
|
62
|
+
groupTotalMeasure: we,
|
|
63
63
|
groupTotalOffset: z,
|
|
64
|
-
groupTotalFixedPosition:
|
|
65
|
-
tooltipEnableMarkdown:
|
|
66
|
-
xAxisTickValues:
|
|
67
|
-
yAxisTickValues:
|
|
68
|
-
mobileCustomization:
|
|
69
|
-
minMaxClamp:
|
|
70
|
-
reverseLegend:
|
|
71
|
-
enableGridY:
|
|
72
|
-
enableGridX:
|
|
73
|
-
customAxisFormat:
|
|
74
|
-
previewMode:
|
|
75
|
-
showLegendsInColumns:
|
|
76
|
-
numberOfLegendColumns:
|
|
64
|
+
groupTotalFixedPosition: K,
|
|
65
|
+
tooltipEnableMarkdown: Qe,
|
|
66
|
+
xAxisTickValues: Ge,
|
|
67
|
+
yAxisTickValues: et,
|
|
68
|
+
mobileCustomization: tt,
|
|
69
|
+
minMaxClamp: Kt,
|
|
70
|
+
reverseLegend: at,
|
|
71
|
+
enableGridY: nt,
|
|
72
|
+
enableGridX: rt,
|
|
73
|
+
customAxisFormat: M,
|
|
74
|
+
previewMode: B,
|
|
75
|
+
showLegendsInColumns: lt = !1,
|
|
76
|
+
numberOfLegendColumns: st = 4
|
|
77
77
|
}) => {
|
|
78
|
-
var
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
),
|
|
82
|
-
|
|
78
|
+
var $e;
|
|
79
|
+
const it = ["mobile", "tablet", "midTablet"].includes(
|
|
80
|
+
ge()
|
|
81
|
+
), X = ["tablet", "midTablet"].includes(ge()), C = ge() === "mobile", he = 30, me = 15, m = JSON.parse(decodeURIComponent(tt)), Me = it && ((m == null ? void 0 : m.showCustomization) ?? !1), T = Me && B !== "Desktop", _ = !x && Me, ue = () => Y === "null" || Y === null || !Y ? "#000000" : Y, [L, ct] = S([]), { colorBy: j } = $, Oe = {};
|
|
82
|
+
W.forEach((e, t) => {
|
|
83
83
|
Oe[t] = !0;
|
|
84
84
|
});
|
|
85
|
-
const [
|
|
86
|
-
let
|
|
87
|
-
return e.data && (
|
|
88
|
-
let a,
|
|
89
|
-
return
|
|
90
|
-
enabled:
|
|
85
|
+
const [N, dt] = S(Oe), [Fe, ht] = S(50), [Xt, mt] = S(q), [Ct, Ee] = S(0), [ut, ft] = S(Q), P = ((e, t, i, n, l) => {
|
|
86
|
+
let s = [];
|
|
87
|
+
return e.data && (s = t.colorBy === "index" ? e.data.map((r) => {
|
|
88
|
+
let a, h = !0;
|
|
89
|
+
return i.indexOf(r[e.indexBy]) > -1 ? (h = !1, a = n) : a = r[U] ? r[U] : l.getColor(r.id, r), {
|
|
90
|
+
enabled: h,
|
|
91
91
|
color: a,
|
|
92
|
-
id:
|
|
93
|
-
label:
|
|
92
|
+
id: r[e.indexBy],
|
|
93
|
+
label: r[e.indexBy]
|
|
94
94
|
};
|
|
95
|
-
}) : e.keys.map((
|
|
96
|
-
let a,
|
|
97
|
-
return
|
|
98
|
-
enabled:
|
|
95
|
+
}) : e.keys.map((r) => {
|
|
96
|
+
let a, h = !0;
|
|
97
|
+
return i.indexOf(r) > -1 ? (h = !1, a = n) : a = l.getColorByKey(r), {
|
|
98
|
+
enabled: h,
|
|
99
99
|
color: a,
|
|
100
|
-
id:
|
|
101
|
-
label:
|
|
100
|
+
id: r,
|
|
101
|
+
label: r
|
|
102
102
|
};
|
|
103
|
-
})),
|
|
103
|
+
})), s;
|
|
104
104
|
})(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
u,
|
|
106
|
+
$,
|
|
107
|
+
L,
|
|
108
|
+
Rt,
|
|
109
109
|
v
|
|
110
|
-
),
|
|
110
|
+
), ze = () => (at && P.reverse(), /* @__PURE__ */ p(pe, { children: [
|
|
111
111
|
G && P.map((e) => /* @__PURE__ */ p(
|
|
112
112
|
"div",
|
|
113
113
|
{
|
|
114
114
|
className: `legend item ${e.enabled ? "" : "ignore"}`,
|
|
115
|
-
onClick: () =>
|
|
115
|
+
onClick: () => Lt(e.id),
|
|
116
116
|
children: [
|
|
117
|
-
|
|
117
|
+
I && /* @__PURE__ */ c(
|
|
118
118
|
"input",
|
|
119
119
|
{
|
|
120
120
|
className: e.enabled ? "" : "ignore",
|
|
121
121
|
type: "checkbox",
|
|
122
122
|
checked: e.enabled,
|
|
123
123
|
style: {
|
|
124
|
-
backgroundColor:
|
|
124
|
+
backgroundColor: I ? j === "values" ? te : e.color : "none",
|
|
125
125
|
color: "#000"
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
|
-
!
|
|
129
|
+
!I && /* @__PURE__ */ c(
|
|
130
130
|
"input",
|
|
131
131
|
{
|
|
132
132
|
type: "checkbox",
|
|
@@ -136,31 +136,31 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
),
|
|
139
|
-
|
|
139
|
+
I && /* @__PURE__ */ c(
|
|
140
140
|
"span",
|
|
141
141
|
{
|
|
142
142
|
className: "checkmark-with-bg",
|
|
143
143
|
style: { backgroundColor: e.color }
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
|
-
!
|
|
147
|
-
|
|
146
|
+
!I && /* @__PURE__ */ c("span", { className: "checkmark" }),
|
|
147
|
+
ie && /* @__PURE__ */ c(
|
|
148
148
|
"label",
|
|
149
149
|
{
|
|
150
150
|
className: e.enabled ? "" : "ignore",
|
|
151
151
|
style: {
|
|
152
|
-
backgroundColor:
|
|
153
|
-
color:
|
|
152
|
+
backgroundColor: j === "values" ? te : e.color,
|
|
153
|
+
color: ce
|
|
154
154
|
},
|
|
155
155
|
children: e.label
|
|
156
156
|
}
|
|
157
157
|
),
|
|
158
|
-
!
|
|
158
|
+
!ie && /* @__PURE__ */ c(
|
|
159
159
|
"label",
|
|
160
160
|
{
|
|
161
161
|
className: e.enabled ? "" : "ignore",
|
|
162
162
|
style: {
|
|
163
|
-
color:
|
|
163
|
+
color: ce
|
|
164
164
|
},
|
|
165
165
|
children: e.label
|
|
166
166
|
}
|
|
@@ -168,8 +168,8 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
168
168
|
]
|
|
169
169
|
}
|
|
170
170
|
)),
|
|
171
|
-
|
|
172
|
-
/* @__PURE__ */
|
|
171
|
+
j === "values" && /* @__PURE__ */ p("div", { className: "legend item", children: [
|
|
172
|
+
/* @__PURE__ */ c(
|
|
173
173
|
"label",
|
|
174
174
|
{
|
|
175
175
|
className: "range min",
|
|
@@ -181,7 +181,7 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ c("label", { children: g.formatNumber(
|
|
185
185
|
b.style === "percent" ? v.minValue / 100 : v.minValue,
|
|
186
186
|
{
|
|
187
187
|
...b,
|
|
@@ -189,8 +189,8 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
189
189
|
}
|
|
190
190
|
) })
|
|
191
191
|
] }),
|
|
192
|
-
|
|
193
|
-
/* @__PURE__ */
|
|
192
|
+
j === "values" && /* @__PURE__ */ p("div", { className: "legend item", children: [
|
|
193
|
+
/* @__PURE__ */ c(
|
|
194
194
|
"label",
|
|
195
195
|
{
|
|
196
196
|
className: "range max",
|
|
@@ -203,7 +203,7 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
203
203
|
children: " "
|
|
204
204
|
}
|
|
205
205
|
),
|
|
206
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ c("label", { children: g.formatNumber(
|
|
207
207
|
b.style === "percent" ? v.maxValue / 100 : v.maxValue,
|
|
208
208
|
{
|
|
209
209
|
...b,
|
|
@@ -211,90 +211,90 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
211
211
|
}
|
|
212
212
|
) })
|
|
213
213
|
] }),
|
|
214
|
-
G &&
|
|
215
|
-
/* @__PURE__ */
|
|
214
|
+
G && ne && W.map((e, t) => /* @__PURE__ */ p("div", { className: "legend item", onClick: () => kt(t), children: [
|
|
215
|
+
/* @__PURE__ */ c(
|
|
216
216
|
"input",
|
|
217
217
|
{
|
|
218
|
-
className:
|
|
218
|
+
className: I && N[t] ? "" : "ignore",
|
|
219
219
|
type: "checkbox",
|
|
220
|
-
checked:
|
|
220
|
+
checked: N[t],
|
|
221
221
|
style: {
|
|
222
|
-
backgroundColor:
|
|
222
|
+
backgroundColor: N[t] && I === !0 ? e.lineColor : "none",
|
|
223
223
|
color: "#000"
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ c(
|
|
228
228
|
"span",
|
|
229
229
|
{
|
|
230
|
-
className:
|
|
230
|
+
className: I ? "checkmark-with-bg" : "checkmark",
|
|
231
231
|
style: {
|
|
232
|
-
backgroundColor:
|
|
232
|
+
backgroundColor: N[t] && I === !0 ? e.lineColor : "none"
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
),
|
|
236
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ c(
|
|
237
237
|
"label",
|
|
238
238
|
{
|
|
239
|
-
className:
|
|
239
|
+
className: N[t] ? "" : "ignore",
|
|
240
240
|
style: {
|
|
241
|
-
backgroundColor:
|
|
242
|
-
color:
|
|
241
|
+
backgroundColor: N[t] && ie === !0 ? e.lineColor : "none",
|
|
242
|
+
color: ce
|
|
243
243
|
},
|
|
244
244
|
children: e.title
|
|
245
245
|
}
|
|
246
246
|
)
|
|
247
247
|
] }))
|
|
248
248
|
] }));
|
|
249
|
-
|
|
249
|
+
Ht(() => {
|
|
250
250
|
(() => {
|
|
251
|
-
const
|
|
252
|
-
|
|
251
|
+
const i = 5 * Math.max(P.length - 5, 0);
|
|
252
|
+
ht(i);
|
|
253
253
|
})();
|
|
254
254
|
}, [P]);
|
|
255
|
-
const
|
|
256
|
-
bottom: `-${
|
|
257
|
-
},
|
|
258
|
-
bottom: `-${
|
|
255
|
+
const ot = {
|
|
256
|
+
bottom: `-${Fe}px`
|
|
257
|
+
}, xt = {
|
|
258
|
+
bottom: `-${Fe}px`,
|
|
259
259
|
gap: "0px"
|
|
260
260
|
// top: "0px",
|
|
261
|
-
},
|
|
262
|
-
const t = P.find((
|
|
261
|
+
}, yt = (e) => fe(e, "1 0", _e, "Y"), pt = (e) => fe(e, "4 4", J, "X"), bt = (e) => fe(e, "1 0", _e, "X"), gt = (e) => {
|
|
262
|
+
const t = P.find((i) => i.id === e.value);
|
|
263
263
|
return t ? t.color : "#FFFFFF";
|
|
264
|
-
},
|
|
265
|
-
const { yScale: t, bars:
|
|
266
|
-
return /* @__PURE__ */
|
|
267
|
-
let
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
(
|
|
264
|
+
}, vt = (e) => {
|
|
265
|
+
const { yScale: t, bars: i } = e;
|
|
266
|
+
return /* @__PURE__ */ c(He, { children: i.filter((n) => n.data.value != null).map((n) => {
|
|
267
|
+
let l = n.data.indexValue;
|
|
268
|
+
u.dimensionsMetadata && u.dimensionsMetadata.size > 1 && (l = n.data.id);
|
|
269
|
+
const s = de.filter(
|
|
270
|
+
(r) => r.serieLabel == l
|
|
271
271
|
)[0];
|
|
272
|
-
if (
|
|
273
|
-
const
|
|
272
|
+
if (s && s.low && s.high) {
|
|
273
|
+
const r = t(parseFloat(s.low)), a = t(parseFloat(s.high));
|
|
274
274
|
return /* @__PURE__ */ p("g", { children: [
|
|
275
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ c(
|
|
276
276
|
"line",
|
|
277
277
|
{
|
|
278
|
-
y1:
|
|
278
|
+
y1: r,
|
|
279
279
|
y2: a,
|
|
280
280
|
x1: n.x + n.width / 2,
|
|
281
281
|
x2: n.x + n.width / 2,
|
|
282
282
|
strokeWidth: 1,
|
|
283
|
-
stroke:
|
|
283
|
+
stroke: J
|
|
284
284
|
}
|
|
285
285
|
),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ c(
|
|
287
287
|
"line",
|
|
288
288
|
{
|
|
289
|
-
y1:
|
|
290
|
-
y2:
|
|
289
|
+
y1: r,
|
|
290
|
+
y2: r,
|
|
291
291
|
x1: n.x + n.width / 2 - 3,
|
|
292
292
|
x2: n.x + n.width / 2 + 3,
|
|
293
293
|
strokeWidth: 1,
|
|
294
|
-
stroke:
|
|
294
|
+
stroke: J
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ c(
|
|
298
298
|
"line",
|
|
299
299
|
{
|
|
300
300
|
y1: a,
|
|
@@ -302,43 +302,43 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
302
302
|
x1: n.x + n.width / 2 - 3,
|
|
303
303
|
x2: n.x + n.width / 2 + 3,
|
|
304
304
|
strokeWidth: 1,
|
|
305
|
-
stroke:
|
|
305
|
+
stroke: J
|
|
306
306
|
}
|
|
307
307
|
)
|
|
308
308
|
] });
|
|
309
309
|
}
|
|
310
310
|
}) });
|
|
311
|
-
},
|
|
312
|
-
const { yScale:
|
|
313
|
-
let a,
|
|
314
|
-
return n == "X" ? (a = [0,
|
|
311
|
+
}, fe = (e, t, i, n) => {
|
|
312
|
+
const { yScale: l, innerWidth: s, innerHeight: r } = e;
|
|
313
|
+
let a, h;
|
|
314
|
+
return n == "X" ? (a = [0, s], h = We().x((f, V) => V === 0 ? -10 : f).y(() => l(0))) : (a = [0, r], h = We().x(() => 0).y((f) => f)), /* @__PURE__ */ c(He, { children: /* @__PURE__ */ c(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
317
|
-
d:
|
|
317
|
+
d: h(a),
|
|
318
318
|
fill: "none",
|
|
319
|
-
stroke:
|
|
319
|
+
stroke: i,
|
|
320
320
|
style: { pointerEvents: "none", strokeDasharray: t }
|
|
321
321
|
}
|
|
322
322
|
) });
|
|
323
|
-
}, O = (e, t) =>
|
|
324
|
-
const t =
|
|
323
|
+
}, O = (e, t) => L ? ($.colorBy === "index" || $.colorBy === "id" || $.colorBy === "values") && !t ? e.filter((i) => L.indexOf(i[u.indexBy]) === -1) : e ? e.filter((i) => L.indexOf(i) === -1) : [] : e, Nt = (e) => {
|
|
324
|
+
const t = St();
|
|
325
325
|
if (!e.value) return "";
|
|
326
|
-
const
|
|
327
|
-
(
|
|
326
|
+
const i = Object.assign({}, e);
|
|
327
|
+
(_ || T) && ye.includes(String(i.value)) && (i.value = "");
|
|
328
328
|
let n;
|
|
329
|
-
|
|
330
|
-
let
|
|
331
|
-
if (
|
|
332
|
-
const a = String(
|
|
333
|
-
let
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}),
|
|
329
|
+
Ye ? n = te : n = gt(e);
|
|
330
|
+
let l = [], s = "";
|
|
331
|
+
if (T || _) {
|
|
332
|
+
const a = String(i.value).split(" ");
|
|
333
|
+
let h = 25;
|
|
334
|
+
x && B === "Mobile" || C && !x ? h = (m == null ? void 0 : m.mobileMaxTickLength) ?? 25 : x && B === "Tablet" || X && !x ? h = (m == null ? void 0 : m.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !x && (h = 15), a.forEach((f) => {
|
|
335
|
+
s.length + String(f).length <= h ? s += (s ? " " : "") + f : (l.push(s), s = f);
|
|
336
|
+
}), s && l.push(s);
|
|
337
337
|
} else
|
|
338
|
-
|
|
339
|
-
let
|
|
340
|
-
return
|
|
341
|
-
|
|
338
|
+
l = [i.value];
|
|
339
|
+
let r = 12;
|
|
340
|
+
return C ? r = (m == null ? void 0 : m.mobileYAxisLineHeight) ?? 12 : X && (r = (m == null ? void 0 : m.tabletYAxisLineHeight) ?? 12), E > 0 && E < 180 ? /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
|
|
341
|
+
A && /* @__PURE__ */ c(
|
|
342
342
|
"line",
|
|
343
343
|
{
|
|
344
344
|
stroke: n,
|
|
@@ -347,25 +347,25 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
347
347
|
y2: -12
|
|
348
348
|
}
|
|
349
349
|
),
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ee})`, children: l.map((a, h) => /* @__PURE__ */ c(
|
|
351
351
|
"text",
|
|
352
352
|
{
|
|
353
|
-
transform: `rotate(${
|
|
353
|
+
transform: `rotate(${E})`,
|
|
354
354
|
textAnchor: "start",
|
|
355
|
-
y: typeof e.value == "number" ? 0 :
|
|
355
|
+
y: typeof e.value == "number" ? 0 : h * r,
|
|
356
356
|
dominantBaseline: "middle",
|
|
357
357
|
style: {
|
|
358
358
|
...t.axis.ticks.text,
|
|
359
|
-
fill:
|
|
359
|
+
fill: w === "null" ? "black" : w,
|
|
360
360
|
fontSize: "12px",
|
|
361
|
-
fontFamily: "
|
|
361
|
+
fontFamily: "sans-serif"
|
|
362
362
|
},
|
|
363
363
|
children: a
|
|
364
364
|
},
|
|
365
365
|
a
|
|
366
366
|
)) })
|
|
367
|
-
] }) :
|
|
368
|
-
|
|
367
|
+
] }) : E > 180 && E < 360 ? /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
|
|
368
|
+
A && /* @__PURE__ */ c(
|
|
369
369
|
"line",
|
|
370
370
|
{
|
|
371
371
|
stroke: n,
|
|
@@ -374,25 +374,25 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
374
374
|
y2: -12
|
|
375
375
|
}
|
|
376
376
|
),
|
|
377
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ee})`, children: l.map((a, h) => /* @__PURE__ */ c(
|
|
378
378
|
"text",
|
|
379
379
|
{
|
|
380
|
-
transform: `rotate(${
|
|
380
|
+
transform: `rotate(${E})`,
|
|
381
381
|
textAnchor: "end",
|
|
382
|
-
y: typeof e.value == "number" ? 0 :
|
|
382
|
+
y: typeof e.value == "number" ? 0 : h * r,
|
|
383
383
|
dominantBaseline: "middle",
|
|
384
384
|
style: {
|
|
385
385
|
...t.axis.ticks.text,
|
|
386
|
-
fill:
|
|
386
|
+
fill: w === "null" ? "black" : w,
|
|
387
387
|
fontSize: "12px",
|
|
388
|
-
fontFamily: "
|
|
388
|
+
fontFamily: "sans-serif"
|
|
389
389
|
},
|
|
390
390
|
children: a
|
|
391
391
|
},
|
|
392
|
-
|
|
392
|
+
h
|
|
393
393
|
)) })
|
|
394
394
|
] }) : /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
|
|
395
|
-
|
|
395
|
+
A && /* @__PURE__ */ c(
|
|
396
396
|
"line",
|
|
397
397
|
{
|
|
398
398
|
stroke: n,
|
|
@@ -401,30 +401,30 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
401
401
|
y2: -12
|
|
402
402
|
}
|
|
403
403
|
),
|
|
404
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ee})`, children: l.map((a, h) => /* @__PURE__ */ c(
|
|
405
405
|
"text",
|
|
406
406
|
{
|
|
407
|
-
transform: `rotate(${
|
|
407
|
+
transform: `rotate(${E})`,
|
|
408
408
|
textAnchor: "middle",
|
|
409
|
-
y: typeof e.value == "number" ? 0 :
|
|
409
|
+
y: typeof e.value == "number" ? 0 : h * r,
|
|
410
410
|
dominantBaseline: "middle",
|
|
411
411
|
style: {
|
|
412
412
|
...t.axis.ticks.text,
|
|
413
|
-
fill:
|
|
413
|
+
fill: w === "null" ? "black" : w,
|
|
414
414
|
fontSize: "12px",
|
|
415
|
-
fontFamily: "
|
|
415
|
+
fontFamily: "sans-serif"
|
|
416
416
|
},
|
|
417
417
|
children: a
|
|
418
418
|
},
|
|
419
|
-
|
|
419
|
+
h
|
|
420
420
|
)) })
|
|
421
421
|
] });
|
|
422
|
-
},
|
|
423
|
-
if (!e.value || (
|
|
422
|
+
}, It = (e) => {
|
|
423
|
+
if (!e.value || (T || _) && ye.includes(String(e.value)))
|
|
424
424
|
return "";
|
|
425
425
|
let t = e.value;
|
|
426
|
-
if (
|
|
427
|
-
const a =
|
|
426
|
+
if (o === "vertical") {
|
|
427
|
+
const a = M || b;
|
|
428
428
|
t = g.formatNumber(
|
|
429
429
|
a.style === "percent" ? t / 100 : t,
|
|
430
430
|
{
|
|
@@ -432,234 +432,242 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
let
|
|
436
|
-
|
|
437
|
-
const n = typeof t == "string" ? t.split(" ") : [t],
|
|
438
|
-
let
|
|
435
|
+
let i = 25;
|
|
436
|
+
x && B === "Mobile" || C && !x ? i = (m == null ? void 0 : m.mobileMaxTickLength) ?? 25 : x && B === "Tablet" || X && !x ? i = (m == null ? void 0 : m.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !x && (i = 15);
|
|
437
|
+
const n = typeof t == "string" ? t.split(" ") : [t], l = [];
|
|
438
|
+
let s = "";
|
|
439
439
|
n.forEach((a) => {
|
|
440
|
-
|
|
441
|
-
}),
|
|
442
|
-
let
|
|
443
|
-
return
|
|
444
|
-
/* @__PURE__ */
|
|
445
|
-
|
|
440
|
+
s.length + String(a).length <= i ? s += (s ? " " : "") + a : (l.push(s), s = a);
|
|
441
|
+
}), s && l.push(s);
|
|
442
|
+
let r = 12;
|
|
443
|
+
return x && B === "Mobile" || C && !x ? r = (m == null ? void 0 : m.mobileYAxisLineHeight) ?? 12 : (x && B === "Tablet" || X && !x) && (r = (m == null ? void 0 : m.tabletYAxisLineHeight) ?? 12), /* @__PURE__ */ p("g", { transform: `translate(${e.x},${e.y})`, children: [
|
|
444
|
+
/* @__PURE__ */ c("line", { x1: -5, x2: 0, y1: 0, y2: 0, stroke: "#000", strokeWidth: 1 }),
|
|
445
|
+
l.map((a, h) => /* @__PURE__ */ c(
|
|
446
446
|
"text",
|
|
447
447
|
{
|
|
448
448
|
x: -10,
|
|
449
|
-
y: typeof t == "number" ? 0 :
|
|
449
|
+
y: typeof t == "number" ? 0 : h * r,
|
|
450
450
|
textAnchor: "end",
|
|
451
451
|
dominantBaseline: "middle",
|
|
452
452
|
style: {
|
|
453
|
-
fill:
|
|
453
|
+
fill: w === "null" ? "black" : w,
|
|
454
454
|
fontSize: "12px",
|
|
455
|
-
fontFamily: "
|
|
455
|
+
fontFamily: "sans-serif"
|
|
456
456
|
},
|
|
457
457
|
children: a
|
|
458
458
|
},
|
|
459
459
|
a
|
|
460
460
|
))
|
|
461
461
|
] });
|
|
462
|
-
},
|
|
463
|
-
const t =
|
|
462
|
+
}, Lt = (e) => {
|
|
463
|
+
const t = L.slice();
|
|
464
464
|
if (t.indexOf(e) > -1) {
|
|
465
|
-
const
|
|
466
|
-
t.splice(
|
|
465
|
+
const i = t.indexOf(e);
|
|
466
|
+
t.splice(i, 1);
|
|
467
467
|
} else
|
|
468
468
|
t.push(e);
|
|
469
|
-
|
|
470
|
-
},
|
|
471
|
-
const t = Object.assign({},
|
|
472
|
-
t[e] = !t[e],
|
|
473
|
-
},
|
|
474
|
-
const { width:
|
|
475
|
-
if (
|
|
469
|
+
ct(t);
|
|
470
|
+
}, kt = (e) => {
|
|
471
|
+
const t = Object.assign({}, N);
|
|
472
|
+
t[e] = !t[e], dt(t);
|
|
473
|
+
}, Dt = ({ bars: e }) => /* @__PURE__ */ c("g", { children: e.map((t) => {
|
|
474
|
+
const { width: i, height: n, y: l, x: s, data: r } = t;
|
|
475
|
+
if (o === "horizontal" && n <= me || o === "vertical" && i <= he)
|
|
476
476
|
return;
|
|
477
|
-
const a =
|
|
478
|
-
b.style === "percent" ?
|
|
477
|
+
const a = r.value ? g.formatNumber(
|
|
478
|
+
b.style === "percent" ? r.value / 100 : r.value,
|
|
479
479
|
b
|
|
480
|
-
) : "",
|
|
481
|
-
let
|
|
482
|
-
if (
|
|
483
|
-
return
|
|
480
|
+
) : "", h = a.length;
|
|
481
|
+
let f, V;
|
|
482
|
+
if (o === "vertical" && i >= he || o === "horizontal" && n >= me)
|
|
483
|
+
return o === "vertical" ? (f = l - 6, V = s + i / 2 - h * 3.5) : (f = l + n / 2 + 4, V = s + i + 5), /* @__PURE__ */ c(
|
|
484
484
|
"text",
|
|
485
485
|
{
|
|
486
|
-
y:
|
|
487
|
-
x:
|
|
488
|
-
style: { fill:
|
|
486
|
+
y: f,
|
|
487
|
+
x: V,
|
|
488
|
+
style: { fill: ue() },
|
|
489
489
|
children: `${a}`
|
|
490
490
|
}
|
|
491
491
|
);
|
|
492
|
-
}) }),
|
|
493
|
-
const t =
|
|
494
|
-
return /* @__PURE__ */
|
|
495
|
-
(n) =>
|
|
492
|
+
}) }), wt = (e) => {
|
|
493
|
+
const t = u.data.filter((n) => L.indexOf(n[u.indexBy]) == -1).map((n) => n[u.indexBy]), { bars: i } = e;
|
|
494
|
+
return /* @__PURE__ */ c("g", { children: t.filter(
|
|
495
|
+
(n) => i.filter((l) => l.data.indexValue == n).length > 0
|
|
496
496
|
).map((n) => {
|
|
497
|
-
var
|
|
498
|
-
const
|
|
499
|
-
let
|
|
500
|
-
if (
|
|
501
|
-
|
|
502
|
-
else if (
|
|
503
|
-
|
|
504
|
-
else if (
|
|
497
|
+
var Z;
|
|
498
|
+
const l = i.filter((d) => d.data.indexValue == n);
|
|
499
|
+
let s = "right", r = 0, a = 0;
|
|
500
|
+
if (o == "horizontal")
|
|
501
|
+
F === "stacked" ? (K ? r = e.innerWidth - 20 : (r = l.map((d) => d.width).reduce((d, y) => d + y), H && (r = e.innerWidth - r)), a = e.yScale(n) + l[0].height / 2) : (K ? r = e.innerWidth : (r = l.map((d) => d.width).reduce((d, y) => d > y ? d : y), H && (r = e.innerWidth - r)), a = e.yScale(n) + l.map((d) => d.height).reduce((d, y) => d + y) / 2), r = r + parseInt(z) + 5;
|
|
502
|
+
else if (s = "middle", F === "stacked")
|
|
503
|
+
r = e.xScale(n) + l[0].width / 2, K ? a = a - parseInt(z) : H ? a = parseInt(z) + l.map((d) => d.height).reduce((d, y) => d + y) + 14 : a = e.innerHeight - parseInt(z) - l.map((d) => d.height).reduce((d, y) => d + y) - 5;
|
|
504
|
+
else if (r = e.xScale(n) + l.map((d) => d.width).reduce((d, y) => d + y) / 2, H && (a = e.innerHeight), K)
|
|
505
505
|
a = a - parseInt(z);
|
|
506
506
|
else {
|
|
507
|
-
if (
|
|
508
|
-
const d = Math.floor(
|
|
509
|
-
a =
|
|
507
|
+
if (l.length % 2 == 1) {
|
|
508
|
+
const d = Math.floor(l.length / 2);
|
|
509
|
+
a = l[d].height;
|
|
510
510
|
} else {
|
|
511
|
-
const d =
|
|
511
|
+
const d = l.length / 2;
|
|
512
512
|
a = Math.max(
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
l[d].height,
|
|
514
|
+
l[d - 1].height
|
|
515
515
|
);
|
|
516
516
|
}
|
|
517
517
|
H ? a = a + 14 + parseInt(z) : a = e.innerHeight - a - parseInt(z) - 5;
|
|
518
518
|
}
|
|
519
|
-
const
|
|
520
|
-
(d) => d[
|
|
519
|
+
const h = u.data.filter(
|
|
520
|
+
(d) => d[u.indexBy] === n
|
|
521
521
|
)[0];
|
|
522
|
-
let
|
|
523
|
-
const
|
|
524
|
-
return
|
|
522
|
+
let f = h.parent_variables ? h.parent_variables[we] : h[we];
|
|
523
|
+
const V = j !== "index" ? (Z = L == null ? void 0 : L.map((d) => h[d])) == null ? void 0 : Z.reduce((d, y) => d + y, 0) : 0;
|
|
524
|
+
return f -= V, /* @__PURE__ */ c("text", { y: a, x: r, style: { fill: ue() }, children: /* @__PURE__ */ p("tspan", { textAnchor: s, children: [
|
|
525
525
|
ke ? ke + " " : "",
|
|
526
526
|
g.formatNumber(
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
De.style === "percent" ? f / 100 : f,
|
|
528
|
+
De
|
|
529
529
|
)
|
|
530
530
|
] }) });
|
|
531
531
|
}) });
|
|
532
|
-
},
|
|
533
|
-
top:
|
|
534
|
-
right:
|
|
535
|
-
bottom:
|
|
536
|
-
left:
|
|
532
|
+
}, Mt = {
|
|
533
|
+
top: q,
|
|
534
|
+
right: Ae,
|
|
535
|
+
bottom: Q,
|
|
536
|
+
left: Se
|
|
537
537
|
};
|
|
538
|
-
let
|
|
539
|
-
|
|
538
|
+
let oe;
|
|
539
|
+
ve && (oe = be.parse(ve, {
|
|
540
540
|
header: !1,
|
|
541
541
|
dynamicTyping: !0
|
|
542
|
-
}),
|
|
543
|
-
const
|
|
542
|
+
}), Math.max(...oe.data.map((e) => e[1])), Math.min(...oe.data.map((e) => e[1])));
|
|
543
|
+
const Be = () => {
|
|
544
544
|
const e = [];
|
|
545
|
-
if (
|
|
545
|
+
if (de && de.forEach((t) => {
|
|
546
546
|
t.low && e.push(parseFloat(t.low)), t.high && e.push(parseFloat(t.high));
|
|
547
|
-
}),
|
|
548
|
-
const t = O(
|
|
547
|
+
}), u.data) {
|
|
548
|
+
const t = O(u.data, !1), i = O(u.keys, !0);
|
|
549
549
|
t.forEach((n) => {
|
|
550
|
-
|
|
551
|
-
n[
|
|
550
|
+
i.forEach((l) => {
|
|
551
|
+
n[l] && e.push(n[l]);
|
|
552
552
|
});
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
|
-
return
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
)
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
555
|
+
return ne && W && W.forEach((t, i) => {
|
|
556
|
+
if (N[i] !== !1)
|
|
557
|
+
if (t.app === "csv" && t.csvLineLayerData) {
|
|
558
|
+
const n = be.parse(t.csvLineLayerData, {
|
|
559
|
+
header: !1,
|
|
560
|
+
dynamicTyping: !0
|
|
561
|
+
});
|
|
562
|
+
n.data && n.data.filter((l) => l[1] !== null && typeof l[1] == "number").forEach((l) => e.push(l[1]));
|
|
563
|
+
} else t.measure[0] && u.data && u.data.forEach((n) => {
|
|
564
|
+
var s;
|
|
565
|
+
const l = (s = n.variables) == null ? void 0 : s[t.measure[0]];
|
|
566
|
+
l !== null && typeof l == "number" && e.push(l);
|
|
567
|
+
});
|
|
568
|
+
}), e;
|
|
569
|
+
}, Ot = () => {
|
|
570
|
+
const e = Be(), t = e.length > 0 ? Math.max(...e) : 0;
|
|
571
|
+
if (re === "fixed" && se !== null && se !== "")
|
|
572
|
+
return Number(se);
|
|
573
|
+
if (F === "stacked" && re !== "fixed") {
|
|
574
|
+
const i = O(u.data, !1), n = O(u.keys, !0);
|
|
575
|
+
let l = n.length > 0 ? n : u.keys;
|
|
576
|
+
const s = Math.max(
|
|
577
|
+
...i.map((r) => l.map((a) => r[a] ? r[a] : 0)).map(
|
|
578
|
+
(r) => r.length > 0 ? r.reduce((a, h) => a + h, 0) : 0
|
|
579
|
+
)
|
|
580
|
+
);
|
|
581
|
+
return Math.max(s, t) * 1.1;
|
|
569
582
|
}
|
|
570
|
-
return
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
if (L[t] == !0 || L[t] == null) {
|
|
579
|
-
const { csvLineLayerData: c, lineColor: n, tooltip: r } = e;
|
|
583
|
+
return t * 1.05;
|
|
584
|
+
}, Ft = () => {
|
|
585
|
+
const e = Be(), t = e.length > 0 ? Math.min(...e) : 0;
|
|
586
|
+
return re === "fixed" && le !== null && String(le) !== "" ? Number(le) : t > 0 ? t * 0.9 : t * 1.1;
|
|
587
|
+
}, Et = Number(Ot()), zt = Number(Ft()), Bt = Math.min(0, zt), Vt = Math.max(0, Et), k = ["grid", "axes", "bars"];
|
|
588
|
+
qe && k.push(wt), k.push(yt), k.push(bt), ne && W && W.forEach((e, t) => {
|
|
589
|
+
if (N[t] == !0 || N[t] == null) {
|
|
590
|
+
const { csvLineLayerData: i, lineColor: n, tooltip: l } = e;
|
|
580
591
|
if (e.app == "csv") {
|
|
581
|
-
const
|
|
592
|
+
const s = be.parse(i, {
|
|
582
593
|
header: !1,
|
|
583
594
|
dynamicTyping: !0
|
|
584
595
|
});
|
|
585
|
-
if (
|
|
586
|
-
|
|
587
|
-
const
|
|
588
|
-
|
|
596
|
+
if (s.data && s.data.filter((r) => r[1] !== null).length > 0) {
|
|
597
|
+
s.data = s.data.filter((a) => a[1] !== null);
|
|
598
|
+
const r = Te(
|
|
599
|
+
s,
|
|
589
600
|
n,
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
O(
|
|
593
|
-
|
|
601
|
+
o,
|
|
602
|
+
F,
|
|
603
|
+
O(u.keys, !0),
|
|
604
|
+
l,
|
|
594
605
|
e.title,
|
|
595
606
|
""
|
|
596
607
|
);
|
|
597
|
-
k.push(
|
|
608
|
+
k.push(r);
|
|
598
609
|
}
|
|
599
610
|
} else if (e.measure[0]) {
|
|
600
|
-
const
|
|
601
|
-
u
|
|
602
|
-
|
|
603
|
-
]), a =
|
|
604
|
-
|
|
605
|
-
const
|
|
606
|
-
|
|
611
|
+
const s = {}, r = u.data.map((f) => [
|
|
612
|
+
f[u.indexBy],
|
|
613
|
+
f.variables[e.measure[0]]
|
|
614
|
+
]), a = u.metadata.measures ? u.metadata.measures.filter((f) => f.value == e.measure[0]) : [];
|
|
615
|
+
s.data = r;
|
|
616
|
+
const h = Te(
|
|
617
|
+
s,
|
|
607
618
|
n,
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
O(
|
|
611
|
-
|
|
619
|
+
o,
|
|
620
|
+
F,
|
|
621
|
+
O(u.keys, !0),
|
|
622
|
+
l,
|
|
612
623
|
e.title,
|
|
613
624
|
a.length > 0 ? a[0].label : ""
|
|
614
625
|
);
|
|
615
|
-
k.push(
|
|
626
|
+
k.push(h);
|
|
616
627
|
}
|
|
617
628
|
}
|
|
618
|
-
}), Ie ===
|
|
619
|
-
let
|
|
620
|
-
const
|
|
621
|
-
if (
|
|
622
|
-
|
|
623
|
-
const e = new Map(Object.entries(((
|
|
624
|
-
for (const [t,
|
|
625
|
-
|
|
629
|
+
}), Ie === Pt && k.push(Dt), Ze && k.push(pt), k.push(vt);
|
|
630
|
+
let xe = parseInt(et);
|
|
631
|
+
const Ve = () => /* @__PURE__ */ c(pe, { children: G && Ne && /* @__PURE__ */ c("div", { className: "legend item", children: /* @__PURE__ */ c("label", { className: "legend-title", children: Ne }) }) }), ye = [];
|
|
632
|
+
if (_ || T) {
|
|
633
|
+
xe = Number.parseInt(m.yAxisTickValues);
|
|
634
|
+
const e = new Map(Object.entries((($e = m == null ? void 0 : m.labels) == null ? void 0 : $e.xAxis) ?? {}));
|
|
635
|
+
for (const [t, i] of e)
|
|
636
|
+
i || ye.push(t);
|
|
626
637
|
}
|
|
627
|
-
let
|
|
628
|
-
return /* @__PURE__ */
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
|
|
638
|
+
let $t = parseInt(je + "") - ut;
|
|
639
|
+
return /* @__PURE__ */ c("div", { style: { height: $t + "px" }, className: "bar-chart", children: (u == null ? void 0 : u.data) && u.data.length > 0 && /* @__PURE__ */ p(pe, { children: [
|
|
640
|
+
/* @__PURE__ */ c(
|
|
641
|
+
Tt,
|
|
631
642
|
{
|
|
632
|
-
colorBy:
|
|
643
|
+
colorBy: $.colorBy,
|
|
633
644
|
animate: !0,
|
|
634
|
-
enableLabel: Ie ==
|
|
635
|
-
...
|
|
636
|
-
maxValue:
|
|
637
|
-
minValue:
|
|
638
|
-
keys: O(
|
|
639
|
-
data: O(
|
|
640
|
-
groupMode:
|
|
641
|
-
margin:
|
|
642
|
-
innerPadding:
|
|
643
|
-
valueScale: {
|
|
644
|
-
|
|
645
|
-
clamp: A === "fixed" && rt
|
|
646
|
-
},
|
|
647
|
-
colors: (e) => e && e.data[Q] ? e.data[Q] : v.getColor(e.id, e.data),
|
|
645
|
+
enableLabel: Ie == jt,
|
|
646
|
+
...u,
|
|
647
|
+
maxValue: Vt,
|
|
648
|
+
minValue: Bt,
|
|
649
|
+
keys: O(u.keys, !0),
|
|
650
|
+
data: O(u.data, !1),
|
|
651
|
+
groupMode: F || "grouped",
|
|
652
|
+
margin: Mt,
|
|
653
|
+
innerPadding: Xe,
|
|
654
|
+
valueScale: { type: Re, clamp: !0 },
|
|
655
|
+
colors: (e) => e && e.data[U] ? e.data[U] : v.getColor(e.id, e.data),
|
|
648
656
|
borderColor: "#000",
|
|
649
657
|
reverse: H,
|
|
650
658
|
axisTop: null,
|
|
651
|
-
axisRight:
|
|
652
|
-
tickSize:
|
|
659
|
+
axisRight: Je ? {
|
|
660
|
+
tickSize: o == "horizontal" && A || o === "vertical" ? 5 : 0,
|
|
653
661
|
tickPadding: 5,
|
|
654
662
|
tickRotation: 0,
|
|
655
|
-
tickValues:
|
|
656
|
-
legend:
|
|
663
|
+
tickValues: xe,
|
|
664
|
+
legend: R.right,
|
|
657
665
|
legendPosition: "middle",
|
|
658
|
-
legendOffset: parseInt(
|
|
666
|
+
legendOffset: parseInt(Ue),
|
|
659
667
|
format: (e) => {
|
|
660
668
|
if (!e) return "";
|
|
661
|
-
if (
|
|
662
|
-
const t =
|
|
669
|
+
if (o == "vertical") {
|
|
670
|
+
const t = M || b;
|
|
663
671
|
return g.formatNumber(
|
|
664
672
|
t.style === "percent" ? e / 100 : e,
|
|
665
673
|
{
|
|
@@ -670,17 +678,17 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
670
678
|
return e;
|
|
671
679
|
}
|
|
672
680
|
} : null,
|
|
673
|
-
axisBottom: (
|
|
674
|
-
legend:
|
|
681
|
+
axisBottom: (T || _) && (m == null ? void 0 : m.xAxisDisabled) === !0 ? null : o === "horizontal" ? {
|
|
682
|
+
legend: R.bottom,
|
|
675
683
|
legendPosition: "middle",
|
|
676
684
|
legendOffset: parseInt(Le),
|
|
677
685
|
tickPadding: 5,
|
|
678
686
|
tickRotation: 0,
|
|
679
|
-
tickValues: parseInt(
|
|
687
|
+
tickValues: parseInt(Ge),
|
|
680
688
|
format: (e) => {
|
|
681
689
|
if (!e) return "";
|
|
682
|
-
if (
|
|
683
|
-
const t =
|
|
690
|
+
if (o == "horizontal") {
|
|
691
|
+
const t = M || b;
|
|
684
692
|
return g.formatNumber(
|
|
685
693
|
t.style === "percent" ? e / 100 : e,
|
|
686
694
|
{
|
|
@@ -691,24 +699,24 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
691
699
|
return e;
|
|
692
700
|
}
|
|
693
701
|
} : {
|
|
694
|
-
legend:
|
|
702
|
+
legend: R.bottom,
|
|
695
703
|
legendPosition: "middle",
|
|
696
704
|
legendOffset: parseInt(Le),
|
|
697
|
-
renderTick:
|
|
705
|
+
renderTick: Nt
|
|
698
706
|
},
|
|
699
707
|
axisLeft: {
|
|
700
|
-
tickSize:
|
|
708
|
+
tickSize: o === "horizontal" && A || o === "vertical" ? 5 : 0,
|
|
701
709
|
tickPadding: 5,
|
|
702
710
|
tickRotation: 0,
|
|
703
|
-
tickValues:
|
|
704
|
-
legend:
|
|
711
|
+
tickValues: xe,
|
|
712
|
+
legend: R.left,
|
|
705
713
|
legendPosition: "middle",
|
|
706
|
-
legendOffset: Number.parseInt(
|
|
707
|
-
...
|
|
714
|
+
legendOffset: Number.parseInt(Pe),
|
|
715
|
+
...T || _ ? { renderTick: It } : {
|
|
708
716
|
format: (e) => {
|
|
709
717
|
if (!e) return "";
|
|
710
|
-
if (
|
|
711
|
-
const t =
|
|
718
|
+
if (o === "vertical") {
|
|
719
|
+
const t = M || b;
|
|
712
720
|
return g.formatNumber(
|
|
713
721
|
t.style === "percent" ? e / 100 : e,
|
|
714
722
|
{
|
|
@@ -720,13 +728,13 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
720
728
|
}
|
|
721
729
|
}
|
|
722
730
|
},
|
|
723
|
-
enableGridY:
|
|
724
|
-
enableGridX:
|
|
725
|
-
layout:
|
|
726
|
-
labelSkipWidth:
|
|
727
|
-
labelSkipHeight:
|
|
728
|
-
padding:
|
|
729
|
-
labelTextColor:
|
|
731
|
+
enableGridY: nt,
|
|
732
|
+
enableGridX: rt,
|
|
733
|
+
layout: o,
|
|
734
|
+
labelSkipWidth: he,
|
|
735
|
+
labelSkipHeight: me,
|
|
736
|
+
padding: Ke,
|
|
737
|
+
labelTextColor: ue(),
|
|
730
738
|
label: (e) => g.formatNumber(
|
|
731
739
|
b.style === "percent" && e.value ? e.value / 100 : e.value,
|
|
732
740
|
b
|
|
@@ -738,14 +746,14 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
738
746
|
},
|
|
739
747
|
motionStiffness: 130,
|
|
740
748
|
motionDamping: 15,
|
|
741
|
-
tooltip: (e) =>
|
|
742
|
-
|
|
749
|
+
tooltip: (e) => Ce && ae && ae.trim().length > 0 ? /* @__PURE__ */ c(
|
|
750
|
+
Wt,
|
|
743
751
|
{
|
|
744
752
|
intl: g,
|
|
745
753
|
format: b,
|
|
746
754
|
d: e,
|
|
747
755
|
tooltip: ae,
|
|
748
|
-
tooltipEnableMarkdown:
|
|
756
|
+
tooltipEnableMarkdown: Qe
|
|
749
757
|
}
|
|
750
758
|
) : null,
|
|
751
759
|
theme: {
|
|
@@ -765,40 +773,40 @@ const Kt = "middle", Xt = "top", q = "#66676d", je = "#dddddd", Zt = "none", Q =
|
|
|
765
773
|
}
|
|
766
774
|
}
|
|
767
775
|
),
|
|
768
|
-
(
|
|
776
|
+
(D === "top" || D === "bottom") && /* @__PURE__ */ c(
|
|
769
777
|
"div",
|
|
770
778
|
{
|
|
771
|
-
className: `legends container has-standard-12-font-size ${
|
|
779
|
+
className: `legends container has-standard-12-font-size ${D}`,
|
|
772
780
|
children: /* @__PURE__ */ p("div", { className: "legend-sections", children: [
|
|
773
|
-
/* @__PURE__ */
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
|
|
781
|
+
/* @__PURE__ */ c("div", { className: "title-section", children: Ve() }),
|
|
782
|
+
/* @__PURE__ */ c(
|
|
783
|
+
At,
|
|
776
784
|
{
|
|
777
785
|
onWrapChange: (e) => {
|
|
778
|
-
|
|
786
|
+
D === "top" ? (mt(q + e / 2 * 40), Ee(e)) : (ft(Q + e / 2 * 25), Ee(e));
|
|
779
787
|
},
|
|
780
788
|
className: "legends container has-standard-12-font-size items-section",
|
|
781
|
-
useColumns:
|
|
782
|
-
numberOfLegendColumns:
|
|
783
|
-
children:
|
|
789
|
+
useColumns: lt,
|
|
790
|
+
numberOfLegendColumns: st,
|
|
791
|
+
children: ze()
|
|
784
792
|
}
|
|
785
793
|
)
|
|
786
794
|
] })
|
|
787
795
|
}
|
|
788
796
|
),
|
|
789
|
-
(
|
|
797
|
+
(D === "right" || D === "left") && /* @__PURE__ */ p(
|
|
790
798
|
"div",
|
|
791
799
|
{
|
|
792
|
-
className: `legends container has-standard-12-font-size ${
|
|
793
|
-
style:
|
|
800
|
+
className: `legends container has-standard-12-font-size ${D}`,
|
|
801
|
+
style: D === "right" ? ot : xt,
|
|
794
802
|
children: [
|
|
795
|
-
|
|
796
|
-
|
|
803
|
+
Ve(),
|
|
804
|
+
ze()
|
|
797
805
|
]
|
|
798
806
|
}
|
|
799
807
|
)
|
|
800
808
|
] }) });
|
|
801
|
-
},
|
|
809
|
+
}, sa = _t(Yt);
|
|
802
810
|
export {
|
|
803
|
-
|
|
811
|
+
sa as default
|
|
804
812
|
};
|