@skyux/packages 12.22.0 → 13.0.0-alpha.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.
Files changed (60) hide show
  1. package/collection.json +0 -10
  2. package/package.json +62 -62
  3. package/src/schematics/ag-grid-migrate/ag-grid-migrate.schematic.js +1 -1
  4. package/src/schematics/migrations/migration-collection.json +7 -47
  5. package/src/schematics/migrations/{update-12 → update-13}/i18n-resources-module/i18n-resources-module.schematic.js.map +1 -1
  6. package/src/schematics/migrations/{update-12 → update-13}/remove-old-compat-stylesheets/remove-old-compat-stylesheets.schematic.js.map +1 -1
  7. package/src/schematics/migrations/{update-12 → update-13}/workspace-check/workspace-check.schematic.js.map +1 -1
  8. package/src/schematics/rules/add-ag-grid-styles-config.js +3 -1
  9. package/src/schematics/rules/add-ag-grid-styles-config.js.map +1 -1
  10. package/src/schematics/rules/add-commonjs-config.js +1 -0
  11. package/src/schematics/rules/add-commonjs-config.js.map +1 -1
  12. package/src/schematics/rules/add-polyfills-config.js +29 -17
  13. package/src/schematics/rules/add-polyfills-config.js.map +1 -1
  14. package/src/schematics/utility/tree.js +2 -3
  15. package/src/schematics/utility/tree.js.map +1 -1
  16. package/src/version.js +1 -1
  17. package/src/schematics/migrations/update-12/ag-grid/ag-grid.schematic.d.ts +0 -5
  18. package/src/schematics/migrations/update-12/ag-grid/ag-grid.schematic.js +0 -164
  19. package/src/schematics/migrations/update-12/ag-grid/ag-grid.schematic.js.map +0 -1
  20. package/src/schematics/migrations/update-12/ag-grid/schema.json +0 -5
  21. package/src/schematics/migrations/update-12/axe-core/axe-core.schematic.d.ts +0 -7
  22. package/src/schematics/migrations/update-12/axe-core/axe-core.schematic.js +0 -29
  23. package/src/schematics/migrations/update-12/axe-core/axe-core.schematic.js.map +0 -1
  24. package/src/schematics/migrations/update-12/help-inline-import-path/help-inline-import-path.schematic.d.ts +0 -2
  25. package/src/schematics/migrations/update-12/help-inline-import-path/help-inline-import-path.schematic.js +0 -26
  26. package/src/schematics/migrations/update-12/help-inline-import-path/help-inline-import-path.schematic.js.map +0 -1
  27. package/src/schematics/migrations/update-12/icon-name/icon-name-mappings.d.ts +0 -11
  28. package/src/schematics/migrations/update-12/icon-name/icon-name-mappings.js +0 -319
  29. package/src/schematics/migrations/update-12/icon-name/icon-name-mappings.js.map +0 -1
  30. package/src/schematics/migrations/update-12/icon-name/icon-name.schematic.d.ts +0 -5
  31. package/src/schematics/migrations/update-12/icon-name/icon-name.schematic.js +0 -70
  32. package/src/schematics/migrations/update-12/icon-name/icon-name.schematic.js.map +0 -1
  33. package/src/schematics/migrations/update-12/icons-migration/icons-migration.schematic.d.ts +0 -2
  34. package/src/schematics/migrations/update-12/icons-migration/icons-migration.schematic.js +0 -42
  35. package/src/schematics/migrations/update-12/icons-migration/icons-migration.schematic.js.map +0 -1
  36. package/src/schematics/migrations/update-12/icons-size/icons-size.schematic.d.ts +0 -5
  37. package/src/schematics/migrations/update-12/icons-size/icons-size.schematic.js +0 -32
  38. package/src/schematics/migrations/update-12/icons-size/icons-size.schematic.js.map +0 -1
  39. package/src/schematics/migrations/update-12/remove-angular-eslint-prefer-standalone-component/remove-angular-eslint-prefer-standalone-component.schematic.d.ts +0 -2
  40. package/src/schematics/migrations/update-12/remove-angular-eslint-prefer-standalone-component/remove-angular-eslint-prefer-standalone-component.schematic.js +0 -10
  41. package/src/schematics/migrations/update-12/remove-angular-eslint-prefer-standalone-component/remove-angular-eslint-prefer-standalone-component.schematic.js.map +0 -1
  42. package/src/schematics/migrations/update-12/remove-nx-cache/remove-nx-cache.schematic.d.ts +0 -2
  43. package/src/schematics/migrations/update-12/remove-nx-cache/remove-nx-cache.schematic.js +0 -12
  44. package/src/schematics/migrations/update-12/remove-nx-cache/remove-nx-cache.schematic.js.map +0 -1
  45. package/src/schematics/ng-generate/remove-nx-cache/remove-nx-cache.schematic.d.ts +0 -2
  46. package/src/schematics/ng-generate/remove-nx-cache/remove-nx-cache.schematic.js +0 -12
  47. package/src/schematics/ng-generate/remove-nx-cache/remove-nx-cache.schematic.js.map +0 -1
  48. package/src/schematics/ng-generate/remove-nx-cache/schema.json +0 -5
  49. package/src/schematics/rules/remove-eslint-disable-comment/remove-eslint-disable-comment.d.ts +0 -6
  50. package/src/schematics/rules/remove-eslint-disable-comment/remove-eslint-disable-comment.js +0 -53
  51. package/src/schematics/rules/remove-eslint-disable-comment/remove-eslint-disable-comment.js.map +0 -1
  52. package/src/schematics/rules/remove-nx-cache/remove-nx-cache.d.ts +0 -6
  53. package/src/schematics/rules/remove-nx-cache/remove-nx-cache.js +0 -36
  54. package/src/schematics/rules/remove-nx-cache/remove-nx-cache.js.map +0 -1
  55. /package/src/schematics/migrations/{update-12 → update-13}/i18n-resources-module/i18n-resources-module.schematic.d.ts +0 -0
  56. /package/src/schematics/migrations/{update-12 → update-13}/i18n-resources-module/i18n-resources-module.schematic.js +0 -0
  57. /package/src/schematics/migrations/{update-12 → update-13}/remove-old-compat-stylesheets/remove-old-compat-stylesheets.schematic.d.ts +0 -0
  58. /package/src/schematics/migrations/{update-12 → update-13}/remove-old-compat-stylesheets/remove-old-compat-stylesheets.schematic.js +0 -0
  59. /package/src/schematics/migrations/{update-12 → update-13}/workspace-check/workspace-check.schematic.d.ts +0 -0
  60. /package/src/schematics/migrations/{update-12 → update-13}/workspace-check/workspace-check.schematic.js +0 -0
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = removeAngularEslintPreferStandaloneComponent;
4
- const remove_eslint_disable_comment_1 = require("../../../rules/remove-eslint-disable-comment/remove-eslint-disable-comment");
5
- function removeAngularEslintPreferStandaloneComponent() {
6
- return (0, remove_eslint_disable_comment_1.removeEslintDisableComment)({
7
- ruleNames: ['@angular-eslint/prefer-standalone-component'],
8
- });
9
- }
10
- //# sourceMappingURL=remove-angular-eslint-prefer-standalone-component.schematic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-angular-eslint-prefer-standalone-component.schematic.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/packages/src/schematics/migrations/update-12/remove-angular-eslint-prefer-standalone-component/remove-angular-eslint-prefer-standalone-component.schematic.ts"],"names":[],"mappings":";;AAIA,+DAIC;AAND,8HAAwH;AAExH,SAAwB,4CAA4C;IAClE,OAAO,IAAA,0DAA0B,EAAC;QAChC,SAAS,EAAE,CAAC,6CAA6C,CAAC;KAC3D,CAAC,CAAC;AACL,CAAC"}
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (): Rule;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = default_1;
4
- const remove_nx_cache_1 = require("../../../rules/remove-nx-cache/remove-nx-cache");
5
- function default_1() {
6
- return () => {
7
- return (0, remove_nx_cache_1.removeNxCache)({
8
- rootDir: '.',
9
- });
10
- };
11
- }
12
- //# sourceMappingURL=remove-nx-cache.schematic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-nx-cache.schematic.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/packages/src/schematics/migrations/update-12/remove-nx-cache/remove-nx-cache.schematic.ts"],"names":[],"mappings":";;AAIA,4BAMC;AARD,oFAA+E;AAE/E;IACE,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,+BAAa,EAAC;YACnB,OAAO,EAAE,GAAG;SACb,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (): Rule;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = default_1;
4
- const remove_nx_cache_1 = require("../../rules/remove-nx-cache/remove-nx-cache");
5
- function default_1() {
6
- return () => {
7
- return (0, remove_nx_cache_1.removeNxCache)({
8
- rootDir: '.',
9
- });
10
- };
11
- }
12
- //# sourceMappingURL=remove-nx-cache.schematic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-nx-cache.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/ng-generate/remove-nx-cache/remove-nx-cache.schematic.ts"],"names":[],"mappings":";;AAIA,4BAMC;AARD,iFAA4E;AAE5E;IACE,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,+BAAa,EAAC;YACnB,OAAO,EAAE,GAAG;SACb,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "type": "object",
4
- "properties": {}
5
- }
@@ -1,6 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics/src/tree/interface';
2
- interface Options {
3
- ruleNames: string[];
4
- }
5
- export declare function removeEslintDisableComment(options: Options): (tree: Tree) => void;
6
- export {};
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeEslintDisableComment = removeEslintDisableComment;
4
- const visit_project_files_1 = require("../../utility/visit-project-files");
5
- function removeComments(content, ruleNames, recorder, commentStartsWith, commentEndsWith) {
6
- let nextComment = -1;
7
- let nextCommentOffset = 0;
8
- while ((nextComment = content.indexOf(commentStartsWith, nextCommentOffset)) > -1) {
9
- const valueStart = content.indexOf(' ', nextComment + commentStartsWith.length);
10
- nextCommentOffset = content.indexOf(commentEndsWith, valueStart);
11
- const values = content
12
- .substring(valueStart + 1, nextCommentOffset)
13
- .split(/, */)
14
- .map((v) => v.trim())
15
- .filter(Boolean)
16
- .sort((a, b) => a.localeCompare(b));
17
- if (values.every((value) => ruleNames.includes(value))) {
18
- // Remove the whole comment.
19
- recorder.remove(nextComment, nextCommentOffset - nextComment + commentEndsWith.trim().length);
20
- if (content.charAt(nextComment - 1) === ' ') {
21
- recorder.remove(nextComment - 1, 1);
22
- }
23
- }
24
- else if (ruleNames.some((ruleName) => values.includes(ruleName))) {
25
- // Update the comment.
26
- recorder.remove(valueStart + 1, nextCommentOffset - valueStart - commentEndsWith.length);
27
- const newValue = values.filter((v) => !ruleNames.includes(v)).join(', ');
28
- recorder.insertLeft(valueStart + 1, newValue);
29
- }
30
- }
31
- }
32
- function removeEslintDisableComment(options) {
33
- return (tree) => {
34
- const ruleNames = options.ruleNames
35
- .map((ruleName) => ruleName.trim())
36
- .filter(Boolean)
37
- .sort((a, b) => a.localeCompare(b));
38
- (0, visit_project_files_1.visitProjectFiles)(tree, '', (filePath) => {
39
- if (!filePath.endsWith('.ts')) {
40
- return;
41
- }
42
- const content = tree.readText(filePath);
43
- if (content.includes('eslint-disable') &&
44
- ruleNames.some((ruleName) => content.includes(ruleName))) {
45
- const recorder = tree.beginUpdate(filePath);
46
- removeComments(content, ruleNames, recorder, '// eslint-disable', `\n`);
47
- removeComments(content, ruleNames, recorder, '/* eslint-disable', '*/');
48
- tree.commitUpdate(recorder);
49
- }
50
- });
51
- };
52
- }
53
- //# sourceMappingURL=remove-eslint-disable-comment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-eslint-disable-comment.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/rules/remove-eslint-disable-comment/remove-eslint-disable-comment.ts"],"names":[],"mappings":";;AAqDA,gEA0BC;AA5ED,2EAAsE;AAMtE,SAAS,cAAc,CACrB,OAAe,EACf,SAAmB,EACnB,QAAwB,EACxB,iBAAyB,EACzB,eAAuB;IAEvB,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,OACE,CAAC,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,EAC1E,CAAC;QACD,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAChC,GAAG,EACH,WAAW,GAAG,iBAAiB,CAAC,MAAM,CACvC,CAAC;QACF,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,EAA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face RemoveNxCacheOptions {
3
- rootDir: string;
4
- }
5
- export declare function removeNxCache(options: RemoveNxCacheOptions): Rule;
6
- export {};
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeNxCache = removeNxCache;
4
- const schematics_1 = require("@angular-devkit/schematics");
5
- const child_process_1 = require("child_process");
6
- function isGitPath(path) {
7
- try {
8
- (0, child_process_1.spawnSync)('git', ['-C', path, 'rev-parse', '--quiet', '--verify', 'HEAD'], {
9
- stdio: 'ignore',
10
- });
11
- return true;
12
- }
13
- catch (e) {
14
- return false;
15
- }
16
- }
17
- function removeNxCache(options) {
18
- return (tree) => {
19
- if (schematics_1.HostTree.isHostTree(tree) && isGitPath(options.rootDir)) {
20
- (0, child_process_1.spawnSync)('git', ['-C', options.rootDir, 'rm', '-rf', '--cached', '--quiet', '.nx'], {
21
- stdio: 'ignore',
22
- });
23
- }
24
- const gitIgnore = tree.readText('.gitignore');
25
- const ignoreStatement = gitIgnore?.match(/^(\/?\.nx)\/cache$/m);
26
- const recorder = tree.beginUpdate('.gitignore');
27
- if (ignoreStatement?.index !== undefined) {
28
- recorder.remove(ignoreStatement.index + ignoreStatement[1].length, 6);
29
- }
30
- else if (!gitIgnore?.match(/^\/?\.nx$/m)) {
31
- recorder.insertLeft(0, `# Ignore cache directory used by @angular-eslint/builder\n/.nx\n\n`);
32
- }
33
- tree.commitUpdate(recorder);
34
- };
35
- }
36
- //# sourceMappingURL=remove-nx-cache.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-nx-cache.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/rules/remove-nx-cache/remove-nx-cache.ts"],"names":[],"mappings":";;AAmBA,sCAwBC;AA3CD,2DAAkE;AAElE,iDAA0C;AAM1C,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,CAAC;QACH,IAAA,yBAAS,EAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,WAA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