@energycap/components 0.42.4-esbuild.20250131-1219 → 0.42.4-esbuild.20250131-1256
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 +1 -5
- 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 +68 -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 +42 -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,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createTsProgram = exports.createTsCompilerHost = exports.parseTsConfig = void 0;
|
4
|
+
const path_1 = require("path");
|
5
|
+
const ts = require("typescript");
|
6
|
+
/** Parses the TSConfig file to be used in the TS Compiler Program. */
|
7
|
+
function parseTsConfig(absoluteTsConfigPath) {
|
8
|
+
const { config } = ts.readConfigFile(absoluteTsConfigPath, ts.sys.readFile);
|
9
|
+
const parseHost = {
|
10
|
+
useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
|
11
|
+
fileExists: ts.sys.fileExists,
|
12
|
+
readFile: ts.sys.readFile,
|
13
|
+
readDirectory: ts.sys.readDirectory
|
14
|
+
};
|
15
|
+
return ts.parseJsonConfigFileContent(config, parseHost, (0, path_1.dirname)(absoluteTsConfigPath), {});
|
16
|
+
}
|
17
|
+
exports.parseTsConfig = parseTsConfig;
|
18
|
+
/** Creates a file host to be used with with a TS Compiler program. */
|
19
|
+
function createTsCompilerHost(tree, options, basePath) {
|
20
|
+
const host = ts.createCompilerHost(options);
|
21
|
+
// Read files from the virtual tree to prevent conflicting changes between project migrations
|
22
|
+
host.readFile = (fileName) => {
|
23
|
+
var _a;
|
24
|
+
// The angular schematic tree reads files using paths relative to the project root
|
25
|
+
const filePath = (0, path_1.relative)(basePath, fileName);
|
26
|
+
const result = (_a = tree.read(filePath)) === null || _a === void 0 ? void 0 : _a.toString();
|
27
|
+
// Remove BOM header to prevent TSC parsing errors
|
28
|
+
return result === null || result === void 0 ? void 0 : result.replace(/^\uFEFF/, '');
|
29
|
+
};
|
30
|
+
return host;
|
31
|
+
}
|
32
|
+
exports.createTsCompilerHost = createTsCompilerHost;
|
33
|
+
function createTsProgram(tree, tsConfigPath, basePath) {
|
34
|
+
// Resolve the absolute file system path to the TSConfig file. This is needed for the TS Compiler to resolve files correctly.
|
35
|
+
const absoluteTsConfigPath = (0, path_1.resolve)(basePath, tsConfigPath);
|
36
|
+
const parsed = parseTsConfig(absoluteTsConfigPath);
|
37
|
+
const options = Object.assign(Object.assign({}, parsed.options), { skipLibCheck: true, skipDefaultLibCheck: true });
|
38
|
+
const host = createTsCompilerHost(tree, options, basePath);
|
39
|
+
return ts.createProgram(parsed.fileNames, options, host);
|
40
|
+
}
|
41
|
+
exports.createTsProgram = createTsProgram;
|
42
|
+
//# sourceMappingURL=typescript.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/typescript.ts"],"names":[],"mappings":";;;AACA,+BAAkD;AAClD,iCAAiC;AAEjC,sEAAsE;AACtE,SAAgB,aAAa,CAAC,oBAA4B;IACxD,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,oBAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG;QAChB,yBAAyB,EAAE,EAAE,CAAC,GAAG,CAAC,yBAAyB;QAC3D,UAAU,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU;QAC7B,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ;QACzB,aAAa,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa;KACpC,CAAC;IAEF,OAAO,EAAE,CAAC,0BAA0B,CAAC,MAAM,EAAE,SAAS,EAAE,IAAA,cAAO,EAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7F,CAAC;AAVD,sCAUC;AAED,sEAAsE;AACtE,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAA2B,EAAE,QAAgB;IAC5F,MAAM,IAAI,GAAG,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC5C,6FAA6F;IAC7F,IAAI,CAAC,QAAQ,GAAG,CAAC,QAAgB,EAAE,EAAE;;QACnC,kFAAkF;QAClF,MAAM,QAAQ,GAAG,IAAA,eAAQ,EAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC9C,MAAM,MAAM,GAAG,MAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,0CAAE,QAAQ,EAAE,CAAC;QAC/C,kDAAkD;QAClD,OAAO,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAXD,oDAWC;AAGD,SAAgB,eAAe,CAAC,IAAU,EAAE,YAAoB,EAAE,QAAgB;IAChF,6HAA6H;IAC7H,MAAM,oBAAoB,GAAG,IAAA,cAAO,EAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACnD,MAAM,OAAO,mCAAQ,MAAM,CAAC,OAAO,KAAE,YAAY,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,GAAE,CAAC;IACrF,MAAM,IAAI,GAAG,oBAAoB,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC3D,OAAO,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AAC3D,CAAC;AAPD,0CAOC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { workspaces } from '@angular-devkit/core';
|
2
|
+
import { Tree } from '@angular-devkit/schematics';
|
3
|
+
/** Creates a file host to be used with Angular-Devkit's workspace utilities */
|
4
|
+
export declare function createWorkspaceHost(tree: Tree): workspaces.WorkspaceHost;
|
5
|
+
/** Returns the Angular workspace definition for the given path. The path must be a directory containing an angular.json or .angular.json file. */
|
6
|
+
export declare function getWorkspace(path: string, tree: Tree): Promise<workspaces.WorkspaceDefinition>;
|
7
|
+
/** Returns all tsconfig paths from the angular workspace, including testing tsconfigs. */
|
8
|
+
export declare function getTsConfigPaths(workspace: workspaces.WorkspaceDefinition, tree: Tree): string[];
|
@@ -0,0 +1,72 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.getTsConfigPaths = exports.getWorkspace = exports.createWorkspaceHost = void 0;
|
13
|
+
const core_1 = require("@angular-devkit/core");
|
14
|
+
const workspace_1 = require("@schematics/angular/utility/workspace");
|
15
|
+
/** Creates a file host to be used with Angular-Devkit's workspace utilities */
|
16
|
+
function createWorkspaceHost(tree) {
|
17
|
+
return {
|
18
|
+
readFile(path) {
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
20
|
+
const data = tree.read(path);
|
21
|
+
if (!data) {
|
22
|
+
throw new Error(`File not found: ${path}`);
|
23
|
+
}
|
24
|
+
return core_1.virtualFs.fileBufferToString(data);
|
25
|
+
});
|
26
|
+
},
|
27
|
+
writeFile(path, data) {
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
29
|
+
return tree.overwrite(path, data);
|
30
|
+
});
|
31
|
+
},
|
32
|
+
isDirectory(path) {
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
34
|
+
return !tree.exists(path) && tree.getDir(path).subfiles.length > 0;
|
35
|
+
});
|
36
|
+
},
|
37
|
+
isFile(path) {
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
39
|
+
return tree.exists(path);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
};
|
43
|
+
}
|
44
|
+
exports.createWorkspaceHost = createWorkspaceHost;
|
45
|
+
/** Returns the Angular workspace definition for the given path. The path must be a directory containing an angular.json or .angular.json file. */
|
46
|
+
function getWorkspace(path, tree) {
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
48
|
+
const host = createWorkspaceHost(tree);
|
49
|
+
const { workspace } = yield core_1.workspaces.readWorkspace(path, host);
|
50
|
+
return workspace;
|
51
|
+
});
|
52
|
+
}
|
53
|
+
exports.getWorkspace = getWorkspace;
|
54
|
+
/** Returns all tsconfig paths from the angular workspace, including testing tsconfigs. */
|
55
|
+
function getTsConfigPaths(workspace, tree) {
|
56
|
+
const buildPaths = new Set();
|
57
|
+
const testPaths = new Set();
|
58
|
+
for (const [name, target] of (0, workspace_1.allWorkspaceTargets)(workspace)) {
|
59
|
+
if (name !== 'build' && name !== 'test') {
|
60
|
+
continue;
|
61
|
+
}
|
62
|
+
for (const [, options] of (0, workspace_1.allTargetOptions)(target)) {
|
63
|
+
if (options.tsConfig && typeof options.tsConfig === 'string' && tree.exists(options.tsConfig)) {
|
64
|
+
const normalizedPath = (0, core_1.normalize)(options.tsConfig);
|
65
|
+
name === 'build' ? buildPaths.add(normalizedPath) : testPaths.add(normalizedPath);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
return [...buildPaths, ...testPaths];
|
70
|
+
}
|
71
|
+
exports.getTsConfigPaths = getTsConfigPaths;
|
72
|
+
//# sourceMappingURL=workspace.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/workspace.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwE;AAExE,qEAA8F;AAE9F,+EAA+E;AAC/E,SAAgB,mBAAmB,CAAC,IAAU;IAC5C,OAAO;QACC,QAAQ,CAAC,IAAY;;gBACzB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC7B,IAAI,CAAC,IAAI,EAAE,CAAC;oBACV,MAAM,IAAI,KAAK,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC;gBAC7C,CAAC;gBACD,OAAO,gBAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YAC5C,CAAC;SAAA;QACK,SAAS,CAAC,IAAY,EAAE,IAAY;;gBACxC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACpC,CAAC;SAAA;QACK,WAAW,CAAC,IAAY;;gBAC5B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;YACrE,CAAC;SAAA;QACK,MAAM,CAAC,IAAY;;gBACvB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC3B,CAAC;SAAA;KACF,CAAA;AACH,CAAC;AAnBD,kDAmBC;AAED,kJAAkJ;AAClJ,SAAsB,YAAY,CAAC,IAAY,EAAE,IAAU;;QACzD,MAAM,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,iBAAU,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACjE,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA;AAJD,oCAIC;AAED,0FAA0F;AAC1F,SAAgB,gBAAgB,CAAC,SAAyC,EAAE,IAAU;IACpF,MAAM,UAAU,GAAG,IAAI,GAAG,EAAU,CAAC;IACrC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;IAEpC,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAA,+BAAmB,EAAC,SAAS,CAAC,EAAE,CAAC;QAC5D,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;YACxC,SAAS;QACX,CAAC;QAED,KAAK,MAAM,CAAC,EAAE,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,MAAM,CAAC,EAAE,CAAC;YACnD,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC9F,MAAM,cAAc,GAAG,IAAA,gBAAS,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBACnD,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YACpF,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS,CAAC,CAAC;AACvC,CAAC;AAlBD,4CAkBC"}
|
Binary file
|
Binary file
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32">
|
2
|
+
<path fill="#fff" d="M28 0H4a4 4 0 0 0-4 4v24a4 4 0 0 0 4 4h24a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4Z"/>
|
3
|
+
<path fill="#162F3B" d="M23.638 21.816v1.257h-5.382v-.984l2.764-2.608c.293-.282.66-.617.775-.816.126-.21.157-.398.157-.597 0-.283-.094-.503-.293-.66-.199-.157-.482-.22-.859-.23-.481-.01-.774.157-1.026.272-.251.115-.46.304-.628.534l-1.204-.775c.283-.418.66-.743 1.152-.973a3.911 3.911 0 0 1 1.685-.356c.534 0 .995.083 1.393.261s.712.42.932.733c.22.314.335.691.335 1.12 0 .388-.084.755-.24 1.09-.169.345-.483.733-.954 1.162l-1.644 1.55h3.037v.02Z"/>
|
4
|
+
<path fill="#4F92F7" d="M17.02 4.75a11.23 11.23 0 0 0-8.575 3.978L6.142 7.095A14.036 14.036 0 0 1 17.02 1.943c4.387 0 8.303 2.01 10.878 5.152l-2.303 1.633a11.196 11.196 0 0 0-8.575-3.979Z"/>
|
5
|
+
<path fill="#162F3B" d="M17.02 30.057c4.388 0 8.304-2.01 10.88-5.152l-2.304-1.633a11.214 11.214 0 0 1-8.575 3.979c-6.21-.011-11.246-5.047-11.246-11.256 0-1.76.42-3.424 1.142-4.91L4.592 9.43a14.016 14.016 0 0 0-1.633 6.565c0 7.769 6.303 14.062 14.062 14.062Z"/>
|
6
|
+
<path fill="#4F92F7" d="M13.628 19.827a5.061 5.061 0 0 1-1.445-2.042 4.972 4.972 0 0 1 0-3.602 5.06 5.06 0 0 1 1.445-2.041c1.801-1.592 4.712-1.592 6.513 0a5.06 5.06 0 0 1 1.445 2.041c.031.084.052.168.084.252.47.052.91.167 1.308.345.472.2.88.482 1.204.838a7.026 7.026 0 0 0-.722-2.754h-.01a7.054 7.054 0 0 0-1.498-2.01c-2.733-2.65-7.423-2.65-10.156 0a7.253 7.253 0 0 0-1.497 2.01h-.01a7.075 7.075 0 0 0 0 6.261h.01a7.05 7.05 0 0 0 1.497 2.01c1.32 1.278 3.089 1.938 4.88 1.98V21.02c-1.1-.062-2.2-.45-3.048-1.193Z"/>
|
7
|
+
</svg>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect width="32" height="32" rx="4" fill="white"/>
|
3
|
+
<path d="M16.817 28C20.5622 28 23.9052 26.2838 26.1041 23.6022L24.1376 22.2078C22.3767 24.2816 19.7577 25.6045 16.817 25.6045C11.5164 25.5955 7.21697 21.2961 7.21697 15.9955C7.21697 14.4939 7.57451 13.0726 8.19127 11.8034L6.20691 10.3911C5.322 12.0626 4.8125 13.9754 4.8125 15.9955C4.8125 22.6279 10.1935 28 16.817 28Z" fill="#162F3B"/>
|
4
|
+
<path d="M16.8169 6.39553C19.7488 6.39553 22.3767 7.71844 24.1376 9.79218L26.1041 8.39777C23.9052 5.7162 20.5622 4 16.8169 4C13.0717 4 9.73761 5.70726 7.52979 8.38883L9.49627 9.78324C11.2661 7.7095 13.8851 6.39553 16.8169 6.39553Z" fill="#51B51C"/>
|
5
|
+
<path d="M25.5052 13.8503H21.5812L20.446 16.076L16.7544 8.83575L12.0795 18.8291H10.2829L9.39795 20.8045H13.456L16.9868 13.457L20.3745 20.5721L22.7611 15.8257H24.6114L25.5052 13.8503Z" fill="#51B51C"/>
|
6
|
+
</svg>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32">
|
2
|
+
<path fill="#fff" d="M28 0H4a4 4 0 0 0-4 4v24a4 4 0 0 0 4 4h24a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4Z"/>
|
3
|
+
<path fill="#162F3B" d="M17.134 29.995c4.368 0 8.267-2.002 10.832-5.129l-2.294-1.626a11.165 11.165 0 0 1-8.538 3.961c-6.181-.01-11.196-5.024-11.196-11.206 0-1.752.417-3.41 1.137-4.89L4.76 9.46a13.955 13.955 0 0 0-1.627 6.536c0 7.735 6.276 14 14 14Z"/>
|
4
|
+
<path fill="#9069B5" d="M17.135 4.799a11.18 11.18 0 0 1 8.537 3.961l2.294-1.626a13.975 13.975 0 0 0-10.831-5.129A13.982 13.982 0 0 0 6.303 7.123L8.597 8.75c2.064-2.419 5.118-3.951 8.538-3.951Zm3.513 10.956v-5.754H10.379v11.988h2.304v-9.695h5.66v9.695h2.305v-3.94h3.356v3.94h2.304v-6.234h-5.66Z"/>
|
5
|
+
<path fill="#9069B5" d="M16.665 18.611h-2.303v3.378h2.303v-3.378Z"/>
|
6
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32">
|
2
|
+
<path fill="#fff" d="M28 0H4a4 4 0 0 0-4 4v24a4 4 0 0 0 4 4h24a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4Z"/>
|
3
|
+
<path fill="#162F3B" d="M22.56 20.06v2.8H11.519v-2.8H22.56Zm-3.628-5.471v2.8h-7.414v-2.8h7.414Zm3.629-5.471v2.8H11.518v-2.8H22.56ZM16.994 4.8c3.422 0 6.48 1.54 8.535 3.96l2.296-1.63A13.973 13.973 0 0 0 16.995 2c-4.363 0-8.266 2-10.83 5.13L8.46 8.76a11.17 11.17 0 0 1 8.534-3.96Z"/>
|
4
|
+
<path fill="#162F3B" d="M25.534 23.24A11.17 11.17 0 0 1 17 27.2a11.17 11.17 0 0 1-8.534-3.96l.01-.005C6.82 21.281 5.8 18.766 5.8 16c0-1.758.414-3.41 1.137-4.894L4.618 9.465A13.94 13.94 0 0 0 3 16c0 3.366 1.193 6.451 3.17 8.865A13.973 13.973 0 0 0 17 29.995c4.362 0 8.266-2 10.83-5.13l-2.296-1.624Z"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="none" viewBox="0 0 64 64">
|
2
|
+
<path fill="#162F3B" d="M47.05 45.248v2.87H34.8v-2.24l6.282-5.932c.665-.635 1.502-1.408 1.758-1.851.275-.478.35-.911.35-1.359 0-.655-.222-1.152-.66-1.502-.444-.35-1.088-.502-1.945-.526-1.103-.025-1.767.344-2.343.62-.577.27-1.054.68-1.443 1.22l-2.747-1.767c.635-.945 1.511-1.683 2.629-2.22 1.117-.532 2.392-.802 3.84-.802 1.206 0 2.27.197 3.175.59.906.394 1.615.956 2.117 1.674.507.72.758 1.57.758 2.546 0 .886-.187 1.713-.556 2.49-.37.779-1.093 1.66-2.161 2.654l-3.747 3.535h6.942Z"/>
|
3
|
+
<path fill="#162F3B" d="M47.05 45.248v2.87H34.8v-2.24l6.282-5.932c.665-.635 1.502-1.408 1.758-1.851.275-.478.35-.911.35-1.359 0-.655-.222-1.152-.66-1.502-.444-.35-1.088-.502-1.945-.526-1.103-.025-1.767.344-2.343.62-.577.27-1.054.68-1.443 1.22l-2.747-1.767c.635-.945 1.511-1.683 2.629-2.22 1.117-.532 2.392-.802 3.84-.802 1.206 0 2.27.197 3.175.59.906.394 1.615.956 2.117 1.674.507.72.758 1.57.758 2.546 0 .886-.187 1.713-.556 2.49-.37.779-1.093 1.66-2.161 2.654l-3.747 3.535h6.942Z"/>
|
4
|
+
<path fill="#4684E8" d="M32 6.4c-7.823 0-14.813 3.52-19.51 9.049l-5.248-3.722C13.11 4.569 22.02 0 32 0c9.98 0 18.89 4.569 24.758 11.727l-5.248 3.722C46.814 9.92 39.823 6.4 32 6.4Z"/>
|
5
|
+
<path fill="#4684E8" d="M32 6.4c-7.823 0-14.813 3.52-19.51 9.049l-5.248-3.722C13.11 4.569 22.02 0 32 0c9.98 0 18.89 4.569 24.758 11.727l-5.248 3.722C46.814 9.92 39.823 6.4 32 6.4Z"/>
|
6
|
+
<path fill="#162F3B" d="M32 64c9.98 0 18.89-4.569 24.758-11.727l-5.248-3.722C46.813 54.08 39.823 57.6 32 57.6 17.86 57.6 6.4 46.14 6.4 32c0-4.017.95-7.798 2.6-11.18l-5.298-3.757A31.804 31.804 0 0 0 0 32c0 17.674 14.326 32 32 32Z"/>
|
7
|
+
<path fill="#162F3B" d="M32 64c9.98 0 18.89-4.569 24.758-11.727l-5.248-3.722C46.813 54.08 39.823 57.6 32 57.6 17.86 57.6 6.4 46.14 6.4 32c0-4.017.95-7.798 2.6-11.18l-5.298-3.757A31.804 31.804 0 0 0 0 32c0 17.674 14.326 32 32 32Z"/>
|
8
|
+
<path fill="#4684E8" d="M24.27 40.714h-.004a11.452 11.452 0 0 1-3.289-4.648 11.397 11.397 0 0 1 0-8.206 11.515 11.515 0 0 1 3.289-4.653h.005c4.106-3.613 10.722-3.613 14.823 0h.005a11.45 11.45 0 0 1 3.289 4.648c.074.187.118.384.177.57 1.073.129 2.077.38 2.973.779a8.118 8.118 0 0 1 2.748 1.9 15.976 15.976 0 0 0-1.64-6.267l-.015.01a16.201 16.201 0 0 0-3.406-4.574c-6.213-6.04-16.906-6.04-23.12 0a16.277 16.277 0 0 0-3.401 4.579l-.015-.01c-2.225 4.43-2.225 9.816 0 14.247l.015-.01a16.348 16.348 0 0 0 3.402 4.574c2.998 2.914 7.035 4.411 11.111 4.514v-4.77c-2.53-.094-5.026-.975-6.966-2.683"/>
|
9
|
+
<path fill="#4684E8" d="M24.27 40.714h-.004a11.452 11.452 0 0 1-3.289-4.648 11.397 11.397 0 0 1 0-8.206 11.515 11.515 0 0 1 3.289-4.653h.005c4.106-3.613 10.722-3.613 14.823 0h.005a11.45 11.45 0 0 1 3.289 4.648c.074.187.118.384.177.57 1.073.129 2.077.38 2.973.779a8.118 8.118 0 0 1 2.748 1.9 15.976 15.976 0 0 0-1.64-6.267l-.015.01a16.201 16.201 0 0 0-3.406-4.574c-6.213-6.04-16.906-6.04-23.12 0a16.277 16.277 0 0 0-3.401 4.579l-.015-.01c-2.225 4.43-2.225 9.816 0 14.247l.015-.01a16.348 16.348 0 0 0 3.402 4.574c2.998 2.914 7.035 4.411 11.111 4.514v-4.77c-2.53-.094-5.026-.975-6.966-2.683"/>
|
10
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="none" viewBox="0 0 64 64">
|
2
|
+
<path fill="#162F3B" d="M32.012 64c9.987 0 18.902-4.577 24.766-11.727l-5.244-3.719c-4.696 5.53-11.68 9.058-19.522 9.058-14.135-.024-25.6-11.49-25.6-25.624 0-4.004.953-7.794 2.598-11.18l-5.292-3.765A31.907 31.907 0 0 0 0 31.988C0 49.675 14.35 64 32.012 64Z"/>
|
3
|
+
<path fill="#9069B5" d="M32.012 6.388c7.818 0 14.826 3.528 19.522 9.058l5.244-3.719C50.914 4.577 41.999 0 32.012 0 22.025 0 13.134 4.553 7.246 11.704l5.244 3.718c4.72-5.53 11.704-9.034 19.522-9.034Zm8.033 25.052V18.282H16.566v27.412h5.268V23.526h12.943v22.168h5.268v-9.01h7.675v9.01h5.268V31.44H40.045Z"/>
|
4
|
+
<path fill="#9069B5" d="M30.94 37.971h-5.268v7.723h5.267V37.97Z"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="none" viewBox="0 0 64 64">
|
2
|
+
<path fill="#E9A914" d="M35.406-.246h-7.828v34.211h7.828V-.246Z"/>
|
3
|
+
<path fill="#162F3B" d="m52.436 6.667-.407-.305-4.22 5.948.306.254c5.591 4.778 8.794 11.692 8.794 19.012 0 13.725-11.184 24.96-24.96 24.96-3.761 0-7.37-.865-10.827-2.491l-4.27 5.998h.05a32.304 32.304 0 0 0 15.047 3.71c17.742 0 32.23-14.436 32.23-32.228.05-9.607-4.27-18.707-11.743-24.858Z"/>
|
4
|
+
<path fill="#E9A914" d="M7.092 31.576c0-7.32 3.202-14.234 8.794-19.012l.356-.254-4.22-5.948-.406.305C4.143 12.818-.178 21.917-.178 31.576c0 9.658 4.321 18.758 11.794 24.909l4.219-5.999c-5.54-4.727-8.743-11.59-8.743-18.91Z"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="none" viewBox="0 0 64 64">
|
2
|
+
<path fill="#162F3B" d="M32.012 64c9.987 0 18.902-4.577 24.766-11.727l-5.244-3.719c-4.696 5.53-11.68 9.058-19.522 9.058-14.135-.024-25.6-11.49-25.6-25.624 0-4.004.953-7.794 2.598-11.18l-5.292-3.765A31.907 31.907 0 0 0 0 31.988C0 49.675 14.35 64 32.012 64Z"/>
|
3
|
+
<path fill="#51B51C" d="M32.012 6.388c7.818 0 14.826 3.528 19.522 9.058l5.244-3.719C50.914 4.577 41.999 0 32.012 0 22.025 0 13.134 4.553 7.246 11.704l5.244 3.718c4.72-5.53 11.704-9.034 19.522-9.034Z"/>
|
4
|
+
<path fill="#51B51C" d="M55.18 26.267H44.718l-3.027 5.936-9.845-19.308-12.466 26.65h-4.791l-2.36 5.267H23.05l9.415-19.593 9.034 18.973 6.364-12.657h4.934l2.384-5.268Z"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="33" height="32" fill="none" viewBox="0 0 33 32">
|
2
|
+
<path fill="#1A1A23" d="M22.373 8.351H10v3.138h12.373V8.35Zm0 12.261H10v3.137h12.373v-3.137Zm-4.066-6.13H10v3.137h8.307v-3.137ZM16.136 3.514c3.834 0 7.26 1.725 9.563 4.436l2.572-1.826A15.657 15.657 0 0 0 16.136.376c-4.888 0-9.261 2.24-12.135 5.748L6.574 7.95c2.303-2.71 5.729-4.436 9.562-4.436Z"/>
|
3
|
+
<path fill="#162F3B" d="M25.705 24.176c-2.303 2.71-5.729 4.436-9.563 4.436-3.833 0-7.26-1.726-9.562-4.436l.013-.007c-1.858-2.19-3-5.007-3-8.106 0-1.97.465-3.821 1.274-5.484L2.27 8.74a15.62 15.62 0 0 0-1.813 7.323 15.63 15.63 0 0 0 3.551 9.932 15.657 15.657 0 0 0 12.135 5.748c4.888 0 9.262-2.24 12.135-5.748l-2.572-1.82Z"/>
|
4
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="465" height="54" fill="none" viewBox="0 0 465 54">
|
2
|
+
<path fill="#100F0D" d="M8.68 46.268V31.315h25.77v-7.457H8.68V8.868h28.936V1.263H.13v52.61h38.504v-7.605H8.68ZM84.73 1.264v37.203L54.8 1.264h-6.93v52.61h8.563V16.67l29.941 37.204h6.919V1.264H84.73Zm76.322 7.605h11.874c4.477 0 7.936.956 10.266 2.833 2.319 1.877 3.447 4.527 3.447 8.084 0 3.557-1.128 6.219-3.447 8.12-2.33 1.902-5.777 2.87-10.254 2.87h-11.874V8.87h-.012Zm23.183 27.44c3.373-1.325 6.023-3.35 7.912-6.035 2.024-2.883 3.054-6.404 3.054-10.476 0-5.74-1.999-10.316-5.949-13.615-3.913-3.263-9.322-4.92-16.106-4.92H152.49v52.61h8.562V38.235h12.094c.736 0 1.718-.036 2.932-.123l11.064 15.763h9.494L184.235 36.31ZM297.159 1.264l-16.18 26.532-16.105-26.532h-9.286l20.89 34.26v18.35h8.488V35.67l20.877-34.407h-8.684Zm96.181 32.665h-20.3l10.156-23.06 10.144 23.06Zm-6.098-32.665h-8.057l-23.823 52.61h8.906l5.656-12.843h26.517l5.656 12.843h9.054l-23.909-52.61Zm64.631 18.522c0 3.557-1.127 6.207-3.447 8.083-2.33 1.877-5.777 2.834-10.265 2.834h-11.876V8.869h11.876c4.488 0 7.935.956 10.265 2.834 2.332 1.876 3.447 4.526 3.447 8.083ZM454.5 6.183c-3.915-3.263-9.324-4.92-16.107-4.92h-20.657v52.61h8.561V38.309h12.096c6.771 0 12.192-1.656 16.107-4.919 3.949-3.287 5.947-7.863 5.947-13.615-.012-5.729-2.01-10.304-5.947-13.591ZM228.504 26.14v7.875h13.665v9.101c-3.251 2.012-7.078 3.018-11.408 3.018-3.741 0-7.151-.834-10.144-2.49-2.993-1.644-5.361-3.95-7.053-6.845-1.693-2.895-2.551-6.182-2.551-9.764 0-3.63.858-6.942 2.551-9.837 1.692-2.895 4.06-5.189 7.053-6.808 2.993-1.632 6.427-2.453 10.218-2.453 5.618 0 10.488 1.938 14.45 5.765l.429.417 5.372-5.373-.392-.429c-2.404-2.65-5.348-4.686-8.758-6.047C238.538.908 234.699.21 230.541.21c-5.3 0-10.145 1.152-14.389 3.446-4.256 2.294-7.642 5.52-10.046 9.604-2.417 4.085-3.643 8.722-3.643 13.788 0 5.066 1.226 9.702 3.643 13.75 2.416 4.06 5.777 7.286 10.009 9.593 4.22 2.306 9.028 3.483 14.291 3.483 3.716 0 7.322-.577 10.745-1.717 3.422-1.14 6.476-2.81 9.065-4.944l.221-.184V26.14h-21.933ZM102.529 1.239h39.731v7.949h-39.731V1.239Zm0 44.686h40.761v7.95h-40.761v-7.95Zm0-22.349h26.422v7.949h-26.422v-7.949Zm230.337 22.398c-10.488 0-19.013-8.537-19.013-19.037 0-2.392.465-4.673 1.276-6.795l-7.066-5.005a26.225 26.225 0 0 0-2.796 11.8c0 14.855 12.378 26.937 27.599 26.937 7.433 0 14.18-2.883 19.148-7.568l-6.87-4.87c-3.311 2.821-7.592 4.538-12.278 4.538Zm0-38.074c5.999 0 11.346 2.796 14.83 7.151l6.796-4.82C349.437 3.998 341.625 0 332.866 0c-8.757 0-16.572 4.01-21.627 10.23l6.796 4.82c3.485-4.354 8.834-7.151 14.831-7.151Zm127.113 40.376c.276-.219.412-.526.412-.922s-.136-.701-.412-.916c-.275-.213-.666-.32-1.164-.32h-1.379v2.486h1.379c.498 0 .889-.109 1.164-.328Zm1.103.281a1.902 1.902 0 0 1-.969.72l1.421 2.204h-1.078l-1.297-2h-1.707v2h-1.063v-6.254h2.503c.781 0 1.4.193 1.852.579.453.385.682.901.682 1.548 0 .468-.118.87-.344 1.203Zm-.05 3.972a4.664 4.664 0 0 0 1.729-1.751 4.85 4.85 0 0 0 .635-2.455c0-.897-.208-1.71-.62-2.44a4.498 4.498 0 0 0-1.703-1.72c-.725-.416-1.54-.625-2.447-.625-.895 0-1.713.214-2.447.641a4.652 4.652 0 0 0-1.729 1.744 4.862 4.862 0 0 0-.625 2.431c0 .886.21 1.697.625 2.432a4.672 4.672 0 0 0 1.719 1.743c.731.428 1.54.641 2.426.641.895 0 1.71-.213 2.437-.641Zm.4-8.976a5.236 5.236 0 0 1 1.979 1.979c.48.839.719 1.77.719 2.79a5.525 5.525 0 0 1-.734 2.807 5.44 5.44 0 0 1-2.001 2.01 5.479 5.479 0 0 1-2.8.735c-1.022 0-1.952-.245-2.791-.735a5.374 5.374 0 0 1-1.986-2.002 5.479 5.479 0 0 1-.727-2.783 5.48 5.48 0 0 1 .727-2.783 5.374 5.374 0 0 1 1.992-2.002c.846-.49 1.784-.735 2.816-.735 1.031 0 1.967.24 2.806.72Z"/>
|
3
|
+
</svg>
|
Binary file
|
@@ -0,0 +1,59 @@
|
|
1
|
+
{
|
2
|
+
"InvalidEmailValidationMessage_LC": "is an invalid email address",
|
3
|
+
"is required": "is required",
|
4
|
+
"RequiredPluralValidationMessage_LC": "are required",
|
5
|
+
"MinLengthValidationMessage_LC": "must be at least {{minLength}} characters long",
|
6
|
+
"MaxLengthValidationMessage": "must be 1–{{maxLength}} characters",
|
7
|
+
"IncorrectFormat_LC": "is not formatted correctly",
|
8
|
+
"MinValueValidationMessage_LC": "must be greater than or equal to {{minValue}}",
|
9
|
+
"MaxValueValidationMessage_LC": "must be less than or equal to {{maxValue}}",
|
10
|
+
"must be 5–9 numbers": "must be 5–9 numbers",
|
11
|
+
"must be 6 characters, alternating letters and numbers": "must be 6 characters, alternating letters and numbers",
|
12
|
+
"ZipCodeNotFoundValidationMessage_LC": "is not recognized",
|
13
|
+
"CouldNotBeAddedValidationMessage_LC": "could not be added",
|
14
|
+
"DateRangeValidationMessage_LC": "should be in chronological order",
|
15
|
+
"PasswordValidationMessage_LC": "does not match",
|
16
|
+
"MustBeUnique_LC": "must be unique",
|
17
|
+
"IntegerBetweenValidationMessage_LC": "must be a whole number between {{minValue}} and {{maxValue}}",
|
18
|
+
"IntegerMinValidationMessage_LC": "must be a whole number greater than or equal to {{minValue}}",
|
19
|
+
"IntegerMaxValidationMessage_LC": "must be a whole number less than or equal to {{maxValue}}",
|
20
|
+
"DecimalBetweenValidationMessage_LC": "must be a number between {{minValue}} and {{maxValue}}, rounded to {{precision}} decimal places or less",
|
21
|
+
"DecimalMinValidationMessage_LC": "must be a number greater than or equal to {{minValue}}, rounded to {{precision}} decimal places or less",
|
22
|
+
"DecimalMaxValidationMessage_LC": "must be a number less than or equal to {{maxValue}}, rounded to {{precision}} decimal places or less",
|
23
|
+
"DecimalValidationMessage_LC": "must be a number, rounded to {{precision}} decimal places or less",
|
24
|
+
"TextboxRequiredAndUnique_LC": "must be {{minLength}}–{{maxLength}} characters and unique",
|
25
|
+
"TextboxRequired_LC": "must be {{minLength}}–{{maxLength}} characters",
|
26
|
+
"NoMatches_SC": "No matches",
|
27
|
+
"Choose or add": "Choose or add",
|
28
|
+
"Choose": "Choose",
|
29
|
+
"DefaultUnknownError_SC": "An unknown error occurred. Please try again.",
|
30
|
+
"SearchableTable_Default_NoMatches_SC": "No items found matching <strong>{{searchText}}</strong>.",
|
31
|
+
"SearchableTable_Default_NoData_SC": "No data available.",
|
32
|
+
"MaxPrecisionDigitsValidationMessage_LC": "must be a number with no more than {{maxPrecisionDigits}} digits",
|
33
|
+
"MessageTooLong_Truncated_SC": "...message truncated due to length",
|
34
|
+
"JsonValidationMessage_SC": "is not valid JSON",
|
35
|
+
"PleaseCorrectForm_SC": "Please correct invalid values before submitting this form.",
|
36
|
+
"PageBaseUnknownSaveError_SC": "An unknown error occurred while saving your changes. Please try again later.",
|
37
|
+
"PasswordInvalidValidationMessage_LC": "does not meet all requirements",
|
38
|
+
"Next_TC": "Next",
|
39
|
+
"Back_TC": "Back",
|
40
|
+
"DomainValidationMessage_SC": "must be a valid domain name",
|
41
|
+
"ClearSelection_TC": "Clear Selection",
|
42
|
+
"ItemPickerNoItemsSelected_SC": "No {{itemName}} selected. Select from the available {{itemName}} list.",
|
43
|
+
"Done_TC": "Done",
|
44
|
+
"LearnMore_SC": "Learn more",
|
45
|
+
"SelectZipFiles_ELS": "Select ZIP files...",
|
46
|
+
"Browse_TC": "Browse",
|
47
|
+
"is invalid": "is invalid",
|
48
|
+
"AllItemPickerItemsSelected_SC": "All {{count}} {{itemName}} selected",
|
49
|
+
"SelectAllItemPickerItems_TC": "Select all {{count}} {{itemName}}",
|
50
|
+
"CountSelected_TC": "{{count}} selected",
|
51
|
+
"DateInputSelectionMode_day": "Day",
|
52
|
+
"DateInputSelectionMode_last7Days": "Last 7 days",
|
53
|
+
"DateInputSelectionMode_last28Days": "Last 28 days",
|
54
|
+
"DateInputSelectionMode_month": "Month",
|
55
|
+
"DateInputSelectionMode_quarter": "Quarter",
|
56
|
+
"DateInputSelectionMode_year": "Year",
|
57
|
+
"DateInputSelectionMode_range": "Range",
|
58
|
+
"DateInput_LatestDataAvailableTitle": "Select most recent data available"
|
59
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
var isIE = /*@cc_on!@*/false || !!document['documentMode'];
|
2
|
+
|
3
|
+
if (isIE) {
|
4
|
+
var unsupportedBrowser = '<div class="unsupported-browser">';
|
5
|
+
unsupportedBrowser += '<p>Internet Explorer is too outdated for the modern web technologies we have built into our application.</p>';
|
6
|
+
unsupportedBrowser += '<p>Please use one of these supported web browsers:</p>';
|
7
|
+
unsupportedBrowser += '<ul><li><a href="https://www.google.com/chrome/">Google Chrome</a></li>';
|
8
|
+
unsupportedBrowser += '<li><a href="https://www.microsoft.com/en-us/windows/microsoft-edge">Microsoft Edge</a></li>';
|
9
|
+
unsupportedBrowser += '<li><a href="https://www.mozilla.org">Mozilla Firefox</a></li></ul>';
|
10
|
+
unsupportedBrowser += '</div>';
|
11
|
+
|
12
|
+
var maskEl = document.createElement('div')
|
13
|
+
maskEl.className = 'unsupported-browser-container';
|
14
|
+
maskEl.innerHTML = unsupportedBrowser;
|
15
|
+
var bodyEl = document.querySelector('body');
|
16
|
+
bodyEl.appendChild(maskEl);
|
17
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
html,
|
2
|
+
body {
|
3
|
+
height: 100%;
|
4
|
+
overflow: hidden;
|
5
|
+
}
|
6
|
+
|
7
|
+
body {
|
8
|
+
font-family: var(--ec-font-family);
|
9
|
+
font-size: var(--ec-font-size);
|
10
|
+
color: var(--ec-color-primary-dark);
|
11
|
+
}
|
12
|
+
|
13
|
+
a {
|
14
|
+
color: var(--ec-color-link);
|
15
|
+
|
16
|
+
&:hover {
|
17
|
+
color: var(--ec-color-link);
|
18
|
+
text-decoration: underline;
|
19
|
+
}
|
20
|
+
|
21
|
+
&:focus {
|
22
|
+
outline: none;
|
23
|
+
text-decoration: underline;
|
24
|
+
}
|
25
|
+
|
26
|
+
&[disabled] {
|
27
|
+
color: var(--ec-color-disabled-dark);
|
28
|
+
cursor: default;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
p {
|
33
|
+
line-height: 1.25;
|
34
|
+
}
|
35
|
+
|
36
|
+
table {
|
37
|
+
background-color: transparent;
|
38
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
// Variables for the EnergyCAP brand color pallette
|
2
|
+
// Colors go from lighter (1) to darker (8).
|
3
|
+
$black: rgb(26, 26, 35);
|
4
|
+
$white: rgb(255, 255, 255);
|
5
|
+
|
6
|
+
$gray-1: rgb(218, 228, 233);
|
7
|
+
$gray-2: rgb(172, 188, 195);
|
8
|
+
$gray-3: rgb(140, 156, 165);
|
9
|
+
$gray-4: rgb(117, 132, 143);
|
10
|
+
$gray-5: rgb(94, 109, 121);
|
11
|
+
$gray-6: rgb(73, 89, 99);
|
12
|
+
$gray-7: rgb(53, 71, 81);
|
13
|
+
$gray-8: rgb(22, 47, 59);
|
14
|
+
|
15
|
+
$red-1: rgb(255, 225, 231);
|
16
|
+
$red-2: rgb(255, 178, 192);
|
17
|
+
$red-3: rgb(255, 138, 159);
|
18
|
+
$red-4: rgb(254, 88, 117);
|
19
|
+
$red-5: rgb(237, 56, 88);
|
20
|
+
$red-6: rgb(219, 11, 48);
|
21
|
+
$red-7: rgb(197, 1, 36);
|
22
|
+
$red-8: rgb(150, 0, 27);
|
23
|
+
|
24
|
+
$orange-1: rgb(253, 195, 161);
|
25
|
+
$orange-2: rgb(255, 181, 137);
|
26
|
+
$orange-3: rgb(255, 147, 83);
|
27
|
+
$orange-4: rgb(255, 131, 57);
|
28
|
+
$orange-5: rgb(249, 106, 21);
|
29
|
+
$orange-6: rgb(235, 91, 6);
|
30
|
+
$orange-7: rgb(214, 80, 2);
|
31
|
+
$orange-8: rgb(194, 72, 0);
|
32
|
+
|
33
|
+
$yellow-1: rgb(255, 249, 195);
|
34
|
+
$yellow-2: rgb(255, 239, 155);
|
35
|
+
$yellow-3: rgb(255, 230, 100);
|
36
|
+
$yellow-4: rgb(255, 222, 50);
|
37
|
+
$yellow-5: rgb(245, 207, 8);
|
38
|
+
$yellow-6: rgb(232, 182, 4);
|
39
|
+
$yellow-7: rgb(214, 150, 4);
|
40
|
+
$yellow-8: rgb(178, 124, 0);
|
41
|
+
|
42
|
+
$green-1: rgb(227, 251, 214);
|
43
|
+
$green-2: rgb(194, 236, 172);
|
44
|
+
$green-3: rgb(153, 216, 120);
|
45
|
+
$green-4: rgb(99, 184, 54);
|
46
|
+
$green-5: rgb(43, 154, 3);
|
47
|
+
$green-6: rgb(39, 134, 4);
|
48
|
+
$green-7: rgb(40, 111, 15);
|
49
|
+
$green-8: rgb(24, 86, 2);
|
50
|
+
|
51
|
+
$blue-1: rgb(185, 237, 252);
|
52
|
+
$blue-2: rgb(172, 228, 243);
|
53
|
+
$blue-3: rgb(118, 206, 230);
|
54
|
+
$blue-4: rgb(64, 183, 216);
|
55
|
+
$blue-5: rgb(42, 163, 196);
|
56
|
+
$blue-6: rgb(36, 143, 172);
|
57
|
+
$blue-7: rgb(26, 111, 135);
|
58
|
+
$blue-8: rgb(10, 74, 92);
|
59
|
+
|
60
|
+
$purple-1: rgb(237, 220, 255);
|
61
|
+
$purple-2: rgb(215, 180, 253);
|
62
|
+
$purple-3: rgb(188, 140, 239);
|
63
|
+
$purple-4: rgb(165, 114, 220);
|
64
|
+
$purple-5: rgb(147, 85, 214);
|
65
|
+
$purple-6: rgb(118, 48, 193);
|
66
|
+
$purple-7: rgb(95, 20, 175);
|
67
|
+
$purple-8: rgb(75, 7, 147);
|
68
|
+
|
69
|
+
$cobalt-1: rgb(218, 229, 251);
|
70
|
+
$cobalt-2: rgb(153, 185, 251);
|
71
|
+
$cobalt-3: rgb(109, 164, 254);
|
72
|
+
$cobalt-4: rgb(70, 132, 232);
|
73
|
+
$cobalt-5: rgb(66, 117, 216);
|
74
|
+
$cobalt-6: rgb(45, 92, 184);
|
75
|
+
$cobalt-7: rgb(22, 63, 140);
|
76
|
+
$cobalt-8: rgb(6, 47, 125);
|
77
|
+
|
78
|
+
$aqua-1: rgb(219, 255, 246);
|
79
|
+
$aqua-2: rgb(196, 250, 237);
|
80
|
+
$aqua-3: rgb(121, 232, 205);
|
81
|
+
$aqua-4: rgb(55, 213, 175);
|
82
|
+
$aqua-5: rgb(45, 184, 151);
|
83
|
+
$aqua-6: rgb(34, 153, 125);
|
84
|
+
$aqua-7: rgb(30, 116, 96);
|
85
|
+
$aqua-8: rgb(28, 89, 75);
|
86
|
+
|
87
|
+
$pink-1: rgb(255, 223, 244);
|
88
|
+
$pink-2: rgb(255, 194, 235);
|
89
|
+
$pink-3: rgb(232, 127, 197);
|
90
|
+
$pink-4: rgb(228, 85, 180);
|
91
|
+
$pink-5: rgb(207, 61, 158);
|
92
|
+
$pink-6: rgb(185, 13, 127);
|
93
|
+
$pink-7: rgb(182, 10, 124);
|
94
|
+
$pink-8: rgb(151, 3, 101);
|
95
|
+
|
96
|
+
$ec-color-accrual: rgb(35, 195, 205);
|
@@ -0,0 +1,114 @@
|
|
1
|
+
// Common functions
|
2
|
+
|
3
|
+
// Returns the measurement of an inner radius by subtracting 1px from the outer-radius given
|
4
|
+
@use "sass:math";
|
5
|
+
|
6
|
+
@function inner-radius($outer-radius) {
|
7
|
+
@return calc(#{$outer-radius} - 1px);
|
8
|
+
}
|
9
|
+
|
10
|
+
/// Replace every instance of $search in a giving $string with the value of $replace
|
11
|
+
/// @param {string} $string
|
12
|
+
@function str-replace($string, $search, $replace: "") {
|
13
|
+
$index: str-index($string, $search);
|
14
|
+
|
15
|
+
@if $index {
|
16
|
+
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
17
|
+
}
|
18
|
+
|
19
|
+
@return $string;
|
20
|
+
}
|
21
|
+
|
22
|
+
/// Removes the unit (e.g. px, em, rem) from a value, returning the number only.
|
23
|
+
/// @param {Number} $num - Number to strip unit from.
|
24
|
+
/// @returns {Number} The same number, sans unit.
|
25
|
+
/// @source https://github.com/zurb/foundation-apps/blob/master/scss/helpers/_functions.scss
|
26
|
+
@function strip-unit($num) {
|
27
|
+
@return math.div($num, $num * 0 + 1);
|
28
|
+
}
|
29
|
+
|
30
|
+
/// Converts one or more pixel values into matching rem values.
|
31
|
+
/// @param {Number|List} $values - One or more values to convert. Be sure to separate them with spaces and not commas. If you need to convert a comma-separated list, wrap the list in parentheses.
|
32
|
+
/// @param {Number} $base [null] - The base value to use when calculating the `rem`. If you're using Foundation out of the box, this is 16px. If this parameter is `null`, the function will reference the `$base-font-size` variable as the base.
|
33
|
+
///
|
34
|
+
/// @returns {List} A list of converted values.
|
35
|
+
/// @source https://github.com/zurb/foundation-apps/blob/master/scss/helpers/_functions.scss
|
36
|
+
@function rem-calc($values, $base: null) {
|
37
|
+
$rem-values: ();
|
38
|
+
$count: length($values);
|
39
|
+
|
40
|
+
// If no base is defined, defer to the global font size
|
41
|
+
@if $base == null {
|
42
|
+
$base: 100%;
|
43
|
+
}
|
44
|
+
|
45
|
+
// If the base font size is a %, then multiply it by 16px
|
46
|
+
// This is because 100% font size = 16px in most all browsers
|
47
|
+
@if unit($base) == '%' {
|
48
|
+
$base: math.div($base, 100%) * 16px;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Using rem as base allows correct scaling
|
52
|
+
@if unit($base) == 'rem' {
|
53
|
+
$base: strip-unit($base) * 16px;
|
54
|
+
}
|
55
|
+
|
56
|
+
@if $count == 1 {
|
57
|
+
@return px-to-rem($values, $base);
|
58
|
+
}
|
59
|
+
|
60
|
+
@for $i from 1 through $count {
|
61
|
+
$rem-values: append($rem-values, px-to-rem(nth($values, $i), $base));
|
62
|
+
}
|
63
|
+
|
64
|
+
@return $rem-values;
|
65
|
+
}
|
66
|
+
|
67
|
+
/// Helper function used by rem-calc. Converts a pixel value to matching rem value. *Any* value passed, regardless of unit,
|
68
|
+
/// is assumed to be a pixel value. By default, the base pixel value used to calculate the rem value is 100% or 16px,
|
69
|
+
/// which is the default for most all browsers.
|
70
|
+
/// @access private
|
71
|
+
/// @param {Number} $value - Pixel number to convert without units.
|
72
|
+
/// @param {Number} $base [null] - Base for pixel conversion.
|
73
|
+
/// @returns {Number} A number in rems, calculated based on the given value and the base pixel value. rem values are passed through as is.
|
74
|
+
@function px-to-rem($value, $base: null) {
|
75
|
+
// Check if the value is a number
|
76
|
+
@if type-of($value) != 'number' {
|
77
|
+
@warn inspect($value) + ' was passed to rem-calc(), which is not a number.';
|
78
|
+
@return $value;
|
79
|
+
}
|
80
|
+
|
81
|
+
// Transform em into rem if someone hands over 'em's
|
82
|
+
@if unit($value) == 'em' {
|
83
|
+
$value: strip-unit($value) * 1rem;
|
84
|
+
}
|
85
|
+
|
86
|
+
// Calculate rem if units for $value is not rem or em
|
87
|
+
@if unit($value) != 'rem' {
|
88
|
+
$value: math.div(strip-unit($value), strip-unit($base)) * 1rem;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Turn 0rem into 0
|
92
|
+
@if $value == 0rem {
|
93
|
+
$value: 0;
|
94
|
+
}
|
95
|
+
|
96
|
+
@return $value;
|
97
|
+
}
|
98
|
+
|
99
|
+
@function em-to-rem($value, $rem-base: 1rem) {
|
100
|
+
$value: strip-unit($value) * $rem-base;
|
101
|
+
@return $value;
|
102
|
+
}
|
103
|
+
|
104
|
+
@function rem-to-em($value, $rem-base: 1rem) {
|
105
|
+
$value: strip-unit(math.div($value, $rem-base)) * 1em;
|
106
|
+
@return $value;
|
107
|
+
}
|
108
|
+
|
109
|
+
@function get-icon-unicode($icons, $iconName) {
|
110
|
+
$icon: map-get($icons, $iconName);
|
111
|
+
$content: map-get($icon, 'content');
|
112
|
+
$code: map-get($content, 'unicode');
|
113
|
+
@return $code;
|
114
|
+
}
|