@sumaris-net/ngx-components 2.0.0-rc3 → 2.0.0-rc31

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 (338) hide show
  1. package/README.md +3 -1
  2. package/doc/changelog.md +13 -0
  3. package/esm2020/public_api.mjs +72 -61
  4. package/esm2020/src/app/admin/admin-routing.module.mjs +6 -6
  5. package/esm2020/src/app/admin/admin.module.mjs +6 -6
  6. package/esm2020/src/app/admin/services/person.service.mjs +3 -3
  7. package/esm2020/src/app/admin/services/validator/person.validator.mjs +3 -3
  8. package/esm2020/src/app/admin/users/users.mjs +233 -0
  9. package/esm2020/src/app/admin/users/users.module.mjs +54 -0
  10. package/esm2020/src/app/core/about/about.modal.mjs +71 -0
  11. package/esm2020/src/app/core/about/about.module.mjs +34 -0
  12. package/esm2020/src/app/core/account/account.module.mjs +43 -0
  13. package/esm2020/src/app/core/account/account.page.mjs +239 -0
  14. package/esm2020/src/app/core/auth/auth.form.mjs +131 -0
  15. package/esm2020/src/app/core/auth/auth.modal.mjs +72 -0
  16. package/esm2020/src/app/core/auth/auth.module.mjs +47 -0
  17. package/esm2020/src/app/core/core.module.mjs +86 -125
  18. package/esm2020/src/app/core/core.testing.module.mjs +7 -7
  19. package/esm2020/src/app/core/form/{form-buttons-bar.component.mjs → buttons/form-buttons-bar.component.mjs} +7 -7
  20. package/esm2020/src/app/core/form/buttons/form-buttons-bar.module.mjs +35 -0
  21. package/esm2020/src/app/core/form/entity/editor.class.mjs +675 -0
  22. package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +421 -0
  23. package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +646 -0
  24. package/esm2020/src/app/core/form/{entity-metadata.component.mjs → entity/entity-metadata.component.mjs} +6 -6
  25. package/esm2020/src/app/core/form/entity/entity.module.mjs +38 -0
  26. package/esm2020/src/app/core/form/form.class.mjs +7 -4
  27. package/esm2020/src/app/core/form/form.module.mjs +66 -0
  28. package/esm2020/src/app/core/form/form.utils.mjs +3 -3
  29. package/esm2020/src/app/core/form/list/list.form.mjs +222 -0
  30. package/esm2020/src/app/core/form/list/list.module.mjs +35 -0
  31. package/esm2020/src/app/core/form/properties/properties.form.mjs +3 -3
  32. package/esm2020/src/app/core/form/properties/properties.module.mjs +35 -0
  33. package/esm2020/src/app/core/form/properties/property.validator.mjs +3 -3
  34. package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +3 -3
  35. package/esm2020/src/app/core/form/properties/testing/properties-form.testing.module.mjs +4 -4
  36. package/esm2020/src/app/core/{text-popover → form/text-popover}/testing/text-popover.testing.mjs +4 -4
  37. package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +45 -0
  38. package/esm2020/src/app/core/{text-popover → form/text-popover}/text-form.component.mjs +8 -8
  39. package/esm2020/src/app/core/{text-popover → form/text-popover}/text-popover.component.mjs +6 -6
  40. package/esm2020/src/app/core/form/text-popover/text-popover.module.mjs +40 -0
  41. package/esm2020/src/app/core/graphql/graphql.module.mjs +4 -4
  42. package/esm2020/src/app/core/graphql/graphql.service.mjs +3 -3
  43. package/esm2020/src/app/core/graphql/graphql.utils.mjs +3 -2
  44. package/esm2020/src/app/core/home/home.mjs +8 -8
  45. package/esm2020/src/app/core/home/home.module.mjs +48 -0
  46. package/esm2020/src/app/core/icon/icon.component.mjs +5 -5
  47. package/esm2020/src/app/core/icon/icon.module.mjs +4 -4
  48. package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +3 -3
  49. package/esm2020/src/app/core/install/install-upgrade-card.module.mjs +17 -15
  50. package/esm2020/src/app/core/menu/menu.component.mjs +5 -5
  51. package/esm2020/src/app/core/menu/menu.module.mjs +9 -10
  52. package/esm2020/src/app/core/menu/menu.service.mjs +3 -3
  53. package/esm2020/src/app/core/offline/update-offline-mode-card.component.mjs +4 -4
  54. package/esm2020/src/app/core/offline/update-offline-mode-card.module.mjs +35 -0
  55. package/esm2020/src/app/core/peer/select-peer.modal.mjs +4 -4
  56. package/esm2020/src/app/core/peer/select-peer.module.mjs +14 -10
  57. package/esm2020/src/app/core/register/register-confirm.page.mjs +81 -0
  58. package/esm2020/src/app/core/register/register.form.mjs +181 -0
  59. package/esm2020/src/app/core/register/register.modal.mjs +52 -0
  60. package/esm2020/src/app/core/register/register.module.mjs +17 -15
  61. package/esm2020/src/app/core/services/account.service.mjs +20 -21
  62. package/esm2020/src/app/core/services/auth-guard.service.mjs +6 -6
  63. package/esm2020/src/app/core/services/base-entity-service.class.mjs +3 -3
  64. package/esm2020/src/app/core/services/base-graphql-service.class.mjs +8 -8
  65. package/esm2020/src/app/core/services/base58.mjs +2 -2
  66. package/esm2020/src/app/core/services/config.service.mjs +3 -3
  67. package/esm2020/src/app/core/services/crypto.service.mjs +82 -97
  68. package/esm2020/src/app/core/services/local-settings.service.mjs +8 -10
  69. package/esm2020/src/app/core/services/model/referential.model.mjs +11 -3
  70. package/esm2020/src/app/core/services/network.service.mjs +4 -4
  71. package/esm2020/src/app/core/services/pipes/account.pipes.mjs +8 -8
  72. package/esm2020/src/app/core/services/pipes/department-to-string.pipe.mjs +4 -4
  73. package/esm2020/src/app/core/services/pipes/person-to-string.pipe.mjs +4 -4
  74. package/esm2020/src/app/core/services/pipes/usage-mode.pipes.mjs +8 -8
  75. package/esm2020/src/app/core/services/platform.service.mjs +9 -10
  76. package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +3 -3
  77. package/esm2020/src/app/core/services/testing/referential.validator.mjs +3 -3
  78. package/esm2020/src/app/core/services/validator/account.validator.mjs +3 -3
  79. package/esm2020/src/app/core/services/validator/base.validator.class.mjs +3 -3
  80. package/esm2020/src/app/core/services/validator/local-settings.validator.mjs +3 -3
  81. package/esm2020/src/app/core/services/validator/user-settings.validator.mjs +3 -3
  82. package/esm2020/src/app/core/settings/settings.module.mjs +34 -0
  83. package/esm2020/src/app/core/settings/settings.page.mjs +4 -4
  84. package/esm2020/src/app/core/table/actions-column.component.mjs +4 -4
  85. package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +4 -4
  86. package/esm2020/src/app/core/table/memory-table.class.mjs +3 -3
  87. package/esm2020/src/app/core/table/table-select-columns.component.mjs +3 -3
  88. package/esm2020/src/app/core/table/table.class.mjs +157 -162
  89. package/esm2020/src/app/core/table/table.module.mjs +40 -0
  90. package/esm2020/src/app/core/table/testing/table.testing.mjs +7 -7
  91. package/esm2020/src/app/core/table/testing/table.testing.module.mjs +4 -4
  92. package/esm2020/src/app/shared/audio/audio.mjs +3 -3
  93. package/esm2020/src/app/shared/audio/audio.testing.mjs +3 -3
  94. package/esm2020/src/app/shared/audio/audio.testing.module.mjs +4 -4
  95. package/esm2020/src/app/shared/capacitor/keyboard.mjs +3 -3
  96. package/esm2020/src/app/shared/dates.mjs +32 -14
  97. package/esm2020/src/app/shared/debug/debug.component.mjs +3 -3
  98. package/esm2020/src/app/shared/debug/debug.module.mjs +4 -4
  99. package/esm2020/src/app/shared/directives/autofocus.directive.mjs +3 -3
  100. package/esm2020/src/app/shared/directives/autotitle.directive.mjs +3 -3
  101. package/esm2020/src/app/shared/directives/directives.module.mjs +4 -4
  102. package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +3 -3
  103. package/esm2020/src/app/shared/directives/ng-var.directive.mjs +3 -3
  104. package/esm2020/src/app/shared/directives/resizable/resizable.component.mjs +3 -3
  105. package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +3 -3
  106. package/esm2020/src/app/shared/directives/resizable/resizable.module.mjs +4 -4
  107. package/esm2020/src/app/shared/events.mjs +2 -2
  108. package/esm2020/src/app/shared/file/file.service.mjs +6 -5
  109. package/esm2020/src/app/shared/form/field.component.mjs +3 -3
  110. package/esm2020/src/app/shared/form/loading-spinner.mjs +3 -3
  111. package/esm2020/src/app/shared/gesture/gesture-config.mjs +3 -3
  112. package/esm2020/src/app/shared/graph/graph-colors.mjs +17 -63
  113. package/esm2020/src/app/shared/guard/component-dirty.guard.mjs +3 -3
  114. package/esm2020/src/app/shared/help/help.modal.mjs +3 -3
  115. package/esm2020/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +3 -3
  116. package/esm2020/src/app/shared/hotkeys/hotkeys.service.mjs +3 -3
  117. package/esm2020/src/app/shared/hotkeys/shared-hotkeys.module.mjs +4 -4
  118. package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +4 -4
  119. package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +4 -4
  120. package/esm2020/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +3 -3
  121. package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +3 -3
  122. package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +4 -4
  123. package/esm2020/src/app/shared/image/image.module.mjs +4 -4
  124. package/esm2020/src/app/shared/image/image.service.mjs +3 -3
  125. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.config.mjs +1 -1
  126. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +6 -8
  127. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +4 -4
  128. package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +3 -3
  129. package/esm2020/src/app/shared/material/badge/badge.directive.mjs +25 -6
  130. package/esm2020/src/app/shared/material/badge/badge.module.mjs +4 -4
  131. package/esm2020/src/app/shared/material/badge/badge.test.mjs +10 -8
  132. package/esm2020/src/app/shared/material/boolean/boolean.module.mjs +4 -4
  133. package/esm2020/src/app/shared/material/boolean/material.boolean.mjs +3 -3
  134. package/esm2020/src/app/shared/material/chips/chips.module.mjs +4 -4
  135. package/esm2020/src/app/shared/material/chips/material.chips.mjs +5 -6
  136. package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +3 -3
  137. package/esm2020/src/app/shared/material/datetime/datetime.module.mjs +4 -4
  138. package/esm2020/src/app/shared/material/datetime/material.date.mjs +5 -6
  139. package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +3 -3
  140. package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +5 -6
  141. package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +5 -7
  142. package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +7 -8
  143. package/esm2020/src/app/shared/material/duration/duration.module.mjs +4 -4
  144. package/esm2020/src/app/shared/material/duration/material.duration.mjs +3 -3
  145. package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +3 -3
  146. package/esm2020/src/app/shared/material/latlong/material.latlong.module.mjs +4 -4
  147. package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +3 -3
  148. package/esm2020/src/app/shared/material/material.animations.mjs +1 -1
  149. package/esm2020/src/app/shared/material/material.module.mjs +4 -4
  150. package/esm2020/src/app/shared/material/material.testing.module.mjs +23 -11
  151. package/esm2020/src/app/shared/material/numpad/numpad.append-to-input.directive.mjs +3 -3
  152. package/esm2020/src/app/shared/material/numpad/numpad.component.mjs +3 -3
  153. package/esm2020/src/app/shared/material/numpad/numpad.container.mjs +3 -3
  154. package/esm2020/src/app/shared/material/numpad/numpad.content.mjs +3 -3
  155. package/esm2020/src/app/shared/material/numpad/numpad.directive.mjs +3 -3
  156. package/esm2020/src/app/shared/material/numpad/numpad.dom-service.mjs +3 -3
  157. package/esm2020/src/app/shared/material/numpad/numpad.module.mjs +4 -4
  158. package/esm2020/src/app/shared/material/numpad/testing/numpad.test.mjs +3 -3
  159. package/esm2020/src/app/shared/material/paginator/material.paginator-i18n.mjs +3 -3
  160. package/esm2020/src/app/shared/material/stepper/material.stepper-i18n.mjs +3 -3
  161. package/esm2020/src/app/shared/material/swipe/material.swipe.mjs +3 -3
  162. package/esm2020/src/app/shared/material/swipe/swipe.module.mjs +4 -4
  163. package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +7 -8
  164. package/esm2020/src/app/shared/observables.mjs +29 -22
  165. package/esm2020/src/app/shared/pipes/arrays.pipe.mjs +24 -24
  166. package/esm2020/src/app/shared/pipes/colors.pipe.mjs +3 -3
  167. package/esm2020/src/app/shared/pipes/date-diff-duration.pipe.mjs +8 -9
  168. package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +4 -4
  169. package/esm2020/src/app/shared/pipes/date-from-now.pipe.mjs +4 -4
  170. package/esm2020/src/app/shared/pipes/duration.pipe.mjs +4 -4
  171. package/esm2020/src/app/shared/pipes/file-size.pipe.mjs +3 -3
  172. package/esm2020/src/app/shared/pipes/form.pipes.mjs +18 -18
  173. package/esm2020/src/app/shared/pipes/highlight.pipe.mjs +4 -4
  174. package/esm2020/src/app/shared/pipes/latlong-format.pipe.mjs +9 -9
  175. package/esm2020/src/app/shared/pipes/maps.pipe.mjs +12 -12
  176. package/esm2020/src/app/shared/pipes/math.pipes.mjs +12 -12
  177. package/esm2020/src/app/shared/pipes/ng-init.pipe.mjs +3 -3
  178. package/esm2020/src/app/shared/pipes/number-format.pipe.mjs +4 -4
  179. package/esm2020/src/app/shared/pipes/pipes.module.mjs +4 -4
  180. package/esm2020/src/app/shared/pipes/property.pipes.mjs +7 -7
  181. package/esm2020/src/app/shared/pipes/string.pipes.mjs +15 -15
  182. package/esm2020/src/app/shared/pipes/translate-context.pipe.mjs +8 -8
  183. package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +15 -9
  184. package/esm2020/src/app/shared/services/progress-bar.service.mjs +3 -3
  185. package/esm2020/src/app/shared/services/storage/storage.service.mjs +3 -3
  186. package/esm2020/src/app/shared/services/translate-context.service.mjs +3 -3
  187. package/esm2020/src/app/shared/shared-routing.module.mjs +7 -7
  188. package/esm2020/src/app/shared/shared.module.mjs +9 -5
  189. package/esm2020/src/app/shared/shared.testing.module.mjs +4 -4
  190. package/esm2020/src/app/shared/testing/observable.test.mjs +95 -0
  191. package/esm2020/src/app/shared/testing/tests.page.mjs +3 -3
  192. package/esm2020/src/app/shared/toast/toast.testing.mjs +3 -3
  193. package/esm2020/src/app/shared/toast/toast.testing.module.mjs +4 -4
  194. package/esm2020/src/app/shared/toolbar/modal-toolbar.mjs +3 -3
  195. package/esm2020/src/app/shared/toolbar/toolbar.mjs +3 -3
  196. package/esm2020/src/app/shared/toolbar/toolbar.module.mjs +4 -4
  197. package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +3 -3
  198. package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +4 -4
  199. package/esm2020/src/app/shared/upload-file/upload-file-popover.component.mjs +3 -3
  200. package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +3 -3
  201. package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +3 -3
  202. package/esm2020/src/app/shared/validator/validators.mjs +4 -5
  203. package/esm2020/src/app/social/job/job.module.mjs +4 -4
  204. package/esm2020/src/app/social/job/job.service.mjs +3 -3
  205. package/esm2020/src/app/social/job/progression/job-progression.icon.mjs +3 -3
  206. package/esm2020/src/app/social/job/progression/job-progression.list.mjs +3 -3
  207. package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +3 -3
  208. package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +3 -3
  209. package/esm2020/src/app/social/job/testing/job.testing.module.mjs +4 -4
  210. package/esm2020/src/app/social/message/message.form.mjs +3 -3
  211. package/esm2020/src/app/social/message/message.modal.mjs +3 -3
  212. package/esm2020/src/app/social/message/message.module.mjs +4 -4
  213. package/esm2020/src/app/social/message/message.service.mjs +3 -3
  214. package/esm2020/src/app/social/social.module.mjs +4 -4
  215. package/esm2020/src/app/social/social.testing.module.mjs +4 -4
  216. package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +3 -3
  217. package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +6 -6
  218. package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +13 -12
  219. package/esm2020/src/app/social/user-event/testing/user-event.testing.module.mjs +4 -4
  220. package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +3 -3
  221. package/esm2020/src/app/social/user-event/user-event.module.mjs +4 -4
  222. package/esm2020/src/app/social/user-event/user-event.service.mjs +6 -8
  223. package/fesm2015/sumaris-net.ngx-components.mjs +4619 -4210
  224. package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
  225. package/fesm2020/sumaris-net.ngx-components.mjs +4548 -4129
  226. package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
  227. package/package.json +3 -2
  228. package/plugins/clovelced-plugin-audiomanagement/README.md +66 -0
  229. package/plugins/cordova-plugin-camera/README.md +703 -0
  230. package/plugins/cordova-plugin-device/README.md +309 -0
  231. package/plugins/cordova-plugin-file/README.md +848 -0
  232. package/plugins/cordova-plugin-file-transfer/README.md +598 -0
  233. package/plugins/cordova-plugin-file-transfer/doc/de/README.md +311 -0
  234. package/plugins/cordova-plugin-file-transfer/doc/es/README.md +311 -0
  235. package/plugins/cordova-plugin-file-transfer/doc/fr/README.md +270 -0
  236. package/plugins/cordova-plugin-file-transfer/doc/it/README.md +311 -0
  237. package/plugins/cordova-plugin-file-transfer/doc/ja/README.md +311 -0
  238. package/plugins/cordova-plugin-file-transfer/doc/ko/README.md +311 -0
  239. package/plugins/cordova-plugin-file-transfer/doc/pl/README.md +311 -0
  240. package/plugins/cordova-plugin-file-transfer/doc/zh/README.md +311 -0
  241. package/plugins/cordova-plugin-ionic-keyboard/README.md +220 -0
  242. package/plugins/cordova-plugin-ionic-webview/README.md +181 -0
  243. package/plugins/cordova-plugin-media-capture/README.md +626 -0
  244. package/plugins/cordova-plugin-splashscreen/README.md +387 -0
  245. package/plugins/cordova-plugin-statusbar/README.md +341 -0
  246. package/plugins/cordova-plugin-telerik-imagepicker/README.md +155 -0
  247. package/plugins/cordova-plugin-whitelist/README.md +185 -0
  248. package/plugins/cordova-sqlite-storage/README.md +1848 -0
  249. package/plugins/integrator-cordova-plugin-downloader/README.md +49 -0
  250. package/public_api.d.ts +71 -23
  251. package/src/app/admin/admin.module.d.ts +1 -1
  252. package/src/app/admin/users/{list/users.d.ts → users.d.ts} +11 -11
  253. package/src/app/admin/users/users.module.d.ts +13 -0
  254. package/src/app/core/about/{modal-about.d.ts → about.modal.d.ts} +1 -1
  255. package/src/app/core/about/about.module.d.ts +10 -0
  256. package/src/app/core/account/account.module.d.ts +11 -0
  257. package/src/app/core/account/{account.d.ts → account.page.d.ts} +5 -1
  258. package/src/app/core/auth/{form/form-auth.d.ts → auth.form.d.ts} +9 -9
  259. package/src/app/core/auth/{modal/modal-auth.d.ts → auth.modal.d.ts} +4 -4
  260. package/src/app/core/auth/auth.module.d.ts +11 -0
  261. package/src/app/core/core.module.d.ts +20 -29
  262. package/src/app/core/core.testing.module.d.ts +1 -1
  263. package/src/app/core/form/{form-buttons-bar.component.d.ts → buttons/form-buttons-bar.component.d.ts} +2 -2
  264. package/src/app/core/form/buttons/form-buttons-bar.module.d.ts +9 -0
  265. package/src/app/core/form/{editor.class.d.ts → entity/editor.class.d.ts} +11 -10
  266. package/src/app/core/form/{entity-editor-modal.class.d.ts → entity/entity-editor-modal.class.d.ts} +24 -15
  267. package/src/app/core/form/{entity-editor.class.d.ts → entity/entity-editor.class.d.ts} +10 -10
  268. package/src/app/core/form/{entity-metadata.component.d.ts → entity/entity-metadata.component.d.ts} +1 -1
  269. package/src/app/core/form/entity/entity.module.d.ts +10 -0
  270. package/src/app/core/form/form.class.d.ts +1 -0
  271. package/src/app/core/form/form.module.d.ts +13 -0
  272. package/src/app/core/form/form.utils.d.ts +2 -2
  273. package/src/app/core/form/{list.form.d.ts → list/list.form.d.ts} +4 -4
  274. package/src/app/core/form/list/list.module.d.ts +9 -0
  275. package/src/app/core/form/properties/properties.module.d.ts +9 -0
  276. package/src/app/core/{text-popover → form/text-popover}/testing/text-popover.testing.d.ts +0 -0
  277. package/src/app/core/{text-popover → form/text-popover}/testing/text-popover.testing.module.d.ts +0 -0
  278. package/src/app/core/{text-popover → form/text-popover}/text-form.component.d.ts +1 -1
  279. package/src/app/core/{text-popover → form/text-popover}/text-popover.component.d.ts +0 -0
  280. package/src/app/core/form/text-popover/text-popover.module.d.ts +10 -0
  281. package/src/app/core/home/home.module.d.ts +12 -0
  282. package/src/app/core/install/install-upgrade-card.module.d.ts +6 -7
  283. package/src/app/core/menu/menu.component.d.ts +1 -1
  284. package/src/app/core/offline/update-offline-mode-card.component.d.ts +1 -1
  285. package/src/app/core/offline/update-offline-mode-card.module.d.ts +9 -0
  286. package/src/app/core/peer/select-peer.modal.d.ts +1 -1
  287. package/src/app/core/peer/select-peer.module.d.ts +5 -4
  288. package/src/app/core/register/{confirm/confirm.d.ts → register-confirm.page.d.ts} +4 -4
  289. package/src/app/core/register/{form/form-register.d.ts → register.form.d.ts} +7 -7
  290. package/src/app/core/register/{modal/modal-register.d.ts → register.modal.d.ts} +2 -2
  291. package/src/app/core/register/register.module.d.ts +6 -6
  292. package/src/app/core/services/account.service.d.ts +5 -6
  293. package/src/app/core/services/base-graphql-service.class.d.ts +9 -8
  294. package/src/app/core/services/crypto.service.d.ts +23 -18
  295. package/src/app/core/services/model/referential.model.d.ts +6 -1
  296. package/src/app/core/settings/settings.module.d.ts +10 -0
  297. package/src/app/core/table/actions-column.component.d.ts +1 -1
  298. package/src/app/core/table/table.class.d.ts +21 -38
  299. package/src/app/core/table/table.module.d.ts +10 -0
  300. package/src/app/core/table/testing/table.testing.d.ts +1 -1
  301. package/src/app/shared/dates.d.ts +13 -3
  302. package/src/app/shared/events.d.ts +4 -4
  303. package/src/app/shared/graph/graph-colors.d.ts +8 -8
  304. package/src/app/shared/image/gallery/image-gallery.component.d.ts +1 -1
  305. package/src/app/shared/material/autocomplete/material.autocomplete.config.d.ts +1 -1
  306. package/src/app/shared/material/badge/badge.directive.d.ts +3 -1
  307. package/src/app/shared/material/badge/badge.test.d.ts +1 -0
  308. package/src/app/shared/material/datetime/material.date.d.ts +1 -1
  309. package/src/app/shared/material/datetime/material.datetime.d.ts +4 -4
  310. package/src/app/shared/material/datetime/testing/mat-date.test.d.ts +1 -0
  311. package/src/app/shared/material/material.testing.module.d.ts +9 -8
  312. package/src/app/shared/material/swipe/testing/swipe.test.d.ts +2 -3
  313. package/src/app/shared/observables.d.ts +1 -1
  314. package/src/app/shared/services/memory-entity-service.class.d.ts +5 -0
  315. package/src/app/shared/shared.module.d.ts +2 -1
  316. package/src/app/shared/testing/observable.test.d.ts +25 -0
  317. package/src/theme/_ionic.globals.scss +4 -0
  318. package/src/theme/_material.globals.scss +3 -1
  319. package/src/theme/_mixins.scss +3 -3
  320. package/esm2020/public_test_api.mjs +0 -46
  321. package/esm2020/src/app/admin/users/list/users.mjs +0 -233
  322. package/esm2020/src/app/admin/users/list/users.module.mjs +0 -58
  323. package/esm2020/src/app/core/about/modal-about.mjs +0 -71
  324. package/esm2020/src/app/core/account/account.mjs +0 -230
  325. package/esm2020/src/app/core/auth/form/form-auth.mjs +0 -131
  326. package/esm2020/src/app/core/auth/modal/modal-auth.mjs +0 -72
  327. package/esm2020/src/app/core/form/editor.class.mjs +0 -672
  328. package/esm2020/src/app/core/form/entity-editor-modal.class.mjs +0 -407
  329. package/esm2020/src/app/core/form/entity-editor.class.mjs +0 -646
  330. package/esm2020/src/app/core/form/list.form.mjs +0 -222
  331. package/esm2020/src/app/core/register/confirm/confirm.mjs +0 -81
  332. package/esm2020/src/app/core/register/form/form-register.mjs +0 -181
  333. package/esm2020/src/app/core/register/modal/modal-register.mjs +0 -52
  334. package/esm2020/src/app/core/text-popover/testing/text-popover.testing.module.mjs +0 -45
  335. package/esm2020/src/app/vendor.mjs +0 -16
  336. package/public_test_api.d.ts +0 -37
  337. package/src/app/admin/users/list/users.module.d.ts +0 -14
  338. package/src/app/vendor.d.ts +0 -11
