@opendevstack/ngx-appshell 19.0.5
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 +131 -0
- package/fesm2022/opendevstack-ngx-appshell.mjs +727 -0
- package/fesm2022/opendevstack-ngx-appshell.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/appshell-breadcrumb/appshell-breadcrumb.component.d.ts +7 -0
- package/lib/components/appshell-chip/appshell-chip.component.d.ts +6 -0
- package/lib/components/appshell-filters/appshell-filters.component.d.ts +12 -0
- package/lib/components/appshell-header/appshell-header.component.d.ts +24 -0
- package/lib/components/appshell-icon/appshell-icon.component.d.ts +12 -0
- package/lib/components/appshell-layout/appshell-layout.component.d.ts +25 -0
- package/lib/components/appshell-page-header/appshell-page-header.component.d.ts +18 -0
- package/lib/components/appshell-platform-header/appshell-platform-header.component.d.ts +37 -0
- package/lib/components/appshell-platform-layout/appshell-platform-layout.component.d.ts +30 -0
- package/lib/components/appshell-product-card/appshell-product-card.component.d.ts +23 -0
- package/lib/components/appshell-product-card-v2/appshell-product-card-v2.component.d.ts +16 -0
- package/lib/components/appshell-select/appshell-select.component.d.ts +9 -0
- package/lib/components/appshell-sidebar-menu/appshell-sidebar-menu.component.d.ts +12 -0
- package/lib/components/appshell-toast/appshell-toast.component.d.ts +9 -0
- package/lib/components/appshell-toasts/appshell-toasts.component.d.ts +14 -0
- package/lib/components/index.d.ts +15 -0
- package/lib/directives/appshell-link.directive.d.ts +15 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/models/appshell-button.d.ts +5 -0
- package/lib/models/appshell-filter.d.ts +4 -0
- package/lib/models/appshell-link.d.ts +6 -0
- package/lib/models/appshell-links-group.d.ts +5 -0
- package/lib/models/appshell-notification.d.ts +10 -0
- package/lib/models/appshell-picker.d.ts +9 -0
- package/lib/models/appshell-product.d.ts +12 -0
- package/lib/models/appshell-tag.d.ts +4 -0
- package/lib/models/appshell-toast.d.ts +6 -0
- package/lib/models/appshell-user.d.ts +5 -0
- package/lib/models/index.d.ts +10 -0
- package/lib/screens/appshell-notifications-screen/appshell-notifications-screen.component.d.ts +23 -0
- package/lib/screens/appshell-product-catalog-screen/appshell-product-catalog-screen.component.d.ts +16 -0
- package/lib/screens/appshell-product-view-screen/appshell-product-view-screen.component.d.ts +19 -0
- package/lib/screens/index.d.ts +3 -0
- package/lib/services/appshell-toast.service.d.ts +12 -0
- package/lib/services/icon-registry.service.d.ts +14 -0
- package/lib/services/index.d.ts +2 -0
- package/opendevstack-ngx-appshell-19.0.5.tgz +0 -0
- package/package.json +44 -0
- package/public-api.d.ts +5 -0
- package/schematics/azure-login/files/app-config/config.json.template +12 -0
- package/schematics/azure-login/files/app-config-service/app-config.service.spec.ts.template +48 -0
- package/schematics/azure-login/files/app-config-service/app-config.service.ts.template +39 -0
- package/schematics/azure-login/files/azure-config/azure.config.ts.template +94 -0
- package/schematics/azure-login/files/azure-service/azure.service.spec.ts.template +311 -0
- package/schematics/azure-login/files/azure-service/azure.service.ts.template +161 -0
- package/schematics/azure-login/index.d.ts +2 -0
- package/schematics/azure-login/index.js +325 -0
- package/schematics/azure-login/index.js.map +1 -0
- package/schematics/azure-login/schema.json +8 -0
- package/schematics/collection.json +19 -0
- package/schematics/nats-notifications/files/nats-service/nats.service.spec.ts.template +473 -0
- package/schematics/nats-notifications/files/nats-service/nats.service.ts.template +255 -0
- package/schematics/nats-notifications/files/notifications-screen/notifications-screen.component.html.template +7 -0
- package/schematics/nats-notifications/files/notifications-screen/notifications-screen.component.spec.ts.template +152 -0
- package/schematics/nats-notifications/files/notifications-screen/notifications-screen.component.ts.template +61 -0
- package/schematics/nats-notifications/index.d.ts +2 -0
- package/schematics/nats-notifications/index.js +502 -0
- package/schematics/nats-notifications/index.js.map +1 -0
- package/schematics/nats-notifications/schema.json +8 -0
- package/schematics/ng-add/files/_fonts.scss +85 -0
- package/schematics/ng-add/files/styles.scss +47 -0
- package/schematics/ng-add/index.d.ts +2 -0
- package/schematics/ng-add/index.js +442 -0
- package/schematics/ng-add/index.js.map +1 -0
- package/styles/appshell-typography-config.scss +19 -0
- package/styles/appshell.theme.scss +75 -0
- package/styles/palette.css +92 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.azureLoginGenerator = azureLoginGenerator;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const core_1 = require("@angular-devkit/core");
|
|
6
|
+
const ts = require("typescript");
|
|
7
|
+
function azureLoginGenerator() {
|
|
8
|
+
return (_tree, context) => {
|
|
9
|
+
context.logger.info('Integrating Azure login into the project');
|
|
10
|
+
return (0, schematics_1.chain)([
|
|
11
|
+
(0, schematics_1.externalSchematic)('@schematics/angular', 'service', {
|
|
12
|
+
name: 'azure',
|
|
13
|
+
path: `src/app/services`
|
|
14
|
+
}),
|
|
15
|
+
mergeTemplate('azure-service', '/src/app/services'),
|
|
16
|
+
(0, schematics_1.externalSchematic)('@schematics/angular', 'service', {
|
|
17
|
+
name: 'app-config',
|
|
18
|
+
path: `src/app/services`
|
|
19
|
+
}),
|
|
20
|
+
mergeTemplate('app-config-service', '/src/app/services'),
|
|
21
|
+
mergeTemplate('azure-config', '/src/app'),
|
|
22
|
+
mergeTemplate('app-config', '/public/config'),
|
|
23
|
+
addAzureServiceToAppComponent(),
|
|
24
|
+
addTestsToAppComponent(),
|
|
25
|
+
addAzureConfigToAppConfig()
|
|
26
|
+
]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function mergeTemplate(templateFolder, targetPath) {
|
|
30
|
+
return (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)(`./files/${templateFolder}`), [
|
|
31
|
+
(0, schematics_1.applyTemplates)({}),
|
|
32
|
+
(0, schematics_1.move)((0, core_1.normalize)(targetPath))
|
|
33
|
+
]), schematics_1.MergeStrategy.Overwrite);
|
|
34
|
+
}
|
|
35
|
+
function addAzureServiceToAppComponent() {
|
|
36
|
+
return (tree, context) => {
|
|
37
|
+
const appComponentPath = 'src/app/app.component.ts';
|
|
38
|
+
let sourceText = readFileContent(tree, appComponentPath, context);
|
|
39
|
+
if (!sourceText)
|
|
40
|
+
return tree;
|
|
41
|
+
const sourceFile = ts.createSourceFile(appComponentPath, sourceText, ts.ScriptTarget.Latest, true);
|
|
42
|
+
sourceText = ensureImport(sourceText, sourceFile, 'AzureService', './services/azure.service');
|
|
43
|
+
sourceText = ensureImport(sourceText, sourceFile, 'OnInit', '@angular/core', 'Component');
|
|
44
|
+
if (hasConstructor(sourceFile)) {
|
|
45
|
+
if (!sourceText.includes('AzureService')) {
|
|
46
|
+
sourceText = updateConstructor(sourceText);
|
|
47
|
+
context.logger.info('Updated constructor with AzureService injection');
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
sourceText = addConstructor(sourceText);
|
|
52
|
+
context.logger.info('Added constructor with AzureService injection');
|
|
53
|
+
}
|
|
54
|
+
sourceText = ensureMethodWithContent(sourceText, sourceFile, 'ngOnInit', `this.azureService.initialize();\n this.azureService.loggedUser$.subscribe((user) => {\n this.loggedUser = user;\n });`, context);
|
|
55
|
+
if (!sourceText.includes('implements OnInit')) {
|
|
56
|
+
sourceText = addOnInitInterface(sourceText);
|
|
57
|
+
}
|
|
58
|
+
sourceText = ensureMethodWithContent(sourceText, sourceFile, 'login', 'this.azureService.login();', context);
|
|
59
|
+
sourceText = ensureMethodWithContent(sourceText, sourceFile, 'logout', 'this.azureService.logout();', context);
|
|
60
|
+
if (!sourceText.includes('loggedUser')) {
|
|
61
|
+
sourceText = addProperty(sourceText, 'loggedUser: any;');
|
|
62
|
+
context.logger.info('Added loggedUser property');
|
|
63
|
+
}
|
|
64
|
+
tree.overwrite(appComponentPath, sourceText);
|
|
65
|
+
context.logger.info(`Updated ${appComponentPath} successfully`);
|
|
66
|
+
return tree;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function addTestsToAppComponent() {
|
|
70
|
+
return (tree, context) => {
|
|
71
|
+
const appComponentSpecPath = 'src/app/app.component.spec.ts';
|
|
72
|
+
let sourceText = readFileContent(tree, appComponentSpecPath, context);
|
|
73
|
+
if (!sourceText)
|
|
74
|
+
return tree;
|
|
75
|
+
const sourceFile = ts.createSourceFile(appComponentSpecPath, sourceText, ts.ScriptTarget.Latest, true);
|
|
76
|
+
sourceText = ensureImport(sourceText, sourceFile, 'AzureService', './services/azure.service');
|
|
77
|
+
sourceText = ensureImport(sourceText, sourceFile, 'of', 'rxjs');
|
|
78
|
+
sourceText = ensureImport(sourceText, sourceFile, 'provideHttpClient', '@angular/common/http');
|
|
79
|
+
sourceText = ensureImport(sourceText, sourceFile, 'BrowserAnimationsModule', '@angular/platform-browser/animations');
|
|
80
|
+
if (sourceText.includes('import { TestBed }') && !sourceText.includes('ComponentFixture')) {
|
|
81
|
+
sourceText = sourceText.replace('import { TestBed', 'import { TestBed, ComponentFixture');
|
|
82
|
+
}
|
|
83
|
+
const newBeforeEach = `let component: AppComponent;
|
|
84
|
+
let fixture: ComponentFixture<AppComponent>;
|
|
85
|
+
let mockAzureService: jasmine.SpyObj<AzureService>;
|
|
86
|
+
|
|
87
|
+
beforeEach(async () => {
|
|
88
|
+
mockAzureService = jasmine.createSpyObj('AzureService', ['initialize', 'login', 'logout'], { loggedUser$: of(null) });
|
|
89
|
+
|
|
90
|
+
await TestBed.configureTestingModule({
|
|
91
|
+
imports: [AppComponent, BrowserAnimationsModule],
|
|
92
|
+
providers: [
|
|
93
|
+
{ provide: AzureService, useValue: mockAzureService },
|
|
94
|
+
provideHttpClient()
|
|
95
|
+
]
|
|
96
|
+
}).compileComponents();
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
beforeEach(() => {
|
|
100
|
+
fixture = TestBed.createComponent(AppComponent);
|
|
101
|
+
component = fixture.componentInstance;
|
|
102
|
+
fixture.detectChanges();
|
|
103
|
+
});`;
|
|
104
|
+
if (!sourceText.includes('mockAzureService')) {
|
|
105
|
+
const beforeEachRegex = /beforeEach\(async\s*\(\)\s*=>\s*{[\s\S]*?TestBed\.configureTestingModule\({[\s\S]*?}\)\.compileComponents\(\);[\s\S]*?}\);/;
|
|
106
|
+
sourceText = sourceText.replace(beforeEachRegex, newBeforeEach);
|
|
107
|
+
context.logger.info('Updated beforeEach block in test file');
|
|
108
|
+
}
|
|
109
|
+
if (!sourceText.includes('should call login method')) {
|
|
110
|
+
const newTests = `
|
|
111
|
+
it('should initialize the service and subscribe to loggedUser$ on ngOnInit', () => {
|
|
112
|
+
component.ngOnInit();
|
|
113
|
+
expect(mockAzureService.initialize).toHaveBeenCalled();
|
|
114
|
+
expect(component.loggedUser).toBeNull();
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
it('should call login method of AzureService on login', () => {
|
|
118
|
+
component.login();
|
|
119
|
+
expect(mockAzureService.login).toHaveBeenCalled();
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
it('should call logout method of AzureService on logout', () => {
|
|
123
|
+
component.logout();
|
|
124
|
+
expect(mockAzureService.logout).toHaveBeenCalled();
|
|
125
|
+
});`;
|
|
126
|
+
const createTestRegex = /it\(['"](should create the (app|component))['"],[\s\S]*?expect\((app|component)\)\.toBeTruthy\(\);[\s\S]*?\}\);/;
|
|
127
|
+
sourceText = sourceText.replace(createTestRegex, (match) => match + newTests);
|
|
128
|
+
context.logger.info('Added new test cases');
|
|
129
|
+
}
|
|
130
|
+
tree.overwrite(appComponentSpecPath, sourceText);
|
|
131
|
+
context.logger.info(`Updated ${appComponentSpecPath} successfully`);
|
|
132
|
+
return tree;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function addAzureConfigToAppConfig() {
|
|
136
|
+
return (tree, context) => {
|
|
137
|
+
const appConfigPath = 'src/app/app.config.ts';
|
|
138
|
+
let sourceText = readFileContent(tree, appConfigPath, context);
|
|
139
|
+
if (!sourceText)
|
|
140
|
+
return tree;
|
|
141
|
+
const sourceFile = ts.createSourceFile(appConfigPath, sourceText, ts.ScriptTarget.Latest, true);
|
|
142
|
+
sourceText = ensureImport(sourceText, sourceFile, 'AppConfigService', './services/app-config.service');
|
|
143
|
+
sourceText = ensureImport(sourceText, sourceFile, 'msalProviders', './azure.config');
|
|
144
|
+
// Update existing provideAppInitializer to include AppConfigService
|
|
145
|
+
const existingInitializer = /provideAppInitializer\(\(\)\s*=>\s*{\s*const iconService = inject\(IconRegistryService\);\s*return iconService\.registerIconsFromManifest\('assets\/icons\.json'\);\s*}\)/;
|
|
146
|
+
if (sourceText.match(existingInitializer)) {
|
|
147
|
+
const updatedInitializer = `provideAppInitializer(() => {
|
|
148
|
+
const appConfigService = inject(AppConfigService);
|
|
149
|
+
const iconService = inject(IconRegistryService);
|
|
150
|
+
return appConfigService.loadConfig().then(() =>
|
|
151
|
+
iconService.registerIconsFromManifest('assets/icons.json')
|
|
152
|
+
);
|
|
153
|
+
})`;
|
|
154
|
+
sourceText = sourceText.replace(existingInitializer, updatedInitializer);
|
|
155
|
+
context.logger.info('Updated provideAppInitializer to include AppConfigService');
|
|
156
|
+
}
|
|
157
|
+
// Add msalProviders if not present
|
|
158
|
+
if (!sourceText.includes('...msalProviders')) {
|
|
159
|
+
const providersMatch = sourceText.match(/providers:\s*\[([\s\S]*?)\]/);
|
|
160
|
+
if (providersMatch) {
|
|
161
|
+
const providersContent = providersMatch[1].trim();
|
|
162
|
+
const needsComma = providersContent.length > 0 && !providersContent.endsWith(',');
|
|
163
|
+
const updatedProviders = providersContent.length > 0
|
|
164
|
+
? `${providersContent}${needsComma ? ',' : ''}\n ...msalProviders`
|
|
165
|
+
: '...msalProviders';
|
|
166
|
+
sourceText = sourceText.replace(providersMatch[0], `providers: [\n ${updatedProviders}\n ]`);
|
|
167
|
+
context.logger.info('Added msalProviders to app.config.ts');
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
tree.overwrite(appConfigPath, sourceText);
|
|
171
|
+
context.logger.info(`Updated ${appConfigPath} successfully`);
|
|
172
|
+
return tree;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
// Helper functions
|
|
176
|
+
function readFileContent(tree, filePath, context) {
|
|
177
|
+
if (!tree.exists(filePath)) {
|
|
178
|
+
context.logger.error(`File ${filePath} does not exist.`);
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
181
|
+
const buffer = tree.read(filePath);
|
|
182
|
+
if (!buffer) {
|
|
183
|
+
context.logger.error(`Could not read file ${filePath}.`);
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
return buffer.toString('utf-8');
|
|
187
|
+
}
|
|
188
|
+
function ensureImport(sourceText, sourceFile, importName, fromModule, existingImportToExtend, additionalImport) {
|
|
189
|
+
const hasImport = sourceFile.statements.some((node) => ts.isImportDeclaration(node) && node.getText().includes(importName));
|
|
190
|
+
if (hasImport)
|
|
191
|
+
return sourceText;
|
|
192
|
+
if (existingImportToExtend) {
|
|
193
|
+
const importRegex = new RegExp(`import\\s*{([^}]*)}\\s*from\\s*['"]${existingImportToExtend.replace(/\//g, '\\/')}['"]`);
|
|
194
|
+
const match = sourceText.match(importRegex);
|
|
195
|
+
if (match) {
|
|
196
|
+
const imports = match[1].split(',').map(i => i.trim()).filter(i => i);
|
|
197
|
+
if (!imports.includes(importName)) {
|
|
198
|
+
imports.push(importName);
|
|
199
|
+
if (additionalImport && !imports.includes(additionalImport)) {
|
|
200
|
+
imports.push(additionalImport);
|
|
201
|
+
}
|
|
202
|
+
return sourceText.replace(match[0], `import { ${imports.join(', ')} } from '${existingImportToExtend}'`);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
const importStatement = additionalImport
|
|
207
|
+
? `import { ${importName}, ${additionalImport} } from '${fromModule}';\n`
|
|
208
|
+
: `import { ${importName} } from '${fromModule}';\n`;
|
|
209
|
+
return importStatement + sourceText;
|
|
210
|
+
}
|
|
211
|
+
function ensureMethodWithContent(sourceText, sourceFile, methodName, requiredContent, context) {
|
|
212
|
+
if (hasMethod(sourceFile, methodName)) {
|
|
213
|
+
if (!sourceText.includes(requiredContent)) {
|
|
214
|
+
sourceText = updateMethod(sourceText, methodName, requiredContent);
|
|
215
|
+
context.logger.info(`Updated ${methodName} method`);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
sourceText = addMethod(sourceText, `${methodName}(): void {\n ${requiredContent}\n }`);
|
|
220
|
+
context.logger.info(`Added ${methodName} method`);
|
|
221
|
+
}
|
|
222
|
+
return sourceText;
|
|
223
|
+
}
|
|
224
|
+
function hasMethod(sourceFile, methodName) {
|
|
225
|
+
let found = false;
|
|
226
|
+
function visit(node) {
|
|
227
|
+
if (ts.isMethodDeclaration(node) && node.name && node.name.getText() === methodName) {
|
|
228
|
+
found = true;
|
|
229
|
+
}
|
|
230
|
+
if (!found)
|
|
231
|
+
ts.forEachChild(node, visit);
|
|
232
|
+
}
|
|
233
|
+
visit(sourceFile);
|
|
234
|
+
return found;
|
|
235
|
+
}
|
|
236
|
+
function hasConstructor(sourceFile) {
|
|
237
|
+
let found = false;
|
|
238
|
+
function visit(node) {
|
|
239
|
+
if (ts.isConstructorDeclaration(node)) {
|
|
240
|
+
found = true;
|
|
241
|
+
}
|
|
242
|
+
if (!found)
|
|
243
|
+
ts.forEachChild(node, visit);
|
|
244
|
+
}
|
|
245
|
+
visit(sourceFile);
|
|
246
|
+
return found;
|
|
247
|
+
}
|
|
248
|
+
function updateConstructor(sourceText) {
|
|
249
|
+
const constructorRegex = /constructor\s*\(([^)]*)\)\s*{([^}]*)}/;
|
|
250
|
+
const match = sourceText.match(constructorRegex);
|
|
251
|
+
if (!match)
|
|
252
|
+
return sourceText;
|
|
253
|
+
const params = match[1].trim();
|
|
254
|
+
const body = match[2];
|
|
255
|
+
if (params.includes('azureService'))
|
|
256
|
+
return sourceText;
|
|
257
|
+
const newParams = params
|
|
258
|
+
? `${params}, private azureService: AzureService`
|
|
259
|
+
: 'private azureService: AzureService';
|
|
260
|
+
return sourceText.replace(constructorRegex, `constructor(${newParams}) {${body}}`);
|
|
261
|
+
}
|
|
262
|
+
function addConstructor(sourceText) {
|
|
263
|
+
const classRegex = /export\s+class\s+\w+[^{]*{/;
|
|
264
|
+
return sourceText.replace(classRegex, (match) => `${match}\n constructor(private azureService: AzureService) {}\n`);
|
|
265
|
+
}
|
|
266
|
+
function updateMethod(sourceText, methodName, requiredCode) {
|
|
267
|
+
const methodRegex = new RegExp(`${methodName}\\s*\\([^)]*\\)\\s*(?::\\s*\\w+)?\\s*{`);
|
|
268
|
+
const match = sourceText.match(methodRegex);
|
|
269
|
+
if (!match)
|
|
270
|
+
return sourceText;
|
|
271
|
+
const startIdx = match.index + match[0].length;
|
|
272
|
+
let braceCount = 1;
|
|
273
|
+
let endIdx = startIdx;
|
|
274
|
+
while (braceCount > 0 && endIdx < sourceText.length) {
|
|
275
|
+
if (sourceText[endIdx] === '{')
|
|
276
|
+
braceCount++;
|
|
277
|
+
if (sourceText[endIdx] === '}')
|
|
278
|
+
braceCount--;
|
|
279
|
+
endIdx++;
|
|
280
|
+
}
|
|
281
|
+
const methodBody = sourceText.substring(startIdx, endIdx - 1);
|
|
282
|
+
const requiredLines = requiredCode.split('\n').map(l => l.trim()).filter(l => l);
|
|
283
|
+
const existingLines = methodBody.split('\n').map(l => l.trim()).filter(l => l);
|
|
284
|
+
const linesToAdd = requiredLines.filter(line => !existingLines.some(existing => existing.includes(line)));
|
|
285
|
+
if (linesToAdd.length === 0)
|
|
286
|
+
return sourceText;
|
|
287
|
+
const updatedBody = methodBody.trimEnd() + `\n ${linesToAdd.join('\n ')}\n `;
|
|
288
|
+
return sourceText.substring(0, startIdx) + updatedBody + sourceText.substring(endIdx - 1);
|
|
289
|
+
}
|
|
290
|
+
function addMethod(sourceText, methodCode) {
|
|
291
|
+
const sourceFile = ts.createSourceFile('temp.ts', sourceText, ts.ScriptTarget.Latest, true);
|
|
292
|
+
let classNode;
|
|
293
|
+
ts.forEachChild(sourceFile, function visit(node) {
|
|
294
|
+
if (ts.isClassDeclaration(node)) {
|
|
295
|
+
classNode = node;
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
ts.forEachChild(node, visit);
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
if (classNode && classNode.getEnd) {
|
|
302
|
+
const classEndPos = classNode.getEnd() - 1;
|
|
303
|
+
return sourceText.slice(0, classEndPos) + `\n\n ${methodCode}\n` + sourceText.slice(classEndPos);
|
|
304
|
+
}
|
|
305
|
+
return sourceText;
|
|
306
|
+
}
|
|
307
|
+
function addProperty(sourceText, propertyCode) {
|
|
308
|
+
const classRegex = /export\s+class\s+\w+[^{]*{\s*\n/;
|
|
309
|
+
return sourceText.replace(classRegex, (match) => `${match} ${propertyCode}\n\n`);
|
|
310
|
+
}
|
|
311
|
+
function addOnInitInterface(sourceText) {
|
|
312
|
+
if (sourceText.match(/implements\s+[^{]*OnInit/)) {
|
|
313
|
+
return sourceText;
|
|
314
|
+
}
|
|
315
|
+
const withInterfaces = /export\s+class\s+(\w+)\s+implements\s+([^{]+)\s*{/;
|
|
316
|
+
const withoutInterfaces = /export\s+class\s+(\w+)\s*{/;
|
|
317
|
+
const interfaceMatch = sourceText.match(withInterfaces);
|
|
318
|
+
if (interfaceMatch) {
|
|
319
|
+
const className = interfaceMatch[1];
|
|
320
|
+
const interfaces = interfaceMatch[2].trim();
|
|
321
|
+
return sourceText.replace(withInterfaces, `export class ${className} implements ${interfaces}, OnInit {`);
|
|
322
|
+
}
|
|
323
|
+
return sourceText.replace(withoutInterfaces, (_, className) => `export class ${className} implements OnInit {`);
|
|
324
|
+
}
|
|
325
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngx-appshell/schematics/azure-login/index.ts"],"names":[],"mappings":";;AAKA,kDAwBC;AA7BD,2DACwE;AACxE,+CAAiD;AACjD,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Ac,EAAE,CAAC;QACnB,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;QACpC,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC5C,OAAO,UAAU,CAAC,OAAO,CAAC,cAAc,EAAE,gBAAgB,SAAS,eAAe,UAAU,YAAY,CAAC,CAAC;IAC5G,CAAC;IAED,OAAO,UAAU,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,CAC5D,gBAAgB,SAAS,sBAAsB,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Add the AppShell module to your project.",
|
|
6
|
+
"factory": "./ng-add/index#ngAdd"
|
|
7
|
+
},
|
|
8
|
+
"azure-login": {
|
|
9
|
+
"description": "Integrate azure enterprise login in the application.",
|
|
10
|
+
"factory": "./azure-login/index#azureLoginGenerator",
|
|
11
|
+
"schema": "./azure-login/schema.json"
|
|
12
|
+
},
|
|
13
|
+
"nats-notifications": {
|
|
14
|
+
"description": "Integrate notifications into your application based on Nats.io.",
|
|
15
|
+
"factory": "./nats-notifications/index#natsNotificationsGenerator",
|
|
16
|
+
"schema": "./nats-notifications/schema.json"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|