@dataclouder/ngx-core 0.1.23 → 0.1.25
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/dataclouder-ngx-core.mjs +217 -2
- package/fesm2022/dataclouder-ngx-core.mjs.map +1 -1
- package/lib/components/base-form/entity-base-form.d.ts +19 -0
- package/lib/components/loading-bar/loading-bar.service.d.ts +1 -0
- package/lib/models/languages.model.d.ts +7 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { EntityCommunicationService } from '../../services/entity-cominication.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class EntityBaseFormComponent<T extends {
|
|
6
|
+
_id?: string;
|
|
7
|
+
}> {
|
|
8
|
+
protected route: ActivatedRoute;
|
|
9
|
+
protected router: Router;
|
|
10
|
+
entity: import("@angular/core").WritableSignal<T>;
|
|
11
|
+
entityId: import("@angular/core").Signal<string>;
|
|
12
|
+
abstract form: FormGroup;
|
|
13
|
+
protected abstract entityCommunicationService: EntityCommunicationService<T>;
|
|
14
|
+
protected abstract patchForm(entity: T): void;
|
|
15
|
+
save(): Promise<T | undefined>;
|
|
16
|
+
private loadEntityEffect;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityBaseFormComponent<any>, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EntityBaseFormComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -44,6 +44,7 @@ export declare class LoadingBarService {
|
|
|
44
44
|
* Use this method to indicate successful completion of a process with visual feedback.
|
|
45
45
|
*/
|
|
46
46
|
successAndHide(): void;
|
|
47
|
+
errorAndHide(): void;
|
|
47
48
|
infoAndHide(): void;
|
|
48
49
|
/**
|
|
49
50
|
* Demonstrates the loading bar by simulating progress from 0% to 100% over 5 seconds.
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export interface ILangTranslation {
|
|
2
|
+
en: string;
|
|
3
|
+
es: string;
|
|
4
|
+
}
|
|
1
5
|
export interface ILanguageData {
|
|
2
6
|
nativeName: string;
|
|
3
7
|
flag: string;
|
|
@@ -5,6 +9,8 @@ export interface ILanguageData {
|
|
|
5
9
|
i: number;
|
|
6
10
|
llmKnowledge: number;
|
|
7
11
|
countries: string[];
|
|
8
|
-
translations:
|
|
12
|
+
translations: ILangTranslation;
|
|
13
|
+
flagImg?: string;
|
|
14
|
+
status: 'ready' | 'commingsoon' | 'almostready';
|
|
9
15
|
}
|
|
10
16
|
export declare const LANGUAGES: Record<string, ILanguageData>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './lib/components/forms/dc-learnable-viewer.component';
|
|
|
11
11
|
export * from './lib/components/forms/dc-manageable-viewer.component';
|
|
12
12
|
export * from './lib/components/forms/dc-reactions-viewer.component';
|
|
13
13
|
export * from './lib/components/base-list/entity-base-list.component';
|
|
14
|
+
export * from './lib/components/base-form/entity-base-form';
|
|
14
15
|
export * from './lib/models/classes';
|
|
15
16
|
export * from './lib/models/pagination.abstract';
|
|
16
17
|
export * from './lib/models/filter.models';
|