@pisell/private-materials 6.2.41 → 6.2.44

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 (187) 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 +13 -29
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  12. package/es/components/booking/addons/index.js +12 -8
  13. package/es/components/booking/components/footer/index.d.ts +0 -1
  14. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  15. package/es/components/booking/components/voucher/index.d.ts +0 -1
  16. package/es/components/booking/editBookingModal/index.js +3 -4
  17. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  18. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  19. package/es/components/booking/info/service/Lists.d.ts +0 -1
  20. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  21. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  22. package/es/components/booking/info/service2/utils.d.ts +1 -1
  23. package/es/components/booking/info/utils.js +1 -1
  24. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  25. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  26. package/es/components/booking/info2/service/addService/utils.js +16 -1
  27. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  28. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  29. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  30. package/es/components/eftposPay/amount.d.ts +1 -1
  31. package/es/components/eftposPay/device.d.ts +1 -1
  32. package/es/components/eftposPay/hooks.d.ts +2 -2
  33. package/es/components/eftposPay/store/index.d.ts +5 -5
  34. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  35. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  36. package/es/components/schedules/utils.d.ts +1 -1
  37. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  38. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  39. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  40. package/es/components/ticketBooking/components/ticketBooking/index.js +3 -0
  41. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  42. package/es/components/ticketBooking/index.d.ts +0 -1
  43. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  44. package/es/index.d.ts +3 -0
  45. package/es/index.js +4 -1
  46. package/es/plus/clientName/index.d.ts +0 -1
  47. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  48. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  49. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  50. package/es/plus/noteModal/AddTempModal.d.ts +0 -1
  51. package/es/plus/productSelect/ProductCard/index.less +5 -22
  52. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  53. package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
  54. package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
  55. package/es/plus/saasCreateOrganization/components/Header.d.ts +4 -0
  56. package/es/plus/saasCreateOrganization/components/Header.js +62 -0
  57. package/es/plus/saasCreateOrganization/index.d.ts +5 -0
  58. package/es/plus/saasCreateOrganization/index.js +15 -0
  59. package/es/plus/saasCreateOrganization/index.less +55 -0
  60. package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
  61. package/es/plus/saasCreateOrganization/locales.js +14 -0
  62. package/es/plus/saasCreateOrganization/types.d.ts +69 -0
  63. package/es/plus/saasCreateOrganization/types.js +1 -0
  64. package/es/plus/saasLogin/index.d.ts +5 -0
  65. package/es/plus/saasLogin/index.js +165 -0
  66. package/es/plus/saasLogin/index.less +136 -0
  67. package/es/plus/saasLogin/locales.d.ts +51 -0
  68. package/es/plus/saasLogin/locales.js +50 -0
  69. package/es/plus/saasLogin/types.d.ts +62 -0
  70. package/es/plus/saasLogin/types.js +1 -0
  71. package/es/plus/saasLogin/utils.d.ts +35 -0
  72. package/es/plus/saasLogin/utils.js +31 -0
  73. package/es/plus/saasRegister/components/EntryEmail.d.ts +10 -0
  74. package/es/plus/saasRegister/components/EntryEmail.js +92 -0
  75. package/es/plus/saasRegister/components/EntryInfo.d.ts +10 -0
  76. package/es/plus/saasRegister/components/EntryInfo.js +145 -0
  77. package/es/plus/saasRegister/components/GoLogin.d.ts +5 -0
  78. package/es/plus/saasRegister/components/GoLogin.js +27 -0
  79. package/es/plus/saasRegister/components/Header.d.ts +4 -0
  80. package/es/plus/saasRegister/components/Header.js +62 -0
  81. package/es/plus/saasRegister/components/VerifyError.d.ts +9 -0
  82. package/es/plus/saasRegister/components/VerifyError.js +68 -0
  83. package/es/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
  84. package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
  85. package/es/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
  86. package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
  87. package/es/plus/saasRegister/index.d.ts +5 -0
  88. package/es/plus/saasRegister/index.js +246 -0
  89. package/es/plus/saasRegister/index.less +218 -0
  90. package/es/plus/saasRegister/locales.d.ts +117 -0
  91. package/es/plus/saasRegister/locales.js +116 -0
  92. package/es/plus/saasRegister/types.d.ts +114 -0
  93. package/es/plus/saasRegister/types.js +24 -0
  94. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  95. package/es/utils/index.d.ts +1 -1
  96. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  97. package/lib/components/booking/addons/index.js +1 -11
  98. package/lib/components/booking/components/footer/index.d.ts +0 -1
  99. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  100. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  101. package/lib/components/booking/editBookingModal/index.js +3 -4
  102. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  103. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  104. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  105. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  106. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  107. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  108. package/lib/components/booking/info/utils.js +2 -1
  109. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  110. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  111. package/lib/components/booking/info2/service/addService/utils.js +15 -3
  112. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  113. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  114. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  115. package/lib/components/eftposPay/amount.d.ts +1 -1
  116. package/lib/components/eftposPay/device.d.ts +1 -1
  117. package/lib/components/eftposPay/hooks.d.ts +2 -2
  118. package/lib/components/eftposPay/store/index.d.ts +5 -5
  119. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  120. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  121. package/lib/components/schedules/utils.d.ts +1 -1
  122. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  123. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  124. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  125. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -0
  126. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  127. package/lib/components/ticketBooking/index.d.ts +0 -1
  128. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  129. package/lib/index.d.ts +3 -0
  130. package/lib/index.js +9 -0
  131. package/lib/plus/clientName/index.d.ts +0 -1
  132. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  133. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  134. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  135. package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
  136. package/lib/plus/productSelect/ProductCard/index.less +5 -22
  137. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  138. package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
  139. package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
  140. package/lib/plus/saasCreateOrganization/components/Header.d.ts +4 -0
  141. package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
  142. package/lib/plus/saasCreateOrganization/index.d.ts +5 -0
  143. package/lib/plus/saasCreateOrganization/index.js +47 -0
  144. package/lib/plus/saasCreateOrganization/index.less +55 -0
  145. package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
  146. package/lib/plus/saasCreateOrganization/locales.js +38 -0
  147. package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
  148. package/lib/plus/saasCreateOrganization/types.js +17 -0
  149. package/lib/plus/saasLogin/index.d.ts +5 -0
  150. package/lib/plus/saasLogin/index.js +171 -0
  151. package/lib/plus/saasLogin/index.less +136 -0
  152. package/lib/plus/saasLogin/locales.d.ts +51 -0
  153. package/lib/plus/saasLogin/locales.js +74 -0
  154. package/lib/plus/saasLogin/types.d.ts +62 -0
  155. package/lib/plus/saasLogin/types.js +17 -0
  156. package/lib/plus/saasLogin/utils.d.ts +35 -0
  157. package/lib/plus/saasLogin/utils.js +50 -0
  158. package/lib/plus/saasRegister/components/EntryEmail.d.ts +10 -0
  159. package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
  160. package/lib/plus/saasRegister/components/EntryInfo.d.ts +10 -0
  161. package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
  162. package/lib/plus/saasRegister/components/GoLogin.d.ts +5 -0
  163. package/lib/plus/saasRegister/components/GoLogin.js +58 -0
  164. package/lib/plus/saasRegister/components/Header.d.ts +4 -0
  165. package/lib/plus/saasRegister/components/Header.js +99 -0
  166. package/lib/plus/saasRegister/components/VerifyError.d.ts +9 -0
  167. package/lib/plus/saasRegister/components/VerifyError.js +123 -0
  168. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
  169. package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
  170. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
  171. package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
  172. package/lib/plus/saasRegister/index.d.ts +5 -0
  173. package/lib/plus/saasRegister/index.js +205 -0
  174. package/lib/plus/saasRegister/index.less +218 -0
  175. package/lib/plus/saasRegister/locales.d.ts +117 -0
  176. package/lib/plus/saasRegister/locales.js +140 -0
  177. package/lib/plus/saasRegister/types.d.ts +114 -0
  178. package/lib/plus/saasRegister/types.js +54 -0
  179. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  180. package/lib/utils/index.d.ts +1 -1
  181. package/lowcode/saas-create-organization/meta.ts +214 -0
  182. package/lowcode/saas-create-organization/snippets.ts +25 -0
  183. package/lowcode/saas-login/meta.ts +370 -0
  184. package/lowcode/saas-login/snippets.ts +38 -0
  185. package/lowcode/saas-register/meta.ts +386 -0
  186. package/lowcode/saas-register/snippets.ts +31 -0
  187. package/package.json +3 -3
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "warn" | "success" | "loading" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,10 +295,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
+ action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TabProduct: (props: any) => JSX.Element;
3
2
  export default TabProduct;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type BoolConfigVal = 0 | 1;
