@sumaris-net/ngx-components 4.0.0-rc9 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. package/README.md +5 -3
  2. package/doc/changelog.md +522 -280
  3. package/esm2022/public_api.mjs +38 -19
  4. package/esm2022/src/app/admin/admin-routing.module.mjs +10 -17
  5. package/esm2022/src/app/admin/admin.module.mjs +7 -9
  6. package/esm2022/src/app/admin/services/filter/person.filter.mjs +3 -3
  7. package/esm2022/src/app/admin/services/person.service.mjs +31 -31
  8. package/esm2022/src/app/admin/services/validator/person.validator.mjs +10 -10
  9. package/esm2022/src/app/admin/users/users.mjs +22 -19
  10. package/esm2022/src/app/admin/users/users.module.mjs +8 -10
  11. package/esm2022/src/app/core/about/about.modal.mjs +7 -7
  12. package/esm2022/src/app/core/about/about.module.mjs +8 -21
  13. package/esm2022/src/app/core/account/account.module.mjs +28 -18
  14. package/esm2022/src/app/core/account/account.page.mjs +19 -5
  15. package/esm2022/src/app/core/account/new-token.form.mjs +106 -0
  16. package/esm2022/src/app/core/account/new-token.modal.mjs +27 -86
  17. package/esm2022/src/app/core/account/password/change-password.form.mjs +60 -0
  18. package/esm2022/src/app/core/account/password/change-password.module.mjs +22 -0
  19. package/esm2022/src/app/core/account/password/change-password.page.mjs +144 -0
  20. package/esm2022/src/app/core/account/token.table.mjs +47 -35
  21. package/esm2022/src/app/core/auth/auth.form.mjs +47 -28
  22. package/esm2022/src/app/core/auth/auth.modal.mjs +6 -6
  23. package/esm2022/src/app/core/auth/auth.module.mjs +22 -13
  24. package/esm2022/src/app/core/auth/reset-password.modal.mjs +77 -0
  25. package/esm2022/src/app/core/core.module.mjs +28 -61
  26. package/esm2022/src/app/core/core.testing.module.mjs +34 -20
  27. package/esm2022/src/app/core/form/array/form-array.mjs +325 -0
  28. package/esm2022/src/app/core/form/array/testing/form-array-test.module.mjs +23 -0
  29. package/esm2022/src/app/core/form/array/testing/form-array.test.mjs +94 -0
  30. package/esm2022/src/app/core/form/buttons/form-buttons-bar.component.mjs +24 -25
  31. package/esm2022/src/app/core/form/buttons/form-buttons-bar.module.mjs +9 -13
  32. package/esm2022/src/app/core/form/entity/editor.class.mjs +64 -517
  33. package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +26 -42
  34. package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +42 -41
  35. package/esm2022/src/app/core/form/entity/entity-metadata.component.mjs +5 -5
  36. package/esm2022/src/app/core/form/entity/entity.module.mjs +8 -14
  37. package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +194 -0
  38. package/esm2022/src/app/core/form/form-container.class.mjs +327 -0
  39. package/esm2022/src/app/core/form/form.class.mjs +39 -56
  40. package/esm2022/src/app/core/form/form.module.mjs +14 -10
  41. package/esm2022/src/app/core/form/form.utils.mjs +23 -306
  42. package/esm2022/src/app/core/form/list/list.form.mjs +16 -14
  43. package/esm2022/src/app/core/form/list/list.module.mjs +8 -12
  44. package/esm2022/src/app/core/form/properties/properties.form.mjs +139 -57
  45. package/esm2022/src/app/core/form/properties/properties.module.mjs +9 -15
  46. package/esm2022/src/app/core/form/properties/properties.table.mjs +27 -28
  47. package/esm2022/src/app/core/form/properties/properties.utils.mjs +60 -0
  48. package/esm2022/src/app/core/form/properties/property.validator.mjs +23 -9
  49. package/esm2022/src/app/core/form/properties/testing/properties-form.test.mjs +18 -18
  50. package/esm2022/src/app/core/form/properties/testing/properties-form.testing.module.mjs +8 -24
  51. package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.mjs +15 -15
  52. package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +10 -25
  53. package/esm2022/src/app/core/form/text-popover/text-popover.component.mjs +7 -7
  54. package/esm2022/src/app/core/form/text-popover/text-popover.module.mjs +9 -13
  55. package/esm2022/src/app/core/form/username/username.form.mjs +52 -0
  56. package/esm2022/src/app/core/form/username/username.module.mjs +20 -0
  57. package/esm2022/src/app/core/graphql/graphql.module.mjs +8 -16
  58. package/esm2022/src/app/core/graphql/graphql.service.mjs +101 -109
  59. package/esm2022/src/app/core/graphql/graphql.utils.mjs +12 -11
  60. package/esm2022/src/app/core/home/home.mjs +81 -52
  61. package/esm2022/src/app/core/home/home.module.mjs +10 -19
  62. package/esm2022/src/app/core/icon/icon.component.mjs +5 -5
  63. package/esm2022/src/app/core/icon/icon.module.mjs +8 -17
  64. package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +33 -37
  65. package/esm2022/src/app/core/install/install-upgrade-card.module.mjs +9 -13
  66. package/esm2022/src/app/core/menu/menu.component.mjs +5 -6
  67. package/esm2022/src/app/core/menu/menu.model.mjs +21 -18
  68. package/esm2022/src/app/core/menu/menu.module.mjs +7 -12
  69. package/esm2022/src/app/core/menu/menu.service.mjs +44 -60
  70. package/esm2022/src/app/core/menu/sub-menu-tab.directive.mjs +4 -4
  71. package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +7 -6
  72. package/esm2022/src/app/core/menu/testing/menu.testing.mjs +43 -8
  73. package/esm2022/src/app/core/menu/testing/menu.testing.module.mjs +8 -27
  74. package/esm2022/src/app/core/offline/update-offline-mode-card.component.mjs +6 -7
  75. package/esm2022/src/app/core/offline/update-offline-mode-card.module.mjs +9 -13
  76. package/esm2022/src/app/core/peer/select-peer.modal.mjs +31 -21
  77. package/esm2022/src/app/core/peer/select-peer.module.mjs +11 -23
  78. package/esm2022/src/app/core/register/register-confirm.page.mjs +18 -16
  79. package/esm2022/src/app/core/register/register.form.mjs +7 -7
  80. package/esm2022/src/app/core/register/register.modal.mjs +6 -6
  81. package/esm2022/src/app/core/register/register.module.mjs +8 -29
  82. package/esm2022/src/app/core/services/account.service.mjs +272 -170
  83. package/esm2022/src/app/core/services/auth-guard.service.mjs +13 -15
  84. package/esm2022/src/app/core/services/base-entity-service.class.mjs +55 -64
  85. package/esm2022/src/app/core/services/base-graphql-service.class.mjs +39 -33
  86. package/esm2022/src/app/core/services/base58.mjs +8 -4
  87. package/esm2022/src/app/core/services/config/core.config.mjs +88 -37
  88. package/esm2022/src/app/core/services/config.service.mjs +81 -62
  89. package/esm2022/src/app/core/services/crypto.service.mjs +11 -11
  90. package/esm2022/src/app/core/services/errors.mjs +6 -5
  91. package/esm2022/src/app/core/services/local-settings.service.mjs +58 -44
  92. package/esm2022/src/app/core/services/model/account.model.mjs +12 -17
  93. package/esm2022/src/app/core/services/model/config.model.mjs +7 -7
  94. package/esm2022/src/app/core/services/model/department.model.mjs +3 -2
  95. package/esm2022/src/app/core/services/model/entity.decorators.mjs +6 -6
  96. package/esm2022/src/app/core/services/model/entity.model.mjs +27 -31
  97. package/esm2022/src/app/core/services/model/filter.model.mjs +12 -15
  98. package/esm2022/src/app/core/services/model/history.model.mjs +1 -1
  99. package/esm2022/src/app/core/services/model/model.enum.mjs +2 -2
  100. package/esm2022/src/app/core/services/model/peer.model.mjs +19 -9
  101. package/esm2022/src/app/core/services/model/person.model.mjs +26 -22
  102. package/esm2022/src/app/core/services/model/referential.model.mjs +36 -23
  103. package/esm2022/src/app/core/services/model/settings.model.mjs +2 -1
  104. package/esm2022/src/app/core/services/model/token.model.mjs +7 -3
  105. package/esm2022/src/app/core/services/model/tree-item-entity.model.mjs +3 -7
  106. package/esm2022/src/app/core/services/network.service.mjs +99 -76
  107. package/esm2022/src/app/core/services/network.types.mjs +1 -1
  108. package/esm2022/src/app/core/services/network.utils.mjs +3 -3
  109. package/esm2022/src/app/core/services/pipes/account.pipes.mjs +11 -11
  110. package/esm2022/src/app/core/services/pipes/department-to-string.pipe.mjs +6 -6
  111. package/esm2022/src/app/core/services/pipes/person-to-string.pipe.mjs +9 -9
  112. package/esm2022/src/app/core/services/pipes/pipes.module.mjs +54 -0
  113. package/esm2022/src/app/core/services/pipes/referential-to-string.pipe.mjs +21 -0
  114. package/esm2022/src/app/core/services/pipes/usage-mode.pipes.mjs +11 -11
  115. package/esm2022/src/app/core/services/platform.service.mjs +102 -69
  116. package/esm2022/src/app/core/services/storage/entities-storage.service.mjs +32 -39
  117. package/esm2022/src/app/core/services/storage/entity-store.class.mjs +36 -45
  118. package/esm2022/src/app/core/services/testing/referential-filter.model.mjs +1 -1
  119. package/esm2022/src/app/core/services/testing/referential.validator.mjs +14 -14
  120. package/esm2022/src/app/core/services/validator/account.validator.mjs +5 -5
  121. package/esm2022/src/app/core/services/validator/base.validator.class.mjs +5 -5
  122. package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +34 -20
  123. package/esm2022/src/app/core/services/validator/user-settings.validator.mjs +5 -5
  124. package/esm2022/src/app/core/services/validator/user-token.validator.mjs +12 -9
  125. package/esm2022/src/app/core/settings/settings.module.mjs +9 -21
  126. package/esm2022/src/app/core/settings/settings.page.mjs +76 -63
  127. package/esm2022/src/app/core/table/async-table.class.mjs +219 -201
  128. package/esm2022/src/app/core/table/column/actions-column.component.mjs +127 -0
  129. package/esm2022/src/app/core/table/column/nav-actions-column.component.mjs +117 -0
  130. package/esm2022/src/app/core/table/column/row-field.component.mjs +116 -0
  131. package/esm2022/src/app/core/table/entities-async-table-datasource.class.mjs +31 -33
  132. package/esm2022/src/app/core/table/entities-table-datasource.class.mjs +36 -36
  133. package/esm2022/src/app/core/table/memory-table.class.mjs +5 -5
  134. package/esm2022/src/app/core/table/table-select-columns.component.mjs +8 -8
  135. package/esm2022/src/app/core/table/table.class.mjs +193 -152
  136. package/esm2022/src/app/core/table/table.model.mjs +1 -1
  137. package/esm2022/src/app/core/table/table.module.mjs +35 -24
  138. package/esm2022/src/app/core/table/table.pipes.mjs +77 -0
  139. package/esm2022/src/app/core/table/table.utils.mjs +2 -4
  140. package/esm2022/src/app/core/table/testing/table-validator.service.mjs +9 -5
  141. package/esm2022/src/app/core/table/testing/table.testing.mjs +116 -78
  142. package/esm2022/src/app/core/table/testing/table.testing.module.mjs +8 -33
  143. package/esm2022/src/app/core/table/testing/table2-validator.service.mjs +4 -4
  144. package/esm2022/src/app/core/table/testing/table2.testing.mjs +68 -45
  145. package/esm2022/src/app/shared/alerts.mjs +49 -45
  146. package/esm2022/src/app/shared/audio/audio.mjs +25 -27
  147. package/esm2022/src/app/shared/audio/audio.testing.mjs +5 -5
  148. package/esm2022/src/app/shared/audio/audio.testing.module.mjs +10 -25
  149. package/esm2022/src/app/shared/capacitor/keyboard.mjs +5 -5
  150. package/esm2022/src/app/shared/capacitor/plugins.mjs +1 -1
  151. package/esm2022/src/app/shared/constants.mjs +9 -4
  152. package/esm2022/src/app/shared/dates.mjs +18 -16
  153. package/esm2022/src/app/shared/debug/debug-service.class.mjs +1 -1
  154. package/esm2022/src/app/shared/debug/debug.component.mjs +5 -5
  155. package/esm2022/src/app/shared/debug/debug.module.mjs +8 -29
  156. package/esm2022/src/app/shared/directives/autofocus.directive.mjs +8 -15
  157. package/esm2022/src/app/shared/directives/autotitle.directive.mjs +4 -4
  158. package/esm2022/src/app/shared/directives/directives.module.mjs +8 -29
  159. package/esm2022/src/app/shared/directives/drag-and-drop.directive.mjs +4 -4
  160. package/esm2022/src/app/shared/directives/ng-var.directive.mjs +4 -4
  161. package/esm2022/src/app/shared/directives/resizable/resizable.component.mjs +4 -4
  162. package/esm2022/src/app/shared/directives/resizable/resizable.directive.mjs +4 -4
  163. package/esm2022/src/app/shared/directives/resizable/resizable.module.mjs +4 -4
  164. package/esm2022/src/app/shared/events.mjs +6 -8
  165. package/esm2022/src/app/shared/file/csv.utils.mjs +38 -18
  166. package/esm2022/src/app/shared/file/file.service.mjs +11 -15
  167. package/esm2022/src/app/shared/file/file.utils.mjs +13 -11
  168. package/esm2022/src/app/shared/file/images.utils.mjs +29 -4
  169. package/esm2022/src/app/shared/file/json.utils.mjs +11 -4
  170. package/esm2022/src/app/shared/file/uri.utils.mjs +1 -1
  171. package/esm2022/src/app/shared/focusable.mjs +1 -1
  172. package/esm2022/src/app/shared/form/field.component.mjs +69 -43
  173. package/esm2022/src/app/shared/form/field.model.mjs +4 -4
  174. package/esm2022/src/app/shared/form/loading-spinner.mjs +5 -5
  175. package/esm2022/src/app/shared/forms.mjs +116 -43
  176. package/esm2022/src/app/shared/functions.mjs +139 -71
  177. package/esm2022/src/app/shared/geolocation/geolocation.utils.mjs +14 -14
  178. package/esm2022/src/app/shared/gesture/gesture-config.mjs +10 -10
  179. package/esm2022/src/app/shared/gesture/hammer.utils.mjs +1 -1
  180. package/esm2022/src/app/shared/graph/colors.utils.mjs +14 -18
  181. package/esm2022/src/app/shared/graph/graph-colors.mjs +23 -29
  182. package/esm2022/src/app/shared/guard/component-dirty.guard.mjs +4 -4
  183. package/esm2022/src/app/shared/help/help.modal.mjs +6 -6
  184. package/esm2022/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +5 -5
  185. package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +44 -17
  186. package/esm2022/src/app/shared/hotkeys/shared-hotkeys.module.mjs +9 -27
  187. package/esm2022/src/app/shared/http/http.utils.mjs +15 -11
  188. package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +27 -27
  189. package/esm2022/src/app/shared/image/gallery/image-gallery.module.mjs +13 -10
  190. package/esm2022/src/app/shared/image/gallery/testing/gallegry.model.testing.mjs +1 -1
  191. package/esm2022/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +14 -17
  192. package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +9 -13
  193. package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +14 -11
  194. package/esm2022/src/app/shared/image/image.model.mjs +1 -1
  195. package/esm2022/src/app/shared/image/image.module.mjs +8 -13
  196. package/esm2022/src/app/shared/image/image.service.mjs +14 -12
  197. package/esm2022/src/app/shared/inputs.mjs +52 -20
  198. package/esm2022/src/app/shared/interceptors/progess.interceptor.mjs +2 -3
  199. package/esm2022/src/app/shared/logging/log-level.model.mjs +1 -1
  200. package/esm2022/src/app/shared/logging/logger.model.mjs +2 -2
  201. package/esm2022/src/app/shared/logging/logging-service.class.mjs +17 -20
  202. package/esm2022/src/app/shared/logging/logging-service.module.mjs +6 -6
  203. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.config.mjs +7 -10
  204. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +348 -238
  205. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +13 -16
  206. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.utils.mjs +5 -4
  207. package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +51 -37
  208. package/esm2022/src/app/shared/material/badge/badge.directive.mjs +99 -57
  209. package/esm2022/src/app/shared/material/badge/badge.module.mjs +8 -20
  210. package/esm2022/src/app/shared/material/badge/badge.test.mjs +5 -5
  211. package/esm2022/src/app/shared/material/boolean/boolean.module.mjs +19 -20
  212. package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +209 -104
  213. package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +15 -8
  214. package/esm2022/src/app/shared/material/chips/chips.module.mjs +12 -13
  215. package/esm2022/src/app/shared/material/chips/material.chips.mjs +228 -168
  216. package/esm2022/src/app/shared/material/chips/testing/chips.test.mjs +20 -21
  217. package/esm2022/src/app/shared/material/datetime/datetime.module.mjs +12 -27
  218. package/esm2022/src/app/shared/material/datetime/material.date.mjs +167 -92
  219. package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +128 -77
  220. package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +297 -165
  221. package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +34 -30
  222. package/esm2022/src/app/shared/material/datetime/testing/mat-date.test.mjs +31 -27
  223. package/esm2022/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +26 -23
  224. package/esm2022/src/app/shared/material/duration/duration.module.mjs +11 -16
  225. package/esm2022/src/app/shared/material/duration/duration.utils.mjs +3 -6
  226. package/esm2022/src/app/shared/material/duration/material.duration.mjs +35 -34
  227. package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +23 -22
  228. package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +217 -170
  229. package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +182 -241
  230. package/esm2022/src/app/shared/material/latlong/material.latlong.module.mjs +10 -15
  231. package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +19 -14
  232. package/esm2022/src/app/shared/material/material.animations.mjs +22 -22
  233. package/esm2022/src/app/shared/material/material.config.mjs +3 -0
  234. package/esm2022/src/app/shared/material/material.module.mjs +16 -16
  235. package/esm2022/src/app/shared/material/material.testing.module.mjs +50 -37
  236. package/esm2022/src/app/shared/material/paginator/material.paginator-i18n.mjs +12 -9
  237. package/esm2022/src/app/shared/material/stepper/material.stepper-i18n.mjs +4 -4
  238. package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +26 -19
  239. package/esm2022/src/app/shared/material/swipe/swipe.module.mjs +7 -11
  240. package/esm2022/src/app/shared/material/swipe/testing/swipe.test.mjs +8 -8
  241. package/esm2022/src/app/shared/material/testing/common.test.mjs +30 -24
  242. package/esm2022/src/app/shared/material/text/testing/text-form.testing.mjs +30 -19
  243. package/esm2022/src/app/shared/material/text/text-form.component.mjs +128 -21
  244. package/esm2022/src/app/shared/material/text/text-form.module.mjs +8 -8
  245. package/esm2022/src/app/shared/modules.mjs +1 -1
  246. package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +118 -37
  247. package/esm2022/src/app/shared/named-filter/named-filter.model.mjs +1 -1
  248. package/esm2022/src/app/shared/named-filter/named-filter.module.mjs +5 -5
  249. package/esm2022/src/app/shared/named-filter/named-filter.service.mjs +8 -8
  250. package/esm2022/src/app/shared/named-filter/testing/named-filter-selector.testing.mjs +74 -0
  251. package/esm2022/src/app/shared/named-filter/testing/named-filter.testing.module.mjs +28 -0
  252. package/esm2022/src/app/shared/observables.mjs +14 -18
  253. package/esm2022/src/app/shared/pipes/arrays.pipe.mjs +53 -38
  254. package/esm2022/src/app/shared/pipes/badge.pipes.mjs +24 -0
  255. package/esm2022/src/app/shared/pipes/colors.pipe.mjs +8 -6
  256. package/esm2022/src/app/shared/pipes/date-diff-duration.pipe.mjs +8 -10
  257. package/esm2022/src/app/shared/pipes/date-format.pipe.mjs +15 -15
  258. package/esm2022/src/app/shared/pipes/date-from-now.pipe.mjs +6 -6
  259. package/esm2022/src/app/shared/pipes/duration.pipe.mjs +6 -6
  260. package/esm2022/src/app/shared/pipes/file-size.pipe.mjs +6 -13
  261. package/esm2022/src/app/shared/pipes/form.pipes.mjs +72 -47
  262. package/esm2022/src/app/shared/pipes/highlight.pipe.mjs +15 -15
  263. package/esm2022/src/app/shared/pipes/html.pipes.mjs +52 -0
  264. package/esm2022/src/app/shared/pipes/latlong-format.pipe.mjs +14 -14
  265. package/esm2022/src/app/shared/pipes/maps.pipe.mjs +17 -17
  266. package/esm2022/src/app/shared/pipes/maskito.pipe.mjs +37 -88
  267. package/esm2022/src/app/shared/pipes/math.pipes.mjs +16 -16
  268. package/esm2022/src/app/shared/pipes/ng-init.pipe.mjs +5 -5
  269. package/esm2022/src/app/shared/pipes/number-format.pipe.mjs +6 -6
  270. package/esm2022/src/app/shared/pipes/pipes.module.mjs +117 -137
  271. package/esm2022/src/app/shared/pipes/property.pipes.mjs +86 -47
  272. package/esm2022/src/app/shared/pipes/selection.pipes.mjs +179 -0
  273. package/esm2022/src/app/shared/pipes/string.pipes.mjs +50 -49
  274. package/esm2022/src/app/shared/pipes/translate-context.pipe.mjs +11 -11
  275. package/esm2022/src/app/shared/pipes/types.pipes.mjs +33 -17
  276. package/esm2022/src/app/shared/platforms.mjs +7 -5
  277. package/esm2022/src/app/shared/rx-state.module.mjs +7 -11
  278. package/esm2022/src/app/shared/services/entity-service.class.mjs +2 -2
  279. package/esm2022/src/app/shared/services/job.utils.mjs +7 -7
  280. package/esm2022/src/app/shared/services/memory-entity-service.class.mjs +43 -41
  281. package/esm2022/src/app/shared/services/progress-bar.service.mjs +4 -4
  282. package/esm2022/src/app/shared/services/startable-observable-service.class.mjs +11 -14
  283. package/esm2022/src/app/shared/services/startable-service.class.mjs +11 -17
  284. package/esm2022/src/app/shared/services/translate-context.service.mjs +18 -15
  285. package/esm2022/src/app/shared/services/validator-service.class.mjs +1 -1
  286. package/esm2022/src/app/shared/services.mjs +12 -12
  287. package/esm2022/src/app/shared/shared-routing.module.mjs +19 -18
  288. package/esm2022/src/app/shared/shared.module.mjs +29 -28
  289. package/esm2022/src/app/shared/shared.testing.module.mjs +18 -10
  290. package/esm2022/src/app/shared/storage/storage-explorer.component.mjs +39 -46
  291. package/esm2022/src/app/shared/storage/storage-explorer.module.mjs +8 -12
  292. package/esm2022/src/app/shared/storage/storage-explorer.testing-routing.module.mjs +9 -17
  293. package/esm2022/src/app/shared/storage/storage-explorer.testing.module.mjs +10 -18
  294. package/esm2022/src/app/shared/storage/storage.service.mjs +4 -4
  295. package/esm2022/src/app/shared/storage/storage.utils.mjs +2 -2
  296. package/esm2022/src/app/shared/testing/maskito.test.mjs +41 -0
  297. package/esm2022/src/app/shared/testing/observable.test.mjs +11 -13
  298. package/esm2022/src/app/shared/testing/tests.page.mjs +6 -6
  299. package/esm2022/src/app/shared/toast/toast.testing.mjs +11 -11
  300. package/esm2022/src/app/shared/toast/toast.testing.module.mjs +10 -25
  301. package/esm2022/src/app/shared/toast/toasts.mjs +9 -9
  302. package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +10 -8
  303. package/esm2022/src/app/shared/toolbar/toolbar.mjs +31 -32
  304. package/esm2022/src/app/shared/toolbar/toolbar.module.mjs +8 -39
  305. package/esm2022/src/app/shared/types.mjs +1 -1
  306. package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.mjs +12 -12
  307. package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +10 -25
  308. package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +7 -8
  309. package/esm2022/src/app/shared/upload-file/upload-file.component.mjs +21 -19
  310. package/esm2022/src/app/shared/upload-file/upload-file.model.mjs +2 -3
  311. package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +64 -56
  312. package/esm2022/src/app/shared/validator/validators.mjs +60 -39
  313. package/esm2022/src/app/shared/version/versions.mjs +2 -2
  314. package/esm2022/src/app/social/job/job.module.mjs +8 -27
  315. package/esm2022/src/app/social/job/progression/job-progression.component.mjs +9 -9
  316. package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +49 -46
  317. package/esm2022/src/app/social/job/progression/job-progression.list.mjs +10 -13
  318. package/esm2022/src/app/social/job/progression/job-progression.model.mjs +1 -1
  319. package/esm2022/src/app/social/job/progression/job-progression.service.mjs +39 -21
  320. package/esm2022/src/app/social/job/testing/job-progression.testing.mjs +6 -11
  321. package/esm2022/src/app/social/job/testing/job-progression.testing.service.mjs +11 -30
  322. package/esm2022/src/app/social/job/testing/job.testing.module.mjs +8 -21
  323. package/esm2022/src/app/social/message/message.form.mjs +5 -5
  324. package/esm2022/src/app/social/message/message.modal.mjs +8 -8
  325. package/esm2022/src/app/social/message/message.model.mjs +8 -8
  326. package/esm2022/src/app/social/message/message.module.mjs +4 -4
  327. package/esm2022/src/app/social/message/message.service.mjs +7 -7
  328. package/esm2022/src/app/social/social.errors.mjs +2 -2
  329. package/esm2022/src/app/social/social.module.mjs +7 -32
  330. package/esm2022/src/app/social/social.testing.module.mjs +9 -20
  331. package/esm2022/src/app/social/user-event/notification/user-event-notification.icon.mjs +27 -23
  332. package/esm2022/src/app/social/user-event/notification/user-event-notification.list.mjs +19 -22
  333. package/esm2022/src/app/social/user-event/testing/user-event.testing.mjs +47 -23
  334. package/esm2022/src/app/social/user-event/testing/user-event.testing.model.mjs +8 -8
  335. package/esm2022/src/app/social/user-event/testing/user-event.testing.module.mjs +8 -21
  336. package/esm2022/src/app/social/user-event/testing/user-event.testing.service.mjs +27 -15
  337. package/esm2022/src/app/social/user-event/user-event.model.mjs +1 -1
  338. package/esm2022/src/app/social/user-event/user-event.module.mjs +8 -28
  339. package/esm2022/src/app/social/user-event/user-event.service.mjs +61 -64
  340. package/esm2022/src/environments/environment.class.mjs +9 -1
  341. package/esm2022/src/environments/environment.loader.mjs +5 -11
  342. package/esm2022/src/environments/environment.mjs +19 -11
  343. package/fesm2022/sumaris-net.ngx-components.mjs +16117 -14592
  344. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  345. package/package.json +33 -18
  346. package/public_api.d.ts +30 -22
  347. package/src/app/admin/services/filter/person.filter.d.ts +1 -1
  348. package/src/app/admin/users/users.d.ts +5 -6
  349. package/src/app/core/account/account.module.d.ts +10 -8
  350. package/src/app/core/account/account.page.d.ts +25 -15
  351. package/src/app/core/account/new-token.form.d.ts +29 -0
  352. package/src/app/core/account/new-token.modal.d.ts +9 -21
  353. package/src/app/core/account/password/change-password.form.d.ts +19 -0
  354. package/src/app/core/account/password/change-password.module.d.ts +11 -0
  355. package/src/app/core/account/password/change-password.page.d.ts +36 -0
  356. package/src/app/core/account/token.table.d.ts +7 -5
  357. package/src/app/core/auth/auth.form.d.ts +11 -9
  358. package/src/app/core/auth/auth.module.d.ts +6 -4
  359. package/src/app/core/auth/reset-password.modal.d.ts +26 -0
  360. package/src/app/core/core.module.d.ts +21 -24
  361. package/src/app/core/core.testing.module.d.ts +2 -1
  362. package/src/app/core/form/array/form-array.d.ts +136 -0
  363. package/src/app/core/form/array/testing/form-array-test.module.d.ts +12 -0
  364. package/src/app/core/form/array/testing/form-array.test.d.ts +26 -0
  365. package/src/app/core/form/buttons/form-buttons-bar.component.d.ts +2 -3
  366. package/src/app/core/form/entity/editor.class.d.ts +19 -179
  367. package/src/app/core/form/entity/entity-editor-modal.class.d.ts +10 -13
  368. package/src/app/core/form/entity/entity-editor.class.d.ts +12 -17
  369. package/src/app/core/form/entity/entity-metadata.component.d.ts +1 -1
  370. package/src/app/core/form/entity/tab-editor.class.d.ts +70 -0
  371. package/src/app/core/form/form-container.class.d.ts +126 -0
  372. package/src/app/core/form/form.class.d.ts +13 -26
  373. package/src/app/core/form/form.module.d.ts +2 -1
  374. package/src/app/core/form/form.utils.d.ts +60 -145
  375. package/src/app/core/form/list/list.form.d.ts +2 -2
  376. package/src/app/core/form/properties/properties.form.d.ts +34 -12
  377. package/src/app/core/form/properties/properties.table.d.ts +2 -2
  378. package/src/app/core/form/properties/properties.utils.d.ts +27 -0
  379. package/src/app/core/form/properties/property.validator.d.ts +9 -3
  380. package/src/app/core/form/text-popover/testing/text-popover.testing.d.ts +3 -1
  381. package/src/app/core/form/username/username.form.d.ts +19 -0
  382. package/src/app/core/form/username/username.module.d.ts +9 -0
  383. package/src/app/core/graphql/graphql.module.d.ts +1 -2
  384. package/src/app/core/graphql/graphql.service.d.ts +2 -4
  385. package/src/app/core/home/home.d.ts +26 -6
  386. package/src/app/core/menu/testing/menu-other.testing.d.ts +1 -1
  387. package/src/app/core/menu/testing/menu.testing.d.ts +11 -3
  388. package/src/app/core/peer/select-peer.modal.d.ts +13 -7
  389. package/src/app/core/peer/select-peer.module.d.ts +3 -4
  390. package/src/app/core/services/account.service.d.ts +9 -0
  391. package/src/app/core/services/base-entity-service.class.d.ts +1 -1
  392. package/src/app/core/services/config/core.config.d.ts +12 -1
  393. package/src/app/core/services/config.service.d.ts +4 -3
  394. package/src/app/core/services/errors.d.ts +11 -0
  395. package/src/app/core/services/local-settings.service.d.ts +8 -4
  396. package/src/app/core/services/model/entity.model.d.ts +6 -5
  397. package/src/app/core/services/model/filter.model.d.ts +1 -1
  398. package/src/app/core/services/model/peer.model.d.ts +1 -0
  399. package/src/app/core/services/model/person.model.d.ts +6 -2
  400. package/src/app/core/services/model/referential.model.d.ts +8 -3
  401. package/src/app/core/services/model/settings.model.d.ts +4 -2
  402. package/src/app/core/services/model/token.model.d.ts +1 -0
  403. package/src/app/core/services/model/tree-item-entity.model.d.ts +1 -1
  404. package/src/app/core/services/network.service.d.ts +11 -7
  405. package/src/app/core/services/pipes/department-to-string.pipe.d.ts +1 -1
  406. package/src/app/core/services/pipes/person-to-string.pipe.d.ts +3 -1
  407. package/src/app/core/services/pipes/pipes.module.d.ts +11 -0
  408. package/src/app/core/services/pipes/referential-to-string.pipe.d.ts +13 -0
  409. package/src/app/core/services/platform.service.d.ts +8 -3
  410. package/src/app/core/services/testing/referential-filter.model.d.ts +1 -1
  411. package/src/app/core/services/validator/local-settings.validator.d.ts +6 -2
  412. package/src/app/core/settings/settings.module.d.ts +2 -1
  413. package/src/app/core/settings/settings.page.d.ts +34 -21
  414. package/src/app/core/table/async-table.class.d.ts +22 -17
  415. package/src/app/core/table/column/actions-column.component.d.ts +59 -0
  416. package/src/app/core/table/column/nav-actions-column.component.d.ts +46 -0
  417. package/src/app/core/table/column/row-field.component.d.ts +40 -0
  418. package/src/app/core/table/entities-async-table-datasource.class.d.ts +1 -0
  419. package/src/app/core/table/entities-table-datasource.class.d.ts +1 -0
  420. package/src/app/core/table/table.class.d.ts +14 -11
  421. package/src/app/core/table/table.module.d.ts +8 -4
  422. package/src/app/core/table/table.pipes.d.ts +28 -0
  423. package/src/app/core/table/testing/table.testing.d.ts +12 -13
  424. package/src/app/core/table/testing/table2.testing.d.ts +13 -10
  425. package/src/app/shared/alerts.d.ts +4 -2
  426. package/src/app/shared/constants.d.ts +5 -0
  427. package/src/app/shared/dates.d.ts +12 -5
  428. package/src/app/shared/directives/autofocus.directive.d.ts +0 -1
  429. package/src/app/shared/events.d.ts +1 -1
  430. package/src/app/shared/file/csv.utils.d.ts +5 -0
  431. package/src/app/shared/file/images.utils.d.ts +17 -0
  432. package/src/app/shared/file/json.utils.d.ts +3 -0
  433. package/src/app/shared/form/field.component.d.ts +6 -3
  434. package/src/app/shared/forms.d.ts +32 -0
  435. package/src/app/shared/functions.d.ts +27 -8
  436. package/src/app/shared/graph/graph-colors.d.ts +1 -1
  437. package/src/app/shared/guard/component-dirty.guard.d.ts +1 -6
  438. package/src/app/shared/hotkeys/hotkeys.service.d.ts +17 -3
  439. package/src/app/shared/http/http.utils.d.ts +1 -0
  440. package/src/app/shared/image/gallery/image-gallery.component.d.ts +10 -10
  441. package/src/app/shared/image/gallery/image-gallery.module.d.ts +2 -1
  442. package/src/app/shared/image/gallery/testing/gallery.service.testing.d.ts +2 -2
  443. package/src/app/shared/image/gallery/testing/gallery.testing.module.d.ts +2 -1
  444. package/src/app/shared/inputs.d.ts +7 -5
  445. package/src/app/shared/material/autocomplete/material.autocomplete.config.d.ts +20 -1
  446. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +56 -16
  447. package/src/app/shared/material/autocomplete/material.autocomplete.module.d.ts +1 -1
  448. package/src/app/shared/material/autocomplete/material.autocomplete.utils.d.ts +2 -1
  449. package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +3 -2
  450. package/src/app/shared/material/badge/badge.directive.d.ts +10 -4
  451. package/src/app/shared/material/boolean/boolean.module.d.ts +15 -14
  452. package/src/app/shared/material/boolean/material.boolean.d.ts +51 -25
  453. package/src/app/shared/material/boolean/testing/boolean.test.page.d.ts +1 -0
  454. package/src/app/shared/material/chips/chips.module.d.ts +2 -1
  455. package/src/app/shared/material/chips/material.chips.d.ts +46 -21
  456. package/src/app/shared/material/chips/testing/chips.test.d.ts +1 -0
  457. package/src/app/shared/material/datetime/datetime.module.d.ts +1 -1
  458. package/src/app/shared/material/datetime/material.date.d.ts +33 -18
  459. package/src/app/shared/material/datetime/material.dateshort.d.ts +29 -16
  460. package/src/app/shared/material/datetime/material.datetime.d.ts +41 -28
  461. package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +3 -3
  462. package/src/app/shared/material/duration/duration.module.d.ts +1 -1
  463. package/src/app/shared/material/duration/material.duration.d.ts +1 -1
  464. package/src/app/shared/material/latlong/latlong.utils.d.ts +9 -1
  465. package/src/app/shared/material/latlong/material.latlong.d.ts +29 -32
  466. package/src/app/shared/material/latlong/material.latlong.module.d.ts +1 -1
  467. package/src/app/shared/material/latlong/testing/latlong.test.d.ts +5 -1
  468. package/src/app/shared/material/material.config.d.ts +3 -0
  469. package/src/app/shared/material/material.module.d.ts +5 -6
  470. package/src/app/shared/material/material.testing.module.d.ts +8 -7
  471. package/src/app/shared/material/swipe/material.swipe.d.ts +4 -3
  472. package/src/app/shared/material/text/testing/text-form.testing.d.ts +10 -4
  473. package/src/app/shared/material/text/text-form.component.d.ts +42 -8
  474. package/src/app/shared/named-filter/named-filter-selector.component.d.ts +30 -14
  475. package/src/app/shared/named-filter/named-filter.service.d.ts +12 -6
  476. package/src/app/shared/named-filter/testing/named-filter-selector.testing.d.ts +34 -0
  477. package/src/app/shared/named-filter/testing/named-filter.testing.module.d.ts +10 -0
  478. package/src/app/shared/pipes/arrays.pipe.d.ts +5 -0
  479. package/src/app/shared/pipes/badge.pipes.d.ts +7 -0
  480. package/src/app/shared/pipes/date-format.pipe.d.ts +3 -2
  481. package/src/app/shared/pipes/form.pipes.d.ts +18 -8
  482. package/src/app/shared/pipes/html.pipes.d.ts +15 -0
  483. package/src/app/shared/pipes/maps.pipe.d.ts +4 -4
  484. package/src/app/shared/pipes/maskito.pipe.d.ts +7 -9
  485. package/src/app/shared/pipes/pipes.module.d.ts +7 -4
  486. package/src/app/shared/pipes/property.pipes.d.ts +24 -3
  487. package/src/app/shared/pipes/selection.pipes.d.ts +62 -0
  488. package/src/app/shared/pipes/string.pipes.d.ts +6 -6
  489. package/src/app/shared/pipes/types.pipes.d.ts +6 -1
  490. package/src/app/shared/services/entity-service.class.d.ts +0 -2
  491. package/src/app/shared/services/memory-entity-service.class.d.ts +6 -3
  492. package/src/app/shared/services.d.ts +1 -0
  493. package/src/app/shared/shared.testing.module.d.ts +2 -1
  494. package/src/app/shared/storage/storage-explorer.component.d.ts +4 -3
  495. package/src/app/shared/testing/maskito.test.d.ts +10 -0
  496. package/src/app/shared/toolbar/toolbar.d.ts +7 -2
  497. package/src/app/shared/types.d.ts +5 -0
  498. package/src/app/shared/upload-file/upload-file.component.d.ts +1 -0
  499. package/src/app/shared/validator/form-error-adapter.class.d.ts +17 -11
  500. package/src/app/shared/validator/validators.d.ts +20 -9
  501. package/src/app/social/job/progression/job-progression.icon.d.ts +4 -5
  502. package/src/app/social/job/progression/job-progression.list.d.ts +1 -3
  503. package/src/app/social/job/progression/job-progression.service.d.ts +3 -4
  504. package/src/app/social/job/testing/job-progression.testing.d.ts +0 -1
  505. package/src/app/social/job/testing/job-progression.testing.service.d.ts +3 -11
  506. package/src/app/social/message/message.modal.d.ts +2 -2
  507. package/src/app/social/message/message.model.d.ts +1 -1
  508. package/src/app/social/user-event/notification/user-event-notification.icon.d.ts +4 -4
  509. package/src/app/social/user-event/testing/user-event.testing.d.ts +1 -0
  510. package/src/app/social/user-event/testing/user-event.testing.model.d.ts +2 -3
  511. package/src/app/social/user-event/testing/user-event.testing.service.d.ts +1 -0
  512. package/src/assets/i18n/en-US.json +48 -19
  513. package/src/assets/i18n/en.json +48 -20
  514. package/src/assets/i18n/fr.json +50 -20
  515. package/src/assets/manifest.json +1 -1
  516. package/src/environments/environment.class.d.ts +10 -0
  517. package/src/environments/environment.d.ts +0 -1
  518. package/src/environments/environment.loader.d.ts +0 -2
  519. package/src/theme/_functions.scss +15 -0
  520. package/src/theme/_icons.scss +1 -1
  521. package/src/theme/_ionic.globals.scss +8 -2
  522. package/src/theme/_ionic.scss +10 -10
  523. package/src/theme/_material.globals.scss +16 -43
  524. package/src/theme/_material.scss +45 -32
  525. package/src/theme/_mixins.scss +99 -18
  526. package/src/theme/_ngx-components.forms.scss +354 -0
  527. package/src/theme/_ngx-components.globals.scss +20 -10
  528. package/src/theme/_ngx-components.scss +194 -400
  529. package/src/theme/_ngx-components.table.scss +200 -207
  530. package/src/theme/_ngx-components.tabs.scss +54 -0
  531. package/src/theme/_responsive.scss +0 -31
  532. package/src/theme/_theme.scss +2 -0
  533. package/src/theme/_theme.variables.scss +172 -0
  534. package/esm2022/src/app/core/table/actions-column.component.mjs +0 -115
  535. package/esm2022/src/app/shared/material/boolean/material-boolean2.mjs +0 -266
  536. package/esm2022/src/app/shared/material/numpad/numpad.append-to-input.directive.mjs +0 -104
  537. package/esm2022/src/app/shared/material/numpad/numpad.component.mjs +0 -83
  538. package/esm2022/src/app/shared/material/numpad/numpad.container.mjs +0 -203
  539. package/esm2022/src/app/shared/material/numpad/numpad.content.mjs +0 -19
  540. package/esm2022/src/app/shared/material/numpad/numpad.directive.mjs +0 -168
  541. package/esm2022/src/app/shared/material/numpad/numpad.dom-service.mjs +0 -36
  542. package/esm2022/src/app/shared/material/numpad/numpad.model.mjs +0 -16
  543. package/esm2022/src/app/shared/material/numpad/numpad.module.mjs +0 -60
  544. package/esm2022/src/app/shared/material/numpad/testing/numpad.test.mjs +0 -48
  545. package/src/app/core/table/actions-column.component.d.ts +0 -48
  546. package/src/app/shared/material/boolean/material-boolean2.d.ts +0 -66
  547. package/src/app/shared/material/numpad/numpad.append-to-input.directive.d.ts +0 -22
  548. package/src/app/shared/material/numpad/numpad.component.d.ts +0 -26
  549. package/src/app/shared/material/numpad/numpad.container.d.ts +0 -40
  550. package/src/app/shared/material/numpad/numpad.content.d.ts +0 -7
  551. package/src/app/shared/material/numpad/numpad.directive.d.ts +0 -35
  552. package/src/app/shared/material/numpad/numpad.dom-service.d.ts +0 -16
  553. package/src/app/shared/material/numpad/numpad.model.d.ts +0 -30
  554. package/src/app/shared/material/numpad/numpad.module.d.ts +0 -16
  555. package/src/app/shared/material/numpad/testing/numpad.test.d.ts +0 -13
