tycho-components 0.1.0-SNAPSHOT → 0.1.0-SNAPSHOT-2
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/dist/configs/Localization.d.ts +2 -0
- package/dist/configs/localization/CommonTexts.d.ts +3 -0
- package/dist/configs/localization/CommonTexts.js +3 -0
- package/dist/configs/useTourUtils.d.ts +5 -0
- package/dist/configs/useTourUtils.js +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export declare const commonResources: {
|
|
|
4
4
|
'button.confirm': string;
|
|
5
5
|
'button.cancel': string;
|
|
6
6
|
'button.remove': string;
|
|
7
|
+
'button.save': string;
|
|
7
8
|
'select.empty': string;
|
|
8
9
|
'pagination.label.showing': string;
|
|
9
10
|
'pagination.label.results': string;
|
|
@@ -141,6 +142,7 @@ export declare const commonResources: {
|
|
|
141
142
|
'button.confirm': string;
|
|
142
143
|
'button.cancel': string;
|
|
143
144
|
'button.remove': string;
|
|
145
|
+
'button.save': string;
|
|
144
146
|
'select.empty': string;
|
|
145
147
|
'pagination.label.showing': string;
|
|
146
148
|
'pagination.label.results': string;
|
|
@@ -3,6 +3,7 @@ export declare const CommonTexts: {
|
|
|
3
3
|
'button.confirm': string;
|
|
4
4
|
'button.cancel': string;
|
|
5
5
|
'button.remove': string;
|
|
6
|
+
'button.save': string;
|
|
6
7
|
'select.empty': string;
|
|
7
8
|
'pagination.label.showing': string;
|
|
8
9
|
'pagination.label.results': string;
|
|
@@ -26,6 +27,7 @@ export declare const CommonTexts: {
|
|
|
26
27
|
'button.confirm': string;
|
|
27
28
|
'button.cancel': string;
|
|
28
29
|
'button.remove': string;
|
|
30
|
+
'button.save': string;
|
|
29
31
|
'select.empty': string;
|
|
30
32
|
'pagination.label.showing': string;
|
|
31
33
|
'pagination.label.results': string;
|
|
@@ -49,6 +51,7 @@ export declare const CommonTexts: {
|
|
|
49
51
|
'button.confirm': string;
|
|
50
52
|
'button.cancel': string;
|
|
51
53
|
'button.remove': string;
|
|
54
|
+
'button.save': string;
|
|
52
55
|
'select.empty': string;
|
|
53
56
|
'pagination.label.showing': string;
|
|
54
57
|
'pagination.label.results': string;
|
|
@@ -3,6 +3,7 @@ export const CommonTexts = {
|
|
|
3
3
|
'button.confirm': 'Confirm',
|
|
4
4
|
'button.cancel': 'Cancel',
|
|
5
5
|
'button.remove': 'Remove',
|
|
6
|
+
'button.save': 'Save',
|
|
6
7
|
'select.empty': 'Select',
|
|
7
8
|
'pagination.label.showing': '',
|
|
8
9
|
'pagination.label.results': 'results per page',
|
|
@@ -26,6 +27,7 @@ export const CommonTexts = {
|
|
|
26
27
|
'button.confirm': 'Confirmar',
|
|
27
28
|
'button.cancel': 'Cancelar',
|
|
28
29
|
'button.remove': 'Remover',
|
|
30
|
+
'button.save': 'Salvar',
|
|
29
31
|
'select.empty': 'Selecionar',
|
|
30
32
|
'pagination.label.showing': 'Exibindo',
|
|
31
33
|
'pagination.label.results': 'resultados por página',
|
|
@@ -49,6 +51,7 @@ export const CommonTexts = {
|
|
|
49
51
|
'button.confirm': 'Conferma',
|
|
50
52
|
'button.cancel': 'Annulla',
|
|
51
53
|
'button.remove': 'Rimuovi',
|
|
54
|
+
'button.save': 'Salva',
|
|
52
55
|
'select.empty': 'Seleziona',
|
|
53
56
|
'pagination.label.showing': 'Mostrando',
|
|
54
57
|
'pagination.label.results': 'risultati per pagina',
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import CommonContext from './CommonContext';
|
|
3
|
+
import { tour } from './store/actions';
|
|
4
|
+
export const useTourUtils = () => {
|
|
5
|
+
const { state, dispatch } = useContext(CommonContext);
|
|
6
|
+
const turnOn = () => {
|
|
7
|
+
dispatch(tour(true));
|
|
8
|
+
};
|
|
9
|
+
const turnOff = () => {
|
|
10
|
+
dispatch(tour(false));
|
|
11
|
+
};
|
|
12
|
+
const status = () => {
|
|
13
|
+
return state.tour;
|
|
14
|
+
};
|
|
15
|
+
return {
|
|
16
|
+
turnOn,
|
|
17
|
+
turnOff,
|
|
18
|
+
status,
|
|
19
|
+
};
|
|
20
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export { commonResources } from './configs/Localization';
|
|
|
34
34
|
export { useCorpusUtils } from './configs/useCorpusUtils';
|
|
35
35
|
export { useLoggedUtils } from './configs/useLoggedUtils';
|
|
36
36
|
export { useMessageUtils } from './configs/useMessageUtils';
|
|
37
|
+
export { useTourUtils } from './configs/useTourUtils';
|
|
37
38
|
export { UserStatusNames } from './configs/User';
|
|
38
39
|
export type { User, UserStatus } from './configs/User';
|
|
39
40
|
export { default as DateUtils } from './functions/DateUtils';
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export { commonResources } from './configs/Localization';
|
|
|
25
25
|
export { useCorpusUtils } from './configs/useCorpusUtils';
|
|
26
26
|
export { useLoggedUtils } from './configs/useLoggedUtils';
|
|
27
27
|
export { useMessageUtils } from './configs/useMessageUtils';
|
|
28
|
+
export { useTourUtils } from './configs/useTourUtils';
|
|
28
29
|
export { UserStatusNames } from './configs/User';
|
|
29
30
|
export { default as DateUtils } from './functions/DateUtils';
|
|
30
31
|
export { default as FilterUtils } from './functions/FilterUtils';
|