@sumaris-net/ngx-components 2.7.3-rc6 → 2.7.3-rc60

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 (266) hide show
  1. package/esm2022/src/app/admin/admin-routing.module.mjs +4 -4
  2. package/esm2022/src/app/admin/admin.module.mjs +4 -4
  3. package/esm2022/src/app/admin/services/person.service.mjs +3 -3
  4. package/esm2022/src/app/admin/services/validator/person.validator.mjs +3 -3
  5. package/esm2022/src/app/admin/users/users.mjs +4 -4
  6. package/esm2022/src/app/admin/users/users.module.mjs +4 -4
  7. package/esm2022/src/app/core/about/about.modal.mjs +3 -3
  8. package/esm2022/src/app/core/about/about.module.mjs +4 -4
  9. package/esm2022/src/app/core/account/account.module.mjs +4 -4
  10. package/esm2022/src/app/core/account/account.page.mjs +3 -3
  11. package/esm2022/src/app/core/account/new-token.modal.mjs +3 -3
  12. package/esm2022/src/app/core/account/token.table.mjs +3 -3
  13. package/esm2022/src/app/core/auth/auth.form.mjs +3 -3
  14. package/esm2022/src/app/core/auth/auth.modal.mjs +3 -3
  15. package/esm2022/src/app/core/auth/auth.module.mjs +4 -4
  16. package/esm2022/src/app/core/core.module.mjs +4 -4
  17. package/esm2022/src/app/core/core.testing.module.mjs +4 -4
  18. package/esm2022/src/app/core/form/buttons/form-buttons-bar.component.mjs +3 -3
  19. package/esm2022/src/app/core/form/buttons/form-buttons-bar.module.mjs +4 -4
  20. package/esm2022/src/app/core/form/entity/editor.class.mjs +6 -6
  21. package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +3 -3
  22. package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +3 -3
  23. package/esm2022/src/app/core/form/entity/entity-metadata.component.mjs +3 -3
  24. package/esm2022/src/app/core/form/entity/entity.module.mjs +4 -4
  25. package/esm2022/src/app/core/form/form.class.mjs +3 -3
  26. package/esm2022/src/app/core/form/form.module.mjs +4 -4
  27. package/esm2022/src/app/core/form/list/list.form.mjs +3 -3
  28. package/esm2022/src/app/core/form/list/list.module.mjs +4 -4
  29. package/esm2022/src/app/core/form/properties/properties.form.mjs +3 -3
  30. package/esm2022/src/app/core/form/properties/properties.module.mjs +4 -4
  31. package/esm2022/src/app/core/form/properties/properties.table.mjs +6 -6
  32. package/esm2022/src/app/core/form/properties/property.validator.mjs +3 -3
  33. package/esm2022/src/app/core/form/properties/testing/properties-form.test.mjs +3 -3
  34. package/esm2022/src/app/core/form/properties/testing/properties-form.testing.module.mjs +4 -4
  35. package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.mjs +3 -3
  36. package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +4 -4
  37. package/esm2022/src/app/core/form/text-popover/text-popover.component.mjs +3 -3
  38. package/esm2022/src/app/core/form/text-popover/text-popover.module.mjs +4 -4
  39. package/esm2022/src/app/core/graphql/graphql.module.mjs +4 -4
  40. package/esm2022/src/app/core/graphql/graphql.service.mjs +3 -3
  41. package/esm2022/src/app/core/home/home.mjs +5 -5
  42. package/esm2022/src/app/core/home/home.module.mjs +4 -4
  43. package/esm2022/src/app/core/icon/icon.component.mjs +3 -3
  44. package/esm2022/src/app/core/icon/icon.module.mjs +4 -4
  45. package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +3 -3
  46. package/esm2022/src/app/core/install/install-upgrade-card.module.mjs +4 -4
  47. package/esm2022/src/app/core/menu/menu.component.mjs +3 -3
  48. package/esm2022/src/app/core/menu/menu.module.mjs +4 -4
  49. package/esm2022/src/app/core/menu/menu.service.mjs +3 -3
  50. package/esm2022/src/app/core/menu/sub-menu-tab.directive.mjs +3 -3
  51. package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +3 -3
  52. package/esm2022/src/app/core/menu/testing/menu.testing.mjs +3 -3
  53. package/esm2022/src/app/core/menu/testing/menu.testing.module.mjs +4 -4
  54. package/esm2022/src/app/core/offline/update-offline-mode-card.component.mjs +3 -3
  55. package/esm2022/src/app/core/offline/update-offline-mode-card.module.mjs +4 -4
  56. package/esm2022/src/app/core/peer/select-peer.modal.mjs +3 -3
  57. package/esm2022/src/app/core/peer/select-peer.module.mjs +4 -4
  58. package/esm2022/src/app/core/register/register-confirm.page.mjs +3 -3
  59. package/esm2022/src/app/core/register/register.form.mjs +3 -3
  60. package/esm2022/src/app/core/register/register.modal.mjs +3 -3
  61. package/esm2022/src/app/core/register/register.module.mjs +4 -4
  62. package/esm2022/src/app/core/services/account.service.mjs +3 -3
  63. package/esm2022/src/app/core/services/auth-guard.service.mjs +3 -3
  64. package/esm2022/src/app/core/services/base-entity-service.class.mjs +3 -3
  65. package/esm2022/src/app/core/services/base-graphql-service.class.mjs +3 -3
  66. package/esm2022/src/app/core/services/config/core.config.mjs +7 -1
  67. package/esm2022/src/app/core/services/config.service.mjs +3 -3
  68. package/esm2022/src/app/core/services/crypto.service.mjs +3 -3
  69. package/esm2022/src/app/core/services/local-settings.service.mjs +3 -3
  70. package/esm2022/src/app/core/services/network.service.mjs +3 -3
  71. package/esm2022/src/app/core/services/pipes/account.pipes.mjs +8 -8
  72. package/esm2022/src/app/core/services/pipes/department-to-string.pipe.mjs +4 -4
  73. package/esm2022/src/app/core/services/pipes/person-to-string.pipe.mjs +4 -4
  74. package/esm2022/src/app/core/services/pipes/pipes.module.mjs +4 -4
  75. package/esm2022/src/app/core/services/pipes/referential-to-string.pipe.mjs +3 -3
  76. package/esm2022/src/app/core/services/pipes/usage-mode.pipes.mjs +8 -8
  77. package/esm2022/src/app/core/services/platform.service.mjs +3 -3
  78. package/esm2022/src/app/core/services/storage/entities-storage.service.mjs +3 -3
  79. package/esm2022/src/app/core/services/testing/referential.validator.mjs +3 -3
  80. package/esm2022/src/app/core/services/validator/account.validator.mjs +3 -3
  81. package/esm2022/src/app/core/services/validator/base.validator.class.mjs +3 -3
  82. package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +3 -3
  83. package/esm2022/src/app/core/services/validator/user-settings.validator.mjs +3 -3
  84. package/esm2022/src/app/core/services/validator/user-token.validator.mjs +3 -3
  85. package/esm2022/src/app/core/settings/settings.module.mjs +4 -4
  86. package/esm2022/src/app/core/settings/settings.page.mjs +3 -3
  87. package/esm2022/src/app/core/table/actions-column.component.mjs +3 -3
  88. package/esm2022/src/app/core/table/async-table.class.mjs +3 -3
  89. package/esm2022/src/app/core/table/entities-async-table-datasource.class.mjs +3 -3
  90. package/esm2022/src/app/core/table/entities-table-datasource.class.mjs +3 -3
  91. package/esm2022/src/app/core/table/memory-table.class.mjs +3 -3
  92. package/esm2022/src/app/core/table/table-select-columns.component.mjs +3 -3
  93. package/esm2022/src/app/core/table/table.class.mjs +3 -3
  94. package/esm2022/src/app/core/table/table.module.mjs +4 -4
  95. package/esm2022/src/app/core/table/testing/table-validator.service.mjs +7 -4
  96. package/esm2022/src/app/core/table/testing/table.testing.mjs +42 -23
  97. package/esm2022/src/app/core/table/testing/table.testing.module.mjs +4 -4
  98. package/esm2022/src/app/core/table/testing/table2-validator.service.mjs +3 -3
  99. package/esm2022/src/app/core/table/testing/table2.testing.mjs +3 -3
  100. package/esm2022/src/app/shared/audio/audio.mjs +3 -3
  101. package/esm2022/src/app/shared/audio/audio.testing.mjs +3 -3
  102. package/esm2022/src/app/shared/audio/audio.testing.module.mjs +4 -4
  103. package/esm2022/src/app/shared/capacitor/keyboard.mjs +3 -3
  104. package/esm2022/src/app/shared/debug/debug.component.mjs +3 -3
  105. package/esm2022/src/app/shared/debug/debug.module.mjs +4 -4
  106. package/esm2022/src/app/shared/directives/autofocus.directive.mjs +3 -3
  107. package/esm2022/src/app/shared/directives/autotitle.directive.mjs +3 -3
  108. package/esm2022/src/app/shared/directives/directives.module.mjs +4 -4
  109. package/esm2022/src/app/shared/directives/drag-and-drop.directive.mjs +3 -3
  110. package/esm2022/src/app/shared/directives/ng-var.directive.mjs +3 -3
  111. package/esm2022/src/app/shared/directives/resizable/resizable.component.mjs +3 -3
  112. package/esm2022/src/app/shared/directives/resizable/resizable.directive.mjs +3 -3
  113. package/esm2022/src/app/shared/directives/resizable/resizable.module.mjs +4 -4
  114. package/esm2022/src/app/shared/file/file.service.mjs +3 -3
  115. package/esm2022/src/app/shared/form/field.component.mjs +12 -9
  116. package/esm2022/src/app/shared/form/loading-spinner.mjs +3 -3
  117. package/esm2022/src/app/shared/gesture/gesture-config.mjs +3 -3
  118. package/esm2022/src/app/shared/guard/component-dirty.guard.mjs +3 -3
  119. package/esm2022/src/app/shared/help/help.modal.mjs +3 -3
  120. package/esm2022/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +3 -3
  121. package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +3 -3
  122. package/esm2022/src/app/shared/hotkeys/shared-hotkeys.module.mjs +4 -4
  123. package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +3 -3
  124. package/esm2022/src/app/shared/image/gallery/image-gallery.module.mjs +4 -4
  125. package/esm2022/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +3 -3
  126. package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +3 -3
  127. package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +4 -4
  128. package/esm2022/src/app/shared/image/image.module.mjs +4 -4
  129. package/esm2022/src/app/shared/image/image.service.mjs +3 -3
  130. package/esm2022/src/app/shared/logging/logging-service.class.mjs +3 -3
  131. package/esm2022/src/app/shared/logging/logging-service.module.mjs +4 -4
  132. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +11 -8
  133. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +4 -4
  134. package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +25 -21
  135. package/esm2022/src/app/shared/material/badge/badge.directive.mjs +3 -3
  136. package/esm2022/src/app/shared/material/badge/badge.module.mjs +4 -4
  137. package/esm2022/src/app/shared/material/badge/badge.test.mjs +3 -3
  138. package/esm2022/src/app/shared/material/boolean/boolean.module.mjs +4 -4
  139. package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +5 -5
  140. package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +8 -5
  141. package/esm2022/src/app/shared/material/chips/chips.module.mjs +4 -4
  142. package/esm2022/src/app/shared/material/chips/material.chips.mjs +6 -6
  143. package/esm2022/src/app/shared/material/chips/testing/chips.test.mjs +6 -5
  144. package/esm2022/src/app/shared/material/datetime/datetime.module.mjs +4 -4
  145. package/esm2022/src/app/shared/material/datetime/material.date.mjs +14 -6
  146. package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +5 -5
  147. package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +72 -43
  148. package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +18 -17
  149. package/esm2022/src/app/shared/material/datetime/testing/mat-date.test.mjs +14 -13
  150. package/esm2022/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +11 -12
  151. package/esm2022/src/app/shared/material/duration/duration.module.mjs +4 -4
  152. package/esm2022/src/app/shared/material/duration/material.duration.mjs +11 -12
  153. package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +10 -11
  154. package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +18 -13
  155. package/esm2022/src/app/shared/material/latlong/material.latlong.module.mjs +4 -4
  156. package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +9 -5
  157. package/esm2022/src/app/shared/material/material.config.mjs +2 -1
  158. package/esm2022/src/app/shared/material/material.module.mjs +4 -4
  159. package/esm2022/src/app/shared/material/material.testing.module.mjs +4 -4
  160. package/esm2022/src/app/shared/material/paginator/material.paginator-i18n.mjs +3 -3
  161. package/esm2022/src/app/shared/material/stepper/material.stepper-i18n.mjs +3 -3
  162. package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +12 -12
  163. package/esm2022/src/app/shared/material/swipe/swipe.module.mjs +4 -4
  164. package/esm2022/src/app/shared/material/swipe/testing/swipe.test.mjs +3 -3
  165. package/esm2022/src/app/shared/material/testing/common.test.mjs +18 -14
  166. package/esm2022/src/app/shared/material/text/testing/text-form.testing.mjs +7 -6
  167. package/esm2022/src/app/shared/material/text/text-form.component.mjs +10 -6
  168. package/esm2022/src/app/shared/material/text/text-form.module.mjs +4 -4
  169. package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +3 -3
  170. package/esm2022/src/app/shared/named-filter/named-filter.module.mjs +4 -4
  171. package/esm2022/src/app/shared/named-filter/named-filter.service.mjs +3 -3
  172. package/esm2022/src/app/shared/pipes/arrays.pipe.mjs +24 -24
  173. package/esm2022/src/app/shared/pipes/colors.pipe.mjs +3 -3
  174. package/esm2022/src/app/shared/pipes/date-diff-duration.pipe.mjs +4 -4
  175. package/esm2022/src/app/shared/pipes/date-format.pipe.mjs +6 -6
  176. package/esm2022/src/app/shared/pipes/date-from-now.pipe.mjs +4 -4
  177. package/esm2022/src/app/shared/pipes/duration.pipe.mjs +4 -4
  178. package/esm2022/src/app/shared/pipes/file-size.pipe.mjs +3 -3
  179. package/esm2022/src/app/shared/pipes/form.pipes.mjs +18 -18
  180. package/esm2022/src/app/shared/pipes/highlight.pipe.mjs +4 -4
  181. package/esm2022/src/app/shared/pipes/latlong-format.pipe.mjs +9 -9
  182. package/esm2022/src/app/shared/pipes/maps.pipe.mjs +12 -12
  183. package/esm2022/src/app/shared/pipes/maskito.pipe.mjs +40 -19
  184. package/esm2022/src/app/shared/pipes/math.pipes.mjs +12 -12
  185. package/esm2022/src/app/shared/pipes/ng-init.pipe.mjs +3 -3
  186. package/esm2022/src/app/shared/pipes/number-format.pipe.mjs +4 -4
  187. package/esm2022/src/app/shared/pipes/pipes.module.mjs +4 -4
  188. package/esm2022/src/app/shared/pipes/property.pipes.mjs +7 -7
  189. package/esm2022/src/app/shared/pipes/string.pipes.mjs +34 -32
  190. package/esm2022/src/app/shared/pipes/translate-context.pipe.mjs +8 -8
  191. package/esm2022/src/app/shared/pipes/types.pipes.mjs +12 -12
  192. package/esm2022/src/app/shared/rx-state.module.mjs +4 -4
  193. package/esm2022/src/app/shared/services/memory-entity-service.class.mjs +3 -3
  194. package/esm2022/src/app/shared/services/progress-bar.service.mjs +3 -3
  195. package/esm2022/src/app/shared/services/startable-observable-service.class.mjs +3 -3
  196. package/esm2022/src/app/shared/services/startable-service.class.mjs +3 -3
  197. package/esm2022/src/app/shared/services/translate-context.service.mjs +3 -3
  198. package/esm2022/src/app/shared/shared-routing.module.mjs +7 -7
  199. package/esm2022/src/app/shared/shared.module.mjs +4 -4
  200. package/esm2022/src/app/shared/shared.testing.module.mjs +4 -4
  201. package/esm2022/src/app/shared/storage/storage-explorer.component.mjs +3 -3
  202. package/esm2022/src/app/shared/storage/storage-explorer.module.mjs +4 -4
  203. package/esm2022/src/app/shared/storage/storage-explorer.testing-routing.module.mjs +4 -4
  204. package/esm2022/src/app/shared/storage/storage-explorer.testing.module.mjs +4 -4
  205. package/esm2022/src/app/shared/storage/storage.service.mjs +3 -3
  206. package/esm2022/src/app/shared/testing/observable.test.mjs +3 -3
  207. package/esm2022/src/app/shared/testing/tests.page.mjs +3 -3
  208. package/esm2022/src/app/shared/toast/toast.testing.mjs +3 -3
  209. package/esm2022/src/app/shared/toast/toast.testing.module.mjs +4 -4
  210. package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +3 -3
  211. package/esm2022/src/app/shared/toolbar/toolbar.mjs +3 -3
  212. package/esm2022/src/app/shared/toolbar/toolbar.module.mjs +4 -4
  213. package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.mjs +3 -3
  214. package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +4 -4
  215. package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +3 -3
  216. package/esm2022/src/app/shared/upload-file/upload-file.component.mjs +3 -3
  217. package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +3 -3
  218. package/esm2022/src/app/social/job/job.module.mjs +4 -4
  219. package/esm2022/src/app/social/job/progression/job-progression.component.mjs +3 -3
  220. package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +3 -3
  221. package/esm2022/src/app/social/job/progression/job-progression.list.mjs +3 -3
  222. package/esm2022/src/app/social/job/progression/job-progression.service.mjs +3 -3
  223. package/esm2022/src/app/social/job/testing/job-progression.testing.mjs +3 -3
  224. package/esm2022/src/app/social/job/testing/job-progression.testing.service.mjs +3 -3
  225. package/esm2022/src/app/social/job/testing/job.testing.module.mjs +4 -4
  226. package/esm2022/src/app/social/message/message.form.mjs +3 -3
  227. package/esm2022/src/app/social/message/message.modal.mjs +3 -3
  228. package/esm2022/src/app/social/message/message.module.mjs +4 -4
  229. package/esm2022/src/app/social/message/message.service.mjs +3 -3
  230. package/esm2022/src/app/social/social.module.mjs +4 -4
  231. package/esm2022/src/app/social/social.testing.module.mjs +4 -4
  232. package/esm2022/src/app/social/user-event/notification/user-event-notification.icon.mjs +3 -3
  233. package/esm2022/src/app/social/user-event/notification/user-event-notification.list.mjs +3 -3
  234. package/esm2022/src/app/social/user-event/testing/user-event.testing.mjs +3 -3
  235. package/esm2022/src/app/social/user-event/testing/user-event.testing.module.mjs +4 -4
  236. package/esm2022/src/app/social/user-event/testing/user-event.testing.service.mjs +3 -3
  237. package/esm2022/src/app/social/user-event/user-event.module.mjs +4 -4
  238. package/esm2022/src/app/social/user-event/user-event.service.mjs +3 -3
  239. package/esm2022/src/environments/environment.loader.mjs +3 -3
  240. package/fesm2022/sumaris-net.ngx-components.mjs +1270 -1151
  241. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  242. package/package.json +9 -9
  243. package/src/app/core/services/config/core.config.d.ts +1 -0
  244. package/src/app/shared/form/field.component.d.ts +5 -3
  245. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
  246. package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +3 -2
  247. package/src/app/shared/material/datetime/material.date.d.ts +3 -2
  248. package/src/app/shared/material/datetime/material.dateshort.d.ts +1 -1
  249. package/src/app/shared/material/datetime/material.datetime.d.ts +25 -22
  250. package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +2 -2
  251. package/src/app/shared/material/duration/material.duration.d.ts +1 -1
  252. package/src/app/shared/material/latlong/material.latlong.d.ts +5 -3
  253. package/src/app/shared/material/latlong/testing/latlong.test.d.ts +4 -0
  254. package/src/app/shared/material/material.config.d.ts +2 -1
  255. package/src/app/shared/material/text/text-form.component.d.ts +3 -1
  256. package/src/app/shared/pipes/string.pipes.d.ts +2 -1
  257. package/src/assets/manifest.json +1 -1
  258. package/src/theme/_material.globals.scss +0 -36
  259. package/src/theme/_material.scss +34 -8
  260. package/src/theme/_mixins.scss +6 -4
  261. package/src/theme/_ngx-components.forms.scss +201 -0
  262. package/src/theme/_ngx-components.globals.scss +7 -4
  263. package/src/theme/_ngx-components.scss +8 -200
  264. package/src/theme/_ngx-components.table.scss +105 -134
  265. package/src/theme/_ngx-components.tabs.scss +2 -325
  266. package/src/theme/_theme.scss +1 -0
