@mistertemp/libs-front-shared 2.0.0-alpha.1 → 2.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/CHANGELOG.md +30 -0
- package/package.json +17 -17
- package/src/components/AccountFilter/AccountFilter.tsx +3 -2
- package/src/components/EnvironmentFilter/EnvironmentFilter.tsx +2 -2
- package/src/components/Filter/Filter.tsx +2 -1
- package/src/components/ProfessionFilter/ProfessionFilter.tsx +3 -2
- package/src/components/TextFilter/TextFilter.tsx +3 -2
- package/src/locales/es/scc-common-filters.json +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.0](https://github.com/mistertemp/shared-libs-front/compare/@mistertemp/libs-front-shared@2.0.0...@mistertemp/libs-front-shared@2.1.0) (2026-04-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add spanish translations to filters ([06a9e0b](https://github.com/mistertemp/shared-libs-front/commit/06a9e0b2ba8b6825902e3fa7598c59b5d835b12c))
|
|
9
|
+
* add templatesDrawer filter to localstorage ([#856](https://github.com/mistertemp/shared-libs-front/issues/856)) ([39337f0](https://github.com/mistertemp/shared-libs-front/commit/39337f07037b6e77b7c3f96d437b70b1681a98cd))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **deps:** bump glob from 10.4.5 to 10.5.0 in /libs-front-shared ([#721](https://github.com/mistertemp/shared-libs-front/issues/721)) ([2217a45](https://github.com/mistertemp/shared-libs-front/commit/2217a458bdab9b13e727dcc1647e87cbf52baa54))
|
|
15
|
+
* **deps:** bump immutable from 5.1.3 to 5.1.5 in /libs-front-shared ([#838](https://github.com/mistertemp/shared-libs-front/issues/838)) ([92125c8](https://github.com/mistertemp/shared-libs-front/commit/92125c88801186936df78cb968e919eae0ebe6d8))
|
|
16
|
+
* **deps:** bump js-yaml from 3.14.1 to 3.14.2 in /libs-front-shared ([#715](https://github.com/mistertemp/shared-libs-front/issues/715)) ([22c559d](https://github.com/mistertemp/shared-libs-front/commit/22c559d047eb25b117ea892d4692056bf8e66a2e))
|
|
17
|
+
* **deps:** bump minimatch from 3.1.2 to 3.1.5 in /libs-front-shared ([#832](https://github.com/mistertemp/shared-libs-front/issues/832)) ([ade0b5d](https://github.com/mistertemp/shared-libs-front/commit/ade0b5df67126199acb8f8f08ea4fccb82daa2d6))
|
|
18
|
+
* **deps:** bump picomatch from 2.3.1 to 2.3.2 in /libs-front-shared ([#899](https://github.com/mistertemp/shared-libs-front/issues/899)) ([5e6e2b6](https://github.com/mistertemp/shared-libs-front/commit/5e6e2b6c6c5c366737b0a2f8262930f2ec6eb457))
|
|
19
|
+
* **deps:** bump react-router and react-router-dom in /libs-front-shared ([#805](https://github.com/mistertemp/shared-libs-front/issues/805)) ([cacdb1d](https://github.com/mistertemp/shared-libs-front/commit/cacdb1dfcf9077939ddc64ba480f4e71a7137e37))
|
|
20
|
+
* **deps:** bump vite from 7.1.4 to 7.1.11 in /libs-front-shared ([#687](https://github.com/mistertemp/shared-libs-front/issues/687)) ([af537cf](https://github.com/mistertemp/shared-libs-front/commit/af537cf73a86500f0385f1e2b7c1270d6fb65587))
|
|
21
|
+
|
|
22
|
+
## [2.0.0](https://github.com/mistertemp/shared-libs-front/compare/@mistertemp/libs-front-shared@1.2.1...@mistertemp/libs-front-shared@2.0.0) (2025-09-05)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### ⚠ BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
* upgrade to react 18 ([#598](https://github.com/mistertemp/shared-libs-front/issues/598))
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* upgrade to react 18 ([#598](https://github.com/mistertemp/shared-libs-front/issues/598)) ([1c99d25](https://github.com/mistertemp/shared-libs-front/commit/1c99d251f613727b4a701e9285ceedddd133c2ff))
|
|
32
|
+
|
|
3
33
|
## [1.2.1](https://github.com/mistertemp/shared-libs-front/compare/@mistertemp/libs-front-shared@1.2.0...@mistertemp/libs-front-shared@1.2.1) (2025-08-08)
|
|
4
34
|
|
|
5
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mistertemp/libs-front-shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@axe-core/react": "4.10.0",
|
|
25
|
-
"@mistertemp/design-system": "13.
|
|
25
|
+
"@mistertemp/design-system": "13.2.0",
|
|
26
26
|
"@mistertemp/libs-work-environments": "0.8.1",
|
|
27
27
|
"@mistertemp/types-shared": "2.7.0",
|
|
28
28
|
"@testing-library/dom": "10.4.1",
|
|
29
|
-
"@testing-library/jest-dom": "6.
|
|
29
|
+
"@testing-library/jest-dom": "6.9.0",
|
|
30
30
|
"@testing-library/react": "16.3.0",
|
|
31
31
|
"@testing-library/user-event": "14.6.1",
|
|
32
32
|
"@types/jest": "30.0.0",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"@types/react": "18.3.12",
|
|
35
35
|
"@types/react-dom": "18.3.5",
|
|
36
36
|
"@types/react-transition-group": "4.4.12",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
38
|
-
"@typescript-eslint/parser": "8.
|
|
39
|
-
"@vitejs/plugin-react-swc": "4.0
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "8.46.0",
|
|
38
|
+
"@typescript-eslint/parser": "8.46.0",
|
|
39
|
+
"@vitejs/plugin-react-swc": "4.1.0",
|
|
40
40
|
"date-fns": "3.6.0",
|
|
41
41
|
"eslint": "8.57.1",
|
|
42
42
|
"eslint-config-prettier": "10.1.8",
|
|
@@ -46,35 +46,35 @@
|
|
|
46
46
|
"eslint-plugin-react": "7.37.5",
|
|
47
47
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
48
48
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
49
|
-
"eslint-plugin-testing-library": "7.
|
|
49
|
+
"eslint-plugin-testing-library": "7.13.1",
|
|
50
50
|
"fuse.js": "7.1.0",
|
|
51
|
-
"i18next": "25.
|
|
51
|
+
"i18next": "25.5.2",
|
|
52
52
|
"i18next-browser-languagedetector": "8.2.0",
|
|
53
53
|
"i18next-http-backend": "3.0.2",
|
|
54
54
|
"identity-obj-proxy": "3.0.0",
|
|
55
|
-
"jest-environment-jsdom": "30.
|
|
56
|
-
"lodash": "4.
|
|
55
|
+
"jest-environment-jsdom": "30.2.0",
|
|
56
|
+
"lodash": "4.18.1",
|
|
57
57
|
"prettier": "3.6.2",
|
|
58
58
|
"react": "18.3.1",
|
|
59
59
|
"react-dom": "18.3.1",
|
|
60
|
-
"react-hook-form": "7.
|
|
60
|
+
"react-hook-form": "7.64.0",
|
|
61
61
|
"react-i18next": "15.7.3",
|
|
62
|
-
"react-router-dom": "7.
|
|
62
|
+
"react-router-dom": "7.13.0",
|
|
63
63
|
"react-transition-group": "4.4.5",
|
|
64
|
-
"sass": "1.
|
|
65
|
-
"stylelint": "16.
|
|
64
|
+
"sass": "1.93.2",
|
|
65
|
+
"stylelint": "16.25.0",
|
|
66
66
|
"stylelint-config-idiomatic-order": "10.0.0",
|
|
67
|
-
"stylelint-config-standard-scss": "
|
|
67
|
+
"stylelint-config-standard-scss": "16.0.0",
|
|
68
68
|
"stylelint-prettier": "5.0.3",
|
|
69
69
|
"ts-jest": "29.4.1",
|
|
70
70
|
"ts-node": "10.9.2",
|
|
71
71
|
"typescript": "5.9.2",
|
|
72
|
-
"vite": "7.
|
|
72
|
+
"vite": "7.3.2",
|
|
73
73
|
"vite-plugin-environment": "1.1.3",
|
|
74
74
|
"vite-plugin-svgr": "4.5.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@mistertemp/design-system": ">=13.0.0
|
|
77
|
+
"@mistertemp/design-system": ">=13.0.0",
|
|
78
78
|
"@mistertemp/libs-work-environments": "^0.8.1",
|
|
79
79
|
"i18next": "^25.4.2",
|
|
80
80
|
"i18next-browser-languagedetector": ">=8.2.0",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import { useBundledTranslation } from '../../hooks';
|
|
4
|
+
import es from '../../locales/es/scc-common-filters.json';
|
|
4
5
|
import fr from '../../locales/fr/scc-common-filters.json';
|
|
5
6
|
import it from '../../locales/it/scc-common-filters.json';
|
|
6
7
|
import { Filter, FilterDropdownOption, FilterProps } from '../Filter';
|
|
@@ -19,7 +20,7 @@ export const AccountFilter = ({
|
|
|
19
20
|
options,
|
|
20
21
|
...props
|
|
21
22
|
}: AccountFilterProps) => {
|
|
22
|
-
const { t } = useBundledTranslation('scc-common-filters', { fr, it });
|
|
23
|
+
const { t } = useBundledTranslation('scc-common-filters', { fr, it, es });
|
|
23
24
|
const [inputValue, setInputValue] = useState('');
|
|
24
25
|
|
|
25
26
|
return (
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ENVIRONMENTS_CODE, getAllFlattenedEnvironments } from '@mistertemp/libs-work-environments';
|
|
2
2
|
import Fuse, { IFuseOptions } from 'fuse.js';
|
|
3
3
|
import { merge } from 'lodash';
|
|
4
|
-
import React from 'react';
|
|
5
4
|
import { useMemo, useState } from 'react';
|
|
6
5
|
|
|
7
6
|
import { useBundledTranslation } from '../../hooks';
|
|
7
|
+
import es from '../../locales/es/scc-common-filters.json';
|
|
8
8
|
import fr from '../../locales/fr/scc-common-filters.json';
|
|
9
9
|
import it from '../../locales/it/scc-common-filters.json';
|
|
10
10
|
import { Filter, FilterDropdownOption, FilterProps } from '../Filter';
|
|
@@ -57,7 +57,7 @@ export const EnvironmentFilter = ({
|
|
|
57
57
|
fuseOptions,
|
|
58
58
|
...props
|
|
59
59
|
}: EnvironmentFilterProps) => {
|
|
60
|
-
const { t } = useBundledTranslation('scc-common-filters', { fr, it });
|
|
60
|
+
const { t } = useBundledTranslation('scc-common-filters', { fr, it, es });
|
|
61
61
|
const [inputValue, setInputValue] = useState<string | undefined>(undefined);
|
|
62
62
|
|
|
63
63
|
const fuse = useMemo(() => {
|
|
@@ -13,6 +13,7 @@ import React, { useEffect } from 'react';
|
|
|
13
13
|
import { useCallback, useState } from 'react';
|
|
14
14
|
|
|
15
15
|
import { useBundledTranslation } from '../../hooks';
|
|
16
|
+
import es from '../../locales/es/scc-common-filters.json';
|
|
16
17
|
import fr from '../../locales/fr/scc-common-filters.json';
|
|
17
18
|
import it from '../../locales/it/scc-common-filters.json';
|
|
18
19
|
|
|
@@ -89,7 +90,7 @@ export function Filter<T extends string = string>({
|
|
|
89
90
|
selectorProps,
|
|
90
91
|
...props
|
|
91
92
|
}: FilterProps<T>) {
|
|
92
|
-
const { t } = useBundledTranslation('scc-common-filters', { fr, it });
|
|
93
|
+
const { t } = useBundledTranslation('scc-common-filters', { fr, it, es });
|
|
93
94
|
|
|
94
95
|
const [internalDropdownValue, setInternalDropdownValue] = useState<
|
|
95
96
|
FilterDropdownOption<T>[] | undefined
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
DropdownStaticListProvider,
|
|
5
5
|
} from '@mistertemp/design-system';
|
|
6
6
|
import { isEqual } from 'lodash';
|
|
7
|
-
import
|
|
7
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import { useBundledTranslation, useDebouncedSearchInput } from '../../hooks';
|
|
10
|
+
import es from '../../locales/es/scc-common-filters.json';
|
|
10
11
|
import fr from '../../locales/fr/scc-common-filters.json';
|
|
11
12
|
import it from '../../locales/it/scc-common-filters.json';
|
|
12
13
|
import { SearchableFilterProps } from '../../typings';
|
|
@@ -63,7 +64,7 @@ export const ProfessionFilter = ({
|
|
|
63
64
|
'data-testid': dataTestId = 'filters+profession',
|
|
64
65
|
...props
|
|
65
66
|
}: ProfessionFilterProps) => {
|
|
66
|
-
const { t } = useBundledTranslation('scc-common-filters', { fr, it });
|
|
67
|
+
const { t } = useBundledTranslation('scc-common-filters', { fr, it, es });
|
|
67
68
|
|
|
68
69
|
const [searchInput, setSearchInput] = useState('');
|
|
69
70
|
const [sortedOptions, setSortedOptions] = useState<FilterDropdownOption[]>([]);
|
|
@@ -8,9 +8,10 @@ import {
|
|
|
8
8
|
import { InputTextProps } from '@mistertemp/design-system/src/components/design-system/Input/InputText';
|
|
9
9
|
import isEmpty from 'lodash/isEmpty';
|
|
10
10
|
import isString from 'lodash/isString';
|
|
11
|
-
import
|
|
11
|
+
import { useEffect, useState, VFC } from 'react';
|
|
12
12
|
|
|
13
13
|
import { useBundledTranslation } from '../../hooks';
|
|
14
|
+
import es from '../../locales/es/scc-common-filters.json';
|
|
14
15
|
import fr from '../../locales/fr/scc-common-filters.json';
|
|
15
16
|
import it from '../../locales/it/scc-common-filters.json';
|
|
16
17
|
import styles from './TextFilter.module.scss';
|
|
@@ -74,7 +75,7 @@ export const TextFilter: VFC<TextFilterProps> = ({
|
|
|
74
75
|
size = 'small',
|
|
75
76
|
...dropdownProps
|
|
76
77
|
}) => {
|
|
77
|
-
const { t } = useBundledTranslation('scc-common-filters', { fr, it });
|
|
78
|
+
const { t } = useBundledTranslation('scc-common-filters', { fr, it, es });
|
|
78
79
|
|
|
79
80
|
const [inputValue, setInputValue] = useState(dropdownValue ?? '');
|
|
80
81
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"filters": {
|
|
3
|
+
"account": {
|
|
4
|
+
"placeholder": "Buscar un cliente"
|
|
5
|
+
},
|
|
6
|
+
"profession": {
|
|
7
|
+
"label": "Cualificación",
|
|
8
|
+
"placeholder": "Cualificación",
|
|
9
|
+
"search": {
|
|
10
|
+
"placeholder": "Buscar una cualificación"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"environment": {
|
|
14
|
+
"placeholder": "Entorno"
|
|
15
|
+
},
|
|
16
|
+
"date": {
|
|
17
|
+
"placeholder": "Fecha"
|
|
18
|
+
},
|
|
19
|
+
"noResult": "Sin resultados"
|
|
20
|
+
},
|
|
21
|
+
"actions": {
|
|
22
|
+
"removeFilter": "Eliminar el filtro",
|
|
23
|
+
"resetFilter": "Restablecer el filtro"
|
|
24
|
+
}
|
|
25
|
+
}
|