@data-fair/lib-common-types 1.17.0 → 1.18.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/package.json +1 -1
- package/theme/.type/index.d.ts +8 -1
- package/theme/index.d.ts +2 -0
- package/theme/index.js +3 -1
- package/theme/schema.d.ts +38 -5
- package/theme/schema.js +49 -16
package/package.json
CHANGED
package/theme/.type/index.d.ts
CHANGED
|
@@ -4,12 +4,17 @@ export const schemaExports: string[]
|
|
|
4
4
|
// see https://github.com/bcherny/json-schema-to-typescript/issues/439 if some types are not exported
|
|
5
5
|
export type URLDUnLogo = string;
|
|
6
6
|
/**
|
|
7
|
-
* Par défaut une police Nunito auto-hébergée est utilisée
|
|
7
|
+
* Par défaut une police Nunito auto-hébergée est utilisée
|
|
8
|
+
*/
|
|
9
|
+
export type NomDePoliceDeCaracteresPourLeCorpsDuTexte = string;
|
|
10
|
+
/**
|
|
11
|
+
* Vous pouvez copier le CSS proposé par une plateforme comme Google Fonts.
|
|
8
12
|
*/
|
|
9
13
|
export type CSSPoliceDeCaracteresPourLeCorpsDuTexte = string;
|
|
10
14
|
/**
|
|
11
15
|
* Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte
|
|
12
16
|
*/
|
|
17
|
+
export type NomDePoliceDeCaracteresPourLesTitres = string;
|
|
13
18
|
export type CSSPoliceDeCaracteresPourLesTitres = string;
|
|
14
19
|
/**
|
|
15
20
|
* Si activé vous ne devrez saisir que les couleurs principales du thème, d'autres couleurs seront affectées par défaut et les couleurs de texte seront automatiquement ajustées pour être lisibles sur les couleurs de fond.
|
|
@@ -49,7 +54,9 @@ export type ProposerCeThemeAuxUtilisateurs2 = boolean;
|
|
|
49
54
|
|
|
50
55
|
export type Theme = {
|
|
51
56
|
logo?: URLDUnLogo;
|
|
57
|
+
bodyFontFamily?: NomDePoliceDeCaracteresPourLeCorpsDuTexte;
|
|
52
58
|
bodyFontFamilyCss?: CSSPoliceDeCaracteresPourLeCorpsDuTexte;
|
|
59
|
+
headingFontFamily?: NomDePoliceDeCaracteresPourLesTitres;
|
|
53
60
|
headingFontFamilyCss?: CSSPoliceDeCaracteresPourLesTitres;
|
|
54
61
|
assistedMode?: ModeDeGestionDesCouleursSimplifie;
|
|
55
62
|
assistedModeColors?: {
|
package/theme/index.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ import tinycolor from 'tinycolor2';
|
|
|
3
3
|
export * from './.type/index.js';
|
|
4
4
|
export declare const defaultTheme: {
|
|
5
5
|
logo: undefined;
|
|
6
|
+
bodyFontFamily: string;
|
|
6
7
|
bodyFontFamilyCss: string;
|
|
8
|
+
headingFontFamily: undefined;
|
|
7
9
|
headingFontFamilyCss: undefined;
|
|
8
10
|
colors: {
|
|
9
11
|
background: string;
|
package/theme/index.js
CHANGED
|
@@ -4,7 +4,9 @@ import tinycolor from 'tinycolor2';
|
|
|
4
4
|
export * from './.type/index.js';
|
|
5
5
|
export const defaultTheme = {
|
|
6
6
|
logo: undefined,
|
|
7
|
-
|
|
7
|
+
bodyFontFamily: 'Nunito',
|
|
8
|
+
bodyFontFamilyCss: "@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaORs71cA-Bm_i0Dk1.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaHRs71cA-Cznx39fA.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaMRs71cA-CuWrHpFO.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaNRs71cA-D1eeM49Z.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaDRs4-BbMn9XSX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIOOaBXso-BWI5zH9R.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIMeaBXso-C3IBG1kp.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIOuaBXso-B55YuedR.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIO-aBXso-DcJfvmGA.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofINeaB-BaTF6Vo7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}",
|
|
9
|
+
headingFontFamily: undefined,
|
|
8
10
|
headingFontFamilyCss: undefined,
|
|
9
11
|
colors: {
|
|
10
12
|
// standard vuetify colors, see https://vuetifyjs.com/en/styles/colors/#material-colors
|
package/theme/schema.d.ts
CHANGED
|
@@ -107,6 +107,27 @@ declare const _default: {
|
|
|
107
107
|
};
|
|
108
108
|
type: string;
|
|
109
109
|
};
|
|
110
|
+
bodyFontFamily: {
|
|
111
|
+
title: string;
|
|
112
|
+
'x-i18n-title': {
|
|
113
|
+
fr: string;
|
|
114
|
+
en: string;
|
|
115
|
+
es: string;
|
|
116
|
+
it: string;
|
|
117
|
+
pt: string;
|
|
118
|
+
de: string;
|
|
119
|
+
};
|
|
120
|
+
description: string;
|
|
121
|
+
'x-i18n-description': {
|
|
122
|
+
fr: string;
|
|
123
|
+
en: string;
|
|
124
|
+
es: string;
|
|
125
|
+
it: string;
|
|
126
|
+
pt: string;
|
|
127
|
+
de: string;
|
|
128
|
+
};
|
|
129
|
+
type: string;
|
|
130
|
+
};
|
|
110
131
|
bodyFontFamilyCss: {
|
|
111
132
|
title: string;
|
|
112
133
|
'x-i18n-title': {
|
|
@@ -132,7 +153,7 @@ declare const _default: {
|
|
|
132
153
|
};
|
|
133
154
|
type: string;
|
|
134
155
|
};
|
|
135
|
-
|
|
156
|
+
headingFontFamily: {
|
|
136
157
|
title: string;
|
|
137
158
|
'x-i18n-title': {
|
|
138
159
|
fr: string;
|
|
@@ -142,10 +163,6 @@ declare const _default: {
|
|
|
142
163
|
pt: string;
|
|
143
164
|
de: string;
|
|
144
165
|
};
|
|
145
|
-
layout: {
|
|
146
|
-
comp: string;
|
|
147
|
-
rows: number;
|
|
148
|
-
};
|
|
149
166
|
description: string;
|
|
150
167
|
'x-i18n-description': {
|
|
151
168
|
fr: string;
|
|
@@ -157,6 +174,22 @@ declare const _default: {
|
|
|
157
174
|
};
|
|
158
175
|
type: string;
|
|
159
176
|
};
|
|
177
|
+
headingFontFamilyCss: {
|
|
178
|
+
title: string;
|
|
179
|
+
'x-i18n-title': {
|
|
180
|
+
fr: string;
|
|
181
|
+
en: string;
|
|
182
|
+
es: string;
|
|
183
|
+
it: string;
|
|
184
|
+
pt: string;
|
|
185
|
+
de: string;
|
|
186
|
+
};
|
|
187
|
+
layout: {
|
|
188
|
+
comp: string;
|
|
189
|
+
rows: number;
|
|
190
|
+
};
|
|
191
|
+
type: string;
|
|
192
|
+
};
|
|
160
193
|
assistedMode: {
|
|
161
194
|
type: string;
|
|
162
195
|
title: string;
|
package/theme/schema.js
CHANGED
|
@@ -156,6 +156,27 @@ export default {
|
|
|
156
156
|
},
|
|
157
157
|
type: 'string'
|
|
158
158
|
},
|
|
159
|
+
bodyFontFamily: {
|
|
160
|
+
title: 'Nom de police de caractères pour le corps du texte',
|
|
161
|
+
'x-i18n-title': {
|
|
162
|
+
fr: 'Nom de police de caractères pour le corps du texte',
|
|
163
|
+
en: 'Font name for body text',
|
|
164
|
+
es: 'Nombre de fuente para el texto del cuerpo',
|
|
165
|
+
it: 'Nome del carattere per il testo del corpo',
|
|
166
|
+
pt: 'Nome da fonte para o texto do corpo',
|
|
167
|
+
de: 'Schriftartname für den Fließtext'
|
|
168
|
+
},
|
|
169
|
+
description: 'Par défaut une police Nunito auto-hébergée est utilisée',
|
|
170
|
+
'x-i18n-description': {
|
|
171
|
+
fr: 'Par défaut une police Nunito auto-hébergée est utilisée',
|
|
172
|
+
en: 'By default, a self-hosted Nunito font is used',
|
|
173
|
+
es: 'Por defecto se utiliza una fuente Nunito autoalojada',
|
|
174
|
+
it: 'Per impostazione predefinita viene utilizzata una fonte Nunito auto-ospitata',
|
|
175
|
+
pt: 'Por padrão, é usada uma fonte Nunito auto-hospedada',
|
|
176
|
+
de: 'Standardmäßig wird eine selbst gehostete Nunito-Schriftart verwendet'
|
|
177
|
+
},
|
|
178
|
+
type: 'string'
|
|
179
|
+
},
|
|
159
180
|
bodyFontFamilyCss: {
|
|
160
181
|
title: 'CSS police de caractères pour le corps du texte',
|
|
161
182
|
'x-i18n-title': {
|
|
@@ -170,14 +191,35 @@ export default {
|
|
|
170
191
|
comp: 'textarea',
|
|
171
192
|
rows: 3
|
|
172
193
|
},
|
|
173
|
-
description:
|
|
194
|
+
description: 'Vous pouvez copier le CSS proposé par une plateforme comme Google Fonts.',
|
|
195
|
+
'x-i18n-description': {
|
|
196
|
+
fr: 'Vous pouvez copier le CSS proposé par une plateforme comme Google Fonts.',
|
|
197
|
+
en: 'You can copy the CSS proposed by a platform like Google Fonts.',
|
|
198
|
+
es: 'Puede copiar el CSS propuesto por una plataforma como Google Fonts.',
|
|
199
|
+
it: 'Puoi copiare il CSS proposto da una piattaforma come Google Fonts.',
|
|
200
|
+
pt: 'Você pode copiar o CSS proposto por uma plataforma como Google Fonts.',
|
|
201
|
+
de: 'Sie können das von einer Plattform wie Google Fonts vorgeschlagene CSS kopieren.'
|
|
202
|
+
},
|
|
203
|
+
type: 'string'
|
|
204
|
+
},
|
|
205
|
+
headingFontFamily: {
|
|
206
|
+
title: 'Nom de police de caractères pour les titres',
|
|
207
|
+
'x-i18n-title': {
|
|
208
|
+
fr: 'Nom de police de caractères pour les titres',
|
|
209
|
+
en: 'Font name for headings',
|
|
210
|
+
es: 'Nombre de fuente para los títulos',
|
|
211
|
+
it: 'Nome del carattere per le intestazioni',
|
|
212
|
+
pt: 'Nome da fonte para títulos',
|
|
213
|
+
de: 'Schriftartname für Überschriften'
|
|
214
|
+
},
|
|
215
|
+
description: 'Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte',
|
|
174
216
|
'x-i18n-description': {
|
|
175
|
-
fr:
|
|
176
|
-
en:
|
|
177
|
-
es:
|
|
178
|
-
it:
|
|
179
|
-
pt:
|
|
180
|
-
de:
|
|
217
|
+
fr: 'Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte',
|
|
218
|
+
en: 'Fill in the same way as for the body text, or leave blank to use the body text font',
|
|
219
|
+
es: 'Complete de la misma manera que para el texto del cuerpo, o deje en blanco para usar la fuente del texto del cuerpo',
|
|
220
|
+
it: 'Compilare nello stesso modo del testo del corpo, o lasciare vuoto per utilizzare il carattere del testo del corpo',
|
|
221
|
+
pt: 'Preencha da mesma forma que para o texto do corpo, ou deixe em branco para usar a fonte do texto do corpo',
|
|
222
|
+
de: 'Füllen Sie wie beim Fließtext aus, oder lassen Sie das Feld leer, um die Schriftart des Fließtexts zu verwenden'
|
|
181
223
|
},
|
|
182
224
|
type: 'string'
|
|
183
225
|
},
|
|
@@ -195,15 +237,6 @@ export default {
|
|
|
195
237
|
comp: 'textarea',
|
|
196
238
|
rows: 3
|
|
197
239
|
},
|
|
198
|
-
description: 'Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte',
|
|
199
|
-
'x-i18n-description': {
|
|
200
|
-
fr: 'Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte',
|
|
201
|
-
en: 'Fill in the same way as for the body text, or leave blank to use the body text font',
|
|
202
|
-
es: 'Complete de la misma manera que para el texto del cuerpo, o deje en blanco para usar la fuente del texto del cuerpo',
|
|
203
|
-
it: 'Compilare nello stesso modo del testo del corpo, o lasciare vuoto per utilizzare il carattere del testo del corpo',
|
|
204
|
-
pt: 'Preencha da mesma forma que para o texto do corpo, ou deixe em branco para usar a fonte do texto do corpo',
|
|
205
|
-
de: 'Füllen Sie wie beim Fließtext aus, oder lassen Sie das Feld leer, um die Schriftart des Fließtexts zu verwenden'
|
|
206
|
-
},
|
|
207
240
|
type: 'string'
|
|
208
241
|
},
|
|
209
242
|
assistedMode: {
|