@energycap/components 0.42.4-esbuild.20250131-1219 → 0.42.4-esbuild.20250131-1441
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/energycap-components.mjs +5 -0
- package/esm2022/lib/components.module.mjs +423 -0
- package/esm2022/lib/controls/banner/banner.component.mjs +109 -0
- package/esm2022/lib/controls/button/button.component.mjs +106 -0
- package/esm2022/lib/controls/button/copy-button-base.directive.mjs +67 -0
- package/esm2022/lib/controls/button/copy-button.directive.mjs +28 -0
- package/esm2022/lib/controls/button/copy-table-button.directive.mjs +43 -0
- package/esm2022/lib/controls/calendar/calendar-item.component.mjs +91 -0
- package/esm2022/lib/controls/calendar/calendar.component.mjs +248 -0
- package/esm2022/lib/controls/calendar/calendar.types.mjs +2 -0
- package/esm2022/lib/controls/checkbox/checkbox.component.mjs +140 -0
- package/esm2022/lib/controls/collapsible-toggle/collapsible-toggle.component.mjs +38 -0
- package/esm2022/lib/controls/combobox/combobox.component.mjs +879 -0
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/date-input-selection-strategy-base.mjs +57 -0
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/day-selection-strategy.mjs +62 -0
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/last-28-days-selection-strategy.mjs +100 -0
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/last-7-days-selection-strategy.mjs +101 -0
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/month-selection-strategy.mjs +76 -0
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/quarter-selection-strategy.mjs +79 -0
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/range-selection-strategy.mjs +210 -0
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/year-selection-strategy.mjs +81 -0
- package/esm2022/lib/controls/date-input/date-input.component.mjs +464 -0
- package/esm2022/lib/controls/date-input/date-input.types.mjs +44 -0
- package/esm2022/lib/controls/dropdown/dropdown.component.mjs +243 -0
- package/esm2022/lib/controls/file-upload/file-upload.component.mjs +261 -0
- package/esm2022/lib/controls/form-control/form-control.component.mjs +98 -0
- package/esm2022/lib/controls/form-control-base.mjs +151 -0
- package/esm2022/lib/controls/form-control-label/form-control-label.component.mjs +136 -0
- package/esm2022/lib/controls/form-group/form-group.component.mjs +261 -0
- package/esm2022/lib/controls/help-popover/help-popover.component.mjs +31 -0
- package/esm2022/lib/controls/item-picker/item-picker.component.mjs +329 -0
- package/esm2022/lib/controls/link-button/link-button.component.mjs +11 -0
- package/esm2022/lib/controls/menu/menu.component.mjs +485 -0
- package/esm2022/lib/controls/navigation/link-item.mjs +2 -0
- package/esm2022/lib/controls/navigation/nav-group.mjs +39 -0
- package/esm2022/lib/controls/navigation/nav-item-active.directive.mjs +92 -0
- package/esm2022/lib/controls/navigation/nav-item.mjs +2 -0
- package/esm2022/lib/controls/numericbox/numericbox.component.mjs +372 -0
- package/esm2022/lib/controls/popover/popover.component.mjs +117 -0
- package/esm2022/lib/controls/radio-button/radio-button-option.mjs +3 -0
- package/esm2022/lib/controls/radio-button/radio-button.component.mjs +82 -0
- package/esm2022/lib/controls/select/select.component.mjs +88 -0
- package/esm2022/lib/controls/tabs/tabs.component.mjs +47 -0
- package/esm2022/lib/controls/textbox/textbox.component.mjs +155 -0
- package/esm2022/lib/core/cache.service.mjs +105 -0
- package/esm2022/lib/core/custom-validators.mjs +29 -0
- package/esm2022/lib/core/date-time-helper.mjs +228 -0
- package/esm2022/lib/core/error.service.mjs +61 -0
- package/esm2022/lib/core/router-helper.service.mjs +111 -0
- package/esm2022/lib/core/scroll.service.mjs +89 -0
- package/esm2022/lib/core/telemetry-tracker.service.mjs +16 -0
- package/esm2022/lib/core/telemetry.service.mjs +38 -0
- package/esm2022/lib/core/validation-message.service.mjs +185 -0
- package/esm2022/lib/core/validation-patterns.mjs +31 -0
- package/esm2022/lib/core/window.service.mjs +186 -0
- package/esm2022/lib/display/app-bar/app-bar.component.mjs +46 -0
- package/esm2022/lib/display/avatar/avatar.component.mjs +67 -0
- package/esm2022/lib/display/avatar/avatar.service.mjs +64 -0
- package/esm2022/lib/display/confirm/confirm.component.mjs +168 -0
- package/esm2022/lib/display/dialog/dialog-content.mjs +2 -0
- package/esm2022/lib/display/dialog/dialog-group/dialog-group.component.mjs +63 -0
- package/esm2022/lib/display/dialog/dialog-types.mjs +77 -0
- package/esm2022/lib/display/dialog/dialog.component.mjs +281 -0
- package/esm2022/lib/display/dialog/dialog.service.mjs +71 -0
- package/esm2022/lib/display/help/help-types.mjs +2 -0
- package/esm2022/lib/display/hierarchy/hierarchy-base.mjs +111 -0
- package/esm2022/lib/display/hierarchy/hierarchy-mocks.spec.mjs +54 -0
- package/esm2022/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +61 -0
- package/esm2022/lib/display/item-display/item-display.component.mjs +81 -0
- package/esm2022/lib/display/json-display/json-display.component.mjs +47 -0
- package/esm2022/lib/display/resizable/resizable-base.mjs +120 -0
- package/esm2022/lib/display/resizable/resizable.component.mjs +57 -0
- package/esm2022/lib/display/spinner/spinner.component.mjs +12 -0
- package/esm2022/lib/display/splash/splash.component.mjs +42 -0
- package/esm2022/lib/display/splash/splash.service.mjs +35 -0
- package/esm2022/lib/display/table/resizable-column.component.mjs +20 -0
- package/esm2022/lib/display/table/resizable-table.directive.mjs +227 -0
- package/esm2022/lib/display/table/searchable-table.component.mjs +342 -0
- package/esm2022/lib/display/table/table-detail-row.component.mjs +28 -0
- package/esm2022/lib/display/table/table-locked-column.component.mjs +58 -0
- package/esm2022/lib/display/table/table-master-header-row.component.mjs +14 -0
- package/esm2022/lib/display/table/table-master-row.component.mjs +163 -0
- package/esm2022/lib/display/table/table-pagination.component.mjs +155 -0
- package/esm2022/lib/display/table/table-selectable-row.component.mjs +235 -0
- package/esm2022/lib/display/table/table.component.mjs +249 -0
- package/esm2022/lib/display/tags/tag.mjs +18 -0
- package/esm2022/lib/display/tags/tags.component.mjs +77 -0
- package/esm2022/lib/display/toast/toast/toast.component.mjs +77 -0
- package/esm2022/lib/display/toast/toast-types.mjs +8 -0
- package/esm2022/lib/display/toast/toast.service.mjs +35 -0
- package/esm2022/lib/display/toast/toaster/toaster.component.mjs +114 -0
- package/esm2022/lib/display/tooltip/tooltip.component.mjs +28 -0
- package/esm2022/lib/display/tooltip/tooltip.service.mjs +78 -0
- package/esm2022/lib/display/tooltip-directive/tooltip.directive.mjs +173 -0
- package/esm2022/lib/display/tour/tour-types.mjs +34 -0
- package/esm2022/lib/display/tour/tour.component.mjs +398 -0
- package/esm2022/lib/display/tour/tour.service.mjs +75 -0
- package/esm2022/lib/display/tree/tree.component.mjs +135 -0
- package/esm2022/lib/display/view-overlay/view-overlay.component.mjs +58 -0
- package/esm2022/lib/shared/directives/click-area-for/click-area-for.directive.mjs +32 -0
- package/esm2022/lib/shared/directives/if-viewport-width/if-viewport-width.directive.mjs +111 -0
- package/esm2022/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.mjs +100 -0
- package/esm2022/lib/shared/directives/popup/popup-container.directive.mjs +166 -0
- package/esm2022/lib/shared/display/pipes/date-display.pipe.mjs +50 -0
- package/esm2022/lib/shared/display/pipes/highlight-text.pipe.mjs +30 -0
- package/esm2022/lib/shared/display/pipes/relative-date.pipe.mjs +62 -0
- package/esm2022/lib/shared/display/pipes/row-count.pipe.mjs +48 -0
- package/esm2022/lib/shared/display/pipes/time-display.pipe.mjs +41 -0
- package/esm2022/lib/shared/display.mjs +6 -0
- package/esm2022/lib/shared/form-group.helper.mjs +67 -0
- package/esm2022/lib/shared/json-helper.mjs +19 -0
- package/esm2022/lib/shared/lodash-helper.mjs +52 -0
- package/esm2022/lib/shared/page/page-base/page-base.component.mjs +387 -0
- package/esm2022/lib/shared/page/page-statuses.mjs +23 -0
- package/esm2022/lib/shared/page/page-title/page-title.component.mjs +23 -0
- package/esm2022/lib/shared/page/page-view/page-view.component.mjs +147 -0
- package/esm2022/lib/shared/testing/copy-button-base-test-injector-factory.spec.mjs +17 -0
- package/esm2022/lib/shared/testing/hierarchy-base-test-injector-factory.spec.mjs +17 -0
- package/esm2022/lib/shared/testing/page-base-component-test-helper.spec.mjs +38 -0
- package/esm2022/lib/shared/testing/page-base-component-test-injector-factory.spec.mjs +98 -0
- package/esm2022/lib/shared/testing/public-mocks.spec.mjs +148 -0
- package/esm2022/lib/shared/testing/spy-factory.spec.mjs +40 -0
- package/esm2022/lib/shared/testing/translation-mocks.spec.mjs +57 -0
- package/esm2022/lib/shared/user-preference.service.mjs +17 -0
- package/esm2022/lib/shared/wizard/wizard-base/wizard-base.component.mjs +246 -0
- package/esm2022/lib/shared/wizard/wizard-buttons/wizard-buttons.component.mjs +68 -0
- package/esm2022/lib/shared/wizard/wizard-progress/wizard-progress.component.mjs +18 -0
- package/esm2022/public-api.mjs +117 -0
- package/fesm2022/energycap-components.mjs +13219 -0
- package/fesm2022/energycap-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components.module.d.ts +92 -0
- package/lib/controls/banner/banner.component.d.ts +50 -0
- package/lib/controls/button/button.component.d.ts +78 -0
- package/lib/controls/button/copy-button-base.directive.d.ts +20 -0
- package/lib/controls/button/copy-button.directive.d.ts +14 -0
- package/lib/controls/button/copy-table-button.directive.d.ts +19 -0
- package/lib/controls/calendar/calendar-item.component.d.ts +22 -0
- package/lib/controls/calendar/calendar.component.d.ts +52 -0
- package/lib/controls/calendar/calendar.types.d.ts +11 -0
- package/lib/controls/checkbox/checkbox.component.d.ts +65 -0
- package/lib/controls/collapsible-toggle/collapsible-toggle.component.d.ts +25 -0
- package/lib/controls/combobox/combobox.component.d.ts +418 -0
- package/lib/controls/date-input/date-input-selection-strategies/date-input-selection-strategy-base.d.ts +42 -0
- package/lib/controls/date-input/date-input-selection-strategies/day-selection-strategy.d.ts +21 -0
- package/lib/controls/date-input/date-input-selection-strategies/last-28-days-selection-strategy.d.ts +21 -0
- package/lib/controls/date-input/date-input-selection-strategies/last-7-days-selection-strategy.d.ts +21 -0
- package/lib/controls/date-input/date-input-selection-strategies/month-selection-strategy.d.ts +18 -0
- package/lib/controls/date-input/date-input-selection-strategies/quarter-selection-strategy.d.ts +18 -0
- package/lib/controls/date-input/date-input-selection-strategies/range-selection-strategy.d.ts +21 -0
- package/lib/controls/date-input/date-input-selection-strategies/year-selection-strategy.d.ts +20 -0
- package/lib/controls/date-input/date-input.component.d.ts +115 -0
- package/lib/controls/date-input/date-input.types.d.ts +62 -0
- package/lib/controls/dropdown/dropdown.component.d.ts +161 -0
- package/lib/controls/file-upload/file-upload.component.d.ts +124 -0
- package/lib/controls/form-control/form-control.component.d.ts +28 -0
- package/lib/controls/form-control-base.d.ts +110 -0
- package/lib/controls/form-control-label/form-control-label.component.d.ts +73 -0
- package/lib/controls/form-group/form-group.component.d.ts +105 -0
- package/lib/controls/help-popover/help-popover.component.d.ts +11 -0
- package/lib/controls/item-picker/item-picker.component.d.ts +164 -0
- package/lib/controls/link-button/link-button.component.d.ts +5 -0
- package/lib/controls/menu/menu.component.d.ts +255 -0
- package/lib/controls/navigation/link-item.d.ts +32 -0
- package/lib/controls/navigation/nav-group.d.ts +18 -0
- package/lib/controls/navigation/nav-item-active.directive.d.ts +42 -0
- package/lib/controls/navigation/nav-item.d.ts +31 -0
- package/lib/controls/numericbox/numericbox.component.d.ts +148 -0
- package/lib/controls/popover/popover.component.d.ts +51 -0
- package/lib/controls/radio-button/radio-button-option.d.ts +19 -0
- package/lib/controls/radio-button/radio-button.component.d.ts +53 -0
- package/lib/controls/select/select.component.d.ts +44 -0
- package/lib/controls/tabs/tabs.component.d.ts +30 -0
- package/lib/controls/textbox/textbox.component.d.ts +107 -0
- package/lib/core/cache.service.d.ts +33 -0
- package/lib/core/custom-validators.d.ts +20 -0
- package/lib/core/date-time-helper.d.ts +101 -0
- package/lib/core/error.service.d.ts +20 -0
- package/lib/core/router-helper.service.d.ts +48 -0
- package/lib/core/scroll.service.d.ts +36 -0
- package/lib/core/telemetry-tracker.service.d.ts +13 -0
- package/lib/core/telemetry.service.d.ts +31 -0
- package/lib/core/validation-message.service.d.ts +26 -0
- package/lib/core/validation-patterns.d.ts +22 -0
- package/lib/core/window.service.d.ts +116 -0
- package/lib/display/app-bar/app-bar.component.d.ts +20 -0
- package/lib/display/avatar/avatar.component.d.ts +35 -0
- package/lib/display/avatar/avatar.service.d.ts +24 -0
- package/lib/display/confirm/confirm.component.d.ts +123 -0
- package/lib/display/dialog/dialog-content.d.ts +19 -0
- package/lib/display/dialog/dialog-group/dialog-group.component.d.ts +32 -0
- package/lib/display/dialog/dialog-types.d.ts +130 -0
- package/lib/display/dialog/dialog.component.d.ts +120 -0
- package/lib/display/dialog/dialog.service.d.ts +48 -0
- package/lib/display/help/help-types.d.ts +33 -0
- package/lib/display/hierarchy/hierarchy-base.d.ts +97 -0
- package/lib/display/hierarchy/hierarchy-mocks.spec.d.ts +53 -0
- package/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.d.ts +34 -0
- package/lib/display/item-display/item-display.component.d.ts +43 -0
- package/lib/display/json-display/json-display.component.d.ts +16 -0
- package/lib/display/resizable/resizable-base.d.ts +67 -0
- package/lib/display/resizable/resizable.component.d.ts +31 -0
- package/lib/display/spinner/spinner.component.d.ts +5 -0
- package/lib/display/splash/splash.component.d.ts +16 -0
- package/lib/display/splash/splash.service.d.ts +22 -0
- package/lib/display/table/resizable-column.component.d.ts +10 -0
- package/lib/display/table/resizable-table.directive.d.ts +93 -0
- package/lib/display/table/searchable-table.component.d.ts +206 -0
- package/lib/display/table/table-detail-row.component.d.ts +8 -0
- package/lib/display/table/table-locked-column.component.d.ts +20 -0
- package/lib/display/table/table-master-header-row.component.d.ts +9 -0
- package/lib/display/table/table-master-row.component.d.ts +113 -0
- package/lib/display/table/table-pagination.component.d.ts +91 -0
- package/lib/display/table/table-selectable-row.component.d.ts +102 -0
- package/lib/display/table/table.component.d.ts +121 -0
- package/lib/display/tags/tag.d.ts +18 -0
- package/lib/display/tags/tags.component.d.ts +48 -0
- package/lib/display/toast/toast/toast.component.d.ts +23 -0
- package/lib/display/toast/toast-types.d.ts +24 -0
- package/lib/display/toast/toast.service.d.ts +20 -0
- package/lib/display/toast/toaster/toaster.component.d.ts +35 -0
- package/lib/display/tooltip/tooltip.component.d.ts +70 -0
- package/lib/display/tooltip/tooltip.service.d.ts +16 -0
- package/lib/display/tooltip-directive/tooltip.directive.d.ts +44 -0
- package/lib/display/tour/tour-types.d.ts +70 -0
- package/lib/display/tour/tour.component.d.ts +147 -0
- package/lib/display/tour/tour.service.d.ts +38 -0
- package/lib/display/tree/tree.component.d.ts +75 -0
- package/lib/display/view-overlay/view-overlay.component.d.ts +38 -0
- package/lib/shared/directives/click-area-for/click-area-for.directive.d.ts +14 -0
- package/lib/shared/directives/if-viewport-width/if-viewport-width.directive.d.ts +60 -0
- package/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.d.ts +23 -0
- package/lib/shared/directives/popup/popup-container.directive.d.ts +101 -0
- package/lib/shared/display/pipes/date-display.pipe.d.ts +21 -0
- package/lib/shared/display/pipes/highlight-text.pipe.d.ts +9 -0
- package/lib/shared/display/pipes/relative-date.pipe.d.ts +36 -0
- package/lib/shared/display/pipes/row-count.pipe.d.ts +23 -0
- package/lib/shared/display/pipes/time-display.pipe.d.ts +18 -0
- package/lib/shared/display.d.ts +42 -0
- package/lib/shared/form-group.helper.d.ts +31 -0
- package/lib/shared/json-helper.d.ts +7 -0
- package/lib/shared/lodash-helper.d.ts +18 -0
- package/lib/shared/page/page-base/page-base.component.d.ts +259 -0
- package/lib/shared/page/page-statuses.d.ts +13 -0
- package/lib/shared/page/page-title/page-title.component.d.ts +9 -0
- package/lib/shared/page/page-view/page-view.component.d.ts +102 -0
- package/lib/shared/testing/copy-button-base-test-injector-factory.spec.d.ts +4 -0
- package/lib/shared/testing/hierarchy-base-test-injector-factory.spec.d.ts +4 -0
- package/lib/shared/testing/page-base-component-test-helper.spec.d.ts +30 -0
- package/lib/shared/testing/page-base-component-test-injector-factory.spec.d.ts +28 -0
- package/lib/shared/testing/public-mocks.spec.d.ts +90 -0
- package/lib/shared/testing/spy-factory.spec.d.ts +27 -0
- package/lib/shared/testing/translation-mocks.spec.d.ts +30 -0
- package/lib/shared/user-preference.service.d.ts +13 -0
- package/lib/shared/wizard/wizard-base/wizard-base.component.d.ts +134 -0
- package/lib/shared/wizard/wizard-buttons/wizard-buttons.component.d.ts +27 -0
- package/lib/shared/wizard/wizard-progress/wizard-progress.component.d.ts +10 -0
- package/package.json +2 -6
- package/public-api.d.ts +113 -0
- package/schematics/collection.json +10 -0
- package/schematics/rxjs-7-upgrade/index.d.ts +3 -0
- package/schematics/rxjs-7-upgrade/index.js +71 -0
- package/schematics/rxjs-7-upgrade/index.js.map +1 -0
- package/schematics/rxjs-7-upgrade/schema.d.ts +4 -0
- package/schematics/rxjs-7-upgrade/schema.js +3 -0
- package/schematics/rxjs-7-upgrade/schema.js.map +1 -0
- package/schematics/rxjs-7-upgrade/schema.json +14 -0
- package/schematics/utilities/typescript.d.ts +7 -0
- package/schematics/utilities/typescript.js +45 -0
- package/schematics/utilities/typescript.js.map +1 -0
- package/schematics/utilities/workspace.d.ts +8 -0
- package/schematics/utilities/workspace.js +72 -0
- package/schematics/utilities/workspace.js.map +1 -0
- package/src/assets/images/email-icon.png +0 -0
- package/src/assets/images/email-logo.png +0 -0
- package/src/assets/images/favicon-ech.svg +7 -0
- package/src/assets/images/favicon-esa.svg +6 -0
- package/src/assets/images/favicon-eum.svg +6 -0
- package/src/assets/images/favicon.svg +5 -0
- package/src/assets/images/icon-carbonhub.svg +10 -0
- package/src/assets/images/icon-eum.svg +5 -0
- package/src/assets/images/icon-ucp.svg +5 -0
- package/src/assets/images/icon-wattics.svg +5 -0
- package/src/assets/images/icon.svg +4 -0
- package/src/assets/images/logo.svg +3 -0
- package/src/assets/images/splash.gif +0 -0
- package/src/assets/locales/en_US.json +59 -0
- package/src/assets/scripts/unsupported-browser.js +17 -0
- package/src/styles/_base.scss +38 -0
- package/src/styles/_colors.scss +96 -0
- package/src/styles/_core.scss +4 -0
- package/src/styles/_functions.scss +114 -0
- package/src/styles/_global-variables.scss +232 -0
- package/src/styles/_icons.scss +24 -0
- package/src/styles/bootstrap/_grid.scss +34 -0
- package/src/styles/bootstrap/_reboot.scss +323 -0
- package/src/styles/components/_card.scss +21 -0
- package/src/styles/components/_link-icons.scss +38 -0
- package/src/styles/components/_splash.scss +57 -0
- package/src/styles/components/_unsupported-browsers.scss +24 -0
- package/src/styles/email/_email-base.scss +228 -0
- package/src/styles/email/email.scss +43 -0
- package/src/styles/index.scss +27 -0
- package/src/styles/mixins/_animations.scss +18 -0
- package/src/styles/mixins/_button-base.scss +185 -0
- package/src/styles/mixins/_card-base.scss +40 -0
- package/src/styles/mixins/_common.scss +52 -0
- package/src/styles/mixins/_dialog-base.scss +96 -0
- package/src/styles/mixins/_form-control-base.scss +641 -0
- package/src/styles/mixins/_login.scss +74 -0
- package/src/styles/mixins/_menu-base.scss +153 -0
- package/src/styles/mixins/_overlay-base.scss +33 -0
- package/src/styles/mixins/_resizable-base.scss +57 -0
- package/src/styles/mixins/_spinner-base.scss +34 -0
- package/src/styles/mixins/_table-base.scss +298 -0
- package/src/styles/mixins/_tabs-base.scss +110 -0
- package/src/styles/mixins/_tags-base.scss +116 -0
- package/src/styles/mixins/_text.scss +89 -0
- package/src/styles/mixins.scss +15 -0
- package/src/styles/utilities/_borders.scss +30 -0
- package/src/styles/utilities/_common.scss +49 -0
- package/src/styles/utilities/_layout.scss +116 -0
- package/src/styles/utilities/_spacing.scss +65 -0
- package/src/styles/utilities/_text.scss +139 -0
@@ -0,0 +1,96 @@
|
|
1
|
+
////
|
2
|
+
/// @deprecated These styles are not guaranteed to be available in the future.
|
3
|
+
////
|
4
|
+
|
5
|
+
@import '../core';
|
6
|
+
|
7
|
+
// These duration values need to be kept in sync with dialog.component.ts
|
8
|
+
$dialog-open-duration: 125;
|
9
|
+
$dialog-close-duration: 100;
|
10
|
+
$panel-open-duration: 250;
|
11
|
+
$panel-close-duration: 225;
|
12
|
+
|
13
|
+
$dialog-min-height: 9rem;
|
14
|
+
$dialog-max-width: 90vw;
|
15
|
+
$dialog-max-height: 90vh;
|
16
|
+
$dialog-widths: (
|
17
|
+
xsmall: 20rem,
|
18
|
+
small: 30rem,
|
19
|
+
medium: 40rem,
|
20
|
+
large: 50rem,
|
21
|
+
xlarge: 60rem,
|
22
|
+
full: $dialog-max-width
|
23
|
+
);
|
24
|
+
|
25
|
+
@keyframes fadeIn {
|
26
|
+
from {
|
27
|
+
opacity: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
to {
|
31
|
+
opacity: 1;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
@keyframes slideIn {
|
36
|
+
from {
|
37
|
+
transform: translateX(100%);
|
38
|
+
}
|
39
|
+
|
40
|
+
to {
|
41
|
+
transform: translateX(0);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
@mixin dialog-overlay {
|
46
|
+
align-items: center;
|
47
|
+
background-color: var(--ec-dialog-background-color);
|
48
|
+
justify-content: center;
|
49
|
+
position: fixed;
|
50
|
+
z-index: var(--ec-z-index-dialog);
|
51
|
+
top: 0;
|
52
|
+
left: 0;
|
53
|
+
right: 0;
|
54
|
+
bottom: 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
@mixin dialog-window {
|
58
|
+
background-color: var(--ec-background-color-body);
|
59
|
+
background-clip: padding-box;
|
60
|
+
box-shadow: 0 0 0.625rem rgba($black, .2);
|
61
|
+
border-radius: var(--ec-border-radius-dialog);
|
62
|
+
overflow: hidden;
|
63
|
+
display: flex;
|
64
|
+
flex: none;
|
65
|
+
min-height: $dialog-min-height;
|
66
|
+
max-height: $dialog-max-height;
|
67
|
+
max-width: $dialog-max-width;
|
68
|
+
width: var(--ec-dialog-width);
|
69
|
+
}
|
70
|
+
|
71
|
+
@mixin dialog-open {
|
72
|
+
display: flex;
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin dialog-fade-in {
|
76
|
+
animation-name: fadeIn;
|
77
|
+
animation-duration: #{$dialog-open-duration}ms;
|
78
|
+
animation-fill-mode: forwards;
|
79
|
+
animation-timing-function: ease-in-out;
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin dialog-fade-out {
|
83
|
+
animation-name: fadeIn;
|
84
|
+
animation-duration: #{$dialog-close-duration}ms;
|
85
|
+
animation-direction: reverse;
|
86
|
+
animation-fill-mode: forwards;
|
87
|
+
animation-timing-function: ease-in-out;
|
88
|
+
}
|
89
|
+
|
90
|
+
@mixin dialog-sizes($selector-prefix) {
|
91
|
+
@each $width, $value in $dialog-widths {
|
92
|
+
#{$selector-prefix}-#{$width} {
|
93
|
+
--ec-dialog-width: #{$value};
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
@@ -0,0 +1,641 @@
|
|
1
|
+
@use "sass:math";
|
2
|
+
|
3
|
+
@import '../icons';
|
4
|
+
|
5
|
+
$form-control-icon-size: 1rem;
|
6
|
+
$form-control-font-size: 1rem;
|
7
|
+
$form-control-icon-position: .5rem center;
|
8
|
+
$form-control-label-size: var(--ec-font-size-label);
|
9
|
+
$form-control-height: 2rem;
|
10
|
+
$form-control-line-height: 1.25rem;
|
11
|
+
$form-control-padding-x: .5rem;
|
12
|
+
$form-control-spacing-y: 1rem;
|
13
|
+
$form-control-padding-y: .3125rem;
|
14
|
+
|
15
|
+
$checkbox-indicator-size: $form-control-icon-size;
|
16
|
+
|
17
|
+
@mixin form-control-input-base {
|
18
|
+
&::selection {
|
19
|
+
background-color: var(--ec-form-control-background-color-selection);
|
20
|
+
color: var(--ec-form-control-color-selection);
|
21
|
+
}
|
22
|
+
&::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
23
|
+
color: var(--ec-form-control-color-placeholder);
|
24
|
+
}
|
25
|
+
&::-moz-placeholder { /* Firefox 19+ */
|
26
|
+
color: var(--ec-form-control-color-placeholder);
|
27
|
+
opacity: 1;
|
28
|
+
}
|
29
|
+
&:-ms-input-placeholder { /* IE 10+ */
|
30
|
+
color: var(--ec-form-control-color-placeholder);
|
31
|
+
}
|
32
|
+
&:-moz-placeholder { /* Firefox 18- */
|
33
|
+
color: var(--ec-form-control-color-placeholder);
|
34
|
+
opacity: 1;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
@mixin form-control-input-group-invalid {
|
39
|
+
.textbox-group-input ::ng-deep .control input.ng-invalid,
|
40
|
+
.textbox-group-input ::ng-deep .control input.ng-valid {
|
41
|
+
@include form-control-state(invalid, input);
|
42
|
+
|
43
|
+
background-image: none;
|
44
|
+
|
45
|
+
& ~ .icon-invalid {
|
46
|
+
display: inline-flex;
|
47
|
+
position: absolute;
|
48
|
+
left: .5rem;
|
49
|
+
top: .5rem;
|
50
|
+
z-index: 1;
|
51
|
+
}
|
52
|
+
|
53
|
+
& ~ .icon-required {
|
54
|
+
display: none
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
&:not(.open) {
|
59
|
+
.textbox-group-btn-right ::ng-deep button{
|
60
|
+
&:not(:focus) {
|
61
|
+
border-color: var(--ec-form-control-border-color-invalid);
|
62
|
+
}
|
63
|
+
background-color: var(--ec-form-control-background-color-invalid);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
/// Calculate the background properties for an input icon
|
69
|
+
/// @param {string} $icon - The classname of the icon (matches the filename)
|
70
|
+
/// @param {number} $width [$form-control-icon-size] - The width of the icon, converted to ems
|
71
|
+
/// @param {number} $height [$form-control-icon-size] - The height of the icon, converted to ems
|
72
|
+
/// @param {string|number|list} $position [$form-control-icon-position] - The background-position of the icon
|
73
|
+
/// @param {number} $indent [$form-control-icon-size] - The amount to indent the text to allow room for the icon
|
74
|
+
@mixin form-control-input-icon(
|
75
|
+
$icon,
|
76
|
+
$width: $form-control-icon-size,
|
77
|
+
$height: $form-control-icon-size,
|
78
|
+
$position: $form-control-icon-position,
|
79
|
+
$indent: $form-control-icon-size + .25rem,
|
80
|
+
) {
|
81
|
+
$size: $width, $height;
|
82
|
+
@include icon-bg-image($icon, $position, $size);
|
83
|
+
padding-left: ($indent + $form-control-padding-x);
|
84
|
+
}
|
85
|
+
|
86
|
+
@mixin form-control-state($state, $selector) {
|
87
|
+
$icon-position: $form-control-icon-position;
|
88
|
+
|
89
|
+
@if $selector == textarea {
|
90
|
+
$icon-position: .5rem .5rem;
|
91
|
+
}
|
92
|
+
|
93
|
+
/// Required
|
94
|
+
@if $state == required {
|
95
|
+
// TODO: remove when all bootstrap and kendo controls have been replaced in EUM
|
96
|
+
@include form-control-input-icon($required-icon, $position: $icon-position);
|
97
|
+
|
98
|
+
/// Pending
|
99
|
+
} @else if $state == pending {
|
100
|
+
|
101
|
+
// TODO: remove when all bootstrap and kendo controls have been replaced in EUM
|
102
|
+
@include form-control-input-icon(pending-icon(), $position: $icon-position);
|
103
|
+
|
104
|
+
/// Invalid
|
105
|
+
} @else if $state == invalid {
|
106
|
+
background-color: var(--ec-form-control-background-color-invalid);
|
107
|
+
border-color: var(--ec-form-control-border-color-invalid);
|
108
|
+
|
109
|
+
&:focus {
|
110
|
+
border-color: var(--ec-form-control-background-color-invalid);
|
111
|
+
}
|
112
|
+
|
113
|
+
// TODO: remove when all bootstrap and kendo controls have been replaced in EUM
|
114
|
+
@include form-control-input-icon($invalid-icon, $position: $icon-position);
|
115
|
+
|
116
|
+
/// Focus
|
117
|
+
} @else if $state == focus {
|
118
|
+
border-color: var(--ec-form-control-border-color-focus);
|
119
|
+
box-shadow: var(--ec-form-control-box-shadow-focus);
|
120
|
+
position: relative;
|
121
|
+
z-index: 1;
|
122
|
+
|
123
|
+
/// Disabled
|
124
|
+
} @else if $state == disabled {
|
125
|
+
background-color: var(--ec-form-control-background-color-disabled);
|
126
|
+
border-color: var(--ec-form-control-border-color-disabled);
|
127
|
+
color: var(--ec-form-control-color-disabled);
|
128
|
+
opacity: var(--ec-form-control-opacity-disabled);
|
129
|
+
|
130
|
+
&:required,
|
131
|
+
&:required.is-empty {
|
132
|
+
background-image: none;
|
133
|
+
padding-left: $form-control-padding-x;
|
134
|
+
|
135
|
+
// We need to define these again because the :required styles override
|
136
|
+
// the background-color and border-color we set above
|
137
|
+
background-color: var(--ec-form-control-background-color-disabled);
|
138
|
+
border-color: var(--ec-form-control-border-color-disabled);
|
139
|
+
|
140
|
+
& + .icon-required {
|
141
|
+
display: none;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
/// A form control label
|
148
|
+
@mixin form-control-label {
|
149
|
+
color: var(--ec-form-control-label-color, var(--ec-color-secondary-dark));
|
150
|
+
display: block;
|
151
|
+
font-size: $form-control-label-size;
|
152
|
+
line-height: 1;
|
153
|
+
margin: calc(#{$form-control-label-size} / 2) 0;
|
154
|
+
}
|
155
|
+
|
156
|
+
/// The default form control element in the control component
|
157
|
+
/// @param {string} $tag [input] - The HTML tag name of the input element (e.g. input, textarea)
|
158
|
+
@mixin form-control-input($selector: input, $new-state-icons: false) {
|
159
|
+
@include form-control-input-base;
|
160
|
+
background-color: var(--ec-form-control-background-color);
|
161
|
+
border: 1px solid var(--ec-form-control-border-color);
|
162
|
+
border-radius: var(--ec-border-radius);
|
163
|
+
background-image: none;
|
164
|
+
background-clip: padding-box;
|
165
|
+
width: 100%;
|
166
|
+
line-height: $form-control-line-height;
|
167
|
+
padding: $form-control-padding-y $form-control-padding-x;
|
168
|
+
|
169
|
+
@if $selector == input {
|
170
|
+
height: $form-control-height;
|
171
|
+
} @else {
|
172
|
+
height: auto;
|
173
|
+
}
|
174
|
+
|
175
|
+
& ~ .icon-required,
|
176
|
+
& ~ .icon-invalid {
|
177
|
+
color: var(--ec-form-control-border-color-invalid);
|
178
|
+
}
|
179
|
+
|
180
|
+
&:required {
|
181
|
+
&.is-empty {
|
182
|
+
@include form-control-state(required, $selector);
|
183
|
+
|
184
|
+
@if $new-state-icons {
|
185
|
+
background-image: none;
|
186
|
+
|
187
|
+
& ~ .icon-required {
|
188
|
+
display: inline-flex;
|
189
|
+
position: absolute;
|
190
|
+
left: .5rem;
|
191
|
+
top: .5rem;
|
192
|
+
z-index: 1;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
// Use .ng-invalid because not all Angular validators trigger :invalid
|
199
|
+
&.ng-invalid {
|
200
|
+
&.ng-touched {
|
201
|
+
@include form-control-state(invalid, $selector);
|
202
|
+
|
203
|
+
@if $new-state-icons {
|
204
|
+
background-image: none;
|
205
|
+
|
206
|
+
& ~ .icon-invalid {
|
207
|
+
display: inline-flex;
|
208
|
+
position: absolute;
|
209
|
+
left: .5rem;
|
210
|
+
top: .5rem;
|
211
|
+
z-index: 1;
|
212
|
+
}
|
213
|
+
|
214
|
+
& ~ .icon-required {
|
215
|
+
display: none
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
&.is-pending {
|
222
|
+
&.ng-valid,
|
223
|
+
&.ng-invalid,
|
224
|
+
&.ng-pending {
|
225
|
+
@include form-control-state(pending, $selector);
|
226
|
+
|
227
|
+
@if $new-state-icons {
|
228
|
+
& ~ .icon-loading {
|
229
|
+
display: inline-flex;
|
230
|
+
position: absolute;
|
231
|
+
left: .5rem;
|
232
|
+
top: .5rem;
|
233
|
+
z-index: 1;
|
234
|
+
}
|
235
|
+
|
236
|
+
& ~ .icon-required,
|
237
|
+
& ~ .icon-invalid {
|
238
|
+
display: none;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
&:focus,
|
245
|
+
&:focus.is-empty {
|
246
|
+
@include form-control-state(focus, $selector);
|
247
|
+
}
|
248
|
+
|
249
|
+
&:disabled {
|
250
|
+
@include form-control-state(disabled, $selector);
|
251
|
+
}
|
252
|
+
|
253
|
+
&.is-uppercase:not(.is-empty) {
|
254
|
+
text-transform: uppercase;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
/// The base styles of a control component. These styles will be applied to :host
|
259
|
+
@mixin form-control-base() {
|
260
|
+
color: var(--ec-form-control-color);
|
261
|
+
// font-family: $control-font-family;
|
262
|
+
font-size: var(--ec-form-control-font-size);
|
263
|
+
display: block;
|
264
|
+
margin-bottom: 1rem;
|
265
|
+
width: 100%;
|
266
|
+
|
267
|
+
:host-context(.form-condensed) {
|
268
|
+
margin-bottom: .5rem;
|
269
|
+
}
|
270
|
+
|
271
|
+
.control {
|
272
|
+
width: 100%;
|
273
|
+
display: flex;
|
274
|
+
flex-direction: column;
|
275
|
+
|
276
|
+
&.control-label-bottom {
|
277
|
+
flex-direction: column-reverse;
|
278
|
+
}
|
279
|
+
|
280
|
+
&.control-label-left {
|
281
|
+
flex-direction: row;
|
282
|
+
label {
|
283
|
+
margin-right: .25rem;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
&.control-label-right {
|
288
|
+
flex-direction: row-reverse;
|
289
|
+
label {
|
290
|
+
margin-left: .25rem;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
|
294
|
+
&.control-label-left,
|
295
|
+
&.control-label-right {
|
296
|
+
align-items: center;
|
297
|
+
|
298
|
+
label {
|
299
|
+
flex: 1 1;
|
300
|
+
margin-top: 0;
|
301
|
+
margin-bottom: 0;
|
302
|
+
}
|
303
|
+
.control-input {
|
304
|
+
flex: 2 2;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
&.is-readonly {
|
309
|
+
input,
|
310
|
+
select,
|
311
|
+
textarea {
|
312
|
+
@include form-control-read-only;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
|
316
|
+
&.invalid {
|
317
|
+
@include form-control-input-group-invalid;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
.textbox-group {
|
322
|
+
display: flex;
|
323
|
+
position: relative;
|
324
|
+
}
|
325
|
+
|
326
|
+
textarea:focus,
|
327
|
+
input:focus,
|
328
|
+
select:focus {
|
329
|
+
outline: none;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
@mixin checkbox-radio {
|
334
|
+
cursor: pointer;
|
335
|
+
display: inline-flex;
|
336
|
+
margin-bottom: 0;
|
337
|
+
position: relative;
|
338
|
+
}
|
339
|
+
|
340
|
+
@mixin checkbox-radio-input(
|
341
|
+
$type,
|
342
|
+
$indicator-selector: '.indicator',
|
343
|
+
$label-selector: '.label'
|
344
|
+
) {
|
345
|
+
margin-top: .5rem;
|
346
|
+
opacity: 0;
|
347
|
+
position: absolute;
|
348
|
+
z-index: -1;
|
349
|
+
|
350
|
+
&:not(:checked) {
|
351
|
+
+ #{$indicator-selector} {
|
352
|
+
color: var(--ec-form-control-border-color);
|
353
|
+
|
354
|
+
&::before {
|
355
|
+
display: none;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
}
|
359
|
+
|
360
|
+
@if $type == 'checkbox' {
|
361
|
+
&.indeterminate,
|
362
|
+
&:indeterminate {
|
363
|
+
+ #{$indicator-selector} {
|
364
|
+
color: var(--ec-color-interactive);
|
365
|
+
|
366
|
+
&::before {
|
367
|
+
content: '';
|
368
|
+
background-color: currentColor;
|
369
|
+
display: block;
|
370
|
+
width: 10px;
|
371
|
+
height: 3px;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}
|
375
|
+
}
|
376
|
+
|
377
|
+
&:focus {
|
378
|
+
+ #{$indicator-selector} {
|
379
|
+
color: var(--ec-color-interactive);
|
380
|
+
box-shadow: var(--ec-form-control-box-shadow-focus);
|
381
|
+
border-color: var(--ec-form-control-border-color-focus);
|
382
|
+
}
|
383
|
+
}
|
384
|
+
|
385
|
+
&:disabled {
|
386
|
+
+ #{$indicator-selector} {
|
387
|
+
color: var(--ec-form-control-color-disabled);
|
388
|
+
background-color: var(--ec-form-control-background-color-disabled);
|
389
|
+
border-color: var(--ec-form-control-border-color-disabled);
|
390
|
+
opacity: var(--ec-form-control-opacity-disabled);
|
391
|
+
}
|
392
|
+
|
393
|
+
~ #{$label-selector} {
|
394
|
+
color: var(--ec-form-control-color-disabled);
|
395
|
+
opacity: var(--ec-form-control-opacity-disabled);
|
396
|
+
}
|
397
|
+
}
|
398
|
+
}
|
399
|
+
|
400
|
+
@mixin checkbox-radio-indicator($type) {
|
401
|
+
background-color: var(--ec-form-control-background-color);
|
402
|
+
background-clip: padding-box;
|
403
|
+
border: 1px solid currentColor;
|
404
|
+
color: var(--ec-color-interactive);
|
405
|
+
margin-top: .5rem;
|
406
|
+
flex: none;
|
407
|
+
pointer-events: none;
|
408
|
+
display: inline-flex;
|
409
|
+
align-items: center;
|
410
|
+
justify-content: center;
|
411
|
+
height: 1em;
|
412
|
+
width: 1em;
|
413
|
+
|
414
|
+
@if $type == 'radio' {
|
415
|
+
border-radius: 50%;
|
416
|
+
|
417
|
+
&::before {
|
418
|
+
background-color: currentColor;
|
419
|
+
content: "";
|
420
|
+
display: block;
|
421
|
+
width: .5em;
|
422
|
+
height: .5em;
|
423
|
+
border-radius: 50%;
|
424
|
+
}
|
425
|
+
|
426
|
+
} @else {
|
427
|
+
border-radius: .125rem;
|
428
|
+
|
429
|
+
&::before {
|
430
|
+
font-size: .6875em;
|
431
|
+
}
|
432
|
+
}
|
433
|
+
}
|
434
|
+
|
435
|
+
@mixin checkbox-radio-label() {
|
436
|
+
line-height: $form-control-line-height;
|
437
|
+
padding: 0.375rem 0;
|
438
|
+
margin-left: .5rem;
|
439
|
+
min-height: $form-control-height;
|
440
|
+
height: auto;
|
441
|
+
}
|
442
|
+
|
443
|
+
@mixin checkbox-radio-readonly(
|
444
|
+
$input-selector: '.input',
|
445
|
+
$indicator-selector: '.indicator',
|
446
|
+
$label-selector: '.label'
|
447
|
+
) {
|
448
|
+
pointer-events: none;
|
449
|
+
|
450
|
+
#{$input-selector} {
|
451
|
+
opacity: 0;
|
452
|
+
}
|
453
|
+
|
454
|
+
#{$indicator-selector} {
|
455
|
+
background-color: var(--ec-form-control-background-color-readonly);
|
456
|
+
border-color: var(--ec-form-control-border-color-readonly);
|
457
|
+
}
|
458
|
+
|
459
|
+
#{$label-selector},
|
460
|
+
#{$indicator-selector} {
|
461
|
+
opacity: 1;
|
462
|
+
color: var(--ec-form-control-color);
|
463
|
+
}
|
464
|
+
}
|
465
|
+
|
466
|
+
@mixin toggle() {
|
467
|
+
font-size: var(--ec-form-control-font-size);
|
468
|
+
background-color: var(--ec-border-color);
|
469
|
+
border-radius: var(--ec-border-radius);
|
470
|
+
border: 1px solid var(--ec-border-color);
|
471
|
+
min-height: 2em;
|
472
|
+
position: relative;
|
473
|
+
color: var(--ec-color-secondary-dark);
|
474
|
+
display: flex;
|
475
|
+
|
476
|
+
input {
|
477
|
+
position: absolute;
|
478
|
+
z-index: -1;
|
479
|
+
opacity: 0;
|
480
|
+
|
481
|
+
&:checked {
|
482
|
+
& + label {
|
483
|
+
color: var(--ec-color-interactive);
|
484
|
+
}
|
485
|
+
|
486
|
+
&:last-of-type {
|
487
|
+
& ~ a {
|
488
|
+
transform: translateX(100%);
|
489
|
+
}
|
490
|
+
}
|
491
|
+
}
|
492
|
+
|
493
|
+
&:focus ~ .toggle-focused {
|
494
|
+
display: block;
|
495
|
+
}
|
496
|
+
}
|
497
|
+
|
498
|
+
.toggle-focused {
|
499
|
+
position: absolute;
|
500
|
+
top: 0;
|
501
|
+
left: 0;
|
502
|
+
bottom: 0;
|
503
|
+
right: 0;
|
504
|
+
box-shadow: var(--ec-form-control-box-shadow-focus);
|
505
|
+
border-radius: var(--ec-form-control-border-radius);
|
506
|
+
display: none;
|
507
|
+
}
|
508
|
+
|
509
|
+
label {
|
510
|
+
align-items: center;
|
511
|
+
cursor: pointer;
|
512
|
+
display: flex;
|
513
|
+
flex: 1 1 0%;
|
514
|
+
justify-content: center;
|
515
|
+
line-height: 1.1em;
|
516
|
+
margin-bottom: 0;
|
517
|
+
padding: 0.375rem .5rem;
|
518
|
+
position: relative;
|
519
|
+
text-align: center;
|
520
|
+
transition: color .3s ease;
|
521
|
+
z-index: 2;
|
522
|
+
|
523
|
+
.ec-icon {
|
524
|
+
color: inherit;
|
525
|
+
}
|
526
|
+
}
|
527
|
+
|
528
|
+
a {
|
529
|
+
border: 0.1875rem solid transparent;
|
530
|
+
border-radius: calc(var(--ec-form-control-border-radius) * .75);
|
531
|
+
display: block;
|
532
|
+
height: 100%;
|
533
|
+
left: 0;
|
534
|
+
position: absolute;
|
535
|
+
top: 0;
|
536
|
+
transition: transform .25s ease;
|
537
|
+
width: 50%;
|
538
|
+
z-index: 1;
|
539
|
+
|
540
|
+
.toggle-handle {
|
541
|
+
background-color: var(--ec-form-control-background-color);
|
542
|
+
border-radius: calc(var(--ec-form-control-border-radius) * .75);
|
543
|
+
height: 100%;
|
544
|
+
}
|
545
|
+
}
|
546
|
+
|
547
|
+
&.is-disabled {
|
548
|
+
opacity: var(--ec-form-control-opacity-disabled);
|
549
|
+
color: var(--ec-form-control-color-disabled);
|
550
|
+
|
551
|
+
label {
|
552
|
+
color: inherit !important;
|
553
|
+
cursor: default;
|
554
|
+
}
|
555
|
+
}
|
556
|
+
}
|
557
|
+
|
558
|
+
@mixin toggle-options {
|
559
|
+
@each $count in (3,4,5) {
|
560
|
+
.toggle-options-#{$count} {
|
561
|
+
a {
|
562
|
+
width: percentage(math.div(1, $count));
|
563
|
+
}
|
564
|
+
|
565
|
+
input:checked:last-of-type ~ a {
|
566
|
+
transform: translateX(percentage($count - 1));
|
567
|
+
}
|
568
|
+
|
569
|
+
@while $count > 2 {
|
570
|
+
$count: $count - 1;
|
571
|
+
input:checked:nth-of-type(#{$count}) ~ a {
|
572
|
+
transform: translateX(percentage($count - 1));
|
573
|
+
}
|
574
|
+
}
|
575
|
+
}
|
576
|
+
}
|
577
|
+
}
|
578
|
+
|
579
|
+
@mixin form-heading() {
|
580
|
+
@include form-control-label;
|
581
|
+
font-weight: bold;
|
582
|
+
}
|
583
|
+
|
584
|
+
// Override the presentation of children controls when the parent control is
|
585
|
+
// untouched
|
586
|
+
@mixin form-control-untouched {
|
587
|
+
input {
|
588
|
+
&.ng-invalid.ng-touched {
|
589
|
+
background-image: none;
|
590
|
+
padding-left: $form-control-padding-x;
|
591
|
+
|
592
|
+
&:not(.is-empty) ~ .units-left {
|
593
|
+
left: 0;
|
594
|
+
}
|
595
|
+
}
|
596
|
+
&:required:not(:disabled).is-empty {
|
597
|
+
@include form-control-state(required, input);
|
598
|
+
|
599
|
+
&:focus {
|
600
|
+
@include form-control-state(focus, input);
|
601
|
+
}
|
602
|
+
}
|
603
|
+
}
|
604
|
+
}
|
605
|
+
|
606
|
+
// Shared styles for controls that include a popup when the popup is open (combobox, dateinput)
|
607
|
+
@mixin form-control-open() {
|
608
|
+
.textbox-group {
|
609
|
+
ec-textbox {
|
610
|
+
--ec-form-control-box-shadow-focus: none;
|
611
|
+
--ec-form-control-border-color-focus: var(--ec-form-control-border-color);
|
612
|
+
}
|
613
|
+
|
614
|
+
ec-button {
|
615
|
+
--ec-button-box-shadow-focus-secondary: none;
|
616
|
+
--ec-button-background-color-secondary: var(--ec-background-color-selected);
|
617
|
+
}
|
618
|
+
}
|
619
|
+
}
|
620
|
+
|
621
|
+
@mixin form-control-read-only {
|
622
|
+
border-color: var(--ec-form-control-border-color-readonly);
|
623
|
+
background-color: var(--ec-form-control-background-color-readonly);
|
624
|
+
background-clip: border-box;
|
625
|
+
background-image: none;
|
626
|
+
color: var(--ec-form-control-color-readonly);
|
627
|
+
opacity: 1;
|
628
|
+
user-select: none;
|
629
|
+
pointer-events: none;
|
630
|
+
overflow: hidden;
|
631
|
+
white-space: nowrap;
|
632
|
+
}
|
633
|
+
|
634
|
+
@mixin form-control-popup {
|
635
|
+
background-color: var(--ec-background-color);
|
636
|
+
border-radius: var(--ec-border-radius-card);
|
637
|
+
box-shadow: var(--ec-box-shadow-overlay);
|
638
|
+
margin-top: .25rem;
|
639
|
+
overflow: hidden;
|
640
|
+
z-index: var(--ec-z-index-popup);
|
641
|
+
}
|