@pisell/private-materials 6.0.12 → 6.0.13
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 +146 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -33
- package/es/components/booking/forms/model.d.ts +1 -1
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -1
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +6 -4
- package/es/components/workSpaceList/components/AppearanceEdit/constants.js +6 -0
- package/lib/components/booking/forms/model.d.ts +1 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -1
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +6 -4
- package/package.json +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FormState } from "../model";
|
3
|
-
export declare const Provider: (ComponentUi: any) =>
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
4
|
state: FormState;
|
5
5
|
} & {
|
6
6
|
dispatch: (params: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FormState } from "../model";
|
3
|
-
export declare const Provider: (ComponentUi: any) =>
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
4
|
state: FormState;
|
5
5
|
} & {
|
6
6
|
dispatch: (params: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FormState } from "../model";
|
3
|
-
export declare const Provider: (ComponentUi: any) =>
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
4
|
state: FormState;
|
5
5
|
} & {
|
6
6
|
dispatch: (params: {
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
9
9
|
*/
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
11
11
|
className?: string | undefined;
|
12
|
-
onChange?: ((status: "page" | "success" | "
|
12
|
+
onChange?: ((status: "page" | "success" | "fail", params?: string | {
|
13
13
|
[keys: string]: unknown;
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
15
15
|
onClose: () => void;
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
22
|
+
readonly eftposRef: React.MutableRefObject<"windcave" | "tyro" | "payo" | "stripe">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -69,7 +69,7 @@ export interface FormState {
|
|
69
69
|
};
|
70
70
|
setGlobalState: Function | null;
|
71
71
|
}
|
72
|
-
export declare const Provider: (ComponentUi: any) =>
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
73
73
|
state: FormState;
|
74
74
|
} & {
|
75
75
|
dispatch: (params: {
|
@@ -1,6 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
|
2
|
+
interface IconItem {
|
3
3
|
name: string;
|
4
|
-
icon:
|
5
|
-
}
|
6
|
-
export declare const
|
4
|
+
icon: React.ComponentType;
|
5
|
+
}
|
6
|
+
export declare const icons: IconItem[];
|
7
|
+
export declare const iconMap: Record<string, React.ComponentType>;
|
8
|
+
export {};
|
@@ -5,6 +5,10 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
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 { Bank, BankNote02, Coins04, CoinsHand, CoinsSwap02, CreditCard02, Cryptocurrency01, CurrencyBitcoin, Diamond01, Gift01, ShoppingBag01 } from '@pisell/icon';
|
8
|
+
|
9
|
+
// 定义图标项的接口
|
10
|
+
|
11
|
+
// 添加类型注解
|
8
12
|
export var icons = [{
|
9
13
|
name: 'bank',
|
10
14
|
icon: Bank
|
@@ -114,6 +118,8 @@ export var icons = [{
|
|
114
118
|
name: 'shopping-bag-01',
|
115
119
|
icon: ShoppingBag01
|
116
120
|
}];
|
121
|
+
|
122
|
+
// 明确指定 iconMap 的类型
|
117
123
|
export var iconMap = icons.reduce(function (p, c) {
|
118
124
|
return _objectSpread(_objectSpread({}, p), {}, _defineProperty({}, c.name, c.icon));
|
119
125
|
}, {});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FormState } from "../model";
|
3
|
-
export declare const Provider: (ComponentUi: any) =>
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
4
|
state: FormState;
|
5
5
|
} & {
|
6
6
|
dispatch: (params: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FormState } from "../model";
|
3
|
-
export declare const Provider: (ComponentUi: any) =>
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
4
|
state: FormState;
|
5
5
|
} & {
|
6
6
|
dispatch: (params: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FormState } from "../model";
|
3
|
-
export declare const Provider: (ComponentUi: any) =>
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
4
4
|
state: FormState;
|
5
5
|
} & {
|
6
6
|
dispatch: (params: {
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
9
9
|
*/
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
11
11
|
className?: string | undefined;
|
12
|
-
onChange?: ((status: "page" | "success" | "
|
12
|
+
onChange?: ((status: "page" | "success" | "fail", params?: string | {
|
13
13
|
[keys: string]: unknown;
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
15
15
|
onClose: () => void;
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
22
|
+
readonly eftposRef: React.MutableRefObject<"windcave" | "tyro" | "payo" | "stripe">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -69,7 +69,7 @@ export interface FormState {
|
|
69
69
|
};
|
70
70
|
setGlobalState: Function | null;
|
71
71
|
}
|
72
|
-
export declare const Provider: (ComponentUi: any) =>
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
73
73
|
state: FormState;
|
74
74
|
} & {
|
75
75
|
dispatch: (params: {
|
@@ -1,6 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
|
2
|
+
interface IconItem {
|
3
3
|
name: string;
|
4
|
-
icon:
|
5
|
-
}
|
6
|
-
export declare const
|
4
|
+
icon: React.ComponentType;
|
5
|
+
}
|
6
|
+
export declare const icons: IconItem[];
|
7
|
+
export declare const iconMap: Record<string, React.ComponentType>;
|
8
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.13",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"module": "./es/index.js",
|
6
6
|
"types": "./lib/index.d.ts",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
61
61
|
"decimal.js": "^10.4.3",
|
62
62
|
"@pisell/utils": "1.0.42",
|
63
|
-
"@pisell/materials": "6.0.
|
63
|
+
"@pisell/materials": "6.0.11",
|
64
64
|
"@pisell/icon": "0.0.11",
|
65
65
|
"@pisell/date-picker": "1.0.100"
|
66
66
|
},
|