valtech-components 2.0.280 → 2.0.282
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/esm2022/lib/components/_examples/custom-content-demo.component.mjs +229 -0
- package/esm2022/lib/services/lang-provider/content.mjs +75 -122
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/valtech-components.mjs +296 -121
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/_examples/custom-content-demo.component.d.ts +26 -0
- package/lib/services/lang-provider/content.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CustomContentDemoComponent implements OnInit {
|
|
4
|
+
private content;
|
|
5
|
+
currentLang: string;
|
|
6
|
+
saveText$: import("rxjs").Observable<string>;
|
|
7
|
+
cancelText$: import("rxjs").Observable<string>;
|
|
8
|
+
deleteText$: import("rxjs").Observable<string>;
|
|
9
|
+
loadingText$: import("rxjs").Observable<string>;
|
|
10
|
+
dashboardText$: import("rxjs").Observable<string>;
|
|
11
|
+
profileText$: import("rxjs").Observable<string>;
|
|
12
|
+
settingsText$: import("rxjs").Observable<string>;
|
|
13
|
+
welcomeText$: import("rxjs").Observable<string>;
|
|
14
|
+
spanishText$: import("rxjs").Observable<string>;
|
|
15
|
+
englishText$: import("rxjs").Observable<string>;
|
|
16
|
+
descriptionText$: import("rxjs").Observable<string>;
|
|
17
|
+
saveTextSync: string;
|
|
18
|
+
dashboardTextSync: string;
|
|
19
|
+
languageDescSync: string;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
switchLanguage(): void;
|
|
22
|
+
private updateSyncTexts;
|
|
23
|
+
private diagnoseConfiguration;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomContentDemoComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomContentDemoComponent, "app-custom-content-demo", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -5,6 +5,7 @@ export interface Provider {
|
|
|
5
5
|
/**
|
|
6
6
|
* Global content that can be used across all components.
|
|
7
7
|
* These are common texts like buttons, actions, states, etc.
|
|
8
|
+
* Structure: {es: {key1: 'value1', key2: 'value2'}, en: {key1: 'value1', key2: 'value2'}}
|
|
8
9
|
*/
|
|
9
10
|
declare const globalContentData: LanguagesContent;
|
|
10
11
|
declare const GlobalContent: TextContent;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export * from './lib/components/organisms/wizard/wizard.component';
|
|
|
79
79
|
export * from './lib/components/templates/layout/layout.component';
|
|
80
80
|
export * from './lib/components/templates/simple/simple.component';
|
|
81
81
|
export * from './lib/components/templates/simple/types';
|
|
82
|
+
export * from './lib/components/_examples/custom-content-demo.component';
|
|
82
83
|
export * from './lib/components/_examples/global-content-example.component';
|
|
83
84
|
export * from './lib/components/_examples/reactive-content-example.component';
|
|
84
85
|
export * from './lib/services/content.service';
|