@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.
- package/doc/changelog.md +7 -0
- package/esm2020/public_api.mjs +3 -1
- package/esm2020/src/app/admin/admin-routing.module.mjs +5 -5
- package/esm2020/src/app/admin/admin.module.mjs +5 -5
- package/esm2020/src/app/admin/services/person.service.mjs +4 -4
- package/esm2020/src/app/admin/services/validator/person.validator.mjs +4 -4
- package/esm2020/src/app/admin/users/users.mjs +5 -5
- package/esm2020/src/app/admin/users/users.module.mjs +5 -5
- package/esm2020/src/app/core/about/about.modal.mjs +4 -4
- package/esm2020/src/app/core/about/about.module.mjs +5 -5
- package/esm2020/src/app/core/account/account.module.mjs +5 -5
- package/esm2020/src/app/core/account/account.page.mjs +4 -4
- package/esm2020/src/app/core/auth/auth.form.mjs +4 -4
- package/esm2020/src/app/core/auth/auth.modal.mjs +4 -4
- package/esm2020/src/app/core/auth/auth.module.mjs +5 -5
- package/esm2020/src/app/core/core.module.mjs +5 -5
- package/esm2020/src/app/core/core.testing.module.mjs +5 -5
- package/esm2020/src/app/core/form/buttons/form-buttons-bar.component.mjs +5 -5
- package/esm2020/src/app/core/form/buttons/form-buttons-bar.module.mjs +5 -5
- package/esm2020/src/app/core/form/entity/editor.class.mjs +7 -7
- package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +4 -4
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +11 -8
- package/esm2020/src/app/core/form/entity/entity-metadata.component.mjs +4 -4
- package/esm2020/src/app/core/form/entity/entity.module.mjs +5 -5
- package/esm2020/src/app/core/form/form.class.mjs +4 -4
- package/esm2020/src/app/core/form/form.module.mjs +5 -5
- package/esm2020/src/app/core/form/form.utils.mjs +8 -1
- package/esm2020/src/app/core/form/list/list.form.mjs +4 -4
- package/esm2020/src/app/core/form/list/list.module.mjs +5 -5
- package/esm2020/src/app/core/form/properties/properties.form.mjs +5 -5
- package/esm2020/src/app/core/form/properties/properties.module.mjs +5 -5
- package/esm2020/src/app/core/form/properties/property.validator.mjs +4 -4
- package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +4 -4
- package/esm2020/src/app/core/form/properties/testing/properties-form.testing.module.mjs +5 -5
- package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.mjs +4 -4
- package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +5 -5
- package/esm2020/src/app/core/form/text-popover/text-form.component.mjs +4 -4
- package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +4 -4
- package/esm2020/src/app/core/form/text-popover/text-popover.module.mjs +5 -5
- package/esm2020/src/app/core/graphql/graphql.module.mjs +5 -5
- package/esm2020/src/app/core/graphql/graphql.service.mjs +4 -4
- package/esm2020/src/app/core/graphql/graphql.utils.mjs +1 -1
- package/esm2020/src/app/core/home/home.mjs +4 -4
- package/esm2020/src/app/core/home/home.module.mjs +5 -5
- package/esm2020/src/app/core/icon/icon.component.mjs +4 -4
- package/esm2020/src/app/core/icon/icon.module.mjs +5 -5
- package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +4 -4
- package/esm2020/src/app/core/install/install-upgrade-card.module.mjs +5 -5
- package/esm2020/src/app/core/menu/menu.component.mjs +8 -7
- package/esm2020/src/app/core/menu/menu.module.mjs +5 -5
- package/esm2020/src/app/core/menu/menu.service.mjs +4 -4
- package/esm2020/src/app/core/offline/update-offline-mode-card.component.mjs +4 -4
- package/esm2020/src/app/core/offline/update-offline-mode-card.module.mjs +5 -5
- package/esm2020/src/app/core/peer/select-peer.modal.mjs +4 -4
- package/esm2020/src/app/core/peer/select-peer.module.mjs +5 -5
- package/esm2020/src/app/core/register/register-confirm.page.mjs +4 -4
- package/esm2020/src/app/core/register/register.form.mjs +4 -4
- package/esm2020/src/app/core/register/register.modal.mjs +4 -4
- package/esm2020/src/app/core/register/register.module.mjs +5 -5
- package/esm2020/src/app/core/services/account.service.mjs +4 -4
- package/esm2020/src/app/core/services/auth-guard.service.mjs +4 -4
- package/esm2020/src/app/core/services/base-entity-service.class.mjs +4 -4
- package/esm2020/src/app/core/services/base-graphql-service.class.mjs +4 -4
- package/esm2020/src/app/core/services/config/core.config.mjs +1 -1
- package/esm2020/src/app/core/services/config.service.mjs +4 -4
- package/esm2020/src/app/core/services/crypto.service.mjs +4 -4
- package/esm2020/src/app/core/services/local-settings.service.mjs +4 -4
- package/esm2020/src/app/core/services/network.service.mjs +6 -27
- package/esm2020/src/app/core/services/network.types.mjs +20 -0
- package/esm2020/src/app/core/services/pipes/account.pipes.mjs +9 -9
- package/esm2020/src/app/core/services/pipes/department-to-string.pipe.mjs +5 -5
- package/esm2020/src/app/core/services/pipes/person-to-string.pipe.mjs +5 -5
- package/esm2020/src/app/core/services/pipes/usage-mode.pipes.mjs +9 -9
- package/esm2020/src/app/core/services/platform.service.mjs +4 -4
- package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +4 -4
- package/esm2020/src/app/core/services/testing/referential.validator.mjs +4 -4
- package/esm2020/src/app/core/services/validator/account.validator.mjs +4 -4
- package/esm2020/src/app/core/services/validator/base.validator.class.mjs +4 -4
- package/esm2020/src/app/core/services/validator/local-settings.validator.mjs +4 -4
- package/esm2020/src/app/core/services/validator/user-settings.validator.mjs +4 -4
- package/esm2020/src/app/core/settings/settings.module.mjs +5 -5
- package/esm2020/src/app/core/settings/settings.page.mjs +5 -5
- package/esm2020/src/app/core/table/actions-column.component.mjs +4 -4
- package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +4 -4
- package/esm2020/src/app/core/table/memory-table.class.mjs +4 -4
- package/esm2020/src/app/core/table/table-select-columns.component.mjs +4 -4
- package/esm2020/src/app/core/table/table.class.mjs +9 -6
- package/esm2020/src/app/core/table/table.module.mjs +5 -5
- package/esm2020/src/app/core/table/testing/table.testing.mjs +5 -5
- package/esm2020/src/app/core/table/testing/table.testing.module.mjs +5 -5
- package/esm2020/src/app/shared/audio/audio.mjs +4 -4
- package/esm2020/src/app/shared/audio/audio.testing.mjs +4 -4
- package/esm2020/src/app/shared/audio/audio.testing.module.mjs +5 -5
- package/esm2020/src/app/shared/capacitor/keyboard.mjs +4 -4
- package/esm2020/src/app/shared/constants.mjs +2 -2
- package/esm2020/src/app/shared/dates.mjs +2 -2
- package/esm2020/src/app/shared/debug/debug.component.mjs +4 -4
- package/esm2020/src/app/shared/debug/debug.module.mjs +5 -5
- package/esm2020/src/app/shared/directives/autofocus.directive.mjs +4 -4
- package/esm2020/src/app/shared/directives/autotitle.directive.mjs +4 -4
- package/esm2020/src/app/shared/directives/directives.module.mjs +5 -5
- package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +4 -4
- package/esm2020/src/app/shared/directives/ng-var.directive.mjs +4 -4
- package/esm2020/src/app/shared/directives/resizable/resizable.component.mjs +4 -4
- package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +4 -4
- package/esm2020/src/app/shared/directives/resizable/resizable.module.mjs +5 -5
- package/esm2020/src/app/shared/file/file.service.mjs +4 -4
- package/esm2020/src/app/shared/form/field.component.mjs +4 -4
- package/esm2020/src/app/shared/form/loading-spinner.mjs +4 -4
- package/esm2020/src/app/shared/gesture/gesture-config.mjs +4 -4
- package/esm2020/src/app/shared/guard/component-dirty.guard.mjs +4 -4
- package/esm2020/src/app/shared/help/help.modal.mjs +4 -4
- package/esm2020/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +4 -4
- package/esm2020/src/app/shared/hotkeys/hotkeys.service.mjs +4 -4
- package/esm2020/src/app/shared/hotkeys/shared-hotkeys.module.mjs +5 -5
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +4 -4
- package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +5 -5
- package/esm2020/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +4 -4
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +4 -4
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +5 -5
- package/esm2020/src/app/shared/image/image.module.mjs +5 -5
- package/esm2020/src/app/shared/image/image.service.mjs +4 -4
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +4 -4
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +5 -5
- package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +4 -4
- package/esm2020/src/app/shared/material/badge/badge.directive.mjs +4 -4
- package/esm2020/src/app/shared/material/badge/badge.module.mjs +5 -5
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +4 -4
- package/esm2020/src/app/shared/material/boolean/boolean.module.mjs +5 -5
- package/esm2020/src/app/shared/material/boolean/material.boolean.mjs +5 -5
- package/esm2020/src/app/shared/material/chips/chips.module.mjs +5 -5
- package/esm2020/src/app/shared/material/chips/material.chips.mjs +4 -4
- package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +4 -4
- package/esm2020/src/app/shared/material/datetime/datetime.module.mjs +5 -5
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +19 -18
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +228 -168
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +13 -10
- package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +4 -4
- package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +4 -4
- package/esm2020/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +103 -0
- package/esm2020/src/app/shared/material/duration/duration.module.mjs +5 -5
- package/esm2020/src/app/shared/material/duration/material.duration.mjs +4 -4
- package/esm2020/src/app/shared/material/latlong/latlong.utils.mjs +5 -5
- package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +6 -6
- package/esm2020/src/app/shared/material/latlong/material.latlong.module.mjs +5 -5
- package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +4 -4
- package/esm2020/src/app/shared/material/material.module.mjs +5 -5
- package/esm2020/src/app/shared/material/material.testing.module.mjs +16 -5
- package/esm2020/src/app/shared/material/numpad/numpad.append-to-input.directive.mjs +4 -4
- package/esm2020/src/app/shared/material/numpad/numpad.component.mjs +4 -4
- package/esm2020/src/app/shared/material/numpad/numpad.container.mjs +4 -4
- package/esm2020/src/app/shared/material/numpad/numpad.content.mjs +4 -4
- package/esm2020/src/app/shared/material/numpad/numpad.directive.mjs +4 -4
- package/esm2020/src/app/shared/material/numpad/numpad.dom-service.mjs +4 -4
- package/esm2020/src/app/shared/material/numpad/numpad.module.mjs +5 -5
- package/esm2020/src/app/shared/material/numpad/testing/numpad.test.mjs +4 -4
- package/esm2020/src/app/shared/material/paginator/material.paginator-i18n.mjs +4 -4
- package/esm2020/src/app/shared/material/stepper/material.stepper-i18n.mjs +4 -4
- package/esm2020/src/app/shared/material/swipe/material.swipe.mjs +4 -4
- package/esm2020/src/app/shared/material/swipe/swipe.module.mjs +5 -5
- package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +4 -4
- package/esm2020/src/app/shared/pipes/arrays.pipe.mjs +25 -25
- package/esm2020/src/app/shared/pipes/colors.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/date-diff-duration.pipe.mjs +5 -5
- package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +7 -7
- package/esm2020/src/app/shared/pipes/date-from-now.pipe.mjs +5 -5
- package/esm2020/src/app/shared/pipes/duration.pipe.mjs +5 -5
- package/esm2020/src/app/shared/pipes/file-size.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/form.pipes.mjs +19 -19
- package/esm2020/src/app/shared/pipes/highlight.pipe.mjs +5 -5
- package/esm2020/src/app/shared/pipes/latlong-format.pipe.mjs +10 -10
- package/esm2020/src/app/shared/pipes/maps.pipe.mjs +13 -13
- package/esm2020/src/app/shared/pipes/math.pipes.mjs +13 -13
- package/esm2020/src/app/shared/pipes/ng-init.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/number-format.pipe.mjs +5 -5
- package/esm2020/src/app/shared/pipes/pipes.module.mjs +5 -5
- package/esm2020/src/app/shared/pipes/property.pipes.mjs +8 -8
- package/esm2020/src/app/shared/pipes/string.pipes.mjs +22 -22
- package/esm2020/src/app/shared/pipes/translate-context.pipe.mjs +9 -9
- package/esm2020/src/app/shared/services/entity-service.class.mjs +1 -1
- package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +4 -4
- package/esm2020/src/app/shared/services/progress-bar.service.mjs +4 -4
- package/esm2020/src/app/shared/services/storage/storage.service.mjs +4 -4
- package/esm2020/src/app/shared/services/translate-context.service.mjs +4 -4
- package/esm2020/src/app/shared/shared-routing.module.mjs +8 -8
- package/esm2020/src/app/shared/shared.module.mjs +5 -5
- package/esm2020/src/app/shared/shared.testing.module.mjs +5 -5
- package/esm2020/src/app/shared/testing/observable.test.mjs +4 -4
- package/esm2020/src/app/shared/testing/tests.page.mjs +4 -4
- package/esm2020/src/app/shared/toast/toast.testing.mjs +4 -4
- package/esm2020/src/app/shared/toast/toast.testing.module.mjs +5 -5
- package/esm2020/src/app/shared/toolbar/modal-toolbar.mjs +4 -4
- package/esm2020/src/app/shared/toolbar/toolbar.mjs +5 -5
- package/esm2020/src/app/shared/toolbar/toolbar.module.mjs +5 -5
- package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +4 -4
- package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +5 -5
- package/esm2020/src/app/shared/upload-file/upload-file-popover.component.mjs +4 -4
- package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +4 -4
- package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +4 -4
- package/esm2020/src/app/social/job/job.module.mjs +5 -5
- package/esm2020/src/app/social/job/progression/job-progression.icon.mjs +4 -4
- package/esm2020/src/app/social/job/progression/job-progression.list.mjs +4 -4
- package/esm2020/src/app/social/job/progression/job-progression.service.mjs +4 -4
- package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +4 -4
- package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +4 -4
- package/esm2020/src/app/social/job/testing/job.testing.module.mjs +5 -5
- package/esm2020/src/app/social/message/message.form.mjs +4 -4
- package/esm2020/src/app/social/message/message.modal.mjs +4 -4
- package/esm2020/src/app/social/message/message.module.mjs +5 -5
- package/esm2020/src/app/social/message/message.service.mjs +4 -4
- package/esm2020/src/app/social/social.module.mjs +5 -5
- package/esm2020/src/app/social/social.testing.module.mjs +5 -5
- package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +4 -4
- package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +4 -4
- package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +4 -4
- package/esm2020/src/app/social/user-event/testing/user-event.testing.module.mjs +5 -5
- package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +4 -4
- package/esm2020/src/app/social/user-event/user-event.module.mjs +5 -5
- package/esm2020/src/app/social/user-event/user-event.service.mjs +4 -4
- package/fesm2015/sumaris-net.ngx-components.mjs +1190 -1019
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +1190 -1020
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +4 -4
- package/public_api.d.ts +2 -0
- package/src/app/core/form/form.utils.d.ts +1 -1
- package/src/app/core/graphql/graphql.service.d.ts +1 -1
- package/src/app/core/graphql/graphql.utils.d.ts +4 -1
- package/src/app/core/services/account.service.d.ts +2 -1
- package/src/app/core/services/base-graphql-service.class.d.ts +1 -1
- package/src/app/core/services/network.service.d.ts +2 -5
- package/src/app/core/services/network.types.d.ts +5 -0
- package/src/app/shared/constants.d.ts +1 -1
- package/src/app/shared/material/datetime/material.date.d.ts +2 -2
- package/src/app/shared/material/datetime/material.dateshort.d.ts +40 -32
- package/src/app/shared/material/datetime/testing/mat-dateshort.test.d.ts +29 -0
- package/src/app/shared/material/material.testing.module.d.ts +16 -15
- package/src/app/shared/services/entity-service.class.d.ts +1 -1
- 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.
|
|
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.
|
|
18
|
-
"@angular/compiler-cli": "~14.2.
|
|
19
|
-
"@apollo/client": "~3.
|
|
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.
|
|
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 {
|
|
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 {
|
|
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
|
|
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
|
|
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 {
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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"; "
|
|
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 "./
|
|
6
|
-
import * as i4 from "./
|
|
7
|
-
import * as i5 from "./
|
|
8
|
-
import * as i6 from "./
|
|
9
|
-
import * as i7 from "./
|
|
10
|
-
import * as i8 from "./
|
|
11
|
-
import * as i9 from "
|
|
12
|
-
import * as i10 from "
|
|
13
|
-
import * as i11 from "@
|
|
14
|
-
import * as i12 from "@angular
|
|
15
|
-
import * as i13 from "
|
|
16
|
-
import * as i14 from "
|
|
17
|
-
import * as i15 from "@
|
|
18
|
-
import * as i16 from "
|
|
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.
|
|
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 '
|
|
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
|
-
|
|
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:
|
|
161
|
+
$font-size: calculateRem(24px);
|
|
162
|
+
$margin-vertical: calculateRem(4px);
|
|
163
|
+
font-size: $font-size !important;
|
|
161
164
|
line-height: 1.125;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
height: $font-size;
|
|
166
|
+
width: $font-size;
|
|
167
|
+
margin-left: $margin-vertical;
|
|
168
|
+
margin-right: $margin-vertical;
|
|
165
169
|
position: relative;
|
|
166
|
-
bottom: -
|
|
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:
|
|
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
|
|
1319
|
+
@include font-size(16pt);
|
|
1312
1320
|
height: 100%;
|
|
1313
1321
|
vertical-align: center;
|
|
1314
1322
|
color: var(--ion-color-tertiary, grey);
|