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

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 (171) 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/esm2020/breadcrumb.component.mjs +3 -3
  8. package/breadcrumb/fesm2015/fundamental-ngx-core-breadcrumb.mjs +2 -2
  9. package/breadcrumb/fesm2015/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
  10. package/breadcrumb/fesm2020/fundamental-ngx-core-breadcrumb.mjs +2 -2
  11. package/breadcrumb/fesm2020/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
  12. package/breadcrumb/package.json +1 -1
  13. package/busy-indicator/package.json +1 -1
  14. package/button/package.json +1 -1
  15. package/calendar/package.json +1 -1
  16. package/card/package.json +1 -1
  17. package/carousel/package.json +1 -1
  18. package/checkbox/package.json +1 -1
  19. package/combobox/combobox.component.d.ts +8 -1
  20. package/combobox/combobox.interface.d.ts +1 -0
  21. package/combobox/esm2020/combobox-mobile/combobox-mobile.component.mjs +2 -2
  22. package/combobox/esm2020/combobox.component.mjs +27 -9
  23. package/combobox/esm2020/combobox.interface.mjs +1 -1
  24. package/combobox/fesm2015/fundamental-ngx-core-combobox.mjs +27 -9
  25. package/combobox/fesm2015/fundamental-ngx-core-combobox.mjs.map +1 -1
  26. package/combobox/fesm2020/fundamental-ngx-core-combobox.mjs +27 -9
  27. package/combobox/fesm2020/fundamental-ngx-core-combobox.mjs.map +1 -1
  28. package/combobox/package.json +1 -1
  29. package/content-density/package.json +3 -3
  30. package/date-picker/package.json +1 -1
  31. package/datetime/package.json +1 -1
  32. package/datetime-picker/package.json +1 -1
  33. package/dialog/package.json +1 -1
  34. package/dynamic-page/package.json +1 -1
  35. package/dynamic-side-content/package.json +1 -1
  36. package/esm2020/breadcrumb/breadcrumb.component.mjs +3 -3
  37. package/esm2020/combobox/combobox-mobile/combobox-mobile.component.mjs +2 -2
  38. package/esm2020/combobox/combobox.component.mjs +27 -9
  39. package/esm2020/combobox/combobox.interface.mjs +1 -1
  40. package/esm2020/overflow-layout/directives/overflow-item-ref.directive.mjs +2 -1
  41. package/esm2020/overflow-layout/interfaces/overflow-item-ref.interface.mjs +1 -1
  42. package/esm2020/overflow-layout/interfaces/overflow-item.interface.mjs +1 -1
  43. package/esm2020/overflow-layout/overflow-layout.component.mjs +4 -3
  44. package/esm2020/overflow-layout/overflow-layout.service.mjs +12 -10
  45. package/facets/package.json +1 -1
  46. package/feed-input/package.json +1 -1
  47. package/feed-list-item/package.json +1 -1
  48. package/fesm2015/fundamental-ngx-core-breadcrumb.mjs +2 -2
  49. package/fesm2015/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
  50. package/fesm2015/fundamental-ngx-core-combobox.mjs +27 -9
  51. package/fesm2015/fundamental-ngx-core-combobox.mjs.map +1 -1
  52. package/fesm2015/fundamental-ngx-core-overflow-layout.mjs +15 -11
  53. package/fesm2015/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
  54. package/fesm2020/fundamental-ngx-core-breadcrumb.mjs +2 -2
  55. package/fesm2020/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
  56. package/fesm2020/fundamental-ngx-core-combobox.mjs +27 -9
  57. package/fesm2020/fundamental-ngx-core-combobox.mjs.map +1 -1
  58. package/fesm2020/fundamental-ngx-core-overflow-layout.mjs +15 -11
  59. package/fesm2020/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
  60. package/file-uploader/package.json +1 -1
  61. package/fixed-card-layout/package.json +1 -1
  62. package/flexible-column-layout/package.json +1 -1
  63. package/form/package.json +1 -1
  64. package/formatted-text/package.json +1 -1
  65. package/grid-list/package.json +1 -1
  66. package/icon/package.json +1 -1
  67. package/illustrated-message/package.json +1 -1
  68. package/infinite-scroll/package.json +1 -1
  69. package/info-label/package.json +1 -1
  70. package/inline-help/package.json +1 -1
  71. package/input-group/package.json +1 -1
  72. package/layout-grid/package.json +1 -1
  73. package/layout-panel/package.json +1 -1
  74. package/link/package.json +1 -1
  75. package/list/package.json +1 -1
  76. package/menu/package.json +1 -1
  77. package/message-box/package.json +1 -1
  78. package/message-strip/package.json +1 -1
  79. package/message-toast/package.json +1 -1
  80. package/micro-process-flow/package.json +1 -1
  81. package/mobile-mode/package.json +1 -1
  82. package/multi-input/package.json +1 -1
  83. package/nested-list/package.json +1 -1
  84. package/notification/package.json +1 -1
  85. package/object-identifier/package.json +1 -1
  86. package/object-marker/package.json +1 -1
  87. package/object-number/package.json +1 -1
  88. package/object-status/package.json +1 -1
  89. package/overflow-layout/directives/overflow-item-ref.directive.d.ts +5 -2
  90. package/overflow-layout/esm2020/directives/overflow-item-ref.directive.mjs +2 -1
  91. package/overflow-layout/esm2020/interfaces/overflow-item-ref.interface.mjs +1 -1
  92. package/overflow-layout/esm2020/interfaces/overflow-item.interface.mjs +1 -1
  93. package/overflow-layout/esm2020/overflow-layout.component.mjs +4 -3
  94. package/overflow-layout/esm2020/overflow-layout.service.mjs +12 -10
  95. package/overflow-layout/fesm2015/fundamental-ngx-core-overflow-layout.mjs +15 -11
  96. package/overflow-layout/fesm2015/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
  97. package/overflow-layout/fesm2020/fundamental-ngx-core-overflow-layout.mjs +15 -11
  98. package/overflow-layout/fesm2020/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
  99. package/overflow-layout/interfaces/overflow-item-ref.interface.d.ts +4 -1
  100. package/overflow-layout/interfaces/overflow-item.interface.d.ts +3 -0
  101. package/overflow-layout/overflow-layout.service.d.ts +1 -0
  102. package/overflow-layout/package.json +13 -13
  103. package/package.json +13 -26
  104. package/pagination/package.json +1 -1
  105. package/panel/package.json +1 -1
  106. package/popover/package.json +1 -1
  107. package/product-switch/package.json +1 -1
  108. package/progress-indicator/package.json +1 -1
  109. package/quick-view/package.json +1 -1
  110. package/radio/package.json +1 -1
  111. package/rating-indicator/package.json +1 -1
  112. package/resizable-card-layout/package.json +1 -1
  113. package/schematics/add-animations/index.d.ts +1 -0
  114. package/schematics/add-animations/index.js +42 -0
  115. package/schematics/add-animations/index.js.map +1 -0
  116. package/schematics/collection.json +9 -0
  117. package/schematics/migrations/migrate-theme-fonts/index.d.ts +2 -0
  118. package/schematics/migrations/migrate-theme-fonts/index.js +85 -0
  119. package/schematics/migrations/migrate-theme-fonts/index.js.map +1 -0
  120. package/schematics/migrations/migrate-theme-fonts/schema.d.ts +4 -0
  121. package/schematics/migrations/migrate-theme-fonts/schema.js +3 -0
  122. package/schematics/migrations/migrate-theme-fonts/schema.js.map +1 -0
  123. package/schematics/migrations/migrate-theme-fonts/schema.json +21 -0
  124. package/schematics/migrations/migrate-theme-fonts/styles.d.ts +2 -0
  125. package/schematics/migrations/migrate-theme-fonts/styles.js +20 -0
  126. package/schematics/migrations/migrate-theme-fonts/styles.js.map +1 -0
  127. package/schematics/ng-add/index.js +168 -198
  128. package/schematics/ng-add/index.js.map +1 -1
  129. package/schematics/ng-add/schema.d.ts +1 -1
  130. package/schematics/ng-add/schema.json +6 -6
  131. package/schematics/ng-add/styles.d.ts +4 -0
  132. package/{assets/fundamental-ngx-core-fonts.scss → schematics/ng-add/styles.js} +20 -10
  133. package/schematics/ng-add/styles.js.map +1 -0
  134. package/schematics/utils/file-utils.js +1 -1
  135. package/schematics/utils/file-utils.js.map +1 -1
  136. package/scroll-spy/package.json +1 -1
  137. package/scrollbar/package.json +1 -1
  138. package/segmented-button/package.json +1 -1
  139. package/select/package.json +1 -1
  140. package/shared/package.json +1 -1
  141. package/shellbar/package.json +1 -1
  142. package/side-navigation/package.json +1 -1
  143. package/slider/package.json +1 -1
  144. package/split-button/package.json +1 -1
  145. package/splitter/package.json +1 -1
  146. package/status-indicator/package.json +1 -1
  147. package/step-input/package.json +1 -1
  148. package/switch/package.json +1 -1
  149. package/table/package.json +1 -1
  150. package/tabs/package.json +1 -1
  151. package/text/package.json +1 -1
  152. package/theming/package.json +1 -1
  153. package/tile/package.json +1 -1
  154. package/time/package.json +1 -1
  155. package/time-picker/package.json +1 -1
  156. package/timeline/package.json +1 -1
  157. package/title/package.json +1 -1
  158. package/token/package.json +1 -1
  159. package/toolbar/package.json +1 -1
  160. package/tree/package.json +1 -1
  161. package/upload-collection/package.json +1 -1
  162. package/utils/package.json +1 -1
  163. package/vertical-navigation/package.json +1 -1
  164. package/wizard/package.json +1 -1
  165. package/assets/fonts/sap_fiori_3_fonts.css +0 -6
  166. package/assets/fonts/sap_horizon_fonts.css +0 -6
  167. package/assets/fundamental-ngx-core.scss +0 -1
  168. package/schematics/migrations/migration-0.36/index.d.ts +0 -2
  169. package/schematics/migrations/migration-0.36/index.js +0 -113
  170. package/schematics/migrations/migration-0.36/index.js.map +0 -1
  171. package/schematics/migrations.json +0 -9
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/pagination",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4",
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/panel",
3
- "version": "0.35.4-rc.7",
3
+ "version": "0.35.4",
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",
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",
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",
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",
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",
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",
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",
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/core/schematics/add-animations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wDAAyF;AACzF,8DAA2D;AAE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ds @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;QAED,MAAM,aAAa,GAAoB,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE9E,MAAM,UAAU,GAAG,aAAa,CAAC,QAAQ,CAAC,OAA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C,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"}