@vixoniccom/aniversarios 0.0.1-beta.0 → 0.0.1-beta.1
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/CHANGELOG.md +2 -0
- package/build.zip +0 -0
- package/package.json +1 -1
- package/src/App.tsx +5 -4
- package/src/components/anniversary-item/clasic/ClasicItem.tsx +3 -3
- package/src/contex/configureContext/ConfigureContext.tsx +0 -1
- package/src/contex/configureContext/configureReducer.ts +3 -1
- package/src/parameters.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.1-beta.1](https://gitlab.com/mandomedio/vixonic/aniversarios/compare/v0.0.1-beta.0...v0.0.1-beta.1) (2022-06-03)
|
|
6
|
+
|
|
5
7
|
### [0.0.1-beta.0](https://gitlab.com/mandomedio/vixonic/aniversarios/compare/v1.0.1-beta.4...v0.0.1-beta.0) (2022-06-03)
|
|
6
8
|
|
|
7
9
|
### 1.0.1-beta.4 (2022-06-03)
|
package/build.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -14,7 +14,7 @@ type Props = {
|
|
|
14
14
|
|
|
15
15
|
type Msj =
|
|
16
16
|
| 'Ningún ingreso que mostrar'
|
|
17
|
-
|'Cargando Empleados...'
|
|
17
|
+
| 'Cargando Empleados...'
|
|
18
18
|
| 'Missing google sheets'
|
|
19
19
|
| ""
|
|
20
20
|
| 'Invalid URL';
|
|
@@ -31,6 +31,7 @@ export const App = ({ data, start }: Props) => {
|
|
|
31
31
|
setDataState(configureState);
|
|
32
32
|
}, [data]);
|
|
33
33
|
|
|
34
|
+
|
|
34
35
|
useEffect(() => {
|
|
35
36
|
if (apiDomain) getData();
|
|
36
37
|
if (!apiDomain) setMsj("Missing google sheets");
|
|
@@ -52,9 +53,9 @@ export const App = ({ data, start }: Props) => {
|
|
|
52
53
|
if (dataMode === 'yearly') {
|
|
53
54
|
setMsj('Cargando Empleados...')
|
|
54
55
|
for (let numberMonth: number = 0; numberMonth <= 11; numberMonth++) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
contractEmployees = await getEmployeesYearly(apiDomain, numberMonth);
|
|
57
|
+
const { values } = contractEmployees.data
|
|
58
|
+
employee.push(...filterEmployees(values, dataMode, excludePast, numberMonth))
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
|
@@ -111,7 +111,7 @@ export const ClasicItem = ({ anniversary }: Props) => {
|
|
|
111
111
|
setMargins(parseBorderMargin(parameters.itemMargins));
|
|
112
112
|
setState(Object.assign({}, parseParameters(parameters)));
|
|
113
113
|
}, []);
|
|
114
|
-
|
|
114
|
+
|
|
115
115
|
const getPhotoUrl = (filename: string) => {
|
|
116
116
|
let mode = parameters.photosMode;
|
|
117
117
|
if (
|
|
@@ -177,14 +177,14 @@ export const ClasicItem = ({ anniversary }: Props) => {
|
|
|
177
177
|
<FormattedText
|
|
178
178
|
text={anniversary.name}
|
|
179
179
|
format={parameters.nameFormat}
|
|
180
|
-
maxChar={parameters.nameMaxChar}
|
|
180
|
+
maxChar={Number(parameters.nameMaxChar)}
|
|
181
181
|
lineHeight={1.2}
|
|
182
182
|
/>
|
|
183
183
|
{state.descriptionEnabled && (
|
|
184
184
|
<FormattedText
|
|
185
185
|
text={anniversary.position}
|
|
186
186
|
format={parameters.descriptionFormat}
|
|
187
|
-
maxChar={parameters.descriptionMaxChar}
|
|
187
|
+
maxChar={Number(parameters.descriptionMaxChar)}
|
|
188
188
|
lineHeight={1.2}
|
|
189
189
|
/>
|
|
190
190
|
)}
|
|
@@ -52,7 +52,9 @@ export const anniversaryReducer = (state: VixonicData, action: ConfigureAction)
|
|
|
52
52
|
imageMargin: parameters.imageMargin,
|
|
53
53
|
textMargin: parameters.textMargin,
|
|
54
54
|
dateMargin: parameters.dateMargin,
|
|
55
|
-
separator: parameters.separator
|
|
55
|
+
separator: parameters.separator,
|
|
56
|
+
nameMaxChar: parameters.nameMaxChar,
|
|
57
|
+
descriptionMaxChar: parameters.descriptionMaxChar
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
default:
|