@sumaris-net/ngx-components 2.2.0 → 2.2.1-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 (237) hide show
  1. package/esm2020/src/app/admin/admin-routing.module.mjs +5 -5
  2. package/esm2020/src/app/admin/admin.module.mjs +5 -5
  3. package/esm2020/src/app/admin/services/person.service.mjs +4 -4
  4. package/esm2020/src/app/admin/services/validator/person.validator.mjs +4 -4
  5. package/esm2020/src/app/admin/users/users.mjs +4 -4
  6. package/esm2020/src/app/admin/users/users.module.mjs +5 -5
  7. package/esm2020/src/app/core/about/about.modal.mjs +4 -4
  8. package/esm2020/src/app/core/about/about.module.mjs +5 -5
  9. package/esm2020/src/app/core/account/account.module.mjs +5 -5
  10. package/esm2020/src/app/core/account/account.page.mjs +4 -4
  11. package/esm2020/src/app/core/auth/auth.form.mjs +4 -4
  12. package/esm2020/src/app/core/auth/auth.modal.mjs +4 -4
  13. package/esm2020/src/app/core/auth/auth.module.mjs +5 -5
  14. package/esm2020/src/app/core/core.module.mjs +5 -5
  15. package/esm2020/src/app/core/core.testing.module.mjs +5 -5
  16. package/esm2020/src/app/core/form/buttons/form-buttons-bar.component.mjs +4 -4
  17. package/esm2020/src/app/core/form/buttons/form-buttons-bar.module.mjs +5 -5
  18. package/esm2020/src/app/core/form/entity/editor.class.mjs +7 -7
  19. package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +4 -4
  20. package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +4 -4
  21. package/esm2020/src/app/core/form/entity/entity-metadata.component.mjs +4 -4
  22. package/esm2020/src/app/core/form/entity/entity.module.mjs +5 -5
  23. package/esm2020/src/app/core/form/form.class.mjs +4 -4
  24. package/esm2020/src/app/core/form/form.module.mjs +5 -5
  25. package/esm2020/src/app/core/form/list/list.form.mjs +4 -4
  26. package/esm2020/src/app/core/form/list/list.module.mjs +5 -5
  27. package/esm2020/src/app/core/form/properties/properties.form.mjs +4 -4
  28. package/esm2020/src/app/core/form/properties/properties.module.mjs +5 -5
  29. package/esm2020/src/app/core/form/properties/property.validator.mjs +4 -4
  30. package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +4 -4
  31. package/esm2020/src/app/core/form/properties/testing/properties-form.testing.module.mjs +5 -5
  32. package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.mjs +4 -4
  33. package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +5 -5
  34. package/esm2020/src/app/core/form/text-popover/text-form.component.mjs +4 -4
  35. package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +4 -4
  36. package/esm2020/src/app/core/form/text-popover/text-popover.module.mjs +5 -5
  37. package/esm2020/src/app/core/graphql/graphql.module.mjs +5 -5
  38. package/esm2020/src/app/core/graphql/graphql.service.mjs +4 -4
  39. package/esm2020/src/app/core/home/home.mjs +4 -4
  40. package/esm2020/src/app/core/home/home.module.mjs +5 -5
  41. package/esm2020/src/app/core/icon/icon.component.mjs +4 -4
  42. package/esm2020/src/app/core/icon/icon.module.mjs +5 -5
  43. package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +4 -4
  44. package/esm2020/src/app/core/install/install-upgrade-card.module.mjs +5 -5
  45. package/esm2020/src/app/core/menu/menu.component.mjs +4 -4
  46. package/esm2020/src/app/core/menu/menu.module.mjs +5 -5
  47. package/esm2020/src/app/core/menu/menu.service.mjs +4 -4
  48. package/esm2020/src/app/core/offline/update-offline-mode-card.component.mjs +4 -4
  49. package/esm2020/src/app/core/offline/update-offline-mode-card.module.mjs +5 -5
  50. package/esm2020/src/app/core/peer/select-peer.modal.mjs +4 -4
  51. package/esm2020/src/app/core/peer/select-peer.module.mjs +5 -5
  52. package/esm2020/src/app/core/register/register-confirm.page.mjs +4 -4
  53. package/esm2020/src/app/core/register/register.form.mjs +4 -4
  54. package/esm2020/src/app/core/register/register.modal.mjs +4 -4
  55. package/esm2020/src/app/core/register/register.module.mjs +5 -5
  56. package/esm2020/src/app/core/services/account.service.mjs +4 -4
  57. package/esm2020/src/app/core/services/auth-guard.service.mjs +4 -4
  58. package/esm2020/src/app/core/services/base-entity-service.class.mjs +4 -4
  59. package/esm2020/src/app/core/services/base-graphql-service.class.mjs +4 -4
  60. package/esm2020/src/app/core/services/config.service.mjs +4 -4
  61. package/esm2020/src/app/core/services/crypto.service.mjs +4 -4
  62. package/esm2020/src/app/core/services/local-settings.service.mjs +4 -4
  63. package/esm2020/src/app/core/services/network.service.mjs +4 -4
  64. package/esm2020/src/app/core/services/pipes/account.pipes.mjs +9 -9
  65. package/esm2020/src/app/core/services/pipes/department-to-string.pipe.mjs +5 -5
  66. package/esm2020/src/app/core/services/pipes/person-to-string.pipe.mjs +5 -5
  67. package/esm2020/src/app/core/services/pipes/usage-mode.pipes.mjs +9 -9
  68. package/esm2020/src/app/core/services/platform.service.mjs +4 -4
  69. package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +4 -4
  70. package/esm2020/src/app/core/services/testing/referential.validator.mjs +4 -4
  71. package/esm2020/src/app/core/services/validator/account.validator.mjs +4 -4
  72. package/esm2020/src/app/core/services/validator/base.validator.class.mjs +4 -4
  73. package/esm2020/src/app/core/services/validator/local-settings.validator.mjs +4 -4
  74. package/esm2020/src/app/core/services/validator/user-settings.validator.mjs +4 -4
  75. package/esm2020/src/app/core/settings/settings.module.mjs +5 -5
  76. package/esm2020/src/app/core/settings/settings.page.mjs +4 -4
  77. package/esm2020/src/app/core/table/actions-column.component.mjs +4 -4
  78. package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +4 -4
  79. package/esm2020/src/app/core/table/memory-table.class.mjs +4 -4
  80. package/esm2020/src/app/core/table/table-select-columns.component.mjs +4 -4
  81. package/esm2020/src/app/core/table/table.class.mjs +5 -5
  82. package/esm2020/src/app/core/table/table.module.mjs +5 -5
  83. package/esm2020/src/app/core/table/testing/table.testing.mjs +4 -4
  84. package/esm2020/src/app/core/table/testing/table.testing.module.mjs +5 -5
  85. package/esm2020/src/app/shared/audio/audio.mjs +4 -4
  86. package/esm2020/src/app/shared/audio/audio.testing.mjs +4 -4
  87. package/esm2020/src/app/shared/audio/audio.testing.module.mjs +5 -5
  88. package/esm2020/src/app/shared/capacitor/keyboard.mjs +4 -4
  89. package/esm2020/src/app/shared/debug/debug.component.mjs +4 -4
  90. package/esm2020/src/app/shared/debug/debug.module.mjs +5 -5
  91. package/esm2020/src/app/shared/directives/autofocus.directive.mjs +4 -4
  92. package/esm2020/src/app/shared/directives/autotitle.directive.mjs +4 -4
  93. package/esm2020/src/app/shared/directives/directives.module.mjs +5 -5
  94. package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +4 -4
  95. package/esm2020/src/app/shared/directives/ng-var.directive.mjs +4 -4
  96. package/esm2020/src/app/shared/directives/resizable/resizable.component.mjs +4 -4
  97. package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +4 -4
  98. package/esm2020/src/app/shared/directives/resizable/resizable.module.mjs +5 -5
  99. package/esm2020/src/app/shared/file/file.service.mjs +4 -4
  100. package/esm2020/src/app/shared/form/field.component.mjs +4 -4
  101. package/esm2020/src/app/shared/form/loading-spinner.mjs +4 -4
  102. package/esm2020/src/app/shared/gesture/gesture-config.mjs +4 -4
  103. package/esm2020/src/app/shared/guard/component-dirty.guard.mjs +4 -4
  104. package/esm2020/src/app/shared/help/help.modal.mjs +4 -4
  105. package/esm2020/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +4 -4
  106. package/esm2020/src/app/shared/hotkeys/hotkeys.service.mjs +4 -4
  107. package/esm2020/src/app/shared/hotkeys/shared-hotkeys.module.mjs +5 -5
  108. package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +8 -6
  109. package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +5 -5
  110. package/esm2020/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +4 -4
  111. package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +5 -5
  112. package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +5 -5
  113. package/esm2020/src/app/shared/image/image.module.mjs +5 -5
  114. package/esm2020/src/app/shared/image/image.service.mjs +4 -4
  115. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +4 -4
  116. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +5 -5
  117. package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +4 -4
  118. package/esm2020/src/app/shared/material/badge/badge.directive.mjs +4 -4
  119. package/esm2020/src/app/shared/material/badge/badge.module.mjs +5 -5
  120. package/esm2020/src/app/shared/material/badge/badge.test.mjs +4 -4
  121. package/esm2020/src/app/shared/material/boolean/boolean.module.mjs +5 -5
  122. package/esm2020/src/app/shared/material/boolean/material.boolean.mjs +4 -4
  123. package/esm2020/src/app/shared/material/chips/chips.module.mjs +5 -5
  124. package/esm2020/src/app/shared/material/chips/material.chips.mjs +4 -4
  125. package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +4 -4
  126. package/esm2020/src/app/shared/material/datetime/datetime.module.mjs +5 -5
  127. package/esm2020/src/app/shared/material/datetime/material.date.mjs +4 -4
  128. package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +4 -4
  129. package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +4 -4
  130. package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +4 -4
  131. package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +4 -4
  132. package/esm2020/src/app/shared/material/duration/duration.module.mjs +5 -5
  133. package/esm2020/src/app/shared/material/duration/material.duration.mjs +4 -4
  134. package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +4 -4
  135. package/esm2020/src/app/shared/material/latlong/material.latlong.module.mjs +5 -5
  136. package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +4 -4
  137. package/esm2020/src/app/shared/material/material.module.mjs +5 -5
  138. package/esm2020/src/app/shared/material/material.testing.module.mjs +5 -5
  139. package/esm2020/src/app/shared/material/numpad/numpad.append-to-input.directive.mjs +4 -4
  140. package/esm2020/src/app/shared/material/numpad/numpad.component.mjs +4 -4
  141. package/esm2020/src/app/shared/material/numpad/numpad.container.mjs +4 -4
  142. package/esm2020/src/app/shared/material/numpad/numpad.content.mjs +4 -4
  143. package/esm2020/src/app/shared/material/numpad/numpad.directive.mjs +4 -4
  144. package/esm2020/src/app/shared/material/numpad/numpad.dom-service.mjs +4 -4
  145. package/esm2020/src/app/shared/material/numpad/numpad.module.mjs +5 -5
  146. package/esm2020/src/app/shared/material/numpad/testing/numpad.test.mjs +4 -4
  147. package/esm2020/src/app/shared/material/paginator/material.paginator-i18n.mjs +4 -4
  148. package/esm2020/src/app/shared/material/stepper/material.stepper-i18n.mjs +4 -4
  149. package/esm2020/src/app/shared/material/swipe/material.swipe.mjs +4 -4
  150. package/esm2020/src/app/shared/material/swipe/swipe.module.mjs +5 -5
  151. package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +4 -4
  152. package/esm2020/src/app/shared/pipes/arrays.pipe.mjs +25 -25
  153. package/esm2020/src/app/shared/pipes/colors.pipe.mjs +4 -4
  154. package/esm2020/src/app/shared/pipes/date-diff-duration.pipe.mjs +5 -5
  155. package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +7 -7
  156. package/esm2020/src/app/shared/pipes/date-from-now.pipe.mjs +5 -5
  157. package/esm2020/src/app/shared/pipes/duration.pipe.mjs +5 -5
  158. package/esm2020/src/app/shared/pipes/file-size.pipe.mjs +4 -4
  159. package/esm2020/src/app/shared/pipes/form.pipes.mjs +19 -19
  160. package/esm2020/src/app/shared/pipes/highlight.pipe.mjs +5 -5
  161. package/esm2020/src/app/shared/pipes/latlong-format.pipe.mjs +10 -10
  162. package/esm2020/src/app/shared/pipes/maps.pipe.mjs +13 -13
  163. package/esm2020/src/app/shared/pipes/math.pipes.mjs +13 -13
  164. package/esm2020/src/app/shared/pipes/ng-init.pipe.mjs +4 -4
  165. package/esm2020/src/app/shared/pipes/number-format.pipe.mjs +5 -5
  166. package/esm2020/src/app/shared/pipes/pipes.module.mjs +5 -5
  167. package/esm2020/src/app/shared/pipes/property.pipes.mjs +8 -8
  168. package/esm2020/src/app/shared/pipes/string.pipes.mjs +22 -22
  169. package/esm2020/src/app/shared/pipes/translate-context.pipe.mjs +9 -9
  170. package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +4 -4
  171. package/esm2020/src/app/shared/services/progress-bar.service.mjs +4 -4
  172. package/esm2020/src/app/shared/services/storage/storage.service.mjs +4 -4
  173. package/esm2020/src/app/shared/services/translate-context.service.mjs +4 -4
  174. package/esm2020/src/app/shared/shared-routing.module.mjs +8 -8
  175. package/esm2020/src/app/shared/shared.module.mjs +5 -5
  176. package/esm2020/src/app/shared/shared.testing.module.mjs +5 -5
  177. package/esm2020/src/app/shared/testing/observable.test.mjs +4 -4
  178. package/esm2020/src/app/shared/testing/tests.page.mjs +4 -4
  179. package/esm2020/src/app/shared/toast/toast.testing.mjs +4 -4
  180. package/esm2020/src/app/shared/toast/toast.testing.module.mjs +5 -5
  181. package/esm2020/src/app/shared/toolbar/modal-toolbar.mjs +4 -4
  182. package/esm2020/src/app/shared/toolbar/toolbar.mjs +4 -4
  183. package/esm2020/src/app/shared/toolbar/toolbar.module.mjs +5 -5
  184. package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +4 -4
  185. package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +5 -5
  186. package/esm2020/src/app/shared/upload-file/upload-file-popover.component.mjs +4 -4
  187. package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +4 -4
  188. package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +4 -4
  189. package/esm2020/src/app/social/job/job.module.mjs +5 -5
  190. package/esm2020/src/app/social/job/progression/job-progression.icon.mjs +4 -4
  191. package/esm2020/src/app/social/job/progression/job-progression.list.mjs +4 -4
  192. package/esm2020/src/app/social/job/progression/job-progression.service.mjs +4 -4
  193. package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +4 -4
  194. package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +4 -4
  195. package/esm2020/src/app/social/job/testing/job.testing.module.mjs +5 -5
  196. package/esm2020/src/app/social/message/message.form.mjs +4 -4
  197. package/esm2020/src/app/social/message/message.modal.mjs +4 -4
  198. package/esm2020/src/app/social/message/message.module.mjs +5 -5
  199. package/esm2020/src/app/social/message/message.service.mjs +4 -4
  200. package/esm2020/src/app/social/social.module.mjs +5 -5
  201. package/esm2020/src/app/social/social.testing.module.mjs +5 -5
  202. package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +4 -4
  203. package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +4 -4
  204. package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +4 -4
  205. package/esm2020/src/app/social/user-event/testing/user-event.testing.module.mjs +5 -5
  206. package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +4 -4
  207. package/esm2020/src/app/social/user-event/user-event.module.mjs +5 -5
  208. package/esm2020/src/app/social/user-event/user-event.service.mjs +4 -4
  209. package/fesm2015/sumaris-net.ngx-components.mjs +803 -801
  210. package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
  211. package/fesm2020/sumaris-net.ngx-components.mjs +803 -801
  212. package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
  213. package/package.json +1 -1
  214. package/src/app/shared/image/gallery/image-gallery.component.d.ts +3 -1
  215. package/src/app/social/user-event/user-event.service.d.ts +1 -1
  216. package/plugins/clovelced-plugin-audiomanagement/README.md +0 -66
  217. package/plugins/cordova-plugin-camera/README.md +0 -703
  218. package/plugins/cordova-plugin-device/README.md +0 -309
  219. package/plugins/cordova-plugin-file/README.md +0 -848
  220. package/plugins/cordova-plugin-file-transfer/README.md +0 -598
  221. package/plugins/cordova-plugin-file-transfer/doc/de/README.md +0 -311
  222. package/plugins/cordova-plugin-file-transfer/doc/es/README.md +0 -311
  223. package/plugins/cordova-plugin-file-transfer/doc/fr/README.md +0 -270
  224. package/plugins/cordova-plugin-file-transfer/doc/it/README.md +0 -311
  225. package/plugins/cordova-plugin-file-transfer/doc/ja/README.md +0 -311
  226. package/plugins/cordova-plugin-file-transfer/doc/ko/README.md +0 -311
  227. package/plugins/cordova-plugin-file-transfer/doc/pl/README.md +0 -311
  228. package/plugins/cordova-plugin-file-transfer/doc/zh/README.md +0 -311
  229. package/plugins/cordova-plugin-ionic-keyboard/README.md +0 -220
  230. package/plugins/cordova-plugin-ionic-webview/README.md +0 -181
  231. package/plugins/cordova-plugin-media-capture/README.md +0 -626
  232. package/plugins/cordova-plugin-splashscreen/README.md +0 -387
  233. package/plugins/cordova-plugin-statusbar/README.md +0 -341
  234. package/plugins/cordova-plugin-telerik-imagepicker/README.md +0 -155
  235. package/plugins/cordova-plugin-whitelist/README.md +0 -185
  236. package/plugins/cordova-sqlite-storage/README.md +0 -1848
  237. package/plugins/integrator-cordova-plugin-downloader/README.md +0 -49