@@ -1,10 +1,11 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MenuService } from '../menu.service';
3
- import { AppTabEditor } from '../../form/entity/editor.class';
4
3
  import { ActivatedRoute, Router } from '@angular/router';
5
4
  import { AlertController, NavController } from '@ionic/angular';
6
5
  import { TranslateService } from '@ngx-translate/core';
7
6
  import { Subject } from 'rxjs';
7
+ import { MatTabGroup } from '@angular/material/tabs';
8
+ import { AppTabEditor } from '../../form/entity/tab-editor.class';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnDestroy, AfterViewInit {
10
11
  protected menuService: MenuService;
@@ -17,6 +18,12 @@ export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnD
17
18
  protected showThirdTab: boolean;
18
19
  protected $title: Subject<string>;
19
20
  protected $secondTabTitle: Subject<string>;
21
+ protected _subSelectedTabIndex: number;
22
+ subTabCount: number;
23
+ set subSelectedTabIndex(value: number);
24
+ get subSelectedTabIndex(): number;
25
+ readonly subSelectedTabIndexChange: EventEmitter<number>;
26
+ subTabGroup: MatTabGroup;
20
27
  protected set title(value: string);
21
28
  protected set secondTabTitle(value: string);
22
29
  constructor(route: ActivatedRoute, // Modal editor give 'null'
@@ -38,6 +45,7 @@ export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnD
38
45
  protected getFirstInvalidTabIndex(): number;
39
46
  protected getDefaultTitle(): string;
40
47
  protected computeTitle(): Promise<string>;
48
+ setSubSelectedTabIndex(value: number): void;
41
49
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuTestingPage, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuTestingPage, "app-testing-menu", never, {}, {}, never, never, false, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuTestingPage, "app-testing-menu", never, { "subSelectedTabIndex": { "alias": "subSelectedTabIndex"; "required": false; }; }, { "subSelectedTabIndexChange": "subSelectedTabIndexChange"; }, never, never, false, never>;
43
51
  }
@@ -13,6 +13,7 @@ export interface ISelectPeerModalOptions {
13
13
  allowSelectDownPeer: boolean;
14
14
  onRefresh: EventEmitter<Event>;
15
15
  showSetManuallyButton: boolean;
16
+ selectedPeer?: string;
16
17
  }
17
18
  export declare class SelectPeerModal implements OnDestroy, ISelectPeerModalOptions {
18
19
  private modalCtrl;
@@ -24,14 +25,16 @@ export declare class SelectPeerModal implements OnDestroy, ISelectPeerModalOptio
24
25
  protected loggingService?: ILoggingService;
25
26
  private _subscription;
26
27
  private readonly _logger;
27
- loading: boolean;
28
- mobile: boolean;
29
- $peers: Subject<Peer[]>;
30
- peerMinVersion: string;
28
+ protected loading: boolean;
29
+ protected mobile: boolean;
30
+ protected $peers: Subject<Peer[]>;
31
+ protected peerMinVersion: string;
32
+ protected peerDefaultPrefix: string;
33
+ selectedPeer: string;
31
34
  canCancel: boolean;
32
35
  allowSelectDownPeer: boolean;
33
- onRefresh: EventEmitter<Event>;
34
36
  showSetManuallyButton: boolean;
37
+ onRefresh: EventEmitter<Event>;
35
38
  constructor(modalCtrl: ModalController, popoverController: PopoverController, translate: TranslateService, http: HttpClient, cd: ChangeDetectorRef, environment: Environment, loggingService?: ILoggingService);
36
39
  set peers(peers: Observable<Peer[]>);
37
40
  cancel(): void;
@@ -43,12 +46,15 @@ export declare class SelectPeerModal implements OnDestroy, ISelectPeerModalOptio
43
46
  * @param peer
44
47
  */
45
48
  isCompatible(peer: Peer): boolean;
46
- refresh(event: any): void;
49
+ refresh(event: Event): void;
47
50
  clickSetManually(event?: Event): Promise<void>;
48
51
  refreshPeers(peers: Peer[]): Promise<void>;
49
52
  protected refreshPeer(peer: Peer): Promise<Peer>;
50
53
  protected openPeerUrlPopover(event: Event, opts?: Partial<TextPopoverOptions>): Promise<any>;
51
54
  protected markForCheck(): void;
52
55
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectPeerModal, [null, null, null, null, null, null, { optional: true; }]>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectPeerModal, "select-peer-modal", never, { "canCancel": { "alias": "canCancel"; "required": false; }; "allowSelectDownPeer": { "alias": "allowSelectDownPeer"; "required": false; }; "onRefresh": { "alias": "onRefresh"; "required": false; }; "showSetManuallyButton": { "alias": "showSetManuallyButton"; "required": false; }; }, {}, never, never, false, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectPeerModal, "select-peer-modal", never, { "selectedPeer": { "alias": "selectedPeer"; "required": false; }; "canCancel": { "alias": "canCancel"; "required": false; }; "allowSelectDownPeer": { "alias": "allowSelectDownPeer"; "required": false; }; "showSetManuallyButton": { "alias": "showSetManuallyButton"; "required": false; }; "onRefresh": { "alias": "onRefresh"; "required": false; }; }, {}, never, never, false, never>;
57
+ static ngAcceptInputType_canCancel: unknown;
58
+ static ngAcceptInputType_allowSelectDownPeer: unknown;
59
+ static ngAcceptInputType_showSetManuallyButton: unknown;
54
60
  }
@@ -1,11 +1,10 @@
1
1
  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
- import * as i3 from "@angular/common/http";
5
- import * as i4 from "@ngx-translate/core";
6
- import * as i5 from "../form/text-popover/text-popover.module";
4
+ import * as i3 from "@ngx-translate/core";
5
+ import * as i4 from "../form/text-popover/text-popover.module";
7
6
  export declare class AppSelectPeerModule {
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<AppSelectPeerModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<AppSelectPeerModule, [typeof i1.SelectPeerModal], [typeof i2.SharedModule, typeof i3.HttpClientModule, typeof i4.TranslateModule, typeof i5.AppTextPopoverModule], [typeof i4.TranslateModule, typeof i1.SelectPeerModal]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppSelectPeerModule, [typeof i1.SelectPeerModal], [typeof i2.SharedModule, typeof i3.TranslateModule, typeof i4.AppTextPopoverModule], [typeof i3.TranslateModule, typeof i1.SelectPeerModal]>;
10
9
  static ɵinj: i0.ɵɵInjectorDeclaration<AppSelectPeerModule>;
11
10
  }
@@ -40,6 +40,11 @@ export interface AuthData {
40
40
  export interface RegisterData extends AuthData {
41
41
  account: Account;
42
42
  }
43
+ export interface ChangePasswordData {
44
+ password: string;
45
+ confirmPassword: string;
46
+ email: string;
47
+ }
43
48
  export interface UserSettingsOptions {
44
49
  options: FormFieldDefinitionMap;
45
50
  }
@@ -67,6 +72,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
67
72
  private toastController;
68
73
  protected environment: Environment;
69
74
  onLogin: Subject<Account>;
75
+ onWillLogout: Subject<Account>;
70
76
  onLogout: Subject<void>;
71
77
  onChange: Subject<Account>;
72
78
  onAuthTokenChange: BehaviorSubject<string>;
@@ -148,6 +154,9 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
148
154
  isEmailExists(email: string): Promise<boolean>;
149
155
  sendConfirmationEmail(email: string, locale?: string): Promise<boolean>;
150
156
  confirmEmail(email: string, code: string): Promise<boolean>;
157
+ sendResetPasswordEmail(username: string, locale?: string): Promise<boolean>;
158
+ updatePubkey(data: AuthData): Promise<boolean>;
159
+ resetPubkey(data: AuthData, token: string): Promise<boolean>;
151
160
  listenChanges(opts?: AccountWatchOptions): Subscription;
152
161
  get additionalFields(): FormFieldDefinition[];
153
162
  get $additionalFields(): Observable<FormFieldDefinition[]>;
@@ -112,7 +112,7 @@ export declare abstract class BaseEntityService<T extends Entity<T, ID>, F exten
112
112
  isNewFn(data: T): boolean;
113
113
  protected ngOnStart(): Promise<void>;
114
114
  protected fillDefaultProperties(source: T): void;
115
- protected asObject(entity: T, opts?: EntityAsObjectOptions): any;
115
+ protected asObject(source: T, opts?: EntityAsObjectOptions): any;
116
116
  protected getRefetchQueriesForMutation(opts?: EntitySaveOptions): ((result: FetchResult<{
117
117
  data: any;
118
118
  }>) => InternalRefetchQueriesInclude) | InternalRefetchQueriesInclude;
@@ -1,12 +1,19 @@
1
- import { FormFieldDefinition } from "../../../shared/form/field.model";
1
+ import { FormFieldDefinition } from '../../../shared/form/field.model';
2
2
  export declare const CORE_CONFIG_OPTIONS: Readonly<{
3
3
  LOGO: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
4
4
  FAVICON: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
5
5
  DEFAULT_LOCALE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
6
6
  DEFAULT_LAT_LONG_FORMAT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
7
+ /**
8
+ * @deprecated Use `ACCOUNT_LAT_LONG_FORMAT_ENABLE` instead
9
+ */
10
+ DEFAULT_LAT_LONG_FORMAT_ENABLED: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
7
11
  REGISTRATION_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
8
12
  AUTH_TOKEN_TYPE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
13
+ AUTH_RESET_PASSWORD_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
9
14
  AUTH_API_TOKEN_ENABLED: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
15
+ AUTH_API_TOKEN_SCOPE_ENABLED: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
16
+ DEFAULT_AUTH_API_TOKEN_SCOPE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
10
17
  GRAVATAR_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
11
18
  GRAVATAR_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
12
19
  TESTING: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
@@ -24,7 +31,11 @@ export declare const CORE_CONFIG_OPTIONS: Readonly<{
24
31
  COLOR_WARNING: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
25
32
  COLOR_ACCENT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
26
33
  COLOR_DANGER: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
34
+ FORM_FIELD_BACKGROUND_COLOR: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
35
+ FORM_FIELD_FOCUS_BACKGROUND_COLOR: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
36
+ FORM_FIELD_DISABLED_BACKGROUND_COLOR: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
27
37
  ANDROID_INSTALL_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
28
38
  DB_TIMEZONE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
39
+ ACCOUNT_LAT_LONG_FORMAT_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
29
40
  ACCOUNT_READONLY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
30
41
  }>;
@@ -39,7 +39,7 @@ export declare class ConfigService extends BaseGraphqlService<Configuration, any
39
39
  query?: any;
40
40
  variables?: any;
41
41
  }): Promise<Configuration>;
42
- canUserWrite(data: Configuration, opts?: any): boolean;
42
+ canUserWrite(data: Configuration): boolean;
43
43
  /**
44
44
  * Save a configuration
45
45
  *
@@ -50,9 +50,10 @@ export declare class ConfigService extends BaseGraphqlService<Configuration, any
50
50
  clearCache(opts?: {
51
51
  cacheName?: string;
52
52
  }): Promise<true>;
53
- delete(data: Configuration, options?: any): Promise<any>;
54
- listenChanges(id: number, options?: any): Observable<Configuration | undefined>;
53
+ delete(data: Configuration): Promise<any>;
54
+ listenChanges(id: number): Observable<Configuration | undefined>;
55
55
  get optionDefs(): FormFieldDefinition[];
56
+ protected copyIdAndUpdateDate(source: Configuration | undefined, target: Configuration): void;
56
57
  private loadOrRestoreLocally;
57
58
  private restoreLocally;
58
59
  private storeLocally;
@@ -1,3 +1,13 @@
1
+ import { FormErrors } from '../../shared/forms';
2
+ export interface AppError {
3
+ code?: number;
4
+ message?: string;
5
+ }
6
+ export interface AppErrorWithDetails extends AppError {
7
+ details: AppError & {
8
+ errors?: FormErrors;
9
+ };
10
+ }
1
11
  export declare interface ServiceError {
2
12
  code: number;
3
13
  message: string;
@@ -30,6 +40,7 @@ export declare const ErrorCodes: {
30
40
  INTERNAL_SERVER_ERROR: number;
31
41
  AUTH_CHALLENGE_ERROR: number;
32
42
  AUTH_SERVER_ERROR: number;
43
+ AUTH_UPDATE_PUBKEY_ERROR: number;
33
44
  LOAD_CONFIG_ERROR: number;
34
45
  SAVE_CONFIG_ERROR: number;
35
46
  LOAD_TRASH_ENTITY_ERROR: number;
@@ -26,11 +26,11 @@ export declare const APP_LOCAL_SETTINGS: InjectionToken<Partial<LocalSettings>>;
26
26
  export declare const APP_LOCAL_SETTINGS_OPTIONS: InjectionToken<LocalSettingsOptions>;
27
27
  export declare class LocalSettingsService extends StartableService<LocalSettings> {
28
28
  private translate;
29
- private platform;
30
29
  private storage;
31
30
  protected readonly environment: Environment;
32
31
  private readonly defaultSettings;
33
32
  onChange: Subject<LocalSettings>;
33
+ darkMode$: import("rxjs").Observable<boolean>;
34
34
  private readonly _optionDefs;
35
35
  private readonly _serializeAsString;
36
36
  private _$persist;
@@ -41,7 +41,9 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
41
41
  get mobile(): boolean;
42
42
  set mobile(value: boolean);
43
43
  get pageHistory(): HistoryPageReference[];
44
- constructor(translate: TranslateService, platform: Platform, storage: Storage, environment: Environment, defaultSettings: LocalSettings, options: LocalSettingsOptions);
44
+ get allowDarkMode(): boolean;
45
+ get isDarkMode(): boolean;
46
+ constructor(platform: Platform, translate: TranslateService, storage: Storage, environment: Environment, defaultSettings: LocalSettings, options: LocalSettingsOptions);
45
47
  ngOnStart(): Promise<LocalSettings>;
46
48
  isUsageMode(mode: UsageMode): boolean;
47
49
  isOnFieldMode(value?: UsageMode): boolean;
@@ -66,7 +68,7 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
66
68
  }): Promise<void>;
67
69
  getPageSettings<T = any>(pageId: string, propertyName?: string): T;
68
70
  savePageSetting(pageId: string, value: any, propertyName?: string): Promise<void>;
69
- getOfflineFeature(featureName: string): OfflineFeature;
71
+ getOfflineFeature<F = any>(featureName: string): OfflineFeature<F>;
70
72
  getOfflineFeatureLastSyncDate(featureName: string): Moment;
71
73
  hasOfflineFeature(featureName?: string): boolean;
72
74
  saveOfflineFeature(feature: OfflineFeature): void;
@@ -80,7 +82,9 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
80
82
  addToPageHistory(page: HistoryPageReference, opts?: AddToPageHistoryOptions, pageHistory?: HistoryPageReference[]): Promise<void>;
81
83
  removePageHistory(path: string, opts?: {
82
84
  emitEvent?: boolean;
83
- }, pageHistory?: HistoryPageReference[]): any;
85
+ persistImmediate?: boolean;
86
+ }, pageHistory?: HistoryPageReference[], // used for recursive call to children)
87
+ depth?: number): any;
84
88
  clearPageHistory(): Promise<void>;
85
89
  protected ngOnStop(): Promise<void>;
86
90
  private resetData;
@@ -1,9 +1,10 @@
1
1
  import { Moment } from 'moment';
2
2
  import { getPropertyByPath } from '../../../shared/functions';
3
- import { FilterFn } from '../../../shared/services/entity-service.class';
4
- import { ObjectMap, ObjectMapEntry, PropertiesArray, PropertiesMap } from '../../../shared/types';
3
+ import { FilterFn, ObjectMap, ObjectMapEntry } from '../../../shared/types';
5
4
  import { StoreObject } from '@apollo/client/core';
6
5
  import { TreeItemEntityUtils } from './tree-item-entity.model';
6
+ import { SortDirection } from '@angular/material/sort';
7
+ import { AppPropertiesUtils } from '../../form/properties/properties.utils';
7
8
  export declare interface Cloneable<T> {
8
9
  clone(): T;
9
10
  }
@@ -49,13 +50,13 @@ export declare abstract class EntityUtils {
49
50
  static getPropertyByPath: typeof getPropertyByPath;
50
51
  static getArrayAsMap<T = any>(source?: ObjectMapEntry<T>[]): ObjectMap<T>;
51
52
  static getMapAsArray<T = any>(source?: ObjectMap<T>): ObjectMapEntry<T>[];
52
- static getPropertyArrayAsObject(source?: PropertiesArray): PropertiesMap;
53
+ static getPropertyArrayAsObject: typeof AppPropertiesUtils.arrayAsObject;
53
54
  static copyIdAndUpdateDate<T extends Entity<any, any, any>>(source: T, target: T): void;
54
55
  static fillLocalIds<T extends IEntity<T>>(items: T[], sequenceFactory: (firstEntity: T, incrementSize: number) => Promise<number>): Promise<void>;
55
56
  static cleanIdAndUpdateDate<T extends IEntity<T>>(source: T): void;
56
57
  static cleanIdsAndUpdateDates<T extends IEntity<T>>(items: T[]): void;
57
- static sort<T extends IEntity<T> | any>(data: T[], sortBy?: string, sortDirection?: string): T[];
58
- static sortComparator<T extends IEntity<T> | any>(sortBy?: string, sortDirection?: string): (a: T, b: T) => number;
58
+ static sort<T extends IEntity<T> | any>(data: T[], sortBy?: string, sortDirection?: SortDirection): T[];
59
+ static sortComparator<T extends IEntity<T> | any>(sortBy?: string, sortDirection?: SortDirection): (a: T, b: T) => number;
59
60
  static compare<T extends IEntity<any>>(value1: T, value2: T, direction: 1 | -1, checkAttribute?: keyof T): number;
60
61
  static compareValue<T>(value1: T, value2: T, direction: 1 | -1): number;
61
62
  static filter<T extends IEntity<T> | any>(data: T[], searchAttribute: string, searchText: string): T[];
@@ -1,5 +1,5 @@
1
1
  import { Entity, EntityAsObjectOptions, IEntity } from './entity.model';
2
- import { FilterFn } from '../../../shared/services/entity-service.class';
2
+ import { FilterFn } from '../../../shared/types';
3
3
  export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T extends IEntity<T, any>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> extends IEntity<F, ID, AO, FO> {
4
4
  asPodObject(): any;
5
5
  asFilterFn(): FilterFn<T>;
@@ -3,6 +3,7 @@ export declare class Peer extends Entity<Peer> implements Cloneable<Peer> {
3
3
  static fromObject: (source: any, opts?: any) => Peer;
4
4
  static parseUrl(peerUrl: string): Peer;
5
5
  static path(peer: Peer, ...paths: string[]): string;
6
+ static equals(p1: Peer, p2: Peer): boolean;
6
7
  dns: string;
7
8
  ipv4: string;
8
9
  ipv6: string;
@@ -27,7 +27,11 @@ export declare class PersonUtils {
27
27
  static getMainProfile(profiles?: string[]): UserProfileLabel;
28
28
  static getMainProfileIndex(profiles?: string[]): number;
29
29
  static hasUpperOrEqualsProfile(actualProfiles: string[], expectedProfile: UserProfileLabel): boolean;
30
- static personToString(obj: Person): string;
31
- static personsToString(data: Person[], separator?: string): string;
30
+ static personToString(obj: Person, opts?: {
31
+ withDepartment?: boolean;
32
+ }): string;
33
+ static personsToString(data: Person[], separator?: string, opts?: {
34
+ withDepartment?: boolean;
35
+ }): string;
32
36
  static roleToProfile(role: string, defaultProfile?: UserProfileLabel): UserProfileLabel;
33
37
  }
@@ -1,8 +1,8 @@
1
1
  import { Moment } from 'moment';
2
2
  import { Entity, EntityAsObjectOptions, IEntity } from './entity.model';
3
3
  import { IconRef } from '../../../shared/types';
4
- export declare function referentialToString(obj: Referential | any, properties?: string[]): string | undefined;
5
- export declare function referentialsToString(values: Referential[], properties?: string[], separator?: string): string;
4
+ export declare function referentialToString(obj: Referential | any, properties?: string[], separator?: string): string | undefined;
5
+ export declare function referentialsToString(values: Referential[], properties?: string[], valueSeparator?: string, propertySeparator?: string): string;
6
6
  export declare interface IStatus {
7
7
  id: number;
8
8
  icon?: string;
@@ -31,7 +31,7 @@ export declare abstract class BaseReferential<T extends BaseReferential<T, ID, A
31
31
  parentId: number;
32
32
  entityName: string;
33
33
  icon?: IconRef;
34
- constructor(__typename?: string);
34
+ protected constructor(__typename?: string);
35
35
  asObject(opts?: AO): any;
36
36
  fromObject(source: any, opts?: FO): void;
37
37
  equals(other: T): boolean;
@@ -54,6 +54,7 @@ export declare class ReferentialUtils {
54
54
  export interface ReferentialAsObjectOptions extends EntityAsObjectOptions {
55
55
  keepEntityName?: boolean;
56
56
  keepIcon?: boolean;
57
+ keepProperties?: boolean;
57
58
  }
58
59
  /**
59
60
  * Used to store an entity locally
@@ -65,6 +66,7 @@ export declare const MINIFY_ENTITY_FOR_LOCAL_STORAGE: ReferentialAsObjectOptions
65
66
  export declare const MINIFY_ENTITY_FOR_POD: ReferentialAsObjectOptions;
66
67
  export declare class ReferentialRef<T extends ReferentialRef<any, ID> = ReferentialRef<any, any>, ID = number, O extends ReferentialAsObjectOptions = ReferentialAsObjectOptions, FO = any> extends Entity<T, ID, O, FO> implements IReferentialRef<T, ID> {
67
68
  static fromObject: (source: any, opts?: any) => ReferentialRef;
69
+ static clone(source: any): ReferentialRef;
68
70
  label: string;
69
71
  name: string;
70
72
  description: string;
@@ -72,6 +74,9 @@ export declare class ReferentialRef<T extends ReferentialRef<any, ID> = Referent
72
74
  levelId: number;
73
75
  entityName: string;
74
76
  icon?: IconRef;
77
+ properties?: {
78
+ [key: string]: any;
79
+ };
75
80
  constructor();
76
81
  asObject(opts?: O): any;
77
82
  fromObject(source: any, opts?: FO): void;
@@ -2,14 +2,15 @@ import { PropertiesMap, Property } from '../../../shared/types';
2
2
  import { InjectionToken } from '@angular/core';
3
3
  import { HistoryPageReference } from './history.model';
4
4
  export type UsageMode = 'DESK' | 'FIELD';
5
+ export declare function isOnFieldMode(usageMode: UsageMode): void;
5
6
  export declare interface LocaleConfig extends Property {
6
7
  country?: string;
7
8
  }
8
9
  export declare const APP_LOCALES: InjectionToken<LocaleConfig[]>;
9
- export declare interface OfflineFeature {
10
+ export declare interface OfflineFeature<F = any> {
10
11
  name: string;
11
12
  lastSyncDate?: string;
12
- filter?: any;
13
+ filter?: F;
13
14
  }
14
15
  export declare interface LocalSettings {
15
16
  pages?: any;
@@ -23,4 +24,5 @@ export declare interface LocalSettings {
23
24
  pageHistory?: HistoryPageReference[];
24
25
  offlineFeatures?: (string | OfflineFeature)[];
25
26
  pageHistoryMaxSize: number;
27
+ darkMode?: boolean;
26
28
  }
@@ -7,6 +7,7 @@ export declare class TokenScope {
7
7
  }
8
8
  export declare class UserToken extends Entity<UserToken> {
9
9
  static fromObject: (source: any, opts?: any) => UserToken;
10
+ static equals(t1: UserToken, t2: UserToken): boolean;
10
11
  pubkey: string;
11
12
  token: string;
12
13
  name: string;
@@ -1,6 +1,6 @@
1
1
  import { IEntity } from './entity.model';
2
- import { FilterFn } from '../../../shared/services/entity-service.class';
3
2
  import { EntityFilter } from './filter.model';
3
+ import { FilterFn } from '../../../shared/types';
4
4
  export declare interface ITreeItemEntity<T extends IEntity<T, ID>, ID = number> {
5
5
  parentId: ID;
6
6
  parent: T;
@@ -18,13 +18,14 @@ import { ConnectionType, NetworkEventType } from './network.types';
18
18
  import { ILoggingService } from '../../shared/logging/logger.model';
19
19
  import * as i0 from "@angular/core";
20
20
  export declare const PEER_URL_REGEXP: RegExp;
21
+ export declare const NETWORK_DEFAULT_CONNECTION_TIMEOUT = 10000;
21
22
  export declare class NetworkService extends StartableObservableService<Peer, Peer> {
23
+ private _document;
22
24
  private modalCtrl;
23
25
  private storage;
24
26
  private settings;
25
27
  private cache;
26
28
  private http;
27
- private _document;
28
29
  protected environment: Environment;
29
30
  private loggingService;
30
31
  private translate;
@@ -40,13 +41,15 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
40
41
  private readonly _timerRefreshCondition;
41
42
  private _deviceConnectionType;
42
43
  private _forceOffline;
44
+ private readonly _connectionTimeout;
43
45
  private _listeners;
44
46
  get online(): boolean;
45
47
  get offline(): boolean;
46
48
  get connectionType(): ConnectionType;
47
49
  get peer(): Peer;
48
50
  set peer(peer: Peer);
49
- constructor(platform: Platform, modalCtrl: ModalController, storage: Storage, settings: LocalSettingsService, cache: CacheService, http: HttpClient, _document: any, environment: Environment, loggingService: ILoggingService, network: Network, translate: TranslateService, toastController: ToastController);
51
+ get connectionTimeout(): number;
52
+ constructor(_document: any, platform: Platform, modalCtrl: ModalController, storage: Storage, settings: LocalSettingsService, cache: CacheService, http: HttpClient, environment: Environment, loggingService: ILoggingService, network: Network, translate: TranslateService, toastController: ToastController);
50
53
  /**
51
54
  * Register to network event
52
55
  *
@@ -75,14 +78,14 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
75
78
  * @param peer
76
79
  * @param opts
77
80
  */
78
- checkPeerAlive(peer?: string | Peer, opts?: {
79
- checkCompatible?: boolean;
80
- displayToast?: boolean;
81
- }): Promise<NodeInfo>;
81
+ checkPeerAlive(peer?: string | Peer): Promise<NodeInfo>;
82
82
  checkPeerCompatible(peerInfo: NodeInfo, opts?: {
83
83
  showToast?: boolean;
84
84
  }): Promise<boolean>;
85
- getNodeInfo(peer?: string | Peer): Promise<NodeInfo>;
85
+ getNodeInfo(peer?: string | Peer, opts?: {
86
+ nocache?: boolean;
87
+ timeout?: number;
88
+ }): Promise<NodeInfo>;
86
89
  getAppManifest(peer?: string | Peer, opts?: {
87
90
  nocache?: boolean;
88
91
  }): Promise<AppManifest | undefined>;
@@ -132,6 +135,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
132
135
  };
