@ng-atomic/common 1.7.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/directives/ios-safari-scroll-buggyfill/package.json +5 -5
  2. package/directives/package.json +5 -5
  3. package/esm2020/directives/index.mjs +2 -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 +26 -0
  7. package/esm2020/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +5 -0
  8. package/esm2020/directives/ng-atomic-common-directives.mjs +5 -0
  9. package/esm2020/index.mjs +2 -0
  10. package/esm2020/models/action-item.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 +3 -0
  15. package/esm2020/ng-atomic-common.mjs +5 -0
  16. package/esm2020/pipes/domain/domain.module.mjs +26 -0
  17. package/esm2020/pipes/domain/domain.pipe.mjs +27 -0
  18. package/esm2020/pipes/domain/index.mjs +3 -0
  19. package/esm2020/pipes/index.mjs +7 -0
  20. package/esm2020/pipes/ng-atomic-common-pipes.mjs +5 -0
  21. package/esm2020/pipes/smart-clamp/index.mjs +3 -0
  22. package/esm2020/pipes/smart-clamp/smart-clamp.module.mjs +26 -0
  23. package/esm2020/pipes/smart-clamp/smart-clamp.pipe.mjs +44 -0
  24. package/esm2020/pipes/smart-exp/index.mjs +3 -0
  25. package/esm2020/pipes/smart-exp/smart-exp.module.mjs +16 -0
  26. package/esm2020/pipes/smart-exp/smart-exp.pipe.mjs +27 -0
  27. package/esm2020/pipes/smart-field/index.mjs +3 -0
  28. package/esm2020/pipes/smart-field/smart-field.module.mjs +26 -0
  29. package/esm2020/pipes/smart-field/smart-field.pipe.mjs +31 -0
  30. package/esm2020/pipes/smart-sort-by/index.mjs +3 -0
  31. package/esm2020/pipes/smart-sort-by/smart-sort-by.module.mjs +26 -0
  32. package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +31 -0
  33. package/esm2020/pipes/yen/index.mjs +3 -0
  34. package/esm2020/pipes/yen/yen.module.mjs +26 -0
  35. package/esm2020/pipes/yen/yen.pipe.mjs +17 -0
  36. package/esm2020/services/form/form.service.mjs +38 -0
  37. package/esm2020/services/form/index.mjs +2 -0
  38. package/esm2020/services/index.mjs +5 -0
  39. package/esm2020/services/loading/index.mjs +2 -0
  40. package/esm2020/services/loading/loading.service.mjs +32 -0
  41. package/esm2020/services/ng-atomic-common-services.mjs +5 -0
  42. package/esm2020/services/query-resolver/index.mjs +2 -0
  43. package/esm2020/services/query-resolver/query-resolver.service.mjs +27 -0
  44. package/esm2020/services/snack-bar/index.mjs +3 -0
  45. package/esm2020/services/snack-bar/snack-bar.module.mjs +24 -0
  46. package/esm2020/services/snack-bar/snack-bar.service.mjs +23 -0
  47. package/esm2020/store/entities.page.store.mjs +44 -0
  48. package/esm2020/store/entity.page.store.mjs +40 -0
  49. package/esm2020/store/index.mjs +3 -0
  50. package/esm2020/store/ng-atomic-common-store.mjs +5 -0
  51. package/esm2020/utils/comma/comma.mjs +4 -0
  52. package/esm2020/utils/comma/index.mjs +2 -0
  53. package/esm2020/utils/compare-by-id/compare-by-id.mjs +2 -0
  54. package/esm2020/utils/compare-by-id/index.mjs +2 -0
  55. package/esm2020/utils/date-utils/date-utils.mjs +13 -0
  56. package/esm2020/utils/date-utils/index.mjs +2 -0
  57. package/esm2020/utils/index.mjs +9 -0
  58. package/esm2020/utils/mat-dayjs-date/dayjs-date.adapter.mjs +191 -0
  59. package/esm2020/utils/mat-dayjs-date/dayjs-date.formats.mjs +15 -0
  60. package/esm2020/utils/mat-dayjs-date/dayjs-date.module.mjs +41 -0
  61. package/esm2020/utils/mat-dayjs-date/dayjs-jp-providers.mjs +20 -0
  62. package/esm2020/utils/mat-dayjs-date/index.mjs +5 -0
  63. package/esm2020/utils/ng-atomic-common-utils.mjs +5 -0
  64. package/esm2020/utils/query/index.mjs +2 -0
  65. package/esm2020/utils/query/query.resolver.mjs +97 -0
  66. package/esm2020/utils/smart-exp-transformer/index.mjs +2 -0
  67. package/esm2020/utils/smart-exp-transformer/smart-exp-transformer.mjs +18 -0
  68. package/esm2020/utils/to-object/index.mjs +2 -0
  69. package/esm2020/utils/to-object/to-object.mjs +10 -0
  70. package/fesm2015/{ng-atomic-common-directives-ios-safari-scroll-buggyfill.js → ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs} +8 -8
  71. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
  72. package/fesm2015/{ng-atomic-common-directives.js → ng-atomic-common-directives.mjs} +8 -8
  73. package/fesm2015/ng-atomic-common-directives.mjs.map +1 -0
  74. package/fesm2015/ng-atomic-common-models.mjs +4 -0
  75. package/fesm2015/ng-atomic-common-models.mjs.map +1 -0
  76. package/fesm2015/ng-atomic-common-pipes.mjs +312 -0
  77. package/fesm2015/ng-atomic-common-pipes.mjs.map +1 -0
  78. package/fesm2015/{ng-atomic-common-services.js → ng-atomic-common-services.mjs} +24 -26
  79. package/fesm2015/ng-atomic-common-services.mjs.map +1 -0
  80. package/fesm2015/{ng-atomic-common-store.js → ng-atomic-common-store.mjs} +1 -1
  81. package/fesm2015/ng-atomic-common-store.mjs.map +1 -0
  82. package/fesm2015/{ng-atomic-common-utils.js → ng-atomic-common-utils.mjs} +9 -9
  83. package/fesm2015/ng-atomic-common-utils.mjs.map +1 -0
  84. package/fesm2015/{ng-atomic-common.js → ng-atomic-common.mjs} +1 -1
  85. package/fesm2015/ng-atomic-common.mjs.map +1 -0
  86. package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +54 -0
  87. package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
  88. package/fesm2020/ng-atomic-common-directives.mjs +54 -0
  89. package/fesm2020/ng-atomic-common-directives.mjs.map +1 -0
  90. package/fesm2020/ng-atomic-common-models.mjs +4 -0
  91. package/fesm2020/ng-atomic-common-models.mjs.map +1 -0
  92. package/{fesm2015/ng-atomic-common-pipes.js → fesm2020/ng-atomic-common-pipes.mjs} +51 -58
  93. package/fesm2020/ng-atomic-common-pipes.mjs.map +1 -0
  94. package/fesm2020/ng-atomic-common-services.mjs +142 -0
  95. package/fesm2020/ng-atomic-common-services.mjs.map +1 -0
  96. package/fesm2020/ng-atomic-common-store.mjs +89 -0
  97. package/fesm2020/ng-atomic-common-store.mjs.map +1 -0
  98. package/fesm2020/ng-atomic-common-utils.mjs +406 -0
  99. package/fesm2020/ng-atomic-common-utils.mjs.map +1 -0
  100. package/fesm2020/ng-atomic-common.mjs +4 -0
  101. package/fesm2020/ng-atomic-common.mjs.map +1 -0
  102. package/models/package.json +5 -5
  103. package/package.json +77 -8
  104. package/pipes/package.json +5 -5
  105. package/services/package.json +5 -5
  106. package/store/package.json +5 -5
  107. package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts +1 -1
  108. package/utils/package.json +5 -5
  109. package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js +0 -87
  110. package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js.map +0 -1
  111. package/bundles/ng-atomic-common-directives.umd.js +0 -87
  112. package/bundles/ng-atomic-common-directives.umd.js.map +0 -1
  113. package/bundles/ng-atomic-common-models.umd.js +0 -11
  114. package/bundles/ng-atomic-common-models.umd.js.map +0 -1
  115. package/bundles/ng-atomic-common-pipes.umd.js +0 -378
  116. package/bundles/ng-atomic-common-pipes.umd.js.map +0 -1
  117. package/bundles/ng-atomic-common-services.umd.js +0 -526
  118. package/bundles/ng-atomic-common-services.umd.js.map +0 -1
  119. package/bundles/ng-atomic-common-store.umd.js +0 -460
  120. package/bundles/ng-atomic-common-store.umd.js.map +0 -1
  121. package/bundles/ng-atomic-common-utils.umd.js +0 -806
  122. package/bundles/ng-atomic-common-utils.umd.js.map +0 -1
  123. package/bundles/ng-atomic-common.umd.js +0 -11
  124. package/bundles/ng-atomic-common.umd.js.map +0 -1
  125. package/esm2015/directives/index.js +0 -2
  126. package/esm2015/directives/index.js.map +0 -1
  127. package/esm2015/directives/ios-safari-scroll-buggyfill/index.js +0 -3
  128. package/esm2015/directives/ios-safari-scroll-buggyfill/index.js.map +0 -1
  129. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js +0 -24
  130. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js.map +0 -1
  131. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js +0 -26
  132. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js.map +0 -1
  133. package/esm2015/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js +0 -5
  134. package/esm2015/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js.map +0 -1
  135. package/esm2015/directives/ng-atomic-common-directives.js +0 -5
  136. package/esm2015/directives/ng-atomic-common-directives.js.map +0 -1
  137. package/esm2015/index.js +0 -2
  138. package/esm2015/index.js.map +0 -1
  139. package/esm2015/models/action-item.js +0 -2
  140. package/esm2015/models/action-item.js.map +0 -1
  141. package/esm2015/models/index.js +0 -2
  142. package/esm2015/models/index.js.map +0 -1
  143. package/esm2015/models/menu-item.js +0 -2
  144. package/esm2015/models/menu-item.js.map +0 -1
  145. package/esm2015/models/ng-atomic-common-models.js +0 -5
  146. package/esm2015/models/ng-atomic-common-models.js.map +0 -1
  147. package/esm2015/models/public_api.js +0 -3
  148. package/esm2015/models/public_api.js.map +0 -1
  149. package/esm2015/ng-atomic-common.js +0 -5
  150. package/esm2015/ng-atomic-common.js.map +0 -1
  151. package/esm2015/pipes/domain/domain.module.js +0 -26
  152. package/esm2015/pipes/domain/domain.module.js.map +0 -1
  153. package/esm2015/pipes/domain/domain.pipe.js +0 -29
  154. package/esm2015/pipes/domain/domain.pipe.js.map +0 -1
  155. package/esm2015/pipes/domain/index.js +0 -3
  156. package/esm2015/pipes/domain/index.js.map +0 -1
  157. package/esm2015/pipes/index.js +0 -7
  158. package/esm2015/pipes/index.js.map +0 -1
  159. package/esm2015/pipes/ng-atomic-common-pipes.js +0 -5
  160. package/esm2015/pipes/ng-atomic-common-pipes.js.map +0 -1
  161. package/esm2015/pipes/smart-clamp/index.js +0 -3
  162. package/esm2015/pipes/smart-clamp/index.js.map +0 -1
  163. package/esm2015/pipes/smart-clamp/smart-clamp.module.js +0 -26
  164. package/esm2015/pipes/smart-clamp/smart-clamp.module.js.map +0 -1
  165. package/esm2015/pipes/smart-clamp/smart-clamp.pipe.js +0 -45
  166. package/esm2015/pipes/smart-clamp/smart-clamp.pipe.js.map +0 -1
  167. package/esm2015/pipes/smart-exp/index.js +0 -3
  168. package/esm2015/pipes/smart-exp/index.js.map +0 -1
  169. package/esm2015/pipes/smart-exp/smart-exp.module.js +0 -16
  170. package/esm2015/pipes/smart-exp/smart-exp.module.js.map +0 -1
  171. package/esm2015/pipes/smart-exp/smart-exp.pipe.js +0 -28
  172. package/esm2015/pipes/smart-exp/smart-exp.pipe.js.map +0 -1
  173. package/esm2015/pipes/smart-field/index.js +0 -3
  174. package/esm2015/pipes/smart-field/index.js.map +0 -1
  175. package/esm2015/pipes/smart-field/smart-field.module.js +0 -26
  176. package/esm2015/pipes/smart-field/smart-field.module.js.map +0 -1
  177. package/esm2015/pipes/smart-field/smart-field.pipe.js +0 -33
  178. package/esm2015/pipes/smart-field/smart-field.pipe.js.map +0 -1
  179. package/esm2015/pipes/smart-sort-by/index.js +0 -3
  180. package/esm2015/pipes/smart-sort-by/index.js.map +0 -1
  181. package/esm2015/pipes/smart-sort-by/smart-sort-by.module.js +0 -26
  182. package/esm2015/pipes/smart-sort-by/smart-sort-by.module.js.map +0 -1
  183. package/esm2015/pipes/smart-sort-by/smart-sort-by.pipe.js +0 -32
  184. package/esm2015/pipes/smart-sort-by/smart-sort-by.pipe.js.map +0 -1
  185. package/esm2015/pipes/yen/index.js +0 -3
  186. package/esm2015/pipes/yen/index.js.map +0 -1
  187. package/esm2015/pipes/yen/yen.module.js +0 -26
  188. package/esm2015/pipes/yen/yen.module.js.map +0 -1
  189. package/esm2015/pipes/yen/yen.pipe.js +0 -17
  190. package/esm2015/pipes/yen/yen.pipe.js.map +0 -1
  191. package/esm2015/services/form/form.service.js +0 -35
  192. package/esm2015/services/form/form.service.js.map +0 -1
  193. package/esm2015/services/form/index.js +0 -2
  194. package/esm2015/services/form/index.js.map +0 -1
  195. package/esm2015/services/index.js +0 -5
  196. package/esm2015/services/index.js.map +0 -1
  197. package/esm2015/services/loading/index.js +0 -2
  198. package/esm2015/services/loading/index.js.map +0 -1
  199. package/esm2015/services/loading/loading.service.js +0 -32
  200. package/esm2015/services/loading/loading.service.js.map +0 -1
  201. package/esm2015/services/ng-atomic-common-services.js +0 -5
  202. package/esm2015/services/ng-atomic-common-services.js.map +0 -1
  203. package/esm2015/services/query-resolver/index.js +0 -2
  204. package/esm2015/services/query-resolver/index.js.map +0 -1
  205. package/esm2015/services/query-resolver/query-resolver.service.js +0 -31
  206. package/esm2015/services/query-resolver/query-resolver.service.js.map +0 -1
  207. package/esm2015/services/snack-bar/index.js +0 -3
  208. package/esm2015/services/snack-bar/index.js.map +0 -1
  209. package/esm2015/services/snack-bar/snack-bar.module.js +0 -24
  210. package/esm2015/services/snack-bar/snack-bar.module.js.map +0 -1
  211. package/esm2015/services/snack-bar/snack-bar.service.js +0 -23
  212. package/esm2015/services/snack-bar/snack-bar.service.js.map +0 -1
  213. package/esm2015/store/entities.page.store.js +0 -44
  214. package/esm2015/store/entities.page.store.js.map +0 -1
  215. package/esm2015/store/entity.page.store.js +0 -41
  216. package/esm2015/store/entity.page.store.js.map +0 -1
  217. package/esm2015/store/index.js +0 -3
  218. package/esm2015/store/index.js.map +0 -1
  219. package/esm2015/store/ng-atomic-common-store.js +0 -5
  220. package/esm2015/store/ng-atomic-common-store.js.map +0 -1
  221. package/esm2015/utils/comma/comma.js +0 -4
  222. package/esm2015/utils/comma/comma.js.map +0 -1
  223. package/esm2015/utils/comma/index.js +0 -2
  224. package/esm2015/utils/comma/index.js.map +0 -1
  225. package/esm2015/utils/compare-by-id/compare-by-id.js +0 -2
  226. package/esm2015/utils/compare-by-id/compare-by-id.js.map +0 -1
  227. package/esm2015/utils/compare-by-id/index.js +0 -2
  228. package/esm2015/utils/compare-by-id/index.js.map +0 -1
  229. package/esm2015/utils/date-utils/date-utils.js +0 -13
  230. package/esm2015/utils/date-utils/date-utils.js.map +0 -1
  231. package/esm2015/utils/date-utils/index.js +0 -2
  232. package/esm2015/utils/date-utils/index.js.map +0 -1
  233. package/esm2015/utils/index.js +0 -9
  234. package/esm2015/utils/index.js.map +0 -1
  235. package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js +0 -191
  236. package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js.map +0 -1
  237. package/esm2015/utils/mat-dayjs-date/dayjs-date.formats.js +0 -15
  238. package/esm2015/utils/mat-dayjs-date/dayjs-date.formats.js.map +0 -1
  239. package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js +0 -41
  240. package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js.map +0 -1
  241. package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js +0 -20
  242. package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js.map +0 -1
  243. package/esm2015/utils/mat-dayjs-date/index.js +0 -5
  244. package/esm2015/utils/mat-dayjs-date/index.js.map +0 -1
  245. package/esm2015/utils/ng-atomic-common-utils.js +0 -5
  246. package/esm2015/utils/ng-atomic-common-utils.js.map +0 -1
  247. package/esm2015/utils/query/index.js +0 -2
  248. package/esm2015/utils/query/index.js.map +0 -1
  249. package/esm2015/utils/query/query.resolver.js +0 -100
  250. package/esm2015/utils/query/query.resolver.js.map +0 -1
  251. package/esm2015/utils/smart-exp-transformer/index.js +0 -2
  252. package/esm2015/utils/smart-exp-transformer/index.js.map +0 -1
  253. package/esm2015/utils/smart-exp-transformer/smart-exp-transformer.js +0 -18
  254. package/esm2015/utils/smart-exp-transformer/smart-exp-transformer.js.map +0 -1
  255. package/esm2015/utils/to-object/index.js +0 -2
  256. package/esm2015/utils/to-object/index.js.map +0 -1
  257. package/esm2015/utils/to-object/to-object.js +0 -10
  258. package/esm2015/utils/to-object/to-object.js.map +0 -1
  259. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js.map +0 -1
  260. package/fesm2015/ng-atomic-common-directives.js.map +0 -1
  261. package/fesm2015/ng-atomic-common-models.js +0 -4
  262. package/fesm2015/ng-atomic-common-models.js.map +0 -1
  263. package/fesm2015/ng-atomic-common-pipes.js.map +0 -1
  264. package/fesm2015/ng-atomic-common-services.js.map +0 -1
  265. package/fesm2015/ng-atomic-common-store.js.map +0 -1
  266. package/fesm2015/ng-atomic-common-utils.js.map +0 -1
  267. package/fesm2015/ng-atomic-common.js.map +0 -1
