@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.
Files changed (206) hide show
  1. package/README.md +7 -0
  2. package/bundles/ng-atomic-common-directives.umd.js +95 -0
  3. package/bundles/ng-atomic-common-directives.umd.js.map +1 -0
  4. package/bundles/ng-atomic-common-directives.umd.min.js +2 -0
  5. package/bundles/ng-atomic-common-directives.umd.min.js.map +1 -0
  6. package/bundles/ng-atomic-common-models.umd.js +11 -0
  7. package/bundles/ng-atomic-common-models.umd.js.map +1 -0
  8. package/bundles/ng-atomic-common-models.umd.min.js +2 -0
  9. package/bundles/ng-atomic-common-models.umd.min.js.map +1 -0
  10. package/bundles/ng-atomic-common-pipes.umd.js +266 -0
  11. package/bundles/ng-atomic-common-pipes.umd.js.map +1 -0
  12. package/bundles/ng-atomic-common-pipes.umd.min.js +2 -0
  13. package/bundles/ng-atomic-common-pipes.umd.min.js.map +1 -0
  14. package/bundles/ng-atomic-common-services.umd.js +429 -0
  15. package/bundles/ng-atomic-common-services.umd.js.map +1 -0
  16. package/bundles/ng-atomic-common-services.umd.min.js +16 -0
  17. package/bundles/ng-atomic-common-services.umd.min.js.map +1 -0
  18. package/bundles/ng-atomic-common-store.umd.js +435 -0
  19. package/bundles/ng-atomic-common-store.umd.js.map +1 -0
  20. package/bundles/ng-atomic-common-store.umd.min.js +16 -0
  21. package/bundles/ng-atomic-common-store.umd.min.js.map +1 -0
  22. package/bundles/ng-atomic-common-utils.umd.js +727 -0
  23. package/bundles/ng-atomic-common-utils.umd.js.map +1 -0
  24. package/bundles/ng-atomic-common-utils.umd.min.js +2 -0
  25. package/bundles/ng-atomic-common-utils.umd.min.js.map +1 -0
  26. package/bundles/ng-atomic-common.umd.js +11 -0
  27. package/bundles/ng-atomic-common.umd.js.map +1 -0
  28. package/bundles/ng-atomic-common.umd.min.js +2 -0
  29. package/bundles/ng-atomic-common.umd.min.js.map +1 -0
  30. package/directives/index.d.ts +1 -0
  31. package/directives/ios-safari-scroll-buggyfill/index.d.ts +2 -0
  32. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +10 -0
  33. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +8 -0
  34. package/directives/ng-atomic-common-directives.d.ts +5 -0
  35. package/directives/package.json +10 -0
  36. package/esm2015/directives/index.js +2 -0
  37. package/esm2015/directives/index.js.map +1 -0
  38. package/esm2015/directives/ios-safari-scroll-buggyfill/index.js +3 -0
  39. package/esm2015/directives/ios-safari-scroll-buggyfill/index.js.map +1 -0
  40. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js +27 -0
  41. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js.map +1 -0
  42. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js +27 -0
  43. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js.map +1 -0
  44. package/esm2015/directives/ng-atomic-common-directives.js +5 -0
  45. package/esm2015/directives/ng-atomic-common-directives.js.map +1 -0
  46. package/esm2015/index.js +2 -0
  47. package/esm2015/index.js.map +1 -0
  48. package/esm2015/models/action-item.js +2 -0
  49. package/esm2015/models/action-item.js.map +1 -0
  50. package/esm2015/models/index.js +2 -0
  51. package/esm2015/models/index.js.map +1 -0
  52. package/esm2015/models/menu-item.js +2 -0
  53. package/esm2015/models/menu-item.js.map +1 -0
  54. package/esm2015/models/ng-atomic-common-models.js +5 -0
  55. package/esm2015/models/ng-atomic-common-models.js.map +1 -0
  56. package/esm2015/models/public_api.js +3 -0
  57. package/esm2015/models/public_api.js.map +1 -0
  58. package/esm2015/ng-atomic-common.js +5 -0
  59. package/esm2015/ng-atomic-common.js.map +1 -0
  60. package/esm2015/pipes/domain/domain.module.js +27 -0
  61. package/esm2015/pipes/domain/domain.module.js.map +1 -0
  62. package/esm2015/pipes/domain/domain.pipe.js +29 -0
  63. package/esm2015/pipes/domain/domain.pipe.js.map +1 -0
  64. package/esm2015/pipes/domain/index.js +3 -0
  65. package/esm2015/pipes/domain/index.js.map +1 -0
  66. package/esm2015/pipes/index.js +5 -0
  67. package/esm2015/pipes/index.js.map +1 -0
  68. package/esm2015/pipes/ng-atomic-common-pipes.js +5 -0
  69. package/esm2015/pipes/ng-atomic-common-pipes.js.map +1 -0
  70. package/esm2015/pipes/smart-exp/index.js +3 -0
  71. package/esm2015/pipes/smart-exp/index.js.map +1 -0
  72. package/esm2015/pipes/smart-exp/smart-exp.module.js +17 -0
  73. package/esm2015/pipes/smart-exp/smart-exp.module.js.map +1 -0
  74. package/esm2015/pipes/smart-exp/smart-exp.pipe.js +28 -0
  75. package/esm2015/pipes/smart-exp/smart-exp.pipe.js.map +1 -0
  76. package/esm2015/pipes/smart-field/index.js +3 -0
  77. package/esm2015/pipes/smart-field/index.js.map +1 -0
  78. package/esm2015/pipes/smart-field/smart-field.module.js +27 -0
  79. package/esm2015/pipes/smart-field/smart-field.module.js.map +1 -0
  80. package/esm2015/pipes/smart-field/smart-field.pipe.js +33 -0
  81. package/esm2015/pipes/smart-field/smart-field.pipe.js.map +1 -0
  82. package/esm2015/pipes/yen/index.js +3 -0
  83. package/esm2015/pipes/yen/index.js.map +1 -0
  84. package/esm2015/pipes/yen/yen.module.js +27 -0
  85. package/esm2015/pipes/yen/yen.module.js.map +1 -0
  86. package/esm2015/pipes/yen/yen.pipe.js +17 -0
  87. package/esm2015/pipes/yen/yen.pipe.js.map +1 -0
  88. package/esm2015/services/index.js +3 -0
  89. package/esm2015/services/index.js.map +1 -0
  90. package/esm2015/services/loading/index.js +2 -0
  91. package/esm2015/services/loading/index.js.map +1 -0
  92. package/esm2015/services/loading/loading.service.js +32 -0
  93. package/esm2015/services/loading/loading.service.js.map +1 -0
  94. package/esm2015/services/ng-atomic-common-services.js +5 -0
  95. package/esm2015/services/ng-atomic-common-services.js.map +1 -0
  96. package/esm2015/services/snack-bar/index.js +3 -0
  97. package/esm2015/services/snack-bar/index.js.map +1 -0
  98. package/esm2015/services/snack-bar/snack-bar.module.js +25 -0
  99. package/esm2015/services/snack-bar/snack-bar.module.js.map +1 -0
  100. package/esm2015/services/snack-bar/snack-bar.service.js +23 -0
  101. package/esm2015/services/snack-bar/snack-bar.service.js.map +1 -0
  102. package/esm2015/store/entities.page.store.js +30 -0
  103. package/esm2015/store/entities.page.store.js.map +1 -0
  104. package/esm2015/store/entity.page.store.js +41 -0
  105. package/esm2015/store/entity.page.store.js.map +1 -0
  106. package/esm2015/store/index.js +3 -0
  107. package/esm2015/store/index.js.map +1 -0
  108. package/esm2015/store/ng-atomic-common-store.js +5 -0
  109. package/esm2015/store/ng-atomic-common-store.js.map +1 -0
  110. package/esm2015/utils/comma/comma.js +4 -0
  111. package/esm2015/utils/comma/comma.js.map +1 -0
  112. package/esm2015/utils/comma/index.js +2 -0
  113. package/esm2015/utils/comma/index.js.map +1 -0
  114. package/esm2015/utils/compare-by-id/compare-by-id.js +2 -0
  115. package/esm2015/utils/compare-by-id/compare-by-id.js.map +1 -0
  116. package/esm2015/utils/compare-by-id/index.js +2 -0
  117. package/esm2015/utils/compare-by-id/index.js.map +1 -0
  118. package/esm2015/utils/index.js +6 -0
  119. package/esm2015/utils/index.js.map +1 -0
  120. package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js +189 -0
  121. package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js.map +1 -0
  122. package/esm2015/utils/mat-dayjs-date/dayjs-date.formats.js +15 -0
  123. package/esm2015/utils/mat-dayjs-date/dayjs-date.formats.js.map +1 -0
  124. package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js +42 -0
  125. package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js.map +1 -0
  126. package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js +20 -0
  127. package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js.map +1 -0
  128. package/esm2015/utils/mat-dayjs-date/index.js +5 -0
  129. package/esm2015/utils/mat-dayjs-date/index.js.map +1 -0
  130. package/esm2015/utils/ng-atomic-common-utils.js +5 -0
  131. package/esm2015/utils/ng-atomic-common-utils.js.map +1 -0
  132. package/esm2015/utils/query/index.js +2 -0
  133. package/esm2015/utils/query/index.js.map +1 -0
  134. package/esm2015/utils/query/query.resolver.js +59 -0
  135. package/esm2015/utils/query/query.resolver.js.map +1 -0
  136. package/esm2015/utils/to-object/index.js +2 -0
  137. package/esm2015/utils/to-object/index.js.map +1 -0
  138. package/esm2015/utils/to-object/to-object.js +10 -0
  139. package/esm2015/utils/to-object/to-object.js.map +1 -0
  140. package/fesm2015/ng-atomic-common-directives.js +58 -0
  141. package/fesm2015/ng-atomic-common-directives.js.map +1 -0
  142. package/fesm2015/ng-atomic-common-models.js +4 -0
  143. package/fesm2015/ng-atomic-common-models.js.map +1 -0
  144. package/fesm2015/ng-atomic-common-pipes.js +191 -0
  145. package/fesm2015/ng-atomic-common-pipes.js.map +1 -0
  146. package/fesm2015/ng-atomic-common-services.js +80 -0
  147. package/fesm2015/ng-atomic-common-services.js.map +1 -0
  148. package/fesm2015/ng-atomic-common-store.js +74 -0
  149. package/fesm2015/ng-atomic-common-store.js.map +1 -0
  150. package/fesm2015/ng-atomic-common-utils.js +340 -0
  151. package/fesm2015/ng-atomic-common-utils.js.map +1 -0
  152. package/fesm2015/ng-atomic-common.js +4 -0
  153. package/fesm2015/ng-atomic-common.js.map +1 -0
  154. package/index.d.ts +1 -0
  155. package/models/action-item.d.ts +6 -0
  156. package/models/index.d.ts +1 -0
  157. package/models/menu-item.d.ts +4 -0
  158. package/models/ng-atomic-common-models.d.ts +5 -0
  159. package/models/package.json +10 -0
  160. package/models/public_api.d.ts +2 -0
  161. package/ng-atomic-common.d.ts +5 -0
  162. package/package.json +21 -0
  163. package/pipes/domain/domain.module.d.ts +8 -0
  164. package/pipes/domain/domain.pipe.d.ts +11 -0
  165. package/pipes/domain/index.d.ts +2 -0
  166. package/pipes/index.d.ts +4 -0
  167. package/pipes/ng-atomic-common-pipes.d.ts +5 -0
  168. package/pipes/package.json +10 -0
  169. package/pipes/smart-exp/index.d.ts +2 -0
  170. package/pipes/smart-exp/smart-exp.module.d.ts +7 -0
  171. package/pipes/smart-exp/smart-exp.pipe.d.ts +7 -0
  172. package/pipes/smart-field/index.d.ts +2 -0
  173. package/pipes/smart-field/smart-field.module.d.ts +8 -0
  174. package/pipes/smart-field/smart-field.pipe.d.ts +31 -0
  175. package/pipes/yen/index.d.ts +2 -0
  176. package/pipes/yen/yen.module.d.ts +8 -0
  177. package/pipes/yen/yen.pipe.d.ts +7 -0
  178. package/services/index.d.ts +2 -0
  179. package/services/loading/index.d.ts +1 -0
  180. package/services/loading/loading.service.d.ts +14 -0
  181. package/services/ng-atomic-common-services.d.ts +5 -0
  182. package/services/package.json +10 -0
  183. package/services/snack-bar/index.d.ts +2 -0
  184. package/services/snack-bar/snack-bar.module.d.ts +8 -0
  185. package/services/snack-bar/snack-bar.service.d.ts +9 -0
  186. package/store/entities.page.store.d.ts +32 -0
  187. package/store/entity.page.store.d.ts +28 -0
  188. package/store/index.d.ts +2 -0
  189. package/store/ng-atomic-common-store.d.ts +5 -0
  190. package/store/package.json +10 -0
  191. package/utils/comma/comma.d.ts +3 -0
  192. package/utils/comma/index.d.ts +1 -0
  193. package/utils/compare-by-id/compare-by-id.d.ts +4 -0
  194. package/utils/compare-by-id/index.d.ts +1 -0
  195. package/utils/index.d.ts +5 -0
  196. package/utils/mat-dayjs-date/dayjs-date.adapter.d.ts +60 -0
  197. package/utils/mat-dayjs-date/dayjs-date.formats.d.ts +5 -0
  198. package/utils/mat-dayjs-date/dayjs-date.module.d.ts +11 -0
  199. package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts +10 -0
  200. package/utils/mat-dayjs-date/index.d.ts +4 -0
  201. package/utils/ng-atomic-common-utils.d.ts +5 -0
  202. package/utils/package.json +10 -0
  203. package/utils/query/index.d.ts +1 -0
  204. package/utils/query/query.resolver.d.ts +1 -0
  205. package/utils/to-object/index.d.ts +1 -0
  206. 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,2 @@
