@pisell/materials 1.0.444 → 1.0.446
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/es/components/button/index.js +0 -2
- 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/iconfont/index.js +1 -1
- package/es/components/pisellInformationEntry/Input/index.js +3 -9
- package/es/components/pisellInformationEntry/constants.d.ts +0 -10
- package/es/components/pisellInformationEntry/constants.js +0 -10
- package/es/components/pisellInformationEntry/index.js +4 -21
- package/es/components/pisellInformationEntry/index.less +1 -1
- package/es/components/pisellLoading/index.d.ts +0 -2
- package/es/components/pisellLoading/index.js +1 -3
- package/es/components/pisellWalletPassCard/index.d.ts +0 -2
- package/es/components/pisellWalletPassCard/index.js +4 -16
- package/es/components/pisellWalletPassCard/index.less +0 -3
- package/es/components/record-view/index.d.ts +3 -3
- package/es/components/record-view/index.js +16 -20
- package/es/components/select-time/RightPanel/index.d.ts +2 -2
- package/es/components/select-time/RightPanel/index.js +7 -7
- package/es/components/table/Actions/component/ExportImport/index.js +3 -3
- package/es/components/table/BasicTable/index.js +1 -7
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/es/components/table/Gallery/components/GalleryItem/index.js +3 -10
- package/es/components/table/Gallery/components/GalleryItem/index.less +0 -1
- package/es/components/table/Gallery/index.js +4 -14
- package/es/components/table/Table/index.js +1 -2
- package/es/components/table/Table/utils.d.ts +2 -14
- package/es/components/table/Table/utils.js +2 -6
- package/es/components/table/hooks/useTableSetting.js +5 -26
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -1
- package/es/components/table/hooks/useTransDataSource.js +4 -6
- package/es/components/table/types.d.ts +0 -2
- package/es/components/tabs/index.js +7 -4
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Keyboard/index.js +2 -10
- package/es/index.d.ts +3 -7
- package/es/index.js +3 -7
- package/es/locales/en-US.d.ts +0 -14
- package/es/locales/en-US.js +1 -16
- package/es/locales/zh-CN.d.ts +0 -14
- package/es/locales/zh-CN.js +1 -16
- package/es/locales/zh-TW.d.ts +0 -14
- package/es/locales/zh-TW.js +1 -16
- package/es/utils/index.d.ts +0 -1
- package/es/utils/index.js +1 -4
- package/lib/components/button/index.js +0 -2
- 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/iconfont/index.js +1 -1
- package/lib/components/pisellInformationEntry/Input/index.js +1 -9
- package/lib/components/pisellInformationEntry/constants.d.ts +0 -10
- package/lib/components/pisellInformationEntry/constants.js +0 -12
- package/lib/components/pisellInformationEntry/index.js +2 -18
- package/lib/components/pisellInformationEntry/index.less +1 -1
- package/lib/components/pisellLoading/index.d.ts +0 -2
- package/lib/components/pisellLoading/index.js +1 -2
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -2
- package/lib/components/pisellWalletPassCard/index.js +4 -8
- package/lib/components/pisellWalletPassCard/index.less +0 -3
- package/lib/components/record-view/index.d.ts +3 -3
- package/lib/components/record-view/index.js +3 -4
- package/lib/components/select-time/RightPanel/index.d.ts +2 -2
- package/lib/components/table/Actions/component/ExportImport/index.js +4 -3
- package/lib/components/table/BasicTable/index.js +1 -5
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/lib/components/table/Gallery/components/GalleryItem/index.js +4 -18
- package/lib/components/table/Gallery/components/GalleryItem/index.less +0 -1
- package/lib/components/table/Gallery/index.js +3 -14
- package/lib/components/table/Table/index.js +1 -2
- package/lib/components/table/Table/utils.d.ts +2 -14
- package/lib/components/table/Table/utils.js +1 -7
- package/lib/components/table/hooks/useTableSetting.js +9 -23
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -1
- package/lib/components/table/hooks/useTransDataSource.js +4 -5
- package/lib/components/table/types.d.ts +0 -2
- package/lib/components/tabs/index.js +1 -2
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Keyboard/index.js +2 -15
- package/lib/index.d.ts +3 -7
- package/lib/index.js +2 -14
- package/lib/locales/en-US.d.ts +0 -14
- package/lib/locales/en-US.js +1 -16
- package/lib/locales/zh-CN.d.ts +0 -14
- package/lib/locales/zh-CN.js +1 -16
- package/lib/locales/zh-TW.d.ts +0 -14
- package/lib/locales/zh-TW.js +1 -16
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +2 -7
- package/lowcode/badge/meta.ts +2 -2
- package/lowcode/button/meta.ts +2 -5
- package/lowcode/card-pro/meta.ts +338 -0
- package/lowcode/card-pro/snippe.ts +39 -0
- package/lowcode/section-footers/meta.ts +22 -0
- package/lowcode/section-footers/snippe.ts +8 -0
- package/lowcode/statistic/meta.ts +1 -1
- package/lowcode/timeline/meta.ts +21 -6
- package/lowcode/timeline/snippets.ts +10 -2
- 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/buttonGroupEdit/index.d.ts +0 -8
- package/es/components/buttonGroupEdit/index.js +0 -411
- package/es/components/buttonGroupPreview/index.d.ts +0 -20
- package/es/components/buttonGroupPreview/index.js +0 -81
- 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/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +0 -54
- 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/buttonGroupEdit/index.d.ts +0 -8
- package/lib/components/buttonGroupEdit/index.js +0 -234
- package/lib/components/buttonGroupPreview/index.d.ts +0 -20
- package/lib/components/buttonGroupPreview/index.js +0 -65
- 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/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +0 -83
- 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
|
@@ -81,10 +81,7 @@ export declare const setTableSettingToLocalStorage: ({ tableId, tableSettingObj,
|
|
|
81
81
|
}>;
|
|
82
82
|
currentViewMode: ModeType;
|
|
83
83
|
currentSettingHash: string;
|
|
84
|
-
}) =>
|
|
85
|
-
key: string;
|
|
86
|
-
value: Record<string, any>;
|
|
87
|
-
} | undefined;
|
|
84
|
+
}) => void;
|
|
88
85
|
export declare const clearTableSettingToLocalStorage: (tableId?: string) => void;
|
|
89
86
|
/**
|
|
90
87
|
* 从本地存储中获取表格设置, 全部配置
|
|
@@ -115,16 +112,7 @@ export declare const setFormValuesToLocalStorage: ({ tableId, allValues, keys, c
|
|
|
115
112
|
keys?: string[] | undefined;
|
|
116
113
|
currentViewMode: ModeType;
|
|
117
114
|
currentSettingHash: string;
|
|
118
|
-
}) =>
|
|
119
|
-
key: string;
|
|
120
|
-
value: Record<string, any>;
|
|
121
|
-
} | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* 获取表格键值
|
|
124
|
-
* @param tableId 表格ID
|
|
125
|
-
* @returns 返回格式化后的表格键值
|
|
126
|
-
*/
|
|
127
|
-
export declare const getTableKey: (tableId: string) => string;
|
|
115
|
+
}) => void;
|
|
128
116
|
/**
|
|
129
117
|
* 合并筛选设置
|
|
130
118
|
* @param list 列表数据
|
|
@@ -271,10 +271,6 @@ export var setTableSettingToLocalStorage = function setTableSettingToLocalStorag
|
|
|
271
271
|
currentSettingHash: currentSettingHash
|
|
272
272
|
}, currentViewMode, _objectSpread(_objectSpread({}, newData[currentViewMode] || {}), itemSetting)));
|
|
273
273
|
localStorage.setItem(getTableKey(tableId), JSON.stringify(newData));
|
|
274
|
-
return {
|
|
275
|
-
key: getTableKey(tableId),
|
|
276
|
-
value: newData
|
|
277
|
-
};
|
|
278
274
|
};
|
|
279
275
|
export var clearTableSettingToLocalStorage = function clearTableSettingToLocalStorage(tableId) {
|
|
280
276
|
if (!tableId) return;
|
|
@@ -331,7 +327,7 @@ export var setFormValuesToLocalStorage = function setFormValuesToLocalStorage(_r
|
|
|
331
327
|
keys === null || keys === void 0 ? void 0 : keys.forEach(function (key) {
|
|
332
328
|
obj[key] = allValues === null || allValues === void 0 ? void 0 : allValues[key];
|
|
333
329
|
});
|
|
334
|
-
|
|
330
|
+
setTableSettingToLocalStorage({
|
|
335
331
|
tableId: tableId,
|
|
336
332
|
tableSettingObj: obj,
|
|
337
333
|
currentViewMode: currentViewMode,
|
|
@@ -344,7 +340,7 @@ export var setFormValuesToLocalStorage = function setFormValuesToLocalStorage(_r
|
|
|
344
340
|
* @param tableId 表格ID
|
|
345
341
|
* @returns 返回格式化后的表格键值
|
|
346
342
|
*/
|
|
347
|
-
|
|
343
|
+
var getTableKey = function getTableKey(tableId) {
|
|
348
344
|
return "".concat(tableKeyPrefix, "-").concat(tableId);
|
|
349
345
|
};
|
|
350
346
|
|
|
@@ -6,10 +6,8 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import { useMemo } from "react";
|
|
8
8
|
import { getSettingKeyArrByMode, getTableSettingByCurrentViewMode, getTableSettingFromLocalStorage, mergeColumnSetting, mergeFilterSetting, setFormValuesToLocalStorage } from "../Table/utils";
|
|
9
|
-
import useEngineContext from "../../../hooks/useEngineContext";
|
|
10
9
|
import { useMemoizedFn } from "ahooks";
|
|
11
10
|
var useTableSetting = function useTableSetting(params) {
|
|
12
|
-
var _context$appHelper;
|
|
13
11
|
var tableId = params.tableId,
|
|
14
12
|
filter = params.filter,
|
|
15
13
|
columnSetting = params.columnSetting,
|
|
@@ -21,10 +19,6 @@ var useTableSetting = function useTableSetting(params) {
|
|
|
21
19
|
gallery = params.gallery,
|
|
22
20
|
currentSettingHash = params.currentSettingHash,
|
|
23
21
|
exportImport = params.exportImport;
|
|
24
|
-
var context = useEngineContext();
|
|
25
|
-
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
26
|
-
isTerminal = _ref.isTerminal,
|
|
27
|
-
interaction = _ref.interaction;
|
|
28
22
|
var columnsMap = useMemo(function () {
|
|
29
23
|
return new Map(propsColumns.map(function (item) {
|
|
30
24
|
return [item.key, item];
|
|
@@ -45,10 +39,10 @@ var useTableSetting = function useTableSetting(params) {
|
|
|
45
39
|
}
|
|
46
40
|
return propsColumns;
|
|
47
41
|
}, [propsColumns, currentViewMode, gallery, columnsMap]);
|
|
48
|
-
var
|
|
49
|
-
list =
|
|
50
|
-
quickFilterMaxLength =
|
|
51
|
-
sortButtonShow =
|
|
42
|
+
var _ref = filter || {},
|
|
43
|
+
list = _ref.list,
|
|
44
|
+
quickFilterMaxLength = _ref.quickFilterMaxLength,
|
|
45
|
+
sortButtonShow = _ref.sortButtonShow;
|
|
52
46
|
var defaultGalleryCoverSetting = useMemo(function () {
|
|
53
47
|
var _gallery$cover, _columns$find;
|
|
54
48
|
return {
|
|
@@ -164,29 +158,14 @@ var useTableSetting = function useTableSetting(params) {
|
|
|
164
158
|
* @param values
|
|
165
159
|
*/
|
|
166
160
|
var setTableSetting = useMemoizedFn(function (values) {
|
|
167
|
-
|
|
161
|
+
setFormValuesToLocalStorage({
|
|
168
162
|
tableId: tableId,
|
|
169
163
|
allValues: values,
|
|
170
164
|
keys: localStorageSettingKeyArr,
|
|
171
165
|
currentViewMode: currentViewMode,
|
|
172
166
|
currentSettingHash: currentSettingHash
|
|
173
167
|
});
|
|
174
|
-
/*
|
|
175
|
-
if (isTerminal?.() && result) {
|
|
176
|
-
interaction?.utils?.postMessageToApp?.({
|
|
177
|
-
module: "global",
|
|
178
|
-
key: "local_storage",
|
|
179
|
-
data: {
|
|
180
|
-
type: "set",
|
|
181
|
-
value: {
|
|
182
|
-
[result.key]: result.value
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
})
|
|
186
|
-
}
|
|
187
|
-
*/
|
|
188
168
|
});
|
|
189
|
-
|
|
190
169
|
var tableSetting = useMemo(function () {
|
|
191
170
|
return _objectSpread(_objectSpread({}, tableLocalSetting), defaultTableSetting);
|
|
192
171
|
}, [tableLocalSetting, defaultTableSetting]);
|
|
@@ -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;
|
|
@@ -14,8 +14,7 @@ var useTransDataSource = function useTransDataSource(params) {
|
|
|
14
14
|
localPagination = params.localPagination,
|
|
15
15
|
pDataSource = params.dataSource,
|
|
16
16
|
rowKey = params.rowKey,
|
|
17
|
-
filter = params.filter
|
|
18
|
-
currentView = params.currentView;
|
|
17
|
+
filter = params.filter;
|
|
19
18
|
var sort = Form.useWatch("order_by", {
|
|
20
19
|
form: form,
|
|
21
20
|
preserve: true
|
|
@@ -82,13 +81,12 @@ var useTransDataSource = function useTransDataSource(params) {
|
|
|
82
81
|
if (sortObj) {
|
|
83
82
|
newDataSource = sortDataSource(newDataSource, sortObj);
|
|
84
83
|
}
|
|
85
|
-
|
|
86
|
-
// 在table视图时进行group分组
|
|
87
|
-
if (groupDetail && currentView === 'table') {
|
|
84
|
+
if (groupDetail) {
|
|
88
85
|
newDataSource = groupDataSource(newDataSource, groupDetail, rowKey);
|
|
89
86
|
}
|
|
90
87
|
return newDataSource;
|
|
91
|
-
}, [pDataSource, localPagination, sortObj, groupDetail, filterLocalArr, filters
|
|
88
|
+
}, [pDataSource, localPagination, sortObj, groupDetail, filterLocalArr, filters]);
|
|
89
|
+
console.log('dataSourcedataSource', dataSource);
|
|
92
90
|
return dataSource;
|
|
93
91
|
};
|
|
94
92
|
export default useTransDataSource;
|
|
@@ -19,7 +19,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
19
19
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
20
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
21
|
import React, { Component } from 'react';
|
|
22
|
-
import { Tabs as OriginalTabs } from 'antd';
|
|
22
|
+
import { Badge, Tabs as OriginalTabs } from 'antd';
|
|
23
23
|
import { warning } from "../../utils/warning";
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
import "./index.less";
|
|
@@ -54,8 +54,6 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
54
54
|
});
|
|
55
55
|
_defineProperty(_assertThisInitialized(_this), "renderIconLabelTabBar", function (props, DefaultTabBar) {
|
|
56
56
|
var _this$props2;
|
|
57
|
-
console.log('%c [ props ]-31', 'font-size:13px; background:#4d3662; color:#917aa6;', props);
|
|
58
|
-
debugger;
|
|
59
57
|
var _this$props = _this.props,
|
|
60
58
|
items = _this$props.items,
|
|
61
59
|
sidebarWidth = _this$props.sidebarWidth;
|
|
@@ -77,7 +75,12 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
77
75
|
onClick: function onClick(e) {
|
|
78
76
|
return props.onTabClick(item.key, e);
|
|
79
77
|
}
|
|
80
|
-
}, /*#__PURE__*/React.createElement(
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Badge, {
|
|
79
|
+
count: item.badge,
|
|
80
|
+
offset: [0, 6]
|
|
81
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "".concat(prefix, "tab-bar-icon-wrap")
|
|
83
|
+
}, item.icon)), /*#__PURE__*/React.createElement("span", {
|
|
81
84
|
className: "".concat(prefix, "tab-bar-label")
|
|
82
85
|
}, item.label));
|
|
83
86
|
}), props.extra);
|
|
@@ -15,7 +15,6 @@ export interface KeyboardProps {
|
|
|
15
15
|
onChange?: (value?: ItemValue) => void;
|
|
16
16
|
items?: Item[];
|
|
17
17
|
rightItems?: Item[];
|
|
18
|
-
keydown?: boolean;
|
|
19
18
|
}
|
|
20
19
|
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => React.JSX.Element>;
|
|
21
20
|
export default _default;
|
|
@@ -9,7 +9,7 @@ import { Button } from 'antd';
|
|
|
9
9
|
import "./index.less";
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
import { useEventListener, useMemoizedFn, useSize } from 'ahooks';
|
|
12
|
-
var list = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '
|
|
12
|
+
var list = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'ok'];
|
|
13
13
|
var defaultArr = [];
|
|
14
14
|
var Keyboard = function Keyboard(props) {
|
|
15
15
|
var _props$items = props.items,
|
|
@@ -17,23 +17,15 @@ var Keyboard = function Keyboard(props) {
|
|
|
17
17
|
className = props.className,
|
|
18
18
|
style = props.style,
|
|
19
19
|
onChange = props.onChange,
|
|
20
|
-
rightItems = props.rightItems
|
|
21
|
-
_props$keydown = props.keydown,
|
|
22
|
-
keydown = _props$keydown === void 0 ? true : _props$keydown;
|
|
20
|
+
rightItems = props.rightItems;
|
|
23
21
|
var contentRef = useRef(null);
|
|
24
22
|
var size = useSize(contentRef);
|
|
25
23
|
useEventListener('keydown', function (ev) {
|
|
26
24
|
console.log('ev', ev);
|
|
27
|
-
if (!keydown) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
25
|
var key = ev.key;
|
|
31
26
|
if (key === 'Enter') {
|
|
32
27
|
key = 'ok';
|
|
33
28
|
}
|
|
34
|
-
if (key === 'keydown') {
|
|
35
|
-
key = '+';
|
|
36
|
-
}
|
|
37
29
|
if (list.includes(key)) {
|
|
38
30
|
// let dom = document.querySelector(`#virtual-keyboard-${ev.key}`);
|
|
39
31
|
// if (dom) {
|
package/es/index.d.ts
CHANGED
|
@@ -37,8 +37,6 @@ export { Timeline } from 'antd';
|
|
|
37
37
|
export { Tooltip } from 'antd';
|
|
38
38
|
export { version } from 'antd';
|
|
39
39
|
export { default as Typography } from './components/typography';
|
|
40
|
-
export { default as ButtonGroupEdit } from './components/buttonGroupEdit';
|
|
41
|
-
export { default as ButtonGroupPreview } from './components/buttonGroupPreview';
|
|
42
40
|
export { default as Skeleton } from './components/skeleton';
|
|
43
41
|
export { default as Checkbox } from './components/checkbox';
|
|
44
42
|
export { default as Button } from './components/button';
|
|
@@ -74,7 +72,6 @@ export { default as List } from './components/list';
|
|
|
74
72
|
export { default as Sort } from './components/sort';
|
|
75
73
|
export { default as InputNumberRange } from './components/input-number-range';
|
|
76
74
|
export { default as LowCodePage } from './components/lowCodePage';
|
|
77
|
-
export { default as PickerView } from './components/picker-view';
|
|
78
75
|
export { default as Segmented } from './components/segmented';
|
|
79
76
|
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
80
77
|
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
@@ -104,11 +101,10 @@ export { default as PisellAlert } from './components/pisellAlert';
|
|
|
104
101
|
export { default as PisellCard } from './components/pisellCard';
|
|
105
102
|
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
106
103
|
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
107
|
-
export { globalConfig, default as PisellContext
|
|
108
|
-
export { default as PisellTags } from './components/pisellTags';
|
|
109
|
-
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
110
|
-
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
|
104
|
+
export { globalConfig, default as PisellContext } from './components/pisell-config-provider/context';
|
|
111
105
|
export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
|
|
112
106
|
export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
|
|
113
107
|
export { default as PisellAdjustPrice } from './components/pisellAdjustPrice';
|
|
114
108
|
export { default as PisellAdjustPriceInputNumber } from './components/pisellAdjustPrice/PisellAdjustPriceInputNumber';
|
|
109
|
+
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
110
|
+
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
package/es/index.js
CHANGED
|
@@ -57,8 +57,6 @@ export { Timeline } from 'antd';
|
|
|
57
57
|
export { Tooltip } from 'antd';
|
|
58
58
|
export { version } from 'antd';
|
|
59
59
|
export { default as Typography } from "./components/typography";
|
|
60
|
-
export { default as ButtonGroupEdit } from "./components/buttonGroupEdit";
|
|
61
|
-
export { default as ButtonGroupPreview } from "./components/buttonGroupPreview";
|
|
62
60
|
export { default as Skeleton } from "./components/skeleton";
|
|
63
61
|
export { default as Checkbox } from "./components/checkbox";
|
|
64
62
|
export { default as Button } from "./components/button";
|
|
@@ -94,7 +92,6 @@ export { default as List } from "./components/list";
|
|
|
94
92
|
export { default as Sort } from "./components/sort";
|
|
95
93
|
export { default as InputNumberRange } from "./components/input-number-range";
|
|
96
94
|
export { default as LowCodePage } from "./components/lowCodePage";
|
|
97
|
-
export { default as PickerView } from "./components/picker-view";
|
|
98
95
|
export { default as Segmented } from "./components/segmented";
|
|
99
96
|
export { default as VirtualKeyboard } from "./components/virtual-keyboard";
|
|
100
97
|
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
@@ -127,10 +124,9 @@ export { default as PisellCard } from "./components/pisellCard";
|
|
|
127
124
|
export { default as PisellInformationEntry } from "./components/pisellInformationEntry";
|
|
128
125
|
export { default as usePisellConfig } from "./components/pisell-config-provider/hooks/usePisellConfig";
|
|
129
126
|
export { globalConfig, default as PisellContext } from "./components/pisell-config-provider/context";
|
|
130
|
-
export { default as PisellTags } from "./components/pisellTags";
|
|
131
|
-
export { default as PisellStatisticList } from "./components/pisellStatisticList";
|
|
132
|
-
export { default as PisellFloatingPanel } from "./components/pisellFloatingPanel";
|
|
133
127
|
export { default as PisellPriceKeyboard } from "./components/virtual-keyboard/Amount";
|
|
134
128
|
export { default as PisellNumberKeyboard } from "./components/virtual-keyboard/Number";
|
|
135
129
|
export { default as PisellAdjustPrice } from "./components/pisellAdjustPrice";
|
|
136
|
-
export { default as PisellAdjustPriceInputNumber } from "./components/pisellAdjustPrice/PisellAdjustPriceInputNumber";
|
|
130
|
+
export { default as PisellAdjustPriceInputNumber } from "./components/pisellAdjustPrice/PisellAdjustPriceInputNumber";
|
|
131
|
+
export { default as PisellStatisticList } from "./components/pisellStatisticList";
|
|
132
|
+
export { default as PisellFloatingPanel } from "./components/pisellFloatingPanel";
|
package/es/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;
|
|
@@ -124,7 +112,5 @@ declare const _default: {
|
|
|
124
112
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
113
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
114
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
-
'pisell-discount-card-title': string;
|
|
128
|
-
'pisell-discount-card-unit': string;
|
|
129
115
|
};
|
|
130
116
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -119,19 +119,6 @@ export default {
|
|
|
119
119
|
'table-action-export-import-log-copy': 'Copy',
|
|
120
120
|
'table-action-export-import-table-success-copy': 'Copy Success',
|
|
121
121
|
'drag-sort-tree-unavailable-today-tip': 'Unavailable today',
|
|
122
|
-
// 日期组件
|
|
123
|
-
'date-picker-today': 'Today',
|
|
124
|
-
'date-picker-yesterday': 'Yesterday',
|
|
125
|
-
'date-picker-tomorrow': 'Tomorrow',
|
|
126
|
-
'date-picker-next_monday': 'Next monday',
|
|
127
|
-
'date-picker-last_friday': 'Last friday',
|
|
128
|
-
'date-picker-first_day_of_this_month': 'First day of this month',
|
|
129
|
-
'date-picker-last_day_of_this_month': 'Last day of this month',
|
|
130
|
-
'date-picker-first_day_of_next_month': 'First day of next month',
|
|
131
|
-
'date-picker-last_day_of_last_month': 'Last day of last month',
|
|
132
|
-
'date-picker-invalid-date': 'Invalid date',
|
|
133
|
-
"date-picker-apply": "Apply",
|
|
134
|
-
'date-picker-shortcut-custom': 'Custom',
|
|
135
122
|
'pisell-input-copy-success': 'Copy Success',
|
|
136
123
|
'pisell-input-copy': 'Copy',
|
|
137
124
|
// 空状态
|
|
@@ -150,7 +137,5 @@ export default {
|
|
|
150
137
|
'pisell-adjust-price-discount-amount': "Amount",
|
|
151
138
|
'pisell-adjust-price-discount-percentage': "Percentage",
|
|
152
139
|
'pisell-adjust-price-total-after-discount': "Total after discount: ",
|
|
153
|
-
'pisell-adjust-price-discount-can-be-maximum': "Discount can be maximum"
|
|
154
|
-
'pisell-discount-card-title': 'Discount',
|
|
155
|
-
'pisell-discount-card-unit': 'off'
|
|
140
|
+
'pisell-adjust-price-discount-can-be-maximum': "Discount can be maximum"
|
|
156
141
|
};
|
package/es/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;
|
|
@@ -124,7 +112,5 @@ declare const _default: {
|
|
|
124
112
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
113
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
114
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
-
'pisell-discount-card-title': string;
|
|
128
|
-
'pisell-discount-card-unit': string;
|
|
129
115
|
};
|
|
130
116
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -119,19 +119,6 @@ export default {
|
|
|
119
119
|
'table-action-export-import-log-copy': '复制',
|
|
120
120
|
'table-action-export-import-table-success-copy': '复制成功',
|
|
121
121
|
'drag-sort-tree-unavailable-today-tip': '今日不可用',
|
|
122
|
-
// 日期组件
|
|
123
|
-
'date-picker-today': '今天',
|
|
124
|
-
'date-picker-yesterday': '昨天',
|
|
125
|
-
'date-picker-tomorrow': '明天',
|
|
126
|
-
'date-picker-next_monday': '下个星期一',
|
|
127
|
-
'date-picker-last_friday': '上个星期五',
|
|
128
|
-
'date-picker-first_day_of_this_month': '本月的第一天',
|
|
129
|
-
'date-picker-last_day_of_this_month': '本月的最后一天',
|
|
130
|
-
'date-picker-first_day_of_next_month': '下个月的第一天',
|
|
131
|
-
'date-picker-last_day_of_last_month': '上个月的最后一天',
|
|
132
|
-
'date-picker-invalid-date': '无效日期',
|
|
133
|
-
"date-picker-apply": "确定",
|
|
134
|
-
'date-picker-shortcut-custom': '自定义',
|
|
135
122
|
'pisell-input-copy-success': '复制成功',
|
|
136
123
|
'pisell-input-copy': '复制',
|
|
137
124
|
// 空状态
|
|
@@ -150,7 +137,5 @@ export default {
|
|
|
150
137
|
'pisell-adjust-price-discount-amount': "金额",
|
|
151
138
|
'pisell-adjust-price-discount-percentage': "百分比",
|
|
152
139
|
'pisell-adjust-price-total-after-discount': "打折后总价",
|
|
153
|
-
'pisell-adjust-price-discount-can-be-maximum': "折扣最高可达"
|
|
154
|
-
'pisell-discount-card-title': '折扣',
|
|
155
|
-
'pisell-discount-card-unit': '折扣'
|
|
140
|
+
'pisell-adjust-price-discount-can-be-maximum': "折扣最高可达"
|
|
156
141
|
};
|
package/es/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;
|
|
@@ -124,7 +112,5 @@ declare const _default: {
|
|
|
124
112
|
'pisell-adjust-price-discount-percentage': string;
|
|
125
113
|
'pisell-adjust-price-total-after-discount': string;
|
|
126
114
|
'pisell-adjust-price-discount-can-be-maximum': string;
|
|
127
|
-
'pisell-discount-card-title': string;
|
|
128
|
-
'pisell-discount-card-unit': string;
|
|
129
115
|
};
|
|
130
116
|
export default _default;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -119,19 +119,6 @@ export default {
|
|
|
119
119
|
'table-action-export-import-log-copy': '復製',
|
|
120
120
|
'table-action-export-import-table-success-copy': '復製成功',
|
|
121
121
|
'drag-sort-tree-unavailable-today-tip': '今日不可用',
|
|
122
|
-
// 日期组件
|
|
123
|
-
'date-picker-today': '今天',
|
|
124
|
-
'date-picker-yesterday': '昨天',
|
|
125
|
-
'date-picker-tomorrow': '明天',
|
|
126
|
-
'date-picker-next_monday': '下個星期一',
|
|
127
|
-
'date-picker-last_friday': '上個星期五',
|
|
128
|
-
'date-picker-first_day_of_this_month': '本月的第一天',
|
|
129
|
-
'date-picker-last_day_of_this_month': '本月的最後一天',
|
|
130
|
-
'date-picker-first_day_of_next_month': '下個月的第一天',
|
|
131
|
-
'date-picker-last_day_of_last_month': '上個月的最後一天',
|
|
132
|
-
'date-picker-invalid-date': '無效日期',
|
|
133
|
-
"date-picker-apply": "确定",
|
|
134
|
-
'date-picker-shortcut-custom': '自定義',
|
|
135
122
|
'pisell-input-copy-success': '復製成功',
|
|
136
123
|
'pisell-input-copy': '復製',
|
|
137
124
|
// 空状态
|
|
@@ -150,7 +137,5 @@ export default {
|
|
|
150
137
|
'pisell-adjust-price-discount-amount': "金額",
|
|
151
138
|
'pisell-adjust-price-discount-percentage': "百分比",
|
|
152
139
|
'pisell-adjust-price-total-after-discount': "打折后總價",
|
|
153
|
-
'pisell-adjust-price-discount-can-be-maximum': "折扣最高可達"
|
|
154
|
-
'pisell-discount-card-title': '折扣',
|
|
155
|
-
'pisell-discount-card-unit': '折扣'
|
|
140
|
+
'pisell-adjust-price-discount-can-be-maximum': "折扣最高可達"
|
|
156
141
|
};
|
package/es/utils/index.d.ts
CHANGED
package/es/utils/index.js
CHANGED
|
@@ -36,12 +36,10 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var Button = (0, import_react.forwardRef)((props, ref) => {
|
|
38
38
|
var _a;
|
|
39
|
-
console.log("%c [ props ]-15", "font-size:13px; background:#e991b5; color:#ffd5f9;", props);
|
|
40
39
|
const innerProps = {};
|
|
41
40
|
if (!((_a = props.href) == null ? void 0 : _a.trim()) || props.__designMode === "design") {
|
|
42
41
|
innerProps.href = void 0;
|
|
43
42
|
}
|
|
44
|
-
debugger;
|
|
45
43
|
const _children = (0, import_react.useMemo)(() => {
|
|
46
44
|
if (props.rightIcon) {
|
|
47
45
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("span", { style: { marginRight: 8 } }, " ", props.children), props.rightIcon);
|
|
@@ -32,15 +32,15 @@ __export(date_picker_exports, {
|
|
|
32
32
|
default: () => date_picker_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(date_picker_exports);
|
|
35
|
+
var import_antd = require("antd");
|
|
35
36
|
var import_hoc = require("../../utils/hoc");
|
|
36
37
|
var import_dayjs = __toESM(require("dayjs"));
|
|
37
38
|
var import_date_picker = require("@pisell/date-picker");
|
|
38
39
|
var import_localeData = __toESM(require("dayjs/plugin/localeData"));
|
|
39
40
|
var import_weekday = __toESM(require("dayjs/plugin/weekday"));
|
|
40
|
-
var import_datePickerCpt = __toESM(require("./datePickerCpt"));
|
|
41
41
|
import_dayjs.default.extend(import_weekday.default);
|
|
42
42
|
import_dayjs.default.extend(import_localeData.default);
|
|
43
|
-
var DatePicker = (0, import_hoc.withMomentProps)(
|
|
43
|
+
var DatePicker = (0, import_hoc.withMomentProps)(import_antd.DatePicker, [
|
|
44
44
|
"defaultPickerValue",
|
|
45
45
|
"defaultValue",
|
|
46
46
|
"showTime.defaultValue",
|
|
@@ -37,6 +37,7 @@ var import_core = require("@dnd-kit/core");
|
|
|
37
37
|
var import_sortable = require("@dnd-kit/sortable");
|
|
38
38
|
var import_TreeItem = __toESM(require("./TreeItem"));
|
|
39
39
|
var import_modifiers = require("@dnd-kit/modifiers");
|
|
40
|
+
var import_index = require("./index.less");
|
|
40
41
|
var DragSortTree = (props) => {
|
|
41
42
|
const { value, rowKey, tabKey, hiddenKeys, onChange } = props;
|
|
42
43
|
const [items, setItems] = (0, import_react.useState)(value || []);
|
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
|
|
|
35
35
|
var import_icons = require("@ant-design/icons");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var MyIcon = (0, import_icons.createFromIconfontCN)({
|
|
38
|
-
scriptUrl: "https://
|
|
38
|
+
scriptUrl: "https://unpkg.com/@pisell/materials@3.0.37/iconfont/iconfont.js"
|
|
39
39
|
// 在 iconfont.cn 上生成
|
|
40
40
|
});
|
|
41
41
|
var IconFont = (props) => {
|
|
@@ -46,15 +46,7 @@ var PisellEntryInput = (props) => {
|
|
|
46
46
|
{
|
|
47
47
|
autoFocus: true,
|
|
48
48
|
value,
|
|
49
|
-
onChange: (e) =>
|
|
50
|
-
setValue(e.target.value);
|
|
51
|
-
if (!e.target.value) {
|
|
52
|
-
onChange(e.target.value);
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
onPressEnter: (e) => {
|
|
56
|
-
onChange(value);
|
|
57
|
-
},
|
|
49
|
+
onChange: (e) => setValue(e.target.value),
|
|
58
50
|
style: { flex: 1 },
|
|
59
51
|
prefix: /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { style: { color: "#667085" }, type: "pisell2-search-lg" }),
|
|
60
52
|
allowClear: true
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
import { EntryModeType } from './index';
|
|
2
2
|
export declare const entryModeTextIcon: Record<EntryModeType['type'], any>;
|
|
3
|
-
export declare const entryModeErrorTextIcon: {
|
|
4
|
-
scanner: {
|
|
5
|
-
icon: string;
|
|
6
|
-
text: string;
|
|
7
|
-
};
|
|
8
|
-
nfc: {
|
|
9
|
-
icon: string;
|
|
10
|
-
text: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
3
|
export declare const passiveModeType: string[];
|
|
@@ -19,7 +19,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/pisellInformationEntry/constants.ts
|
|
20
20
|
var constants_exports = {};
|
|
21
21
|
__export(constants_exports, {
|
|
22
|
-
entryModeErrorTextIcon: () => entryModeErrorTextIcon,
|
|
23
22
|
entryModeTextIcon: () => entryModeTextIcon,
|
|
24
23
|
passiveModeType: () => passiveModeType
|
|
25
24
|
});
|
|
@@ -42,20 +41,9 @@ var entryModeTextIcon = {
|
|
|
42
41
|
text: "NFC ready"
|
|
43
42
|
}
|
|
44
43
|
};
|
|
45
|
-
var entryModeErrorTextIcon = {
|
|
46
|
-
scanner: {
|
|
47
|
-
icon: "pisell2-a-Scanner11",
|
|
48
|
-
text: "Scanner"
|
|
49
|
-
},
|
|
50
|
-
nfc: {
|
|
51
|
-
icon: "pisell2-a-NFC1",
|
|
52
|
-
text: "NFC"
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
44
|
var passiveModeType = ["scanner", "nfc"];
|
|
56
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
57
46
|
0 && (module.exports = {
|
|
58
|
-
entryModeErrorTextIcon,
|
|
59
47
|
entryModeTextIcon,
|
|
60
48
|
passiveModeType
|
|
61
49
|
});
|