@@ -2,7 +2,7 @@ import { MatDateFormats } from '@angular/material/core';
2
2
  import 'dayjs/locale/ja';
3
3
  export declare const MAT_DAYJS_DATE_FORMATS_FOR_JP: MatDateFormats;
4
4
  export declare const MAT_DAYJS_JP_PROVIDERS: ({
5
- provide: import("@angular/core").InjectionToken<string>;
5
+ provide: import("@angular/core").InjectionToken<{}>;
6
6
  useValue: string;
7
7
  } | {
8
8
  provide: import("@angular/core").InjectionToken<MatDateFormats>;
@@ -1,9 +1,9 @@
1
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",
2
+ "module": "../fesm2015/ng-atomic-common-utils.mjs",
3
+ "es2020": "../fesm2020/ng-atomic-common-utils.mjs",
4
+ "esm2020": "../esm2020/utils/ng-atomic-common-utils.mjs",
5
+ "fesm2020": "../fesm2020/ng-atomic-common-utils.mjs",
6
+ "fesm2015": "../fesm2015/ng-atomic-common-utils.mjs",
7
7
  "typings": "ng-atomic-common-utils.d.ts",
8
8
  "sideEffects": false,
9
9
  "name": "@ng-atomic/common/utils"
@@ -1,87 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('@ng-atomic/common/directives/ios-safari-scroll-buggyfill', ['exports', '@angular/core', '@angular/common'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-atomic"] = global["ng-atomic"] || {}, global["ng-atomic"].common = global["ng-atomic"].common || {}, global["ng-atomic"].common.directives = global["ng-atomic"].common.directives || {}, global["ng-atomic"].common.directives["ios-safari-scroll-buggyfill"] = {}), global.ng.core, global.ng.common));
5
- })(this, (function (exports, i0, common) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
-
27
- var IosSafariScrollBuggyfillDirective = /** @class */ (function () {
28
- function IosSafariScrollBuggyfillDirective() {
29
- }
30
- IosSafariScrollBuggyfillDirective.prototype.ngAfterViewInit = function () {
31
- // this.el.nativeElement.addEventListener('touchmove', (e: Event) => {
32
- // e.preventDefault();
33
- // }, {passive: false});
34
- };
35
- IosSafariScrollBuggyfillDirective.prototype.onTouchmove = function (event) {
36
- event.preventDefault();
37
- };
38
- return IosSafariScrollBuggyfillDirective;
39
- }());
40
- IosSafariScrollBuggyfillDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
41
- IosSafariScrollBuggyfillDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: IosSafariScrollBuggyfillDirective, selector: "[iosSafariScrollBuggyfill]", host: { listeners: { "touchmove": "onTouchmove($event)" } }, ngImport: i0__namespace });
42
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillDirective, decorators: [{
43
- type: i0.Directive,
44
- args: [{
45
- selector: '[iosSafariScrollBuggyfill]'
46
- }]
47
- }], propDecorators: { onTouchmove: [{
48
- type: i0.HostListener,
49
- args: ['touchmove', ['$event']]
50
- }] } });
51
-
52
- var IosSafariScrollBuggyfillModule = /** @class */ (function () {
53
- function IosSafariScrollBuggyfillModule() {
54
- }
55
- return IosSafariScrollBuggyfillModule;
56
- }());
57
- IosSafariScrollBuggyfillModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
58
- IosSafariScrollBuggyfillModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillModule, declarations: [IosSafariScrollBuggyfillDirective], imports: [common.CommonModule], exports: [IosSafariScrollBuggyfillDirective] });
59
- IosSafariScrollBuggyfillModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillModule, imports: [[
60
- common.CommonModule,
61
- ]] });
62
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillModule, decorators: [{
63
- type: i0.NgModule,
64
- args: [{
65
- declarations: [
66
- IosSafariScrollBuggyfillDirective,
67
- ],
68
- imports: [
69
- common.CommonModule,
70
- ],
71
- exports: [
72
- IosSafariScrollBuggyfillDirective,
73
- ]
74
- }]
75
- }] });
76
-
77
- /**
78
- * Generated bundle index. Do not edit.
79
- */
80
-
81
- exports.IosSafariScrollBuggyfillDirective = IosSafariScrollBuggyfillDirective;
82
- exports.IosSafariScrollBuggyfillModule = IosSafariScrollBuggyfillModule;
83
-
84
- Object.defineProperty(exports, '__esModule', { value: true });
85
-
86
- }));
87
- //# sourceMappingURL=ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js","sources":["../../../../libs/common/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.ts","../../../../libs/common/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.ts","../../../../libs/common/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.ts"],"sourcesContent":["import { AfterViewInit, Directive, HostListener } from '@angular/core';\n\n@Directive({\n selector: '[iosSafariScrollBuggyfill]'\n})\nexport class IosSafariScrollBuggyfillDirective implements AfterViewInit {\n\n ngAfterViewInit(): void {\n // this.el.nativeElement.addEventListener('touchmove', (e: Event) => {\n // e.preventDefault();\n // }, {passive: false});\n }\n\n @HostListener('touchmove', ['$event'])\n onTouchmove(event: Event) {\n event.preventDefault();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { IosSafariScrollBuggyfillDirective } from './ios-safari-scroll-buggyfill.directive';\n\n\n\n@NgModule({\n declarations: [\n IosSafariScrollBuggyfillDirective,\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n IosSafariScrollBuggyfillDirective,\n ]\n})\nexport class IosSafariScrollBuggyfillModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","Directive","HostListener","CommonModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,QAAA,iCAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,iCAAA,GAAA;;IAEE,IAAA,iCAAA,CAAA,SAAA,CAAA,eAAe,GAAf,YAAA;;;;SAIC,CAAA;QAGD,iCAAW,CAAA,SAAA,CAAA,WAAA,GAAX,UAAY,KAAY,EAAA;YACtB,KAAK,CAAC,cAAc,EAAE,CAAC;SACxB,CAAA;;;yJAXU,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kIAAjC,iCAAiC,EAAA,QAAA,EAAA,4BAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,WAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,CAAA,CAAA;sHAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;sBAH7CC,YAAS;IAAC,YAAA,IAAA,EAAA,CAAA;IACT,oBAAA,QAAQ,EAAE,4BAA4B;qBACvC,CAAA;kCAUC,WAAW,EAAA,CAAA;0BADVC,eAAY;2BAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAA;;;ACIvC,QAAA,8BAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,8BAAA,GAAA;;;;sJAAa,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAF,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;IAA9B,8BAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,8BAA8B,EATvC,YAAA,EAAA,CAAA,iCAAiC,CAGjC,EAAA,OAAA,EAAA,CAAAG,mBAAY,aAGZ,iCAAiC,CAAA,EAAA,CAAA,CAAA;IAGxB,8BAAA,CAAA,IAAA,GAAAH,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,8BAA8B,EAPhC,OAAA,EAAA,CAAA;gBACPG,mBAAY;aACb,CAAA,EAAA,CAAA,CAAA;sHAKU,8BAA8B,EAAA,UAAA,EAAA,CAAA;sBAX1CC,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACR,oBAAA,YAAY,EAAE;4BACZ,iCAAiC;IAClC,qBAAA;IACD,oBAAA,OAAO,EAAE;4BACPD,mBAAY;IACb,qBAAA;IACD,oBAAA,OAAO,EAAE;4BACP,iCAAiC;IAClC,qBAAA;qBACF,CAAA;;;IChBD;;IAEG;;;;;;;;;;;"}
@@ -1,87 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('@ng-atomic/common/directives', ['exports', '@angular/core', '@angular/common'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-atomic"] = global["ng-atomic"] || {}, global["ng-atomic"].common = global["ng-atomic"].common || {}, global["ng-atomic"].common.directives = {}), global.ng.core, global.ng.common));
5
- })(this, (function (exports, i0, common) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
-
27
- var IosSafariScrollBuggyfillDirective = /** @class */ (function () {
28
- function IosSafariScrollBuggyfillDirective() {
29
- }
30
- IosSafariScrollBuggyfillDirective.prototype.ngAfterViewInit = function () {
31
- // this.el.nativeElement.addEventListener('touchmove', (e: Event) => {
32
- // e.preventDefault();
33
- // }, {passive: false});
34
- };
35
- IosSafariScrollBuggyfillDirective.prototype.onTouchmove = function (event) {
36
- event.preventDefault();
37
- };
38
- return IosSafariScrollBuggyfillDirective;
39
- }());
40
- IosSafariScrollBuggyfillDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
41
- IosSafariScrollBuggyfillDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: IosSafariScrollBuggyfillDirective, selector: "[iosSafariScrollBuggyfill]", host: { listeners: { "touchmove": "onTouchmove($event)" } }, ngImport: i0__namespace });
42
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillDirective, decorators: [{
43
- type: i0.Directive,
44
- args: [{
45
- selector: '[iosSafariScrollBuggyfill]'
46
- }]
47
- }], propDecorators: { onTouchmove: [{
48
- type: i0.HostListener,
49
- args: ['touchmove', ['$event']]
50
- }] } });
51
-
52
- var IosSafariScrollBuggyfillModule = /** @class */ (function () {
53
- function IosSafariScrollBuggyfillModule() {
54
- }
55
- return IosSafariScrollBuggyfillModule;
56
- }());
57
- IosSafariScrollBuggyfillModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
58
- IosSafariScrollBuggyfillModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillModule, declarations: [IosSafariScrollBuggyfillDirective], imports: [common.CommonModule], exports: [IosSafariScrollBuggyfillDirective] });
59
- IosSafariScrollBuggyfillModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillModule, imports: [[
60
- common.CommonModule,
61
- ]] });
62
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IosSafariScrollBuggyfillModule, decorators: [{
63
- type: i0.NgModule,
64
- args: [{
65
- declarations: [
66
- IosSafariScrollBuggyfillDirective,
67
- ],
68
- imports: [
69
- common.CommonModule,
70
- ],
71
- exports: [
72
- IosSafariScrollBuggyfillDirective,
73
- ]
74
- }]
75
- }] });
76
-
77
- /**
78
- * Generated bundle index. Do not edit.
79
- */
80
-
81
- exports.IosSafariScrollBuggyfillDirective = IosSafariScrollBuggyfillDirective;
82
- exports.IosSafariScrollBuggyfillModule = IosSafariScrollBuggyfillModule;
83
-
84
- Object.defineProperty(exports, '__esModule', { value: true });
85
-
86
- }));
87
- //# sourceMappingURL=ng-atomic-common-directives.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-atomic-common-directives.umd.js","sources":["../../../../libs/common/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.ts","../../../../libs/common/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.ts","../../../../libs/common/directives/ng-atomic-common-directives.ts"],"sourcesContent":["import { AfterViewInit, Directive, HostListener } from '@angular/core';\n\n@Directive({\n selector: '[iosSafariScrollBuggyfill]'\n})\nexport class IosSafariScrollBuggyfillDirective implements AfterViewInit {\n\n ngAfterViewInit(): void {\n // this.el.nativeElement.addEventListener('touchmove', (e: Event) => {\n // e.preventDefault();\n // }, {passive: false});\n }\n\n @HostListener('touchmove', ['$event'])\n onTouchmove(event: Event) {\n event.preventDefault();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { IosSafariScrollBuggyfillDirective } from './ios-safari-scroll-buggyfill.directive';\n\n\n\n@NgModule({\n declarations: [\n IosSafariScrollBuggyfillDirective,\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n IosSafariScrollBuggyfillDirective,\n ]\n})\nexport class IosSafariScrollBuggyfillModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i0","Directive","HostListener","CommonModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,QAAA,iCAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,iCAAA,GAAA;;IAEE,IAAA,iCAAA,CAAA,SAAA,CAAA,eAAe,GAAf,YAAA;;;;SAIC,CAAA;QAGD,iCAAW,CAAA,SAAA,CAAA,WAAA,GAAX,UAAY,KAAY,EAAA;YACtB,KAAK,CAAC,cAAc,EAAE,CAAC;SACxB,CAAA;;;yJAXU,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kIAAjC,iCAAiC,EAAA,QAAA,EAAA,4BAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,WAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,CAAA,CAAA;sHAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;sBAH7CC,YAAS;IAAC,YAAA,IAAA,EAAA,CAAA;IACT,oBAAA,QAAQ,EAAE,4BAA4B;qBACvC,CAAA;kCAUC,WAAW,EAAA,CAAA;0BADVC,eAAY;2BAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAA;;;ACIvC,QAAA,8BAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,8BAAA,GAAA;;;;sJAAa,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAF,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;IAA9B,8BAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,8BAA8B,EATvC,YAAA,EAAA,CAAA,iCAAiC,CAGjC,EAAA,OAAA,EAAA,CAAAG,mBAAY,aAGZ,iCAAiC,CAAA,EAAA,CAAA,CAAA;IAGxB,8BAAA,CAAA,IAAA,GAAAH,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,8BAA8B,EAPhC,OAAA,EAAA,CAAA;gBACPG,mBAAY;aACb,CAAA,EAAA,CAAA,CAAA;sHAKU,8BAA8B,EAAA,UAAA,EAAA,CAAA;sBAX1CC,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACR,oBAAA,YAAY,EAAE;4BACZ,iCAAiC;IAClC,qBAAA;IACD,oBAAA,OAAO,EAAE;4BACPD,mBAAY;IACb,qBAAA;IACD,oBAAA,OAAO,EAAE;4BACP,iCAAiC;IAClC,qBAAA;qBACF,CAAA;;;IChBD;;IAEG;;;;;;;;;;;"}
@@ -1,11 +0,0 @@
1
- (function (factory) {
2
- typeof define === 'function' && define.amd ? define('@ng-atomic/common/models', factory) :
3
- factory();
4
- })((function () { 'use strict';
5
-
6
- /**
7
- * Generated bundle index. Do not edit.
8
- */
9
-
10
- }));
11
- //# sourceMappingURL=ng-atomic-common-models.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-atomic-common-models.umd.js","sources":["../../../../libs/common/models/ng-atomic-common-models.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;CAAA;;CAEG;;;;;;"}
@@ -1,378 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('lodash'), require('@ng-atomic/common/utils')) :
3
- typeof define === 'function' && define.amd ? define('@ng-atomic/common/pipes', ['exports', '@angular/core', '@angular/common', 'lodash', '@ng-atomic/common/utils'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-atomic"] = global["ng-atomic"] || {}, global["ng-atomic"].common = global["ng-atomic"].common || {}, global["ng-atomic"].common.pipes = {}), global.ng.core, global.ng.common, global.lodash, global["ng-atomic"].common.utils));
5
- })(this, (function (exports, i0, common, lodash, utils) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
-
27
- var DOMAIN_LANG_MAP = new i0.InjectionToken('domain lang map');
28
- var DomainPipe = /** @class */ (function () {
29
- function DomainPipe(map) {
30
- var _a;
31
- this.map = map;
32
- (_a = this.map) !== null && _a !== void 0 ? _a : (this.map = {});
33
- }
34
- DomainPipe.prototype.transform = function (input) {
35
- var _a, _b;
36
- return (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a[input]) !== null && _b !== void 0 ? _b : input;
37
- };
38
- return DomainPipe;
39
- }());
40
- DomainPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DomainPipe, deps: [{ token: DOMAIN_LANG_MAP, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
41
- DomainPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DomainPipe, name: "D" });
42
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DomainPipe, decorators: [{
43
- type: i0.Pipe,
44
- args: [{
45
- name: 'D',
46
- pure: true,
47
- }]
48
- }], ctorParameters: function () {
49
- return [{ type: undefined, decorators: [{
50
- type: i0.Optional
51
- }, {
52
- type: i0.Inject,
53
- args: [DOMAIN_LANG_MAP]
54
- }] }];
55
- } });
56
-
57
- var DomainModule = /** @class */ (function () {
58
- function DomainModule() {
59
- }
60
- return DomainModule;
61
- }());
62
- DomainModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DomainModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
63
- DomainModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DomainModule, declarations: [DomainPipe], imports: [common.CommonModule], exports: [DomainPipe] });
64
- DomainModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DomainModule, imports: [[
65
- common.CommonModule
66
- ]] });
67
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DomainModule, decorators: [{
68
- type: i0.NgModule,
69
- args: [{
70
- declarations: [
71
- DomainPipe
72
- ],
73
- imports: [
74
- common.CommonModule
75
- ],
76
- exports: [
77
- DomainPipe
78
- ]
79
- }]
80
- }] });
81
-
82
- var SMART_SORT_BY_TRANSFORMER = new i0.InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');
83
- var smartSortByTransformer = function (items, key, order) {
84
- return order === 'asc' ? lodash.sortBy(items, key) : lodash.sortBy(items, key).reverse();
85
- };
86
- var SmartSortByPipe = /** @class */ (function () {
87
- function SmartSortByPipe(transformer) {
88
- var _a;
89
- this.transformer = transformer;
90
- (_a = this.transformer) !== null && _a !== void 0 ? _a : (this.transformer = smartSortByTransformer);
91
- }
92
- SmartSortByPipe.prototype.transform = function (items, key, order) {
93
- if (order === void 0) { order = 'asc'; }
94
- return this.transformer(items, key, order);
95
- };
96
- return SmartSortByPipe;
97
- }());
98
- SmartSortByPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartSortByPipe, deps: [{ token: SMART_SORT_BY_TRANSFORMER, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
99
- SmartSortByPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartSortByPipe, name: "smartSortBy" });
100
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartSortByPipe, decorators: [{
101
- type: i0.Pipe,
102
- args: [{
103
- name: 'smartSortBy',
104
- pure: true,
105
- }]
106
- }], ctorParameters: function () {
107
- return [{ type: undefined, decorators: [{
108
- type: i0.Optional
109
- }, {
110
- type: i0.Inject,
111
- args: [SMART_SORT_BY_TRANSFORMER]
112
- }] }];
113
- } });
114
-
115
- var SmartSortByModule = /** @class */ (function () {
116
- function SmartSortByModule() {
117
- }
118
- return SmartSortByModule;
119
- }());
120
- SmartSortByModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartSortByModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
121
- SmartSortByModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartSortByModule, declarations: [SmartSortByPipe], imports: [common.CommonModule], exports: [SmartSortByPipe] });
122
- SmartSortByModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartSortByModule, imports: [[
123
- common.CommonModule
124
- ]] });
125
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartSortByModule, decorators: [{
126
- type: i0.NgModule,
127
- args: [{
128
- declarations: [
129
- SmartSortByPipe
130
- ],
131
- imports: [
132
- common.CommonModule
133
- ],
134
- exports: [
135
- SmartSortByPipe
136
- ]
137
- }]
138
- }] });
139
-
140
- var SmartClampPipe = /** @class */ (function () {
141
- function SmartClampPipe(transformer) {
142
- var _a;
143
- this.transformer = transformer;
144
- this.slicePipe = new common.SlicePipe();
145
- this._input = null;
146
- this._output = [];
147
- (_a = this.transformer) !== null && _a !== void 0 ? _a : (this.transformer = smartSortByTransformer);
148
- }
149
- SmartClampPipe.prototype.transform = function (items, store) {
150
- var input = {
151
- items: items,
152
- sortKey: store.sortKey,
153
- sortOrder: store.sortOrder,
154
- start: store.page.start,
155
- end: store.page.end,
156
- };
157
- if (JSON.stringify(input) === JSON.stringify(this._input)) {
158
- return this._output;
159
- }
160
- this._input = input;
161
- items = this.transformer(items, store === null || store === void 0 ? void 0 : store.sortKey, store === null || store === void 0 ? void 0 : store.sortOrder);
162
- items = this.slicePipe.transform(items, store.page.start, store.page.end);
163
- return this._output = items;
164
- };
165
- return SmartClampPipe;
166
- }());
167
- SmartClampPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartClampPipe, deps: [{ token: SMART_SORT_BY_TRANSFORMER, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
168
- SmartClampPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartClampPipe, name: "smartClamp", pure: false });
169
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartClampPipe, decorators: [{
170
- type: i0.Pipe,
171
- args: [{
172
- name: 'smartClamp',
173
- pure: false,
174
- }]
175
- }], ctorParameters: function () {
176
- return [{ type: undefined, decorators: [{
177
- type: i0.Optional
178
- }, {
179
- type: i0.Inject,
180
- args: [SMART_SORT_BY_TRANSFORMER]
181
- }] }];
182
- } });
183
-
184
- var SmartClampModule = /** @class */ (function () {
185
- function SmartClampModule() {
186
- }
187
- return SmartClampModule;
188
- }());
189
- SmartClampModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartClampModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
190
- SmartClampModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartClampModule, declarations: [SmartClampPipe], imports: [common.CommonModule], exports: [SmartClampPipe] });
191
- SmartClampModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartClampModule, imports: [[
192
- common.CommonModule,
193
- ]] });
194
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartClampModule, decorators: [{
195
- type: i0.NgModule,
196
- args: [{
197
- declarations: [
198
- SmartClampPipe
199
- ],
200
- imports: [
201
- common.CommonModule,
202
- ],
203
- exports: [
204
- SmartClampPipe
205
- ]
206
- }]
207
- }] });
208
-
209
- var SmartExpPipe = /** @class */ (function () {
210
- function SmartExpPipe(transformer) {
211
- var _a;
212
- this.transformer = transformer;
213
- (_a = this.transformer) !== null && _a !== void 0 ? _a : (this.transformer = utils.smartExpTransformer);
214
- }
215
- SmartExpPipe.prototype.transform = function (input, key) {
216
- return this.transformer(input, key);
217
- };
218
- return SmartExpPipe;
219
- }());
220
- SmartExpPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartExpPipe, deps: [{ token: utils.SMART_EXP_TRANSFORMER, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
221
- SmartExpPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartExpPipe, name: "smartExp" });
222
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartExpPipe, decorators: [{
223
- type: i0.Pipe,
224
- args: [{
225
- name: 'smartExp',
226
- pure: true,
227
- }]
228
- }], ctorParameters: function () {
229
- return [{ type: undefined, decorators: [{
230
- type: i0.Optional
231
- }, {
232
- type: i0.Inject,
233
- args: [utils.SMART_EXP_TRANSFORMER]
234
- }] }];
235
- } });
236
-
237
- var SmartExpModule = /** @class */ (function () {
238
- function SmartExpModule() {
239
- }
240
- return SmartExpModule;
241
- }());
242
- SmartExpModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartExpModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
243
- SmartExpModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartExpModule, declarations: [SmartExpPipe], exports: [SmartExpPipe] });
244
- SmartExpModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartExpModule });
245
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartExpModule, decorators: [{
246
- type: i0.NgModule,
247
- args: [{
248
- declarations: [SmartExpPipe],
249
- exports: [SmartExpPipe]
250
- }]
251
- }] });
252
-
253
- var FORM_FIELD_MAP = new i0.InjectionToken('[@ng-atomic] Smart Form Field');
254
- var SmartFieldPipe = /** @class */ (function () {
255
- function SmartFieldPipe(map) {
256
- var _a;
257
- this.map = map;
258
- (_a = this.map) !== null && _a !== void 0 ? _a : (this.map = {
259
- createdAt: { type: 'date' },
260
- updatedAt: { type: 'date' },
261
- deletedAt: { type: 'date' },
262
- });
263
- }
264
- SmartFieldPipe.prototype.transform = function (key) {
265
- var _a;
266
- return (_a = this.map[key]) !== null && _a !== void 0 ? _a : { type: 'input' };
267
- };
268
- return SmartFieldPipe;
269
- }());
270
- SmartFieldPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartFieldPipe, deps: [{ token: FORM_FIELD_MAP, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
271
- SmartFieldPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartFieldPipe, name: "smartField" });
272
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartFieldPipe, decorators: [{
273
- type: i0.Pipe,
274
- args: [{
275
- name: 'smartField',
276
- pure: true,
277
- }]
278
- }], ctorParameters: function () {
279
- return [{ type: undefined, decorators: [{
280
- type: i0.Optional
281
- }, {
282
- type: i0.Inject,
283
- args: [FORM_FIELD_MAP]
284
- }] }];
285
- } });
286
-
287
- var SmartFieldModule = /** @class */ (function () {
288
- function SmartFieldModule() {
289
- }
290
- return SmartFieldModule;
291
- }());
292
- SmartFieldModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartFieldModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
293
- SmartFieldModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartFieldModule, declarations: [SmartFieldPipe], imports: [common.CommonModule], exports: [SmartFieldPipe] });
294
- SmartFieldModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartFieldModule, imports: [[
295
- common.CommonModule
296
- ]] });
297
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SmartFieldModule, decorators: [{
298
- type: i0.NgModule,
299
- args: [{
300
- declarations: [
301
- SmartFieldPipe
302
- ],
303
- imports: [
304
- common.CommonModule
305
- ],
306
- exports: [
307
- SmartFieldPipe
308
- ]
309
- }]
310
- }] });
311
-
312
- var YenPipe = /** @class */ (function () {
313
- function YenPipe() {
314
- }
315
- YenPipe.prototype.transform = function (value, _unit) {
316
- return utils.yenTransform(value, _unit);
317
- };
318
- return YenPipe;
319
- }());
320
- YenPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YenPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
321
- YenPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YenPipe, name: "yen" });
322
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YenPipe, decorators: [{
323
- type: i0.Pipe,
324
- args: [{
325
- name: 'yen'
326
- }]
327
- }] });
328
-
329
- var YenModule = /** @class */ (function () {
330
- function YenModule() {
331
- }
332
- return YenModule;
333
- }());
334
- YenModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YenModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
335
- YenModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YenModule, declarations: [YenPipe], imports: [common.CommonModule], exports: [YenPipe] });
336
- YenModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YenModule, imports: [[
337
- common.CommonModule
338
- ]] });
339
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YenModule, decorators: [{
340
- type: i0.NgModule,
341
- args: [{
342
- declarations: [
343
- YenPipe
344
- ],
345
- imports: [
346
- common.CommonModule
347
- ],
348
- exports: [
349
- YenPipe
350
- ]
351
- }]
352
- }] });
353
-
354
- /**
355
- * Generated bundle index. Do not edit.
356
- */
357
-
358
- exports.DOMAIN_LANG_MAP = DOMAIN_LANG_MAP;
359
- exports.DomainModule = DomainModule;
360
- exports.DomainPipe = DomainPipe;
361
- exports.FORM_FIELD_MAP = FORM_FIELD_MAP;
362
- exports.SMART_SORT_BY_TRANSFORMER = SMART_SORT_BY_TRANSFORMER;
363
- exports.SmartClampModule = SmartClampModule;
364
- exports.SmartClampPipe = SmartClampPipe;
365
- exports.SmartExpModule = SmartExpModule;
366
- exports.SmartExpPipe = SmartExpPipe;
367
- exports.SmartFieldModule = SmartFieldModule;
368
- exports.SmartFieldPipe = SmartFieldPipe;
369
- exports.SmartSortByModule = SmartSortByModule;
370
- exports.SmartSortByPipe = SmartSortByPipe;
371
- exports.YenModule = YenModule;
372
- exports.YenPipe = YenPipe;
373
- exports.smartSortByTransformer = smartSortByTransformer;
374
-
375
- Object.defineProperty(exports, '__esModule', { value: true });
376
-
377
- }));
378
- //# sourceMappingURL=ng-atomic-common-pipes.umd.js.map