@decaf-ts/for-angular 0.1.0 → 0.1.3

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 (375) hide show
  1. package/{dist/lib/fesm2022 → fesm2022}/decaf-ts-for-angular.mjs +93 -109
  2. package/fesm2022/decaf-ts-for-angular.mjs.map +1 -0
  3. package/{dist/lib/index.d.ts → index.d.ts} +6 -5
  4. package/package.json +15 -86
  5. package/.editorconfig +0 -31
  6. package/.gitlab-ci.yml +0 -197
  7. package/.hintrc +0 -19
  8. package/.prettierrc +0 -49
  9. package/.snyk +0 -13
  10. package/LICENSE.md +0 -260
  11. package/angular.json +0 -274
  12. package/bs-config.json +0 -5
  13. package/cli-module.js.map +0 -1
  14. package/dist/for-angular/cli/cli-module.d.ts +0 -22
  15. package/dist/for-angular/cli/cli-module.d.ts.map +0 -1
  16. package/dist/for-angular/cli/cli-module.js +0 -131
  17. package/dist/for-angular/cli/cli-module.js.map +0 -1
  18. package/dist/lib/README.md +0 -117
  19. package/dist/lib/fesm2022/decaf-ts-for-angular.mjs.map +0 -1
  20. package/eslint.config.mjs +0 -101
  21. package/ionic.config.json +0 -14
  22. package/jest.config.ts +0 -52
  23. package/jest.setup.ts +0 -50
  24. package/karma.conf.js +0 -50
  25. package/ng-package.json +0 -17
  26. package/ngsw-config.json +0 -30
  27. package/playwright.config.ts +0 -80
  28. package/resources/favicon.png +0 -0
  29. package/resources/favicon.svg +0 -29
  30. package/resources/icon-background.png +0 -0
  31. package/resources/icon-foreground.png +0 -0
  32. package/resources/icon-only.png +0 -0
  33. package/resources/icon-only.svg +0 -29
  34. package/resources/splash-dark.png +0 -0
  35. package/resources/splash-dark2.png +0 -0
  36. package/resources/splash.png +0 -0
  37. package/resources/splash2.png +0 -0
  38. package/resources/touch-icon.svg +0 -29
  39. package/schematics/README.md +0 -28
  40. package/schematics/collection.json +0 -20
  41. package/schematics/package-lock.json +0 -1501
  42. package/schematics/package.json +0 -37
  43. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template +0 -0
  44. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template +0 -3
  45. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +0 -40
  46. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +0 -37
  47. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts.template +0 -14
  48. package/schematics/src/component/index.js +0 -146
  49. package/schematics/src/component/schema.js +0 -2
  50. package/schematics/src/component/schema.json +0 -101
  51. package/schematics/src/page/files/__name@dasherize__.page.html.template +0 -15
  52. package/schematics/src/page/files/__name@dasherize__.page.scss.template +0 -0
  53. package/schematics/src/page/files/__name@dasherize__.page.ts.template +0 -19
  54. package/schematics/src/page/index.js +0 -71
  55. package/schematics/src/page/schema.json +0 -87
  56. package/schematics/src/schematics/index.js +0 -11
  57. package/schematics/src/schematics/index_spec.js +0 -13
  58. package/schematics/src/util/ast-util.js +0 -517
  59. package/schematics/src/util/change.js +0 -96
  60. package/schematics/src/util/index.js +0 -14
  61. package/settings.json +0 -112
  62. package/tsconfig.app.json +0 -22
  63. package/tsconfig.cli.json +0 -82
  64. package/tsconfig.lib.json +0 -14
  65. package/tsconfig.lib.prod.json +0 -10
  66. package/tsconfig.spec.json +0 -22
  67. package/webpack.config.js +0 -10
  68. package/workdocs/1-Header.md +0 -5
  69. package/workdocs/2-Badges.md +0 -30
  70. package/workdocs/4-Description.md +0 -4
  71. package/workdocs/5-HowToUse.md +0 -27
  72. package/workdocs/6-Related.md +0 -7
  73. package/workdocs/7-Social.md +0 -5
  74. package/workdocs/99-Footer.md +0 -28
  75. package/workdocs/Readme.md +0 -12
  76. package/workdocs/assets/apple-touch-icon.png +0 -0
  77. package/workdocs/assets/decaf-logo.svg +0 -54
  78. package/workdocs/assets/favicon.png +0 -0
  79. package/workdocs/assets/slogans.json +0 -182
  80. package/workdocs/confluence/.markdown-confluence.template.json +0 -6
  81. package/workdocs/confluence/Angular Module.md +0 -5
  82. package/workdocs/drawings/diagram.drawio +0 -24
  83. package/workdocs/prompts/bulk.md +0 -122
  84. package/workdocs/prompts/code.md +0 -47
  85. package/workdocs/prompts/documentation.md +0 -146
  86. package/workdocs/prompts/uml.md +0 -11
  87. package/workdocs/readme-md.json +0 -6
  88. package/workdocs/reports/CHANGELOG.md +0 -12
  89. package/workdocs/reports/DEPENDENCIES.md +0 -213
  90. package/workdocs/reports/RELEASE_NOTES.md +0 -24
  91. package/workdocs/reports/coverage/.gitkeep +0 -0
  92. package/workdocs/reports/coverage/clover.xml +0 -4107
  93. package/workdocs/reports/coverage/coverage-final.json +0 -76
  94. package/workdocs/reports/coverage/lcov-report/base.css +0 -224
  95. package/workdocs/reports/coverage/lcov-report/block-navigation.js +0 -87
  96. package/workdocs/reports/coverage/lcov-report/favicon.png +0 -0
  97. package/workdocs/reports/coverage/lcov-report/index.html +0 -551
  98. package/workdocs/reports/coverage/lcov-report/prettify.css +0 -1
  99. package/workdocs/reports/coverage/lcov-report/prettify.js +0 -2
  100. package/workdocs/reports/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  101. package/workdocs/reports/coverage/lcov-report/sorter.js +0 -210
  102. package/workdocs/reports/coverage/lcov-report/src/app/models/CategoryModel.ts.html +0 -277
  103. package/workdocs/reports/coverage/lcov-report/src/app/models/DemoModel.ts.html +0 -427
  104. package/workdocs/reports/coverage/lcov-report/src/app/models/UserModel.ts.html +0 -226
  105. package/workdocs/reports/coverage/lcov-report/src/app/models/index.html +0 -146
  106. package/workdocs/reports/coverage/lcov-report/src/cli-module.ts.html +0 -502
  107. package/workdocs/reports/coverage/lcov-report/src/environments/environment.ts.html +0 -166
  108. package/workdocs/reports/coverage/lcov-report/src/environments/index.html +0 -116
  109. package/workdocs/reports/coverage/lcov-report/src/index.html +0 -191
  110. package/workdocs/reports/coverage/lcov-report/src/karma-test.ts.html +0 -121
  111. package/workdocs/reports/coverage/lcov-report/src/lib/components/card/card.component.ts.html +0 -625
  112. package/workdocs/reports/coverage/lcov-report/src/lib/components/card/index.html +0 -116
  113. package/workdocs/reports/coverage/lcov-report/src/lib/components/component-renderer/component-renderer.component.ts.html +0 -772
  114. package/workdocs/reports/coverage/lcov-report/src/lib/components/component-renderer/index.html +0 -116
  115. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-field/crud-field.component.ts.html +0 -2698
  116. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-field/index.html +0 -116
  117. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/constants.ts.html +0 -133
  118. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/crud-form.component.ts.html +0 -346
  119. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/index.html +0 -116
  120. package/workdocs/reports/coverage/lcov-report/src/lib/components/empty-state/empty-state.component.ts.html +0 -1264
  121. package/workdocs/reports/coverage/lcov-report/src/lib/components/empty-state/index.html +0 -116
  122. package/workdocs/reports/coverage/lcov-report/src/lib/components/fieldset/fieldset.component.ts.html +0 -2965
  123. package/workdocs/reports/coverage/lcov-report/src/lib/components/fieldset/index.html +0 -116
  124. package/workdocs/reports/coverage/lcov-report/src/lib/components/file-upload/file-upload.component.ts.html +0 -2263
  125. package/workdocs/reports/coverage/lcov-report/src/lib/components/file-upload/index.html +0 -116
  126. package/workdocs/reports/coverage/lcov-report/src/lib/components/filter/filter.component.ts.html +0 -2485
  127. package/workdocs/reports/coverage/lcov-report/src/lib/components/filter/index.html +0 -116
  128. package/workdocs/reports/coverage/lcov-report/src/lib/components/for-angular-components.module.ts.html +0 -259
  129. package/workdocs/reports/coverage/lcov-report/src/lib/components/icon/icon.component.ts.html +0 -358
  130. package/workdocs/reports/coverage/lcov-report/src/lib/components/icon/index.html +0 -116
  131. package/workdocs/reports/coverage/lcov-report/src/lib/components/index.html +0 -131
  132. package/workdocs/reports/coverage/lcov-report/src/lib/components/index.ts.html +0 -181
  133. package/workdocs/reports/coverage/lcov-report/src/lib/components/layout/index.html +0 -116
  134. package/workdocs/reports/coverage/lcov-report/src/lib/components/layout/layout.component.ts.html +0 -943
  135. package/workdocs/reports/coverage/lcov-report/src/lib/components/list/index.html +0 -116
  136. package/workdocs/reports/coverage/lcov-report/src/lib/components/list/list.component.ts.html +0 -4420
  137. package/workdocs/reports/coverage/lcov-report/src/lib/components/list-item/index.html +0 -116
  138. package/workdocs/reports/coverage/lcov-report/src/lib/components/list-item/list-item.component.ts.html +0 -1741
  139. package/workdocs/reports/coverage/lcov-report/src/lib/components/modal/index.html +0 -116
  140. package/workdocs/reports/coverage/lcov-report/src/lib/components/modal/modal.component.ts.html +0 -1984
  141. package/workdocs/reports/coverage/lcov-report/src/lib/components/model-renderer/index.html +0 -116
  142. package/workdocs/reports/coverage/lcov-report/src/lib/components/model-renderer/model-renderer.component.ts.html +0 -373
  143. package/workdocs/reports/coverage/lcov-report/src/lib/components/pagination/index.html +0 -116
  144. package/workdocs/reports/coverage/lcov-report/src/lib/components/pagination/pagination.component.ts.html +0 -1165
  145. package/workdocs/reports/coverage/lcov-report/src/lib/components/searchbar/index.html +0 -116
  146. package/workdocs/reports/coverage/lcov-report/src/lib/components/searchbar/searchbar.component.ts.html +0 -1774
  147. package/workdocs/reports/coverage/lcov-report/src/lib/components/stepped-form/index.html +0 -116
  148. package/workdocs/reports/coverage/lcov-report/src/lib/components/stepped-form/stepped-form.component.ts.html +0 -1219
  149. package/workdocs/reports/coverage/lcov-report/src/lib/components/table/index.html +0 -116
  150. package/workdocs/reports/coverage/lcov-report/src/lib/components/table/table.component.ts.html +0 -1054
  151. package/workdocs/reports/coverage/lcov-report/src/lib/directives/NgxSvgDirective.ts.html +0 -163
  152. package/workdocs/reports/coverage/lcov-report/src/lib/directives/collapsable.directive.ts.html +0 -268
  153. package/workdocs/reports/coverage/lcov-report/src/lib/directives/index.html +0 -131
  154. package/workdocs/reports/coverage/lcov-report/src/lib/directives/index.ts.html +0 -91
  155. package/workdocs/reports/coverage/lcov-report/src/lib/engine/DynamicModule.ts.html +0 -133
  156. package/workdocs/reports/coverage/lcov-report/src/lib/engine/MediaService.ts.html +0 -142
  157. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxBaseComponent.ts.html +0 -2194
  158. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxComponentDirective.ts.html +0 -3430
  159. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxCrudFormField.ts.html +0 -721
  160. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafComponentDirective.ts.html +0 -1864
  161. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafFormFieldDirective.ts.html +0 -952
  162. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafFormService.ts.html +0 -3211
  163. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxEventHandler.ts.html +0 -307
  164. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormDirective.ts.html +0 -1366
  165. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormFieldDirective.ts.html +0 -1960
  166. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormService.ts.html +0 -3004
  167. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxModelPageDirective.ts.html +0 -1672
  168. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxPageDirective.ts.html +0 -748
  169. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxParentComponentDirective.ts.html +0 -775
  170. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRenderableComponentDirective.ts.html +0 -727
  171. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRenderingEngine.ts.html +0 -2005
  172. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRepositoryDirective.ts.html +0 -1546
  173. package/workdocs/reports/coverage/lcov-report/src/lib/engine/ValidatorFactory.ts.html +0 -817
  174. package/workdocs/reports/coverage/lcov-report/src/lib/engine/constants.ts.html +0 -1120
  175. package/workdocs/reports/coverage/lcov-report/src/lib/engine/decorators.ts.html +0 -376
  176. package/workdocs/reports/coverage/lcov-report/src/lib/engine/helpers.ts.html +0 -694
  177. package/workdocs/reports/coverage/lcov-report/src/lib/engine/index.html +0 -356
  178. package/workdocs/reports/coverage/lcov-report/src/lib/engine/index.ts.html +0 -160
  179. package/workdocs/reports/coverage/lcov-report/src/lib/engine/overrides.ts.html +0 -502
  180. package/workdocs/reports/coverage/lcov-report/src/lib/for-angular-common.module.ts.html +0 -298
  181. package/workdocs/reports/coverage/lcov-report/src/lib/helpers/index.html +0 -131
  182. package/workdocs/reports/coverage/lcov-report/src/lib/helpers/index.ts.html +0 -121
  183. package/workdocs/reports/coverage/lcov-report/src/lib/helpers/utils.ts.html +0 -1603
  184. package/workdocs/reports/coverage/lcov-report/src/lib/i18n/FakeLoader.ts.html +0 -157
  185. package/workdocs/reports/coverage/lcov-report/src/lib/i18n/Loader.ts.html +0 -826
  186. package/workdocs/reports/coverage/lcov-report/src/lib/i18n/index.html +0 -146
  187. package/workdocs/reports/coverage/lcov-report/src/lib/i18n/index.ts.html +0 -91
  188. package/workdocs/reports/coverage/lcov-report/src/lib/index.html +0 -131
  189. package/workdocs/reports/coverage/lcov-report/src/lib/public-apis.ts.html +0 -157
  190. package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxFormService.ts.html +0 -3460
  191. package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxMediaService.ts.html +0 -1420
  192. package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxRouterService.ts.html +0 -1243
  193. package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxTranslateService.ts.html +0 -214
  194. package/workdocs/reports/coverage/lcov-report/src/lib/services/index.html +0 -176
  195. package/workdocs/reports/coverage/lcov-report/src/lib/services/index.ts.html +0 -91
  196. package/workdocs/reports/coverage/lcov-report/src/lib/utils/DecafFakerRepository.ts.html +0 -571
  197. package/workdocs/reports/coverage/lcov-report/src/lib/utils/helpers.ts.html +0 -1711
  198. package/workdocs/reports/coverage/lcov-report/src/lib/utils/index.html +0 -146
  199. package/workdocs/reports/coverage/lcov-report/src/lib/utils/index.ts.html +0 -124
  200. package/workdocs/reports/coverage/lcov-report/src/main.ts.html +0 -100
  201. package/workdocs/reports/coverage/lcov-report/src/polyfills.ts.html +0 -271
  202. package/workdocs/reports/coverage/lcov-report/src/stories/Configure.stories.ts.html +0 -1156
  203. package/workdocs/reports/coverage/lcov-report/src/stories/button.component.ts.html +0 -229
  204. package/workdocs/reports/coverage/lcov-report/src/stories/button.stories.ts.html +0 -235
  205. package/workdocs/reports/coverage/lcov-report/src/stories/crud-field.stories.ts.html +0 -325
  206. package/workdocs/reports/coverage/lcov-report/src/stories/header.stories.ts.html +0 -181
  207. package/workdocs/reports/coverage/lcov-report/src/stories/index.html +0 -281
  208. package/workdocs/reports/coverage/lcov-report/src/stories/list.stories.ts.html +0 -289
  209. package/workdocs/reports/coverage/lcov-report/src/stories/login.page.stories.ts.html +0 -175
  210. package/workdocs/reports/coverage/lcov-report/src/stories/model-renderer.stories.ts.html +0 -259
  211. package/workdocs/reports/coverage/lcov-report/src/stories/page.component.ts.html +0 -331
  212. package/workdocs/reports/coverage/lcov-report/src/stories/page.stories.ts.html +0 -193
  213. package/workdocs/reports/coverage/lcov-report/src/stories/setup.ts.html +0 -127
  214. package/workdocs/reports/coverage/lcov-report/src/stories/utils.ts.html +0 -247
  215. package/workdocs/reports/coverage/lcov-report/src/tests/index.html +0 -116
  216. package/workdocs/reports/coverage/lcov-report/src/tests/karmaErrorParser.ts.html +0 -190
  217. package/workdocs/reports/coverage/lcov-report/src/typings.d.ts.html +0 -88
  218. package/workdocs/reports/coverage/lcov-report/src/zone-flags.ts.html +0 -103
  219. package/workdocs/reports/coverage/lcov.info +0 -7898
  220. package/workdocs/reports/data/.gitkeep +0 -1
  221. package/workdocs/reports/html/.gitkeep +0 -0
  222. package/workdocs/reports/html/jest-html-reporters-attach/test-report/index.js +0 -3
  223. package/workdocs/reports/html/jest-html-reporters-attach/test-report/result.js +0 -1
  224. package/workdocs/reports/html/test-report.html +0 -1
  225. package/workdocs/reports/images/.gitkeep +0 -1
  226. package/workdocs/reports/jest.coverage.config.ts +0 -43
  227. package/workdocs/reports/junit/junit-report.xml +0 -91
  228. package/workdocs/resources/.gitlock +0 -0
  229. package/workdocs/resources/diagram-Actor.png +0 -0
  230. package/workdocs/resources/diagram-banner.png +0 -0
  231. package/workdocs/resources/diagram.png +0 -0
  232. package/workdocs/tutorials/Contributing.md +0 -64
  233. package/workdocs/tutorials/Documentation.md +0 -340
  234. package/workdocs/tutorials/For Developers.md +0 -337
  235. package/workdocs/uml/diagram.puml +0 -11
  236. package/www/1049.10b030f0de36543b.js +0 -1
  237. package/www/1102.67cedfb3e29f0a05.js +0 -1
  238. package/www/1107.6b592a1672821270.js +0 -1
  239. package/www/1459.cabc18e941afa5d7.js +0 -1
  240. package/www/1577.5221deebe3501e43.js +0 -1
  241. package/www/2075.b6dc4fbb89dd6afc.js +0 -1
  242. package/www/2348.c4cc27dadbec70ec.js +0 -1
  243. package/www/2375.318d0b24ab346271.js +0 -1
  244. package/www/2415.618d6968ffda319c.js +0 -1
  245. package/www/2460.1d97c6f48b898ee2.js +0 -1
  246. package/www/2560.2e7000dcf80b6b2c.js +0 -1
  247. package/www/2585.274d59d52bafc7ed.js +0 -1
  248. package/www/2885.d99b86afd1ff7aa8.js +0 -1
  249. package/www/3162.bbc401f4a5f82460.js +0 -1
  250. package/www/323.f64c512be5c8d797.js +0 -1
  251. package/www/3238.a3e7e8004c6b6667.js +0 -1
  252. package/www/3506.8c03f5589b33a4a6.js +0 -1
  253. package/www/3511.56b7e49bb6c2c936.js +0 -1
  254. package/www/3519.84fbb67dc803f702.js +0 -1
  255. package/www/3675.7ebfdcf145052232.js +0 -1
  256. package/www/3814.765c1794e1be63de.js +0 -1
  257. package/www/3rdpartylicenses.txt +0 -1344
  258. package/www/4171.a974bdbf9c97e4e1.js +0 -1
  259. package/www/4183.41ef1def450a2cc0.js +0 -1
  260. package/www/4406.0b2dd3839b8c1417.js +0 -1
  261. package/www/441.e1031657c7e5f0ff.js +0 -1
  262. package/www/4463.6ad7b857e5f34009.js +0 -1
  263. package/www/4591.42f34534d38b9b31.js +0 -1
  264. package/www/4699.8df8ea9806163d4c.js +0 -1
  265. package/www/5100.ed6483c55a157d67.js +0 -1
  266. package/www/5193.15ea6938534eceb1.js +0 -1
  267. package/www/5197.6733853529768a45.js +0 -1
  268. package/www/5222.8439a641c2c4b1c1.js +0 -1
  269. package/www/5373.d7878f708309f038.js +0 -1
  270. package/www/5467.f0e21031db47308c.js +0 -1
  271. package/www/5712.b08cf436ee8145ce.js +0 -1
  272. package/www/5887.3d038f564e925abb.js +0 -1
  273. package/www/5949.37330f20e95dee79.js +0 -1
  274. package/www/6024.c10cc3d1b341c748.js +0 -1
  275. package/www/6433.360fcff952bde822.js +0 -1
  276. package/www/6499.60169da9869db697.js +0 -1
  277. package/www/6521.fab1f34bfe6b8200.js +0 -1
  278. package/www/6631.eaa711da6e0aeed9.js +0 -1
  279. package/www/6717.9d970c383bb0cf1c.js +0 -1
  280. package/www/6840.7317cd962ab23932.js +0 -1
  281. package/www/7030.d115d82ca7468a4e.js +0 -1
  282. package/www/7076.cce20ed5c79ff305.js +0 -1
  283. package/www/7179.c0545989ce869b3d.js +0 -1
  284. package/www/7240.69aeb484d78eb24d.js +0 -1
  285. package/www/7372.94c62459e34f7303.js +0 -1
  286. package/www/7402.983a5ecff61e9a5d.js +0 -1
  287. package/www/7428.527ac48035a2f915.js +0 -1
  288. package/www/7676.d7db23d350e4b096.js +0 -1
  289. package/www/770.80af87d5eb0075d3.js +0 -1
  290. package/www/7720.0701576cb9966779.js +0 -1
  291. package/www/7927.ee869d0dc478250a.js +0 -1
  292. package/www/8066.894688fbb2e5c832.js +0 -1
  293. package/www/8193.7f09ecd40b6d42c2.js +0 -1
  294. package/www/8255.158098a6302c91c2.js +0 -1
  295. package/www/8314.596c1ccf26b9c93a.js +0 -1
  296. package/www/8357.c5406b92e6933d7a.js +0 -1
  297. package/www/8477.a3ccc11c25a642d3.js +0 -1
  298. package/www/8487.93b6f7465ae1b7ac.js +0 -1
  299. package/www/8584.b77ad478a5a7ac2a.js +0 -1
  300. package/www/8805.a87413652185ff8f.js +0 -1
  301. package/www/8814.b489a78ae8e926c4.js +0 -1
  302. package/www/8970.234b3db1f97528fe.js +0 -1
  303. package/www/9013.c2e6ba17a915bdd6.js +0 -1
  304. package/www/9073.16c4e42482d55a3c.js +0 -1
  305. package/www/9344.7d2d24b194b794e2.js +0 -1
  306. package/www/9364.9a028036dd89e3e7.js +0 -1
  307. package/www/944.7e4317348c48d4f4.js +0 -1
  308. package/www/964.9a979e1c1aad0f5b.js +0 -1
  309. package/www/9657.fbb680ad1064e91a.js +0 -1
  310. package/www/9956.2d00a2153e9a7799.js +0 -1
  311. package/www/9977.068cd5561462bc99.js +0 -1
  312. package/www/assets/i18n/en.json +0 -210
  313. package/www/assets/i18n/ew/en.json +0 -346
  314. package/www/assets/i18n/pt.json +0 -186
  315. package/www/assets/icons/icon-128.webp +0 -0
  316. package/www/assets/icons/icon-192.webp +0 -0
  317. package/www/assets/icons/icon-256.webp +0 -0
  318. package/www/assets/icons/icon-48.webp +0 -0
  319. package/www/assets/icons/icon-512.webp +0 -0
  320. package/www/assets/icons/icon-72.webp +0 -0
  321. package/www/assets/icons/icon-96.webp +0 -0
  322. package/www/assets/images/angular-logo.svg +0 -45
  323. package/www/assets/images/apple-touch-icon.png +0 -0
  324. package/www/assets/images/decaf-logo-black.svg +0 -22
  325. package/www/assets/images/decaf-logo-contrast.svg +0 -54
  326. package/www/assets/images/decaf-logo-white.svg +0 -22
  327. package/www/assets/images/decaf-logo.svg +0 -54
  328. package/www/assets/images/ew/product.txt +0 -1
  329. package/www/assets/images/favicon-contrast.svg +0 -7
  330. package/www/assets/images/favicon.png +0 -0
  331. package/www/assets/images/favicon.svg +0 -29
  332. package/www/assets/images/icons/document.svg +0 -7
  333. package/www/assets/images/icons/edit.svg +0 -1
  334. package/www/assets/images/icons/logout.svg +0 -4
  335. package/www/assets/images/icons/menu-collapse.svg +0 -5
  336. package/www/assets/images/icons/menu.svg +0 -3
  337. package/www/assets/images/icons/moon-stars.svg +0 -5
  338. package/www/assets/images/icons/trash.svg +0 -1
  339. package/www/cli-module.ts +0 -139
  340. package/www/common.e50b5f8708aca9a5.js +0 -1
  341. package/www/index.html +0 -29
  342. package/www/main.7814262e404641fd.js +0 -1
  343. package/www/polyfills.4c1e087fffe784e8.js +0 -1
  344. package/www/runtime.e81aa7ecff7177cd.js +0 -1
  345. package/www/styles.5a3cd83eba16afc9.css +0 -4
  346. package/www/tabler-icons.bfabe54eef86ae62.woff +0 -0
  347. package/www/tabler-icons.d9f65ab9439b4ffc.ttf +0 -0
  348. package/www/tabler-icons.f17d2c3b34a5deaa.woff2 +0 -0
  349. /package/{dist/lib/assets → assets}/i18n/en.json +0 -0
  350. /package/{dist/lib/assets → assets}/i18n/ew/en.json +0 -0
  351. /package/{dist/lib/assets → assets}/i18n/pt.json +0 -0
  352. /package/{dist/lib/assets → assets}/icons/icon-128.webp +0 -0
  353. /package/{dist/lib/assets → assets}/icons/icon-192.webp +0 -0
  354. /package/{dist/lib/assets → assets}/icons/icon-256.webp +0 -0
  355. /package/{dist/lib/assets → assets}/icons/icon-48.webp +0 -0
  356. /package/{dist/lib/assets → assets}/icons/icon-512.webp +0 -0
  357. /package/{dist/lib/assets → assets}/icons/icon-72.webp +0 -0
  358. /package/{dist/lib/assets → assets}/icons/icon-96.webp +0 -0
  359. /package/{dist/lib/assets → assets}/images/angular-logo.svg +0 -0
  360. /package/{dist/lib/assets → assets}/images/apple-touch-icon.png +0 -0
  361. /package/{dist/lib/assets → assets}/images/decaf-logo-black.svg +0 -0
  362. /package/{dist/lib/assets → assets}/images/decaf-logo-contrast.svg +0 -0
  363. /package/{dist/lib/assets → assets}/images/decaf-logo-white.svg +0 -0
  364. /package/{dist/lib/assets → assets}/images/decaf-logo.svg +0 -0
  365. /package/{dist/lib/assets → assets}/images/ew/product.txt +0 -0
  366. /package/{dist/lib/assets → assets}/images/favicon-contrast.svg +0 -0
  367. /package/{dist/lib/assets → assets}/images/favicon.png +0 -0
  368. /package/{dist/lib/assets → assets}/images/favicon.svg +0 -0
  369. /package/{dist/lib/assets → assets}/images/icons/document.svg +0 -0
  370. /package/{dist/lib/assets → assets}/images/icons/edit.svg +0 -0
  371. /package/{dist/lib/assets → assets}/images/icons/logout.svg +0 -0
  372. /package/{dist/lib/assets → assets}/images/icons/menu-collapse.svg +0 -0
  373. /package/{dist/lib/assets → assets}/images/icons/menu.svg +0 -0
  374. /package/{dist/lib/assets → assets}/images/icons/moon-stars.svg +0 -0
  375. /package/{dist/lib/assets → assets}/images/icons/trash.svg +0 -0
