@pisell/private-materials 6.6.47 → 6.6.48

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 (29) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/booking/addons/model.d.ts +1 -10
  8. package/es/components/booking/components/footer/amount.js +5 -0
  9. package/es/components/booking/forms/model.d.ts +1 -10
  10. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  11. package/es/components/booking/info/model.d.ts +1 -10
  12. package/es/components/booking/model.d.ts +1 -9
  13. package/es/components/booking/notes/model.d.ts +1 -10
  14. package/es/components/booking/payments/model.d.ts +1 -10
  15. package/es/components/pay/toC/model.d.ts +1 -9
  16. package/es/components/schedules/model.d.ts +1 -9
  17. package/lib/components/booking/addons/model.d.ts +1 -10
  18. package/lib/components/booking/components/footer/amount.js +5 -0
  19. package/lib/components/booking/forms/model.d.ts +1 -10
  20. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  21. package/lib/components/booking/info/model.d.ts +1 -10
  22. package/lib/components/booking/model.d.ts +1 -9
  23. package/lib/components/booking/notes/model.d.ts +1 -10
  24. package/lib/components/booking/payments/model.d.ts +1 -10
  25. package/lib/components/pay/toC/model.d.ts +1 -9
  26. package/lib/components/schedules/model.d.ts +1 -9
  27. package/package.json +3 -3
  28. package/lowcode/eco-cup-list/meta.ts +0 -63
  29. package/lowcode/eco-customer-list/meta.ts +0 -63
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -860,6 +860,7 @@ var clearSurchargeFee = function clearSurchargeFee(state) {
860
860
  var _item$_extend$other7;
861
861
  var item = _step14.value;
862
862
  item._extend.surcharge_fee = 0;
863
+ item._extend.surcharge_rounding_remainder = undefined;
863
864
  item._extend.relation_surcharge_ids = [];
864
865
  var _iterator15 = _createForOfIteratorHelper(((_item$_extend$other7 = item._extend.other) === null || _item$_extend$other7 === void 0 ? void 0 : _item$_extend$other7.bundle) || []),
865
866
  _step15;
@@ -867,6 +868,7 @@ var clearSurchargeFee = function clearSurchargeFee(state) {
867
868
  for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
868
869
  var bundleItem = _step15.value;
869
870
  bundleItem.surcharge_fee = 0;
871
+ bundleItem.surcharge_rounding_remainder = undefined;
870
872
  bundleItem.relation_surcharge_ids = [];
871
873
  }
872
874
  } catch (err) {
@@ -880,6 +882,7 @@ var clearSurchargeFee = function clearSurchargeFee(state) {
880
882
  for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
881
883
  var relationDetail = _step16.value;
882
884
  relationDetail.surcharge_fee = 0;
885
+ relationDetail.surcharge_rounding_remainder = undefined;
883
886
  relationDetail.relation_surcharge_ids = [];
884
887
  }
885
888
  } catch (err) {
@@ -902,6 +905,7 @@ var clearSurchargeFee = function clearSurchargeFee(state) {
902
905
  var _item3$_extend$other;
903
906
  var _item3 = _step17.value;
904
907
  _item3._extend.surcharge_fee = 0;
908
+ _item3._extend.surcharge_rounding_remainder = undefined;
905
909
  _item3._extend.relation_surcharge_ids = [];
906
910
  var _iterator18 = _createForOfIteratorHelper(((_item3$_extend$other = _item3._extend.other) === null || _item3$_extend$other === void 0 ? void 0 : _item3$_extend$other.bundle) || []),
907
911
  _step18;
@@ -909,6 +913,7 @@ var clearSurchargeFee = function clearSurchargeFee(state) {
909
913
  for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
910
914
  var _bundleItem2 = _step18.value;
911
915
  _bundleItem2.surcharge_fee = 0;
916
+ _bundleItem2.surcharge_rounding_remainder = undefined;
912
917
  _bundleItem2.relation_surcharge_ids = [];
913
918
  }
914
919
  } catch (err) {
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -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<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -110,11 +109,4 @@ export declare const walkInData: {
110
109
  id: number;
111
110
  nickname: string;
112
111
  };
113
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
- state: FormState;
115
- } & {
116
- dispatch: (params: {
117
- type: string;
118
- payload: any;
119
- }) => void;
120
- }>;
112
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -31,11 +30,4 @@ export interface PayGroup {
31
30
  front_order_uuid?: string;
32
31
  orderDetail: any;
33
32
  }
34
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
35
- state: FormState;
36
- } & {
37
- dispatch: (params: {
38
- type: string;
39
- payload: any;
40
- }) => void;
41
- }>;
33
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -510,13 +510,16 @@ var clearSurchargeFee = (state) => {
510
510
  if (Array.isArray(service == null ? void 0 : service.value)) {
511
511
  for (let item of service.value) {
512
512
  item._extend.surcharge_fee = 0;
513
+ item._extend.surcharge_rounding_remainder = void 0;
513
514
  item._extend.relation_surcharge_ids = [];
514
515
  for (let bundleItem of ((_a = item._extend.other) == null ? void 0 : _a.bundle) || []) {
515
516
  bundleItem.surcharge_fee = 0;
517
+ bundleItem.surcharge_rounding_remainder = void 0;
516
518
  bundleItem.relation_surcharge_ids = [];
517
519
  }
518
520
  for (let relationDetail of item._extend.relation_details || []) {
519
521
  relationDetail.surcharge_fee = 0;
522
+ relationDetail.surcharge_rounding_remainder = void 0;
520
523
  relationDetail.relation_surcharge_ids = [];
521
524
  }
522
525
  }
@@ -524,9 +527,11 @@ var clearSurchargeFee = (state) => {
524
527
  if (Array.isArray(addons == null ? void 0 : addons.value)) {
525
528
  for (let item of addons.value) {
526
529
  item._extend.surcharge_fee = 0;
530
+ item._extend.surcharge_rounding_remainder = void 0;
527
531
  item._extend.relation_surcharge_ids = [];
528
532
  for (let bundleItem of ((_b = item._extend.other) == null ? void 0 : _b.bundle) || []) {
529
533
  bundleItem.surcharge_fee = 0;
534
+ bundleItem.surcharge_rounding_remainder = void 0;
530
535
  bundleItem.relation_surcharge_ids = [];
531
536
  }
532
537
  }
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -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<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -110,11 +109,4 @@ export declare const walkInData: {
110
109
  id: number;
111
110
  nickname: string;
112
111
  };
113
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
- state: FormState;
115
- } & {
116
- dispatch: (params: {
117
- type: string;
118
- payload: any;
119
- }) => void;
120
- }>;
112
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -31,11 +30,4 @@ export interface PayGroup {
31
30
  front_order_uuid?: string;
32
31
  orderDetail: any;
33
32
  }
34
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
35
- state: FormState;
36
- } & {
37
- dispatch: (params: {
38
- type: string;
39
- payload: any;
40
- }) => void;
41
- }>;
33
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.6.47",
3
+ "version": "6.6.48",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -61,10 +61,10 @@
61
61
  "styled-components": "^6.0.0-rc.3",
62
62
  "@react-spring/web": "^9.6.1",
63
63
  "@use-gesture/react": "^10.3.1",
64
+ "@pisell/date-picker": "3.0.7",
64
65
  "@pisell/utils": "3.0.2",
65
66
  "@pisell/icon": "0.0.11",
66
- "@pisell/materials": "6.6.14",
67
- "@pisell/date-picker": "3.0.7"
67
+ "@pisell/materials": "6.6.14"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",
@@ -1,63 +0,0 @@
1
-
2
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
-
4
- const EcoCupListMeta: ComponentMetadata = {
5
- "componentName": "EcoCupList",
6
- "title": "EcoCupList",
7
- "docUrl": "",
8
- "screenshot": "",
9
- "devMode": "proCode",
10
- "npm": {
11
- "package": "@pisell/private-materials",
12
- "version": "3.4.86",
13
- "exportName": "EcoCupList",
14
- "main": "src/index.ts",
15
- "destructuring": true,
16
- "subName": ""
17
- },
18
- "configure": {
19
- "props": [
20
- {
21
- "title": {
22
- "label": {
23
- "type": "i18n",
24
- "en-US": "data",
25
- "zh-CN": "data"
26
- }
27
- },
28
- "name": "data",
29
- "setter": {
30
- "componentName": "ArraySetter",
31
- "props": {
32
- "itemSetter": {
33
- "componentName": "MixedSetter",
34
- "isRequired": false,
35
- "props": {}
36
- }
37
- },
38
- "isRequired": true,
39
- "initialValue": []
40
- }
41
- }
42
- ],
43
- "supports": {
44
- "style": true
45
- },
46
- "component": {}
47
- }
48
- };
49
- const snippets: Snippet[] = [
50
- {
51
- "title": "EcoCupList",
52
- "screenshot": "",
53
- "schema": {
54
- "componentName": "EcoCupList",
55
- "props": {}
56
- }
57
- }
58
- ];
59
-
60
- export default {
61
- ...EcoCupListMeta,
62
- snippets
63
- };
@@ -1,63 +0,0 @@
1
-
2
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
-
4
- const EcoCustomerListMeta: ComponentMetadata = {
5
- "componentName": "EcoCustomerList",
6
- "title": "EcoCustomerList",
7
- "docUrl": "",
8
- "screenshot": "",
9
- "devMode": "proCode",
10
- "npm": {
11
- "package": "@pisell/private-materials",
12
- "version": "3.4.86",
13
- "exportName": "EcoCustomerList",
14
- "main": "src/index.ts",
15
- "destructuring": true,
16
- "subName": ""
17
- },
18
- "configure": {
19
- "props": [
20
- {
21
- "title": {
22
- "label": {
23
- "type": "i18n",
24
- "en-US": "data",
25
- "zh-CN": "data"
26
- }
27
- },
28
- "name": "data",
29
- "setter": {
30
- "componentName": "ArraySetter",
31
- "props": {
32
- "itemSetter": {
33
- "componentName": "MixedSetter",
34
- "isRequired": false,
35
- "props": {}
36
- }
37
- },
38
- "isRequired": true,
39
- "initialValue": []
40
- }
41
- }
42
- ],
43
- "supports": {
44
- "style": true
45
- },
46
- "component": {}
47
- }
48
- };
49
- const snippets: Snippet[] = [
50
- {
51
- "title": "EcoCustomerList",
52
- "screenshot": "",
53
- "schema": {
54
- "componentName": "EcoCustomerList",
55
- "props": {}
56
- }
57
- }
58
- ];
59
-
60
- export default {
61
- ...EcoCustomerListMeta,
62
- snippets
63
- };