@energycap/components 0.42.3 → 0.42.4-ECAP-27604-Angular-18.20250206-0737

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.
Files changed (103) hide show
  1. package/esm2022/lib/components.module.mjs +4 -4
  2. package/esm2022/lib/controls/banner/banner.component.mjs +3 -3
  3. package/esm2022/lib/controls/button/button.component.mjs +3 -3
  4. package/esm2022/lib/controls/button/copy-button-base.directive.mjs +3 -3
  5. package/esm2022/lib/controls/button/copy-button.directive.mjs +3 -3
  6. package/esm2022/lib/controls/button/copy-table-button.directive.mjs +3 -3
  7. package/esm2022/lib/controls/calendar/calendar-item.component.mjs +3 -3
  8. package/esm2022/lib/controls/calendar/calendar.component.mjs +3 -3
  9. package/esm2022/lib/controls/checkbox/checkbox.component.mjs +3 -3
  10. package/esm2022/lib/controls/collapsible-toggle/collapsible-toggle.component.mjs +3 -3
  11. package/esm2022/lib/controls/combobox/combobox.component.mjs +3 -3
  12. package/esm2022/lib/controls/date-input/date-input.component.mjs +3 -3
  13. package/esm2022/lib/controls/date-input/date-input.types.mjs +2 -2
  14. package/esm2022/lib/controls/dropdown/dropdown.component.mjs +3 -3
  15. package/esm2022/lib/controls/file-upload/file-upload.component.mjs +3 -3
  16. package/esm2022/lib/controls/form-control/form-control.component.mjs +3 -3
  17. package/esm2022/lib/controls/form-control-base.mjs +3 -3
  18. package/esm2022/lib/controls/form-control-label/form-control-label.component.mjs +3 -3
  19. package/esm2022/lib/controls/form-group/form-group.component.mjs +3 -3
  20. package/esm2022/lib/controls/help-popover/help-popover.component.mjs +3 -3
  21. package/esm2022/lib/controls/item-picker/item-picker.component.mjs +3 -3
  22. package/esm2022/lib/controls/link-button/link-button.component.mjs +3 -3
  23. package/esm2022/lib/controls/menu/menu.component.mjs +3 -3
  24. package/esm2022/lib/controls/navigation/nav-item-active.directive.mjs +3 -3
  25. package/esm2022/lib/controls/numericbox/numericbox.component.mjs +3 -3
  26. package/esm2022/lib/controls/popover/popover.component.mjs +3 -3
  27. package/esm2022/lib/controls/radio-button/radio-button.component.mjs +3 -3
  28. package/esm2022/lib/controls/select/select.component.mjs +3 -3
  29. package/esm2022/lib/controls/tabs/tabs.component.mjs +3 -3
  30. package/esm2022/lib/controls/textbox/textbox.component.mjs +3 -3
  31. package/esm2022/lib/core/cache.service.mjs +3 -3
  32. package/esm2022/lib/core/error.service.mjs +3 -3
  33. package/esm2022/lib/core/router-helper.service.mjs +3 -3
  34. package/esm2022/lib/core/scroll.service.mjs +3 -3
  35. package/esm2022/lib/core/telemetry-tracker.service.mjs +3 -3
  36. package/esm2022/lib/core/telemetry.service.mjs +3 -3
  37. package/esm2022/lib/core/validation-message.service.mjs +3 -3
  38. package/esm2022/lib/core/window.service.mjs +3 -3
  39. package/esm2022/lib/display/app-bar/app-bar.component.mjs +3 -3
  40. package/esm2022/lib/display/avatar/avatar.component.mjs +3 -3
  41. package/esm2022/lib/display/avatar/avatar.service.mjs +3 -3
  42. package/esm2022/lib/display/confirm/confirm.component.mjs +3 -3
  43. package/esm2022/lib/display/dialog/dialog-group/dialog-group.component.mjs +3 -3
  44. package/esm2022/lib/display/dialog/dialog.component.mjs +3 -3
  45. package/esm2022/lib/display/dialog/dialog.service.mjs +3 -3
  46. package/esm2022/lib/display/hierarchy/hierarchy-base.mjs +3 -3
  47. package/esm2022/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +3 -3
  48. package/esm2022/lib/display/item-display/item-display.component.mjs +3 -3
  49. package/esm2022/lib/display/json-display/json-display.component.mjs +3 -3
  50. package/esm2022/lib/display/resizable/resizable-base.mjs +3 -3
  51. package/esm2022/lib/display/resizable/resizable.component.mjs +3 -3
  52. package/esm2022/lib/display/spinner/spinner.component.mjs +3 -3
  53. package/esm2022/lib/display/splash/splash.component.mjs +3 -3
  54. package/esm2022/lib/display/splash/splash.service.mjs +3 -3
  55. package/esm2022/lib/display/table/resizable-column.component.mjs +3 -3
  56. package/esm2022/lib/display/table/resizable-table.directive.mjs +3 -3
  57. package/esm2022/lib/display/table/searchable-table.component.mjs +3 -3
  58. package/esm2022/lib/display/table/table-detail-row.component.mjs +3 -3
  59. package/esm2022/lib/display/table/table-locked-column.component.mjs +3 -3
  60. package/esm2022/lib/display/table/table-master-header-row.component.mjs +3 -3
  61. package/esm2022/lib/display/table/table-master-row.component.mjs +3 -3
  62. package/esm2022/lib/display/table/table-pagination.component.mjs +3 -3
  63. package/esm2022/lib/display/table/table-selectable-row.component.mjs +3 -3
  64. package/esm2022/lib/display/table/table.component.mjs +3 -3
  65. package/esm2022/lib/display/tags/tags.component.mjs +3 -3
  66. package/esm2022/lib/display/toast/toast/toast.component.mjs +3 -3
  67. package/esm2022/lib/display/toast/toast.service.mjs +3 -3
  68. package/esm2022/lib/display/toast/toaster/toaster.component.mjs +3 -3
  69. package/esm2022/lib/display/tooltip/tooltip.component.mjs +3 -3
  70. package/esm2022/lib/display/tooltip/tooltip.service.mjs +3 -3
  71. package/esm2022/lib/display/tooltip-directive/tooltip.directive.mjs +3 -3
  72. package/esm2022/lib/display/tour/tour.component.mjs +3 -3
  73. package/esm2022/lib/display/tour/tour.service.mjs +3 -3
  74. package/esm2022/lib/display/tree/tree.component.mjs +3 -3
  75. package/esm2022/lib/display/view-overlay/view-overlay.component.mjs +3 -3
  76. package/esm2022/lib/shared/directives/click-area-for/click-area-for.directive.mjs +3 -3
  77. package/esm2022/lib/shared/directives/if-viewport-width/if-viewport-width.directive.mjs +3 -3
  78. package/esm2022/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.mjs +3 -3
  79. package/esm2022/lib/shared/directives/popup/popup-container.directive.mjs +3 -3
  80. package/esm2022/lib/shared/display/pipes/date-display.pipe.mjs +3 -3
  81. package/esm2022/lib/shared/display/pipes/highlight-text.pipe.mjs +3 -3
  82. package/esm2022/lib/shared/display/pipes/relative-date.pipe.mjs +3 -3
  83. package/esm2022/lib/shared/display/pipes/row-count.pipe.mjs +3 -3
  84. package/esm2022/lib/shared/display/pipes/time-display.pipe.mjs +3 -3
  85. package/esm2022/lib/shared/form-group.helper.mjs +3 -3
  86. package/esm2022/lib/shared/page/page-base/page-base.component.mjs +3 -3
  87. package/esm2022/lib/shared/page/page-title/page-title.component.mjs +3 -3
  88. package/esm2022/lib/shared/page/page-view/page-view.component.mjs +3 -3
  89. package/esm2022/lib/shared/testing/public-mocks.spec.mjs +9 -9
  90. package/esm2022/lib/shared/user-preference.service.mjs +3 -3
  91. package/esm2022/lib/shared/wizard/wizard-base/wizard-base.component.mjs +3 -3
  92. package/esm2022/lib/shared/wizard/wizard-buttons/wizard-buttons.component.mjs +3 -3
  93. package/esm2022/lib/shared/wizard/wizard-progress/wizard-progress.component.mjs +3 -3
  94. package/fesm2022/energycap-components.mjs +285 -285
  95. package/package.json +6 -6
  96. package/schematics/collection.json +0 -5
  97. package/schematics/rxjs-7-upgrade/index.d.ts +0 -3
  98. package/schematics/rxjs-7-upgrade/index.js +0 -68
  99. package/schematics/rxjs-7-upgrade/index.js.map +0 -1
  100. package/schematics/rxjs-7-upgrade/schema.d.ts +0 -4
  101. package/schematics/rxjs-7-upgrade/schema.js +0 -3
  102. package/schematics/rxjs-7-upgrade/schema.js.map +0 -1
  103. package/schematics/rxjs-7-upgrade/schema.json +0 -14
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.42.3",
3
+ "version": "0.42.4-ECAP-27604-Angular-18.20250206-0737",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@angular/common": ">=17.0.0",
10
- "@angular/core": ">=17.0.0",
11
- "@angular/forms": ">=17.0.0",
12
- "@angular/router": ">=17.0.0",
13
- "@angular/cdk": ">=17.0.0",
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
16
  "lodash": "^4.17.21",
