@elite.framework/ng.core 2.0.17 → 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.
|
|
3
|
+
"version": "2.0.19",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.1.0",
|
|
6
6
|
"@angular/core": "^20.1.0"
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"types": "./directives/index.d.ts",
|
|
21
21
|
"default": "./fesm2022/elite.framework-ng.core-directives.mjs"
|
|
22
22
|
},
|
|
23
|
-
"./models": {
|
|
24
|
-
"types": "./models/index.d.ts",
|
|
25
|
-
"default": "./fesm2022/elite.framework-ng.core-models.mjs"
|
|
26
|
-
},
|
|
27
23
|
"./interceptors": {
|
|
28
24
|
"types": "./interceptors/index.d.ts",
|
|
29
25
|
"default": "./fesm2022/elite.framework-ng.core-interceptors.mjs"
|
|
30
26
|
},
|
|
27
|
+
"./models": {
|
|
28
|
+
"types": "./models/index.d.ts",
|
|
29
|
+
"default": "./fesm2022/elite.framework-ng.core-models.mjs"
|
|
30
|
+
},
|
|
31
31
|
"./pipes": {
|
|
32
32
|
"types": "./pipes/index.d.ts",
|
|
33
33
|
"default": "./fesm2022/elite.framework-ng.core-pipes.mjs"
|
package/services/index.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -330,5 +331,66 @@ declare class IdParserService {
|
|
|
330
331
|
static ɵprov: i0.ɵɵInjectableDeclaration<IdParserService>;
|
|
331
332
|
}
|
|
332
333
|
|
|
333
|
-
|
|
334
|
-
|
|
334
|
+
interface FilterCondition {
|
|
335
|
+
field: string;
|
|
336
|
+
operator: string;
|
|
337
|
+
value: any;
|
|
338
|
+
}
|
|
339
|
+
interface FilterGroup {
|
|
340
|
+
logicalOperator: 'and' | 'or';
|
|
341
|
+
groupLogicalOperator?: 'and' | 'or';
|
|
342
|
+
conditions: FilterCondition[];
|
|
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
|
+
}
|
|
364
|
+
interface QueryParameters {
|
|
365
|
+
filters: FilterGroup[];
|
|
366
|
+
orderBy?: {
|
|
367
|
+
field: string;
|
|
368
|
+
direction: 'asc' | 'desc';
|
|
369
|
+
}[];
|
|
370
|
+
groupBy?: GroupingConfig[];
|
|
371
|
+
select?: SelectConfig[];
|
|
372
|
+
aggregates?: AggregateConfig[];
|
|
373
|
+
top?: number;
|
|
374
|
+
skip?: number;
|
|
375
|
+
expand?: string[];
|
|
376
|
+
includeCount?: boolean;
|
|
377
|
+
}
|
|
378
|
+
declare class QueryParser {
|
|
379
|
+
static parse(queryString: string): QueryParameters;
|
|
380
|
+
static toString(params: QueryParameters): string;
|
|
381
|
+
private static buildFilterString;
|
|
382
|
+
private static buildGroupByString;
|
|
383
|
+
private static buildSelectString;
|
|
384
|
+
private static buildAggregateString;
|
|
385
|
+
private static parseFilter;
|
|
386
|
+
private static parseConditions;
|
|
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;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export { BaseService, GenericService, IdParserService, LogLevel, LoggerService, NgxPermissionsGuard, PermissionsService, QueryParser, REQUEST, RestService, SsrCookieService, SwalService, isUndefinedOrEmptyString, ngxPermissionsGuard };
|
|
396
|
+
export type { AggregateConfig, CrudService, FilterCondition, FilterGroup, GroupingConfig, ILoggerService, NgxPermissionsData, QueryParameters, SelectConfig };
|