@pisell/materials 1.0.405 → 1.0.407

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 (142) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +4 -4
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +16 -59
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +19 -62
  11. package/dist/umd/materials.min.css +1 -0
  12. package/dist/umd/materials.min.js +1 -0
  13. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  14. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  15. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  16. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  17. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  18. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  19. package/es/components/date-picker/index.js +2 -2
  20. package/es/components/drag-sort-tree/index.d.ts +1 -0
  21. package/es/components/drag-sort-tree/index.js +1 -2
  22. package/es/components/pisell-config-provider/index.js +0 -2
  23. package/es/components/pisellModal/components/functions/index.d.ts +5 -23
  24. package/es/components/pisellModal/components/functions/index.js +2 -7
  25. package/es/components/pisellModal/index.d.ts +5 -20
  26. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
  27. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +26 -30
  28. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +1 -3
  29. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
  30. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +21 -25
  31. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
  32. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +31 -34
  33. package/es/components/table/Actions/component/ExportImport/index.d.ts +3 -3
  34. package/es/components/table/Actions/component/ExportImport/index.js +25 -32
  35. package/es/components/table/BasicTable/index.js +3 -5
  36. package/es/components/table/Gallery/index.js +1 -2
  37. package/es/components/table/Table/fields/rangePicker/Edit/index.js +11 -13
  38. package/es/components/table/Table/index.d.ts +2 -2
  39. package/es/components/table/Table/index.js +42 -68
  40. package/es/components/table/Table/index.less +0 -3
  41. package/es/components/table/Table/utils.d.ts +2 -14
  42. package/es/components/table/Table/utils.js +2 -6
  43. package/es/components/table/View/index.d.ts +2 -2
  44. package/es/components/table/View/index.js +16 -27
  45. package/es/components/table/hooks/useGenScroll.js +1 -1
  46. package/es/components/table/hooks/useTableSetting.js +7 -29
  47. package/es/components/table/hooks/useTransDataSource.d.ts +0 -1
  48. package/es/components/table/hooks/useTransDataSource.js +6 -8
  49. package/es/components/table/index.js +5 -7
  50. package/es/components/table/index.less +0 -9
  51. package/es/components/table/serve.d.ts +0 -1
  52. package/es/components/table/serve.js +7 -38
  53. package/es/components/table/types.d.ts +0 -2
  54. package/es/index.d.ts +1 -3
  55. package/es/index.js +1 -3
  56. package/es/locales/en-US.d.ts +0 -12
  57. package/es/locales/en-US.js +0 -13
  58. package/es/locales/zh-CN.d.ts +0 -12
  59. package/es/locales/zh-CN.js +0 -13
  60. package/es/locales/zh-TW.d.ts +0 -12
  61. package/es/locales/zh-TW.js +0 -13
  62. package/lib/components/date-picker/index.js +2 -2
  63. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  64. package/lib/components/drag-sort-tree/index.js +1 -0
  65. package/lib/components/pisell-config-provider/index.js +0 -2
  66. package/lib/components/pisellModal/components/functions/index.d.ts +5 -23
  67. package/lib/components/pisellModal/components/functions/index.js +7 -13
  68. package/lib/components/pisellModal/index.d.ts +5 -20
  69. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
  70. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +2 -6
  71. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +1 -2
  72. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
  73. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +2 -6
  74. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
  75. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +2 -4
  76. package/lib/components/table/Actions/component/ExportImport/index.d.ts +3 -3
  77. package/lib/components/table/Actions/component/ExportImport/index.js +8 -13
  78. package/lib/components/table/BasicTable/index.js +3 -2
  79. package/lib/components/table/Gallery/index.js +1 -2
  80. package/lib/components/table/Table/fields/rangePicker/Edit/index.js +9 -1
  81. package/lib/components/table/Table/index.d.ts +2 -2
  82. package/lib/components/table/Table/index.js +34 -61
  83. package/lib/components/table/Table/index.less +0 -3
  84. package/lib/components/table/Table/utils.d.ts +2 -14
  85. package/lib/components/table/Table/utils.js +1 -7
  86. package/lib/components/table/View/index.d.ts +2 -2
  87. package/lib/components/table/View/index.js +19 -28
  88. package/lib/components/table/hooks/useGenScroll.js +1 -1
  89. package/lib/components/table/hooks/useTableSetting.js +11 -26
  90. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -1
  91. package/lib/components/table/hooks/useTransDataSource.js +5 -6
  92. package/lib/components/table/index.js +4 -4
  93. package/lib/components/table/index.less +0 -9
  94. package/lib/components/table/serve.d.ts +0 -1
  95. package/lib/components/table/serve.js +4 -24
  96. package/lib/components/table/types.d.ts +0 -2
  97. package/lib/index.d.ts +1 -3
  98. package/lib/index.js +0 -6
  99. package/lib/locales/en-US.d.ts +0 -12
  100. package/lib/locales/en-US.js +0 -13
  101. package/lib/locales/zh-CN.d.ts +0 -12
  102. package/lib/locales/zh-CN.js +0 -13
  103. package/lib/locales/zh-TW.d.ts +0 -12
  104. package/lib/locales/zh-TW.js +0 -13
  105. package/lowcode/page/meta.ts +1 -0
  106. package/package.json +3 -3
  107. package/es/components/browserSelect/chevron-down.png +0 -0
  108. package/es/components/browserSelect/index.d.ts +0 -15
  109. package/es/components/browserSelect/index.js +0 -36
  110. package/es/components/browserSelect/index.less +0 -18
  111. package/es/components/date-picker/constants.d.ts +0 -39
  112. package/es/components/date-picker/constants.js +0 -76
  113. package/es/components/date-picker/datePickerCpt.d.ts +0 -8
  114. package/es/components/date-picker/datePickerCpt.js +0 -370
  115. package/es/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
  116. package/es/components/date-picker/hooks/useMediaQuery.js +0 -28
  117. package/es/components/date-picker/index.less +0 -1880
  118. package/es/components/picker-view/index.d.ts +0 -2
  119. package/es/components/picker-view/index.js +0 -2
  120. package/es/components/pisellTags/index.d.ts +0 -13
  121. package/es/components/pisellTags/index.js +0 -83
  122. package/es/components/pisellTags/index.less +0 -17
  123. package/es/components/pisellTags/utils.d.ts +0 -1
  124. package/es/components/pisellTags/utils.js +0 -89
  125. package/lib/components/browserSelect/chevron-down.png +0 -0
  126. package/lib/components/browserSelect/index.d.ts +0 -15
  127. package/lib/components/browserSelect/index.js +0 -59
  128. package/lib/components/browserSelect/index.less +0 -18
  129. package/lib/components/date-picker/constants.d.ts +0 -39
  130. package/lib/components/date-picker/constants.js +0 -78
  131. package/lib/components/date-picker/datePickerCpt.d.ts +0 -8
  132. package/lib/components/date-picker/datePickerCpt.js +0 -403
  133. package/lib/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
  134. package/lib/components/date-picker/hooks/useMediaQuery.js +0 -43
  135. package/lib/components/date-picker/index.less +0 -1880
  136. package/lib/components/picker-view/index.d.ts +0 -2
  137. package/lib/components/picker-view/index.js +0 -36
  138. package/lib/components/pisellTags/index.d.ts +0 -13
  139. package/lib/components/pisellTags/index.js +0 -113
  140. package/lib/components/pisellTags/index.less +0 -17
  141. package/lib/components/pisellTags/utils.d.ts +0 -1
  142. package/lib/components/pisellTags/utils.js +0 -86
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
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
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
 
