@ihk-gfi/lux-components-update 18.5.2 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/collection.json +22 -57
- package/package.json +15 -34
- package/src/update-dependencies/index.js +89 -0
- package/{update-en-messages → src/update-en-messages}/index.js +4 -4
- package/src/update-standalone-imports/index.js +677 -0
- package/src/update-standalone-imports/schema.json +20 -0
- package/src/updates/19.0.0/index.js +345 -0
- package/{utility → src/utility}/dependencies.js +5 -7
- package/{utility → src/utility}/files.js +9 -1
- package/{utility → src/utility}/html/hit.js +5 -0
- package/{utility → src/utility}/html/html-manipulator.js +6 -4
- package/{utility → src/utility}/json.js +21 -4
- package/{utility → src/utility}/replace-item.js +17 -2
- package/{utility → src/utility}/typescript.js +125 -46
- package/{utility → src/utility}/util.js +0 -22
- package/{utility → src/utility}/validation.js +1 -2
- package/add-lux-components/files/app/app-routing.module.ts +0 -21
- package/add-lux-components/files/app/app.component.html +0 -34
- package/add-lux-components/files/app/app.component.scss +0 -4
- package/add-lux-components/files/app/app.component.spec.ts +0 -21
- package/add-lux-components/files/app/app.component.ts +0 -24
- package/add-lux-components/files/app/app.module.ts +0 -63
- package/add-lux-components/files/app/base/license-hint/license-hint.component.html +0 -11
- package/add-lux-components/files/app/base/license-hint/license-hint.component.ts +0 -24
- package/add-lux-components/files/app/error/error.component.html +0 -10
- package/add-lux-components/files/app/error/error.component.scss +0 -3
- package/add-lux-components/files/app/error/error.component.spec.ts +0 -51
- package/add-lux-components/files/app/error/error.component.ts +0 -17
- package/add-lux-components/files/app/home/home.component.html +0 -10
- package/add-lux-components/files/app/home/home.component.scss +0 -3
- package/add-lux-components/files/app/home/home.component.ts +0 -13
- package/add-lux-components/files/app/profil/profil.component.html +0 -1
- package/add-lux-components/files/app/profil/profil.component.scss +0 -0
- package/add-lux-components/files/app/profil/profil.component.spec.ts +0 -24
- package/add-lux-components/files/app/profil/profil.component.ts +0 -11
- package/add-lux-components/files/assets/svg/Example.svg +0 -6
- package/add-lux-components/files/assets/svg/android.svg +0 -2
- package/add-lux-components/files/assets/svg/box.svg +0 -690
- package/add-lux-components/files/assets/svg/demoAppLogo.svg +0 -1
- package/add-lux-components/files/assets/svg/red_power_button.svg +0 -67
- package/add-lux-components/files/assets/svg/svg2009.svg +0 -57457
- package/add-lux-components/files/environments/environment.prod.ts +0 -4
- package/add-lux-components/files/environments/environment.ts +0 -17
- package/add-lux-components/files/locale/messages.en.xlf +0 -1373
- package/add-lux-components/files/locale/messages.xlf +0 -1220
- package/add-lux-components/files/root/move-de-files.js +0 -15
- package/add-lux-components/files/src/index.html +0 -29
- package/add-lux-components/files/src/main.ts +0 -12
- package/add-lux-components/index.d.ts +0 -10
- package/add-lux-components/index.js +0 -232
- package/add-lux-components/schema.json +0 -23
- package/update-dependencies/index.d.ts +0 -6
- package/update-dependencies/index.js +0 -89
- package/update-en-messages/index.d.ts +0 -2
- package/updates/18.0.0/index.d.ts +0 -13
- package/updates/18.0.0/index.js +0 -125
- package/updates/18.1.0/index.d.ts +0 -2
- package/updates/18.1.0/index.js +0 -19
- package/updates/18.1.0/schema.json +0 -23
- package/updates/18.2.0/index.d.ts +0 -5
- package/updates/18.2.0/index.js +0 -44
- package/updates/18.2.0/schema.json +0 -23
- package/updates/18.3.0/index.d.ts +0 -5
- package/updates/18.3.0/index.js +0 -59
- package/updates/18.3.0/schema.json +0 -23
- package/updates/18.4.0/index.d.ts +0 -7
- package/updates/18.4.0/index.js +0 -76
- package/updates/18.4.0/schema.json +0 -23
- package/updates/18.5.0/index.d.ts +0 -5
- package/updates/18.5.0/index.js +0 -53
- package/updates/18.5.0/schema.json +0 -23
- package/utility/dependencies.d.ts +0 -45
- package/utility/files.d.ts +0 -66
- package/utility/html/hit.d.ts +0 -21
- package/utility/html/html-manipulator.d.ts +0 -71
- package/utility/html/manipulator-functions.d.ts +0 -99
- package/utility/json.d.ts +0 -82
- package/utility/logging.d.ts +0 -32
- package/utility/replace-item.d.ts +0 -18
- package/utility/test.d.ts +0 -10
- package/utility/typescript.d.ts +0 -22
- package/utility/util.d.ts +0 -37
- package/utility/validation.d.ts +0 -10
- /package/{update-dependencies → src/update-dependencies}/schema.json +0 -0
- /package/{update-en-messages → src/update-en-messages}/schema.json +0 -0
- /package/{updates/18.0.0 → src/updates/19.0.0}/schema.json +0 -0
- /package/{utility → src/utility}/html/manipulator-functions.js +0 -0
- /package/{utility → src/utility}/logging.js +0 -0
- /package/{utility → src/utility}/test.js +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Hit } from './hit';
|
|
2
|
-
/**
|
|
3
|
-
* @typedef ManipulatorFn Eine Manipulator-Funktion transformiert den HTML-Inhalt eines {@link Element}s.
|
|
4
|
-
*/
|
|
5
|
-
export declare type ManipulatorFn = (hit: Hit) => void;
|
|
6
|
-
/**
|
|
7
|
-
* Diese Funktion fügt dem Element ein neues Attribut hinzu. Das neue Attribut wird direkt hinter dem Tag als erstes Attribut hinzugefügt.
|
|
8
|
-
*
|
|
9
|
-
* @example Neues Attribut "luxHint"
|
|
10
|
-
* Input: <lux-input luxLabel="Lorem ipsum"></lux-input>
|
|
11
|
-
* Output: <lux-input luxHint="Hint" luxLabel="Lorem ipsum"></lux-input>
|
|
12
|
-
*
|
|
13
|
-
* @param name Ein Attributname.
|
|
14
|
-
* @param value Ein Attributwert.
|
|
15
|
-
*/
|
|
16
|
-
export declare const addAttrFn: (name: string, value: string) => (hit: Hit) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Diese Funktion löscht das gesamte Element.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* Input: <lux-input luxLabel="Lorem ipsum"></lux-input>
|
|
22
|
-
* Output:
|
|
23
|
-
*
|
|
24
|
-
* @param hit Ein {@link Hit}.
|
|
25
|
-
*/
|
|
26
|
-
export declare const removeElementFn: (hit: Hit) => void;
|
|
27
|
-
/**
|
|
28
|
-
* Diese Funktion benennt das Element um.
|
|
29
|
-
*
|
|
30
|
-
* @example Neuer Name "lux-input-ac"
|
|
31
|
-
* Input: <lux-input luxLabel="Lorem ipsum"></lux-input>
|
|
32
|
-
* Output: <lux-input-ac luxLabel="Lorem ipsum"></lux-input-ac>
|
|
33
|
-
*
|
|
34
|
-
* @param newName Der neue Name.
|
|
35
|
-
*/
|
|
36
|
-
export declare const renameElementFn: (newName: string) => (hit: Hit) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Diese Funktion benennt ein Attribut um.
|
|
39
|
-
*
|
|
40
|
-
* @example Alter Name "luxSelectedFiles", neuer Name "luxSelected"
|
|
41
|
-
* Input: <lux-file-list (luxSelectedFiles)="..."></lux-file-list>
|
|
42
|
-
* Output: <lux-file-list (luxSelected)="..."></lux-file-list>
|
|
43
|
-
*
|
|
44
|
-
* @param oldName Ein alter Name.
|
|
45
|
-
* @param newName Ein neuer Name.
|
|
46
|
-
*/
|
|
47
|
-
export declare const renameAttrFn: (oldName: string, newName: string) => (hit: Hit) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Diese Funktion aktualisiert den Attributwert nur, wenn dieser mit dem alten Wert übereinstimmt.
|
|
50
|
-
*
|
|
51
|
-
* @example Name "luxLabel", alter Wert "Vorname" und neuer Wert "Name" (alter Wert stimmt überein und der neue Wert wird gesetzt)
|
|
52
|
-
* Input: <lux-input luxLabel="Vorname"></lux-input>
|
|
53
|
-
* Output: <lux-input luxLabel="Name"></lux-input>
|
|
54
|
-
*
|
|
55
|
-
* @example Name "luxLabel", alter Wert "Name" und neuer Wert "Nachname" (alter Wert stimmt nicht überein und der HTML-Inhalt bleibt unverändert)
|
|
56
|
-
* Input: <lux-input luxLabel="Vorname"></lux-input>
|
|
57
|
-
* Output: <lux-input luxLabel="Vorname"></lux-input>
|
|
58
|
-
*
|
|
59
|
-
* @param name Ein Attributname.
|
|
60
|
-
* @param oldValue Ein alter Attributwert.
|
|
61
|
-
* @param newValue Ein neuer Attributwert.
|
|
62
|
-
*/
|
|
63
|
-
export declare const updateAttrIfFn: (name: string, oldValue: string, newValue: string) => (hit: Hit) => void;
|
|
64
|
-
/**
|
|
65
|
-
* Diese Funktion aktualisiert den Attributwert, wenn es das Attribut gibt. D.h. wenn es das Attribut nicht gibt, wird es auch nicht angelegt.
|
|
66
|
-
*
|
|
67
|
-
* @example Name "luxLabel", Wert "Vorname" (Attribut vorhanden und der Wert wird gesetzt)
|
|
68
|
-
* Input: <lux-input luxLabel="Name"></lux-input>
|
|
69
|
-
* Output: <lux-input luxLabel="Vorname"></lux-input>
|
|
70
|
-
*
|
|
71
|
-
* @example Name "luxLabel", Wert "Vorname" (Attribut nicht vorhanden und der HTML-Inhalt bleibt unverändert)
|
|
72
|
-
* Input: <lux-input></lux-input>
|
|
73
|
-
* Output: <lux-input></lux-input>
|
|
74
|
-
*
|
|
75
|
-
* @param name Ein Attributname.
|
|
76
|
-
* @param value Ein Attributwert.
|
|
77
|
-
*/
|
|
78
|
-
export declare const updateAttrFn: (name: string, value: string) => (hit: Hit) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Diese Funktion hängt den Wert hinten an, wenn es das Attribut gibt.
|
|
81
|
-
*
|
|
82
|
-
* @example Name "luxLabel", Wert " (*)"
|
|
83
|
-
* Input: <lux-input luxLabel="Nachname"></lux-input>
|
|
84
|
-
* Output: <lux-input luxLabel="Nachname (*)"></lux-input>
|
|
85
|
-
*
|
|
86
|
-
* @param name Ein Attributname.
|
|
87
|
-
* @param appendValue Ein anzuhängender Wert.
|
|
88
|
-
*/
|
|
89
|
-
export declare const appendAttrFn: (name: string, appendValue: string) => (hit: Hit) => void;
|
|
90
|
-
/**
|
|
91
|
-
* Diese Funktion löscht ein Attribut.
|
|
92
|
-
*
|
|
93
|
-
* @example Attribut "luxHint"
|
|
94
|
-
* Input: <lux-input luxLabel="Name" luxHint="Lorem ipsum"></lux-input>
|
|
95
|
-
* Output: <lux-input luxLabel="Name"></lux-input>
|
|
96
|
-
*
|
|
97
|
-
* @param name Ein Attributname.
|
|
98
|
-
*/
|
|
99
|
-
export declare const removeAttrFn: (name: string) => (hit: Hit) => void;
|
package/utility/json.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Rule, Tree } from '@angular-devkit/schematics';
|
|
2
|
-
import { FormattingOptions, Node } from 'jsonc-parser';
|
|
3
|
-
export declare const jsonFormattingOptions: FormattingOptions;
|
|
4
|
-
/**
|
|
5
|
-
* Liest die Json-Datei aus und wirft Fehlermeldungen, sollte die Json-Datei nicht gefunden oder
|
|
6
|
-
* in einem falschen Format sein.
|
|
7
|
-
* @param context
|
|
8
|
-
* @param tree
|
|
9
|
-
*/
|
|
10
|
-
export declare function readJson(tree: Tree, filePath: string): Node;
|
|
11
|
-
/**
|
|
12
|
-
* Liest die Json-Datei aus und wirft Fehlermeldungen, sollte die Json-Datei nicht gefunden oder
|
|
13
|
-
* in einem falschen Format sein.
|
|
14
|
-
* @param context
|
|
15
|
-
* @param tree
|
|
16
|
-
*/
|
|
17
|
-
export declare function readJsonAsString(tree: Tree, filePath: string): string;
|
|
18
|
-
/**
|
|
19
|
-
* Diese Methode fügt dem Skript den Teil am Index hinzu.
|
|
20
|
-
* Beispiel 1:
|
|
21
|
-
* script: 'ng build --aot && npm run move-de-files'
|
|
22
|
-
* part: ' --localize'
|
|
23
|
-
* Ergebnis: 'ng build --aot --localize && npm run move-de-files'
|
|
24
|
-
*
|
|
25
|
-
* Beispiel 2:
|
|
26
|
-
* script: 'ng build --aot && npm run move-de-files'
|
|
27
|
-
* part: ' --localize'
|
|
28
|
-
* index: 1
|
|
29
|
-
* Ergebnis: 'ng build --aot && npm run move-de-files --localize'
|
|
30
|
-
* @param script Ein NPM-Skript aus der Datei "package.json" (z.B 'ng build --aot && npm run move-de-files').
|
|
31
|
-
* @param part Ein Teil (z.B. --localize).
|
|
32
|
-
* @param index Ein Index (z.B. 0).
|
|
33
|
-
*/
|
|
34
|
-
export declare function appendScript(script: string, part: string, index?: number): string;
|
|
35
|
-
export declare function updateJsonValue(filePath: string, jsonPath: string[], value: any, onlyUpdate?: boolean): Rule;
|
|
36
|
-
export declare function deleteJsonValue(filePath: string, jsonPath: string[]): Rule;
|
|
37
|
-
export declare function updateJsonArray(filePath: string, jsonPath: string[], value: any, onlyUpdate?: boolean, findFn?: (value: Node) => boolean, message?: string): Rule;
|
|
38
|
-
export declare function deleteJsonArray(filePath: string, jsonPath: string[], findFn?: (value: Node) => boolean): Rule;
|
|
39
|
-
/**
|
|
40
|
-
* Diese Methode liefert den Index im Array des Objekts mit der übergebenen Property zurück.
|
|
41
|
-
*
|
|
42
|
-
* Beispiel: findObjectIndexInArray(node, 'glob', '*.css') = 1
|
|
43
|
-
* ```json
|
|
44
|
-
* 'assets': [
|
|
45
|
-
* 'src/assets',
|
|
46
|
-
* {
|
|
47
|
-
* 'glob': '*.css',
|
|
48
|
-
* 'input': './node_modules/@ihk-gfi/lux-components-theme/prebuilt-themes',
|
|
49
|
-
* 'output': './assets/themes'
|
|
50
|
-
* },
|
|
51
|
-
* 'src/favicon.ico',
|
|
52
|
-
* ]
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @param arrayNode Ein Konten, der ein Array als Wert hat.
|
|
56
|
-
* @param propertyName Ein Propertyname (z.B. glob).
|
|
57
|
-
* @param propertyValue Ein Propertywert (z.B. *.css).
|
|
58
|
-
*/
|
|
59
|
-
export declare function findObjectIndexInArray(arrayNode: Node, propertyName: string, propertyValue: string): number;
|
|
60
|
-
export declare function findObjectPropertyInArray(node: Node, propertyName: string, propertyValue: string): boolean;
|
|
61
|
-
export declare function findStringInArray(arrayNode: Node, value: string): boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Diese Methode liefert den Index im Array des Werts zurück.
|
|
64
|
-
*
|
|
65
|
-
* Beispiel: findStringIndexInArray(node, 'src/favicon.ico') = 2
|
|
66
|
-
* ```json
|
|
67
|
-
* 'assets': [
|
|
68
|
-
* 'src/assets',
|
|
69
|
-
* {
|
|
70
|
-
* 'glob': '*.css',
|
|
71
|
-
* 'input': './node_modules/@ihk-gfi/lux-components-theme/prebuilt-themes',
|
|
72
|
-
* 'output': './assets/themes'
|
|
73
|
-
* },
|
|
74
|
-
* 'src/favicon.ico',
|
|
75
|
-
* ]
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* @param arrayNode Ein Konten, der ein Array als Wert hat.
|
|
79
|
-
* @param value Ein Wert (z.B. 'src/favicon.ico').
|
|
80
|
-
*/
|
|
81
|
-
export declare function findStringIndexInArray(arrayNode: Node, value: string): number;
|
|
82
|
-
export declare function removeJsonNode(tree: Tree, filePath: string, jsonPath: (string | any)[], message?: string): void;
|
package/utility/logging.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { SchematicsException } from '@angular-devkit/schematics';
|
|
2
|
-
export declare const TAB = "\t ";
|
|
3
|
-
/**
|
|
4
|
-
* Erzeugt eine Info-Log-Ausgabe in hellem Blau mit einem [INFO] an der linken Seite.
|
|
5
|
-
* @param messages
|
|
6
|
-
*/
|
|
7
|
-
export declare const logInfoWithDescriptor: (...messages: string[]) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Erzeugt eine Info-Log-Ausgabe in hellem Weiß ohne Icon.
|
|
10
|
-
* @param messages
|
|
11
|
-
*/
|
|
12
|
-
export declare const logInfo: (...messages: string[]) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Erzeugt eine Success-Log-Ausgabe in hellem Grün mit einem [SUCCESS] an der linken Seite.
|
|
15
|
-
* @param messages
|
|
16
|
-
*/
|
|
17
|
-
export declare const logSuccess: (...messages: string[]) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Erzeugt eine Success-Log-Ausgabe in hellem Gelb mit einem [WARN] an der linken Seite.
|
|
20
|
-
* @param messages
|
|
21
|
-
*/
|
|
22
|
-
export declare const logWarn: (...messages: string[]) => void;
|
|
23
|
-
/**
|
|
24
|
-
* Erzeugt eine Error-Log-Ausgabe in hellem Grün mit einem [ERROR] an der linken Seite.
|
|
25
|
-
* @param messages
|
|
26
|
-
*/
|
|
27
|
-
export declare const logError: (...messages: string[]) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Wrapper um SchematicsException, welcher im Prinzip nur eine formatierte Log-Ausgabe des Fehler erzeugt und diesen zurückgibt.
|
|
30
|
-
* @constructor
|
|
31
|
-
*/
|
|
32
|
-
export declare const formattedSchematicsException: (...messages: string[]) => SchematicsException;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare class ReplaceItem {
|
|
2
|
-
find: string | RegExp;
|
|
3
|
-
replacement: string;
|
|
4
|
-
replaceAll: boolean;
|
|
5
|
-
constructor(find: string | RegExp, replace: string, replaceAll?: boolean);
|
|
6
|
-
}
|
|
7
|
-
export declare class ReplaceHtmlTagAttributeItem extends ReplaceItem {
|
|
8
|
-
constructor(tagName: string, attributeName: string, replaceName: string, replaceValue: string);
|
|
9
|
-
}
|
|
10
|
-
export declare class RemoveHtmlTagAttributeItem extends ReplaceItem {
|
|
11
|
-
constructor(tagName: string, attributeName: string);
|
|
12
|
-
}
|
|
13
|
-
export declare class ReplaceHtmlAttributeItem extends ReplaceItem {
|
|
14
|
-
constructor(attributeName: string, replace: string);
|
|
15
|
-
}
|
|
16
|
-
export declare class RemoveHtmlAttributeItem extends ReplaceItem {
|
|
17
|
-
constructor(attributeName: string);
|
|
18
|
-
}
|
package/utility/test.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Schema as ApplicationOptions } from '@schematics/angular/application/schema';
|
|
2
|
-
import { Schema as WorkspaceOptions } from '@schematics/angular/workspace/schema';
|
|
3
|
-
/**
|
|
4
|
-
* Standard-Optionen für das Test-Workspace.
|
|
5
|
-
*/
|
|
6
|
-
export declare const workspaceOptions: WorkspaceOptions;
|
|
7
|
-
/**
|
|
8
|
-
* Standard-Optionen für die Test-Applikation.
|
|
9
|
-
*/
|
|
10
|
-
export declare const appOptions: ApplicationOptions;
|
package/utility/typescript.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Tree } from '@angular-devkit/schematics';
|
|
2
|
-
import * as ts from 'typescript';
|
|
3
|
-
export declare function getSourceNodes(sourceFile: ts.SourceFile): ts.Node[];
|
|
4
|
-
export declare function addInterface(tree: Tree, filePath: string, interfaceName: string, logMessage?: boolean): void;
|
|
5
|
-
export declare function removeInterface(tree: Tree, filePath: string, interfaceName: string, logMessage?: boolean): void;
|
|
6
|
-
export declare function addImport(tree: Tree, filePath: string, packageName: string, importName?: string, logMessage?: boolean): void;
|
|
7
|
-
export declare function removeImport(tree: Tree, filePath: string, packageName: string, importName?: string, logMessage?: boolean): void;
|
|
8
|
-
export declare function removeProvider(tree: Tree, filePath: string, providerName: string, logMessage?: boolean): void;
|
|
9
|
-
export declare function getSiblings(node: ts.Node, childKind?: ts.SyntaxKind): ts.Node[];
|
|
10
|
-
export declare function getPrevSibling(node: ts.Node, childKind?: ts.SyntaxKind): ts.Node | null;
|
|
11
|
-
export declare function getNextSibling(node: ts.Node, childKind?: ts.SyntaxKind): ts.Node | null;
|
|
12
|
-
export declare function getNextSiblings(node: ts.Node): ts.Node[];
|
|
13
|
-
export declare function showTree(node: ts.Node, indent?: string): void;
|
|
14
|
-
export declare function findChild(node: ts.Node, kind: ts.SyntaxKind, text?: string): ts.Node | undefined;
|
|
15
|
-
export declare function getSyntaxListOfClass(tree: Tree, filePath: string): ts.Node;
|
|
16
|
-
export declare function getConstructor(tree: Tree, filePath: string): ts.Node | undefined;
|
|
17
|
-
export declare function getMethod(tree: Tree, filePath: string, methodeName: string): ts.Node | undefined;
|
|
18
|
-
export declare function addParameter(tree: Tree, filePath: string, syntaxListNode: ts.Node, service: string): void;
|
|
19
|
-
export declare function addMethod(tree: Tree, filePath: string, _syntaxListNode: ts.Node, method: string): void;
|
|
20
|
-
export declare function addConstructorParameter(tree: Tree, filePath: string, service: string): void;
|
|
21
|
-
export declare function addClassProperty(tree: Tree, filePath: string, property: string): void;
|
|
22
|
-
export declare function addConstructorContent(tree: Tree, filePath: string, content: string, append: boolean): void;
|
package/utility/util.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Konfig-Objekt für einige Util-Methoden.
|
|
5
|
-
* Ermöglicht z.B. die Standard-Dauer des waitForTreeCallback-Aufrufs zu ändern
|
|
6
|
-
*/
|
|
7
|
-
export declare const UtilConfig: {
|
|
8
|
-
defaultWaitMS: number;
|
|
9
|
-
};
|
|
10
|
-
export declare function escapeRegExp(str: string): string;
|
|
11
|
-
export declare function replaceRegEx(str: string, expression: RegExp, replace: string): string;
|
|
12
|
-
export declare function replaceString(str: string, find: string, replace: string, isReplaceAll?: boolean): string;
|
|
13
|
-
export declare function replaceFirst(str: string, find: string, replace: string): string;
|
|
14
|
-
export declare function replaceAll(str: string, find: string, replace: string): string;
|
|
15
|
-
/**
|
|
16
|
-
* Wartet die übergebene Zeitspanne und ruft dann den Callback auf.
|
|
17
|
-
* Gibt anschließend den Tree über ein Observable zurück.
|
|
18
|
-
* @param _tree
|
|
19
|
-
* @param callback
|
|
20
|
-
* @param waitMS
|
|
21
|
-
*/
|
|
22
|
-
export declare const waitForTreeCallback: (_tree: Tree, callback: Function, waitMS?: number) => Observable<import("@angular-devkit/schematics/src/tree/interface").Tree>;
|
|
23
|
-
/**
|
|
24
|
-
* Führt npm install aus und wartet auf den Abschluss des Prozess für diese Schematic.
|
|
25
|
-
* Wenn dieses eintritt, werden die Hinweise und ToDos ausgegeben.
|
|
26
|
-
* @param context
|
|
27
|
-
* @param messages
|
|
28
|
-
*/
|
|
29
|
-
export declare const runInstallAndLogToDos: (context: SchematicContext, messages: string[], runNpmInstall: boolean) => void;
|
|
30
|
-
export declare function updateI18nFile(tree: Tree, language: string, insertTransUnitId: string, translations: string): void;
|
|
31
|
-
export declare function applyRuleIfFileExists(rule: Rule, path: string): Rule;
|
|
32
|
-
export declare function applyRuleIf(minVersion: string, rule: Rule): Rule;
|
|
33
|
-
export declare function messageDebugRule(message: any, options: any): Rule;
|
|
34
|
-
export declare function messageInfoRule(message: any): Rule;
|
|
35
|
-
export declare function messageInfoInternRule(message: any): Rule;
|
|
36
|
-
export declare function messageSuccessRule(message: any): Rule;
|
|
37
|
-
export declare function finish(runNpmInstall: boolean, ...messages: string[]): Rule;
|
package/utility/validation.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
-
export declare function validateNodeVersion(_context: SchematicContext, minimumVersion: string): void;
|
|
3
|
-
/**
|
|
4
|
-
* Prüft die Angular Version der aufrufenden Applikation und wirft eine SchematicsException, wenn
|
|
5
|
-
* die Version nicht der erforderlichen entspricht.
|
|
6
|
-
* @param tree
|
|
7
|
-
* @param angularVersion
|
|
8
|
-
*/
|
|
9
|
-
export declare function validateAngularVersion(tree: Tree, angularVersion: string): void;
|
|
10
|
-
export declare function validateLuxComponentsVersion(tree: Tree, versionRange: string): void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|