@aloudata/aloudata-design 3.0.0-beta.1 → 3.0.0-beta.2
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/DatePicker/index.js +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/locale/default.d.ts +2 -1
- package/dist/locale/default.js +4 -4
- package/dist/locale/en_US.d.ts +1 -0
- package/dist/locale/en_US.js +2 -0
- package/dist/locale/en_US.js.map +1 -1
- package/dist/locale/zh_CN.d.ts +1 -0
- package/dist/locale/zh_CN.js +2 -0
- package/dist/locale/zh_CN.js.map +1 -1
- package/package.json +1 -1
package/dist/DatePicker/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import DisabledContext from "../ConfigProvider/DisabledContext.js";
|
|
|
3
3
|
import SizeContext from "../ConfigProvider/sizeContext.js";
|
|
4
4
|
import { LocaleContext } from "../locale/default.js";
|
|
5
5
|
/* empty css */
|
|
6
|
+
import enUSDatePicker from "rc-picker/es/locale/en_US";
|
|
6
7
|
import { forwardRef, useContext } from "react";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
8
9
|
import { Picker, RangePicker } from "rc-picker";
|
|
9
10
|
import dayjsGenerateConfig from "rc-picker/es/generate/dayjs";
|
|
10
|
-
import enUS from "rc-picker/es/locale/en_US";
|
|
11
11
|
//#region src/DatePicker/index.tsx
|
|
12
12
|
var SIZE_CLS = {
|
|
13
13
|
small: "ald-picker-sm",
|
|
@@ -22,7 +22,7 @@ var InternalDatePicker = forwardRef((props, ref) => {
|
|
|
22
22
|
return /* @__PURE__ */ jsx(Picker, {
|
|
23
23
|
ref,
|
|
24
24
|
generateConfig: dayjsGenerateConfig,
|
|
25
|
-
locale: useContext(LocaleContext)?.DatePicker ||
|
|
25
|
+
locale: useContext(LocaleContext)?.DatePicker || enUSDatePicker,
|
|
26
26
|
prefixCls,
|
|
27
27
|
disabled: mergedDisabled,
|
|
28
28
|
className: cn(SIZE_CLS[size] || "", !bordered && "ald-picker-borderless", status === "error" && "ald-picker-status-error", status === "warning" && "ald-picker-status-warning", className),
|
|
@@ -38,7 +38,7 @@ var InternalRangePicker = forwardRef((props, ref) => {
|
|
|
38
38
|
return /* @__PURE__ */ jsx(RangePicker, {
|
|
39
39
|
ref,
|
|
40
40
|
generateConfig: dayjsGenerateConfig,
|
|
41
|
-
locale: useContext(LocaleContext)?.DatePicker ||
|
|
41
|
+
locale: useContext(LocaleContext)?.DatePicker || enUSDatePicker,
|
|
42
42
|
prefixCls,
|
|
43
43
|
disabled: mergedDisabled,
|
|
44
44
|
className: cn(SIZE_CLS[size] || "", !bordered && "ald-picker-borderless", status === "error" && "ald-picker-status-error", status === "warning" && "ald-picker-status-warning", className),
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export type MenuClickEventHandler = (info: {
|
|
|
3
3
|
keyPath: string[];
|
|
4
4
|
domEvent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
5
5
|
}) => void;
|
|
6
|
+
export { default as localeZhCN } from './locale/zh_CN.js';
|
|
7
|
+
export { default as localeEnUS } from './locale/en_US.js';
|
|
6
8
|
export { default as AProgress } from './AProgress.js';
|
|
7
9
|
export { default as Alert } from './Alert.js';
|
|
8
10
|
export type { AlertProps } from './Alert.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
+
import localeValues$1 from "./locale/zh_CN.js";
|
|
3
|
+
import localeValues from "./locale/en_US.js";
|
|
2
4
|
import AProgress from "./AProgress/index.js";
|
|
3
5
|
import Alert from "./Alert/index.js";
|
|
4
6
|
import AldApp from "./App/index.js";
|
|
@@ -68,4 +70,4 @@ import Watermark from "./Watermark/index.js";
|
|
|
68
70
|
import notification from "./notification/index.js";
|
|
69
71
|
import AMenu from "./AMenu/index.js";
|
|
70
72
|
import Tour from "./Tour/index.js";
|
|
71
|
-
export { AMenu, AProgress, Select_default as AldSelect, Alert, AldApp as App, Avatar, Badge, Breadcrumb, Button_default as Button, Card, Carousel, Checkbox, Col, Collapse, ColorPicker, AldCustomConfigProvider as ConfigProvider, DataPreviewTable_default as DataPreviewTable, DatePicker, DisplayLogicTree, Divider, Drawer, Dropdown, ELogicType, EMemberPicker, ENodeType, EUserType, Empty, Form, HighlightText, IconButton, Input, InputNumber, InputSearch, Layout, List, LogicTree, MemberSelector as MemberPicker, Menu, Modal, OverflowCount, Pagination, Popconfirm, Popover, Progress_default as Progress, Radio, RenameInput, Result, Row, ScrollArea_default as ScrollArea, Select_default as Select, Skeleton, Slider, Space, CustomSpin as Spin, StatusLight, Steps, Switch, Table_default as Table, Tabs, Tag, TextLink, Tooltip, Tour, Tree, Typography, Upload, User, Watermark, getInitialLogicNode, logicTreeIterator, message, notification };
|
|
73
|
+
export { AMenu, AProgress, Select_default as AldSelect, Alert, AldApp as App, Avatar, Badge, Breadcrumb, Button_default as Button, Card, Carousel, Checkbox, Col, Collapse, ColorPicker, AldCustomConfigProvider as ConfigProvider, DataPreviewTable_default as DataPreviewTable, DatePicker, DisplayLogicTree, Divider, Drawer, Dropdown, ELogicType, EMemberPicker, ENodeType, EUserType, Empty, Form, HighlightText, IconButton, Input, InputNumber, InputSearch, Layout, List, LogicTree, MemberSelector as MemberPicker, Menu, Modal, OverflowCount, Pagination, Popconfirm, Popover, Progress_default as Progress, Radio, RenameInput, Result, Row, ScrollArea_default as ScrollArea, Select_default as Select, Skeleton, Slider, Space, CustomSpin as Spin, StatusLight, Steps, Switch, Table_default as Table, Tabs, Tag, TextLink, Tooltip, Tour, Tree, Typography, Upload, User, Watermark, getInitialLogicNode, localeValues as localeEnUS, localeValues$1 as localeZhCN, logicTreeIterator, message, notification };
|
package/dist/locale/default.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const defaultLocale: {
|
|
|
10
10
|
export declare const LocaleContext: import('react').Context<Locale>;
|
|
11
11
|
export declare function getTranslator(lang?: string): {
|
|
12
12
|
locale: string;
|
|
13
|
+
DatePicker: import('rc-picker/es/interface').Locale;
|
|
13
14
|
Empty: {
|
|
14
15
|
noContentFound: string;
|
|
15
16
|
};
|
|
@@ -27,6 +28,7 @@ export declare function getTranslator(lang?: string): {
|
|
|
27
28
|
};
|
|
28
29
|
MemberPicker: {
|
|
29
30
|
select: string;
|
|
31
|
+
ban: string;
|
|
30
32
|
pleaseConfigGetUserByKeywordsMethod: string;
|
|
31
33
|
pleaseConfigGetUserByIdsMethod: string;
|
|
32
34
|
noData: string;
|
|
@@ -36,7 +38,6 @@ export declare function getTranslator(lang?: string): {
|
|
|
36
38
|
selectedTotal: (total: number) => string;
|
|
37
39
|
cancel: string;
|
|
38
40
|
confirm: string;
|
|
39
|
-
ban: string;
|
|
40
41
|
};
|
|
41
42
|
Modal: {
|
|
42
43
|
cancel: string;
|
package/dist/locale/default.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import localeValues from "./
|
|
2
|
-
import localeValues$1 from "./
|
|
1
|
+
import localeValues from "./zh_CN.js";
|
|
2
|
+
import localeValues$1 from "./en_US.js";
|
|
3
3
|
import { createContext } from "react";
|
|
4
4
|
//#region src/locale/default.ts
|
|
5
5
|
var ELangType = /* @__PURE__ */ function(ELangType) {
|
|
@@ -10,8 +10,8 @@ var ELangType = /* @__PURE__ */ function(ELangType) {
|
|
|
10
10
|
var defaultLocale = { locale: ELangType.ZH_CN };
|
|
11
11
|
var LocaleContext = createContext(defaultLocale);
|
|
12
12
|
function getTranslator(lang) {
|
|
13
|
-
if (lang === ELangType.ZH_CN) return localeValues
|
|
14
|
-
return localeValues;
|
|
13
|
+
if (lang === ELangType.ZH_CN) return localeValues;
|
|
14
|
+
return localeValues$1;
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ELangType, LocaleContext, defaultLocale, getTranslator };
|
package/dist/locale/en_US.d.ts
CHANGED
package/dist/locale/en_US.js
CHANGED
package/dist/locale/en_US.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en_US.js","names":[],"sources":["../../src/locale/en_US.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"en_US.js","names":[],"sources":["../../src/locale/en_US.ts"],"sourcesContent":["import enUSDatePicker from 'rc-picker/es/locale/en_US';\n\nconst localeValues = {\n locale: 'en',\n DatePicker: enUSDatePicker,\n Empty: {\n noContentFound: 'No Content Found',\n },\n ColorPicker: {\n default: 'Default',\n standardColor: 'Standard Color',\n recentlyUsed: 'Recently Used',\n },\n DataPreviewTable: {\n dataLoadFailed: 'Data loading failed',\n loadFailed: 'Loading failed',\n },\n InputSearch: {\n search: 'Search',\n },\n MemberPicker: {\n select: 'Select',\n pleaseConfigGetUserByKeywordsMethod:\n 'Please configure the getUsersByKeywords method in ConfigProvider',\n pleaseConfigGetUserByIdsMethod:\n 'Please configure the getUsersByIds method in ConfigProvider',\n noData: 'No Data',\n subLevel: 'Sub-level',\n users: 'Users',\n userGroups: 'User Groups',\n selectedTotal: (total: number) => `Selected ${total}`,\n cancel: 'Cancel',\n confirm: 'Confirm',\n ban: 'Banned',\n },\n Modal: {\n cancel: 'Cancel',\n sure: 'Ok',\n },\n Select: {\n noSearchResult: 'No search results',\n all: 'All',\n },\n Tree: {\n expand: 'Expand',\n },\n Table: {\n cancelSelect: 'Cancel Selection',\n selected: 'Selected ',\n item: ' items',\n selectAll: 'Select All',\n },\n ErrorBoundary: {\n happenedError: 'An error occurred',\n },\n LogicTree: {\n btn: {\n addCondition: 'Add condition',\n addRelation: 'Add relation',\n },\n select: {\n and: 'And',\n or: 'Or',\n },\n },\n Pagination: {\n itemsPerPage: '/ page',\n selectPageSize: 'Select size',\n totalItems: (total: number, range: [number, number]) =>\n `Total ${total} items, showing ${range[0]}-${range[1]}`,\n },\n};\n\nexport default localeValues;\n"],"mappings":";;AAEA,IAAM,eAAe;CACnB,QAAQ;CACR,YAAY;CACZ,OAAO,EACL,gBAAgB,oBACjB;CACD,aAAa;EACX,SAAS;EACT,eAAe;EACf,cAAc;EACf;CACD,kBAAkB;EAChB,gBAAgB;EAChB,YAAY;EACb;CACD,aAAa,EACX,QAAQ,UACT;CACD,cAAc;EACZ,QAAQ;EACR,qCACE;EACF,gCACE;EACF,QAAQ;EACR,UAAU;EACV,OAAO;EACP,YAAY;EACZ,gBAAgB,UAAkB,YAAY;EAC9C,QAAQ;EACR,SAAS;EACT,KAAK;EACN;CACD,OAAO;EACL,QAAQ;EACR,MAAM;EACP;CACD,QAAQ;EACN,gBAAgB;EAChB,KAAK;EACN;CACD,MAAM,EACJ,QAAQ,UACT;CACD,OAAO;EACL,cAAc;EACd,UAAU;EACV,MAAM;EACN,WAAW;EACZ;CACD,eAAe,EACb,eAAe,qBAChB;CACD,WAAW;EACT,KAAK;GACH,cAAc;GACd,aAAa;GACd;EACD,QAAQ;GACN,KAAK;GACL,IAAI;GACL;EACF;CACD,YAAY;EACV,cAAc;EACd,gBAAgB;EAChB,aAAa,OAAe,UAC1B,SAAS,MAAM,kBAAkB,MAAM,GAAG,GAAG,MAAM;EACtD;CACF"}
|
package/dist/locale/zh_CN.d.ts
CHANGED
package/dist/locale/zh_CN.js
CHANGED
package/dist/locale/zh_CN.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh_CN.js","names":[],"sources":["../../src/locale/zh_CN.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"zh_CN.js","names":[],"sources":["../../src/locale/zh_CN.ts"],"sourcesContent":["import zhCNDatePicker from 'rc-picker/es/locale/zh_CN';\n\nconst localeValues = {\n locale: 'zh-cn',\n DatePicker: zhCNDatePicker,\n Empty: {\n noContentFound: '未找到内容',\n },\n ColorPicker: {\n default: '默认',\n standardColor: '标准色',\n recentlyUsed: '最近使用',\n },\n DataPreviewTable: {\n dataLoadFailed: '数据加载失败',\n loadFailed: '加载失败',\n },\n InputSearch: {\n search: '搜索',\n },\n MemberPicker: {\n select: '选择',\n ban: '已停用',\n pleaseConfigGetUserByKeywordsMethod:\n '请在ConfigProvider中配置getUsersByKeywords方法',\n pleaseConfigGetUserByIdsMethod: '请在ConfigProvider中配置getUsersByIds方法',\n noData: '无数据',\n subLevel: '下级',\n users: '用户',\n userGroups: '用户组',\n selectedTotal: (total: number) => `已选 ${total}`,\n cancel: '取消',\n confirm: '确定',\n },\n Modal: {\n cancel: '取消',\n sure: '确定',\n },\n Select: {\n noSearchResult: '无搜索结果',\n all: '全部',\n },\n Tree: {\n expand: '展开',\n },\n Table: {\n cancelSelect: '取消选择',\n selected: '已选',\n item: '个',\n selectAll: '全选',\n },\n ErrorBoundary: {\n happenedError: '发生了错误',\n },\n LogicTree: {\n btn: {\n addCondition: '添加条件',\n addRelation: '添加关系',\n },\n select: {\n and: '且',\n or: '或',\n },\n },\n Pagination: {\n itemsPerPage: '条/页',\n selectPageSize: '选择条数',\n totalItems: (total: number, range: [number, number]) =>\n `共 ${total} 条,当前第 ${range[0]}-${range[1]} 条`,\n },\n};\n\nexport default localeValues;\n"],"mappings":";;AAEA,IAAM,eAAe;CACnB,QAAQ;CACR,YAAY;CACZ,OAAO,EACL,gBAAgB,SACjB;CACD,aAAa;EACX,SAAS;EACT,eAAe;EACf,cAAc;EACf;CACD,kBAAkB;EAChB,gBAAgB;EAChB,YAAY;EACb;CACD,aAAa,EACX,QAAQ,MACT;CACD,cAAc;EACZ,QAAQ;EACR,KAAK;EACL,qCACE;EACF,gCAAgC;EAChC,QAAQ;EACR,UAAU;EACV,OAAO;EACP,YAAY;EACZ,gBAAgB,UAAkB,MAAM;EACxC,QAAQ;EACR,SAAS;EACV;CACD,OAAO;EACL,QAAQ;EACR,MAAM;EACP;CACD,QAAQ;EACN,gBAAgB;EAChB,KAAK;EACN;CACD,MAAM,EACJ,QAAQ,MACT;CACD,OAAO;EACL,cAAc;EACd,UAAU;EACV,MAAM;EACN,WAAW;EACZ;CACD,eAAe,EACb,eAAe,SAChB;CACD,WAAW;EACT,KAAK;GACH,cAAc;GACd,aAAa;GACd;EACD,QAAQ;GACN,KAAK;GACL,IAAI;GACL;EACF;CACD,YAAY;EACV,cAAc;EACd,gBAAgB;EAChB,aAAa,OAAe,UAC1B,KAAK,MAAM,SAAS,MAAM,GAAG,GAAG,MAAM,GAAG;EAC5C;CACF"}
|