@pisell/materials 6.1.6 → 6.1.8
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 +1 -1
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/view.js +20 -20
- package/es/components/appVersionControl/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +3 -3
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -1
- package/es/components/productCard/components/Action/index.d.ts +0 -1
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
- package/es/components/productCard/components/Header/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
- package/es/components/productCard/components/Time/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
- package/es/components/table/Table/AddFieldModal/index.js +13 -13
- package/es/components/table/Table/AddFieldModal/index.less +11 -11
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/utils.d.ts +1 -1
- package/lib/components/appVersionControl/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +3 -3
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -1
- package/lib/components/productCard/components/Action/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
- package/lib/components/table/Table/AddFieldModal/index.js +9 -9
- package/lib/components/table/Table/AddFieldModal/index.less +11 -11
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/package.json +1 -1
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
|
@@ -36,7 +36,7 @@ var import_iconfont = __toESM(require("../../../iconfont"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_SelectField = __toESM(require("../SelectField"));
|
|
39
|
-
var import_index =
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
40
|
var import_hooks = require("../../../../hooks");
|
|
41
41
|
var import_model = require("../../model");
|
|
42
42
|
var AddFieldModal = () => {
|
|
@@ -85,7 +85,7 @@ var AddFieldModal = () => {
|
|
|
85
85
|
},
|
|
86
86
|
onFinish: addField
|
|
87
87
|
},
|
|
88
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
88
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-field-modal" }, /* @__PURE__ */ import_react.default.createElement(
|
|
89
89
|
import_antd.Form.Item,
|
|
90
90
|
{
|
|
91
91
|
label: "Field Name",
|
|
@@ -101,13 +101,13 @@ var AddFieldModal = () => {
|
|
|
101
101
|
import_antd.Input,
|
|
102
102
|
{
|
|
103
103
|
placeholder: "Field name (optional)",
|
|
104
|
-
className:
|
|
104
|
+
className: "pisell-lowcode-header-search"
|
|
105
105
|
}
|
|
106
106
|
)
|
|
107
|
-
), /* @__PURE__ */ import_react.default.createElement(import_SelectField.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
107
|
+
), /* @__PURE__ */ import_react.default.createElement(import_SelectField.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-modal-footer" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-describe" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pi-Plus", className: "pisell-lowcode-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode-label" }, "Add description")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-btns" }, /* @__PURE__ */ import_react.default.createElement(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
110
|
-
className:
|
|
110
|
+
className: "pisell-lowcode-cancel",
|
|
111
111
|
onClick: () => {
|
|
112
112
|
onCloseModal();
|
|
113
113
|
}
|
|
@@ -116,7 +116,7 @@ var AddFieldModal = () => {
|
|
|
116
116
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
|
-
className:
|
|
119
|
+
className: "pisell-lowcode-submit",
|
|
120
120
|
onClick: () => {
|
|
121
121
|
form.submit();
|
|
122
122
|
}
|
|
@@ -136,7 +136,7 @@ var AddFieldModal = () => {
|
|
|
136
136
|
placement: "bottomRight",
|
|
137
137
|
overlayInnerStyle: { padding: 0 },
|
|
138
138
|
trigger: "click",
|
|
139
|
-
overlayClassName:
|
|
139
|
+
overlayClassName: "pisell-lowcode-popover-wrap",
|
|
140
140
|
onOpenChange: (e) => {
|
|
141
141
|
if (!e) {
|
|
142
142
|
onCloseModal();
|
|
@@ -146,11 +146,11 @@ var AddFieldModal = () => {
|
|
|
146
146
|
},
|
|
147
147
|
open: openModal
|
|
148
148
|
},
|
|
149
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
149
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-field-btn" }, /* @__PURE__ */ import_react.default.createElement(
|
|
150
150
|
import_iconfont.default,
|
|
151
151
|
{
|
|
152
152
|
type: "pi-a-Property3Add",
|
|
153
|
-
className:
|
|
153
|
+
className: "pisell-lowcode-add-field-icon"
|
|
154
154
|
}
|
|
155
155
|
))
|
|
156
156
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.add-field-btn {
|
|
1
|
+
.pisell-lowcode-add-field-btn {
|
|
2
2
|
position: absolute;
|
|
3
3
|
right: 0;
|
|
4
4
|
top: 0;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
|
|
14
|
-
.add-field-icon {}
|
|
14
|
+
.pisell-lowcode-add-field-icon {}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.popover-wrap {
|
|
17
|
+
.pisell-lowcode-popover-wrap {
|
|
18
18
|
:global {
|
|
19
19
|
.pisell-lowcode-popover-arrow {
|
|
20
20
|
display: none;
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.add-field-modal {
|
|
25
|
+
.pisell-lowcode-add-field-modal {
|
|
26
26
|
width: 360px;
|
|
27
27
|
padding: 16px 16px 0 16px;
|
|
28
28
|
|
|
29
|
-
.modal-footer {
|
|
29
|
+
.pisell-lowcode-modal-footer {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: space-between;
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
padding: 0 16px;
|
|
36
36
|
border-top: 1px solid #F1F1F1;
|
|
37
37
|
|
|
38
|
-
.add-describe {
|
|
38
|
+
.pisell-lowcode-add-describe {
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
|
|
44
|
-
.icon {
|
|
44
|
+
.pisell-lowcode-icon {
|
|
45
45
|
width: 24px;
|
|
46
46
|
height: 24px;
|
|
47
47
|
display: flex;
|
|
@@ -51,27 +51,27 @@
|
|
|
51
51
|
color: #1B1B1B;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.label {
|
|
54
|
+
.pisell-lowcode-label {
|
|
55
55
|
margin-left: 2px;
|
|
56
56
|
font-size: 14px;
|
|
57
57
|
color: #777777;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.btns {
|
|
61
|
+
.pisell-lowcode-btns {
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
justify-content: center;
|
|
65
65
|
gap: 16px;
|
|
66
66
|
|
|
67
|
-
.cancel {
|
|
67
|
+
.pisell-lowcode-cancel {
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
font-weight: 400;
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
color: #1B1B1B;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.submit {
|
|
74
|
+
.pisell-lowcode-submit {
|
|
75
75
|
cursor: pointer;
|
|
76
76
|
font-weight: 400;
|
|
77
77
|
font-size: 14px;
|
|
@@ -158,7 +158,7 @@ export declare const fieldList: ({
|
|
|
158
158
|
field_icon: string;
|
|
159
159
|
field_name: string;
|
|
160
160
|
field_type: string;
|
|
161
|
-
default_value:
|
|
161
|
+
default_value: string;
|
|
162
162
|
} | {
|
|
163
163
|
field_icon: string;
|
|
164
164
|
field_name: string;
|
|
@@ -198,7 +198,7 @@ export declare const fieldList: ({
|
|
|
198
198
|
field_icon: string;
|
|
199
199
|
field_name: string;
|
|
200
200
|
field_type: string;
|
|
201
|
-
default_value:
|
|
201
|
+
default_value: boolean;
|
|
202
202
|
} | {
|
|
203
203
|
field_icon: string;
|
|
204
204
|
field_name: string;
|
|
@@ -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
|
-
}) => ("filter_setting" | "
|
|
158
|
+
}) => ("filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "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 {};
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
import { ValueProps, SortType } from '../types';
|
|
4
|
-
declare type IdType = string | number;
|
|
5
|
-
declare type TreeItemProps = {
|
|
6
|
-
id: string | number;
|
|
7
|
-
key: string | number;
|
|
8
|
-
item: ValueProps | any;
|
|
9
|
-
depth: number;
|
|
10
|
-
lists: any[];
|
|
11
|
-
childrenProps?: SortType;
|
|
12
|
-
sensors?: any;
|
|
13
|
-
expandedKeys?: IdType[];
|
|
14
|
-
setExpandedKeys?: any;
|
|
15
|
-
onSelectKeys?: (ids: IdType) => void;
|
|
16
|
-
onChange?: (value: any[]) => void;
|
|
17
|
-
};
|
|
18
|
-
declare const TreeItem: (props: TreeItemProps) => JSX.Element;
|
|
19
|
-
export default TreeItem;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const defaultConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
isShowMainText: boolean;
|
|
13
|
-
mainTextColor: string;
|
|
14
|
-
isShowSubText: boolean;
|
|
15
|
-
subTextColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
isShowMainText: boolean;
|
|
28
|
-
mainTextColor: string;
|
|
29
|
-
isShowSubText: boolean;
|
|
30
|
-
subTextColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface PisellAdjustPriceProps {
|
|
2
|
-
value?: number;
|
|
3
|
-
originValue: number;
|
|
4
|
-
defaultValue?: number;
|
|
5
|
-
onChange?: (val: number) => void;
|
|
6
|
-
selectType?: 'light' | 'dark';
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
containerBackgroundColor?: string;
|
|
9
|
-
buttonBackgroundColor?: string;
|
|
10
|
-
textColor?: string;
|
|
11
|
-
resetButtonBackgroundColor?: string;
|
|
12
|
-
resetButtonTextColor?: string;
|
|
13
|
-
isDoneButtonFollowTheme?: boolean;
|
|
14
|
-
doneButtonBackgroundColor?: string;
|
|
15
|
-
doneButtonTextColor?: string;
|
|
16
|
-
isShowMainText?: boolean;
|
|
17
|
-
mainTextColor?: string;
|
|
18
|
-
isShowSubText?: boolean;
|
|
19
|
-
subTextColor?: string;
|
|
20
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare type NativeProps<S extends string = never> = {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
6
|
-
};
|
|
7
|
-
declare type PropagationEvent = 'click';
|
|
8
|
-
import './index.less';
|
|
9
|
-
declare type SideType = 'left' | 'right';
|
|
10
|
-
export declare type SwipeActionRef = {
|
|
11
|
-
close: () => void;
|
|
12
|
-
show: (side?: SideType) => void;
|
|
13
|
-
};
|
|
14
|
-
declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
|
-
export declare type Action = {
|
|
16
|
-
key: string | number;
|
|
17
|
-
text: ReactNode;
|
|
18
|
-
color?: ActionColor | string;
|
|
19
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
-
};
|
|
21
|
-
export declare type SwipeActionProps = {
|
|
22
|
-
rightActions?: Action[];
|
|
23
|
-
leftActions?: Action[];
|
|
24
|
-
onAction?: (action: Action, e: React.MouseEvent) => void;
|
|
25
|
-
closeOnTouchOutside?: boolean;
|
|
26
|
-
closeOnAction?: boolean;
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
stopPropagation?: PropagationEvent[];
|
|
29
|
-
onActionsReveal?: (side: SideType) => void;
|
|
30
|
-
onClose?: () => void;
|
|
31
|
-
escapeDom?: string;
|
|
32
|
-
} & NativeProps<'--background'>;
|
|
33
|
-
export declare const SwipeAction: React.ForwardRefExoticComponent<{
|
|
34
|
-
rightActions?: Action[] | undefined;
|
|
35
|
-
leftActions?: Action[] | undefined;
|
|
36
|
-
onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
|
|
37
|
-
closeOnTouchOutside?: boolean | undefined;
|
|
38
|
-
closeOnAction?: boolean | undefined;
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
stopPropagation?: "click"[] | undefined;
|
|
41
|
-
onActionsReveal?: ((side: SideType) => void) | undefined;
|
|
42
|
-
onClose?: (() => void) | undefined;
|
|
43
|
-
escapeDom?: string | undefined;
|
|
44
|
-
} & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
|
|
45
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const amountThemeConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
keyboardBackgroundColor: string;
|
|
13
|
-
keyboardButtonBackgroundColor: string;
|
|
14
|
-
keyboardButtonTextColor: string;
|
|
15
|
-
keyboardButtonHoverColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
keyboardBackgroundColor: string;
|
|
28
|
-
keyboardButtonBackgroundColor: string;
|
|
29
|
-
keyboardButtonTextColor: string;
|
|
30
|
-
keyboardButtonHoverColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export declare type ItemValue = string | number;
|
|
4
|
-
export interface Item {
|
|
5
|
-
value: ItemValue;
|
|
6
|
-
label: React.ReactNode;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
type: 'text' | 'primary';
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
size?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface KeyboardProps {
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
onChange?: (value?: ItemValue) => void;
|
|
16
|
-
items?: Item[];
|
|
17
|
-
rightItems?: Item[];
|
|
18
|
-
keydown?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
21
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const numberThemeConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
keyboardBackgroundColor: string;
|
|
13
|
-
keyboardButtonBackgroundColor: string;
|
|
14
|
-
keyboardButtonTextColor: string;
|
|
15
|
-
keyboardButtonHoverColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
keyboardBackgroundColor: string;
|
|
28
|
-
keyboardButtonBackgroundColor: string;
|
|
29
|
-
keyboardButtonTextColor: string;
|
|
30
|
-
keyboardButtonHoverColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface NumberProps {
|
|
2
|
-
max?: number;
|
|
3
|
-
min?: number;
|
|
4
|
-
doneText?: string;
|
|
5
|
-
resetText: string;
|
|
6
|
-
defaultValue?: string | number;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
value?: string | number;
|
|
9
|
-
onChange?: (val: string | number) => void;
|
|
10
|
-
onEnter?: (val: string | number) => void;
|
|
11
|
-
selectType?: 'light' | 'dark';
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
containerBackgroundColor?: string;
|
|
14
|
-
buttonBackgroundColor?: string;
|
|
15
|
-
textColor?: string;
|
|
16
|
-
resetButtonBackgroundColor?: string;
|
|
17
|
-
resetButtonTextColor?: string;
|
|
18
|
-
isDoneButtonFollowTheme?: boolean;
|
|
19
|
-
doneButtonBackgroundColor?: string;
|
|
20
|
-
doneButtonTextColor?: string;
|
|
21
|
-
keyboardBackgroundColor?: string;
|
|
22
|
-
keyboardButtonBackgroundColor?: string;
|
|
23
|
-
keyboardButtonTextColor?: string;
|
|
24
|
-
keyboardButtonHoverColor?: string;
|
|
25
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
import { ValueProps, SortType } from '../types';
|
|
4
|
-
declare type IdType = string | number;
|
|
5
|
-
declare type TreeItemProps = {
|
|
6
|
-
id: string | number;
|
|
7
|
-
key: string | number;
|
|
8
|
-
item: ValueProps | any;
|
|
9
|
-
depth: number;
|
|
10
|
-
lists: any[];
|
|
11
|
-
childrenProps?: SortType;
|
|
12
|
-
sensors?: any;
|
|
13
|
-
expandedKeys?: IdType[];
|
|
14
|
-
setExpandedKeys?: any;
|
|
15
|
-
onSelectKeys?: (ids: IdType) => void;
|
|
16
|
-
onChange?: (value: any[]) => void;
|
|
17
|
-
};
|
|
18
|
-
declare const TreeItem: (props: TreeItemProps) => JSX.Element;
|
|
19
|
-
export default TreeItem;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const defaultConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
isShowMainText: boolean;
|
|
13
|
-
mainTextColor: string;
|
|
14
|
-
isShowSubText: boolean;
|
|
15
|
-
subTextColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
isShowMainText: boolean;
|
|
28
|
-
mainTextColor: string;
|
|
29
|
-
isShowSubText: boolean;
|
|
30
|
-
subTextColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface PisellAdjustPriceProps {
|
|
2
|
-
value?: number;
|
|
3
|
-
originValue: number;
|
|
4
|
-
defaultValue?: number;
|
|
5
|
-
onChange?: (val: number) => void;
|
|
6
|
-
selectType?: 'light' | 'dark';
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
containerBackgroundColor?: string;
|
|
9
|
-
buttonBackgroundColor?: string;
|
|
10
|
-
textColor?: string;
|
|
11
|
-
resetButtonBackgroundColor?: string;
|
|
12
|
-
resetButtonTextColor?: string;
|
|
13
|
-
isDoneButtonFollowTheme?: boolean;
|
|
14
|
-
doneButtonBackgroundColor?: string;
|
|
15
|
-
doneButtonTextColor?: string;
|
|
16
|
-
isShowMainText?: boolean;
|
|
17
|
-
mainTextColor?: string;
|
|
18
|
-
isShowSubText?: boolean;
|
|
19
|
-
subTextColor?: string;
|
|
20
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare type NativeProps<S extends string = never> = {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
6
|
-
};
|
|
7
|
-
declare type PropagationEvent = 'click';
|
|
8
|
-
import './index.less';
|
|
9
|
-
declare type SideType = 'left' | 'right';
|
|
10
|
-
export declare type SwipeActionRef = {
|
|
11
|
-
close: () => void;
|
|
12
|
-
show: (side?: SideType) => void;
|
|
13
|
-
};
|
|
14
|
-
declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
|
-
export declare type Action = {
|
|
16
|
-
key: string | number;
|
|
17
|
-
text: ReactNode;
|
|
18
|
-
color?: ActionColor | string;
|
|
19
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
-
};
|
|
21
|
-
export declare type SwipeActionProps = {
|
|
22
|
-
rightActions?: Action[];
|
|
23
|
-
leftActions?: Action[];
|
|
24
|
-
onAction?: (action: Action, e: React.MouseEvent) => void;
|
|
25
|
-
closeOnTouchOutside?: boolean;
|
|
26
|
-
closeOnAction?: boolean;
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
stopPropagation?: PropagationEvent[];
|
|
29
|
-
onActionsReveal?: (side: SideType) => void;
|
|
30
|
-
onClose?: () => void;
|
|
31
|
-
escapeDom?: string;
|
|
32
|
-
} & NativeProps<'--background'>;
|
|
33
|
-
export declare const SwipeAction: React.ForwardRefExoticComponent<{
|
|
34
|
-
rightActions?: Action[] | undefined;
|
|
35
|
-
leftActions?: Action[] | undefined;
|
|
36
|
-
onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
|
|
37
|
-
closeOnTouchOutside?: boolean | undefined;
|
|
38
|
-
closeOnAction?: boolean | undefined;
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
stopPropagation?: "click"[] | undefined;
|
|
41
|
-
onActionsReveal?: ((side: SideType) => void) | undefined;
|
|
42
|
-
onClose?: (() => void) | undefined;
|
|
43
|
-
escapeDom?: string | undefined;
|
|
44
|
-
} & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
|
|
45
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const amountThemeConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
keyboardBackgroundColor: string;
|
|
13
|
-
keyboardButtonBackgroundColor: string;
|
|
14
|
-
keyboardButtonTextColor: string;
|
|
15
|
-
keyboardButtonHoverColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
keyboardBackgroundColor: string;
|
|
28
|
-
keyboardButtonBackgroundColor: string;
|
|
29
|
-
keyboardButtonTextColor: string;
|
|
30
|
-
keyboardButtonHoverColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export declare type ItemValue = string | number;
|
|
4
|
-
export interface Item {
|
|
5
|
-
value: ItemValue;
|
|
6
|
-
label: React.ReactNode;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
type: 'text' | 'primary';
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
size?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface KeyboardProps {
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
onChange?: (value?: ItemValue) => void;
|
|
16
|
-
items?: Item[];
|
|
17
|
-
rightItems?: Item[];
|
|
18
|
-
keydown?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
21
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const numberThemeConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
keyboardBackgroundColor: string;
|
|
13
|
-
keyboardButtonBackgroundColor: string;
|
|
14
|
-
keyboardButtonTextColor: string;
|
|
15
|
-
keyboardButtonHoverColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
keyboardBackgroundColor: string;
|
|
28
|
-
keyboardButtonBackgroundColor: string;
|
|
29
|
-
keyboardButtonTextColor: string;
|
|
30
|
-
keyboardButtonHoverColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface NumberProps {
|
|
2
|
-
max?: number;
|
|
3
|
-
min?: number;
|
|
4
|
-
doneText?: string;
|
|
5
|
-
resetText: string;
|
|
6
|
-
defaultValue?: string | number;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
value?: string | number;
|
|
9
|
-
onChange?: (val: string | number) => void;
|
|
10
|
-
onEnter?: (val: string | number) => void;
|
|
11
|
-
selectType?: 'light' | 'dark';
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
containerBackgroundColor?: string;
|
|
14
|
-
buttonBackgroundColor?: string;
|
|
15
|
-
textColor?: string;
|
|
16
|
-
resetButtonBackgroundColor?: string;
|
|
17
|
-
resetButtonTextColor?: string;
|
|
18
|
-
isDoneButtonFollowTheme?: boolean;
|
|
19
|
-
doneButtonBackgroundColor?: string;
|
|
20
|
-
doneButtonTextColor?: string;
|
|
21
|
-
keyboardBackgroundColor?: string;
|
|
22
|
-
keyboardButtonBackgroundColor?: string;
|
|
23
|
-
keyboardButtonTextColor?: string;
|
|
24
|
-
keyboardButtonHoverColor?: string;
|
|
25
|
-
}
|