@ng-atomic/common 4.5.3 → 4.5.4

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 (343) hide show
  1. package/directives/ios-safari-scroll-buggyfill/index.d.ts +0 -1
  2. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +0 -1
  3. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +0 -1
  4. package/esm2020/directives/ios-safari-scroll-buggyfill/index.mjs +1 -1
  5. package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.mjs +12 -14
  6. package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.mjs +18 -19
  7. package/esm2020/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +1 -1
  8. package/esm2020/index.mjs +1 -1
  9. package/esm2020/models/action-item.mjs +1 -1
  10. package/esm2020/models/action.mjs +1 -1
  11. package/esm2020/models/index.mjs +1 -1
  12. package/esm2020/models/menu-item.mjs +1 -1
  13. package/esm2020/models/ng-atomic-common-models.mjs +1 -1
  14. package/esm2020/models/public_api.mjs +1 -1
  15. package/esm2020/ng-atomic-common.mjs +1 -1
  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 +18 -19
  20. package/esm2020/pipes/domain/domain.pipe.mjs +15 -15
  21. package/esm2020/pipes/domain/index.mjs +1 -1
  22. package/esm2020/pipes/domain/ng-atomic-common-pipes-domain.mjs +1 -1
  23. package/esm2020/pipes/pagination/index.mjs +2 -1
  24. package/esm2020/pipes/pagination/ng-atomic-common-pipes-pagination.mjs +1 -1
  25. package/esm2020/pipes/pagination/pagination.module.mjs +18 -19
  26. package/esm2020/pipes/pagination/pagination.pipe.mjs +20 -21
  27. package/esm2020/pipes/pagination/pagination.transformer.mjs +5 -0
  28. package/esm2020/pipes/smart-exp/index.mjs +1 -1
  29. package/esm2020/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.mjs +1 -1
  30. package/esm2020/pipes/smart-exp/smart-exp.module.mjs +11 -12
  31. package/esm2020/pipes/smart-exp/smart-exp.pipe.mjs +15 -15
  32. package/esm2020/pipes/smart-field/index.mjs +1 -1
  33. package/esm2020/pipes/smart-field/ng-atomic-common-pipes-smart-field.mjs +1 -1
  34. package/esm2020/pipes/smart-field/smart-field.module.mjs +18 -19
  35. package/esm2020/pipes/smart-field/smart-field.pipe.mjs +15 -15
  36. package/esm2020/pipes/smart-sort-by/index.mjs +2 -1
  37. package/esm2020/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.mjs +1 -1
  38. package/esm2020/pipes/smart-sort-by/smart-sort-by.module.mjs +18 -19
  39. package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +16 -19
  40. package/esm2020/pipes/smart-sort-by/smart-sort-by.transformer.mjs +5 -0
  41. package/esm2020/pipes/yen/index.mjs +1 -1
  42. package/esm2020/pipes/yen/ng-atomic-common-pipes-yen.mjs +1 -1
  43. package/esm2020/pipes/yen/yen.module.mjs +18 -19
  44. package/esm2020/pipes/yen/yen.pipe.mjs +9 -9
  45. package/esm2020/services/chips-manager/chips.manager.mjs +6 -6
  46. package/esm2020/services/chips-manager/index.mjs +1 -1
  47. package/esm2020/services/chips-manager/ng-atomic-common-services-chips-manager.mjs +1 -1
  48. package/esm2020/services/form/form.service.mjs +1 -1
  49. package/esm2020/services/form/index.mjs +1 -1
  50. package/esm2020/services/form/ng-atomic-common-services-form.mjs +1 -1
  51. package/esm2020/services/loading/index.mjs +1 -1
  52. package/esm2020/services/loading/loading.service.mjs +16 -9
  53. package/esm2020/services/loading/ng-atomic-common-services-loading.mjs +1 -1
  54. package/esm2020/services/query-resolver/index.mjs +1 -1
  55. package/esm2020/services/query-resolver/ng-atomic-common-services-query-resolver.mjs +1 -1
  56. package/esm2020/services/query-resolver/query-resolver.service.mjs +14 -14
  57. package/esm2020/services/snack-bar/index.mjs +1 -1
  58. package/esm2020/services/snack-bar/ng-atomic-common-services-snack-bar.mjs +1 -1
  59. package/esm2020/services/snack-bar/snack-bar.module.mjs +15 -16
  60. package/esm2020/services/snack-bar/snack-bar.service.mjs +9 -9
  61. package/esm2020/stores/entities/entities.store.mjs +8 -6
  62. package/esm2020/stores/entities/index.mjs +1 -1
  63. package/esm2020/stores/entities/ng-atomic-common-stores-entities.mjs +1 -1
  64. package/esm2020/stores/entity/entity.store.mjs +1 -1
  65. package/esm2020/stores/entity/index.mjs +1 -1
  66. package/esm2020/stores/entity/ng-atomic-common-stores-entity.mjs +1 -1
  67. package/esm2020/stores/pagination/index.mjs +1 -1
  68. package/esm2020/stores/pagination/ng-atomic-common-stores-pagination.mjs +1 -1
  69. package/esm2020/stores/pagination/pagination.store.mjs +6 -15
  70. package/esm2020/stores/query/index.mjs +1 -1
  71. package/esm2020/stores/query/ng-atomic-common-stores-query.mjs +1 -1
  72. package/esm2020/stores/query/query.store.mjs +12 -11
  73. package/esm2020/stores/selection/index.mjs +1 -1
  74. package/esm2020/stores/selection/ng-atomic-common-stores-selection.mjs +1 -1
  75. package/esm2020/stores/selection/selection.store.mjs +6 -6
  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 +1 -1
  80. package/esm2020/utils/comma/index.mjs +1 -1
  81. package/esm2020/utils/compare-by-id/compare-by-id.mjs +1 -1
  82. package/esm2020/utils/compare-by-id/index.mjs +1 -1
  83. package/esm2020/utils/date-utils/date-utils.mjs +1 -1
  84. package/esm2020/utils/date-utils/index.mjs +1 -1
  85. package/esm2020/utils/index.mjs +1 -1
  86. package/esm2020/utils/mat-dayjs-date/dayjs-date.adapter.mjs +1 -1
  87. package/esm2020/utils/mat-dayjs-date/dayjs-date.formats.mjs +1 -1
  88. package/esm2020/utils/mat-dayjs-date/dayjs-date.module.mjs +26 -27
  89. package/esm2020/utils/mat-dayjs-date/dayjs-jp-providers.mjs +1 -1
  90. package/esm2020/utils/mat-dayjs-date/index.mjs +1 -1
  91. package/esm2020/utils/ng-atomic-common-utils.mjs +1 -1
  92. package/esm2020/utils/page/index.mjs +1 -1
  93. package/esm2020/utils/page/ng-atomic-common-utils-page.mjs +1 -1
  94. package/esm2020/utils/page/page.mjs +1 -1
  95. package/esm2020/utils/query/index.mjs +1 -1
  96. package/esm2020/utils/query/query.resolver.mjs +1 -1
  97. package/esm2020/utils/smart-exp-transformer/index.mjs +1 -1
  98. package/esm2020/utils/smart-exp-transformer/smart-exp-transformer.mjs +1 -1
  99. package/esm2020/utils/to-object/index.mjs +1 -1
  100. package/esm2020/utils/to-object/to-object.mjs +1 -1
  101. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +10 -19
  102. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -1
  103. package/fesm2015/ng-atomic-common-models.mjs.map +1 -1
  104. package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs +40 -0
  105. package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs.map +1 -0
  106. package/fesm2015/ng-atomic-common-pipes-domain.mjs +10 -15
  107. package/fesm2015/ng-atomic-common-pipes-domain.mjs.map +1 -1
  108. package/fesm2015/ng-atomic-common-pipes-pagination.mjs +22 -23
  109. package/fesm2015/ng-atomic-common-pipes-pagination.mjs.map +1 -1
  110. package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs +10 -15
  111. package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs.map +1 -1
  112. package/fesm2015/ng-atomic-common-pipes-smart-field.mjs +10 -15
  113. package/fesm2015/ng-atomic-common-pipes-smart-field.mjs.map +1 -1
  114. package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs +12 -16
  115. package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -1
  116. package/fesm2015/ng-atomic-common-pipes-yen.mjs +9 -14
  117. package/fesm2015/ng-atomic-common-pipes-yen.mjs.map +1 -1
  118. package/fesm2015/ng-atomic-common-services-chips-manager.mjs +4 -6
  119. package/fesm2015/ng-atomic-common-services-chips-manager.mjs.map +1 -1
  120. package/fesm2015/ng-atomic-common-services-form.mjs.map +1 -1
  121. package/fesm2015/ng-atomic-common-services-loading.mjs +12 -7
  122. package/fesm2015/ng-atomic-common-services-loading.mjs.map +1 -1
  123. package/fesm2015/ng-atomic-common-services-query-resolver.mjs +5 -7
  124. package/fesm2015/ng-atomic-common-services-query-resolver.mjs.map +1 -1
  125. package/fesm2015/ng-atomic-common-services-snack-bar.mjs +10 -17
  126. package/fesm2015/ng-atomic-common-services-snack-bar.mjs.map +1 -1
  127. package/fesm2015/ng-atomic-common-stores-entities.mjs +7 -5
  128. package/fesm2015/ng-atomic-common-stores-entities.mjs.map +1 -1
  129. package/fesm2015/ng-atomic-common-stores-entity.mjs.map +1 -1
  130. package/fesm2015/ng-atomic-common-stores-pagination.mjs +4 -15
  131. package/fesm2015/ng-atomic-common-stores-pagination.mjs.map +1 -1
  132. package/fesm2015/ng-atomic-common-stores-query.mjs +7 -7
  133. package/fesm2015/ng-atomic-common-stores-query.mjs.map +1 -1
  134. package/fesm2015/ng-atomic-common-stores-selection.mjs +4 -6
  135. package/fesm2015/ng-atomic-common-stores-selection.mjs.map +1 -1
  136. package/fesm2015/ng-atomic-common-stores-sort.mjs +35 -0
  137. package/fesm2015/ng-atomic-common-stores-sort.mjs.map +1 -0
  138. package/fesm2015/ng-atomic-common-utils-page.mjs.map +1 -1
  139. package/fesm2015/ng-atomic-common-utils.mjs +10 -15
  140. package/fesm2015/ng-atomic-common-utils.mjs.map +1 -1
  141. package/fesm2015/ng-atomic-common.mjs.map +1 -1
  142. package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +28 -31
  143. package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -1
  144. package/fesm2020/ng-atomic-common-models.mjs.map +1 -1
  145. package/fesm2020/ng-atomic-common-pipes-data-accessor.mjs +37 -0
  146. package/fesm2020/ng-atomic-common-pipes-data-accessor.mjs.map +1 -0
  147. package/fesm2020/ng-atomic-common-pipes-domain.mjs +31 -32
  148. package/fesm2020/ng-atomic-common-pipes-domain.mjs.map +1 -1
  149. package/fesm2020/ng-atomic-common-pipes-pagination.mjs +42 -39
  150. package/fesm2020/ng-atomic-common-pipes-pagination.mjs.map +1 -1
  151. package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs +24 -25
  152. package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs.map +1 -1
  153. package/fesm2020/ng-atomic-common-pipes-smart-field.mjs +31 -32
  154. package/fesm2020/ng-atomic-common-pipes-smart-field.mjs.map +1 -1
  155. package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs +33 -33
  156. package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -1
  157. package/fesm2020/ng-atomic-common-pipes-yen.mjs +25 -26
  158. package/fesm2020/ng-atomic-common-pipes-yen.mjs.map +1 -1
  159. package/fesm2020/ng-atomic-common-services-chips-manager.mjs +5 -5
  160. package/fesm2020/ng-atomic-common-services-chips-manager.mjs.map +1 -1
  161. package/fesm2020/ng-atomic-common-services-form.mjs.map +1 -1
  162. package/fesm2020/ng-atomic-common-services-loading.mjs +16 -9
  163. package/fesm2020/ng-atomic-common-services-loading.mjs.map +1 -1
  164. package/fesm2020/ng-atomic-common-services-query-resolver.mjs +13 -13
  165. package/fesm2020/ng-atomic-common-services-query-resolver.mjs.map +1 -1
  166. package/fesm2020/ng-atomic-common-services-snack-bar.mjs +22 -23
  167. package/fesm2020/ng-atomic-common-services-snack-bar.mjs.map +1 -1
  168. package/fesm2020/ng-atomic-common-stores-entities.mjs +7 -5
  169. package/fesm2020/ng-atomic-common-stores-entities.mjs.map +1 -1
  170. package/fesm2020/ng-atomic-common-stores-entity.mjs.map +1 -1
  171. package/fesm2020/ng-atomic-common-stores-pagination.mjs +5 -14
  172. package/fesm2020/ng-atomic-common-stores-pagination.mjs.map +1 -1
  173. package/fesm2020/ng-atomic-common-stores-query.mjs +11 -10
  174. package/fesm2020/ng-atomic-common-stores-query.mjs.map +1 -1
  175. package/fesm2020/ng-atomic-common-stores-selection.mjs +5 -5
  176. package/fesm2020/ng-atomic-common-stores-selection.mjs.map +1 -1
  177. package/fesm2020/ng-atomic-common-stores-sort.mjs +35 -0
  178. package/fesm2020/ng-atomic-common-stores-sort.mjs.map +1 -0
  179. package/fesm2020/ng-atomic-common-utils-page.mjs.map +1 -1
  180. package/fesm2020/ng-atomic-common-utils.mjs +25 -26
  181. package/fesm2020/ng-atomic-common-utils.mjs.map +1 -1
  182. package/fesm2020/ng-atomic-common.mjs.map +1 -1
  183. package/index.d.ts +0 -1
  184. package/models/action-item.d.ts +0 -1
  185. package/models/action.d.ts +4 -1
  186. package/models/index.d.ts +0 -1
  187. package/models/menu-item.d.ts +0 -1
  188. package/models/public_api.d.ts +0 -1
  189. package/package.json +20 -8
  190. package/pipes/data-accessor/data-accessor.pipe.d.ts +12 -0
  191. package/pipes/data-accessor/index.d.ts +1 -0
  192. package/pipes/domain/domain.module.d.ts +0 -1
  193. package/pipes/domain/domain.pipe.d.ts +0 -1
  194. package/pipes/domain/index.d.ts +0 -1
  195. package/pipes/pagination/index.d.ts +1 -1
  196. package/pipes/pagination/pagination.module.d.ts +0 -1
  197. package/pipes/pagination/pagination.pipe.d.ts +9 -10
  198. package/pipes/pagination/pagination.transformer.d.ts +9 -0
  199. package/pipes/smart-exp/index.d.ts +0 -1
  200. package/pipes/smart-exp/smart-exp.module.d.ts +0 -1
  201. package/pipes/smart-exp/smart-exp.pipe.d.ts +0 -1
  202. package/pipes/smart-field/index.d.ts +0 -1
  203. package/pipes/smart-field/smart-field.module.d.ts +0 -1
  204. package/pipes/smart-field/smart-field.pipe.d.ts +0 -1
  205. package/pipes/smart-sort-by/index.d.ts +1 -1
  206. package/pipes/smart-sort-by/smart-sort-by.module.d.ts +0 -1
  207. package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts +1 -3
  208. package/pipes/smart-sort-by/smart-sort-by.transformer.d.ts +2 -0
  209. package/pipes/yen/index.d.ts +0 -1
  210. package/pipes/yen/yen.module.d.ts +0 -1
  211. package/pipes/yen/yen.pipe.d.ts +0 -1
  212. package/services/chips-manager/chips.manager.d.ts +0 -1
  213. package/services/chips-manager/index.d.ts +0 -1
  214. package/services/form/form.service.d.ts +0 -1
  215. package/services/form/index.d.ts +0 -1
  216. package/services/loading/index.d.ts +0 -1
  217. package/services/loading/loading.service.d.ts +2 -1
  218. package/services/query-resolver/index.d.ts +0 -1
  219. package/services/query-resolver/query-resolver.service.d.ts +0 -1
  220. package/services/snack-bar/index.d.ts +0 -1
  221. package/services/snack-bar/snack-bar.module.d.ts +0 -1
  222. package/services/snack-bar/snack-bar.service.d.ts +0 -1
  223. package/stores/entities/entities.store.d.ts +4 -7
  224. package/stores/entities/index.d.ts +0 -1
  225. package/stores/entity/entity.store.d.ts +0 -1
  226. package/stores/entity/index.d.ts +0 -1
  227. package/stores/pagination/index.d.ts +0 -1
  228. package/stores/pagination/pagination.store.d.ts +6 -12
  229. package/stores/query/index.d.ts +0 -1
  230. package/stores/query/query.store.d.ts +1 -2
  231. package/stores/selection/index.d.ts +0 -1
  232. package/stores/selection/selection.store.d.ts +0 -1
  233. package/stores/sort/index.d.ts +1 -0
  234. package/stores/sort/sort.store.d.ts +21 -0
  235. package/utils/comma/comma.d.ts +0 -1
  236. package/utils/comma/index.d.ts +0 -1
  237. package/utils/compare-by-id/compare-by-id.d.ts +0 -1
  238. package/utils/compare-by-id/index.d.ts +0 -1
  239. package/utils/date-utils/date-utils.d.ts +0 -1
  240. package/utils/date-utils/index.d.ts +0 -1
  241. package/utils/index.d.ts +0 -1
  242. package/utils/mat-dayjs-date/dayjs-date.adapter.d.ts +0 -1
  243. package/utils/mat-dayjs-date/dayjs-date.formats.d.ts +0 -1
  244. package/utils/mat-dayjs-date/dayjs-date.module.d.ts +0 -1
  245. package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts +0 -1
  246. package/utils/mat-dayjs-date/index.d.ts +0 -1
  247. package/utils/page/index.d.ts +0 -1
  248. package/utils/page/page.d.ts +0 -1
  249. package/utils/query/index.d.ts +0 -1
  250. package/utils/query/query.resolver.d.ts +0 -1
  251. package/utils/smart-exp-transformer/index.d.ts +0 -1
  252. package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +0 -1
  253. package/utils/to-object/index.d.ts +0 -1
  254. package/utils/to-object/to-object.d.ts +0 -1
  255. package/directives/ios-safari-scroll-buggyfill/index.d.ts.map +0 -1
  256. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts.map +0 -1
  257. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts.map +0 -1
  258. package/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.d.ts.map +0 -1
  259. package/index.d.ts.map +0 -1
  260. package/models/action-item.d.ts.map +0 -1
  261. package/models/action.d.ts.map +0 -1
  262. package/models/index.d.ts.map +0 -1
  263. package/models/menu-item.d.ts.map +0 -1
  264. package/models/ng-atomic-common-models.d.ts.map +0 -1
  265. package/models/public_api.d.ts.map +0 -1
  266. package/ng-atomic-common.d.ts.map +0 -1
  267. package/pipes/domain/domain.module.d.ts.map +0 -1
  268. package/pipes/domain/domain.pipe.d.ts.map +0 -1
  269. package/pipes/domain/index.d.ts.map +0 -1
  270. package/pipes/domain/ng-atomic-common-pipes-domain.d.ts.map +0 -1
  271. package/pipes/pagination/index.d.ts.map +0 -1
  272. package/pipes/pagination/ng-atomic-common-pipes-pagination.d.ts.map +0 -1
  273. package/pipes/pagination/pagination.module.d.ts.map +0 -1
  274. package/pipes/pagination/pagination.pipe.d.ts.map +0 -1
  275. package/pipes/smart-exp/index.d.ts.map +0 -1
  276. package/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.d.ts.map +0 -1
  277. package/pipes/smart-exp/smart-exp.module.d.ts.map +0 -1
  278. package/pipes/smart-exp/smart-exp.pipe.d.ts.map +0 -1
  279. package/pipes/smart-field/index.d.ts.map +0 -1
  280. package/pipes/smart-field/ng-atomic-common-pipes-smart-field.d.ts.map +0 -1
  281. package/pipes/smart-field/smart-field.module.d.ts.map +0 -1
  282. package/pipes/smart-field/smart-field.pipe.d.ts.map +0 -1
  283. package/pipes/smart-sort-by/index.d.ts.map +0 -1
  284. package/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.d.ts.map +0 -1
  285. package/pipes/smart-sort-by/smart-sort-by.module.d.ts.map +0 -1
  286. package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts.map +0 -1
  287. package/pipes/yen/index.d.ts.map +0 -1
  288. package/pipes/yen/ng-atomic-common-pipes-yen.d.ts.map +0 -1
  289. package/pipes/yen/yen.module.d.ts.map +0 -1
  290. package/pipes/yen/yen.pipe.d.ts.map +0 -1
  291. package/services/chips-manager/chips.manager.d.ts.map +0 -1
  292. package/services/chips-manager/index.d.ts.map +0 -1
  293. package/services/chips-manager/ng-atomic-common-services-chips-manager.d.ts.map +0 -1
  294. package/services/form/form.service.d.ts.map +0 -1
  295. package/services/form/index.d.ts.map +0 -1
  296. package/services/form/ng-atomic-common-services-form.d.ts.map +0 -1
  297. package/services/loading/index.d.ts.map +0 -1
  298. package/services/loading/loading.service.d.ts.map +0 -1
  299. package/services/loading/ng-atomic-common-services-loading.d.ts.map +0 -1
  300. package/services/query-resolver/index.d.ts.map +0 -1
  301. package/services/query-resolver/ng-atomic-common-services-query-resolver.d.ts.map +0 -1
  302. package/services/query-resolver/query-resolver.service.d.ts.map +0 -1
  303. package/services/snack-bar/index.d.ts.map +0 -1
  304. package/services/snack-bar/ng-atomic-common-services-snack-bar.d.ts.map +0 -1
  305. package/services/snack-bar/snack-bar.module.d.ts.map +0 -1
  306. package/services/snack-bar/snack-bar.service.d.ts.map +0 -1
  307. package/stores/entities/entities.store.d.ts.map +0 -1
  308. package/stores/entities/index.d.ts.map +0 -1
  309. package/stores/entities/ng-atomic-common-stores-entities.d.ts.map +0 -1
  310. package/stores/entity/entity.store.d.ts.map +0 -1
  311. package/stores/entity/index.d.ts.map +0 -1
  312. package/stores/entity/ng-atomic-common-stores-entity.d.ts.map +0 -1
  313. package/stores/pagination/index.d.ts.map +0 -1
  314. package/stores/pagination/ng-atomic-common-stores-pagination.d.ts.map +0 -1
  315. package/stores/pagination/pagination.store.d.ts.map +0 -1
  316. package/stores/query/index.d.ts.map +0 -1
  317. package/stores/query/ng-atomic-common-stores-query.d.ts.map +0 -1
  318. package/stores/query/query.store.d.ts.map +0 -1
  319. package/stores/selection/index.d.ts.map +0 -1
  320. package/stores/selection/ng-atomic-common-stores-selection.d.ts.map +0 -1
  321. package/stores/selection/selection.store.d.ts.map +0 -1
  322. package/utils/comma/comma.d.ts.map +0 -1
  323. package/utils/comma/index.d.ts.map +0 -1
  324. package/utils/compare-by-id/compare-by-id.d.ts.map +0 -1
  325. package/utils/compare-by-id/index.d.ts.map +0 -1
  326. package/utils/date-utils/date-utils.d.ts.map +0 -1
  327. package/utils/date-utils/index.d.ts.map +0 -1
  328. package/utils/index.d.ts.map +0 -1
  329. package/utils/mat-dayjs-date/dayjs-date.adapter.d.ts.map +0 -1
  330. package/utils/mat-dayjs-date/dayjs-date.formats.d.ts.map +0 -1
  331. package/utils/mat-dayjs-date/dayjs-date.module.d.ts.map +0 -1
  332. package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts.map +0 -1
  333. package/utils/mat-dayjs-date/index.d.ts.map +0 -1
  334. package/utils/ng-atomic-common-utils.d.ts.map +0 -1
  335. package/utils/page/index.d.ts.map +0 -1
  336. package/utils/page/ng-atomic-common-utils-page.d.ts.map +0 -1
  337. package/utils/page/page.d.ts.map +0 -1
  338. package/utils/query/index.d.ts.map +0 -1
  339. package/utils/query/query.resolver.d.ts.map +0 -1
  340. package/utils/smart-exp-transformer/index.d.ts.map +0 -1
  341. package/utils/smart-exp-transformer/smart-exp-transformer.d.ts.map +0 -1
  342. package/utils/to-object/index.d.ts.map +0 -1
  343. package/utils/to-object/to-object.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-atomic-common-pipes-data-accessor.mjs","sources":["../../../../../packages/@ng-atomic/common/src/pipes/data-accessor/data-accessor.pipe.ts","../../../../../packages/@ng-atomic/common/src/pipes/data-accessor/ng-atomic-common-pipes-data-accessor.ts"],"sourcesContent":["import { Inject, InjectionToken, Optional, Pipe } from \"@angular/core\";\nimport { get } from 'lodash';\n\nexport type DataAccessor<T> = (obj: T, key: string) => string;\nexport const DATA_ACCESSOR = new InjectionToken<DataAccessor<any>>('DATA_ACCESSOR');\nexport const defaultDataAccessor: DataAccessor<any> = (obj, key) => get(obj, key) ?? '';\n\n@Pipe({\n name: 'dataAccessor',\n pure: true,\n standalone: true,\n})\nexport class DataAccessorPipe<T> {\n\n constructor(\n @Optional() @Inject(DATA_ACCESSOR) protected dataAccessor: DataAccessor<T>,\n ) {\n this.dataAccessor ??= defaultDataAccessor;\n }\n\n transform(data: T, key: string) {\n return this.dataAccessor(data, key);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAIa,aAAa,GAAG,IAAI,cAAc,CAAoB,eAAe,EAAE;AACvE,MAAA,mBAAmB,GAAsB,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG;MAO3E,gBAAgB,CAAA;AAE3B,IAAA,WAAA,CAC+C,YAA6B,EAAA;QAA7B,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAiB;QAE1E,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,mBAAmB,CAAC,CAAA;KAC3C;IAED,SAAS,CAAC,IAAO,EAAE,GAAW,EAAA;QAC5B,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KACrC;;AAVU,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,kBAGL,aAAa,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2GAHxB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,cAAc;AACpB,oBAAA,IAAI,EAAE,IAAI;AACV,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;;0BAII,QAAQ;;0BAAI,MAAM;2BAAC,aAAa,CAAA;;;ACfrC;;AAEG;;;;"}
