@taiga-ui/cdk 4.0.0-rc.1 → 4.0.0-rc.10
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/control.d.ts +1 -1
- package/classes/index.d.ts +0 -1
- package/constants/used-icons.d.ts +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/directives/auto-focus/autofocus.options.d.ts +1 -1
- package/directives/for/for.directive.d.ts +3 -3
- package/directives/platform/platform.directive.d.ts +1 -1
- package/directives/value-changes/value-changes.directive.d.ts +3 -3
- package/esm2022/classes/control.mjs +2 -2
- package/esm2022/classes/index.mjs +1 -2
- package/esm2022/constants/used-icons.mjs +14 -6
- package/esm2022/constants/version.mjs +2 -2
- package/esm2022/directives/active-zone/active-zone.directive.mjs +2 -2
- package/esm2022/directives/auto-focus/autofocus.options.mjs +3 -3
- package/esm2022/directives/auto-focus/handlers/ios.handler.mjs +3 -3
- package/esm2022/directives/click-outside/click-outside.directive.mjs +2 -2
- package/esm2022/directives/copy-processor/copy-processor.directive.mjs +3 -3
- package/esm2022/directives/droppable/droppable.directive.mjs +3 -3
- package/esm2022/directives/for/for.directive.mjs +6 -6
- package/esm2022/directives/high-dpi/high-dpi.directive.mjs +3 -3
- package/esm2022/directives/hovered/hovered.service.mjs +2 -2
- package/esm2022/directives/obscured/obscured.directive.mjs +2 -2
- package/esm2022/directives/obscured/obscured.service.mjs +4 -4
- package/esm2022/directives/pan/pan.service.mjs +2 -2
- package/esm2022/directives/platform/platform.directive.mjs +6 -6
- package/esm2022/directives/swipe/swipe.service.mjs +2 -2
- package/esm2022/directives/value-changes/value-changes.directive.mjs +6 -6
- package/esm2022/directives/zoom/zoom.service.mjs +4 -4
- package/esm2022/observables/control-value.mjs +2 -2
- package/esm2022/observables/drag-and-drop-from.mjs +2 -2
- package/esm2022/observables/events.mjs +3 -3
- package/esm2022/observables/if-map.mjs +2 -2
- package/esm2022/observables/must-be-present.mjs +2 -2
- package/esm2022/observables/zone.mjs +4 -4
- package/esm2022/pipes/filter/filter.pipe.mjs +2 -2
- package/esm2022/services/index.mjs +2 -2
- package/esm2022/services/popover.service.mjs +3 -3
- package/esm2022/services/scroll.service.mjs +5 -5
- package/esm2022/services/theme-color.service.mjs +30 -0
- package/esm2022/tokens/active-element.mjs +5 -5
- package/esm2022/tokens/environment.mjs +15 -7
- package/esm2022/tokens/removed-element.mjs +4 -4
- package/esm2022/tokens/window-size.mjs +3 -3
- package/esm2022/utils/color/get-gradient-data.mjs +6 -0
- package/esm2022/utils/color/hex-to-rgb.mjs +2 -2
- package/esm2022/utils/color/index.mjs +3 -1
- package/esm2022/utils/color/parse-color.mjs +3 -3
- package/esm2022/utils/color/parse-gradient.mjs +70 -0
- package/esm2022/utils/color/rgb-to-hex.mjs +2 -2
- package/esm2022/utils/dom/get-element-obscurers.mjs +2 -2
- package/esm2022/utils/dom/get-element-point.mjs +6 -0
- package/esm2022/utils/dom/index.mjs +2 -1
- package/esm2022/utils/focus/focused-in.mjs +7 -0
- package/esm2022/utils/focus/index.mjs +2 -1
- package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +3 -3
- package/esm2022/utils/miscellaneous/with-styles.mjs +2 -2
- package/fesm2022/taiga-ui-cdk-classes.mjs +2 -16
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +14 -6
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +2 -2
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +2 -2
- package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-for.mjs +5 -5
- package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +2 -2
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +4 -4
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs +5 -5
- package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +5 -5
- package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-observables.mjs +9 -9
- package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-services.mjs +25 -28
- package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-tokens.mjs +22 -15
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-color.mjs +80 -5
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +7 -2
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs +8 -2
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/package.json +7 -8
- package/schematics/migration.json +3 -3
- package/schematics/ng-add/constants/modules.d.ts +0 -1
- package/schematics/ng-add/constants/modules.js +1 -11
- package/schematics/ng-add/constants/versions.d.ts +0 -1
- package/schematics/ng-add/constants/versions.js +1 -2
- package/schematics/ng-add/index.js +1 -7
- package/schematics/ng-add/schema.d.ts +0 -1
- package/schematics/ng-add/schema.json +0 -27
- package/schematics/ng-add/steps/add-taiga-icons.js +1 -1
- package/schematics/ng-add/steps/add-taiga-modules.js +7 -22
- 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 -10
- package/schematics/ng-update/interfaces/replacement-type.d.ts +5 -0
- package/schematics/ng-update/steps/icons/replace-imports.js +5 -5
- package/schematics/ng-update/steps/index.d.ts +1 -0
- package/schematics/ng-update/steps/index.js +1 -0
- package/schematics/ng-update/steps/remove-module.js +2 -2
- package/schematics/ng-update/steps/rename-types.js +11 -7
- package/schematics/ng-update/steps/replace-deep-import.js +2 -2
- package/schematics/ng-update/steps/replace-enums.js +2 -2
- package/schematics/ng-update/steps/replace-identifier.js +31 -9
- package/schematics/ng-update/steps/replace-package-name.d.ts +5 -0
- package/schematics/ng-update/steps/replace-package-name.js +18 -0
- package/schematics/ng-update/steps/replace-services.js +5 -5
- package/schematics/ng-update/steps/show-warnings.js +4 -4
- package/schematics/ng-update/utils/replace-text.js +1 -1
- package/schematics/ng-update/utils/templates/replace-attr-values.js +41 -12
- package/schematics/ng-update/utils/templates/replace-attrs.js +1 -1
- package/schematics/ng-update/utils/templates/template-comments.js +11 -3
- package/schematics/ng-update/v4/index.js +20 -7
- package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +11 -2
- package/schematics/ng-update/v4/migrate-css-vars/palette.js +18 -8
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +10 -2
- package/schematics/ng-update/v4/migrate-icons/index.js +9 -7
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +15 -7
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +3 -0
- package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +79 -0
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +5 -4
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +51 -2
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +114 -27
- package/schematics/ng-update/v4/steps/constants/enums.js +31 -0
- package/schematics/ng-update/v4/steps/constants/html-comments.js +19 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +1388 -288
- package/schematics/ng-update/v4/steps/constants/index.d.ts +1 -0
- package/schematics/ng-update/v4/steps/constants/index.js +1 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +2 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +25 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +32 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.d.ts +13 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.js +16 -0
- package/schematics/ng-update/v4/steps/constants/services.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/services.js +15 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +17 -4
- package/schematics/ng-update/v4/steps/constants/types.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/types.js +49 -0
- package/schematics/ng-update/v4/steps/index.d.ts +7 -0
- package/schematics/ng-update/v4/steps/index.js +7 -0
- 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-all-country-iso-codes.js +1 -1
- package/schematics/ng-update/v4/steps/migrate-destroy-service.js +7 -4
- package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +2 -2
- 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-option-providers.js +6 -3
- package/schematics/ng-update/v4/steps/migrate-proprietary.js +3 -3
- package/schematics/ng-update/v4/steps/migrate-root.d.ts +3 -0
- package/schematics/ng-update/v4/steps/migrate-root.js +61 -0
- package/schematics/ng-update/v4/steps/migrate-templates.js +11 -1
- package/schematics/ng-update/v4/steps/styles/index.js +38 -0
- 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 +6 -0
- package/schematics/ng-update/v4/steps/templates/index.js +6 -0
- package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +34 -11
- 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 +17 -8
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -1
- package/schematics/ng-update/{v3/steps/migrate-textfield-controller.d.ts → v4/steps/templates/migrate-blocked.d.ts} +2 -2
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +35 -0
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +41 -0
- 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-label.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-label.js +39 -0
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +6 -10
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +45 -0
- package/schematics/ng-update/v4/steps/templates/migrate-money.js +1 -1
- 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.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +27 -0
- package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +2 -1
- package/schematics/ng-update/v4/steps/templates/toggles/common.d.ts +1 -1
- package/schematics/ng-update/v4/steps/templates/toggles/common.js +4 -3
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +36 -0
- package/schematics/ng-update/{v3/steps/migrate-templates.d.ts → v4/steps/update-packages.d.ts} +1 -1
- package/schematics/ng-update/v4/steps/update-packages.js +44 -0
- package/schematics/ng-update/v4/steps/utils/remove-attrs.js +1 -1
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.d.ts +3 -0
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js +51 -0
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js +1 -1
- package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +1 -0
- package/schematics/utils/add-unique-import.js +1 -1
- package/schematics/utils/angular-json-manipulations.js +4 -4
- package/schematics/utils/get-named-import-references.js +8 -6
- package/schematics/utils/get-standalone-bootstrap-function.js +2 -2
- package/schematics/utils/import-manipulations.js +1 -1
- package/schematics/utils/push-to-array-property.js +1 -1
- package/schematics/utils/templates/elements.d.ts +5 -0
- package/schematics/utils/templates/elements.js +27 -13
- package/schematics/utils/templates/get-component-templates.js +1 -1
- package/schematics/utils/templates/inputs.js +2 -1
- package/schematics/utils/templates/ng-component-input-manipulations.js +5 -5
- package/services/index.d.ts +1 -1
- package/services/theme-color.service.d.ts +16 -0
- package/tokens/environment.d.ts +1 -0
- package/utils/color/get-gradient-data.d.ts +1 -0
- package/utils/color/index.d.ts +2 -0
- package/utils/color/parse-gradient.d.ts +10 -0
- package/utils/dom/get-element-point.d.ts +2 -0
- package/utils/dom/index.d.ts +1 -0
- package/utils/focus/focused-in.d.ts +2 -0
- package/utils/focus/index.d.ts +1 -0
- package/classes/controller.d.ts +0 -9
- package/esm2022/classes/controller.mjs +0 -18
- 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.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 -33
- 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/schematics/ng-update/v4/steps/migrate-styles.js +0 -20
- 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
@@ -1,744 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.REPLACE_ATTR_VALUE = exports.TEMPLATE_COMMENTS = exports.TRUTHY_BOOLEAN_INPUT_TO_HTML_BINARY_ATTRIBUTE = exports.ATTR_TO_DIRECTIVE = exports.TAGS_TO_REPLACE = exports.INPUTS_TO_REMOVE = exports.ATTRS_TO_REPLACE = void 0;
|
4
|
-
const elements_1 = require("../../../utils/templates/elements");
|
5
|
-
const tui_interactive_selectors_1 = require("./tui-interactive-selectors");
|
6
|
-
exports.ATTRS_TO_REPLACE = [
|
7
|
-
{
|
8
|
-
from: { attrName: 'tuiResizableColumn', withAttrsNames: ['tuiResizableColumn'] },
|
9
|
-
to: { attrName: 'tuiTh [resizable]="true"' },
|
10
|
-
},
|
11
|
-
{
|
12
|
-
from: {
|
13
|
-
attrName: 'new',
|
14
|
-
withTagNames: [
|
15
|
-
'tui-editor',
|
16
|
-
'tui-range',
|
17
|
-
'tui-input-range',
|
18
|
-
'tui-input-slider',
|
19
|
-
'tui-feed-item',
|
20
|
-
],
|
21
|
-
},
|
22
|
-
to: { attrName: '' },
|
23
|
-
},
|
24
|
-
{
|
25
|
-
from: {
|
26
|
-
attrName: '[hovered]',
|
27
|
-
withTagNames: ['tui-wrapper'],
|
28
|
-
withAttrsNames: ['tuiWrapper'],
|
29
|
-
},
|
30
|
-
to: {
|
31
|
-
attrName: '[hover]',
|
32
|
-
},
|
33
|
-
},
|
34
|
-
{
|
35
|
-
from: {
|
36
|
-
attrName: '[pressed]',
|
37
|
-
withTagNames: ['tui-wrapper'],
|
38
|
-
withAttrsNames: ['tuiWrapper'],
|
39
|
-
},
|
40
|
-
to: {
|
41
|
-
attrName: '[active]',
|
42
|
-
},
|
43
|
-
},
|
44
|
-
{
|
45
|
-
from: {
|
46
|
-
attrName: '[label]',
|
47
|
-
withAttrsNames: ['tuiLabel'],
|
48
|
-
},
|
49
|
-
to: {
|
50
|
-
attrName: '[tuiLabel]',
|
51
|
-
},
|
52
|
-
},
|
53
|
-
{
|
54
|
-
from: {
|
55
|
-
attrName: 'label',
|
56
|
-
withAttrsNames: ['tuiLabel'],
|
57
|
-
},
|
58
|
-
to: {
|
59
|
-
attrName: 'tuiLabel',
|
60
|
-
},
|
61
|
-
},
|
62
|
-
{
|
63
|
-
from: {
|
64
|
-
attrName: '[state]',
|
65
|
-
withAttrsNames: ['tuiStep'],
|
66
|
-
},
|
67
|
-
to: {
|
68
|
-
attrName: '[stepState]',
|
69
|
-
},
|
70
|
-
},
|
71
|
-
{
|
72
|
-
from: {
|
73
|
-
attrName: 'state',
|
74
|
-
withAttrsNames: ['tuiStep'],
|
75
|
-
},
|
76
|
-
to: {
|
77
|
-
attrName: 'stepState',
|
78
|
-
},
|
79
|
-
},
|
80
|
-
{
|
81
|
-
from: {
|
82
|
-
attrName: '[focused]',
|
83
|
-
withTagNames: ['tui-wrapper'],
|
84
|
-
withAttrsNames: ['tuiWrapper'],
|
85
|
-
},
|
86
|
-
to: {
|
87
|
-
attrName: '[focus]',
|
88
|
-
},
|
89
|
-
},
|
90
|
-
{
|
91
|
-
from: {
|
92
|
-
attrName: '[pseudoPressed]',
|
93
|
-
withTagNames: tui_interactive_selectors_1.TUI_INTERACTIVE_SELECTORS,
|
94
|
-
},
|
95
|
-
to: {
|
96
|
-
attrName: '[pseudoActive]',
|
97
|
-
},
|
98
|
-
},
|
99
|
-
{
|
100
|
-
from: {
|
101
|
-
attrName: '[pseudoHovered]',
|
102
|
-
withTagNames: tui_interactive_selectors_1.TUI_INTERACTIVE_SELECTORS,
|
103
|
-
},
|
104
|
-
to: {
|
105
|
-
attrName: '[pseudoHover]',
|
106
|
-
},
|
107
|
-
},
|
108
|
-
{
|
109
|
-
from: {
|
110
|
-
attrName: '[pseudoFocused]',
|
111
|
-
withTagNames: tui_interactive_selectors_1.TUI_INTERACTIVE_SELECTORS,
|
112
|
-
},
|
113
|
-
to: {
|
114
|
-
attrName: '[pseudoFocus]',
|
115
|
-
},
|
116
|
-
},
|
117
|
-
{
|
118
|
-
from: {
|
119
|
-
attrName: '[pseudoHovered]',
|
120
|
-
withAttrsNames: ['tuiButton', 'tuiIconButton'],
|
121
|
-
},
|
122
|
-
to: {
|
123
|
-
attrName: '[pseudoHover]',
|
124
|
-
},
|
125
|
-
},
|
126
|
-
{
|
127
|
-
from: {
|
128
|
-
attrName: '[pseudoFocused]',
|
129
|
-
withAttrsNames: ['tuiButton', 'tuiIconButton'],
|
130
|
-
},
|
131
|
-
to: {
|
132
|
-
attrName: '[pseudoFocus]',
|
133
|
-
},
|
134
|
-
},
|
135
|
-
{
|
136
|
-
from: {
|
137
|
-
attrName: '[pseudoPressed]',
|
138
|
-
withAttrsNames: ['tuiButton', 'tuiIconButton'],
|
139
|
-
},
|
140
|
-
to: {
|
141
|
-
attrName: '[pseudoActive]',
|
142
|
-
},
|
143
|
-
},
|
144
|
-
{
|
145
|
-
from: {
|
146
|
-
attrName: '(rangeChange)',
|
147
|
-
withTagNames: ['tui-calendar-range'],
|
148
|
-
},
|
149
|
-
to: {
|
150
|
-
attrName: '(valueChange)',
|
151
|
-
},
|
152
|
-
},
|
153
|
-
{
|
154
|
-
from: {
|
155
|
-
attrName: '[quantum]',
|
156
|
-
withAttrsNames: ['tuiSlider'],
|
157
|
-
withTagNames: ['tui-slider'],
|
158
|
-
},
|
159
|
-
to: {
|
160
|
-
attrName: '[step]',
|
161
|
-
},
|
162
|
-
},
|
163
|
-
{
|
164
|
-
from: {
|
165
|
-
attrName: '[quantum]',
|
166
|
-
withTagNames: ['tui-range'],
|
167
|
-
},
|
168
|
-
to: {
|
169
|
-
attrName: '[step]',
|
170
|
-
},
|
171
|
-
},
|
172
|
-
{
|
173
|
-
from: {
|
174
|
-
attrName: '*tuiTab',
|
175
|
-
withTagNames: ['*'],
|
176
|
-
},
|
177
|
-
to: {
|
178
|
-
attrName: '*tuiItem',
|
179
|
-
},
|
180
|
-
},
|
181
|
-
{
|
182
|
-
from: {
|
183
|
-
attrName: '*tuiBreadcrumb',
|
184
|
-
withTagNames: ['*'],
|
185
|
-
},
|
186
|
-
to: {
|
187
|
-
attrName: '*tuiItem',
|
188
|
-
},
|
189
|
-
},
|
190
|
-
{
|
191
|
-
from: {
|
192
|
-
attrName: 'tuiToolbarTool',
|
193
|
-
withTagNames: ['*'],
|
194
|
-
},
|
195
|
-
to: {
|
196
|
-
attrName: 'tuiItem',
|
197
|
-
},
|
198
|
-
},
|
199
|
-
{
|
200
|
-
from: {
|
201
|
-
attrName: 'tuiManualHint',
|
202
|
-
withTagNames: ['*'],
|
203
|
-
},
|
204
|
-
to: {
|
205
|
-
attrName: 'tuiHint',
|
206
|
-
},
|
207
|
-
},
|
208
|
-
{
|
209
|
-
from: {
|
210
|
-
attrName: '[tuiManualHint]',
|
211
|
-
withTagNames: ['*'],
|
212
|
-
},
|
213
|
-
to: {
|
214
|
-
attrName: '[tuiHint]',
|
215
|
-
},
|
216
|
-
},
|
217
|
-
{
|
218
|
-
from: {
|
219
|
-
attrName: '[tuiManualHintShow]',
|
220
|
-
withTagNames: ['*'],
|
221
|
-
},
|
222
|
-
to: {
|
223
|
-
attrName: '[tuiHintManual]',
|
224
|
-
},
|
225
|
-
},
|
226
|
-
{
|
227
|
-
from: {
|
228
|
-
attrName: '[tuiPointerHint]',
|
229
|
-
withTagNames: ['*'],
|
230
|
-
},
|
231
|
-
to: {
|
232
|
-
attrName: 'tuiHintPointer [tuiHint]',
|
233
|
-
},
|
234
|
-
},
|
235
|
-
{
|
236
|
-
from: {
|
237
|
-
attrName: 'tuiPointerHint',
|
238
|
-
withTagNames: ['*'],
|
239
|
-
},
|
240
|
-
to: {
|
241
|
-
attrName: 'tuiHintPointer tuiHint',
|
242
|
-
},
|
243
|
-
},
|
244
|
-
{
|
245
|
-
from: {
|
246
|
-
attrName: 'messageMode',
|
247
|
-
withTagNames: ['tui-input-copy'],
|
248
|
-
},
|
249
|
-
to: {
|
250
|
-
attrName: 'messageAppearance',
|
251
|
-
},
|
252
|
-
},
|
253
|
-
{
|
254
|
-
from: {
|
255
|
-
attrName: '[messageMode]',
|
256
|
-
withTagNames: ['tui-input-copy'],
|
257
|
-
},
|
258
|
-
to: {
|
259
|
-
attrName: '[messageAppearance]',
|
260
|
-
},
|
261
|
-
},
|
262
|
-
{
|
263
|
-
from: {
|
264
|
-
attrName: '[hintMode]',
|
265
|
-
withTagNames: ['tui-bar-chart'],
|
266
|
-
},
|
267
|
-
to: {
|
268
|
-
attrName: '[tuiHintAppearance]',
|
269
|
-
},
|
270
|
-
},
|
271
|
-
{
|
272
|
-
from: {
|
273
|
-
attrName: 'tuiHintMode',
|
274
|
-
withTagNames: ['*'],
|
275
|
-
},
|
276
|
-
to: {
|
277
|
-
attrName: 'tuiHintAppearance',
|
278
|
-
},
|
279
|
-
},
|
280
|
-
{
|
281
|
-
from: {
|
282
|
-
attrName: '[tuiHintMode]',
|
283
|
-
withTagNames: ['*'],
|
284
|
-
},
|
285
|
-
to: {
|
286
|
-
attrName: '[tuiHintAppearance]',
|
287
|
-
},
|
288
|
-
},
|
289
|
-
{
|
290
|
-
from: {
|
291
|
-
attrName: 'mode',
|
292
|
-
withTagNames: ['tui-tooltip'],
|
293
|
-
},
|
294
|
-
to: {
|
295
|
-
attrName: 'appearance',
|
296
|
-
},
|
297
|
-
},
|
298
|
-
{
|
299
|
-
from: {
|
300
|
-
attrName: '[mode]',
|
301
|
-
withTagNames: ['tui-tooltip'],
|
302
|
-
},
|
303
|
-
to: {
|
304
|
-
attrName: '[appearance]',
|
305
|
-
},
|
306
|
-
},
|
307
|
-
{
|
308
|
-
from: {
|
309
|
-
attrName: '[itemLabel]',
|
310
|
-
withTagNames: ['tui-feed-item'],
|
311
|
-
},
|
312
|
-
to: {
|
313
|
-
attrName: '[description]',
|
314
|
-
},
|
315
|
-
},
|
316
|
-
{
|
317
|
-
from: {
|
318
|
-
attrName: '[itemValue]',
|
319
|
-
withTagNames: ['tui-feed-item'],
|
320
|
-
},
|
321
|
-
to: {
|
322
|
-
attrName: '[title]',
|
323
|
-
},
|
324
|
-
},
|
325
|
-
{
|
326
|
-
from: {
|
327
|
-
attrName: '[sumLabel]',
|
328
|
-
withTagNames: ['tui-feed-item'],
|
329
|
-
},
|
330
|
-
to: {
|
331
|
-
attrName: '[secondaryDescription]',
|
332
|
-
},
|
333
|
-
},
|
334
|
-
{
|
335
|
-
from: {
|
336
|
-
attrName: '[sumValue]',
|
337
|
-
withTagNames: ['tui-feed-item'],
|
338
|
-
},
|
339
|
-
to: {
|
340
|
-
attrName: '[secondaryTitle]',
|
341
|
-
},
|
342
|
-
},
|
343
|
-
{
|
344
|
-
from: {
|
345
|
-
attrName: 'tuiDropdown',
|
346
|
-
withTagNames: ['*'],
|
347
|
-
},
|
348
|
-
to: {
|
349
|
-
attrName: 'tuiDropdownManual',
|
350
|
-
},
|
351
|
-
},
|
352
|
-
{
|
353
|
-
from: {
|
354
|
-
attrName: '[tuiDropdown]',
|
355
|
-
withTagNames: ['*'],
|
356
|
-
},
|
357
|
-
to: {
|
358
|
-
attrName: '[tuiDropdownManual]',
|
359
|
-
},
|
360
|
-
},
|
361
|
-
{
|
362
|
-
from: {
|
363
|
-
attrName: 'tuiDropdownContent',
|
364
|
-
withTagNames: ['*'],
|
365
|
-
},
|
366
|
-
to: {
|
367
|
-
attrName: 'tuiDropdown',
|
368
|
-
},
|
369
|
-
},
|
370
|
-
{
|
371
|
-
from: {
|
372
|
-
attrName: '[tuiDropdownContent]',
|
373
|
-
withTagNames: ['*'],
|
374
|
-
},
|
375
|
-
to: {
|
376
|
-
attrName: '[tuiDropdown]',
|
377
|
-
},
|
378
|
-
},
|
379
|
-
{
|
380
|
-
from: {
|
381
|
-
attrName: 'tuiDropdownContext',
|
382
|
-
withTagNames: ['*'],
|
383
|
-
},
|
384
|
-
to: {
|
385
|
-
attrName: 'tuiDropdownContext tuiDropdown',
|
386
|
-
},
|
387
|
-
},
|
388
|
-
{
|
389
|
-
from: {
|
390
|
-
attrName: '[tuiDropdownContext]',
|
391
|
-
withTagNames: ['*'],
|
392
|
-
},
|
393
|
-
to: {
|
394
|
-
attrName: 'tuiDropdownContext [tuiDropdown]',
|
395
|
-
},
|
396
|
-
},
|
397
|
-
{
|
398
|
-
from: {
|
399
|
-
attrName: 'tuiTextfieldExampleText',
|
400
|
-
withTagNames: ['tui-input-tag', 'tui-multi-select'],
|
401
|
-
},
|
402
|
-
to: {
|
403
|
-
attrName: 'placeholder',
|
404
|
-
},
|
405
|
-
},
|
406
|
-
{
|
407
|
-
from: {
|
408
|
-
attrName: 'tuiTextfieldMaxLength',
|
409
|
-
withTagNames: ['tui-input-tag', 'tui-text-area'],
|
410
|
-
},
|
411
|
-
to: {
|
412
|
-
attrName: 'maxLength',
|
413
|
-
},
|
414
|
-
},
|
415
|
-
{
|
416
|
-
from: {
|
417
|
-
attrName: '[tuiTextfieldExampleText]',
|
418
|
-
withTagNames: ['tui-input-tag', 'tui-multi-select'],
|
419
|
-
},
|
420
|
-
to: {
|
421
|
-
attrName: '[placeholder]',
|
422
|
-
},
|
423
|
-
},
|
424
|
-
{
|
425
|
-
from: {
|
426
|
-
attrName: '[tuiTextfieldMaxLength]',
|
427
|
-
withTagNames: ['tui-input-tag', 'tui-text-area'],
|
428
|
-
},
|
429
|
-
to: {
|
430
|
-
attrName: '[maxLength]',
|
431
|
-
},
|
432
|
-
},
|
433
|
-
{
|
434
|
-
from: {
|
435
|
-
attrName: '[tuiHintId]',
|
436
|
-
withTagNames: ['*'],
|
437
|
-
},
|
438
|
-
to: {
|
439
|
-
attrName: '[tuiHintDescribe]',
|
440
|
-
},
|
441
|
-
},
|
442
|
-
{
|
443
|
-
from: {
|
444
|
-
attrName: 'tuiHintId',
|
445
|
-
withTagNames: ['*'],
|
446
|
-
},
|
447
|
-
to: {
|
448
|
-
attrName: 'tuiHintDescribe',
|
449
|
-
},
|
450
|
-
},
|
451
|
-
{
|
452
|
-
from: {
|
453
|
-
attrName: '[tuiDescribedBy]',
|
454
|
-
withTagNames: ['*'],
|
455
|
-
},
|
456
|
-
to: {
|
457
|
-
attrName: '[id]',
|
458
|
-
},
|
459
|
-
},
|
460
|
-
{
|
461
|
-
from: {
|
462
|
-
attrName: 'tuiDescribedBy',
|
463
|
-
withTagNames: ['*'],
|
464
|
-
},
|
465
|
-
to: {
|
466
|
-
attrName: 'id',
|
467
|
-
},
|
468
|
-
},
|
469
|
-
{
|
470
|
-
from: {
|
471
|
-
attrName: '[tuiDropdownSided]',
|
472
|
-
withTagNames: ['tui-hosted-dropdown'],
|
473
|
-
},
|
474
|
-
to: {
|
475
|
-
attrName: '[sided]',
|
476
|
-
},
|
477
|
-
},
|
478
|
-
{
|
479
|
-
from: {
|
480
|
-
attrName: 'tuiDropdownSided',
|
481
|
-
withTagNames: ['tui-hosted-dropdown'],
|
482
|
-
},
|
483
|
-
to: {
|
484
|
-
attrName: '[sided]="true"',
|
485
|
-
},
|
486
|
-
},
|
487
|
-
];
|
488
|
-
exports.INPUTS_TO_REMOVE = [
|
489
|
-
{
|
490
|
-
inputName: 'iconAlign',
|
491
|
-
tags: ['tui-input', 'tui-primitive-textfield', 'tui-input-tag'],
|
492
|
-
},
|
493
|
-
{
|
494
|
-
inputName: 'tuiLabel',
|
495
|
-
tags: ['label'],
|
496
|
-
},
|
497
|
-
];
|
498
|
-
exports.TAGS_TO_REPLACE = [
|
499
|
-
{
|
500
|
-
from: 'tui-group',
|
501
|
-
to: 'div',
|
502
|
-
addAttributes: ['tuiGroup'],
|
503
|
-
},
|
504
|
-
{
|
505
|
-
from: 'tui-wrapper',
|
506
|
-
to: 'div',
|
507
|
-
addAttributes: ['tuiWrapper'],
|
508
|
-
},
|
509
|
-
{
|
510
|
-
from: 'tui-slider',
|
511
|
-
to: 'input',
|
512
|
-
addAttributes: ['tuiSlider', 'type="range"'],
|
513
|
-
},
|
514
|
-
{
|
515
|
-
from: 'tui-action',
|
516
|
-
to: 'button',
|
517
|
-
addAttributes: ['tuiAction'],
|
518
|
-
},
|
519
|
-
];
|
520
|
-
exports.ATTR_TO_DIRECTIVE = [
|
521
|
-
{
|
522
|
-
componentSelector: 'tui-primitive-textfield',
|
523
|
-
inputProperty: '(autofilledChange)',
|
524
|
-
directive: '(tuiAutofilledChange)',
|
525
|
-
directiveModule: {
|
526
|
-
name: 'TuiAutofilledModule',
|
527
|
-
moduleSpecifier: '@taiga-ui/cdk',
|
528
|
-
},
|
529
|
-
},
|
530
|
-
{
|
531
|
-
componentSelector: tui_interactive_selectors_1.TUI_INTERACTIVE_SELECTORS,
|
532
|
-
inputProperty: '(pressedChange)',
|
533
|
-
directive: '(tuiPressedChange)',
|
534
|
-
directiveModule: {
|
535
|
-
name: 'TuiPressedModule',
|
536
|
-
moduleSpecifier: '@taiga-ui/cdk',
|
537
|
-
},
|
538
|
-
},
|
539
|
-
{
|
540
|
-
componentSelector: tui_interactive_selectors_1.TUI_INTERACTIVE_SELECTORS,
|
541
|
-
inputProperty: '(hoveredChange)',
|
542
|
-
directive: '(tuiHoveredChange)',
|
543
|
-
directiveModule: {
|
544
|
-
name: 'TuiHoveredModule',
|
545
|
-
moduleSpecifier: '@taiga-ui/cdk',
|
546
|
-
},
|
547
|
-
},
|
548
|
-
{
|
549
|
-
componentSelector: 'tui-input-slider',
|
550
|
-
inputProperty: 'size',
|
551
|
-
directive: 'tuiTextfieldSize',
|
552
|
-
directiveModule: {
|
553
|
-
name: 'TuiTextfieldControllerModule',
|
554
|
-
moduleSpecifier: '@taiga-ui/core',
|
555
|
-
},
|
556
|
-
},
|
557
|
-
{
|
558
|
-
componentSelector: 'tui-input-slider',
|
559
|
-
inputProperty: 'secondary',
|
560
|
-
directive: 'tuiTextfieldCustomContent',
|
561
|
-
directiveModule: {
|
562
|
-
name: 'TuiTextfieldControllerModule',
|
563
|
-
moduleSpecifier: '@taiga-ui/core',
|
564
|
-
},
|
565
|
-
},
|
566
|
-
{
|
567
|
-
componentSelector: 'tui-input-range',
|
568
|
-
inputProperty: 'size',
|
569
|
-
directive: 'tuiTextfieldSize',
|
570
|
-
directiveModule: {
|
571
|
-
name: 'TuiTextfieldControllerModule',
|
572
|
-
moduleSpecifier: '@taiga-ui/core',
|
573
|
-
},
|
574
|
-
},
|
575
|
-
{
|
576
|
-
componentSelector: 'tui-input',
|
577
|
-
inputProperty: 'icon',
|
578
|
-
directive: 'tuiTextfieldIcon',
|
579
|
-
directiveModule: {
|
580
|
-
name: 'TuiTextfieldControllerModule',
|
581
|
-
moduleSpecifier: '@taiga-ui/core',
|
582
|
-
},
|
583
|
-
filterFn: element => { var _a; return ((_a = element.attrs.find(attr => attr.name === 'iconalign')) === null || _a === void 0 ? void 0 : _a.value) === 'right'; },
|
584
|
-
},
|
585
|
-
{
|
586
|
-
componentSelector: 'tui-input',
|
587
|
-
inputProperty: 'icon',
|
588
|
-
directive: 'tuiTextfieldIconLeft',
|
589
|
-
directiveModule: {
|
590
|
-
name: 'TuiTextfieldControllerModule',
|
591
|
-
moduleSpecifier: '@taiga-ui/core',
|
592
|
-
},
|
593
|
-
filterFn: element => {
|
594
|
-
var _a;
|
595
|
-
return !(0, elements_1.hasElementAttribute)(element, 'iconAlign') ||
|
596
|
-
((_a = element.attrs.find(attr => attr.name === 'iconalign')) === null || _a === void 0 ? void 0 : _a.value) === 'left';
|
597
|
-
},
|
598
|
-
},
|
599
|
-
{
|
600
|
-
componentSelector: 'tui-primitive-textfield',
|
601
|
-
inputProperty: 'iconContent',
|
602
|
-
directive: 'tuiTextfieldIcon',
|
603
|
-
directiveModule: {
|
604
|
-
name: 'TuiTextfieldControllerModule',
|
605
|
-
moduleSpecifier: '@taiga-ui/core',
|
606
|
-
},
|
607
|
-
filterFn: element => {
|
608
|
-
var _a;
|
609
|
-
return !(0, elements_1.hasElementAttribute)(element, 'iconAlign') ||
|
610
|
-
((_a = element.attrs.find(attr => attr.name === 'iconalign')) === null || _a === void 0 ? void 0 : _a.value) === 'right';
|
611
|
-
},
|
612
|
-
},
|
613
|
-
{
|
614
|
-
componentSelector: 'tui-primitive-textfield',
|
615
|
-
inputProperty: 'iconContent',
|
616
|
-
directive: 'tuiTextfieldIconLeft',
|
617
|
-
directiveModule: {
|
618
|
-
name: 'TuiTextfieldControllerModule',
|
619
|
-
moduleSpecifier: '@taiga-ui/core',
|
620
|
-
},
|
621
|
-
filterFn: element => { var _a; return ((_a = element.attrs.find(attr => attr.name === 'iconalign')) === null || _a === void 0 ? void 0 : _a.value) === 'left'; },
|
622
|
-
},
|
623
|
-
{
|
624
|
-
componentSelector: 'tui-input-tag',
|
625
|
-
inputProperty: 'icon',
|
626
|
-
directive: 'tuiTextfieldIcon',
|
627
|
-
directiveModule: {
|
628
|
-
name: 'TuiTextfieldControllerModule',
|
629
|
-
moduleSpecifier: '@taiga-ui/core',
|
630
|
-
},
|
631
|
-
filterFn: element => {
|
632
|
-
var _a;
|
633
|
-
return !(0, elements_1.hasElementAttribute)(element, 'iconAlign') ||
|
634
|
-
((_a = element.attrs.find(attr => attr.name === 'iconalign')) === null || _a === void 0 ? void 0 : _a.value) === 'right';
|
635
|
-
},
|
636
|
-
},
|
637
|
-
{
|
638
|
-
componentSelector: 'tui-input-tag',
|
639
|
-
inputProperty: 'icon',
|
640
|
-
directive: 'tuiTextfieldIconLeft',
|
641
|
-
directiveModule: {
|
642
|
-
name: 'TuiTextfieldControllerModule',
|
643
|
-
moduleSpecifier: '@taiga-ui/core',
|
644
|
-
},
|
645
|
-
filterFn: element => { var _a; return ((_a = element.attrs.find(attr => attr.name === 'iconalign')) === null || _a === void 0 ? void 0 : _a.value) === 'left'; },
|
646
|
-
},
|
647
|
-
{
|
648
|
-
componentSelector: '*',
|
649
|
-
inputProperty: 'scrollIntoView',
|
650
|
-
directive: 'tuiScrollIntoViewLink',
|
651
|
-
directiveModule: {
|
652
|
-
name: 'TuiScrollIntoViewLinkModule',
|
653
|
-
moduleSpecifier: '@taiga-ui/addon-doc',
|
654
|
-
},
|
655
|
-
},
|
656
|
-
{
|
657
|
-
componentSelector: ['tui-bar-chart', 'tui-pie-chart', 'tui-line-chart'],
|
658
|
-
inputProperty: 'hintContent',
|
659
|
-
directive: 'tuiHintContent',
|
660
|
-
directiveModule: {
|
661
|
-
name: 'TuiHintControllerModule',
|
662
|
-
moduleSpecifier: '@taiga-ui/core',
|
663
|
-
},
|
664
|
-
},
|
665
|
-
];
|
666
|
-
/**
|
667
|
-
* @example `<div [someDirective]="true" />` => `<div someDirective />`
|
668
|
-
*
|
669
|
-
* Keeping it for future sake
|
670
|
-
*/
|
671
|
-
exports.TRUTHY_BOOLEAN_INPUT_TO_HTML_BINARY_ATTRIBUTE = [];
|
672
|
-
exports.TEMPLATE_COMMENTS = [
|
673
|
-
{
|
674
|
-
tag: 'tui-input-slider',
|
675
|
-
withAttr: 'pluralize',
|
676
|
-
comment: '[pluralize] => Use [postfix] instead. See https://taiga-ui.dev/components/input-slider/API?postfix=apples',
|
677
|
-
},
|
678
|
-
{
|
679
|
-
tag: 'tui-input-slider',
|
680
|
-
withAttr: 'segmentsPluralize',
|
681
|
-
comment: 'See examples how create labels for ticks without this property (outside the component): https://taiga-ui.dev/components/input-slider#slider-segments',
|
682
|
-
},
|
683
|
-
{
|
684
|
-
tag: 'tui-input-range',
|
685
|
-
withAttr: 'segmentsPluralize',
|
686
|
-
comment: 'See examples how create labels for ticks without this property (outside the component): https://taiga-ui.dev/components/input-range#segments',
|
687
|
-
},
|
688
|
-
{
|
689
|
-
tag: 'tui-range',
|
690
|
-
withAttr: 'pluralize',
|
691
|
-
comment: 'See examples how create labels for ticks without this property (outside the component): https://taiga-ui.dev/components/range#segments',
|
692
|
-
},
|
693
|
-
{
|
694
|
-
tag: 'tui-range',
|
695
|
-
withAttr: 'steps',
|
696
|
-
comment: 'This component has new API. Use property [step] instead. See: https://taiga-ui.dev/components/range/API',
|
697
|
-
},
|
698
|
-
{
|
699
|
-
tag: 'tui-preview-host',
|
700
|
-
withAttr: 'ngProjectAs',
|
701
|
-
comment: '"Preview"-component no longer needs it and requires only import of TuiPreviewModule to the main module. See "Setup"-section: https://taiga-ui.dev/components/preview/Setup',
|
702
|
-
},
|
703
|
-
{
|
704
|
-
tag: 'tui-progress',
|
705
|
-
withAttr: 'value',
|
706
|
-
comment: 'This legacy component was replaced by 3 new ones (https://taiga-ui.dev/components/progress-bar | https://taiga-ui.dev/components/progress-circle | https://taiga-ui.dev/components/progress-segmented ) ',
|
707
|
-
},
|
708
|
-
{
|
709
|
-
tag: 'tui-input-file',
|
710
|
-
withAttr: 'loadingFiles',
|
711
|
-
comment: 'This legacy component was replaced by new one (https://taiga-ui.dev/components/input-files) ',
|
712
|
-
},
|
713
|
-
{
|
714
|
-
tag: 'tui-input-tag',
|
715
|
-
withAttr: 'allowSpaces',
|
716
|
-
comment: 'Use property [separator] to forbid spaces. See example: https://taiga-ui.dev/components/input-tag#no-spaces-inside-tags',
|
717
|
-
},
|
718
|
-
{
|
719
|
-
tag: 'tui-preview-pagination',
|
720
|
-
withAttr: 'lastIndex',
|
721
|
-
comment: 'Use property [length] instead. See example: https://taiga-ui.dev/components/preview',
|
722
|
-
},
|
723
|
-
];
|
724
|
-
exports.REPLACE_ATTR_VALUE = [
|
725
|
-
{
|
726
|
-
attrNames: ['tuiHintDirection'],
|
727
|
-
values: [
|
728
|
-
{ from: 'bottom-middle', to: 'bottom' },
|
729
|
-
{ from: 'top-middle', to: 'top' },
|
730
|
-
],
|
731
|
-
},
|
732
|
-
{
|
733
|
-
attrNames: ['ngProjectAs'],
|
734
|
-
values: [{ from: 'tuiOverNotifications', to: 'tuiOverAlerts' }],
|
735
|
-
},
|
736
|
-
{
|
737
|
-
attrNames: ['direction'],
|
738
|
-
withTagNames: ['tui-tooltip'],
|
739
|
-
values: [
|
740
|
-
{ from: 'bottom-middle', to: 'bottom' },
|
741
|
-
{ from: 'top-middle', to: 'top' },
|
742
|
-
],
|
743
|
-
},
|
744
|
-
];
|