@@ -0,0 +1,201 @@
1
+
2
+ // --------------------------------------------------
3
+ // Material Forms
4
+ // --------------------------------------------------
5
+ .form-container,
6
+ form.form-container {
7
+ color: #{$app-form-color};
8
+ @include font-size(16px);
9
+
10
+ --mdc-filled-text-field-container-color: var(--app-form-field-background-color);
11
+ --mdc-filled-text-field-disabled-container-color: var(--app-form-field-disabled-background-color);
12
+ --mat-form-field-state-layer-color: var(--app-form-field-focus-background-color);
13
+ --mat-form-field-container-height: 45px;
14
+ --mat-form-field-container-text-size: inherit;
15
+ --mat-form-field-filled-label-display: block;
16
+ --mat-form-field-container-vertical-padding: 8px;
17
+ --mat-form-field-filled-with-label-container-padding-top: 18px;
18
+ --mat-form-field-filled-with-label-container-padding-bottom: 0px;
19
+ --mdc-filled-text-field-label-text-tracking: normal;
20
+ --mat-select-trigger-text-size: var(--mat-form-field-container-text-size);
21
+
22
+ .mat-form-field-disabled,
23
+ .mat-mdc-input-element:disabled {
24
+ color: #{$app-form-color-disabled} !important;
25
+ }
26
+
27
+ .mat-form-field-disabled {
28
+ .mat-mdc-form-field-infix {
29
+ min-height: var(--mat-form-field-container-height);
30
+ }
31
+ }
32
+
33
+ mat-form-field,
34
+ mat-autocomplete-field,
35
+ app-form-field {
36
+ width: 100%;
37
+ }
38
+
39
+ .mat-mdc-form-field {
40
+ &:not(.mat-mdc-form-field-has-icon-prefix) {
41
+ .mdc-text-field {
42
+ padding-left: 4px;
43
+ }
44
+ }
45
+
46
+ ion-icon[matPrefix],
47
+ mat-icon[matPrefix],
48
+ .mat-mdc-form-field-icon-prefix {
49
+
50
+ --mdc-icon-button-icon-size: 24px;
51
+ --mdc-icon-button-icon-color: inherit;
52
+ --mdc-icon-button-state-layer-size: 48px;
53
+ --mdc-icon-button-margin-vertical: 12px;
54
+
55
+ ion-icon, .mat-icon {
56
+ font-size: var(--mdc-icon-button-icon-size) !important;
57
+ line-height: 1.125;
58
+ height: var(--mdc-icon-button-icon-size);
59
+ width: var(--mdc-icon-button-icon-size);
60
+ margin-left: var(--mdc-icon-button-margin-vertical);
61
+ margin-right: var(--mdc-icon-button-margin-vertical);
62
+ position: relative;
63
+ color: var(--mdc-icon-button-icon-color);
64
+ fill: var(--mdc-icon-button-icon-color);
65
+ }
66
+ }
67
+
68
+ ion-icon[matSuffix],
69
+ mat-icon[matSuffix],
70
+ .mat-mdc-form-field-icon-suffix {
71
+ white-space: nowrap;
72
+
73
+ .mat-mdc-icon-button {
74
+ --mdc-icon-button-state-layer-size: 24px;
75
+ --mdc-icon-button-icon-size: 16px;
76
+ --mdc-icon-button-padding: 4px;
77
+ padding: var(--mdc-icon-button-padding);
78
+
79
+ &.large {
80
+ --mdc-icon-button-state-layer-size: 48px;
81
+ --mdc-icon-button-icon-size: 24px;
82
+ --mdc-icon-button-padding: 12px;
83
+ }
84
+
85
+ ion-icon, .mat-icon {
86
+ height: var(--mdc-icon-button-icon-size);
87
+ width: var(--mdc-icon-button-icon-size);
88
+ font-size: var(--mdc-icon-button-icon-size);
89
+ }
90
+
91
+ .mat-mdc-button-touch-target {
92
+ width: var(--mdc-icon-button-state-layer-size);
93
+ }
94
+ }
95
+
96
+ ion-icon, .mat-icon {
97
+
98
+ &.large {
99
+ $font-size: calculateRem(14px);
100
+ font-size: $font-size;
101
+ line-height: 1.125;
102
+ }
103
+ }
104
+
105
+ }
106
+
107
+ // When field use choice button, reduce the font size, and optimize layout
108
+ button.mat-mdc-form-field-button,
109
+ ion-button.mat-mdc-form-field-button {
110
+ @include font-size-important(12px);
111
+ margin: 0;
112
+ white-space: normal;
113
+ }
114
+
115
+ // Used to customize mat-boolean-field
116
+ &.mat-boolean-field-checkbox {
117
+ --mdc-checkbox-state-layer-size: 20px;
118
+
119
+ .mat-mdc-form-field-infix {
120
+ padding-top: 16px;
121
+ }
122
+
123
+ .mdc-floating-label {
124
+ transform: unset !important;
125
+ padding-left: 30px;
126
+ top: 20px;
127
+ }
128
+ }
129
+
130
+ &.mat-boolean-field-radio {
131
+ --mdc-radio-state-layer-size: 20px;
132
+
133
+ .mat-mdc-radio-button {
134
+ padding-left: 8px;
135
+ }
136
+ }
137
+
138
+ &.mat-boolean-field-button {
139
+ .mat-mdc-form-field-infix {
140
+ padding-top: calc(var(--mat-form-field-filled-with-label-container-padding-top, 0px) + 4px);
141
+ }
142
+ }
143
+ }
144
+
145
+ .mat-mdc-form-field-subscript-wrapper {
146
+ mat-hint {
147
+ --color: rgb(115,115,115);
148
+ color: var(--color);
149
+ }
150
+ }
151
+
152
+ /* -- Computed field -- */
153
+
154
+ // Set color on computed field (if enable or disable)
155
+ .computed .mat-mdc-form-field,
156
+ .mat-mdc-form-field .computed,
157
+ .mat-mdc-form-field.computed,
158
+ .computed .mat-mdc-form-field .mat-mdc-input-element:disabled,
159
+ .mat-mdc-form-field .computed .mat-mdc-input-element:disabled,
160
+ .mat-mdc-form-field.computed .mat-mdc-input-element:disabled {
161
+ color: var(--ion-color-primary-tint) !important;
162
+ font-style: italic;
163
+ }
164
+
165
+ /* MatSwipeField */
166
+ mat-swipe-field {
167
+
168
+ .mdc-floating-label--float-above {
169
+ transform: translateY(-106%) translateX(40px) scale(0.75) !important;
170
+ }
171
+ }
172
+
173
+
174
+ }
175
+ // Manage first child grid inside a form
176
+ form.form-container > ion-grid,
177
+ ion-grid.form-container {
178
+ padding: 0;
179
+
180
+ & > ion-row {
181
+ // No between grid rows
182
+ padding: 0;
183
+
184
+ & > ion-col {
185
+
186
+ // No top/bottom padding between grid cell
187
+ padding-bottom: 0;
188
+ padding-top: 0;
189
+
190
+ & > ion-label {
191
+ color: var(--ion-color-primary100);
192
+ padding-inline-end: 5px;
193
+ }
194
+
195
+ & > ion-label[text-wrap] {
196
+ word-wrap: normal;
197
+ white-space: normal;
198
+ }
199
+ }
200
+ }
201
+ }
@@ -16,7 +16,10 @@ $app-form-buttons-bar-height: 56px !default;
16
16
  $app-select-option-border-color: rgba(0, 0, 0, 0.12) !default;