@@ -7,13 +7,13 @@ import { ValidationKeys, DEFAULT_PATTERNS, VALIDATION_PARENT_KEY, Primitives, Mo
7
7
  import { OperationKeys, InternalError, NotFoundError } from '@decaf-ts/db-decorators';
8
8
  import * as i1 from '@angular/forms';
9
9
  import { FormGroup, FormControl, FormArray, AbstractControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
10
- import { Logging, LoggedClass, sf } from '@decaf-ts/logging';
11
- import { InjectableRegistryImp } from '@decaf-ts/injectable-decorators';
12
10
  import { Repository, OrderDirection, Condition } from '@decaf-ts/core';
13
11
  import { uses, Metadata, apply, metadata } from '@decaf-ts/decoration';
12
+ import { Logging, LoggedClass, sf } from '@decaf-ts/logging';
14
13
  import { AnimationController, provideIonicAngular, LoadingController, IonIcon, IonButton, IonModal, IonSpinner, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar, IonInput, IonItem, IonCheckbox, IonRadioGroup, IonRadio, IonSelect, IonSelectOption, IonLabel, IonBadge, IonText, IonTextarea, IonCard, IonCardHeader, IonCardContent, IonCardTitle, IonCardSubtitle, IonList, IonReorder, IonReorderGroup, IonSearchbar, IonChip, IonRefresher, IonThumbnail, IonSkeletonText, IonRefresherContent, IonInfiniteScroll, IonInfiniteScrollContent, IonListHeader, IonItemSliding, IonItemOptions, IonItemOption, IonPopover, NavController } from '@ionic/angular/standalone';
14
+ import { InjectableRegistryImp } from '@decaf-ts/injectable-decorators';
15
15
  import { faker } from '@faker-js/faker';
16
- import { forkJoin, Subject, BehaviorSubject, fromEvent, of, merge, Observable, timer, firstValueFrom, shareReplay as shareReplay$1, takeUntil as takeUntil$1, debounceTime } from 'rxjs';
16
+ import { forkJoin, Subject, BehaviorSubject, fromEvent, of, merge, Observable, timer, firstValueFrom, debounceTime, shareReplay as shareReplay$1, takeUntil as takeUntil$1 } from 'rxjs';
17
17
  import { Title, DomSanitizer } from '@angular/platform-browser';
18
18
  import { Router, NavigationStart, NavigationEnd, ActivatedRoute } from '@angular/router';
19
19
  import { MenuController } from '@ionic/angular';
@@ -389,12 +389,16 @@ function getInjectablesRegistry() {
389
389
  * @memberOf module:for-angular
390
390
  */
391
391
  function isDevelopmentMode(context = 'localhost') {
392
- if (!context)
393
- return isDevMode();
392
+ const devMode = isDevMode();
394
393
  const win = getWindow();
395
- return (isDevMode() ||
396
- win?.['env']?.['CONTEXT'].toLowerCase() !== context.toLowerCase() ||
397
- win?.['location']?.hostname?.includes(context));
394
+ const env = win?.['env'] || win?.['ENV'];
395
+ const { protocol } = win.location || {};
396
+ if (!env || !context) {
397
+ if (protocol.includes('https'))
398
+ return false;
399
+ return devMode;
400
+ }
401
+ return env?.['CONTEXT'].toLowerCase() !== context.toLowerCase() || win?.['location']?.hostname?.includes(context);
398
402
  }
399
403
  /**
400
404
  * @description Dispatches a custom event to the document window
@@ -595,9 +599,7 @@ function getLocaleLanguage() {
595
599
  * @memberOf module:for-angular
596
600
  */
597
601
  function generateRandomValue(length = 8, onlyNumbers = false) {
598
- const chars = onlyNumbers
599
- ? '0123456789'
600
- : 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
602
+ const chars = onlyNumbers ? '0123456789' : 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
601
603
  let result = '';
602
604
  for (let i = 0; i < length; i++)
603
605
  result += chars.charAt(Math.floor(Math.random() * chars.length));
@@ -718,9 +720,7 @@ function itemMapper(item, mapper, props) {
718
720
  }
719
721
  else {
720
722
  for (const propValue of arrayValue)
721
- value = !value
722
- ? item[propValue]
723
- : (typeof value === 'string' ? JSON.parse(value) : value)[propValue];
723
+ value = !value ? item[propValue] : (typeof value === 'string' ? JSON.parse(value) : value)[propValue];
724
724
  if (isValidDate(new Date(value)))
725
725
  value = `${formatDate(value)}`;
726
726
  accum[key] = value === null || value === undefined ? prop : value;
@@ -826,7 +826,7 @@ async function isDarkMode() {
826
826
  function filterString(original, value, contain = true) {
827
827
  if (typeof original === Primitives.STRING)
828
828
  original = original.split(' ');
829
- return (original.filter((str) => contain ? str.includes(value) : !str.includes(value)) || []).join(' ');
829
+ return (original.filter((str) => (contain ? str.includes(value) : !str.includes(value))) || []).join(' ');
830
830
  }
831
831
  /**
832
832
  * @summary Retrieves the icon associated with a menu item based on its label.
@@ -3702,6 +3702,7 @@ class NgxRepositoryDirective extends DecafComponent {
3702
3702
  */
3703
3703
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3704
3704
  this.repositoryObserverSubject = new Subject();
3705
+ this.destroySubscriptions$ = new Subject();
3705
3706
  }
3706
3707
  async initialize() {
3707
3708
  if (this.repository) {
@@ -3741,11 +3742,37 @@ class NgxRepositoryDirective extends DecafComponent {
3741
3742
  return this._context;
3742
3743
  }
3743
3744
  async refresh(model) {
3745
+ if (this.repository) {
3746
+ this.observe();
3747
+ }
3744
3748
  if (model && Model.isModel(model)) {
3745
3749
  this.model = Model.build(model, this.modelName);
3746
3750
  this._data = model;
3747
3751
  }
3748
3752
  }
3753
+ observe() {
3754
+ if (!this.repositoryObserver) {
3755
+ this.repositoryObserver = {
3756
+ refresh: async (...args) => this.handleRepositoryRefresh(...args),
3757
+ };
3758
+ try {
3759
+ // const observerHandler = (this._repository as DecafRepository<Model>)['observerHandler'];
3760
+ // if (!observerHandler)
3761
+ // (this._repository as DecafRepository<Model>).observe(this.repositoryObserver);
3762
+ const observerHandler = this.repository?.['observerHandler'];
3763
+ if (!observerHandler?.observers?.length) {
3764
+ this.repository?.observe(this.repositoryObserver);
3765
+ this.log.for(this.observe).info(`Registered repository observer for model ${this.modelName}`);
3766
+ this.repositoryObserverSubject
3767
+ .pipe(debounceTime(100), shareReplay$1(1), takeUntil$1(this.destroySubscriptions$))
3768
+ .subscribe(([model, action, uid, data]) => this.handleObserveEvent(data, model, action, uid));
3769
+ }
3770
+ }
3771
+ catch (error) {
3772
+ this.log.info(error?.message);
3773
+ }
3774
+ }
3775
+ }
3749
3776
  buildCondition(attr) {
3750
3777
  if (!attr) {
3751
3778
  attr = (this.filterBy || this.pk);
@@ -3773,9 +3800,7 @@ class NgxRepositoryDirective extends DecafComponent {
3773
3800
  if (pk && this._context) {
3774
3801
  pk = Model.pk(this._context.class);
3775
3802
  }
3776
- data = data
3777
- .map((item) => item[pk])
3778
- .filter(Boolean);
3803
+ data = data.map((item) => item[pk]).filter(Boolean);
3779
3804
  }
3780
3805
  else {
3781
3806
  data = [data];
@@ -3864,9 +3889,7 @@ class NgxRepositoryDirective extends DecafComponent {
3864
3889
  if (!operation) {
3865
3890
  operation = this.operation;
3866
3891
  }
3867
- operation = ([OperationKeys.READ, OperationKeys.DELETE].includes(operation)
3868
- ? OperationKeys.DELETE
3869
- : operation.toLowerCase());
3892
+ operation = ([OperationKeys.READ, OperationKeys.DELETE].includes(operation) ? OperationKeys.DELETE : operation.toLowerCase());
3870
3893
  if (Array.isArray(data))
3871
3894
  return data.map((item) => this.buildTransactionModel(item, repository, operation));
3872
3895
  const pk = Model.pk(repository.class);
@@ -3878,11 +3901,7 @@ class NgxRepositoryDirective extends DecafComponent {
3878
3901
  const uid = this.parsePkValue(operation === OperationKeys.DELETE ? data[pk] : modelId, pkType);
3879
3902
  if (operation !== OperationKeys.DELETE) {
3880
3903
  const properties = Metadata.properties(repository.class);
3881
- const relation = pk === this.pk
3882
- ? {}
3883
- : properties.includes(this.pk) && !data[this.pk]
3884
- ? { [this.pk]: modelId }
3885
- : {};
3904
+ const relation = pk === this.pk ? {} : properties.includes(this.pk) && !data[this.pk] ? { [this.pk]: modelId } : {};
3886
3905
  if (!String(data?.[pk] || '').trim().length) {
3887
3906
  data[pk] = undefined;
3888
3907
  }
@@ -3895,9 +3914,7 @@ class NgxRepositoryDirective extends DecafComponent {
3895
3914
  return this.indexes;
3896
3915
  }
3897
3916
  parsePkValue(value, type) {
3898
- return [Primitives.NUMBER, Primitives.BIGINT].includes(type.toLowerCase())
3899
- ? Number(value)
3900
- : value;
3917
+ return [Primitives.NUMBER, Primitives.BIGINT].includes(type.toLowerCase()) ? Number(value) : value;
3901
3918
  }
3902
3919
  getModelConstrutor(model) {
3903
3920
  return Model.get(typeof model === Primitives.STRING ? String(model) : model?.constructor.name);
@@ -3910,9 +3927,7 @@ class NgxRepositoryDirective extends DecafComponent {
3910
3927
  return Metadata.type(constructor, prop)?.name;
3911
3928
  }
3912
3929
  catch (error) {
3913
- this.log
3914
- .for(this)
3915
- .info(`${error?.message || String(error)}. Tryng get with table Name`);
3930
+ this.log.for(this).info(`${error?.message || String(error)}. Tryng get with table Name`);
3916
3931
  constructor = Model.get(Model.tableName(this.repository.class));
3917
3932
  return Metadata.type(constructor, prop)?.name;
3918
3933
  }
@@ -3930,9 +3945,9 @@ class NgxRepositoryDirective extends DecafComponent {
3930
3945
  * @returns {Promise<void>}
3931
3946
  */
3932
3947
  async handleRepositoryRefresh(...args) {
3933
- const [modelInstance, event, uid] = args;
3934
- if ([OperationKeys.CREATE, OperationKeys.DELETE].includes(event))
3935
- return this.handleObserveEvent(modelInstance, event, uid);
3948
+ const [model, action, uid, data] = args;
3949
+ if ([OperationKeys.CREATE, OperationKeys.DELETE].includes(action))
3950
+ return this.handleObserveEvent(data, model, action, uid, data);
3936
3951
  return this.repositoryObserverSubject.next(args);
3937
3952
  }
3938
3953
  async handleObserveEvent(...args) {
@@ -4336,7 +4351,6 @@ class NgxComponentDirective extends NgxRepositoryDirective {
4336
4351
  * @default WindowColorSchemes.light
4337
4352
  */
4338
4353
  this.colorSchema = WindowColorSchemes.light;
4339
- this.destroySubscriptions$ = new Subject();
4340
4354
  this.value = undefined;
4341
4355
  this.componentName = componentName || this.constructor.name || 'NgxComponentDirective';
4342
4356
  this.localeRoot = localeRoot;
@@ -4441,8 +4455,9 @@ class NgxComponentDirective extends NgxRepositoryDirective {
4441
4455
  if (this.model && !this.pk)
4442
4456
  this.pk = pk;
4443
4457
  this.pkType = pkType;
4444
- if (!this.modelName)
4458
+ if (!this.modelName) {
4445
4459
  this.modelName = repository.class.name;
4460
+ }
4446
4461
  }
4447
4462
  }
4448
4463
  }
@@ -11528,10 +11543,7 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
11528
11543
  * @memberOf ListComponent
11529
11544
  */
11530
11545
  async ngOnInit() {
11531
- this.initialized = false;
11532
- this.repositoryObserver = {
11533
- refresh: async (...args) => this.handleRepositoryRefresh(...args),
11534
- };
11546
+ // this.initialized = false;
11535
11547
  // this.router.events.subscribe(async event => {
11536
11548
  // if (event instanceof NavigationStart)
11537
11549
  // await super.ngOnDestroy();
@@ -11541,9 +11553,6 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
11541
11553
  this.clickItemSubject
11542
11554
  .pipe(debounceTime(100), shareReplay$1(1), takeUntil$1(this.destroySubscriptions$))
11543
11555
  .subscribe((event) => this.clickEventEmit(event));
11544
- this.repositoryObserverSubject
11545
- .pipe(debounceTime(100), shareReplay$1(1), takeUntil$1(this.destroySubscriptions$))
11546
- .subscribe(([modelInstance, event, uid]) => this.handleObserveEvent(modelInstance, event, uid));
11547
11556
  this.limit = Number(this.limit);
11548
11557
  this.start = Number(this.start);
11549
11558
  this.enableFilter = stringToBoolean(this.enableFilter);
@@ -11593,13 +11602,16 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
11593
11602
  if (this._repository && this.repositoryObserver) {
11594
11603
  const repo = this._repository;
11595
11604
  //TODO: fix check observerHandler
11596
- const observeHandler = repo['observerHandler'];
11597
- if (observeHandler && observeHandler?.observers?.length) {
11598
- try {
11599
- repo.unObserve(this.repositoryObserver);
11600
- }
11601
- catch (error) {
11602
- this.log.info(error?.message);
11605
+ if (repo) {
11606
+ const observeHandler = repo['observerHandler'];
11607
+ if (observeHandler && observeHandler?.observers?.length) {
11608
+ try {
11609
+ repo.unObserve(this.repositoryObserver);
11610
+ this.log.info(`Repository observer detached successfully for repository ${repo.class.name}`);
11611
+ }
11612
+ catch (error) {
11613
+ this.log.info(error?.message);
11614
+ }
11603
11615
  }
11604
11616
  }
11605
11617
  }
@@ -11684,6 +11696,7 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
11684
11696
  * @memberOf ListComponent
11685
11697
  */
11686
11698
  async refresh(event = false) {
11699
+ await super.refresh();
11687
11700
  // if (typeof force !== 'boolean' && force.type === ComponentEventNames.BackButtonClickEvent) {
11688
11701
  // const {refresh} = (force as CustomEvent).detail;
11689
11702
  // if (!refresh)
@@ -11730,18 +11743,19 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
11730
11743
  * @returns {Promise<void>}
11731
11744
  * @memberOf ListComponent
11732
11745
  */
11733
- async handleObserveEvent(clazz, event, uid) {
11746
+ async handleObserveEvent(data, constructor, event, uid) {
11734
11747
  if (event === OperationKeys.CREATE) {
11735
11748
  if (uid) {
11736
- await this.handleCreate(uid);
11749
+ await this.handleCreate(data, uid);
11737
11750
  }
11738
11751
  else {
11739
11752
  await this.refresh(true);
11740
11753
  }
11741
11754
  }
11742
11755
  else {
11743
- if (event === OperationKeys.UPDATE)
11744
- await this.handleUpdate(uid);
11756
+ if (event === OperationKeys.UPDATE) {
11757
+ await this.handleUpdate(data, uid);
11758
+ }
11745
11759
  if (event === OperationKeys.DELETE)
11746
11760
  this.handleDelete(uid);
11747
11761
  this.refreshEventEmit();
@@ -11772,9 +11786,11 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
11772
11786
  * @param {string | number} uid - The ID of the item to create.
11773
11787
  * @returns {Promise<void>} A promise that resolves when the item is created and added to the list.
11774
11788
  */
11775
- async handleCreate(uid) {
11776
- const result = await this._repository?.read(uid);
11777
- const item = (await this.mapResults([result]))[0];
11789
+ async handleCreate(data, uid) {
11790
+ if (!data || !Object.keys(data).length) {
11791
+ data = (await this._repository?.read(uid));
11792
+ }
11793
+ const item = (await this.mapResults([data]))[0];
11778
11794
  this.items = this.data = [item, ...(this.items || [])];
11779
11795
  }
11780
11796
  /**
@@ -11786,8 +11802,10 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
11786
11802
  * @private
11787
11803
  * @memberOf ListComponent
11788
11804
  */
11789
- async handleUpdate(uid) {
11790
- const item = await this._repository?.read(uid);
11805
+ async handleUpdate(item, uid) {
11806
+ if (!item || !Object.keys(item).length) {
11807
+ item = (await this._repository?.read(uid));
11808
+ }
11791
11809
  // const item: KeyValue = this.itemMapper((await this._repository?.read(uid)) || {}, this.mapper);
11792
11810
  this.data = [];
11793
11811
  this.changeDetectorRef.detectChanges();
@@ -12017,10 +12035,7 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
12017
12035
  */
12018
12036
  async getFromRequest(force = false, start, limit) {
12019
12037
  let data = [...(this.data || [])];
12020
- if (!this.data?.length ||
12021
- force ||
12022
- this.searchValue?.length ||
12023
- !!this.searchValue) {
12038
+ if (!this.data?.length || force || this.searchValue?.length || !!this.searchValue) {
12024
12039
  // (self.data as ListItem[]) = [];
12025
12040
  if (!this.searchValue?.length && !this.searchValue) {
12026
12041
  if (!this.source && !this.data?.length) {
@@ -12051,9 +12066,7 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
12051
12066
  else {
12052
12067
  const data = [...(await this.parseResult(this.data))];
12053
12068
  this.items =
12054
- this.type === ListComponentsTypes.INFINITE
12055
- ? [...(this.items || []), ...(data || [])]
12056
- : [...(data || [])];
12069
+ this.type === ListComponentsTypes.INFINITE ? [...(this.items || []), ...(data || [])] : [...(data || [])];
12057
12070
  if (this.isModalChild)
12058
12071
  this.changeDetectorRef.detectChanges();
12059
12072
  }
@@ -12080,30 +12093,11 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
12080
12093
  if (!this._repository) {
12081
12094
  this._repository = this.repository;
12082
12095
  }
12083
- if (!this.repositoryObserver) {
12084
- this.repositoryObserver = {
12085
- refresh: async (...args) => this.handleRepositoryRefresh(...args),
12086
- };
12087
- }
12088
- try {
12089
- // const observerHandler = (this._repository as DecafRepository<Model>)['observerHandler'];
12090
- // if (!observerHandler)
12091
- // (this._repository as DecafRepository<Model>).observe(this.repositoryObserver);
12092
- const observerHandler = this._repository['observerHandler'];
12093
- if (!observerHandler?.observers?.length)
12094
- this._repository.observe(this.repositoryObserver);
12095
- }
12096
- catch (error) {
12097
- this.log.info(error?.message);
12098
- }
12099
12096
  const repo = this._repository;
12100
12097
  if (!this.indexes) {
12101
12098
  this.indexes = Object.keys(Model.indexes(this.model) || {});
12102
12099
  }
12103
- if (!this.data?.length ||
12104
- force ||
12105
- this.searchValue?.length ||
12106
- !!this.searchValue) {
12100
+ if (!this.data?.length || force || this.searchValue?.length || !!this.searchValue) {
12107
12101
  try {
12108
12102
  if (!this.searchValue?.length && !this.searchValue) {
12109
12103
  this.data = [];
@@ -12124,12 +12118,10 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
12124
12118
  data = [];
12125
12119
  this.changeDetectorRef.detectChanges();
12126
12120
  }
12127
- data =
12128
- this.type === ListComponentsTypes.INFINITE ? [...data.concat(request)] : [...request];
12121
+ data = this.type === ListComponentsTypes.INFINITE ? [...data.concat(request)] : [...request];
12129
12122
  }
12130
12123
  catch (error) {
12131
- this.log.error(error?.message ||
12132
- `Unable to find ${this.model} on registry. Return empty array from component`);
12124
+ this.log.error(error?.message || `Unable to find ${this.model} on registry. Return empty array from component`);
12133
12125
  }
12134
12126
  }
12135
12127
  if (data?.length) {
@@ -12253,8 +12245,7 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
12253
12245
  this.getMoreData(paginator.total || this.pages);
12254
12246
  }
12255
12247
  catch (error) {
12256
- this.log.info(error?.message ||
12257
- 'Unable to get page from paginator. Return empty array from component');
12248
+ this.log.info(error?.message || 'Unable to get page from paginator. Return empty array from component');
12258
12249
  result = [];
12259
12250
  }
12260
12251
  }
@@ -12276,8 +12267,9 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
12276
12267
  */
12277
12268
  getMoreData(length) {
12278
12269
  if (this.type === ListComponentsTypes.INFINITE) {
12279
- if (this.paginator)
12270
+ if (this.paginator) {
12280
12271
  length = length * this.limit;
12272
+ }
12281
12273
  if (length <= this.limit) {
12282
12274
  this.loadMoreData = false;
12283
12275
  }
@@ -12326,9 +12318,7 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
12326
12318
  else {
12327
12319
  let val;
12328
12320
  for (const _value of arrayValue)
12329
- val = !val
12330
- ? item[_value]
12331
- : (typeof val === Primitives.STRING ? JSON.parse(val) : val)[_value];
12321
+ val = !val ? item[_value] : (typeof val === Primitives.STRING ? JSON.parse(val) : val)[_value];
12332
12322
  if (isValidDate(new Date(val)))
12333
12323
  val = `${formatDate(val)}`;
12334
12324
  accum[key] = val === null || val === undefined ? value : val;
@@ -14105,9 +14095,8 @@ class NgxRouterService {
14105
14095
  * @memberOf RouterService
14106
14096
  */
14107
14097
  getPreviousUrl() {
14108
- const currentNavigation = this.router.getCurrentNavigation();
14109
- if (!!currentNavigation &&
14110
- currentNavigation.previousNavigation?.finalUrl?.toString() !== undefined)
14098
+ const currentNavigation = this.router.currentNavigation() || this.router.getCurrentNavigation();
14099
+ if (!!currentNavigation && currentNavigation.previousNavigation?.finalUrl?.toString() !== undefined)
14111
14100
  this.previousUrl = currentNavigation.previousNavigation?.finalUrl?.toString();
14112
14101
  return this.previousUrl;
14113
14102
  }
@@ -14205,9 +14194,7 @@ let TableComponent = class TableComponent extends ListComponent {
14205
14194
  if (aWeight !== bWeight) {
14206
14195
  return aWeight - bWeight;
14207
14196
  }
14208
- if (aWeight === 1 &&
14209
- typeof aSequence === Primitives.NUMBER &&
14210
- typeof bSequence === Primitives.NUMBER) {
14197
+ if (aWeight === 1 && typeof aSequence === Primitives.NUMBER && typeof bSequence === Primitives.NUMBER) {
14211
14198
  return aSequence - bSequence;
14212
14199
  }
14213
14200
  return 0;
@@ -14232,7 +14219,7 @@ let TableComponent = class TableComponent extends ListComponent {
14232
14219
  this.empty = Object.assign({}, DefaultListEmptyOptions, this.empty);
14233
14220
  this.repositoryObserverSubject
14234
14221
  .pipe(debounceTime(100), shareReplay$1(1), takeUntil$1(this.destroySubscriptions$))
14235
- .subscribe(([modelInstance, event, uid]) => this.handleObserveEvent(modelInstance, event, uid));
14222
+ .subscribe(([model, action, uid, data]) => this.handleObserveEvent(model, action, uid, data));
14236
14223
  this.cols = this._cols;
14237
14224
  this.getOperations();
14238
14225
  this.searchValue = undefined;
@@ -14260,8 +14247,7 @@ let TableComponent = class TableComponent extends ListComponent {
14260
14247
  }
14261
14248
  getOperations() {
14262
14249
  if (this.allowOperations) {
14263
- this.allowOperations =
14264
- this.isAllowed(OperationKeys.UPDATE) || this.isAllowed(OperationKeys.DELETE);
14250
+ this.allowOperations = this.isAllowed(OperationKeys.UPDATE) || this.isAllowed(OperationKeys.DELETE);
14265
14251
  }
14266
14252
  else {
14267
14253
  this.operations = [];
@@ -14338,9 +14324,7 @@ let TableComponent = class TableComponent extends ListComponent {
14338
14324
  return value;
14339
14325
  }
14340
14326
  catch (error) {
14341
- this.log
14342
- .for(this.itemMapper)
14343
- .error(`Error mapping child events. ${error?.message || error}`);
14327
+ this.log.for(this.itemMapper).error(`Error mapping child events. ${error?.message || error}`);
14344
14328
  }
14345
14329
  };
14346
14330
  const name = this.cols[Number(curr)];