@ng-atomic/common 4.14.1 → 4.16.0
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/esm2020/models/action.mjs +1 -1
- package/esm2020/pipes/data-accessor/data-accessor.pipe.mjs +30 -0
- package/esm2020/pipes/data-accessor/index.mjs +2 -0
- package/esm2020/pipes/data-accessor/ng-atomic-common-pipes-data-accessor.mjs +5 -0
- package/esm2020/pipes/pagination/index.mjs +2 -1
- package/esm2020/pipes/pagination/pagination.pipe.mjs +8 -9
- package/esm2020/pipes/pagination/pagination.transformer.mjs +5 -0
- package/esm2020/pipes/smart-sort-by/index.mjs +2 -1
- package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +2 -5
- package/esm2020/pipes/smart-sort-by/smart-sort-by.transformer.mjs +5 -0
- package/esm2020/services/loading/loading.service.mjs +5 -1
- package/esm2020/stores/entities/entities.store.mjs +8 -6
- package/esm2020/stores/pagination/pagination.store.mjs +1 -10
- package/esm2020/stores/query/query.store.mjs +2 -1
- package/esm2020/stores/sort/index.mjs +2 -0
- package/esm2020/stores/sort/ng-atomic-common-stores-sort.mjs +5 -0
- package/esm2020/stores/sort/sort.store.mjs +28 -0
- package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs +42 -0
- package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes-pagination.mjs +13 -9
- package/fesm2015/ng-atomic-common-pipes-pagination.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs +2 -1
- package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-services-loading.mjs +4 -0
- package/fesm2015/ng-atomic-common-services-loading.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-stores-entities.mjs +7 -5
- package/fesm2015/ng-atomic-common-stores-entities.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-stores-pagination.mjs +0 -9
- package/fesm2015/ng-atomic-common-stores-pagination.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-stores-query.mjs +2 -0
- package/fesm2015/ng-atomic-common-stores-query.mjs.map +1 -1
- package/fesm2015/ng-atomic-common-stores-sort.mjs +37 -0
- package/fesm2015/ng-atomic-common-stores-sort.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-pipes-data-accessor.mjs +37 -0
- package/fesm2020/ng-atomic-common-pipes-data-accessor.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-pipes-pagination.mjs +13 -9
- package/fesm2020/ng-atomic-common-pipes-pagination.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs +2 -1
- package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-services-loading.mjs +4 -0
- package/fesm2020/ng-atomic-common-services-loading.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-stores-entities.mjs +7 -5
- package/fesm2020/ng-atomic-common-stores-entities.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-stores-pagination.mjs +0 -9
- package/fesm2020/ng-atomic-common-stores-pagination.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-stores-query.mjs +1 -0
- package/fesm2020/ng-atomic-common-stores-query.mjs.map +1 -1
- package/fesm2020/ng-atomic-common-stores-sort.mjs +35 -0
- package/fesm2020/ng-atomic-common-stores-sort.mjs.map +1 -0
- package/models/action.d.ts +4 -0
- package/models/action.d.ts.map +1 -1
- package/package.json +19 -1
- package/pipes/data-accessor/data-accessor.pipe.d.ts +13 -0
- package/pipes/data-accessor/data-accessor.pipe.d.ts.map +1 -0
- package/pipes/data-accessor/index.d.ts +2 -0
- package/pipes/data-accessor/index.d.ts.map +1 -0
- package/pipes/data-accessor/ng-atomic-common-pipes-data-accessor.d.ts.map +1 -0
- package/pipes/pagination/index.d.ts +1 -0
- package/pipes/pagination/index.d.ts.map +1 -1
- package/pipes/pagination/pagination.pipe.d.ts +9 -9
- package/pipes/pagination/pagination.pipe.d.ts.map +1 -1
- package/pipes/pagination/pagination.transformer.d.ts +10 -0
- package/pipes/pagination/pagination.transformer.d.ts.map +1 -0
- package/pipes/smart-sort-by/index.d.ts +1 -0
- package/pipes/smart-sort-by/index.d.ts.map +1 -1
- package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts +1 -2
- package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts.map +1 -1
- package/pipes/smart-sort-by/smart-sort-by.transformer.d.ts +3 -0
- package/pipes/smart-sort-by/smart-sort-by.transformer.d.ts.map +1 -0
- package/services/loading/loading.service.d.ts +1 -0
- package/services/loading/loading.service.d.ts.map +1 -1
- package/stores/entities/entities.store.d.ts +4 -6
- package/stores/entities/entities.store.d.ts.map +1 -1
- package/stores/pagination/pagination.store.d.ts +6 -11
- package/stores/pagination/pagination.store.d.ts.map +1 -1
- package/stores/query/query.store.d.ts +1 -1
- package/stores/query/query.store.d.ts.map +1 -1
- package/stores/sort/index.d.ts +2 -0
- package/stores/sort/index.d.ts.map +1 -0
- package/stores/sort/ng-atomic-common-stores-sort.d.ts.map +1 -0
- package/stores/sort/sort.store.d.ts +22 -0
- package/stores/sort/sort.store.d.ts.map +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Page {
|
|
2
|
+
start: number;
|
|
3
|
+
end: number;
|
|
4
|
+
key: string;
|
|
5
|
+
order: 'asc' | 'desc';
|
|
6
|
+
}
|
|
7
|
+
export declare type PaginationTransformer<E> = (items: E[], page: Page) => E[];
|
|
8
|
+
export declare function paginationTransformer<E>(items: E[], page: Page): E[];
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=pagination.transformer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.transformer.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/pipes/pagination/pagination.transformer.ts"],"names":[],"mappings":"AAEA,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;CACvB;AAED,oBAAY,qBAAqB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC;AAEvE,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,GAAG,CAAC,EAAE,CAEpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/pipes/smart-sort-by/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/pipes/smart-sort-by/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { InjectionToken, PipeTransform } from '@angular/core';
|
|
2
|
+
import { SmartSortByTransformer } from './smart-sort-by.transformer';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare const SMART_SORT_BY_TRANSFORMER: InjectionToken<unknown>;
|
|
4
|
-
export declare type SmartSortByTransformer = <T>(items: T[], key: string, order: 'asc' | 'desc') => T[];
|
|
5
|
-
export declare const smartSortByTransformer: SmartSortByTransformer;
|
|
6
5
|
export declare class SmartSortByPipe implements PipeTransform {
|
|
7
6
|
private transformer?;
|
|
8
7
|
constructor(transformer?: SmartSortByTransformer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-sort-by.pipe.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/pipes/smart-sort-by/smart-sort-by.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,cAAc,EAAkB,aAAa,EAAE,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"smart-sort-by.pipe.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/pipes/smart-sort-by/smart-sort-by.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,cAAc,EAAkB,aAAa,EAAE,MAAM,eAAe,CAAC;AACtF,OAAO,EAA0B,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;;AAE7F,eAAO,MAAM,yBAAyB,yBAAsE,CAAC;AAE7G,qBAIa,eAAgB,YAAW,aAAa;IAKjD,OAAO,CAAC,WAAW,CAAC;gBAAZ,WAAW,CAAC,EAAE,sBAAsB;IAK9C,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,KAAK,GAAG,MAAc,GAAG,CAAC,EAAE;yCAV9D,eAAe;uCAAf,eAAe;CAc3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-sort-by.transformer.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/pipes/smart-sort-by/smart-sort-by.transformer.ts"],"names":[],"mappings":"AAEA,oBAAY,sBAAsB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,KAAK,CAAC,EAAE,CAAC;AAChG,eAAO,MAAM,sBAAsB,EAAE,sBAEpC,CAAA"}
|
|
@@ -8,6 +8,7 @@ export declare class LoadingService {
|
|
|
8
8
|
constructor();
|
|
9
9
|
setKey(key: string): void;
|
|
10
10
|
removeKey(key: string): void;
|
|
11
|
+
start(callback: (done: any) => void, key: string): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
|
|
12
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading.service.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/services/loading/loading.service.ts"],"names":[],"mappings":";AAIA,aAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1C,qBAGa,cAAc;IACzB,OAAO,CAAC,eAAe,CAAoC;IAE3D,UAAU,EAAE,UAAU,CAAM;IAC5B,WAAW,wCAMT;IAEF,UAAU,qCAGR;;IAQF,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"loading.service.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/services/loading/loading.service.ts"],"names":[],"mappings":";AAIA,aAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1C,qBAGa,cAAc;IACzB,OAAO,CAAC,eAAe,CAAoC;IAE3D,UAAU,EAAE,UAAU,CAAM;IAC5B,WAAW,wCAMT;IAEF,UAAU,qCAGR;;IAQF,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI5B,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,EAAE,GAAG,EAAE,MAAM;yCA/BrC,cAAc;6CAAd,cAAc;CAmC1B"}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { ComponentStore } from '@ngrx/component-store';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
2
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
3
3
|
export interface EntitiesState<E> {
|
|
4
|
-
userId: string;
|
|
5
4
|
entities: E[];
|
|
6
5
|
}
|
|
7
6
|
export declare const distinctUntilChangedArray: <T>() => import("rxjs").MonoTypeOperatorFunction<T>;
|
|
8
7
|
export declare abstract class EntitiesStore<S extends EntitiesState<E>, E extends {
|
|
9
8
|
id: string;
|
|
10
9
|
}> extends ComponentStore<S> {
|
|
10
|
+
protected readonly refresh$: ReplaySubject<void>;
|
|
11
11
|
get entities(): E[];
|
|
12
|
-
userId$: Observable<string>;
|
|
13
12
|
entities$: Observable<E[]>;
|
|
14
13
|
constructor(initialState: S);
|
|
15
|
-
setUserId: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
16
14
|
setEntities: (observableOrValue: E[] | Observable<E[]>) => import("rxjs").Subscription;
|
|
17
|
-
getEntities:
|
|
18
|
-
|
|
15
|
+
abstract getEntities: ReturnType<typeof this.effect>;
|
|
16
|
+
refresh(): void;
|
|
19
17
|
}
|
|
20
18
|
//# sourceMappingURL=entities.store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.store.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/entities/entities.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.store.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/entities/entities.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAGjD,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,QAAQ,EAAE,CAAC,EAAE,CAAA;CACd;AAED,eAAO,MAAM,yBAAyB,qDAErC,CAAC;AAEF,8BAAsB,aAAa,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS;IAAC,EAAE,EAAE,MAAM,CAAA;CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC/G,SAAS,CAAC,QAAQ,CAAC,QAAQ,sBAA8B;IAEzD,IAAI,QAAQ,QAAkC;IAE9C,SAAS,kBAA2E;gBAExE,YAAY,EAAE,CAAC;IAK3B,WAAW,4EAAkE;IAE7E,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IAErD,OAAO;CAGR"}
|
|
@@ -2,23 +2,18 @@ import { ComponentStore } from "@ngrx/component-store";
|
|
|
2
2
|
import { Page } from '@ng-atomic/common/utils/page';
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export interface
|
|
5
|
+
export interface State {
|
|
6
6
|
page: Page;
|
|
7
7
|
}
|
|
8
|
-
export declare class PaginationStore extends ComponentStore<
|
|
8
|
+
export declare class PaginationStore extends ComponentStore<State> {
|
|
9
9
|
constructor();
|
|
10
|
-
get page():
|
|
11
|
-
get
|
|
12
|
-
get
|
|
13
|
-
|
|
14
|
-
get end(): any;
|
|
15
|
-
page$: Observable<any>;
|
|
10
|
+
get page(): Page;
|
|
11
|
+
get start(): number;
|
|
12
|
+
get end(): number;
|
|
13
|
+
page$: Observable<Page>;
|
|
16
14
|
setPage: (observableOrValue: Page | Observable<Page>) => import("rxjs").Subscription;
|
|
17
|
-
setSortKey: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
18
|
-
setSortOrder: (observableOrValue: "asc" | "desc" | Observable<"asc" | "desc">) => import("rxjs").Subscription;
|
|
19
15
|
patch: (observableOrValue: Partial<Page> | Observable<Partial<Page>>) => import("rxjs").Subscription;
|
|
20
16
|
getPageLength: (observableOrValue: any[] | Observable<any[]>) => import("rxjs").Subscription;
|
|
21
|
-
changeSortFromEvent(sortKey: string, page?: Page): void;
|
|
22
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationStore, never>;
|
|
23
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<PaginationStore>;
|
|
24
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.store.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/pagination/pagination.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAO,MAAM,MAAM,CAAC;;AAGvC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"pagination.store.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/pagination/pagination.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAO,MAAM,MAAM,CAAC;;AAGvC,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,qBACa,eAAgB,SAAQ,cAAc,CAAC,KAAK,CAAC;;IAGxD,IAAI,IAAI,SAA4C;IACpD,IAAI,KAAK,WAA8B;IACvC,IAAI,GAAG,WAA4B;IAEnC,KAAK,mBAAoC;IAEzC,OAAO,8EAA2D;IAClE,KAAK,gGAA4F;IAEjG,aAAa,gFAEV;yCAdQ,eAAe;6CAAf,eAAe;CAe3B"}
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export interface QueryState {
|
|
5
5
|
query: string;
|
|
6
6
|
}
|
|
7
|
-
export declare class QueryStore<E> extends ComponentStore<QueryState> {
|
|
7
|
+
export declare class QueryStore<E = any> extends ComponentStore<QueryState> {
|
|
8
8
|
protected queryResolver: QueryResolverService;
|
|
9
9
|
protected langMap: Record<string, string>;
|
|
10
10
|
constructor(queryResolver: QueryResolverService, langMap: Record<string, string>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.store.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/query/query.store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;;AAEvD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,UAAU,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"query.store.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/query/query.store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;;AAEvD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,UAAU,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,cAAc,CAAC,UAAU,CAAC;IAE/D,SAAS,CAAC,aAAa,EAAE,oBAAoB;IACR,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBADpE,aAAa,EAAE,oBAAoB,EACE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAMhF,IAAI,KAAK,IAAI,MAAM,CAA6B;IAChD,MAAM,oCAAuC;IAE7C,QAAQ,iGAA+D;IAEvE,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE;yCAdhB,UAAU;6CAAV,UAAU;CAkBtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/sort/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-stores-sort.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/sort/ng-atomic-common-stores-sort.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentStore } from "@ngrx/component-store";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface SortState {
|
|
5
|
+
key: string;
|
|
6
|
+
order: 'asc' | 'desc';
|
|
7
|
+
}
|
|
8
|
+
export declare class SortStore extends ComponentStore<SortState> {
|
|
9
|
+
constructor();
|
|
10
|
+
get state(): SortState;
|
|
11
|
+
get key(): string;
|
|
12
|
+
get order(): "asc" | "desc";
|
|
13
|
+
state$: Observable<SortState>;
|
|
14
|
+
key$: Observable<string>;
|
|
15
|
+
order$: Observable<"asc" | "desc">;
|
|
16
|
+
setKey: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
17
|
+
setOrder: (observableOrValue: "asc" | "desc" | Observable<"asc" | "desc">) => import("rxjs").Subscription;
|
|
18
|
+
changeSortFromEvent(key: string, state?: SortState): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortStore, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SortStore>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sort.store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.store.d.ts","sourceRoot":"","sources":["../../../../../libs/common/src/stores/sort/sort.store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;;AAElC,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;CACvB;AAED,qBACa,SAAU,SAAQ,cAAc,CAAC,SAAS,CAAC;;IAGtD,IAAI,KAAK,cAAyB;IAClC,IAAI,GAAG,WAA6B;IACpC,IAAI,KAAK,mBAA+B;IAExC,MAAM,wBAA+B;IACrC,IAAI,qBAAmC;IACvC,MAAM,6BAAqC;IAE3C,MAAM,kFAA2D;IACjE,QAAQ,kGAAuE;IAE/E,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,SAAsB;yCAdnD,SAAS;6CAAT,SAAS;CAoBrB"}
|