@energycap/components 0.44.8 → 0.44.9-Angular19Upgrade.20260217-1620
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/fesm2022/energycap-components.mjs +379 -354
- package/fesm2022/energycap-components.mjs.map +1 -1
- package/lib/controls/button/copy-button-base.directive.d.ts +1 -1
- package/lib/controls/date-input/date-input.component.d.ts +1 -1
- package/lib/controls/form-control-base.d.ts +1 -1
- package/lib/core/date-time-helper.d.ts +2 -2
- package/lib/display/hierarchy/hierarchy-base.d.ts +1 -1
- package/lib/display/hierarchy/hierarchy-mocks.spec.d.ts +1 -1
- package/lib/display/resizable/resizable-base.d.ts +1 -1
- package/lib/shared/display/pipes/date-display.pipe.d.ts +1 -1
- package/lib/shared/page/page-base/page-base.component.d.ts +1 -1
- package/lib/shared/testing/public-mocks.spec.d.ts +1 -1
- package/lib/shared/wizard/wizard-base/wizard-base.component.d.ts +1 -1
- package/package.json +1 -3
- package/schematics/utilities/typescript.js +3 -4
- package/schematics/utilities/typescript.js.map +1 -1
- package/schematics/utilities/workspace.d.ts +0 -8
- package/schematics/utilities/workspace.js +48 -71
- package/schematics/utilities/workspace.js.map +1 -1
- package/esm2022/energycap-components.mjs +0 -5
- package/esm2022/lib/components.module.mjs +0 -425
- package/esm2022/lib/controls/banner/banner.component.mjs +0 -112
- package/esm2022/lib/controls/button/button.component.mjs +0 -114
- package/esm2022/lib/controls/button/copy-button-base.directive.mjs +0 -67
- package/esm2022/lib/controls/button/copy-button.directive.mjs +0 -28
- package/esm2022/lib/controls/button/copy-table-button.directive.mjs +0 -43
- package/esm2022/lib/controls/calendar/calendar-item.component.mjs +0 -91
- package/esm2022/lib/controls/calendar/calendar.component.mjs +0 -251
- package/esm2022/lib/controls/calendar/calendar.types.mjs +0 -2
- package/esm2022/lib/controls/checkbox/checkbox.component.mjs +0 -140
- package/esm2022/lib/controls/collapsible-toggle/collapsible-toggle.component.mjs +0 -38
- package/esm2022/lib/controls/combobox/combobox.component.mjs +0 -879
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/date-input-selection-strategy-base.mjs +0 -57
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/day-selection-strategy.mjs +0 -62
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/last-28-days-selection-strategy.mjs +0 -100
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/last-7-days-selection-strategy.mjs +0 -101
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/month-selection-strategy.mjs +0 -76
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/quarter-selection-strategy.mjs +0 -79
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/range-selection-strategy.mjs +0 -210
- package/esm2022/lib/controls/date-input/date-input-selection-strategies/year-selection-strategy.mjs +0 -81
- package/esm2022/lib/controls/date-input/date-input.component.mjs +0 -466
- package/esm2022/lib/controls/date-input/date-input.types.mjs +0 -44
- package/esm2022/lib/controls/dropdown/dropdown.component.mjs +0 -243
- package/esm2022/lib/controls/file-upload/file-upload.component.mjs +0 -261
- package/esm2022/lib/controls/form-control/form-control.component.mjs +0 -110
- package/esm2022/lib/controls/form-control-base.mjs +0 -151
- package/esm2022/lib/controls/form-control-label/form-control-label.component.mjs +0 -136
- package/esm2022/lib/controls/form-group/form-group.component.mjs +0 -261
- package/esm2022/lib/controls/help-popover/help-popover.component.mjs +0 -31
- package/esm2022/lib/controls/item-picker/item-picker.component.mjs +0 -329
- package/esm2022/lib/controls/link-button/link-button.component.mjs +0 -11
- package/esm2022/lib/controls/menu/menu.component.mjs +0 -485
- package/esm2022/lib/controls/navigation/link-item.mjs +0 -2
- package/esm2022/lib/controls/navigation/nav-group.mjs +0 -39
- package/esm2022/lib/controls/navigation/nav-item-active.directive.mjs +0 -92
- package/esm2022/lib/controls/navigation/nav-item.mjs +0 -2
- package/esm2022/lib/controls/numericbox/numericbox.component.mjs +0 -372
- package/esm2022/lib/controls/popover/popover.component.mjs +0 -117
- package/esm2022/lib/controls/radio-button/radio-button-option.mjs +0 -3
- package/esm2022/lib/controls/radio-button/radio-button.component.mjs +0 -82
- package/esm2022/lib/controls/select/select.component.mjs +0 -88
- package/esm2022/lib/controls/tabs/tabs.component.mjs +0 -47
- package/esm2022/lib/controls/textbox/textbox.component.mjs +0 -155
- package/esm2022/lib/core/cache.service.mjs +0 -105
- package/esm2022/lib/core/custom-validators.mjs +0 -29
- package/esm2022/lib/core/date-time-helper.mjs +0 -228
- package/esm2022/lib/core/error.service.mjs +0 -61
- package/esm2022/lib/core/router-helper.service.mjs +0 -111
- package/esm2022/lib/core/scroll.service.mjs +0 -89
- package/esm2022/lib/core/telemetry-tracker.service.mjs +0 -16
- package/esm2022/lib/core/telemetry.service.mjs +0 -38
- package/esm2022/lib/core/validation-message.service.mjs +0 -185
- package/esm2022/lib/core/validation-patterns.mjs +0 -31
- package/esm2022/lib/core/window.service.mjs +0 -186
- package/esm2022/lib/display/app-bar/app-bar.component.mjs +0 -49
- package/esm2022/lib/display/avatar/avatar.component.mjs +0 -67
- package/esm2022/lib/display/avatar/avatar.service.mjs +0 -64
- package/esm2022/lib/display/confirm/confirm.component.mjs +0 -168
- package/esm2022/lib/display/dialog/dialog-content.mjs +0 -2
- package/esm2022/lib/display/dialog/dialog-group/dialog-group.component.mjs +0 -63
- package/esm2022/lib/display/dialog/dialog-types.mjs +0 -77
- package/esm2022/lib/display/dialog/dialog.component.mjs +0 -287
- package/esm2022/lib/display/dialog/dialog.service.mjs +0 -71
- package/esm2022/lib/display/help/help-types.mjs +0 -2
- package/esm2022/lib/display/hierarchy/hierarchy-base.mjs +0 -111
- package/esm2022/lib/display/hierarchy/hierarchy-mocks.spec.mjs +0 -54
- package/esm2022/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +0 -65
- package/esm2022/lib/display/item-display/item-display.component.mjs +0 -83
- package/esm2022/lib/display/json-display/json-display.component.mjs +0 -47
- package/esm2022/lib/display/resizable/resizable-base.mjs +0 -120
- package/esm2022/lib/display/resizable/resizable.component.mjs +0 -57
- package/esm2022/lib/display/spinner/spinner.component.mjs +0 -12
- package/esm2022/lib/display/splash/splash.component.mjs +0 -61
- package/esm2022/lib/display/splash/splash.service.mjs +0 -35
- package/esm2022/lib/display/table/resizable-column.component.mjs +0 -20
- package/esm2022/lib/display/table/resizable-table.directive.mjs +0 -227
- package/esm2022/lib/display/table/searchable-table.component.mjs +0 -344
- package/esm2022/lib/display/table/table-detail-row.component.mjs +0 -28
- package/esm2022/lib/display/table/table-locked-column.component.mjs +0 -58
- package/esm2022/lib/display/table/table-master-header-row.component.mjs +0 -14
- package/esm2022/lib/display/table/table-master-row.component.mjs +0 -163
- package/esm2022/lib/display/table/table-pagination.component.mjs +0 -155
- package/esm2022/lib/display/table/table-selectable-row.component.mjs +0 -235
- package/esm2022/lib/display/table/table.component.mjs +0 -257
- package/esm2022/lib/display/tags/tag.mjs +0 -18
- package/esm2022/lib/display/tags/tags.component.mjs +0 -82
- package/esm2022/lib/display/toast/toast/toast.component.mjs +0 -77
- package/esm2022/lib/display/toast/toast-types.mjs +0 -8
- package/esm2022/lib/display/toast/toast.service.mjs +0 -35
- package/esm2022/lib/display/toast/toaster/toaster.component.mjs +0 -114
- package/esm2022/lib/display/tooltip/tooltip.component.mjs +0 -28
- package/esm2022/lib/display/tooltip/tooltip.service.mjs +0 -78
- package/esm2022/lib/display/tooltip-directive/tooltip.directive.mjs +0 -173
- package/esm2022/lib/display/tree/tree.component.mjs +0 -139
- package/esm2022/lib/display/view-overlay/view-overlay.component.mjs +0 -58
- package/esm2022/lib/shared/directives/click-area-for/click-area-for.directive.mjs +0 -32
- package/esm2022/lib/shared/directives/if-viewport-width/if-viewport-width.directive.mjs +0 -111
- package/esm2022/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.mjs +0 -103
- package/esm2022/lib/shared/directives/popup/popup-container.directive.mjs +0 -166
- package/esm2022/lib/shared/display/pipes/date-display-2.pipe.mjs +0 -39
- package/esm2022/lib/shared/display/pipes/date-display.pipe.mjs +0 -51
- package/esm2022/lib/shared/display/pipes/highlight-text.pipe.mjs +0 -30
- package/esm2022/lib/shared/display/pipes/relative-date.pipe.mjs +0 -62
- package/esm2022/lib/shared/display/pipes/row-count.pipe.mjs +0 -48
- package/esm2022/lib/shared/display/pipes/time-display.pipe.mjs +0 -41
- package/esm2022/lib/shared/display.mjs +0 -6
- package/esm2022/lib/shared/form-group.helper.mjs +0 -67
- package/esm2022/lib/shared/json-helper.mjs +0 -19
- package/esm2022/lib/shared/lodash-helper.mjs +0 -52
- package/esm2022/lib/shared/page/page-base/page-base.component.mjs +0 -387
- package/esm2022/lib/shared/page/page-statuses.mjs +0 -23
- package/esm2022/lib/shared/page/page-title/page-title.component.mjs +0 -23
- package/esm2022/lib/shared/page/page-view/page-view.component.mjs +0 -147
- package/esm2022/lib/shared/testing/copy-button-base-test-injector-factory.spec.mjs +0 -17
- package/esm2022/lib/shared/testing/hierarchy-base-test-injector-factory.spec.mjs +0 -17
- package/esm2022/lib/shared/testing/page-base-component-test-helper.spec.mjs +0 -38
- package/esm2022/lib/shared/testing/page-base-component-test-injector-factory.spec.mjs +0 -98
- package/esm2022/lib/shared/testing/public-mocks.spec.mjs +0 -148
- package/esm2022/lib/shared/testing/spy-factory.spec.mjs +0 -40
- package/esm2022/lib/shared/testing/translation-mocks.spec.mjs +0 -57
- package/esm2022/lib/shared/user-preference.service.mjs +0 -17
- package/esm2022/lib/shared/wizard/wizard-base/wizard-base.component.mjs +0 -246
- package/esm2022/lib/shared/wizard/wizard-buttons/wizard-buttons.component.mjs +0 -68
- package/esm2022/lib/shared/wizard/wizard-progress/wizard-progress.component.mjs +0 -18
- 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,
|
|
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").
|
|
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,
|
|
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
|
}
|
|
@@ -65,11 +65,11 @@ export declare class DateTimeHelper {
|
|
|
65
65
|
/**
|
|
66
66
|
* Return true if @see date is equal to the @see endOfTime
|
|
67
67
|
*/
|
|
68
|
-
static isEndOfTime(date: Date | moment.Moment | string, timeZoneOffset?: boolean): boolean;
|
|
68
|
+
static isEndOfTime(date: Date | moment.Moment | string | number, timeZoneOffset?: boolean): boolean;
|
|
69
69
|
/**
|
|
70
70
|
* Compare two dates and return true if they represent the same year, month, and day (time is ignored).
|
|
71
71
|
*/
|
|
72
|
-
static isSameDay(date1: Date | moment.Moment | string, date2: Date | moment.Moment | string): boolean;
|
|
72
|
+
static isSameDay(date1: Date | moment.Moment | string | number, date2: Date | moment.Moment | string | number): boolean;
|
|
73
73
|
/**
|
|
74
74
|
* Get the parse formats based on the given date format. If no date format is
|
|
75
75
|
* given, or we don't recognize the format, return the month first parse formats.
|
|
@@ -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,
|
|
96
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HierarchyBase, never, never, { "rootNode": { "alias": "rootNode"; "required": false; }; }, { "getItemChildren": "getItemChildren"; "itemToggled": "itemToggled"; }, never, never, true, never>;
|
|
97
97
|
}
|
|
@@ -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,
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableBase, never, never, { "rememberWidth": { "alias": "rememberWidth"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
67
67
|
}
|
|
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import { UserPreferenceService } from '../../user-preference.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export type DateDisplay = Date | moment.Moment | string | null;
|
|
5
|
+
export type DateDisplay = Date | moment.Moment | string | number | null;
|
|
6
6
|
/**
|
|
7
7
|
* Format a date to the user's preference for display
|
|
8
8
|
* @deprecated Use DateDisplayPipe2 instead
|
|
@@ -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,
|
|
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,
|
|
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,
|
|
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.
|
|
3
|
+
"version": "0.44.9-Angular19Upgrade.20260217-1620",
|
|
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.
|
|
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":"
|
|
1
|
+
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/typescript.ts"],"names":[],"mappings":";;AAKA,sCAUC;AAGD,oDAWC;AAGD,0CAOC;AAtCD,+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;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;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"}
|
|
@@ -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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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":"
|
|
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
|