133
136
  responseType?: 'json';
134
137
  nocache?: boolean;
138
+ timeout?: number;
135
139
  }): Promise<T>;
136
140
  protected getUri(path: string): string;
137
141
  protected onDeviceConnectionChanged(connectionType?: string): void;
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { Department } from '../model/department.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DepartmentToStringPipe implements PipeTransform {
5
- transform(value: Department | (Department[]), separator?: string): string;
5
+ transform(value: Department | Department[], separator?: string): string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DepartmentToStringPipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<DepartmentToStringPipe, "departmentToString", false>;
8
8
  static ɵprov: i0.ɵɵInjectableDeclaration<DepartmentToStringPipe>;
@@ -2,7 +2,9 @@ import { PipeTransform } from '@angular/core';
2
2
  import { Person } from '../model/person.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class PersonToStringPipe implements PipeTransform {
5
- transform(value: Person | Person[], separator?: string): string;
5
+ transform(value: Person | Person[], separator?: string, opts?: {
6
+ withDepartment?: boolean;
7
+ }): string;
6
8
  static ɵfac: i0.ɵɵFactoryDeclaration<PersonToStringPipe, never>;
7
9
  static ɵpipe: i0.ɵɵPipeDeclaration<PersonToStringPipe, "personToString", false>;
