@dataclouder/ngx-core 0.2.2 → 0.2.3
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
CHANGED
|
@@ -687,10 +687,13 @@ declare class HttpCoreService {
|
|
|
687
687
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpCoreService>;
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
+
type EntityViewMode = 'list' | 'form' | 'detail';
|
|
690
691
|
declare abstract class EntityCommunicationService<T> {
|
|
691
692
|
protected serviceName: string;
|
|
692
693
|
protected httpService: HttpCoreService;
|
|
693
694
|
protected customHost?: string;
|
|
695
|
+
currentEntity: WritableSignal<T | undefined>;
|
|
696
|
+
currentMode: WritableSignal<EntityViewMode | undefined>;
|
|
694
697
|
constructor(serviceName: string);
|
|
695
698
|
findAll(query?: any): Promise<T[]>;
|
|
696
699
|
/**
|
|
@@ -848,6 +851,7 @@ declare abstract class EntityBaseFormComponent<T extends {
|
|
|
848
851
|
abstract form: FormGroup;
|
|
849
852
|
protected abstract entityCommunicationService: EntityCommunicationService<T>;
|
|
850
853
|
protected abstract patchForm(entity: T): void;
|
|
854
|
+
private _stateSyncEffect;
|
|
851
855
|
save(): Promise<T | undefined>;
|
|
852
856
|
reload(): void;
|
|
853
857
|
getDirtyValues(form: FormGroup | FormArray): {
|
|
@@ -862,6 +866,26 @@ declare abstract class EntityBaseFormComponent<T extends {
|
|
|
862
866
|
static ɵdir: i0.ɵɵDirectiveDeclaration<EntityBaseFormComponent<any>, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "entityInput": { "alias": "entity"; "required": false; "isSignal": true; }; "useFakeSave": { "alias": "useFakeSave"; "required": false; "isSignal": true; }; }, { "fakeSaved": "fakeSaved"; }, never, never, true, never>;
|
|
863
867
|
}
|
|
864
868
|
|
|
869
|
+
declare abstract class EntityBaseDetailComponent<T extends {
|
|
870
|
+
_id?: string;
|
|
871
|
+
}> {
|
|
872
|
+
protected route: ActivatedRoute;
|
|
873
|
+
toastService: _dataclouder_ngx_core.ToastAlertsAbstractService;
|
|
874
|
+
id: i0.InputSignal<string>;
|
|
875
|
+
entity: i0.WritableSignal<T>;
|
|
876
|
+
isLoading: i0.WritableSignal<boolean>;
|
|
877
|
+
private entityIdFromUrl;
|
|
878
|
+
entityId: i0.Signal<string>;
|
|
879
|
+
protected abstract entityCommunicationService: EntityCommunicationService<T>;
|
|
880
|
+
/** Called after the entity is successfully loaded. Override to react (e.g. load related data). */
|
|
881
|
+
protected onEntityLoaded(_entity: T): void;
|
|
882
|
+
private _loadEffect;
|
|
883
|
+
private loadEntity;
|
|
884
|
+
reload(): void;
|
|
885
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityBaseDetailComponent<any>, never>;
|
|
886
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EntityBaseDetailComponent<any>, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
887
|
+
}
|
|
888
|
+
|
|
865
889
|
declare enum EModelQuality {
|
|
866
890
|
FAST = "fast",// Prioritize speed over intelligence like flash lite
|
|
867
891
|
BALANCED = "balanced",// Equal balance like flash 2.5
|
|
@@ -1172,5 +1196,5 @@ declare const CharacterEventActions: {
|
|
|
1172
1196
|
label: string;
|
|
1173
1197
|
}[];
|
|
1174
1198
|
|
|
1175
|
-
export { APP_CONFIG, AppConfigService, AudioNotificationService, AudioSpeed, AudioSpeedReverse, CharacterEventActions, ChatUserSettings, ConfirmComponent, ConfirmService, DCFilterBarComponent, DCProgressToastComponent, DcAuditableViewerComponent, DcExtensionsViewerComponent, DcLearnableFormComponent, DcLearnableViewerComponent, DcManageableFormComponent, DcManageableViewerComponent, DcReactionsViewerComponent, DcTagsFormComponent, EModelQuality, EmptyStateComponent, EntityBaseFormComponent, EntityBaseListComponent, EntityBaseListV2Component, EntityCommunicationService, FlagPipe, FormUtilsService, GetPathPipe, HTTP_CORE_CONFIG, HttpCoreService, IAIModel, LANGUAGES, LangDescTranslation, LoadingBarComponent, LoadingBarService, MobileService, ModelQualityOptions, MoodState, MoodStateOptions, OptionValue, PaginationBase, PromptService, QuickTableComponent, SUPPORTED_LANGUAGES, TOAST_ALERTS_TOKEN, ToastAlertsAbstractService, UiStateService, availibleFilters, extractJsonFromString, formatCamelCaseString, getLangDesc, getSupportedLanguageOptions, provideToastAlert, sortOptions, sortTypes };
|
|
1176
|
-
export type { AppException, ConfirmOptions, DeleteHttpParams, DeletedData, FiltersConfig, GetHttpParams, HttpCoreConfig, HttpCoreError, IAppConfig, IAuditable, ICustomFilter, IExtensionable, IFilterQueryResponse, ILangTranslation, ILanguageData, ILearnable, IManageable, IReactable, LearnableForm, ListFilterBarOptions, MongoState, OnActionEvent, PColumn, PostHttpParams, PromptOptions, PutHttpParams, SortOption, ToastData };
|
|
1199
|
+
export { APP_CONFIG, AppConfigService, AudioNotificationService, AudioSpeed, AudioSpeedReverse, CharacterEventActions, ChatUserSettings, ConfirmComponent, ConfirmService, DCFilterBarComponent, DCProgressToastComponent, DcAuditableViewerComponent, DcExtensionsViewerComponent, DcLearnableFormComponent, DcLearnableViewerComponent, DcManageableFormComponent, DcManageableViewerComponent, DcReactionsViewerComponent, DcTagsFormComponent, EModelQuality, EmptyStateComponent, EntityBaseDetailComponent, EntityBaseFormComponent, EntityBaseListComponent, EntityBaseListV2Component, EntityCommunicationService, FlagPipe, FormUtilsService, GetPathPipe, HTTP_CORE_CONFIG, HttpCoreService, IAIModel, LANGUAGES, LangDescTranslation, LoadingBarComponent, LoadingBarService, MobileService, ModelQualityOptions, MoodState, MoodStateOptions, OptionValue, PaginationBase, PromptService, QuickTableComponent, SUPPORTED_LANGUAGES, TOAST_ALERTS_TOKEN, ToastAlertsAbstractService, UiStateService, availibleFilters, extractJsonFromString, formatCamelCaseString, getLangDesc, getSupportedLanguageOptions, provideToastAlert, sortOptions, sortTypes };
|
|
1200
|
+
export type { AppException, ConfirmOptions, DeleteHttpParams, DeletedData, EntityViewMode, FiltersConfig, GetHttpParams, HttpCoreConfig, HttpCoreError, IAppConfig, IAuditable, ICustomFilter, IExtensionable, IFilterQueryResponse, ILangTranslation, ILanguageData, ILearnable, IManageable, IReactable, LearnableForm, ListFilterBarOptions, MongoState, OnActionEvent, PColumn, PostHttpParams, PromptOptions, PutHttpParams, SortOption, ToastData };
|