@axelor/aos-mobile-hr 8.2.6 → 8.2.7
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.
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
19
|
-
import {
|
|
20
|
-
import { useSelector } from '@axelor/aos-mobile-core';
|
|
19
|
+
import { useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
21
20
|
import { FormIncrementInput } from '@axelor/aos-mobile-ui';
|
|
22
|
-
const DistanceIncrementAux = ({ title = 'Hr_Distance', defaultValue
|
|
21
|
+
const DistanceIncrementAux = ({ style, title = 'Hr_Distance', defaultValue, onChange, readonly = false, required = false, }) => {
|
|
22
|
+
const I18n = useTranslator();
|
|
23
23
|
const [value, setValue] = useState(defaultValue);
|
|
24
24
|
const { distance } = useSelector(state => state.distance);
|
|
25
25
|
useEffect(() => {
|
|
@@ -31,16 +31,10 @@ const DistanceIncrementAux = ({ title = 'Hr_Distance', defaultValue = null, onCh
|
|
|
31
31
|
setValue(e);
|
|
32
32
|
onChange(e);
|
|
33
33
|
}, [onChange]);
|
|
34
|
-
return (<FormIncrementInput title={title} style={
|
|
34
|
+
return (<FormIncrementInput title={title} style={style} onChange={handleChange} defaultValue={value} decimalSpacer={I18n.t('Base_DecimalSpacer')} thousandSpacer={I18n.t('Base_ThousandSpacer')} readOnly={readonly} required={required}/>);
|
|
35
35
|
};
|
|
36
36
|
const DistanceIncrement = ({ style, title, defaultValue, onChange, readonly, required, }) => {
|
|
37
37
|
return (<DistanceIncrementAux defaultValue={defaultValue} onChange={onChange} style={style} title={title} readonly={readonly} required={required}/>);
|
|
38
38
|
};
|
|
39
|
-
const styles = StyleSheet.create({
|
|
40
|
-
input: {
|
|
41
|
-
width: '90%',
|
|
42
|
-
alignSelf: 'center',
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
39
|
export default DistanceIncrement;
|
|
46
40
|
//# sourceMappingURL=DistanceIncrement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistanceIncrement.js","sourceRoot":"","sources":["../../../../src/components/templates/DistanceIncrement/DistanceIncrement.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"DistanceIncrement.js","sourceRoot":"","sources":["../../../../src/components/templates/DistanceIncrement/DistanceIncrement.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAEzD,MAAM,oBAAoB,GAAG,CAAC,EAC5B,KAAK,EACL,KAAK,GAAG,aAAa,EACrB,YAAY,EACZ,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,GACjB,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IAEjD,MAAM,EAAC,QAAQ,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAExD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,QAAQ,IAAI,IAAI,EAAE;YACpB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;SAC5B;IACH,CAAC,EAAE,CAAC,QAAQ,CA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"AGPL-3.0-only",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"react-native": "0.73.9"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@axelor/aos-mobile-core": "8.2.
|
|
31
|
-
"@axelor/aos-mobile-ui": "8.2.
|
|
30
|
+
"@axelor/aos-mobile-core": "8.2.7",
|
|
31
|
+
"@axelor/aos-mobile-ui": "8.2.7",
|
|
32
32
|
"@reduxjs/toolkit": "^2.2.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|