@sumaris-net/ngx-components 2.0.0-rc1 → 2.0.0-rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/doc/changelog.md +37 -0
- package/esm2020/public_api.mjs +9 -5
- package/esm2020/src/app/admin/admin-routing.module.mjs +5 -5
- package/esm2020/src/app/admin/admin.module.mjs +13 -28
- 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/list/users.mjs +33 -27
- package/esm2020/src/app/admin/users/list/users.module.mjs +58 -0
- package/esm2020/src/app/core/about/modal-about.mjs +3 -3
- package/esm2020/src/app/core/account/account.mjs +3 -3
- package/esm2020/src/app/core/auth/form/form-auth.mjs +3 -3
- package/esm2020/src/app/core/auth/modal/modal-auth.mjs +3 -3
- package/esm2020/src/app/core/core.module.mjs +6 -6
- package/esm2020/src/app/core/core.testing.module.mjs +26 -12
- package/esm2020/src/app/core/form/editor.class.mjs +126 -62
- package/esm2020/src/app/core/form/entity-editor-modal.class.mjs +8 -7
- package/esm2020/src/app/core/form/entity-editor.class.mjs +10 -33
- package/esm2020/src/app/core/form/entity-metadata.component.mjs +3 -3
- package/esm2020/src/app/core/form/form-buttons-bar.component.mjs +3 -3
- package/esm2020/src/app/core/form/form.class.mjs +7 -4
- package/esm2020/src/app/core/form/form.utils.mjs +39 -4
- package/esm2020/src/app/core/form/list.form.mjs +7 -6
- package/esm2020/src/app/core/form/properties/properties.form.mjs +129 -0
- package/esm2020/src/app/core/form/properties/property.validator.mjs +23 -0
- package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +90 -0
- package/esm2020/src/app/core/form/properties/testing/properties-form.testing.module.mjs +39 -0
- package/esm2020/src/app/core/graphql/graphql.module.mjs +4 -4
- package/esm2020/src/app/core/graphql/graphql.service.mjs +3 -3
- package/esm2020/src/app/core/graphql/graphql.utils.mjs +2 -2
- package/esm2020/src/app/core/home/home.mjs +3 -3
- 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 +4 -4
- package/esm2020/src/app/core/menu/menu.component.mjs +3 -3
- package/esm2020/src/app/core/menu/menu.module.mjs +4 -4
- 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/peer/select-peer.modal.mjs +3 -3
- package/esm2020/src/app/core/peer/select-peer.module.mjs +4 -4
- package/esm2020/src/app/core/register/confirm/confirm.mjs +3 -3
- package/esm2020/src/app/core/register/form/form-register.mjs +3 -3
- package/esm2020/src/app/core/register/modal/modal-register.mjs +3 -3
- package/esm2020/src/app/core/register/register.module.mjs +4 -4
- package/esm2020/src/app/core/services/account.service.mjs +5 -5
- package/esm2020/src/app/core/services/auth-guard.service.mjs +3 -3
- package/esm2020/src/app/core/services/base-entity-service.class.mjs +8 -9
- package/esm2020/src/app/core/services/base-graphql-service.class.mjs +3 -3
- package/esm2020/src/app/core/services/config.service.mjs +5 -5
- package/esm2020/src/app/core/services/crypto.service.mjs +3 -3
- package/esm2020/src/app/core/services/local-settings.service.mjs +3 -3
- package/esm2020/src/app/core/services/network.service.mjs +21 -28
- 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 +3 -3
- package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +3 -3
- 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.page.mjs +4 -4
- package/esm2020/src/app/core/table/actions-column.component.mjs +9 -9
- package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +74 -65
- 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 +77 -65
- package/esm2020/src/app/core/table/table.utils.mjs +1 -1
- package/esm2020/src/app/core/table/testing/table.testing.mjs +5 -5
- package/esm2020/src/app/core/table/testing/table.testing.module.mjs +4 -4
- package/esm2020/src/app/core/text-popover/testing/text-popover.testing.mjs +3 -3
- package/esm2020/src/app/core/text-popover/testing/text-popover.testing.module.mjs +4 -4
- package/esm2020/src/app/core/text-popover/text-form.component.mjs +3 -3
- package/esm2020/src/app/core/text-popover/text-popover.component.mjs +3 -3
- package/esm2020/src/app/shared/audio/audio.mjs +4 -4
- 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/debug/debug.component.mjs +39 -0
- package/esm2020/src/app/shared/debug/debug.module.mjs +44 -0
- package/esm2020/src/app/shared/directives/autofocus.directive.mjs +6 -6
- 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 +10 -7
- package/esm2020/src/app/shared/form/loading-spinner.mjs +3 -3
- package/esm2020/src/app/shared/forms.mjs +21 -2
- package/esm2020/src/app/shared/functions.mjs +23 -10
- 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 +3 -3
- package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +4 -4
- 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 +3 -3
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/image/image.module.mjs +4 -4
- package/esm2020/src/app/shared/image/image.service.mjs +3 -3
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +6 -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 +157 -0
- package/esm2020/src/app/shared/material/badge/badge.module.mjs +32 -0
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +26 -0
- package/esm2020/src/app/shared/material/boolean/boolean.module.mjs +4 -4
- package/esm2020/src/app/shared/material/boolean/material.boolean.mjs +3 -3
- package/esm2020/src/app/shared/material/chips/chips.module.mjs +4 -4
- package/esm2020/src/app/shared/material/chips/material.chips.mjs +10 -11
- 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 +79 -83
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +5 -5
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +95 -77
- package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +5 -5
- package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +5 -5
- 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 +10 -10
- package/esm2020/src/app/shared/material/material.testing.module.mjs +9 -9
- 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 +5 -5
- 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 +3 -3
- package/esm2020/src/app/shared/pipes/arrays.pipe.mjs +48 -27
- package/esm2020/src/app/shared/pipes/colors.pipe.mjs +3 -3
- package/esm2020/src/app/shared/pipes/date-diff-duration.pipe.mjs +4 -4
- 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 +10 -6
- package/esm2020/src/app/shared/pipes/property.pipes.mjs +7 -7
- package/esm2020/src/app/shared/pipes/string.pipes.mjs +15 -15
- package/esm2020/src/app/shared/pipes/translate-context.pipe.mjs +8 -8
- package/esm2020/src/app/shared/services/entity-service.class.mjs +1 -13
- package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +120 -42
- package/esm2020/src/app/shared/services/progress-bar.service.mjs +3 -3
- package/esm2020/src/app/shared/services/startable-observable-service.class.mjs +119 -0
- package/esm2020/src/app/shared/services/startable-service.class.mjs +42 -31
- 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 +4 -4
- package/esm2020/src/app/shared/shared.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/testing/tests.page.mjs +3 -3
- package/esm2020/src/app/shared/toast/toast.testing.mjs +10 -11
- package/esm2020/src/app/shared/toast/toast.testing.module.mjs +4 -4
- package/esm2020/src/app/shared/toast/toasts.mjs +38 -15
- package/esm2020/src/app/shared/toolbar/modal-toolbar.mjs +5 -5
- package/esm2020/src/app/shared/toolbar/toolbar.mjs +9 -9
- 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 +3 -3
- 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/social/job/job.module.mjs +9 -9
- package/esm2020/src/app/social/job/job.service.mjs +27 -15
- package/esm2020/src/app/social/job/progression/job-progression.icon.mjs +210 -0
- package/esm2020/src/app/social/job/progression/job-progression.list.mjs +3 -3
- package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +33 -31
- package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +27 -5
- 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 +5 -5
- package/esm2020/src/app/social/social.testing.module.mjs +4 -4
- package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +28 -17
- 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 +6 -6
- 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 +9 -9
- package/esm2020/src/app/social/user-event/user-event.service.mjs +5 -5
- package/esm2020/src/app/vendor.mjs +6 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +2232 -1552
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +2191 -1490
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +6 -2
- package/public_api.d.ts +8 -4
- package/src/app/admin/admin.module.d.ts +4 -8
- package/src/app/admin/users/list/users.d.ts +1 -0
- package/src/app/admin/users/list/users.module.d.ts +14 -0
- package/src/app/core/core.module.d.ts +1 -1
- package/src/app/core/core.testing.module.d.ts +2 -1
- package/src/app/core/form/editor.class.d.ts +19 -6
- package/src/app/core/form/entity-editor.class.d.ts +4 -11
- package/src/app/core/form/form.class.d.ts +1 -0
- package/src/app/core/form/form.utils.d.ts +28 -2
- package/src/app/core/form/{properties.form.d.ts → properties/properties.form.d.ts} +13 -13
- package/src/app/core/form/properties/property.validator.d.ts +13 -0
- package/src/app/core/form/properties/testing/properties-form.test.d.ts +19 -0
- package/src/app/core/form/properties/testing/properties-form.testing.module.d.ts +12 -0
- package/src/app/core/services/network.service.d.ts +6 -8
- package/src/app/core/table/entities-table-datasource.class.d.ts +22 -15
- package/src/app/core/table/table.class.d.ts +3 -0
- package/src/app/core/table/table.utils.d.ts +2 -1
- package/src/app/shared/debug/debug.component.d.ts +13 -0
- package/src/app/shared/debug/debug.module.d.ts +12 -0
- package/src/app/shared/form/field.component.d.ts +4 -1
- package/src/app/shared/forms.d.ts +8 -1
- package/src/app/shared/functions.d.ts +9 -4
- package/src/app/shared/image/gallery/testing/gallery.testing.d.ts +1 -1
- package/src/app/shared/material/badge/badge.directive.d.ts +28 -0
- package/src/app/shared/material/badge/badge.module.d.ts +10 -0
- package/src/app/shared/material/badge/badge.test.d.ts +12 -0
- package/src/app/shared/material/datetime/material.date.d.ts +12 -13
- package/src/app/shared/material/datetime/material.datetime.d.ts +14 -14
- package/src/app/shared/material/material.module.d.ts +2 -2
- package/src/app/shared/material/material.testing.module.d.ts +2 -2
- package/src/app/shared/pipes/arrays.pipe.d.ts +12 -2
- package/src/app/shared/pipes/pipes.module.d.ts +1 -1
- package/src/app/shared/services/entity-service.class.d.ts +0 -11
- package/src/app/shared/services/memory-entity-service.class.d.ts +15 -6
- package/src/app/shared/services/startable-observable-service.class.d.ts +33 -0
- package/src/app/shared/services/startable-service.class.d.ts +12 -9
- package/src/app/shared/toast/toast.testing.d.ts +3 -5
- package/src/app/shared/toast/toasts.d.ts +5 -2
- package/src/app/social/job/job.module.d.ts +2 -2
- package/src/app/social/job/job.service.d.ts +10 -2
- package/src/app/social/job/progression/{job-progression.component.d.ts → job-progression.icon.d.ts} +5 -5
- package/src/app/social/job/testing/job-progression.testing.d.ts +7 -4
- package/src/app/social/job/testing/job-progression.testing.service.d.ts +4 -0
- package/src/app/social/social.module.d.ts +1 -1
- package/src/app/social/user-event/notification/user-event-notification.icon.d.ts +8 -5
- package/src/app/social/user-event/testing/user-event.testing.d.ts +2 -2
- package/src/app/social/user-event/user-event.module.d.ts +1 -1
- package/src/app/social/user-event/user-event.service.d.ts +1 -1
- package/src/app/vendor.d.ts +2 -0
- package/src/theme/_material.scss +29 -4
- package/src/theme/_ngx-components.scss +26 -0
- package/esm2020/src/app/core/form/properties.form.mjs +0 -126
- package/esm2020/src/app/shared/material/badge/badge-icon.directive.mjs +0 -143
- package/esm2020/src/app/shared/material/badge/badge-icon.module.mjs +0 -32
- package/esm2020/src/app/shared/material/badge/badge-icon.test.mjs +0 -27
- package/esm2020/src/app/social/job/progression/job-progression.component.mjs +0 -201
- package/src/app/shared/material/badge/badge-icon.directive.d.ts +0 -30
- package/src/app/shared/material/badge/badge-icon.module.d.ts +0 -10
- package/src/app/shared/material/badge/badge-icon.test.d.ts +0 -12
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./debug.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ionic/angular";
|
|
5
|
+
import * as i4 from "@angular/material/expansion";
|
|
6
|
+
import * as i5 from "@angular/material/icon";
|
|
7
|
+
import * as i6 from "@ngx-translate/core";
|
|
8
|
+
export declare class SharedDebugModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedDebugModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDebugModule, [typeof i1.DebugComponent], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.MatExpansionModule, typeof i5.MatIconModule, typeof i6.TranslateModule, typeof i4.MatExpansionModule], [typeof i1.DebugComponent, typeof i6.TranslateModule]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedDebugModule>;
|
|
12
|
+
}
|
|
@@ -5,6 +5,8 @@ import { DisplayFn, FormFieldDefinition, FormFieldType } from './field.model';
|
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
6
|
import { filterNumberInput, selectInputContent } from '../inputs';
|
|
7
7
|
import { Property } from '../types';
|
|
8
|
+
import { ThemePalette } from '@angular/material/core';
|
|
9
|
+
import { PredefinedColors } from '@ionic/core';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
10
12
|
protected translate: TranslateService;
|
|
@@ -29,6 +31,7 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
29
31
|
floatLabel: FloatLabelType;
|
|
30
32
|
tabindex: number;
|
|
31
33
|
autofocus: boolean;
|
|
34
|
+
chipColor: ThemePalette | PredefinedColors;
|
|
32
35
|
classList: string;
|
|
33
36
|
onKeyupEnter: EventEmitter<any>;
|
|
34
37
|
get value(): any;
|
|
@@ -52,5 +55,5 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
52
55
|
protected checkAndResolveFormControl(): void;
|
|
53
56
|
protected updateTabIndex(): void;
|
|
54
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppFormField, [null, null, null, { optional: true; }]>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": "definition"; "required": "required"; "readonly": "readonly"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "compact": "compact"; "floatLabel": "floatLabel"; "tabindex": "tabindex"; "autofocus": "autofocus"; "classList": "class"; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": "definition"; "required": "required"; "readonly": "readonly"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "compact": "compact"; "floatLabel": "floatLabel"; "tabindex": "tabindex"; "autofocus": "autofocus"; "chipColor": "chipColor"; "classList": "class"; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false>;
|
|
56
59
|
}
|
|
@@ -36,9 +36,16 @@ export declare function disableControls(form: UntypedFormGroup, paths: string[],
|
|
|
36
36
|
onlySelf?: boolean;
|
|
37
37
|
emitEvent?: boolean;
|
|
38
38
|
}): void;
|
|
39
|
-
export declare function
|
|
39
|
+
export declare function pushValueInArray(arrayControl: UntypedFormArray, createControl: (value?: any) => AbstractControl, equals: (v1: any, v2: any) => boolean, isEmpty: (value: any) => boolean, value: any, options?: {
|
|
40
40
|
emitEvent: boolean;
|
|
41
41
|
}): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Patch an array using given default values. Each default value will be pass to the 'createControl()' function
|
|
44
|
+
* @param arrayControl
|
|
45
|
+
* @param createControl
|
|
46
|
+
* @param values
|
|
47
|
+
*/
|
|
48
|
+
export declare function patchValueInArray(arrayControl: UntypedFormArray, createControl: (value?: any) => AbstractControl, defaultValues: any[]): boolean;
|
|
42
49
|
export declare function resizeArray(arrayControl: UntypedFormArray, createControl: () => AbstractControl, length: number): boolean;
|
|
43
50
|
export declare function removeValueInArray(arrayControl: UntypedFormArray, isEmpty: (value: any) => boolean, index: number): boolean;
|
|
44
51
|
export declare function clearValueInArray(arrayControl: UntypedFormArray, isEmpty: (value: any) => boolean, index: number): boolean;
|
|
@@ -18,7 +18,12 @@ export declare function arrayGroupBy<T = any, K extends keyof T = any, M extends
|
|
|
18
18
|
} = {
|
|
19
19
|
[key: string]: T[];
|
|
20
20
|
}>(obj: T[], key: keyof T): M;
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Remove duplicated value, in array. Will compute a unique key (from given properties, or given function)
|
|
23
|
+
* @param values
|
|
24
|
+
* @param propertiesOrKeyFn
|
|
25
|
+
*/
|
|
26
|
+
export declare function arrayDistinct<T = any>(values: T[], propertiesOrKeyFn?: string | string[] | ((obj: T) => string)): T[];
|
|
22
27
|
export declare function nullIfUndefined<T>(obj: T | null | undefined): T | null;
|
|
23
28
|
export declare function trimEmptyToNull<T>(str: string | null | undefined): string | null;
|
|
24
29
|
export declare function toBoolean(obj: boolean | null | undefined | string, defaultValue?: boolean): boolean;
|
|
@@ -51,16 +56,16 @@ export declare function suggestFromStringArray(values: string[], value: any, opt
|
|
|
51
56
|
}): string[];
|
|
52
57
|
export declare function joinPropertiesPath<T = any>(obj: T, properties: string[], separator?: string): string | undefined;
|
|
53
58
|
export declare function joinProperties<T = any, K extends keyof T = any>(obj: T, keys: K[], separator?: string): string | undefined;
|
|
54
|
-
export declare function propertyPathComparator<T = any>(path: string): (a: T, b: T) => number;
|
|
59
|
+
export declare function propertyPathComparator<T = any>(path: string | string[]): (a: T, b: T) => number;
|
|
55
60
|
export declare function propertyComparator<T = any, K extends keyof T = any>(key: K, defaultValue?: any): (a: T, b: T) => number;
|
|
56
61
|
export declare function propertiesPathComparator<T = any>(keys: string[], defaultValues?: any[]): (a: T, b: T) => number;
|
|
57
62
|
export declare function sort<T>(array: T[], attribute: string, opts?: Intl.CollatorOptions): T[];
|
|
58
63
|
export declare function isInt(value: string): boolean;
|
|
59
64
|
export declare function isNumber(value: string): boolean;
|
|
60
65
|
export declare function isNumberRange(value: string): boolean;
|
|
61
|
-
export declare function getPropertyByPath(obj: any, path: string, defaultValue?: any): any;
|
|
66
|
+
export declare function getPropertyByPath(obj: any, path: string | string[], defaultValue?: any): any;
|
|
62
67
|
export declare function getProperty<T = any, K extends keyof T = any>(obj: T, key: K): T[K];
|
|
63
|
-
export declare function getPropertyByPathAsString(obj: any, path: string): string | undefined;
|
|
68
|
+
export declare function getPropertyByPathAsString(obj: any, path: string | string[]): string | undefined;
|
|
64
69
|
export declare function sleep(ms: number): Promise<void>;
|
|
65
70
|
export declare function round(value: number | undefined | null): number;
|
|
66
71
|
export declare function equalsOrNil(value1: any, value2: any): boolean;
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class GalleryTestPage implements OnInit, OnDestroy {
|
|
7
7
|
protected dataService: ImageAttachmentService;
|
|
8
8
|
private _subscription;
|
|
9
|
-
readonly dataSource: EntitiesTableDataSource<ImageAttachment, ImageAttachmentFilter, number, import("@sumaris-net/ngx-components").EntitiesServiceWatchOptions, any, import("@e-is/ngx-material-table").ValidatorService, import("../../../../core/table/entities-table-datasource.class").EntitiesTableDataSourceConfig<ImageAttachment, number, import("@sumaris-net/ngx-components").EntitiesServiceWatchOptions, any>>;
|
|
9
|
+
readonly dataSource: EntitiesTableDataSource<ImageAttachment, ImageAttachmentFilter, number, import("@sumaris-net/ngx-components").EntitiesServiceWatchOptions, any, import("@e-is/ngx-material-table").ValidatorService, import("../../../../core/table/entities-table-datasource.class").EntitiesTableDataSourceConfig<ImageAttachment, number, import("@sumaris-net/ngx-components").EntitiesServiceWatchOptions, any>, import("@e-is/ngx-material-table").TableElement<ImageAttachment>>;
|
|
10
10
|
constructor(dataService: ImageAttachmentService);
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
ngOnDestroy(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { MatBadge } from '@angular/material/badge';
|
|
3
|
+
import { AppColors } from '../../types';
|
|
4
|
+
import { AriaDescriber } from '@angular/cdk/a11y';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare type MatBadgeFill = 'clear' | 'solid';
|
|
7
|
+
export declare class BadgeDirective extends MatBadge implements OnInit, OnDestroy {
|
|
8
|
+
protected el: ElementRef<HTMLElement>;
|
|
9
|
+
set appColor(value: AppColors);
|
|
10
|
+
get appColor(): AppColors;
|
|
11
|
+
set fill(value: MatBadgeFill);
|
|
12
|
+
get fill(): MatBadgeFill;
|
|
13
|
+
set matIcon(icon: string);
|
|
14
|
+
set ionIcon(icon: string);
|
|
15
|
+
private _appColor;
|
|
16
|
+
private _fill;
|
|
17
|
+
private _matIcon;
|
|
18
|
+
private _ionIcon;
|
|
19
|
+
private _html;
|
|
20
|
+
private _subscription;
|
|
21
|
+
private _$update;
|
|
22
|
+
constructor(_ngZone: NgZone, el: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
private updateView;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, [null, null, null, null, { optional: true; }]>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "disabled": "matBadgeDisabled"; "color": "appBadgeColor"; "size": "appBadgeSize"; "fill": "appBadgeFill"; "overlap": "appBadgeOverlap"; "appColor": "appBadgeColor"; "matIcon": "appBadgeMatIcon"; "ionIcon": "appBadgeIcon"; }, {}, never, never, false>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./badge.directive";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ionic/angular";
|
|
5
|
+
import * as i4 from "@angular/material/badge";
|
|
6
|
+
export declare class SharedBadgeModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedBadgeModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedBadgeModule, [typeof i1.BadgeDirective], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.MatBadgeModule], [typeof i1.BadgeDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedBadgeModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { MatBadgeFill } from './badge.directive';
|
|
3
|
+
import { MatBadgeSize } from '@angular/material/badge';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MatBadgeTestPage {
|
|
6
|
+
$icon: BehaviorSubject<string>;
|
|
7
|
+
$size: BehaviorSubject<MatBadgeSize>;
|
|
8
|
+
$fill: BehaviorSubject<MatBadgeFill>;
|
|
9
|
+
$color: BehaviorSubject<string>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadgeTestPage, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatBadgeTestPage, "mat-badge-test", never, {}, {}, never, never, false>;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { Moment } from 'moment';
|
|
@@ -7,7 +7,7 @@ import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-f
|
|
|
7
7
|
import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
8
8
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class MatDate implements OnInit, OnDestroy, ControlValueAccessor, InputElement {
|
|
10
|
+
export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, InputElement {
|
|
11
11
|
private dateAdapter;
|
|
12
12
|
private translate;
|
|
13
13
|
private formBuilder;
|
|
@@ -19,9 +19,7 @@ export declare class MatDate implements OnInit, OnDestroy, ControlValueAccessor,
|
|
|
19
19
|
private _writing;
|
|
20
20
|
private _disabling;
|
|
21
21
|
private _tabindex;
|
|
22
|
-
private
|
|
23
|
-
private _keyboardHideDelay;
|
|
24
|
-
_readonly: boolean;
|
|
22
|
+
private _readonly;
|
|
25
23
|
textControl: UntypedFormControl;
|
|
26
24
|
datePattern: string;
|
|
27
25
|
locale: string;
|
|
@@ -45,27 +43,28 @@ export declare class MatDate implements OnInit, OnDestroy, ControlValueAccessor,
|
|
|
45
43
|
set tabindex(value: number);
|
|
46
44
|
get tabindex(): number;
|
|
47
45
|
get value(): any;
|
|
46
|
+
get disabled(): boolean;
|
|
48
47
|
datePicker: MatDatepicker<Moment>;
|
|
49
|
-
|
|
48
|
+
_matInput: ElementRef;
|
|
50
49
|
constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
51
50
|
ngOnInit(): void;
|
|
51
|
+
ngAfterViewInit(): void;
|
|
52
52
|
ngOnDestroy(): void;
|
|
53
53
|
writeValue(value: any): void;
|
|
54
54
|
registerOnChange(fn: any): void;
|
|
55
55
|
registerOnTouched(fn: any): void;
|
|
56
56
|
setDisabledState(isDisabled: boolean): void;
|
|
57
|
-
|
|
58
|
-
openDatePickerIfMobile(event: Event, datePicker?: MatDatepicker<any>): Promise<void>;
|
|
59
|
-
openDatePicker(event?: Event, datePicker?: MatDatepicker<any>): void;
|
|
60
|
-
preventEvent(event: Event): void;
|
|
57
|
+
openDatePicker(): void;
|
|
61
58
|
focus(): void;
|
|
62
59
|
clear(): void;
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
|
|
61
|
+
protected _openDatePickerIfMobile(event: UIEvent): Promise<boolean>;
|
|
62
|
+
protected _checkIfTouched(opts?: {
|
|
65
63
|
emitEvent?: boolean;
|
|
66
64
|
}): void;
|
|
65
|
+
protected _preventEvent(event: Event): void;
|
|
66
|
+
private updatePattern;
|
|
67
67
|
private onFormChange;
|
|
68
|
-
private waitKeyboardHide;
|
|
69
68
|
private updateTabIndex;
|
|
70
69
|
private markAsTouched;
|
|
71
70
|
private markAsDirty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
3
|
-
import { ControlValueAccessor, UntypedFormBuilder, UntypedFormControl
|
|
3
|
+
import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { Moment } from 'moment';
|
|
6
6
|
import { InputElement } from '../../inputs';
|
|
@@ -17,7 +17,7 @@ declare interface NgxTimePicker {
|
|
|
17
17
|
open(): any;
|
|
18
18
|
close(): any;
|
|
19
19
|
}
|
|
20
|
-
export declare class MatDateTime implements OnInit, OnDestroy, ControlValueAccessor, InputElement {
|
|
20
|
+
export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, InputElement {
|
|
21
21
|
private dateAdapter;
|
|
22
22
|
private translate;
|
|
23
23
|
private formBuilder;
|
|
@@ -29,8 +29,7 @@ export declare class MatDateTime implements OnInit, OnDestroy, ControlValueAcces
|
|
|
29
29
|
private _writing;
|
|
30
30
|
private _disabling;
|
|
31
31
|
private _tabindex;
|
|
32
|
-
private
|
|
33
|
-
_readonly: boolean;
|
|
32
|
+
private _readonly;
|
|
34
33
|
dayControl: UntypedFormControl;
|
|
35
34
|
hourControl: UntypedFormControl;
|
|
36
35
|
displayPattern: string;
|
|
@@ -56,29 +55,30 @@ export declare class MatDateTime implements OnInit, OnDestroy, ControlValueAcces
|
|
|
56
55
|
set tabindex(value: number);
|
|
57
56
|
get tabindex(): number;
|
|
58
57
|
get value(): any;
|
|
58
|
+
get disabled(): boolean;
|
|
59
59
|
datePicker: MatDatepicker<Moment>;
|
|
60
60
|
timePicker: NgxTimePicker;
|
|
61
61
|
matInputs: QueryList<ElementRef>;
|
|
62
62
|
constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
63
63
|
ngOnInit(): void;
|
|
64
|
+
ngAfterViewInit(): void;
|
|
64
65
|
ngOnDestroy(): void;
|
|
65
66
|
writeValue(value: any): void;
|
|
66
67
|
registerOnChange(fn: any): void;
|
|
67
68
|
registerOnTouched(fn: any): void;
|
|
68
69
|
setDisabledState(isDisabled: boolean): void;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
openDatePickerIfMobile(event: Event, datePicker?: MatDatepicker<any>): Promise<void>;
|
|
72
|
-
openDatePicker(event?: Event, datePicker?: MatDatepicker<any>): void;
|
|
73
|
-
openTimePickerIfMobile(event: Event): Promise<void>;
|
|
74
|
-
openTimePicker(event: Event): void;
|
|
75
|
-
preventEvent(event: Event): void;
|
|
70
|
+
openDatePicker(event?: UIEvent | Event, datePicker?: MatDatepicker<any>): void;
|
|
71
|
+
openTimePicker(event?: UIEvent | Event): void;
|
|
76
72
|
focus(): void;
|
|
77
73
|
clear(): void;
|
|
74
|
+
protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
|
|
75
|
+
onTimePickerChange(timeStr: string): void;
|
|
76
|
+
protected _openDatePickerIfMobile(event?: UIEvent, datePicker?: MatDatepicker<any>): void;
|
|
77
|
+
protected _openTimePickerIfMobile(event?: UIEvent): void;
|
|
78
|
+
protected _checkIfTouched(): void;
|
|
79
|
+
protected _preventEvent(event?: Event): void;
|
|
78
80
|
private updatePattern;
|
|
79
|
-
checkIfTouched(): void;
|
|
80
81
|
private onFormChange;
|
|
81
|
-
private waitKeyboardHide;
|
|
82
82
|
private emitChange;
|
|
83
83
|
private updateTabIndex;
|
|
84
84
|
private markAsTouched;
|
|
@@ -37,9 +37,9 @@ import * as i35 from "./boolean/boolean.module";
|
|
|
37
37
|
import * as i36 from "./numpad/numpad.module";
|
|
38
38
|
import * as i37 from "./swipe/swipe.module";
|
|
39
39
|
import * as i38 from "./chips/chips.module";
|
|
40
|
-
import * as i39 from "./badge/badge
|
|
40
|
+
import * as i39 from "./badge/badge.module";
|
|
41
41
|
export declare class SharedMaterialModule {
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMaterialModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMaterialModule, never, [typeof i1.MatCommonModule, typeof i2.MatTableModule, typeof i3.MatSortModule, typeof i4.MatPaginatorModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.CdkTableModule, typeof i8.MatCheckboxModule, typeof i9.MatExpansionModule, typeof i10.MatToolbarModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.MatMenuModule, typeof i15.MatSelectModule, typeof i16.MatCardModule, typeof i17.MatTabsModule, typeof i18.MatListModule, typeof i19.MatStepperModule, typeof i20.MatButtonToggleModule, typeof i21.MatProgressSpinnerModule, typeof i22.MatProgressBarModule, typeof i23.MatRadioModule, typeof i24.MatBadgeModule, typeof i25.MatSlideToggleModule, typeof i26.A11yModule, typeof i27.OverlayModule, typeof i28.ScrollingModule, typeof i1.MatRippleModule, typeof i29.MatDividerModule, typeof i30.MatTooltipModule, typeof i31.SharedMatAutocompleteModule, typeof i32.SharedMatLatLongModule, typeof i33.SharedMatDateTimeModule, typeof i34.SharedMatDurationModule, typeof i35.SharedMatBooleanModule, typeof i36.SharedMatNumpadModule, typeof i37.SharedMatSwipeModule, typeof i38.SharedMatChipsModule, typeof i39.
|
|
43
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMaterialModule, never, [typeof i1.MatCommonModule, typeof i2.MatTableModule, typeof i3.MatSortModule, typeof i4.MatPaginatorModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.CdkTableModule, typeof i8.MatCheckboxModule, typeof i9.MatExpansionModule, typeof i10.MatToolbarModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.MatMenuModule, typeof i15.MatSelectModule, typeof i16.MatCardModule, typeof i17.MatTabsModule, typeof i18.MatListModule, typeof i19.MatStepperModule, typeof i20.MatButtonToggleModule, typeof i21.MatProgressSpinnerModule, typeof i22.MatProgressBarModule, typeof i23.MatRadioModule, typeof i24.MatBadgeModule, typeof i25.MatSlideToggleModule, typeof i26.A11yModule, typeof i27.OverlayModule, typeof i28.ScrollingModule, typeof i1.MatRippleModule, typeof i29.MatDividerModule, typeof i30.MatTooltipModule, typeof i31.SharedMatAutocompleteModule, typeof i32.SharedMatLatLongModule, typeof i33.SharedMatDateTimeModule, typeof i34.SharedMatDurationModule, typeof i35.SharedMatBooleanModule, typeof i36.SharedMatNumpadModule, typeof i37.SharedMatSwipeModule, typeof i38.SharedMatChipsModule, typeof i39.SharedBadgeModule], [typeof i1.MatCommonModule, typeof i2.MatTableModule, typeof i3.MatSortModule, typeof i4.MatPaginatorModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.CdkTableModule, typeof i8.MatCheckboxModule, typeof i9.MatExpansionModule, typeof i10.MatToolbarModule, typeof i11.MatDialogModule, typeof i12.MatIconModule, typeof i13.MatButtonModule, typeof i14.MatMenuModule, typeof i15.MatSelectModule, typeof i16.MatCardModule, typeof i17.MatTabsModule, typeof i18.MatListModule, typeof i19.MatStepperModule, typeof i20.MatButtonToggleModule, typeof i21.MatProgressSpinnerModule, typeof i22.MatProgressBarModule, typeof i23.MatRadioModule, typeof i24.MatBadgeModule, typeof i25.MatSlideToggleModule, typeof i26.A11yModule, typeof i27.OverlayModule, typeof i28.ScrollingModule, typeof i1.MatRippleModule, typeof i29.MatDividerModule, typeof i30.MatTooltipModule, typeof i31.SharedMatAutocompleteModule, typeof i32.SharedMatLatLongModule, typeof i33.SharedMatDateTimeModule, typeof i34.SharedMatDurationModule, typeof i35.SharedMatBooleanModule, typeof i36.SharedMatNumpadModule, typeof i37.SharedMatSwipeModule, typeof i38.SharedMatChipsModule, typeof i39.SharedBadgeModule]>;
|
|
44
44
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMaterialModule>;
|
|
45
45
|
}
|
|
@@ -7,7 +7,7 @@ import * as i4 from "./latlong/testing/latlong.test";
|
|
|
7
7
|
import * as i5 from "./numpad/testing/numpad.test";
|
|
8
8
|
import * as i6 from "./swipe/testing/swipe.test";
|
|
9
9
|
import * as i7 from "./chips/testing/chips.test";
|
|
10
|
-
import * as i8 from "./badge/badge
|
|
10
|
+
import * as i8 from "./badge/badge.test";
|
|
11
11
|
import * as i9 from "@angular/common";
|
|
12
12
|
import * as i10 from "@ionic/angular";
|
|
13
13
|
import * as i11 from "@angular/forms";
|
|
@@ -18,6 +18,6 @@ import * as i15 from "../pipes/pipes.module";
|
|
|
18
18
|
export declare const SHARED_MATERIAL_TESTING_PAGES: TestingPage[];
|
|
19
19
|
export declare class MaterialTestingModule {
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTestingModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialTestingModule, [typeof i1.DateTimeTestPage, typeof i2.DateTestPage, typeof i3.AutocompleteTestPage, typeof i4.LatLongTestPage, typeof i5.NumpadTestPage, typeof i6.SwipeTestPage, typeof i7.ChipsTestPage, typeof i8.
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialTestingModule, [typeof i1.DateTimeTestPage, typeof i2.DateTestPage, typeof i3.AutocompleteTestPage, typeof i4.LatLongTestPage, typeof i5.NumpadTestPage, typeof i6.SwipeTestPage, typeof i7.ChipsTestPage, typeof i8.MatBadgeTestPage], [typeof i9.CommonModule, typeof i10.IonicModule, typeof i11.ReactiveFormsModule, typeof i12.SharedMaterialModule, typeof i13.TranslateModule, typeof i14.RouterModule, typeof i15.SharedPipesModule], [typeof i12.SharedMaterialModule, typeof i14.RouterModule, typeof i1.DateTimeTestPage, typeof i2.DateTestPage, typeof i3.AutocompleteTestPage, typeof i4.LatLongTestPage, typeof i5.NumpadTestPage, typeof i6.SwipeTestPage, typeof i7.ChipsTestPage]>;
|
|
22
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialTestingModule>;
|
|
23
23
|
}
|
|
@@ -25,8 +25,13 @@ export declare class ArrayFirstPipe implements PipeTransform {
|
|
|
25
25
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayFirstPipe, "arrayFirst", false>;
|
|
26
26
|
}
|
|
27
27
|
export declare class ArrayPluckPipe implements PipeTransform {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param values
|
|
31
|
+
* @param opts property to get, or options
|
|
32
|
+
*/
|
|
33
|
+
transform<T>(values: T[], opts: string | string[] | {
|
|
34
|
+
property: string | string[];
|
|
30
35
|
omitNil?: boolean;
|
|
31
36
|
}): any[];
|
|
32
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayPluckPipe, never>;
|
|
@@ -42,3 +47,8 @@ export declare class ArrayFilterPipe implements PipeTransform {
|
|
|
42
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFilterPipe, never>;
|
|
43
48
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayFilterPipe, "arrayFilter", false>;
|
|
44
49
|
}
|
|
50
|
+
export declare class ArrayJoinPipe implements PipeTransform {
|
|
51
|
+
transform<T>(val: T[], separator: string): string;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayJoinPipe, never>;
|
|
53
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayJoinPipe, "arrayJoin", false>;
|
|
54
|
+
}
|
|
@@ -21,6 +21,6 @@ import * as i19 from "@ionic/angular";
|
|
|
21
21
|
import * as i20 from "@ngx-translate/core";
|
|
22
22
|
export declare class SharedPipesModule {
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i1.PropertyFormatPipe, typeof i17.MatColorPipe], [typeof i18.CommonModule, typeof i19.IonicModule, typeof i20.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i5.DateFromNowPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayPluckPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe]>;
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i1.PropertyFormatPipe, typeof i17.MatColorPipe], [typeof i18.CommonModule, typeof i19.IonicModule, typeof i20.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i2.DateFormatPipe, typeof i5.DateFromNowPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.ToStringPipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe]>;
|
|
25
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
|
|
26
26
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { FetchPolicy, WatchQueryFetchPolicy } from '@apollo/client/core';
|
|
3
3
|
import { SortDirection } from '@angular/material/sort';
|
|
4
|
-
import { OnDestroy } from '@angular/core';
|
|
5
4
|
import { EmptyObject } from 'apollo-angular/types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
5
|
export declare interface Page {
|
|
8
6
|
offset: number;
|
|
9
7
|
size: number;
|
|
@@ -63,12 +61,3 @@ export declare type LoadResultByPageFn<T> = (offset: number, size: number) => Pr
|
|
|
63
61
|
export interface IEntityFullService<T, ID, F, O extends EntitiesServiceWatchOptions & EntityServiceLoadOptions> extends IEntityService<T, ID, O>, IEntitiesService<T, F, O> {
|
|
64
62
|
}
|
|
65
63
|
export declare function mergeLoadResult<T>(res1: LoadResult<T>, res2: LoadResult<T>): LoadResult<T>;
|
|
66
|
-
export declare abstract class EntitiesService<T, F, O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions> implements IEntitiesService<T, F, O>, OnDestroy {
|
|
67
|
-
ngOnDestroy(): void;
|
|
68
|
-
abstract watchAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: Partial<F>, options?: O): Observable<LoadResult<T>>;
|
|
69
|
-
abstract saveAll(data: T[], options?: any): Promise<T[]>;
|
|
70
|
-
abstract deleteAll(data: T[], options?: any): Promise<any>;
|
|
71
|
-
abstract asFilter(filter: Partial<F>): F;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesService<any, any, any>, never>;
|
|
73
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EntitiesService<any, any, any>, never, never, {}, {}, never, never, false>;
|
|
74
|
-
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { EntitiesServiceLoadOptions, EntitiesServiceWatchOptions, FilterFn, FilterFnFactory, IEntitiesService, LoadResult } from './entity-service.class';
|
|
3
3
|
import { SortDirection } from '@angular/material/sort';
|
|
4
4
|
import { OnDestroy } from '@angular/core';
|
|
5
5
|
import { IEntity } from '../../core/services/model/entity.model';
|
|
6
|
+
import { WaitForOptions } from '../observables';
|
|
7
|
+
import { StartableObservableService } from './startable-observable-service.class';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
export interface InMemoryEntitiesServiceOptions<T, F> {
|
|
8
10
|
onSort?: (data: T[], sortBy?: string, sortDirection?: SortDirection) => T[];
|
|
@@ -15,14 +17,13 @@ export interface InMemoryEntitiesServiceOptions<T, F> {
|
|
|
15
17
|
[key: string]: string;
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
|
-
export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any, ID = number, O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions> extends
|
|
20
|
+
export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any, ID = number, O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions> extends StartableObservableService<T[], T[]> implements IEntitiesService<T, F, O>, OnDestroy {
|
|
19
21
|
protected dataType: new () => T;
|
|
20
22
|
protected filterType: new () => F;
|
|
21
23
|
debug: boolean;
|
|
22
|
-
dirty: boolean;
|
|
23
24
|
private _hiddenData;
|
|
24
|
-
|
|
25
|
-
private readonly
|
|
25
|
+
readonly dirtySubject: BehaviorSubject<boolean>;
|
|
26
|
+
private readonly savingSubject;
|
|
26
27
|
private readonly _sortFn;
|
|
27
28
|
private readonly _onLoad;
|
|
28
29
|
private readonly _onSaveFn;
|
|
@@ -31,7 +32,11 @@ export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any,
|
|
|
31
32
|
private readonly _sortByReplacement;
|
|
32
33
|
set value(data: T[]);
|
|
33
34
|
get value(): T[];
|
|
35
|
+
get saving(): boolean;
|
|
36
|
+
get dirty(): boolean;
|
|
34
37
|
constructor(dataType: new () => T, filterType: new () => F, options?: InMemoryEntitiesServiceOptions<T, F>);
|
|
38
|
+
protected ngOnStart(data?: T[]): Promise<T[]>;
|
|
39
|
+
protected ngOnStop(): Promise<void>;
|
|
35
40
|
ngOnDestroy(): void;
|
|
36
41
|
setValue(data: T[]): void;
|
|
37
42
|
loadAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: F, opts?: EntitiesServiceLoadOptions): Promise<LoadResult<T>>;
|
|
@@ -48,8 +53,12 @@ export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any,
|
|
|
48
53
|
*/
|
|
49
54
|
get count(): number;
|
|
50
55
|
get hiddenCount(): number;
|
|
56
|
+
waitIdle(opts?: WaitForOptions): Promise<void>;
|
|
57
|
+
markAsDirty(): void;
|
|
58
|
+
markAsPristine(): void;
|
|
51
59
|
protected filter(data: T[], _filter: F, hiddenData: T[]): T[];
|
|
52
60
|
protected connect(): Observable<LoadResult<T>>;
|
|
61
|
+
protected waitWhileSaving(opts?: WaitForOptions): Promise<void>;
|
|
53
62
|
protected markAsSaving(): void;
|
|
54
63
|
protected markAsSaved(): void;
|
|
55
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<InMemoryEntitiesService<any, any, any, any>, never>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
|
|
2
|
+
import { IStartableService } from './startable-service.class';
|
|
3
|
+
/**
|
|
4
|
+
* Same as StartableService, bu with a dataSubject instead of a simple 'data' property
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class StartableObservableService<T = any, O = any> implements IStartableService<T> {
|
|
7
|
+
readonly dataSubject: BehaviorSubject<T>;
|
|
8
|
+
readonly startSubject: Subject<T>;
|
|
9
|
+
readonly stopSubject: Subject<void>;
|
|
10
|
+
protected _debug: boolean;
|
|
11
|
+
protected _startByReadyFunction: boolean;
|
|
12
|
+
private _started;
|
|
13
|
+
private _startPromise;
|
|
14
|
+
private _startPrerequisite;
|
|
15
|
+
private _subscription;
|
|
16
|
+
protected constructor(prerequisiteService?: {
|
|
17
|
+
ready: () => Promise<any>;
|
|
18
|
+
});
|
|
19
|
+
start(opts?: O): Promise<T>;
|
|
20
|
+
ready(): Promise<T>;
|
|
21
|
+
stop(): Promise<void>;
|
|
22
|
+
restart(opts?: O): Promise<T>;
|
|
23
|
+
get started(): boolean;
|
|
24
|
+
get starting(): boolean;
|
|
25
|
+
get stopped(): boolean;
|
|
26
|
+
protected get data(): T;
|
|
27
|
+
protected set data(value: T);
|
|
28
|
+
protected registerSubscription(sub: Subscription): void;
|
|
29
|
+
protected unregisterSubscription(sub: Subscription): void;
|
|
30
|
+
protected unsubscribe(): void;
|
|
31
|
+
protected ngOnStop(): Promise<void> | void;
|
|
32
|
+
protected abstract ngOnStart(opts?: O): Promise<T>;
|
|
33
|
+
}
|
|
@@ -5,8 +5,9 @@ export interface IStartableService<T = any> {
|
|
|
5
5
|
stop(): Promise<void>;
|
|
6
6
|
ready(): Promise<T>;
|
|
7
7
|
}
|
|
8
|
-
export declare abstract class StartableService<T = any> implements IStartableService<T> {
|
|
9
|
-
|
|
8
|
+
export declare abstract class StartableService<T = any, O = any> implements IStartableService<T> {
|
|
9
|
+
readonly startSubject: Subject<T>;
|
|
10
|
+
readonly stopSubject: Subject<void>;
|
|
10
11
|
protected _debug: boolean;
|
|
11
12
|
protected _startByReadyFunction: boolean;
|
|
12
13
|
protected _data: T;
|
|
@@ -14,17 +15,19 @@ export declare abstract class StartableService<T = any> implements IStartableSer
|
|
|
14
15
|
private _startPromise;
|
|
15
16
|
private _startPrerequisite;
|
|
16
17
|
private _subscription;
|
|
17
|
-
protected constructor(prerequisiteService
|
|
18
|
+
protected constructor(prerequisiteService?: {
|
|
18
19
|
ready: () => Promise<any>;
|
|
19
20
|
});
|
|
20
|
-
start(): Promise<T>;
|
|
21
|
+
start(opts?: O): Promise<T>;
|
|
22
|
+
ready(): Promise<T>;
|
|
21
23
|
stop(): Promise<void>;
|
|
22
|
-
restart(): Promise<T>;
|
|
24
|
+
restart(opts?: O): Promise<T>;
|
|
23
25
|
get started(): boolean;
|
|
24
26
|
get starting(): boolean;
|
|
25
|
-
|
|
26
|
-
protected registerSubscription(sub: Subscription):
|
|
27
|
+
get stopped(): boolean;
|
|
28
|
+
protected registerSubscription(sub: Subscription): void;
|
|
27
29
|
protected unregisterSubscription(sub: Subscription): void;
|
|
28
|
-
protected
|
|
29
|
-
protected
|
|
30
|
+
protected unsubscribe(): void;
|
|
31
|
+
protected ngOnStop(): Promise<void> | void;
|
|
32
|
+
protected abstract ngOnStart(opts?: O): Promise<T>;
|
|
30
33
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
2
|
import { ShowToastOptions } from './toasts';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class ToastTestingPage {
|
|
6
|
-
private
|
|
7
|
-
private translate;
|
|
5
|
+
private injector;
|
|
8
6
|
readonly defaultOptions: ShowToastOptions;
|
|
9
|
-
constructor(
|
|
7
|
+
constructor(injector: Injector);
|
|
10
8
|
showToast(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
11
9
|
showInfo(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
12
10
|
showWarning(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ToastController } from '@ionic/angular';
|
|
1
|
+
import { AnimationController, ToastController } from '@ionic/angular';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { OverlayEventDetail, ToastOptions } from '@ionic/core';
|
|
3
|
+
import { AnimationBuilder, OverlayEventDetail, ToastOptions } from '@ionic/core';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare interface ShowToastOptions extends ToastOptions {
|
|
5
6
|
type?: 'error' | 'warning' | 'info';
|
|
6
7
|
messageParams?: any;
|
|
@@ -10,5 +11,7 @@ export declare interface ShowToastOptions extends ToastOptions {
|
|
|
10
11
|
export declare class Toasts {
|
|
11
12
|
static counter: number;
|
|
12
13
|
static stackSize: number;
|
|
14
|
+
static showSimple<T = any>(injector: Injector, opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
13
15
|
static show<T = any>(toastController: ToastController, translate: TranslateService, opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
16
|
+
static createEnterAnimation(animationCtrl: AnimationController, currentOffset: number, opts: ShowToastOptions): AnimationBuilder;
|
|
14
17
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./progression/job-progression.
|
|
2
|
+
import * as i1 from "./progression/job-progression.icon";
|
|
3
3
|
import * as i2 from "./progression/job-progression.list";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "../../shared/shared.module";
|
|
6
6
|
import * as i5 from "@ngx-translate/core";
|
|
7
7
|
export declare class JobModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<JobModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<JobModule, [typeof i1.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<JobModule, [typeof i1.JobProgressionIcon, typeof i2.JobProgressionList], [typeof i3.CommonModule, typeof i4.SharedModule, typeof i5.TranslateModule], [typeof i1.JobProgressionIcon]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<JobModule>;
|
|
11
11
|
}
|
|
@@ -4,10 +4,13 @@ import { BaseGraphqlService } from '../../core/services/base-graphql-service.cla
|
|
|
4
4
|
import { GraphqlService } from '../../core/graphql/graphql.service';
|
|
5
5
|
import { Environment } from '../../../environments/environment.class';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
-
import { FetchPolicy } from '@apollo/client/core';
|
|
7
|
+
import { FetchPolicy, WatchQueryFetchPolicy } from '@apollo/client/core';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const APP_JOB_PROGRESSION_SERVICE: InjectionToken<JobProgressionService>;
|
|
10
10
|
export interface IJobProgressionService {
|
|
11
|
+
watchAll(): Observable<JobProgression[]>;
|
|
12
|
+
addJob(id: number, job?: JobProgression): any;
|
|
13
|
+
removeJob(id: number): any;
|
|
11
14
|
listenChanges(id: number, options?: {
|
|
12
15
|
interval?: number;
|
|
13
16
|
fetchPolicy?: FetchPolicy;
|
|
@@ -17,6 +20,11 @@ export declare class JobProgressionService extends BaseGraphqlService<JobProgres
|
|
|
17
20
|
protected graphql: GraphqlService;
|
|
18
21
|
protected environment: Environment;
|
|
19
22
|
constructor(graphql: GraphqlService, environment: Environment);
|
|
23
|
+
watchAll(options?: {
|
|
24
|
+
fetchPolicy?: WatchQueryFetchPolicy;
|
|
25
|
+
}): Observable<JobProgression[]>;
|
|
26
|
+
addJob(id: number, job?: JobProgression): void;
|
|
27
|
+
removeJob(id: number): void;
|
|
20
28
|
listenChanges(id: number, options?: {
|
|
21
29
|
interval?: number;
|
|
22
30
|
fetchPolicy?: FetchPolicy;
|