@zambon-dev/framework 1.0.0 → 1.0.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/fesm2022/zambon-dev-framework.mjs +33 -3
- package/fesm2022/zambon-dev-framework.mjs.map +1 -1
- package/i18n/en.json +72 -0
- package/i18n/pt.json +72 -0
- package/index.d.ts +1 -0
- package/lib/i18n/framework-i18n.d.ts +18 -0
- package/lib/i18n/index.d.ts +1 -0
- package/package.json +10 -6
package/i18n/en.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Loading": "Loading",
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
"//": "Buttons",
|
|
6
|
+
"Button-Cancel-Edit": "Cancel",
|
|
7
|
+
"Button-Delete": "Delete",
|
|
8
|
+
"Button-Edit": "Edit",
|
|
9
|
+
"Button-Export": "Export",
|
|
10
|
+
"Button-Filters": "Filter",
|
|
11
|
+
"Button-Filters-Clear": "Clear filters",
|
|
12
|
+
"Button-Filters-Modal-Confirm": "Confirm filter",
|
|
13
|
+
"Button-Modal-Cancel": "Cancel",
|
|
14
|
+
"Button-Modal-Close": "Close",
|
|
15
|
+
"Button-Modal-MultiEditor-Confirm": "Confirm changes",
|
|
16
|
+
"Button-Modal-MultiSelect-Confirm": "Confirm changes",
|
|
17
|
+
"Button-New": "New",
|
|
18
|
+
"Button-Open-Record": "Open",
|
|
19
|
+
"Button-Refresh": "Refresh",
|
|
20
|
+
"Button-Save": "Save",
|
|
21
|
+
"Button-Save-And-Close": "Save & Close",
|
|
22
|
+
"Button-Save-And-New": "Save & New",
|
|
23
|
+
"Button-Views": "Views",
|
|
24
|
+
"Button-Views-Details": "Details",
|
|
25
|
+
"Button-Views-History": "History",
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
"//": "Forms",
|
|
29
|
+
"CatalogSelect-Loading": "Loading...",
|
|
30
|
+
"CatalogSelect-FailureMessage": "An error occurred while fetching the results. Please click here to try again.",
|
|
31
|
+
"CatalogSelect-MinimumLengthSearch": "Type at least {{ minimumLengthSearch }} characters.",
|
|
32
|
+
"CatalogSelect-NoResultsFound": "No results found.",
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
"//": "Grids",
|
|
36
|
+
"Grid-Loading": "Loading...",
|
|
37
|
+
"Grid-Message-Empty": "No records found.",
|
|
38
|
+
"Grid-Message-Failed": "An error occurred while loading the records. Please try again later.",
|
|
39
|
+
"Grid-Message-LazyLoad": "Click the refresh button to load entries.",
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
"//": "i18n",
|
|
43
|
+
"Format-Currency": "1.2",
|
|
44
|
+
"Format-Date": "MM/dd/yyyy",
|
|
45
|
+
"Format-DateTime": "MM/dd/yyyy hh:mm a",
|
|
46
|
+
"Format-Number": "1.0",
|
|
47
|
+
"Language-en": "English",
|
|
48
|
+
"Language-pt": "Português",
|
|
49
|
+
"locale": "en-US",
|
|
50
|
+
"MonthYear-Format": "MM/yyyy",
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
"//": "Modals",
|
|
54
|
+
"Modal-Delete-Confirm": "Confirm delete",
|
|
55
|
+
"Modal-Delete-Message": "You are about to delete records, is not possible to reverse this action. Are you sure you want to continue?",
|
|
56
|
+
"Modal-Delete-Title": "Confirm the record deletion",
|
|
57
|
+
"Modal-Failed-Administrator": "If the problem persists, please contact your administrator.",
|
|
58
|
+
"Modal-Failed-DefaultMessage": "An error occurred in the server. Please try again later.",
|
|
59
|
+
"Modal-Failed-Title": "An error occurred",
|
|
60
|
+
"Modal-NotFound-Message": "The requested record was not found.\nIt may have been deleted or the URL may be incorrect.",
|
|
61
|
+
"Modal-NotFound-Title": "Record not found",
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
"//": "Ribbon And Details",
|
|
65
|
+
"EditSection-Details": "Details",
|
|
66
|
+
"RibbonGroup-Actions": "Actions",
|
|
67
|
+
"RibbonGroup-Entity": "Entity",
|
|
68
|
+
"RibbonGroup-General": "General",
|
|
69
|
+
"RibbonGroup-Page": "Page",
|
|
70
|
+
|
|
71
|
+
"": ""
|
|
72
|
+
}
|
package/i18n/pt.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Loading": "Carregando",
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
"//": "Buttons",
|
|
6
|
+
"Button-Cancel-Edit": "Cancelar",
|
|
7
|
+
"Button-Delete": "Excluir",
|
|
8
|
+
"Button-Edit": "Editar",
|
|
9
|
+
"Button-Export": "Exportar",
|
|
10
|
+
"Button-Filters": "Filtrar",
|
|
11
|
+
"Button-Filters-Clear": "Limpar filtros",
|
|
12
|
+
"Button-Filters-Modal-Confirm": "Confirmar filtros",
|
|
13
|
+
"Button-Modal-Cancel": "Cancelar",
|
|
14
|
+
"Button-Modal-Close": "Fechar",
|
|
15
|
+
"Button-Modal-MultiEditor-Confirm": "Confirmar alterações",
|
|
16
|
+
"Button-Modal-MultiSelect-Confirm": "Confirmar alterações",
|
|
17
|
+
"Button-New": "Novo",
|
|
18
|
+
"Button-Open-Record": "Abrir",
|
|
19
|
+
"Button-Refresh": "Atualizar",
|
|
20
|
+
"Button-Save": "Salvar",
|
|
21
|
+
"Button-Save-And-Close": "Salvar e Fechar",
|
|
22
|
+
"Button-Save-And-New": "Salvar e Novo",
|
|
23
|
+
"Button-Views": "Visões",
|
|
24
|
+
"Button-Views-Details": "Detalhes",
|
|
25
|
+
"Button-Views-History": "Histórico",
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
"//": "Forms",
|
|
29
|
+
"CatalogSelect-Loading": "Carregando...",
|
|
30
|
+
"CatalogSelect-FailureMessage": "Ocorreu um erro ao buscar os resultados. Por favor, clique aqui para tentar novamente.",
|
|
31
|
+
"CatalogSelect-MinimumLengthSearch": "Digite ao menos {{ minimumLengthSearch }} caracteres.",
|
|
32
|
+
"CatalogSelect-NoResultsFound": "Nenhum resultado encontrado.",
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
"//": "Grids",
|
|
36
|
+
"Grid-Loading": "Carregando...",
|
|
37
|
+
"Grid-Message-Empty": "Nenhum registro encontrado.",
|
|
38
|
+
"Grid-Message-Failed": "Ocorreu um erro ao carregar os registros. Por favor, tente novamente mais tarde.",
|
|
39
|
+
"Grid-Message-LazyLoad": "Clique no botão atualizar para carregar os registros.",
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
"//": "i18n",
|
|
43
|
+
"Format-Currency": "1.2",
|
|
44
|
+
"Format-Date": "dd/MM/yyyy",
|
|
45
|
+
"Format-DateTime": "dd/MM/yyyy HH:mm",
|
|
46
|
+
"Format-Number": "1.0",
|
|
47
|
+
"Language-en": "English",
|
|
48
|
+
"Language-pt": "Português",
|
|
49
|
+
"locale": "pt-BR",
|
|
50
|
+
"MonthYear-Format": "MM/yyyy",
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
"//": "Modals",
|
|
54
|
+
"Modal-Delete-Confirm": "Confirmar exclusão",
|
|
55
|
+
"Modal-Delete-Message": "Você está prestes a excluir registros do sistema, não é possível reverter esta ação. Tem certeza que deseja continuar?",
|
|
56
|
+
"Modal-Delete-Title": "Confirmação da exclusão do registro",
|
|
57
|
+
"Modal-Failed-Administrator": "Se o problema persistir, por favor, entre em contato com o administrador.",
|
|
58
|
+
"Modal-Failed-DefaultMessage": "Ocorreu um erro no servidor. Por favor, tente novamente mais tarde.",
|
|
59
|
+
"Modal-Failed-Title": "Ocorreu um erro",
|
|
60
|
+
"Modal-NotFound-Message": "O registro solicitado não foi encontrado.\nEle pode ter sido excluído ou a URL pode estar incorreta.",
|
|
61
|
+
"Modal-NotFound-Title": "Registro não encontrado",
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
"//": "Ribbon And Details",
|
|
65
|
+
"EditSection-Details": "Detalhes",
|
|
66
|
+
"RibbonGroup-Actions": "Ações",
|
|
67
|
+
"RibbonGroup-Entity": "Entidade",
|
|
68
|
+
"RibbonGroup-General": "Geral",
|
|
69
|
+
"RibbonGroup-Page": "Página",
|
|
70
|
+
|
|
71
|
+
"": ""
|
|
72
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './lib/configs';
|
|
|
3
3
|
export * from './lib/configs-providers';
|
|
4
4
|
export * from './lib/framework.module';
|
|
5
5
|
export * from './lib/helpers';
|
|
6
|
+
export * from './lib/i18n';
|
|
6
7
|
export * from './lib/models';
|
|
7
8
|
export * from './lib/services';
|
|
8
9
|
export * from './lib/validators';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpBackend } from '@angular/common/http';
|
|
2
|
+
import { EnvironmentProviders, Provider } from '@angular/core';
|
|
3
|
+
import { MultiTranslateHttpLoader, TranslationResource } from 'ngx-translate-multi-http-loader';
|
|
4
|
+
export interface AngularAssetPattern {
|
|
5
|
+
glob: string;
|
|
6
|
+
input: string;
|
|
7
|
+
output: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ZAMBON_FRAMEWORK_I18N_ASSET_PATH = "assets/i18n/zambon-dev/framework";
|
|
10
|
+
export declare const ZAMBON_FRAMEWORK_I18N_ASSET: AngularAssetPattern;
|
|
11
|
+
export declare const ZAMBON_FRAMEWORK_I18N_RESOURCES: TranslationResource[];
|
|
12
|
+
export interface ZambonFrameworkTranslateConfig {
|
|
13
|
+
defaultLanguage?: string;
|
|
14
|
+
appResources?: (string | TranslationResource)[];
|
|
15
|
+
}
|
|
16
|
+
export declare function createZambonFrameworkTranslateLoader(httpBackend: HttpBackend, appResources?: (string | TranslationResource)[]): MultiTranslateHttpLoader;
|
|
17
|
+
export declare function provideZambonFrameworkTranslateLoader(appResources?: (string | TranslationResource)[]): Provider;
|
|
18
|
+
export declare function provideZambonFrameworkTranslateService(config?: ZambonFrameworkTranslateConfig): EnvironmentProviders;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './framework-i18n';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zambon-dev/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Angular framework components and infrastructure for Zambon applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -25,16 +25,17 @@
|
|
|
25
25
|
"@angular/forms": "^19.1.0",
|
|
26
26
|
"@angular/router": "^19.1.0",
|
|
27
27
|
"@auth0/angular-jwt": "^5.2.0",
|
|
28
|
-
"@zambon-dev/library": "^0.0
|
|
29
|
-
"@ngx-translate/core": "^16.0.4"
|
|
28
|
+
"@zambon-dev/library": "^1.0.0",
|
|
29
|
+
"@ngx-translate/core": "^16.0.4",
|
|
30
|
+
"ngx-translate-multi-http-loader": "^19.0.2"
|
|
30
31
|
},
|
|
31
32
|
"publishConfig": {
|
|
32
33
|
"access": "public"
|
|
33
34
|
},
|
|
34
|
-
"sideEffects": false,
|
|
35
|
-
"module": "fesm2022/zambon-dev-framework.mjs",
|
|
36
|
-
"typings": "index.d.ts",
|
|
37
35
|
"exports": {
|
|
36
|
+
"./i18n/*": {
|
|
37
|
+
"default": "./i18n/*"
|
|
38
|
+
},
|
|
38
39
|
"./package.json": {
|
|
39
40
|
"default": "./package.json"
|
|
40
41
|
},
|
|
@@ -43,6 +44,9 @@
|
|
|
43
44
|
"default": "./fesm2022/zambon-dev-framework.mjs"
|
|
44
45
|
}
|
|
45
46
|
},
|
|
47
|
+
"sideEffects": false,
|
|
48
|
+
"module": "fesm2022/zambon-dev-framework.mjs",
|
|
49
|
+
"typings": "index.d.ts",
|
|
46
50
|
"dependencies": {
|
|
47
51
|
"tslib": "^2.3.0"
|
|
48
52
|
}
|