4
3
  export interface ProductCardConfig {
@@ -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 };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddServiceProps {
4
3
  onEdit?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
4
3
  declare const TicketBooking: () => JSX.Element;
@@ -316,6 +316,9 @@ var TicketBooking = () => {
316
316
  selectCustomer(null);
317
317
  enableAllScanListeners();
318
318
  (_a3 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a3.call(shopDiscount);
319
+ setState({
320
+ createCount: state.createCount + 1
321
+ });
319
322
  }
320
323
  );
321
324
  (_e2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e2.mountFunction(
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Dayjs } from 'dayjs';
3
2
  import './index.less';
4
3
  interface ITimeBarProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface TicketBookingProps {
4
3
  productExtensionType: string[];
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "walletPass" | "product" | "customer" | "wallet" | "local_product";
44
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
package/lib/index.d.ts CHANGED
@@ -49,3 +49,6 @@ export { default as ClientCard } from './plus/clientCard';
49
49
  export { default as ClientSearch } from './plus/clinetSearch';
50
50
  export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
51
51
  export { default as NoteModal } from './plus/noteModal';
52
+ export { default as SaasLogin } from './plus/saasLogin';
53
+ export { default as SaasRegister } from './plus/saasRegister';
54
+ export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
package/lib/index.js CHANGED
@@ -66,6 +66,9 @@ __export(src_exports, {
66
66
  PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
67
67
  ProductExtension: () => import_productExtension.default,
68
68
  RuleSetting: () => import_ruleSetting.default,
69
+ SaasCreateOrganization: () => import_saasCreateOrganization.default,
70
+ SaasLogin: () => import_saasLogin.default,
71
+ SaasRegister: () => import_saasRegister.default,
69
72
  Schedules: () => import_schedules.default,
70
73
  ShoppingCart: () => import_shoppingCart.default,
71
74
  StepController: () => import_stepController.default,
@@ -134,6 +137,9 @@ var import_clientCard = __toESM(require("./plus/clientCard"));
134
137
  var import_clinetSearch = __toESM(require("./plus/clinetSearch"));
135
138
  var import_comprehensiveSearch = __toESM(require("./pro/comprehensiveSearch"));
136
139
  var import_noteModal = __toESM(require("./plus/noteModal"));
140
+ var import_saasLogin = __toESM(require("./plus/saasLogin"));
141
+ var import_saasRegister = __toESM(require("./plus/saasRegister"));
142
+ var import_saasCreateOrganization = __toESM(require("./plus/saasCreateOrganization"));
137
143
  import_dayjs.default.extend(import_weekday.default);
138
144
  import_dayjs.default.extend(import_localeData.default);
139
145
  // Annotate the CommonJS export names for ESM import in node:
@@ -175,6 +181,9 @@ import_dayjs.default.extend(import_localeData.default);
175
181
  PisellSelectCustomerModal,
176
182
  ProductExtension,
177
183
  RuleSetting,
184
+ SaasCreateOrganization,
185
+ SaasLogin,
186
+ SaasRegister,
178
187
  Schedules,
179
188
  ShoppingCart,
180
189
  StepController,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { IClientNameProps } from './type';
4
3
  declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
3
2
  export default DateSectionCom;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const GenderField: (props: any) => JSX.Element;
3
2
  export default GenderField;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTempModal: ({ open, onCancel, onConfirm, }: {
4
3
  open: boolean;
@@ -201,7 +201,8 @@
201
201
  .price-info {
202
202
  display: flex;
203
203
  align-items: center;
204
- gap: 8px;
204
+ flex-wrap: wrap;
205
+ gap: unset;
205
206
  }
206
207
 
207
208
  .price {
@@ -210,6 +211,8 @@
210
211
  font-style: normal;
211
212
  font-weight: 600;
212
213
  line-height: 28px;
214
+ overflow: hidden;
215
+ margin-right: 8px;
213
216
  }
214
217
 
215
218
  .original-price {
@@ -219,6 +222,7 @@
219
222
  font-weight: 400;
220
223
  line-height: 24px;
221
224
  position: relative;
225
+ overflow: hidden;
222
226
 
223
227
  &::before {
224
228
  content: '';
@@ -246,25 +250,4 @@
246
250
  }
247
251
  }
248
252
  }
249
-
250
- // 网格布局中的产品卡片样式调整
251
- .product-grid-wrapper {
252
- .pisell-product-select__product-card {
253
- min-width: unset;
254
- width: 100%;
255
- }
256
- }
257
-
258
- // 列表布局中的产品卡片样式调整
259
- .product-list-wrapper {
260
- .pisell-product-select__product-card {
261
- min-width: 363px;
262
- max-width: unset;
263
- margin-top: 12px;
264
-
265
- &:first-child {
266
- margin-top: 0;
267
- }
268
- }
269
- }
270
253
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import './index.less';
2
3
  interface IProps {
3
4
  value: string | number;
4
5
  isMini?: boolean;
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_materials = require("@pisell/materials");
37
37
  var import_classnames = __toESM(require("classnames"));
38
38
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
39
+ var import_index = require("./index.less");
39
40
  var index = (props) => {
40
41
  var _a, _b;
41
42
  const context = (0, import_useEngineContext.default)();
@@ -0,0 +1,4 @@
1
+ .pisell-price-text {
2
+ overflow: hidden;
3
+ text-overflow: ellipsis;
4
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { SCOProps } from '../types';
3
+ import '../index.less';
4
+ export declare const Header: (props: SCOProps) => JSX.Element;
@@ -0,0 +1,99 @@
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/plus/saasCreateOrganization/components/Header.tsx
30
+ var Header_exports = {};
31
+ __export(Header_exports, {
32
+ Header: () => Header
33
+ });
34
+ module.exports = __toCommonJS(Header_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
37
+ var import__ = require("../index.less");
38
+ var Header = (props) => {
39
+ const {
40
+ showLogo = true,
41
+ logo = "",
42
+ logoSize = { width: 48, height: 48 },
43
+ logoPosition = "center",
44
+ showWelcomeMessage = true,
45
+ welcomeMessage = import_utils.locales.getText("pisell-saas-create-org-welcome-message"),
46
+ welcomeMessageAlign = "center",
47
+ showTitle = true,
48
+ title = import_utils.locales.getText("pisell-saas-create-org-title"),
49
+ titleAlign = "center",
50
+ showSubtitle = true,
51
+ subtitle = "",
52
+ subtitleAlign = "center"
53
+ } = props;
54
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showLogo && /* @__PURE__ */ import_react.default.createElement(
55
+ "div",
56
+ {
57
+ className: `pisell-saas-create-org-logo ${logoPosition}`,
58
+ style: {
59
+ width: logoSize.width,
60
+ height: logoSize.height
61
+ }
62
+ },
63
+ logo && /* @__PURE__ */ import_react.default.createElement(
64
+ "img",
65
+ {
66
+ src: logo,
67
+ alt: "logo",
68
+ style: {
69
+ height: (logoSize == null ? void 0 : logoSize.height) || 48
70
+ }
71
+ }
72
+ )
73
+ ), showWelcomeMessage && /* @__PURE__ */ import_react.default.createElement(
74
+ "h1",
75
+ {
76
+ className: "pisell-saas-create-org-welcome-message",
77
+ style: { textAlign: welcomeMessageAlign }
78
+ },
79
+ welcomeMessage || ""
80
+ ), showTitle && /* @__PURE__ */ import_react.default.createElement(
81
+ "h1",
82
+ {
83
+ className: "pisell-saas-create-org-title",
84
+ style: { textAlign: titleAlign }
85
+ },
86
+ title || ""
87
+ ), showSubtitle && /* @__PURE__ */ import_react.default.createElement(
88
+ "div",
89
+ {
90
+ className: "pisell-saas-create-org-subtitle",
91
+ style: { textAlign: subtitleAlign }
92
+ },
93
+ subtitle || ""
94
+ ));
95
+ };
96
+ // Annotate the CommonJS export names for ESM import in node:
97
+ 0 && (module.exports = {
98
+ Header
99
+ });
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SCOProps } from './types';
3
+ import './index.less';
4
+ declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
5
+ export default SaasCreateOrganization;
@@ -0,0 +1,47 @@
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/plus/saasCreateOrganization/index.tsx
30
+ var saasCreateOrganization_exports = {};
31
+ __export(saasCreateOrganization_exports, {
32
+ default: () => saasCreateOrganization_default
33
+ });
34
+ module.exports = __toCommonJS(saasCreateOrganization_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
37
+ var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
38
+ var import_Header = require("./components/Header");
39
+ var import_locales = __toESM(require("./locales"));
40
+ var import_index = require("./index.less");
41
+ var SaasCreateOrganization = (props) => {
42
+ var _a, _b;
43
+ const context = (0, import_useEngineContext.default)();
44
+ import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
45
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-saas-create-org-container" }, /* @__PURE__ */ import_react.default.createElement(import_Header.Header, { ...props }), /* @__PURE__ */ import_react.default.createElement("div", null, props == null ? void 0 : props.children));
46
+ };
47
+ var saasCreateOrganization_default = SaasCreateOrganization;
@@ -0,0 +1,55 @@
1
+ .pisell-saas-create-org-container {
2
+ width: 360px;
3
+ max-width: 360px;
4
+ min-width: 266px;
5
+ margin: 0 20px;
6
+ overflow-x: hidden;
7
+
8
+ // Logo样式
9
+ .pisell-saas-create-org-logo {
10
+ width: fit-content;
11
+ height: 48px;
12
+ border-radius: 8px;
13
+
14
+ &.left {
15
+ margin-right: auto;
16
+ margin-left: 0;
17
+ }
18
+
19
+ &.center {
20
+ margin: 0 auto;
21
+ }
22
+
23
+ &.right {
24
+ margin-left: auto;
25
+ margin-right: 0;
26
+ }
27
+
28
+ img {
29
+ height: 48px;
30
+ object-fit: contain;
31
+ }
32
+ }
33
+
34
+ .pisell-saas-create-org-welcome-message {
35
+ margin-top: 10px;
36
+ color: #101828;
37
+ text-align: center;
38
+ font-size: 20px;
39
+ font-weight: 500;
40
+ }
41
+
42
+ .pisell-saas-create-org-title {
43
+ margin-top: 24px;
44
+ font-size: 30px;
45
+ font-weight: 600;
46
+ color: #101828;
47
+ }
48
+
49
+ .pisell-saas-create-org-subtitle {
50
+ margin-top: 12px;
51
+ font-size: 16px;
52
+ color: #475467;
53
+ font-weight: 400;
54
+ }
55
+ }
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell-saas-create-org-welcome-message': string;
4
+ 'pisell-saas-create-org-title': string;
5
+ };
6
+ 'zh-CN': {
7
+ 'pisell-saas-create-org-welcome-message': string;
8
+ 'pisell-saas-create-org-title': string;
9
+ };
10
+ 'zh-TW': {
11
+ 'pisell-saas-create-org-welcome-message': string;
12
+ 'pisell-saas-create-org-title': string;
13
+ };
14
+ };
15
+ export default _default;
@@ -0,0 +1,38 @@
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/plus/saasCreateOrganization/locales.ts
20
+ var locales_exports = {};
21
+ __export(locales_exports, {
22
+ default: () => locales_default
23
+ });
24
+ module.exports = __toCommonJS(locales_exports);
25
+ var locales_default = {
26
+ en: {
27
+ "pisell-saas-create-org-welcome-message": "Welcome to",
28
+ "pisell-saas-create-org-title": "Create your organization"
29
+ },
30
+ "zh-CN": {
31
+ "pisell-saas-create-org-welcome-message": "欢迎使用",
32
+ "pisell-saas-create-org-title": "创建您的企业"
33
+ },
34
+ "zh-TW": {
35
+ "pisell-saas-create-org-welcome-message": "歡迎使用",
36
+ "pisell-saas-create-org-title": "創建您的企業"
37
+ }
38
+ };
@@ -0,0 +1,69 @@
1
+ /// <reference types="react" />
2
+ export interface SCOProps {
3
+ /** 是否显示Logo */
4
+ showLogo?: boolean;
5
+ /** Logo图片地址 */
6
+ logo?: string;
7
+ /** Logo位置 */
8
+ logoPosition?: 'left' | 'center' | 'right';
9
+ /** Logo尺寸 */
10
+ logoSize?: {
11
+ width?: number;
12
+ height?: number;
13
+ };
14
+ /** 是否显示欢迎语 */
15
+ showWelcomeMessage?: boolean;
16
+ /** 欢迎语 */
17
+ welcomeMessage?: string;
18
+ /** 欢迎语对齐方式 */
19
+ welcomeMessageAlign?: 'left' | 'center' | 'right';
20
+ /** 是否显示标题 */
21
+ showTitle?: boolean;
22
+ /** 标题 */
23
+ title?: string;
24
+ /** 标题对齐方式 */
25
+ titleAlign?: 'left' | 'center' | 'right';
26
+ /** 副标题 */
27
+ subtitle?: string;
28
+ /** 是否显示副标题 */
29
+ showSubtitle?: boolean;
30
+ /** 副标题对齐方式 */
31
+ subtitleAlign?: 'left' | 'center' | 'right';
32
+ /** 是否显示公司名称输入框 */
33
+ showCompanyName?: boolean;
34
+ /** 公司名称输入框标题 */
35
+ companyNameLabel?: string;
36
+ /** 公司名称输入框占位符 */
37
+ companyNamePlaceholder?: string;
38
+ /** 公司名称输入框必填 */
39
+ companyNameRequired?: boolean;
40
+ /** 是否显示域名输入框 */
41
+ showDomain?: boolean;
42
+ /** 域名输入框标题 */
43
+ domainLabel?: string;
44
+ /** 域名输入框占位符 */
45
+ domainPlaceholder?: string;
46
+ /** 域名输入框必填 */
47
+ domainRequired?: boolean;
48
+ /** 是否显示分割线 */
49
+ showDivider?: boolean;
50
+ /** 分割线文案 */
51
+ dividerText?: string;
52
+ /** 是否显示时区选择 */
53
+ showTimezoneSelect?: boolean;
54
+ /** 时区选择标题 */
55
+ timezoneSelectLabel?: string;
56
+ /** 时区选择必填 */
57
+ timezoneSelectRequired?: boolean;
58
+ /** 是否显示语言选择 */
59
+ showLanguageSelect?: boolean;
60
+ /** 语言选择标题 */
61
+ languageSelectLabel?: string;
62
+ /** 语言选择必填 */
63
+ languageSelectRequired?: boolean;
64
+ /** 按钮文本 */
65
+ buttonText?: string;
66
+ /** 创建企业回调 */
67
+ onCreateOrganization?: (info: any) => Promise<void>;
68
+ children?: React.ReactNode;
69
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/plus/saasCreateOrganization/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { SaasLoginProps } from './types';
3
+ import './index.less';
4
+ declare const SaasLogin: React.FC<SaasLoginProps>;
5
+ export default SaasLogin;