@ng-atomic/common 4.14.1 → 4.15.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/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-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-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 +3 -0
- package/models/action.d.ts.map +1 -1
- package/package.json +9 -1
- 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 +0 -5
- 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,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"}
|