@axelor/aos-mobile-dms 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/document-api.d.ts +39 -0
- package/lib/api/document-api.js +254 -0
- package/lib/api/document-api.js.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +19 -0
- package/lib/api/index.js.map +1 -0
- package/lib/components/atoms/AuthorFilter/AuthorFilter.d.ts +7 -0
- package/lib/components/atoms/AuthorFilter/AuthorFilter.js +51 -0
- package/lib/components/atoms/AuthorFilter/AuthorFilter.js.map +1 -0
- package/lib/components/atoms/DirectoryCard/DirectoryCard.d.ts +6 -0
- package/lib/components/atoms/DirectoryCard/DirectoryCard.js +55 -0
- package/lib/components/atoms/DirectoryCard/DirectoryCard.js.map +1 -0
- package/lib/components/atoms/DocumentCard/DocumentCard.d.ts +7 -0
- package/lib/components/atoms/DocumentCard/DocumentCard.js +63 -0
- package/lib/components/atoms/DocumentCard/DocumentCard.js.map +1 -0
- package/lib/components/atoms/SwitchDocumentType/SwitchDocumentType.d.ts +7 -0
- package/lib/components/atoms/SwitchDocumentType/SwitchDocumentType.js +44 -0
- package/lib/components/atoms/SwitchDocumentType/SwitchDocumentType.js.map +1 -0
- package/lib/components/atoms/index.d.ts +4 -0
- package/lib/components/atoms/index.js +22 -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/DocumentActionCard/DocumentActionCard.d.ts +7 -0
- package/lib/components/molecules/DocumentActionCard/DocumentActionCard.js +79 -0
- package/lib/components/molecules/DocumentActionCard/DocumentActionCard.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/ParentDirectorySearchBar/ParentDirectorySearchBar.d.ts +12 -0
- package/lib/components/organisms/ParentDirectorySearchBar/ParentDirectorySearchBar.js +42 -0
- package/lib/components/organisms/ParentDirectorySearchBar/ParentDirectorySearchBar.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/DocumentList/DocumentList.d.ts +7 -0
- package/lib/components/templates/DocumentList/DocumentList.js +100 -0
- package/lib/components/templates/DocumentList/DocumentList.js.map +1 -0
- package/lib/components/templates/index.d.ts +1 -0
- package/lib/components/templates/index.js +19 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +1 -0
- package/lib/features/asyncFunctions-index.js +19 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/documentSlice.d.ts +132 -0
- package/lib/features/documentSlice.js +135 -0
- package/lib/features/documentSlice.js.map +1 -0
- package/lib/features/index.d.ts +1 -0
- package/lib/features/index.js +19 -0
- package/lib/features/index.js.map +1 -0
- package/lib/hooks/use-dms-header-actions.d.ts +1 -0
- package/lib/hooks/use-dms-header-actions.js +44 -0
- package/lib/hooks/use-dms-header-actions.js.map +1 -0
- package/lib/i18n/en.json +30 -0
- package/lib/i18n/fr.json +30 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +76 -0
- package/lib/index.js.map +1 -0
- package/lib/models/forms.d.ts +2 -0
- package/lib/models/forms.js +67 -0
- package/lib/models/forms.js.map +1 -0
- package/lib/models/index.d.ts +4 -0
- package/lib/models/index.js +22 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/objectFields.d.ts +2 -0
- package/lib/models/objectFields.js +36 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +21 -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/screens/AllDocumentsScreen.d.ts +5 -0
- package/lib/screens/AllDocumentsScreen.js +28 -0
- package/lib/screens/AllDocumentsScreen.js.map +1 -0
- package/lib/screens/AttachedFilesScreen.d.ts +6 -0
- package/lib/screens/AttachedFilesScreen.js +77 -0
- package/lib/screens/AttachedFilesScreen.js.map +1 -0
- package/lib/screens/DocumentFormScreen.d.ts +6 -0
- package/lib/screens/DocumentFormScreen.js +64 -0
- package/lib/screens/DocumentFormScreen.js.map +1 -0
- package/lib/screens/MyFavoriteDocumentsScreen.d.ts +3 -0
- package/lib/screens/MyFavoriteDocumentsScreen.js +43 -0
- package/lib/screens/MyFavoriteDocumentsScreen.js.map +1 -0
- package/lib/screens/index.d.ts +49 -0
- package/lib/screens/index.js +57 -0
- package/lib/screens/index.js.map +1 -0
- package/lib/types/file.d.ts +13 -0
- package/lib/types/file.js +127 -0
- package/lib/types/file.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/utils/attachedFilesGenericAction.d.ts +17 -0
- package/lib/utils/attachedFilesGenericAction.js +59 -0
- package/lib/utils/attachedFilesGenericAction.js.map +1 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +20 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/moduleHelper.d.ts +19 -0
- package/lib/utils/moduleHelper.js +56 -0
- package/lib/utils/moduleHelper.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,56 @@
|
|
|
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 { AllDocumentsScreen } from '../screens';
|
|
19
|
+
const createAllDocumentsScreenComponent = (defaultParent) => {
|
|
20
|
+
return props => AllDocumentsScreen({ ...props, defaultParent });
|
|
21
|
+
};
|
|
22
|
+
export const createMenusScreen = ({ favouriteFolderSet, favouriteFileSet, }) => {
|
|
23
|
+
let menus = {};
|
|
24
|
+
let screens = {};
|
|
25
|
+
if (Array.isArray(favouriteFileSet) && favouriteFileSet.length > 0) {
|
|
26
|
+
menus = {
|
|
27
|
+
dms_menu_favoriteDocuments: {
|
|
28
|
+
title: 'Dms_MyFavoriteDocuments',
|
|
29
|
+
icon: 'folder-check',
|
|
30
|
+
parent: 'app-dms',
|
|
31
|
+
screen: 'FavoriteDocuments',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
if (Array.isArray(favouriteFolderSet) && favouriteFolderSet.length > 0) {
|
|
36
|
+
favouriteFolderSet.forEach(folder => {
|
|
37
|
+
const screenKey = `DocumentsScreen_${folder.id}`;
|
|
38
|
+
screens[screenKey] = {
|
|
39
|
+
title: 'Dms_AllDocuments',
|
|
40
|
+
component: createAllDocumentsScreenComponent(folder),
|
|
41
|
+
options: {
|
|
42
|
+
shadedHeader: false,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const menuKey = `dms_menu_documents${folder.id}`;
|
|
46
|
+
menus[menuKey] = {
|
|
47
|
+
title: folder.fileName,
|
|
48
|
+
icon: 'folder',
|
|
49
|
+
parent: 'app-dms',
|
|
50
|
+
screen: screenKey,
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return { menus, screens };
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=moduleHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleHelper.js","sourceRoot":"","sources":["../../src/utils/moduleHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,kBAAkB,EAAC,MAAM,YAAY,CAAC;AAE9C,MAAM,iCAAiC,GAAG,CAAC,aAAkB,EAAE,EAAE;IAC/D,OAAO,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAC,GAAG,KAAK,EAAE,aAAa,EAAC,CAAC,CAAC;AAChE,CAAC,CAAC;AAeF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,kBAAkB,EAClB,gBAAgB,GAIjB,EAAoC,EAAE;IACrC,IAAI,KAAK,GAAU,EAAE,CAAC;IACtB,IAAI,OAAO,GAAY,EAAE,CAAC;IAE1B,IAAI,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;QAClE,KAAK,GAAG;YACN,0BAA0B,EAAE;gBAC1B,KAAK,EAAE,yBAAyB;gBAChC,IAAI,EAAE,cAAc;gBACpB,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,mBAAmB;aAC5B;SACF,CAAC;KACH;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE;QACtE,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YAClC,MAAM,SAAS,GAAG,mBAAmB,MAAM,CAAC,EAAE,EAAE,CAAC;YACjD,OAAO,CAAC,SAAS,CAAC,GAAG;gBACnB,KAAK,EAAE,kBAAkB;gBACzB,SAAS,EAAE,iCAAiC,CAAC,MAAM,CAAC;gBACpD,OAAO,EAAE;oBACP,YAAY,EAAE,KAAK;iBACpB;aACF,CAAC;YAEF,MAAM,OAAO,GAAG,qBAAqB,MAAM,CAAC,EAAE,EAAE,CAAC;YACjD,KAAK,CAAC,OAAO,CAAC,GAAG;gBACf,KAAK,EAAE,MAAM,CAAC,QAAQ;gBACtB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,SAAS;aAClB,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,EAAC,KAAK,EAAE,OAAO,EAAC,CAAC;AAC1B,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@axelor/aos-mobile-dms",
|
|
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
|
+
}
|