@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,218 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeAutoObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** EDit To of the order. */
|
|
6
|
+
Object.defineProperty(this, "contactEdit", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: false
|
|
11
|
+
});
|
|
12
|
+
/** EDit To of the order. */
|
|
13
|
+
Object.defineProperty(this, "currencyEdit", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: false
|
|
18
|
+
});
|
|
19
|
+
/** Edit Date of the order. */
|
|
20
|
+
Object.defineProperty(this, "dateEdit", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: false
|
|
25
|
+
});
|
|
26
|
+
makeAutoObservable(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
observable
|
|
31
|
+
], State.prototype, "contactEdit", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
observable
|
|
34
|
+
], State.prototype, "currencyEdit", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
observable
|
|
37
|
+
], State.prototype, "dateEdit", void 0);
|
|
38
|
+
export const currencyList = [
|
|
39
|
+
"AFN",
|
|
40
|
+
"EUR",
|
|
41
|
+
"ALL",
|
|
42
|
+
"DZD",
|
|
43
|
+
"USD",
|
|
44
|
+
"AOA",
|
|
45
|
+
"XCD",
|
|
46
|
+
"ARS",
|
|
47
|
+
"AMD",
|
|
48
|
+
"AWG",
|
|
49
|
+
"AUD",
|
|
50
|
+
"AZN",
|
|
51
|
+
"BSD",
|
|
52
|
+
"BHD",
|
|
53
|
+
"BDT",
|
|
54
|
+
"BBD",
|
|
55
|
+
"BYN",
|
|
56
|
+
"BZD",
|
|
57
|
+
"BMD",
|
|
58
|
+
"INR",
|
|
59
|
+
"BTN",
|
|
60
|
+
"BOB",
|
|
61
|
+
"BOV",
|
|
62
|
+
"BAM",
|
|
63
|
+
"BWP",
|
|
64
|
+
"NOK",
|
|
65
|
+
"BRL",
|
|
66
|
+
"BND",
|
|
67
|
+
"BGN",
|
|
68
|
+
"XOF",
|
|
69
|
+
"BIF",
|
|
70
|
+
"CVE",
|
|
71
|
+
"KHR",
|
|
72
|
+
"XAF",
|
|
73
|
+
"CAD",
|
|
74
|
+
"KYD",
|
|
75
|
+
"CLP",
|
|
76
|
+
"CLF",
|
|
77
|
+
"CNY",
|
|
78
|
+
"COP",
|
|
79
|
+
"COU",
|
|
80
|
+
"KMF",
|
|
81
|
+
"CDF",
|
|
82
|
+
"NZD",
|
|
83
|
+
"CRC",
|
|
84
|
+
"HRK",
|
|
85
|
+
"CUP",
|
|
86
|
+
"CUC",
|
|
87
|
+
"ANG",
|
|
88
|
+
"CZK",
|
|
89
|
+
"DKK",
|
|
90
|
+
"DJF",
|
|
91
|
+
"DOP",
|
|
92
|
+
"EGP",
|
|
93
|
+
"SVC",
|
|
94
|
+
"ERN",
|
|
95
|
+
"ETB",
|
|
96
|
+
"FKP",
|
|
97
|
+
"FJD",
|
|
98
|
+
"XPF",
|
|
99
|
+
"GMD",
|
|
100
|
+
"GEL",
|
|
101
|
+
"GHS",
|
|
102
|
+
"GIP",
|
|
103
|
+
"GTQ",
|
|
104
|
+
"GBP",
|
|
105
|
+
"GNF",
|
|
106
|
+
"GYD",
|
|
107
|
+
"HTG",
|
|
108
|
+
"HNL",
|
|
109
|
+
"HKD",
|
|
110
|
+
"HUF",
|
|
111
|
+
"ISK",
|
|
112
|
+
"IDR",
|
|
113
|
+
"XDR",
|
|
114
|
+
"IRR",
|
|
115
|
+
"IQD",
|
|
116
|
+
"ILS",
|
|
117
|
+
"JMD",
|
|
118
|
+
"JPY",
|
|
119
|
+
"JOD",
|
|
120
|
+
"KZT",
|
|
121
|
+
"KES",
|
|
122
|
+
"KPW",
|
|
123
|
+
"KRW",
|
|
124
|
+
"KWD",
|
|
125
|
+
"KGS",
|
|
126
|
+
"LAK",
|
|
127
|
+
"LBP",
|
|
128
|
+
"LSL",
|
|
129
|
+
"ZAR",
|
|
130
|
+
"LRD",
|
|
131
|
+
"LYD",
|
|
132
|
+
"CHF",
|
|
133
|
+
"MOP",
|
|
134
|
+
"MKD",
|
|
135
|
+
"MGA",
|
|
136
|
+
"MWK",
|
|
137
|
+
"MYR",
|
|
138
|
+
"MVR",
|
|
139
|
+
"MRU",
|
|
140
|
+
"MUR",
|
|
141
|
+
"XUA",
|
|
142
|
+
"MXN",
|
|
143
|
+
"MXV",
|
|
144
|
+
"MDL",
|
|
145
|
+
"MNT",
|
|
146
|
+
"MAD",
|
|
147
|
+
"MZN",
|
|
148
|
+
"MMK",
|
|
149
|
+
"NAD",
|
|
150
|
+
"NPR",
|
|
151
|
+
"NIO",
|
|
152
|
+
"NGN",
|
|
153
|
+
"OMR",
|
|
154
|
+
"PKR",
|
|
155
|
+
"PAB",
|
|
156
|
+
"PGK",
|
|
157
|
+
"PYG",
|
|
158
|
+
"PEN",
|
|
159
|
+
"PHP",
|
|
160
|
+
"PLN",
|
|
161
|
+
"QAR",
|
|
162
|
+
"RON",
|
|
163
|
+
"RUB",
|
|
164
|
+
"RWF",
|
|
165
|
+
"SHP",
|
|
166
|
+
"WST",
|
|
167
|
+
"STN",
|
|
168
|
+
"SAR",
|
|
169
|
+
"RSD",
|
|
170
|
+
"SCR",
|
|
171
|
+
"SLL",
|
|
172
|
+
"SGD",
|
|
173
|
+
"XSU",
|
|
174
|
+
"SBD",
|
|
175
|
+
"SOS",
|
|
176
|
+
"SSP",
|
|
177
|
+
"LKR",
|
|
178
|
+
"SDG",
|
|
179
|
+
"SRD",
|
|
180
|
+
"SZL",
|
|
181
|
+
"SEK",
|
|
182
|
+
"CHE",
|
|
183
|
+
"CHW",
|
|
184
|
+
"SYP",
|
|
185
|
+
"TWD",
|
|
186
|
+
"TJS",
|
|
187
|
+
"THB",
|
|
188
|
+
"TOP",
|
|
189
|
+
"TTD",
|
|
190
|
+
"TND",
|
|
191
|
+
"TRY",
|
|
192
|
+
"TMT",
|
|
193
|
+
"UGX",
|
|
194
|
+
"UAH",
|
|
195
|
+
"AED",
|
|
196
|
+
"USN",
|
|
197
|
+
"UYU",
|
|
198
|
+
"UYI",
|
|
199
|
+
"UYW",
|
|
200
|
+
"UZS",
|
|
201
|
+
"VUV",
|
|
202
|
+
"VES",
|
|
203
|
+
"VND",
|
|
204
|
+
"YER",
|
|
205
|
+
"ZMW",
|
|
206
|
+
"ZWL",
|
|
207
|
+
"XBA",
|
|
208
|
+
"XBB",
|
|
209
|
+
"XBC",
|
|
210
|
+
"XBD",
|
|
211
|
+
"XTS",
|
|
212
|
+
"XXX",
|
|
213
|
+
"XAU",
|
|
214
|
+
"XPD",
|
|
215
|
+
"XPT",
|
|
216
|
+
"XAG",
|
|
217
|
+
];
|
|
218
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/modules/order/OrderLabel/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC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;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACL,CAAC"}
|
|
@@ -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,c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,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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;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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@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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