@axelor/aos-mobile-purchase 8.3.0
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/README.md +44 -0
- package/lib/api/index.d.ts +5 -0
- package/lib/api/index.js +23 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/product-api.d.ts +4 -0
- package/lib/api/product-api.js +69 -0
- package/lib/api/product-api.js.map +1 -0
- package/lib/api/purchase-request-api.d.ts +23 -0
- package/lib/api/purchase-request-api.js +104 -0
- package/lib/api/purchase-request-api.js.map +1 -0
- package/lib/api/purchase-request-line-api.d.ts +17 -0
- package/lib/api/purchase-request-line-api.js +100 -0
- package/lib/api/purchase-request-line-api.js.map +1 -0
- package/lib/api/supplier-api.d.ts +5 -0
- package/lib/api/supplier-api.js +47 -0
- package/lib/api/supplier-api.js.map +1 -0
- package/lib/api/unit-api.d.ts +4 -0
- package/lib/api/unit-api.js +29 -0
- package/lib/api/unit-api.js.map +1 -0
- package/lib/components/atoms/DropdownRequestCharacteristics/DropdownRequestCharacteristics.d.ts +3 -0
- package/lib/components/atoms/DropdownRequestCharacteristics/DropdownRequestCharacteristics.js +39 -0
- package/lib/components/atoms/DropdownRequestCharacteristics/DropdownRequestCharacteristics.js.map +1 -0
- package/lib/components/atoms/RequestCard/RequestCard.d.ts +11 -0
- package/lib/components/atoms/RequestCard/RequestCard.js +51 -0
- package/lib/components/atoms/RequestCard/RequestCard.js.map +1 -0
- package/lib/components/atoms/RequestHeader/RequestHeader.d.ts +3 -0
- package/lib/components/atoms/RequestHeader/RequestHeader.js +47 -0
- package/lib/components/atoms/RequestHeader/RequestHeader.js.map +1 -0
- package/lib/components/atoms/RequestLineCard/RequestLineCard.d.ts +11 -0
- package/lib/components/atoms/RequestLineCard/RequestLineCard.js +49 -0
- package/lib/components/atoms/RequestLineCard/RequestLineCard.js.map +1 -0
- package/lib/components/atoms/RequestSeeLinesButton/RequestSeeLinesButton.d.ts +3 -0
- package/lib/components/atoms/RequestSeeLinesButton/RequestSeeLinesButton.js +67 -0
- package/lib/components/atoms/RequestSeeLinesButton/RequestSeeLinesButton.js.map +1 -0
- package/lib/components/atoms/index.d.ts +5 -0
- package/lib/components/atoms/index.js +23 -0
- package/lib/components/atoms/index.js.map +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.js +22 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/RequestDropdownCards/RequestDropdownCards.d.ts +5 -0
- package/lib/components/molecules/RequestDropdownCards/RequestDropdownCards.js +33 -0
- package/lib/components/molecules/RequestDropdownCards/RequestDropdownCards.js.map +1 -0
- package/lib/components/molecules/index.d.ts +1 -0
- package/lib/components/molecules/index.js +19 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/organisms/RequestButtons/RequestButtons.d.ts +3 -0
- package/lib/components/organisms/RequestButtons/RequestButtons.js +136 -0
- package/lib/components/organisms/RequestButtons/RequestButtons.js.map +1 -0
- package/lib/components/organisms/index.d.ts +1 -0
- package/lib/components/organisms/index.js +19 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/components/templates/CompanyPicker/CompanyPicker.d.ts +9 -0
- package/lib/components/templates/CompanyPicker/CompanyPicker.js +30 -0
- package/lib/components/templates/CompanyPicker/CompanyPicker.js.map +1 -0
- package/lib/components/templates/HorizontalOrRuleText/HorizontalOrRuleText.d.ts +5 -0
- package/lib/components/templates/HorizontalOrRuleText/HorizontalOrRuleText.js +35 -0
- package/lib/components/templates/HorizontalOrRuleText/HorizontalOrRuleText.js.map +1 -0
- package/lib/components/templates/ProductSearchBar/ProductSearchBar.d.ts +13 -0
- package/lib/components/templates/ProductSearchBar/ProductSearchBar.js +35 -0
- package/lib/components/templates/ProductSearchBar/ProductSearchBar.js.map +1 -0
- package/lib/components/templates/RequestCreationButtons/RequestCreationButtons.d.ts +13 -0
- package/lib/components/templates/RequestCreationButtons/RequestCreationButtons.js +59 -0
- package/lib/components/templates/RequestCreationButtons/RequestCreationButtons.js.map +1 -0
- package/lib/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.d.ts +10 -0
- package/lib/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.js +29 -0
- package/lib/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.js.map +1 -0
- package/lib/components/templates/SupplierSearchBar/SupplierSearchBar.d.ts +11 -0
- package/lib/components/templates/SupplierSearchBar/SupplierSearchBar.js +38 -0
- package/lib/components/templates/SupplierSearchBar/SupplierSearchBar.js.map +1 -0
- package/lib/components/templates/UnitSearchBar/UnitSearchBar.d.ts +13 -0
- package/lib/components/templates/UnitSearchBar/UnitSearchBar.js +35 -0
- package/lib/components/templates/UnitSearchBar/UnitSearchBar.js.map +1 -0
- package/lib/components/templates/index.d.ts +7 -0
- package/lib/components/templates/index.js +25 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +5 -0
- package/lib/features/asyncFunctions-index.js +23 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/index.d.ts +5 -0
- package/lib/features/index.js +23 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/productSlice.d.ts +16 -0
- package/lib/features/productSlice.js +49 -0
- package/lib/features/productSlice.js.map +1 -0
- package/lib/features/purchaseRequestLineSlice.d.ts +49 -0
- package/lib/features/purchaseRequestLineSlice.js +96 -0
- package/lib/features/purchaseRequestLineSlice.js.map +1 -0
- package/lib/features/purchaseRequestSlice.d.ts +58 -0
- package/lib/features/purchaseRequestSlice.js +101 -0
- package/lib/features/purchaseRequestSlice.js.map +1 -0
- package/lib/features/supplierSlice.d.ts +16 -0
- package/lib/features/supplierSlice.js +49 -0
- package/lib/features/supplierSlice.js.map +1 -0
- package/lib/features/unitSlice.d.ts +16 -0
- package/lib/features/unitSlice.js +49 -0
- package/lib/features/unitSlice.js.map +1 -0
- package/lib/hooks/use-purchase-header-actions.d.ts +1 -0
- package/lib/hooks/use-purchase-header-actions.js +46 -0
- package/lib/hooks/use-purchase-header-actions.js.map +1 -0
- package/lib/i18n/en.json +45 -0
- package/lib/i18n/fr.json +45 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +69 -0
- package/lib/index.js.map +1 -0
- package/lib/models/forms.d.ts +2 -0
- package/lib/models/forms.js +61 -0
- package/lib/models/forms.js.map +1 -0
- package/lib/models/index.d.ts +5 -0
- package/lib/models/index.js +23 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/objectFields.d.ts +2 -0
- package/lib/models/objectFields.js +49 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +23 -0
- package/lib/models/searchFields.js.map +1 -0
- package/lib/models/sortFields.d.ts +2 -0
- package/lib/models/sortFields.js +21 -0
- package/lib/models/sortFields.js.map +1 -0
- package/lib/models/typeObjects.d.ts +2 -0
- package/lib/models/typeObjects.js +86 -0
- package/lib/models/typeObjects.js.map +1 -0
- package/lib/screens/RequestCreationScreen.d.ts +3 -0
- package/lib/screens/RequestCreationScreen.js +139 -0
- package/lib/screens/RequestCreationScreen.js.map +1 -0
- package/lib/screens/RequestDetailsScreen.d.ts +5 -0
- package/lib/screens/RequestDetailsScreen.js +67 -0
- package/lib/screens/RequestDetailsScreen.js.map +1 -0
- package/lib/screens/RequestLineFormScreen.d.ts +6 -0
- package/lib/screens/RequestLineFormScreen.js +71 -0
- package/lib/screens/RequestLineFormScreen.js.map +1 -0
- package/lib/screens/RequestLineListScreen.d.ts +5 -0
- package/lib/screens/RequestLineListScreen.js +51 -0
- package/lib/screens/RequestLineListScreen.js.map +1 -0
- package/lib/screens/RequestListScreen.d.ts +5 -0
- package/lib/screens/RequestListScreen.js +47 -0
- package/lib/screens/RequestListScreen.js.map +1 -0
- package/lib/screens/index.d.ts +59 -0
- package/lib/screens/index.js +66 -0
- package/lib/screens/index.js.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +19 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/request-creation.d.ts +7 -0
- package/lib/types/request-creation.js +25 -0
- package/lib/types/request-creation.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useMemo, useState } from 'react';
|
|
19
|
+
import { ChipSelect, Screen } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { SearchListView, useSelector, useTranslator, useTypeHelpers, useTypes, } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { RequestCard, SupplierSearchBar } from '../components';
|
|
22
|
+
import { searchPurchaseRequest } from '../features/purchaseRequestSlice';
|
|
23
|
+
const displayPurchaseRequestSeq = item => item.purchaseRequestSeq;
|
|
24
|
+
const RequestListScreen = ({ navigation }) => {
|
|
25
|
+
const I18n = useTranslator();
|
|
26
|
+
const { PurchaseRequest } = useTypes();
|
|
27
|
+
const { getSelectionItems } = useTypeHelpers();
|
|
28
|
+
const { loadingPurchaseRequests, moreLoadingPurchaseRequest, isListEndPurchaseRequest, purchaseRequestList, } = useSelector(state => state.purchase_purchaseRequest);
|
|
29
|
+
const { user } = useSelector(state => state.user);
|
|
30
|
+
const [selectedStatus, setSelectedStatus] = useState([]);
|
|
31
|
+
const [supplier, setSupplier] = useState();
|
|
32
|
+
const statusList = useMemo(() => getSelectionItems(PurchaseRequest?.statusSelect, selectedStatus), [PurchaseRequest?.statusSelect, getSelectionItems, selectedStatus]);
|
|
33
|
+
const sliceFunctionData = useMemo(() => ({
|
|
34
|
+
statusList: selectedStatus,
|
|
35
|
+
supplier: supplier,
|
|
36
|
+
companyId: user.activeCompany?.id,
|
|
37
|
+
}), [selectedStatus, supplier, user.activeCompany?.id]);
|
|
38
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
39
|
+
<SearchListView list={purchaseRequestList} loading={loadingPurchaseRequests} moreLoading={moreLoadingPurchaseRequest} isListEnd={isListEndPurchaseRequest} sliceFunction={searchPurchaseRequest} sliceFunctionData={sliceFunctionData} searchPlaceholder={I18n.t('Base_Search')} displaySearchValue={displayPurchaseRequestSeq} chipComponent={<ChipSelect mode="multi" onChangeValue={setSelectedStatus} selectionItems={statusList}/>} headerChildren={<SupplierSearchBar onChange={setSupplier} defaultValue={supplier}/>} renderListItem={({ item }) => (<RequestCard onPress={() => {
|
|
40
|
+
navigation.navigate('RequestDetailsView', {
|
|
41
|
+
idRequest: item.id,
|
|
42
|
+
});
|
|
43
|
+
}} statusSelect={item.statusSelect} reference={item.purchaseRequestSeq} companyName={item.company?.name} supplierPartnerName={item.supplierPartner?.fullName}/>)}/>
|
|
44
|
+
</Screen>);
|
|
45
|
+
};
|
|
46
|
+
export default RequestListScreen;
|
|
47
|
+
//# sourceMappingURL=RequestListScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestListScreen.js","sourceRoot":"","sources":["../../src/screens/RequestListScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AACzD,OA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,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,EACpD,CACH,CAAC,EAEN;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import RequestCreationScreen from './RequestCreationScreen';
|
|
3
|
+
import RequestDetailsScreen from './RequestDetailsScreen';
|
|
4
|
+
import RequestLineFormScreen from './RequestLineFormScreen';
|
|
5
|
+
import RequestLineListScreen from './RequestLineListScreen';
|
|
6
|
+
import RequestListScreen from './RequestListScreen';
|
|
7
|
+
declare const _default: {
|
|
8
|
+
RequestListScreen: {
|
|
9
|
+
title: string;
|
|
10
|
+
component: ({ navigation }: {
|
|
11
|
+
navigation: any;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
13
|
+
options: {
|
|
14
|
+
shadedHeader: boolean;
|
|
15
|
+
};
|
|
16
|
+
isUsableOnShortcut: boolean;
|
|
17
|
+
};
|
|
18
|
+
RequestDetailsView: {
|
|
19
|
+
title: string;
|
|
20
|
+
actionID: string;
|
|
21
|
+
component: ({ route }: {
|
|
22
|
+
route: any;
|
|
23
|
+
}) => import("react").JSX.Element;
|
|
24
|
+
options: {
|
|
25
|
+
shadedHeader: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
RequestLineListScreen: {
|
|
29
|
+
title: string;
|
|
30
|
+
component: ({ navigation }: {
|
|
31
|
+
navigation: any;
|
|
32
|
+
}) => import("react").JSX.Element;
|
|
33
|
+
options: {
|
|
34
|
+
shadedHeader: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
RequestCreationScreen: {
|
|
38
|
+
title: string;
|
|
39
|
+
component: () => import("react").JSX.Element;
|
|
40
|
+
options: {
|
|
41
|
+
shadedHeader: boolean;
|
|
42
|
+
};
|
|
43
|
+
isUsableOnShortcut: boolean;
|
|
44
|
+
};
|
|
45
|
+
RequestLineFormScreen: {
|
|
46
|
+
title: string;
|
|
47
|
+
actionID: string;
|
|
48
|
+
component: ({ navigation, route }: {
|
|
49
|
+
navigation: any;
|
|
50
|
+
route: any;
|
|
51
|
+
}) => import("react").JSX.Element;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
55
|
+
export { RequestDetailsScreen };
|
|
56
|
+
export { RequestListScreen };
|
|
57
|
+
export { RequestLineFormScreen };
|
|
58
|
+
export { RequestLineListScreen };
|
|
59
|
+
export { RequestCreationScreen };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import RequestCreationScreen from './RequestCreationScreen';
|
|
19
|
+
import RequestDetailsScreen from './RequestDetailsScreen';
|
|
20
|
+
import RequestLineFormScreen from './RequestLineFormScreen';
|
|
21
|
+
import RequestLineListScreen from './RequestLineListScreen';
|
|
22
|
+
import RequestListScreen from './RequestListScreen';
|
|
23
|
+
export default {
|
|
24
|
+
RequestListScreen: {
|
|
25
|
+
title: 'Purchase_InternalRequests',
|
|
26
|
+
component: RequestListScreen,
|
|
27
|
+
options: {
|
|
28
|
+
shadedHeader: false,
|
|
29
|
+
},
|
|
30
|
+
isUsableOnShortcut: true,
|
|
31
|
+
},
|
|
32
|
+
RequestDetailsView: {
|
|
33
|
+
title: 'Purchase_InternalRequest',
|
|
34
|
+
actionID: 'purchase_purchaseRequest_details',
|
|
35
|
+
component: RequestDetailsScreen,
|
|
36
|
+
options: {
|
|
37
|
+
shadedHeader: false,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
RequestLineListScreen: {
|
|
41
|
+
title: 'Purchase_InternalRequest',
|
|
42
|
+
component: RequestLineListScreen,
|
|
43
|
+
options: {
|
|
44
|
+
shadedHeader: false,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
RequestCreationScreen: {
|
|
48
|
+
title: 'Purchase_CreateRequest',
|
|
49
|
+
component: RequestCreationScreen,
|
|
50
|
+
options: {
|
|
51
|
+
shadedHeader: false,
|
|
52
|
+
},
|
|
53
|
+
isUsableOnShortcut: true,
|
|
54
|
+
},
|
|
55
|
+
RequestLineFormScreen: {
|
|
56
|
+
title: 'Purchase_InternalRequest',
|
|
57
|
+
actionID: 'purchase_purchaseRequestLine_details',
|
|
58
|
+
component: RequestLineFormScreen,
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
export { RequestDetailsScreen };
|
|
62
|
+
export { RequestListScreen };
|
|
63
|
+
export { RequestLineFormScreen };
|
|
64
|
+
export { RequestLineListScreen };
|
|
65
|
+
export { RequestCreationScreen };
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/screens/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,eAAe;IACb,iBAAiB,EAAE;QACjB,KAAK,EAAE,2BAA2B;QAClC,SAAS,EAAE,iBAAiB;QAC5B,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;QACD,kBAAkB,EAAE,IAAI;KACzB;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,0BAA0B;QACjC,QAAQ,EAAE,kCAAkC;QAC5C,SAAS,EAAE,oBAAoB;QAC/B,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,qBAAqB,EAAE;QACrB,KAAK,EAAE,0BAA0B;QACjC,SAAS,EAAE,qBAAqB;QAChC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,qBAAqB,EAAE;QACrB,KAAK,EAAE,wBAAwB;QAC/B,SAAS,EAAE,qBAAqB;QAChC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;QACD,kBAAkB,EAAE,IAAI;KACzB;IACD,qBAAqB,EAAE;QACrB,KAAK,EAAE,0BAA0B;QACjC,QAAQ,EAAE,sCAAsC;QAChD,SAAS,EAAE,qBAAqB;KACjC;CACF,CAAC;AAEF,OAAO,EAAC,oBAAoB,EAAC,CAAC;AAC9B,OAAO,EAAC,iBAAiB,EAAC,CAAC;AAC3B,OAAO,EAAC,qBAAqB,EAAC,CAAC;AAC/B,OAAO,EAAC,qBAAqB,EAAC,CAAC;AAC/B,OAAO,EAAC,qBAAqB,EAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RequestCreation } from './request-creation';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export { default as RequestCreation } from './request-creation';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
class RequestCreation {
|
|
19
|
+
static step = {
|
|
20
|
+
addLine: 0,
|
|
21
|
+
validateLine: 1,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export default RequestCreation;
|
|
25
|
+
//# sourceMappingURL=request-creation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-creation.js","sourceRoot":"","sources":["../../src/types/request-creation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,eAAe;IACnB,MAAM,CAAC,IAAI,GAAG;QACZ,OAAO,EAAE,CAAC;QACV,YAAY,EAAE,CAAC;KAChB,CAAC;;AAGJ,eAAe,eAAe,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@axelor/aos-mobile-purchase",
|
|
3
|
+
"version": "8.3.0",
|
|
4
|
+
"author": "Axelor",
|
|
5
|
+
"license": "AGPL-3.0-only",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"main": "lib/index.js",
|
|
10
|
+
"types": "lib/index.d.js",
|
|
11
|
+
"files": ["lib"],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"clean": "rm -rf lib/",
|
|
14
|
+
"compile": "tsc -p tsconfig.build.json",
|
|
15
|
+
"dev": "npm run compile -- --watch",
|
|
16
|
+
"build": "npm run clean && npm run compile",
|
|
17
|
+
"npm-publish": "npm publish",
|
|
18
|
+
"lint": "eslint .",
|
|
19
|
+
"format": "prettier --write src/",
|
|
20
|
+
"format:check": "prettier --check src/",
|
|
21
|
+
"license:add": "npx add-copyright-header --generate --dir 'src'"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "18.2.0",
|
|
25
|
+
"react-native": "0.73.9"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@axelor/aos-mobile-core": "8.3.0",
|
|
29
|
+
"@axelor/aos-mobile-ui": "8.3.0",
|
|
30
|
+
"@reduxjs/toolkit": "^2.2.7"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@babel/runtime": "^7.20.0",
|
|
34
|
+
"@react-native/babel-preset": "0.73.21",
|
|
35
|
+
"@react-native/eslint-config": "0.73.2",
|
|
36
|
+
"@types/react": "^18.2.6",
|
|
37
|
+
"eslint": "8.57.0",
|
|
38
|
+
"prettier": "^3.3.3",
|
|
39
|
+
"react": "18.2.0",
|
|
40
|
+
"react-native": "0.73.9"
|
|
41
|
+
},
|
|
42
|
+
"resolutions": {
|
|
43
|
+
"@types/react": "^18.2.6"
|
|
44
|
+
}
|
|
45
|
+
}
|