@sumaris-net/ngx-components 2.7.3-rc9 → 2.7.3
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/esm2022/src/app/admin/admin-routing.module.mjs +4 -4
- package/esm2022/src/app/admin/admin.module.mjs +4 -4
- package/esm2022/src/app/admin/services/person.service.mjs +3 -3
- package/esm2022/src/app/admin/services/validator/person.validator.mjs +3 -3
- package/esm2022/src/app/admin/users/users.mjs +4 -4
- package/esm2022/src/app/admin/users/users.module.mjs +4 -4
- package/esm2022/src/app/core/about/about.modal.mjs +3 -3
- package/esm2022/src/app/core/about/about.module.mjs +4 -4
- package/esm2022/src/app/core/account/account.module.mjs +4 -4
- package/esm2022/src/app/core/account/account.page.mjs +3 -3
- package/esm2022/src/app/core/account/new-token.modal.mjs +3 -3
- package/esm2022/src/app/core/account/token.table.mjs +3 -3
- package/esm2022/src/app/core/auth/auth.form.mjs +3 -3
- package/esm2022/src/app/core/auth/auth.modal.mjs +3 -3
- package/esm2022/src/app/core/auth/auth.module.mjs +4 -4
- package/esm2022/src/app/core/core.module.mjs +4 -4
- package/esm2022/src/app/core/core.testing.module.mjs +4 -4
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.component.mjs +3 -3
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.module.mjs +4 -4
- package/esm2022/src/app/core/form/entity/editor.class.mjs +6 -6
- package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +3 -3
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +3 -3
- package/esm2022/src/app/core/form/entity/entity-metadata.component.mjs +3 -3
- package/esm2022/src/app/core/form/entity/entity.module.mjs +4 -4
- package/esm2022/src/app/core/form/form.class.mjs +3 -3
- package/esm2022/src/app/core/form/form.module.mjs +4 -4
- package/esm2022/src/app/core/form/list/list.form.mjs +3 -3
- package/esm2022/src/app/core/form/list/list.module.mjs +4 -4
- package/esm2022/src/app/core/form/properties/properties.form.mjs +3 -3
- package/esm2022/src/app/core/form/properties/properties.module.mjs +4 -4
- package/esm2022/src/app/core/form/properties/properties.table.mjs +6 -6
- package/esm2022/src/app/core/form/properties/property.validator.mjs +3 -3
- package/esm2022/src/app/core/form/properties/testing/properties-form.test.mjs +3 -3
- package/esm2022/src/app/core/form/properties/testing/properties-form.testing.module.mjs +4 -4
- package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.mjs +3 -3
- package/esm2022/src/app/core/form/text-popover/testing/text-popover.testing.module.mjs +4 -4
- package/esm2022/src/app/core/form/text-popover/text-popover.component.mjs +3 -3
- package/esm2022/src/app/core/form/text-popover/text-popover.module.mjs +4 -4
- package/esm2022/src/app/core/graphql/graphql.module.mjs +4 -4
- package/esm2022/src/app/core/graphql/graphql.service.mjs +3 -3
- package/esm2022/src/app/core/home/home.mjs +5 -5
- package/esm2022/src/app/core/home/home.module.mjs +4 -4
- package/esm2022/src/app/core/icon/icon.component.mjs +3 -3
- package/esm2022/src/app/core/icon/icon.module.mjs +4 -4
- package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +3 -3
- package/esm2022/src/app/core/install/install-upgrade-card.module.mjs +4 -4
- package/esm2022/src/app/core/menu/menu.component.mjs +5 -5
- package/esm2022/src/app/core/menu/menu.module.mjs +4 -4
- package/esm2022/src/app/core/menu/menu.service.mjs +3 -3
- package/esm2022/src/app/core/menu/sub-menu-tab.directive.mjs +3 -3
- package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +7 -6
- package/esm2022/src/app/core/menu/testing/menu.testing.mjs +42 -7
- package/esm2022/src/app/core/menu/testing/menu.testing.module.mjs +4 -4
- package/esm2022/src/app/core/offline/update-offline-mode-card.component.mjs +3 -3
- package/esm2022/src/app/core/offline/update-offline-mode-card.module.mjs +4 -4
- package/esm2022/src/app/core/peer/select-peer.modal.mjs +3 -3
- package/esm2022/src/app/core/peer/select-peer.module.mjs +4 -4
- package/esm2022/src/app/core/register/register-confirm.page.mjs +3 -3
- package/esm2022/src/app/core/register/register.form.mjs +3 -3
- package/esm2022/src/app/core/register/register.modal.mjs +3 -3
- package/esm2022/src/app/core/register/register.module.mjs +4 -4
- package/esm2022/src/app/core/services/account.service.mjs +3 -3
- package/esm2022/src/app/core/services/auth-guard.service.mjs +3 -3
- package/esm2022/src/app/core/services/base-entity-service.class.mjs +3 -3
- package/esm2022/src/app/core/services/base-graphql-service.class.mjs +3 -3
- package/esm2022/src/app/core/services/config/core.config.mjs +7 -1
- package/esm2022/src/app/core/services/config.service.mjs +3 -3
- package/esm2022/src/app/core/services/crypto.service.mjs +3 -3
- package/esm2022/src/app/core/services/local-settings.service.mjs +17 -4
- package/esm2022/src/app/core/services/model/settings.model.mjs +1 -1
- package/esm2022/src/app/core/services/network.service.mjs +3 -3
- package/esm2022/src/app/core/services/pipes/account.pipes.mjs +8 -8
- package/esm2022/src/app/core/services/pipes/department-to-string.pipe.mjs +4 -4
- package/esm2022/src/app/core/services/pipes/person-to-string.pipe.mjs +4 -4
- package/esm2022/src/app/core/services/pipes/pipes.module.mjs +4 -4
- package/esm2022/src/app/core/services/pipes/referential-to-string.pipe.mjs +3 -3
- package/esm2022/src/app/core/services/pipes/usage-mode.pipes.mjs +8 -8
- package/esm2022/src/app/core/services/platform.service.mjs +3 -3
- package/esm2022/src/app/core/services/storage/entities-storage.service.mjs +3 -3
- package/esm2022/src/app/core/services/testing/referential.validator.mjs +3 -3
- package/esm2022/src/app/core/services/validator/account.validator.mjs +3 -3
- package/esm2022/src/app/core/services/validator/base.validator.class.mjs +3 -3
- package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +12 -10
- package/esm2022/src/app/core/services/validator/user-settings.validator.mjs +3 -3
- package/esm2022/src/app/core/services/validator/user-token.validator.mjs +3 -3
- package/esm2022/src/app/core/settings/settings.module.mjs +4 -4
- package/esm2022/src/app/core/settings/settings.page.mjs +13 -5
- package/esm2022/src/app/core/table/actions-column.component.mjs +3 -3
- package/esm2022/src/app/core/table/async-table.class.mjs +3 -3
- package/esm2022/src/app/core/table/entities-async-table-datasource.class.mjs +3 -3
- package/esm2022/src/app/core/table/entities-table-datasource.class.mjs +3 -3
- package/esm2022/src/app/core/table/memory-table.class.mjs +3 -3
- package/esm2022/src/app/core/table/table-select-columns.component.mjs +3 -3
- package/esm2022/src/app/core/table/table.class.mjs +3 -3
- package/esm2022/src/app/core/table/table.module.mjs +4 -4
- package/esm2022/src/app/core/table/testing/table-validator.service.mjs +7 -4
- package/esm2022/src/app/core/table/testing/table.testing.mjs +42 -23
- package/esm2022/src/app/core/table/testing/table.testing.module.mjs +4 -4
- package/esm2022/src/app/core/table/testing/table2-validator.service.mjs +3 -3
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +4 -4
- package/esm2022/src/app/shared/audio/audio.mjs +3 -3
- package/esm2022/src/app/shared/audio/audio.testing.mjs +3 -3
- package/esm2022/src/app/shared/audio/audio.testing.module.mjs +4 -4
- package/esm2022/src/app/shared/capacitor/keyboard.mjs +3 -3
- package/esm2022/src/app/shared/debug/debug.component.mjs +3 -3
- package/esm2022/src/app/shared/debug/debug.module.mjs +4 -4
- package/esm2022/src/app/shared/directives/autofocus.directive.mjs +3 -3
- package/esm2022/src/app/shared/directives/autotitle.directive.mjs +3 -3
- package/esm2022/src/app/shared/directives/directives.module.mjs +4 -4
- package/esm2022/src/app/shared/directives/drag-and-drop.directive.mjs +3 -3
- package/esm2022/src/app/shared/directives/ng-var.directive.mjs +3 -3
- package/esm2022/src/app/shared/directives/resizable/resizable.component.mjs +3 -3
- package/esm2022/src/app/shared/directives/resizable/resizable.directive.mjs +3 -3
- package/esm2022/src/app/shared/directives/resizable/resizable.module.mjs +4 -4
- package/esm2022/src/app/shared/file/file.service.mjs +3 -3
- package/esm2022/src/app/shared/form/field.component.mjs +12 -9
- package/esm2022/src/app/shared/form/loading-spinner.mjs +3 -3
- package/esm2022/src/app/shared/gesture/gesture-config.mjs +3 -3
- package/esm2022/src/app/shared/guard/component-dirty.guard.mjs +3 -3
- package/esm2022/src/app/shared/help/help.modal.mjs +3 -3
- package/esm2022/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +3 -3
- package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +3 -3
- package/esm2022/src/app/shared/hotkeys/shared-hotkeys.module.mjs +4 -4
- package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +3 -3
- package/esm2022/src/app/shared/image/gallery/image-gallery.module.mjs +4 -4
- package/esm2022/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +3 -3
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +3 -3
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +4 -4
- package/esm2022/src/app/shared/image/image.module.mjs +4 -4
- package/esm2022/src/app/shared/image/image.service.mjs +3 -3
- package/esm2022/src/app/shared/logging/logging-service.class.mjs +3 -3
- package/esm2022/src/app/shared/logging/logging-service.module.mjs +4 -4
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +11 -8
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +4 -4
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +25 -21
- package/esm2022/src/app/shared/material/badge/badge.directive.mjs +3 -3
- package/esm2022/src/app/shared/material/badge/badge.module.mjs +4 -4
- package/esm2022/src/app/shared/material/badge/badge.test.mjs +3 -3
- package/esm2022/src/app/shared/material/boolean/boolean.module.mjs +4 -4
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +5 -5
- package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +8 -5
- package/esm2022/src/app/shared/material/chips/chips.module.mjs +4 -4
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +6 -6
- package/esm2022/src/app/shared/material/chips/testing/chips.test.mjs +6 -5
- package/esm2022/src/app/shared/material/datetime/datetime.module.mjs +4 -4
- package/esm2022/src/app/shared/material/datetime/material.date.mjs +14 -6
- package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +5 -5
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +72 -43
- package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +18 -17
- package/esm2022/src/app/shared/material/datetime/testing/mat-date.test.mjs +14 -13
- package/esm2022/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +11 -12
- package/esm2022/src/app/shared/material/duration/duration.module.mjs +4 -4
- package/esm2022/src/app/shared/material/duration/material.duration.mjs +11 -12
- package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +10 -11
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +18 -13
- package/esm2022/src/app/shared/material/latlong/material.latlong.module.mjs +4 -4
- package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +9 -5
- package/esm2022/src/app/shared/material/material.config.mjs +2 -1
- package/esm2022/src/app/shared/material/material.module.mjs +4 -4
- package/esm2022/src/app/shared/material/material.testing.module.mjs +4 -4
- package/esm2022/src/app/shared/material/paginator/material.paginator-i18n.mjs +3 -3
- package/esm2022/src/app/shared/material/stepper/material.stepper-i18n.mjs +3 -3
- package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +12 -12
- package/esm2022/src/app/shared/material/swipe/swipe.module.mjs +4 -4
- package/esm2022/src/app/shared/material/swipe/testing/swipe.test.mjs +3 -3
- package/esm2022/src/app/shared/material/testing/common.test.mjs +18 -14
- package/esm2022/src/app/shared/material/text/testing/text-form.testing.mjs +7 -6
- package/esm2022/src/app/shared/material/text/text-form.component.mjs +10 -6
- package/esm2022/src/app/shared/material/text/text-form.module.mjs +4 -4
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +3 -3
- package/esm2022/src/app/shared/named-filter/named-filter.module.mjs +4 -4
- package/esm2022/src/app/shared/named-filter/named-filter.service.mjs +3 -3
- package/esm2022/src/app/shared/pipes/arrays.pipe.mjs +24 -24
- package/esm2022/src/app/shared/pipes/colors.pipe.mjs +3 -3
- package/esm2022/src/app/shared/pipes/date-diff-duration.pipe.mjs +4 -4
- package/esm2022/src/app/shared/pipes/date-format.pipe.mjs +6 -6
- package/esm2022/src/app/shared/pipes/date-from-now.pipe.mjs +4 -4
- package/esm2022/src/app/shared/pipes/duration.pipe.mjs +4 -4
- package/esm2022/src/app/shared/pipes/file-size.pipe.mjs +3 -3
- package/esm2022/src/app/shared/pipes/form.pipes.mjs +18 -18
- package/esm2022/src/app/shared/pipes/highlight.pipe.mjs +4 -4
- package/esm2022/src/app/shared/pipes/latlong-format.pipe.mjs +9 -9
- package/esm2022/src/app/shared/pipes/maps.pipe.mjs +12 -12
- package/esm2022/src/app/shared/pipes/maskito.pipe.mjs +40 -19
- package/esm2022/src/app/shared/pipes/math.pipes.mjs +12 -12
- package/esm2022/src/app/shared/pipes/ng-init.pipe.mjs +3 -3
- package/esm2022/src/app/shared/pipes/number-format.pipe.mjs +4 -4
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +4 -4
- package/esm2022/src/app/shared/pipes/property.pipes.mjs +7 -7
- package/esm2022/src/app/shared/pipes/string.pipes.mjs +34 -32
- package/esm2022/src/app/shared/pipes/translate-context.pipe.mjs +8 -8
- package/esm2022/src/app/shared/pipes/types.pipes.mjs +12 -12
- package/esm2022/src/app/shared/rx-state.module.mjs +4 -4
- package/esm2022/src/app/shared/services/memory-entity-service.class.mjs +3 -3
- package/esm2022/src/app/shared/services/progress-bar.service.mjs +3 -3
- package/esm2022/src/app/shared/services/startable-observable-service.class.mjs +3 -3
- package/esm2022/src/app/shared/services/startable-service.class.mjs +3 -3
- package/esm2022/src/app/shared/services/translate-context.service.mjs +3 -3
- package/esm2022/src/app/shared/shared-routing.module.mjs +7 -7
- package/esm2022/src/app/shared/shared.module.mjs +4 -4
- package/esm2022/src/app/shared/shared.testing.module.mjs +4 -4
- package/esm2022/src/app/shared/storage/storage-explorer.component.mjs +3 -3
- package/esm2022/src/app/shared/storage/storage-explorer.module.mjs +4 -4
- package/esm2022/src/app/shared/storage/storage-explorer.testing-routing.module.mjs +4 -4
- package/esm2022/src/app/shared/storage/storage-explorer.testing.module.mjs +4 -4
- package/esm2022/src/app/shared/storage/storage.service.mjs +3 -3
- package/esm2022/src/app/shared/testing/observable.test.mjs +3 -3
- package/esm2022/src/app/shared/testing/tests.page.mjs +3 -3
- package/esm2022/src/app/shared/toast/toast.testing.mjs +3 -3
- package/esm2022/src/app/shared/toast/toast.testing.module.mjs +4 -4
- package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +3 -3
- package/esm2022/src/app/shared/toolbar/toolbar.mjs +3 -3
- package/esm2022/src/app/shared/toolbar/toolbar.module.mjs +4 -4
- package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.mjs +3 -3
- package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.module.mjs +4 -4
- package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +3 -3
- package/esm2022/src/app/shared/upload-file/upload-file.component.mjs +3 -3
- package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +3 -3
- package/esm2022/src/app/social/job/job.module.mjs +4 -4
- package/esm2022/src/app/social/job/progression/job-progression.component.mjs +3 -3
- package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +8 -4
- package/esm2022/src/app/social/job/progression/job-progression.list.mjs +3 -3
- package/esm2022/src/app/social/job/progression/job-progression.service.mjs +11 -7
- package/esm2022/src/app/social/job/testing/job-progression.testing.mjs +3 -3
- package/esm2022/src/app/social/job/testing/job-progression.testing.service.mjs +3 -3
- package/esm2022/src/app/social/job/testing/job.testing.module.mjs +4 -4
- package/esm2022/src/app/social/message/message.form.mjs +3 -3
- package/esm2022/src/app/social/message/message.modal.mjs +3 -3
- package/esm2022/src/app/social/message/message.module.mjs +4 -4
- package/esm2022/src/app/social/message/message.service.mjs +3 -3
- package/esm2022/src/app/social/social.module.mjs +4 -4
- package/esm2022/src/app/social/social.testing.module.mjs +4 -4
- package/esm2022/src/app/social/user-event/notification/user-event-notification.icon.mjs +14 -12
- package/esm2022/src/app/social/user-event/notification/user-event-notification.list.mjs +3 -3
- package/esm2022/src/app/social/user-event/testing/user-event.testing.mjs +3 -3
- package/esm2022/src/app/social/user-event/testing/user-event.testing.module.mjs +4 -4
- package/esm2022/src/app/social/user-event/testing/user-event.testing.service.mjs +3 -3
- package/esm2022/src/app/social/user-event/user-event.module.mjs +4 -4
- package/esm2022/src/app/social/user-event/user-event.service.mjs +8 -6
- package/esm2022/src/environments/environment.class.mjs +4 -2
- package/esm2022/src/environments/environment.loader.mjs +3 -3
- package/esm2022/src/environments/environment.mjs +3 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +1367 -1174
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +11 -11
- package/src/app/core/menu/testing/menu-other.testing.d.ts +1 -1
- package/src/app/core/menu/testing/menu.testing.d.ts +10 -2
- package/src/app/core/services/config/core.config.d.ts +1 -0
- package/src/app/core/services/local-settings.service.d.ts +2 -0
- package/src/app/core/services/model/settings.model.d.ts +1 -0
- package/src/app/core/settings/settings.page.d.ts +2 -0
- package/src/app/shared/form/field.component.d.ts +5 -3
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +3 -2
- package/src/app/shared/material/datetime/material.date.d.ts +3 -2
- package/src/app/shared/material/datetime/material.dateshort.d.ts +1 -1
- package/src/app/shared/material/datetime/material.datetime.d.ts +25 -22
- package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +2 -2
- package/src/app/shared/material/duration/material.duration.d.ts +1 -1
- package/src/app/shared/material/latlong/material.latlong.d.ts +5 -3
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +4 -0
- package/src/app/shared/material/material.config.d.ts +2 -1
- package/src/app/shared/material/text/text-form.component.d.ts +3 -1
- package/src/app/shared/pipes/string.pipes.d.ts +2 -1
- package/src/app/social/user-event/notification/user-event-notification.icon.d.ts +4 -4
- package/src/assets/i18n/en-US.json +1 -0
- package/src/assets/i18n/en.json +1 -0
- package/src/assets/i18n/fr.json +1 -0
- package/src/assets/manifest.json +1 -1
- package/src/environments/environment.class.d.ts +2 -1
- package/src/theme/_ionic.globals.scss +4 -1
- package/src/theme/_material.globals.scss +1 -36
- package/src/theme/_material.scss +30 -8
- package/src/theme/_mixins.scss +20 -5
- package/src/theme/_ngx-components.forms.scss +203 -0
- package/src/theme/_ngx-components.globals.scss +10 -7
- package/src/theme/_ngx-components.scss +6 -198
- package/src/theme/_ngx-components.table.scss +137 -143
- package/src/theme/_ngx-components.tabs.scss +16 -1
- package/src/theme/_theme.scss +1 -0
- package/src/theme/_theme.variables.scss +170 -0
|
@@ -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,22 +39,6 @@ $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
44
|
$candy-app-primary: mat.define-palette($mat-indigo-app, 500, 100, 900);
|
|
@@ -75,28 +58,9 @@ $candy-app-theme: mat.define-light-theme((
|
|
|
75
58
|
|
|
76
59
|
));
|
|
77
60
|
|
|
78
|
-
@include mat.all-component-themes($candy-app-theme);
|
|
79
|
-
|
|
80
|
-
|
|
81
61
|
// --------------------------------------------------
|
|
82
62
|
// Material theme
|
|
83
63
|
// --------------------------------------------------
|
|
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
64
|
|
|
101
65
|
// Expose some variables
|
|
102
66
|
$mat-tab-link-height: 48px !default;
|
|
@@ -104,3 +68,4 @@ $mat-tab-bar-height: 48px !default;
|
|
|
104
68
|
$mat-tab-animation-duration: 200ms !default;
|
|
105
69
|
$mat-toolbar-height-desktop: 64px !default;
|
|
106
70
|
$mat-toolbar-height-mobile: 56px !default;
|
|
71
|
+
$mat-toolbar-background-color: var(--ion-toolbar-background, var(--ion-background-color, whitesmoke)) !default;
|
package/src/theme/_material.scss
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
// Standard metrial style
|
|
5
|
+
// --------------------------------------------------
|
|
6
|
+
@include mat.core();
|
|
7
|
+
@include mat.all-component-themes($candy-app-theme);
|
|
8
|
+
|
|
1
9
|
// --------------------------------------------------
|
|
2
10
|
// Override material style
|
|
3
11
|
// --------------------------------------------------
|
|
@@ -28,23 +36,29 @@
|
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
// Icon, Button
|
|
39
|
+
.mat-button.mat-primary,
|
|
31
40
|
.mat-icon.mat-primary,
|
|
32
41
|
.mat-icon-button.mat-primary,
|
|
33
|
-
.mat-button.mat-primary,
|
|
42
|
+
.mat-mdc-button.mat-primary,
|
|
43
|
+
.mat-mdc-icon-button.mat-primary,
|
|
34
44
|
.mat-stroked-button.mat-primary {
|
|
35
45
|
color: var(--ion-color-tertiary, $tertiary);
|
|
36
46
|
}
|
|
37
|
-
.mat-icon.mat-secondary,
|
|
38
47
|
.mat-button.mat-secondary,
|
|
48
|
+
.mat-icon.mat-secondary,
|
|
39
49
|
.mat-icon-button.mat-secondary,
|
|
50
|
+
.mat-mdc-button.mat-secondary,
|
|
51
|
+
.mat-mdc-icon-button.mat-secondary,
|
|
40
52
|
.mat-stroked-button.mat-secondary {
|
|
41
53
|
color: var(--ion-color-secondary, $secondary);
|
|
42
54
|
}
|
|
43
|
-
.mat-icon.mat-accent,
|
|
44
55
|
.mat-button.mat-accent,
|
|
56
|
+
.mat-icon.mat-accent,
|
|
45
57
|
.mat-icon-button.mat-accent,
|
|
58
|
+
.mat-mdc-button.mat-accent,
|
|
59
|
+
.mat-mdc-icon-button.mat-accent,
|
|
46
60
|
.mat-stroked-button.mat-accent {
|
|
47
|
-
color: var(--ion-color-accent);
|
|
61
|
+
color: var(--ion-color-accent, $accent);
|
|
48
62
|
}
|
|
49
63
|
.mdc-button {
|
|
50
64
|
--mdc-typography-button-letter-spacing: normal;
|
|
@@ -55,11 +69,18 @@
|
|
|
55
69
|
--mat-menu-item-label-text-size: 14px;
|
|
56
70
|
--mat-menu-item-icon-color: #0000008a;
|
|
57
71
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
padding-left: 2px;
|
|
72
|
+
.mat-mdc-option {
|
|
73
|
+
--mat-option-label-text-tracking: normal;
|
|
74
|
+
--mat-option-label-text-size: 16px;
|
|
62
75
|
}
|
|
76
|
+
.mat-mdc-select {
|
|
77
|
+
--mat-select-trigger-text-font: inherit;
|
|
78
|
+
--mat-select-trigger-text-tracking: normal;
|
|
79
|
+
--mat-select-trigger-text-size: inherit;
|
|
80
|
+
--mat-select-disabled-trigger-text-color: inherit;
|
|
81
|
+
--mat-select-trigger-text-line-height: inherit;
|
|
82
|
+
}
|
|
83
|
+
|
|
63
84
|
.mat-badge-primary .mat-badge-content {
|
|
64
85
|
background-color: var(--ion-color-tertiary);
|
|
65
86
|
color: var(--ion-color-tertiary-contrast);
|
|
@@ -73,6 +94,7 @@
|
|
|
73
94
|
color: var(--ion-color-warning-contrast);
|
|
74
95
|
}
|
|
75
96
|
|
|
97
|
+
|
|
76
98
|
// Progress bar
|
|
77
99
|
.mat-progress-bar {
|
|
78
100
|
--background-color: var(--ion-color-primary-tint, mix(#fff, $primary, 10%));
|
package/src/theme/_mixins.scss
CHANGED
|
@@ -98,21 +98,36 @@
|
|
|
98
98
|
--ion-grid-column-padding: #{$ion-grid-column-padding};
|
|
99
99
|
--ion-padding: #{$ion-padding};
|
|
100
100
|
--ion-margin: #{$ion-margin};
|
|
101
|
+
--ion-background-color: #{$background-color};
|
|
102
|
+
--ion-background-color-rgb: #{$background-color-rgb};
|
|
103
|
+
--ion-toolbar-height: #{$ion-toolbar-height};
|
|
104
|
+
--ion-toolbar-background: #{$ion-toolbar-background};
|
|
101
105
|
|
|
102
106
|
--expansion-panel-padding: var(--ion-padding);
|
|
103
107
|
--expansion-panel-header-padding: var(--ion-padding);
|
|
104
108
|
|
|
109
|
+
--mat-tab-link-height: #{$mat-tab-link-height};
|
|
110
|
+
--mat-tab-bar-height: #{$mat-tab-bar-height};
|
|
111
|
+
|
|
105
112
|
--mat-toolbar-height: #{$mat-toolbar-height-desktop};
|
|
106
113
|
--mat-paginator-height: mat.$paginator-height;
|
|
107
|
-
--
|
|
114
|
+
--mat-toolbar-background-color: var(--ion-toolbar-background);
|
|
115
|
+
--mat-toolbar-container-background-color: var(--ion-toolbar-background);
|
|
116
|
+
--mat-toolbar-container-text-color: var(--ion-text-color);
|
|
117
|
+
--mat-table-background-color: var(--ion-background-color);
|
|
108
118
|
|
|
109
119
|
--app-table-header-height: #{$app-table-header-height};
|
|
110
|
-
--app-toolbar-height: #{$app-toolbar-height};
|
|
111
120
|
--app-paginator-height: #{$app-paginator-height};
|
|
112
|
-
--app-
|
|
121
|
+
--app-toolbar-height: #{$app-toolbar-height};
|
|
113
122
|
--app-footer-height: var(--app-form-buttons-bar-height);
|
|
114
|
-
--
|
|
115
|
-
--
|
|
123
|
+
--app-form-buttons-bar-height: #{$app-form-buttons-bar-height};
|
|
124
|
+
--app-form-color: #{$app-form-color};
|
|
125
|
+
--app-form-color-disabled: #{$app-form-color-disabled};
|
|
126
|
+
--app-form-color-computed: #{$app-form-color-computed};
|
|
127
|
+
--app-form-field-background-color: #{$app-form-field-background-color};
|
|
128
|
+
--app-form-field-disabled-background-color: #{$app-form-field-disabled-background-color};
|
|
129
|
+
--app-table-row-item-selected-background-color: #{$app-table-row-item-selected-background-color};
|
|
130
|
+
--app-table-row-item-selected-text-color: #{$app-table-row-item-selected-text-color};
|
|
116
131
|
}
|
|
117
132
|
|
|
118
133
|
@mixin css-variables-to-root-mobile() {
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
|
|
2
|
+
// --------------------------------------------------
|
|
3
|
+
// Material Forms
|
|
4
|
+
// --------------------------------------------------
|
|
5
|
+
.form-container,
|
|
6
|
+
form.form-container {
|
|
7
|
+
--ion-text-color: var(--app-form-color, #{$app-form-color});
|
|
8
|
+
color: var(--ion-text-color);
|
|
9
|
+
@include font-size(16px);
|
|
10
|
+
|
|
11
|
+
--mdc-filled-text-field-container-color: var(--app-form-field-background-color);
|
|
12
|
+
--mdc-filled-text-field-disabled-container-color: var(--app-form-field-disabled-background-color);
|
|
13
|
+
--mat-form-field-state-layer-color: var(--app-form-field-focus-background-color);
|
|
14
|
+
--mat-form-field-container-height: 45px;
|
|
15
|
+
--mat-form-field-container-text-size: inherit;
|
|
16
|
+
--mat-form-field-filled-label-display: block;
|
|
17
|
+
--mat-form-field-container-vertical-padding: 8px;
|
|
18
|
+
--mat-form-field-filled-with-label-container-padding-top: 18px;
|
|
19
|
+
--mat-form-field-filled-with-label-container-padding-bottom: 0px;
|
|
20
|
+
--mdc-filled-text-field-label-text-tracking: normal;
|
|
21
|
+
--mat-select-trigger-text-size: var(--mat-form-field-container-text-size);
|
|
22
|
+
|
|
23
|
+
.mat-form-field-disabled,
|
|
24
|
+
.mat-mdc-input-element:disabled {
|
|
25
|
+
color: #{$app-form-color-disabled} !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mat-form-field-disabled {
|
|
29
|
+
.mat-mdc-form-field-infix {
|
|
30
|
+
min-height: var(--mat-form-field-container-height);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
mat-form-field,
|
|
35
|
+
mat-autocomplete-field,
|
|
36
|
+
app-form-field {
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.mat-mdc-form-field {
|
|
41
|
+
&:not(.mat-mdc-form-field-has-icon-prefix) {
|
|
42
|
+
.mdc-text-field {
|
|
43
|
+
padding-left: 4px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
ion-icon[matPrefix],
|
|
48
|
+
mat-icon[matPrefix],
|
|
49
|
+
.mat-mdc-form-field-icon-prefix {
|
|
50
|
+
|
|
51
|
+
--mdc-icon-button-icon-size: 24px;
|
|
52
|
+
--mdc-icon-button-icon-color: inherit;
|
|
53
|
+
--mdc-icon-button-state-layer-size: 48px;
|
|
54
|
+
--mdc-icon-button-margin-vertical: 12px;
|
|
55
|
+
|
|
56
|
+
ion-icon, .mat-icon {
|
|
57
|
+
font-size: var(--mdc-icon-button-icon-size) !important;
|
|
58
|
+
line-height: 1.125;
|
|
59
|
+
height: var(--mdc-icon-button-icon-size);
|
|
60
|
+
width: var(--mdc-icon-button-icon-size);
|
|
61
|
+
margin-left: var(--mdc-icon-button-margin-vertical);
|
|
62
|
+
margin-right: var(--mdc-icon-button-margin-vertical);
|
|
63
|
+
position: relative;
|
|
64
|
+
color: var(--mdc-icon-button-icon-color);
|
|
65
|
+
fill: var(--mdc-icon-button-icon-color);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
ion-icon[matSuffix],
|
|
70
|
+
mat-icon[matSuffix],
|
|
71
|
+
.mat-mdc-form-field-icon-suffix {
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
|
|
74
|
+
.mat-mdc-icon-button {
|
|
75
|
+
--mdc-icon-button-state-layer-size: 24px;
|
|
76
|
+
--mdc-icon-button-icon-size: 16px;
|
|
77
|
+
--mdc-icon-button-padding: 4px;
|
|
78
|
+
padding: var(--mdc-icon-button-padding);
|
|
79
|
+
|
|
80
|
+
&.large {
|
|
81
|
+
--mdc-icon-button-state-layer-size: 48px;
|
|
82
|
+
--mdc-icon-button-icon-size: 24px;
|
|
83
|
+
--mdc-icon-button-padding: 12px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
ion-icon, .mat-icon {
|
|
87
|
+
height: var(--mdc-icon-button-icon-size);
|
|
88
|
+
width: var(--mdc-icon-button-icon-size);
|
|
89
|
+
font-size: var(--mdc-icon-button-icon-size);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.mat-mdc-button-touch-target {
|
|
93
|
+
width: var(--mdc-icon-button-state-layer-size);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
ion-icon, .mat-icon {
|
|
98
|
+
|
|
99
|
+
&.large {
|
|
100
|
+
$font-size: calculateRem(14px);
|
|
101
|
+
font-size: $font-size;
|
|
102
|
+
line-height: 1.125;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// When field use choice button, reduce the font size, and optimize layout
|
|
109
|
+
button.mat-mdc-form-field-button,
|
|
110
|
+
ion-button.mat-mdc-form-field-button {
|
|
111
|
+
@include font-size-important(12px);
|
|
112
|
+
margin: 0;
|
|
113
|
+
white-space: normal;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Used to customize mat-boolean-field
|
|
117
|
+
&.mat-boolean-field-checkbox {
|
|
118
|
+
--mdc-checkbox-state-layer-size: 20px;
|
|
119
|
+
|
|
120
|
+
.mat-mdc-form-field-infix {
|
|
121
|
+
padding-top: 16px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.mdc-floating-label {
|
|
125
|
+
transform: unset !important;
|
|
126
|
+
padding-left: 30px;
|
|
127
|
+
top: 20px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.mat-boolean-field-radio {
|
|
132
|
+
--mdc-radio-state-layer-size: 20px;
|
|
133
|
+
|
|
134
|
+
.mat-mdc-radio-button {
|
|
135
|
+
padding-left: 8px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.mat-boolean-field-button {
|
|
140
|
+
.mat-mdc-form-field-infix {
|
|
141
|
+
padding-top: calc(var(--mat-form-field-filled-with-label-container-padding-top, 0px) + 4px);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.mat-mdc-form-field-subscript-wrapper {
|
|
147
|
+
mat-hint {
|
|
148
|
+
--color: rgb(115,115,115);
|
|
149
|
+
color: var(--color);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* -- Computed field -- */
|
|
154
|
+
|
|
155
|
+
// Set color on computed field (if enable or disable)
|
|
156
|
+
.computed .mat-mdc-form-field,
|
|
157
|
+
.mat-mdc-form-field .computed,
|
|
158
|
+
.mat-mdc-form-field.computed,
|
|
159
|
+
.computed .mat-mdc-form-field .mat-mdc-input-element:disabled,
|
|
160
|
+
.mat-mdc-form-field .computed .mat-mdc-input-element:disabled,
|
|
161
|
+
.mat-mdc-form-field.computed .mat-mdc-input-element:disabled {
|
|
162
|
+
--mdc-filled-text-field-input-text-color: var(--app-form-color-computed, #{$app-form-color-computed}) !important;
|
|
163
|
+
color: var(--app-form-color-computed, #{$app-form-color-computed}) !important;
|
|
164
|
+
font-style: italic;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* MatSwipeField */
|
|
168
|
+
mat-swipe-field {
|
|
169
|
+
|
|
170
|
+
.mdc-floating-label--float-above {
|
|
171
|
+
transform: translateY(-106%) translateX(40px) scale(0.75) !important;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
}
|
|
177
|
+
// Manage first child grid inside a form
|
|
178
|
+
form.form-container > ion-grid,
|
|
179
|
+
ion-grid.form-container {
|
|
180
|
+
padding: 0;
|
|
181
|
+
|
|
182
|
+
& > ion-row {
|
|
183
|
+
// No between grid rows
|
|
184
|
+
padding: 0;
|
|
185
|
+
|
|
186
|
+
& > ion-col {
|
|
187
|
+
|
|
188
|
+
// No top/bottom padding between grid cell
|
|
189
|
+
padding-bottom: 0;
|
|
190
|
+
padding-top: 0;
|
|
191
|
+
|
|
192
|
+
& > ion-label {
|
|
193
|
+
color: var(--ion-color-primary100);
|
|
194
|
+
padding-inline-end: 5px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
& > ion-label[text-wrap] {
|
|
198
|
+
word-wrap: normal;
|
|
199
|
+
white-space: normal;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -2,9 +2,6 @@ $app-menu-width: 300px !default;
|
|
|
2
2
|
|
|
3
3
|
$app-toolbar-height: 60px !default; // = $mat-toolbar-height-mobile + 4 (progress bar);
|
|
4
4
|
|
|
5
|
-
$app-form-color: rgba(0, 0, 0, 0.87) !default;
|
|
6
|
-
$app-form-color-disabled: rgba(0, 0, 0, 0.55) !default;
|
|
7
|
-
|
|
8
5
|
$app-table-header-height: 44px !default;
|
|
9
6
|
$app-table-cell-horizontal-padding: 8px !default;
|
|
10
7
|
$app-table-row-height: 48px !default;
|
|
@@ -12,11 +9,17 @@ $app-table-row-max-height: 52px !default;
|
|
|
12
9
|
|
|
13
10
|
$app-paginator-height: 34px !default;
|
|
14
11
|
$app-form-buttons-bar-height: 56px !default;
|
|
12
|
+
$app-form-color: rgba(0, 0, 0, 0.87) !default;
|
|
13
|
+
$app-form-color-disabled: rgba(0, 0, 0, 0.55) !default;
|
|
14
|
+
$app-form-color-computed: var(--ion-color-primary-tint) !default;
|
|
15
|
+
$app-form-field-background-color: #f5f5f5 !default; // Form's field background
|
|
16
|
+
$app-form-field-disabled-background-color: #fafafa !default;
|
|
15
17
|
|
|
16
18
|
$app-select-option-border-color: rgba(0, 0, 0, 0.12) !default;
|
|
17
19
|
$app-table-border-color: rgba(0, 0, 0, 0.08) !default;
|
|
20
|
+
$app-table-row-item-selected-background-color: var(--ion-color-secondary100) !default;
|
|
21
|
+
$app-table-row-item-selected-text-color: var(--ion-color-secondary100-contrast) !default;
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
//$app-form-field-background-color:
|
|
21
|
-
|
|
22
|
-
//$app-form-field-focus-background-color: rgba(0, 0, 0, 0.87) !default;
|
|
23
|
+
// Form fields background : transparent
|
|
24
|
+
//$app-form-field-background-color: transparent !default;
|
|
25
|
+
//$app-form-field-disabled-background-color: transparent !default;
|
|
@@ -126,200 +126,14 @@ ion-menu.menu-side-left {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
// --------------------------------------------------
|
|
130
|
-
// Material Forms
|
|
131
|
-
// --------------------------------------------------
|
|
132
|
-
.form-container,
|
|
133
|
-
form.form-container {
|
|
134
|
-
color: #{$app-form-color};
|
|
135
|
-
--mdc-filled-text-field-container-color: #{$app-form-field-background-color};
|
|
136
|
-
--mdc-filled-text-field-disabled-container-color: #{$app-form-field-background-color};
|
|
137
|
-
--mat-form-field-state-layer-color: #{$app-form-field-focus-background-color};
|
|
138
|
-
@include font-size(16px);
|
|
139
|
-
|
|
140
|
-
.mat-form-field-disabled,
|
|
141
|
-
.mat-mdc-input-element:disabled {
|
|
142
|
-
color: #{$app-form-color-disabled} !important;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.mat-form-field-disabled {
|
|
146
|
-
.mat-mdc-form-field-infix{
|
|
147
|
-
min-height: 41px;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
mat-form-field,
|
|
152
|
-
mat-autocomplete-field,
|
|
153
|
-
app-form-field {
|
|
154
|
-
width: 100%;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.mat-mdc-form-field {
|
|
158
|
-
|
|
159
|
-
&:not(.mat-mdc-form-field-has-icon-prefix) {
|
|
160
|
-
.mdc-text-field {
|
|
161
|
-
padding-left: 4px;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
ion-icon[matPrefix],
|
|
166
|
-
mat-icon[matPrefix],
|
|
167
|
-
.mat-mdc-form-field-icon-prefix {
|
|
168
|
-
|
|
169
|
-
ion-icon, .mat-icon {
|
|
170
|
-
$font-size: calculateRem(24px);
|
|
171
|
-
$margin-vertical: calculateRem(4px);
|
|
172
|
-
font-size: $font-size !important;
|
|
173
|
-
line-height: 1.125;
|
|
174
|
-
height: $font-size;
|
|
175
|
-
width: $font-size;
|
|
176
|
-
margin-left: $margin-vertical;
|
|
177
|
-
margin-right: $margin-vertical;
|
|
178
|
-
position: relative;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
ion-icon[matSuffix],
|
|
183
|
-
mat-icon[matSuffix],
|
|
184
|
-
.mat-mdc-form-field-icon-suffix {
|
|
185
|
-
white-space: nowrap;
|
|
186
|
-
|
|
187
|
-
.mat-mdc-icon-button {
|
|
188
|
-
--mdc-icon-button-icon-size: 24px;
|
|
189
|
-
--mdc-icon-button-state-layer-size: 28px;
|
|
190
|
-
padding: 2px;
|
|
191
|
-
|
|
192
|
-
ion-icon, .mat-icon, .mat-icon.large {
|
|
193
|
-
font-size: var(--mdc-icon-button-icon-size);
|
|
194
|
-
line-height: var(--mdc-icon-button-icon-size);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.mat-mdc-button-touch-target {
|
|
198
|
-
width: var(--mdc-icon-button-state-layer-size);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
ion-icon, .mat-icon {
|
|
203
|
-
|
|
204
|
-
&.large {
|
|
205
|
-
$font-size: calculateRem(24px);
|
|
206
|
-
font-size: $font-size;
|
|
207
|
-
line-height: 1.125;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
// When field use choice button, reduce the font size, and optimize layout
|
|
214
|
-
button.mat-mdc-form-field-button,
|
|
215
|
-
ion-button.mat-mdc-form-field-button {
|
|
216
|
-
@include font-size-important(12px);
|
|
217
|
-
margin: 0;
|
|
218
|
-
white-space: normal;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// Used to customize mat-boolean-field
|
|
222
|
-
&.mat-boolean-field-checkbox {
|
|
223
|
-
--mdc-checkbox-state-layer-size: 20px;
|
|
224
|
-
|
|
225
|
-
.mat-mdc-form-field-infix {
|
|
226
|
-
padding-top: 16px;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.mdc-floating-label {
|
|
230
|
-
transform: unset !important;
|
|
231
|
-
padding-left: 30px;
|
|
232
|
-
top: 20px;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&.mat-boolean-field-radio {
|
|
237
|
-
--mdc-radio-state-layer-size: 20px;
|
|
238
|
-
|
|
239
|
-
.mat-mdc-radio-button {
|
|
240
|
-
padding-left: 8px;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
&.mat-boolean-field-button {
|
|
245
|
-
.mat-mdc-form-field-infix {
|
|
246
|
-
padding-top: 0;
|
|
247
|
-
padding-bottom: 0;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
/* -- Computed field -- */
|
|
254
|
-
|
|
255
|
-
// Set color on computed field (if enable or disable)
|
|
256
|
-
.computed mat-mdc-form-field,
|
|
257
|
-
mat-mdc-form-field .computed,
|
|
258
|
-
mat-mdc-form-field.computed,
|
|
259
|
-
.computed mat-mdc-form-field .mat-mdc-input-element:disabled,
|
|
260
|
-
mat-mdc-form-field .computed .mat-mdc-input-element:disabled,
|
|
261
|
-
mat-mdc-form-field.computed .mat-mdc-input-element:disabled {
|
|
262
|
-
color: var(--ion-color-primary-tint) !important;
|
|
263
|
-
font-style: italic;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/* MatSwipeField */
|
|
267
|
-
mat-swipe-field {
|
|
268
|
-
|
|
269
|
-
.mdc-floating-label--float-above {
|
|
270
|
-
transform: translateY(-106%) translateX(40px) scale(0.75) !important;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
// Manage first child grid inside a form
|
|
276
|
-
form.form-container > ion-grid,
|
|
277
|
-
ion-grid.form-container {
|
|
278
|
-
padding: 0;
|
|
279
|
-
|
|
280
|
-
ion-row {
|
|
281
|
-
// No between grid rows
|
|
282
|
-
padding: 0;
|
|
283
|
-
|
|
284
|
-
ion-col > ion-label {
|
|
285
|
-
color: var(--ion-color-primary100);
|
|
286
|
-
padding-inline-end: 5px;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
ion-col > ion-label[text-wrap] {
|
|
290
|
-
word-wrap: normal;
|
|
291
|
-
white-space: normal;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
ion-row > ion-col {
|
|
295
|
-
|
|
296
|
-
// No top/bottom padding between grid cell
|
|
297
|
-
padding-bottom: 0;
|
|
298
|
-
padding-top: 0;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
129
|
|
|
302
130
|
mat-form-field {
|
|
303
|
-
//mat-error {
|
|
304
|
-
// text-align: right;
|
|
305
|
-
//}
|
|
306
|
-
|
|
307
131
|
.mat-paginator-page-size-select {
|
|
308
132
|
@include font-size-important(14px);
|
|
309
133
|
}
|
|
310
134
|
}
|
|
311
135
|
|
|
312
136
|
|
|
313
|
-
// --- mat-date-time
|
|
314
|
-
mat-date-time-field {
|
|
315
|
-
//@include font-size-important(16px);
|
|
316
|
-
|
|
317
|
-
// Need for errors injected using the <ng-content> tag
|
|
318
|
-
//mat-error {
|
|
319
|
-
// text-align: end;
|
|
320
|
-
//}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
137
|
// --- mat-date-short-field
|
|
324
138
|
mat-calendar.mat-date-short-panel {
|
|
325
139
|
// Hide some buttons (e.g. to change the period)
|
|
@@ -351,12 +165,6 @@ mat-option {
|
|
|
351
165
|
flex-grow: 1;
|
|
352
166
|
}
|
|
353
167
|
.mat-option-text:not(:has(ion-row)),
|
|
354
|
-
|
|
355
|
-
// TODO : Disabled : mat-option already have padding : this is redundant
|
|
356
|
-
//.mdc-list-item__primary-text:not(:has(ion-row)) {
|
|
357
|
-
// padding: 0 16px;
|
|
358
|
-
//}
|
|
359
|
-
|
|
360
168
|
.mat-option-text:has(ion-searchbar),
|
|
361
169
|
.mdc-list-item__primary-text:has(ion-searchbar) {
|
|
362
170
|
padding: 0 !important;
|
|
@@ -464,7 +272,7 @@ ion-list,
|
|
|
464
272
|
}
|
|
465
273
|
}
|
|
466
274
|
|
|
467
|
-
.mat-mdc-
|
|
275
|
+
.mat-mdc-optgroup.mat-select-searchbar,
|
|
468
276
|
.mat-mdc-option.mat-autocomplete-searchbar
|
|
469
277
|
{
|
|
470
278
|
padding: 0 !important;
|
|
@@ -472,8 +280,10 @@ ion-list,
|
|
|
472
280
|
background-color: var(--ion-color-secondary100) !important;
|
|
473
281
|
pointer-events: inherit !important;
|
|
474
282
|
|
|
475
|
-
.mdc-
|
|
476
|
-
|
|
283
|
+
.mat-mdc-optgroup-label {
|
|
284
|
+
background-color: var(--ion-color-secondary100) !important;
|
|
285
|
+
padding: 0;
|
|
286
|
+
display: block;
|
|
477
287
|
}
|
|
478
288
|
|
|
479
289
|
/* hide pseudo checkbox, in the searchbar*/
|
|
@@ -535,7 +345,7 @@ ion-list,
|
|
|
535
345
|
bottom: 0;
|
|
536
346
|
z-index: 1001;
|
|
537
347
|
border-top: 1px solid #{$app-select-option-border-color};
|
|
538
|
-
background-color:
|
|
348
|
+
background-color: var(--ion-toolbar-background, #{$ion-toolbar-background});
|
|
539
349
|
color: var(--ion-color-medium) !important; // not working on mobile form because the mat-option is disabled
|
|
540
350
|
@include font-size(12px);
|
|
541
351
|
font-weight: 500;
|
|
@@ -570,7 +380,6 @@ ion-list,
|
|
|
570
380
|
}
|
|
571
381
|
|
|
572
382
|
.mat-mdc-option[no-padding],
|
|
573
|
-
.mat-option[no-padding],
|
|
574
383
|
mat-option[no-padding] {
|
|
575
384
|
padding: 0 !important;
|
|
576
385
|
}
|
|
@@ -853,7 +662,6 @@ ngx-material-timepicker-content {
|
|
|
853
662
|
|
|
854
663
|
.mat-mdc-form-field-type-mat-chip-grid {
|
|
855
664
|
.mat-mdc-form-field-infix {
|
|
856
|
-
padding-bottom: 5px !important;
|
|
857
665
|
--mdc-chip-container-height: 24px !important;
|
|
858
666
|
}
|
|
859
667
|
}
|