@@ -12,41 +12,40 @@ class DomainPipe {
12
12
  return this.map?.[input] ?? input;
13
13
  }
14
14
  }
15
- DomainPipe.ɵfac = function DomainPipe_Factory(t) { return new (t || DomainPipe)(i0.ɵɵdirectiveInject(DOMAIN_LANG_MAP, 24)); };
16
- DomainPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "D", type: DomainPipe, pure: true });
17
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DomainPipe, [{
18
- type: Pipe,
19
- args: [{
20
- name: 'D',
21
- pure: true,
22
- }]
23
- }], function () { return [{ type: undefined, decorators: [{
24
- type: Optional
25
- }, {
26
- type: Inject,
27
- args: [DOMAIN_LANG_MAP]
28
- }] }]; }, null); })();
15
+ DomainPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DomainPipe, deps: [{ token: DOMAIN_LANG_MAP, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
16
+ DomainPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: DomainPipe, name: "D" });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DomainPipe, decorators: [{
18
+ type: Pipe,
19
+ args: [{
20
+ name: 'D',
21
+ pure: true,
22
+ }]
23
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
24
+ type: Optional
25
+ }, {
26
+ type: Inject,
27
+ args: [DOMAIN_LANG_MAP]
28
+ }] }]; } });
29
29
 
