cozy-ui-plus 13.0.17 → 13.2.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 +14 -0
- package/dist/AppSections/Sections.js +114 -0
- package/dist/AppTile/index.js +30 -0
- package/dist/Contacts/AddModal/ContactAddressDialog/locales/index.js +78 -0
- package/dist/Contacts/AddModal/ContactForm/locales/index.js +231 -0
- package/dist/Contacts/AddModal/CustomLabelDialog/locales/index.js +48 -0
- package/dist/Contacts/AddModal/locales/index.js +43 -1
- package/dist/Contacts/GroupsSelect/locales/index.js +66 -0
- package/dist/Contacts/Header/locales/index.js +48 -0
- package/dist/ContactsList/locales/withContactsListLocales.js +18 -0
- package/dist/ContactsListModal/withContactsListLocales.js +37 -1
- package/dist/Dialogs/AuthentificationDialog/withSpecificDialogsLocales.js +57 -0
- package/dist/Intent/IntentDialogOpener/index.js +6 -1
- package/dist/Intent/IntentIframe/index.js +19 -3
- package/dist/Paywall/locales/withPaywallLocales.js +324 -0
- package/dist/Qualification/QualificationModal/locales/index.js +21 -0
- package/dist/Storage/locales/index.js +24 -0
- package/dist/src/Contacts/AddModal/ContactAddressDialog/locales/index.d.ts +6 -0
- package/dist/src/Contacts/AddModal/ContactForm/locales/index.d.ts +6 -0
- package/dist/src/Contacts/AddModal/CustomLabelDialog/locales/index.d.ts +6 -0
- package/dist/src/Contacts/AddModal/locales/index.d.ts +6 -0
- package/dist/src/Contacts/GroupsSelect/locales/index.d.ts +6 -0
- package/dist/src/Contacts/Header/locales/index.d.ts +6 -0
- package/dist/src/ContactsList/locales/withContactsListLocales.d.ts +6 -0
- package/dist/src/ContactsListModal/withContactsListLocales.d.ts +6 -0
- package/dist/src/Dialogs/AuthentificationDialog/withSpecificDialogsLocales.d.ts +6 -0
- package/dist/src/Intent/IntentDialogOpener/index.d.ts +1 -0
- package/dist/src/Qualification/QualificationModal/locales/index.d.ts +6 -0
- package/dist/src/Storage/locales/index.d.ts +6 -0
- package/package.json +6 -6
- package/src/AppSections/Sections.jsx +6 -0
- package/src/AppSections/locales/de.json +37 -0
- package/src/AppSections/locales/es.json +37 -0
- package/src/AppSections/locales/it.json +37 -0
- package/src/AppTile/index.jsx +4 -1
- package/src/AppTile/locales/de.json +9 -0
- package/src/AppTile/locales/es.json +9 -0
- package/src/AppTile/locales/it.json +9 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/de.json +25 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/es.json +25 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/index.jsx +6 -0
- package/src/Contacts/AddModal/ContactAddressDialog/locales/it.json +25 -0
- package/src/Contacts/AddModal/ContactForm/locales/de.json +76 -0
- package/src/Contacts/AddModal/ContactForm/locales/es.json +76 -0
- package/src/Contacts/AddModal/ContactForm/locales/index.jsx +6 -0
- package/src/Contacts/AddModal/ContactForm/locales/it.json +76 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/de.json +15 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/es.json +15 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/index.jsx +6 -0
- package/src/Contacts/AddModal/CustomLabelDialog/locales/it.json +15 -0
- package/src/Contacts/AddModal/locales/de.json +13 -0
- package/src/Contacts/AddModal/locales/es.json +13 -0
- package/src/Contacts/AddModal/locales/fr.json +1 -1
- package/src/Contacts/AddModal/locales/index.jsx +6 -0
- package/src/Contacts/AddModal/locales/it.json +13 -0
- package/src/Contacts/GroupsSelect/locales/de.json +21 -0
- package/src/Contacts/GroupsSelect/locales/es.json +21 -0
- package/src/Contacts/GroupsSelect/locales/index.jsx +6 -0
- package/src/Contacts/GroupsSelect/locales/it.json +21 -0
- package/src/Contacts/Header/locales/de.json +15 -0
- package/src/Contacts/Header/locales/es.json +15 -0
- package/src/Contacts/Header/locales/index.jsx +6 -0
- package/src/Contacts/Header/locales/it.json +15 -0
- package/src/ContactsList/locales/de.json +5 -0
- package/src/ContactsList/locales/es.json +5 -0
- package/src/ContactsList/locales/it.json +5 -0
- package/src/ContactsList/locales/withContactsListLocales.jsx +6 -0
- package/src/ContactsListModal/locales/de.json +11 -0
- package/src/ContactsListModal/locales/es.json +11 -0
- package/src/ContactsListModal/locales/it.json +11 -0
- package/src/ContactsListModal/withContactsListLocales.jsx +7 -1
- package/src/Dialogs/AuthentificationDialog/locales/de.json +18 -0
- package/src/Dialogs/AuthentificationDialog/locales/es.json +18 -0
- package/src/Dialogs/AuthentificationDialog/locales/it.json +18 -0
- package/src/Dialogs/AuthentificationDialog/withSpecificDialogsLocales.jsx +6 -0
- package/src/Intent/IntentDialogOpener/Readme.md +4 -0
- package/src/Intent/IntentDialogOpener/index.jsx +4 -0
- package/src/Intent/IntentDialogOpener/index.spec.jsx +23 -2
- package/src/Intent/IntentIframe/Readme.md +8 -0
- package/src/Intent/IntentIframe/index.jsx +19 -7
- package/src/Intent/IntentIframe/index.spec.jsx +40 -3
- package/src/Paywall/locales/de.json +107 -0
- package/src/Paywall/locales/es.json +107 -0
- package/src/Paywall/locales/it.json +107 -0
- package/src/Paywall/locales/withPaywallLocales.jsx +6 -0
- package/src/Qualification/QualificationModal/locales/de.json +6 -0
- package/src/Qualification/QualificationModal/locales/es.json +6 -0
- package/src/Qualification/QualificationModal/locales/index.jsx +6 -0
- package/src/Qualification/QualificationModal/locales/it.json +6 -0
- package/src/Storage/locales/de.json +7 -0
- package/src/Storage/locales/es.json +7 -0
- package/src/Storage/locales/index.jsx +6 -0
- package/src/Storage/locales/it.json +7 -0
|
@@ -4,6 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.locales = void 0;
|
|
7
|
+
var de = {
|
|
8
|
+
Contacts: {
|
|
9
|
+
AddModal: {
|
|
10
|
+
error: {
|
|
11
|
+
save: "Beim Speichern des Kontakts ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut"
|
|
12
|
+
},
|
|
13
|
+
"edit-contact": "Kontakt bearbeiten",
|
|
14
|
+
create_contact: "Kontakt erstellen",
|
|
15
|
+
cancel: "Abbrechen",
|
|
16
|
+
save: "Speichern"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
7
20
|
var en = {
|
|
8
21
|
Contacts: {
|
|
9
22
|
AddModal: {
|
|
@@ -17,19 +30,45 @@ var en = {
|
|
|
17
30
|
}
|
|
18
31
|
}
|
|
19
32
|
};
|
|
33
|
+
var es = {
|
|
34
|
+
Contacts: {
|
|
35
|
+
AddModal: {
|
|
36
|
+
error: {
|
|
37
|
+
save: "Se ha producido un error al guardar el contacto. Int\xE9ntelo de nuevo"
|
|
38
|
+
},
|
|
39
|
+
"edit-contact": "Editar el contacto",
|
|
40
|
+
create_contact: "Crear un contacto",
|
|
41
|
+
cancel: "Cancelar",
|
|
42
|
+
save: "Guardar"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
20
46
|
var fr = {
|
|
21
47
|
Contacts: {
|
|
22
48
|
AddModal: {
|
|
23
49
|
error: {
|
|
24
50
|
save: "Une erreur est survenue lors de l'enregistrement du contact, veuillez r\xE9essayer"
|
|
25
51
|
},
|
|
26
|
-
"edit-contact": "
|
|
52
|
+
"edit-contact": "Modifier le contact",
|
|
27
53
|
create_contact: "Cr\xE9er un contact",
|
|
28
54
|
cancel: "Annuler",
|
|
29
55
|
save: "Enregistrer"
|
|
30
56
|
}
|
|
31
57
|
}
|
|
32
58
|
};
|
|
59
|
+
var it = {
|
|
60
|
+
Contacts: {
|
|
61
|
+
AddModal: {
|
|
62
|
+
error: {
|
|
63
|
+
save: "Si \xE8 verificato un errore durante il salvataggio del contatto, riprova"
|
|
64
|
+
},
|
|
65
|
+
"edit-contact": "Modifica contatto",
|
|
66
|
+
create_contact: "Crea un contatto",
|
|
67
|
+
cancel: "Annulla",
|
|
68
|
+
save: "Salva"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
33
72
|
var ru = {
|
|
34
73
|
Contacts: {
|
|
35
74
|
AddModal: {
|
|
@@ -57,8 +96,11 @@ var vi = {
|
|
|
57
96
|
}
|
|
58
97
|
};
|
|
59
98
|
var locales = {
|
|
99
|
+
de: de,
|
|
60
100
|
en: en,
|
|
101
|
+
es: es,
|
|
61
102
|
fr: fr,
|
|
103
|
+
it: it,
|
|
62
104
|
ru: ru,
|
|
63
105
|
vi: vi
|
|
64
106
|
};
|
|
@@ -4,6 +4,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.locales = void 0;
|
|
7
|
+
var de = {
|
|
8
|
+
Contacts: {
|
|
9
|
+
GroupsSelect: {
|
|
10
|
+
create: "Gruppe erstellen",
|
|
11
|
+
name: "Name der Gruppe",
|
|
12
|
+
already_exists: "Die Gruppe %{name} existiert bereits.",
|
|
13
|
+
manage: "Gruppen",
|
|
14
|
+
filter: {
|
|
15
|
+
"all-groups": "Alle Gruppen"
|
|
16
|
+
},
|
|
17
|
+
created: {
|
|
18
|
+
success: "Die Gruppe wurde erfolgreich erstellt.",
|
|
19
|
+
error: "Die Gruppe konnte nicht erstellt werden."
|
|
20
|
+
},
|
|
21
|
+
renamed: {
|
|
22
|
+
success: "Die Gruppe wurde erfolgreich umbenannt.",
|
|
23
|
+
error: "Die Gruppe konnte nicht umbenannt werden."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
7
28
|
var en = {
|
|
8
29
|
Contacts: {
|
|
9
30
|
GroupsSelect: {
|
|
@@ -25,6 +46,27 @@ var en = {
|
|
|
25
46
|
}
|
|
26
47
|
}
|
|
27
48
|
};
|
|
49
|
+
var es = {
|
|
50
|
+
Contacts: {
|
|
51
|
+
GroupsSelect: {
|
|
52
|
+
create: "Crear un grupo",
|
|
53
|
+
name: "Nombre del grupo",
|
|
54
|
+
already_exists: "El grupo %{name} ya existe.",
|
|
55
|
+
manage: "Grupos",
|
|
56
|
+
filter: {
|
|
57
|
+
"all-groups": "Todos los grupos"
|
|
58
|
+
},
|
|
59
|
+
created: {
|
|
60
|
+
success: "El grupo se ha creado correctamente.",
|
|
61
|
+
error: "No se ha podido crear el grupo."
|
|
62
|
+
},
|
|
63
|
+
renamed: {
|
|
64
|
+
success: "El grupo se ha renombrado correctamente.",
|
|
65
|
+
error: "No se ha podido renombrar el grupo."
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
28
70
|
var fr = {
|
|
29
71
|
Contacts: {
|
|
30
72
|
GroupsSelect: {
|
|
@@ -46,6 +88,27 @@ var fr = {
|
|
|
46
88
|
}
|
|
47
89
|
}
|
|
48
90
|
};
|
|
91
|
+
var it = {
|
|
92
|
+
Contacts: {
|
|
93
|
+
GroupsSelect: {
|
|
94
|
+
create: "Crea un gruppo",
|
|
95
|
+
name: "Nome del gruppo",
|
|
96
|
+
already_exists: "Il gruppo %{name} esiste gi\xE0.",
|
|
97
|
+
manage: "Gruppi",
|
|
98
|
+
filter: {
|
|
99
|
+
"all-groups": "Tutti i gruppi"
|
|
100
|
+
},
|
|
101
|
+
created: {
|
|
102
|
+
success: "Il gruppo \xE8 stato creato correttamente.",
|
|
103
|
+
error: "Impossibile creare il gruppo."
|
|
104
|
+
},
|
|
105
|
+
renamed: {
|
|
106
|
+
success: "Il gruppo \xE8 stato rinominato correttamente.",
|
|
107
|
+
error: "Impossibile rinominare il gruppo."
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
49
112
|
var ru = {
|
|
50
113
|
Contacts: {
|
|
51
114
|
GroupsSelect: {
|
|
@@ -89,8 +152,11 @@ var vi = {
|
|
|
89
152
|
}
|
|
90
153
|
};
|
|
91
154
|
var locales = {
|
|
155
|
+
de: de,
|
|
92
156
|
en: en,
|
|
157
|
+
es: es,
|
|
93
158
|
fr: fr,
|
|
159
|
+
it: it,
|
|
94
160
|
ru: ru,
|
|
95
161
|
vi: vi
|
|
96
162
|
};
|
|
@@ -4,6 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.locales = void 0;
|
|
7
|
+
var de = {
|
|
8
|
+
Contacts: {
|
|
9
|
+
Header: {
|
|
10
|
+
create: "Erstellen",
|
|
11
|
+
filter: {
|
|
12
|
+
"no-group": "Erstellen Sie Kontaktgruppen, um das Ordnen und Teilen zu erleichtern!"
|
|
13
|
+
},
|
|
14
|
+
"import": {
|
|
15
|
+
title: "Importieren",
|
|
16
|
+
store: "Aus anderen Quellen",
|
|
17
|
+
vcard: "Aus einer vCard-Datei"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
7
22
|
var en = {
|
|
8
23
|
Contacts: {
|
|
9
24
|
Header: {
|
|
@@ -19,6 +34,21 @@ var en = {
|
|
|
19
34
|
}
|
|
20
35
|
}
|
|
21
36
|
};
|
|
37
|
+
var es = {
|
|
38
|
+
Contacts: {
|
|
39
|
+
Header: {
|
|
40
|
+
create: "Crear",
|
|
41
|
+
filter: {
|
|
42
|
+
"no-group": "\xA1Cree grupos de contactos para facilitar su organizaci\xF3n y el uso compartido!"
|
|
43
|
+
},
|
|
44
|
+
"import": {
|
|
45
|
+
title: "Importar",
|
|
46
|
+
store: "Desde otras fuentes",
|
|
47
|
+
vcard: "Desde un archivo vCard"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
22
52
|
var fr = {
|
|
23
53
|
Contacts: {
|
|
24
54
|
Header: {
|
|
@@ -34,6 +64,21 @@ var fr = {
|
|
|
34
64
|
}
|
|
35
65
|
}
|
|
36
66
|
};
|
|
67
|
+
var it = {
|
|
68
|
+
Contacts: {
|
|
69
|
+
Header: {
|
|
70
|
+
create: "Crea",
|
|
71
|
+
filter: {
|
|
72
|
+
"no-group": "Crea gruppi di contatti per organizzarli e condividerli pi\xF9 facilmente!"
|
|
73
|
+
},
|
|
74
|
+
"import": {
|
|
75
|
+
title: "Importa",
|
|
76
|
+
store: "Da altre fonti",
|
|
77
|
+
vcard: "Da un file vCard"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
37
82
|
var ru = {
|
|
38
83
|
Contacts: {
|
|
39
84
|
Header: {
|
|
@@ -65,8 +110,11 @@ var vi = {
|
|
|
65
110
|
}
|
|
66
111
|
};
|
|
67
112
|
var locales = {
|
|
113
|
+
de: de,
|
|
68
114
|
en: en,
|
|
115
|
+
es: es,
|
|
69
116
|
fr: fr,
|
|
117
|
+
it: it,
|
|
70
118
|
ru: ru,
|
|
71
119
|
vi: vi
|
|
72
120
|
};
|
|
@@ -7,16 +7,31 @@ exports.locales = exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _twakeI18n = require("twake-i18n");
|
|
9
9
|
|
|
10
|
+
var de = {
|
|
11
|
+
empty: "LEER",
|
|
12
|
+
me: "ich",
|
|
13
|
+
favorite: "Favoriten"
|
|
14
|
+
};
|
|
10
15
|
var en = {
|
|
11
16
|
empty: "EMPTY",
|
|
12
17
|
me: "me",
|
|
13
18
|
favorite: "favorites"
|
|
14
19
|
};
|
|
20
|
+
var es = {
|
|
21
|
+
empty: "VAC\xCDO",
|
|
22
|
+
me: "yo",
|
|
23
|
+
favorite: "favoritos"
|
|
24
|
+
};
|
|
15
25
|
var fr = {
|
|
16
26
|
empty: "VIDE",
|
|
17
27
|
me: "moi",
|
|
18
28
|
favorite: "favoris"
|
|
19
29
|
};
|
|
30
|
+
var it = {
|
|
31
|
+
empty: "VUOTO",
|
|
32
|
+
me: "io",
|
|
33
|
+
favorite: "preferiti"
|
|
34
|
+
};
|
|
20
35
|
var ru = {
|
|
21
36
|
empty: "\u041F\u0423\u0421\u0422\u041E",
|
|
22
37
|
me: "\u044F",
|
|
@@ -28,8 +43,11 @@ var vi = {
|
|
|
28
43
|
favorite: "y\xEAu th\xEDch"
|
|
29
44
|
};
|
|
30
45
|
var locales = {
|
|
46
|
+
de: de,
|
|
31
47
|
en: en,
|
|
48
|
+
es: es,
|
|
32
49
|
fr: fr,
|
|
50
|
+
it: it,
|
|
33
51
|
ru: ru,
|
|
34
52
|
vi: vi
|
|
35
53
|
};
|
|
@@ -7,6 +7,17 @@ exports.withContactsListLocales = exports.locales = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _twakeI18n = require("twake-i18n");
|
|
9
9
|
|
|
10
|
+
var de = {
|
|
11
|
+
cancel: "Abbrechen",
|
|
12
|
+
save: "Speichern",
|
|
13
|
+
newContact: "Neuer Kontakt",
|
|
14
|
+
coordinates: "Kontaktdaten",
|
|
15
|
+
givenName: "Vorname",
|
|
16
|
+
familyName: "Nachname",
|
|
17
|
+
addContact: "Kontakt hinzuf\xFCgen",
|
|
18
|
+
searchContact: "Kontakt suchen",
|
|
19
|
+
emptyContact: "Kein Kontakt"
|
|
20
|
+
};
|
|
10
21
|
var en = {
|
|
11
22
|
cancel: "Cancel",
|
|
12
23
|
save: "Save",
|
|
@@ -18,6 +29,17 @@ var en = {
|
|
|
18
29
|
searchContact: "Search a contact",
|
|
19
30
|
emptyContact: "No contact"
|
|
20
31
|
};
|
|
32
|
+
var es = {
|
|
33
|
+
cancel: "Cancelar",
|
|
34
|
+
save: "Guardar",
|
|
35
|
+
newContact: "Nuevo contacto",
|
|
36
|
+
coordinates: "Datos de contacto",
|
|
37
|
+
givenName: "Nombre",
|
|
38
|
+
familyName: "Apellidos",
|
|
39
|
+
addContact: "A\xF1adir un contacto",
|
|
40
|
+
searchContact: "Buscar un contacto",
|
|
41
|
+
emptyContact: "Ning\xFAn contacto"
|
|
42
|
+
};
|
|
21
43
|
var fr = {
|
|
22
44
|
cancel: "Annuler",
|
|
23
45
|
save: "Enregistrer",
|
|
@@ -29,9 +51,23 @@ var fr = {
|
|
|
29
51
|
searchContact: "Rechercher un contact",
|
|
30
52
|
emptyContact: "Aucun contact"
|
|
31
53
|
};
|
|
54
|
+
var it = {
|
|
55
|
+
cancel: "Annulla",
|
|
56
|
+
save: "Salva",
|
|
57
|
+
newContact: "Nuovo contatto",
|
|
58
|
+
coordinates: "Recapiti",
|
|
59
|
+
givenName: "Nome",
|
|
60
|
+
familyName: "Cognome",
|
|
61
|
+
addContact: "Aggiungi un contatto",
|
|
62
|
+
searchContact: "Cerca un contatto",
|
|
63
|
+
emptyContact: "Nessun contatto"
|
|
64
|
+
};
|
|
32
65
|
var locales = {
|
|
66
|
+
de: de,
|
|
33
67
|
en: en,
|
|
34
|
-
|
|
68
|
+
es: es,
|
|
69
|
+
fr: fr,
|
|
70
|
+
it: it
|
|
35
71
|
};
|
|
36
72
|
exports.locales = locales;
|
|
37
73
|
var withContactsListLocales = (0, _twakeI18n.withLocales)(locales);
|
|
@@ -7,6 +7,24 @@ exports.locales = exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _twakeI18n = require("twake-i18n");
|
|
9
9
|
|
|
10
|
+
var de = {
|
|
11
|
+
cancel: "Abbrechen",
|
|
12
|
+
allow: "Erlauben",
|
|
13
|
+
"authentification-dialog": {
|
|
14
|
+
title: "Anmeldung",
|
|
15
|
+
"title-oidc": "Twake Pass",
|
|
16
|
+
subtitle: "Bitte best\xE4tigen Sie aus Sicherheitsgr\xFCnden Ihre Identit\xE4t",
|
|
17
|
+
label: "Twake-Passwort",
|
|
18
|
+
"label-oidc": "Twake Pass-Passwort",
|
|
19
|
+
abort: "Verlassen",
|
|
20
|
+
unlock: "Entsperren",
|
|
21
|
+
"forgotten-password": "Ich habe mein Passwort vergessen",
|
|
22
|
+
errors: {
|
|
23
|
+
invalid_password: "Falsches Passwort, bitte versuchen Sie es erneut.",
|
|
24
|
+
server_error: "Auf dem Server ist ein Fehler aufgetreten. Bitte laden Sie die Seite neu."
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
10
28
|
var en = {
|
|
11
29
|
cancel: "Cancel",
|
|
12
30
|
allow: "Allow",
|
|
@@ -25,6 +43,24 @@ var en = {
|
|
|
25
43
|
}
|
|
26
44
|
}
|
|
27
45
|
};
|
|
46
|
+
var es = {
|
|
47
|
+
cancel: "Cancelar",
|
|
48
|
+
allow: "Permitir",
|
|
49
|
+
"authentification-dialog": {
|
|
50
|
+
title: "Inicio de sesi\xF3n",
|
|
51
|
+
"title-oidc": "Twake Pass",
|
|
52
|
+
subtitle: "Por seguridad, confirme su identidad",
|
|
53
|
+
label: "Contrase\xF1a de Twake",
|
|
54
|
+
"label-oidc": "Contrase\xF1a de Twake Pass",
|
|
55
|
+
abort: "Salir",
|
|
56
|
+
unlock: "Desbloquear",
|
|
57
|
+
"forgotten-password": "He olvidado mi contrase\xF1a",
|
|
58
|
+
errors: {
|
|
59
|
+
invalid_password: "Contrase\xF1a incorrecta. Int\xE9ntelo de nuevo.",
|
|
60
|
+
server_error: "Se ha producido un error en el servidor. Vuelva a cargar la p\xE1gina."
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
28
64
|
var fr = {
|
|
29
65
|
cancel: "Annuler",
|
|
30
66
|
allow: "Autoriser",
|
|
@@ -43,6 +79,24 @@ var fr = {
|
|
|
43
79
|
}
|
|
44
80
|
}
|
|
45
81
|
};
|
|
82
|
+
var it = {
|
|
83
|
+
cancel: "Annulla",
|
|
84
|
+
allow: "Consenti",
|
|
85
|
+
"authentification-dialog": {
|
|
86
|
+
title: "Accesso",
|
|
87
|
+
"title-oidc": "Twake Pass",
|
|
88
|
+
subtitle: "Per sicurezza, conferma la tua identit\xE0",
|
|
89
|
+
label: "Password di Twake",
|
|
90
|
+
"label-oidc": "Password di Twake Pass",
|
|
91
|
+
abort: "Esci",
|
|
92
|
+
unlock: "Sblocca",
|
|
93
|
+
"forgotten-password": "Ho dimenticato la password",
|
|
94
|
+
errors: {
|
|
95
|
+
invalid_password: "Password errata, riprova.",
|
|
96
|
+
server_error: "Si \xE8 verificato un errore del server. Ricarica la pagina."
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
46
100
|
var ru = {
|
|
47
101
|
cancel: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",
|
|
48
102
|
allow: "\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C",
|
|
@@ -80,8 +134,11 @@ var vi = {
|
|
|
80
134
|
}
|
|
81
135
|
};
|
|
82
136
|
var locales = {
|
|
137
|
+
de: de,
|
|
83
138
|
en: en,
|
|
139
|
+
es: es,
|
|
84
140
|
fr: fr,
|
|
141
|
+
it: it,
|
|
85
142
|
ru: ru,
|
|
86
143
|
vi: vi
|
|
87
144
|
};
|
|
@@ -25,7 +25,7 @@ var _CozyTheme = _interopRequireDefault(require("../../providers/CozyTheme"));
|
|
|
25
25
|
|
|
26
26
|
var _IntentIframe = _interopRequireWildcard(require("../IntentIframe"));
|
|
27
27
|
|
|
28
|
-
var _excluded = ["options", "action", "doctype", "children", "closable", "showCloseButton", "create", "tag", "onComplete", "onDismiss", "onReadyToUse", "waitForReadyToUse", "iframeProps", "Component"];
|
|
28
|
+
var _excluded = ["options", "action", "doctype", "children", "closable", "showCloseButton", "create", "tag", "onComplete", "onDismiss", "onReadyToUse", "onResult", "waitForReadyToUse", "iframeProps", "Component"];
|
|
29
29
|
|
|
30
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
31
|
|
|
@@ -49,6 +49,7 @@ var IntentDialogOpener = function IntentDialogOpener(props) {
|
|
|
49
49
|
onComplete = props.onComplete,
|
|
50
50
|
onDismiss = props.onDismiss,
|
|
51
51
|
onReadyToUse = props.onReadyToUse,
|
|
52
|
+
onResult = props.onResult,
|
|
52
53
|
waitForReadyToUse = props.waitForReadyToUse,
|
|
53
54
|
iframeProps = props.iframeProps,
|
|
54
55
|
Component = props.Component,
|
|
@@ -105,6 +106,7 @@ var IntentDialogOpener = function IntentDialogOpener(props) {
|
|
|
105
106
|
onCancel: handleDismiss,
|
|
106
107
|
onTerminate: handleComplete,
|
|
107
108
|
onReadyToUse: onReadyToUse,
|
|
109
|
+
onResult: onResult,
|
|
108
110
|
waitForReadyToUse: waitForReadyToUse,
|
|
109
111
|
iframeProps: iframeProps
|
|
110
112
|
}))));
|
|
@@ -126,6 +128,9 @@ IntentDialogOpener.propTypes = {
|
|
|
126
128
|
/** Called when the intent service signals it is ready to use */
|
|
127
129
|
onReadyToUse: _propTypes.default.func,
|
|
128
130
|
|
|
131
|
+
/** Called with each result the intent service sends while it stays open */
|
|
132
|
+
onResult: _propTypes.default.func,
|
|
133
|
+
|
|
129
134
|
/** Keep the loading state until the intent service signals it is ready to use */
|
|
130
135
|
waitForReadyToUse: _propTypes.default.bool,
|
|
131
136
|
|
|
@@ -25,6 +25,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
25
25
|
|
|
26
26
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
27
27
|
|
|
28
|
+
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
29
|
+
|
|
28
30
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
31
|
|
|
30
32
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -133,12 +135,14 @@ var IntentIframe = /*#__PURE__*/function (_React$Component) {
|
|
|
133
135
|
create = intents.create;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
|
-
create(action, type, _objectSpread(_objectSpread({}, DEFAULT_DATA), data)).start(this.intentViewer, {
|
|
138
|
+
this.intent = create(action, type, _objectSpread(_objectSpread({}, DEFAULT_DATA), data)).start(this.intentViewer, {
|
|
137
139
|
onReady: this.onFrameLoaded,
|
|
138
140
|
onHideCross: this.props.onHideCross,
|
|
139
141
|
onShowCross: this.props.onShowCross,
|
|
140
|
-
onReadyToUse: this.onReadyToUse
|
|
141
|
-
|
|
142
|
+
onReadyToUse: this.onReadyToUse,
|
|
143
|
+
onResult: this.props.onResult
|
|
144
|
+
});
|
|
145
|
+
this.intent.then(function (result) {
|
|
142
146
|
// eslint-disable-next-line promise/always-return
|
|
143
147
|
result ? onTerminate && onTerminate(result) : onCancel();
|
|
144
148
|
}).catch(function (error) {
|
|
@@ -151,6 +155,17 @@ var IntentIframe = /*#__PURE__*/function (_React$Component) {
|
|
|
151
155
|
_this2.setIsLoading(false);
|
|
152
156
|
});
|
|
153
157
|
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "componentDidUpdate",
|
|
160
|
+
value: function componentDidUpdate(prevProps) {
|
|
161
|
+
// A service that stays open gets the new data, an older cozy-interapp
|
|
162
|
+
// cannot send them
|
|
163
|
+
if (!(0, _isEqual.default)(prevProps.data, this.props.data)) {
|
|
164
|
+
var _this$intent, _this$intent$sendData;
|
|
165
|
+
|
|
166
|
+
(_this$intent = this.intent) === null || _this$intent === void 0 ? void 0 : (_this$intent$sendData = _this$intent.sendData) === null || _this$intent$sendData === void 0 ? void 0 : _this$intent$sendData.call(_this$intent, _objectSpread(_objectSpread({}, DEFAULT_DATA), this.props.data));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
154
169
|
}, {
|
|
155
170
|
key: "render",
|
|
156
171
|
value: function render() {
|
|
@@ -211,6 +226,7 @@ IntentIframe.propTypes = {
|
|
|
211
226
|
onHideCross: _propTypes.default.func,
|
|
212
227
|
onShowCross: _propTypes.default.func,
|
|
213
228
|
onReadyToUse: _propTypes.default.func,
|
|
229
|
+
onResult: _propTypes.default.func,
|
|
214
230
|
waitForReadyToUse: _propTypes.default.bool
|
|
215
231
|
};
|
|
216
232
|
IntentIframe.defaultProps = {
|