@pisell/private-materials 6.0.12 → 6.0.14
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/app.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.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/es/components/workSpaceList/components/Modal/index.js +2 -2
- 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/app.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.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/lib/components/workSpaceList/components/Modal/index.js +2 -2
- package/package.json +2 -2
- package/es/components/workSpaceList/components/Iconfont/index.d.ts +0 -6
- package/es/components/workSpaceList/components/Iconfont/index.js +0 -13
- package/es/components/workSpaceList/components/Iconfont/index.less +0 -0
- package/lib/components/workSpaceList/components/Iconfont/index.d.ts +0 -6
- package/lib/components/workSpaceList/components/Iconfont/index.js +0 -44
- package/lib/components/workSpaceList/components/Iconfont/index.less +0 -0
@@ -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: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { PosProps, RouteType } from './const';
|
3
|
-
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "
|
3
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
4
4
|
action: RouteType;
|
5
5
|
device_number: string | number;
|
6
6
|
api: ReturnType<PosProps['getApi']>;
|
@@ -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<"tyro" | "windcave" | "payo" | "stripe">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
297
297
|
amount?: string | number | undefined;
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "
|
300
|
+
eftpos?: "tyro" | "windcave" | "payo" | "stripe" | undefined;
|
301
301
|
action?: "amount" | "deviceList" | "pay" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
@@ -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
|
}, {});
|
@@ -6,14 +6,14 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
7
7
|
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); }
|
8
8
|
import React from 'react';
|
9
|
-
import
|
9
|
+
import { Icon } from "@pisell/materials";
|
10
10
|
import { Modal as AntModal } from 'antd';
|
11
11
|
import cs from 'classnames';
|
12
12
|
import "./index.less";
|
13
13
|
var DeleteIcon = function DeleteIcon() {
|
14
14
|
return /*#__PURE__*/React.createElement("div", {
|
15
15
|
className: "delete-icon"
|
16
|
-
}, /*#__PURE__*/React.createElement(
|
16
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
17
17
|
type: "pisell2-a-Property3shanchu",
|
18
18
|
className: "icon"
|
19
19
|
}));
|
@@ -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: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { PosProps, RouteType } from './const';
|
3
|
-
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "
|
3
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
4
4
|
action: RouteType;
|
5
5
|
device_number: string | number;
|
6
6
|
api: ReturnType<PosProps['getApi']>;
|
@@ -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<"tyro" | "windcave" | "payo" | "stripe">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
297
297
|
amount?: string | number | undefined;
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "
|
300
|
+
eftpos?: "tyro" | "windcave" | "payo" | "stripe" | undefined;
|
301
301
|
action?: "amount" | "deviceList" | "pay" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
@@ -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 {};
|
@@ -33,12 +33,12 @@ __export(Modal_exports, {
|
|
33
33
|
});
|
34
34
|
module.exports = __toCommonJS(Modal_exports);
|
35
35
|
var import_react = __toESM(require("react"));
|
36
|
-
var
|
36
|
+
var import_materials = require("@pisell/materials");
|
37
37
|
var import_antd = require("antd");
|
38
38
|
var import_classnames = __toESM(require("classnames"));
|
39
39
|
var import_index = require("./index.less");
|
40
40
|
var DeleteIcon = () => {
|
41
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-icon" }, /* @__PURE__ */ import_react.default.createElement(
|
41
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-icon" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-a-Property3shanchu", className: "icon" }));
|
42
42
|
};
|
43
43
|
var OriginModal = (props) => {
|
44
44
|
const { evenlyButton } = props;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.14",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"module": "./es/index.js",
|
6
6
|
"types": "./lib/index.d.ts",
|
@@ -60,8 +60,8 @@
|
|
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.10",
|
64
63
|
"@pisell/icon": "0.0.11",
|
64
|
+
"@pisell/materials": "6.0.12",
|
65
65
|
"@pisell/date-picker": "1.0.100"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|
@@ -1,13 +0,0 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
|
-
import { createFromIconfontCN } from '@ant-design/icons';
|
3
|
-
import React from 'react';
|
4
|
-
var MyIcon = createFromIconfontCN({
|
5
|
-
scriptUrl: 'https://at.alicdn.com/t/c/font_4075221_irxjxo3wv1l.js' // 在 iconfont.cn 上生成
|
6
|
-
});
|
7
|
-
|
8
|
-
var IconFont = function IconFont(props) {
|
9
|
-
return /*#__PURE__*/React.createElement(MyIcon, _extends({}, props, {
|
10
|
-
className: props.className
|
11
|
-
}));
|
12
|
-
};
|
13
|
-
export default IconFont;
|
File without changes
|
@@ -1,44 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
-
mod
|
26
|
-
));
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
-
|
29
|
-
// src/components/workSpaceList/components/Iconfont/index.tsx
|
30
|
-
var Iconfont_exports = {};
|
31
|
-
__export(Iconfont_exports, {
|
32
|
-
default: () => Iconfont_default
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(Iconfont_exports);
|
35
|
-
var import_icons = require("@ant-design/icons");
|
36
|
-
var import_react = __toESM(require("react"));
|
37
|
-
var MyIcon = (0, import_icons.createFromIconfontCN)({
|
38
|
-
scriptUrl: "https://at.alicdn.com/t/c/font_4075221_irxjxo3wv1l.js"
|
39
|
-
// 在 iconfont.cn 上生成
|
40
|
-
});
|
41
|
-
var IconFont = (props) => {
|
42
|
-
return /* @__PURE__ */ import_react.default.createElement(MyIcon, { ...props, className: props.className });
|
43
|
-
};
|
44
|
-
var Iconfont_default = IconFont;
|
File without changes
|