@@ -1,387 +0,0 @@
1
- ---
2
- title: Splashscreen
3
- description: Control the splash screen for your app.
4
- ---
5
- <!--
6
- # license: Licensed to the Apache Software Foundation (ASF) under one
7
- # or more contributor license agreements. See the NOTICE file
8
- # distributed with this work for additional information
9
- # regarding copyright ownership. The ASF licenses this file
10
- # to you under the Apache License, Version 2.0 (the
11
- # "License"); you may not use this file except in compliance
12
- # with the License. You may obtain a copy of the License at
13
- #
14
- # http://www.apache.org/licenses/LICENSE-2.0
15
- #
16
- # Unless required by applicable law or agreed to in writing,
17
- # software distributed under the License is distributed on an
18
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
- # KIND, either express or implied. See the License for the
20
- # specific language governing permissions and limitations
21
- # under the License.
22
- -->
23
-
24
- # cordova-plugin-splashscreen
25
-
26
- [![Android Testsuite](https://github.com/apache/cordova-plugin-splashscreen/actions/workflows/android.yml/badge.svg)](https://github.com/apache/cordova-plugin-splashscreen/actions/workflows/android.yml) [![Chrome Testsuite](https://github.com/apache/cordova-plugin-splashscreen/actions/workflows/chrome.yml/badge.svg)](https://github.com/apache/cordova-plugin-splashscreen/actions/workflows/chrome.yml) [![Lint Test](https://github.com/apache/cordova-plugin-splashscreen/actions/workflows/lint.yml/badge.svg)](https://github.com/apache/cordova-plugin-splashscreen/actions/workflows/lint.yml)
27
-
28
- This plugin displays and hides a splash screen while your web application is launching. Using its methods you can also show and hide the splash screen manually.
29
-
30
- - [cordova-plugin-splashscreen](#cordova-plugin-splashscreen)
31
- - [Installation](#installation)
32
- - [Supported Platforms](#supported-platforms)
33
- - [Platform Splash Screen Image Configuration](#platform-splash-screen-image-configuration)
34
- - [Example Configuration](#example-configuration)
35
- - [Android-specific Information](#android-specific-information)
36
- - [Image Layout](#image-layout)
37
- - [`density`](#density)
38
- - [Image Sizing Table](#image-sizing-table)
39
- - [Dark Mode (API 28+)](#dark-mode-api-28)
40
- - [Example Android Configuration](#example-android-configuration)
41
- - [Windows-specific Information](#windows-specific-information)
42
- - [Preferences](#preferences)
43
- - [config.xml](#configxml)
44
- - [Quirks](#quirks)
45
- - [Android Quirks](#android-quirks)
46
- - [Browser Quirks](#browser-quirks)
47
- - [Windows Quirks](#windows-quirks)
48
- - [Methods](#methods)
49
- - [splashscreen.hide](#splashscreenhide)
50
- - [splashscreen.show](#splashscreenshow)
51
-
52
- ## Installation
53
-
54
- // npm hosted (new) id
55
- cordova plugin add cordova-plugin-splashscreen
56
-
57
- // you may also install directly from this repo
58
- cordova plugin add https://github.com/apache/cordova-plugin-splashscreen.git
59
-
60
- ## Supported Platforms
61
-
62
- - Android
63
- __Note__: Android implementation has been moved to the core framework.
64
- If using `cordova-android@10.x` or earlier, use `cordova-plugin-splashscreen@6.x`
65
- If using `cordova-android@11.x` or later and exclusively developing for Android, this plugin can be uninstalled.
66
- - Windows (`cordova-windows` version >= 4.4.0 is required)
67
- __Note__: Extended splashscreen does not require the plugin on Windows (as opposed to Android) in case you don't use the plugin API, i.e. programmatic hide/show.
68
- - Browser
69
-
70
- ## Platform Splash Screen Image Configuration
71
-
72
- ### Example Configuration
73
-
74
- In the top-level `config.xml` file (not the one in `platforms`), add configuration elements like those specified here.
75
-
76
- The value of the "src" attribute is relative to the project root directory and NOT to the `www` directory (see `Directory structure` below). You can name the source image file whatever you like. The internal name in the application is automatically determined by Cordova.
77
-
78
- Directory structure:
79
-
80
- ```
81
- projectRoot
82
- hooks
83
- platforms
84
- plugins
85
- www
86
- css
87
- img
88
- js
89
- res
90
- screen
91
- android
92
- windows
93
- ```
94
-
95
- ```xml
96
- <platform name="android">
97
- <splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi" />
98
- <splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi" />
99
- <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi" />
100
- <splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi" />
101
- <splash src="res/screen/android/splash-land-xxhdpi.png" density="land-xxhdpi" />
102
- <splash src="res/screen/android/splash-land-xxxhdpi.png" density="land-xxxhdpi" />
103
-
104
- <splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi" />
105
- <splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi" />
106
- <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi" />
107
- <splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi" />
108
- <splash src="res/screen/android/splash-port-xxhdpi.png" density="port-xxhdpi" />
109
- <splash src="res/screen/android/splash-port-xxxhdpi.png" density="port-xxxhdpi" />
110
- </platform>
111
-
112
- <!-- Configuration using MRT concept (Recommended, see "Windows-specific information" section for details): -->
113
- <platform name="windows">
114
- <splash src="res/screen/windows/splashscreen.png" target="SplashScreen"/>
115
- <splash src="res/screen/windows/splashscreenphone.png" target="SplashScreenPhone"/>
116
- </platform>
117
-
118
- <!-- Configuration using image size: -->
119
- <!--<platform name="windows">
120
- <splash src="res/screen/windows/splashscreen.png" width="620" height="300"/>
121
- <splash src="res/screen/windows/splashscreenphone.png" width="1152" height="1920"/>
122
- </platform>-->
123
-
124
- <preference name="SplashScreenDelay" value="10000" />
125
- ```
126
-
127
- ### Android-specific Information
128
-
129
- To effectively create your Android SplashScreen assets, it is important to understand the idiom and sizes used for the assets.
130
-
131
- Android defined its assets by the image's layout and `density`.
132
-
133
- #### Image Layout
134
-
135
- - `land` short for landscape mode
136
- - `port` short for portrait mode
137
-
138
- #### `density`
139
-
140
- The image's density refers to the number of pixels per square inch. Android, interchangeably refers to this as DPI.
141
-
142
- Not all devices have the same pixel size so it is important to create images for all DPI to ensure that the quality of the image for each device is great.
143
-
144
- If not all DPI images are considered, some devices might not show a SplashScreen or will use an incorrect DPI image that can result in a blurry scaled image.
145
-
146
- #### Image Sizing Table
147
-
148
- | size | portrait | landscape |
149
- | :-----: | :-------: | :-------: |
150
- | ldpi | 200x320 | 320x200 |
151
- | mdpi | 320x480 | 480x320 |
152
- | hdpi | 480x800 | 800x480 |
153
- | xhdpi | 720x1280 | 1280x720 |
154
- | xxhdpi | 960x1600 | 1600x960 |
155
- | xxxhdpi | 1280x1920 | 1920x1280 |
156
-
157
- #### Dark Mode (API 28+)
158
-
159
- You can optionally provide an extra SplashScreen image to be used in dark/night mode when enabled on supported devices.
160
- To do this, add the `-night` keyword in between the **layout** and **size** keywords of the image's `density` attribute value. E.g.: `land-night-hdpi`
161
-
162
- For more examples, please see [the Example Configuration](#example-android-configuration) section.
163
-
164
- #### Example Android Configuration
165
-
166
- ```xml
167
- <platform name="android">
168
- <!-- Default
169
- Note: You should specify default resources for each density.
170
- -- For instance, if the device(hdpi) is in landscape orientation and [density="land-hdpi"]
171
- -- does not exists, [density="hdpi"] will be selected
172
- If you do not declare this you will get MissingDefaultResource lint check errors.
173
- -->
174
- <splash src="res/screen/android/splash-port-hdpi.png" density="hdpi"/>
175
- <splash src="res/screen/android/splash-port-ldpi.png" density="ldpi"/>
176
- <splash src="res/screen/android/splash-port-mdpi.png" density="mdpi"/>
177
- <splash src="res/screen/android/splash-port-xhdpi.png" density="xhdpi"/>
178
- <splash src="res/screen/android/splash-port-xxhdpi.png" density="xxhdpi"/>
179
-
180
- <!-- Landscape -->
181
- <splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi" />
182
- <splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi" />
183
- <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi" />
184
- <splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi" />
185
- <splash src="res/screen/android/splash-land-xxhdpi.png" density="land-xxhdpi" />
186
- <splash src="res/screen/android/splash-land-xxxhdpi.png" density="land-xxxhdpi" />
187
-
188
- <!-- Portrait -->
189
- <splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi" />
190
- <splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi" />
191
- <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi" />
192
- <splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi" />
193
- <splash src="res/screen/android/splash-port-xxhdpi.png" density="port-xxhdpi" />
194
- <splash src="res/screen/android/splash-port-xxxhdpi.png" density="port-xxxhdpi" />
195
-
196
- <!-- Dark Mode -->
197
- <splash src="res/screen/android/splash-land-night-hdpi.png" density="land-night-hdpi" />
198
- <splash src="res/screen/android/splash-land-night-ldpi.png" density="land-night-ldpi" />
199
- <splash src="res/screen/android/splash-land-night-mdpi.png" density="land-night-mdpi" />
200
- <splash src="res/screen/android/splash-land-night-xhdpi.png" density="land-night-xhdpi" />
201
- <splash src="res/screen/android/splash-land-night-xxhdpi.png" density="land-night-xxhdpi" />
202
- <splash src="res/screen/android/splash-land-night-xxxhdpi.png" density="land-night-xxxhdpi" />
203
-
204
- <splash src="res/screen/android/splash-port-night-hdpi.png" density="port-night-hdpi" />
205
- <splash src="res/screen/android/splash-port-night-ldpi.png" density="port-night-ldpi" />
206
- <splash src="res/screen/android/splash-port-night-mdpi.png" density="port-night-mdpi" />
207
- <splash src="res/screen/android/splash-port-night-xhdpi.png" density="port-night-xhdpi" />
208
- <splash src="res/screen/android/splash-port-night-xxhdpi.png" density="port-night-xxhdpi" />
209
- <splash src="res/screen/android/splash-port-night-xxxhdpi.png" density="port-night-xxxhdpi" />
210
- </platform>
211
- ```
212
-
213
- ### Windows-specific Information
214
-
215
- Splash screen images can be defined using the [MRT](https://cordova.apache.org/docs/en/dev/config_ref/images.html#windows) concept.
216
- If you specify `src="res/windows/splashscreen.png"` the following files will be copied into the application's images folder:
217
- `res/windows/splashscreen.png` | `res/windows/splashscreen.scale-100.png`, `res/windows/splashscreen.scale-125.png`, etc.
218
-
219
- The following are supported:
220
-
221
- | Scale, % | Project | Width | Height | Filename |
222
- |:------------:|:-------------------:|:-----------:|:------------:|:---------------------------------:|
223
- | 100 | Windows 10/8.1 | 620 | 300 | `splashscreen.png` \| `splashscreen.scale-100.png` |
224
- | 125 | Windows 10 | 775 | 375 | `splashscreen.scale-125.png` |
225
- | 150 | Windows 10 | 930 | 450 | `splashscreen.scale-150.png` |
226
- | 200 | Windows 10 | 1240 | 600 | `splashscreen.scale-200.png` |
227
- | 400 | Windows 10 | 2480 | 1200 | `splashscreen.scale-400.png` |
228
- | 140 | Windows 8.1 | 868 | 420 | `splashscreen.scale-140.png` |
229
- | 180 | Windows 8.1 | 1116 | 540 | `splashscreen.scale-180.png` |
230
- | 100 | Windows Phone 8.1 | 480 | 800 | `splashscreenphone.png` \| `splashscreenphone.scale-100.png` |
231
- | 140 | Windows Phone 8.1 | 672 | 1120 | `splashscreenphone.scale-140.png` |
232
- | 240 | Windows Phone 8.1 | 1152 | 1920 | `splashscreenphone.scale-240.png` |
233
-
234
- __Note__: SplashScreens size for Windows 10 project should not exceed 200 KBytes.
235
- __Note__: Supported formats are `.png`, `.jpg`, `.jpeg`. Mixing of the extensions within a target is not supported. I.e. you can have `splashscreen.jpg` and `splashscreenphone.png` but not `splashscreen.scale-100.png`, `splashscreen.scale-400.jpg`.
236
- __Note__: You may need to reopen Visual Studio solution after changing the images and doing a `cordova prepare` for the changes to take effect.
237
-
238
- ## Preferences
239
-
240
- ### config.xml
241
-
242
- - `AutoHideSplashScreen` (boolean, default to `true`). Indicates whether to hide splash screen automatically or not. The splash screen is hidden after the amount of time specified in the `SplashScreenDelay` preference.
243
-
244
- ```xml
245
- <preference name="AutoHideSplashScreen" value="true" />
246
- ```
247
-
248
- - `SplashScreenDelay` (number, default to 3000). Amount of time in milliseconds to wait before automatically hide splash screen.
249
-
250
- ```xml
251
- <preference name="SplashScreenDelay" value="3000" />
252
- ```
253
-
254
- This value used to be in seconds (but is now milliseconds) so values less than 30 will continue to be treated as seconds. (Consider this a deprecated patch that will disapear in some future version.)
255
-
256
- To disable the splashscreen add the following preference to `config.xml`:
257
- ```xml
258
- <preference name="SplashScreenDelay" value="0"/>
259
- ```
260
-
261
- **Windows Quirk**: You should disable the splashscreen in case you are updating the entire document body dynamically (f.e. with a SPA router) to avoid affecting UI/controls.
262
- Note that you should also directly reference `WinJS/base.js` in the page HTML in this case to avoid the issues with activation context ([CB-11658](https://issues.apache.org/jira/browse/CB-11658)).
263
-
264
- - `FadeSplashScreen` (boolean, defaults to `true`): Set to `false` to
265
- prevent the splash screen from fading in and out when its display
266
- state changes.
267
-
268
- ```xml
269
- <preference name="FadeSplashScreen" value="false"/>
270
- ```
271
-
272
- - `FadeSplashScreenDuration` (float, defaults to `500`): Specifies the
273
- number of milliseconds for the splash screen fade effect to execute.
274
-
275
- ```xml
276
- <preference name="FadeSplashScreenDuration" value="750"/>
277
- ```
278
-
279
- _Note_: `FadeSplashScreenDuration` is included into `SplashScreenDelay`, for example if you have `<preference name="SplashScreenDelay" value="3000" />` and `<preference name="FadeSplashScreenDuration" value="1000"/>` defined in `config.xml`:
280
-
281
- - 00:00 - splashscreen is shown
282
- - 00:02 - fading has started
283
- - 00:03 - splashscreen is hidden
284
-
285
- Turning the fading off via `<preference name="FadeSplashScreen" value="false"/>` technically means fading duration to be `0` so that in this example the overall splash screen delay will still be 3 seconds.
286
-
287
- _Note_: This only applies to the application startup - you need to take the fading timeout into account when manually showing/hiding the splash screen in your application's code:
288
-
289
- ```javascript
290
- navigator.splashscreen.show();
291
- window.setTimeout(function () {
292
- navigator.splashscreen.hide();
293
- }, splashDuration - fadeDuration);
294
- ```
295
-
296
- - `ShowSplashScreenSpinner` (boolean, defaults to `true`): Set to `false`
297
- to hide the splash screen spinner.
298
-
299
- ```xml
300
- <preference name="ShowSplashScreenSpinner" value="false"/>
301
- ```
302
-
303
- _Note_: Does not work on Browser or Windows platforms.
304
-
305
- ### Quirks
306
-
307
- #### Android Quirks
308
-
309
- In your `config.xml`, you can add the following preferences:
310
-
311
- ```xml
312
- <preference name="SplashMaintainAspectRatio" value="true|false" />
313
- <preference name="SplashShowOnlyFirstTime" value="true|false" />
314
- <preference name="SplashScreenSpinnerColor" value="white" />
315
- ```
316
-
317
- `SplashMaintainAspectRatio` preference is optional. If set to `true`, the splash screen drawable is not stretched to fit the full screen, but instead simply "covers" the screen, like CSS "background-size:cover". This is very useful when splash screen images cannot be distorted in any way, for example when they contain scenery or text. This setting works best with images that have large margins (safe areas) that can be safely cropped on screens with different aspect ratios.
318
-
319
- The splash screen plugin reloads the splash screen whenever the orientation changes so that you can specify different splash screen images for portrait and landscape orientations.
320
-
321
- `SplashShowOnlyFirstTime` preference is optional and defaults to `true`. When set to `true` the splash screen will only appear on application launch. However, if you plan to use `navigator.app.exitApp()` to close the application and force the splash screen appear on the application's next launch, you should set this property to `false` (this also applies to closing the application with the Back button).
322
-
323
- `SplashScreenSpinnerColor` preference is also optional and is ignored when not set. Setting it to a valid color name or HEX color code will change the color of the spinner on Android 5.0+ devices.
324
-
325
- #### Browser Quirks
326
-
327
- You can use the following preferences in your `config.xml`:
328
-
329
- ```xml
330
- <platform name="browser">
331
- <preference name="SplashScreen" value="/images/browser/splashscreen.jpg" /> <!-- defaults to "/img/logo.png" -->
332
- <preference name="AutoHideSplashScreen" value="true" /> <!-- defaults to "true" -->
333
- <preference name="SplashScreenDelay" value="3000" /> <!-- defaults to "3000" -->
334
- <preference name="SplashScreenBackgroundColor" value="green" /> <!-- defaults to "#464646" -->
335
- <preference name="ShowSplashScreen" value="false" /> <!-- defaults to "true" -->
336
- <preference name="SplashScreenWidth" value="600" /> <!-- defaults to "170" -->
337
- <preference name="SplashScreenHeight" value="300" /> <!-- defaults to "200" -->
338
- </platform>
339
- ```
340
-
341
- __Note__: `SplashScreen` value should be absolute in order to work in a sub-page. The `SplashScreen` value is used only for the browser platform. The value will be ignored for other platforms.
342
-
343
- #### Windows Quirks
344
-
345
- - `SplashScreenSpinnerColor` (string, defaults to system accent color): hash, rgb notation or CSS color name.
346
-
347
- ```xml
348
- <preference name="SplashScreenSpinnerColor" value="#242424"/>
349
- <preference name="SplashScreenSpinnerColor" value="DarkRed"/>
350
- <preference name="SplashScreenSpinnerColor" value="rgb(50,128,128)"/>
351
- ```
352
-
353
- - `SplashScreenBackgroundColor` (string, defaults to #464646): hex notation.
354
-
355
- ```xml
356
- <preference name="SplashScreenBackgroundColor" value="0xFFFFFFFF"/>
357
- ```
358
-
359
- ## Methods
360
-
361
- - splashscreen.show
362
- - splashscreen.hide
363
-
364
- ### splashscreen.hide
365
-
366
- Dismiss the splash screen.
367
-
368
- ```js
369
- navigator.splashscreen.hide();
370
- ```
371
-
372
- ### splashscreen.show
373
-
374
- Displays the splash screen.
375
-
376
- ```js
377
- navigator.splashscreen.show();
378
- ```
379
-
380
- Your application cannot call `navigator.splashscreen.show()` until the application has
381
- started and the `deviceready` event has fired. But since typically the splash
382
- screen is meant to be visible before your application has started, that would seem to
383
- defeat the purpose of the splash screen. Providing any parameters in
384
- `config.xml` will automatically `show` the splash screen immediately after your
385
- application is launched and before it has fully started and received the `deviceready`
386
- event. For this reason, it is unlikely you will need to call `navigator.splashscreen.show()` to make the splash
387
- screen visible for application startup.