8
10
  static ɵprov: i0.ɵɵInjectableDeclaration<PersonToStringPipe>;
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./usage-mode.pipes";
3
+ import * as i2 from "./person-to-string.pipe";
4
+ import * as i3 from "./account.pipes";
5
+ import * as i4 from "./department-to-string.pipe";
6
+ import * as i5 from "./referential-to-string.pipe";
7
+ export declare class CorePipesModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CorePipesModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CorePipesModule, [typeof i1.IsOnFieldPipe, typeof i1.IsOnDeskPipe, typeof i2.PersonToStringPipe, typeof i3.IsLoginAccountPipe, typeof i3.AccountToStringPipe, typeof i4.DepartmentToStringPipe, typeof i5.ReferentialToStringPipe], never, [typeof i1.IsOnFieldPipe, typeof i1.IsOnDeskPipe, typeof i2.PersonToStringPipe, typeof i3.IsLoginAccountPipe, typeof i3.AccountToStringPipe, typeof i4.DepartmentToStringPipe, typeof i5.ReferentialToStringPipe]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<CorePipesModule>;
11
+ }
@@ -0,0 +1,13 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { IReferentialRef, Referential, ReferentialRef } from '../model/referential.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ReferentialToStringPipe implements PipeTransform {
5
+ constructor();
6
+ transform(value: Referential | ReferentialRef | IReferentialRef | any, opts?: string[] | {
7
+ properties?: string[];
8
+ separator?: string;
9
+ propertySeparator?: string;
10
+ }): string;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReferentialToStringPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<ReferentialToStringPipe, "referentialToString", false>;
13
+ }
@@ -17,6 +17,8 @@ import { Downloader, DownloadRequest } from '@ionic-native/downloader/ngx';
17
17
  import { StartableService } from '../../shared/services/startable-service.class';