1
+ export * from './snack-bar.service';
2
+ export * from './snack-bar.module';
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './entity.page.store';
2
+ export * from './entities.page.store';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@ng-atomic/common/store" />
5
+ export * from './index';
@@ -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,3 @@
1
+ export declare const comma: (n: number | null) => string;
2
+ export declare const commaStr: (n: number, unit?: string) => string;
3
+ export declare const abs: (n: number) => number;
@@ -0,0 +1 @@
1
+ export * from './comma';
@@ -0,0 +1,4 @@
1
+ export declare type HasId = {
2
+ id: string;
3
+ };
4
+ export declare const compareById: (a: HasId, b: HasId) => number;
@@ -0,0 +1 @@
1
+ export * from './compare-by-id';
@@ -0,0 +1,5 @@
1
+ export * from './comma';
2
+ export * from './compare-by-id';
3
+ export * from './mat-dayjs-date';
4
+ export * from './to-object';
5
+ export * from './query';
@@ -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,5 @@
1
+ import { MatDateFormats } from '@angular/material/core';
2
+ /**
3
+ * Custom Date-Formats and Adapter (using https://github.com/iamkun/dayjs)
4
+ */
5
+ export declare const MAT_DAYJS_DATE_FORMATS: MatDateFormats;
@@ -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,4 @@
1
+ export * from './dayjs-date.adapter';
2
+ export * from './dayjs-date.formats';
3
+ export * from './dayjs-jp-providers';
4
+ export * from './dayjs-date.module';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@ng-atomic/common/utils" />
5
+ export * from './index';
@@ -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;