@sumaris-net/ngx-components 1.2.7 → 1.2.14
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/README.md +9 -7
- package/doc/build.md +2 -2
- package/doc/changelog.md +402 -1
- package/esm2020/public_api.mjs +298 -0
- package/esm2020/src/app/admin/admin-routing.module.mjs +41 -0
- package/esm2020/src/app/admin/admin.module.mjs +34 -0
- package/esm2020/src/app/admin/services/filter/person.filter.mjs +59 -0
- package/esm2020/src/app/admin/services/person.service.mjs +161 -0
- package/esm2020/src/app/admin/services/validator/person.validator.mjs +34 -0
- package/esm2020/src/app/admin/users/users.mjs +234 -0
- package/esm2020/src/app/admin/users/users.module.mjs +54 -0
- package/esm2020/src/app/core/about/about.modal.mjs +71 -0
- package/esm2020/src/app/core/about/about.module.mjs +34 -0
- package/esm2020/src/app/core/account/account.module.mjs +43 -0
- package/esm2020/src/app/core/account/account.page.mjs +245 -0
- package/esm2020/src/app/core/auth/auth.form.mjs +131 -0
- package/esm2020/src/app/core/auth/auth.modal.mjs +72 -0
- package/esm2020/src/app/core/auth/auth.module.mjs +47 -0
- package/esm2020/src/app/core/core.module.mjs +184 -0
- package/esm2020/src/app/core/core.testing.module.mjs +86 -0
- package/esm2020/src/app/core/form/buttons/form-buttons-bar.component.mjs +71 -0
- package/esm2020/src/app/core/form/buttons/form-buttons-bar.module.mjs +35 -0
- package/esm2020/src/app/core/form/entity/editor.class.mjs +675 -0
- package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +419 -0
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +652 -0
- package/esm2020/src/app/core/form/entity/entity-metadata.component.mjs +25 -0
- package/esm2020/src/app/core/form/entity/entity.module.mjs +38 -0
- package/esm2020/src/app/core/form/form.class.mjs +340 -0
- package/esm2020/src/app/core/form/form.module.mjs +66 -0
- package/esm2020/src/app/core/form/form.utils.mjs +473 -0
- package/esm2020/src/app/core/form/list/list.form.mjs +222 -0
- package/esm2020/src/app/core/form/list/list.module.mjs +35 -0
- package/esm2020/src/app/core/form/properties/properties.form.mjs +129 -0
- package/esm2020/src/app/core/form/properties/properties.module.mjs +35 -0
- package/esm2020/src/app/core/form/properties/property.validator.mjs +23 -0
- package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +90 -0
- package/esm2020/src/app/core/form/properties/testing/properties-form.testing.module.mjs +39 -0
- package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.mjs +37 -0
- package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +45 -0
- package/esm2020/src/app/core/form/text-popover/text-form.component.mjs +89 -0
- package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +105 -0
- package/esm2020/src/app/core/form/text-popover/text-popover.module.mjs +40 -0
- package/esm2020/src/app/core/graphql/graphql.module.mjs +22 -0
- package/esm2020/src/app/core/graphql/graphql.service.mjs +749 -0
- package/esm2020/src/app/core/graphql/graphql.utils.mjs +117 -0
- package/esm2020/src/app/core/home/home.mjs +257 -0
- package/esm2020/src/app/core/home/home.module.mjs +48 -0
- package/esm2020/src/app/core/icon/icon.component.mjs +41 -0
- package/esm2020/src/app/core/icon/icon.module.mjs +29 -0
- package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +337 -0
- package/esm2020/src/app/core/install/install-upgrade-card.module.mjs +35 -0
- package/esm2020/src/app/core/menu/menu.component.mjs +330 -0
- package/esm2020/src/app/core/menu/menu.model.mjs +35 -0
- package/esm2020/src/app/core/menu/menu.module.mjs +44 -0
- package/esm2020/src/app/core/menu/menu.service.mjs +55 -0
- package/esm2020/src/app/core/offline/update-offline-mode-card.component.mjs +27 -0
- package/esm2020/src/app/core/offline/update-offline-mode-card.module.mjs +35 -0
- package/esm2020/src/app/core/peer/select-peer.modal.mjs +174 -0
- package/esm2020/src/app/core/peer/select-peer.module.mjs +42 -0
- package/esm2020/src/app/core/register/register-confirm.page.mjs +81 -0
- package/esm2020/src/app/core/register/register.form.mjs +181 -0
- package/esm2020/src/app/core/register/register.modal.mjs +52 -0
- package/esm2020/src/app/core/register/register.module.mjs +44 -0
- package/esm2020/src/app/core/services/account.service.mjs +1111 -0
- package/esm2020/src/app/core/services/auth-guard.service.mjs +71 -0
- package/esm2020/src/app/core/services/base-entity-service.class.mjs +441 -0
- package/{esm2015/src/app/core/services/base-graphql-service.class.js → esm2020/src/app/core/services/base-graphql-service.class.mjs} +36 -34
- package/{esm2015/src/app/core/services/base58.js → esm2020/src/app/core/services/base58.mjs} +2 -2
- package/esm2020/src/app/core/services/config/core.config.mjs +168 -0
- package/esm2020/src/app/core/services/config.service.mjs +354 -0
- package/esm2020/src/app/core/services/crypto.service.mjs +114 -0
- package/{esm2015/src/app/core/services/errors.js → esm2020/src/app/core/services/errors.mjs} +1 -1
- package/esm2020/src/app/core/services/local-settings.service.mjs +445 -0
- package/esm2020/src/app/core/services/model/account.model.mjs +50 -0
- package/esm2020/src/app/core/services/model/config.model.mjs +92 -0
- package/esm2020/src/app/core/services/model/department.model.mjs +30 -0
- package/esm2020/src/app/core/services/model/entity.decorators.mjs +97 -0
- package/esm2020/src/app/core/services/model/entity.model.mjs +228 -0
- package/esm2020/src/app/core/services/model/filter.model.mjs +94 -0
- package/{esm2015/src/app/core/services/model/history.model.js → esm2020/src/app/core/services/model/history.model.mjs} +0 -0
- package/{esm2015/src/app/core/services/model/model.enum.js → esm2020/src/app/core/services/model/model.enum.mjs} +0 -0
- package/esm2020/src/app/core/services/model/peer.model.mjs +68 -0
- package/esm2020/src/app/core/services/model/person.model.mjs +83 -0
- package/esm2020/src/app/core/services/model/referential.model.mjs +153 -0
- package/esm2020/src/app/core/services/model/settings.model.mjs +75 -0
- package/esm2020/src/app/core/services/network.service.mjs +574 -0
- package/esm2020/src/app/core/services/network.types.mjs +20 -0
- package/esm2020/src/app/core/services/network.utils.mjs +16 -0
- package/esm2020/src/app/core/services/pipes/account.pipes.mjs +38 -0
- package/esm2020/src/app/core/services/pipes/department-to-string.pipe.mjs +23 -0
- package/esm2020/src/app/core/services/pipes/person-to-string.pipe.mjs +23 -0
- package/esm2020/src/app/core/services/pipes/usage-mode.pipes.mjs +37 -0
- package/esm2020/src/app/core/services/platform.service.mjs +493 -0
- package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +427 -0
- package/esm2020/src/app/core/services/storage/entity-store.class.mjs +449 -0
- package/esm2020/src/app/core/services/testing/referential-filter.model.mjs +23 -0
- package/esm2020/src/app/core/services/testing/referential.validator.mjs +45 -0
- package/esm2020/src/app/core/services/validator/account.validator.mjs +52 -0
- package/esm2020/src/app/core/services/validator/base.validator.class.mjs +47 -0
- package/esm2020/src/app/core/services/validator/local-settings.validator.mjs +66 -0
- package/esm2020/src/app/core/services/validator/user-settings.validator.mjs +29 -0
- package/esm2020/src/app/core/settings/settings.module.mjs +34 -0
- package/esm2020/src/app/core/settings/settings.page.mjs +293 -0
- package/esm2020/src/app/core/table/actions-column.component.mjs +96 -0
- package/esm2020/src/app/core/table/async-table.class.mjs +1619 -0
- package/esm2020/src/app/core/table/entities-async-table-datasource.class.mjs +382 -0
- package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +399 -0
- package/esm2020/src/app/core/table/memory-table.class.mjs +53 -0
- package/esm2020/src/app/core/table/table-select-columns.component.mjs +43 -0
- package/esm2020/src/app/core/table/table.class.mjs +1658 -0
- package/esm2020/src/app/core/table/table.model.mjs +12 -0
- package/esm2020/src/app/core/table/table.module.mjs +40 -0
- package/esm2020/src/app/core/table/table.utils.mjs +13 -0
- package/esm2020/src/app/core/table/testing/table.testing.mjs +265 -0
- package/esm2020/src/app/core/table/testing/table.testing.module.mjs +38 -0
- package/esm2020/src/app/shared/alerts.mjs +238 -0
- package/esm2020/src/app/shared/audio/audio.mjs +201 -0
- package/esm2020/src/app/shared/audio/audio.testing.mjs +31 -0
- package/esm2020/src/app/shared/audio/audio.testing.module.mjs +45 -0
- package/esm2020/src/app/shared/capacitor/keyboard.mjs +40 -0
- package/esm2020/src/app/shared/capacitor/plugins.mjs +9 -0
- package/esm2020/src/app/shared/constants.mjs +10 -0
- package/esm2020/src/app/shared/dates.mjs +142 -0
- package/esm2020/src/app/shared/debug/debug.component.mjs +39 -0
- package/esm2020/src/app/shared/debug/debug.module.mjs +44 -0
- package/esm2020/src/app/shared/directives/autofocus.directive.mjs +92 -0
- package/esm2020/src/app/shared/directives/autotitle.directive.mjs +30 -0
- package/esm2020/src/app/shared/directives/directives.module.mjs +43 -0
- package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +53 -0
- package/esm2020/src/app/shared/directives/ng-var.directive.mjs +31 -0
- package/esm2020/src/app/shared/directives/resizable/resizable.component.mjs +59 -0
- package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +40 -0
- package/esm2020/src/app/shared/directives/resizable/resizable.module.mjs +17 -0
- package/esm2020/src/app/shared/events.mjs +64 -0
- package/esm2020/src/app/shared/file/csv.utils.mjs +74 -0
- package/esm2020/src/app/shared/file/file.service.mjs +117 -0
- package/esm2020/src/app/shared/file/file.utils.mjs +113 -0
- package/esm2020/src/app/shared/file/images.utils.mjs +161 -0
- package/esm2020/src/app/shared/file/json.utils.mjs +33 -0
- package/esm2020/src/app/shared/file/uri.utils.mjs +23 -0
- package/{esm2015/src/app/shared/focusable.js → esm2020/src/app/shared/focusable.mjs} +0 -0
- package/esm2020/src/app/shared/form/field.component.mjs +244 -0
- package/{esm2015/src/app/shared/form/field.model.js → esm2020/src/app/shared/form/field.model.mjs} +1 -1
- package/esm2020/src/app/shared/form/loading-spinner.mjs +36 -0
- package/esm2020/src/app/shared/forms.mjs +391 -0
- package/esm2020/src/app/shared/functions.mjs +462 -0
- package/esm2020/src/app/shared/geolocation/geolocation.utils.mjs +41 -0
- package/{esm2015/src/app/shared/gesture/gesture-config.js → esm2020/src/app/shared/gesture/gesture-config.mjs} +7 -5
- package/esm2020/src/app/shared/gesture/hammer.utils.mjs +2 -0
- package/{esm2015/src/app/shared/graph/colors.utils.js → esm2020/src/app/shared/graph/colors.utils.mjs} +1 -1
- package/esm2020/src/app/shared/graph/graph-colors.mjs +208 -0
- package/esm2020/src/app/shared/guard/component-dirty.guard.mjs +57 -0
- package/esm2020/src/app/shared/help/help.modal.mjs +53 -0
- package/esm2020/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +23 -0
- package/esm2020/src/app/shared/hotkeys/hotkeys.service.mjs +84 -0
- package/esm2020/src/app/shared/hotkeys/shared-hotkeys.module.mjs +42 -0
- package/esm2020/src/app/shared/http/http.utils.mjs +52 -0
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +355 -0
- package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +58 -0
- package/esm2020/src/app/shared/image/gallery/testing/gallegry.model.testing.mjs +27 -0
- package/esm2020/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +89 -0
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +39 -0
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +56 -0
- package/esm2020/src/app/shared/image/image.model.mjs +2 -0
- package/esm2020/src/app/shared/image/image.module.mjs +29 -0
- package/esm2020/src/app/shared/image/image.service.mjs +98 -0
- package/{esm2015/src/app/shared/inputs.js → esm2020/src/app/shared/inputs.mjs} +4 -4
- package/esm2020/src/app/shared/interceptors/progess.interceptor.mjs +27 -0
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.config.mjs +47 -0
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +905 -0
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +78 -0
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.utils.mjs +19 -0
- package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +209 -0
- package/esm2020/src/app/shared/material/badge/badge.directive.mjs +176 -0
- package/esm2020/src/app/shared/material/badge/badge.module.mjs +32 -0
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +28 -0
- package/esm2020/src/app/shared/material/boolean/boolean.module.mjs +68 -0
- package/esm2020/src/app/shared/material/boolean/material.boolean.mjs +253 -0
- package/esm2020/src/app/shared/material/chips/chips.module.mjs +76 -0
- package/esm2020/src/app/shared/material/chips/material.chips.mjs +697 -0
- package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +143 -0
- package/esm2020/src/app/shared/material/datetime/datetime.module.mjs +91 -0
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +388 -0
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +385 -0
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +436 -0
- package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +108 -0
- package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +110 -0
- package/esm2020/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +103 -0
- package/esm2020/src/app/shared/material/duration/duration.module.mjs +67 -0
- package/{esm2015/src/app/shared/material/duration/duration.utils.js → esm2020/src/app/shared/material/duration/duration.utils.mjs} +0 -0
- package/esm2020/src/app/shared/material/duration/material.duration.mjs +257 -0
- package/esm2020/src/app/shared/material/latlong/latlong.utils.mjs +266 -0
- package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +381 -0
- package/esm2020/src/app/shared/material/latlong/material.latlong.module.mjs +67 -0
- package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +102 -0
- package/{esm2015/src/app/shared/material/material.animations.js → esm2020/src/app/shared/material/material.animations.mjs} +1 -1
- package/esm2020/src/app/shared/material/material.module.mjs +224 -0
- package/esm2020/src/app/shared/material/material.testing.module.mjs +168 -0
- package/esm2020/src/app/shared/material/numpad/numpad.append-to-input.directive.mjs +98 -0
- package/esm2020/src/app/shared/material/numpad/numpad.component.mjs +80 -0
- package/esm2020/src/app/shared/material/numpad/numpad.container.mjs +190 -0
- package/esm2020/src/app/shared/material/numpad/numpad.content.mjs +17 -0
- package/esm2020/src/app/shared/material/numpad/numpad.directive.mjs +162 -0
- package/esm2020/src/app/shared/material/numpad/numpad.dom-service.mjs +37 -0
- package/{esm2015/src/app/shared/material/numpad/numpad.model.js → esm2020/src/app/shared/material/numpad/numpad.model.mjs} +1 -1
- package/esm2020/src/app/shared/material/numpad/numpad.module.mjs +60 -0
- package/esm2020/src/app/shared/material/numpad/testing/numpad.test.mjs +46 -0
- package/esm2020/src/app/shared/material/paginator/material.paginator-i18n.mjs +42 -0
- package/esm2020/src/app/shared/material/stepper/material.stepper-i18n.mjs +22 -0
- package/esm2020/src/app/shared/material/swipe/material.swipe.mjs +334 -0
- package/esm2020/src/app/shared/material/swipe/swipe.module.mjs +51 -0
- package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +64 -0
- package/esm2020/src/app/shared/modules.mjs +11 -0
- package/esm2020/src/app/shared/observables.mjs +103 -0
- package/esm2020/src/app/shared/pipes/arrays.pipe.mjs +135 -0
- package/esm2020/src/app/shared/pipes/colors.pipe.mjs +23 -0
- package/esm2020/src/app/shared/pipes/date-diff-duration.pipe.mjs +48 -0
- package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +66 -0
- package/{esm2015/src/app/shared/pipes/date-from-now.pipe.js → esm2020/src/app/shared/pipes/date-from-now.pipe.mjs} +13 -12
- package/{esm2015/src/app/shared/pipes/duration.pipe.js → esm2020/src/app/shared/pipes/duration.pipe.mjs} +13 -12
- package/esm2020/src/app/shared/pipes/file-size.pipe.mjs +62 -0
- package/esm2020/src/app/shared/pipes/form.pipes.mjs +187 -0
- package/esm2020/src/app/shared/pipes/highlight.pipe.mjs +48 -0
- package/esm2020/src/app/shared/pipes/latlong-format.pipe.mjs +46 -0
- package/esm2020/src/app/shared/pipes/maps.pipe.mjs +63 -0
- package/esm2020/src/app/shared/pipes/math.pipes.mjs +59 -0
- package/esm2020/src/app/shared/pipes/ng-init.pipe.mjs +21 -0
- package/esm2020/src/app/shared/pipes/number-format.pipe.mjs +30 -0
- package/esm2020/src/app/shared/pipes/pipes.module.mjs +218 -0
- package/esm2020/src/app/shared/pipes/property.pipes.mjs +93 -0
- package/esm2020/src/app/shared/pipes/string.pipes.mjs +95 -0
- package/esm2020/src/app/shared/pipes/translate-context.pipe.mjs +43 -0
- package/esm2020/src/app/shared/platforms.mjs +43 -0
- package/esm2020/src/app/shared/services/entity-service.class.mjs +7 -0
- package/esm2020/src/app/shared/services/job.utils.mjs +92 -0
- package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +337 -0
- package/esm2020/src/app/shared/services/progress-bar.service.mjs +33 -0
- package/esm2020/src/app/shared/services/startable-observable-service.class.mjs +119 -0
- package/esm2020/src/app/shared/services/startable-service.class.mjs +105 -0
- package/esm2020/src/app/shared/services/storage/storage.service.mjs +132 -0
- package/esm2020/src/app/shared/services/storage/storage.utils.mjs +13 -0
- package/esm2020/src/app/shared/services/translate-context.service.mjs +81 -0
- package/esm2020/src/app/shared/services/validator-service.class.mjs +2 -0
- package/esm2020/src/app/shared/services.mjs +62 -0
- package/esm2020/src/app/shared/shared-routing.module.mjs +63 -0
- package/esm2020/src/app/shared/shared.module.mjs +207 -0
- package/esm2020/src/app/shared/shared.testing.module.mjs +76 -0
- package/esm2020/src/app/shared/testing/observable.test.mjs +95 -0
- package/esm2020/src/app/shared/testing/tests.page.mjs +33 -0
- package/esm2020/src/app/shared/toast/toast.testing.mjs +51 -0
- package/esm2020/src/app/shared/toast/toast.testing.module.mjs +45 -0
- package/esm2020/src/app/shared/toast/toasts.mjs +144 -0
- package/esm2020/src/app/shared/toolbar/modal-toolbar.mjs +58 -0
- package/esm2020/src/app/shared/toolbar/toolbar.mjs +249 -0
- package/esm2020/src/app/shared/toolbar/toolbar.module.mjs +53 -0
- package/esm2020/src/app/shared/types.mjs +2 -0
- package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +57 -0
- package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +45 -0
- package/esm2020/src/app/shared/upload-file/upload-file-popover.component.mjs +97 -0
- package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +204 -0
- package/esm2020/src/app/shared/upload-file/upload-file.model.mjs +20 -0
- package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +104 -0
- package/esm2020/src/app/shared/validator/validators.mjs +543 -0
- package/esm2020/src/app/shared/version/versions.mjs +81 -0
- package/esm2020/src/app/social/job/job.module.mjs +35 -0
- package/esm2020/src/app/social/job/progression/job-progression.icon.mjs +213 -0
- package/esm2020/src/app/social/job/progression/job-progression.list.mjs +22 -0
- package/esm2020/src/app/social/job/progression/job-progression.model.mjs +23 -0
- package/esm2020/src/app/social/job/progression/job-progression.service.mjs +71 -0
- package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +52 -0
- package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +55 -0
- package/esm2020/src/app/social/job/testing/job.testing.module.mjs +35 -0
- package/esm2020/src/app/social/message/message.form.mjs +81 -0
- package/esm2020/src/app/social/message/message.modal.mjs +93 -0
- package/esm2020/src/app/social/message/message.model.mjs +65 -0
- package/esm2020/src/app/social/message/message.module.mjs +35 -0
- package/esm2020/src/app/social/message/message.service.mjs +84 -0
- package/esm2020/src/app/social/social.errors.mjs +10 -0
- package/esm2020/src/app/social/social.module.mjs +47 -0
- package/esm2020/src/app/social/social.testing.module.mjs +51 -0
- package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +108 -0
- package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +242 -0
- package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +229 -0
- package/esm2020/src/app/social/user-event/testing/user-event.testing.model.mjs +112 -0
- package/esm2020/src/app/social/user-event/testing/user-event.testing.module.mjs +35 -0
- package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +111 -0
- package/esm2020/src/app/social/user-event/user-event.model.mjs +2 -0
- package/esm2020/src/app/social/user-event/user-event.module.mjs +39 -0
- package/esm2020/src/app/social/user-event/user-event.service.mjs +487 -0
- package/esm2020/src/environments/environment.class.mjs +5 -0
- package/esm2020/src/environments/environment.mjs +86 -0
- package/esm2020/sumaris-net.ngx-components.mjs +5 -0
- package/fesm2015/sumaris-net.ngx-components.mjs +36563 -0
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -0
- package/fesm2020/sumaris-net.ngx-components.mjs +35734 -0
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +34 -32
- package/public_api.d.ts +137 -30
- package/resources/README.md +7 -0
- package/src/app/admin/admin-routing.module.d.ts +7 -0
- package/src/app/admin/admin.module.d.ts +7 -0
- package/src/app/admin/services/person.service.d.ts +5 -1
- package/src/app/admin/services/validator/person.validator.d.ts +8 -5
- package/src/app/admin/users/users.d.ts +44 -0
- package/src/app/admin/users/users.module.d.ts +13 -0
- package/src/app/core/about/{modal-about.d.ts → about.modal.d.ts} +3 -0
- package/src/app/core/about/about.module.d.ts +10 -0
- package/src/app/core/account/account.module.d.ts +11 -0
- package/src/app/core/account/{account.d.ts → account.page.d.ts} +23 -10
- package/src/app/core/auth/auth.form.d.ts +36 -0
- package/src/app/core/auth/auth.modal.d.ts +24 -0
- package/src/app/core/auth/auth.module.d.ts +11 -0
- package/src/app/core/core.module.d.ts +27 -0
- package/src/app/core/core.testing.module.d.ts +14 -0
- package/src/app/core/form/{form-buttons-bar.component.d.ts → buttons/form-buttons-bar.component.d.ts} +7 -2
- package/src/app/core/form/buttons/form-buttons-bar.module.d.ts +9 -0
- package/src/app/core/form/{editor.class.d.ts → entity/editor.class.d.ts} +84 -22
- package/src/app/core/form/entity/entity-editor-modal.class.d.ts +129 -0
- package/src/app/core/form/{entity-editor.class.d.ts → entity/entity-editor.class.d.ts} +54 -29
- package/src/app/core/form/entity/entity-metadata.component.d.ts +13 -0
- package/src/app/core/form/entity/entity.module.d.ts +10 -0
- package/src/app/core/form/form.class.d.ts +57 -30
- package/src/app/core/form/form.module.d.ts +13 -0
- package/src/app/core/form/form.utils.d.ts +123 -114
- package/src/app/core/form/{list.form.d.ts → list/list.form.d.ts} +14 -11
- package/src/app/core/form/list/list.module.d.ts +9 -0
- package/src/app/core/form/properties/properties.form.d.ts +43 -0
- package/src/app/core/form/properties/properties.module.d.ts +9 -0
- package/src/app/core/form/properties/property.validator.d.ts +13 -0
- package/src/app/core/form/properties/testing/properties-form.test.d.ts +19 -0
- package/src/app/core/form/properties/testing/properties-form.testing.module.d.ts +12 -0
- package/src/app/core/form/text-popover/testing/text-popover.testing.d.ts +10 -0
- package/src/app/core/form/text-popover/testing/text-popover.testing.module.d.ts +11 -0
- package/src/app/core/form/text-popover/text-form.component.d.ts +32 -0
- package/src/app/core/form/text-popover/text-popover.component.d.ts +45 -0
- package/src/app/core/form/text-popover/text-popover.module.d.ts +10 -0
- package/src/app/core/graphql/graphql.module.d.ts +5 -0
- package/src/app/core/graphql/graphql.service.d.ts +16 -5
- package/src/app/core/graphql/graphql.utils.d.ts +12 -1
- package/src/app/core/home/home.d.ts +9 -4
- package/src/app/core/home/home.module.d.ts +12 -0
- package/src/app/core/icon/icon.component.d.ts +6 -2
- package/src/app/core/icon/icon.module.d.ts +9 -0
- package/src/app/core/install/install-upgrade-card.component.d.ts +7 -9
- package/src/app/core/install/install-upgrade-card.module.d.ts +9 -0
- package/src/app/core/menu/menu.component.d.ts +22 -15
- package/src/app/core/menu/menu.model.d.ts +2 -0
- package/src/app/core/menu/menu.module.d.ts +8 -0
- package/src/app/core/menu/menu.service.d.ts +18 -6
- package/src/app/core/offline/update-offline-mode-card.component.d.ts +11 -0
- package/src/app/core/offline/update-offline-mode-card.module.d.ts +9 -0
- package/src/app/core/peer/select-peer.modal.d.ts +25 -8
- package/src/app/core/peer/select-peer.module.d.ts +11 -0
- package/src/app/core/register/{confirm/confirm.d.ts → register-confirm.page.d.ts} +6 -3
- package/src/app/core/register/{form/form-register.d.ts → register.form.d.ts} +15 -12
- package/src/app/core/register/{modal/modal-register.d.ts → register.modal.d.ts} +4 -1
- package/src/app/core/register/register.module.d.ts +12 -0
- package/src/app/core/services/account.service.d.ts +34 -13
- package/src/app/core/services/auth-guard.service.d.ts +3 -0
- package/src/app/core/services/base-entity-service.class.d.ts +10 -19
- package/src/app/core/services/base-graphql-service.class.d.ts +13 -9
- package/src/app/core/services/config/core.config.d.ts +25 -24
- package/src/app/core/services/config.service.d.ts +9 -3
- package/src/app/core/services/crypto.service.d.ts +26 -18
- package/src/app/core/services/errors.d.ts +1 -1
- package/src/app/core/services/local-settings.service.d.ts +15 -7
- package/src/app/core/services/model/config.model.d.ts +1 -0
- package/src/app/core/services/model/entity.decorators.d.ts +1 -9
- package/src/app/core/services/model/entity.model.d.ts +4 -1
- package/src/app/core/services/model/filter.model.d.ts +13 -2
- package/src/app/core/services/model/referential.model.d.ts +20 -14
- package/src/app/core/services/model/settings.model.d.ts +0 -1
- package/src/app/core/services/network.service.d.ts +34 -22
- package/src/app/core/services/network.types.d.ts +5 -0
- package/src/app/core/services/network.utils.d.ts +16 -0
- package/src/app/core/services/pipes/account.pipes.d.ts +7 -0
- package/src/app/core/services/pipes/department-to-string.pipe.d.ts +4 -0
- package/src/app/core/services/pipes/person-to-string.pipe.d.ts +4 -0
- package/src/app/core/services/pipes/usage-mode.pipes.d.ts +7 -0
- package/src/app/core/services/platform.service.d.ts +40 -27
- package/src/app/core/services/storage/entities-storage.service.d.ts +16 -9
- package/src/app/core/services/storage/entity-store.class.d.ts +6 -5
- package/src/app/core/services/testing/referential-filter.model.d.ts +9 -0
- package/src/app/core/services/testing/referential.validator.d.ts +22 -0
- package/src/app/core/services/validator/account.validator.d.ts +6 -3
- package/src/app/core/services/validator/base.validator.class.d.ts +9 -6
- package/src/app/core/services/validator/local-settings.validator.d.ts +8 -5
- package/src/app/core/services/validator/user-settings.validator.d.ts +6 -3
- package/src/app/core/settings/settings.module.d.ts +10 -0
- package/src/app/core/settings/settings.page.d.ts +13 -12
- package/src/app/core/table/actions-column.component.d.ts +4 -1
- package/src/app/core/table/async-table.class.d.ts +368 -0
- package/src/app/core/table/entities-async-table-datasource.class.d.ts +80 -0
- package/src/app/core/table/entities-table-datasource.class.d.ts +59 -36
- package/src/app/core/table/memory-table.class.d.ts +5 -3
- package/src/app/core/table/table-select-columns.component.d.ts +4 -5
- package/src/app/core/table/table.class.d.ts +67 -70
- package/src/app/core/table/table.model.d.ts +26 -0
- package/src/app/core/table/table.module.d.ts +10 -0
- package/src/app/core/table/table.utils.d.ts +2 -1
- package/src/app/core/table/testing/table.testing.d.ts +51 -0
- package/src/app/core/table/testing/table.testing.module.d.ts +11 -0
- package/src/app/shared/alerts.d.ts +4 -4
- package/src/app/shared/audio/audio.d.ts +20 -11
- package/src/app/shared/audio/audio.testing.d.ts +13 -0
- package/src/app/shared/audio/audio.testing.module.d.ts +11 -0
- package/src/app/shared/capacitor/keyboard.d.ts +16 -0
- package/src/app/shared/capacitor/plugins.d.ts +7 -0
- package/src/app/shared/constants.d.ts +2 -0
- package/src/app/shared/dates.d.ts +25 -4
- package/src/app/shared/debug/debug.component.d.ts +13 -0
- package/src/app/shared/debug/debug.module.d.ts +12 -0
- package/src/app/shared/directives/autofocus.directive.d.ts +11 -9
- package/src/app/shared/directives/autotitle.directive.d.ts +10 -0
- package/src/app/shared/directives/directives.module.d.ts +10 -0
- package/src/app/shared/directives/drag-and-drop.directive.d.ts +17 -0
- package/src/app/shared/directives/ng-var.directive.d.ts +12 -0
- package/src/app/shared/directives/resizable/resizable.component.d.ts +21 -0
- package/src/app/shared/directives/resizable/resizable.directive.d.ts +12 -0
- package/src/app/shared/directives/resizable/resizable.module.d.ts +8 -0
- package/src/app/shared/events.d.ts +6 -6
- package/src/app/shared/file/csv.utils.d.ts +19 -0
- package/src/app/shared/file/file.service.d.ts +8 -5
- package/src/app/shared/file/file.utils.d.ts +20 -0
- package/src/app/shared/file/images.utils.d.ts +19 -0
- package/src/app/shared/file/json.utils.d.ts +11 -0
- package/src/app/shared/file/uri.utils.d.ts +7 -0
- package/src/app/shared/form/field.component.d.ts +12 -3
- package/src/app/shared/form/field.model.d.ts +7 -6
- package/src/app/shared/form/loading-spinner.d.ts +3 -0
- package/src/app/shared/forms.d.ts +89 -0
- package/src/app/shared/functions.d.ts +21 -13
- package/src/app/shared/geolocation/geolocation.utils.d.ts +11 -0
- package/src/app/shared/gesture/gesture-config.d.ts +3 -0
- package/src/app/shared/gesture/hammer.utils.d.ts +11 -11
- package/src/app/shared/graph/graph-colors.d.ts +8 -8
- package/src/app/shared/guard/component-dirty.guard.d.ts +3 -0
- package/src/app/shared/help/help.modal.d.ts +7 -4
- package/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.d.ts +3 -0
- package/src/app/shared/hotkeys/hotkeys.service.d.ts +7 -3
- package/src/app/shared/hotkeys/shared-hotkeys.module.d.ts +9 -0
- package/src/app/shared/http/http.utils.d.ts +14 -1
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +101 -0
- package/src/app/shared/image/gallery/image-gallery.module.d.ts +14 -0
- package/src/app/shared/image/gallery/testing/gallegry.model.testing.d.ts +12 -0
- package/src/app/shared/image/gallery/testing/gallery.service.testing.d.ts +33 -0
- package/src/app/shared/image/gallery/testing/gallery.testing.d.ts +16 -0
- package/src/app/shared/image/gallery/testing/gallery.testing.module.d.ts +12 -0
- package/src/app/shared/image/image.model.d.ts +5 -0
- package/src/app/shared/image/image.module.d.ts +8 -0
- package/src/app/shared/image/image.service.d.ts +32 -0
- package/src/app/shared/inputs.d.ts +3 -3
- package/src/app/shared/interceptors/progess.interceptor.d.ts +2 -2
- package/src/app/shared/material/autocomplete/material.autocomplete.config.d.ts +36 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +69 -77
- package/src/app/shared/material/autocomplete/material.autocomplete.module.d.ts +19 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.utils.d.ts +4 -0
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +24 -17
- package/src/app/shared/material/badge/badge.directive.d.ts +30 -0
- package/src/app/shared/material/badge/badge.module.d.ts +10 -0
- package/src/app/shared/material/badge/badge.test.d.ts +13 -0
- package/src/app/shared/material/boolean/boolean.module.d.ts +17 -0
- package/src/app/shared/material/boolean/material.boolean.d.ts +11 -10
- package/src/app/shared/material/chips/chips.module.d.ts +20 -1
- package/src/app/shared/material/chips/material.chips.d.ts +52 -19
- package/src/app/shared/material/chips/testing/chips.test.d.ts +12 -7
- package/src/app/shared/material/datetime/datetime.module.d.ts +22 -0
- package/src/app/shared/material/datetime/material.date.d.ts +45 -38
- package/src/app/shared/material/datetime/material.dateshort.d.ts +47 -38
- package/src/app/shared/material/datetime/material.datetime.d.ts +40 -39
- package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +12 -9
- package/src/app/shared/material/datetime/testing/mat-date.test.d.ts +30 -0
- package/src/app/shared/material/datetime/testing/mat-dateshort.test.d.ts +29 -0
- package/src/app/shared/material/duration/duration.module.d.ts +16 -0
- package/src/app/shared/material/duration/material.duration.d.ts +14 -10
- package/src/app/shared/material/latlong/latlong.utils.d.ts +2 -2
- package/src/app/shared/material/latlong/material.latlong.d.ts +27 -23
- package/src/app/shared/material/latlong/material.latlong.module.d.ts +17 -0
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +13 -7
- package/src/app/shared/material/material.module.d.ts +43 -0
- package/src/app/shared/material/material.testing.module.d.ts +25 -0
- package/src/app/shared/material/numpad/numpad.append-to-input.directive.d.ts +3 -0
- package/src/app/shared/material/numpad/numpad.component.d.ts +4 -1
- package/src/app/shared/material/numpad/numpad.container.d.ts +5 -2
- package/src/app/shared/material/numpad/numpad.content.d.ts +3 -0
- package/src/app/shared/material/numpad/numpad.directive.d.ts +4 -1
- package/src/app/shared/material/numpad/numpad.dom-service.d.ts +3 -0
- package/src/app/shared/material/numpad/numpad.model.d.ts +1 -1
- package/src/app/shared/material/numpad/numpad.module.d.ts +14 -0
- package/src/app/shared/material/numpad/testing/numpad.test.d.ts +13 -0
- package/src/app/shared/material/paginator/material.paginator-i18n.d.ts +3 -0
- package/src/app/shared/material/stepper/material.stepper-i18n.d.ts +3 -0
- package/src/app/shared/material/swipe/material.swipe.d.ts +12 -8
- package/src/app/shared/material/swipe/swipe.module.d.ts +13 -0
- package/src/app/shared/material/swipe/testing/swipe.test.d.ts +11 -9
- package/src/app/shared/modules.d.ts +8 -0
- package/src/app/shared/observables.d.ts +18 -10
- package/src/app/shared/pipes/arrays.pipe.d.ts +27 -2
- package/src/app/shared/pipes/colors.pipe.d.ts +9 -0
- package/src/app/shared/pipes/date-diff-duration.pipe.d.ts +10 -2
- package/src/app/shared/pipes/date-format.pipe.d.ts +25 -9
- package/src/app/shared/pipes/date-from-now.pipe.d.ts +4 -0
- package/src/app/shared/pipes/duration.pipe.d.ts +4 -0
- package/src/app/shared/pipes/file-size.pipe.d.ts +3 -0
- package/src/app/shared/pipes/form.pipes.d.ts +43 -3
- package/src/app/shared/pipes/highlight.pipe.d.ts +4 -0
- package/src/app/shared/pipes/latlong-format.pipe.d.ts +13 -4
- package/src/app/shared/pipes/maps.pipe.d.ts +10 -0
- package/src/app/shared/pipes/math.pipes.d.ts +10 -0
- package/src/app/shared/pipes/ng-init.pipe.d.ts +3 -0
- package/src/app/shared/pipes/number-format.pipe.d.ts +7 -1
- package/src/app/shared/pipes/pipes.module.d.ts +24 -0
- package/src/app/shared/pipes/property.pipes.d.ts +26 -0
- package/src/app/shared/pipes/string.pipes.d.ts +24 -0
- package/src/app/shared/pipes/translate-context.pipe.d.ts +8 -1
- package/src/app/shared/platforms.d.ts +8 -0
- package/src/app/shared/services/entity-service.class.d.ts +28 -15
- package/src/app/shared/services/job.utils.d.ts +4 -2
- package/src/app/shared/services/memory-entity-service.class.d.ts +31 -10
- package/src/app/shared/services/progress-bar.service.d.ts +15 -4
- package/src/app/shared/services/startable-observable-service.class.d.ts +33 -0
- package/src/app/shared/services/startable-service.class.d.ts +13 -9
- package/src/app/shared/services/storage/storage.service.d.ts +23 -0
- package/src/app/shared/services/storage/storage.utils.d.ts +19 -0
- package/src/app/shared/services/translate-context.service.d.ts +3 -0
- package/src/app/shared/services/validator-service.class.d.ts +2 -2
- package/src/app/shared/services.d.ts +9 -0
- package/src/app/shared/shared-routing.module.d.ts +7 -0
- package/src/app/shared/shared.module.d.ts +24 -0
- package/src/app/shared/shared.testing.module.d.ts +14 -0
- package/src/app/shared/testing/observable.test.d.ts +25 -0
- package/src/app/shared/{material/testing/material.testing.page.d.ts → testing/tests.page.d.ts} +6 -2
- package/src/app/shared/toast/toast.testing.d.ts +15 -0
- package/src/app/shared/toast/toast.testing.module.d.ts +11 -0
- package/src/app/shared/{toasts.d.ts → toast/toasts.d.ts} +5 -2
- package/src/app/shared/toolbar/modal-toolbar.d.ts +5 -2
- package/src/app/shared/toolbar/toolbar.d.ts +22 -10
- package/src/app/shared/toolbar/toolbar.module.d.ts +15 -0
- package/src/app/shared/types.d.ts +4 -0
- package/src/app/shared/upload-file/testing/upload-file.testing.d.ts +20 -0
- package/src/app/shared/upload-file/testing/upload-file.testing.module.d.ts +11 -0
- package/src/app/shared/upload-file/upload-file-popover.component.d.ts +39 -0
- package/src/app/shared/upload-file/upload-file.component.d.ts +48 -0
- package/src/app/shared/upload-file/upload-file.model.d.ts +30 -0
- package/src/app/shared/validator/form-error-adapter.class.d.ts +6 -1
- package/src/app/shared/validator/validators.d.ts +47 -11
- package/src/app/shared/version/versions.d.ts +2 -0
- package/src/app/social/job/job.module.d.ts +11 -0
- package/src/app/social/job/progression/job-progression.icon.d.ts +47 -0
- package/src/app/social/job/progression/job-progression.list.d.ts +15 -0
- package/src/app/social/job/progression/job-progression.model.d.ts +11 -0
- package/src/app/social/job/progression/job-progression.service.d.ts +34 -0
- package/src/app/social/job/testing/job-progression.testing.d.ts +17 -0
- package/src/app/social/job/testing/job-progression.testing.service.d.ts +17 -0
- package/src/app/social/job/testing/job.testing.module.d.ts +11 -0
- package/src/app/social/message/message.form.d.ts +30 -0
- package/src/app/social/message/message.modal.d.ts +39 -0
- package/src/app/social/message/message.model.d.ts +31 -0
- package/src/app/social/message/message.module.d.ts +11 -0
- package/src/app/social/message/message.service.d.ts +27 -0
- package/src/app/social/social.errors.d.ts +9 -0
- package/src/app/social/social.module.d.ts +18 -2
- package/src/app/social/social.testing.module.d.ts +13 -0
- package/src/app/social/user-event/notification/user-event-notification.icon.d.ts +29 -0
- package/src/app/social/user-event/notification/user-event-notification.list.d.ts +67 -0
- package/src/app/social/user-event/testing/user-event.testing.d.ts +34 -0
- package/src/app/social/user-event/testing/user-event.testing.model.d.ts +44 -0
- package/src/app/social/user-event/testing/user-event.testing.module.d.ts +11 -0
- package/src/app/social/user-event/testing/user-event.testing.service.d.ts +41 -0
- package/src/app/social/user-event/user-event.model.d.ts +45 -0
- package/src/app/social/user-event/user-event.module.d.ts +12 -0
- package/src/app/social/user-event/user-event.service.d.ts +124 -0
- package/src/assets/audio/beep-notification.mp3 +0 -0
- package/src/assets/i18n/en-US.json +83 -18
- package/src/assets/i18n/en.json +83 -18
- package/src/assets/i18n/fr.json +95 -21
- package/src/assets/manifest.json +5 -5
- package/src/environments/environment.class.d.ts +12 -1
- package/src/environments/environment.d.ts +1 -1
- package/src/theme/_icons.scss +1 -1
- package/src/theme/_ionic.globals.scss +6 -1
- package/src/theme/_material.globals.scss +32 -32
- package/src/theme/_material.scss +32 -6
- package/src/theme/_mixins.scss +6 -4
- package/src/theme/_ngx-components.globals.scss +1 -0
- package/src/theme/_ngx-components.scss +222 -39
- package/src/theme/_print.scss +24 -0
- package/src/theme/_responsive.scss +12 -3
- package/bundles/sumaris-net.ngx-components.umd.js +0 -28721
- package/bundles/sumaris-net.ngx-components.umd.js.map +0 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +0 -25
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +0 -1
- package/esm2015/public_api.js +0 -183
- package/esm2015/src/app/admin/admin-routing.module.js +0 -32
- package/esm2015/src/app/admin/admin.module.js +0 -33
- package/esm2015/src/app/admin/services/errors.js +0 -6
- package/esm2015/src/app/admin/services/filter/person.filter.js +0 -59
- package/esm2015/src/app/admin/services/person.service.js +0 -179
- package/esm2015/src/app/admin/services/validator/person.validator.js +0 -37
- package/esm2015/src/app/admin/users/list/users.js +0 -196
- package/esm2015/src/app/core/about/modal-about.js +0 -63
- package/esm2015/src/app/core/account/account.js +0 -193
- package/esm2015/src/app/core/auth/form/form-auth.js +0 -126
- package/esm2015/src/app/core/auth/modal/modal-auth.js +0 -66
- package/esm2015/src/app/core/core.module.js +0 -114
- package/esm2015/src/app/core/form/editor.class.js +0 -559
- package/esm2015/src/app/core/form/entity-editor.class.js +0 -617
- package/esm2015/src/app/core/form/entity-metadata.component.js +0 -22
- package/esm2015/src/app/core/form/form-buttons-bar.component.js +0 -60
- package/esm2015/src/app/core/form/form.class.js +0 -279
- package/esm2015/src/app/core/form/form.utils.js +0 -599
- package/esm2015/src/app/core/form/list.form.js +0 -219
- package/esm2015/src/app/core/form/properties.form.js +0 -119
- package/esm2015/src/app/core/graphql/graphql.module.js +0 -18
- package/esm2015/src/app/core/graphql/graphql.service.js +0 -733
- package/esm2015/src/app/core/graphql/graphql.utils.js +0 -107
- package/esm2015/src/app/core/home/home.js +0 -263
- package/esm2015/src/app/core/icon/icon.component.js +0 -29
- package/esm2015/src/app/core/install/install-upgrade-card.component.js +0 -388
- package/esm2015/src/app/core/menu/menu.component.js +0 -279
- package/esm2015/src/app/core/menu/menu.model.js +0 -33
- package/esm2015/src/app/core/menu/menu.module.js +0 -28
- package/esm2015/src/app/core/menu/menu.service.js +0 -28
- package/esm2015/src/app/core/peer/select-peer.modal.js +0 -134
- package/esm2015/src/app/core/register/confirm/confirm.js +0 -86
- package/esm2015/src/app/core/register/form/form-register.js +0 -172
- package/esm2015/src/app/core/register/modal/modal-register.js +0 -55
- package/esm2015/src/app/core/services/account.service.js +0 -1101
- package/esm2015/src/app/core/services/auth-guard.service.js +0 -77
- package/esm2015/src/app/core/services/base-entity-service.class.js +0 -448
- package/esm2015/src/app/core/services/config/core.config.js +0 -162
- package/esm2015/src/app/core/services/config.service.js +0 -377
- package/esm2015/src/app/core/services/crypto.service.js +0 -127
- package/esm2015/src/app/core/services/local-settings.service.js +0 -454
- package/esm2015/src/app/core/services/model/account.model.js +0 -50
- package/esm2015/src/app/core/services/model/config.model.js +0 -89
- package/esm2015/src/app/core/services/model/department.model.js +0 -30
- package/esm2015/src/app/core/services/model/entity.decorators.js +0 -104
- package/esm2015/src/app/core/services/model/entity.model.js +0 -230
- package/esm2015/src/app/core/services/model/filter.model.js +0 -68
- package/esm2015/src/app/core/services/model/peer.model.js +0 -68
- package/esm2015/src/app/core/services/model/person.model.js +0 -81
- package/esm2015/src/app/core/services/model/referential.model.js +0 -149
- package/esm2015/src/app/core/services/model/settings.model.js +0 -75
- package/esm2015/src/app/core/services/network.service.js +0 -581
- package/esm2015/src/app/core/services/network.utils.js +0 -19
- package/esm2015/src/app/core/services/pipes/account.pipes.js +0 -28
- package/esm2015/src/app/core/services/pipes/department-to-string.pipe.js +0 -18
- package/esm2015/src/app/core/services/pipes/person-to-string.pipe.js +0 -18
- package/esm2015/src/app/core/services/pipes/usage-mode.pipes.js +0 -27
- package/esm2015/src/app/core/services/platform.service.js +0 -424
- package/esm2015/src/app/core/services/storage/entities-storage.service.js +0 -445
- package/esm2015/src/app/core/services/storage/entity-store.class.js +0 -458
- package/esm2015/src/app/core/services/validator/account.validator.js +0 -55
- package/esm2015/src/app/core/services/validator/base.validator.class.js +0 -48
- package/esm2015/src/app/core/services/validator/local-settings.validator.js +0 -72
- package/esm2015/src/app/core/services/validator/user-settings.validator.js +0 -30
- package/esm2015/src/app/core/settings/settings.page.js +0 -301
- package/esm2015/src/app/core/table/actions-column.component.js +0 -74
- package/esm2015/src/app/core/table/entities-table-datasource.class.js +0 -326
- package/esm2015/src/app/core/table/memory-table.class.js +0 -64
- package/esm2015/src/app/core/table/table-select-columns.component.js +0 -44
- package/esm2015/src/app/core/table/table.class.js +0 -1552
- package/esm2015/src/app/core/table/table.utils.js +0 -13
- package/esm2015/src/app/shared/alerts.js +0 -251
- package/esm2015/src/app/shared/audio/audio.js +0 -178
- package/esm2015/src/app/shared/colors.utils.js +0 -2
- package/esm2015/src/app/shared/constants.js +0 -6
- package/esm2015/src/app/shared/dates.js +0 -82
- package/esm2015/src/app/shared/directives/autofocus.directive.js +0 -97
- package/esm2015/src/app/shared/directives/directives.module.js +0 -21
- package/esm2015/src/app/shared/events.js +0 -56
- package/esm2015/src/app/shared/file/base64-image-reader.js +0 -141
- package/esm2015/src/app/shared/file/file.service.js +0 -121
- package/esm2015/src/app/shared/form/field.component.js +0 -206
- package/esm2015/src/app/shared/form/loading-spinner.js +0 -24
- package/esm2015/src/app/shared/functions.js +0 -440
- package/esm2015/src/app/shared/gesture/hammer.utils.js +0 -2
- package/esm2015/src/app/shared/graph/graph-colors.js +0 -256
- package/esm2015/src/app/shared/guard/component-dirty.guard.js +0 -61
- package/esm2015/src/app/shared/help/help.modal.js +0 -56
- package/esm2015/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.js +0 -20
- package/esm2015/src/app/shared/hotkeys/hotkeys.service.js +0 -87
- package/esm2015/src/app/shared/hotkeys/shared-hotkeys.module.js +0 -29
- package/esm2015/src/app/shared/http/http.utils.js +0 -23
- package/esm2015/src/app/shared/interceptors/progess.interceptor.js +0 -20
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +0 -711
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.module.js +0 -46
- package/esm2015/src/app/shared/material/autocomplete/testing/autocomplete.test.js +0 -167
- package/esm2015/src/app/shared/material/badge/badge-icon.directive.js +0 -62
- package/esm2015/src/app/shared/material/badge/badge-icon.module.js +0 -23
- package/esm2015/src/app/shared/material/badge/badge-icon.test.js +0 -10
- package/esm2015/src/app/shared/material/boolean/boolean.module.js +0 -41
- package/esm2015/src/app/shared/material/boolean/material.boolean.js +0 -234
- package/esm2015/src/app/shared/material/chips/chips.module.js +0 -45
- package/esm2015/src/app/shared/material/chips/material.chips.js +0 -342
- package/esm2015/src/app/shared/material/chips/testing/chips.test.js +0 -100
- package/esm2015/src/app/shared/material/datetime/datetime.module.js +0 -54
- package/esm2015/src/app/shared/material/datetime/material.date.js +0 -307
- package/esm2015/src/app/shared/material/datetime/material.dateshort.js +0 -315
- package/esm2015/src/app/shared/material/datetime/material.datetime.js +0 -389
- package/esm2015/src/app/shared/material/datetime/testing/mat-date-time.test.js +0 -102
- package/esm2015/src/app/shared/material/duration/duration.module.js +0 -40
- package/esm2015/src/app/shared/material/duration/material.duration.js +0 -245
- package/esm2015/src/app/shared/material/latlong/latlong.utils.js +0 -249
- package/esm2015/src/app/shared/material/latlong/material.latlong.js +0 -345
- package/esm2015/src/app/shared/material/latlong/material.latlong.module.js +0 -41
- package/esm2015/src/app/shared/material/latlong/testing/latlong.test.js +0 -70
- package/esm2015/src/app/shared/material/material.module.js +0 -93
- package/esm2015/src/app/shared/material/numpad/numpad.append-to-input.directive.js +0 -96
- package/esm2015/src/app/shared/material/numpad/numpad.component.js +0 -73
- package/esm2015/src/app/shared/material/numpad/numpad.container.js +0 -149
- package/esm2015/src/app/shared/material/numpad/numpad.content.js +0 -14
- package/esm2015/src/app/shared/material/numpad/numpad.directive.js +0 -148
- package/esm2015/src/app/shared/material/numpad/numpad.dom-service.js +0 -37
- package/esm2015/src/app/shared/material/numpad/numpad.module.js +0 -39
- package/esm2015/src/app/shared/material/paginator/material.paginator-i18n.js +0 -44
- package/esm2015/src/app/shared/material/stepper/material.stepper-i18n.js +0 -24
- package/esm2015/src/app/shared/material/swipe/material.swipe.js +0 -306
- package/esm2015/src/app/shared/material/swipe/swipe.module.js +0 -33
- package/esm2015/src/app/shared/material/swipe/testing/swipe.test.js +0 -68
- package/esm2015/src/app/shared/material/testing/material.testing.module.js +0 -92
- package/esm2015/src/app/shared/material/testing/material.testing.page.js +0 -34
- package/esm2015/src/app/shared/observables.js +0 -68
- package/esm2015/src/app/shared/pipes/arrays.pipe.js +0 -92
- package/esm2015/src/app/shared/pipes/date-diff-duration.pipe.js +0 -46
- package/esm2015/src/app/shared/pipes/date-format.pipe.js +0 -40
- package/esm2015/src/app/shared/pipes/file-size.pipe.js +0 -58
- package/esm2015/src/app/shared/pipes/form.pipes.js +0 -70
- package/esm2015/src/app/shared/pipes/highlight.pipe.js +0 -43
- package/esm2015/src/app/shared/pipes/latlong-format.pipe.js +0 -43
- package/esm2015/src/app/shared/pipes/maps.pipe.js +0 -48
- package/esm2015/src/app/shared/pipes/math.pipes.js +0 -44
- package/esm2015/src/app/shared/pipes/ng-init.pipe.js +0 -18
- package/esm2015/src/app/shared/pipes/number-format.pipe.js +0 -22
- package/esm2015/src/app/shared/pipes/pipes.module.js +0 -100
- package/esm2015/src/app/shared/pipes/properties.pipe.js +0 -20
- package/esm2015/src/app/shared/pipes/string.pipes.js +0 -52
- package/esm2015/src/app/shared/pipes/translate-context.pipe.js +0 -38
- package/esm2015/src/app/shared/services/entity-service.class.js +0 -17
- package/esm2015/src/app/shared/services/job.utils.js +0 -78
- package/esm2015/src/app/shared/services/memory-entity-service.class.js +0 -226
- package/esm2015/src/app/shared/services/progress-bar.service.js +0 -30
- package/esm2015/src/app/shared/services/startable-service.class.js +0 -95
- package/esm2015/src/app/shared/services/storage.utils.js +0 -41
- package/esm2015/src/app/shared/services/translate-context.service.js +0 -83
- package/esm2015/src/app/shared/services/validator-service.class.js +0 -2
- package/esm2015/src/app/shared/shared-routing.module.js +0 -54
- package/esm2015/src/app/shared/shared.module.js +0 -125
- package/esm2015/src/app/shared/shared.testing.module.js +0 -19
- package/esm2015/src/app/shared/toasts.js +0 -119
- package/esm2015/src/app/shared/toolbar/modal-toolbar.js +0 -53
- package/esm2015/src/app/shared/toolbar/toolbar.js +0 -195
- package/esm2015/src/app/shared/types.js +0 -2
- package/esm2015/src/app/shared/validator/form-error-adapter.class.js +0 -75
- package/esm2015/src/app/shared/validator/validators.js +0 -421
- package/esm2015/src/app/shared/version/versions.js +0 -77
- package/esm2015/src/app/social/list/user-events.table.js +0 -159
- package/esm2015/src/app/social/services/errors.js +0 -5
- package/esm2015/src/app/social/services/model/user-event.model.js +0 -46
- package/esm2015/src/app/social/services/social.fragments.js +0 -27
- package/esm2015/src/app/social/services/user-event.service.js +0 -367
- package/esm2015/src/app/social/social.module.js +0 -31
- package/esm2015/src/app/vendor.js +0 -5
- package/esm2015/src/environments/environment.class.js +0 -5
- package/esm2015/src/environments/environment.js +0 -75
- package/esm2015/sumaris-net.ngx-components.js +0 -17
- package/fesm2015/sumaris-net.ngx-components.js +0 -24434
- package/fesm2015/sumaris-net.ngx-components.js.map +0 -1
- package/src/app/admin/services/errors.d.ts +0 -5
- package/src/app/admin/users/list/users.d.ts +0 -49
- package/src/app/core/auth/form/form-auth.d.ts +0 -33
- package/src/app/core/auth/modal/modal-auth.d.ts +0 -14
- package/src/app/core/form/entity-metadata.component.d.ts +0 -10
- package/src/app/core/form/properties.form.d.ts +0 -40
- package/src/app/shared/colors.utils.d.ts +0 -3
- package/src/app/shared/file/base64-image-reader.d.ts +0 -18
- package/src/app/shared/material/badge/badge-icon.directive.d.ts +0 -15
- package/src/app/shared/material/badge/badge-icon.module.d.ts +0 -2
- package/src/app/shared/material/badge/badge-icon.test.d.ts +0 -2
- package/src/app/shared/material/testing/material.testing.module.d.ts +0 -2
- package/src/app/shared/pipes/properties.pipe.d.ts +0 -7
- package/src/app/shared/services/storage.utils.d.ts +0 -13
- package/src/app/social/list/user-events.table.d.ts +0 -59
- package/src/app/social/services/errors.d.ts +0 -4
- package/src/app/social/services/model/user-event.model.d.ts +0 -29
- package/src/app/social/services/social.fragments.d.ts +0 -4
- package/src/app/social/services/user-event.service.d.ts +0 -82
- package/src/app/vendor.d.ts +0 -4
- package/src/assets/manifest.sumaris.json +0 -17
- package/sumaris-net.ngx-components.d.ts +0 -16
- package/sumaris-net.ngx-components.metadata.json +0 -1
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { Entity, EntityAsObjectOptions, IEntity } from './entity.model';
|
|
2
2
|
import { FilterFn } from '../../../shared/services/entity-service.class';
|
|
3
|
-
export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T extends IEntity<T,
|
|
3
|
+
export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T extends IEntity<T, any>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> extends IEntity<F, ID, AO, FO> {
|
|
4
4
|
asPodObject(): any;
|
|
5
5
|
asFilterFn(): FilterFn<T>;
|
|
6
6
|
isEmpty(): boolean;
|
|
7
7
|
countNotEmptyCriteria(): number;
|
|
8
8
|
}
|
|
9
|
-
export declare abstract class EntityFilter<F extends EntityFilter<F, T, ID, AO, FO>, T extends IEntity<T,
|
|
9
|
+
export declare abstract class EntityFilter<F extends EntityFilter<F, T, ID, AO, FO>, T extends IEntity<T, any>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> extends Entity<F, ID, AO, FO> implements IEntityFilter<F, T, ID, AO, FO> {
|
|
10
|
+
/**
|
|
11
|
+
* Compose some filter functions: all should return true
|
|
12
|
+
* @param filterFns
|
|
13
|
+
*/
|
|
14
|
+
static composeFilters<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
|
|
15
|
+
static compose<F extends EntityFilter<F, T>, T extends IEntity<T>>(filters: F[]): FilterFn<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Compose some filter functions: all should return true
|
|
18
|
+
* @param filterFns
|
|
19
|
+
*/
|
|
20
|
+
static composeFns<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
|
|
10
21
|
constructor(__typename?: string);
|
|
11
22
|
/**
|
|
12
23
|
* Clean a filter, before sending to the pod (e.g convert dates, remove internal properties, etc.)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
2
|
import { Entity, EntityAsObjectOptions, IEntity } from './entity.model';
|
|
3
|
+
import { IconRef } from '../../../shared/types';
|
|
3
4
|
export declare function referentialToString(obj: Referential | any, properties?: string[]): string | undefined;
|
|
4
5
|
export declare function referentialsToString(values: Referential[], properties?: string[], separator?: string): string;
|
|
5
6
|
export declare interface IStatus {
|
|
@@ -9,7 +10,16 @@ export declare interface IStatus {
|
|
|
9
10
|
}
|
|
10
11
|
export declare const StatusList: Readonly<IStatus[]>;
|
|
11
12
|
export declare const StatusById: Readonly<import("../../../shared/types").KeyValueType<IStatus>>;
|
|
12
|
-
export declare
|
|
13
|
+
export declare interface IReferentialRef<T extends IEntity<T, ID> = IEntity<any, any>, ID = number> extends IEntity<T, ID> {
|
|
14
|
+
label: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
levelId?: number;
|
|
18
|
+
statusId: number;
|
|
19
|
+
entityName: string;
|
|
20
|
+
icon?: IconRef;
|
|
21
|
+
}
|
|
22
|
+
export declare abstract class BaseReferential<T extends BaseReferential<T, ID, AO>, ID = number, AO extends ReferentialAsObjectOptions = ReferentialAsObjectOptions, FO = any> extends Entity<T, ID, AO, FO> implements IReferentialRef<T, ID> {
|
|
13
23
|
label: string;
|
|
14
24
|
name: string;
|
|
15
25
|
description: string;
|
|
@@ -20,30 +30,24 @@ export declare abstract class BaseReferential<T extends BaseReferential<any, ID,
|
|
|
20
30
|
levelId: number;
|
|
21
31
|
parentId: number;
|
|
22
32
|
entityName: string;
|
|
33
|
+
icon?: IconRef;
|
|
23
34
|
constructor(__typename?: string);
|
|
24
|
-
asObject(opts?:
|
|
35
|
+
asObject(opts?: AO): any;
|
|
25
36
|
fromObject(source: any, opts?: FO): void;
|
|
26
37
|
equals(other: T): boolean;
|
|
27
38
|
}
|
|
28
|
-
export declare class Referential extends
|
|
39
|
+
export declare class Referential<T extends Referential<T, any> = Referential<any>, ID = number> extends BaseReferential<T, ID> {
|
|
29
40
|
static fromObject: (source: any, opts?: any) => Referential;
|
|
30
41
|
}
|
|
31
42
|
export declare class ReferentialUtils {
|
|
32
43
|
static fromObject(source: any): Referential;
|
|
33
|
-
static isNotEmpty<T extends
|
|
34
|
-
static
|
|
35
|
-
static
|
|
36
|
-
static equals<T extends BaseReferential<any> | ReferentialRef>(o1: T | any, o2: T | any): boolean;
|
|
37
|
-
}
|
|
38
|
-
export declare interface IReferentialRef<T extends IEntity<T, ID> = IEntity<any, any>, ID = number> extends IEntity<T, ID> {
|
|
39
|
-
label: string;
|
|
40
|
-
name: string;
|
|
41
|
-
levelId?: number;
|
|
42
|
-
statusId: number;
|
|
43
|
-
entityName: string;
|
|
44
|
+
static isNotEmpty<T extends IReferentialRef<T>>(obj: T | any): boolean;
|
|
45
|
+
static isEmpty<T extends IReferentialRef<T>>(obj: T | any): boolean;
|
|
46
|
+
static equals<T extends IReferentialRef<T>>(o1: T | any, o2: T | any): boolean;
|
|
44
47
|
}
|
|
45
48
|
export interface ReferentialAsObjectOptions extends EntityAsObjectOptions {
|
|
46
49
|
keepEntityName?: boolean;
|
|
50
|
+
keepIcon?: boolean;
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
53
|
* Used to store an entity locally
|
|
@@ -57,9 +61,11 @@ export declare class ReferentialRef<T extends ReferentialRef<any, ID> = Referent
|
|
|
57
61
|
static fromObject: (source: any, opts?: any) => ReferentialRef;
|
|
58
62
|
label: string;
|
|
59
63
|
name: string;
|
|
64
|
+
description: string;
|
|
60
65
|
statusId: number;
|
|
61
66
|
levelId: number;
|
|
62
67
|
entityName: string;
|
|
68
|
+
icon?: IconRef;
|
|
63
69
|
constructor();
|
|
64
70
|
asObject(opts?: O): any;
|
|
65
71
|
fromObject(source: any, opts?: FO): void;
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { CryptoService } from './crypto.service';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { Storage } from '@ionic/storage';
|
|
4
|
+
import { Storage } from '@ionic/storage-angular';
|
|
5
5
|
import { Peer } from './model/peer.model';
|
|
6
6
|
import { ModalController, Platform, ToastController } from '@ionic/angular';
|
|
7
|
+
import { ISelectPeerModalOptions } from '../peer/select-peer.modal';
|
|
7
8
|
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
8
9
|
import { LocalSettingsService } from './local-settings.service';
|
|
9
|
-
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
|
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
|
-
import { ShowToastOptions } from '../../shared/toasts';
|
|
13
|
+
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
14
14
|
import { OverlayEventDetail } from '@ionic/core';
|
|
15
|
-
import { NodeInfo } from './network.utils';
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare
|
|
20
|
-
export declare
|
|
21
|
-
export declare class NetworkService extends StartableService<Peer> {
|
|
15
|
+
import { AppManifest, NodeInfo } from './network.utils';
|
|
16
|
+
import { StartableObservableService } from '../../shared/services/startable-observable-service.class';
|
|
17
|
+
import { ConnectionType, NetworkEventType } from './network.types';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
export declare const PEER_URL_REGEXP: RegExp;
|
|
20
|
+
export declare class NetworkService extends StartableObservableService<Peer, Peer> {
|
|
22
21
|
private _document;
|
|
23
22
|
private platform;
|
|
24
23
|
private modalCtrl;
|
|
@@ -29,7 +28,6 @@ export declare class NetworkService extends StartableService<Peer> {
|
|
|
29
28
|
private http;
|
|
30
29
|
protected environment: any;
|
|
31
30
|
private network;
|
|
32
|
-
private splashScreen;
|
|
33
31
|
private translate;
|
|
34
32
|
private toastController;
|
|
35
33
|
onPeerChanges: import("rxjs").Observable<string>;
|
|
@@ -39,7 +37,6 @@ export declare class NetworkService extends StartableService<Peer> {
|
|
|
39
37
|
private _timerSubscription;
|
|
40
38
|
private readonly _timerRefreshPeriod;
|
|
41
39
|
private readonly _timerRefreshCondition;
|
|
42
|
-
private _startingPeer;
|
|
43
40
|
private _deviceConnectionType;
|
|
44
41
|
private _forceOffline;
|
|
45
42
|
private _listeners;
|
|
@@ -48,7 +45,7 @@ export declare class NetworkService extends StartableService<Peer> {
|
|
|
48
45
|
get connectionType(): ConnectionType;
|
|
49
46
|
get peer(): Peer;
|
|
50
47
|
set peer(peer: Peer);
|
|
51
|
-
constructor(_document: any, platform: Platform, modalCtrl: ModalController, cryptoService: CryptoService, storage: Storage, settings: LocalSettingsService, cache: CacheService, http: HttpClient, environment: any, network: Network,
|
|
48
|
+
constructor(_document: any, platform: Platform, modalCtrl: ModalController, cryptoService: CryptoService, storage: Storage, settings: LocalSettingsService, cache: CacheService, http: HttpClient, environment: any, network: Network, translate: TranslateService, toastController: ToastController);
|
|
52
49
|
/**
|
|
53
50
|
* Register to network event
|
|
54
51
|
*
|
|
@@ -85,22 +82,26 @@ export declare class NetworkService extends StartableService<Peer> {
|
|
|
85
82
|
showToast?: boolean;
|
|
86
83
|
}): Promise<boolean>;
|
|
87
84
|
getNodeInfo(peer?: string | Peer): Promise<NodeInfo>;
|
|
85
|
+
getAppManifest(peer?: string | Peer, opts?: {
|
|
86
|
+
nocache?: boolean;
|
|
87
|
+
}): Promise<AppManifest | undefined>;
|
|
88
|
+
getAppVersion(peer?: string | Peer, opts?: {
|
|
89
|
+
nocache: boolean;
|
|
90
|
+
}): Promise<string | undefined>;
|
|
91
|
+
computePeerPath(peer: string | Peer | undefined, path: string): string | undefined;
|
|
88
92
|
/**
|
|
89
93
|
* Allow to force offline mode
|
|
90
94
|
*/
|
|
91
95
|
setForceOffline(value?: boolean, opts?: {
|
|
92
96
|
showToast?: boolean;
|
|
93
97
|
}): void;
|
|
94
|
-
showSelectPeerModal(opts?:
|
|
95
|
-
allowSelectDownPeer?: boolean;
|
|
96
|
-
canCancel?: boolean;
|
|
97
|
-
}): Promise<Peer | undefined>;
|
|
98
|
+
showSelectPeerModal(opts?: Partial<ISelectPeerModalOptions>): Promise<Peer | undefined>;
|
|
98
99
|
clearCache(opts?: {
|
|
99
100
|
emitEvent?: boolean;
|
|
100
101
|
}): Promise<void>;
|
|
101
|
-
protected ngOnStart(): Promise<Peer>;
|
|
102
|
-
protected ngOnAfterStart(): Promise<void>;
|
|
103
|
-
protected ngOnStop():
|
|
102
|
+
protected ngOnStart(peer?: Peer): Promise<Peer>;
|
|
103
|
+
protected ngOnAfterStart(peer: Peer): Promise<void>;
|
|
104
|
+
protected ngOnStop(): void;
|
|
104
105
|
/**
|
|
105
106
|
* Try to restore peer from the local storage
|
|
106
107
|
*/
|
|
@@ -117,13 +118,22 @@ export declare class NetworkService extends StartableService<Peer> {
|
|
|
117
118
|
* @protected
|
|
118
119
|
*/
|
|
119
120
|
protected startRefreshTimer(): void;
|
|
121
|
+
protected getText(path: string, opts?: {
|
|
122
|
+
headers?: HttpHeaders | {
|
|
123
|
+
[header: string]: string | string[];
|
|
124
|
+
};
|
|
125
|
+
responseType?: 'text';
|
|
126
|
+
nocache?: boolean;
|
|
127
|
+
}): Promise<string>;
|
|
120
128
|
protected get<T>(path: string, opts?: {
|
|
121
129
|
headers?: HttpHeaders | {
|
|
122
130
|
[header: string]: string | string[];
|
|
123
131
|
};
|
|
132
|
+
responseType?: 'json';
|
|
133
|
+
nocache?: boolean;
|
|
124
134
|
}): Promise<T>;
|
|
135
|
+
protected getUri(path: string): string;
|
|
125
136
|
protected onDeviceConnectionChanged(connectionType?: string): void;
|
|
126
|
-
protected resetData(): void;
|
|
127
137
|
/**
|
|
128
138
|
* Get default peers, from environment
|
|
129
139
|
*/
|
|
@@ -131,4 +141,6 @@ export declare class NetworkService extends StartableService<Peer> {
|
|
|
131
141
|
protected showToast<T = any>(opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
132
142
|
protected addListener<T = any>(name: NetworkEventType, callback: (data?: T) => Promise<void>): Subscription;
|
|
133
143
|
protected emit<T = any>(name: NetworkEventType, data?: T): Promise<void[]>;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NetworkService, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
145
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NetworkService>;
|
|
134
146
|
}
|
|
@@ -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';
|
|
@@ -6,6 +6,21 @@ export interface NodeInfo {
|
|
|
6
6
|
nodeLabel?: string;
|
|
7
7
|
nodeName?: string;
|
|
8
8
|
}
|
|
9
|
+
export interface AppManifest {
|
|
10
|
+
manifest_version: number;
|
|
11
|
+
name: string;
|
|
12
|
+
version: string;
|
|
13
|
+
start_url: string;
|
|
14
|
+
short_name?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
version_name?: string;
|
|
17
|
+
author?: string;
|
|
18
|
+
default_locale?: string;
|
|
19
|
+
icons?: any | any[];
|
|
20
|
+
background_color?: string;
|
|
21
|
+
theme_color?: string;
|
|
22
|
+
display?: string;
|
|
23
|
+
}
|
|
9
24
|
export declare class NetworkUtils {
|
|
10
25
|
static getNodeInfo: typeof getNodeInfo;
|
|
11
26
|
}
|
|
@@ -13,4 +28,5 @@ export declare function getNodeInfo(http: HttpClient, peer: string | Peer, opts?
|
|
|
13
28
|
headers?: HttpHeaders | {
|
|
14
29
|
[header: string]: string | string[];
|
|
15
30
|
};
|
|
31
|
+
responseType?: 'json';
|
|
16
32
|
}): Promise<NodeInfo>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { Account } from '../model/account.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class IsLoginAccountPipe implements PipeTransform {
|
|
4
5
|
transform(value: Account): boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsLoginAccountPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsLoginAccountPipe, "isLogin", false>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IsLoginAccountPipe>;
|
|
5
9
|
}
|
|
6
10
|
export declare class AccountToStringPipe implements PipeTransform {
|
|
7
11
|
transform(value: Account): string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountToStringPipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AccountToStringPipe, "accountToString", false>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccountToStringPipe>;
|
|
8
15
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { Department } from '../model/department.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DepartmentToStringPipe implements PipeTransform {
|
|
4
5
|
transform(value: Department | (Department[]), separator?: string): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DepartmentToStringPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DepartmentToStringPipe, "departmentToString", false>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DepartmentToStringPipe>;
|
|
5
9
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { Person } from '../model/person.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PersonToStringPipe implements PipeTransform {
|
|
4
5
|
transform(value: Person | Person[], separator?: string): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PersonToStringPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PersonToStringPipe, "personToString", false>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PersonToStringPipe>;
|
|
5
9
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { UsageMode } from '../model/settings.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class IsOnFieldModePipe implements PipeTransform {
|
|
4
5
|
transform(value: UsageMode): boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsOnFieldModePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsOnFieldModePipe, "isOnField", false>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IsOnFieldModePipe>;
|
|
5
9
|
}
|
|
6
10
|
export declare class IsNotOnFieldModePipe implements PipeTransform {
|
|
7
11
|
transform(value: UsageMode): boolean;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsNotOnFieldModePipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsNotOnFieldModePipe, "isNotOnField", false>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IsNotOnFieldModePipe>;
|
|
8
15
|
}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
/// <reference types="localforage" />
|
|
2
1
|
import { Platform, ToastController } from '@ionic/angular';
|
|
3
2
|
import { NetworkService } from './network.service';
|
|
4
3
|
import { Platforms } from '@ionic/core';
|
|
5
|
-
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
|
6
|
-
import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx';
|
|
7
|
-
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
|
8
|
-
import { Keyboard } from '@ionic-native/keyboard/ngx';
|
|
9
4
|
import { LocalSettingsService } from './local-settings.service';
|
|
10
5
|
import { CacheService } from 'ionic-cache';
|
|
11
6
|
import { AudioProvider } from '../../shared/audio/audio';
|
|
12
7
|
import { Platform as CdkPlatform } from '@angular/cdk/platform';
|
|
13
|
-
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
|
14
|
-
import { Storage } from '@ionic/storage';
|
|
15
8
|
import { EntitiesStorage } from './storage/entities-storage.service';
|
|
16
|
-
import { ShowToastOptions } from '../../shared/toasts';
|
|
9
|
+
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
17
10
|
import { TranslateService } from '@ngx-translate/core';
|
|
18
11
|
import { AccountService } from './account.service';
|
|
19
12
|
import { Observable } from 'rxjs';
|
|
@@ -21,58 +14,78 @@ import { ConfigService } from './config.service';
|
|
|
21
14
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
22
15
|
import { Downloader, DownloadRequest } from '@ionic-native/downloader/ngx';
|
|
23
16
|
import { StartableService } from '../../shared/services/startable-service.class';
|
|
17
|
+
import { StorageService } from '../../shared/services/storage/storage.service';
|
|
18
|
+
import { OpenOptions } from '@capacitor/browser';
|
|
19
|
+
import * as i0 from "@angular/core";
|
|
20
|
+
export declare const AndroidOsEnvironment: Readonly<{
|
|
21
|
+
DIRECTORY_DOWNLOADS: string;
|
|
22
|
+
DIRECTORY_DOWNLOADS_OLD: string;
|
|
23
|
+
}>;
|
|
24
24
|
export declare class PlatformService extends StartableService {
|
|
25
|
-
private
|
|
25
|
+
private ionicPlatform;
|
|
26
26
|
private cdkPlatform;
|
|
27
27
|
private toastController;
|
|
28
28
|
private translate;
|
|
29
29
|
private dateAdapter;
|
|
30
|
+
private storageService;
|
|
30
31
|
private entitiesStorage;
|
|
31
32
|
private settings;
|
|
32
33
|
private networkService;
|
|
33
34
|
private accountService;
|
|
34
35
|
private configService;
|
|
35
36
|
private cache;
|
|
36
|
-
private storage;
|
|
37
37
|
private audioProvider;
|
|
38
38
|
protected environment: any;
|
|
39
|
-
private statusBar;
|
|
40
|
-
private keyboard;
|
|
41
|
-
private splashScreen;
|
|
42
|
-
private browser;
|
|
43
39
|
private downloader;
|
|
44
|
-
private fileOpener;
|
|
45
40
|
private _mobile;
|
|
46
41
|
private _cordova;
|
|
42
|
+
private _capacitor;
|
|
47
43
|
private _android;
|
|
44
|
+
private _ios;
|
|
48
45
|
private _downloadingJobs;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
constructor(platform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, storage: Storage, audioProvider: AudioProvider, environment: any, statusBar: StatusBar, keyboard: Keyboard, splashScreen: SplashScreen, browser: InAppBrowser, downloader: Downloader, fileOpener: FileOpener);
|
|
46
|
+
private checkAppVersionTimer;
|
|
47
|
+
constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, storageService: StorageService, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: any, downloader: Downloader);
|
|
52
48
|
is(platformName: Platforms): boolean;
|
|
49
|
+
get mobile(): boolean;
|
|
53
50
|
/**
|
|
54
|
-
* Say if opened has been opened
|
|
51
|
+
* Say if opened has been opened inside an Android or iOs App.
|
|
55
52
|
* This is used to known if there is cordova features
|
|
56
53
|
*/
|
|
57
|
-
|
|
54
|
+
isCapacitor(): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Say if opened has been opened inside an Android or iOs App.
|
|
57
|
+
* This is used to known if there is cordova features
|
|
58
|
+
*/
|
|
59
|
+
isCordova(): boolean;
|
|
58
60
|
isAndroidCordova(): boolean;
|
|
61
|
+
isIOSCordova(): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Is a native App (and NOT a mobile web)
|
|
64
|
+
*/
|
|
65
|
+
isApp(): boolean;
|
|
66
|
+
isWeb(): boolean;
|
|
67
|
+
isMobileWeb(): boolean;
|
|
59
68
|
get canDownload(): boolean;
|
|
60
69
|
get canOpenFile(): boolean;
|
|
61
70
|
width(): number;
|
|
62
71
|
height(): number;
|
|
63
72
|
protected ngOnStart(): Promise<any>;
|
|
64
|
-
open(url: string,
|
|
73
|
+
open(url: string, opts?: OpenOptions): Promise<void>;
|
|
65
74
|
getDownloadingJob(uri: string): Observable<string>;
|
|
66
75
|
download(request: {
|
|
67
76
|
uri: string;
|
|
68
77
|
filename?: string;
|
|
69
|
-
} & Partial<DownloadRequest>): Observable<string>;
|
|
70
|
-
|
|
71
|
-
protected
|
|
72
|
-
protected configureTranslate(): void
|
|
78
|
+
} & Partial<DownloadRequest>): Observable<string | undefined>;
|
|
79
|
+
protected configureGlobalCssClass(mobile: boolean, win?: any): void;
|
|
80
|
+
protected configureCapacitorPlugins(): Promise<void>;
|
|
81
|
+
protected configureTranslate(): Promise<void>;
|
|
73
82
|
protected configureCache(online?: boolean): void;
|
|
74
|
-
protected
|
|
75
|
-
|
|
83
|
+
protected checkAppVersion(opts?: {
|
|
84
|
+
canReload?: boolean;
|
|
85
|
+
silent?: boolean;
|
|
86
|
+
}): Promise<void>;
|
|
76
87
|
protected showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
|
|
77
88
|
protected onStartupError(err: any): Promise<void>;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
90
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PlatformService>;
|
|
78
91
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
|
-
import { Storage } from '@ionic/storage';
|
|
4
3
|
import { Platform } from '@ionic/angular';
|
|
5
4
|
import { Entity, IEntity } from '../model/entity.model';
|
|
6
5
|
import { LoadResult } from '../../../shared/services/entity-service.class';
|
|
7
6
|
import { EntityStorageLoadOptions, EntityStore, EntityStoreTypePolicy } from './entity-store.class';
|
|
8
|
-
import {
|
|
7
|
+
import { IProgressBarService } from '../../../shared/services/progress-bar.service';
|
|
9
8
|
import { Environment } from '../../../../environments/environment.class';
|
|
10
9
|
import { StartableService } from '../../../shared/services/startable-service.class';
|
|
10
|
+
import { IStorage } from '../../../shared/services/storage/storage.utils';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
11
12
|
export interface EntitiesStorageTypePolicies {
|
|
12
13
|
[__typename: string]: EntityStoreTypePolicy;
|
|
13
14
|
}
|
|
@@ -20,15 +21,17 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
|
|
|
20
21
|
private progressBarService;
|
|
21
22
|
private storage;
|
|
22
23
|
protected environment: Environment;
|
|
23
|
-
static TRASH_PREFIX
|
|
24
|
-
static REMOTE_PREFIX
|
|
24
|
+
static readonly TRASH_PREFIX = "Trash#";
|
|
25
|
+
static readonly REMOTE_PREFIX = "Remote#";
|
|
25
26
|
private readonly _typePolicies;
|
|
26
27
|
private readonly _saveTimerPeriod;
|
|
27
28
|
private _$save;
|
|
28
29
|
private _dirty;
|
|
29
30
|
private _saving;
|
|
30
31
|
get dirty(): boolean;
|
|
31
|
-
constructor(platform: Platform, progressBarService:
|
|
32
|
+
constructor(platform: Platform, progressBarService: IProgressBarService, storage: IStorage, environment: Environment, typePolicies: EntitiesStorageTypePolicies);
|
|
33
|
+
ngOnStart(): Promise<EntityStorageMap>;
|
|
34
|
+
protected ngOnStop(): Promise<void>;
|
|
32
35
|
watchAll<T extends Entity<T>>(entityName: string, variables: {
|
|
33
36
|
offset?: number;
|
|
34
37
|
size?: number;
|
|
@@ -88,14 +91,18 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
|
|
|
88
91
|
emitEvent?: boolean;
|
|
89
92
|
}): Promise<T>;
|
|
90
93
|
clearTrash(entityName: string): Promise<void>;
|
|
91
|
-
persist(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
persist(opts?: {
|
|
95
|
+
skipIfPristine: boolean;
|
|
96
|
+
}): Promise<void>;
|
|
94
97
|
protected getEntityStore<T extends IEntity<T, ID>, ID = number>(name: string, opts?: {
|
|
95
98
|
create?: boolean;
|
|
96
99
|
}): EntityStore<T, ID>;
|
|
97
100
|
protected detectEntityName(entityOrName: string | Entity<any, any>): string;
|
|
98
101
|
protected restoreLocally(): Promise<void>;
|
|
99
|
-
protected storeLocally(
|
|
102
|
+
protected storeLocally(opts?: {
|
|
103
|
+
skipIfPristine: boolean;
|
|
104
|
+
}): Promise<void>;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesStorage, [null, { optional: true; }, null, null, { optional: true; }]>;
|
|
106
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EntitiesStorage>;
|
|
100
107
|
}
|
|
101
108
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { Storage } from '@ionic/storage';
|
|
3
2
|
import { Entity, IEntity } from '../model/entity.model';
|
|
4
3
|
import { LoadResult } from '../../../shared/services/entity-service.class';
|
|
4
|
+
import { IStorage } from '../../../shared/services/storage/storage.utils';
|
|
5
5
|
export declare const ENTITIES_STORAGE_KEY_PREFIX = "entities";
|
|
6
6
|
export declare type EntityStoreTypePolicyMode = 'default' | 'by-id';
|
|
7
7
|
export declare interface EntityStoreTypePolicy<T extends Entity<T, any> = Entity<any, any>, K = keyof T> {
|
|
@@ -14,7 +14,7 @@ export declare interface EntityStorageLoadOptions {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class EntityStore<T extends IEntity<T, ID>, ID = number, O extends EntityStorageLoadOptions = EntityStorageLoadOptions> {
|
|
16
16
|
protected readonly name: string;
|
|
17
|
-
protected readonly storage:
|
|
17
|
+
protected readonly storage: IStorage;
|
|
18
18
|
private readonly _storageKey;
|
|
19
19
|
private readonly _onChange;
|
|
20
20
|
private readonly _mapToLightEntity;
|
|
@@ -24,11 +24,12 @@ export declare class EntityStore<T extends IEntity<T, ID>, ID = number, O extend
|
|
|
24
24
|
private _dirty;
|
|
25
25
|
private _loaded;
|
|
26
26
|
readonly policy: EntityStoreTypePolicy<T>;
|
|
27
|
+
get length(): number;
|
|
27
28
|
get cache(): T[];
|
|
28
29
|
get dirty(): boolean;
|
|
29
30
|
protected get isByIdMode(): boolean;
|
|
30
31
|
protected get storageKeyById(): string;
|
|
31
|
-
constructor(name: string, storage:
|
|
32
|
+
constructor(name: string, storage: IStorage, policy?: EntityStoreTypePolicy<T>);
|
|
32
33
|
nextValue(): ID;
|
|
33
34
|
currentValue(): number;
|
|
34
35
|
load(id: ID, opts?: EntityStorageLoadOptions): Promise<T>;
|
|
@@ -77,10 +78,10 @@ export declare class EntityStore<T extends IEntity<T, ID>, ID = number, O extend
|
|
|
77
78
|
/**
|
|
78
79
|
*
|
|
79
80
|
* @param opts
|
|
80
|
-
* opts.
|
|
81
|
+
* opts.skipIfPristine = false persist all entities, even if not dirty
|
|
81
82
|
*/
|
|
82
83
|
persist(opts?: {
|
|
83
|
-
skipIfPristine
|
|
84
|
+
skipIfPristine: boolean;
|
|
84
85
|
}): Promise<number>;
|
|
85
86
|
restore(opts?: {
|
|
86
87
|
emitEvent?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityFilter } from '../model/filter.model';
|
|
2
|
+
import { Referential } from '../model/referential.model';
|
|
3
|
+
import { FilterFn } from '../../../shared/services/entity-service.class';
|
|
4
|
+
export declare class ReferentialFilter extends EntityFilter<ReferentialFilter, Referential> {
|
|
5
|
+
static fromObject: (source: any, opts?: any) => ReferentialFilter;
|
|
6
|
+
searchText: string;
|
|
7
|
+
fromObject(source: any, opts?: any): void;
|
|
8
|
+
protected buildFilter(): FilterFn<Referential>[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AbstractControlOptions, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
2
|
+
import { Referential } from '../model/referential.model';
|
|
3
|
+
import { AppValidatorService } from '../validator/base.validator.class';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ReferentialValidatorService<T extends Referential = Referential> extends AppValidatorService<T> {
|
|
6
|
+
protected formBuilder: UntypedFormBuilder;
|
|
7
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
8
|
+
getRowValidator(): UntypedFormGroup;
|
|
9
|
+
getFormGroup(data?: T, opts?: {
|
|
10
|
+
withDescription?: boolean;
|
|
11
|
+
withComments?: boolean;
|
|
12
|
+
}): UntypedFormGroup;
|
|
13
|
+
getFormGroupConfig(data?: T, opts?: {
|
|
14
|
+
withDescription?: boolean;
|
|
15
|
+
withComments?: boolean;
|
|
16
|
+
}): {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
getFormGroupOptions(data?: T, opts?: any): AbstractControlOptions | null;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReferentialValidatorService<any>, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReferentialValidatorService<any>>;
|
|
22
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormBuilder, ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { Account } from '../model/account.model';
|
|
3
3
|
import { AccountService } from '../account.service';
|
|
4
4
|
import { FormFieldDefinition } from '../../../shared/form/field.model';
|
|
5
5
|
import { AppValidatorService } from './base.validator.class';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AccountValidatorService extends AppValidatorService<Account> {
|
|
7
|
-
protected formBuilder:
|
|
8
|
+
protected formBuilder: UntypedFormBuilder;
|
|
8
9
|
protected accountService: AccountService;
|
|
9
|
-
constructor(formBuilder:
|
|
10
|
+
constructor(formBuilder: UntypedFormBuilder, accountService: AccountService);
|
|
10
11
|
getFormGroupConfig(data?: Account): any;
|
|
11
12
|
getValidators(field: FormFieldDefinition): ValidatorFn | ValidatorFn[];
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountValidatorService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccountValidatorService>;
|
|
12
15
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { ValidatorService } from '@e-is/ngx-material-table';
|
|
2
|
-
import { AbstractControl,
|
|
2
|
+
import { AbstractControl, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { IValidatorService } from '../../../shared/services/validator-service.class';
|
|
4
|
-
import { FormErrors } from '../../form/form.utils';
|
|
5
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { FormErrors } from '../../../shared/forms';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare abstract class AppValidatorService<T = any> extends ValidatorService implements IValidatorService<T> {
|
|
7
|
-
protected formBuilder:
|
|
8
|
+
protected formBuilder: UntypedFormBuilder;
|
|
8
9
|
protected translate?: TranslateService;
|
|
9
|
-
protected constructor(formBuilder:
|
|
10
|
-
getRowValidator():
|
|
11
|
-
getFormGroup(data?: T):
|
|
10
|
+
protected constructor(formBuilder: UntypedFormBuilder, translate?: TranslateService);
|
|
11
|
+
getRowValidator(): UntypedFormGroup;
|
|
12
|
+
getFormGroup(data?: T): UntypedFormGroup;
|
|
12
13
|
getFormGroupConfig(data?: T): {
|
|
13
14
|
[key: string]: any;
|
|
14
15
|
};
|
|
15
16
|
getI18nFormErrors(control: AbstractControl): string[];
|
|
16
17
|
getI18nErrors(errors: FormErrors): string[];
|
|
17
18
|
protected getI18nError(errorKey: string, errorContent?: any): string;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppValidatorService<any>, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AppValidatorService<any>, never, never, {}, {}, never, never, false>;
|
|
18
21
|
}
|