@voplus/morpho-csp 11.1.1 → 11.2.1
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/CorporateNavMenu/CorporateNavMenu.js +2 -4
- package/es/components/CorporateNavMenu/CorporateNavMenu.js.map +1 -1
- package/es/components/CorporateNavMenu/NavMenuItem.js +2 -2
- package/es/components/CorporateNavMenu/NavMenuItem.js.map +1 -1
- package/es/components/CorporateNavMenu/index.js +2 -4
- package/es/components/CorporateNavMenu/index.js.map +1 -1
- package/es/components/CorporateUnitSelectDialog/state.js +4 -12
- package/es/components/CorporateUnitSelectDialog/state.js.map +1 -1
- package/es/components/RegisteresMenuItem/index.js +2 -4
- package/es/components/RegisteresMenuItem/index.js.map +1 -1
- package/es/data/cart/hooks.js.map +1 -1
- package/es/data/clda/hooks.js.map +1 -1
- package/es/data/clda/store.js +1 -1
- package/es/data/clda/store.js.map +1 -1
- package/es/data/clda-form/hooks.d.ts +1 -1
- package/es/data/clda-form/hooks.js.map +1 -1
- package/es/data/clda-meta/hook.js.map +1 -1
- package/es/data/clda-meta/store.js.map +1 -1
- package/es/data/clda-setting/hook.js.map +1 -1
- package/es/data/clda-setting/index.js.map +1 -1
- package/es/data/clda-setting/store.js.map +1 -1
- package/es/data/controller/ControllerStore.js.map +1 -1
- package/es/data/controller/hooks.js.map +1 -1
- package/es/data/corporate/CorporateStore.js.map +1 -1
- package/es/data/corporate/hooks.js.map +1 -1
- package/es/data/corporate/interfaces.d.ts +1 -1
- package/es/data/entity/EntityStore.js.map +1 -1
- package/es/data/entity/hooks.js.map +1 -1
- package/es/data/filing-record/FilingRecordStore.js.map +1 -1
- package/es/data/filing-record/filing-record-events/useOnDeleteFilingRecore.js.map +1 -1
- package/es/data/filing-record/filing-record-events/useOnNewFilingRecore.js.map +1 -1
- package/es/data/filing-record/hooks.js.map +1 -1
- package/es/data/filing-type/FilingTypeStore.js.map +1 -1
- package/es/data/filing-type/filing-type-events/useOnDeleteFilingType.js.map +1 -1
- package/es/data/filing-type/filing-type-events/useOnNewFilingType.js.map +1 -1
- package/es/data/filing-type/hooks.js.map +1 -1
- package/es/data/filing-year/FilingYearStore.js.map +1 -1
- package/es/data/filing-year/filing-year-events/useOnDeleteFilingYear.js.map +1 -1
- package/es/data/filing-year/filing-year-events/useOnNewFilingYear.js.map +1 -1
- package/es/data/filing-year/hooks.js.map +1 -1
- package/es/data/incorporation-clda/hooks.d.ts +1 -1
- package/es/data/incorporation-clda/hooks.js.map +1 -1
- package/es/data/incorporation-clda/store.js.map +1 -1
- package/es/data/incorporation-clda/types.d.ts +1 -1
- package/es/data/member/MemberStore.js.map +1 -1
- package/es/data/member/hooks.js.map +1 -1
- package/es/data/officer/OfficerStore.js.map +1 -1
- package/es/data/officer/hooks.js.map +1 -1
- package/es/data/order/hooks.d.ts +1 -1
- package/es/data/order/hooks.js.map +1 -1
- package/es/data/relationship/RelationshipStore.js.map +1 -1
- package/es/data/relationship/hooks.js.map +1 -1
- package/es/data/risk-match/RiskMatchStore.js +1 -1
- package/es/data/risk-match/RiskMatchStore.js.map +1 -1
- package/es/data/risk-match/hooks.js.map +1 -1
- package/es/data/risk-match/risk-match-events/useOnDeleteRiskMatch.js.map +1 -1
- package/es/data/risk-match/risk-match-events/useOnNewRiskMatch.js.map +1 -1
- package/es/data/risk-profile/RiskProfileStore.js +1 -1
- package/es/data/risk-profile/RiskProfileStore.js.map +1 -1
- package/es/data/risk-profile/hooks.js.map +1 -1
- package/es/data/risk-profile/risk-profile-events/useOnDeleteRiskProfile.js.map +1 -1
- package/es/data/risk-profile/risk-profile-events/useOnNewRiskProfile.js.map +1 -1
- package/es/data/service/hooks.js.map +1 -1
- package/es/data/service/store.js.map +1 -1
- package/es/data/serviceType/hooks.js.map +1 -1
- package/es/data/serviceType/store.js.map +1 -1
- package/es/data/share-certificate/hooks.js.map +1 -1
- package/es/data/share-certificate/types.d.ts +1 -1
- package/es/data/share-class/ShareClassStore.js.map +1 -1
- package/es/data/share-class/hook.js.map +1 -1
- package/es/data/share-class/share-class-events/useOnDeleteShareClass.js.map +1 -1
- package/es/data/share-transaction/hooks.js.map +1 -1
- package/es/data/shareOptionsRegister/hooks.js.map +1 -1
- package/es/data/virtual-address/VirtualAddressStore.js.map +1 -1
- package/es/data/virtual-address/hook.js.map +1 -1
- package/es/data/virtual-address-mail/VirtualAddressMailStore.js.map +1 -1
- package/es/data/virtual-address-mail/hook.js.map +1 -1
- package/es/data/virtual-address-mail/metas.js.map +1 -1
- package/es/data/virtual-address-mail/types.d.ts +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/index.js +3 -3
- package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.js +3 -5
- package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.js +4 -4
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfilePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.js +1 -3
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.js +2 -4
- package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDADetails/index.js +2 -5
- 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/CLDAOverview/index.js +1 -1
- package/es/modules/corporate/clda/components/CLDAOverview/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAProperties/index.js +1 -1
- package/es/modules/corporate/clda/components/CLDAProperties/index.js.map +1 -1
- package/es/modules/corporate/clda/components/NewCLDAForm/index.js +2 -2
- package/es/modules/corporate/clda/components/NewCLDAForm/index.js.map +1 -1
- package/es/modules/corporate/clda/controls/CLDAMenu/index.js +1 -1
- package/es/modules/corporate/clda/controls/CLDAMenu/index.js.map +1 -1
- package/es/modules/corporate/clda/controls/CLDAMenu/items/DownloadLegal.js +3 -6
- package/es/modules/corporate/clda/controls/CLDAMenu/items/DownloadLegal.js.map +1 -1
- package/es/modules/corporate/clda/controls/CLDAMenu/items/GenerateLegalEnvelope.js +3 -6
- package/es/modules/corporate/clda/controls/CLDAMenu/items/GenerateLegalEnvelope.js.map +1 -1
- package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.js +4 -7
- package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.js.map +1 -1
- package/es/modules/corporate/clda/controls/CLDAStatusButton/index.js.map +1 -1
- package/es/modules/corporate/clda/controls/filters/CLDASigningModeFilter/state.js +1 -6
- package/es/modules/corporate/clda/controls/filters/CLDASigningModeFilter/state.js.map +1 -1
- package/es/modules/corporate/clda/controls/filters/CLDAStatusFilter/state.js +1 -6
- package/es/modules/corporate/clda/controls/filters/CLDAStatusFilter/state.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.js +1 -1
- package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAClientView/components/DigitalSigningStep/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAClientView/components/PhysicalPreparationStep/index.js +1 -1
- package/es/modules/corporate/clda/pages/CLDAClientView/components/PhysicalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAListPage/Content/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDASettingsPage/Content.js +2 -2
- package/es/modules/corporate/clda/pages/CLDASettingsPage/Content.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDASettingsPage/index.js +2 -2
- package/es/modules/corporate/clda/pages/CLDASettingsPage/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyAlert/index.js +3 -2
- package/es/modules/corporate/company/components/CompanyAlert/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyMemberSelect/index.js +1 -1
- package/es/modules/corporate/company/components/CompanyMemberSelect/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyPageHead/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js +7 -11
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateHead/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateItem/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateList/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js +1 -1
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateTableList/TableCell.js +1 -1
- package/es/modules/corporate/company/components/CorporateTableList/TableCell.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateTabs/index.js +1 -3
- package/es/modules/corporate/company/components/CorporateTabs/index.js.map +1 -1
- package/es/modules/corporate/company/components/InlineEditType/index.js +1 -1
- package/es/modules/corporate/company/components/InlineEditType/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js +3 -6
- package/es/modules/corporate/company/controller-register/components/ControllerInformation/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +5 -8
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +2 -2
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js +1 -2
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js +1 -1
- package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/SelectControllerSendForm/index.js +4 -4
- package/es/modules/corporate/company/controller-register/components/SelectControllerSendForm/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.js +1 -6
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusFilter/state.js.map +1 -1
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js.map +1 -1
- package/es/modules/corporate/company/controls/CorporateStatusFilter/state.js +1 -6
- package/es/modules/corporate/company/controls/CorporateStatusFilter/state.js.map +1 -1
- package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step1.js +1 -1
- package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step1.js.map +1 -1
- package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.js +1 -1
- package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page1.js +2 -2
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page1.js.map +1 -1
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.js +1 -1
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +2 -4
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js +1 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/index.js +1 -1
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js +2 -2
- package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js +2 -2
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +46 -46
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/SelectMemberSendForm/index.js +4 -4
- package/es/modules/corporate/company/member-register/components/SelectMemberSendForm/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/controls/MemberStatusFilter/state.js +1 -6
- package/es/modules/corporate/company/member-register/controls/MemberStatusFilter/state.js.map +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerInformation/index.js +2 -2
- package/es/modules/corporate/company/officer-register/components/OfficerInformation/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +4 -6
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js +2 -2
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +55 -55
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.js +1 -2
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/PositionSelect/index.js +1 -1
- package/es/modules/corporate/company/officer-register/components/PositionSelect/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.js +4 -4
- package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusFilter/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/RegisterTablePage/index.js +6 -10
- package/es/modules/corporate/company/pages/RegisterTablePage/index.js.map +1 -1
- package/es/modules/corporate/company/share-transaction-convert/ShareTransactionConvertTable.js.map +1 -1
- package/es/modules/corporate/company/share-transaction-convert/index.js +1 -3
- package/es/modules/corporate/company/share-transaction-convert/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/CertCancelCreateDialog/Step1.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/CertCancelCreateDialog/Step1.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +8 -8
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/state.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/state.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +5 -5
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +3 -3
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/SharesText.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/SharesText.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +1 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/state.js +1 -6
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/state.js.map +1 -1
- package/es/modules/corporate/components/CorporateSelect/index.js +1 -1
- package/es/modules/corporate/components/CorporateSelect/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +4 -3
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js +2 -2
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordTabs/index.js +1 -2
- package/es/modules/corporate/filing-record/components/FilingRecordTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordTimeLine/index.js +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordTimeLine/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/NewFilingRecordForm/index.js +2 -2
- package/es/modules/corporate/filing-record/components/NewFilingRecordForm/index.js.map +1 -1
- package/es/modules/corporate/filing-record/controls/FilingRecordMenu/items/NotifyFiling.js +2 -2
- package/es/modules/corporate/filing-record/controls/FilingRecordMenu/items/NotifyFiling.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js +6 -12
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderScheduleList/index.js +4 -4
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderScheduleList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderTab/index.js +2 -2
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderTab/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js +1 -3
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js +4 -9
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/ReminderActionForm/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js +4 -4
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.js +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTabs/index.js +1 -3
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js +1 -2
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/NewFilingYearDialog/index.js +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/NewFilingYearDialog/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/items/DownloadFiles.js +3 -6
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/items/DownloadFiles.js.map +1 -1
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/pages/FilingListPage/index.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/SettingDialog/index.js +1 -6
- package/es/modules/corporate/legal-generation/components/SettingDialog/index.js.map +1 -1
- package/es/modules/corporate/service/components/NewServiceDialog/index.js +2 -3
- package/es/modules/corporate/service/components/NewServiceDialog/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.js +1 -1
- package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +2 -2
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +3 -4
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js +3 -9
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RevokePhysical.js +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RevokePhysical.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.js +1 -6
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js +1 -6
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +3 -5
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/NewShareClassForm/ShareClassForm.js +2 -2
- package/es/modules/corporate/share-class/components/NewShareClassForm/ShareClassForm.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.css +13 -3
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.d.ts +1 -0
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.js +45 -5
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassProperties/index.js +1 -1
- package/es/modules/corporate/share-class/components/ShareClassProperties/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassSelect/ShareClassSelectDialog.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassShareholders/useShareClassShareholders.js +1 -1
- package/es/modules/corporate/share-class/components/ShareClassShareholders/useShareClassShareholders.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassTabs/index.js +2 -6
- package/es/modules/corporate/share-class/components/ShareClassTabs/index.js.map +1 -1
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.css +58 -0
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.d.ts +1 -0
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.js +48 -3
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/index.js +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionList/index.js +2 -2
- package/es/modules/corporate/share-options-register/components/ShareOptionList/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/Content.js +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/Content.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/VirtualAddressForm.js +2 -2
- package/es/modules/corporate/virtual-address/components/NewVirtualAddressForm/VirtualAddressForm.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressList/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js +3 -7
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsItem/index.js +2 -2
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsItem/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/index.js +1 -1
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/ConfirmCollectionDialog/index.js +1 -1
- package/es/modules/corporate/virtual-address-mail/components/ConfirmCollectionDialog/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/ConfirmForwardDialog/index.js +1 -1
- package/es/modules/corporate/virtual-address-mail/components/ConfirmForwardDialog/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/VirtualAddressMailForm.js +2 -2
- package/es/modules/corporate/virtual-address-mail/components/NewVirtualAddressMailForm/VirtualAddressMailForm.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/SenderSelect/index.js +1 -1
- package/es/modules/corporate/virtual-address-mail/components/SenderSelect/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailProperties/state.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.js +2 -5
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailListPage/state.js.map +1 -1
- package/es/modules/self-registration/clda-form/CompanyInfoForm/index.js +1 -1
- package/es/modules/self-registration/clda-form/CompanyInfoForm/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js +9 -9
- package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormConfirmationDialog/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormConfirmationDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js +4 -4
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/NewDPODialog/index.js +2 -2
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/NewDPODialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ManagingDirectorList/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/ManagingDirectorList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ManagingDirectorList/state.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/OfficerList/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/OfficerList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +2 -2
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/state.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.js +1 -3
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/agm/components/AddDirectorFeeDialog/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/agm/components/AddDirectorFeeDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js +11 -15
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js +3 -7
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js +6 -14
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js +5 -11
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.js +6 -14
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +6 -14
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +8 -20
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js +2 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeAddress/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeAddress/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeIndexAddress/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeIndexAddress/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js +6 -14
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnList/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.js +2 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.js +6 -14
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RemoveOfficerDetailList/index.js +2 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RemoveOfficerDetailList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +8 -20
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js +2 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
- package/es/modules/self-registration/controls/BusinessNameInput/index.js +1 -3
- package/es/modules/self-registration/controls/BusinessNameInput/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js +6 -9
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.js.map +1 -1
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js +1 -1
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js.map +1 -1
- package/es/modules/self-registration/shopping-cart/Paid.js +1 -1
- package/es/modules/self-registration/shopping-cart/Paid.js.map +1 -1
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.js +1 -1
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.js.map +1 -1
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.js +3 -9
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.js.map +1 -1
- package/es/obsolete/FilingRecordQuickView/index.css +66 -0
- package/es/obsolete/FilingRecordQuickView/index.d.ts +8 -0
- package/es/obsolete/FilingRecordQuickView/index.js +48 -0
- package/es/obsolete/FilingRecordQuickView/index.js.map +1 -0
- package/es/obsolete/FilingYearTimeLine/index.css +69 -0
- package/es/obsolete/FilingYearTimeLine/index.d.ts +7 -0
- package/es/obsolete/FilingYearTimeLine/index.js +51 -0
- package/es/obsolete/FilingYearTimeLine/index.js.map +1 -0
- package/es/obsolete/OfficerRegisterDefaultView/index.css +16 -0
- package/es/obsolete/OfficerRegisterDefaultView/index.d.ts +8 -0
- package/es/obsolete/OfficerRegisterDefaultView/index.js +12 -0
- package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -0
- package/es/obsolete/ShareCertificateDefaultView/index.css +34 -0
- package/es/obsolete/ShareCertificateDefaultView/index.d.ts +4 -0
- package/es/obsolete/ShareCertificateDefaultView/index.js +39 -0
- package/es/obsolete/ShareCertificateDefaultView/index.js.map +1 -0
- package/es/obsolete/ShareTransactionPropertiesView/Content.d.ts +7 -0
- package/es/obsolete/ShareTransactionPropertiesView/Content.js +50 -0
- package/es/obsolete/ShareTransactionPropertiesView/Content.js.map +1 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.css +85 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.d.ts +9 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.js +12 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.css +34 -0
- package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.d.ts +8 -0
- package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.js +76 -0
- package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerInformation/index.d.ts +6 -0
- package/es/obsolete/controller-register/components/ControllerInformation/index.js +43 -0
- package/es/obsolete/controller-register/components/ControllerInformation/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerItem/index.css +27 -0
- package/es/obsolete/controller-register/components/ControllerItem/index.d.ts +13 -0
- package/es/obsolete/controller-register/components/ControllerItem/index.js +32 -0
- package/es/obsolete/controller-register/components/ControllerItem/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerList/index.css +9 -0
- package/es/obsolete/controller-register/components/ControllerList/index.d.ts +7 -0
- package/es/obsolete/controller-register/components/ControllerList/index.js +66 -0
- package/es/obsolete/controller-register/components/ControllerList/index.js.map +1 -0
- package/es/obsolete/controller-register/components/ControllerList/state.d.ts +8 -0
- package/es/obsolete/controller-register/components/ControllerList/state.js +50 -0
- package/es/obsolete/controller-register/components/ControllerList/state.js.map +1 -0
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.css +1 -0
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.d.ts +4 -0
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.js +21 -0
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.js.map +1 -0
- package/es/obsolete/controllerRegister/ControllerStore.d.ts +27 -0
- package/es/obsolete/controllerRegister/ControllerStore.js +79 -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 +18 -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.d.ts +15 -0
- package/es/obsolete/controllerRegister/interfaces.js +2 -0
- package/es/obsolete/controllerRegister/interfaces.js.map +1 -0
- package/es/obsolete/controllerRegister/types.d.ts +36 -0
- package/es/obsolete/controllerRegister/types.js +2 -0
- package/es/obsolete/controllerRegister/types.js.map +1 -0
- package/es/obsolete/corporate-page/CompanyDefaultView/index.css +53 -0
- package/es/obsolete/corporate-page/CompanyDefaultView/index.d.ts +6 -0
- package/es/obsolete/corporate-page/CompanyDefaultView/index.js +96 -0
- package/es/obsolete/corporate-page/CompanyDefaultView/index.js.map +1 -0
- package/es/obsolete/corporate-page/CompanyDefaultView/state.d.ts +9 -0
- package/es/obsolete/corporate-page/CompanyDefaultView/state.js +58 -0
- package/es/obsolete/corporate-page/CompanyDefaultView/state.js.map +1 -0
- package/es/obsolete/corporate-page/CompanyMemberItem/index.css +63 -0
- package/es/obsolete/corporate-page/CompanyMemberItem/index.d.ts +13 -0
- package/es/obsolete/corporate-page/CompanyMemberItem/index.js +65 -0
- package/es/obsolete/corporate-page/CompanyMemberItem/index.js.map +1 -0
- package/es/obsolete/corporate-page/CompanyMemberList/index.css +11 -0
- package/es/obsolete/corporate-page/CompanyMemberList/index.d.ts +15 -0
- package/es/obsolete/corporate-page/CompanyMemberList/index.js +129 -0
- package/es/obsolete/corporate-page/CompanyMemberList/index.js.map +1 -0
- package/es/obsolete/corporate-page/CompanyMemberListCard/index.css +23 -0
- package/es/obsolete/corporate-page/CompanyMemberListCard/index.d.ts +8 -0
- package/es/obsolete/corporate-page/CompanyMemberListCard/index.js +12 -0
- package/es/obsolete/corporate-page/CompanyMemberListCard/index.js.map +1 -0
- package/es/obsolete/corporate-page/ControllerItem/index.css +63 -0
- package/es/obsolete/corporate-page/ControllerItem/index.d.ts +17 -0
- package/es/obsolete/corporate-page/ControllerItem/index.js +51 -0
- package/es/obsolete/corporate-page/ControllerItem/index.js.map +1 -0
- package/es/obsolete/corporate-page/ControllerList/index.css +15 -0
- package/es/obsolete/corporate-page/ControllerList/index.d.ts +10 -0
- package/es/obsolete/corporate-page/ControllerList/index.js +120 -0
- package/es/obsolete/corporate-page/ControllerList/index.js.map +1 -0
- package/es/obsolete/corporate-page/CorporateDefaultView/index.d.ts +3 -0
- package/es/obsolete/corporate-page/CorporateDefaultView/index.js +21 -0
- package/es/obsolete/corporate-page/CorporateDefaultView/index.js.map +1 -0
- package/es/obsolete/corporate-page/OfficerItem/index.css +61 -0
- package/es/obsolete/corporate-page/OfficerItem/index.d.ts +20 -0
- package/es/obsolete/corporate-page/OfficerItem/index.js +62 -0
- package/es/obsolete/corporate-page/OfficerItem/index.js.map +1 -0
- package/es/obsolete/corporate-page/OfficerList/index.css +9 -0
- package/es/obsolete/corporate-page/OfficerList/index.d.ts +15 -0
- package/es/obsolete/corporate-page/OfficerList/index.js +152 -0
- package/es/obsolete/corporate-page/OfficerList/index.js.map +1 -0
- package/es/obsolete/corporate-page/OfficerListCard/index.css +23 -0
- package/es/obsolete/corporate-page/OfficerListCard/index.d.ts +7 -0
- package/es/obsolete/corporate-page/OfficerListCard/index.js +12 -0
- package/es/obsolete/corporate-page/OfficerListCard/index.js.map +1 -0
- package/es/obsolete/corporate-page/ShareClassItem/index.css +22 -0
- package/es/obsolete/corporate-page/ShareClassItem/index.d.ts +6 -0
- package/es/obsolete/corporate-page/ShareClassItem/index.js +36 -0
- package/es/obsolete/corporate-page/ShareClassItem/index.js.map +1 -0
- package/es/obsolete/corporate-page/ShareClassList/index.css +9 -0
- package/es/obsolete/corporate-page/ShareClassList/index.d.ts +9 -0
- package/es/obsolete/corporate-page/ShareClassList/index.js +49 -0
- package/es/obsolete/corporate-page/ShareClassList/index.js.map +1 -0
- package/es/obsolete/filing-folder/hooks.d.ts +9 -0
- package/es/obsolete/filing-folder/hooks.js +20 -0
- package/es/obsolete/filing-folder/hooks.js.map +1 -0
- package/es/obsolete/filing-folder/interfaces.d.ts +9 -0
- package/es/obsolete/filing-folder/interfaces.js +2 -0
- package/es/obsolete/filing-folder/interfaces.js.map +1 -0
- package/es/obsolete/filing-folder/store.d.ts +13 -0
- package/es/obsolete/filing-folder/store.js +24 -0
- package/es/obsolete/filing-folder/store.js.map +1 -0
- package/es/obsolete/filing-folder/types.d.ts +18 -0
- package/es/obsolete/filing-folder/types.js +2 -0
- package/es/obsolete/filing-folder/types.js.map +1 -0
- package/es/obsolete/order/components/OrderItem/index.css +18 -0
- package/es/obsolete/order/components/OrderItem/index.d.ts +6 -0
- package/es/obsolete/order/components/OrderItem/index.js +10 -0
- package/es/obsolete/order/components/OrderItem/index.js.map +1 -0
- package/es/obsolete/order/components/OrderItems/DragTableCell.d.ts +3 -0
- package/es/obsolete/order/components/OrderItems/DragTableCell.js +70 -0
- package/es/obsolete/order/components/OrderItems/DragTableCell.js.map +1 -0
- package/es/obsolete/order/components/OrderItems/index.css +47 -0
- package/es/obsolete/order/components/OrderItems/index.d.ts +5 -0
- package/es/obsolete/order/components/OrderItems/index.js +169 -0
- package/es/obsolete/order/components/OrderItems/index.js.map +1 -0
- package/es/obsolete/order/components/OrderItems/state.d.ts +28 -0
- package/es/obsolete/order/components/OrderItems/state.js +83 -0
- package/es/obsolete/order/components/OrderItems/state.js.map +1 -0
- package/es/obsolete/order/components/OrderListView/index.d.ts +5 -0
- package/es/obsolete/order/components/OrderListView/index.js +48 -0
- package/es/obsolete/order/components/OrderListView/index.js.map +1 -0
- package/es/obsolete/order/components/OrderPropertiesView/index.css +11 -0
- package/es/obsolete/order/components/OrderPropertiesView/index.d.ts +6 -0
- package/es/obsolete/order/components/OrderPropertiesView/index.js +40 -0
- package/es/obsolete/order/components/OrderPropertiesView/index.js.map +1 -0
- package/es/obsolete/order/context/OrderContext.d.ts +30 -0
- package/es/obsolete/order/context/OrderContext.js +86 -0
- package/es/obsolete/order/context/OrderContext.js.map +1 -0
- package/es/obsolete/order/controls/IncorporationStatusLabel/index.css +39 -0
- package/es/obsolete/order/controls/IncorporationStatusLabel/index.d.ts +10 -0
- package/es/obsolete/order/controls/IncorporationStatusLabel/index.js +16 -0
- package/es/obsolete/order/controls/IncorporationStatusLabel/index.js.map +1 -0
- package/es/obsolete/order/controls/OrderLabel/index.css +19 -0
- package/es/obsolete/order/controls/OrderLabel/index.d.ts +6 -0
- package/es/obsolete/order/controls/OrderLabel/index.js +46 -0
- package/es/obsolete/order/controls/OrderLabel/index.js.map +1 -0
- package/es/obsolete/order/controls/OrderLabel/state.d.ts +8 -0
- package/es/obsolete/order/controls/OrderLabel/state.js +42 -0
- package/es/obsolete/order/controls/OrderLabel/state.js.map +1 -0
- package/es/obsolete/order/controls/filters/IncorporationStatusFilter/index.d.ts +3 -0
- package/es/obsolete/order/controls/filters/IncorporationStatusFilter/index.js +22 -0
- package/es/obsolete/order/controls/filters/IncorporationStatusFilter/index.js.map +1 -0
- package/es/obsolete/order/controls/filters/IncorporationStatusFilter/state.d.ts +17 -0
- package/es/obsolete/order/controls/filters/IncorporationStatusFilter/state.js +67 -0
- package/es/obsolete/order/controls/filters/IncorporationStatusFilter/state.js.map +1 -0
- package/es/obsolete/order/pages/OrderDefaultView/index.css +12 -0
- package/es/obsolete/order/pages/OrderDefaultView/index.d.ts +4 -0
- package/es/obsolete/order/pages/OrderDefaultView/index.js +53 -0
- package/es/obsolete/order/pages/OrderDefaultView/index.js.map +1 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.css +28 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.d.ts +4 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js +100 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -0
- package/es/obsolete/shareCertificate/hooks.d.ts +6 -0
- package/es/obsolete/shareCertificate/hooks.js +12 -0
- package/es/obsolete/shareCertificate/hooks.js.map +1 -0
- package/es/obsolete/shareCertificate/index.d.ts +3 -0
- package/es/obsolete/shareCertificate/index.js +4 -0
- package/es/obsolete/shareCertificate/index.js.map +1 -0
- package/es/obsolete/shareCertificate/interfaces.d.ts +22 -0
- package/es/obsolete/shareCertificate/interfaces.js +2 -0
- package/es/obsolete/shareCertificate/interfaces.js.map +1 -0
- package/es/obsolete/shareCertificate/store.d.ts +15 -0
- package/es/obsolete/shareCertificate/store.js +33 -0
- package/es/obsolete/shareCertificate/store.js.map +1 -0
- package/package.json +1 -1
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.css +0 -81
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.d.ts +0 -7
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.js +0 -52
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useStore } from "@voplus/morpho-data";
|
|
2
|
+
import { DocumentTypeStore, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
3
|
+
const StoreName = "FilingRecordStore";
|
|
4
|
+
/** Corporate store supply backend functions. */
|
|
5
|
+
export class FilingRecordStore extends DocumentTypeStore {
|
|
6
|
+
endpoint;
|
|
7
|
+
/** Name of the store */
|
|
8
|
+
name = StoreName;
|
|
9
|
+
constructor(endpoint, documents) {
|
|
10
|
+
super(endpoint, "/api/filings", documents);
|
|
11
|
+
this.endpoint = endpoint;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/** 响应钩子检索 ServiceStore */
|
|
15
|
+
export const useFilingRecordStore = () => {
|
|
16
|
+
const documents = useDocumentStore();
|
|
17
|
+
return useStore(StoreName, (context) => new FilingRecordStore(context.api.currentEndPoint, documents));
|
|
18
|
+
// const context = useApplicationContext();
|
|
19
|
+
// if (!context.getStore(StoreName)) {
|
|
20
|
+
// context.addStore(new FilingRecordStore(context.api.currentEndPoint));
|
|
21
|
+
// }
|
|
22
|
+
// return context.getStore(StoreName)! as FilingRecordStore;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/obsolete/filing-folder/store.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAMzF,OAAO,EAGN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAKtC,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAEtC,gDAAgD;AAChD,MAAM,OAAO,iBAAkB,SAAQ,iBAOtC;IAImC;IAHnC,wBAAwB;IACR,IAAI,GAAW,SAAS,CAAC;IAEzC,YAAmC,QAAqB,EAAE,SAAwB;QACjF,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;QADT,aAAQ,GAAR,QAAQ,CAAa;IAExD,CAAC;CAuDD;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACxC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,QAAQ,CACd,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAC1E,CAAC;IACF,2CAA2C;IAC3C,sCAAsC;IACtC,yEAAyE;IACzE,IAAI;IACJ,4DAA4D;AAC7D,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IFilingRecord } from "./interfaces";
|
|
2
|
+
import { LoadOptions } from "@voplus/morpho-data";
|
|
3
|
+
/** Custom load contact options type */
|
|
4
|
+
export type LoadFilingRecordOptions = {
|
|
5
|
+
/** Comma separated include options e.g. path */
|
|
6
|
+
includes?: string;
|
|
7
|
+
} & LoadOptions<IFilingRecord>;
|
|
8
|
+
export type CreateFilingRecordOptions = {
|
|
9
|
+
Name: string;
|
|
10
|
+
/** filing 种类 */
|
|
11
|
+
Type: string;
|
|
12
|
+
/** filing 到期日 */
|
|
13
|
+
DueDate: Date | string;
|
|
14
|
+
};
|
|
15
|
+
export type EditFilingRecordOptions = {
|
|
16
|
+
/** filing 到期日 */
|
|
17
|
+
DueDate: Date | string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/obsolete/filing-folder/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.Order-item {
|
|
2
|
+
position: relative;
|
|
3
|
+
align-items: center;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
.flag-icon {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
width: 23px;
|
|
8
|
+
margin-left: 0;
|
|
9
|
+
}
|
|
10
|
+
&:after {
|
|
11
|
+
position: absolute;
|
|
12
|
+
content: "";
|
|
13
|
+
left: 20px;
|
|
14
|
+
right: 0;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
border-bottom: 1px solid var(--border-color-base);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
const OrderItem = (props) => {
|
|
6
|
+
const { id } = props;
|
|
7
|
+
return observe(() => (React.createElement(DocumentHeader, { id: id, className: "Order-item", quickDataBarAlign: "left", flagVisible: false, preVisible: false, toolsVisible: false, quickVisible: false })));
|
|
8
|
+
};
|
|
9
|
+
export default OrderItem;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/order/components/OrderItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAIrB,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,IACd,EAAE,EAAE,EAAE,EACN,SAAS,EAAC,YAAY,EACtB,iBAAiB,EAAC,MAAM,EACxB,WAAW,EAAE,KAAK,EAClB,UAAU,EAAE,KAAK,EACjB,YAAY,EAAE,KAAK,EACnB,YAAY,EAAE,KAAK,GAClB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Button, Form, Input, InputNumber } from "antd";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import { faBarsRegular, faTrashAltRegular, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
4
|
+
import CurrencyAmount from "@voplus/morpho-ui/es/controls/CurrencyAmount";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { isEqual } from "lodash-es";
|
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
|
8
|
+
import { useFormRowContext } from "../../../../components/DragTableRow/FormRowContext";
|
|
9
|
+
import { useOrderContext } from "../../context/OrderContext";
|
|
10
|
+
const DragTableCell = (props) => {
|
|
11
|
+
const { key, editable, dataIndex, record, rowIndex, children, connectDragSource, className, onAdd, onDel, ...restProps } = props;
|
|
12
|
+
const formContext = useFormRowContext();
|
|
13
|
+
const orderContext = useOrderContext();
|
|
14
|
+
const [editing, setEditing] = useState(false);
|
|
15
|
+
return observe(() => (React.createElement("td", { ...restProps, className: classnames({ "column-edit": ((record && record.added) || editing) && dataIndex === "description" }, className) }, dataIndex === "amount" ? (editable && orderContext.hoverKey === rowIndex ? (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
|
|
16
|
+
React.createElement(FAIcon, { icon: faTrashAltRegular }))) : (React.createElement(CurrencyAmount, { amount: orderContext.getAmount(record) ?? 0 }))) : dataIndex === "Dnd" ? (formContext.connectDragSource(React.createElement("span", { style: { cursor: "move" } },
|
|
17
|
+
React.createElement(FAIcon, { icon: faBarsRegular })))) : editable ? (record.added || editing ? (React.createElement(Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [{ required: true, message: `${dataIndex} is required.` }] }, dataIndex === "description" ? (React.createElement(Input.TextArea, { autoFocus: editing, rows: 4, onBlur: save })) : (React.createElement(InputNumber, { min: dataIndex === "qty" ? 1 : 0, max: dataIndex === "discount" ? 100 : 100000000000, precision: dataIndex === "price" ? 2 : 0, onPressEnter: save, onBlur: save, onKeyDown: onKeyDown })))) : (React.createElement("div", { className: "editable-cell-value-wrap", onClick: toggleEdit }, children))) : (children))));
|
|
18
|
+
function toggleEdit() {
|
|
19
|
+
formContext.form.setFieldsValue({ ...record });
|
|
20
|
+
setEditing(!editing);
|
|
21
|
+
}
|
|
22
|
+
function save() {
|
|
23
|
+
formContext.form
|
|
24
|
+
.validateFields()
|
|
25
|
+
.then((orderLine) => {
|
|
26
|
+
const { added, description, price, qty, discount } = record;
|
|
27
|
+
const line = {
|
|
28
|
+
description: orderLine.description || description,
|
|
29
|
+
price: orderLine.price >= 0 ? orderLine.price : price,
|
|
30
|
+
qty: orderLine.qty || qty,
|
|
31
|
+
discount: orderLine.discount >= 0 ? orderLine.discount : discount,
|
|
32
|
+
};
|
|
33
|
+
const hasChange = !isEqual(line, { description, price, qty, discount });
|
|
34
|
+
/** Add or edit Order line */
|
|
35
|
+
if (added || hasChange) {
|
|
36
|
+
setOrderLine(rowIndex, orderLine);
|
|
37
|
+
}
|
|
38
|
+
if (!added)
|
|
39
|
+
return toggleEdit();
|
|
40
|
+
})
|
|
41
|
+
.catch((errorInfo) => {
|
|
42
|
+
// console.log(errorInfo, "errorInfo");
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function onKeyDown(e) {
|
|
46
|
+
/** Esc to quit editing */
|
|
47
|
+
if (e.keyCode === 27)
|
|
48
|
+
return setEditing(false);
|
|
49
|
+
if (e.keyCode !== 9 || dataIndex !== "discount")
|
|
50
|
+
return;
|
|
51
|
+
formContext.form
|
|
52
|
+
.validateFields()
|
|
53
|
+
.then(() => {
|
|
54
|
+
onAdd();
|
|
55
|
+
})
|
|
56
|
+
.catch((errorInfo) => {
|
|
57
|
+
// console.log(errorInfo, "errorInfo");
|
|
58
|
+
});
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
function setOrderLine(index, orderLine) {
|
|
62
|
+
orderContext.orderLines[index] = {
|
|
63
|
+
...orderContext.orderLines[index],
|
|
64
|
+
...orderLine,
|
|
65
|
+
};
|
|
66
|
+
orderContext.orderLines = [...orderContext.orderLines];
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export default DragTableCell;
|
|
70
|
+
//# sourceMappingURL=DragTableCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragTableCell.js","sourceRoot":"","sources":["../../../../../src/obsolete/order/components/OrderItems/DragTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,aAAa,EACb,iBAAiB,EACjB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAG1E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB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AAG,EAAE;YACV,KAAK,EAAE,CAAC;QACT,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,SAAc,EAAE,EAAE;YACzB,uCAAuC;QACxC,CAAC,CAAC,CAAC;QACJ,OAAO;IACR,CAAC;IACD,SAAS,YAAY,CAAC,KAAa,EAAE,SAAqB;QACzD,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG;YAChC,GAAG,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC;YACjC,GAAG,SAAS;SACZ,CAAC;QACF,YAAY,CAAC,UAAU,GAAG,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IACxD,CAAC;AACF,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.order-lines-table {
|
|
2
|
+
padding: 0 20px;
|
|
3
|
+
|
|
4
|
+
.ant-table {
|
|
5
|
+
.ant-table-container {
|
|
6
|
+
overflow-x: auto;
|
|
7
|
+
}
|
|
8
|
+
.ant-input-number {
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
.ant-table-thead > tr > th {
|
|
12
|
+
padding: 0 10px;
|
|
13
|
+
}
|
|
14
|
+
td {
|
|
15
|
+
padding: 0 10px;
|
|
16
|
+
min-width: 100px;
|
|
17
|
+
height: 54px;
|
|
18
|
+
textarea.ant-input {
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
&.column-edit {
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
|
24
|
+
&.column-dnd {
|
|
25
|
+
min-width: 40px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.ant-table-footer {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
align-items: center;
|
|
32
|
+
padding: 10px 0;
|
|
33
|
+
.cancel {
|
|
34
|
+
color: #666;
|
|
35
|
+
}
|
|
36
|
+
.total {
|
|
37
|
+
font-size: 13px;
|
|
38
|
+
padding: 0 10px;
|
|
39
|
+
span {
|
|
40
|
+
margin-left: 5px;
|
|
41
|
+
font-size: 15px;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { serialize } from "@voplus/morpho-data";
|
|
2
|
+
import { DndContext } from "@dnd-kit/core";
|
|
3
|
+
import { SortableContext, arrayMove, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
4
|
+
import { Button, Modal, Table } from "antd";
|
|
5
|
+
import { useOrderStore } from "../../../../data/order";
|
|
6
|
+
import { State } from "./state";
|
|
7
|
+
import React, { useEffect, useState } from "react";
|
|
8
|
+
import { cloneDeep, isEqual } from "lodash-es";
|
|
9
|
+
import { runInAction } from "mobx";
|
|
10
|
+
import CurrencyAmount from "@voplus/morpho-ui/es/controls/CurrencyAmount";
|
|
11
|
+
import DragTableCell from "./DragTableCell";
|
|
12
|
+
import DragTableRow from "../../../../components/DragTableRow";
|
|
13
|
+
import { OrderContext } from "../../context/OrderContext";
|
|
14
|
+
import { observe } from "@voplus/morpho-ui";
|
|
15
|
+
import "./index.css";
|
|
16
|
+
import update from "immutability-helper";
|
|
17
|
+
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
18
|
+
const OrderItems = (props) => {
|
|
19
|
+
const { data } = props;
|
|
20
|
+
const [state] = useState(new State());
|
|
21
|
+
state.props = props;
|
|
22
|
+
const store = useOrderStore();
|
|
23
|
+
const documents = useDocumentStore();
|
|
24
|
+
const columnsList = [
|
|
25
|
+
{ key: "sort", width: 40, align: "center" },
|
|
26
|
+
{
|
|
27
|
+
title: "Item",
|
|
28
|
+
dataIndex: "description",
|
|
29
|
+
editable: !state.readonly,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "Unit Price",
|
|
33
|
+
dataIndex: "price",
|
|
34
|
+
editable: !state.readonly,
|
|
35
|
+
width: 120,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: "Qty",
|
|
39
|
+
dataIndex: "qty",
|
|
40
|
+
editable: !state.readonly,
|
|
41
|
+
width: 120,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
title: (React.createElement("div", null,
|
|
45
|
+
"Discount",
|
|
46
|
+
React.createElement("div", null, "(%)"))),
|
|
47
|
+
dataIndex: "discount",
|
|
48
|
+
editable: !state.readonly,
|
|
49
|
+
width: 120,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: "Amount",
|
|
53
|
+
dataIndex: "amount",
|
|
54
|
+
editable: !state.readonly,
|
|
55
|
+
width: 120,
|
|
56
|
+
align: "right",
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
const components = {
|
|
60
|
+
body: {
|
|
61
|
+
row: DragTableRow,
|
|
62
|
+
cell: DragTableCell,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
const columns = columnsList.map((col) => {
|
|
66
|
+
return {
|
|
67
|
+
...col,
|
|
68
|
+
onCell: (record, rowIndex) => {
|
|
69
|
+
return {
|
|
70
|
+
record,
|
|
71
|
+
editable: col.editable,
|
|
72
|
+
dataIndex: col.dataIndex,
|
|
73
|
+
rowIndex: rowIndex,
|
|
74
|
+
onAdd,
|
|
75
|
+
onDel,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
runInAction(() => (state.orderLines = cloneDeep(data.lines)));
|
|
82
|
+
}, [data.lines]);
|
|
83
|
+
return observe(() => (React.createElement(OrderContext.Provider, { value: state },
|
|
84
|
+
React.createElement(DndContext, { onDragEnd: onDragEnd },
|
|
85
|
+
React.createElement(SortableContext
|
|
86
|
+
// rowKey array
|
|
87
|
+
, {
|
|
88
|
+
// rowKey array
|
|
89
|
+
items: state.orderLines.map((i) => i.id), strategy: verticalListSortingStrategy },
|
|
90
|
+
React.createElement(Table, { className: "order-lines-table", components: components, pagination: false, rowClassName: () => "editable-row", bordered: true, dataSource: state.orderLines, columns: columns, rowKey: "id", onRow: (record, index) => ({
|
|
91
|
+
index: index ?? -1,
|
|
92
|
+
onMouseEnter: () => runInAction(() => {
|
|
93
|
+
state.hoverKey = index ?? -1;
|
|
94
|
+
}),
|
|
95
|
+
onMouseLeave: () => runInAction(() => {
|
|
96
|
+
state.hoverKey = -1;
|
|
97
|
+
}),
|
|
98
|
+
}), footer: () => (React.createElement(React.Fragment, null,
|
|
99
|
+
React.createElement("div", null, !state.readonly && (React.createElement(React.Fragment, null,
|
|
100
|
+
React.createElement(Button, { type: "link", onClick: onAdd }, "Add an item"),
|
|
101
|
+
React.createElement(Button, { type: "link", className: "cancel", onClick: getOrder }, "Reset"),
|
|
102
|
+
React.createElement(Button, { loading: state.loading, type: "link", disabled: isEqual(serialize(state.orderLines), data.lines), onClick: onSave }, "Save"))
|
|
103
|
+
// )}
|
|
104
|
+
// </React.Fragment>
|
|
105
|
+
)),
|
|
106
|
+
React.createElement("div", { className: "total" },
|
|
107
|
+
"TOTAL ",
|
|
108
|
+
React.createElement(CurrencyAmount, { amount: state.total ?? 0 })))) }))))));
|
|
109
|
+
function onDragEnd({ active, over }) {
|
|
110
|
+
if (active.id !== over?.id) {
|
|
111
|
+
const activeIndex = state.orderLines.findIndex((i) => i.id === active.id);
|
|
112
|
+
const overIndex = state.orderLines.findIndex((i) => i.id === over?.id);
|
|
113
|
+
state.orderLines = arrayMove(state.orderLines, activeIndex, overIndex);
|
|
114
|
+
onSave();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/** reload order */
|
|
118
|
+
function getOrder() {
|
|
119
|
+
const document = documents.items.get(data.id);
|
|
120
|
+
runInAction(() => {
|
|
121
|
+
state.orderLines = cloneDeep(document.lines);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/** Add Order */
|
|
125
|
+
function onAdd() {
|
|
126
|
+
const id = Math.floor(Math.random() * 100000 + 1);
|
|
127
|
+
runInAction(() => (state.orderLines = [...(state.orderLines || []), { id, added: true, ...state.orderLines }]));
|
|
128
|
+
}
|
|
129
|
+
/** */
|
|
130
|
+
function onDel(id) {
|
|
131
|
+
runInAction(() => {
|
|
132
|
+
if (state.isAdding)
|
|
133
|
+
return (state.orderLines = state.orderLines.filter((line) => line.id !== id));
|
|
134
|
+
return Modal.confirm({
|
|
135
|
+
title: "Do you want to delete this item?",
|
|
136
|
+
onOk() {
|
|
137
|
+
state.orderLines = state.orderLines.filter((line) => line.id !== id);
|
|
138
|
+
onSave();
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
async function onSave() {
|
|
144
|
+
const Lines = state.orderLines.map(({ description, price, qty, discount }) => ({
|
|
145
|
+
Description: description,
|
|
146
|
+
Price: price,
|
|
147
|
+
Qty: qty,
|
|
148
|
+
Discount: discount,
|
|
149
|
+
}));
|
|
150
|
+
state.loading = true;
|
|
151
|
+
await store.edit(data.id, { data: { Lines }, error: "message" });
|
|
152
|
+
runInAction(() => {
|
|
153
|
+
state.loading = false;
|
|
154
|
+
});
|
|
155
|
+
getOrder();
|
|
156
|
+
}
|
|
157
|
+
function moveAfter(dragIndex, afterIndex) {
|
|
158
|
+
const dragRow = state.orderLines[dragIndex];
|
|
159
|
+
runInAction(() => (state.orderLines = update(state.orderLines, {
|
|
160
|
+
$splice: [
|
|
161
|
+
[dragIndex, 1],
|
|
162
|
+
[afterIndex, 0, dragRow],
|
|
163
|
+
],
|
|
164
|
+
})));
|
|
165
|
+
// onSave();
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
export default OrderItems;
|
|
169
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/order/components/OrderItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC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AE,QAAQ,EAAc,EAAE,EAAE,CAAC,CAAC;YAC1F,WAAW,EAAE,WAAW;YACxB,KAAK,EAAE,KAAK;YACZ,GAAG,EAAE,GAAG;YACR,QAAQ,EAAE,QAAQ;SAClB,CAAC,CAAC,CAAC;QACJ,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAS,CAAC,CAAC;QACxE,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,QAAQ,EAAE,CAAC;IACZ,CAAC;IACD,SAAS,SAAS,CAAC,SAAiB,EAAE,UAAkB;QACvD,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAC5C,WAAW,CACV,GAAG,EAAE,CACJ,CAAC,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE;YAC5C,OAAO,EAAE;gBACR,CAAC,SAAS,EAAE,CAAC,CAAC;gBACd,CAAC,UAAU,EAAE,CAAC,EAAE,OAAO,CAAC;aACxB;SACD,CAAC,CAAC,CACJ,CAAC;QACF,YAAY;IACb,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IOrder, IOrderLine } from "../../../../data/order";
|
|
2
|
+
export type ItemsProps = {
|
|
3
|
+
data: IOrder;
|
|
4
|
+
};
|
|
5
|
+
export declare class State {
|
|
6
|
+
props: ItemsProps;
|
|
7
|
+
/** Array of new lines to be added. */
|
|
8
|
+
accessor OrderLine: {
|
|
9
|
+
description: string;
|
|
10
|
+
price: number;
|
|
11
|
+
qty: number;
|
|
12
|
+
discount: number;
|
|
13
|
+
};
|
|
14
|
+
/** Id of Delete of line */
|
|
15
|
+
accessor hoverKey: number;
|
|
16
|
+
/** lines of order */
|
|
17
|
+
accessor orderLines: any[];
|
|
18
|
+
/** loading of saving */
|
|
19
|
+
accessor loading: boolean;
|
|
20
|
+
/** amount of order line */
|
|
21
|
+
getAmount: (line: IOrderLine) => number;
|
|
22
|
+
/** Total of Amount of OrderLine */
|
|
23
|
+
get total(): number;
|
|
24
|
+
/** readonly */
|
|
25
|
+
get readonly(): boolean;
|
|
26
|
+
/** Is Adding */
|
|
27
|
+
get isAdding(): boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { computed, observable } from "mobx";
|
|
3
|
+
import big from "big.js";
|
|
4
|
+
let State = (() => {
|
|
5
|
+
let _instanceExtraInitializers = [];
|
|
6
|
+
let _OrderLine_decorators;
|
|
7
|
+
let _OrderLine_initializers = [];
|
|
8
|
+
let _OrderLine_extraInitializers = [];
|
|
9
|
+
let _hoverKey_decorators;
|
|
10
|
+
let _hoverKey_initializers = [];
|
|
11
|
+
let _hoverKey_extraInitializers = [];
|
|
12
|
+
let _orderLines_decorators;
|
|
13
|
+
let _orderLines_initializers = [];
|
|
14
|
+
let _orderLines_extraInitializers = [];
|
|
15
|
+
let _loading_decorators;
|
|
16
|
+
let _loading_initializers = [];
|
|
17
|
+
let _loading_extraInitializers = [];
|
|
18
|
+
let _get_total_decorators;
|
|
19
|
+
let _get_readonly_decorators;
|
|
20
|
+
let _get_isAdding_decorators;
|
|
21
|
+
return class State {
|
|
22
|
+
static {
|
|
23
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
24
|
+
_OrderLine_decorators = [observable];
|
|
25
|
+
_hoverKey_decorators = [observable];
|
|
26
|
+
_orderLines_decorators = [observable];
|
|
27
|
+
_loading_decorators = [observable];
|
|
28
|
+
_get_total_decorators = [computed];
|
|
29
|
+
_get_readonly_decorators = [computed];
|
|
30
|
+
_get_isAdding_decorators = [computed];
|
|
31
|
+
__esDecorate(this, null, _OrderLine_decorators, { kind: "accessor", name: "OrderLine", static: false, private: false, access: { has: obj => "OrderLine" in obj, get: obj => obj.OrderLine, set: (obj, value) => { obj.OrderLine = value; } }, metadata: _metadata }, _OrderLine_initializers, _OrderLine_extraInitializers);
|
|
32
|
+
__esDecorate(this, null, _hoverKey_decorators, { kind: "accessor", name: "hoverKey", static: false, private: false, access: { has: obj => "hoverKey" in obj, get: obj => obj.hoverKey, set: (obj, value) => { obj.hoverKey = value; } }, metadata: _metadata }, _hoverKey_initializers, _hoverKey_extraInitializers);
|
|
33
|
+
__esDecorate(this, null, _orderLines_decorators, { kind: "accessor", name: "orderLines", static: false, private: false, access: { has: obj => "orderLines" in obj, get: obj => obj.orderLines, set: (obj, value) => { obj.orderLines = value; } }, metadata: _metadata }, _orderLines_initializers, _orderLines_extraInitializers);
|
|
34
|
+
__esDecorate(this, null, _loading_decorators, { kind: "accessor", name: "loading", static: false, private: false, access: { has: obj => "loading" in obj, get: obj => obj.loading, set: (obj, value) => { obj.loading = value; } }, metadata: _metadata }, _loading_initializers, _loading_extraInitializers);
|
|
35
|
+
__esDecorate(this, null, _get_total_decorators, { kind: "getter", name: "total", static: false, private: false, access: { has: obj => "total" in obj, get: obj => obj.total }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
36
|
+
__esDecorate(this, null, _get_readonly_decorators, { kind: "getter", name: "readonly", static: false, private: false, access: { has: obj => "readonly" in obj, get: obj => obj.readonly }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
37
|
+
__esDecorate(this, null, _get_isAdding_decorators, { kind: "getter", name: "isAdding", static: false, private: false, access: { has: obj => "isAdding" in obj, get: obj => obj.isAdding }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
38
|
+
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
39
|
+
}
|
|
40
|
+
props = __runInitializers(this, _instanceExtraInitializers);
|
|
41
|
+
#OrderLine_accessor_storage = __runInitializers(this, _OrderLine_initializers, {
|
|
42
|
+
description: "",
|
|
43
|
+
price: 0,
|
|
44
|
+
qty: 1,
|
|
45
|
+
discount: 0,
|
|
46
|
+
});
|
|
47
|
+
/** Array of new lines to be added. */
|
|
48
|
+
get OrderLine() { return this.#OrderLine_accessor_storage; }
|
|
49
|
+
set OrderLine(value) { this.#OrderLine_accessor_storage = value; }
|
|
50
|
+
#hoverKey_accessor_storage = (__runInitializers(this, _OrderLine_extraInitializers), __runInitializers(this, _hoverKey_initializers, void 0));
|
|
51
|
+
/** Id of Delete of line */
|
|
52
|
+
get hoverKey() { return this.#hoverKey_accessor_storage; }
|
|
53
|
+
set hoverKey(value) { this.#hoverKey_accessor_storage = value; }
|
|
54
|
+
#orderLines_accessor_storage = (__runInitializers(this, _hoverKey_extraInitializers), __runInitializers(this, _orderLines_initializers, []));
|
|
55
|
+
/** lines of order */
|
|
56
|
+
get orderLines() { return this.#orderLines_accessor_storage; }
|
|
57
|
+
set orderLines(value) { this.#orderLines_accessor_storage = value; }
|
|
58
|
+
#loading_accessor_storage = (__runInitializers(this, _orderLines_extraInitializers), __runInitializers(this, _loading_initializers, false));
|
|
59
|
+
/** loading of saving */
|
|
60
|
+
get loading() { return this.#loading_accessor_storage; }
|
|
61
|
+
set loading(value) { this.#loading_accessor_storage = value; }
|
|
62
|
+
/** amount of order line */
|
|
63
|
+
getAmount = (__runInitializers(this, _loading_extraInitializers), (line) => {
|
|
64
|
+
return line
|
|
65
|
+
? Number.parseFloat(big(line.price * (line.qty * ((100 - line.discount) / 100))).toFixed(2))
|
|
66
|
+
: 0;
|
|
67
|
+
});
|
|
68
|
+
/** Total of Amount of OrderLine */
|
|
69
|
+
get total() {
|
|
70
|
+
return this.orderLines?.reduce((total, line) => Number.parseFloat(big(total + this.getAmount(line)).toFixed(2)), 0);
|
|
71
|
+
}
|
|
72
|
+
/** readonly */
|
|
73
|
+
get readonly() {
|
|
74
|
+
return this.props && this.props.data && !!this.props.data.readonly;
|
|
75
|
+
}
|
|
76
|
+
/** Is Adding */
|
|
77
|
+
get isAdding() {
|
|
78
|
+
return this.orderLines.some(({ added }) => !!added);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
})();
|
|
82
|
+
export { State };
|
|
83
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/obsolete/order/components/OrderItems/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,GAAG,MAAM,QAAQ,CAAC;IAMZ,KAAK;;;;;;;;;;;;;;;;;iBAAL,KAAK;;;qCAGhB,UAAU;oCAOV,UAAU;sCAEV,UAAU;mCAEV,UAAU;qCASV,QAAQ;wCAQR,QAAQ;wCAKR,QAAQ;YAjCG,gLAAgB,SAAS,6BAAT,SAAS,6FAKnC;YAEU,6KAAgB,QAAQ,6BAAR,QAAQ,2FAAU;YAElC,mLAAgB,UAAU,6BAAV,UAAU,+FAAa;YAEvC,0KAAgB,OAAO,6BAAP,OAAO,yFAAS;YAU5C,sKAAW,KAAK,6DAKf;YAGD,+KAAW,QAAQ,6DAElB;YAGD,+KAAW,QAAQ,6DAElB;;;QAtCM,KAAK,GADA,mDAAK,CACS;QAEd,+EAA4B;YACvC,WAAW,EAAE,EAAE;YACf,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,CAAC;YACN,QAAQ,EAAE,CAAC;SACX,EAAC;QANF,sCAAsC;QAC1B,IAAgB,SAAS,+CAKnC;QALU,IAAgB,SAAS,qDAKnC;QAEU,8IAAkC;QAD9C,2BAA2B;QACf,IAAgB,QAAQ,8CAAU;QAAlC,IAAgB,QAAQ,oDAAU;QAElC,wIAAoC,EAAE,GAAC;QADnD,qBAAqB;QACT,IAAgB,UAAU,gDAAa;QAAvC,IAAgB,UAAU,sDAAa;QAEvC,oIAA0B,KAAK,GAAC;QAD5C,wBAAwB;QACZ,IAAgB,OAAO,6CAAS;QAAhC,IAAgB,OAAO,mDAAS;QAE5C,2BAA2B;QACpB,SAAS,yDAAG,CAAC,IAAgB,EAAE,EAAE;YACvC,OAAO,IAAI;gBACV,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;gBAC5F,CAAC,CAAC,CAAC,CAAC;QACN,CAAC,EAAC;QACF,oCAAoC;QAEpC,IAAW,KAAK;YACf,OAAO,IAAI,CAAC,UAAU,EAAE,MAAM,CAC7B,CAAC,KAAa,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EACxF,CAAC,CACD,CAAC;QACH,CAAC;QACD,eAAe;QAEf,IAAW,QAAQ;YAClB,OAAO,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;QACpE,CAAC;QACD,gBAAgB;QAEhB,IAAW,QAAQ;YAClB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACrD,CAAC;;;SAvCW,KAAK"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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/ListView";
|
|
6
|
+
import OrderItem from "../OrderItem";
|
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
|
8
|
+
import { runInAction } from "mobx";
|
|
9
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
10
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
11
|
+
import { useTabItem } from "@voplus/morpho-data";
|
|
12
|
+
const OrderList = (props) => {
|
|
13
|
+
const { parentId } = props;
|
|
14
|
+
const tab = useTabItem();
|
|
15
|
+
const [activeId, setActiveId] = useState("");
|
|
16
|
+
const list = useCreateListDataState({
|
|
17
|
+
filterDefaults: {
|
|
18
|
+
includes: "tags",
|
|
19
|
+
filters: parentId ? [{ c: "ParentNodeId", o: "=", l: "And", v1: parentId }] : [],
|
|
20
|
+
},
|
|
21
|
+
}, []);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
runInAction(() => (tab.title = "Order"));
|
|
24
|
+
}, []);
|
|
25
|
+
useAutoUpdateListData(list, (d) => d.parentId === parentId);
|
|
26
|
+
useRenderOnChange(() => list.filters.options);
|
|
27
|
+
useOrderListEffect(list, (result) => list.union(result), list.filters.options);
|
|
28
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
29
|
+
React.createElement(ListView, { headerProps: {
|
|
30
|
+
headerDefProps: {
|
|
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
|
+
},
|
|
39
|
+
}, renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
|
40
|
+
active: activeId === item.id,
|
|
41
|
+
hoverEffect: "none",
|
|
42
|
+
activeEffect: "border",
|
|
43
|
+
borderProps: { location: "right", color: "#2d85dc ", size: "2px" },
|
|
44
|
+
}, onClick: () => setActiveId(item.id) },
|
|
45
|
+
React.createElement(OrderItem, { id: item.id }))) }))));
|
|
46
|
+
};
|
|
47
|
+
export default OrderList;
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/order/components/OrderListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAChF,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,SAAS,GAAG,CAAC,KAA4B,EAAE,EAAE;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE7C,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,MAAM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