@ihk-gfi/lux-components-update 14.8.0 → 15.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 +4 -2
- package/add-lux-components/files/app/app.component.html +34 -0
- package/{src/add-lux-components → add-lux-components}/files/app/app.component.spec.ts +4 -2
- package/{src/add-lux-components → add-lux-components}/files/app/app.component.ts +1 -1
- package/add-lux-components/files/src/main.ts +17 -0
- package/{src/add-lux-components → add-lux-components}/index.js +29 -30
- package/add-lux-components/schema.json +23 -0
- package/collection.json +35 -0
- package/package.json +27 -27
- package/{src/theme → theme}/change-theme-to-authentic/index.js +0 -1
- package/theme/change-theme-to-authentic/schema.json +23 -0
- package/{src/theme → theme}/change-to-lux-icons/index.js +0 -1
- package/theme/change-to-lux-icons/schema.json +23 -0
- package/{src/update-dependencies → update-dependencies}/index.d.ts +1 -0
- package/update-dependencies/index.js +92 -0
- package/update-dependencies/schema.json +23 -0
- package/{src/update-en-messages → update-en-messages}/index.js +0 -1
- package/update-en-messages/schema.json +23 -0
- package/updates/15.0.0/index.d.ts +8 -0
- package/updates/15.0.0/index.js +109 -0
- package/updates/15.0.0/schema.json +23 -0
- package/{src/utility → utility}/dependencies.js +0 -1
- package/{src/utility → utility}/files.js +0 -1
- package/{src/utility → utility}/html/hit.js +0 -1
- package/{src/utility → utility}/html/html-manipulator.js +0 -1
- package/{src/utility → utility}/html/manipulator-functions.js +0 -1
- package/{src/utility → utility}/json.d.ts +2 -0
- package/{src/utility → utility}/json.js +16 -8
- package/{src/utility → utility}/logging.js +0 -1
- package/{src/utility → utility}/test.js +0 -1
- package/{src/utility → utility}/typescript.js +0 -1
- package/{src/utility → utility}/util.js +0 -1
- package/{src/utility → utility}/validation.js +0 -1
- package/src/add-lux-components/files/app/app.component.html +0 -32
- package/src/add-lux-components/files/app/base/license-hint/license-hint.component.html +0 -7
- package/src/add-lux-components/files/app/base/license-hint/license-hint.component.ts +0 -18
- package/src/add-lux-components/files/app/error/error.component.html +0 -10
- package/src/add-lux-components/files/app/error/error.component.scss +0 -3
- package/src/add-lux-components/files/app/error/error.component.spec.ts +0 -49
- package/src/add-lux-components/files/app/error/error.component.ts +0 -17
- package/src/add-lux-components/files/app/home/home.component.html +0 -7
- package/src/add-lux-components/files/app/home/home.component.scss +0 -3
- package/src/add-lux-components/files/app/home/home.component.ts +0 -13
- package/src/add-lux-components/files/app/profil/profil.component.html +0 -1
- package/src/add-lux-components/files/app/profil/profil.component.scss +0 -0
- package/src/add-lux-components/files/app/profil/profil.component.spec.ts +0 -24
- package/src/add-lux-components/files/app/profil/profil.component.ts +0 -11
- package/src/add-lux-components/files/assets/svg/Example.svg +0 -6
- package/src/add-lux-components/files/assets/svg/android.svg +0 -2
- package/src/add-lux-components/files/assets/svg/box.svg +0 -690
- package/src/add-lux-components/files/assets/svg/demoAppLogo.svg +0 -1
- package/src/add-lux-components/files/assets/svg/red_power_button.svg +0 -67
- package/src/add-lux-components/files/assets/svg/svg2009.svg +0 -57457
- package/src/add-lux-components/files/src/polyfills.ts +0 -58
- package/src/add-lux-components/index.js.map +0 -1
- package/src/add-lux-components/index.ts +0 -293
- package/src/add-lux-components/index_spec.d.ts +0 -1
- package/src/add-lux-components/index_spec.js +0 -51
- package/src/add-lux-components/index_spec.js.map +0 -1
- package/src/add-lux-components/index_spec.ts +0 -55
- package/src/add-lux-components/schema.json +0 -23
- package/src/collection.json +0 -75
- package/src/theme/change-theme-to-authentic/index.js.map +0 -1
- package/src/theme/change-theme-to-authentic/index.ts +0 -131
- package/src/theme/change-theme-to-authentic/index_spec.d.ts +0 -1
- package/src/theme/change-theme-to-authentic/index_spec.js +0 -300
- package/src/theme/change-theme-to-authentic/index_spec.js.map +0 -1
- package/src/theme/change-theme-to-authentic/index_spec.ts +0 -321
- package/src/theme/change-theme-to-authentic/schema.json +0 -23
- package/src/theme/change-to-lux-icons/index.js.map +0 -1
- package/src/theme/change-to-lux-icons/index.ts +0 -392
- package/src/theme/change-to-lux-icons/index_spec.d.ts +0 -1
- package/src/theme/change-to-lux-icons/index_spec.js +0 -128
- package/src/theme/change-to-lux-icons/index_spec.js.map +0 -1
- package/src/theme/change-to-lux-icons/index_spec.ts +0 -130
- package/src/theme/change-to-lux-icons/schema.json +0 -23
- package/src/update-dependencies/index.js +0 -88
- package/src/update-dependencies/index.js.map +0 -1
- package/src/update-dependencies/index.ts +0 -86
- package/src/update-dependencies/schema.json +0 -23
- package/src/update-en-messages/index.js.map +0 -1
- package/src/update-en-messages/index.ts +0 -83
- package/src/update-en-messages/index_spec.d.ts +0 -1
- package/src/update-en-messages/index_spec.js +0 -174
- package/src/update-en-messages/index_spec.js.map +0 -1
- package/src/update-en-messages/index_spec.ts +0 -182
- package/src/update-en-messages/schema.json +0 -23
- package/src/updates/update140000/files/src/polyfills.ts +0 -70
- package/src/updates/update140000/index.d.ts +0 -14
- package/src/updates/update140000/index.js +0 -95
- package/src/updates/update140000/index.js.map +0 -1
- package/src/updates/update140000/index.ts +0 -110
- package/src/updates/update140000/index_spec.d.ts +0 -1
- package/src/updates/update140000/index_spec.js +0 -165
- package/src/updates/update140000/index_spec.js.map +0 -1
- package/src/updates/update140000/index_spec.ts +0 -171
- package/src/updates/update140000/schema.json +0 -23
- package/src/updates/update140100/index.d.ts +0 -5
- package/src/updates/update140100/index.js +0 -62
- package/src/updates/update140100/index.js.map +0 -1
- package/src/updates/update140100/index.ts +0 -60
- package/src/updates/update140100/index_spec.d.ts +0 -1
- package/src/updates/update140100/index_spec.js +0 -124
- package/src/updates/update140100/index_spec.js.map +0 -1
- package/src/updates/update140100/index_spec.ts +0 -137
- package/src/updates/update140100/schema.json +0 -23
- package/src/updates/update140200/index.d.ts +0 -8
- package/src/updates/update140200/index.js +0 -40
- package/src/updates/update140200/index.js.map +0 -1
- package/src/updates/update140200/index.ts +0 -38
- package/src/updates/update140200/index_spec.d.ts +0 -1
- package/src/updates/update140200/index_spec.js +0 -75
- package/src/updates/update140200/index_spec.js.map +0 -1
- package/src/updates/update140200/index_spec.ts +0 -81
- package/src/updates/update140200/schema.json +0 -23
- package/src/updates/update140300/index.d.ts +0 -10
- package/src/updates/update140300/index.js +0 -85
- package/src/updates/update140300/index.js.map +0 -1
- package/src/updates/update140300/index.ts +0 -86
- package/src/updates/update140300/index_spec.d.ts +0 -1
- package/src/updates/update140300/index_spec.js +0 -145
- package/src/updates/update140300/index_spec.js.map +0 -1
- package/src/updates/update140300/index_spec.ts +0 -177
- package/src/updates/update140300/schema.json +0 -23
- package/src/updates/update140400/index.d.ts +0 -2
- package/src/updates/update140400/index.js +0 -22
- package/src/updates/update140400/index.js.map +0 -1
- package/src/updates/update140400/index.ts +0 -18
- package/src/updates/update140400/index_spec.d.ts +0 -1
- package/src/updates/update140400/index_spec.js +0 -75
- package/src/updates/update140400/index_spec.js.map +0 -1
- package/src/updates/update140400/index_spec.ts +0 -81
- package/src/updates/update140400/schema.json +0 -23
- package/src/updates/update140500/index.d.ts +0 -2
- package/src/updates/update140500/index.js +0 -21
- package/src/updates/update140500/index.js.map +0 -1
- package/src/updates/update140500/index.ts +0 -17
- package/src/updates/update140500/index_spec.d.ts +0 -1
- package/src/updates/update140500/index_spec.js +0 -73
- package/src/updates/update140500/index_spec.js.map +0 -1
- package/src/updates/update140500/index_spec.ts +0 -78
- package/src/updates/update140500/schema.json +0 -23
- package/src/updates/update140600/index.d.ts +0 -2
- package/src/updates/update140600/index.js +0 -39
- package/src/updates/update140600/index.js.map +0 -1
- package/src/updates/update140600/index.ts +0 -35
- package/src/updates/update140600/index_spec.d.ts +0 -1
- package/src/updates/update140600/index_spec.js +0 -71
- package/src/updates/update140600/index_spec.js.map +0 -1
- package/src/updates/update140600/index_spec.ts +0 -75
- package/src/updates/update140600/schema.json +0 -23
- package/src/updates/update140700/index.d.ts +0 -2
- package/src/updates/update140700/index.js +0 -22
- package/src/updates/update140700/index.js.map +0 -1
- package/src/updates/update140700/index.ts +0 -18
- package/src/updates/update140700/index_spec.d.ts +0 -1
- package/src/updates/update140700/index_spec.js +0 -75
- package/src/updates/update140700/index_spec.js.map +0 -1
- package/src/updates/update140700/index_spec.ts +0 -79
- package/src/updates/update140700/schema.json +0 -23
- package/src/updates/update140800/index.d.ts +0 -2
- package/src/updates/update140800/index.js +0 -22
- package/src/updates/update140800/index.js.map +0 -1
- package/src/updates/update140800/index.ts +0 -18
- package/src/updates/update140800/index_spec.d.ts +0 -1
- package/src/updates/update140800/index_spec.js +0 -76
- package/src/updates/update140800/index_spec.js.map +0 -1
- package/src/updates/update140800/index_spec.ts +0 -82
- package/src/updates/update140800/schema.json +0 -23
- package/src/utility/dependencies.js.map +0 -1
- package/src/utility/dependencies.ts +0 -144
- package/src/utility/files.js.map +0 -1
- package/src/utility/files.ts +0 -368
- package/src/utility/html/hit.js.map +0 -1
- package/src/utility/html/hit.ts +0 -28
- package/src/utility/html/html-manipulator.js.map +0 -1
- package/src/utility/html/html-manipulator.ts +0 -156
- package/src/utility/html/html_spec.d.ts +0 -1
- package/src/utility/html/html_spec.js +0 -692
- package/src/utility/html/html_spec.js.map +0 -1
- package/src/utility/html/html_spec.ts +0 -751
- package/src/utility/html/manipulator-functions.js.map +0 -1
- package/src/utility/html/manipulator-functions.ts +0 -149
- package/src/utility/json.js.map +0 -1
- package/src/utility/json.ts +0 -288
- package/src/utility/json_spec.d.ts +0 -1
- package/src/utility/json_spec.js +0 -326
- package/src/utility/json_spec.js.map +0 -1
- package/src/utility/json_spec.ts +0 -446
- package/src/utility/logging.js.map +0 -1
- package/src/utility/logging.ts +0 -80
- package/src/utility/test.js.map +0 -1
- package/src/utility/test.ts +0 -24
- package/src/utility/typescript.js.map +0 -1
- package/src/utility/typescript.ts +0 -598
- package/src/utility/typescript_spec.d.ts +0 -1
- package/src/utility/typescript_spec.js +0 -1005
- package/src/utility/typescript_spec.js.map +0 -1
- package/src/utility/typescript_spec.ts +0 -1265
- package/src/utility/util.js.map +0 -1
- package/src/utility/util.ts +0 -145
- package/src/utility/validation.js.map +0 -1
- package/src/utility/validation.ts +0 -48
- package/tsconfig.json +0 -35
- /package/{src/add-lux-components → add-lux-components}/files/app/app-routing.module.ts +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/app/app.module.ts +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/environments/environment.prod.ts +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/environments/environment.ts +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/locale/messages.en.xlf +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/locale/messages.xlf +0 -0
- /package/{src/add-lux-components → add-lux-components}/files/src/index.html +0 -0
- /package/{src/add-lux-components → add-lux-components}/index.d.ts +0 -0
- /package/{src/theme → theme}/change-theme-to-authentic/index.d.ts +0 -0
- /package/{src/theme → theme}/change-to-lux-icons/index.d.ts +0 -0
- /package/{src/update-en-messages → update-en-messages}/index.d.ts +0 -0
- /package/{src/utility → utility}/dependencies.d.ts +0 -0
- /package/{src/utility → utility}/files.d.ts +0 -0
- /package/{src/utility → utility}/html/hit.d.ts +0 -0
- /package/{src/utility → utility}/html/html-manipulator.d.ts +0 -0
- /package/{src/utility → utility}/html/manipulator-functions.d.ts +0 -0
- /package/{src/utility → utility}/logging.d.ts +0 -0
- /package/{src/utility → utility}/test.d.ts +0 -0
- /package/{src/utility → utility}/typescript.d.ts +0 -0
- /package/{src/utility → utility}/util.d.ts +0 -0
- /package/{src/utility → utility}/validation.d.ts +0 -0
|
@@ -1,692 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const html_manipulator_1 = require("./html-manipulator");
|
|
4
|
-
const manipulator_functions_1 = require("./manipulator-functions");
|
|
5
|
-
describe('html', () => {
|
|
6
|
-
describe('Not-Processed-Attribut', () => {
|
|
7
|
-
it('Sollte das Not-Processed-Attribut setzen', () => {
|
|
8
|
-
let content = templateNotProcessedAttr001;
|
|
9
|
-
content = html_manipulator_1.HtmlManipulator.prepare(content, 'lux-card');
|
|
10
|
-
expect(content).toEqual(resultNotProcessedAttr001);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
describe('Count', () => {
|
|
14
|
-
it('Sollte die korrekte Anzahl zurückliefern', () => {
|
|
15
|
-
const content = templateCount001;
|
|
16
|
-
expect(html_manipulator_1.HtmlManipulator.count(content, 'lux-card')).toEqual(3);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
describe('renameSelector', () => {
|
|
20
|
-
it('Sollte den Selector gelöscht haben', () => {
|
|
21
|
-
let content = '<div><lux-app-header></lux-app-header></div>';
|
|
22
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app-header', manipulator_functions_1.removeElementFn);
|
|
23
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'div', manipulator_functions_1.removeElementFn);
|
|
24
|
-
expect(content).toEqual('');
|
|
25
|
-
});
|
|
26
|
-
it('Sollte keinen Subselector löschen', () => {
|
|
27
|
-
let content = '<div><lux-app-header></lux-app-header><lux-app-header-ac></lux-app-header-ac></div>';
|
|
28
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app-header', manipulator_functions_1.removeElementFn);
|
|
29
|
-
expect(content).toEqual('<div><lux-app-header-ac></lux-app-header-ac></div>');
|
|
30
|
-
});
|
|
31
|
-
it('Sollte den Selector ersetzen - Alles in einer Zeile - Ohne Attribute', () => {
|
|
32
|
-
let content = '<lux-app-header></lux-app-header>';
|
|
33
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app-header', (0, manipulator_functions_1.renameElementFn)('lux-app-header-ac'));
|
|
34
|
-
expect(content).toEqual('<lux-app-header-ac></lux-app-header-ac>');
|
|
35
|
-
});
|
|
36
|
-
it('Sollte keine Subselectoren ersetzen', () => {
|
|
37
|
-
let content = '<lux-app-header></lux-app-header>';
|
|
38
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app', (0, manipulator_functions_1.renameElementFn)('lux-app'));
|
|
39
|
-
expect(content).toEqual('<lux-app-header></lux-app-header>');
|
|
40
|
-
});
|
|
41
|
-
it('Sollte den Selector ersetzen - Alles in einer Zeile - Mit Attribut', () => {
|
|
42
|
-
let content = '<lux-app-header luxTitle="Lorem ipsum"></lux-app-header>';
|
|
43
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app-header', (0, manipulator_functions_1.renameElementFn)('lux-app-header-ac'));
|
|
44
|
-
expect(content).toEqual('<lux-app-header-ac luxTitle="Lorem ipsum"></lux-app-header-ac>');
|
|
45
|
-
});
|
|
46
|
-
it('Sollte den Selector ersetzen - Alles in einer Zeile - Mit Leerzeichen', () => {
|
|
47
|
-
let content = '<lux-app-header ></lux-app-header >';
|
|
48
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app-header', (0, manipulator_functions_1.renameElementFn)('lux-app-header-ac'));
|
|
49
|
-
expect(content).toEqual('<lux-app-header-ac ></lux-app-header-ac >');
|
|
50
|
-
});
|
|
51
|
-
it('Sollte den Selector ersetzen - Mehrere Zeilen - Ohne Leerzeichen', () => {
|
|
52
|
-
let content = `<lux-app-header
|
|
53
|
-
></lux-app-header>`;
|
|
54
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app-header', (0, manipulator_functions_1.renameElementFn)('lux-app-header-ac'));
|
|
55
|
-
expect(content).toEqual(`<lux-app-header-ac
|
|
56
|
-
></lux-app-header-ac>`);
|
|
57
|
-
});
|
|
58
|
-
it('Sollte den Selector ersetzen - 2 Zeilen - Mit Leerzeichen', () => {
|
|
59
|
-
let content = `<lux-app-header
|
|
60
|
-
></lux-app-header>`;
|
|
61
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app-header', (0, manipulator_functions_1.renameElementFn)('lux-app-header-ac'));
|
|
62
|
-
expect(content).toEqual(`<lux-app-header-ac
|
|
63
|
-
></lux-app-header-ac>`);
|
|
64
|
-
});
|
|
65
|
-
it('Sollte den Selector ersetzen - 3 Zeilen - Ohne Leerzeichen', () => {
|
|
66
|
-
let content = `<lux-app-header
|
|
67
|
-
>
|
|
68
|
-
</lux-app-header>`;
|
|
69
|
-
content = html_manipulator_1.HtmlManipulator.transform(content, 'lux-app-header', (0, manipulator_functions_1.renameElementFn)('lux-app-header-ac'));
|
|
70
|
-
expect(content).toEqual(`<lux-app-header-ac
|
|
71
|
-
>
|
|
72
|
-
</lux-app-header-ac>`);
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
describe('addAttribute', () => {
|
|
76
|
-
it('Sollte sollte das Attribut luxTest1..5 hinzufügen', () => {
|
|
77
|
-
let result = templateAdd001;
|
|
78
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-table', (0, manipulator_functions_1.addAttrFn)('luxTest1', '123'));
|
|
79
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-table', (0, manipulator_functions_1.addAttrFn)('[luxTest2]', '123'));
|
|
80
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-table', (0, manipulator_functions_1.addAttrFn)('(luxTest3)', '123'));
|
|
81
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-table', (0, manipulator_functions_1.addAttrFn)('[(luxTest4)]', '123'));
|
|
82
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-table', (0, manipulator_functions_1.addAttrFn)('luxTest5', ''));
|
|
83
|
-
expect(result).toContain('luxTest1="123"');
|
|
84
|
-
expect(result).toContain('[luxTest2]="123"');
|
|
85
|
-
expect(result).toContain('(luxTest3)="123"');
|
|
86
|
-
expect(result).toContain('[(luxTest4)]="123"');
|
|
87
|
-
expect(result).toContain('luxTest5=""');
|
|
88
|
-
expect(result).not.toContain('let-element=""');
|
|
89
|
-
expect(result).toContain('#testId\n');
|
|
90
|
-
expect(result).not.toContain('#testId=""');
|
|
91
|
-
expect(result).toContain('testDirective\n');
|
|
92
|
-
expect(result).not.toContain('testDirective=""');
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
describe('updateAttribute', () => {
|
|
96
|
-
it('Sollte sollte das Attribut luxTest1..5 updaten', () => {
|
|
97
|
-
let result = templateUpdate001;
|
|
98
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.updateAttrFn)('luxTest1', 'abc'));
|
|
99
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.updateAttrFn)('luxTest2', 'true'));
|
|
100
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.updateAttrFn)('luxTest3', 'onNewClick($event, param1)'));
|
|
101
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.updateAttrFn)('luxTest4', 'newValue4'));
|
|
102
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.updateAttrFn)('luxTest5', ''));
|
|
103
|
-
expect(result).toContain('luxTest1="abc"');
|
|
104
|
-
expect(result).toContain('[luxTest2]="true"');
|
|
105
|
-
expect(result).toContain('(luxTest3)="onNewClick($event, param1)"');
|
|
106
|
-
expect(result).toContain('[(luxTest4)]="newValue4"');
|
|
107
|
-
expect(result).toContain('[(luxTest5)]=""');
|
|
108
|
-
expect(result).not.toContain('let-element=""');
|
|
109
|
-
expect(result).toContain('#testId\n');
|
|
110
|
-
expect(result).not.toContain('#testId=""');
|
|
111
|
-
expect(result).toContain('testDirective\n');
|
|
112
|
-
expect(result).not.toContain('testDirective=""');
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
describe('updateIfAttribute', () => {
|
|
116
|
-
it('Sollte sollte das Attribut luxTest1..5 updaten', () => {
|
|
117
|
-
let result = templateUpdate002;
|
|
118
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, '*[luxIconName]', (0, manipulator_functions_1.updateAttrIfFn)('luxIconName', 'fas fa-user', 'lux-interface-user-single'));
|
|
119
|
-
expect(result).toContain('luxIconName="lux-interface-user-single"');
|
|
120
|
-
expect(result).not.toContain('luxIconName="fas fa-user"');
|
|
121
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, '*[luxIconName]', (0, manipulator_functions_1.updateAttrIfFn)('luxIconName', 'lux-interface-user-single', 'fas fa-user'));
|
|
122
|
-
expect(result).toEqual(templateUpdate002);
|
|
123
|
-
});
|
|
124
|
-
it('Sollte die Attribute von geschachtelten Elemente ersetzen ', () => {
|
|
125
|
-
let result = templateUpdate003;
|
|
126
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, '*[luxIconName]', (0, manipulator_functions_1.updateAttrIfFn)('luxIconName', 'fas fa-user', 'lux-interface-user-single'));
|
|
127
|
-
expect(result).toEqual('<lux-icon luxIconName="lux-interface-user-single"><lux-icon luxIconName="lux-interface-user-single"></lux-icon></lux-icon>');
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
describe('appendAttribute', () => {
|
|
131
|
-
it('Sollte sollte das Attribut luxTest1..5 ergänzen', () => {
|
|
132
|
-
let result = templateAppend001;
|
|
133
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.appendAttrFn)('luxTest1', '_suffix'));
|
|
134
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.appendAttrFn)('luxTest2', '_suffix'));
|
|
135
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.appendAttrFn)('luxTest3', '_suffix'));
|
|
136
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.appendAttrFn)('luxTest4', '_suffix'));
|
|
137
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.appendAttrFn)('luxTest5', '_suffix'));
|
|
138
|
-
expect(result).toContain('luxTest1="value1_suffix"');
|
|
139
|
-
expect(result).toContain('[luxTest2]="value2_suffix"');
|
|
140
|
-
expect(result).toContain('(luxTest3)="value3_suffix"');
|
|
141
|
-
expect(result).toContain('[(luxTest4)]="value4_suffix"');
|
|
142
|
-
expect(result).toContain('[(luxTest5)]="_suffix"');
|
|
143
|
-
expect(result).not.toContain('let-element=""');
|
|
144
|
-
expect(result).toContain('#testId\n');
|
|
145
|
-
expect(result).not.toContain('#testId=""');
|
|
146
|
-
expect(result).toContain('testDirective\n');
|
|
147
|
-
expect(result).not.toContain('testDirective=""');
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
describe('renameAttribute', () => {
|
|
151
|
-
it('Sollte sollte das Attribut luxTest1..5 umbenennen', () => {
|
|
152
|
-
let result = templateRename001;
|
|
153
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'mat-chip-list', (0, manipulator_functions_1.renameAttrFn)('luxTest1', 'luxTestNeu1'));
|
|
154
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'mat-chip-list', (0, manipulator_functions_1.renameAttrFn)('luxTest2', 'luxTestNeu2'));
|
|
155
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'mat-chip-list', (0, manipulator_functions_1.renameAttrFn)('luxTest3', 'luxTestNeu3'));
|
|
156
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'mat-chip-list', (0, manipulator_functions_1.renameAttrFn)('luxTest4', 'luxTestNeu4'));
|
|
157
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'mat-chip-list', (0, manipulator_functions_1.renameAttrFn)('luxTest5', 'luxTestNeu5'));
|
|
158
|
-
expect(result).toContain('luxTestNeu1="123"');
|
|
159
|
-
expect(result).not.toContain('luxTest1="123"');
|
|
160
|
-
expect(result).toContain('[luxTestNeu2]="123"');
|
|
161
|
-
expect(result).not.toContain('luxTest2="123"');
|
|
162
|
-
expect(result).toContain('(luxTestNeu3)="123"');
|
|
163
|
-
expect(result).not.toContain('luxTest3="123"');
|
|
164
|
-
expect(result).toContain('[(luxTestNeu4)]="123"');
|
|
165
|
-
expect(result).not.toContain('luxTest4="123"');
|
|
166
|
-
expect(result).toContain('[(luxTestNeu5)]=""');
|
|
167
|
-
expect(result).not.toContain('luxTest5=""');
|
|
168
|
-
expect(result).toContain('#testId\n');
|
|
169
|
-
expect(result).not.toContain('#testId=""');
|
|
170
|
-
expect(result).toContain('testDirective\n');
|
|
171
|
-
expect(result).not.toContain('testDirective=""');
|
|
172
|
-
expect(result).not.toContain('></input>');
|
|
173
|
-
});
|
|
174
|
-
it('Sollte sollte keine End-Tags für Void-Elements hinzufügen', () => {
|
|
175
|
-
const result = html_manipulator_1.HtmlManipulator.transform(templateRename002, 'input', (0, manipulator_functions_1.renameAttrFn)('typeWrong', 'type'));
|
|
176
|
-
expect(result).not.toContain('></input>');
|
|
177
|
-
expect(result).not.toContain('></area>');
|
|
178
|
-
expect(result).not.toContain('></base>');
|
|
179
|
-
expect(result).not.toContain('></br>');
|
|
180
|
-
expect(result).not.toContain('></col>');
|
|
181
|
-
expect(result).not.toContain('></embed>');
|
|
182
|
-
expect(result).not.toContain('></hr>');
|
|
183
|
-
expect(result).not.toContain('></img>');
|
|
184
|
-
expect(result).not.toContain('></link>');
|
|
185
|
-
expect(result).not.toContain('></meta>');
|
|
186
|
-
expect(result).not.toContain('></param>');
|
|
187
|
-
expect(result).not.toContain('></source>');
|
|
188
|
-
expect(result).not.toContain('></track>');
|
|
189
|
-
expect(result).not.toContain('></wbr>');
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
describe('removeAttribute', () => {
|
|
193
|
-
it('Sollte sollte das Attribut luxTest1..5 entfernen', () => {
|
|
194
|
-
let result = templateRemove001;
|
|
195
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.removeAttrFn)('luxTest1'));
|
|
196
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.removeAttrFn)('luxTest2'));
|
|
197
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.removeAttrFn)('luxTest3'));
|
|
198
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.removeAttrFn)('luxTest4'));
|
|
199
|
-
result = html_manipulator_1.HtmlManipulator.transform(result, 'lux-file-list', (0, manipulator_functions_1.removeAttrFn)('luxTest5'));
|
|
200
|
-
expect(result).not.toContain('luxTest1');
|
|
201
|
-
expect(result).not.toContain('luxTest2');
|
|
202
|
-
expect(result).not.toContain('luxTest3');
|
|
203
|
-
expect(result).not.toContain('luxTest4');
|
|
204
|
-
expect(result).not.toContain('luxTest5');
|
|
205
|
-
expect(result).toContain('testDirective\n');
|
|
206
|
-
expect(result).not.toContain('testDirective=""');
|
|
207
|
-
expect(result).toContain('#filelistexamplewithoutform\n');
|
|
208
|
-
expect(result).not.toContain('#filelistexamplewithoutform=""');
|
|
209
|
-
expect(result).toContain('[luxHint]=""');
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
|
-
const templateAdd001 = `
|
|
214
|
-
<example-base-structure
|
|
215
|
-
exampleTitle="Tabelle"
|
|
216
|
-
exampleIconName="fas fa-table"
|
|
217
|
-
exampleDocumentationHref="https://github.com/IHK-GfI/lux-components/wiki/lux%E2%80%90table"
|
|
218
|
-
>
|
|
219
|
-
<example-base-content>
|
|
220
|
-
<div [ngStyle]="{ height: calculateProportions ? tableHeightPx + 'px' : 'unset' }" class="lux-table-example">
|
|
221
|
-
<lux-table
|
|
222
|
-
#testId
|
|
223
|
-
testDirective
|
|
224
|
-
[luxMinWidthPx]="minWidthPx"
|
|
225
|
-
[luxData]="dataSource"
|
|
226
|
-
[luxShowPagination]="pagination"
|
|
227
|
-
[luxColWidthsPercent]="columnWidthOption"
|
|
228
|
-
[luxShowFilter]="filter"
|
|
229
|
-
[luxFilterText]="filterText"
|
|
230
|
-
[luxPageSize]="pageSize"
|
|
231
|
-
[luxClasses]="cssClass"
|
|
232
|
-
[luxPageSizeOptions]="pageSizeOption"
|
|
233
|
-
[luxMultiSelect]="multiSelect"
|
|
234
|
-
[luxMultiSelectOnlyCheckboxClick]="multiSelectOnlyCheckboxClick"
|
|
235
|
-
[luxNoDataText]="noDataText"
|
|
236
|
-
[(luxSelected)]="selected"
|
|
237
|
-
[luxCompareWith]="compareFn"
|
|
238
|
-
(luxSelectedChange)="onSelectedChange($event)"
|
|
239
|
-
[luxHideBorders]="hideBorders"
|
|
240
|
-
[luxAutoPaginate]="autoPagination"
|
|
241
|
-
[luxPagerDisabled]="pagerDisabled"
|
|
242
|
-
[luxPagerTooltip]="pagerTooltip"
|
|
243
|
-
>
|
|
244
|
-
<lux-table-column
|
|
245
|
-
luxColumnDef="name"
|
|
246
|
-
[luxSortable]="nameConfig.sortable"
|
|
247
|
-
[luxSticky]="nameConfig.sticky"
|
|
248
|
-
[luxResponsiveAt]="nameConfig.responsiveAt"
|
|
249
|
-
[luxResponsiveBehaviour]="nameConfig.responsiveBehaviour?.value"
|
|
250
|
-
>
|
|
251
|
-
<lux-table-column-header>
|
|
252
|
-
<ng-template><span [luxTooltip]="'Tooltipp Spalte \\'Name\\''">Name</span></ng-template>
|
|
253
|
-
</lux-table-column-header>
|
|
254
|
-
<lux-table-column-content>
|
|
255
|
-
<ng-template let-element>
|
|
256
|
-
<span *ngIf="!element.editable">{{ element.name }}</span>
|
|
257
|
-
<lux-input
|
|
258
|
-
*ngIf="element.editable"
|
|
259
|
-
luxAriaLabel="Name"
|
|
260
|
-
luxTagId="table.row.control.name"
|
|
261
|
-
class="lux-table-no-label"
|
|
262
|
-
[(luxValue)]="element.name"
|
|
263
|
-
></lux-input>
|
|
264
|
-
</ng-template>
|
|
265
|
-
</lux-table-column-content>
|
|
266
|
-
<lux-table-column-footer>
|
|
267
|
-
<ng-template> Name Footer </ng-template>
|
|
268
|
-
</lux-table-column-footer>
|
|
269
|
-
</lux-table-column>
|
|
270
|
-
<lux-table-column
|
|
271
|
-
luxColumnDef="symbol"
|
|
272
|
-
[luxSortable]="symbolConfig.sortable"
|
|
273
|
-
[luxSticky]="symbolConfig.sticky"
|
|
274
|
-
[luxResponsiveAt]="symbolConfig.responsiveAt"
|
|
275
|
-
[luxResponsiveBehaviour]="symbolConfig.responsiveBehaviour?.value"
|
|
276
|
-
>
|
|
277
|
-
<lux-table-column-header>
|
|
278
|
-
<ng-template>
|
|
279
|
-
<span [luxTooltip]="'Tooltipp Spalte \\'Symbol\\''">Symbol</span>
|
|
280
|
-
</ng-template>
|
|
281
|
-
</lux-table-column-header>
|
|
282
|
-
<lux-table-column-content>
|
|
283
|
-
<ng-template let-element>
|
|
284
|
-
<span *ngIf="!element.editable">{{ element.symbol | lowercase }}</span>
|
|
285
|
-
<div fxLayout="row wrap">
|
|
286
|
-
<lux-input
|
|
287
|
-
*ngIf="element.editable"
|
|
288
|
-
luxAriaLabel="Symbol"
|
|
289
|
-
luxTagId="table.row.control.symbol"
|
|
290
|
-
fxFlex="1 1 30%"
|
|
291
|
-
class="lux-table-no-label"
|
|
292
|
-
[(luxValue)]="element.symbol"
|
|
293
|
-
></lux-input>
|
|
294
|
-
</div>
|
|
295
|
-
</ng-template>
|
|
296
|
-
</lux-table-column-content>
|
|
297
|
-
<lux-table-column-footer>
|
|
298
|
-
<ng-template> Symbol Footer </ng-template>
|
|
299
|
-
</lux-table-column-footer>
|
|
300
|
-
</lux-table-column>
|
|
301
|
-
<lux-table-column
|
|
302
|
-
*ngIf="!multiSelect || !multiSelectOnlyCheckboxClick"
|
|
303
|
-
luxColumnDef="date"
|
|
304
|
-
[luxSortable]="dateConfig.sortable"
|
|
305
|
-
[luxSticky]="dateConfig.sticky"
|
|
306
|
-
[luxResponsiveAt]="dateConfig.responsiveAt"
|
|
307
|
-
[luxResponsiveBehaviour]="dateConfig.responsiveBehaviour?.value"
|
|
308
|
-
>
|
|
309
|
-
<lux-table-column-header>
|
|
310
|
-
<ng-template>Datum</ng-template>
|
|
311
|
-
</lux-table-column-header>
|
|
312
|
-
<lux-table-column-content>
|
|
313
|
-
<ng-template let-element
|
|
314
|
-
><span>{{ element.date | date: 'dd.MM.yyyy' }}</span></ng-template
|
|
315
|
-
>
|
|
316
|
-
</lux-table-column-content>
|
|
317
|
-
<lux-table-column-footer>
|
|
318
|
-
<ng-template> Datum Footer </ng-template>
|
|
319
|
-
</lux-table-column-footer>
|
|
320
|
-
</lux-table-column>
|
|
321
|
-
<lux-table-column *ngIf="multiSelect && multiSelectOnlyCheckboxClick" luxColumnDef="Aktion" [luxSortable]="false">
|
|
322
|
-
<lux-table-column-header>
|
|
323
|
-
<ng-template>Aktion</ng-template>
|
|
324
|
-
</lux-table-column-header>
|
|
325
|
-
<lux-table-column-content>
|
|
326
|
-
<ng-template let-element>
|
|
327
|
-
<lux-button
|
|
328
|
-
*ngIf="!element.editable"
|
|
329
|
-
luxAriaLabel="Editieren"
|
|
330
|
-
luxTagId="table.row.action.edit"
|
|
331
|
-
class="lux-table-example"
|
|
332
|
-
luxColor="primary"
|
|
333
|
-
luxIconName="fas fa-edit"
|
|
334
|
-
(luxClicked)="onEdit(element)"
|
|
335
|
-
></lux-button>
|
|
336
|
-
<lux-button
|
|
337
|
-
*ngIf="element.editable"
|
|
338
|
-
luxAriaLabel="Speichern"
|
|
339
|
-
luxTagId="table.row.action.save"
|
|
340
|
-
class="lux-table-example"
|
|
341
|
-
luxColor="primary"
|
|
342
|
-
luxIconName="fas fa-save"
|
|
343
|
-
(luxClicked)="onSave(element)"
|
|
344
|
-
></lux-button>
|
|
345
|
-
<lux-button
|
|
346
|
-
*ngIf="element.editable"
|
|
347
|
-
luxAriaLabel="Abbrechen"
|
|
348
|
-
luxTagId="table.row.action.cancel"
|
|
349
|
-
class="lux-table-example"
|
|
350
|
-
luxColor="primary"
|
|
351
|
-
luxIconName="fas fa-undo"
|
|
352
|
-
(luxClicked)="onCancel(element)"
|
|
353
|
-
></lux-button>
|
|
354
|
-
</ng-template>
|
|
355
|
-
</lux-table-column-content>
|
|
356
|
-
<lux-table-column-footer>
|
|
357
|
-
<ng-template> Aktion Footer </ng-template>
|
|
358
|
-
</lux-table-column-footer>
|
|
359
|
-
</lux-table-column>
|
|
360
|
-
</lux-table>
|
|
361
|
-
</div>
|
|
362
|
-
</example-base-content>
|
|
363
|
-
<example-base-simple-options>
|
|
364
|
-
<table-example-simple-options [tableExample]="this"></table-example-simple-options>
|
|
365
|
-
</example-base-simple-options>
|
|
366
|
-
<example-base-advanced-options>
|
|
367
|
-
<table-example-advanced-options [tableExample]="this"></table-example-advanced-options>
|
|
368
|
-
</example-base-advanced-options>
|
|
369
|
-
<example-base-options-actions>
|
|
370
|
-
<lux-menu
|
|
371
|
-
fxFlex="0 0 250px"
|
|
372
|
-
luxMenuIconName="fas fa-ellipsis-v"
|
|
373
|
-
[luxDisplayExtended]="true"
|
|
374
|
-
[luxDisplayMenuLeft]="false"
|
|
375
|
-
[luxMaximumExtended]="4"
|
|
376
|
-
>
|
|
377
|
-
<lux-menu-item
|
|
378
|
-
luxLabel="Ersten 5 auswählen"
|
|
379
|
-
[luxRaised]="true"
|
|
380
|
-
[luxDisabled]="!multiSelect"
|
|
381
|
-
(luxClicked)="preselect()"
|
|
382
|
-
luxTagId="menu-select-5"
|
|
383
|
-
>
|
|
384
|
-
</lux-menu-item>
|
|
385
|
-
<lux-menu-item
|
|
386
|
-
luxLabel="Tabelle leeren"
|
|
387
|
-
luxColor="warn"
|
|
388
|
-
[luxDisabled]="dataSource.length === 0"
|
|
389
|
-
[luxRaised]="true"
|
|
390
|
-
(luxClicked)="clearData()"
|
|
391
|
-
luxTagId="menu-clear"
|
|
392
|
-
>
|
|
393
|
-
</lux-menu-item>
|
|
394
|
-
<lux-menu-item
|
|
395
|
-
luxLabel="Tabelle befüllen (300)"
|
|
396
|
-
luxColor="accent"
|
|
397
|
-
(luxClicked)="loadData(true)"
|
|
398
|
-
[luxRaised]="true"
|
|
399
|
-
luxTagId="menu-fill-300"
|
|
400
|
-
>
|
|
401
|
-
</lux-menu-item>
|
|
402
|
-
<lux-menu-item
|
|
403
|
-
luxLabel="Tabelle befüllen (30)"
|
|
404
|
-
luxColor="accent"
|
|
405
|
-
(luxClicked)="loadData(false)"
|
|
406
|
-
[luxRaised]="true"
|
|
407
|
-
luxTagId="menu-fill-30"
|
|
408
|
-
>
|
|
409
|
-
</lux-menu-item>
|
|
410
|
-
</lux-menu>
|
|
411
|
-
</example-base-options-actions>
|
|
412
|
-
</example-base-structure>
|
|
413
|
-
`;
|
|
414
|
-
const templateRename001 = `
|
|
415
|
-
<div class="lux-chips" fxLayout="column">
|
|
416
|
-
<lux-form-control
|
|
417
|
-
testDirective
|
|
418
|
-
[luxScalableHeight]="true"
|
|
419
|
-
[luxFormComponent]="this"
|
|
420
|
-
[luxHideBottomBorder]="!luxInputAllowed"
|
|
421
|
-
[luxIgnoreDefaultLabel]="!luxInputAllowed"
|
|
422
|
-
>
|
|
423
|
-
<mat-chip-list
|
|
424
|
-
[ngClass]="[
|
|
425
|
-
luxOrientation.toLocaleLowerCase() === 'vertical' ? 'mat-chip-list-stacked' : 'mat-chip-list-horizontal',
|
|
426
|
-
luxOrientation === 'horizontal' && luxInputAllowed ? 'lux-chips-list-offset' : 'lux-chips-list'
|
|
427
|
-
]"
|
|
428
|
-
luxTest1="123"
|
|
429
|
-
[luxTest2]="123"
|
|
430
|
-
(luxTest3)="123"
|
|
431
|
-
[(luxTest4)]="123"
|
|
432
|
-
[(luxTest5)]=""
|
|
433
|
-
[disabled]="luxDisabled"
|
|
434
|
-
[aria-orientation]="luxOrientation"
|
|
435
|
-
[multiple]="luxMultiple"
|
|
436
|
-
#testId
|
|
437
|
-
>
|
|
438
|
-
<!-- Direkte Chip-Components -->
|
|
439
|
-
<ng-container *ngFor="let chip of chipComponents; let i = index">
|
|
440
|
-
<mat-chip
|
|
441
|
-
class="lux-chip"
|
|
442
|
-
[ngClass]="{ 'lux-chip-selected': chip.luxSelected, 'lux-chip-disabled': chip.luxDisabled }"
|
|
443
|
-
[removable]="chip.luxRemovable"
|
|
444
|
-
[disabled]="chip.luxDisabled"
|
|
445
|
-
[selectable]="!chip.luxDisabled"
|
|
446
|
-
[selected]="chip.luxSelected"
|
|
447
|
-
[color]="chip.luxColor"
|
|
448
|
-
(keydown.delete)="chip.remove(i)"
|
|
449
|
-
(selectionChange)="chip.select($event.selected, i)"
|
|
450
|
-
(click)="chip.click(i)"
|
|
451
|
-
>
|
|
452
|
-
<ng-template *ngTemplateOutlet="chip.templateRef"></ng-template>
|
|
453
|
-
<lux-icon
|
|
454
|
-
class="lux-chip-icon lux-chip-icon lux-cursor"
|
|
455
|
-
[ngClass]="{ 'lux-chip-icon-selected': chip.luxSelected, 'lux-chip-icon-disabled': chip.luxDisabled }"
|
|
456
|
-
matChipRemove
|
|
457
|
-
luxIconName="cancel"
|
|
458
|
-
luxMargin="0 0 0 6px"
|
|
459
|
-
luxPadding="2px"
|
|
460
|
-
(click)="chip.remove(i)"
|
|
461
|
-
*ngIf="chip.luxRemovable"
|
|
462
|
-
></lux-icon>
|
|
463
|
-
</mat-chip>
|
|
464
|
-
</ng-container>
|
|
465
|
-
|
|
466
|
-
<!-- Chips via ChipGroup-Components -->
|
|
467
|
-
<ng-container *ngFor="let chipGroup of chipGroupComponents">
|
|
468
|
-
<ng-container *ngFor="let label of chipGroup.luxLabels; let i = index">
|
|
469
|
-
<mat-chip
|
|
470
|
-
class="lux-chip"
|
|
471
|
-
[ngClass]="{ 'lux-chip-selected': chipGroup.luxSelected, 'lux-chip-disabled': chipGroup.luxDisabled }"
|
|
472
|
-
[removable]="chipGroup.luxRemovable"
|
|
473
|
-
[disabled]="chipGroup.luxDisabled"
|
|
474
|
-
[selectable]="!chipGroup.luxDisabled"
|
|
475
|
-
[selected]="chipGroup.luxSelected"
|
|
476
|
-
[color]="chipGroup.luxColor"
|
|
477
|
-
(keydown.delete)="chipGroup.remove(i)"
|
|
478
|
-
(selectionChange)="chipGroup.select($event.selected, i)"
|
|
479
|
-
(click)="chipGroup.click(i)"
|
|
480
|
-
>
|
|
481
|
-
<ng-container
|
|
482
|
-
*ngTemplateOutlet="chipGroup.tempRef ? chipGroup.tempRef : noTemplateRef; context: { $implicit: label }"
|
|
483
|
-
></ng-container>
|
|
484
|
-
<lux-icon
|
|
485
|
-
class="lux-chip-icon lux-chip-icon lux-cursor"
|
|
486
|
-
[ngClass]="{ 'lux-chip-icon-selected': chipGroup.luxSelected, 'lux-chip-icon-disabled': chipGroup.luxDisabled }"
|
|
487
|
-
matChipRemove
|
|
488
|
-
luxIconName="cancel"
|
|
489
|
-
luxMargin="0 0 0 6px"
|
|
490
|
-
luxPadding="2px"
|
|
491
|
-
(click)="chipGroup.remove(i)"
|
|
492
|
-
*ngIf="chipGroup.luxRemovable"
|
|
493
|
-
></lux-icon>
|
|
494
|
-
</mat-chip>
|
|
495
|
-
</ng-container>
|
|
496
|
-
</ng-container>
|
|
497
|
-
|
|
498
|
-
<ng-container *ngIf="luxInputAllowed">
|
|
499
|
-
<input
|
|
500
|
-
[id]="uid"
|
|
501
|
-
[matChipInputFor]="testId"
|
|
502
|
-
[matChipInputAddOnBlur]="true"
|
|
503
|
-
[matAutocomplete]="auto"
|
|
504
|
-
[attr.aria-labelledby]="uid + '-label'"
|
|
505
|
-
[disabled]="luxDisabled"
|
|
506
|
-
(matChipInputTokenEnd)="inputAdd(input)"
|
|
507
|
-
(keyup)="inputChanged(input.value)"
|
|
508
|
-
(click)="onAutocompleteClick()"
|
|
509
|
-
type="text"
|
|
510
|
-
fxFlex="1 1 auto"
|
|
511
|
-
#input
|
|
512
|
-
/>
|
|
513
|
-
<mat-autocomplete
|
|
514
|
-
[class]="'lux-autocomplete-panel'"
|
|
515
|
-
(optionSelected)="autoCompleteAdd(input, $event.option.value)"
|
|
516
|
-
(opened)="onAutoCompleteOpened()"
|
|
517
|
-
#auto="matAutocomplete"
|
|
518
|
-
>
|
|
519
|
-
<mat-option *ngFor="let option of filteredOptions" [value]="option">
|
|
520
|
-
{{ option }}
|
|
521
|
-
</mat-option>
|
|
522
|
-
</mat-autocomplete>
|
|
523
|
-
</ng-container>
|
|
524
|
-
</mat-chip-list>
|
|
525
|
-
</lux-form-control>
|
|
526
|
-
</div>
|
|
527
|
-
|
|
528
|
-
<ng-template #noTemplateRef let-label>
|
|
529
|
-
{{ label }}
|
|
530
|
-
</ng-template>
|
|
531
|
-
`;
|
|
532
|
-
const templateRename002 = `
|
|
533
|
-
<input typeWrong="text" />
|
|
534
|
-
<area />
|
|
535
|
-
<base />
|
|
536
|
-
<br />
|
|
537
|
-
<col />
|
|
538
|
-
<embed />
|
|
539
|
-
<hr />
|
|
540
|
-
<img />
|
|
541
|
-
<link />
|
|
542
|
-
<meta />
|
|
543
|
-
<param />
|
|
544
|
-
<source />
|
|
545
|
-
<track />
|
|
546
|
-
<wbr />
|
|
547
|
-
|
|
548
|
-
<input typeWrong="text">
|
|
549
|
-
<area>
|
|
550
|
-
<base>
|
|
551
|
-
<br>
|
|
552
|
-
<col>
|
|
553
|
-
<embed>
|
|
554
|
-
<hr>
|
|
555
|
-
<img>
|
|
556
|
-
<link>
|
|
557
|
-
<meta>
|
|
558
|
-
<param>
|
|
559
|
-
<source>
|
|
560
|
-
<track>
|
|
561
|
-
<wbr>
|
|
562
|
-
`;
|
|
563
|
-
const templateRemove001 = `
|
|
564
|
-
<div fxFlex="auto" fxLayout="column">
|
|
565
|
-
<h3>Ohne ReactiveForm</h3>
|
|
566
|
-
<lux-file-list
|
|
567
|
-
testDirective
|
|
568
|
-
[luxLabel]="label"
|
|
569
|
-
[luxDownloadActionConfig]="downloadActionConfig"
|
|
570
|
-
[luxMaximumExtended]="maximumExtended"
|
|
571
|
-
[luxCapture]="capture"
|
|
572
|
-
[luxAccept]="accept"
|
|
573
|
-
[luxHint]=""
|
|
574
|
-
[luxHintShowOnlyOnFocus]="hintShowOnlyOnFocus"
|
|
575
|
-
[luxDnDActive]="dndActive"
|
|
576
|
-
[luxSelectedFiles]="selected"
|
|
577
|
-
[luxContentsAsBlob]="contentAsBlob"
|
|
578
|
-
[luxUploadReportProgress]="reportProgress"
|
|
579
|
-
(luxSelectedFilesChange)="onSelectedChange($event)"
|
|
580
|
-
luxTest1="true"
|
|
581
|
-
[luxTest2]="true"
|
|
582
|
-
(luxTest3)="true"
|
|
583
|
-
[(luxTest4)]="true"
|
|
584
|
-
[(luxTest5)]=""
|
|
585
|
-
(luxFocusIn)="log(showOutputEvents, 'luxFocusIn', $event)"
|
|
586
|
-
(luxFocusOut)="log(showOutputEvents, 'luxFocusOut', $event)"
|
|
587
|
-
#filelistexamplewithoutform
|
|
588
|
-
>
|
|
589
|
-
</lux-file-list>
|
|
590
|
-
</div>
|
|
591
|
-
`;
|
|
592
|
-
const templateUpdate001 = `
|
|
593
|
-
<div fxFlex="auto" fxLayout="column">
|
|
594
|
-
<h3>Ohne ReactiveForm</h3>
|
|
595
|
-
<lux-file-list
|
|
596
|
-
testDirective
|
|
597
|
-
[luxLabel]="label"
|
|
598
|
-
[luxDownloadActionConfig]="downloadActionConfig"
|
|
599
|
-
[luxMaximumExtended]="maximumExtended"
|
|
600
|
-
[luxCapture]="capture"
|
|
601
|
-
[luxAccept]="accept"
|
|
602
|
-
[luxHint]=""
|
|
603
|
-
[luxHintShowOnlyOnFocus]="hintShowOnlyOnFocus"
|
|
604
|
-
[luxDnDActive]="dndActive"
|
|
605
|
-
[luxSelectedFiles]="selected"
|
|
606
|
-
[luxContentsAsBlob]="contentAsBlob"
|
|
607
|
-
[luxUploadReportProgress]="reportProgress"
|
|
608
|
-
(luxSelectedFilesChange)="onSelectedChange($event)"
|
|
609
|
-
luxTest1="value1"
|
|
610
|
-
[luxTest2]="value2"
|
|
611
|
-
(luxTest3)="onClick($event)"
|
|
612
|
-
[(luxTest4)]="value4"
|
|
613
|
-
[(luxTest5)]="value5"
|
|
614
|
-
(luxFocusIn)="log(showOutputEvents, 'luxFocusIn', $event)"
|
|
615
|
-
(luxFocusOut)="log(showOutputEvents, 'luxFocusOut', $event)"
|
|
616
|
-
#testId
|
|
617
|
-
>
|
|
618
|
-
</lux-file-list>
|
|
619
|
-
</div>
|
|
620
|
-
`;
|
|
621
|
-
const templateUpdate002 = `
|
|
622
|
-
<lux-icon
|
|
623
|
-
luxIconName="fas fa-user"
|
|
624
|
-
[luxIconSize]="iconSize"
|
|
625
|
-
[luxPadding]="padding"
|
|
626
|
-
[luxMargin]="margin"
|
|
627
|
-
[luxRounded]="rounded"
|
|
628
|
-
[luxColor]="color"
|
|
629
|
-
>
|
|
630
|
-
</lux-icon>
|
|
631
|
-
`;
|
|
632
|
-
const templateUpdate003 = `<lux-icon luxIconName="fas fa-user"><lux-icon luxIconName="fas fa-user"></lux-icon></lux-icon>`;
|
|
633
|
-
const templateAppend001 = `
|
|
634
|
-
<div fxFlex="auto" fxLayout="column">
|
|
635
|
-
<h3>Ohne ReactiveForm</h3>
|
|
636
|
-
<lux-file-list
|
|
637
|
-
testDirective
|
|
638
|
-
[luxLabel]="label"
|
|
639
|
-
[luxDownloadActionConfig]="downloadActionConfig"
|
|
640
|
-
[luxMaximumExtended]="maximumExtended"
|
|
641
|
-
[luxCapture]="capture"
|
|
642
|
-
[luxAccept]="accept"
|
|
643
|
-
[luxHint]=""
|
|
644
|
-
[luxHintShowOnlyOnFocus]="hintShowOnlyOnFocus"
|
|
645
|
-
[luxDnDActive]="dndActive"
|
|
646
|
-
[luxSelectedFiles]="selected"
|
|
647
|
-
[luxContentsAsBlob]="contentAsBlob"
|
|
648
|
-
[luxUploadReportProgress]="reportProgress"
|
|
649
|
-
(luxSelectedFilesChange)="onSelectedChange($event)"
|
|
650
|
-
luxTest1="value1"
|
|
651
|
-
[luxTest2]="value2"
|
|
652
|
-
(luxTest3)="value3"
|
|
653
|
-
[(luxTest4)]="value4"
|
|
654
|
-
[(luxTest5)]=""
|
|
655
|
-
(luxFocusIn)="log(showOutputEvents, 'luxFocusIn', $event)"
|
|
656
|
-
(luxFocusOut)="log(showOutputEvents, 'luxFocusOut', $event)"
|
|
657
|
-
#testId
|
|
658
|
-
>
|
|
659
|
-
</lux-file-list>
|
|
660
|
-
</div>
|
|
661
|
-
`;
|
|
662
|
-
const templateNotProcessedAttr001 = `
|
|
663
|
-
<div><lux-card><lux-card-content>Lorem ipsum</lux-card-content></lux-card>
|
|
664
|
-
<lux-card luxTitle="Test">
|
|
665
|
-
<lux-card-content>
|
|
666
|
-
<p>Lorem ipsum</p>
|
|
667
|
-
<lux-card><lux-card-content>Lorem ipsum</lux-card-content></lux-card>
|
|
668
|
-
</lux-card-content>
|
|
669
|
-
</lux-card>
|
|
670
|
-
</div>
|
|
671
|
-
`;
|
|
672
|
-
const resultNotProcessedAttr001 = `
|
|
673
|
-
<div><lux-card ${html_manipulator_1.ATTR_NOT_PROCESSED}><lux-card-content>Lorem ipsum</lux-card-content></lux-card>
|
|
674
|
-
<lux-card ${html_manipulator_1.ATTR_NOT_PROCESSED} luxTitle="Test">
|
|
675
|
-
<lux-card-content>
|
|
676
|
-
<p>Lorem ipsum</p>
|
|
677
|
-
<lux-card ${html_manipulator_1.ATTR_NOT_PROCESSED}><lux-card-content>Lorem ipsum</lux-card-content></lux-card>
|
|
678
|
-
</lux-card-content>
|
|
679
|
-
</lux-card>
|
|
680
|
-
</div>
|
|
681
|
-
`;
|
|
682
|
-
const templateCount001 = `
|
|
683
|
-
<div><lux-card><lux-card-content>Lorem ipsum</lux-card-content></lux-card>
|
|
684
|
-
<lux-card luxTitle="Test">
|
|
685
|
-
<lux-card-content>
|
|
686
|
-
<p>Lorem ipsum</p>
|
|
687
|
-
<lux-card><lux-card-content>Lorem ipsum</lux-card-content></lux-card>
|
|
688
|
-
</lux-card-content>
|
|
689
|
-
</lux-card>
|
|
690
|
-
</div>
|
|
691
|
-
`;
|
|
692
|
-
//# sourceMappingURL=html_spec.js.map
|