@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.
- package/action-bar/package.json +1 -1
- package/action-sheet/package.json +1 -1
- package/alert/package.json +1 -1
- package/avatar/package.json +1 -1
- package/avatar-group/package.json +1 -1
- package/bar/package.json +1 -1
- package/breadcrumb/esm2020/breadcrumb.component.mjs +3 -3
- package/breadcrumb/fesm2015/fundamental-ngx-core-breadcrumb.mjs +2 -2
- package/breadcrumb/fesm2015/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
- package/breadcrumb/fesm2020/fundamental-ngx-core-breadcrumb.mjs +2 -2
- package/breadcrumb/fesm2020/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
- package/breadcrumb/package.json +1 -1
- package/busy-indicator/package.json +1 -1
- package/button/package.json +1 -1
- package/calendar/package.json +1 -1
- package/card/package.json +1 -1
- package/carousel/package.json +1 -1
- package/checkbox/package.json +1 -1
- package/combobox/combobox.component.d.ts +8 -1
- package/combobox/combobox.interface.d.ts +1 -0
- package/combobox/esm2020/combobox-mobile/combobox-mobile.component.mjs +2 -2
- package/combobox/esm2020/combobox.component.mjs +27 -9
- package/combobox/esm2020/combobox.interface.mjs +1 -1
- package/combobox/fesm2015/fundamental-ngx-core-combobox.mjs +27 -9
- package/combobox/fesm2015/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/combobox/fesm2020/fundamental-ngx-core-combobox.mjs +27 -9
- package/combobox/fesm2020/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/combobox/package.json +1 -1
- package/content-density/package.json +3 -3
- package/date-picker/package.json +1 -1
- package/datetime/package.json +1 -1
- package/datetime-picker/package.json +1 -1
- package/dialog/package.json +1 -1
- package/dynamic-page/package.json +1 -1
- package/dynamic-side-content/package.json +1 -1
- package/esm2020/breadcrumb/breadcrumb.component.mjs +3 -3
- package/esm2020/combobox/combobox-mobile/combobox-mobile.component.mjs +2 -2
- package/esm2020/combobox/combobox.component.mjs +27 -9
- package/esm2020/combobox/combobox.interface.mjs +1 -1
- package/esm2020/overflow-layout/directives/overflow-item-ref.directive.mjs +2 -1
- package/esm2020/overflow-layout/interfaces/overflow-item-ref.interface.mjs +1 -1
- package/esm2020/overflow-layout/interfaces/overflow-item.interface.mjs +1 -1
- package/esm2020/overflow-layout/overflow-layout.component.mjs +4 -3
- package/esm2020/overflow-layout/overflow-layout.service.mjs +12 -10
- package/facets/package.json +1 -1
- package/feed-input/package.json +1 -1
- package/feed-list-item/package.json +1 -1
- package/fesm2015/fundamental-ngx-core-breadcrumb.mjs +2 -2
- package/fesm2015/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-combobox.mjs +27 -9
- package/fesm2015/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-overflow-layout.mjs +15 -11
- package/fesm2015/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-breadcrumb.mjs +2 -2
- package/fesm2020/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-combobox.mjs +27 -9
- package/fesm2020/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-overflow-layout.mjs +15 -11
- package/fesm2020/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
- package/file-uploader/package.json +1 -1
- package/fixed-card-layout/package.json +1 -1
- package/flexible-column-layout/package.json +1 -1
- package/form/package.json +1 -1
- package/formatted-text/package.json +1 -1
- package/grid-list/package.json +1 -1
- package/icon/package.json +1 -1
- package/illustrated-message/package.json +1 -1
- package/infinite-scroll/package.json +1 -1
- package/info-label/package.json +1 -1
- package/inline-help/package.json +1 -1
- package/input-group/package.json +1 -1
- package/layout-grid/package.json +1 -1
- package/layout-panel/package.json +1 -1
- package/link/package.json +1 -1
- package/list/package.json +1 -1
- package/menu/package.json +1 -1
- package/message-box/package.json +1 -1
- package/message-strip/package.json +1 -1
- package/message-toast/package.json +1 -1
- package/micro-process-flow/package.json +1 -1
- package/mobile-mode/package.json +1 -1
- package/multi-input/package.json +1 -1
- package/nested-list/package.json +1 -1
- package/notification/package.json +1 -1
- package/object-identifier/package.json +1 -1
- package/object-marker/package.json +1 -1
- package/object-number/package.json +1 -1
- package/object-status/package.json +1 -1
- package/overflow-layout/directives/overflow-item-ref.directive.d.ts +5 -2
- package/overflow-layout/esm2020/directives/overflow-item-ref.directive.mjs +2 -1
- package/overflow-layout/esm2020/interfaces/overflow-item-ref.interface.mjs +1 -1
- package/overflow-layout/esm2020/interfaces/overflow-item.interface.mjs +1 -1
- package/overflow-layout/esm2020/overflow-layout.component.mjs +4 -3
- package/overflow-layout/esm2020/overflow-layout.service.mjs +12 -10
- package/overflow-layout/fesm2015/fundamental-ngx-core-overflow-layout.mjs +15 -11
- package/overflow-layout/fesm2015/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
- package/overflow-layout/fesm2020/fundamental-ngx-core-overflow-layout.mjs +15 -11
- package/overflow-layout/fesm2020/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
- package/overflow-layout/interfaces/overflow-item-ref.interface.d.ts +4 -1
- package/overflow-layout/interfaces/overflow-item.interface.d.ts +3 -0
- package/overflow-layout/overflow-layout.service.d.ts +1 -0
- package/overflow-layout/package.json +13 -13
- package/package.json +13 -26
- package/pagination/package.json +1 -1
- package/panel/package.json +1 -1
- package/popover/package.json +1 -1
- package/product-switch/package.json +1 -1
- package/progress-indicator/package.json +1 -1
- package/quick-view/package.json +1 -1
- package/radio/package.json +1 -1
- package/rating-indicator/package.json +1 -1
- package/resizable-card-layout/package.json +1 -1
- package/schematics/add-animations/index.d.ts +1 -0
- package/schematics/add-animations/index.js +42 -0
- package/schematics/add-animations/index.js.map +1 -0
- package/schematics/collection.json +9 -0
- package/schematics/migrations/migrate-theme-fonts/index.d.ts +2 -0
- package/schematics/migrations/migrate-theme-fonts/index.js +85 -0
- package/schematics/migrations/migrate-theme-fonts/index.js.map +1 -0
- package/schematics/migrations/migrate-theme-fonts/schema.d.ts +4 -0
- package/schematics/migrations/migrate-theme-fonts/schema.js +3 -0
- package/schematics/migrations/migrate-theme-fonts/schema.js.map +1 -0
- package/schematics/migrations/migrate-theme-fonts/schema.json +21 -0
- package/schematics/migrations/migrate-theme-fonts/styles.d.ts +2 -0
- package/schematics/migrations/migrate-theme-fonts/styles.js +20 -0
- package/schematics/migrations/migrate-theme-fonts/styles.js.map +1 -0
- package/schematics/ng-add/index.js +168 -198
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.d.ts +1 -1
- package/schematics/ng-add/schema.json +6 -6
- package/schematics/ng-add/styles.d.ts +4 -0
- package/{assets/fundamental-ngx-core-fonts.scss → schematics/ng-add/styles.js} +20 -10
- package/schematics/ng-add/styles.js.map +1 -0
- package/schematics/utils/file-utils.js +1 -1
- package/schematics/utils/file-utils.js.map +1 -1
- package/scroll-spy/package.json +1 -1
- package/scrollbar/package.json +1 -1
- package/segmented-button/package.json +1 -1
- package/select/package.json +1 -1
- package/shared/package.json +1 -1
- package/shellbar/package.json +1 -1
- package/side-navigation/package.json +1 -1
- package/slider/package.json +1 -1
- package/split-button/package.json +1 -1
- package/splitter/package.json +1 -1
- package/status-indicator/package.json +1 -1
- package/step-input/package.json +1 -1
- package/switch/package.json +1 -1
- package/table/package.json +1 -1
- package/tabs/package.json +1 -1
- package/text/package.json +1 -1
- package/theming/package.json +1 -1
- package/tile/package.json +1 -1
- package/time/package.json +1 -1
- package/time-picker/package.json +1 -1
- package/timeline/package.json +1 -1
- package/title/package.json +1 -1
- package/token/package.json +1 -1
- package/toolbar/package.json +1 -1
- package/tree/package.json +1 -1
- package/upload-collection/package.json +1 -1
- package/utils/package.json +1 -1
- package/vertical-navigation/package.json +1 -1
- package/wizard/package.json +1 -1
- package/assets/fonts/sap_fiori_3_fonts.css +0 -6
- package/assets/fonts/sap_horizon_fonts.css +0 -6
- package/assets/fundamental-ngx-core.scss +0 -1
- package/schematics/migrations/migration-0.36/index.d.ts +0 -2
- package/schematics/migrations/migration-0.36/index.js +0 -113
- package/schematics/migrations/migration-0.36/index.js.map +0 -1
- package/schematics/migrations.json +0 -9
package/pagination/package.json
CHANGED
package/panel/package.json
CHANGED
package/popover/package.json
CHANGED
package/quick-view/package.json
CHANGED
package/radio/package.json
CHANGED
|
@@ -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;AAE3D,MAAM,2BAA2B,GAAG,yBAAyB,CAAC;AAC9D,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAExD,gCAAgC;AAChC,SAAgB,aAAa,CAAC,OAAY;IACtC,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QACnD,MAAM,UAAU,GAAG,MAAM,IAAA,kCAAqB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE9D,IAAI,OAAO,CAAC,UAAU,EAAE;YACpB,IAAI,IAAA,iCAAe,EAAC,IAAI,EAAE,UAAU,EAAE,wBAAwB,CAAC,EAAE;gBAC7D,OAAO,CAAC,MAAM,CAAC,IAAI,CACf,qBAAqB,2BAA2B,aAAa,wBAAwB,mEAAmE,CAC3J,CAAC;gBAEF,OAAO,IAAI,CAAC;aACf;YAED,IAAI,IAAA,iCAAe,EAAC,IAAI,EAAE,UAAU,EAAE,2BAA2B,CAAC,EAAE;gBAChE,OAAO,CAAC,MAAM,CAAC,IAAI,CACf,gBAAgB,2BAA2B,4CAA4C,CAC1F,CAAC;gBAEF,OAAO,IAAI,CAAC;aACf;YAED,IAAA,oCAAuB,EACnB,IAAI,EACJ,UAAU,EACV,2BAA2B,EAC3B,sCAAsC,CACzC,CAAC;YAEF,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,2BAA2B,kBAAkB,CAAC,CAAC;YAE/E,OAAO,IAAI,CAAC;SACf;QAED,IAAI,CAAC,IAAA,iCAAe,EAAC,IAAI,EAAE,UAAU,EAAE,2BAA2B,CAAC,EAAE;YACjE,IAAA,oCAAuB,EAAC,IAAI,EAAE,UAAU,EAAE,wBAAwB,EAAE,sCAAsC,CAAC,CAAC;YAE5G,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,wBAAwB,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,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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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"}
|