@pisell/private-materials 3.2.31 → 3.2.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 (160) 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 +1 -1
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +5 -5
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/Sales/Event/index.js +7 -7
  12. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +37 -40
  13. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -5
  14. package/es/components/appointmentBooking/components/Content/index.less +4 -0
  15. package/es/components/appointmentBooking/components/Header/index.js +56 -21
  16. package/es/components/appointmentBooking/components/Services/index.js +11 -3
  17. package/es/components/appointmentBooking/components/Services/index.less +1 -1
  18. package/es/components/appointmentBooking/context.d.ts +2 -2
  19. package/es/components/appointmentBooking/context.js +1 -1
  20. package/es/components/appointmentBooking/hooks.d.ts +13 -1
  21. package/es/components/appointmentBooking/hooks.js +83 -0
  22. package/es/components/appointmentBooking/index.d.ts +1 -0
  23. package/es/components/booking/addons/model.d.ts +10 -1
  24. package/es/components/booking/addons/model.js +5 -5
  25. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  26. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  27. package/es/components/booking/components/browserSelect/index.js +1 -1
  28. package/es/components/booking/components/footer/index.d.ts +1 -0
  29. package/es/components/booking/components/footer/index.js +3 -5
  30. package/es/components/booking/forms/model.d.ts +10 -1
  31. package/es/components/booking/forms/model.js +5 -5
  32. package/es/components/booking/info/index.d.ts +1 -0
  33. package/es/components/booking/info/model.d.ts +10 -1
  34. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  35. package/es/components/booking/info/service/like/index.js +1 -1
  36. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  37. package/es/components/booking/info2/service/addTimeModal/index.js +2 -3
  38. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +2 -4
  39. package/es/components/booking/info2/service/editService/index.js +11 -4
  40. package/es/components/booking/materiels/startTime/index.js +1 -1
  41. package/es/components/booking/model.d.ts +9 -1
  42. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  43. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  44. package/es/components/booking/notes/addNote/index.js +1 -1
  45. package/es/components/booking/notes/model.d.ts +10 -1
  46. package/es/components/booking/notes/model.js +5 -5
  47. package/es/components/booking/payments/model.d.ts +10 -1
  48. package/es/components/booking/payments/model.js +5 -5
  49. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  50. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  51. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  52. package/es/components/eftposPay/hooks.d.ts +1 -1
  53. package/es/components/eftposPay/index.d.ts +0 -1
  54. package/es/components/eftposPay/pay.d.ts +0 -1
  55. package/es/components/eftposPay/payo/config.d.ts +0 -1
  56. package/es/components/eftposPay/store/index.d.ts +1 -1
  57. package/es/components/listComponent/index.js +5 -5
  58. package/es/components/pay/toC/model.d.ts +9 -1
  59. package/es/components/productExtension/card/index.js +3 -3
  60. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  61. package/es/components/productExtension/fields/Forms/index.js +12 -12
  62. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  63. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  64. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  65. package/es/components/productExtension/server.js +2 -2
  66. package/es/components/ruleSetting/index.d.ts +0 -1
  67. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  68. package/es/components/schedules/calendar/index.js +4 -4
  69. package/es/components/schedules/calendar/serve.js +2 -2
  70. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  71. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  72. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  73. package/es/components/schedules/components/ResourceList/index.js +1 -1
  74. package/es/components/schedules/components/Search/index.js +5 -5
  75. package/es/components/schedules/model.d.ts +9 -1
  76. package/es/components/schedules/model.js +5 -5
  77. package/es/components/schedules/openHours/index.js +1 -1
  78. package/es/components/schedules/openHours/serve.js +2 -2
  79. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  80. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  81. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  82. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  83. package/es/components/schedules/products/serve.js +2 -2
  84. package/es/components/schedules/products/utils.js +5 -5
  85. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  86. package/es/components/schedules/resources/detail/index.js +10 -10
  87. package/es/components/schedules/resources/list/index.js +2 -2
  88. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  89. package/es/components/schedules/resources/serve.js +2 -2
  90. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  91. package/es/components/schedules/utils.d.ts +1 -1
  92. package/es/components/schedules/utils.js +4 -4
  93. package/es/components/selectModal/index.js +2 -2
  94. package/es/components/ticketBooking/data.d.ts +0 -0
  95. package/es/components/ticketBooking/data.js +82 -0
  96. package/es/components/ticketBooking/index.d.ts +3 -0
  97. package/es/components/ticketBooking/index.js +6 -0
  98. package/es/components/wallet/Detail/index.js +1 -1
  99. package/es/components/wallet/Detail/model.d.ts +13 -1
  100. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  101. package/es/components/wallet/PointCard/model.d.ts +13 -1
  102. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  103. package/es/components/wallet/Voucher/model.d.ts +13 -1
  104. package/es/components/wallet/components/WalletCard.js +1 -1
  105. package/es/components/wallet/model.d.ts +9 -1
  106. package/es/hooks/useComponents.js +1 -1
  107. package/es/utils/index.d.ts +1 -1
  108. package/lib/components/Sales/Event/index.js +1 -5
  109. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +19 -7
  110. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -7
  111. package/lib/components/appointmentBooking/components/Content/index.less +4 -0
  112. package/lib/components/appointmentBooking/components/Header/index.js +10 -1
  113. package/lib/components/appointmentBooking/components/Services/index.js +10 -1
  114. package/lib/components/appointmentBooking/components/Services/index.less +1 -1
  115. package/lib/components/appointmentBooking/context.d.ts +2 -2
  116. package/lib/components/appointmentBooking/context.js +1 -1
  117. package/lib/components/appointmentBooking/hooks.d.ts +13 -1
  118. package/lib/components/appointmentBooking/hooks.js +38 -0
  119. package/lib/components/appointmentBooking/index.d.ts +1 -0
  120. package/lib/components/booking/addons/model.d.ts +10 -1
  121. package/lib/components/booking/components/footer/index.d.ts +1 -0
  122. package/lib/components/booking/components/footer/index.js +5 -7
  123. package/lib/components/booking/forms/model.d.ts +10 -1
  124. package/lib/components/booking/info/index.d.ts +1 -0
  125. package/lib/components/booking/info/model.d.ts +10 -1
  126. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  127. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  128. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -4
  129. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +1 -2
  130. package/lib/components/booking/info2/service/editService/index.js +11 -4
  131. package/lib/components/booking/model.d.ts +9 -1
  132. package/lib/components/booking/notes/model.d.ts +10 -1
  133. package/lib/components/booking/payments/model.d.ts +10 -1
  134. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  135. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  136. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  137. package/lib/components/eftposPay/hooks.d.ts +1 -1
  138. package/lib/components/eftposPay/index.d.ts +0 -1
  139. package/lib/components/eftposPay/pay.d.ts +0 -1
  140. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  141. package/lib/components/eftposPay/store/index.d.ts +1 -1
  142. package/lib/components/pay/toC/model.d.ts +9 -1
  143. package/lib/components/ruleSetting/index.d.ts +0 -1
  144. package/lib/components/schedules/model.d.ts +9 -1
  145. package/lib/components/schedules/utils.d.ts +1 -1
  146. package/lib/components/schedules/utils.js +1 -1
  147. package/lib/components/ticketBooking/data.d.ts +0 -0
  148. package/lib/components/ticketBooking/data.js +0 -0
  149. package/lib/components/ticketBooking/index.d.ts +3 -0
  150. package/lib/components/ticketBooking/index.js +28 -0
  151. package/lib/components/wallet/Detail/index.js +1 -1
  152. package/lib/components/wallet/Detail/model.d.ts +13 -1
  153. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  154. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  155. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  156. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  157. package/lib/components/wallet/components/WalletCard.js +1 -1
  158. package/lib/components/wallet/model.d.ts +9 -1
  159. package/lib/utils/index.d.ts +1 -1
  160. package/package.json +4 -4
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TicketBooking: () => JSX.Element;
3
+ export default TicketBooking;
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/ticketBooking/index.tsx
20
+ var ticketBooking_exports = {};
21
+ __export(ticketBooking_exports, {
22
+ default: () => ticketBooking_default
23
+ });
24
+ module.exports = __toCommonJS(ticketBooking_exports);
25
+ var TicketBooking = () => {
26
+ return /* @__PURE__ */ React.createElement("div", { className: "" });
27
+ };
28
+ var ticketBooking_default = TicketBooking;
@@ -179,7 +179,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
179
179
  const formatCurrencyAmount = (amount = "", isNegative = false) => {
180
180
  if (!amount) return "";
181
181
  const absAmount = amount.startsWith("-") ? amount.substring(1) : amount;
182
- return isNegative ? `-${tag !== "point_card" ? symbol : ""}${absAmount}` : `${tag !== "point_card" ? symbol : ""}${amount}`;
182
+ return isNegative ? `-${!["point_card", "good_pass"].includes(tag) ? symbol : ""}${absAmount}` : `${!["point_card", "good_pass"].includes(tag) ? symbol : ""}${amount}`;
183
183
  };
184
184
  const getDetail = async () => {
185
185
  const { apple_wallet_url: apple_wallet_url2 = "", google_wallet_url: google_wallet_url2 = "" } = await (0, import_serve.getDetailApi)({ id: detail.id || "" });
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -74,7 +74,7 @@ var WalletCard = ({
74
74
  showDisabledReason: isDisabled,
75
75
  disabledReason,
76
76
  propStyle: { marginBottom: 16 },
77
- showBalanceSymbol: tag !== "point_card",
77
+ showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
78
78
  active: isActive,
79
79
  name: product_title,
80
80
  qrCode: code,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.2.31",
3
+ "version": "3.2.32",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/materials": "3.2.26",
63
62
  "@pisell/utils": "1.0.42",
64
- "@pisell/date-picker": "3.0.2",
65
- "@pisell/icon": "0.0.11"
63
+ "@pisell/materials": "3.2.26",
64
+ "@pisell/icon": "0.0.11",
65
+ "@pisell/date-picker": "3.0.2"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",