siam-ui-utils 1.0.23 → 1.1.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/.eslintrc.json +23 -1
- package/dist_browser/src/anular-ayuda-icon.jsx +2 -4
- package/package.json +1 -1
- package/src/anular-ayuda-icon.jsx +2 -4
- package/dist_browser/src/commons/defaultValues.js +0 -22
- package/dist_browser/src/constants/defaultValues.js +0 -7
- package/src/commons/defaultValues.js +0 -22
- package/src/constants/defaultValues.js +0 -7
package/.eslintrc.json
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends":
|
|
2
|
+
"extends": [
|
|
3
|
+
"eslint:recommended",
|
|
4
|
+
"plugin:react/recommended",
|
|
5
|
+
"plugin:react-hooks/recommended"
|
|
6
|
+
],
|
|
7
|
+
"plugins": [
|
|
8
|
+
"react",
|
|
9
|
+
"react-hooks"
|
|
10
|
+
],
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"ecmaVersion": 2020,
|
|
13
|
+
"sourceType": "module",
|
|
14
|
+
"ecmaFeatures": {
|
|
15
|
+
"jsx": true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"env": {
|
|
19
|
+
"browser": true,
|
|
20
|
+
"es2020": true
|
|
21
|
+
},
|
|
22
|
+
"rules": {
|
|
23
|
+
"react/react-in-jsx-scope": "off"
|
|
24
|
+
}
|
|
3
25
|
}
|
|
@@ -2,11 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { withTheme } from 'styled-components';
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
4
|
import { Icon } from './styled-icon';
|
|
5
|
-
import { tipoServicioEconomico } from './constants/defaultValues';
|
|
6
5
|
|
|
7
6
|
const AnularAyudaIcon = (props) => {
|
|
8
|
-
const {
|
|
9
|
-
const { sublabel = '', size = '', title } = props || {};
|
|
7
|
+
const { sublabel = '', size = '', title, tipoServicioEconomico} = props || {};
|
|
10
8
|
const sublabeldisplay = sublabel.length > 0 ? 'block' : undefined;
|
|
11
9
|
const {
|
|
12
10
|
codDelegacion,
|
|
@@ -31,7 +29,7 @@ const AnularAyudaIcon = (props) => {
|
|
|
31
29
|
fechaVtoTramite: fechaVtoTramite,
|
|
32
30
|
netoFinal: netoFinal,
|
|
33
31
|
fechaAcreditacion: fechaAcreditacion,
|
|
34
|
-
tipoServicio:
|
|
32
|
+
tipoServicio: tipoServicioEconomico,
|
|
35
33
|
})
|
|
36
34
|
}
|
|
37
35
|
>
|
package/package.json
CHANGED
|
@@ -2,11 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { withTheme } from 'styled-components';
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
4
|
import { Icon } from './styled-icon';
|
|
5
|
-
import { tipoServicioEconomico } from './constants/defaultValues';
|
|
6
5
|
|
|
7
6
|
const AnularAyudaIcon = (props) => {
|
|
8
|
-
const {
|
|
9
|
-
const { sublabel = '', size = '', title } = props || {};
|
|
7
|
+
const { sublabel = '', size = '', title, tipoServicioEconomico} = props || {};
|
|
10
8
|
const sublabeldisplay = sublabel.length > 0 ? 'block' : undefined;
|
|
11
9
|
const {
|
|
12
10
|
codDelegacion,
|
|
@@ -31,7 +29,7 @@ const AnularAyudaIcon = (props) => {
|
|
|
31
29
|
fechaVtoTramite: fechaVtoTramite,
|
|
32
30
|
netoFinal: netoFinal,
|
|
33
31
|
fechaAcreditacion: fechaAcreditacion,
|
|
34
|
-
tipoServicio:
|
|
32
|
+
tipoServicio: tipoServicioEconomico,
|
|
35
33
|
})
|
|
36
34
|
}
|
|
37
35
|
>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const idMutualToCodMutual = {
|
|
2
|
-
"01": "AMPF",
|
|
3
|
-
"02": "AMPC",
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const numberLocalConf = {
|
|
7
|
-
locales: "es-AR",
|
|
8
|
-
minimumFractionDigits: 2,
|
|
9
|
-
maximumFractionDigits: 2,
|
|
10
|
-
style: "currency",
|
|
11
|
-
currency: "ARS",
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const fieldTypes = {
|
|
15
|
-
string: "string",
|
|
16
|
-
number: "number",
|
|
17
|
-
date: "date",
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const defaultDirection = "ltr";
|
|
21
|
-
|
|
22
|
-
export { idMutualToCodMutual, numberLocalConf, fieldTypes, defaultDirection };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const idMutualToCodMutual = {
|
|
2
|
-
"01": "AMPF",
|
|
3
|
-
"02": "AMPC",
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const numberLocalConf = {
|
|
7
|
-
locales: "es-AR",
|
|
8
|
-
minimumFractionDigits: 2,
|
|
9
|
-
maximumFractionDigits: 2,
|
|
10
|
-
style: "currency",
|
|
11
|
-
currency: "ARS",
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const fieldTypes = {
|
|
15
|
-
string: "string",
|
|
16
|
-
number: "number",
|
|
17
|
-
date: "date",
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const defaultDirection = "ltr";
|
|
21
|
-
|
|
22
|
-
export { idMutualToCodMutual, numberLocalConf, fieldTypes, defaultDirection };
|