@axelor/aos-mobile-helpdesk 7.1.6 → 7.1.8
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/lib/api/customer-api.js +1 -1
- package/lib/api/helpdesk-config-api.js +1 -1
- package/lib/api/index.js +1 -1
- package/lib/api/project-api.js +1 -1
- package/lib/api/ticket-api.js +1 -1
- package/lib/api/timer-api.js +1 -1
- package/lib/api/user-api.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/molecules/DurationFormInput/DurationFormInput.js +1 -1
- package/lib/components/molecules/DurationFormInput/duration.helpers.js +1 -1
- package/lib/components/molecules/ProgressFormInput/ProgressFormInput.js +1 -1
- package/lib/components/molecules/TicketCard/TicketCard.js +1 -1
- package/lib/components/molecules/index.js +1 -1
- package/lib/components/templates/ContactPartnerSearchBar/ContactPartnerSearchBar.js +1 -1
- package/lib/components/templates/CustomerSearchBar/CustomerSearchBar.js +1 -1
- package/lib/components/templates/MyTeamTicketSearchBar/MyTeamTicketSearchBar.d.ts +2 -1
- package/lib/components/templates/MyTeamTicketSearchBar/MyTeamTicketSearchBar.js +4 -3
- package/lib/components/templates/MyTeamTicketSearchBar/MyTeamTicketSearchBar.js.map +1 -1
- package/lib/components/templates/MyTicketSearchBar/MyTicketSearchBar.d.ts +2 -1
- package/lib/components/templates/MyTicketSearchBar/MyTicketSearchBar.js +4 -3
- package/lib/components/templates/MyTicketSearchBar/MyTicketSearchBar.js.map +1 -1
- package/lib/components/templates/ProjectSearchBar/ProjectSearchBar.js +1 -1
- package/lib/components/templates/TicketDropdownCards/DropdownGeneralView.js +1 -1
- package/lib/components/templates/TicketDropdownCards/DropdownTimingView.js +1 -1
- package/lib/components/templates/TicketDropdownCards/TicketDropdownCards.js +1 -1
- package/lib/components/templates/TicketEditButton/TicketEditButton.js +1 -1
- package/lib/components/templates/TicketHeader/TicketHeader.js +1 -1
- package/lib/components/templates/TicketStopwatch/TicketStopwatch.js +1 -1
- package/lib/components/templates/TicketTypeSearchBar/TicketTypeSearchBar.js +1 -1
- package/lib/components/templates/TicketsStatusButton/TicketsStatusButton.js +1 -1
- package/lib/components/templates/UserSearchBar/UserSearchBar.js +1 -1
- package/lib/components/templates/index.js +1 -1
- package/lib/features/asyncFunctions-index.js +1 -1
- package/lib/features/customerSlice.js +1 -1
- package/lib/features/helpdeskConfigSlice.js +1 -1
- package/lib/features/index.js +1 -1
- package/lib/features/projectSlice.js +1 -1
- package/lib/features/ticketSlice.js +1 -1
- package/lib/features/timerSlice.js +1 -1
- package/lib/features/userSlice.js +1 -1
- package/lib/hooks/use-helpdesk-header-actions.js +1 -1
- package/lib/index.js +1 -1
- package/lib/models/index.js +1 -1
- package/lib/models/objectFields.js +1 -1
- package/lib/models/searchFields.js +1 -1
- package/lib/models/sortFields.js +1 -1
- package/lib/screens/MyTeamTicketListScreen.js +12 -8
- package/lib/screens/MyTeamTicketListScreen.js.map +1 -1
- package/lib/screens/MyTicketListScreen.js +12 -8
- package/lib/screens/MyTicketListScreen.js.map +1 -1
- package/lib/screens/TicketDetailsScreen.js +1 -1
- package/lib/screens/TicketFormScreen.js +1 -1
- package/lib/screens/index.js +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/ticket.js +1 -1
- package/lib/utils/displayers.js +1 -1
- package/lib/utils/index.js +1 -1
- package/package.json +3 -3
package/lib/api/customer-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/project-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/ticket-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/timer-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/user-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default MyTeamTicketSearchBar;
|
|
2
|
-
declare function MyTeamTicketSearchBar({ placeholderKey, defaultValue, onChange, showDetailsPopup, navigate, oneFilter, isFocus, }: {
|
|
2
|
+
declare function MyTeamTicketSearchBar({ placeholderKey, defaultValue, onChange, showDetailsPopup, navigate, oneFilter, isFocus, onFetchDataAction, }: {
|
|
3
3
|
placeholderKey?: string;
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
onChange?: () => void;
|
|
@@ -7,4 +7,5 @@ declare function MyTeamTicketSearchBar({ placeholderKey, defaultValue, onChange,
|
|
|
7
7
|
navigate?: boolean;
|
|
8
8
|
oneFilter?: boolean;
|
|
9
9
|
isFocus?: boolean;
|
|
10
|
+
onFetchDataAction: any;
|
|
10
11
|
}): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -19,19 +19,20 @@ import React, { useCallback } from 'react';
|
|
|
19
19
|
import { useDispatch, useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
20
20
|
import { AutoCompleteSearch } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { fetchMyTeamTickets } from '../../../features/ticketSlice';
|
|
22
|
-
const MyTeamTicketSearchBar = ({ placeholderKey = 'Helpdesk_Ticket', defaultValue = '', onChange = () => { }, showDetailsPopup = true, navigate = false, oneFilter = false, isFocus = false, }) => {
|
|
22
|
+
const MyTeamTicketSearchBar = ({ placeholderKey = 'Helpdesk_Ticket', defaultValue = '', onChange = () => { }, showDetailsPopup = true, navigate = false, oneFilter = false, isFocus = false, onFetchDataAction, }) => {
|
|
23
23
|
const I18n = useTranslator();
|
|
24
24
|
const dispatch = useDispatch();
|
|
25
25
|
const displayItemTicketSeq = item => item.ticketSeq;
|
|
26
26
|
const { myTeamTicketList, loadingMyTeamTicket, moreMoadingMyTeamTicket, isListEndMyTeamTicket, } = useSelector(state => state.ticket);
|
|
27
27
|
const { user } = useSelector(state => state.user);
|
|
28
28
|
const fetchMyTeamTicketSearchBarAPI = useCallback(({ page = 0, searchValue }) => {
|
|
29
|
+
onFetchDataAction && onFetchDataAction(searchValue);
|
|
29
30
|
dispatch(fetchMyTeamTickets({
|
|
30
31
|
searchValue: searchValue,
|
|
31
32
|
userTeam: user.activeTeam,
|
|
32
33
|
page: page,
|
|
33
34
|
}));
|
|
34
|
-
}, [dispatch, user]);
|
|
35
|
+
}, [dispatch, onFetchDataAction, user]);
|
|
35
36
|
return (<AutoCompleteSearch objectList={myTeamTicketList} value={defaultValue} onChangeValue={onChange} fetchData={fetchMyTeamTicketSearchBarAPI} displayValue={displayItemTicketSeq} placeholder={I18n.t(placeholderKey)} showDetailsPopup={showDetailsPopup} loadingList={loadingMyTeamTicket} moreLoading={moreMoadingMyTeamTicket} isListEnd={isListEndMyTeamTicket} navigate={navigate} oneFilter={oneFilter} isFocus={isFocus}/>);
|
|
36
37
|
};
|
|
37
38
|
export default MyTeamTicketSearchBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MyTeamTicketSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/MyTeamTicketSearchBar/MyTeamTicketSearchBar.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEjE,MAAM,qBAAqB,GAAG,CAAC,EAC7B,cAAc,GAAG,iBAAiB,EAClC,YAAY,GAAG,EAAE,EACjB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,gBAAgB,GAAG,IAAI,EACvB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"MyTeamTicketSearchBar.js","sourceRoot":"","sources":["../../../../src/components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AAI,CAAC,UAAU;YACzB,IAAI,EAAE,IAAI;SACX,CAAC,CACH,CAAC;IACJ,CAAC,EACD,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,CAAC,CACpC,CAAC;IAEF,OAAO,CACL,CAAC,kBAAkB,CACjB,UAAU,CAAC,CAAC,gBAAgB,CAAC,CAC7B,KAAK,CAAC,CAAC,YAAY,CAAC,CACpB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,SAAS,CAAC,CAAC,6BAA6B,CAAC,CACzC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CACnC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CACpC,gBAAgB,CAAC,CAAC,gBAAgB,CAAC,CACnC,WAAW,CAAC,CAAC,mBAAmB,CAAC,CACjC,WAAW,CAAC,CAAC,uBAAuB,CAAC,CACrC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CACjC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,OAAO,CAAC,CAAC,OAAO,CAAC,EACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default MyTicketSearchBar;
|
|
2
|
-
declare function MyTicketSearchBar({ placeholderKey, defaultValue, onChange, showDetailsPopup, navigate, oneFilter, isFocus, }: {
|
|
2
|
+
declare function MyTicketSearchBar({ placeholderKey, defaultValue, onChange, showDetailsPopup, navigate, oneFilter, isFocus, onFetchDataAction, }: {
|
|
3
3
|
placeholderKey?: string;
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
onChange?: () => void;
|
|
@@ -7,4 +7,5 @@ declare function MyTicketSearchBar({ placeholderKey, defaultValue, onChange, sho
|
|
|
7
7
|
navigate?: boolean;
|
|
8
8
|
oneFilter?: boolean;
|
|
9
9
|
isFocus?: boolean;
|
|
10
|
+
onFetchDataAction: any;
|
|
10
11
|
}): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -19,19 +19,20 @@ import React, { useCallback } from 'react';
|
|
|
19
19
|
import { useDispatch, useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
20
20
|
import { AutoCompleteSearch } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { fetchMyTickets } from '../../../features/ticketSlice';
|
|
22
|
-
const MyTicketSearchBar = ({ placeholderKey = 'Helpdesk_Ticket', defaultValue = '', onChange = () => { }, showDetailsPopup = true, navigate = false, oneFilter = false, isFocus = false, }) => {
|
|
22
|
+
const MyTicketSearchBar = ({ placeholderKey = 'Helpdesk_Ticket', defaultValue = '', onChange = () => { }, showDetailsPopup = true, navigate = false, oneFilter = false, isFocus = false, onFetchDataAction, }) => {
|
|
23
23
|
const I18n = useTranslator();
|
|
24
24
|
const dispatch = useDispatch();
|
|
25
25
|
const displayItemTicketSeq = item => item.ticketSeq;
|
|
26
26
|
const { ticketList, loadingTicket, moreLoading, isListEnd } = useSelector(state => state.ticket);
|
|
27
27
|
const { user } = useSelector(state => state.user);
|
|
28
28
|
const fetchMyTicketSearchBarAPI = useCallback(({ page = 0, searchValue }) => {
|
|
29
|
+
onFetchDataAction && onFetchDataAction(searchValue);
|
|
29
30
|
dispatch(fetchMyTickets({
|
|
30
31
|
page: page,
|
|
31
32
|
searchValue: searchValue,
|
|
32
33
|
userId: user.id,
|
|
33
34
|
}));
|
|
34
|
-
}, [dispatch, user]);
|
|
35
|
+
}, [dispatch, onFetchDataAction, user]);
|
|
35
36
|
return (<AutoCompleteSearch objectList={ticketList} value={defaultValue} onChangeValue={onChange} fetchData={fetchMyTicketSearchBarAPI} displayValue={displayItemTicketSeq} placeholder={I18n.t(placeholderKey)} showDetailsPopup={showDetailsPopup} loadingList={loadingTicket} moreLoading={moreLoading} isListEnd={isListEnd} navigate={navigate} oneFilter={oneFilter} isFocus={isFocus}/>);
|
|
36
37
|
};
|
|
37
38
|
export default MyTicketSearchBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MyTicketSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/MyTicketSearchBar/MyTicketSearchBar.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,cAAc,EAAC,MAAM,+BAA+B,CAAC;AAE7D,MAAM,iBAAiB,GAAG,CAAC,EACzB,cAAc,GAAG,iBAAiB,EAClC,YAAY,GAAG,EAAE,EACjB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,gBAAgB,GAAG,IAAI,EACvB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"MyTicketSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/MyTicketSearchBar/MyTicketSearchBar.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,cAAc,EAAC,MAAM,+BAA+B,C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,oBAAoB,CAAC,CACnC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CACpC,gBAAgB,CAAC,CAAC,gBAAgB,CAAC,CACnC,WAAW,CAAC,CAAC,aAAa,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,OAAO,CAAC,CAAC,OAAO,CAAC,EACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/features/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/models/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/models/sortFields.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
19
19
|
import { Dimensions, StyleSheet, View } from 'react-native';
|
|
20
|
-
import {
|
|
20
|
+
import { checkNullString, ChipSelect, HeaderContainer, MultiValuePicker, Screen, ScrollList, useThemeColor, } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { useDispatch, useSelector, useTranslator, filterChip, } from '@axelor/aos-mobile-core';
|
|
22
22
|
import { fetchMyTeamTickets, fetchTicketType } from '../features/ticketSlice';
|
|
23
23
|
import { MyTeamTicketSearchBar, TicketCard } from '../components';
|
|
@@ -31,6 +31,10 @@ const MyTeamTicketListScreen = ({ navigation }) => {
|
|
|
31
31
|
const [selectedType, setSelectedType] = useState([]);
|
|
32
32
|
const [selectedStatus, setSelectedStatus] = useState([]);
|
|
33
33
|
const [priorityStatus, setPriorityStatus] = useState(Ticket.getPriorityList(Colors, I18n).filter(e => e.isActive === true));
|
|
34
|
+
const [filter, setFilter] = useState(null);
|
|
35
|
+
const handleDataSearch = useCallback(searchValue => {
|
|
36
|
+
setFilter(searchValue);
|
|
37
|
+
}, []);
|
|
34
38
|
useEffect(() => {
|
|
35
39
|
dispatch(fetchTicketType());
|
|
36
40
|
}, [dispatch]);
|
|
@@ -52,8 +56,8 @@ const MyTeamTicketListScreen = ({ navigation }) => {
|
|
|
52
56
|
return Ticket.getStatusList(Colors, I18n);
|
|
53
57
|
}, [Colors, I18n]);
|
|
54
58
|
const filterOnType = useCallback(list => {
|
|
55
|
-
if (list
|
|
56
|
-
return
|
|
59
|
+
if (!Array.isArray(list) || list.length === 0) {
|
|
60
|
+
return [];
|
|
57
61
|
}
|
|
58
62
|
else {
|
|
59
63
|
if (selectedType.length > 0) {
|
|
@@ -65,8 +69,8 @@ const MyTeamTicketListScreen = ({ navigation }) => {
|
|
|
65
69
|
}
|
|
66
70
|
}, [selectedType]);
|
|
67
71
|
const filterOnStatus = useCallback(list => {
|
|
68
|
-
if (list
|
|
69
|
-
return
|
|
72
|
+
if (!Array.isArray(list) || list.length === 0) {
|
|
73
|
+
return [];
|
|
70
74
|
}
|
|
71
75
|
else {
|
|
72
76
|
if (selectedStatus.length > 0) {
|
|
@@ -82,7 +86,7 @@ const MyTeamTicketListScreen = ({ navigation }) => {
|
|
|
82
86
|
}, [priorityStatus]);
|
|
83
87
|
const filteredList = useMemo(() => filterOnStatus(filterOnType(filterOnPriority(myTeamTicketList))), [myTeamTicketList, filterOnType, filterOnStatus, filterOnPriority]);
|
|
84
88
|
return (<Screen removeSpaceOnTop={true}>
|
|
85
|
-
<HeaderContainer expandableFilter={true} fixedItems={<MyTeamTicketSearchBar showDetailsPopup={false} oneFilter={true} placeholderKey={I18n.t('Helpdesk_Ticket')} team={true}/>} chipComponent={<ChipSelect mode="multi" marginHorizontal={4} width={Dimensions.get('window').width * 0.3} onChangeValue={chiplist => setPriorityStatus(chiplist)} selectionItems={Ticket.getPriorityList(Colors, I18n)}/>}>
|
|
89
|
+
<HeaderContainer expandableFilter={true} fixedItems={<MyTeamTicketSearchBar showDetailsPopup={false} oneFilter={true} placeholderKey={I18n.t('Helpdesk_Ticket')} team={true} onFetchDataAction={handleDataSearch}/>} chipComponent={<ChipSelect mode="multi" marginHorizontal={4} width={Dimensions.get('window').width * 0.3} onChangeValue={chiplist => setPriorityStatus(chiplist)} selectionItems={Ticket.getPriorityList(Colors, I18n)}/>}>
|
|
86
90
|
<View style={styles.headerContainer}>
|
|
87
91
|
<MultiValuePicker listItems={ticketStatusListItems} title={I18n.t('Helpdesk_Status')} onValueChange={statusList => setSelectedStatus(statusList)}/>
|
|
88
92
|
<MultiValuePicker listItems={ticketTypeListItems} title={I18n.t('Helpdesk_Type')} onValueChange={typeList => setSelectedType(typeList)}/>
|
|
@@ -90,7 +94,7 @@ const MyTeamTicketListScreen = ({ navigation }) => {
|
|
|
90
94
|
</HeaderContainer>
|
|
91
95
|
<ScrollList loadingList={loadingMyTeamTicket} data={filteredList} renderItem={({ item }) => (<TicketCard style={styles.item} ticketSeq={item.ticketSeq} subject={item.subject} progressSelect={item.progressSelect} ticketType={item.ticketType} statusSelect={item.statusSelect} deadlineDateT={item.deadlineDateT} responsibleUser={item?.responsibleUser?.fullName} prioritySelect={item.prioritySelect} duration={item.duration} allTicketType={ticketTypeList} assignedToUser={item?.assignedToUser?.fullName} onPress={() => navigation.navigate('TicketDetailsScreen', {
|
|
92
96
|
idTicket: item.id,
|
|
93
|
-
})}/>)} fetchData={fetchTicketsAPI} moreLoading={moreMoadingMyTeamTicket} isListEnd={isListEndMyTeamTicket} translator={I18n.t}/>
|
|
97
|
+
})}/>)} fetchData={fetchTicketsAPI} moreLoading={moreMoadingMyTeamTicket} isListEnd={isListEndMyTeamTicket} filter={!checkNullString(filter)} translator={I18n.t}/>
|
|
94
98
|
</Screen>);
|
|
95
99
|
};
|
|
96
100
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MyTeamTicketListScreen.js","sourceRoot":"","sources":["../../src/screens/MyTeamTicketListScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"MyTeamTicketListScreen.js","sourceRoot":"","sources":["../../src/screens/MyTeamTicketListScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EACL,eAAe,EACf,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,GACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAC,qBAAqB,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAChE,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAEhC,MAAM,sBAAsB,GAAG,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,EAAC,IAAI,EAAC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*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
19
19
|
import { Dimensions, StyleSheet, View } from 'react-native';
|
|
20
|
-
import {
|
|
20
|
+
import { checkNullString, ChipSelect, HeaderContainer, MultiValuePicker, Screen, ScrollList, useThemeColor, } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { useDispatch, useSelector, useTranslator, filterChip, } from '@axelor/aos-mobile-core';
|
|
22
22
|
import { fetchMyTickets, fetchTicketType } from '../features/ticketSlice';
|
|
23
23
|
import { MyTicketSearchBar, TicketCard } from '../components';
|
|
@@ -31,6 +31,10 @@ const MyTicketListScreen = ({ navigation }) => {
|
|
|
31
31
|
const [selectedType, setSelectedType] = useState([]);
|
|
32
32
|
const [selectedStatus, setSelectedStatus] = useState([]);
|
|
33
33
|
const [priorityStatus, setPriorityStatus] = useState(Ticket.getPriorityList(Colors, I18n).filter(e => e.isActive === true));
|
|
34
|
+
const [filter, setFilter] = useState(null);
|
|
35
|
+
const handleDataSearch = useCallback(searchValue => {
|
|
36
|
+
setFilter(searchValue);
|
|
37
|
+
}, []);
|
|
34
38
|
useEffect(() => {
|
|
35
39
|
dispatch(fetchTicketType());
|
|
36
40
|
}, [dispatch]);
|
|
@@ -52,8 +56,8 @@ const MyTicketListScreen = ({ navigation }) => {
|
|
|
52
56
|
return Ticket.getStatusList(Colors, I18n);
|
|
53
57
|
}, [Colors, I18n]);
|
|
54
58
|
const filterOnType = useCallback(list => {
|
|
55
|
-
if (list
|
|
56
|
-
return
|
|
59
|
+
if (!Array.isArray(list) || list.length === 0) {
|
|
60
|
+
return [];
|
|
57
61
|
}
|
|
58
62
|
else {
|
|
59
63
|
if (selectedType.length > 0) {
|
|
@@ -65,8 +69,8 @@ const MyTicketListScreen = ({ navigation }) => {
|
|
|
65
69
|
}
|
|
66
70
|
}, [selectedType]);
|
|
67
71
|
const filterOnStatus = useCallback(list => {
|
|
68
|
-
if (list
|
|
69
|
-
return
|
|
72
|
+
if (!Array.isArray(list) || list.length === 0) {
|
|
73
|
+
return [];
|
|
70
74
|
}
|
|
71
75
|
else {
|
|
72
76
|
if (selectedStatus.length > 0) {
|
|
@@ -82,7 +86,7 @@ const MyTicketListScreen = ({ navigation }) => {
|
|
|
82
86
|
}, [priorityStatus]);
|
|
83
87
|
const filteredList = useMemo(() => filterOnStatus(filterOnType(filterOnPriority(ticketList))), [ticketList, filterOnType, filterOnStatus, filterOnPriority]);
|
|
84
88
|
return (<Screen removeSpaceOnTop={true}>
|
|
85
|
-
<HeaderContainer expandableFilter={true} fixedItems={<MyTicketSearchBar showDetailsPopup={false} oneFilter={true} placeholderKey={I18n.t('Helpdesk_Ticket')}/>} chipComponent={<ChipSelect mode="multi" marginHorizontal={4} width={Dimensions.get('window').width * 0.3} onChangeValue={chiplist => setPriorityStatus(chiplist)} selectionItems={Ticket.getPriorityList(Colors, I18n)}/>}>
|
|
89
|
+
<HeaderContainer expandableFilter={true} fixedItems={<MyTicketSearchBar showDetailsPopup={false} oneFilter={true} placeholderKey={I18n.t('Helpdesk_Ticket')} onFetchDataAction={handleDataSearch}/>} chipComponent={<ChipSelect mode="multi" marginHorizontal={4} width={Dimensions.get('window').width * 0.3} onChangeValue={chiplist => setPriorityStatus(chiplist)} selectionItems={Ticket.getPriorityList(Colors, I18n)}/>}>
|
|
86
90
|
<View style={styles.headerContainer}>
|
|
87
91
|
<MultiValuePicker listItems={ticketStatusListItems} title={I18n.t('Helpdesk_Status')} onValueChange={statusList => setSelectedStatus(statusList)}/>
|
|
88
92
|
<MultiValuePicker listItems={ticketTypeListItems} title={I18n.t('Helpdesk_Type')} onValueChange={typeList => setSelectedType(typeList)}/>
|
|
@@ -90,7 +94,7 @@ const MyTicketListScreen = ({ navigation }) => {
|
|
|
90
94
|
</HeaderContainer>
|
|
91
95
|
<ScrollList loadingList={loadingTicket} data={filteredList} renderItem={({ item }) => (<TicketCard style={styles.item} ticketSeq={item.ticketSeq} subject={item.subject} progressSelect={item.progressSelect} ticketType={item.ticketType} statusSelect={item.statusSelect} deadlineDateT={item.deadlineDateT} responsibleUser={item?.responsibleUser?.fullName} prioritySelect={item.prioritySelect} duration={item.duration} allTicketType={ticketTypeList} onPress={() => navigation.navigate('TicketDetailsScreen', {
|
|
92
96
|
idTicket: item.id,
|
|
93
|
-
})}/>)} fetchData={fetchMyTicketsAPI} moreLoading={moreLoading} isListEnd={isListEnd} translator={I18n.t}/>
|
|
97
|
+
})}/>)} fetchData={fetchMyTicketsAPI} moreLoading={moreLoading} isListEnd={isListEnd} filter={!checkNullString(filter)} translator={I18n.t}/>
|
|
94
98
|
</Screen>);
|
|
95
99
|
};
|
|
96
100
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MyTicketListScreen.js","sourceRoot":"","sources":["../../src/screens/MyTicketListScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"MyTicketListScreen.js","sourceRoot":"","sources":["../../src/screens/MyTicketListScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,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AAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,gBAAgB,EAAE,EAAE;QACpB,cAAc,EAAE,CAAC;KAClB;IACD,eAAe,EAAE;QACf,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,EAAE;KACX;IACD,qBAAqB,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAC;IACjD,MAAM,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAC;CACrD,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/screens/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/types/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/types/ticket.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/utils/displayers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/utils/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2024 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axelor/aos-mobile-helpdesk",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.8",
|
|
4
4
|
"author": "Axelor",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react-i18next": "^11.18.6"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@axelor/aos-mobile-core": "7.1.
|
|
32
|
-
"@axelor/aos-mobile-ui": "7.1.
|
|
31
|
+
"@axelor/aos-mobile-core": "7.1.8",
|
|
32
|
+
"@axelor/aos-mobile-ui": "7.1.8",
|
|
33
33
|
"@reduxjs/toolkit": "^1.8.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|