@fundamental-ngx/core 0.35.4-rc.7 → 0.35.4-rc.8

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 (123) hide show
  1. package/action-bar/package.json +1 -1
  2. package/action-sheet/package.json +1 -1
  3. package/alert/package.json +1 -1
  4. package/avatar/package.json +1 -1
  5. package/avatar-group/package.json +1 -1
  6. package/bar/package.json +1 -1
  7. package/breadcrumb/package.json +1 -1
  8. package/busy-indicator/package.json +1 -1
  9. package/button/package.json +1 -1
  10. package/calendar/package.json +1 -1
  11. package/card/package.json +1 -1
  12. package/carousel/package.json +1 -1
  13. package/checkbox/package.json +1 -1
  14. package/combobox/package.json +1 -1
  15. package/content-density/package.json +3 -3
  16. package/date-picker/package.json +1 -1
  17. package/datetime/package.json +1 -1
  18. package/datetime-picker/package.json +1 -1
  19. package/dialog/package.json +1 -1
  20. package/dynamic-page/package.json +1 -1
  21. package/dynamic-side-content/package.json +1 -1
  22. package/facets/package.json +1 -1
  23. package/feed-input/package.json +1 -1
  24. package/feed-list-item/package.json +1 -1
  25. package/file-uploader/package.json +1 -1
  26. package/fixed-card-layout/package.json +1 -1
  27. package/flexible-column-layout/package.json +1 -1
  28. package/form/package.json +1 -1
  29. package/formatted-text/package.json +1 -1
  30. package/grid-list/package.json +1 -1
  31. package/icon/package.json +1 -1
  32. package/illustrated-message/package.json +1 -1
  33. package/infinite-scroll/package.json +1 -1
  34. package/info-label/package.json +1 -1
  35. package/inline-help/package.json +1 -1
  36. package/input-group/package.json +1 -1
  37. package/layout-grid/package.json +1 -1
  38. package/layout-panel/package.json +1 -1
  39. package/link/package.json +1 -1
  40. package/list/package.json +1 -1
  41. package/menu/package.json +1 -1
  42. package/message-box/package.json +1 -1
  43. package/message-strip/package.json +1 -1
  44. package/message-toast/package.json +1 -1
  45. package/micro-process-flow/package.json +1 -1
  46. package/mobile-mode/package.json +1 -1
  47. package/multi-input/package.json +1 -1
  48. package/nested-list/package.json +1 -1
  49. package/notification/package.json +1 -1
  50. package/object-identifier/package.json +1 -1
  51. package/object-marker/package.json +1 -1
  52. package/object-number/package.json +1 -1
  53. package/object-status/package.json +1 -1
  54. package/overflow-layout/package.json +13 -13
  55. package/package.json +13 -26
  56. package/pagination/package.json +1 -1
  57. package/panel/package.json +1 -1
  58. package/popover/package.json +1 -1
  59. package/product-switch/package.json +1 -1
  60. package/progress-indicator/package.json +1 -1
  61. package/quick-view/package.json +1 -1
  62. package/radio/package.json +1 -1
  63. package/rating-indicator/package.json +1 -1
  64. package/resizable-card-layout/package.json +1 -1
  65. package/schematics/add-animations/index.d.ts +1 -0
  66. package/schematics/add-animations/index.js +42 -0
  67. package/schematics/add-animations/index.js.map +1 -0
  68. package/schematics/collection.json +9 -0
  69. package/schematics/migrations/migrate-theme-fonts/index.d.ts +2 -0
  70. package/schematics/migrations/migrate-theme-fonts/index.js +85 -0
  71. package/schematics/migrations/migrate-theme-fonts/index.js.map +1 -0
  72. package/schematics/migrations/migrate-theme-fonts/schema.d.ts +4 -0
  73. package/schematics/migrations/migrate-theme-fonts/schema.js +3 -0
  74. package/schematics/migrations/migrate-theme-fonts/schema.js.map +1 -0
  75. package/schematics/migrations/migrate-theme-fonts/schema.json +21 -0
  76. package/schematics/migrations/migrate-theme-fonts/styles.d.ts +2 -0
  77. package/schematics/migrations/migrate-theme-fonts/styles.js +20 -0
  78. package/schematics/migrations/migrate-theme-fonts/styles.js.map +1 -0
  79. package/schematics/ng-add/index.js +168 -198
  80. package/schematics/ng-add/index.js.map +1 -1
  81. package/schematics/ng-add/schema.d.ts +1 -1
  82. package/schematics/ng-add/schema.json +6 -6
  83. package/schematics/ng-add/styles.d.ts +4 -0
  84. package/{assets/fundamental-ngx-core-fonts.scss → schematics/ng-add/styles.js} +20 -10
  85. package/schematics/ng-add/styles.js.map +1 -0
  86. package/schematics/utils/file-utils.js +1 -1
  87. package/schematics/utils/file-utils.js.map +1 -1
  88. package/scroll-spy/package.json +1 -1
  89. package/scrollbar/package.json +1 -1
  90. package/segmented-button/package.json +1 -1
  91. package/select/package.json +1 -1
  92. package/shared/package.json +1 -1
  93. package/shellbar/package.json +1 -1
  94. package/side-navigation/package.json +1 -1
  95. package/slider/package.json +1 -1
  96. package/split-button/package.json +1 -1
  97. package/splitter/package.json +1 -1
  98. package/status-indicator/package.json +1 -1
  99. package/step-input/package.json +1 -1
  100. package/switch/package.json +1 -1
  101. package/table/package.json +1 -1
  102. package/tabs/package.json +1 -1
  103. package/text/package.json +1 -1
  104. package/theming/package.json +1 -1
  105. package/tile/package.json +1 -1
  106. package/time/package.json +1 -1
  107. package/time-picker/package.json +1 -1
  108. package/timeline/package.json +1 -1
  109. package/title/package.json +1 -1
  110. package/token/package.json +1 -1
  111. package/toolbar/package.json +1 -1
  112. package/tree/package.json +1 -1
  113. package/upload-collection/package.json +1 -1
  114. package/utils/package.json +1 -1
  115. package/vertical-navigation/package.json +1 -1
  116. package/wizard/package.json +1 -1
  117. package/assets/fonts/sap_fiori_3_fonts.css +0 -6
  118. package/assets/fonts/sap_horizon_fonts.css +0 -6
  119. package/assets/fundamental-ngx-core.scss +0 -1
  120. package/schematics/migrations/migration-0.36/index.d.ts +0 -2
  121. package/schematics/migrations/migration-0.36/index.js +0 -113
  122. package/schematics/migrations/migration-0.36/index.js.map +0 -1
  123. package/schematics/migrations.json +0 -9
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/panel",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/popover",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/product-switch",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/progress-indicator",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~12.0.5",
6
6
  "@angular/core": "~12.0.5"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/quick-view",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/radio",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/rating-indicator",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/resizable-card-layout",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4-rc.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"
