@sumaris-net/ngx-components 2.0.0-rc8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/esm2020/public_api.mjs +35 -22
- package/esm2020/src/app/admin/admin-routing.module.mjs +6 -6
- package/esm2020/src/app/admin/admin.module.mjs +6 -6
- package/esm2020/src/app/admin/services/person.service.mjs +3 -3
- package/esm2020/src/app/admin/services/validator/person.validator.mjs +3 -3
- package/esm2020/src/app/admin/users/users.mjs +233 -0
- package/esm2020/src/app/admin/users/users.module.mjs +54 -0
- package/esm2020/src/app/core/about/about.modal.mjs +71 -0
- package/esm2020/src/app/core/about/about.module.mjs +34 -0
- package/esm2020/src/app/core/account/account.module.mjs +43 -0
- package/esm2020/src/app/core/account/account.page.mjs +239 -0
- package/esm2020/src/app/core/auth/auth.form.mjs +131 -0
- package/esm2020/src/app/core/auth/auth.modal.mjs +72 -0
- package/esm2020/src/app/core/auth/auth.module.mjs +47 -0
- package/esm2020/src/app/core/core.module.mjs +86 -125
- package/esm2020/src/app/core/core.testing.module.mjs +7 -7
- package/esm2020/src/app/core/form/{form-buttons-bar.component.mjs → buttons/form-buttons-bar.component.mjs} +7 -7
- package/esm2020/src/app/core/form/buttons/form-buttons-bar.module.mjs +35 -0
- package/esm2020/src/app/core/form/entity/editor.class.mjs +675 -0
- package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +421 -0
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +646 -0
- package/esm2020/src/app/core/form/{entity-metadata.component.mjs → entity/entity-metadata.component.mjs} +6 -6
- package/esm2020/src/app/core/form/entity/entity.module.mjs +38 -0
- package/esm2020/src/app/core/form/form.class.mjs +4 -4
- package/esm2020/src/app/core/form/form.module.mjs +66 -0
- package/esm2020/src/app/core/form/list/list.form.mjs +222 -0
- package/esm2020/src/app/core/form/list/list.module.mjs +35 -0
- package/esm2020/src/app/core/form/properties/properties.form.mjs +3 -3
- package/esm2020/src/app/core/form/properties/properties.module.mjs +35 -0
- package/esm2020/src/app/core/form/properties/property.validator.mjs +4 -4
- package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +3 -3
- package/esm2020/src/app/core/form/properties/testing/properties-form.testing.module.mjs +4 -4
- package/esm2020/src/app/core/{text-popover → form/text-popover}/testing/text-popover.testing.mjs +4 -4
- package/esm2020/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +45 -0
- package/esm2020/src/app/core/form/text-popover/text-form.component.mjs +89 -0
- package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +105 -0
- package/esm2020/src/app/core/form/text-popover/text-popover.module.mjs +40 -0
- package/esm2020/src/app/core/graphql/graphql.module.mjs +4 -4
- package/esm2020/src/app/core/graphql/graphql.service.mjs +12 -7
- package/esm2020/src/app/core/graphql/graphql.utils.mjs +2 -2
- package/esm2020/src/app/core/home/home.mjs +8 -8
- package/esm2020/src/app/core/home/home.module.mjs +48 -0
- package/esm2020/src/app/core/icon/icon.component.mjs +3 -3
- package/esm2020/src/app/core/icon/icon.module.mjs +4 -4
- package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +3 -3
- package/esm2020/src/app/core/install/install-upgrade-card.module.mjs +17 -15
- package/esm2020/src/app/core/menu/menu.component.mjs +5 -5
- package/esm2020/src/app/core/menu/menu.module.mjs +9 -10
- package/esm2020/src/app/core/menu/menu.service.mjs +3 -3
- package/esm2020/src/app/core/offline/update-offline-mode-card.component.mjs +3 -3
- package/esm2020/src/app/core/offline/update-offline-mode-card.module.mjs +35 -0
- package/esm2020/src/app/core/peer/select-peer.modal.mjs +55 -11
- package/esm2020/src/app/core/peer/select-peer.module.mjs +17 -10
- package/esm2020/src/app/core/register/register-confirm.page.mjs +81 -0
- package/esm2020/src/app/core/register/register.form.mjs +181 -0
- package/esm2020/src/app/core/register/register.modal.mjs +52 -0
- package/esm2020/src/app/core/register/register.module.mjs +17 -15
- package/esm2020/src/app/core/services/account.service.mjs +22 -23
- package/esm2020/src/app/core/services/auth-guard.service.mjs +6 -6
- package/esm2020/src/app/core/services/base-entity-service.class.mjs +3 -3
- package/esm2020/src/app/core/services/base-graphql-service.class.mjs +8 -8
- package/esm2020/src/app/core/services/base58.mjs +2 -2
- package/esm2020/src/app/core/services/config.service.mjs +4 -4
- package/esm2020/src/app/core/services/crypto.service.mjs +82 -97
- package/esm2020/src/app/core/services/local-settings.service.mjs +8 -10
- package/esm2020/src/app/core/services/model/entity.decorators.mjs +44 -54
- package/esm2020/src/app/core/services/model/peer.model.mjs +3 -3
- package/esm2020/src/app/core/services/network.service.mjs +7 -7
- package/esm2020/src/app/core/services/pipes/account.pipes.mjs +8 -8
- package/esm2020/src/app/core/services/pipes/department-to-string.pipe.mjs +4 -4
- package/esm2020/src/app/core/services/pipes/person-to-string.pipe.mjs +4 -4
- package/esm2020/src/app/core/services/pipes/usage-mode.pipes.mjs +8 -8
- package/esm2020/src/app/core/services/platform.service.mjs +9 -10
- package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +3 -3
- package/esm2020/src/app/core/services/storage/entity-store.class.mjs +4 -4
- package/esm2020/src/app/core/services/testing/referential.validator.mjs +3 -3
- package/esm2020/src/app/core/services/validator/account.validator.mjs +3 -3
- package/esm2020/src/app/core/services/validator/base.validator.class.mjs +3 -3
- package/esm2020/src/app/core/services/validator/local-settings.validator.mjs +3 -3
- package/esm2020/src/app/core/services/validator/user-settings.validator.mjs +3 -3
- package/esm2020/src/app/core/settings/settings.module.mjs +34 -0
- package/esm2020/src/app/core/settings/settings.page.mjs +12 -9
- package/esm2020/src/app/core/table/actions-column.component.mjs +3 -3
- package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +13 -8
- package/esm2020/src/app/core/table/memory-table.class.mjs +3 -3
- package/esm2020/src/app/core/table/table-select-columns.component.mjs +3 -3
- package/esm2020/src/app/core/table/table.class.mjs +11 -16
- package/esm2020/src/app/core/table/table.module.mjs +40 -0
- package/esm2020/src/app/core/table/testing/table.testing.mjs +8 -8
- package/esm2020/src/app/core/table/testing/table.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/audio/audio.mjs +3 -3
- package/esm2020/src/app/shared/audio/audio.testing.mjs +3 -3
- package/esm2020/src/app/shared/audio/audio.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/capacitor/keyboard.mjs +3 -3
- package/esm2020/src/app/shared/constants.mjs +4 -2
- package/esm2020/src/app/shared/dates.mjs +20 -14
- package/esm2020/src/app/shared/debug/debug.component.mjs +3 -3
- package/esm2020/src/app/shared/debug/debug.module.mjs +4 -4
- package/esm2020/src/app/shared/directives/autofocus.directive.mjs +3 -3
- package/esm2020/src/app/shared/directives/autotitle.directive.mjs +3 -3
- package/esm2020/src/app/shared/directives/directives.module.mjs +4 -4
- package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +3 -3
- package/esm2020/src/app/shared/directives/ng-var.directive.mjs +3 -3
- package/esm2020/src/app/shared/directives/resizable/resizable.component.mjs +3 -3
- package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +3 -3
- package/esm2020/src/app/shared/directives/resizable/resizable.module.mjs +4 -4
- package/esm2020/src/app/shared/file/file.service.mjs +5 -5
- package/esm2020/src/app/shared/form/field.component.mjs +3 -3
- package/esm2020/src/app/shared/form/loading-spinner.mjs +3 -3
- package/esm2020/src/app/shared/gesture/gesture-config.mjs +3 -3
- package/esm2020/src/app/shared/guard/component-dirty.guard.mjs +3 -3
- package/esm2020/src/app/shared/help/help.modal.mjs +3 -3
- package/esm2020/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +3 -3
- package/esm2020/src/app/shared/hotkeys/hotkeys.service.mjs +3 -3
- package/esm2020/src/app/shared/hotkeys/shared-hotkeys.module.mjs +4 -4
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +134 -60
- package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +19 -7
- package/esm2020/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +3 -3
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +13 -7
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/image/image.module.mjs +5 -5
- package/esm2020/src/app/shared/image/image.service.mjs +3 -3
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +7 -6
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +4 -4
- package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +3 -3
- package/esm2020/src/app/shared/material/badge/badge.directive.mjs +25 -6
- package/esm2020/src/app/shared/material/badge/badge.module.mjs +4 -4
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +10 -8
- package/esm2020/src/app/shared/material/boolean/boolean.module.mjs +4 -4
- package/esm2020/src/app/shared/material/boolean/material.boolean.mjs +5 -5
- package/esm2020/src/app/shared/material/chips/chips.module.mjs +4 -4
- package/esm2020/src/app/shared/material/chips/material.chips.mjs +5 -5
- package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +3 -3
- package/esm2020/src/app/shared/material/datetime/datetime.module.mjs +4 -4
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +7 -8
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +6 -6
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +7 -8
- package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +5 -7
- package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +7 -8
- package/esm2020/src/app/shared/material/duration/duration.module.mjs +4 -4
- package/esm2020/src/app/shared/material/duration/material.duration.mjs +3 -3
- package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +3 -3
- package/esm2020/src/app/shared/material/latlong/material.latlong.module.mjs +4 -4
- package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +3 -3
- package/esm2020/src/app/shared/material/material.module.mjs +4 -4
- package/esm2020/src/app/shared/material/material.testing.module.mjs +6 -6
- package/esm2020/src/app/shared/material/numpad/numpad.append-to-input.directive.mjs +3 -3
- package/esm2020/src/app/shared/material/numpad/numpad.component.mjs +3 -3
- package/esm2020/src/app/shared/material/numpad/numpad.container.mjs +3 -3
- package/esm2020/src/app/shared/material/numpad/numpad.content.mjs +3 -3
- package/esm2020/src/app/shared/material/numpad/numpad.directive.mjs +3 -3
- package/esm2020/src/app/shared/material/numpad/numpad.dom-service.mjs +3 -3
- package/esm2020/src/app/shared/material/numpad/numpad.module.mjs +4 -4
- package/esm2020/src/app/shared/material/numpad/testing/numpad.test.mjs +3 -3
- package/esm2020/src/app/shared/material/paginator/material.paginator-i18n.mjs +3 -3
- package/esm2020/src/app/shared/material/stepper/material.stepper-i18n.mjs +3 -3
- package/esm2020/src/app/shared/material/swipe/material.swipe.mjs +3 -3
- package/esm2020/src/app/shared/material/swipe/swipe.module.mjs +4 -4
- package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +7 -8
- package/esm2020/src/app/shared/modules.mjs +11 -0
- package/esm2020/src/app/shared/pipes/arrays.pipe.mjs +24 -24
- package/esm2020/src/app/shared/pipes/colors.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/date-diff-duration.pipe.mjs +8 -9
- package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/date-from-now.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/duration.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/file-size.pipe.mjs +3 -3
- package/esm2020/src/app/shared/pipes/form.pipes.mjs +18 -18
- package/esm2020/src/app/shared/pipes/highlight.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/latlong-format.pipe.mjs +9 -9
- package/esm2020/src/app/shared/pipes/maps.pipe.mjs +12 -12
- package/esm2020/src/app/shared/pipes/math.pipes.mjs +12 -12
- package/esm2020/src/app/shared/pipes/ng-init.pipe.mjs +3 -3
- package/esm2020/src/app/shared/pipes/number-format.pipe.mjs +4 -4
- package/esm2020/src/app/shared/pipes/pipes.module.mjs +14 -6
- package/esm2020/src/app/shared/pipes/property.pipes.mjs +7 -7
- package/esm2020/src/app/shared/pipes/string.pipes.mjs +43 -17
- package/esm2020/src/app/shared/pipes/translate-context.pipe.mjs +8 -8
- package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +3 -3
- package/esm2020/src/app/shared/services/progress-bar.service.mjs +3 -3
- package/esm2020/src/app/shared/services/storage/storage.service.mjs +3 -3
- package/esm2020/src/app/shared/services/translate-context.service.mjs +3 -3
- package/esm2020/src/app/shared/shared-routing.module.mjs +7 -7
- package/esm2020/src/app/shared/shared.module.mjs +9 -5
- package/esm2020/src/app/shared/shared.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/testing/observable.test.mjs +6 -7
- package/esm2020/src/app/shared/testing/tests.page.mjs +3 -3
- package/esm2020/src/app/shared/toast/toast.testing.mjs +3 -3
- package/esm2020/src/app/shared/toast/toast.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/toast/toasts.mjs +1 -1
- package/esm2020/src/app/shared/toolbar/modal-toolbar.mjs +3 -3
- package/esm2020/src/app/shared/toolbar/toolbar.mjs +3 -3
- package/esm2020/src/app/shared/toolbar/toolbar.module.mjs +4 -4
- package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +3 -3
- package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/upload-file/upload-file-popover.component.mjs +5 -5
- package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +3 -3
- package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +3 -3
- package/esm2020/src/app/shared/validator/validators.mjs +4 -5
- package/esm2020/src/app/social/job/job.module.mjs +4 -4
- package/esm2020/src/app/social/job/job.service.mjs +3 -3
- package/esm2020/src/app/social/job/progression/job-progression.icon.mjs +3 -3
- package/esm2020/src/app/social/job/progression/job-progression.list.mjs +3 -3
- package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +3 -3
- package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +3 -3
- package/esm2020/src/app/social/job/testing/job.testing.module.mjs +4 -4
- package/esm2020/src/app/social/message/message.form.mjs +3 -3
- package/esm2020/src/app/social/message/message.modal.mjs +3 -3
- package/esm2020/src/app/social/message/message.module.mjs +4 -4
- package/esm2020/src/app/social/message/message.service.mjs +3 -3
- package/esm2020/src/app/social/social.module.mjs +4 -4
- package/esm2020/src/app/social/social.testing.module.mjs +4 -4
- package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +3 -3
- package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +6 -6
- package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +13 -12
- package/esm2020/src/app/social/user-event/testing/user-event.testing.module.mjs +4 -4
- package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +3 -3
- package/esm2020/src/app/social/user-event/user-event.module.mjs +4 -4
- package/esm2020/src/app/social/user-event/user-event.service.mjs +6 -8
- package/fesm2015/sumaris-net.ngx-components.mjs +10202 -9596
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +10416 -9818
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +2 -1
- package/public_api.d.ts +34 -21
- package/src/app/admin/admin.module.d.ts +1 -1
- package/src/app/admin/users/{list/users.d.ts → users.d.ts} +11 -11
- package/src/app/admin/users/users.module.d.ts +13 -0
- package/src/app/core/about/{modal-about.d.ts → about.modal.d.ts} +1 -1
- package/src/app/core/about/about.module.d.ts +10 -0
- package/src/app/core/account/account.module.d.ts +11 -0
- package/src/app/core/account/{account.d.ts → account.page.d.ts} +5 -1
- package/src/app/core/auth/{form/form-auth.d.ts → auth.form.d.ts} +9 -9
- package/src/app/core/auth/{modal/modal-auth.d.ts → auth.modal.d.ts} +4 -4
- package/src/app/core/auth/auth.module.d.ts +11 -0
- package/src/app/core/core.module.d.ts +20 -29
- package/src/app/core/core.testing.module.d.ts +1 -1
- package/src/app/core/form/{form-buttons-bar.component.d.ts → buttons/form-buttons-bar.component.d.ts} +2 -2
- package/src/app/core/form/buttons/form-buttons-bar.module.d.ts +9 -0
- package/src/app/core/form/{editor.class.d.ts → entity/editor.class.d.ts} +9 -9
- package/src/app/core/form/{entity-editor-modal.class.d.ts → entity/entity-editor-modal.class.d.ts} +7 -7
- package/src/app/core/form/{entity-editor.class.d.ts → entity/entity-editor.class.d.ts} +10 -10
- package/src/app/core/form/{entity-metadata.component.d.ts → entity/entity-metadata.component.d.ts} +1 -1
- package/src/app/core/form/entity/entity.module.d.ts +10 -0
- package/src/app/core/form/form.module.d.ts +13 -0
- package/src/app/core/form/{list.form.d.ts → list/list.form.d.ts} +3 -3
- package/src/app/core/form/list/list.module.d.ts +9 -0
- package/src/app/core/form/properties/properties.module.d.ts +9 -0
- package/src/app/core/{text-popover → form/text-popover}/testing/text-popover.testing.d.ts +0 -0
- package/src/app/core/{text-popover → form/text-popover}/testing/text-popover.testing.module.d.ts +0 -0
- package/src/app/core/{text-popover → form/text-popover}/text-form.component.d.ts +4 -3
- package/src/app/core/{text-popover → form/text-popover}/text-popover.component.d.ts +7 -2
- package/src/app/core/form/text-popover/text-popover.module.d.ts +10 -0
- package/src/app/core/home/home.module.d.ts +12 -0
- package/src/app/core/install/install-upgrade-card.module.d.ts +6 -7
- package/src/app/core/menu/menu.component.d.ts +1 -1
- package/src/app/core/offline/update-offline-mode-card.module.d.ts +9 -0
- package/src/app/core/peer/select-peer.modal.d.ts +19 -5
- package/src/app/core/peer/select-peer.module.d.ts +6 -4
- package/src/app/core/register/{confirm/confirm.d.ts → register-confirm.page.d.ts} +4 -4
- package/src/app/core/register/{form/form-register.d.ts → register.form.d.ts} +7 -7
- package/src/app/core/register/{modal/modal-register.d.ts → register.modal.d.ts} +2 -2
- package/src/app/core/register/register.module.d.ts +6 -6
- package/src/app/core/services/account.service.d.ts +8 -9
- package/src/app/core/services/base-graphql-service.class.d.ts +9 -8
- package/src/app/core/services/crypto.service.d.ts +23 -18
- package/src/app/core/services/model/entity.decorators.d.ts +1 -9
- package/src/app/core/services/network.service.d.ts +3 -4
- package/src/app/core/settings/settings.module.d.ts +10 -0
- package/src/app/core/settings/settings.page.d.ts +2 -4
- package/src/app/core/table/entities-table-datasource.class.d.ts +1 -0
- package/src/app/core/table/table.class.d.ts +2 -6
- package/src/app/core/table/table.module.d.ts +10 -0
- package/src/app/shared/constants.d.ts +1 -1
- package/src/app/shared/dates.d.ts +5 -3
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +39 -17
- package/src/app/shared/image/gallery/image-gallery.module.d.ts +6 -4
- package/src/app/shared/image/gallery/testing/gallery.testing.d.ts +1 -0
- package/src/app/shared/material/badge/badge.directive.d.ts +3 -1
- package/src/app/shared/material/badge/badge.test.d.ts +1 -0
- package/src/app/shared/material/datetime/testing/mat-date.test.d.ts +1 -0
- package/src/app/shared/material/swipe/testing/swipe.test.d.ts +2 -3
- package/src/app/shared/modules.d.ts +8 -0
- package/src/app/shared/pipes/pipes.module.d.ts +1 -1
- package/src/app/shared/pipes/string.pipes.d.ts +10 -0
- package/src/app/shared/shared.module.d.ts +2 -1
- package/src/assets/i18n/fr.json +4 -1
- package/src/theme/_ngx-components.scss +22 -4
- package/esm2020/src/app/admin/users/list/users.mjs +0 -233
- package/esm2020/src/app/admin/users/list/users.module.mjs +0 -58
- package/esm2020/src/app/core/about/modal-about.mjs +0 -71
- package/esm2020/src/app/core/account/account.mjs +0 -230
- package/esm2020/src/app/core/auth/form/form-auth.mjs +0 -131
- package/esm2020/src/app/core/auth/modal/modal-auth.mjs +0 -72
- package/esm2020/src/app/core/form/editor.class.mjs +0 -675
- package/esm2020/src/app/core/form/entity-editor-modal.class.mjs +0 -421
- package/esm2020/src/app/core/form/entity-editor.class.mjs +0 -646
- package/esm2020/src/app/core/form/list.form.mjs +0 -222
- package/esm2020/src/app/core/register/confirm/confirm.mjs +0 -81
- package/esm2020/src/app/core/register/form/form-register.mjs +0 -181
- package/esm2020/src/app/core/register/modal/modal-register.mjs +0 -52
- package/esm2020/src/app/core/text-popover/testing/text-popover.testing.module.mjs +0 -45
- package/esm2020/src/app/core/text-popover/text-form.component.mjs +0 -84
- package/esm2020/src/app/core/text-popover/text-popover.component.mjs +0 -92
- package/esm2020/src/app/vendor.mjs +0 -16
- package/src/app/admin/users/list/users.module.d.ts +0 -14
- package/src/app/vendor.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormControl, ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
4
|
-
import { AppForm } from '../form
|
|
4
|
+
import { AppForm } from '../form.class';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class TextForm extends AppForm<{
|
|
7
7
|
text: string;
|
|
@@ -15,6 +15,7 @@ export declare class TextForm extends AppForm<{
|
|
|
15
15
|
autoHeight: boolean;
|
|
16
16
|
maxLength: number;
|
|
17
17
|
autofocus: boolean;
|
|
18
|
+
validator: ValidatorFn;
|
|
18
19
|
textAreaChanges: EventEmitter<string>;
|
|
19
20
|
textArea: ElementRef;
|
|
20
21
|
textInput: ElementRef;
|
|
@@ -27,5 +28,5 @@ export declare class TextForm extends AppForm<{
|
|
|
27
28
|
focusInput(): void;
|
|
28
29
|
protected markForCheck(): void;
|
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextForm, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextForm, "app-text-form", never, { "showError": "showError"; "placeholder": "placeholder"; "multiline": "multiline"; "autoHeight": "autoHeight"; "maxLength": "maxLength"; "autofocus": "autofocus"; }, { "textAreaChanges": "textAreaChanges"; }, never, never, false>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextForm, "app-text-form", never, { "showError": "showError"; "placeholder": "placeholder"; "multiline": "multiline"; "autoHeight": "autoHeight"; "maxLength": "maxLength"; "autofocus": "autofocus"; "validator": "validator"; }, { "textAreaChanges": "textAreaChanges"; }, never, never, false>;
|
|
31
32
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { PopoverController } from '@ionic/angular';
|
|
2
|
+
import { PopoverController, PopoverOptions } from '@ionic/angular';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { TextForm } from './text-form.component';
|
|
6
|
+
import { ValidatorFn } from '@angular/forms';
|
|
7
|
+
import { OverlayEventDetail } from '@ionic/core';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
export interface TextPopoverOptions {
|
|
8
10
|
text?: string;
|
|
@@ -11,10 +13,12 @@ export interface TextPopoverOptions {
|
|
|
11
13
|
multiline?: boolean;
|
|
12
14
|
maxLength?: number;
|
|
13
15
|
autofocus?: boolean;
|
|
16
|
+
validator?: ValidatorFn;
|
|
14
17
|
}
|
|
15
18
|
export declare class TextPopover implements OnInit, AfterViewInit, OnDestroy, TextPopoverOptions {
|
|
16
19
|
protected popoverController: PopoverController;
|
|
17
20
|
protected translate: TranslateService;
|
|
21
|
+
static show(ctrl: PopoverController, event: Event, opts: TextPopoverOptions, popoverOpts?: PopoverOptions): Promise<OverlayEventDetail>;
|
|
18
22
|
form: TextForm;
|
|
19
23
|
text: string;
|
|
20
24
|
placeholder: string;
|
|
@@ -22,6 +26,7 @@ export declare class TextPopover implements OnInit, AfterViewInit, OnDestroy, Te
|
|
|
22
26
|
multiline: boolean;
|
|
23
27
|
maxLength: number;
|
|
24
28
|
autofocus: boolean;
|
|
29
|
+
validator: ValidatorFn;
|
|
25
30
|
subscription: Subscription;
|
|
26
31
|
get disabled(): boolean;
|
|
27
32
|
get enabled(): boolean;
|
|
@@ -36,5 +41,5 @@ export declare class TextPopover implements OnInit, AfterViewInit, OnDestroy, Te
|
|
|
36
41
|
cancel(): void;
|
|
37
42
|
ngOnDestroy(): void;
|
|
38
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextPopover, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextPopover, "app-text-popover", never, { "text": "text"; "placeholder": "placeholder"; "editing": "editing"; "multiline": "multiline"; "maxLength": "maxLength"; "autofocus": "autofocus"; }, {}, never, never, false>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextPopover, "app-text-popover", never, { "text": "text"; "placeholder": "placeholder"; "editing": "editing"; "multiline": "multiline"; "maxLength": "maxLength"; "autofocus": "autofocus"; "validator": "validator"; }, {}, never, never, false>;
|
|
40
45
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./text-form.component";
|
|
3
|
+
import * as i2 from "./text-popover.component";
|
|
4
|
+
import * as i3 from "../../../shared/shared.module";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
export declare class AppTextPopoverModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppTextPopoverModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppTextPopoverModule, [typeof i1.TextForm, typeof i2.TextPopover], [typeof i3.SharedModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.TextForm, typeof i2.TextPopover]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppTextPopoverModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./home";
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
import * as i3 from "@angular/router";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
import * as i5 from "../auth/auth.module";
|
|
7
|
+
import * as i6 from "../install/install-upgrade-card.module";
|
|
8
|
+
export declare class AppHomePageModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppHomePageModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppHomePageModule, [typeof i1.HomePage], [typeof i2.SharedModule, typeof i3.RouterModule, typeof i4.TranslateModule, typeof i5.AppAuthModule, typeof i6.AppInstallUpgradeCardModule], [typeof i3.RouterModule, typeof i4.TranslateModule, typeof i1.HomePage]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppHomePageModule>;
|
|
12
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./install-upgrade-card.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<InstallUpgradeCardModule>;
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
export declare class AppInstallUpgradeCardModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppInstallUpgradeCardModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppInstallUpgradeCardModule, [typeof i1.AppInstallUpgradeCard], [typeof i2.SharedModule, typeof i3.TranslateModule], [typeof i3.TranslateModule, typeof i1.AppInstallUpgradeCard]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppInstallUpgradeCardModule>;
|
|
10
9
|
}
|
|
@@ -8,7 +8,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
8
8
|
import { ConfigService } from '../services/config.service';
|
|
9
9
|
import { PlatformService } from '../services/platform.service';
|
|
10
10
|
import { MenuService, SplitPaneShowWhen } from './menu.service';
|
|
11
|
-
import {
|
|
11
|
+
import { MenuItem, MenuOptions } from './menu.model';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare const APP_MENU_ITEMS: InjectionToken<MenuItem[]>;
|
|
14
14
|
export declare const APP_MENU_OPTIONS: InjectionToken<MenuOptions>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./update-offline-mode-card.component";
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
export declare class AppUpdateOfflineModeCardModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppUpdateOfflineModeCardModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppUpdateOfflineModeCardModule, [typeof i1.AppUpdateOfflineModeCard], [typeof i2.SharedModule, typeof i3.TranslateModule], [typeof i3.TranslateModule, typeof i1.AppUpdateOfflineModeCard]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppUpdateOfflineModeCardModule>;
|
|
9
|
+
}
|
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ModalController } from '@ionic/angular';
|
|
2
|
+
import { ModalController, PopoverController } from '@ionic/angular';
|
|
3
3
|
import { Peer } from '../services/model/peer.model';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import { TextPopoverOptions } from '../form/text-popover/text-popover.component';
|
|
7
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
|
-
export
|
|
9
|
+
export interface ISelectPeerModalOptions {
|
|
10
|
+
canCancel: boolean;
|
|
11
|
+
allowSelectDownPeer: boolean;
|
|
12
|
+
onRefresh: EventEmitter<Event>;
|
|
13
|
+
showSetManuallyButton: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class SelectPeerModal implements OnDestroy, ISelectPeerModalOptions {
|
|
8
16
|
private modalCtrl;
|
|
9
|
-
private
|
|
17
|
+
private popoverController;
|
|
18
|
+
private translate;
|
|
10
19
|
private http;
|
|
20
|
+
private cd;
|
|
11
21
|
protected environment: any;
|
|
12
22
|
private _subscription;
|
|
13
23
|
loading: boolean;
|
|
24
|
+
mobile: boolean;
|
|
14
25
|
$peers: Subject<Peer[]>;
|
|
15
26
|
peerMinVersion: any;
|
|
16
27
|
canCancel: boolean;
|
|
17
28
|
allowSelectDownPeer: boolean;
|
|
18
29
|
onRefresh: EventEmitter<Event>;
|
|
19
|
-
|
|
30
|
+
showSetManuallyButton: boolean;
|
|
31
|
+
constructor(modalCtrl: ModalController, popoverController: PopoverController, translate: TranslateService, http: HttpClient, cd: ChangeDetectorRef, environment: any);
|
|
20
32
|
set peers(peers: Observable<Peer[]>);
|
|
21
33
|
cancel(): void;
|
|
22
34
|
ngOnDestroy(): void;
|
|
@@ -28,9 +40,11 @@ export declare class SelectPeerModal implements OnDestroy {
|
|
|
28
40
|
*/
|
|
29
41
|
isCompatible(peer: Peer): boolean;
|
|
30
42
|
refresh(event: any): void;
|
|
43
|
+
clickSetManually(event?: Event): Promise<void>;
|
|
31
44
|
refreshPeers(peers: Peer[]): Promise<void>;
|
|
32
45
|
protected refreshPeer(peer: Peer): Promise<Peer>;
|
|
46
|
+
protected openPeerUrlPopover(event: Event, opts?: Partial<TextPopoverOptions>): Promise<any>;
|
|
33
47
|
protected markForCheck(): void;
|
|
34
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectPeerModal, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectPeerModal, "select-peer-modal", never, { "canCancel": "canCancel"; "allowSelectDownPeer": "allowSelectDownPeer"; "onRefresh": "onRefresh"; }, {}, never, never, false>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectPeerModal, "select-peer-modal", never, { "canCancel": "canCancel"; "allowSelectDownPeer": "allowSelectDownPeer"; "onRefresh": "onRefresh"; "showSetManuallyButton": "showSetManuallyButton"; }, {}, never, never, false>;
|
|
36
50
|
}
|
|
@@ -2,8 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./select-peer.modal";
|
|
3
3
|
import * as i2 from "../../shared/shared.module";
|
|
4
4
|
import * as i3 from "@angular/common/http";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
static
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
import * as i5 from "../form/text-popover/text-popover.module";
|
|
7
|
+
export declare class AppSelectPeerModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppSelectPeerModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppSelectPeerModule, [typeof i1.SelectPeerModal], [typeof i2.SharedModule, typeof i3.HttpClientModule, typeof i4.TranslateModule, typeof i5.AppTextPopoverModule], [typeof i4.TranslateModule, typeof i1.SelectPeerModal]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppSelectPeerModule>;
|
|
9
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Subscription } from 'rxjs';
|
|
3
3
|
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { AccountService } from '
|
|
5
|
-
import { ConfigService } from '
|
|
6
|
-
import { PlatformService } from '
|
|
4
|
+
import { AccountService } from '../services/account.service';
|
|
5
|
+
import { ConfigService } from '../services/config.service';
|
|
6
|
+
import { PlatformService } from '../services/platform.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class RegisterConfirmPage implements OnDestroy {
|
|
9
9
|
private platform;
|
|
@@ -20,5 +20,5 @@ export declare class RegisterConfirmPage implements OnDestroy {
|
|
|
20
20
|
ngOnDestroy(): void;
|
|
21
21
|
doConfirm(email: string, code: string): any;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterConfirmPage, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterConfirmPage, "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterConfirmPage, "app-register-confirm-page", never, {}, {}, never, never, false>;
|
|
24
24
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { AsyncValidatorFn, UntypedFormBuilder, UntypedFormGroup, ValidatorFn } from '@angular/forms';
|
|
3
|
-
import { AccountService, RegisterData } from '
|
|
4
|
-
import { referentialToString } from '
|
|
3
|
+
import { AccountService, RegisterData } from '../services/account.service';
|
|
4
|
+
import { referentialToString } from '../services/model/referential.model';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
|
-
import { AccountValidatorService } from '
|
|
7
|
-
import { FormFieldDefinition } from '
|
|
8
|
-
import { LocalSettingsService } from '
|
|
9
|
-
import { MatAutocompleteConfigHolder } from '
|
|
6
|
+
import { AccountValidatorService } from '../services/validator/account.validator';
|
|
7
|
+
import { FormFieldDefinition } from '../../shared/form/field.model';
|
|
8
|
+
import { LocalSettingsService } from '../services/local-settings.service';
|
|
9
|
+
import { MatAutocompleteConfigHolder } from '../../shared/material/autocomplete/material.autocomplete.config';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class RegisterForm implements OnInit {
|
|
12
12
|
private accountService;
|
|
@@ -44,5 +44,5 @@ export declare class RegisterForm implements OnInit {
|
|
|
44
44
|
disable(): void;
|
|
45
45
|
enable(): void;
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterForm, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterForm, "
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterForm, "app-register-form", never, {}, { "onCancel": "onCancel"; "onSubmit": "onSubmit"; }, never, never, false>;
|
|
48
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalController } from '@ionic/angular';
|
|
2
|
-
import { AccountService } from '
|
|
2
|
+
import { AccountService } from '../services/account.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class RegisterModal {
|
|
5
5
|
private accountService;
|
|
@@ -10,5 +10,5 @@ export declare class RegisterModal {
|
|
|
10
10
|
cancel(): void;
|
|
11
11
|
doSubmit(event?: any): Promise<void>;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterModal, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterModal, "
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterModal, "app-register-modal", never, {}, {}, never, never, false>;
|
|
14
14
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./form
|
|
3
|
-
import * as i2 from "./modal
|
|
4
|
-
import * as i3 from "./confirm
|
|
2
|
+
import * as i1 from "./register.form";
|
|
3
|
+
import * as i2 from "./register.modal";
|
|
4
|
+
import * as i3 from "./register-confirm.page";
|
|
5
5
|
import * as i4 from "../../shared/shared.module";
|
|
6
|
-
import * as i5 from "@
|
|
7
|
-
import * as i6 from "@
|
|
6
|
+
import * as i5 from "@angular/router";
|
|
7
|
+
import * as i6 from "@ngx-translate/core";
|
|
8
8
|
export declare class AppRegisterModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppRegisterModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AppRegisterModule, [typeof i1.RegisterForm, typeof i2.RegisterModal, typeof i3.RegisterConfirmPage], [typeof i4.SharedModule, typeof i5.
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppRegisterModule, [typeof i1.RegisterForm, typeof i2.RegisterModal, typeof i3.RegisterConfirmPage], [typeof i4.SharedModule, typeof i5.RouterModule, typeof i6.TranslateModule], [typeof i6.TranslateModule, typeof i1.RegisterForm, typeof i2.RegisterModal, typeof i3.RegisterConfirmPage]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<AppRegisterModule>;
|
|
12
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Keypair } from './crypto.service';
|
|
2
2
|
import { Department } from './model/department.model';
|
|
3
3
|
import { Account } from './model/account.model';
|
|
4
4
|
import { Person, UserProfileLabel } from './model/person.model';
|
|
5
5
|
import { LocalSettings, UsageMode, UserSettings } from './model/settings.model';
|
|
6
|
-
import { Observable, Subject, Subscription } from 'rxjs';
|
|
6
|
+
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
7
7
|
import { FetchPolicy } from '@apollo/client/core';
|
|
8
8
|
import { Storage } from '@ionic/storage-angular';
|
|
9
9
|
import { BaseGraphqlService } from './base-graphql-service.class';
|
|
@@ -20,7 +20,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
20
20
|
import * as i0 from "@angular/core";
|
|
21
21
|
export declare interface AccountDetails {
|
|
22
22
|
loaded: boolean;
|
|
23
|
-
keypair:
|
|
23
|
+
keypair: Keypair;
|
|
24
24
|
authToken: string;
|
|
25
25
|
authBasic?: string;
|
|
26
26
|
pubkey: string;
|
|
@@ -44,7 +44,6 @@ export interface AccountWatchOptions {
|
|
|
44
44
|
intervalInSeconds?: number;
|
|
45
45
|
}
|
|
46
46
|
export declare class AccountService extends BaseGraphqlService<Account, any, number, Account> {
|
|
47
|
-
private cryptoService;
|
|
48
47
|
protected network: NetworkService;
|
|
49
48
|
protected graphql: GraphqlService;
|
|
50
49
|
protected settings: LocalSettingsService;
|
|
@@ -56,8 +55,8 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
56
55
|
onLogin: Subject<Account>;
|
|
57
56
|
onLogout: Subject<void>;
|
|
58
57
|
onChange: Subject<Account>;
|
|
59
|
-
onAuthTokenChange:
|
|
60
|
-
onAuthBasicChange:
|
|
58
|
+
onAuthTokenChange: BehaviorSubject<string>;
|
|
59
|
+
onAuthBasicChange: BehaviorSubject<string>;
|
|
61
60
|
private _listenChangesSubscription;
|
|
62
61
|
private readonly _enableListenChanges;
|
|
63
62
|
private readonly _listenIntervalInSeconds;
|
|
@@ -69,7 +68,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
69
68
|
get department(): Department;
|
|
70
69
|
get tokenType(): AuthTokenType;
|
|
71
70
|
set tokenType(value: AuthTokenType);
|
|
72
|
-
constructor(
|
|
71
|
+
constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: any);
|
|
73
72
|
ngOnStart(): Promise<Account>;
|
|
74
73
|
protected ngOnStop(): Promise<void>;
|
|
75
74
|
isLogin(): boolean;
|
|
@@ -147,7 +146,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
147
146
|
* @param account
|
|
148
147
|
* @param keyPair
|
|
149
148
|
*/
|
|
150
|
-
protected saveRemotely(account: Account, keyPair?:
|
|
149
|
+
protected saveRemotely(account: Account, keyPair?: Keypair): Promise<Account>;
|
|
151
150
|
/**
|
|
152
151
|
* Create or update user settings
|
|
153
152
|
*
|
|
@@ -161,6 +160,6 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
161
160
|
protected copyIdAndUpdateDate(source: Account | undefined, target: Account): void;
|
|
162
161
|
protected copyIdAndUpdateDateSettings(source: UserSettings | undefined, target: UserSettings): void;
|
|
163
162
|
protected showToast<T = any>(opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
164
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null,
|
|
163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
165
164
|
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
166
165
|
}
|
|
@@ -8,6 +8,7 @@ import { QueryRef } from 'apollo-angular';
|
|
|
8
8
|
import { PureQueryOptions } from '@apollo/client/core/types';
|
|
9
9
|
import { DocumentNode } from 'graphql';
|
|
10
10
|
import { StartableService } from '../../shared/services/startable-service.class';
|
|
11
|
+
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export interface QueryVariables<F = any> extends Partial<Page> {
|
|
13
14
|
filter?: F;
|
|
@@ -30,15 +31,15 @@ export interface MutableWatchQueryOptions<D, T = any, V = EmptyObject> extends W
|
|
|
30
31
|
insertFilterFn?: (data: T) => boolean;
|
|
31
32
|
sortFn?: (a: T, b: T) => number;
|
|
32
33
|
}
|
|
33
|
-
export interface MutableWatchQueryDescription<
|
|
34
|
+
export interface MutableWatchQueryDescription<TData, TEntityClass = any, TVariables = EmptyObject> extends PureQueryOptions<TVariables, TData> {
|
|
34
35
|
id?: string;
|
|
35
|
-
query: DocumentNode
|
|
36
|
-
queryRef: QueryRef<
|
|
37
|
-
variables:
|
|
38
|
-
arrayFieldName: keyof
|
|
39
|
-
totalFieldName?: keyof
|
|
40
|
-
insertFilterFn?: (data:
|
|
41
|
-
sortFn?: (a:
|
|
36
|
+
query: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
37
|
+
queryRef: QueryRef<TData, TVariables>;
|
|
38
|
+
variables: TVariables;
|
|
39
|
+
arrayFieldName: keyof TData;
|
|
40
|
+
totalFieldName?: keyof TData;
|
|
41
|
+
insertFilterFn?: (data: TEntityClass) => boolean;
|
|
42
|
+
sortFn?: (a: TEntityClass, b: TEntityClass) => number;
|
|
42
43
|
counter: number;
|
|
43
44
|
}
|
|
44
45
|
export interface FindMutableWatchQueriesOptions {
|
|
@@ -1,39 +1,44 @@
|
|
|
1
|
+
import { Params } from '@polkadot/util-crypto/scrypt/types';
|
|
2
|
+
import { Keypair } from '@polkadot/util-crypto/types';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
4
|
+
export declare const ED25519_SEED_LENGTH = 32;
|
|
5
|
+
export declare const SCRYPT_PARAMS: {
|
|
6
|
+
SIMPLE: Params;
|
|
7
|
+
DEFAULT: Params;
|
|
8
|
+
SECURE: Params;
|
|
9
|
+
HARDEST: Params;
|
|
10
|
+
EXTREME: Params;
|
|
11
|
+
};
|
|
12
|
+
export { Keypair };
|
|
11
13
|
export declare class CryptoService {
|
|
14
|
+
private static _ready;
|
|
15
|
+
private static get started();
|
|
16
|
+
private static ready;
|
|
12
17
|
/**
|
|
13
|
-
* Generate sign keypair,
|
|
18
|
+
* Generate a sign keypair, using scrypt, from a salt and a password
|
|
14
19
|
*
|
|
15
20
|
* @param salt
|
|
16
21
|
* @param password
|
|
17
22
|
* @param scryptParams
|
|
18
23
|
*/
|
|
19
|
-
scryptKeypair(salt: string, password: string, scryptParams?:
|
|
24
|
+
static scryptKeypair(salt: string, password: string, scryptParams?: Params): Promise<Keypair>;
|
|
20
25
|
/**
|
|
21
26
|
* Sign a message, from a key pair
|
|
22
27
|
*/
|
|
23
|
-
sign(message: string, keypair:
|
|
28
|
+
static sign(message: string, keypair: Keypair): Promise<string>;
|
|
24
29
|
/**
|
|
25
30
|
* Sign a message, from a key pair
|
|
26
31
|
*/
|
|
27
|
-
verify(message: string, signature: string,
|
|
32
|
+
static verify(message: string, signature: string, publicKey: string): Promise<boolean>;
|
|
28
33
|
/**
|
|
29
|
-
* Hash (using SHA256) a message
|
|
34
|
+
* Hash (using SHA256) a message, as Hex
|
|
30
35
|
*/
|
|
31
|
-
sha256(message: string): string;
|
|
36
|
+
static sha256(message: string): string;
|
|
32
37
|
/**
|
|
33
|
-
* Hash (using SHA512) a message
|
|
38
|
+
* Hash (using SHA512) a message, as Hex
|
|
34
39
|
*/
|
|
35
|
-
sha512(message: string): string;
|
|
36
|
-
encodeBase64(message: string): string;
|
|
40
|
+
static sha512(message: string): string;
|
|
41
|
+
static encodeBase64(message: string): string;
|
|
37
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<CryptoService, never>;
|
|
38
43
|
static ɵprov: i0.ɵɵInjectableDeclaration<CryptoService>;
|
|
39
44
|
}
|
|
@@ -12,14 +12,6 @@ export declare class EntityClasses {
|
|
|
12
12
|
}
|
|
13
13
|
export declare function EntityClass(opts: {
|
|
14
14
|
typename: string;
|
|
15
|
-
fromObjectAlwaysNew?: boolean;
|
|
16
15
|
fromObjectReuseStrategy?: 'default' | 'clone';
|
|
17
|
-
}): <T extends Constructor>(constructor: T) =>
|
|
18
|
-
new (...args: any[]): {
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
};
|
|
21
|
-
TYPENAME: string;
|
|
22
|
-
fromObject(source: any, opts?: any): T;
|
|
23
|
-
asObject(source: any, opts?: any): any;
|
|
24
|
-
} & T;
|
|
16
|
+
}): <T extends Constructor>(constructor: T) => T;
|
|
25
17
|
export {};
|
|
@@ -4,6 +4,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
4
4
|
import { Storage } from '@ionic/storage-angular';
|
|
5
5
|
import { Peer } from './model/peer.model';
|
|
6
6
|
import { ModalController, Platform, ToastController } from '@ionic/angular';
|
|
7
|
+
import { ISelectPeerModalOptions } from '../peer/select-peer.modal';
|
|
7
8
|
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
8
9
|
import { LocalSettingsService } from './local-settings.service';
|
|
9
10
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
@@ -18,6 +19,7 @@ export declare type ConnectionType = 'none' | 'wifi' | 'ethernet' | 'cell' | 'un
|
|
|
18
19
|
export declare type AuthTokenType = 'token' | 'basic' | 'basic-and-token';
|
|
19
20
|
export declare function getConnectionType(type: Connection): ConnectionType;
|
|
20
21
|
export declare type NetworkEventType = 'start' | 'peerChanged' | 'statusChanged' | 'resetCache' | 'beforeTryOnlineFinish';
|
|
22
|
+
export declare const PEER_URL_REGEXP: RegExp;
|
|
21
23
|
export declare class NetworkService extends StartableObservableService<Peer, Peer> {
|
|
22
24
|
private _document;
|
|
23
25
|
private platform;
|
|
@@ -96,10 +98,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
|
|
|
96
98
|
setForceOffline(value?: boolean, opts?: {
|
|
97
99
|
showToast?: boolean;
|
|
98
100
|
}): void;
|
|
99
|
-
showSelectPeerModal(opts?:
|
|
100
|
-
allowSelectDownPeer?: boolean;
|
|
101
|
-
canCancel?: boolean;
|
|
102
|
-
}): Promise<Peer | undefined>;
|
|
101
|
+
showSelectPeerModal(opts?: Partial<ISelectPeerModalOptions>): Promise<Peer | undefined>;
|
|
103
102
|
clearCache(opts?: {
|
|
104
103
|
emitEvent?: boolean;
|
|
105
104
|
}): Promise<void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./settings.page";
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
import * as i3 from "../form/buttons/form-buttons-bar.module";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
export declare class AppSettingsPageModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppSettingsPageModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppSettingsPageModule, [typeof i1.SettingsPage], [typeof i2.SharedModule, typeof i3.AppFormButtonsBarModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.SettingsPage]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppSettingsPageModule>;
|
|
10
|
+
}
|
|
@@ -14,6 +14,7 @@ import { AlertController } from '@ionic/angular';
|
|
|
14
14
|
import { Property } from '../../shared/types';
|
|
15
15
|
import { Router } from '@angular/router';
|
|
16
16
|
import { CanLeave } from '../../shared/guard/component-dirty.guard';
|
|
17
|
+
import { ISelectPeerModalOptions } from '../peer/select-peer.modal';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
export declare class SettingsPage extends AppForm<LocalSettings> implements OnInit, OnDestroy, CanLeave {
|
|
19
20
|
protected platform: PlatformService;
|
|
@@ -52,10 +53,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
52
53
|
setAccountInheritance(enable: boolean, opts?: {
|
|
53
54
|
emitEvent?: boolean;
|
|
54
55
|
}): void;
|
|
55
|
-
showSelectPeerModal(opts?:
|
|
56
|
-
allowSelectDownPeer?: boolean;
|
|
57
|
-
canCancel?: boolean;
|
|
58
|
-
}): Promise<void>;
|
|
56
|
+
showSelectPeerModal(opts?: Partial<ISelectPeerModalOptions>): Promise<void>;
|
|
59
57
|
cancel(event?: Event): Promise<void>;
|
|
60
58
|
close(event?: Event): Promise<boolean>;
|
|
61
59
|
clearCache(event?: Event): Promise<void>;
|
|
@@ -9,6 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export interface EntitiesTableDataSourceConfig<T extends Entity<T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any> extends TableDataSourceConfig {
|
|
10
10
|
onRowCreated?: (row: TableElement<T>) => Promise<void> | void;
|
|
11
11
|
saveOnlyDirtyRows?: boolean;
|
|
12
|
+
saveBeforeDelete?: boolean;
|
|
12
13
|
readOnly?: boolean;
|
|
13
14
|
/**
|
|
14
15
|
* @deprecated
|
|
@@ -126,10 +126,6 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
126
126
|
get filter(): F;
|
|
127
127
|
get empty(): boolean;
|
|
128
128
|
onRefresh: EventEmitter<any>;
|
|
129
|
-
onOpenIdAndRow: EventEmitter<{
|
|
130
|
-
id: ID;
|
|
131
|
-
row: TableElement<T>;
|
|
132
|
-
}>;
|
|
133
129
|
onOpenRow: EventEmitter<TableElement<T>>;
|
|
134
130
|
onNewRow: EventEmitter<any>;
|
|
135
131
|
onStartEditingRow: EventEmitter<TableElement<T>>;
|
|
@@ -237,7 +233,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
237
233
|
setFilter(filter: F, opts?: {
|
|
238
234
|
emitEvent?: boolean;
|
|
239
235
|
}): void;
|
|
240
|
-
confirmAndAdd(event?: Event, row?: TableElement<T>):
|
|
236
|
+
confirmAndAdd(event?: Event, row?: TableElement<T>): Promise<boolean>;
|
|
241
237
|
confirmAndBackward(event?: Event, row?: TableElement<T>): boolean;
|
|
242
238
|
confirmAndForward(event?: Event, row?: TableElement<T>): boolean | Promise<boolean>;
|
|
243
239
|
/**
|
|
@@ -400,5 +396,5 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
400
396
|
private startCellValueChanges;
|
|
401
397
|
private stopCellValueChanges;
|
|
402
398
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppTable<any, any, any>, never>;
|
|
403
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AppTable<any, any, any>, never, never, { "settingsId": "settingsId"; "debug": "debug"; "i18nColumnPrefix": "i18nColumnPrefix"; "i18nColumnSuffix": "i18nColumnSuffix"; "autoLoad": "autoLoad"; "readOnly": "readOnly"; "inlineEdition": "inlineEdition"; "focusFirstColumn": "focusFirstColumn"; "confirmBeforeDelete": "confirmBeforeDelete"; "confirmBeforeCancel": "confirmBeforeCancel"; "undoableDeletion": "undoableDeletion"; "saveBeforeDelete": "saveBeforeDelete"; "keepEditedRowOnSave": "keepEditedRowOnSave"; "saveBeforeSort": "saveBeforeSort"; "saveBeforeFilter": "saveBeforeFilter"; "propagateRowError": "propagateRowError"; "defaultSortBy": "defaultSortBy"; "defaultSortDirection": "defaultSortDirection"; "defaultPageSize": "defaultPageSize"; "defaultPageSizeOptions": "defaultPageSizeOptions"; "focusColumn": "focusColumn"; "dataSource": "dataSource"; "filter": "filter"; "disabled": "disabled"; "paginator": "paginator"; }, { "onRefresh": "onRefresh"; "
|
|
399
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AppTable<any, any, any>, never, never, { "settingsId": "settingsId"; "debug": "debug"; "i18nColumnPrefix": "i18nColumnPrefix"; "i18nColumnSuffix": "i18nColumnSuffix"; "autoLoad": "autoLoad"; "readOnly": "readOnly"; "inlineEdition": "inlineEdition"; "focusFirstColumn": "focusFirstColumn"; "confirmBeforeDelete": "confirmBeforeDelete"; "confirmBeforeCancel": "confirmBeforeCancel"; "undoableDeletion": "undoableDeletion"; "saveBeforeDelete": "saveBeforeDelete"; "keepEditedRowOnSave": "keepEditedRowOnSave"; "saveBeforeSort": "saveBeforeSort"; "saveBeforeFilter": "saveBeforeFilter"; "propagateRowError": "propagateRowError"; "defaultSortBy": "defaultSortBy"; "defaultSortDirection": "defaultSortDirection"; "defaultPageSize": "defaultPageSize"; "defaultPageSizeOptions": "defaultPageSizeOptions"; "focusColumn": "focusColumn"; "dataSource": "dataSource"; "filter": "filter"; "disabled": "disabled"; "paginator": "paginator"; }, { "onRefresh": "onRefresh"; "onOpenRow": "onOpenRow"; "onNewRow": "onNewRow"; "onStartEditingRow": "onStartEditingRow"; "onConfirmEditCreateRow": "onConfirmEditCreateRow"; "onCancelOrDeleteRow": "onCancelOrDeleteRow"; "onBeforeDeleteRows": "onBeforeDeleteRows"; "onBeforeCancelRows": "onBeforeCancelRows"; "onBeforeSave": "onBeforeSave"; "onAfterDeletedRows": "onAfterDeletedRows"; "onSort": "onSort"; "onDirty": "onDirty"; "onError": "onError"; }, never, never, false>;
|
|
404
400
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./table-select-columns.component";
|
|
3
|
+
import * as i2 from "./actions-column.component";
|
|
4
|
+
import * as i3 from "../../shared/shared.module";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
export declare class AppTableModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppTableModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppTableModule, [typeof i1.TableSelectColumnsComponent, typeof i2.ActionsColumnComponent], [typeof i3.SharedModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.TableSelectColumnsComponent, typeof i2.ActionsColumnComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppTableModule>;
|
|
10
|
+
}
|
|
@@ -3,5 +3,5 @@ export declare const DATE_PATTERN = "YYYY-MM-DD";
|
|
|
3
3
|
export declare const DEFAULT_PLACEHOLDER_CHAR = "_";
|
|
4
4
|
export declare const PUBKEY_REGEXP: RegExp;
|
|
5
5
|
export declare const SPACE_PLACEHOLDER_CHAR = "\u2000";
|
|
6
|
-
export declare const ZERO_PLACEHOLDER_CHAR = "\
|
|
6
|
+
export declare const ZERO_PLACEHOLDER_CHAR = "\uFEFF";
|
|
7
7
|
export declare const KEYBOARD_HIDE_DELAY_MS = 250;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import * as momentImported from 'moment';
|
|
2
1
|
import { Duration, Moment, unitOfTime } from 'moment';
|
|
2
|
+
import * as momentImported from 'moment';
|
|
3
3
|
export declare const DATE_UNIX_TIMESTAMP = "X";
|
|
4
4
|
export declare const DATE_UNIX_MS_TIMESTAMP = "x";
|
|
5
5
|
export declare const MOMENT_NO_TIME_PROPERTY = "_hasNoTime";
|
|
6
6
|
export declare class DateUtils {
|
|
7
|
+
static moment: typeof momentImported;
|
|
8
|
+
static momentTZ: typeof momentImported;
|
|
7
9
|
static toDateISOString: typeof toDateISOString;
|
|
8
10
|
static fromDateISOString: typeof fromDateISOString;
|
|
9
11
|
static toDuration: typeof toDuration;
|
|
@@ -31,6 +33,6 @@ export declare class DateUtils {
|
|
|
31
33
|
}
|
|
32
34
|
export declare function toDateISOString(value: any): string | undefined;
|
|
33
35
|
export declare function fromDateISOString(value: any): Moment | undefined;
|
|
34
|
-
export declare function fromUnixTimestamp(timeInSec: number):
|
|
35
|
-
export declare function fromUnixMsTimestamp(timeInMs: number):
|
|
36
|
+
export declare function fromUnixTimestamp(timeInSec: number): Moment;
|
|
37
|
+
export declare function fromUnixMsTimestamp(timeInMs: number): Moment;
|
|
36
38
|
export declare function toDuration(value: number, unit?: moment.unitOfTime.DurationConstructor): Duration;
|