@energycap/components 0.44.8 → 0.44.9-Angular19Upgrade.20260212-1633

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 (143) hide show
  1. package/fesm2022/energycap-components.mjs +379 -354
  2. package/fesm2022/energycap-components.mjs.map +1 -1
  3. package/lib/controls/button/copy-button-base.directive.d.ts +1 -1
  4. package/lib/controls/date-input/date-input.component.d.ts +1 -1
  5. package/lib/controls/form-control-base.d.ts +1 -1
  6. package/lib/display/hierarchy/hierarchy-base.d.ts +1 -1
  7. package/lib/display/hierarchy/hierarchy-mocks.spec.d.ts +1 -1
  8. package/lib/display/resizable/resizable-base.d.ts +1 -1
  9. package/lib/shared/page/page-base/page-base.component.d.ts +1 -1
  10. package/lib/shared/testing/public-mocks.spec.d.ts +1 -1
  11. package/lib/shared/wizard/wizard-base/wizard-base.component.d.ts +1 -1
  12. package/package.json +1 -3
  13. package/schematics/utilities/typescript.js +3 -4
  14. package/schematics/utilities/typescript.js.map +1 -1
  15. package/schematics/utilities/workspace.d.ts +0 -8
  16. package/schematics/utilities/workspace.js +48 -71
  17. package/schematics/utilities/workspace.js.map +1 -1
  18. package/esm2022/energycap-components.mjs +0 -5
  19. package/esm2022/lib/components.module.mjs +0 -425
  20. package/esm2022/lib/controls/banner/banner.component.mjs +0 -112
  21. package/esm2022/lib/controls/button/button.component.mjs +0 -114
  22. package/esm2022/lib/controls/button/copy-button-base.directive.mjs +0 -67
  23. package/esm2022/lib/controls/button/copy-button.directive.mjs +0 -28
  24. package/esm2022/lib/controls/button/copy-table-button.directive.mjs +0 -43
  25. package/esm2022/lib/controls/calendar/calendar-item.component.mjs +0 -91
  26. package/esm2022/lib/controls/calendar/calendar.component.mjs +0 -251
  27. package/esm2022/lib/controls/calendar/calendar.types.mjs +0 -2
  28. package/esm2022/lib/controls/checkbox/checkbox.component.mjs +0 -140
  29. package/esm2022/lib/controls/collapsible-toggle/collapsible-toggle.component.mjs +0 -38
  30. package/esm2022/lib/controls/combobox/combobox.component.mjs +0 -879
  31. package/esm2022/lib/controls/date-input/date-input-selection-strategies/date-input-selection-strategy-base.mjs +0 -57
  32. package/esm2022/lib/controls/date-input/date-input-selection-strategies/day-selection-strategy.mjs +0 -62
  33. package/esm2022/lib/controls/date-input/date-input-selection-strategies/last-28-days-selection-strategy.mjs +0 -100
  34. package/esm2022/lib/controls/date-input/date-input-selection-strategies/last-7-days-selection-strategy.mjs +0 -101
  35. package/esm2022/lib/controls/date-input/date-input-selection-strategies/month-selection-strategy.mjs +0 -76
  36. package/esm2022/lib/controls/date-input/date-input-selection-strategies/quarter-selection-strategy.mjs +0 -79
  37. package/esm2022/lib/controls/date-input/date-input-selection-strategies/range-selection-strategy.mjs +0 -210
  38. package/esm2022/lib/controls/date-input/date-input-selection-strategies/year-selection-strategy.mjs +0 -81
  39. package/esm2022/lib/controls/date-input/date-input.component.mjs +0 -466
  40. package/esm2022/lib/controls/date-input/date-input.types.mjs +0 -44
  41. package/esm2022/lib/controls/dropdown/dropdown.component.mjs +0 -243
  42. package/esm2022/lib/controls/file-upload/file-upload.component.mjs +0 -261
  43. package/esm2022/lib/controls/form-control/form-control.component.mjs +0 -110
  44. package/esm2022/lib/controls/form-control-base.mjs +0 -151
  45. package/esm2022/lib/controls/form-control-label/form-control-label.component.mjs +0 -136
  46. package/esm2022/lib/controls/form-group/form-group.component.mjs +0 -261
  47. package/esm2022/lib/controls/help-popover/help-popover.component.mjs +0 -31
  48. package/esm2022/lib/controls/item-picker/item-picker.component.mjs +0 -329
  49. package/esm2022/lib/controls/link-button/link-button.component.mjs +0 -11
  50. package/esm2022/lib/controls/menu/menu.component.mjs +0 -485
  51. package/esm2022/lib/controls/navigation/link-item.mjs +0 -2
  52. package/esm2022/lib/controls/navigation/nav-group.mjs +0 -39
  53. package/esm2022/lib/controls/navigation/nav-item-active.directive.mjs +0 -92
  54. package/esm2022/lib/controls/navigation/nav-item.mjs +0 -2
  55. package/esm2022/lib/controls/numericbox/numericbox.component.mjs +0 -372
  56. package/esm2022/lib/controls/popover/popover.component.mjs +0 -117
  57. package/esm2022/lib/controls/radio-button/radio-button-option.mjs +0 -3
  58. package/esm2022/lib/controls/radio-button/radio-button.component.mjs +0 -82
  59. package/esm2022/lib/controls/select/select.component.mjs +0 -88
  60. package/esm2022/lib/controls/tabs/tabs.component.mjs +0 -47
  61. package/esm2022/lib/controls/textbox/textbox.component.mjs +0 -155
  62. package/esm2022/lib/core/cache.service.mjs +0 -105
  63. package/esm2022/lib/core/custom-validators.mjs +0 -29
  64. package/esm2022/lib/core/date-time-helper.mjs +0 -228
  65. package/esm2022/lib/core/error.service.mjs +0 -61
  66. package/esm2022/lib/core/router-helper.service.mjs +0 -111
  67. package/esm2022/lib/core/scroll.service.mjs +0 -89
  68. package/esm2022/lib/core/telemetry-tracker.service.mjs +0 -16
  69. package/esm2022/lib/core/telemetry.service.mjs +0 -38
  70. package/esm2022/lib/core/validation-message.service.mjs +0 -185
  71. package/esm2022/lib/core/validation-patterns.mjs +0 -31
  72. package/esm2022/lib/core/window.service.mjs +0 -186
  73. package/esm2022/lib/display/app-bar/app-bar.component.mjs +0 -49
  74. package/esm2022/lib/display/avatar/avatar.component.mjs +0 -67
  75. package/esm2022/lib/display/avatar/avatar.service.mjs +0 -64
  76. package/esm2022/lib/display/confirm/confirm.component.mjs +0 -168
  77. package/esm2022/lib/display/dialog/dialog-content.mjs +0 -2
  78. package/esm2022/lib/display/dialog/dialog-group/dialog-group.component.mjs +0 -63
  79. package/esm2022/lib/display/dialog/dialog-types.mjs +0 -77
  80. package/esm2022/lib/display/dialog/dialog.component.mjs +0 -287
  81. package/esm2022/lib/display/dialog/dialog.service.mjs +0 -71
  82. package/esm2022/lib/display/help/help-types.mjs +0 -2
  83. package/esm2022/lib/display/hierarchy/hierarchy-base.mjs +0 -111
  84. package/esm2022/lib/display/hierarchy/hierarchy-mocks.spec.mjs +0 -54
  85. package/esm2022/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +0 -65
  86. package/esm2022/lib/display/item-display/item-display.component.mjs +0 -83
  87. package/esm2022/lib/display/json-display/json-display.component.mjs +0 -47
  88. package/esm2022/lib/display/resizable/resizable-base.mjs +0 -120
  89. package/esm2022/lib/display/resizable/resizable.component.mjs +0 -57
  90. package/esm2022/lib/display/spinner/spinner.component.mjs +0 -12
  91. package/esm2022/lib/display/splash/splash.component.mjs +0 -61
  92. package/esm2022/lib/display/splash/splash.service.mjs +0 -35
  93. package/esm2022/lib/display/table/resizable-column.component.mjs +0 -20
  94. package/esm2022/lib/display/table/resizable-table.directive.mjs +0 -227
  95. package/esm2022/lib/display/table/searchable-table.component.mjs +0 -344
  96. package/esm2022/lib/display/table/table-detail-row.component.mjs +0 -28
  97. package/esm2022/lib/display/table/table-locked-column.component.mjs +0 -58
  98. package/esm2022/lib/display/table/table-master-header-row.component.mjs +0 -14
  99. package/esm2022/lib/display/table/table-master-row.component.mjs +0 -163
  100. package/esm2022/lib/display/table/table-pagination.component.mjs +0 -155
  101. package/esm2022/lib/display/table/table-selectable-row.component.mjs +0 -235
  102. package/esm2022/lib/display/table/table.component.mjs +0 -257
  103. package/esm2022/lib/display/tags/tag.mjs +0 -18
  104. package/esm2022/lib/display/tags/tags.component.mjs +0 -82
  105. package/esm2022/lib/display/toast/toast/toast.component.mjs +0 -77
  106. package/esm2022/lib/display/toast/toast-types.mjs +0 -8
  107. package/esm2022/lib/display/toast/toast.service.mjs +0 -35
  108. package/esm2022/lib/display/toast/toaster/toaster.component.mjs +0 -114
  109. package/esm2022/lib/display/tooltip/tooltip.component.mjs +0 -28
  110. package/esm2022/lib/display/tooltip/tooltip.service.mjs +0 -78
  111. package/esm2022/lib/display/tooltip-directive/tooltip.directive.mjs +0 -173
  112. package/esm2022/lib/display/tree/tree.component.mjs +0 -139
  113. package/esm2022/lib/display/view-overlay/view-overlay.component.mjs +0 -58
  114. package/esm2022/lib/shared/directives/click-area-for/click-area-for.directive.mjs +0 -32
  115. package/esm2022/lib/shared/directives/if-viewport-width/if-viewport-width.directive.mjs +0 -111
  116. package/esm2022/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.mjs +0 -103
  117. package/esm2022/lib/shared/directives/popup/popup-container.directive.mjs +0 -166
  118. package/esm2022/lib/shared/display/pipes/date-display-2.pipe.mjs +0 -39
  119. package/esm2022/lib/shared/display/pipes/date-display.pipe.mjs +0 -51
  120. package/esm2022/lib/shared/display/pipes/highlight-text.pipe.mjs +0 -30
  121. package/esm2022/lib/shared/display/pipes/relative-date.pipe.mjs +0 -62
  122. package/esm2022/lib/shared/display/pipes/row-count.pipe.mjs +0 -48
  123. package/esm2022/lib/shared/display/pipes/time-display.pipe.mjs +0 -41
  124. package/esm2022/lib/shared/display.mjs +0 -6
  125. package/esm2022/lib/shared/form-group.helper.mjs +0 -67
  126. package/esm2022/lib/shared/json-helper.mjs +0 -19
  127. package/esm2022/lib/shared/lodash-helper.mjs +0 -52
  128. package/esm2022/lib/shared/page/page-base/page-base.component.mjs +0 -387
  129. package/esm2022/lib/shared/page/page-statuses.mjs +0 -23
  130. package/esm2022/lib/shared/page/page-title/page-title.component.mjs +0 -23
  131. package/esm2022/lib/shared/page/page-view/page-view.component.mjs +0 -147
  132. package/esm2022/lib/shared/testing/copy-button-base-test-injector-factory.spec.mjs +0 -17
  133. package/esm2022/lib/shared/testing/hierarchy-base-test-injector-factory.spec.mjs +0 -17
  134. package/esm2022/lib/shared/testing/page-base-component-test-helper.spec.mjs +0 -38
  135. package/esm2022/lib/shared/testing/page-base-component-test-injector-factory.spec.mjs +0 -98
  136. package/esm2022/lib/shared/testing/public-mocks.spec.mjs +0 -148
  137. package/esm2022/lib/shared/testing/spy-factory.spec.mjs +0 -40
  138. package/esm2022/lib/shared/testing/translation-mocks.spec.mjs +0 -57
  139. package/esm2022/lib/shared/user-preference.service.mjs +0 -17
  140. package/esm2022/lib/shared/wizard/wizard-base/wizard-base.component.mjs +0 -246
  141. package/esm2022/lib/shared/wizard/wizard-buttons/wizard-buttons.component.mjs +0 -68
  142. package/esm2022/lib/shared/wizard/wizard-progress/wizard-progress.component.mjs +0 -18
  143. package/esm2022/public-api.mjs +0 -115
