@capillarytech/blaze-ui 5.23.3-beta.9 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapActionBar/styles.module.scss.js +1 -1
- package/CapAdvancedIcon/styles.module.scss.js +1 -1
- package/CapAlert/styles.module.scss.js +1 -1
- package/CapAppNotEnabled/styles.module.scss.js +1 -1
- package/CapAskAira/AudienceFilterBot/styles.module.scss.js +1 -1
- package/CapAskAira/CapAiMediaGeneration/styles.module.scss.js +1 -1
- package/CapAskAira/ContentGenerationBot/styles.module.scss.js +1 -1
- package/CapAskAira/DocumentationBot/styles.module.scss.js +1 -1
- package/CapAskAira/DocumentationChatBot/styles.module.scss.js +1 -1
- package/CapAskAira/RuleGenerationBot/styles.module.scss.js +1 -1
- package/CapAskAira/RuleSummarizationBot/styles.module.scss.js +1 -1
- package/CapAskAira/styles.module.scss.js +1 -1
- package/CapBanner/styles.module.scss.js +1 -1
- package/CapBlock/styles.module.scss.js +1 -1
- package/CapButton/styles.module.scss.js +1 -1
- package/CapCSVFileUploader/styles.module.scss.js +1 -1
- package/CapCalendarDatePicker/styles.module.scss.js +1 -1
- package/CapCard/styles.module.scss.js +1 -1
- package/CapCardBox/styles.module.scss.js +1 -1
- package/CapCarousel/styles.module.scss.js +1 -1
- package/CapCheckbox/styles.module.scss.js +1 -1
- package/CapColorPicker/styles.module.scss.js +1 -1
- package/CapColoredTag/styles.module.scss.js +1 -1
- package/CapColumn/styles.module.scss.js +1 -1
- package/CapConditionPreview/styles.module.scss.js +1 -1
- package/CapCustomCard/styles.module.scss.js +1 -1
- package/CapCustomCarousel/styles.module.scss.js +1 -1
- package/CapCustomCheckboxList/styles.module.scss.js +1 -1
- package/CapCustomList/styles.module.scss.js +1 -1
- package/CapCustomSelect/styles.module.scss.js +1 -1
- package/CapDatePicker/styles.module.scss.js +1 -1
- package/CapDateRangePicker/styles.module.scss.js +1 -1
- package/CapDateTimePicker/styles.module.scss.js +1 -1
- package/CapDateTimeRangePicker/styles.module.scss.js +1 -1
- package/CapDnDGraph/reportingBlock.js +1 -1
- package/CapDropdown/styles.module.scss.js +1 -1
- package/CapEmptyDivWithBorder/styles.module.scss.js +1 -1
- package/CapError/styles.module.scss.js +1 -1
- package/CapErrorBoundary/styles.module.scss.js +1 -1
- package/CapErrorStateIllustration/styles.module.scss.js +1 -1
- package/CapExpressionEditor/styles.module.scss.js +1 -1
- package/CapForm/styles.module.scss.js +1 -1
- package/CapFormItem/styles.module.scss.js +1 -1
- package/CapGraph/styles.module.scss.js +1 -1
- package/CapHamburgerMenu/styles.module.scss.js +1 -1
- package/CapHeader/styles.module.scss.js +1 -1
- package/CapHeading/{styles.module.css → styles.css} +1 -0
- package/CapHeading/styles.module.scss.js +1 -1
- package/CapHeading/styles.scss +1 -0
- package/CapIcon/styles.module.scss.js +1 -1
- package/CapIllustration/styles.module.scss.js +1 -1
- package/CapImage/styles.module.scss.js +1 -1
- package/CapImportMFEComponent/styles.module.scss.js +1 -1
- package/CapInfoNote/styles.module.scss.js +1 -1
- package/CapInput/styles.module.scss.js +1 -1
- package/CapLabel/styles.module.scss.js +1 -1
- package/CapLanguageProvider/antdLocales.d.ts +15 -0
- package/CapLanguageProvider/antdLocales.d.ts.map +1 -0
- package/CapLanguageProvider/antdLocales.js +53 -0
- package/CapLanguageProvider/index.d.ts +0 -1
- package/CapLanguageProvider/index.d.ts.map +1 -1
- package/CapLanguageProvider/index.js +4 -26
- package/CapLevelGraphRenderer/styles.module.scss.js +1 -1
- package/CapLink/styles.module.scss.js +1 -1
- package/CapList/styles.module.scss.js +1 -1
- package/CapListLayout/styles.module.scss.js +1 -1
- package/CapLogin/styles.module.scss.js +1 -1
- package/CapMenu/styles.module.scss.js +1 -1
- package/CapModal/styles.module.scss.js +1 -1
- package/CapMultiSelect/styles.module.scss.js +1 -1
- package/CapMultiSelectDatePicker/styles.module.scss.js +1 -1
- package/CapNavigation/styles.module.scss.js +1 -1
- package/CapNotification/styles.module.scss.js +1 -1
- package/CapNotificationDropdown/styles.module.scss.js +1 -1
- package/CapPopover/styles.module.scss.js +1 -1
- package/CapProgress/styles.module.scss.js +1 -1
- package/CapRadio/styles.module.scss.js +1 -1
- package/CapRadioButton/styles.module.scss.js +1 -1
- package/CapRadioCard/styles.module.scss.js +1 -1
- package/CapRadioGroup/styles.module.scss.js +1 -1
- package/CapReorderComponent/styles.module.scss.js +1 -1
- package/CapRoadMap/styles.module.scss.js +1 -1
- package/CapRow/styles.module.scss.js +1 -1
- package/CapSKUUploader/styles.module.scss.js +1 -1
- package/CapSecondaryTopBar/styles.module.scss.js +1 -1
- package/CapSelect/styles.module.scss.js +1 -1
- package/CapSelectFilter/{styles.module.css → styles.css} +3 -3
- package/CapSelectFilter/styles.module.scss.js +1 -1
- package/CapSelectFilter/styles.scss +3 -3
- package/CapShape/styles.module.scss.js +1 -1
- package/CapSideBar/_menuSearch.module.scss.js +1 -1
- package/CapSideBar/styles.module.scss.js +1 -1
- package/CapSlideBox/styles.module.scss.js +1 -1
- package/CapSlider/styles.module.scss.js +1 -1
- package/CapSnackBar/styles.module.scss.js +1 -1
- package/CapSomethingWentWrong/styles.module.scss.js +1 -1
- package/CapSplit/styles.module.scss.js +1 -1
- package/CapStatisticCard/styles.module.scss.js +1 -1
- package/CapStatus/styles.module.scss.js +1 -1
- package/CapSteps/styles.module.scss.js +1 -1
- package/CapStepsAccordian/styles.module.scss.js +1 -1
- package/CapSupportVideosWrapper/index.js +1 -1
- package/CapSupportVideosWrapper/styles.module.scss.js +1 -1
- package/CapSwitch/styles.module.scss.js +1 -1
- package/CapTab/styles.module.scss.js +1 -1
- package/CapTabV3/styles.module.scss.js +1 -1
- package/CapTable/styles.module.scss.js +1 -1
- package/CapTag/styles.module.scss.js +1 -1
- package/CapTagDropdown/styles.module.scss.js +1 -1
- package/CapTimePicker/styles.module.scss.js +1 -1
- package/CapTooltip/{styles.module.css → styles.css} +1 -1
- package/CapTooltip/styles.module.scss.js +1 -1
- package/CapTooltip/styles.scss +1 -1
- package/CapTooltipWithInfo/styles.module.scss.js +1 -1
- package/CapTopBar/CapOrgSelect.module.scss.js +1 -1
- package/CapTopBar/styles.module.scss.js +1 -1
- package/CapTree/styles.module.scss.js +1 -1
- package/CapTreeSelect/styles.module.scss.js +1 -1
- package/CapUnifiedSelect/styles.module.scss.js +1 -1
- package/CapUploader/styles.module.scss.js +1 -1
- package/CapUserProfile/styles.module.scss.js +1 -1
- package/assets/HOCs/ComponentWithLabelHOC/styles.module.scss.js +1 -1
- package/en.json +296 -1
- package/package.json +1 -2
- /package/CapActionBar/{styles.module.css → styles.css} +0 -0
- /package/CapAdvancedIcon/{styles.module.css → styles.css} +0 -0
- /package/CapAlert/{styles.module.css → styles.css} +0 -0
- /package/CapAppNotEnabled/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/AudienceFilterBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/CapAiMediaGeneration/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/ContentGenerationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/DocumentationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/DocumentationChatBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/RuleGenerationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/RuleSummarizationBot/{styles.module.css → styles.css} +0 -0
- /package/CapAskAira/{styles.module.css → styles.css} +0 -0
- /package/CapBanner/{styles.module.css → styles.css} +0 -0
- /package/CapBlock/{styles.module.css → styles.css} +0 -0
- /package/CapButton/{styles.module.css → styles.css} +0 -0
- /package/CapCSVFileUploader/{styles.module.css → styles.css} +0 -0
- /package/CapCalendarDatePicker/{styles.module.css → styles.css} +0 -0
- /package/CapCard/{styles.module.css → styles.css} +0 -0
- /package/CapCardBox/{styles.module.css → styles.css} +0 -0
- /package/CapCarousel/{styles.module.css → styles.css} +0 -0
- /package/CapCheckbox/{styles.module.css → styles.css} +0 -0
- /package/CapColorPicker/{styles.module.css → styles.css} +0 -0
- /package/CapColoredTag/{styles.module.css → styles.css} +0 -0
- /package/CapColumn/{styles.module.css → styles.css} +0 -0
- /package/CapConditionPreview/{styles.module.css → styles.css} +0 -0
- /package/CapCustomCard/{styles.module.css → styles.css} +0 -0
- /package/CapCustomCarousel/{styles.module.css → styles.css} +0 -0
- /package/CapCustomCheckboxList/{styles.module.css → styles.css} +0 -0
- /package/CapCustomList/{styles.module.css → styles.css} +0 -0
- /package/CapCustomSelect/{styles.module.css → styles.css} +0 -0
- /package/CapDatePicker/{styles.module.css → styles.css} +0 -0
- /package/CapDateRangePicker/{styles.module.css → styles.css} +0 -0
- /package/CapDateTimePicker/{styles.module.css → styles.css} +0 -0
- /package/CapDateTimeRangePicker/{styles.module.css → styles.css} +0 -0
- /package/CapDropdown/{styles.module.css → styles.css} +0 -0
- /package/CapEmptyDivWithBorder/{styles.module.css → styles.css} +0 -0
- /package/CapError/{styles.module.css → styles.css} +0 -0
- /package/CapErrorBoundary/{styles.module.css → styles.css} +0 -0
- /package/CapErrorStateIllustration/{styles.module.css → styles.css} +0 -0
- /package/CapExpressionEditor/{styles.module.css → styles.css} +0 -0
- /package/CapForm/{styles.module.css → styles.css} +0 -0
- /package/CapFormItem/{styles.module.css → styles.css} +0 -0
- /package/CapGraph/{styles.module.css → styles.css} +0 -0
- /package/CapHamburgerMenu/{styles.module.css → styles.css} +0 -0
- /package/CapHeader/{styles.module.css → styles.css} +0 -0
- /package/CapIcon/{styles.module.css → styles.css} +0 -0
- /package/CapIllustration/{styles.module.css → styles.css} +0 -0
- /package/CapImage/{styles.module.css → styles.css} +0 -0
- /package/CapImportMFEComponent/{styles.module.css → styles.css} +0 -0
- /package/CapInfoNote/{styles.module.css → styles.css} +0 -0
- /package/CapInput/{styles.module.css → styles.css} +0 -0
- /package/CapLabel/{styles.module.css → styles.css} +0 -0
- /package/CapLevelGraphRenderer/{styles.module.css → styles.css} +0 -0
- /package/CapLink/{styles.module.css → styles.css} +0 -0
- /package/CapList/{styles.module.css → styles.css} +0 -0
- /package/CapListLayout/{styles.module.css → styles.css} +0 -0
- /package/CapLogin/{styles.module.css → styles.css} +0 -0
- /package/CapModal/{styles.module.css → styles.css} +0 -0
- /package/CapMultiSelect/{styles.module.css → styles.css} +0 -0
- /package/CapMultiSelectDatePicker/{styles.module.css → styles.css} +0 -0
- /package/CapNavigation/{styles.module.css → styles.css} +0 -0
- /package/CapNotification/{styles.module.css → styles.css} +0 -0
- /package/CapNotificationDropdown/{styles.module.css → styles.css} +0 -0
- /package/CapPopover/{styles.module.css → styles.css} +0 -0
- /package/CapProgress/{styles.module.css → styles.css} +0 -0
- /package/CapRadio/{styles.module.css → styles.css} +0 -0
- /package/CapRadioButton/{styles.module.css → styles.css} +0 -0
- /package/CapRadioCard/{styles.module.css → styles.css} +0 -0
- /package/CapRadioGroup/{styles.module.css → styles.css} +0 -0
- /package/CapReorderComponent/{styles.module.css → styles.css} +0 -0
- /package/CapRoadMap/{styles.module.css → styles.css} +0 -0
- /package/CapRow/{styles.module.css → styles.css} +0 -0
- /package/CapSKUUploader/{styles.module.css → styles.css} +0 -0
- /package/CapSecondaryTopBar/{styles.module.css → styles.css} +0 -0
- /package/CapSelect/{styles.module.css → styles.css} +0 -0
- /package/CapShape/{styles.module.css → styles.css} +0 -0
- /package/CapSideBar/{_menuSearch.module.css → _menuSearch.css} +0 -0
- /package/CapSideBar/{styles.module.css → styles.css} +0 -0
- /package/CapSlideBox/{styles.module.css → styles.css} +0 -0
- /package/CapSlider/{styles.module.css → styles.css} +0 -0
- /package/CapSnackBar/{styles.module.css → styles.css} +0 -0
- /package/CapSomethingWentWrong/{styles.module.css → styles.css} +0 -0
- /package/CapSplit/{styles.module.css → styles.css} +0 -0
- /package/CapStatisticCard/{styles.module.css → styles.css} +0 -0
- /package/CapStatus/{styles.module.css → styles.css} +0 -0
- /package/CapSteps/{styles.module.css → styles.css} +0 -0
- /package/CapStepsAccordian/{styles.module.css → styles.css} +0 -0
- /package/CapSupportVideosWrapper/{styles.module.css → styles.css} +0 -0
- /package/CapSwitch/{styles.module.css → styles.css} +0 -0
- /package/CapTab/{styles.module.css → styles.css} +0 -0
- /package/CapTabV3/{styles.module.css → styles.css} +0 -0
- /package/CapTable/{styles.module.css → styles.css} +0 -0
- /package/CapTag/{styles.module.css → styles.css} +0 -0
- /package/CapTagDropdown/{styles.module.css → styles.css} +0 -0
- /package/CapTimePicker/{styles.module.css → styles.css} +0 -0
- /package/CapTooltipWithInfo/{styles.module.css → styles.css} +0 -0
- /package/CapTopBar/{CapOrgSelect.module.css → CapOrgSelect.css} +0 -0
- /package/CapTopBar/{styles.module.css → styles.css} +0 -0
- /package/CapTree/{styles.module.css → styles.css} +0 -0
- /package/CapTreeSelect/{styles.module.css → styles.css} +0 -0
- /package/CapUnifiedSelect/{styles.module.css → styles.css} +0 -0
- /package/CapUploader/{styles.module.css → styles.css} +0 -0
- /package/CapUserProfile/{styles.module.css → styles.css} +0 -0
- /package/assets/HOCs/ComponentWithLabelHOC/{styles.module.css → styles.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const imageTextBot = "imageTextBot";
|
|
2
2
|
const styles = {
|
|
3
3
|
"cap-media-generation-bot-content": "cap-media-generation-bot-content",
|
|
4
4
|
"cap-media-generation-bot-tab-container": "cap-media-generation-bot-tab-container",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-aira-content-type-message": "cap-aira-content-type-message",
|
|
3
3
|
"cap-aira-content-chat-container": "cap-aira-content-chat-container",
|
|
4
4
|
"cap-aira-content-generate-suggestions": "cap-aira-content-generate-suggestions",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const capConditionPreview__string = "capConditionPreview__string";
|
|
2
2
|
const capConditionPreview__flexWrapDiv = "capConditionPreview__flexWrapDiv";
|
|
3
3
|
const capConditionPreview__skuDownloadLink = "capConditionPreview__skuDownloadLink";
|
|
4
4
|
const capConditionPreview__label = "capConditionPreview__label";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-custom-carousel-heading-label": "cap-custom-carousel-heading-label",
|
|
3
3
|
"cap-custom-carousel-header": "cap-custom-carousel-header",
|
|
4
4
|
"cap-custom-carousel-header-item": "cap-custom-carousel-header-item",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-date-range-picker-v2__timezone-footer": "cap-date-range-picker-v2__timezone-footer",
|
|
3
3
|
"cap-icon": "cap-icon",
|
|
4
4
|
"cap-date-range-picker-v2--calendar-only": "cap-date-range-picker-v2--calendar-only"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-date-time-range-picker--lock-start": "cap-date-time-range-picker--lock-start",
|
|
3
3
|
"ant-picker-input-start": "ant-picker-input-start",
|
|
4
4
|
"cap-date-time-range-picker--lock-end": "cap-date-time-range-picker--lock-end",
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import get from "lodash/get";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import '../CapAdvancedIcon/styles.
|
|
5
|
+
import '../CapAdvancedIcon/styles.css';/* empty css */
|
|
6
6
|
import CapIcon from "../CapIcon/index.js";
|
|
7
7
|
import CapLabelWithStatic from "../CapLabel/index.js";
|
|
8
8
|
import CapRow from "../CapRow/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const slideBoxContentContainer = "slideBoxContentContainer";
|
|
2
2
|
const styles = {
|
|
3
3
|
"cap-error-boundary-illustration-animation": "cap-error-boundary-illustration-animation",
|
|
4
4
|
slideBoxContentContainer,
|
package/CapHeading/styles.scss
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static map of antd locales to avoid dynamic imports
|
|
3
|
+
* This prevents webpack from creating a context module that includes .d.ts files
|
|
4
|
+
*/
|
|
5
|
+
import type { Locale } from 'antd-v5/lib/locale';
|
|
6
|
+
import enUS from 'antd-v5/locale/en_US';
|
|
7
|
+
declare const antdLocaleMap: Record<string, Locale>;
|
|
8
|
+
/**
|
|
9
|
+
* Get antd locale by locale code
|
|
10
|
+
* Falls back to en_US if locale not found
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAntdLocale(localeCode: string): Locale;
|
|
13
|
+
export { enUS as defaultLocale };
|
|
14
|
+
export default antdLocaleMap;
|
|
15
|
+
//# sourceMappingURL=antdLocales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"antdLocales.d.ts","sourceRoot":"","sources":["../../components/CapLanguageProvider/antdLocales.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAqBxC,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsBzC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,CAAC;AACjC,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import arEG from "antd-v5/locale/ar_EG";
|
|
2
|
+
import deDE from "antd-v5/locale/de_DE";
|
|
3
|
+
import enUS from "antd-v5/locale/en_US";
|
|
4
|
+
import { default as default2 } from "antd-v5/locale/en_US";
|
|
5
|
+
import esES from "antd-v5/locale/es_ES";
|
|
6
|
+
import frFR from "antd-v5/locale/fr_FR";
|
|
7
|
+
import heIL from "antd-v5/locale/he_IL";
|
|
8
|
+
import idID from "antd-v5/locale/id_ID";
|
|
9
|
+
import itIT from "antd-v5/locale/it_IT";
|
|
10
|
+
import jaJP from "antd-v5/locale/ja_JP";
|
|
11
|
+
import koKR from "antd-v5/locale/ko_KR";
|
|
12
|
+
import msMS from "antd-v5/locale/ms_MY";
|
|
13
|
+
import nlNL from "antd-v5/locale/nl_NL";
|
|
14
|
+
import plPL from "antd-v5/locale/pl_PL";
|
|
15
|
+
import ptBR from "antd-v5/locale/pt_BR";
|
|
16
|
+
import ptPT from "antd-v5/locale/pt_PT";
|
|
17
|
+
import ruRU from "antd-v5/locale/ru_RU";
|
|
18
|
+
import thTH from "antd-v5/locale/th_TH";
|
|
19
|
+
import trTR from "antd-v5/locale/tr_TR";
|
|
20
|
+
import viVN from "antd-v5/locale/vi_VN";
|
|
21
|
+
import zhCN from "antd-v5/locale/zh_CN";
|
|
22
|
+
import zhTW from "antd-v5/locale/zh_TW";
|
|
23
|
+
const antdLocaleMap = {
|
|
24
|
+
en_US: enUS,
|
|
25
|
+
zh_CN: zhCN,
|
|
26
|
+
zh_TW: zhTW,
|
|
27
|
+
ja_JP: jaJP,
|
|
28
|
+
ko_KR: koKR,
|
|
29
|
+
vi_VN: viVN,
|
|
30
|
+
th_TH: thTH,
|
|
31
|
+
id_ID: idID,
|
|
32
|
+
ms_MY: msMS,
|
|
33
|
+
fr_FR: frFR,
|
|
34
|
+
de_DE: deDE,
|
|
35
|
+
es_ES: esES,
|
|
36
|
+
pt_BR: ptBR,
|
|
37
|
+
pt_PT: ptPT,
|
|
38
|
+
it_IT: itIT,
|
|
39
|
+
ru_RU: ruRU,
|
|
40
|
+
ar_EG: arEG,
|
|
41
|
+
he_IL: heIL,
|
|
42
|
+
tr_TR: trTR,
|
|
43
|
+
nl_NL: nlNL,
|
|
44
|
+
pl_PL: plPL
|
|
45
|
+
};
|
|
46
|
+
function getAntdLocale(localeCode) {
|
|
47
|
+
return antdLocaleMap[localeCode] || enUS;
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
antdLocaleMap as default,
|
|
51
|
+
default2 as defaultLocale,
|
|
52
|
+
getAntdLocale
|
|
53
|
+
};
|
|
@@ -4,7 +4,6 @@ export declare class CapLanguageProvider extends React.PureComponent<CapLanguage
|
|
|
4
4
|
constructor(props: CapLanguageProviderProps);
|
|
5
5
|
componentDidUpdate(): void;
|
|
6
6
|
checkLoginPage(): boolean;
|
|
7
|
-
loadDefaultLocale(): void;
|
|
8
7
|
componentDidMount(): void;
|
|
9
8
|
updateLocale(): void;
|
|
10
9
|
render(): React.ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapLanguageProvider/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapLanguageProvider/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,KAAK,EACV,OAAO,EACP,wBAAwB,EACxB,wBAAwB,EAGxB,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,QAAQ,EACT,MAAM,SAAS,CAAC;AA0BjB,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,aAAa,CAC1D,wBAAwB,EACxB,wBAAwB,CACzB;gBACa,KAAK,EAAE,wBAAwB;IAU3C,kBAAkB;IAWlB,cAAc,IAAI,OAAO;IAIzB,iBAAiB,IAAI,IAAI;IAOzB,YAAY,IAAI,IAAI;IAsEpB,MAAM,IAAI,KAAK,CAAC,YAAY;CAgC7B;wBAe2D,KAAK,CAAC,aAAa,CAC7E,OAAO,CAAC,wBAAwB,CAAC,CAClC;AAFD,wBAEE;AAEF,YAAY,EACV,wBAAwB,EACxB,eAAe,EACf,QAAQ,EACR,aAAa,EACb,OAAO,EACP,uBAAuB,GACxB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ConfigProvider } from "antd-v5";
|
|
3
|
-
import enUS from "antd-v5/locale/en_US";
|
|
4
3
|
import isEmpty from "lodash/isEmpty";
|
|
5
4
|
import moment from "moment";
|
|
6
5
|
import React from "react";
|
|
@@ -11,8 +10,10 @@ import { createStructuredSelector } from "reselect";
|
|
|
11
10
|
import "../utils/dayjs.js";
|
|
12
11
|
import CapSpin from "../CapSpin/index.js";
|
|
13
12
|
import * as CapLanguageProvider_actions from "./actions.js";
|
|
13
|
+
import { getAntdLocale } from "./antdLocales.js";
|
|
14
14
|
import { REQUEST } from "./constants.js";
|
|
15
15
|
import * as CapLanguageProvider_selector from "./selector.js";
|
|
16
|
+
import enUS from "antd-v5/locale/en_US";
|
|
16
17
|
import dayjs from "dayjs";
|
|
17
18
|
const { makeSelectLanguage, makeSelectSupportedLocalesDetails } = CapLanguageProvider_selector;
|
|
18
19
|
function getAllLocales({ lang, supportedLocales }) {
|
|
@@ -45,21 +46,6 @@ class CapLanguageProvider extends React.PureComponent {
|
|
|
45
46
|
checkLoginPage() {
|
|
46
47
|
return window.location.pathname.indexOf("/login") !== -1;
|
|
47
48
|
}
|
|
48
|
-
loadDefaultLocale() {
|
|
49
|
-
import("antd-v5/locale/en_US").then((module) => {
|
|
50
|
-
if (module == null ? void 0 : module.default) {
|
|
51
|
-
this.setState({ locale: module.default });
|
|
52
|
-
} else {
|
|
53
|
-
console.error(
|
|
54
|
-
"Failed to load default antd locale (en_US). Using static import fallback."
|
|
55
|
-
);
|
|
56
|
-
this.setState({ locale: enUS });
|
|
57
|
-
}
|
|
58
|
-
}).catch((error) => {
|
|
59
|
-
console.error("Failed to load default antd locale (en_US):", error);
|
|
60
|
-
this.setState({ locale: enUS });
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
49
|
componentDidMount() {
|
|
64
50
|
var _a;
|
|
65
51
|
(_a = this.props.actions) == null ? void 0 : _a.getSupportedLocales({
|
|
@@ -104,16 +90,8 @@ class CapLanguageProvider extends React.PureComponent {
|
|
|
104
90
|
});
|
|
105
91
|
moment.locale(locale);
|
|
106
92
|
dayjs.locale(locale);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}).catch(() => {
|
|
110
|
-
console.warn(
|
|
111
|
-
`antd es locale-provider module does not exist for ${antdLocale}. Using en_US instead`
|
|
112
|
-
);
|
|
113
|
-
import("antd-v5/locale/en_US").then((module) => {
|
|
114
|
-
this.setState({ locale: module.default });
|
|
115
|
-
});
|
|
116
|
-
});
|
|
93
|
+
const antdLocaleObj = getAntdLocale(antdLocale);
|
|
94
|
+
this.setState({ locale: antdLocaleObj });
|
|
117
95
|
import(`react-intl/locale-data/${_reactIntlLocale}.js`).then((module) => {
|
|
118
96
|
addLocaleData(module.default);
|
|
119
97
|
}).catch(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './styles.
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
2
|
"cap-level-graph-renderer-v2": "cap-level-graph-renderer-v2",
|
|
3
3
|
"level-graph-pagination-container": "level-graph-pagination-container",
|
|
4
4
|
"level-graph-pagination-row": "level-graph-pagination-row",
|