@axelor/aos-mobile-helpdesk 7.1.1 → 7.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/lib/api/customer-api.js +3 -0
- package/lib/api/customer-api.js.map +1 -1
- package/lib/api/index.d.ts +5 -0
- package/lib/api/index.js +23 -0
- package/lib/api/index.js.map +1 -0
- package/lib/components/molecules/DurationFormInput/DurationFormInput.d.ts +5 -3
- package/lib/components/molecules/DurationFormInput/DurationFormInput.js +5 -5
- package/lib/components/molecules/DurationFormInput/DurationFormInput.js.map +1 -1
- package/lib/components/molecules/ProgressFormInput/ProgressFormInput.d.ts +3 -2
- package/lib/components/molecules/ProgressFormInput/ProgressFormInput.js +2 -2
- package/lib/components/molecules/ProgressFormInput/ProgressFormInput.js.map +1 -1
- package/lib/components/molecules/TicketCard/TicketCard.js +48 -48
- package/lib/components/molecules/TicketCard/TicketCard.js.map +1 -1
- package/lib/components/templates/ContactPartnerSearchBar/ContactPartnerSearchBar.d.ts +5 -6
- package/lib/components/templates/ContactPartnerSearchBar/ContactPartnerSearchBar.js +33 -29
- package/lib/components/templates/ContactPartnerSearchBar/ContactPartnerSearchBar.js.map +1 -1
- package/lib/components/templates/CustomerSearchBar/CustomerSearchBar.d.ts +5 -6
- package/lib/components/templates/CustomerSearchBar/CustomerSearchBar.js +4 -23
- package/lib/components/templates/CustomerSearchBar/CustomerSearchBar.js.map +1 -1
- package/lib/components/templates/ProjectSearchBar/ProjectSearchBar.d.ts +5 -7
- package/lib/components/templates/ProjectSearchBar/ProjectSearchBar.js +4 -23
- package/lib/components/templates/ProjectSearchBar/ProjectSearchBar.js.map +1 -1
- package/lib/components/templates/TicketPriorityPicker/TicketPriorityPicker.d.ts +9 -0
- package/lib/components/templates/TicketPriorityPicker/TicketPriorityPicker.js +28 -0
- package/lib/components/templates/TicketPriorityPicker/TicketPriorityPicker.js.map +1 -0
- package/lib/components/templates/TicketStopwatch/TicketStopwatch.d.ts +2 -0
- package/lib/components/templates/TicketStopwatch/TicketStopwatch.js +82 -0
- package/lib/components/templates/TicketStopwatch/TicketStopwatch.js.map +1 -0
- package/lib/components/templates/TicketTypeSearchBar/TicketTypeSearchBar.d.ts +5 -6
- package/lib/components/templates/TicketTypeSearchBar/TicketTypeSearchBar.js +4 -24
- package/lib/components/templates/TicketTypeSearchBar/TicketTypeSearchBar.js.map +1 -1
- package/lib/components/templates/TicketsStatusButton/TicketsStatusButton.js +3 -3
- package/lib/components/templates/TicketsStatusButton/TicketsStatusButton.js.map +1 -1
- package/lib/components/templates/index.d.ts +2 -1
- package/lib/components/templates/index.js +2 -1
- package/lib/components/templates/index.js.map +1 -1
- package/lib/features/asyncFunctions-index.d.ts +5 -0
- package/lib/{api/user-api.js → features/asyncFunctions-index.js} +6 -14
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/customerSlice.d.ts +2 -2
- package/lib/features/customerSlice.js +2 -6
- package/lib/features/customerSlice.js.map +1 -1
- package/lib/features/helpdeskConfigSlice.d.ts +1 -1
- package/lib/features/index.d.ts +0 -1
- package/lib/features/index.js +0 -1
- package/lib/features/index.js.map +1 -1
- package/lib/features/projectSlice.d.ts +1 -1
- package/lib/features/ticketSlice.d.ts +1 -1
- package/lib/features/timerSlice.d.ts +1 -1
- package/lib/i18n/en.json +0 -1
- package/lib/i18n/fr.json +0 -1
- package/lib/index.d.ts +5 -1
- package/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/lib/models/forms.d.ts +2 -0
- package/lib/models/forms.js +133 -0
- package/lib/models/forms.js.map +1 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.js +1 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/objectFields.js +0 -3
- package/lib/models/objectFields.js.map +1 -1
- package/lib/models/searchFields.js +0 -1
- package/lib/models/searchFields.js.map +1 -1
- package/lib/models/sortFields.js +0 -1
- package/lib/models/sortFields.js.map +1 -1
- package/lib/screens/TicketDetailsScreen.js +13 -55
- package/lib/screens/TicketDetailsScreen.js.map +1 -1
- package/lib/screens/TicketFormScreen.js +48 -96
- package/lib/screens/TicketFormScreen.js.map +1 -1
- package/lib/screens/index.d.ts +13 -12
- package/lib/screens/index.js +4 -0
- package/lib/screens/index.js.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +19 -0
- package/lib/utils/index.js.map +1 -0
- package/package.json +5 -5
- package/lib/api/user-api.d.ts +0 -4
- package/lib/api/user-api.js.map +0 -1
- package/lib/components/templates/UserSearchBar/UserSearchBar.d.ts +0 -15
- package/lib/components/templates/UserSearchBar/UserSearchBar.js +0 -53
- package/lib/components/templates/UserSearchBar/UserSearchBar.js.map +0 -1
- package/lib/features/userSlice.d.ts +0 -16
- package/lib/features/userSlice.js +0 -49
- package/lib/features/userSlice.js.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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 { useTranslator } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { Picker, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { Ticket } from '../../../types';
|
|
22
|
+
const TicketPriorityPicker = ({ style = null, title = 'Helpdesk_Priority', defaultValue = null, onChange = () => { }, required = false, readonly = false, }) => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
const Colors = useThemeColor();
|
|
25
|
+
return (<Picker style={style} title={I18n.t(title)} defaultValue={defaultValue} listItems={Ticket.getPriorityList(Colors, I18n)} onValueChange={onChange} labelField="title" valueField="key" required={required} readonly={readonly}/>);
|
|
26
|
+
};
|
|
27
|
+
export default TicketPriorityPicker;
|
|
28
|
+
//# sourceMappingURL=TicketPriorityPicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TicketPriorityPicker.js","sourceRoot":"","sources":["../../../../src/components/templates/TicketPriorityPicker/TicketPriorityPicker.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAEtC,MAAM,oBAAoB,GAAG,CAAC,EAC5B,KAAK,GAAG,IAAI,EACZ,KAAK,GAAG,mBAAmB,EAC3B,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,GACjB,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,OAAO,CACL,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CACrB,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,SAAS,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAChD,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,UAAU,CAAC,OAAO,CAClB,UAAU,CAAC,KAAK,CAChB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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, useEffect, useMemo, useState } from 'react';
|
|
19
|
+
import { View } from 'react-native';
|
|
20
|
+
import { Button, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useTranslator, Stopwatch, isEmpty, StopwatchType, useDispatch, useSelector, getNowDateZonesISOString, } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { Ticket } from '../../../types';
|
|
23
|
+
import TicketsStatusButton from '../TicketsStatusButton/TicketsStatusButton';
|
|
24
|
+
import { updateTicketStatus } from '../../../features/ticketSlice';
|
|
25
|
+
import { fetchTimerById, clearTimer, searchTimerHistoryById, } from '../../../features/timerSlice';
|
|
26
|
+
const DEFAULT_STATUS = StopwatchType.status.Ready;
|
|
27
|
+
const DEFAULT_TIME = 0;
|
|
28
|
+
const TicketStopwatch = ({}) => {
|
|
29
|
+
const I18n = useTranslator();
|
|
30
|
+
const Colors = useThemeColor();
|
|
31
|
+
const dispatch = useDispatch();
|
|
32
|
+
const { ticket } = useSelector(state => state.ticket);
|
|
33
|
+
const { timer, timerHistory } = useSelector(state => state.timer);
|
|
34
|
+
const { helpdeskConfig } = useSelector(state => state.helpdeskConfig);
|
|
35
|
+
const [timerStatus, setTimerStatus] = useState(DEFAULT_STATUS);
|
|
36
|
+
const [time, setTime] = useState(DEFAULT_TIME);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (ticket?.timerList?.length > 0) {
|
|
39
|
+
dispatch(fetchTimerById({ timerId: ticket?.timerList[0]?.id }));
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
dispatch(clearTimer());
|
|
43
|
+
}
|
|
44
|
+
}, [dispatch, ticket?.timerList]);
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
dispatch(searchTimerHistoryById({ idTimer: timer?.id }));
|
|
47
|
+
}, [dispatch, timer]);
|
|
48
|
+
const getTimerState = useCallback(() => {
|
|
49
|
+
const status = !isEmpty(ticket)
|
|
50
|
+
? Ticket.getTimerState(ticket?.statusSelect, timer?.statusSelect)
|
|
51
|
+
: DEFAULT_STATUS;
|
|
52
|
+
const _time = !Array.isArray(ticket?.timerList) ||
|
|
53
|
+
ticket.timerList.length === 0 ||
|
|
54
|
+
ticket.timerList[0]?.id !== timer?.id
|
|
55
|
+
? DEFAULT_TIME
|
|
56
|
+
: Ticket.getTotalDuration(timerHistory);
|
|
57
|
+
setTimerStatus(status);
|
|
58
|
+
setTime(_time);
|
|
59
|
+
return { status, _time };
|
|
60
|
+
}, [ticket, timer, timerHistory]);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
getTimerState();
|
|
63
|
+
}, [getTimerState]);
|
|
64
|
+
const disbaled = useMemo(() => ticket?.statusSelect === Ticket.status.Closed ||
|
|
65
|
+
ticket?.statusSelect === Ticket.status.Resolved, [ticket]);
|
|
66
|
+
const updateStatus = useCallback(status => {
|
|
67
|
+
dispatch(updateTicketStatus({
|
|
68
|
+
version: ticket?.version,
|
|
69
|
+
dateTime: getNowDateZonesISOString(),
|
|
70
|
+
targetStatus: status,
|
|
71
|
+
ticketId: ticket?.id,
|
|
72
|
+
}));
|
|
73
|
+
}, [dispatch, ticket]);
|
|
74
|
+
return (<View>
|
|
75
|
+
{!helpdeskConfig?.manageTimer ? (<TicketsStatusButton />) : (<Stopwatch startTime={time} status={timerStatus} getTimerState={getTimerState} timerFormat={I18n.t('Stopwatch_TimerFormat')} disableStop={timerStatus === StopwatchType.status.Paused} onPlay={() => updateStatus(Ticket.stopWatchStatus.start)} onPause={() => updateStatus(Ticket.stopWatchStatus.pause)} onStop={() => updateStatus(Ticket.stopWatchStatus.stop)} onCancel={() => updateStatus(Ticket.stopWatchStatus.reset)} disable={disbaled}/>)}
|
|
76
|
+
{ticket?.statusSelect !== Ticket.status.Closed &&
|
|
77
|
+
ticket?.statusSelect !== Ticket.status.New && (<Button title={I18n.t('Helpdesk_Close')} iconName="power-off" onPress={() => updateStatus(Ticket.stopWatchStatus.validate)} color={Colors.primaryColor} disabled={ticket?.statusSelect === Ticket.status.Closed ||
|
|
78
|
+
ticket?.statusSelect === Ticket.status.New}/>)}
|
|
79
|
+
</View>);
|
|
80
|
+
};
|
|
81
|
+
export default TicketStopwatch;
|
|
82
|
+
//# sourceMappingURL=TicketStopwatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TicketStopwatch.js","sourceRoot":"","sources":["../../../../src/components/templates/TicketStopwatch/TicketStopwatch.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,IAAI,EA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AAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CACxD,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAC3D,OAAO,CAAC,CAAC,QAAQ,CAAC,EAClB,CACH,CACD;MAAA,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM;YAC5C,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAC5C,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAChC,QAAQ,CAAC,WAAW,CACpB,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAC7D,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC3B,QAAQ,CAAC,CACP,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM;gBAC7C,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,GAAG,CAC3C,EACD,CACH,CACL;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
export default TicketTypeSearchBar;
|
|
2
|
-
declare function TicketTypeSearchBar({
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare function TicketTypeSearchBar({ style, title, defaultValue, onChange, required, readonly, showDetailsPopup, navigate, oneFilter, isFocus, showTitle, }: {
|
|
3
|
+
style?: any;
|
|
4
|
+
title?: string;
|
|
5
5
|
defaultValue?: any;
|
|
6
6
|
onChange?: () => void;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
7
9
|
showDetailsPopup?: boolean;
|
|
8
10
|
navigate?: boolean;
|
|
9
11
|
oneFilter?: boolean;
|
|
10
12
|
isFocus?: boolean;
|
|
11
|
-
style: any;
|
|
12
|
-
styleTxt: any;
|
|
13
13
|
showTitle?: boolean;
|
|
14
|
-
required?: boolean;
|
|
15
14
|
}): JSX.Element;
|
|
@@ -15,38 +15,18 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import React, { useCallback
|
|
19
|
-
import { StyleSheet, View } from 'react-native';
|
|
18
|
+
import React, { useCallback } from 'react';
|
|
20
19
|
import { displayItemName, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
|
|
21
|
-
import { AutoCompleteSearch
|
|
20
|
+
import { AutoCompleteSearch } from '@axelor/aos-mobile-ui';
|
|
22
21
|
import { searchTicketType } from '../../../features/ticketSlice';
|
|
23
|
-
|
|
24
|
-
const TicketTypeSearchBar = ({ placeholderKey = 'Helpdesk_Type', titleKey = 'Helpdesk_Type', defaultValue = null, onChange = () => { }, showDetailsPopup = true, navigate = false, oneFilter = false, isFocus = false, style, styleTxt, showTitle = true, required = false, }) => {
|
|
22
|
+
const TicketTypeSearchBar = ({ style = null, title = 'Helpdesk_Type', defaultValue = null, onChange = () => { }, required = false, readonly = false, showDetailsPopup = true, navigate = false, oneFilter = false, isFocus = false, showTitle = true, }) => {
|
|
25
23
|
const I18n = useTranslator();
|
|
26
|
-
const Colors = useThemeColor();
|
|
27
24
|
const dispatch = useDispatch();
|
|
28
25
|
const { ticketTypeList, loadingTicketType, moreLoadingTicketType, isListEndTicketType, } = useSelector(state => state.ticket);
|
|
29
|
-
const styles = useMemo(() => getStyles(Colors), [Colors]);
|
|
30
26
|
const searchTicketTypeAPI = useCallback(({ page = 0, searchValue }) => {
|
|
31
27
|
dispatch(searchTicketType({ page, searchValue }));
|
|
32
28
|
}, [dispatch]);
|
|
33
|
-
return (<
|
|
34
|
-
{showTitle && (<Text style={[styles.title, styleTxt]}>{I18n.t(titleKey)}</Text>)}
|
|
35
|
-
<AutoCompleteSearch style={[
|
|
36
|
-
defaultValue == null && required ? styles.requiredBorder : null,
|
|
37
|
-
]} objectList={ticketTypeList} value={defaultValue} onChangeValue={onChange} fetchData={searchTicketTypeAPI} displayValue={displayItemName} placeholder={I18n.t(placeholderKey)} showDetailsPopup={showDetailsPopup} loadingList={loadingTicketType} moreLoading={moreLoadingTicketType} isListEnd={isListEndTicketType} navigate={navigate} oneFilter={oneFilter} isFocus={isFocus}/>
|
|
38
|
-
</View>);
|
|
29
|
+
return (<AutoCompleteSearch title={showTitle && I18n.t(title)} objectList={ticketTypeList} value={defaultValue} required={required} readonly={readonly} onChangeValue={onChange} fetchData={searchTicketTypeAPI} displayValue={displayItemName} placeholder={I18n.t(title)} showDetailsPopup={showDetailsPopup} loadingList={loadingTicketType} moreLoading={moreLoadingTicketType} isListEnd={isListEndTicketType} navigate={navigate} oneFilter={oneFilter} isFocus={isFocus} style={style}/>);
|
|
39
30
|
};
|
|
40
|
-
const getStyles = Colors => StyleSheet.create({
|
|
41
|
-
container: {
|
|
42
|
-
zIndex: 41,
|
|
43
|
-
},
|
|
44
|
-
title: {
|
|
45
|
-
marginHorizontal: 24,
|
|
46
|
-
},
|
|
47
|
-
requiredBorder: {
|
|
48
|
-
borderColor: Colors.errorColor.background,
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
31
|
export default TicketTypeSearchBar;
|
|
52
32
|
//# sourceMappingURL=TicketTypeSearchBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TicketTypeSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/TicketTypeSearchBar/TicketTypeSearchBar.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"TicketTypeSearchBar.js","sourceRoot":"","sources":["../../../../src/components/templates/TicketTypeSearchBar/TicketTyp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,CAAC,cAAc,CAAC,CAC3B,KAAK,CAAC,CAAC,YAAY,CAAC,CACpB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAC/B,YAAY,CAAC,CAAC,eAAe,CAAC,CAC9B,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAC3B,gBAAgB,CAAC,CAAC,gBAAgB,CAAC,CACnC,WAAW,CAAC,CAAC,iBAAiB,CAAC,CAC/B,WAAW,CAAC,CAAC,qBAAqB,CAAC,CACnC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAC/B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,CAAC,KAAK,CAAC,EACb,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback } from 'react';
|
|
19
19
|
import { useDispatch, useSelector, useTranslator, getNowDateZonesISOString, } from '@axelor/aos-mobile-core';
|
|
20
|
-
import {
|
|
20
|
+
import { Button, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
21
|
import { Ticket } from '../../../types';
|
|
22
22
|
import { updateTicketStatus } from '../../../features/ticketSlice';
|
|
23
23
|
const TicketsStatusButton = ({}) => {
|
|
@@ -34,10 +34,10 @@ const TicketsStatusButton = ({}) => {
|
|
|
34
34
|
}));
|
|
35
35
|
}, [dispatch, ticket]);
|
|
36
36
|
if (ticket?.statusSelect === Ticket.status.New) {
|
|
37
|
-
return (<
|
|
37
|
+
return (<Button title={I18n.t('Helpdesk_Start')} iconName="play" onPress={() => updateStatus(Ticket.stopWatchStatus.start)} color={Colors.primaryColor}/>);
|
|
38
38
|
}
|
|
39
39
|
if (ticket?.statusSelect === Ticket.status.In_Progress) {
|
|
40
|
-
return (<
|
|
40
|
+
return (<Button title={I18n.t('Helpdesk_Resolve')} iconName="check" onPress={() => updateStatus(Ticket.stopWatchStatus.stop)}/>);
|
|
41
41
|
}
|
|
42
42
|
return null;
|
|
43
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TicketsStatusButton.js","sourceRoot":"","sources":["../../../../src/components/templates/TicketsStatusButton/TicketsStatusButton.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"TicketsStatusButton.js","sourceRoot":"","sources":["../../../../src/components/templates/TicketsStatusButton/TicketsStatusButton.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEjE,MAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE;IACjC,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,MAAM,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpD,MAAM,YAAY,GAAG,WAAW,CAC9B,MAAM,CAAC,EAAE;QACP,QAAQ,CACN,kBAAkB,CAAC;YACjB,OAAO,EAAE,MAAM,EAAE,OAAO;YACxB,QAAQ,EAAE,wBAAwB,EAAE;YACpC,YAAY,EAAE,MAAM;YACpB,QAAQ,EAAE,MAAM,EAAE,EAAE;SACrB,CAAC,CACH,CAAC;IACJ,CAAC,EACD,CAAC,QAAQ,EAAE,MAAM,CAAC,CACnB,CAAC;IAEF,IAAI,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE;QAC9C,OAAO,CACL,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAChC,QAAQ,CAAC,MAAM,CACf,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAC1D,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAC3B,CACH,CAAC;KACH;IAED,IAAI,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;QACtD,OAAO,CACL,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAClC,QAAQ,CAAC,OAAO,CAChB,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,EACzD,CACH,CAAC;KACH;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -4,7 +4,8 @@ export { default as ProjectSearchBar } from "./ProjectSearchBar/ProjectSearchBar
|
|
|
4
4
|
export { default as TicketDropdownCards } from "./TicketDropdownCards/TicketDropdownCards";
|
|
5
5
|
export { default as TicketEditButton } from "./TicketEditButton/TicketEditButton";
|
|
6
6
|
export { default as TicketHeader } from "./TicketHeader/TicketHeader";
|
|
7
|
+
export { default as TicketPriorityPicker } from "./TicketPriorityPicker/TicketPriorityPicker";
|
|
7
8
|
export { default as TicketSearchBar } from "./TicketSearchBar/TicketSearchBar";
|
|
8
9
|
export { default as TicketsStatusButton } from "./TicketsStatusButton/TicketsStatusButton";
|
|
10
|
+
export { default as TicketStopwatch } from "./TicketStopwatch/TicketStopwatch";
|
|
9
11
|
export { default as TicketTypeSearchBar } from "./TicketTypeSearchBar/TicketTypeSearchBar";
|
|
10
|
-
export { default as UserSearchBar } from "./UserSearchBar/UserSearchBar";
|
|
@@ -21,8 +21,9 @@ export { default as ProjectSearchBar } from './ProjectSearchBar/ProjectSearchBar
|
|
|
21
21
|
export { default as TicketDropdownCards } from './TicketDropdownCards/TicketDropdownCards';
|
|
22
22
|
export { default as TicketEditButton } from './TicketEditButton/TicketEditButton';
|
|
23
23
|
export { default as TicketHeader } from './TicketHeader/TicketHeader';
|
|
24
|
+
export { default as TicketPriorityPicker } from './TicketPriorityPicker/TicketPriorityPicker';
|
|
24
25
|
export { default as TicketSearchBar } from './TicketSearchBar/TicketSearchBar';
|
|
25
26
|
export { default as TicketsStatusButton } from './TicketsStatusButton/TicketsStatusButton';
|
|
27
|
+
export { default as TicketStopwatch } from './TicketStopwatch/TicketStopwatch';
|
|
26
28
|
export { default as TicketTypeSearchBar } from './TicketTypeSearchBar/TicketTypeSearchBar';
|
|
27
|
-
export { default as UserSearchBar } from './UserSearchBar/UserSearchBar';
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/templates/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AACrG,O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E,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getCustomerbyId, searchCustomer, searchCustomerContact, } from './customerSlice';
|
|
2
|
+
export { fetchHelpdeskConfig } from './helpdeskConfigSlice';
|
|
3
|
+
export { searchProject } from './projectSlice';
|
|
4
|
+
export { createTicket, fetchTicketById, fetchTickets, fetchTicketType, searchTicketType, updateTicket, updateTicketStatus, } from './ticketSlice';
|
|
5
|
+
export { fetchTimerById, searchTimerHistoryById } from './timerSlice';
|
|
@@ -15,17 +15,9 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
model: 'com.axelor.auth.db.User',
|
|
25
|
-
criteria: createUserCriteria(searchValue),
|
|
26
|
-
fieldKey: 'helpdesk_user',
|
|
27
|
-
sortKey: 'helpdesk_user',
|
|
28
|
-
page: page,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=user-api.js.map
|
|
18
|
+
export { getCustomerbyId, searchCustomer, searchCustomerContact, } from './customerSlice';
|
|
19
|
+
export { fetchHelpdeskConfig } from './helpdeskConfigSlice';
|
|
20
|
+
export { searchProject } from './projectSlice';
|
|
21
|
+
export { createTicket, fetchTicketById, fetchTickets, fetchTicketType, searchTicketType, updateTicket, updateTicketStatus, } from './ticketSlice';
|
|
22
|
+
export { fetchTimerById, searchTimerHistoryById } from './timerSlice';
|
|
23
|
+
//# 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,EACL,eAAe,EACf,cAAc,EACd,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,cAAc,EAAE,sBAAsB,EAAC,MAAM,cAAc,CAAC"}
|
|
@@ -33,9 +33,9 @@ export const customerReducer: import("redux").Reducer<{
|
|
|
33
33
|
moreLoading: boolean;
|
|
34
34
|
isListEnd: boolean;
|
|
35
35
|
customerList: any[];
|
|
36
|
-
customer: {};
|
|
37
36
|
loadingCustomerContact: boolean;
|
|
38
37
|
moreLoadingCustomerContact: boolean;
|
|
39
38
|
isListEndCustomerContact: boolean;
|
|
40
39
|
customerContactList: any[];
|
|
41
|
-
}
|
|
40
|
+
formCustomer: {};
|
|
41
|
+
}>;
|
|
@@ -50,11 +50,11 @@ const initialState = {
|
|
|
50
50
|
moreLoading: false,
|
|
51
51
|
isListEnd: false,
|
|
52
52
|
customerList: [],
|
|
53
|
-
customer: {},
|
|
54
53
|
loadingCustomerContact: false,
|
|
55
54
|
moreLoadingCustomerContact: false,
|
|
56
55
|
isListEndCustomerContact: false,
|
|
57
56
|
customerContactList: [],
|
|
57
|
+
formCustomer: {},
|
|
58
58
|
};
|
|
59
59
|
const customerSlice = createSlice({
|
|
60
60
|
name: 'customer',
|
|
@@ -72,12 +72,8 @@ const customerSlice = createSlice({
|
|
|
72
72
|
isListEnd: 'isListEndCustomerContact',
|
|
73
73
|
list: 'customerContactList',
|
|
74
74
|
});
|
|
75
|
-
builder.addCase(getCustomerbyId.pending, state => {
|
|
76
|
-
state.loading = true;
|
|
77
|
-
});
|
|
78
75
|
builder.addCase(getCustomerbyId.fulfilled, (state, action) => {
|
|
79
|
-
state.
|
|
80
|
-
state.customer = action.payload;
|
|
76
|
+
state.formCustomer = action.payload;
|
|
81
77
|
});
|
|
82
78
|
},
|
|
83
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerSlice.js","sourceRoot":"","sources":["../../src/features/customerSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,cAAc,EACd,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,EACX,cAAc,IAAI,eAAe,EACjC,qBAAqB,IAAI,sBAAsB,GAChD,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAC5C,yBAAyB,EACzB,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,eAAe;QAC9B,IAAI;QACJ,MAAM,EAAE,oCAAoC;QAC5C,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,gBAAgB,CACnD,gCAAgC,EAChC,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,sBAAsB;QACrC,IAAI;QACJ,MAAM,EAAE,2CAA2C;QACnD,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAC7C,0BAA0B,EAC1B,KAAK,WAAW,IAAI,GAAG,EAAE,EAAE,EAAC,QAAQ,EAAC;IACnC,OAAO,cAA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AM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,CAAC"}
|
package/lib/features/index.d.ts
CHANGED
|
@@ -3,4 +3,3 @@ export { helpdeskConfigReducer as helpdeskConfig } from "./helpdeskConfigSlice";
|
|
|
3
3
|
export { projectReducer as project } from "./projectSlice";
|
|
4
4
|
export { ticketReducer as ticket } from "./ticketSlice";
|
|
5
5
|
export { timerReducer as timer } from "./timerSlice";
|
|
6
|
-
export { userListReducer as userList } from "./userSlice";
|
package/lib/features/index.js
CHANGED
|
@@ -20,5 +20,4 @@ export { helpdeskConfigReducer as helpdeskConfig } from './helpdeskConfigSlice';
|
|
|
20
20
|
export { projectReducer as project } from './projectSlice';
|
|
21
21
|
export { ticketReducer as ticket } from './ticketSlice';
|
|
22
22
|
export { timerReducer as timer } from './timerSlice';
|
|
23
|
-
export { userListReducer as userList } from './userSlice';
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,eAAe,IAAI,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAC,qBAAqB,IAAI,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAC,cAAc,IAAI,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAC,aAAa,IAAI,MAAM,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,YAAY,IAAI,KAAK,EAAC,MAAM,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,eAAe,IAAI,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAC,qBAAqB,IAAI,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAC,cAAc,IAAI,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAC,aAAa,IAAI,MAAM,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,YAAY,IAAI,KAAK,EAAC,MAAM,cAAc,CAAC"}
|
package/lib/i18n/en.json
CHANGED
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"Helpdesk_SliceAction_FetchTimerHistory": "fetch timer history",
|
|
47
47
|
"Helpdesk_SliceAction_UpdateTicketStatus": "update ticket status",
|
|
48
48
|
"Helpdesk_SliceAction_FetchHelpdeskConfig": "fetch helpdesk config",
|
|
49
|
-
"Helpdesk_SliceAction_SearchUser": "fetch user",
|
|
50
49
|
"Helpdesk_SliceAction_FetchCustomer": "fetch customer",
|
|
51
50
|
"Helpdesk_SliceAction_FetchCustomerById": "fetch customer by id",
|
|
52
51
|
"Helpdesk_SliceAction_FetchProjects": "fetch projects",
|
package/lib/i18n/fr.json
CHANGED
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"Helpdesk_SliceAction_FetchTimerHistory": "récupération de l'historique du timer",
|
|
47
47
|
"Helpdesk_SliceAction_UpdateTicketStatus": "mise à jour du statut du ticket",
|
|
48
48
|
"Helpdesk_SliceAction_FetchHelpdeskConfig": "récupération de la configuration support client",
|
|
49
|
-
"Helpdesk_SliceAction_SearchUser": "récupération des utilisateurs",
|
|
50
49
|
"Helpdesk_SliceAction_FetchCustomer": "récupération des clients",
|
|
51
50
|
"Helpdesk_SliceAction_FetchCustomerById": "récupération du client par id",
|
|
52
51
|
"Helpdesk_SliceAction_FetchProject": "récupération des projets",
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Module } from '@axelor/aos-mobile-core';
|
|
2
2
|
export declare const HelpDeskModule: Module;
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './api';
|
|
4
4
|
export * from './components';
|
|
5
|
+
export * from './features/asyncFunctions-index';
|
|
6
|
+
export * from './screens';
|
|
7
|
+
export * from './types';
|
|
8
|
+
export * from './utils';
|
package/lib/index.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import enTranslations from './i18n/en.json';
|
|
19
19
|
import frTranslations from './i18n/fr.json';
|
|
20
20
|
import MyTicketScreens from './screens/';
|
|
21
|
-
import { helpdesk_modelAPI, helpdesk_searchFields, helpdesk_sortFields, } from './models';
|
|
21
|
+
import { helpdesk_modelAPI, helpdesk_searchFields, helpdesk_sortFields, helpdesk_formsRegister, } from './models';
|
|
22
22
|
import * as helpdeskReducers from './features';
|
|
23
23
|
import { useHelpdeskHeaders } from './hooks/use-helpdesk-header-actions';
|
|
24
24
|
export const HelpDeskModule = {
|
|
@@ -60,8 +60,13 @@ export const HelpDeskModule = {
|
|
|
60
60
|
sortFields: { ...helpdesk_sortFields },
|
|
61
61
|
searchFields: { ...helpdesk_searchFields },
|
|
62
62
|
headerRegisters: useHelpdeskHeaders,
|
|
63
|
+
formsRegister: { ...helpdesk_formsRegister },
|
|
63
64
|
},
|
|
64
65
|
};
|
|
65
|
-
export * from './
|
|
66
|
+
export * from './api';
|
|
66
67
|
export * from './components';
|
|
68
|
+
export * from './features/asyncFunctions-index';
|
|
69
|
+
export * from './screens';
|
|
70
|
+
export * from './types';
|
|
71
|
+
export * from './utils';
|
|
67
72
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5C,OAAO,eAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index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EAAE,kBAAkB;QACnC,aAAa,EAAE,EAAC,GAAG,sBAAsB,EAAC;KAC3C;CACF,CAAC;AAEF,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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 { UserSearchBar } from '@axelor/aos-mobile-core';
|
|
19
|
+
import { ContactPartnerSearchBar, CustomerSearchBar, DurationFormInput, ProgressFormInput, ProjectSearchBar, TicketTypeSearchBar, TicketPriorityPicker, } from '../components';
|
|
20
|
+
import { getCustomerbyId } from '../features/customerSlice';
|
|
21
|
+
export const helpdesk_formsRegister = {
|
|
22
|
+
helpdesk_ticket: {
|
|
23
|
+
modelName: 'com.axelor.apps.helpdesk.db.Ticket',
|
|
24
|
+
fields: {
|
|
25
|
+
subject: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
widget: 'default',
|
|
28
|
+
titleKey: 'Hepdesk_Subject',
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
31
|
+
progressSelect: {
|
|
32
|
+
titleKey: 'Helpdesk_Progress',
|
|
33
|
+
type: 'number',
|
|
34
|
+
widget: 'custom',
|
|
35
|
+
customComponent: ProgressFormInput,
|
|
36
|
+
},
|
|
37
|
+
project: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
titleKey: 'Helpdesk_Project',
|
|
40
|
+
widget: 'custom',
|
|
41
|
+
customComponent: ProjectSearchBar,
|
|
42
|
+
},
|
|
43
|
+
customerPartner: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
titleKey: 'Helpdesk_CustomPartner',
|
|
46
|
+
widget: 'custom',
|
|
47
|
+
customComponent: CustomerSearchBar,
|
|
48
|
+
dependsOn: {
|
|
49
|
+
project: ({ newValue }) => {
|
|
50
|
+
return newValue?.clientPartner;
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
contactPartner: {
|
|
55
|
+
type: 'object',
|
|
56
|
+
titleKey: 'Helpdesk_ContactPartner',
|
|
57
|
+
widget: 'custom',
|
|
58
|
+
customComponent: ContactPartnerSearchBar,
|
|
59
|
+
dependsOn: {
|
|
60
|
+
customerPartner: ({ newValue, dispatch }) => {
|
|
61
|
+
dispatch(getCustomerbyId({ customerId: newValue?.id }));
|
|
62
|
+
},
|
|
63
|
+
project: ({ newValue, dispatch }) => {
|
|
64
|
+
dispatch(getCustomerbyId({
|
|
65
|
+
customerId: newValue?.clientPartner?.id,
|
|
66
|
+
}));
|
|
67
|
+
return newValue?.contactPartner;
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
ticketType: {
|
|
72
|
+
titleKey: 'Helpdesk_Type',
|
|
73
|
+
type: 'object',
|
|
74
|
+
widget: 'custom',
|
|
75
|
+
customComponent: TicketTypeSearchBar,
|
|
76
|
+
},
|
|
77
|
+
prioritySelect: {
|
|
78
|
+
type: 'number',
|
|
79
|
+
widget: 'custom',
|
|
80
|
+
titleKey: 'Helpdesk_Priority',
|
|
81
|
+
customComponent: TicketPriorityPicker,
|
|
82
|
+
},
|
|
83
|
+
startDateT: {
|
|
84
|
+
type: 'datetime',
|
|
85
|
+
widget: 'date',
|
|
86
|
+
titleKey: 'Helpdesk_StartDate',
|
|
87
|
+
options: {
|
|
88
|
+
nullable: true,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
endDateT: {
|
|
92
|
+
type: 'datetime',
|
|
93
|
+
widget: 'date',
|
|
94
|
+
titleKey: 'Helpdesk_EndDate',
|
|
95
|
+
options: {
|
|
96
|
+
nullable: true,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
deadlineDateT: {
|
|
100
|
+
type: 'datetime',
|
|
101
|
+
widget: 'date',
|
|
102
|
+
titleKey: 'Helpdesk_DeadlineDate',
|
|
103
|
+
options: {
|
|
104
|
+
nullable: true,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
duration: {
|
|
108
|
+
titleKey: 'Helpdesk_Duration',
|
|
109
|
+
type: 'string',
|
|
110
|
+
widget: 'custom',
|
|
111
|
+
customComponent: DurationFormInput,
|
|
112
|
+
},
|
|
113
|
+
assignedToUser: {
|
|
114
|
+
titleKey: 'Helpdesk_AssignedToUser',
|
|
115
|
+
type: 'object',
|
|
116
|
+
widget: 'custom',
|
|
117
|
+
customComponent: UserSearchBar,
|
|
118
|
+
},
|
|
119
|
+
responsibleUser: {
|
|
120
|
+
titleKey: 'Helpdesk_ResponsibleUser',
|
|
121
|
+
type: 'object',
|
|
122
|
+
widget: 'custom',
|
|
123
|
+
customComponent: UserSearchBar,
|
|
124
|
+
},
|
|
125
|
+
description: {
|
|
126
|
+
type: 'string',
|
|
127
|
+
widget: 'HTML',
|
|
128
|
+
titleKey: 'Base_Description',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=forms.js.map
|