@ng-atomic/common 3.1.0 → 3.2.5

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 +1 -0
  2. package/directives/ios-safari-scroll-buggyfill/index.d.ts.map +1 -0
  3. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +1 -0
  4. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts.map +1 -0
  5. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +1 -0
  6. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts.map +1 -0
  7. package/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.d.ts +1 -0
  8. package/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.d.ts.map +1 -0
  9. package/esm2020/directives/ios-safari-scroll-buggyfill/index.mjs +1 -1
  10. package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.mjs +14 -12
  11. package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.mjs +19 -18
  12. package/esm2020/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +1 -1
  13. package/esm2020/index.mjs +1 -1
  14. package/esm2020/models/action-item.mjs +1 -1
  15. package/esm2020/models/index.mjs +1 -1
  16. package/esm2020/models/menu-item.mjs +1 -1
  17. package/esm2020/models/ng-atomic-common-models.mjs +1 -1
  18. package/esm2020/models/public_api.mjs +1 -1
  19. package/esm2020/ng-atomic-common.mjs +1 -1
  20. package/esm2020/pipes/domain/domain.module.mjs +19 -18
  21. package/esm2020/pipes/domain/domain.pipe.mjs +15 -15
  22. package/esm2020/pipes/domain/index.mjs +1 -1
  23. package/esm2020/pipes/domain/ng-atomic-common-pipes-domain.mjs +5 -0
  24. package/esm2020/pipes/smart-clamp/index.mjs +1 -1
  25. package/esm2020/pipes/smart-clamp/ng-atomic-common-pipes-smart-clamp.mjs +5 -0
  26. package/esm2020/pipes/smart-clamp/smart-clamp.module.mjs +19 -18
  27. package/esm2020/pipes/smart-clamp/smart-clamp.pipe.mjs +16 -16
  28. package/esm2020/pipes/smart-exp/index.mjs +1 -1
  29. package/esm2020/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.mjs +5 -0
  30. package/esm2020/pipes/smart-exp/smart-exp.module.mjs +12 -11
  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 +5 -0
  34. package/esm2020/pipes/smart-field/smart-field.module.mjs +19 -18
  35. package/esm2020/pipes/smart-field/smart-field.pipe.mjs +15 -15
  36. package/esm2020/pipes/smart-sort-by/index.mjs +1 -1
  37. package/esm2020/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.mjs +5 -0
  38. package/esm2020/pipes/smart-sort-by/smart-sort-by.module.mjs +19 -18
  39. package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +15 -15
  40. package/esm2020/pipes/yen/index.mjs +1 -1
  41. package/esm2020/pipes/yen/ng-atomic-common-pipes-yen.mjs +5 -0
  42. package/esm2020/pipes/yen/yen.module.mjs +19 -18
  43. package/esm2020/pipes/yen/yen.pipe.mjs +9 -9
  44. package/esm2020/services/chips-manager/chips.manager.mjs +29 -0
  45. package/esm2020/services/chips-manager/index.mjs +2 -0
  46. package/esm2020/services/chips-manager/ng-atomic-common-services-chips-manager.mjs +5 -0
  47. package/esm2020/services/form/form.service.mjs +1 -1
  48. package/esm2020/services/form/index.mjs +1 -1
  49. package/esm2020/services/form/ng-atomic-common-services-form.mjs +5 -0
  50. package/esm2020/services/loading/index.mjs +1 -1
  51. package/esm2020/services/loading/loading.service.mjs +9 -9
  52. package/esm2020/services/loading/ng-atomic-common-services-loading.mjs +5 -0
  53. package/esm2020/services/query-resolver/index.mjs +1 -1
  54. package/esm2020/services/query-resolver/ng-atomic-common-services-query-resolver.mjs +5 -0
  55. package/esm2020/services/query-resolver/query-resolver.service.mjs +15 -16
  56. package/esm2020/services/snack-bar/index.mjs +1 -1
  57. package/esm2020/services/snack-bar/ng-atomic-common-services-snack-bar.mjs +5 -0
  58. package/esm2020/services/snack-bar/snack-bar.module.mjs +16 -15
  59. package/esm2020/services/snack-bar/snack-bar.service.mjs +9 -9
  60. package/esm2020/stores/entities/entities.store.mjs +44 -0
  61. package/esm2020/stores/entities/index.mjs +2 -0
  62. package/esm2020/stores/entities/ng-atomic-common-stores-entities.mjs +5 -0
  63. package/esm2020/stores/entity/entity.store.mjs +40 -0
  64. package/esm2020/stores/entity/index.mjs +2 -0
  65. package/esm2020/stores/entity/ng-atomic-common-stores-entity.mjs +5 -0
  66. package/esm2020/utils/comma/comma.mjs +1 -1
  67. package/esm2020/utils/comma/index.mjs +1 -1
  68. package/esm2020/utils/compare-by-id/compare-by-id.mjs +1 -1
  69. package/esm2020/utils/compare-by-id/index.mjs +1 -1
  70. package/esm2020/utils/date-utils/date-utils.mjs +1 -1
  71. package/esm2020/utils/date-utils/index.mjs +1 -1
  72. package/esm2020/utils/index.mjs +1 -1
  73. package/esm2020/utils/mat-dayjs-date/dayjs-date.adapter.mjs +1 -1
  74. package/esm2020/utils/mat-dayjs-date/dayjs-date.formats.mjs +1 -1
  75. package/esm2020/utils/mat-dayjs-date/dayjs-date.module.mjs +27 -26
  76. package/esm2020/utils/mat-dayjs-date/dayjs-jp-providers.mjs +1 -1
  77. package/esm2020/utils/mat-dayjs-date/index.mjs +1 -1
  78. package/esm2020/utils/ng-atomic-common-utils.mjs +1 -1
  79. package/esm2020/utils/query/index.mjs +1 -1
  80. package/esm2020/utils/query/query.resolver.mjs +1 -1
  81. package/esm2020/utils/smart-exp-transformer/index.mjs +1 -1
  82. package/esm2020/utils/smart-exp-transformer/smart-exp-transformer.mjs +1 -1
  83. package/esm2020/utils/to-object/index.mjs +1 -1
  84. package/esm2020/utils/to-object/to-object.mjs +1 -1
  85. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +19 -10
  86. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -1
  87. package/fesm2015/ng-atomic-common-models.mjs.map +1 -1
  88. package/fesm2015/ng-atomic-common-pipes-domain.mjs +66 -0
  89. package/fesm2015/ng-atomic-common-pipes-domain.mjs.map +1 -0
  90. package/fesm2015/ng-atomic-common-pipes-smart-clamp.mjs +81 -0
  91. package/fesm2015/ng-atomic-common-pipes-smart-clamp.mjs.map +1 -0
  92. package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs +55 -0
  93. package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs.map +1 -0
  94. package/fesm2015/ng-atomic-common-pipes-smart-field.mjs +70 -0
  95. package/fesm2015/ng-atomic-common-pipes-smart-field.mjs.map +1 -0
  96. package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs +69 -0
  97. package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -0
  98. package/fesm2015/ng-atomic-common-pipes-yen.mjs +52 -0
  99. package/fesm2015/ng-atomic-common-pipes-yen.mjs.map +1 -0
  100. package/fesm2015/ng-atomic-common-services-chips-manager.mjs +38 -0
  101. package/fesm2015/ng-atomic-common-services-chips-manager.mjs.map +1 -0
  102. package/fesm2015/ng-atomic-common-services-form.mjs +42 -0
  103. package/fesm2015/ng-atomic-common-services-form.mjs.map +1 -0
  104. package/fesm2015/ng-atomic-common-services-loading.mjs +41 -0
  105. package/fesm2015/ng-atomic-common-services-loading.mjs.map +1 -0
  106. package/fesm2015/ng-atomic-common-services-query-resolver.mjs +38 -0
  107. package/fesm2015/ng-atomic-common-services-query-resolver.mjs.map +1 -0
  108. package/fesm2015/ng-atomic-common-services-snack-bar.mjs +58 -0
  109. package/fesm2015/ng-atomic-common-services-snack-bar.mjs.map +1 -0
  110. package/fesm2015/{ng-atomic-common-store.mjs → ng-atomic-common-stores-entities.mjs} +5 -44
  111. package/fesm2015/ng-atomic-common-stores-entities.mjs.map +1 -0
  112. package/fesm2015/ng-atomic-common-stores-entity.mjs +48 -0
  113. package/fesm2015/ng-atomic-common-stores-entity.mjs.map +1 -0
  114. package/fesm2015/ng-atomic-common-utils.mjs +15 -10
  115. package/fesm2015/ng-atomic-common-utils.mjs.map +1 -1
  116. package/fesm2015/ng-atomic-common.mjs.map +1 -1
  117. package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +31 -28
  118. package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -1
  119. package/fesm2020/ng-atomic-common-models.mjs.map +1 -1
  120. package/fesm2020/ng-atomic-common-pipes-domain.mjs +58 -0
  121. package/fesm2020/ng-atomic-common-pipes-domain.mjs.map +1 -0
  122. package/fesm2020/ng-atomic-common-pipes-smart-clamp.mjs +74 -0
  123. package/fesm2020/ng-atomic-common-pipes-smart-clamp.mjs.map +1 -0
  124. package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs +48 -0
  125. package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs.map +1 -0
  126. package/fesm2020/ng-atomic-common-pipes-smart-field.mjs +62 -0
  127. package/fesm2020/ng-atomic-common-pipes-smart-field.mjs.map +1 -0
  128. package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs +62 -0
  129. package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -0
  130. package/fesm2020/ng-atomic-common-pipes-yen.mjs +48 -0
  131. package/fesm2020/ng-atomic-common-pipes-yen.mjs.map +1 -0
  132. package/fesm2020/ng-atomic-common-services-chips-manager.mjs +36 -0
  133. package/fesm2020/ng-atomic-common-services-chips-manager.mjs.map +1 -0
  134. package/fesm2020/ng-atomic-common-services-form.mjs +45 -0
  135. package/fesm2020/ng-atomic-common-services-form.mjs.map +1 -0
  136. package/fesm2020/ng-atomic-common-services-loading.mjs +39 -0
  137. package/fesm2020/ng-atomic-common-services-loading.mjs.map +1 -0
  138. package/fesm2020/ng-atomic-common-services-query-resolver.mjs +33 -0
  139. package/fesm2020/ng-atomic-common-services-query-resolver.mjs.map +1 -0
  140. package/fesm2020/ng-atomic-common-services-snack-bar.mjs +52 -0
  141. package/fesm2020/ng-atomic-common-services-snack-bar.mjs.map +1 -0
  142. package/fesm2020/{ng-atomic-common-store.mjs → ng-atomic-common-stores-entities.mjs} +5 -43
  143. package/fesm2020/ng-atomic-common-stores-entities.mjs.map +1 -0
  144. package/fesm2020/ng-atomic-common-stores-entity.mjs +47 -0
  145. package/fesm2020/ng-atomic-common-stores-entity.mjs.map +1 -0
  146. package/fesm2020/ng-atomic-common-utils.mjs +26 -25
  147. package/fesm2020/ng-atomic-common-utils.mjs.map +1 -1
  148. package/fesm2020/ng-atomic-common.mjs.map +1 -1
  149. package/index.d.ts +1 -0
  150. package/index.d.ts.map +1 -0
  151. package/models/action-item.d.ts +1 -0
  152. package/models/action-item.d.ts.map +1 -0
  153. package/models/index.d.ts +1 -0
  154. package/models/index.d.ts.map +1 -0
  155. package/models/menu-item.d.ts +1 -0
  156. package/models/menu-item.d.ts.map +1 -0
  157. package/models/ng-atomic-common-models.d.ts +1 -0
  158. package/models/ng-atomic-common-models.d.ts.map +1 -0
  159. package/models/public_api.d.ts +1 -0
  160. package/models/public_api.d.ts.map +1 -0
  161. package/ng-atomic-common.d.ts +1 -0
  162. package/ng-atomic-common.d.ts.map +1 -0
  163. package/package.json +118 -43
  164. package/pipes/domain/domain.module.d.ts +1 -0
  165. package/pipes/domain/domain.module.d.ts.map +1 -0
  166. package/pipes/domain/domain.pipe.d.ts +1 -0
  167. package/pipes/domain/domain.pipe.d.ts.map +1 -0
  168. package/pipes/domain/index.d.ts +1 -0
  169. package/pipes/domain/index.d.ts.map +1 -0
  170. package/pipes/domain/ng-atomic-common-pipes-domain.d.ts +6 -0
  171. package/pipes/domain/ng-atomic-common-pipes-domain.d.ts.map +1 -0
  172. package/pipes/domain/package.json +10 -0
  173. package/pipes/smart-clamp/index.d.ts +1 -0
  174. package/pipes/smart-clamp/index.d.ts.map +1 -0
  175. package/pipes/smart-clamp/ng-atomic-common-pipes-smart-clamp.d.ts +6 -0
  176. package/pipes/smart-clamp/ng-atomic-common-pipes-smart-clamp.d.ts.map +1 -0
  177. package/pipes/smart-clamp/package.json +10 -0
  178. package/pipes/smart-clamp/smart-clamp.module.d.ts +1 -0
  179. package/pipes/smart-clamp/smart-clamp.module.d.ts.map +1 -0
  180. package/pipes/smart-clamp/smart-clamp.pipe.d.ts +6 -5
  181. package/pipes/smart-clamp/smart-clamp.pipe.d.ts.map +1 -0
  182. package/pipes/smart-exp/index.d.ts +1 -0
  183. package/pipes/smart-exp/index.d.ts.map +1 -0
  184. package/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.d.ts +6 -0
  185. package/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.d.ts.map +1 -0
  186. package/pipes/smart-exp/package.json +10 -0
  187. package/pipes/smart-exp/smart-exp.module.d.ts +1 -0
  188. package/pipes/smart-exp/smart-exp.module.d.ts.map +1 -0
  189. package/pipes/smart-exp/smart-exp.pipe.d.ts +2 -1
  190. package/pipes/smart-exp/smart-exp.pipe.d.ts.map +1 -0
  191. package/pipes/smart-field/index.d.ts +1 -0
  192. package/pipes/smart-field/index.d.ts.map +1 -0
  193. package/pipes/smart-field/ng-atomic-common-pipes-smart-field.d.ts +6 -0
  194. package/pipes/smart-field/ng-atomic-common-pipes-smart-field.d.ts.map +1 -0
  195. package/pipes/smart-field/package.json +10 -0
  196. package/pipes/smart-field/smart-field.module.d.ts +1 -0
  197. package/pipes/smart-field/smart-field.module.d.ts.map +1 -0
  198. package/pipes/smart-field/smart-field.pipe.d.ts +1 -0
  199. package/pipes/smart-field/smart-field.pipe.d.ts.map +1 -0
  200. package/pipes/smart-sort-by/index.d.ts +1 -0
  201. package/pipes/smart-sort-by/index.d.ts.map +1 -0
  202. package/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.d.ts +6 -0
  203. package/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.d.ts.map +1 -0
  204. package/pipes/smart-sort-by/package.json +10 -0
  205. package/pipes/smart-sort-by/smart-sort-by.module.d.ts +1 -0
  206. package/pipes/smart-sort-by/smart-sort-by.module.d.ts.map +1 -0
  207. package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts +1 -0
  208. package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts.map +1 -0
  209. package/pipes/yen/index.d.ts +1 -0
  210. package/pipes/yen/index.d.ts.map +1 -0
  211. package/pipes/yen/ng-atomic-common-pipes-yen.d.ts +6 -0
  212. package/pipes/yen/ng-atomic-common-pipes-yen.d.ts.map +1 -0
  213. package/pipes/yen/package.json +10 -0
  214. package/pipes/yen/yen.module.d.ts +1 -0
  215. package/pipes/yen/yen.module.d.ts.map +1 -0
  216. package/pipes/yen/yen.pipe.d.ts +1 -0
  217. package/pipes/yen/yen.pipe.d.ts.map +1 -0
  218. package/services/chips-manager/chips.manager.d.ts +12 -0
  219. package/services/chips-manager/chips.manager.d.ts.map +1 -0
  220. package/services/chips-manager/index.d.ts +2 -0
  221. package/services/chips-manager/index.d.ts.map +1 -0
  222. package/services/chips-manager/ng-atomic-common-services-chips-manager.d.ts +6 -0
  223. package/services/chips-manager/ng-atomic-common-services-chips-manager.d.ts.map +1 -0
  224. package/services/chips-manager/package.json +10 -0
  225. package/services/form/form.service.d.ts +1 -0
  226. package/services/form/form.service.d.ts.map +1 -0
  227. package/services/form/index.d.ts +1 -0
  228. package/services/form/index.d.ts.map +1 -0
  229. package/services/form/ng-atomic-common-services-form.d.ts +6 -0
  230. package/services/form/ng-atomic-common-services-form.d.ts.map +1 -0
  231. package/services/form/package.json +10 -0
  232. package/services/loading/index.d.ts +1 -0
  233. package/services/loading/index.d.ts.map +1 -0
  234. package/services/loading/loading.service.d.ts +1 -0
  235. package/services/loading/loading.service.d.ts.map +1 -0
  236. package/services/loading/ng-atomic-common-services-loading.d.ts +6 -0
  237. package/services/loading/ng-atomic-common-services-loading.d.ts.map +1 -0
  238. package/services/loading/package.json +10 -0
  239. package/services/query-resolver/index.d.ts +1 -0
  240. package/services/query-resolver/index.d.ts.map +1 -0
  241. package/services/query-resolver/ng-atomic-common-services-query-resolver.d.ts +6 -0
  242. package/services/query-resolver/ng-atomic-common-services-query-resolver.d.ts.map +1 -0
  243. package/services/query-resolver/package.json +10 -0
  244. package/services/query-resolver/query-resolver.service.d.ts +1 -0
  245. package/services/query-resolver/query-resolver.service.d.ts.map +1 -0
  246. package/services/snack-bar/index.d.ts +1 -0
  247. package/services/snack-bar/index.d.ts.map +1 -0
  248. package/services/snack-bar/ng-atomic-common-services-snack-bar.d.ts +6 -0
  249. package/services/snack-bar/ng-atomic-common-services-snack-bar.d.ts.map +1 -0
  250. package/services/snack-bar/package.json +10 -0
  251. package/services/snack-bar/snack-bar.module.d.ts +1 -0
  252. package/services/snack-bar/snack-bar.module.d.ts.map +1 -0
  253. package/services/snack-bar/snack-bar.service.d.ts +1 -0
  254. package/services/snack-bar/snack-bar.service.d.ts.map +1 -0
  255. package/{store/entities.page.store.d.ts → stores/entities/entities.store.d.ts} +5 -3
  256. package/stores/entities/entities.store.d.ts.map +1 -0
  257. package/stores/entities/index.d.ts +2 -0
  258. package/stores/entities/index.d.ts.map +1 -0
  259. package/stores/entities/ng-atomic-common-stores-entities.d.ts +6 -0
  260. package/stores/entities/ng-atomic-common-stores-entities.d.ts.map +1 -0
  261. package/stores/entities/package.json +10 -0
  262. package/{store/entity.page.store.d.ts → stores/entity/entity.store.d.ts} +5 -3
  263. package/stores/entity/entity.store.d.ts.map +1 -0
  264. package/stores/entity/index.d.ts +2 -0
  265. package/stores/entity/index.d.ts.map +1 -0
  266. package/stores/entity/ng-atomic-common-stores-entity.d.ts +6 -0
  267. package/stores/entity/ng-atomic-common-stores-entity.d.ts.map +1 -0
  268. package/stores/entity/package.json +10 -0
  269. package/utils/comma/comma.d.ts +1 -0
  270. package/utils/comma/comma.d.ts.map +1 -0
  271. package/utils/comma/index.d.ts +1 -0
  272. package/utils/comma/index.d.ts.map +1 -0
  273. package/utils/compare-by-id/compare-by-id.d.ts +1 -0
  274. package/utils/compare-by-id/compare-by-id.d.ts.map +1 -0
  275. package/utils/compare-by-id/index.d.ts +1 -0
  276. package/utils/compare-by-id/index.d.ts.map +1 -0
  277. package/utils/date-utils/date-utils.d.ts +1 -0
  278. package/utils/date-utils/date-utils.d.ts.map +1 -0
  279. package/utils/date-utils/index.d.ts +1 -0
  280. package/utils/date-utils/index.d.ts.map +1 -0
  281. package/utils/index.d.ts +1 -0
  282. package/utils/index.d.ts.map +1 -0
  283. package/utils/mat-dayjs-date/dayjs-date.adapter.d.ts +1 -0
  284. package/utils/mat-dayjs-date/dayjs-date.adapter.d.ts.map +1 -0
  285. package/utils/mat-dayjs-date/dayjs-date.formats.d.ts +1 -0
  286. package/utils/mat-dayjs-date/dayjs-date.formats.d.ts.map +1 -0
  287. package/utils/mat-dayjs-date/dayjs-date.module.d.ts +1 -0
  288. package/utils/mat-dayjs-date/dayjs-date.module.d.ts.map +1 -0
  289. package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts +1 -0
  290. package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts.map +1 -0
  291. package/utils/mat-dayjs-date/index.d.ts +1 -0
  292. package/utils/mat-dayjs-date/index.d.ts.map +1 -0
  293. package/utils/ng-atomic-common-utils.d.ts +1 -0
  294. package/utils/ng-atomic-common-utils.d.ts.map +1 -0
  295. package/utils/query/index.d.ts +1 -0
  296. package/utils/query/index.d.ts.map +1 -0
  297. package/utils/query/query.resolver.d.ts +1 -0
  298. package/utils/query/query.resolver.d.ts.map +1 -0
  299. package/utils/smart-exp-transformer/index.d.ts +1 -0
  300. package/utils/smart-exp-transformer/index.d.ts.map +1 -0
  301. package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +1 -0
  302. package/utils/smart-exp-transformer/smart-exp-transformer.d.ts.map +1 -0
  303. package/utils/to-object/index.d.ts +1 -0
  304. package/utils/to-object/index.d.ts.map +1 -0
  305. package/utils/to-object/to-object.d.ts +1 -0
  306. package/utils/to-object/to-object.d.ts.map +1 -0
  307. package/README.md +0 -7
  308. package/directives/index.d.ts +0 -1
  309. package/directives/ng-atomic-common-directives.d.ts +0 -5
  310. package/directives/package.json +0 -10
  311. package/esm2020/directives/index.mjs +0 -2
  312. package/esm2020/directives/ng-atomic-common-directives.mjs +0 -5
  313. package/esm2020/pipes/index.mjs +0 -7
  314. package/esm2020/pipes/ng-atomic-common-pipes.mjs +0 -5
  315. package/esm2020/services/index.mjs +0 -5
  316. package/esm2020/services/ng-atomic-common-services.mjs +0 -5
  317. package/esm2020/store/entities.page.store.mjs +0 -44
  318. package/esm2020/store/entity.page.store.mjs +0 -40
  319. package/esm2020/store/index.mjs +0 -3
  320. package/esm2020/store/ng-atomic-common-store.mjs +0 -5
  321. package/fesm2015/ng-atomic-common-directives.mjs +0 -54
  322. package/fesm2015/ng-atomic-common-directives.mjs.map +0 -1
  323. package/fesm2015/ng-atomic-common-pipes.mjs +0 -312
  324. package/fesm2015/ng-atomic-common-pipes.mjs.map +0 -1
  325. package/fesm2015/ng-atomic-common-services.mjs +0 -142
  326. package/fesm2015/ng-atomic-common-services.mjs.map +0 -1
  327. package/fesm2015/ng-atomic-common-store.mjs.map +0 -1
  328. package/fesm2020/ng-atomic-common-directives.mjs +0 -54
  329. package/fesm2020/ng-atomic-common-directives.mjs.map +0 -1
  330. package/fesm2020/ng-atomic-common-pipes.mjs +0 -295
  331. package/fesm2020/ng-atomic-common-pipes.mjs.map +0 -1
  332. package/fesm2020/ng-atomic-common-services.mjs +0 -142
  333. package/fesm2020/ng-atomic-common-services.mjs.map +0 -1
  334. package/fesm2020/ng-atomic-common-store.mjs.map +0 -1
  335. package/pipes/index.d.ts +0 -6
  336. package/pipes/ng-atomic-common-pipes.d.ts +0 -5
  337. package/pipes/package.json +0 -10
  338. package/services/index.d.ts +0 -4
  339. package/services/ng-atomic-common-services.d.ts +0 -5
  340. package/services/package.json +0 -10
  341. package/store/index.d.ts +0 -2
  342. package/store/ng-atomic-common-store.d.ts +0 -5
  343. package/store/package.json +0 -10
