@pisell/materials 1.0.145 → 1.0.147

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 (67) 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/designer.html +2 -2
  5. package/build/lowcode/index.html +2 -2
  6. package/build/lowcode/index.js +1 -1
  7. package/build/lowcode/meta.js +1 -1
  8. package/build/lowcode/render/default/view.js +17 -19
  9. package/build/lowcode/view.js +16 -18
  10. package/dist/umd/materials.min.css +1 -0
  11. package/dist/umd/materials.min.js +1 -0
  12. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  13. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  14. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  15. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  16. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  17. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  18. package/es/components/Pagination/index.js +5 -9
  19. package/es/components/classicLayout/index.d.ts +4 -0
  20. package/es/components/classicLayout/index.js +25 -0
  21. package/es/components/classicLayout/index.less +22 -0
  22. package/es/components/list/index.d.ts +7 -0
  23. package/es/components/list/index.js +19 -0
  24. package/es/components/list/index.less +13 -0
  25. package/es/components/table/Table/index.js +2 -1
  26. package/es/components/table/TableFilter/numberFilter.js +5 -4
  27. package/es/components/table/TableFilter/selectFilter.js +3 -2
  28. package/es/components/table/TableFilter/stringFilter.js +4 -3
  29. package/es/components/table/model.js +1 -29
  30. package/es/index.d.ts +2 -1
  31. package/es/index.js +3 -2
  32. package/es/locales/en-US.d.ts +11 -0
  33. package/es/locales/en-US.js +12 -0
  34. package/es/locales/index.d.ts +1 -0
  35. package/es/locales/index.js +21 -0
  36. package/es/locales/zh-CN.d.ts +11 -0
  37. package/es/locales/zh-CN.js +12 -0
  38. package/es/locales/zh-TW.d.ts +11 -0
  39. package/es/locales/zh-TW.js +12 -0
  40. package/es/utils/locale.d.ts +1 -0
  41. package/es/utils/locale.js +5 -0
  42. package/lib/components/Pagination/index.js +5 -3
  43. package/lib/components/classicLayout/index.d.ts +4 -0
  44. package/lib/components/classicLayout/index.js +59 -0
  45. package/lib/components/classicLayout/index.less +22 -0
  46. package/lib/components/list/index.d.ts +7 -0
  47. package/lib/components/list/index.js +54 -0
  48. package/lib/components/list/index.less +13 -0
  49. package/lib/components/table/Table/index.js +2 -1
  50. package/lib/components/table/TableFilter/numberFilter.js +5 -4
  51. package/lib/components/table/TableFilter/selectFilter.js +3 -2
  52. package/lib/components/table/TableFilter/stringFilter.js +4 -3
  53. package/lib/components/table/model.js +1 -34
  54. package/lib/index.d.ts +2 -1
  55. package/lib/index.js +26 -23
  56. package/lib/locales/en-US.d.ts +11 -0
  57. package/lib/locales/en-US.js +34 -0
  58. package/lib/locales/index.d.ts +1 -0
  59. package/lib/locales/index.js +58 -0
  60. package/lib/locales/zh-CN.d.ts +11 -0
  61. package/lib/locales/zh-CN.js +34 -0
  62. package/lib/locales/zh-TW.d.ts +11 -0
  63. package/lib/locales/zh-TW.js +34 -0
  64. package/lib/utils/locale.d.ts +1 -0
  65. package/lib/utils/locale.js +32 -0
  66. package/lowcode/tabs/meta.ts +0 -3
  67. package/package.json +3 -3
