@design-factory/design-factory 21.0.0-next.0 → 21.0.0-next.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@design-factory/design-factory",
3
3
  "description": "Amadeus design system",
4
4
  "license": "BSD-3-Clause",
5
- "version": "21.0.0-next.0",
5
+ "version": "21.0.0-next.1",
6
6
  "dependencies": {
7
7
  "tslib": "^2.0.0"
8
8
  },
@@ -17,12 +17,10 @@
17
17
  "@ng-bootstrap/ng-bootstrap": "~20.0.0",
18
18
  "@ng-select/ng-select": "^21.0.0",
19
19
  "ag-grid-angular": "^35.0.0",
20
- "@design-factory/styles": "21.0.0-next.0"
20
+ "ag-grid-community": "^35.0.0",
21
+ "@design-factory/styles": "21.0.0-next.1"
21
22
  },
22
23
  "peerDependenciesMeta": {
23
- "@angular/router": {
24
- "optional": true
25
- },
26
24
  "ag-grid-angular": {
27
25
  "optional": true
28
26
  },
@@ -43,7 +43,7 @@ function stepperClassesUpdate() {
43
43
  const basePath = process.cwd();
44
44
  const allPaths = [...buildPaths, ...testPaths];
45
45
  if (!allPaths.length) {
46
- throw new schematics_1.SchematicsException('Could not find any tsconfig file. Cannot run the `NavbarUpdate` migration.');
46
+ throw new schematics_1.SchematicsException('Could not find any tsconfig file. Cannot run the `StepperClassesUpdate` migration.');
47
47
  }
48
48
  const templateUpdater = new template_updater_1.TemplateUpdater(tree, replaceHtmlContent);
49
49
  for (const tsconfigPath of allPaths) {
@@ -0,0 +1,6 @@
1
+ import { type Rule } from '@angular-devkit/schematics';
2
+ /**
3
+ * This migration updates templates to replace the deprecated `df-table-white-header` class with `df-table-neutral-alt-header`.
4
+ * @returns the Rule to migrate the modal removal
5
+ */
6
+ export default function agGridZebraWhiteHeaderReplacement(): Rule;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = agGridZebraWhiteHeaderReplacement;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const project_tsconfig_paths_1 = require("../../utils/project_tsconfig_paths");
6
+ const compiler_host_1 = require("../../utils/typescript/compiler_host");
7
+ const template_updater_1 = require("../../utils/template-updater");
8
+ const regexOldClass = /df-table-white-header/g;
9
+ const newClass = 'df-table-neutral-alt-header';
10
+ /**
11
+ * This migration updates templates to replace the deprecated `df-table-white-header` class with `df-table-neutral-alt-header`.
12
+ * @returns the Rule to migrate the modal removal
13
+ */
14
+ function agGridZebraWhiteHeaderReplacement() {
15
+ return async (tree) => {
16
+ const { buildPaths, testPaths } = await (0, project_tsconfig_paths_1.getProjectTsConfigPaths)(tree);
17
+ const basePath = process.cwd();
18
+ const allPaths = [...buildPaths, ...testPaths];
19
+ if (!allPaths.length) {
20
+ throw new schematics_1.SchematicsException('Could not find any tsconfig file. Cannot run the `AgGrid Zebra White Header` migration.');
21
+ }
22
+ const templateUpdater = new template_updater_1.TemplateUpdater(tree, (text) => text.replace(regexOldClass, newClass));
23
+ for (const tsconfigPath of allPaths) {
24
+ const program = (0, compiler_host_1.createMigrationProgram)(tree, tsconfigPath, basePath);
25
+ const sourceFiles = program
26
+ .getSourceFiles()
27
+ .filter((sourceFile) => (0, compiler_host_1.canMigrateFile)(basePath, sourceFile, program));
28
+ for (const sourceFile of sourceFiles) {
29
+ templateUpdater.update(sourceFile, program.getTypeChecker());
30
+ }
31
+ }
32
+ };
33
+ }
@@ -0,0 +1,53 @@
1
+ [
2
+ "$blues-mapping",
3
+ "$chromatics1-mapping",
4
+ "$chromatics2-mapping",
5
+ "$cyans-mapping",
6
+ "$danger-mirror-mapping",
7
+ "$dangers-mapping",
8
+ "$dark-green",
9
+ "$dark-primaries-mapping",
10
+ "$dark-primary",
11
+ "$darks-mapping",
12
+ "$df-colors-transformed",
13
+ "$df-lightMappedColors",
14
+ "$df-solidMappedColors",
15
+ "$df-size-ratios",
16
+ "$df-sizing-ratios",
17
+ "$df-size-ratios-font-body",
18
+ "$df-stepper-steps-colors",
19
+ "$df-switch-additional-color-list",
20
+ "$df-link-external-icon",
21
+ "$gradients",
22
+ "$grays-mapping",
23
+ "$grays-names",
24
+ "$greens-mapping",
25
+ "$indigos-mapping",
26
+ "$infos-mapping",
27
+ "$lights-mapping",
28
+ "$links-mapping",
29
+ "$loves-mapping",
30
+ "$mapped-theme-colors",
31
+ "$mysteries-mapping",
32
+ "$neutrals-mapping",
33
+ "$oranges-mapping",
34
+ "$pacifics-mapping",
35
+ "$pinks-mapping",
36
+ "$primaries-mapping",
37
+ "$primaries-mirror-mapping",
38
+ "$purples-mapping",
39
+ "$reds-mapping",
40
+ "$secondaries-mapping",
41
+ "$secondaries-mirror-mapping",
42
+ "$shade-colors",
43
+ "$shade-colors-rgb",
44
+ "$shade-colors-text",
45
+ "$shade-colors-text-rgb",
46
+ "$shade-maps",
47
+ "$successes-mapping",
48
+ "$teals-mapping",
49
+ "$tips-mapping",
50
+ "$warnings-mapping",
51
+ "$whites-mapping",
52
+ "$yellows-mapping"
53
+ ]