30
30
  class DomainModule {
31
31
  }
32
- DomainModule.ɵfac = function DomainModule_Factory(t) { return new (t || DomainModule)(); };
33
- DomainModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: DomainModule });
34
- DomainModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
35
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DomainModule, [{
36
- type: NgModule,
37
- args: [{
38
- declarations: [
39
- DomainPipe
40
- ],
41
- imports: [
42
- CommonModule
43
- ],
44
- exports: [
45
- DomainPipe
46
- ]
47
- }]
48
- }], null, null); })();
49
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DomainModule, { declarations: [DomainPipe], imports: [CommonModule], exports: [DomainPipe] }); })();
32
+ DomainModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DomainModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
33
+ DomainModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: DomainModule, declarations: [DomainPipe], imports: [CommonModule], exports: [DomainPipe] });
34
+ DomainModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DomainModule, imports: [CommonModule] });
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: DomainModule, decorators: [{
36
+ type: NgModule,
37
+ args: [{
38
+ declarations: [
39
+ DomainPipe
40
+ ],
41
+ imports: [
42
+ CommonModule
43
+ ],
44
+ exports: [
45
+ DomainPipe
46
+ ]
47
+ }]
48
+ }] });
50
49
 
51
50
  /**
52
51
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-common-pipes-domain.mjs","sources":["../../../../libs/common/src/pipes/domain/domain.pipe.ts","../../../../libs/common/src/pipes/domain/domain.module.ts","../../../../libs/common/src/pipes/domain/ng-atomic-common-pipes-domain.ts"],"sourcesContent":["import { Inject, InjectionToken, Optional, Pipe } from '@angular/core';\n\nexport type DomainLangMap = Record<string, string>;\nexport const DOMAIN_LANG_MAP = new InjectionToken<DomainLangMap>('domain lang map');\n\n@Pipe({\n name: 'D',\n pure: true,\n})\nexport class DomainPipe {\n constructor(@Optional() @Inject(DOMAIN_LANG_MAP) private map: DomainLangMap) {\n this.map ??= {};\n }\n\n transform(input: string) {\n return this.map?.[input] ?? input;\n }\n}\n\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DomainPipe } from './domain.pipe';\n\n\n\n@NgModule({\n declarations: [\n DomainPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n DomainPipe\n ]\n})\nexport class DomainModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAGa,eAAe,GAAG,IAAI,cAAc,CAAgB,iBAAiB,EAAE;MAMvE,UAAU,CAAA;AACrB,IAA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CAAA,EAAA,GAAA;;ACdd;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-common-pipes-domain.mjs","sources":["../../../../../packages/@ng-atomic/common/src/pipes/domain/domain.pipe.ts","../../../../../packages/@ng-atomic/common/src/pipes/domain/domain.module.ts","../../../../../packages/@ng-atomic/common/src/pipes/domain/ng-atomic-common-pipes-domain.ts"],"sourcesContent":["import { Inject, InjectionToken, Optional, Pipe } from '@angular/core';\n\nexport type DomainLangMap = Record<string, string>;\nexport const DOMAIN_LANG_MAP = new InjectionToken<DomainLangMap>('domain lang map');\n\n@Pipe({\n name: 'D',\n pure: true,\n})\nexport class DomainPipe {\n constructor(@Optional() @Inject(DOMAIN_LANG_MAP) private map: DomainLangMap) {\n this.map ??= {};\n }\n\n transform(input: string) {\n return this.map?.[input] ?? input;\n }\n}\n\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DomainPipe } from './domain.pipe';\n\n\n\n@NgModule({\n declarations: [\n DomainPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n DomainPipe\n ]\n})\nexport class DomainModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAGa,eAAe,GAAG,IAAI,cAAc,CAAgB,iBAAiB,EAAE;MAMvE,UAAU,CAAA;AACrB,IAAA,WAAA,CAAyD,GAAkB,EAAA;QAAlB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAe;QACzE,IAAI,CAAC,GAAG,KAAR,IAAI,CAAC,GAAG,GAAK,EAAE,CAAC,CAAA;KACjB;AAED,IAAA,SAAS,CAAC,KAAa,EAAA;QACrB,OAAO,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,IAAI,KAAK,CAAC;KACnC;;AAPU,UAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA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-1,57 +1,60 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Pipe, Optional, Inject, NgModule } from '@angular/core';
3
- import { SlicePipe, CommonModule } from '@angular/common';
4
- import { smartSortByTransformer, SMART_SORT_BY_TRANSFORMER } from '@ng-atomic/common/pipes/smart-sort-by';
2
+ import { InjectionToken, Pipe, Optional, Inject, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { smartSortByTransformer } from '@ng-atomic/common/pipes/smart-sort-by';
5
5
 
6
+ function paginationTransformer(items, page) {
7
+ return smartSortByTransformer(items, page.key, page.order).slice(page.start, page.end);
8
+ }
9
+
10
+ const PAGINATION_TRANSFORMER = new InjectionToken('[@ng-atomic/pipes] Pagination Transformer');
6
11
  class PaginationPipe {
7
12
  constructor(transformer) {
8
13
  this.transformer = transformer;
9
- this.slicePipe = new SlicePipe();
10
- this.transformer ?? (this.transformer = smartSortByTransformer);
14
+ this.transformer ?? (this.transformer = paginationTransformer);
11
15
  }
12
16
  transform(items, { sortKey, sortOrder, start, end }) {
13
- return this.slicePipe.transform(this.transformer(items, sortKey, sortOrder), start, end);
17
+ return this.transformer(items, { key: sortKey, order: sortOrder, start, end });
14
18
  }
15
19
  }
16
- PaginationPipe.ɵfac = function PaginationPipe_Factory(t) { return new (t || PaginationPipe)(i0.ɵɵdirectiveInject(SMART_SORT_BY_TRANSFORMER, 24)); };
17
- PaginationPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "pagination", type: PaginationPipe, pure: true });
18
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationPipe, [{
19
- type: Pipe,
20
- args: [{
21
- name: 'pagination',
22
- pure: true,
23
- }]
24
- }], function () { return [{ type: undefined, decorators: [{
25
- type: Optional
26
- }, {
27
- type: Inject,
28
- args: [SMART_SORT_BY_TRANSFORMER]
29
- }] }]; }, null); })();
20
+ PaginationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: PaginationPipe, deps: [{ token: PAGINATION_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
21
+ PaginationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: PaginationPipe, name: "pagination" });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: PaginationPipe, decorators: [{
23
+ type: Pipe,
24
+ args: [{
25
+ name: 'pagination',
26
+ pure: true,
27
+ }]
28
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
29
+ type: Optional
30
+ }, {
31
+ type: Inject,
32
+ args: [PAGINATION_TRANSFORMER]
33
+ }] }]; } });
30
34
 
31
35
  class PaginationModule {
32
36
  }
33
- PaginationModule.ɵfac = function PaginationModule_Factory(t) { return new (t || PaginationModule)(); };
34
- PaginationModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PaginationModule });
35
- PaginationModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
36
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationModule, [{
37
- type: NgModule,
38
- args: [{
39
- declarations: [
40
- PaginationPipe
41
- ],
42
- imports: [
43
- CommonModule,
44
- ],
45
- exports: [
46
- PaginationPipe
47
- ]
48
- }]
49
- }], null, null); })();
50
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationPipe], imports: [CommonModule], exports: [PaginationPipe] }); })();
37
+ PaginationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
+ PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: PaginationModule, declarations: [PaginationPipe], imports: [CommonModule], exports: [PaginationPipe] });
39
+ PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: PaginationModule, imports: [CommonModule] });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: PaginationModule, decorators: [{
41
+ type: NgModule,
42
+ args: [{
43
+ declarations: [
44
+ PaginationPipe
45
+ ],
46
+ imports: [
47
+ CommonModule,
48
+ ],
49
+ exports: [
50
+ PaginationPipe
51
+ ]
52
+ }]
53
+ }] });
51
54
 
52
55
  /**
53
56
  * Generated bundle index. Do not edit.
54
57
  */
