@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.
Files changed (264) hide show
  1. package/directives/ios-safari-scroll-buggyfill/index.d.ts +2 -0
  2. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +8 -0
  3. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +8 -0
  4. package/esm2020/directives/ios-safari-scroll-buggyfill/index.mjs +3 -0
  5. package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.mjs +24 -0
  6. package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.mjs +24 -0
  7. package/esm2020/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +5 -0
  8. package/esm2020/index.mjs +2 -0
  9. package/esm2020/models/action-item.mjs +2 -0
  10. package/esm2020/models/action.mjs +2 -0
  11. package/esm2020/models/index.mjs +2 -0
  12. package/esm2020/models/menu-item.mjs +2 -0
  13. package/esm2020/models/ng-atomic-common-models.mjs +5 -0
  14. package/esm2020/models/public_api.mjs +4 -0
  15. package/esm2020/ng-atomic-common.mjs +5 -0
  16. package/esm2020/pipes/data-accessor/data-accessor.pipe.mjs +30 -0
  17. package/esm2020/pipes/data-accessor/index.mjs +2 -0
  18. package/esm2020/pipes/data-accessor/ng-atomic-common-pipes-data-accessor.mjs +5 -0
  19. package/esm2020/pipes/domain/domain.module.mjs +24 -0
  20. package/esm2020/pipes/domain/domain.pipe.mjs +27 -0
  21. package/esm2020/pipes/domain/index.mjs +3 -0
  22. package/esm2020/pipes/domain/ng-atomic-common-pipes-domain.mjs +5 -0
  23. package/esm2020/pipes/pagination/index.mjs +4 -0
  24. package/esm2020/pipes/pagination/ng-atomic-common-pipes-pagination.mjs +5 -0
  25. package/esm2020/pipes/pagination/pagination.module.mjs +24 -0
  26. package/esm2020/pipes/pagination/pagination.pipe.mjs +28 -0
  27. package/esm2020/pipes/pagination/pagination.transformer.mjs +5 -0
  28. package/esm2020/pipes/smart-exp/index.mjs +3 -0
  29. package/esm2020/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.mjs +5 -0
  30. package/esm2020/pipes/smart-exp/smart-exp.module.mjs +16 -0
  31. package/esm2020/pipes/smart-exp/smart-exp.pipe.mjs +27 -0
  32. package/esm2020/pipes/smart-field/index.mjs +3 -0
  33. package/esm2020/pipes/smart-field/ng-atomic-common-pipes-smart-field.mjs +5 -0
  34. package/esm2020/pipes/smart-field/smart-field.module.mjs +24 -0
  35. package/esm2020/pipes/smart-field/smart-field.pipe.mjs +31 -0
  36. package/esm2020/pipes/smart-sort-by/index.mjs +4 -0
  37. package/esm2020/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.mjs +5 -0
  38. package/esm2020/pipes/smart-sort-by/smart-sort-by.module.mjs +24 -0
  39. package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +28 -0
  40. package/esm2020/pipes/smart-sort-by/smart-sort-by.transformer.mjs +5 -0
  41. package/esm2020/pipes/yen/index.mjs +3 -0
  42. package/esm2020/pipes/yen/ng-atomic-common-pipes-yen.mjs +5 -0
  43. package/esm2020/pipes/yen/yen.module.mjs +24 -0
  44. package/esm2020/pipes/yen/yen.pipe.mjs +17 -0
  45. package/esm2020/services/chips-manager/chips.manager.mjs +29 -0
  46. package/esm2020/services/chips-manager/index.mjs +2 -0
  47. package/esm2020/services/chips-manager/ng-atomic-common-services-chips-manager.mjs +5 -0
  48. package/esm2020/services/form/form.service.mjs +38 -0
  49. package/esm2020/services/form/index.mjs +2 -0
  50. package/esm2020/services/form/ng-atomic-common-services-form.mjs +5 -0
  51. package/esm2020/services/loading/index.mjs +2 -0
  52. package/esm2020/services/loading/loading.service.mjs +39 -0
  53. package/esm2020/services/loading/ng-atomic-common-services-loading.mjs +5 -0
  54. package/esm2020/services/query-resolver/index.mjs +2 -0
  55. package/esm2020/services/query-resolver/ng-atomic-common-services-query-resolver.mjs +5 -0
  56. package/esm2020/services/query-resolver/query-resolver.service.mjs +26 -0
  57. package/esm2020/services/snack-bar/index.mjs +3 -0
  58. package/esm2020/services/snack-bar/ng-atomic-common-services-snack-bar.mjs +5 -0
  59. package/esm2020/services/snack-bar/snack-bar.module.mjs +22 -0
  60. package/esm2020/services/snack-bar/snack-bar.service.mjs +23 -0
  61. package/esm2020/stores/entities/entities.store.mjs +21 -0
  62. package/esm2020/stores/entities/index.mjs +2 -0
  63. package/esm2020/stores/entities/ng-atomic-common-stores-entities.mjs +5 -0
  64. package/esm2020/stores/entity/entity.store.mjs +34 -0
  65. package/esm2020/stores/entity/index.mjs +2 -0
  66. package/esm2020/stores/entity/ng-atomic-common-stores-entity.mjs +5 -0
  67. package/esm2020/stores/pagination/index.mjs +2 -0
  68. package/esm2020/stores/pagination/ng-atomic-common-stores-pagination.mjs +5 -0
  69. package/esm2020/stores/pagination/pagination.store.mjs +23 -0
  70. package/esm2020/stores/query/index.mjs +2 -0
  71. package/esm2020/stores/query/ng-atomic-common-stores-query.mjs +5 -0
  72. package/esm2020/stores/query/query.store.mjs +31 -0
  73. package/esm2020/stores/selection/index.mjs +2 -0
  74. package/esm2020/stores/selection/ng-atomic-common-stores-selection.mjs +5 -0
  75. package/esm2020/stores/selection/selection.store.mjs +29 -0
  76. package/esm2020/stores/sort/index.mjs +2 -0
  77. package/esm2020/stores/sort/ng-atomic-common-stores-sort.mjs +5 -0
  78. package/esm2020/stores/sort/sort.store.mjs +28 -0
  79. package/esm2020/utils/comma/comma.mjs +4 -0
  80. package/esm2020/utils/comma/index.mjs +2 -0
  81. package/esm2020/utils/compare-by-id/compare-by-id.mjs +2 -0
  82. package/esm2020/utils/compare-by-id/index.mjs +2 -0
  83. package/esm2020/utils/date-utils/date-utils.mjs +13 -0
  84. package/esm2020/utils/date-utils/index.mjs +2 -0
  85. package/esm2020/utils/index.mjs +9 -0
  86. package/esm2020/utils/mat-dayjs-date/dayjs-date.adapter.mjs +191 -0
  87. package/esm2020/utils/mat-dayjs-date/dayjs-date.formats.mjs +15 -0
  88. package/esm2020/utils/mat-dayjs-date/dayjs-date.module.mjs +41 -0
  89. package/esm2020/utils/mat-dayjs-date/dayjs-jp-providers.mjs +20 -0
  90. package/esm2020/utils/mat-dayjs-date/index.mjs +5 -0
  91. package/esm2020/utils/ng-atomic-common-utils.mjs +5 -0
  92. package/esm2020/utils/page/index.mjs +2 -0
  93. package/esm2020/utils/page/ng-atomic-common-utils-page.mjs +5 -0
  94. package/esm2020/utils/page/page.mjs +20 -0
  95. package/esm2020/utils/query/index.mjs +2 -0
  96. package/esm2020/utils/query/query.resolver.mjs +97 -0
  97. package/esm2020/utils/smart-exp-transformer/index.mjs +2 -0
  98. package/esm2020/utils/smart-exp-transformer/smart-exp-transformer.mjs +18 -0
  99. package/esm2020/utils/to-object/index.mjs +2 -0
  100. package/esm2020/utils/to-object/to-object.mjs +10 -0
  101. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +52 -0
  102. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
  103. package/fesm2015/ng-atomic-common-models.mjs +4 -0
  104. package/fesm2015/ng-atomic-common-models.mjs.map +1 -0
  105. package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs +40 -0
  106. package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs.map +1 -0
  107. package/fesm2015/ng-atomic-common-pipes-domain.mjs +59 -0
  108. package/fesm2015/ng-atomic-common-pipes-domain.mjs.map +1 -0
  109. package/fesm2015/ng-atomic-common-pipes-pagination.mjs +63 -0
  110. package/fesm2015/ng-atomic-common-pipes-pagination.mjs.map +1 -0
  111. package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs +50 -0
  112. package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs.map +1 -0
  113. package/fesm2015/ng-atomic-common-pipes-smart-field.mjs +63 -0
  114. package/fesm2015/ng-atomic-common-pipes-smart-field.mjs.map +1 -0
  115. package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs +63 -0
  116. package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -0
  117. package/fesm2015/ng-atomic-common-pipes-yen.mjs +45 -0
  118. package/fesm2015/ng-atomic-common-pipes-yen.mjs.map +1 -0
  119. package/fesm2015/ng-atomic-common-services-chips-manager.mjs +36 -0
  120. package/fesm2015/ng-atomic-common-services-chips-manager.mjs.map +1 -0
  121. package/fesm2015/ng-atomic-common-services-form.mjs +42 -0
  122. package/fesm2015/ng-atomic-common-services-form.mjs.map +1 -0
  123. package/fesm2015/ng-atomic-common-services-loading.mjs +46 -0
  124. package/fesm2015/ng-atomic-common-services-loading.mjs.map +1 -0
  125. package/fesm2015/ng-atomic-common-services-query-resolver.mjs +36 -0
  126. package/fesm2015/ng-atomic-common-services-query-resolver.mjs.map +1 -0
  127. package/fesm2015/ng-atomic-common-services-snack-bar.mjs +49 -0
  128. package/fesm2015/ng-atomic-common-services-snack-bar.mjs.map +1 -0
  129. package/fesm2015/ng-atomic-common-stores-entities.mjs +28 -0
  130. package/fesm2015/ng-atomic-common-stores-entities.mjs.map +1 -0
  131. package/fesm2015/ng-atomic-common-stores-entity.mjs +42 -0
  132. package/fesm2015/ng-atomic-common-stores-entity.mjs.map +1 -0
  133. package/fesm2015/ng-atomic-common-stores-pagination.mjs +30 -0
  134. package/fesm2015/ng-atomic-common-stores-pagination.mjs.map +1 -0
  135. package/fesm2015/ng-atomic-common-stores-query.mjs +40 -0
  136. package/fesm2015/ng-atomic-common-stores-query.mjs.map +1 -0
  137. package/fesm2015/ng-atomic-common-stores-selection.mjs +36 -0
  138. package/fesm2015/ng-atomic-common-stores-selection.mjs.map +1 -0
  139. package/fesm2015/ng-atomic-common-stores-sort.mjs +35 -0
  140. package/fesm2015/ng-atomic-common-stores-sort.mjs.map +1 -0
  141. package/fesm2015/ng-atomic-common-utils-page.mjs +21 -0
  142. package/fesm2015/ng-atomic-common-utils-page.mjs.map +1 -0
  143. package/fesm2015/ng-atomic-common-utils.mjs +409 -0
  144. package/fesm2015/ng-atomic-common-utils.mjs.map +1 -0
  145. package/fesm2015/ng-atomic-common.mjs +4 -0
  146. package/fesm2015/ng-atomic-common.mjs.map +1 -0
  147. package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +52 -0
  148. package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
  149. package/fesm2020/ng-atomic-common-models.mjs +4 -0
  150. package/fesm2020/ng-atomic-common-models.mjs.map +1 -0
  151. package/fesm2020/ng-atomic-common-pipes-data-accessor.mjs +37 -0
  152. package/fesm2020/ng-atomic-common-pipes-data-accessor.mjs.map +1 -0
  153. package/fesm2020/ng-atomic-common-pipes-domain.mjs +55 -0
  154. package/fesm2020/ng-atomic-common-pipes-domain.mjs.map +1 -0
  155. package/fesm2020/ng-atomic-common-pipes-pagination.mjs +60 -0
  156. package/fesm2020/ng-atomic-common-pipes-pagination.mjs.map +1 -0
  157. package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs +47 -0
  158. package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs.map +1 -0
  159. package/fesm2020/ng-atomic-common-pipes-smart-field.mjs +59 -0
  160. package/fesm2020/ng-atomic-common-pipes-smart-field.mjs.map +1 -0
  161. package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs +60 -0
  162. package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -0
  163. package/fesm2020/ng-atomic-common-pipes-yen.mjs +45 -0
  164. package/fesm2020/ng-atomic-common-pipes-yen.mjs.map +1 -0
  165. package/fesm2020/ng-atomic-common-services-chips-manager.mjs +36 -0
  166. package/fesm2020/ng-atomic-common-services-chips-manager.mjs.map +1 -0
  167. package/fesm2020/ng-atomic-common-services-form.mjs +45 -0
  168. package/fesm2020/ng-atomic-common-services-form.mjs.map +1 -0
  169. package/fesm2020/ng-atomic-common-services-loading.mjs +46 -0
  170. package/fesm2020/ng-atomic-common-services-loading.mjs.map +1 -0
  171. package/fesm2020/ng-atomic-common-services-query-resolver.mjs +33 -0
  172. package/fesm2020/ng-atomic-common-services-query-resolver.mjs.map +1 -0
  173. package/fesm2020/ng-atomic-common-services-snack-bar.mjs +49 -0
  174. package/fesm2020/ng-atomic-common-services-snack-bar.mjs.map +1 -0
  175. package/fesm2020/ng-atomic-common-stores-entities.mjs +28 -0
  176. package/fesm2020/ng-atomic-common-stores-entities.mjs.map +1 -0
  177. package/fesm2020/ng-atomic-common-stores-entity.mjs +41 -0
  178. package/fesm2020/ng-atomic-common-stores-entity.mjs.map +1 -0
  179. package/fesm2020/ng-atomic-common-stores-pagination.mjs +30 -0
  180. package/fesm2020/ng-atomic-common-stores-pagination.mjs.map +1 -0
  181. package/fesm2020/ng-atomic-common-stores-query.mjs +37 -0
  182. package/fesm2020/ng-atomic-common-stores-query.mjs.map +1 -0
  183. package/fesm2020/ng-atomic-common-stores-selection.mjs +36 -0
  184. package/fesm2020/ng-atomic-common-stores-selection.mjs.map +1 -0
  185. package/fesm2020/ng-atomic-common-stores-sort.mjs +35 -0
  186. package/fesm2020/ng-atomic-common-stores-sort.mjs.map +1 -0
  187. package/fesm2020/ng-atomic-common-utils-page.mjs +26 -0
  188. package/fesm2020/ng-atomic-common-utils-page.mjs.map +1 -0
  189. package/fesm2020/ng-atomic-common-utils.mjs +406 -0
  190. package/fesm2020/ng-atomic-common-utils.mjs.map +1 -0
  191. package/fesm2020/ng-atomic-common.mjs +4 -0
  192. package/fesm2020/ng-atomic-common.mjs.map +1 -0
  193. package/index.d.ts +1 -0
  194. package/models/action-item.d.ts +6 -0
  195. package/models/action.d.ts +8 -0
  196. package/models/index.d.ts +1 -0
  197. package/models/menu-item.d.ts +4 -0
  198. package/models/public_api.d.ts +3 -0
  199. package/package.json +210 -0
  200. package/pipes/data-accessor/data-accessor.pipe.d.ts +12 -0
  201. package/pipes/data-accessor/index.d.ts +1 -0
  202. package/pipes/domain/domain.module.d.ts +8 -0
  203. package/pipes/domain/domain.pipe.d.ts +11 -0
  204. package/pipes/domain/index.d.ts +2 -0
  205. package/pipes/pagination/index.d.ts +3 -0
  206. package/pipes/pagination/pagination.module.d.ts +8 -0
  207. package/pipes/pagination/pagination.pipe.d.ts +16 -0
  208. package/pipes/pagination/pagination.transformer.d.ts +9 -0
  209. package/pipes/smart-exp/index.d.ts +2 -0
  210. package/pipes/smart-exp/smart-exp.module.d.ts +7 -0
  211. package/pipes/smart-exp/smart-exp.pipe.d.ts +10 -0
  212. package/pipes/smart-field/index.d.ts +2 -0
  213. package/pipes/smart-field/smart-field.module.d.ts +8 -0
  214. package/pipes/smart-field/smart-field.pipe.d.ts +31 -0
  215. package/pipes/smart-sort-by/index.d.ts +3 -0
  216. package/pipes/smart-sort-by/smart-sort-by.module.d.ts +8 -0
  217. package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts +11 -0
  218. package/pipes/smart-sort-by/smart-sort-by.transformer.d.ts +2 -0
  219. package/pipes/yen/index.d.ts +2 -0
  220. package/pipes/yen/yen.module.d.ts +8 -0
  221. package/pipes/yen/yen.pipe.d.ts +7 -0
  222. package/services/chips-manager/chips.manager.d.ts +11 -0
  223. package/services/chips-manager/index.d.ts +1 -0
  224. package/services/form/form.service.d.ts +7 -0
  225. package/services/form/index.d.ts +1 -0
  226. package/services/loading/index.d.ts +1 -0
  227. package/services/loading/loading.service.d.ts +16 -0
  228. package/services/query-resolver/index.d.ts +1 -0
  229. package/services/query-resolver/query-resolver.service.d.ts +9 -0
  230. package/services/snack-bar/index.d.ts +2 -0
  231. package/services/snack-bar/snack-bar.module.d.ts +8 -0
  232. package/services/snack-bar/snack-bar.service.d.ts +9 -0
  233. package/stores/entities/entities.store.d.ts +17 -0
  234. package/stores/entities/index.d.ts +1 -0
  235. package/stores/entity/entity.store.d.ts +26 -0
  236. package/stores/entity/index.d.ts +1 -0
  237. package/stores/pagination/index.d.ts +1 -0
  238. package/stores/pagination/pagination.store.d.ts +19 -0
  239. package/stores/query/index.d.ts +1 -0
  240. package/stores/query/query.store.d.ts +17 -0
  241. package/stores/selection/index.d.ts +1 -0
  242. package/stores/selection/selection.store.d.ts +23 -0
  243. package/stores/sort/index.d.ts +1 -0
  244. package/stores/sort/sort.store.d.ts +21 -0
  245. package/utils/comma/comma.d.ts +3 -0
  246. package/utils/comma/index.d.ts +1 -0
  247. package/utils/compare-by-id/compare-by-id.d.ts +4 -0
  248. package/utils/compare-by-id/index.d.ts +1 -0
  249. package/utils/date-utils/date-utils.d.ts +10 -0
  250. package/utils/date-utils/index.d.ts +1 -0
  251. package/utils/index.d.ts +7 -0
  252. package/utils/mat-dayjs-date/dayjs-date.adapter.d.ts +60 -0
  253. package/utils/mat-dayjs-date/dayjs-date.formats.d.ts +5 -0
  254. package/utils/mat-dayjs-date/dayjs-date.module.d.ts +11 -0
  255. package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts +10 -0
  256. package/utils/mat-dayjs-date/index.d.ts +4 -0
  257. package/utils/page/index.d.ts +1 -0
  258. package/utils/page/page.d.ts +11 -0
  259. package/utils/query/index.d.ts +1 -0
  260. package/utils/query/query.resolver.d.ts +2 -0
  261. package/utils/smart-exp-transformer/index.d.ts +1 -0
  262. package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +6 -0
  263. package/utils/to-object/index.d.ts +1 -0
  264. 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,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,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';
@@ -0,0 +1,7 @@
1
+ export * from './comma';
2
+ export * from './compare-by-id';
3
+ export * from './date-utils';
4
+ export * from './mat-dayjs-date';
5
+ export * from './smart-exp-transformer';
6
+ export * from './to-object';
7
+ 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.ɵɵ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,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 @@
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,2 @@
1
+ import { SmartExpTransformer } from '../smart-exp-transformer';
2
+ export declare const filterByQuery: <T>(items: T[], queryString: string, dlm?: Record<string, string>, transformer?: SmartExpTransformer) => T[];
@@ -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;