@sumaris-net/ngx-components 4.0.0-rc9 → 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 +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 +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
|
@@ -21,6 +21,4 @@ export declare class EnvironmentHttpLoader<T extends Environment = Environment>
|
|
|
21
21
|
get(): T;
|
|
22
22
|
load(): Promise<T>;
|
|
23
23
|
protected fetch(url: string): Promise<Partial<T>>;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentHttpLoader<any>, never>;
|
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentHttpLoader<any>>;
|
|
26
24
|
}
|
|
@@ -5,3 +5,18 @@
|
|
|
5
5
|
$remSize: $size / 16px;
|
|
6
6
|
@return $remSize * 1rem;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
@function get-color-contrast($color, $bw: false) {
|
|
10
|
+
$lightness: lightness($color);
|
|
11
|
+
|
|
12
|
+
@if $bw == true {
|
|
13
|
+
@if $lightness > 50% {
|
|
14
|
+
@return #000000; // retourne noir si la couleur est claire
|
|
15
|
+
} @else {
|
|
16
|
+
@return #ffffff; // retourne blanc si la couleur est foncée
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
@else {
|
|
20
|
+
@return invert($color); // retourne la couleur inversée si bw n'est pas true
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/theme/_icons.scss
CHANGED
|
@@ -54,15 +54,21 @@ $dark: #222428 !default;
|
|
|
54
54
|
$transparent: transparent;
|
|
55
55
|
|
|
56
56
|
// Main background color
|
|
57
|
-
$background-color: #fff
|
|
57
|
+
$background-color-value: #fff;
|
|
58
|
+
$background-color-rgb-value: 255, 255, 255;
|
|
59
|
+
$ion-toolbar-background: whitesmoke !default;
|
|
60
|
+
|
|
58
61
|
// Text color
|
|
62
|
+
$text-color-value: rgba(black, 0.87);
|
|
63
|
+
$text-color-rgb-value: 0,0,0;
|
|
64
|
+
|
|
59
65
|
$dark-primary-text: rgba(black, 0.87);
|
|
60
66
|
$dark-secondary-text: rgba(black, 0.54);
|
|
61
67
|
$dark-disabled-text: rgba(black, 0.38);
|
|
62
68
|
$light-primary-text: white;
|
|
63
69
|
$light-secondary-text: rgba(white, 0.7);
|
|
64
70
|
$light-disabled-text: rgba(white, 0.5);
|
|
65
|
-
$
|
|
71
|
+
$card-background-color: rgba(white, 0.7);
|
|
66
72
|
|
|
67
73
|
// Default General Colors
|
|
68
74
|
// --------------------------------------------------
|
package/src/theme/_ionic.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* Core CSS required for Ionic components to work properly */
|
|
2
|
-
@import "
|
|
2
|
+
@import "@ionic/angular/css/core.css";
|
|
3
3
|
|
|
4
4
|
/* Basic CSS for apps built with Ionic */
|
|
5
|
-
@import "
|
|
6
|
-
@import "
|
|
7
|
-
@import "
|
|
8
|
-
@import '
|
|
5
|
+
@import "@ionic/angular/css/normalize.css";
|
|
6
|
+
@import "@ionic/angular/css/structure.css";
|
|
7
|
+
@import "@ionic/angular/css/typography.css";
|
|
8
|
+
@import '@ionic/angular/css/display.css';
|
|
9
9
|
|
|
10
10
|
/* Optional CSS utils that can be commented out */
|
|
11
|
-
@import "
|
|
12
|
-
@import "
|
|
13
|
-
@import "
|
|
14
|
-
@import "
|
|
15
|
-
@import "
|
|
11
|
+
@import "@ionic/angular/css/padding.css";
|
|
12
|
+
@import "@ionic/angular/css/float-elements.css";
|
|
13
|
+
@import "@ionic/angular/css/text-alignment.css";
|
|
14
|
+
@import "@ionic/angular/css/text-transformation.css";
|
|
15
|
+
@import "@ionic/angular/css/flex-utils.css";
|
|
16
16
|
|
|
17
17
|
// --------------------------------------------------
|
|
18
18
|
// Override Ionic style
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// Import material theme
|
|
3
3
|
// --------------------------------------------------
|
|
4
4
|
@use '@angular/material' as mat;
|
|
5
|
-
@include mat.core();
|
|
6
5
|
|
|
7
6
|
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
|
8
7
|
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
|
@@ -40,63 +39,34 @@ $mat-indigo-app: (
|
|
|
40
39
|
A700: white
|
|
41
40
|
)
|
|
42
41
|
);
|
|
43
|
-
//mat.$light-theme-background-palette: (
|
|
44
|
-
// status-bar: map_get(mat.$grey-palette, 300),
|
|
45
|
-
// app-bar: map_get(mat.$grey-palette, 100),
|
|
46
|
-
// background: var(--background, map_get(mat.$grey-palette, 50)),
|
|
47
|
-
// hover: rgba(black, 0.04), // TODO(kara): check style with Material Design UX
|
|
48
|
-
// card: white,
|
|
49
|
-
// dialog: white,
|
|
50
|
-
// disabled-button: rgba(black, 0.12),
|
|
51
|
-
// raised-button: white,
|
|
52
|
-
// focused-button: rgba(black, 0.12),
|
|
53
|
-
// selected-button: map_get(mat.$grey-palette, 300),
|
|
54
|
-
// selected-disabled-button: map_get(mat.$grey-palette, 400),
|
|
55
|
-
// disabled-button-toggle: map_get(mat.$grey-palette, 200),
|
|
56
|
-
// unselected-chip: map_get(mat.$grey-palette, 300),
|
|
57
|
-
// disabled-list-option: map_get(mat.$grey-palette, 200),
|
|
58
|
-
//);
|
|
59
42
|
|
|
60
43
|
// FIXME: Why loader toolbar is so dark ?
|
|
61
|
-
$candy-app-primary: mat.define-palette($mat-indigo-app, 500, 100, 900);
|
|
44
|
+
$candy-app-primary: mat.m2-define-palette($mat-indigo-app, 500, 100, 900);
|
|
62
45
|
|
|
63
|
-
$candy-app-accent: mat.define-palette($mat-indigo-app, A200, A100, A400);
|
|
46
|
+
$candy-app-accent: mat.m2-define-palette($mat-indigo-app, A200, A100, A400);
|
|
64
47
|
// The warn palette is optional (defaults to red).
|
|
65
|
-
$candy-app-warn: mat.define-palette(mat.$red-palette);
|
|
48
|
+
$candy-app-warn: mat.m2-define-palette(mat.$m2-red-palette);
|
|
66
49
|
// Create the theme object (a Sass map containing all of the palettes).
|
|
67
|
-
$candy-
|
|
50
|
+
$candy-light-theme: mat.m2-define-light-theme((
|
|
51
|
+
color: (
|
|
52
|
+
primary: $candy-app-primary,
|
|
53
|
+
accent: $candy-app-accent,
|
|
54
|
+
warn: $candy-app-warn,
|
|
55
|
+
),
|
|
56
|
+
typography: mat.m2-define-typography-config(),
|
|
57
|
+
density: 0,
|
|
58
|
+
));
|
|
59
|
+
$candy-dark-theme: mat.m2-define-dark-theme((
|
|
68
60
|
color: (
|
|
69
61
|
primary: $candy-app-primary,
|
|
70
62
|
accent: $candy-app-accent,
|
|
71
63
|
warn: $candy-app-warn,
|
|
72
64
|
),
|
|
73
|
-
typography: mat.define-typography-config(),
|
|
74
65
|
density: 0,
|
|
75
|
-
|
|
76
66
|
));
|
|
77
|
-
|
|
78
|
-
@include mat.all-component-themes($candy-app-theme);
|
|
79
|
-
|
|
80
|
-
|
|
81
67
|
// --------------------------------------------------
|
|
82
68
|
// Material theme
|
|
83
69
|
// --------------------------------------------------
|
|
84
|
-
//$primary: mat.define-palette(mat.$indigo-palette, 500);
|
|
85
|
-
//$accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
|
86
|
-
//$warn: mat.define-palette(mat.$red-palette);
|
|
87
|
-
//
|
|
88
|
-
//$theme: mat.define-light-theme((
|
|
89
|
-
// color: (
|
|
90
|
-
// primary: $primary,
|
|
91
|
-
// accent: $accent,
|
|
92
|
-
// warn: $warn,
|
|
93
|
-
// ),
|
|
94
|
-
// typography: mat.define-typography-config(),
|
|
95
|
-
// density: 0,
|
|
96
|
-
//));
|
|
97
|
-
//@include mat.all-component-themes($theme);
|
|
98
|
-
|
|
99
|
-
|
|
100
70
|
|
|
101
71
|
// Expose some variables
|
|
102
72
|
$mat-tab-link-height: 48px !default;
|
|
@@ -104,3 +74,6 @@ $mat-tab-bar-height: 48px !default;
|
|
|
104
74
|
$mat-tab-animation-duration: 200ms !default;
|
|
105
75
|
$mat-toolbar-height-desktop: 64px !default;
|
|
106
76
|
$mat-toolbar-height-mobile: 56px !default;
|
|
77
|
+
$mat-toolbar-background-color: var(--ion-toolbar-background, var(--ion-background-color, whitesmoke)) !default;
|
|
78
|
+
$mat-option-min-height: 48px !default;
|
|
79
|
+
$mat-option-max-height: 48px !default;
|
package/src/theme/_material.scss
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
// Standard material style
|
|
5
|
+
// --------------------------------------------------
|
|
6
|
+
@include mat.core();
|
|
7
|
+
@include mat.all-component-themes($candy-light-theme);
|
|
8
|
+
|
|
1
9
|
// --------------------------------------------------
|
|
2
10
|
// Override material style
|
|
3
11
|
// --------------------------------------------------
|
|
@@ -16,41 +24,66 @@
|
|
|
16
24
|
min-width: 160px !important;
|
|
17
25
|
}
|
|
18
26
|
.mat-mdc-tab-group, .mat-mdc-tab-nav-bar {
|
|
19
|
-
--mat-tab-header-active-label-text-color:
|
|
20
|
-
--mat-tab-header-active-focus-label-text-color:
|
|
21
|
-
--mat-tab-header-active-hover-label-text-color:
|
|
27
|
+
--mat-tab-header-active-label-text-color: rgba($text-color-rgb, .8);
|
|
28
|
+
--mat-tab-header-active-focus-label-text-color: rgba($text-color-rgb, .8);
|
|
29
|
+
--mat-tab-header-active-hover-label-text-color: rgba($text-color-rgb, .8);
|
|
30
|
+
--mat-tab-header-inactive-ripple-color: rgba(var(--ion-color-primary-rgb), 0.18);
|
|
31
|
+
--mat-tab-header-pagination-icon-color: $text-color;
|
|
32
|
+
}
|
|
33
|
+
.mat-mdc-tab-header {
|
|
34
|
+
--mat-tab-header-label-text-tracking: 0.0178571429em;
|
|
22
35
|
}
|
|
23
36
|
.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
|
|
24
37
|
transform: translateY(0px) !important;
|
|
25
38
|
}
|
|
26
39
|
|
|
27
40
|
// Icon, Button
|
|
41
|
+
.mat-button.mat-primary,
|
|
28
42
|
.mat-icon.mat-primary,
|
|
29
43
|
.mat-icon-button.mat-primary,
|
|
30
|
-
.mat-button.mat-primary,
|
|
44
|
+
.mat-mdc-button.mat-primary,
|
|
45
|
+
.mat-mdc-icon-button.mat-primary,
|
|
31
46
|
.mat-stroked-button.mat-primary {
|
|
32
47
|
color: var(--ion-color-tertiary, $tertiary);
|
|
33
48
|
}
|
|
34
|
-
.mat-icon.mat-secondary,
|
|
35
49
|
.mat-button.mat-secondary,
|
|
50
|
+
.mat-icon.mat-secondary,
|
|
36
51
|
.mat-icon-button.mat-secondary,
|
|
52
|
+
.mat-mdc-button.mat-secondary,
|
|
53
|
+
.mat-mdc-icon-button.mat-secondary,
|
|
37
54
|
.mat-stroked-button.mat-secondary {
|
|
38
55
|
color: var(--ion-color-secondary, $secondary);
|
|
39
56
|
}
|
|
40
|
-
.mat-icon.mat-accent,
|
|
41
57
|
.mat-button.mat-accent,
|
|
58
|
+
.mat-icon.mat-accent,
|
|
42
59
|
.mat-icon-button.mat-accent,
|
|
60
|
+
.mat-mdc-button.mat-accent,
|
|
61
|
+
.mat-mdc-icon-button.mat-accent,
|
|
43
62
|
.mat-stroked-button.mat-accent {
|
|
44
|
-
color: var(--ion-color-accent);
|
|
63
|
+
color: var(--ion-color-accent, $accent);
|
|
45
64
|
}
|
|
46
65
|
.mdc-button {
|
|
47
66
|
--mdc-typography-button-letter-spacing: normal;
|
|
67
|
+
--mdc-text-button-label-text-tracking: normal;
|
|
48
68
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
69
|
+
.mat-mdc-menu-item {
|
|
70
|
+
--mat-menu-item-label-text-tracking: normal;
|
|
71
|
+
--mat-menu-item-label-text-size: 14px;
|
|
72
|
+
--mat-menu-item-icon-color: #0000008a;
|
|
73
|
+
}
|
|
74
|
+
.mat-mdc-option {
|
|
75
|
+
--mat-option-label-text-tracking: normal;
|
|
76
|
+
--mat-option-label-text-size: 16px;
|
|
77
|
+
min-height: var(--mat-option-min-height, 48px);
|
|
78
|
+
}
|
|
79
|
+
.mat-mdc-select {
|
|
80
|
+
--mat-select-trigger-text-font: inherit;
|
|
81
|
+
--mat-select-trigger-text-tracking: normal;
|
|
82
|
+
--mat-select-trigger-text-size: inherit;
|
|
83
|
+
--mat-select-disabled-trigger-text-color: inherit;
|
|
84
|
+
--mat-select-trigger-text-line-height: inherit;
|
|
53
85
|
}
|
|
86
|
+
|
|
54
87
|
.mat-badge-primary .mat-badge-content {
|
|
55
88
|
background-color: var(--ion-color-tertiary);
|
|
56
89
|
color: var(--ion-color-tertiary-contrast);
|
|
@@ -64,6 +97,7 @@
|
|
|
64
97
|
color: var(--ion-color-warning-contrast);
|
|
65
98
|
}
|
|
66
99
|
|
|
100
|
+
|
|
67
101
|
// Progress bar
|
|
68
102
|
.mat-progress-bar {
|
|
69
103
|
--background-color: var(--ion-color-primary-tint, mix(#fff, $primary, 10%));
|
|
@@ -81,27 +115,6 @@
|
|
|
81
115
|
}
|
|
82
116
|
}
|
|
83
117
|
|
|
84
|
-
// Date picker
|
|
85
|
-
@media (orientation: landscape) {
|
|
86
|
-
.mat-datepicker-content-touch {
|
|
87
|
-
height: unset !important;
|
|
88
|
-
min-height: 80vh;
|
|
89
|
-
|
|
90
|
-
.mat-calendar-controls {
|
|
91
|
-
margin-top: 0;
|
|
92
|
-
}
|
|
93
|
-
.mat-datepicker-content-container {
|
|
94
|
-
&.mat-datepicker-content-container-with-actions {
|
|
95
|
-
height: unset !important;
|
|
96
|
-
}
|
|
97
|
-
.mat-datepicker-actions {
|
|
98
|
-
background-color: white;
|
|
99
|
-
margin-top: -12px;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
}
|
|
105
118
|
|
|
106
119
|
.mat-option, .mat-mdc-option {
|
|
107
120
|
padding-top: var(--padding-top, 0) !important;
|
package/src/theme/_mixins.scss
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
font-size: calculateRem($size) !important;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
@mixin font-roboto($size: false, $colour: false, $weight: false, $lh: false) {
|
|
13
12
|
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
14
13
|
|
|
@@ -45,18 +44,12 @@
|
|
|
45
44
|
$contrast: map-get($value, contrast);
|
|
46
45
|
$shade: map-get($value, shade);
|
|
47
46
|
$tint: map-get($value, tint);
|
|
48
|
-
--ion-color-base: var(--ion-color-#{""+$color-name},
|
|
49
|
-
|
|
50
|
-
--ion-color-
|
|
51
|
-
|
|
52
|
-
--ion-color-
|
|
53
|
-
|
|
54
|
-
--ion-color-contrast-rgb: var(--ion-color-#{""+$color-name}-contrast-rgb,
|
|
55
|
-
#{color-to-rgb-list($contrast)}) !important;
|
|
56
|
-
--ion-color-shade: var(--ion-color-#{""+$color-name}-shade,
|
|
57
|
-
#{$shade}) !important;
|
|
58
|
-
--ion-color-tint: var(--ion-color-#{""+$color-name}-tint,
|
|
59
|
-
#{$tint}) !important;
|
|
47
|
+
--ion-color-base: var(--ion-color-#{""+$color-name}, #{$base}) !important;
|
|
48
|
+
--ion-color-base-rgb: var(--ion-color-#{""+$color-name}-rgb, #{color-to-rgb-list($base)}) !important;
|
|
49
|
+
--ion-color-contrast: var(--ion-color-#{""+$color-name}-contrast, #{$contrast}) !important;
|
|
50
|
+
--ion-color-contrast-rgb: var(--ion-color-#{""+$color-name}-contrast-rgb, #{color-to-rgb-list($contrast)}) !important;
|
|
51
|
+
--ion-color-shade: var(--ion-color-#{""+$color-name}-shade, #{$shade}) !important;
|
|
52
|
+
--ion-color-tint: var(--ion-color-#{""+$color-name}-tint, #{$tint}) !important;
|
|
60
53
|
}
|
|
61
54
|
|
|
62
55
|
@mixin generate-color-list($color-name) {
|
|
@@ -73,6 +66,20 @@
|
|
|
73
66
|
--ion-color-#{""+$color-name}-tint: #{$tint};
|
|
74
67
|
}
|
|
75
68
|
|
|
69
|
+
@mixin generate-dark-color-list($color-name) {
|
|
70
|
+
$value: map-get($colors, $color-name);
|
|
71
|
+
$base: mix(map-get($value, base), #000, 50%);
|
|
72
|
+
$contrast: get-color-contrast($base, true);
|
|
73
|
+
$shade: lighten($base, 10%);
|
|
74
|
+
$tint: darken($base, 12%);
|
|
75
|
+
--ion-color-#{""+$color-name} : #{$base};
|
|
76
|
+
--ion-color-#{""+$color-name}-rgb: #{color-to-rgb-list($base)};
|
|
77
|
+
--ion-color-#{""+$color-name}-contrast: #{$contrast};
|
|
78
|
+
--ion-color-#{""+$color-name}-contrast-rgb: #{color-to-rgb-list($contrast)};
|
|
79
|
+
--ion-color-#{""+$color-name}-shade: #{$shade};
|
|
80
|
+
--ion-color-#{""+$color-name}-tint: #{$tint};
|
|
81
|
+
}
|
|
82
|
+
|
|
76
83
|
@mixin set-color-each-ion-colors($element-name) {
|
|
77
84
|
|
|
78
85
|
@each $color-name, $value in $colors {
|
|
@@ -95,24 +102,52 @@
|
|
|
95
102
|
@include generate-color-list($color-name);
|
|
96
103
|
}
|
|
97
104
|
|
|
105
|
+
--ion-text-color: #{$text-color-value};
|
|
106
|
+
--ion-text-color-rgb: #{$text-color-rgb-value};
|
|
98
107
|
--ion-grid-column-padding: #{$ion-grid-column-padding};
|
|
99
108
|
--ion-padding: #{$ion-padding};
|
|
100
109
|
--ion-margin: #{$ion-margin};
|
|
110
|
+
--ion-background-color: #{$background-color-value};
|
|
111
|
+
--ion-background-color-rgb: #{$background-color-rgb-value};
|
|
112
|
+
--ion-toolbar-height: #{$ion-toolbar-height};
|
|
113
|
+
--ion-toolbar-background: #{$ion-toolbar-background};
|
|
114
|
+
--ion-backdrop-color: #{$text-color};
|
|
115
|
+
--ion-backdrop-color-rgb: #{$text-color-rgb};
|
|
116
|
+
--ion-backdrop-opacity: 0.32;
|
|
117
|
+
--ion-card-background-color: #{$card-background-color};
|
|
101
118
|
|
|
102
119
|
--expansion-panel-padding: var(--ion-padding);
|
|
103
120
|
--expansion-panel-header-padding: var(--ion-padding);
|
|
104
121
|
|
|
122
|
+
--mat-tab-link-height: #{$mat-tab-link-height};
|
|
123
|
+
--mat-tab-bar-height: #{$mat-tab-bar-height};
|
|
124
|
+
|
|
105
125
|
--mat-toolbar-height: #{$mat-toolbar-height-desktop};
|
|
106
126
|
--mat-paginator-height: mat.$paginator-height;
|
|
107
|
-
--
|
|
127
|
+
--mat-option-min-height: #{$mat-option-min-height};
|
|
128
|
+
--mat-option-max-height: #{$mat-option-max-height};
|
|
129
|
+
--mat-toolbar-background-color: var(--ion-toolbar-background);
|
|
130
|
+
--mat-toolbar-container-background-color: var(--ion-toolbar-background);
|
|
131
|
+
--mat-toolbar-container-text-color: var(--ion-text-color);
|
|
132
|
+
--mat-table-background-color: var(--ion-background-color);
|
|
108
133
|
|
|
109
134
|
--app-table-header-height: #{$app-table-header-height};
|
|
110
|
-
--app-toolbar-height: #{$app-toolbar-height};
|
|
111
135
|
--app-paginator-height: #{$app-paginator-height};
|
|
112
|
-
--app-
|
|
136
|
+
--app-toolbar-height: #{$app-toolbar-height};
|
|
113
137
|
--app-footer-height: var(--app-form-buttons-bar-height);
|
|
114
|
-
--
|
|
115
|
-
--
|
|
138
|
+
--app-form-buttons-bar-height: #{$app-form-buttons-bar-height};
|
|
139
|
+
--app-form-color: #{$app-form-color};
|
|
140
|
+
--app-form-color-rgb: #{$app-form-color-rgb};
|
|
141
|
+
--app-form-color-disabled: #{$app-form-color-disabled};
|
|
142
|
+
--app-form-color-computed: #{$app-form-color-computed};
|
|
143
|
+
--app-form-field-background-color: #{$app-form-field-background-color};
|
|
144
|
+
--app-form-field-background-color-shade: #{$app-form-color-background-color-shade};
|
|
145
|
+
--app-form-field-focus-background-color: #{$app-form-field-focus-background-color};
|
|
146
|
+
--app-form-field-disabled-background-color: #{$app-form-field-disabled-background-color};
|
|
147
|
+
--app-form-field-label-color: #{$app-form-field-label-color};
|
|
148
|
+
--app-form-field-disabled-label-color: #{$app-form-field-disabled-label-color};
|
|
149
|
+
--app-table-row-item-selected-background-color: #{$app-table-row-item-selected-background-color};
|
|
150
|
+
--app-table-row-item-selected-text-color: #{$app-table-row-item-selected-text-color};
|
|
116
151
|
}
|
|
117
152
|
|
|
118
153
|
@mixin css-variables-to-root-mobile() {
|
|
@@ -121,4 +156,50 @@
|
|
|
121
156
|
// Disable form footer, in mobile
|
|
122
157
|
--app-form-buttons-bar-height: 0px;
|
|
123
158
|
--app-footer-height: 0px;
|
|
159
|
+
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@mixin css-variables-to-root-dark() {
|
|
163
|
+
|
|
164
|
+
@include mat.all-component-colors($candy-dark-theme);
|
|
165
|
+
|
|
166
|
+
// Change scroll bar style
|
|
167
|
+
color-scheme: dark;
|
|
168
|
+
|
|
169
|
+
@each $color-name,
|
|
170
|
+
$value in $colors {
|
|
171
|
+
@include generate-dark-color-list($color-name);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Inverse background/text color
|
|
175
|
+
--ion-background-color: #{$text-color-value};
|
|
176
|
+
--ion-background-color-rgb: #{$text-color-rgb-value};
|
|
177
|
+
--ion-text-color: #{$background-color-value};
|
|
178
|
+
--ion-text-color-rgb: #{$background-color-rgb-value};
|
|
179
|
+
--app-form-color: #{$background-color-value};
|
|
180
|
+
--app-form-color-rgb: #{$background-color-rgb-value};
|
|
181
|
+
--app-form-field-focus-background-color: rgba(#{$background-color-rgb-value}, 0.87);
|
|
182
|
+
|
|
183
|
+
// Step colors
|
|
184
|
+
--ion-color-step-50: #{$text-color-step-50};
|
|
185
|
+
--ion-color-step-100: #{$text-color-step-100};
|
|
186
|
+
--ion-color-step-150: #{$text-color-step-150};
|
|
187
|
+
--ion-color-step-200: #{$text-color-step-200};
|
|
188
|
+
--ion-color-step-250: #{$text-color-step-250};
|
|
189
|
+
--ion-color-step-300: #{$text-color-step-200};
|
|
190
|
+
--ion-color-step-350: #{$text-color-step-350};
|
|
191
|
+
--ion-color-step-400: #{$text-color-step-400};
|
|
192
|
+
--ion-color-step-450: #{$text-color-step-450};
|
|
193
|
+
--ion-color-step-500: #{$text-color-step-500};
|
|
194
|
+
--ion-color-step-550: #{$text-color-step-550};
|
|
195
|
+
--ion-color-step-600: #{$text-color-step-600};
|
|
196
|
+
--ion-color-step-650: #{$text-color-step-650};
|
|
197
|
+
--ion-color-step-700: #{$text-color-step-700};
|
|
198
|
+
--ion-color-step-750: #{$text-color-step-750};
|
|
199
|
+
--ion-color-step-800: #{$text-color-step-800};
|
|
200
|
+
--ion-color-step-850: #{$text-color-step-850};
|
|
201
|
+
--ion-color-step-900: #{$text-color-step-900};
|
|
202
|
+
--ion-color-step-950: #{$text-color-step-950};
|
|
203
|
+
|
|
204
|
+
|
|
124
205
|
}
|