@sumaris-net/ngx-components 2.2.7 → 2.2.8-rc2

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 (239) hide show
  1. package/doc/changelog.md +7 -0
  2. package/esm2020/public_api.mjs +3 -1
  3. package/esm2020/src/app/admin/admin-routing.module.mjs +5 -5
  4. package/esm2020/src/app/admin/admin.module.mjs +5 -5
  5. package/esm2020/src/app/admin/services/person.service.mjs +4 -4
  6. package/esm2020/src/app/admin/services/validator/person.validator.mjs +4 -4
  7. package/esm2020/src/app/admin/users/users.mjs +5 -5
  8. package/esm2020/src/app/admin/users/users.module.mjs +5 -5
  9. package/esm2020/src/app/core/about/about.modal.mjs +4 -4
  10. package/esm2020/src/app/core/about/about.module.mjs +5 -5
  11. package/esm2020/src/app/core/account/account.module.mjs +5 -5
  12. package/esm2020/src/app/core/account/account.page.mjs +4 -4
  13. package/esm2020/src/app/core/auth/auth.form.mjs +4 -4
  14. package/esm2020/src/app/core/auth/auth.modal.mjs +4 -4
  15. package/esm2020/src/app/core/auth/auth.module.mjs +5 -5
  16. package/esm2020/src/app/core/core.module.mjs +5 -5
  17. package/esm2020/src/app/core/core.testing.module.mjs +5 -5
  18. package/esm2020/src/app/core/form/buttons/form-buttons-bar.component.mjs +5 -5
  19. package/esm2020/src/app/core/form/buttons/form-buttons-bar.module.mjs +5 -5
  20. package/esm2020/src/app/core/form/entity/editor.class.mjs +7 -7
  21. package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +4 -4
  22. package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +11 -8
  23. package/esm2020/src/app/core/form/entity/entity-metadata.component.mjs +4 -4
  24. package/esm2020/src/app/core/form/entity/entity.module.mjs +5 -5
  25. package/esm2020/src/app/core/form/form.class.mjs +4 -4
  26. package/esm2020/src/app/core/form/form.module.mjs +5 -5
  27. package/esm2020/src/app/core/form/form.utils.mjs +8 -1
  28. package/esm2020/src/app/core/form/list/list.form.mjs +4 -4
  29. package/esm2020/src/app/core/form/list/list.module.mjs +5 -5
  30. package/esm2020/src/app/core/form/properties/properties.form.mjs +5 -5
  31. package/esm2020/src/app/core/form/properties/properties.module.mjs +5 -5
  32. package/esm2020/src/app/core/form/properties/property.validator.mjs +4 -4
  33. package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +4 -4
  34. package/esm2020/src/app/core/form/properties/testing/properties-form.testing.module.mjs +5 -5
  35. package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.mjs +4 -4
  36. package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +5 -5
  37. package/esm2020/src/app/core/form/text-popover/text-form.component.mjs +4 -4
  38. package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +4 -4
  39. package/esm2020/src/app/core/form/text-popover/text-popover.module.mjs +5 -5
  40. package/esm2020/src/app/core/graphql/graphql.module.mjs +5 -5
  41. package/esm2020/src/app/core/graphql/graphql.service.mjs +4 -4
  42. package/esm2020/src/app/core/graphql/graphql.utils.mjs +1 -1
  43. package/esm2020/src/app/core/home/home.mjs +4 -4
  44. package/esm2020/src/app/core/home/home.module.mjs +5 -5
  45. package/esm2020/src/app/core/icon/icon.component.mjs +4 -4
  46. package/esm2020/src/app/core/icon/icon.module.mjs +5 -5
  47. package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +4 -4
  48. package/esm2020/src/app/core/install/install-upgrade-card.module.mjs +5 -5
  49. package/esm2020/src/app/core/menu/menu.component.mjs +8 -7
  50. package/esm2020/src/app/core/menu/menu.module.mjs +5 -5
  51. package/esm2020/src/app/core/menu/menu.service.mjs +4 -4
  52. package/esm2020/src/app/core/offline/update-offline-mode-card.component.mjs +4 -4
  53. package/esm2020/src/app/core/offline/update-offline-mode-card.module.mjs +5 -5
  54. package/esm2020/src/app/core/peer/select-peer.modal.mjs +4 -4
  55. package/esm2020/src/app/core/peer/select-peer.module.mjs +5 -5
  56. package/esm2020/src/app/core/register/register-confirm.page.mjs +4 -4
  57. package/esm2020/src/app/core/register/register.form.mjs +4 -4
  58. package/esm2020/src/app/core/register/register.modal.mjs +4 -4
  59. package/esm2020/src/app/core/register/register.module.mjs +5 -5
  60. package/esm2020/src/app/core/services/account.service.mjs +4 -4
  61. package/esm2020/src/app/core/services/auth-guard.service.mjs +4 -4
  62. package/esm2020/src/app/core/services/base-entity-service.class.mjs +4 -4
  63. package/esm2020/src/app/core/services/base-graphql-service.class.mjs +4 -4
  64. package/esm2020/src/app/core/services/config/core.config.mjs +1 -1
  65. package/esm2020/src/app/core/services/config.service.mjs +4 -4
  66. package/esm2020/src/app/core/services/crypto.service.mjs +4 -4
  67. package/esm2020/src/app/core/services/local-settings.service.mjs +4 -4
  68. package/esm2020/src/app/core/services/network.service.mjs +6 -27
  69. package/esm2020/src/app/core/services/network.types.mjs +20 -0
  70. package/esm2020/src/app/core/services/pipes/account.pipes.mjs +9 -9
  71. package/esm2020/src/app/core/services/pipes/department-to-string.pipe.mjs +5 -5
  72. package/esm2020/src/app/core/services/pipes/person-to-string.pipe.mjs +5 -5
  73. package/esm2020/src/app/core/services/pipes/usage-mode.pipes.mjs +9 -9
  74. package/esm2020/src/app/core/services/platform.service.mjs +4 -4
  75. package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +4 -4
  76. package/esm2020/src/app/core/services/testing/referential.validator.mjs +4 -4
  77. package/esm2020/src/app/core/services/validator/account.validator.mjs +4 -4
  78. package/esm2020/src/app/core/services/validator/base.validator.class.mjs +4 -4
  79. package/esm2020/src/app/core/services/validator/local-settings.validator.mjs +4 -4
  80. package/esm2020/src/app/core/services/validator/user-settings.validator.mjs +4 -4
  81. package/esm2020/src/app/core/settings/settings.module.mjs +5 -5
  82. package/esm2020/src/app/core/settings/settings.page.mjs +5 -5
  83. package/esm2020/src/app/core/table/actions-column.component.mjs +4 -4
  84. package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +4 -4
  85. package/esm2020/src/app/core/table/memory-table.class.mjs +4 -4
  86. package/esm2020/src/app/core/table/table-select-columns.component.mjs +4 -4
  87. package/esm2020/src/app/core/table/table.class.mjs +9 -6
  88. package/esm2020/src/app/core/table/table.module.mjs +5 -5
  89. package/esm2020/src/app/core/table/testing/table.testing.mjs +5 -5
  90. package/esm2020/src/app/core/table/testing/table.testing.module.mjs +5 -5
  91. package/esm2020/src/app/shared/audio/audio.mjs +4 -4
  92. package/esm2020/src/app/shared/audio/audio.testing.mjs +4 -4
  93. package/esm2020/src/app/shared/audio/audio.testing.module.mjs +5 -5
  94. package/esm2020/src/app/shared/capacitor/keyboard.mjs +4 -4
  95. package/esm2020/src/app/shared/constants.mjs +2 -2
  96. package/esm2020/src/app/shared/dates.mjs +2 -2
  97. package/esm2020/src/app/shared/debug/debug.component.mjs +4 -4
  98. package/esm2020/src/app/shared/debug/debug.module.mjs +5 -5
  99. package/esm2020/src/app/shared/directives/autofocus.directive.mjs +4 -4
  100. package/esm2020/src/app/shared/directives/autotitle.directive.mjs +4 -4
  101. package/esm2020/src/app/shared/directives/directives.module.mjs +5 -5
  102. package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +4 -4
  103. package/esm2020/src/app/shared/directives/ng-var.directive.mjs +4 -4
  104. package/esm2020/src/app/shared/directives/resizable/resizable.component.mjs +4 -4
  105. package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +4 -4
  106. package/esm2020/src/app/shared/directives/resizable/resizable.module.mjs +5 -5
  107. package/esm2020/src/app/shared/file/file.service.mjs +4 -4
  108. package/esm2020/src/app/shared/form/field.component.mjs +4 -4
  109. package/esm2020/src/app/shared/form/loading-spinner.mjs +4 -4
  110. package/esm2020/src/app/shared/gesture/gesture-config.mjs +4 -4
  111. package/esm2020/src/app/shared/guard/component-dirty.guard.mjs +4 -4
  112. package/esm2020/src/app/shared/help/help.modal.mjs +4 -4
  113. package/esm2020/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +4 -4
  114. package/esm2020/src/app/shared/hotkeys/hotkeys.service.mjs +4 -4
  115. package/esm2020/src/app/shared/hotkeys/shared-hotkeys.module.mjs +5 -5
  116. package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +4 -4
  117. package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +5 -5
  118. package/esm2020/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +4 -4
  119. package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +4 -4
  120. package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +5 -5
  121. package/esm2020/src/app/shared/image/image.module.mjs +5 -5
  122. package/esm2020/src/app/shared/image/image.service.mjs +4 -4
  123. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +4 -4
  124. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +5 -5
  125. package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +4 -4
  126. package/esm2020/src/app/shared/material/badge/badge.directive.mjs +4 -4
  127. package/esm2020/src/app/shared/material/badge/badge.module.mjs +5 -5
  128. package/esm2020/src/app/shared/material/badge/badge.test.mjs +4 -4
  129. package/esm2020/src/app/shared/material/boolean/boolean.module.mjs +5 -5
  130. package/esm2020/src/app/shared/material/boolean/material.boolean.mjs +5 -5
  131. package/esm2020/src/app/shared/material/chips/chips.module.mjs +5 -5
  132. package/esm2020/src/app/shared/material/chips/material.chips.mjs +4 -4
  133. package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +4 -4
  134. package/esm2020/src/app/shared/material/datetime/datetime.module.mjs +5 -5
  135. package/esm2020/src/app/shared/material/datetime/material.date.mjs +19 -18
  136. package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +228 -168
  137. package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +13 -10
  138. package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +4 -4
  139. package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +4 -4
  140. package/esm2020/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +103 -0
  141. package/esm2020/src/app/shared/material/duration/duration.module.mjs +5 -5
  142. package/esm2020/src/app/shared/material/duration/material.duration.mjs +4 -4
  143. package/esm2020/src/app/shared/material/latlong/latlong.utils.mjs +5 -5
  144. package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +6 -6
  145. package/esm2020/src/app/shared/material/latlong/material.latlong.module.mjs +5 -5
  146. package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +4 -4
  147. package/esm2020/src/app/shared/material/material.module.mjs +5 -5
  148. package/esm2020/src/app/shared/material/material.testing.module.mjs +16 -5
  149. package/esm2020/src/app/shared/material/numpad/numpad.append-to-input.directive.mjs +4 -4
  150. package/esm2020/src/app/shared/material/numpad/numpad.component.mjs +4 -4
  151. package/esm2020/src/app/shared/material/numpad/numpad.container.mjs +4 -4
  152. package/esm2020/src/app/shared/material/numpad/numpad.content.mjs +4 -4
  153. package/esm2020/src/app/shared/material/numpad/numpad.directive.mjs +4 -4
  154. package/esm2020/src/app/shared/material/numpad/numpad.dom-service.mjs +4 -4
  155. package/esm2020/src/app/shared/material/numpad/numpad.module.mjs +5 -5
  156. package/esm2020/src/app/shared/material/numpad/testing/numpad.test.mjs +4 -4
  157. package/esm2020/src/app/shared/material/paginator/material.paginator-i18n.mjs +4 -4
  158. package/esm2020/src/app/shared/material/stepper/material.stepper-i18n.mjs +4 -4
  159. package/esm2020/src/app/shared/material/swipe/material.swipe.mjs +4 -4
  160. package/esm2020/src/app/shared/material/swipe/swipe.module.mjs +5 -5
  161. package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +4 -4
  162. package/esm2020/src/app/shared/pipes/arrays.pipe.mjs +25 -25
  163. package/esm2020/src/app/shared/pipes/colors.pipe.mjs +4 -4
  164. package/esm2020/src/app/shared/pipes/date-diff-duration.pipe.mjs +5 -5
  165. package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +7 -7
  166. package/esm2020/src/app/shared/pipes/date-from-now.pipe.mjs +5 -5
  167. package/esm2020/src/app/shared/pipes/duration.pipe.mjs +5 -5
  168. package/esm2020/src/app/shared/pipes/file-size.pipe.mjs +4 -4
  169. package/esm2020/src/app/shared/pipes/form.pipes.mjs +19 -19
  170. package/esm2020/src/app/shared/pipes/highlight.pipe.mjs +5 -5
  171. package/esm2020/src/app/shared/pipes/latlong-format.pipe.mjs +10 -10
  172. package/esm2020/src/app/shared/pipes/maps.pipe.mjs +13 -13
  173. package/esm2020/src/app/shared/pipes/math.pipes.mjs +13 -13
  174. package/esm2020/src/app/shared/pipes/ng-init.pipe.mjs +4 -4
  175. package/esm2020/src/app/shared/pipes/number-format.pipe.mjs +5 -5
  176. package/esm2020/src/app/shared/pipes/pipes.module.mjs +5 -5
  177. package/esm2020/src/app/shared/pipes/property.pipes.mjs +8 -8
  178. package/esm2020/src/app/shared/pipes/string.pipes.mjs +22 -22
  179. package/esm2020/src/app/shared/pipes/translate-context.pipe.mjs +9 -9
  180. package/esm2020/src/app/shared/services/entity-service.class.mjs +1 -1
  181. package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +4 -4
  182. package/esm2020/src/app/shared/services/progress-bar.service.mjs +4 -4
  183. package/esm2020/src/app/shared/services/storage/storage.service.mjs +4 -4
  184. package/esm2020/src/app/shared/services/translate-context.service.mjs +4 -4
  185. package/esm2020/src/app/shared/shared-routing.module.mjs +8 -8
  186. package/esm2020/src/app/shared/shared.module.mjs +5 -5
  187. package/esm2020/src/app/shared/shared.testing.module.mjs +5 -5
  188. package/esm2020/src/app/shared/testing/observable.test.mjs +4 -4
  189. package/esm2020/src/app/shared/testing/tests.page.mjs +4 -4
  190. package/esm2020/src/app/shared/toast/toast.testing.mjs +4 -4
  191. package/esm2020/src/app/shared/toast/toast.testing.module.mjs +5 -5
  192. package/esm2020/src/app/shared/toolbar/modal-toolbar.mjs +4 -4
  193. package/esm2020/src/app/shared/toolbar/toolbar.mjs +5 -5
  194. package/esm2020/src/app/shared/toolbar/toolbar.module.mjs +5 -5
  195. package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +4 -4
  196. package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +5 -5
  197. package/esm2020/src/app/shared/upload-file/upload-file-popover.component.mjs +4 -4
  198. package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +4 -4
  199. package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +4 -4
  200. package/esm2020/src/app/social/job/job.module.mjs +5 -5
  201. package/esm2020/src/app/social/job/progression/job-progression.icon.mjs +4 -4
  202. package/esm2020/src/app/social/job/progression/job-progression.list.mjs +4 -4
  203. package/esm2020/src/app/social/job/progression/job-progression.service.mjs +4 -4
  204. package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +4 -4
  205. package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +4 -4
  206. package/esm2020/src/app/social/job/testing/job.testing.module.mjs +5 -5
  207. package/esm2020/src/app/social/message/message.form.mjs +4 -4
  208. package/esm2020/src/app/social/message/message.modal.mjs +4 -4
  209. package/esm2020/src/app/social/message/message.module.mjs +5 -5
  210. package/esm2020/src/app/social/message/message.service.mjs +4 -4
  211. package/esm2020/src/app/social/social.module.mjs +5 -5
  212. package/esm2020/src/app/social/social.testing.module.mjs +5 -5
  213. package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +4 -4
  214. package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +4 -4
  215. package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +4 -4
  216. package/esm2020/src/app/social/user-event/testing/user-event.testing.module.mjs +5 -5
  217. package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +4 -4
  218. package/esm2020/src/app/social/user-event/user-event.module.mjs +5 -5
  219. package/esm2020/src/app/social/user-event/user-event.service.mjs +4 -4
  220. package/fesm2015/sumaris-net.ngx-components.mjs +1190 -1019
  221. package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
  222. package/fesm2020/sumaris-net.ngx-components.mjs +1190 -1020
  223. package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
  224. package/package.json +4 -4
  225. package/public_api.d.ts +2 -0
  226. package/src/app/core/form/form.utils.d.ts +1 -1
  227. package/src/app/core/graphql/graphql.service.d.ts +1 -1
  228. package/src/app/core/graphql/graphql.utils.d.ts +4 -1
  229. package/src/app/core/services/account.service.d.ts +2 -1
  230. package/src/app/core/services/base-graphql-service.class.d.ts +1 -1
  231. package/src/app/core/services/network.service.d.ts +2 -5
  232. package/src/app/core/services/network.types.d.ts +5 -0
  233. package/src/app/shared/constants.d.ts +1 -1
  234. package/src/app/shared/material/datetime/material.date.d.ts +2 -2
  235. package/src/app/shared/material/datetime/material.dateshort.d.ts +40 -32
  236. package/src/app/shared/material/datetime/testing/mat-dateshort.test.d.ts +29 -0
  237. package/src/app/shared/material/material.testing.module.d.ts +16 -15
  238. package/src/app/shared/services/entity-service.class.d.ts +1 -1
  239. package/src/theme/_ngx-components.scss +17 -9
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.2.7",
4
+ "version": "2.2.8-rc2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -14,9 +14,9 @@
14
14
  "tslib": "~2.3.1"
