@taiga-ui/cdk 4.0.0-rc.7 → 4.0.0-rc.9
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/constants/used-icons.d.ts +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/esm2022/constants/used-icons.mjs +9 -1
- package/esm2022/constants/version.mjs +2 -2
- package/esm2022/services/index.mjs +2 -2
- package/esm2022/services/theme-color.service.mjs +30 -0
- package/fesm2022/taiga-ui-cdk-constants.mjs +9 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-services.mjs +19 -22
- package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
- package/package.json +5 -6
- package/schematics/ng-update/interfaces/html-comment.d.ts +3 -2
- package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +6 -2
- package/schematics/ng-update/interfaces/replacement-identifier.d.ts +4 -11
- package/schematics/ng-update/steps/replace-identifier.js +16 -12
- package/schematics/ng-update/utils/templates/replace-attr-values.js +39 -10
- package/schematics/ng-update/utils/templates/template-comments.js +7 -1
- package/schematics/ng-update/v4/index.js +3 -0
- package/schematics/ng-update/v4/migrate-icons/index.js +2 -2
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +2 -1
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +19 -6
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +42 -2
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +34 -3
- package/schematics/ng-update/v4/steps/constants/html-comments.js +9 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +243 -220
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +1 -0
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +20 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +8 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +3 -2
- package/schematics/ng-update/v4/steps/constants/types.js +29 -0
- package/schematics/ng-update/v4/steps/index.d.ts +4 -1
- package/schematics/ng-update/v4/steps/index.js +4 -1
- package/schematics/ng-update/v4/steps/migrate-alert-service.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-alert-service.js +110 -0
- package/schematics/ng-update/v4/steps/migrate-month-context.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-month-context.js +39 -0
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.d.ts +2 -0
- package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +64 -0
- package/schematics/ng-update/v4/steps/migrate-templates.js +5 -0
- package/schematics/ng-update/v4/steps/{migrate-styles.js → styles/index.js} +13 -1
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +13 -0
- package/schematics/ng-update/v4/steps/styles/migrate-scrollbar-behavior.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-scrollbar-behavior.js +10 -0
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +23 -0
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +20 -0
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.d.ts +1 -0
- package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +54 -0
- package/schematics/ng-update/v4/steps/templates/index.d.ts +3 -0
- package/schematics/ng-update/v4/steps/templates/index.js +3 -0
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +10 -5
- package/schematics/ng-update/{v3/steps/migrate-polymorpheus.d.ts → v4/steps/templates/migrate-axes.d.ts} +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-axes.js +26 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +7 -6
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -1
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +2 -1
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +3 -2
- package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +7 -4
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +1 -1
- package/schematics/ng-update/{v3/steps/migrate-textfield-controller.d.ts → v4/steps/templates/migrate-mobile-tabs.d.ts} +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +45 -0
- package/schematics/ng-update/v4/steps/templates/migrate-notification.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-notification.js +64 -0
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +36 -0
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +4 -6
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +2 -1
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +3 -2
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +2 -1
- package/schematics/ng-update/v4/steps/update-packages.js +13 -4
- package/schematics/utils/templates/elements.js +2 -1
- package/schematics/utils/templates/inputs.js +2 -1
- package/services/index.d.ts +1 -1
- package/services/theme-color.service.d.ts +16 -0
- package/esm2022/services/static-request.service.mjs +0 -33
- package/schematics/ng-update/v3/constants/breakpoints.d.ts +0 -82
- package/schematics/ng-update/v3/constants/breakpoints.js +0 -34
- package/schematics/ng-update/v3/constants/constants.d.ts +0 -2
- package/schematics/ng-update/v3/constants/constants.js +0 -466
- package/schematics/ng-update/v3/constants/deprecated-functions.d.ts +0 -2
- package/schematics/ng-update/v3/constants/deprecated-functions.js +0 -680
- package/schematics/ng-update/v3/constants/enums.d.ts +0 -2
- package/schematics/ng-update/v3/constants/enums.js +0 -284
- package/schematics/ng-update/v3/constants/modules.d.ts +0 -2
- package/schematics/ng-update/v3/constants/modules.js +0 -9
- package/schematics/ng-update/v3/constants/services.d.ts +0 -2
- package/schematics/ng-update/v3/constants/services.js +0 -53
- package/schematics/ng-update/v3/constants/templates.d.ts +0 -57
- package/schematics/ng-update/v3/constants/templates.js +0 -744
- package/schematics/ng-update/v3/constants/tui-interactive-selectors.d.ts +0 -1
- package/schematics/ng-update/v3/constants/tui-interactive-selectors.js +0 -55
- package/schematics/ng-update/v3/constants/types.d.ts +0 -2
- package/schematics/ng-update/v3/constants/types.js +0 -156
- package/schematics/ng-update/v3/constants/warnings.d.ts +0 -2
- package/schematics/ng-update/v3/constants/warnings.js +0 -111
- package/schematics/ng-update/v3/index.d.ts +0 -3
- package/schematics/ng-update/v3/index.js +0 -105
- package/schematics/ng-update/v3/schema.json +0 -13
- package/schematics/ng-update/v3/steps/migrate-date-time.d.ts +0 -2
- package/schematics/ng-update/v3/steps/migrate-date-time.js +0 -207
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +0 -78
- package/schematics/ng-update/v3/steps/migrate-progress.d.ts +0 -8
- package/schematics/ng-update/v3/steps/migrate-progress.js +0 -49
- package/schematics/ng-update/v3/steps/migrate-sliders/index.d.ts +0 -3
- package/schematics/ng-update/v3/steps/migrate-sliders/index.js +0 -19
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.d.ts +0 -3
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +0 -103
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.d.ts +0 -3
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +0 -90
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.d.ts +0 -3
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +0 -70
- package/schematics/ng-update/v3/steps/migrate-templates.d.ts +0 -4
- package/schematics/ng-update/v3/steps/migrate-templates.js +0 -216
- package/schematics/ng-update/v3/steps/migrate-textfield-controller.js +0 -98
- package/schematics/ng-update/v3/steps/miscellaneous.d.ts +0 -2
- package/schematics/ng-update/v3/steps/miscellaneous.js +0 -81
- package/schematics/ng-update/v3/steps/replace-functions.d.ts +0 -2
- package/schematics/ng-update/v3/steps/replace-functions.js +0 -138
- package/schematics/ng-update/v3/steps/replace-styles.d.ts +0 -3
- package/schematics/ng-update/v3/steps/replace-styles.js +0 -33
- package/schematics/ng-update/v3-30/constants/constants.d.ts +0 -2
- package/schematics/ng-update/v3-30/constants/constants.js +0 -8
- package/schematics/ng-update/v3-30/constants/icons.d.ts +0 -4
- package/schematics/ng-update/v3-30/constants/icons.js +0 -993
- package/schematics/ng-update/v3-30/index.d.ts +0 -3
- package/schematics/ng-update/v3-30/index.js +0 -33
- package/schematics/ng-update/v3-35/constants/constants.d.ts +0 -2
- package/schematics/ng-update/v3-35/constants/constants.js +0 -8
- package/schematics/ng-update/v3-35/constants/icons.d.ts +0 -4
- package/schematics/ng-update/v3-35/constants/icons.js +0 -2537
- package/schematics/ng-update/v3-35/index.d.ts +0 -3
- package/schematics/ng-update/v3-35/index.js +0 -33
- package/schematics/ng-update/v3-36/index.d.ts +0 -3
- package/schematics/ng-update/v3-36/index.js +0 -23
- package/schematics/ng-update/v3-40/index.d.ts +0 -3
- package/schematics/ng-update/v3-40/index.js +0 -62
- package/schematics/ng-update/v3-5/index.d.ts +0 -3
- package/schematics/ng-update/v3-5/index.js +0 -20
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.d.ts +0 -3
- package/schematics/ng-update/v3-5/steps/migrate-expand-templates.js +0 -44
- package/services/static-request.service.d.ts +0 -8
- /package/schematics/ng-update/v4/steps/{migrate-styles.d.ts → styles/index.d.ts} +0 -0
@@ -2,11 +2,21 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ATTR_WITH_VALUES_TO_REPLACE = void 0;
|
4
4
|
const elements_1 = require("../../../../utils/templates/elements");
|
5
|
+
const hasPseudo = [
|
6
|
+
'button',
|
7
|
+
'a',
|
8
|
+
'tui-checkbox',
|
9
|
+
'tui-checkbox-block',
|
10
|
+
'tui-radio',
|
11
|
+
'tui-radio-block',
|
12
|
+
'tui-radio-labeled',
|
13
|
+
'tui-checkbox-labeled',
|
14
|
+
];
|
5
15
|
exports.ATTR_WITH_VALUES_TO_REPLACE = [
|
6
16
|
{
|
7
17
|
attrNames: ['shape'],
|
8
18
|
newAttrName: '[style.border-radius.%]',
|
9
|
-
|
19
|
+
valueReplacer: [{ from: 'rounded', to: '100' }],
|
10
20
|
withTagNames: ['button'],
|
11
21
|
filterFn: (el) => (0, elements_1.hasElementAttribute)(el, 'tuiButton') ||
|
12
22
|
(0, elements_1.hasElementAttribute)(el, 'tuiIconButton'),
|
@@ -14,9 +24,39 @@ exports.ATTR_WITH_VALUES_TO_REPLACE = [
|
|
14
24
|
{
|
15
25
|
attrNames: ['tuiMode'],
|
16
26
|
newAttrName: 'tuiTheme',
|
17
|
-
|
27
|
+
valueReplacer: [
|
18
28
|
{ from: 'onDark', to: 'dark' },
|
19
29
|
{ from: 'onLight', to: 'light' },
|
20
30
|
],
|
21
31
|
},
|
32
|
+
{
|
33
|
+
attrNames: ['[pseudoActive]'],
|
34
|
+
newAttrName: '[tuiAppearanceState]',
|
35
|
+
withTagNames: hasPseudo,
|
36
|
+
valueReplacer: (condition) => `${condition} ? 'active' : null`,
|
37
|
+
},
|
38
|
+
{
|
39
|
+
attrNames: ['[pseudoFocus]'],
|
40
|
+
newAttrName: '[tuiAppearanceState]',
|
41
|
+
withTagNames: hasPseudo,
|
42
|
+
valueReplacer: (condition) => `${condition} ? 'focus' : null`,
|
43
|
+
},
|
44
|
+
{
|
45
|
+
attrNames: ['[pseudoHover]'],
|
46
|
+
newAttrName: '[tuiAppearanceState]',
|
47
|
+
withTagNames: hasPseudo,
|
48
|
+
valueReplacer: (condition) => `${condition} ? 'hover' : null`,
|
49
|
+
},
|
50
|
+
{
|
51
|
+
attrNames: ['[pseudoInvalid]'],
|
52
|
+
newAttrName: '[tuiAppearanceState]',
|
53
|
+
withTagNames: hasPseudo,
|
54
|
+
valueReplacer: (condition) => `${condition} ? 'invalid' : null`,
|
55
|
+
},
|
56
|
+
{
|
57
|
+
attrNames: ['[pseudoDisabled]'],
|
58
|
+
newAttrName: '[tuiAppearanceState]',
|
59
|
+
withTagNames: ['tui-radio-block', 'tui-radio-labeled', 'tui-radio'],
|
60
|
+
valueReplacer: (condition) => `${condition} ? 'disabled' : null`,
|
61
|
+
},
|
22
62
|
];
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ATTRS_TO_REPLACE = void 0;
|
4
4
|
const elements_1 = require("../../../../utils/templates/elements");
|
5
|
+
const inputs_1 = require("../../../../utils/templates/inputs");
|
5
6
|
exports.ATTRS_TO_REPLACE = [
|
6
7
|
{
|
7
8
|
from: {
|
@@ -59,6 +60,13 @@ exports.ATTRS_TO_REPLACE = [
|
|
59
60
|
},
|
60
61
|
to: { attrName: '[value]' },
|
61
62
|
},
|
63
|
+
{
|
64
|
+
from: {
|
65
|
+
attrName: '(removed)',
|
66
|
+
withTagNames: ['tui-file'],
|
67
|
+
},
|
68
|
+
to: { attrName: '(remove)' },
|
69
|
+
},
|
62
70
|
{
|
63
71
|
from: {
|
64
72
|
attrName: '[rounded]',
|
@@ -156,6 +164,14 @@ exports.ATTRS_TO_REPLACE = [
|
|
156
164
|
},
|
157
165
|
to: { attrName: 'appearance' },
|
158
166
|
},
|
167
|
+
{
|
168
|
+
from: {
|
169
|
+
attrName: '[mode]',
|
170
|
+
withTagNames: ['tui-marker-icon'],
|
171
|
+
withAttrsNames: ['tuiMarkerIcon'],
|
172
|
+
},
|
173
|
+
to: { attrName: '[appearance]' },
|
174
|
+
},
|
159
175
|
{
|
160
176
|
from: {
|
161
177
|
attrName: 'tuiAction',
|
@@ -213,8 +229,7 @@ exports.ATTRS_TO_REPLACE = [
|
|
213
229
|
filterFn: (element) => {
|
214
230
|
var _a;
|
215
231
|
return !(0, elements_1.hasElementAttribute)(element, 'iconAlign') ||
|
216
|
-
((_a = element.attrs
|
217
|
-
'right';
|
232
|
+
((_a = (0, inputs_1.findAttr)(element.attrs, 'iconAlign')) === null || _a === void 0 ? void 0 : _a.value) === 'right';
|
218
233
|
},
|
219
234
|
},
|
220
235
|
to: { attrName: 'iconEnd' },
|
@@ -223,7 +238,7 @@ exports.ATTRS_TO_REPLACE = [
|
|
223
238
|
from: {
|
224
239
|
attrName: 'icon',
|
225
240
|
withAttrsNames: ['tuiLink'],
|
226
|
-
filterFn: (element) => { var _a; return ((_a = element.attrs
|
241
|
+
filterFn: (element) => { var _a; return ((_a = (0, inputs_1.findAttr)(element.attrs, 'iconAlign')) === null || _a === void 0 ? void 0 : _a.value) === 'left'; },
|
227
242
|
},
|
228
243
|
to: { attrName: 'iconStart' },
|
229
244
|
},
|
@@ -241,4 +256,20 @@ exports.ATTRS_TO_REPLACE = [
|
|
241
256
|
},
|
242
257
|
to: { attrName: 'tuiTextfieldLegacy' },
|
243
258
|
},
|
259
|
+
{
|
260
|
+
from: {
|
261
|
+
attrName: 'status',
|
262
|
+
withTagNames: ['tui-notification'],
|
263
|
+
withAttrsNames: ['tuiNotification'],
|
264
|
+
},
|
265
|
+
to: { attrName: 'appearance' },
|
266
|
+
},
|
267
|
+
{
|
268
|
+
from: {
|
269
|
+
attrName: '[status]',
|
270
|
+
withTagNames: ['tui-notification'],
|
271
|
+
withAttrsNames: ['tuiNotification'],
|
272
|
+
},
|
273
|
+
to: { attrName: '[appearance]' },
|
274
|
+
},
|
244
275
|
];
|
@@ -47,4 +47,13 @@ exports.HTML_COMMENTS = [
|
|
47
47
|
withAttrs: [],
|
48
48
|
comment: 'TuiThemeNight has been removed. Please use tuiTheme attribute to set theme https://taiga-ui.dev/directives/theme',
|
49
49
|
},
|
50
|
+
{
|
51
|
+
tag: 'tui-input-files',
|
52
|
+
withAttrs: [],
|
53
|
+
comment: 'Native input inside is now required and the wrapper has changed from <tui-input-files to <label tuiInputFiles, control moved to native input. See interactive example https://taiga-ui.dev/components/input-files',
|
54
|
+
},
|
55
|
+
{
|
56
|
+
pattern: /\|\s?tuiFormatNumber\s?:/g,
|
57
|
+
comment: 'tuiFormatNumber pipe API has been changed. Learn how to migrate decimalLimit, decimal, zeroPadding: https://github.com/taiga-family/taiga-ui/issues/8335#migration',
|
58
|
+
},
|
50
59
|
];
|