@dataclouder/ngx-core 0.1.50 → 0.1.52

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-core",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "Angular core components library for DataClouder applications, only for internal use",
5
5
  "author": {
6
6
  "name": "dataclouder",
@@ -37,13 +37,13 @@
37
37
  },
38
38
  "sideEffects": false,
39
39
  "module": "fesm2022/dataclouder-ngx-core.mjs",
40
- "typings": "index.d.ts",
40
+ "typings": "types/dataclouder-ngx-core.d.ts",
41
41
  "exports": {
42
42
  "./package.json": {
43
43
  "default": "./package.json"
44
44
  },
45
45
  ".": {
46
- "types": "./index.d.ts",
46
+ "types": "./types/dataclouder-ngx-core.d.ts",
47
47
  "default": "./fesm2022/dataclouder-ngx-core.mjs"
48
48
  }
49
49
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnChanges, OnDestroy, SimpleChanges, InjectionToken, WritableSignal, Type, Provider, PipeTransform } from '@angular/core';
2
+ import { WritableSignal, OnInit, OnChanges, OnDestroy, SimpleChanges, InjectionToken, Type, Provider, PipeTransform } from '@angular/core';
3
3
  import { MenuItem, FilterMetadata } from 'primeng/api';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
5
  import { Table } from 'primeng/table';
@@ -142,15 +142,15 @@ declare abstract class PaginationBase {
142
142
  */
143
143
  readonly onAction: i0.OutputEmitterRef<OnActionEvent>;
144
144
  /** Current first record index for the paginator */
145
- first: number;
145
+ first: WritableSignal<number>;
146
146
  /** Number of rows to display per page */
147
- rows: number;
147
+ rows: WritableSignal<number>;
148
148
  /** Total number of records available */
149
- totalRecords: number;
149
+ totalRecords: WritableSignal<number>;
150
150
  /** Current view mode, either cards or table */
151
- viewMode: 'cards' | 'table';
151
+ viewMode: WritableSignal<'cards' | 'table'>;
152
152
  /** Loading state indicator */
153
- isLoading: boolean;
153
+ isLoading: WritableSignal<boolean>;
154
154
  /** Available button actions for items */
155
155
  buttonActions: MenuItem[];
156
156
  /**
@@ -162,7 +162,7 @@ declare abstract class PaginationBase {
162
162
  * Configuration for filtering, sorting, and pagination.
163
163
  * Includes current page, rows per page, sorting criteria, and applied filters.
164
164
  */
165
- filterConfig: FiltersConfig;
165
+ filterConfig: WritableSignal<FiltersConfig>;
166
166
  protected route: ActivatedRoute;
167
167
  protected router: Router;
168
168
  /**
@@ -279,13 +279,13 @@ declare class DCProgressToastComponent implements OnChanges, OnDestroy {
279
279
  */
280
280
  declare class LoadingBarService {
281
281
  /** Flag indicating whether the loading bar is currently visible */
282
- isShowing: boolean;
282
+ isShowing: i0.WritableSignal<boolean>;
283
283
  /** Current progress value (0-100) for determinate mode */
284
- progress: number;
284
+ progress: i0.WritableSignal<number>;
285
285
  /** The current display mode of the loading bar */
286
- mode: 'indeterminate' | 'determinate';
286
+ mode: i0.WritableSignal<"indeterminate" | "determinate">;
287
287
  /** The color of the loading bar (can be a theme color name or hex value) */
288
- color: string;
288
+ color: i0.WritableSignal<string>;
289
289
  /** Interval reference for the fake progress animation */
290
290
  private progressInterval;
291
291
  constructor();
@@ -692,14 +692,28 @@ declare abstract class EntityCommunicationService<T> {
692
692
  protected httpService: HttpCoreService;
693
693
  protected customHost?: string;
694
694
  constructor(serviceName: string);
695
+ /**
696
+ * @deprecated Use operation({ action: 'find', query: {} }) instead.
697
+ */
695
698
  findAll(): Promise<T[]>;
699
+ findAllOperation(query?: any): Promise<T[]>;
696
700
  findOne(id: string): Promise<T>;
701
+ findOneOperation(id: string, projection?: any): Promise<T>;
702
+ /**
703
+ * @deprecated Use operation({ action: 'findOne', query, projection }) instead.
704
+ */
697
705
  findOneByQuery(query: any, projection?: any): Promise<T>;
698
706
  createOrUpdate(entity: Partial<T>): Promise<T>;
707
+ createOperation(payload: Partial<T>): Promise<T>;
699
708
  query(filterConfig: FiltersConfig): Promise<IFilterQueryResponse<T>>;
709
+ /**
710
+ * @deprecated Use operation({ action: 'updateOne', query: { _id: id }, payload: update }) instead.
711
+ */
700
712
  update(id: string, update: any): Promise<T>;
713
+ updateOneOperation(id: string, payload: any): Promise<T>;
701
714
  partialUpdate(id: string, partialUpdates: Partial<T>): Promise<T>;
702
715
  remove(id: string): Promise<void>;
716
+ removeOperation(id: string): Promise<any>;
703
717
  clone(id: string, overrides?: Partial<T>): Promise<T>;
704
718
  getFixedQuery(): Record<string, any>;
705
719
  operation(params: {
@@ -859,6 +873,8 @@ declare class ChatUserSettings {
859
873
  speedRate?: number;
860
874
  userMessageTask: boolean;
861
875
  assistantMessageTask: boolean;
876
+ saveConversations: boolean;
877
+ multilingualHearing: boolean;
862
878
  }
863
879
  interface AppException {
864
880
  error_message?: string;