17
17
  $app-table-border-color: rgba(0, 0, 0, 0.08) !default;
18
18
 
19
- $app-form-field-background-color: rgba(0,0,0,0) !default;
20
- //$app-form-field-background-color: whitesmoke !default;
21
- $app-form-field-focus-background-color: rgba(0, 0, 0, 0) !default;
22
- //$app-form-field-focus-background-color: rgba(0, 0, 0, 0.87) !default;
19
+ // Form's field background
20
+ $app-form-field-background-color: rgb(245,245,245) !default;
21
+ $app-form-field-disabled-background-color: #fafafa !default;
22
+
23
+ // Form fields background : transparent
24
+ //$app-form-field-background-color: transparent !default;
25
+ //$app-form-field-disabled-background-color: transparent !default;
@@ -126,200 +126,14 @@ ion-menu.menu-side-left {
126
126
  }
127
127
  }
128
128
 
129
- // --------------------------------------------------
130
- // Material Forms
131
- // --------------------------------------------------
132
- .form-container,
133
- form.form-container {
134
- color: #{$app-form-color};
135
- --mdc-filled-text-field-container-color: #{$app-form-field-background-color};
136
- --mdc-filled-text-field-disabled-container-color: #{$app-form-field-background-color};
137
- --mat-form-field-state-layer-color: #{$app-form-field-focus-background-color};
138
- @include font-size(16px);
139
-
140
- .mat-form-field-disabled,
141
- .mat-mdc-input-element:disabled {
142
- color: #{$app-form-color-disabled} !important;
143
- }
144
-
145
- .mat-form-field-disabled {
146
- .mat-mdc-form-field-infix{
147
- min-height: 41px;
148
- }
149
- }
150
-
151
- mat-form-field,
152
- mat-autocomplete-field,
153
- app-form-field {
154
- width: 100%;
155
- }
156
-
157
- .mat-mdc-form-field {
158
-
159
- &:not(.mat-mdc-form-field-has-icon-prefix) {
160
- .mdc-text-field {
161
- padding-left: 4px;
162
- }
163
- }
164
-
165
- ion-icon[matPrefix],
166
- mat-icon[matPrefix],
167
- .mat-mdc-form-field-icon-prefix {
168
-
169
- ion-icon, .mat-icon {
170
- $font-size: calculateRem(24px);
171
- $margin-vertical: calculateRem(4px);
172
- font-size: $font-size !important;
173
- line-height: 1.125;
174
- height: $font-size;
175
- width: $font-size;
176
- margin-left: $margin-vertical;
177
- margin-right: $margin-vertical;
178
- position: relative;
179
- }
180
- }
181
-
182
- ion-icon[matSuffix],
183
- mat-icon[matSuffix],
184
- .mat-mdc-form-field-icon-suffix {
185
- white-space: nowrap;
186
-
187
- .mat-mdc-icon-button {
188
- --mdc-icon-button-icon-size: 24px;
189
- --mdc-icon-button-state-layer-size: 28px;
190
- padding: 2px;
191
-
192
- ion-icon, .mat-icon, .mat-icon.large {
193
- font-size: var(--mdc-icon-button-icon-size);
194
- line-height: var(--mdc-icon-button-icon-size);
195
- }
196
-
197
- .mat-mdc-button-touch-target {
198
- width: var(--mdc-icon-button-state-layer-size);
199
- }
200
- }
201
-
202
- ion-icon, .mat-icon {
203
-
204
- &.large {
205
- $font-size: calculateRem(24px);
206
- font-size: $font-size;
207
- line-height: 1.125;
208
- }
209
- }
210
-
211
- }
212
-
213
- // When field use choice button, reduce the font size, and optimize layout
214
- button.mat-mdc-form-field-button,
215
- ion-button.mat-mdc-form-field-button {
216
- @include font-size-important(12px);
217
- margin: 0;
218
- white-space: normal;
219
- }
220
-
221
- // Used to customize mat-boolean-field
222
- &.mat-boolean-field-checkbox {
223
- --mdc-checkbox-state-layer-size: 20px;
224
-
225
- .mat-mdc-form-field-infix {
226
- padding-top: 16px;
227
- }
228
-
229
- .mdc-floating-label {
230
- transform: unset !important;
231
- padding-left: 30px;
232
- top: 20px;
233
- }
234
- }
235
-
236
- &.mat-boolean-field-radio {
237
- --mdc-radio-state-layer-size: 20px;
238
-
239
- .mat-mdc-radio-button {
240
- padding-left: 8px;
241
- }
242
- }
243
-
244
- &.mat-boolean-field-button {
245
- .mat-mdc-form-field-infix {
246
- padding-top: 0;
247
- padding-bottom: 0;
248
- }
249
- }
250
- }
251
-
252
-
253
- /* -- Computed field -- */
254
-
255
- // Set color on computed field (if enable or disable)
256
- .computed mat-mdc-form-field,
257
- mat-mdc-form-field .computed,
258
- mat-mdc-form-field.computed,
259
- .computed mat-mdc-form-field .mat-mdc-input-element:disabled,
260
- mat-mdc-form-field .computed .mat-mdc-input-element:disabled,
261
- mat-mdc-form-field.computed .mat-mdc-input-element:disabled {
262
- color: var(--ion-color-primary-tint) !important;
263
- font-style: italic;
264
- }
265
-
266
- /* MatSwipeField */
267
- mat-swipe-field {
268
-
269
- .mdc-floating-label--float-above {
270
- transform: translateY(-106%) translateX(40px) scale(0.75) !important;
271
- }
272
-
273
- }
274
- }
275
- // Manage first child grid inside a form
276
- form.form-container > ion-grid,
277
- ion-grid.form-container {
278
- padding: 0;
279
-
280
- ion-row {
281
- // No between grid rows
282
- padding: 0;
283
-
284
- ion-col > ion-label {
285
- color: var(--ion-color-primary100);
286
- padding-inline-end: 5px;
287
- }
288
-
289
- ion-col > ion-label[text-wrap] {
290
- word-wrap: normal;
291
- white-space: normal;
292
- }
293
- }
294
- ion-row > ion-col {
295
-
296
- // No top/bottom padding between grid cell
297
- padding-bottom: 0;
298
- padding-top: 0;
299
- }
300
- }
301
129
 