@@ -0,0 +1 @@
1
+ export declare function addAnimations(options: any): any;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.addAnimations = void 0;
13
+ const schematics_1 = require("@angular/cdk/schematics");
14
+ const ng_module_utils_1 = require("../utils/ng-module-utils");
15
+ const browserAnimationsModuleName = 'BrowserAnimationsModule';
16
+ const noopAnimationsModuleName = 'NoopAnimationsModule';
17
+ // Configures animations modules
18
+ function addAnimations(options) {
19
+ return (tree, context) => __awaiter(this, void 0, void 0, function* () {
20
+ const modulePath = yield (0, schematics_1.findModuleFromOptions)(tree, options);
21
+ if (options.animations) {
22
+ if ((0, ng_module_utils_1.hasModuleImport)(tree, modulePath, noopAnimationsModuleName)) {
23
+ context.logger.warn(`Could not set up "${browserAnimationsModuleName} because "${noopAnimationsModuleName}" is already imported. Please manually set up browser animations.`);
24
+ return tree;
25
+ }
26
+ if ((0, ng_module_utils_1.hasModuleImport)(tree, modulePath, browserAnimationsModuleName)) {
27
+ context.logger.info(`✅️ Import of ${browserAnimationsModuleName} already present in root module. Skipping.`);
28
+ return tree;
29
+ }
30
+ (0, schematics_1.addModuleImportToModule)(tree, modulePath, browserAnimationsModuleName, '@angular/platform-browser/animations');
31
+ context.logger.info(`✅️ Added ${browserAnimationsModuleName} to root module.`);
32
+ return tree;
33
+ }
34
+ if (!(0, ng_module_utils_1.hasModuleImport)(tree, modulePath, browserAnimationsModuleName)) {
35
+ (0, schematics_1.addModuleImportToModule)(tree, modulePath, noopAnimationsModuleName, '@angular/platform-browser/animations');
36
+ context.logger.info(`✅️ Added ${noopAnimationsModuleName} to root module.`);
37
+ }
38
+ return tree;
39
+ });
40
+ }
41
+ exports.addAnimations = addAnimations;
42
+ //# sourceMappingURL=index.js.map
@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AwB,kBAAkB,CAAC,CAAC;SAC/E;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,CAAA,CAAC;AACN,CAAC;AAzCD,sCAyCC"}
@@ -5,6 +5,15 @@
5
5
  "description": "Adds @fundamental-ngx/core to the project.",
