taiga-ui 2.28.0 → 2.29.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/README.md +4 -5
- package/ng-add/index.js +17 -0
- package/ng-add/index.js.map +1 -1
- package/ng-add/schema.json +32 -7
- package/ng-add/steps/add-taiga-styles.js +1 -1
- package/ng-add/steps/add-taiga-styles.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
[](https://discord.gg/Us8d8JVaTg)
|
|
5
5
|
|
|
6
6
|
[Website](https://taiga-ui.dev) • [Documentation](https://taiga-ui.dev/getting-started) •
|
|
7
|
-
[CDK Wiki](https://github.com/
|
|
8
|
-
[Core team](https://github.com/TinkoffCreditSystems/taiga-ui/#core-team)
|
|
7
|
+
[CDK Wiki](https://github.com/tinkoff/taiga-ui/wiki) • [Core team](https://github.com/tinkoff/taiga-ui/#core-team)
|
|
9
8
|
|
|
10
9
|
> Schematics for Taiga UI
|
|
11
10
|
|
|
12
|
-
It's a part of [**Taiga UI**](https://github.com/
|
|
13
|
-
|
|
11
|
+
It's a part of [**Taiga UI**](https://github.com/tinkoff/taiga-ui) that is fully-treeshakable Angular UI Kit consisting
|
|
12
|
+
of multiple base libraries and several add-ons
|
|
14
13
|
|
|
15
14
|
## How to use
|
|
16
15
|
|
|
@@ -25,4 +24,4 @@ See our [Documentation](https://taiga-ui.dev/getting-started)
|
|
|
25
24
|
---
|
|
26
25
|
|
|
27
26
|
You can also visit CDK wiki to learn more about its tools:
|
|
28
|
-
[CDK Documentation on Github Wiki](https://github.com/
|
|
27
|
+
[CDK Documentation on Github Wiki](https://github.com/tinkoff/taiga-ui/wiki/CDK)
|
package/ng-add/index.js
CHANGED
|
@@ -47,5 +47,22 @@ function addDependencies(tree, options) {
|
|
|
47
47
|
type: ng_morph_1.NodeDependencyType.Dev,
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
+
if (packages.includes('addon-table') || packages.includes('addon-mobile')) {
|
|
51
|
+
addAngularCdkDep(tree);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function addAngularCdkDep(tree) {
|
|
55
|
+
var _a;
|
|
56
|
+
const angularCore = (_a = ng_morph_1.getPackageJsonDependency(tree, '@angular/core')) === null || _a === void 0 ? void 0 : _a.version;
|
|
57
|
+
if (!angularCore) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const majorVersionArr = angularCore.match(/[0-9]+/);
|
|
61
|
+
if (majorVersionArr) {
|
|
62
|
+
ng_morph_1.addPackageJsonDependency(tree, {
|
|
63
|
+
name: '@angular/cdk',
|
|
64
|
+
version: `^${majorVersionArr[0]}.0.0`,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
50
67
|
}
|
|
51
68
|
//# sourceMappingURL=index.js.map
|
package/ng-add/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/taiga-schematics/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,4DAA0F;AAC1F,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/taiga-schematics/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,4DAA0F;AAC1F,uCAKkB;AAClB,mDAK8B;AAG9B,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAEtD,SAAgB,KAAK,CAAC,OAAe;IACjC,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QACnD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,yCAAyC,aAAa,EAAE,CAAC,CAAC;QAE9E,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE/B,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,EAAE;YAC1C,OAAO,CAAC,OAAO,CAAC,IAAI,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,QAAQ,CAAC,CAAC;IAEpD,IAAI,eAAe,EAAE;QACjB,mCAAwB,CAAC,IAAI,EAAE;YAC3B,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,IAAI,eAAe,CAAC,CAAC,CAAC,MAAM;SACxC,CAAC,CAAC;KACN;AACL,CAAC"}
|
package/ng-add/schema.json
CHANGED
|
@@ -46,13 +46,38 @@
|
|
|
46
46
|
"type": "list",
|
|
47
47
|
"multiselect": true,
|
|
48
48
|
"items": [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
{
|
|
50
|
+
"value": "addon-doc",
|
|
51
|
+
"label": "addon-doc Taiga UI based library for developing documentation portals for Angular libraries"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"value": "addon-charts",
|
|
55
|
+
"label": "addon-charts Components for various charts, graphs and visualizations"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"value": "addon-commerce",
|
|
59
|
+
"label": "addon-commerce Money-related extension with currencies, credit card inputs and validators"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": "addon-mobile",
|
|
63
|
+
"label": "addon-mobile Components and tools specific to mobile version of the app"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"value": "addon-table",
|
|
67
|
+
"label": "addon-table Interactive table component and related utilities"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"value": "addon-tablebars",
|
|
71
|
+
"label": "addon-tablebars Group action sliding toolbar"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"value": "addon-editor",
|
|
75
|
+
"label": "addon-editor Rich text editor extension with related components"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"value": "addon-preview",
|
|
79
|
+
"label": "addon preview Custom fullscreen dialog to preview various content such as documents, images etc."
|
|
80
|
+
}
|
|
56
81
|
]
|
|
57
82
|
}
|
|
58
83
|
}
|
|
@@ -31,7 +31,7 @@ function addTaigaStylesToAngularJson(workspace, project) {
|
|
|
31
31
|
targetOptions.styles = taigaStyles;
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
|
-
targetOptions.styles = [...
|
|
34
|
+
targetOptions.styles = Array.from(new Set([...taigaStyles, ...styles]));
|
|
35
35
|
}
|
|
36
36
|
return workspace_1.updateWorkspace(workspace);
|
|
37
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-taiga-styles.js","sourceRoot":"","sources":["../../../../projects/taiga-schematics/schematics/ng-add/steps/add-taiga-styles.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,qEAAsE;AACtE,qEAAmE;AACnE,yDAAmD;AACnD,uFAA+E;AAG/E,MAAM,kBAAkB,GAAG,yDAAyD,CAAC;AACrF,MAAM,iBAAiB,GAAG,wDAAwD,CAAC;AAEnF,SAAgB,cAAc,CAAC,OAAe;IAC1C,OAAO,CAAO,IAAU,EAAE,EAAE;QACxB,MAAM,SAAS,GAAG,MAAM,wBAAY,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,wBAAU,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAE/C,OAAO,2BAA2B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC,CAAA,CAAC;AACN,CAAC;AAPD,wCAOC;AAED,SAAgB,2BAA2B,CACvC,SAAyC,EACzC,OAAqC;IAErC,MAAM,aAAa,GAAG,oDAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,aAAa,CAAC,MAA+B,CAAC;IAC7D,MAAM,WAAW,GAAG,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAAC;IAE5D,IAAI,CAAC,MAAM,EAAE;QACT,aAAa,CAAC,MAAM,GAAG,WAAW,CAAC;KACtC;SAAM;QACH,aAAa,CAAC,MAAM,GAAG,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"add-taiga-styles.js","sourceRoot":"","sources":["../../../../projects/taiga-schematics/schematics/ng-add/steps/add-taiga-styles.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,qEAAsE;AACtE,qEAAmE;AACnE,yDAAmD;AACnD,uFAA+E;AAG/E,MAAM,kBAAkB,GAAG,yDAAyD,CAAC;AACrF,MAAM,iBAAiB,GAAG,wDAAwD,CAAC;AAEnF,SAAgB,cAAc,CAAC,OAAe;IAC1C,OAAO,CAAO,IAAU,EAAE,EAAE;QACxB,MAAM,SAAS,GAAG,MAAM,wBAAY,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,wBAAU,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAE/C,OAAO,2BAA2B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC,CAAA,CAAC;AACN,CAAC;AAPD,wCAOC;AAED,SAAgB,2BAA2B,CACvC,SAAyC,EACzC,OAAqC;IAErC,MAAM,aAAa,GAAG,oDAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,aAAa,CAAC,MAA+B,CAAC;IAC7D,MAAM,WAAW,GAAG,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAAC;IAE5D,IAAI,CAAC,MAAM,EAAE;QACT,aAAa,CAAC,MAAM,GAAG,WAAW,CAAC;KACtC;SAAM;QACH,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;KAC3E;IAED,OAAO,2BAAe,CAAC,SAAS,CAAC,CAAC;AACtC,CAAC;AAfD,kEAeC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taiga-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"description": "Taiga UI package that provides ng add command for Taiga library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
],
|
|
14
14
|
"schematics": "./collection.json",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
|
-
"repository": "https://github.com/
|
|
17
|
-
"homepage": "https://github.com/
|
|
16
|
+
"repository": "https://github.com/tinkoff/taiga-ui",
|
|
17
|
+
"homepage": "https://github.com/tinkoff/taiga-ui",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@angular-devkit/schematics": "^9.1.12",
|
|
20
20
|
"ng-morph": "2.0.0",
|