302
130
  mat-form-field {
303
- //mat-error {
304
- // text-align: right;
305
- //}
306
131
 
307
132
  .mat-paginator-page-size-select {
308
133
  @include font-size-important(14px);
309
134
  }
310
135
  }
311
136
 
312
-
313
- // --- mat-date-time
314
- mat-date-time-field {
315
- //@include font-size-important(16px);
316
-
317
- // Need for errors injected using the <ng-content> tag
318
- //mat-error {
319
- // text-align: end;
320
- //}
321
- }
322
-
323
137
  // --- mat-date-short-field
324
138
  mat-calendar.mat-date-short-panel {
325
139
  // Hide some buttons (e.g. to change the period)
@@ -351,12 +165,6 @@ mat-option {
351
165
  flex-grow: 1;
352
166
  }
353
167
  .mat-option-text:not(:has(ion-row)),
354
-
355
- // TODO : Disabled : mat-option already have padding : this is redundant
356
- //.mdc-list-item__primary-text:not(:has(ion-row)) {
357
- // padding: 0 16px;
358
- //}
359
-
360
168
  .mat-option-text:has(ion-searchbar),
361
169
  .mdc-list-item__primary-text:has(ion-searchbar) {
362
170
  padding: 0 !important;
@@ -464,7 +272,7 @@ ion-list,
464
272
  }
465
273
  }