@@ -1,17 +1,17 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Observable, Subject } from 'rxjs';
3
- import { AddToPageHistoryOptions, LocalSettingsService } from '../services/local-settings.service';
4
- import { Entity } from '../services/model/entity.model';
5
- import { UsageMode } from '../services/model/settings.model';
3
+ import { AddToPageHistoryOptions, LocalSettingsService } from '../../services/local-settings.service';
4
+ import { Entity } from '../../services/model/entity.model';
5
+ import { UsageMode } from '../../services/model/settings.model';
6
6
  import { FormGroup } from '@angular/forms';
7
7
  import { AppTabEditor, AppTabEditorOptions, IAppTabEditor } from './editor.class';
8
- import { EntityServiceLoadOptions, IEntityService } from '../../shared/services/entity-service.class';
9
- import { DateFormatPipe } from '../../shared/pipes/date-format.pipe';
10
- import { Environment } from '../../../environments/environment.class';
11
- import { HistoryPageReference } from '../services/model/history.model';
12
- import { WaitForOptions } from '../../shared/observables';
13
- import { FormErrorTranslator } from '../../shared/validator/form-error-adapter.class';
14
- import { FormErrors } from '../../shared/forms';
8
+ import { EntityServiceLoadOptions, IEntityService } from '../../../shared/services/entity-service.class';
9
+ import { DateFormatPipe } from '../../../shared/pipes/date-format.pipe';
10
+ import { Environment } from '../../../../environments/environment.class';
11
+ import { HistoryPageReference } from '../../services/model/history.model';
12
+ import { WaitForOptions } from '../../../shared/observables';
13
+ import { FormErrorTranslator } from '../../../shared/validator/form-error-adapter.class';
14
+ import { FormErrors } from '../../../shared/forms';
15
15
  import * as i0 from "@angular/core";