@@ -16,5 +16,5 @@ export declare abstract class CopyButtonBaseDirective implements OnInit, OnDestr
16
16
  /** Called to get context-specific value for clipboard copying */
17
17
  protected abstract getDataForClipboard(): string | null;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CopyButtonBaseDirective, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<CopyButtonBaseDirective, never, never, {}, {}, never, never, false, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CopyButtonBaseDirective, never, never, {}, {}, never, never, true, never>;
20
20
  }
@@ -44,7 +44,7 @@ export declare class DateInputComponent extends FormControlBase implements OnIni
44
44
  /** Placeholder for the textbox. Updated to reflect the user's date display preference. */
45
45
  placeholder: string;
46
46
  /** Overlay scroll strategy for the calendar overlay. Closes the calendar on scroll. */
47
- overlayScrollStrategy: import("@angular/cdk/overlay").CloseScrollStrategy;
47
+ overlayScrollStrategy: import("@angular/cdk/overlay.d-BdoMy0hX").C;
48
48
  primaryCalendarView: Calendar.View;
49
49
  secondaryCalendarView: Calendar.View;
50
50
  primaryCalendarMaxDate: Date;
@@ -106,5 +106,5 @@ export declare abstract class FormControlBase implements OnInit, OnDestroy, OnCh
106
106
  */