29
19
  // src/components/table/hooks/useTableSetting.ts
@@ -34,10 +24,7 @@ __export(useTableSetting_exports, {
34
24
  module.exports = __toCommonJS(useTableSetting_exports);
35
25
  var import_react = require("react");
36
26
  var import_utils = require("../Table/utils");
37
- var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
38
- var import_ahooks = require("ahooks");
39
27
  var useTableSetting = (params) => {
40
- var _a;
41
28
  const {
42
29
  tableId,
43
30
  filter,
@@ -51,29 +38,27 @@ var useTableSetting = (params) => {
51
38
  currentSettingHash,
52
39
  exportImport
53
40
  } = params;
54
- const context = (0, import_useEngineContext.default)();
55
- const { isTerminal, interaction } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
56
41
  const columnsMap = (0, import_react.useMemo)(() => {
57
42
  return new Map(propsColumns.map((item) => [item.key, item]));
58
43
  }, [propsColumns]);
59
44
  const columns = (0, import_react.useMemo)(() => {
60
- var _a2;
45
+ var _a;
61
46
  if (currentViewMode === "grid") {
62
47
  return propsColumns;
63
48
  } else if (currentViewMode === "gallery") {
64
- return (((_a2 = gallery == null ? void 0 : gallery.content) == null ? void 0 : _a2.fields) || []).filter((item) => item.show).map((item) => columnsMap.get(item.columnKey)).filter(Boolean);
49
+ return (((_a = gallery == null ? void 0 : gallery.content) == null ? void 0 : _a.fields) || []).filter((item) => item.show).map((item) => columnsMap.get(item.columnKey)).filter(Boolean);
65
50
  }
66
51
  return propsColumns;
67
52
  }, [propsColumns, currentViewMode, gallery, columnsMap]);
68
53
  const { list, quickFilterMaxLength, sortButtonShow } = filter || {};
69
54
  const defaultGalleryCoverSetting = (0, import_react.useMemo)(() => {
70
- var _a2, _b;
55
+ var _a, _b;
71
56
  return {
72
- coverObjectFit: (_a2 = gallery == null ? void 0 : gallery.cover) == null ? void 0 : _a2.objectFit,
57
+ coverObjectFit: (_a = gallery == null ? void 0 : gallery.cover) == null ? void 0 : _a.objectFit,
73
58
  coverField: (_b = columns.find(
74
59
  (column) => {
75
- var _a3, _b2;
76
- return column.key === ((_b2 = (_a3 = gallery == null ? void 0 : gallery.cover) == null ? void 0 : _a3.fields) == null ? void 0 : _b2[0]);
60
+ var _a2, _b2;
61
+ return column.key === ((_b2 = (_a2 = gallery == null ? void 0 : gallery.cover) == null ? void 0 : _a2.fields) == null ? void 0 : _b2[0]);
77
62
  }
78
63
  )) == null ? void 0 : _b.dataIndex,
79
64
  compactMode: "default",
@@ -117,7 +102,7 @@ var useTableSetting = (params) => {
117
102
  );
118
103
  const mergedSetting = { ...allSetting, ...currentViewModeSetting };
119
104
  localStorageSettingKeyArr.forEach((item) => {
120
- var _a2, _b, _c, _d;
105
+ var _a, _b, _c, _d;
121
106
  if (item === "view_mode") {
122
107
  setting[item] = view.multiple ? (mergedSetting == null ? void 0 : mergedSetting[item]) || view.defaultViewMode : view.defaultViewMode;
123
108
  } else if (item === "filter_setting") {
@@ -138,7 +123,7 @@ var useTableSetting = (params) => {
138
123
  setting[item] = {
139
124
  ...mergedSetting == null ? void 0 : mergedSetting[item],
140
125
  // 本地没有默认封面效果时取配置中的
141
- coverObjectFit: ((_a2 = mergedSetting == null ? void 0 : mergedSetting[item]) == null ? void 0 : _a2.coverObjectFit) || defaultGalleryCoverSetting.coverObjectFit,
126
+ coverObjectFit: ((_a = mergedSetting == null ? void 0 : mergedSetting[item]) == null ? void 0 : _a.coverObjectFit) || defaultGalleryCoverSetting.coverObjectFit,
142
127
  coverField: ((_b = mergedSetting == null ? void 0 : mergedSetting[item]) == null ? void 0 : _b.coverField) || defaultGalleryCoverSetting.coverField,
143
128
  compactMode: ((_c = mergedSetting == null ? void 0 : mergedSetting[item]) == null ? void 0 : _c.compactMode) || defaultGalleryCoverSetting.compactMode,
144
129
  isShowLabel: ((_d = mergedSetting == null ? void 0 : mergedSetting[item]) == null ? void 0 : _d.isShowLabel) ?? defaultGalleryCoverSetting.isShowLabel
@@ -200,15 +185,15 @@ var useTableSetting = (params) => {
200
185
  quickFilterMaxLength,
201
186
  sortButtonShow
202
187
  ]);
203
- const setTableSetting = (0, import_ahooks.useMemoizedFn)((values) => {
204
- const result = (0, import_utils.setFormValuesToLocalStorage)({
188
+ const setTableSetting = (values) => {
189
+ (0, import_utils.setFormValuesToLocalStorage)({
205
190
  tableId,
206
191
  allValues: values,
207
192
  keys: localStorageSettingKeyArr,
208
193
  currentViewMode,
209
194
  currentSettingHash
210
195
  });
211
- });
196
+ };
212
197
  const tableSetting = (0, import_react.useMemo)(() => {
213
198
  return {
214
199
  ...tableLocalSetting,
@@ -6,7 +6,6 @@ declare type UseTransDataSourceParams = {
6
6
  dataSource: Record<string, any>[];
7
7
  rowKey: string | ((params: any) => string);
8
8
  filter: FilterType;
9
- currentView: 'gallery' | 'table';
10
9
  };
11
10
  declare const useTransDataSource: (params: UseTransDataSourceParams) => Record<string, any>[];
12
11
  export default useTransDataSource;
@@ -33,8 +33,7 @@ var useTransDataSource = (params) => {
33
33
  localPagination,
34
34
  dataSource: pDataSource,
35
35
  rowKey,
36
- filter,
37
- currentView
36
+ filter
38
37
  } = params;
39
38
  const sort = import_antd.Form.useWatch("order_by", { form, preserve: true });
40
39
  const group = import_antd.Form.useWatch("group_by", { form, preserve: true });
@@ -61,7 +60,7 @@ var useTransDataSource = (params) => {
61
60
  return [];
62
61
  }
63
62
  return filter == null ? void 0 : filter.list.filter((item) => item.localFilter);
64
- }, [(0, import_utils2.stringify)(filter)]);
63
+ }, [filter]);
65
64
  const dataSource = (0, import_react.useMemo)(() => {
66
65
  if (!localPagination) {
67
66
  return pDataSource;
@@ -73,7 +72,7 @@ var useTransDataSource = (params) => {
73
72
  if (sortObj) {
74
73
  newDataSource = (0, import_utils2.sortDataSource)(newDataSource, sortObj);
75
74
  }
76
- if (groupDetail && currentView === "table") {
75
+ if (groupDetail) {
77
76
  newDataSource = (0, import_utils2.groupDataSource)(newDataSource, groupDetail, rowKey);
78
77
  }
79
78
  return newDataSource;
@@ -83,9 +82,9 @@ var useTransDataSource = (params) => {
83
82
  sortObj,
84
83
  groupDetail,
85
84
  filterLocalArr,
86
- filters,
87
- currentView
85
+ filters
88
86
  ]);
87
+ console.log("dataSourcedataSource", dataSource);
89
88
  return dataSource;
90
89
  };
91
90
  var useTransDataSource_default = useTransDataSource;
@@ -89,9 +89,9 @@ var GridView = (0, import_model.Provider)(
89
89
  const filterDefaultRef = (0, import_react.useRef)({});
90
90
  const initialValuesRef = (0, import_react.useRef)({});
91
91
  const { width } = (0, import_ahooks.useSize)(wrapRef) || {};
92
- const debouncedWidth = (0, import_ahooks.useDebounce)(width, { wait: 100 });
93
92
  const utils = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils;
94
93
  const tableId = (0, import_react.useMemo)(() => {
94
+ console.log(props, "wh");
95
95
  if (props.__designMode === "design") {
96
96
  return "designMode-mock-table-id";
97
97
  }
@@ -144,13 +144,13 @@ var GridView = (0, import_model.Provider)(
144
144
  }
145
145
  }, [currentSettingHash, tableId]);
146
146
  (0, import_react.useEffect)(() => {
147
- if (debouncedWidth) {
147
+ if (width) {
148
148
  modal.dispatch({
149
149
  type: "setTableWidth",
150
- payload: debouncedWidth || {}
150
+ payload: width || {}
151
151
  });
152
152
  }
153
- }, [debouncedWidth]);
153
+ }, [width]);
154
154
  const { setTableSetting, tableSetting } = (0, import_useTableSetting.default)({
155
155
  tableId,
156
156
  filter,
@@ -9,15 +9,6 @@
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
 
12
- .pisell-lowcode-table-body {
13
- overscroll-behavior: none;
14
- }
15
- .pisell-lowcode-table-placeholder {
16
- .cell-provider {
17
- display: block;
18
- }
19
- }
20
-
21
12
  .pisell-lowcode-table-thead {
22
13
  .pisell-lowcode-table-cell {
23
14
  padding: 0 14px;
@@ -3,7 +3,6 @@ declare type exportParams = {
3
3
  file_name?: string;
4
4
  form_id?: string | number;
5
5
  code?: string;
6
- url?: string;
7
6
  };
8
7
  export declare const exportData: (params: exportParams) => Promise<any>;
9
8
  export declare const batchImport: (params: any) => Promise<any>;
@@ -26,32 +26,12 @@ __export(serve_exports, {
26
26
  });
27
27
  module.exports = __toCommonJS(serve_exports);
28
28
  var import_utils = require("./utils");
29
- var defaultUrl = "/shop/form/data";
30
- var formatApiParams = (params) => {
31
- const _url = (params == null ? void 0 : params.url) || defaultUrl;
32
- let _params = { ...params };
33
- delete _params.url;
34
- return {
35
- url: _url,
36
- params: { ..._params }
37
- };
38
- };
39
29
  var exportData = (params) => {
40
- const _params = formatApiParams(params);
41
- return import_utils.request.getRequest().post(`${_params == null ? void 0 : _params.url}/export`, _params == null ? void 0 : _params.params);
42
- };
43
- var batchImport = (params) => {
44
- const _params = formatApiParams(params);
45
- return import_utils.request.getRequest().post(`${_params == null ? void 0 : _params.url}/import`, _params == null ? void 0 : _params.params);
46
- };
47
- var importTemplate = (params) => {
48
- const _params = formatApiParams(params);
49
- return import_utils.request.getRequest().post(`${_params == null ? void 0 : _params.url}/download-template`, _params == null ? void 0 : _params.params);
50
- };
51
- var historyData = async (params) => {
52
- const _params = formatApiParams(params);
53
- return await import_utils.request.getRequest().get(`${_params == null ? void 0 : _params.url}/task`, _params == null ? void 0 : _params.params);
30
+ return import_utils.request.getRequest().post(`/shop/form/data/export`, params);
54
31
  };
32
+ var batchImport = (params) => import_utils.request.getRequest().post("/shop/form/data/import", params);
33
+ var importTemplate = (params) => import_utils.request.getRequest().post("/shop/form/data/download-template", params);
34
+ var historyData = async (params) => await import_utils.request.getRequest().get("/shop/form/data/task", params);
55
35
  // Annotate the CommonJS export names for ESM import in node:
56
36
  0 && (module.exports = {
57
37
  batchImport,
@@ -177,8 +177,6 @@ export declare type ExportImportType = {
177
177
  templateFileUrl: string;
178
178
  /** 标题 */
179
179
  title: string;
180
- hiddenKeys?: string[];
181
- apiUrl?: string;
182
180
  };
183
181
  export declare type GridViewProps = {
184
182
  columns: any;
package/lib/index.d.ts CHANGED
@@ -72,7 +72,6 @@ export { default as List } from './components/list';
72
72
  export { default as Sort } from './components/sort';
73
73
  export { default as InputNumberRange } from './components/input-number-range';
74
74
  export { default as LowCodePage } from './components/lowCodePage';
75
- export { default as PickerView } from './components/picker-view';
76
75
  export { default as Segmented } from './components/segmented';
77
76
  export { default as VirtualKeyboard } from './components/virtual-keyboard';
78
77
  export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
@@ -102,5 +101,4 @@ export { default as PisellAlert } from './components/pisellAlert';
102
101
  export { default as PisellCard } from './components/pisellCard';
103
102
  export { default as PisellInformationEntry } from './components/pisellInformationEntry';
104
103
  export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
105
- export { globalConfig, default as PisellContext, } from './components/pisell-config-provider/context';
106
- export { default as PisellTags } from './components/pisellTags';
104
+ export { globalConfig, default as PisellContext } from './components/pisell-config-provider/context';
package/lib/index.js CHANGED
@@ -73,7 +73,6 @@ __export(src_exports, {
73
73
  Modal: () => import_modal.default,
74
74
  Page: () => import_page.default,
75
75
  Pagination: () => import_antd22.Pagination,
76
- PickerView: () => import_picker_view.default,
77
76
  PisellAlert: () => import_pisellAlert.default,
78
77
  PisellCard: () => import_pisellCard.default,
79
78
  PisellCardList: () => import_pisellCardList.default,
@@ -90,7 +89,6 @@ __export(src_exports, {
90
89
  PisellModal: () => import_pisellModal.default,
91
90
  PisellRow: () => import_pisellRow.default,
92
91
  PisellScan: () => import_pisellScan.default,
93
- PisellTags: () => import_pisellTags.default,
94
92
  PisellText: () => import_pisellText.default,
95
93
  PisellToast: () => import_pisellToast.default,
96
94
  PisellTooltip: () => import_pisellTooltip.default,
@@ -212,7 +210,6 @@ var import_list = __toESM(require("./components/list"));
212
210
  var import_sort = __toESM(require("./components/sort"));
213
211
  var import_input_number_range = __toESM(require("./components/input-number-range"));
214
212
  var import_lowCodePage = __toESM(require("./components/lowCodePage"));
215
- var import_picker_view = __toESM(require("./components/picker-view"));
216
213
  var import_segmented = __toESM(require("./components/segmented"));
217
214
  var import_virtual_keyboard = __toESM(require("./components/virtual-keyboard"));
218
215
  var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
@@ -243,7 +240,6 @@ var import_pisellCard = __toESM(require("./components/pisellCard"));
243
240
  var import_pisellInformationEntry = __toESM(require("./components/pisellInformationEntry"));
244
241
  var import_usePisellConfig = __toESM(require("./components/pisell-config-provider/hooks/usePisellConfig"));
245
242
  var import_context = __toESM(require("./components/pisell-config-provider/context"));
246
- var import_pisellTags = __toESM(require("./components/pisellTags"));
247
243
  // Annotate the CommonJS export names for ESM import in node:
248
244
  0 && (module.exports = {
249
245
  Affix,
@@ -290,7 +286,6 @@ var import_pisellTags = __toESM(require("./components/pisellTags"));
290
286
  Modal,
291
287
  Page,
292
288
  Pagination,
293
- PickerView,
294
289
  PisellAlert,
295
290
  PisellCard,
296
291
  PisellCardList,
@@ -307,7 +302,6 @@ var import_pisellTags = __toESM(require("./components/pisellTags"));
307
302
  PisellModal,
308
303
  PisellRow,
309
304
  PisellScan,
310
- PisellTags,
311
305
  PisellText,
312
306
  PisellToast,
313
307
  PisellTooltip,
@@ -97,18 +97,6 @@ declare const _default: {
97
97
  'table-action-export-import-log-copy': string;
98
98
  'table-action-export-import-table-success-copy': string;
99
99
  'drag-sort-tree-unavailable-today-tip': string;
100
- 'date-picker-today': string;
101
- 'date-picker-yesterday': string;
102
- 'date-picker-tomorrow': string;
103
- 'date-picker-next_monday': string;
104
- 'date-picker-last_friday': string;
105
- 'date-picker-first_day_of_this_month': string;
106
- 'date-picker-last_day_of_this_month': string;
107
- 'date-picker-first_day_of_next_month': string;
108
- 'date-picker-last_day_of_last_month': string;
109
- 'date-picker-invalid-date': string;
110
- "date-picker-apply": string;
111
- 'date-picker-shortcut-custom': string;
112
100
  'pisell-input-copy-success': string;
113
101
  'pisell-input-copy': string;
114
102
  'pisell-empty-description-no-data': string;
@@ -125,19 +125,6 @@ var en_US_default = {
125
125
  "table-action-export-import-log-copy": "Copy",
126
126
  "table-action-export-import-table-success-copy": "Copy Success",
127
127
  "drag-sort-tree-unavailable-today-tip": "Unavailable today",
128
- // 日期组件
129
- "date-picker-today": "Today",
130
- "date-picker-yesterday": "Yesterday",
131
- "date-picker-tomorrow": "Tomorrow",
132
- "date-picker-next_monday": "Next monday",
133
- "date-picker-last_friday": "Last friday",
134
- "date-picker-first_day_of_this_month": "First day of this month",
135
- "date-picker-last_day_of_this_month": "Last day of this month",
136
- "date-picker-first_day_of_next_month": "First day of next month",
137
- "date-picker-last_day_of_last_month": "Last day of last month",
138
- "date-picker-invalid-date": "Invalid date",
139
- "date-picker-apply": "Apply",
140
- "date-picker-shortcut-custom": "Custom",
141
128
  "pisell-input-copy-success": "Copy Success",
142
129
  "pisell-input-copy": "Copy",
143
130
  // 空状态
@@ -97,18 +97,6 @@ declare const _default: {
97
97
  'table-action-export-import-log-copy': string;
98
98
  'table-action-export-import-table-success-copy': string;
99
99
  'drag-sort-tree-unavailable-today-tip': string;
100
- 'date-picker-today': string;
101
- 'date-picker-yesterday': string;
102
- 'date-picker-tomorrow': string;
103
- 'date-picker-next_monday': string;
104
- 'date-picker-last_friday': string;
105
- 'date-picker-first_day_of_this_month': string;
106
- 'date-picker-last_day_of_this_month': string;
107
- 'date-picker-first_day_of_next_month': string;
108
- 'date-picker-last_day_of_last_month': string;
109
- 'date-picker-invalid-date': string;
110
- "date-picker-apply": string;
111
- 'date-picker-shortcut-custom': string;
112
100
  'pisell-input-copy-success': string;
113
101
  'pisell-input-copy': string;
114
102
  'pisell-empty-description-no-data': string;
@@ -125,19 +125,6 @@ var zh_CN_default = {
125
125
  "table-action-export-import-log-copy": "复制",
126
126
  "table-action-export-import-table-success-copy": "复制成功",
127
127
  "drag-sort-tree-unavailable-today-tip": "今日不可用",
128
- // 日期组件
129
- "date-picker-today": "今天",
130
- "date-picker-yesterday": "昨天",
131
- "date-picker-tomorrow": "明天",
132
- "date-picker-next_monday": "下个星期一",
133
- "date-picker-last_friday": "上个星期五",
134
- "date-picker-first_day_of_this_month": "本月的第一天",
135
- "date-picker-last_day_of_this_month": "本月的最后一天",
136
- "date-picker-first_day_of_next_month": "下个月的第一天",
137
- "date-picker-last_day_of_last_month": "上个月的最后一天",
138
- "date-picker-invalid-date": "无效日期",
139
- "date-picker-apply": "确定",
140
- "date-picker-shortcut-custom": "自定义",
141
128
  "pisell-input-copy-success": "复制成功",
142
129
  "pisell-input-copy": "复制",
143
130
  // 空状态
@@ -97,18 +97,6 @@ declare const _default: {
97
97
  'table-action-export-import-log-copy': string;
98
98
  'table-action-export-import-table-success-copy': string;
99
99
  'drag-sort-tree-unavailable-today-tip': string;
100
- 'date-picker-today': string;
101
- 'date-picker-yesterday': string;
102
- 'date-picker-tomorrow': string;
103
- 'date-picker-next_monday': string;
104
- 'date-picker-last_friday': string;
105
- 'date-picker-first_day_of_this_month': string;
106
- 'date-picker-last_day_of_this_month': string;
107
- 'date-picker-first_day_of_next_month': string;
108
- 'date-picker-last_day_of_last_month': string;
109
- 'date-picker-invalid-date': string;
110
- "date-picker-apply": string;
111
- 'date-picker-shortcut-custom': string;
112
100
  'pisell-input-copy-success': string;
113
101
  'pisell-input-copy': string;
114
102
  'pisell-empty-description-no-data': string;
@@ -125,19 +125,6 @@ var zh_TW_default = {
125
125
  "table-action-export-import-log-copy": "復製",
126
126
  "table-action-export-import-table-success-copy": "復製成功",
127
127
  "drag-sort-tree-unavailable-today-tip": "今日不可用",
128
- // 日期组件
129
- "date-picker-today": "今天",
130
- "date-picker-yesterday": "昨天",
131
- "date-picker-tomorrow": "明天",
132
- "date-picker-next_monday": "下個星期一",
133
- "date-picker-last_friday": "上個星期五",
134
- "date-picker-first_day_of_this_month": "本月的第一天",
135
- "date-picker-last_day_of_this_month": "本月的最後一天",
136
- "date-picker-first_day_of_next_month": "下個月的第一天",
137
- "date-picker-last_day_of_last_month": "上個月的最後一天",
138
- "date-picker-invalid-date": "無效日期",
139
- "date-picker-apply": "确定",
140
- "date-picker-shortcut-custom": "自定義",
141
128
  "pisell-input-copy-success": "復製成功",
142
129
  "pisell-input-copy": "復製",
143
130
  // 空状态
@@ -25,6 +25,7 @@ const PageMeta: ComponentMetadata = {
25
25
  ],
26
26
  supports: {
27
27
  style: true,
28
+ className: true,
28
29
  },
29
30
  component: {
30
31
  isContainer: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.405",
3
+ "version": "1.0.407",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -64,9 +64,9 @@
64
64
  "react-virtualized-auto-sizer": "^1.0.20",
65
65
  "crypto-js": "^4.2.0",
66
66
  "@zxing/library": "0.21.2",
67
- "@pisell/utils": "1.0.40",
67
+ "@pisell/utils": "1.0.41",
68
68
  "@pisell/icon": "0.0.10",
69
- "@pisell/date-picker": "1.0.107"
69
+ "@pisell/date-picker": "1.0.108"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "react": "^18.0.0",
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import "./index.less";
3
- interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
4
- options: any[];
5
- }
6
- /**
7
- * @title: 系统级别的下拉框
8
- * @description:
9
- * @param {BrowserSelectProps} props
10
- * @return {*}
11
- * @Author: zhiwei.Wang
12
- * @Date: 2024-01-30 16:43
13
- */
14
- declare const BrowserSelect: (props: BrowserSelectProps) => React.JSX.Element;
15
- export default BrowserSelect;
@@ -1,36 +0,0 @@
1
- var _excluded = ["options"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
- import React, { useMemo } from "react";
6
- import classNames from "classnames";
7
- import "./index.less";
8
- /**
9
- * @title: 系统级别的下拉框
10
- * @description:
11
- * @param {BrowserSelectProps} props
12
- * @return {*}
13
- * @Author: zhiwei.Wang
14
- * @Date: 2024-01-30 16:43
15
- */
16
- var BrowserSelect = function BrowserSelect(props) {
17
- var options = props.options,
18
- resetProps = _objectWithoutProperties(props, _excluded);
19
- var _options = useMemo(function () {
20
- return (props.options || []).map(function (d) {
21
- return /*#__PURE__*/React.createElement("option", {
22
- value: d.value,
23
- key: d.value
24
- }, d.label);
25
- });
26
- }, [props.options]);
27
- return /*#__PURE__*/React.createElement("select", _extends({}, resetProps, {
28
- className: classNames("date-picker-pisell-browser-select", resetProps.className),
29
- onChange: function onChange(e) {
30
- var _resetProps$onChange;
31
- e.persist();
32
- (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
33
- }
34
- }), _options);
35
- };
36
- export default BrowserSelect;
@@ -1,18 +0,0 @@
1
- .date-picker-pisell-browser-select {
2
- padding: 9px 16px;
3
- border-radius: 8px;
4
- background-color: #fff;
5
- background-image: url('./chevron-down.png');
6
- color: var(--Gray-true-900, #141414);
7
- font-size: 16px;
8
- font-style: normal;
9
- font-weight: 600;
10
- border: 1px solid var(--Gray-300, #D0D5DD);
11
- cursor: pointer;
12
- appearance: none;
13
- -webkit-appearance: none;
14
- -moz-appearance: none;
15
- background-position: right 10px center;
16
- background-size: 12px;
17
- background-repeat: no-repeat;
18
- }
@@ -1,39 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const presetDetailMap: {
3
- today: {
4
- getValue: () => dayjs.Dayjs;
5
- label: () => any;
6
- };
7
- yesterday: {
8
- getValue: () => dayjs.Dayjs;
9
- label: () => any;
10
- };
11
- tomorrow: {
12
- getValue: () => dayjs.Dayjs;
13
- label: () => any;
14
- };
15
- next_monday: {
16
- getValue: () => dayjs.Dayjs;
17
- label: () => any;
18
- };
19
- last_friday: {
20
- getValue: () => dayjs.Dayjs;
21
- label: () => any;
22
- };
23
- first_day_of_this_month: {
24
- getValue: () => dayjs.Dayjs;
25
- label: () => any;
26
- };
27
- last_day_of_this_month: {
28
- getValue: () => dayjs.Dayjs;
29
- label: () => any;
30
- };
31
- first_day_of_next_month: {
32
- getValue: () => dayjs.Dayjs;
33
- label: () => any;
34
- };
35
- last_day_of_last_month: {
36
- getValue: () => dayjs.Dayjs;
37
- label: () => any;
38
- };
39
- };