@sumaris-net/ngx-components 4.0.0-rc9 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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 +33 -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 +7 -5
- 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
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { SuggestFn } from '../../services/entity-service.class';
|
|
5
5
|
import { InputElement } from '../../inputs';
|
|
6
|
-
import { DisplayFn, EqualsFn
|
|
7
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
8
|
-
import { MatSelect } from '@angular/material/select';
|
|
9
|
-
import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
6
|
+
import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
|
|
7
|
+
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
8
|
+
import { MatSelect, MatSelectChange } from '@angular/material/select';
|
|
9
|
+
import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
10
10
|
import { IonSearchbar, ModalController } from '@ionic/angular';
|
|
11
11
|
import { MatAutocompleteFieldConfig } from './material.autocomplete.config';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
export type MatAutocompleteFieldSelectChange = {
|
|
14
|
+
source: MatSelect | MatAutocomplete;
|
|
15
|
+
value: any;
|
|
16
|
+
};
|
|
13
17
|
export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDestroy, InputElement, ControlValueAccessor {
|
|
18
|
+
protected injector: Injector;
|
|
19
|
+
protected el: ElementRef<HTMLElement>;
|
|
14
20
|
protected cd: ChangeDetectorRef;
|
|
15
21
|
protected modalController: ModalController;
|
|
16
22
|
protected renderer: Renderer2;
|
|
17
|
-
private viewRef;
|
|
18
23
|
private formGroupDir;
|
|
19
24
|
private _onChangeCallback;
|
|
20
25
|
private _onTouchedCallback;
|
|
@@ -26,7 +31,6 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
26
31
|
private _$filter;
|
|
27
32
|
private _itemCount;
|
|
28
33
|
private _reload$;
|
|
29
|
-
private _document;
|
|
30
34
|
protected _readonly: boolean;
|
|
31
35
|
protected _tabindex: number;
|
|
32
36
|
protected _$inputItems: BehaviorSubject<any[]>;
|
|
@@ -34,18 +38,21 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
34
38
|
protected _displayValue: string;
|
|
35
39
|
protected _moreItemsCount: number;
|
|
36
40
|
protected _fetchMore$: EventEmitter<Event>;
|
|
41
|
+
protected _defaultPanelWidth: string;
|
|
37
42
|
equals: EqualsFn;
|
|
38
43
|
logPrefix: string;
|
|
39
44
|
formControl: UntypedFormControl;
|
|
40
45
|
formControlName: string;
|
|
41
46
|
floatLabel: AppFloatLabelType;
|
|
42
47
|
appearance: MatFormFieldAppearance;
|
|
48
|
+
subscriptSizing: SubscriptSizing;
|
|
43
49
|
placeholder: string;
|
|
44
50
|
suggestFn: SuggestFn<any, any>;
|
|
45
51
|
required: boolean;
|
|
46
52
|
mobile: boolean;
|
|
47
53
|
clearable: boolean;
|
|
48
54
|
debounceTime: number;
|
|
55
|
+
displaySeparator: string | null;
|
|
49
56
|
displayWith: DisplayFn | null;
|
|
50
57
|
displayAttributes: string[];
|
|
51
58
|
displayColumnSizes: (number | 'auto' | undefined)[];
|
|
@@ -57,8 +64,9 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
57
64
|
config: MatAutocompleteFieldConfig;
|
|
58
65
|
i18nPrefix: string;
|
|
59
66
|
noResultMessage: string;
|
|
60
|
-
|
|
67
|
+
panelClass: string;
|
|
61
68
|
panelWidth: string;
|
|
69
|
+
disableRipple: boolean;
|
|
62
70
|
matAutocompletePosition: 'auto' | 'above' | 'below';
|
|
63
71
|
multiple: boolean;
|
|
64
72
|
fetchMoreThreshold: string;
|
|
@@ -67,19 +75,30 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
67
75
|
debug: boolean;
|
|
68
76
|
showSearchBar: boolean;
|
|
69
77
|
stickySearchBar: boolean;
|
|
70
|
-
applyImplicitValue: boolean | (() => boolean);
|
|
78
|
+
applyImplicitValue: boolean | ((value: any) => boolean);
|
|
79
|
+
dropButtonTitle: string;
|
|
80
|
+
clearButtonTitle: string;
|
|
81
|
+
trimSearchText: boolean;
|
|
82
|
+
splitSearchText: boolean;
|
|
83
|
+
selectInputContentOnFocus: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated Use panelClass instead
|
|
86
|
+
*/
|
|
87
|
+
set classList(value: string);
|
|
88
|
+
get classList(): string;
|
|
71
89
|
clicked: EventEmitter<MouseEvent>;
|
|
72
90
|
blurred: EventEmitter<FocusEvent>;
|
|
73
91
|
focused: EventEmitter<FocusEvent>;
|
|
74
92
|
dropButtonClick: EventEmitter<Event>;
|
|
75
|
-
keydownEscape: EventEmitter<
|
|
76
|
-
keyupEnter: EventEmitter<
|
|
93
|
+
keydownEscape: EventEmitter<Event>;
|
|
94
|
+
keyupEnter: EventEmitter<Event>;
|
|
95
|
+
selectionChange: EventEmitter<MatAutocompleteFieldSelectChange>;
|
|
77
96
|
matSelect: MatSelect;
|
|
78
97
|
ionSearchbar: IonSearchbar;
|
|
79
98
|
matInputText: ElementRef;
|
|
80
99
|
autocomplete: MatAutocomplete;
|
|
81
100
|
autocompleteTrigger: MatAutocompleteTrigger;
|
|
82
|
-
constructor(cd: ChangeDetectorRef, modalController: ModalController, renderer: Renderer2,
|
|
101
|
+
constructor(injector: Injector, el: ElementRef<HTMLElement>, cd: ChangeDetectorRef, modalController: ModalController, renderer: Renderer2, formGroupDir: FormGroupDirective);
|
|
83
102
|
get itemCount(): number;
|
|
84
103
|
get canFetchMore(): boolean;
|
|
85
104
|
set filter(value: any);
|
|
@@ -94,7 +113,6 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
94
113
|
get disabled(): boolean;
|
|
95
114
|
get enabled(): boolean;
|
|
96
115
|
get loading(): boolean;
|
|
97
|
-
get desktop(): boolean;
|
|
98
116
|
ngOnInit(): void;
|
|
99
117
|
ngAfterViewInit(): void;
|
|
100
118
|
ngOnDestroy(): void;
|
|
@@ -117,6 +135,9 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
117
135
|
_initMatSelectInfiniteScroll(threshold?: string): void;
|
|
118
136
|
get isOpen(): boolean;
|
|
119
137
|
closePanel(): void;
|
|
138
|
+
protected markAsLoading(): void;
|
|
139
|
+
protected onSelectionChange(event: MatSelectChange): void;
|
|
140
|
+
protected onOptionSelected(event: MatAutocompleteSelectedEvent): void;
|
|
120
141
|
private suggest;
|
|
121
142
|
private fetchMore;
|
|
122
143
|
private updateImplicitValue;
|
|
@@ -124,7 +145,6 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
124
145
|
private getAutocompletePanel;
|
|
125
146
|
private getMatSelectPanel;
|
|
126
147
|
private markForCheck;
|
|
127
|
-
protected markAsLoading(): void;
|
|
128
148
|
private _fixMatSelectPositionAndSearchbar;
|
|
129
149
|
private _fixMatSelectPanelPosition;
|
|
130
150
|
/**
|
|
@@ -132,9 +152,29 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
132
152
|
* in the IonModal to might keep focus in IonSearchbar.
|
|
133
153
|
*
|
|
134
154
|
* @param panelElement
|
|
155
|
+
* @param overlayPane
|
|
135
156
|
* @private
|
|
136
157
|
*/
|
|
137
158
|
private _fixSearchbarOverlay;
|
|
138
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteField, [null, null, null, null, { optional: true; }]>;
|
|
139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": { "alias": "equals"; "required": false; }; "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; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "
|
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteField, [null, null, null, null, null, { optional: true; }]>;
|
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": { "alias": "equals"; "required": false; }; "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; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displaySeparator": { "alias": "displaySeparator"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "matAutocompletePosition": { "alias": "matAutocompletePosition"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "fetchMoreThreshold": { "alias": "fetchMoreThreshold"; "required": false; }; "suggestLengthThreshold": { "alias": "suggestLengthThreshold"; "required": false; }; "showLoadingSpinner": { "alias": "showLoadingSpinner"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "stickySearchBar": { "alias": "stickySearchBar"; "required": false; }; "applyImplicitValue": { "alias": "applyImplicitValue"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "trimSearchText": { "alias": "trimSearchText"; "required": false; }; "splitSearchText": { "alias": "splitSearchText"; "required": false; }; "selectInputContentOnFocus": { "alias": "selectInputContentOnFocus"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; "selectionChange": "selectionChange"; }, never, ["[matAfter]", "[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
161
|
+
static ngAcceptInputType_required: unknown;
|
|
162
|
+
static ngAcceptInputType_mobile: unknown;
|
|
163
|
+
static ngAcceptInputType_clearable: unknown;
|
|
164
|
+
static ngAcceptInputType_debounceTime: unknown;
|
|
165
|
+
static ngAcceptInputType_highlightAccent: unknown;
|
|
166
|
+
static ngAcceptInputType_showAllOnFocus: unknown;
|
|
167
|
+
static ngAcceptInputType_showPanelOnFocus: unknown;
|
|
168
|
+
static ngAcceptInputType_autofocus: unknown;
|
|
169
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
170
|
+
static ngAcceptInputType_multiple: unknown;
|
|
171
|
+
static ngAcceptInputType_suggestLengthThreshold: unknown;
|
|
172
|
+
static ngAcceptInputType_showLoadingSpinner: unknown;
|
|
173
|
+
static ngAcceptInputType_debug: unknown;
|
|
174
|
+
static ngAcceptInputType_showSearchBar: unknown;
|
|
175
|
+
static ngAcceptInputType_stickySearchBar: unknown;
|
|
176
|
+
static ngAcceptInputType_trimSearchText: unknown;
|
|
177
|
+
static ngAcceptInputType_splitSearchText: unknown;
|
|
178
|
+
static ngAcceptInputType_selectInputContentOnFocus: unknown;
|
|
179
|
+
static ngAcceptInputType_readonly: unknown;
|
|
140
180
|
}
|
|
@@ -17,6 +17,6 @@ import * as i15 from "@angular/material/select";
|
|
|
17
17
|
import * as i16 from "@ngx-translate/core";
|
|
18
18
|
export declare class SharedMatAutocompleteModule {
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatAutocompleteModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatAutocompleteModule, [typeof i1.MatAutocompleteField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ScrollingModule, typeof i5.ReactiveFormsModule, typeof i6.SharedPipesModule, typeof i7.SharedDirectivesModule, typeof i8.RxStateModule, typeof i9.MatCommonModule, typeof i10.MatAutocompleteModule, typeof i11.MatFormFieldModule, typeof i12.MatInputModule, typeof i13.MatIconModule, typeof i14.MatButtonModule, typeof i15.MatSelectModule, typeof i16.TranslateModule], [typeof i10.MatAutocompleteModule, typeof i1.MatAutocompleteField]>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatAutocompleteModule, [typeof i1.MatAutocompleteField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ScrollingModule, typeof i5.ReactiveFormsModule, typeof i6.SharedPipesModule, typeof i7.SharedDirectivesModule, typeof i8.RxStateModule, typeof i9.MatCommonModule, typeof i10.MatAutocompleteModule, typeof i11.MatFormFieldModule, typeof i12.MatInputModule, typeof i13.MatIconModule, typeof i14.MatButtonModule, typeof i15.MatSelectModule, typeof i9.MatRippleModule, typeof i16.TranslateModule], [typeof i10.MatAutocompleteModule, typeof i1.MatAutocompleteField]>;
|
|
21
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatAutocompleteModule>;
|
|
22
22
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { DisplayFn } from '../../form/field.model';
|
|
1
2
|
export declare class MatAutocompleteFieldUtils {
|
|
2
|
-
static createDisplayFn(displayAttributes: string[], multiple?: boolean
|
|
3
|
+
static createDisplayFn(displayAttributes: string[], multiple?: boolean, propertySeparator?: string, itemSeparator?: string): DisplayFn;
|
|
3
4
|
static defaultEquals(o1: any, o2: any): boolean;
|
|
4
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { MatAutocompleteField } from '../material.autocomplete';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
@@ -13,6 +13,7 @@ declare class EntityTestClass {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class AutocompleteTestPage implements OnInit, AfterViewInit {
|
|
15
15
|
protected formBuilder: UntypedFormBuilder;
|
|
16
|
+
private cd;
|
|
16
17
|
private _items;
|
|
17
18
|
private _$items;
|
|
18
19
|
form: UntypedFormGroup;
|
|
@@ -24,7 +25,7 @@ export declare class AutocompleteTestPage implements OnInit, AfterViewInit {
|
|
|
24
25
|
mode: 'mobile' | 'desktop' | 'memory' | 'temp';
|
|
25
26
|
farEntityField: MatAutocompleteField;
|
|
26
27
|
ionModal: IonModal;
|
|
27
|
-
constructor(formBuilder: UntypedFormBuilder);
|
|
28
|
+
constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef);
|
|
28
29
|
ngOnInit(): void;
|
|
29
30
|
ngAfterViewInit(): void;
|
|
30
31
|
loadData(): Promise<void>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { MatBadge, MatBadgePosition } from '@angular/material/badge';
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MatBadge, MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
|
|
3
3
|
import { AppColors } from '../../types';
|
|
4
4
|
import { AriaDescriber } from '@angular/cdk/a11y';
|
|
5
5
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare type MatBadgeFill = 'clear' | 'solid';
|
|
8
|
-
export declare class BadgeDirective extends MatBadge implements AfterViewInit, OnChanges, OnDestroy {
|
|
8
|
+
export declare class BadgeDirective extends MatBadge implements AfterViewInit, OnChanges, OnDestroy, OnInit {
|
|
9
9
|
protected el: ElementRef<HTMLElement>;
|
|
10
10
|
true: any;
|
|
11
11
|
get isOverlapHost(): boolean;
|
|
@@ -18,6 +18,12 @@ export declare class BadgeDirective extends MatBadge implements AfterViewInit, O
|
|
|
18
18
|
get isLargeHost(): boolean;
|
|
19
19
|
get isHiddenHost(): boolean;
|
|
20
20
|
get isDisabledHost(): boolean;
|
|
21
|
+
set appBadge(value: string | number);
|
|
22
|
+
get appBadge(): string | number;
|
|
23
|
+
set appBadgeDisabled(value: boolean);
|
|
24
|
+
get appBadgeDisabled(): boolean;
|
|
25
|
+
set appBadgeSize(value: MatBadgeSize);
|
|
26
|
+
get appBadgeSize(): MatBadgeSize;
|
|
21
27
|
appBadgeColor: AppColors;
|
|
22
28
|
appBadgeFill: MatBadgeFill;
|
|
23
29
|
appBadgeMatIcon: string;
|
|
@@ -33,5 +39,5 @@ export declare class BadgeDirective extends MatBadge implements AfterViewInit, O
|
|
|
33
39
|
ngOnDestroy(): void;
|
|
34
40
|
private updateView;
|
|
35
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, [null, null, null, null, { optional: true; }]>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "
|
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "appBadge": { "alias": "appBadge"; "required": false; }; "appBadgeDisabled": { "alias": "appBadgeDisabled"; "required": false; }; "appBadgeSize": { "alias": "appBadgeSize"; "required": false; }; "appBadgeColor": { "alias": "appBadgeColor"; "required": false; }; "appBadgeFill": { "alias": "appBadgeFill"; "required": false; }; "appBadgeMatIcon": { "alias": "appBadgeMatIcon"; "required": false; }; "appBadgeIcon": { "alias": "appBadgeIcon"; "required": false; }; "appBadgeHidden": { "alias": "appBadgeHidden"; "required": false; }; "appBadgeOverlap": { "alias": "appBadgeOverlap"; "required": false; }; "appBadgePosition": { "alias": "appBadgePosition"; "required": false; }; }, {}, never, never, false, never>;
|
|
37
43
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./material.boolean";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@angular
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@angular/material/
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "@angular/material/
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "ngx-
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ionic/angular";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "../../pipes/pipes.module";
|
|
7
|
+
import * as i6 from "@angular/material/core";
|
|
8
|
+
import * as i7 from "@angular/material/form-field";
|
|
9
|
+
import * as i8 from "@angular/material/input";
|
|
10
|
+
import * as i9 from "@angular/material/radio";
|
|
11
|
+
import * as i10 from "@angular/material/checkbox";
|
|
12
|
+
import * as i11 from "ngx-material-timepicker";
|
|
13
|
+
import * as i12 from "@ngx-translate/core";
|
|
14
|
+
import * as i13 from "../../directives/directives.module";
|
|
15
|
+
import * as i14 from "@angular/material/icon";
|
|
16
|
+
import * as i15 from "@angular/material/button";
|
|
16
17
|
export declare class SharedMatBooleanModule {
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatBooleanModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatBooleanModule, [typeof i1.MatBooleanField, typeof i2.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatBooleanModule, [typeof i1.MatBooleanField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.MatCommonModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.MatRadioModule, typeof i10.MatCheckboxModule, typeof i11.NgxMaterialTimepickerModule, typeof i12.TranslateModule, typeof i13.SharedDirectivesModule, typeof i14.MatIcon, typeof i15.MatIconButton], [typeof i1.MatBooleanField]>;
|
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatBooleanModule>;
|
|
20
21
|
}
|
|
@@ -1,29 +1,37 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { InputElement } from '../../inputs';
|
|
5
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
3
|
+
import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
|
|
6
4
|
import { MatRadioButton, MatRadioChange } from '@angular/material/radio';
|
|
7
5
|
import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
|
|
6
|
+
import { InputElement } from '../../inputs';
|
|
8
7
|
import { AppFloatLabelType } from '../../form/field.model';
|
|
8
|
+
import { IonButton } from '@ionic/angular';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class MatBooleanField implements OnInit, ControlValueAccessor, InputElement {
|
|
11
|
-
private translate;
|
|
12
|
-
private formBuilder;
|
|
10
|
+
export declare class MatBooleanField implements OnInit, ControlValueAccessor, InputElement, OnDestroy {
|
|
13
11
|
private cd;
|
|
12
|
+
protected el: ElementRef<HTMLElement>;
|
|
14
13
|
private formGroupDir;
|
|
15
14
|
private _onChangeCallback;
|
|
16
15
|
private _onTouchedCallback;
|
|
16
|
+
private readonly _subscription;
|
|
17
17
|
private _writing;
|
|
18
|
-
_value: boolean;
|
|
19
|
-
_tabindex: number;
|
|
20
|
-
|
|
18
|
+
protected _value: boolean;
|
|
19
|
+
protected _tabindex: number;
|
|
20
|
+
protected _showRadio: boolean;
|
|
21
|
+
protected _focused: boolean;
|
|
22
|
+
yesRadioButton: MatRadioButton;
|
|
23
|
+
noRadioButton: MatRadioButton;
|
|
24
|
+
checkboxButton: MatCheckbox;
|
|
25
|
+
yesButton: IonButton;
|
|
26
|
+
noButton: IonButton;
|
|
27
|
+
fakeInput: ElementRef;
|
|
21
28
|
disabled: boolean;
|
|
22
29
|
formControl: UntypedFormControl;
|
|
23
30
|
formControlName: string;
|
|
24
31
|
placeholder: string;
|
|
25
32
|
floatLabel: AppFloatLabelType;
|
|
26
33
|
appearance: MatFormFieldAppearance;
|
|
34
|
+
subscriptSizing: SubscriptSizing;
|
|
27
35
|
readonly: boolean;
|
|
28
36
|
required: boolean;
|
|
29
37
|
compact: boolean;
|
|
@@ -35,33 +43,51 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
35
43
|
showButtonIcons: boolean;
|
|
36
44
|
yesIcon: string;
|
|
37
45
|
noIcon: string;
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
clearable: boolean;
|
|
47
|
+
labelPosition: 'after' | 'before';
|
|
40
48
|
set tabindex(value: number);
|
|
41
49
|
get tabindex(): number;
|
|
42
|
-
|
|
50
|
+
set showRadio(v: any);
|
|
51
|
+
get showRadio(): any;
|
|
43
52
|
set value(v: any);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
constructor(translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
53
|
+
get value(): any;
|
|
54
|
+
keyupEnter: EventEmitter<any>;
|
|
55
|
+
blurred: EventEmitter<FocusEvent>;
|
|
56
|
+
constructor(cd: ChangeDetectorRef, el: ElementRef<HTMLElement>, formGroupDir: FormGroupDirective);
|
|
49
57
|
ngOnInit(): void;
|
|
58
|
+
ngOnDestroy(): void;
|
|
50
59
|
writeValue(value: any, event?: Event): void;
|
|
51
60
|
registerOnChange(fn: any): void;
|
|
52
61
|
registerOnTouched(fn: any): void;
|
|
53
62
|
setDisabledState(isDisabled: boolean): void;
|
|
54
|
-
|
|
55
|
-
_onFocusFakeInput(event: FocusEvent): void;
|
|
63
|
+
protected onFocusFakeInput(event: FocusEvent): void;
|
|
56
64
|
focus(): void;
|
|
57
|
-
onRadioValueChanged(event: MatRadioChange): void;
|
|
58
|
-
onCheckboxValueChanged(event: MatCheckboxChange): void;
|
|
65
|
+
protected onRadioValueChanged(event: MatRadioChange): void;
|
|
66
|
+
protected onCheckboxValueChanged(event: MatCheckboxChange): void;
|
|
67
|
+
toggleValue(event?: Event): void;
|
|
59
68
|
private checkIfTouched;
|
|
69
|
+
/**
|
|
70
|
+
* Show/Hide the fake input
|
|
71
|
+
*/
|
|
72
|
+
private updateFakeInput;
|
|
60
73
|
/**
|
|
61
74
|
* This is a special case, because, this component has a temporary component displayed before the first focus event
|
|
62
75
|
*/
|
|
63
76
|
private updateTabIndex;
|
|
64
77
|
private markForCheck;
|
|
65
|
-
|
|
66
|
-
|
|
78
|
+
clearValue(event?: Event): void;
|
|
79
|
+
protected get radioButtonElements(): HTMLElement[];
|
|
80
|
+
protected get inputsElements(): HTMLElement[];
|
|
81
|
+
protected get ionButtons(): IonButton[];
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatBooleanField, [null, null, { optional: true; }]>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatBooleanField, "mat-boolean-field", never, { "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "style": { "alias": "style"; "required": false; }; "buttonsColCount": { "alias": "buttonsColCount"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "yesLabel": { "alias": "yesLabel"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "yesIcon": { "alias": "yesIcon"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "showRadio": { "alias": "showRadio"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "blurred": "blur"; }, never, ["[matPrefix]", "[matSuffix]"], false, never>;
|
|
84
|
+
static ngAcceptInputType_disabled: unknown;
|
|
85
|
+
static ngAcceptInputType_readonly: unknown;
|
|
86
|
+
static ngAcceptInputType_required: unknown;
|
|
87
|
+
static ngAcceptInputType_compact: unknown;
|
|
88
|
+
static ngAcceptInputType_buttonsColCount: unknown;
|
|
89
|
+
static ngAcceptInputType_showButtonIcons: unknown;
|
|
90
|
+
static ngAcceptInputType_clearable: unknown;
|
|
91
|
+
static ngAcceptInputType_tabindex: unknown;
|
|
92
|
+
static ngAcceptInputType_showRadio: unknown;
|
|
67
93
|
}
|
|
@@ -16,6 +16,7 @@ export declare class BooleanTestPage extends AppForm<any> implements OnInit, Aft
|
|
|
16
16
|
ngAfterViewInit(): void;
|
|
17
17
|
toggleMode(value: any): void;
|
|
18
18
|
protected markForCheck(): void;
|
|
19
|
+
protected clearControlValue(path: string, event?: Event): void;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanTestPage, never>;
|
|
20
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanTestPage, "app-boolean-test-page", never, {}, {}, never, never, false, never>;
|
|
21
22
|
}
|
|
@@ -14,8 +14,9 @@ import * as i12 from "@angular/material/button";
|
|
|
14
14
|
import * as i13 from "@angular/material/select";
|
|
15
15
|
import * as i14 from "@angular/material/chips";
|
|
16
16
|
import * as i15 from "@ngx-translate/core";
|
|
17
|
+
import * as i16 from "../../rx-state.module";
|
|
17
18
|
export declare class SharedMatChipsModule {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatChipsModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatChipsModule, [typeof i1.MatChipsField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.SharedDirectivesModule, typeof i7.MatCommonModule, typeof i8.MatAutocompleteModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatSelectModule, typeof i14.MatChipsModule, typeof i15.TranslateModule], [typeof i1.MatChipsField]>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatChipsModule, [typeof i1.MatChipsField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.SharedDirectivesModule, typeof i7.MatCommonModule, typeof i8.MatAutocompleteModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatSelectModule, typeof i14.MatChipsModule, typeof i15.TranslateModule, typeof i16.RxStateModule], [typeof i1.MatChipsField]>;
|
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatChipsModule>;
|
|
21
22
|
}
|
|
@@ -3,23 +3,38 @@ import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@a
|
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { InputElement } from '../../inputs';
|
|
5
5
|
import { SuggestFn } from '../../services/entity-service.class';
|
|
6
|
-
import { DisplayFn, EqualsFn
|
|
6
|
+
import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
|
|
7
7
|
import { ThemePalette } from '@angular/material/core';
|
|
8
8
|
import { MatAutocompleteFieldConfig } from '../autocomplete/material.autocomplete.config';
|
|
9
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
10
|
-
import { MatAutocomplete,
|
|
9
|
+
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
10
|
+
import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class MatChipsField implements OnInit, OnDestroy, InputElement, ControlValueAccessor {
|
|
13
13
|
protected cd: ChangeDetectorRef;
|
|
14
14
|
private formGroupDir;
|
|
15
15
|
private _onChangeCallback;
|
|
16
16
|
private _onTouchedCallback;
|
|
17
|
+
private _onFetchMoreCallback;
|
|
18
|
+
private _implicitValue;
|
|
19
|
+
private _subscription;
|
|
20
|
+
private _itemsSubscription;
|
|
21
|
+
private _openedSubscription;
|
|
22
|
+
private _$filter;
|
|
23
|
+
private _itemCount;
|
|
24
|
+
private _reload$;
|
|
25
|
+
protected _tabindex: number;
|
|
26
|
+
protected _$inputItems: BehaviorSubject<any[]>;
|
|
27
|
+
protected _$filteredItems: BehaviorSubject<any[]>;
|
|
28
|
+
protected _inputControl: UntypedFormControl;
|
|
29
|
+
protected _moreItemsCount: number;
|
|
30
|
+
protected _fetchMore$: EventEmitter<Event>;
|
|
17
31
|
equals: EqualsFn;
|
|
18
32
|
logPrefix: string;
|
|
19
33
|
formControl: UntypedFormControl;
|
|
20
34
|
formControlName: string;
|
|
21
35
|
floatLabel: AppFloatLabelType;
|
|
22
36
|
appearance: MatFormFieldAppearance;
|
|
37
|
+
subscriptSizing: SubscriptSizing;
|
|
23
38
|
placeholder: string;
|
|
24
39
|
suggestFn: SuggestFn<any, any>;
|
|
25
40
|
required: boolean;
|
|
@@ -27,6 +42,7 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
27
42
|
readonly: boolean;
|
|
28
43
|
clearable: boolean;
|
|
29
44
|
debounceTime: number;
|
|
45
|
+
displaySeparator: string | null;
|
|
30
46
|
displayWith: DisplayFn | null;
|
|
31
47
|
displayAttributes: string[];
|
|
32
48
|
displayColumnSizes: (number | 'auto' | undefined)[];
|
|
@@ -38,8 +54,9 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
38
54
|
config: MatAutocompleteFieldConfig;
|
|
39
55
|
i18nPrefix: string;
|
|
40
56
|
noResultMessage: string;
|
|
41
|
-
|
|
57
|
+
panelClass: string;
|
|
42
58
|
panelWidth: string;
|
|
59
|
+
disableRipple: boolean;
|
|
43
60
|
matAutocompletePosition: 'auto' | 'above' | 'below';
|
|
44
61
|
itemSize: string;
|
|
45
62
|
fetchMoreThreshold: string;
|
|
@@ -47,6 +64,15 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
47
64
|
showLoadingSpinner: boolean;
|
|
48
65
|
chipColor: ThemePalette;
|
|
49
66
|
debug: boolean;
|
|
67
|
+
applyImplicitValue: boolean | ((value: any) => boolean);
|
|
68
|
+
dropButtonTitle: string;
|
|
69
|
+
clearButtonTitle: string;
|
|
70
|
+
trimSearchText: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Use panelClass instead
|
|
73
|
+
*/
|
|
74
|
+
set classList(value: string);
|
|
75
|
+
get classList(): string;
|
|
50
76
|
clicked: EventEmitter<MouseEvent>;
|
|
51
77
|
blurred: EventEmitter<FocusEvent>;
|
|
52
78
|
focused: EventEmitter<FocusEvent>;
|
|
@@ -56,20 +82,6 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
56
82
|
matInputText: ElementRef;
|
|
57
83
|
autocomplete: MatAutocomplete;
|
|
58
84
|
autocompleteTrigger: MatAutocompleteTrigger;
|
|
59
|
-
_tabindex: number;
|
|
60
|
-
$inputItems: BehaviorSubject<any[]>;
|
|
61
|
-
$filteredItems: BehaviorSubject<any[]>;
|
|
62
|
-
inputControl: UntypedFormControl;
|
|
63
|
-
_moreItemsCount: number;
|
|
64
|
-
_fetchMore$: EventEmitter<Event>;
|
|
65
|
-
private _onFetchMoreCallback;
|
|
66
|
-
private _implicitValue;
|
|
67
|
-
private _subscription;
|
|
68
|
-
private _itemsSubscription;
|
|
69
|
-
private _openedSubscription;
|
|
70
|
-
private _$filter;
|
|
71
|
-
private _itemCount;
|
|
72
|
-
private _reload$;
|
|
73
85
|
constructor(cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
74
86
|
get itemCount(): number;
|
|
75
87
|
get canFetchMore(): boolean;
|
|
@@ -88,9 +100,9 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
88
100
|
/**
|
|
89
101
|
* Add item to chips
|
|
90
102
|
*
|
|
91
|
-
* @param
|
|
103
|
+
* @param item
|
|
92
104
|
*/
|
|
93
|
-
add(
|
|
105
|
+
add(item: any): void;
|
|
94
106
|
/**
|
|
95
107
|
* Remove item from chips
|
|
96
108
|
*
|
|
@@ -121,5 +133,18 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
121
133
|
private markForCheck;
|
|
122
134
|
private markAsLoading;
|
|
123
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsField, [null, { optional: true; }]>;
|
|
124
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipsField, "mat-chips-field", never, { "equals": { "alias": "equals"; "required": false; }; "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; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "
|
|
136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipsField, "mat-chips-field", never, { "equals": { "alias": "equals"; "required": false; }; "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; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displaySeparator": { "alias": "displaySeparator"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "matAutocompletePosition": { "alias": "matAutocompletePosition"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "fetchMoreThreshold": { "alias": "fetchMoreThreshold"; "required": false; }; "suggestLengthThreshold": { "alias": "suggestLengthThreshold"; "required": false; }; "showLoadingSpinner": { "alias": "showLoadingSpinner"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "applyImplicitValue": { "alias": "applyImplicitValue"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "trimSearchText": { "alias": "trimSearchText"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; }, never, ["[matAfter]", "[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
137
|
+
static ngAcceptInputType_required: unknown;
|
|
138
|
+
static ngAcceptInputType_mobile: unknown;
|
|
139
|
+
static ngAcceptInputType_readonly: unknown;
|
|
140
|
+
static ngAcceptInputType_clearable: unknown;
|
|
141
|
+
static ngAcceptInputType_debounceTime: unknown;
|
|
142
|
+
static ngAcceptInputType_highlightAccent: unknown;
|
|
143
|
+
static ngAcceptInputType_showAllOnFocus: unknown;
|
|
144
|
+
static ngAcceptInputType_showPanelOnFocus: unknown;
|
|
145
|
+
static ngAcceptInputType_autofocus: unknown;
|
|
146
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
147
|
+
static ngAcceptInputType_suggestLengthThreshold: unknown;
|
|
148
|
+
static ngAcceptInputType_showLoadingSpinner: unknown;
|
|
149
|
+
static ngAcceptInputType_debug: unknown;
|
|
125
150
|
}
|
|
@@ -16,6 +16,7 @@ export declare class ChipsTestPage implements OnInit {
|
|
|
16
16
|
form: UntypedFormGroup;
|
|
17
17
|
autocompleteFields: MatAutocompleteConfigHolder;
|
|
18
18
|
appearance: MatFormFieldAppearance;
|
|
19
|
+
mobile: boolean;
|
|
19
20
|
constructor(formBuilder: UntypedFormBuilder);
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
loadData(): Promise<void>;
|
|
@@ -19,6 +19,6 @@ import * as i17 from "@ngx-translate/core";
|
|
|
19
19
|
import * as i18 from "../../directives/directives.module";
|
|
20
20
|
export declare class SharedMatDateTimeModule {
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatDateTimeModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatDateTimeModule, [typeof i1.MatDate, typeof i2.MatDateTime, typeof i3.MatDateShort], [typeof i4.CommonModule, typeof i5.IonicModule, typeof i6.ReactiveFormsModule, typeof i7.SharedPipesModule, typeof i8.MatCommonModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatDatepickerModule, typeof i14.MatMomentDateModule, typeof i15.
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatDateTimeModule, [typeof i1.MatDate, typeof i2.MatDateTime, typeof i3.MatDateShort], [typeof i4.CommonModule, typeof i5.IonicModule, typeof i6.ReactiveFormsModule, typeof i7.SharedPipesModule, typeof i8.MatCommonModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatDatepickerModule, typeof i14.MatMomentDateModule, typeof i15.MaskitoDirective, typeof i16.NgxMaterialTimepickerModule, typeof i17.TranslateModule, typeof i18.SharedDirectivesModule], [typeof i11.MatIconModule, typeof i1.MatDate, typeof i2.MatDateTime, typeof i3.MatDateShort]>;
|
|
23
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatDateTimeModule>;
|
|
24
24
|
}
|