@sumaris-net/ngx-components 4.0.0-rc8 → 18.0.0-rc1
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 +5 -3
- package/doc/changelog.md +522 -280
- package/esm2022/public_api.mjs +38 -19
- package/esm2022/src/app/admin/admin-routing.module.mjs +10 -17
- package/esm2022/src/app/admin/admin.module.mjs +7 -9
- package/esm2022/src/app/admin/services/filter/person.filter.mjs +3 -3
- package/esm2022/src/app/admin/services/person.service.mjs +31 -31
- package/esm2022/src/app/admin/services/validator/person.validator.mjs +10 -10
- package/esm2022/src/app/admin/users/users.mjs +22 -19
- package/esm2022/src/app/admin/users/users.module.mjs +8 -10
- package/esm2022/src/app/core/about/about.modal.mjs +7 -7
- package/esm2022/src/app/core/about/about.module.mjs +8 -21
- package/esm2022/src/app/core/account/account.module.mjs +28 -18
- package/esm2022/src/app/core/account/account.page.mjs +19 -5
- package/esm2022/src/app/core/account/new-token.form.mjs +106 -0
- package/esm2022/src/app/core/account/new-token.modal.mjs +27 -86
- package/esm2022/src/app/core/account/password/change-password.form.mjs +60 -0
- package/esm2022/src/app/core/account/password/change-password.module.mjs +22 -0
- package/esm2022/src/app/core/account/password/change-password.page.mjs +144 -0
- package/esm2022/src/app/core/account/token.table.mjs +47 -35
- package/esm2022/src/app/core/auth/auth.form.mjs +47 -28
- package/esm2022/src/app/core/auth/auth.modal.mjs +6 -6
- package/esm2022/src/app/core/auth/auth.module.mjs +22 -13
- package/esm2022/src/app/core/auth/reset-password.modal.mjs +77 -0
- package/esm2022/src/app/core/core.module.mjs +28 -61
- package/esm2022/src/app/core/core.testing.module.mjs +34 -20
- package/esm2022/src/app/core/form/array/form-array.mjs +325 -0
- package/esm2022/src/app/core/form/array/testing/form-array-test.module.mjs +23 -0
- package/esm2022/src/app/core/form/array/testing/form-array.test.mjs +94 -0
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.component.mjs +24 -25
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.module.mjs +9 -13
- package/esm2022/src/app/core/form/entity/editor.class.mjs +64 -517
- package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +26 -42
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +42 -41
- package/esm2022/src/app/core/form/entity/entity-metadata.component.mjs +5 -5
- package/esm2022/src/app/core/form/entity/entity.module.mjs +8 -14
- package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +194 -0
- package/esm2022/src/app/core/form/form-container.class.mjs +327 -0
- package/esm2022/src/app/core/form/form.class.mjs +39 -56
- package/esm2022/src/app/core/form/form.module.mjs +14 -10
- package/esm2022/src/app/core/form/form.utils.mjs +23 -306
- package/esm2022/src/app/core/form/list/list.form.mjs +16 -14
- package/esm2022/src/app/core/form/list/list.module.mjs +8 -12
- package/esm2022/src/app/core/form/properties/properties.form.mjs +139 -57
- package/esm2022/src/app/core/form/properties/properties.module.mjs +9 -15
- package/esm2022/src/app/core/form/properties/properties.table.mjs +27 -28
- package/esm2022/src/app/core/form/properties/properties.utils.mjs +60 -0
- package/esm2022/src/app/core/form/properties/property.validator.mjs +23 -9
- package/esm2022/src/app/core/form/properties/testing/properties-form.test.mjs +18 -18
- package/esm2022/src/app/core/form/properties/testing/properties-form.testing.module.mjs +8 -24
- package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.mjs +15 -15
- package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +10 -25
- package/esm2022/src/app/core/form/text-popover/text-popover.component.mjs +7 -7
- package/esm2022/src/app/core/form/text-popover/text-popover.module.mjs +9 -13
- package/esm2022/src/app/core/form/username/username.form.mjs +52 -0
- package/esm2022/src/app/core/form/username/username.module.mjs +20 -0
- package/esm2022/src/app/core/graphql/graphql.module.mjs +8 -16
- package/esm2022/src/app/core/graphql/graphql.service.mjs +101 -109
- package/esm2022/src/app/core/graphql/graphql.utils.mjs +12 -11
- package/esm2022/src/app/core/home/home.mjs +81 -52
- package/esm2022/src/app/core/home/home.module.mjs +10 -19
- package/esm2022/src/app/core/icon/icon.component.mjs +5 -5
- package/esm2022/src/app/core/icon/icon.module.mjs +8 -17
- package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +33 -37
- package/esm2022/src/app/core/install/install-upgrade-card.module.mjs +9 -13
- package/esm2022/src/app/core/menu/menu.component.mjs +5 -6
- package/esm2022/src/app/core/menu/menu.model.mjs +21 -18
- package/esm2022/src/app/core/menu/menu.module.mjs +7 -12
- package/esm2022/src/app/core/menu/menu.service.mjs +44 -60
- package/esm2022/src/app/core/menu/sub-menu-tab.directive.mjs +4 -4
- package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +7 -6
- package/esm2022/src/app/core/menu/testing/menu.testing.mjs +43 -8
- package/esm2022/src/app/core/menu/testing/menu.testing.module.mjs +8 -27
- package/esm2022/src/app/core/offline/update-offline-mode-card.component.mjs +6 -7
- package/esm2022/src/app/core/offline/update-offline-mode-card.module.mjs +9 -13
- package/esm2022/src/app/core/peer/select-peer.modal.mjs +31 -21
- package/esm2022/src/app/core/peer/select-peer.module.mjs +11 -23
- package/esm2022/src/app/core/register/register-confirm.page.mjs +18 -16
- package/esm2022/src/app/core/register/register.form.mjs +7 -7
- package/esm2022/src/app/core/register/register.modal.mjs +6 -6
- package/esm2022/src/app/core/register/register.module.mjs +8 -29
- package/esm2022/src/app/core/services/account.service.mjs +272 -170
- package/esm2022/src/app/core/services/auth-guard.service.mjs +13 -15
- package/esm2022/src/app/core/services/base-entity-service.class.mjs +55 -64
- package/esm2022/src/app/core/services/base-graphql-service.class.mjs +39 -33
- package/esm2022/src/app/core/services/base58.mjs +8 -4
- package/esm2022/src/app/core/services/config/core.config.mjs +88 -37
- package/esm2022/src/app/core/services/config.service.mjs +81 -62
- package/esm2022/src/app/core/services/crypto.service.mjs +11 -11
- package/esm2022/src/app/core/services/errors.mjs +6 -5
- package/esm2022/src/app/core/services/local-settings.service.mjs +58 -44
- package/esm2022/src/app/core/services/model/account.model.mjs +12 -17
- package/esm2022/src/app/core/services/model/config.model.mjs +7 -7
- package/esm2022/src/app/core/services/model/department.model.mjs +3 -2
- package/esm2022/src/app/core/services/model/entity.decorators.mjs +6 -6
- package/esm2022/src/app/core/services/model/entity.model.mjs +27 -31
- package/esm2022/src/app/core/services/model/filter.model.mjs +12 -15
- package/esm2022/src/app/core/services/model/history.model.mjs +1 -1
- package/esm2022/src/app/core/services/model/model.enum.mjs +2 -2
- package/esm2022/src/app/core/services/model/peer.model.mjs +19 -9
- package/esm2022/src/app/core/services/model/person.model.mjs +26 -22
- package/esm2022/src/app/core/services/model/referential.model.mjs +36 -23
- package/esm2022/src/app/core/services/model/settings.model.mjs +2 -1
- package/esm2022/src/app/core/services/model/token.model.mjs +7 -3
- package/esm2022/src/app/core/services/model/tree-item-entity.model.mjs +3 -7
- package/esm2022/src/app/core/services/network.service.mjs +99 -76
- package/esm2022/src/app/core/services/network.types.mjs +1 -1
- package/esm2022/src/app/core/services/network.utils.mjs +3 -3
- package/esm2022/src/app/core/services/pipes/account.pipes.mjs +11 -11
- package/esm2022/src/app/core/services/pipes/department-to-string.pipe.mjs +6 -6
- package/esm2022/src/app/core/services/pipes/person-to-string.pipe.mjs +9 -9
- package/esm2022/src/app/core/services/pipes/pipes.module.mjs +54 -0
- package/esm2022/src/app/core/services/pipes/referential-to-string.pipe.mjs +21 -0
- package/esm2022/src/app/core/services/pipes/usage-mode.pipes.mjs +11 -11
- package/esm2022/src/app/core/services/platform.service.mjs +102 -69
- package/esm2022/src/app/core/services/storage/entities-storage.service.mjs +32 -39
- package/esm2022/src/app/core/services/storage/entity-store.class.mjs +36 -45
- package/esm2022/src/app/core/services/testing/referential-filter.model.mjs +1 -1
- package/esm2022/src/app/core/services/testing/referential.validator.mjs +14 -14
- package/esm2022/src/app/core/services/validator/account.validator.mjs +5 -5
- package/esm2022/src/app/core/services/validator/base.validator.class.mjs +5 -5
- package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +34 -20
- package/esm2022/src/app/core/services/validator/user-settings.validator.mjs +5 -5
- package/esm2022/src/app/core/services/validator/user-token.validator.mjs +12 -9
- package/esm2022/src/app/core/settings/settings.module.mjs +9 -21
- package/esm2022/src/app/core/settings/settings.page.mjs +76 -63
- package/esm2022/src/app/core/table/async-table.class.mjs +219 -201
- package/esm2022/src/app/core/table/column/actions-column.component.mjs +127 -0
- package/esm2022/src/app/core/table/column/nav-actions-column.component.mjs +117 -0
- package/esm2022/src/app/core/table/column/row-field.component.mjs +116 -0
- package/esm2022/src/app/core/table/entities-async-table-datasource.class.mjs +31 -33
- package/esm2022/src/app/core/table/entities-table-datasource.class.mjs +36 -36
- package/esm2022/src/app/core/table/memory-table.class.mjs +5 -5
- package/esm2022/src/app/core/table/table-select-columns.component.mjs +8 -8
- package/esm2022/src/app/core/table/table.class.mjs +193 -152
- package/esm2022/src/app/core/table/table.model.mjs +1 -1
- package/esm2022/src/app/core/table/table.module.mjs +35 -24
- package/esm2022/src/app/core/table/table.pipes.mjs +77 -0
- package/esm2022/src/app/core/table/table.utils.mjs +2 -4
- package/esm2022/src/app/core/table/testing/table-validator.service.mjs +9 -5
- package/esm2022/src/app/core/table/testing/table.testing.mjs +116 -78
- package/esm2022/src/app/core/table/testing/table.testing.module.mjs +8 -33
- package/esm2022/src/app/core/table/testing/table2-validator.service.mjs +4 -4
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +68 -45
- package/esm2022/src/app/shared/alerts.mjs +49 -45
- package/esm2022/src/app/shared/audio/audio.mjs +25 -27
- package/esm2022/src/app/shared/audio/audio.testing.mjs +5 -5
- package/esm2022/src/app/shared/audio/audio.testing.module.mjs +10 -25
- package/esm2022/src/app/shared/capacitor/keyboard.mjs +5 -5
- package/esm2022/src/app/shared/capacitor/plugins.mjs +1 -1
- package/esm2022/src/app/shared/constants.mjs +9 -4
- package/esm2022/src/app/shared/dates.mjs +18 -16
- package/esm2022/src/app/shared/debug/debug-service.class.mjs +1 -1
- package/esm2022/src/app/shared/debug/debug.component.mjs +5 -5
- package/esm2022/src/app/shared/debug/debug.module.mjs +8 -29
- package/esm2022/src/app/shared/directives/autofocus.directive.mjs +8 -15
- package/esm2022/src/app/shared/directives/autotitle.directive.mjs +4 -4
- package/esm2022/src/app/shared/directives/directives.module.mjs +8 -29
- package/esm2022/src/app/shared/directives/drag-and-drop.directive.mjs +4 -4
- package/esm2022/src/app/shared/directives/ng-var.directive.mjs +4 -4
- package/esm2022/src/app/shared/directives/resizable/resizable.component.mjs +4 -4
- package/esm2022/src/app/shared/directives/resizable/resizable.directive.mjs +4 -4
- package/esm2022/src/app/shared/directives/resizable/resizable.module.mjs +4 -4
- package/esm2022/src/app/shared/events.mjs +6 -8
- package/esm2022/src/app/shared/file/csv.utils.mjs +38 -18
- package/esm2022/src/app/shared/file/file.service.mjs +11 -15
- package/esm2022/src/app/shared/file/file.utils.mjs +13 -11
- package/esm2022/src/app/shared/file/images.utils.mjs +29 -4
- package/esm2022/src/app/shared/file/json.utils.mjs +11 -4
- package/esm2022/src/app/shared/file/uri.utils.mjs +1 -1
- package/esm2022/src/app/shared/focusable.mjs +1 -1
- package/esm2022/src/app/shared/form/field.component.mjs +69 -43
- package/esm2022/src/app/shared/form/field.model.mjs +4 -4
- package/esm2022/src/app/shared/form/loading-spinner.mjs +5 -5
- package/esm2022/src/app/shared/forms.mjs +116 -43
- package/esm2022/src/app/shared/functions.mjs +139 -71
- package/esm2022/src/app/shared/geolocation/geolocation.utils.mjs +14 -14
- package/esm2022/src/app/shared/gesture/gesture-config.mjs +10 -10
- package/esm2022/src/app/shared/gesture/hammer.utils.mjs +1 -1
- package/esm2022/src/app/shared/graph/colors.utils.mjs +14 -18
- package/esm2022/src/app/shared/graph/graph-colors.mjs +23 -29
- package/esm2022/src/app/shared/guard/component-dirty.guard.mjs +4 -4
- package/esm2022/src/app/shared/help/help.modal.mjs +6 -6
- package/esm2022/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +5 -5
- package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +44 -17
- package/esm2022/src/app/shared/hotkeys/shared-hotkeys.module.mjs +9 -27
- package/esm2022/src/app/shared/http/http.utils.mjs +15 -11
- package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +27 -27
- package/esm2022/src/app/shared/image/gallery/image-gallery.module.mjs +13 -10
- package/esm2022/src/app/shared/image/gallery/testing/gallegry.model.testing.mjs +1 -1
- package/esm2022/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +14 -17
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +9 -13
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +14 -11
- package/esm2022/src/app/shared/image/image.model.mjs +1 -1
- package/esm2022/src/app/shared/image/image.module.mjs +8 -13
- package/esm2022/src/app/shared/image/image.service.mjs +14 -12
- package/esm2022/src/app/shared/inputs.mjs +52 -20
- package/esm2022/src/app/shared/interceptors/progess.interceptor.mjs +2 -3
- package/esm2022/src/app/shared/logging/log-level.model.mjs +1 -1
- package/esm2022/src/app/shared/logging/logger.model.mjs +2 -2
- package/esm2022/src/app/shared/logging/logging-service.class.mjs +17 -20
- package/esm2022/src/app/shared/logging/logging-service.module.mjs +6 -6
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.config.mjs +7 -10
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +348 -238
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +13 -16
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.utils.mjs +5 -4
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +51 -37
- package/esm2022/src/app/shared/material/badge/badge.directive.mjs +99 -57
- package/esm2022/src/app/shared/material/badge/badge.module.mjs +8 -20
- package/esm2022/src/app/shared/material/badge/badge.test.mjs +5 -5
- package/esm2022/src/app/shared/material/boolean/boolean.module.mjs +19 -20
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +209 -104
- package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +15 -8
- package/esm2022/src/app/shared/material/chips/chips.module.mjs +12 -13
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +228 -168
- package/esm2022/src/app/shared/material/chips/testing/chips.test.mjs +20 -21
- package/esm2022/src/app/shared/material/datetime/datetime.module.mjs +12 -27
- package/esm2022/src/app/shared/material/datetime/material.date.mjs +167 -92
- package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +128 -77
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +297 -165
- package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +34 -30
- package/esm2022/src/app/shared/material/datetime/testing/mat-date.test.mjs +31 -27
- package/esm2022/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +26 -23
- package/esm2022/src/app/shared/material/duration/duration.module.mjs +11 -16
- package/esm2022/src/app/shared/material/duration/duration.utils.mjs +3 -6
- package/esm2022/src/app/shared/material/duration/material.duration.mjs +35 -34
- package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +23 -22
- package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +217 -170
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +182 -241
- package/esm2022/src/app/shared/material/latlong/material.latlong.module.mjs +10 -15
- package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +19 -14
- package/esm2022/src/app/shared/material/material.animations.mjs +22 -22
- package/esm2022/src/app/shared/material/material.config.mjs +3 -0
- package/esm2022/src/app/shared/material/material.module.mjs +16 -16
- package/esm2022/src/app/shared/material/material.testing.module.mjs +50 -37
- package/esm2022/src/app/shared/material/paginator/material.paginator-i18n.mjs +12 -9
- package/esm2022/src/app/shared/material/stepper/material.stepper-i18n.mjs +4 -4
- package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +26 -19
- package/esm2022/src/app/shared/material/swipe/swipe.module.mjs +7 -11
- package/esm2022/src/app/shared/material/swipe/testing/swipe.test.mjs +8 -8
- package/esm2022/src/app/shared/material/testing/common.test.mjs +30 -24
- package/esm2022/src/app/shared/material/text/testing/text-form.testing.mjs +30 -19
- package/esm2022/src/app/shared/material/text/text-form.component.mjs +128 -21
- package/esm2022/src/app/shared/material/text/text-form.module.mjs +8 -8
- package/esm2022/src/app/shared/modules.mjs +1 -1
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +118 -37
- package/esm2022/src/app/shared/named-filter/named-filter.model.mjs +1 -1
- package/esm2022/src/app/shared/named-filter/named-filter.module.mjs +5 -5
- package/esm2022/src/app/shared/named-filter/named-filter.service.mjs +8 -8
- package/esm2022/src/app/shared/named-filter/testing/named-filter-selector.testing.mjs +74 -0
- package/esm2022/src/app/shared/named-filter/testing/named-filter.testing.module.mjs +28 -0
- package/esm2022/src/app/shared/observables.mjs +14 -18
- package/esm2022/src/app/shared/pipes/arrays.pipe.mjs +53 -38
- package/esm2022/src/app/shared/pipes/badge.pipes.mjs +24 -0
- package/esm2022/src/app/shared/pipes/colors.pipe.mjs +8 -6
- package/esm2022/src/app/shared/pipes/date-diff-duration.pipe.mjs +8 -10
- package/esm2022/src/app/shared/pipes/date-format.pipe.mjs +15 -15
- package/esm2022/src/app/shared/pipes/date-from-now.pipe.mjs +6 -6
- package/esm2022/src/app/shared/pipes/duration.pipe.mjs +6 -6
- package/esm2022/src/app/shared/pipes/file-size.pipe.mjs +6 -13
- package/esm2022/src/app/shared/pipes/form.pipes.mjs +72 -47
- package/esm2022/src/app/shared/pipes/highlight.pipe.mjs +15 -15
- package/esm2022/src/app/shared/pipes/html.pipes.mjs +52 -0
- package/esm2022/src/app/shared/pipes/latlong-format.pipe.mjs +14 -14
- package/esm2022/src/app/shared/pipes/maps.pipe.mjs +17 -17
- package/esm2022/src/app/shared/pipes/maskito.pipe.mjs +37 -88
- package/esm2022/src/app/shared/pipes/math.pipes.mjs +16 -16
- package/esm2022/src/app/shared/pipes/ng-init.pipe.mjs +5 -5
- package/esm2022/src/app/shared/pipes/number-format.pipe.mjs +6 -6
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +117 -137
- package/esm2022/src/app/shared/pipes/property.pipes.mjs +86 -47
- package/esm2022/src/app/shared/pipes/selection.pipes.mjs +179 -0
- package/esm2022/src/app/shared/pipes/string.pipes.mjs +50 -49
- package/esm2022/src/app/shared/pipes/translate-context.pipe.mjs +11 -11
- package/esm2022/src/app/shared/pipes/types.pipes.mjs +33 -17
- package/esm2022/src/app/shared/platforms.mjs +7 -5
- package/esm2022/src/app/shared/rx-state.module.mjs +7 -11
- package/esm2022/src/app/shared/services/entity-service.class.mjs +2 -2
- package/esm2022/src/app/shared/services/job.utils.mjs +7 -7
- package/esm2022/src/app/shared/services/memory-entity-service.class.mjs +43 -41
- package/esm2022/src/app/shared/services/progress-bar.service.mjs +4 -4
- package/esm2022/src/app/shared/services/startable-observable-service.class.mjs +11 -14
- package/esm2022/src/app/shared/services/startable-service.class.mjs +11 -17
- package/esm2022/src/app/shared/services/translate-context.service.mjs +18 -15
- package/esm2022/src/app/shared/services/validator-service.class.mjs +1 -1
- package/esm2022/src/app/shared/services.mjs +12 -12
- package/esm2022/src/app/shared/shared-routing.module.mjs +19 -18
- package/esm2022/src/app/shared/shared.module.mjs +29 -28
- package/esm2022/src/app/shared/shared.testing.module.mjs +18 -10
- package/esm2022/src/app/shared/storage/storage-explorer.component.mjs +39 -46
- package/esm2022/src/app/shared/storage/storage-explorer.module.mjs +8 -12
- package/esm2022/src/app/shared/storage/storage-explorer.testing-routing.module.mjs +9 -17
- package/esm2022/src/app/shared/storage/storage-explorer.testing.module.mjs +10 -18
- package/esm2022/src/app/shared/storage/storage.service.mjs +4 -4
- package/esm2022/src/app/shared/storage/storage.utils.mjs +2 -2
- package/esm2022/src/app/shared/testing/maskito.test.mjs +41 -0
- package/esm2022/src/app/shared/testing/observable.test.mjs +11 -13
- package/esm2022/src/app/shared/testing/tests.page.mjs +6 -6
- package/esm2022/src/app/shared/toast/toast.testing.mjs +11 -11
- package/esm2022/src/app/shared/toast/toast.testing.module.mjs +10 -25
- package/esm2022/src/app/shared/toast/toasts.mjs +9 -9
- package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +10 -8
- package/esm2022/src/app/shared/toolbar/toolbar.mjs +31 -32
- package/esm2022/src/app/shared/toolbar/toolbar.module.mjs +8 -39
- package/esm2022/src/app/shared/types.mjs +1 -1
- package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.mjs +12 -12
- package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +10 -25
- package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +7 -8
- package/esm2022/src/app/shared/upload-file/upload-file.component.mjs +21 -19
- package/esm2022/src/app/shared/upload-file/upload-file.model.mjs +2 -3
- package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +64 -56
- package/esm2022/src/app/shared/validator/validators.mjs +60 -39
- package/esm2022/src/app/shared/version/versions.mjs +2 -2
- package/esm2022/src/app/social/job/job.module.mjs +8 -27
- package/esm2022/src/app/social/job/progression/job-progression.component.mjs +9 -9
- package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +49 -46
- package/esm2022/src/app/social/job/progression/job-progression.list.mjs +10 -13
- package/esm2022/src/app/social/job/progression/job-progression.model.mjs +1 -1
- package/esm2022/src/app/social/job/progression/job-progression.service.mjs +39 -21
- package/esm2022/src/app/social/job/testing/job-progression.testing.mjs +6 -11
- package/esm2022/src/app/social/job/testing/job-progression.testing.service.mjs +11 -30
- package/esm2022/src/app/social/job/testing/job.testing.module.mjs +8 -21
- package/esm2022/src/app/social/message/message.form.mjs +5 -5
- package/esm2022/src/app/social/message/message.modal.mjs +8 -8
- package/esm2022/src/app/social/message/message.model.mjs +8 -8
- package/esm2022/src/app/social/message/message.module.mjs +4 -4
- package/esm2022/src/app/social/message/message.service.mjs +7 -7
- package/esm2022/src/app/social/social.errors.mjs +2 -2
- package/esm2022/src/app/social/social.module.mjs +7 -32
- package/esm2022/src/app/social/social.testing.module.mjs +9 -20
- package/esm2022/src/app/social/user-event/notification/user-event-notification.icon.mjs +27 -23
- package/esm2022/src/app/social/user-event/notification/user-event-notification.list.mjs +19 -22
- package/esm2022/src/app/social/user-event/testing/user-event.testing.mjs +47 -23
- package/esm2022/src/app/social/user-event/testing/user-event.testing.model.mjs +8 -8
- package/esm2022/src/app/social/user-event/testing/user-event.testing.module.mjs +8 -21
- package/esm2022/src/app/social/user-event/testing/user-event.testing.service.mjs +27 -15
- package/esm2022/src/app/social/user-event/user-event.model.mjs +1 -1
- package/esm2022/src/app/social/user-event/user-event.module.mjs +8 -28
- package/esm2022/src/app/social/user-event/user-event.service.mjs +61 -64
- package/esm2022/src/environments/environment.class.mjs +9 -1
- package/esm2022/src/environments/environment.loader.mjs +5 -11
- package/esm2022/src/environments/environment.mjs +19 -11
- package/fesm2022/sumaris-net.ngx-components.mjs +16117 -14592
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +36 -18
- package/public_api.d.ts +30 -22
- package/src/app/admin/services/filter/person.filter.d.ts +1 -1
- package/src/app/admin/users/users.d.ts +5 -6
- package/src/app/core/account/account.module.d.ts +10 -8
- package/src/app/core/account/account.page.d.ts +25 -15
- package/src/app/core/account/new-token.form.d.ts +29 -0
- package/src/app/core/account/new-token.modal.d.ts +9 -21
- package/src/app/core/account/password/change-password.form.d.ts +19 -0
- package/src/app/core/account/password/change-password.module.d.ts +11 -0
- package/src/app/core/account/password/change-password.page.d.ts +36 -0
- package/src/app/core/account/token.table.d.ts +7 -5
- package/src/app/core/auth/auth.form.d.ts +11 -9
- package/src/app/core/auth/auth.module.d.ts +6 -4
- package/src/app/core/auth/reset-password.modal.d.ts +26 -0
- package/src/app/core/core.module.d.ts +21 -24
- package/src/app/core/core.testing.module.d.ts +2 -1
- package/src/app/core/form/array/form-array.d.ts +136 -0
- package/src/app/core/form/array/testing/form-array-test.module.d.ts +12 -0
- package/src/app/core/form/array/testing/form-array.test.d.ts +26 -0
- package/src/app/core/form/buttons/form-buttons-bar.component.d.ts +2 -3
- package/src/app/core/form/entity/editor.class.d.ts +19 -179
- package/src/app/core/form/entity/entity-editor-modal.class.d.ts +10 -13
- package/src/app/core/form/entity/entity-editor.class.d.ts +12 -17
- package/src/app/core/form/entity/entity-metadata.component.d.ts +1 -1
- package/src/app/core/form/entity/tab-editor.class.d.ts +70 -0
- package/src/app/core/form/form-container.class.d.ts +126 -0
- package/src/app/core/form/form.class.d.ts +13 -26
- package/src/app/core/form/form.module.d.ts +2 -1
- package/src/app/core/form/form.utils.d.ts +60 -145
- package/src/app/core/form/list/list.form.d.ts +2 -2
- package/src/app/core/form/properties/properties.form.d.ts +34 -12
- package/src/app/core/form/properties/properties.table.d.ts +2 -2
- package/src/app/core/form/properties/properties.utils.d.ts +27 -0
- package/src/app/core/form/properties/property.validator.d.ts +9 -3
- package/src/app/core/form/text-popover/testing/text-popover.testing.d.ts +3 -1
- package/src/app/core/form/username/username.form.d.ts +19 -0
- package/src/app/core/form/username/username.module.d.ts +9 -0
- package/src/app/core/graphql/graphql.module.d.ts +1 -2
- package/src/app/core/graphql/graphql.service.d.ts +2 -4
- package/src/app/core/home/home.d.ts +26 -6
- package/src/app/core/menu/testing/menu-other.testing.d.ts +1 -1
- package/src/app/core/menu/testing/menu.testing.d.ts +11 -3
- package/src/app/core/peer/select-peer.modal.d.ts +13 -7
- package/src/app/core/peer/select-peer.module.d.ts +3 -4
- package/src/app/core/services/account.service.d.ts +9 -0
- package/src/app/core/services/base-entity-service.class.d.ts +1 -1
- package/src/app/core/services/config/core.config.d.ts +12 -1
- package/src/app/core/services/config.service.d.ts +4 -3
- package/src/app/core/services/errors.d.ts +11 -0
- package/src/app/core/services/local-settings.service.d.ts +8 -4
- package/src/app/core/services/model/entity.model.d.ts +6 -5
- package/src/app/core/services/model/filter.model.d.ts +1 -1
- package/src/app/core/services/model/peer.model.d.ts +1 -0
- package/src/app/core/services/model/person.model.d.ts +6 -2
- package/src/app/core/services/model/referential.model.d.ts +8 -3
- package/src/app/core/services/model/settings.model.d.ts +4 -2
- package/src/app/core/services/model/token.model.d.ts +1 -0
- package/src/app/core/services/model/tree-item-entity.model.d.ts +1 -1
- package/src/app/core/services/network.service.d.ts +11 -7
- package/src/app/core/services/pipes/department-to-string.pipe.d.ts +1 -1
- package/src/app/core/services/pipes/person-to-string.pipe.d.ts +3 -1
- package/src/app/core/services/pipes/pipes.module.d.ts +11 -0
- package/src/app/core/services/pipes/referential-to-string.pipe.d.ts +13 -0
- package/src/app/core/services/platform.service.d.ts +8 -3
- package/src/app/core/services/testing/referential-filter.model.d.ts +1 -1
- package/src/app/core/services/validator/local-settings.validator.d.ts +6 -2
- package/src/app/core/settings/settings.module.d.ts +2 -1
- package/src/app/core/settings/settings.page.d.ts +34 -21
- package/src/app/core/table/async-table.class.d.ts +22 -17
- package/src/app/core/table/column/actions-column.component.d.ts +59 -0
- package/src/app/core/table/column/nav-actions-column.component.d.ts +46 -0
- package/src/app/core/table/column/row-field.component.d.ts +40 -0
- package/src/app/core/table/entities-async-table-datasource.class.d.ts +1 -0
- package/src/app/core/table/entities-table-datasource.class.d.ts +1 -0
- package/src/app/core/table/table.class.d.ts +14 -11
- package/src/app/core/table/table.module.d.ts +8 -4
- package/src/app/core/table/table.pipes.d.ts +28 -0
- package/src/app/core/table/testing/table.testing.d.ts +12 -13
- package/src/app/core/table/testing/table2.testing.d.ts +13 -10
- package/src/app/shared/alerts.d.ts +4 -2
- package/src/app/shared/constants.d.ts +5 -0
- package/src/app/shared/dates.d.ts +12 -5
- package/src/app/shared/directives/autofocus.directive.d.ts +0 -1
- package/src/app/shared/events.d.ts +1 -1
- package/src/app/shared/file/csv.utils.d.ts +5 -0
- package/src/app/shared/file/images.utils.d.ts +17 -0
- package/src/app/shared/file/json.utils.d.ts +3 -0
- package/src/app/shared/form/field.component.d.ts +6 -3
- package/src/app/shared/forms.d.ts +32 -0
- package/src/app/shared/functions.d.ts +27 -8
- package/src/app/shared/graph/graph-colors.d.ts +1 -1
- package/src/app/shared/guard/component-dirty.guard.d.ts +1 -6
- package/src/app/shared/hotkeys/hotkeys.service.d.ts +17 -3
- package/src/app/shared/http/http.utils.d.ts +1 -0
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +10 -10
- package/src/app/shared/image/gallery/image-gallery.module.d.ts +2 -1
- package/src/app/shared/image/gallery/testing/gallery.service.testing.d.ts +2 -2
- package/src/app/shared/image/gallery/testing/gallery.testing.module.d.ts +2 -1
- package/src/app/shared/inputs.d.ts +8 -6
- package/src/app/shared/material/autocomplete/material.autocomplete.config.d.ts +20 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +56 -16
- package/src/app/shared/material/autocomplete/material.autocomplete.module.d.ts +1 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.utils.d.ts +2 -1
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +3 -2
- package/src/app/shared/material/badge/badge.directive.d.ts +10 -4
- package/src/app/shared/material/boolean/boolean.module.d.ts +15 -14
- package/src/app/shared/material/boolean/material.boolean.d.ts +51 -25
- package/src/app/shared/material/boolean/testing/boolean.test.page.d.ts +1 -0
- package/src/app/shared/material/chips/chips.module.d.ts +2 -1
- package/src/app/shared/material/chips/material.chips.d.ts +46 -21
- package/src/app/shared/material/chips/testing/chips.test.d.ts +1 -0
- package/src/app/shared/material/datetime/datetime.module.d.ts +1 -1
- package/src/app/shared/material/datetime/material.date.d.ts +33 -18
- package/src/app/shared/material/datetime/material.dateshort.d.ts +29 -16
- package/src/app/shared/material/datetime/material.datetime.d.ts +41 -28
- package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +3 -3
- package/src/app/shared/material/duration/duration.module.d.ts +1 -1
- package/src/app/shared/material/duration/material.duration.d.ts +1 -1
- package/src/app/shared/material/latlong/latlong.utils.d.ts +9 -1
- package/src/app/shared/material/latlong/material.latlong.d.ts +29 -32
- package/src/app/shared/material/latlong/material.latlong.module.d.ts +1 -1
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +5 -1
- package/src/app/shared/material/material.config.d.ts +3 -0
- package/src/app/shared/material/material.module.d.ts +5 -6
- package/src/app/shared/material/material.testing.module.d.ts +8 -7
- package/src/app/shared/material/swipe/material.swipe.d.ts +4 -3
- package/src/app/shared/material/text/testing/text-form.testing.d.ts +10 -4
- package/src/app/shared/material/text/text-form.component.d.ts +42 -8
- package/src/app/shared/named-filter/named-filter-selector.component.d.ts +30 -14
- package/src/app/shared/named-filter/named-filter.service.d.ts +12 -6
- package/src/app/shared/named-filter/testing/named-filter-selector.testing.d.ts +34 -0
- package/src/app/shared/named-filter/testing/named-filter.testing.module.d.ts +10 -0
- package/src/app/shared/pipes/arrays.pipe.d.ts +5 -0
- package/src/app/shared/pipes/badge.pipes.d.ts +7 -0
- package/src/app/shared/pipes/date-format.pipe.d.ts +3 -2
- package/src/app/shared/pipes/form.pipes.d.ts +18 -8
- package/src/app/shared/pipes/html.pipes.d.ts +15 -0
- package/src/app/shared/pipes/maps.pipe.d.ts +4 -4
- package/src/app/shared/pipes/maskito.pipe.d.ts +7 -9
- package/src/app/shared/pipes/pipes.module.d.ts +7 -4
- package/src/app/shared/pipes/property.pipes.d.ts +24 -3
- package/src/app/shared/pipes/selection.pipes.d.ts +62 -0
- package/src/app/shared/pipes/string.pipes.d.ts +6 -6
- package/src/app/shared/pipes/types.pipes.d.ts +6 -1
- package/src/app/shared/services/entity-service.class.d.ts +0 -2
- package/src/app/shared/services/memory-entity-service.class.d.ts +6 -3
- package/src/app/shared/services.d.ts +1 -0
- package/src/app/shared/shared.testing.module.d.ts +2 -1
- package/src/app/shared/storage/storage-explorer.component.d.ts +4 -3
- package/src/app/shared/testing/maskito.test.d.ts +10 -0
- package/src/app/shared/toolbar/toolbar.d.ts +7 -2
- package/src/app/shared/types.d.ts +5 -0
- package/src/app/shared/upload-file/upload-file.component.d.ts +1 -0
- package/src/app/shared/validator/form-error-adapter.class.d.ts +17 -11
- package/src/app/shared/validator/validators.d.ts +20 -9
- package/src/app/social/job/progression/job-progression.icon.d.ts +4 -5
- package/src/app/social/job/progression/job-progression.list.d.ts +1 -3
- package/src/app/social/job/progression/job-progression.service.d.ts +3 -4
- package/src/app/social/job/testing/job-progression.testing.d.ts +0 -1
- package/src/app/social/job/testing/job-progression.testing.service.d.ts +3 -11
- package/src/app/social/message/message.modal.d.ts +2 -2
- package/src/app/social/message/message.model.d.ts +1 -1
- package/src/app/social/user-event/notification/user-event-notification.icon.d.ts +4 -4
- package/src/app/social/user-event/testing/user-event.testing.d.ts +1 -0
- package/src/app/social/user-event/testing/user-event.testing.model.d.ts +2 -3
- package/src/app/social/user-event/testing/user-event.testing.service.d.ts +1 -0
- package/src/assets/i18n/en-US.json +48 -19
- package/src/assets/i18n/en.json +48 -20
- package/src/assets/i18n/fr.json +50 -20
- package/src/assets/manifest.json +1 -1
- package/src/environments/environment.class.d.ts +10 -0
- package/src/environments/environment.d.ts +0 -1
- package/src/environments/environment.loader.d.ts +0 -2
- package/src/theme/_functions.scss +15 -0
- package/src/theme/_icons.scss +1 -1
- package/src/theme/_ionic.globals.scss +8 -2
- package/src/theme/_ionic.scss +10 -10
- package/src/theme/_material.globals.scss +16 -43
- package/src/theme/_material.scss +45 -32
- package/src/theme/_mixins.scss +99 -18
- package/src/theme/_ngx-components.forms.scss +354 -0
- package/src/theme/_ngx-components.globals.scss +20 -10
- package/src/theme/_ngx-components.scss +194 -400
- package/src/theme/_ngx-components.table.scss +200 -207
- package/src/theme/_ngx-components.tabs.scss +54 -0
- package/src/theme/_responsive.scss +0 -31
- package/src/theme/_theme.scss +2 -0
- package/src/theme/_theme.variables.scss +172 -0
- package/esm2022/src/app/core/table/actions-column.component.mjs +0 -115
- package/esm2022/src/app/shared/material/boolean/material-boolean2.mjs +0 -266
- package/esm2022/src/app/shared/material/numpad/numpad.append-to-input.directive.mjs +0 -104
- package/esm2022/src/app/shared/material/numpad/numpad.component.mjs +0 -83
- package/esm2022/src/app/shared/material/numpad/numpad.container.mjs +0 -203
- package/esm2022/src/app/shared/material/numpad/numpad.content.mjs +0 -19
- package/esm2022/src/app/shared/material/numpad/numpad.directive.mjs +0 -168
- package/esm2022/src/app/shared/material/numpad/numpad.dom-service.mjs +0 -36
- package/esm2022/src/app/shared/material/numpad/numpad.model.mjs +0 -16
- package/esm2022/src/app/shared/material/numpad/numpad.module.mjs +0 -60
- package/esm2022/src/app/shared/material/numpad/testing/numpad.test.mjs +0 -48
- package/src/app/core/table/actions-column.component.d.ts +0 -48
- package/src/app/shared/material/boolean/material-boolean2.d.ts +0 -66
- package/src/app/shared/material/numpad/numpad.append-to-input.directive.d.ts +0 -22
- package/src/app/shared/material/numpad/numpad.component.d.ts +0 -26
- package/src/app/shared/material/numpad/numpad.container.d.ts +0 -40
- package/src/app/shared/material/numpad/numpad.content.d.ts +0 -7
- package/src/app/shared/material/numpad/numpad.directive.d.ts +0 -35
- package/src/app/shared/material/numpad/numpad.dom-service.d.ts +0 -16
- package/src/app/shared/material/numpad/numpad.model.d.ts +0 -30
- package/src/app/shared/material/numpad/numpad.module.d.ts +0 -16
- package/src/app/shared/material/numpad/testing/numpad.test.d.ts +0 -13
|
@@ -2,9 +2,9 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '
|
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { InputElement, selectInputContent } from '../../inputs';
|
|
5
|
-
import { DisplayFn, EqualsFn
|
|
5
|
+
import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
|
|
6
6
|
import { Swiper } from 'swiper/types';
|
|
7
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
7
|
+
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
8
8
|
import { MatButton } from '@angular/material/button';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, ControlValueAccessor {
|
|
@@ -29,6 +29,7 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
29
29
|
formControlName: string;
|
|
30
30
|
floatLabel: AppFloatLabelType;
|
|
31
31
|
appearance: MatFormFieldAppearance;
|
|
32
|
+
subscriptSizing: SubscriptSizing;
|
|
32
33
|
placeholder: string;
|
|
33
34
|
debug: boolean;
|
|
34
35
|
required: boolean;
|
|
@@ -85,5 +86,5 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
85
86
|
getSwiper(): Promise<Swiper>;
|
|
86
87
|
ready(): Promise<void>;
|
|
87
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSwipeField, [null, { optional: true; }]>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatSwipeField, "mat-swipe-field", never, { "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "equals": { "alias": "equals"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "appAutofocus": { "alias": "appAutofocus"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onClick": "click"; "blurred": "blur"; "focused": "focus"; }, never, never, false, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSwipeField, "mat-swipe-field", never, { "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "equals": { "alias": "equals"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "appAutofocus": { "alias": "appAutofocus"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onClick": "click"; "blurred": "blur"; "focused": "focus"; }, never, never, false, never>;
|
|
89
90
|
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { Validators } from '@angular/forms';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
|
3
3
|
import { TextForm } from '../text-form.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TextFormTestingPage implements AfterViewInit {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
protected formBuilder: UntypedFormBuilder;
|
|
7
|
+
standaloneTextForm1: TextForm;
|
|
8
|
+
standaloneTextForm2: TextForm;
|
|
9
|
+
form: UntypedFormGroup;
|
|
9
10
|
protected readonly Validators: typeof Validators;
|
|
11
|
+
stringify: {
|
|
12
|
+
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
13
|
+
(value: any, replacer?: (string | number)[], space?: string | number): string;
|
|
14
|
+
};
|
|
15
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
10
16
|
ngAfterViewInit(): void;
|
|
11
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextFormTestingPage, never>;
|
|
12
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextFormTestingPage, "text-form-testing", never, {}, {}, never, never, false, never>;
|
|
@@ -1,32 +1,66 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormBuilder, UntypedFormControl, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl, ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
4
4
|
import { AppForm } from '../../../core/form/form.class';
|
|
5
|
+
import { AppFloatLabelType } from '../../form/field.model';
|
|
6
|
+
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class TextForm extends AppForm<{
|
|
7
9
|
text: string;
|
|
8
|
-
}> implements OnInit {
|
|
10
|
+
}> implements OnInit, ControlValueAccessor {
|
|
9
11
|
protected injector: Injector;
|
|
10
12
|
protected cd: ChangeDetectorRef;
|
|
11
13
|
protected formBuilder: UntypedFormBuilder;
|
|
14
|
+
private formGroupDir;
|
|
12
15
|
showError: boolean;
|
|
13
16
|
placeholder: string;
|
|
14
17
|
multiline: boolean;
|
|
15
|
-
|
|
18
|
+
autoSize: boolean;
|
|
19
|
+
autoSizeMinRows: number;
|
|
20
|
+
autoSizeMaxRows: number;
|
|
16
21
|
maxLength: number;
|
|
17
22
|
autofocus: boolean;
|
|
18
23
|
validator: ValidatorFn;
|
|
24
|
+
standalone: boolean;
|
|
25
|
+
formControl: UntypedFormControl;
|
|
26
|
+
formControlName: string;
|
|
27
|
+
floatLabel: AppFloatLabelType;
|
|
28
|
+
appearance: MatFormFieldAppearance;
|
|
29
|
+
subscriptSizing: SubscriptSizing;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use autoSize instead
|
|
32
|
+
*/
|
|
33
|
+
set autoHeight(value: boolean);
|
|
34
|
+
get autoHeight(): boolean;
|
|
19
35
|
textAreaChanges: EventEmitter<string>;
|
|
20
36
|
textArea: ElementRef;
|
|
21
37
|
textInput: ElementRef;
|
|
22
38
|
autosizeDirective: CdkTextareaAutosize;
|
|
23
|
-
|
|
24
|
-
|
|
39
|
+
textControl: UntypedFormControl;
|
|
40
|
+
private _onChangeCallback;
|
|
41
|
+
private _onTouchedCallback;
|
|
42
|
+
constructor(injector: Injector, cd: ChangeDetectorRef, formBuilder: UntypedFormBuilder, formGroupDir: FormGroupDirective);
|
|
25
43
|
ngOnInit(): void;
|
|
26
|
-
textAreaChanged(event: KeyboardEvent): void;
|
|
27
44
|
containerResize(): void;
|
|
28
45
|
focusInput(): void;
|
|
46
|
+
registerOnChange(fn: any): void;
|
|
47
|
+
registerOnTouched(fn: any): void;
|
|
48
|
+
setDisabledState(isDisabled: boolean): void;
|
|
49
|
+
writeValue(value: any): void;
|
|
29
50
|
protected markForCheck(): void;
|
|
30
|
-
|
|
31
|
-
|
|
51
|
+
protected checkIfTouched(opts?: {
|
|
52
|
+
emitEvent?: boolean;
|
|
53
|
+
}): void;
|
|
54
|
+
private textFormValueChanged;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextForm, [null, null, null, { optional: true; }]>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextForm, "app-text-form", never, { "showError": { "alias": "showError"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "multiline": { "alias": "multiline"; "required": false; }; "autoSize": { "alias": "autoSize"; "required": false; }; "autoSizeMinRows": { "alias": "autoSizeMinRows"; "required": false; }; "autoSizeMaxRows": { "alias": "autoSizeMaxRows"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "validator": { "alias": "validator"; "required": false; }; "standalone": { "alias": "standalone"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "autoHeight": { "alias": "autoHeight"; "required": false; }; }, { "textAreaChanges": "textAreaChanges"; }, never, ["[matError]"], false, never>;
|
|
57
|
+
static ngAcceptInputType_showError: unknown;
|
|
58
|
+
static ngAcceptInputType_multiline: unknown;
|
|
59
|
+
static ngAcceptInputType_autoSize: unknown;
|
|
60
|
+
static ngAcceptInputType_autoSizeMinRows: unknown;
|
|
61
|
+
static ngAcceptInputType_autoSizeMaxRows: unknown;
|
|
62
|
+
static ngAcceptInputType_maxLength: unknown;
|
|
63
|
+
static ngAcceptInputType_autofocus: unknown;
|
|
64
|
+
static ngAcceptInputType_standalone: unknown;
|
|
65
|
+
static ngAcceptInputType_autoHeight: unknown;
|
|
32
66
|
}
|
|
@@ -2,43 +2,59 @@ import { ChangeDetectorRef, EventEmitter, Injector, OnInit } from '@angular/core
|
|
|
2
2
|
import { UntypedFormBuilder } from '@angular/forms';
|
|
3
3
|
import { PopoverController, ToastController } from '@ionic/angular';
|
|
4
4
|
import { AppForm } from '../../core/form/form.class';
|
|
5
|
-
import { INamedFilterService } from './named-filter.service';
|
|
6
5
|
import { MatAutocompleteField } from '../material/autocomplete/material.autocomplete';
|
|
7
|
-
import { INamedFilter, INamedFilterFilter, NamedFilter } from './named-filter.model';
|
|
8
6
|
import { MatAutocompleteFieldConfig } from '../material/autocomplete/material.autocomplete.config';
|
|
7
|
+
import { INamedFilter, INamedFilterFilter, NamedFilter } from './named-filter.model';
|
|
8
|
+
import { INamedFilterService, NamedFilterLoadOptions, NamedFilterWatchOptions } from './named-filter.service';
|
|
9
|
+
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
11
|
+
export type NamedFilterSelectorButtonsPosition = 'matSuffix' | 'after';
|
|
10
12
|
export declare class NamedFilterSelector extends AppForm<any> implements OnInit {
|
|
11
13
|
protected injector: Injector;
|
|
12
14
|
protected formBuilder: UntypedFormBuilder;
|
|
13
15
|
protected cd: ChangeDetectorRef;
|
|
14
16
|
protected toastController: ToastController;
|
|
15
17
|
protected popoverController: PopoverController;
|
|
16
|
-
protected dataService: INamedFilterService<INamedFilter<any>, INamedFilterFilter<any, any
|
|
17
|
-
protected logPrefix
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
protected dataService: INamedFilterService<INamedFilter<any>, INamedFilterFilter<any, any>, NamedFilterWatchOptions, NamedFilterLoadOptions>;
|
|
19
|
+
protected readonly logPrefix = "[named-filter-selector]";
|
|
20
|
+
private _entityName;
|
|
21
|
+
private _deleteDisabled;
|
|
22
|
+
mobile: boolean;
|
|
23
|
+
set entityName(entityName: string);
|
|
24
|
+
get entityName(): string;
|
|
25
|
+
appearance: MatFormFieldAppearance;
|
|
26
|
+
subscriptSizing: SubscriptSizing;
|
|
20
27
|
filterContentProvider: () => any;
|
|
21
28
|
filterImportCallback: (namedFilter: NamedFilter) => Promise<NamedFilter>;
|
|
22
29
|
filterFormDirty: boolean;
|
|
23
30
|
showButtons: boolean;
|
|
24
31
|
exportFileNamePrefix: string;
|
|
25
32
|
autocompleteConfig: MatAutocompleteFieldConfig;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
dropButtonTitle: string;
|
|
34
|
+
clearButtonTitle: string;
|
|
35
|
+
detectChangeOnSelectFilter: boolean;
|
|
36
|
+
buttonsPosition: NamedFilterSelectorButtonsPosition;
|
|
37
|
+
set disabled(_disabled: boolean);
|
|
38
|
+
get disabled(): boolean;
|
|
30
39
|
get isNew(): boolean;
|
|
31
40
|
get saveDisabled(): boolean;
|
|
32
41
|
get deleteDisabled(): boolean;
|
|
33
42
|
get dirty(): boolean;
|
|
43
|
+
filterSelected: EventEmitter<any>;
|
|
44
|
+
filterDeleted: EventEmitter<NamedFilter<NamedFilter<any>>>;
|
|
45
|
+
filterCleared: EventEmitter<void>;
|
|
46
|
+
autocompleteField: MatAutocompleteField;
|
|
47
|
+
constructor(injector: Injector, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, toastController: ToastController, popoverController: PopoverController, dataService: INamedFilterService<INamedFilter<any>, INamedFilterFilter<any, any>, NamedFilterWatchOptions, NamedFilterLoadOptions>);
|
|
34
48
|
ngOnInit(): void;
|
|
49
|
+
getFilter(): any;
|
|
35
50
|
markForCheck(): void;
|
|
36
|
-
save(): Promise<void>;
|
|
37
|
-
delete(): Promise<void>;
|
|
38
|
-
|
|
51
|
+
save(event: UIEvent): Promise<void>;
|
|
52
|
+
delete(event?: UIEvent): Promise<void>;
|
|
53
|
+
onMoreOptionsClick(event: Event): void;
|
|
54
|
+
export(event?: UIEvent): Promise<void>;
|
|
39
55
|
import(event: Event): Promise<void>;
|
|
40
56
|
protected onFilterChanges(value: NamedFilter | string): Promise<void>;
|
|
41
57
|
protected setControlValue(value: NamedFilter): void;
|
|
42
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<NamedFilterSelector, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NamedFilterSelector, "app-named-filter-selector
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NamedFilterSelector, "app-named-filter-selector", never, { "mobile": { "alias": "mobile"; "required": false; }; "entityName": { "alias": "entityName"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "filterContentProvider": { "alias": "filterContentProvider"; "required": false; }; "filterImportCallback": { "alias": "filterImportCallback"; "required": false; }; "filterFormDirty": { "alias": "filterFormDirty"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "exportFileNamePrefix": { "alias": "exportFileNamePrefix"; "required": false; }; "autocompleteConfig": { "alias": "autocompleteConfig"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "detectChangeOnSelectFilter": { "alias": "detectChangeOnSelectFilter"; "required": false; }; "buttonsPosition": { "alias": "buttonsPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "filterSelected": "filterSelected"; "filterDeleted": "filterDeleted"; "filterCleared": "filterCleared"; }, never, never, false, never>;
|
|
44
60
|
}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { IEntitiesService, IEntityService, LoadResult, SuggestService } from '../services/entity-service.class';
|
|
2
|
+
import { EntitiesServiceLoadOptions, EntityServiceWatchOptions, IEntitiesService, IEntityService, LoadResult, SuggestService } from '../services/entity-service.class';
|
|
3
3
|
import { GraphqlService } from '../../core/graphql/graphql.service';
|
|
4
4
|
import { BaseEntityService, BaseEntityServiceOptions } from '../../core/services/base-entity-service.class';
|
|
5
5
|
import { PlatformService } from '../../core/services/platform.service';
|
|
6
6
|
import { AccountService } from '../../core/services/account.service';
|
|
7
7
|
import { INamedFilter, INamedFilterFilter, NamedFilter, NamedFilterFilter } from './named-filter.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare const APP_NAMED_FILTER_SERVICE: InjectionToken<INamedFilterService<any, any>>;
|
|
10
|
-
export interface INamedFilterService<T extends INamedFilter<T>, F extends INamedFilterFilter<F, T
|
|
9
|
+
export declare const APP_NAMED_FILTER_SERVICE: InjectionToken<INamedFilterService<any, any, any, any>>;
|
|
10
|
+
export interface INamedFilterService<T extends INamedFilter<T>, F extends INamedFilterFilter<F, T>, WO extends NamedFilterWatchOptions, LO extends NamedFilterLoadOptions> extends IEntitiesService<T, F, WO>, IEntityService<T, number, LO>, SuggestService<T, F> {
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export interface NamedFilterWatchOptions extends EntityServiceWatchOptions {
|
|
13
|
+
withContent?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface NamedFilterLoadOptions extends EntitiesServiceLoadOptions {
|
|
16
|
+
withContent?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare abstract class AbstractNamedFilterService<T extends NamedFilter<T>, F extends NamedFilterFilter<F, T>, WO extends NamedFilterWatchOptions = NamedFilterWatchOptions, LO extends NamedFilterLoadOptions = NamedFilterLoadOptions> extends BaseEntityService<T, F, number> implements INamedFilterService<T, F, WO, LO> {
|
|
13
19
|
protected graphql: GraphqlService;
|
|
14
20
|
protected platform: PlatformService;
|
|
15
21
|
protected account: AccountService;
|
|
@@ -21,6 +27,6 @@ export declare abstract class AbstractNamedFilterService<T extends NamedFilter<T
|
|
|
21
27
|
asSuggestFilter(searchText: string, filter?: Partial<F>): F;
|
|
22
28
|
asFilter(source: any): F;
|
|
23
29
|
protected fillDefaultProperties(source: T): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNamedFilterService<any, any>, never>;
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractNamedFilterService<any, any>, never, never, {}, {}, never, never, false, never>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNamedFilterService<any, any, any, any>, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractNamedFilterService<any, any, any, any>, never, never, {}, {}, never, never, false, never>;
|
|
26
32
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { MatAutocompleteFieldConfig } from '../../material/autocomplete/material.autocomplete.config';
|
|
4
|
+
import { NamedFilter } from '../named-filter.model';
|
|
5
|
+
import { LocalSettingsService } from '../../../core/services/local-settings.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
declare class DummyFilter {
|
|
8
|
+
filterA: string;
|
|
9
|
+
filterB: string;
|
|
10
|
+
filterC: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class NamedFilterSelectorTestingPage implements OnDestroy {
|
|
13
|
+
protected cd: ChangeDetectorRef;
|
|
14
|
+
protected settings: LocalSettingsService;
|
|
15
|
+
private _subscription;
|
|
16
|
+
protected _filterForm: UntypedFormGroup;
|
|
17
|
+
protected mobile: boolean;
|
|
18
|
+
protected namedFilterContentProvider: () => object;
|
|
19
|
+
protected namedFilterAutocompleteConfig: MatAutocompleteFieldConfig;
|
|
20
|
+
set filterForm(value: UntypedFormGroup);
|
|
21
|
+
get filterForm(): UntypedFormGroup;
|
|
22
|
+
constructor(cd: ChangeDetectorRef, settings: LocalSettingsService, formBuilder: UntypedFormBuilder);
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
setFilterForm(filterForm: UntypedFormGroup): void;
|
|
25
|
+
getFilterValue(): any;
|
|
26
|
+
protected markForCheck(): void;
|
|
27
|
+
protected filterImportCallback: (namedFilter: NamedFilter) => Promise<NamedFilter>;
|
|
28
|
+
setFilter(filter: Partial<DummyFilter>, opts?: {
|
|
29
|
+
emitEvent: boolean;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NamedFilterSelectorTestingPage, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NamedFilterSelectorTestingPage, "app-name-filter-selector-testing", never, { "filterForm": { "alias": "filterForm"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./named-filter-selector.testing";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/router";
|
|
5
|
+
import * as i4 from "../../shared.module";
|
|
6
|
+
export declare class NamedFilterSelectorTestingModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NamedFilterSelectorTestingModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NamedFilterSelectorTestingModule, [typeof i1.NamedFilterSelectorTestingPage], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.SharedModule], [typeof i3.RouterModule, typeof i1.NamedFilterSelectorTestingPage]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NamedFilterSelectorTestingModule>;
|
|
10
|
+
}
|
|
@@ -24,6 +24,11 @@ export declare class ArrayFirstPipe implements PipeTransform {
|
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFirstPipe, never>;
|
|
25
25
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayFirstPipe, "arrayFirst", false>;
|
|
26
26
|
}
|
|
27
|
+
export declare class ArrayLastPipe implements PipeTransform {
|
|
28
|
+
transform<T = any>(val: unknown | T[]): T | null;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayLastPipe, never>;
|
|
30
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayLastPipe, "arrayLast", false>;
|
|
31
|
+
}
|
|
27
32
|
export declare class ArrayPluckPipe implements PipeTransform {
|
|
28
33
|
/**
|
|
29
34
|
*
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BadgeNumberPipe implements PipeTransform {
|
|
4
|
+
transform(val: number, max?: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeNumberPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BadgeNumberPipe, "badgeNumber", false>;
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@ import { Moment } from 'moment';
|
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
6
|
+
declare abstract class AbstractDateFormat {
|
|
7
7
|
protected dateAdapter: MomentDateAdapter;
|
|
8
8
|
protected translate: TranslateService;
|
|
9
9
|
private datePattern;
|
|
@@ -14,7 +14,7 @@ export declare abstract class AbstractDateFormat {
|
|
|
14
14
|
pattern?: string;
|
|
15
15
|
time?: boolean;
|
|
16
16
|
seconds?: boolean;
|
|
17
|
-
}): string
|
|
17
|
+
}): string;
|
|
18
18
|
protected _updateTranslations(translations: any): void;
|
|
19
19
|
protected _getTranslationValue(translations: any, key: string, defaultValue: string): string;
|
|
20
20
|
}
|
|
@@ -32,3 +32,4 @@ export declare class DateFormatService extends AbstractDateFormat implements OnD
|
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatService, never>;
|
|
33
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<DateFormatService>;
|
|
34
34
|
}
|
|
35
|
+
export {};
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
|
|
2
2
|
import { AbstractControl, UntypedFormArray, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { FormErrorTranslateOptions, FormErrorTranslator } from '../validator/form-error-adapter.class';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
-
private
|
|
5
|
+
export declare class FormErrorPipe implements PipeTransform, OnDestroy {
|
|
6
|
+
private service;
|
|
7
7
|
private _ref;
|
|
8
|
-
|
|
8
|
+
private _value;
|
|
9
9
|
private _lastForm;
|
|
10
10
|
private _lastOptions;
|
|
11
11
|
private _onFormStatusChanges;
|
|
12
|
-
constructor(
|
|
13
|
-
transform(form: UntypedFormGroup, opts?:
|
|
12
|
+
constructor(service: FormErrorTranslator, _ref: ChangeDetectorRef);
|
|
13
|
+
transform(form: UntypedFormGroup, opts?: FormErrorTranslateOptions): string;
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
private _updateValue;
|
|
16
16
|
/**
|
|
17
17
|
* Clean any existing subscription to change events
|
|
18
18
|
*/
|
|
19
19
|
private _dispose;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorPipe, never>;
|
|
21
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormErrorPipe, "formError", false>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Same a FormErrorPipe
|
|
25
|
+
* @deprecated use `formError` instead
|
|
26
|
+
*/
|
|
27
|
+
export declare class FormErrorTranslatePipe extends FormErrorPipe {
|
|
28
|
+
constructor(service: FormErrorTranslator, _ref: ChangeDetectorRef);
|
|
29
|
+
transform(form: UntypedFormGroup, opts?: FormErrorTranslateOptions): string;
|
|
20
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorTranslatePipe, never>;
|
|
21
31
|
static ɵpipe: i0.ɵɵPipeDeclaration<FormErrorTranslatePipe, "translateFormError", false>;
|
|
22
32
|
}
|
|
@@ -42,13 +52,13 @@ export declare class FormGetGroupPipe implements PipeTransform {
|
|
|
42
52
|
}
|
|
43
53
|
export declare class FormGetValuePipe implements PipeTransform, OnDestroy {
|
|
44
54
|
private _ref;
|
|
45
|
-
|
|
55
|
+
private _value;
|
|
46
56
|
private _lastControl;
|
|
47
57
|
private _lastPath;
|
|
48
58
|
private _onControlValueChanges;
|
|
49
59
|
private _onControlStatusChanges;
|
|
50
60
|
constructor(_ref: ChangeDetectorRef);
|
|
51
|
-
transform(form: AbstractControl, path?: Array<string | number> | string, listenStatusChanges?: boolean):
|
|
61
|
+
transform<T = any>(form: AbstractControl, path?: Array<string | number> | string, listenStatusChanges?: boolean): T;
|
|
52
62
|
ngOnDestroy(): void;
|
|
53
63
|
/**
|
|
54
64
|
* Clean any existing subscription to change events
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NoHtmlPipe implements PipeTransform {
|
|
5
|
+
transform(value: string): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoHtmlPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NoHtmlPipe, "noHtml", false>;
|
|
8
|
+
}
|
|
9
|
+
export declare class SafeHtmlPipe implements PipeTransform {
|
|
10
|
+
private sanitized;
|
|
11
|
+
constructor(sanitized: DomSanitizer);
|
|
12
|
+
transform(value: string): SafeHtml;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
14
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", false>;
|
|
15
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MapGetPipe implements PipeTransform {
|
|
4
|
-
transform(val:
|
|
5
|
-
key: string | number;
|
|
6
|
-
}):
|
|
4
|
+
transform<T = any, R = any>(val: T, args: keyof T | string | number | {
|
|
5
|
+
key: keyof T | string | number;
|
|
6
|
+
}): R;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapGetPipe, never>;
|
|
8
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<MapGetPipe, "mapGet", false>;
|
|
9
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapGetPipe>;
|
|
@@ -15,7 +15,7 @@ export declare class MapKeysPipe implements PipeTransform {
|
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapKeysPipe>;
|
|
16
16
|
}
|
|
17
17
|
export declare class MapValuesPipe implements PipeTransform {
|
|
18
|
-
transform(map: any):
|
|
18
|
+
transform<K = any, V = any>(map: any | Map<K, V>): V[];
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapValuesPipe, never>;
|
|
20
20
|
static ɵpipe: i0.ɵɵPipeDeclaration<MapValuesPipe, "mapValues", false>;
|
|
21
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapValuesPipe>;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { MaskitoOptions, MaskitoPlugin } from '@maskito/core';
|
|
3
|
-
import { MaskitoMask } from '@maskito/core/lib/types/mask';
|
|
2
|
+
import { MaskitoMask, MaskitoOptions, MaskitoPlugin } from '@maskito/core';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
export type MaskitoPlaceholderPipeOptions = {
|
|
5
|
+
defaultPrefix?: string;
|
|
6
|
+
noDefaults?: boolean;
|
|
7
|
+
} & Partial<MaskitoOptions>;
|
|
5
8
|
export declare class MaskitoPlaceholderPipe implements PipeTransform {
|
|
6
|
-
transform(placeholder: string, mask: MaskitoMask,
|
|
9
|
+
transform(placeholder: string, mask: MaskitoMask, opts?: MaskitoPlaceholderPipeOptions): MaskitoOptions;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaskitoPlaceholderPipe, never>;
|
|
8
11
|
static ɵpipe: i0.ɵɵPipeDeclaration<MaskitoPlaceholderPipe, "maskitoPlaceholder", false>;
|
|
9
12
|
}
|
|
10
|
-
export declare class MaskitoDatePipe implements PipeTransform {
|
|
11
|
-
transform(baseOptions: MaskitoOptions, pattern: string, separator?: string): MaskitoOptions;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaskitoDatePipe, never>;
|
|
13
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MaskitoDatePipe, "maskitoDate", false>;
|
|
14
|
-
}
|
|
15
13
|
export declare function maskitoPrefixPlugin(prefix: string, placeholder?: string): MaskitoPlugin;
|
|
16
|
-
export declare function
|
|
14
|
+
export declare function maskitoAutoSelectByMaskPattern(): MaskitoPlugin;
|
|
@@ -18,11 +18,14 @@ import * as i16 from "./form.pipes";
|
|
|
18
18
|
import * as i17 from "./colors.pipe";
|
|
19
19
|
import * as i18 from "./types.pipes";
|
|
20
20
|
import * as i19 from "./maskito.pipe";
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
21
|
+
import * as i20 from "./selection.pipes";
|
|
22
|
+
import * as i21 from "./badge.pipes";
|
|
23
|
+
import * as i22 from "./html.pipes";
|
|
24
|
+
import * as i23 from "@angular/common";
|
|
25
|
+
import * as i24 from "@ionic/angular";
|
|
26
|
+
import * as i25 from "@ngx-translate/core";
|
|
24
27
|
export declare class SharedPipesModule {
|
|
25
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
|
|
26
|
-
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.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, 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.ArrayLastPipe, 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.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorPipe, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe, typeof i18.AsBooleanPipe, typeof i22.SafeHtmlPipe, typeof i22.NoHtmlPipe], [typeof i23.CommonModule, typeof i24.IonicModule, typeof i25.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, 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.ArrayLastPipe, 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.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorPipe, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe, typeof i18.AsBooleanPipe, typeof i22.SafeHtmlPipe, typeof i22.NoHtmlPipe]>;
|
|
27
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
|
|
28
31
|
}
|
|
@@ -4,23 +4,44 @@ import { FormFieldDefinition } from '../form/field.model';
|
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class PropertyGetPipe implements PipeTransform {
|
|
7
|
-
transform(obj: any, args: string | {
|
|
7
|
+
transform(obj: any, args: string | Array<string | number> | {
|
|
8
8
|
key: string;
|
|
9
9
|
defaultValue?: any;
|
|
10
10
|
}): any;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyGetPipe, never>;
|
|
12
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<PropertyGetPipe, "propertyGet", false>;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
declare abstract class AbstractValueFormatPipe {
|
|
15
15
|
private dateFormat;
|
|
16
16
|
private translate;
|
|
17
17
|
private _i18nYes;
|
|
18
18
|
private _i18nNo;
|
|
19
19
|
constructor(dateFormat: DateFormatService, translate: TranslateService);
|
|
20
|
-
transform(obj: any, keyOrDefinition: string | FormFieldDefinition): string | Promise<string>;
|
|
21
20
|
get i18nYes(): string;
|
|
22
21
|
get i18nNo(): string;
|
|
22
|
+
protected valueToString(value: any, definition?: FormFieldDefinition): string;
|
|
23
|
+
}
|
|
24
|
+
export declare class PropertyFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
25
|
+
constructor(dateFormat: DateFormatService, translate: TranslateService);
|
|
26
|
+
transform(obj: any, args: string | Array<string | number> | FormFieldDefinition): string | Promise<string>;
|
|
23
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyFormatPipe, never>;
|
|
24
28
|
static ɵpipe: i0.ɵɵPipeDeclaration<PropertyFormatPipe, "propertyFormat", false>;
|
|
25
29
|
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyFormatPipe>;
|
|
26
30
|
}
|
|
31
|
+
export declare class ValueFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
32
|
+
constructor(dateFormat: DateFormatService, translate: TranslateService);
|
|
33
|
+
transform(value: any, definition: FormFieldDefinition): string | Promise<string>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueFormatPipe, never>;
|
|
35
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ValueFormatPipe, "valueFormat", false>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ValueFormatPipe>;
|
|
37
|
+
}
|
|
38
|
+
export declare class BooleanFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
39
|
+
constructor(translate: TranslateService);
|
|
40
|
+
transform(value: any, opts?: {
|
|
41
|
+
yesLabel: string;
|
|
42
|
+
noLabel: string;
|
|
43
|
+
}): string;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanFormatPipe, never>;
|
|
45
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BooleanFormatPipe, "booleanFormat", false>;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
|
|
2
|
+
import { SelectionChange, SelectionModel } from '@angular/cdk/collections';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class AbstractSelectionModelPipe<T, R, O = void> implements PipeTransform, OnDestroy {
|
|
6
|
+
protected _ref: ChangeDetectorRef;
|
|
7
|
+
protected _result: R;
|
|
8
|
+
private _lastSelection;
|
|
9
|
+
private _lastValue;
|
|
10
|
+
private _lastOpts;
|
|
11
|
+
protected _shouldSubscribeToChanges: boolean;
|
|
12
|
+
private _onSelectionChanges;
|
|
13
|
+
protected constructor(_ref: ChangeDetectorRef);
|
|
14
|
+
transform(selection: SelectionModel<any>, value?: T, opts?: O): R;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
protected _subscribe(selection: SelectionModel<T>, value: T, opts?: O): Subscription;
|
|
17
|
+
/**
|
|
18
|
+
* Clean any existing subscription to change events
|
|
19
|
+
*/
|
|
20
|
+
protected _dispose(): void;
|
|
21
|
+
protected abstract _transform(selection: SelectionModel<T>, value?: T, opts?: O): R;
|
|
22
|
+
protected _filterSelectionChange(selectionChange: SelectionChange<any>, value?: T, opts?: O): boolean;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelectionModelPipe<any, any, any>, never>;
|
|
24
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AbstractSelectionModelPipe<any, any, any>, "abstract-selection", false>;
|
|
25
|
+
}
|
|
26
|
+
export declare class IsSelectedPipe extends AbstractSelectionModelPipe<any, boolean> implements PipeTransform, OnDestroy {
|
|
27
|
+
constructor(_ref: ChangeDetectorRef);
|
|
28
|
+
protected _transform(selection: SelectionModel<any>, value: any): boolean;
|
|
29
|
+
protected _filterSelectionChange(selectionChange: SelectionChange<any>, value: any): boolean;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsSelectedPipe, never>;
|
|
31
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsSelectedPipe, "isSelected", false>;
|
|
32
|
+
}
|
|
33
|
+
export declare class IsNotEmptySelectionPipe extends AbstractSelectionModelPipe<void, boolean> implements PipeTransform, OnDestroy {
|
|
34
|
+
constructor(_ref: ChangeDetectorRef);
|
|
35
|
+
protected _transform(selection: SelectionModel<any>): boolean;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsNotEmptySelectionPipe, never>;
|
|
37
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsNotEmptySelectionPipe, "isNotEmptySelection", false>;
|
|
38
|
+
}
|
|
39
|
+
export declare class IsEmptySelectionPipe extends AbstractSelectionModelPipe<void, boolean> {
|
|
40
|
+
constructor(_ref: ChangeDetectorRef);
|
|
41
|
+
protected _transform(selection: SelectionModel<any>): boolean;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsEmptySelectionPipe, never>;
|
|
43
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsEmptySelectionPipe, "isEmptySelection", false>;
|
|
44
|
+
}
|
|
45
|
+
export declare class SelectionLengthPipe extends AbstractSelectionModelPipe<void, number> implements PipeTransform, OnDestroy {
|
|
46
|
+
constructor(_ref: ChangeDetectorRef);
|
|
47
|
+
protected _transform(selection: SelectionModel<any>): number;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionLengthPipe, never>;
|
|
49
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SelectionLengthPipe, "selectionLength", false>;
|
|
50
|
+
}
|
|
51
|
+
export declare class IsMultipleSelectionPipe extends AbstractSelectionModelPipe<void, boolean> implements PipeTransform, OnDestroy {
|
|
52
|
+
constructor(_ref: ChangeDetectorRef);
|
|
53
|
+
protected _transform(selection: SelectionModel<any>): boolean;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsMultipleSelectionPipe, never>;
|
|
55
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsMultipleSelectionPipe, "isMultipleSelection", false>;
|
|
56
|
+
}
|
|
57
|
+
export declare class IsSingleSelectionPipe extends AbstractSelectionModelPipe<void, boolean> {
|
|
58
|
+
constructor(_ref: ChangeDetectorRef);
|
|
59
|
+
protected _transform(selection: SelectionModel<any>): boolean;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsSingleSelectionPipe, never>;
|
|
61
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsSingleSelectionPipe, "isSingleSelection", false>;
|
|
62
|
+
}
|