@voplus/morpho-csp 1.2.24 → 1.2.27
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/es/Modules.js.map +1 -1
- package/es/components/CurrencyView/state.d.ts +3 -3
- package/es/components/CurrencyView/state.js +3 -3
- package/es/components/CurrencyView/state.js.map +1 -1
- package/es/components/DragTableRow/FormRowContext.d.ts +4 -0
- package/es/components/DragTableRow/FormRowContext.js +5 -0
- package/es/components/DragTableRow/FormRowContext.js.map +1 -0
- package/es/components/DragTableRow/index.d.ts +3 -0
- package/es/components/DragTableRow/index.js +41 -0
- package/es/components/DragTableRow/index.js.map +1 -0
- package/es/components/LegalContactSelect/index.js +4 -2
- package/es/components/LegalContactSelect/index.js.map +1 -1
- package/es/data/account/hooks.d.ts +2 -2
- package/es/data/account/hooks.js +2 -2
- package/es/data/cart/hooks.d.ts +7 -0
- package/es/data/cart/hooks.js +14 -0
- package/es/data/cart/hooks.js.map +1 -0
- package/es/data/cart/index.d.ts +4 -0
- package/es/data/cart/index.js +5 -0
- package/es/data/cart/index.js.map +1 -0
- package/es/data/cart/interfaces.d.ts +58 -0
- package/es/data/cart/interfaces.js +2 -0
- package/es/data/cart/interfaces.js.map +1 -0
- package/es/data/cart/store.d.ts +22 -0
- package/es/data/cart/store.js +65 -0
- package/es/data/cart/store.js.map +1 -0
- package/es/data/cart/types.d.ts +29 -0
- package/es/data/cart/types.js +2 -0
- package/es/data/cart/types.js.map +1 -0
- package/es/data/corporate/hooks.d.ts +2 -2
- package/es/data/corporate/hooks.js +2 -2
- package/es/data/corporate/types.d.ts +1 -0
- package/es/data/entity/EntityStore.d.ts +17 -0
- package/es/data/entity/EntityStore.js +43 -0
- package/es/data/entity/EntityStore.js.map +1 -0
- package/es/data/entity/hooks.d.ts +7 -0
- package/es/data/entity/hooks.js +14 -0
- package/es/data/entity/hooks.js.map +1 -0
- package/es/data/entity/index.d.ts +3 -0
- package/es/data/entity/index.js +4 -0
- package/es/data/entity/index.js.map +1 -0
- package/es/data/entity/interface.d.ts +26 -0
- package/es/data/entity/interface.js +2 -0
- package/es/data/entity/interface.js.map +1 -0
- package/es/data/entity/types.d.ts +26 -0
- package/es/data/entity/types.js +2 -0
- package/es/data/entity/types.js.map +1 -0
- package/es/data/identity/types.d.ts +17 -0
- package/es/data/incorporation-clda/hooks.d.ts +9 -0
- package/es/data/incorporation-clda/hooks.js +20 -0
- package/es/data/incorporation-clda/hooks.js.map +1 -0
- package/es/data/incorporation-clda/index.d.ts +4 -0
- package/es/data/incorporation-clda/index.js +5 -0
- package/es/data/incorporation-clda/index.js.map +1 -0
- package/es/data/incorporation-clda/interfaces.d.ts +30 -0
- package/es/data/incorporation-clda/interfaces.js +2 -0
- package/es/data/incorporation-clda/interfaces.js.map +1 -0
- package/es/data/incorporation-clda/store.d.ts +13 -0
- package/es/data/incorporation-clda/store.js +28 -0
- package/es/data/incorporation-clda/store.js.map +1 -0
- package/es/data/incorporation-clda/types.d.ts +14 -0
- package/es/data/incorporation-clda/types.js +2 -0
- package/es/data/incorporation-clda/types.js.map +1 -0
- package/es/data/incorporation-form/hooks.d.ts +9 -0
- package/es/data/incorporation-form/hooks.js +20 -0
- package/es/data/incorporation-form/hooks.js.map +1 -0
- package/es/data/incorporation-form/index.d.ts +4 -0
- package/es/data/incorporation-form/index.js +5 -0
- package/es/data/incorporation-form/index.js.map +1 -0
- package/es/data/incorporation-form/interfaces.d.ts +31 -0
- package/es/data/incorporation-form/interfaces.js +2 -0
- package/es/data/incorporation-form/interfaces.js.map +1 -0
- package/es/data/incorporation-form/store.d.ts +13 -0
- package/es/data/incorporation-form/store.js +28 -0
- package/es/data/incorporation-form/store.js.map +1 -0
- package/es/data/incorporation-form/types.d.ts +32 -0
- package/es/data/incorporation-form/types.js +2 -0
- package/es/data/incorporation-form/types.js.map +1 -0
- package/es/data/member/hooks.d.ts +2 -2
- package/es/data/member/hooks.js +2 -2
- package/es/data/member/interfaces.d.ts +12 -0
- package/es/data/officer/hooks.d.ts +2 -2
- package/es/data/officer/hooks.js +2 -2
- package/es/data/order/OrderStore.d.ts +12 -0
- package/es/data/order/OrderStore.js +27 -0
- package/es/data/order/OrderStore.js.map +1 -0
- package/es/data/order/hooks.d.ts +13 -0
- package/es/data/order/hooks.js +24 -0
- package/es/data/order/hooks.js.map +1 -0
- package/es/data/order/index.d.ts +4 -0
- package/es/data/order/index.js +5 -0
- package/es/data/order/index.js.map +1 -0
- package/es/data/order/interfaces.d.ts +25 -0
- package/es/data/order/interfaces.js +2 -0
- package/es/data/order/interfaces.js.map +1 -0
- package/es/data/order/types.d.ts +17 -0
- package/es/data/order/types.js +2 -0
- package/es/data/order/types.js.map +1 -0
- package/es/data/service/hooks.d.ts +2 -2
- package/es/data/service/hooks.js +2 -2
- package/es/data/shareCertificate/hooks.d.ts +1 -1
- package/es/data/shareCertificate/hooks.js +1 -1
- package/es/data/shareOptionsRegister/hooks.d.ts +2 -2
- package/es/data/shareOptionsRegister/hooks.js +2 -2
- package/es/data/shareTransaction/hooks.d.ts +2 -2
- package/es/data/shareTransaction/hooks.js +2 -2
- package/es/data/shareTransaction/interfaces/IShareTransaction.d.ts +3 -3
- package/es/modules/account/AccountDefaultView/index.less +0 -18
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js +2 -1
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js +11 -8
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js +29 -23
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.d.ts +9 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.js +21 -12
- package/es/modules/corporate/CLDA/CLDAClientView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.less +10 -12
- package/es/modules/corporate/CLDA/CLDADefaultView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/ChangeAddress2021/index.less +13 -18
- package/es/modules/corporate/LegalGeneration/index.less +0 -6
- package/es/modules/corporate/company/CompanyDefaultView/index.js +1 -1
- package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/CompanyDetailsView/index.js +44 -42
- package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +13 -5
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +4 -2
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.less +1 -2
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +1 -1
- package/es/modules/order/OrderDefaultView/index.d.ts +4 -0
- package/es/modules/order/OrderDefaultView/index.js +52 -0
- package/es/modules/order/OrderDefaultView/index.js.map +1 -0
- package/es/modules/order/OrderDefaultView/index.less +13 -0
- package/es/modules/order/OrderItem/index.d.ts +6 -0
- package/es/modules/order/OrderItem/index.js +13 -0
- package/es/modules/order/OrderItem/index.js.map +1 -0
- package/es/modules/order/OrderItem/index.less +21 -0
- package/es/modules/order/OrderItems/DragTableCell.d.ts +3 -0
- package/es/modules/order/OrderItems/DragTableCell.js +75 -0
- package/es/modules/order/OrderItems/DragTableCell.js.map +1 -0
- package/es/modules/order/OrderItems/index.d.ts +4 -0
- package/es/modules/order/OrderItems/index.js +160 -0
- package/es/modules/order/OrderItems/index.js.map +1 -0
- package/es/modules/order/OrderItems/index.less +48 -0
- package/es/modules/order/OrderItems/state.d.ts +29 -0
- package/es/modules/order/OrderItems/state.js +89 -0
- package/es/modules/order/OrderItems/state.js.map +1 -0
- package/es/modules/order/OrderLabel/index.d.ts +6 -0
- package/es/modules/order/OrderLabel/index.js +40 -0
- package/es/modules/order/OrderLabel/index.js.map +1 -0
- package/es/modules/order/OrderLabel/index.less +21 -0
- package/es/modules/order/OrderLabel/state.d.ts +10 -0
- package/es/modules/order/OrderLabel/state.js +218 -0
- package/es/modules/order/OrderLabel/state.js.map +1 -0
- package/es/modules/order/OrderListView/index.d.ts +5 -0
- package/es/modules/order/OrderListView/index.js +47 -0
- package/es/modules/order/OrderListView/index.js.map +1 -0
- package/es/modules/order/OrderPropertiesView/index.d.ts +6 -0
- package/es/modules/order/OrderPropertiesView/index.js +39 -0
- package/es/modules/order/OrderPropertiesView/index.js.map +1 -0
- package/es/modules/order/OrderPropertiesView/index.less +13 -0
- package/es/modules/order/context/OrderContext.d.ts +31 -0
- package/es/modules/order/context/OrderContext.js +92 -0
- package/es/modules/order/context/OrderContext.js.map +1 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.d.ts +10 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.js +16 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.js.map +1 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.less +41 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.d.ts +3 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.js +21 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.js.map +1 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.d.ts +17 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.js +48 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.js.map +1 -0
- package/es/modules/self-registration/components/Card/index.d.ts +16 -0
- package/es/modules/self-registration/components/Card/index.js +20 -0
- package/es/modules/self-registration/components/Card/index.js.map +1 -0
- package/es/modules/self-registration/components/Card/index.less +52 -0
- package/es/modules/self-registration/components/CheckSection/index.d.ts +7 -0
- package/es/modules/self-registration/components/CheckSection/index.js +15 -0
- package/es/modules/self-registration/components/CheckSection/index.js.map +1 -0
- package/es/modules/self-registration/components/CheckSection/index.less +20 -0
- package/es/modules/self-registration/components/MemberCard/index.d.ts +11 -0
- package/es/modules/self-registration/components/MemberCard/index.js +58 -0
- package/es/modules/self-registration/components/MemberCard/index.js.map +1 -0
- package/es/modules/self-registration/components/MemberCard/index.less +53 -0
- package/es/modules/self-registration/components/StripeForm/index.d.ts +11 -0
- package/es/modules/self-registration/components/StripeForm/index.js +61 -0
- package/es/modules/self-registration/components/StripeForm/index.js.map +1 -0
- package/es/modules/self-registration/components/StripeForm/index.less +36 -0
- package/es/modules/self-registration/components/StripeForm/state.d.ts +11 -0
- package/es/modules/self-registration/components/StripeForm/state.js +81 -0
- package/es/modules/self-registration/components/StripeForm/state.js.map +1 -0
- package/es/modules/self-registration/components/index.d.ts +1 -0
- package/es/modules/self-registration/components/index.js +2 -0
- package/es/modules/self-registration/components/index.js.map +1 -0
- package/es/modules/self-registration/controls/Blink/index.d.ts +13 -0
- package/es/modules/self-registration/controls/Blink/index.js +13 -0
- package/es/modules/self-registration/controls/Blink/index.js.map +1 -0
- package/es/modules/self-registration/controls/Blink/index.less +27 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.d.ts +9 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.js +42 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.d.ts +17 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.js +48 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.d.ts +30 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.js +115 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.d.ts +11 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js +19 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.d.ts +6 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.js +23 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.js.map +1 -0
- package/es/modules/self-registration/controls/Section/index.d.ts +13 -0
- package/es/modules/self-registration/controls/Section/index.js +15 -0
- package/es/modules/self-registration/controls/Section/index.js.map +1 -0
- package/es/modules/self-registration/controls/Section/index.less +79 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.js +30 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.js +13 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.js +11 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.d.ts +5 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.js +25 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/FYETip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/FYETip.js +13 -0
- package/es/modules/self-registration/controls/Tips/FYETip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.js +9 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.js +13 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.js +15 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.js +11 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.js +9 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/Tip.d.ts +5 -0
- package/es/modules/self-registration/controls/Tips/Tip.js +10 -0
- package/es/modules/self-registration/controls/Tips/Tip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/index.d.ts +10 -0
- package/es/modules/self-registration/controls/Tips/index.js +11 -0
- package/es/modules/self-registration/controls/Tips/index.js.map +1 -0
- package/es/modules/self-registration/controls/index.d.ts +1 -0
- package/es/modules/self-registration/controls/index.js +2 -0
- package/es/modules/self-registration/controls/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.d.ts +12 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.js +42 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.js +44 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.less +9 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.js +25 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.less +18 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js +33 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js +30 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js +16 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.js +54 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.less +37 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.d.ts +4 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.js +85 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.less +26 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.js +91 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.less +7 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.js +92 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.js +45 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.js +74 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.less +28 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.js +106 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.js +45 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.d.ts +12 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js +63 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.less +25 -0
- package/es/modules/self-registration/incorporation-form/Download/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/Download/index.js +71 -0
- package/es/modules/self-registration/incorporation-form/Download/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Download/index.less +41 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.d.ts +19 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.js +33 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.js +48 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.less +15 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.js +32 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.js +55 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.js +75 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.less +74 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.js +16 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.js +11 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.js +23 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.less +28 -0
- package/es/modules/self-registration/shopping-cart/CartState.d.ts +55 -0
- package/es/modules/self-registration/shopping-cart/CartState.js +245 -0
- package/es/modules/self-registration/shopping-cart/CartState.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js +79 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.less +12 -0
- package/es/modules/self-registration/shopping-cart/Paid.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/Paid.js +31 -0
- package/es/modules/self-registration/shopping-cart/Paid.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.js +30 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.less +13 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.js +16 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.js +35 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.js +37 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.js +28 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.less +14 -0
- package/es/modules/self-registration/shopping-cart/components/Register.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Register.js +76 -0
- package/es/modules/self-registration/shopping-cart/components/Register.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.js +63 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.js +137 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.d.ts +12 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.js +48 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.d.ts +11 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.js +56 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.less +75 -0
- package/es/modules/self-registration/shopping-cart/components/index.d.ts +8 -0
- package/es/modules/self-registration/shopping-cart/components/index.js +9 -0
- package/es/modules/self-registration/shopping-cart/components/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/styles.less +23 -0
- package/es/modules/self-registration/shopping-cart/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/index.js +4 -0
- package/es/modules/self-registration/shopping-cart/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/pages.less +6 -0
- package/es/routes.d.ts +51 -1
- package/es/routes.js +81 -1
- package/es/routes.js.map +1 -1
- package/es/style/common.less +14 -1
- package/package.json +6 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare const Cards: {
|
|
4
|
+
(props: {
|
|
5
|
+
children: any;
|
|
6
|
+
/** 新增图标的位置 */
|
|
7
|
+
addPosition?: "default" | "topRight";
|
|
8
|
+
/** 内容横向还是纵向显示 */
|
|
9
|
+
layout?: "horizontal" | "vertical";
|
|
10
|
+
onAdd?: () => void;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
defaultProps: {
|
|
13
|
+
layout: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default Cards;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { faPlus } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
const Cards = (props) => {
|
|
7
|
+
return (React.createElement("div", { className: classnames("cards", { horizontal: props.layout === "horizontal" ? true : false }) },
|
|
8
|
+
props.children,
|
|
9
|
+
props.addPosition === "default" && (React.createElement("div", { className: "addBox", onClick: props.onAdd },
|
|
10
|
+
React.createElement("div", null,
|
|
11
|
+
React.createElement(FontAwesomeIcon, { icon: faPlus, size: "3x" })))),
|
|
12
|
+
props.addPosition === "topRight" && (React.createElement("div", { className: "addBoxTopRight", onClick: props.onAdd },
|
|
13
|
+
React.createElement("div", null,
|
|
14
|
+
React.createElement(FontAwesomeIcon, { icon: faPlus, size: "2x" }))))));
|
|
15
|
+
};
|
|
16
|
+
Cards.defaultProps = {
|
|
17
|
+
layout: "horizontal",
|
|
18
|
+
};
|
|
19
|
+
export default Cards;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/components/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,KAAK,GAAG,CAAC,KAOd,EAAE,EAAE;IACJ,OAAO,CACN,6BACC,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,MAAM,KAAK,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QAE3F,KAAK,CAAC,QAAQ;QACd,KAAK,CAAC,WAAW,KAAK,SAAS,IAAI,CACnC,6BAAK,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAE,KAAK,CAAC,KAAK;YAC3C;gBACC,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,IAAI,GAAG,CACtC,CACD,CACN;QACA,KAAK,CAAC,WAAW,KAAK,UAAU,IAAI,CACpC,6BAAK,SAAS,EAAC,gBAAgB,EAAC,OAAO,EAAE,KAAK,CAAC,KAAK;YACnD;gBACC,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,IAAI,GAAG,CACtC,CACD,CACN,CACI,CACN,CAAC;AACH,CAAC,CAAC;AAEF,KAAK,CAAC,YAAY,GAAG;IACpB,MAAM,EAAE,YAAY;CACpB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
|
|
5
|
+
// 默认横向显示
|
|
6
|
+
.horizontal {
|
|
7
|
+
display: flex;
|
|
8
|
+
min-height: 130px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cards {
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
14
|
+
.addBox {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
width: 200px;
|
|
19
|
+
border: 1px dashed gainsboro;
|
|
20
|
+
color: lighten(@primary-color, 20%);
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
border: 1px dashed grey;
|
|
25
|
+
color: @primary-color;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.addBoxTopRight {
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: -50px;
|
|
32
|
+
right: 0px;
|
|
33
|
+
color: lighten(@primary-color, 20%);
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
color: @primary-color;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
.ant-card {
|
|
43
|
+
min-width: 200px;
|
|
44
|
+
margin-right: 1rem;
|
|
45
|
+
border-radius: 0.5rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ant-card-body {
|
|
49
|
+
padding: 0 !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { faCheckCircle, faExclamationCircle } from "@fortawesome/pro-light-svg-icons";
|
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import Section from "../../controls/Section";
|
|
5
|
+
import styles from "./index.less";
|
|
6
|
+
const CheckSection = (props) => {
|
|
7
|
+
return (React.createElement(Section, { title: props.title, className: styles["check-section"] },
|
|
8
|
+
React.createElement("div", { style: { display: "flex", alignItems: "center" } },
|
|
9
|
+
React.createElement("div", { style: { flexGrow: 1 } }, props.children),
|
|
10
|
+
props.success !== undefined && (React.createElement("span", { className: "section-validation-icon" }, props.success ? (React.createElement("span", { className: "success" },
|
|
11
|
+
React.createElement(FontAwesomeIcon, { icon: faCheckCircle, size: "5x" }))) : (React.createElement("span", { className: "error" },
|
|
12
|
+
React.createElement(FontAwesomeIcon, { icon: faExclamationCircle, size: "5x" }))))))));
|
|
13
|
+
};
|
|
14
|
+
export default CheckSection;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/components/CheckSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,YAAY,GAAG,CAAC,KAIrB,EAAE,EAAE;IACJ,OAAO,CACN,oBAAC,OAAO,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC;QAC9D,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE;YACpD,6BAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAG,KAAK,CAAC,QAAQ,CAAO;YAClD,KAAK,CAAC,OAAO,KAAK,SAAS,IAAI,CAC/B,8BAAM,SAAS,EAAE,yBAAyB,IACxC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,8BAAM,SAAS,EAAE,SAAS;gBACzB,oBAAC,eAAe,IAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAC,IAAI,GAAG,CAC5C,CACP,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAE,OAAO;gBACvB,oBAAC,eAAe,IAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAC,IAAI,GAAG,CAClD,CACP,CACK,CACP,CACI,CACG,CACV,CAAC;AACH,CAAC,CAAC;AACF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
@import "../../controls//Section/index.less";
|
|
3
|
+
|
|
4
|
+
.check-section {
|
|
5
|
+
:global {
|
|
6
|
+
.section-validation-icon {
|
|
7
|
+
margin-left: auto;
|
|
8
|
+
.success {
|
|
9
|
+
svg {
|
|
10
|
+
color: @success-color;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.error {
|
|
14
|
+
svg {
|
|
15
|
+
color: @error-color;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const MemberCard: (props: {
|
|
3
|
+
member: any;
|
|
4
|
+
/** id of the unit */
|
|
5
|
+
memberId: string;
|
|
6
|
+
/** member roles */
|
|
7
|
+
roles: "Directors" | "Shareholder";
|
|
8
|
+
onEditClick?: () => void;
|
|
9
|
+
onDeleteClick?: () => void;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
export default MemberCard;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { useValidates } from "@voplus/morpho-data";
|
|
2
|
+
import { faBuilding, faEdit, faTrashAlt, faUser } from "@fortawesome/pro-light-svg-icons";
|
|
3
|
+
import Blink from "../../controls/Blink";
|
|
4
|
+
import Card from "@voplus/morpho-ui/es/controls/Card";
|
|
5
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { Popover } from "@voplus/antd";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { faExclamationCircle } from "@fortawesome/free-solid-svg-icons";
|
|
9
|
+
import { observe } from "@voplus/morpho-ui";
|
|
10
|
+
import styles from "./index.less";
|
|
11
|
+
import { useUnit } from "@voplus/morpho-org";
|
|
12
|
+
const MemberCard = (props) => {
|
|
13
|
+
const { member, memberId, roles } = props;
|
|
14
|
+
const unit = useUnit(memberId);
|
|
15
|
+
const isShareholder = roles === "Shareholder";
|
|
16
|
+
const validates = useValidates((c) => checkError(c));
|
|
17
|
+
return observe(() => (React.createElement(Card, { className: styles["member-card"], padding: "0" },
|
|
18
|
+
React.createElement("div", { className: "member-title" },
|
|
19
|
+
React.createElement("span", { className: "member-name" },
|
|
20
|
+
React.createElement(FontAwesomeIcon, { icon: (unit === null || unit === void 0 ? void 0 : unit.type) === "Organization" ? faBuilding : faUser }),
|
|
21
|
+
isShareholder ? member.shareholder.name : member.name),
|
|
22
|
+
validates.hasError && (React.createElement(Blink, { duration: "3s" },
|
|
23
|
+
React.createElement(Popover, { content: errorTip(validates.errors), title: "", placement: "rightTop" },
|
|
24
|
+
React.createElement(FontAwesomeIcon, { icon: faExclamationCircle, className: "errorIcon" }))))),
|
|
25
|
+
React.createElement("div", { className: "member-content" },
|
|
26
|
+
isShareholder ? (React.createElement(React.Fragment, null,
|
|
27
|
+
React.createElement("span", { title: "Number of Shares" },
|
|
28
|
+
"Shares: ",
|
|
29
|
+
member.shares),
|
|
30
|
+
React.createElement("span", { title: "Capital" },
|
|
31
|
+
"Capital: $",
|
|
32
|
+
member.capital))) : (roles),
|
|
33
|
+
React.createElement("div", { className: "actions" },
|
|
34
|
+
React.createElement("span", { onClick: props.onEditClick },
|
|
35
|
+
React.createElement(FontAwesomeIcon, { icon: faEdit })),
|
|
36
|
+
React.createElement("span", { onClick: props.onDeleteClick },
|
|
37
|
+
React.createElement(FontAwesomeIcon, { icon: faTrashAlt })))))));
|
|
38
|
+
function checkError(c) {
|
|
39
|
+
c.validate(() => unit.address.line1 && unit.address.country, "Please input address.");
|
|
40
|
+
c.validate(() => unit.type !== "Organization" && unit.nationality, "Please input nationality.");
|
|
41
|
+
c.validate(() => unit.email, "Please input email.");
|
|
42
|
+
c.validate(() => unit.primaryLegalIdentity.number &&
|
|
43
|
+
unit.primaryLegalIdentity.type &&
|
|
44
|
+
unit.primaryLegalIdentity.country, "Please input identity details.");
|
|
45
|
+
if (isShareholder) {
|
|
46
|
+
c.validate(() => props.member.shares > 0, "Please input number of shares.");
|
|
47
|
+
c.validate(() => props.member.capital > 0, "Please input subscription amount (capital).");
|
|
48
|
+
}
|
|
49
|
+
return c;
|
|
50
|
+
}
|
|
51
|
+
function errorTip(errors) {
|
|
52
|
+
return (React.createElement("div", { style: { width: "200px", color: "red" } }, errors.map((item, index) => {
|
|
53
|
+
return React.createElement("div", { key: index }, item);
|
|
54
|
+
})));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
export default MemberCard;
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/components/MemberCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1F,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,IAAI,MAAM,oCAA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BAAoB,CAAC,IAAI;YAC9B,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAClC,gCAAgC,CAChC,CAAC;QAEF,IAAI,aAAa,EAAE;YAClB,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAO,GAAG,CAAC,EAAE,gCAAgC,CAAC,CAAC;YAC7E,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,OAAQ,GAAG,CAAC,EAAE,6CAA6C,CAAC,CAAC;SAC3F;QACD,OAAO,CAAC,CAAC;IACV,CAAC;IAED,SAAS,QAAQ,CAAC,MAAgB;QACjC,OAAO,CACN,6BAAK,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAC1C,MAAM,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,KAAK,EAAE,EAAE;YAChC,OAAO,6BAAK,GAAG,EAAE,KAAK,IAAG,IAAI,CAAO,CAAC;QACtC,CAAC,CAAC,CACG,CACN,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
3
|
+
.member-card {
|
|
4
|
+
min-width: 200px;
|
|
5
|
+
margin-right: 20px;
|
|
6
|
+
:global {
|
|
7
|
+
.member-title {
|
|
8
|
+
font-size: 17px;
|
|
9
|
+
color: white;
|
|
10
|
+
padding: 8px 16px;
|
|
11
|
+
background: @primary-color;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
border-radius: 8px 8px 0 0;
|
|
16
|
+
.member-name{
|
|
17
|
+
svg {
|
|
18
|
+
color: #fff;
|
|
19
|
+
margin-right: 6px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.errorIcon {
|
|
23
|
+
color: rgba(255, 200, 200, 1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
.member-content {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
font-size: 15px;
|
|
32
|
+
padding: 10px 16px;
|
|
33
|
+
border: 1px solid gainsboro;
|
|
34
|
+
border-top: none;
|
|
35
|
+
min-height: 100px;
|
|
36
|
+
border-radius: 0 0 8px 8px;
|
|
37
|
+
.actions {
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: flex-end;
|
|
41
|
+
> span {
|
|
42
|
+
margin-left: 6px;
|
|
43
|
+
color: lightgray;
|
|
44
|
+
&:hover {
|
|
45
|
+
color: @primary-color;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
color: @primary-color;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactStripeElements } from "react-stripe-elements";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ICharge } from "../../shopping-cart/CartState";
|
|
4
|
+
declare const CheckoutForm: React.ComponentType<{
|
|
5
|
+
stripe?: ReactStripeElements.StripeProps | undefined;
|
|
6
|
+
email?: string | undefined;
|
|
7
|
+
amount: number;
|
|
8
|
+
onBack?: (() => void) | undefined;
|
|
9
|
+
store: ICharge;
|
|
10
|
+
}>;
|
|
11
|
+
export default CheckoutForm;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as EmailValidator from "email-validator";
|
|
2
|
+
import { Alert, Button, Input } from "@voplus/antd";
|
|
3
|
+
import { CardElement, injectStripe } from "react-stripe-elements";
|
|
4
|
+
import React, { useEffect, useState } from "react";
|
|
5
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { State } from "./state";
|
|
7
|
+
import { faInfoCircle } from "@fortawesome/pro-light-svg-icons";
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
|
+
import { runInAction } from "mobx";
|
|
10
|
+
import styles from "./index.less";
|
|
11
|
+
const CheckoutForm = injectStripe((props) => {
|
|
12
|
+
const [state] = useState(new State());
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
runInAction(() => (state.email = props.email || ""));
|
|
15
|
+
}, [props.email]);
|
|
16
|
+
return observe(() => (React.createElement("div", { className: styles.checkoutForm },
|
|
17
|
+
state.error && React.createElement(Alert, { type: "error", message: state.error }),
|
|
18
|
+
React.createElement("div", null,
|
|
19
|
+
React.createElement(FontAwesomeIcon, { icon: faInfoCircle }),
|
|
20
|
+
" Please fill in your credit/debit card details then click the Pay button to complete the renewal / purchase. The payment will be proceed by",
|
|
21
|
+
" ",
|
|
22
|
+
React.createElement("a", { href: "https://stripe.com", target: "_blank", rel: "noreferrer" }, "Stripe"),
|
|
23
|
+
" ",
|
|
24
|
+
"directly. VOPlus will not have any access to your payment information."),
|
|
25
|
+
React.createElement("div", null,
|
|
26
|
+
React.createElement("label", null,
|
|
27
|
+
React.createElement("strong", null,
|
|
28
|
+
React.createElement("span", null, "*"),
|
|
29
|
+
" Card Details")),
|
|
30
|
+
React.createElement(CardElement, { onChange: state.onCardChange }),
|
|
31
|
+
React.createElement("label", null,
|
|
32
|
+
React.createElement("strong", null,
|
|
33
|
+
React.createElement("span", { color: "crimson" }, "*"),
|
|
34
|
+
" Email")),
|
|
35
|
+
React.createElement(Input, { id: "email", name: "email", value: state.email, className: "StripeElement", placeholder: "contactname@example.com", style: {
|
|
36
|
+
width: "100%",
|
|
37
|
+
color: EmailValidator.validate(state.email) ? undefined : "red",
|
|
38
|
+
}, onChange: state.onEmailChange })),
|
|
39
|
+
props.onBack && (React.createElement(Button, { type: "default", onClick: props.onBack }, "Back")),
|
|
40
|
+
React.createElement(Button, { type: "primary", onClick: submit, loading: state.charging, disabled: !state.canPay }, state.charging ? "Charging" : `Pay SGD$ ${props.amount}`))));
|
|
41
|
+
function submit() {
|
|
42
|
+
runInAction(async () => {
|
|
43
|
+
var _a;
|
|
44
|
+
state.charging = true;
|
|
45
|
+
const { token } = (await ((_a = props === null || props === void 0 ? void 0 : props.stripe) === null || _a === void 0 ? void 0 : _a.createToken()));
|
|
46
|
+
if (!token.id)
|
|
47
|
+
return;
|
|
48
|
+
try {
|
|
49
|
+
await props.store.charge(token === null || token === void 0 ? void 0 : token.id, state.email);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
state.error = err.toString();
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
state.charging = false;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export default CheckoutForm;
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/components/StripeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAQ,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAuB,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,YAAY,GAAG,YAAY,CAChC,CAAC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-family: "Source Code Pro", monospace;
|
|
9
|
+
box-shadow: rgba(50, 50, 93, 0.14902) 0px 1px 3px, rgba(0, 0, 0, 0.0196078) 0px 1px 0px;
|
|
10
|
+
border: 0;
|
|
11
|
+
outline: 0;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
background: white;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
input::placeholder {
|
|
17
|
+
//color: #aab7c4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.StripeElement--focus {
|
|
21
|
+
box-shadow: rgba(50, 50, 93, 0.109804) 0px 4px 6px, rgba(0, 0, 0, 0.0784314) 0px 1px 3px;
|
|
22
|
+
-webkit-transition: all 150ms ease;
|
|
23
|
+
transition: all 150ms ease;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.StripeElement.IdealBankElement,
|
|
27
|
+
.StripeElement.PaymentRequestButton {
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.checkoutForm {
|
|
33
|
+
label span {
|
|
34
|
+
color: crimson;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="stripe-v3" />
|
|
2
|
+
export declare class State {
|
|
3
|
+
charging: boolean;
|
|
4
|
+
error: string;
|
|
5
|
+
complete: boolean;
|
|
6
|
+
canPay: boolean;
|
|
7
|
+
email: string;
|
|
8
|
+
constructor();
|
|
9
|
+
onEmailChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
onCardChange: (el: stripe.elements.ElementChangeResponse) => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import * as EmailValidator from "email-validator";
|
|
3
|
+
import { action, makeAutoObservable, observable } from "mobx";
|
|
4
|
+
export class State {
|
|
5
|
+
constructor() {
|
|
6
|
+
Object.defineProperty(this, "charging", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: false
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(this, "error", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: ""
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(this, "complete", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value: false
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(this, "canPay", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
configurable: true,
|
|
27
|
+
writable: true,
|
|
28
|
+
value: false
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(this, "email", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true,
|
|
34
|
+
value: ""
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(this, "onEmailChange", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
configurable: true,
|
|
39
|
+
writable: true,
|
|
40
|
+
value: (event) => {
|
|
41
|
+
const email = event.target.value;
|
|
42
|
+
this.email = email;
|
|
43
|
+
console.log(email, "email");
|
|
44
|
+
this.canPay = this.complete && EmailValidator.validate(email);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(this, "onCardChange", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
configurable: true,
|
|
50
|
+
writable: true,
|
|
51
|
+
value: (el) => {
|
|
52
|
+
this.complete = el.complete;
|
|
53
|
+
this.canPay = el.complete && EmailValidator.validate(this.email);
|
|
54
|
+
console.log(el.complete, this.canPay, "el.complete");
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
makeAutoObservable(this);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
__decorate([
|
|
61
|
+
observable
|
|
62
|
+
], State.prototype, "charging", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
observable
|
|
65
|
+
], State.prototype, "error", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
observable
|
|
68
|
+
], State.prototype, "complete", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
observable
|
|
71
|
+
], State.prototype, "canPay", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
observable
|
|
74
|
+
], State.prototype, "email", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
action
|
|
77
|
+
], State.prototype, "onEmailChange", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
action
|
|
80
|
+
], State.prototype, "onCardChange", void 0);
|
|
81
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/components/StripeForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAOjB;QANY;;;;mBAAkB,KAAK;WAAC;QACxB;;;;mBAAe,EAAE;WAAC;QAClB;;;;mBAAkB,KAAK;WAAC;QACxB;;;;mBAAgB,KAAK;WAAC;QACtB;;;;mBAAe,EAAE;WAAC;QAQ9B;;;;mBAAuB,CAAC,KAA0C,EAAE,EAAE;gBACrE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;gBACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;gBACnB,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC5B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC/D,CAAC;WAAC;QAIF;;;;mBAAsB,CAAC,EAAyC,EAAE,EAAE;gBACnE,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;gBAC5B,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,QAAQ,IAAI,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACjE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;YACtD,CAAC;WAAC;QAlBD,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAkBD;AA1BY;IAAX,UAAU;uCAAyB;AACxB;IAAX,UAAU;oCAAmB;AAClB;IAAX,UAAU;uCAAyB;AACxB;IAAX,UAAU;qCAAuB;AACtB;IAAX,UAAU;oCAAmB;AAQ9B;IAFC,MAAM;4CAOL;AAIF;IAFC,MAAM;2CAML"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CheckSection } from "./CheckSection";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/self-registration/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import styles from "./index.less";
|
|
4
|
+
const Blink = (props) => {
|
|
5
|
+
const style = props.blinking ? { animationDuration: `${props.duration} !important` } : {};
|
|
6
|
+
return (React.createElement("span", { className: classNames(styles.blink, props.blinking ? styles.blinking : null), style: style }, props.children));
|
|
7
|
+
};
|
|
8
|
+
Blink.defaultProps = {
|
|
9
|
+
blinking: true,
|
|
10
|
+
duration: "1s",
|
|
11
|
+
};
|
|
12
|
+
export default Blink;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/controls/Blink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,KAAK,GAAG,CAAC,KAA6D,EAAE,EAAE;IAC/E,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC,QAAQ,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1F,OAAO,CACN,8BACC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAC5E,KAAK,EAAE,KAAK,IAEX,KAAK,CAAC,QAAQ,CACT,CACP,CAAC;AACH,CAAC,CAAC;AAEF,KAAK,CAAC,YAAY,GAAG;IACpB,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACd,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.blink {
|
|
2
|
+
&.blinking {
|
|
3
|
+
-webkit-animation: blink 3s linear infinite;
|
|
4
|
+
-moz-animation: blink 3s linear infinite;
|
|
5
|
+
-ms-animation: blink 3s linear infinite;
|
|
6
|
+
-o-animation: blink 3s linear infinite;
|
|
7
|
+
animation: blink 3s linear infinite;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes blink {
|
|
12
|
+
0% {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
25% {
|
|
16
|
+
opacity: 0.5;
|
|
17
|
+
}
|
|
18
|
+
50% {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
75% {
|
|
22
|
+
opacity: 0.5;
|
|
23
|
+
}
|
|
24
|
+
100% {
|
|
25
|
+
opacity: 1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const BusinessActivityInput: (props: {
|
|
3
|
+
defaultValue: string;
|
|
4
|
+
onBlur?: ((v: string) => void) | undefined;
|
|
5
|
+
onChange?: ((v: string) => void) | undefined;
|
|
6
|
+
onSelect?: ((v: string) => void) | undefined;
|
|
7
|
+
autoFocus?: boolean | undefined;
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export default BusinessActivityInput;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { AutoComplete } from "@voplus/antd";
|
|
3
|
+
import { State } from "./state";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { runInAction } from "mobx";
|
|
6
|
+
import { useCartStore } from "../../../../data/cart";
|
|
7
|
+
const BusinessActivityInput = (props) => {
|
|
8
|
+
const [state] = useState(new State());
|
|
9
|
+
const store = useCartStore();
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
dataSource();
|
|
12
|
+
}, []);
|
|
13
|
+
const filterActivities = (value) => {
|
|
14
|
+
if (value) {
|
|
15
|
+
runInAction(() => {
|
|
16
|
+
state.source = state.activityDescriptions
|
|
17
|
+
.filter((x) => x.value.toLowerCase().indexOf(value.toLocaleLowerCase()) !== -1)
|
|
18
|
+
.slice(0, 50);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return observe(() => (React.createElement(AutoComplete, { defaultValue: props.defaultValue, onSearch: (v) => filterActivities(v), placeholder: "Choose or search a business activity", options: state.source, onChange: props.onChange, onBlur: (v) => props.onBlur && props.onBlur(v ? v.toString() : ""), onSelect: (v) => props.onSelect && props.onSelect(v ? v.toString() : ""), autoFocus: props.autoFocus })));
|
|
23
|
+
function dataSource() {
|
|
24
|
+
runInAction(async () => {
|
|
25
|
+
if (state.activityDescriptions.length > 0) {
|
|
26
|
+
state.source = state.activityDescriptions;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (state.loading)
|
|
30
|
+
return;
|
|
31
|
+
state.loading = true;
|
|
32
|
+
const activities = await store.businessActivities("SG");
|
|
33
|
+
state.activityDescriptions = activities === null || activities === void 0 ? void 0 : activities.map((x) => {
|
|
34
|
+
return { value: `${x.code} ${x.description}`, label: `${x.code} ${x.description}` };
|
|
35
|
+
});
|
|
36
|
+
state.source = state.activityDescriptions;
|
|
37
|
+
state.loading = false;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export default BusinessActivityInput;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/controls/BusinessActivityInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,qBAAqB,GAAG,CAAC,KAM9B,EAAE,EAAE;IACJ,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAE7B,SAAS,CAAC,GAAG,EAAE;QACd,UAAU,EAAE,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,EAAE;QAC1C,IAAI,KAAK,EAAE;YACV,WAA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C,OAAO;gBAAE,OAAO;YAE1B,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;YAErB,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YAExD,KAAK,CAAC,oBAAoB,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAClD,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;YACrF,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,oBAAoB,CAAC;YAC1C,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACvB,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class State {
|
|
2
|
+
/** value */
|
|
3
|
+
value: string;
|
|
4
|
+
/** 保存时加载状态 */
|
|
5
|
+
loading: boolean;
|
|
6
|
+
/** activity list */
|
|
7
|
+
activityDescriptions: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
/** activity list */
|
|
12
|
+
source: {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
constructor();
|
|
17
|
+
}
|