107
107
  protected translateValidationMessages(data?: any): Promise<void>;
108
108
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlBase, never>;
109
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlBase, never, never, { "autofocus": { "alias": "autofocus"; "required": false; }; "formModel": { "alias": "formModel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "id": { "alias": "id"; "required": false; }; "pending": { "alias": "pending"; "required": false; }; "required": { "alias": "required"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "helpPopover": { "alias": "helpPopover"; "required": false; }; "helpPopoverPosition": { "alias": "helpPopoverPosition"; "required": false; }; }, {}, never, never, false, never>;
109
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlBase, never, never, { "autofocus": { "alias": "autofocus"; "required": false; }; "formModel": { "alias": "formModel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "id": { "alias": "id"; "required": false; }; "pending": { "alias": "pending"; "required": false; }; "required": { "alias": "required"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "helpPopover": { "alias": "helpPopover"; "required": false; }; "helpPopoverPosition": { "alias": "helpPopoverPosition"; "required": false; }; }, {}, never, never, true, never>;
110
110
  }
@@ -93,5 +93,5 @@ export declare abstract class HierarchyBase implements OnChanges, OnDestroy {
93
93
  */
94
94
  setItemError(parentItem: HierarchyItem): void;
95
95
  static ɵfac: i0.ɵɵFactoryDeclaration<HierarchyBase, never>;
96
- static ɵdir: i0.ɵɵDirectiveDeclaration<HierarchyBase, never, never, { "rootNode": { "alias": "rootNode"; "required": false; }; }, { "getItemChildren": "getItemChildren"; "itemToggled": "itemToggled"; }, never, never, false, never>;
96
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HierarchyBase, never, never, { "rootNode": { "alias": "rootNode"; "required": false; }; }, { "getItemChildren": "getItemChildren"; "itemToggled": "itemToggled"; }, never, never, true, never>;
97
97
  }
@@ -49,5 +49,5 @@ export declare namespace HierarchyMocks {
49
49
  hasActiveChildren: boolean;
50
50
  };
51
51
  const bldgWithoutChildrenHierarchyItem: () => HierarchyItem;
52
- const sortedHierarchyPlaces: () => HierarchyItem[];
52
+ const sortedHierarchyPlaces: () => Array<HierarchyItem>;
53
53
  }
@@ -63,5 +63,5 @@ export declare abstract class ResizableBase implements AfterViewInit {
63
63
  /** Store the provided widths in cache so they can be retrieved later */
64
64
  protected saveWidths(widths: number[]): void;
65
65
  static ɵfac: i0.ɵɵFactoryDeclaration<ResizableBase, never>;
66
- static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableBase, never, never, { "rememberWidth": { "alias": "rememberWidth"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, false, never>;
66
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableBase, never, never, { "rememberWidth": { "alias": "rememberWidth"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
67
67
  }
@@ -255,5 +255,5 @@ export declare abstract class PageBaseComponent implements OnInit, AfterViewInit
255
255
  private setUpRouterSubscriptions;
256
256
  private navigationEndHandler;
257
257
  static ɵfac: i0.ɵɵFactoryDeclaration<PageBaseComponent, never>;
258
- static ɵdir: i0.ɵɵDirectiveDeclaration<PageBaseComponent, never, never, {}, {}, never, never, false, never>;
258
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PageBaseComponent, never, never, {}, {}, never, never, true, never>;
259
259
  }
@@ -25,7 +25,7 @@ export declare class MockDialog<T> {
25
25
  open(component: Type<DialogContent<T>>, context?: T, options?: DialogOptions): Promise<void>;
26
26
  close(result?: DialogResult<T>): void;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<MockDialog<any>, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<MockDialog<any>, never, never, { "size": { "alias": "size"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; }, never, never, false, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MockDialog<any>, never, never, { "size": { "alias": "size"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
29
29
  }
30
30
  /**
31
31
  * Mocked dialog content to test save and cancel
@@ -130,5 +130,5 @@ export declare abstract class WizardBaseComponent extends PageBaseComponent {
130
130
  */
131
131
  private setCurrentTab;
132
132
  static ɵfac: i0.ɵɵFactoryDeclaration<WizardBaseComponent, never>;
133
- static ɵdir: i0.ɵɵDirectiveDeclaration<WizardBaseComponent, never, never, {}, {}, never, never, false, never>;
133
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WizardBaseComponent, never, never, {}, {}, never, never, true, never>;
134
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.44.8",
3
+ "version": "0.44.9-Angular19Upgrade.20260212-1633",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
@@ -25,8 +25,6 @@
25
25
  },
26
26
  ".": {
27
27
  "types": "./index.d.ts",
28
- "esm2022": "./esm2022/energycap-components.mjs",
29
- "esm": "./esm2022/energycap-components.mjs",
30
28
  "default": "./fesm2022/energycap-components.mjs"
31
29
  }
32
30
  },
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTsProgram = exports.createTsCompilerHost = exports.parseTsConfig = void 0;
3
+ exports.parseTsConfig = parseTsConfig;
4
+ exports.createTsCompilerHost = createTsCompilerHost;
5
+ exports.createTsProgram = createTsProgram;
4
6
  const path_1 = require("path");
5
7
  const ts = require("typescript");
6
8
  /** Parses the TSConfig file to be used in the TS Compiler Program. */
@@ -14,7 +16,6 @@ function parseTsConfig(absoluteTsConfigPath) {
14
16
  };
15
17
  return ts.parseJsonConfigFileContent(config, parseHost, (0, path_1.dirname)(absoluteTsConfigPath), {});
16
18
  }
17
- exports.parseTsConfig = parseTsConfig;
18
19
  /** Creates a file host to be used with with a TS Compiler program. */
19
20
  function createTsCompilerHost(tree, options, basePath) {
20
21
  const host = ts.createCompilerHost(options);
@@ -29,7 +30,6 @@ function createTsCompilerHost(tree, options, basePath) {
29
30
  };
30
31
  return host;
31
32
  }
32
- exports.createTsCompilerHost = createTsCompilerHost;
33
33
  function createTsProgram(tree, tsConfigPath, basePath) {
34
34
  // Resolve the absolute file system path to the TSConfig file. This is needed for the TS Compiler to resolve files correctly.
35
35
  const absoluteTsConfigPath = (0, path_1.resolve)(basePath, tsConfigPath);
@@ -38,5 +38,4 @@ function createTsProgram(tree, tsConfigPath, basePath) {
38
38
  const host = createTsCompilerHost(tree, options, basePath);
39
39
  return ts.createProgram(parsed.fileNames, options, host);
40
40
  }
41
- exports.createTsProgram = createTsProgram;
42
41
  //# sourceMappingURL=typescript.js.map
@@ -1 +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,MA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AAM,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AAC3D,CAAC"}
@@ -1,8 +0,0 @@
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[];
@@ -1,72 +1,49 @@
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;
1
+ // import { normalize, virtualFs, workspaces } from '@angular-devkit/core';
2
+ // import { Tree } from '@angular-devkit/schematics';
3
+ // import { allTargetOptions, allWorkspaceTargets } from '@schematics/angular/utility/workspace';
4
+ // /** Creates a file host to be used with Angular-Devkit's workspace utilities */
5
+ // export function createWorkspaceHost(tree: Tree): workspaces.WorkspaceHost {
6
+ // return {
7
+ // async readFile(path: string): Promise<string> {
8
+ // const data = tree.read(path);
9
+ // if (!data) {
10
+ // throw new Error(`File not found: ${path}`);
11
+ // }
12
+ // return virtualFs.fileBufferToString(data);
13
+ // },
14
+ // async writeFile(path: string, data: string): Promise<void> {
15
+ // return tree.overwrite(path, data);
16
+ // },
17
+ // async isDirectory(path: string): Promise<boolean> {
18
+ // return !tree.exists(path) && tree.getDir(path).subfiles.length > 0;
19
+ // },
20
+ // async isFile(path: string): Promise<boolean> {
21
+ // return tree.exists(path);
22
+ // }
23
+ // }
24
+ // }
25
+ // /** Returns the Angular workspace definition for the given path. The path must be a directory containing an angular.json or .angular.json file. */
26
+ // export async function getWorkspace(path: string, tree: Tree): Promise<workspaces.WorkspaceDefinition> {
27
+ // const host = createWorkspaceHost(tree);
28
+ // const { workspace } = await workspaces.readWorkspace(path, host);
29
+ // return workspace;
30
+ // }
31
+ // /** Returns all tsconfig paths from the angular workspace, including testing tsconfigs. */
32
+ // export function getTsConfigPaths(workspace: workspaces.WorkspaceDefinition, tree: Tree): string[] {
33
+ // const buildPaths = new Set<string>();
34
+ // const testPaths = new Set<string>();
35
+ // const workspaceDefinition = workspace as unknown as Parameters<typeof allWorkspaceTargets>[0];
36
+ // for (const [name, target] of allWorkspaceTargets(workspaceDefinition)) {
37
+ // if (name !== 'build' && name !== 'test') {
38
+ // continue;
39
+ // }
40
+ // for (const [, options] of allTargetOptions(target)) {
41
+ // if (options.tsConfig && typeof options.tsConfig === 'string' && tree.exists(options.tsConfig)) {
42
+ // const normalizedPath = normalize(options.tsConfig);
43
+ // name === 'build' ? buildPaths.add(normalizedPath) : testPaths.add(normalizedPath);
44
+ // }
45
+ // }
46
+ // }
47
+ // return [...buildPaths, ...testPaths];
48
+ // }
72
49
  //# sourceMappingURL=workspace.js.map
@@ -1 +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,I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C;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"}
1
+ {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/workspace.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,iGAAiG;AAEjG,kFAAkF;AAClF,8EAA8E;AAC9E,aAAa;AACb,sDAAsD;AACtD,sCAAsC;AACtC,qBAAqB;AACrB,sDAAsD;AACtD,UAAU;AACV,mDAAmD;AACnD,SAAS;AACT,mEAAmE;AACnE,2CAA2C;AAC3C,SAAS;AACT,0DAA0D;AAC1D,4EAA4E;AAC5E,SAAS;AACT,qDAAqD;AACrD,kCAAkC;AAClC,QAAQ;AACR,MAAM;AACN,IAAI;AAEJ,qJAAqJ;AACrJ,0GAA0G;AAC1G,4CAA4C;AAC5C,sEAAsE;AACtE,sBAAsB;AACtB,IAAI;AAEJ,6FAA6F;AAC7F,sGAAsG;AACtG,0CAA0C;AAC1C,yCAAyC;AACzC,mGAAmG;AAEnG,6EAA6E;AAC7E,iDAAiD;AACjD,kBAAkB;AAClB,QAAQ;AAER,4DAA4D;AAC5D,yGAAyG;AACzG,8DAA8D;AAC9D,6FAA6F;AAC7F,UAAU;AACV,QAAQ;AACR,MAAM;AAEN,0CAA0C;AAC1C,IAAI"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5lcmd5Y2FwLWNvbXBvbmVudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9lbmVyZ3ljYXAtY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19