@abp/ng.schematics 6.0.0 → 7.0.0-rc.1

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/collection.json CHANGED
@@ -29,6 +29,12 @@
29
29
  "description": "ABP Create Library Schematics",
30
30
  "factory": "./commands/create-lib",
31
31
  "schema": "./commands/create-lib/schema.json"
32
+ },
33
+ "change-theme": {
34
+ "description": "ABP Change Styles of Theme Schematics",
35
+ "factory": "./commands/change-theme",
36
+ "schema": "./commands/change-theme/schema.json"
37
+
32
38
  }
33
39
  }
34
40
  }
@@ -0,0 +1,8 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { ProjectDefinition } from '@angular-devkit/core/src/workspace';
3
+ import { JsonValue } from '@angular-devkit/core';
4
+ import { ChangeThemeOptions } from './model';
5
+ export default function (_options: ChangeThemeOptions): Rule;
6
+ export declare function getProjectTargetOptions(project: ProjectDefinition, buildTarget: string): Record<string, JsonValue | undefined>;
7
+ export declare function removeThemeBasedStyles(styles: (string | object)[]): (string | object)[];
8
+ export declare const styleCompareFn: (item1: string | object, item2: string | object) => boolean | "" | undefined;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styleCompareFn = exports.removeThemeBasedStyles = exports.getProjectTargetOptions = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const utils_1 = require("../../utils");
6
+ const style_map_1 = require("./style-map");
7
+ function default_1(_options) {
8
+ return async (_, __) => {
9
+ const targetThemeName = _options.name;
10
+ const selectedProject = _options.targetProject;
11
+ if (!targetThemeName) {
12
+ throw new schematics_1.SchematicsException('The theme name does not selected');
13
+ }
14
+ return (0, utils_1.updateWorkspace)(storedWorkspace => {
15
+ updateProjectStyle(selectedProject, storedWorkspace, targetThemeName);
16
+ });
17
+ };
18
+ }
19
+ exports.default = default_1;
20
+ function updateProjectStyle(projectName, workspace, targetThemeName) {
21
+ const project = workspace.projects.get(projectName);
22
+ if (!project) {
23
+ throw new schematics_1.SchematicsException('The target project does not selected');
24
+ }
25
+ const isProjectLibrary = (0, utils_1.isLibrary)(project);
26
+ if (isProjectLibrary) {
27
+ throw new schematics_1.SchematicsException('The library project does not supported');
28
+ }
29
+ const targetOption = getProjectTargetOptions(project, 'build');
30
+ const styles = targetOption.styles;
31
+ const sanitizedStyles = removeThemeBasedStyles(styles);
32
+ const newStyles = style_map_1.styleMap.get(targetThemeName);
33
+ if (!newStyles) {
34
+ throw new schematics_1.SchematicsException('The theme does not found');
35
+ }
36
+ targetOption.styles = [...newStyles, ...sanitizedStyles];
37
+ }
38
+ function getProjectTargetOptions(project, buildTarget) {
39
+ const options = project.targets?.get(buildTarget)?.options;
40
+ if (!options) {
41
+ throw new schematics_1.SchematicsException(`Cannot determine project target configuration for: ${buildTarget}.`);
42
+ }
43
+ return options;
44
+ }
45
+ exports.getProjectTargetOptions = getProjectTargetOptions;
46
+ function removeThemeBasedStyles(styles) {
47
+ return styles.filter(s => !style_map_1.allStyles.some(x => (0, exports.styleCompareFn)(s, x)));
48
+ }
49
+ exports.removeThemeBasedStyles = removeThemeBasedStyles;
50
+ const styleCompareFn = (item1, item2) => {
51
+ const type1 = typeof item1;
52
+ const type2 = typeof item1;
53
+ if (type1 !== type2) {
54
+ return false;
55
+ }
56
+ if (type1 === 'string') {
57
+ return item1 === item2;
58
+ }
59
+ const o1 = item1;
60
+ const o2 = item2;
61
+ return o1.bundleName && o2.bundleName && o1.bundleName == o2.bundleName;
62
+ };
63
+ exports.styleCompareFn = styleCompareFn;
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/commands/change-theme/index.ts"],"names":[],"mappings":";;;AAAA,2DAA+F;AAC/F,uCAA8E;AAC9E,2CAAkD;AAMlD,mBAAyB,QAA4B;IACnD,OAAO,KAAK,EAAE,CAAO,EAAE,EAAoB,EAAE,EAAE;QAC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,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAE3D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,gCAAmB,CAC3B,sDAAsD,WAAW,GAAG,CACrE,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAbD,0DAaC;AAED,SAAgB,sBAAsB,CAAC,MAA2B;IAChE,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,qBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,sBAAc,EAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACxE,CAAC;AAFD,wDAEC;AAEM,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAE,KAAsB,EAAE,EAAE;IAC/E,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC;IAC3B,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC;IAE3B,IAAI,KAAK,KAAK,KAAK,EAAE;QACnB,OAAO,KAAK,CAAC;KACd;IAED,IAAI,KAAK,KAAK,QAAQ,EAAE;QACtB,OAAO,KAAK,KAAK,KAAK,CAAC;KACxB;IACD,MAAM,EAAE,GAAG,KAAgC,CAAC;IAC5C,MAAM,EAAE,GAAG,KAAgC,CAAC;IAE5C,OAAO,EAAE,CAAC,UAAU,IAAI,EAAE,CAAC,UAAU,IAAI,EAAE,CAAC,UAAU,IAAI,EAAE,CAAC,UAAU,CAAC;AAC1E,CAAC,CAAC;AAfW,QAAA,cAAc,kBAezB"}
@@ -0,0 +1,5 @@
1
+ import { ThemeOptionsEnum } from './theme-options.enum';
2
+ export declare type ChangeThemeOptions = {
3
+ name: ThemeOptionsEnum;
4
+ targetProject: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/commands/change-theme/model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsABPThemeChanger",
4
+ "title": "ABP Theme Style Generator API Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "description": "The name of theme will change.",
9
+ "type": "number",
10
+ "$default": {
11
+ "$source": "argv",
12
+ "index": 0
13
+ },
14
+ "enum": [1, 2, 3, 4],
15
+ "x-prompt": {
16
+ "message": "Which theme would you like to use?",
17
+ "type": "list",
18
+ "items": [
19
+ { "value": 1, "label": "Basic" },
20
+ { "value": 2, "label": "Lepton" },
21
+ { "value": 3, "label": "LeptonXLite" },
22
+ { "value": 4, "label": "LeptonX" }
23
+ ]
24
+ }
25
+ },
26
+ "targetProject": {
27
+ "description": "The name of the project will change the style.The project type must be 'application'",
28
+ "type": "string",
29
+ "x-prompt": "Please enter the project name",
30
+ "$default": {
31
+ "$source": "argv",
32
+ "index": 1
33
+ }
34
+ }
35
+ },
36
+ "required": ["name"]
37
+ }
@@ -0,0 +1,8 @@
1
+ import { ThemeOptionsEnum } from './theme-options.enum';
2
+ export declare type StyleDefinition = {
3
+ input: string;
4
+ inject: boolean;
5
+ bundleName: string;
6
+ } | string;
7
+ export declare const styleMap: Map<ThemeOptionsEnum, StyleDefinition[]>;
8
+ export declare const allStyles: StyleDefinition[];
@@ -0,0 +1,216 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.allStyles = exports.styleMap = void 0;
4
+ const theme_options_enum_1 = require("./theme-options.enum");
5
+ exports.styleMap = new Map();
6
+ exports.styleMap.set(theme_options_enum_1.ThemeOptionsEnum.Basic, [
7
+ {
8
+ input: 'node_modules/bootstrap/dist/css/bootstrap.rtl.min.css',
9
+ inject: false,
10
+ bundleName: 'bootstrap-rtl.min',
11
+ },
12
+ {
13
+ input: 'node_modules/bootstrap/dist/css/bootstrap.min.css',
14
+ inject: true,
15
+ bundleName: 'bootstrap-ltr.min',
16
+ },
17
+ ]);
18
+ exports.styleMap.set(theme_options_enum_1.ThemeOptionsEnum.Lepton, [
19
+ {
20
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton1.min.css',
21
+ inject: false,
22
+ bundleName: 'lepton1',
23
+ },
24
+ {
25
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton2.min.css',
26
+ inject: false,
27
+ bundleName: 'lepton2',
28
+ },
29
+ {
30
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton3.min.css',
31
+ inject: false,
32
+ bundleName: 'lepton3',
33
+ },
34
+ {
35
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton4.min.css',
36
+ inject: false,
37
+ bundleName: 'lepton4',
38
+ },
39
+ {
40
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton5.min.css',
41
+ inject: false,
42
+ bundleName: 'lepton5',
43
+ },
44
+ {
45
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton6.min.css',
46
+ inject: false,
47
+ bundleName: 'lepton6',
48
+ },
49
+ {
50
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton1.rtl.min.css',
51
+ inject: false,
52
+ bundleName: 'lepton1.rtl',
53
+ },
54
+ {
55
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton2.rtl.min.css',
56
+ inject: false,
57
+ bundleName: 'lepton2.rtl',
58
+ },
59
+ {
60
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton3.rtl.min.css',
61
+ inject: false,
62
+ bundleName: 'lepton3.rtl',
63
+ },
64
+ {
65
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton4.rtl.min.css',
66
+ inject: false,
67
+ bundleName: 'lepton4.rtl',
68
+ },
69
+ {
70
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton5.rtl.min.css',
71
+ inject: false,
72
+ bundleName: 'lepton5.rtl',
73
+ },
74
+ {
75
+ input: 'node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton6.rtl.min.css',
76
+ inject: false,
77
+ bundleName: 'lepton6.rtl',
78
+ },
79
+ ]);
80
+ exports.styleMap.set(theme_options_enum_1.ThemeOptionsEnum.LeptonX, [
81
+ {
82
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/dark.css',
83
+ inject: false,
84
+ bundleName: 'dark',
85
+ },
86
+ {
87
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/light.css',
88
+ inject: false,
89
+ bundleName: 'light',
90
+ },
91
+ {
92
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/dim.css',
93
+ inject: false,
94
+ bundleName: 'dim',
95
+ },
96
+ {
97
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/bootstrap-dim.css',
98
+ inject: false,
99
+ bundleName: 'bootstrap-dim',
100
+ },
101
+ {
102
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/bootstrap-dark.css',
103
+ inject: false,
104
+ bundleName: 'bootstrap-dark',
105
+ },
106
+ {
107
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/bootstrap-light.css',
108
+ inject: false,
109
+ bundleName: 'bootstrap-light',
110
+ },
111
+ {
112
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/ng-bundle.css',
113
+ inject: false,
114
+ bundleName: 'ng-bundle',
115
+ },
116
+ {
117
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/side-menu/layout-bundle.css',
118
+ inject: false,
119
+ bundleName: 'layout-bundle',
120
+ },
121
+ {
122
+ input: 'node_modules/@volosoft/abp.ng.theme.lepton-x/assets/css/abp-bundle.css',
123
+ inject: false,
124
+ bundleName: 'abp-bundle',
125
+ },
126
+ {
127
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/dark.rtl.css',
128
+ inject: false,
129
+ bundleName: 'dark.rtl',
130
+ },
131
+ {
132
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/light.rtl.css',
133
+ inject: false,
134
+ bundleName: 'light.rtl',
135
+ },
136
+ {
137
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/dim.rtl.css',
138
+ inject: false,
139
+ bundleName: 'dim.rtl',
140
+ },
141
+ {
142
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/bootstrap-dim.rtl.css',
143
+ inject: false,
144
+ bundleName: 'bootstrap-dim.rtl',
145
+ },
146
+ {
147
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/bootstrap-dark.rtl.css',
148
+ inject: false,
149
+ bundleName: 'bootstrap-dark.rtl',
150
+ },
151
+ {
152
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/bootstrap-light.rtl.css',
153
+ inject: false,
154
+ bundleName: 'bootstrap-light.rtl',
155
+ },
156
+ {
157
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/ng-bundle.rtl.css',
158
+ inject: false,
159
+ bundleName: 'ng-bundle.rtl',
160
+ },
161
+ {
162
+ input: 'node_modules/@volosoft/ngx-lepton-x/assets/css/side-menu/layout-bundle.rtl.css',
163
+ inject: false,
164
+ bundleName: 'layout-bundle.rtl',
165
+ },
166
+ {
167
+ input: 'node_modules/@volosoft/abp.ng.theme.lepton-x/assets/css/abp-bundle.rtl.css',
168
+ inject: false,
169
+ bundleName: 'abp-bundle.rtl',
170
+ },
171
+ ]);
172
+ exports.styleMap.set(theme_options_enum_1.ThemeOptionsEnum.LeptonXLite, [
173
+ {
174
+ input: 'node_modules/@volo/ngx-lepton-x.lite/assets/css/bootstrap-dim.css',
175
+ inject: false,
176
+ bundleName: 'bootstrap-dim',
177
+ },
178
+ {
179
+ input: 'node_modules/@volo/ngx-lepton-x.lite/assets/css/ng-bundle.css',
180
+ inject: false,
181
+ bundleName: 'ng-bundle',
182
+ },
183
+ {
184
+ input: 'node_modules/@volo/ngx-lepton-x.lite/assets/css/side-menu/layout-bundle.css',
185
+ inject: false,
186
+ bundleName: 'layout-bundle',
187
+ },
188
+ {
189
+ input: 'node_modules/@abp/ng.theme.lepton-x/assets/css/abp-bundle.css',
190
+ inject: false,
191
+ bundleName: 'abp-bundle',
192
+ },
193
+ {
194
+ input: 'node_modules/@volo/ngx-lepton-x.lite/assets/css/bootstrap-dim.rtl.css',
195
+ inject: false,
196
+ bundleName: 'bootstrap-dim.rtl',
197
+ },
198
+ {
199
+ input: 'node_modules/@volo/ngx-lepton-x.lite/assets/css/ng-bundle.rtl.css',
200
+ inject: false,
201
+ bundleName: 'ng-bundle.rtl',
202
+ },
203
+ {
204
+ input: 'node_modules/@volo/ngx-lepton-x.lite/assets/css/side-menu/layout-bundle.rtl.css',
205
+ inject: false,
206
+ bundleName: 'layout-bundle.rtl',
207
+ },
208
+ {
209
+ input: 'node_modules/@abp/ng.theme.lepton-x/assets/css/abp-bundle.rtl.css',
210
+ inject: false,
211
+ bundleName: 'abp-bundle.rtl',
212
+ },
213
+ ]);
214
+ // the code written by Github co-pilot. thank go-pilot. You are the best sidekick.
215
+ exports.allStyles = Array.from(exports.styleMap.values()).reduce((acc, val) => [...acc, ...val], []);
216
+ //# sourceMappingURL=style-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-map.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/commands/change-theme/style-map.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AAU3C,QAAA,QAAQ,GAAG,IAAI,GAAG,EAAuC,CAAC;AAEvE,gBAAQ,CAAC,GAAG,CAAC,qCAAgB,CAAC,KAAK,EAAE;IACnC;QACE,KAAK,EAAE,uDAAuD;QAC9D,MAAM,EAAE,KAAK;QACb,UAAU,EAAE,mBAAmB;KAChC;IACD;QACE,KAAK,EAAE,mDAAmD;QAC1D,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,mBAAmB;KAChC;CACF,CAAC,CA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ThemeOptionsEnum {
2
+ Basic = 1,
3
+ Lepton = 2,
4
+ LeptonXLite = 3,
5
+ LeptonX = 4
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // this enum create by https://raw.githubusercontent.com/abpframework/abp/rel-6.0/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Theme.cs
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ThemeOptionsEnum = void 0;
5
+ var ThemeOptionsEnum;
6
+ (function (ThemeOptionsEnum) {
7
+ ThemeOptionsEnum[ThemeOptionsEnum["Basic"] = 1] = "Basic";
8
+ ThemeOptionsEnum[ThemeOptionsEnum["Lepton"] = 2] = "Lepton";
9
+ ThemeOptionsEnum[ThemeOptionsEnum["LeptonXLite"] = 3] = "LeptonXLite";
10
+ ThemeOptionsEnum[ThemeOptionsEnum["LeptonX"] = 4] = "LeptonX";
11
+ })(ThemeOptionsEnum = exports.ThemeOptionsEnum || (exports.ThemeOptionsEnum = {}));
12
+ //# sourceMappingURL=theme-options.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-options.enum.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/commands/change-theme/theme-options.enum.ts"],"names":[],"mappings":";AAAA,gKAAgK;;;AAEhK,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,yDAAS,CAAA;IACT,2DAAU,CAAA;IACV,qEAAe,CAAA;IACf,6DAAW,CAAA;AACb,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abp/ng.schematics",
3
- "version": "6.0.0",
3
+ "version": "7.0.0-rc.1",
4
4
  "description": "Schematics that works with ABP Backend",
5
5
  "keywords": [
6
6
  "schematics"