466
274
 
467
- .mat-mdc-option.mat-select-searchbar,
275
+ .mat-mdc-optgroup.mat-select-searchbar,
468
276
  .mat-mdc-option.mat-autocomplete-searchbar
469
277
  {
470
278
  padding: 0 !important;
@@ -472,8 +280,10 @@ ion-list,
472
280
  background-color: var(--ion-color-secondary100) !important;
473
281
  pointer-events: inherit !important;
474
282
 
475
- .mdc-list-item__primary-text {
476
- opacity: 1 !important;
283
+ .mat-mdc-optgroup-label {
284
+ background-color: var(--ion-color-secondary100) !important;
285
+ padding: 0;
286
+ display: block;
477
287
  }
478
288
 
479
289
  /* hide pseudo checkbox, in the searchbar*/
@@ -570,7 +380,6 @@ ion-list,
570
380
  }
571
381
 
572
382
  .mat-mdc-option[no-padding],
573
- .mat-option[no-padding],
574
383
  mat-option[no-padding] {
575
384
  padding: 0 !important;
576
385
  }
@@ -757,8 +566,8 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
757
566
  }
758
567
 
759
568
  // Small menu item (e.g. for actions on a table row)
760
- &.mat-menu-small-item-height .mat-mdc-menu-item,
761
- .mat-mdc-menu-item.mat-menu-item-small-height
569
+ &.mat-mdc-menu-item-small-height .mat-mdc-menu-item,
570
+ .mat-mdc-menu-item.mat-mdc-menu-item-small-height
762
571
  {
763
572
  padding: 0 8px;
764
573
  height: 35px;
@@ -775,7 +584,7 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
775
584
  }
776
585
 
777
586
  // Menu title (e.g. see extraction map)
778
- .mat-mdc-menu-item.mat-menu-title {
587
+ .mat-mdc-menu-item.mat-mdc-menu-title {
779
588
  padding: 0 8px;
780
589
  height: 27px;
781
590
  line-height: 27px;
@@ -853,7 +662,6 @@ ngx-material-timepicker-content {
853
662
 
854
663
  .mat-mdc-form-field-type-mat-chip-grid {
855
664
  .mat-mdc-form-field-infix {
856
- padding-bottom: 5px !important;
857
665
  --mdc-chip-container-height: 24px !important;
858
666
  }
859
667
  }