55
58
 
56
- export { PaginationModule, PaginationPipe };
59
+ export { PAGINATION_TRANSFORMER, PaginationModule, PaginationPipe, paginationTransformer };
57
60
  //# sourceMappingURL=ng-atomic-common-pipes-pagination.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-common-pipes-pagination.mjs","sources":["../../../../libs/common/src/pipes/pagination/pagination.pipe.ts","../../../../libs/common/src/pipes/pagination/pagination.module.ts","../../../../libs/common/src/pipes/pagination/ng-atomic-common-pipes-pagination.ts"],"sourcesContent":["import { SlicePipe } from '@angular/common';\nimport { Inject, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { smartSortByTransformer, SmartSortByTransformer, SMART_SORT_BY_TRANSFORMER } from '@ng-atomic/common/pipes/smart-sort-by';\n\n@Pipe({\n name: 'pagination',\n pure: true,\n})\nexport class PaginationPipe implements PipeTransform {\n private slicePipe = new SlicePipe();\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], {sortKey, sortOrder, start, end}: {sortKey: string, sortOrder: 'asc' | 'desc', start: number, end: number}) {\n return this.slicePipe.transform(this.transformer(items, sortKey, sortOrder), start, end);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PaginationPipe } from './pagination.pipe';\n\n\n\n@NgModule({\n declarations: [\n PaginationPipe\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n PaginationPipe\n ]\n})\nexport class PaginationModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAQa,cAAc,CAAA;AAGzB,IAAA,WAAA,CAGU,WAAmC,EAAA;QAAnC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAwB;AALrC,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,SAAS,EAAE,CAAC;QAOlC,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,sBAAsB,CAAC,CAAA;KAC7C;IAED,SAAS,CAAI,KAAU,EAAE,EAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAA2E,EAAA;QACjI,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;KAC1F;;AAbU,cAAA,CAAA,IAAA,GAAA,SAAA,sBAAA,CAAA,CAAA,EAAA,EAAA,OAAA,KAAA,CAAA,IAAA,cAAc,uBAKf,yBAAyB,EAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA;iFALxB,cAAc,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,CAAA;uFAAd,cAAc,EAAA,CAAA;cAJ1B,IAAI;AAAC,QAAA,IAAA,EAAA,CAAA;AACJ,gBAAA,IAAI,EAAE,YAAY;AAClB,gBAAA,IAAI,EAAE,IAAI;AACX,aAAA,CAAA;;sBAKI,QAAQ;;sBACR,MAAM;uBAAC,yBAAyB,CAAA;;;MCIxB,gBAAgB,CAAA;;gFAAhB,gBAAgB,GAAA,CAAA,EAAA,CAAA;kEAAhB,gBAAgB,EAAA,CAAA,CAAA;sEANzB,YAAY,CAAA,EAAA,CAAA,CAAA;uFAMH,gBAAgB,EAAA,CAAA;cAX5B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACR,gBAAA,YAAY,EAAE;oBACZ,cAAc;AACf,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,YAAY;AACb,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,cAAc;AACf,iBAAA;AACF,aAAA,CAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,gBAAgB,EATzB,EAAA,YAAA,EAAA,CAAA,cAAc,CAGd,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACdlB;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-common-pipes-pagination.mjs","sources":["../../../../../packages/@ng-atomic/common/src/pipes/pagination/pagination.transformer.ts","../../../../../packages/@ng-atomic/common/src/pipes/pagination/pagination.pipe.ts","../../../../../packages/@ng-atomic/common/src/pipes/pagination/pagination.module.ts","../../../../../packages/@ng-atomic/common/src/pipes/pagination/ng-atomic-common-pipes-pagination.ts"],"sourcesContent":["import { smartSortByTransformer } from '@ng-atomic/common/pipes/smart-sort-by';\n\ninterface Page {\n start: number;\n end: number;\n key: string;\n order: 'asc' | 'desc';\n}\n\nexport type PaginationTransformer<E> = (items: E[], page: Page) => E[];\n\nexport function paginationTransformer<E>(items: E[], page: Page): E[] {\n return smartSortByTransformer(items, page.key, page.order).slice(page.start, page.end);\n}\n","import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { PaginationTransformer, paginationTransformer } from './pagination.transformer';\n\nexport const PAGINATION_TRANSFORMER = new InjectionToken('[@ng-atomic/pipes] Pagination Transformer');\n\n@Pipe({\n name: 'pagination',\n pure: true,\n})\nexport class PaginationPipe<E> implements PipeTransform {\n\n constructor(\n @Optional()\n @Inject(PAGINATION_TRANSFORMER)\n private transformer: PaginationTransformer<E>,\n ) {\n this.transformer ??= paginationTransformer;\n }\n\n transform(items: E[], {sortKey, sortOrder, start, end}: {sortKey: string, sortOrder: 'asc' | 'desc', start: number, end: number}) {\n return this.transformer(items, { key: sortKey, order: sortOrder, start, end });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PaginationPipe } from './pagination.pipe';\n\n\n\n@NgModule({\n declarations: [\n PaginationPipe\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n PaginationPipe\n ]\n})\nexport class PaginationModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAWgB,SAAA,qBAAqB,CAAI,KAAU,EAAE,IAAU,EAAA;IAC7D,OAAO,sBAAsB,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;AACzF;;MCVa,sBAAsB,GAAG,IAAI,cAAc,CAAC,2CAA2C,EAAE;MAMzF,cAAc,CAAA;AAEzB,IAAA,WAAA,CAGU,WAAqC,EAAA;QAArC,IAAW,CAAA,WAAA,GAAX,WAAW,CAA0B;QAE7C,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,qBAAqB,CAAC,CAAA;KAC5C;IAED,SAAS,CAAC,KAAU,EAAE,EAAC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAA2E,EAAA;QAC9H,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;KAChF;;AAZU,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,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AACf,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
