@ng-atomic/common 0.0.0-PLACEHOLDER
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/directives/ios-safari-scroll-buggyfill/index.d.ts +2 -0
- package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +8 -0
- package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +8 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/index.mjs +3 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.mjs +24 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.mjs +24 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +5 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/models/action-item.mjs +2 -0
- package/esm2020/models/action.mjs +2 -0
- package/esm2020/models/index.mjs +2 -0
- package/esm2020/models/menu-item.mjs +2 -0
- package/esm2020/models/ng-atomic-common-models.mjs +5 -0
- package/esm2020/models/public_api.mjs +4 -0
- package/esm2020/ng-atomic-common.mjs +5 -0
- 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/domain/domain.module.mjs +24 -0
- package/esm2020/pipes/domain/domain.pipe.mjs +27 -0
- package/esm2020/pipes/domain/index.mjs +3 -0
- package/esm2020/pipes/domain/ng-atomic-common-pipes-domain.mjs +5 -0
- package/esm2020/pipes/pagination/index.mjs +4 -0
- package/esm2020/pipes/pagination/ng-atomic-common-pipes-pagination.mjs +5 -0
- package/esm2020/pipes/pagination/pagination.module.mjs +24 -0
- package/esm2020/pipes/pagination/pagination.pipe.mjs +28 -0
- package/esm2020/pipes/pagination/pagination.transformer.mjs +5 -0
- package/esm2020/pipes/smart-exp/index.mjs +3 -0
- package/esm2020/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.mjs +5 -0
- package/esm2020/pipes/smart-exp/smart-exp.module.mjs +16 -0
- package/esm2020/pipes/smart-exp/smart-exp.pipe.mjs +27 -0
- package/esm2020/pipes/smart-field/index.mjs +3 -0
- package/esm2020/pipes/smart-field/ng-atomic-common-pipes-smart-field.mjs +5 -0
- package/esm2020/pipes/smart-field/smart-field.module.mjs +24 -0
- package/esm2020/pipes/smart-field/smart-field.pipe.mjs +31 -0
- package/esm2020/pipes/smart-sort-by/index.mjs +4 -0
- package/esm2020/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.mjs +5 -0
- package/esm2020/pipes/smart-sort-by/smart-sort-by.module.mjs +24 -0
- package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +28 -0
- package/esm2020/pipes/smart-sort-by/smart-sort-by.transformer.mjs +5 -0
- package/esm2020/pipes/yen/index.mjs +3 -0
- package/esm2020/pipes/yen/ng-atomic-common-pipes-yen.mjs +5 -0
- package/esm2020/pipes/yen/yen.module.mjs +24 -0
- package/esm2020/pipes/yen/yen.pipe.mjs +17 -0
- package/esm2020/services/chips-manager/chips.manager.mjs +29 -0
- package/esm2020/services/chips-manager/index.mjs +2 -0
- package/esm2020/services/chips-manager/ng-atomic-common-services-chips-manager.mjs +5 -0
- package/esm2020/services/form/form.service.mjs +38 -0
- package/esm2020/services/form/index.mjs +2 -0
- package/esm2020/services/form/ng-atomic-common-services-form.mjs +5 -0
- package/esm2020/services/loading/index.mjs +2 -0
- package/esm2020/services/loading/loading.service.mjs +39 -0
- package/esm2020/services/loading/ng-atomic-common-services-loading.mjs +5 -0
- package/esm2020/services/query-resolver/index.mjs +2 -0
- package/esm2020/services/query-resolver/ng-atomic-common-services-query-resolver.mjs +5 -0
- package/esm2020/services/query-resolver/query-resolver.service.mjs +26 -0
- package/esm2020/services/snack-bar/index.mjs +3 -0
- package/esm2020/services/snack-bar/ng-atomic-common-services-snack-bar.mjs +5 -0
- package/esm2020/services/snack-bar/snack-bar.module.mjs +22 -0
- package/esm2020/services/snack-bar/snack-bar.service.mjs +23 -0
- package/esm2020/stores/entities/entities.store.mjs +21 -0
- package/esm2020/stores/entities/index.mjs +2 -0
- package/esm2020/stores/entities/ng-atomic-common-stores-entities.mjs +5 -0
- package/esm2020/stores/entity/entity.store.mjs +34 -0
- package/esm2020/stores/entity/index.mjs +2 -0
- package/esm2020/stores/entity/ng-atomic-common-stores-entity.mjs +5 -0
- package/esm2020/stores/pagination/index.mjs +2 -0
- package/esm2020/stores/pagination/ng-atomic-common-stores-pagination.mjs +5 -0
- package/esm2020/stores/pagination/pagination.store.mjs +23 -0
- package/esm2020/stores/query/index.mjs +2 -0
- package/esm2020/stores/query/ng-atomic-common-stores-query.mjs +5 -0
- package/esm2020/stores/query/query.store.mjs +31 -0
- package/esm2020/stores/selection/index.mjs +2 -0
- package/esm2020/stores/selection/ng-atomic-common-stores-selection.mjs +5 -0
- package/esm2020/stores/selection/selection.store.mjs +29 -0
- 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/esm2020/utils/comma/comma.mjs +4 -0
- package/esm2020/utils/comma/index.mjs +2 -0
- package/esm2020/utils/compare-by-id/compare-by-id.mjs +2 -0
- package/esm2020/utils/compare-by-id/index.mjs +2 -0
- package/esm2020/utils/date-utils/date-utils.mjs +13 -0
- package/esm2020/utils/date-utils/index.mjs +2 -0
- package/esm2020/utils/index.mjs +9 -0
- package/esm2020/utils/mat-dayjs-date/dayjs-date.adapter.mjs +191 -0
- package/esm2020/utils/mat-dayjs-date/dayjs-date.formats.mjs +15 -0
- package/esm2020/utils/mat-dayjs-date/dayjs-date.module.mjs +41 -0
- package/esm2020/utils/mat-dayjs-date/dayjs-jp-providers.mjs +20 -0
- package/esm2020/utils/mat-dayjs-date/index.mjs +5 -0
- package/esm2020/utils/ng-atomic-common-utils.mjs +5 -0
- package/esm2020/utils/page/index.mjs +2 -0
- package/esm2020/utils/page/ng-atomic-common-utils-page.mjs +5 -0
- package/esm2020/utils/page/page.mjs +20 -0
- package/esm2020/utils/query/index.mjs +2 -0
- package/esm2020/utils/query/query.resolver.mjs +97 -0
- package/esm2020/utils/smart-exp-transformer/index.mjs +2 -0
- package/esm2020/utils/smart-exp-transformer/smart-exp-transformer.mjs +18 -0
- package/esm2020/utils/to-object/index.mjs +2 -0
- package/esm2020/utils/to-object/to-object.mjs +10 -0
- package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +52 -0
- package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-models.mjs +4 -0
- package/fesm2015/ng-atomic-common-models.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs +40 -0
- package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes-domain.mjs +59 -0
- package/fesm2015/ng-atomic-common-pipes-domain.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes-pagination.mjs +63 -0
- package/fesm2015/ng-atomic-common-pipes-pagination.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs +50 -0
- package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes-smart-field.mjs +63 -0
- package/fesm2015/ng-atomic-common-pipes-smart-field.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs +63 -0
- package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes-yen.mjs +45 -0
- package/fesm2015/ng-atomic-common-pipes-yen.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-services-chips-manager.mjs +36 -0
- package/fesm2015/ng-atomic-common-services-chips-manager.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-services-form.mjs +42 -0
- package/fesm2015/ng-atomic-common-services-form.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-services-loading.mjs +46 -0
- package/fesm2015/ng-atomic-common-services-loading.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-services-query-resolver.mjs +36 -0
- package/fesm2015/ng-atomic-common-services-query-resolver.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-services-snack-bar.mjs +49 -0
- package/fesm2015/ng-atomic-common-services-snack-bar.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-stores-entities.mjs +28 -0
- package/fesm2015/ng-atomic-common-stores-entities.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-stores-entity.mjs +42 -0
- package/fesm2015/ng-atomic-common-stores-entity.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-stores-pagination.mjs +30 -0
- package/fesm2015/ng-atomic-common-stores-pagination.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-stores-query.mjs +40 -0
- package/fesm2015/ng-atomic-common-stores-query.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-stores-selection.mjs +36 -0
- package/fesm2015/ng-atomic-common-stores-selection.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-stores-sort.mjs +35 -0
- package/fesm2015/ng-atomic-common-stores-sort.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-utils-page.mjs +21 -0
- package/fesm2015/ng-atomic-common-utils-page.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-utils.mjs +409 -0
- package/fesm2015/ng-atomic-common-utils.mjs.map +1 -0
- package/fesm2015/ng-atomic-common.mjs +4 -0
- package/fesm2015/ng-atomic-common.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +52 -0
- package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-models.mjs +4 -0
- package/fesm2020/ng-atomic-common-models.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-domain.mjs +55 -0
- package/fesm2020/ng-atomic-common-pipes-domain.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-pipes-pagination.mjs +60 -0
- package/fesm2020/ng-atomic-common-pipes-pagination.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs +47 -0
- package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-pipes-smart-field.mjs +59 -0
- package/fesm2020/ng-atomic-common-pipes-smart-field.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs +60 -0
- package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-pipes-yen.mjs +45 -0
- package/fesm2020/ng-atomic-common-pipes-yen.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-services-chips-manager.mjs +36 -0
- package/fesm2020/ng-atomic-common-services-chips-manager.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-services-form.mjs +45 -0
- package/fesm2020/ng-atomic-common-services-form.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-services-loading.mjs +46 -0
- package/fesm2020/ng-atomic-common-services-loading.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-services-query-resolver.mjs +33 -0
- package/fesm2020/ng-atomic-common-services-query-resolver.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-services-snack-bar.mjs +49 -0
- package/fesm2020/ng-atomic-common-services-snack-bar.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-stores-entities.mjs +28 -0
- package/fesm2020/ng-atomic-common-stores-entities.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-stores-entity.mjs +41 -0
- package/fesm2020/ng-atomic-common-stores-entity.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-stores-pagination.mjs +30 -0
- package/fesm2020/ng-atomic-common-stores-pagination.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-stores-query.mjs +37 -0
- package/fesm2020/ng-atomic-common-stores-query.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-stores-selection.mjs +36 -0
- package/fesm2020/ng-atomic-common-stores-selection.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-stores-sort.mjs +35 -0
- package/fesm2020/ng-atomic-common-stores-sort.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-utils-page.mjs +26 -0
- package/fesm2020/ng-atomic-common-utils-page.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-utils.mjs +406 -0
- package/fesm2020/ng-atomic-common-utils.mjs.map +1 -0
- package/fesm2020/ng-atomic-common.mjs +4 -0
- package/fesm2020/ng-atomic-common.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/models/action-item.d.ts +6 -0
- package/models/action.d.ts +8 -0
- package/models/index.d.ts +1 -0
- package/models/menu-item.d.ts +4 -0
- package/models/public_api.d.ts +3 -0
- package/package.json +210 -0
- package/pipes/data-accessor/data-accessor.pipe.d.ts +12 -0
- package/pipes/data-accessor/index.d.ts +1 -0
- package/pipes/domain/domain.module.d.ts +8 -0
- package/pipes/domain/domain.pipe.d.ts +11 -0
- package/pipes/domain/index.d.ts +2 -0
- package/pipes/pagination/index.d.ts +3 -0
- package/pipes/pagination/pagination.module.d.ts +8 -0
- package/pipes/pagination/pagination.pipe.d.ts +16 -0
- package/pipes/pagination/pagination.transformer.d.ts +9 -0
- package/pipes/smart-exp/index.d.ts +2 -0
- package/pipes/smart-exp/smart-exp.module.d.ts +7 -0
- package/pipes/smart-exp/smart-exp.pipe.d.ts +10 -0
- package/pipes/smart-field/index.d.ts +2 -0
- package/pipes/smart-field/smart-field.module.d.ts +8 -0
- package/pipes/smart-field/smart-field.pipe.d.ts +31 -0
- package/pipes/smart-sort-by/index.d.ts +3 -0
- package/pipes/smart-sort-by/smart-sort-by.module.d.ts +8 -0
- package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts +11 -0
- package/pipes/smart-sort-by/smart-sort-by.transformer.d.ts +2 -0
- package/pipes/yen/index.d.ts +2 -0
- package/pipes/yen/yen.module.d.ts +8 -0
- package/pipes/yen/yen.pipe.d.ts +7 -0
- package/services/chips-manager/chips.manager.d.ts +11 -0
- package/services/chips-manager/index.d.ts +1 -0
- package/services/form/form.service.d.ts +7 -0
- package/services/form/index.d.ts +1 -0
- package/services/loading/index.d.ts +1 -0
- package/services/loading/loading.service.d.ts +16 -0
- package/services/query-resolver/index.d.ts +1 -0
- package/services/query-resolver/query-resolver.service.d.ts +9 -0
- package/services/snack-bar/index.d.ts +2 -0
- package/services/snack-bar/snack-bar.module.d.ts +8 -0
- package/services/snack-bar/snack-bar.service.d.ts +9 -0
- package/stores/entities/entities.store.d.ts +17 -0
- package/stores/entities/index.d.ts +1 -0
- package/stores/entity/entity.store.d.ts +26 -0
- package/stores/entity/index.d.ts +1 -0
- package/stores/pagination/index.d.ts +1 -0
- package/stores/pagination/pagination.store.d.ts +19 -0
- package/stores/query/index.d.ts +1 -0
- package/stores/query/query.store.d.ts +17 -0
- package/stores/selection/index.d.ts +1 -0
- package/stores/selection/selection.store.d.ts +23 -0
- package/stores/sort/index.d.ts +1 -0
- package/stores/sort/sort.store.d.ts +21 -0
- package/utils/comma/comma.d.ts +3 -0
- package/utils/comma/index.d.ts +1 -0
- package/utils/compare-by-id/compare-by-id.d.ts +4 -0
- package/utils/compare-by-id/index.d.ts +1 -0
- package/utils/date-utils/date-utils.d.ts +10 -0
- package/utils/date-utils/index.d.ts +1 -0
- package/utils/index.d.ts +7 -0
- package/utils/mat-dayjs-date/dayjs-date.adapter.d.ts +60 -0
- package/utils/mat-dayjs-date/dayjs-date.formats.d.ts +5 -0
- package/utils/mat-dayjs-date/dayjs-date.module.d.ts +11 -0
- package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts +10 -0
- package/utils/mat-dayjs-date/index.d.ts +4 -0
- package/utils/page/index.d.ts +1 -0
- package/utils/page/page.d.ts +11 -0
- package/utils/query/index.d.ts +1 -0
- package/utils/query/query.resolver.d.ts +2 -0
- package/utils/smart-exp-transformer/index.d.ts +1 -0
- package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +6 -0
- package/utils/to-object/index.d.ts +1 -0
- package/utils/to-object/to-object.d.ts +1 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentStore } from "@ngrx/component-store";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface SelectionState {
|
|
4
|
+
idSet: Set<string>;
|
|
5
|
+
initialIdSet: Set<string> | null;
|
|
6
|
+
}
|
|
7
|
+
export declare class SelectionStore extends ComponentStore<SelectionState> {
|
|
8
|
+
get idSet(): Set<string>;
|
|
9
|
+
get initialIdSet(): Set<string>;
|
|
10
|
+
constructor();
|
|
11
|
+
setIdSet: (observableOrValue: Set<string> | import("rxjs").Observable<Set<string>>) => import("rxjs").Subscription;
|
|
12
|
+
setInitialIdSet: (observableOrValue: Set<string> | import("rxjs").Observable<Set<string>>) => import("rxjs").Subscription;
|
|
13
|
+
addIds: (ids: string[]) => import("rxjs").Subscription;
|
|
14
|
+
addId: (id: string) => import("rxjs").Subscription;
|
|
15
|
+
removeId: (id: string) => import("rxjs").Subscription;
|
|
16
|
+
toggleId: (id: string) => import("rxjs").Subscription;
|
|
17
|
+
getSelectedAndUnselected(): [Set<string>, Set<string>];
|
|
18
|
+
filterBySelectedIds<E extends {
|
|
19
|
+
id: string;
|
|
20
|
+
}>(entities: E[]): E[];
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionStore, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SelectionStore>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sort.store';
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './comma';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './compare-by-id';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
export declare const removeComma: (str: string) => string;
|
|
3
|
+
export declare const DATE_FORMAT = "YYYY-MM-DDTHH:mm:ss";
|
|
4
|
+
export declare const isDateStr: (str: string | null) => str is string;
|
|
5
|
+
export declare const isDateTimeStr: (str: string | null) => str is string;
|
|
6
|
+
export declare const isIsoString: (str: string | null) => str is string;
|
|
7
|
+
export interface Timestamp {
|
|
8
|
+
toDate: () => Date;
|
|
9
|
+
}
|
|
10
|
+
export declare function timestampToDayjs(timestamp: Timestamp | null): dayjs.Dayjs | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './date-utils';
|
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { DateAdapter } from '@angular/material/core';
|
|
3
|
+
import { Dayjs } from 'dayjs';
|
|
4
|
+
export interface DayJsDateAdapterOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Turns the use of utc dates on or off.
|
|
7
|
+
* Changing this will change how Angular Material components like DatePicker output dates.
|
|
8
|
+
* {@default false}
|
|
9
|
+
*/
|
|
10
|
+
useUtc?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** InjectionToken for Dayjs date adapter to configure options. */
|
|
13
|
+
export declare const MAT_DAYJS_DATE_ADAPTER_OPTIONS: InjectionToken<DayJsDateAdapterOptions>;
|
|
14
|
+
export declare function MAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY(): DayJsDateAdapterOptions;
|
|
15
|
+
/** Adapts Dayjs Dates for use with Angular Material. */
|
|
16
|
+
export declare class DayjsDateAdapter extends DateAdapter<Dayjs> {
|
|
17
|
+
dateLocale: string;
|
|
18
|
+
private options?;
|
|
19
|
+
private localeData;
|
|
20
|
+
constructor(dateLocale: string, options?: DayJsDateAdapterOptions);
|
|
21
|
+
setLocale(locale: string): void;
|
|
22
|
+
getYear(date: Dayjs): number;
|
|
23
|
+
getMonth(date: Dayjs): number;
|
|
24
|
+
getDate(date: Dayjs): number;
|
|
25
|
+
getDayOfWeek(date: Dayjs): number;
|
|
26
|
+
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
27
|
+
getDateNames(): string[];
|
|
28
|
+
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
29
|
+
getYearName(date: Dayjs): string;
|
|
30
|
+
getFirstDayOfWeek(): number;
|
|
31
|
+
getNumDaysInMonth(date: Dayjs): number;
|
|
32
|
+
clone(date: Dayjs): Dayjs;
|
|
33
|
+
createDate(year: number, month: number, date: number): Dayjs;
|
|
34
|
+
today(): Dayjs;
|
|
35
|
+
parse(value: any, parseFormat: string): Dayjs | null;
|
|
36
|
+
format(date: Dayjs, displayFormat: string): string;
|
|
37
|
+
addCalendarYears(date: Dayjs, years: number): Dayjs;
|
|
38
|
+
addCalendarMonths(date: Dayjs, months: number): Dayjs;
|
|
39
|
+
addCalendarDays(date: Dayjs, days: number): Dayjs;
|
|
40
|
+
toIso8601(date: Dayjs): string;
|
|
41
|
+
/**
|
|
42
|
+
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
|
|
43
|
+
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
|
|
44
|
+
* string). The default implementation does not allow any deserialization, it simply checks that
|
|
45
|
+
* the given value is already a valid date object or null. The `<mat-datepicker>` will call this
|
|
46
|
+
* method on all of it's `@Input()` properties that accept dates. It is therefore possible to
|
|
47
|
+
* support passing values from your backend directly to these properties by overriding this method
|
|
48
|
+
* to also deserialize the format used by your backend.
|
|
49
|
+
* @param value The value to be deserialized into a date object.
|
|
50
|
+
* @returns The deserialized date object, either a valid date, null if the value can be
|
|
51
|
+
* deserialized into a null date (e.g. the empty string), or an invalid date.
|
|
52
|
+
*/
|
|
53
|
+
deserialize(value: any): Dayjs | null;
|
|
54
|
+
isDateInstance(obj: any): boolean;
|
|
55
|
+
isValid(date: Dayjs): boolean;
|
|
56
|
+
invalid(): Dayjs;
|
|
57
|
+
private dayJs;
|
|
58
|
+
private get shouldUseUtc();
|
|
59
|
+
private initializeParser;
|
|
60
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DayjsDateModule {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayjsDateModule, never>;
|
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DayjsDateModule, never, never, never>;
|
|
5
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DayjsDateModule>;
|
|
6
|
+
}
|
|
7
|
+
export declare class MatDayjsDateModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDayjsDateModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDayjsDateModule, never, [typeof DayjsDateModule], never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatDayjsDateModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MatDateFormats } from '@angular/material/core';
|
|
2
|
+
import 'dayjs/locale/ja';
|
|
3
|
+
export declare const MAT_DAYJS_DATE_FORMATS_FOR_JP: MatDateFormats;
|
|
4
|
+
export declare const MAT_DAYJS_JP_PROVIDERS: ({
|
|
5
|
+
provide: import("@angular/core").InjectionToken<{}>;
|
|
6
|
+
useValue: string;
|
|
7
|
+
} | {
|
|
8
|
+
provide: import("@angular/core").InjectionToken<MatDateFormats>;
|
|
9
|
+
useValue: MatDateFormats;
|
|
10
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './page';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
2
|
+
export interface Page extends PageEvent {
|
|
3
|
+
sortKey: string;
|
|
4
|
+
sortOrder: 'asc' | 'desc';
|
|
5
|
+
}
|
|
6
|
+
export declare class Page {
|
|
7
|
+
static from(event?: Partial<Page>): Page;
|
|
8
|
+
get start(): number;
|
|
9
|
+
get end(): number;
|
|
10
|
+
patch(obj: Partial<Page>): Page;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './query.resolver';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './smart-exp-transformer';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
export declare const SMART_EXP_TRANSFORMER: InjectionToken<SmartExpTransformer>;
|
|
4
|
+
export declare type SmartExpTransformer = (input: string | number | dayjs.Dayjs | any, key?: string) => string;
|
|
5
|
+
export declare const yenTransform: (value: number, _unit?: string) => string;
|
|
6
|
+
export declare const smartExpTransformer: SmartExpTransformer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './to-object';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toObject: (obj: object) => object;
|