@elite.framework/ng.core 2.0.18 → 2.0.19

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": "@elite.framework/ng.core",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"
@@ -37,6 +37,7 @@ declare class BaseService {
37
37
  get: (id: string | (string | number)[] | Record<string, any>) => rxjs.Observable<any>;
38
38
  create: (input: any) => rxjs.Observable<any>;
39
39
  update: (id: string | (string | number)[] | Record<string, any>, input: any) => rxjs.Observable<any>;
40
+ patch: (id: string | (string | number)[] | Record<string, any>, input: any) => rxjs.Observable<any>;
40
41
  delete: (id: string | (string | number)[] | Record<string, any>) => rxjs.Observable<void>;
41
42
  private buildUrl;
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseService, never>;
@@ -340,25 +341,56 @@ interface FilterGroup {
340
341
  groupLogicalOperator?: 'and' | 'or';
341
342
  conditions: FilterCondition[];
342
343
  }
344
+ interface GroupingConfig {
345
+ propertyName: string;
346
+ displayName?: string;
347
+ showTotal?: boolean;
348
+ totalBackground?: string;
349
+ groupHeaderBackground?: string;
350
+ order?: number;
351
+ }
352
+ interface SelectConfig {
353
+ propertyName: string;
354
+ displayName?: string;
355
+ aggregateFunction?: string;
356
+ isVisible?: boolean;
357
+ order?: number;
358
+ }
359
+ interface AggregateConfig {
360
+ propertyName: string;
361
+ aggregateFunction: string;
362
+ alias?: string;
363
+ }
343
364
  interface QueryParameters {
344
365
  filters: FilterGroup[];
345
366
  orderBy?: {
346
367
  field: string;
347
368
  direction: 'asc' | 'desc';
348
369
  }[];
349
- groupBy?: string[];
370
+ groupBy?: GroupingConfig[];
371
+ select?: SelectConfig[];
372
+ aggregates?: AggregateConfig[];
350
373
  top?: number;
351
374
  skip?: number;
352
375
  expand?: string[];
376
+ includeCount?: boolean;
353
377
  }
354
378
  declare class QueryParser {
355
379
  static parse(queryString: string): QueryParameters;
356
380
  static toString(params: QueryParameters): string;
357
381
  private static buildFilterString;
382
+ private static buildGroupByString;
383
+ private static buildSelectString;
384
+ private static buildAggregateString;
358
385
  private static parseFilter;
359
386
  private static parseConditions;
360
387
  private static parseOrderBy;
388
+ private static parseGroupBy;
389
+ private static parseSelect;
390
+ private static parseAggregate;
391
+ static toODataQueryParameters(params: QueryParameters): any;
392
+ static fromUIModel(model: any): QueryParameters;
361
393
  }
362
394
 
363
395
  export { BaseService, GenericService, IdParserService, LogLevel, LoggerService, NgxPermissionsGuard, PermissionsService, QueryParser, REQUEST, RestService, SsrCookieService, SwalService, isUndefinedOrEmptyString, ngxPermissionsGuard };
364
- export type { CrudService, FilterCondition, FilterGroup, ILoggerService, NgxPermissionsData, QueryParameters };
396
+ export type { AggregateConfig, CrudService, FilterCondition, FilterGroup, GroupingConfig, ILoggerService, NgxPermissionsData, QueryParameters, SelectConfig };