@pisell/private-materials 6.1.31 → 6.1.32

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.
Files changed (35) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +6 -6
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  13. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/utils.d.ts +2 -2
  16. package/es/components/eftposPay/store/index.d.ts +2 -2
  17. package/es/components/schedules/utils.d.ts +1 -1
  18. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  19. package/es/index.d.ts +6 -0
  20. package/es/index.js +7 -1
  21. package/es/utils/index.d.ts +1 -1
  22. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  23. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  24. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  25. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  26. package/lib/components/booking/utils.d.ts +2 -2
  27. package/lib/components/eftposPay/store/index.d.ts +2 -2
  28. package/lib/components/schedules/utils.d.ts +1 -1
  29. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  30. package/lib/index.d.ts +6 -0
  31. package/lib/index.js +18 -0
  32. package/lib/utils/index.d.ts +1 -1
  33. package/lowcode/pro-number-keyboard/meta.ts +427 -0
  34. package/lowcode/pro-phone-selector/meta.ts +357 -0
  35. package/package.json +12 -12
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -298,12 +298,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
298
298
  mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "product" | "wallet" | "customer" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
package/es/index.d.ts CHANGED
@@ -50,3 +50,9 @@ export { default as ClientCard } from './plus/clientCard';
50
50
  export { default as ClientSearch } from './plus/clinetSearch';
51
51
  export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
52
52
  export { default as NoteModal } from './plus/noteModal';
53
+ export { default as ProNumberKeyboard } from './pro/numberKeyboard';
54
+ export { default as ProNumberSelector } from './pro/pisellNumberSelector';
55
+ export { default as ProPhoneSelector } from './pro/pisellPhoneKeyboard';
56
+ export { default as ProPriceKeyboard } from './pro/pisellPriceKeyboardModal';
57
+ export { default as ProPriceRadio } from './pro/pisellPriceRadio';
58
+ export { default as ProSkuDetailModal } from './pro/skuDetailModal';
package/es/index.js CHANGED
@@ -53,4 +53,10 @@ export { default as StepController } from "./components/stepController";
53
53
  export { default as ClientCard } from "./plus/clientCard";
54
54
  export { default as ClientSearch } from "./plus/clinetSearch";
55
55
  export { default as ComprehensiveSearch } from "./pro/comprehensiveSearch";
56
- export { default as NoteModal } from "./plus/noteModal";
56
+ export { default as NoteModal } from "./plus/noteModal";
57
+ export { default as ProNumberKeyboard } from "./pro/numberKeyboard";
58
+ export { default as ProNumberSelector } from "./pro/pisellNumberSelector";
59
+ export { default as ProPhoneSelector } from "./pro/pisellPhoneKeyboard";
60
+ export { default as ProPriceKeyboard } from "./pro/pisellPriceKeyboardModal";
61
+ export { default as ProPriceRadio } from "./pro/pisellPriceRadio";
62
+ export { default as ProSkuDetailModal } from "./pro/skuDetailModal";
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -298,12 +298,12 @@ export declare const backUpFree: (payload: Partial<State>) => {
298
298
  mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "product" | "wallet" | "customer" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
package/lib/index.d.ts CHANGED
@@ -50,3 +50,9 @@ export { default as ClientCard } from './plus/clientCard';
50
50
  export { default as ClientSearch } from './plus/clinetSearch';
51
51
  export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
52
52
  export { default as NoteModal } from './plus/noteModal';
53
+ export { default as ProNumberKeyboard } from './pro/numberKeyboard';
54
+ export { default as ProNumberSelector } from './pro/pisellNumberSelector';
55
+ export { default as ProPhoneSelector } from './pro/pisellPhoneKeyboard';
56
+ export { default as ProPriceKeyboard } from './pro/pisellPriceKeyboardModal';
57
+ export { default as ProPriceRadio } from './pro/pisellPriceRadio';
58
+ export { default as ProSkuDetailModal } from './pro/skuDetailModal';
package/lib/index.js CHANGED
@@ -64,6 +64,12 @@ __export(src_exports, {
64
64
  Login: () => import_login.default,
65
65
  NoteModal: () => import_noteModal.default,
66
66
  PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
67
+ ProNumberKeyboard: () => import_numberKeyboard.default,
68
+ ProNumberSelector: () => import_pisellNumberSelector.default,
69
+ ProPhoneSelector: () => import_pisellPhoneKeyboard.default,
70
+ ProPriceKeyboard: () => import_pisellPriceKeyboardModal.default,
71
+ ProPriceRadio: () => import_pisellPriceRadio.default,
72
+ ProSkuDetailModal: () => import_skuDetailModal.default,
67
73
  ProductExtension: () => import_productExtension.default,
68
74
  RuleSetting: () => import_ruleSetting.default,
69
75
  Schedules: () => import_schedules.default,
@@ -136,6 +142,12 @@ var import_clientCard = __toESM(require("./plus/clientCard"));
136
142
  var import_clinetSearch = __toESM(require("./plus/clinetSearch"));
137
143
  var import_comprehensiveSearch = __toESM(require("./pro/comprehensiveSearch"));
138
144
  var import_noteModal = __toESM(require("./plus/noteModal"));
145
+ var import_numberKeyboard = __toESM(require("./pro/numberKeyboard"));
146
+ var import_pisellNumberSelector = __toESM(require("./pro/pisellNumberSelector"));
147
+ var import_pisellPhoneKeyboard = __toESM(require("./pro/pisellPhoneKeyboard"));
148
+ var import_pisellPriceKeyboardModal = __toESM(require("./pro/pisellPriceKeyboardModal"));
149
+ var import_pisellPriceRadio = __toESM(require("./pro/pisellPriceRadio"));
150
+ var import_skuDetailModal = __toESM(require("./pro/skuDetailModal"));
139
151
  import_dayjs.default.extend(import_weekday.default);
140
152
  import_dayjs.default.extend(import_localeData.default);
141
153
  // Annotate the CommonJS export names for ESM import in node:
@@ -175,6 +187,12 @@ import_dayjs.default.extend(import_localeData.default);
175
187
  Login,
176
188
  NoteModal,
177
189
  PisellSelectCustomerModal,
190
+ ProNumberKeyboard,
191
+ ProNumberSelector,
192
+ ProPhoneSelector,
193
+ ProPriceKeyboard,
194
+ ProPriceRadio,
195
+ ProSkuDetailModal,
178
196
  ProductExtension,
179
197
  RuleSetting,
180
198
  Schedules,
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };