@taiga-ui/cdk 4.18.0 → 4.19.0-canary.50ca026
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/classes/portals.d.ts +2 -2
- package/classes/value-transformer.d.ts +4 -0
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/time.d.ts +1 -0
- package/esm2022/classes/portals.mjs +2 -4
- package/esm2022/classes/value-transformer.mjs +8 -1
- package/esm2022/constants/version.mjs +2 -2
- package/esm2022/date-time/time.mjs +14 -17
- package/esm2022/observables/index.mjs +2 -1
- package/esm2022/observables/untracked-scheduler.mjs +11 -0
- package/esm2022/utils/focus/focused-in.mjs +4 -3
- package/esm2022/utils/math/round.mjs +12 -4
- package/fesm2022/taiga-ui-cdk-classes.mjs +8 -4
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-date-time.mjs +12 -15
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-observables.mjs +12 -3
- package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs +3 -2
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-math.mjs +12 -4
- package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
- package/observables/index.d.ts +1 -0
- package/observables/untracked-scheduler.d.ts +2 -0
- package/package.json +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +14 -0
- package/schematics/ng-update/v4/steps/migrate-providers-from.js +2 -0
- package/utils/math/round.d.ts +1 -0
package/package.json
CHANGED
@@ -25,9 +25,9 @@ const replace_modules_with_providers_1 = require("./steps/utils/replace-modules-
|
|
25
25
|
function main(options) {
|
26
26
|
return (tree, context) => {
|
27
27
|
const fileSystem = (0, get_file_system_1.getFileSystem)(tree);
|
28
|
+
(0, migrate_editor_1.migrateEditor)(fileSystem, options);
|
28
29
|
(0, replace_functions_1.replaceFunctions)(functions_1.REPLACE_FUNCTIONS);
|
29
30
|
(0, migrate_providers_from_1.migrateImportProvidersFrom)(options);
|
30
|
-
(0, migrate_editor_1.migrateEditor)(fileSystem, options);
|
31
31
|
(0, steps_1.replaceEnums)(options, enums_1.ENUMS_TO_REPLACE);
|
32
32
|
(0, migrate_root_1.migrateRoot)(fileSystem, options);
|
33
33
|
(0, replace_services_1.replaceServices)(options, constants_1.SERVICES_TO_REPLACE);
|
@@ -32,15 +32,29 @@ exports.TAGS_TO_REPLACE = [
|
|
32
32
|
to: 'input',
|
33
33
|
addAttributes: ['tuiRadio', 'type="radio"'],
|
34
34
|
},
|
35
|
+
{
|
36
|
+
from: 'tui-checkbox-block',
|
37
|
+
to: 'input',
|
38
|
+
addAttributes: ['tuiCheckbox', 'type="checkbox"', 'tuiBlock'],
|
39
|
+
filterFn: (el) => el.attrs.some((attr) => attr.name === '[hidecheckbox]'),
|
40
|
+
},
|
35
41
|
{
|
36
42
|
from: 'tui-checkbox-block',
|
37
43
|
to: 'input',
|
38
44
|
addAttributes: ['tuiCheckbox', 'type="checkbox"'],
|
45
|
+
filterFn: (el) => !el.attrs.some((attr) => attr.name === '[hidecheckbox]'),
|
46
|
+
},
|
47
|
+
{
|
48
|
+
from: 'tui-radio-block',
|
49
|
+
to: 'input',
|
50
|
+
addAttributes: ['tuiRadio', 'type="radio"', 'tuiBlock'],
|
51
|
+
filterFn: (el) => el.attrs.some((attr) => attr.name === '[hideradio]'),
|
39
52
|
},
|
40
53
|
{
|
41
54
|
from: 'tui-radio-block',
|
42
55
|
to: 'input',
|
43
56
|
addAttributes: ['tuiRadio', 'type="radio"'],
|
57
|
+
filterFn: (el) => !el.attrs.some((attr) => attr.name === '[hideradio]'),
|
44
58
|
},
|
45
59
|
{
|
46
60
|
from: 'tui-hosted-dropdown',
|
@@ -12,6 +12,8 @@ function migrateImportProvidersFrom(options) {
|
|
12
12
|
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPushModule', '@taiga-ui/kit'),
|
13
13
|
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPdfViewerModule', '@taiga-ui/kit'),
|
14
14
|
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPreviewModule', '@taiga-ui/addon-preview'),
|
15
|
+
...(0, get_named_import_references_1.getNamedImportReferences)('TuiEditor', '@taiga-ui/editor'),
|
16
|
+
...(0, get_named_import_references_1.getNamedImportReferences)('TuiEditorSocket', '@taiga-ui/editor'),
|
15
17
|
];
|
16
18
|
for (const ref of refs) {
|
17
19
|
if (ref.wasForgotten()) {
|
package/utils/math/round.d.ts
CHANGED
@@ -2,3 +2,4 @@ export declare function tuiRound(value: number, precision?: number): number;
|
|
2
2
|
export declare function tuiCeil(value: number, precision?: number): number;
|
3
3
|
export declare function tuiFloor(value: number, precision?: number): number;
|
4
4
|
export declare function tuiTrunc(value: number, precision?: number): number;
|
5
|
+
export declare function tuiIsSafeToRound(value: number, precision?: number): boolean;
|