@@ -0,0 +1,58 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Pipe, Optional, Inject, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+
5
+ const DOMAIN_LANG_MAP = new InjectionToken('domain lang map');
6
+ class DomainPipe {
7
+ constructor(map) {
8
+ this.map = map;
9
+ this.map ?? (this.map = {});
10
+ }
11
+ transform(input) {
12
+ return this.map?.[input] ?? input;
13
+ }
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); })();
29
+
30
+ class DomainModule {
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: [[
35
+ CommonModule
36
+ ]] });
37
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DomainModule, [{
38
+ type: NgModule,
39
+ args: [{
40
+ declarations: [
41
+ DomainPipe
42
+ ],
43
+ imports: [
44
+ CommonModule
45
+ ],
46
+ exports: [
47
+ DomainPipe
48
+ ]
49
+ }]
50
+ }], null, null); })();
51
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DomainModule, { declarations: [DomainPipe], imports: [CommonModule], exports: [DomainPipe] }); })();
52
+
53
+ /**
54
+ * Generated bundle index. Do not edit.
55
+ */
56
+
57
+ export { DOMAIN_LANG_MAP, DomainModule, DomainPipe };
58
+ //# sourceMappingURL=ng-atomic-common-pipes-domain.mjs.map
@@ -0,0 +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,IAAA,WAAA,CAAyD,GAAkB,EAAA;QAAlB,IAAG,CAAA,GAAA,GAAH,G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Z,UAAU,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACdd;;AAEG;;;;"}
@@ -0,0 +1,74 @@
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';
5
+
6
+ class SmartClampPipe {
7
+ constructor(transformer) {
8
+ this.transformer = transformer;
9
+ this.slicePipe = new SlicePipe();
10
+ this._input = null;
11
+ this._output = [];
12
+ this.transformer ?? (this.transformer = smartSortByTransformer);
13
+ }
14
+ transform(items, store) {
15
+ const input = {
16
+ items,
17
+ sortKey: store.sortKey,
18
+ sortOrder: store.sortOrder,
19
+ start: store.page.start,
20
+ end: store.page.end,
21
+ };
22
+ if (JSON.stringify(input) === JSON.stringify(this._input)) {
23
+ return this._output;
24
+ }
25
+ this._input = input;
26
+ items = this.transformer(items, store?.sortKey, store?.sortOrder);
27
+ items = this.slicePipe.transform(items, store.page.start, store.page.end);
28
+ return this._output = items;
29
+ }
30
+ }
31
+ SmartClampPipe.ɵfac = function SmartClampPipe_Factory(t) { return new (t || SmartClampPipe)(i0.ɵɵdirectiveInject(SMART_SORT_BY_TRANSFORMER, 24)); };
32
+ SmartClampPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "smartClamp", type: SmartClampPipe, pure: false });
33
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartClampPipe, [{
34
+ type: Pipe,
35
+ args: [{
36
+ name: 'smartClamp',
37
+ pure: false,
38
+ }]
39
+ }], function () { return [{ type: undefined, decorators: [{
40
+ type: Optional
41
+ }, {
42
+ type: Inject,
43
+ args: [SMART_SORT_BY_TRANSFORMER]
44
+ }] }]; }, null); })();
45
+
46
+ class SmartClampModule {
47
+ }
48
+ SmartClampModule.ɵfac = function SmartClampModule_Factory(t) { return new (t || SmartClampModule)(); };
49
+ SmartClampModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SmartClampModule });
50
+ SmartClampModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
51
+ CommonModule,
52
+ ]] });
53
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartClampModule, [{
54
+ type: NgModule,
55
+ args: [{
56
+ declarations: [
57
+ SmartClampPipe
58
+ ],
59
+ imports: [
60
+ CommonModule,
61
+ ],
62
+ exports: [
63
+ SmartClampPipe
64
+ ]
65
+ }]
66
+ }], null, null); })();
67
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartClampModule, { declarations: [SmartClampPipe], imports: [CommonModule], exports: [SmartClampPipe] }); })();
68
+
69
+ /**
70
+ * Generated bundle index. Do not edit.
71
+ */
72
+
73
+ export { SmartClampModule, SmartClampPipe };
74
+ //# sourceMappingURL=ng-atomic-common-pipes-smart-clamp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-atomic-common-pipes-smart-clamp.mjs","sources":["../../../../libs/common/src/pipes/smart-clamp/smart-clamp.pipe.ts","../../../../libs/common/src/pipes/smart-clamp/smart-clamp.module.ts","../../../../libs/common/src/pipes/smart-clamp/ng-atomic-common-pipes-smart-clamp.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';\nimport { EntitiesStore } from '@ng-atomic/common/stores/entities';\n\n@Pipe({\n name: 'smartClamp',\n pure: false,\n})\nexport class SmartClampPipe implements PipeTransform {\n private slicePipe = new SlicePipe();\n private _input: any = null;\n private _output: any = [];\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[], store: EntitiesStore<any, any>): T[] {\n const input = {\n items, \n sortKey: store.sortKey, \n sortOrder: store.sortOrder, \n start: store.page.start,\n end: store.page.end,\n };\n \n if (JSON.stringify(input) === JSON.stringify(this._input)) {\n return this._output;\n }\n\n this._input = input;\n items = this.transformer(items, store?.sortKey, store?.sortOrder as 'asc' | 'desc');\n items = this.slicePipe.transform(items, store.page.start, store.page.end);\n return this._output = items;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartClampPipe } from './smart-clamp.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartClampPipe\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n SmartClampPipe\n ]\n})\nexport class SmartClampModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,cAAc,CAAA;AAKzB,IAAA,WAAA,CAGU,WAAmC,EAAA;QAAnC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAwB;AAPrC,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAM,CAAA,MAAA,GAAQ,IAAI,CAAC;QACnB,IAAO,CAAA,OAAA,GAAQ,EAAE,CAAC;QAOxB,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,sBAAsB,CAAC,CAAA;KAC7C;IAED,SAAS,CAAI,KAAU,EAAE,KAA8B,EAAA;AACrD,QAAA,MAAM,KAAK,GAAG;YACZ,KAAK;YACL,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,SAAS,EAAE,KAAK,CAAC,SAAS;AAC1B,YAAA,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK;AACvB,YAAA,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG;SACpB,CAAC;AAEF,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,IAAI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;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;;;;"}
@@ -0,0 +1,48 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe, Optional, Inject, NgModule } from '@angular/core';
3
+ import { smartExpTransformer, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/utils';
4
+
5
+ class SmartExpPipe {
6
+ constructor(transformer) {
7
+ this.transformer = transformer;
8
+ this.transformer ?? (this.transformer = smartExpTransformer);
9
+ }
10
+ transform(input, key) {
11
+ return this.transformer(input, key);
12
+ }
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); })();
28
+
29
+ class SmartExpModule {
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] }); })();
42
+
43
+ /**
44
+ * Generated bundle index. Do not edit.
45
+ */
46
+
47
+ export { SmartExpModule, SmartExpPipe };
48
+ //# sourceMappingURL=ng-atomic-common-pipes-smart-exp.mjs.map
@@ -0,0 +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;;;;"}
@@ -0,0 +1,62 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Pipe, Optional, Inject, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+
5
+ const FORM_FIELD_MAP = new InjectionToken('[@ng-atomic] Smart Form Field');
6
+ class SmartFieldPipe {
7
+ constructor(map) {
8
+ this.map = map;
9
+ this.map ?? (this.map = {
10
+ createdAt: { type: 'date' },
11
+ updatedAt: { type: 'date' },
12
+ deletedAt: { type: 'date' },
13
+ });
14
+ }
15
+ transform(key) {
16
+ return this.map[key] ?? { type: 'input' };
17
+ }
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); })();
33
+
34
+ class SmartFieldModule {
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: [[
39
+ CommonModule
40
+ ]] });
41
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartFieldModule, [{
42
+ type: NgModule,
43
+ args: [{
44
+ declarations: [
45
+ SmartFieldPipe
46
+ ],
47
+ imports: [
48
+ CommonModule
49
+ ],
50
+ exports: [
51
+ SmartFieldPipe
52
+ ]
53
+ }]
54
+ }], null, null); })();
55
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartFieldModule, { declarations: [SmartFieldPipe], imports: [CommonModule], exports: [SmartFieldPipe] }); })();
56
+
57
+ /**
58
+ * Generated bundle index. Do not edit.
59
+ */
60
+
61
+ export { FORM_FIELD_MAP, SmartFieldModule, SmartFieldPipe };
62
+ //# sourceMappingURL=ng-atomic-common-pipes-smart-field.mjs.map
@@ -0,0 +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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KU,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;;;;"}
@@ -0,0 +1,62 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Pipe, Optional, Inject, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { sortBy } from 'lodash';
5
+
6
+ const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');
7
+ const smartSortByTransformer = (items, key, order) => {
8
+ return order === 'asc' ? sortBy(items, key) : sortBy(items, key).reverse();
9
+ };
10
+ class SmartSortByPipe {
11
+ constructor(transformer) {
12
+ this.transformer = transformer;
13
+ this.transformer ?? (this.transformer = smartSortByTransformer);
14
+ }
15
+ transform(items, key, order = 'asc') {
16
+ return this.transformer(items, key, order);
17
+ }
18
+ }
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); })();
33
+
34
+ class SmartSortByModule {
35
+ }
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: [[
39
+ CommonModule
40
+ ]] });
41
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartSortByModule, [{
42
+ type: NgModule,
43
+ args: [{
44
+ declarations: [
45
+ SmartSortByPipe
46
+ ],
47
+ imports: [
48
+ CommonModule
49
+ ],
50
+ exports: [
51
+ SmartSortByPipe
52
+ ]
53
+ }]
54
+ }], null, null); })();
55
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartSortByModule, { declarations: [SmartSortByPipe], imports: [CommonModule], exports: [SmartSortByPipe] }); })();
56
+
57
+ /**
58
+ * Generated bundle index. Do not edit.
59
+ */
60
+
61
+ export { SMART_SORT_BY_TRANSFORMER, SmartSortByModule, SmartSortByPipe, smartSortByTransformer };
62
+ //# sourceMappingURL=ng-atomic-common-pipes-smart-sort-by.mjs.map
@@ -0,0 +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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 -0,0 +1,48 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe, NgModule } from '@angular/core';
3
+ import { yenTransform } from '@ng-atomic/common/utils';
4
+ import { CommonModule } from '@angular/common';
5
+
6
+ class YenPipe {
7
+ transform(value, _unit) {
8
+ return yenTransform(value, _unit);
9
+ }
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); })();
19
+
20
+ class YenModule {
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: [[
25
+ CommonModule
26
+ ]] });
27
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(YenModule, [{
28
+ type: NgModule,
29
+ args: [{
30
+ declarations: [
31
+ YenPipe
32
+ ],
33
+ imports: [
34
+ CommonModule
35
+ ],
36
+ exports: [
37
+ YenPipe
38
+ ]
39
+ }]
40
+ }], null, null); })();
41
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(YenModule, { declarations: [YenPipe], imports: [CommonModule], exports: [YenPipe] }); })();
42
+
43
+ /**
44
+ * Generated bundle index. Do not edit.
45
+ */
46
+
47
+ export { YenModule, YenPipe };
48
+ //# sourceMappingURL=ng-atomic-common-pipes-yen.mjs.map
@@ -0,0 +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;AAPX,SAAA,CAAA,IAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA;YACP,YAAY;AACb,SAAA,CAAA,EAAA,CAAA,CAAA;uFAKU,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;;;;"}
@@ -0,0 +1,36 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
+
4
+ class ChipsManager {
5
+ constructor() {
6
+ this._chips = [];
7
+ }
8
+ setValue(value) {
9
+ this._chips = value.split(' ').filter(chip => !!chip);
10
+ }
11
+ getValue() {
12
+ return this._chips.join(' ');
13
+ }
14
+ remove(value) {
15
+ this._chips = this.chips.filter(chip => chip !== value);
16
+ }
17
+ add(chip) {
18
+ const value = (chip || '').trim();
19
+ this._chips = [...this.chips, value];
20
+ }
21
+ get chips() {
22
+ return this._chips;
23
+ }
24
+ }
25
+ ChipsManager.ɵfac = function ChipsManager_Factory(t) { return new (t || ChipsManager)(); };
26
+ ChipsManager.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ChipsManager, factory: ChipsManager.ɵfac });
27
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChipsManager, [{
28
+ type: Injectable
29
+ }], null, null); })();
30
+
31
+ /**
32
+ * Generated bundle index. Do not edit.
33
+ */
34
+
35
+ export { ChipsManager };
36
+ //# sourceMappingURL=ng-atomic-common-services-chips-manager.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-atomic-common-services-chips-manager.mjs","sources":["../../../../libs/common/src/services/chips-manager/chips.manager.ts","../../../../libs/common/src/services/chips-manager/ng-atomic-common-services-chips-manager.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\n\n@Injectable()\nexport class ChipsManager {\n private _chips: string[] = [];\n\n setValue(value: string): void {\n this._chips = value.split(' ').filter(chip => !!chip);\n }\n\n getValue(): string {\n return this._chips.join(' ');\n }\n\n remove(value: string): void {\n this._chips = this.chips.filter(chip => chip !== value);\n }\n\n add(chip: string): void {\n const value = (chip || '').trim();\n this._chips = [...this.chips, value];\n }\n\n get chips(): string[] {\n return this._chips;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAGa,YAAY,CAAA;AADzB,IAAA,WAAA,GAAA;QAEU,IAAM,CAAA,MAAA,GAAa,EAAE,CAAC;AAsB/B,KAAA;AApBC,IAAA,QAAQ,CAAC,KAAa,EAAA;QACpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;KACvD;IAED,QAAQ,GAAA;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC9B;AAED,IAAA,MAAM,CAAC,KAAa,EAAA;AAClB,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC;KACzD;AAED,IAAA,GAAG,CAAC,IAAY,EAAA;QACd,MAAM,KAAK,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACtC;AAED,IAAA,IAAI,KAAK,GAAA;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;KACpB;;wEAtBU,YAAY,GAAA,CAAA,EAAA,CAAA;AAAZ,YAAA,CAAA,KAAA,iBAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,KAAA,EAAA,YAAY,WAAZ,YAAY,CAAA,IAAA,EAAA,CAAA,CAAA;uFAAZ,YAAY,EAAA,CAAA;cADxB,UAAU;;;ACFX;;AAEG;;;;"}
@@ -0,0 +1,45 @@
1
+ import { isIsoString, toObject } from '@ng-atomic/common/utils';
2
+ import dayjs from 'dayjs';
3
+ import { unflatten, flatten } from 'flat';
4
+ import { omit, pick } from 'lodash';
5
+
6
+ const isNumeric = (v) => !isNaN(Number(v));
7
+ const parseQueryString = (v, key) => key.match(/id$/i)
8
+ ? v
9
+ : typeof v === 'string' && isIsoString(v)
10
+ ? dayjs(v)
11
+ : v === ''
12
+ ? v
13
+ : isNumeric(v)
14
+ ? Number(v)
15
+ : v;
16
+ class BaseFormService {
17
+ static fromQueryParams(obj) {
18
+ return Object.entries(unflatten(obj)?.form ?? {}).reduce((m, [k, v]) => ({
19
+ ...m, [k]: parseQueryString(v, k),
20
+ }), {});
21
+ }
22
+ static toQueryParams(obj) {
23
+ return flatten({ form: Object.entries(obj).reduce((m, [k, v]) => ({
24
+ ...m, [k]: dayjs.isDayjs(v) ? v.isValid() ? v.toISOString() : null : v,
25
+ }), {}) });
26
+ }
27
+ static dayjsKeys(object) {
28
+ return Object.entries(object).filter(([_, v]) => dayjs.isDayjs(v)).map(([k]) => k);
29
+ }
30
+ static toValue(object) {
31
+ const keys = this.dayjsKeys(object);
32
+ return { ...flatten(omit(toObject(object), keys)), ...pick(toObject(object), keys) };
33
+ }
34
+ static fromValue(value) {
35
+ const keys = this.dayjsKeys(value);
36
+ return { ...unflatten(omit(value, keys)), ...pick(value, keys) };
37
+ }
38
+ }
39
+
40
+ /**
41
+ * Generated bundle index. Do not edit.
42
+ */
43
+
44
+ export { BaseFormService };
45
+ //# sourceMappingURL=ng-atomic-common-services-form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-atomic-common-services-form.mjs","sources":["../../../../libs/common/src/services/form/form.service.ts","../../../../libs/common/src/services/form/ng-atomic-common-services-form.ts"],"sourcesContent":["import { toObject, isIsoString } from '@ng-atomic/common/utils';\nimport dayjs from 'dayjs';\nimport { unflatten, flatten } from 'flat';\nimport { omit, pick } from 'lodash';\n\nconst isNumeric = (v: string): boolean => !isNaN(Number(v)) \n\nconst parseQueryString = (v: string, key: string): any => key.match(/id$/i) \n ? v\n : typeof v === 'string' && isIsoString(v) \n ? dayjs(v) \n : v === ''\n ? v\n : isNumeric(v)\n ? Number(v)\n : v;\n\nexport class BaseFormService {\n static fromQueryParams<T>(obj: T): object {\n return Object.entries((unflatten(obj) as any)?.form ?? {}).reduce((m, [k, v]: [string, string]) => ({\n ...m, [k]: parseQueryString(v, k),\n }), {});\n }\n\n static toQueryParams<T>(obj: object): T { \n return flatten({form: Object.entries(obj).reduce((m, [k, v]) => ({\n ...m, [k]: dayjs.isDayjs(v) ? v.isValid() ? v.toISOString() : null : v,\n }), {})});\n }\n\n static dayjsKeys(object: object): string[] {\n return Object.entries(object).filter(([_, v]) => dayjs.isDayjs(v)).map(([k]) => k);\n }\n\n static toValue(object: object): object {\n const keys = this.dayjsKeys(object);\n return {...flatten(omit(toObject(object), keys)), ...pick(toObject(object), keys)};\n }\n\n static fromValue(value: object): object {\n const keys = this.dayjsKeys(value);\n return {...unflatten(omit(value, keys)), ...pick(value, keys)};\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,MAAM,SAAS,GAAG,CAAC,CAAS,KAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;AAE3D,MAAM,gBAAgB,GAAG,CAAC,CAAS,EAAE,GAAW,KAAU,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;AACzE,MAAE,CAAC;MACD,OAAO,CAAC,KAAK,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC;AACzC,UAAE,KAAK,CAAC,CAAC,CAAC;UACR,CAAC,KAAK,EAAE;AACV,cAAE,CAAC;AACH,cAAE,SAAS,CAAC,CAAC,CAAC;AACd,kBAAE,MAAM,CAAC,CAAC,CAAC;kBACT,CAAC,CAAC;MAEO,eAAe,CAAA;IA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CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,EAAC,CAAC;KACpF;IAED,OAAO,SAAS,CAAC,KAAa,EAAA;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO,EAAC,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAC,CAAC;KAChE;AACF;;AC3CD;;AAEG;;;;"}
@@ -0,0 +1,39 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
+ import { Subject } from 'rxjs';
4
+ import { scan, map, distinctUntilChanged, delay } from 'rxjs/operators';
5
+
6
+ class LoadingService {
7
+ constructor() {
8
+ this.loadingEntries$ = new Subject();
9
+ this.loadingMap = {};
10
+ this.loadingMap$ = this.loadingEntries$.pipe(scan((pre, [key, value]) => ({ ...pre, [key]: value }), {}), map((m) => Object.entries(m)
11
+ .filter(([k, v]) => v)
12
+ .reduce((p, [k, v]) => ({ ...p, [k]: v }), {})), distinctUntilChanged((pre, cur) => JSON.stringify(pre) === JSON.stringify(cur)));
13
+ this.isLoading$ = this.loadingMap$.pipe(map((m) => !!Object.keys(m).length), delay(0));
14
+ this.loadingMap$.subscribe((m) => {
15
+ this.loadingMap = m;
16
+ });
17
+ }
18
+ setKey(key) {
19
+ this.loadingEntries$.next([key, true]);
20
+ }
21
+ removeKey(key) {
22
+ this.loadingEntries$.next([key, false]);
23
+ }
24
+ }
25
+ LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
26
+ LoadingService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LoadingService, factory: LoadingService.ɵfac, providedIn: 'root' });
27
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingService, [{
28
+ type: Injectable,
29
+ args: [{
30
+ providedIn: 'root',
31
+ }]
32
+ }], function () { return []; }, null); })();
33
+
34
+ /**
35
+ * Generated bundle index. Do not edit.
36
+ */
37
+
38
+ export { LoadingService };
39
+ //# sourceMappingURL=ng-atomic-common-services-loading.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-atomic-common-services-loading.mjs","sources":["../../../../libs/common/src/services/loading/loading.service.ts","../../../../libs/common/src/services/loading/ng-atomic-common-services-loading.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { scan, map, distinctUntilChanged, delay } from 'rxjs/operators';\n\ntype LoadingMap = Record<string, boolean>;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LoadingService {\n private loadingEntries$ = new Subject<[string, boolean]>();\n\n loadingMap: LoadingMap = {};\n loadingMap$ = this.loadingEntries$.pipe(\n scan((pre, [key, value]) => ({ ...pre, [key]: value }), {} as LoadingMap),\n map((m: LoadingMap) => Object.entries(m)\n .filter(([k, v]: [string, boolean]) => v)\n .reduce((p, [k, v]) => ({ ...p, [k]: v }), {} as LoadingMap)),\n distinctUntilChanged((pre, cur) => JSON.stringify(pre) === JSON.stringify(cur)),\n );\n\n isLoading$ = this.loadingMap$.pipe(\n map((m) => !!Object.keys(m).length),\n delay(0),\n );\n\n constructor() {\n this.loadingMap$.subscribe((m) => {\n this.loadingMap = m;\n });\n }\n\n setKey(key: string): void {\n this.loadingEntries$.next([key, true]);\n }\n\n removeKey(key: string): void {\n this.loadingEntries$.next([key, false]);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,cAAc,CAAA;AAiBzB,IAAA,WAAA,GAAA;AAhBQ,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,OAAO,EAAqB,CAAC;QAE3D,IAAU,CAAA,UAAA,GAAe,EAAE,CAAC;QAC5B,IAAW,CAAA,WAAA,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CACrC,IAAI,CAAC,CAAC,GAAG,EAAE,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AAd,cAAc,CAAA,IAAA,EAAA,UAAA,EAFb,MAAM,EAAA,CAAA,CAAA;uFAEP,cAAc,EAAA,CAAA;cAH1B,UAAU;AAAC,QAAA,IAAA,EAAA,CAAA;AACV,gBAAA,UAAU,EAAE,MAAM;AACnB,aAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -0,0 +1,33 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Optional, Inject } from '@angular/core';
3
+ import { smartExpTransformer, filterByQuery, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/utils';
4
+
5
+ class QueryResolverService {
6
+ constructor(transformer) {
7
+ this.transformer = transformer;
8
+ this.transformer ?? (this.transformer = smartExpTransformer);
9
+ }
10
+ resolve(items, queryString, dlm = {}) {
11
+ return filterByQuery(items, queryString, dlm, this.transformer);
12
+ }
13
+ }
14
+ QueryResolverService.ɵfac = function QueryResolverService_Factory(t) { return new (t || QueryResolverService)(i0.ɵɵinject(SMART_EXP_TRANSFORMER, 8)); };
15
+ QueryResolverService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: QueryResolverService, factory: QueryResolverService.ɵfac, providedIn: 'root' });
16
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryResolverService, [{
17
+ type: Injectable,
18
+ args: [{
19
+ providedIn: 'root'
20
+ }]
21
+ }], function () { return [{ type: undefined, decorators: [{
22
+ type: Optional
23
+ }, {
24
+ type: Inject,
25
+ args: [SMART_EXP_TRANSFORMER]
26
+ }] }]; }, null); })();
27
+
28
+ /**
29
+ * Generated bundle index. Do not edit.
30
+ */
31
+
32
+ export { QueryResolverService };
33
+ //# sourceMappingURL=ng-atomic-common-services-query-resolver.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-atomic-common-services-query-resolver.mjs","sources":["../../../../libs/common/src/services/query-resolver/query-resolver.service.ts","../../../../libs/common/src/services/query-resolver/ng-atomic-common-services-query-resolver.ts"],"sourcesContent":["import { Inject, Injectable, Optional } from \"@angular/core\";\nimport { filterByQuery, SmartExpTransformer, smartExpTransformer, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/utils';\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class QueryResolverService {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer?: SmartExpTransformer,\n ) {\n this.transformer ??= smartExpTransformer;\n }\n\n resolve<T>(items: T[], queryString: string, dlm: Record<string, string> = {}): T[] {\n return filterByQuery(items, queryString, dlm, this.transformer);\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,oBAAoB,CAAA;AAC/B,IAAA,WAAA,CACqD,WAAiC,EAAA;QAAjC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAsB;QAEpF,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,mBAAmB,CAAC,CAAA;KAC1C;AAED,IAAA,OAAO,CAAI,KAAU,EAAE,WAAmB,EAAE,MAA8B,EAAE,EAAA;AAC1E,QAAA,OAAO,aAAa,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;KACjE;;AATU,oBAAA,CAAA,IAAA,GAAA,SAAA,4BAAA,CAAA,CAAA,EAAA,EAAA,OAAA,KAAA,CAAA,IAAA,oBAAoB,cAET,qBAAqB,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA;0EAFhC,oBAAoB,EAAA,OAAA,EAApB,oBAAoB,CAAA,IAAA,EAAA,UAAA,EAFnB,MAAM,EAAA,CAAA,CAAA;uFAEP,oBAAoB,EAAA,CAAA;cAHhC,UAAU;AAAC,QAAA,IAAA,EAAA,CAAA;AACV,gBAAA,UAAU,EAAE,MAAM;AACnB,aAAA,CAAA;;sBAGI,QAAQ;;sBAAI,MAAM;uBAAC,qBAAqB,CAAA;;;ACT7C;;AAEG;;;;"}