6
6
  "factory": "./ng-add/index#ngAdd",
7
7
  "schema": "./ng-add/schema.json"
8
+ },
9
+ "add-animations": {
10
+ "description": "Adds animations module imports using @angular/cdk tools.",
11
+ "factory": "./add-animations/index#addAnimations"
12
+ },
13
+ "migrate-theme-fonts": {
14
+ "description": "Updates @fundamental-ngx/core to the latest version changes.",
15
+ "factory": "./migrations/migrate-theme-fonts/index#ngUpdate",
16
+ "schema": "./migrations/migrate-theme-fonts/schema.json"
8
17
  }
9
18
  }
10
19
  }
@@ -0,0 +1,2 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export declare function ngUpdate(options: any): Rule;
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ngUpdate = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const file_utils_1 = require("../../utils/file-utils");
6
+ const styles_1 = require("./styles");
7
+ function ngUpdate(options) {
8
+ return (0, schematics_1.chain)([addStylePathToConfig(options), createThemingStyleFiles(options)]);
9
+ }
10
+ exports.ngUpdate = ngUpdate;
11
+ const FONT_FACE_REGEX = /(@font-face)[\w\s]?{[\s\S\W\w]+?(?=\s}\s)?\s?}/gi;
12
+ const themeFontFiles = ['sap_fiori_3_fonts', 'sap_horizon_fonts'];
13
+ function createThemingStyleFiles(options) {
14
+ return (tree, context) => {
15
+ const angularConfigPath = '/angular.json';
16
+ const workspaceConfig = tree.read(angularConfigPath);
17
+ if (!workspaceConfig) {
18
+ throw new schematics_1.SchematicsException(`❌ Unable to find angular.json. Please manually configure your styles array.`);
19
+ }
20
+ const workspaceJson = JSON.parse(workspaceConfig.toString());
21
+ const sourceRoot = workspaceJson.projects[options.project].sourceRoot;
22
+ if (!tree.exists(`${sourceRoot}/theming/sap_fiori_3_fonts.css`)) {
23
+ tree.create(`${sourceRoot}/theming/sap_fiori_3_fonts.css`, styles_1.sapFioriFonts);
24
+ context.logger.info(`✅️ Created sap_fiori_3_fonts.css file.`);
25
+ }
26
+ if (!tree.exists(`${sourceRoot}/theming/sap_horizon_fonts.css`)) {
27
+ tree.create(`${sourceRoot}/theming/sap_horizon_fonts.css`, styles_1.sapHorizonFonts);
28
+ context.logger.info(`✅️ Created sap_horizon_fonts.css file.`);
29
+ }
30
+ if (options.autofixFontStyles) {
31
+ const styleSheets = (0, file_utils_1.findStylesheetFiles)(tree).filter((s) => !s.endsWith('sap_horizon_fonts.css') && !s.endsWith('sap_fiori_3_fonts.css'));
32
+ context.logger.info(styleSheets.join());
33
+ if (styleSheets.length > 0) {
34
+ styleSheets.forEach((styleSheet) => {
35
+ let contents = tree.read(styleSheet).toString();
36
+ if (FONT_FACE_REGEX.test(contents)) {
37
+ const matches = contents.match(FONT_FACE_REGEX).filter((m) => m.includes('/SAP-icons.woff'));
38
+ if (matches.length === 0) {
39
+ return;
40
+ }
41
+ matches.forEach((match) => {
42
+ contents = contents.replace(match, '');
43
+ });
44
+ tree.overwrite(styleSheet, contents);
45
+ context.logger.info(`✅️ Successfully migrated ${styleSheet}.`);
46
+ }
47
+ });
48
+ }
49
+ }
50
+ context.logger.info(`⚠️ Notice: If you have imported SAP-Icon icon font styles from @sap-theming, please remove it since now it controlled by fundamental-ngx`);
51
+ return tree;
52
+ };
53
+ }
54
+ // Adds the icon style path to the angular.json.
55
+ function addStylePathToConfig(options) {
56
+ return (tree, context) => {
57
+ const angularConfigPath = '/angular.json';
58
+ const workspaceConfig = tree.read(angularConfigPath);
59
+ if (!workspaceConfig) {
60
+ throw new schematics_1.SchematicsException(`❌ Unable to find angular.json. Please manually configure your styles array.`);
61
+ }
62
+ const workspaceJson = JSON.parse(workspaceConfig.toString());
63
+ const sourceRoot = workspaceJson.projects[options.project].sourceRoot;
64
+ try {
65
+ let stylesArray = workspaceJson.projects[options.project].architect.build.options['styles'];
66
+ themeFontFiles.forEach((fontStyle) => {
67
+ if (!stylesArray.find((style) => typeof style === 'object' && style.bundleName === `${fontStyle}`)) {
68
+ stylesArray.push({
69
+ input: `${sourceRoot}/theming/${fontStyle}.css`,
70
+ inject: false,
71
+ bundleName: fontStyle
72
+ });
73
+ context.logger.info(`✅️ Added ${fontStyle} font style to angular.json`);
74
+ }
75
+ });
76
+ workspaceJson.projects[options.project].architect.build.options['styles'] = stylesArray;
77
+ }
78
+ catch (e) {
79
+ throw new schematics_1.SchematicsException(`❌ Unable to find angular.json project styles. Please manually configure your styles array.`);
80
+ }
81
+ tree.overwrite(angularConfigPath, JSON.stringify(workspaceJson, null, 2));
82
+ return tree;
83
+ };
84
+ }
85
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/core/schematics/migrations/migrate-theme-fonts/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsG;AAEtG,uDAA6D;AAE7D,qCAA0D;AAG1D,SAAgB,QAAQ,CAAC,OAAY;IACjC,OAAO,IAAA,kBAAK,EAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACpF,CAAC;AAFD,4BAEC;AAQD,MAAM,eAAe,GAAG,kDAAkD,CAAC;AAE3E,MAAM,cAAc,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;AAElE,SAAS,uBAAuB,CAAC,OAAe;IAC5C,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC7C,MAAM,iBAAiB,GAAG,eAAe,CAAC;QAC1C,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAErD,IAAI,CAAC,eAAe,EAAE;YAClB,MAAM,IAAI,gCAAmB,CACzB,6EAA6E,CAChF,CAAC;SACL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,CAAC,OAAe,CAC1F,QAAQ,CACwB,CAAC;YAErC,cAAc,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;gBACjC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,UAAU,KAAK,GAAG,SAAS,EAAE,CAAC,EAAE;oBAChG,WAAW,CAAC,IAAI,CAAC;wBACb,KAAK,EAAE,GAAG,UAAU,YAAY,SAAS,MAAM;wBAC/C,MAAM,EAAE,KAAK;wBACb,UAAU,EAAE,SAAS;qBACxB,CAAC,CAAC;oBACH,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,SAAS,6BAA6B,CAAC,CAAC;iBAC3E;YACL,CAAC,CAAC,CAAC;YAEF,aAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAE,CAAC,SAAU,CAAC,KAAM,CAAC,OAAe,CAAC,QAAQ,CAAC,GAAG,WAAW,CAAC;SACxG;QAAC,OAAO,CAAC,EAAE;YACR,MAAM,IAAI,gCAAmB,CACzB,4FAA4F,CAC/F,CAAC;SACL;QAED,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface Schema {
2
+ project: string;
3
+ autofixFontStyles: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../libs/core/schematics/migrations/migrate-theme-fonts/schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "fundamental-ngx-ng-add",
4
+ "title": "Fundamental Library for Angular ng-add schematic",
5
+ "type": "object",
6
+ "properties": {
7
+ "project": {
8
+ "type": "string",
9
+ "description": "The name of the project.",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ },
14
+ "autofixFontStyles": {
15
+ "type": "boolean",
16
+ "default": true,
17
+ "description": "Whether to try to automatically fix icon font imports",
18
+ "x-prompt": "Try to automatically fix icon font imports?"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,2 @@
1
+ export declare const sapFioriFonts = "\n@font-face {\n font-family: 'SAP-icons';\n src: url('~@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/SAP-icons.woff') format('woff');\n font-weight: normal;\n font-style: normal;\n}\n";
2
+ export declare const sapHorizonFonts = "\n@font-face {\n font-family: 'SAP-icons';\n src: url('~@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon/fonts/SAP-icons.woff') format('woff');\n font-weight: normal;\n font-style: normal;\n}\n";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sapHorizonFonts = exports.sapFioriFonts = void 0;
4
+ exports.sapFioriFonts = `
5
+ @font-face {
6
+ font-family: 'SAP-icons';
7
+ src: url('~@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/SAP-icons.woff') format('woff');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+ `;
12
+ exports.sapHorizonFonts = `
13
+ @font-face {
14
+ font-family: 'SAP-icons';
15
+ src: url('~@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon/fonts/SAP-icons.woff') format('woff');
16
+ font-weight: normal;
17
+ font-style: normal;
18
+ }
19
+ `;
20
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../libs/core/schematics/migrations/migrate-theme-fonts/styles.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;;;;;;;CAO5B,CAAC;AAEW,QAAA,eAAe,GAAG;;;;;;;CAO9B,CAAC"}