@pisell/materials 1.0.402 → 1.0.404
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +4 -4
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +16 -59
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +19 -62
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/date-picker/index.js +2 -2
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.js +1 -2
- package/es/components/pisell-config-provider/index.js +0 -2
- package/es/components/pisellModal/components/functions/index.d.ts +5 -23
- package/es/components/pisellModal/components/functions/index.js +2 -7
- package/es/components/pisellModal/index.d.ts +5 -20
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +26 -30
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +1 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +21 -25
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +31 -34
- package/es/components/table/Actions/component/ExportImport/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/index.js +25 -32
- package/es/components/table/BasicTable/index.js +2 -1
- package/es/components/table/Gallery/index.js +1 -2
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +11 -13
- package/es/components/table/Table/index.d.ts +2 -2
- package/es/components/table/Table/index.js +42 -68
- package/es/components/table/Table/index.less +0 -3
- package/es/components/table/Table/utils.d.ts +3 -15
- package/es/components/table/Table/utils.js +2 -6
- package/es/components/table/View/index.d.ts +2 -2
- package/es/components/table/View/index.js +16 -20
- package/es/components/table/hooks/useTableSetting.js +7 -29
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -1
- package/es/components/table/hooks/useTransDataSource.js +4 -6
- package/es/components/table/index.js +5 -8
- package/es/components/table/index.less +0 -4
- package/es/components/table/serve.d.ts +0 -1
- package/es/components/table/serve.js +7 -38
- package/es/components/table/types.d.ts +0 -2
- package/es/index.d.ts +1 -3
- package/es/index.js +1 -3
- package/es/locales/en-US.d.ts +0 -12
- package/es/locales/en-US.js +0 -13
- package/es/locales/zh-CN.d.ts +0 -12
- package/es/locales/zh-CN.js +0 -13
- package/es/locales/zh-TW.d.ts +0 -12
- package/es/locales/zh-TW.js +0 -13
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.js +1 -0
- package/lib/components/pisell-config-provider/index.js +0 -2
- package/lib/components/pisellModal/components/functions/index.d.ts +5 -23
- package/lib/components/pisellModal/components/functions/index.js +7 -13
- package/lib/components/pisellModal/index.d.ts +5 -20
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +2 -6
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +1 -2
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +2 -6
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +2 -4
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/index.js +8 -13
- package/lib/components/table/BasicTable/index.js +2 -1
- package/lib/components/table/Gallery/index.js +1 -2
- package/lib/components/table/Table/fields/rangePicker/Edit/index.js +9 -1
- package/lib/components/table/Table/index.d.ts +2 -2
- package/lib/components/table/Table/index.js +34 -61
- package/lib/components/table/Table/index.less +0 -3
- package/lib/components/table/Table/utils.d.ts +3 -15
- package/lib/components/table/Table/utils.js +1 -7
- package/lib/components/table/View/index.d.ts +2 -2
- package/lib/components/table/View/index.js +19 -23
- package/lib/components/table/hooks/useTableSetting.js +11 -26
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -1
- package/lib/components/table/hooks/useTransDataSource.js +4 -5
- package/lib/components/table/index.js +4 -5
- package/lib/components/table/index.less +0 -4
- package/lib/components/table/serve.d.ts +0 -1
- package/lib/components/table/serve.js +4 -24
- package/lib/components/table/types.d.ts +0 -2
- package/lib/index.d.ts +1 -3
- package/lib/index.js +0 -6
- package/lib/locales/en-US.d.ts +0 -12
- package/lib/locales/en-US.js +0 -13
- package/lib/locales/zh-CN.d.ts +0 -12
- package/lib/locales/zh-CN.js +0 -13
- package/lib/locales/zh-TW.d.ts +0 -12
- package/lib/locales/zh-TW.js +0 -13
- package/package.json +3 -3
- package/es/components/browserSelect/chevron-down.png +0 -0
- package/es/components/browserSelect/index.d.ts +0 -15
- package/es/components/browserSelect/index.js +0 -36
- package/es/components/browserSelect/index.less +0 -18
- package/es/components/date-picker/constants.d.ts +0 -39
- package/es/components/date-picker/constants.js +0 -76
- package/es/components/date-picker/datePickerCpt.d.ts +0 -8
- package/es/components/date-picker/datePickerCpt.js +0 -370
- package/es/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
- package/es/components/date-picker/hooks/useMediaQuery.js +0 -28
- package/es/components/date-picker/index.less +0 -1880
- package/es/components/picker-view/index.d.ts +0 -2
- package/es/components/picker-view/index.js +0 -2
- package/es/components/pisellTags/index.d.ts +0 -13
- package/es/components/pisellTags/index.js +0 -83
- package/es/components/pisellTags/index.less +0 -17
- package/es/components/pisellTags/utils.d.ts +0 -1
- package/es/components/pisellTags/utils.js +0 -89
- package/lib/components/browserSelect/chevron-down.png +0 -0
- package/lib/components/browserSelect/index.d.ts +0 -15
- package/lib/components/browserSelect/index.js +0 -59
- package/lib/components/browserSelect/index.less +0 -18
- package/lib/components/date-picker/constants.d.ts +0 -39
- package/lib/components/date-picker/constants.js +0 -78
- package/lib/components/date-picker/datePickerCpt.d.ts +0 -8
- package/lib/components/date-picker/datePickerCpt.js +0 -403
- package/lib/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
- package/lib/components/date-picker/hooks/useMediaQuery.js +0 -43
- package/lib/components/date-picker/index.less +0 -1880
- package/lib/components/picker-view/index.d.ts +0 -2
- package/lib/components/picker-view/index.js +0 -36
- package/lib/components/pisellTags/index.d.ts +0 -13
- package/lib/components/pisellTags/index.js +0 -113
- package/lib/components/pisellTags/index.less +0 -17
- package/lib/components/pisellTags/utils.d.ts +0 -1
- package/lib/components/pisellTags/utils.js +0 -86
|
@@ -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
|
-
|
|
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,
|
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
|
|
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,
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -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;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -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
|
// 空状态
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -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;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -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
|
// 空状态
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -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;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -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
|
// 空状态
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.404",
|
|
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.
|
|
67
|
+
"@pisell/utils": "1.0.40",
|
|
68
68
|
"@pisell/icon": "0.0.10",
|
|
69
|
-
"@pisell/date-picker": "1.0.
|
|
69
|
+
"@pisell/date-picker": "1.0.107"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^18.0.0",
|
|
Binary file
|
|
@@ -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
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
import { getText } from "../../locales";
|
|
3
|
-
export var presetDetailMap = {
|
|
4
|
-
today: {
|
|
5
|
-
getValue: function getValue() {
|
|
6
|
-
return dayjs().startOf('day');
|
|
7
|
-
},
|
|
8
|
-
label: function label() {
|
|
9
|
-
return getText('date-picker-today');
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
yesterday: {
|
|
13
|
-
getValue: function getValue() {
|
|
14
|
-
return dayjs().add(-1, 'd').startOf('day');
|
|
15
|
-
},
|
|
16
|
-
label: function label() {
|
|
17
|
-
return getText('date-picker-yesterday');
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
tomorrow: {
|
|
21
|
-
getValue: function getValue() {
|
|
22
|
-
return dayjs().add(1, 'd').startOf('day');
|
|
23
|
-
},
|
|
24
|
-
label: function label() {
|
|
25
|
-
return getText('date-picker-tomorrow');
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
next_monday: {
|
|
29
|
-
getValue: function getValue() {
|
|
30
|
-
return dayjs().startOf('week').add(8, 'day').startOf('day');
|
|
31
|
-
},
|
|
32
|
-
label: function label() {
|
|
33
|
-
return getText('date-picker-next_monday');
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
last_friday: {
|
|
37
|
-
getValue: function getValue() {
|
|
38
|
-
return dayjs().subtract(1, 'week').startOf('week').add(5, 'day').startOf('day');
|
|
39
|
-
},
|
|
40
|
-
label: function label() {
|
|
41
|
-
return getText('date-picker-last_friday');
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
first_day_of_this_month: {
|
|
45
|
-
getValue: function getValue() {
|
|
46
|
-
return dayjs().startOf('month').startOf('day');
|
|
47
|
-
},
|
|
48
|
-
label: function label() {
|
|
49
|
-
return getText('date-picker-first_day_of_this_month');
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
last_day_of_this_month: {
|
|
53
|
-
getValue: function getValue() {
|
|
54
|
-
return dayjs().endOf('month').startOf('day');
|
|
55
|
-
},
|
|
56
|
-
label: function label() {
|
|
57
|
-
return getText('date-picker-last_day_of_this_month');
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
first_day_of_next_month: {
|
|
61
|
-
getValue: function getValue() {
|
|
62
|
-
return dayjs().endOf('month').add(1, 'day').startOf('day');
|
|
63
|
-
},
|
|
64
|
-
label: function label() {
|
|
65
|
-
return getText('date-picker-first_day_of_next_month');
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
last_day_of_last_month: {
|
|
69
|
-
getValue: function getValue() {
|
|
70
|
-
return dayjs().startOf('month').subtract(1, 'day').startOf('day');
|
|
71
|
-
},
|
|
72
|
-
label: function label() {
|
|
73
|
-
return getText('date-picker-last_day_of_last_month');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
|
|
3
|
-
import { Dayjs } from 'dayjs';
|
|
4
|
-
import './index.less';
|
|
5
|
-
interface DatePickerCptProps extends PickerDateProps<Dayjs> {
|
|
6
|
-
}
|
|
7
|
-
declare const DatePickerCpt: (props: DatePickerCptProps) => React.JSX.Element;
|
|
8
|
-
export default DatePickerCpt;
|