@axelor/aos-mobile-team 0.0.0-stage → 9.2.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 +41 -2
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +20 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/team-api.d.ts +4 -0
- package/lib/api/team-api.js +32 -0
- package/lib/api/team-api.js.map +1 -0
- package/lib/api/team-task-api.d.ts +21 -0
- package/lib/api/team-task-api.js +114 -0
- package/lib/api/team-task-api.js.map +1 -0
- package/lib/components/atoms/TeamTaskActionSheet/TeamTaskActionSheet.d.ts +9 -0
- package/lib/components/atoms/TeamTaskActionSheet/TeamTaskActionSheet.js +169 -0
- package/lib/components/atoms/TeamTaskActionSheet/TeamTaskActionSheet.js.map +1 -0
- package/lib/components/atoms/TeamTaskCard/TeamTaskCard.d.ts +17 -0
- package/lib/components/atoms/TeamTaskCard/TeamTaskCard.js +71 -0
- package/lib/components/atoms/TeamTaskCard/TeamTaskCard.js.map +1 -0
- package/lib/components/atoms/index.d.ts +2 -0
- package/lib/components/atoms/index.js +20 -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/TeamTaskActionCard/TeamTaskActionCard.d.ts +6 -0
- package/lib/components/molecules/TeamTaskActionCard/TeamTaskActionCard.js +28 -0
- package/lib/components/molecules/TeamTaskActionCard/TeamTaskActionCard.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/TaskPriorityPicker/TaskPriorityPicker.d.ts +13 -0
- package/lib/components/organisms/TaskPriorityPicker/TaskPriorityPicker.js +35 -0
- package/lib/components/organisms/TaskPriorityPicker/TaskPriorityPicker.js.map +1 -0
- package/lib/components/organisms/TaskStatusPicker/TaskStatusPicker.d.ts +13 -0
- package/lib/components/organisms/TaskStatusPicker/TaskStatusPicker.js +35 -0
- package/lib/components/organisms/TaskStatusPicker/TaskStatusPicker.js.map +1 -0
- package/lib/components/organisms/TeamSearchBar/TeamSearchBar.d.ts +11 -0
- package/lib/components/organisms/TeamSearchBar/TeamSearchBar.js +38 -0
- package/lib/components/organisms/TeamSearchBar/TeamSearchBar.js.map +1 -0
- package/lib/components/organisms/index.d.ts +3 -0
- package/lib/components/organisms/index.js +21 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/components/templates/TeamTaskFilters/TeamTaskFilters.d.ts +7 -0
- package/lib/components/templates/TeamTaskFilters/TeamTaskFilters.js +41 -0
- package/lib/components/templates/TeamTaskFilters/TeamTaskFilters.js.map +1 -0
- package/lib/components/templates/TeamTaskListView/TeamTaskListView.d.ts +7 -0
- package/lib/components/templates/TeamTaskListView/TeamTaskListView.js +58 -0
- package/lib/components/templates/TeamTaskListView/TeamTaskListView.js.map +1 -0
- package/lib/components/templates/index.d.ts +2 -0
- package/lib/components/templates/index.js +20 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +2 -0
- package/lib/features/asyncFunctions-index.js +20 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/index.d.ts +2 -0
- package/lib/features/index.js +20 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/teamSlice.d.ts +7 -0
- package/lib/features/teamSlice.js +50 -0
- package/lib/features/teamSlice.js.map +1 -0
- package/lib/features/teamTaskSlice.d.ts +13 -0
- package/lib/features/teamTaskSlice.js +92 -0
- package/lib/features/teamTaskSlice.js.map +1 -0
- package/lib/hooks/use-team-header.d.ts +1 -0
- package/lib/hooks/use-team-header.js +63 -0
- package/lib/hooks/use-team-header.js.map +1 -0
- package/lib/i18n/en.json +38 -0
- package/lib/i18n/fr.json +38 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +55 -0
- package/lib/index.js.map +1 -0
- package/lib/models/forms.d.ts +2 -0
- package/lib/models/forms.js +69 -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 +34 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +22 -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 +81 -0
- package/lib/models/typeObjects.js.map +1 -0
- package/lib/screens/TeamTaskDetailsScreen.d.ts +3 -0
- package/lib/screens/TeamTaskDetailsScreen.js +67 -0
- package/lib/screens/TeamTaskDetailsScreen.js.map +1 -0
- package/lib/screens/TeamTaskListScreen.d.ts +3 -0
- package/lib/screens/TeamTaskListScreen.js +25 -0
- package/lib/screens/TeamTaskListScreen.js.map +1 -0
- package/lib/screens/index.d.ts +9 -0
- package/lib/screens/index.js +37 -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/team-task-scope.d.ts +27 -0
- package/lib/types/team-task-scope.js +85 -0
- package/lib/types/team-task-scope.js.map +1 -0
- package/package.json +51 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamTaskActionCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/TeamTaskActionCard/TeamTaskActionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAE9D,MAAM,kBAAkB,GAAG,CAAC,EAC1B,IAAI,EACJ,SAAS,GAIV,EAAE,EAAE;IACH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAEvD,OAAO,CACL,EACE;MAAA,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EACxD;MAAA,CAAC,mBAAmB,CAClB,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CACjC,SAAS,CAAC,CAAC,SAAS,CAAC,EAEzB;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TeamTaskActionCard } from './TeamTaskActionCard/TeamTaskActionCard';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 TeamTaskActionCard } from './TeamTaskActionCard/TeamTaskActionCard';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/molecules/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TaskPriorityPickerProps {
|
|
3
|
+
style?: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
defaultValue?: any;
|
|
6
|
+
onChange: (_v?: any) => void;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
showTitle?: boolean;
|
|
10
|
+
isMultiValue?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const TaskPriorityPicker: (props: TaskPriorityPickerProps) => React.JSX.Element;
|
|
13
|
+
export default TaskPriorityPicker;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 } from 'react';
|
|
19
|
+
import { MultiValuePicker, Picker } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { useTranslator, useTypeHelpers, useTypes } from '@axelor/aos-mobile-core';
|
|
21
|
+
const TaskPriorityPickerAux = ({ style, title = 'Team_Priority', defaultValue, onChange, required = false, readonly = false, showTitle = true, isMultiValue = false, }) => {
|
|
22
|
+
const I18n = useTranslator();
|
|
23
|
+
const { TeamTask } = useTypes();
|
|
24
|
+
const { getSelectionItems } = useTypeHelpers();
|
|
25
|
+
const prioritySet = useMemo(() => getSelectionItems(TeamTask?.priority), [TeamTask?.priority, getSelectionItems]);
|
|
26
|
+
if (isMultiValue) {
|
|
27
|
+
return (<MultiValuePicker style={style} title={showTitle ? I18n.t(title) : undefined} placeholder={I18n.t(title)} listItems={prioritySet} onValueChange={onChange} readonly={readonly} required={required}/>);
|
|
28
|
+
}
|
|
29
|
+
return (<Picker style={style} title={showTitle ? I18n.t(title) : undefined} placeholder={I18n.t(title)} defaultValue={defaultValue} valueField="key" labelField="title" listItems={prioritySet} onValueChange={onChange} readonly={readonly} required={required}/>);
|
|
30
|
+
};
|
|
31
|
+
const TaskPriorityPicker = (props) => {
|
|
32
|
+
return <TaskPriorityPickerAux {...props}/>;
|
|
33
|
+
};
|
|
34
|
+
export default TaskPriorityPicker;
|
|
35
|
+
//# sourceMappingURL=TaskPriorityPicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskPriorityPicker.js","sourceRoot":"","sources":["../../../../src/components/organisms/TaskPriorityPicker/TaskPriorityPicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAahF,MAAM,qBAAqB,GAAG,CAAC,EAC7B,KAAK,EACL,KAAK,GAA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CAChB,UAAU,CAAC,OAAO,CAClB,SAAS,CAAC,CAAC,WAAW,CAAC,CACvB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE;IAC5D,OAAO,CAAC,qBAAqB,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AAC9C,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TaskStatusPickerProps {
|
|
3
|
+
style?: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
defaultValue?: any;
|
|
6
|
+
onChange: (_v?: any) => void;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
showTitle?: boolean;
|
|
10
|
+
isMultiValue?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const TaskStatusPicker: (props: TaskStatusPickerProps) => React.JSX.Element;
|
|
13
|
+
export default TaskStatusPicker;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 } from 'react';
|
|
19
|
+
import { MultiValuePicker, Picker } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { useTranslator, useTypeHelpers, useTypes } from '@axelor/aos-mobile-core';
|
|
21
|
+
const TaskStatusPickerAux = ({ style, title = 'Team_Status', defaultValue, onChange, required = false, readonly = false, showTitle = true, isMultiValue = false, }) => {
|
|
22
|
+
const I18n = useTranslator();
|
|
23
|
+
const { TeamTask } = useTypes();
|
|
24
|
+
const { getSelectionItems } = useTypeHelpers();
|
|
25
|
+
const statusSet = useMemo(() => getSelectionItems(TeamTask?.status), [TeamTask?.status, getSelectionItems]);
|
|
26
|
+
if (isMultiValue) {
|
|
27
|
+
return (<MultiValuePicker style={style} title={showTitle ? I18n.t(title) : undefined} placeholder={I18n.t(title)} listItems={statusSet} onValueChange={onChange} readonly={readonly} required={required}/>);
|
|
28
|
+
}
|
|
29
|
+
return (<Picker style={style} title={showTitle ? I18n.t(title) : undefined} placeholder={I18n.t(title)} defaultValue={defaultValue} valueField="key" labelField="title" listItems={statusSet} onValueChange={onChange} readonly={readonly} required={required}/>);
|
|
30
|
+
};
|
|
31
|
+
const TaskStatusPicker = (props) => {
|
|
32
|
+
return <TaskStatusPickerAux {...props}/>;
|
|
33
|
+
};
|
|
34
|
+
export default TaskStatusPicker;
|
|
35
|
+
//# sourceMappingURL=TaskStatusPicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskStatusPicker.js","sourceRoot":"","sources":["../../../../src/components/organisms/TaskStatusPicker/TaskStatusPicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,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AC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAC3B,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,UAAU,CAAC,KAAK,CAChB,UAAU,CAAC,OAAO,CAClB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;IACxD,OAAO,CAAC,mBAAmB,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AAC5C,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TeamSearchBarProps {
|
|
3
|
+
style?: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
defaultValue?: any;
|
|
6
|
+
onChange: (_v?: any) => void;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const TeamSearchBar: (props: TeamSearchBarProps) => React.JSX.Element;
|
|
11
|
+
export default TeamSearchBar;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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, { useCallback } from 'react';
|
|
19
|
+
import { AutoCompleteSearch } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { displayItemName, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { searchTeams } from '../../../features/teamSlice';
|
|
22
|
+
const TeamSearchBarAux = ({ style, title = 'Team_Team', defaultValue, onChange, required = false, readonly = false, }) => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
const dispatch = useDispatch();
|
|
25
|
+
const { teamList, loadingTeams, moreLoadingTeam, isListEndTeam } = useSelector(state => state.team_team);
|
|
26
|
+
const searchAPI = useCallback(({ page = 0, searchValue }) => {
|
|
27
|
+
dispatch(searchTeams({
|
|
28
|
+
page,
|
|
29
|
+
searchValue,
|
|
30
|
+
}));
|
|
31
|
+
}, [dispatch]);
|
|
32
|
+
return (<AutoCompleteSearch style={style} title={I18n.t(title)} placeholder={I18n.t(title)} objectList={teamList} loadingList={loadingTeams} moreLoading={moreLoadingTeam} isListEnd={isListEndTeam} value={defaultValue} onChangeValue={onChange} fetchData={searchAPI} displayValue={displayItemName} readonly={readonly} required={required} showDetailsPopup translator={I18n.t}/>);
|
|
33
|
+
};
|
|
34
|
+
const TeamSearchBar = (props) => {
|
|
35
|
+
return <TeamSearchBarAux {...props}/>;
|
|
36
|
+
};
|
|
37
|
+
export default TeamSearchBar;
|
|
38
|
+
//# sourceMappingURL=TeamSearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamSearchBar.js","sourceRoot":"","sources":["../../../../src/components/organisms/TeamSearchBar/TeamSearchBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,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AS,CAAC,CAAC,SAAS,CAAC,CACrB,YAAY,CAAC,CAAC,eAAe,CAAC,CAC9B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,gBAAgB,CAChB,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IAClD,OAAO,CAAC,gBAAgB,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACzC,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 TaskPriorityPicker } from './TaskPriorityPicker/TaskPriorityPicker';
|
|
19
|
+
export { default as TaskStatusPicker } from './TaskStatusPicker/TaskStatusPicker';
|
|
20
|
+
export { default as TeamSearchBar } from './TeamSearchBar/TeamSearchBar';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/organisms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SetterFunction<T> = (value: T | ((_current: T) => T)) => void;
|
|
3
|
+
declare const TeamTaskFilters: ({ setSelectedStatus, setSelectedPriority, }: {
|
|
4
|
+
setSelectedStatus: SetterFunction<any[]>;
|
|
5
|
+
setSelectedPriority: SetterFunction<any[]>;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export default TeamTaskFilters;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { TaskPriorityPicker, TaskStatusPicker } from '../../organisms';
|
|
21
|
+
const TeamTaskFilters = ({ setSelectedStatus, setSelectedPriority, }) => {
|
|
22
|
+
return (<View style={styles.rowWrapper}>
|
|
23
|
+
<TaskStatusPicker style={styles.flex} onChange={setSelectedStatus} showTitle={false} isMultiValue/>
|
|
24
|
+
<TaskPriorityPicker style={styles.flex} onChange={setSelectedPriority} showTitle={false} isMultiValue/>
|
|
25
|
+
</View>);
|
|
26
|
+
};
|
|
27
|
+
const styles = StyleSheet.create({
|
|
28
|
+
rowWrapper: {
|
|
29
|
+
zIndex: 1,
|
|
30
|
+
width: '90%',
|
|
31
|
+
flexDirection: 'row',
|
|
32
|
+
alignSelf: 'center',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
gap: 5,
|
|
35
|
+
},
|
|
36
|
+
flex: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
export default TeamTaskFilters;
|
|
41
|
+
//# sourceMappingURL=TeamTaskFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamTaskFilters.js","sourceRoot":"","sources":["../../../../src/components/templates/TeamTaskFilters/TeamTaskFilters.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,kBAAkB,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAIrE,MAAM,eAAe,GAAG,CAAC,EACvB,iBAAiB,EACjB,mBAAmB,GAIpB,EAAE,EAAE;IACH,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAC7B;MAAA,CAAC,gBAAgB,CACf,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnB,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAC5B,SAAS,CAAC,CAAC,KAAK,CAAC,CACjB,YAAY,EAEd;MAAA,CAAC,kBAAkB,CACjB,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnB,QAAQ,CAAC,CAAC,mBAAmB,CAAC,CAC9B,SAAS,CAAC,CAAC,KAAK,CAAC,CACjB,YAAY,EAEhB;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,KAAK;QACZ,aAAa,EAAE,KAAK;QACpB,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACP;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TeamTaskScopeConfig } from '../../../types';
|
|
3
|
+
interface TeamTaskListViewProps {
|
|
4
|
+
scopeList?: TeamTaskScopeConfig[];
|
|
5
|
+
}
|
|
6
|
+
declare const TeamTaskListView: ({ scopeList }: TeamTaskListViewProps) => React.JSX.Element;
|
|
7
|
+
export default TeamTaskListView;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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, { useCallback, useMemo, useState } from 'react';
|
|
19
|
+
import { ChipSelect, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
20
|
+
import { SearchListView, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { TeamTaskScope } from '../../../types';
|
|
22
|
+
import { searchTeamTasks } from '../../../features/teamTaskSlice';
|
|
23
|
+
import { TeamTaskActionCard } from '../../molecules';
|
|
24
|
+
import { TeamTaskFilters } from '../../templates';
|
|
25
|
+
const NO_SCOPE = [];
|
|
26
|
+
const TeamTaskListView = ({ scopeList = NO_SCOPE }) => {
|
|
27
|
+
const I18n = useTranslator();
|
|
28
|
+
const Colors = useThemeColor();
|
|
29
|
+
const { loadingTeamTasks, moreLoadingTeamTask, isListEndTeamTask, teamTaskList, } = useSelector(state => state.team_teamTask);
|
|
30
|
+
const { user } = useSelector(state => state.user);
|
|
31
|
+
const defaultScope = useMemo(() => TeamTaskScope.getDefaultScope(scopeList), [scopeList]);
|
|
32
|
+
const [selectedStatus, setSelectedStatus] = useState([]);
|
|
33
|
+
const [selectedPriority, setSelectedPriority] = useState([]);
|
|
34
|
+
const [selectedScope, setSelectedScope] = useState(defaultScope?.key);
|
|
35
|
+
const [refreshKey, setRefreshKey] = useState(0);
|
|
36
|
+
const selectionItems = useMemo(() => scopeList.map(({ key, title, color }) => ({
|
|
37
|
+
key,
|
|
38
|
+
title: I18n.t(title),
|
|
39
|
+
color: color ?? Colors.primaryColor,
|
|
40
|
+
isActive: key === defaultScope?.key,
|
|
41
|
+
})), [scopeList, defaultScope, Colors, I18n]);
|
|
42
|
+
const scopeFilter = useMemo(() => TeamTaskScope.getScopeFilter(scopeList, selectedScope, {
|
|
43
|
+
userId: user?.id,
|
|
44
|
+
}), [scopeList, selectedScope, user?.id]);
|
|
45
|
+
const handleScopeChange = useCallback((items) => {
|
|
46
|
+
setSelectedScope(items?.[0]?.key);
|
|
47
|
+
}, []);
|
|
48
|
+
const handleRefresh = useCallback(() => setRefreshKey(_current => _current + 1), []);
|
|
49
|
+
const sliceFunctionData = useMemo(() => ({
|
|
50
|
+
selectedStatus,
|
|
51
|
+
selectedPriority,
|
|
52
|
+
scopeFilter,
|
|
53
|
+
refreshKey,
|
|
54
|
+
}), [selectedPriority, selectedStatus, scopeFilter, refreshKey]);
|
|
55
|
+
return (<SearchListView loading={loadingTeamTasks} moreLoading={moreLoadingTeamTask} isListEnd={isListEndTeamTask} list={teamTaskList} sliceFunction={searchTeamTasks} sliceFunctionData={sliceFunctionData} searchPlaceholder={I18n.t('Base_Search')} renderListItem={({ item }) => (<TeamTaskActionCard task={item} onRefresh={handleRefresh}/>)} chipComponent={selectionItems.length > 0 ? (<ChipSelect mode="switch" selectionItems={selectionItems} onChangeValue={handleScopeChange} chipNumberOfLines={2}/>) : null} headerChildren={<TeamTaskFilters setSelectedPriority={setSelectedPriority} setSelectedStatus={setSelectedStatus}/>}/>);
|
|
56
|
+
};
|
|
57
|
+
export default TeamTaskListView;
|
|
58
|
+
//# sourceMappingURL=TeamTaskListView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamTaskListView.js","sourceRoot":"","sources":["../../../../src/components/templates/TeamTaskListView/TeamTaskListView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,aAAa,EAAsB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAA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AC,CAAC,CACzC,cAAc,CAAC,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,CAC1B,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,EAAG,CAC7D,CAAC,CACF,aAAa,CAAC,CACZ,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC1B,CAAC,UAAU,CACT,IAAI,CAAC,QAAQ,CACb,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,aAAa,CAAC,CAAC,iBAAiB,CAAC,CACjC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EACrB,CACH,CAAC,CAAC,CAAC,IACN,CAAC,CACD,cAAc,CAAC,CACb,CAAC,eAAe,CACd,mBAAmB,CAAC,CAAC,mBAAmB,CAAC,CACzC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,EAEzC,CAAC,EACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 TeamTaskFilters } from './TeamTaskFilters/TeamTaskFilters';
|
|
19
|
+
export { default as TeamTaskListView } from './TeamTaskListView/TeamTaskListView';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/templates/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 { searchTeams } from './teamSlice';
|
|
19
|
+
export { deleteTeamTask, fetchTeamTask, saveTeamTask, searchTeamTasks, updateTeamTaskStatus, } from './teamTaskSlice';
|
|
20
|
+
//# sourceMappingURL=asyncFunctions-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncFunctions-index.js","sourceRoot":"","sources":["../../src/features/asyncFunctions-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,oBAAoB,GACrB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 { teamReducer as team_team } from './teamSlice';
|
|
19
|
+
export { teamTaskReducer as team_teamTask } from './teamTaskSlice';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,WAAW,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC;AACrD,OAAO,EAAC,eAAe,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const searchTeams: import("@reduxjs/toolkit").AsyncThunk<any, void, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
2
|
+
export declare const teamReducer: import("redux").Reducer<{
|
|
3
|
+
loadingTeams: boolean;
|
|
4
|
+
moreLoadingTeam: boolean;
|
|
5
|
+
isListEndTeam: boolean;
|
|
6
|
+
teamList: any[];
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
19
|
+
import { generateInifiniteScrollCases, handlerApiCall, } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { searchTeams as _searchTeams } from '../api/team-api';
|
|
21
|
+
export const searchTeams = createAsyncThunk('team_team/searchTeams', async function (data, { getState }) {
|
|
22
|
+
return handlerApiCall({
|
|
23
|
+
fetchFunction: _searchTeams,
|
|
24
|
+
data,
|
|
25
|
+
action: 'Team_SliceAction_SearchTeams',
|
|
26
|
+
getState,
|
|
27
|
+
responseOptions: { isArrayResponse: true },
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
const initialState = {
|
|
31
|
+
loadingTeams: false,
|
|
32
|
+
moreLoadingTeam: false,
|
|
33
|
+
isListEndTeam: false,
|
|
34
|
+
teamList: [],
|
|
35
|
+
};
|
|
36
|
+
const teamSlice = createSlice({
|
|
37
|
+
name: 'team_team',
|
|
38
|
+
initialState,
|
|
39
|
+
reducers: {},
|
|
40
|
+
extraReducers: builder => {
|
|
41
|
+
generateInifiniteScrollCases(builder, searchTeams, {
|
|
42
|
+
loading: 'loadingTeams',
|
|
43
|
+
moreLoading: 'moreLoadingTeam',
|
|
44
|
+
isListEnd: 'isListEndTeam',
|
|
45
|
+
list: 'teamList',
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
export const teamReducer = teamSlice.reducer;
|
|
50
|
+
//# sourceMappingURL=teamSlice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamSlice.js","sourceRoot":"","sources":["../../src/features/teamSlice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,WAAW,IAAI,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE5D,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CACzC,uBAAuB,EACvB,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,YAAY;QAC3B,IAAI;QACJ,MAAM,EAAE,8BAA8B;QACtC,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,YAAY,EAAE,KAAK;IACnB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,KAAK;IACpB,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,SAAS,GAAG,WAAW,CAAC;IAC5B,IAAI,EAAE,WAAW;IACjB,YAAY;IACZ,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,OAAO,CAAC,EAAE;QACvB,4BAA4B,CAAC,OAAO,EAAE,WAAW,EAAE;YACjD,OAAO,EAAE,cAAc;YACvB,WAAW,EAAE,iBAAiB;YAC9B,SAAS,EAAE,eAAe;YAC1B,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const searchTeamTasks: import("@reduxjs/toolkit").AsyncThunk<any, any, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
2
|
+
export declare const fetchTeamTask: import("@reduxjs/toolkit").AsyncThunk<any, any, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
3
|
+
export declare const saveTeamTask: import("@reduxjs/toolkit").AsyncThunk<any, any, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
4
|
+
export declare const updateTeamTaskStatus: import("@reduxjs/toolkit").AsyncThunk<any, any, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
5
|
+
export declare const deleteTeamTask: import("@reduxjs/toolkit").AsyncThunk<any, any, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
6
|
+
export declare const teamTaskReducer: import("redux").Reducer<{
|
|
7
|
+
loadingTeamTasks: boolean;
|
|
8
|
+
moreLoadingTeamTask: boolean;
|
|
9
|
+
isListEndTeamTask: boolean;
|
|
10
|
+
teamTaskList: any[];
|
|
11
|
+
loading: boolean;
|
|
12
|
+
teamTask: any;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2026 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 { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
19
|
+
import { generateFetchRecordCases, generateInifiniteScrollCases, handlerApiCall, } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { deleteTeamTask as _deleteTeamTask, fetchTeamTask as _fetchTeamTask, saveTeamTask as _saveTeamTask, searchTeamTasks as _searchTeamTasks, updateTeamTaskStatus as _updateTeamTaskStatus, } from '../api/team-task-api';
|
|
21
|
+
export const searchTeamTasks = createAsyncThunk('team_teamTask/searchTeamTasks', async function (data, { getState }) {
|
|
22
|
+
return handlerApiCall({
|
|
23
|
+
fetchFunction: _searchTeamTasks,
|
|
24
|
+
data,
|
|
25
|
+
action: 'Team_SliceAction_SearchTeamTasks',
|
|
26
|
+
getState,
|
|
27
|
+
responseOptions: { isArrayResponse: true },
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
export const fetchTeamTask = createAsyncThunk('team_teamTask/fetchTeamTask', async function (data, { getState }) {
|
|
31
|
+
return handlerApiCall({
|
|
32
|
+
fetchFunction: _fetchTeamTask,
|
|
33
|
+
data,
|
|
34
|
+
action: 'Team_SliceAction_FetchTeamTask',
|
|
35
|
+
getState,
|
|
36
|
+
responseOptions: { isArrayResponse: false },
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
export const saveTeamTask = createAsyncThunk('team_teamTask/saveTeamTask', async function (data, { getState }) {
|
|
40
|
+
return handlerApiCall({
|
|
41
|
+
fetchFunction: _saveTeamTask,
|
|
42
|
+
data,
|
|
43
|
+
action: 'Team_SliceAction_SaveTeamTask',
|
|
44
|
+
getState,
|
|
45
|
+
responseOptions: { isArrayResponse: false, showToast: true },
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
export const updateTeamTaskStatus = createAsyncThunk('team_teamTask/updateTeamTaskStatus', async function (data, { getState }) {
|
|
49
|
+
return handlerApiCall({
|
|
50
|
+
fetchFunction: _updateTeamTaskStatus,
|
|
51
|
+
data,
|
|
52
|
+
action: 'Team_SliceAction_UpdateTeamTaskStatus',
|
|
53
|
+
getState,
|
|
54
|
+
responseOptions: { isArrayResponse: false, showToast: true },
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
export const deleteTeamTask = createAsyncThunk('team_teamTask/deleteTeamTask', async function (data, { getState }) {
|
|
58
|
+
return handlerApiCall({
|
|
59
|
+
fetchFunction: _deleteTeamTask,
|
|
60
|
+
data,
|
|
61
|
+
action: 'Team_SliceAction_DeleteTeamTask',
|
|
62
|
+
getState,
|
|
63
|
+
responseOptions: { isArrayResponse: false, showToast: true },
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
const initialState = {
|
|
67
|
+
loadingTeamTasks: false,
|
|
68
|
+
moreLoadingTeamTask: false,
|
|
69
|
+
isListEndTeamTask: false,
|
|
70
|
+
teamTaskList: [],
|
|
71
|
+
loading: false,
|
|
72
|
+
teamTask: null,
|
|
73
|
+
};
|
|
74
|
+
const teamTaskSlice = createSlice({
|
|
75
|
+
name: 'team_teamTask',
|
|
76
|
+
initialState,
|
|
77
|
+
reducers: {},
|
|
78
|
+
extraReducers: builder => {
|
|
79
|
+
generateInifiniteScrollCases(builder, searchTeamTasks, {
|
|
80
|
+
loading: 'loadingTeamTasks',
|
|
81
|
+
moreLoading: 'moreLoadingTeamTask',
|
|
82
|
+
isListEnd: 'isListEndTeamTask',
|
|
83
|
+
list: 'teamTaskList',
|
|
84
|
+
});
|
|
85
|
+
generateFetchRecordCases(builder, fetchTeamTask, {
|
|
86
|
+
loading: 'loading',
|
|
87
|
+
record: 'teamTask',
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
export const teamTaskReducer = teamTaskSlice.reducer;
|
|
92
|
+
//# sourceMappingURL=teamTaskSlice.js.map
|