@energycap/components 0.42.4-esbuild.20250131-1441 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/esm2022/lib/components.module.mjs +4 -4
- package/esm2022/lib/controls/banner/banner.component.mjs +3 -3
- package/esm2022/lib/controls/button/button.component.mjs +3 -3
- package/esm2022/lib/controls/button/copy-button-base.directive.mjs +3 -3
- package/esm2022/lib/controls/button/copy-button.directive.mjs +3 -3
- package/esm2022/lib/controls/button/copy-table-button.directive.mjs +3 -3
- package/esm2022/lib/controls/calendar/calendar-item.component.mjs +3 -3
- package/esm2022/lib/controls/calendar/calendar.component.mjs +3 -3
- package/esm2022/lib/controls/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/lib/controls/collapsible-toggle/collapsible-toggle.component.mjs +3 -3
- package/esm2022/lib/controls/combobox/combobox.component.mjs +3 -3
- package/esm2022/lib/controls/date-input/date-input.component.mjs +3 -3
- package/esm2022/lib/controls/date-input/date-input.types.mjs +2 -2
- package/esm2022/lib/controls/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/lib/controls/file-upload/file-upload.component.mjs +3 -3
- package/esm2022/lib/controls/form-control/form-control.component.mjs +3 -3
- package/esm2022/lib/controls/form-control-base.mjs +3 -3
- package/esm2022/lib/controls/form-control-label/form-control-label.component.mjs +3 -3
- package/esm2022/lib/controls/form-group/form-group.component.mjs +3 -3
- package/esm2022/lib/controls/help-popover/help-popover.component.mjs +3 -3
- package/esm2022/lib/controls/item-picker/item-picker.component.mjs +3 -3
- package/esm2022/lib/controls/link-button/link-button.component.mjs +3 -3
- package/esm2022/lib/controls/menu/menu.component.mjs +3 -3
- package/esm2022/lib/controls/navigation/nav-item-active.directive.mjs +3 -3
- package/esm2022/lib/controls/numericbox/numericbox.component.mjs +3 -3
- package/esm2022/lib/controls/popover/popover.component.mjs +3 -3
- package/esm2022/lib/controls/radio-button/radio-button.component.mjs +3 -3
- package/esm2022/lib/controls/select/select.component.mjs +3 -3
- package/esm2022/lib/controls/tabs/tabs.component.mjs +3 -3
- package/esm2022/lib/controls/textbox/textbox.component.mjs +3 -3
- package/esm2022/lib/core/cache.service.mjs +3 -3
- package/esm2022/lib/core/error.service.mjs +3 -3
- package/esm2022/lib/core/router-helper.service.mjs +3 -3
- package/esm2022/lib/core/scroll.service.mjs +3 -3
- package/esm2022/lib/core/telemetry-tracker.service.mjs +3 -3
- package/esm2022/lib/core/telemetry.service.mjs +3 -3
- package/esm2022/lib/core/validation-message.service.mjs +3 -3
- package/esm2022/lib/core/window.service.mjs +3 -3
- package/esm2022/lib/display/app-bar/app-bar.component.mjs +3 -3
- package/esm2022/lib/display/avatar/avatar.component.mjs +3 -3
- package/esm2022/lib/display/avatar/avatar.service.mjs +3 -3
- package/esm2022/lib/display/confirm/confirm.component.mjs +3 -3
- package/esm2022/lib/display/dialog/dialog-group/dialog-group.component.mjs +3 -3
- package/esm2022/lib/display/dialog/dialog.component.mjs +3 -3
- package/esm2022/lib/display/dialog/dialog.service.mjs +3 -3
- package/esm2022/lib/display/hierarchy/hierarchy-base.mjs +3 -3
- package/esm2022/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +3 -3
- package/esm2022/lib/display/item-display/item-display.component.mjs +3 -3
- package/esm2022/lib/display/json-display/json-display.component.mjs +3 -3
- package/esm2022/lib/display/resizable/resizable-base.mjs +3 -3
- package/esm2022/lib/display/resizable/resizable.component.mjs +3 -3
- package/esm2022/lib/display/spinner/spinner.component.mjs +3 -3
- package/esm2022/lib/display/splash/splash.component.mjs +3 -3
- package/esm2022/lib/display/splash/splash.service.mjs +3 -3
- package/esm2022/lib/display/table/resizable-column.component.mjs +3 -3
- package/esm2022/lib/display/table/resizable-table.directive.mjs +3 -3
- package/esm2022/lib/display/table/searchable-table.component.mjs +3 -3
- package/esm2022/lib/display/table/table-detail-row.component.mjs +3 -3
- package/esm2022/lib/display/table/table-locked-column.component.mjs +3 -3
- package/esm2022/lib/display/table/table-master-header-row.component.mjs +3 -3
- package/esm2022/lib/display/table/table-master-row.component.mjs +3 -3
- package/esm2022/lib/display/table/table-pagination.component.mjs +3 -3
- package/esm2022/lib/display/table/table-selectable-row.component.mjs +3 -3
- package/esm2022/lib/display/table/table.component.mjs +3 -3
- package/esm2022/lib/display/tags/tags.component.mjs +3 -3
- package/esm2022/lib/display/toast/toast/toast.component.mjs +3 -3
- package/esm2022/lib/display/toast/toast.service.mjs +3 -3
- package/esm2022/lib/display/toast/toaster/toaster.component.mjs +3 -3
- package/esm2022/lib/display/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/lib/display/tooltip/tooltip.service.mjs +3 -3
- package/esm2022/lib/display/tooltip-directive/tooltip.directive.mjs +3 -3
- package/esm2022/lib/display/tour/tour.component.mjs +3 -3
- package/esm2022/lib/display/tour/tour.service.mjs +3 -3
- package/esm2022/lib/display/tree/tree.component.mjs +3 -3
- package/esm2022/lib/display/view-overlay/view-overlay.component.mjs +3 -3
- package/esm2022/lib/shared/directives/click-area-for/click-area-for.directive.mjs +3 -3
- package/esm2022/lib/shared/directives/if-viewport-width/if-viewport-width.directive.mjs +3 -3
- package/esm2022/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.mjs +3 -3
- package/esm2022/lib/shared/directives/popup/popup-container.directive.mjs +3 -3
- package/esm2022/lib/shared/display/pipes/date-display.pipe.mjs +3 -3
- package/esm2022/lib/shared/display/pipes/highlight-text.pipe.mjs +3 -3
- package/esm2022/lib/shared/display/pipes/relative-date.pipe.mjs +3 -3
- package/esm2022/lib/shared/display/pipes/row-count.pipe.mjs +3 -3
- package/esm2022/lib/shared/display/pipes/time-display.pipe.mjs +3 -3
- package/esm2022/lib/shared/form-group.helper.mjs +3 -3
- package/esm2022/lib/shared/page/page-base/page-base.component.mjs +3 -3
- package/esm2022/lib/shared/page/page-title/page-title.component.mjs +3 -3
- package/esm2022/lib/shared/page/page-view/page-view.component.mjs +3 -3
- package/esm2022/lib/shared/testing/public-mocks.spec.mjs +9 -9
- package/esm2022/lib/shared/user-preference.service.mjs +3 -3
- package/esm2022/lib/shared/wizard/wizard-base/wizard-base.component.mjs +3 -3
- package/esm2022/lib/shared/wizard/wizard-buttons/wizard-buttons.component.mjs +3 -3
- package/esm2022/lib/shared/wizard/wizard-progress/wizard-progress.component.mjs +3 -3
- package/fesm2022/energycap-components.mjs +285 -285
- package/package.json +7 -7
- package/schematics/collection.json +0 -5
- package/schematics/utilities/typescript.d.ts +1 -1
- package/schematics/utilities/typescript.js +9 -12
- package/schematics/utilities/typescript.js.map +1 -1
- package/src/assets/images/favicon-ech.svg +12 -5
- package/src/assets/images/favicon-eum.svg +11 -4
- package/src/assets/images/favicon.svg +10 -3
- package/src/assets/images/icon-ucp.svg +10 -3
- package/src/assets/images/icon.svg +9 -2
- package/src/assets/images/logo.svg +8 -1
- package/schematics/rxjs-7-upgrade/index.d.ts +0 -3
- package/schematics/rxjs-7-upgrade/index.js +0 -71
- package/schematics/rxjs-7-upgrade/index.js.map +0 -1
- package/schematics/rxjs-7-upgrade/schema.d.ts +0 -4
- package/schematics/rxjs-7-upgrade/schema.js +0 -3
- package/schematics/rxjs-7-upgrade/schema.js.map +0 -1
- package/schematics/rxjs-7-upgrade/schema.json +0 -14
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@energycap/components",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.43.0",
|
4
4
|
"schematics": "./schematics/collection.json",
|
5
5
|
"dependencies": {
|
6
6
|
"tslib": "^2.0.0"
|
7
7
|
},
|
8
8
|
"peerDependencies": {
|
9
|
-
"@angular/common": ">=
|
10
|
-
"@angular/core": ">=
|
11
|
-
"@angular/forms": ">=
|
12
|
-
"@angular/router": ">=
|
13
|
-
"@angular/cdk": ">=
|
9
|
+
"@angular/common": ">=18.0.0",
|
10
|
+
"@angular/core": ">=18.0.0",
|
11
|
+
"@angular/forms": ">=18.0.0",
|
12
|
+
"@angular/router": ">=18.0.0",
|
13
|
+
"@angular/cdk": ">=18.0.0",
|
14
14
|
"@ngx-translate/core": "^15.0.0",
|
15
15
|
"popper.js": "~1.11.1",
|
16
|
-
"lodash
|
16
|
+
"lodash": "^4.17.21",
|
17
17
|
"moment": "^2.29.0",
|
18
18
|
"ngx-clipboard": "^16.0.0"
|
19
19
|
},
|
@@ -1,10 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
3
3
|
"schematics": {
|
4
|
-
"rxjs-7-upgrade": {
|
5
|
-
"description": "Upgrade your project to RxJS 7",
|
6
|
-
"factory": "./rxjs-7-upgrade/index#rxjs7Upgrade",
|
7
|
-
"schema": "./rxjs-7-upgrade/schema.json"
|
8
|
-
}
|
9
4
|
}
|
10
5
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Tree } from '@angular-devkit/schematics';
|
2
|
-
import ts from 'typescript';
|
2
|
+
import * as ts from 'typescript';
|
3
3
|
/** Parses the TSConfig file to be used in the TS Compiler Program. */
|
4
4
|
export declare function parseTsConfig(absoluteTsConfigPath: string): ts.ParsedCommandLine;
|
5
5
|
/** Creates a file host to be used with with a TS Compiler program. */
|
@@ -1,26 +1,23 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.createTsProgram = exports.createTsCompilerHost = exports.parseTsConfig = void 0;
|
7
4
|
const path_1 = require("path");
|
8
|
-
const
|
5
|
+
const ts = require("typescript");
|
9
6
|
/** Parses the TSConfig file to be used in the TS Compiler Program. */
|
10
7
|
function parseTsConfig(absoluteTsConfigPath) {
|
11
|
-
const { config } =
|
8
|
+
const { config } = ts.readConfigFile(absoluteTsConfigPath, ts.sys.readFile);
|
12
9
|
const parseHost = {
|
13
|
-
useCaseSensitiveFileNames:
|
14
|
-
fileExists:
|
15
|
-
readFile:
|
16
|
-
readDirectory:
|
10
|
+
useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
|
11
|
+
fileExists: ts.sys.fileExists,
|
12
|
+
readFile: ts.sys.readFile,
|
13
|
+
readDirectory: ts.sys.readDirectory
|
17
14
|
};
|
18
|
-
return
|
15
|
+
return ts.parseJsonConfigFileContent(config, parseHost, (0, path_1.dirname)(absoluteTsConfigPath), {});
|
19
16
|
}
|
20
17
|
exports.parseTsConfig = parseTsConfig;
|
21
18
|
/** Creates a file host to be used with with a TS Compiler program. */
|
22
19
|
function createTsCompilerHost(tree, options, basePath) {
|
23
|
-
const host =
|
20
|
+
const host = ts.createCompilerHost(options);
|
24
21
|
// Read files from the virtual tree to prevent conflicting changes between project migrations
|
25
22
|
host.readFile = (fileName) => {
|
26
23
|
var _a;
|
@@ -39,7 +36,7 @@ function createTsProgram(tree, tsConfigPath, basePath) {
|
|
39
36
|
const parsed = parseTsConfig(absoluteTsConfigPath);
|
40
37
|
const options = Object.assign(Object.assign({}, parsed.options), { skipLibCheck: true, skipDefaultLibCheck: true });
|
41
38
|
const host = createTsCompilerHost(tree, options, basePath);
|
42
|
-
return
|
39
|
+
return ts.createProgram(parsed.fileNames, options, host);
|
43
40
|
}
|
44
41
|
exports.createTsProgram = createTsProgram;
|
45
42
|
//# sourceMappingURL=typescript.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/typescript.ts"],"names":[],"mappings":"
|
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,C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AAM,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"}
|
@@ -1,7 +1,14 @@
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32">
|
2
|
-
<path
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<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"/>
|
4
|
+
<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"/>
|
5
|
+
<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"/>
|
6
|
+
<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"/>
|
7
|
+
<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"/>
|
8
|
+
</g>
|
9
|
+
<defs>
|
10
|
+
<clipPath id="a">
|
11
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
12
|
+
</clipPath>
|
13
|
+
</defs>
|
7
14
|
</svg>
|
@@ -1,6 +1,13 @@
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32">
|
2
|
-
<path
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<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"/>
|
4
|
+
<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"/>
|
5
|
+
<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"/>
|
6
|
+
<path fill="#9069B5" d="M16.665 18.611h-2.303v3.378h2.303v-3.378Z"/>
|
7
|
+
</g>
|
8
|
+
<defs>
|
9
|
+
<clipPath id="a">
|
10
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
11
|
+
</clipPath>
|
12
|
+
</defs>
|
6
13
|
</svg>
|
@@ -1,5 +1,12 @@
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32">
|
2
|
-
<path
|
3
|
-
|
4
|
-
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<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"/>
|
4
|
+
<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"/>
|
5
|
+
<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"/>
|
6
|
+
</g>
|
7
|
+
<defs>
|
8
|
+
<clipPath id="a">
|
9
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
10
|
+
</clipPath>
|
11
|
+
</defs>
|
5
12
|
</svg>
|
@@ -1,5 +1,12 @@
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="none" viewBox="0 0 64 64">
|
2
|
-
<path
|
3
|
-
|
4
|
-
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<path fill="#E9A914" d="M35.406-.246h-7.828v34.211h7.828V-.246Z"/>
|
4
|
+
<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"/>
|
5
|
+
<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"/>
|
6
|
+
</g>
|
7
|
+
<defs>
|
8
|
+
<clipPath id="a">
|
9
|
+
<path fill="#fff" d="M0 0h64v64H0z"/>
|
10
|
+
</clipPath>
|
11
|
+
</defs>
|
5
12
|
</svg>
|
@@ -1,4 +1,11 @@
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="33" height="32" fill="none" viewBox="0 0 33 32">
|
2
|
-
<path
|
3
|
-
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<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"/>
|
4
|
+
<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"/>
|
5
|
+
</g>
|
6
|
+
<defs>
|
7
|
+
<clipPath id="a">
|
8
|
+
<path fill="#fff" d="M.13 0h28.235v32H.13z"/>
|
9
|
+
</clipPath>
|
10
|
+
</defs>
|
4
11
|
</svg>
|
@@ -1,3 +1,10 @@
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="465" height="54" fill="none" viewBox="0 0 465 54">
|
2
|
-
<path
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<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"/>
|
4
|
+
</g>
|
5
|
+
<defs>
|
6
|
+
<clipPath id="a">
|
7
|
+
<path fill="#fff" d="M.13 0h464v53.874H.13z"/>
|
8
|
+
</clipPath>
|
9
|
+
</defs>
|
3
10
|
</svg>
|
@@ -1,71 +0,0 @@
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
exports.rxjs7Upgrade = void 0;
|
16
|
-
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
17
|
-
const change_1 = require("@schematics/angular/utility/change");
|
18
|
-
const path_1 = require("path");
|
19
|
-
const typescript_1 = __importDefault(require("typescript"));
|
20
|
-
const typescript_2 = require("../utilities/typescript");
|
21
|
-
const workspace_1 = require("../utilities/workspace");
|
22
|
-
function rxjs7Upgrade(options) {
|
23
|
-
return (tree) => __awaiter(this, void 0, void 0, function* () {
|
24
|
-
const path = options.path || '/';
|
25
|
-
const workspace = yield (0, workspace_1.getWorkspace)(path, tree);
|
26
|
-
// Get all tsconfig paths from the workspace, including test tsconfigs
|
27
|
-
const tsConfigPaths = (0, workspace_1.getTsConfigPaths)(workspace, tree);
|
28
|
-
// The base path in the file system for the path argument, replacing all backslashes with forward slashes (for cross-system compatibility).
|
29
|
-
// The absolute file system path is needed for the typescript compiler to resolve files correctly.
|
30
|
-
const basePath = process.cwd().replace(/\\/g, path);
|
31
|
-
tsConfigPaths.forEach(tsConfigPath => {
|
32
|
-
const program = (0, typescript_2.createTsProgram)(tree, tsConfigPath, basePath);
|
33
|
-
const checker = program.getTypeChecker();
|
34
|
-
for (const sourceFile of program.getSourceFiles()) {
|
35
|
-
// Skip declaration files and external library files
|
36
|
-
if (sourceFile.isDeclarationFile || program.isSourceFileFromExternalLibrary(sourceFile)) {
|
37
|
-
continue;
|
38
|
-
}
|
39
|
-
const observableSymbols = ['Observable', 'Subject', 'BehaviorSubject', 'ReplaySubject', 'AsyncSubject'];
|
40
|
-
const toPromiseCalls = (0, ast_utils_1.findNodes)(sourceFile, typescript_1.default.isCallExpression, undefined, true).filter(node => {
|
41
|
-
if (typescript_1.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === 'toPromise') {
|
42
|
-
const symbol = checker.getTypeAtLocation(node.expression.expression).symbol;
|
43
|
-
return symbol && observableSymbols.includes(symbol.name);
|
44
|
-
}
|
45
|
-
return false;
|
46
|
-
});
|
47
|
-
if (toPromiseCalls.length) {
|
48
|
-
const fileToEdit = (0, path_1.relative)(basePath, sourceFile.fileName);
|
49
|
-
const recorder = tree.beginUpdate(fileToEdit);
|
50
|
-
const changes = [];
|
51
|
-
const printer = typescript_1.default.createPrinter();
|
52
|
-
// Add import for lastValueFrom
|
53
|
-
changes.push((0, ast_utils_1.insertImport)(sourceFile, fileToEdit, 'lastValueFrom', 'rxjs'));
|
54
|
-
// Replace toPromise calls with lastValueFrom
|
55
|
-
toPromiseCalls.forEach(node => {
|
56
|
-
if (typescript_1.default.isPropertyAccessExpression(node.expression)) {
|
57
|
-
const newCallExpression = typescript_1.default.factory.createCallExpression(typescript_1.default.factory.createIdentifier('lastValueFrom'), undefined, [node.expression.expression]);
|
58
|
-
const newNodeText = printer.printNode(typescript_1.default.EmitHint.Unspecified, newCallExpression, sourceFile);
|
59
|
-
const change = new change_1.ReplaceChange(fileToEdit, node.getStart(), node.getText(), newNodeText);
|
60
|
-
changes.push(change);
|
61
|
-
}
|
62
|
-
});
|
63
|
-
(0, change_1.applyToUpdateRecorder)(recorder, changes);
|
64
|
-
tree.commitUpdate(recorder);
|
65
|
-
}
|
66
|
-
}
|
67
|
-
});
|
68
|
-
});
|
69
|
-
}
|
70
|
-
exports.rxjs7Upgrade = rxjs7Upgrade;
|
71
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/components/schematics/rxjs-7-upgrade/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,qEAAgF;AAChF,+DAAkG;AAClG,+BAAgC;AAChC,4DAA4B;AAC5B,wDAA0D;AAC1D,sDAAwE;AAGxE,SAAgB,YAAY,CAAC,OAA0B;IACrD,OAAO,CAAO,IAAU,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,GAAG,CAAC;QACjC,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAEjD,sEAAsE;QACtE,MAAM,aAAa,GAAG,IAAA,4BAAgB,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAExD,2IAA2I;QAC3I,mGAAmG;QACnG,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAEpD,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACnC,MAAM,OAAO,GAAG,IAAA,4BAAe,EAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;YAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;YAEzC,KAAK,MAAM,UAAU,IAAI,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;gBAClD,oDAAoD;gBACpD,IAAI,UAAU,CAAC,iBAAiB,IAAI,OAAO,CAAC,+BAA+B,CAAC,UAAU,CAAC,EAAE,CAAC;oBACxF,SAAS;gBACX,CAAC;gBAED,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;gBAExG,MAAM,cAAc,GAAG,IAAA,qBAAS,EAAC,UAAU,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CAAC,CAC7B,CAAC;4BACF,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,oBAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC;4BAC9F,MAAM,MAAM,GAAG,IAAI,sBAAa,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,CAAC,CAAC;4BAC3F,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;wBACvB,CAAC;oBACH,CAAC,CAAC,CAAC;oBAEH,IAAA,8BAAqB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;oBACzC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;gBAC9B,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAA,CAAA;AACH,CAAC;AA7DD,oCA6DC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../projects/components/schematics/rxjs-7-upgrade/schema.ts"],"names":[],"mappings":""}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
-
"$id": "EnergyCAP.RxJS7UpgradeSchema",
|
4
|
-
"title": "RxJS 7 Upgrade Schema",
|
5
|
-
"type": "object",
|
6
|
-
"properties": {
|
7
|
-
"path": {
|
8
|
-
"type": "string",
|
9
|
-
"format": "path",
|
10
|
-
"description": "The path to complete the upgrade.",
|
11
|
-
"visible": false
|
12
|
-
}
|
13
|
-
}
|
14
|
-
}
|