@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/segmented-button",
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/select",
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/shared",
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/shellbar",
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/side-navigation",
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/slider",
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/split-button",
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/splitter",
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/status-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/step-input",
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/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/table",
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"
package/tabs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/tabs",
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"
package/text/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/text",
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/theming",
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"
package/tile/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/tile",
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"
package/time/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/time",
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/time-picker",
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/timeline",
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/title",
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/token",
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/toolbar",
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"
package/tree/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core/tree",
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/upload-collection",
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/utils",
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/vertical-navigation",
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/wizard",
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 +0,0 @@
1
- @font-face {
2
- font-family: 'SAP-icons';
3
- src: url('~@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/SAP-icons.woff') format('woff');
4
- font-weight: normal;
5
- font-style: normal;
6
- }
@@ -1,6 +0,0 @@
1
- @font-face {
2
- font-family: 'SAP-icons';
3
- src: url('~@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon/fonts/SAP-icons.woff') format('woff');
4
- font-weight: normal;
5
- font-style: normal;
6
- }
@@ -1 +0,0 @@
1
- @import '~fundamental-styles/dist/icon.css';
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (): Rule;
@@ -1,113 +0,0 @@
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
- const core_1 = require("@angular-devkit/core");
13
- const schematics_1 = require("@angular-devkit/schematics");
14
- const workspace_1 = require("@schematics/angular/utility/workspace");
15
- const file_utils_1 = require("../../utils/file-utils");
16
- function default_1() {
17
- return (0, schematics_1.chain)([removeStylesFromConfig(), removeIconFonts(), removeFontStyles(), noticeAddSchematics()]);
18
- }
19
- exports.default = default_1;
20
- function removeStylesFromConfig() {
21
- return (_, context) => __awaiter(this, void 0, void 0, function* () {
22
- return (0, workspace_1.updateWorkspace)((workspace) => {
23
- workspace.projects.forEach((project) => {
24
- project.targets.forEach((target) => {
25
- var _a, _b;
26
- const styles = (_a = target.options) === null || _a === void 0 ? void 0 : _a.styles;
27
- if (!((_b = target.options) === null || _b === void 0 ? void 0 : _b.styles) || !styles || !(0, core_1.isJsonArray)(styles)) {
28
- return;
29
- }
30
- const stylesToRemove = [
31
- 'node_modules/fundamental-styles/dist/icon.css',
32
- './node_modules/@sap-theming/theming-base-content/content/Base/baseLib/sap_fiori_3/css_variables.css',
33
- './node_modules/fundamental-styles/dist/theming/sap_fiori_3.css'
34
- ];
35
- stylesToRemove.forEach((styleToRemove) => {
36
- const indexInStylesArray = styles.findIndex((configStyle) => typeof configStyle === 'string' && configStyle === styleToRemove);
37
- if (indexInStylesArray > -1) {
38
- styles.splice(indexInStylesArray, 1);
39
- context.logger.info(`✅️ Removed '${styleToRemove}' style from angular.json`);
40
- }
41
- });
42
- target.options.styles = styles;
43
- });
44
- });
45
- });
46
- });
47
- }
48
- function removeIconFonts() {
49
- return (tree, context) => (0, workspace_1.updateWorkspace)((workspace) => {
50
- workspace.projects.forEach((project) => {
51
- project.targets.forEach((target) => {
52
- var _a, _b;
53
- const styles = (_a = target.options) === null || _a === void 0 ? void 0 : _a.styles;
54
- if (!((_b = target.options) === null || _b === void 0 ? void 0 : _b.styles) || !styles || !(0, core_1.isJsonArray)(styles)) {
55
- return;
56
- }
57
- const iconFonts = ['sap_fiori_3_fonts', 'sap_horizon_fonts'];
58
- iconFonts.forEach((fontFile) => {
59
- // Remove file
60
- const fontFileWithPath = `${project.sourceRoot}/theming/${fontFile}.css`;
61
- if (tree.exists(fontFileWithPath)) {
62
- tree.delete(fontFileWithPath);
63
- context.logger.info(`✅️ Removed ${fontFile}.css file.`);
64
- }
65
- // Remove from config
66
- const indexInStylesArray = styles.findIndex((style) => (0, core_1.isJsonObject)(style) && (style === null || style === void 0 ? void 0 : style.bundleName) === `${fontFile}`);
67
- if (indexInStylesArray > -1) {
68
- styles.splice(indexInStylesArray, 1);
69
- context.logger.info(`✅️ Removed '${fontFile}' style from angular.json`);
70
- }
71
- });
72
- target.options.styles = styles;
73
- });
74
- });
75
- });
76
- }
77
- function removeFontStyles() {
78
- return (tree, context) => {
79
- const styleSheets = (0, file_utils_1.findStylesheetFiles)(tree);
80
- if (styleSheets.length > 0) {
81
- const FONT_FACE_REGEX = /(@font-face)[\w\s]?{[s\S\W\w]+?(?=\s}\s)?\s?}[\n\s]*/gi;
82
- styleSheets.forEach((styleSheet) => {
83
- let buffer = tree.read(styleSheet);
84
- if (!buffer) {
85
- return;
86
- }
87
- let contents = buffer.toString();
88
- if (FONT_FACE_REGEX.test(contents)) {
89
- const matches = contents
90
- .match(FONT_FACE_REGEX)
91
- .filter((m) => { var _a; return (_a = m.match(/~@sap-theming.*\.woff/)) === null || _a === void 0 ? void 0 : _a.length; });
92
- if (matches.length === 0) {
93
- return;
94
- }
95
- matches.forEach((match) => {
96
- contents = contents.replace(match, '');
97
- });
98
- tree.overwrite(styleSheet, contents);
99
- context.logger.info(`✅️ Removed font styles from stylesheets.`);
100
- }
101
- });
102
- }
103
- context.logger.info(`⚠️ Notice: If you have imported font styles from @sap-theming, please remove it since now it controlled by fundamental-ngx`);
104
- return tree;
105
- };
106
- }
107
- function noticeAddSchematics() {
108
- return (_, context) => {
109
- context.logger.info(`ℹ️ Now you have run ng-add schematics once again to setup things in the right way.`);
110
- // Unfortunately we cannot run it on our own because ng-update doesn't respect schema so there is no way to get options here and pass them further
111
- };
112
- }
113
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/core/schematics/migrations/migration-0.36/index.ts"],"names":[],"mappings":";;;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AAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;oBAC3C,CAAC,CAAC,CAAC;oBAEH,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;oBACrC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;iBACnE;YACL,CAAC,CAAC,CAAC;SACN;QAED,OAAO,CAAC,MAAM,CAAC,IAAI,CACf,4HAA4H,CAC/H,CAAC;QAEF,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;AACN,CAAC;AAED,SAAS,mBAAmB;IACxB,OAAO,CAAC,CAAO,EAAE,OAAyB,EAAE,EAAE;QAC1C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,oFAAoF,CAAC,CAAC;QAE1G,kJAAkJ;IACtJ,CAAC,CAAC;AACN,CAAC"}
@@ -1,9 +0,0 @@
1
- {
2
- "schematics": {
3
- "migration-0.36": {
4
- "version": "0.36",
5
- "description": "Removes icon font files, font styles, styles from config and notifies about necessity of running add schematics again.",
6
- "factory": "./migrations/migration-0.36/index"
7
- }
8
- }
9
- }