@@ -0,0 +1,54 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/list/index.tsx
30
+ var list_exports = {};
31
+ __export(list_exports, {
32
+ default: () => list_default
33
+ });
34
+ module.exports = __toCommonJS(list_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_classnames = __toESM(require("classnames"));
37
+ var import_antd = require("antd");
38
+ var import_index = require("./index.less");
39
+ var prefix = "pisell-lowcode-";
40
+ var List = (props) => {
41
+ var _a;
42
+ const { className } = props;
43
+ return /* @__PURE__ */ import_react.default.createElement(
44
+ import_antd.List,
45
+ {
46
+ ...props,
47
+ className: (0, import_classnames.default)(className, {
48
+ [`${prefix}list-one-line-wrap`]: (_a = props == null ? void 0 : props.grid) == null ? void 0 : _a.oneLine
49
+ })
50
+ }
51
+ );
52
+ };
53
+ List.Item = import_antd.List.Item;
54
+ var list_default = List;
@@ -0,0 +1,13 @@
1
+ @pisell-prefix: pisell-lowcode;
2
+
3
+ .@{pisell-prefix} {
4
+ &-list-one-line-wrap {
5
+ .pisell-lowcode-row {
6
+ flex-flow: row nowrap;
7
+ overflow: auto;
8
+ & > div {
9
+ flex-shrink: 0;
10
+ }
11
+ }
12
+ }
13
+ }
@@ -46,6 +46,7 @@ var import_stringFilter = __toESM(require("../TableFilter/stringFilter"));
46
46
  var import_numberFilter = __toESM(require("../TableFilter/numberFilter"));
47
47
  var import_selectFilter = __toESM(require("../TableFilter/selectFilter"));
48
48
  var import_SortIcon = __toESM(require("../TableFilter/SortIcon"));
49
+ var import_locales = require("../../../locales");
49
50
  var GridViewTable = ({ tableProps }) => {
50
51
  const responsive = (0, import_hooks.useResponsive)();
51
52
  const { state, dispatch } = (0, import_hooks.useSharedState)(import_model.Context);
@@ -130,7 +131,7 @@ var GridViewTable = ({ tableProps }) => {
130
131
  (total, range, pageSize) => {
131
132
  let start = range[0] - 1;
132
133
  let _current = start / pageSize + 1;
133
- return `Page ${_current} of ${Math.ceil(total / pageSize)}`;
134
+ return (0, import_locales.getText)("table-pagination-total")(_current, Math.ceil(total / pageSize));
134
135
  },
135
136
  []
136
137
  );
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_FilterFunnel01 = __toESM(require("@pisell/icon/es/FilterFunnel01"));
38
38
  var import_FilterFunnel01Fill = __toESM(require("@pisell/icon/es/FilterFunnel01Fill"));
39
+ var import_locales = require("../../../locales");
39
40
  var import_index = require("./index.less");
40
41
  var getColumnNumberProps = ({
41
42
  dataIndex
@@ -65,7 +66,7 @@ var getColumnNumberProps = ({
65
66
  };
66
67
  setSelectedKeys([newVal]);
67
68
  },
68
- placeholder: "Min",
69
+ placeholder: (0, import_locales.getText)("table-filter-min"),
69
70
  onPressEnter: () => confirm(),
70
71
  style: { width: 105 }
71
72
  }
@@ -73,7 +74,7 @@ var getColumnNumberProps = ({
73
74
  import_antd.InputNumber,
74
75
  {
75
76
  value: (_b = selectedKeys == null ? void 0 : selectedKeys[0]) == null ? void 0 : _b.max,
76
- placeholder: "Max",
77
+ placeholder: (0, import_locales.getText)("table-filter-max"),
77
78
  onChange: (value) => {
78
79
  const newVal = {
79
80
  ...(selectedKeys == null ? void 0 : selectedKeys[0]) || {},
@@ -100,9 +101,9 @@ var getColumnNumberProps = ({
100
101
  },
101
102
  block: true
102
103
  },
103
- "Clear"
104
+ (0, import_locales.getText)("table-filter-clear")
104
105
  ),
105
- /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: () => confirm(), block: true }, "Filter")
106
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: () => confirm(), block: true }, (0, import_locales.getText)("table-filter-filter"))
106
107
  )
107
108
  );
108
109
  },
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_FilterFunnel01Fill = __toESM(require("@pisell/icon/es/FilterFunnel01Fill"));
38
38
  var import_FilterFunnel01 = __toESM(require("@pisell/icon/es/FilterFunnel01"));
