@voplus/morpho-csp 1.2.26 → 1.2.28
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/CompanyDetailsView/index.js +44 -42
- package/es/modules/corporate/company/CompanyDetailsView/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,47 @@
|
|
|
1
|
+
import { useOrderListEffect } from "../../../data/order";
|
|
2
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
3
|
+
import React, { useEffect, useState } from "react";
|
|
4
|
+
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
5
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
6
|
+
import OrderItem from "../OrderItem";
|
|
7
|
+
import OrderPropertiesView from "../OrderPropertiesView";
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
|
+
import { runInAction } from "mobx";
|
|
10
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
11
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
|
+
import { useTabItem } from "@voplus/morpho-data";
|
|
13
|
+
const OrderList = (props) => {
|
|
14
|
+
const { parentId } = props;
|
|
15
|
+
const tab = useTabItem();
|
|
16
|
+
const [activeId, setActiveId] = useState("");
|
|
17
|
+
const list = useCreateListDataState({
|
|
18
|
+
filterDefaults: {
|
|
19
|
+
includes: "tags",
|
|
20
|
+
filters: parentId ? [{ c: "ParentNodeId", o: "=", l: "And", v1: parentId }] : [],
|
|
21
|
+
},
|
|
22
|
+
}, []);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
runInAction(() => (tab.title = "Order"));
|
|
25
|
+
}, []);
|
|
26
|
+
useAutoUpdateListData(list, (d) => d.parentId === parentId);
|
|
27
|
+
useRenderOnChange(() => list.filters.options);
|
|
28
|
+
useOrderListEffect(list, (result) => list.union(result), list.filters.options);
|
|
29
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
30
|
+
React.createElement(ListView, { headerProps: {
|
|
31
|
+
viewTitle: "Order List",
|
|
32
|
+
sortOptions: [
|
|
33
|
+
{ label: "Name", value: "Name" },
|
|
34
|
+
{ label: "Document Date", value: "DocumentDate" },
|
|
35
|
+
],
|
|
36
|
+
addAble: false,
|
|
37
|
+
quickSearch: true,
|
|
38
|
+
}, renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
|
39
|
+
active: activeId === item.id,
|
|
40
|
+
hoverEffect: "none",
|
|
41
|
+
activeEffect: "border",
|
|
42
|
+
borderProps: { location: "right", color: "#2d85dc ", size: "2px" },
|
|
43
|
+
}, onClick: () => setActiveId(item.id) },
|
|
44
|
+
React.createElement(OrderItem, { id: item.id }))), propertiesView: (id) => React.createElement(OrderPropertiesView, { id: id }) }))));
|
|
45
|
+
};
|
|
46
|
+
export default OrderList;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/order/OrderListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,SAAS,GAAG,CAAC,KAA4B,EAAE,EAAE;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE7C,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;SAChF;KACD,EACD,EAAE,CACF,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC;IAC1C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;IAE5D,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C,kBAAkB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QACpC,oBAAC,QAAQ,IACR,WAAW,EAAE;gBACZ,SAAS,EAAE,YAAY;gBACvB,WAAW,EAAE;oBACZ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE;iBACjD;gBACD,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,IAAI;aACjB,EACD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,CAC9B,oBAAC,iBAAiB,IACjB,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,UAAU,EAAE;oBACX,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE;oBAC5B,WAAW,EAAE,MAAM;oBACnB,YAAY,EAAE,QAAQ;oBACtB,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE;iBAClE,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;gBAEnC,oBAAC,SAAS,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACP,CACpB,EACD,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI,GACtD,CACwB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { useOrder } from "../../../data/order";
|
|
3
|
+
import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import { Skeleton } from "@voplus/antd";
|
|
6
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
7
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
8
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
9
|
+
import OrderItems from "../OrderItems";
|
|
10
|
+
import OrderLabel from "../OrderLabel";
|
|
11
|
+
import Toolbar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
12
|
+
import { observe } from "@voplus/morpho-ui";
|
|
13
|
+
// import CLDAMenu from "../components/CLDAMenu";
|
|
14
|
+
const OrderPropertiesView = (props) => {
|
|
15
|
+
const { id } = props;
|
|
16
|
+
const [reload, setReload] = useState(true);
|
|
17
|
+
const order = useOrder(id, { reload: reload });
|
|
18
|
+
return observe(() => (React.createElement("div", { className: "Order-properties-view" },
|
|
19
|
+
order.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
20
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement(DocumentHeader, { id: id, size: "h3", preVisible: false, quickVisible: false, tagsVisible: false, flagVisible: false,
|
|
21
|
+
// quickDataBarVisible={false}
|
|
22
|
+
quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, tools: React.createElement(Toolbar, { id: id, moreProps: { closeAside: true } },
|
|
23
|
+
React.createElement(Reload, { action: onReLoad }),
|
|
24
|
+
React.createElement(Open, { url: `/orders/${id}` })) })),
|
|
25
|
+
order.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
26
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: order.description, readonly: order.readonly, padding: "0 0 0.75rem 0" })),
|
|
27
|
+
React.createElement(DocumentTabs, { id: id, details: React.createElement(React.Fragment, null,
|
|
28
|
+
React.createElement(OrderLabel, { order: order }),
|
|
29
|
+
React.createElement(OrderItems, { data: order })) }))));
|
|
30
|
+
/** reload data */
|
|
31
|
+
function onReLoad() {
|
|
32
|
+
setReload(false);
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
setReload(true);
|
|
35
|
+
}, 100);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export default OrderPropertiesView;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/order/OrderPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAU,QAAQ,EAAiB,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAW,MAAM,cAAc,CAAC;AAEjD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,iDAAiD;AAEjD,MAAM,mBAAmB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACrD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,QAAQ,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAE/C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACpC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;YAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,cAAc,IACd,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,IAAI,EACT,UAAU,EAAE,KAAK,EACjB,YAAY,EAAE,KAAK,EACnB,WAAW,EAAE,KAAK,EAClB,WAAW,EAAE,KAAK;YAClB,8BAA8B;YAC9B,iBAAiB,EAAC,MAAM,EACxB,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,KAAK,EACJ,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;gBAC/C,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;gBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,WAAW,EAAE,EAAE,GAAI,CACrB,GAEV,CACF;QACA,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;YAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,OAAO,EAAC,eAAe,GACtB,CACF;QACD,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,OAAO,EACN,oBAAC,KAAK,CAAC,QAAQ;gBACd,oBAAC,UAAU,IAAC,KAAK,EAAE,KAAK,GAAI;gBAC5B,oBAAC,UAAU,IAAC,IAAI,EAAE,KAAK,GAAI,CACX,GAEjB,CACG,CACN,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOrderLine } from "../../../data/order";
|
|
3
|
+
export interface IOrderState {
|
|
4
|
+
/** Reset the filter state. */
|
|
5
|
+
reset(): any;
|
|
6
|
+
}
|
|
7
|
+
export declare class OrderState {
|
|
8
|
+
id: string;
|
|
9
|
+
reset(): void;
|
|
10
|
+
/** lines of order */
|
|
11
|
+
lines: IOrderLine[];
|
|
12
|
+
/** 编辑模式 */
|
|
13
|
+
editable: boolean;
|
|
14
|
+
/** loading of save */
|
|
15
|
+
loading: boolean;
|
|
16
|
+
/** reload of view */
|
|
17
|
+
reload: boolean;
|
|
18
|
+
/** Current tools states. */
|
|
19
|
+
private states;
|
|
20
|
+
constructor(id: string);
|
|
21
|
+
/** Try to get an existing icons state or create a new one if it's not already exists.
|
|
22
|
+
* @param key - Key of the icons state.
|
|
23
|
+
* @param factory - factor to create a new option state.
|
|
24
|
+
*/
|
|
25
|
+
getState<T extends IOrderState>(key: string, factory: () => T): T;
|
|
26
|
+
clear(): void;
|
|
27
|
+
/** reload view */
|
|
28
|
+
onReload(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare const OrderContext: import("react").Context<any>;
|
|
31
|
+
export declare const useOrderContext: () => any;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
export class OrderState {
|
|
5
|
+
constructor(id) {
|
|
6
|
+
Object.defineProperty(this, "id", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: id
|
|
11
|
+
});
|
|
12
|
+
/** lines of order */
|
|
13
|
+
Object.defineProperty(this, "lines", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: []
|
|
18
|
+
});
|
|
19
|
+
/** 编辑模式 */
|
|
20
|
+
Object.defineProperty(this, "editable", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: false
|
|
25
|
+
});
|
|
26
|
+
/** loading of save */
|
|
27
|
+
Object.defineProperty(this, "loading", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: false
|
|
32
|
+
});
|
|
33
|
+
/** reload of view */
|
|
34
|
+
Object.defineProperty(this, "reload", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: true
|
|
39
|
+
});
|
|
40
|
+
/** Current tools states. */
|
|
41
|
+
Object.defineProperty(this, "states", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: new Map()
|
|
46
|
+
});
|
|
47
|
+
makeObservable(this);
|
|
48
|
+
}
|
|
49
|
+
reset() {
|
|
50
|
+
throw new Error("Method not implemented.");
|
|
51
|
+
}
|
|
52
|
+
/** Try to get an existing icons state or create a new one if it's not already exists.
|
|
53
|
+
* @param key - Key of the icons state.
|
|
54
|
+
* @param factory - factor to create a new option state.
|
|
55
|
+
*/
|
|
56
|
+
getState(key, factory) {
|
|
57
|
+
if (!this.states.has(key))
|
|
58
|
+
this.states.set(key, factory());
|
|
59
|
+
return this.states.get(key);
|
|
60
|
+
}
|
|
61
|
+
clear() {
|
|
62
|
+
this.states.forEach((v) => v.reset());
|
|
63
|
+
}
|
|
64
|
+
/** reload view */
|
|
65
|
+
onReload() {
|
|
66
|
+
this.reload = false;
|
|
67
|
+
setTimeout(() => {
|
|
68
|
+
this.reload = true;
|
|
69
|
+
}, 100);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
__decorate([
|
|
73
|
+
observable
|
|
74
|
+
], OrderState.prototype, "lines", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
observable
|
|
77
|
+
], OrderState.prototype, "editable", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
observable
|
|
80
|
+
], OrderState.prototype, "loading", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
observable
|
|
83
|
+
], OrderState.prototype, "reload", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
action
|
|
86
|
+
], OrderState.prototype, "clear", null);
|
|
87
|
+
__decorate([
|
|
88
|
+
action
|
|
89
|
+
], OrderState.prototype, "onReload", null);
|
|
90
|
+
export const OrderContext = createContext(null);
|
|
91
|
+
export const useOrderContext = () => useContext(OrderContext);
|
|
92
|
+
//# sourceMappingURL=OrderContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderContext.js","sourceRoot":"","sources":["../../../../src/modules/order/context/OrderContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AASlD,MAAM,OAAO,UAAU;IAgBtB,YAA0B,EAAU;;;;;mBAAV;;QAZ1B,qBAAqB;QACT;;;;mBAA6B,EAAE;WAAC;QAC5C,WAAW;QACC;;;;mBAAkB,KAAK;WAAC;QACpC,sBAAsB;QACV;;;;mBAAiB,KAAK;WAAC;QACnC,qBAAqB;QACT;;;;mBAAgB,IAAI;WAAC;QAEjC,4BAA4B;QAC5B;;;;mBAA2C,IAAI,GAAG,EAAE;WAAC;QAGpD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAjBD,KAAK;QACJ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;IAiBD;;;OAGG;IACI,QAAQ,CAAwB,GAAW,EAAE,OAAgB;QACnE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;QAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAM,CAAC;IAClC,CAAC;IAIM,KAAK;QACX,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,kBAAkB;IAEX,QAAQ;QACd,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACpB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;CACD;AAtCY;IAAX,UAAU;yCAAiC;AAEhC;IAAX,UAAU;4CAAyB;AAExB;IAAX,UAAU;2CAAwB;AAEvB;IAAX,UAAU;0CAAsB;AAoBjC;IAFC,MAAM;uCAIN;AAID;IADC,MAAM;0CAMN;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,IAAW,CAAC,CAAC;AAEvD,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
import { IncorporationStatus } from "../../../../data/cart";
|
|
4
|
+
declare const IncorporationStatusLabel: (props: {
|
|
5
|
+
status: string;
|
|
6
|
+
editable: boolean;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
onChange: (status: IncorporationStatus) => void;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default IncorporationStatusLabel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
const IncorporationStatusLabel = (props) => {
|
|
6
|
+
return (React.createElement(DocumentStatusLabel, { className: classnames("incorporation-status", props.className), editable: props.editable, list: [
|
|
7
|
+
{ name: "Shopping" },
|
|
8
|
+
{ name: "PendingPayment" },
|
|
9
|
+
{ name: "Paid" },
|
|
10
|
+
{ name: "Review" },
|
|
11
|
+
{ name: "Documents" },
|
|
12
|
+
{ name: "Process" },
|
|
13
|
+
], status: props.status, onChange: props.onChange }));
|
|
14
|
+
};
|
|
15
|
+
export default IncorporationStatusLabel;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/order/controls/IncorporationStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAE1F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,wBAAwB,GAAG,CAAC,KAKjC,EAAE,EAAE;IACJ,OAAO,CACN,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,KAAK,CAAC,SAAS,CAAC,EAC9D,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE;YACL,EAAE,IAAI,EAAE,UAAU,EAAE;YACpB,EAAE,IAAI,EAAE,gBAAgB,EAAE;YAC1B,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClB,EAAE,IAAI,EAAE,WAAW,EAAE;YACrB,EAAE,IAAI,EAAE,SAAS,EAAE;SACnB,EACD,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.incorporation-status {
|
|
3
|
+
width: 116px;
|
|
4
|
+
&.shopping,
|
|
5
|
+
&.shopping:hover {
|
|
6
|
+
border: unset;
|
|
7
|
+
background: #e6ad51;
|
|
8
|
+
color: white;
|
|
9
|
+
}
|
|
10
|
+
&.pending-payment,
|
|
11
|
+
&.pending-payment:hover {
|
|
12
|
+
border: unset;
|
|
13
|
+
background: #ff5c86;
|
|
14
|
+
color: white;
|
|
15
|
+
}
|
|
16
|
+
&.paid,
|
|
17
|
+
&.paid:hover {
|
|
18
|
+
border: unset;
|
|
19
|
+
background: #4bd8e0;
|
|
20
|
+
color: white;
|
|
21
|
+
}
|
|
22
|
+
&.review,
|
|
23
|
+
&.review:hover {
|
|
24
|
+
border: unset;
|
|
25
|
+
background: #0cf177;
|
|
26
|
+
color: white;
|
|
27
|
+
}
|
|
28
|
+
&.documents,
|
|
29
|
+
&.documents:hover {
|
|
30
|
+
border: unset;
|
|
31
|
+
background: #fa14c1;
|
|
32
|
+
color: white;
|
|
33
|
+
}
|
|
34
|
+
&.process,
|
|
35
|
+
&.process:hover {
|
|
36
|
+
border: unset;
|
|
37
|
+
background: #1250df;
|
|
38
|
+
color: white;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Badge } from "@voplus/antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { State } from "./state";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
7
|
+
const IncorporationStatusFilter = () => {
|
|
8
|
+
const context = useFilterOptionsContext();
|
|
9
|
+
const state = context.getFilterState("Status", () => new State());
|
|
10
|
+
return observe(() => (React.createElement("div", null,
|
|
11
|
+
React.createElement("div", { className: "menu-item-title" }, "Status"),
|
|
12
|
+
state.menus.map((item, index) => (React.createElement("div", { key: index, className: classnames("filter-menu-item", {
|
|
13
|
+
bold: state.status.has(item.value),
|
|
14
|
+
}), onClick: () => state.onChangeStatus(item.value) },
|
|
15
|
+
React.createElement("div", { className: "filter-name" },
|
|
16
|
+
React.createElement(Badge, { color: item.color }),
|
|
17
|
+
item.name),
|
|
18
|
+
React.createElement("span", null, item.counts)))))));
|
|
19
|
+
};
|
|
20
|
+
export default IncorporationStatusFilter;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/order/controls/filters/IncorporationStatusFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,yBAAyB,GAAG,GAAG,EAAE;IACtC,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAElE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACC,6BAAK,SAAS,EAAC,iBAAiB,aAAa;QAC5C,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,KAAa,EAAE,EAAE,CAAC,CAC9C,6BACC,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;aAClC,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;YAE/C,6BAAK,SAAS,EAAC,aAAa;gBAC3B,oBAAC,KAAK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI;gBAC3B,IAAI,CAAC,IAAI,CACL;YACN,kCAAO,IAAI,CAAC,MAAM,CAAQ,CACrB,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FilterOption } from "@voplus/morpho-data";
|
|
2
|
+
import { IFilterState } from "@voplus/morpho-ui/es/data/IFilterState";
|
|
3
|
+
export declare class State implements IFilterState {
|
|
4
|
+
/** Status of filter */
|
|
5
|
+
status: Map<string, boolean>;
|
|
6
|
+
constructor();
|
|
7
|
+
/** update status */
|
|
8
|
+
onChangeStatus(value: string): void;
|
|
9
|
+
get menus(): {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
counts: string;
|
|
13
|
+
color: string;
|
|
14
|
+
}[];
|
|
15
|
+
get filters(): FilterOption[];
|
|
16
|
+
reset(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, makeAutoObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** Status of filter */
|
|
6
|
+
Object.defineProperty(this, "status", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: new Map()
|
|
11
|
+
});
|
|
12
|
+
makeAutoObservable(this);
|
|
13
|
+
}
|
|
14
|
+
/** update status */
|
|
15
|
+
onChangeStatus(value) {
|
|
16
|
+
this.status.has(value) ? this.status.delete(value) : this.status.set(value, true);
|
|
17
|
+
}
|
|
18
|
+
get menus() {
|
|
19
|
+
return [
|
|
20
|
+
{ name: "Shopping", value: "Shopping", counts: "n", color: "#e6ad51" },
|
|
21
|
+
{ name: "PendingPayment", value: "PendingPayment", counts: "n", color: "#ff5c86" },
|
|
22
|
+
{ name: "Paid", value: "Paid", counts: "n", color: "#4bd8e0" },
|
|
23
|
+
{ name: "Review", value: "Review", counts: "n", color: "#0cf177" },
|
|
24
|
+
{ name: "Documents", value: "Documents", counts: "n", color: "#fa14c1" },
|
|
25
|
+
{ name: "Process", value: "Process", counts: "n", color: "#1250df" },
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
get filters() {
|
|
29
|
+
return [
|
|
30
|
+
{
|
|
31
|
+
c: "IncorporationStatus",
|
|
32
|
+
o: "contains",
|
|
33
|
+
v1: JSON.stringify(Array.from(this.status.keys())),
|
|
34
|
+
l: "And",
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
reset() {
|
|
39
|
+
this.status.clear();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
observable
|
|
44
|
+
], State.prototype, "status", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
action
|
|
47
|
+
], State.prototype, "onChangeStatus", null);
|
|
48
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/order/controls/filters/IncorporationStatusFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAK9D,MAAM,OAAO,KAAK;IAIjB;QAHA,uBAAuB;QACX;;;;mBAAsC,IAAI,GAAG,EAAE;WAAC;QAG3D,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,oBAAoB;IAEb,cAAc,CAAC,KAAa;QAClC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;IAED,IAAW,KAAK;QACf,OAAO;YACN,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YACtE,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YAClF,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YAC9D,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YAClE,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;YACxE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;SACpE,CAAC;IACH,CAAC;IACD,IAAW,OAAO;QACjB,OAAO;YACN;gBACC,CAAC,EAAE,qBAAqB;gBACxB,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBAClD,CAAC,EAAE,KAAK;aACQ;SACjB,CAAC;IACH,CAAC;IACM,KAAK;QACX,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACD;AAnCY;IAAX,UAAU;qCAAiD;AAQ5D;IADC,MAAM;2CAGN"}
|
|
@@ -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;
|