@sumaris-net/ngx-components 18.14.0 → 18.14.1
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/esm2022/public_api.mjs +390 -0
- package/esm2022/src/app/admin/admin-routing.module.mjs +34 -0
- package/esm2022/src/app/admin/admin.module.mjs +32 -0
- package/esm2022/src/app/admin/services/filter/person.filter.mjs +76 -0
- package/esm2022/src/app/admin/services/person.service.mjs +184 -0
- package/esm2022/src/app/admin/services/validator/person.validator.mjs +72 -0
- package/esm2022/src/app/admin/users/users.mjs +379 -0
- package/esm2022/src/app/admin/users/users.module.mjs +56 -0
- package/esm2022/src/app/core/about/about.modal.mjs +86 -0
- package/esm2022/src/app/core/about/about.module.mjs +22 -0
- package/esm2022/src/app/core/account/account.module.mjs +75 -0
- package/esm2022/src/app/core/account/account.page.mjs +364 -0
- package/esm2022/src/app/core/account/new-token.form.mjs +106 -0
- package/esm2022/src/app/core/account/new-token.modal.mjs +66 -0
- package/esm2022/src/app/core/account/password/change-password.form.mjs +63 -0
- package/esm2022/src/app/core/account/password/change-password.module.mjs +22 -0
- package/esm2022/src/app/core/account/password/change-password.page.mjs +150 -0
- package/esm2022/src/app/core/account/token.table.mjs +157 -0
- package/esm2022/src/app/core/auth/auth.form.mjs +159 -0
- package/esm2022/src/app/core/auth/auth.modal.mjs +76 -0
- package/esm2022/src/app/core/auth/auth.module.mjs +56 -0
- package/esm2022/src/app/core/auth/reset-password.modal.mjs +89 -0
- package/esm2022/src/app/core/core.module.mjs +151 -0
- package/esm2022/src/app/core/core.testing.module.mjs +107 -0
- package/esm2022/src/app/core/form/array/form-array.mjs +328 -0
- package/esm2022/src/app/core/form/array/testing/form-array-test.module.mjs +23 -0
- package/esm2022/src/app/core/form/array/testing/form-array.test.mjs +94 -0
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.component.mjs +108 -0
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.module.mjs +31 -0
- package/esm2022/src/app/core/form/entity/editor.class.mjs +268 -0
- package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +420 -0
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +741 -0
- package/esm2022/src/app/core/form/entity/entity-metadata.component.mjs +24 -0
- package/esm2022/src/app/core/form/entity/entity.module.mjs +32 -0
- package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +190 -0
- package/esm2022/src/app/core/form/form-container.class.mjs +341 -0
- package/esm2022/src/app/core/form/form.class.mjs +337 -0
- package/esm2022/src/app/core/form/form.module.mjs +70 -0
- package/esm2022/src/app/core/form/form.utils.mjs +232 -0
- package/esm2022/src/app/core/form/list/list.form.mjs +235 -0
- package/esm2022/src/app/core/form/list/list.module.mjs +31 -0
- package/esm2022/src/app/core/form/properties/properties.form.mjs +317 -0
- package/esm2022/src/app/core/form/properties/properties.module.mjs +37 -0
- package/esm2022/src/app/core/form/properties/properties.table.mjs +264 -0
- package/esm2022/src/app/core/form/properties/properties.utils.mjs +304 -0
- package/esm2022/src/app/core/form/properties/property.validator.mjs +70 -0
- package/esm2022/src/app/core/form/properties/testing/properties-form.test.mjs +104 -0
- package/esm2022/src/app/core/form/properties/testing/properties-form.testing.module.mjs +23 -0
- package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.mjs +73 -0
- package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +30 -0
- package/esm2022/src/app/core/form/text-popover/text-popover.component.mjs +161 -0
- package/esm2022/src/app/core/form/text-popover/text-popover.module.mjs +31 -0
- package/esm2022/src/app/core/form/username/username.form.mjs +55 -0
- package/esm2022/src/app/core/form/username/username.module.mjs +20 -0
- package/esm2022/src/app/core/graphql/graphql.module.mjs +14 -0
- package/esm2022/src/app/core/graphql/graphql.service.mjs +781 -0
- package/esm2022/src/app/core/graphql/graphql.utils.mjs +119 -0
- package/esm2022/src/app/core/home/home.mjs +403 -0
- package/esm2022/src/app/core/home/home.module.mjs +54 -0
- package/esm2022/src/app/core/icon/icon.component.mjs +40 -0
- package/esm2022/src/app/core/icon/icon.module.mjs +20 -0
- package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +394 -0
- package/esm2022/src/app/core/install/install-upgrade-card.module.mjs +31 -0
- package/esm2022/src/app/core/menu/menu.component.mjs +258 -0
- package/esm2022/src/app/core/menu/menu.model.mjs +272 -0
- package/esm2022/src/app/core/menu/menu.module.mjs +47 -0
- package/esm2022/src/app/core/menu/menu.service.mjs +666 -0
- package/esm2022/src/app/core/menu/sub-menu-tab.directive.mjs +109 -0
- package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +50 -0
- package/esm2022/src/app/core/menu/testing/menu.testing.mjs +158 -0
- package/esm2022/src/app/core/menu/testing/menu.testing.module.mjs +60 -0
- package/esm2022/src/app/core/offline/update-offline-mode-card.component.mjs +28 -0
- package/esm2022/src/app/core/offline/update-offline-mode-card.module.mjs +31 -0
- package/esm2022/src/app/core/peer/select-peer.modal.mjs +344 -0
- package/esm2022/src/app/core/peer/select-peer.module.mjs +36 -0
- package/esm2022/src/app/core/register/register-confirm.page.mjs +90 -0
- package/esm2022/src/app/core/register/register.form.mjs +194 -0
- package/esm2022/src/app/core/register/register.modal.mjs +55 -0
- package/esm2022/src/app/core/register/register.module.mjs +23 -0
- package/esm2022/src/app/core/services/account.service.mjs +1358 -0
- package/esm2022/src/app/core/services/auth-guard.service.mjs +74 -0
- package/esm2022/src/app/core/services/base-entity-service.class.mjs +485 -0
- package/esm2022/src/app/core/services/base-graphql-service.class.mjs +230 -0
- package/esm2022/src/app/core/services/base58.mjs +83 -0
- package/esm2022/src/app/core/services/config/core.config.mjs +258 -0
- package/esm2022/src/app/core/services/config.service.mjs +384 -0
- package/esm2022/src/app/core/services/crypto.service.mjs +107 -0
- package/esm2022/src/app/core/services/errors.mjs +54 -0
- package/esm2022/src/app/core/services/local-settings.service.mjs +517 -0
- package/esm2022/src/app/core/services/model/account.model.mjs +178 -0
- package/esm2022/src/app/core/services/model/config.model.mjs +107 -0
- package/esm2022/src/app/core/services/model/department.model.mjs +35 -0
- package/esm2022/src/app/core/services/model/entity.decorators.mjs +97 -0
- package/esm2022/src/app/core/services/model/entity.model.mjs +338 -0
- package/esm2022/src/app/core/services/model/filter.model.mjs +93 -0
- package/esm2022/src/app/core/services/model/history.model.mjs +2 -0
- package/esm2022/src/app/core/services/model/model.enum.mjs +11 -0
- package/esm2022/src/app/core/services/model/node-feature.model.mjs +31 -0
- package/esm2022/src/app/core/services/model/peer.model.mjs +113 -0
- package/esm2022/src/app/core/services/model/person.model.mjs +114 -0
- package/esm2022/src/app/core/services/model/referential.model.mjs +205 -0
- package/esm2022/src/app/core/services/model/settings.model.mjs +6 -0
- package/esm2022/src/app/core/services/model/token.model.mjs +57 -0
- package/esm2022/src/app/core/services/model/tree-item-entity.model.mjs +220 -0
- package/esm2022/src/app/core/services/network.service.mjs +649 -0
- package/esm2022/src/app/core/services/network.types.mjs +2 -0
- package/esm2022/src/app/core/services/network.utils.mjs +35 -0
- package/esm2022/src/app/core/services/pipes/account.pipes.mjs +38 -0
- package/esm2022/src/app/core/services/pipes/department-to-string.pipe.mjs +23 -0
- package/esm2022/src/app/core/services/pipes/person-to-string.pipe.mjs +23 -0
- package/esm2022/src/app/core/services/pipes/pipes.module.mjs +54 -0
- package/esm2022/src/app/core/services/pipes/referential-to-string.pipe.mjs +21 -0
- package/esm2022/src/app/core/services/pipes/usage-mode.pipes.mjs +37 -0
- package/esm2022/src/app/core/services/platform.service.mjs +627 -0
- package/esm2022/src/app/core/services/storage/entities-storage.service.mjs +427 -0
- package/esm2022/src/app/core/services/storage/entity-store.class.mjs +450 -0
- package/esm2022/src/app/core/services/testing/referential-filter.model.mjs +25 -0
- package/esm2022/src/app/core/services/testing/referential.validator.mjs +46 -0
- package/esm2022/src/app/core/services/validator/account.validator.mjs +45 -0
- package/esm2022/src/app/core/services/validator/base.validator.class.mjs +49 -0
- package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +57 -0
- package/esm2022/src/app/core/services/validator/user-settings.validator.mjs +27 -0
- package/esm2022/src/app/core/services/validator/user-token.validator.mjs +55 -0
- package/esm2022/src/app/core/settings/settings.module.mjs +23 -0
- package/esm2022/src/app/core/settings/settings.page.mjs +403 -0
- package/esm2022/src/app/core/table/async-table.class.mjs +1813 -0
- package/esm2022/src/app/core/table/column/actions-column.component.mjs +130 -0
- package/esm2022/src/app/core/table/column/nav-actions-column.component.mjs +117 -0
- package/esm2022/src/app/core/table/column/row-field.component.mjs +116 -0
- package/esm2022/src/app/core/table/entities-async-table-datasource.class.mjs +415 -0
- package/esm2022/src/app/core/table/entities-table-datasource.class.mjs +407 -0
- package/esm2022/src/app/core/table/memory-table.class.mjs +57 -0
- package/esm2022/src/app/core/table/table-select-columns.component.mjs +46 -0
- package/esm2022/src/app/core/table/table.class.mjs +1869 -0
- package/esm2022/src/app/core/table/table.model.mjs +21 -0
- package/esm2022/src/app/core/table/table.module.mjs +51 -0
- package/esm2022/src/app/core/table/table.pipes.mjs +77 -0
- package/esm2022/src/app/core/table/table.utils.mjs +34 -0
- package/esm2022/src/app/core/table/testing/table-validator.service.mjs +32 -0
- package/esm2022/src/app/core/table/testing/table.testing.mjs +329 -0
- package/esm2022/src/app/core/table/testing/table.testing.module.mjs +25 -0
- package/esm2022/src/app/core/table/testing/table2-validator.service.mjs +25 -0
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +273 -0
- package/esm2022/src/app/shared/alerts.mjs +243 -0
- package/esm2022/src/app/shared/audio/audio.mjs +255 -0
- package/esm2022/src/app/shared/audio/audio.testing.mjs +32 -0
- package/esm2022/src/app/shared/audio/audio.testing.module.mjs +30 -0
- package/esm2022/src/app/shared/capacitor/keyboard.mjs +42 -0
- package/esm2022/src/app/shared/capacitor/plugins.mjs +9 -0
- package/esm2022/src/app/shared/constants.mjs +16 -0
- package/esm2022/src/app/shared/dates.mjs +180 -0
- package/esm2022/src/app/shared/debug/debug-service.class.mjs +3 -0
- package/esm2022/src/app/shared/debug/debug.component.mjs +44 -0
- package/esm2022/src/app/shared/debug/debug.module.mjs +23 -0
- package/esm2022/src/app/shared/directives/autofocus.directive.mjs +91 -0
- package/esm2022/src/app/shared/directives/autoresize.directive.mjs +75 -0
- package/esm2022/src/app/shared/directives/autotitle.directive.mjs +30 -0
- package/esm2022/src/app/shared/directives/directives.module.mjs +24 -0
- package/esm2022/src/app/shared/directives/drag-and-drop.directive.mjs +52 -0
- package/esm2022/src/app/shared/directives/ng-var.directive.mjs +33 -0
- package/esm2022/src/app/shared/directives/resizable/resizable.component.mjs +62 -0
- package/esm2022/src/app/shared/directives/resizable/resizable.directive.mjs +45 -0
- package/esm2022/src/app/shared/directives/resizable/resizable.module.mjs +17 -0
- package/esm2022/src/app/shared/directives/throttled-click.directive.mjs +43 -0
- package/esm2022/src/app/shared/events.mjs +64 -0
- package/esm2022/src/app/shared/file/csv.utils.mjs +97 -0
- package/esm2022/src/app/shared/file/file.service.mjs +118 -0
- package/esm2022/src/app/shared/file/file.utils.mjs +117 -0
- package/esm2022/src/app/shared/file/images.utils.mjs +186 -0
- package/esm2022/src/app/shared/file/json.utils.mjs +58 -0
- package/esm2022/src/app/shared/file/uri.utils.mjs +29 -0
- package/esm2022/src/app/shared/file/url.utils.mjs +195 -0
- package/esm2022/src/app/shared/focusable.mjs +6 -0
- package/esm2022/src/app/shared/form/field.component.mjs +393 -0
- package/esm2022/src/app/shared/form/field.model.mjs +82 -0
- package/esm2022/src/app/shared/form/loading-spinner.mjs +35 -0
- package/esm2022/src/app/shared/forms.mjs +573 -0
- package/esm2022/src/app/shared/functions.mjs +672 -0
- package/esm2022/src/app/shared/geolocation/geolocation.utils.mjs +86 -0
- package/esm2022/src/app/shared/gesture/gesture-config.mjs +46 -0
- package/esm2022/src/app/shared/gesture/hammer.utils.mjs +2 -0
- package/esm2022/src/app/shared/graph/colors.utils.mjs +60 -0
- package/esm2022/src/app/shared/graph/graph-colors.mjs +214 -0
- package/esm2022/src/app/shared/guard/component-dirty.guard.mjs +65 -0
- package/esm2022/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +23 -0
- package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +147 -0
- package/esm2022/src/app/shared/hotkeys/shared-hotkeys.module.mjs +24 -0
- package/esm2022/src/app/shared/http/http.utils.mjs +56 -0
- package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +443 -0
- package/esm2022/src/app/shared/image/gallery/image-gallery.module.mjs +62 -0
- package/esm2022/src/app/shared/image/gallery/testing/gallegry.model.testing.mjs +26 -0
- package/esm2022/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +87 -0
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +37 -0
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +59 -0
- package/esm2022/src/app/shared/image/image.model.mjs +2 -0
- package/esm2022/src/app/shared/image/image.module.mjs +24 -0
- package/esm2022/src/app/shared/image/image.service.mjs +109 -0
- package/esm2022/src/app/shared/inputs.mjs +279 -0
- package/esm2022/src/app/shared/interceptors/progess.interceptor.mjs +27 -0
- package/esm2022/src/app/shared/logging/log-level.model.mjs +48 -0
- package/esm2022/src/app/shared/logging/logger.model.mjs +47 -0
- package/esm2022/src/app/shared/logging/logging-service.class.mjs +125 -0
- package/esm2022/src/app/shared/logging/logging-service.config.mjs +2 -0
- package/esm2022/src/app/shared/logging/logging-service.module.mjs +30 -0
- package/esm2022/src/app/shared/markdown/markdown.component.mjs +321 -0
- package/esm2022/src/app/shared/markdown/markdown.directive.mjs +34 -0
- package/esm2022/src/app/shared/markdown/markdown.modal.mjs +99 -0
- package/esm2022/src/app/shared/markdown/markdown.module.mjs +87 -0
- package/esm2022/src/app/shared/markdown/markdown.service.mjs +204 -0
- package/esm2022/src/app/shared/markdown/markdown.utils.mjs +87 -0
- package/esm2022/src/app/shared/markdown/testing/markdown.test.mjs +55 -0
- package/esm2022/src/app/shared/markdown/testing/markdown.testing.module.mjs +30 -0
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.config.mjs +46 -0
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +1313 -0
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +79 -0
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.utils.mjs +18 -0
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +242 -0
- package/esm2022/src/app/shared/material/badge/badge.directive.mjs +251 -0
- package/esm2022/src/app/shared/material/badge/badge.module.mjs +20 -0
- package/esm2022/src/app/shared/material/badge/badge.test.mjs +42 -0
- package/esm2022/src/app/shared/material/boolean/boolean.module.mjs +67 -0
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +371 -0
- package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +72 -0
- package/esm2022/src/app/shared/material/chips/chips.module.mjs +71 -0
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +836 -0
- package/esm2022/src/app/shared/material/chips/testing/chips.test.mjs +151 -0
- package/esm2022/src/app/shared/material/datetime/datetime.module.mjs +76 -0
- package/esm2022/src/app/shared/material/datetime/material.date.mjs +471 -0
- package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +457 -0
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +693 -0
- package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +136 -0
- package/esm2022/src/app/shared/material/datetime/testing/mat-date.test.mjs +127 -0
- package/esm2022/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +118 -0
- package/esm2022/src/app/shared/material/duration/duration.module.mjs +61 -0
- package/esm2022/src/app/shared/material/duration/duration.utils.mjs +16 -0
- package/esm2022/src/app/shared/material/duration/material.duration.mjs +283 -0
- package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +85 -0
- package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +319 -0
- package/esm2022/src/app/shared/material/latlong/material.latlong-input.mjs +432 -0
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +231 -0
- package/esm2022/src/app/shared/material/latlong/material.latlong.module.mjs +68 -0
- package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +137 -0
- package/esm2022/src/app/shared/material/material.animations.mjs +200 -0
- package/esm2022/src/app/shared/material/material.config.mjs +3 -0
- package/esm2022/src/app/shared/material/material.module.mjs +229 -0
- package/esm2022/src/app/shared/material/material.testing.module.mjs +245 -0
- package/esm2022/src/app/shared/material/paginator/material.paginator-i18n.mjs +51 -0
- package/esm2022/src/app/shared/material/stepper/material.stepper-i18n.mjs +23 -0
- package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +379 -0
- package/esm2022/src/app/shared/material/swipe/swipe.module.mjs +52 -0
- package/esm2022/src/app/shared/material/swipe/testing/swipe.test.mjs +67 -0
- package/esm2022/src/app/shared/material/test/test-component.mjs +264 -0
- package/esm2022/src/app/shared/material/testing/common.test.mjs +111 -0
- package/esm2022/src/app/shared/material/text/testing/text-form.testing.mjs +42 -0
- package/esm2022/src/app/shared/material/text/text-form.component.mjs +205 -0
- package/esm2022/src/app/shared/material/text/text-form.module.mjs +63 -0
- package/esm2022/src/app/shared/modules.mjs +12 -0
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +303 -0
- package/esm2022/src/app/shared/named-filter/named-filter.model.mjs +49 -0
- package/esm2022/src/app/shared/named-filter/named-filter.module.mjs +24 -0
- package/esm2022/src/app/shared/named-filter/named-filter.service.mjs +69 -0
- package/esm2022/src/app/shared/named-filter/testing/named-filter-selector.testing.mjs +74 -0
- package/esm2022/src/app/shared/named-filter/testing/named-filter.testing.module.mjs +28 -0
- package/esm2022/src/app/shared/observables.mjs +100 -0
- package/esm2022/src/app/shared/pipes/arrays.pipe.mjs +217 -0
- package/esm2022/src/app/shared/pipes/badge.pipes.mjs +25 -0
- package/esm2022/src/app/shared/pipes/colors.pipe.mjs +29 -0
- package/esm2022/src/app/shared/pipes/date-diff-duration.pipe.mjs +50 -0
- package/esm2022/src/app/shared/pipes/date-format.pipe.mjs +72 -0
- package/esm2022/src/app/shared/pipes/date-from-now.pipe.mjs +28 -0
- package/esm2022/src/app/shared/pipes/dates.pipe.mjs +18 -0
- package/esm2022/src/app/shared/pipes/display-with.pipe.mjs +23 -0
- package/esm2022/src/app/shared/pipes/duration.pipe.mjs +34 -0
- package/esm2022/src/app/shared/pipes/file-size.pipe.mjs +53 -0
- package/esm2022/src/app/shared/pipes/form.pipes.mjs +219 -0
- package/esm2022/src/app/shared/pipes/highlight.pipe.mjs +50 -0
- package/esm2022/src/app/shared/pipes/html.pipes.mjs +69 -0
- package/esm2022/src/app/shared/pipes/latlong-format.pipe.mjs +42 -0
- package/esm2022/src/app/shared/pipes/maps.pipe.mjs +65 -0
- package/esm2022/src/app/shared/pipes/maskito.pipe.mjs +67 -0
- package/esm2022/src/app/shared/pipes/math.pipes.mjs +77 -0
- package/esm2022/src/app/shared/pipes/ng-init.pipe.mjs +19 -0
- package/esm2022/src/app/shared/pipes/number-format.pipe.mjs +17 -0
- package/esm2022/src/app/shared/pipes/observable.pipes.mjs +63 -0
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +285 -0
- package/esm2022/src/app/shared/pipes/property.pipes.mjs +135 -0
- package/esm2022/src/app/shared/pipes/selection.pipes.mjs +179 -0
- package/esm2022/src/app/shared/pipes/string.pipes.mjs +183 -0
- package/esm2022/src/app/shared/pipes/translate-context.pipe.mjs +44 -0
- package/esm2022/src/app/shared/pipes/types.pipes.mjs +74 -0
- package/esm2022/src/app/shared/pipes/url.pipes.mjs +35 -0
- package/esm2022/src/app/shared/platforms.mjs +81 -0
- package/esm2022/src/app/shared/print/print.service.mjs +305 -0
- package/esm2022/src/app/shared/regexps.mjs +96 -0
- package/esm2022/src/app/shared/rx-state/rx-state.decorators.mjs +217 -0
- package/esm2022/src/app/shared/rx-state/rx-state.module.mjs +19 -0
- package/esm2022/src/app/shared/rx-state/rx-state.types.mjs +2 -0
- package/esm2022/src/app/shared/services/entity-service.class.mjs +10 -0
- package/esm2022/src/app/shared/services/job.utils.mjs +92 -0
- package/esm2022/src/app/shared/services/memory-entity-service.class.mjs +353 -0
- package/esm2022/src/app/shared/services/progress-bar.service.mjs +31 -0
- package/esm2022/src/app/shared/services/startable-observable-service.class.mjs +118 -0
- package/esm2022/src/app/shared/services/startable-service.class.mjs +107 -0
- package/esm2022/src/app/shared/services/translate-context.service.mjs +107 -0
- package/esm2022/src/app/shared/services/validator-service.class.mjs +2 -0
- package/esm2022/src/app/shared/services.mjs +85 -0
- package/esm2022/src/app/shared/shared-routing.module.mjs +72 -0
- package/esm2022/src/app/shared/shared.module.mjs +229 -0
- package/esm2022/src/app/shared/shared.testing.module.mjs +108 -0
- package/esm2022/src/app/shared/storage/storage-explorer.component.mjs +279 -0
- package/esm2022/src/app/shared/storage/storage-explorer.module.mjs +42 -0
- package/esm2022/src/app/shared/storage/storage-explorer.testing-routing.module.mjs +27 -0
- package/esm2022/src/app/shared/storage/storage-explorer.testing.module.mjs +25 -0
- package/esm2022/src/app/shared/storage/storage.service.mjs +134 -0
- package/esm2022/src/app/shared/storage/storage.utils.mjs +13 -0
- package/esm2022/src/app/shared/testing/maskito.test.mjs +41 -0
- package/esm2022/src/app/shared/testing/observable.test.mjs +94 -0
- package/esm2022/src/app/shared/testing/tests.page.mjs +37 -0
- package/esm2022/src/app/shared/toast/toast.testing.mjs +54 -0
- package/esm2022/src/app/shared/toast/toast.testing.module.mjs +31 -0
- package/esm2022/src/app/shared/toast/toasts.mjs +134 -0
- package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +62 -0
- package/esm2022/src/app/shared/toolbar/toolbar.mjs +267 -0
- package/esm2022/src/app/shared/toolbar/toolbar.module.mjs +26 -0
- package/esm2022/src/app/shared/types.mjs +2 -0
- package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.mjs +59 -0
- package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +30 -0
- package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +109 -0
- package/esm2022/src/app/shared/upload-file/upload-file.component.mjs +216 -0
- package/esm2022/src/app/shared/upload-file/upload-file.model.mjs +26 -0
- package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +115 -0
- package/esm2022/src/app/shared/validator/validators.mjs +621 -0
- package/esm2022/src/app/shared/version/versions.mjs +81 -0
- package/esm2022/src/app/social/config/social.config.mjs +9 -0
- package/esm2022/src/app/social/feed/discourse/discourse-feed.service.mjs +179 -0
- package/esm2022/src/app/social/feed/discourse/discourse.model.mjs +2 -0
- package/esm2022/src/app/social/feed/discourse/discourse.utils.mjs +168 -0
- package/esm2022/src/app/social/feed/feed.component.mjs +121 -0
- package/esm2022/src/app/social/feed/feed.directive.mjs +151 -0
- package/esm2022/src/app/social/feed/feed.model.mjs +68 -0
- package/esm2022/src/app/social/feed/feed.module.mjs +22 -0
- package/esm2022/src/app/social/feed/feed.service.mjs +3 -0
- package/esm2022/src/app/social/job/job.module.mjs +23 -0
- package/esm2022/src/app/social/job/progression/job-progression.component.mjs +35 -0
- package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +235 -0
- package/esm2022/src/app/social/job/progression/job-progression.list.mjs +47 -0
- package/esm2022/src/app/social/job/progression/job-progression.model.mjs +29 -0
- package/esm2022/src/app/social/job/progression/job-progression.service.mjs +91 -0
- package/esm2022/src/app/social/job/testing/job-progression.testing.mjs +38 -0
- package/esm2022/src/app/social/job/testing/job-progression.testing.service.mjs +34 -0
- package/esm2022/src/app/social/job/testing/job.testing.module.mjs +22 -0
- package/esm2022/src/app/social/message/message.form.mjs +141 -0
- package/esm2022/src/app/social/message/message.modal.mjs +110 -0
- package/esm2022/src/app/social/message/message.model.mjs +75 -0
- package/esm2022/src/app/social/message/message.module.mjs +22 -0
- package/esm2022/src/app/social/message/message.service.mjs +110 -0
- package/esm2022/src/app/social/social.errors.mjs +10 -0
- package/esm2022/src/app/social/social.module.mjs +22 -0
- package/esm2022/src/app/social/social.testing.module.mjs +40 -0
- package/esm2022/src/app/social/user-event/notification/user-event-notification.icon.mjs +187 -0
- package/esm2022/src/app/social/user-event/notification/user-event-notification.list.mjs +277 -0
- package/esm2022/src/app/social/user-event/notification/user-event-notification.modal.mjs +81 -0
- package/esm2022/src/app/social/user-event/testing/user-event.testing.mjs +273 -0
- package/esm2022/src/app/social/user-event/testing/user-event.testing.model.mjs +129 -0
- package/esm2022/src/app/social/user-event/testing/user-event.testing.module.mjs +22 -0
- package/esm2022/src/app/social/user-event/testing/user-event.testing.service.mjs +128 -0
- package/esm2022/src/app/social/user-event/user-event.model.mjs +2 -0
- package/esm2022/src/app/social/user-event/user-event.module.mjs +24 -0
- package/esm2022/src/app/social/user-event/user-event.service.mjs +512 -0
- package/esm2022/src/environments/environment.class.mjs +66 -0
- package/esm2022/src/environments/environment.loader.mjs +77 -0
- package/esm2022/src/environments/environment.mjs +118 -0
- package/esm2022/sumaris-net.ngx-components.mjs +5 -0
- package/fesm2022/sumaris-net.ngx-components.mjs +49764 -0
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +19 -133
- package/public_api.d.ts +354 -0
- package/src/app/admin/admin-routing.module.d.ts +9 -0
- package/src/app/admin/admin.module.d.ts +10 -0
- package/src/app/admin/services/filter/person.filter.d.ts +22 -0
- package/src/app/admin/services/person.service.d.ts +37 -0
- package/src/app/admin/services/validator/person.validator.d.ts +23 -0
- package/src/app/admin/users/users.d.ts +61 -0
- package/src/app/admin/users/users.module.d.ts +14 -0
- package/src/app/core/about/about.modal.d.ts +32 -0
- package/src/app/core/about/about.module.d.ts +11 -0
- package/src/app/core/account/account.module.d.ts +18 -0
- package/src/app/core/account/account.page.d.ts +83 -0
- package/src/app/core/account/new-token.form.d.ts +29 -0
- package/src/app/core/account/new-token.modal.d.ts +29 -0
- package/src/app/core/account/password/change-password.form.d.ts +19 -0
- package/src/app/core/account/password/change-password.module.d.ts +11 -0
- package/src/app/core/account/password/change-password.page.d.ts +36 -0
- package/src/app/core/account/token.table.d.ts +27 -0
- package/src/app/core/auth/auth.form.d.ts +38 -0
- package/src/app/core/auth/auth.modal.d.ts +24 -0
- package/src/app/core/auth/auth.module.d.ts +13 -0
- package/src/app/core/auth/reset-password.modal.d.ts +29 -0
- package/src/app/core/core.module.d.ts +28 -0
- package/src/app/core/core.testing.module.d.ts +15 -0
- package/src/app/core/form/array/form-array.d.ts +137 -0
- package/src/app/core/form/array/testing/form-array-test.module.d.ts +12 -0
- package/src/app/core/form/array/testing/form-array.test.d.ts +26 -0
- package/src/app/core/form/buttons/form-buttons-bar.component.d.ts +37 -0
- package/src/app/core/form/buttons/form-buttons-bar.module.d.ts +9 -0
- package/src/app/core/form/entity/editor.class.d.ts +84 -0
- package/src/app/core/form/entity/entity-editor-modal.class.d.ts +126 -0
- package/src/app/core/form/entity/entity-editor.class.d.ts +204 -0
- 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/entity/tab-editor.class.d.ts +66 -0
- package/src/app/core/form/form-container.class.d.ts +127 -0
- package/src/app/core/form/form.class.d.ts +144 -0
- package/src/app/core/form/form.module.d.ts +14 -0
- package/src/app/core/form/form.utils.d.ts +287 -0
- package/src/app/core/form/list/list.form.d.ts +81 -0
- package/src/app/core/form/list/list.module.d.ts +9 -0
- package/src/app/core/form/properties/properties.form.d.ts +92 -0
- package/src/app/core/form/properties/properties.module.d.ts +11 -0
- package/src/app/core/form/properties/properties.table.d.ts +72 -0
- package/src/app/core/form/properties/properties.utils.d.ts +59 -0
- package/src/app/core/form/properties/property.validator.d.ts +27 -0
- package/src/app/core/form/properties/testing/properties-form.test.d.ts +22 -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 +16 -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-popover.component.d.ts +80 -0
- package/src/app/core/form/text-popover/text-popover.module.d.ts +9 -0
- package/src/app/core/form/username/username.form.d.ts +19 -0
- package/src/app/core/form/username/username.module.d.ts +9 -0
- package/src/app/core/graphql/graphql.module.d.ts +7 -0
- package/src/app/core/graphql/graphql.service.d.ts +142 -0
- package/src/app/core/graphql/graphql.utils.d.ts +47 -0
- package/src/app/core/home/home.d.ts +117 -0
- package/src/app/core/home/home.module.d.ts +16 -0
- package/src/app/core/icon/icon.component.d.ts +13 -0
- package/src/app/core/icon/icon.module.d.ts +9 -0
- package/src/app/core/install/install-upgrade-card.component.d.ts +63 -0
- package/src/app/core/install/install-upgrade-card.module.d.ts +9 -0
- package/src/app/core/menu/menu.component.d.ts +66 -0
- package/src/app/core/menu/menu.model.d.ts +144 -0
- package/src/app/core/menu/menu.module.d.ts +12 -0
- package/src/app/core/menu/menu.service.d.ts +93 -0
- package/src/app/core/menu/sub-menu-tab.directive.d.ts +29 -0
- package/src/app/core/menu/testing/menu-other.testing.d.ts +15 -0
- package/src/app/core/menu/testing/menu.testing.d.ts +51 -0
- package/src/app/core/menu/testing/menu.testing.module.d.ts +12 -0
- 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 +101 -0
- package/src/app/core/peer/select-peer.module.d.ts +12 -0
- package/src/app/core/register/register-confirm.page.d.ts +24 -0
- package/src/app/core/register/register.form.d.ts +49 -0
- package/src/app/core/register/register.modal.d.ts +14 -0
- package/src/app/core/register/register.module.d.ts +12 -0
- package/src/app/core/services/account.service.d.ts +207 -0
- package/src/app/core/services/auth-guard.service.d.ts +17 -0
- package/src/app/core/services/base-entity-service.class.d.ts +135 -0
- package/src/app/core/services/base-graphql-service.class.d.ts +77 -0
- package/src/app/core/services/base58.d.ts +7 -0
- package/src/app/core/services/config/core.config.d.ts +46 -0
- package/src/app/core/services/config.service.d.ts +63 -0
- package/src/app/core/services/crypto.service.d.ts +44 -0
- package/src/app/core/services/errors.d.ts +65 -0
- package/src/app/core/services/local-settings.service.d.ts +100 -0
- package/src/app/core/services/model/account.model.d.ts +56 -0
- package/src/app/core/services/model/config.model.d.ts +36 -0
- package/src/app/core/services/model/department.model.d.ts +11 -0
- package/src/app/core/services/model/entity.decorators.d.ts +17 -0
- package/src/app/core/services/model/entity.model.d.ts +133 -0
- package/src/app/core/services/model/filter.model.d.ts +37 -0
- package/src/app/core/services/model/history.model.d.ts +20 -0
- package/src/app/core/services/model/model.enum.d.ts +7 -0
- package/src/app/core/services/model/node-feature.model.d.ts +14 -0
- package/src/app/core/services/model/peer.model.d.ts +35 -0
- package/src/app/core/services/model/person.model.d.ts +37 -0
- package/src/app/core/services/model/referential.model.d.ts +84 -0
- package/src/app/core/services/model/settings.model.d.ts +29 -0
- package/src/app/core/services/model/token.model.d.ts +22 -0
- package/src/app/core/services/model/tree-item-entity.model.d.ts +61 -0
- package/src/app/core/services/network.service.d.ts +160 -0
- package/src/app/core/services/network.types.d.ts +4 -0
- package/src/app/core/services/network.utils.d.ts +38 -0
- package/src/app/core/services/pipes/account.pipes.d.ts +15 -0
- package/src/app/core/services/pipes/department-to-string.pipe.d.ts +9 -0
- package/src/app/core/services/pipes/person-to-string.pipe.d.ts +11 -0
- package/src/app/core/services/pipes/pipes.module.d.ts +11 -0
- package/src/app/core/services/pipes/referential-to-string.pipe.d.ts +13 -0
- package/src/app/core/services/pipes/usage-mode.pipes.d.ts +15 -0
- package/src/app/core/services/platform.service.d.ts +110 -0
- package/src/app/core/services/storage/entities-storage.service.d.ts +108 -0
- package/src/app/core/services/storage/entity-store.class.d.ts +113 -0
- 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 +24 -0
- package/src/app/core/services/validator/base.validator.class.d.ts +21 -0
- package/src/app/core/services/validator/local-settings.validator.d.ts +18 -0
- package/src/app/core/services/validator/user-settings.validator.d.ts +10 -0
- package/src/app/core/services/validator/user-token.validator.d.ts +13 -0
- package/src/app/core/settings/settings.module.d.ts +12 -0
- package/src/app/core/settings/settings.page.d.ts +88 -0
- package/src/app/core/table/async-table.class.d.ts +395 -0
- package/src/app/core/table/column/actions-column.component.d.ts +62 -0
- package/src/app/core/table/column/nav-actions-column.component.d.ts +46 -0
- package/src/app/core/table/column/row-field.component.d.ts +40 -0
- package/src/app/core/table/entities-async-table-datasource.class.d.ts +103 -0
- package/src/app/core/table/entities-table-datasource.class.d.ts +102 -0
- package/src/app/core/table/memory-table.class.d.ts +25 -0
- package/src/app/core/table/table-select-columns.component.d.ts +22 -0
- package/src/app/core/table/table.class.d.ts +400 -0
- package/src/app/core/table/table.model.d.ts +31 -0
- package/src/app/core/table/table.module.d.ts +14 -0
- package/src/app/core/table/table.pipes.d.ts +29 -0
- package/src/app/core/table/table.utils.d.ts +13 -0
- package/src/app/core/table/testing/table-validator.service.d.ts +17 -0
- package/src/app/core/table/testing/table.testing.d.ts +54 -0
- package/src/app/core/table/testing/table.testing.module.d.ts +14 -0
- package/src/app/core/table/testing/table2-validator.service.d.ts +15 -0
- package/src/app/core/table/testing/table2.testing.d.ts +48 -0
- package/src/app/shared/alerts.d.ts +55 -0
- package/src/app/shared/audio/audio.d.ts +45 -0
- 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 +13 -0
- package/src/app/shared/dates.d.ts +61 -0
- package/src/app/shared/debug/debug-service.class.d.ts +5 -0
- package/src/app/shared/debug/debug.component.d.ts +14 -0
- package/src/app/shared/debug/debug.module.d.ts +12 -0
- package/src/app/shared/directives/autofocus.directive.d.ts +18 -0
- package/src/app/shared/directives/autoresize.directive.d.ts +20 -0
- package/src/app/shared/directives/autotitle.directive.d.ts +11 -0
- package/src/app/shared/directives/directives.module.d.ts +14 -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/directives/throttled-click.directive.d.ts +16 -0
- package/src/app/shared/events.d.ts +29 -0
- package/src/app/shared/file/csv.utils.d.ts +30 -0
- package/src/app/shared/file/file.service.d.ts +23 -0
- package/src/app/shared/file/file.utils.d.ts +20 -0
- package/src/app/shared/file/images.utils.d.ts +36 -0
- package/src/app/shared/file/json.utils.d.ts +19 -0
- package/src/app/shared/file/uri.utils.d.ts +8 -0
- package/src/app/shared/file/url.utils.d.ts +99 -0
- package/src/app/shared/focusable.d.ts +4 -0
- package/src/app/shared/form/field.component.d.ts +85 -0
- package/src/app/shared/form/field.model.d.ts +82 -0
- package/src/app/shared/form/loading-spinner.d.ts +8 -0
- package/src/app/shared/forms.d.ts +162 -0
- package/src/app/shared/functions.d.ts +206 -0
- package/src/app/shared/geolocation/geolocation.utils.d.ts +19 -0
- package/src/app/shared/gesture/gesture-config.d.ts +15 -0
- package/src/app/shared/gesture/hammer.utils.d.ts +16 -0
- package/src/app/shared/graph/colors.utils.d.ts +17 -0
- package/src/app/shared/graph/graph-colors.d.ts +63 -0
- package/src/app/shared/guard/component-dirty.guard.d.ts +14 -0
- package/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.d.ts +8 -0
- package/src/app/shared/hotkeys/hotkeys.service.d.ts +48 -0
- package/src/app/shared/hotkeys/shared-hotkeys.module.d.ts +11 -0
- package/src/app/shared/http/http.utils.d.ts +28 -0
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +137 -0
- package/src/app/shared/image/gallery/image-gallery.module.d.ts +15 -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 +13 -0
- package/src/app/shared/image/image.model.d.ts +7 -0
- package/src/app/shared/image/image.module.d.ts +8 -0
- package/src/app/shared/image/image.service.d.ts +36 -0
- package/src/app/shared/inputs.d.ts +36 -0
- package/src/app/shared/interceptors/progess.interceptor.d.ts +8 -0
- package/src/app/shared/logging/log-level.model.d.ts +38 -0
- package/src/app/shared/logging/logger.model.d.ts +68 -0
- package/src/app/shared/logging/logging-service.class.d.ts +39 -0
- package/src/app/shared/logging/logging-service.config.d.ts +25 -0
- package/src/app/shared/logging/logging-service.module.d.ts +9 -0
- package/src/app/shared/markdown/markdown.component.d.ts +86 -0
- package/src/app/shared/markdown/markdown.directive.d.ts +13 -0
- package/src/app/shared/markdown/markdown.modal.d.ts +49 -0
- package/src/app/shared/markdown/markdown.module.d.ts +17 -0
- package/src/app/shared/markdown/markdown.service.d.ts +37 -0
- package/src/app/shared/markdown/markdown.utils.d.ts +26 -0
- package/src/app/shared/markdown/testing/markdown.test.d.ts +18 -0
- package/src/app/shared/markdown/testing/markdown.testing.module.d.ts +12 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.config.d.ts +74 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +211 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.module.d.ts +22 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.utils.d.ts +5 -0
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +48 -0
- package/src/app/shared/material/badge/badge.directive.d.ts +43 -0
- package/src/app/shared/material/badge/badge.module.d.ts +10 -0
- package/src/app/shared/material/badge/badge.test.d.ts +21 -0
- package/src/app/shared/material/boolean/boolean.module.d.ts +20 -0
- package/src/app/shared/material/boolean/material.boolean.d.ts +93 -0
- package/src/app/shared/material/boolean/testing/boolean.test.page.d.ts +26 -0
- package/src/app/shared/material/chips/chips.module.d.ts +21 -0
- package/src/app/shared/material/chips/material.chips.d.ts +164 -0
- package/src/app/shared/material/chips/testing/chips.test.d.ts +32 -0
- package/src/app/shared/material/datetime/datetime.module.d.ts +24 -0
- package/src/app/shared/material/datetime/material.date.d.ts +90 -0
- package/src/app/shared/material/datetime/material.dateshort.d.ts +89 -0
- package/src/app/shared/material/datetime/material.datetime.d.ts +116 -0
- package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +37 -0
- package/src/app/shared/material/datetime/testing/mat-date.test.d.ts +32 -0
- package/src/app/shared/material/datetime/testing/mat-dateshort.test.d.ts +31 -0
- package/src/app/shared/material/duration/duration.module.d.ts +18 -0
- package/src/app/shared/material/duration/duration.utils.d.ts +2 -0
- package/src/app/shared/material/duration/material.duration.d.ts +64 -0
- package/src/app/shared/material/duration/testing/mat-duration.test.d.ts +23 -0
- package/src/app/shared/material/latlong/latlong.utils.d.ts +59 -0
- package/src/app/shared/material/latlong/material.latlong-input.d.ts +85 -0
- package/src/app/shared/material/latlong/material.latlong.d.ts +90 -0
- package/src/app/shared/material/latlong/material.latlong.module.d.ts +21 -0
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +28 -0
- package/src/app/shared/material/material.animations.d.ts +8 -0
- package/src/app/shared/material/material.config.d.ts +3 -0
- package/src/app/shared/material/material.module.d.ts +45 -0
- package/src/app/shared/material/material.testing.module.d.ts +32 -0
- package/src/app/shared/material/paginator/material.paginator-i18n.d.ts +12 -0
- package/src/app/shared/material/stepper/material.stepper-i18n.d.ts +10 -0
- package/src/app/shared/material/swipe/material.swipe.d.ts +89 -0
- package/src/app/shared/material/swipe/swipe.module.d.ts +16 -0
- package/src/app/shared/material/swipe/testing/swipe.test.d.ts +22 -0
- package/src/app/shared/material/test/test-component.d.ts +75 -0
- package/src/app/shared/material/testing/common.test.d.ts +25 -0
- package/src/app/shared/material/text/testing/text-form.testing.d.ts +19 -0
- package/src/app/shared/material/text/text-form.component.d.ts +66 -0
- package/src/app/shared/material/text/text-form.module.d.ts +16 -0
- package/src/app/shared/modules.d.ts +9 -0
- package/src/app/shared/named-filter/named-filter-selector.component.d.ts +62 -0
- package/src/app/shared/named-filter/named-filter.model.d.ts +32 -0
- package/src/app/shared/named-filter/named-filter.module.d.ts +13 -0
- package/src/app/shared/named-filter/named-filter.service.d.ts +32 -0
- package/src/app/shared/named-filter/testing/named-filter-selector.testing.d.ts +34 -0
- package/src/app/shared/named-filter/testing/named-filter.testing.module.d.ts +10 -0
- package/src/app/shared/observables.d.ts +30 -0
- package/src/app/shared/pipes/arrays.pipe.d.ts +82 -0
- package/src/app/shared/pipes/badge.pipes.d.ts +7 -0
- package/src/app/shared/pipes/colors.pipe.d.ts +9 -0
- package/src/app/shared/pipes/date-diff-duration.pipe.d.ts +25 -0
- package/src/app/shared/pipes/date-format.pipe.d.ts +35 -0
- package/src/app/shared/pipes/date-from-now.pipe.d.ts +12 -0
- package/src/app/shared/pipes/dates.pipe.d.ts +10 -0
- package/src/app/shared/pipes/display-with.pipe.d.ts +8 -0
- package/src/app/shared/pipes/duration.pipe.d.ts +23 -0
- package/src/app/shared/pipes/file-size.pipe.d.ts +30 -0
- package/src/app/shared/pipes/form.pipes.d.ts +69 -0
- package/src/app/shared/pipes/highlight.pipe.d.ts +11 -0
- package/src/app/shared/pipes/html.pipes.d.ts +22 -0
- package/src/app/shared/pipes/latlong-format.pipe.d.ts +20 -0
- package/src/app/shared/pipes/maps.pipe.d.ts +23 -0
- package/src/app/shared/pipes/maskito.pipe.d.ts +14 -0
- package/src/app/shared/pipes/math.pipes.d.ts +26 -0
- package/src/app/shared/pipes/ng-init.pipe.d.ts +8 -0
- package/src/app/shared/pipes/number-format.pipe.d.ts +9 -0
- package/src/app/shared/pipes/observable.pipes.d.ts +25 -0
- package/src/app/shared/pipes/pipes.module.d.ts +35 -0
- package/src/app/shared/pipes/property.pipes.d.ts +41 -0
- package/src/app/shared/pipes/selection.pipes.d.ts +62 -0
- package/src/app/shared/pipes/string.pipes.d.ts +68 -0
- package/src/app/shared/pipes/translate-context.pipe.d.ts +17 -0
- package/src/app/shared/pipes/types.pipes.d.ts +30 -0
- package/src/app/shared/pipes/url.pipes.d.ts +27 -0
- package/src/app/shared/platforms.d.ts +16 -0
- package/src/app/shared/print/print.service.d.ts +94 -0
- package/src/app/shared/regexps.d.ts +32 -0
- package/src/app/shared/rx-state/rx-state.decorators.d.ts +43 -0
- package/src/app/shared/rx-state/rx-state.module.d.ts +10 -0
- package/src/app/shared/rx-state/rx-state.types.d.ts +4 -0
- package/src/app/shared/services/entity-service.class.d.ts +75 -0
- package/src/app/shared/services/job.utils.d.ts +20 -0
- package/src/app/shared/services/memory-entity-service.class.d.ts +79 -0
- package/src/app/shared/services/progress-bar.service.d.ts +20 -0
- package/src/app/shared/services/startable-observable-service.class.d.ts +36 -0
- package/src/app/shared/services/startable-service.class.d.ts +37 -0
- package/src/app/shared/services/translate-context.service.d.ts +29 -0
- package/src/app/shared/services/validator-service.class.d.ts +11 -0
- package/src/app/shared/services.d.ts +17 -0
- package/src/app/shared/shared-routing.module.d.ts +23 -0
- package/src/app/shared/shared.module.d.ts +33 -0
- package/src/app/shared/shared.testing.module.d.ts +20 -0
- package/src/app/shared/storage/storage-explorer.component.d.ts +59 -0
- package/src/app/shared/storage/storage-explorer.module.d.ts +13 -0
- package/src/app/shared/storage/storage-explorer.testing-routing.module.d.ts +9 -0
- package/src/app/shared/storage/storage-explorer.testing.module.d.ts +10 -0
- package/src/app/shared/storage/storage.service.d.ts +22 -0
- package/src/app/shared/storage/storage.utils.d.ts +19 -0
- package/src/app/shared/testing/maskito.test.d.ts +10 -0
- package/src/app/shared/testing/observable.test.d.ts +25 -0
- package/src/app/shared/testing/tests.page.d.ts +20 -0
- package/src/app/shared/toast/toast.testing.d.ts +15 -0
- package/src/app/shared/toast/toast.testing.module.d.ts +12 -0
- package/src/app/shared/toast/toasts.d.ts +16 -0
- package/src/app/shared/toolbar/modal-toolbar.d.ts +21 -0
- package/src/app/shared/toolbar/toolbar.d.ts +70 -0
- package/src/app/shared/toolbar/toolbar.module.d.ts +16 -0
- package/src/app/shared/types.d.ts +36 -0
- package/src/app/shared/upload-file/testing/upload-file.testing.d.ts +21 -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 +41 -0
- package/src/app/shared/upload-file/upload-file.component.d.ts +50 -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 +33 -0
- package/src/app/shared/validator/validators.d.ts +139 -0
- package/src/app/shared/version/versions.d.ts +26 -0
- package/src/app/social/config/social.config.d.ts +4 -0
- package/src/app/social/feed/discourse/discourse-feed.service.d.ts +55 -0
- package/src/app/social/feed/discourse/discourse.model.d.ts +7 -0
- package/src/app/social/feed/discourse/discourse.utils.d.ts +44 -0
- package/src/app/social/feed/feed.component.d.ts +39 -0
- package/src/app/social/feed/feed.directive.d.ts +32 -0
- package/src/app/social/feed/feed.model.d.ts +69 -0
- package/src/app/social/feed/feed.module.d.ts +11 -0
- package/src/app/social/feed/feed.service.d.ts +13 -0
- package/src/app/social/job/job.module.d.ts +12 -0
- package/src/app/social/job/progression/job-progression.component.d.ts +23 -0
- package/src/app/social/job/progression/job-progression.icon.d.ts +62 -0
- package/src/app/social/job/progression/job-progression.list.d.ts +19 -0
- package/src/app/social/job/progression/job-progression.model.d.ts +10 -0
- package/src/app/social/job/progression/job-progression.service.d.ts +33 -0
- package/src/app/social/job/testing/job-progression.testing.d.ts +13 -0
- package/src/app/social/job/testing/job-progression.testing.service.d.ts +9 -0
- package/src/app/social/job/testing/job.testing.module.d.ts +11 -0
- package/src/app/social/message/message.form.d.ts +36 -0
- package/src/app/social/message/message.modal.d.ts +43 -0
- package/src/app/social/message/message.model.d.ts +33 -0
- package/src/app/social/message/message.module.d.ts +12 -0
- package/src/app/social/message/message.service.d.ts +32 -0
- package/src/app/social/social.errors.d.ts +9 -0
- package/src/app/social/social.module.d.ts +20 -0
- package/src/app/social/social.testing.module.d.ts +13 -0
- package/src/app/social/user-event/notification/user-event-notification.icon.d.ts +46 -0
- package/src/app/social/user-event/notification/user-event-notification.list.d.ts +75 -0
- package/src/app/social/user-event/notification/user-event-notification.modal.d.ts +36 -0
- package/src/app/social/user-event/testing/user-event.testing.d.ts +44 -0
- package/src/app/social/user-event/testing/user-event.testing.model.d.ts +42 -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 +42 -0
- package/src/app/social/user-event/user-event.model.d.ts +44 -0
- package/src/app/social/user-event/user-event.module.d.ts +14 -0
- package/src/app/social/user-event/user-event.service.d.ts +124 -0
- package/src/environments/environment.class.d.ts +83 -0
- package/src/environments/environment.d.ts +2 -0
- package/src/environments/environment.loader.d.ts +24 -0
- package/.editorconfig +0 -24
- package/.eslintrc.json +0 -95
- package/.gitattribute +0 -1
- package/.github/CONTRIBUTING.md +0 -10
- package/.github/ISSUE_TEMPLATE.md +0 -6
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -10
- package/.github/github_disclaimer.md +0 -14
- package/.gitlab-ci.yml +0 -46
- package/.graphqlconfig +0 -15
- package/.prettierignore +0 -9
- package/.prettierrc.json +0 -17
- package/angular.json +0 -239
- package/capacitor.config.ts +0 -49
- package/graphql.config.yml +0 -13
- package/ionic.config.json +0 -7
- package/karma.conf.js +0 -38
- package/ng-package.json +0 -21
- package/public_api.ts +0 -436
- package/resources/README.md +0 -7
- package/resources/icon/TODO.md +0 -11
- package/resources/icon.png +0 -0
- package/resources/icon.png.md5 +0 -1
- package/resources/icon.xcf +0 -0
- package/resources/ios/icon/icon-1024.png +0 -0
- package/resources/ios/icon/icon-108@2x.png +0 -0
- package/resources/ios/icon/icon-20.png +0 -0
- package/resources/ios/icon/icon-20@2x.png +0 -0
- package/resources/ios/icon/icon-20@3x.png +0 -0
- package/resources/ios/icon/icon-24@2x.png +0 -0
- package/resources/ios/icon/icon-27.5@2x.png +0 -0
- package/resources/ios/icon/icon-29.png +0 -0
- package/resources/ios/icon/icon-29@2x.png +0 -0
- package/resources/ios/icon/icon-29@3x.png +0 -0
- package/resources/ios/icon/icon-40.png +0 -0
- package/resources/ios/icon/icon-40@2x.png +0 -0
- package/resources/ios/icon/icon-40@3x.png +0 -0
- package/resources/ios/icon/icon-44@2x.png +0 -0
- package/resources/ios/icon/icon-50.png +0 -0
- package/resources/ios/icon/icon-50@2x.png +0 -0
- package/resources/ios/icon/icon-60.png +0 -0
- package/resources/ios/icon/icon-60@2x.png +0 -0
- package/resources/ios/icon/icon-60@3x.png +0 -0
- package/resources/ios/icon/icon-72.png +0 -0
- package/resources/ios/icon/icon-72@2x.png +0 -0
- package/resources/ios/icon/icon-76.png +0 -0
- package/resources/ios/icon/icon-76@2x.png +0 -0
- package/resources/ios/icon/icon-83.5@2x.png +0 -0
- package/resources/ios/icon/icon-86@2x.png +0 -0
- package/resources/ios/icon/icon-98@2x.png +0 -0
- package/resources/ios/icon/icon-small.png +0 -0
- package/resources/ios/icon/icon-small@2x.png +0 -0
- package/resources/ios/icon/icon-small@3x.png +0 -0
- package/resources/ios/icon/icon.png +0 -0
- package/resources/ios/icon/icon@2x.png +0 -0
- package/resources/ios/splash/Default-1792h~iphone.png +0 -0
- package/resources/ios/splash/Default-2436h.png +0 -0
- package/resources/ios/splash/Default-2688h~iphone.png +0 -0
- package/resources/ios/splash/Default-568h@2x~iphone.png +0 -0
- package/resources/ios/splash/Default-667h.png +0 -0
- package/resources/ios/splash/Default-736h.png +0 -0
- package/resources/ios/splash/Default-Landscape-1792h~iphone.png +0 -0
- package/resources/ios/splash/Default-Landscape-2436h.png +0 -0
- package/resources/ios/splash/Default-Landscape-2688h~iphone.png +0 -0
- package/resources/ios/splash/Default-Landscape-736h.png +0 -0
- package/resources/ios/splash/Default-Landscape@2x~ipad.png +0 -0
- package/resources/ios/splash/Default-Landscape@~ipadpro.png +0 -0
- package/resources/ios/splash/Default-Landscape~ipad.png +0 -0
- package/resources/ios/splash/Default-Portrait@2x~ipad.png +0 -0
- package/resources/ios/splash/Default-Portrait@~ipadpro.png +0 -0
- package/resources/ios/splash/Default-Portrait~ipad.png +0 -0
- package/resources/ios/splash/Default@2x~iphone.png +0 -0
- package/resources/ios/splash/Default@2x~universal~anyany.png +0 -0
- package/resources/ios/splash/Default~iphone.png +0 -0
- package/resources/splash.png +0 -0
- package/resources/splash.png.md5 +0 -1
- package/scripts/build-android.sh +0 -18
- package/scripts/docker-start.sh +0 -6
- package/scripts/emulate-android.sh +0 -17
- package/scripts/env-android.sh +0 -83
- package/scripts/env-clean.sh +0 -23
- package/scripts/env-global.sh +0 -154
- package/scripts/install-android-sdk-tools.sh +0 -73
- package/scripts/ionic-update.sh +0 -24
- package/scripts/node/build-i18n.js +0 -37
- package/scripts/node/playground.ts +0 -9
- package/scripts/node/resources.js +0 -108
- package/scripts/release.sh +0 -162
- package/scripts/run-android.sh +0 -59
- package/scripts/test.sh +0 -19
- package/src/app/admin/admin-routing.module.ts +0 -26
- package/src/app/admin/admin.module.ts +0 -20
- package/src/app/admin/services/filter/person.filter.ts +0 -86
- package/src/app/admin/services/person.service.ts +0 -244
- package/src/app/admin/services/validator/person.validator.ts +0 -86
- package/src/app/admin/users/users.html +0 -613
- package/src/app/admin/users/users.module.ts +0 -32
- package/src/app/admin/users/users.scss +0 -80
- package/src/app/admin/users/users.ts +0 -387
- package/src/app/app-routing.module.ts +0 -165
- package/src/app/app.component.html +0 -18
- package/src/app/app.component.scss +0 -4
- package/src/app/app.component.ts +0 -257
- package/src/app/app.module.ts +0 -366
- package/src/app/core/about/about.modal.html +0 -145
- package/src/app/core/about/about.modal.scss +0 -22
- package/src/app/core/about/about.modal.ts +0 -69
- package/src/app/core/about/about.module.ts +0 -14
- package/src/app/core/account/account.module.ts +0 -43
- package/src/app/core/account/account.page.html +0 -329
- package/src/app/core/account/account.page.scss +0 -20
- package/src/app/core/account/account.page.ts +0 -389
- package/src/app/core/account/new-token.form.html +0 -90
- package/src/app/core/account/new-token.form.ts +0 -99
- package/src/app/core/account/new-token.modal.html +0 -52
- package/src/app/core/account/new-token.modal.ts +0 -68
- package/src/app/core/account/password/change-password.form.html +0 -62
- package/src/app/core/account/password/change-password.form.scss +0 -0
- package/src/app/core/account/password/change-password.form.ts +0 -58
- package/src/app/core/account/password/change-password.module.ts +0 -14
- package/src/app/core/account/password/change-password.page.html +0 -41
- package/src/app/core/account/password/change-password.page.scss +0 -49
- package/src/app/core/account/password/change-password.page.ts +0 -158
- package/src/app/core/account/token.table.html +0 -160
- package/src/app/core/account/token.table.scss +0 -7
- package/src/app/core/account/token.table.ts +0 -160
- package/src/app/core/auth/auth.form.html +0 -108
- package/src/app/core/auth/auth.form.scss +0 -0
- package/src/app/core/auth/auth.form.ts +0 -165
- package/src/app/core/auth/auth.modal.html +0 -50
- package/src/app/core/auth/auth.modal.scss +0 -0
- package/src/app/core/auth/auth.modal.ts +0 -78
- package/src/app/core/auth/auth.module.ts +0 -35
- package/src/app/core/auth/reset-password.modal.html +0 -59
- package/src/app/core/auth/reset-password.modal.ts +0 -83
- package/src/app/core/core.module.ts +0 -72
- package/src/app/core/core.testing.module.ts +0 -80
- package/src/app/core/form/array/form-array.ts +0 -409
- package/src/app/core/form/array/testing/form-array-test.module.ts +0 -15
- package/src/app/core/form/array/testing/form-array.test.html +0 -196
- package/src/app/core/form/array/testing/form-array.test.ts +0 -119
- package/src/app/core/form/buttons/form-buttons-bar.component.html +0 -82
- package/src/app/core/form/buttons/form-buttons-bar.component.scss +0 -19
- package/src/app/core/form/buttons/form-buttons-bar.component.ts +0 -89
- package/src/app/core/form/buttons/form-buttons-bar.module.ts +0 -20
- package/src/app/core/form/entity/editor.class.ts +0 -295
- package/src/app/core/form/entity/entity-editor-modal.class.ts +0 -494
- package/src/app/core/form/entity/entity-editor.class.ts +0 -894
- package/src/app/core/form/entity/entity-metadata.component.html +0 -57
- package/src/app/core/form/entity/entity-metadata.component.scss +0 -40
- package/src/app/core/form/entity/entity-metadata.component.ts +0 -18
- package/src/app/core/form/entity/entity.module.ts +0 -20
- package/src/app/core/form/entity/tab-editor.class.ts +0 -224
- package/src/app/core/form/form-container.class.ts +0 -381
- package/src/app/core/form/form.class.ts +0 -377
- package/src/app/core/form/form.module.ts +0 -38
- package/src/app/core/form/form.utils.ts +0 -336
- package/src/app/core/form/list/list.form.html +0 -68
- package/src/app/core/form/list/list.form.scss +0 -40
- package/src/app/core/form/list/list.form.ts +0 -266
- package/src/app/core/form/list/list.module.ts +0 -20
- package/src/app/core/form/properties/properties.form.html +0 -160
- package/src/app/core/form/properties/properties.form.scss +0 -21
- package/src/app/core/form/properties/properties.form.ts +0 -331
- package/src/app/core/form/properties/properties.module.ts +0 -24
- package/src/app/core/form/properties/properties.table.html +0 -228
- package/src/app/core/form/properties/properties.table.scss +0 -0
- package/src/app/core/form/properties/properties.table.ts +0 -275
- package/src/app/core/form/properties/properties.utils.ts +0 -391
- package/src/app/core/form/properties/property.validator.ts +0 -82
- package/src/app/core/form/properties/testing/properties-form.test.html +0 -23
- package/src/app/core/form/properties/testing/properties-form.test.ts +0 -109
- package/src/app/core/form/properties/testing/properties-form.testing.module.ts +0 -14
- package/src/app/core/form/text-popover/testing/text-popover.testing.html +0 -50
- package/src/app/core/form/text-popover/testing/text-popover.testing.module.ts +0 -21
- package/src/app/core/form/text-popover/testing/text-popover.testing.ts +0 -76
- package/src/app/core/form/text-popover/text-popover.component.html +0 -89
- package/src/app/core/form/text-popover/text-popover.component.scss +0 -7
- package/src/app/core/form/text-popover/text-popover.component.ts +0 -176
- package/src/app/core/form/text-popover/text-popover.module.ts +0 -19
- package/src/app/core/form/username/username.form.html +0 -27
- package/src/app/core/form/username/username.form.ts +0 -44
- package/src/app/core/form/username/username.module.ts +0 -12
- package/src/app/core/graphql/graphql.module.ts +0 -7
- package/src/app/core/graphql/graphql.service.ts +0 -962
- package/src/app/core/graphql/graphql.utils.ts +0 -166
- package/src/app/core/home/home.html +0 -327
- package/src/app/core/home/home.module.ts +0 -31
- package/src/app/core/home/home.scss +0 -300
- package/src/app/core/home/home.ts +0 -453
- package/src/app/core/icon/icon.component.html +0 -19
- package/src/app/core/icon/icon.component.ts +0 -22
- package/src/app/core/icon/icon.module.ts +0 -13
- package/src/app/core/install/install-upgrade-card.component.html +0 -144
- package/src/app/core/install/install-upgrade-card.component.scss +0 -3
- package/src/app/core/install/install-upgrade-card.component.ts +0 -445
- package/src/app/core/install/install-upgrade-card.module.ts +0 -18
- package/src/app/core/menu/menu.component.html +0 -219
- package/src/app/core/menu/menu.component.scss +0 -304
- package/src/app/core/menu/menu.component.ts +0 -251
- package/src/app/core/menu/menu.filter.ts +0 -28
- package/src/app/core/menu/menu.model.ts +0 -356
- package/src/app/core/menu/menu.module.ts +0 -27
- package/src/app/core/menu/menu.service.ts +0 -727
- package/src/app/core/menu/sub-menu-tab.directive.ts +0 -99
- package/src/app/core/menu/testing/menu-other.testing.ts +0 -57
- package/src/app/core/menu/testing/menu.testing.html +0 -143
- package/src/app/core/menu/testing/menu.testing.module.ts +0 -52
- package/src/app/core/menu/testing/menu.testing.scss +0 -5
- package/src/app/core/menu/testing/menu.testing.ts +0 -175
- package/src/app/core/offline/update-offline-mode-card.component.html +0 -39
- package/src/app/core/offline/update-offline-mode-card.component.scss +0 -3
- package/src/app/core/offline/update-offline-mode-card.component.ts +0 -23
- package/src/app/core/offline/update-offline-mode-card.module.ts +0 -20
- package/src/app/core/peer/select-peer.modal.html +0 -317
- package/src/app/core/peer/select-peer.modal.scss +0 -41
- package/src/app/core/peer/select-peer.modal.ts +0 -366
- package/src/app/core/peer/select-peer.module.ts +0 -23
- package/src/app/core/register/register-confirm.page.html +0 -51
- package/src/app/core/register/register-confirm.page.scss +0 -56
- package/src/app/core/register/register-confirm.page.ts +0 -90
- package/src/app/core/register/register.form.html +0 -143
- package/src/app/core/register/register.form.scss +0 -10
- package/src/app/core/register/register.form.ts +0 -218
- package/src/app/core/register/register.modal.html +0 -66
- package/src/app/core/register/register.modal.ts +0 -50
- package/src/app/core/register/register.module.ts +0 -15
- package/src/app/core/services/account.service.ts +0 -1567
- package/src/app/core/services/auth-guard.service.ts +0 -70
- package/src/app/core/services/base-entity-service.class.ts +0 -659
- package/src/app/core/services/base-graphql-service.class.ts +0 -319
- package/src/app/core/services/base58.ts +0 -90
- package/src/app/core/services/config/core.config.ts +0 -263
- package/src/app/core/services/config.service.ts +0 -425
- package/src/app/core/services/crypto.service.ts +0 -126
- package/src/app/core/services/errors.ts +0 -80
- package/src/app/core/services/local-settings.service.spec.ts +0 -39
- package/src/app/core/services/local-settings.service.ts +0 -610
- package/src/app/core/services/model/account.model.ts +0 -188
- package/src/app/core/services/model/config.model.ts +0 -116
- package/src/app/core/services/model/department.model.ts +0 -34
- package/src/app/core/services/model/entity.decorators.ts +0 -110
- package/src/app/core/services/model/entity.model.ts +0 -409
- package/src/app/core/services/model/filter.model.ts +0 -127
- package/src/app/core/services/model/history.model.ts +0 -25
- package/src/app/core/services/model/model.enum.ts +0 -10
- package/src/app/core/services/model/node-feature.model.ts +0 -31
- package/src/app/core/services/model/peer.model.ts +0 -119
- package/src/app/core/services/model/person.model.ts +0 -122
- package/src/app/core/services/model/referential.model.ts +0 -253
- package/src/app/core/services/model/settings.model.ts +0 -37
- package/src/app/core/services/model/token.model.ts +0 -60
- package/src/app/core/services/model/tree-item-entity.model.ts +0 -256
- package/src/app/core/services/network.service.spec.ts +0 -47
- package/src/app/core/services/network.service.ts +0 -771
- package/src/app/core/services/network.types.ts +0 -7
- package/src/app/core/services/network.utils.ts +0 -83
- package/src/app/core/services/pipes/account.pipes.ts +0 -22
- package/src/app/core/services/pipes/department-to-string.pipe.ts +0 -13
- package/src/app/core/services/pipes/person-to-string.pipe.ts +0 -13
- package/src/app/core/services/pipes/pipes.module.ts +0 -30
- package/src/app/core/services/pipes/referential-to-string.pipe.ts +0 -18
- package/src/app/core/services/pipes/usage-mode.pipes.ts +0 -23
- package/src/app/core/services/platform.service.spec.ts +0 -50
- package/src/app/core/services/platform.service.ts +0 -694
- package/src/app/core/services/storage/entities-storage.service.ts +0 -557
- package/src/app/core/services/storage/entity-store.class.ts +0 -589
- package/src/app/core/services/testing/local-settings.config.ts +0 -35
- package/src/app/core/services/testing/referential-filter.model.ts +0 -28
- package/src/app/core/services/testing/referential.validator.ts +0 -58
- package/src/app/core/services/testing/user-settings.config.ts +0 -77
- package/src/app/core/services/validator/account.validator.ts +0 -50
- package/src/app/core/services/validator/base.validator.class.ts +0 -51
- package/src/app/core/services/validator/local-settings.validator.ts +0 -59
- package/src/app/core/services/validator/user-settings.validator.ts +0 -22
- package/src/app/core/services/validator/user-token.validator.ts +0 -54
- package/src/app/core/settings/settings.module.ts +0 -15
- package/src/app/core/settings/settings.page.html +0 -300
- package/src/app/core/settings/settings.page.ts +0 -455
- package/src/app/core/table/async-table.class.ts +0 -2021
- package/src/app/core/table/column/actions-column.component.html +0 -219
- package/src/app/core/table/column/actions-column.component.scss +0 -17
- package/src/app/core/table/column/actions-column.component.ts +0 -83
- package/src/app/core/table/column/nav-actions-column.component.html +0 -119
- package/src/app/core/table/column/nav-actions-column.component.ts +0 -108
- package/src/app/core/table/column/row-field.component.html +0 -43
- package/src/app/core/table/column/row-field.component.scss +0 -0
- package/src/app/core/table/column/row-field.component.ts +0 -63
- package/src/app/core/table/entities-async-table-datasource.class.ts +0 -515
- package/src/app/core/table/entities-table-datasource.class.ts +0 -503
- package/src/app/core/table/memory-table.class.ts +0 -56
- package/src/app/core/table/table-select-columns.component.html +0 -56
- package/src/app/core/table/table-select-columns.component.ts +0 -49
- package/src/app/core/table/table.class.ts +0 -2082
- package/src/app/core/table/table.model.ts +0 -39
- package/src/app/core/table/table.module.ts +0 -28
- package/src/app/core/table/table.pipes.ts +0 -87
- package/src/app/core/table/table.utils.ts +0 -42
- package/src/app/core/table/testing/multi-table.testing.html +0 -456
- package/src/app/core/table/testing/multi-table.testing.ts +0 -263
- package/src/app/core/table/testing/table-validator.service.ts +0 -29
- package/src/app/core/table/testing/table.testing.html +0 -556
- package/src/app/core/table/testing/table.testing.module.ts +0 -16
- package/src/app/core/table/testing/table.testing.scss +0 -32
- package/src/app/core/table/testing/table.testing.ts +0 -329
- package/src/app/core/table/testing/table2-validator.service.ts +0 -19
- package/src/app/core/table/testing/table2.testing.html +0 -470
- package/src/app/core/table/testing/table2.testing.scss +0 -25
- package/src/app/core/table/testing/table2.testing.ts +0 -274
- package/src/app/shared/alerts.ts +0 -296
- package/src/app/shared/audio/audio.testing.html +0 -29
- package/src/app/shared/audio/audio.testing.module.ts +0 -21
- package/src/app/shared/audio/audio.testing.ts +0 -27
- package/src/app/shared/audio/audio.ts +0 -273
- package/src/app/shared/base64.utils.ts +0 -66
- package/src/app/shared/capacitor/keyboard.ts +0 -38
- package/src/app/shared/capacitor/plugins.ts +0 -12
- package/src/app/shared/constants.ts +0 -19
- package/src/app/shared/dates.ts +0 -206
- package/src/app/shared/debug/debug-service.class.ts +0 -7
- package/src/app/shared/debug/debug.component.html +0 -13
- package/src/app/shared/debug/debug.component.scss +0 -21
- package/src/app/shared/debug/debug.component.spec.ts +0 -24
- package/src/app/shared/debug/debug.component.ts +0 -25
- package/src/app/shared/debug/debug.module.ts +0 -14
- package/src/app/shared/directives/autofocus.directive.ts +0 -93
- package/src/app/shared/directives/autoresize.directive.ts +0 -67
- package/src/app/shared/directives/autotitle.directive.ts +0 -17
- package/src/app/shared/directives/directives.module.ts +0 -16
- package/src/app/shared/directives/drag-and-drop.directive.ts +0 -46
- package/src/app/shared/directives/ng-var.directive.ts +0 -31
- package/src/app/shared/directives/resizable/resizable.component.ts +0 -48
- package/src/app/shared/directives/resizable/resizable.directive.ts +0 -43
- package/src/app/shared/directives/resizable/resizable.module.ts +0 -9
- package/src/app/shared/directives/resizable/resizable.style.scss +0 -37
- package/src/app/shared/directives/resizable/resizable.template.html +0 -6
- package/src/app/shared/directives/throttled-click.directive.ts +0 -36
- package/src/app/shared/events.ts +0 -93
- package/src/app/shared/file/csv.utils.ts +0 -123
- package/src/app/shared/file/file.service.ts +0 -129
- package/src/app/shared/file/file.utils.ts +0 -142
- package/src/app/shared/file/images.utils.ts +0 -214
- package/src/app/shared/file/json.utils.ts +0 -82
- package/src/app/shared/file/uri.utils.ts +0 -31
- package/src/app/shared/file/url.utils.ts +0 -193
- package/src/app/shared/focusable.ts +0 -8
- package/src/app/shared/form/field.component.html +0 -380
- package/src/app/shared/form/field.component.scss +0 -7
- package/src/app/shared/form/field.component.ts +0 -344
- package/src/app/shared/form/field.model.ts +0 -158
- package/src/app/shared/form/loading-spinner.ts +0 -16
- package/src/app/shared/forms.ts +0 -651
- package/src/app/shared/functions.spec.ts +0 -197
- package/src/app/shared/functions.ts +0 -694
- package/src/app/shared/geolocation/geolocation.utils.ts +0 -105
- package/src/app/shared/gesture/gesture-config.ts +0 -43
- package/src/app/shared/gesture/hammer.utils.ts +0 -14
- package/src/app/shared/graph/colors.utils.ts +0 -69
- package/src/app/shared/graph/graph-colors.ts +0 -270
- package/src/app/shared/guard/component-dirty.guard.ts +0 -67
- package/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.html +0 -11
- package/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.scss +0 -37
- package/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.ts +0 -14
- package/src/app/shared/hotkeys/hotkeys.service.ts +0 -165
- package/src/app/shared/hotkeys/shared-hotkeys.module.ts +0 -15
- package/src/app/shared/http/http.utils.ts +0 -95
- package/src/app/shared/image/gallery/image-gallery.component.html +0 -282
- package/src/app/shared/image/gallery/image-gallery.component.scss +0 -218
- package/src/app/shared/image/gallery/image-gallery.component.ts +0 -434
- package/src/app/shared/image/gallery/image-gallery.module.ts +0 -35
- package/src/app/shared/image/gallery/testing/gallegry.model.testing.ts +0 -23
- package/src/app/shared/image/gallery/testing/gallery.service.testing.ts +0 -99
- package/src/app/shared/image/gallery/testing/gallery.testing.html +0 -27
- package/src/app/shared/image/gallery/testing/gallery.testing.module.ts +0 -39
- package/src/app/shared/image/gallery/testing/gallery.testing.ts +0 -34
- package/src/app/shared/image/image.model.ts +0 -8
- package/src/app/shared/image/image.module.ts +0 -12
- package/src/app/shared/image/image.service.ts +0 -111
- package/src/app/shared/image/image.testing.module.ts +0 -16
- package/src/app/shared/inputs.ts +0 -330
- package/src/app/shared/interceptors/progess.interceptor.ts +0 -24
- package/src/app/shared/logging/log-level.model.ts +0 -53
- package/src/app/shared/logging/logger.model.ts +0 -117
- package/src/app/shared/logging/logging-service.class.ts +0 -131
- package/src/app/shared/logging/logging-service.config.ts +0 -29
- package/src/app/shared/logging/logging-service.module.ts +0 -19
- package/src/app/shared/markdown/markdown.component.html +0 -55
- package/src/app/shared/markdown/markdown.component.scss +0 -75
- package/src/app/shared/markdown/markdown.component.ts +0 -350
- package/src/app/shared/markdown/markdown.directive.ts +0 -28
- package/src/app/shared/markdown/markdown.modal.html +0 -42
- package/src/app/shared/markdown/markdown.modal.ts +0 -91
- package/src/app/shared/markdown/markdown.module.ts +0 -65
- package/src/app/shared/markdown/markdown.service.ts +0 -234
- package/src/app/shared/markdown/markdown.utils.ts +0 -90
- package/src/app/shared/markdown/testing/markdown.test.html +0 -50
- package/src/app/shared/markdown/testing/markdown.test.ts +0 -49
- package/src/app/shared/markdown/testing/markdown.testing.module.ts +0 -22
- package/src/app/shared/material/autocomplete/material.autocomplete.config.ts +0 -127
- package/src/app/shared/material/autocomplete/material.autocomplete.html +0 -400
- package/src/app/shared/material/autocomplete/material.autocomplete.module.ts +0 -41
- package/src/app/shared/material/autocomplete/material.autocomplete.scss +0 -54
- package/src/app/shared/material/autocomplete/material.autocomplete.ts +0 -1375
- package/src/app/shared/material/autocomplete/material.autocomplete.utils.ts +0 -21
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.html +0 -1164
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.spec.ts +0 -33
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.ts +0 -272
- package/src/app/shared/material/badge/badge.directive.ts +0 -217
- package/src/app/shared/material/badge/badge.module.ts +0 -12
- package/src/app/shared/material/badge/badge.test.html +0 -275
- package/src/app/shared/material/badge/badge.test.ts +0 -34
- package/src/app/shared/material/boolean/boolean.module.ts +0 -36
- package/src/app/shared/material/boolean/material.boolean.html +0 -271
- package/src/app/shared/material/boolean/material.boolean.scss +0 -27
- package/src/app/shared/material/boolean/material.boolean.ts +0 -343
- package/src/app/shared/material/boolean/testing/boolean.test.page.html +0 -469
- package/src/app/shared/material/boolean/testing/boolean.test.page.ts +0 -66
- package/src/app/shared/material/chips/chips.module.ts +0 -38
- package/src/app/shared/material/chips/material.chips.html +0 -233
- package/src/app/shared/material/chips/material.chips.scss +0 -67
- package/src/app/shared/material/chips/material.chips.ts +0 -834
- package/src/app/shared/material/chips/testing/chips.test.html +0 -207
- package/src/app/shared/material/chips/testing/chips.test.ts +0 -169
- package/src/app/shared/material/datetime/datetime.module.ts +0 -42
- package/src/app/shared/material/datetime/material.date.html +0 -186
- package/src/app/shared/material/datetime/material.date.scss +0 -17
- package/src/app/shared/material/datetime/material.date.ts +0 -512
- package/src/app/shared/material/datetime/material.dateshort.html +0 -194
- package/src/app/shared/material/datetime/material.dateshort.scss +0 -23
- package/src/app/shared/material/datetime/material.dateshort.ts +0 -497
- package/src/app/shared/material/datetime/material.datetime.html +0 -325
- package/src/app/shared/material/datetime/material.datetime.scss +0 -87
- package/src/app/shared/material/datetime/material.datetime.ts +0 -758
- package/src/app/shared/material/datetime/testing/mat-date-time.test.html +0 -794
- package/src/app/shared/material/datetime/testing/mat-date-time.test.ts +0 -155
- package/src/app/shared/material/datetime/testing/mat-date.test.html +0 -564
- package/src/app/shared/material/datetime/testing/mat-date.test.ts +0 -145
- package/src/app/shared/material/datetime/testing/mat-dateshort.test.html +0 -530
- package/src/app/shared/material/datetime/testing/mat-dateshort.test.ts +0 -133
- package/src/app/shared/material/duration/duration.module.ts +0 -33
- package/src/app/shared/material/duration/duration.utils.ts +0 -18
- package/src/app/shared/material/duration/material.duration.html +0 -116
- package/src/app/shared/material/duration/material.duration.scss +0 -28
- package/src/app/shared/material/duration/material.duration.ts +0 -308
- package/src/app/shared/material/duration/testing/mat-duration.test.html +0 -170
- package/src/app/shared/material/duration/testing/mat-duration.test.ts +0 -88
- package/src/app/shared/material/latlong/latlong.utils.ts +0 -376
- package/src/app/shared/material/latlong/material.latlong-input.html +0 -95
- package/src/app/shared/material/latlong/material.latlong-input.scss +0 -66
- package/src/app/shared/material/latlong/material.latlong-input.ts +0 -445
- package/src/app/shared/material/latlong/material.latlong.html +0 -90
- package/src/app/shared/material/latlong/material.latlong.module.ts +0 -37
- package/src/app/shared/material/latlong/material.latlong.scss +0 -0
- package/src/app/shared/material/latlong/material.latlong.ts +0 -203
- package/src/app/shared/material/latlong/testing/latlong.test.html +0 -1008
- package/src/app/shared/material/latlong/testing/latlong.test.ts +0 -144
- package/src/app/shared/material/material.animations.ts +0 -269
- package/src/app/shared/material/material.config.ts +0 -5
- package/src/app/shared/material/material.module.ts +0 -94
- package/src/app/shared/material/material.testing.module.ts +0 -192
- package/src/app/shared/material/memory/memory.utils.ts +0 -57
- package/src/app/shared/material/numpad/numpad.animation.ts +0 -1
- package/src/app/shared/material/numpad/numpad.append-to-input.directive.ts +0 -110
- package/src/app/shared/material/numpad/numpad.component.ts +0 -73
- package/src/app/shared/material/numpad/numpad.container.html +0 -37
- package/src/app/shared/material/numpad/numpad.container.scss +0 -55
- package/src/app/shared/material/numpad/numpad.container.ts +0 -152
- package/src/app/shared/material/numpad/numpad.content.html +0 -13
- package/src/app/shared/material/numpad/numpad.content.ts +0 -10
- package/src/app/shared/material/numpad/numpad.directive.ts +0 -159
- package/src/app/shared/material/numpad/numpad.dom-service.ts +0 -35
- package/src/app/shared/material/numpad/numpad.model.ts +0 -53
- package/src/app/shared/material/numpad/numpad.module.ts +0 -18
- package/src/app/shared/material/numpad/testing/numpad.test.html +0 -146
- package/src/app/shared/material/numpad/testing/numpad.test.ts +0 -44
- package/src/app/shared/material/paginator/material.paginator-i18n.ts +0 -47
- package/src/app/shared/material/stepper/material.stepper-i18n.ts +0 -17
- package/src/app/shared/material/swipe/material.swipe.html +0 -85
- package/src/app/shared/material/swipe/material.swipe.scss +0 -55
- package/src/app/shared/material/swipe/material.swipe.ts +0 -366
- package/src/app/shared/material/swipe/swipe.module.ts +0 -29
- package/src/app/shared/material/swipe/testing/swipe.test.html +0 -112
- package/src/app/shared/material/swipe/testing/swipe.test.ts +0 -74
- package/src/app/shared/material/test/test-component.css +0 -22
- package/src/app/shared/material/test/test-component.html +0 -40
- package/src/app/shared/material/test/test-component.ts +0 -295
- package/src/app/shared/material/testing/common.test.html +0 -227
- package/src/app/shared/material/testing/common.test.ts +0 -126
- package/src/app/shared/material/text/testing/text-form.testing.html +0 -213
- package/src/app/shared/material/text/testing/text-form.testing.ts +0 -30
- package/src/app/shared/material/text/text-form.component.html +0 -63
- package/src/app/shared/material/text/text-form.component.scss +0 -8
- package/src/app/shared/material/text/text-form.component.ts +0 -177
- package/src/app/shared/material/text/text-form.module.ts +0 -36
- package/src/app/shared/modules.ts +0 -12
- package/src/app/shared/named-filter/named-filter-selector.component.html +0 -77
- package/src/app/shared/named-filter/named-filter-selector.component.scss +0 -3
- package/src/app/shared/named-filter/named-filter-selector.component.ts +0 -287
- package/src/app/shared/named-filter/named-filter.model.ts +0 -64
- package/src/app/shared/named-filter/named-filter.module.ts +0 -15
- package/src/app/shared/named-filter/named-filter.service.ts +0 -100
- package/src/app/shared/named-filter/testing/named-filter-selector.testing.html +0 -61
- package/src/app/shared/named-filter/testing/named-filter-selector.testing.ts +0 -80
- package/src/app/shared/named-filter/testing/named-filter.testing.module.ts +0 -20
- package/src/app/shared/named-filter/testing/named-filter.testing.service.ts +0 -83
- package/src/app/shared/observables.ts +0 -139
- package/src/app/shared/pipes/arrays.pipe.ts +0 -153
- package/src/app/shared/pipes/badge.pipes.ts +0 -18
- package/src/app/shared/pipes/colors.pipe.ts +0 -24
- package/src/app/shared/pipes/date-diff-duration.pipe.ts +0 -53
- package/src/app/shared/pipes/date-format.pipe.ts +0 -73
- package/src/app/shared/pipes/date-from-now.pipe.ts +0 -17
- package/src/app/shared/pipes/dates.pipe.ts +0 -13
- package/src/app/shared/pipes/display-with.pipe.ts +0 -13
- package/src/app/shared/pipes/duration.pipe.spec.ts +0 -41
- package/src/app/shared/pipes/duration.pipe.ts +0 -28
- package/src/app/shared/pipes/file-size.pipe.ts +0 -50
- package/src/app/shared/pipes/form.pipes.ts +0 -209
- package/src/app/shared/pipes/highlight.pipe.ts +0 -41
- package/src/app/shared/pipes/html.pipes.ts +0 -49
- package/src/app/shared/pipes/latlong-format.pipe.ts +0 -28
- package/src/app/shared/pipes/maps.pipe.ts +0 -41
- package/src/app/shared/pipes/maskito.pipe.ts +0 -68
- package/src/app/shared/pipes/math.pipes.ts +0 -46
- package/src/app/shared/pipes/ng-init.pipe.ts +0 -13
- package/src/app/shared/pipes/number-format.pipe.ts +0 -11
- package/src/app/shared/pipes/observable.pipes.ts +0 -46
- package/src/app/shared/pipes/pipes.module.ts +0 -162
- package/src/app/shared/pipes/property.pipes.ts +0 -115
- package/src/app/shared/pipes/selection.pipes.ts +0 -165
- package/src/app/shared/pipes/string.pipes.ts +0 -128
- package/src/app/shared/pipes/translate-context.pipe.ts +0 -27
- package/src/app/shared/pipes/types.pipes.ts +0 -52
- package/src/app/shared/pipes/url.pipes.ts +0 -29
- package/src/app/shared/platforms.ts +0 -99
- package/src/app/shared/print/print.service.ts +0 -337
- package/src/app/shared/regexps.ts +0 -112
- package/src/app/shared/rx-state/rx-state.decorators.ts +0 -281
- package/src/app/shared/rx-state/rx-state.module.ts +0 -11
- package/src/app/shared/rx-state/rx-state.types.ts +0 -5
- package/src/app/shared/services/entity-service.class.ts +0 -120
- package/src/app/shared/services/job.utils.ts +0 -124
- package/src/app/shared/services/memory-entity-service.class.ts +0 -435
- package/src/app/shared/services/progress-bar.service.ts +0 -40
- package/src/app/shared/services/startable-observable-service.class.ts +0 -129
- package/src/app/shared/services/startable-service.class.ts +0 -120
- package/src/app/shared/services/storage.utils.ts +0 -53
- package/src/app/shared/services/translate-context.service.ts +0 -112
- package/src/app/shared/services/validator-service.class.ts +0 -13
- package/src/app/shared/services.ts +0 -134
- package/src/app/shared/shared-routing.module.ts +0 -69
- package/src/app/shared/shared.module.spec.ts +0 -13
- package/src/app/shared/shared.module.ts +0 -168
- package/src/app/shared/shared.testing.module.ts +0 -61
- package/src/app/shared/storage/storage-explorer.component.html +0 -160
- package/src/app/shared/storage/storage-explorer.component.scss +0 -37
- package/src/app/shared/storage/storage-explorer.component.spec.ts +0 -24
- package/src/app/shared/storage/storage-explorer.component.ts +0 -268
- package/src/app/shared/storage/storage-explorer.module.ts +0 -24
- package/src/app/shared/storage/storage-explorer.testing-routing.module.ts +0 -19
- package/src/app/shared/storage/storage-explorer.testing.module.ts +0 -19
- package/src/app/shared/storage/storage.service.ts +0 -131
- package/src/app/shared/storage/storage.utils.ts +0 -25
- package/src/app/shared/testing/maskito.test.html +0 -40
- package/src/app/shared/testing/maskito.test.ts +0 -33
- package/src/app/shared/testing/observable.test.html +0 -53
- package/src/app/shared/testing/observable.test.scss +0 -3
- package/src/app/shared/testing/observable.test.ts +0 -101
- package/src/app/shared/testing/tests.page.html +0 -22
- package/src/app/shared/testing/tests.page.ts +0 -32
- package/src/app/shared/toast/toast.testing.html +0 -50
- package/src/app/shared/toast/toast.testing.module.ts +0 -22
- package/src/app/shared/toast/toast.testing.ts +0 -52
- package/src/app/shared/toast/toasts.ts +0 -161
- package/src/app/shared/toolbar/modal-toolbar.html +0 -30
- package/src/app/shared/toolbar/modal-toolbar.scss +0 -0
- package/src/app/shared/toolbar/modal-toolbar.ts +0 -64
- package/src/app/shared/toolbar/toolbar.html +0 -68
- package/src/app/shared/toolbar/toolbar.module.ts +0 -18
- package/src/app/shared/toolbar/toolbar.scss +0 -0
- package/src/app/shared/toolbar/toolbar.ts +0 -262
- package/src/app/shared/types.ts +0 -44
- package/src/app/shared/upload-file/testing/upload-file.testing.html +0 -30
- package/src/app/shared/upload-file/testing/upload-file.testing.module.ts +0 -21
- package/src/app/shared/upload-file/testing/upload-file.testing.ts +0 -65
- package/src/app/shared/upload-file/upload-file-popover.component.html +0 -46
- package/src/app/shared/upload-file/upload-file-popover.component.scss +0 -6
- package/src/app/shared/upload-file/upload-file-popover.component.ts +0 -115
- package/src/app/shared/upload-file/upload-file.component.html +0 -57
- package/src/app/shared/upload-file/upload-file.component.scss +0 -60
- package/src/app/shared/upload-file/upload-file.component.ts +0 -222
- package/src/app/shared/upload-file/upload-file.model.ts +0 -40
- package/src/app/shared/validator/form-error-adapter.class.ts +0 -139
- package/src/app/shared/validator/validators.ts +0 -725
- package/src/app/shared/version/versions.ts +0 -89
- package/src/app/social/config/social.config.ts +0 -10
- package/src/app/social/feed/discourse/discourse-feed.service.ts +0 -216
- package/src/app/social/feed/discourse/discourse.model.ts +0 -9
- package/src/app/social/feed/discourse/discourse.utils.ts +0 -210
- package/src/app/social/feed/feed.component.html +0 -85
- package/src/app/social/feed/feed.component.scss +0 -59
- package/src/app/social/feed/feed.component.spec.ts +0 -24
- package/src/app/social/feed/feed.component.ts +0 -115
- package/src/app/social/feed/feed.directive.ts +0 -164
- package/src/app/social/feed/feed.model.ts +0 -139
- package/src/app/social/feed/feed.module.ts +0 -13
- package/src/app/social/feed/feed.service.ts +0 -14
- package/src/app/social/job/job.module.ts +0 -14
- package/src/app/social/job/progression/job-progression.component.html +0 -19
- package/src/app/social/job/progression/job-progression.component.scss +0 -15
- package/src/app/social/job/progression/job-progression.component.ts +0 -39
- package/src/app/social/job/progression/job-progression.icon.html +0 -32
- package/src/app/social/job/progression/job-progression.icon.scss +0 -7
- package/src/app/social/job/progression/job-progression.icon.ts +0 -277
- package/src/app/social/job/progression/job-progression.list.html +0 -25
- package/src/app/social/job/progression/job-progression.list.scss +0 -17
- package/src/app/social/job/progression/job-progression.list.ts +0 -40
- package/src/app/social/job/progression/job-progression.model.ts +0 -26
- package/src/app/social/job/progression/job-progression.service.ts +0 -97
- package/src/app/social/job/testing/job-progression.testing.html +0 -11
- package/src/app/social/job/testing/job-progression.testing.service.ts +0 -33
- package/src/app/social/job/testing/job-progression.testing.ts +0 -28
- package/src/app/social/job/testing/job.testing.module.ts +0 -13
- package/src/app/social/message/message.form.html +0 -71
- package/src/app/social/message/message.form.scss +0 -6
- package/src/app/social/message/message.form.ts +0 -128
- package/src/app/social/message/message.modal.html +0 -68
- package/src/app/social/message/message.modal.ts +0 -117
- package/src/app/social/message/message.model.ts +0 -78
- package/src/app/social/message/message.module.ts +0 -14
- package/src/app/social/message/message.service.ts +0 -104
- package/src/app/social/social.errors.ts +0 -10
- package/src/app/social/social.module.ts +0 -23
- package/src/app/social/social.testing.module.ts +0 -33
- package/src/app/social/user-event/notification/user-event-notification.icon.html +0 -49
- package/src/app/social/user-event/notification/user-event-notification.icon.scss +0 -4
- package/src/app/social/user-event/notification/user-event-notification.icon.ts +0 -176
- package/src/app/social/user-event/notification/user-event-notification.list.html +0 -151
- package/src/app/social/user-event/notification/user-event-notification.list.scss +0 -73
- package/src/app/social/user-event/notification/user-event-notification.list.ts +0 -282
- package/src/app/social/user-event/notification/user-event-notification.modal.html +0 -71
- package/src/app/social/user-event/notification/user-event-notification.modal.ts +0 -60
- package/src/app/social/user-event/testing/user-event.testing.html +0 -54
- package/src/app/social/user-event/testing/user-event.testing.model.ts +0 -142
- package/src/app/social/user-event/testing/user-event.testing.module.ts +0 -13
- package/src/app/social/user-event/testing/user-event.testing.service.ts +0 -161
- package/src/app/social/user-event/testing/user-event.testing.ts +0 -300
- package/src/app/social/user-event/user-event.model.ts +0 -55
- package/src/app/social/user-event/user-event.module.ts +0 -16
- package/src/app/social/user-event/user-event.service.ts +0 -686
- package/src/browserslist +0 -9
- package/src/environments/environment.class.ts +0 -113
- package/src/environments/environment.loader.ts +0 -90
- package/src/environments/environment.prod.ts +0 -49
- package/src/environments/environment.test.ts +0 -92
- package/src/environments/environment.ts +0 -136
- package/src/favicon.ico +0 -0
- package/src/global.scss +0 -13
- package/src/index.html +0 -76
- package/src/main.ts +0 -19
- package/src/polyfills.ts +0 -34
- package/src/schema.graphql +0 -4381
- package/src/service-worker.js +0 -31
- package/src/test.ts +0 -30
- package/tsconfig-cs.json +0 -57
- package/tsconfig.app.json +0 -15
- package/tsconfig.json +0 -48
- package/tsconfig.spec.json +0 -18
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { Validators } from '@angular/forms';
|
|
3
|
+
import { MessageTypeList, MessageTypes } from './message.model';
|
|
4
|
+
import { AppForm } from '../../core/form/form.class';
|
|
5
|
+
import { StatusIds } from '../../core/services/model/model.enum';
|
|
6
|
+
import { PersonUtils } from '../../core/services/model/person.model';
|
|
7
|
+
import { EntityUtils } from '../../core/services/model/entity.model';
|
|
8
|
+
import { changeCaseToUnderscore, isNotNil, toBoolean } from '../../shared/functions';
|
|
9
|
+
import { filter } from 'rxjs/operators';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@angular/forms";
|
|
12
|
+
import * as i2 from "@angular/common";
|
|
13
|
+
import * as i3 from "@ionic/angular";
|
|
14
|
+
import * as i4 from "@ngx-translate/core";
|
|
15
|
+
import * as i5 from "@angular/material/form-field";
|
|
16
|
+
import * as i6 from "@angular/material/input";
|
|
17
|
+
import * as i7 from "@angular/cdk/text-field";
|
|
18
|
+
import * as i8 from "@angular/material/select";
|
|
19
|
+
import * as i9 from "@angular/material/core";
|
|
20
|
+
import * as i10 from "../../shared/material/chips/material.chips";
|
|
21
|
+
import * as i11 from "../../shared/directives/autoresize.directive";
|
|
22
|
+
import * as i12 from "@angular/material/chips";
|
|
23
|
+
export class MessageForm extends AppForm {
|
|
24
|
+
formBuilder;
|
|
25
|
+
cd;
|
|
26
|
+
mobile;
|
|
27
|
+
suggestFn;
|
|
28
|
+
subjectMinLength = 5;
|
|
29
|
+
subjectMaxLength = 255;
|
|
30
|
+
bodyMaxLength = 2000;
|
|
31
|
+
bodyAutoHeight = true;
|
|
32
|
+
canSelectType = false;
|
|
33
|
+
canRecipientFilter = false;
|
|
34
|
+
recipientFilterCount = 0;
|
|
35
|
+
types = MessageTypeList;
|
|
36
|
+
constructor(injector, formBuilder, cd) {
|
|
37
|
+
super(injector);
|
|
38
|
+
this.formBuilder = formBuilder;
|
|
39
|
+
this.cd = cd;
|
|
40
|
+
this.mobile = this.settings.mobile;
|
|
41
|
+
}
|
|
42
|
+
ngOnInit() {
|
|
43
|
+
this.setForm(this.formBuilder.group({
|
|
44
|
+
type: [MessageTypes.INBOX_MESSAGE, Validators.required],
|
|
45
|
+
recipients: [null, Validators.required],
|
|
46
|
+
recipientFilter: [null],
|
|
47
|
+
subject: [
|
|
48
|
+
null,
|
|
49
|
+
this.subjectMaxLength
|
|
50
|
+
? Validators.compose([Validators.required, Validators.minLength(this.subjectMinLength), Validators.maxLength(this.subjectMaxLength)])
|
|
51
|
+
: Validators.required,
|
|
52
|
+
],
|
|
53
|
+
body: [null, this.bodyMaxLength ? Validators.compose([Validators.maxLength(this.bodyMaxLength)]) : Validators.required],
|
|
54
|
+
}));
|
|
55
|
+
this.registerSubscription(this._form
|
|
56
|
+
.get('type')
|
|
57
|
+
.valueChanges.pipe(filter(isNotNil))
|
|
58
|
+
.subscribe((type) => this.updateFormGroup(this._form, { type })));
|
|
59
|
+
// Person combo
|
|
60
|
+
const personAttributes = this.settings.getFieldDisplayAttributes('person', ['lastName', 'firstName', 'department.name']);
|
|
61
|
+
this.registerAutocompleteField('recipients', {
|
|
62
|
+
showAllOnFocus: false,
|
|
63
|
+
suggestFn: this.suggestFn,
|
|
64
|
+
filter: {
|
|
65
|
+
statusIds: [StatusIds.TEMPORARY, StatusIds.ENABLE],
|
|
66
|
+
},
|
|
67
|
+
attributes: personAttributes,
|
|
68
|
+
columnNames: personAttributes.map((attr) => `USER.${changeCaseToUnderscore(attr).toUpperCase()}`),
|
|
69
|
+
displayWith: PersonUtils.personToString,
|
|
70
|
+
multiple: true,
|
|
71
|
+
mobile: this.mobile,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
isSamePerson(o1, o2) {
|
|
75
|
+
return EntityUtils.equals(o1, o2, 'id');
|
|
76
|
+
}
|
|
77
|
+
updateFormGroup(formGroup, opts) {
|
|
78
|
+
console.debug('[message-form] Updating form group...', opts);
|
|
79
|
+
// Recipient validator
|
|
80
|
+
const recipientsRequired = toBoolean(opts?.recipientRequired, opts?.type !== MessageTypes.FEED);
|
|
81
|
+
{
|
|
82
|
+
const control = formGroup.get('recipients');
|
|
83
|
+
if (recipientsRequired) {
|
|
84
|
+
if (!control.hasValidator(Validators.required)) {
|
|
85
|
+
control.addValidators(Validators.required);
|
|
86
|
+
}
|
|
87
|
+
control.enable();
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
if (control.hasValidator(Validators.required)) {
|
|
91
|
+
control.removeValidators(Validators.required);
|
|
92
|
+
}
|
|
93
|
+
control.disable();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// Recipient filter validator
|
|
97
|
+
const recipientFilterRequired = this.canRecipientFilter && !recipientsRequired;
|
|
98
|
+
{
|
|
99
|
+
const control = formGroup.get('recipientFilter');
|
|
100
|
+
if (recipientFilterRequired) {
|
|
101
|
+
if (!control.hasValidator(Validators.required)) {
|
|
102
|
+
control.addValidators(Validators.required);
|
|
103
|
+
}
|
|
104
|
+
control.enable();
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
if (control.hasValidator(Validators.required)) {
|
|
108
|
+
control.removeValidators(Validators.required);
|
|
109
|
+
}
|
|
110
|
+
control.disable();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
formGroup.updateValueAndValidity();
|
|
114
|
+
}
|
|
115
|
+
markForCheck() {
|
|
116
|
+
this.cd.markForCheck();
|
|
117
|
+
}
|
|
118
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageForm, deps: [{ token: i0.Injector }, { token: i1.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
119
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: MessageForm, selector: "app-message-form", inputs: { suggestFn: "suggestFn", subjectMinLength: "subjectMinLength", subjectMaxLength: "subjectMaxLength", bodyMaxLength: "bodyMaxLength", bodyAutoHeight: "bodyAutoHeight", canSelectType: "canSelectType", canRecipientFilter: "canRecipientFilter", recipientFilterCount: "recipientFilterCount" }, usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" class=\"form-container\">\n <!-- type -->\n <mat-form-field *ngIf=\"canSelectType\">\n <mat-label>{{ 'SOCIAL.MESSAGE.TYPE' | translate }}</mat-label>\n <mat-select formControlName=\"type\">\n <ng-container *ngFor=\"let item of types\">\n <mat-option [value]=\"item.id\" *ngIf=\"item.id !== 'FEED' || canRecipientFilter\">\n <ion-icon [name]=\"item.icon\"></ion-icon>\n {{ item.label | translate }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n\n <!-- Recipients -->\n <mat-chips-field\n *ngIf=\"(form.controls.type.valueChanges | async) !== 'FEED'; else recipientFilter\"\n formControlName=\"recipients\"\n chipColor=\"accent\"\n [placeholder]=\"'SOCIAL.MESSAGE.RECIPIENTS' | translate\"\n [config]=\"autocompleteFields.recipients\"\n [equals]=\"isSamePerson\"\n ></mat-chips-field>\n <ng-template #recipientFilter>\n <mat-form-field>\n <mat-chip-grid>\n <mat-chip-row>\n {{ 'SOCIAL.MESSAGE.RECIPIENT_FILTER_COUNT' | translate: { count: recipientFilterCount } }}\n </mat-chip-row>\n </mat-chip-grid>\n <input matInput hidden type=\"number\" />\n </mat-form-field>\n </ng-template>\n\n <!-- Subject -->\n <mat-form-field>\n <mat-label>{{ 'SOCIAL.MESSAGE.SUBJECT' | translate }}</mat-label>\n <input matInput type=\"text\" formControlName=\"subject\" autocomplete=\"off\" required />\n <mat-error *ngIf=\"form.controls.subject.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"form.controls.subject.hasError('minlength')\">\n {{ 'ERROR.FIELD_MIN_LENGTH_COMPACT' | translate }}\n </mat-error>\n <mat-error *ngIf=\"form.controls.subject.hasError('maxlength')\">\n {{ 'ERROR.FIELD_MAX_LENGTH_COMPACT' | translate }}\n </mat-error>\n <mat-hint *ngIf=\"subjectMaxLength\" align=\"end\">\n {{\n 'INFO.TEXT_PROGRESS' | translate: { current: form.controls.subject.value?.length || 0, max: subjectMaxLength }\n }}\n </mat-hint>\n </mat-form-field>\n\n <!-- Body -->\n <mat-form-field>\n <mat-label>{{ 'SOCIAL.MESSAGE.BODY_HELP' | translate }}</mat-label>\n <textarea\n matInput\n type=\"text\"\n formControlName=\"body\"\n [class.fixed-height]=\"!bodyAutoHeight\"\n [cdkTextareaAutosize]=\"bodyAutoHeight\"\n (keydown.control.enter)=\"doSubmit($event)\"\n ></textarea>\n <mat-error *ngIf=\"form.controls.body.hasError('maxlength')\">\n {{ 'ERROR.FIELD_MAX_LENGTH' | translate: form.controls.body.errors.maxlength }}\n </mat-error>\n <mat-hint *ngIf=\"bodyMaxLength\" align=\"end\">\n {{ 'INFO.TEXT_PROGRESS' | translate: { current: form.controls.body.value?.length || 0, max: bodyMaxLength } }}\n </mat-hint>\n </mat-form-field>\n</form>\n", styles: ["textarea.fixed-height{height:11.5em}textarea{min-height:11.5em}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "directive", type: i4.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i5.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i7.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i9.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i10.MatChipsField, selector: "mat-chips-field", inputs: ["equals", "logPrefix", "formControl", "formControlName", "floatLabel", "placeholder", "suggestFn", "required", "mobile", "readonly", "clearable", "debounceTime", "displaySeparator", "displayWith", "displayAttributes", "displayColumnSizes", "displayColumnNames", "highlightAccent", "showAllOnFocus", "showPanelOnFocus", "autofocus", "config", "i18nPrefix", "noResultMessage", "panelClass", "panelWidth", "disableRipple", "matAutocompletePosition", "itemSize", "fetchMoreThreshold", "suggestLengthThreshold", "showLoadingSpinner", "chipColor", "debug", "applyImplicitValue", "dropButtonTitle", "clearButtonTitle", "trimSearchText", "hideRequiredMarker", "colSizes", "separatorKeysCodes", "appearance", "subscriptSizing", "class", "filter", "tabindex", "items"], outputs: ["click", "blur", "focus", "dropButtonClick", "keydown.escape", "keyup.enter"] }, { kind: "directive", type: i11.AutoResizeDirective, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMaxRows", "cdkAutosizeMinRows"] }, { kind: "component", type: i12.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "component", type: i12.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
120
|
+
}
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageForm, decorators: [{
|
|
122
|
+
type: Component,
|
|
123
|
+
args: [{ selector: 'app-message-form', changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"form\" class=\"form-container\">\n <!-- type -->\n <mat-form-field *ngIf=\"canSelectType\">\n <mat-label>{{ 'SOCIAL.MESSAGE.TYPE' | translate }}</mat-label>\n <mat-select formControlName=\"type\">\n <ng-container *ngFor=\"let item of types\">\n <mat-option [value]=\"item.id\" *ngIf=\"item.id !== 'FEED' || canRecipientFilter\">\n <ion-icon [name]=\"item.icon\"></ion-icon>\n {{ item.label | translate }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n\n <!-- Recipients -->\n <mat-chips-field\n *ngIf=\"(form.controls.type.valueChanges | async) !== 'FEED'; else recipientFilter\"\n formControlName=\"recipients\"\n chipColor=\"accent\"\n [placeholder]=\"'SOCIAL.MESSAGE.RECIPIENTS' | translate\"\n [config]=\"autocompleteFields.recipients\"\n [equals]=\"isSamePerson\"\n ></mat-chips-field>\n <ng-template #recipientFilter>\n <mat-form-field>\n <mat-chip-grid>\n <mat-chip-row>\n {{ 'SOCIAL.MESSAGE.RECIPIENT_FILTER_COUNT' | translate: { count: recipientFilterCount } }}\n </mat-chip-row>\n </mat-chip-grid>\n <input matInput hidden type=\"number\" />\n </mat-form-field>\n </ng-template>\n\n <!-- Subject -->\n <mat-form-field>\n <mat-label>{{ 'SOCIAL.MESSAGE.SUBJECT' | translate }}</mat-label>\n <input matInput type=\"text\" formControlName=\"subject\" autocomplete=\"off\" required />\n <mat-error *ngIf=\"form.controls.subject.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"form.controls.subject.hasError('minlength')\">\n {{ 'ERROR.FIELD_MIN_LENGTH_COMPACT' | translate }}\n </mat-error>\n <mat-error *ngIf=\"form.controls.subject.hasError('maxlength')\">\n {{ 'ERROR.FIELD_MAX_LENGTH_COMPACT' | translate }}\n </mat-error>\n <mat-hint *ngIf=\"subjectMaxLength\" align=\"end\">\n {{\n 'INFO.TEXT_PROGRESS' | translate: { current: form.controls.subject.value?.length || 0, max: subjectMaxLength }\n }}\n </mat-hint>\n </mat-form-field>\n\n <!-- Body -->\n <mat-form-field>\n <mat-label>{{ 'SOCIAL.MESSAGE.BODY_HELP' | translate }}</mat-label>\n <textarea\n matInput\n type=\"text\"\n formControlName=\"body\"\n [class.fixed-height]=\"!bodyAutoHeight\"\n [cdkTextareaAutosize]=\"bodyAutoHeight\"\n (keydown.control.enter)=\"doSubmit($event)\"\n ></textarea>\n <mat-error *ngIf=\"form.controls.body.hasError('maxlength')\">\n {{ 'ERROR.FIELD_MAX_LENGTH' | translate: form.controls.body.errors.maxlength }}\n </mat-error>\n <mat-hint *ngIf=\"bodyMaxLength\" align=\"end\">\n {{ 'INFO.TEXT_PROGRESS' | translate: { current: form.controls.body.value?.length || 0, max: bodyMaxLength } }}\n </mat-hint>\n </mat-form-field>\n</form>\n", styles: ["textarea.fixed-height{height:11.5em}textarea{min-height:11.5em}\n"] }]
|
|
124
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }], propDecorators: { suggestFn: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], subjectMinLength: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], subjectMaxLength: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], bodyMaxLength: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], bodyAutoHeight: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], canSelectType: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], canRecipientFilter: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], recipientFilterCount: [{
|
|
139
|
+
type: Input
|
|
140
|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9XCJ0ZXh0XCJcbiAgICAgIGZvcm1Db250cm9sTmFtZT1cImJvZHlcIlxuICAgICAgW2NsYXNzLmZpeGVkLWhlaWdodF09XCIhYm9keUF1dG9IZWlnaHRcIlxuICAgICAgW2Nka1RleHRhcmVhQXV0b3NpemVdPVwiYm9keUF1dG9IZWlnaHRcIlxuICAgICAgKGtleWRvd24uY29udHJvbC5lbnRlcik9XCJkb1N1Ym1pdCgkZXZlbnQpXCJcbiAgICA+PC90ZXh0YXJlYT5cbiAgICA8bWF0LWVycm9yICpuZ0lmPVwiZm9ybS5jb250cm9scy5ib2R5Lmhhc0Vycm9yKCdtYXhsZW5ndGgnKVwiPlxuICAgICAge3sgJ0VSUk9SLkZJRUxEX01BWF9MRU5HVEgnIHwgdHJhbnNsYXRlOiBmb3JtLmNvbnRyb2xzLmJvZHkuZXJyb3JzLm1heGxlbmd0aCB9fVxuICAgIDwvbWF0LWVycm9yPlxuICAgIDxtYXQtaGludCAqbmdJZj1cImJvZHlNYXhMZW5ndGhcIiBhbGlnbj1cImVuZFwiPlxuICAgICAge3sgJ0lORk8uVEVYVF9QUk9HUkVTUycgfCB0cmFuc2xhdGU6IHsgY3VycmVudDogZm9ybS5jb250cm9scy5ib2R5LnZhbHVlPy5sZW5ndGggfHwgMCwgbWF4OiBib2R5TWF4TGVuZ3RoIH0gfX1cbiAgICA8L21hdC1oaW50PlxuICA8L21hdC1mb3JtLWZpZWxkPlxuPC9mb3JtPlxuIl19
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import { Message, MessageTypes } from './message.model';
|
|
3
|
+
import { firstNotNilPromise } from '../../shared/observables';
|
|
4
|
+
import { AppFormUtils } from '../../core/form/form.utils';
|
|
5
|
+
import { toBoolean } from '../../shared/functions';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../core/services/local-settings.service";
|
|
8
|
+
import * as i2 from "@ionic/angular";
|
|
9
|
+
import * as i3 from "../../core/services/account.service";
|
|
10
|
+
import * as i4 from "@angular/common";
|
|
11
|
+
import * as i5 from "@ngx-translate/core";
|
|
12
|
+
import * as i6 from "./message.form";
|
|
13
|
+
export class MessageModal {
|
|
14
|
+
settings;
|
|
15
|
+
viewCtrl;
|
|
16
|
+
accountService;
|
|
17
|
+
cd;
|
|
18
|
+
mobile;
|
|
19
|
+
suggestFn;
|
|
20
|
+
data;
|
|
21
|
+
canSelectType;
|
|
22
|
+
canRecipientFilter;
|
|
23
|
+
recipientFilterCount;
|
|
24
|
+
form;
|
|
25
|
+
constructor(settings, viewCtrl, accountService, cd) {
|
|
26
|
+
this.settings = settings;
|
|
27
|
+
this.viewCtrl = viewCtrl;
|
|
28
|
+
this.accountService = accountService;
|
|
29
|
+
this.cd = cd;
|
|
30
|
+
this.mobile = this.settings.mobile;
|
|
31
|
+
}
|
|
32
|
+
ngOnInit() {
|
|
33
|
+
this.canSelectType = toBoolean(this.canSelectType, this.accountService.isAdmin());
|
|
34
|
+
}
|
|
35
|
+
ngAfterViewInit() {
|
|
36
|
+
setTimeout(() => {
|
|
37
|
+
this.form.markAsReady({ emitEvent: false });
|
|
38
|
+
if (this.data) {
|
|
39
|
+
this.data.type = this.data.type || MessageTypes.INBOX_MESSAGE;
|
|
40
|
+
this.form.setValue(this.data);
|
|
41
|
+
}
|
|
42
|
+
this.form.markAsLoaded();
|
|
43
|
+
this.form.enable();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
cancel() {
|
|
47
|
+
this.viewCtrl.dismiss();
|
|
48
|
+
}
|
|
49
|
+
async doSubmit() {
|
|
50
|
+
if (this.form.disabled)
|
|
51
|
+
return;
|
|
52
|
+
if (!this.form.valid) {
|
|
53
|
+
await AppFormUtils.waitWhilePending(this.form);
|
|
54
|
+
if (this.form.invalid) {
|
|
55
|
+
AppFormUtils.logFormErrors(this.form.form, '[message-modal] ');
|
|
56
|
+
this.form.markAllAsTouched();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
this.markAsLoading();
|
|
61
|
+
try {
|
|
62
|
+
const data = this.form.value;
|
|
63
|
+
// Disable the form
|
|
64
|
+
this.form.disable();
|
|
65
|
+
const entity = Message.fromObject(data);
|
|
66
|
+
return this.viewCtrl.dismiss(entity);
|
|
67
|
+
}
|
|
68
|
+
catch (err) {
|
|
69
|
+
this.form.error = (err && err.message) || err;
|
|
70
|
+
this.markAsLoaded();
|
|
71
|
+
// Enable the form
|
|
72
|
+
this.form.enable();
|
|
73
|
+
// Reset form error on next changes
|
|
74
|
+
firstNotNilPromise(this.form.form.valueChanges).then(() => {
|
|
75
|
+
this.form.error = null;
|
|
76
|
+
this.markForCheck();
|
|
77
|
+
});
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
markForCheck() {
|
|
82
|
+
this.cd.markForCheck();
|
|
83
|
+
}
|
|
84
|
+
markAsLoading(opts) {
|
|
85
|
+
this.form.markAsLoading(opts);
|
|
86
|
+
}
|
|
87
|
+
markAsLoaded(opts) {
|
|
88
|
+
this.form.markAsLoaded(opts);
|
|
89
|
+
}
|
|
90
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageModal, deps: [{ token: i1.LocalSettingsService }, { token: i2.ModalController }, { token: i3.AccountService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: MessageModal, selector: "app-message-modal", inputs: { suggestFn: "suggestFn", data: "data", canSelectType: "canSelectType", canRecipientFilter: "canRecipientFilter", recipientFilterCount: "recipientFilterCount" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true, static: true }], ngImport: i0, template: "<ion-header>\n <ion-toolbar color=\"secondary\">\n <ion-buttons slot=\"start\">\n <ion-button class=\"back-button\" (click)=\"cancel()\" visible-xs visible-sm visible-mobile>\n <ion-icon slot=\"icon-only\" name=\"arrow-back\"></ion-icon>\n </ion-button>\n </ion-buttons>\n\n <ion-title>\n {{ 'SOCIAL.MESSAGE.NEW.TITLE' | translate }}\n </ion-title>\n\n <ion-buttons slot=\"end\">\n <ion-button\n class=\"back-button\"\n (click)=\"doSubmit()\"\n [disabled]=\"!form.valid\"\n visible-xs\n visible-sm\n visible-mobile\n >\n <ion-icon slot=\"icon-only\" name=\"checkmark\"></ion-icon>\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"ion-padding\">\n <ion-item *ngIf=\"form.error\" visible-xs visible-sm visible-mobile lines=\"none\">\n <ion-icon color=\"danger\" slot=\"start\" name=\"alert-circle\"></ion-icon>\n <ion-label color=\"danger\" class=\"error\" [innerHTML]=\"form.error | translate\"></ion-label>\n </ion-item>\n\n <app-message-form\n #form\n (onSubmit)=\"doSubmit()\"\n (onCancel)=\"cancel()\"\n [canSelectType]=\"canSelectType\"\n [canRecipientFilter]=\"canRecipientFilter\"\n [recipientFilterCount]=\"recipientFilterCount\"\n [suggestFn]=\"suggestFn\"\n ></app-message-form>\n</ion-content>\n\n<ion-footer hidden-xs hidden-sm hidden-mobile>\n <ion-toolbar>\n <ion-row class=\"ion-no-padding\" nowrap>\n <ion-col></ion-col>\n\n <!-- buttons -->\n <ion-col size=\"auto\">\n <ion-button fill=\"clear\" color=\"dark\" (click)=\"cancel()\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n\n <ion-button\n [fill]=\"form.invalid ? 'clear' : 'solid'\"\n [disabled]=\"form.loading || form.invalid\"\n (keyup.enter)=\"doSubmit()\"\n (click)=\"doSubmit()\"\n color=\"tertiary\"\n >\n <ion-label translate>COMMON.BTN_SEND</ion-label>\n </ion-button>\n </ion-col>\n </ion-row>\n </ion-toolbar>\n</ion-footer>\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: i2.IonCol, selector: "ion-col", inputs: ["offset", "offsetLg", "offsetMd", "offsetSm", "offsetXl", "offsetXs", "pull", "pullLg", "pullMd", "pullSm", "pullXl", "pullXs", "push", "pushLg", "pushMd", "pushSm", "pushXl", "pushXs", "size", "sizeLg", "sizeMd", "sizeSm", "sizeXl", "sizeXs"] }, { kind: "component", type: i2.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i2.IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i2.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { kind: "component", type: i2.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i2.IonRow, selector: "ion-row" }, { kind: "component", type: i2.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: i2.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "directive", type: i5.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: i6.MessageForm, selector: "app-message-form", inputs: ["suggestFn", "subjectMinLength", "subjectMaxLength", "bodyMaxLength", "bodyAutoHeight", "canSelectType", "canRecipientFilter", "recipientFilterCount"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
92
|
+
}
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageModal, decorators: [{
|
|
94
|
+
type: Component,
|
|
95
|
+
args: [{ selector: 'app-message-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-header>\n <ion-toolbar color=\"secondary\">\n <ion-buttons slot=\"start\">\n <ion-button class=\"back-button\" (click)=\"cancel()\" visible-xs visible-sm visible-mobile>\n <ion-icon slot=\"icon-only\" name=\"arrow-back\"></ion-icon>\n </ion-button>\n </ion-buttons>\n\n <ion-title>\n {{ 'SOCIAL.MESSAGE.NEW.TITLE' | translate }}\n </ion-title>\n\n <ion-buttons slot=\"end\">\n <ion-button\n class=\"back-button\"\n (click)=\"doSubmit()\"\n [disabled]=\"!form.valid\"\n visible-xs\n visible-sm\n visible-mobile\n >\n <ion-icon slot=\"icon-only\" name=\"checkmark\"></ion-icon>\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"ion-padding\">\n <ion-item *ngIf=\"form.error\" visible-xs visible-sm visible-mobile lines=\"none\">\n <ion-icon color=\"danger\" slot=\"start\" name=\"alert-circle\"></ion-icon>\n <ion-label color=\"danger\" class=\"error\" [innerHTML]=\"form.error | translate\"></ion-label>\n </ion-item>\n\n <app-message-form\n #form\n (onSubmit)=\"doSubmit()\"\n (onCancel)=\"cancel()\"\n [canSelectType]=\"canSelectType\"\n [canRecipientFilter]=\"canRecipientFilter\"\n [recipientFilterCount]=\"recipientFilterCount\"\n [suggestFn]=\"suggestFn\"\n ></app-message-form>\n</ion-content>\n\n<ion-footer hidden-xs hidden-sm hidden-mobile>\n <ion-toolbar>\n <ion-row class=\"ion-no-padding\" nowrap>\n <ion-col></ion-col>\n\n <!-- buttons -->\n <ion-col size=\"auto\">\n <ion-button fill=\"clear\" color=\"dark\" (click)=\"cancel()\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n\n <ion-button\n [fill]=\"form.invalid ? 'clear' : 'solid'\"\n [disabled]=\"form.loading || form.invalid\"\n (keyup.enter)=\"doSubmit()\"\n (click)=\"doSubmit()\"\n color=\"tertiary\"\n >\n <ion-label translate>COMMON.BTN_SEND</ion-label>\n </ion-button>\n </ion-col>\n </ion-row>\n </ion-toolbar>\n</ion-footer>\n" }]
|
|
96
|
+
}], ctorParameters: () => [{ type: i1.LocalSettingsService }, { type: i2.ModalController }, { type: i3.AccountService }, { type: i0.ChangeDetectorRef }], propDecorators: { suggestFn: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], data: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], canSelectType: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], canRecipientFilter: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], recipientFilterCount: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], form: [{
|
|
107
|
+
type: ViewChild,
|
|
108
|
+
args: ['form', { static: true }]
|
|
109
|
+
}] } });
|
|
110
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZS5tb2RhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvc29jaWFsL21lc3NhZ2UvbWVzc2FnZS5tb2RhbC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvc29jaWFsL21lc3NhZ2UvbWVzc2FnZS5tb2RhbC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsdUJBQXVCLEVBQXFCLFNBQVMsRUFBRSxLQUFLLEVBQVUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRy9ILE9BQU8sR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sbF09XCJmb3JtLmludmFsaWQgPyAnY2xlYXInIDogJ3NvbGlkJ1wiXG4gICAgICAgICAgW2Rpc2FibGVkXT1cImZvcm0ubG9hZGluZyB8fCBmb3JtLmludmFsaWRcIlxuICAgICAgICAgIChrZXl1cC5lbnRlcik9XCJkb1N1Ym1pdCgpXCJcbiAgICAgICAgICAoY2xpY2spPVwiZG9TdWJtaXQoKVwiXG4gICAgICAgICAgY29sb3I9XCJ0ZXJ0aWFyeVwiXG4gICAgICAgID5cbiAgICAgICAgICA8aW9uLWxhYmVsIHRyYW5zbGF0ZT5DT01NT04uQlROX1NFTkQ8L2lvbi1sYWJlbD5cbiAgICAgICAgPC9pb24tYnV0dG9uPlxuICAgICAgPC9pb24tY29sPlxuICAgIDwvaW9uLXJvdz5cbiAgPC9pb24tdG9vbGJhcj5cbjwvaW9uLWZvb3Rlcj5cbiJdfQ==
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { EntityClass } from '../../core/services/model/entity.decorators';
|
|
3
|
+
import { Entity } from '../../core/services/model/entity.model';
|
|
4
|
+
import { EntityFilter } from '../../core/services/model/filter.model';
|
|
5
|
+
import { Person } from '../../core/services/model/person.model';
|
|
6
|
+
import { PersonFilter } from '../../admin/services/filter/person.filter';
|
|
7
|
+
export const MessageTypes = {
|
|
8
|
+
INBOX_MESSAGE: 'INBOX_MESSAGE',
|
|
9
|
+
EMAIL: 'EMAIL',
|
|
10
|
+
FEED: 'FEED',
|
|
11
|
+
};
|
|
12
|
+
export const MessageTypeList = Object.freeze([
|
|
13
|
+
{
|
|
14
|
+
id: MessageTypes.INBOX_MESSAGE,
|
|
15
|
+
icon: 'notifications',
|
|
16
|
+
label: 'SOCIAL.MESSAGE.TYPE_ENUM.INBOX_MESSAGE',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: MessageTypes.EMAIL,
|
|
20
|
+
icon: 'mail',
|
|
21
|
+
label: 'SOCIAL.MESSAGE.TYPE_ENUM.EMAIL',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: MessageTypes.FEED,
|
|
25
|
+
icon: 'paper',
|
|
26
|
+
label: 'SOCIAL.MESSAGE.TYPE_ENUM.FEED',
|
|
27
|
+
},
|
|
28
|
+
]);
|
|
29
|
+
// @dynamic
|
|
30
|
+
let Message = class Message extends Entity {
|
|
31
|
+
static fromObject;
|
|
32
|
+
type;
|
|
33
|
+
issuer;
|
|
34
|
+
recipients;
|
|
35
|
+
recipientFilter;
|
|
36
|
+
subject;
|
|
37
|
+
body;
|
|
38
|
+
constructor() {
|
|
39
|
+
super();
|
|
40
|
+
}
|
|
41
|
+
fromObject(source, opts) {
|
|
42
|
+
super.fromObject(source, opts);
|
|
43
|
+
this.type = source.type;
|
|
44
|
+
this.issuer = source.issuer && Person.fromObject(source.issuer);
|
|
45
|
+
this.recipients = source.recipients && source.recipients.map(Person.fromObject);
|
|
46
|
+
this.recipientFilter = (source.recipientFilter && PersonFilter.fromObject(source.recipientFilter)) || undefined;
|
|
47
|
+
this.subject = source.subject;
|
|
48
|
+
this.body = source.body;
|
|
49
|
+
}
|
|
50
|
+
asObject(opts) {
|
|
51
|
+
const target = super.asObject(opts);
|
|
52
|
+
target.recipients = this.recipients && this.recipients.map((p) => p.asObject(opts));
|
|
53
|
+
target.recipientFilter = (this.recipientFilter && this.recipientFilter.asObject(opts)) || undefined;
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
Message = __decorate([
|
|
58
|
+
EntityClass({ typename: 'MessageVO' })
|
|
59
|
+
], Message);
|
|
60
|
+
export { Message };
|
|
61
|
+
// @dynamic
|
|
62
|
+
let MessageFilter = class MessageFilter extends EntityFilter {
|
|
63
|
+
static fromObject;
|
|
64
|
+
fromObject(source, opts) {
|
|
65
|
+
super.fromObject(source, opts);
|
|
66
|
+
}
|
|
67
|
+
buildFilter() {
|
|
68
|
+
return super.buildFilter();
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
MessageFilter = __decorate([
|
|
72
|
+
EntityClass({ typename: 'MessageFilterVO' })
|
|
73
|
+
], MessageFilter);
|
|
74
|
+
export { MessageFilter };
|
|
75
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvc29jaWFsL21lc3NhZ2UvbWVzc2FnZS5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLDZDQUE2QyxDQUFDO0FBQzFFLE9BQU8sRUFBRSxNQUFNLEVBQXlCLE1BQU0sd0NBQXdDLENBQUM7QUFFdkYsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ3RFLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUNoRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFHekUsTUFBTSxDQUFDLE1BQU0sWUFBWSxHQUFHO0lBQzFCLGFBQWEsRUFBRSxlQUFlO0lBQzlCLEtBQUssRUFBRSxPQUFPO0lBQ2QsSUFBSSxFQUFFLE1BQU07Q0FDYixDQUFDO0FBQ0YsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUM7SUFDM0M7UUFDRSxFQUFFLEVBQUUsWUFBWSxDQUFDLGFBQWE7UUFDOUIsSUFBSSxFQUFFLGVBQWU7UUFDckIsS0FBSyxFQUFFLHdDQUF3QztLQUNoRDtJQUNEO1FBQ0UsRUFBRSxFQUFFLFlBQVksQ0FBQyxLQUFLO1FBQ3RCLElBQUksRUFBRSxNQUFNO1FBQ1osS0FBSyxF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LmZyb21PYmplY3Qoc291cmNlLCBvcHRzKTtcbiAgfVxuXG4gIHByb3RlY3RlZCBidWlsZEZpbHRlcigpOiBGaWx0ZXJGbjxNZXNzYWdlPltdIHtcbiAgICByZXR1cm4gc3VwZXIuYnVpbGRGaWx0ZXIoKTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CoreModule } from '../../core/core.module';
|
|
4
|
+
import { SharedModule } from '../../shared/shared.module';
|
|
5
|
+
import { MessageModal } from './message.modal';
|
|
6
|
+
import { MessageForm } from './message.form';
|
|
7
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export class MessageModule {
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: MessageModule, declarations: [MessageModal, MessageForm], imports: [CommonModule, CoreModule, SharedModule, MatChipsModule], exports: [MessageModal] });
|
|
12
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageModule, imports: [CommonModule, CoreModule, SharedModule, MatChipsModule] });
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageModule, decorators: [{
|
|
15
|
+
type: NgModule,
|
|
16
|
+
args: [{
|
|
17
|
+
imports: [CommonModule, CoreModule, SharedModule, MatChipsModule],
|
|
18
|
+
declarations: [MessageModal, MessageForm],
|
|
19
|
+
exports: [MessageModal],
|
|
20
|
+
}]
|
|
21
|
+
}] });
|
|
22
|
+
//# sourceMappingURL=data:application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lCQUN4QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgQ29yZU1vZHVsZSB9IGZyb20gJy4uLy4uL2NvcmUvY29yZS5tb2R1bGUnO1xuaW1wb3J0IHsgU2hhcmVkTW9kdWxlIH0gZnJvbSAnLi4vLi4vc2hhcmVkL3NoYXJlZC5tb2R1bGUnO1xuaW1wb3J0IHsgTWVzc2FnZU1vZGFsIH0gZnJvbSAnLi9tZXNzYWdlLm1vZGFsJztcbmltcG9ydCB7IE1lc3NhZ2VGb3JtIH0gZnJvbSAnLi9tZXNzYWdlLmZvcm0nO1xuaW1wb3J0IHsgTWF0Q2hpcHNNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9jaGlwcyc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIENvcmVNb2R1bGUsIFNoYXJlZE1vZHVsZSwgTWF0Q2hpcHNNb2R1bGVdLFxuICBkZWNsYXJhdGlvbnM6IFtNZXNzYWdlTW9kYWwsIE1lc3NhZ2VGb3JtXSxcbiAgZXhwb3J0czogW01lc3NhZ2VNb2RhbF0sXG59KVxuZXhwb3J0IGNsYXNzIE1lc3NhZ2VNb2R1bGUge31cbiJdfQ==
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
2
|
+
import { gql } from 'apollo-angular';
|
|
3
|
+
import { SocialErrorCodes } from '../social.errors';
|
|
4
|
+
import { BaseGraphqlService } from '../../core/services/base-graphql-service.class';
|
|
5
|
+
import { ENVIRONMENT } from '../../../environments/environment.class';
|
|
6
|
+
import { Message } from './message.model';
|
|
7
|
+
import { MINIFY_ENTITY_FOR_POD } from '../../core/services/model/referential.model';
|
|
8
|
+
import { Toasts } from '../../shared/toast/toasts';
|
|
9
|
+
import { MessageModal } from './message.modal';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "../../core/graphql/graphql.service";
|
|
12
|
+
import * as i2 from "@ngx-translate/core";
|
|
13
|
+
import * as i3 from "@ionic/angular";
|
|
14
|
+
import * as i4 from "../../../environments/environment.class";
|
|
15
|
+
const Mutations = {
|
|
16
|
+
send: gql `
|
|
17
|
+
mutation SendMessage($data: MessageVOInput) {
|
|
18
|
+
done: sendMessage(message: $data)
|
|
19
|
+
}
|
|
20
|
+
`,
|
|
21
|
+
};
|
|
22
|
+
export class MessageService extends BaseGraphqlService {
|
|
23
|
+
graphql;
|
|
24
|
+
translate;
|
|
25
|
+
modalCtrl;
|
|
26
|
+
toastController;
|
|
27
|
+
environment;
|
|
28
|
+
constructor(graphql, translate, modalCtrl, toastController, environment) {
|
|
29
|
+
super(graphql, environment);
|
|
30
|
+
this.graphql = graphql;
|
|
31
|
+
this.translate = translate;
|
|
32
|
+
this.modalCtrl = modalCtrl;
|
|
33
|
+
this.toastController = toastController;
|
|
34
|
+
this.environment = environment;
|
|
35
|
+
// For DEV only
|
|
36
|
+
this._debug = !environment.production;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Send a message to recipient(s)
|
|
40
|
+
*
|
|
41
|
+
* @param entity
|
|
42
|
+
* @param opts
|
|
43
|
+
*/
|
|
44
|
+
async send(entity, opts) {
|
|
45
|
+
// Transform into json
|
|
46
|
+
const data = entity.asObject(MINIFY_ENTITY_FOR_POD);
|
|
47
|
+
const now = Date.now();
|
|
48
|
+
if (this._debug)
|
|
49
|
+
console.debug(`[message-service] Sending message...`);
|
|
50
|
+
try {
|
|
51
|
+
const { done } = await this.graphql.mutate({
|
|
52
|
+
mutation: Mutations.send,
|
|
53
|
+
variables: { data },
|
|
54
|
+
error: { code: SocialErrorCodes.SEND_MESSAGE_ERROR, message: 'SOCIAL.ERROR.SEND_MESSAGE_ERROR' },
|
|
55
|
+
});
|
|
56
|
+
if (this._debug)
|
|
57
|
+
console.debug(`[message-service] Send message [OK] in ${Date.now() - now}ms`);
|
|
58
|
+
if (done && (!opts || opts.showToast !== false)) {
|
|
59
|
+
await this.showToast({ type: 'info', message: 'SOCIAL.INFO.MESSAGE_SENT' });
|
|
60
|
+
}
|
|
61
|
+
return done;
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
const error = (err && err.message) || err;
|
|
65
|
+
console.error(error);
|
|
66
|
+
// Show error
|
|
67
|
+
if (!opts || opts.showToast !== false) {
|
|
68
|
+
const message = error || 'SOCIAL.ERROR.SEND_MESSAGE_ERROR';
|
|
69
|
+
await this.showToast({ type: 'error', message });
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async openComposeModal(options) {
|
|
75
|
+
const hasTopModal = !!(await this.modalCtrl.getTop());
|
|
76
|
+
const modal = await this.modalCtrl.create({
|
|
77
|
+
component: MessageModal,
|
|
78
|
+
componentProps: options,
|
|
79
|
+
cssClass: hasTopModal && 'stack-modal',
|
|
80
|
+
});
|
|
81
|
+
// Open the modal
|
|
82
|
+
await modal.present();
|
|
83
|
+
// On dismiss
|
|
84
|
+
const { data } = await modal.onDidDismiss();
|
|
85
|
+
if (!data || !(data instanceof Message))
|
|
86
|
+
return true; // CANCELLED
|
|
87
|
+
// Send message
|
|
88
|
+
return await this.send(data, { showToast: options?.showToast });
|
|
89
|
+
}
|
|
90
|
+
/* -- protected methods -- */
|
|
91
|
+
async showToast(opts) {
|
|
92
|
+
return Toasts.show(this.toastController, this.translate, {
|
|
93
|
+
type: 'info',
|
|
94
|
+
message: 'SOCIAL.INFO.MESSAGE_SENT',
|
|
95
|
+
...opts,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageService, deps: [{ token: i1.GraphqlService }, { token: i2.TranslateService }, { token: i3.ModalController }, { token: i3.ToastController }, { token: ENVIRONMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
99
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
100
|
+
}
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageService, decorators: [{
|
|
102
|
+
type: Injectable,
|
|
103
|
+
args: [{ providedIn: 'root' }]
|
|
104
|
+
}], ctorParameters: () => [{ type: i1.GraphqlService }, { type: i2.TranslateService }, { type: i3.ModalController }, { type: i3.ToastController }, { type: i4.Environment, decorators: [{
|
|
105
|
+
type: Optional
|
|
106
|
+
}, {
|
|
107
|
+
type: Inject,
|
|
108
|
+
args: [ENVIRONMENT]
|
|
109
|
+
}] }] });
|
|
110
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9zb2NpYWwvbWVzc2FnZS9tZXNzYWdlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzdELE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUlwRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxnREFBZ0QsQ0FBQztBQUNwRixPQUFPLEVBQWUsV0FBVyxFQUFFLE1BQU0seUNBQXlDLENB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