@ng-atomic/common 0.0.1
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/README.md +7 -0
- package/bundles/ng-atomic-common-directives.umd.js +95 -0
- package/bundles/ng-atomic-common-directives.umd.js.map +1 -0
- package/bundles/ng-atomic-common-directives.umd.min.js +2 -0
- package/bundles/ng-atomic-common-directives.umd.min.js.map +1 -0
- package/bundles/ng-atomic-common-models.umd.js +11 -0
- package/bundles/ng-atomic-common-models.umd.js.map +1 -0
- package/bundles/ng-atomic-common-models.umd.min.js +2 -0
- package/bundles/ng-atomic-common-models.umd.min.js.map +1 -0
- package/bundles/ng-atomic-common-pipes.umd.js +266 -0
- package/bundles/ng-atomic-common-pipes.umd.js.map +1 -0
- package/bundles/ng-atomic-common-pipes.umd.min.js +2 -0
- package/bundles/ng-atomic-common-pipes.umd.min.js.map +1 -0
- package/bundles/ng-atomic-common-services.umd.js +429 -0
- package/bundles/ng-atomic-common-services.umd.js.map +1 -0
- package/bundles/ng-atomic-common-services.umd.min.js +16 -0
- package/bundles/ng-atomic-common-services.umd.min.js.map +1 -0
- package/bundles/ng-atomic-common-store.umd.js +435 -0
- package/bundles/ng-atomic-common-store.umd.js.map +1 -0
- package/bundles/ng-atomic-common-store.umd.min.js +16 -0
- package/bundles/ng-atomic-common-store.umd.min.js.map +1 -0
- package/bundles/ng-atomic-common-utils.umd.js +727 -0
- package/bundles/ng-atomic-common-utils.umd.js.map +1 -0
- package/bundles/ng-atomic-common-utils.umd.min.js +2 -0
- package/bundles/ng-atomic-common-utils.umd.min.js.map +1 -0
- package/bundles/ng-atomic-common.umd.js +11 -0
- package/bundles/ng-atomic-common.umd.js.map +1 -0
- package/bundles/ng-atomic-common.umd.min.js +2 -0
- package/bundles/ng-atomic-common.umd.min.js.map +1 -0
- package/directives/index.d.ts +1 -0
- package/directives/ios-safari-scroll-buggyfill/index.d.ts +2 -0
- package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +10 -0
- package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +8 -0
- package/directives/ng-atomic-common-directives.d.ts +5 -0
- package/directives/package.json +10 -0
- package/esm2015/directives/index.js +2 -0
- package/esm2015/directives/index.js.map +1 -0
- package/esm2015/directives/ios-safari-scroll-buggyfill/index.js +3 -0
- package/esm2015/directives/ios-safari-scroll-buggyfill/index.js.map +1 -0
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js +27 -0
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js.map +1 -0
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js +27 -0
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js.map +1 -0
- package/esm2015/directives/ng-atomic-common-directives.js +5 -0
- package/esm2015/directives/ng-atomic-common-directives.js.map +1 -0
- package/esm2015/index.js +2 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/models/action-item.js +2 -0
- package/esm2015/models/action-item.js.map +1 -0
- package/esm2015/models/index.js +2 -0
- package/esm2015/models/index.js.map +1 -0
- package/esm2015/models/menu-item.js +2 -0
- package/esm2015/models/menu-item.js.map +1 -0
- package/esm2015/models/ng-atomic-common-models.js +5 -0
- package/esm2015/models/ng-atomic-common-models.js.map +1 -0
- package/esm2015/models/public_api.js +3 -0
- package/esm2015/models/public_api.js.map +1 -0
- package/esm2015/ng-atomic-common.js +5 -0
- package/esm2015/ng-atomic-common.js.map +1 -0
- package/esm2015/pipes/domain/domain.module.js +27 -0
- package/esm2015/pipes/domain/domain.module.js.map +1 -0
- package/esm2015/pipes/domain/domain.pipe.js +29 -0
- package/esm2015/pipes/domain/domain.pipe.js.map +1 -0
- package/esm2015/pipes/domain/index.js +3 -0
- package/esm2015/pipes/domain/index.js.map +1 -0
- package/esm2015/pipes/index.js +5 -0
- package/esm2015/pipes/index.js.map +1 -0
- package/esm2015/pipes/ng-atomic-common-pipes.js +5 -0
- package/esm2015/pipes/ng-atomic-common-pipes.js.map +1 -0
- package/esm2015/pipes/smart-exp/index.js +3 -0
- package/esm2015/pipes/smart-exp/index.js.map +1 -0
- package/esm2015/pipes/smart-exp/smart-exp.module.js +17 -0
- package/esm2015/pipes/smart-exp/smart-exp.module.js.map +1 -0
- package/esm2015/pipes/smart-exp/smart-exp.pipe.js +28 -0
- package/esm2015/pipes/smart-exp/smart-exp.pipe.js.map +1 -0
- package/esm2015/pipes/smart-field/index.js +3 -0
- package/esm2015/pipes/smart-field/index.js.map +1 -0
- package/esm2015/pipes/smart-field/smart-field.module.js +27 -0
- package/esm2015/pipes/smart-field/smart-field.module.js.map +1 -0
- package/esm2015/pipes/smart-field/smart-field.pipe.js +33 -0
- package/esm2015/pipes/smart-field/smart-field.pipe.js.map +1 -0
- package/esm2015/pipes/yen/index.js +3 -0
- package/esm2015/pipes/yen/index.js.map +1 -0
- package/esm2015/pipes/yen/yen.module.js +27 -0
- package/esm2015/pipes/yen/yen.module.js.map +1 -0
- package/esm2015/pipes/yen/yen.pipe.js +17 -0
- package/esm2015/pipes/yen/yen.pipe.js.map +1 -0
- package/esm2015/services/index.js +3 -0
- package/esm2015/services/index.js.map +1 -0
- package/esm2015/services/loading/index.js +2 -0
- package/esm2015/services/loading/index.js.map +1 -0
- package/esm2015/services/loading/loading.service.js +32 -0
- package/esm2015/services/loading/loading.service.js.map +1 -0
- package/esm2015/services/ng-atomic-common-services.js +5 -0
- package/esm2015/services/ng-atomic-common-services.js.map +1 -0
- package/esm2015/services/snack-bar/index.js +3 -0
- package/esm2015/services/snack-bar/index.js.map +1 -0
- package/esm2015/services/snack-bar/snack-bar.module.js +25 -0
- package/esm2015/services/snack-bar/snack-bar.module.js.map +1 -0
- package/esm2015/services/snack-bar/snack-bar.service.js +23 -0
- package/esm2015/services/snack-bar/snack-bar.service.js.map +1 -0
- package/esm2015/store/entities.page.store.js +30 -0
- package/esm2015/store/entities.page.store.js.map +1 -0
- package/esm2015/store/entity.page.store.js +41 -0
- package/esm2015/store/entity.page.store.js.map +1 -0
- package/esm2015/store/index.js +3 -0
- package/esm2015/store/index.js.map +1 -0
- package/esm2015/store/ng-atomic-common-store.js +5 -0
- package/esm2015/store/ng-atomic-common-store.js.map +1 -0
- package/esm2015/utils/comma/comma.js +4 -0
- package/esm2015/utils/comma/comma.js.map +1 -0
- package/esm2015/utils/comma/index.js +2 -0
- package/esm2015/utils/comma/index.js.map +1 -0
- package/esm2015/utils/compare-by-id/compare-by-id.js +2 -0
- package/esm2015/utils/compare-by-id/compare-by-id.js.map +1 -0
- package/esm2015/utils/compare-by-id/index.js +2 -0
- package/esm2015/utils/compare-by-id/index.js.map +1 -0
- package/esm2015/utils/index.js +6 -0
- package/esm2015/utils/index.js.map +1 -0
- package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js +189 -0
- package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js.map +1 -0
- package/esm2015/utils/mat-dayjs-date/dayjs-date.formats.js +15 -0
- package/esm2015/utils/mat-dayjs-date/dayjs-date.formats.js.map +1 -0
- package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js +42 -0
- package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js.map +1 -0
- package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js +20 -0
- package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js.map +1 -0
- package/esm2015/utils/mat-dayjs-date/index.js +5 -0
- package/esm2015/utils/mat-dayjs-date/index.js.map +1 -0
- package/esm2015/utils/ng-atomic-common-utils.js +5 -0
- package/esm2015/utils/ng-atomic-common-utils.js.map +1 -0
- package/esm2015/utils/query/index.js +2 -0
- package/esm2015/utils/query/index.js.map +1 -0
- package/esm2015/utils/query/query.resolver.js +59 -0
- package/esm2015/utils/query/query.resolver.js.map +1 -0
- package/esm2015/utils/to-object/index.js +2 -0
- package/esm2015/utils/to-object/index.js.map +1 -0
- package/esm2015/utils/to-object/to-object.js +10 -0
- package/esm2015/utils/to-object/to-object.js.map +1 -0
- package/fesm2015/ng-atomic-common-directives.js +58 -0
- package/fesm2015/ng-atomic-common-directives.js.map +1 -0
- package/fesm2015/ng-atomic-common-models.js +4 -0
- package/fesm2015/ng-atomic-common-models.js.map +1 -0
- package/fesm2015/ng-atomic-common-pipes.js +191 -0
- package/fesm2015/ng-atomic-common-pipes.js.map +1 -0
- package/fesm2015/ng-atomic-common-services.js +80 -0
- package/fesm2015/ng-atomic-common-services.js.map +1 -0
- package/fesm2015/ng-atomic-common-store.js +74 -0
- package/fesm2015/ng-atomic-common-store.js.map +1 -0
- package/fesm2015/ng-atomic-common-utils.js +340 -0
- package/fesm2015/ng-atomic-common-utils.js.map +1 -0
- package/fesm2015/ng-atomic-common.js +4 -0
- package/fesm2015/ng-atomic-common.js.map +1 -0
- package/index.d.ts +1 -0
- package/models/action-item.d.ts +6 -0
- package/models/index.d.ts +1 -0
- package/models/menu-item.d.ts +4 -0
- package/models/ng-atomic-common-models.d.ts +5 -0
- package/models/package.json +10 -0
- package/models/public_api.d.ts +2 -0
- package/ng-atomic-common.d.ts +5 -0
- package/package.json +21 -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/index.d.ts +4 -0
- package/pipes/ng-atomic-common-pipes.d.ts +5 -0
- package/pipes/package.json +10 -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 +7 -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/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/index.d.ts +2 -0
- package/services/loading/index.d.ts +1 -0
- package/services/loading/loading.service.d.ts +14 -0
- package/services/ng-atomic-common-services.d.ts +5 -0
- package/services/package.json +10 -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/store/entities.page.store.d.ts +32 -0
- package/store/entity.page.store.d.ts +28 -0
- package/store/index.d.ts +2 -0
- package/store/ng-atomic-common-store.d.ts +5 -0
- package/store/package.json +10 -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/index.d.ts +5 -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/ng-atomic-common-utils.d.ts +5 -0
- package/utils/package.json +10 -0
- package/utils/query/index.d.ts +1 -0
- package/utils/query/query.resolver.d.ts +1 -0
- package/utils/to-object/index.d.ts +1 -0
- package/utils/to-object/to-object.d.ts +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../bundles/ng-atomic-common-services.umd.js",
|
|
3
|
+
"module": "../fesm2015/ng-atomic-common-services.js",
|
|
4
|
+
"es2015": "../fesm2015/ng-atomic-common-services.js",
|
|
5
|
+
"esm2015": "../esm2015/services/ng-atomic-common-services.js",
|
|
6
|
+
"fesm2015": "../fesm2015/ng-atomic-common-services.js",
|
|
7
|
+
"typings": "ng-atomic-common-services.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@ng-atomic/common/services"
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/material/snack-bar";
|
|
4
|
+
export declare class SnackBarModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDef<SnackBarModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<SnackBarModule, never, [typeof i1.CommonModule, typeof i2.MatSnackBarModule], never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDef<SnackBarModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SnackBarService {
|
|
4
|
+
private snackBar;
|
|
5
|
+
constructor(snackBar: MatSnackBar);
|
|
6
|
+
openSnackBar(message: string, action?: string): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDef<SnackBarService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDef<SnackBarService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
2
|
+
import { LoadingService } from '@ng-atomic/common/services';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare type Page = any;
|
|
5
|
+
export interface EntitiesPageState<E> {
|
|
6
|
+
userId: string;
|
|
7
|
+
idSet: Set<string>;
|
|
8
|
+
query: string;
|
|
9
|
+
entities: E[];
|
|
10
|
+
page: Page;
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class EntitiesPageStore<S extends EntitiesPageState<E>, E extends {
|
|
13
|
+
id: string;
|
|
14
|
+
}> extends ComponentStore<S> {
|
|
15
|
+
abstract LANG_MAP: Record<string, string>;
|
|
16
|
+
get page(): Page;
|
|
17
|
+
get idSet(): Set<string>;
|
|
18
|
+
userId$: Observable<string>;
|
|
19
|
+
entities$: Observable<E[]>;
|
|
20
|
+
constructor(initialState: S);
|
|
21
|
+
setUserId: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
22
|
+
setEntities: (observableOrValue: E[] | Observable<E[]>) => import("rxjs").Subscription;
|
|
23
|
+
setPage: (() => void) | ((observableOrValue: any) => import("rxjs").Subscription);
|
|
24
|
+
setIdSet: (observableOrValue: Set<string> | Observable<Set<string>>) => import("rxjs").Subscription;
|
|
25
|
+
addId: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
26
|
+
removeId: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
27
|
+
setQuery: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
28
|
+
getPage: (observableOrValue: E[] | Observable<E[]>) => import("rxjs").Subscription;
|
|
29
|
+
getEntities: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
30
|
+
abstract _getEntities(): Observable<E[]>;
|
|
31
|
+
abstract loading: LoadingService;
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
2
|
+
import { LoadingService, SnackBarService } from '@ng-atomic/common/services';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare type Mode = 'create' | 'update';
|
|
5
|
+
export interface EntityPageState<Entity> {
|
|
6
|
+
mode: Mode;
|
|
7
|
+
entityId: string;
|
|
8
|
+
entity: Entity;
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class EntityPageStore<S extends EntityPageState<Entity>, Entity> extends ComponentStore<S> {
|
|
11
|
+
get entity(): Entity;
|
|
12
|
+
mode$: Observable<Mode>;
|
|
13
|
+
entityId$: Observable<string>;
|
|
14
|
+
entity$: Observable<Entity>;
|
|
15
|
+
setMode: (observableOrValue: "create" | "update" | Observable<Mode>) => import("rxjs").Subscription;
|
|
16
|
+
setEntityId: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
17
|
+
setEntity: Entity extends void ? () => void : (observableOrValue: Entity | Observable<Entity>) => import("rxjs").Subscription;
|
|
18
|
+
constructor(initialState?: S);
|
|
19
|
+
getEntityIdAndMode: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
20
|
+
getEntity: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
21
|
+
createEntity(value: Partial<Entity>): Promise<unknown>;
|
|
22
|
+
updateEntity(value: Partial<Entity>): Promise<void>;
|
|
23
|
+
abstract _getEntity(id: string): Observable<Entity>;
|
|
24
|
+
abstract _createEntity(entity: Entity): Promise<Entity>;
|
|
25
|
+
abstract _updateEntity(entity: Entity): Promise<void>;
|
|
26
|
+
abstract get loading(): LoadingService;
|
|
27
|
+
abstract get snackBar(): SnackBarService;
|
|
28
|
+
}
|
package/store/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../bundles/ng-atomic-common-store.umd.js",
|
|
3
|
+
"module": "../fesm2015/ng-atomic-common-store.js",
|
|
4
|
+
"es2015": "../fesm2015/ng-atomic-common-store.js",
|
|
5
|
+
"esm2015": "../esm2015/store/ng-atomic-common-store.js",
|
|
6
|
+
"fesm2015": "../fesm2015/ng-atomic-common-store.js",
|
|
7
|
+
"typings": "ng-atomic-common-store.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@ng-atomic/common/store"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './comma';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './compare-by-id';
|
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.ɵɵFactoryDef<DayjsDateModule, never>;
|
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<DayjsDateModule, never, never, never>;
|
|
5
|
+
static ɵinj: i0.ɵɵInjectorDef<DayjsDateModule>;
|
|
6
|
+
}
|
|
7
|
+
export declare class MatDayjsDateModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDef<MatDayjsDateModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MatDayjsDateModule, never, [typeof DayjsDateModule], never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDef<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<string>;
|
|
6
|
+
useValue: string;
|
|
7
|
+
} | {
|
|
8
|
+
provide: import("@angular/core").InjectionToken<MatDateFormats>;
|
|
9
|
+
useValue: MatDateFormats;
|
|
10
|
+
})[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../bundles/ng-atomic-common-utils.umd.js",
|
|
3
|
+
"module": "../fesm2015/ng-atomic-common-utils.js",
|
|
4
|
+
"es2015": "../fesm2015/ng-atomic-common-utils.js",
|
|
5
|
+
"esm2015": "../esm2015/utils/ng-atomic-common-utils.js",
|
|
6
|
+
"fesm2015": "../fesm2015/ng-atomic-common-utils.js",
|
|
7
|
+
"typings": "ng-atomic-common-utils.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@ng-atomic/common/utils"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './query.resolver';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const filterByQuery: <T>(items: T[], queryString: string, dlm?: Record<string, string>) => T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './to-object';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toObject: (obj: object) => object;
|