@pisell/materials 2.2.85 → 2.2.87
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 +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +144 -160
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +25 -35
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +30 -40
- package/es/components/batch-editor/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +4 -5
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/index.d.ts +1 -6
- package/es/components/pisellAdjustPrice/index.js +63 -8
- package/es/components/pisellAdjustPrice/index.less +35 -6
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/status.js +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +20 -0
- package/es/components/pisellAdjustPrice/type.js +1 -0
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/pisellWalletPassCard/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Header/index.js +4 -3
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.js +1 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -3
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/versionSelect/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +10 -0
- package/es/components/virtual-keyboard/Amount/index.js +9 -4
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
- package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
- package/es/utils/index.d.ts +1 -1
- package/lib/components/batch-editor/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +4 -5
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
- package/lib/components/pisellAdjustPrice/index.js +118 -57
- package/lib/components/pisellAdjustPrice/index.less +35 -6
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/status.js +60 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
- package/lib/components/pisellAdjustPrice/type.js +17 -0
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Header/index.js +4 -3
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.js +1 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -3
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/versionSelect/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +10 -0
- package/lib/components/virtual-keyboard/Amount/index.js +8 -3
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
- package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -27
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/pisell-adjust-price/meta.ts +168 -0
- package/lowcode/pisell-adjust-price/snippets.ts +1 -0
- package/package.json +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -93
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -84
- package/es/components/table/types.d.ts +0 -251
- package/es/locales/en-US.d.ts +0 -278
- package/es/locales/zh-CN.d.ts +0 -273
- package/es/locales/zh-TW.d.ts +0 -273
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -93
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -84
- package/lib/components/table/types.d.ts +0 -251
- package/lib/locales/en-US.d.ts +0 -278
- package/lib/locales/zh-CN.d.ts +0 -273
- package/lib/locales/zh-TW.d.ts +0 -273
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
|
|
3
|
+
export interface RightItemsStyleProps {
|
|
4
|
+
buttonBackgroundColor?: string;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
resetButtonBackgroundColor?: string;
|
|
7
|
+
resetButtonTextColor?: string;
|
|
8
|
+
isDoneButtonFollowTheme?: boolean;
|
|
9
|
+
doneButtonBackgroundColor?: string;
|
|
10
|
+
doneButtonTextColor?: string;
|
|
11
|
+
}
|
|
3
12
|
export interface AmountProps {
|
|
4
13
|
max?: number;
|
|
5
14
|
min?: number;
|
|
@@ -17,6 +26,7 @@ export interface AmountProps {
|
|
|
17
26
|
onEnter?: (val: string | number) => void;
|
|
18
27
|
defaultSelect?: boolean;
|
|
19
28
|
inputFormat?: (_v: string) => React.ReactNode | null;
|
|
29
|
+
rightItemsStyle?: RightItemsStyleProps;
|
|
20
30
|
}
|
|
21
31
|
declare const Amount: (props: AmountProps) => JSX.Element;
|
|
22
32
|
export default Amount;
|
|
@@ -19,9 +19,10 @@ var Amount = function Amount(props) {
|
|
|
19
19
|
onEnter = props.onEnter,
|
|
20
20
|
presets = props.presets,
|
|
21
21
|
defaultSelect = props.defaultSelect,
|
|
22
|
-
inputFormat = props.inputFormat
|
|
22
|
+
inputFormat = props.inputFormat,
|
|
23
|
+
rightItemsStyle = props.rightItemsStyle;
|
|
23
24
|
var _useControllableValue = useControllableValue(props, {
|
|
24
|
-
defaultValue: defaultValue ||
|
|
25
|
+
defaultValue: defaultValue || ''
|
|
25
26
|
}),
|
|
26
27
|
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
27
28
|
value = _useControllableValue2[0],
|
|
@@ -44,7 +45,10 @@ var Amount = function Amount(props) {
|
|
|
44
45
|
precision: precision,
|
|
45
46
|
hideDecimalForWholeNumbers: false,
|
|
46
47
|
showCurrencySymbol: amountProps === null || amountProps === void 0 ? void 0 : amountProps.showCurrencySymbol,
|
|
47
|
-
useThousandsSeparator: amountProps === null || amountProps === void 0 ? void 0 : amountProps.useThousandsSeparator
|
|
48
|
+
useThousandsSeparator: amountProps === null || amountProps === void 0 ? void 0 : amountProps.useThousandsSeparator,
|
|
49
|
+
style: {
|
|
50
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
|
|
51
|
+
}
|
|
48
52
|
}), endWith && '.');
|
|
49
53
|
};
|
|
50
54
|
return /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
|
|
@@ -59,7 +63,8 @@ var Amount = function Amount(props) {
|
|
|
59
63
|
doneText: doneText,
|
|
60
64
|
resetText: resetText,
|
|
61
65
|
onEnter: onEnter,
|
|
62
|
-
presets: presets
|
|
66
|
+
presets: presets,
|
|
67
|
+
rightItemsStyle: rightItemsStyle
|
|
63
68
|
});
|
|
64
69
|
};
|
|
65
70
|
export default Amount;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PresetsProps } from
|
|
2
|
+
import { PresetsProps } from './Presets';
|
|
3
|
+
import { RightItemsStyleProps } from '../Amount';
|
|
3
4
|
import './index.less';
|
|
4
5
|
export interface BaseNumberKeyboardProps {
|
|
5
6
|
placeholder?: string;
|
|
@@ -14,6 +15,7 @@ export interface BaseNumberKeyboardProps {
|
|
|
14
15
|
min?: number;
|
|
15
16
|
presets?: PresetsProps['presets'];
|
|
16
17
|
defaultSelect?: boolean;
|
|
18
|
+
rightItemsStyle?: RightItemsStyleProps;
|
|
17
19
|
}
|
|
18
20
|
declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
|
|
19
21
|
export default BaseNumberKeyboard;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -86,7 +92,8 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
86
92
|
min = props.min,
|
|
87
93
|
onEnter = props.onEnter,
|
|
88
94
|
presets = props.presets,
|
|
89
|
-
defaultSelect = props.defaultSelect
|
|
95
|
+
defaultSelect = props.defaultSelect,
|
|
96
|
+
rightItemsStyle = props.rightItemsStyle;
|
|
90
97
|
var _useControllableValue = useControllableValue(props, {
|
|
91
98
|
defaultValue: defaultValue
|
|
92
99
|
}),
|
|
@@ -107,7 +114,11 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
107
114
|
className: "virtual-keyboard-input-delete-icon"
|
|
108
115
|
}),
|
|
109
116
|
disabled: false,
|
|
110
|
-
type: 'text'
|
|
117
|
+
type: 'text',
|
|
118
|
+
style: {
|
|
119
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000',
|
|
120
|
+
backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#ffffff'
|
|
121
|
+
}
|
|
111
122
|
}, {
|
|
112
123
|
value: 'reset',
|
|
113
124
|
label: resetText || 'Reset',
|
|
@@ -115,7 +126,8 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
115
126
|
type: 'text',
|
|
116
127
|
style: {
|
|
117
128
|
fontSize: '18px',
|
|
118
|
-
color: '#D92D20'
|
|
129
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonTextColor) || '#D92D20',
|
|
130
|
+
backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonBackgroundColor) || '#ffffff'
|
|
119
131
|
}
|
|
120
132
|
}, {
|
|
121
133
|
value: 'done',
|
|
@@ -125,11 +137,23 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
125
137
|
size: 2,
|
|
126
138
|
style: {
|
|
127
139
|
fontSize: '18px',
|
|
128
|
-
background: 'var(--
|
|
129
|
-
color: '#
|
|
140
|
+
background: rightItemsStyle !== null && rightItemsStyle !== void 0 && rightItemsStyle.isDoneButtonFollowTheme ? 'var(--theme-color)' : (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || '#5d3f9f',
|
|
141
|
+
color: rightItemsStyle !== null && rightItemsStyle !== void 0 && rightItemsStyle.isDoneButtonFollowTheme ? '#ffffff' : (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonTextColor) || '#ffffff'
|
|
130
142
|
}
|
|
131
143
|
}];
|
|
132
|
-
}, [doneText, resetText]);
|
|
144
|
+
}, [doneText, resetText, rightItemsStyle]);
|
|
145
|
+
|
|
146
|
+
// 给每个item增加背景色
|
|
147
|
+
var itemsWithStyle = useMemo(function () {
|
|
148
|
+
return items.map(function (item) {
|
|
149
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
150
|
+
style: {
|
|
151
|
+
backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#fff',
|
|
152
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}, [items, rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor, rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor]);
|
|
133
157
|
var checkValue = function checkValue(val) {
|
|
134
158
|
// 超过最大值时使用最大值
|
|
135
159
|
if (isNumber(max) && Number(val) > max) {
|
|
@@ -161,11 +185,11 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
161
185
|
},
|
|
162
186
|
delete: function _delete() {
|
|
163
187
|
// 选中时删除全部 否则删除最后一位
|
|
164
|
-
handleChangeValue(select ? '' : "".concat(value ||
|
|
188
|
+
handleChangeValue(select ? '' : "".concat(value || '').slice(0, -1));
|
|
165
189
|
},
|
|
166
190
|
reset: function reset() {
|
|
167
191
|
// 重置到默认值
|
|
168
|
-
handleChangeValue("".concat(defaultValue ||
|
|
192
|
+
handleChangeValue("".concat(defaultValue || '') || '');
|
|
169
193
|
},
|
|
170
194
|
done: function done() {
|
|
171
195
|
onEnter === null || onEnter === void 0 || onEnter(value);
|
|
@@ -200,12 +224,16 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
200
224
|
},
|
|
201
225
|
showDelete: false,
|
|
202
226
|
onValueSelect: setSelect,
|
|
203
|
-
defaultSelect: defaultSelect
|
|
227
|
+
defaultSelect: defaultSelect,
|
|
228
|
+
style: {
|
|
229
|
+
backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#fff',
|
|
230
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
|
|
231
|
+
}
|
|
204
232
|
}), /*#__PURE__*/React.createElement(Presets, {
|
|
205
233
|
presets: presets,
|
|
206
234
|
onChange: handleChangeValue
|
|
207
235
|
}), /*#__PURE__*/React.createElement(Keyboard, {
|
|
208
|
-
items:
|
|
236
|
+
items: itemsWithStyle,
|
|
209
237
|
rightItems: rightItems,
|
|
210
238
|
onChange: handleKeyboardChange
|
|
211
239
|
}));
|
|
@@ -89,10 +89,10 @@ var Keyboard = function Keyboard(props) {
|
|
|
89
89
|
key: item.value,
|
|
90
90
|
type: item.type,
|
|
91
91
|
className: "virtual-keyboard-item-button",
|
|
92
|
-
style: {
|
|
92
|
+
style: _objectSpread({
|
|
93
93
|
fontSize: ((_item$style2 = item.style) === null || _item$style2 === void 0 ? void 0 : _item$style2.fontSize) || 25,
|
|
94
94
|
color: item.type === 'primary' ? '#fff' : ((_item$style3 = item.style) === null || _item$style3 === void 0 ? void 0 : _item$style3.color) || undefined
|
|
95
|
-
},
|
|
95
|
+
}, item.type === 'primary' ? item.style || {} : {}),
|
|
96
96
|
disabled: item.disabled,
|
|
97
97
|
onClick: function onClick(e) {
|
|
98
98
|
onChange === null || onChange === void 0 || onChange(item.value);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from 'antd';
|
|
2
3
|
import './index.less';
|
|
3
4
|
export interface VirtualKeyInputProps extends InputProps {
|
|
@@ -6,6 +7,7 @@ export interface VirtualKeyInputProps extends InputProps {
|
|
|
6
7
|
showDelete?: boolean;
|
|
7
8
|
onValueSelect?: (selected: boolean) => void;
|
|
8
9
|
defaultSelect?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
9
11
|
}
|
|
10
12
|
declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
|
|
11
13
|
export default VirtualKeyInput;
|
|
@@ -20,7 +20,8 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
|
|
|
20
20
|
_props$showDelete = props.showDelete,
|
|
21
21
|
showDelete = _props$showDelete === void 0 ? true : _props$showDelete,
|
|
22
22
|
onValueSelect = props.onValueSelect,
|
|
23
|
-
defaultSelect = props.defaultSelect
|
|
23
|
+
defaultSelect = props.defaultSelect,
|
|
24
|
+
style = props.style;
|
|
24
25
|
var _useState = useState(defaultSelect !== null && defaultSelect !== void 0 ? defaultSelect : false),
|
|
25
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
27
|
select = _useState2[0],
|
|
@@ -57,7 +58,10 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
|
|
|
57
58
|
});
|
|
58
59
|
};
|
|
59
60
|
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: "virtual-keyboard-input-wrap"
|
|
61
|
+
className: "virtual-keyboard-input-wrap",
|
|
62
|
+
style: {
|
|
63
|
+
backgroundColor: (style === null || style === void 0 ? void 0 : style.backgroundColor) || '#ffffff'
|
|
64
|
+
}
|
|
61
65
|
}, props.renderInput ? /*#__PURE__*/React.createElement("div", {
|
|
62
66
|
className: classNames('virtual-keyboard-input', {
|
|
63
67
|
'virtual-keyboard-input-select': select
|
|
@@ -66,6 +70,9 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
|
|
|
66
70
|
if (value) {
|
|
67
71
|
handleSelectChange(!select);
|
|
68
72
|
}
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
color: (style === null || style === void 0 ? void 0 : style.color) || '#000000'
|
|
69
76
|
}
|
|
70
77
|
}, props.renderInput(props)) : /*#__PURE__*/React.createElement(Input, _extends({
|
|
71
78
|
className: "virtual-keyboard-input",
|
|
@@ -73,7 +80,7 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
|
|
|
73
80
|
}, props, {
|
|
74
81
|
readOnly: true,
|
|
75
82
|
value: previewValue
|
|
76
|
-
})), (_ref = "".concat(value !== null && value !== void 0 ? value :
|
|
83
|
+
})), (_ref = "".concat(value !== null && value !== void 0 ? value : '')) !== null && _ref !== void 0 && _ref.length && showDelete ? /*#__PURE__*/React.createElement("div", {
|
|
77
84
|
className: "virtual-keyboard-input-delete",
|
|
78
85
|
onClick: _onDelete
|
|
79
86
|
}, /*#__PURE__*/React.createElement(Delete, {
|
package/es/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string | undefined;
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
2
|
+
dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
|
|
3
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
|
|
4
4
|
};
|
|
5
5
|
export default useDataSourceKey;
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
52
52
|
width: number;
|
|
53
53
|
align: "center" | "left" | "right";
|
|
54
54
|
fixed: false | "left" | "right";
|
|
55
|
-
type: "
|
|
55
|
+
type: "button" | "link";
|
|
56
56
|
items: OperationItem[];
|
|
57
57
|
} | undefined;
|
|
58
58
|
operationContent?: {
|
|
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
70
70
|
useCustomAction: boolean;
|
|
71
71
|
actionType: string;
|
|
72
72
|
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "
|
|
73
|
+
openContentSize: "large" | "middle" | "small";
|
|
74
74
|
openTitle: string;
|
|
75
75
|
key: string;
|
|
76
76
|
} | undefined;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "custom" | "
|
|
5
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
2
|
options?: any;
|
|
4
3
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const formFieldMap: {
|
|
3
2
|
FormItemCheckbox: import("react").FC<{}> & {
|
|
4
3
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -20,7 +19,7 @@ declare const formFieldMap: {
|
|
|
20
19
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
20
|
onChange: (value: string) => void;
|
|
22
21
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "custom" | "
|
|
22
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
24
23
|
customDomain?: string | undefined;
|
|
25
24
|
value?: string | undefined;
|
|
26
25
|
tenantId: string;
|
|
@@ -60,7 +59,7 @@ declare const formFieldMap: {
|
|
|
60
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
61
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
64
63
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
65
64
|
} & {
|
|
66
65
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -77,7 +76,7 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
|
|
|
77
76
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
78
77
|
onChange: (value: string) => void;
|
|
79
78
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
80
|
-
rootDomain: "custom" | "
|
|
79
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
81
80
|
customDomain?: string | undefined;
|
|
82
81
|
value?: string | undefined;
|
|
83
82
|
tenantId: string;
|
|
@@ -98,5 +97,5 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
|
|
|
98
97
|
dataSource?: any;
|
|
99
98
|
}) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
100
99
|
onChange: (value: string) => void;
|
|
101
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
100
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
101
|
export { getFieldComponent, formFieldMap };
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import './index.less';
|
|
2
|
-
|
|
3
|
-
value?: number;
|
|
4
|
-
originValue: number;
|
|
5
|
-
defaultValue?: number;
|
|
6
|
-
onChange?: (val: number) => void;
|
|
7
|
-
}
|
|
2
|
+
import { PisellAdjustPriceProps } from './type';
|
|
8
3
|
declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
|
|
9
4
|
export default PisellAdjustPrice;
|