16
16
  export interface IAppEntityEditor extends IAppTabEditor {
17
17
  usageMode: UsageMode;
@@ -1,4 +1,4 @@
1
- import { Entity } from '../services/model/entity.model';
1
+ import { Entity } from '../../services/model/entity.model';
2
2
  import { Moment } from 'moment';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class EntityMetadataComponent {
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./entity-metadata.component";
3
+ import * as i2 from "../../../shared/shared.module";
4
+ import * as i3 from "@ngx-translate/core";
5
+ import * as i4 from "ngx-jdenticon";
6
+ export declare class AppEntityFormModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppEntityFormModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppEntityFormModule, [typeof i1.EntityMetadataComponent], [typeof i2.SharedModule, typeof i3.TranslateModule, typeof i4.NgxJdenticonModule], [typeof i3.TranslateModule, typeof i1.EntityMetadataComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppEntityFormModule>;
10
+ }
@@ -63,6 +63,7 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
63
63
  onlySelf?: boolean;
64
64
  emitEvent?: boolean;
65
65
  }): void;
66
+ get destroyed(): boolean;
66
67
  debug: boolean;
67
68
  tabindex: number;
68
69
  errorTranslatorOptions: FormErrorTranslatorOptions;
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../shared/shared.module";
3
+ import * as i2 from "@ngx-translate/core";
4
+ import * as i3 from "./entity/entity.module";
5
+ import * as i4 from "./list/list.module";
6
+ import * as i5 from "./properties/properties.module";
7
+ import * as i6 from "./text-popover/text-popover.module";
8
+ import * as i7 from "./buttons/form-buttons-bar.module";
9
+ export declare class AppFormModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppFormModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppFormModule, never, [typeof i1.SharedModule, typeof i2.TranslateModule, typeof i3.AppEntityFormModule, typeof i4.AppListFormModule, typeof i5.AppPropertiesFormModule, typeof i6.AppTextPopoverModule, typeof i7.AppFormButtonsBarModule], [typeof i2.TranslateModule, typeof i3.AppEntityFormModule, typeof i4.AppListFormModule, typeof i5.AppPropertiesFormModule, typeof i6.AppTextPopoverModule, typeof i7.AppFormButtonsBarModule]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppFormModule>;
13
+ }
@@ -2,7 +2,7 @@ import { AbstractControl, UntypedFormArray, UntypedFormBuilder, UntypedFormGroup
2
2
  import { Entity } from '../services/model/entity.model';
3
3
  import { filterNumberInput, selectInputContent } from '../../shared/inputs';
4
4
  import { WaitForOptions } from '../../shared/observables';
5
- import { pushValueInArray, clearValueInArray, copyEntity2Form, disableControls, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
5
+ import { clearValueInArray, copyEntity2Form, disableControls, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, pushValueInArray, removeValueInArray, resizeArray, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
6
6
  export declare type IAppFormGetter = () => IAppForm;
7
7
  export declare interface OnReady {
8
8
  ngOnReady(): any;
@@ -258,7 +258,7 @@ export declare class AppFormUtils {
258
258
  static updateValueAndValidity: typeof updateValueAndValidity;
259
259
  static getFormErrors: typeof getFormErrors;
260
260
  static isForm(object: any): object is IAppForm;
261
- static addValueInArray: typeof pushValueInArray;
261
+ static pushValueInArray: typeof pushValueInArray;
262
262
  static removeValueInArray: typeof removeValueInArray;
263
263
  static resizeArray: typeof resizeArray;
264
264
  static clearValueInArray: typeof clearValueInArray;
@@ -2,9 +2,9 @@ import { ChangeDetectorRef, EventEmitter, Injector, OnInit } from '@angular/core
2
2
  import { AbstractControl, UntypedFormArray, UntypedFormBuilder, UntypedFormGroup, FormGroupDirective } from '@angular/forms';
3
3
  import { DateAdapter } from '@angular/material/core';
4
4
  import { Moment } from 'moment';
5
- import { LocalSettingsService } from '../services/local-settings.service';
6
- import { AppForm } from './form.class';
7
- import { FormArrayHelper, FormArrayHelperOptions } from './form.utils';
5
+ import { LocalSettingsService } from '../../services/local-settings.service';
6
+ import { AppForm } from '../form.class';
7
+ import { FormArrayHelper, FormArrayHelperOptions } from '../form.utils';
8
8
  import { SelectionModel } from '@angular/cdk/collections';
9
9
  import { Observable } from 'rxjs';
10
10
  import { Color } from '@ionic/core';
@@ -34,7 +34,7 @@ export declare class AppListForm<T = any> extends AppForm<T[]> implements OnInit
34
34
  options: AppListFormOptions<T>;
35
35
  displayWithFn: (item: any) => string;
36
36
  equalsFn: (v1: T, v2: T) => boolean;
37
- onNewItem: EventEmitter<UIEvent>;
37
+ onNewItem: EventEmitter<Event>;
38
38
  selectionChanges: EventEmitter<T[]>;
39
39
  set value(data: T[]);
40
40
  get value(): T[];
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./list.form";
3
+ import * as i2 from "../../../shared/shared.module";
4
+ import * as i3 from "@ngx-translate/core";
5
+ export declare class AppListFormModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppListFormModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppListFormModule, [typeof i1.AppListForm], [typeof i2.SharedModule, typeof i3.TranslateModule], [typeof i3.TranslateModule, typeof i1.AppListForm]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppListFormModule>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./properties.form";
3
+ import * as i2 from "../../../shared/shared.module";
4
+ import * as i3 from "@ngx-translate/core";
5
+ export declare class AppPropertiesFormModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesFormModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppPropertiesFormModule, [typeof i1.AppPropertiesForm], [typeof i2.SharedModule, typeof i3.TranslateModule], [typeof i3.TranslateModule, typeof i1.AppPropertiesForm]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppPropertiesFormModule>;
9
+ }
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
3
3
  import { CdkTextareaAutosize } from '@angular/cdk/text-field';
4
- import { AppForm } from '../form/form.class';
4
+ import { AppForm } from '../form.class';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class TextForm extends AppForm<{
7
7
  text: string;
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./text-form.component";
3
+ import * as i2 from "./text-popover.component";
4
+ import * as i3 from "../../../shared/shared.module";
5
+ import * as i4 from "@ngx-translate/core";
6
+ export declare class AppTextPopoverModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTextPopoverModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppTextPopoverModule, [typeof i1.TextForm, typeof i2.TextPopover], [typeof i3.SharedModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.TextForm, typeof i2.TextPopover]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppTextPopoverModule>;
10
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./home";
3
+ import * as i2 from "../../shared/shared.module";
4
+ import * as i3 from "@angular/router";
5
+ import * as i4 from "@ngx-translate/core";
6
+ import * as i5 from "../auth/auth.module";
7
+ import * as i6 from "../install/install-upgrade-card.module";
8
+ export declare class AppHomePageModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppHomePageModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppHomePageModule, [typeof i1.HomePage], [typeof i2.SharedModule, typeof i3.RouterModule, typeof i4.TranslateModule, typeof i5.AppAuthModule, typeof i6.AppInstallUpgradeCardModule], [typeof i3.RouterModule, typeof i4.TranslateModule, typeof i1.HomePage]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppHomePageModule>;
12
+ }
@@ -1,10 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./install-upgrade-card.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../shared/shared.module";
5
- import * as i4 from "@ionic/angular";
6
- export declare class InstallUpgradeCardModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<InstallUpgradeCardModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<InstallUpgradeCardModule, [typeof i1.AppInstallUpgradeCard], [typeof i2.CommonModule, typeof i3.SharedModule, typeof i4.IonicModule], [typeof i1.AppInstallUpgradeCard]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<InstallUpgradeCardModule>;
3
+ import * as i2 from "../../shared/shared.module";
4
+ import * as i3 from "@ngx-translate/core";
5
+ export declare class AppInstallUpgradeCardModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppInstallUpgradeCardModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppInstallUpgradeCardModule, [typeof i1.AppInstallUpgradeCard], [typeof i2.SharedModule, typeof i3.TranslateModule], [typeof i3.TranslateModule, typeof i1.AppInstallUpgradeCard]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppInstallUpgradeCardModule>;
10
9
  }
@@ -8,7 +8,7 @@ import { BehaviorSubject } from 'rxjs';
8
8
  import { ConfigService } from '../services/config.service';
9
9
  import { PlatformService } from '../services/platform.service';
10
10
  import { MenuService, SplitPaneShowWhen } from './menu.service';
11
- import { MenuOptions, MenuItem } from './menu.model';
11
+ import { MenuItem, MenuOptions } from './menu.model';
12
12
  import * as i0 from "@angular/core";
13
13
  export declare const APP_MENU_ITEMS: InjectionToken<MenuItem[]>;
14
14
  export declare const APP_MENU_OPTIONS: InjectionToken<MenuOptions>;
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
3
3
  export declare class AppUpdateOfflineModeCard implements OnDestroy {
4
4
  progressionMessage: string;
5
5
  progressionValue: number;
6
- onUpdateClick: EventEmitter<UIEvent>;
6
+ onUpdateClick: EventEmitter<Event>;
7
7
  constructor();
8
8
  ngOnDestroy(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AppUpdateOfflineModeCard, never>;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./update-offline-mode-card.component";
3
+ import * as i2 from "../../shared/shared.module";
4
+ import * as i3 from "@ngx-translate/core";
5
+ export declare class AppUpdateOfflineModeCardModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppUpdateOfflineModeCardModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppUpdateOfflineModeCardModule, [typeof i1.AppUpdateOfflineModeCard], [typeof i2.SharedModule, typeof i3.TranslateModule], [typeof i3.TranslateModule, typeof i1.AppUpdateOfflineModeCard]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppUpdateOfflineModeCardModule>;
9
+ }
@@ -15,7 +15,7 @@ export declare class SelectPeerModal implements OnDestroy {
15
15
  peerMinVersion: any;
16
16
  canCancel: boolean;
17
17
  allowSelectDownPeer: boolean;
18
- onRefresh: EventEmitter<UIEvent>;
18
+ onRefresh: EventEmitter<Event>;
19
19
  constructor(modalCtrl: ModalController, cd: ChangeDetectorRef, http: HttpClient, environment: any);
20
20
  set peers(peers: Observable<Peer[]>);
21
21
  cancel(): void;
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./select-peer.modal";
3
3
  import * as i2 from "../../shared/shared.module";
4
4
  import * as i3 from "@angular/common/http";
5
- export declare class SelectPeerModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectPeerModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<SelectPeerModule, [typeof i1.SelectPeerModal], [typeof i2.SharedModule, typeof i3.HttpClientModule], [typeof i1.SelectPeerModal]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<SelectPeerModule>;
5
+ import * as i4 from "@ngx-translate/core";
6
+ export declare class AppSelectPeerModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSelectPeerModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppSelectPeerModule, [typeof i1.SelectPeerModal], [typeof i2.SharedModule, typeof i3.HttpClientModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.SelectPeerModal]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppSelectPeerModule>;
9
10
  }
@@ -1,9 +1,9 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
3
  import { ActivatedRoute } from '@angular/router';
4
- import { AccountService } from '../../services/account.service';
5
- import { ConfigService } from '../../services/config.service';
6
- import { PlatformService } from '../../services/platform.service';
4
+ import { AccountService } from '../services/account.service';
5
+ import { ConfigService } from '../services/config.service';
6
+ import { PlatformService } from '../services/platform.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class RegisterConfirmPage implements OnDestroy {
9
9
  private platform;
@@ -20,5 +20,5 @@ export declare class RegisterConfirmPage implements OnDestroy {
20
20
  ngOnDestroy(): void;
21
21
  doConfirm(email: string, code: string): any;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<RegisterConfirmPage, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<RegisterConfirmPage, "page-register-confirm", never, {}, {}, never, never, false>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<RegisterConfirmPage, "app-register-confirm-page", never, {}, {}, never, never, false>;
24
24
  }
@@ -1,12 +1,12 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { AsyncValidatorFn, UntypedFormBuilder, UntypedFormGroup, ValidatorFn } from '@angular/forms';
3
- import { AccountService, RegisterData } from '../../services/account.service';
4
- import { referentialToString } from '../../services/model/referential.model';
3
+ import { AccountService, RegisterData } from '../services/account.service';
4
+ import { referentialToString } from '../services/model/referential.model';
5
5
  import { Subscription } from 'rxjs';
6
- import { AccountValidatorService } from '../../services/validator/account.validator';
7
- import { FormFieldDefinition } from '../../../shared/form/field.model';
8
- import { LocalSettingsService } from '../../services/local-settings.service';
9
- import { MatAutocompleteConfigHolder } from '../../../shared/material/autocomplete/material.autocomplete.config';
6
+ import { AccountValidatorService } from '../services/validator/account.validator';
7
+ import { FormFieldDefinition } from '../../shared/form/field.model';
8
+ import { LocalSettingsService } from '../services/local-settings.service';
9
+ import { MatAutocompleteConfigHolder } from '../../shared/material/autocomplete/material.autocomplete.config';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class RegisterForm implements OnInit {
12
12
  private accountService;
@@ -44,5 +44,5 @@ export declare class RegisterForm implements OnInit {
44
44
  disable(): void;
45
45
  enable(): void;
46
46
  static ɵfac: i0.ɵɵFactoryDeclaration<RegisterForm, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<RegisterForm, "form-register", never, {}, { "onCancel": "onCancel"; "onSubmit": "onSubmit"; }, never, never, false>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<RegisterForm, "app-register-form", never, {}, { "onCancel": "onCancel"; "onSubmit": "onSubmit"; }, never, never, false>;
48
48
  }
@@ -1,5 +1,5 @@
1
1
  import { ModalController } from '@ionic/angular';
2
- import { AccountService } from '../../services/account.service';
2
+ import { AccountService } from '../services/account.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class RegisterModal {
5
5
  private accountService;
@@ -10,5 +10,5 @@ export declare class RegisterModal {
10
10
  cancel(): void;
11
11
  doSubmit(event?: any): Promise<void>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<RegisterModal, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<RegisterModal, "modal-register", never, {}, {}, never, never, false>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<RegisterModal, "app-register-modal", never, {}, {}, never, never, false>;
14
14
  }
@@ -1,12 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./form/form-register";
3
- import * as i2 from "./modal/modal-register";
4
- import * as i3 from "./confirm/confirm";
2
+ import * as i1 from "./register.form";
3
+ import * as i2 from "./register.modal";
4
+ import * as i3 from "./register-confirm.page";
5
5
  import * as i4 from "../../shared/shared.module";
6
- import * as i5 from "@ionic/angular";
7
- import * as i6 from "@angular/router";
6
+ import * as i5 from "@angular/router";
7
+ import * as i6 from "@ngx-translate/core";
8
8
  export declare class AppRegisterModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AppRegisterModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<AppRegisterModule, [typeof i1.RegisterForm, typeof i2.RegisterModal, typeof i3.RegisterConfirmPage], [typeof i4.SharedModule, typeof i5.IonicModule, typeof i6.RouterModule], [typeof i1.RegisterForm, typeof i2.RegisterModal, typeof i3.RegisterConfirmPage]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppRegisterModule, [typeof i1.RegisterForm, typeof i2.RegisterModal, typeof i3.RegisterConfirmPage], [typeof i4.SharedModule, typeof i5.RouterModule, typeof i6.TranslateModule], [typeof i6.TranslateModule, typeof i1.RegisterForm, typeof i2.RegisterModal, typeof i3.RegisterConfirmPage]>;
11
11
  static ɵinj: i0.ɵɵInjectorDeclaration<AppRegisterModule>;
12
12
  }
@@ -1,4 +1,4 @@
1
- import { CryptoService, KeyPair } from './crypto.service';
1
+ import { Keypair } from './crypto.service';
2
2
  import { Department } from './model/department.model';
3
3
  import { Account } from './model/account.model';
4
4
  import { Person, UserProfileLabel } from './model/person.model';
@@ -20,7 +20,7 @@ import { TranslateService } from '@ngx-translate/core';
20
20
  import * as i0 from "@angular/core";
21
21
  export declare interface AccountDetails {
22
22
  loaded: boolean;
23
- keypair: KeyPair;
23
+ keypair: Keypair;
24
24
  authToken: string;
25
25
  authBasic?: string;
26
26
  pubkey: string;
@@ -44,7 +44,6 @@ export interface AccountWatchOptions {
44
44
  intervalInSeconds?: number;
45
45
  }
46
46
  export declare class AccountService extends BaseGraphqlService<Account, any, number, Account> {
47
- private cryptoService;
48
47
  protected network: NetworkService;
49
48
  protected graphql: GraphqlService;
50
49
  protected settings: LocalSettingsService;
@@ -69,7 +68,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
69
68
  get department(): Department;
70
69
  get tokenType(): AuthTokenType;
71
70
  set tokenType(value: AuthTokenType);
72
- constructor(cryptoService: CryptoService, network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: any);
71
+ constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: any);
73
72
  ngOnStart(): Promise<Account>;
74
73
  protected ngOnStop(): Promise<void>;
75
74
  isLogin(): boolean;
@@ -147,7 +146,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
147
146
  * @param account
148
147
  * @param keyPair
149
148
  */
150
- protected saveRemotely(account: Account, keyPair?: KeyPair): Promise<Account>;
149
+ protected saveRemotely(account: Account, keyPair?: Keypair): Promise<Account>;
151
150
  /**
152
151
  * Create or update user settings
153
152
  *
@@ -161,6 +160,6 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
161
160
  protected copyIdAndUpdateDate(source: Account | undefined, target: Account): void;
162
161
  protected copyIdAndUpdateDateSettings(source: UserSettings | undefined, target: UserSettings): void;
163
162
  protected showToast<T = any>(opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
164
- static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
163
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
165
164
  static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
166
165
  }
@@ -8,6 +8,7 @@ import { QueryRef } from 'apollo-angular';
8
8
  import { PureQueryOptions } from '@apollo/client/core/types';
9
9
  import { DocumentNode } from 'graphql';
10
10
  import { StartableService } from '../../shared/services/startable-service.class';
11
+ import { TypedDocumentNode } from '@graphql-typed-document-node/core';
11
12
  import * as i0 from "@angular/core";
12
13
  export interface QueryVariables<F = any> extends Partial<Page> {
13
14
  filter?: F;
@@ -30,15 +31,15 @@ export interface MutableWatchQueryOptions<D, T = any, V = EmptyObject> extends W
30
31
  insertFilterFn?: (data: T) => boolean;
31
32
  sortFn?: (a: T, b: T) => number;
32
33
  }
33
- export interface MutableWatchQueryDescription<D, T = any, V = EmptyObject> extends PureQueryOptions {
34
+ export interface MutableWatchQueryDescription<TData, TEntityClass = any, TVariables = EmptyObject> extends PureQueryOptions<TVariables, TData> {
34
35
  id?: string;
35
- query: DocumentNode;
36
- queryRef: QueryRef<D, V>;
37
- variables: V;
38
- arrayFieldName: keyof D;
39
- totalFieldName?: keyof D;
40
- insertFilterFn?: (data: T) => boolean;
41
- sortFn?: (a: T, b: T) => number;
36
+ query: DocumentNode | TypedDocumentNode<TData, TVariables>;
37
+ queryRef: QueryRef<TData, TVariables>;
38
+ variables: TVariables;
39
+ arrayFieldName: keyof TData;
40
+ totalFieldName?: keyof TData;
41
+ insertFilterFn?: (data: TEntityClass) => boolean;
42
+ sortFn?: (a: TEntityClass, b: TEntityClass) => number;
42
43
  counter: number;
43
44
  }
44
45
  export interface FindMutableWatchQueriesOptions {
@@ -1,39 +1,44 @@
1
+ import { Params } from '@polkadot/util-crypto/scrypt/types';
2
+ import { Keypair } from '@polkadot/util-crypto/types';
1
3
  import * as i0 from "@angular/core";
2
- export interface CryptoSaltParams {
3
- N: number;
4
- r: number;
5
- p: number;
6
- }
7
- export interface KeyPair {
8
- publicKey: Uint8Array;
9
- secretKey: Uint8Array;
10
- }
4
+ export declare const ED25519_SEED_LENGTH = 32;
5
+ export declare const SCRYPT_PARAMS: {
6
+ SIMPLE: Params;
7
+ DEFAULT: Params;
8
+ SECURE: Params;
9
+ HARDEST: Params;
10
+ EXTREME: Params;
11
+ };
12
+ export { Keypair };
11
13
  export declare class CryptoService {
14
+ private static _ready;
15
+ private static get started();
16
+ private static ready;
12
17
  /**
13
- * Generate sign keypair, sugin scrypt, from a salt and a password
18
+ * Generate a sign keypair, using scrypt, from a salt and a password
14
19
  *
15
20
  * @param salt
16
21
  * @param password
17
22
  * @param scryptParams
18
23
  */
19
- scryptKeypair(salt: string, password: string, scryptParams?: CryptoSaltParams): Promise<KeyPair>;
24
+ static scryptKeypair(salt: string, password: string, scryptParams?: Params): Promise<Keypair>;
20
25
  /**
21
26
  * Sign a message, from a key pair
22
27
  */
23
- sign(message: string, keypair: KeyPair): Promise<string>;
28
+ static sign(message: string, keypair: Keypair): Promise<string>;
24
29
  /**
25
30
  * Sign a message, from a key pair
26
31
  */
27
- verify(message: string, signature: string, pubkey: string): Promise<boolean>;
32
+ static verify(message: string, signature: string, publicKey: string): Promise<boolean>;
28
33
  /**
29
- * Hash (using SHA256) a message
34
+ * Hash (using SHA256) a message, as Hex
30
35
  */
31
- sha256(message: string): string;
36
+ static sha256(message: string): string;
32
37
  /**
33
- * Hash (using SHA512) a message
38
+ * Hash (using SHA512) a message, as Hex
34
39
  */
35
- sha512(message: string): string;
36
- encodeBase64(message: string): string;
40
+ static sha512(message: string): string;
41
+ static encodeBase64(message: string): string;
37
42
  static ɵfac: i0.ɵɵFactoryDeclaration<CryptoService, never>;
38
43
  static ɵprov: i0.ɵɵInjectableDeclaration<CryptoService>;
39
44
  }
@@ -1,5 +1,6 @@
1
1
  import { Moment } from 'moment';
2
2
  import { Entity, EntityAsObjectOptions, IEntity } from './entity.model';
3
+ import { IconRef } from '../../../shared/types';
3
4
  export declare function referentialToString(obj: Referential | any, properties?: string[]): string | undefined;
4
5
  export declare function referentialsToString(values: Referential[], properties?: string[], separator?: string): string;
5
6
  export declare interface IStatus {
@@ -8,7 +9,7 @@ export declare interface IStatus {
8
9
  label: string;
9
10
  }
10
11
  export declare const StatusList: Readonly<IStatus[]>;
11
- export declare const StatusById: Readonly<import("@sumaris-net/ngx-components").KeyValueType<IStatus>>;
12
+ export declare const StatusById: Readonly<import("../../../shared/types").KeyValueType<IStatus>>;
12
13
  export declare interface IReferentialRef<T extends IEntity<T, ID> = IEntity<any, any>, ID = number> extends IEntity<T, ID> {
13
14
  label: string;
14
15
  name: string;
@@ -16,6 +17,7 @@ export declare interface IReferentialRef<T extends IEntity<T, ID> = IEntity<any,
16
17
  levelId?: number;
17
18
  statusId: number;
18
19
  entityName: string;
20
+ icon?: IconRef;
19
21
  }
20
22
  export declare abstract class BaseReferential<T extends BaseReferential<T, ID, AO>, ID = number, AO extends ReferentialAsObjectOptions = ReferentialAsObjectOptions, FO = any> extends Entity<T, ID, AO, FO> implements IReferentialRef<T, ID> {
21
23
  label: string;
@@ -28,6 +30,7 @@ export declare abstract class BaseReferential<T extends BaseReferential<T, ID, A
28
30
  levelId: number;
29
31
  parentId: number;
30
32
  entityName: string;
33
+ icon?: IconRef;
31
34
  constructor(__typename?: string);
32
35
  asObject(opts?: AO): any;
33
36
  fromObject(source: any, opts?: FO): void;
@@ -44,6 +47,7 @@ export declare class ReferentialUtils {
44
47
  }
45
48
  export interface ReferentialAsObjectOptions extends EntityAsObjectOptions {
46
49
  keepEntityName?: boolean;
50
+ keepIcon?: boolean;
47
51
  }
48
52
  /**
49
53
  * Used to store an entity locally
@@ -61,6 +65,7 @@ export declare class ReferentialRef<T extends ReferentialRef<any, ID> = Referent
61
65
  statusId: number;
62
66
  levelId: number;
63
67
  entityName: string;
68
+ icon?: IconRef;
64
69
  constructor();
65
70
  asObject(opts?: O): any;
66
71
  fromObject(source: any, opts?: FO): void;
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./settings.page";
3
+ import * as i2 from "../../shared/shared.module";
4
+ import * as i3 from "../form/buttons/form-buttons-bar.module";
5
+ import * as i4 from "@ngx-translate/core";
6
+ export declare class AppSettingsPageModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppSettingsPageModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppSettingsPageModule, [typeof i1.SettingsPage], [typeof i2.SharedModule, typeof i3.AppFormButtonsBarModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.SettingsPage]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppSettingsPageModule>;
10
+ }
@@ -18,7 +18,7 @@ export declare class ActionsColumnComponent implements OnInit, OnDestroy {
18
18
  optionsTitle: string;
19
19
  classList: string;
20
20
  cellTemplate: TemplateRef<any>;
21
- optionsClick: EventEmitter<UIEvent>;
21
+ optionsClick: EventEmitter<Event>;
22
22
  cancelOrDeleteClick: EventEmitter<{
23
23
  event: Event;
24
24
  row: TableElement<any>;