@@ -11,34 +11,33 @@ class SmartExpPipe {
11
11
  return this.transformer(input, key);
12
12
  }
13
13
  }
14
- SmartExpPipe.ɵfac = function SmartExpPipe_Factory(t) { return new (t || SmartExpPipe)(i0.ɵɵdirectiveInject(SMART_EXP_TRANSFORMER, 24)); };
15
- SmartExpPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "smartExp", type: SmartExpPipe, pure: true });
16
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartExpPipe, [{
17
- type: Pipe,
18
- args: [{
19
- name: 'smartExp',
20
- pure: true,
21
- }]
22
- }], function () { return [{ type: undefined, decorators: [{
23
- type: Optional
24
- }, {
25
- type: Inject,
26
- args: [SMART_EXP_TRANSFORMER]
27
- }] }]; }, null); })();
14
+ SmartExpPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartExpPipe, deps: [{ token: SMART_EXP_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
15
+ SmartExpPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: SmartExpPipe, name: "smartExp" });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartExpPipe, decorators: [{
17
+ type: Pipe,
18
+ args: [{
19
+ name: 'smartExp',
20
+ pure: true,
21
+ }]
22
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
23
+ type: Optional
24
+ }, {
25
+ type: Inject,
26
+ args: [SMART_EXP_TRANSFORMER]
27
+ }] }]; } });
28
28
 
29
29
  class SmartExpModule {
30
30
  }
31
- SmartExpModule.ɵfac = function SmartExpModule_Factory(t) { return new (t || SmartExpModule)(); };
32
- SmartExpModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SmartExpModule });
33
- SmartExpModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
34
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartExpModule, [{
35
- type: NgModule,
36
- args: [{
37
- declarations: [SmartExpPipe],
38
- exports: [SmartExpPipe]
39
- }]
40
- }], null, null); })();
41
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartExpModule, { declarations: [SmartExpPipe], exports: [SmartExpPipe] }); })();
31
+ SmartExpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartExpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
+ SmartExpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: SmartExpModule, declarations: [SmartExpPipe], exports: [SmartExpPipe] });
33
+ SmartExpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartExpModule });
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartExpModule, decorators: [{
35
+ type: NgModule,
36
+ args: [{
37
+ declarations: [SmartExpPipe],
38
+ exports: [SmartExpPipe]
39
+ }]
40
+ }] });
42
41
 
