@sumaris-net/ngx-components 1.2.8 → 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 -0
- 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 -25
- 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 -28718
- 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 -420
- 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 -24430
- 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,15 +1,18 @@
|
|
|
1
|
-
import { AbstractControl,
|
|
1
|
+
import { AbstractControl, UntypedFormBuilder, UntypedFormGroup, ValidationErrors } from '@angular/forms';
|
|
2
2
|
import { LocalSettings } from '../model/settings.model';
|
|
3
3
|
import { NetworkService } from '../network.service';
|
|
4
4
|
import { AppValidatorService } from './base.validator.class';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class LocalSettingsValidatorService extends AppValidatorService<LocalSettings> {
|
|
6
7
|
private networkService;
|
|
7
|
-
constructor(formBuilder:
|
|
8
|
-
getFormGroup(data?: LocalSettings):
|
|
9
|
-
getPropertiesArray(array?: any): import("@angular/forms").
|
|
8
|
+
constructor(formBuilder: UntypedFormBuilder, networkService: NetworkService);
|
|
9
|
+
getFormGroup(data?: LocalSettings): UntypedFormGroup;
|
|
10
|
+
getPropertiesArray(array?: any): import("@angular/forms").UntypedFormArray;
|
|
10
11
|
getPropertyFormGroup(data?: {
|
|
11
12
|
key: string;
|
|
12
13
|
value?: string;
|
|
13
|
-
}):
|
|
14
|
+
}): UntypedFormGroup;
|
|
14
15
|
protected peerAlive(peerUrlControl: AbstractControl): Promise<ValidationErrors | null>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalSettingsValidatorService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalSettingsValidatorService>;
|
|
15
18
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
2
2
|
import { UserSettings } from '../model/settings.model';
|
|
3
3
|
import { AppValidatorService } from './base.validator.class';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class UserSettingsValidatorService extends AppValidatorService<UserSettings> {
|
|
5
|
-
constructor(formBuilder:
|
|
6
|
-
getFormGroup(data?: UserSettings):
|
|
6
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
7
|
+
getFormGroup(data?: UserSettings): UntypedFormGroup;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserSettingsValidatorService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserSettingsValidatorService>;
|
|
7
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./settings.page";
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
import * as i3 from "../form/buttons/form-buttons-bar.module";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
export declare class AppSettingsPageModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppSettingsPageModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppSettingsPageModule, [typeof i1.SettingsPage], [typeof i2.SharedModule, typeof i3.AppFormButtonsBarModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.SettingsPage]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppSettingsPageModule>;
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AccountService } from '../services/account.service';
|
|
3
3
|
import { LocaleConfig, LocalSettings, UsageMode } from '../services/model/settings.model';
|
|
4
|
-
import {
|
|
4
|
+
import { UntypedFormArray, UntypedFormBuilder } from '@angular/forms';
|
|
5
5
|
import { AppForm } from '../form/form.class';
|
|
6
6
|
import { FormArrayHelper } from '../form/form.utils';
|
|
7
7
|
import { TranslateService } from '@ngx-translate/core';
|
|
@@ -14,13 +14,15 @@ import { AlertController } from '@ionic/angular';
|
|
|
14
14
|
import { Property } from '../../shared/types';
|
|
15
15
|
import { Router } from '@angular/router';
|
|
16
16
|
import { CanLeave } from '../../shared/guard/component-dirty.guard';
|
|
17
|
+
import { ISelectPeerModalOptions } from '../peer/select-peer.modal';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
17
19
|
export declare class SettingsPage extends AppForm<LocalSettings> implements OnInit, OnDestroy, CanLeave {
|
|
18
20
|
protected platform: PlatformService;
|
|
19
21
|
protected router: Router;
|
|
20
22
|
protected validatorService: LocalSettingsValidatorService;
|
|
21
23
|
protected alertCtrl: AlertController;
|
|
22
24
|
protected translate: TranslateService;
|
|
23
|
-
protected formBuilder:
|
|
25
|
+
protected formBuilder: UntypedFormBuilder;
|
|
24
26
|
protected accountService: AccountService;
|
|
25
27
|
protected settings: LocalSettingsService;
|
|
26
28
|
protected cd: ChangeDetectorRef;
|
|
@@ -39,26 +41,25 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
39
41
|
latLongFormats: string[];
|
|
40
42
|
get accountInheritance(): boolean;
|
|
41
43
|
get isLogin(): boolean;
|
|
42
|
-
get propertiesForm():
|
|
43
|
-
constructor(injector: Injector, platform: PlatformService, router: Router, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, translate: TranslateService, formBuilder:
|
|
44
|
+
get propertiesForm(): UntypedFormArray;
|
|
45
|
+
constructor(injector: Injector, platform: PlatformService, router: Router, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, translate: TranslateService, formBuilder: UntypedFormBuilder, accountService: AccountService, settings: LocalSettingsService, cd: ChangeDetectorRef, network: NetworkService, locales: LocaleConfig[]);
|
|
44
46
|
ngOnInit(): Promise<void>;
|
|
45
47
|
getPropertyDefinition(index: number): FormFieldDefinition;
|
|
46
48
|
updatePropertyDefinition(index: number): FormFieldDefinition;
|
|
47
49
|
removePropertyAt(index: number): void;
|
|
48
50
|
load(): Promise<void>;
|
|
49
51
|
updateView(data: LocalSettings): void;
|
|
50
|
-
save(event?:
|
|
52
|
+
save(event?: Event, options?: any): Promise<boolean>;
|
|
51
53
|
setAccountInheritance(enable: boolean, opts?: {
|
|
52
54
|
emitEvent?: boolean;
|
|
53
55
|
}): void;
|
|
54
|
-
showSelectPeerModal(opts?:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
cancel(event?: UIEvent): Promise<void>;
|
|
59
|
-
close(event?: UIEvent): Promise<boolean>;
|
|
60
|
-
clearCache(event?: UIEvent): Promise<void>;
|
|
56
|
+
showSelectPeerModal(opts?: Partial<ISelectPeerModalOptions>): Promise<void>;
|
|
57
|
+
cancel(event?: Event): Promise<void>;
|
|
58
|
+
close(event?: Event): Promise<boolean>;
|
|
59
|
+
clearCache(event?: Event): Promise<void>;
|
|
61
60
|
protected getValue(): Promise<LocalSettings>;
|
|
62
61
|
protected getJsonValueToSave(): Promise<any>;
|
|
63
62
|
protected markForCheck(): void;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPage, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsPage, "page-settings", never, {}, {}, never, never, false>;
|
|
64
65
|
}
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from
|
|
|
2
2
|
import { MatColumnDef, MatTable } from '@angular/material/table';
|
|
3
3
|
import { TableElement } from '@e-is/ngx-material-table';
|
|
4
4
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ActionsColumnComponent implements OnInit, OnDestroy {
|
|
6
7
|
private table;
|
|
7
8
|
private cd;
|
|
@@ -17,7 +18,7 @@ export declare class ActionsColumnComponent implements OnInit, OnDestroy {
|
|
|
17
18
|
optionsTitle: string;
|
|
18
19
|
classList: string;
|
|
19
20
|
cellTemplate: TemplateRef<any>;
|
|
20
|
-
optionsClick: EventEmitter<
|
|
21
|
+
optionsClick: EventEmitter<Event>;
|
|
21
22
|
cancelOrDeleteClick: EventEmitter<{
|
|
22
23
|
event: Event;
|
|
23
24
|
row: TableElement<any>;
|
|
@@ -37,4 +38,6 @@ export declare class ActionsColumnComponent implements OnInit, OnDestroy {
|
|
|
37
38
|
constructor(table: MatTable<any>, cd: ChangeDetectorRef);
|
|
38
39
|
ngOnInit(): void;
|
|
39
40
|
ngOnDestroy(): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsColumnComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsColumnComponent, "app-actions-column", never, { "stickyEnd": "stickyEnd"; "canCancel": "canCancel"; "canDelete": "canDelete"; "canBackward": "canBackward"; "canForward": "canForward"; "canConfirmAndAdd": "canConfirmAndAdd"; "dirtyIcon": "dirtyIcon"; "optionsTitle": "optionsTitle"; "classList": "class"; "cellTemplate": "cellTemplate"; }, { "optionsClick": "optionsClick"; "cancelOrDeleteClick": "cancelOrDeleteClick"; "confirmAndAddClick": "confirmAndAddClick"; "backward": "backward"; "forward": "forward"; }, never, ["[matHeader]", "[matFooter]"], false>;
|
|
40
43
|
}
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
3
|
+
import { MatSort, MatSortable, SortDirection } from '@angular/material/sort';
|
|
4
|
+
import { MatTable } from '@angular/material/table';
|
|
5
|
+
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
6
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
7
|
+
import { IEntity } from '../services/model/entity.model';
|
|
8
|
+
import { AlertController, ModalController, ToastController } from '@ionic/angular';
|
|
9
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
10
|
+
import { ColumnItem } from './table-select-columns.component';
|
|
11
|
+
import { Location } from '@angular/common';
|
|
12
|
+
import { IAppForm } from '../form/form.utils';
|
|
13
|
+
import { LocalSettingsService } from '../services/local-settings.service';
|
|
14
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
15
|
+
import { MatAutocompleteConfigHolder, MatAutocompleteFieldAddOptions, MatAutocompleteFieldConfig } from '../../shared/material/autocomplete/material.autocomplete.config';
|
|
16
|
+
import { CompletableEvent } from '../../shared/events';
|
|
17
|
+
import { WaitForOptions } from '../../shared/observables';
|
|
18
|
+
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
19
|
+
import { CdkColumnDef } from '@angular/cdk/table';
|
|
20
|
+
import { LoadResult } from '../../shared/services/entity-service.class';
|
|
21
|
+
import { FormErrorTranslator, FormErrorTranslatorOptions, IFormControlPathTranslator } from '../../shared/validator/form-error-adapter.class';
|
|
22
|
+
import { SaveActionType } from './table.model';
|
|
23
|
+
import { AsyncTableElement } from '@e-is/ngx-material-table';
|
|
24
|
+
import { EntitiesAsyncTableDataSource } from './entities-async-table-datasource.class';
|
|
25
|
+
import * as i0 from "@angular/core";
|
|
26
|
+
export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, ID = number> implements OnInit, OnDestroy, AfterViewInit, IAppForm, IFormControlPathTranslator {
|
|
27
|
+
protected columns: string[];
|
|
28
|
+
protected _dataSource?: EntitiesAsyncTableDataSource<T, F, ID>;
|
|
29
|
+
private _filter?;
|
|
30
|
+
private _initialized;
|
|
31
|
+
private _subscription;
|
|
32
|
+
private _dataSourceLoadingSubscription;
|
|
33
|
+
private _cellValueChangesDefs;
|
|
34
|
+
protected _enabled: boolean;
|
|
35
|
+
protected _autocompleteConfigHolder: MatAutocompleteConfigHolder;
|
|
36
|
+
protected allowRowDetail: boolean;
|
|
37
|
+
protected route: ActivatedRoute;
|
|
38
|
+
protected router: Router;
|
|
39
|
+
protected location: Location;
|
|
40
|
+
protected settings: LocalSettingsService;
|
|
41
|
+
protected translate: TranslateService;
|
|
42
|
+
protected modalCtrl: ModalController;
|
|
43
|
+
protected alertCtrl: AlertController;
|
|
44
|
+
protected toastController: ToastController;
|
|
45
|
+
protected previouslyEditedRowId: number;
|
|
46
|
+
protected formErrorAdapter: FormErrorTranslator;
|
|
47
|
+
protected readonly destroySubject: Subject<void>;
|
|
48
|
+
excludesColumns: string[];
|
|
49
|
+
displayedColumns: string[];
|
|
50
|
+
totalRowCount: number | null;
|
|
51
|
+
visibleRowCount: number;
|
|
52
|
+
errorTranslatorOptions: FormErrorTranslatorOptions;
|
|
53
|
+
readonly readySubject: BehaviorSubject<boolean>;
|
|
54
|
+
readonly loadingSubject: BehaviorSubject<boolean>;
|
|
55
|
+
readonly savingSubject: BehaviorSubject<boolean>;
|
|
56
|
+
readonly touchedSubject: BehaviorSubject<boolean>;
|
|
57
|
+
readonly dirtySubject: BehaviorSubject<boolean>;
|
|
58
|
+
readonly errorSubject: BehaviorSubject<string>;
|
|
59
|
+
get error(): string;
|
|
60
|
+
set error(error: string);
|
|
61
|
+
selection: SelectionModel<AsyncTableElement<T>>;
|
|
62
|
+
autocompleteFields: {
|
|
63
|
+
[key: string]: MatAutocompleteFieldConfig;
|
|
64
|
+
};
|
|
65
|
+
readonly mobile: boolean;
|
|
66
|
+
settingsId: string;
|
|
67
|
+
debug: boolean;
|
|
68
|
+
i18nColumnPrefix: string;
|
|
69
|
+
i18nColumnSuffix: string;
|
|
70
|
+
autoLoad: boolean;
|
|
71
|
+
readOnly: boolean;
|
|
72
|
+
inlineEdition: boolean;
|
|
73
|
+
focusFirstColumn: boolean;
|
|
74
|
+
confirmBeforeDelete: boolean;
|
|
75
|
+
confirmBeforeCancel: boolean;
|
|
76
|
+
undoableDeletion: boolean;
|
|
77
|
+
saveBeforeDelete: boolean;
|
|
78
|
+
keepEditedRowOnSave: boolean;
|
|
79
|
+
saveBeforeSort: boolean;
|
|
80
|
+
saveBeforeFilter: boolean;
|
|
81
|
+
propagateRowError: boolean;
|
|
82
|
+
defaultSortBy: string;
|
|
83
|
+
defaultSortDirection: SortDirection;
|
|
84
|
+
defaultPageSize: number;
|
|
85
|
+
defaultPageSizeOptions: number[];
|
|
86
|
+
focusColumn: string;
|
|
87
|
+
get firstUserColumn(): string;
|
|
88
|
+
get lastUserColumn(): string;
|
|
89
|
+
set dataSource(value: EntitiesAsyncTableDataSource<T, F, ID>);
|
|
90
|
+
get dataSource(): EntitiesAsyncTableDataSource<T, F, ID>;
|
|
91
|
+
set filter(value: F);
|
|
92
|
+
get filter(): F;
|
|
93
|
+
get empty(): boolean;
|
|
94
|
+
onRefresh: EventEmitter<any>;
|
|
95
|
+
onOpenRow: EventEmitter<AsyncTableElement<T>>;
|
|
96
|
+
onNewRow: EventEmitter<any>;
|
|
97
|
+
onStartEditingRow: EventEmitter<AsyncTableElement<T>>;
|
|
98
|
+
onConfirmEditCreateRow: EventEmitter<AsyncTableElement<T>>;
|
|
99
|
+
onCancelOrDeleteRow: EventEmitter<AsyncTableElement<T>>;
|
|
100
|
+
onBeforeDeleteRows: EventEmitter<import("../../shared/events").PromiseEvent<boolean, {
|
|
101
|
+
rows: AsyncTableElement<T>[];
|
|
102
|
+
}>>;
|
|
103
|
+
onBeforeCancelRows: EventEmitter<import("../../shared/events").PromiseEvent<boolean, {
|
|
104
|
+
rows: AsyncTableElement<T>[];
|
|
105
|
+
}>>;
|
|
106
|
+
onBeforeSave: EventEmitter<import("../../shared/events").PromiseEvent<{
|
|
107
|
+
confirmed: boolean;
|
|
108
|
+
save: boolean;
|
|
109
|
+
}, {
|
|
110
|
+
action: SaveActionType;
|
|
111
|
+
valid: boolean;
|
|
112
|
+
}>>;
|
|
113
|
+
onAfterDeletedRows: EventEmitter<AsyncTableElement<T>[]>;
|
|
114
|
+
onSort: EventEmitter<any>;
|
|
115
|
+
onDirty: EventEmitter<boolean>;
|
|
116
|
+
onError: EventEmitter<string>;
|
|
117
|
+
get dirty(): boolean;
|
|
118
|
+
get valid(): boolean;
|
|
119
|
+
get invalid(): boolean;
|
|
120
|
+
get pending(): boolean;
|
|
121
|
+
get touched(): boolean;
|
|
122
|
+
get untouched(): boolean;
|
|
123
|
+
disable(opts?: {
|
|
124
|
+
onlySelf?: boolean;
|
|
125
|
+
emitEvent?: boolean;
|
|
126
|
+
}): void;
|
|
127
|
+
enable(opts?: {
|
|
128
|
+
onlySelf?: boolean;
|
|
129
|
+
emitEvent?: boolean;
|
|
130
|
+
}): void;
|
|
131
|
+
get enabled(): boolean;
|
|
132
|
+
set disabled(value: boolean);
|
|
133
|
+
get disabled(): boolean;
|
|
134
|
+
markAsDirty(opts?: {
|
|
135
|
+
onlySelf?: boolean;
|
|
136
|
+
emitEvent?: boolean;
|
|
137
|
+
}): void;
|
|
138
|
+
markAsPristine(opts?: {
|
|
139
|
+
onlySelf?: boolean;
|
|
140
|
+
emitEvent?: boolean;
|
|
141
|
+
}): void;
|
|
142
|
+
markAsUntouched(opts?: {
|
|
143
|
+
onlySelf?: boolean;
|
|
144
|
+
emitEvent?: boolean;
|
|
145
|
+
}): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated prefer to use markAllAsTouched()
|
|
148
|
+
* @param opts
|
|
149
|
+
*/
|
|
150
|
+
markAsTouched(opts?: {
|
|
151
|
+
onlySelf?: boolean;
|
|
152
|
+
emitEvent?: boolean;
|
|
153
|
+
}): void;
|
|
154
|
+
markAllAsTouched(opts?: {
|
|
155
|
+
emitEvent?: boolean;
|
|
156
|
+
}): void;
|
|
157
|
+
markAsSaving(opts?: {
|
|
158
|
+
emitEvent?: boolean;
|
|
159
|
+
}): void;
|
|
160
|
+
markAsSaved(opts?: {
|
|
161
|
+
emitEvent?: boolean;
|
|
162
|
+
}): void;
|
|
163
|
+
markAsLoading(opts?: {
|
|
164
|
+
emitEvent?: boolean;
|
|
165
|
+
}): void;
|
|
166
|
+
markAsLoaded(opts?: {
|
|
167
|
+
emitEvent?: boolean;
|
|
168
|
+
}): void;
|
|
169
|
+
markAsReady(opts?: {
|
|
170
|
+
emitEvent?: boolean;
|
|
171
|
+
}): void;
|
|
172
|
+
get loading(): boolean;
|
|
173
|
+
get loaded(): boolean;
|
|
174
|
+
enableSort(): void;
|
|
175
|
+
disableSort(): void;
|
|
176
|
+
set pageSize(value: number);
|
|
177
|
+
get pageSize(): number;
|
|
178
|
+
get pageOffset(): number;
|
|
179
|
+
get sortActive(): string;
|
|
180
|
+
get sortDirection(): 'asc' | 'desc';
|
|
181
|
+
private _paginator;
|
|
182
|
+
set paginator(value: MatPaginator);
|
|
183
|
+
get paginator(): MatPaginator;
|
|
184
|
+
get destroyed(): boolean;
|
|
185
|
+
table: MatTable<T>;
|
|
186
|
+
childPaginator: MatPaginator;
|
|
187
|
+
sort: MatSort;
|
|
188
|
+
protected constructor(injector: Injector, columns: string[], _dataSource?: EntitiesAsyncTableDataSource<T, F, ID>, _filter?: F);
|
|
189
|
+
ngOnInit(): void;
|
|
190
|
+
ngAfterViewInit(): void;
|
|
191
|
+
ngOnDestroy(): void;
|
|
192
|
+
updateView(res: LoadResult<T> | undefined, opts?: {
|
|
193
|
+
emitEvent?: boolean;
|
|
194
|
+
}): Promise<void>;
|
|
195
|
+
setDatasource(datasource: EntitiesAsyncTableDataSource<T, F, ID>): void;
|
|
196
|
+
resetDataSource(): void;
|
|
197
|
+
addColumnDef(column: CdkColumnDef): void;
|
|
198
|
+
removeColumnDef(column: CdkColumnDef): void;
|
|
199
|
+
setFilter(filter: F, opts?: {
|
|
200
|
+
emitEvent?: boolean;
|
|
201
|
+
}): void;
|
|
202
|
+
confirmAndAdd(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
|
|
203
|
+
confirmAndBackward(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
|
|
204
|
+
confirmAndForward(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
|
|
205
|
+
/**
|
|
206
|
+
* Confirm the creation of the given row, or if not specified the currently edited row
|
|
207
|
+
*
|
|
208
|
+
* @param event
|
|
209
|
+
* @param row
|
|
210
|
+
*/
|
|
211
|
+
confirmEditCreate(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
|
|
212
|
+
cancelOrDelete(event: Event, row: AsyncTableElement<T>, opts?: {
|
|
213
|
+
interactive?: boolean;
|
|
214
|
+
keepEditing?: boolean;
|
|
215
|
+
}): Promise<void>;
|
|
216
|
+
addRow(event?: Event, insertAt?: number, opts?: {
|
|
217
|
+
focusColumn?: string;
|
|
218
|
+
editing?: boolean;
|
|
219
|
+
}): Promise<boolean>;
|
|
220
|
+
save(opts?: {
|
|
221
|
+
keepEditing?: boolean;
|
|
222
|
+
}): Promise<boolean>;
|
|
223
|
+
cancel(event?: Event, opts?: {
|
|
224
|
+
interactive?: boolean;
|
|
225
|
+
}): Promise<void>;
|
|
226
|
+
duplicateRow(event?: Event, row?: AsyncTableElement<T>, opts?: {
|
|
227
|
+
skipProperties?: string[];
|
|
228
|
+
}): Promise<boolean>;
|
|
229
|
+
/** Whether the number of selected elements matches the total number of rows. */
|
|
230
|
+
isAllSelected(): boolean;
|
|
231
|
+
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
232
|
+
masterToggle(): Promise<void>;
|
|
233
|
+
deleteSelection(event: Event, opts?: {
|
|
234
|
+
interactive?: boolean;
|
|
235
|
+
}): Promise<number>;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @param event
|
|
239
|
+
* @param row
|
|
240
|
+
* @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
|
|
241
|
+
* And to force deletion even if table is busy
|
|
242
|
+
*/
|
|
243
|
+
deleteRow(event: Event | null, row: AsyncTableElement<T>, opts?: {
|
|
244
|
+
interactive?: boolean;
|
|
245
|
+
}): Promise<boolean>;
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @param event
|
|
249
|
+
* @param rows
|
|
250
|
+
* @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
|
|
251
|
+
* And to force deletion even if table is busy
|
|
252
|
+
*/
|
|
253
|
+
deleteRows(event: Event | null, rows: AsyncTableElement<T>[], opts?: {
|
|
254
|
+
interactive?: boolean;
|
|
255
|
+
}): Promise<number>;
|
|
256
|
+
selectRowById(id: number): Promise<boolean>;
|
|
257
|
+
/**
|
|
258
|
+
* Try to select row by data. Will use dataEquals() (that call EntityUtils.equals()) to find same row's data
|
|
259
|
+
* @param data
|
|
260
|
+
*/
|
|
261
|
+
selectRowByData(data: T): Promise<boolean>;
|
|
262
|
+
clickRow(event: Event | undefined, row: AsyncTableElement<T>): Promise<boolean>;
|
|
263
|
+
moveRow(id: number, direction: number): Promise<void>;
|
|
264
|
+
ready(opts?: WaitForOptions): Promise<void>;
|
|
265
|
+
waitIdle(opts?: WaitForOptions): Promise<void>;
|
|
266
|
+
openSelectColumnsModal(event?: Event): Promise<any>;
|
|
267
|
+
trackByFn(index: number, row: AsyncTableElement<T>): number;
|
|
268
|
+
doRefresh(event?: CompletableEvent): void;
|
|
269
|
+
getCurrentColumns(): ColumnItem[];
|
|
270
|
+
escapeEditingRow(event?: Event, row?: AsyncTableElement<T>): Promise<void>;
|
|
271
|
+
translateControlPath(path: string): string;
|
|
272
|
+
protected editRow(event: Event | undefined, row: AsyncTableElement<T>, opts?: {
|
|
273
|
+
focusColumn?: string;
|
|
274
|
+
}): Promise<boolean>;
|
|
275
|
+
/**
|
|
276
|
+
* Try to select row, by row.id, or by data. WIll use EntityUtils.equals()
|
|
277
|
+
* @param id
|
|
278
|
+
* @param data
|
|
279
|
+
* @protected
|
|
280
|
+
*/
|
|
281
|
+
protected selectRowByIdOrData(id: number, data?: T): Promise<boolean>;
|
|
282
|
+
/**
|
|
283
|
+
* return the selected row if unique in selection
|
|
284
|
+
*/
|
|
285
|
+
protected get singleSelectedRow(): AsyncTableElement<T>;
|
|
286
|
+
protected canDeleteRows(rows: AsyncTableElement<T>[], opts?: {
|
|
287
|
+
interactive?: boolean;
|
|
288
|
+
}): Promise<boolean>;
|
|
289
|
+
protected canCancelRows(rows?: AsyncTableElement<T>[], opts?: {
|
|
290
|
+
interactive?: boolean;
|
|
291
|
+
}): Promise<boolean>;
|
|
292
|
+
protected saveBeforeAction(saveAction: SaveActionType): Promise<boolean>;
|
|
293
|
+
/**
|
|
294
|
+
* Open a row detail view. By default, will to open row detail page.
|
|
295
|
+
* Can be overridden by subclasses, BUT prefer to subscribe on onOpenRow
|
|
296
|
+
* @param id
|
|
297
|
+
* @param row
|
|
298
|
+
* @protected
|
|
299
|
+
*/
|
|
300
|
+
protected openRow(id: ID, row: AsyncTableElement<T>): Promise<boolean>;
|
|
301
|
+
protected openNewRowDetail(event?: any): Promise<boolean>;
|
|
302
|
+
protected getRequiredColumns(): string[];
|
|
303
|
+
protected getUserColumns(): string[];
|
|
304
|
+
protected getSortedColumn(): MatSortable;
|
|
305
|
+
protected getPageSize(): number;
|
|
306
|
+
protected getDisplayColumns(): string[];
|
|
307
|
+
/**
|
|
308
|
+
* Recompute display columns
|
|
309
|
+
*
|
|
310
|
+
* @protected
|
|
311
|
+
*/
|
|
312
|
+
protected updateColumns(): void;
|
|
313
|
+
protected registerSubscription(sub: Subscription): void;
|
|
314
|
+
protected unregisterSubscription(sub: Subscription): void;
|
|
315
|
+
protected registerAutocompleteField<E = any, EF = any>(fieldName: string, options?: MatAutocompleteFieldAddOptions<E, EF>): MatAutocompleteFieldConfig<E, EF>;
|
|
316
|
+
protected getI18nColumnName(columnName: string): string;
|
|
317
|
+
protected generateTableId(): string;
|
|
318
|
+
protected addRowToTable(insertAt?: number, opts?: {
|
|
319
|
+
focusColumn?: string;
|
|
320
|
+
editing?: boolean;
|
|
321
|
+
emitEvent?: boolean;
|
|
322
|
+
}): Promise<AsyncTableElement<T> | undefined>;
|
|
323
|
+
protected registerCellValueChanges(name: string, formPath?: string, emitInitialValue?: boolean): Observable<any>;
|
|
324
|
+
protected setShowColumn(columnName: string, show: boolean, opts?: {
|
|
325
|
+
emitEvent?: boolean;
|
|
326
|
+
}): void;
|
|
327
|
+
protected getShowColumn(columnName: string): boolean;
|
|
328
|
+
protected startsWithUpperCase(input: string, search: string): boolean;
|
|
329
|
+
protected markForCheck(): void;
|
|
330
|
+
protected askDeleteConfirmation(event?: Event, rows?: AsyncTableElement<T>[]): Promise<boolean>;
|
|
331
|
+
protected askCancelConfirmation(event?: Event, rows?: AsyncTableElement<T>[]): Promise<boolean>;
|
|
332
|
+
protected askRestoreConfirmation(event?: Event): Promise<boolean>;
|
|
333
|
+
protected showToast(opts: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
334
|
+
protected resetError(opts?: {
|
|
335
|
+
emitEvent?: boolean;
|
|
336
|
+
}): void;
|
|
337
|
+
protected getRowError(row?: AsyncTableElement<T>, opts?: FormErrorTranslatorOptions): string;
|
|
338
|
+
protected setError(value: string, opts?: {
|
|
339
|
+
emitEvent?: boolean;
|
|
340
|
+
}): void;
|
|
341
|
+
/**
|
|
342
|
+
* Compare data equality (default by id)
|
|
343
|
+
* Can be overridden to add additional properties to compare
|
|
344
|
+
*
|
|
345
|
+
* @param d1
|
|
346
|
+
* @param d2
|
|
347
|
+
* @protected
|
|
348
|
+
*/
|
|
349
|
+
protected equals(d1: T, d2: T): boolean;
|
|
350
|
+
protected markRowAsDirty(row?: AsyncTableElement<T>, opts?: {
|
|
351
|
+
onlySelf?: boolean;
|
|
352
|
+
emitEVent?: boolean;
|
|
353
|
+
}): void;
|
|
354
|
+
private listenSortAndPaginationEvents;
|
|
355
|
+
private editRowById;
|
|
356
|
+
private setLoading;
|
|
357
|
+
private deleteNewRow;
|
|
358
|
+
private deleteExistingRow;
|
|
359
|
+
private cancelExistingRow;
|
|
360
|
+
private checkIfRowPristine;
|
|
361
|
+
private checkIfPristine;
|
|
362
|
+
private applyFilter;
|
|
363
|
+
private listenDatasourceLoading;
|
|
364
|
+
private startCellValueChanges;
|
|
365
|
+
private stopCellValueChanges;
|
|
366
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppAsyncTable<any, any, any>, never>;
|
|
367
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AppAsyncTable<any, any, any>, never, never, { "settingsId": "settingsId"; "debug": "debug"; "i18nColumnPrefix": "i18nColumnPrefix"; "i18nColumnSuffix": "i18nColumnSuffix"; "autoLoad": "autoLoad"; "readOnly": "readOnly"; "inlineEdition": "inlineEdition"; "focusFirstColumn": "focusFirstColumn"; "confirmBeforeDelete": "confirmBeforeDelete"; "confirmBeforeCancel": "confirmBeforeCancel"; "undoableDeletion": "undoableDeletion"; "saveBeforeDelete": "saveBeforeDelete"; "keepEditedRowOnSave": "keepEditedRowOnSave"; "saveBeforeSort": "saveBeforeSort"; "saveBeforeFilter": "saveBeforeFilter"; "propagateRowError": "propagateRowError"; "defaultSortBy": "defaultSortBy"; "defaultSortDirection": "defaultSortDirection"; "defaultPageSize": "defaultPageSize"; "defaultPageSizeOptions": "defaultPageSizeOptions"; "focusColumn": "focusColumn"; "dataSource": "dataSource"; "filter": "filter"; "disabled": "disabled"; "paginator": "paginator"; }, { "onRefresh": "onRefresh"; "onOpenRow": "onOpenRow"; "onNewRow": "onNewRow"; "onStartEditingRow": "onStartEditingRow"; "onConfirmEditCreateRow": "onConfirmEditCreateRow"; "onCancelOrDeleteRow": "onCancelOrDeleteRow"; "onBeforeDeleteRows": "onBeforeDeleteRows"; "onBeforeCancelRows": "onBeforeCancelRows"; "onBeforeSave": "onBeforeSave"; "onAfterDeletedRows": "onAfterDeletedRows"; "onSort": "onSort"; "onDirty": "onDirty"; "onError": "onError"; }, never, never, false>;
|
|
368
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { AsyncTableDataSource, AsyncTableElement, TableDataSourceConfig, ValidatorService } from '@e-is/ngx-material-table';
|
|
2
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
+
import { Entity, IEntity } from '../services/model/entity.model';
|
|
4
|
+
import { OnDestroy } from '@angular/core';
|
|
5
|
+
import { SortDirection } from '@angular/material/sort';
|
|
6
|
+
import { CollectionViewer } from '@angular/cdk/collections';
|
|
7
|
+
import { EntitiesServiceWatchOptions, FetchMoreFn, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
|
|
8
|
+
import { IEntitiesTableDataSource } from './table.model';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export interface EntitiesAsyncTableDataSourceConfig<T extends Entity<T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any> extends TableDataSourceConfig {
|
|
11
|
+
onRowCreated?: (row: AsyncTableElement<T>) => Promise<void> | void;
|
|
12
|
+
saveOnlyDirtyRows?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
dataServiceOptions?: WO & SO;
|
|
18
|
+
watchAllOptions?: WO;
|
|
19
|
+
saveAllOptions?: SO;
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
22
|
+
export declare class EntitiesAsyncTableDataSource<T extends IEntity<T, ID>, F = any, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any, V extends ValidatorService = ValidatorService, C extends EntitiesAsyncTableDataSourceConfig<T, ID, WO, SO> = EntitiesAsyncTableDataSourceConfig<T, ID, WO, SO>, R extends AsyncTableElement<T> = AsyncTableElement<T>> extends AsyncTableDataSource<T, V, C, R> implements IEntitiesTableDataSource<R>, OnDestroy {
|
|
23
|
+
readonly dataService: IEntitiesService<T, F, WO>;
|
|
24
|
+
private readonly _entityName;
|
|
25
|
+
protected _debug: boolean;
|
|
26
|
+
protected _creating: boolean;
|
|
27
|
+
protected _saving: boolean;
|
|
28
|
+
protected _fetchMoreFn: FetchMoreFn<LoadResult<T>>;
|
|
29
|
+
protected _stopWatchSubject: Subject<void>;
|
|
30
|
+
loadingSubject: BehaviorSubject<boolean>;
|
|
31
|
+
get watchAllOptions(): WO;
|
|
32
|
+
set watchAllOptions(value: WO);
|
|
33
|
+
get saveAllOptions(): SO;
|
|
34
|
+
set saveAllOptions(value: SO);
|
|
35
|
+
get loaded(): boolean;
|
|
36
|
+
get loading(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new TableDataSource instance, that can be used as datasource of `@angular/cdk` data-table.
|
|
39
|
+
*
|
|
40
|
+
* @param dataService A service to load and save data
|
|
41
|
+
* @param dataType Type of data contained by the Table. If not specified, then `data` with at least one element must be specified.
|
|
42
|
+
* @param environment
|
|
43
|
+
* @param validatorService Service that create instances of the FormGroup used to validate row fields.
|
|
44
|
+
* @param config Additional configuration for table.
|
|
45
|
+
*/
|
|
46
|
+
constructor(dataType: new () => T, dataService: IEntitiesService<T, F, WO>, validatorService?: V, options?: C);
|
|
47
|
+
ngOnDestroy(): void;
|
|
48
|
+
watchAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: Partial<F>): Observable<LoadResult<T>>;
|
|
49
|
+
protected updateDatasourceFromRows(rows: R[]): void;
|
|
50
|
+
save(): Promise<boolean>;
|
|
51
|
+
updateDatasource(data: T[], opts?: {
|
|
52
|
+
emitEvent: boolean;
|
|
53
|
+
}): void;
|
|
54
|
+
connect(collectionViewer: CollectionViewer): Observable<R[] | ReadonlyArray<R>>;
|
|
55
|
+
disconnect(collectionViewer?: CollectionViewer): void;
|
|
56
|
+
waitIdle(debounceTimeMs?: number): Promise<any>;
|
|
57
|
+
confirmCreate(row: R): Promise<boolean>;
|
|
58
|
+
confirmEdit(row: R): Promise<boolean>;
|
|
59
|
+
startEdit(row: R): Promise<boolean>;
|
|
60
|
+
handleError(error: any, message: string): Observable<LoadResult<T>>;
|
|
61
|
+
handleServiceError(error: any): void;
|
|
62
|
+
delete(id: number): Promise<boolean>;
|
|
63
|
+
deleteAll(rows: R[]): Promise<any>;
|
|
64
|
+
getRow(id: number): R;
|
|
65
|
+
getRows(): R[];
|
|
66
|
+
getEditingRows(): R[];
|
|
67
|
+
getSingleEditingRow(): R;
|
|
68
|
+
hasSomeEditingRow(): boolean;
|
|
69
|
+
createNew(insertAt?: number, opts?: {
|
|
70
|
+
editing: boolean;
|
|
71
|
+
}): Promise<R | undefined>;
|
|
72
|
+
getData(): T[];
|
|
73
|
+
fetchMore(opts?: {
|
|
74
|
+
emitEvent: boolean;
|
|
75
|
+
}): Promise<boolean>;
|
|
76
|
+
markAsLoading(): void;
|
|
77
|
+
markAsLoaded(): void;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesAsyncTableDataSource<any, any, any, any, any, any, any, any>, never>;
|
|
79
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EntitiesAsyncTableDataSource<any, any, any, any, any, any, any, any>, never, never, {}, {}, never, never, false>;
|
|
80
|
+
}
|