18
18
  import { OpenOptions } from '@capacitor/browser';
19
19
  import { ILoggingService } from '../../shared/logging/logger.model';
20
+ import { Clipboard as CdkClipboard } from '@angular/cdk/clipboard';
21
+ import { WriteOptions } from '@capacitor/clipboard/dist/esm/definitions';
20
22
  import * as i0 from "@angular/core";
21
23
  export declare const AndroidOsEnvironment: Readonly<{
22
24
  DIRECTORY_DOWNLOADS: "Download";
@@ -25,6 +27,7 @@ export declare const AndroidOsEnvironment: Readonly<{
25
27
  export declare class PlatformService extends StartableService {
26
28
  private ionicPlatform;
27
29
  private cdkPlatform;
30
+ private cdkClipboard;
28
31
  private toastController;
29
32
  private translate;
30
33
  private dateAdapter;
@@ -44,7 +47,7 @@ export declare class PlatformService extends StartableService {
44
47
  private _capacitor;
45
48
  private _android;
46
49
  private _ios;
47
- constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: Environment, loggingService: ILoggingService, downloader: Downloader);
50
+ constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, cdkClipboard: CdkClipboard, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: Environment, loggingService: ILoggingService, downloader: Downloader);
48
51
  private _downloadingJobs;
49
52
  private checkAppVersionTimer;
50
53
  is(platformName: Platforms): boolean;
@@ -79,7 +82,9 @@ export declare class PlatformService extends StartableService {
79
82
  uri: string;
80
83
  filename?: string;
81
84
  } & Partial<DownloadRequest>): Observable<string | undefined>;
82
- protected configureGlobalCssClass(mobile: boolean, win?: any): void;
85
+ copyToClipboard(data: string | WriteOptions, opts?: ShowToastOptions): Promise<void>;
86
+ toggleDarkTheme(enable: boolean): void;
87
+ protected configureTheme(mobile: boolean, win?: any): Promise<void>;
83
88
  protected configureCapacitorPlugins(): Promise<void>;
84
89
  protected configureTranslate(): void;
85
90
  protected applyLocale(locale: string): void;
@@ -90,6 +95,6 @@ export declare class PlatformService extends StartableService {
90
95
  }): Promise<void>;