39
+ var import_locales = require("../../../locales");
39
40
  var import_index = require("./index.less");
40
41
  var FilterDropdown = (props) => {
41
42
  const { setSelectedKeys, selectedKeys, confirm, clearFilters, filters } = props;
@@ -99,7 +100,7 @@ var FilterDropdown = (props) => {
99
100
  block: true,
100
101
  style: { flex: 1 }
101
102
  },
102
- "Clear"
103
+ (0, import_locales.getText)("table-filter-clear")
103
104
  ),
104
105
  /* @__PURE__ */ import_react.default.createElement(
105
106
  import_antd.Button,
@@ -109,7 +110,7 @@ var FilterDropdown = (props) => {
109
110
  block: true,
110
111
  style: { flex: 1 }
111
112
  },
112
- "Filter"
113
+ (0, import_locales.getText)("table-filter-filter")
113
114
  )
114
115
  )
115
116
  );
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(stringFilter_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_SearchLg = __toESM(require("@pisell/icon/es/SearchLg"));
38
+ var import_locales = require("../../../locales");
38
39
  var import_index = require("./index.less");
39
40
  var getColumnStringProps = ({
40
41
  dataIndex
@@ -55,7 +56,7 @@ var getColumnStringProps = ({
55
56
  import_antd.Input,
56
57
  {
57
58
  prefix: /* @__PURE__ */ import_react.default.createElement(import_SearchLg.default, null),
58
- placeholder: "Search",
59
+ placeholder: (0, import_locales.getText)("table-filter-search"),
59
60
  value: selectedKeys[0],
60
61
  onChange: (e) => setSelectedKeys(e.target.value ? [e.target.value] : []),
61
62
  onPressEnter: () => confirm(),
@@ -78,7 +79,7 @@ var getColumnStringProps = ({
78
79
  block: true,
79
80
  style: { flex: 1 }
80
81
  },
81
- "Clear"
82
+ (0, import_locales.getText)("table-filter-clear")
82
83
  ),
83
84
  /* @__PURE__ */ import_react.default.createElement(
84
85
  import_antd.Button,
@@ -88,7 +89,7 @@ var getColumnStringProps = ({
88
89
  block: true,
89
90
  style: { flex: 1 }
90
91
  },
91
- "Filter"
92
+ (0, import_locales.getText)("table-filter-filter")
92
93
  )
93
94
  )
94
95
  ),
@@ -53,39 +53,7 @@ var defaultState = {
53
53
  image: ["https://file.mypisell-dev.com//static/avatar.png"]
54
54
  }
55
55
  ],
56
- defaultColumns: [
57
- {
58
- title: "Name",
59
- dataIndex: "name",
60
- field_type: "text",
61
- editable: true,
62
- width: 200,
63
- fixed: "left",
64
- lock: true
65
- },
66
- {
67
- title: "Age",
68
- dataIndex: "age",
69
- editable: true,
70
- width: 200,
71
- field_type: "text",
72
- lock: true
73
- },
74
- {
75
- title: "Address",
76
- dataIndex: "address",
77
- editable: true,
78
- width: 200,
79
- field_type: "text"
80
- },
81
- {
82
- title: "Image",
83
- dataIndex: "image",
84
- editable: true,
85
- width: 200,
86
- field_type: "image"
87
- }
88
- ],
56
+ defaultColumns: [],
89
57
  currentCell: null,
90
58
  quickFilter: [],
91
59
  otherFilter: [],
@@ -135,7 +103,6 @@ var { Provider, Context } = (0, import_miniRedux.default)({
135
103
  var formatColumn = (item) => {
136
104
  let _other = {
137
105
  editable: true,
138
- width: 100,
139
106
  field_type: "text",
140
107
  lock: true,
141
108
  ...item.other || {}
package/lib/index.d.ts CHANGED
@@ -14,7 +14,6 @@ export { Empty } from "antd";
14
14
  export { Grid } from "antd";
15
15
  export { Image } from "antd";
16
16
  export { InputNumber } from "antd";
17
- export { List } from "antd";
18
17
  export { message } from "antd";
19
18
  export { Mentions } from "antd";
20
19
  export { Statistic } from "antd";
@@ -66,3 +65,5 @@ export { default as Translation } from "./components/translation";
66
65
  export { default as SortableList } from "./components/sortableList";
67
66
  export { default as RecordView } from "./components/record-view";
68
67
  export { default as QRCode } from "./components/qrcode";
68
+ export { default as ClassicLayout } from "./components/classicLayout";
69
+ export { default as List } from "./components/list";
package/lib/index.js CHANGED
@@ -42,6 +42,7 @@ __export(src_exports, {
42
42
  Carousel: () => import_antd9.Carousel,
43
43
  Cascader: () => import_cascader.default,
44
44
  Checkbox: () => import_checkbox.default,
45
+ ClassicLayout: () => import_classicLayout.default,
45
46
  Col: () => import_antd10.Col,
46
47
  Collapse: () => import_antd8.Collapse,
47
48
  ConfigProvider: () => import_config_provider.default,
@@ -59,44 +60,44 @@ __export(src_exports, {
59
60
  Image: () => import_antd15.Image,
60
61
  Input: () => import_input.default,
61
62
  InputNumber: () => import_antd16.InputNumber,
62
- List: () => import_antd17.List,
63
- Mentions: () => import_antd19.Mentions,
63
+ List: () => import_list.default,
64
+ Mentions: () => import_antd18.Mentions,
64
65
  Modal: () => import_modal.default,
65
66
  Page: () => import_page.default,
66
- Pagination: () => import_antd22.Pagination,
67
- Popconfirm: () => import_antd23.Popconfirm,
68
- Popover: () => import_antd24.Popover,
69
- Progress: () => import_antd25.Progress,
67
+ Pagination: () => import_antd21.Pagination,
68
+ Popconfirm: () => import_antd22.Popconfirm,
69
+ Popover: () => import_antd23.Popover,
70
+ Progress: () => import_antd24.Progress,
70
71
  QRCode: () => import_qrcode.default,
71
72
  Radio: () => import_radio.default,
72
- Rate: () => import_antd26.Rate,
73
+ Rate: () => import_antd25.Rate,
73
74
  RecordView: () => import_record_view.default,
74
- Result: () => import_antd27.Result,
75
- Row: () => import_antd28.Row,
75
+ Result: () => import_antd26.Result,
76
+ Row: () => import_antd27.Row,
76
77
  Select: () => import_select.default,
77
78
  Skeleton: () => import_skeleton.default,
78
79
  Slider: () => import_slider.default,
79
80
  SortableList: () => import_sortableList.default,
80
- Space: () => import_antd29.Space,
81
- Spin: () => import_antd30.Spin,
82
- Statistic: () => import_antd20.Statistic,
83
- Steps: () => import_antd31.Steps,
84
- Switch: () => import_antd32.Switch,
81
+ Space: () => import_antd28.Space,
82
+ Spin: () => import_antd29.Spin,
83
+ Statistic: () => import_antd19.Statistic,
84
+ Steps: () => import_antd30.Steps,
85
+ Switch: () => import_antd31.Switch,
85
86
  Table: () => import_table.default,
86
87
  Tabs: () => import_tabs.default,
87
- Tag: () => import_antd35.Tag,
88
+ Tag: () => import_antd34.Tag,
88
89
  TimePicker: () => import_time_picker.default,
89
- Timeline: () => import_antd36.Timeline,
90
- Tooltip: () => import_antd37.Tooltip,
91
- Transfer: () => import_antd33.Transfer,
90
+ Timeline: () => import_antd35.Timeline,
91
+ Tooltip: () => import_antd36.Tooltip,
92
+ Transfer: () => import_antd32.Transfer,
92
93
  Translation: () => import_translation.default,
93
- Tree: () => import_antd34.Tree,
94
+ Tree: () => import_antd33.Tree,
94
95
  TreeSelect: () => import_tree_select.default,
95
96
  Typography: () => import_typography.default,
96
97
  Upload: () => import_upload.default,
97
- message: () => import_antd18.message,
98
- notification: () => import_antd21.notification,
99
- version: () => import_antd38.version
98
+ message: () => import_antd17.message,
99
+ notification: () => import_antd20.notification,
100
+ version: () => import_antd37.version
100
101
  });
101
102
  module.exports = __toCommonJS(src_exports);
102
103
  var import_antd = require("antd");
@@ -136,7 +137,6 @@ var import_antd34 = require("antd");
136
137
  var import_antd35 = require("antd");
137
138
  var import_antd36 = require("antd");
138
139
  var import_antd37 = require("antd");
139
- var import_antd38 = require("antd");
140
140
  var import_typography = __toESM(require("./components/typography"));
141
141
  var import_skeleton = __toESM(require("./components/skeleton"));
142
142
  var import_checkbox = __toESM(require("./components/checkbox"));
@@ -167,6 +167,8 @@ var import_translation = __toESM(require("./components/translation"));
167
167
  var import_sortableList = __toESM(require("./components/sortableList"));
168
168
  var import_record_view = __toESM(require("./components/record-view"));
169
169
  var import_qrcode = __toESM(require("./components/qrcode"));
170
+ var import_classicLayout = __toESM(require("./components/classicLayout"));
171
+ var import_list = __toESM(require("./components/list"));
170
172
  // Annotate the CommonJS export names for ESM import in node:
171
173
  0 && (module.exports = {
172
174
  Affix,
@@ -182,6 +184,7 @@ var import_qrcode = __toESM(require("./components/qrcode"));
182
184
  Carousel,
183
185
  Cascader,
184
186
  Checkbox,
187
+ ClassicLayout,
185
188
  Col,
186
189
  Collapse,
187
190
  ConfigProvider,
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ "table-filter-search": string;
3
+ "table-filter-clear": string;
4
+ "table-filter-filter": string;
5
+ "table-filter-min": string;
6
+ "table-filter-max": string;
7
+ "table-pagination-previous": string;
8
+ "table-pagination-next": string;
9
+ "table-pagination-total": (current: string, total: string) => string;
10
+ };
11
+ export default _default;
@@ -0,0 +1,34 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/locales/en-US.ts
20
+ var en_US_exports = {};
21
+ __export(en_US_exports, {
22
+ default: () => en_US_default
23
+ });
24
+ module.exports = __toCommonJS(en_US_exports);
25
+ var en_US_default = {
26
+ "table-filter-search": "Search",
27
+ "table-filter-clear": "Clear",
28
+ "table-filter-filter": "Filter",
29
+ "table-filter-min": "Min",
30
+ "table-filter-max": "Max",
31
+ "table-pagination-previous": "Previous",
32
+ "table-pagination-next": "Next",
33
+ "table-pagination-total": (current, total) => `Page ${current} of ${total}`
34
+ };
@@ -0,0 +1 @@
1
+ export declare const getText: (id: string) => any;
@@ -0,0 +1,58 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/locales/index.ts
30
+ var locales_exports = {};
31
+ __export(locales_exports, {
32
+ getText: () => getText
33
+ });
34
+ module.exports = __toCommonJS(locales_exports);
35
+ var import_zh_CN = __toESM(require("./zh-CN"));
36
+ var import_en_US = __toESM(require("./en-US"));
37
+ var import_zh_TW = __toESM(require("./zh-TW"));
38
+ var import_locale = require("../utils/locale");
39
+ var langMap = {
40
+ "zh-CN": import_zh_CN.default,
41
+ "en-US": import_en_US.default,
42
+ "zh-TW": import_zh_TW.default
43
+ };
44
+ var getText = (id) => {
45
+ if (!id) {
46
+ return;
47
+ }
48
+ let locale = (0, import_locale.getCurrentLocale)();
49
+ if (!locale) {
50
+ localStorage.setItem("umi_locale", "en-US");
51
+ locale = "en-US";
52
+ }
53
+ return langMap[locale][id] || id;
54
+ };
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ getText
58
+ });
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ 'table-filter-search': string;
3
+ 'table-filter-clear': string;
4
+ 'table-filter-filter': string;
5
+ 'table-filter-min': string;
6
+ 'table-filter-max': string;
7
+ 'table-pagination-previous': string;
8
+ 'table-pagination-next': string;
9
+ 'table-pagination-total': (current: string, total: string) => string;
10
+ };
11
+ export default _default;
@@ -0,0 +1,34 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/locales/zh-CN.ts
20
+ var zh_CN_exports = {};
21
+ __export(zh_CN_exports, {
22
+ default: () => zh_CN_default
23
+ });
24
+ module.exports = __toCommonJS(zh_CN_exports);
25
+ var zh_CN_default = {
26
+ "table-filter-search": "搜索",
27
+ "table-filter-clear": "清除",
28
+ "table-filter-filter": "筛选",
29
+ "table-filter-min": "最小",
30
+ "table-filter-max": "最大",
31
+ "table-pagination-previous": "上一页",
32
+ "table-pagination-next": "下一页",
33
+ "table-pagination-total": (current, total) => `第${current}页 共${total}页`
34
+ };
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ 'table-filter-search': string;
3
+ 'table-filter-clear': string;
4
+ 'table-filter-filter': string;
5
+ 'table-filter-min': string;
6
+ 'table-filter-max': string;
7
+ 'table-pagination-previous': string;
8
+ 'table-pagination-next': string;
9
+ 'table-pagination-total': (current: string, total: string) => string;
10
+ };
11
+ export default _default;
@@ -0,0 +1,34 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/locales/zh-TW.ts
20
+ var zh_TW_exports = {};
21
+ __export(zh_TW_exports, {
22
+ default: () => zh_TW_default
23
+ });
24
+ module.exports = __toCommonJS(zh_TW_exports);
25
+ var zh_TW_default = {
26
+ "table-filter-search": "搜索",
27
+ "table-filter-clear": "清除",
28
+ "table-filter-filter": "篩選",
29
+ "table-filter-min": "最小",
30
+ "table-filter-max": "最大",
31
+ "table-pagination-previous": "上一頁",
32
+ "table-pagination-next": "下一頁",
33
+ "table-pagination-total": (current, total) => `第${current}頁 共${total}頁`
34
+ };
@@ -0,0 +1 @@
1
+ export declare const getCurrentLocale: () => string;
@@ -0,0 +1,32 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/utils/locale.ts
20
+ var locale_exports = {};
21
+ __export(locale_exports, {
22
+ getCurrentLocale: () => getCurrentLocale
23
+ });
24
+ module.exports = __toCommonJS(locale_exports);
25
+ var getCurrentLocale = () => {
26
+ const locale = localStorage.getItem("umi_locale") || "en-US";
27
+ return locale;
28
+ };
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ getCurrentLocale
32
+ });
@@ -422,9 +422,6 @@ export default {
422
422
  title: { label: "侧栏宽度", tip: "sidebarWidth | 侧栏宽度" },
423
423
  propType: { type: "oneOfType", value: ["string", "number"] },
424
424
  setter: ["NumberSetter", "StringSetter", "VariableSetter"],
425
- condition(target) {
426
- return target.getProps().getPropValue("type") === "icon-label";
427
- },
428
425
  },
429
426
  {
430
427
  name: "onChange",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.145",
3
+ "version": "1.0.147",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -56,8 +56,8 @@
56
56
  "ahooks": "^3.7.6",
57
57
  "react-infinite-scroll-component": "^6.1.0",
58
58
  "@pisell/utils": "1.0.19",
59
- "@pisell/icon": "0.0.8",
60
- "@pisell/date-picker": "1.0.52"
59
+ "@pisell/date-picker": "1.0.52",
60
+ "@pisell/icon": "0.0.8"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "react": "^18.0.0",