15
15
  },
16
16
  "peerDependencies": {
17
- "@angular-devkit/build-angular": "~14.2.5",
18
- "@angular/compiler-cli": "~14.2.5",
19
- "@apollo/client": "~3.6.9",
17
+ "@angular-devkit/build-angular": "~14.2.10",
18
+ "@angular/compiler-cli": "~14.2.10",
19
+ "@apollo/client": "~3.7.2",
20
20
  "@ionic/storage": "~3.0.6",
21
21
  "d3": "~7.6.1",
22
22
  "localforage": "~1.10.0",
package/public_api.d.ts CHANGED
@@ -135,6 +135,7 @@ export * from './src/app/core/services/pipes/person-to-string.pipe';
135
135
  export * from './src/app/core/services/pipes/usage-mode.pipes';
136
136
  export * from './src/app/core/services/platform.service';
137
137
  export * from './src/app/core/services/network.service';
138
+ export * from './src/app/core/services/network.types';
138
139
  export * from './src/app/core/services/config.service';
139
140
  export { CORE_CONFIG_OPTIONS } from './src/app/core/services/config/core.config';
140
141
  export * from './src/app/core/services/local-settings.service';
@@ -229,6 +230,7 @@ export * from './src/app/shared/material/latlong/testing/latlong.test';
229
230
  export * from './src/app/shared/material/swipe/testing/swipe.test';
230
231
  export * from './src/app/shared/material/datetime/testing/mat-date-time.test';
231
232
  export * from './src/app/shared/material/datetime/testing/mat-date.test';
233
+ export * from './src/app/shared/material/datetime/testing/mat-dateshort.test';
232
234
  export * from './src/app/shared/material/chips/testing/chips.test';
233
235
  export * from './src/app/shared/material/numpad/testing/numpad.test';
234
236
  export * from './src/app/shared/testing/observable.test';
@@ -259,7 +259,7 @@ export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl
259
259
  onlySelf?: boolean;
260
260
  emitEvent?: boolean;
261
261
  }): void;
