@taiga-ui/cdk 4.52.0-canary.5601aa6 → 4.52.0-canary.58fe47a
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 +1 -1
- package/classes/control.d.ts +4 -6
- package/classes/index.d.ts +0 -1
- package/constants/index.d.ts +0 -1
- package/constants/used-icons.d.ts +2 -2
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/date-fillers.d.ts +5 -5
- package/date-time/day-range.d.ts +1 -1
- package/date-time/day.d.ts +4 -4
- package/date-time/time.d.ts +2 -2
- package/date-time/types.d.ts +1 -12
- package/directives/active-zone/active-zone.directive.d.ts +3 -4
- package/directives/auto-focus/autofocus.directive.d.ts +2 -3
- package/directives/auto-focus/autofocus.options.d.ts +1 -1
- package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
- package/directives/hovered/hovered.directive.d.ts +1 -2
- package/directives/index.d.ts +1 -5
- package/directives/media/media.directive.d.ts +8 -12
- package/directives/native-validator/native-validator.directive.d.ts +2 -2
- package/directives/obscured/obscured.directive.d.ts +4 -4
- package/directives/pan/pan.directive.d.ts +1 -2
- package/directives/platform/platform.directive.d.ts +2 -2
- package/directives/resizer/resizer.directive.d.ts +3 -4
- package/directives/swipe/swipe.directive.d.ts +1 -2
- package/directives/transitioned/transitioned.directive.d.ts +1 -0
- package/directives/value-changes/value-changes.directive.d.ts +2 -2
- package/directives/with-styles/index.d.ts +1 -0
- package/directives/with-styles/with-styles.directive.d.ts +10 -0
- package/fesm2022/taiga-ui-cdk-classes.mjs +6 -89
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +15 -17
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-date-time.mjs +35 -23
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +22 -30
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs +0 -2
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +8 -11
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-control.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +5 -8
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-element.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +1 -2
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +1 -4
- package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +4 -7
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-item.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-media.mjs +30 -55
- package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +5 -8
- package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +9 -17
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs +4 -6
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs +7 -10
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +14 -18
- package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +4 -6
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +4 -11
- package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +5 -6
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives.mjs +1 -5
- package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-observables.mjs +10 -28
- package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -6
- package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
- package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-tokens.mjs +13 -47
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs +3 -26
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-di.mjs +45 -4
- package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +16 -96
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs +22 -39
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-math.mjs +1 -12
- package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +16 -127
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils.mjs +0 -1
- package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk.mjs +1 -1
- package/index.d.ts +1 -1
- package/observables/index.d.ts +0 -2
- package/package.json +17 -59
- package/pipes/index.d.ts +0 -6
- package/pipes/obfuscate/obfuscate.options.d.ts +1 -1
- package/portals/directive.d.ts +11 -0
- package/portals/index.d.ts +4 -0
- package/portals/portal.d.ts +24 -0
- package/portals/portals.d.ts +12 -0
- package/portals/service.d.ts +15 -0
- package/schematics/collection.json +2 -1
- package/schematics/migrate-tui-let/index.js +4 -3
- package/schematics/migrate-tui-let/index.js.map +1 -1
- package/schematics/migrate-tui-let/schema.json +7 -0
- package/schematics/ng-add/constants/versions.d.ts +1 -1
- package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
- package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
- package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +1 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -1
- package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
- package/schematics/ng-update/v5/index.js +5 -0
- package/schematics/ng-update/v5/index.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js +22 -0
- package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/functions.js +46 -0
- package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +22 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js +46 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
- package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
- package/schematics/utils/angular-json-manipulations.js +0 -2
- package/schematics/utils/angular-json-manipulations.js.map +1 -1
- package/schematics/utils/run-migration.d.ts +14 -0
- package/schematics/utils/run-migration.js +27 -0
- package/schematics/utils/run-migration.js.map +1 -0
- package/schematics/utils/templates/elements.js +4 -12
- package/schematics/utils/templates/elements.js.map +1 -1
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js +1 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
- package/tokens/environment.d.ts +0 -13
- package/tokens/index.d.ts +0 -2
- package/tokens/removed-element.d.ts +0 -3
- package/types/index.d.ts +0 -2
- package/utils/browser/index.d.ts +0 -2
- package/utils/di/index.d.ts +3 -0
- package/utils/dom/get-element-obscurers.d.ts +1 -1
- package/utils/dom/index.d.ts +0 -6
- package/utils/focus/get-closest-focusable.d.ts +1 -6
- package/utils/focus/index.d.ts +4 -6
- package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -1
- package/utils/index.d.ts +0 -1
- package/utils/math/index.d.ts +0 -2
- package/utils/miscellaneous/generate-id.d.ts +1 -0
- package/utils/miscellaneous/index.d.ts +1 -11
- package/classes/portals.d.ts +0 -33
- package/constants/allow-signal-writes.d.ts +0 -2
- package/directives/click-outside/click-outside.directive.d.ts +0 -14
- package/directives/click-outside/index.d.ts +0 -1
- package/directives/droppable/droppable.directive.d.ts +0 -8
- package/directives/droppable/index.d.ts +0 -1
- package/directives/let/index.d.ts +0 -2
- package/directives/let/let-context.d.ts +0 -11
- package/directives/let/let.directive.d.ts +0 -18
- package/directives/popover/index.d.ts +0 -1
- package/directives/popover/popover.directive.d.ts +0 -14
- package/directives/repeat-times/index.d.ts +0 -1
- package/directives/repeat-times/repeat-times.directive.d.ts +0 -22
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +0 -39
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +0 -37
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-let.mjs +0 -53
- package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
- package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -61
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +0 -33
- package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -25
- package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +0 -24
- package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -25
- package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +0 -26
- package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +0 -24
- package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-services.mjs +0 -151
- package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
- package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -195
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
- package/observables/must-be-present.d.ts +0 -5
- package/observables/query-list-observable.d.ts +0 -6
- package/pipes/animation/animation.pipe.d.ts +0 -13
- package/pipes/animation/index.d.ts +0 -1
- package/pipes/is-present/index.d.ts +0 -1
- package/pipes/is-present/is-present.pipe.d.ts +0 -7
- package/pipes/keys/index.d.ts +0 -1
- package/pipes/keys/keys.pipe.d.ts +0 -7
- package/pipes/repeat-times/index.d.ts +0 -7
- package/pipes/replace/index.d.ts +0 -1
- package/pipes/replace/replace.pipe.d.ts +0 -7
- package/pipes/to-array/index.d.ts +0 -1
- package/pipes/to-array/to-array.pipe.d.ts +0 -7
- package/services/id.service.d.ts +0 -8
- package/services/index.d.ts +0 -4
- package/services/popover.service.d.ts +0 -25
- package/services/scroll.service.d.ts +0 -13
- package/services/theme-color.service.d.ts +0 -18
- package/tokens/base-href.d.ts +0 -2
- package/tokens/range.d.ts +0 -5
- package/types/safe-html.d.ts +0 -2
- package/types/values-of.d.ts +0 -1
- package/utils/browser/is-apple.d.ts +0 -11
- package/utils/browser/is-ios.d.ts +0 -6
- package/utils/color/get-gradient-data.d.ts +0 -1
- package/utils/color/hex-to-rgb.d.ts +0 -1
- package/utils/color/hex-to-rgba.d.ts +0 -3
- package/utils/color/hsv-to-rgb.d.ts +0 -4
- package/utils/color/index.d.ts +0 -9
- package/utils/color/parse-color.d.ts +0 -1
- package/utils/color/parse-gradient.d.ts +0 -10
- package/utils/color/rgb-to-hex.d.ts +0 -1
- package/utils/color/rgb-to-hsv.d.ts +0 -1
- package/utils/color/rgba-to-hex.d.ts +0 -2
- package/utils/dom/get-element-point.d.ts +0 -2
- package/utils/dom/is-current-target.d.ts +0 -1
- package/utils/dom/is-inside-iframe.d.ts +0 -4
- package/utils/dom/is-node-in.d.ts +0 -8
- package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
- package/utils/dom/value-binding.d.ts +0 -3
- package/utils/focus/blur-native-focused.d.ts +0 -4
- package/utils/focus/is-native-mouse-focusable.d.ts +0 -1
- package/utils/math/to-integer.d.ts +0 -1
- package/utils/math/to-radians.d.ts +0 -4
- package/utils/miscellaneous/change-date-separator.d.ts +0 -1
- package/utils/miscellaneous/create-token.d.ts +0 -9
- package/utils/miscellaneous/directive-listener.d.ts +0 -9
- package/utils/miscellaneous/flat-length.d.ts +0 -6
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -8
- package/utils/miscellaneous/is-falsy.d.ts +0 -1
- package/utils/miscellaneous/is-valid-url.d.ts +0 -4
- package/utils/miscellaneous/uniq-by.d.ts +0 -1
- /package/utils/{miscellaneous → di}/directive-binding.d.ts +0 -0
- /package/utils/{miscellaneous → di}/provide-options.d.ts +0 -0
- /package/utils/{miscellaneous → di}/provide.d.ts +0 -0
- /package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +0 -0
- /package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +0 -0
- /package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/cdk",
|
|
3
|
-
"version": "4.52.0-canary.
|
|
3
|
+
"version": "4.52.0-canary.58fe47a",
|
|
4
4
|
"description": "Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
"directive"
|
|
13
13
|
],
|
|
14
14
|
"homepage": "https://github.com/taiga-family/taiga-ui",
|
|
15
|
-
"repository":
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/taiga-family/taiga-ui"
|
|
18
|
+
},
|
|
16
19
|
"license": "Apache-2.0",
|
|
17
20
|
"exports": {
|
|
18
21
|
"./schematics/*": "./schematics/*",
|
|
@@ -47,9 +50,9 @@
|
|
|
47
50
|
"types": "./pipes/index.d.ts",
|
|
48
51
|
"default": "./fesm2022/taiga-ui-cdk-pipes.mjs"
|
|
49
52
|
},
|
|
50
|
-
"./
|
|
51
|
-
"types": "./
|
|
52
|
-
"default": "./fesm2022/taiga-ui-cdk-
|
|
53
|
+
"./portals": {
|
|
54
|
+
"types": "./portals/index.d.ts",
|
|
55
|
+
"default": "./fesm2022/taiga-ui-cdk-portals.mjs"
|
|
53
56
|
},
|
|
54
57
|
"./tokens": {
|
|
55
58
|
"types": "./tokens/index.d.ts",
|
|
@@ -75,10 +78,6 @@
|
|
|
75
78
|
"types": "./directives/auto-focus/index.d.ts",
|
|
76
79
|
"default": "./fesm2022/taiga-ui-cdk-directives-auto-focus.mjs"
|
|
77
80
|
},
|
|
78
|
-
"./directives/click-outside": {
|
|
79
|
-
"types": "./directives/click-outside/index.d.ts",
|
|
80
|
-
"default": "./fesm2022/taiga-ui-cdk-directives-click-outside.mjs"
|
|
81
|
-
},
|
|
82
81
|
"./directives/control": {
|
|
83
82
|
"types": "./directives/control/index.d.ts",
|
|
84
83
|
"default": "./fesm2022/taiga-ui-cdk-directives-control.mjs"
|
|
@@ -87,10 +86,6 @@
|
|
|
87
86
|
"types": "./directives/copy-processor/index.d.ts",
|
|
88
87
|
"default": "./fesm2022/taiga-ui-cdk-directives-copy-processor.mjs"
|
|
89
88
|
},
|
|
90
|
-
"./directives/droppable": {
|
|
91
|
-
"types": "./directives/droppable/index.d.ts",
|
|
92
|
-
"default": "./fesm2022/taiga-ui-cdk-directives-droppable.mjs"
|
|
93
|
-
},
|
|
94
89
|
"./directives/element": {
|
|
95
90
|
"types": "./directives/element/index.d.ts",
|
|
96
91
|
"default": "./fesm2022/taiga-ui-cdk-directives-element.mjs"
|
|
@@ -115,10 +110,6 @@
|
|
|
115
110
|
"types": "./directives/item/index.d.ts",
|
|
116
111
|
"default": "./fesm2022/taiga-ui-cdk-directives-item.mjs"
|
|
117
112
|
},
|
|
118
|
-
"./directives/let": {
|
|
119
|
-
"types": "./directives/let/index.d.ts",
|
|
120
|
-
"default": "./fesm2022/taiga-ui-cdk-directives-let.mjs"
|
|
121
|
-
},
|
|
122
113
|
"./directives/media": {
|
|
123
114
|
"types": "./directives/media/index.d.ts",
|
|
124
115
|
"default": "./fesm2022/taiga-ui-cdk-directives-media.mjs"
|
|
@@ -139,10 +130,6 @@
|
|
|
139
130
|
"types": "./directives/platform/index.d.ts",
|
|
140
131
|
"default": "./fesm2022/taiga-ui-cdk-directives-platform.mjs"
|
|
141
132
|
},
|
|
142
|
-
"./directives/popover": {
|
|
143
|
-
"types": "./directives/popover/index.d.ts",
|
|
144
|
-
"default": "./fesm2022/taiga-ui-cdk-directives-popover.mjs"
|
|
145
|
-
},
|
|
146
133
|
"./directives/resizer": {
|
|
147
134
|
"types": "./directives/resizer/index.d.ts",
|
|
148
135
|
"default": "./fesm2022/taiga-ui-cdk-directives-resizer.mjs"
|
|
@@ -151,10 +138,6 @@
|
|
|
151
138
|
"types": "./directives/swipe/index.d.ts",
|
|
152
139
|
"default": "./fesm2022/taiga-ui-cdk-directives-swipe.mjs"
|
|
153
140
|
},
|
|
154
|
-
"./directives/repeat-times": {
|
|
155
|
-
"types": "./directives/repeat-times/index.d.ts",
|
|
156
|
-
"default": "./fesm2022/taiga-ui-cdk-directives-repeat-times.mjs"
|
|
157
|
-
},
|
|
158
141
|
"./directives/transitioned": {
|
|
159
142
|
"types": "./directives/transitioned/index.d.ts",
|
|
160
143
|
"default": "./fesm2022/taiga-ui-cdk-directives-transitioned.mjs"
|
|
@@ -171,26 +154,18 @@
|
|
|
171
154
|
"types": "./directives/visual-viewport/index.d.ts",
|
|
172
155
|
"default": "./fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs"
|
|
173
156
|
},
|
|
157
|
+
"./directives/with-styles": {
|
|
158
|
+
"types": "./directives/with-styles/index.d.ts",
|
|
159
|
+
"default": "./fesm2022/taiga-ui-cdk-directives-with-styles.mjs"
|
|
160
|
+
},
|
|
174
161
|
"./directives/zoom": {
|
|
175
162
|
"types": "./directives/zoom/index.d.ts",
|
|
176
163
|
"default": "./fesm2022/taiga-ui-cdk-directives-zoom.mjs"
|
|
177
164
|
},
|
|
178
|
-
"./pipes/animation": {
|
|
179
|
-
"types": "./pipes/animation/index.d.ts",
|
|
180
|
-
"default": "./fesm2022/taiga-ui-cdk-pipes-animation.mjs"
|
|
181
|
-
},
|
|
182
165
|
"./pipes/filter": {
|
|
183
166
|
"types": "./pipes/filter/index.d.ts",
|
|
184
167
|
"default": "./fesm2022/taiga-ui-cdk-pipes-filter.mjs"
|
|
185
168
|
},
|
|
186
|
-
"./pipes/is-present": {
|
|
187
|
-
"types": "./pipes/is-present/index.d.ts",
|
|
188
|
-
"default": "./fesm2022/taiga-ui-cdk-pipes-is-present.mjs"
|
|
189
|
-
},
|
|
190
|
-
"./pipes/keys": {
|
|
191
|
-
"types": "./pipes/keys/index.d.ts",
|
|
192
|
-
"default": "./fesm2022/taiga-ui-cdk-pipes-keys.mjs"
|
|
193
|
-
},
|
|
194
169
|
"./pipes/mapper": {
|
|
195
170
|
"types": "./pipes/mapper/index.d.ts",
|
|
196
171
|
"default": "./fesm2022/taiga-ui-cdk-pipes-mapper.mjs"
|
|
@@ -199,26 +174,10 @@
|
|
|
199
174
|
"types": "./pipes/obfuscate/index.d.ts",
|
|
200
175
|
"default": "./fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs"
|
|
201
176
|
},
|
|
202
|
-
"./pipes/repeat-times": {
|
|
203
|
-
"types": "./pipes/repeat-times/index.d.ts",
|
|
204
|
-
"default": "./fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs"
|
|
205
|
-
},
|
|
206
|
-
"./pipes/replace": {
|
|
207
|
-
"types": "./pipes/replace/index.d.ts",
|
|
208
|
-
"default": "./fesm2022/taiga-ui-cdk-pipes-replace.mjs"
|
|
209
|
-
},
|
|
210
|
-
"./pipes/to-array": {
|
|
211
|
-
"types": "./pipes/to-array/index.d.ts",
|
|
212
|
-
"default": "./fesm2022/taiga-ui-cdk-pipes-to-array.mjs"
|
|
213
|
-
},
|
|
214
177
|
"./utils/browser": {
|
|
215
178
|
"types": "./utils/browser/index.d.ts",
|
|
216
179
|
"default": "./fesm2022/taiga-ui-cdk-utils-browser.mjs"
|
|
217
180
|
},
|
|
218
|
-
"./utils/color": {
|
|
219
|
-
"types": "./utils/color/index.d.ts",
|
|
220
|
-
"default": "./fesm2022/taiga-ui-cdk-utils-color.mjs"
|
|
221
|
-
},
|
|
222
181
|
"./utils/di": {
|
|
223
182
|
"types": "./utils/di/index.d.ts",
|
|
224
183
|
"default": "./fesm2022/taiga-ui-cdk-utils-di.mjs"
|
|
@@ -244,16 +203,15 @@
|
|
|
244
203
|
"tslib": "2.8.1"
|
|
245
204
|
},
|
|
246
205
|
"peerDependencies": {
|
|
247
|
-
"@angular/animations": ">=19.0.0",
|
|
248
206
|
"@angular/cdk": ">=19.0.0",
|
|
249
207
|
"@angular/common": ">=19.0.0",
|
|
250
208
|
"@angular/core": ">=19.0.0",
|
|
251
209
|
"@angular/forms": ">=19.0.0",
|
|
252
|
-
"@ng-web-apis/common": "^4.12.
|
|
253
|
-
"@ng-web-apis/mutation-observer": "^4.12.
|
|
254
|
-
"@ng-web-apis/platform": "^4.12.
|
|
255
|
-
"@ng-web-apis/resize-observer": "^4.12.
|
|
256
|
-
"@ng-web-apis/screen-orientation": "^4.12.
|
|
210
|
+
"@ng-web-apis/common": "^4.12.2",
|
|
211
|
+
"@ng-web-apis/mutation-observer": "^4.12.2",
|
|
212
|
+
"@ng-web-apis/platform": "^4.12.1",
|
|
213
|
+
"@ng-web-apis/resize-observer": "^4.12.2",
|
|
214
|
+
"@ng-web-apis/screen-orientation": "^4.12.1",
|
|
257
215
|
"@taiga-ui/event-plugins": "^4.7.0",
|
|
258
216
|
"@taiga-ui/polymorpheus": "^4.9.0",
|
|
259
217
|
"rxjs": ">=7.0.0"
|
package/pipes/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export * from '@taiga-ui/cdk/pipes/animation';
|
|
2
1
|
export * from '@taiga-ui/cdk/pipes/filter';
|
|
3
|
-
export * from '@taiga-ui/cdk/pipes/is-present';
|
|
4
|
-
export * from '@taiga-ui/cdk/pipes/keys';
|
|
5
2
|
export * from '@taiga-ui/cdk/pipes/mapper';
|
|
6
3
|
export * from '@taiga-ui/cdk/pipes/obfuscate';
|
|
7
|
-
export * from '@taiga-ui/cdk/pipes/repeat-times';
|
|
8
|
-
export * from '@taiga-ui/cdk/pipes/replace';
|
|
9
|
-
export * from '@taiga-ui/cdk/pipes/to-array';
|
|
@@ -6,7 +6,7 @@ export interface TuiObfuscateOptions {
|
|
|
6
6
|
* Default function used to obfuscate a string
|
|
7
7
|
* if no recipe was found.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
default(value: string, symbol?: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* Collection of named recipes for different obfuscation scenarios.
|
|
12
12
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
|
2
|
+
import { type TuiPortalContext } from './portal';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TuiPortalDirective<T> extends PolymorpheusTemplate<TuiPortalContext<T>> {
|
|
5
|
+
private readonly service;
|
|
6
|
+
readonly options: import("@angular/core").InputSignal<Partial<T>>;
|
|
7
|
+
readonly open: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
readonly openChange: import("@angular/core").OutputRef<boolean>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPortalDirective<any>, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiPortalDirective<any>, never, never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "openChange": "openChange"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Provider, type Type } from '@angular/core';
|
|
2
|
+
import { type TuiContext } from '@taiga-ui/cdk/types';
|
|
3
|
+
import { PolymorpheusComponent, type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
4
|
+
import { Observable, type Observer } from 'rxjs';
|
|
5
|
+
import { type TuiPortalService } from './service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export type TuiPortalContext<T, O = void> = T & TuiContext<Observer<O>> & {
|
|
8
|
+
readonly content: PolymorpheusContent<TuiPortalContext<T, O>>;
|
|
9
|
+
readonly createdAt: number;
|
|
10
|
+
readonly id: string;
|
|
11
|
+
completeWith(value: O): void;
|
|
12
|
+
};
|
|
13
|
+
export declare abstract class TuiPortal<T, K = void> {
|
|
14
|
+
protected readonly service: TuiPortalService;
|
|
15
|
+
protected abstract readonly component: Type<any>;
|
|
16
|
+
protected abstract readonly options: T;
|
|
17
|
+
private readonly injector;
|
|
18
|
+
constructor(service: TuiPortalService);
|
|
19
|
+
open<G = void>(content: PolymorpheusContent<TuiPortalContext<T, K extends void ? G : K>>, options?: Partial<T>): Observable<K extends void ? G : K>;
|
|
20
|
+
protected add(component: PolymorpheusComponent<unknown>): () => void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPortal<any, any>, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TuiPortal<any, any>>;
|
|
23
|
+
}
|
|
24
|
+
export declare function tuiAsPortal(portal: typeof TuiPortal<any>): Provider;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ComponentRef, type EmbeddedViewRef, type TemplateRef } from '@angular/core';
|
|
2
|
+
import { type PolymorpheusComponent } from '@taiga-ui/polymorpheus';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class TuiPortals {
|
|
5
|
+
private readonly vcr;
|
|
6
|
+
private readonly injector;
|
|
7
|
+
constructor();
|
|
8
|
+
addComponent<C>(component: PolymorpheusComponent<C>): ComponentRef<C>;
|
|
9
|
+
addTemplate<C>(templateRef: TemplateRef<C>, context?: C): EmbeddedViewRef<C>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPortals, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiPortals, never, never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ComponentRef, type EmbeddedViewRef, type TemplateRef } from '@angular/core';
|
|
2
|
+
import { PolymorpheusComponent } from '@taiga-ui/polymorpheus';
|
|
3
|
+
import { type TuiPortals } from './portals';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class TuiPortalService {
|
|
6
|
+
protected host?: TuiPortals;
|
|
7
|
+
attach(host: TuiPortals): void;
|
|
8
|
+
add<C>(content: PolymorpheusComponent<C>): ComponentRef<C>;
|
|
9
|
+
add<C>(content: TemplateRef<C>, context?: C): EmbeddedViewRef<C>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPortalService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TuiPortalService>;
|
|
12
|
+
}
|
|
13
|
+
export declare class TuiNoHostException extends Error {
|
|
14
|
+
constructor();
|
|
15
|
+
}
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"migrateTuiLet": {
|
|
34
34
|
"description": "Migrate TuiLet directive to @let control flow",
|
|
35
|
-
"factory": "./migrate-tui-let/index"
|
|
35
|
+
"factory": "./migrate-tui-let/index",
|
|
36
|
+
"schema": "./migrate-tui-let/schema.json"
|
|
36
37
|
},
|
|
37
38
|
"updateToV5": {
|
|
38
39
|
"private": true,
|
|
@@ -10,6 +10,7 @@ const remove_module_1 = require("../utils/remove-module");
|
|
|
10
10
|
const elements_1 = require("../utils/templates/elements");
|
|
11
11
|
const get_component_templates_1 = require("../utils/templates/get-component-templates");
|
|
12
12
|
const template_resource_1 = require("../utils/templates/template-resource");
|
|
13
|
+
// TODO: move to migration in v5
|
|
13
14
|
function tuiLetMigrationGenerator(options) {
|
|
14
15
|
return (tree) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
16
|
var _a;
|
|
@@ -39,7 +40,7 @@ function tuiLetMigrationGenerator(options) {
|
|
|
39
40
|
(template.lastIndexOf('\n', sourceCodeLocation.startOffset) + 1);
|
|
40
41
|
const indentStr = ' '.repeat(indent);
|
|
41
42
|
const [expr, key] = value.split(' as ').map((c) => c.trim());
|
|
42
|
-
if (new RegExp(`@let
|
|
43
|
+
if (new RegExp(String.raw `@let\s+${key}\s+=`).test(template)) {
|
|
43
44
|
!options['skip-logs'] &&
|
|
44
45
|
(0, ng_morph_1.errorLog)(`The @let with key ${key} is already defined`);
|
|
45
46
|
continue;
|
|
@@ -47,8 +48,8 @@ function tuiLetMigrationGenerator(options) {
|
|
|
47
48
|
recorder.insertLeft(templateOffset + sourceCodeLocation.startOffset, `@let ${key} = ${expr};\n${indentStr}`);
|
|
48
49
|
if (tagName === 'ng-container' && attrs.length === 1) {
|
|
49
50
|
if (childNodes.length) {
|
|
50
|
-
const firstNode = childNodes
|
|
51
|
-
const lastNode = childNodes
|
|
51
|
+
const firstNode = childNodes[0];
|
|
52
|
+
const lastNode = childNodes[0];
|
|
52
53
|
recorder.remove(templateOffset + sourceCodeLocation.startOffset, firstNode.sourceCodeLocation.startOffset -
|
|
53
54
|
sourceCodeLocation.startOffset);
|
|
54
55
|
recorder.remove(templateOffset + lastNode.sourceCodeLocation.endOffset, sourceCodeLocation.endOffset -
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/cdk/schematics/migrate-tui-let/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/cdk/schematics/migrate-tui-let/index.ts"],"names":[],"mappings":";;AAiBA,2CA4FC;;AA5GD,qEAAmE;AACnE,uCAAsF;AAEtF,4CAAuC;AAEvC,wDAAkD;AAClD,0DAAoD;AACpD,0DAAsE;AACtE,wFAAiF;AACjF,4EAI8C;AAE9C,gCAAgC;AAChC,SAAwB,wBAAwB,CAAC,OAAkB;IAC/D,OAAO,CAAO,IAAU,EAAiB,EAAE;;QACvC,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,0BAAW,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAElD,MAAM,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC;QAElD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACrB,CAAC,OAAO,CAAC,WAAW,CAAC;gBACjB,IAAA,mBAAQ,EAAC,wDAAwD,CAAC,CAAC;YAEvE,OAAO;QACX,CAAC;QAED,MAAM,GAAG,GAAG,IAAA,wBAAa,EAAC,IAAI,EAAE,IAAI,EAAE,qBAAS,CAAC,CAAC;QACjD,MAAM,UAAU,GAAG,GAAG,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC;QAE1C,IAAA,2BAAgB,EAAC,GAAG,CAAC,CAAC;QAEtB,IAAA,4BAAY,EAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;QAExC,MAAM,SAAS,GAAG,IAAA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N,CAAC;YACL,CAAC;QACL,CAAC;QAED,UAAU,CAAC,WAAW,EAAE,CAAC;QACzB,IAAA,4BAAiB,GAAE,CAAC;IACxB,CAAC,CAAA,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TAIGA_VERSION = "^4.52.0-canary.
|
|
1
|
+
export declare const TAIGA_VERSION = "^4.52.0-canary.58fe47a";
|
|
@@ -7,9 +7,9 @@ export interface ReplacementAttributeValue {
|
|
|
7
7
|
readonly to: string;
|
|
8
8
|
}> | ((value: string) => string);
|
|
9
9
|
readonly withTagNames?: string[];
|
|
10
|
-
readonly filterFn?: (el: Element) => boolean;
|
|
11
10
|
readonly directiveModule?: {
|
|
12
11
|
readonly moduleSpecifier: string;
|
|
13
12
|
readonly name: string;
|
|
14
13
|
};
|
|
14
|
+
filterFn?(el: Element): boolean;
|
|
15
15
|
}
|
|
@@ -2,9 +2,9 @@ import { type Element } from 'parse5/dist/tree-adapters/default';
|
|
|
2
2
|
export interface ReplacementAttribute {
|
|
3
3
|
readonly from: {
|
|
4
4
|
readonly attrName: string;
|
|
5
|
-
readonly filterFn?: (element: Element) => boolean;
|
|
6
5
|
readonly withAttrsNames?: string[];
|
|
7
6
|
readonly withTagNames?: string[];
|
|
7
|
+
filterFn?(element: Element): boolean;
|
|
8
8
|
};
|
|
9
9
|
readonly to: {
|
|
10
10
|
readonly attrName: string;
|
|
@@ -12,7 +12,7 @@ function renameCssVars(pattern = constants_1.ALL_FILES) {
|
|
|
12
12
|
// leave comments
|
|
13
13
|
if (!file.getFilePath().endsWith('html')) {
|
|
14
14
|
palette_1.DEPRECATE_VARS_WITH_COMMENT.forEach((variable) => {
|
|
15
|
-
const wordRegex = new RegExp(`(
|
|
15
|
+
const wordRegex = new RegExp(String.raw `(^|\n)(?=[^\n]*${variable}\b)`, 'g');
|
|
16
16
|
text = text.replaceAll(wordRegex, `$1// ${palette_1.NIGHT_VAR_COMMENT}\n`);
|
|
17
17
|
});
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rename-css-vars.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.ts"],"names":[],"mappings":";;AAWA,
|
|
1
|
+
{"version":3,"file":"rename-css-vars.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.ts"],"names":[],"mappings":";;AAWA,sCAuDC;AAlED,8BAA8B;AAC9B,uCAAwC;AAExC,kDAA6C;AAC7C,uCAKmB;AAEnB,SAAgB,aAAa,CAAC,OAAO,GAAG,qBAAS;IAC7C,MAAM,WAAW,GAAG,IAAA,yBAAc,EAAC,OAAO,CAAC,CAAC;IAE5C,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,IAAI,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAE9B,iBAAiB;QACjB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YACvC,qCAA2B,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAC7C,MAAM,SAAS,GAAG,IAAI,MAAM,CACxB,MAAM,CAAC,GAAG,CAAA,kBAAkB,QAAQ,KAAK,EACzC,GAAG,CACN,CAAC;gBAEF,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,QAAQ,2BAAiB,IAAI,CAAC,CAAC;YACrE,CAAC,CAAC,CAAC;QACP,CAAC;QAED,MAAM,YAAY,GAA2B,EAAE,CAAC;QAEhD,MAAM,CAAC,IAAI,CAAC,yBAAe,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YAChD,YAAY,CAAC,GAAG,CAAC,GAAG,iBAAiB,KAAK,IAAI,CAAC;QACnD,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,OAAO,CAAC,yBAAe,CAA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AE,EAAE,GAAG,CAAC;YAChC,EAAE;SACL,CAAC,CAAC;aACF,OAAO,CAAC,CAAC,EAAC,IAAI,EAAE,EAAE,EAAC,EAAE,EAAE;YACpB,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;QAEP,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MIGRATION_WARNINGS = void 0;
|
|
4
|
-
const ILLUSTRATION_WARNING_MESSAGE = 'TuiIllustrationsModule and TuiIllustrationModePipe were deleted. Import TuiIconPipe and use <img [src]="\'@tui.
|
|
4
|
+
const ILLUSTRATION_WARNING_MESSAGE = 'TuiIllustrationsModule and TuiIllustrationModePipe were deleted. Import TuiIconPipe and use <img [src]="\'@tui.illustrations.pack.icon-name\' | tuiIcon" /> instead. See https://taiga-ui.tcsbank.ru/icons';
|
|
5
5
|
exports.MIGRATION_WARNINGS = [
|
|
6
6
|
{
|
|
7
7
|
name: 'TuiNumberMaskOptions',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-warnings.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts"],"names":[],"mappings":";;;AAEA,MAAM,4BAA4B,GAC9B,
|
|
1
|
+
{"version":3,"file":"migration-warnings.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts"],"names":[],"mappings":";;;AAEA,MAAM,4BAA4B,GAC9B,4MAA4M,CAAC;AAEpM,QAAA,kBAAkB,GAAuB;IAClD;QACI,IAAI,EAAE,sBAAsB;QAC5B,eAAe,EAAE,gBAAgB;QACjC,OAAO,EAAE,qEAAqE;KACjF;IACD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C/H;IACD;QACI,IAAI,EAAE,mBAAmB;QACzB,eAAe,EAAE,0BAA0B;QAC3C,OAAO,EACH,4GAA4G;KACnH;IACD;QACI,IAAI,EAAE,wBAAwB;QAC9B,eAAe,EAAE,6BAA6B;QAC9C,OAAO,EAAE,4BAA4B;KACxC;IACD;QACI,IAAI,EAAE,sBAAsB;QAC5B,eAAe,EAAE,6BAA6B;QAC9C,OAAO,EAAE,4BAA4B;KACxC;IACD;QACI,IAAI,EAAE,yBAAyB;QAC/B,eAAe,EAAE,6BAA6B;QAC9C,OAAO,EAAE,4BAA4B;KACxC;IACD;QACI,IAAI,EAAE,mBAAmB;QACzB,eAAe,EAAE,gBAAgB;QACjC,OAAO,EACH,oHAAoH;KAC3H;IACD;QACI,IAAI,EAAE,yBAAyB;QAC/B,eAAe,EAAE,gBAAgB;QACjC,OAAO,EACH,wIAAwI;KAC/I;IACD;QACI,IAAI,EAAE,2BAA2B;QACjC,eAAe,EAAE,eAAe;QAChC,OAAO,EACH,yGAAyG;KAChH;IACD;QACI,IAAI,EAAE,oBAAoB;QAC1B,eAAe,EAAE,eAAe;QAChC,OAAO,EACH,wJAAwJ;KAC/J;IACD;QACI,IAAI,EAAE,mBAAmB;QACzB,eAAe,EAAE,gBAAgB;QACjC,OAAO,EACH,wIAAwI;KAC/I;CACJ,CAAC"}
|
|
@@ -2,12 +2,12 @@ import { type DevkitFileSystem, type UpdateRecorder } from 'ng-morph';
|
|
|
2
2
|
import { type TuiSchema } from '../../../ng-add/schema';
|
|
3
3
|
import { type TemplateResource } from '../../interfaces/template-resource';
|
|
4
4
|
export declare function getAction<T>({ action, requiredData, }: {
|
|
5
|
-
action
|
|
5
|
+
action({ resource, fileSystem, recorder, data, }: {
|
|
6
6
|
fileSystem: DevkitFileSystem;
|
|
7
7
|
recorder: UpdateRecorder;
|
|
8
8
|
data: T;
|
|
9
9
|
resource: TemplateResource;
|
|
10
|
-
})
|
|
10
|
+
}): void;
|
|
11
11
|
requiredData: T;
|
|
12
12
|
}): ({ resource, fileSystem, recorder, }: {
|
|
13
13
|
fileSystem: DevkitFileSystem;
|
|
@@ -15,7 +15,7 @@ function updateTuiMapper(options) {
|
|
|
15
15
|
const parent = ref.getParent();
|
|
16
16
|
if (ng_morph_1.Node.isTypeReference(parent)) {
|
|
17
17
|
const typeArguments = parent.getTypeArguments();
|
|
18
|
-
if (
|
|
18
|
+
if ((typeArguments === null || typeArguments === void 0 ? void 0 : typeArguments.length) !== 2) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
21
|
const [inputType] = typeArguments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-tui-mapper.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts"],"names":[],"mappings":";;AAsDA,4CAKC;AA3DD,uCAOkB;AAGlB,4FAAoF;AACpF,uEAAiE;AAEjE,SAAS,eAAe,CAAC,OAAkB;IACvC,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EACH,GAAG,2BAAgB,GAAG,yBAAc,iDAAiD,CACxF,CAAC;IAEN,MAAM,IAAI,GAAG,IAAA,sDAAwB,EAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAEpE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,IAAI,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QAED,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;QAE/B,IAAI,eAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAEhD,IAAI,
|
|
1
|
+
{"version":3,"file":"restore-tui-mapper.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts"],"names":[],"mappings":";;AAsDA,4CAKC;AA3DD,uCAOkB;AAGlB,4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AC,CAAC;IACzB,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAE9B,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,IAAA,mBAAQ,EAAC,GAAG,wBAAa,2BAA2B,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -15,7 +15,7 @@ function updateTuiMatcher(options) {
|
|
|
15
15
|
const parent = ref.getParent();
|
|
16
16
|
if (ng_morph_1.Node.isTypeReference(parent)) {
|
|
17
17
|
const typeArguments = parent.getTypeArguments();
|
|
18
|
-
if (
|
|
18
|
+
if ((typeArguments === null || typeArguments === void 0 ? void 0 : typeArguments.length) !== 1) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
21
|
const [inputType] = typeArguments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-tui-matcher.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts"],"names":[],"mappings":";;AAsDA,8CAKC;AA3DD,uCAOkB;AAGlB,4FAAoF;AACpF,uEAAiE;AAEjE,SAAS,gBAAgB,CAAC,OAAkB;IACxC,CAAC,OAAO,CAAC,WAAW,CAAC;QACjB,IAAA,kBAAO,EACH,GAAG,2BAAgB,GAAG,yBAAc,kDAAkD,CACzF,CAAC;IAEN,MAAM,IAAI,GAAG,IAAA,sDAAwB,EAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IAErE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,IAAI,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QAED,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;QAE/B,IAAI,eAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAEhD,IAAI,
|
|
1
|
+
{"version":3,"file":"restore-tui-matcher.js","sourceRoot":"","sources":["../../../../../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EAAC;KAC7D,CAAC,CAAC;AACP,CAAC;AAED,SAAgB,iBAAiB,CAAC,OAAkB;IAChD,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1B,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAE/B,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,IAAA,mBAAQ,EAAC,GAAG,wBAAa,2BAA2B,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -13,7 +13,7 @@ const DIRECTION_MAPPING = {
|
|
|
13
13
|
const SPACE = 0.25;
|
|
14
14
|
// .tui-space(top, 4);
|
|
15
15
|
// @include tui-space(top, 4);
|
|
16
|
-
const MIXIN_RE = new RegExp(`(?:@include
|
|
16
|
+
const MIXIN_RE = new RegExp(String.raw `(?:@include\s|\.)tui-space\((?<direction>${Object.keys(DIRECTION_MAPPING).join('|')}),\s?(?<size>-?\d+)\)(\s?!important)?;`, 'g');
|
|
17
17
|
function migrateSpaceMixins(fileContent) {
|
|
18
18
|
return fileContent.replaceAll(MIXIN_RE, (_, direction, size, important = '') => `${DIRECTION_MAPPING[direction].map((property) => `${property}: ${Number(size) * SPACE}rem${important};`).join('\n')}`);
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-space-mixins.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/migrate-space-mixins.ts"],"names":[],"mappings":";;AAmBA,gDAMC;AAzBD,MAAM,iBAAiB,GAAG;IACtB,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,GAAG,EAAE,CAAC,YAAY,CAAC;IACnB,MAAM,EAAE,CAAC,eAAe,CAAC;IACzB,IAAI,EAAE,CAAC,aAAa,CAAC;IACrB,KAAK,EAAE,CAAC,cAAc,CAAC;IACvB,QAAQ,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;IACzC,UAAU,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;CAC9C,CAAC;AAEF,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,sBAAsB;AACtB,8BAA8B;AAC9B,MAAM,QAAQ,GAAG,IAAI,MAAM,CACvB
|
|
1
|
+
{"version":3,"file":"migrate-space-mixins.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v4/steps/styles/migrate-space-mixins.ts"],"names":[],"mappings":";;AAmBA,gDAMC;AAzBD,MAAM,iBAAiB,GAAG;IACtB,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,GAAG,EAAE,CAAC,YAAY,CAAC;IACnB,MAAM,EAAE,CAAC,eAAe,CAAC;IACzB,IAAI,EAAE,CAAC,aAAa,CAAC;IACrB,KAAK,EAAE,CAAC,cAAc,CAAC;IACvB,QAAQ,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;IACzC,UAAU,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;CAC9C,CAAC;AAEF,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,sBAAsB;AACtB,8BAA8B;AAC9B,MAAM,QAAQ,GAAG,IAAI,MAAM,CACvB,MAAM,CAAC,GAAG,CAAA,4CAA4C,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,wCAAwC,EACtI,GAAG,CACN,CAAC;AAEF,SAAgB,kBAAkB,CAAC,WAAmB;IAClD,OAAO,WAAW,CAAC,UAAU,CACzB,QAAQ,EACR,CAAC,CAAC,EAAE,SAAyC,EAAE,IAAY,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,CAC3E,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,QAAQ,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC7H,CAAC;AACN,CAAC"}
|
|
@@ -7,9 +7,12 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
7
7
|
const ng_morph_1 = require("ng-morph");
|
|
8
8
|
const versions_1 = require("../../ng-add/constants/versions");
|
|
9
9
|
const get_execution_time_1 = require("../../utils/get-execution-time");
|
|
10
|
+
const replace_identifier_1 = require("../steps/replace-identifier");
|
|
10
11
|
const get_file_system_1 = require("../utils/get-file-system");
|
|
11
12
|
const replace_functions_1 = require("../utils/replace-functions");
|
|
12
13
|
const functions_1 = require("./steps/constants/functions");
|
|
14
|
+
const identifiers_to_replace_1 = require("./steps/constants/identifiers-to-replace");
|
|
15
|
+
const migrate_templates_1 = require("./steps/migrate-templates");
|
|
13
16
|
const migrate_tokens_1 = require("./steps/migrate-tokens/migrate-tokens");
|
|
14
17
|
const update_tsconfig_1 = require("./steps/migrate-tokens/update-tsconfig");
|
|
15
18
|
function main(options) {
|
|
@@ -18,6 +21,8 @@ function main(options) {
|
|
|
18
21
|
(0, migrate_tokens_1.migrateTokens)(tree, options);
|
|
19
22
|
(0, update_tsconfig_1.updateTsConfig)(tree, options);
|
|
20
23
|
(0, replace_functions_1.replaceFunctions)(functions_1.REPLACE_FUNCTIONS);
|
|
24
|
+
(0, replace_identifier_1.replaceIdentifiers)(options, identifiers_to_replace_1.IDENTIFIERS_TO_REPLACE);
|
|
25
|
+
(0, migrate_templates_1.migrateTemplates)(fileSystem, options);
|
|
21
26
|
fileSystem.commitEdits();
|
|
22
27
|
(0, ng_morph_1.saveActiveProject)();
|
|
23
28
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/v5/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/cdk/schematics/ng-update/v5/index.ts"],"names":[],"mappings":";;AAwCA,gCAmBC;AA3DD,qDAA4C;AAE5C,2DAKoC;AACpC,4DAAwE;AACxE,uCAAkF;AAElF,8DAA8D;AA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CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ATTRS_TO_REPLACE = void 0;
|
|
4
|
+
exports.ATTRS_TO_REPLACE = [
|
|
5
|
+
{
|
|
6
|
+
from: {
|
|
7
|
+
attrName: 'icon',
|
|
8
|
+
withAttrsNames: ['tuiBadge'],
|
|
9
|
+
filterFn: (element) => element.tagName === 'tui-icon',
|
|
10
|
+
},
|
|
11
|
+
to: { attrName: 'iconStart' },
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
from: {
|
|
15
|
+
attrName: '[icon]',
|
|
16
|
+
withAttrsNames: ['tuiBadge'],
|
|
17
|
+
filterFn: (element) => element.tagName === 'tui-icon',
|
|
18
|
+
},
|
|
19
|
+
to: { attrName: '[iconStart]' },
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
//# sourceMappingURL=attrs-to-replace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attrs-to-replace.js","sourceRoot":"","sources":["../../../../../../../projects/cdk/schematics/ng-update/v5/steps/constants/attrs-to-replace.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAoC;IAC7D;QACI,IAAI,EAAE;YACF,QAAQ,EAAE,MAAM;YAChB,cAAc,EAAE,CAAC,UAAU,CAAC;YAC5B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,KAAK,UAAU;SACxD;QACD,EAAE,EAAE,EAAC,QAAQ,EAAE,WAAW,EAAC;KAC9B;IACD;QACI,IAAI,EAAE;YACF,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,CAAC,UAAU,CAAC;YAC5B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,KAAK,UAAU;SACxD;QACD,EAAE,EAAE,EAAC,QAAQ,EAAE,aAAa,EAAC;KAChC;CACJ,CAAC"}
|