43
42
  /**
44
43
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-common-pipes-smart-exp.mjs","sources":["../../../../libs/common/src/pipes/smart-exp/smart-exp.pipe.ts","../../../../libs/common/src/pipes/smart-exp/smart-exp.module.ts","../../../../libs/common/src/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.ts"],"sourcesContent":["import { Inject, Optional, Pipe } from '@angular/core';\nimport { SMART_EXP_TRANSFORMER, smartExpTransformer, SmartExpTransformer } from '@ng-atomic/common/utils';\nimport dayjs from 'dayjs';\n\n\n@Pipe({\n name: 'smartExp',\n pure: true,\n})\nexport class SmartExpPipe {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer: SmartExpTransformer\n ) {\n this.transformer ??= smartExpTransformer;\n }\n\n transform(input: string | number | dayjs.Dayjs | any, key?: string): string {\n return this.transformer(input, key);\n }\n}","import { NgModule } from \"@angular/core\";\nimport { SmartExpPipe } from \"./smart-exp.pipe\";\n\n@NgModule({\n declarations: [SmartExpPipe],\n exports: [SmartExpPipe]\n})\nexport class SmartExpModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MASa,YAAY,CAAA;AACvB,IAAA,WAAA,CACqD,WAAgC,EAAA;QAAhC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAqB;QAEnF,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,mBAAmB,CAAC,CAAA;KAC1C;IAED,SAAS,CAAC,KAA0C,EAAE,GAAY,EAAA;QAChE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;KACrC;;AATU,YAAA,CAAA,IAAA,GAAA,SAAA,oBAAA,CAAA,CAAA,EAAA,EAAA,OAAA,KAAA,CAAA,IAAA,YAAY,uBAED,qBAAqB,EAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA;6EAFhC,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,CAAA;uFAAZ,YAAY,EAAA,CAAA;cAJxB,IAAI;AAAC,QAAA,IAAA,EAAA,CAAA;AACJ,gBAAA,IAAI,EAAE,UAAU;AAChB,gBAAA,IAAI,EAAE,IAAI;AACX,aAAA,CAAA;;sBAGI,QAAQ;;sBAAI,MAAM;uBAAC,qBAAqB,CAAA;;;MCJhC,cAAc,CAAA;;4EAAd,cAAc,GAAA,CAAA,EAAA,CAAA;gEAAd,cAAc,EAAA,CAAA,CAAA;;uFAAd,cAAc,EAAA,CAAA;cAJ1B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;gBACR,YAAY,EAAE,CAAC,YAAY,CAAC;gBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,aAAA,CAAA;;wFACY,cAAc,EAAA,EAAA,YAAA,EAAA,CAHV,YAAY,CAAA,EAAA,OAAA,EAAA,CACjB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACLxB;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-common-pipes-smart-exp.mjs","sources":["../../../../../packages/@ng-atomic/common/src/pipes/smart-exp/smart-exp.pipe.ts","../../../../../packages/@ng-atomic/common/src/pipes/smart-exp/smart-exp.module.ts","../../../../../packages/@ng-atomic/common/src/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.ts"],"sourcesContent":["import { Inject, Optional, Pipe } from '@angular/core';\nimport { SMART_EXP_TRANSFORMER, smartExpTransformer, SmartExpTransformer } from '@ng-atomic/common/utils';\nimport dayjs from 'dayjs';\n\n\n@Pipe({\n name: 'smartExp',\n pure: true,\n})\nexport class SmartExpPipe {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer: SmartExpTransformer\n ) {\n this.transformer ??= smartExpTransformer;\n }\n\n transform(input: string | number | dayjs.Dayjs | any, key?: string): string {\n return this.transformer(input, key);\n }\n}","import { NgModule } from \"@angular/core\";\nimport { SmartExpPipe } from \"./smart-exp.pipe\";\n\n@NgModule({\n declarations: [SmartExpPipe],\n exports: [SmartExpPipe]\n})\nexport class SmartExpModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MASa,YAAY,CAAA;AACvB,IAAA,WAAA,CACqD,WAAgC,EAAA;QAAhC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAqB;QAEnF,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,mBAAmB,CAAC,CAAA;KAC1C;IAED,SAAS,CAAC,KAA0C,EAAE,GAAY,EAAA;QAChE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;KACrC;;AATU,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,kBAED,qBAAqB,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;uGAFhC,YAAY,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA,CAAA;;0BAGI,QAAQ;;0BAAI,MAAM;2BAAC,qBAAqB,CAAA;;;MCJhC,cAAc,CAAA;;2GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4GAAd,cAAc,EAAA,YAAA,EAAA,CAHV,YAAY,CAAA,EAAA,OAAA,EAAA,CACjB,YAAY,CAAA,EAAA,CAAA,CAAA;4GAEX,cAAc,EAAA,CAAA,CAAA;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,YAAY,CAAC;oBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
@@ -16,41 +16,40 @@ class SmartFieldPipe {
16
16
  return this.map[key] ?? { type: 'input' };
17
17
  }
18
18
  }
19
- SmartFieldPipe.ɵfac = function SmartFieldPipe_Factory(t) { return new (t || SmartFieldPipe)(i0.ɵɵdirectiveInject(FORM_FIELD_MAP, 24)); };
20
- SmartFieldPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "smartField", type: SmartFieldPipe, pure: true });
21
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartFieldPipe, [{
22
- type: Pipe,
23
- args: [{
24
- name: 'smartField',
25
- pure: true,
26
- }]
27
- }], function () { return [{ type: undefined, decorators: [{
28
- type: Optional
29
- }, {
30
- type: Inject,
31
- args: [FORM_FIELD_MAP]
32
- }] }]; }, null); })();
19
+ SmartFieldPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartFieldPipe, deps: [{ token: FORM_FIELD_MAP, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
20
+ SmartFieldPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: SmartFieldPipe, name: "smartField" });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartFieldPipe, decorators: [{
22
+ type: Pipe,
23
+ args: [{
24
+ name: 'smartField',
25
+ pure: true,
26
+ }]
27
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
28
+ type: Optional
29
+ }, {
30
+ type: Inject,
31
+ args: [FORM_FIELD_MAP]
32
+ }] }]; } });
33
33
 
34
34
  class SmartFieldModule {
35
35
  }
36
- SmartFieldModule.ɵfac = function SmartFieldModule_Factory(t) { return new (t || SmartFieldModule)(); };
37
- SmartFieldModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SmartFieldModule });
38
- SmartFieldModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
39
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartFieldModule, [{
40
- type: NgModule,
41
- args: [{
42
- declarations: [
43
- SmartFieldPipe
44
- ],
45
- imports: [
46
- CommonModule
47
- ],
48
- exports: [
49
- SmartFieldPipe
50
- ]
51
- }]
52
- }], null, null); })();
53
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartFieldModule, { declarations: [SmartFieldPipe], imports: [CommonModule], exports: [SmartFieldPipe] }); })();
36
+ SmartFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
37
+ SmartFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: SmartFieldModule, declarations: [SmartFieldPipe], imports: [CommonModule], exports: [SmartFieldPipe] });
38
+ SmartFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartFieldModule, imports: [CommonModule] });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartFieldModule, decorators: [{
40
+ type: NgModule,
41
+ args: [{
42
+ declarations: [
43
+ SmartFieldPipe
44
+ ],
45
+ imports: [
46
+ CommonModule
47
+ ],
48
+ exports: [
49
+ SmartFieldPipe
50
+ ]
51
+ }]
52
+ }] });
54
53
 
55
54
  /**
56
55
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-common-pipes-smart-field.mjs","sources":["../../../../libs/common/src/pipes/smart-field/smart-field.pipe.ts","../../../../libs/common/src/pipes/smart-field/smart-field.module.ts","../../../../libs/common/src/pipes/smart-field/ng-atomic-common-pipes-smart-field.ts"],"sourcesContent":["import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\n\ninterface Option<T> {\n name: string;\n value: T;\n}\n\ninterface InputField {\n type: 'input';\n}\n\ninterface DateInputField {\n type: 'date';\n}\n\ninterface SelectField<T> {\n type: 'select';\n options: Option<T>[];\n}\n\ninterface MultiSelectField<T> {\n type: 'multi-select';\n options: Option<T>[];\n}\n\ntype FormField<V> = InputField\n | DateInputField\n | SelectField<V>\n | MultiSelectField<V>;\n\nexport type FormFieldMap = Record<string, FormField<any>>;\n\nexport const FORM_FIELD_MAP = new InjectionToken<FormFieldMap>('[@ng-atomic] Smart Form Field');\n\n@Pipe({\n name: 'smartField',\n pure: true,\n})\nexport class SmartFieldPipe implements PipeTransform {\n\n constructor(\n @Optional() @Inject(FORM_FIELD_MAP) private map: Record<string, FormField<any>>\n ) {\n this.map ??= {\n createdAt: { type: 'date' },\n updatedAt: { type: 'date' },\n deletedAt: { type: 'date' },\n };\n }\n\n transform(key: string): FormField<any> {\n return this.map[key] ?? {type: 'input'};\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartFieldPipe } from './smart-field.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartFieldPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartFieldPipe\n ]\n})\nexport class SmartFieldModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAgCa,cAAc,GAAG,IAAI,cAAc,CAAe,+BAA+B,EAAE;MAMnF,cAAc,CAAA;AAEzB,IAAA,WAAA,CAC8C,GAAmC,EAAA;QAAnC,IAAG,CAAA,GAAA,GAAH,GAAG,CAAgC;AAE/E,QAAA,IAAI,CAAC,GAAG,KAAR,IAAI,CAAC,GAAG,GAAK;AACX,YAAA,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC3B,YAAA,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC3B,YAAA,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5B,CAAC,CAAA;KACH;AAED,IAAA,SAAS,CAAC,GAAW,EAAA;AACnB,QAAA,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;KACzC;;AAdU,cAAA,CAAA,IAAA,GAAA,SAAA,sBAAA,CAAA,CAAA,EAAA,EAAA,OAAA,KAAA,CAAA,IAAA,cAAc,uBAGH,cAAc,EAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA;iFAHzB,cAAc,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,CAAA;uFAAd,cAAc,EAAA,CAAA;cAJ1B,IAAI;AAAC,QAAA,IAAA,EAAA,CAAA;AACJ,gBAAA,IAAI,EAAE,YAAY;AAClB,gBAAA,IAAI,EAAE,IAAI;AACX,aAAA,CAAA;;sBAII,QAAQ;;sBAAI,MAAM;uBAAC,cAAc,CAAA;;;MCxBzB,gBAAgB,CAAA;;gFAAhB,gBAAgB,GAAA,CAAA,EAAA,CAAA;kEAAhB,gBAAgB,EAAA,CAAA,CAAA;sEANzB,YAAY,CAAA,EAAA,CAAA,CAAA;uFAMH,gBAAgB,EAAA,CAAA;cAX5B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACR,gBAAA,YAAY,EAAE;oBACZ,cAAc;AACf,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,YAAY;AACb,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,cAAc;AACf,iBAAA;AACF,aAAA,CAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,gBAAgB,EATzB,EAAA,YAAA,EAAA,CAAA,cAAc,CAGd,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACdlB;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-common-pipes-smart-field.mjs","sources":["../../../../../packages/@ng-atomic/common/src/pipes/smart-field/smart-field.pipe.ts","../../../../../packages/@ng-atomic/common/src/pipes/smart-field/smart-field.module.ts","../../../../../packages/@ng-atomic/common/src/pipes/smart-field/ng-atomic-common-pipes-smart-field.ts"],"sourcesContent":["import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\n\ninterface Option<T> {\n name: string;\n value: T;\n}\n\ninterface InputField {\n type: 'input';\n}\n\ninterface DateInputField {\n type: 'date';\n}\n\ninterface SelectField<T> {\n type: 'select';\n options: Option<T>[];\n}\n\ninterface MultiSelectField<T> {\n type: 'multi-select';\n options: Option<T>[];\n}\n\ntype FormField<V> = InputField\n | DateInputField\n | SelectField<V>\n | MultiSelectField<V>;\n\nexport type FormFieldMap = Record<string, FormField<any>>;\n\nexport const FORM_FIELD_MAP = new InjectionToken<FormFieldMap>('[@ng-atomic] Smart Form Field');\n\n@Pipe({\n name: 'smartField',\n pure: true,\n})\nexport class SmartFieldPipe implements PipeTransform {\n\n constructor(\n @Optional() @Inject(FORM_FIELD_MAP) private map: Record<string, FormField<any>>\n ) {\n this.map ??= {\n createdAt: { type: 'date' },\n updatedAt: { type: 'date' },\n deletedAt: { type: 'date' },\n };\n }\n\n transform(key: string): FormField<any> {\n return this.map[key] ?? {type: 'input'};\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartFieldPipe } from './smart-field.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartFieldPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartFieldPipe\n ]\n})\nexport class SmartFieldModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAgCa,cAAc,GAAG,IAAI,cAAc,CAAe,+BAA+B,EAAE;MAMnF,cAAc,CAAA;AAEzB,IAAA,WAAA,CAC8C,GAAmC,EAAA;QAAnC,IAAG,CAAA,GAAA,GAAH,GAAG,CAAgC;AAE/E,QAAA,IAAI,CAAC,GAAG,KAAR,IAAI,CAAC,GAAG,GAAK;AACX,YAAA,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC3B,YAAA,SAAS,EAAE,EA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AAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YANzB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAMH,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAX5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,cAAc;AACf,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
@@ -3,10 +3,11 @@ import { InjectionToken, Pipe, Optional, Inject, NgModule } from '@angular/core'
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { sortBy } from 'lodash';
5
5
 
6
- const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');
7
6
  const smartSortByTransformer = (items, key, order) => {
8
7
  return order === 'asc' ? sortBy(items, key) : sortBy(items, key).reverse();
9
8
  };
9
+
10
+ const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');
10
11
  class SmartSortByPipe {
11
12
  constructor(transformer) {
12
13
  this.transformer = transformer;
@@ -16,41 +17,40 @@ class SmartSortByPipe {
16
17
  return this.transformer(items, key, order);
17
18
  }
18
19
  }
19
- SmartSortByPipe.ɵfac = function SmartSortByPipe_Factory(t) { return new (t || SmartSortByPipe)(i0.ɵɵdirectiveInject(SMART_SORT_BY_TRANSFORMER, 24)); };
20
- SmartSortByPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "smartSortBy", type: SmartSortByPipe, pure: true });
21
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartSortByPipe, [{
22
- type: Pipe,
23
- args: [{
24
- name: 'smartSortBy',
25
- pure: true,
26
- }]
27
- }], function () { return [{ type: undefined, decorators: [{
28
- type: Optional
29
- }, {
30
- type: Inject,
31
- args: [SMART_SORT_BY_TRANSFORMER]
32
- }] }]; }, null); })();
20
+ SmartSortByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartSortByPipe, deps: [{ token: SMART_SORT_BY_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
21
+ SmartSortByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: SmartSortByPipe, name: "smartSortBy" });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartSortByPipe, decorators: [{
23
+ type: Pipe,
24
+ args: [{
25
+ name: 'smartSortBy',
26
+ pure: true,
27
+ }]
28
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
29
+ type: Optional
30
+ }, {
31
+ type: Inject,
32
+ args: [SMART_SORT_BY_TRANSFORMER]
33
+ }] }]; } });
33
34
 
34
35
  class SmartSortByModule {
35
36
  }
36
- SmartSortByModule.ɵfac = function SmartSortByModule_Factory(t) { return new (t || SmartSortByModule)(); };
37
- SmartSortByModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SmartSortByModule });
38
- SmartSortByModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
39
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartSortByModule, [{
40
- type: NgModule,
41
- args: [{
42
- declarations: [
43
- SmartSortByPipe
44
- ],
45
- imports: [
46
- CommonModule
47
- ],
48
- exports: [
49
- SmartSortByPipe
50
- ]
51
- }]
52
- }], null, null); })();
53
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartSortByModule, { declarations: [SmartSortByPipe], imports: [CommonModule], exports: [SmartSortByPipe] }); })();
37
+ SmartSortByModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartSortByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
+ SmartSortByModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: SmartSortByModule, declarations: [SmartSortByPipe], imports: [CommonModule], exports: [SmartSortByPipe] });
39
+ SmartSortByModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartSortByModule, imports: [CommonModule] });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: SmartSortByModule, decorators: [{
41
+ type: NgModule,
42
+ args: [{
43
+ declarations: [
44
+ SmartSortByPipe
45
+ ],
46
+ imports: [
47
+ CommonModule
48
+ ],
49
+ exports: [
50
+ SmartSortByPipe
51
+ ]
52
+ }]
53
+ }] });
54
54
 
55
55
  /**
56
56
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-common-pipes-smart-sort-by.mjs","sources":["../../../../libs/common/src/pipes/smart-sort-by/smart-sort-by.pipe.ts","../../../../libs/common/src/pipes/smart-sort-by/smart-sort-by.module.ts","../../../../libs/common/src/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.ts"],"sourcesContent":["import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { sortBy } from 'lodash';\n\nexport const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');\nexport type SmartSortByTransformer = <T>(items: T[], key: string, order: 'asc' | 'desc') => T[];\nexport const smartSortByTransformer: SmartSortByTransformer = (items, key, order) => {\n return order === 'asc' ? sortBy(items, key) : sortBy(items, key).reverse();\n}\n\n@Pipe({\n name: 'smartSortBy',\n pure: true,\n})\nexport class SmartSortByPipe implements PipeTransform {\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer?: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], key: string, order: 'asc' | 'desc' = 'asc'): T[] {\n return this.transformer(items, key, order);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartSortByPipe } from './smart-sort-by.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartSortByPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartSortByPipe\n ]\n})\nexport class SmartSortByModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,yBAAyB,GAAG,IAAI,cAAc,CAAC,+CAA+C,EAAE;AAEhG,MAAA,sBAAsB,GAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,KAAI;IAClF,OAAO,KAAK,KAAK,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC7E,EAAC;MAMY,eAAe,CAAA;AAE1B,IAAA,WAAA,CAGU,WAAoC,EAAA;QAApC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAyB;QAE5C,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,sBAAsB,CAAC,CAAA;KAC7C;AAED,IAAA,SAAS,CAAI,KAAU,EAAE,GAAW,EAAE,QAAwB,KAAK,EAAA;QACjE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;KAC5C;;AAZU,eAAA,CAAA,IAAA,GAAA,SAAA,uBAAA,CAAA,CAAA,EAAA,EAAA,OAAA,KAAA,CAAA,IAAA,eAAe,uBAIhB,yBAAyB,EAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA;mFAJxB,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,CAAA;uFAAf,eAAe,EAAA,CAAA;cAJ3B,IAAI;AAAC,QAAA,IAAA,EAAA,CAAA;AACJ,gBAAA,IAAI,EAAE,aAAa;AACnB,gBAAA,IAAI,EAAE,IAAI;AACX,aAAA,CAAA;;sBAII,QAAQ;;sBACR,MAAM;uBAAC,yBAAyB,CAAA;;;MCAxB,iBAAiB,CAAA;;kFAAjB,iBAAiB,GAAA,CAAA,EAAA,CAAA;mEAAjB,iBAAiB,EAAA,CAAA,CAAA;uEAN1B,YAAY,CAAA,EAAA,CAAA,CAAA;uFAMH,iBAAiB,EAAA,CAAA;cAX7B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACR,gBAAA,YAAY,EAAE;oBACZ,eAAe;AAChB,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,YAAY;AACb,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,eAAe;AAChB,iBAAA;AACF,aAAA,CAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,iBAAiB,EAT1B,EAAA,YAAA,EAAA,CAAA,eAAe,CAGf,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACdnB;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-common-pipes-smart-sort-by.mjs","sources":["../../../../../packages/@ng-atomic/common/src/pipes/smart-sort-by/smart-sort-by.transformer.ts","../../../../../packages/@ng-atomic/common/src/pipes/smart-sort-by/smart-sort-by.pipe.ts","../../../../../packages/@ng-atomic/common/src/pipes/smart-sort-by/smart-sort-by.module.ts","../../../../../packages/@ng-atomic/common/src/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.ts"],"sourcesContent":["import { sortBy } from 'lodash';\n\nexport type SmartSortByTransformer = <T>(items: T[], key: string, order: 'asc' | 'desc') => T[];\nexport const smartSortByTransformer: SmartSortByTransformer = (items, key, order) => {\n return order === 'asc' ? sortBy(items, key) : sortBy(items, key).reverse();\n}\n","import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { smartSortByTransformer, SmartSortByTransformer } from './smart-sort-by.transformer';\n\nexport const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');\n\n@Pipe({\n name: 'smartSortBy',\n pure: true,\n})\nexport class SmartSortByPipe implements PipeTransform {\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer?: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], key: string, order: 'asc' | 'desc' = 'asc'): T[] {\n return this.transformer(items, key, order);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartSortByPipe } from './smart-sort-by.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartSortByPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartSortByPipe\n ]\n})\nexport class SmartSortByModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGa,MAAA,sBAAsB,GAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,KAAI;IAClF,OAAO,KAAK,KAAK,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC7E;;MCFa,yBAAyB,GAAG,IAAI,cAAc,CAAC,+CAA+C,EAAE;MAMhG,eAAe,CAAA;AAE1B,IAAA,WAAA,CAGU,WAAoC,EAAA;QAApC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAyB;QAE5C,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,sBAAsB,CAAC,CAAA;KAC7C;AAED,IAAA,SAAS,CAAI,KAAU,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EAAA,CAAA,CAAA;2FAMH,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAX7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
@@ -8,35 +8,34 @@ class YenPipe {
8
8
  return yenTransform(value, _unit);
9
9
  }
10
10
  }
11
- YenPipe.ɵfac = function YenPipe_Factory(t) { return new (t || YenPipe)(); };
12
- YenPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "yen", type: YenPipe, pure: true });
13
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(YenPipe, [{
14
- type: Pipe,
15
- args: [{
16
- name: 'yen'
17
- }]
18
- }], null, null); })();
11
+ YenPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: YenPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
12
+ YenPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: YenPipe, name: "yen" });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: YenPipe, decorators: [{
14
+ type: Pipe,
15
+ args: [{
16
+ name: 'yen'
17
+ }]
18
+ }] });
19
19
 
20
20
  class YenModule {
21
21
  }
22
- YenModule.ɵfac = function YenModule_Factory(t) { return new (t || YenModule)(); };
23
- YenModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: YenModule });
24
- YenModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
25
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(YenModule, [{
26
- type: NgModule,
27
- args: [{
28
- declarations: [
29
- YenPipe
30
- ],
31
- imports: [
32
- CommonModule
33
- ],
34
- exports: [
35
- YenPipe
36
- ]
37
- }]
38
- }], null, null); })();
39
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(YenModule, { declarations: [YenPipe], imports: [CommonModule], exports: [YenPipe] }); })();
22
+ YenModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: YenModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
23
+ YenModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: YenModule, declarations: [YenPipe], imports: [CommonModule], exports: [YenPipe] });
24
+ YenModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: YenModule, imports: [CommonModule] });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: YenModule, decorators: [{
26
+ type: NgModule,
27
+ args: [{
28
+ declarations: [
29
+ YenPipe
30
+ ],
31
+ imports: [
32
+ CommonModule
33
+ ],
34
+ exports: [
35
+ YenPipe
36
+ ]
37
+ }]
38
+ }] });
40
39
 
41
40
  /**
42
41
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-common-pipes-yen.mjs","sources":["../../../../libs/common/src/pipes/yen/yen.pipe.ts","../../../../libs/common/src/pipes/yen/yen.module.ts","../../../../libs/common/src/pipes/yen/ng-atomic-common-pipes-yen.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { yenTransform } from '@ng-atomic/common/utils';\n\n@Pipe({\n name: 'yen'\n})\nexport class YenPipe implements PipeTransform {\n\n transform(value: number, _unit?: string): string {\n return yenTransform(value, _unit);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { YenPipe } from './yen.pipe';\n\n\n\n@NgModule({\n declarations: [\n YenPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n YenPipe\n ]\n})\nexport class YenModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAMa,OAAO,CAAA;IAElB,SAAS,CAAC,KAAa,EAAE,KAAc,EAAA;AACrC,QAAA,OAAO,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACnC;;8DAJU,OAAO,GAAA,CAAA,EAAA,CAAA;mEAAP,OAAO,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,CAAA;uFAAP,OAAO,EAAA,CAAA;cAHnB,IAAI;AAAC,QAAA,IAAA,EAAA,CAAA;AACJ,gBAAA,IAAI,EAAE,KAAK;AACZ,aAAA,CAAA;;;MCYY,SAAS,CAAA;;kEAAT,SAAS,GAAA,CAAA,EAAA,CAAA;2DAAT,SAAS,EAAA,CAAA,CAAA;+DANlB,YAAY,CAAA,EAAA,CAAA,CAAA;uFAMH,SAAS,EAAA,CAAA;cAXrB,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACR,gBAAA,YAAY,EAAE;oBACZ,OAAO;AACR,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,YAAY;AACb,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,OAAO;AACR,iBAAA;AACF,aAAA,CAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,SAAS,EATlB,EAAA,YAAA,EAAA,CAAA,OAAO,CAGP,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACdX;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-common-pipes-yen.mjs","sources":["../../../../../packages/@ng-atomic/common/src/pipes/yen/yen.pipe.ts","../../../../../packages/@ng-atomic/common/src/pipes/yen/yen.module.ts","../../../../../packages/@ng-atomic/common/src/pipes/yen/ng-atomic-common-pipes-yen.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { yenTransform } from '@ng-atomic/common/utils';\n\n@Pipe({\n name: 'yen'\n})\nexport class YenPipe implements PipeTransform {\n\n transform(value: number, _unit?: string): string {\n return yenTransform(value, _unit);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { YenPipe } from './yen.pipe';\n\n\n\n@NgModule({\n declarations: [\n YenPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n YenPipe\n ]\n})\nexport class YenModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAMa,OAAO,CAAA;IAElB,SAAS,CAAC,KAAa,EAAE,KAAc,EAAA;AACrC,QAAA,OAAO,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACnC;;oGAJU,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;kGAAP,OAAO,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA;2FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBAHnB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,KAAK;AACZ,iBAAA,CAAA;;;MCYY,SAAS,CAAA;;sGAAT,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAT,SAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,SAAS,EATlB,YAAA,EAAA,CAAA,OAAO,CAGP,EAAA,OAA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