@taiga-ui/cdk 2.38.0 → 2.39.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 (41) hide show
  1. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +5 -9
  2. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js +2 -2
  4. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
  5. package/components/dialog-host/taiga-ui-cdk-components-dialog-host.metadata.json +1 -1
  6. package/esm2015/components/dialog-host/dialog-host.component.js +4 -9
  7. package/esm5/components/dialog-host/dialog-host.component.js +4 -9
  8. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +3 -8
  9. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  10. package/fesm5/taiga-ui-cdk-components-dialog-host.js +3 -8
  11. package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  12. package/package.json +20 -1
  13. package/schematics/collection.json +16 -0
  14. package/schematics/migration.json +10 -0
  15. package/schematics/ng-add/constants/modules.d.ts +8 -0
  16. package/schematics/ng-add/constants/modules.js +34 -0
  17. package/schematics/ng-add/constants/packages.d.ts +2 -0
  18. package/schematics/ng-add/constants/packages.js +13 -0
  19. package/schematics/ng-add/constants/versions.d.ts +4 -0
  20. package/schematics/ng-add/constants/versions.js +7 -0
  21. package/schematics/ng-add/index.d.ts +3 -0
  22. package/schematics/ng-add/index.js +66 -0
  23. package/schematics/ng-add/schema.d.ts +7 -0
  24. package/schematics/ng-add/schema.js +2 -0
  25. package/schematics/ng-add/schema.json +86 -0
  26. package/schematics/ng-add/setup-project.d.ts +3 -0
  27. package/schematics/ng-add/setup-project.js +16 -0
  28. package/schematics/ng-add/steps/add-taiga-icons.d.ts +5 -0
  29. package/schematics/ng-add/steps/add-taiga-icons.js +40 -0
  30. package/schematics/ng-add/steps/add-taiga-modules.d.ts +3 -0
  31. package/schematics/ng-add/steps/add-taiga-modules.js +76 -0
  32. package/schematics/ng-add/steps/add-taiga-styles.d.ts +5 -0
  33. package/schematics/ng-add/steps/add-taiga-styles.js +38 -0
  34. package/schematics/ng-add/steps/wrap-with-tui-root.d.ts +3 -0
  35. package/schematics/ng-add/steps/wrap-with-tui-root.js +82 -0
  36. package/schematics/ng-update/index.d.ts +3 -0
  37. package/schematics/ng-update/index.js +18 -0
  38. package/schematics/utils/get-project-target-options.d.ts +2 -0
  39. package/schematics/utils/get-project-target-options.js +12 -0
  40. package/schematics/utils/get-project.d.ts +3 -0
  41. package/schematics/utils/get-project.js +12 -0
@@ -0,0 +1,18 @@
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 versions_1 = require("../ng-add/constants/versions");
13
+ function updateToV3(_) {
14
+ return (_, context) => __awaiter(this, void 0, void 0, function* () {
15
+ context.logger.info(`taiga packages will be updated to ${versions_1.TAIGA_VERSION}`);
16
+ });
17
+ }
18
+ exports.updateToV3 = updateToV3;
@@ -0,0 +1,2 @@
1
+ import { JsonArray, JsonObject, workspaces } from '@angular-devkit/core';
2
+ export declare function getProjectTargetOptions(project: workspaces.ProjectDefinition, buildTarget: string): Record<string, string | number | boolean | JsonArray | JsonObject | undefined | null>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ function getProjectTargetOptions(project, buildTarget) {
5
+ var _a;
6
+ const buildTargetObject = (_a = project.targets) === null || _a === void 0 ? void 0 : _a.get(buildTarget);
7
+ if (buildTargetObject && buildTargetObject.options) {
8
+ return buildTargetObject.options;
9
+ }
10
+ throw new schematics_1.SchematicsException(`Cannot determine project target configuration for: ${buildTarget}.`);
11
+ }
12
+ exports.getProjectTargetOptions = getProjectTargetOptions;
@@ -0,0 +1,3 @@
1
+ import { workspaces } from '@angular-devkit/core';
2
+ import { Schema } from '../ng-add/schema';
3
+ export declare function getProject(options: Schema, workspace: workspaces.WorkspaceDefinition): workspaces.ProjectDefinition;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ function getProject(options, workspace) {
5
+ const projectName = options.project || workspace.extensions.defaultProject.toString();
6
+ const project = workspace.projects.get(projectName);
7
+ if (!project) {
8
+ throw new schematics_1.SchematicsException(`Unable to find project '${projectName}' in the workspace`);
9
+ }
10
+ return project;
11
+ }
12
+ exports.getProject = getProject;