@pisell/materials 1.0.1044 → 1.0.1046

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.
Files changed (46) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +4 -4
  6. package/build/lowcode/view.js +4 -4
  7. package/es/components/Pagination/index.js +6 -3
  8. package/es/components/checkbox/index.d.ts +2 -2
  9. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +2 -2
  10. package/es/components/dataSourceComponents/fields/Input.Password/index.d.ts +2 -2
  11. package/es/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +2 -2
  12. package/es/components/date-picker/index.d.ts +2 -2
  13. package/es/components/filter/components/FilterButton/index.js +5 -2
  14. package/es/components/input/index.d.ts +2 -2
  15. package/es/components/pisellBatchActionBar/PisellBatchActionBar.js +6 -3
  16. package/es/components/pisellDateTimeDisplay/utils/relativeDay.js +3 -2
  17. package/es/components/pisellFind/index.js +9 -1
  18. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +10 -1
  19. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +4 -2
  20. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +4 -2
  21. package/es/locales/en-US.js +20 -0
  22. package/es/locales/index.js +2 -2
  23. package/es/locales/zh-CN.js +20 -0
  24. package/es/locales/zh-TW.js +20 -0
  25. package/lib/components/Pagination/index.js +6 -3
  26. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +2 -2
  27. package/lib/components/date-picker/index.d.ts +2 -2
  28. package/lib/components/filter/components/FilterButton/index.js +5 -2
  29. package/lib/components/pisellBatchActionBar/PisellBatchActionBar.js +6 -3
  30. package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +2 -2
  31. package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +2 -2
  32. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.js +2 -1
  33. package/lib/components/pisellFind/index.js +9 -1
  34. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +10 -1
  35. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +4 -2
  36. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +4 -2
  37. package/lib/components/radio/index.d.ts +2 -2
  38. package/lib/components/section-footers/index.d.ts +2 -2
  39. package/lib/components/skeleton/index.d.ts +2 -2
  40. package/lib/components/time-picker/index.d.ts +2 -2
  41. package/lib/components/upload/index.d.ts +2 -2
  42. package/lib/locales/en-US.js +20 -0
  43. package/lib/locales/index.js +2 -2
  44. package/lib/locales/zh-CN.js +20 -0
  45. package/lib/locales/zh-TW.js +20 -0
  46. package/package.json +2 -2
@@ -17,10 +17,13 @@ const _excluded = [
17
17
  "page",
18
18
  "pageSize"
19
19
  ];
20
- /** 优先 @pisell/utils locales(pisell2.salesManagement.pagination.*),无则回退 materials getText */
20
+ /** 优先 utils;若 utils 返回 key(未命中)则用 materials RecordBoard 再回退 table-pagination-* */
21
21
  function getPaginationText(key) {
22
- var _utilsLocales$getText;
23
- return (_utilsLocales$getText = locales.getText(`pisell2.salesManagement.pagination.${key}`)) !== null && _utilsLocales$getText !== void 0 ? _utilsLocales$getText : getText(`table-pagination-${key}`);
22
+ var _getText;
23
+ const fullKey = `pisell2.salesManagement.pagination.${key}`;
24
+ const fromUtils = locales.getText(fullKey);
25
+ if (fromUtils !== fullKey) return fromUtils;
26
+ return (_getText = getText(fullKey)) !== null && _getText !== void 0 ? _getText : getText(`table-pagination-${key}`);
24
27
  }
