@dataclouder/ngx-core 0.1.49 → 0.1.51

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.49",
3
+ "version": "0.1.51",
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
  }
@@ -53,7 +53,7 @@ interface ICustomFilter {
53
53
  name: string;
54
54
  field: string;
55
55
  type: 'string' | 'number' | 'boolean' | 'date' | 'select' | 'multi-select';
56
- operator?: '$eq' | '$ne' | '$in' | '$nin' | '$regex' | '$gt' | '$lt' | '$gte' | '$lte' | 'range';
56
+ operator?: '$eq' | '$ne' | '$in' | '$nin' | '$regex' | '$gt' | '$lt' | '$gte' | '$lte' | '$exists' | '$not_null' | 'range';
57
57
  options?: {
58
58
  label: string;
59
59
  value: any;
@@ -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: {