@voplus/morpho-csp 1.2.111 → 1.2.113
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/components/RegisteresMenuItem/index.js +6 -2
- package/es/components/RegisteresMenuItem/index.js.map +1 -1
- package/es/data/controller/ControllerStore.d.ts +27 -0
- package/es/data/controller/ControllerStore.js +93 -0
- package/es/data/controller/ControllerStore.js.map +1 -0
- package/es/data/controller/hooks.js +19 -0
- package/es/data/controller/hooks.js.map +1 -0
- package/es/data/controller/index.js.map +1 -0
- package/es/data/controller/interfaces.d.ts +25 -0
- package/es/data/controller/interfaces.js.map +1 -0
- package/es/data/controller/types.d.ts +42 -0
- package/es/data/controller/types.js.map +1 -0
- package/es/data/incorporation-form/interfaces.d.ts +3 -0
- package/es/data/incorporation-form/types.d.ts +3 -0
- package/es/modules/corporate/clda/components/CLDADetails/index.js +1 -1
- package/es/modules/corporate/clda/components/CLDADetails/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAListView/index.js +2 -2
- package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
- package/es/modules/corporate/clda/components/NewCLDAForm/index.d.ts +1 -1
- package/es/modules/corporate/clda/components/NewCLDAForm/index.js +42 -25
- package/es/modules/corporate/clda/components/NewCLDAForm/index.js.map +1 -1
- package/es/modules/corporate/clda/components/NewCLDAForm/state.d.ts +13 -0
- package/es/modules/corporate/clda/components/NewCLDAForm/state.js +80 -0
- package/es/modules/corporate/clda/components/NewCLDAForm/state.js.map +1 -0
- package/es/modules/corporate/company/{officer/components → components}/CorporateOfficerSelect/index.js +1 -1
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js +60 -0
- package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerItem/index.d.ts +14 -0
- package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js +44 -0
- package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerItem/index.less +41 -0
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.d.ts +7 -0
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js +75 -0
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.less +15 -0
- package/es/modules/corporate/company/controller-register/components/ControllerList/state.d.ts +9 -0
- package/es/modules/corporate/company/controller-register/components/ControllerList/state.js +49 -0
- package/es/modules/corporate/company/controller-register/components/ControllerList/state.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +58 -0
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +51 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.d.ts +3 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.js +21 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/index.less +5 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.d.ts +11 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.js +35 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.js.map +1 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.d.ts +10 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.js +14 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.less +25 -0
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +21 -0
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +6 -0
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +2 -1
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +11 -3
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerInformation/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +7 -6
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/PositionSelect/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js +4 -2
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/state.d.ts +1 -0
- package/es/modules/corporate/company/pages/CompanyDefaultView/state.js +8 -0
- package/es/modules/corporate/company/pages/CompanyDefaultView/state.js.map +1 -1
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareMovementsDataIcon/index.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItem/index.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/index.d.ts +1 -1
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/index.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/index.js +3 -3
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/state.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/state.js.map +1 -0
- package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/Content.js +4 -4
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareholderSelector/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/state.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/state.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionDefaultView/index.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionDefaultView/index.less +1 -1
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -0
- package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.less +5 -2
- package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js +1 -1
- package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionList/index.js +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionList/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.d.ts +2 -0
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js +6 -4
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.d.ts +4 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.js +8 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/state.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.js +2 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.less +16 -0
- package/es/modules/self-registration/incorporation-form/components/InternalUse/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/components/InternalUse/index.js +45 -0
- package/es/modules/self-registration/incorporation-form/components/InternalUse/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/InternalUse/state.d.ts +9 -0
- package/es/modules/self-registration/incorporation-form/components/InternalUse/state.js +34 -0
- package/es/modules/self-registration/incorporation-form/components/InternalUse/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/index.js +50 -0
- package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/state.d.ts +9 -0
- package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/state.js +34 -0
- package/es/modules/self-registration/incorporation-form/components/ManagingDirectorList/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/NewSecretaryDialog/index.d.ts +9 -0
- package/es/modules/self-registration/incorporation-form/components/NewSecretaryDialog/index.js +94 -0
- package/es/modules/self-registration/incorporation-form/components/NewSecretaryDialog/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/SecretaryList/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/components/SecretaryList/index.js +50 -0
- package/es/modules/self-registration/incorporation-form/components/SecretaryList/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/SecretaryList/state.d.ts +9 -0
- package/es/modules/self-registration/incorporation-form/components/SecretaryList/state.js +34 -0
- package/es/modules/self-registration/incorporation-form/components/SecretaryList/state.js.map +1 -0
- package/es/{modules/corporate/company/officer-register/page → obsolete}/OfficerRegisterDefaultView/index.js +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.d.ts +8 -0
- package/es/{modules/corporate → obsolete}/controller-register/components/ControllerInformation/ControllerPropertiesView/index.js +1 -1
- package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerInformation/index.d.ts +11 -0
- package/es/{modules/corporate → obsolete}/controller-register/components/ControllerInformation/index.js +1 -1
- package/es/obsolete/controller-register/components/ControllerInformation/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerItem/index.js.map +1 -0
- package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/index.js +4 -4
- package/es/obsolete/controller-register/components/ControllerList/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerList/state.js.map +1 -0
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.d.ts +4 -0
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.js.map +1 -0
- package/es/obsolete/controllerRegister/ControllerStore.js.map +1 -0
- package/es/obsolete/controllerRegister/hooks.d.ts +10 -0
- package/es/obsolete/controllerRegister/hooks.js.map +1 -0
- package/es/obsolete/controllerRegister/index.d.ts +4 -0
- package/es/obsolete/controllerRegister/index.js +5 -0
- package/es/obsolete/controllerRegister/index.js.map +1 -0
- package/es/obsolete/controllerRegister/interfaces.js +2 -0
- package/es/obsolete/controllerRegister/interfaces.js.map +1 -0
- package/es/obsolete/controllerRegister/types.js +2 -0
- package/es/obsolete/controllerRegister/types.js.map +1 -0
- package/es/routes.js +4 -4
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/components/ShareTransactionPropertiesView/Content.js.map +0 -1
- package/es/components/ShareTransactionPropertiesView/index.js.map +0 -1
- package/es/data/controllerRegister/ControllerStore.js.map +0 -1
- package/es/data/controllerRegister/hooks.js.map +0 -1
- package/es/data/controllerRegister/index.js.map +0 -1
- package/es/data/controllerRegister/interfaces.js.map +0 -1
- package/es/data/controllerRegister/types.js.map +0 -1
- package/es/modules/corporate/company/officer/components/CorporateOfficerSelect/index.js.map +0 -1
- package/es/modules/corporate/company/officer/components/OfficerInformation/index.js.map +0 -1
- package/es/modules/corporate/company/officer/components/OfficerPropertiesView/index.js.map +0 -1
- package/es/modules/corporate/company/officer/components/PositionSelect/index.js.map +0 -1
- package/es/modules/corporate/company/officer/page/OfficerDefaultView/index.js.map +0 -1
- package/es/modules/corporate/company/officer-register/page/OfficerRegisterDefaultView/index.js.map +0 -1
- package/es/modules/corporate/controller-register/components/ControllerInformation/ControllerPropertiesView/index.js.map +0 -1
- package/es/modules/corporate/controller-register/components/ControllerInformation/index.js.map +0 -1
- package/es/modules/corporate/controller-register/components/ControllerItem/index.js.map +0 -1
- package/es/modules/corporate/controller-register/components/ControllerList/index.js.map +0 -1
- package/es/modules/corporate/controller-register/components/ControllerList/state.js.map +0 -1
- package/es/modules/corporate/controller-register/pages/ControllerDefaultView/index.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareMovementsDataIcon/index.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionItem/index.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionItems/index.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionList/index.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareTransactionList/state.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareholderSelector/index.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/components/ShareholderSelector/state.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/controls/TransactionTypeFilter/index.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/controls/TransactionTypeFilter/state.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +0 -1
- package/es/modules/legal-entity/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +0 -1
- /package/es/data/{controllerRegister → controller}/hooks.d.ts +0 -0
- /package/es/data/{controllerRegister → controller}/index.d.ts +0 -0
- /package/es/data/{controllerRegister → controller}/index.js +0 -0
- /package/es/data/{controllerRegister → controller}/interfaces.js +0 -0
- /package/es/data/{controllerRegister → controller}/types.js +0 -0
- /package/es/modules/corporate/company/{officer/components → components}/CorporateOfficerSelect/index.d.ts +0 -0
- /package/es/modules/corporate/{controller-register → company/controller-register}/components/ControllerInformation/index.d.ts +0 -0
- /package/es/modules/corporate/{controller-register/components/ControllerInformation → company/controller-register/components}/ControllerPropertiesView/index.d.ts +0 -0
- /package/es/modules/corporate/{controller-register/pages → company/controller-register/page}/ControllerDefaultView/index.d.ts +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerInformation/index.d.ts +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerInformation/index.js +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerPropertiesView/index.d.ts +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerPropertiesView/index.js +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/components/OfficerPropertiesView/index.less +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/components/PositionSelect/index.d.ts +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/components/PositionSelect/index.js +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/page/OfficerDefaultView/index.d.ts +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/page/OfficerDefaultView/index.js +0 -0
- /package/es/modules/corporate/company/{officer → officer-register}/page/OfficerDefaultView/index.less +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareMovementsDataIcon/index.js +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareMovementsDataIcon/index.less +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItem/index.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItem/index.less +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/TableDataContext.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/TableDataContext.js +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionItems/TableDragCell.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/index.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/index.less +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareTransactionList/state.js +0 -0
- /package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/Content.d.ts +0 -0
- /package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/index.d.ts +0 -0
- /package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/index.js +0 -0
- /package/es/{components → modules/corporate/company/share-transactions-register/components}/ShareTransactionPropertiesView/index.less +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareholderSelector/index.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareholderSelector/state.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/components/ShareholderSelector/state.js +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/index.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/index.js +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/index.less +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/state.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/controls/TransactionTypeFilter/state.js +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionDefaultView/index.d.ts +0 -0
- /package/es/modules/{legal-entity → corporate/company}/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.d.ts +0 -0
- /package/es/{modules/corporate/company/officer-register/page → obsolete}/OfficerRegisterDefaultView/index.d.ts +0 -0
- /package/es/{modules/corporate/company/officer-register/page → obsolete}/OfficerRegisterDefaultView/index.less +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerInformation/ControllerPropertiesView/index.less +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerItem/index.d.ts +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerItem/index.js +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerItem/index.less +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/index.d.ts +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/index.less +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/state.d.ts +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/components/ControllerList/state.js +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/pages/ControllerDefaultView/index.js +0 -0
- /package/es/{modules/corporate → obsolete}/controller-register/pages/ControllerDefaultView/index.less +0 -0
- /package/es/{data → obsolete}/controllerRegister/ControllerStore.d.ts +0 -0
- /package/es/{data → obsolete}/controllerRegister/ControllerStore.js +0 -0
- /package/es/{data → obsolete}/controllerRegister/hooks.js +0 -0
- /package/es/{data → obsolete}/controllerRegister/interfaces.d.ts +0 -0
- /package/es/{data → obsolete}/controllerRegister/types.d.ts +0 -0
|
@@ -3,7 +3,7 @@ import { useCorporate, useCorporateStore } from "../../data/corporate";
|
|
|
3
3
|
import { Menu, Popover, message } from "@voplus/antd";
|
|
4
4
|
import { NavMenuContext, NavMenuContextState, } from "@voplus/morpho-ui/es/components/layout/NavMenu/NavMenuContext";
|
|
5
5
|
import React, { useEffect, useState } from "react";
|
|
6
|
-
import { faHandsUsd, faRegistered, faUserEdit, faUserTag, faUsers, } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
+
import { faHandsUsd, faRegistered, faUserEdit, faUserTag, faUsers, faUserVneck, } from "@fortawesome/pro-light-svg-icons";
|
|
7
7
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import NavMenuItem from "@voplus/morpho-ui/es/components/layout/NavMenu/NavMenuItem";
|
|
9
9
|
import { State } from "./state";
|
|
@@ -21,6 +21,7 @@ const RegisteresMenuItem = (props) => {
|
|
|
21
21
|
"DirectorsInterest",
|
|
22
22
|
"UltimateBeneficiaryOwners",
|
|
23
23
|
"MembersRegister",
|
|
24
|
+
"ControllerRegister",
|
|
24
25
|
];
|
|
25
26
|
const [state] = useState(new State(register));
|
|
26
27
|
const store = useCorporateStore();
|
|
@@ -34,7 +35,8 @@ const RegisteresMenuItem = (props) => {
|
|
|
34
35
|
var _a;
|
|
35
36
|
return (React.createElement(Popover, { content: React.createElement(Menu, null, (_a = state.addRegister) === null || _a === void 0 ? void 0 : _a.map((item, index) => (React.createElement(Menu.Item, { key: index, disabled: item !== "OfficersRegister" &&
|
|
36
37
|
item !== "ShareTransactionsRegister" &&
|
|
37
|
-
item !== "MembersRegister"
|
|
38
|
+
item !== "MembersRegister" &&
|
|
39
|
+
item !== "ControllerRegister"
|
|
38
40
|
? true
|
|
39
41
|
: false, onClick: () => addClick(item) },
|
|
40
42
|
"Register of ",
|
|
@@ -69,6 +71,8 @@ const RegisteresMenuItem = (props) => {
|
|
|
69
71
|
return React.createElement(FAIcon, { icon: faUserTag });
|
|
70
72
|
case "MembersRegister":
|
|
71
73
|
return React.createElement(FAIcon, { icon: faUsers });
|
|
74
|
+
case "ControllerRegister":
|
|
75
|
+
return React.createElement(FAIcon, { icon: faUserVneck });
|
|
72
76
|
default:
|
|
73
77
|
return React.createElement(FAIcon, { icon: faRegistered });
|
|
74
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RegisteresMenuItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAc,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EACN,cAAc,EACd,mBAAmB,GACnB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,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YACjD,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;QACH,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,SAAS;YAAE,YAAY,CAAC,IAAI,CAAC,CAAC;QACnC,MAAA,KAAK,CAAC,gBAAgB,+CAAtB,KAAK,EAAoB,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,SAAS,OAAO,CAAC,IAAY;QAC5B,QAAQ,IAAI,EAAE;YACb,KAAK,2BAA2B;gBAC/B,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI,CAAC;YACrC,KAAK,kBAAkB;gBACtB,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC;YACpC,KAAK,iBAAiB;gBACrB,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,GAAI,CAAC;YAClC,KAAK,oBAAoB;gBACxB,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,CAAC;YACtC;gBACC,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI,CAAC;SACvC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ApiEndPoint } from "@voplus/api";
|
|
2
|
+
import { CountedMap, Store } from "@voplus/morpho-data";
|
|
3
|
+
import { CreateControllerOptions, DeleteControllerOptions, EditControllerOptions, LoadControllerOptions } from "./types";
|
|
4
|
+
import { IController } from "./interfaces";
|
|
5
|
+
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
6
|
+
/** Quotation store supply backend functions. */
|
|
7
|
+
export declare class ControllerStore extends Store {
|
|
8
|
+
readonly endpoint: ApiEndPoint;
|
|
9
|
+
/** Name of the store */
|
|
10
|
+
readonly name: string;
|
|
11
|
+
constructor(endpoint: ApiEndPoint);
|
|
12
|
+
/** All currently used corporate. */
|
|
13
|
+
readonly items: CountedMap<string, IController>;
|
|
14
|
+
/** Create a new Identity. */
|
|
15
|
+
create(options: CreateControllerOptions): Promise<IController>;
|
|
16
|
+
/** Edit an existing item on server. */
|
|
17
|
+
edit(id: string, options: EditControllerOptions): Promise<void>;
|
|
18
|
+
/** controller 內有文件不能delete */
|
|
19
|
+
delete(ids: string[], options?: DeleteControllerOptions): Promise<any>;
|
|
20
|
+
/** Load a list of documents from server.
|
|
21
|
+
* @param {LoadDocumentListOptions}
|
|
22
|
+
*/
|
|
23
|
+
loadList(options?: LoadDocumentListOptions): Promise<IController[]>;
|
|
24
|
+
load(id: string, options: LoadControllerOptions): Promise<IController>;
|
|
25
|
+
}
|
|
26
|
+
/** 响应钩子检索 IdentityStore */
|
|
27
|
+
export declare const useControllerStore: () => ControllerStore;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { RequestBuilder } from "@voplus/api";
|
|
2
|
+
import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
|
|
3
|
+
import { observable } from "mobx";
|
|
4
|
+
const StoreName = "ControllerStore";
|
|
5
|
+
/** Quotation store supply backend functions. */
|
|
6
|
+
export class ControllerStore extends Store {
|
|
7
|
+
constructor(endpoint) {
|
|
8
|
+
super();
|
|
9
|
+
Object.defineProperty(this, "endpoint", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true,
|
|
13
|
+
value: endpoint
|
|
14
|
+
});
|
|
15
|
+
/** Name of the store */
|
|
16
|
+
Object.defineProperty(this, "name", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: StoreName
|
|
21
|
+
});
|
|
22
|
+
/** All currently used corporate. */
|
|
23
|
+
Object.defineProperty(this, "items", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/** Create a new Identity. */
|
|
31
|
+
async create(options) {
|
|
32
|
+
// invariant(options.name, "Name cannot be empty.");
|
|
33
|
+
return await this.action(async () => {
|
|
34
|
+
const r = await this.endpoint.post(`/api/controllers/create`, new RequestBuilder().json(options.data));
|
|
35
|
+
const t = (await r.json());
|
|
36
|
+
return t;
|
|
37
|
+
}, options);
|
|
38
|
+
}
|
|
39
|
+
/** Edit an existing item on server. */
|
|
40
|
+
async edit(id, options) {
|
|
41
|
+
await this.action(async () => {
|
|
42
|
+
const r = await this.endpoint.post(`/api/controllers/${id}`, new RequestBuilder().json(options.data));
|
|
43
|
+
const t = await r.json();
|
|
44
|
+
this.items.overwrite(t.id, t);
|
|
45
|
+
}, options);
|
|
46
|
+
}
|
|
47
|
+
/** controller 內有文件不能delete */
|
|
48
|
+
async delete(ids, options) {
|
|
49
|
+
return await this.action(async () => {
|
|
50
|
+
await this.endpoint.delete(`/api/controllers/delete`, new RequestBuilder().json({ Ids: ids, Options: options === null || options === void 0 ? void 0 : options.data }));
|
|
51
|
+
const deleted = [];
|
|
52
|
+
for (const id of ids) {
|
|
53
|
+
const item = this.items.peek(id);
|
|
54
|
+
if (item) {
|
|
55
|
+
deleted.push(item);
|
|
56
|
+
item.status = "Deleted";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return deleted;
|
|
60
|
+
}, options);
|
|
61
|
+
}
|
|
62
|
+
/** Load a list of documents from server.
|
|
63
|
+
* @param {LoadDocumentListOptions}
|
|
64
|
+
*/
|
|
65
|
+
async loadList(options) {
|
|
66
|
+
let query = "";
|
|
67
|
+
if (options === null || options === void 0 ? void 0 : options.Includes) {
|
|
68
|
+
query = query.concat(`includes=${options.Includes}`);
|
|
69
|
+
}
|
|
70
|
+
if (query)
|
|
71
|
+
query = "?".concat(query);
|
|
72
|
+
const r = await this.endpoint.post(`/api/controllers${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
|
|
73
|
+
return (await r.json());
|
|
74
|
+
}
|
|
75
|
+
async load(id, options) {
|
|
76
|
+
let query = "";
|
|
77
|
+
if (options.includes)
|
|
78
|
+
query = query.concat(`includes=${options.includes}`);
|
|
79
|
+
if (query)
|
|
80
|
+
query = "?".concat(query);
|
|
81
|
+
const r = await this.endpoint.get(`/api/controllers/${id}${query}`);
|
|
82
|
+
return await r.json();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** 响应钩子检索 IdentityStore */
|
|
86
|
+
export const useControllerStore = () => {
|
|
87
|
+
const context = useApplicationContext();
|
|
88
|
+
if (!context.getStore(StoreName)) {
|
|
89
|
+
context.addStore(new ControllerStore(context.api.currentEndPoint));
|
|
90
|
+
}
|
|
91
|
+
return context.getStore(StoreName);
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=ControllerStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerStore.js","sourceRoot":"","sources":["../../../src/data/controller/ControllerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAS/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,SAAS,GAAG,iBAAiB,CAAC;AAEpC,gDAAgD;AAChD,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAIzC,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;;;;;mBAD0B;;QAHnC,wBAAwB;QACxB;;;;mBAA+B,SAAS;WAAC;QAMzC,oCAAoC;QACpC;;;;mBAAyD,IAAI,UAAU,CACtE,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAkB,CAAA,EAC5D,UAAU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AO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3E,IAAI,KAAK;YAAE,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QACpE,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACD;AAED,2BAA2B;AAC3B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACtC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KACnE;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB,CAAC;AACxD,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useDocumentListLoaderEffect } from "@voplus/morpho-document-core";
|
|
2
|
+
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
3
|
+
import { useControllerStore } from "./ControllerStore";
|
|
4
|
+
/** React hook to retrieve a controller
|
|
5
|
+
* @param {string} id - id of the controller
|
|
6
|
+
* @param {LoadDocumentOptions} options - options
|
|
7
|
+
*/
|
|
8
|
+
export const useController = (id, options) => {
|
|
9
|
+
options = options ? options : {};
|
|
10
|
+
const store = useControllerStore();
|
|
11
|
+
return useLoadCountedMapItem(id, store.items, () => store.load(id, options), options);
|
|
12
|
+
};
|
|
13
|
+
export const useControllerListEffect = (list, effect, options) => {
|
|
14
|
+
const deps = options ? options : {};
|
|
15
|
+
const controller = useControllerStore();
|
|
16
|
+
// Call useDocumentListEffect and ensure won't load twice for same loading options.
|
|
17
|
+
return useDocumentListLoaderEffect(list, effect, () => controller.loadList(options), [deps]);
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/controller/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAKpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAU,EAAE,OAA+B,EAAE,EAAE;IAC5E,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA4B,CAAC;IAC5D,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,OAAO,qBAAqB,CAC3B,EAAE,EACF,KAAK,CAAC,KAAK,EACX,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACQ,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACtC,IAA8C,EAC9C,MAA6B,EAC7B,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,UAAU,GAAG,kBAAkB,EAAE,CAAC;IAExC,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/controller/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ILoadable } from "@voplus/morpho-data";
|
|
2
|
+
export interface IController extends ILoadable {
|
|
3
|
+
/** id of corporate */
|
|
4
|
+
id: string;
|
|
5
|
+
contact: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
};
|
|
11
|
+
identity?: {
|
|
12
|
+
id: string;
|
|
13
|
+
fullName: string;
|
|
14
|
+
};
|
|
15
|
+
/** */
|
|
16
|
+
status: string;
|
|
17
|
+
confimrationDate: Date;
|
|
18
|
+
confirmationStatus: string;
|
|
19
|
+
/** Register id of the new controller */
|
|
20
|
+
appointment: Date;
|
|
21
|
+
/** resign/termination date of the controller */
|
|
22
|
+
cease: Date;
|
|
23
|
+
email?: string;
|
|
24
|
+
phone?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/controller/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
|
|
2
|
+
import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { IController } from "./interfaces";
|
|
4
|
+
export declare type ConfirmationStatus = "Unconfirmed" | "ConfirmedController" | "ConfirmedNotController";
|
|
5
|
+
/** Custom load controller options type */
|
|
6
|
+
export declare type LoadControllerOptions = {
|
|
7
|
+
/** Comma separated include options e.g. path */
|
|
8
|
+
includes?: string;
|
|
9
|
+
} & LoadOptions<IController>;
|
|
10
|
+
export declare type CreateControllerDataOptions = {
|
|
11
|
+
/** Register id of the new controller */
|
|
12
|
+
RegisterId: string;
|
|
13
|
+
/** unit id of the controller */
|
|
14
|
+
UnitId: string;
|
|
15
|
+
/** position of the new controller */
|
|
16
|
+
Position?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type EditControllerDataOptions = {
|
|
19
|
+
/** Gets the confirmation status of the controller. */
|
|
20
|
+
ConfirmationStatus?: ConfirmationStatus;
|
|
21
|
+
/**Gets the confirmation date of the controller. */
|
|
22
|
+
ConfimrationDate?: string;
|
|
23
|
+
/** Gets the commerence date of the controller. */
|
|
24
|
+
Appointment?: Date;
|
|
25
|
+
/** resign/termination date of the controller */
|
|
26
|
+
Cease?: Date;
|
|
27
|
+
/**Gets the phone of the controller*/
|
|
28
|
+
Phone?: string;
|
|
29
|
+
/**Gets the email of the controller*/
|
|
30
|
+
Email?: string;
|
|
31
|
+
/**Gets the identity id of the Controller*/
|
|
32
|
+
IdentityId?: string;
|
|
33
|
+
};
|
|
34
|
+
export declare type CreateControllerOptions = {
|
|
35
|
+
data: CreateControllerDataOptions;
|
|
36
|
+
} & StoreActionOptions;
|
|
37
|
+
export declare type EditControllerOptions = {
|
|
38
|
+
data: EditControllerDataOptions;
|
|
39
|
+
} & StoreActionOptions;
|
|
40
|
+
export declare type DeleteControllerOptions = {
|
|
41
|
+
data?: DeleteDocumentOptions;
|
|
42
|
+
} & StoreActionOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/controller/types.ts"],"names":[],"mappings":""}
|
|
@@ -30,6 +30,9 @@ export interface IFormContent {
|
|
|
30
30
|
fye?: string;
|
|
31
31
|
contacts?: IFormPeopleOptions[];
|
|
32
32
|
officerIds?: string[];
|
|
33
|
+
secretaryIds?: string[];
|
|
34
|
+
managingDirectorIds?: string[];
|
|
35
|
+
useNomineeDirector?: boolean;
|
|
33
36
|
shareholders?: IShareholderOptions[];
|
|
34
37
|
address: IAddress | null;
|
|
35
38
|
/** Officers,members等改好就移除 */
|
|
@@ -27,6 +27,9 @@ export declare type EditIncorporationFormOptions = {
|
|
|
27
27
|
FYE?: string;
|
|
28
28
|
contacts?: IFormPeopleOptions[];
|
|
29
29
|
officerIds?: string[];
|
|
30
|
+
SecretaryIds?: string[];
|
|
31
|
+
ManagingDirectorIds?: string[];
|
|
32
|
+
UseNomineeDirector?: boolean;
|
|
30
33
|
shareholders?: IShareholderOptions[];
|
|
31
34
|
/** list of members */
|
|
32
35
|
officers?: IFormPeopleOptions[];
|
|
@@ -4,7 +4,7 @@ import React, { useState } from "react";
|
|
|
4
4
|
import { useCLDA, useCLDAStore } from "../../../../../data/CLDA";
|
|
5
5
|
import { InlineEdit } from "@voplus/morpho-ui";
|
|
6
6
|
import Scrollbars from "react-custom-scrollbars";
|
|
7
|
-
import ShareholderSelector from "
|
|
7
|
+
import ShareholderSelector from "../../../company/share-transactions-register/components/ShareholderSelector";
|
|
8
8
|
import { observe } from "@voplus/morpho-ui";
|
|
9
9
|
import { useLayout } from "@voplus/morpho-data";
|
|
10
10
|
const CLDADetails = (props) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDADetails/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAS,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,mBAAmB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDADetails/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,IAAI,EAA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CAClD,CACE,CACI,CACjB,CACK,CACK,CACb,CAAA;KAAA,CAAC,CAAC;IAEH,sBAAsB;IACtB,SAAS,gBAAgB,CAAC,KAAa;;QACtC,IAAI,CAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,UAAU,CAAC,IAAI,EAAE,MAAK,KAAK,EAAE;YAC/C,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;SACpF;IACF,CAAC;AACF,CAAC,CAAC;AAEF,WAAW,CAAC,YAAY,GAAG;IAC1B,aAAa,EAAE,IAAI;CACnB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -93,13 +93,13 @@ const CLDAList = (props) => {
|
|
|
93
93
|
onAdd: onAdd,
|
|
94
94
|
},
|
|
95
95
|
// formViewTitle="Add CLDA Form"
|
|
96
|
-
formView: openNewFormMode === "openAside" && (React.createElement(NewCLDAForm, { parentId: state.id, showView: true, secretaryCenterId: secretaryCenterId
|
|
96
|
+
formView: openNewFormMode === "openAside" && (React.createElement(NewCLDAForm, { parentId: state.id, showView: true, secretaryCenterId: secretaryCenterId, onCancel: () => (state.isAdd = false) })), renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
|
|
97
97
|
var _a;
|
|
98
98
|
setActiveId(item.id);
|
|
99
99
|
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
|
100
100
|
} },
|
|
101
101
|
React.createElement(CLDAItem, { id: item.id }))) }),
|
|
102
|
-
addAble && (React.createElement(NewCLDAForm, { parentId: state.id, openMode: "openBottom", secretaryCenterId: secretaryCenterId
|
|
102
|
+
addAble && (React.createElement(NewCLDAForm, { parentId: state.id, openMode: "openBottom", secretaryCenterId: secretaryCenterId, onCancel: () => setAddAble(false) }))))));
|
|
103
103
|
function onAdd() {
|
|
104
104
|
if (openNewFormMode === "openBottom")
|
|
105
105
|
setAddAble(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,EAAS,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAa,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,YAAY,MAAM,sEAAsE,CAAC;AAChG,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IACzC,MAAM,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,eAAe,EACf,WAAW,EACX,YAAY,EACZ,SAAS,EACT,eAAe,EACf,KAAK,EACL,UAAU,EACV,iBAAi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AQ,EAAE,KAAK,CAAC,EAAG,EACnB,QAAQ,QACR,iBAAiB,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,EAAS,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAa,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,YAAY,MAAM,sEAAsE,CAAC;AAChG,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IACzC,MAAM,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,eAAe,EACf,WAAW,EACX,YAAY,EACZ,SAAS,EACT,eAAe,EACf,KAAK,EACL,UAAU,EACV,iBAAiB,GACjB,GAAG,KAAK,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AE,CAAC;YACd,CAAC,EAAE,IAAI,CAAC,CAAC;QACV,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,SAAS,WAAW;QACnB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC7B,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,8BAA8B;QAC9B,4DAA4D;QAC5D,qBAAqB;QACrB,MAAM;QACN,yBAAyB;IAC1B,CAAC;AACF,CAAC,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACvB,UAAU,EAAE,IAAI;IAChB,eAAe,EAAE,WAAW;IAC5B,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,yCAAyC;CAChD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -5,33 +5,50 @@ import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
|
|
|
5
5
|
import NewIncorporationCLDAForm from "../../../../self-registration/incorporation-clda/components/NewIncorporationCLDAForm";
|
|
6
6
|
import { observe } from "@voplus/morpho-ui";
|
|
7
7
|
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
8
|
+
import { useCenterListEffect } from "@voplus/morpho-center-core/es/data";
|
|
9
|
+
import { runInAction } from "mobx";
|
|
10
|
+
import { State } from "./state";
|
|
8
11
|
const NewCLDAForm = (props) => {
|
|
9
12
|
const { Option } = Select;
|
|
10
13
|
const { parentId, secretaryCenterId, openMode } = props;
|
|
11
14
|
const asideContext = useAsideContentContext();
|
|
12
|
-
const [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
const [state] = useState(new State());
|
|
16
|
+
useCLDAMetaListEffect(null, (result) => runInAction(() => (state.list = result)), {});
|
|
17
|
+
useCenterListEffect(null, (result, total) => {
|
|
18
|
+
runInAction(() => {
|
|
19
|
+
state.center = result;
|
|
20
|
+
state.centerTotal = total || 0;
|
|
21
|
+
if (secretaryCenterId) {
|
|
22
|
+
state.secretaryCenterId = secretaryCenterId;
|
|
23
|
+
}
|
|
24
|
+
else if (total === 1) {
|
|
25
|
+
state.secretaryCenterId = result[0].id;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}, {
|
|
29
|
+
Total: true,
|
|
30
|
+
Filters: [{ c: "NodeType", o: "=", l: "And", v1: "SecretaryCenter" }],
|
|
31
|
+
});
|
|
32
|
+
return observe(() => {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
return openMode === "openAside" ? (React.createElement("div", { style: { height: "100%" } },
|
|
35
|
+
state.formVisible && (React.createElement(AddFormView, { title: "Add CLDA Form", okText: "Next", onCancel: onCancel, onSubmit: onNext },
|
|
36
|
+
React.createElement(Form, null,
|
|
37
|
+
React.createElement(Form.Item, { label: "Meta" },
|
|
38
|
+
React.createElement(Select, { placeholder: "please select CLDA Meta!", onChange: handleChange }, (_a = state.list) === null || _a === void 0 ? void 0 : _a.map((item) => (React.createElement(Option, { key: item.id, value: item.key }, item.name)))))))),
|
|
39
|
+
state.INCFormVisible && (React.createElement(NewIncorporationCLDAForm, { parentId: parentId, metaId: state.metaId, centerTotal: state.centerTotal, secretaryCenterId: state.secretaryCenterId, onCancel: onCancel, onSave: onCancel })))) : (React.createElement("div", { style: { padding: "10px 20px 0 20px", background: "#fff" } },
|
|
40
|
+
state.formVisible && (React.createElement(Form, null,
|
|
21
41
|
React.createElement(Form.Item, { label: "Meta" },
|
|
22
|
-
React.createElement(Select, { placeholder: "please select CLDA Meta!", onChange: handleChange }, list === null ||
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
React.createElement(
|
|
28
|
-
|
|
29
|
-
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
30
|
-
React.createElement(Button, { type: "primary", onClick: onNext }, "Next"))))),
|
|
31
|
-
INCFormVisible && (React.createElement(NewIncorporationCLDAForm, { openMode: "openBottom", parentId: parentId, metaId: metaId, secretaryCenterId: secretaryCenterId, onCancel: onCancel, onSave: onCancel })))));
|
|
42
|
+
React.createElement(Select, { placeholder: "please select CLDA Meta!", onChange: handleChange }, (_b = state.list) === null || _b === void 0 ? void 0 : _b.map((item) => (React.createElement(Option, { key: item.id, value: item.key }, item.name))))),
|
|
43
|
+
React.createElement(Row, { justify: "end" },
|
|
44
|
+
React.createElement(Space, null,
|
|
45
|
+
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
46
|
+
React.createElement(Button, { type: "primary", onClick: onNext }, "Next"))))),
|
|
47
|
+
state.INCFormVisible && (React.createElement(NewIncorporationCLDAForm, { openMode: "openBottom", parentId: parentId, metaId: state.metaId, centerTotal: state.centerTotal, secretaryCenterId: state.secretaryCenterId, onCancel: onCancel, onSave: onCancel }))));
|
|
48
|
+
});
|
|
32
49
|
function handleChange(value, option) {
|
|
33
|
-
|
|
34
|
-
|
|
50
|
+
state.metaKey = value;
|
|
51
|
+
state.metaId = option.key;
|
|
35
52
|
}
|
|
36
53
|
function onCancel() {
|
|
37
54
|
if (props.showView)
|
|
@@ -40,11 +57,11 @@ const NewCLDAForm = (props) => {
|
|
|
40
57
|
props.onCancel();
|
|
41
58
|
}
|
|
42
59
|
function onNext() {
|
|
43
|
-
if (!metaKey)
|
|
60
|
+
if (!state.metaKey)
|
|
44
61
|
return message.warn("clda meta can not be empty!");
|
|
45
|
-
if (metaKey === "INC")
|
|
46
|
-
|
|
47
|
-
|
|
62
|
+
if (state.metaKey === "INC")
|
|
63
|
+
state.INCFormVisible = true;
|
|
64
|
+
state.formVisible = false;
|
|
48
65
|
return;
|
|
49
66
|
}
|
|
50
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/NewCLDAForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/NewCLDAForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,wBAAwB,MAAM,sFAAsF,CAAC;AAC5H,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,GAAG,CAAC,KAUpB,EAAE,EAAE;IACJ,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACxD,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,qBAAqB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAA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M,EACpB,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,EAC1C,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,QAAQ,GACf,CACF,CACI,CACN,CAAA;KAAA,CACD,CAAC;IAEF,SAAS,YAAY,CAAC,KAAU,EAAE,MAAW;QAC5C,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC;IAC3B,CAAC;IAED,SAAS,QAAQ;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;IAED,SAAS,MAAM;QACd,IAAI,CAAC,KAAK,CAAC,OAAO;YAAE,OAAO,OAAO,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;QACvE,IAAI,KAAK,CAAC,OAAO,KAAK,KAAK;YAAE,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;QACzD,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;QAC1B,OAAO;IACR,CAAC;AACF,CAAC,CAAC;AAEF,WAAW,CAAC,YAAY,GAAG;IAC1B,QAAQ,EAAE,WAAW;CACrB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ICenter } from "@voplus/morpho-center-core/es/data";
|
|
2
|
+
import { ICLDAMeta } from "../../../../../data/clda-meta";
|
|
3
|
+
export declare class State {
|
|
4
|
+
center: ICenter[];
|
|
5
|
+
centerTotal: number;
|
|
6
|
+
secretaryCenterId: string;
|
|
7
|
+
list: ICLDAMeta[];
|
|
8
|
+
metaId: string;
|
|
9
|
+
metaKey: string;
|
|
10
|
+
formVisible: boolean;
|
|
11
|
+
INCFormVisible: boolean;
|
|
12
|
+
constructor();
|
|
13
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
Object.defineProperty(this, "center", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: []
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "centerTotal", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: 0
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "secretaryCenterId", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: ""
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(this, "list", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: []
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(this, "metaId", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true,
|
|
33
|
+
value: ""
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(this, "metaKey", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true,
|
|
38
|
+
writable: true,
|
|
39
|
+
value: ""
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(this, "formVisible", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(this, "INCFormVisible", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
configurable: true,
|
|
50
|
+
writable: true,
|
|
51
|
+
value: false
|
|
52
|
+
});
|
|
53
|
+
makeObservable(this);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
__decorate([
|
|
57
|
+
observable
|
|
58
|
+
], State.prototype, "center", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
observable
|
|
61
|
+
], State.prototype, "centerTotal", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
observable
|
|
64
|
+
], State.prototype, "secretaryCenterId", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
observable
|
|
67
|
+
], State.prototype, "list", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
observable
|
|
70
|
+
], State.prototype, "metaId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
observable
|
|
73
|
+
], State.prototype, "metaKey", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
observable
|
|
76
|
+
], State.prototype, "formVisible", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
observable
|
|
79
|
+
], State.prototype, "INCFormVisible", void 0);
|
|
80
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/NewCLDAForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlD,MAAM,OAAO,KAAK;IAWjB;QAVY;;;;mBAA2B,EAAE;WAAC;QAC9B;;;;mBAAqB,CAAC;WAAC;QACvB;;;;mBAAmC,EAAE;WAAC;QAEtC;;;;mBAAoB,EAAE;WAAC;QACvB;;;;mBAAiB,EAAE;WAAC;QACpB;;;;mBAAkB,EAAE;WAAC;QACrB;;;;mBAAc,IAAI;WAAC;QACnB;;;;mBAAiB,KAAK;WAAC;QAGlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACD;AAbY;IAAX,UAAU;qCAA+B;AAC9B;IAAX,UAAU;0CAAwB;AACvB;IAAX,UAAU;gDAAuC;AAEtC;IAAX,UAAU;mCAAwB;AACvB;IAAX,UAAU;qCAAqB;AACpB;IAAX,UAAU;sCAAsB;AACrB;IAAX,UAAU;0CAAoB;AACnB;IAAX,UAAU;6CAAwB"}
|