@fundamental-ngx/platform 0.63.0-rc.9 → 0.63.0

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 (34) hide show
  1. package/fesm2022/fundamental-ngx-platform-approval-flow.mjs +11 -8
  2. package/fesm2022/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
  3. package/fesm2022/fundamental-ngx-platform-dynamic-page.mjs +2 -2
  4. package/fesm2022/fundamental-ngx-platform-feed-input.mjs +2 -2
  5. package/fesm2022/fundamental-ngx-platform-form.mjs +18 -16
  6. package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
  7. package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs +4 -4
  8. package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs.map +1 -1
  9. package/fesm2022/fundamental-ngx-platform-link.mjs +2 -2
  10. package/fesm2022/fundamental-ngx-platform-list.mjs +6 -6
  11. package/fesm2022/fundamental-ngx-platform-menu.mjs +4 -4
  12. package/fesm2022/fundamental-ngx-platform-message-popover.mjs +2 -2
  13. package/fesm2022/fundamental-ngx-platform-message-popover.mjs.map +1 -1
  14. package/fesm2022/fundamental-ngx-platform-page-footer.mjs +2 -2
  15. package/fesm2022/fundamental-ngx-platform-search-field.mjs +3 -4
  16. package/fesm2022/fundamental-ngx-platform-search-field.mjs.map +1 -1
  17. package/fesm2022/fundamental-ngx-platform-split-menu-button.mjs +2 -2
  18. package/fesm2022/fundamental-ngx-platform-table.mjs +4 -4
  19. package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
  20. package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
  21. package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  22. package/fesm2022/fundamental-ngx-platform-variant-management.mjs +2 -2
  23. package/fesm2022/fundamental-ngx-platform-variant-management.mjs.map +1 -1
  24. package/package.json +5 -5
  25. package/schematics/ng-add/index.d.ts +13 -0
  26. package/schematics/ng-add/index.js +55 -0
  27. package/schematics/ng-add/index.js.map +1 -0
  28. package/schematics/ng-add/schema.d.ts +3 -0
  29. package/schematics/ng-add/schema.js +3 -0
  30. package/schematics/ng-add/schema.js.map +1 -0
  31. package/schematics/utils/package-utils.d.ts +19 -0
  32. package/schematics/utils/package-utils.js +119 -0
  33. package/schematics/utils/package-utils.js.map +1 -0
  34. package/types/fundamental-ngx-platform-form.d.ts +2 -0