262
- patchValue(values: any[], options?: {
262
+ patchValue(values: any[] | null | undefined, options?: {
263
263
  onlySelf?: boolean;
264
264
  emitEvent?: boolean;
265
265
  }): void;
@@ -4,10 +4,10 @@ import { ApolloCache, ApolloClient, FetchPolicy, MutationUpdaterFn, OperationVar
4
4
  import { ServiceError } from '../services/errors';
5
5
  import { InjectionToken } from '@angular/core';
6
6
  import { NetworkService } from '../services/network.service';
7
+ import { EmptyObject } from './graphql.utils';
7
8
  import { Platform } from '@ionic/angular';
8
9
  import { IEntity } from '../services/model/entity.model';
9
10
  import { Resolvers } from '@apollo/client/core/types';
10
- import { EmptyObject } from 'apollo-angular/types';
11
11
  import { HttpLink } from 'apollo-angular/http';
12
12
  import { ErrorPolicy, MutationBaseOptions } from '@apollo/client/core/watchQueryOptions';
13
13
  import { Cache } from '@apollo/client/cache/core/types/Cache';
@@ -1,9 +1,12 @@
1
1
  import { ApolloClient, ApolloLink, Operation } from '@apollo/client/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { PersistentStorage } from 'apollo3-cache-persist';
4
- import { ConnectionType } from '../services/network.service';
4
+ import { ConnectionType } from '../services/network.types';
5
5
  import { StorageService } from '../../shared/services/storage/storage.service';
6
6
  export declare const NativeWebSocket: any;
7
+ export declare type EmptyObject = {
8
+ [key: string]: any;
9
+ };
7
10
  /**
8
11
  * AppWebSocket class.
9
12
  * With a hack on default Websocket, to avoid the use of protocol
@@ -10,7 +10,8 @@ import { BaseGraphqlService } from './base-graphql-service.class';
10
10
  import { GraphqlService } from '../graphql/graphql.service';
11
11
  import { LocalSettingsService } from './local-settings.service';
12
12
  import { FormFieldDefinition } from '../../shared/form/field.model';
13
- import { AuthTokenType, NetworkService } from './network.service';
13
+ import { NetworkService } from './network.service';
14
+ import { AuthTokenType } from './network.types';
14
15
  import { FileService } from '../../shared/file/file.service';
15
16
  import { Referential } from './model/referential.model';
16
17
  import { ShowToastOptions } from '../../shared/toast/toasts';
@@ -1,6 +1,5 @@
1
1
  import { GraphqlService, MutateQueryOptions, WatchQueryOptions } from '../graphql/graphql.service';
2
2
  import { Page } from '../../shared/services/entity-service.class';
3
- import { EmptyObject } from 'apollo-angular/types';
4
3
  import { Observable } from 'rxjs';
5
4
  import { FetchResult } from '@apollo/client/link/core';
6
5
  import { ApolloCache, InternalRefetchQueriesInclude } from '@apollo/client/core';
@@ -9,6 +8,7 @@ import { PureQueryOptions } from '@apollo/client/core/types';
9
8
  import { DocumentNode } from 'graphql';
10
9
  import { StartableService } from '../../shared/services/startable-service.class';
11
10
  import { TypedDocumentNode } from '@graphql-typed-document-node/core';
11
+ import { EmptyObject } from '../graphql/graphql.utils';
12
12
  import * as i0 from "@angular/core";
13
13
  export interface QueryVariables<F = any> extends Partial<Page> {
14
14
  filter?: F;
@@ -8,17 +8,14 @@ import { ISelectPeerModalOptions } from '../peer/select-peer.modal';
8
8
  import { BehaviorSubject, Subscription } from 'rxjs';
9
9
  import { LocalSettingsService } from './local-settings.service';
10
10
  import { HttpClient, HttpHeaders } from '@angular/common/http';
11
- import { Connection, Network } from '@awesome-cordova-plugins/network/ngx';
11
+ import { Network } from '@awesome-cordova-plugins/network/ngx';
12
12
  import { CacheService } from 'ionic-cache';
13
13
  import { ShowToastOptions } from '../../shared/toast/toasts';
14
14
  import { OverlayEventDetail } from '@ionic/core';
15
15
  import { AppManifest, NodeInfo } from './network.utils';
16
16
  import { StartableObservableService } from '../../shared/services/startable-observable-service.class';
17
+ import { ConnectionType, NetworkEventType } from './network.types';
17
18
  import * as i0 from "@angular/core";
18
- export declare type ConnectionType = 'none' | 'wifi' | 'ethernet' | 'cell' | 'unknown';
19
- export declare type AuthTokenType = 'token' | 'basic' | 'basic-and-token';
20
- export declare function getConnectionType(type: Connection): ConnectionType;
21
- export declare type NetworkEventType = 'start' | 'peerChanged' | 'statusChanged' | 'resetCache' | 'beforeTryOnlineFinish';
22
19
  export declare const PEER_URL_REGEXP: RegExp;
23
20
  export declare class NetworkService extends StartableObservableService<Peer, Peer> {
24
21
  private _document;
@@ -0,0 +1,5 @@
1
+ import { Connection } from '@awesome-cordova-plugins/network/ngx';
2
+ export declare type ConnectionType = 'none' | 'wifi' | 'ethernet' | 'cellular' | 'unknown';
3
+ export declare type AuthTokenType = 'token' | 'basic' | 'basic-and-token';
4
+ export declare function getConnectionType(type: Connection | string): ConnectionType;
5
+ export declare type NetworkEventType = 'start' | 'peerChanged' | 'statusChanged' | 'resetCache' | 'beforeTryOnlineFinish';
@@ -3,5 +3,5 @@ export declare const DATE_PATTERN = "YYYY-MM-DD";
3
3
  export declare const DEFAULT_PLACEHOLDER_CHAR = "_";
4
4
  export declare const PUBKEY_REGEXP: RegExp;
5
5
  export declare const SPACE_PLACEHOLDER_CHAR = "\u2000";
6
- export declare const ZERO_PLACEHOLDER_CHAR = "\uFEFF";
6
+ export declare const EMPTY_PLACEHOLDER_CHAR = "\uFEFF";
7
7
  export declare const KEYBOARD_HIDE_DELAY_MS = 250;
@@ -15,7 +15,7 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
15
15
  private formGroupDir;
16
16
  private _onChangeCallback;
17
17
  private _onTouchedCallback;
18
- private _subscription;
18
+ private readonly _subscription;
19
19
  private _writing;
20
20
  private _disabling;
21
21
  private _tabindex;
@@ -70,5 +70,5 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
70
70
  private markAsDirty;
71
71
  private markForCheck;
72
72
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDate, [null, null, null, null, { optional: true; }]>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDate, "mat-date-field", never, { "mobile": "mobile"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "floatLabel": "floatLabel"; "appearance": "appearance"; "required": "required"; "compact": "compact"; "placeholderChar": "placeholderChar"; "autofocus": "autofocus"; "startDate": "startDate"; "clearable": "clearable"; "timezone": "timezone"; "datePickerFilter": "datePickerFilter"; "readonly": "readonly"; "tabindex": "tabindex"; }, {}, never, ["mat-error", "mat-hint", "[matPrefix]"], false>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDate, "mat-date-field", never, { "mobile": "mobile"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "floatLabel": "floatLabel"; "appearance": "appearance"; "required": "required"; "compact": "compact"; "placeholderChar": "placeholderChar"; "autofocus": "autofocus"; "startDate": "startDate"; "clearable": "clearable"; "timezone": "timezone"; "datePickerFilter": "datePickerFilter"; "readonly": "readonly"; "tabindex": "tabindex"; }, {}, never, ["mat-error", "mat-hint", "[matPrefix]", "[matSuffix]"], false>;
74
74
  }
@@ -1,11 +1,11 @@
1
- import { ChangeDetectorRef, ElementRef, OnInit, QueryList } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { Moment } from 'moment/moment';
5
5
  import { InputElement } from '../../inputs';
6
6
  import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
7
- import { MatDatepicker } from '@angular/material/datepicker';
8
- import { DateAdapter } from '@angular/material/core';
7
+ import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
8
+ import { MomentDateAdapter } from '@angular/material-moment-adapter';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class MatDateShort implements OnInit, ControlValueAccessor, InputElement {
11
11
  private dateAdapter;
@@ -15,53 +15,61 @@ export declare class MatDateShort implements OnInit, ControlValueAccessor, Input
15
15
  private formGroupDir;
16
16
  private _onChangeCallback;
17
17
  private _onTouchedCallback;
18
- protected writing: boolean;
19
- protected disabling: boolean;
20
- protected _tabindex: number;
21
- protected keyboardHideDelay: number;
22
- dayControl: UntypedFormControl;
23
- displayPattern: string;
24
- dayPattern: string;
25
- _value: Moment;
18
+ private readonly _subscription;
19
+ private _writing;
20
+ private _disabling;
21
+ private _tabindex;
22
+ private _readonly;
23
+ textControl: UntypedFormControl;
24
+ datePattern: string;
26
25
  locale: string;
27
- dayMask: RegExp[];
26
+ readonly mask: RegExp[];
28
27
  mobile: boolean;
29
- disabled: boolean;
30
28
  formControl: UntypedFormControl;
31
29
  formControlName: string;
32
30
  placeholder: string;
33
31
  floatLabel: FloatLabelType;
34
32
  appearance: MatFormFieldAppearance;
35
- readonly: boolean;
36
33
  required: boolean;
37
34
  compact: boolean;
38
35
  placeholderChar: string;
36
+ autofocus: boolean;
37
+ startDate: Moment | null;
38
+ clearable: boolean;
39
+ datePickerFilter: DateFilterFn<Moment>;
40
+ set readonly(value: boolean);
41
+ get readonly(): boolean;
39
42
  set tabindex(value: number);
40
43
  get tabindex(): number;
41
- startDate: Date;
42
- clearable: boolean;
43
- datePicker1: MatDatepicker<Moment>;
44
- datePicker2: MatDatepicker<Moment>;
45
- matInputs: QueryList<ElementRef>;
46
44
  get value(): any;
47
- constructor(dateAdapter: DateAdapter<Moment>, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
45
+ get disabled(): boolean;
46
+ datePicker: MatDatepicker<Moment>;
47
+ _matInput: ElementRef;
48
+ constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
48
49
  ngOnInit(): void;
49
- writeValue(obj: any): void;
50
+ ngAfterViewInit(): void;
51
+ ngOnDestroy(): void;
52
+ writeValue(value: any): void;
50
53
  registerOnChange(fn: any): void;
51
54
  registerOnTouched(fn: any): void;
52
55
  setDisabledState(isDisabled: boolean): void;
53
- onDatePickerChange(event: any): void;
56
+ openDatePicker(): void;
57
+ focus(): void;
58
+ clear(): void;
59
+ protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
60
+ protected _checkIfTouched(opts?: {
61
+ emitEvent?: boolean;
62
+ }): void;
63
+ protected _openDatePickerIfMobile(event: Event): Promise<void>;
64
+ protected _closeDatePicker(eventData: any): void;
65
+ protected _preventEvent(event: Event): void;
54
66
  private updatePattern;
55
67
  private onFormChange;
56
- checkIfTouched(): void;
57
- openDatePickerIfMobile(event: Event, datePicker?: MatDatepicker<any>): Promise<void>;
58
- openDatePicker(event?: Event, datePicker?: MatDatepicker<any>): void;
59
- closeDatePicker(eventData: any, matDatepicker?: any): void;
60
- preventEvent(event: Event): void;
61
- focus(): void;
62
- protected waitKeyboardHide(waitKeyboardDelay: boolean): Promise<void>;
63
- protected updateTabIndex(): void;
64
- protected markForCheck(): void;
68
+ private waitKeyboardHide;
69
+ private updateTabIndex;
70
+ private markAsTouched;
71
+ private markAsDirty;
72
+ private markForCheck;
65
73
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDateShort, [null, null, null, null, { optional: true; }]>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDateShort, "mat-date-short-field", never, { "mobile": "mobile"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "floatLabel": "floatLabel"; "appearance": "appearance"; "readonly": "readonly"; "required": "required"; "compact": "compact"; "placeholderChar": "placeholderChar"; "tabindex": "tabindex"; "startDate": "startDate"; "clearable": "clearable"; }, {}, never, ["[matPrefix]", "mat-error", "[matPrefix]", "[matSuffix]"], false>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDateShort, "mat-date-short-field", never, { "mobile": "mobile"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "floatLabel": "floatLabel"; "appearance": "appearance"; "required": "required"; "compact": "compact"; "placeholderChar": "placeholderChar"; "autofocus": "autofocus"; "startDate": "startDate"; "clearable": "clearable"; "datePickerFilter": "datePickerFilter"; "readonly": "readonly"; "tabindex": "tabindex"; }, {}, never, ["mat-error", "mat-hint", "[matPrefix]", "[matSuffix]"], false>;
67
75
  }
@@ -0,0 +1,29 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
+ import 'moment-timezone';
4
+ import { Subscription } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DateShortTestPage implements OnInit {
7
+ protected formBuilder: UntypedFormBuilder;
8
+ protected cd: ChangeDetectorRef;
9
+ showLogPanel: boolean;
10
+ logContent: string;
11
+ memoryHide: boolean;
12
+ memoryMobile: boolean;
13
+ memoryTimer: Subscription;
14
+ form: UntypedFormGroup;
15
+ constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef);
16
+ ngOnInit(): void;
17
+ loadData(): Promise<void>;
18
+ doSubmit(event: any): void;
19
+ log(message: string): void;
20
+ clearLogPanel(): void;
21
+ startMemoryTimer(): void;
22
+ stopMemoryTimer(): void;
23
+ stringify: {
24
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
25
+ (value: any, replacer?: (string | number)[], space?: string | number): string;
26
+ };
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateShortTestPage, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateShortTestPage, "app-data-short-test", never, {}, {}, never, never, false>;
29
+ }
@@ -2,23 +2,24 @@ import { TestingPage } from '../testing/tests.page';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "./datetime/testing/mat-date-time.test";
4
4
  import * as i2 from "./datetime/testing/mat-date.test";
5
- import * as i3 from "./autocomplete/testing/autocomplete.test";
6
- import * as i4 from "./latlong/testing/latlong.test";
7
- import * as i5 from "./numpad/testing/numpad.test";
8
- import * as i6 from "./swipe/testing/swipe.test";
9
- import * as i7 from "./chips/testing/chips.test";
10
- import * as i8 from "./badge/badge.test";
11
- import * as i9 from "../testing/observable.test";
12
- import * as i10 from "@angular/common";
13
- import * as i11 from "@ionic/angular";
14
- import * as i12 from "@angular/forms";
15
- import * as i13 from "./material.module";
16
- import * as i14 from "@ngx-translate/core";
17
- import * as i15 from "@angular/router";
18
- import * as i16 from "../pipes/pipes.module";
5
+ import * as i3 from "./datetime/testing/mat-dateshort.test";
6
+ import * as i4 from "./autocomplete/testing/autocomplete.test";
7
+ import * as i5 from "./latlong/testing/latlong.test";
8
+ import * as i6 from "./numpad/testing/numpad.test";
9
+ import * as i7 from "./swipe/testing/swipe.test";
10
+ import * as i8 from "./chips/testing/chips.test";
11
+ import * as i9 from "./badge/badge.test";
12
+ import * as i10 from "../testing/observable.test";
13
+ import * as i11 from "@angular/common";
14
+ import * as i12 from "@ionic/angular";
15
+ import * as i13 from "@angular/forms";
16
+ import * as i14 from "./material.module";
17
+ import * as i15 from "@ngx-translate/core";
18
+ import * as i16 from "@angular/router";
19
+ import * as i17 from "../pipes/pipes.module";
19
20
  export declare const SHARED_MATERIAL_TESTING_PAGES: TestingPage[];
20
21
  export declare class MaterialTestingModule {
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTestingModule, never>;
22
- static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialTestingModule, [typeof i1.DateTimeTestPage, typeof i2.DateTestPage, typeof i3.AutocompleteTestPage, typeof i4.LatLongTestPage, typeof i5.NumpadTestPage, typeof i6.SwipeTestPage, typeof i7.ChipsTestPage, typeof i8.MatBadgeTestPage, typeof i9.ObservableTestPage], [typeof i10.CommonModule, typeof i11.IonicModule, typeof i12.ReactiveFormsModule, typeof i13.SharedMaterialModule, typeof i14.TranslateModule, typeof i15.RouterModule, typeof i16.SharedPipesModule], [typeof i13.SharedMaterialModule, typeof i15.RouterModule, typeof i1.DateTimeTestPage, typeof i2.DateTestPage, typeof i3.AutocompleteTestPage, typeof i4.LatLongTestPage, typeof i5.NumpadTestPage, typeof i6.SwipeTestPage, typeof i7.ChipsTestPage, typeof i9.ObservableTestPage]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialTestingModule, [typeof i1.DateTimeTestPage, typeof i2.DateTestPage, typeof i3.DateShortTestPage, typeof i4.AutocompleteTestPage, typeof i5.LatLongTestPage, typeof i6.NumpadTestPage, typeof i7.SwipeTestPage, typeof i8.ChipsTestPage, typeof i9.MatBadgeTestPage, typeof i10.ObservableTestPage], [typeof i11.CommonModule, typeof i12.IonicModule, typeof i13.ReactiveFormsModule, typeof i14.SharedMaterialModule, typeof i15.TranslateModule, typeof i16.RouterModule, typeof i17.SharedPipesModule], [typeof i14.SharedMaterialModule, typeof i16.RouterModule, typeof i1.DateTimeTestPage, typeof i2.DateTestPage, typeof i3.DateShortTestPage, typeof i4.AutocompleteTestPage, typeof i5.LatLongTestPage, typeof i6.NumpadTestPage, typeof i7.SwipeTestPage, typeof i8.ChipsTestPage, typeof i10.ObservableTestPage]>;
23
24
  static ɵinj: i0.ɵɵInjectorDeclaration<MaterialTestingModule>;
24
25
  }
@@ -1,7 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { FetchPolicy, WatchQueryFetchPolicy } from '@apollo/client/core';
3
3
  import { SortDirection } from '@angular/material/sort';
4
- import { EmptyObject } from 'apollo-angular/types';
4
+ import { EmptyObject } from '../../core/graphql/graphql.utils';
5
5
  export declare interface Page {
6
6
  offset: number;
7
7
  size: number;
@@ -132,6 +132,7 @@ ion-menu.menu-side-left {
132
132
  .form-container,
133
133
  form.form-container {
134
134
  color: $app-form-color;
135
+ @include font-size(16px);
135
136
 
136
137
  .mat-form-field-disabled,
137
138
  .mat-input-element:disabled {
@@ -151,29 +152,32 @@ form.form-container {
151
152
  }
152
153
 
153
154
  mat-form-field {
154
- @include font-size-important(16px);
155
+ //@include font-size-important(16px);
155
156
 
156
157
  ion-icon[matPrefix],
157
158
  mat-icon[matPrefix],
158
159
  .mat-form-field-prefix ion-icon,
159
160
  .mat-form-field-prefix .mat-icon {
160
- font-size: 150%;
161
+ $font-size: calculateRem(24px);
162
+ $margin-vertical: calculateRem(4px);
163
+ font-size: $font-size !important;
161
164
  line-height: 1.125;
162
- margin-left: 5px;
163
- margin-right: 5px;
164
- height: 1em;
165
+ height: $font-size;
166
+ width: $font-size;
167
+ margin-left: $margin-vertical;
168
+ margin-right: $margin-vertical;
165
169
  position: relative;
166
- bottom: -3px;
170
+ bottom: calc(calc(1rem - $font-size) / 2);
167
171
  }
168
172
 
169
173
  ion-icon[matSuffix],
170
174
  mat-icon[matSuffix],
171
175
  .mat-form-field-suffix ion-icon,
172
176
  .mat-form-field-suffix .mat-icon {
173
- //width: 0.8em !important;
174
177
 
175
178
  &.large {
176
- font-size: 150%;
179
+ $font-size: calculateRem(24px);
180
+ font-size: $font-size;
177
181
  line-height: 1.125;
178
182
  }
179
183
  }
@@ -242,6 +246,8 @@ mat-form-field {
242
246
 
243
247
  // --- mat-date-time
244
248
  mat-date-time-field {
249
+ //@include font-size-important(16px);
250
+
245
251
  // Need for errors injected using the <ng-content> tag
246
252
  mat-error {
247
253
  text-align: end;
@@ -716,6 +722,8 @@ ion-list {
716
722
  }
717
723
 
718
724
  .mat-column-actions {
725
+ text-align: end;
726
+ min-width: var(--mat-column-actions-min-width);
719
727
  width: var(--mat-column-actions-width, 40px);
720
728
  max-width: var(--mat-column-actions-max-width, 40px);
721
729
  padding-inline-start: 0 !important; // No start padding
@@ -1308,7 +1316,7 @@ ion-modal.modal-fullscreen {
1308
1316
  .mat-cell {
1309
1317
  /* smaller size, for the comment icon */
1310
1318
  mat-icon.comment {
1311
- font-size: 16pt;
1319
+ @include font-size(16pt);
1312
1320
  height: 100%;
1313
1321
  vertical-align: center;
1314
1322
  color: var(--ion-color-tertiary, grey);