@@ -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,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { RxJSUpgradeSchema } from './schema';
3
- export declare function rxjs7Upgrade(options: RxJSUpgradeSchema): Rule;
@@ -1,68 +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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.rxjs7Upgrade = void 0;
13
- const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
14
- const change_1 = require("@schematics/angular/utility/change");
15
- const path_1 = require("path");
16
- const ts = require("typescript");
17
- const typescript_1 = require("../utilities/typescript");
18
- const workspace_1 = require("../utilities/workspace");
19
- function rxjs7Upgrade(options) {
20
- return (tree) => __awaiter(this, void 0, void 0, function* () {
21
- const path = options.path || '/';
22
- const workspace = yield (0, workspace_1.getWorkspace)(path, tree);
23
- // Get all tsconfig paths from the workspace, including test tsconfigs
24
- const tsConfigPaths = (0, workspace_1.getTsConfigPaths)(workspace, tree);
25
- // The base path in the file system for the path argument, replacing all backslashes with forward slashes (for cross-system compatibility).
26
- // The absolute file system path is needed for the typescript compiler to resolve files correctly.
27
- const basePath = process.cwd().replace(/\\/g, path);
28
- tsConfigPaths.forEach(tsConfigPath => {
29
- const program = (0, typescript_1.createTsProgram)(tree, tsConfigPath, basePath);
30
- const checker = program.getTypeChecker();
31
- for (const sourceFile of program.getSourceFiles()) {
32
- // Skip declaration files and external library files
33
- if (sourceFile.isDeclarationFile || program.isSourceFileFromExternalLibrary(sourceFile)) {
34
- continue;
35
- }
36
- const observableSymbols = ['Observable', 'Subject', 'BehaviorSubject', 'ReplaySubject', 'AsyncSubject'];
37
- const toPromiseCalls = (0, ast_utils_1.findNodes)(sourceFile, ts.isCallExpression, undefined, true).filter(node => {
38
- if (ts.isPropertyAccessExpression(node.expression) && node.expression.name.text === 'toPromise') {
39
- const symbol = checker.getTypeAtLocation(node.expression.expression).symbol;
40
- return symbol && observableSymbols.includes(symbol.name);
41
- }
42
- return false;
43
- });
44
- if (toPromiseCalls.length) {
45
- const fileToEdit = (0, path_1.relative)(basePath, sourceFile.fileName);
46
- const recorder = tree.beginUpdate(fileToEdit);
47
- const changes = [];
48
- const printer = ts.createPrinter();
49
- // Add import for lastValueFrom
50
- changes.push((0, ast_utils_1.insertImport)(sourceFile, fileToEdit, 'lastValueFrom', 'rxjs'));
51
- // Replace toPromise calls with lastValueFrom
52
- toPromiseCalls.forEach(node => {
53
- if (ts.isPropertyAccessExpression(node.expression)) {
54
- const newCallExpression = ts.factory.createCallExpression(ts.factory.createIdentifier('lastValueFrom'), undefined, [node.expression.expression]);
55
- const newNodeText = printer.printNode(ts.EmitHint.Unspecified, newCallExpression, sourceFile);
56
- const change = new change_1.ReplaceChange(fileToEdit, node.getStart(), node.getText(), newNodeText);
57
- changes.push(change);
58
- }
59
- });
60
- (0, change_1.applyToUpdateRecorder)(recorder, changes);
61
- tree.commitUpdate(recorder);
62
- }
63
- }
64
- });
65
- });
66
- }
67
- exports.rxjs7Upgrade = rxjs7Upgrade;
68
- //# 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,iCAAiC;AACjC,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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AC7B,CAAC;4BACF,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,EAAE,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,4 +0,0 @@
1
- export interface RxJSUpgradeSchema {
2
- /** Path to the angular workspace. */
3
- path?: string;
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=schema.js.map
@@ -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
- }