@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.
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +5 -9
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js +2 -2
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.metadata.json +1 -1
- package/esm2015/components/dialog-host/dialog-host.component.js +4 -9
- package/esm5/components/dialog-host/dialog-host.component.js +4 -9
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +3 -8
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-dialog-host.js +3 -8
- package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/package.json +20 -1
- package/schematics/collection.json +16 -0
- package/schematics/migration.json +10 -0
- package/schematics/ng-add/constants/modules.d.ts +8 -0
- package/schematics/ng-add/constants/modules.js +34 -0
- package/schematics/ng-add/constants/packages.d.ts +2 -0
- package/schematics/ng-add/constants/packages.js +13 -0
- package/schematics/ng-add/constants/versions.d.ts +4 -0
- package/schematics/ng-add/constants/versions.js +7 -0
- package/schematics/ng-add/index.d.ts +3 -0
- package/schematics/ng-add/index.js +66 -0
- package/schematics/ng-add/schema.d.ts +7 -0
- package/schematics/ng-add/schema.js +2 -0
- package/schematics/ng-add/schema.json +86 -0
- package/schematics/ng-add/setup-project.d.ts +3 -0
- package/schematics/ng-add/setup-project.js +16 -0
- package/schematics/ng-add/steps/add-taiga-icons.d.ts +5 -0
- package/schematics/ng-add/steps/add-taiga-icons.js +40 -0
- package/schematics/ng-add/steps/add-taiga-modules.d.ts +3 -0
- package/schematics/ng-add/steps/add-taiga-modules.js +76 -0
- package/schematics/ng-add/steps/add-taiga-styles.d.ts +5 -0
- package/schematics/ng-add/steps/add-taiga-styles.js +38 -0
- package/schematics/ng-add/steps/wrap-with-tui-root.d.ts +3 -0
- package/schematics/ng-add/steps/wrap-with-tui-root.js +82 -0
- package/schematics/ng-update/index.d.ts +3 -0
- package/schematics/ng-update/index.js +18 -0
- package/schematics/utils/get-project-target-options.d.ts +2 -0
- package/schematics/utils/get-project-target-options.js +12 -0
- package/schematics/utils/get-project.d.ts +3 -0
- 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,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,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;
|