91
96
  protected showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
92
97
  protected onStartupError(err: any): Promise<void>;
93
- static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
98
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
94
99
  static ɵprov: i0.ɵɵInjectableDeclaration<PlatformService>;
95
100
  }
@@ -1,6 +1,6 @@
1
1
  import { EntityFilter } from '../model/filter.model';
2
2
  import { Referential } from '../model/referential.model';
3
- import { FilterFn } from '../../../shared/services/entity-service.class';
3
+ import { FilterFn } from '../../../shared/types';
4
4
  export declare class ReferentialFilter extends EntityFilter<ReferentialFilter, Referential> {
5
5
  static fromObject: (source: any, opts?: any) => ReferentialFilter;
6
6
  searchText: string;
@@ -2,12 +2,16 @@ import { AbstractControl, UntypedFormBuilder, UntypedFormGroup, ValidationErrors
2
2
  import { LocalSettings } from '../model/settings.model';
3
3
  import { NetworkService } from '../network.service';
4
4
  import { AppValidatorService } from './base.validator.class';
5
+ import { AppFormArray } from '../../form/array/form-array';
6
+ import { Property } from '../../../shared/types';
7
+ import { PropertyValidator } from '../../form/properties/property.validator';
5
8
  import * as i0 from "@angular/core";
6
9
  export declare class LocalSettingsValidatorService extends AppValidatorService<LocalSettings> {
10
+ private propertyValidator;
7
11
  private networkService;
8
- constructor(formBuilder: UntypedFormBuilder, networkService: NetworkService);
12
+ constructor(formBuilder: UntypedFormBuilder, propertyValidator: PropertyValidator, networkService: NetworkService);
9
13
  getFormGroup(data?: LocalSettings): UntypedFormGroup;
10
- getPropertiesArray(array?: any): import("@angular/forms").UntypedFormArray;
14
+ getPropertiesArray(data?: any): AppFormArray<Property, UntypedFormGroup>;
11
15
  getPropertyFormGroup(data?: {
12
16
  key: string;
13
17
  value?: string;
@@ -3,8 +3,9 @@ import * as i1 from "./settings.page";
3
3
  import * as i2 from "../../shared/shared.module";
4
4
  import * as i3 from "../form/buttons/form-buttons-bar.module";
5
5
  import * as i4 from "@ngx-translate/core";
6
+ import * as i5 from "../form/properties/properties.module";
6
7
  export declare class AppSettingsPageModule {
7
8
  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 ɵmod: i0.ɵɵNgModuleDeclaration<AppSettingsPageModule, [typeof i1.SettingsPage], [typeof i2.SharedModule, typeof i3.AppFormButtonsBarModule, typeof i4.TranslateModule, typeof i5.AppPropertiesFormModule], [typeof i4.TranslateModule, typeof i1.SettingsPage]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<AppSettingsPageModule>;
10
11
  }