25
28
  const Pagination$1 = (props) => {
26
29
  const show = useMemo(() => {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react1 from "react";
2
+ import * as react0 from "react";
3
3
 
4
4
  //#region src/components/checkbox/index.d.ts
5
- declare const Checkbox: (props: any) => react1.JSX.Element;
5
+ declare const Checkbox: (props: any) => react0.JSX.Element;
6
6
  //#endregion
7
7
  export { Checkbox };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react0 from "react";
2
+ import * as react1 from "react";
3
3
 
4
4
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
5
- declare const DataSourceQRCode: (props: any) => react0.JSX.Element;
5
+ declare const DataSourceQRCode: (props: any) => react1.JSX.Element;
6
6
  //#endregion
7
7
  export { DataSourceQRCode };
@@ -1,9 +1,9 @@
1
1
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
2
2
  import * as antd18 from "antd";
3
3
  import React from "react";
4
- import * as antd_es_input4 from "antd/es/input";
4
+ import * as antd_es_input3 from "antd/es/input";
5
5
 
6
6
  //#region src/components/dataSourceComponents/fields/Input.Password/index.d.ts
7
- declare const Password: React.FC<antd_es_input4.PasswordProps & React.RefAttributes<antd18.InputRef> & WithModeProps & WithFormItemProps>;
7
+ declare const Password: React.FC<antd_es_input3.PasswordProps & React.RefAttributes<antd18.InputRef> & WithModeProps & WithFormItemProps>;
8
8
  //#endregion
9
9
  export { Password };
@@ -1,9 +1,9 @@
1
1
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
2
2
  import React from "react";
3
- import * as antd_es_input3 from "antd/es/input";
3
+ import * as antd_es_input4 from "antd/es/input";
4
4
  import * as antd_es_input_TextArea0 from "antd/es/input/TextArea";
5
5
 
6
6
  //#region src/components/dataSourceComponents/fields/Input.TextArea/index.d.ts
7
- declare const TextArea: React.FC<antd_es_input3.TextAreaProps & React.RefAttributes<antd_es_input_TextArea0.TextAreaRef> & WithModeProps & WithFormItemProps>;
7
+ declare const TextArea: React.FC<antd_es_input4.TextAreaProps & React.RefAttributes<antd_es_input_TextArea0.TextAreaRef> & WithModeProps & WithFormItemProps>;
8
8
  //#endregion
9
9
  export { TextArea };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react9 from "react";
2
+ import * as react2 from "react";
3
3
 
4
4
  //#region src/components/date-picker/index.d.ts
5
- declare const DatePicker: (props: any) => react9.JSX.Element;
5
+ declare const DatePicker: (props: any) => react2.JSX.Element;
6
6
  //#endregion
7
7
  export { DatePicker };
@@ -8,10 +8,13 @@ import { locales } from "@pisell/utils";
8
8
  import FilterLines from "@pisell/icon/es/FilterLines";
9
9
 
10
10
  //#region src/components/filter/components/FilterButton/index.tsx
11
- /** 与 Quick Filter 同源:优先 @pisell/utils locales,无 key 时回退 materials getText */
11
+ /** 与 Quick Filter 同源:优先 utils,若 utils 返回 key(未命中)则用 materials RecordBoard 再回退 table-action */
12
12
  function getFilterButtonLabel(buttonText) {
13
13
  if (buttonText != null && buttonText !== "") return buttonText;
14
- return locales.getText("pisell2.recordBoard.toolbar.filter") || getText("table-action-filter-button");
14
+ const key = "pisell2.recordBoard.toolbar.filter";
15
+ const fromUtils = locales.getText(key);
16
+ if (fromUtils && fromUtils !== key) return fromUtils;
17
+ return getText(key) || getText("table-action-filter-button");
15
18
  }
16
19
  const Filter = ({ value, hiddenQuickFilter, hiddenOtherFilter, onChange, quickFilterMaxLength, formFiltersPrefix, renderItem, placement, size = "large", buttonClassName, buttonText }) => {
17
20
  const ref = useRef(null);
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { InputProps, InputRef } from "antd";
3
- import * as react2 from "react";
3
+ import * as react3 from "react";
4
4
  import * as antd_es_input0 from "antd/es/input";
5
5
  import * as antd_es_input_TextArea0 from "antd/es/input/TextArea";
6
6
 
7
7
  //#region src/components/input/index.d.ts
8
- declare const OriginalGroup: react2.FC<antd_es_input0.GroupProps>, OriginalTextArea: react2.ForwardRefExoticComponent<antd_es_input0.TextAreaProps & react2.RefAttributes<antd_es_input_TextArea0.TextAreaRef>>, OriginalPassword: react2.ForwardRefExoticComponent<antd_es_input0.PasswordProps & react2.RefAttributes<InputRef>>, OriginalSearch: react2.ForwardRefExoticComponent<antd_es_input0.SearchProps & react2.RefAttributes<InputRef>>;
8
+ declare const OriginalGroup: react3.FC<antd_es_input0.GroupProps>, OriginalTextArea: react3.ForwardRefExoticComponent<antd_es_input0.TextAreaProps & react3.RefAttributes<antd_es_input_TextArea0.TextAreaRef>>, OriginalPassword: react3.ForwardRefExoticComponent<antd_es_input0.PasswordProps & react3.RefAttributes<InputRef>>, OriginalSearch: react3.ForwardRefExoticComponent<antd_es_input0.SearchProps & react3.RefAttributes<InputRef>>;
9
9
  type CompoundedComponent = React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> & {
10
10
  Group: typeof OriginalGroup;
11
11
  Search: typeof OriginalSearch;
@@ -9,10 +9,13 @@ import { locales } from "@pisell/utils";
9
9
  import "./PisellBatchActionBar.less";
10
10
 
11
11
  //#region src/components/pisellBatchActionBar/PisellBatchActionBar.tsx
12
- /** 优先 @pisell/utils locales(pisell2.salesManagement.batchActionBar.*),无则回退 materials getText */
12
+ /** 优先 utils;若 utils 返回 key(未命中)则用 materials RecordBoard 再回退 batch-action-bar-* */
13
13
  function getBatchBarText(key) {
14
- var _utilsLocales$getText;
15
- return (_utilsLocales$getText = locales.getText(`pisell2.salesManagement.batchActionBar.${key}`)) !== null && _utilsLocales$getText !== void 0 ? _utilsLocales$getText : getText(`batch-action-bar-${key}`);
14
+ var _getText;
15
+ const fullKey = `pisell2.salesManagement.batchActionBar.${key}`;
16
+ const fromUtils = locales.getText(fullKey);
17
+ if (fromUtils !== fullKey) return fromUtils;
18
+ return (_getText = getText(fullKey)) !== null && _getText !== void 0 ? _getText : getText(`batch-action-bar-${key}`);
16
19
  }
17
20
  /**
18
21
  * PisellBatchActionBar 批量操作栏组件
@@ -1,4 +1,4 @@
1
- import { isChinese } from "./localeUtils.js";
1
+ import { getDayjsLocale, isChinese } from "./localeUtils.js";
2
2
 
3
3
  //#region src/components/pisellDateTimeDisplay/utils/relativeDay.ts
4
4
  const LABELS_ZH = {
@@ -34,13 +34,14 @@ function getRelativeDay(date, reference) {
34
34
  }
35
35
  /**
36
36
  * 根据 locale 返回相对日期的展示文案
37
+ * 未传 locale 时使用 getDayjsLocale()(与 locales.getLocale 同源)
37
38
  *
38
39
  * @param day 'today' | 'yesterday' | 'tomorrow'
39
40
  * @param locale dayjs locale,如 'zh-cn'、'en'
40
41
  * @returns 如 '今天'、'Today'
41
42
  */
42
43
  function getRelativeDayLabel(day, locale) {
43
- return (locale ? isChinese(locale) : false) ? LABELS_ZH[day] : LABELS_EN[day];
44
+ return isChinese(locale !== null && locale !== void 0 ? locale : getDayjsLocale()) ? LABELS_ZH[day] : LABELS_EN[day];
44
45
  }
45
46
 
46
47
  //#endregion
@@ -42,7 +42,15 @@ const _excluded = [
42
42
  * ```
43
43
  */
44
44
  const PisellFind = forwardRef((props, ref) => {
45
- const { triggerType = "button", buttonText = locales.getText("pisell2.recordBoard.toolbar.find") || getText("pisell-find-button-text"), placeholder = locales.getText("pisell2.recordBoard.toolbar.findPlaceholder") || getText("pisell-find-placeholder"), showConfirmButton = false, showHistory = true, historyKey = "pisell_find_history" } = props, restProps = _objectWithoutProperties(props, _excluded);
45
+ const { triggerType = "button", buttonText = (() => {
46
+ const key = "pisell2.recordBoard.toolbar.find";
47
+ const u = locales.getText(key);
48
+ return u && u !== key ? u : getText(key) || getText("pisell-find-button-text");
49
+ })(), placeholder = (() => {
50
+ const key = "pisell2.recordBoard.toolbar.findPlaceholder";
51
+ const u = locales.getText(key);
52
+ return u && u !== key ? u : getText(key) || getText("pisell-find-placeholder");
53
+ })(), showConfirmButton = false, showHistory = true, historyKey = "pisell_find_history" } = props, restProps = _objectWithoutProperties(props, _excluded);
46
54
  return /* @__PURE__ */ React.createElement(PisellLookup, _objectSpread2({
47
55
  ref,
48
56
  triggerType,
@@ -36,7 +36,16 @@ const RecordBoardPagination = (props) => {
36
36
  (_ctx$childComponentPr3 = ctx.childComponentProps) === null || _ctx$childComponentPr3 === void 0 ? void 0 : _ctx$childComponentPr3.pagination
37
37
  ]);
38
38
  if (typeof render === "function") return /* @__PURE__ */ React.createElement(React.Fragment, null, render(_objectSpread2(_objectSpread2({}, ctx), rest)));
39
- if (ctx.total === 0) return null;
39
+ if (ctx.total === 0) return /* @__PURE__ */ React.createElement("div", {
40
+ "data-layout-slot": "pagination",
41
+ className: "record-board-shell-frame-pagination record-board-shell-frame-pagination-placeholder",
42
+ style: {
43
+ marginTop: 16,
44
+ display: "flex",
45
+ justifyContent: "center",
46
+ minHeight: 40
47
+ }
48
+ });
40
49
  return /* @__PURE__ */ React.createElement("div", {
41
50
  "data-layout-slot": "pagination",
42
51
  className: "record-board-shell-frame-pagination",
@@ -16,9 +16,11 @@ import SwitchVertical01 from "@pisell/icon/es/SwitchVertical01";
16
16
  import "./ToolBarFilter.less";
17
17
 
18
18
  //#region src/components/pisellRecordBoard/shellFrame/ToolBar/index.tsx
19
- /** 与 Quick Filter 同源:使用 @pisell/utils locales.getText,无 key 时回退 materials getText */
19
+ /** 与 Quick Filter 同源:优先 utils,若 utils 返回 key(未命中)则用 materials 再回退 */
20
20
  function getSortButtonText() {
21
- return locales.getText("pisell2.recordBoard.toolbar.sort") || getText("sort-button-text");
21
+ const key = "pisell2.recordBoard.toolbar.sort";
22
+ const u = locales.getText(key);
23
+ return u && u !== key ? u : getText(key) || getText("sort-button-text");
22
24
  }
23
25
  /** 默认搜索参数字段名,与 context.searchParams 对应 */
24
26
  const DEFAULT_SEARCH_FIELD = "keyword";
@@ -8,9 +8,11 @@ import { ReloadOutlined } from "@ant-design/icons";
8
8
  import "./index.less";
9
9
 
10
10
  //#region src/components/pisellRecordBoard/shellFrame/ToolBarReset/index.tsx
11
- /** 与 Quick Filter 同源:使用 @pisell/utils locales.getText,无 key 时回退 materials getText */
11
+ /** 与 Quick Filter 同源:优先 utils,若 utils 返回 key(未命中)则用 materials 再回退 */
12
12
  function getResetButtonText() {
13
- return locales.getText("pisell2.recordBoard.toolbar.reset") || getText("record-board-toolbar-reset");
13
+ const key = "pisell2.recordBoard.toolbar.reset";
14
+ const u = locales.getText(key);
15
+ return u && u !== key ? u : getText(key) || getText("record-board-toolbar-reset");
14
16
  }
15
17
  /** 筛选在 searchParams 中的字段名,与 ToolBar 一致 */
16
18
  const FILTER_PARAMS_FIELD = "filter";
@@ -95,6 +95,26 @@ var en_US_default = {
95
95
  "record-board-toolbar-default-filter-disabled": "Disabled",
96
96
  "record-board-toolbar-default-filter-keyword": "Keyword",
97
97
  "record-board-toolbar-default-placeholder": "Please enter",
98
+ "pisell2.recordBoard.toolbar.find": "Find",
99
+ "pisell2.recordBoard.toolbar.findPlaceholder": "Please enter search content",
100
+ "pisell2.recordBoard.toolbar.sort": "Sort",
101
+ "pisell2.recordBoard.toolbar.filter": "Filter",
102
+ "pisell2.recordBoard.toolbar.reset": "Reset",
103
+ "pisell2.salesManagement.pagination.previous": "Previous",
104
+ "pisell2.salesManagement.pagination.next": "Next",
105
+ "pisell2.salesManagement.pagination.showTotal": (start, end) => `Page ${start} of ${end}`,
106
+ "pisell2.salesManagement.pagination.total": (current, max) => `Page ${current} of ${max}`,
107
+ "pisell2.salesManagement.batchActionBar.selectedCount": (count) => `${count} item(s) selected`,
108
+ "pisell2.salesManagement.batchActionBar.more": "More",
109
+ "pisell2.salesManagement.batchActionBar.selectAll": "Select All",
110
+ "pisell2.salesManagement.batchActionBar.invert": "Invert Selection",
111
+ "pisell2.salesManagement.batchActionBar.clear": "Clear Selection",
112
+ "pisell2.salesManagement.batchActionBar.delete": "Delete",
113
+ "pisell2.salesManagement.batchActionBar.confirmTitle": "Confirm",
114
+ "pisell2.salesManagement.batchActionBar.deleteConfirmTitle": "Confirm Delete",
115
+ "pisell2.salesManagement.batchActionBar.deleteConfirmContent": (count) => `Are you sure you want to delete ${count} selected item(s)?`,
116
+ "pisell2.salesManagement.batchActionBar.deleteConfirmOk": "OK",
117
+ "pisell2.salesManagement.batchActionBar.deleteConfirmCancel": "Cancel",
98
118
  "shell-frame-statistic-expand": "Expand statistics",
99
119
  "shell-frame-statistic-collapse": "Collapse statistics",
100
120
  "table-action-export-import-export-success": "Export successful! ",
@@ -13,8 +13,8 @@ const langMap = {
13
13
  "zh-HK": zh_TW_default,
14
14
  en: en_US_default,
15
15
  original: en_US_default,
16
- "ja": ja_default,
17
- "pt": pt_default
16
+ ja: ja_default,
17
+ pt: pt_default
18
18
  };
19
19
  const getText = (id) => {
20
20
  var _langMap$locale;
@@ -95,6 +95,26 @@ var zh_CN_default = {
95
95
  "record-board-toolbar-default-filter-disabled": "禁用",
96
96
  "record-board-toolbar-default-filter-keyword": "关键词",
97
97
  "record-board-toolbar-default-placeholder": "请输入",
98
+ "pisell2.recordBoard.toolbar.find": "搜索",
99
+ "pisell2.recordBoard.toolbar.findPlaceholder": "请输入搜索内容",
100
+ "pisell2.recordBoard.toolbar.sort": "排序",
101
+ "pisell2.recordBoard.toolbar.filter": "筛选",
102
+ "pisell2.recordBoard.toolbar.reset": "重置",
103
+ "pisell2.salesManagement.pagination.previous": "上一页",
104
+ "pisell2.salesManagement.pagination.next": "下一页",
105
+ "pisell2.salesManagement.pagination.showTotal": (start, end) => `第 ${start}-${end} 条`,
106
+ "pisell2.salesManagement.pagination.total": (current, max) => `${current} / ${max}`,
107
+ "pisell2.salesManagement.batchActionBar.selectedCount": (count) => `已选择 ${count} 项`,
108
+ "pisell2.salesManagement.batchActionBar.more": "更多",
109
+ "pisell2.salesManagement.batchActionBar.selectAll": "全选",
110
+ "pisell2.salesManagement.batchActionBar.invert": "反选",
111
+ "pisell2.salesManagement.batchActionBar.clear": "取消选择",
112
+ "pisell2.salesManagement.batchActionBar.delete": "删除",
113
+ "pisell2.salesManagement.batchActionBar.confirmTitle": "确认操作",
114
+ "pisell2.salesManagement.batchActionBar.deleteConfirmTitle": "确认删除",
115
+ "pisell2.salesManagement.batchActionBar.deleteConfirmContent": (count) => `确定要删除选中的 ${count} 项吗?`,
116
+ "pisell2.salesManagement.batchActionBar.deleteConfirmOk": "确定",
117
+ "pisell2.salesManagement.batchActionBar.deleteConfirmCancel": "取消",
98
118
  "shell-frame-statistic-expand": "展开统计",
99
119
  "shell-frame-statistic-collapse": "收起统计",
100
120
  "table-action-export-import-export-success": "导出成功!",
@@ -95,6 +95,26 @@ var zh_TW_default = {
95
95
  "record-board-toolbar-default-filter-disabled": "禁用",
96
96
  "record-board-toolbar-default-filter-keyword": "關鍵詞",
97
97
  "record-board-toolbar-default-placeholder": "請輸入",
98
+ "pisell2.recordBoard.toolbar.find": "搜尋",
99
+ "pisell2.recordBoard.toolbar.findPlaceholder": "請輸入搜尋內容",
100
+ "pisell2.recordBoard.toolbar.sort": "排序",
101
+ "pisell2.recordBoard.toolbar.filter": "篩選",
102
+ "pisell2.recordBoard.toolbar.reset": "重置",
103
+ "pisell2.salesManagement.pagination.previous": "上一頁",
104
+ "pisell2.salesManagement.pagination.next": "下一頁",
105
+ "pisell2.salesManagement.pagination.showTotal": (start, end) => `第 ${start}-${end} 條`,
106
+ "pisell2.salesManagement.pagination.total": (current, max) => `${current} / ${max}`,
107
+ "pisell2.salesManagement.batchActionBar.selectedCount": (count) => `已選擇 ${count} 項`,
108
+ "pisell2.salesManagement.batchActionBar.more": "更多",
109
+ "pisell2.salesManagement.batchActionBar.selectAll": "全選",
110
+ "pisell2.salesManagement.batchActionBar.invert": "反選",
111
+ "pisell2.salesManagement.batchActionBar.clear": "取消選擇",
112
+ "pisell2.salesManagement.batchActionBar.delete": "刪除",
113
+ "pisell2.salesManagement.batchActionBar.confirmTitle": "確認操作",
114
+ "pisell2.salesManagement.batchActionBar.deleteConfirmTitle": "確認刪除",
115
+ "pisell2.salesManagement.batchActionBar.deleteConfirmContent": (count) => `確定要刪除選中的 ${count} 項嗎?`,
116
+ "pisell2.salesManagement.batchActionBar.deleteConfirmOk": "確定",
117
+ "pisell2.salesManagement.batchActionBar.deleteConfirmCancel": "取消",
98
118
  "shell-frame-statistic-expand": "展開統計",
99
119
  "shell-frame-statistic-collapse": "收起統計",
100
120
  "table-action-export-import-export-success": "導出成功!",
@@ -22,10 +22,13 @@ const _excluded = [
22
22
  "page",
23
23
  "pageSize"
24
24
  ];
25
- /** 优先 @pisell/utils locales(pisell2.salesManagement.pagination.*),无则回退 materials getText */
25
+ /** 优先 utils;若 utils 返回 key(未命中)则用 materials RecordBoard 再回退 table-pagination-* */
26
26
  function getPaginationText(key) {
27
- var _utilsLocales$getText;
28
- return (_utilsLocales$getText = _pisell_utils.locales.getText(`pisell2.salesManagement.pagination.${key}`)) !== null && _utilsLocales$getText !== void 0 ? _utilsLocales$getText : require_index.getText(`table-pagination-${key}`);
27
+ var _getText;
28
+ const fullKey = `pisell2.salesManagement.pagination.${key}`;
29
+ const fromUtils = _pisell_utils.locales.getText(fullKey);
30
+ if (fromUtils !== fullKey) return fromUtils;
31
+ return (_getText = require_index.getText(fullKey)) !== null && _getText !== void 0 ? _getText : require_index.getText(`table-pagination-${key}`);
29
32
  }
30
33
  const Pagination = (props) => {
31
34
  const show = (0, react.useMemo)(() => {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react2 from "react";
2
+ import * as react1 from "react";
3
3
 
4
4
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
5
- declare const DataSourceQRCode: (props: any) => react2.JSX.Element;
5
+ declare const DataSourceQRCode: (props: any) => react1.JSX.Element;
6
6
  //#endregion
7
7
  export { DataSourceQRCode };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react1 from "react";
2
+ import * as react2 from "react";
3
3
 
4
4
  //#region src/components/date-picker/index.d.ts
5
- declare const DatePicker: (props: any) => react1.JSX.Element;
5
+ declare const DatePicker: (props: any) => react2.JSX.Element;
6
6
  //#endregion
7
7
  export { DatePicker };
@@ -11,10 +11,13 @@ let _pisell_icon_es_FilterLines = require("@pisell/icon/es/FilterLines");
11
11
  _pisell_icon_es_FilterLines = require_rolldown_runtime.__toESM(_pisell_icon_es_FilterLines);
12
12
 
13
13
  //#region src/components/filter/components/FilterButton/index.tsx
14
- /** 与 Quick Filter 同源:优先 @pisell/utils locales,无 key 时回退 materials getText */
14
+ /** 与 Quick Filter 同源:优先 utils,若 utils 返回 key(未命中)则用 materials RecordBoard 再回退 table-action */
15
15
  function getFilterButtonLabel(buttonText) {
16
16
  if (buttonText != null && buttonText !== "") return buttonText;
17
- return _pisell_utils.locales.getText("pisell2.recordBoard.toolbar.filter") || require_index.getText("table-action-filter-button");
17
+ const key = "pisell2.recordBoard.toolbar.filter";
18
+ const fromUtils = _pisell_utils.locales.getText(key);
19
+ if (fromUtils && fromUtils !== key) return fromUtils;
20
+ return require_index.getText(key) || require_index.getText("table-action-filter-button");
18
21
  }
19
22
  const Filter = ({ value, hiddenQuickFilter, hiddenOtherFilter, onChange, quickFilterMaxLength, formFiltersPrefix, renderItem, placement, size = "large", buttonClassName, buttonText }) => {
20
23
  const ref = (0, react.useRef)(null);
@@ -12,10 +12,13 @@ let _pisell_utils = require("@pisell/utils");
12
12
  require("./PisellBatchActionBar.less");
13
13
 
14
14
  //#region src/components/pisellBatchActionBar/PisellBatchActionBar.tsx
15
- /** 优先 @pisell/utils locales(pisell2.salesManagement.batchActionBar.*),无则回退 materials getText */
15
+ /** 优先 utils;若 utils 返回 key(未命中)则用 materials RecordBoard 再回退 batch-action-bar-* */
16
16
  function getBatchBarText(key) {
17
- var _utilsLocales$getText;
18
- return (_utilsLocales$getText = _pisell_utils.locales.getText(`pisell2.salesManagement.batchActionBar.${key}`)) !== null && _utilsLocales$getText !== void 0 ? _utilsLocales$getText : require_index.getText(`batch-action-bar-${key}`);
17
+ var _getText;
18
+ const fullKey = `pisell2.salesManagement.batchActionBar.${key}`;
19
+ const fromUtils = _pisell_utils.locales.getText(fullKey);
20
+ if (fromUtils !== fullKey) return fromUtils;
21
+ return (_getText = require_index.getText(fullKey)) !== null && _getText !== void 0 ? _getText : require_index.getText(`batch-action-bar-${key}`);
19
22
  }
20
23
  /**
21
24
  * PisellBatchActionBar 批量操作栏组件
@@ -1,9 +1,9 @@
1
1
  import { DataSourceContainerContextType } from "../../type.js";
2
- import * as antd24 from "antd";
2
+ import * as antd23 from "antd";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/components/pisellDataSourceContainer/components/Pagination/index.d.ts
6
- declare const _default: React.ForwardRefExoticComponent<Omit<Partial<antd24.PaginationProps> & DataSourceContainerContextType & React.RefAttributes<unknown> & {
6
+ declare const _default: React.ForwardRefExoticComponent<Omit<Partial<antd23.PaginationProps> & DataSourceContainerContextType & React.RefAttributes<unknown> & {
7
7
  refId?: string | undefined;
8
8
  }, "ref"> & React.RefAttributes<any>>;
9
9
  //#endregion
@@ -1,9 +1,9 @@
1
1
  import { DataSourceContainerContextType } from "../../type.js";
2
- import * as antd23 from "antd";
2
+ import * as antd24 from "antd";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/components/pisellDataSourceContainer/components/Table/index.d.ts
6
- declare const _default: React.ForwardRefExoticComponent<Omit<Partial<antd23.TableProps<any>> & DataSourceContainerContextType & {
6
+ declare const _default: React.ForwardRefExoticComponent<Omit<Partial<antd24.TableProps<any>> & DataSourceContainerContextType & {
7
7
  scopeId?: string | undefined;
8
8
  __id?: string | undefined;
9
9
  } & React.RefAttributes<unknown> & {
@@ -34,13 +34,14 @@ function getRelativeDay(date, reference) {
34
34
  }
35
35
  /**
36
36
  * 根据 locale 返回相对日期的展示文案
37
+ * 未传 locale 时使用 getDayjsLocale()(与 locales.getLocale 同源)
37
38
  *
38
39
  * @param day 'today' | 'yesterday' | 'tomorrow'
39
40
  * @param locale dayjs locale,如 'zh-cn'、'en'
40
41
  * @returns 如 '今天'、'Today'
41
42
  */
42
43
  function getRelativeDayLabel(day, locale) {
43
- return (locale ? require_localeUtils.isChinese(locale) : false) ? LABELS_ZH[day] : LABELS_EN[day];
44
+ return require_localeUtils.isChinese(locale !== null && locale !== void 0 ? locale : require_localeUtils.getDayjsLocale()) ? LABELS_ZH[day] : LABELS_EN[day];
44
45
  }
45
46
 
46
47
  //#endregion
@@ -44,7 +44,15 @@ const _excluded = [
44
44
  * ```
45
45
  */
46
46
  const PisellFind = (0, react.forwardRef)((props, ref) => {
47
- const { triggerType = "button", buttonText = _pisell_utils.locales.getText("pisell2.recordBoard.toolbar.find") || require_index.getText("pisell-find-button-text"), placeholder = _pisell_utils.locales.getText("pisell2.recordBoard.toolbar.findPlaceholder") || require_index.getText("pisell-find-placeholder"), showConfirmButton = false, showHistory = true, historyKey = "pisell_find_history" } = props, restProps = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
47
+ const { triggerType = "button", buttonText = (() => {
48
+ const key = "pisell2.recordBoard.toolbar.find";
49
+ const u = _pisell_utils.locales.getText(key);
50
+ return u && u !== key ? u : require_index.getText(key) || require_index.getText("pisell-find-button-text");
51
+ })(), placeholder = (() => {
52
+ const key = "pisell2.recordBoard.toolbar.findPlaceholder";
53
+ const u = _pisell_utils.locales.getText(key);
54
+ return u && u !== key ? u : require_index.getText(key) || require_index.getText("pisell-find-placeholder");
55
+ })(), showConfirmButton = false, showHistory = true, historyKey = "pisell_find_history" } = props, restProps = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
48
56
  return /* @__PURE__ */ react.default.createElement(require_PisellLookup.PisellLookup, require_objectSpread2._objectSpread2({
49
57
  ref,
50
58
  triggerType,
@@ -38,7 +38,16 @@ const RecordBoardPagination = (props) => {
38
38
  (_ctx$childComponentPr3 = ctx.childComponentProps) === null || _ctx$childComponentPr3 === void 0 ? void 0 : _ctx$childComponentPr3.pagination
39
39
  ]);
40
40
  if (typeof render === "function") return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, render(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, ctx), rest)));
41
- if (ctx.total === 0) return null;
41
+ if (ctx.total === 0) return /* @__PURE__ */ react.default.createElement("div", {
42
+ "data-layout-slot": "pagination",
43
+ className: "record-board-shell-frame-pagination record-board-shell-frame-pagination-placeholder",
44
+ style: {
45
+ marginTop: 16,
46
+ display: "flex",
47
+ justifyContent: "center",
48
+ minHeight: 40
49
+ }
50
+ });
42
51
  return /* @__PURE__ */ react.default.createElement("div", {
43
52
  "data-layout-slot": "pagination",
44
53
  className: "record-board-shell-frame-pagination",
@@ -19,9 +19,11 @@ _pisell_icon_es_SwitchVertical01 = require_rolldown_runtime.__toESM(_pisell_icon
19
19
  require("./ToolBarFilter.less");
20
20
 
21
21
  //#region src/components/pisellRecordBoard/shellFrame/ToolBar/index.tsx
22
- /** 与 Quick Filter 同源:使用 @pisell/utils locales.getText,无 key 时回退 materials getText */
22
+ /** 与 Quick Filter 同源:优先 utils,若 utils 返回 key(未命中)则用 materials 再回退 */
23
23
  function getSortButtonText() {
24
- return _pisell_utils.locales.getText("pisell2.recordBoard.toolbar.sort") || require_index.getText("sort-button-text");
24
+ const key = "pisell2.recordBoard.toolbar.sort";
25
+ const u = _pisell_utils.locales.getText(key);
26
+ return u && u !== key ? u : require_index.getText(key) || require_index.getText("sort-button-text");
25
27
  }
26
28
  /** 默认搜索参数字段名,与 context.searchParams 对应 */
27
29
  const DEFAULT_SEARCH_FIELD = "keyword";
@@ -10,9 +10,11 @@ let _ant_design_icons = require("@ant-design/icons");
10
10
  require("./index.less");
11
11
 
12
12
  //#region src/components/pisellRecordBoard/shellFrame/ToolBarReset/index.tsx
13
- /** 与 Quick Filter 同源:使用 @pisell/utils locales.getText,无 key 时回退 materials getText */
13
+ /** 与 Quick Filter 同源:优先 utils,若 utils 返回 key(未命中)则用 materials 再回退 */
14
14
  function getResetButtonText() {
15
- return _pisell_utils.locales.getText("pisell2.recordBoard.toolbar.reset") || require_index.getText("record-board-toolbar-reset");
15
+ const key = "pisell2.recordBoard.toolbar.reset";
16
+ const u = _pisell_utils.locales.getText(key);
17
+ return u && u !== key ? u : require_index.getText(key) || require_index.getText("record-board-toolbar-reset");
16
18
  }
17
19
  /** 筛选在 searchParams 中的字段名,与 ToolBar 一致 */
18
20
  const FILTER_PARAMS_FIELD = "filter";
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react17 from "react";
2
+ import * as react18 from "react";
3
3
 
4
4
  //#region src/components/radio/index.d.ts
5
- declare const Radio: (props: any) => react17.JSX.Element;
5
+ declare const Radio: (props: any) => react18.JSX.Element;
6
6
  //#endregion
7
7
  export { Radio };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import * as react18 from "react";
2
+ import * as react17 from "react";
3
3
 
4
4
  //#region src/components/section-footers/index.d.ts
5
5
  interface SectionFooterProps {
@@ -8,6 +8,6 @@ interface SectionFooterProps {
8
8
  right?: React.ReactNode;
9
9
  className?: string;
10
10
  }
11
- declare const SectionFooters: (props: SectionFooterProps) => react18.JSX.Element;
11
+ declare const SectionFooters: (props: SectionFooterProps) => react17.JSX.Element;
12
12
  //#endregion
13
13
  export { SectionFooters };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react21 from "react";
2
+ import * as react19 from "react";
3
3
 
4
4
  //#region src/components/skeleton/index.d.ts
5
- declare const Skeleton: (props: any) => react21.JSX.Element;
5
+ declare const Skeleton: (props: any) => react19.JSX.Element;
6
6
  //#endregion
7
7
  export { Skeleton };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react19 from "react";
2
+ import * as react20 from "react";
3
3
 
4
4
  //#region src/components/time-picker/index.d.ts
5
- declare const TimePicker: (props: any) => react19.JSX.Element;
5
+ declare const TimePicker: (props: any) => react20.JSX.Element;
6
6
  //#endregion
7
7
  export { TimePicker };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react20 from "react";
2
+ import * as react21 from "react";
3
3
 
4
4
  //#region src/components/upload/index.d.ts
5
- declare const Upload: (props: any) => react20.JSX.Element;
5
+ declare const Upload: (props: any) => react21.JSX.Element;
6
6
  //#endregion
7
7
  export { Upload };
@@ -96,6 +96,26 @@ var en_US_default = {
96
96
  "record-board-toolbar-default-filter-disabled": "Disabled",
97
97
  "record-board-toolbar-default-filter-keyword": "Keyword",
98
98
  "record-board-toolbar-default-placeholder": "Please enter",
99
+ "pisell2.recordBoard.toolbar.find": "Find",
100
+ "pisell2.recordBoard.toolbar.findPlaceholder": "Please enter search content",
101
+ "pisell2.recordBoard.toolbar.sort": "Sort",
102
+ "pisell2.recordBoard.toolbar.filter": "Filter",
103
+ "pisell2.recordBoard.toolbar.reset": "Reset",
104
+ "pisell2.salesManagement.pagination.previous": "Previous",
105
+ "pisell2.salesManagement.pagination.next": "Next",
106
+ "pisell2.salesManagement.pagination.showTotal": (start, end) => `Page ${start} of ${end}`,
107
+ "pisell2.salesManagement.pagination.total": (current, max) => `Page ${current} of ${max}`,
108
+ "pisell2.salesManagement.batchActionBar.selectedCount": (count) => `${count} item(s) selected`,
109
+ "pisell2.salesManagement.batchActionBar.more": "More",
110
+ "pisell2.salesManagement.batchActionBar.selectAll": "Select All",
111
+ "pisell2.salesManagement.batchActionBar.invert": "Invert Selection",
112
+ "pisell2.salesManagement.batchActionBar.clear": "Clear Selection",
113
+ "pisell2.salesManagement.batchActionBar.delete": "Delete",
114
+ "pisell2.salesManagement.batchActionBar.confirmTitle": "Confirm",
115
+ "pisell2.salesManagement.batchActionBar.deleteConfirmTitle": "Confirm Delete",
116
+ "pisell2.salesManagement.batchActionBar.deleteConfirmContent": (count) => `Are you sure you want to delete ${count} selected item(s)?`,
117
+ "pisell2.salesManagement.batchActionBar.deleteConfirmOk": "OK",
118
+ "pisell2.salesManagement.batchActionBar.deleteConfirmCancel": "Cancel",
99
119
  "shell-frame-statistic-expand": "Expand statistics",
100
120
  "shell-frame-statistic-collapse": "Collapse statistics",
101
121
  "table-action-export-import-export-success": "Export successful! ",
@@ -13,8 +13,8 @@ const langMap = {
13
13
  "zh-HK": require_zh_TW.default,
14
14
  en: require_en_US.default,
15
15
  original: require_en_US.default,
16
- "ja": require_ja.default,
17
- "pt": require_pt.default
16
+ ja: require_ja.default,
17
+ pt: require_pt.default
18
18
  };
19
19
  const getText = (id) => {
20
20
  var _langMap$locale;