@@ -0,0 +1,19 @@
1
+ import { workspaces } from '@angular-devkit/core';
2
+ import { Tree } from '@angular-devkit/schematics';
3
+ import * as ts from 'typescript';
4
+ /** Gets the ts source file from a path */
5
+ export declare function getSourceFile(host: Tree, path: string): ts.SourceFile;
6
+ /** Get the version of a package name */
7
+ export declare function getPackageVersionFromPackageJson(tree: Tree, name: string): string | null;
8
+ /** Check if a package exists in the package.json */
9
+ export declare function hasPackage(tree: Tree, name: string): boolean | null;
10
+ /** Check if a package exists in the package.json */
11
+ export declare function hasDevPackage(tree: Tree, name: string): boolean | null;
12
+ /** Returns the source path for the application */
13
+ export declare function getSourceTreePath(host: Tree, options: any): Promise<string>;
14
+ /** Returns the dist path for the application */
15
+ export declare function getDistPath(host: Tree, options: any): Promise<string>;
16
+ /** factory function to create a workspaces.WorkspaceHost from a Tree */
17
+ export declare function createHost(tree: Tree): workspaces.WorkspaceHost;
18
+ /** Returns the workspace project for the application */
19
+ export declare function getWorkspaceProject(host: Tree, options: any): Promise<workspaces.ProjectDefinition>;
@@ -0,0 +1,119 @@
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.getSourceFile = getSourceFile;
13
+ exports.getPackageVersionFromPackageJson = getPackageVersionFromPackageJson;
14
+ exports.hasPackage = hasPackage;
15
+ exports.hasDevPackage = hasDevPackage;
16
+ exports.getSourceTreePath = getSourceTreePath;
17
+ exports.getDistPath = getDistPath;
18
+ exports.createHost = createHost;
19
+ exports.getWorkspaceProject = getWorkspaceProject;
20
+ const core_1 = require("@angular-devkit/core");
21
+ const schematics_1 = require("@angular-devkit/schematics");
22
+ const ts = require("typescript");
23
+ /** Gets the ts source file from a path */
24
+ function getSourceFile(host, path) {
25
+ const buffer = host.read(path);
26
+ if (!buffer) {
27
+ throw new schematics_1.SchematicsException(`Could not find file for path: ${path}`);
28
+ }
29
+ return ts.createSourceFile(path, buffer.toString(), ts.ScriptTarget.Latest, true);
30
+ }
31
+ /** Get the version of a package name */
32
+ function getPackageVersionFromPackageJson(tree, name) {
33
+ if (!tree.exists('package.json')) {
34
+ return null;
35
+ }
36
+ const packageJson = JSON.parse(tree.read('package.json').toString('utf-8'));
37
+ if (packageJson.dependencies && packageJson.dependencies[name]) {
38
+ return packageJson.dependencies[name];
39
+ }
40
+ return null;
41
+ }
42
+ /** Check if a package exists in the package.json */
43
+ function hasPackage(tree, name) {
44
+ if (!tree.exists('package.json')) {
45
+ return null;
46
+ }
47
+ const packageJson = JSON.parse(tree.read('package.json').toString('utf-8'));
48
+ return packageJson.dependencies && packageJson.dependencies[name];
49
+ }
50
+ /** Check if a package exists in the package.json */
51
+ function hasDevPackage(tree, name) {
52
+ if (!tree.exists('package.json')) {
53
+ return null;
54
+ }
55
+ const packageJson = JSON.parse(tree.read('package.json').toString('utf-8'));
56
+ return packageJson.devDependencies && packageJson.devDependencies[name];
57
+ }
58
+ /** Returns the source path for the application */
59
+ function getSourceTreePath(host, options) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const project = yield getWorkspaceProject(host, options);
62
+ return project.sourceRoot ? project.sourceRoot : '';
63
+ });
64
+ }
65
+ /** Returns the dist path for the application */
66
+ function getDistPath(host, options) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const project = yield getWorkspaceProject(host, options);
69
+ const value = project.targets;
70
+ const optionsRecord = value.get('build').options;
71
+ const outputDistPath = optionsRecord['outputPath'];
72
+ return outputDistPath.toString();
73
+ });
74
+ }
75
+ /** factory function to create a workspaces.WorkspaceHost from a Tree */
76
+ function createHost(tree) {
77
+ return {
78
+ readFile(path) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const data = tree.read(path);
81
+ if (!data) {
82
+ throw new schematics_1.SchematicsException('File not found.');
83
+ }
84
+ return data.toString('utf-8');
85
+ });
86
+ },
87
+ writeFile(path, data) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ return tree.overwrite(path, data);
90
+ });
91
+ },
92
+ isDirectory(path) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ return !tree.exists(path) && tree.getDir(path).subfiles.length > 0;
95
+ });
96
+ },
97
+ isFile(path) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ return tree.exists(path);
100
+ });
101
+ }
102
+ };
103
+ }
104
+ /** Returns the workspace project for the application */
105
+ function getWorkspaceProject(host, options) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const workspaceHost = createHost(host);
108
+ const { workspace } = yield core_1.workspaces.readWorkspace('/', workspaceHost);
109
+ if (!options.project) {
110
+ options.project = workspace.extensions.defaultProject;
111
+ }
112
+ const project = workspace.projects.get(options.project);
113
+ if (!project) {
114
+ throw new schematics_1.SchematicsException(`Invalid project name: ${options.project}`);
115
+ }
116
+ return project;
117
+ });
118
+ }
119
+ //# sourceMappingURL=package-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-utils.js","sourceRoot":"","sources":["../../../../../libs/platform/schematics/utils/package-utils.ts"],"names":[],"mappings":";;;;;;;;;;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C;QAC9E,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;CAAA"}
@@ -3045,6 +3045,8 @@ declare class InputMessageGroupWithTemplate extends FormInputMessageGroupCompone
3045
3045
  * Custom trigger element.
3046
3046
  */
3047
3047
  triggerItemTemplate: TemplateRef<any>;
3048
+ /** @hidden Translated aria-label for the popover body (#14260). Overrides the core key with the platform key. */
3049
+ protected readonly _popoverAriaLabel: i0.Signal<string>;
3048
3050
  static ɵfac: i0.ɵɵFactoryDeclaration<InputMessageGroupWithTemplate, never>;
3049
3051
  static ɵcmp: i0.ɵɵComponentDeclaration<InputMessageGroupWithTemplate, "fdp-input-message-group", never, { "triggers": { "alias": "triggers"; "required": false; }; }, {}, ["triggerItemTemplate"], ["*"], true, never>;
3050
3052
  }